41 const std::string& group, uint32_t index,
42 const std::string& desc =
"CollectableTreeNode <no desc>") :
56 const std::string& desc=
"CollectableTreeNode <no desc>") :
86 is_collected_ =
false;
113 virtual void closeRecord(
const bool & simulation_ending =
false) { (void) simulation_ending; }
129 bool is_collected_ =
false;
Define a base Collector class.
Basic Node framework in sparta device tree composite pattern.
Node in a composite tree representing a sparta Tree item.
static const group_idx_type GROUP_IDX_NONE
GroupIndex indicating that a node has no group index because it belongs to no group.
void markHidden(bool hidden=true)
Marks this TreeNode hidden for the purposes of printint out nodes. This does not make the node inacce...
static constexpr char GROUP_NAME_NONE[]
Group name indicating that a node belongs to no group.
An abstract type of TreeNode that has virtual calls to start collection on this node,...
virtual void closeRecord(const bool &simulation_ending=false)
CollectableTreeNode(sparta::TreeNode *parent, const std::string &name, const std::string &group, uint32_t index, const std::string &desc="CollectableTreeNode <no desc>")
Construct.
virtual ~CollectableTreeNode()
Virtual destructor.
virtual void setCollecting_(bool collect, Collector *)
Indicate to sub-classes that collection has flipped.
CollectableTreeNode(sparta::TreeNode *parent, const std::string &name, const std::string &desc="CollectableTreeNode <no desc>")
Construct.
void startCollecting(Collector *collector)
Method that tells this treenode that is now running collection.
bool isCollected() const
Determine whether or not this node has collection turned on or off.
void stopCollecting(Collector *collector)
Method that tells this treenode that is now not running collection.
virtual void restartRecord()
A non-templated base class that all Collectors should inherit from.
Macros for handling exponential backoff.