VirtualFluids 0.2.0
Parallel CFD LBM Solver
Loading...
Searching...
No Matches
MbSmartPtr< ObjType > Class Template Reference

#include <MbSmartPtr.h>

Inheritance diagram for MbSmartPtr< ObjType >:
MbSmartPtrBase

Public Member Functions

 MbSmartPtr (const ObjType *pPtr=NULL)
 
template<class ParamType >
 MbSmartPtr (const MbSmartPtr< ParamType > &ptr)
 
 ~MbSmartPtr () override
 
 MbSmartPtr (const MbSmartPtr< ObjType > &ptr)
 
template<class ParamType >
const MbSmartPtr< ObjType > & operator= (const MbSmartPtr< ParamType > &ptr)
 
const MbSmartPtr< ObjType > & operator= (const MbSmartPtr< ObjType > &ptr)
 
const MbSmartPtr< ObjType > & operator= (const ObjType *pPtr)
 
ObjTypeoperator* () const
 
ObjTypeoperator-> () const
 
bool operator! () const
 
 operator ObjType * () const
 
ObjTypeget () const
 
int ref_count () const
 
bool release () const
 

Additional Inherited Members

- Protected Member Functions inherited from MbSmartPtrBase
 MbSmartPtrBase ()=default
 
virtual ~MbSmartPtrBase ()=default
 
bool addRef (void *p)
 
bool releaseRef (void *p)
 
bool removeFromGC (void *ptr) const
 
int ref_count (void *ptr) const
 

Detailed Description

template<class ObjType>
class MbSmartPtr< ObjType >

Definition at line 64 of file MbSmartPtr.h.

Constructor & Destructor Documentation

◆ MbSmartPtr() [1/3]

template<class ObjType >
MbSmartPtr< ObjType >::MbSmartPtr ( const ObjType pPtr = NULL)
inline

Definition at line 68 of file MbSmartPtr.h.

◆ MbSmartPtr() [2/3]

template<class ObjType >
template<class ParamType >
MbSmartPtr< ObjType >::MbSmartPtr ( const MbSmartPtr< ParamType > &  ptr)
inline

Definition at line 70 of file MbSmartPtr.h.

◆ ~MbSmartPtr()

template<class ObjType >
MbSmartPtr< ObjType >::~MbSmartPtr ( )
inlineoverride

Definition at line 75 of file MbSmartPtr.h.

◆ MbSmartPtr() [3/3]

template<class ObjType >
MbSmartPtr< ObjType >::MbSmartPtr ( const MbSmartPtr< ObjType > &  ptr)
inline

Definition at line 78 of file MbSmartPtr.h.

Member Function Documentation

◆ get()

template<class ObjType >
ObjType * MbSmartPtr< ObjType >::get ( ) const
inline

Definition at line 106 of file MbSmartPtr.h.

◆ operator ObjType *()

template<class ObjType >
MbSmartPtr< ObjType >::operator ObjType * ( ) const
inline

Definition at line 103 of file MbSmartPtr.h.

◆ operator!()

template<class ObjType >
bool MbSmartPtr< ObjType >::operator! ( ) const
inline

Definition at line 102 of file MbSmartPtr.h.

◆ operator*()

template<class ObjType >
ObjType & MbSmartPtr< ObjType >::operator* ( ) const
inline

Definition at line 100 of file MbSmartPtr.h.

◆ operator->()

template<class ObjType >
ObjType * MbSmartPtr< ObjType >::operator-> ( ) const
inline

Definition at line 101 of file MbSmartPtr.h.

◆ operator=() [1/3]

Definition at line 87 of file MbSmartPtr.h.

◆ operator=() [2/3]

Definition at line 82 of file MbSmartPtr.h.

◆ operator=() [3/3]

template<class ObjType >
const MbSmartPtr< ObjType > & MbSmartPtr< ObjType >::operator= ( const ObjType pPtr)
inline

Definition at line 93 of file MbSmartPtr.h.

◆ ref_count()

template<class ObjType >
int MbSmartPtr< ObjType >::ref_count ( ) const
inline

Definition at line 108 of file MbSmartPtr.h.

◆ release()

template<class ObjType >
bool MbSmartPtr< ObjType >::release ( ) const
inline

Definition at line 110 of file MbSmartPtr.h.


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