Main Page Namespace List Class Hierarchy Alphabetical List Compound List File List Namespace Members Compound Members File Members

# TAO_NS_Constraint_Visitor Class Reference

`#include <Notify_Constraint_Visitors.h>`

Collaboration diagram for TAO_NS_Constraint_Visitor:

[legend]
List of all members.

## Public Methods
| TAO_NS_Constraint_Visitor (void)
| Constructor. More...
int | bind_structured_event (const CosNotification::StructuredEvent &s_event)
| Put the event data into our hash map. More...
CORBA::Boolean | evaluate_constraint (TAO_ETCL_Constraint *root)
int | visit_literal (TAO_ETCL_Literal_Constraint *)
int | visit_identifier (TAO_ETCL_Identifier *)
int | visit_union_value (TAO_ETCL_Union_Value *)
int | visit_union_pos (TAO_ETCL_Union_Pos *)
int | visit_component_pos (TAO_ETCL_Component_Pos *)
int | visit_component_assoc (TAO_ETCL_Component_Assoc *)
int | visit_component_array (TAO_ETCL_Component_Array *)
int | visit_special (TAO_ETCL_Special *)
int | visit_component (TAO_ETCL_Component *)
int | visit_dot (TAO_ETCL_Dot *)
int | visit_eval (TAO_ETCL_Eval *)
int | visit_default (TAO_ETCL_Default *)
int | visit_exist (TAO_ETCL_Exist *)
int | visit_unary_expr (TAO_ETCL_Unary_Expr *)
int | visit_binary_expr (TAO_ETCL_Binary_Expr *)
int | visit_preference (TAO_ETCL_Preference *)
## Protected Types
enum | structured_event_field { FILTERABLE_DATA, HEADER, FIXED_HEADER, EVENT_TYPE, DOMAIN_NAME, TYPE_NAME, EVENT_NAME, VARIABLE_HEADER, REMAINDER_OF_BODY, NONE }
## Protected Methods
int | visit_or (TAO_ETCL_Binary_Expr *)
int | visit_and (TAO_ETCL_Binary_Expr *)
int | visit_twiddle (TAO_ETCL_Binary_Expr *)
int | visit_in (TAO_ETCL_Binary_Expr *)
int | visit_binary_op (TAO_ETCL_Binary_Expr *binary_expr, int op_type)
CORBA::Boolean | sequence_does_contain (const CORBA::Any *any, TAO_ETCL_Literal_Constraint &item)
CORBA::Boolean | array_does_contain (const CORBA::Any *any, TAO_ETCL_Literal_Constraint &item)
CORBA::Boolean | struct_does_contain (const CORBA::Any *any, TAO_ETCL_Literal_Constraint &item)
CORBA::Boolean | union_does_contain (const CORBA::Any *any, TAO_ETCL_Literal_Constraint &item)
CORBA::Boolean | any_does_contain (const CORBA::Any *any, TAO_ETCL_Literal_Constraint &item)
CORBA::Boolean | simple_type_match (int expr_type, CORBA::TCKind tc_kind)
## Protected Attributes
structured_event_field | implicit_id_
| Storage for the type of implicit id the component has (if any). More...
ACE_Hash_Map_Manager< ACE_CString, structured_event_field, TAO_SYNCH_MUTEX > | implicit_ids_
| Lookup table for the implicit ids, to avoid string comparisons in derived visitors. More...
ACE_Hash_Map_Manager< ACE_CString, CORBA::Any *, TAO_SYNCH_MUTEX > | filterable_data_
| Used to lookup names and values in the event's 'filterable_data' field. More...
ACE_Hash_Map_Manager< ACE_CString, CORBA::Any *, TAO_SYNCH_MUTEX > | variable_header_
| Used to lookup names and values in the event's 'variable_header' field. More...
CORBA::String_var | domain_name_
| Storage for string names under the structured event's 'fixed_header' field. More...
CORBA::String_var | type_name_
CORBA::String_var | event_name_
CORBA::Any | remainder_of_body_
| Storage for the structured_event's 'remainder_of_body' field. More...
ACE_Unbounded_Queue< TAO_ETCL_Literal_Constraint > | queue_
| The result of a non_boolean operation. More...
CORBA::Any_var | current_value_
| Holder for a value found in the event fields filterable_data, variable_header or remainder_of_body. More...
CORBA::String_var | current_name_
| Holder for a string name in the event fields fixed_header, variable_header, or filterable_data. More...

