libyang  0.16.105
YANG data modeling language library
Schema_Node Class Reference

#include <Tree_Schema.hpp>

Inheritance diagram for Schema_Node:

Public Member Functions

 Schema_Node (lys_node *node, S_Deleter deleter)
 
virtual ~Schema_Node ()
 
const char * name ()
 
const char * dsc ()
 
const char * ref ()
 
uint16_t flags ()
 
uint8_t ext_size ()
 
uint8_t iffeature_size ()
 
std::vector< S_Ext_Instance > ext ()
 
std::vector< S_Iffeature > iffeature ()
 
S_Module module ()
 
LYS_NODE nodetype ()
 
virtual S_Schema_Node parent ()
 
virtual S_Schema_Node child ()
 
virtual S_Schema_Node next ()
 
virtual S_Schema_Node prev ()
 
std::string path (int options=0)
 
int validate_value (const char *value)
 
std::vector< S_Schema_Node > child_instantiables (int options)
 
S_Set find_path (const char *path)
 
S_Set xpath_atomize (enum lyxp_node_type ctx_node_type, const char *expr, int options)
 
S_Set xpath_atomize (int options)
 
std::vector< S_Schema_Node > tree_for ()
 
std::vector< S_Schema_Node > tree_dfs ()
 
struct lys_nodeswig_node ()
 
S_Deleter swig_deleter ()
 

Data Fields

friend Set
 
friend Data_Node
 
friend Context
 
friend Schema_Node_Container
 
friend Schema_Node_Choice
 
friend Schema_Node_Leaf
 
friend Schema_Node_Leaflist
 
friend Schema_Node_List
 
friend Schema_Node_Anydata
 
friend Schema_Node_Uses
 
friend Schema_Node_Grp
 
friend Schema_Node_Case
 
friend Schema_Node_Inout
 
friend Schema_Node_Notif
 
friend Schema_Node_Action
 
friend Schema_Node_Augment
 
friend Schema_Node_Rpc_Action
 

Detailed Description

Definition at line 517 of file Tree_Schema.hpp.

Constructor & Destructor Documentation

◆ Schema_Node()

Schema_Node ( lys_node node,
S_Deleter  deleter 
)

wrapper for struct lys_node, for internal use only

Definition at line 233 of file Tree_Schema.cpp.

◆ ~Schema_Node()

~Schema_Node ( )
virtual

Definition at line 237 of file Tree_Schema.cpp.

Member Function Documentation

◆ name()

const char* name ( )
inline

get name variable from lys_node

Definition at line 524 of file Tree_Schema.hpp.

◆ dsc()

const char* dsc ( )
inline

get dsc variable from lys_node

Definition at line 526 of file Tree_Schema.hpp.

◆ ref()

const char* ref ( )
inline

get ref variable from lys_node

Definition at line 528 of file Tree_Schema.hpp.

◆ flags()

uint16_t flags ( )
inline

get flags variable from lys_node

Definition at line 530 of file Tree_Schema.hpp.

◆ ext_size()

uint8_t ext_size ( )
inline

get ext_size variable from lys_node

Definition at line 532 of file Tree_Schema.hpp.

◆ iffeature_size()

uint8_t iffeature_size ( )
inline

get iffeature_size variable from lys_node

Definition at line 534 of file Tree_Schema.hpp.

◆ ext()

std::vector< S_Ext_Instance > ext ( )

get ext variable from lys_node

Definition at line 238 of file Tree_Schema.cpp.

◆ iffeature()

std::vector<S_Iffeature> iffeature ( )
inline

get iffeature variable from lys_node

Definition at line 538 of file Tree_Schema.hpp.

◆ module()

S_Module module ( )

get module variable from lys_node

Definition at line 239 of file Tree_Schema.cpp.

◆ nodetype()

LYS_NODE nodetype ( )
inline

get nodetype variable from lys_node

Definition at line 542 of file Tree_Schema.hpp.

◆ parent()

S_Schema_Node parent ( )
virtual

get parent variable from lys_node

