Mesh Oriented datABase  (version 5.5.1)
An array-based unstructured mesh library
moab::TagNameCompare Class Reference
+ Collaboration diagram for moab::TagNameCompare:

Public Member Functions

 TagNameCompare (Interface *iface)
 
bool operator() (const WriteHDF5::TagDesc &t1, const WriteHDF5::TagDesc &t2)
 

Private Attributes

InterfaceiFace
 
std::string name1
 
std::string name2
 

Detailed Description

Definition at line 507 of file WriteHDF5Parallel.cpp.

Constructor & Destructor Documentation

◆ TagNameCompare()

moab::TagNameCompare::TagNameCompare ( Interface iface)
inline

Definition at line 513 of file WriteHDF5Parallel.cpp.

513 : iFace( iface ) {}

Member Function Documentation

◆ operator()()

bool moab::TagNameCompare::operator() ( const WriteHDF5::TagDesc t1,
const WriteHDF5::TagDesc t2 
)

Definition at line 517 of file WriteHDF5Parallel.cpp.

518 {
519  iFace->tag_get_name( t1.tag_id, name1 );
520  iFace->tag_get_name( t2.tag_id, name2 );
521  return name1 < name2;
522 }

References iFace, name1, name2, moab::Interface::tag_get_name(), and moab::WriteHDF5::TagDesc::tag_id.

Member Data Documentation

◆ iFace

Interface* moab::TagNameCompare::iFace
private

Definition at line 509 of file WriteHDF5Parallel.cpp.

Referenced by operator()().

◆ name1

std::string moab::TagNameCompare::name1
private

Definition at line 510 of file WriteHDF5Parallel.cpp.

Referenced by operator()().

◆ name2

std::string moab::TagNameCompare::name2
private

Definition at line 510 of file WriteHDF5Parallel.cpp.

Referenced by operator()().


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