template<class T, class CRTP>
class idol::Object< T, CRTP >
Definition at line 26 of file Object.h.
|
| | Object (ObjectId< T > &&t_object_id) |
|
| Object (const Object &)=default |
|
| Object (Object &&) noexcept=default |
|
Object & | operator= (const Object &)=default |
|
Object & | operator= (Object &&) noexcept=default |
| const std::string & | name () const |
| unsigned int | id () const |
| bool | is_in (const Model &t_model) const |
| template<class ValueT> |
| const ValueT & | get (const Annotation< ValueT > &t_annotation) const |
| template<class ValueT, class ... ArgsT> |
| void | set (const Annotation< ValueT > &t_annotation, ArgsT &&...t_args) const |
template<class T, class CRTP>
template<class ValueT>
Returns the value of the given annotation t_annotation associated to the object.
If no value is found, the default value of the annotation is returned. If no default value was set, an exception is thrown.
- Template Parameters
-
| ValueT | The value type of the annotation. |
- Parameters
-
| t_annotation | The annotation. |
- Returns
- The value of the annotation.
Definition at line 78 of file Object.h.
template<class T, class CRTP>
template<class ValueT, class ... ArgsT>
Sets the value of the given annotation t_annotation associated to the object.
- Template Parameters
-
| ValueT | The value type of the annotation. |
| ArgsT | The parameter pack types for constructing the value of the annotation. |
- Parameters
-
| t_annotation | The annotation. |
| t_args | The parameter pack arguments used to construct "in place" the value of the annotation. |
Definition at line 96 of file Object.h.