|
AXOM
Axom provides a robust, flexible software infrastructure for the development of multi-physics applications and computational tools.
|
An object representing an entry in a Document's Record list. More...
#include </home/docs/checkouts/readthedocs.org/user_builds/axom/checkouts/develop/src/axom/sina/core/Record.hpp>

Public Types | |
| using | FileSet = std::unordered_set< File, FileHashByURI, FileEqualByURI > |
| using | DatumMap = std::unordered_map< std::string, Datum > |
| using | CurveSetMap = std::unordered_map< std::string, CurveSet > |
| using | LibraryDataMap = std::unordered_map< std::string, std::shared_ptr< DataHolder > > |
Public Member Functions | |
| void | setDefaultCurveOrder (CurveSet::CurveOrder order) |
| Set the default curve order for all Records. More... | |
| CurveSet::CurveOrder | getDefaultCurveOrder () const |
| Get the effective default curve order for this Record. More... | |
| Record (ID id, std::string type) | |
| Construct a new Record. More... | |
| Record (conduit::Node const &asNode) | |
| Construct a Record from its conduit Node representation. More... | |
| Record (Record const &)=delete | |
| Record & | operator= (Record const &)=delete |
| ID const & | getId () const noexcept |
| Get the Record's ID. More... | |
| std::string const & | getType () const noexcept |
| Get the Record's type. More... | |
| void | remove (File const &file) |
| Remove a File from this record. More... | |
| void | add (File file) |
| Add a File to this record. More... | |
| FileSet const & | getFiles () const noexcept |
| Get the files associated with this record. More... | |
| conduit::Node | toNode (CurveSet::CurveOrder curveOrder) const override |
| Convert this record to its conduit Node representation. More... | |
| conduit::Node | toNode () const |
| Convert using this record's default curve order. More... | |
| void | addRecordAsLibraryData (Record const &childRecord, std::string const &name) |
| Add another record to this one as library data. More... | |
| void | add (std::string name, Datum datum) |
| Add a Datum to this DataHolder. More... | |
| void | add (CurveSet curveSet) |
| Add a CurveSet to this DataHolder. More... | |
| DatumMap const & | getData () const noexcept |
| Get the DataHolder's data. More... | |
| void | add (std::string name, Datum datum) |
| Add a Datum to this DataHolder. More... | |
| void | add (CurveSet curveSet) |
| Add a CurveSet to this DataHolder. More... | |
| CurveSetMap const & | getCurveSets () const noexcept |
| Get the curve sets associated with this DataHolder. More... | |
| std::shared_ptr< DataHolder > | addLibraryData (std::string const &name) |
| Add a new library to this DataHolder. More... | |
| std::shared_ptr< DataHolder > | addLibraryData (std::string const &name, conduit::Node existingLibraryData) |
| Add a new library to this DataHolder with existing library data. More... | |
| LibraryDataMap const & | getLibraryData () const noexcept |
| Get all library data associated with this DataHolder. More... | |
| std::shared_ptr< DataHolder > | getLibraryData (std::string const &libraryName) |
| Get a specific library associated with this DataHolder. More... | |
| std::shared_ptr< DataHolder > const | getLibraryData (std::string const &libraryName) const |
| Get a specific library associated with this DataHolder. More... | |
| conduit::Node const & | getUserDefinedContent () const noexcept |
| Get the user-defined content of the object. More... | |
| conduit::Node & | getUserDefinedContent () noexcept |
| Get the user-defined content of the object. More... | |
| void | setUserDefinedContent (conduit::Node userDefined) |
| Set the user-defined content of the object. More... | |
Static Public Attributes | |
| static CurveSet::CurveOrder | defaultCurveOrder |
An object representing an entry in a Document's Record list.
The Record class represents an entry in a Document's Record list. Records represent the data to be stored (as opposed to the relationships between data)–natural scopes for Records include things like a single run of an application, an msub job, a cluster of runs that has some metadata attached to the cluster (this Record might have a "contains" Relationship for all the runs within it), etc.
Each Record must have a type and an id. Each Record can also have a list of File objects and a map of Datum objects.
The output would be:
| using axom::sina::Record::FileSet = std::unordered_set<File, FileHashByURI, FileEqualByURI> |
An unordered set of File objects.
|
inherited |
An unordered map of Datum objects.
|
inherited |
An unordered map of CurveSet objects.
|
inherited |
An unordered map of shared pointers to DataHolder objects.
| axom::sina::Record::Record | ( | ID | id, |
| std::string | type | ||
| ) |
|
explicit |
|
delete |
Disable the copy constructor.
| void axom::sina::Record::setDefaultCurveOrder | ( | CurveSet::CurveOrder | order | ) |
Set the default curve order for all Records.
| order | the new default curve order |
| CurveSet::CurveOrder axom::sina::Record::getDefaultCurveOrder | ( | ) | const |
Get the effective default curve order for this Record.
|
inlinenoexcept |
| void axom::sina::Record::remove | ( | File const & | file | ) |
|
inlinenoexcept |
Get the files associated with this record.
|
overridevirtual |
Convert this record to its conduit Node representation.
| curveOrder | Optionally, specify an order that CurveSets should be written in. Options are enumerated in CurveSets; REGISTRATION_OLDEST_FIRST is "ULTRA style". |
Reimplemented from axom::sina::DataHolder.
Reimplemented in axom::sina::Run.
| conduit::Node axom::sina::Record::toNode | ( | ) | const |
Convert using this record's default curve order.
| void axom::sina::Record::addRecordAsLibraryData | ( | Record const & | childRecord, |
| std::string const & | name | ||
| ) |
Add another record to this one as library data.
Useful for libraries that can run in standalone mode; the host simply calls this method on the record the library produces. Merges file lists.
| name | The host code's name for the library |
| void axom::sina::DataHolder::add |
Add a Datum to this DataHolder.
| void axom::sina::DataHolder::add |
Add a CurveSet to this DataHolder.
| curveSet | the CurveSet to add |
|
inlinenoexceptinherited |
Get the DataHolder's data.
|
inherited |
Add a Datum to this DataHolder.
|
inherited |
Add a CurveSet to this DataHolder.
| curveSet | the CurveSet to add |
|
inlinenoexceptinherited |
Get the curve sets associated with this DataHolder.
|
inherited |
Add a new library to this DataHolder.
If you try to add a library with a name that already exists, the old library will be replaced.
|
inherited |
Add a new library to this DataHolder with existing library data.
|
inlinenoexceptinherited |
Get all library data associated with this DataHolder.
|
inlineinherited |
Get a specific library associated with this DataHolder.
|
inlineinherited |
Get a specific library associated with this DataHolder.
|
inlinenoexceptinherited |
Get the user-defined content of the object.
|
inlinenoexceptinherited |
Get the user-defined content of the object.
|
inherited |
Set the user-defined content of the object.
| userDefined | the user-defined content. Must be an object (key/value pairs) |
|
static |
An enum member representing the default ordering of Curves within CurveSets.