本文整理汇总了C++中SubscriptionList::end方法的典型用法代码示例。如果您正苦于以下问题:C++ SubscriptionList::end方法的具体用法?C++ SubscriptionList::end怎么用?C++ SubscriptionList::end使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类SubscriptionList
的用法示例。
在下文中一共展示了SubscriptionList::end方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: unsubscribeFromSymbols
/*
* Unsubscribe from all specified symbols.
*/
void MamaEntitle::unsubscribeFromSymbols (void)
{
SubscriptionList::const_iterator i;
for (i = mSubscriptionList.begin (); i != mSubscriptionList.end (); i++)
{
((MamaSubscription*)*i)->destroy();
delete *i;
}
}
示例2: getMamdaSubscription
MamdaSubscription* BookPublisher::getMamdaSubscription (const char * symbol)
{
SubscriptionList::const_iterator i;
for (i = mSubscriptionList.begin (); i != mSubscriptionList.end (); i++)
{
if (strcmp(((MamdaSubscription*)*i)->getSymbol() , symbol)==0)
{
return (MamdaSubscription*)*i;
}
}
return NULL;
}
示例3: shutdown
void MamaEntitle::shutdown ()
{
if (mQueueGroup != NULL)
{
mQueueGroup->stopDispatch();
}
if (mDictionary != NULL)
{
delete mDictionary;
mDictionary = NULL;
}
SubscriptionList::const_iterator i;
for (i = mSubscriptionList.begin (); i != mSubscriptionList.end (); i++)
{
((MamaSubscription*)*i)->destroy();
delete *i;
}
if (mQueueGroup != NULL)
{
delete mQueueGroup;
mQueueGroup = NULL;
}
if ((mDictTransport != NULL) && (mDictTransport != mTransport))
{
delete mDictTransport;
mDictTransport = NULL;
}
if (mTransport != NULL)
{
delete mTransport;
mTransport = NULL;
}
Mama::close ();
}