00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015 #ifndef PSTATTHREAD_H
00016 #define PSTATTHREAD_H
00017
00018 #include "pandabase.h"
00019
00020 #include "pStatClient.h"
00021
00022 class Thread;
00023
00024
00025
00026
00027
00028
00029
00030 class EXPCL_PANDA_PSTATCLIENT PStatThread {
00031 private:
00032 INLINE PStatThread();
00033 INLINE PStatThread(PStatClient *client, int index);
00034
00035 PUBLISHED:
00036 INLINE PStatThread(Thread *thread, PStatClient *client = NULL);
00037
00038 INLINE PStatThread(const PStatThread ©);
00039 INLINE void operator = (const PStatThread ©);
00040
00041 INLINE void new_frame();
00042
00043 Thread *get_thread() const;
00044 INLINE int get_index() const;
00045
00046 private:
00047 PStatClient *_client;
00048 int _index;
00049
00050 friend class PStatClient;
00051 friend class PStatCollector;
00052 };
00053
00054 #include "pStatThread.I"
00055
00056 #endif
00057