Definition at line 240 of file Tree_Schema.cpp.

◆ child()

S_Schema_Node child ( )
virtual

get child variable from lys_node

Reimplemented in Schema_Node_Leaflist, and Schema_Node_Leaf.

Definition at line 241 of file Tree_Schema.cpp.

◆ next()

S_Schema_Node next ( )
virtual

get next variable from lys_node

Definition at line 242 of file Tree_Schema.cpp.

◆ prev()

S_Schema_Node prev ( )
virtual

get prev variable from lys_node

Definition at line 243 of file Tree_Schema.cpp.

◆ path()

std::string path ( int  options = 0)

wrapper for lys_path

Definition at line 244 of file Tree_Schema.cpp.

◆ validate_value()

int validate_value ( const char *  value)
inline

wrapper for lyd_validate_value

Definition at line 555 of file Tree_Schema.hpp.

◆ child_instantiables()

std::vector< S_Schema_Node > child_instantiables ( int  options)

wrapper for lys_getnext

Definition at line 256 of file Tree_Schema.cpp.

◆ find_path()

S_Set find_path ( const char *  path)

wrapper for lys_find_path

Definition at line 266 of file Tree_Schema.cpp.

◆ xpath_atomize() [1/2]

S_Set xpath_atomize ( enum lyxp_node_type  ctx_node_type,
const char *  expr,
int  options 
)

wrapper for lys_xpath_atomize

Definition at line 277 of file Tree_Schema.cpp.

◆ xpath_atomize() [2/2]

S_Set xpath_atomize ( int  options)

wrapper for lys_xpath_atomize

Definition at line 286 of file Tree_Schema.cpp.

◆ tree_for()

std::vector< S_Schema_Node > tree_for ( )

wrapper for macro LY_TREE_FOR

Definition at line 295 of file Tree_Schema.cpp.

◆ tree_dfs()

std::vector< S_Schema_Node > tree_dfs ( )

wrapper for macro LY_TREE_DFS_BEGIN and LY_TREE_DFS_END

Definition at line 305 of file Tree_Schema.cpp.

◆ swig_node()

struct lys_node* swig_node ( )
inline

Definition at line 573 of file Tree_Schema.hpp.

◆ swig_deleter()

S_Deleter swig_deleter ( )
inline

Definition at line 574 of file Tree_Schema.hpp.

Field Documentation

◆ Set

friend Set

Definition at line 574 of file Tree_Schema.hpp.

◆ Data_Node

friend Data_Node

Definition at line 577 of file Tree_Schema.hpp.

◆ Context

friend Context

Definition at line 578 of file Tree_Schema.hpp.

◆ Schema_Node_Container

Definition at line 579 of file Tree_Schema.hpp.

◆ Schema_Node_Choice

Definition at line 580 of file Tree_Schema.hpp.

◆ Schema_Node_Leaf

Definition at line 581 of file Tree_Schema.hpp.

◆ Schema_Node_Leaflist

Definition at line 582 of file Tree_Schema.hpp.

◆ Schema_Node_List

Definition at line 583 of file Tree_Schema.hpp.

◆ Schema_Node_Anydata

Definition at line 584 of file Tree_Schema.hpp.

◆ Schema_Node_Uses

Definition at line 585 of file Tree_Schema.hpp.

◆ Schema_Node_Grp

Definition at line 586 of file Tree_Schema.hpp.

◆ Schema_Node_Case

Definition at line 587 of file Tree_Schema.hpp.

◆ Schema_Node_Inout

Definition at line 588 of file Tree_Schema.hpp.

◆ Schema_Node_Notif

Definition at line 589 of file Tree_Schema.hpp.

◆ Schema_Node_Action

friend Schema_Node_Action

Definition at line 590 of file Tree_Schema.hpp.

◆ Schema_Node_Augment

Definition at line 591 of file Tree_Schema.hpp.

◆ Schema_Node_Rpc_Action

Definition at line 592 of file Tree_Schema.hpp.


The documentation for this class was generated from the following files: