|
Mundy: Multibody Nonlocal Dynamics Version of the Day
|
A extension of STK's MetaData, better suited for some of Mundy's requirements. More...
#include <MetaData.hpp>
Public Member Functions | |
Constructors and destructor | |
| MetaData () | |
| Construct a meta data manager to own parts and fields. | |
| MetaData (size_t spatial_dimension, const std::vector< std::string > &rank_names=std::vector< std::string >()) | |
| Construct a meta data manager to own parts and fields. | |
| virtual | ~MetaData () |
| Destructor. | |
Actions | |
| void | declare_attribute (const stk::mesh::FieldBase &field, const std::string &attribute_name, const std::any &attribute_data) |
| Declare an attribute on the given field. | |
| void | declare_attribute (const stk::mesh::FieldBase &field, const std::string &attribute_name, const std::any &&attribute_data) |
| Declare an attribute on the given field. | |
| void | declare_attribute (const stk::mesh::Part &part, const std::string &attribute_name, const std::any &attribute_data) |
| Declare an attribute on the given part. | |
| void | declare_attribute (const stk::mesh::Part &part, const std::string &attribute_name, const std::any &&attribute_data) |
| Declare an attribute on the given part. | |
| void | declare_attribute (const std::string &attribute_name, const std::any &attribute_data) |
| Declare an attribute on the mesh itself. | |
| void | declare_attribute (const std::string &attribute_name, const std::any &&attribute_data) |
| Declare an attribute on the mesh itself. | |
| bool | remove_attribute (const stk::mesh::FieldBase &field, const std::string &attribute_name) |
| Attempt to remove an attribute from the provided field. | |
| bool | remove_attribute (const stk::mesh::Part &part, const std::string &attribute_name) |
| Attempt to remove an attribute from the provided part. | |
| bool | remove_attribute (const std::string &attribute_name) |
| Attempt to remove an attribute from this mesh. | |
| std::any * | get_attribute (const stk::mesh::FieldBase &field, const std::string &attribute_name) |
| Attempt to fetch a field attribute with the provided name from the given field. | |
| std::any * | get_attribute (const stk::mesh::Part &part, const std::string &attribute_name) |
| Attempt to fetch a part attribute with the provided name from the given part. | |
| std::any * | get_attribute (const std::string &attribute_name) |
| Attempt to fetch an attribute with the provided name from the current mesh. | |
For now, this extension modifies how attributes are created and stored.
| mundy::mesh::MetaData::MetaData | ( | ) |
|
explicit |
|
virtual |
| void mundy::mesh::MetaData::declare_attribute | ( | const stk::mesh::FieldBase & | field, |
| const std::string & | attribute_name, | ||
| const std::any & | attribute_data ) |
| field | The field which should contain the given attribute. |
| attribute_name | The given attribute's name. Must have a unique name not shared by other attributes on the field. |
| attribute_data | The given attribute's data. |
| void mundy::mesh::MetaData::declare_attribute | ( | const stk::mesh::FieldBase & | field, |
| const std::string & | attribute_name, | ||
| const std::any && | attribute_data ) |
| field | The field which should contain the given attribute. |
| attribute_name | The given attribute's name. Must have a unique name not shared by other attributes on the field. |
| attribute_data | The given attribute's data. |
| void mundy::mesh::MetaData::declare_attribute | ( | const stk::mesh::Part & | part, |
| const std::string & | attribute_name, | ||
| const std::any & | attribute_data ) |
| part | The part which should contain the given attribute. |
| attribute_name | The given attribute's name. Must have a unique name not shared by other attributes on the part. |
| attribute_data | The given attribute's data. |
| void mundy::mesh::MetaData::declare_attribute | ( | const stk::mesh::Part & | part, |
| const std::string & | attribute_name, | ||
| const std::any && | attribute_data ) |
| part | The part which should contain the given attribute. |
| attribute_name | The given attribute's name. Must have a unique name not shared by other attributes on the part. |
| attribute_data | The given attribute's data. |
| void mundy::mesh::MetaData::declare_attribute | ( | const std::string & | attribute_name, |
| const std::any & | attribute_data ) |
| attribute_name | The name of the attribute to declare. Must have a unique name not shared by other attributes on the mesh. |
| attribute_data | The given attribute's data. |
| void mundy::mesh::MetaData::declare_attribute | ( | const std::string & | attribute_name, |
| const std::any && | attribute_data ) |
| attribute_name | The name of the attribute to declare. Must have a unique name not shared by other attributes on the mesh. |
| attribute_data | The given attribute's data. |
| bool mundy::mesh::MetaData::remove_attribute | ( | const stk::mesh::FieldBase & | field, |
| const std::string & | attribute_name ) |
| field | The given field whose attribute we are trying to remove. |
| attribute_name | The name of the attribute to remove. |
| bool mundy::mesh::MetaData::remove_attribute | ( | const stk::mesh::Part & | part, |
| const std::string & | attribute_name ) |
| part | The given part whose attribute we are trying to remove. |
| attribute_name | The name of the attribute to remove. |
| bool mundy::mesh::MetaData::remove_attribute | ( | const std::string & | attribute_name | ) |
| attribute_name | The name of the attribute to remove. |
| std::any * mundy::mesh::MetaData::get_attribute | ( | const stk::mesh::FieldBase & | field, |
| const std::string & | attribute_name ) |
| field | The given field whose attribute we are trying to fetch. |
| attribute_name | The name of the attribute to fetch. |
| std::any * mundy::mesh::MetaData::get_attribute | ( | const stk::mesh::Part & | part, |
| const std::string & | attribute_name ) |
| part | The given part whose attribute we are trying to fetch. |
| attribute_name | The name of the attribute to fetch. |
| std::any * mundy::mesh::MetaData::get_attribute | ( | const std::string & | attribute_name | ) |
| attribute_name | The name of the attribute to fetch. |