multi_geom< d, ALLOC > Class Template Reference

#include <container_classes.h>

Collaboration diagram for multi_geom< d, ALLOC >:
[legend]

Public Types

typedef size_t size_type

Public Member Functions

 multi_geom ()
 multi_geom (const multi_geom &m)
 ~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>
class multi_geom< d, ALLOC >

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 294 of file container_classes.h.


Member Typedef Documentation

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

Definition at line 297 of file container_classes.h.


Constructor & Destructor Documentation

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

Definition at line 323 of file container_classes.h.

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

Definition at line 327 of file container_classes.h.

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

Definition at line 332 of file container_classes.h.


Member Function Documentation

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

Definition at line 336 of file container_classes.h.

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

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

Definition at line 399 of file container_classes.h.

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

Definition at line 341 of file container_classes.h.

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

sizes of each of the pointer arrays

Definition at line 307 of file container_classes.h.

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

template<int d, mem_layout ALLOC = MEM_LAYOUT_VAL>
void multi_geom< d, ALLOC >::p_clear1 (  )  [inline, private]
template<int d, mem_layout ALLOC = MEM_LAYOUT_VAL>
void multi_geom< d, ALLOC >::p_setupArray ( size_type  n1[],
size_type  n2[],
const tree_vec w,
int  l 
) [inline, private]
template<int d, mem_layout ALLOC = MEM_LAYOUT_VAL>
void multi_geom< d, ALLOC >::reserve ( const size_type  n,
const size_type  index[] 
) [inline]
template<int d, mem_layout ALLOC = MEM_LAYOUT_VAL>
void multi_geom< d, ALLOC >::reserve_recursive ( const size_type  n,
size_type  index[] 
) [inline]

Field Documentation

template<int d, mem_layout ALLOC = MEM_LAYOUT_VAL>
size_type multi_geom< d, ALLOC >::nsl[d]
template<int d, mem_layout ALLOC = MEM_LAYOUT_VAL>
size_type multi_geom< d, ALLOC >::s[d]
template<int d, mem_layout ALLOC = MEM_LAYOUT_VAL>
size_type multi_geom< d, ALLOC >::size
template<int d, mem_layout ALLOC = MEM_LAYOUT_VAL>
size_type multi_geom< d, ALLOC >::st[d]

size of each dimension (only used in C_TYPE layout)

Definition at line 303 of file container_classes.h.

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

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

The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 15 Nov 2012 for cloudy by  doxygen 1.6.1