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); } } }
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()); } }
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]); } }
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]); } }
unsigned RadioButtonGroup::size() const { return m_members.size(); }