Skip to content

Struct PATH_TOKEN

ClassList > PATH_TOKEN

  • #include <db_json_path.hpp>

Public Types

Type Name
enum token_type

Public Attributes

Type Name
unsigned long m_array_idx
std::string m_object_key
token_type m_type

Public Functions

Type Name
PATH_TOKEN ()
PATH_TOKEN (token_type type, unsigned long array_idx)
PATH_TOKEN (token_type type, std::string && s)
unsigned long get_array_index () const
const std::string & get_object_key () const
bool is_wildcard () const

Public Static Functions

Type Name
bool match_pattern (const PATH_TOKEN & matcher, const PATH_TOKEN & matchee)

Public Types Documentation

enum token_type

enum PATH_TOKEN::token_type {
    object_key_wildcard,
    array_index_wildcard,
    double_wildcard,
    object_key,
    array_index,
    array_end_index
};

Public Attributes Documentation

variable m_array_idx

unsigned long PATH_TOKEN::m_array_idx;

variable m_object_key

std::string PATH_TOKEN::m_object_key;

variable m_type

token_type PATH_TOKEN::m_type;

Public Functions Documentation

function PATH_TOKEN [1/3]

PATH_TOKEN::PATH_TOKEN () 

function PATH_TOKEN [2/3]

PATH_TOKEN::PATH_TOKEN (
    token_type type,
    unsigned  long array_idx
) 

function PATH_TOKEN [3/3]

PATH_TOKEN::PATH_TOKEN (
    token_type type,
    std::string && s
) 

function get_array_index

unsigned  long PATH_TOKEN::get_array_index () const

function get_object_key

const std::string & PATH_TOKEN::get_object_key () const

function is_wildcard

bool PATH_TOKEN::is_wildcard () const

Public Static Functions Documentation

function match_pattern

static bool PATH_TOKEN::match_pattern (
    const  PATH_TOKEN & matcher,
    const  PATH_TOKEN & matchee
) 


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