AXOM
Axom provides a robust, flexible software infrastructure for the development of multi-physics applications and computational tools.
|
An Attribute holds scalar metadata describing a View. More...
#include </home/docs/checkouts/readthedocs.org/user_builds/axom/checkouts/v0.5.0/src/axom/sidre/core/Attribute.hpp>
Public Member Functions | |
const std::string & | getName () const |
Return const reference to name of Attribute object. More... | |
IndexType | getIndex () const |
Return the unique index of this Attribute object. More... | |
template<typename ScalarType > | |
bool | setDefaultScalar (ScalarType value) |
Set default value of Attribute. Return true if successfully changed. More... | |
bool | setDefaultString (const std::string &value) |
Set default value of Attribute. Return true if successfully changed. More... | |
bool | setDefaultNodeRef (Node &node) |
Set default value of Attribute to a Node. More... | |
const Node & | getDefaultNodeRef () const |
Return default value of Attribute. More... | |
TypeID | getTypeID () const |
Return type of Attribute. More... | |
Friends | |
class | DataStore |
|
inline |
Return const reference to name of Attribute object.
|
inline |
Return the unique index of this Attribute object.
|
inline |
Set default value of Attribute. Return true if successfully changed.
The type of the default cannot be changed after the attribute is created.
References SLIC_CHECK_MSG.
Referenced by axom::sidre::DataStore::createAttributeScalar().
|
inline |
Set default value of Attribute. Return true if successfully changed.
The type of the default cannot be changed after the attribute is created.
References axom::sidre::CHAR8_STR_ID, and SLIC_CHECK_MSG.
Referenced by axom::sidre::DataStore::createAttributeString().
|
inline |
Set default value of Attribute to a Node.
|
inline |
Return default value of Attribute.
|
inline |
Return type of Attribute.
References DISABLE_DEFAULT_CTOR, and DISABLE_MOVE_AND_ASSIGNMENT.
|
friend |
Friend declarations to constrain usage via controlled access to private members.