Esempio n. 1
0
 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());
    }
}
Esempio n. 3
0
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]);
	}
}
Esempio n. 4
0
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]);
	}
}
Esempio n. 5
0
unsigned RadioButtonGroup::size() const {
  return m_members.size();
}