本文整理汇总了C++中Members::size方法的典型用法代码示例。如果您正苦于以下问题:C++ Members::size方法的具体用法?C++ Members::size怎么用?C++ Members::size使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Members
的用法示例。
在下文中一共展示了Members::size方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: add_component
void add_component(Members const& xs, Graph& g) {
using namespace boost;
for (std::size_t i = 0; i < xs.size(); ++i) {
for (std::size_t j = i + 1; j < xs.size(); ++j) {
add_edge(xs[i], xs[j], g);
}
}
}
示例2: ConvertSatoshisToBitcoin
void BtcTxTarget::ConvertSatoshisToBitcoin()
{
Members targetAddresses = this->getMemberNames();
for (Json::Value::ArrayIndex i = 0; i < targetAddresses.size(); i++)
{
(*this)[targetAddresses[i]] = BtcHelper::SatoshisToCoins(
(*this)[targetAddresses[i]].asInt64());
}
}
示例3: keys
void Configuration::keys(std::vector<std::string>& keys, const std::string& baseKey)
{
Mutex::ScopedLock lock(_mutex);
Members members = this->getMemberNames();
for (unsigned i = 0; i < members.size(); i++) {
if (members[i].find(baseKey) != std::string::npos)
keys.push_back(members[i]);
}
}
示例4: removeAll
void Configuration::removeAll(const std::string& baseKey)
{
TraceL << "remove all: " << baseKey << endl;
Mutex::ScopedLock lock(_mutex);
Members members = this->getMemberNames();
for (unsigned i = 0; i < members.size(); i++) {
if (members[i].find(baseKey) != std::string::npos)
removeMember(members[i]);
}
}
示例5: size
unsigned RadioButtonGroup::size() const {
return m_members.size();
}