AEIntervalLiteral Class Reference

A class that models interval literal expressions. More...

Inherits AETerminalExprT< AEValueExpr >.

List of all members.

Public Member Functions

virtual void AcceptVisitor (AENodeVisitor &in_visitor)
 Calls the correct method on the visitor.
 AEIntervalLiteral (const AEIntervalLiteral &in_other)
 Copy constructor.
 AEIntervalLiteral (PSLiteralType in_literalType, const simba_wstring &in_value, simba_uint32 in_leadingFieldPrecision, simba_uint32 in_fractionalSecondsPrecision)
 Constructor.
virtual AEIntervalLiteralClone () const
 Creates a clone of this node object.
virtual const AEIntervalLiteralGetAsIntervalLiteral () const
 Retrieves the object as an AEIntervalLiteral object.
virtual AEIntervalLiteralGetAsIntervalLiteral ()
 Retrieves the object as an AEIntervalLiteral object.
virtual simba_uint32 GetColumnSize () const
 Returns the size for the column for character or binary data.
PSLiteralType GetLiteralType () const
 Returns the type of the literal.
const simba_wstringGetLiteralValue () const
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.
virtual ~AEIntervalLiteral ()
 Destructor.

Protected Member Functions

virtual bool IsEqual (const AENode *in_another) const
 Tests whether two nodes are "equal".
bool IsEqualComprehensive (const AEIntervalLiteral *in_another) const
 Returns true if both literals have the same value.

Detailed Description

A class that models interval literal expressions.

Will always have no children (GetChildCount() returns 0).


Constructor & Destructor Documentation

AEIntervalLiteral ( PSLiteralType  in_literalType,
const simba_wstring in_value,
simba_uint32  in_leadingFieldPrecision,
simba_uint32  in_fractionalSecondsPrecision 
)

Constructor.

Parameters:
in_literalType The type of this literal.
in_value The identifier associated with this node.
in_leadingFieldPrecision The specified leading field precision
in_fractionalSecondsPrecision The specified fractional seconds precision
AEIntervalLiteral ( const AEIntervalLiteral in_other  ) 

Copy constructor.

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

Parameters:
in_other The other node to create copy from.
virtual ~AEIntervalLiteral (  )  [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 AEIntervalLiteral* Clone (  )  const [virtual]

Creates a clone of this node object.

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

Implements AEValueExpr.

virtual const AEIntervalLiteral* GetAsIntervalLiteral (  )  const [virtual]

Retrieves the object as an AEIntervalLiteral object.

Overrides the method defined in AEValueExpr.

Returns:
This object object always. (NOT OWN)

Reimplemented from AEValueExpr.

virtual AEIntervalLiteral* GetAsIntervalLiteral (  )  [virtual]

Retrieves the object as an AEIntervalLiteral object.

Overrides the method defined in AEValueExpr.

Returns:
This object object always. (NOT OWN)

Reimplemented from AEValueExpr.

virtual simba_uint32 GetColumnSize (  )  const [virtual]

Returns the size for the column for character or binary data.

For character data, this size should be in terms of the number of characters, not the number of bytes. For example, VARCHAR(10) and NVARCHAR(10) would both correspond to size of 10, even if NVARCHAR used 2 bytes per character.

This method is not used for non-character/binary data types.

This over-rides the default implementation in AEValueExpr.

Returns:
The size of the column for character or binary data.

Reimplemented from AEValueExpr.

PSLiteralType GetLiteralType (  )  const

Returns the type of the literal.

Returns:
The type of the literal.
const simba_wstring& GetLiteralValue (  )  const

Returns the value of the literal.

Returns:
The value of the literal.
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 IsEqual ( const AENode in_another  )  const [protected, virtual]

Tests whether two nodes are "equal".

Two AEIntervalLiteral's are equal if IsEqualComprehensive() returns true.

Parameters:
in_another Another node to compare to. (NOT OWN)
Returns:
True if two nodes are equal, false otherwise.

Reimplemented from AENode.

bool IsEqualComprehensive ( const AEIntervalLiteral in_another  )  const [protected]

Returns true if both literals have the same value.

Parameters:
in_another Another node to compare to. (NOT OWN)
Returns:
True if two nodes are equal, false otherwise.

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