Skip to content

StructuredValue

The format of structured values is defined in the Structured Values document.

INCLUDE FILE
#include "StructuredValue.h"

class StructuredValue

Represents a structured value, which can be an scalar, array, dictionary, or body.

DEFINITION
class StructuredValue;

enum Type

DEFINITION
enum Type;
VALUEDESCRIPTION
ARRAY
BODY
DICTIONARY
SCALAR_LIST
SCALAR_SINGULAR

destructor ~StructuredValuevirtual

DEFINITION
virtual ~StructuredValue ( );

method as

DEFINITION
template <typename T>
T * as ( );
RETURNSDESCRIPTION
T *

method asconst

DEFINITION
template <typename T>
const T * as ( ) const;
RETURNSDESCRIPTION
const T *

method as_arrayconst

DEFINITION
const StructuredArray * as_array ( ) const;
RETURNSDESCRIPTION
const StructuredArray *

method as_bodyconst

DEFINITION
const StructuredBody * as_body ( ) const;
RETURNSDESCRIPTION
const StructuredBody *

method as_dictionaryconst

DEFINITION
const StructuredDictionary * as_dictionary ( ) const;
RETURNSDESCRIPTION
const StructuredDictionary *

method as_scalarconst

DEFINITION
const StructuredScalar * as_scalar ( ) const;
RETURNSDESCRIPTION
const StructuredScalar *

method as_singular_scalarconst

DEFINITION
const StructuredScalar * as_singular_scalar ( ) const;
RETURNSDESCRIPTION
const StructuredScalar *

method initializestatic protected

DEFINITION
static void  initialize ( );

method isconst

DEFINITION
template <typename T>
bool  is ( ) const;
RETURNSDESCRIPTION
bool

method is_arrayconst

DEFINITION
bool  is_array ( ) const;
RETURNSDESCRIPTION
bool

method is_bodyconst

DEFINITION
bool  is_body ( ) const;
RETURNSDESCRIPTION
bool

method is_dictionaryconst

DEFINITION
bool  is_dictionary ( ) const;
RETURNSDESCRIPTION
bool

method is_scalarconst

DEFINITION
bool  is_scalar ( ) const;
RETURNSDESCRIPTION
bool

method is_singular_scalarconst

DEFINITION
bool  is_singular_scalar ( ) const;
RETURNSDESCRIPTION
bool

method parsestatic

DEFINITION
static std::shared_ptr< StructuredValue >  parse ( Tokenizer & tokenizer );
PARAMETERDESCRIPTION
tokenizer
RETURNSDESCRIPTION
std::shared_ptr< StructuredValue >

method setupstatic

DEFINITION
static void  setup ( FileTokenizer & tokenizer );
PARAMETERDESCRIPTION
tokenizer

method typeconst virtual

DEFINITION
virtual Type  type ( ) const = 0;
RETURNSDESCRIPTION
Type

member initializedstatic protected

DEFINITION
static bool  initialized;

member location

DEFINITION
Location  location;

member start_groupstatic protected

DEFINITION
static TokenGroup  start_group;