TAO_CosTrader  2.0.8
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | Friends
TAO_Literal_Constraint Class Reference

TAO_Literal_Constraint represents a literal occuring in the constraint expression tree. More...

#include <Constraint_Nodes.h>

Inheritance diagram for TAO_Literal_Constraint:
Inheritance graph
[legend]
Collaboration diagram for TAO_Literal_Constraint:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 TAO_Literal_Constraint (void)
 TAO_Literal_Constraint (CORBA::Any *any)
 TAO_Literal_Constraint (CORBA::ULongLong uinteger)
 TAO_Literal_Constraint (CORBA::LongLong integer)
 TAO_Literal_Constraint (CORBA::Boolean boolean)
 TAO_Literal_Constraint (CORBA::Double doub)
 TAO_Literal_Constraint (const char *str)
 TAO_Literal_Constraint (const TAO_Literal_Constraint &lit)
 Copy constructor.
 ~TAO_Literal_Constraint (void)
 Destructor.
virtual int accept (TAO_Constraint_Visitor *visitor)
 Visitor accept methods.
virtual TAO_Expression_Type expr_type (void) const
 Return the expression type represented by this node.
void operator= (const TAO_Literal_Constraint &co)
 Assignment operator.
 operator CORBA::Boolean (void) const
 operator CORBA::ULongLong (void) const
 operator CORBA::LongLong (void) const
 operator CORBA::Double (void) const
 operator const char * (void) const
 operator const CORBA::Any * (void) const

Static Public Member Functions

static TAO_Expression_Type widest_type (const TAO_Literal_Constraint &left, const TAO_Literal_Constraint &right)
 Ensure both operands are of the same simple numeric type.
static TAO_Expression_Type comparable_type (CORBA::TypeCode_ptr type)
 Determine the comparable Expression Type from the CORBA type.

Private Member Functions

void copy (const TAO_Literal_Constraint &co)
 Private copy method.

Private Attributes

