Classes | Public Types | Public Member Functions | Friends
Json::ValueInternalMap Class Reference

A linked page based hash-table implementation used internally by Value. More...

#include <value.h>

List of all members.

Classes

struct  IteratorState

Public Types

typedef unsigned int HashKey
typedef unsigned int BucketIndex

Public Member Functions

 ValueInternalMap ()
 ValueInternalMap (const ValueInternalMap &other)
ValueInternalMapoperator= (const ValueInternalMap &other)
 ~ValueInternalMap ()
void swap (ValueInternalMap &other)
BucketIndex size () const
void clear ()
bool reserveDelta (BucketIndex growth)
bool reserve (BucketIndex newItemCount)
const Valuefind (const char *key) const
Valuefind (const char *key)
ValueresolveReference (const char *key, bool isStatic)
void remove (const char *key)
void doActualRemove (ValueInternalLink *link, BucketIndex index, BucketIndex bucketIndex)
ValueInternalLink *& getLastLinkInBucket (BucketIndex bucketIndex)
ValuesetNewItem (const char *key, bool isStatic, ValueInternalLink *link, BucketIndex index)
ValueunsafeAdd (const char *key, bool isStatic, HashKey hashedKey)
HashKey hash (const char *key) const
int compare (const ValueInternalMap &other) const

Friends

class ValueIteratorBase
class Value

Detailed Description

A linked page based hash-table implementation used internally by Value.


Member Typedef Documentation

typedef unsigned int Json::ValueInternalMap::HashKey

Constructor & Destructor Documentation


Member Function Documentation

ValueInternalMap & Json::ValueInternalMap::operator= ( const ValueInternalMap other)
const Value * Json::ValueInternalMap::find ( const char *  key) const
Value * Json::ValueInternalMap::find ( const char *  key)
Value & Json::ValueInternalMap::resolveReference ( const char *  key,
bool  isStatic 
)
void Json::ValueInternalMap::remove ( const char *  key)
Value & Json::ValueInternalMap::setNewItem ( const char *  key,
bool  isStatic,
ValueInternalLink link,
BucketIndex  index 
)
Value & Json::ValueInternalMap::unsafeAdd ( const char *  key,
bool  isStatic,
HashKey  hashedKey 
)
int Json::ValueInternalMap::compare ( const ValueInternalMap other) const

Friends And Related Function Documentation

friend class ValueIteratorBase [friend]
friend class Value [friend]

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