![]() |
Chaste Commit::333233612e3dcc941d260418acd7b5ccdc30390e
|
#include <ElementAttributes.hpp>
Public Member Functions | |
ElementAttributes () | |
std::vector< double > & | rGetAttributes () |
void | AddAttribute (double attribute) |
void | SetFirstAttribute (double attribute) |
double | GetFirstAttribute () |
Private Member Functions | |
template<class Archive > | |
void | serialize (Archive &archive, const unsigned int version) |
Private Attributes | |
std::vector< double > | mAttributes |
Friends | |
class | boost::serialization::access |
A container for attributes associated with the element classes.
Definition at line 48 of file ElementAttributes.hpp.
ElementAttributes< ELEMENT_DIM, SPACE_DIM >::ElementAttributes | ( | ) |
Defaults all variables.
Definition at line 39 of file ElementAttributes.cpp.
void ElementAttributes< ELEMENT_DIM, SPACE_DIM >::AddAttribute | ( | double | attribute | ) |
Push an attribute back onto mAttributes
attribute | the value of the attribute. |
Definition at line 51 of file ElementAttributes.cpp.
double ElementAttributes< ELEMENT_DIM, SPACE_DIM >::GetFirstAttribute | ( | ) |
Definition at line 69 of file ElementAttributes.cpp.
std::vector< double > & ElementAttributes< ELEMENT_DIM, SPACE_DIM >::rGetAttributes | ( | ) |
Definition at line 45 of file ElementAttributes.cpp.
|
inlineprivate |
Archive the member variables.
archive | the archive |
version | the current version of this class |
Definition at line 65 of file ElementAttributes.hpp.
References ElementAttributes< ELEMENT_DIM, SPACE_DIM >::mAttributes.
void ElementAttributes< ELEMENT_DIM, SPACE_DIM >::SetFirstAttribute | ( | double | attribute | ) |
Either push the first attribute onto the vector or replace its value if it already exists. This method gives back-compatibility to use-cases where there was only one attribute
attribute | the value of the first attribute. |
Definition at line 57 of file ElementAttributes.cpp.
Needed for serialization.
Definition at line 56 of file ElementAttributes.hpp.
|
private |
Arbitrary attributes that a user gives meaning to
Definition at line 53 of file ElementAttributes.hpp.
Referenced by ElementAttributes< ELEMENT_DIM, SPACE_DIM >::serialize().