multi_geom< d, ALLOC, lgBC > Class Template Reference

#include <container_classes.h>

Collaboration diagram for multi_geom< d, ALLOC, lgBC >:

Collaboration graph
[legend]

Public Types

typedef size_t size_type

Public Member Functions

 multi_geom ()
 ~multi_geom ()
void clear ()
const multi_geomoperator= (const multi_geom &m)
bool lgInbounds (const size_type n, const size_type index[]) const
void reserve (const size_type n, const size_type index[])
void reserve_recursive (const size_type n, size_type index[])
void finalize (void)

Data Fields

tree_vec v
size_type size
size_type s [d]
 allocated size (number of data elements, pointers are not counted)
size_type st [d]
 size of each dimension (only used in C_TYPE layout)
size_type nsl [d]
 stride for each dimension (only used in C_TYPE layout)

Private Member Functions

void p_clear0 ()
 sizes of each of the pointer arrays
void p_clear1 ()
void p_setupArray (size_type n1[], size_type n2[], const tree_vec *w, int l)

Detailed Description

template<int d, mem_layout ALLOC = MEM_LAYOUT_VAL, bool lgBC = lgBOUNDSCHECKVAL>
class multi_geom< d, ALLOC, lgBC >

multi_geom - this class maintains all the geometry information for multi_arr keeping it separate makes it easy to clone the information from one multi_arr to another

Definition at line 278 of file container_classes.h.


Member Typedef Documentation

template<int d, mem_layout ALLOC = MEM_LAYOUT_VAL, bool lgBC = lgBOUNDSCHECKVAL>
typedef size_t multi_geom< d, ALLOC, lgBC >::size_type

Definition at line 281 of file container_classes.h.


Constructor & Destructor Documentation

template<int d, mem_layout ALLOC = MEM_LAYOUT_VAL, bool lgBC = lgBOUNDSCHECKVAL>
multi_geom< d, ALLOC, lgBC >::multi_geom (  )  [inline]

Definition at line 307 of file container_classes.h.

template<int d, mem_layout ALLOC = MEM_LAYOUT_VAL, bool lgBC = lgBOUNDSCHECKVAL>
multi_geom< d, ALLOC, lgBC >::~multi_geom (  )  [inline]

Definition at line 311 of file container_classes.h.


Member Function Documentation

template<int d, mem_layout ALLOC = MEM_LAYOUT_VAL, bool lgBC = lgBOUNDSCHECKVAL>
void multi_geom< d, ALLOC, lgBC >::clear (  )  [inline]

Definition at line 315 of file container_classes.h.

Referenced by multi_geom< d, MEM_LAYOUT_VAL, lgBOUNDSCHECKVAL >::operator=().

template<int d, mem_layout ALLOC = MEM_LAYOUT_VAL, bool lgBC = lgBOUNDSCHECKVAL>
void multi_geom< d, ALLOC, lgBC >::finalize ( void   )  [inline]

Definition at line 378 of file container_classes.h.

template<int d, mem_layout ALLOC = MEM_LAYOUT_VAL, bool lgBC = lgBOUNDSCHECKVAL>
bool multi_geom< d, ALLOC, lgBC >::lgInbounds ( const size_type  n,
const size_type  index[] 
) const [inline]

Definition at line 336 of file container_classes.h.

Referenced by multi_geom< d, MEM_LAYOUT_VAL, lgBOUNDSCHECKVAL >::lgInbounds(), and multi_geom< d, MEM_LAYOUT_VAL, lgBOUNDSCHECKVAL >::reserve().

template<int d, mem_layout ALLOC = MEM_LAYOUT_VAL, bool lgBC = lgBOUNDSCHECKVAL>
const multi_geom& multi_geom< d, ALLOC, lgBC >::operator= ( const multi_geom< d, ALLOC, lgBC > &  m  )  [inline]

Definition at line 320 of file container_classes.h.

template<int d, mem_layout ALLOC = MEM_LAYOUT_VAL, bool lgBC = lgBOUNDSCHECKVAL>
void multi_geom< d, ALLOC, lgBC >::p_clear0 (  )  [inline, private]

sizes of each of the pointer arrays

Definition at line 291 of file container_classes.h.

Referenced by multi_geom< d, MEM_LAYOUT_VAL, lgBOUNDSCHECKVAL >::clear(), and multi_geom< d, MEM_LAYOUT_VAL, lgBOUNDSCHECKVAL >::~multi_geom().

template<int d, mem_layout ALLOC = MEM_LAYOUT_VAL, bool lgBC = lgBOUNDSCHECKVAL>
void multi_geom< d, ALLOC, lgBC >::p_clear1 (  )  [inline, private]

Definition at line 295 of file container_classes.h.

Referenced by multi_geom< d, MEM_LAYOUT_VAL, lgBOUNDSCHECKVAL >::clear(), and multi_geom< d, MEM_LAYOUT_VAL, lgBOUNDSCHECKVAL >::multi_geom().

template<int d, mem_layout ALLOC = MEM_LAYOUT_VAL, bool lgBC = lgBOUNDSCHECKVAL>
void multi_geom< d, ALLOC, lgBC >::p_setupArray ( size_type  n1[],
size_type  n2[],
const tree_vec w,
int  l 
) [inline, private]

