MOAB: Mesh Oriented datABase  (version 5.4.1)
MBMesquite::SettingData Struct Reference
+ Collaboration diagram for MBMesquite::SettingData:

Public Member Functions

 SettingData ()
 Initialize to default settings.
 SettingData (const SettingData &other)
SettingDataoperator= (const SettingData &other)

Public Attributes

bool trapFPE
Settings::FixedVertexMode fixedMode
Settings::HigherOrderSlaveMode slaveMode
std::vector< const
MappingFunction * > 
mapArray
std::vector< const
MappingFunction2D * > 
mapArray2D
std::vector< const
MappingFunction3D * > 
mapArray3D
TriLagrangeShape defTriFunc
QuadLagrangeShape defQuadFunc
TetLagrangeShape defTetFunc
LinearPyramid defPyrFunc
LinearPrism defPriFunc
LinearHexahedron defHexFunc

Private Member Functions

void fix_copy (const SettingData &other)

Detailed Description

Definition at line 50 of file Settings.cpp.


Constructor & Destructor Documentation

Definition at line 91 of file Settings.cpp.

References fix_copy().

    : trapFPE( other.trapFPE ), fixedMode( other.fixedMode ), slaveMode( other.slaveMode ), mapArray( other.mapArray ),
      mapArray2D( other.mapArray2D ), mapArray3D( other.mapArray3D )
{
    fix_copy( other );
}

Member Function Documentation

void MBMesquite::SettingData::fix_copy ( const SettingData other) [private]

Definition at line 110 of file Settings.cpp.

References defHexFunc, defPriFunc, defPyrFunc, defQuadFunc, defTetFunc, defTriFunc, MBMesquite::HEXAHEDRON, mapArray, mapArray2D, mapArray3D, MBMesquite::PRISM, MBMesquite::PYRAMID, MBMesquite::QUADRILATERAL, MBMesquite::TETRAHEDRON, and MBMesquite::TRIANGLE.

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

{
    if( mapArray[TRIANGLE] == &other.defTriFunc ) mapArray[TRIANGLE] = &defTriFunc;
    if( mapArray[QUADRILATERAL] == &other.defQuadFunc ) mapArray[QUADRILATERAL] = &defQuadFunc;
    if( mapArray[TETRAHEDRON] == &other.defTetFunc ) mapArray[TETRAHEDRON] = &defTetFunc;
    if( mapArray[PYRAMID] == &other.defPyrFunc ) mapArray[PYRAMID] = &defPyrFunc;
    if( mapArray[PRISM] == &other.defPriFunc ) mapArray[PRISM] = &defPriFunc;
    if( mapArray[HEXAHEDRON] == &other.defHexFunc ) mapArray[HEXAHEDRON] = &defHexFunc;
    if( mapArray2D[TRIANGLE] == &other.defTriFunc ) mapArray2D[TRIANGLE] = &defTriFunc;
    if( mapArray2D[QUADRILATERAL] == &other.defQuadFunc ) mapArray2D[QUADRILATERAL] = &defQuadFunc;
    if( mapArray3D[TETRAHEDRON] == &other.defTetFunc ) mapArray3D[TETRAHEDRON] = &defTetFunc;
    if( mapArray3D[PYRAMID] == &other.defPyrFunc ) mapArray3D[PYRAMID] = &defPyrFunc;
    if( mapArray3D[PRISM] == &other.defPriFunc ) mapArray3D[PRISM] = &defPriFunc;
    if( mapArray3D[HEXAHEDRON] == &other.defHexFunc ) mapArray3D[HEXAHEDRON] = &defHexFunc;
}
SettingData & MBMesquite::SettingData::operator= ( const SettingData other)

Definition at line 98 of file Settings.cpp.

References fix_copy(), fixedMode, mapArray, mapArray2D, mapArray3D, slaveMode, and trapFPE.

{
    trapFPE    = other.trapFPE;
    fixedMode  = other.fixedMode;
    slaveMode  = other.slaveMode;
    mapArray   = other.mapArray;
    mapArray2D = other.mapArray2D;
    mapArray3D = other.mapArray3D;
    fix_copy( other );
    return *this;
}

Member Data Documentation

List of all members.


The documentation for this struct was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines