Orcus
Loading...
Searching...
No Matches
orcus::json::structure_tree Class Reference

Classes

struct  node_properties
 
class  walker
 

Public Types

enum class  node_type : short {
  unknown = 0 , array = 1 , object = 2 , object_key = 3 ,
  value = 4
}
 
using range_handler_type = std::function<void(table_range_t&&)>
 

Public Member Functions

 structure_tree (const structure_tree &)=delete
 
structure_treeoperator= (const structure_tree &)=delete
 
void parse (std::string_view stream)
 
void normalize_tree ()
 
void dump_compact (std::ostream &os) const
 
walker get_walker () const
 
void process_ranges (range_handler_type rh) const
 

Member Function Documentation

◆ normalize_tree()

void orcus::json::structure_tree::normalize_tree ( )

For now, normalizing a tree just means sorting child nodes. We may add other normalization stuff later.