template < class C > class CWTemp Copy on write data vector class template.
| | size_type General purpose data length type |
| | container_type Underlying container type |
| | node_type Node containing the use count and a data container |
| | iterator Iterator borrowed from the container |
| | const_iterator Constant iterator borrowed from container |
| | value_type Data type borrowed from container |
| | CWTemp (void) Default constructor |
| | CWTemp (size_type N) Copy constructor. |
| | CWTemp (const CWTemp& x) Copy constructor. |
| | ~CWTemp (void) Destructor. |
| | operator= (const CWTemp& x) Create a new read instance. |
| | getSize (void) const Get the CW vector size. |
| | getLength (void) const Get the CW vector size. |
| | begin (void) const Get an iterator to the first element |
| | begin (void) Get an iterator to the first element |
| | end (void) const Get an iterator to the last element |
| | end (void) Get an iterator to the last element |
| | getRef (void) const Get a constant reference to the data vector. |
| | getRef (void) Get a writable reference to the data vector. |
| | 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 CWTemp template classes allow data in a specified container 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 assignment (=) operator, and the data container is referenced with the getRef method.
typedef C container_type
typedef std::pair <size_type, container_type> node_type
typedef typename C::iterator iterator
typedef typename C::const_iterator const_iterator
typedef typename C::value_type value_type
CWTemp(void)
explicit CWTemp(size_type N)
CWTemp(const CWTemp& x)
~CWTemp(void)
CWTemp& operator=(const CWTemp& x)
size_type getSize(void) const
size_type getLength(void) const
const_iterator begin(void) const
iterator begin(void)
const_iterator end(void) const
iterator end(void)
const container_type& getRef(void) const
container_type& getRef(void)
const value_type& operator[](size_type i) const
value_type& operator[](size_type i)
alphabetic index hierarchy of classes
Please send questions and comments to zweizig_j@ligo.caltech.edu
generated by doc++