22 #ifndef __M2ETIS_PUBSUB_FILTER_GENERALBOOLEANALGEBRA_SUBSCRIPTIONIDENTIFIERFACTORY_H__
23 #define __M2ETIS_PUBSUB_FILTER_GENERALBOOLEANALGEBRA_SUBSCRIPTIONIDENTIFIERFACTORY_H__
38 if (!reusableIDs_.empty()) {
39 newID = *(reusableIDs_.begin());
40 reusableIDs_.erase(reusableIDs_.begin());
42 newID = ++max_used_ID_;
49 reusableIDs_.insert(
id);
53 SubscriptionID max_used_ID_;
56 std::set<SubscriptionID> reusableIDs_;
void freeID(SubscriptionID id)
SubscriptionIdentifierFactory()
SubscriptionID createSubscriptionIdentifier()