CBMC
Loading...
Searching...
No Matches
Classes | Namespaces | Functions
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
 
  Default hash function of dstringt for use with STL containers. More...
 
 

Namespaces

namespace   std
  STL namespace.
 

Functions

const std::string &  as_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 dstringts )
inline

Definition at line 231 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 dstringts )
inline

Definition at line 240 of file dstring.h.

◆  operator<<()

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

Definition at line 245 of file dstring.h.

◆  to_dstring()

template<typename T >
static 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 280 of file dstring.h.

AltStyle によって変換されたページ (->オリジナル) /