A DataHolder is a basic container for certain types of information.
More...
#include </home/docs/checkouts/readthedocs.org/user_builds/axom/checkouts/develop/src/axom/sina/core/DataHolder.hpp>
A DataHolder is a basic container for certain types of information.
DataHolders contain curves, libraries, and data (Datum), and represent all the information a library can have associated with it. Records expand on DataHolders to contain additional info.
- See also
- Record
-
LibraryDataMap
◆ DatumMap
An unordered map of Datum objects.
◆ CurveSetMap
◆ LibraryDataMap
An unordered map of shared pointers to DataHolder objects.
◆ DataHolder() [1/3]
| axom::sina::DataHolder::DataHolder |
( |
| ) |
|
|
default |
◆ ~DataHolder()
| virtual axom::sina::DataHolder::~DataHolder |
( |
| ) |
|
|
virtualdefault |
Virtual destructor to automatically clean up resources held by an instance of the DataHolder class.
◆ DataHolder() [2/3]
| axom::sina::DataHolder::DataHolder |
( |
DataHolder const & |
| ) |
|
|
delete |
Copy constructor that disallows this constructor type.
◆ DataHolder() [3/3]
| axom::sina::DataHolder::DataHolder |
( |
conduit::Node const & |
asNode | ) |
|
|
explicit |
Construct a DataHolder from its conduit Node representation.
- Parameters
-
◆ operator=()
◆ getData()
| DatumMap const& axom::sina::DataHolder::getData |
( |
| ) |
const |
|
inlinenoexcept |
◆ add() [1/2]
| void axom::sina::DataHolder::add |
( |
std::string |
name, |
|
|
Datum |
datum |
|
) |
| |
◆ add() [2/2]
| void axom::sina::DataHolder::add |
( |
CurveSet |
curveSet | ) |
|
◆ getCurveSets()
| CurveSetMap const& axom::sina::DataHolder::getCurveSets |
( |
| ) |
const |
|
inlinenoexcept |
Get the curve sets associated with this DataHolder.
- Returns
- the dataholder's curve sets
◆ addLibraryData() [1/2]
| std::shared_ptr<DataHolder> axom::sina::DataHolder::addLibraryData |
( |
std::string const & |
name | ) |
|
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.
- Returns
- a pointer to a new DataHolder for a library of the given name.
◆ addLibraryData() [2/2]
| std::shared_ptr<DataHolder> axom::sina::DataHolder::addLibraryData |
( |
std::string const & |
name, |
|
|
conduit::Node |
existingLibraryData |
|
) |
| |
Add a new library to this DataHolder with existing library data.
- Returns
- a pointer to a new DataHolder for a library of the given name.
◆ getLibraryData() [1/3]
| LibraryDataMap const& axom::sina::DataHolder::getLibraryData |
( |
| ) |
const |
|
inlinenoexcept |
Get all library data associated with this DataHolder.
- Returns
- the dataholder's library data
◆ getLibraryData() [2/3]
| std::shared_ptr<DataHolder> axom::sina::DataHolder::getLibraryData |
( |
std::string const & |
libraryName | ) |
|
|
inline |
Get a specific library associated with this DataHolder.
- Returns
- the dataholder's library data
◆ getLibraryData() [3/3]
| std::shared_ptr<DataHolder> const axom::sina::DataHolder::getLibraryData |
( |
std::string const & |
libraryName | ) |
const |
|
inline |
Get a specific library associated with this DataHolder.
- Returns
- the dataholder's library data
◆ getUserDefinedContent() [1/2]
| conduit::Node const& axom::sina::DataHolder::getUserDefinedContent |
( |
| ) |
const |
|
inlinenoexcept |
Get the user-defined content of the object.
- Returns
- the user-defined content
◆ getUserDefinedContent() [2/2]
| conduit::Node& axom::sina::DataHolder::getUserDefinedContent |
( |
| ) |
|
|
inlinenoexcept |
Get the user-defined content of the object.
- Returns
- the user-defined content
◆ setUserDefinedContent()
| void axom::sina::DataHolder::setUserDefinedContent |
( |
conduit::Node |
userDefined | ) |
|
Set the user-defined content of the object.
- Parameters
-
| userDefined | the user-defined content. Must be an object (key/value pairs) |
◆ toNode()
The documentation for this class was generated from the following file:
- /home/docs/checkouts/readthedocs.org/user_builds/axom/checkouts/develop/src/axom/sina/core/DataHolder.hpp