|
OSG
3.4.0
|
#include <Stats.h>


Public Types | |
| typedef std::map< std::string, double > | AttributeMap |
| typedef std::vector< AttributeMap > | AttributeMapList |
| typedef std::map< std::string, bool > | CollectMap |
Public Member Functions | |
| Stats (const std::string &name) | |
| Stats (const std::string &name, unsigned int numberOfFrames) | |
| void | setName (const std::string &name) |
| const std::string & | getName () const |
| void | allocate (unsigned int numberOfFrames) |
| unsigned int | getEarliestFrameNumber () const |
| unsigned int | getLatestFrameNumber () const |
| bool | setAttribute (unsigned int frameNumber, const std::string &attributeName, double value) |
| bool | getAttribute (unsigned int frameNumber, const std::string &attributeName, double &value) const |
| bool | getAveragedAttribute (const std::string &attributeName, double &value, bool averageInInverseSpace=false) const |
| bool | getAveragedAttribute (unsigned int startFrameNumber, unsigned int endFrameNumber, const std::string &attributeName, double &value, bool averageInInverseSpace=false) const |
| AttributeMap & | getAttributeMap (unsigned int frameNumber) |
| const AttributeMap & | getAttributeMap (unsigned int frameNumber) const |
| void | collectStats (const std::string &str, bool flag) |
| bool | collectStats (const std::string &str) const |
| void | report (std::ostream &out, const char *indent=0) const |
| void | report (std::ostream &out, unsigned int frameNumber, const char *indent=0) const |
Public Member Functions inherited from osg::Referenced | |
| Referenced () | |
| Referenced (bool threadSafeRefUnref) | |
| Referenced (const Referenced &) | |
| Referenced & | operator= (const Referenced &) |
| virtual void | setThreadSafeRefUnref (bool threadSafe) |
| bool | getThreadSafeRefUnref () const |
| OpenThreads::Mutex * | getRefMutex () const |
| int | ref () const |
| int | unref () const |
| int | unref_nodelete () const |
| int | referenceCount () const |
| ObserverSet * | getObserverSet () const |
| ObserverSet * | getOrCreateObserverSet () const |
| void | addObserver (Observer *observer) const |
| void | removeObserver (Observer *observer) const |
Protected Member Functions | |
| virtual | ~Stats () |
| bool | getAttributeNoMutex (unsigned int frameNumber, const std::string &attributeName, double &value) const |
| AttributeMap & | getAttributeMapNoMutex (unsigned int frameNumber) |
| const AttributeMap & | getAttributeMapNoMutex (unsigned int frameNumber) const |
| int | getIndex (unsigned int frameNumber) const |
Protected Member Functions inherited from osg::Referenced | |
| virtual | ~Referenced () |
| void | signalObserversAndDelete (bool signalDelete, bool doDelete) const |
| void | deleteUsingDeleteHandler () const |
Protected Attributes | |
| std::string | _name |
| OpenThreads::Mutex | _mutex |
| unsigned int | _baseFrameNumber |
| unsigned int | _latestFrameNumber |
| AttributeMapList | _attributeMapList |
| AttributeMap | _invalidAttributeMap |
| CollectMap | _collectMap |
Protected Attributes inherited from osg::Referenced | |
| OpenThreads::AtomicPtr | _observerSet |
| OpenThreads::Atomic | _refCount |
Additional Inherited Members | |
Static Public Member Functions inherited from osg::Referenced | |
| static OpenThreads::Mutex * | getGlobalReferencedMutex () |
| static void | setThreadSafeReferenceCounting (bool enableThreadSafeReferenceCounting) |
| static bool | getThreadSafeReferenceCounting () |
| static void | setDeleteHandler (DeleteHandler *handler) |
| static DeleteHandler * | getDeleteHandler () |
| typedef std::map<std::string, double> osg::Stats::AttributeMap |
| typedef std::vector<AttributeMap> osg::Stats::AttributeMapList |
| typedef std::map<std::string, bool> osg::Stats::CollectMap |
| osg::Stats::Stats | ( | const std::string & | name | ) |
| osg::Stats::Stats | ( | const std::string & | name, |
| unsigned int | numberOfFrames | ||
| ) |
| void osg::Stats::allocate | ( | unsigned int | numberOfFrames | ) |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
protected |
|
protected |
|
protected |
| bool osg::Stats::getAveragedAttribute | ( | const std::string & | attributeName, |
| double & | value, | ||
| bool | averageInInverseSpace = false |
||
| ) | const |
| bool osg::Stats::getAveragedAttribute | ( | unsigned int | startFrameNumber, |
| unsigned int | endFrameNumber, | ||
| const std::string & | attributeName, | ||
| double & | value, | ||
| bool | averageInInverseSpace = false |
||
| ) | const |
|
inline |
|
inlineprotected |
|
inline |
| void osg::Stats::report | ( | std::ostream & | out, |
| const char * | indent = 0 |
||
| ) | const |
| void osg::Stats::report | ( | std::ostream & | out, |
| unsigned int | frameNumber, | ||
| const char * | indent = 0 |
||
| ) | const |
| bool osg::Stats::setAttribute | ( | unsigned int | frameNumber, |
| const std::string & | attributeName, | ||
| double | value | ||
| ) |
|
protected |
|
protected |
|
protected |
|
mutableprotected |
1.8.8