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

Method ToString

include/slg/core/statictable.h:54–71  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52 size_t GetSize() const { return GetTable().size(); }
53
54 std::string ToString() const {
55 std::stringstream ss;
56
57 ss << "StaticTable[";
58 boost::unordered_map<K, T> &table = GetTable();
59 bool first = true;
60 for (typename boost::unordered_map<K, T>::const_iterator it = table.begin(); it != table.end(); ++it) {
61 if (first)
62 first = false;
63 else
64 ss << ",";
65
66 ss << "(" << boost::lexical_cast<std::string>(it->first) << "," << boost::lexical_cast<std::string>(it->second) << ")";
67 }
68 ss << "]";
69
70 return ss.str();
71 }
72
73 class RegisterTableValue {
74 public:

Callers 2

saveFunction · 0.45
properties.hFile · 0.45

Calls 3

beginMethod · 0.45
endMethod · 0.45
strMethod · 0.45

Tested by

no test coverage detected