casacore
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
casacore::TaQLNodeResultRep Class Reference

More...

#include <TaQLNodeResult.h>

Public Member Functions

 TaQLNodeResultRep ()
 Default constructor clears the reference count. More...
 
virtual ~TaQLNodeResultRep ()
 Destructor. More...
 

Static Public Member Functions

static TaQLNodeResultReplink (TaQLNodeResultRep *rep)
 Increment the reference count. More...
 
static void unlink (TaQLNodeResultRep *rep)
 Decrement the reference count. More...
 

Private Member Functions

 TaQLNodeResultRep (const TaQLNodeResultRep &)
 Letter objects cannot be copied. More...
 
TaQLNodeResultRepoperator= (const TaQLNodeResultRep &)
 

Private Attributes

int itsCount
 

Detailed Description

Abstract base class to hold the result of a visit to the node tree.

Intended use:

Internal

Review Status

Test programs:
tTableGram

Prerequisite

Synopsis

TaQLNodeResultRep is the abstract base class for classes holding values filled by visitors to the raw TaQL parse tree. Visitors are classes derived from TaQLNodeVisitor which traverse the parse tree. TaQLNodeResultRep is the counted referenced letter class in the envelope class TaQLNodeResult.

Definition at line 62 of file TaQLNodeResult.h.

Constructor & Destructor Documentation

◆ TaQLNodeResultRep() [1/2]

casacore::TaQLNodeResultRep::TaQLNodeResultRep ( )
inline

Default constructor clears the reference count.

The count is updated by functions link and unlink.

Definition at line 67 of file TaQLNodeResult.h.

◆ ~TaQLNodeResultRep()

virtual casacore::TaQLNodeResultRep::~TaQLNodeResultRep ( )
virtual

Destructor.

◆ TaQLNodeResultRep() [2/2]

casacore::TaQLNodeResultRep::TaQLNodeResultRep ( const TaQLNodeResultRep )
private

Letter objects cannot be copied.

Member Function Documentation

◆ link()

static TaQLNodeResultRep* casacore::TaQLNodeResultRep::link ( TaQLNodeResultRep rep)
inlinestatic

Increment the reference count.

Definition at line 74 of file TaQLNodeResult.h.

References itsCount.

Referenced by casacore::TaQLNodeResult::operator=(), and casacore::TaQLNodeResult::TaQLNodeResult().

◆ operator=()

TaQLNodeResultRep& casacore::TaQLNodeResultRep::operator= ( const TaQLNodeResultRep )
private

◆ unlink()

static void casacore::TaQLNodeResultRep::unlink ( TaQLNodeResultRep rep)
inlinestatic

Decrement the reference count.

Delete the letter if no more references.

Definition at line 82 of file TaQLNodeResult.h.

References itsCount.

Referenced by casacore::TaQLNodeResult::operator=(), and casacore::TaQLNodeResult::~TaQLNodeResult().

Member Data Documentation

◆ itsCount

int casacore::TaQLNodeResultRep::itsCount
private

Definition at line 94 of file TaQLNodeResult.h.

Referenced by link(), and unlink().


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