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)

class TaQLNodeResultRep

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&)

Description

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

TaQLNodeResultRep() : itsCount(0)

Default constructor clears the reference count. The count is updated by functions link and unlink.

virtual ~TaQLNodeResultRep()

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.

class TaQLNodeResult

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

Description

Review Status

Programs:
Tests:
  • 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

Member Description

TaQLNodeResult() : itsRep(0)

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. The letter is deleted if no more references.

Bool isValid() const

Does the envelope hold a letter?

const TaQLNodeResultRep* getRep() const

Get the actual underlying object..