Skip to content

Class JSON_PATH

ClassList > JSON_PATH

  • #include <db_json_path.hpp>

Public Types

Type Name
enum MATCH_RESULT

Public Functions

Type Name
bool contains_wildcard () const
std::string dump_json_path () const
bool erase (JSON_DOC & jd) const
std::vector< const JSON_VALUE * > extract (const JSON_DOC & jd) const
JSON_VALUE * get (JSON_DOC & jd) const
const JSON_VALUE * get (const JSON_DOC & jd) const
const PATH_TOKEN * get_last_token () const
JSON_PATH get_parent () const
size_t get_token_count () const
bool is_last_array_index_less_than (size_t size) const
bool is_last_token_array_index_zero () const
bool is_root_path () const
bool parent_exists (JSON_DOC & jd) const
int parse (const char * path)
bool points_to_array_cell () const
void pop ()
void push_array_index (unsigned long idx)
void push_array_index_wildcard ()
void push_double_wildcard ()
void push_object_key (std::string && object_key)
void push_object_key_wildcard ()
void set (JSON_DOC & jd, const JSON_VALUE & jv) const
void set (JSON_VALUE & jd, const JSON_VALUE & jv, JSON_PRIVATE_MEMPOOL & allocator) const

Public Static Functions

Type Name
MATCH_RESULT match_pattern (const JSON_PATH & pattern, const JSON_PATH & path)

Public Types Documentation

enum MATCH_RESULT

enum JSON_PATH::MATCH_RESULT {
    NO_MATCH,
    PREFIX_MATCH,
    FULL_MATCH
};

Public Functions Documentation

function contains_wildcard

bool JSON_PATH::contains_wildcard () const

function dump_json_path

std::string JSON_PATH::dump_json_path () const

function erase

bool JSON_PATH::erase (
    JSON_DOC & jd
) const

function extract

std::vector< const  JSON_VALUE * > JSON_PATH::extract (
    const  JSON_DOC & jd
) const

function get [1/2]

JSON_VALUE * JSON_PATH::get (
    JSON_DOC & jd
) const

function get [2/2]

const  JSON_VALUE * JSON_PATH::get (
    const  JSON_DOC & jd
) const

function get_last_token

const  PATH_TOKEN * JSON_PATH::get_last_token () const

function get_parent

JSON_PATH JSON_PATH::get_parent () const

function get_token_count

size_t JSON_PATH::get_token_count () const

function is_last_array_index_less_than

bool JSON_PATH::is_last_array_index_less_than (
    size_t size
) const

function is_last_token_array_index_zero

bool JSON_PATH::is_last_token_array_index_zero () const

function is_root_path

bool JSON_PATH::is_root_path () const

function parent_exists

bool JSON_PATH::parent_exists (
    JSON_DOC & jd
) const

function parse

int JSON_PATH::parse (
    const  char * path
) 

function points_to_array_cell

bool JSON_PATH::points_to_array_cell () const

function pop

void JSON_PATH::pop () 

function push_array_index

void JSON_PATH::push_array_index (
    unsigned  long idx
) 

function push_array_index_wildcard

void JSON_PATH::push_array_index_wildcard () 

function push_double_wildcard

void JSON_PATH::push_double_wildcard () 

function push_object_key

void JSON_PATH::push_object_key (
    std::string && object_key
) 

function push_object_key_wildcard

void JSON_PATH::push_object_key_wildcard () 

function set [1/2]

void JSON_PATH::set (
    JSON_DOC & jd,
    const  JSON_VALUE & jv
) const

function set [2/2]

void JSON_PATH::set (
    JSON_VALUE & jd,
    const  JSON_VALUE & jv,
    JSON_PRIVATE_MEMPOOL & allocator
) const

Public Static Functions Documentation

function match_pattern [1/2]

static MATCH_RESULT JSON_PATH::match_pattern (
    const  JSON_PATH & pattern,
    const  JSON_PATH & path
) 


The documentation for this class was generated from the following file cubrid/src/compat/db_json_path.hpp