MCPcopy Create free account
hub / github.com/LuxCoreRender/LuxCore / PrintMap

Function PrintMap

src/luxrays/core/namedobjectvector.cpp:157–172  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

155}
156
157template<class MapType> void PrintMap(const MapType &map, std::ostream &os) {
158 typedef typename MapType::const_iterator const_iterator;
159
160 os << "Map[";
161
162 os << "(";
163 for (const_iterator i = map.begin(), iend = map.end(); i != iend; ++i) {
164 if (i != map.begin())
165 os << ", ";
166
167 os << "(" << i->first << ", " << i->second << ")";
168 }
169 os << ")";
170
171 os << "]";
172}
173
174std::string NamedObjectVector::ToString() const {
175 std::stringstream ss;

Callers 1

ToStringMethod · 0.85

Calls 2

beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected