ADTF
Loading...
Searching...
No Matches
ddl::mapping::datamodel::Function Class Reference

Datamodel function class used in MappingConfiguration. More...

#include <datamodel_configuration_items.h>

Inherits ddl::dd::utility::ModelSubjectUtility< T, TypeAccessMapEventCode >, and ddl::dd::datamodel::InfoMap.

Public Types

using Properties = ddl::utility::TypeAccessMap<Property, Function>
 Type of properties within module.
 
- Public Types inherited from ddl::dd::utility::ModelSubjectUtility< T, TypeAccessMapEventCode >
typedef TypeAccessMapEventCode event_code_type
 local definition of the event code type
 
typedef T subject_type
 local definition of the subject type
 
typedef ModelObserverUtility< T, TypeAccessMapEventCodeobserver_type
 local definition of the observer type to notify
 
typedef TypeAccessMapEventCode event_code_type
 local definition of the event code type
 
typedef T subject_type
 local definition of the subject type
 
typedef ModelObserverUtility< T, TypeAccessMapEventCodeobserver_type
 local definition of the observer type to notify
 
typedef TypeAccessMapEventCode event_code_type
 local definition of the event code type
 
typedef T subject_type
 local definition of the subject type
 
typedef ModelObserverUtility< T, TypeAccessMapEventCodeobserver_type
 local definition of the observer type to notify
 
typedef TypeAccessMapEventCode event_code_type
 local definition of the event code type
 
typedef T subject_type
 local definition of the subject type
 
typedef ModelObserverUtility< T, TypeAccessMapEventCodeobserver_type
 local definition of the observer type to notify
 

Public Member Functions

 Function ()=delete
 no CTOR
 
 Function (const Function &other)
 copy CTOR
 
 Function (Function &&other)
 move CTOR
 
 Function (const std::string &name, const std::string &type, const std::vector< Property > &properties={})
 CTOR.
 
 ~Function ()
 DTOR.
 
Functionoperator= (const Function &other)
 copy operator
 
Functionoperator= (Function &&other)
 move operator
 
bool operator== (const Function &other) const
 equality operator
 
bool operator!= (const Function &other) const
 inequality operator
 
const std::string & getName () const
 Get the name.
 
void setName (const std::string &name)
 Set the name.
 
const std::string & getType () const
 Get the type.
 
void setType (const std::string &type)
 Set the thype.
 
const PropertiesgetProperties () const
 Get the Properties.
 
PropertiesgetProperties ()
 Get the Properties object.
 
- Public Member Functions inherited from ddl::dd::utility::ModelSubjectUtility< T, TypeAccessMapEventCode >
 ModelSubjectUtility ()=default
 CTOR.
 
 ModelSubjectUtility (const ModelSubjectUtility &)
 copy CTOR which removes the observers in case of!
 
ModelSubjectUtilityoperator= (const ModelSubjectUtility &)
 copy assignment operator which removes the observers in case of!
 
virtual ~ModelSubjectUtility ()=default
 DTOR.
 
void attachObserver (observer_type *observer)
 adda a observer to notify.
 
void detachObserver (observer_type *observer)
 remove a observer if in list.
 
 ModelSubjectUtility ()=default
 CTOR.
 
 ModelSubjectUtility (const ModelSubjectUtility &)
 copy CTOR which removes the observers in case of!
 
ModelSubjectUtilityoperator= (const ModelSubjectUtility &)
 copy assignment operator which removes the observers in case of!
 
virtual ~ModelSubjectUtility ()=default
 DTOR.
 
void attachObserver (observer_type *observer)
 adda a observer to notify.
 
void detachObserver (observer_type *observer)
 remove a observer if in list.
 
 ModelSubjectUtility ()=default
 CTOR.
 
 ModelSubjectUtility (const ModelSubjectUtility &)
 copy CTOR which removes the observers in case of!
 
ModelSubjectUtilityoperator= (const ModelSubjectUtility &)
 copy assignment operator which removes the observers in case of!
 
virtual ~ModelSubjectUtility ()=default
 DTOR.
 
void attachObserver (observer_type *observer)
 adda a observer to notify.
 
void detachObserver (observer_type *observer)
 remove a observer if in list.
 
 ModelSubjectUtility ()=default
 CTOR.
 
 ModelSubjectUtility (const ModelSubjectUtility &)
 copy CTOR which removes the observers in case of!
 
