Lines Matching defs:LoopLevel
2739 struct LoopLevel { struct in inja::Renderer
2740 enum class Type { Map, Array };
2742 Type loop_type;
2743 nonstd::string_view key_name; // variable name for keys
2744 nonstd::string_view value_name; // variable name for values
2745 json data; // data with loop info added
2747 json values; // values to iterate over
2750 size_t index; // current list index
2751 size_t size; // length of list
2754 using KeyValue = std::pair<nonstd::string_view, json*>;
2755 using MapValues = std::vector<KeyValue>;
2756 MapValues map_values; // values to iterate over
2757 MapValues::iterator map_it; // iterator over values