Mesh Oriented datABase  (version 5.5.0)
An array-based unstructured mesh library
moab::WriteHDF5::ExportSet Struct Reference

Range of entities, grouped by type, to export. More...

#include <WriteHDF5.hpp>

+ Inheritance diagram for moab::WriteHDF5::ExportSet:
+ Collaboration diagram for moab::WriteHDF5::ExportSet:

Public Member Functions

bool operator< (const ExportType &other) const
 
bool operator< (std::pair< int, int > other) const
 
bool operator== (const ExportType &other) const
 
bool operator== (std::pair< int, int > other) const
 
const char * name () const
 
- Public Member Functions inherited from moab::WriteHDF5::ExportType
virtual ~ExportType ()
 
bool operator== (const ExportType &t) const
 
bool operator!= (const ExportType &t) const
 
bool operator< (const ExportType &t) const
 

Public Attributes

Range range
 The range of entities. More...
 
wid_t first_id
 The first Id allocated by the mhdf library. Entities in range have sequential IDs. More...
 
long offset
 The offset at which to begin writing this processor's data. Always zero except for parallel IO. More...
 
long adj_offset
 Offset for adjacency data. Always zero except for parallel IO. More...
 
long max_num_ents
 If doing parallel IO, largest number of entities to write for any processor (needed to do collective IO). Zero if unused. More...
 
long max_num_adjs
 
long total_num_ents
 The total number of entities that will be written to the file for this group. For serial IO, this should always be range.size(). For parallel IO, it will be the sum of range size over all processors. For parallel IO, this value is undefined except for on the root processor. More...
 
- Public Attributes inherited from moab::WriteHDF5::ExportType
EntityType type
 The type of the entities in the range. More...
 
int num_nodes
 The number of nodes per entity - not used for nodes and sets. More...
 

Detailed Description

Range of entities, grouped by type, to export.

Definition at line 108 of file WriteHDF5.hpp.

Member Function Documentation

◆ name()

◆ operator<() [1/2]

bool moab::WriteHDF5::ExportSet::operator< ( const ExportType other) const
inline

Definition at line 129 of file WriteHDF5.hpp.

130  {
131  return type < other.type || ( type == other.type && num_nodes < other.num_nodes );
132  }

References moab::WriteHDF5::ExportType::num_nodes, and moab::WriteHDF5::ExportType::type.

◆ operator<() [2/2]

bool moab::WriteHDF5::ExportSet::operator< ( std::pair< int, int >  other) const
inline

Definition at line 134 of file WriteHDF5.hpp.

135  {
136  return type < other.first || ( type == other.first && num_nodes < other.second );
137  }

References moab::WriteHDF5::ExportType::num_nodes, and moab::WriteHDF5::ExportType::type.

◆ operator==() [1/2]

bool moab::WriteHDF5::ExportSet::operator== ( const ExportType other) const
inline

Definition at line 139 of file WriteHDF5.hpp.

140  {
141  return ( type == other.type && num_nodes == other.num_nodes );
142  }

References moab::WriteHDF5::ExportType::num_nodes, and moab::WriteHDF5::ExportType::type.

◆ operator==() [2/2]

bool moab::WriteHDF5::ExportSet::operator== ( std::pair< int, int >  other) const
inline

Definition at line 144 of file WriteHDF5.hpp.

145  {
146  return ( type == other.first && num_nodes == other.second );
147  }

References moab::WriteHDF5::ExportType::num_nodes, and moab::WriteHDF5::ExportType::type.

Member Data Documentation

◆ adj_offset

long moab::WriteHDF5::ExportSet::adj_offset

Offset for adjacency data. Always zero except for parallel IO.

Definition at line 118 of file WriteHDF5.hpp.

Referenced by moab::WriteHDF5Parallel::negotiate_type_list(), moab::WriteHDF5::serial_create_file(), and moab::WriteHDF5::write_adjacencies().

◆ first_id

wid_t moab::WriteHDF5::ExportSet::first_id

◆ max_num_adjs

long moab::WriteHDF5::ExportSet::max_num_adjs

◆ max_num_ents

long moab::WriteHDF5::ExportSet::max_num_ents

◆ offset

◆ range

◆ total_num_ents

long moab::WriteHDF5::ExportSet::total_num_ents

The total number of entities that will be written to the file for this group. For serial IO, this should always be range.size(). For parallel IO, it will be the sum of range size over all processors. For parallel IO, this value is undefined except for on the root processor.

Definition at line 127 of file WriteHDF5.hpp.

Referenced by moab::WriteHDF5Parallel::create_meshset_tables(), moab::WriteHDF5Parallel::create_node_table(), moab::WriteHDF5::create_tag(), moab::WriteHDF5::serial_create_file(), and moab::WriteHDF5::write_nodes().


The documentation for this struct was generated from the following files: