15 template<
class Base >
16 class DerivedClassStorage
27 template<
class Derived >
30 Derived* result =
dynamic_cast<Derived*
>(
mStorage);
43 template<
class Derived >
44 void store(
const Derived& payload )
52 template<
class Derived >
96 typedef DerivedClassStorage<AiTemporaryBase>
AiState;
base class for the temporary storage of AiPackages.
Definition: aistate.hpp:90
DerivedClassStorage()
Definition: aistate.hpp:71
stores one object of any class derived from Base. Requesting a certain derived class via get() either...
Definition: aisequence.hpp:28
void moveIn(Derived *p)
takes ownership of the passed object
Definition: aistate.hpp:53
DerivedClassStorage< AiTemporaryBase > AiState
Container for AI package status.
Definition: aisequence.hpp:29
virtual ~AiTemporaryBase()
Definition: aistate.hpp:92
void store(const Derived &payload)
Definition: aistate.hpp:44
bool empty() const
Definition: aistate.hpp:60
Base * mStorage
Definition: aistate.hpp:19
~DerivedClassStorage()
Definition: aistate.hpp:72
DerivedClassStorage & operator=(const DerivedClassStorage &)
const std::type_info & getType() const
Definition: aistate.hpp:65