#include <baciSmartPropertyPointer.h>
Public Member Functions | |
SmartPropertyPointer (CharacteristicComponentImpl *component_p) | |
SmartPropertyPointer (T *prop, CharacteristicComponentImpl *component_p) | |
~SmartPropertyPointer () | |
SmartPropertyPointer< T > * | operator= (const T *) |
Private Member Functions | |
SmartPropertyPointer () | |
void | init () |
Private Attributes | |
CharacteristicComponentImpl * | component_mp |
The Characteristic Component that owns the property. |
The smart pointer for a property It is derived form the SmartServantProperty class to ensure to destroy the object when it is deleted.
baci::SmartPropertyPointer< T >::SmartPropertyPointer | ( | CharacteristicComponentImpl * | component_p | ) |
Constructor
baci::SmartPropertyPointer< T >::SmartPropertyPointer | ( | T * | prop, | |
CharacteristicComponentImpl * | component_p | |||
) |
Constructor
prop | The pointer to the property |
baci::SmartPropertyPointer< T >::~SmartPropertyPointer | ( | ) |
Destructor
baci::SmartPropertyPointer< T >::SmartPropertyPointer | ( | ) | [private] |
Declared to inhibit the usage of the smart pointer without passing the component
void baci::SmartPropertyPointer< T >::init | ( | ) | [private] |
Add the characteristics of the property to the component It calls the addPropertyDesc method of the Characteristic Component
SmartPropertyPointer<T>* baci::SmartPropertyPointer< T >::operator= | ( | const T * | ) |
Redefine the equal operator initing adding the property to the descriptor struct of the Characteristic Component
CharacteristicComponentImpl* baci::SmartPropertyPointer< T >::component_mp [private] |
The Characteristic Component that owns the property.