JsonCpp project page JsonCpp home page

Public Types | Public Member Functions | Public Attributes | List of all members
Json::ValueInternalLink Class Reference

ValueInternalMap hash-map bucket chain link (for internal use only). More...

#include <json/value.h>

+ Collaboration diagram for Json::ValueInternalLink:

Public Types

enum  { itemPerLink = 6 }
 
enum  InternalFlags { flagAvailable = 0, flagUsed = 1 }
 

Public Member Functions

 ValueInternalLink ()
 
 ~ValueInternalLink ()
 

Public Attributes

Value items_ [itemPerLink]
 
char * keys_ [itemPerLink]
 
ValueInternalLinkprevious_
 
ValueInternalLinknext_
 

Detailed Description

ValueInternalMap hash-map bucket chain link (for internal use only).

previous_ & next_ allows for bidirectional traversal.

Definition at line 632 of file value.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
itemPerLink 

Definition at line 635 of file value.h.

◆ InternalFlags

Enumerator
flagAvailable 
flagUsed 

Definition at line 636 of file value.h.

Constructor & Destructor Documentation

◆ ValueInternalLink()

Json::ValueInternalLink::ValueInternalLink ( )

MUST be safely initialized using memset( this, 0, sizeof(ValueInternalLink) ); This optimization is used by the fast allocator.

Definition at line 21 of file json_internalmap.inl.

Referenced by Json::ValueMapAllocator::~ValueMapAllocator().

+ Here is the caller graph for this function:

◆ ~ValueInternalLink()

Json::ValueInternalLink::~ValueInternalLink ( )

Definition at line 27 of file json_internalmap.inl.

References itemPerLink, items_, and keys_.

Referenced by Json::ValueMapAllocator::~ValueMapAllocator().

+ Here is the caller graph for this function:

Member Data Documentation

◆ items_

Value Json::ValueInternalLink::items_[itemPerLink]

◆ keys_

char* Json::ValueInternalLink::keys_[itemPerLink]

Definition at line 646 of file value.h.

Referenced by Json::ValueInternalMap::setNewItem(), and ~ValueInternalLink().

◆ next_

ValueInternalLink* Json::ValueInternalLink::next_

◆ previous_

ValueInternalLink* Json::ValueInternalLink::previous_

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

SourceForge Logo hosts this site. Send comments to:
Json-cpp Developers