|
| dump (std::istream &in) |
| Construct a dump object from the specified input stream. More...
|
|
bool | contains_r (const std::string &name) const |
| Return true if this dump contains the specified variable name is defined. More...
|
|
bool | contains_i (const std::string &name) const |
| Return true if this dump contains an integer valued array with the specified name. More...
|
|
std::vector< double > | vals_r (const std::string &name) const |
| Return the double values for the variable with the specified name or null. More...
|
|
std::vector< size_t > | dims_r (const std::string &name) const |
| Return the dimensions for the double variable with the specified name. More...
|
|
std::vector< int > | vals_i (const std::string &name) const |
| Return the integer values for the variable with the specified name. More...
|
|
std::vector< size_t > | dims_i (const std::string &name) const |
| Return the dimensions for the integer variable with the specified name. More...
|
|
virtual void | names_r (std::vector< std::string > &names) const |
| Return a list of the names of the floating point variables in the dump. More...
|
|
virtual void | names_i (std::vector< std::string > &names) const |
| Return a list of the names of the integer variables in the dump. More...
|
|
bool | remove (const std::string &name) |
| Remove variable from the object. More...
|
|
virtual | ~var_context () |
|
void | add_vec (std::stringstream &msg, const std::vector< size_t > &dims) const |
|
void | validate_dims (const std::string &stage, const std::string &name, const std::string &base_type, const std::vector< size_t > &dims_declared) const |
|
|
static std::vector< size_t > | to_vec () |
|
static std::vector< size_t > | to_vec (size_t n1) |
|
static std::vector< size_t > | to_vec (size_t n1, size_t n2) |
|
static std::vector< size_t > | to_vec (size_t n1, size_t n2, size_t n3) |
|
static std::vector< size_t > | to_vec (size_t n1, size_t n2, size_t n3, size_t n4) |
|
static std::vector< size_t > | to_vec (size_t n1, size_t n2, size_t n3, size_t n4, size_t n5) |
|
static std::vector< size_t > | to_vec (size_t n1, size_t n2, size_t n3, size_t n4, size_t n5, size_t n6) |
|
static std::vector< size_t > | to_vec (size_t n1, size_t n2, size_t n3, size_t n4, size_t n5, size_t n6, size_t n7) |
|
static std::vector< size_t > | to_vec (size_t n1, size_t n2, size_t n3, size_t n4, size_t n5, size_t n6, size_t n7, size_t n8) |
|
Represents named arrays with dimensions.
A dump object represents a dump of named arrays with dimensions. The arrays may have any dimensionality. The values for an array are typed to double or int.
See dump_reader
for more information on the format.
Dump objects are created from reading dump files from an input stream.
The dimensions and values of variables may be accessed by name.
Definition at line 545 of file dump.hpp.