IOSS 2.0
Loading...
Searching...
No Matches
Iotm::text_mesh::EntityGroup< GroupData > Class Template Reference

#include <Iotm_TextMeshEntityGroup.h>

Public Member Functions

 EntityGroup (const std::string &type, const std::string &namePrefix, const std::vector< std::string > &invalidNamePrefixes)
 
virtual ~EntityGroup ()
 
virtual void set_error_handler (ErrorHandler errorHandler)
 
GroupData * add_group_data (const std::string &name, const std::vector< DataType > &data)
 
void finalize_parse ()
 
size_t size () const
 
const std::vector< GroupData > & get_group_data () const
 
const std::vector< std::string > & get_part_names () const
 
const std::string & get_group_type () const
 
const GroupData * get_group_data (unsigned id) const
 
const GroupData * get_group_data (std::string name) const
 
bool is_registered (const std::string &name) const
 

Protected Member Functions

 EntityGroup ()
 
unsigned get_unassigned_id () const
 
void validate_group_meta_data (const GroupData &groupData)
 
void assign (size_t index)
 
void assign_id_from_default_exodus_name ()
 
void assign_id_and_name_for_empty_name ()
 
void assign_id_for_non_default_exodus_name ()
 
bool is_assigned (unsigned id) const
 
void verify_name (const std::string &name)
 

Protected Attributes

std::vector< std::string > m_partNames {}
 
std::unordered_map< std::string, unsigned > m_ids
 
std::unordered_map< unsigned, std::string > m_parts
 
bool m_idsAssigned {false}
 
std::unordered_map< std::string, size_t > m_groupDataMap
 
std::string m_type {}
 
std::string m_exodusPrefix {}
 
std::vector< std::string > m_invalidPrefixes {}
 
std::vector< GroupData > m_groupDataVec {}
 
ErrorHandler m_errorHandler
 

Private Types

using DataType = typename GroupData::DataType
 

Member Typedef Documentation

◆ DataType

template<typename GroupData >
using Iotm::text_mesh::EntityGroup< GroupData >::DataType = typename GroupData::DataType
private

Constructor & Destructor Documentation

◆ EntityGroup() [1/2]

template<typename GroupData >
Iotm::text_mesh::EntityGroup< GroupData >::EntityGroup ( const std::string & type,
const std::string & namePrefix,
const std::vector< std::string > & invalidNamePrefixes )
inline

◆ ~EntityGroup()

template<typename GroupData >
virtual Iotm::text_mesh::EntityGroup< GroupData >::~EntityGroup ( )
inlinevirtual

◆ EntityGroup() [2/2]

template<typename GroupData >
Iotm::text_mesh::EntityGroup< GroupData >::EntityGroup ( )
protected

Member Function Documentation

◆ add_group_data()

template<typename GroupData >
GroupData * Iotm::text_mesh::EntityGroup< GroupData >::add_group_data ( const std::string & name,
const std::vector< DataType > & data )
inline

◆ assign()

template<typename GroupData >
void Iotm::text_mesh::EntityGroup< GroupData >::assign ( size_t index)
inlineprotected

◆ assign_id_and_name_for_empty_name()

template<typename GroupData >
void Iotm::text_mesh::EntityGroup< GroupData >::assign_id_and_name_for_empty_name ( )
inlineprotected

◆ assign_id_for_non_default_exodus_name()

template<typename GroupData >
void Iotm::text_mesh::EntityGroup< GroupData >::assign_id_for_non_default_exodus_name ( )
inlineprotected

◆ assign_id_from_default_exodus_name()

template<typename GroupData >
void Iotm::text_mesh::EntityGroup< GroupData >::assign_id_from_default_exodus_name ( )
inlineprotected

◆ finalize_parse()

template<typename GroupData >
void Iotm::text_mesh::EntityGroup< GroupData >::finalize_parse ( )
inline

◆ get_group_data() [1/3]

template<typename GroupData >
const std::vector< GroupData > & Iotm::text_mesh::EntityGroup< GroupData >::get_group_data ( ) const
inline

◆ get_group_data() [2/3]

template<typename GroupData >
const GroupData * Iotm::text_mesh::EntityGroup< GroupData >::get_group_data ( std::string name) const
inline

◆ get_group_data() [3/3]

template<typename GroupData >
const GroupData * Iotm::text_mesh::EntityGroup< GroupData >::get_group_data ( unsigned id) const
inline

◆ get_group_type()

template<typename GroupData >
const std::string & Iotm::text_mesh::EntityGroup< GroupData >::get_group_type ( ) const
inline

◆ get_part_names()

template<typename GroupData >
const std::vector< std::string > & Iotm::text_mesh::EntityGroup< GroupData >::get_part_names ( ) const
inline

◆ get_unassigned_id()

template<typename GroupData >
unsigned Iotm::text_mesh::EntityGroup< GroupData >::get_unassigned_id ( ) const
inlineprotected

◆ is_assigned()

template<typename GroupData >
bool Iotm::text_mesh::EntityGroup< GroupData >::is_assigned ( unsigned id) const
inlineprotected

◆ is_registered()

template<typename GroupData >
bool Iotm::text_mesh::EntityGroup< GroupData >::is_registered ( const std::string & name) const
inline

◆ set_error_handler()

template<typename GroupData >
virtual void Iotm::text_mesh::EntityGroup< GroupData >::set_error_handler ( ErrorHandler errorHandler)
inlinevirtual

◆ size()

template<typename GroupData >
size_t Iotm::text_mesh::EntityGroup< GroupData >::size ( ) const
inline

◆ validate_group_meta_data()

template<typename GroupData >
void Iotm::text_mesh::EntityGroup< GroupData >::validate_group_meta_data ( const GroupData & groupData)
inlineprotected

◆ verify_name()

template<typename GroupData >
void Iotm::text_mesh::EntityGroup< GroupData >::verify_name ( const std::string & name)
inlineprotected

Member Data Documentation

◆ m_errorHandler

template<typename GroupData >
ErrorHandler Iotm::text_mesh::EntityGroup< GroupData >::m_errorHandler
protected

◆ m_exodusPrefix

template<typename GroupData >
std::string Iotm::text_mesh::EntityGroup< GroupData >::m_exodusPrefix {}
protected

◆ m_groupDataMap

template<typename GroupData >
std::unordered_map<std::string, size_t> Iotm::text_mesh::EntityGroup< GroupData >::m_groupDataMap
mutableprotected

◆ m_groupDataVec

template<typename GroupData >
std::vector<GroupData> Iotm::text_mesh::EntityGroup< GroupData >::m_groupDataVec {}
protected

◆ m_ids

template<typename GroupData >
std::unordered_map<std::string, unsigned> Iotm::text_mesh::EntityGroup< GroupData >::m_ids
mutableprotected

◆ m_idsAssigned

template<typename GroupData >
bool Iotm::text_mesh::EntityGroup< GroupData >::m_idsAssigned {false}
mutableprotected

◆ m_invalidPrefixes

template<typename GroupData >
std::vector<std::string> Iotm::text_mesh::EntityGroup< GroupData >::m_invalidPrefixes {}
protected

◆ m_partNames

template<typename GroupData >
std::vector<std::string> Iotm::text_mesh::EntityGroup< GroupData >::m_partNames {}
protected

◆ m_parts

template<typename GroupData >
std::unordered_map<unsigned, std::string> Iotm::text_mesh::EntityGroup< GroupData >::m_parts
mutableprotected

◆ m_type

template<typename GroupData >
std::string Iotm::text_mesh::EntityGroup< GroupData >::m_type {}
protected

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