union {
   char *   str_
   CORBA::Any_ptr   any_
   CORBA::ULongLong   uinteger_
   CORBA::LongLong   integer_
   CORBA::Boolean   bool_
   CORBA::Double   double_
op_
TAO_Expression_Type type_
 The actual types of the TAO_Literal_Constraint.

Friends

TAO_Trading_Serv_Export bool operator< (const TAO_Literal_Constraint &left, const TAO_Literal_Constraint &right)
TAO_Trading_Serv_Export bool operator<= (const TAO_Literal_Constraint &left, const TAO_Literal_Constraint &right)
TAO_Trading_Serv_Export bool operator> (const TAO_Literal_Constraint &left, const TAO_Literal_Constraint &right)
TAO_Trading_Serv_Export bool operator>= (const TAO_Literal_Constraint &left, const TAO_Literal_Constraint &right)
TAO_Trading_Serv_Export bool operator== (const TAO_Literal_Constraint &left, const TAO_Literal_Constraint &right)
TAO_Trading_Serv_Export bool operator!= (const TAO_Literal_Constraint &left, const TAO_Literal_Constraint &right)
TAO_Trading_Serv_Export bool operator== (double left, const TAO_Literal_Constraint &right)
TAO_Trading_Serv_Export bool operator== (const TAO::String_Manager &left, const TAO_Literal_Constraint &right)
TAO_Trading_Serv_Export
TAO_Literal_Constraint 
operator+ (const TAO_Literal_Constraint &left, const TAO_Literal_Constraint &right)
TAO_Trading_Serv_Export
TAO_Literal_Constraint 
operator- (const TAO_Literal_Constraint &left, const TAO_Literal_Constraint &right)
TAO_Trading_Serv_Export
TAO_Literal_Constraint 
operator* (const TAO_Literal_Constraint &left, const TAO_Literal_Constraint &right)
TAO_Trading_Serv_Export
TAO_Literal_Constraint 
operator/ (const TAO_Literal_Constraint &left, const TAO_Literal_Constraint &right)
TAO_Trading_Serv_Export
TAO_Literal_Constraint 
operator- (const TAO_Literal_Constraint &operand)

Detailed Description

TAO_Literal_Constraint represents a literal occuring in the constraint expression tree.


Constructor & Destructor Documentation

TAO_Literal_Constraint::TAO_Literal_Constraint ( void  )
TAO_Literal_Constraint::TAO_Literal_Constraint ( CORBA::Any *  any)
TAO_Literal_Constraint::TAO_Literal_Constraint ( CORBA::ULongLong  uinteger)
TAO_Literal_Constraint::TAO_Literal_Constraint ( CORBA::LongLong  integer)
TAO_Literal_Constraint::TAO_Literal_Constraint ( CORBA::Boolean  boolean)
TAO_Literal_Constraint::TAO_Literal_Constraint ( CORBA::Double  doub)
TAO_Literal_Constraint::TAO_Literal_Constraint ( const char *  str)
TAO_Literal_Constraint::TAO_Literal_Constraint ( const TAO_Literal_Constraint lit)

Copy constructor.

TAO_Literal_Constraint::~TAO_Literal_Constraint ( void  )

Destructor.


Member Function Documentation

int TAO_Literal_Constraint::accept ( TAO_Constraint_Visitor visitor) [virtual]

Visitor accept methods.

Implements TAO_Constraint.

TAO_Expression_Type TAO_Literal_Constraint::comparable_type ( CORBA::TypeCode_ptr  type) [static]

Determine the comparable Expression Type from the CORBA type.

void TAO_Literal_Constraint::copy ( const TAO_Literal_Constraint co) [private]

Private copy method.

virtual TAO_Expression_Type TAO_Literal_Constraint::expr_type ( void  ) const [inline, virtual]

Return the expression type represented by this node.

Implements TAO_Constraint.

TAO_Literal_Constraint::operator const char * ( void  ) const
TAO_Literal_Constraint::operator const CORBA::Any * ( void  ) const
TAO_Literal_Constraint::operator CORBA::Boolean ( void  ) const
TAO_Literal_Constraint::operator CORBA::Double ( void  ) const
TAO_Literal_Constraint::operator CORBA::LongLong ( void  ) const
TAO_Literal_Constraint::operator CORBA::ULongLong ( void  ) const
void TAO_Literal_Constraint::operator= ( const TAO_Literal_Constraint co)

Assignment operator.

TAO_Expression_Type TAO_Literal_Constraint::widest_type ( const TAO_Literal_Constraint left,
const TAO_Literal_Constraint right 
) [static]

Ensure both operands are of the same simple numeric type.


Friends And Related Function Documentation

TAO_Trading_Serv_Export bool operator!= ( const TAO_Literal_Constraint left,
const TAO_Literal_Constraint right 
) [friend]
TAO_Trading_Serv_Export TAO_Literal_Constraint operator* ( const TAO_Literal_Constraint left,
const TAO_Literal_Constraint right 
) [friend]
TAO_Trading_Serv_Export TAO_Literal_Constraint operator+ ( const TAO_Literal_Constraint left,
const TAO_Literal_Constraint right 
) [friend]
TAO_Trading_Serv_Export TAO_Literal_Constraint operator- ( const TAO_Literal_Constraint left,
const TAO_Literal_Constraint right 
) [friend]
TAO_Trading_Serv_Export TAO_Literal_Constraint operator- ( const TAO_Literal_Constraint operand) [friend]
TAO_Trading_Serv_Export TAO_Literal_Constraint operator/ ( const TAO_Literal_Constraint left,
const TAO_Literal_Constraint right 
) [friend]
TAO_Trading_Serv_Export bool operator< ( const TAO_Literal_Constraint left,
const TAO_Literal_Constraint right 
) [friend]
TAO_Trading_Serv_Export bool operator<= ( const TAO_Literal_Constraint left,
const TAO_Literal_Constraint right 
) [friend]
TAO_Trading_Serv_Export bool operator== ( const TAO_Literal_Constraint left,
const TAO_Literal_Constraint right 
) [friend]
TAO_Trading_Serv_Export bool operator== ( double  left,
const TAO_Literal_Constraint right 
) [friend]
TAO_Trading_Serv_Export bool operator== ( const TAO::String_Manager left,
const TAO_Literal_Constraint right 
) [friend]
TAO_Trading_Serv_Export bool operator> ( const TAO_Literal_Constraint left,
const TAO_Literal_Constraint right 
) [friend]
TAO_Trading_Serv_Export bool operator>= ( const TAO_Literal_Constraint left,
const TAO_Literal_Constraint right 
) [friend]

Member Data Documentation

union { ... } TAO_Literal_Constraint::op_ [private]

The actual types of the TAO_Literal_Constraint.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines