IOSS 2.0
Loading...
Searching...
No Matches
Iotm::text_mesh::TextMeshOptionParser< EntityId, Topology > Class Template Reference

#include <Iotm_TextMeshUtils.h>

Collaboration diagram for Iotm::text_mesh::TextMeshOptionParser< EntityId, Topology >:
[legend]

Public Member Functions

 TextMeshOptionParser (TextMeshData< EntityId, Topology > &data, unsigned enforcedDimension)
 
 TextMeshOptionParser (TextMeshData< EntityId, Topology > &data)
 
void set_error_handler (ErrorHandler errorHandler)
 
std::string get_mesh_connectivity_description () const
 
void initialize_parse (const std::string &parameters)
 
void finalize_parse ()
 

Private Types

enum  ParsedOptions {
  PARSED_NONE = 0 , PARSED_DIMENSION = 1L << 0 , PARSED_COORDINATES = 1L << 1 , PARSED_SIDESET = 1L << 2 ,
  PARSED_NODESET = 1L << 3 , PARSED_ASSEMBLY = 1L << 4
}
 

Private Member Functions

bool parsed_dimension_provided ()
 
bool enforced_dimension_provided ()
 
void validate_dimension ()
 
void set_dimension ()
 
void parse_dimension_option (const std::vector< std::string > &option)
 
void deallocate_raw_coordinates ()
 
void set_coordinates ()
 
bool parsed_coordinates_provided ()
 
void parse_coordinates_option (const std::vector< std::string > &coordinatesOptionGroup)
 
template<typename DataType >
void check_name_collision_with_entity_sets (const EntityGroupData< DataType > &groupData, const std::string &entityType, const std::set< std::string > &entitySetNames)
 
template<typename SrcDataGroup , typename DestDataGroup >
void check_name_collision_with_group (const SrcDataGroup &srcGroup, const DestDataGroup &destGroup)
 
void check_sideset_element_reference ()
 
void check_sideset_name_collision ()
 
void validate_sidesets ()
 
void check_nodeset_node_reference ()
 
void check_nodeset_name_collision ()
 
void validate_nodesets ()
 
template<typename T >
void check_assembly_member_reference_in_group (const AssemblyData &assemblyData, const T &group)
 
void check_assembly_member_reference ()
 
void check_assembly_name_collision ()
 
void check_assembly_cyclic_dependency ()
 
void validate_assemblies ()
 
void parse_sideset_option (const std::vector< std::string > &sidesetOptionGroup)
 
void parse_nodeset_option (const std::vector< std::string > &nodesetOptionGroup)
 
void parse_assembly_option (const std::vector< std::string > &assemblyOptionGroup)
 
void print_help_message (std::ostream &out=std::cout)
 
void handle_unrecognized_option (const std::string &optionType)
 
void parse_options (const std::vector< std::string > &optionGroups)
 

Private Attributes

unsigned long m_parsedOptionMask {PARSED_NONE}
 
int m_parsedDimension {INVALID_DIMENSION}
 
int m_constructorEnforcedDimension {INVALID_DIMENSION}
 
std::string m_meshConnectivityDescription {}
 
std::vector< double > m_rawCoordinates {}
 
ErrorHandler m_errorHandler
 
TextMeshData< EntityId, Topology > & m_data
 

Static Private Attributes

static constexpr int INVALID_DIMENSION = -1
 
static constexpr int DEFAULT_DIMENSION = 3
 

Member Enumeration Documentation

◆ ParsedOptions

template<typename EntityId , typename Topology >
enum Iotm::text_mesh::TextMeshOptionParser::ParsedOptions
private
Enumerator
PARSED_NONE 
PARSED_DIMENSION 
PARSED_COORDINATES 
PARSED_SIDESET 
PARSED_NODESET 
PARSED_ASSEMBLY 

Constructor & Destructor Documentation

◆ TextMeshOptionParser() [1/2]

template<typename EntityId , typename Topology >
Iotm::text_mesh::TextMeshOptionParser< EntityId, Topology >::TextMeshOptionParser ( TextMeshData< EntityId, Topology > & data,
unsigned enforcedDimension )
inline

◆ TextMeshOptionParser() [2/2]

template<typename EntityId , typename Topology >
Iotm::text_mesh::TextMeshOptionParser< EntityId, Topology >::TextMeshOptionParser ( TextMeshData< EntityId, Topology > & data)
inlineexplicit

Member Function Documentation

◆ check_assembly_cyclic_dependency()

