cprover
Loading...
Searching...
No Matches
dstring.h File Reference

Container for C-Strings. More...

#include <iosfwd>
#include <string>
#include "magic.h"
#include "string_container.h"
Include dependency graph for dstring.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  dstringt
 dstringt has one field, an unsigned integer no which is an index into a static table of strings. More...
struct  dstring_hash
struct  std::hash< dstringt >
 Default hash function of dstringt for use with STL containers. More...
struct  diagnostics_helpert< dstringt >

Namespaces

namespace  std
 STL namespace.

Functions

const std::string & as_string (const dstringt &s)
size_t hash_string (const dstringt &s)
std::ostream & operator<< (std::ostream &out, const dstringt &a)
dstringt get_dstring_number (std::size_t)
template<typename T>
static std::enable_if< std::is_integral< T >::value, dstringt >::type to_dstring (T value)
 equivalent to dstringt(std::to_string(value)), i.e., produces a string from a number

Detailed Description

Container for C-Strings.

Definition in file dstring.h.

Function Documentation

◆ as_string()

const std::string & as_string ( const dstringt & s)
inline

Definition at line 219 of file dstring.h.

◆ get_dstring_number()

dstringt get_dstring_number ( std::size_t value)

Definition at line 21 of file dstring.cpp.

◆ hash_string()

size_t hash_string ( const dstringt & s)
inline

Definition at line 228 of file dstring.h.

◆ operator<<()

std::ostream & operator<< ( std::ostream & out,
const dstringt & a )
inline

Definition at line 233 of file dstring.h.

◆ to_dstring()

template<typename T>
std::enable_if< std::is_integral< T >::value, dstringt >::type to_dstring ( T value)
inlinestatic

equivalent to dstringt(std::to_string(value)), i.e., produces a string from a number

Definition at line 268 of file dstring.h.