12 #ifndef CPROVER_UTIL_STRING_CONTAINER_H
13 #define CPROVER_UTIL_STRING_CONTAINER_H
16 #include <unordered_map>
96 typedef std::unordered_map<string_ptrt, unsigned, string_ptr_hash>
100 unsigned get(
const char *s);
101 unsigned get(
const std::string &s);
const std::string & get_string(size_t no) const
unsigned get(const char *s)
std::vector< std::string * > string_vectort
std::unordered_map< string_ptrt, unsigned, string_ptr_hash > hash_tablet
const char * c_str(size_t no) const
string_vectort string_vector
unsigned operator[](const std::string &s)
std::list< std::string > string_listt
string_container_statisticst compute_statistics() const
unsigned operator[](const char *s)
size_t operator()(const string_ptrt s) const
size_t hash_string(const dstringt &s)
string_containert & get_string_container()
Get a reference to the global string container.
Has estimated statistics about string container (estimated because this only uses public information,...
memory_sizet vector_memory_usage
void dump_on_stream(std::ostream &out) const
memory_sizet strings_memory_usage
memory_sizet list_memory_usage
memory_sizet map_memory_usage
string_ptrt(const char *_s)
bool operator==(const string_ptrt &other) const
const char * c_str() const
string_ptrt(const std::string &_s)