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

PStatThreadData Class Reference

#include <pStatThreadData.h>

Inheritance diagram for PStatThreadData:

ReferenceCount List of all members.

Public Member Functions

 PStatThreadData (const PStatClientData *client_data)
 ~PStatThreadData ()
INLINE const PStatClientDataget_client_data () const
bool is_empty () const
int get_latest_frame_number () const
int get_oldest_frame_number () const
bool has_frame (int frame_number) const
const PStatFrameDataget_frame (int frame_number) const
float get_latest_time () const
float get_oldest_time () const
const PStatFrameDataget_frame_at_time (float time) const
int get_frame_number_at_time (float time, int hint=-1) const
const PStatFrameDataget_latest_frame () const
float get_frame_rate (float time=3.0) const
void set_history (float time)
float get_history () const
void record_new_frame (int frame_number, PStatFrameData *frame_data)

Private Types

typedef pdeque< PStatFrameData * > Frames

Private Attributes

const PStatClientData_client_data
Frames _frames
int _first_frame_number
float _history

Static Private Attributes

PStatFrameData _null_frame

Member Typedef Documentation

typedef pdeque<PStatFrameData *> PStatThreadData::Frames [private]
 

Definition at line 74 of file pStatThreadData.h.


Constructor & Destructor Documentation

PStatThreadData::PStatThreadData const PStatClientData client_data  ) 
 

Definition at line 34 of file pStatThreadData.cxx.

References _first_frame_number, _history, and pstats_history.

PStatThreadData::~PStatThreadData  ) 
 

Definition at line 47 of file pStatThreadData.cxx.


Member Function Documentation

INLINE const PStatClientData* PStatThreadData::get_client_data  )  const
 

Referenced by PStatView::set_thread_data().

const PStatFrameData & PStatThreadData::get_frame int  frame_number  )  const
 

Definition at line 110 of file pStatThreadData.cxx.

References _first_frame_number, _frames, _null_frame, PStatFrameData::get_start(), nassertr, NULL, and num_frames.

Referenced by PStatStripChart::draw_frames(), get_frame_at_time(), PStatStripChart::get_frame_data(), PStatStripChart::update(), and PStatPianoRoll::update().

const PStatFrameData & PStatThreadData::get_frame_at_time float  time  )  const
 

Definition at line 171 of file pStatThreadData.cxx.

References get_frame(), and get_frame_number_at_time().

int PStatThreadData::get_frame_number_at_time float  time,
int  hint = -1
const
 

Definition at line 186 of file pStatThreadData.cxx.

References _first_frame_number, _frames, PStatFrameData::get_start(), and NULL.

Referenced by PStatStripChart::draw_pixels(), PStatStripChart::get_collector_under_pixel(), get_frame_at_time(), and PStatStripChart::set_auto_vertical_scale().

float PStatThreadData::get_frame_rate float  time = 3.0  )  const
 

Definition at line 240 of file pStatThreadData.cxx.

References _frames, PStatFrameData::get_start(), nassertr, NULL, and num_frames.

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

float PStatThreadData::get_history  )  const
 

Definition at line 305 of file pStatThreadData.cxx.

References _history.

const PStatFrameData & PStatThreadData::get_latest_frame  )  const
 

Definition at line 227 of file pStatThreadData.cxx.

References _frames, _null_frame, and nassertr.

int PStatThreadData::get_latest_frame_number  )  const
 

Definition at line 69 of file pStatThreadData.cxx.

References _first_frame_number, _frames, and nassertr.

Referenced by PStatStripChart::draw_frames(), TextMonitor::new_data(), PStatStripChart::update(), and PStatPianoRoll::update().

float PStatThreadData::get_latest_time  )  const
 

Definition at line 147 of file pStatThreadData.cxx.

References _frames, and nassertr.

int PStatThreadData::get_oldest_frame_number  )  const
 

Definition at line 81 of file pStatThreadData.cxx.

References _first_frame_number, _frames, and nassertr.

float PStatThreadData::get_oldest_time  )  const
 

Definition at line 159 of file pStatThreadData.cxx.

References _frames, and nassertr.

bool PStatThreadData::has_frame int  frame_number  )  const
 

Definition at line 94 of file pStatThreadData.cxx.

References _first_frame_number, _frames, and NULL.

Referenced by PStatStripChart::draw_frames(), PStatStripChart::draw_pixels(), and PStatStripChart::set_auto_vertical_scale().

bool PStatThreadData::is_empty  )  const
 

Definition at line 58 of file pStatThreadData.cxx.

References _frames.

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

void PStatThreadData::record_new_frame int  frame_number,
PStatFrameData frame_data
 

Definition at line 322 of file pStatThreadData.cxx.

References _first_frame_number, _frames, _history, PStatFrameData::get_start(), index, PStatFrameData::is_empty(), nassertv, nout, and NULL.

void PStatThreadData::set_history float  time  ) 
 

Definition at line 292 of file pStatThreadData.cxx.

References _history.


Member Data Documentation

const PStatClientData* PStatThreadData::_client_data [private]
 

Definition at line 72 of file pStatThreadData.h.

int PStatThreadData::_first_frame_number [private]
 

Definition at line 76 of file pStatThreadData.h.

Referenced by get_frame(), get_frame_number_at_time(), get_latest_frame_number(), get_oldest_frame_number(), has_frame(), PStatThreadData(), and record_new_frame().

Frames PStatThreadData::_frames [private]
 

Definition at line 75 of file pStatThreadData.h.

Referenced by get_frame(), get_frame_number_at_time(), get_frame_rate(), get_latest_frame(), get_latest_frame_number(), get_latest_time(), get_oldest_frame_number(), get_oldest_time(), has_frame(), is_empty(), and record_new_frame().

float PStatThreadData::_history [private]
 

Definition at line 77 of file pStatThreadData.h.

Referenced by get_history(), PStatThreadData(), record_new_frame(), and set_history().

PStatFrameData PStatThreadData::_null_frame [static, private]
 

Definition at line 26 of file pStatThreadData.cxx.

Referenced by get_frame(), and get_latest_frame().


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