14#ifndef SIMICS_SYSTEMC_AWARENESS_ATTRIBUTES_H
15#define SIMICS_SYSTEMC_AWARENESS_ATTRIBUTES_H
30 std::shared_ptr<T> ptr = std::make_shared<T> (key_);
31 attributes_.push_back(ptr);
38 return static_cast<T*
>(instance_attributes_[key]);
48 static std::vector<std::shared_ptr<Attribute> > attributes_;
49 std::vector<Attribute*> instance_attributes_;
Definition: attributes.h:26
T * attribute(int key)
Definition: attributes.h:37
Attributes & operator=(const Attributes &other)=delete
static T * defineAttribute()
Definition: attributes.h:29
Attributes(const Attributes &other)=delete