Cloudy
Spectral Synthesis Code for Astrophysics
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
flex_arr< T, lgBC > Class Template Reference

#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 long size_type
 
typedef ptrdiff_t difference_type
 
typedef pntr< T, lgBC > iterator
 
typedef const_pntr< T, lgBC > const_iterator
 

Public Member Functions

 flex_arr ()
 
 flex_arr (size_type begin, size_type end)
 
 flex_arr (const flex_arr &f)
 
 ~flex_arr ()
 
const flex_arroperator= (const flex_arr &f)
 
void clear ()
 
void zero ()
 
void invalidate ()
 
void reserve (size_type size)
 
void alloc (size_type begin, size_type end)
 
void realloc (size_type end)
 
reference operator[] (size_type i)
 
const_reference operator[] (size_type i) const
 
reference at (size_type i)
 
const_reference at (size_type i) const
 
iterator ptr (size_type i)
 
const_iterator ptr (size_type i) const
 
iterator begin ()
 
const_iterator begin () const
 
iterator end ()
 
const_iterator end () const
 
reference front ()
 
const_reference front () const
 
reference back ()
 
const_reference back () const
 
size_type size () const
 
size_type capacity () const
 
bool empty () const
 
pointer data ()
 
const_pointer data () const
 
pointer ptr0 ()
 
const_pointer ptr0 () const
 

Private Member Functions

void p_clear0 ()
 
void p_clear1 ()
 
T * p_alloc (size_t size) const
 
void p_free (T *p) const
 
pointer p_pointer (size_type i) const
 
iterator p_iterator (size_type i) const
 
bool p_lgInbounds (size_type i) const
 
reference p_index (size_type i) const
 

Private Attributes

size_t p_size
 
long p_begin
 
long p_end
 
bool p_init
 
T * p_ptr_alloc
 
T * p_ptr
 

Member Typedef Documentation

template<class T, bool lgBC = lgBOUNDSCHECKVAL>
typedef const_pntr<T,lgBC> flex_arr< T, lgBC >::const_iterator
template<class T, bool lgBC = lgBOUNDSCHECKVAL>
typedef const T* flex_arr< T, lgBC >::const_pointer
template<class T, bool lgBC = lgBOUNDSCHECKVAL>
typedef const T& flex_arr< T, lgBC >::const_reference
template<class T, bool lgBC = lgBOUNDSCHECKVAL>
typedef ptrdiff_t flex_arr< T, lgBC >::difference_type
template<class T, bool lgBC = lgBOUNDSCHECKVAL>
typedef pntr<T,lgBC> flex_arr< T, lgBC >::iterator
template<class T, bool lgBC = lgBOUNDSCHECKVAL>
typedef random_access_iterator_tag flex_arr< T, lgBC >::iterator_category
template<class T, bool lgBC = lgBOUNDSCHECKVAL>
typedef T* flex_arr< T, lgBC >::pointer
template<class T, bool lgBC = lgBOUNDSCHECKVAL>
typedef T& flex_arr< T, lgBC >::reference
template<class T, bool lgBC = lgBOUNDSCHECKVAL>
typedef long flex_arr< T, lgBC >::size_type
template<class T, bool lgBC = lgBOUNDSCHECKVAL>
typedef T flex_arr< T, lgBC >::value_type

Constructor & Destructor Documentation

template<class T, bool lgBC = lgBOUNDSCHECKVAL>
flex_arr< T, lgBC >::flex_arr ( )
inline
template<class T, bool lgBC = lgBOUNDSCHECKVAL>
flex_arr< T, lgBC >::flex_arr ( size_type  begin,
size_type  end 
)
inline
template<class T, bool lgBC = lgBOUNDSCHECKVAL>
flex_arr< T, lgBC >::flex_arr ( const flex_arr< T, lgBC > &  f)
inline
template<class T, bool lgBC = lgBOUNDSCHECKVAL>
flex_arr< T, lgBC >::~flex_arr ( )
inline

Member Function Documentation

