Xalan-C++ API Reference  1.12.0
Public Types | Public Member Functions | List of all members
xalanc::VariablesStack::StackEntry Class Reference

#include <xalanc/XSLT/VariablesStack.hpp>

Public Types

enum  eType {
  eContextMarker, eVariable, eParam, eActiveParam,
  eElementFrameMarker, eNextValue
}
 Enumeration for types of stack entries, one of context state, context marker, element marker, or argument. More...
 

Public Member Functions

 StackEntry ()
 Construct a context marker. More...
 
 StackEntry (const XalanQName *name, const XObjectPtr &val, bool isParam=false)
 Construct a variable that is already evaluated. More...
 
 StackEntry (const XalanQName *name, const ElemVariable *var, bool isParam=false)
 Construct a variable that has not been evaluated yet. More...
 
 StackEntry (const ElemTemplateElement *elem)
 Construct an element frame marker. More...
 
 StackEntry (const StackEntry &theSource)
 Copy constructor... More...
 
 ~StackEntry ()
 Destructor... More...
 
eType getType () const
 Determine type of stack entry. More...
 
const XalanQNamegetName () const
 Retrieve object name. More...
 
const XObjectPtrgetValue () const
 Retrieve object's XObject pointer. More...
 
void setValue (const XObjectPtr &theValue)
 Retrieve object's XObject pointer. More...
 
const ElemVariablegetVariable () const
 Retrieve object's XObject pointer. More...
 
void activate ()
 
void deactivate ()
 
const ElemTemplateElementgetElement () const
 Retrieve the ElemTemplateElem where frame begins. More...
 
StackEntryoperator= (const StackEntry &theRHS)
 
bool operator== (const StackEntry &theRHS) const
 

Detailed Description

Definition at line 336 of file VariablesStack.hpp.

Member Enumeration Documentation

◆ eType

Enumeration for types of stack entries, one of context state, context marker, element marker, or argument.

Enumerator
eContextMarker 
eVariable 
eParam 
eActiveParam 
eElementFrameMarker 
eNextValue 

Definition at line 344 of file VariablesStack.hpp.

Constructor & Destructor Documentation

◆ StackEntry() [1/5]

xalanc::VariablesStack::StackEntry::StackEntry ( )
explicit

Construct a context marker.

◆ StackEntry() [2/5]

xalanc::VariablesStack::StackEntry::StackEntry ( const XalanQName name,
const XObjectPtr val,
bool  isParam = false 
)

Construct a variable that is already evaluated.

◆ StackEntry() [3/5]

xalanc::VariablesStack::StackEntry::StackEntry ( const XalanQName name,
const ElemVariable var,
bool  isParam = false 
)

Construct a variable that has not been evaluated yet.

◆ StackEntry() [4/5]

xalanc::VariablesStack::StackEntry::StackEntry ( const ElemTemplateElement elem)

Construct an element frame marker.

◆ StackEntry() [5/5]

xalanc::VariablesStack::StackEntry::StackEntry ( const StackEntry theSource)

Copy constructor...

◆ ~StackEntry()

xalanc::VariablesStack::StackEntry::~StackEntry ( )

Destructor...

Member Function Documentation

◆ activate()

void xalanc::VariablesStack::StackEntry::activate ( )

◆ deactivate()

void xalanc::VariablesStack::StackEntry::deactivate ( )

◆ getElement()

const ElemTemplateElement* xalanc::VariablesStack::StackEntry::getElement ( ) const
inline

Retrieve the ElemTemplateElem where frame begins.

Valid only for element frame markers

Returns
ElemTemplateElement corresponding to marker

Definition at line 456 of file VariablesStack.hpp.

◆ getName()

const XalanQName* xalanc::VariablesStack::StackEntry::getName ( ) const
inline

Retrieve object name.

Valid only for variables

Returns
qualified name of object

Definition at line 406 of file VariablesStack.hpp.

◆ getType()

eType xalanc::VariablesStack::StackEntry::getType ( ) const
inline

Determine type of stack entry.

Returns
enumeration value for type

Definition at line 395 of file VariablesStack.hpp.

◆ getValue()

const XObjectPtr& xalanc::VariablesStack::StackEntry::getValue ( ) const
inline

Retrieve object's XObject pointer.

Valid only for variables

Returns
pointer to XObject

Definition at line 417 of file VariablesStack.hpp.

◆ getVariable()

const ElemVariable* xalanc::VariablesStack::StackEntry::getVariable ( ) const
inline

Retrieve object's XObject pointer.

Valid only for variables

Returns
pointer to XObject

Definition at line 439 of file VariablesStack.hpp.

◆ operator=()

StackEntry& xalanc::VariablesStack::StackEntry::operator= ( const StackEntry theRHS)

◆ operator==()

bool xalanc::VariablesStack::StackEntry::operator== ( const StackEntry theRHS) const

◆ setValue()

void xalanc::VariablesStack::StackEntry::setValue ( const XObjectPtr theValue)
inline

Retrieve object's XObject pointer.

Valid only for variables

Returns
pointer to XObject

Definition at line 428 of file VariablesStack.hpp.


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