mace::vector< T, Serial, Alloc > Class Template Reference
[Collections]

#include <mvector.h>

Inheritance diagram for mace::vector< T, Serial, Alloc >:

Inheritance graph
[legend]
Collaboration diagram for mace::vector< T, Serial, Alloc >:

Collaboration graph
[legend]

List of all members.


Detailed Description

template<class T, class Serial = SerializeList<T>, class Alloc = std::allocator<T>>
class mace::vector< T, Serial, Alloc >

mace::vector extends std::vector, but has support for printing and optional serialization, random, and the ability to get an array pointer.

For most documentation, you should refer to the SGI STL documentation http://www.sgi.com/tech/stl

Definition at line 61 of file mvector.h.


Public Member Functions

void resize (size_t sz)
 set the number of elements
void resize (size_t sz, const T &t)
 set the number of elements, providing a default object for newly constructed elements
size_t size () const
 return the number of elements
const std::string & getTypeName () const
 Return the template parameter string Key->Data for actual template parameters. (Mace extension).
const_iterator random () const
 return a random element, or end() if none.
T * getMem ()

Member Function Documentation

template<class T, class Serial = SerializeList<T>, class Alloc = std::allocator<T>>
T* mace::vector< T, Serial, Alloc >::getMem (  )  [inline]

return the internal array pointer

Warning:
DO NOT USE, NON PORTABLE AND UNSAFE

Definition at line 165 of file mvector.h.


The documentation for this class was generated from the following file:

Generated on Sat Oct 4 21:30:41 2008 for Mace Library by  doxygen 1.5.5