AETerminalExprT< BaseNodeT > Class Template Reference

A template class that models an operation that takes no operand. More...

List of all members.

Public Member Functions

virtual const AENodeGetChild (simba_size_t in_index) const
 Returns the specified child node.
virtual AENodeGetChild (simba_size_t in_index)
 Returns the specified child node.
virtual simba_size_t GetChildCount () const
 Returns the number of child nodes. In this case, it always return 0.
virtual ~AETerminalExprT ()
 Destructor.

Protected Member Functions

 AETerminalExprT (const AETerminalExprT &in_other)
 Copy constructor.
 AETerminalExprT ()
 Constructor.

Detailed Description

template<typename BaseNodeT>
class Simba::SQLEngine::AETerminalExprT< BaseNodeT >

A template class that models an operation that takes no operand.

Sample binary operations are COLUMN, LITERAL, etc.

Parameters:
BaseNodeT The base class of this unary expression class. Must be AENode or AENode-derived.

This design not only helps avoid the use of multiple inheritance but also allows better code reuse.


Constructor & Destructor Documentation

virtual ~AETerminalExprT (  )  [inline, virtual]

Destructor.

AETerminalExprT (  )  [inline, protected]

Constructor.

AETerminalExprT ( const AETerminalExprT< BaseNodeT > &  in_other  )  [inline, protected]

Copy constructor.

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

Parameters:
in_other The other node to create copy from.

Member Function Documentation

virtual const AENode* GetChild ( simba_size_t  in_index  )  const [inline, virtual]

Returns the specified child node.

This method is designed to override the method defined in BaseNodeT as seen in AENode.

Parameters:
in_index The zero-based index for the child node.
Exceptions:
SEInvalidArgumentException when in_index is invalid.
Returns:
The child node indexed by in_index. (NOT OWN)
virtual AENode* GetChild ( simba_size_t  in_index  )  [inline, virtual]

Returns the specified child node.

This method is designed to override the method defined in BaseNodeT as seen in AENode.

Parameters:
in_index The zero-based index for the child node.
Exceptions:
SEInvalidArgumentException when in_index is invalid.
Returns:
The child node indexed by in_index. (NOT OWN)
virtual simba_size_t GetChildCount (  )  const [inline, virtual]

Returns the number of child nodes. In this case, it always return 0.

This method is designed to override the method defined in BaseNodeT as seen in AENode.

Returns:
the number of child nodes.

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

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