moab
moab::WriteHDF5::ExportSet Struct Reference

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

#include <WriteHDF5.hpp>

Inheritance diagram for moab::WriteHDF5::ExportSet:
moab::WriteHDF5::ExportType

List of all members.

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 Attributes

Range range
 The range of entities.
id_t first_id
 The first Id allocated by the mhdf library. Entities in range have sequential IDs.
long offset
long adj_offset
 Offset for adjacency data. Always zero except for parallel IO.
long max_num_ents
long max_num_adjs
long total_num_ents

Detailed Description

Range of entities, grouped by type, to export.

Definition at line 101 of file WriteHDF5.hpp.


Member Function Documentation

const char * moab::WriteHDF5::ExportSet::name ( ) const

Definition at line 333 of file WriteHDF5.cpp.

{
  static char buffer[128];
  switch (type) {
    case MBVERTEX:
      return mhdf_node_type_handle();
    case MBENTITYSET:
      return mhdf_set_type_handle();
    default:
      sprintf( buffer, "%s%d", CN::EntityTypeName( type ), num_nodes );
      return buffer;
  }
}
bool moab::WriteHDF5::ExportSet::operator< ( const ExportType other) const [inline]

Definition at line 122 of file WriteHDF5.hpp.

      { return type < other.type || 
               (type == other.type && num_nodes < other.num_nodes); }
bool moab::WriteHDF5::ExportSet::operator< ( std::pair< int, int >  other) const [inline]

Definition at line 126 of file WriteHDF5.hpp.

      { return type < other.first || 
               (type == other.first && num_nodes < other.second); }
bool moab::WriteHDF5::ExportSet::operator== ( const ExportType other) const [inline]

Definition at line 130 of file WriteHDF5.hpp.

      { return (type == other.type && num_nodes == other.num_nodes); }
bool moab::WriteHDF5::ExportSet::operator== ( std::pair< int, int >  other) const [inline]

Definition at line 133 of file WriteHDF5.hpp.

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

Member Data Documentation

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

Definition at line 111 of file WriteHDF5.hpp.

The first Id allocated by the mhdf library. Entities in range have sequential IDs.

Definition at line 106 of file WriteHDF5.hpp.

If doing parallel IO, largest number of entities to write for any processor (needed to do collective IO). Zero if unused.

Definition at line 114 of file WriteHDF5.hpp.

The offset at which to begin writting this processor's data. Always zero except for parallel IO.

Definition at line 109 of file WriteHDF5.hpp.

The range of entities.

Definition at line 104 of file WriteHDF5.hpp.

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 120 of file WriteHDF5.hpp.


The documentation for this struct was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines