|
| | ref_arr (T *a=0, counter_type *c=0) |
| | construct reference counted pointer
|
| |
| | ref_arr (const ref_arr< T > &ra) |
| | copy construct from same pointer type and increment count
|
| |
| | ~ref_arr () |
| | destruct reference counted pointer
|
| |
| ref_arr< T > & | operator= (const ref_arr< T > &ra) |
| | assignment to pointer of same type
|
| |
| T * | ptr () const |
| | return array pointer
|
| |
| T & | operator* () const |
| | access to element
|
| |
| T * | operator-> () const |
| | access to element pointer
|
| |
| T & | operator[] (int i) |
| | access to i-th element
|
| |
| ref_arr< T > | operator() (int i) const |
| | return an array pointer pointing to the i-th element
|
| |
| bool | operator== (const ref_arr< T > &ra) const |
| | compare by pointer
|
| |
| int | get_count () const |
| | return current count
|
| |
| bool | unique () const |
| | check if this is the only reference
|
| |
| bool | empty () const |
| | check if pointer is not yet set
|
| |
| | operator bool () const |
| | conversion to bool results in false if the stored pointer is a null pointer
|
| |
| void | clear () |
| | clear the array pointer
|
| |
template<typename T>
class cgv::data::ref_arr< T >
Definition at line 12 of file ref_arr.h.