#include <CkptContainer.h>
Inheritance diagram for CkptSimpleContainer< T >:
Public Member Functions | |
CkptSimpleContainer (std::string containerName, unsigned long maxObjects, unsigned long maxObjectSize, CkptRetentionPolicy rPolicy=CKPT_RELEASE) | |
T * | get (CkptObjectKey *key) |
Retrieve a representation of the object identified by a key. | |
T * | get (CkptObjectKey &key) |
Retrieve a representation of the object identified by a key. |
Limits a container to a single class type, ensuring typesafe retrieval
Definition at line 176 of file CkptContainer.h.
CkptSimpleContainer< T >::CkptSimpleContainer | ( | std::string | containerName, | |
unsigned long | maxObjects, | |||
unsigned long | maxObjectSize, | |||
CkptRetentionPolicy | rPolicy = CKPT_RELEASE | |||
) | [inline] |
Definition at line 178 of file CkptContainer.h.
T* CkptSimpleContainer< T >::get | ( | CkptObjectKey * | key | ) | [inline] |
Retrieve a representation of the object identified by a key.
CAUTION: calling this procedure with the pointer to a stack-based key can result in faults (if the retrieved object outlives the stack frame where the key resides)
key | - the key for the object being retrieved |
Reimplemented from CkptContainer.
Definition at line 184 of file CkptContainer.h.
References CkptContainer::get().
T* CkptSimpleContainer< T >::get | ( | CkptObjectKey & | key | ) | [inline] |
Retrieve a representation of the object identified by a key.
The key is COPIED, and the copy is owned by the retrieved CkptObject through a call to CkptObject::setKey() To use a non-stack-based key (say, on a heap), and to avoid the copy, use get(CkptObjectKey*)
key | - the key for the object being retrieved |
Reimplemented from CkptContainer.
Definition at line 187 of file CkptContainer.h.
References CkptContainer::get().