13 using StoreContainer = std::vector<T>;
16 class AttributeHandle;
47 Attribute(std::string name, ga::AttributeType type);
84 unsigned int typeSize_=1;
91 std::shared_ptr<StoreContainer<bt::intT>> intStore_;
92 std::shared_ptr<StoreContainer<bt::floatT>> floatStore_;
93 std::shared_ptr<StoreContainer<enzo::bt::Vector3>> vector3Store_;
94 std::shared_ptr<StoreContainer<enzo::bt::boolT>> boolStore_;
Basic attribute, parameter, and node types for Enzo.
AttributeType
Data types available to store attribute values in.
Definition Types.h:33
Read only accessor for enzo::ga::Attribute.
Definition AttributeHandle.h:195
Read write accessor for enzo::ga::Attribute.
std::string getName() const
Returns the name of this attribute.
Definition Attribute.cpp:105
AttributeType getType() const
Returns the attribute type this attribute stores.
Definition Attribute.cpp:100
Attribute(std::string name, ga::AttributeType type)
Construct a new attribute and initialize its typed storage.
Definition Attribute.cpp:10
unsigned int getTypeSize() const
Returns the number of components in the type (eg. StringT is 1, vectorT is 3).
void resize(size_t size)
Changes the number of elements stored.
Definition Attribute.cpp:45