## Member Enumeration Documentation

enum TAO_NS_Constraint_Visitor::structured_event_field`[protected]`

  | Enumeration values:
  FILTERABLE_DATA |
  HEADER |
  FIXED_HEADER |
  EVENT_TYPE |
  DOMAIN_NAME |
  TYPE_NAME |
  EVENT_NAME |
  VARIABLE_HEADER |
  REMAINDER_OF_BODY |
  NONE |

## Constructor & Destructor Documentation

TAO_NS_Constraint_Visitor::TAO_NS_Constraint_Visitor | ( | void |  | ) |

| Constructor.

## Member Function Documentation

CORBA::Boolean TAO_NS_Constraint_Visitor::any_does_contain | ( | const CORBA::Any * | any,
|  | TAO_ETCL_Literal_Constraint & | item
| ) | `[protected]`

CORBA::Boolean TAO_NS_Constraint_Visitor::array_does_contain | ( | const CORBA::Any * | any,
|  | TAO_ETCL_Literal_Constraint & | item
| ) | `[protected]`

int TAO_NS_Constraint_Visitor::bind_structured_event | ( | const CosNotification::StructuredEvent & | s_event | ) |

| Put the event data into our hash map.

CORBA::Boolean TAO_NS_Constraint_Visitor::evaluate_constraint | ( | TAO_ETCL_Constraint * | root | ) |

| Returns 1 if the event satisfies the constraint represented by the the expression tree rooted at <root>, 0 if it doesn't. If an error occurs during the process, the traversal automatically fails.

CORBA::Boolean TAO_NS_Constraint_Visitor::sequence_does_contain | ( | const CORBA::Any * | any,
|  | TAO_ETCL_Literal_Constraint & | item
| ) | `[protected]`

CORBA::Boolean TAO_NS_Constraint_Visitor::simple_type_match | ( | int | expr_type,
|  | CORBA::TCKind | tc_kind
| ) | `[protected]`

CORBA::Boolean TAO_NS_Constraint_Visitor::struct_does_contain | ( | const CORBA::Any * | any,
|  | TAO_ETCL_Literal_Constraint & | item
| ) | `[protected]`

CORBA::Boolean TAO_NS_Constraint_Visitor::union_does_contain | ( | const CORBA::Any * | any,
|  | TAO_ETCL_Literal_Constraint & | item
| ) | `[protected]`

int TAO_NS_Constraint_Visitor::visit_and | ( | TAO_ETCL_Binary_Expr * | binary | ) | `[protected]`

int TAO_NS_Constraint_Visitor::visit_binary_expr | ( | TAO_ETCL_Binary_Expr * | binary_expr | ) |

int TAO_NS_Constraint_Visitor::visit_binary_op | ( | TAO_ETCL_Binary_Expr * | binary,
|  | int | op_type
| ) | `[protected]`

int TAO_NS_Constraint_Visitor::visit_component | ( | TAO_ETCL_Component * | component | ) |

int TAO_NS_Constraint_Visitor::visit_component_array | ( | TAO_ETCL_Component_Array * | array | ) |

int TAO_NS_Constraint_Visitor::visit_component_assoc | ( | TAO_ETCL_Component_Assoc * | assoc | ) |

int TAO_NS_Constraint_Visitor::visit_component_pos | ( | TAO_ETCL_Component_Pos * | pos | ) |

