16#ifndef SIMICS_SYSTEMC_AWARENESS_ATTRIBUTES_H
17#define SIMICS_SYSTEMC_AWARENESS_ATTRIBUTES_H
32 std::shared_ptr<T> ptr = std::make_shared<T> (key_);
33 attributes_.push_back(ptr);
40 return static_cast<T*
>(instance_attributes_[key]);
50 static std::vector<std::shared_ptr<Attribute> > attributes_;
51 std::vector<Attribute*> instance_attributes_;
Definition: attributes.h:28
T * attribute(int key)
Definition: attributes.h:39
Attributes & operator=(const Attributes &other)=delete
static T * defineAttribute()
Definition: attributes.h:31
Attributes(const Attributes &other)=delete