GiNaC 1.8.7
Public Member Functions | Private Attributes | List of all members
GiNaC::refcounted Class Reference

Base class for reference-counted objects. More...

#include <ptr.h>

Inheritance diagram for GiNaC::refcounted:
GiNaC::basic GiNaC::constant GiNaC::container< C > GiNaC::expairseq GiNaC::fail GiNaC::idx GiNaC::integral GiNaC::integration_kernel GiNaC::matrix GiNaC::numeric GiNaC::power GiNaC::pseries GiNaC::relational GiNaC::structure< T, ComparisonPolicy > GiNaC::symbol GiNaC::symmetry GiNaC::tensor GiNaC::wildcard

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...

Detailed Description

Base class for reference-counted objects.

Definition at line 35 of file ptr.h.

Constructor & Destructor Documentation

◆ refcounted()

GiNaC::refcounted::refcounted ( )

Definition at line 37 of file ptr.h.

Member Function Documentation

◆ add_reference()

unsigned int GiNaC::refcounted::add_reference ( )

Definition at line 39 of file ptr.h.

References refcount.

◆ remove_reference()

unsigned int GiNaC::refcounted::remove_reference ( )

Definition at line 40 of file ptr.h.

References refcount.

◆ get_refcount()

unsigned int GiNaC::refcounted::get_refcount ( ) const

Definition at line 41 of file ptr.h.

References refcount.

Referenced by GiNaC::ex::construct_from_basic(), and GiNaC::basic::~basic().

◆ set_refcount()

void GiNaC::refcounted::set_refcount ( unsigned int  r)

Definition at line 42 of file ptr.h.

References r, and refcount.

Member Data Documentation

◆ refcount

unsigned int GiNaC::refcounted::refcount

reference counter

Definition at line 45 of file ptr.h.

Referenced by add_reference(), get_refcount(), remove_reference(), and set_refcount().

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

This page is part of the GiNaC developer's reference. It was generated automatically by doxygen. For an introduction, see the tutorial.