cloudy
trunk
|
#include <container_classes.h>
Public Types | |
typedef random_access_iterator_tag | iterator_category |
typedef T | value_type |
typedef T & | reference |
typedef const T & | const_reference |
typedef T * | pointer |
typedef const T * | const_pointer |
typedef size_t | size_type |
typedef ptrdiff_t | difference_type |
Public Member Functions | |
basic_pntr (T *p0, T *p1, T *p2) | |
basic_pntr (T *p0) | |
basic_pntr () | |
basic_pntr (const basic_pntr &t) | |
basic_pntr & | operator++ () |
basic_pntr & | operator-- () |
basic_pntr & | operator+= (const ptrdiff_t n) |
basic_pntr & | operator-= (const ptrdiff_t n) |
T & | operator* () const |
T * | operator-> () const |
T & | operator[] (const ptrdiff_t n) const |
bool | operator== (const basic_pntr &t) const |
bool | operator!= (const basic_pntr &t) const |
bool | operator< (const basic_pntr &t) const |
bool | operator<= (const basic_pntr &t) const |
bool | operator> (const basic_pntr &t) const |
bool | operator>= (const basic_pntr &t) const |
Protected Member Functions | |
~basic_pntr () | |
Private Member Functions | |
T * | p_index_checked (const ptrdiff_t n) const |
void | p_set_vals (T *p0, T *p1, T *p2) |
Private Attributes | |
T * | p_p [p_nd] |
Static Private Attributes | |
static const int | p_nd = lgBC ? 3 : 1 |
basic_pntr - base class for generalization of normal pointers that enables bounds checking it comes with the full set of operators that you would expect for a random access pointer
Definition at line 29 of file container_classes.h.
typedef const T* basic_pntr< T, lgBC >::const_pointer |
Definition at line 67 of file container_classes.h.
typedef const T& basic_pntr< T, lgBC >::const_reference |
Definition at line 65 of file container_classes.h.
typedef ptrdiff_t basic_pntr< T, lgBC >::difference_type |
Definition at line 69 of file container_classes.h.
typedef random_access_iterator_tag basic_pntr< T, lgBC >::iterator_category |
Definition at line 62 of file container_classes.h.
typedef T* basic_pntr< T, lgBC >::pointer |
Definition at line 66 of file container_classes.h.
typedef T& basic_pntr< T, lgBC >::reference |
Definition at line 64 of file container_classes.h.
typedef size_t basic_pntr< T, lgBC >::size_type |
Definition at line 68 of file container_classes.h.
typedef T basic_pntr< T, lgBC >::value_type |
Definition at line 63 of file container_classes.h.
|
inline |
Definition at line 72 of file container_classes.h.
References basic_pntr< T, lgBC >::p_set_vals().
|
inline |
Definition at line 76 of file container_classes.h.
References basic_pntr< T, lgBC >::p_set_vals().
|
inline |
Definition at line 80 of file container_classes.h.
References basic_pntr< T, lgBC >::p_set_vals().
|
inline |
Definition at line 84 of file container_classes.h.
|
inlineprotected |
Definition at line 90 of file container_classes.h.
|
inline |
Definition at line 125 of file container_classes.h.
References basic_pntr< T, lgBC >::p_p.
|
inline |
Definition at line 111 of file container_classes.h.
References basic_pntr< T, lgBC >::p_index_checked().
Referenced by const_pntr< T, lgBC >::operator*().
|
inline |
Definition at line 93 of file container_classes.h.
References basic_pntr< T, lgBC >::p_p.
Referenced by pntr< T, lgBC >::operator++(), and const_pntr< T, lgBC >::operator++().
|
inline |
Definition at line 108 of file container_classes.h.
References basic_pntr< T, lgBC >::p_p.
Referenced by const_pntr< T, lgBC >::operator+=().
|
inline |
Definition at line 99 of file container_classes.h.
References basic_pntr< T, lgBC >::p_p.
Referenced by pntr< T, lgBC >::operator--(), and const_pntr< T, lgBC >::operator--().
|
inline |
Definition at line 109 of file container_classes.h.
References basic_pntr< T, lgBC >::p_p.
Referenced by const_pntr< T, lgBC >::operator-=().
|
inline |
Definition at line 115 of file container_classes.h.
References basic_pntr< T, lgBC >::p_index_checked().
Referenced by const_pntr< T, lgBC >::operator->().
|
inline |
Definition at line 126 of file container_classes.h.
References basic_pntr< T, lgBC >::p_p.
|
inline |
Definition at line 127 of file container_classes.h.
References basic_pntr< T, lgBC >::p_p.
|
inline |
Definition at line 124 of file container_classes.h.
References basic_pntr< T, lgBC >::p_p.
|
inline |
Definition at line 128 of file container_classes.h.
References basic_pntr< T, lgBC >::p_p.
|
inline |
Definition at line 129 of file container_classes.h.
References basic_pntr< T, lgBC >::p_p.
|
inline |
Definition at line 119 of file container_classes.h.
References basic_pntr< T, lgBC >::p_index_checked().
Referenced by const_pntr< T, lgBC >::operator[]().
|
inlineprivate |
Definition at line 34 of file container_classes.h.
References OUT_OF_RANGE(), and basic_pntr< T, lgBC >::p_p.
Referenced by basic_pntr< T, lgBC >::operator*(), basic_pntr< T, lgBC >::operator->(), and basic_pntr< T, lgBC >::operator[]().
|
inlineprivate |
Definition at line 48 of file container_classes.h.
References basic_pntr< T, lgBC >::p_p.
Referenced by basic_pntr< T, lgBC >::basic_pntr().
|
staticprivate |
Definition at line 31 of file container_classes.h.
|
private |
Definition at line 32 of file container_classes.h.
Referenced by basic_pntr< T, lgBC >::operator!=(), basic_pntr< T, lgBC >::operator++(), basic_pntr< T, lgBC >::operator+=(), basic_pntr< T, lgBC >::operator--(), basic_pntr< T, lgBC >::operator-=(), basic_pntr< T, lgBC >::operator<(), basic_pntr< T, lgBC >::operator<=(), basic_pntr< T, lgBC >::operator==(), basic_pntr< T, lgBC >::operator>(), basic_pntr< T, lgBC >::operator>=(), basic_pntr< T, lgBC >::p_index_checked(), and basic_pntr< T, lgBC >::p_set_vals().