casacore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
casacore::TaQLNodeResultRep Class Reference

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

#include <TaQLNodeResult.h>

Inheritance diagram for casacore::TaQLNodeResultRep:
casacore::TaQLNodeHRValue

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

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.

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

Destructor.

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

Letter objects cannot be copied.

Member Function Documentation

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().

TaQLNodeResultRep& casacore::TaQLNodeResultRep::operator= ( const TaQLNodeResultRep )
private
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

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: