casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Private Attributes | List of all members
casacore::TaQLNodeResult Class Reference

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

#include <TaQLNodeResult.h>

Public Member Functions

 TaQLNodeResult ()
 Default constructor has no letter. More...
 
 TaQLNodeResult (TaQLNodeResultRep *rep)
 Take the given letter and increment its reference count. More...
 
 TaQLNodeResult (const TaQLNodeResult &that)
 Copy constructor (reference semantics). More...
 
TaQLNodeResultoperator= (const TaQLNodeResult &that)
 Assignment (reference semantics). More...
 
 ~TaQLNodeResult ()
 Destructor decrements the reference count. More...
 
Bool isValid () const
 Does the envelope hold a letter? More...
 
const TaQLNodeResultRepgetRep () const
 Get the actual underlying object. More...
 

Private Attributes

TaQLNodeResultRepitsRep
 

Detailed Description

Envelope class to hold the result of a visit to the node tree.

Intended use:

Internal

Review Status

Test programs:
tTableGram

Prerequisite

Synopsis

TaQLNodeResult is the envelope 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. The counted referenced letter base class for the envelope is class TaQLNodeResultRep.

Definition at line 123 of file TaQLNodeResult.h.

Constructor & Destructor Documentation

casacore::TaQLNodeResult::TaQLNodeResult ( )
inline

Default constructor has no letter.

Definition at line 127 of file TaQLNodeResult.h.

casacore::TaQLNodeResult::TaQLNodeResult ( TaQLNodeResultRep rep)
inline

Take the given letter and increment its reference count.

Definition at line 131 of file TaQLNodeResult.h.

References itsRep, and casacore::TaQLNodeResultRep::link().

casacore::TaQLNodeResult::TaQLNodeResult ( const TaQLNodeResult that)
inline

Copy constructor (reference semantics).

Definition at line 135 of file TaQLNodeResult.h.

References itsRep, and casacore::TaQLNodeResultRep::link().

casacore::TaQLNodeResult::~TaQLNodeResult ( )
inline

Destructor decrements the reference count.

The letter is deleted if no more references.

Definition at line 149 of file TaQLNodeResult.h.

References itsRep, and casacore::TaQLNodeResultRep::unlink().

Member Function Documentation

const TaQLNodeResultRep* casacore::TaQLNodeResult::getRep ( ) const
inline

Get the actual underlying object.

Definition at line 161 of file TaQLNodeResult.h.

References itsRep.

Referenced by casacore::TaQLNodeHandler::getHR().

Bool casacore::TaQLNodeResult::isValid ( ) const
inline

Does the envelope hold a letter?

Definition at line 153 of file TaQLNodeResult.h.

References itsRep.

TaQLNodeResult& casacore::TaQLNodeResult::operator= ( const TaQLNodeResult that)
inline

Assignment (reference semantics).

Definition at line 139 of file TaQLNodeResult.h.

References itsRep, casacore::TaQLNodeResultRep::link(), and casacore::TaQLNodeResultRep::unlink().

Member Data Documentation

TaQLNodeResultRep* casacore::TaQLNodeResult::itsRep
private

Definition at line 157 of file TaQLNodeResult.h.

Referenced by getRep(), isValid(), operator=(), TaQLNodeResult(), and ~TaQLNodeResult().


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