Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

PStatView Class Reference

#include <pStatView.h>

List of all members.

Public Member Functions

 PStatView ()
 ~PStatView ()
void constrain (int collector, bool show_level)
void unconstrain ()
void set_thread_data (const PStatThreadData *thread_data)
INLINE const PStatThreadDataget_thread_data ()
INLINE const PStatClientDataget_client_data ()
void set_to_frame (const PStatFrameData &frame_data)
INLINE void set_to_frame (int frame_number)
INLINE void set_to_time (float time)
bool all_collectors_known () const
float get_net_value () const
const PStatViewLevelget_top_level ()
bool has_level (int collector) const
PStatViewLevelget_level (int collector)
INLINE int get_level_index () const

Private Types

typedef pmap< int, PStatViewLevel * > Levels

Private Member Functions

void update_time_data (const PStatFrameData &frame_data)
void update_level_data (const PStatFrameData &frame_data)
void clear_levels ()
bool reset_level (PStatViewLevel *level)
 CPT (PStatClientData) _client_data
 CPT (PStatThreadData) _thread_data

Private Attributes

int _constraint
bool _show_level
bool _all_collectors_known
Levels _levels
int _level_index


Member Typedef Documentation

typedef pmap<int, PStatViewLevel *> PStatView::Levels [private]
 

Definition at line 75 of file pStatView.h.


Constructor & Destructor Documentation

PStatView::PStatView  ) 
 

Definition at line 135 of file pStatView.cxx.

References _all_collectors_known, _constraint, _level_index, and _show_level.

PStatView::~PStatView  ) 
 

Definition at line 148 of file pStatView.cxx.

References clear_levels().


Member Function Documentation

bool PStatView::all_collectors_known  )  const
 

Definition at line 241 of file pStatView.cxx.

References _all_collectors_known.

Referenced by TextMonitor::new_data().

void PStatView::clear_levels  )  [private]
 

Definition at line 534 of file pStatView.cxx.

References _levels.

Referenced by constrain(), set_thread_data(), and ~PStatView().

void PStatView::constrain int  collector,
bool  show_level
 

Definition at line 174 of file pStatView.cxx.

References _constraint, _show_level, and clear_levels().

Referenced by unconstrain().

PStatView::CPT PStatThreadData   )  [private]
 

PStatView::CPT PStatClientData   )  [private]
 

INLINE const PStatClientData* PStatView::get_client_data  ) 
 

PStatViewLevel * PStatView::get_level int  collector  ) 
 

Definition at line 301 of file pStatView.cxx.

References _levels, level, NULL, and reset_level().

Referenced by PStatStripChart::get_frame_data(), get_top_level(), reset_level(), PStatStripChart::update_labels(), update_level_data(), and update_time_data().

INLINE int PStatView::get_level_index  )  const
 

Referenced by PStatStripChart::update(), and PStatStripChart::update_labels().

float PStatView::get_net_value  )  const
 

Definition at line 254 of file pStatView.cxx.

References _levels.

Referenced by TextMonitor::new_data().

INLINE const PStatThreadData* PStatView::get_thread_data  ) 
 

Referenced by PStatStripChart::draw_frames(), PStatStripChart::draw_pixels(), PStatStripChart::get_collector_under_pixel(), PStatStripChart::get_frame_data(), GtkStatsStripWindow::idle(), TextMonitor::new_data(), PStatStripChart::set_auto_vertical_scale(), and PStatStripChart::update().

const PStatViewLevel * PStatView::get_top_level  ) 
 

Definition at line 274 of file pStatView.cxx.

References _constraint, and get_level().

Referenced by TextMonitor::new_data().

bool PStatView::has_level int  collector  )  const
 

Definition at line 285 of file pStatView.cxx.

References _levels.

bool PStatView::reset_level PStatViewLevel level  )  [private]
 

Definition at line 556 of file pStatView.cxx.

References PStatViewLevel::_children, _constraint, get_level(), level, nassertr, NULL, and PStatViewLevel::sort_children().

Referenced by get_level(), update_level_data(), and update_time_data().

void PStatView::set_thread_data const PStatThreadData thread_data  ) 
 

Definition at line 197 of file pStatView.cxx.

References _all_collectors_known, clear_levels(), and PStatThreadData::get_client_data().

INLINE void PStatView::set_to_frame int  frame_number  ) 
 

void PStatView::set_to_frame const PStatFrameData frame_data  ) 
 

Definition at line 220 of file pStatView.cxx.

References nassertv, update_level_data(), and update_time_data().

Referenced by PStatStripChart::get_frame_data(), and TextMonitor::new_data().

INLINE void PStatView::set_to_time float  time  ) 
 

void PStatView::unconstrain  ) 
 

Definition at line 187 of file pStatView.cxx.

References constrain().

void PStatView::update_level_data const PStatFrameData frame_data  )  [private]
 

Definition at line 431 of file pStatView.cxx.

References _all_collectors_known, _constraint, _level_index, _levels, PStatCollectorDef::_parent_index, get_level(), PStatFrameData::get_level(), PStatFrameData::get_level_collector(), PStatFrameData::get_num_levels(), level, and reset_level().

Referenced by set_to_frame().

void PStatView::update_time_data const PStatFrameData frame_data  )  [private]
 

Definition at line 324 of file pStatView.cxx.

References _all_collectors_known, _constraint, _level_index, _levels, PStatFrameData::get_end(), get_level(), PStatFrameData::get_num_events(), PStatFrameData::get_time(), PStatFrameData::get_time_collector(), PStatFrameData::is_start(), level, nassertv, nout, and reset_level().

Referenced by set_to_frame().


Member Data Documentation

bool PStatView::_all_collectors_known [private]
 

Definition at line 73 of file pStatView.h.

Referenced by all_collectors_known(), PStatView(), set_thread_data(), update_level_data(), and update_time_data().

int PStatView::_constraint [private]
 

Definition at line 71 of file pStatView.h.

Referenced by constrain(), get_top_level(), PStatView(), reset_level(), update_level_data(), and update_time_data().

int PStatView::_level_index [private]
 

Definition at line 78 of file pStatView.h.

Referenced by PStatView(), update_level_data(), and update_time_data().

Levels PStatView::_levels [private]
 

Definition at line 76 of file pStatView.h.

Referenced by clear_levels(), get_level(), get_net_value(), has_level(), update_level_data(), and update_time_data().

bool PStatView::_show_level [private]
 

Definition at line 72 of file pStatView.h.

Referenced by constrain(), and PStatView().


The documentation for this class was generated from the following files:
Generated on Fri Apr 18 01:01:24 2003 for Panda-Tool by doxygen1.3