PPL Logo

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

This is a simple 2D table. More...

#include <fem_mesh.h>

Inheritance diagram for BasicTable2d< T >:

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

Collaboration graph
[legend]

Public Member Functions

 BasicTable2d (T *src, int cols_, int rows_)
int size (void) const
 "size" of the table is the number of rows:
int width (void) const
 Width of the table is the number of columns:.
T * getData (void)
const T * getData (void) const
operator() (int r, int c) const
 Element-by-element operations:.
T & operator() (int r, int c)
T * getRow (int r)
 Row-by-row operations.
const T * getRow (int r) const
void getRow (int r, T *dest, T idxBase=0) const
T * operator[] (int r)
const T * operator[] (int r) const
void setRow (int r, const T *src, T idxBase=0)
void setRow (int r, T value)
void set (const T *src, T idxBase=0)
 These affect the entire table:.
void setTranspose (const T *srcT, int idxBase=0)
void get (T *dest, T idxBase=0) const
void getTranspose (T *destT, int idxBase=0) const
void set (T value)
 BasicTable2d (T *src, int cols_, int rows_)
int size (void) const
 "size" of the table is the number of rows:
int width (void) const
 Width of the table is the number of columns:.
T * getData (void)
const T * getData (void) const
operator() (int r, int c) const
T & operator() (int r, int c)
T * getRow (int r)
 Get a pointer to a row of the table:.
const T * getRow (int r) const
 Get a const pointer to a row of the table:.
void getRow (int r, T *dest, T idxBase=0) const
T * operator[] (int r)
const T * operator[] (int r) const
void setRow (int r, const T *src, T idxBase=0)
void setRow (int r, T value)
void set (const T *src, T idxBase=0)
void setTranspose (const T *srcT, int idxBase=0)
void get (T *dest, T idxBase=0) const
void getTranspose (T *destT, int idxBase=0) const
void set (T value)
void setRowLen (int rows_)

Protected Attributes

int rows
int cols
T * table
T * table

Detailed Description

template<class T>
class BasicTable2d< T >

This is a simple 2D table.

This is a simple 2D table. The operations are mostly row-centric.

The operations are mostly row-centric.

Definition at line 131 of file fem_mesh.h.


Constructor & Destructor Documentation

template<class T>
BasicTable2d< T >::BasicTable2d ( T *  src,
int  cols_,
int  rows_ 
) [inline]

Definition at line 137 of file fem_mesh.h.

template<class T>
BasicTable2d< T >::BasicTable2d ( T *  src,
int  cols_,
int  rows_ 
) [inline]

Definition at line 196 of file ParFUM_internals.h.


Member Function Documentation

template<class T>
int BasicTable2d< T >::size ( void   )  const [inline]

"size" of the table is the number of rows:

Definition at line 141 of file fem_mesh.h.

Referenced by meshModel_GetElemAtId(), and topModel_GetElemAtId().

Here is the caller graph for this function:

template<class T>
int BasicTable2d< T >::width ( void   )  const [inline]

template<class T>
T* BasicTable2d< T >::getData ( void   )  [inline]

Definition at line 145 of file fem_mesh.h.

Referenced by FEM_Mesh::createElemElemAdj(), FEM_REFINE2D_Coarsen(), FEM_REFINE2D_Split(), FEM_Refine_Operation(), and update_new_element_e2e().

Here is the caller graph for this function:

template<class T>
const T* BasicTable2d< T >::getData ( void   )  const [inline]

Definition at line 146 of file fem_mesh.h.

template<class T>
T BasicTable2d< T >::operator() ( int  r,
int  c 
) const [inline]

Element-by-element operations:.

Definition at line 149 of file fem_mesh.h.

template<class T>
T& BasicTable2d< T >::operator() ( int  r,
int  c 
) [inline]

Definition at line 150 of file fem_mesh.h.

template<class T>
T* BasicTable2d< T >::getRow ( int  r  )  [inline]

template<class T>
const T* BasicTable2d< T >::getRow ( int  r  )  const [inline]

Definition at line 155 of file fem_mesh.h.

template<class T>
void BasicTable2d< T >::getRow ( int  r,
T *  dest,
idxBase = 0 
) const [inline]

Definition at line 156 of file fem_mesh.h.

template<class T>
T* BasicTable2d< T >::operator[] ( int  r  )  [inline]

Definition at line 160 of file fem_mesh.h.

template<class T>
const T* BasicTable2d< T >::operator[] ( int  r  )  const [inline]

Definition at line 161 of file fem_mesh.h.

template<class T>
void BasicTable2d< T >::setRow ( int  r,
const T *  src,
idxBase = 0 
) [inline]

