Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
skjson::ArrayValue Class Referencefinal

#include <SkJSON.h>

Inheritance diagram for skjson::ArrayValue:
skjson::VectorValue< Value, Value::Type::kArray > skjson::Value

Public Member Functions

 ArrayValue (const Value *src, size_t size, SkArenaAlloc &alloc)
 
- Public Member Functions inherited from skjson::VectorValue< Value, Value::Type::kArray >
size_t size () const
 
const Valuebegin () const
 
const Valueend () const
 
const Valueoperator[] (size_t i) const
 
- Public Member Functions inherited from skjson::Value
Type getType () const
 
template<typename T >
bool is () const
 
template<typename T >
const Tas () const
 
template<typename T >
 operator const T * () const
 
SkString toString () const
 
const Valueoperator[] (const char *key) const
 

Additional Inherited Members

- Public Types inherited from skjson::VectorValue< Value, Value::Type::kArray >
using ValueT = Value
 
- Public Types inherited from skjson::Value
enum class  Type {
  kNull , kBool , kNumber , kString ,
  kArray , kObject
}
 
- Static Public Attributes inherited from skjson::VectorValue< Value, Value::Type::kArray >
static constexpr Type kType
 
- Protected Types inherited from skjson::Value
enum class  Tag : uint8_t {
  kShortString = 0b00000000 , kNull = 0b00000001 , kBool = 0b00000010 , kInt = 0b00000011 ,
  kFloat = 0b00000100 , kString = 0b00000101 , kArray = 0b00000110 , kObject = 0b00000111
}
 
- Protected Member Functions inherited from skjson::Value
void init_tagged (Tag)
 
void init_tagged_pointer (Tag, void *)
 
Tag getTag () const
 
template<typename T >
const Tcast () const
 
template<typename T >
Tcast ()
 
template<typename T >
const Tptr () const
 
- Static Protected Attributes inherited from skjson::Value
static constexpr uint8_t kTagMask = 0b00000111
 

Detailed Description

Definition at line 287 of file SkJSON.h.

Constructor & Destructor Documentation

◆ ArrayValue()

skjson::ArrayValue::ArrayValue ( const Value src,
size_t  size,
SkArenaAlloc alloc 
)

Definition at line 108 of file SkJSON.cpp.

108 {
109 this->init_tagged_pointer(Tag::kArray, MakeVector<Value>(size, src, alloc));
110 SkASSERT(this->getTag() == Tag::kArray);
111}
#define SkASSERT(cond)
Definition: SkAssert.h:116
Tag getTag() const
Definition: SkJSON.h:148
void init_tagged_pointer(Tag, void *)
Definition: SkJSON.cpp:45

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