blocxx
BLOCXX_NAMESPACE::RefCount Class Reference

#include <RefCount.hpp>

Public Member Functions

 RefCount ()
 
 RefCount (Atomic_t c)
 
void inc ()
 
bool decAndTest ()
 
int get () const
 

Private Attributes

Atomic_t m_count
 

Detailed Description

Definition at line 50 of file RefCount.hpp.

Constructor & Destructor Documentation

◆ RefCount() [1/2]

BLOCXX_NAMESPACE::RefCount::RefCount ( )
inline

Definition at line 53 of file RefCount.hpp.

◆ RefCount() [2/2]

BLOCXX_NAMESPACE::RefCount::RefCount ( Atomic_t c)
inline

Definition at line 57 of file RefCount.hpp.

Member Function Documentation

◆ decAndTest()

bool BLOCXX_NAMESPACE::RefCount::decAndTest ( )
inline

Definition at line 65 of file RefCount.hpp.

References BLOCXX_NAMESPACE::AtomicDecAndTest().

◆ get()

int BLOCXX_NAMESPACE::RefCount::get ( ) const
inline

Definition at line 69 of file RefCount.hpp.

References BLOCXX_NAMESPACE::AtomicGet().

◆ inc()

void BLOCXX_NAMESPACE::RefCount::inc ( )
inline

Member Data Documentation

◆ m_count

Atomic_t BLOCXX_NAMESPACE::RefCount::m_count
private

Definition at line 74 of file RefCount.hpp.


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