TAO_CosTrader
2.1.9
|
TAO_Service_Offer_Iterator iterates over the set of exported offers for a given type. Handily, it takes care of all the necessary locking, acquiring them in the constructor, and releasing them in the destructor. More...
#include <Offer_Database.h>
Public Types | |
typedef TAO_Offer_Database < LOCK_TYPE > | Offer_Database |
Public Member Functions | |
TAO_Service_Offer_Iterator (const char *type, TAO_Offer_Database< LOCK_TYPE > &offer_database) | |
~TAO_Service_Offer_Iterator (void) | |
Release all the locks acquired. More... | |
int | has_more_offers (void) |
Returns 1 if there are more offers, 0 otherwise. More... | |
CosTrading::OfferId | get_id (void) |
Get the id for the current offer. More... | |
CosTrading::Offer * | get_offer (void) |
Returns the next offer in the series. More... | |
void | next_offer (void) |
Advances the iterator 1. More... | |
Private Attributes | |
TAO_Offer_Database< LOCK_TYPE > & | stm_ |
Lock the top_level map. More... | |
LOCK_TYPE * | lock_ |
Lock for the internal map. More... | |
TAO_Offer_Map::iterator * | offer_iter_ |
Iterator over the actual offer map. More... | |
const char * | type_ |
The name of the type. Used for constructing offer ids. More... | |
TAO_Service_Offer_Iterator iterates over the set of exported offers for a given type. Handily, it takes care of all the necessary locking, acquiring them in the constructor, and releasing them in the destructor.
typedef TAO_Offer_Database<LOCK_TYPE> TAO_Service_Offer_Iterator< LOCK_TYPE >::Offer_Database |
TAO_Service_Offer_Iterator< LOCK_TYPE >::TAO_Service_Offer_Iterator | ( | const char * | type, |
TAO_Offer_Database< LOCK_TYPE > & | offer_database | ||
) |
TAO_Service_Offer_Iterator< LOCK_TYPE >::~TAO_Service_Offer_Iterator | ( | void | ) |
Release all the locks acquired.
CosTrading::OfferId TAO_Service_Offer_Iterator< LOCK_TYPE >::get_id | ( | void | ) |
Get the id for the current offer.
CosTrading::Offer * TAO_Service_Offer_Iterator< LOCK_TYPE >::get_offer | ( | void | ) |
Returns the next offer in the series.
int TAO_Service_Offer_Iterator< LOCK_TYPE >::has_more_offers | ( | void | ) |
Returns 1 if there are more offers, 0 otherwise.
void TAO_Service_Offer_Iterator< LOCK_TYPE >::next_offer | ( | void | ) |
Advances the iterator 1.
|
private |
Lock for the internal map.
|
private |
Iterator over the actual offer map.
|
private |
Lock the top_level map.
|
private |
The name of the type. Used for constructing offer ids.