template <class T> class CWVec Copy on write data vector class template.
| | CWVec (size_type L=0, const T* data=0, bool cpy=true) Basic constructor. |
| | CWVec (const CWVec& x) Limited copy constructor. |
| | ~CWVec (void) Destructor. |
| | access (void) Request a writeable copy of the data vector. |
| | capacity (void) const Internal vector capacity |
| | clear (void) Zero the data length. |
| | replace (vec_node* v) Replace the vector node. |
| | release (void) Release a read instance. |
| | size (void) const Get the CW vector size. |
| | ref (void) const Get a constant reference to the data vector. |
| | ref (void) Get a writable reference to the data vector. |
| | reserve (size_type N) Insure that a vector of the specified size is available. |
| | resize (size_type N) Shrink or extend the vector with uninitialized data. |
| | shared (void) const Test whether vector is shared. |
| | substr (size_type inx=0, size_type len=0) take a substring of the current vector. |
| | operator= (const CWVec& v) Get a constant reference to a data word. |
| | operator[] (size_type i) const Get a constant reference to a data word. |
| | operator[] (size_type i) Get a writable reference to a data word. |
The CWVec classes allow data to be shared by more than one Data vector without forcing a copy. This is especially useful for reducing overheads when passing ownership of long data vectors. A data vector can be copied using the Clone() method, and when write access is needed, Access() is used.
explicit CWVec(const CWVec& x)
~CWVec(void)
void access(void)
size_type capacity(void) const
void clear(void)
void replace(vec_node* v)
void release(void)
size_type size(void) const
const T* ref(void) const
T* ref(void)
void reserve(size_type N)
void resize(size_type N)
bool shared(void) const
void substr(size_type inx=0, size_type len=0)
CWVec& operator=(const CWVec& v)
const T& operator[](size_type i) const
T& operator[](size_type i)
alphabetic index hierarchy of classes
Please send questions and comments to zweizig_j@ligo.caltech.edu
generated by doc++