libyang  1.0.253
YANG data modeling language library
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups
Set Class Reference

class for wrapping ly_set. More...

#include <Libyang.hpp>

Public Member Functions

 Set (struct ly_set *set, S_Deleter)
 
 Set ()
 
 ~Set ()
 
unsigned int size ()
 
unsigned int number ()
 
std::vector< S_Data_Node > data ()
 
std::vector< S_Schema_Node > schema ()
 
S_Set dup ()
 
int add (S_Data_Node node, int options=0)
 
int add (S_Schema_Node node, int options=0)
 
int contains (S_Data_Node node)
 
int contains (S_Schema_Node node)
 
int clean ()
 
int rm (S_Data_Node node)
 
int rm (S_Schema_Node node)
 
int rm_index (unsigned int index)
 

Detailed Description

class for wrapping ly_set.

Definition at line 186 of file Libyang.hpp.

Constructor & Destructor Documentation

Set ( struct ly_set *  set,
S_Deleter  deleter 
)

wrapper for ly_set_new

Definition at line 363 of file Libyang.cpp.

Set ( )

Definition at line 354 of file Libyang.cpp.

~Set ( )

Definition at line 367 of file Libyang.cpp.

Member Function Documentation

unsigned int size ( )
inline

get size variable from ly_set

Definition at line 194 of file Libyang.hpp.

unsigned int number ( )
inline

get number variable from ly_set

Definition at line 196 of file Libyang.hpp.

std::vector< S_Data_Node > data ( )

get d variable from ly_set_set

Definition at line 368 of file Libyang.cpp.

std::vector< S_Schema_Node > schema ( )

get s variable from ly_set_set

Definition at line 378 of file Libyang.cpp.

S_Set dup ( )

wrapper for ly_set_dup

Definition at line 388 of file Libyang.cpp.

int add ( S_Data_Node  node,
int  options = 0 
)

wrapper for ly_set_add

Definition at line 397 of file Libyang.cpp.

int add ( S_Schema_Node  node,
int  options = 0 
)

wrapper for ly_set_add

Definition at line 403 of file Libyang.cpp.

int contains ( S_Data_Node  node)

wrapper for ly_set_contains

Definition at line 409 of file Libyang.cpp.

int contains ( S_Schema_Node  node)

wrapper for ly_set_contains

Definition at line 415 of file Libyang.cpp.

int clean ( )

wrapper for ly_set_clean

Definition at line 421 of file Libyang.cpp.

int rm ( S_Data_Node  node)

wrapper for ly_set_rm

Definition at line 424 of file Libyang.cpp.

int rm ( S_Schema_Node  node)

wrapper for ly_set_rm

Definition at line 430 of file Libyang.cpp.

int rm_index ( unsigned int  index)

wrapper for ly_set_rm_index

Definition at line 436 of file Libyang.cpp.


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