SG::AuxTypeVectorFactory< T > Class Template Reference

Factory objects that creates vectors using AuxTypeVector. More...

#include <AuxTypeVectorFactory.h>

Inheritance diagram for SG::AuxTypeVectorFactory< T >:
SG::IAuxTypeVectorFactory

List of all members.

Public Member Functions

virtual IAuxTypeVectorcreate (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.

Detailed Description

template<class T>
class SG::AuxTypeVectorFactory< T >

Factory objects that creates vectors using AuxTypeVector.

This is an implementation of IAuxTypeVectorFactory that makes vectors using the AuxTypeVector implementation.


Member Function Documentation

template<class T >
void SG::AuxTypeVectorFactory< T >::clear ( void *  dst,
size_t  dst_index 
) const [inline, virtual]

Clear an element within a vector (static method).

Parameters:
dst Pointer to the start of the vector's data.
dst_index Index of the element in the vector.

Implements SG::IAuxTypeVectorFactory.

template<class T >
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.

Parameters:
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.

template<class T >
IAuxTypeVector * SG::AuxTypeVectorFactory< T >::create ( size_t  size,
size_t  capacity 
) const [inline, virtual]

Create a vector object of this type.

Parameters:
size Initial size of the new vector.
capacity Initial capacity of the new vector.

Implements SG::IAuxTypeVectorFactory.

template<class T >
void SG::AuxTypeVectorFactory< T >::swap ( void *  a,
size_t  aindex,
void *  b,
size_t  bindex 
) const [inline, virtual]

Swap an element between vectors.

Parameters:
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.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 15 Apr 2017 for RootCore Packages by  doxygen 1.6.1