MFEM
v4.5.2
Finite element discretization library

Symmetric 3D Table stored as an array of rows each of which has a stack of column, floor, number nodes. The number of the node is assigned by counting the nodes from zero as they are pushed into the table. Diagonals of any kind are not allowed so the row, column and floor must all be different for each node. Only one node is stored for all 6 symmetric entries that are indexable by unique triplets of row, column, and floor. More...
#include <stable3d.hpp>
Public Member Functions  
STable3D (int nr)  
Construct the table with a total of 'nr' rows. More...  
int  Push (int r, int c, int f) 
Check to see if this entry is in the table and add it to the table if it is not there. Returns the number assigned to the table entry. More...  
int  operator() (int r, int c, int f) const 
Return the number assigned to the table entry. Abort if it's not there. More...  
int  Index (int r, int c, int f) const 
int  Push4 (int r, int c, int f, int t) 
Check to see if this entry is in the table and add it to the table if it is not there. The entry is addressed by the three smallest values of (r,c,f,t). Returns the number assigned to the table entry. More...  
int  operator() (int r, int c, int f, int t) const 
Return the number assigned to the table entry. The entry is addressed by the three smallest values of (r,c,f,t). Return 1 if it is not there. More...  
int  NumberOfElements () 
Return the number of elements added to the table. More...  
void  Print (std::ostream &out=mfem::out) const 
Print out all of the table elements. More...  
~STable3D ()  
Symmetric 3D Table stored as an array of rows each of which has a stack of column, floor, number nodes. The number of the node is assigned by counting the nodes from zero as they are pushed into the table. Diagonals of any kind are not allowed so the row, column and floor must all be different for each node. Only one node is stored for all 6 symmetric entries that are indexable by unique triplets of row, column, and floor.
Definition at line 34 of file stable3d.hpp.

explicit 
Construct the table with a total of 'nr' rows.
Definition at line 21 of file stable3d.cpp.
mfem::STable3D::~STable3D  (  ) 
Definition at line 191 of file stable3d.cpp.
int mfem::STable3D::Index  (  int  r, 
int  c,  
int  f  
)  const 
Return the number assigned to the table entry. Return 1 if it's not there.
Definition at line 117 of file stable3d.cpp.

inline 
Return the number of elements added to the table.
Definition at line 70 of file stable3d.hpp.
int mfem::STable3D::operator()  (  int  r, 
int  c,  
int  f  
)  const 
Return the number assigned to the table entry. Abort if it's not there.
Definition at line 97 of file stable3d.cpp.
int mfem::STable3D::operator()  (  int  r, 
int  c,  
int  f,  
int  t  
)  const 
Return the number assigned to the table entry. The entry is addressed by the three smallest values of (r,c,f,t). Return 1 if it is not there.
Definition at line 167 of file stable3d.cpp.
void mfem::STable3D::Print  (  std::ostream &  out = mfem::out  )  const 
Print out all of the table elements.
Definition at line 210 of file stable3d.cpp.
int mfem::STable3D::Push  (  int  r, 
int  c,  
int  f  
) 
Check to see if this entry is in the table and add it to the table if it is not there. Returns the number assigned to the table entry.
Definition at line 64 of file stable3d.cpp.
int mfem::STable3D::Push4  (  int  r, 
int  c,  
int  f,  
int  t  
) 
Check to see if this entry is in the table and add it to the table if it is not there. The entry is addressed by the three smallest values of (r,c,f,t). Returns the number assigned to the table entry.
Definition at line 140 of file stable3d.cpp.