template<class T, bool lgBC = lgBOUNDSCHECKVAL>
void flex_arr< T, lgBC >::alloc ( size_type  begin,
size_type  end 
)
inline
template<class T, bool lgBC = lgBOUNDSCHECKVAL>
reference flex_arr< T, lgBC >::at ( size_type  i)
inline
template<class T, bool lgBC = lgBOUNDSCHECKVAL>
const_reference flex_arr< T, lgBC >::at ( size_type  i) const
inline
template<class T, bool lgBC = lgBOUNDSCHECKVAL>
reference flex_arr< T, lgBC >::back ( )
inline
template<class T, bool lgBC = lgBOUNDSCHECKVAL>
const_reference flex_arr< T, lgBC >::back ( ) const
inline
template<class T, bool lgBC = lgBOUNDSCHECKVAL>
iterator flex_arr< T, lgBC >::begin ( )
inline
template<class T, bool lgBC = lgBOUNDSCHECKVAL>
const_iterator flex_arr< T, lgBC >::begin ( ) const
inline
template<class T, bool lgBC = lgBOUNDSCHECKVAL>
size_type flex_arr< T, lgBC >::capacity ( ) const
inline
template<class T, bool lgBC = lgBOUNDSCHECKVAL>
void flex_arr< T, lgBC >::clear ( )
inline
template<class T, bool lgBC = lgBOUNDSCHECKVAL>
pointer flex_arr< T, lgBC >::data ( )
inline
template<class T, bool lgBC = lgBOUNDSCHECKVAL>
const_pointer flex_arr< T, lgBC >::data ( ) const
inline
template<class T, bool lgBC = lgBOUNDSCHECKVAL>
bool flex_arr< T, lgBC >::empty ( ) const
inline
template<class T, bool lgBC = lgBOUNDSCHECKVAL>
iterator flex_arr< T, lgBC >::end ( )
inline
template<class T, bool lgBC = lgBOUNDSCHECKVAL>
const_iterator flex_arr< T, lgBC >::end ( ) const
inline
template<class T, bool lgBC = lgBOUNDSCHECKVAL>
reference flex_arr< T, lgBC >::front ( )
inline
template<class T, bool lgBC = lgBOUNDSCHECKVAL>
const_reference flex_arr< T, lgBC >::front ( ) const
inline
template<class T, bool lgBC = lgBOUNDSCHECKVAL>
void flex_arr< T, lgBC >::invalidate ( )
inline
template<class T, bool lgBC = lgBOUNDSCHECKVAL>
const flex_arr& flex_arr< T, lgBC >::operator= ( const flex_arr< T, lgBC > &  f)
inline
template<class T, bool lgBC = lgBOUNDSCHECKVAL>
reference flex_arr< T, lgBC >::operator[] ( size_type  i)
inline
template<class T, bool lgBC = lgBOUNDSCHECKVAL>
const_reference flex_arr< T, lgBC >::operator[] ( size_type  i) const
inline
template<class T, bool lgBC = lgBOUNDSCHECKVAL>
T* flex_arr< T, lgBC >::p_alloc ( size_t  size) const
inlineprivate
template<class T, bool lgBC = lgBOUNDSCHECKVAL>
void flex_arr< T, lgBC >::p_clear0 ( )
inlineprivate
template<class T, bool lgBC = lgBOUNDSCHECKVAL>
void flex_arr< T, lgBC >::p_clear1 ( )
inlineprivate
template<class T, bool lgBC = lgBOUNDSCHECKVAL>
void flex_arr< T, lgBC >::p_free ( T *  p) const
inlineprivate
template<class T, bool lgBC = lgBOUNDSCHECKVAL>
reference flex_arr< T, lgBC >::p_index ( size_type  i) const
inlineprivate
template<class T, bool lgBC = lgBOUNDSCHECKVAL>
iterator flex_arr< T, lgBC >::p_iterator ( size_type  i) const
inlineprivate

Referenced by flex_arr< double >::ptr().

template<class T, bool lgBC = lgBOUNDSCHECKVAL>
bool flex_arr< T, lgBC >::p_lgInbounds ( size_type  i) const
inlineprivate
template<class T, bool lgBC = lgBOUNDSCHECKVAL>
pointer flex_arr< T, lgBC >::p_pointer ( size_type  i) const
inlineprivate
template<class T, bool lgBC = lgBOUNDSCHECKVAL>
iterator flex_arr< T, lgBC >::ptr ( size_type  i)
inline
template<class T, bool lgBC = lgBOUNDSCHECKVAL>
const_iterator flex_arr< T, lgBC >::ptr ( size_type  i) const
inline
template<class T, bool lgBC = lgBOUNDSCHECKVAL>
pointer flex_arr< T, lgBC >::ptr0 ( )
inline
template<class T, bool lgBC = lgBOUNDSCHECKVAL>
const_pointer flex_arr< T, lgBC >::ptr0 ( ) const
inline
template<class T, bool lgBC = lgBOUNDSCHECKVAL>
void flex_arr< T, lgBC >::realloc ( size_type  end)
inline

Referenced by InitBinAugerData().

template<class T, bool lgBC = lgBOUNDSCHECKVAL>
void flex_arr< T, lgBC >::reserve ( size_type  size)
inline
template<class T, bool lgBC = lgBOUNDSCHECKVAL>
size_type flex_arr< T, lgBC >::size ( void  ) const
inline
template<class T, bool lgBC = lgBOUNDSCHECKVAL>
void flex_arr< T, lgBC >::zero ( void  )
inline

Referenced by InitBinAugerData().

Member Data Documentation

template<class T, bool lgBC = lgBOUNDSCHECKVAL>
bool flex_arr< T, lgBC >::p_init
private

The documentation for this class was generated from the following file: