本文整理汇总了C++中UIDSet::End方法的典型用法代码示例。如果您正苦于以下问题:C++ UIDSet::End方法的具体用法?C++ UIDSet::End怎么用?C++ UIDSet::End使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类UIDSet
的用法示例。
在下文中一共展示了UIDSet::End方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: PopulateResponderListFromUIDs
/**
* Build a vector of MockResponder objects with the given uids.
*/
void DiscoveryAgentTest::PopulateResponderListFromUIDs(
const UIDSet &uids,
ResponderList *responders) {
UIDSet::Iterator iter = uids.Begin();
for (; iter != uids.End(); iter++)
responders->push_back(new MockResponder(*iter));
}
示例2: ShowUIDs
void ShowUIDs() {
UIDSet::Iterator iter = m_uids.Begin();
cout << "---------- " << m_uids.Size() << " UIDs -------" << endl;
char c = 'A';
for (; iter != m_uids.End(); ++iter) {
if (c <= 'Z') {
cout << *iter << " (" << c++ << ")" << endl;
} else {
cout << *iter << endl;
}
}
cout << "-------------------------" << endl;
}
示例3: RDMDiscoveryComplete
/**
* Called when RDM discovery completes
*/
void OlaServerServiceImpl::RDMDiscoveryComplete(
unsigned int universe_id,
ola::rpc::RpcService::CompletionCallback* done,
ola::proto::UIDListReply *response,
const UIDSet &uids) {
ClosureRunner runner(done);
response->set_universe(universe_id);
UIDSet::Iterator iter = uids.Begin();
for (; iter != uids.End(); ++iter) {
ola::proto::UID *uid = response->add_uid();
SetProtoUID(*iter, uid);
}
}
示例4: RDMDiscoveryComplete
/**
* Called when RDM discovery completes
*/
void OlaServerServiceImpl::RDMDiscoveryComplete(
unsigned int universe_id,
google::protobuf::Closure* done,
ola::proto::UIDListReply *response,
const UIDSet &uids) {
ClosureRunner runner(done);
response->set_universe(universe_id);
UIDSet::Iterator iter = uids.Begin();
for (; iter != uids.End(); ++iter) {
ola::proto::UID *uid = response->add_uid();
uid->set_esta_id(iter->ManufacturerId());
uid->set_device_id(iter->DeviceId());
}
}
示例5: UIDList
/*
* This is called when we receive uids for a universe
* @param universes a vector of OlaUniverses
*/
void UIDList(const ola::rdm::UIDSet &uids,
const string &error) {
UIDSet vendorcast;
if (error.empty()) {
UIDSet::Iterator iter = uids.Begin();
for (; iter != uids.End(); ++iter) {
cout << *iter << endl;
vendorcast.AddUID(UID::VendorcastAddress(*iter));
}
if (opts.vendorcast) {
iter = vendorcast.Begin();
for (; iter != vendorcast.End(); ++iter) {
cout << *iter << endl;
}
}
if (opts.broadcast) {
cout << UID::AllDevices().ToString() << endl;
}
} else {
cerr << error << endl;
}
ss->Terminate();
}