Mesh Oriented datABase  (version 5.5.1)
An array-based unstructured mesh library
moab::elemtype Struct Reference

Public Member Functions

 elemtype (int vals[2])
 
 elemtype (int t, int n)
 
bool operator== (const elemtype &other) const
 
bool operator< (const elemtype &other) const
 
bool operator!= (const elemtype &other) const
 

Public Attributes

int mbtype
 
int numnode
 

Detailed Description

Definition at line 1204 of file WriteHDF5Parallel.cpp.

Constructor & Destructor Documentation

◆ elemtype() [1/2]

moab::elemtype::elemtype ( int  vals[2])
inline

Definition at line 1209 of file WriteHDF5Parallel.cpp.

1209 : mbtype( vals[0] ), numnode( vals[1] ) {}

◆ elemtype() [2/2]

moab::elemtype::elemtype ( int  t,
int  n 
)
inline

Definition at line 1210 of file WriteHDF5Parallel.cpp.

1210 : mbtype( t ), numnode( n ) {}

Member Function Documentation

◆ operator!=()

bool moab::elemtype::operator!= ( const elemtype other) const
inline

Definition at line 1222 of file WriteHDF5Parallel.cpp.

1223  {
1224  return !this->operator==( other );
1225  }

References operator==().

◆ operator<()

bool moab::elemtype::operator< ( const elemtype other) const
inline

Definition at line 1216 of file WriteHDF5Parallel.cpp.

1217  {
1218  if( mbtype > other.mbtype ) return false;
1219 
1220  return mbtype < other.mbtype || ( mbtype != MBENTITYSET && numnode < other.numnode );
1221  }

References MBENTITYSET, mbtype, and numnode.

◆ operator==()

bool moab::elemtype::operator== ( const elemtype other) const
inline

Definition at line 1212 of file WriteHDF5Parallel.cpp.

1213  {
1214  return mbtype == other.mbtype && ( mbtype == MBENTITYSET || numnode == other.numnode );
1215  }

References MBENTITYSET, mbtype, and numnode.

Referenced by operator!=().

Member Data Documentation

◆ mbtype

int moab::elemtype::mbtype

Definition at line 1206 of file WriteHDF5Parallel.cpp.

Referenced by operator<(), and operator==().

◆ numnode

int moab::elemtype::numnode

Definition at line 1207 of file WriteHDF5Parallel.cpp.

Referenced by operator<(), and operator==().


The documentation for this struct was generated from the following file: