GNU Octave  9.1.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
refcount< T > Class Template Reference

#include "oct-refcount.h"

Public Types

typedef T count_type
 

Public Member Functions

 refcount (count_type initial_count)
 
 ~refcount ()=default
 
 operator count_type () const
 
count_type operator++ ()
 
count_type operator++ (int)
 
count_type operator-- ()
 
count_type operator-- (int)
 
count_type value () const
 

Detailed Description

template<typename T>
class refcount< T >

Definition at line 38 of file oct-refcount.h.

Member Typedef Documentation

◆ count_type

template<typename T >
typedef T refcount< T >::count_type

Definition at line 42 of file oct-refcount.h.

Constructor & Destructor Documentation

◆ refcount()

template<typename T >
refcount< T >::refcount ( count_type  initial_count)
inline

Definition at line 44 of file oct-refcount.h.

◆ ~refcount()

template<typename T >
refcount< T >::~refcount ( )
default

Member Function Documentation

◆ operator count_type()

template<typename T >
refcount< T >::operator count_type ( ) const
inline

Definition at line 78 of file oct-refcount.h.

References refcount< T >::value().

◆ operator++() [1/2]

template<typename T >
count_type refcount< T >::operator++ ( )
inline

Definition at line 53 of file oct-refcount.h.

◆ operator++() [2/2]

template<typename T >
count_type refcount< T >::operator++ ( int  )
inline

Definition at line 58 of file oct-refcount.h.

◆ operator--() [1/2]

template<typename T >
count_type refcount< T >::operator-- ( )
inline

Definition at line 63 of file oct-refcount.h.

◆ operator--() [2/2]

template<typename T >
count_type refcount< T >::operator-- ( int  )
inline

Definition at line 68 of file oct-refcount.h.

◆ value()

template<typename T >
count_type refcount< T >::value ( ) const
inline

Definition at line 73 of file oct-refcount.h.

Referenced by refcount< T >::operator count_type().


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