casa
$Rev:20696$
|
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. | |
TaQLNodeResult (TaQLNodeResultRep *rep) | |
Take the given letter and increment its reference count. | |
TaQLNodeResult (const TaQLNodeResult &that) | |
Copy constructor (reference semantics). | |
TaQLNodeResult & | operator= (const TaQLNodeResult &that) |
Assignment (reference semantics). | |
~TaQLNodeResult () | |
Destructor decrements the reference count. | |
Bool | isValid () const |
Does the envelope hold a letter? | |
const TaQLNodeResultRep * | getRep () const |
Get the actual underlying object. | |
Private Attributes | |
TaQLNodeResultRep * | itsRep |
Envelope class to hold the result of a visit to the node tree.
Internal
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.
casa::TaQLNodeResult::TaQLNodeResult | ( | ) | [inline] |
Default constructor has no letter.
Definition at line 127 of file TaQLNodeResult.h.
casa::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 casa::TaQLNodeResultRep::link().
casa::TaQLNodeResult::TaQLNodeResult | ( | const TaQLNodeResult & | that | ) | [inline] |
Copy constructor (reference semantics).
Definition at line 135 of file TaQLNodeResult.h.
References itsRep, and casa::TaQLNodeResultRep::link().
casa::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 casa::TaQLNodeResultRep::unlink().
const TaQLNodeResultRep* casa::TaQLNodeResult::getRep | ( | ) | const [inline] |
Get the actual underlying object.
Definition at line 161 of file TaQLNodeResult.h.
References itsRep.
Referenced by casa::TaQLNodeHandler::getHR().
Bool casa::TaQLNodeResult::isValid | ( | ) | const [inline] |
Does the envelope hold a letter?
Definition at line 153 of file TaQLNodeResult.h.
References itsRep.
TaQLNodeResult& casa::TaQLNodeResult::operator= | ( | const TaQLNodeResult & | that | ) | [inline] |
Assignment (reference semantics).
Definition at line 139 of file TaQLNodeResult.h.
References itsRep, casa::TaQLNodeResultRep::link(), and casa::TaQLNodeResultRep::unlink().
TaQLNodeResultRep* casa::TaQLNodeResult::itsRep [private] |
Definition at line 157 of file TaQLNodeResult.h.
Referenced by getRep(), isValid(), operator=(), TaQLNodeResult(), and ~TaQLNodeResult().