15 #include "pStatViewLevel.h"
16 #include "pStatClientData.h"
18 #include "pStatCollectorDef.h"
32 double net = _value_alone;
34 Children::const_iterator ci;
35 for (ci = _children.begin(); ci != _children.end(); ++ci) {
36 net += (*ci)->get_net_value();
48 _client_data(client_data) {
68 sort(_children.begin(), _children.end(), sort_levels);
81 return _children.size();
91 nassertr(n >= 0 && n < (
int)_children.size(), NULL);
void sort_children(const PStatClientData *client_data)
Sorts the children of this view level into order as specified by the client's sort index...
const PStatViewLevel * get_child(int n) const
Returns the nth child of this Level/Collector.
The data associated with a particular client, but not with any one particular frame or thread: the li...
This is a single level value, or band of color, within a View.
const PStatCollectorDef & get_collector_def(int index) const
Returns the nth collector definition.
int get_num_children() const
Returns the number of children of this Level/Collector.
double get_net_value() const
Returns the total level value (or elapsed time) represented by this Collector, including all values i...
int get_collector() const
Returns the Collector index associated with this level.