vrecko
virtual reality framework
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
vrecko::vThread Class Reference

#include <vThread.h>

Public Member Functions

 vThread (BaseClass *ent_ptr, float freq)
 
 vThread (std::vector< BaseClass * > ent_vec, float freq)
 
 vThread (void(*funcPtr)(void), float freq)
 
 vThread (void(*funcPtr)(void), unsigned int step, float freq)
 
 ~vThread ()
 
void start (void)
 
void stop (void)
 
bool getDone (void)
 
bool getRun (void)
 
float getFrequency (void)
 
osg::Timer_t getLastTick (void)
 
BaseClassgetEntityPtr (int pos)
 
bool addEntity (BaseClass *ent)
 
bool removeEntity (BaseClass *ent)
 
void syncEntityVector (void)
 
std::vector< BaseClass * > * getEntityVec (void)
 
unsigned int getStepCounter (void)
 
pthread_mutex_t * getMutex (void)
 
void reportError (const std::string &error)
 
void reportError (char *error)
 
unsigned long getDelay (void)
 

Static Public Member Functions

static pthread_mutex_t * createMutex ()
 
static void destroyMutex (pthread_mutex_t *mutex)
 
static unsigned long getDelay (osg::Timer_t last_t, float freq)
 
static const osg::Timer * getTimerPtr (void)
 

Public Attributes

void(*)() getFuncPtr (void)
 
osg::Timer_t last_tick
 

Protected Attributes

pthread_t th_read
 
std::vector< BaseClass * > * entity_vector
 
std::map< BaseClass *, bool > temp_entity_map
 
void(* voidFuncPtr )(void)
 
float frequency
 
bool done
 
bool run
 
unsigned int step_counter
 
pthread_mutex_t * hvT_Mutex
 

Static Protected Attributes

static const osg::Timer * timer = osg::Timer::instance()
 

Constructor & Destructor Documentation

vThread::vThread ( BaseClass ent_ptr,
float  freq 
)
vThread::vThread ( std::vector< BaseClass * >  ent_vec,
float  freq 
)
vThread::vThread ( void(*)(void)  funcPtr,
float  freq 
)
vThread::vThread ( void(*)(void)  funcPtr,
unsigned int  step,
float  freq 
)
vThread::~vThread ( )

Member Function Documentation

bool vThread::addEntity ( BaseClass ent)
pthread_mutex_t * vThread::createMutex ( )
static
void vThread::destroyMutex ( pthread_mutex_t *  mutex)
static
unsigned long vThread::getDelay ( osg::Timer_t  last_t,
float  freq 
)
static
unsigned long vrecko::vThread::getDelay ( void  )
inline
bool vrecko::vThread::getDone ( void  )
inline
BaseClass* vrecko::vThread::getEntityPtr ( int  pos)
inline
std::vector<BaseClass*>* vrecko::vThread::getEntityVec ( void  )
inline
float vrecko::vThread::getFrequency ( void  )
inline
osg::Timer_t vrecko::vThread::getLastTick ( void  )
inline
pthread_mutex_t* vrecko::vThread::getMutex ( void  )
inline
bool vrecko::vThread::getRun ( void  )
inline
unsigned int vrecko::vThread::getStepCounter ( void  )
inline
static const osg::Timer* vrecko::vThread::getTimerPtr ( void  )
inlinestatic
bool vThread::removeEntity ( BaseClass ent)
void vThread::reportError ( const std::string &  error)
void vrecko::vThread::reportError ( char *  error)
inline
void vrecko::vThread::start ( void  )
inline
void vrecko::vThread::stop ( void  )
inline
void vThread::syncEntityVector ( void  )

Member Data Documentation

bool vrecko::vThread::done
protected
std::vector<BaseClass*>* vrecko::vThread::entity_vector
protected
float vrecko::vThread::frequency
protected
void(*)() vrecko::vThread::getFuncPtr(void)
inline
pthread_mutex_t* vrecko::vThread::hvT_Mutex
protected
osg::Timer_t vrecko::vThread::last_tick
bool vrecko::vThread::run
protected
unsigned int vrecko::vThread::step_counter
protected
std::map<BaseClass*, bool> vrecko::vThread::temp_entity_map
protected
pthread_t vrecko::vThread::th_read
protected
const osg::Timer * vThread::timer = osg::Timer::instance()
staticprotected
void(* vrecko::vThread::voidFuncPtr)(void)
protected

The documentation for this class was generated from the following files: