|
OpenMW
|
stores one object of any class derived from Base. Requesting a certain derived class via get() either returns the stored object if it has the correct type or otherwise replaces it with an object of the requested type. More...
#include <aisequence.hpp>
Public Member Functions | |
| template<class Derived > | |
| Derived & | get () |
| returns reference to stored object or deletes it and creates a fitting More... | |
| template<class Derived > | |
| void | store (const Derived &payload) |
| template<class Derived > | |
| void | moveIn (Derived *p) |
| takes ownership of the passed object More... | |
| bool | empty () const |
| const std::type_info & | getType () const |
| DerivedClassStorage () | |
| ~DerivedClassStorage () | |
Private Member Functions | |
| DerivedClassStorage (const DerivedClassStorage &other) | |
| DerivedClassStorage & | operator= (const DerivedClassStorage &) |
Private Attributes | |
| Base * | mStorage |
stores one object of any class derived from Base. Requesting a certain derived class via get() either returns the stored object if it has the correct type or otherwise replaces it with an object of the requested type.
|
private |
|
inline |
|
inline |
|
inline |
|
inline |
returns reference to stored object or deletes it and creates a fitting
|
inline |
|
inline |
takes ownership of the passed object
|
private |
|
inline |
|
private |
1.8.6