Public Types | |
typedef T | Container |
Container type. | |
typedef SG_STD_OR_BOOST::remove_const < typename Container::base_value_type > ::type | Elt |
The container's element type (with pointer and any const removed). | |
Public Member Functions | |
DVLInfo () | |
Constructor. | |
virtual void * | make (size_t nreserve) const |
Construct a new container. | |
virtual void | push (void *cont_p, void *elt_p) const |
Push a new pointer into the container. | |
virtual size_t | size (void *cont_p) const |
Return the size of the container. | |
virtual void | clear (void *cont_p) const |
Erase the elements in the container. | |
virtual void | del (void *cont_p) const |
Delete a container. | |
virtual void * | clone (void *cont_p) const |
Copy a container. | |
virtual DVLIteratorBase * | iterator (const void *cont_p) const |
Return a new iterator object. | |
virtual SG::AuxVectorBase * | base (void *cont_p) const |
Return a pointer to the container base. | |
Static Public Member Functions | |
static const std::type_info * | initHelper () |
Helper to create the DVLInfo static instance. |
DataModel_detail::DVLInfo< T >::DVLInfo | ( | ) | [inline] |
Constructor.
Note: these objects should only be allocated statically.
SG::AuxVectorBase * DataModel_detail::DVLInfo< T >::base | ( | void * | cont_p | ) | const [inline, virtual] |
Return a pointer to the container base.
cont_p | Pointer to the container. |
Implements DataModel_detail::DVLInfoBase.
void DataModel_detail::DVLInfo< T >::clear | ( | void * | cont_p | ) | const [inline, virtual] |
Erase the elements in the container.
cont_p | Pointer to the container. |
Implements DataModel_detail::DVLInfoBase.
void * DataModel_detail::DVLInfo< T >::clone | ( | void * | cont_p | ) | const [inline, virtual] |
Copy a container.
cont_p | Pointer to the container. |
Implements DataModel_detail::DVLInfoBase.
void DataModel_detail::DVLInfo< T >::del | ( | void * | cont_p | ) | const [inline, virtual] |
Delete a container.
cont_p | Pointer to the container. |
Implements DataModel_detail::DVLInfoBase.
const std::type_info * DataModel_detail::DVLInfo< T >::initHelper | ( | ) | [inline, static] |
DVLIteratorBase * DataModel_detail::DVLInfo< T >::iterator | ( | const void * | cont_p | ) | const [inline, virtual] |
Return a new iterator object.
cont_p | Pointer to the container. |
Implements DataModel_detail::DVLInfoBase.
void * DataModel_detail::DVLInfo< T >::make | ( | size_t | nreserve | ) | const [inline, virtual] |
Construct a new container.
nreserve | Number of elements for which to reserve space. (Ignored if not appropriate.) |
Implements DataModel_detail::DVLInfoBase.
void DataModel_detail::DVLInfo< T >::push | ( | void * | cont_p, | |
void * | elt_p | |||
) | const [inline, virtual] |
Push a new pointer into the container.
cont_p | Pointer to the container. | |
elt_p | Pointer to the element to push. (Must match the container's declared element type.) |
Implements DataModel_detail::DVLInfoBase.
size_t DataModel_detail::DVLInfo< T >::size | ( | void * | cont_p | ) | const [inline, virtual] |
Return the size of the container.
cont_p | Pointer to the container. |
Implements DataModel_detail::DVLInfoBase.