int TAO_NS_Constraint_Visitor::visit_default | ( | TAO_ETCL_Default * | def | ) |

int TAO_NS_Constraint_Visitor::visit_dot | ( | TAO_ETCL_Dot * | dot | ) |

int TAO_NS_Constraint_Visitor::visit_eval | ( | TAO_ETCL_Eval * | eval | ) |

int TAO_NS_Constraint_Visitor::visit_exist | ( | TAO_ETCL_Exist * | exist | ) |

int TAO_NS_Constraint_Visitor::visit_identifier | ( | TAO_ETCL_Identifier * | ident | ) |

int TAO_NS_Constraint_Visitor::visit_in | ( | TAO_ETCL_Binary_Expr * | binary | ) | `[protected]`

int TAO_NS_Constraint_Visitor::visit_literal | ( | TAO_ETCL_Literal_Constraint * | literal | ) |

int TAO_NS_Constraint_Visitor::visit_or | ( | TAO_ETCL_Binary_Expr * | binary | ) | `[protected]`

int TAO_NS_Constraint_Visitor::visit_preference | ( | TAO_ETCL_Preference * |  | ) |

int TAO_NS_Constraint_Visitor::visit_special | ( | TAO_ETCL_Special * | special | ) |

int TAO_NS_Constraint_Visitor::visit_twiddle | ( | TAO_ETCL_Binary_Expr * | binary | ) | `[protected]`

int TAO_NS_Constraint_Visitor::visit_unary_expr | ( | TAO_ETCL_Unary_Expr * | unary_expr | ) |

int TAO_NS_Constraint_Visitor::visit_union_pos | ( | TAO_ETCL_Union_Pos * | union_pos | ) |

int TAO_NS_Constraint_Visitor::visit_union_value | ( | TAO_ETCL_Union_Value * | union_value | ) |

## Member Data Documentation

CORBA::String_var TAO_NS_Constraint_Visitor::current_name_`[protected]`

| Holder for a string name in the event fields fixed_header, variable_header, or filterable_data.

CORBA::Any_var TAO_NS_Constraint_Visitor::current_value_`[protected]`

| Holder for a value found in the event fields filterable_data, variable_header or remainder_of_body.

CORBA::String_var TAO_NS_Constraint_Visitor::domain_name_`[protected]`

| Storage for string names under the structured event's 'fixed_header' field.

CORBA::String_var TAO_NS_Constraint_Visitor::event_name_`[protected]`

ACE_Hash_Map_Manager<ACE_CString, CORBA::Any *, TAO_SYNCH_MUTEX> TAO_NS_Constraint_Visitor::filterable_data_`[protected]`

| Used to lookup names and values in the event's 'filterable_data' field.

structured_event_field TAO_NS_Constraint_Visitor::implicit_id_`[protected]`

| Storage for the type of implicit id the component has (if any).

ACE_Hash_Map_Manager<ACE_CString, structured_event_field, TAO_SYNCH_MUTEX> TAO_NS_Constraint_Visitor::implicit_ids_`[protected]`

| Lookup table for the implicit ids, to avoid string comparisons in derived visitors.

ACE_Unbounded_Queue<TAO_ETCL_Literal_Constraint> TAO_NS_Constraint_Visitor::queue_`[protected]`

| The result of a non_boolean operation.

CORBA::Any TAO_NS_Constraint_Visitor::remainder_of_body_`[protected]`

| Storage for the structured_event's 'remainder_of_body' field.

CORBA::String_var TAO_NS_Constraint_Visitor::type_name_`[protected]`

ACE_Hash_Map_Manager<ACE_CString, CORBA::Any *, TAO_SYNCH_MUTEX> TAO_NS_Constraint_Visitor::variable_header_`[protected]`

| Used to lookup names and values in the event's 'variable_header' field.

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

- Notify_Constraint_Visitors.h
- Notify_Constraint_Visitors.cpp