MCPcopy Create free account
hub / github.com/BTCGPU/BTCGPU / checkObject

Method checkObject

src/univalue/lib/univalue.cpp:181–197  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

179}
180
181bool UniValue::checkObject(const std::map<std::string,UniValue::VType>& t) const
182{
183 if (typ != VOBJ)
184 return false;
185
186 for (std::map<std::string,UniValue::VType>::const_iterator it = t.begin();
187 it != t.end(); ++it) {
188 size_t idx = 0;
189 if (!findKey(it->first, idx))
190 return false;
191
192 if (values.at(idx).getType() != it->second)
193 return false;
194 }
195
196 return true;
197}
198
199const UniValue& UniValue::operator[](const std::string& key) const
200{

Callers 2

MutateTxSignFunction · 0.80
BOOST_AUTO_TEST_CASEFunction · 0.80

Calls 3

getTypeMethod · 0.80
beginMethod · 0.45
endMethod · 0.45

Tested by 1

BOOST_AUTO_TEST_CASEFunction · 0.64