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
|
strong |
Active payload category; boolean is distinct from integer storage.
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:
- src/opencv_json.hpp