Back to index

lightning-sunbird  0.9+nobinonly
Classes | Public Member Functions | Public Attributes
txPushNewContext Class Reference

#include <txInstructions.h>

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

List of all members.

Classes

struct  SortKey

Public Member Functions

 txPushNewContext (nsAutoPtr< Expr > aSelect)
 ~txPushNewContext ()
TX_DECL_TXINSTRUCTION nsresult addSort (nsAutoPtr< Expr > aSelectExpr, nsAutoPtr< Expr > aLangExpr, nsAutoPtr< Expr > aDataTypeExpr, nsAutoPtr< Expr > aOrderExpr, nsAutoPtr< Expr > aCaseOrderExpr)
virtual nsresult execute (txExecutionState &aEs)=0

Public Attributes

nsVoidArray mSortKeys
nsAutoPtr< ExprmSelect
txInstructionmBailTarget
txInstructionmNext

Detailed Description

Definition at line 280 of file txInstructions.h.


Constructor & Destructor Documentation

Definition at line 677 of file txInstructions.cpp.

    : mSelect(aSelect), mBailTarget(nsnull)
{
}

Definition at line 682 of file txInstructions.cpp.

{
    PRInt32 i;
    for (i = 0; i < mSortKeys.Count(); ++i)
    {
        delete NS_STATIC_CAST(SortKey*, mSortKeys[i]);
    }
}

Member Function Documentation

nsresult txPushNewContext::addSort ( nsAutoPtr< Expr aSelectExpr,
nsAutoPtr< Expr aLangExpr,
nsAutoPtr< Expr aDataTypeExpr,
nsAutoPtr< Expr aOrderExpr,
nsAutoPtr< Expr aCaseOrderExpr 
)

Definition at line 743 of file txInstructions.cpp.

{
    SortKey* sort = new SortKey(aSelectExpr, aLangExpr, aDataTypeExpr,
                                aOrderExpr, aCaseOrderExpr);
    NS_ENSURE_TRUE(sort, NS_ERROR_OUT_OF_MEMORY);

    if (!mSortKeys.AppendElement(sort)) {
        delete sort;
        return NS_ERROR_OUT_OF_MEMORY;
    }
   
    return NS_OK;
}

Here is the caller graph for this function:

virtual nsresult txInstruction::execute ( txExecutionState aEs) [pure virtual, inherited]

Here is the caller graph for this function:


Member Data Documentation

Definition at line 307 of file txInstructions.h.

Definition at line 67 of file txInstructions.h.

Definition at line 306 of file txInstructions.h.

Definition at line 305 of file txInstructions.h.


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