Debugger[New CDB]: Work on QList.

Move container size code to container.cpp/h and known type
enumeration to separate knowntype.h.
Add some more types. Change type detection to work without
'class '/'struct ' prefixes for inner types. Add Qt types with
Movable/Primitive flags. Add QStack/QQueue, size for std::deque
and std::stack. Add infrastructure for linked-list type containers
and std::list. Implement QList specialisations depending on type.
This commit is contained in:
Friedemann Kleint
2010-12-13 16:25:54 +01:00
parent 20b6f40756
commit 5fcc706800
8 changed files with 682 additions and 196 deletions

View File

@@ -73,6 +73,8 @@ std::wstring toWString(const Streamable s)
}
bool endsWith(const std::string &haystack, const char *needle);
inline bool endsWith(const std::string &haystack, char needle)
{ return !haystack.empty() && haystack.at(haystack.size() - 1) == needle; }
// Read an integer from a string as '10' or '0xA'
template <class Integer>