Akumuli
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends
Public Types | Static Public Member Functions | List of all members
Akumuli::StringTools Struct Reference

Public Types

typedef std::pair< const char
*, int > 
StringT
 Pooled string.
 
typedef std::unordered_map
< StringT, uint64_t, decltype(&StringTools::hash),
decltype(&StringTools::equal)> 
TableT
 
typedef std::unordered_set
< StringT, decltype(&StringTools::hash),
decltype(&StringTools::equal)> 
SetT
 
typedef std::unordered_map
< uint64_t, StringT
InvT
 Inverted table type (id to string mapping)
 

Static Public Member Functions

static size_t hash (StringT str)
 
static bool equal (StringT lhs, StringT rhs)
 
static TableT create_table (size_t size)
 
static SetT create_set (size_t size)
 
static uint64_t extract_id_from_pool (StringPool::StringT res)
 

The documentation for this struct was generated from the following files: