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]);
46 static std::vector<std::shared_ptr<Attribute> > attributes_;
47 std::vector<Attribute*> instance_attributes_;
Definition: attributes.h:28
T * attribute(int key)
Definition: attributes.h:39
static T * defineAttribute()
Definition: attributes.h:31
Definition: pci_bus_interface.h:24