Definition at line 409 of file container_classes.h.

Referenced by multi_geom< d, MEM_LAYOUT_VAL, lgBOUNDSCHECKVAL >::finalize(), and multi_geom< d, MEM_LAYOUT_VAL, lgBOUNDSCHECKVAL >::p_setupArray().

template<int d, mem_layout ALLOC = MEM_LAYOUT_VAL, bool lgBC = lgBOUNDSCHECKVAL>
void multi_geom< d, ALLOC, lgBC >::reserve ( const size_type  n,
const size_type  index[] 
) [inline]

Definition at line 343 of file container_classes.h.

Referenced by multi_geom< d, MEM_LAYOUT_VAL, lgBOUNDSCHECKVAL >::reserve_recursive().

template<int d, mem_layout ALLOC = MEM_LAYOUT_VAL, bool lgBC = lgBOUNDSCHECKVAL>
void multi_geom< d, ALLOC, lgBC >::reserve_recursive ( const size_type  n,
size_type  index[] 
) [inline]

Definition at line 357 of file container_classes.h.

Referenced by multi_geom< d, MEM_LAYOUT_VAL, lgBOUNDSCHECKVAL >::reserve_recursive().


Field Documentation

template<int d, mem_layout ALLOC = MEM_LAYOUT_VAL, bool lgBC = lgBOUNDSCHECKVAL>
size_type multi_geom< d, ALLOC, lgBC >::nsl[d]

stride for each dimension (only used in C_TYPE layout)

Definition at line 288 of file container_classes.h.

Referenced by multi_geom< d, MEM_LAYOUT_VAL, lgBOUNDSCHECKVAL >::finalize(), multi_geom< d, MEM_LAYOUT_VAL, lgBOUNDSCHECKVAL >::operator=(), multi_geom< d, MEM_LAYOUT_VAL, lgBOUNDSCHECKVAL >::p_clear1(), and multi_geom< d, MEM_LAYOUT_VAL, lgBOUNDSCHECKVAL >::reserve().

template<int d, mem_layout ALLOC = MEM_LAYOUT_VAL, bool lgBC = lgBOUNDSCHECKVAL>
size_type multi_geom< d, ALLOC, lgBC >::s[d]

allocated size (number of data elements, pointers are not counted)

Definition at line 286 of file container_classes.h.

Referenced by multi_geom< d, MEM_LAYOUT_VAL, lgBOUNDSCHECKVAL >::finalize(), multi_geom< d, MEM_LAYOUT_VAL, lgBOUNDSCHECKVAL >::operator=(), multi_geom< d, MEM_LAYOUT_VAL, lgBOUNDSCHECKVAL >::p_clear1(), and multi_geom< d, MEM_LAYOUT_VAL, lgBOUNDSCHECKVAL >::reserve().

template<int d, mem_layout ALLOC = MEM_LAYOUT_VAL, bool lgBC = lgBOUNDSCHECKVAL>
size_type multi_geom< d, ALLOC, lgBC >::size

Definition at line 285 of file container_classes.h.

Referenced by multi_geom< d, MEM_LAYOUT_VAL, lgBOUNDSCHECKVAL >::finalize(), multi_geom< d, MEM_LAYOUT_VAL, lgBOUNDSCHECKVAL >::operator=(), and multi_geom< d, MEM_LAYOUT_VAL, lgBOUNDSCHECKVAL >::p_clear1().

template<int d, mem_layout ALLOC = MEM_LAYOUT_VAL, bool lgBC = lgBOUNDSCHECKVAL>
size_type multi_geom< d, ALLOC, lgBC >::st[d]

size of each dimension (only used in C_TYPE layout)

Definition at line 287 of file container_classes.h.

Referenced by multi_geom< d, MEM_LAYOUT_VAL, lgBOUNDSCHECKVAL >::finalize(), multi_geom< d, MEM_LAYOUT_VAL, lgBOUNDSCHECKVAL >::operator=(), and multi_geom< d, MEM_LAYOUT_VAL, lgBOUNDSCHECKVAL >::p_clear1().

template<int d, mem_layout ALLOC = MEM_LAYOUT_VAL, bool lgBC = lgBOUNDSCHECKVAL>
tree_vec multi_geom< d, ALLOC, lgBC >::v

Definition at line 283 of file container_classes.h.

Referenced by multi_geom< d, MEM_LAYOUT_VAL, lgBOUNDSCHECKVAL >::finalize(), multi_geom< d, MEM_LAYOUT_VAL, lgBOUNDSCHECKVAL >::lgInbounds(), multi_geom< d, MEM_LAYOUT_VAL, lgBOUNDSCHECKVAL >::operator=(), multi_geom< d, MEM_LAYOUT_VAL, lgBOUNDSCHECKVAL >::p_clear0(), and multi_geom< d, MEM_LAYOUT_VAL, lgBOUNDSCHECKVAL >::reserve().


The documentation for this class was generated from the following file:
Generated on Mon Feb 16 12:14:23 2009 for cloudy by  doxygen 1.4.7