template<typename EntityId , typename Topology >
void Iotm::text_mesh::TextMeshOptionParser< EntityId, Topology >::check_assembly_cyclic_dependency ( )
inlineprivate

◆ check_assembly_member_reference()

template<typename EntityId , typename Topology >
void Iotm::text_mesh::TextMeshOptionParser< EntityId, Topology >::check_assembly_member_reference ( )
inlineprivate

◆ check_assembly_member_reference_in_group()

template<typename EntityId , typename Topology >
template<typename T >
void Iotm::text_mesh::TextMeshOptionParser< EntityId, Topology >::check_assembly_member_reference_in_group ( const AssemblyData & assemblyData,
const T & group )
inlineprivate

◆ check_assembly_name_collision()

template<typename EntityId , typename Topology >
void Iotm::text_mesh::TextMeshOptionParser< EntityId, Topology >::check_assembly_name_collision ( )
inlineprivate

◆ check_name_collision_with_entity_sets()

template<typename EntityId , typename Topology >
template<typename DataType >
void Iotm::text_mesh::TextMeshOptionParser< EntityId, Topology >::check_name_collision_with_entity_sets ( const EntityGroupData< DataType > & groupData,
const std::string & entityType,
const std::set< std::string > & entitySetNames )
inlineprivate

◆ check_name_collision_with_group()

template<typename EntityId , typename Topology >
template<typename SrcDataGroup , typename DestDataGroup >
void Iotm::text_mesh::TextMeshOptionParser< EntityId, Topology >::check_name_collision_with_group ( const SrcDataGroup & srcGroup,
const DestDataGroup & destGroup )
inlineprivate

◆ check_nodeset_name_collision()

template<typename EntityId , typename Topology >
void Iotm::text_mesh::TextMeshOptionParser< EntityId, Topology >::check_nodeset_name_collision ( )
inlineprivate

◆ check_nodeset_node_reference()

template<typename EntityId , typename Topology >
void Iotm::text_mesh::TextMeshOptionParser< EntityId, Topology >::check_nodeset_node_reference ( )
inlineprivate

◆ check_sideset_element_reference()

template<typename EntityId , typename Topology >
void Iotm::text_mesh::TextMeshOptionParser< EntityId, Topology >::check_sideset_element_reference ( )
inlineprivate

◆ check_sideset_name_collision()

template<typename EntityId , typename Topology >
void Iotm::text_mesh::TextMeshOptionParser< EntityId, Topology >::check_sideset_name_collision ( )
inlineprivate

◆ deallocate_raw_coordinates()

template<typename EntityId , typename Topology >
void Iotm::text_mesh::TextMeshOptionParser< EntityId, Topology >::deallocate_raw_coordinates ( )
inlineprivate

◆ enforced_dimension_provided()

template<typename EntityId , typename Topology >
bool Iotm::text_mesh::TextMeshOptionParser< EntityId, Topology >::enforced_dimension_provided ( )
inlineprivate

◆ finalize_parse()

template<typename EntityId , typename Topology >
void Iotm::text_mesh::TextMeshOptionParser< EntityId, Topology >::finalize_parse ( )
inline

◆ get_mesh_connectivity_description()

template<typename EntityId , typename Topology >
std::string Iotm::text_mesh::TextMeshOptionParser< EntityId, Topology >::get_mesh_connectivity_description ( ) const
inline

◆ handle_unrecognized_option()

template<typename EntityId , typename Topology >
void Iotm::text_mesh::TextMeshOptionParser< EntityId, Topology >::handle_unrecognized_option ( const std::string & optionType)
inlineprivate

◆ initialize_parse()

template<typename EntityId , typename Topology >
void Iotm::text_mesh::TextMeshOptionParser< EntityId, Topology >::initialize_parse ( const std::string & parameters)
inline

◆ parse_assembly_option()

template<typename EntityId , typename Topology >
void Iotm::text_mesh::TextMeshOptionParser< EntityId, Topology >::parse_assembly_option ( const std::vector< std::string > & assemblyOptionGroup)
inlineprivate

◆ parse_coordinates_option()

template<typename EntityId , typename Topology >
void Iotm::text_mesh::TextMeshOptionParser< EntityId, Topology >::parse_coordinates_option ( const std::vector< std::string > & coordinatesOptionGroup)
inlineprivate

◆ parse_dimension_option()

template<typename EntityId , typename Topology >
void Iotm::text_mesh::TextMeshOptionParser< EntityId, Topology >::parse_dimension_option ( const std::vector< std::string > & option)
inlineprivate

◆ parse_nodeset_option()

