spla
Public Member Functions | List of all members
spla::RefCnt Class Reference

Base class for object with built-in reference counting mechanism. More...

#include <ref.hpp>

Inheritance diagram for spla::RefCnt:
Inheritance graph
[legend]

Public Member Functions

virtual ~RefCnt ()
 
bool is_unique () const
 
std::int32_t get_refs () const
 
std::int32_t add_ref () const
 
std::int32_t rel_ref () const
 

Detailed Description

Base class for object with built-in reference counting mechanism.

Inherit from this class to have shared-ref logic for your class objects. Use RefPtr to wrap and automate RefCnt objects references counting.

Note
Used primary to marshal object handles in wrapping packages
See also
ref_ptr

Constructor & Destructor Documentation

◆ ~RefCnt()

virtual spla::RefCnt::~RefCnt ( )
inlinevirtual

Member Function Documentation

◆ add_ref()

std::int32_t spla::RefCnt::add_ref ( ) const
inline

◆ get_refs()

std::int32_t spla::RefCnt::get_refs ( ) const
inline

◆ is_unique()

bool spla::RefCnt::is_unique ( ) const
inline

◆ rel_ref()

std::int32_t spla::RefCnt::rel_ref ( ) const
inline

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