当前位置: 首页>>代码示例>>C++>>正文


C++ AddressList::end方法代码示例

本文整理汇总了C++中AddressList::end方法的典型用法代码示例。如果您正苦于以下问题:C++ AddressList::end方法的具体用法?C++ AddressList::end怎么用?C++ AddressList::end使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在AddressList的用法示例。


在下文中一共展示了AddressList::end方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: onTxCommit

 /*** On commit, perform frees, clear lists, exit epoch */
 void onTxCommit()
 {
     AddressList::iterator i, e;
     for (i = frees.begin(), e = frees.end(); i != e; ++i) {
         schedForReclaim(*i);
     }
     frees.reset();
     allocs.reset();
     *my_ts = 1+*my_ts;
 }
开发者ID:jaingaurav,项目名称:rstm,代码行数:11,代码来源:WBMMPolicy.hpp

示例2: onTxAbort

 /*** On abort, unroll allocs, clear lists, exit epoch */
 void onTxAbort()
 {
     AddressList::iterator i, e;
     for (i = allocs.begin(), e = allocs.end(); i != e; ++i) {
         free(*i);
     }
     frees.reset();
     allocs.reset();
     *my_ts = 1+*my_ts;
 }
开发者ID:jaingaurav,项目名称:rstm,代码行数:11,代码来源:WBMMPolicy.hpp

示例3: TryNextProfileServer

void ProfileData::TryNextProfileServer()
{
	if (++curServer == profileServers.end())
		Done();
	else
	{
		profileSocket->Close(0);
		profileSocket->ReleaseSession();
		profileSocket->GetSocket()->SetRemoteAddress(*curServer);
		SendCreateProfileRequest(this, this->emailAddress.c_str());
	}
}
开发者ID:vgck,项目名称:opendr2,代码行数:12,代码来源:ProfileAPI.cpp

示例4: mailAliases

  AddrSpecList VacationDialog::mailAliases() const {
    QCString text = mMailAliasesEdit->text().latin1(); // ### IMAA: !ok
    AddressList al;
    const char * s = text.begin();
    parseAddressList( s, text.end(), al );

    AddrSpecList asl;
    for ( AddressList::const_iterator it = al.begin() ; it != al.end() ; ++it ) {
      const MailboxList & mbl = (*it).mailboxList;
      for ( MailboxList::const_iterator jt = mbl.begin() ; jt != mbl.end() ; ++jt )
	asl.push_back( (*jt).addrSpec );
    }
    return asl;
  }
开发者ID:,项目名称:,代码行数:14,代码来源:

示例5: fetchAndUpdateDnsInfo

int VBoxNetDhcp::fetchAndUpdateDnsInfo()
{
    ComHostPtr host;
    if (SUCCEEDED(virtualbox->COMGETTER(Host)(host.asOutParam())))
    {
        AddressToOffsetMapping mapIp4Addr2Off;
        int rc = localMappings(m_NATNetwork, mapIp4Addr2Off);
        /* XXX: here could be several cases: 1. COM error, 2. not found (empty) 3. ? */
        AssertMsgRCReturn(rc, ("Can't fetch local mappings"), rc);

        RTNETADDRIPV4 address = getIpv4Address();
        RTNETADDRIPV4 netmask = getIpv4Netmask();

        AddressList nameservers;
        rc = hostDnsServers(host, networkid(address, netmask), mapIp4Addr2Off, nameservers);
        AssertMsgRCReturn(rc, ("Debug me!!!"), rc);
        /* XXX: Search strings */

        std::string domain;
        rc = hostDnsDomain(host, domain);
        AssertMsgRCReturn(rc, ("Debug me!!"), rc);

        {
            VBoxNetALock(this);
            ConfigurationManager *confManager = ConfigurationManager::getConfigurationManager();
            confManager->flushAddressList(RTNET_DHCP_OPT_DNS);

            for (AddressList::iterator it = nameservers.begin(); it != nameservers.end(); ++it)
                confManager->addToAddressList(RTNET_DHCP_OPT_DNS, *it);

            confManager->setString(RTNET_DHCP_OPT_DOMAIN_NAME, domain);
        }
    }

    return VINF_SUCCESS;
}
开发者ID:mcenirm,项目名称:vbox,代码行数:36,代码来源:VBoxNetDHCP.cpp

示例6: connect

 void connect(::zmq::socket_t& socket, const AddressList& address_list)
 {
   typedef typename AddressList::const_iterator iter_t;
   for (iter_t it = address_list.begin(); it != address_list.end(); ++it)
     socket.connect(it->c_str());
 }
开发者ID:yuijo,项目名称:miu-core,代码行数:6,代码来源:utility.hpp


注:本文中的AddressList::end方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。