Back to index

lightning-sunbird  0.9+nobinonly
Public Types | Public Member Functions | Private Attributes | Friends
txAExprResult Class Reference

#include <ExprResult.h>

Inheritance diagram for txAExprResult:
Inheritance graph
[legend]
Collaboration diagram for txAExprResult:
Collaboration graph
[legend]

List of all members.

Public Types

enum  ResultType {
  NODESET, BOOLEAN, NUMBER, STRING,
  RESULT_TREE_FRAGMENT
}

Public Member Functions

 txAExprResult (txResultRecycler *aRecycler)
virtual ~txAExprResult ()
void AddRef ()
void Release ()
virtual short getResultType ()=0
 Returns the type of ExprResult represented.
virtual void stringValue (nsAString &str)=0
 Creates a String representation of this ExprResult.
virtual nsAString * stringValuePointer ()=0
 Returns a pointer to the stringvalue if possible.
virtual MBool booleanValue ()=0
 Converts this ExprResult to a Boolean (MBool) value.
virtual double numberValue ()=0
 Converts this ExprResult to a Number (double) value.

Private Attributes

nsAutoRefCnt mRefCnt
nsRefPtr< txResultRecyclermRecycler

Friends

class txResultRecycler

Detailed Description

Definition at line 57 of file ExprResult.h.


Member Enumeration Documentation

Enumerator:
NODESET 
BOOLEAN 
NUMBER 
STRING 
RESULT_TREE_FRAGMENT 

Definition at line 61 of file ExprResult.h.


Constructor & Destructor Documentation

Definition at line 69 of file ExprResult.h.

: mRecycler(aRecycler) {}
virtual txAExprResult::~txAExprResult ( ) [inline, virtual]

Definition at line 70 of file ExprResult.h.

{};

Member Function Documentation

Definition at line 72 of file ExprResult.h.

    {
        ++mRefCnt;
    }
virtual MBool txAExprResult::booleanValue ( ) [pure virtual]

Converts this ExprResult to a Boolean (MBool) value.

Returns:
the Boolean value

Here is the caller graph for this function:

virtual short txAExprResult::getResultType ( ) [pure virtual]

Returns the type of ExprResult represented.

Returns:
the type of ExprResult represented

Here is the caller graph for this function:

virtual double txAExprResult::numberValue ( ) [pure virtual]

Converts this ExprResult to a Number (double) value.

Returns:
the Number value

Here is the caller graph for this function:

Definition at line 291 of file txResultRecycler.cpp.

{
    if (--mRefCnt == 0) {
        if (mRecycler) {
            mRecycler->recycle(this);
        }
        else {
            delete this;
        }
    }
}
virtual void txAExprResult::stringValue ( nsAString &  str) [pure virtual]

Creates a String representation of this ExprResult.

Parameters:
strthe destination string to append the String representation to.

Here is the caller graph for this function:

virtual nsAString* txAExprResult::stringValuePointer ( ) [pure virtual]

Returns a pointer to the stringvalue if possible.

Otherwise null is returned.

Here is the caller graph for this function:


Friends And Related Function Documentation

friend class txResultRecycler [friend]

Definition at line 60 of file ExprResult.h.


Member Data Documentation

Definition at line 111 of file ExprResult.h.

Definition at line 110 of file ExprResult.h.


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