00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015 #ifndef PSTATVIEWLEVEL_H
00016 #define PSTATVIEWLEVEL_H
00017
00018 #include "pandatoolbase.h"
00019
00020 #include "pvector.h"
00021
00022 class PStatClientData;
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033 class PStatViewLevel {
00034 public:
00035 INLINE int get_collector() const;
00036 INLINE double get_value_alone() const;
00037 double get_net_value() const;
00038
00039 void sort_children(const PStatClientData *client_data);
00040
00041 int get_num_children() const;
00042 const PStatViewLevel *get_child(int n) const;
00043
00044 private:
00045 int _collector;
00046 double _value_alone;
00047 PStatViewLevel *_parent;
00048
00049 typedef pvector<PStatViewLevel *> Children;
00050 Children _children;
00051
00052 friend class PStatView;
00053 };
00054
00055 #include "pStatViewLevel.I"
00056
00057 #endif