ModelSubjectUtilityoperator= (const ModelSubjectUtility &)
 copy assignment operator which removes the observers in case of!
 
virtual ~ModelSubjectUtility ()=default
 DTOR.
 
void attachObserver (observer_type *observer)
 adda a observer to notify.
 
void detachObserver (observer_type *observer)
 remove a observer if in list.
 
- Public Member Functions inherited from ddl::dd::datamodel::InfoMap
 InfoMap ()=default
 CTOR.
 
 InfoMap (const InfoMap &)
 copy CTOR
 
 InfoMap (InfoMap &&)
 move CTOR
 
InfoMapoperator= (const InfoMap &)
 copy assignment operator
 
InfoMapoperator= (InfoMap &&)
 move assignment operator
 
template<typename INFO_T>
const INFO_T * getInfo () const
 Get the Info Pointer.
 
template<typename INFO_T>
INFO_T * getInfo ()
 Get the Info Pointer.
 
template<typename INFO_T>
void setInfo (const std::shared_ptr< INFO_T > &info)
 Set the Info object as shared pointer.
 

Additional Inherited Members

- Protected Member Functions inherited from ddl::dd::utility::ModelSubjectUtility< T, TypeAccessMapEventCode >
void notifyChanged (event_code_type event_code, subject_type &changed_subject, const std::string &additional_info)
 helper utility function to notify the current observers
 
void notifyChanged (event_code_type event_code, subject_type &changed_subject, const std::string &additional_info)
 helper utility function to notify the current observers
 
void notifyChanged (event_code_type event_code, subject_type &changed_subject, const std::string &additional_info)
 helper utility function to notify the current observers
 
void notifyChanged (event_code_type event_code, subject_type &changed_subject, const std::string &additional_info)
 helper utility function to notify the current observers
 

Detailed Description

Datamodel function class used in MappingConfiguration.

Remarks
This class is observable within a ddl::dd::utility::TypeAccessMap

Constructor & Destructor Documentation

◆ Function() [1/3]

ddl::mapping::datamodel::Function::Function ( const Function & other)

copy CTOR

Parameters
otherthe object to copy

◆ Function() [2/3]

ddl::mapping::datamodel::Function::Function ( Function && other)

move CTOR

Parameters
otherthe object to move

◆ Function() [3/3]

ddl::mapping::datamodel::Function::Function ( const std::string & name,
const std::string & type,
const std::vector< Property > & properties = {} )

CTOR.

Parameters
namethe name of the module instance to create
typethe type of the module to create
propertiesproperties for intializing

Member Function Documentation

◆ getName()

const std::string & ddl::mapping::datamodel::Function::getName ( ) const

Get the name.

Returns
const std::string&

◆ getProperties() [1/2]

Properties & ddl::mapping::datamodel::Function::getProperties ( )

Get the Properties object.

Returns
Properties&

◆ getProperties() [2/2]

const Properties & ddl::mapping::datamodel::Function::getProperties ( ) const

Get the Properties.

Returns
const Properties&

◆ getType()

const std::string & ddl::mapping::datamodel::Function::getType ( ) const

Get the type.

Returns
const std::string&

◆ operator!=()

bool ddl::mapping::datamodel::Function::operator!= ( const Function & other) const

inequality operator

Parameters
otherthe other object to compare
Returns
true is not equal
false is equal

◆ operator=() [1/2]

Function & ddl::mapping::datamodel::Function::operator= ( const Function & other)

copy operator

Parameters
otherthe object to copy
Returns
Module&

◆ operator=() [2/2]

Function & ddl::mapping::datamodel::Function::operator= ( Function && other)

move operator

Parameters
otherthe object to move
Returns
Module&

◆ operator==()

bool ddl::mapping::datamodel::Function::operator== ( const Function & other) const

equality operator

Parameters
otherthe other object to compare
Returns
true is equal
false is not equal

◆ setName()

void ddl::mapping::datamodel::Function::setName ( const std::string & name)

Set the name.

Parameters
namethe name
Remarks
This change is observable

◆ setType()

void ddl::mapping::datamodel::Function::setType ( const std::string & type)

Set the thype.

Parameters
typethe type
Remarks
This change is observable

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