GiNaC 1.8.7
|
Base class for reference-counted objects. More...
#include <ptr.h>
Public Member Functions | |
refcounted () noexcept | |
unsigned int | add_reference () noexcept |
unsigned int | remove_reference () noexcept |
unsigned int | get_refcount () const noexcept |
void | set_refcount (unsigned int r) noexcept |
Private Attributes | |
unsigned int | refcount |
reference counter More... | |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
Definition at line 41 of file ptr.h.
References refcount.
Referenced by GiNaC::ex::construct_from_basic(), and GiNaC::basic::~basic().
|
inlinenoexcept |
|
private |
reference counter
Definition at line 45 of file ptr.h.
Referenced by add_reference(), get_refcount(), remove_reference(), and set_refcount().