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.

Detailed Description

Definition at line 315 of file Constraint_Visitors.h.


Constructor & Destructor Documentation

TAO_BEGIN_VERSIONED_NAMESPACE_DECL TAO_Constraint_Evaluator::Operand_Queue::Operand_Queue ( void   ) 

Definition at line 20 of file Constraint_Visitors.cpp.

00021 {
00022 }


Member Function Documentation

void TAO_Constraint_Evaluator::Operand_Queue::dequeue_operand ( void   ) 

Remove an operand from the queue.

Definition at line 49 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().

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

TAO_Literal_Constraint & TAO_Constraint_Evaluator::Operand_Queue::get_left_operand ( void   ) 

In a binary operation, obtain the left operand.

Definition at line 25 of file Constraint_Visitors.cpp.

References ACE_Unbounded_Queue< TAO_Literal_Constraint >::get().

Referenced by TAO_Constraint_Evaluator::do_the_op().

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

TAO_Literal_Constraint & TAO_Constraint_Evaluator::Operand_Queue::get_operand ( void   ) 

In a unary operation, obtain the only operand.

Definition at line 41 of file Constraint_Visitors.cpp.

References ACE_Unbounded_Queue< TAO_Literal_Constraint >::get().

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

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

TAO_Literal_Constraint & TAO_Constraint_Evaluator::Operand_Queue::get_right_operand ( void   ) 

In a binary operation, obtain the right operand.

Definition at line 33 of file Constraint_Visitors.cpp.

References ACE_Unbounded_Queue< TAO_Literal_Constraint >::get().

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

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


The documentation for this class was generated from the following files:
Generated on Tue Feb 2 17:49:31 2010 for TAO_CosTrader by  doxygen 1.4.7