$darkmode
cloe::component::NormalDistribution< T > Class Template Reference
Inheritance diagram for cloe::component::NormalDistribution< T >:
Collaboration diagram for cloe::component::NormalDistribution< T >:

Public Member Functions

get (Generator &g) const override
 
void reset () override
 
void to_json (Json &j) const override
 
void from_conf (const Conf &c) override
 
- Public Member Functions inherited from cloe::component::Distribution< T >
void to_json (Json &j) const override
 
 Entity (std::string name)
 
 Entity (std::string name, std::string desc)
 
- Public Member Functions inherited from fable::Confable
 Confable (const Confable &) noexcept
 
 Confable (Confable &&) noexcept=default
 
Confableoperator= (const Confable &other) noexcept
 
Confableoperator= (Confable &&other) noexcept
 
virtual void reset_schema ()
 
Schemaschema ()
 
const Schemaschema () const
 
virtual void validate_or_throw (const Conf &c) const
 
virtual bool validate (const Conf &c, std::optional< SchemaError > &err) const
 
virtual void to_json (Json &j) const
 
Json to_json () const
 
- Public Member Functions inherited from cloe::Entity
 Entity (std::string name)
 
 Entity (std::string name, std::string desc)
 
const std::string & name () const
 
void set_name (std::string name)
 
const std::string & description () const
 
void set_description (std::string desc)
 

Protected Member Functions

Schema schema_impl () override
 
- Protected Member Functions inherited from cloe::Entity
virtual Logger logger () const
 

Additional Inherited Members

- Protected Attributes inherited from cloe::Entity
std::string name_
 
std::string desc_
 

Member Function Documentation

◆ from_conf()

template<typename T >
void cloe::component::NormalDistribution< T >::from_conf ( const Conf c)
inlineoverridevirtual

Deserialize a Confable from a Conf.

Unless you have special needs, it is recommended to implement

Schema schema_impl()

and use the default implementation of this.

Reimplemented from fable::Confable.

Here is the call graph for this function:

◆ schema_impl()

template<typename T >
Schema cloe::component::NormalDistribution< T >::schema_impl ( )
inlineoverrideprotectedvirtual

Return a new instance of the schema for this object.

This schema is then stored in schema_. This is called every time the object is created or moved, since Schema contains references to fields that (should be) in the object.

Reimplemented from fable::Confable.


The documentation for this class was generated from the following file: