TAO_CosTrader  2.5.4
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
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]

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. More...
 
 ~TAO_Literal_Constraint (void)
 Destructor. More...
 
virtual int accept (TAO_Constraint_Visitor *visitor)
 Visitor accept methods. More...
 
virtual TAO_Expression_Type expr_type (void) const
 Return the expression type represented by this node. More...
 
void operator= (const TAO_Literal_Constraint &co)
 Assignment operator. More...
 
 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
 
- Public Member Functions inherited from TAO_Constraint
virtual ~TAO_Constraint (void)
 

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. More...
 
static TAO_Expression_Type comparable_type (CORBA::TypeCode_ptr type)
 Determine the comparable Expression Type from the CORBA type. More...
 

Private Member Functions

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

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. More...
 

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() [1/8]

TAO_Literal_Constraint::TAO_Literal_Constraint ( void  )

◆ TAO_Literal_Constraint() [2/8]

TAO_Literal_Constraint::TAO_Literal_Constraint ( CORBA::Any *  any)

◆ TAO_Literal_Constraint() [3/8]

TAO_Literal_Constraint::TAO_Literal_Constraint ( CORBA::ULongLong  uinteger)

◆ TAO_Literal_Constraint() [4/8]

TAO_Literal_Constraint::TAO_Literal_Constraint ( CORBA::LongLong  integer)

◆ TAO_Literal_Constraint() [5/8]

TAO_Literal_Constraint::TAO_Literal_Constraint ( CORBA::Boolean  boolean)

◆ TAO_Literal_Constraint() [6/8]

TAO_Literal_Constraint::TAO_Literal_Constraint ( CORBA::Double  doub)

◆ TAO_Literal_Constraint() [7/8]

TAO_Literal_Constraint::TAO_Literal_Constraint ( const char *  str)

◆ TAO_Literal_Constraint() [8/8]

TAO_Literal_Constraint::TAO_Literal_Constraint ( const TAO_Literal_Constraint lit)

Copy constructor.

◆ ~TAO_Literal_Constraint()

TAO_Literal_Constraint::~TAO_Literal_Constraint ( void  )

Destructor.

Member Function Documentation

◆ accept()

int TAO_Literal_Constraint::accept ( TAO_Constraint_Visitor visitor)
virtual

Visitor accept methods.

Implements TAO_Constraint.

◆ comparable_type()

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

Determine the comparable Expression Type from the CORBA type.

◆ copy()

void TAO_Literal_Constraint::copy ( const TAO_Literal_Constraint co)
private

Private copy method.

◆ expr_type()

virtual TAO_Expression_Type TAO_Literal_Constraint::expr_type ( void  ) const
inlinevirtual

Return the expression type represented by this node.

Implements TAO_Constraint.

◆ operator const char *()

TAO_Literal_Constraint::operator const char * ( void  ) const

◆ operator const CORBA::Any *()

TAO_Literal_Constraint::operator const CORBA::Any * ( void  ) const

◆ operator CORBA::Boolean()

TAO_Literal_Constraint::operator CORBA::Boolean ( void  ) const

◆ operator CORBA::Double()

TAO_Literal_Constraint::operator CORBA::Double ( void  ) const

◆ operator CORBA::LongLong()

TAO_Literal_Constraint::operator CORBA::LongLong ( void  ) const

◆ operator CORBA::ULongLong()

TAO_Literal_Constraint::operator CORBA::ULongLong ( void  ) const

◆ operator=()

void TAO_Literal_Constraint::operator= ( const TAO_Literal_Constraint co)

Assignment operator.

◆ widest_type()

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

◆ operator *

TAO_Trading_Serv_Export TAO_Literal_Constraint operator * ( const TAO_Literal_Constraint left,
const TAO_Literal_Constraint right 
)
friend

◆ operator!=

TAO_Trading_Serv_Export bool operator!= ( const TAO_Literal_Constraint left,
const TAO_Literal_Constraint right 
)
friend

◆ operator+

TAO_Trading_Serv_Export TAO_Literal_Constraint operator+ ( const TAO_Literal_Constraint left,
const TAO_Literal_Constraint right 
)
friend

◆ operator- [1/2]

TAO_Trading_Serv_Export TAO_Literal_Constraint operator- ( const TAO_Literal_Constraint left,
const TAO_Literal_Constraint right 
)
friend

◆ operator- [2/2]

◆ operator/

TAO_Trading_Serv_Export TAO_Literal_Constraint operator/ ( const TAO_Literal_Constraint left,
const TAO_Literal_Constraint right 
)
friend

◆ operator<

TAO_Trading_Serv_Export bool operator< ( const TAO_Literal_Constraint left,
const TAO_Literal_Constraint right 
)
friend

◆ operator<=

TAO_Trading_Serv_Export bool operator<= ( const TAO_Literal_Constraint left,
const TAO_Literal_Constraint right 
)
friend

◆ operator== [1/3]

TAO_Trading_Serv_Export bool operator== ( const TAO_Literal_Constraint left,
const TAO_Literal_Constraint right 
)
friend

◆ operator== [2/3]

TAO_Trading_Serv_Export bool operator== ( double  left,
const TAO_Literal_Constraint right 
)
friend

◆ operator== [3/3]

TAO_Trading_Serv_Export bool operator== ( const TAO::String_Manager left,
const TAO_Literal_Constraint right 
)
friend

◆ operator>

TAO_Trading_Serv_Export bool operator> ( const TAO_Literal_Constraint left,
const TAO_Literal_Constraint right 
)
friend

◆ operator>=

TAO_Trading_Serv_Export bool operator>= ( const TAO_Literal_Constraint left,
const TAO_Literal_Constraint right 
)
friend

Member Data Documentation

◆ any_

CORBA::Any_ptr TAO_Literal_Constraint::any_

◆ bool_

CORBA::Boolean TAO_Literal_Constraint::bool_

◆ double_

CORBA::Double TAO_Literal_Constraint::double_

◆ integer_

CORBA::LongLong TAO_Literal_Constraint::integer_

◆ op_

union { ... } TAO_Literal_Constraint::op_

◆ str_

char* TAO_Literal_Constraint::str_

◆ type_

TAO_Expression_Type TAO_Literal_Constraint::type_
private

The actual types of the TAO_Literal_Constraint.

◆ uinteger_

CORBA::ULongLong TAO_Literal_Constraint::uinteger_

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