SystemC Library API Reference Manual
Reference documentation for the Simics SystemC Library.
 
Loading...
Searching...
No Matches
simics::systemc::InstanceCounter< T > Class Template Reference

Keeps track of (counts) the number of instances for this type of class. More...

#include <instance_counter.h>

Public Member Functions

 InstanceCounter ()
 
 InstanceCounter (const InstanceCounter &)=delete
 
InstanceCounteroperator= (const InstanceCounter &)=delete
 
virtual ~InstanceCounter ()
 

Static Public Member Functions

static int instances ()
 

Detailed Description

template<class T>
class simics::systemc::InstanceCounter< T >

Keeps track of (counts) the number of instances for this type of class.

Each time an instance is created, the count goes up. Each time an instance is deleted, the count goes down. This is typically used to make sure all instances of NullConfObjectRef have been replaced with actual ConfObjectRef objects.

Constructor & Destructor Documentation

◆ InstanceCounter() [1/2]

template<class T >
simics::systemc::InstanceCounter< T >::InstanceCounter ( )
inline

◆ InstanceCounter() [2/2]

template<class T >
simics::systemc::InstanceCounter< T >::InstanceCounter ( const InstanceCounter< T > &  )
delete

◆ ~InstanceCounter()

template<class T >
virtual simics::systemc::InstanceCounter< T >::~InstanceCounter ( )
inlinevirtual

Member Function Documentation

◆ instances()

template<class T >
static int simics::systemc::InstanceCounter< T >::instances ( )
inlinestatic

◆ operator=()

template<class T >
InstanceCounter & simics::systemc::InstanceCounter< T >::operator= ( const InstanceCounter< T > &  )
delete

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