Openholo  beta 3.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 55 of file Base.h.

Constructor & Destructor Documentation

◆ Base()

Base::Base ( void  )
inlineexplicit

Constructor.

Initialize variable.

Definition at line 61 of file Base.h.

◆ ~Base()

virtual Base::~Base ( void  )
inlineprotectedvirtual

Destructor.

Definition at line 66 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 75 of file Base.h.

◆ ophFree()

virtual void Base::ophFree ( void  )
inlineprotectedpure 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, ophCascadedPropagation, Openholo, ophDepthMap, ophWaveAberration, ophSig, and ophRec.

Definition at line 94 of file Base.h.

◆ release()

unsigned long Base::release ( void  )
inline

Call release() when reference is finished.

Definition at line 80 of file Base.h.

Member Data Documentation

◆ refCnt

unsigned long Base::refCnt
protected

Definition at line 69 of file Base.h.


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