tl.vector_mt< T, Allocator > Class Template Reference

#include <vector_mt.h>

List of all members.


Detailed Description

template<class T, class Allocator = MPAllocator<T>>
class tl::vector_mt< T, Allocator >

Thread safe vector.


Public Types

typedef std_vector::size_type size_type

Public Member Functions

 vector_mt (Allocator const &a=Allocator())
 vector_mt (size_type n, const T &x=T(), Allocator const &a=Allocator())
void lock ()
 Lock container access.
void unlock ()
 Unock container access.
void push_back (const T &val)
 Add an element to the end of the vector.


Member Typedef Documentation

template<class T, class Allocator = MPAllocator<T>>
typedef std_vector::size_type tl.vector_mt< T, Allocator >.size_type


Constructor & Destructor Documentation

template<class T, class Allocator = MPAllocator<T>>
tl.vector_mt< T, Allocator >.vector_mt ( Allocator const &  a = Allocator()  ) 

template<class T, class Allocator = MPAllocator<T>>
tl.vector_mt< T, Allocator >.vector_mt ( size_type  n,
const T &  x = T(),
Allocator const &  a = Allocator() 
)


Member Function Documentation

template<class T, class Allocator = MPAllocator<T>>
void tl.vector_mt< T, Allocator >.lock (  ) 

Lock container access.

Use it before accessing iterators.

template<class T, class Allocator = MPAllocator<T>>
void tl.vector_mt< T, Allocator >.unlock (  ) 

Unock container access.

template<class T, class Allocator = MPAllocator<T>>
void tl.vector_mt< T, Allocator >.push_back ( const T &  val  ) 

Add an element to the end of the vector.


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

Genereated on Tue Mar 11 19:25:43 2008 by Doxygen.

(c) Copyright 2005, 2008 The Apache Software Foundation or its licensors, as applicable.