cloudy  trunk
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Types | Public Member Functions | Private Member Functions | Private Attributes
flex_arr< T, lgBC > Class Template Reference

#include <container_classes.h>

Collaboration diagram for flex_arr< T, lgBC >:
Collaboration graph
[legend]

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 state_do (FILE *out, bool lgGet)
 
void dump_state (FILE *out) const
 
void restore_state (FILE *in)
 
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
 

Detailed Description

template<class T, bool lgBC = lgBOUNDSCHECKVAL>
class flex_arr< T, lgBC >

Definition at line 1845 of file container_classes.h.

Member Typedef Documentation

template<class T, bool lgBC = lgBOUNDSCHECKVAL>
typedef const_pntr<T,lgBC> flex_arr< T, lgBC >::const_iterator

Definition at line 1865 of file container_classes.h.

template<class T, bool lgBC = lgBOUNDSCHECKVAL>
typedef const T* flex_arr< T, lgBC >::const_pointer

Definition at line 1861 of file container_classes.h.

template<class T, bool lgBC = lgBOUNDSCHECKVAL>
typedef const T& flex_arr< T, lgBC >::const_reference

Definition at line 1859 of file container_classes.h.

template<class T, bool lgBC = lgBOUNDSCHECKVAL>
typedef ptrdiff_t flex_arr< T, lgBC >::difference_type

Definition at line 1863 of file container_classes.h.

template<class T, bool lgBC = lgBOUNDSCHECKVAL>
typedef pntr<T,lgBC> flex_arr< T, lgBC >::iterator

Definition at line 1864 of file container_classes.h.

template<class T, bool lgBC = lgBOUNDSCHECKVAL>
typedef random_access_iterator_tag flex_arr< T, lgBC >::iterator_category

Definition at line 1856 of file container_classes.h.

template<class T, bool lgBC = lgBOUNDSCHECKVAL>
typedef T* flex_arr< T, lgBC >::pointer

Definition at line 1860 of file container_classes.h.

template<class T, bool lgBC = lgBOUNDSCHECKVAL>
typedef T& flex_arr< T, lgBC >::reference

Definition at line 1858 of file container_classes.h.

template<class T, bool lgBC = lgBOUNDSCHECKVAL>
typedef long flex_arr< T, lgBC >::size_type

Definition at line 1862 of file container_classes.h.

template<class T, bool lgBC = lgBOUNDSCHECKVAL>
typedef T flex_arr< T, lgBC >::value_type

Definition at line 1857 of file container_classes.h.

Constructor & Destructor Documentation

template<class T, bool lgBC = lgBOUNDSCHECKVAL>
flex_arr< T, lgBC >::flex_arr ( )
inline

Definition at line 1892 of file container_classes.h.

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

Definition at line 1896 of file container_classes.h.

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

Definition at line 1901 of file container_classes.h.

template<class T, bool lgBC = lgBOUNDSCHECKVAL>
flex_arr< T, lgBC >::~flex_arr ( )
inline

Definition at line 1906 of file container_classes.h.

Member Function Documentation

template<class T, bool lgBC = lgBOUNDSCHECKVAL>
void flex_arr< T, lgBC >::alloc ( size_type  begin,
size_type  end 
)
inline

Definition at line 1981 of file container_classes.h.

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

template<class T, bool lgBC = lgBOUNDSCHECKVAL>
reference flex_arr< T, lgBC >::at ( size_type  i)
inline

Definition at line 2075 of file container_classes.h.

template<class T, bool lgBC = lgBOUNDSCHECKVAL>
const_reference flex_arr< T, lgBC >::at ( size_type  i) const
inline

Definition at line 2081 of file container_classes.h.

template<class T, bool lgBC = lgBOUNDSCHECKVAL>
reference flex_arr< T, lgBC >::back ( )
inline

Definition at line 2126 of file container_classes.h.

template<class T, bool lgBC = lgBOUNDSCHECKVAL>
const_reference flex_arr< T, lgBC >::back ( ) const
inline

Definition at line 2130 of file container_classes.h.

template<class T, bool lgBC = lgBOUNDSCHECKVAL>
iterator flex_arr< T, lgBC >::begin ( )
inline

Definition at line 2099 of file container_classes.h.

Referenced by flex_arr< double >::alloc(), and flex_arr< double >::front().

template<class T, bool lgBC = lgBOUNDSCHECKVAL>
const_iterator flex_arr< T, lgBC >::begin ( ) const
inline

Definition at line 2103 of file container_classes.h.

template<class T, bool lgBC = lgBOUNDSCHECKVAL>
size_type flex_arr< T, lgBC >::capacity ( ) const
inline

Definition at line 2139 of file container_classes.h.

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

Definition at line 2148 of file container_classes.h.

template<class T, bool lgBC = lgBOUNDSCHECKVAL>
const_pointer flex_arr< T, lgBC >::data ( ) const
inline

