A Wrapper class that allows to use any type of object as a Registerable. More...
Public Member Functions | |
| RegWrapper (const T &object=T()) | |
| Default constructor of RegWrapper. | |
| T & | get () |
| Gets a reference on the inner object. | |
| const T & | get () const |
| Gets a constant reference on the inner object. | |
Static Public Member Functions | |
| static RegWrapper< T > * | create (const T &object=T()) |
| Creates and registers a new RegWrapper. | |
A Wrapper class that allows to use any type of object as a Registerable.
It simply encapsulates an object of type defined at compilation time.
It allows to define the behavior of these Group attributes when a copy of the Group occurs.
The user can use it to define an attribute of a custom Registerable child class that needs to act as a Registerable.
WARNING : T must obviously not be itself a Registerable.
Definition at line 46 of file SPK_RegWrapper.h.
| RegWrapper | ( | const T & | object = T() |
) |
Default constructor of RegWrapper.
| object | : the inner object |
| RegWrapper< T > * create | ( | const T & | object = T() |
) | [static] |
Creates and registers a new RegWrapper.
| object | : the inner object |
Definition at line 93 of file SPK_RegWrapper.h.
| const T & get | ( | ) | const |
Gets a constant reference on the inner object.
Definition at line 108 of file SPK_RegWrapper.h.
| T & get | ( | ) |
Gets a reference on the inner object.
Definition at line 102 of file SPK_RegWrapper.h.
1.6.1