Lumiera 0.pre.04~rc.1
»edit your freedom«
Loading...
Searching...
No Matches
symbol-impl.cpp File Reference

Implementation functionality to support definition of lib::Symbol. More...

Go to the source code of this file.

Description

Implementation functionality to support definition of lib::Symbol.

See also
lib::Symbol
control::CommandRegistry for usage example of the hash function.
symbol-table.hpp for the implementation of interned strings

Definition in file symbol-impl.cpp.

#include "lib/symbol.hpp"
#include "lib/symbol-table.hpp"
#include <boost/functional/hash.hpp>
#include <cstddef>
#include <cstring>
#include <string>

Namespaces

namespace  lib
 Implementation namespace for support and library code.
 
namespace  lib::anonymous_namespace{symbol-impl.cpp}
 

Functions

SymbolTablesymbolTable ()
 
HashVal hash_value (Literal literal)
 generate hash value based on the Literal's contents.
 
HashVal hash_value (Symbol sym)
 hash value for Symbols is directly based on the symbol table entry
 

Variables

const size_t STRING_MAX_RELEVANT = LUMIERA_IDSTRING_MAX_RELEVANT
 safety guard: maximum number of chars to process.