Definition at line 2152 of file container_classes.h.

template<class T, bool lgBC = lgBOUNDSCHECKVAL>
void flex_arr< T, lgBC >::dump_state ( FILE *  out) const
inline

Definition at line 1953 of file container_classes.h.

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

template<class T, bool lgBC = lgBOUNDSCHECKVAL>
bool flex_arr< T, lgBC >::empty ( ) const
inline

Definition at line 2143 of file container_classes.h.

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

Definition at line 2112 of file container_classes.h.

template<class T, bool lgBC = lgBOUNDSCHECKVAL>
reference flex_arr< T, lgBC >::front ( )
inline

Definition at line 2117 of file container_classes.h.

template<class T, bool lgBC = lgBOUNDSCHECKVAL>
const_reference flex_arr< T, lgBC >::front ( ) const
inline

Definition at line 2121 of file container_classes.h.

template<class T, bool lgBC = lgBOUNDSCHECKVAL>
void flex_arr< T, lgBC >::invalidate ( )
inline

Definition at line 1941 of file container_classes.h.

template<class T, bool lgBC = lgBOUNDSCHECKVAL>
const flex_arr& flex_arr< T, lgBC >::operator= ( const flex_arr< T, lgBC > &  f)
inline

Definition at line 1910 of file container_classes.h.

template<class T, bool lgBC = lgBOUNDSCHECKVAL>
reference flex_arr< T, lgBC >::operator[] ( size_type  i)
inline

Definition at line 2066 of file container_classes.h.

template<class T, bool lgBC = lgBOUNDSCHECKVAL>
const_reference flex_arr< T, lgBC >::operator[] ( size_type  i) const
inline

Definition at line 2070 of file container_classes.h.

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

Definition at line 2051 of file container_classes.h.

Referenced by flex_arr< double >::operator[]().

template<class T, bool lgBC = lgBOUNDSCHECKVAL>
iterator flex_arr< T, lgBC >::p_iterator ( size_type  i) const
inlineprivate

Definition at line 2034 of file container_classes.h.

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

template<class T, bool lgBC = lgBOUNDSCHECKVAL>
bool flex_arr< T, lgBC >::p_lgInbounds ( size_type  i) const
inlineprivate

Definition at line 2046 of file container_classes.h.

Referenced by flex_arr< double >::at(), and flex_arr< double >::p_index().

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

Definition at line 2088 of file container_classes.h.

Referenced by flex_arr< double >::begin(), and flex_arr< double >::end().

template<class T, bool lgBC = lgBOUNDSCHECKVAL>
const_iterator flex_arr< T, lgBC >::ptr ( size_type  i) const
inline

Definition at line 2092 of file container_classes.h.

template<class T, bool lgBC = lgBOUNDSCHECKVAL>
pointer flex_arr< T, lgBC >::ptr0 ( )
inline

Definition at line 2157 of file container_classes.h.

Referenced by GrainElecEmis1(), GrainTemperature(), and UpdatePot1().

template<class T, bool lgBC = lgBOUNDSCHECKVAL>
const_pointer flex_arr< T, lgBC >::ptr0 ( ) const
inline

Definition at line 2161 of file container_classes.h.

template<class T, bool lgBC = lgBOUNDSCHECKVAL>
void flex_arr< T, lgBC >::realloc ( size_type  end)
inline

Definition at line 2002 of file container_classes.h.

Referenced by InitBinAugerData().

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

Definition at line 1964 of file container_classes.h.

template<class T, bool lgBC = lgBOUNDSCHECKVAL>
void flex_arr< T, lgBC >::restore_state ( FILE *  in)
inline

Definition at line 1958 of file container_classes.h.

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

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

Definition at line 2135 of file container_classes.h.

Referenced by flex_arr< double >::empty(), and flex_arr< double >::p_alloc().

template<class T, bool lgBC = lgBOUNDSCHECKVAL>
void flex_arr< T, lgBC >::state_do ( FILE *  out,
bool  lgGet 
)
inline

Definition at line 1945 of file container_classes.h.

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

Definition at line 1936 of file container_classes.h.

Referenced by InitBinAugerData().

Field Documentation

template<class T, bool lgBC = lgBOUNDSCHECKVAL>
long flex_arr< T, lgBC >::p_begin
private
template<class T, bool lgBC = lgBOUNDSCHECKVAL>
long flex_arr< T, lgBC >::p_end
private
template<class T, bool lgBC = lgBOUNDSCHECKVAL>
bool flex_arr< T, lgBC >::p_init
private
template<class T, bool lgBC = lgBOUNDSCHECKVAL>
T* flex_arr< T, lgBC >::p_ptr
private
template<class T, bool lgBC = lgBOUNDSCHECKVAL>
T* flex_arr< T, lgBC >::p_ptr_alloc
private
template<class T, bool lgBC = lgBOUNDSCHECKVAL>
size_t flex_arr< T, lgBC >::p_size
private

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