JsonCpp project page JsonCpp home page

Public Types | Public Member Functions | List of all members
Json::ValueAllocator Class Referenceabstract

Experimental do not use: Allocator to customize member name and string value memory management done by Value. More...

#include </home/iurt/rpmbuild/BUILD/jsoncpp-src-0.5.0/include/json/value.h>

+ Inheritance diagram for Json::ValueAllocator:
+ Collaboration diagram for Json::ValueAllocator:

Public Types

enum  { unknown = (unsigned)-1 }
 

Public Member Functions

virtual ~ValueAllocator ()
 
virtual char * makeMemberName (const char *memberName)=0
 
virtual void releaseMemberName (char *memberName)=0
 
virtual char * duplicateStringValue (const char *value, unsigned int length=unknown)=0
 
virtual void releaseStringValue (char *value)=0
 

Detailed Description

Experimental do not use: Allocator to customize member name and string value memory management done by Value.

Definition at line 523 of file value.h.

Member Enumeration Documentation

anonymous enum
Enumerator
unknown 

Definition at line 526 of file value.h.

Constructor & Destructor Documentation

Json::ValueAllocator::~ValueAllocator ( )
virtual

Definition at line 55 of file json_value.cpp.

Member Function Documentation

virtual char* Json::ValueAllocator::duplicateStringValue ( const char *  value,
unsigned int  length = unknown 
)
pure virtual

Referenced by Json::Value::Value().

+ Here is the caller graph for this function:

virtual char* Json::ValueAllocator::makeMemberName ( const char *  memberName)
pure virtual

Referenced by Json::ValueInternalMap::setNewItem().

+ Here is the caller graph for this function:

virtual void Json::ValueAllocator::releaseMemberName ( char *  memberName)
pure virtual

Referenced by Json::ValueIteratorBase::memberName().

+ Here is the caller graph for this function:

virtual void Json::ValueAllocator::releaseStringValue ( char *  value)
pure virtual

Referenced by Json::ValueIteratorBase::copy(), and Json::Value::~Value().

+ Here is the caller graph for this function:


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

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