Definition at line 162 of file fem_mesh.h.

Referenced by AllocTable2d< unsigned char >::allocate(), and BasicTable2d< unsigned char >::set().

Here is the caller graph for this function:

template<class T>
void BasicTable2d< T >::setRow ( int  r,
value 
) [inline]

Definition at line 166 of file fem_mesh.h.

template<class T>
void BasicTable2d< T >::set ( const T *  src,
idxBase = 0 
) [inline]

These affect the entire table:.

Definition at line 172 of file fem_mesh.h.

template<class T>
void BasicTable2d< T >::setTranspose ( const T *  srcT,
int  idxBase = 0 
) [inline]

Definition at line 177 of file fem_mesh.h.

template<class T>
void BasicTable2d< T >::get ( T *  dest,
idxBase = 0 
) const [inline]

Definition at line 182 of file fem_mesh.h.

template<class T>
void BasicTable2d< T >::getTranspose ( T *  destT,
int  idxBase = 0 
) const [inline]

Definition at line 187 of file fem_mesh.h.

template<class T>
void BasicTable2d< T >::set ( value  )  [inline]

Definition at line 192 of file fem_mesh.h.

template<class T>
int BasicTable2d< T >::size ( void   )  const [inline]

"size" of the table is the number of rows:

Definition at line 200 of file ParFUM_internals.h.

template<class T>
int BasicTable2d< T >::width ( void   )  const [inline]

Width of the table is the number of columns:.

Definition at line 202 of file ParFUM_internals.h.

template<class T>
T* BasicTable2d< T >::getData ( void   )  [inline]

Definition at line 204 of file ParFUM_internals.h.

template<class T>
const T* BasicTable2d< T >::getData ( void   )  const [inline]

Definition at line 205 of file ParFUM_internals.h.

template<class T>
T BasicTable2d< T >::operator() ( int  r,
int  c 
) const [inline]

Definition at line 208 of file ParFUM_internals.h.

template<class T>
T& BasicTable2d< T >::operator() ( int  r,
int  c 
) [inline]

Definition at line 209 of file ParFUM_internals.h.

template<class T>
T* BasicTable2d< T >::getRow ( int  r  )  [inline]

Get a pointer to a row of the table:.

Definition at line 213 of file ParFUM_internals.h.

template<class T>
const T* BasicTable2d< T >::getRow ( int  r  )  const [inline]

Get a const pointer to a row of the table:.

Definition at line 215 of file ParFUM_internals.h.

template<class T>
void BasicTable2d< T >::getRow ( int  r,
T *  dest,
idxBase = 0 
) const [inline]

Definition at line 216 of file ParFUM_internals.h.

template<class T>
T* BasicTable2d< T >::operator[] ( int  r  )  [inline]

Definition at line 220 of file ParFUM_internals.h.

template<class T>
const T* BasicTable2d< T >::operator[] ( int  r  )  const [inline]

Definition at line 221 of file ParFUM_internals.h.

template<class T>
void BasicTable2d< T >::setRow ( int  r,
const T *  src,
idxBase = 0 
) [inline]

Definition at line 222 of file ParFUM_internals.h.

template<class T>
void BasicTable2d< T >::setRow ( int  r,
value 
) [inline]

Definition at line 226 of file ParFUM_internals.h.

template<class T>
void BasicTable2d< T >::set ( const T *  src,
idxBase = 0 
) [inline]

Definition at line 232 of file ParFUM_internals.h.

template<class T>
void BasicTable2d< T >::setTranspose ( const T *  srcT,
int  idxBase = 0 
) [inline]

Definition at line 237 of file ParFUM_internals.h.

template<class T>
void BasicTable2d< T >::get ( T *  dest,
idxBase = 0 
) const [inline]

Definition at line 242 of file ParFUM_internals.h.

template<class T>
void BasicTable2d< T >::getTranspose ( T *  destT,
int  idxBase = 0 
) const [inline]

Definition at line 247 of file ParFUM_internals.h.

template<class T>
void BasicTable2d< T >::set ( value  )  [inline]

Definition at line 252 of file ParFUM_internals.h.

template<class T>
void BasicTable2d< T >::setRowLen ( int  rows_  )  [inline]

Definition at line 255 of file ParFUM_internals.h.


Field Documentation

template<class T>
int BasicTable2d< T >::rows [protected]

template<class T>
int BasicTable2d< T >::cols [protected]

template<class T>
T* BasicTable2d< T >::table [protected]

template<class T>
T* BasicTable2d< T >::table [protected]

Definition at line 194 of file ParFUM_internals.h.


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

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