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

Method ToString

src/luxrays/core/namedobjectvector.cpp:174–201  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

172}
173
174std::string NamedObjectVector::ToString() const {
175 std::stringstream ss;
176
177 ss << "NamedObjectVector[\n";
178
179 for (u_int i = 0; i < objs.size(); ++i) {
180 if (i > 0)
181 ss << ", ";
182 ss << "(" << i << ", " << objs[i] << ")";
183 }
184 ss << ",\n";
185
186 ss << "name2index[";
187 PrintMap(name2index.left, ss);
188 ss << ", ";
189 PrintMap(name2index.right, ss);
190 ss << "],\n";
191
192 ss << "index2obj[";
193 PrintMap(index2obj.left, ss);
194 ss << ", ";
195 PrintMap(index2obj.right, ss);
196 ss << "]\n";
197
198 ss << "]";
199
200 return ss.str();
201}

Callers

nothing calls this directly

Calls 3

PrintMapFunction · 0.85
sizeMethod · 0.45
strMethod · 0.45

Tested by

no test coverage detected