OGS
MeshEnums.cpp File Reference

Detailed Description

Implementation of mesh-related enumerations.

Author
Karsten Rink
Date
2012-05-02

Definition in file MeshEnums.cpp.

#include "MeshEnums.h"
#include <boost/algorithm/string/predicate.hpp>
Include dependency graph for MeshEnums.cpp:

Go to the source code of this file.

Namespaces

namespace  MeshLib
 

Macros

#define RETURN_CELL_TYPE_STR(t, type)
 

Functions

std::string MeshLib::MeshElemType2String (const MeshElemType t)
 Given a MeshElemType this returns the appropriate string.
 
std::string MeshLib::MeshElemType2StringShort (const MeshElemType t)
 Given a MeshElemType this returns the appropriate string with a short name.
 
MeshElemType MeshLib::String2MeshElemType (const std::string &s)
 Given a string of the shortened name of the element type, this returns the corresponding MeshElemType.
 
std::vector< MeshElemTypeMeshLib::getMeshElemTypes ()
 Returns a vector of all mesh element types.
 
std::vector< std::string > MeshLib::getMeshElemTypeStringsShort ()
 Returns a vector of strings of mesh element types.
 
std::string MeshLib::CellType2String (const CellType t)
 Given a MeshElemType this returns the appropriate string.
 
std::string MeshLib::MeshQualityType2String (const MeshQualityType t)
 
MeshLib::MeshQualityType MeshLib::String2MeshQualityType (std::string const &s)
 

Macro Definition Documentation

◆ RETURN_CELL_TYPE_STR

#define RETURN_CELL_TYPE_STR ( t,
type )
Value:
if ((t) == CellType::type) \
return #type;

Referenced by MeshLib::CellType2String().