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:.
TgetData (void)
const TgetData (void) const
T operator() (int r, int c) const
 Element-by-element operations:.
Toperator() (int r, int c)
TgetRow (int r)
 Row-by-row operations.
const TgetRow (int r) const
void getRow (int r, T *dest, T idxBase=0) const
Toperator[] (int r)
const Toperator[] (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:.
TgetData (void)
const TgetData (void) const
T operator() (int r, int c) const
Toperator() (int r, int c)
TgetRow (int r)
 Get a pointer to a row of the table:.
const TgetRow (int r) const
 Get a const pointer to a row of the table:.
void getRow (int r, T *dest, T idxBase=0) const
Toperator[] (int r)
const Toperator[] (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
Ttable
Ttable

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 197 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().

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

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

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,
T  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,
T  idxBase = 0 
) [inline]

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

Definition at line 166 of file fem_mesh.h.

template<class T>
void BasicTable2d< T >::set ( const T src,
T  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,
T  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 ( T  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 201 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 203 of file ParFUM_internals.h.

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

Definition at line 205 of file ParFUM_internals.h.

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

Definition at line 206 of file ParFUM_internals.h.

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

Definition at line 209 of file ParFUM_internals.h.

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

Definition at line 210 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 214 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 216 of file ParFUM_internals.h.

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

Definition at line 217 of file ParFUM_internals.h.

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

Definition at line 221 of file ParFUM_internals.h.

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

Definition at line 222 of file ParFUM_internals.h.

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

Definition at line 223 of file ParFUM_internals.h.

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

Definition at line 227 of file ParFUM_internals.h.

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

Definition at line 233 of file ParFUM_internals.h.

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

Definition at line 238 of file ParFUM_internals.h.

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

Definition at line 243 of file ParFUM_internals.h.

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

Definition at line 248 of file ParFUM_internals.h.

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

Definition at line 253 of file ParFUM_internals.h.

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

Definition at line 256 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 195 of file ParFUM_internals.h.


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

Generated on Thu May 24 07:56:33 2012 for Charm++ by  doxygen 1.5.5