Public Member Functions | List of all members
Json::StaticString Class Reference

Detailed Description

Lightweight wrapper to tag static string.

Value constructor and objectValue member assignement takes advantage of the StaticString and avoid the cost of string duplication when storing the string or the member name.

Example of usage:

Json::Value aValue( StaticString("some text") );
Json::Value object;
static const StaticString code("code");
object[code] = 1234;

Definition at line 3175 of file pyne.h.

#include <pyne.h>

Public Member Functions

const char * c_str () const
 operator const char * () const
 StaticString (const char *czstring)

Constructor & Destructor Documentation

◆ StaticString()

Json::StaticString::StaticString ( const char *  czstring)

Definition at line 3178 of file pyne.h.

Member Function Documentation

◆ c_str()

const char* Json::StaticString::c_str ( ) const

Definition at line 3188 of file pyne.h.

◆ operator const char *()

Json::StaticString::operator const char * ( ) const

Definition at line 3183 of file pyne.h.

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