Public Member Functions | |
Operand_Queue (void) | |
TAO_Literal_Constraint & | get_left_operand (void) |
In a binary operation, obtain the left operand. | |
TAO_Literal_Constraint & | get_right_operand (void) |
In a binary operation, obtain the right operand. | |
TAO_Literal_Constraint & | get_operand (void) |
In a unary operation, obtain the only operand. | |
void | dequeue_operand (void) |
Remove an operand from the queue. |
|
Definition at line 19 of file Constraint_Visitors.cpp.
00020 { 00021 } |
|
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 } |
|
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 } |
|
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 } |
|
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 } |