12 #ifndef COMPOSITION_H_6014714286 13 #define COMPOSITION_H_6014714286 51 template<
typename AssociatedObjectType >
60 explicit Composition( AssociatedObjectType* associatedObject )
61 :
Association< AssociatedObjectType >( associatedObject )
72 if( associatedObject )
74 delete associatedObject;
86 #endif // COMPOSITION_H_6014714286 Defines Carna::base::Association.
virtual ~Composition()
Deletes the associated object, if there is one.
AssociatedObjectType * get() const
Returns raw pointer to the referenced object.
Represents a composition, i.e. a strong reference. This basically is a std::unique_ptr that supports ...
Represents an association.
Composition(AssociatedObjectType *associatedObject)
Instantiates.