TAO_Constraint_Evaluator::Operand_Queue Class Reference

Inheritance diagram for TAO_Constraint_Evaluator::Operand_Queue:

Inheritance graph
[legend]
Collaboration diagram for TAO_Constraint_Evaluator::Operand_Queue:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Operand_Queue (void)
TAO_Literal_Constraintget_left_operand (void)
 In a binary operation, obtain the left operand.

TAO_Literal_Constraintget_right_operand (void)
 In a binary operation, obtain the right operand.

TAO_Literal_Constraintget_operand (void)
 In a unary operation, obtain the only operand.

void dequeue_operand (void)
 Remove an operand from the queue.


Constructor & Destructor Documentation

TAO_BEGIN_VERSIONED_NAMESPACE_DECL TAO_Constraint_Evaluator::Operand_Queue::Operand_Queue void   ) 
 

Definition at line 19 of file Constraint_Visitors.cpp.

00020 {
00021 }


Member Function Documentation

void TAO_Constraint_Evaluator::Operand_Queue::dequeue_operand void   ) 
 

Remove an operand from the queue.

Definition at line 48 of file Constraint_Visitors.cpp.

References ACE_Unbounded_Queue< TAO_Literal_Constraint >::dequeue_head().

Referenced by TAO_Constraint_Evaluator::do_the_op(), TAO_Constraint_Evaluator::evaluate_constraint(), TAO_Constraint_Evaluator::evaluate_preference(), TAO_Constraint_Evaluator::visit_and(), TAO_Constraint_Evaluator::visit_bin_op(), TAO_Constraint_Evaluator::visit_in(), TAO_Constraint_Evaluator::visit_not(), TAO_Constraint_Evaluator::visit_or(), TAO_Constraint_Evaluator::visit_twiddle(), and TAO_Constraint_Evaluator::visit_unary_minus().

00049 {
00050   TAO_Literal_Constraint operand;
00051   this->dequeue_head (operand);
00052 }

TAO_Literal_Constraint & TAO_Constraint_Evaluator::Operand_Queue::get_left_operand void   ) 
 

In a binary operation, obtain the left operand.

Definition at line 24 of file Constraint_Visitors.cpp.

References ACE_Unbounded_Queue< TAO_Literal_Constraint >::get().

Referenced by TAO_Constraint_Evaluator::do_the_op(), TAO_Constraint_Evaluator::visit_in(), and TAO_Constraint_Evaluator::visit_twiddle().

00025 {
00026   TAO_Literal_Constraint* left_operand = 0;
00027   this->get (left_operand, 1);
00028   return *left_operand;
00029 }

TAO_Literal_Constraint & TAO_Constraint_Evaluator::Operand_Queue::get_operand void   ) 
 

In a unary operation, obtain the only operand.

Definition at line 40 of file Constraint_Visitors.cpp.

References ACE_Unbounded_Queue< TAO_Literal_Constraint >::get().

Referenced by TAO_Constraint_Evaluator::evaluate_constraint(), TAO_Constraint_Evaluator::evaluate_preference(), TAO_Constraint_Evaluator::visit_and(), TAO_Constraint_Evaluator::visit_not(), TAO_Constraint_Evaluator::visit_or(), and TAO_Constraint_Evaluator::visit_unary_minus().

00041 {
00042   TAO_Literal_Constraint* operand = 0;
00043   this->get (operand);
00044   return *operand;
00045 }

TAO_Literal_Constraint & TAO_Constraint_Evaluator::Operand_Queue::get_right_operand void   ) 
 

In a binary operation, obtain the right operand.

Definition at line 32 of file Constraint_Visitors.cpp.

References ACE_Unbounded_Queue< TAO_Literal_Constraint >::get().

Referenced by TAO_Constraint_Evaluator::do_the_op(), TAO_Constraint_Evaluator::visit_in(), and TAO_Constraint_Evaluator::visit_twiddle().

00033 {
00034   TAO_Literal_Constraint* right_operand = 0;
00035   this->get (right_operand);
00036   return *right_operand;
00037 }


The documentation for this class was generated from the following files:
Generated on Thu Nov 9 14:00:48 2006 for TAO_CosTrader by doxygen 1.3.6