Cloudy
Spectral Synthesis Code for Astrophysics
|
#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 & | operator= (const basic_pntr &)=default |
basic_pntr (const basic_pntr &t)=default | |
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
typedef const T* basic_pntr< T, lgBC >::const_pointer |
typedef const T& basic_pntr< T, lgBC >::const_reference |
typedef ptrdiff_t basic_pntr< T, lgBC >::difference_type |
typedef random_access_iterator_tag basic_pntr< T, lgBC >::iterator_category |
typedef T* basic_pntr< T, lgBC >::pointer |
typedef T& basic_pntr< T, lgBC >::reference |
typedef size_t basic_pntr< T, lgBC >::size_type |
typedef T basic_pntr< T, lgBC >::value_type |
|
inline |
References p_set_vals().
Referenced by basic_pntr(), const_pntr< T, lgBC >::const_pntr(), const_pntr< T, lgBC >::const_pntr(), const_pntr< T, lgBC >::const_pntr(), operator!=(), operator++(), operator+=(), operator--(), operator-=(), operator<(), operator<=(), operator=(), operator==(), operator>(), operator>=(), pntr< T, lgBC >::pntr(), and pntr< T, lgBC >::pntr().
|
inline |
|
inline |
|
default |
|
inlineprotected |
|
inline |
|
inline |
References p_index_checked().
Referenced by const_pntr< T, lgBC >::operator*().
|
inline |
References basic_pntr(), and p_p.
Referenced by const_pntr< T, lgBC >::operator++(), and pntr< T, lgBC >::operator++().
|
inline |
References basic_pntr(), and p_p.
Referenced by const_pntr< T, lgBC >::operator+=().
|
inline |
References basic_pntr(), and p_p.
Referenced by const_pntr< T, lgBC >::operator--(), and pntr< T, lgBC >::operator--().
|
inline |
References basic_pntr(), and p_p.
Referenced by const_pntr< T, lgBC >::operator-=().
|
inline |
References p_index_checked().
Referenced by const_pntr< T, lgBC >::operator->().
|
inline |
|
inline |
|
default |
|
inline |
|
inline |
|
inline |
|
inline |
References p_index_checked().
Referenced by const_pntr< T, lgBC >::operator[]().
|
inlineprivate |
References OUT_OF_RANGE(), and p_p.
Referenced by operator*(), operator->(), and operator[]().
|
inlineprivate |
References p_p.
Referenced by basic_pntr(), basic_pntr(), and basic_pntr().
|
staticprivate |
|
private |
Referenced by operator!=(), operator++(), operator+=(), operator--(), operator-=(), operator<(), operator<=(), operator==(), operator>(), operator>=(), p_index_checked(), and p_set_vals().