| 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: |
no test coverage detected