Carna Version 3.3.3
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Static Public Attributes | List of all members
Carna::base::Aggregation< AssociatedObjectType > Class Template Reference

Represents an aggregation, i.e. a weak reference. More...

#include <Aggregation.h>

+ Inheritance diagram for Carna::base::Aggregation< AssociatedObjectType >:
+ Collaboration diagram for Carna::base::Aggregation< AssociatedObjectType >:

Public Member Functions

 Aggregation (AssociatedObjectType &associatedObject)
 Instantiates.
 
 Aggregation (const Aggregation< AssociatedObjectType > &other)
 Copies reference from other.
 
- Public Member Functions inherited from Carna::base::Association< AssociatedObjectType >
virtual ~Association ()
 Does nothing.
 
AssociatedObjectTypeget () const
 Returns raw pointer to the referenced object.
 
AssociatedObjectTypeoperator-> () const
 
AssociatedObjectTypeoperator* () const
 Returns raw reference to the referenced object.
 
 operator bool () const
 Tells whether any object is referenced by this association.
 
void forget ()
 Makes this association forget it's referenced object.
 

Static Public Member Functions

static Aggregation< AssociatedObjectTypecreateNullPtr ()
 Creates instance of this class template that behaves like a nullptr pointer. For internal usage only. Use NULL_PTR instead.
 

Static Public Attributes

static const Aggregation< AssociatedObjectTypeNULL_PTR
 Holds instance of this class template that behaves like a nullptr pointer.
 

Additional Inherited Members

- Protected Member Functions inherited from Carna::base::Association< AssociatedObjectType >
 Association (AssociatedObjectType *associatedObject=nullptr)
 Instantiates.
 

Detailed Description

template<typename AssociatedObjectType>
class Carna::base::Aggregation< AssociatedObjectType >

Represents an aggregation, i.e. a weak reference.

Author
Leonid Kostrykin
Date
26.10.11 - 4.3.15

Definition at line 40 of file Aggregation.h.

Constructor & Destructor Documentation

◆ Aggregation() [1/2]

Carna::base::Aggregation< AssociatedObjectType >::Aggregation ( AssociatedObjectType associatedObject)
inlineexplicit

Instantiates.

Definition at line 67 of file Aggregation.h.

◆ Aggregation() [2/2]

Copies reference from other.

Definition at line 75 of file Aggregation.h.

Member Function Documentation

◆ createNullPtr()

Creates instance of this class template that behaves like a nullptr pointer. For internal usage only. Use NULL_PTR instead.

Definition at line 59 of file Aggregation.h.

Member Data Documentation

◆ NULL_PTR

Holds instance of this class template that behaves like a nullptr pointer.

Definition at line 53 of file Aggregation.h.


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