MCPcopy Create free account
hub / github.com/cinder/Cinder / begin

Method begin

src/jsoncpp/jsoncpp.cpp:2749–2777  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2747}
2748
2749Value::const_iterator Value::begin() const {
2750 switch (type_) {
2751#ifdef JSON_VALUE_USE_INTERNAL_MAP
2752 case arrayValue:
2753 if (value_.array_) {
2754 ValueInternalArray::IteratorState it;
2755 value_.array_->makeBeginIterator(it);
2756 return const_iterator(it);
2757 }
2758 break;
2759 case objectValue:
2760 if (value_.map_) {
2761 ValueInternalMap::IteratorState it;
2762 value_.map_->makeBeginIterator(it);
2763 return const_iterator(it);
2764 }
2765 break;
2766#else
2767 case arrayValue:
2768 case objectValue:
2769 if (value_.map_)
2770 return const_iterator(value_.map_->begin());
2771 break;
2772#endif
2773 default:
2774 break;
2775 }
2776 return const_iterator();
2777}
2778
2779Value::const_iterator Value::end() const {
2780 switch (type_) {

Callers 15

createGridMethod · 0.45
loadImagesThreadFnMethod · 0.45
updateMethod · 0.45
drawMethod · 0.45
isAliveMethod · 0.45
renderSceneMethod · 0.45
updateMethod · 0.45
drawMethod · 0.45
runTransformFeedbackMethod · 0.45
loadBuffersMethod · 0.45
pickMethod · 0.45
drawMethod · 0.45

Calls 1

iteratorClass · 0.50

Tested by 2

loadImagesThreadFnMethod · 0.36
printFontNamesFunction · 0.36