This class extends the TAO_Property_Evaluator to allow lookups based on the property name of interest. Since the property information is contained within an integer indexed array, lookups may occur in O(n) time, where n is the length of the array. To make lookups by name more efficient, TAO_Property_Evaluator_By_Name creates a mapping of property names to integer indicies, upon which lookups are guaranteed to be O(lg n).
More...
#include <Trader_Utils.h>
List of all members.
Detailed Description
This class extends the TAO_Property_Evaluator to allow lookups based on the property name of interest. Since the property information is contained within an integer indexed array, lookups may occur in O(n) time, where n is the length of the array. To make lookups by name more efficient, TAO_Property_Evaluator_By_Name creates a mapping of property names to integer indicies, upon which lookups are guaranteed to be O(lg n).
Constructor & Destructor Documentation
Construct an instance of TAO_Property_Evaluator that operates on an <offer> where the support for dynamic properties is dictated by <supports_dynamic_properties>.
Member Function Documentation
const CosTrading::Property * TAO_Property_Evaluator_By_Name::get_property |
( |
const char * |
property_name | ) |
|
int TAO_Property_Evaluator_By_Name::is_dynamic_property |
( |
const char * |
property_name | ) |
|
Returns 1 if the property whose name is <property_name> is defined and dynamic. If the property is undefined, this method will throw a Property_Undefined exception with impunity.
CORBA::TypeCode_ptr TAO_Property_Evaluator_By_Name::property_type |
( |
const char * |
property_name | ) |
|
This method is identical to its counterpart in TAO_Property_Evaluator, exception property_type first discovers the index through a string matching lookup.
CORBA::Any * TAO_Property_Evaluator_By_Name::property_value |
( |
const char * |
property_name | ) |
|
This method is identical to its counterpart in TAO_Property_Evaluator, except property_value first discovers the index through a string matching lookup.
Member Data Documentation
The instance of the above mapping for the offer provided in the constructor.
The documentation for this class was generated from the following files: