TaQLNodeResult.h
Classes
- TaQLNodeResultRep -- Abstract base class to hold the result of a visit to the node tree. (full description)
- TaQLNodeResult -- Envelope class to hold the result of a visit to the node tree. (full description)
Interface
- Public Members
- TaQLNodeResultRep() : itsCount(0)
- virtual ~TaQLNodeResultRep()
- static TaQLNodeResultRep* link (TaQLNodeResultRep* rep)
- static void unlink (TaQLNodeResultRep* rep)
- Private Members
- TaQLNodeResultRep (const TaQLNodeResultRep&)
- TaQLNodeResultRep& operator= (const TaQLNodeResultRep&)
Review Status
- Programs:
- Tests:
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
Member Description
Default constructor clears the reference count.
The count is updated by functions link and unlink.
Destructor.
static TaQLNodeResultRep* link (TaQLNodeResultRep* rep)
Increment the reference count.
static void unlink (TaQLNodeResultRep* rep)
Decrement the reference count.
Delete the letter if no more references.
TaQLNodeResultRep (const TaQLNodeResultRep&)
TaQLNodeResultRep& operator= (const TaQLNodeResultRep&)
Letter objects cannot be copied.
Interface
Public Members
- TaQLNodeResult() : itsRep(0)
- TaQLNodeResult (TaQLNodeResultRep* rep)
- TaQLNodeResult (const TaQLNodeResult& that)
- TaQLNodeResult& operator= (const TaQLNodeResult& that)
- ~TaQLNodeResult()
- Bool isValid() const
- const TaQLNodeResultRep* getRep() const
Review Status
- Programs:
- Tests:
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
Member Description
Default constructor has no letter.
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).
Destructor decrements the reference count.
The letter is deleted if no more references.
Does the envelope hold a letter?
Get the actual underlying object..