VR-Vantage 3.1 API Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Classes | Public Types | Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | Static Private Attributes
internal::Hasher< Encoding, Allocator > Class Template Reference

Classes

struct  Number

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

Private Member Functions

bool WriteType (Type type)
bool WriteNumber (const Number &n)
bool WriteBuffer (Type type, const void *data, size_t len)

Static Private Member Functions

static uint64_t Hash (uint64_t h, uint64_t d)

Private Attributes

Stack< Allocator > stack_

Static Private Attributes

static const size_t kDefaultSize = 256

Member Typedef Documentation

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

Constructor & Destructor Documentation

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

Member Function Documentation

template<typename Encoding , typename Allocator >
bool internal::Hasher< Encoding, Allocator >::Null ( )
inline
template<typename Encoding , typename Allocator >
bool internal::Hasher< Encoding, Allocator >::Bool ( bool  b)
inline
template<typename Encoding , typename Allocator >
bool internal::Hasher< Encoding, Allocator >::Int ( int  i)
inline
template<typename Encoding , typename Allocator >
bool internal::Hasher< Encoding, Allocator >::Uint ( unsigned  u)
inline
template<typename Encoding , typename Allocator >
bool internal::Hasher< Encoding, Allocator >::Int64 ( int64_t  i)
inline
template<typename Encoding , typename Allocator >
bool internal::Hasher< Encoding, Allocator >::Uint64 ( uint64_t  u)
inline
template<typename Encoding , typename Allocator >
bool internal::Hasher< Encoding, Allocator >::Double ( double  d)
inline
template<typename Encoding , typename Allocator >
bool internal::Hasher< Encoding, Allocator >::RawNumber ( const Ch str,
SizeType  len,
bool   
)
inline
template<typename Encoding , typename Allocator >
bool internal::Hasher< Encoding, Allocator >::String ( const Ch str,
SizeType  len,
bool   
)
inline
template<typename Encoding , typename Allocator >
bool internal::Hasher< Encoding, Allocator >::StartObject ( )
inline
template<typename Encoding , typename Allocator >
bool internal::Hasher< Encoding, Allocator >::Key ( const Ch str,
SizeType  len,
bool  copy 
)
inline
template<typename Encoding , typename Allocator >
bool internal::Hasher< Encoding, Allocator >::EndObject ( SizeType  memberCount)
inline
template<typename Encoding , typename Allocator >
bool internal::Hasher< Encoding, Allocator >::StartArray ( )
inline
template<typename Encoding , typename Allocator >
bool internal::Hasher< Encoding, Allocator >::EndArray ( SizeType  elementCount)
inline
template<typename Encoding , typename Allocator >
bool internal::Hasher< Encoding, Allocator >::IsValid ( ) const
inline
template<typename Encoding , typename Allocator >
uint64_t internal::Hasher< Encoding, Allocator >::GetHashCode ( ) const
inline
template<typename Encoding , typename Allocator >
bool internal::Hasher< Encoding, Allocator >::WriteType ( Type  type)
inlineprivate
template<typename Encoding , typename Allocator >
bool internal::Hasher< Encoding, Allocator >::WriteNumber ( const Number n)
inlineprivate
template<typename Encoding , typename Allocator >
bool internal::Hasher< Encoding, Allocator >::WriteBuffer ( Type  type,
const void data,
size_t  len 
)
inlineprivate
template<typename Encoding , typename Allocator >
static uint64_t internal::Hasher< Encoding, Allocator >::Hash ( uint64_t  h,
uint64_t  d 
)
inlinestaticprivate

Member Data Documentation

template<typename Encoding , typename Allocator >
const size_t internal::Hasher< Encoding, Allocator >::kDefaultSize = 256
staticprivate
template<typename Encoding , typename Allocator >
Stack<Allocator> internal::Hasher< Encoding, Allocator >::stack_
private

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


Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)