IOSS 2.0
Loading...
Searching...
No Matches
Iotm::text_mesh::PartIdMapping Class Reference

#include <Iotm_TextMeshDataTypes.h>

Public Member Functions

 PartIdMapping ()
 
void register_part_name (const std::string &name)
 
void register_part_name_with_id (const std::string &name, unsigned id)
 
unsigned get (const std::string &name) const
 
std::string get (unsigned id) const
 
unsigned size () const
 
std::vector< std::string > get_part_names_sorted_by_id () const
 
bool is_registered (const std::string &name) const
 
const std::vector< std::string > & get_part_names () const
 
void set_error_handler (ErrorHandler errorHandler)
 
const std::string get_group_type () const
 
void finalize_parse ()
 

Private Member Functions

void handle_block_part (const std::string &name)
 
void assign_ids () const
 
void assign (const std::string &name, unsigned id) const
 
void validate_name_and_id (const std::string &name, unsigned id) const
 
bool is_assigned (unsigned id) const
 
unsigned get_part_id (const std::string &name) const
 
std::string get_part_name (unsigned id) const
 

Private Attributes

std::vector< std::string > m_partNames {}
 
std::unordered_map< std::string, unsigned > m_ids
 
std::map< unsigned, std::string > m_parts
 
bool m_idsAssigned {false}
 
ErrorHandler m_errorHandler
 

Constructor & Destructor Documentation

◆ PartIdMapping()

Iotm::text_mesh::PartIdMapping::PartIdMapping ( )
inline

Member Function Documentation

◆ assign()

void Iotm::text_mesh::PartIdMapping::assign ( const std::string & name,
unsigned id ) const
inlineprivate

◆ assign_ids()

void Iotm::text_mesh::PartIdMapping::assign_ids ( ) const
inlineprivate

◆ finalize_parse()

void Iotm::text_mesh::PartIdMapping::finalize_parse ( )
inline

◆ get() [1/2]

unsigned Iotm::text_mesh::PartIdMapping::get ( const std::string & name) const
inline

◆ get() [2/2]

std::string Iotm::text_mesh::PartIdMapping::get ( unsigned id) const
inline

◆ get_group_type()

const std::string Iotm::text_mesh::PartIdMapping::get_group_type ( ) const
inline

◆ get_part_id()

unsigned Iotm::text_mesh::PartIdMapping::get_part_id ( const std::string & name) const
inlineprivate

◆ get_part_name()

std::string Iotm::text_mesh::PartIdMapping::get_part_name ( unsigned id) const
inlineprivate

◆ get_part_names()

const std::vector< std::string > & Iotm::text_mesh::PartIdMapping::get_part_names ( ) const
inline

◆ get_part_names_sorted_by_id()

std::vector< std::string > Iotm::text_mesh::PartIdMapping::get_part_names_sorted_by_id ( ) const
inline

◆ handle_block_part()

void Iotm::text_mesh::PartIdMapping::handle_block_part ( const std::string & name)
inlineprivate

◆ is_assigned()

bool Iotm::text_mesh::PartIdMapping::is_assigned ( unsigned id) const
inlineprivate

◆ is_registered()

bool Iotm::text_mesh::PartIdMapping::is_registered ( const std::string & name) const
inline

◆ register_part_name()

void Iotm::text_mesh::PartIdMapping::register_part_name ( const std::string & name)
inline

◆ register_part_name_with_id()

void Iotm::text_mesh::PartIdMapping::register_part_name_with_id ( const std::string & name,
unsigned id )
inline

◆ set_error_handler()

void Iotm::text_mesh::PartIdMapping::set_error_handler ( ErrorHandler errorHandler)
inline

◆ size()

unsigned Iotm::text_mesh::PartIdMapping::size ( ) const
inline

◆ validate_name_and_id()

void Iotm::text_mesh::PartIdMapping::validate_name_and_id ( const std::string & name,
unsigned id ) const
inlineprivate

Member Data Documentation

◆ m_errorHandler

ErrorHandler Iotm::text_mesh::PartIdMapping::m_errorHandler
private

◆ m_ids

std::unordered_map<std::string, unsigned> Iotm::text_mesh::PartIdMapping::m_ids
mutableprivate

◆ m_idsAssigned

bool Iotm::text_mesh::PartIdMapping::m_idsAssigned {false}
mutableprivate

◆ m_partNames

std::vector<std::string> Iotm::text_mesh::PartIdMapping::m_partNames {}
private

◆ m_parts

std::map<unsigned, std::string> Iotm::text_mesh::PartIdMapping::m_parts
mutableprivate

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