clang 20.0.0git
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

using const_iterator = typename std::vector< T >::const_iterator
 

Public Member Functions

 CopyOnWriteVector ()=default
 
 CopyOnWriteVector (CopyOnWriteVector &&V)
 
CopyOnWriteVectoroperator= (CopyOnWriteVector &&V)
 
 CopyOnWriteVector (const CopyOnWriteVector &)=delete
 
CopyOnWriteVectoroperator= (const CopyOnWriteVector &)=delete
 
 ~CopyOnWriteVector ()
 
bool valid () const
 
bool writable () const
 
void init ()
 
void destroy ()
 
void makeWritable ()
 
CopyOnWriteVector clone ()
 
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 235 of file ThreadSafetyUtil.h.

Member Typedef Documentation

◆ const_iterator

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

Definition at line 305 of file ThreadSafetyUtil.h.

Constructor & Destructor Documentation

◆ CopyOnWriteVector() [1/3]

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

◆ CopyOnWriteVector() [2/3]

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

Definition at line 251 of file ThreadSafetyUtil.h.

References V.

◆ CopyOnWriteVector() [3/3]

template<typename T >
clang::threadSafety::CopyOnWriteVector< T >::CopyOnWriteVector ( const CopyOnWriteVector< T > &  )
delete

◆ ~CopyOnWriteVector()

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

Member Function Documentation

◆ begin()

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

◆ clear()

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

◆ clone()

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

◆ destroy()

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

◆ downsize()

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

◆ elem()

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

◆ elements()

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

◆ end()

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

◆ init()

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

Definition at line 273 of file ThreadSafetyUtil.h.

◆ makeWritable()

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

Definition at line 291 of file ThreadSafetyUtil.h.

◆ operator=() [1/2]

template<typename T >
CopyOnWriteVector & clang::threadSafety::CopyOnWriteVector< T >::operator= ( const CopyOnWriteVector< T > &  )
delete

◆ operator=() [2/2]

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

◆ operator[]()

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

◆ push_back()

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

◆ sameAs()

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

Definition at line 317 of file ThreadSafetyUtil.h.

References V.

◆ size()

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

◆ valid()

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

Definition at line 267 of file ThreadSafetyUtil.h.

◆ writable()

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

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