Openholo  v4.0
Open Source Digital Holographic Library
Base Class Referenceabstract

#include <Base.h>

Inheritance diagram for Base:

Public Member Functions

 Base (void)
 Constructor. More...
 
unsigned long addRef (void)
 If referenced this(Base's child, not abstract class) instance, must call this method. More...
 
unsigned long release (void)
 Call release() when reference is finished. More...
 

Protected Member Functions

virtual ~Base (void)
 Destructor. More...
 
virtual void ophFree (void)=0
 When refCnt is 0 (zero), it is call inside release() when release() is called. More...
 

Protected Attributes

unsigned long refCnt
 

Detailed Description

Definition at line 63 of file Base.h.

Constructor & Destructor Documentation

◆ Base()

Base::Base ( void  )
inlineexplicit

Constructor.

Initialize variable.

Definition at line 69 of file Base.h.

◆ ~Base()

virtual Base::~Base ( void  )
inlineprotectedvirtual

Destructor.

Definition at line 74 of file Base.h.

Member Function Documentation

◆ addRef()

unsigned long Base::addRef ( void  )
inline

If referenced this(Base's child, not abstract class) instance, must call this method.

Definition at line 83 of file Base.h.

◆ ophFree()

virtual void Base::ophFree ( void  )
protectedpure virtual

When refCnt is 0 (zero), it is call inside release() when release() is called.

A class inheriting from Base can override this method.

Implemented in ophGen, ophSig, Openholo, ophCascadedPropagation, ophDepthMap, ophWaveAberration, ophLF, and ophRec.

◆ release()

unsigned long Base::release ( void  )
inline

Call release() when reference is finished.

Definition at line 88 of file Base.h.

Member Data Documentation

◆ refCnt

unsigned long Base::refCnt
protected

Definition at line 77 of file Base.h.


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