Illustrated C/C++ source sheets, symbol index, API relationship graph, compiler console and debug trace

LIVE AI / FLEXIBLE SENSING / FLIGHT CONTEXT

Sensoraia API

Live AI and sensing, connected to the flight.
See, listen, inspect and return supported results while airborne.

Loading...
Searching...
No Matches
usher_cv_json::Node Struct Reference

Heap-backed tagged storage independent of a FileStorage lifetime. More...

#include <opencv_json.hpp>

Public Types

enum class  Kind {
  Null , Bool , Signed , Unsigned ,
  Real , String , Array , Object
}
 Active payload category; boolean is distinct from integer storage. More...

Data Fields

Kind kind = Kind::Null
bool boolean = false
int64_t signed_number = 0
uint64_t unsigned_number = 0
double real_number = 0
std::string string
std::vector< std::shared_ptr< Node > > array
std::map< std::string, std::shared_ptr< Node > > object

Detailed Description

Heap-backed tagged storage independent of a FileStorage lifetime.

Separate signed, unsigned and real fields avoid forcing 64-bit integers through a double. Only the field selected by kind is semantically active; mutators need not clear storage belonging to previously selected kinds.

Definition at line 78 of file opencv_json.hpp.

Member Enumeration Documentation

◆ Kind

enum class usher_cv_json::Node::Kind
strong

Active payload category; boolean is distinct from integer storage.

Enumerator
Null 

JSON null with no active scalar payload.

Bool 

Native boolean.

Signed 

Signed 64-bit integer.

Unsigned 

Unsigned 64-bit integer.

Real 

Double-precision real value.

String 

Owned byte string.

Array 

Ordered child-node sequence.

Object 

Unique members in std::map key order.

Definition at line 80 of file opencv_json.hpp.

Field Documentation

◆ array

std::vector<std::shared_ptr<Node> > usher_cv_json::Node::array

Array children in insertion order.

Definition at line 96 of file opencv_json.hpp.

◆ boolean

bool usher_cv_json::Node::boolean = false

Bool payload.

Definition at line 91 of file opencv_json.hpp.

◆ kind

Kind usher_cv_json::Node::kind = Kind::Null

Tag governing interpretation and serialization.

Definition at line 90 of file opencv_json.hpp.

◆ object

std::map<std::string, std::shared_ptr<Node> > usher_cv_json::Node::object

Unique keys with shared child ownership.

Definition at line 97 of file opencv_json.hpp.

◆ real_number

double usher_cv_json::Node::real_number = 0

Real payload; construction alone does not reject nonfinite values.

Definition at line 94 of file opencv_json.hpp.

◆ signed_number

int64_t usher_cv_json::Node::signed_number = 0

Signed payload.

Definition at line 92 of file opencv_json.hpp.

◆ string

std::string usher_cv_json::Node::string

String payload with std::string byte-length semantics.

Definition at line 95 of file opencv_json.hpp.

◆ unsigned_number

uint64_t usher_cv_json::Node::unsigned_number = 0

Unsigned payload.

Definition at line 93 of file opencv_json.hpp.


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