AEComparison Class Reference

This class models the <comparison predicate> in the SQL-92: More...

Inherits AEBinaryExprT< AEBooleanExpr, AEValueList >.

List of all members.

Public Member Functions

virtual void AcceptVisitor (AENodeVisitor &in_visitor)
 Calls the correct method on the visitor.
 AEComparison (const AEComparison &in_other)
 Copy constructor.
 AEComparison (DSIExtDataEngineContext *in_deContext, SEComparisonType in_compOp, AutoPtr< AEValueList > in_leftOperand, AutoPtr< AEValueList > in_rightOperand)
 Constructor.
virtual AEComparisonClone () const
 Creates a clone of this node object.
virtual const AEComparisonGetAsComparison () const
 Retrieves the object as an AEComparison object.
virtual AEComparisonGetAsComparison ()
 Retrieves the object as an AEComparison object.
SEComparisonType GetComparisonOp () const
 Returns the integer ID that uniquely identifies the comparison operation.
virtual simba_wstring GetLogString () const
 Returns a string name for this node for the purpose of logging.
virtual AENodeType GetNodeType () const
 Returns an integer that uniquely identifies the node class. See the definition of AENodeType for values defined.
virtual bool IsEquivalent (const AENode *in_another) const
 Tell whether two trees are equivalent.
virtual bool IsPredicate () const
 Determines if this is a predicate node.
void Negate ()
 Sets the comparison type to the negation of the current type.
virtual ~AEComparison ()
 Destructor.

Detailed Description

This class models the <comparison predicate> in the SQL-92:

<comparison predicate> ::= <row value constructor> <comp op> <row value constructor>

<comp op> ::= <equals operator> | <not equals operator> | <less than operator> | <greater than operator> | <less than or equals operator> | <greater than or equals operator>

Will always have two children (GetChildCount() returns 2):


Constructor & Destructor Documentation

AEComparison ( DSIExtDataEngineContext in_deContext,
SEComparisonType  in_compOp,
AutoPtr< AEValueList in_leftOperand,
AutoPtr< AEValueList in_rightOperand 
)

Constructor.

Parameters:
in_deContext The DataEngine context for the statement. (NOT OWN)
in_compOp Comparison operation. See definition of SEComparisonType.
in_leftOperand The left operand.
in_rightOperand The right operand.
AEComparison ( const AEComparison in_other  ) 

Copy constructor.

To support "cloning". See Clone() method.

Parameters:
in_other The other node to create a copy from.
virtual ~AEComparison (  )  [virtual]

Destructor.


Member Function Documentation

virtual void AcceptVisitor ( AENodeVisitor in_visitor  )  [virtual]

Calls the correct method on the visitor.

Parameters:
in_visitor The visiting object.

Implements AENode.

virtual AEComparison* Clone (  )  const [virtual]

Creates a clone of this node object.

Returns:
A clone of this node object. (OWN)

Implements AEBooleanExpr.

virtual const AEComparison* GetAsComparison (  )  const [virtual]

Retrieves the object as an AEComparison object.

Overrides the method defined in AEBooleanExpr.

Returns:
this object as an AEComparison object. (NOT OWN)

Reimplemented from AEBooleanExpr.

virtual AEComparison* GetAsComparison (  )  [virtual]

Retrieves the object as an AEComparison object.

Overrides the method defined in AEBooleanExpr.

Returns:
this object as an AEComparison object. (NOT OWN)

Reimplemented from AEBooleanExpr.

SEComparisonType GetComparisonOp (  )  const

Returns the integer ID that uniquely identifies the comparison operation.

See also:
SEComparisonType.
Returns:
The identifier of the comparison operation.
virtual simba_wstring GetLogString (  )  const [virtual]

Returns a string name for this node for the purpose of logging.

Returns:
A string representation of this node for logging purposes.

Implements AENode.

virtual AENodeType GetNodeType (  )  const [virtual]

Returns an integer that uniquely identifies the node class. See the definition of AENodeType for values defined.

Returns:
The ID that uniquely identifies this type of nodes.

Implements AENode.

virtual bool IsEquivalent ( const AENode in_another  )  const [virtual]

Tell whether two trees are equivalent.

The binary expression (a = b) is equivalent to (b = a). The binary expression (a > b) is equivalent to (b < a).

Parameters:
in_another The root of another tree. (NOT OWN)
Returns:
true if two trees are equivalent, false otherwise.

Reimplemented from AENode.

virtual bool IsPredicate (  )  const [virtual]

Determines if this is a predicate node.

This default implementation always returns false. All predicate node must override it.

Returns:
True if this is a predicate node, false otherwise.

Reimplemented from AEBooleanExpr.

void Negate (  ) 

Sets the comparison type to the negation of the current type.


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

Generated on Wed May 17 14:21:16 2017 for SimbaEngine 10.1.3.1011 by simba