CYCLUS
Loading...
Searching...
No Matches
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;
Lightweight wrapper to tag static string.
Definition pyne.h:3176
StaticString(const char *czstring)
Definition pyne.h:3178
Represents a JSON value.
Definition pyne.h:3225

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)
inlineexplicit

Definition at line 3178 of file pyne.h.

Member Function Documentation

◆ c_str()

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

Definition at line 3188 of file pyne.h.

◆ operator const char *()

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

Definition at line 3183 of file pyne.h.


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