#include <Offer_Iterators.h>
Inheritance diagram for TAO_Offer_Iterator:
Public Member Functions | |
TAO_Offer_Iterator (const TAO_Property_Filter &property_filter) | |
virtual | ~TAO_Offer_Iterator (void) |
virtual void | destroy () throw (CORBA::SystemException) |
virtual void | add_offer (CosTrading::OfferId offer_id, const CosTrading::Offer *offer)=0 |
virtual CORBA::ULong | max_left ()=0 throw (CORBA::SystemException, CosTrading::UnknownMaxLeft) |
virtual CORBA::Boolean | next_n (CORBA::ULong n, CosTrading::OfferSeq_out offers)=0 throw (CORBA::SystemException) |
Protected Member Functions | |
TAO_Offer_Iterator & | operator= (const TAO_Offer_Iterator &) |
Protected Attributes | |
TAO_Property_Filter | pfilter_ |
|
Definition at line 9 of file Offer_Iterators.cpp.
00010 : pfilter_ (pfilter) 00011 { 00012 } |
|
Definition at line 14 of file Offer_Iterators.cpp.
00015 { 00016 } |
|
Add an offer to the collection of offers the iterator will iterate over. Implemented in TAO_Query_Only_Offer_Iterator, and TAO_Register_Offer_Iterator< MAP_LOCK_TYPE >. Referenced by TAO_Lookup< TRADER_LOCK_TYPE, MAP_LOCK_TYPE >::fill_receptacles(). |
|
BEGIN SPEC The destroy operation destroys the iterator. No further operations can be invoked on an iterator after it has been destroyed. END SPEC Definition at line 19 of file Offer_Iterators.cpp. References ACE_CHECK, ACE_ENV_ARG_PARAMETER, and ACE_ENV_SINGLE_ARG_PARAMETER.
00021 { 00022 // Remove self from POA 00023 00024 PortableServer::POA_var poa = 00025 this->_default_POA (ACE_ENV_SINGLE_ARG_PARAMETER); 00026 ACE_CHECK; 00027 00028 PortableServer::ObjectId_var id = 00029 poa->servant_to_id (this ACE_ENV_ARG_PARAMETER); 00030 ACE_CHECK; 00031 00032 poa->deactivate_object (id.in () ACE_ENV_ARG_PARAMETER); 00033 ACE_CHECK; 00034 } |
|
Implemented in TAO_Query_Only_Offer_Iterator, and TAO_Register_Offer_Iterator< MAP_LOCK_TYPE >. |
|
BEGIN SPEC The next_n operation returns a set of service offers in the output parameter "offers." The operation returns n service offers if there are at least n service offers remaining in the iterator. If there are fewer than n service offers in the iterator, then all remaining service offers are returned. The actual number of service offers returned can be determined from the length of the "offers" sequence. The next_n operation returns TRUE if there are further service offers to be extracted from the iterator. It returns FALSE if there are no further service offers to be extracted. END SPEC Implemented in TAO_Query_Only_Offer_Iterator, and TAO_Register_Offer_Iterator< MAP_LOCK_TYPE >. |
|
|
|
The filter through which each returned offer must pass. Used to strip offers of undesirable properties. Definition at line 106 of file Offer_Iterators.h. |