clang API Documentation
#include <ThreadSafetyUtil.h>
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 () |
CopyOnWriteVector & | operator= (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) |
Definition at line 248 of file ThreadSafetyUtil.h.
typedef std::vector<T>::const_iterator clang::threadSafety::CopyOnWriteVector< T >::const_iterator |
Definition at line 313 of file ThreadSafetyUtil.h.
clang::threadSafety::CopyOnWriteVector< T >::CopyOnWriteVector | ( | ) | [inline] |
Definition at line 263 of file ThreadSafetyUtil.h.
Referenced by clang::threadSafety::CopyOnWriteVector< NameVarPair >::clone().
clang::threadSafety::CopyOnWriteVector< T >::CopyOnWriteVector | ( | CopyOnWriteVector< T > && | V | ) | [inline] |
Definition at line 264 of file ThreadSafetyUtil.h.
clang::threadSafety::CopyOnWriteVector< T >::~CopyOnWriteVector | ( | ) | [inline] |
Definition at line 265 of file ThreadSafetyUtil.h.
const_iterator clang::threadSafety::CopyOnWriteVector< T >::begin | ( | ) | const [inline] |
Definition at line 317 of file ThreadSafetyUtil.h.
void clang::threadSafety::CopyOnWriteVector< T >::clear | ( | ) | [inline] |
Definition at line 328 of file ThreadSafetyUtil.h.
CopyOnWriteVector clang::threadSafety::CopyOnWriteVector< T >::clone | ( | ) | [inline] |
Definition at line 304 of file ThreadSafetyUtil.h.
void clang::threadSafety::CopyOnWriteVector< T >::destroy | ( | ) | [inline] |
Definition at line 281 of file ThreadSafetyUtil.h.
Referenced by clang::threadSafety::CopyOnWriteVector< NameVarPair >::operator=(), and clang::threadSafety::CopyOnWriteVector< NameVarPair >::~CopyOnWriteVector().
void clang::threadSafety::CopyOnWriteVector< T >::downsize | ( | unsigned | i | ) | [inline] |
Definition at line 347 of file ThreadSafetyUtil.h.
T& clang::threadSafety::CopyOnWriteVector< T >::elem | ( | unsigned | i | ) | [inline] |
Definition at line 341 of file ThreadSafetyUtil.h.
const std::vector<T>& clang::threadSafety::CopyOnWriteVector< T >::elements | ( | ) | const [inline] |
Definition at line 315 of file ThreadSafetyUtil.h.
Referenced by clang::threadSafety::CopyOnWriteVector< NameVarPair >::begin(), clang::threadSafety::CopyOnWriteVector< NameVarPair >::end(), clang::threadSafety::CopyOnWriteVector< NameVarPair >::operator[](), and clang::threadSafety::CopyOnWriteVector< NameVarPair >::size().
const_iterator clang::threadSafety::CopyOnWriteVector< T >::end | ( | ) | const [inline] |
Definition at line 318 of file ThreadSafetyUtil.h.
void clang::threadSafety::CopyOnWriteVector< T >::init | ( | ) | [inline] |
Definition at line 274 of file ThreadSafetyUtil.h.
void clang::threadSafety::CopyOnWriteVector< T >::makeWritable | ( | ) | [inline] |
Definition at line 292 of file ThreadSafetyUtil.h.
CopyOnWriteVector& clang::threadSafety::CopyOnWriteVector< T >::operator= | ( | CopyOnWriteVector< T > && | V | ) | [inline] |
Definition at line 306 of file ThreadSafetyUtil.h.
const T& clang::threadSafety::CopyOnWriteVector< T >::operator[] | ( | unsigned | i | ) | const [inline] |
Definition at line 320 of file ThreadSafetyUtil.h.
void clang::threadSafety::CopyOnWriteVector< T >::push_back | ( | const T & | Elem | ) | [inline] |
Definition at line 334 of file ThreadSafetyUtil.h.
bool clang::threadSafety::CopyOnWriteVector< T >::sameAs | ( | const CopyOnWriteVector< T > & | V | ) | const [inline] |
Definition at line 325 of file ThreadSafetyUtil.h.
unsigned clang::threadSafety::CopyOnWriteVector< T >::size | ( | ) | const [inline] |
Definition at line 322 of file ThreadSafetyUtil.h.
bool clang::threadSafety::CopyOnWriteVector< T >::valid | ( | ) | const [inline] |
Definition at line 268 of file ThreadSafetyUtil.h.
bool clang::threadSafety::CopyOnWriteVector< T >::writable | ( | ) | const [inline] |
Definition at line 271 of file ThreadSafetyUtil.h.
Referenced by clang::threadSafety::CopyOnWriteVector< NameVarPair >::clear(), clang::threadSafety::CopyOnWriteVector< NameVarPair >::downsize(), clang::threadSafety::CopyOnWriteVector< NameVarPair >::elem(), and clang::threadSafety::CopyOnWriteVector< NameVarPair >::push_back().