OPAL (Object Oriented Parallel Accelerator Library) 2022.1
OPAL
Public Member Functions | Private Attributes | List of all members
RefCountedP< T > Class Template Reference

#include <RefCounted.h>

Public Member Functions

 RefCountedP ()
 
 RefCountedP (T *pp)
 
 RefCountedP (const RefCountedP< T > &pp)
 
 ~RefCountedP ()
 
RefCountedPoperator= (const RefCountedP &rhs)
 
RefCountedPoperator= (T *pp)
 
T * operator-> () const
 
T & operator* () const
 
 operator T* ()
 
 operator const T * () const
 
void invalidate ()
 
bool valid ()
 
RefCountedP< T > & CopyForWrite ()
 

Private Attributes

T * p
 

Detailed Description

template<class T>
class RefCountedP< T >

Definition at line 34 of file RefCounted.h.

Constructor & Destructor Documentation

◆ RefCountedP() [1/3]

template<class T >
RefCountedP< T >::RefCountedP ( )
inline

Definition at line 39 of file RefCounted.h.

◆ RefCountedP() [2/3]

template<class T >
RefCountedP< T >::RefCountedP ( T *  pp)
inline

Definition at line 45 of file RefCounted.h.

◆ RefCountedP() [3/3]

template<class T >
RefCountedP< T >::RefCountedP ( const RefCountedP< T > &  pp)
inline

Definition at line 53 of file RefCounted.h.

References RefCountedP< T >::p.

◆ ~RefCountedP()

template<class T >
RefCountedP< T >::~RefCountedP ( )
inline

Definition at line 61 of file RefCounted.h.

References RefCountedP< T >::p.

Member Function Documentation

◆ CopyForWrite()

template<class T >
RefCountedP< T > & RefCountedP< T >::CopyForWrite ( )
inline

Definition at line 114 of file RefCounted.h.

References RefCountedP< T >::p, and Attrib::Legacy::Distribution::T.

◆ invalidate()

template<class T >
void RefCountedP< T >::invalidate ( )
inline

Definition at line 102 of file RefCounted.h.

References RefCountedP< T >::p.

◆ operator const T *()

template<class T >
RefCountedP< T >::operator const T * ( ) const
inline

Definition at line 100 of file RefCounted.h.

References RefCountedP< T >::p.

◆ operator T*()

template<class T >
RefCountedP< T >::operator T* ( )
inline

Definition at line 99 of file RefCounted.h.

References RefCountedP< T >::p.

◆ operator*()

template<class T >
T & RefCountedP< T >::operator* ( void  ) const
inline

Definition at line 96 of file RefCounted.h.

References RefCountedP< T >::p.

◆ operator->()

template<class T >
T * RefCountedP< T >::operator-> ( ) const
inline

Definition at line 95 of file RefCounted.h.

References RefCountedP< T >::p.

◆ operator=() [1/2]

template<class T >
RefCountedP & RefCountedP< T >::operator= ( const RefCountedP< T > &  rhs)
inline

Definition at line 71 of file RefCounted.h.

References RefCountedP< T >::p.

◆ operator=() [2/2]

template<class T >
RefCountedP & RefCountedP< T >::operator= ( T *  pp)
inline

Definition at line 83 of file RefCounted.h.

References RefCountedP< T >::p.

◆ valid()

template<class T >
bool RefCountedP< T >::valid ( )
inline

Definition at line 108 of file RefCounted.h.

References RefCountedP< T >::p.

Member Data Documentation

◆ p

template<class T >
T* RefCountedP< T >::p
private

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