template<typename EntityId , typename Topology >
void Iotm::text_mesh::TextMeshOptionParser< EntityId, Topology >::parse_nodeset_option ( const std::vector< std::string > & nodesetOptionGroup)
inlineprivate

◆ parse_options()

template<typename EntityId , typename Topology >
void Iotm::text_mesh::TextMeshOptionParser< EntityId, Topology >::parse_options ( const std::vector< std::string > & optionGroups)
inlineprivate

◆ parse_sideset_option()

template<typename EntityId , typename Topology >
void Iotm::text_mesh::TextMeshOptionParser< EntityId, Topology >::parse_sideset_option ( const std::vector< std::string > & sidesetOptionGroup)
inlineprivate

◆ parsed_coordinates_provided()

template<typename EntityId , typename Topology >
bool Iotm::text_mesh::TextMeshOptionParser< EntityId, Topology >::parsed_coordinates_provided ( )
inlineprivate

◆ parsed_dimension_provided()

template<typename EntityId , typename Topology >
bool Iotm::text_mesh::TextMeshOptionParser< EntityId, Topology >::parsed_dimension_provided ( )
inlineprivate

◆ print_help_message()

template<typename EntityId , typename Topology >
void Iotm::text_mesh::TextMeshOptionParser< EntityId, Topology >::print_help_message ( std::ostream & out = std::cout)
inlineprivate

◆ set_coordinates()

template<typename EntityId , typename Topology >
void Iotm::text_mesh::TextMeshOptionParser< EntityId, Topology >::set_coordinates ( )
inlineprivate

◆ set_dimension()

template<typename EntityId , typename Topology >
void Iotm::text_mesh::TextMeshOptionParser< EntityId, Topology >::set_dimension ( )
inlineprivate

◆ set_error_handler()

template<typename EntityId , typename Topology >
void Iotm::text_mesh::TextMeshOptionParser< EntityId, Topology >::set_error_handler ( ErrorHandler errorHandler)
inline

◆ validate_assemblies()

template<typename EntityId , typename Topology >
void Iotm::text_mesh::TextMeshOptionParser< EntityId, Topology >::validate_assemblies ( )
inlineprivate

◆ validate_dimension()

template<typename EntityId , typename Topology >
void Iotm::text_mesh::TextMeshOptionParser< EntityId, Topology >::validate_dimension ( )
inlineprivate

◆ validate_nodesets()

template<typename EntityId , typename Topology >
void Iotm::text_mesh::TextMeshOptionParser< EntityId, Topology >::validate_nodesets ( )
inlineprivate

◆ validate_sidesets()

template<typename EntityId , typename Topology >
void Iotm::text_mesh::TextMeshOptionParser< EntityId, Topology >::validate_sidesets ( )
inlineprivate

Member Data Documentation

◆ DEFAULT_DIMENSION

template<typename EntityId , typename Topology >
int Iotm::text_mesh::TextMeshOptionParser< EntityId, Topology >::DEFAULT_DIMENSION = 3
staticconstexprprivate

◆ INVALID_DIMENSION

template<typename EntityId , typename Topology >
int Iotm::text_mesh::TextMeshOptionParser< EntityId, Topology >::INVALID_DIMENSION = -1
staticconstexprprivate

◆ m_constructorEnforcedDimension

template<typename EntityId , typename Topology >
int Iotm::text_mesh::TextMeshOptionParser< EntityId, Topology >::m_constructorEnforcedDimension {INVALID_DIMENSION}
private

◆ m_data

◆ m_errorHandler

template<typename EntityId , typename Topology >
ErrorHandler Iotm::text_mesh::TextMeshOptionParser< EntityId, Topology >::m_errorHandler
private

◆ m_meshConnectivityDescription

template<typename EntityId , typename Topology >
std::string Iotm::text_mesh::TextMeshOptionParser< EntityId, Topology >::m_meshConnectivityDescription {}
private

◆ m_parsedDimension

template<typename EntityId , typename Topology >
int Iotm::text_mesh::TextMeshOptionParser< EntityId, Topology >::m_parsedDimension {INVALID_DIMENSION}
private

◆ m_parsedOptionMask

template<typename EntityId , typename Topology >
unsigned long Iotm::text_mesh::TextMeshOptionParser< EntityId, Topology >::m_parsedOptionMask {PARSED_NONE}
private

◆ m_rawCoordinates

template<typename EntityId , typename Topology >
std::vector<double> Iotm::text_mesh::TextMeshOptionParser< EntityId, Topology >::m_rawCoordinates {}
private

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