In file attrrefs.h:

class AttributeReference : public ExprTree

Represents a attribute reference node in the expression tree

Inheritance:

AttributeReference < ExprTree


Public Methods

virtual AttributeReference* Copy( )
Make a deep copy of the expression
void GetComponents( ExprTree *&expr, string &attr, bool &abs )
Deconstructor to get the components of an attribute reference
static AttributeReference* MakeAttributeReference(ExprTree *expr, const string &attrName, bool absolute=false)
Factory method to create attribute reference nodes
~AttributeReference()
Destructor

Protected Methods

AttributeReference()
Constructor

Inherited from ExprTree:

Public Classes

enum NodeKind
LITERAL_NODE
Literal node (string, integer, real, boolean, undefined, error)
ATTRREF_NODE
Attribute reference node (attr, .attr, expr.attr)
OP_NODE
Expression operation node (unary, binary, ternary)/
FN_CALL_NODE
Function call node
CLASSAD_NODE
ClassAd node
EXPR_LIST_NODE
Expression list node

Public Methods

NodeKind GetKind(void)
const ClassAd* GetParentScope( )
void Puke( )
void SetParentScope( const ClassAd* p )

Public

enum NodeKind
LITERAL_NODE
Literal node (string, integer, real, boolean, undefined, error)
ATTRREF_NODE
Attribute reference node (attr, .attr, expr.attr)
OP_NODE
Expression operation node (unary, binary, ternary)/
FN_CALL_NODE
Function call node
CLASSAD_NODE
ClassAd node
EXPR_LIST_NODE
Expression list node

Documentation

Represents a attribute reference node in the expression tree
static AttributeReference* MakeAttributeReference(ExprTree *expr, const string &attrName, bool absolute=false)
Factory method to create attribute reference nodes
Parameters:
expr - The expression part of the reference (i.e., in case of expr.attr). This parameter is NULL if the reference is absolute (i.e., .attr) or simple (i.e., attr).
attrName - The name of the reference. This string is duplicated internally.
absolute - True if the reference is an absolute reference (i.e., in case of .attr). This parameter cannot be true if expr is not NULL

void GetComponents( ExprTree *&expr, string &attr, bool &abs )
Deconstructor to get the components of an attribute reference
Parameters:
expr - The expression part of the reference (NULL for absolute or simple references)
attr - The name of the attribute being referred to
abs - true iff the reference is absolute (i.e., .attr)


This class has no child classes.

alphabetic index hierarchy of classes


Condor Home Page

generated by doc++