Hasher< Encoding, Allocator > Class Template Reference

Hasher&lt; Encoding, Allocator &gt; Class Template Reference#

Composable Kernel: internal::Hasher< Encoding, Allocator > Class Template Reference
internal::Hasher< Encoding, Allocator > Class Template Reference

#include <schema.h>

Public Types

typedef Encoding::Ch Ch

Public Member Functions

 Hasher (Allocator *allocator=0, size_t stackCapacity=kDefaultSize)
bool Null ()
bool Bool (bool b)
bool Int (int i)
bool Uint (unsigned u)
bool Int64 (int64_t i)
bool Uint64 (uint64_t u)
bool Double (double d)
bool RawNumber (const Ch *str, SizeType len, bool)
bool String (const Ch *str, SizeType len, bool)
bool StartObject ()
bool Key (const Ch *str, SizeType len, bool copy)
bool EndObject (SizeType memberCount)
bool StartArray ()
bool EndArray (SizeType elementCount)
bool IsValid () const
uint64_t GetHashCode () const

Member Typedef Documentation

◆ Ch

template<typename Encoding, typename Allocator>
typedef Encoding::Ch internal::Hasher< Encoding, Allocator >::Ch

Constructor & Destructor Documentation

◆ Hasher()

template<typename Encoding, typename Allocator>
internal::Hasher< Encoding, Allocator >::Hasher ( Allocator * allocator = 0,
size_t stackCapacity = kDefaultSize )
inline

Member Function Documentation

◆ Bool()

template<typename Encoding, typename Allocator>
bool internal::Hasher< Encoding, Allocator >::Bool ( bool b)
inline

◆ Double()

template<typename Encoding, typename Allocator>
bool internal::Hasher< Encoding, Allocator >::Double ( double d)
inline

◆ EndArray()

template<typename Encoding, typename Allocator>
bool internal::Hasher< Encoding, Allocator >::EndArray ( SizeType elementCount)
inline

◆ EndObject()

template<typename Encoding, typename Allocator>
bool internal::Hasher< Encoding, Allocator >::EndObject ( SizeType memberCount)
inline

◆ GetHashCode()

template<typename Encoding, typename Allocator>
uint64_t internal::Hasher< Encoding, Allocator >::GetHashCode ( ) const
inline

◆ Int()

template<typename Encoding, typename Allocator>
bool internal::Hasher< Encoding, Allocator >::Int ( int i)
inline

◆ Int64()

template<typename Encoding, typename Allocator>
bool internal::Hasher< Encoding, Allocator >::Int64 ( int64_t i)
inline

◆ IsValid()

template<typename Encoding, typename Allocator>
bool internal::Hasher< Encoding, Allocator >::IsValid ( ) const
inline

◆ Key()

template<typename Encoding, typename Allocator>
bool internal::Hasher< Encoding, Allocator >::Key ( const Ch * str,
SizeType len,
bool copy )
inline

◆ Null()

template<typename Encoding, typename Allocator>
bool internal::Hasher< Encoding, Allocator >::Null ( )
inline

◆ RawNumber()

template<typename Encoding, typename Allocator>
bool internal::Hasher< Encoding, Allocator >::RawNumber ( const Ch * str,
SizeType len,
bool  )
inline

◆ StartArray()

template<typename Encoding, typename Allocator>
bool internal::Hasher< Encoding, Allocator >::StartArray ( )
inline

◆ StartObject()

template<typename Encoding, typename Allocator>
bool internal::Hasher< Encoding, Allocator >::StartObject ( )
inline

◆ String()

template<typename Encoding, typename Allocator>
bool internal::Hasher< Encoding, Allocator >::String ( const Ch * str,
SizeType len,
bool  )
inline

◆ Uint()

template<typename Encoding, typename Allocator>
bool internal::Hasher< Encoding, Allocator >::Uint ( unsigned u)
inline

◆ Uint64()

template<typename Encoding, typename Allocator>
bool internal::Hasher< Encoding, Allocator >::Uint64 ( uint64_t u)
inline

The documentation for this class was generated from the following file: