Scroom 0.14-48-ga0fee447
Loading...
Searching...
No Matches
Scroom::Utils::Counted< C > Class Template Reference

#include <utilities.hh>

Collaboration diagram for Scroom::Utils::Counted< C >:
Collaboration graph

Public Member Functions

 Counted ()
 
 Counted (const Counted &)
 
 Counted (Counted &&)
 
Countedoperator= (const Counted &)=default
 
Countedoperator= (Counted &&)=default
 
virtual ~Counted ()
 

Static Public Member Functions

static Count::Ptr count_instance ()
 

Private Attributes

Count::Ptr data
 

Constructor & Destructor Documentation

◆ Counted() [1/3]

template<class C >
Scroom::Utils::Counted< C >::Counted ( )
inline
199 {
200 data->inc();
201 }
static Count::Ptr count_instance()
Definition utilities.hh:191
Count::Ptr data
Definition utilities.hh:188

◆ Counted() [2/3]

template<class C >
Scroom::Utils::Counted< C >::Counted ( const Counted< C > &  )
inline
205 {
206 data->inc();
207 }

◆ Counted() [3/3]

template<class C >
Scroom::Utils::Counted< C >::Counted ( Counted< C > &&  )
inline
211 {
212 data->inc();
213 }

◆ ~Counted()

template<class C >
virtual Scroom::Utils::Counted< C >::~Counted ( )
inlinevirtual
218{ data->dec(); }

Member Function Documentation

◆ count_instance()

template<class C >
static Count::Ptr Scroom::Utils::Counted< C >::count_instance ( )
inlinestatic
192 {
193 static Count::Ptr const instance = Count::create(typeid(C).name());
194 return instance;
195 }
static Ptr create(const std::string &name)
Definition counter.cc:40
std::shared_ptr< Count > Ptr
Definition utilities.hh:134
ProgressBarPulser::Ptr instance()
Definition progressbarmanager.cc:44
Here is the call graph for this function:

◆ operator=() [1/2]

template<class C >
Counted & Scroom::Utils::Counted< C >::operator= ( const Counted< C > &  )
default

◆ operator=() [2/2]

template<class C >
Counted & Scroom::Utils::Counted< C >::operator= ( Counted< C > &&  )
default

Member Data Documentation

◆ data


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