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

PStatClientData Class Reference

#include <pStatClientData.h>

Inheritance diagram for PStatClientData:

PStatClientVersion ReferenceCount List of all members.

Public Member Functions

 PStatClientData (PStatReader *reader)
 ~PStatClientData ()
bool is_alive () const
void close ()
int get_num_collectors () const
bool has_collector (int index) const
const PStatCollectorDefget_collector_def (int index) const
string get_collector_name (int index) const
string get_collector_fullname (int index) const
void set_collector_has_level (int index, bool flag)
bool get_collector_has_level (int index) const
int get_num_threads () const
bool has_thread (int index) const
string get_thread_name (int index) const
const PStatThreadDataget_thread_data (int index) const
int get_child_distance (int parent, int child) const
void add_collector (PStatCollectorDef *def)
void define_thread (int thread_index, const string &name=string())
void record_new_frame (int thread_index, int frame_number, PStatFrameData *frame_data)

Private Types

typedef pvector< CollectorCollectors
typedef pvector< ThreadThreads

Private Member Functions

void slot_collector (int collector_index)

Private Attributes

bool _is_alive
PStatReader_reader
Collectors _collectors
Threads _threads

Static Private Attributes

PStatCollectorDef _null_collector

Friends

class PStatReader

Member Typedef Documentation

typedef pvector<Collector> PStatClientData::Collectors [private]
 

Definition at line 83 of file pStatClientData.h.

typedef pvector<Thread> PStatClientData::Threads [private]
 

Definition at line 91 of file pStatClientData.h.


Constructor & Destructor Documentation

PStatClientData::PStatClientData PStatReader reader  ) 
 

Definition at line 34 of file pStatClientData.cxx.

References _is_alive, and reader().

PStatClientData::~PStatClientData  ) 
 

Definition at line 46 of file pStatClientData.cxx.

References _collectors.


Member Function Documentation

void PStatClientData::add_collector PStatCollectorDef def  ) 
 

Definition at line 271 of file pStatClientData.cxx.

References _collectors, PStatCollectorDef::_index, nassertv, NULL, and slot_collector().

void PStatClientData::close  ) 
 

Definition at line 71 of file pStatClientData.cxx.

References _is_alive, _reader, PStatReader::close(), and NULL.

void PStatClientData::define_thread int  thread_index,
const string &  name = string()
 

Definition at line 291 of file pStatClientData.cxx.

References _threads, and nassertv.

Referenced by record_new_frame().

int PStatClientData::get_child_distance int  parent,
int  child
const
 

Definition at line 245 of file pStatClientData.cxx.

References get_collector_def(), and has_collector().

const PStatCollectorDef & PStatClientData::get_collector_def int  index  )  const
 

Definition at line 110 of file pStatClientData.cxx.

References _collectors, _null_collector, has_collector(), and index.

Referenced by get_child_distance(), GtkStatsStripWindow::get_title_text(), GtkStatsStripWindow::new_collector(), SortCollectorLevels::operator()(), SortCollectorLabels2::operator()(), SortCollectorLabels1::operator()(), SortCollectorLabels::operator()(), PStatStripChart::PStatStripChart(), PStatStripChart::set_default_vertical_scale(), and GtkStatsStripWindow::setup_scale_menu().

string PStatClientData::get_collector_fullname int  index  )  const
 

Definition at line 140 of file pStatClientData.cxx.

References _collectors, PStatCollectorDef::_name, PStatCollectorDef::_parent_index, has_collector(), and index.

bool PStatClientData::get_collector_has_level int  index  )  const
 

Definition at line 176 of file pStatClientData.cxx.

References _collectors, and index.

Referenced by GtkStatsStripWindow::new_collector().

string PStatClientData::get_collector_name int  index  )  const
 

Definition at line 123 of file pStatClientData.cxx.

References _collectors, PStatCollectorDef::_name, has_collector(), and index.

Referenced by GtkStatsLabel::GtkStatsLabel(), GtkStatsStripWindow::new_collector(), and TextMonitor::show_level().

int PStatClientData::get_num_collectors  )  const
 

Definition at line 86 of file pStatClientData.cxx.

References _collectors.

Referenced by GtkStatsStripWindow::new_collector(), PStatStripChart::update(), and PStatPianoRoll::update().

int PStatClientData::get_num_threads  )  const
 

Definition at line 188 of file pStatClientData.cxx.

References _threads.

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

const PStatThreadData * PStatClientData::get_thread_data int  index  )  const
 

Definition at line 227 of file pStatClientData.cxx.

References _threads, index, nassertr, and NULL.

Referenced by PStatPianoRoll::update().

string PStatClientData::get_thread_name int  index  )  const
 

Definition at line 212 of file pStatClientData.cxx.

References _threads, has_thread(), and index.

Referenced by GtkStatsStripWindow::get_title_text(), and TextMonitor::new_data().

bool PStatClientData::has_collector int  index  )  const
 

Definition at line 99 of file pStatClientData.cxx.

References _collectors, index, and NULL.

Referenced by PStatPianoRoll::compute_page(), get_child_distance(), get_collector_def(), get_collector_fullname(), get_collector_name(), GtkStatsStripWindow::get_title_text(), GtkStatsStripWindow::new_collector(), PStatStripChart::PStatStripChart(), PStatStripChart::set_default_vertical_scale(), and GtkStatsStripWindow::setup_scale_menu().

bool PStatClientData::has_thread int  index  )  const
 

Definition at line 201 of file pStatClientData.cxx.

References _threads, and index.

Referenced by get_thread_name(), and GtkStatsStripWindow::get_title_text().

bool PStatClientData::is_alive  )  const
 

Definition at line 61 of file pStatClientData.cxx.

References _is_alive.

void PStatClientData::record_new_frame int  thread_index,
int  frame_number,
PStatFrameData frame_data
 

Definition at line 321 of file pStatClientData.cxx.

References _threads, define_thread(), and nassertv.

void PStatClientData::set_collector_has_level int  index,
bool  flag
 

Definition at line 161 of file pStatClientData.cxx.

References _collectors, index, nassertv, and slot_collector().

void PStatClientData::slot_collector int  collector_index  )  [private]
 

Definition at line 335 of file pStatClientData.cxx.

References _collectors, PStatClientData::Collector::_def, PStatClientData::Collector::_is_level, nassertv, and NULL.

Referenced by add_collector(), and set_collector_has_level().


Friends And Related Function Documentation

friend class PStatReader [friend]
 

Definition at line 95 of file pStatClientData.h.


Member Data Documentation

Collectors PStatClientData::_collectors [private]
 

Definition at line 84 of file pStatClientData.h.

Referenced by add_collector(), get_collector_def(), get_collector_fullname(), get_collector_has_level(), get_collector_name(), get_num_collectors(), has_collector(), set_collector_has_level(), slot_collector(), and ~PStatClientData().

bool PStatClientData::_is_alive [private]
 

Definition at line 74 of file pStatClientData.h.

Referenced by close(), is_alive(), and PStatClientData().

PStatCollectorDef PStatClientData::_null_collector [static, private]
 

Referenced by get_collector_def().

PStatReader* PStatClientData::_reader [private]
 

Definition at line 75 of file pStatClientData.h.

Referenced by close().

Threads PStatClientData::_threads [private]
 

Definition at line 92 of file pStatClientData.h.

Referenced by define_thread(), get_num_threads(), get_thread_data(), get_thread_name(), has_thread(), and record_new_frame().


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