Blender V5.0
blender::io::serialize::ArrayValue Class Reference

#include <BLI_serialize.hh>

Inherits blender::io::serialize::Value.

Public Member Functions

 ArrayValue ()
void append (std::shared_ptr< Value > value)
void append_bool (bool value)
void append_int (int value)
void append_double (double value)
void append_str (std::string value)
void append_null ()
std::shared_ptr< DictionaryValueappend_dict ()
std::shared_ptr< ArrayValueappend_array ()
Span< std::shared_ptr< Value > > elements () const
Public Member Functions inherited from blender::io::serialize::Value
 Value ()=delete
virtual ~Value ()=default
eValueType type () const
const StringValueas_string_value () const
const IntValueas_int_value () const
const DoubleValueas_double_value () const
const BooleanValueas_boolean_value () const
const EnumValueas_enum_value () const
const ArrayValueas_array_value () const
const DictionaryValueas_dictionary_value () const

Additional Inherited Members

Protected Member Functions inherited from blender::io::serialize::Value
 Value (eValueType type)

Detailed Description

Definition at line 209 of file BLI_serialize.hh.

Constructor & Destructor Documentation

◆ ArrayValue()

blender::io::serialize::ArrayValue::ArrayValue ( )
inline

Definition at line 213 of file BLI_serialize.hh.

References blender::io::serialize::Value::Value().

Member Function Documentation

◆ append()

void blender::io::serialize::ArrayValue::append ( std::shared_ptr< Value > value)

◆ append_array()

std::shared_ptr< ArrayValue > blender::io::serialize::ArrayValue::append_array ( )

Definition at line 249 of file serialize.cc.

References append().

◆ append_bool()

void blender::io::serialize::ArrayValue::append_bool ( bool value)

Definition at line 217 of file serialize.cc.

References append().

Referenced by blender::io::serialize::json::testing::TEST().

◆ append_dict()

std::shared_ptr< DictionaryValue > blender::io::serialize::ArrayValue::append_dict ( )

Definition at line 242 of file serialize.cc.

References append().

Referenced by blender::bke::bake::serialize_bake_item().

◆ append_double()

void blender::io::serialize::ArrayValue::append_double ( double value)

Definition at line 227 of file serialize.cc.

References append().

◆ append_int()

void blender::io::serialize::ArrayValue::append_int ( int value)

Definition at line 222 of file serialize.cc.

References append().

Referenced by blender::io::serialize::json::testing::TEST().

◆ append_null()

void blender::io::serialize::ArrayValue::append_null ( )

Definition at line 237 of file serialize.cc.

References append().

Referenced by blender::io::serialize::json::testing::TEST().

◆ append_str()

void blender::io::serialize::ArrayValue::append_str ( std::string value)

◆ elements()


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