PPL Logo

AllocTable2d< T > Class Template Reference
[ParFUM Unstructured Mesh Framework]

A heap-allocatable, resizable BasicTable2d. More...

#include <fem_mesh.h>

Inheritance diagram for AllocTable2d< T >:

Inheritance graph
[legend]
Collaboration diagram for AllocTable2d< T >:

Collaboration graph
[legend]

Public Member Functions

 AllocTable2d (int cols_=0, int rows_=0, T fill_=0)
 ~AllocTable2d ()
void allocate (int rows_)
 Make room for this many rows.
void allocate (int cols_, int rows_, int max_=0)
 Make room for this many cols & rows.
void pup (PUP::er &p)
 Pup routine and operator|:.
void pupSingle (PUP::er &p, int pupindx)
T * push_back (void)
 Add a row to the table (by analogy with std::vector):.
void register_data (T *user, int len, int max_)
 to support replacement of attribute data by user supplied data error checks have been performed at FEM_ATTRIB
 AllocTable2d (int cols_=0, int rows_=0, T fill_=0)
 default constructor
 ~AllocTable2d ()
 default destructor
void allocate (int rows_)
 Make room for this many rows.
void allocate (int cols_, int rows_, int max_=0)
 Make room for this many cols & rows.
void pup (PUP::er &p)
 Pup routine and operator|:.
void pupSingle (PUP::er &p, int pupindx)
 Pup only one element which is at index 'pupindx' in the table.
T * push_back (void)
 Add a row to the table (by analogy with std::vector):.
void register_data (T *user, int len, int max)
 to support replacement of attribute data by user supplied data error checks have been performed at FEM_ATTRIB

Private Attributes

int max
 Maximum number of rows that can be used without reallocation.
fill
 Value to fill uninitialized regions with.
T * allocTable
T * allocTable
 the table that I allocated

Friends

void operator| (PUP::er &p, AllocTable2d< T > &t)
void operator| (PUP::er &p, AllocTable2d< T > &t)

Detailed Description

template<class T>
class AllocTable2d< T >

A heap-allocatable, resizable BasicTable2d.

To be stored here, T must not require a copy constructor.

A heap-allocatable, resizable BasicTable2d. To be stored here, T must not require a copy constructor.

Definition at line 202 of file fem_mesh.h.


Constructor & Destructor Documentation

template<class T>
AllocTable2d< T >::AllocTable2d ( int  cols_ = 0,
int  rows_ = 0,
fill_ = 0 
) [inline]

Definition at line 207 of file fem_mesh.h.

template<class T>
AllocTable2d< T >::~AllocTable2d (  )  [inline]

Definition at line 212 of file fem_mesh.h.

template<class T>
AllocTable2d< T >::AllocTable2d ( int  cols_ = 0,
int  rows_ = 0,
fill_ = 0 
) [inline]

default constructor

Definition at line 274 of file ParFUM_internals.h.

template<class T>
AllocTable2d< T >::~AllocTable2d (  )  [inline]

default destructor

Definition at line 281 of file ParFUM_internals.h.


Member Function Documentation

template<class T>
void AllocTable2d< T >::allocate ( int  rows_  )  [inline]

Make room for this many rows.

Definition at line 214 of file fem_mesh.h.

Referenced by AllocTable2d< unsigned char >::allocate(), AllocTable2d< unsigned char >::AllocTable2d(), allocTablePtr(), AllocTable2d< unsigned char >::pup(), and AllocTable2d< unsigned char >::push_back().

Here is the caller graph for this function:

template<class T>
void AllocTable2d< T >::allocate ( int  cols_,
int  rows_,
int  max_ = 0 
) [inline]

Make room for this many cols & rows.

Definition at line 218 of file fem_mesh.h.

template<class T>
void AllocTable2d< T >::pup ( PUP::er p  )  [inline]

Pup routine and operator|:.

Definition at line 251 of file fem_mesh.h.

template<class T>
void AllocTable2d< T >::pupSingle ( PUP::er p,
int  pupindx 
) [inline]

Definition at line 257 of file fem_mesh.h.

template<class T>
T* AllocTable2d< T >::push_back ( void   )  [inline]

Add a row to the table (by analogy with std::vector):.

Definition at line 264 of file fem_mesh.h.

template<class T>
void AllocTable2d< T >::register_data ( T *  user,
int  len,
int  max_ 
) [inline]

to support replacement of attribute data by user supplied data error checks have been performed at FEM_ATTRIB

Definition at line 278 of file fem_mesh.h.

template<class T>
void AllocTable2d< T >::allocate ( int  rows_  )  [inline]

Make room for this many rows.

Definition at line 283 of file ParFUM_internals.h.

template<class T>
void AllocTable2d< T >::allocate ( int  cols_,
int  rows_,
int  max_ = 0 
) [inline]

Make room for this many cols & rows.

Definition at line 287 of file ParFUM_internals.h.

template<class T>
void AllocTable2d< T >::pup ( PUP::er p  )  [inline]

Pup routine and operator|:.

Definition at line 326 of file ParFUM_internals.h.

template<class T>
void AllocTable2d< T >::pupSingle ( PUP::er p,
int  pupindx 
) [inline]

Pup only one element which is at index 'pupindx' in the table.

Definition at line 332 of file ParFUM_internals.h.

template<class T>
T* AllocTable2d< T >::push_back ( void   )  [inline]

Add a row to the table (by analogy with std::vector):.

Definition at line 342 of file ParFUM_internals.h.

template<class T>
void AllocTable2d< T >::register_data ( T *  user,
int  len,
int  max 
) [inline]

to support replacement of attribute data by user supplied data error checks have been performed at FEM_ATTRIB

Definition at line 355 of file ParFUM_internals.h.


Friends And Related Function Documentation

template<class T>
void operator| ( PUP::er p,
AllocTable2d< T > &  t 
) [friend]

Definition at line 261 of file fem_mesh.h.

template<class T>
void operator| ( PUP::er p,
AllocTable2d< T > &  t 
) [friend]

Definition at line 339 of file ParFUM_internals.h.


Field Documentation

template<class T>
int AllocTable2d< T >::max [private]

Maximum number of rows that can be used without reallocation.

Definition at line 203 of file fem_mesh.h.

Referenced by AllocTable2d< unsigned char >::allocate(), AllocTable2d< unsigned char >::push_back(), and AllocTable2d< unsigned char >::register_data().

template<class T>
T AllocTable2d< T >::fill [private]

Value to fill uninitialized regions with.

Definition at line 204 of file fem_mesh.h.

Referenced by AllocTable2d< unsigned char >::allocate().

template<class T>
T* AllocTable2d< T >::allocTable [private]

template<class T>
T* AllocTable2d< T >::allocTable [private]

the table that I allocated

Definition at line 271 of file ParFUM_internals.h.


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

Generated on Mon Sep 21 08:17:17 2020 for Charm++ by  doxygen 1.5.5