clang API Documentation

Classes | Public Types | Public Member Functions
clang::threadSafety::CopyOnWriteVector< T > Class Template Reference

#include <ThreadSafetyUtil.h>

Inheritance diagram for clang::threadSafety::CopyOnWriteVector< T >:
Inheritance graph
[legend]

List of all members.

Classes

class  VectorData

Public Types

typedef std::vector< T >
::const_iterator 
const_iterator

Public Member Functions

 CopyOnWriteVector ()
 CopyOnWriteVector (CopyOnWriteVector &&V)
 ~CopyOnWriteVector ()
bool valid () const
bool writable () const
void init ()
void destroy ()
void makeWritable ()
CopyOnWriteVector clone ()
CopyOnWriteVectoroperator= (CopyOnWriteVector &&V)
const std::vector< T > & elements () const
const_iterator begin () const
const_iterator end () const
const T & operator[] (unsigned i) const
unsigned size () const
bool sameAs (const CopyOnWriteVector &V) const
void clear ()
void push_back (const T &Elem)
T & elem (unsigned i)
void downsize (unsigned i)

Detailed Description

template<typename T>
class clang::threadSafety::CopyOnWriteVector< T >

Definition at line 248 of file ThreadSafetyUtil.h.


Member Typedef Documentation

template<typename T>
typedef std::vector<T>::const_iterator clang::threadSafety::CopyOnWriteVector< T >::const_iterator

Definition at line 313 of file ThreadSafetyUtil.h.


Constructor & Destructor Documentation

template<typename T>
clang::threadSafety::CopyOnWriteVector< T >::CopyOnWriteVector ( ) [inline]
template<typename T>
clang::threadSafety::CopyOnWriteVector< T >::CopyOnWriteVector ( CopyOnWriteVector< T > &&  V) [inline]

Definition at line 264 of file ThreadSafetyUtil.h.

template<typename T>
clang::threadSafety::CopyOnWriteVector< T >::~CopyOnWriteVector ( ) [inline]

Definition at line 265 of file ThreadSafetyUtil.h.


Member Function Documentation

template<typename T>
const_iterator clang::threadSafety::CopyOnWriteVector< T >::begin ( ) const [inline]

Definition at line 317 of file ThreadSafetyUtil.h.

template<typename T>
void clang::threadSafety::CopyOnWriteVector< T >::clear ( ) [inline]

Definition at line 328 of file ThreadSafetyUtil.h.

template<typename T>
CopyOnWriteVector clang::threadSafety::CopyOnWriteVector< T >::clone ( ) [inline]

Definition at line 304 of file ThreadSafetyUtil.h.

template<typename T>
void clang::threadSafety::CopyOnWriteVector< T >::destroy ( ) [inline]
template<typename T>
void clang::threadSafety::CopyOnWriteVector< T >::downsize ( unsigned  i) [inline]

Definition at line 347 of file ThreadSafetyUtil.h.

template<typename T>
T& clang::threadSafety::CopyOnWriteVector< T >::elem ( unsigned  i) [inline]

Definition at line 341 of file ThreadSafetyUtil.h.

template<typename T>
const std::vector<T>& clang::threadSafety::CopyOnWriteVector< T >::elements ( ) const [inline]
template<typename T>
const_iterator clang::threadSafety::CopyOnWriteVector< T >::end ( ) const [inline]

Definition at line 318 of file ThreadSafetyUtil.h.

template<typename T>
void clang::threadSafety::CopyOnWriteVector< T >::init ( ) [inline]

Definition at line 274 of file ThreadSafetyUtil.h.

template<typename T>
void clang::threadSafety::CopyOnWriteVector< T >::makeWritable ( ) [inline]

Definition at line 292 of file ThreadSafetyUtil.h.

template<typename T>
CopyOnWriteVector& clang::threadSafety::CopyOnWriteVector< T >::operator= ( CopyOnWriteVector< T > &&  V) [inline]

Definition at line 306 of file ThreadSafetyUtil.h.

template<typename T>
const T& clang::threadSafety::CopyOnWriteVector< T >::operator[] ( unsigned  i) const [inline]

Definition at line 320 of file ThreadSafetyUtil.h.

template<typename T>
void clang::threadSafety::CopyOnWriteVector< T >::push_back ( const T &  Elem) [inline]

Definition at line 334 of file ThreadSafetyUtil.h.

template<typename T>
bool clang::threadSafety::CopyOnWriteVector< T >::sameAs ( const CopyOnWriteVector< T > &  V) const [inline]

Definition at line 325 of file ThreadSafetyUtil.h.

template<typename T>
unsigned clang::threadSafety::CopyOnWriteVector< T >::size ( ) const [inline]

Definition at line 322 of file ThreadSafetyUtil.h.

template<typename T>
bool clang::threadSafety::CopyOnWriteVector< T >::valid ( ) const [inline]

Definition at line 268 of file ThreadSafetyUtil.h.

template<typename T>
bool clang::threadSafety::CopyOnWriteVector< T >::writable ( ) const [inline]

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