Factory objects that creates vectors using AuxTypeVector
.
More...
#include <AuxTypeVectorFactory.h>
Public Member Functions | |
virtual IAuxTypeVector * | create (size_t size, size_t capacity) const |
Create a vector object of this type. | |
virtual void | copy (void *dst, size_t dst_index, const void *src, size_t src_index) const |
Copy an element between vectors. | |
virtual void | swap (void *a, size_t aindex, void *b, size_t bindex) const |
Swap an element between vectors. | |
virtual void | clear (void *dst, size_t dst_index) const |
Clear an element within a vector (static method). | |
virtual size_t | getEltSize () const |
Return the size of an element of this vector type. | |
virtual const std::type_info * | tiVec () const |
Return the type_info of the vector. | |
virtual bool | isDynamic () const |
True if the vectors created by this factory work by dynamic emulation (via TVirtualCollectionProxy or similar); false if the std::vector code is used directly. |
Factory objects that creates vectors using AuxTypeVector
.
This is an implementation of IAuxTypeVectorFactory
that makes vectors using the AuxTypeVector
implementation.
void SG::AuxTypeVectorFactory< T >::clear | ( | void * | dst, | |
size_t | dst_index | |||
) | const [inline, virtual] |
Clear an element within a vector (static method).
dst | Pointer to the start of the vector's data. | |
dst_index | Index of the element in the vector. |
Implements SG::IAuxTypeVectorFactory.
void SG::AuxTypeVectorFactory< T >::copy | ( | void * | dst, | |
size_t | dst_index, | |||
const void * | src, | |||
size_t | src_index | |||
) | const [inline, virtual] |
Copy an element between vectors.
dst | Pointer to the start of the destination vector's data. | |
dst_index | Index of destination element in the vector. | |
src | Pointer to the start of the source vector's data. | |
src_index | Index of source element in the vector. |
dst
and @ src can be either the same or different.
Implements SG::IAuxTypeVectorFactory.
IAuxTypeVector * SG::AuxTypeVectorFactory< T >::create | ( | size_t | size, | |
size_t | capacity | |||
) | const [inline, virtual] |
Create a vector object of this type.
size | Initial size of the new vector. | |
capacity | Initial capacity of the new vector. |
Implements SG::IAuxTypeVectorFactory.
void SG::AuxTypeVectorFactory< T >::swap | ( | void * | a, | |
size_t | aindex, | |||
void * | b, | |||
size_t | bindex | |||
) | const [inline, virtual] |
Swap an element between vectors.
a | Pointer to the start of the first vector's data. | |
aindex | Index of the element in the first vector. | |
b | Pointer to the start of the second vector's data. | |
bindex | Index of the element in the second vector. |
a
and @ b can be either the same or different.
Implements SG::IAuxTypeVectorFactory.