12 #ifndef AGGREGATION_H_6014714286 13 #define AGGREGATION_H_6014714286 39 template<
typename AssociatedObjectType >
67 explicit Aggregation( AssociatedObjectType& associatedObject )
68 :
Association< AssociatedObjectType >( &associatedObject )
83 template<
typename AssociatedObjectType >
93 #endif // AGGREGATION_H_6014714286 Defines Carna::base::Association.
Aggregation(const Aggregation< AssociatedObjectType > &other)
Copies reference from other.
Represents an aggregation, i.e. a weak reference.
AssociatedObjectType * get() const
Returns raw pointer to the referenced object.
Aggregation(AssociatedObjectType &associatedObject)
Instantiates.
static Aggregation< AssociatedObjectType > createNullPtr()
Creates instance of this class template that behaves like a nullptr pointer. For internal usage only...
Represents an association.
static const Aggregation< AssociatedObjectType > NULL_PTR
Holds instance of this class template that behaves like a nullptr pointer.