KiCad PCB EDA Suite
Loading...
Searching...
No Matches
OBJECT_3D_STATS Class Reference

Implements a class for object statistics using Singleton pattern. More...

#include <object_3d.h>

Public Member Functions

void ResetStats ()
 
unsigned int GetCountOf (OBJECT_3D_TYPE aObjType) const
 
void AddOne (OBJECT_3D_TYPE aObjType)
 

Static Public Member Functions

static OBJECT_3D_STATSInstance ()
 

Private Member Functions

 OBJECT_3D_STATS ()
 
 OBJECT_3D_STATS (const OBJECT_3D_STATS &old)
 
const OBJECT_3D_STATSoperator= (const OBJECT_3D_STATS &old)
 
 ~OBJECT_3D_STATS ()
 

Private Attributes

unsigned int m_counter [static_cast< int >(OBJECT_3D_TYPE::MAX)]
 

Static Private Attributes

static OBJECT_3D_STATSs_instance = 0
 

Detailed Description

Implements a class for object statistics using Singleton pattern.

Definition at line 112 of file object_3d.h.

Constructor & Destructor Documentation

◆ OBJECT_3D_STATS() [1/2]

OBJECT_3D_STATS::OBJECT_3D_STATS ( )
inlineprivate

Definition at line 141 of file object_3d.h.

References ResetStats().

Referenced by Instance().

◆ OBJECT_3D_STATS() [2/2]

OBJECT_3D_STATS::OBJECT_3D_STATS ( const OBJECT_3D_STATS old)
private

◆ ~OBJECT_3D_STATS()

OBJECT_3D_STATS::~OBJECT_3D_STATS ( )
inlineprivate

Definition at line 144 of file object_3d.h.

Member Function Documentation

◆ AddOne()

void OBJECT_3D_STATS::AddOne ( OBJECT_3D_TYPE  aObjType)
inline

Definition at line 125 of file object_3d.h.

References m_counter.

Referenced by OBJECT_3D::OBJECT_3D().

◆ GetCountOf()

unsigned int OBJECT_3D_STATS::GetCountOf ( OBJECT_3D_TYPE  aObjType) const
inline

Definition at line 120 of file object_3d.h.

References m_counter.

◆ Instance()

static OBJECT_3D_STATS & OBJECT_3D_STATS::Instance ( )
inlinestatic

Definition at line 132 of file object_3d.h.

References OBJECT_3D_STATS(), and s_instance.

Referenced by OBJECT_3D::OBJECT_3D(), and RENDER_3D_RAYTRACE_BASE::Reload().

◆ operator=()

const OBJECT_3D_STATS & OBJECT_3D_STATS::operator= ( const OBJECT_3D_STATS old)
private

◆ ResetStats()

void OBJECT_3D_STATS::ResetStats ( )
inline

Definition at line 115 of file object_3d.h.

References m_counter.

Referenced by OBJECT_3D_STATS(), and RENDER_3D_RAYTRACE_BASE::Reload().

Member Data Documentation

◆ m_counter

unsigned int OBJECT_3D_STATS::m_counter[static_cast< int >(OBJECT_3D_TYPE::MAX)]
private

Definition at line 146 of file object_3d.h.

Referenced by AddOne(), GetCountOf(), and ResetStats().

◆ s_instance

OBJECT_3D_STATS * OBJECT_3D_STATS::s_instance = 0
staticprivate

Definition at line 148 of file object_3d.h.

Referenced by Instance().


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