clang  6.0.0svn
Classes | Public Types | Public Member Functions | List of all members
clang::threadSafety::CopyOnWriteVector< T > Class Template Reference

#include "clang/Analysis/Analyses/ThreadSafetyUtil.h"

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

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 Toperator[] (unsigned i) const
 
unsigned size () const
 
bool sameAs (const CopyOnWriteVector &V) const
 
void clear ()
 
void push_back (const T &Elem)
 
Telem (unsigned i)
 
void downsize (unsigned i)
 

Detailed Description

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

Definition at line 228 of file ThreadSafetyUtil.h.

Member Typedef Documentation

◆ const_iterator

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

Definition at line 293 of file ThreadSafetyUtil.h.

Constructor & Destructor Documentation

◆ CopyOnWriteVector() [1/2]

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

Definition at line 243 of file ThreadSafetyUtil.h.

◆ CopyOnWriteVector() [2/2]

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

Definition at line 244 of file ThreadSafetyUtil.h.

◆ ~CopyOnWriteVector()

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

Definition at line 245 of file ThreadSafetyUtil.h.

Member Function Documentation

◆ begin()

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

Definition at line 297 of file ThreadSafetyUtil.h.

◆ clear()

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

Definition at line 308 of file ThreadSafetyUtil.h.

◆ clone()

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

Definition at line 284 of file ThreadSafetyUtil.h.

◆ destroy()

template<typename T>
void clang::threadSafety::CopyOnWriteVector< T >::destroy ( )
inline

Definition at line 261 of file ThreadSafetyUtil.h.

◆ downsize()

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

Definition at line 327 of file ThreadSafetyUtil.h.

◆ elem()

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

Definition at line 321 of file ThreadSafetyUtil.h.

◆ elements()

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

Definition at line 295 of file ThreadSafetyUtil.h.

◆ end()

template<typename T>
const_iterator clang::threadSafety::CopyOnWriteVector< T >::end ( ) const
inline

Definition at line 298 of file ThreadSafetyUtil.h.

◆ init()

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

Definition at line 254 of file ThreadSafetyUtil.h.

◆ makeWritable()

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

Definition at line 272 of file ThreadSafetyUtil.h.

Referenced by maybeUpdateVD().

◆ operator=()

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

Definition at line 286 of file ThreadSafetyUtil.h.

◆ operator[]()

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

Definition at line 300 of file ThreadSafetyUtil.h.

◆ push_back()

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

Definition at line 314 of file ThreadSafetyUtil.h.

Referenced by maybeUpdateVD().

◆ sameAs()

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

Definition at line 305 of file ThreadSafetyUtil.h.

◆ size()

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

Definition at line 302 of file ThreadSafetyUtil.h.

Referenced by maybeUpdateVD().

◆ valid()

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

Definition at line 248 of file ThreadSafetyUtil.h.

◆ writable()

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

Definition at line 251 of file ThreadSafetyUtil.h.


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