A minimal class to specify information about time history information being collected and output.
More...
#include <HistoryDataSpec.hpp>
A minimal class to specify information about time history information being collected and output.
Definition at line 42 of file HistoryDataSpec.hpp.
◆ HistoryMetadata() [1/2]
Constructor for multi-dimensional array types.
- Parameters
-
name | A name for the underlying information – used to specify the data name in time history files. |
rank | The rank of the array of data being collected. |
dims | The extent of each dimension of the array being collected. |
type | The std::type_index of the array being collected (std::type_index(typeid(T))) |
Definition at line 62 of file HistoryDataSpec.hpp.
◆ HistoryMetadata() [2/2]
geosx::HistoryMetadata::HistoryMetadata |
( |
const string & |
name, |
|
|
localIndex |
count, |
|
|
std::type_index |
type |
|
) |
| |
|
inline |
Constructor for one-dimensional array types.
- Parameters
-
name | A name for the underlying information – used to specify the data name in time history files. |
count | The extent of the one-dimensional array. |
type | The std::type_index of the array being collected (std::type_index(typeid(T))) |
Definition at line 74 of file HistoryDataSpec.hpp.
◆ getDims()
std::vector< localIndex > const& geosx::HistoryMetadata::getDims |
( |
| ) |
const |
|
inline |
Get a pointer to the extent of each dimension.
- Returns
- The head of the array containing the dimensional extent of each dimension of the array data being collected.
Definition at line 139 of file HistoryDataSpec.hpp.
◆ getName()
const string& geosx::HistoryMetadata::getName |
( |
| ) |
const |
|
inline |
Get the name.
- Returns
- The name of the data being collected.
Definition at line 93 of file HistoryDataSpec.hpp.
◆ getRank()
localIndex geosx::HistoryMetadata::getRank |
( |
| ) |
const |
|
inline |
Get the rank of the array data to be collected.
- Returns
- The rank.
Definition at line 131 of file HistoryDataSpec.hpp.
◆ getType()
std::type_index geosx::HistoryMetadata::getType |
( |
| ) |
const |
|
inline |
Get the type of the collected data.
- Returns
- The std::type_index of the collected data.
Definition at line 110 of file HistoryDataSpec.hpp.
◆ setName()
void geosx::HistoryMetadata::setName |
( |
const string & |
name | ) |
|
|
inline |
Set the name. Typically used for metadata collectors to avoid writing data with the same name to the history output files.
- Parameters
-
Definition at line 85 of file HistoryDataSpec.hpp.
◆ setType()
void geosx::HistoryMetadata::setType |
( |
std::type_index |
type | ) |
|
|
inline |
Set the type. Typically used for metadata collectors where local metadata is used to produce and output global metadata.
- Parameters
-
type | The std::type_index of the type being collected. (std::type_index(typeid(T))) |
Definition at line 102 of file HistoryDataSpec.hpp.
◆ size() [1/2]
◆ size() [2/2]
Get the size of the specified dimension.
- Parameters
-
dim | The dimsion to get the extent off. |
- Returns
- The extend of the dimension in the array data being collected.
Definition at line 148 of file HistoryDataSpec.hpp.
The documentation for this class was generated from the following file: