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;
| VALUE | DESCRIPTION |
|---|---|
ARRAY |
|
BODY |
|
DICTIONARY |
|
SCALAR_LIST |
|
SCALAR_SINGULAR |
destructor ~StructuredValuevirtual
DEFINITION
| virtual ~StructuredValue | ( | ); |
method as
DEFINITION
template <typename T>
| T * as | ( | ); |
| RETURNS | DESCRIPTION |
|---|---|
T * |
method asconst
DEFINITION
template <typename T>
| const T * as | ( | ) const; |
| RETURNS | DESCRIPTION |
|---|---|
const T * |
method as_arrayconst
DEFINITION
| const StructuredArray * as_array | ( | ) const; |
| RETURNS | DESCRIPTION |
|---|---|
const StructuredArray * |
method as_bodyconst
DEFINITION
| const StructuredBody * as_body | ( | ) const; |
| RETURNS | DESCRIPTION |
|---|---|
const StructuredBody * |
method as_dictionaryconst
DEFINITION
| const StructuredDictionary * as_dictionary | ( | ) const; |
| RETURNS | DESCRIPTION |
|---|---|
const StructuredDictionary * |
method as_scalarconst
DEFINITION
| const StructuredScalar * as_scalar | ( | ) const; |
| RETURNS | DESCRIPTION |
|---|---|
const StructuredScalar * |
method as_singular_scalarconst
DEFINITION
| const StructuredScalar * as_singular_scalar | ( | ) const; |
| RETURNS | DESCRIPTION |
|---|---|
const StructuredScalar * |
method initializestatic protected
DEFINITION
| static void initialize | ( | ); |
method isconst
DEFINITION
template <typename T>
| bool is | ( | ) const; |
| RETURNS | DESCRIPTION |
|---|---|
bool |
method is_arrayconst
DEFINITION
| bool is_array | ( | ) const; |
| RETURNS | DESCRIPTION |
|---|---|
bool |
method is_bodyconst
DEFINITION
| bool is_body | ( | ) const; |
| RETURNS | DESCRIPTION |
|---|---|
bool |
method is_dictionaryconst
DEFINITION
| bool is_dictionary | ( | ) const; |
| RETURNS | DESCRIPTION |
|---|---|
bool |
method is_scalarconst
DEFINITION
| bool is_scalar | ( | ) const; |
| RETURNS | DESCRIPTION |
|---|---|
bool |
method is_singular_scalarconst
DEFINITION
| bool is_singular_scalar | ( | ) const; |
| RETURNS | DESCRIPTION |
|---|---|
bool |
method parsestatic
DEFINITION
| static std::shared_ptr< StructuredValue > parse | ( | Tokenizer & tokenizer | ); |
| PARAMETER | DESCRIPTION |
|---|---|
tokenizer |
| RETURNS | DESCRIPTION |
|---|---|
std::shared_ptr< StructuredValue > |
method setupstatic
DEFINITION
| static void setup | ( | FileTokenizer & tokenizer | ); |
| PARAMETER | DESCRIPTION |
|---|---|
tokenizer |
method typeconst virtual
DEFINITION
| virtual Type type | ( | ) const | = 0; |
| RETURNS | DESCRIPTION |
|---|---|
Type |
member initializedstatic protected
DEFINITION
static bool initialized;
member location
DEFINITION
Location location;
member start_groupstatic protected
DEFINITION
static TokenGroup start_group;