Dali 3D User Interface Engine
List of all members | Public Member Functions | Private Attributes
Dali::Internal::Adaptor::ObjectCounter Class Reference

Helper class to calculate number of OpenGL objects. More...

#include <gl-proxy-implementation.h>

Public Member Functions

 ObjectCounter (const char *description)
 
void Increment ()
 Increment the counter. More...
 
void Decrement ()
 Decrement the counter. More...
 
unsigned int GetCount () const
 
unsigned int GetPeak () const
 
const char * GetDescription () const
 

Private Attributes

const char * mDescription
 
unsigned int mCount
 
unsigned int mPeak
 

Detailed Description

Helper class to calculate number of OpenGL objects.

Definition at line 99 of file gl-proxy-implementation.h.

Constructor & Destructor Documentation

Dali::Internal::Adaptor::ObjectCounter::ObjectCounter ( const char *  description)

Definition at line 128 of file gl-proxy-implementation.cpp.

Member Function Documentation

void Dali::Internal::Adaptor::ObjectCounter::Decrement ( )
unsigned int Dali::Internal::Adaptor::ObjectCounter::GetCount ( ) const
Returns
The current number of objects

Definition at line 148 of file gl-proxy-implementation.cpp.

References mCount.

Referenced by Dali::Internal::Adaptor::GlProxyImplementation::LogObjectCounter().

Here is the caller graph for this function:

const char * Dali::Internal::Adaptor::ObjectCounter::GetDescription ( ) const
Returns
the description of the sampler

Definition at line 157 of file gl-proxy-implementation.cpp.

References mDescription.

Referenced by Dali::Internal::Adaptor::GlProxyImplementation::LogObjectCounter().

Here is the caller graph for this function:

unsigned int Dali::Internal::Adaptor::ObjectCounter::GetPeak ( ) const
Returns
The maximum number of objects created

Definition at line 152 of file gl-proxy-implementation.cpp.

References mPeak.

Referenced by Dali::Internal::Adaptor::GlProxyImplementation::LogObjectCounter().

Here is the caller graph for this function:

void Dali::Internal::Adaptor::ObjectCounter::Increment ( )

Member Data Documentation

unsigned int Dali::Internal::Adaptor::ObjectCounter::mCount
private

Definition at line 131 of file gl-proxy-implementation.h.

Referenced by Decrement(), GetCount(), and Increment().

const char* Dali::Internal::Adaptor::ObjectCounter::mDescription
private

Definition at line 130 of file gl-proxy-implementation.h.

Referenced by GetDescription().

unsigned int Dali::Internal::Adaptor::ObjectCounter::mPeak
private

Definition at line 132 of file gl-proxy-implementation.h.

Referenced by GetPeak(), and Increment().


The documentation for this class was generated from the following files:
Dali Docs Home
Read more about Dali