blob_id
stringlengths 40
40
| directory_id
stringlengths 40
40
| path
stringlengths 2
247
| content_id
stringlengths 40
40
| detected_licenses
listlengths 0
57
| license_type
stringclasses 2
values | repo_name
stringlengths 4
111
| snapshot_id
stringlengths 40
40
| revision_id
stringlengths 40
40
| branch_name
stringlengths 4
58
| visit_date
timestamp[ns]date 2015-07-25 18:16:41
2023-09-06 10:45:08
| revision_date
timestamp[ns]date 1970-01-14 14:03:36
2023-09-06 06:22:19
| committer_date
timestamp[ns]date 1970-01-14 14:03:36
2023-09-06 06:22:19
| github_id
int64 3.89k
689M
⌀ | star_events_count
int64 0
209k
| fork_events_count
int64 0
110k
| gha_license_id
stringclasses 25
values | gha_event_created_at
timestamp[ns]date 2012-06-07 00:51:45
2023-09-14 21:58:52
⌀ | gha_created_at
timestamp[ns]date 2008-03-27 23:40:48
2023-08-24 19:49:39
⌀ | gha_language
stringclasses 159
values | src_encoding
stringclasses 34
values | language
stringclasses 1
value | is_vendor
bool 1
class | is_generated
bool 2
classes | length_bytes
int64 7
10.5M
| extension
stringclasses 111
values | filename
stringlengths 1
195
| text
stringlengths 7
10.5M
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
9feaeb9353cf83d90ef3b313e83c2d9a9026ddd1
|
702a3e2601143a599579b523fd92754998a910ac
|
/auto_bindings/src/mruby_Pi_macro_constants.cpp
|
ccf105a4f85fdf2862e8fb07065301c46791c19f
|
[] |
no_license
|
jbreeden/mruby-wiring-pi
|
4bc9624f2501937c87be83141834819565005a1f
|
dc8f0a874ba93dcdd94258e79b809a7df01ffe54
|
refs/heads/master
| 2021-01-10T10:36:06.575404
| 2016-02-01T16:14:43
| 2016-02-01T16:14:43
| 43,645,865
| 4
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 7,908
|
cpp
|
mruby_Pi_macro_constants.cpp
|
#include "mruby_Pi.h"
void
mruby_Pi_define_macro_constants(mrb_state* mrb) {
/* WARNING
* Code generator does it's best to determine the type of the macro
* expansions, but mistakes will be made (as macros are just text,
* and may contain other macros). So, you'll need to verify the
* conversions used here are of the correct type.
*/
#ifdef __WIRING_PI_H__
/* Ignoring macro with no expansion: __WIRING_PI_H__ */
#endif
#ifdef GPIO_CLOCK
/* GPIO_CLOCK assumed to be an integer value */
mrb_define_const(mrb, Pi_module(mrb), "GPIO_CLOCK", mrb_fixnum_value(GPIO_CLOCK));
#endif
#ifdef HIGH
/* HIGH assumed to be an integer value */
mrb_define_const(mrb, Pi_module(mrb), "HIGH", mrb_fixnum_value(HIGH));
#endif
#ifdef INPUT
/* INPUT assumed to be an integer value */
mrb_define_const(mrb, Pi_module(mrb), "INPUT", mrb_fixnum_value(INPUT));
#endif
#ifdef INT_EDGE_BOTH
/* INT_EDGE_BOTH assumed to be an integer value */
mrb_define_const(mrb, Pi_module(mrb), "INT_EDGE_BOTH", mrb_fixnum_value(INT_EDGE_BOTH));
#endif
#ifdef INT_EDGE_FALLING
/* INT_EDGE_FALLING assumed to be an integer value */
mrb_define_const(mrb, Pi_module(mrb), "INT_EDGE_FALLING", mrb_fixnum_value(INT_EDGE_FALLING));
#endif
#ifdef INT_EDGE_RISING
/* INT_EDGE_RISING assumed to be an integer value */
mrb_define_const(mrb, Pi_module(mrb), "INT_EDGE_RISING", mrb_fixnum_value(INT_EDGE_RISING));
#endif
#ifdef INT_EDGE_SETUP
/* INT_EDGE_SETUP assumed to be an integer value */
mrb_define_const(mrb, Pi_module(mrb), "INT_EDGE_SETUP", mrb_fixnum_value(INT_EDGE_SETUP));
#endif
#ifdef LOW
/* LOW assumed to be an integer value */
mrb_define_const(mrb, Pi_module(mrb), "LOW", mrb_fixnum_value(LOW));
#endif
#ifdef NUM_PINS
/* NUM_PINS assumed to be an integer value */
mrb_define_const(mrb, Pi_module(mrb), "NUM_PINS", mrb_fixnum_value(NUM_PINS));
#endif
#ifdef OUTPUT
/* OUTPUT assumed to be an integer value */
mrb_define_const(mrb, Pi_module(mrb), "OUTPUT", mrb_fixnum_value(OUTPUT));
#endif
#ifdef PI_MAKER_EGOMAN
/* PI_MAKER_EGOMAN assumed to be an integer value */
mrb_define_const(mrb, Pi_module(mrb), "PI_MAKER_EGOMAN", mrb_fixnum_value(PI_MAKER_EGOMAN));
#endif
#ifdef PI_MAKER_MBEST
/* PI_MAKER_MBEST assumed to be an integer value */
mrb_define_const(mrb, Pi_module(mrb), "PI_MAKER_MBEST", mrb_fixnum_value(PI_MAKER_MBEST));
#endif
#ifdef PI_MAKER_QISDA
/* PI_MAKER_QISDA assumed to be an integer value */
mrb_define_const(mrb, Pi_module(mrb), "PI_MAKER_QISDA", mrb_fixnum_value(PI_MAKER_QISDA));
#endif
#ifdef PI_MAKER_SONY
/* PI_MAKER_SONY assumed to be an integer value */
mrb_define_const(mrb, Pi_module(mrb), "PI_MAKER_SONY", mrb_fixnum_value(PI_MAKER_SONY));
#endif
#ifdef PI_MAKER_UNKNOWN
/* PI_MAKER_UNKNOWN assumed to be an integer value */
mrb_define_const(mrb, Pi_module(mrb), "PI_MAKER_UNKNOWN", mrb_fixnum_value(PI_MAKER_UNKNOWN));
#endif
#ifdef PI_MODEL_2
/* PI_MODEL_2 assumed to be an integer value */
mrb_define_const(mrb, Pi_module(mrb), "PI_MODEL_2", mrb_fixnum_value(PI_MODEL_2));
#endif
#ifdef PI_MODEL_A
/* PI_MODEL_A assumed to be an integer value */
mrb_define_const(mrb, Pi_module(mrb), "PI_MODEL_A", mrb_fixnum_value(PI_MODEL_A));
#endif
#ifdef PI_MODEL_AP
/* PI_MODEL_AP assumed to be an integer value */
mrb_define_const(mrb, Pi_module(mrb), "PI_MODEL_AP", mrb_fixnum_value(PI_MODEL_AP));
#endif
#ifdef PI_MODEL_B
/* PI_MODEL_B assumed to be an integer value */
mrb_define_const(mrb, Pi_module(mrb), "PI_MODEL_B", mrb_fixnum_value(PI_MODEL_B));
#endif
#ifdef PI_MODEL_BP
/* PI_MODEL_BP assumed to be an integer value */
mrb_define_const(mrb, Pi_module(mrb), "PI_MODEL_BP", mrb_fixnum_value(PI_MODEL_BP));
#endif
#ifdef PI_MODEL_CM
/* PI_MODEL_CM assumed to be an integer value */
mrb_define_const(mrb, Pi_module(mrb), "PI_MODEL_CM", mrb_fixnum_value(PI_MODEL_CM));
#endif
#ifdef PI_MODEL_UNKNOWN
/* PI_MODEL_UNKNOWN assumed to be an integer value */
mrb_define_const(mrb, Pi_module(mrb), "PI_MODEL_UNKNOWN", mrb_fixnum_value(PI_MODEL_UNKNOWN));
#endif
#ifdef PI_THREAD
/* Ignoring function-like macro: PI_THREAD(X) */
#endif
#ifdef PI_VERSION_1
/* PI_VERSION_1 assumed to be an integer value */
mrb_define_const(mrb, Pi_module(mrb), "PI_VERSION_1", mrb_fixnum_value(PI_VERSION_1));
#endif
#ifdef PI_VERSION_1_1
/* PI_VERSION_1_1 assumed to be an integer value */
mrb_define_const(mrb, Pi_module(mrb), "PI_VERSION_1_1", mrb_fixnum_value(PI_VERSION_1_1));
#endif
#ifdef PI_VERSION_1_2
/* PI_VERSION_1_2 assumed to be an integer value */
mrb_define_const(mrb, Pi_module(mrb), "PI_VERSION_1_2", mrb_fixnum_value(PI_VERSION_1_2));
#endif
#ifdef PI_VERSION_2
/* PI_VERSION_2 assumed to be an integer value */
mrb_define_const(mrb, Pi_module(mrb), "PI_VERSION_2", mrb_fixnum_value(PI_VERSION_2));
#endif
#ifdef PI_VERSION_UNKNOWN
/* PI_VERSION_UNKNOWN assumed to be an integer value */
mrb_define_const(mrb, Pi_module(mrb), "PI_VERSION_UNKNOWN", mrb_fixnum_value(PI_VERSION_UNKNOWN));
#endif
#ifdef PUD_DOWN
/* PUD_DOWN assumed to be an integer value */
mrb_define_const(mrb, Pi_module(mrb), "PUD_DOWN", mrb_fixnum_value(PUD_DOWN));
#endif
#ifdef PUD_OFF
/* PUD_OFF assumed to be an integer value */
mrb_define_const(mrb, Pi_module(mrb), "PUD_OFF", mrb_fixnum_value(PUD_OFF));
#endif
#ifdef PUD_UP
/* PUD_UP assumed to be an integer value */
mrb_define_const(mrb, Pi_module(mrb), "PUD_UP", mrb_fixnum_value(PUD_UP));
#endif
#ifdef PWM_MODE_BAL
/* PWM_MODE_BAL assumed to be an integer value */
mrb_define_const(mrb, Pi_module(mrb), "PWM_MODE_BAL", mrb_fixnum_value(PWM_MODE_BAL));
#endif
#ifdef PWM_MODE_MS
/* PWM_MODE_MS assumed to be an integer value */
mrb_define_const(mrb, Pi_module(mrb), "PWM_MODE_MS", mrb_fixnum_value(PWM_MODE_MS));
#endif
#ifdef PWM_OUTPUT
/* PWM_OUTPUT assumed to be an integer value */
mrb_define_const(mrb, Pi_module(mrb), "PWM_OUTPUT", mrb_fixnum_value(PWM_OUTPUT));
#endif
#ifdef PWM_TONE_OUTPUT
/* PWM_TONE_OUTPUT assumed to be an integer value */
mrb_define_const(mrb, Pi_module(mrb), "PWM_TONE_OUTPUT", mrb_fixnum_value(PWM_TONE_OUTPUT));
#endif
#ifdef SOFT_PWM_OUTPUT
/* SOFT_PWM_OUTPUT assumed to be an integer value */
mrb_define_const(mrb, Pi_module(mrb), "SOFT_PWM_OUTPUT", mrb_fixnum_value(SOFT_PWM_OUTPUT));
#endif
#ifdef SOFT_TONE_OUTPUT
/* SOFT_TONE_OUTPUT assumed to be an integer value */
mrb_define_const(mrb, Pi_module(mrb), "SOFT_TONE_OUTPUT", mrb_fixnum_value(SOFT_TONE_OUTPUT));
#endif
#ifdef WPI_ALMOST
/* WPI_ALMOST assumed to be an integer value */
mrb_define_const(mrb, Pi_module(mrb), "WPI_ALMOST", mrb_fixnum_value(WPI_ALMOST));
#endif
#ifdef WPI_FATAL
/* WPI_FATAL assumed to be an integer value */
mrb_define_const(mrb, Pi_module(mrb), "WPI_FATAL", mrb_fixnum_value(WPI_FATAL));
#endif
#ifdef WPI_MODE_GPIO
/* WPI_MODE_GPIO assumed to be an integer value */
mrb_define_const(mrb, Pi_module(mrb), "WPI_MODE_GPIO", mrb_fixnum_value(WPI_MODE_GPIO));
#endif
#ifdef WPI_MODE_GPIO_SYS
/* WPI_MODE_GPIO_SYS assumed to be an integer value */
mrb_define_const(mrb, Pi_module(mrb), "WPI_MODE_GPIO_SYS", mrb_fixnum_value(WPI_MODE_GPIO_SYS));
#endif
#ifdef WPI_MODE_PHYS
/* WPI_MODE_PHYS assumed to be an integer value */
mrb_define_const(mrb, Pi_module(mrb), "WPI_MODE_PHYS", mrb_fixnum_value(WPI_MODE_PHYS));
#endif
#ifdef WPI_MODE_PIFACE
/* WPI_MODE_PIFACE assumed to be an integer value */
mrb_define_const(mrb, Pi_module(mrb), "WPI_MODE_PIFACE", mrb_fixnum_value(WPI_MODE_PIFACE));
#endif
#ifdef WPI_MODE_PINS
/* WPI_MODE_PINS assumed to be an integer value */
mrb_define_const(mrb, Pi_module(mrb), "WPI_MODE_PINS", mrb_fixnum_value(WPI_MODE_PINS));
#endif
#ifdef WPI_MODE_UNINITIALISED
/* WPI_MODE_UNINITIALISED assumed to be an integer value */
mrb_define_const(mrb, Pi_module(mrb), "WPI_MODE_UNINITIALISED", mrb_fixnum_value(WPI_MODE_UNINITIALISED));
#endif
}
|
e60f31f3f6c05d517c50ea46a96fc9c22ef055f9
|
78297bc868d588dd7a16cfea059ef7365ba18622
|
/server/api/include/irods/rsDataGet.hpp
|
431c785e84675def2cd4cee870c8bdb5eb16bfbc
|
[
"BSD-3-Clause"
] |
permissive
|
irods/irods
|
ab72a41fdf05a4a905c3e3a97bb7ba3c2a6ae52d
|
f3ccaa842218e477395ebcf553639134433b63ee
|
refs/heads/main
| 2023-09-01T20:12:33.322002
| 2023-08-23T18:22:59
| 2023-08-31T13:41:31
| 14,724,975
| 381
| 167
|
NOASSERTION
| 2023-09-11T18:18:14
| 2013-11-26T18:10:18
|
C++
|
UTF-8
|
C++
| false
| false
| 437
|
hpp
|
rsDataGet.hpp
|
#ifndef RS_DATA_GET_HPP
#define RS_DATA_GET_HPP
#include "irods/rodsConnect.h"
#include "irods/dataObjInpOut.h"
int rsDataGet( rsComm_t *rsComm, dataOprInp_t *dataGetInp, portalOprOut_t **portalOprOut );
int remoteDataGet( rsComm_t *rsComm, dataOprInp_t *dataGetInp, portalOprOut_t **portalOprOut, rodsServerHost_t *rodsServerHost );
int _rsDataGet( rsComm_t *rsComm, dataOprInp_t *dataGetInp, portalOprOut_t **portalOprOut );
#endif
|
2becc2db4b42460e1cd5cbbf3b3baa576c7b8921
|
79bb329a8bc179bebdbc2583e364f5ffded8def0
|
/win32Project/GImage.h
|
2468e84e06da6d786434c096d1de44f689e3fd5b
|
[] |
no_license
|
fsaas/MP3
|
733c56d7894b33fc664a1c90d283fa65a940bde9
|
b42fb4788d086b8da6e3a31c6ea3873215a02fd0
|
refs/heads/master
| 2021-01-21T04:40:32.381601
| 2016-06-20T23:46:05
| 2016-06-20T23:46:05
| 53,114,217
| 0
| 5
| null | 2016-06-20T20:41:40
| 2016-03-04T06:52:24
|
C++
|
UHC
|
C++
| false
| false
| 471
|
h
|
GImage.h
|
#pragma once
#include <d3d9.h>
#include <d3dx9.h>
class GRenderer;
class GImage
{
private:
IDirect3DTexture9 * texture; //텍스쳐를 사용하기 위한 객체
int width, height; //이미지의 가로, 세로 길이
public:
GImage(GRenderer * renderer, const char * filename);
~GImage();
public:
IDirect3DTexture9 * getTexture(){
return texture;
}
int getWidth() { return width; }
int getHeight() { return height; }
};
|
018e0328c83f66bdaad760978b0a66bdb5dd914e
|
616e0a893444f5ee581512058e8546c8c208169f
|
/PlanetRenderer/Camera.h
|
745b98e3df683e9cb8b6e1b62e0460678fab1014
|
[] |
no_license
|
GZibrat/PRenderer
|
0f6d581377d023434586da1416f8b4299a53e770
|
cb72d528868b8e7b1630e1b44608cb9c7367e918
|
refs/heads/master
| 2020-12-03T03:46:33.485271
| 2015-05-11T23:32:31
| 2015-05-11T23:32:31
| 35,455,521
| 0
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 280
|
h
|
Camera.h
|
#pragma once
#include "PlanetRenderer.h"
#include "SceneNode.h"
class Camera : public SceneNode
{
public:
Camera(glm::dvec3 &eye, glm::dvec3 &direction, glm::dvec3 &up, SceneNode* par);
glm::dmat4& getCameraMatrix();
void update();
private:
glm::dmat4 inverse;
};
|
6e48f22b2feda36c04b9fb89cb222bb15e38d8c3
|
91f5e2523903603408be6ace2341efc1b9de6ca7
|
/Graphs/Shortest Paths/D'Esopo-Pape.cpp
|
9dce72e9b10e5c05bb797731655ef1f1e097e1ee
|
[] |
no_license
|
fextivity/Algorithm-Library
|
2a0d84a11dd0937ae7d77769205187ff08925929
|
81e8faacdcf10378f242a2a7171603976f766b72
|
refs/heads/master
| 2023-01-28T17:06:46.260151
| 2020-10-31T05:07:52
| 2020-10-31T05:07:52
| null | 0
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 745
|
cpp
|
D'Esopo-Pape.cpp
|
int n;
int dist[N], par[N], mval[N]; // mval: 0 - not calculated, 1 - is calculated, 2 - has calculated
vpii adj[N];
void desopo_pape(int u){
deque <int> qu;
msetinf(dist);
msetn1(par);
qu.push_back(u);
dist[u] = 0;
while (!qu.empty()) {
int t = qu.front();
qu.pop_front();
mval[t] = 2;
Fora(v, adj[t]){
if (dist[v.fi] > dist[t] + v.se){
dist[v.fi] = dist[t] + v.se;
par[v.fi] = t;
if (mval[v.fi] == 0){
qu.push_back(v.fi);
}
else if (mval[v.fi] == 2){
qu.push_front(v.fi);
}
mval[v.fi] = 1;
}
}
}
}
|
6c9d6185610788f5fffd1efb05603a68f0fb6bb1
|
2b80036db6f86012afcc7bc55431355fc3234058
|
/src/cube/dialog/AddLibraryController.cpp
|
d42bf05c3c87c9fc436fb47f0e9f2646d4434991
|
[
"BSD-3-Clause"
] |
permissive
|
leezhongshan/musikcube
|
d1e09cf263854bb16acbde707cb6c18b09a0189f
|
e7ca6a5515a5f5e8e499bbdd158e5cb406fda948
|
refs/heads/master
| 2021-01-15T11:45:29.512171
| 2011-02-25T14:09:21
| 2011-02-25T14:09:21
| null | 0
| 0
| null | null | null | null |
WINDOWS-1252
|
C++
| false
| false
| 4,327
|
cpp
|
AddLibraryController.cpp
|
//////////////////////////////////////////////////////////////////////////////
//
// License Agreement:
//
// The following are Copyright © 2007, mC2 Team
//
// Sources and Binaries of: mC2, win32cpp
//
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
// * Redistributions of source code must retain the above copyright notice,
// this list of conditions and the following disclaimer.
//
// * Redistributions in binary form must reproduce the above copyright
// notice, this list of conditions and the following disclaimer in the
// documentation and/or other materials provided with the distribution.
//
// * Neither the name of the author nor the names of other contributors may
// be used to endorse or promote products derived from this software
// without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
// AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
// ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
// LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
// CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
// SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
// CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
// POSSIBILITY OF SUCH DAMAGE.
//
//////////////////////////////////////////////////////////////////////////////
#include "pch.hpp"
#include <core/LibraryFactory.h>
#include <core/Preferences.h>
#include <core/Crypt.h>
#include <core/Common.h>
#include <cube/dialog/AddLibraryController.hpp>
#include <cube/dialog/AddLibraryView.hpp>
#include <win32cpp/Window.hpp>
#include <win32cpp/Button.hpp>
#include <win32cpp/EditView.hpp>
//////////////////////////////////////////////////////////////////////////////
using namespace musik::cube::dialog;
using namespace win32cpp;
//////////////////////////////////////////////////////////////////////////////
AddLibraryController::AddLibraryController(win32cpp::TopLevelWindow &mainWindow,int type)
:mainWindow(mainWindow)
,view(NULL)
,libraryType(type)
{
this->view = new AddLibraryView(type);
this->mainWindow.AddChild(this->view);
this->view->Handle()
? this->OnViewCreated(this->view)
: this->view->Created.connect(this, &AddLibraryController::OnViewCreated);
}
AddLibraryController::~AddLibraryController(){
}
void AddLibraryController::OnViewCreated(Window* window)
{
this->view->cancelButton->Pressed.connect(this,&AddLibraryController::OnCancel);
this->view->okButton->Pressed.connect(this,&AddLibraryController::OnOK);
}
void AddLibraryController::OnCancel(win32cpp::Button* button){
this->mainWindow.Close();
}
void AddLibraryController::OnOK(win32cpp::Button* button){
if(musik::core::LibraryPtr library=musik::core::LibraryFactory::Instance().CreateLibrary(this->view->name->Caption(),this->libraryType,false)){
if(this->libraryType==musik::core::LibraryFactory::Remote){
musik::core::Preferences prefs("Connection",this->view->name->Caption().c_str() );
prefs.SetString("address",this->view->remoteHost->Caption().c_str());
prefs.SetString("port",this->view->remotePort->Caption().c_str());
prefs.SetString("username",this->view->username->Caption().c_str());
utfstring password(
UTF8_TO_UTF(
musik::core::Crypt::Encrypt(
UTF_TO_UTF8(this->view->password->Caption()),musik::core::Crypt::StaticSalt())));
prefs.SetString("password",password.c_str());
}
library->Startup();
this->mainWindow.Close();
}else{
// TODO: Show some error that it didn't work
this->mainWindow.Close();
}
}
|
8e4a86f98e01ce0e740127ec0f4071f820b15cfb
|
364e81cb0c01136ac179ff42e33b2449c491b7e5
|
/spell/tags/2.0.9/include/SPELL_EXC/SPELLexecutionModel.H
|
a9331ed035e7be8a816e9b6e0a9fa9ca26f8c755
|
[] |
no_license
|
unnch/spell-sat
|
2b06d9ed62b002e02d219bd0784f0a6477e365b4
|
fb11a6800316b93e22ee8c777fe4733032004a4a
|
refs/heads/master
| 2021-01-23T11:49:25.452995
| 2014-10-14T13:04:18
| 2014-10-14T13:04:18
| 42,499,379
| 0
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 6,147
|
h
|
SPELLexecutionModel.H
|
// ################################################################################
// FILE : SPELLexecutionModel.H
// DATE : Mar 17, 2011
// PROJECT : SPELL
// DESCRIPTION: Composite of all models and analyzers associated to a given frame.
// --------------------------------------------------------------------------------
//
// Copyright (C) 2008, 2011 SES ENGINEERING, Luxembourg S.A.R.L.
//
// This file is part of SPELL.
//
// SPELL is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// SPELL is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with SPELL. If not, see <http://www.gnu.org/licenses/>.
//
// ################################################################################
#ifndef __SPELL_EXEC_MODEL_H__
#define __SPELL_EXEC_MODEL_H__
// FILES TO INCLUDE ////////////////////////////////////////////////////////
// System includes ---------------------------------------------------------
// Local includes ----------------------------------------------------------
#include "SPELL_EXC/SPELLgoto.H"
#include "SPELL_EXC/SPELLbytecode.H"
#include "SPELL_EXC/SPELLlnotab.H"
#include "SPELL_EXC/SPELLastAnalyzer.H"
#include "SPELL_EXC/SPELLvariableMonitor.H"
// Project includes --------------------------------------------------------
/** \addtogroup SPELL_EXC */
/*@{*/
// FORWARD REFERENCES //////////////////////////////////////////////////////
// TYPES ///////////////////////////////////////////////////////////////////
// DEFINES /////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
/**
** \brief Execution model for procedures
**
** \par Description and usage:
**
** Used by the execution frame, contains a number of mechanisms and code
** analyzers necessary for the execution control and manipulation.
**
**////////////////////////////////////////////////////////////////////////////
class SPELLexecutionModel : public SPELLgoto,
public SPELLbytecode,
public SPELLlnotab,
public SPELLastAnalyzer,
public SPELLvariableChangeListener
{
public: //--------------------------------------------------------------------
// EXCEPTIONS ////////////////////////////////////////////////////////////
// ENUMS /////////////////////////////////////////////////////////////////
// TYPES /////////////////////////////////////////////////////////////////
// LIFECYCLE /////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////
/** Constructor.
**////////////////////////////////////////////////////////////////////
SPELLexecutionModel( const std::string& filename,
PyFrameObject* frame,
bool monitorVars,
std::set<std::string>& initialVariables);
//////////////////////////////////////////////////////////////////////
/** Destructor.
**////////////////////////////////////////////////////////////////////
virtual ~SPELLexecutionModel();
// STATIC ////////////////////////////////////////////////////////////////
// METHODS ///////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////
/** Get the variables monitor.
*
* \return Reference to the variables monitor.
**////////////////////////////////////////////////////////////////////
SPELLvariableMonitor& getVariableMonitor() { return m_varMonitor; };
//////////////////////////////////////////////////////////////////////
/** \see SPELLvariableChangeListener.
**////////////////////////////////////////////////////////////////////
void variableChanged( const std::vector<SPELLvarInfo>& changed );
//////////////////////////////////////////////////////////////////////
/** Update internal model.
**////////////////////////////////////////////////////////////////////
void update();
//////////////////////////////////////////////////////////////////////
/** Model is activated.
**////////////////////////////////////////////////////////////////////
void inScope();
//////////////////////////////////////////////////////////////////////
/** Get the associated frame
**////////////////////////////////////////////////////////////////////
PyFrameObject* getFrame() { return m_frame; };
protected: //-----------------------------------------------------------------
// EXCEPTIONS ////////////////////////////////////////////////////////////
// ENUMS /////////////////////////////////////////////////////////////////
// TYPES /////////////////////////////////////////////////////////////////
// LIFECYCLE /////////////////////////////////////////////////////////////
// METHODS ///////////////////////////////////////////////////////////////
// DATA MEMBERS //////////////////////////////////////////////////////////
private: //-------------------------------------------------------------------
// EXCEPTIONS ////////////////////////////////////////////////////////////
// ENUMS /////////////////////////////////////////////////////////////////
// TYPES /////////////////////////////////////////////////////////////////
// LIFECYCLE /////////////////////////////////////////////////////////////
// METHODS ///////////////////////////////////////////////////////////////
// DATA MEMBERS //////////////////////////////////////////////////////////
/** Reference to the associated frame */
PyFrameObject* m_frame;
/** Monitor of variables */
SPELLvariableMonitor m_varMonitor;
/** If true, use the variable monitor */
bool m_monitorVars;
};
/*@}*/
#endif
|
859b76831901080aecee5b71e9dd60b29e04de54
|
393fb9d0cf5f6bad3d8e0793522f990286d26389
|
/DirectZobEngine/Wrappers/ManagedObject.h
|
b4332292b24f31c4750c0b5a91a2f4525db49351
|
[
"WTFPL"
] |
permissive
|
zeralph/directZob
|
0d35810894feb76b098e33706da2add7bd215673
|
31322665333982917cc8a1942a65fe381d1e29de
|
refs/heads/master
| 2022-12-23T11:03:15.290532
| 2022-01-26T07:26:58
| 2022-01-26T07:26:58
| 190,796,680
| 2
| 1
|
WTFPL
| 2022-12-08T09:07:18
| 2019-06-07T19:15:47
|
C++
|
UTF-8
|
C++
| false
| false
| 1,144
|
h
|
ManagedObject.h
|
#ifdef _WINDLL
#pragma once
#include <string>
#include <iostream>
#include "../DirectZob.h"
namespace CLI {
template<class T>
public ref class ManagedObject
{
protected:
T* m_Instance = NULL;
bool m_manageDelete = true;
public:
ManagedObject(T* instance, bool manageDelete)
: m_Instance(instance),
m_manageDelete(manageDelete)
{
}
virtual ~ManagedObject()
{
//if (m_manageDelete && m_Instance != nullptr)
//{
// delete m_Instance;
//}
m_Instance = nullptr;
}
!ManagedObject()
{
//if (m_manageDelete && m_Instance != nullptr)
//{
// delete m_Instance;
//}
m_Instance = nullptr;
}
T* GetInstance()
{
if ((T*)IsValid())
{
return (T*)m_Instance;
//return dynamic_cast<T*>(m_Instance);
}
return NULL;
}
static void MarshalString(System::String^ s, std::string& os) {
using namespace System::Runtime::InteropServices;
const char* chars = (const char*)(Marshal::StringToHGlobalAnsi(s)).ToPointer();
os = chars;
Marshal::FreeHGlobal(System::IntPtr((void*)chars));
}
virtual bool IsValid() { return m_Instance != NULL; };
};
}
#endif //_WINDLL
|
30307d50f95a7fc7560ef91aace2c117f8cab59f
|
8ff580d7bfc5e93971ee7727ca39d01075d8ab7e
|
/source/Parser.cpp
|
e2036c79ac683bf3f2cf502fa749591a6e354b66
|
[] |
no_license
|
phenolplus/Script-Builder
|
2014afb0121f3957f4809187f5906d2fa3a5847f
|
c05b7754faec6a7e8ad709fd706e609270c78c9b
|
refs/heads/master
| 2021-01-16T19:02:38.986166
| 2012-08-21T12:31:36
| 2012-08-21T12:31:36
| null | 0
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 42
|
cpp
|
Parser.cpp
|
#include <iostream>
#include "Parser.h"
|
eb70d7eff0a34ceb058d346a6dd0804f271f2f36
|
54791fd57ecc9a4fe7c5164dfa6eb79c8df48ee1
|
/tmpdoc/experiment/qtTest/smallTools/comboLabel/myCallback.h
|
e0e2ffd91d05fd2aa90e796b25729f08d0650973
|
[] |
no_license
|
cherry-wb/quietheart
|
8dfc91f88046bd1b40240e2f6121043977ab78b4
|
715ed73c990da2b4634313c93910769a59ce51f4
|
refs/heads/master
| 2021-01-18T00:04:39.802220
| 2014-08-21T07:39:21
| 2014-08-21T07:39:21
| 23,286,239
| 1
| 3
| null | 2019-03-11T09:32:21
| 2014-08-24T16:37:05
| null |
UTF-8
|
C++
| false
| false
| 1,008
|
h
|
myCallback.h
|
#ifndef __MYCALLBACK_H
#define __MYCALLBACK_H
#include <QWidget>
#include <QList>
#include <QLabel>
#include <QMouseEvent>
class QMenu;
class EPushLabel;
class QStringList;
class EComboLabel:public QWidget
{
Q_OBJECT
public:
EComboLabel(QWidget *parent = 0);
void updateLayout();
void addItem(QString);
protected:
//void timerEvent(QTimerEvent *event);
void init();
signals:
void activated(const QString&);
protected slots:
void clicked();
void activeItem();
private:
EPushLabel *titleLabel;
EPushLabel *arrowLabel;
QMenu *selectMenu;
QList<QAction*> selectItems;
QStringList itemTitles;
};
class EPushLabel:public QLabel
{
Q_OBJECT
public:
EPushLabel(const QString &text, QWidget *parent = 0, Qt::WindowFlags f = 0)
:QLabel(text, parent, f)
{
;
}
signals:
//void pressSignal(ClickLabel*);
void pressSignal();
protected:
void mousePressEvent(QMouseEvent *event)
{
if(rect().contains(event->pos())) { emit pressSignal(); }
}
};
#endif
|
afd7052432940dd89e88710780520c2ce89a0d21
|
7215b490c3ed3bfbe22a2ef0b715c6b185078b9f
|
/src/CalibXMLCnv/cnv/XmlAncBaseCnv.h
|
0451cd0ec199a190cf566e61452bc723a6c940a4
|
[
"BSD-3-Clause"
] |
permissive
|
fermi-lat/CalibSvc
|
76cea1455639752a57f9904b0b4491dfc8a23c18
|
c262bbd5481a01af3f75a250fc1ba385bb5c775f
|
refs/heads/master
| 2022-02-17T03:03:32.350460
| 2019-08-27T17:27:16
| 2019-08-27T17:27:16
| 103,186,849
| 0
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 1,692
|
h
|
XmlAncBaseCnv.h
|
// $Header: /nfs/slac/g/glast/ground/cvs/CalibSvc/src/CalibXMLCnv/cnv/XmlAcdBaseCnv.h,v 1.3 2006/04/10 05:46:01 jrb Exp $
#ifndef CalibData_XmlAncBaseCnv_h
#define CalibData_XmlAncBaseCnv_h
/** @class XmlAncBaseCnv
Base class for ANC calibration converters from XML files to TCDS.
All such converters need to do certain things, which are
handled here. Methods common to *all* calibrations are in the
base class XmlBaseCnv
@author J. Bogart
*/
#include "XmlBaseCnv.h"
class XmlAncBaseCnv : public XmlBaseCnv {
public:
XmlAncBaseCnv(ISvcLocator* svc, const CLID& clid);
virtual ~XmlAncBaseCnv() {};
/** Convenience routine used by most ANC calibration types, which
have a <dimension> element describing how the remainder of the
data is laid out.
@a nMod number of modules
@a nLay number of layers per module
@a nChan number of channels per layer
Note "layer" really only has meaning for tagger. qdc modules
don't have layers, but treat as if nLay is
*/
StatusCode readAncDimension(const DOMElement* docElt, unsigned& nMod,
unsigned& nLay, unsigned& nChan);
/// Another one to find first ped, gain, etc. (depending on calib. type)
DOMElement* findFirstChan(const DOMElement* docElt);
/// Still another one to navigate XML file and find next set of pmt data
DOMElement* findNextChan(const DOMElement* rangeElt);
protected:
/// A place to keep track of where we are within ANC data
unsigned m_iMod;
unsigned m_iLay;
unsigned m_iChan;
/// Tagger files have <layer> element; qdc files don't
bool m_hasLayers;
bool m_isTagger;
bool m_isQdc;
std::string m_eltName;
};
#endif
|
430e56a3c4de907a975e0de698719786552cb17f
|
8aa405d1c99eef9ca3e15d03933b1758a3b6d634
|
/mobile-sdk/android/imkeylibrary/src/generated/release/cpp/device.pb.h
|
c1ddfaa9ccbc6a84e394653a926144b692556f27
|
[
"Apache-2.0"
] |
permissive
|
oday0311/imkey-core
|
6d9a2f5e2e991d1ebc08a4fd0646d48734083f02
|
70a13b4defc6d1905bc02273f65500d7595686f1
|
refs/heads/master
| 2023-04-25T21:55:44.630592
| 2021-03-29T01:00:12
| 2021-03-29T01:00:12
| null | 0
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| true
| 135,015
|
h
|
device.pb.h
|
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: device.proto
#ifndef PROTOBUF_device_2eproto__INCLUDED
#define PROTOBUF_device_2eproto__INCLUDED
#include <string>
#include <google/protobuf/stubs/common.h>
#if GOOGLE_PROTOBUF_VERSION < 3001000
#error This file was generated by a newer version of protoc which is
#error incompatible with your Protocol Buffer headers. Please update
#error your headers.
#endif
#if 3001000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
#error This file was generated by an older version of protoc which is
#error incompatible with your Protocol Buffer headers. Please
#error regenerate this file with a newer version of protoc.
#endif
#include <google/protobuf/arena.h>
#include <google/protobuf/arenastring.h>
#include <google/protobuf/generated_message_util.h>
#include <google/protobuf/metadata.h>
#include <google/protobuf/message.h>
#include <google/protobuf/repeated_field.h>
#include <google/protobuf/extension_set.h>
#include <google/protobuf/unknown_field_set.h>
// @@protoc_insertion_point(includes)
namespace deviceapi {
// Internal implementation detail -- do not call these.
void protobuf_AddDesc_device_2eproto();
void protobuf_InitDefaults_device_2eproto();
void protobuf_AssignDesc_device_2eproto();
void protobuf_ShutdownFile_device_2eproto();
class AppDeleteReq;
class AppDownloadReq;
class AppUpdateReq;
class AvailableAppBean;
class BindAcquireReq;
class BindAcquireRes;
class BindCheckReq;
class BindCheckRes;
class CheckUpdateRes;
class EmptyResponse;
class GetBatteryPowerRes;
class GetBleNameRes;
class GetBleVersionRes;
class GetFirmwareVersionRes;
class GetLifeTimeRes;
class GetRamSizeRes;
class GetSdkInfoRes;
class GetSeidRes;
class GetSnRes;
class SetBleNameReq;
// ===================================================================
class EmptyResponse : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:deviceapi.EmptyResponse) */ {
public:
EmptyResponse();
virtual ~EmptyResponse();
EmptyResponse(const EmptyResponse& from);
inline EmptyResponse& operator=(const EmptyResponse& from) {
CopyFrom(from);
return *this;
}
static const ::google::protobuf::Descriptor* descriptor();
static const EmptyResponse& default_instance();
static const EmptyResponse* internal_default_instance();
void Swap(EmptyResponse* other);
// implements Message ----------------------------------------------
inline EmptyResponse* New() const { return New(NULL); }
EmptyResponse* New(::google::protobuf::Arena* arena) const;
void CopyFrom(const ::google::protobuf::Message& from);
void MergeFrom(const ::google::protobuf::Message& from);
void CopyFrom(const EmptyResponse& from);
void MergeFrom(const EmptyResponse& from);
void Clear();
bool IsInitialized() const;
size_t ByteSizeLong() const;
bool MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input);
void SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const;
::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
bool deterministic, ::google::protobuf::uint8* output) const;
::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const {
return InternalSerializeWithCachedSizesToArray(false, output);
}
int GetCachedSize() const { return _cached_size_; }
private:
void SharedCtor();
void SharedDtor();
void SetCachedSize(int size) const;
void InternalSwap(EmptyResponse* other);
void UnsafeMergeFrom(const EmptyResponse& from);
private:
inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
return _internal_metadata_.arena();
}
inline void* MaybeArenaPtr() const {
return _internal_metadata_.raw_arena_ptr();
}
public:
::google::protobuf::Metadata GetMetadata() const;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
// @@protoc_insertion_point(class_scope:deviceapi.EmptyResponse)
private:
::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
mutable int _cached_size_;
friend void protobuf_InitDefaults_device_2eproto_impl();
friend void protobuf_AddDesc_device_2eproto_impl();
friend void protobuf_AssignDesc_device_2eproto();
friend void protobuf_ShutdownFile_device_2eproto();
void InitAsDefaultInstance();
};
extern ::google::protobuf::internal::ExplicitlyConstructed<EmptyResponse> EmptyResponse_default_instance_;
// -------------------------------------------------------------------
class AppDownloadReq : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:deviceapi.AppDownloadReq) */ {
public:
AppDownloadReq();
virtual ~AppDownloadReq();
AppDownloadReq(const AppDownloadReq& from);
inline AppDownloadReq& operator=(const AppDownloadReq& from) {
CopyFrom(from);
return *this;
}
static const ::google::protobuf::Descriptor* descriptor();
static const AppDownloadReq& default_instance();
static const AppDownloadReq* internal_default_instance();
void Swap(AppDownloadReq* other);
// implements Message ----------------------------------------------
inline AppDownloadReq* New() const { return New(NULL); }
AppDownloadReq* New(::google::protobuf::Arena* arena) const;
void CopyFrom(const ::google::protobuf::Message& from);
void MergeFrom(const ::google::protobuf::Message& from);
void CopyFrom(const AppDownloadReq& from);
void MergeFrom(const AppDownloadReq& from);
void Clear();
bool IsInitialized() const;
size_t ByteSizeLong() const;
bool MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input);
void SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const;
::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
bool deterministic, ::google::protobuf::uint8* output) const;
::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const {
return InternalSerializeWithCachedSizesToArray(false, output);
}
int GetCachedSize() const { return _cached_size_; }
private:
void SharedCtor();
void SharedDtor();
void SetCachedSize(int size) const;
void InternalSwap(AppDownloadReq* other);
void UnsafeMergeFrom(const AppDownloadReq& from);
private:
inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
return _internal_metadata_.arena();
}
inline void* MaybeArenaPtr() const {
return _internal_metadata_.raw_arena_ptr();
}
public:
::google::protobuf::Metadata GetMetadata() const;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
// optional string app_name = 1;
void clear_app_name();
static const int kAppNameFieldNumber = 1;
const ::std::string& app_name() const;
void set_app_name(const ::std::string& value);
void set_app_name(const char* value);
void set_app_name(const char* value, size_t size);
::std::string* mutable_app_name();
::std::string* release_app_name();
void set_allocated_app_name(::std::string* app_name);
// @@protoc_insertion_point(class_scope:deviceapi.AppDownloadReq)
private:
::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
::google::protobuf::internal::ArenaStringPtr app_name_;
mutable int _cached_size_;
friend void protobuf_InitDefaults_device_2eproto_impl();
friend void protobuf_AddDesc_device_2eproto_impl();
friend void protobuf_AssignDesc_device_2eproto();
friend void protobuf_ShutdownFile_device_2eproto();
void InitAsDefaultInstance();
};
extern ::google::protobuf::internal::ExplicitlyConstructed<AppDownloadReq> AppDownloadReq_default_instance_;
// -------------------------------------------------------------------
class AppUpdateReq : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:deviceapi.AppUpdateReq) */ {
public:
AppUpdateReq();
virtual ~AppUpdateReq();
AppUpdateReq(const AppUpdateReq& from);
inline AppUpdateReq& operator=(const AppUpdateReq& from) {
CopyFrom(from);
return *this;
}
static const ::google::protobuf::Descriptor* descriptor();
static const AppUpdateReq& default_instance();
static const AppUpdateReq* internal_default_instance();
void Swap(AppUpdateReq* other);
// implements Message ----------------------------------------------
inline AppUpdateReq* New() const { return New(NULL); }
AppUpdateReq* New(::google::protobuf::Arena* arena) const;
void CopyFrom(const ::google::protobuf::Message& from);
void MergeFrom(const ::google::protobuf::Message& from);
void CopyFrom(const AppUpdateReq& from);
void MergeFrom(const AppUpdateReq& from);
void Clear();
bool IsInitialized() const;
size_t ByteSizeLong() const;
bool MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input);
void SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const;
::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
bool deterministic, ::google::protobuf::uint8* output) const;
::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const {
return InternalSerializeWithCachedSizesToArray(false, output);
}
int GetCachedSize() const { return _cached_size_; }
private:
void SharedCtor();
void SharedDtor();
void SetCachedSize(int size) const;
void InternalSwap(AppUpdateReq* other);
void UnsafeMergeFrom(const AppUpdateReq& from);
private:
inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
return _internal_metadata_.arena();
}
inline void* MaybeArenaPtr() const {
return _internal_metadata_.raw_arena_ptr();
}
public:
::google::protobuf::Metadata GetMetadata() const;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
// optional string app_name = 1;
void clear_app_name();
static const int kAppNameFieldNumber = 1;
const ::std::string& app_name() const;
void set_app_name(const ::std::string& value);
void set_app_name(const char* value);
void set_app_name(const char* value, size_t size);
::std::string* mutable_app_name();
::std::string* release_app_name();
void set_allocated_app_name(::std::string* app_name);
// @@protoc_insertion_point(class_scope:deviceapi.AppUpdateReq)
private:
::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
::google::protobuf::internal::ArenaStringPtr app_name_;
mutable int _cached_size_;
friend void protobuf_InitDefaults_device_2eproto_impl();
friend void protobuf_AddDesc_device_2eproto_impl();
friend void protobuf_AssignDesc_device_2eproto();
friend void protobuf_ShutdownFile_device_2eproto();
void InitAsDefaultInstance();
};
extern ::google::protobuf::internal::ExplicitlyConstructed<AppUpdateReq> AppUpdateReq_default_instance_;
// -------------------------------------------------------------------
class AppDeleteReq : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:deviceapi.AppDeleteReq) */ {
public:
AppDeleteReq();
virtual ~AppDeleteReq();
AppDeleteReq(const AppDeleteReq& from);
inline AppDeleteReq& operator=(const AppDeleteReq& from) {
CopyFrom(from);
return *this;
}
static const ::google::protobuf::Descriptor* descriptor();
static const AppDeleteReq& default_instance();
static const AppDeleteReq* internal_default_instance();
void Swap(AppDeleteReq* other);
// implements Message ----------------------------------------------
inline AppDeleteReq* New() const { return New(NULL); }
AppDeleteReq* New(::google::protobuf::Arena* arena) const;
void CopyFrom(const ::google::protobuf::Message& from);
void MergeFrom(const ::google::protobuf::Message& from);
void CopyFrom(const AppDeleteReq& from);
void MergeFrom(const AppDeleteReq& from);
void Clear();
bool IsInitialized() const;
size_t ByteSizeLong() const;
bool MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input);
void SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const;
::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
bool deterministic, ::google::protobuf::uint8* output) const;
::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const {
return InternalSerializeWithCachedSizesToArray(false, output);
}
int GetCachedSize() const { return _cached_size_; }
private:
void SharedCtor();
void SharedDtor();
void SetCachedSize(int size) const;
void InternalSwap(AppDeleteReq* other);
void UnsafeMergeFrom(const AppDeleteReq& from);
private:
inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
return _internal_metadata_.arena();
}
inline void* MaybeArenaPtr() const {
return _internal_metadata_.raw_arena_ptr();
}
public:
::google::protobuf::Metadata GetMetadata() const;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
// optional string app_name = 1;
void clear_app_name();
static const int kAppNameFieldNumber = 1;
const ::std::string& app_name() const;
void set_app_name(const ::std::string& value);
void set_app_name(const char* value);
void set_app_name(const char* value, size_t size);
::std::string* mutable_app_name();
::std::string* release_app_name();
void set_allocated_app_name(::std::string* app_name);
// @@protoc_insertion_point(class_scope:deviceapi.AppDeleteReq)
private:
::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
::google::protobuf::internal::ArenaStringPtr app_name_;
mutable int _cached_size_;
friend void protobuf_InitDefaults_device_2eproto_impl();
friend void protobuf_AddDesc_device_2eproto_impl();
friend void protobuf_AssignDesc_device_2eproto();
friend void protobuf_ShutdownFile_device_2eproto();
void InitAsDefaultInstance();
};
extern ::google::protobuf::internal::ExplicitlyConstructed<AppDeleteReq> AppDeleteReq_default_instance_;
// -------------------------------------------------------------------
class CheckUpdateRes : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:deviceapi.CheckUpdateRes) */ {
public:
CheckUpdateRes();
virtual ~CheckUpdateRes();
CheckUpdateRes(const CheckUpdateRes& from);
inline CheckUpdateRes& operator=(const CheckUpdateRes& from) {
CopyFrom(from);
return *this;
}
static const ::google::protobuf::Descriptor* descriptor();
static const CheckUpdateRes& default_instance();
static const CheckUpdateRes* internal_default_instance();
void Swap(CheckUpdateRes* other);
// implements Message ----------------------------------------------
inline CheckUpdateRes* New() const { return New(NULL); }
CheckUpdateRes* New(::google::protobuf::Arena* arena) const;
void CopyFrom(const ::google::protobuf::Message& from);
void MergeFrom(const ::google::protobuf::Message& from);
void CopyFrom(const CheckUpdateRes& from);
void MergeFrom(const CheckUpdateRes& from);
void Clear();
bool IsInitialized() const;
size_t ByteSizeLong() const;
bool MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input);
void SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const;
::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
bool deterministic, ::google::protobuf::uint8* output) const;
::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const {
return InternalSerializeWithCachedSizesToArray(false, output);
}
int GetCachedSize() const { return _cached_size_; }
private:
void SharedCtor();
void SharedDtor();
void SetCachedSize(int size) const;
void InternalSwap(CheckUpdateRes* other);
void UnsafeMergeFrom(const CheckUpdateRes& from);
private:
inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
return _internal_metadata_.arena();
}
inline void* MaybeArenaPtr() const {
return _internal_metadata_.raw_arena_ptr();
}
public:
::google::protobuf::Metadata GetMetadata() const;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
// optional string se_id = 1;
void clear_se_id();
static const int kSeIdFieldNumber = 1;
const ::std::string& se_id() const;
void set_se_id(const ::std::string& value);
void set_se_id(const char* value);
void set_se_id(const char* value, size_t size);
::std::string* mutable_se_id();
::std::string* release_se_id();
void set_allocated_se_id(::std::string* se_id);
// optional string sn = 2;
void clear_sn();
static const int kSnFieldNumber = 2;
const ::std::string& sn() const;
void set_sn(const ::std::string& value);
void set_sn(const char* value);
void set_sn(const char* value, size_t size);
::std::string* mutable_sn();
::std::string* release_sn();
void set_allocated_sn(::std::string* sn);
// optional string status = 3;
void clear_status();
static const int kStatusFieldNumber = 3;
const ::std::string& status() const;
void set_status(const ::std::string& value);
void set_status(const char* value);
void set_status(const char* value, size_t size);
::std::string* mutable_status();
::std::string* release_status();
void set_allocated_status(::std::string* status);
// optional string sdk_mode = 4;
void clear_sdk_mode();
static const int kSdkModeFieldNumber = 4;
const ::std::string& sdk_mode() const;
void set_sdk_mode(const ::std::string& value);
void set_sdk_mode(const char* value);
void set_sdk_mode(const char* value, size_t size);
::std::string* mutable_sdk_mode();
::std::string* release_sdk_mode();
void set_allocated_sdk_mode(::std::string* sdk_mode);
// repeated .deviceapi.AvailableAppBean available_app_list = 5;
int available_app_list_size() const;
void clear_available_app_list();
static const int kAvailableAppListFieldNumber = 5;
const ::deviceapi::AvailableAppBean& available_app_list(int index) const;
::deviceapi::AvailableAppBean* mutable_available_app_list(int index);
::deviceapi::AvailableAppBean* add_available_app_list();
::google::protobuf::RepeatedPtrField< ::deviceapi::AvailableAppBean >*
mutable_available_app_list();
const ::google::protobuf::RepeatedPtrField< ::deviceapi::AvailableAppBean >&
available_app_list() const;
// @@protoc_insertion_point(class_scope:deviceapi.CheckUpdateRes)
private:
::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
::google::protobuf::RepeatedPtrField< ::deviceapi::AvailableAppBean > available_app_list_;
::google::protobuf::internal::ArenaStringPtr se_id_;
::google::protobuf::internal::ArenaStringPtr sn_;
::google::protobuf::internal::ArenaStringPtr status_;
::google::protobuf::internal::ArenaStringPtr sdk_mode_;
mutable int _cached_size_;
friend void protobuf_InitDefaults_device_2eproto_impl();
friend void protobuf_AddDesc_device_2eproto_impl();
friend void protobuf_AssignDesc_device_2eproto();
friend void protobuf_ShutdownFile_device_2eproto();
void InitAsDefaultInstance();
};
extern ::google::protobuf::internal::ExplicitlyConstructed<CheckUpdateRes> CheckUpdateRes_default_instance_;
// -------------------------------------------------------------------
class AvailableAppBean : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:deviceapi.AvailableAppBean) */ {
public:
AvailableAppBean();
virtual ~AvailableAppBean();
AvailableAppBean(const AvailableAppBean& from);
inline AvailableAppBean& operator=(const AvailableAppBean& from) {
CopyFrom(from);
return *this;
}
static const ::google::protobuf::Descriptor* descriptor();
static const AvailableAppBean& default_instance();
static const AvailableAppBean* internal_default_instance();
void Swap(AvailableAppBean* other);
// implements Message ----------------------------------------------
inline AvailableAppBean* New() const { return New(NULL); }
AvailableAppBean* New(::google::protobuf::Arena* arena) const;
void CopyFrom(const ::google::protobuf::Message& from);
void MergeFrom(const ::google::protobuf::Message& from);
void CopyFrom(const AvailableAppBean& from);
void MergeFrom(const AvailableAppBean& from);
void Clear();
bool IsInitialized() const;
size_t ByteSizeLong() const;
bool MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input);
void SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const;
::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
bool deterministic, ::google::protobuf::uint8* output) const;
::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const {
return InternalSerializeWithCachedSizesToArray(false, output);
}
int GetCachedSize() const { return _cached_size_; }
private:
void SharedCtor();
void SharedDtor();
void SetCachedSize(int size) const;
void InternalSwap(AvailableAppBean* other);
void UnsafeMergeFrom(const AvailableAppBean& from);
private:
inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
return _internal_metadata_.arena();
}
inline void* MaybeArenaPtr() const {
return _internal_metadata_.raw_arena_ptr();
}
public:
::google::protobuf::Metadata GetMetadata() const;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
// optional string app_name = 1;
void clear_app_name();
static const int kAppNameFieldNumber = 1;
const ::std::string& app_name() const;
void set_app_name(const ::std::string& value);
void set_app_name(const char* value);
void set_app_name(const char* value, size_t size);
::std::string* mutable_app_name();
::std::string* release_app_name();
void set_allocated_app_name(::std::string* app_name);
// optional string app_logo = 2;
void clear_app_logo();
static const int kAppLogoFieldNumber = 2;
const ::std::string& app_logo() const;
void set_app_logo(const ::std::string& value);
void set_app_logo(const char* value);
void set_app_logo(const char* value, size_t size);
::std::string* mutable_app_logo();
::std::string* release_app_logo();
void set_allocated_app_logo(::std::string* app_logo);
// optional string installed_version = 3;
void clear_installed_version();
static const int kInstalledVersionFieldNumber = 3;
const ::std::string& installed_version() const;
void set_installed_version(const ::std::string& value);
void set_installed_version(const char* value);
void set_installed_version(const char* value, size_t size);
::std::string* mutable_installed_version();
::std::string* release_installed_version();
void set_allocated_installed_version(::std::string* installed_version);
// optional string last_updated = 4;
void clear_last_updated();
static const int kLastUpdatedFieldNumber = 4;
const ::std::string& last_updated() const;
void set_last_updated(const ::std::string& value);
void set_last_updated(const char* value);
void set_last_updated(const char* value, size_t size);
::std::string* mutable_last_updated();
::std::string* release_last_updated();
void set_allocated_last_updated(::std::string* last_updated);
// optional string latest_version = 5;
void clear_latest_version();
static const int kLatestVersionFieldNumber = 5;
const ::std::string& latest_version() const;
void set_latest_version(const ::std::string& value);
void set_latest_version(const char* value);
void set_latest_version(const char* value, size_t size);
::std::string* mutable_latest_version();
::std::string* release_latest_version();
void set_allocated_latest_version(::std::string* latest_version);
// optional string install_mode = 6;
void clear_install_mode();
static const int kInstallModeFieldNumber = 6;
const ::std::string& install_mode() const;
void set_install_mode(const ::std::string& value);
void set_install_mode(const char* value);
void set_install_mode(const char* value, size_t size);
::std::string* mutable_install_mode();
::std::string* release_install_mode();
void set_allocated_install_mode(::std::string* install_mode);
// @@protoc_insertion_point(class_scope:deviceapi.AvailableAppBean)
private:
::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
::google::protobuf::internal::ArenaStringPtr app_name_;
::google::protobuf::internal::ArenaStringPtr app_logo_;
::google::protobuf::internal::ArenaStringPtr installed_version_;
::google::protobuf::internal::ArenaStringPtr last_updated_;
::google::protobuf::internal::ArenaStringPtr latest_version_;
::google::protobuf::internal::ArenaStringPtr install_mode_;
mutable int _cached_size_;
friend void protobuf_InitDefaults_device_2eproto_impl();
friend void protobuf_AddDesc_device_2eproto_impl();
friend void protobuf_AssignDesc_device_2eproto();
friend void protobuf_ShutdownFile_device_2eproto();
void InitAsDefaultInstance();
};
extern ::google::protobuf::internal::ExplicitlyConstructed<AvailableAppBean> AvailableAppBean_default_instance_;
// -------------------------------------------------------------------
class BindCheckReq : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:deviceapi.BindCheckReq) */ {
public:
BindCheckReq();
virtual ~BindCheckReq();
BindCheckReq(const BindCheckReq& from);
inline BindCheckReq& operator=(const BindCheckReq& from) {
CopyFrom(from);
return *this;
}
static const ::google::protobuf::Descriptor* descriptor();
static const BindCheckReq& default_instance();
static const BindCheckReq* internal_default_instance();
void Swap(BindCheckReq* other);
// implements Message ----------------------------------------------
inline BindCheckReq* New() const { return New(NULL); }
BindCheckReq* New(::google::protobuf::Arena* arena) const;
void CopyFrom(const ::google::protobuf::Message& from);
void MergeFrom(const ::google::protobuf::Message& from);
void CopyFrom(const BindCheckReq& from);
void MergeFrom(const BindCheckReq& from);
void Clear();
bool IsInitialized() const;
size_t ByteSizeLong() const;
bool MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input);
void SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const;
::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
bool deterministic, ::google::protobuf::uint8* output) const;
::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const {
return InternalSerializeWithCachedSizesToArray(false, output);
}
int GetCachedSize() const { return _cached_size_; }
private:
void SharedCtor();
void SharedDtor();
void SetCachedSize(int size) const;
void InternalSwap(BindCheckReq* other);
void UnsafeMergeFrom(const BindCheckReq& from);
private:
inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
return _internal_metadata_.arena();
}
inline void* MaybeArenaPtr() const {
return _internal_metadata_.raw_arena_ptr();
}
public:
::google::protobuf::Metadata GetMetadata() const;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
// optional string file_path = 1;
void clear_file_path();
static const int kFilePathFieldNumber = 1;
const ::std::string& file_path() const;
void set_file_path(const ::std::string& value);
void set_file_path(const char* value);
void set_file_path(const char* value, size_t size);
::std::string* mutable_file_path();
::std::string* release_file_path();
void set_allocated_file_path(::std::string* file_path);
// @@protoc_insertion_point(class_scope:deviceapi.BindCheckReq)
private:
::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
::google::protobuf::internal::ArenaStringPtr file_path_;
mutable int _cached_size_;
friend void protobuf_InitDefaults_device_2eproto_impl();
friend void protobuf_AddDesc_device_2eproto_impl();
friend void protobuf_AssignDesc_device_2eproto();
friend void protobuf_ShutdownFile_device_2eproto();
void InitAsDefaultInstance();
};
extern ::google::protobuf::internal::ExplicitlyConstructed<BindCheckReq> BindCheckReq_default_instance_;
// -------------------------------------------------------------------
class BindCheckRes : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:deviceapi.BindCheckRes) */ {
public:
BindCheckRes();
virtual ~BindCheckRes();
BindCheckRes(const BindCheckRes& from);
inline BindCheckRes& operator=(const BindCheckRes& from) {
CopyFrom(from);
return *this;
}
static const ::google::protobuf::Descriptor* descriptor();
static const BindCheckRes& default_instance();
static const BindCheckRes* internal_default_instance();
void Swap(BindCheckRes* other);
// implements Message ----------------------------------------------
inline BindCheckRes* New() const { return New(NULL); }
BindCheckRes* New(::google::protobuf::Arena* arena) const;
void CopyFrom(const ::google::protobuf::Message& from);
void MergeFrom(const ::google::protobuf::Message& from);
void CopyFrom(const BindCheckRes& from);
void MergeFrom(const BindCheckRes& from);
void Clear();
bool IsInitialized() const;
size_t ByteSizeLong() const;
bool MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input);
void SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const;
::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
bool deterministic, ::google::protobuf::uint8* output) const;
::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const {
return InternalSerializeWithCachedSizesToArray(false, output);
}
int GetCachedSize() const { return _cached_size_; }
private:
void SharedCtor();
void SharedDtor();
void SetCachedSize(int size) const;
void InternalSwap(BindCheckRes* other);
void UnsafeMergeFrom(const BindCheckRes& from);
private:
inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
return _internal_metadata_.arena();
}
inline void* MaybeArenaPtr() const {
return _internal_metadata_.raw_arena_ptr();
}
public:
::google::protobuf::Metadata GetMetadata() const;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
// optional string bind_status = 1;
void clear_bind_status();
static const int kBindStatusFieldNumber = 1;
const ::std::string& bind_status() const;
void set_bind_status(const ::std::string& value);
void set_bind_status(const char* value);
void set_bind_status(const char* value, size_t size);
::std::string* mutable_bind_status();
::std::string* release_bind_status();
void set_allocated_bind_status(::std::string* bind_status);
// @@protoc_insertion_point(class_scope:deviceapi.BindCheckRes)
private:
::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
::google::protobuf::internal::ArenaStringPtr bind_status_;
mutable int _cached_size_;
friend void protobuf_InitDefaults_device_2eproto_impl();
friend void protobuf_AddDesc_device_2eproto_impl();
friend void protobuf_AssignDesc_device_2eproto();
friend void protobuf_ShutdownFile_device_2eproto();
void InitAsDefaultInstance();
};
extern ::google::protobuf::internal::ExplicitlyConstructed<BindCheckRes> BindCheckRes_default_instance_;
// -------------------------------------------------------------------
class BindAcquireReq : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:deviceapi.BindAcquireReq) */ {
public:
BindAcquireReq();
virtual ~BindAcquireReq();
BindAcquireReq(const BindAcquireReq& from);
inline BindAcquireReq& operator=(const BindAcquireReq& from) {
CopyFrom(from);
return *this;
}
static const ::google::protobuf::Descriptor* descriptor();
static const BindAcquireReq& default_instance();
static const BindAcquireReq* internal_default_instance();
void Swap(BindAcquireReq* other);
// implements Message ----------------------------------------------
inline BindAcquireReq* New() const { return New(NULL); }
BindAcquireReq* New(::google::protobuf::Arena* arena) const;
void CopyFrom(const ::google::protobuf::Message& from);
void MergeFrom(const ::google::protobuf::Message& from);
void CopyFrom(const BindAcquireReq& from);
void MergeFrom(const BindAcquireReq& from);
void Clear();
bool IsInitialized() const;
size_t ByteSizeLong() const;
bool MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input);
void SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const;
::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
bool deterministic, ::google::protobuf::uint8* output) const;
::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const {
return InternalSerializeWithCachedSizesToArray(false, output);
}
int GetCachedSize() const { return _cached_size_; }
private:
void SharedCtor();
void SharedDtor();
void SetCachedSize(int size) const;
void InternalSwap(BindAcquireReq* other);
void UnsafeMergeFrom(const BindAcquireReq& from);
private:
inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
return _internal_metadata_.arena();
}
inline void* MaybeArenaPtr() const {
return _internal_metadata_.raw_arena_ptr();
}
public:
::google::protobuf::Metadata GetMetadata() const;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
// optional string bind_code = 1;
void clear_bind_code();
static const int kBindCodeFieldNumber = 1;
const ::std::string& bind_code() const;
void set_bind_code(const ::std::string& value);
void set_bind_code(const char* value);
void set_bind_code(const char* value, size_t size);
::std::string* mutable_bind_code();
::std::string* release_bind_code();
void set_allocated_bind_code(::std::string* bind_code);
// @@protoc_insertion_point(class_scope:deviceapi.BindAcquireReq)
private:
::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
::google::protobuf::internal::ArenaStringPtr bind_code_;
mutable int _cached_size_;
friend void protobuf_InitDefaults_device_2eproto_impl();
friend void protobuf_AddDesc_device_2eproto_impl();
friend void protobuf_AssignDesc_device_2eproto();
friend void protobuf_ShutdownFile_device_2eproto();
void InitAsDefaultInstance();
};
extern ::google::protobuf::internal::ExplicitlyConstructed<BindAcquireReq> BindAcquireReq_default_instance_;
// -------------------------------------------------------------------
class BindAcquireRes : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:deviceapi.BindAcquireRes) */ {
public:
BindAcquireRes();
virtual ~BindAcquireRes();
BindAcquireRes(const BindAcquireRes& from);
inline BindAcquireRes& operator=(const BindAcquireRes& from) {
CopyFrom(from);
return *this;
}
static const ::google::protobuf::Descriptor* descriptor();
static const BindAcquireRes& default_instance();
static const BindAcquireRes* internal_default_instance();
void Swap(BindAcquireRes* other);
// implements Message ----------------------------------------------
inline BindAcquireRes* New() const { return New(NULL); }
BindAcquireRes* New(::google::protobuf::Arena* arena) const;
void CopyFrom(const ::google::protobuf::Message& from);
void MergeFrom(const ::google::protobuf::Message& from);
void CopyFrom(const BindAcquireRes& from);
void MergeFrom(const BindAcquireRes& from);
void Clear();
bool IsInitialized() const;
size_t ByteSizeLong() const;
bool MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input);
void SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const;
::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
bool deterministic, ::google::protobuf::uint8* output) const;
::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const {
return InternalSerializeWithCachedSizesToArray(false, output);
}
int GetCachedSize() const { return _cached_size_; }
private:
void SharedCtor();
void SharedDtor();
void SetCachedSize(int size) const;
void InternalSwap(BindAcquireRes* other);
void UnsafeMergeFrom(const BindAcquireRes& from);
private:
inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
return _internal_metadata_.arena();
}
inline void* MaybeArenaPtr() const {
return _internal_metadata_.raw_arena_ptr();
}
public:
::google::protobuf::Metadata GetMetadata() const;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
// optional string bind_result = 1;
void clear_bind_result();
static const int kBindResultFieldNumber = 1;
const ::std::string& bind_result() const;
void set_bind_result(const ::std::string& value);
void set_bind_result(const char* value);
void set_bind_result(const char* value, size_t size);
::std::string* mutable_bind_result();
::std::string* release_bind_result();
void set_allocated_bind_result(::std::string* bind_result);
// @@protoc_insertion_point(class_scope:deviceapi.BindAcquireRes)
private:
::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
::google::protobuf::internal::ArenaStringPtr bind_result_;
mutable int _cached_size_;
friend void protobuf_InitDefaults_device_2eproto_impl();
friend void protobuf_AddDesc_device_2eproto_impl();
friend void protobuf_AssignDesc_device_2eproto();
friend void protobuf_ShutdownFile_device_2eproto();
void InitAsDefaultInstance();
};
extern ::google::protobuf::internal::ExplicitlyConstructed<BindAcquireRes> BindAcquireRes_default_instance_;
// -------------------------------------------------------------------
class GetSeidRes : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:deviceapi.GetSeidRes) */ {
public:
GetSeidRes();
virtual ~GetSeidRes();
GetSeidRes(const GetSeidRes& from);
inline GetSeidRes& operator=(const GetSeidRes& from) {
CopyFrom(from);
return *this;
}
static const ::google::protobuf::Descriptor* descriptor();
static const GetSeidRes& default_instance();
static const GetSeidRes* internal_default_instance();
void Swap(GetSeidRes* other);
// implements Message ----------------------------------------------
inline GetSeidRes* New() const { return New(NULL); }
GetSeidRes* New(::google::protobuf::Arena* arena) const;
void CopyFrom(const ::google::protobuf::Message& from);
void MergeFrom(const ::google::protobuf::Message& from);
void CopyFrom(const GetSeidRes& from);
void MergeFrom(const GetSeidRes& from);
void Clear();
bool IsInitialized() const;
size_t ByteSizeLong() const;
bool MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input);
void SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const;
::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
bool deterministic, ::google::protobuf::uint8* output) const;
::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const {
return InternalSerializeWithCachedSizesToArray(false, output);
}
int GetCachedSize() const { return _cached_size_; }
private:
void SharedCtor();
void SharedDtor();
void SetCachedSize(int size) const;
void InternalSwap(GetSeidRes* other);
void UnsafeMergeFrom(const GetSeidRes& from);
private:
inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
return _internal_metadata_.arena();
}
inline void* MaybeArenaPtr() const {
return _internal_metadata_.raw_arena_ptr();
}
public:
::google::protobuf::Metadata GetMetadata() const;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
// optional string seid = 1;
void clear_seid();
static const int kSeidFieldNumber = 1;
const ::std::string& seid() const;
void set_seid(const ::std::string& value);
void set_seid(const char* value);
void set_seid(const char* value, size_t size);
::std::string* mutable_seid();
::std::string* release_seid();
void set_allocated_seid(::std::string* seid);
// @@protoc_insertion_point(class_scope:deviceapi.GetSeidRes)
private:
::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
::google::protobuf::internal::ArenaStringPtr seid_;
mutable int _cached_size_;
friend void protobuf_InitDefaults_device_2eproto_impl();
friend void protobuf_AddDesc_device_2eproto_impl();
friend void protobuf_AssignDesc_device_2eproto();
friend void protobuf_ShutdownFile_device_2eproto();
void InitAsDefaultInstance();
};
extern ::google::protobuf::internal::ExplicitlyConstructed<GetSeidRes> GetSeidRes_default_instance_;
// -------------------------------------------------------------------
class GetSnRes : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:deviceapi.GetSnRes) */ {
public:
GetSnRes();
virtual ~GetSnRes();
GetSnRes(const GetSnRes& from);
inline GetSnRes& operator=(const GetSnRes& from) {
CopyFrom(from);
return *this;
}
static const ::google::protobuf::Descriptor* descriptor();
static const GetSnRes& default_instance();
static const GetSnRes* internal_default_instance();
void Swap(GetSnRes* other);
// implements Message ----------------------------------------------
inline GetSnRes* New() const { return New(NULL); }
GetSnRes* New(::google::protobuf::Arena* arena) const;
void CopyFrom(const ::google::protobuf::Message& from);
void MergeFrom(const ::google::protobuf::Message& from);
void CopyFrom(const GetSnRes& from);
void MergeFrom(const GetSnRes& from);
void Clear();
bool IsInitialized() const;
size_t ByteSizeLong() const;
bool MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input);
void SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const;
::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
bool deterministic, ::google::protobuf::uint8* output) const;
::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const {
return InternalSerializeWithCachedSizesToArray(false, output);
}
int GetCachedSize() const { return _cached_size_; }
private:
void SharedCtor();
void SharedDtor();
void SetCachedSize(int size) const;
void InternalSwap(GetSnRes* other);
void UnsafeMergeFrom(const GetSnRes& from);
private:
inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
return _internal_metadata_.arena();
}
inline void* MaybeArenaPtr() const {
return _internal_metadata_.raw_arena_ptr();
}
public:
::google::protobuf::Metadata GetMetadata() const;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
// optional string sn = 1;
void clear_sn();
static const int kSnFieldNumber = 1;
const ::std::string& sn() const;
void set_sn(const ::std::string& value);
void set_sn(const char* value);
void set_sn(const char* value, size_t size);
::std::string* mutable_sn();
::std::string* release_sn();
void set_allocated_sn(::std::string* sn);
// @@protoc_insertion_point(class_scope:deviceapi.GetSnRes)
private:
::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
::google::protobuf::internal::ArenaStringPtr sn_;
mutable int _cached_size_;
friend void protobuf_InitDefaults_device_2eproto_impl();
friend void protobuf_AddDesc_device_2eproto_impl();
friend void protobuf_AssignDesc_device_2eproto();
friend void protobuf_ShutdownFile_device_2eproto();
void InitAsDefaultInstance();
};
extern ::google::protobuf::internal::ExplicitlyConstructed<GetSnRes> GetSnRes_default_instance_;
// -------------------------------------------------------------------
class GetRamSizeRes : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:deviceapi.GetRamSizeRes) */ {
public:
GetRamSizeRes();
virtual ~GetRamSizeRes();
GetRamSizeRes(const GetRamSizeRes& from);
inline GetRamSizeRes& operator=(const GetRamSizeRes& from) {
CopyFrom(from);
return *this;
}
static const ::google::protobuf::Descriptor* descriptor();
static const GetRamSizeRes& default_instance();
static const GetRamSizeRes* internal_default_instance();
void Swap(GetRamSizeRes* other);
// implements Message ----------------------------------------------
inline GetRamSizeRes* New() const { return New(NULL); }
GetRamSizeRes* New(::google::protobuf::Arena* arena) const;
void CopyFrom(const ::google::protobuf::Message& from);
void MergeFrom(const ::google::protobuf::Message& from);
void CopyFrom(const GetRamSizeRes& from);
void MergeFrom(const GetRamSizeRes& from);
void Clear();
bool IsInitialized() const;
size_t ByteSizeLong() const;
bool MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input);
void SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const;
::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
bool deterministic, ::google::protobuf::uint8* output) const;
::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const {
return InternalSerializeWithCachedSizesToArray(false, output);
}
int GetCachedSize() const { return _cached_size_; }
private:
void SharedCtor();
void SharedDtor();
void SetCachedSize(int size) const;
void InternalSwap(GetRamSizeRes* other);
void UnsafeMergeFrom(const GetRamSizeRes& from);
private:
inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
return _internal_metadata_.arena();
}
inline void* MaybeArenaPtr() const {
return _internal_metadata_.raw_arena_ptr();
}
public:
::google::protobuf::Metadata GetMetadata() const;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
// optional string ram_size = 1;
void clear_ram_size();
static const int kRamSizeFieldNumber = 1;
const ::std::string& ram_size() const;
void set_ram_size(const ::std::string& value);
void set_ram_size(const char* value);
void set_ram_size(const char* value, size_t size);
::std::string* mutable_ram_size();
::std::string* release_ram_size();
void set_allocated_ram_size(::std::string* ram_size);
// @@protoc_insertion_point(class_scope:deviceapi.GetRamSizeRes)
private:
::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
::google::protobuf::internal::ArenaStringPtr ram_size_;
mutable int _cached_size_;
friend void protobuf_InitDefaults_device_2eproto_impl();
friend void protobuf_AddDesc_device_2eproto_impl();
friend void protobuf_AssignDesc_device_2eproto();
friend void protobuf_ShutdownFile_device_2eproto();
void InitAsDefaultInstance();
};
extern ::google::protobuf::internal::ExplicitlyConstructed<GetRamSizeRes> GetRamSizeRes_default_instance_;
// -------------------------------------------------------------------
class GetFirmwareVersionRes : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:deviceapi.GetFirmwareVersionRes) */ {
public:
GetFirmwareVersionRes();
virtual ~GetFirmwareVersionRes();
GetFirmwareVersionRes(const GetFirmwareVersionRes& from);
inline GetFirmwareVersionRes& operator=(const GetFirmwareVersionRes& from) {
CopyFrom(from);
return *this;
}
static const ::google::protobuf::Descriptor* descriptor();
static const GetFirmwareVersionRes& default_instance();
static const GetFirmwareVersionRes* internal_default_instance();
void Swap(GetFirmwareVersionRes* other);
// implements Message ----------------------------------------------
inline GetFirmwareVersionRes* New() const { return New(NULL); }
GetFirmwareVersionRes* New(::google::protobuf::Arena* arena) const;
void CopyFrom(const ::google::protobuf::Message& from);
void MergeFrom(const ::google::protobuf::Message& from);
void CopyFrom(const GetFirmwareVersionRes& from);
void MergeFrom(const GetFirmwareVersionRes& from);
void Clear();
bool IsInitialized() const;
size_t ByteSizeLong() const;
bool MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input);
void SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const;
::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
bool deterministic, ::google::protobuf::uint8* output) const;
::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const {
return InternalSerializeWithCachedSizesToArray(false, output);
}
int GetCachedSize() const { return _cached_size_; }
private:
void SharedCtor();
void SharedDtor();
void SetCachedSize(int size) const;
void InternalSwap(GetFirmwareVersionRes* other);
void UnsafeMergeFrom(const GetFirmwareVersionRes& from);
private:
inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
return _internal_metadata_.arena();
}
inline void* MaybeArenaPtr() const {
return _internal_metadata_.raw_arena_ptr();
}
public:
::google::protobuf::Metadata GetMetadata() const;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
// optional string firmware_version = 1;
void clear_firmware_version();
static const int kFirmwareVersionFieldNumber = 1;
const ::std::string& firmware_version() const;
void set_firmware_version(const ::std::string& value);
void set_firmware_version(const char* value);
void set_firmware_version(const char* value, size_t size);
::std::string* mutable_firmware_version();
::std::string* release_firmware_version();
void set_allocated_firmware_version(::std::string* firmware_version);
// @@protoc_insertion_point(class_scope:deviceapi.GetFirmwareVersionRes)
private:
::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
::google::protobuf::internal::ArenaStringPtr firmware_version_;
mutable int _cached_size_;
friend void protobuf_InitDefaults_device_2eproto_impl();
friend void protobuf_AddDesc_device_2eproto_impl();
friend void protobuf_AssignDesc_device_2eproto();
friend void protobuf_ShutdownFile_device_2eproto();
void InitAsDefaultInstance();
};
extern ::google::protobuf::internal::ExplicitlyConstructed<GetFirmwareVersionRes> GetFirmwareVersionRes_default_instance_;
// -------------------------------------------------------------------
class GetBatteryPowerRes : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:deviceapi.GetBatteryPowerRes) */ {
public:
GetBatteryPowerRes();
virtual ~GetBatteryPowerRes();
GetBatteryPowerRes(const GetBatteryPowerRes& from);
inline GetBatteryPowerRes& operator=(const GetBatteryPowerRes& from) {
CopyFrom(from);
return *this;
}
static const ::google::protobuf::Descriptor* descriptor();
static const GetBatteryPowerRes& default_instance();
static const GetBatteryPowerRes* internal_default_instance();
void Swap(GetBatteryPowerRes* other);
// implements Message ----------------------------------------------
inline GetBatteryPowerRes* New() const { return New(NULL); }
GetBatteryPowerRes* New(::google::protobuf::Arena* arena) const;
void CopyFrom(const ::google::protobuf::Message& from);
void MergeFrom(const ::google::protobuf::Message& from);
void CopyFrom(const GetBatteryPowerRes& from);
void MergeFrom(const GetBatteryPowerRes& from);
void Clear();
bool IsInitialized() const;
size_t ByteSizeLong() const;
bool MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input);
void SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const;
::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
bool deterministic, ::google::protobuf::uint8* output) const;
::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const {
return InternalSerializeWithCachedSizesToArray(false, output);
}
int GetCachedSize() const { return _cached_size_; }
private:
void SharedCtor();
void SharedDtor();
void SetCachedSize(int size) const;
void InternalSwap(GetBatteryPowerRes* other);
void UnsafeMergeFrom(const GetBatteryPowerRes& from);
private:
inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
return _internal_metadata_.arena();
}
inline void* MaybeArenaPtr() const {
return _internal_metadata_.raw_arena_ptr();
}
public:
::google::protobuf::Metadata GetMetadata() const;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
// optional string battery_power = 1;
void clear_battery_power();
static const int kBatteryPowerFieldNumber = 1;
const ::std::string& battery_power() const;
void set_battery_power(const ::std::string& value);
void set_battery_power(const char* value);
void set_battery_power(const char* value, size_t size);
::std::string* mutable_battery_power();
::std::string* release_battery_power();
void set_allocated_battery_power(::std::string* battery_power);
// @@protoc_insertion_point(class_scope:deviceapi.GetBatteryPowerRes)
private:
::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
::google::protobuf::internal::ArenaStringPtr battery_power_;
mutable int _cached_size_;
friend void protobuf_InitDefaults_device_2eproto_impl();
friend void protobuf_AddDesc_device_2eproto_impl();
friend void protobuf_AssignDesc_device_2eproto();
friend void protobuf_ShutdownFile_device_2eproto();
void InitAsDefaultInstance();
};
extern ::google::protobuf::internal::ExplicitlyConstructed<GetBatteryPowerRes> GetBatteryPowerRes_default_instance_;
// -------------------------------------------------------------------
class GetLifeTimeRes : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:deviceapi.GetLifeTimeRes) */ {
public:
GetLifeTimeRes();
virtual ~GetLifeTimeRes();
GetLifeTimeRes(const GetLifeTimeRes& from);
inline GetLifeTimeRes& operator=(const GetLifeTimeRes& from) {
CopyFrom(from);
return *this;
}
static const ::google::protobuf::Descriptor* descriptor();
static const GetLifeTimeRes& default_instance();
static const GetLifeTimeRes* internal_default_instance();
void Swap(GetLifeTimeRes* other);
// implements Message ----------------------------------------------
inline GetLifeTimeRes* New() const { return New(NULL); }
GetLifeTimeRes* New(::google::protobuf::Arena* arena) const;
void CopyFrom(const ::google::protobuf::Message& from);
void MergeFrom(const ::google::protobuf::Message& from);
void CopyFrom(const GetLifeTimeRes& from);
void MergeFrom(const GetLifeTimeRes& from);
void Clear();
bool IsInitialized() const;
size_t ByteSizeLong() const;
bool MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input);
void SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const;
::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
bool deterministic, ::google::protobuf::uint8* output) const;
::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const {
return InternalSerializeWithCachedSizesToArray(false, output);
}
int GetCachedSize() const { return _cached_size_; }
private:
void SharedCtor();
void SharedDtor();
void SetCachedSize(int size) const;
void InternalSwap(GetLifeTimeRes* other);
void UnsafeMergeFrom(const GetLifeTimeRes& from);
private:
inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
return _internal_metadata_.arena();
}
inline void* MaybeArenaPtr() const {
return _internal_metadata_.raw_arena_ptr();
}
public:
::google::protobuf::Metadata GetMetadata() const;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
// optional string life_time = 1;
void clear_life_time();
static const int kLifeTimeFieldNumber = 1;
const ::std::string& life_time() const;
void set_life_time(const ::std::string& value);
void set_life_time(const char* value);
void set_life_time(const char* value, size_t size);
::std::string* mutable_life_time();
::std::string* release_life_time();
void set_allocated_life_time(::std::string* life_time);
// @@protoc_insertion_point(class_scope:deviceapi.GetLifeTimeRes)
private:
::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
::google::protobuf::internal::ArenaStringPtr life_time_;
mutable int _cached_size_;
friend void protobuf_InitDefaults_device_2eproto_impl();
friend void protobuf_AddDesc_device_2eproto_impl();
friend void protobuf_AssignDesc_device_2eproto();
friend void protobuf_ShutdownFile_device_2eproto();
void InitAsDefaultInstance();
};
extern ::google::protobuf::internal::ExplicitlyConstructed<GetLifeTimeRes> GetLifeTimeRes_default_instance_;
// -------------------------------------------------------------------
class GetBleNameRes : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:deviceapi.GetBleNameRes) */ {
public:
GetBleNameRes();
virtual ~GetBleNameRes();
GetBleNameRes(const GetBleNameRes& from);
inline GetBleNameRes& operator=(const GetBleNameRes& from) {
CopyFrom(from);
return *this;
}
static const ::google::protobuf::Descriptor* descriptor();
static const GetBleNameRes& default_instance();
static const GetBleNameRes* internal_default_instance();
void Swap(GetBleNameRes* other);
// implements Message ----------------------------------------------
inline GetBleNameRes* New() const { return New(NULL); }
GetBleNameRes* New(::google::protobuf::Arena* arena) const;
void CopyFrom(const ::google::protobuf::Message& from);
void MergeFrom(const ::google::protobuf::Message& from);
void CopyFrom(const GetBleNameRes& from);
void MergeFrom(const GetBleNameRes& from);
void Clear();
bool IsInitialized() const;
size_t ByteSizeLong() const;
bool MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input);
void SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const;
::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
bool deterministic, ::google::protobuf::uint8* output) const;
::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const {
return InternalSerializeWithCachedSizesToArray(false, output);
}
int GetCachedSize() const { return _cached_size_; }
private:
void SharedCtor();
void SharedDtor();
void SetCachedSize(int size) const;
void InternalSwap(GetBleNameRes* other);
void UnsafeMergeFrom(const GetBleNameRes& from);
private:
inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
return _internal_metadata_.arena();
}
inline void* MaybeArenaPtr() const {
return _internal_metadata_.raw_arena_ptr();
}
public:
::google::protobuf::Metadata GetMetadata() const;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
// optional string ble_name = 1;
void clear_ble_name();
static const int kBleNameFieldNumber = 1;
const ::std::string& ble_name() const;
void set_ble_name(const ::std::string& value);
void set_ble_name(const char* value);
void set_ble_name(const char* value, size_t size);
::std::string* mutable_ble_name();
::std::string* release_ble_name();
void set_allocated_ble_name(::std::string* ble_name);
// @@protoc_insertion_point(class_scope:deviceapi.GetBleNameRes)
private:
::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
::google::protobuf::internal::ArenaStringPtr ble_name_;
mutable int _cached_size_;
friend void protobuf_InitDefaults_device_2eproto_impl();
friend void protobuf_AddDesc_device_2eproto_impl();
friend void protobuf_AssignDesc_device_2eproto();
friend void protobuf_ShutdownFile_device_2eproto();
void InitAsDefaultInstance();
};
extern ::google::protobuf::internal::ExplicitlyConstructed<GetBleNameRes> GetBleNameRes_default_instance_;
// -------------------------------------------------------------------
class SetBleNameReq : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:deviceapi.SetBleNameReq) */ {
public:
SetBleNameReq();
virtual ~SetBleNameReq();
SetBleNameReq(const SetBleNameReq& from);
inline SetBleNameReq& operator=(const SetBleNameReq& from) {
CopyFrom(from);
return *this;
}
static const ::google::protobuf::Descriptor* descriptor();
static const SetBleNameReq& default_instance();
static const SetBleNameReq* internal_default_instance();
void Swap(SetBleNameReq* other);
// implements Message ----------------------------------------------
inline SetBleNameReq* New() const { return New(NULL); }
SetBleNameReq* New(::google::protobuf::Arena* arena) const;
void CopyFrom(const ::google::protobuf::Message& from);
void MergeFrom(const ::google::protobuf::Message& from);
void CopyFrom(const SetBleNameReq& from);
void MergeFrom(const SetBleNameReq& from);
void Clear();
bool IsInitialized() const;
size_t ByteSizeLong() const;
bool MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input);
void SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const;
::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
bool deterministic, ::google::protobuf::uint8* output) const;
::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const {
return InternalSerializeWithCachedSizesToArray(false, output);
}
int GetCachedSize() const { return _cached_size_; }
private:
void SharedCtor();
void SharedDtor();
void SetCachedSize(int size) const;
void InternalSwap(SetBleNameReq* other);
void UnsafeMergeFrom(const SetBleNameReq& from);
private:
inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
return _internal_metadata_.arena();
}
inline void* MaybeArenaPtr() const {
return _internal_metadata_.raw_arena_ptr();
}
public:
::google::protobuf::Metadata GetMetadata() const;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
// optional string ble_name = 1;
void clear_ble_name();
static const int kBleNameFieldNumber = 1;
const ::std::string& ble_name() const;
void set_ble_name(const ::std::string& value);
void set_ble_name(const char* value);
void set_ble_name(const char* value, size_t size);
::std::string* mutable_ble_name();
::std::string* release_ble_name();
void set_allocated_ble_name(::std::string* ble_name);
// @@protoc_insertion_point(class_scope:deviceapi.SetBleNameReq)
private:
::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
::google::protobuf::internal::ArenaStringPtr ble_name_;
mutable int _cached_size_;
friend void protobuf_InitDefaults_device_2eproto_impl();
friend void protobuf_AddDesc_device_2eproto_impl();
friend void protobuf_AssignDesc_device_2eproto();
friend void protobuf_ShutdownFile_device_2eproto();
void InitAsDefaultInstance();
};
extern ::google::protobuf::internal::ExplicitlyConstructed<SetBleNameReq> SetBleNameReq_default_instance_;
// -------------------------------------------------------------------
class GetBleVersionRes : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:deviceapi.GetBleVersionRes) */ {
public:
GetBleVersionRes();
virtual ~GetBleVersionRes();
GetBleVersionRes(const GetBleVersionRes& from);
inline GetBleVersionRes& operator=(const GetBleVersionRes& from) {
CopyFrom(from);
return *this;
}
static const ::google::protobuf::Descriptor* descriptor();
static const GetBleVersionRes& default_instance();
static const GetBleVersionRes* internal_default_instance();
void Swap(GetBleVersionRes* other);
// implements Message ----------------------------------------------
inline GetBleVersionRes* New() const { return New(NULL); }
GetBleVersionRes* New(::google::protobuf::Arena* arena) const;
void CopyFrom(const ::google::protobuf::Message& from);
void MergeFrom(const ::google::protobuf::Message& from);
void CopyFrom(const GetBleVersionRes& from);
void MergeFrom(const GetBleVersionRes& from);
void Clear();
bool IsInitialized() const;
size_t ByteSizeLong() const;
bool MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input);
void SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const;
::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
bool deterministic, ::google::protobuf::uint8* output) const;
::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const {
return InternalSerializeWithCachedSizesToArray(false, output);
}
int GetCachedSize() const { return _cached_size_; }
private:
void SharedCtor();
void SharedDtor();
void SetCachedSize(int size) const;
void InternalSwap(GetBleVersionRes* other);
void UnsafeMergeFrom(const GetBleVersionRes& from);
private:
inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
return _internal_metadata_.arena();
}
inline void* MaybeArenaPtr() const {
return _internal_metadata_.raw_arena_ptr();
}
public:
::google::protobuf::Metadata GetMetadata() const;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
// optional string ble_version = 1;
void clear_ble_version();
static const int kBleVersionFieldNumber = 1;
const ::std::string& ble_version() const;
void set_ble_version(const ::std::string& value);
void set_ble_version(const char* value);
void set_ble_version(const char* value, size_t size);
::std::string* mutable_ble_version();
::std::string* release_ble_version();
void set_allocated_ble_version(::std::string* ble_version);
// @@protoc_insertion_point(class_scope:deviceapi.GetBleVersionRes)
private:
::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
::google::protobuf::internal::ArenaStringPtr ble_version_;
mutable int _cached_size_;
friend void protobuf_InitDefaults_device_2eproto_impl();
friend void protobuf_AddDesc_device_2eproto_impl();
friend void protobuf_AssignDesc_device_2eproto();
friend void protobuf_ShutdownFile_device_2eproto();
void InitAsDefaultInstance();
};
extern ::google::protobuf::internal::ExplicitlyConstructed<GetBleVersionRes> GetBleVersionRes_default_instance_;
// -------------------------------------------------------------------
class GetSdkInfoRes : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:deviceapi.GetSdkInfoRes) */ {
public:
GetSdkInfoRes();
virtual ~GetSdkInfoRes();
GetSdkInfoRes(const GetSdkInfoRes& from);
inline GetSdkInfoRes& operator=(const GetSdkInfoRes& from) {
CopyFrom(from);
return *this;
}
static const ::google::protobuf::Descriptor* descriptor();
static const GetSdkInfoRes& default_instance();
static const GetSdkInfoRes* internal_default_instance();
void Swap(GetSdkInfoRes* other);
// implements Message ----------------------------------------------
inline GetSdkInfoRes* New() const { return New(NULL); }
GetSdkInfoRes* New(::google::protobuf::Arena* arena) const;
void CopyFrom(const ::google::protobuf::Message& from);
void MergeFrom(const ::google::protobuf::Message& from);
void CopyFrom(const GetSdkInfoRes& from);
void MergeFrom(const GetSdkInfoRes& from);
void Clear();
bool IsInitialized() const;
size_t ByteSizeLong() const;
bool MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input);
void SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const;
::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
bool deterministic, ::google::protobuf::uint8* output) const;
::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const {
return InternalSerializeWithCachedSizesToArray(false, output);
}
int GetCachedSize() const { return _cached_size_; }
private:
void SharedCtor();
void SharedDtor();
void SetCachedSize(int size) const;
void InternalSwap(GetSdkInfoRes* other);
void UnsafeMergeFrom(const GetSdkInfoRes& from);
private:
inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
return _internal_metadata_.arena();
}
inline void* MaybeArenaPtr() const {
return _internal_metadata_.raw_arena_ptr();
}
public:
::google::protobuf::Metadata GetMetadata() const;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
// optional string sdk_version = 1;
void clear_sdk_version();
static const int kSdkVersionFieldNumber = 1;
const ::std::string& sdk_version() const;
void set_sdk_version(const ::std::string& value);
void set_sdk_version(const char* value);
void set_sdk_version(const char* value, size_t size);
::std::string* mutable_sdk_version();
::std::string* release_sdk_version();
void set_allocated_sdk_version(::std::string* sdk_version);
// @@protoc_insertion_point(class_scope:deviceapi.GetSdkInfoRes)
private:
::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
::google::protobuf::internal::ArenaStringPtr sdk_version_;
mutable int _cached_size_;
friend void protobuf_InitDefaults_device_2eproto_impl();
friend void protobuf_AddDesc_device_2eproto_impl();
friend void protobuf_AssignDesc_device_2eproto();
friend void protobuf_ShutdownFile_device_2eproto();
void InitAsDefaultInstance();
};
extern ::google::protobuf::internal::ExplicitlyConstructed<GetSdkInfoRes> GetSdkInfoRes_default_instance_;
// ===================================================================
// ===================================================================
#if !PROTOBUF_INLINE_NOT_IN_HEADERS
// EmptyResponse
inline const EmptyResponse* EmptyResponse::internal_default_instance() {
return &EmptyResponse_default_instance_.get();
}
// -------------------------------------------------------------------
// AppDownloadReq
// optional string app_name = 1;
inline void AppDownloadReq::clear_app_name() {
app_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline const ::std::string& AppDownloadReq::app_name() const {
// @@protoc_insertion_point(field_get:deviceapi.AppDownloadReq.app_name)
return app_name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline void AppDownloadReq::set_app_name(const ::std::string& value) {
app_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
// @@protoc_insertion_point(field_set:deviceapi.AppDownloadReq.app_name)
}
inline void AppDownloadReq::set_app_name(const char* value) {
app_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
// @@protoc_insertion_point(field_set_char:deviceapi.AppDownloadReq.app_name)
}
inline void AppDownloadReq::set_app_name(const char* value, size_t size) {
app_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
::std::string(reinterpret_cast<const char*>(value), size));
// @@protoc_insertion_point(field_set_pointer:deviceapi.AppDownloadReq.app_name)
}
inline ::std::string* AppDownloadReq::mutable_app_name() {
// @@protoc_insertion_point(field_mutable:deviceapi.AppDownloadReq.app_name)
return app_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline ::std::string* AppDownloadReq::release_app_name() {
// @@protoc_insertion_point(field_release:deviceapi.AppDownloadReq.app_name)
return app_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline void AppDownloadReq::set_allocated_app_name(::std::string* app_name) {
if (app_name != NULL) {
} else {
}
app_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), app_name);
// @@protoc_insertion_point(field_set_allocated:deviceapi.AppDownloadReq.app_name)
}
inline const AppDownloadReq* AppDownloadReq::internal_default_instance() {
return &AppDownloadReq_default_instance_.get();
}
// -------------------------------------------------------------------
// AppUpdateReq
// optional string app_name = 1;
inline void AppUpdateReq::clear_app_name() {
app_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline const ::std::string& AppUpdateReq::app_name() const {
// @@protoc_insertion_point(field_get:deviceapi.AppUpdateReq.app_name)
return app_name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline void AppUpdateReq::set_app_name(const ::std::string& value) {
app_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
// @@protoc_insertion_point(field_set:deviceapi.AppUpdateReq.app_name)
}
inline void AppUpdateReq::set_app_name(const char* value) {
app_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
// @@protoc_insertion_point(field_set_char:deviceapi.AppUpdateReq.app_name)
}
inline void AppUpdateReq::set_app_name(const char* value, size_t size) {
app_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
::std::string(reinterpret_cast<const char*>(value), size));
// @@protoc_insertion_point(field_set_pointer:deviceapi.AppUpdateReq.app_name)
}
inline ::std::string* AppUpdateReq::mutable_app_name() {
// @@protoc_insertion_point(field_mutable:deviceapi.AppUpdateReq.app_name)
return app_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline ::std::string* AppUpdateReq::release_app_name() {
// @@protoc_insertion_point(field_release:deviceapi.AppUpdateReq.app_name)
return app_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline void AppUpdateReq::set_allocated_app_name(::std::string* app_name) {
if (app_name != NULL) {
} else {
}
app_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), app_name);
// @@protoc_insertion_point(field_set_allocated:deviceapi.AppUpdateReq.app_name)
}
inline const AppUpdateReq* AppUpdateReq::internal_default_instance() {
return &AppUpdateReq_default_instance_.get();
}
// -------------------------------------------------------------------
// AppDeleteReq
// optional string app_name = 1;
inline void AppDeleteReq::clear_app_name() {
app_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline const ::std::string& AppDeleteReq::app_name() const {
// @@protoc_insertion_point(field_get:deviceapi.AppDeleteReq.app_name)
return app_name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline void AppDeleteReq::set_app_name(const ::std::string& value) {
app_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
// @@protoc_insertion_point(field_set:deviceapi.AppDeleteReq.app_name)
}
inline void AppDeleteReq::set_app_name(const char* value) {
app_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
// @@protoc_insertion_point(field_set_char:deviceapi.AppDeleteReq.app_name)
}
inline void AppDeleteReq::set_app_name(const char* value, size_t size) {
app_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
::std::string(reinterpret_cast<const char*>(value), size));
// @@protoc_insertion_point(field_set_pointer:deviceapi.AppDeleteReq.app_name)
}
inline ::std::string* AppDeleteReq::mutable_app_name() {
// @@protoc_insertion_point(field_mutable:deviceapi.AppDeleteReq.app_name)
return app_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline ::std::string* AppDeleteReq::release_app_name() {
// @@protoc_insertion_point(field_release:deviceapi.AppDeleteReq.app_name)
return app_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline void AppDeleteReq::set_allocated_app_name(::std::string* app_name) {
if (app_name != NULL) {
} else {
}
app_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), app_name);
// @@protoc_insertion_point(field_set_allocated:deviceapi.AppDeleteReq.app_name)
}
inline const AppDeleteReq* AppDeleteReq::internal_default_instance() {
return &AppDeleteReq_default_instance_.get();
}
// -------------------------------------------------------------------
// CheckUpdateRes
// optional string se_id = 1;
inline void CheckUpdateRes::clear_se_id() {
se_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline const ::std::string& CheckUpdateRes::se_id() const {
// @@protoc_insertion_point(field_get:deviceapi.CheckUpdateRes.se_id)
return se_id_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline void CheckUpdateRes::set_se_id(const ::std::string& value) {
se_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
// @@protoc_insertion_point(field_set:deviceapi.CheckUpdateRes.se_id)
}
inline void CheckUpdateRes::set_se_id(const char* value) {
se_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
// @@protoc_insertion_point(field_set_char:deviceapi.CheckUpdateRes.se_id)
}
inline void CheckUpdateRes::set_se_id(const char* value, size_t size) {
se_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
::std::string(reinterpret_cast<const char*>(value), size));
// @@protoc_insertion_point(field_set_pointer:deviceapi.CheckUpdateRes.se_id)
}
inline ::std::string* CheckUpdateRes::mutable_se_id() {
// @@protoc_insertion_point(field_mutable:deviceapi.CheckUpdateRes.se_id)
return se_id_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline ::std::string* CheckUpdateRes::release_se_id() {
// @@protoc_insertion_point(field_release:deviceapi.CheckUpdateRes.se_id)
return se_id_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline void CheckUpdateRes::set_allocated_se_id(::std::string* se_id) {
if (se_id != NULL) {
} else {
}
se_id_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), se_id);
// @@protoc_insertion_point(field_set_allocated:deviceapi.CheckUpdateRes.se_id)
}
// optional string sn = 2;
inline void CheckUpdateRes::clear_sn() {
sn_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline const ::std::string& CheckUpdateRes::sn() const {
// @@protoc_insertion_point(field_get:deviceapi.CheckUpdateRes.sn)
return sn_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline void CheckUpdateRes::set_sn(const ::std::string& value) {
sn_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
// @@protoc_insertion_point(field_set:deviceapi.CheckUpdateRes.sn)
}
inline void CheckUpdateRes::set_sn(const char* value) {
sn_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
// @@protoc_insertion_point(field_set_char:deviceapi.CheckUpdateRes.sn)
}
inline void CheckUpdateRes::set_sn(const char* value, size_t size) {
sn_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
::std::string(reinterpret_cast<const char*>(value), size));
// @@protoc_insertion_point(field_set_pointer:deviceapi.CheckUpdateRes.sn)
}
inline ::std::string* CheckUpdateRes::mutable_sn() {
// @@protoc_insertion_point(field_mutable:deviceapi.CheckUpdateRes.sn)
return sn_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline ::std::string* CheckUpdateRes::release_sn() {
// @@protoc_insertion_point(field_release:deviceapi.CheckUpdateRes.sn)
return sn_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline void CheckUpdateRes::set_allocated_sn(::std::string* sn) {
if (sn != NULL) {
} else {
}
sn_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), sn);
// @@protoc_insertion_point(field_set_allocated:deviceapi.CheckUpdateRes.sn)
}
// optional string status = 3;
inline void CheckUpdateRes::clear_status() {
status_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline const ::std::string& CheckUpdateRes::status() const {
// @@protoc_insertion_point(field_get:deviceapi.CheckUpdateRes.status)
return status_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline void CheckUpdateRes::set_status(const ::std::string& value) {
status_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
// @@protoc_insertion_point(field_set:deviceapi.CheckUpdateRes.status)
}
inline void CheckUpdateRes::set_status(const char* value) {
status_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
// @@protoc_insertion_point(field_set_char:deviceapi.CheckUpdateRes.status)
}
inline void CheckUpdateRes::set_status(const char* value, size_t size) {
status_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
::std::string(reinterpret_cast<const char*>(value), size));
// @@protoc_insertion_point(field_set_pointer:deviceapi.CheckUpdateRes.status)
}
inline ::std::string* CheckUpdateRes::mutable_status() {
// @@protoc_insertion_point(field_mutable:deviceapi.CheckUpdateRes.status)
return status_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline ::std::string* CheckUpdateRes::release_status() {
// @@protoc_insertion_point(field_release:deviceapi.CheckUpdateRes.status)
return status_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline void CheckUpdateRes::set_allocated_status(::std::string* status) {
if (status != NULL) {
} else {
}
status_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), status);
// @@protoc_insertion_point(field_set_allocated:deviceapi.CheckUpdateRes.status)
}
// optional string sdk_mode = 4;
inline void CheckUpdateRes::clear_sdk_mode() {
sdk_mode_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline const ::std::string& CheckUpdateRes::sdk_mode() const {
// @@protoc_insertion_point(field_get:deviceapi.CheckUpdateRes.sdk_mode)
return sdk_mode_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline void CheckUpdateRes::set_sdk_mode(const ::std::string& value) {
sdk_mode_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
// @@protoc_insertion_point(field_set:deviceapi.CheckUpdateRes.sdk_mode)
}
inline void CheckUpdateRes::set_sdk_mode(const char* value) {
sdk_mode_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
// @@protoc_insertion_point(field_set_char:deviceapi.CheckUpdateRes.sdk_mode)
}
inline void CheckUpdateRes::set_sdk_mode(const char* value, size_t size) {
sdk_mode_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
::std::string(reinterpret_cast<const char*>(value), size));
// @@protoc_insertion_point(field_set_pointer:deviceapi.CheckUpdateRes.sdk_mode)
}
inline ::std::string* CheckUpdateRes::mutable_sdk_mode() {
// @@protoc_insertion_point(field_mutable:deviceapi.CheckUpdateRes.sdk_mode)
return sdk_mode_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline ::std::string* CheckUpdateRes::release_sdk_mode() {
// @@protoc_insertion_point(field_release:deviceapi.CheckUpdateRes.sdk_mode)
return sdk_mode_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline void CheckUpdateRes::set_allocated_sdk_mode(::std::string* sdk_mode) {
if (sdk_mode != NULL) {
} else {
}
sdk_mode_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), sdk_mode);
// @@protoc_insertion_point(field_set_allocated:deviceapi.CheckUpdateRes.sdk_mode)
}
// repeated .deviceapi.AvailableAppBean available_app_list = 5;
inline int CheckUpdateRes::available_app_list_size() const {
return available_app_list_.size();
}
inline void CheckUpdateRes::clear_available_app_list() {
available_app_list_.Clear();
}
inline const ::deviceapi::AvailableAppBean& CheckUpdateRes::available_app_list(int index) const {
// @@protoc_insertion_point(field_get:deviceapi.CheckUpdateRes.available_app_list)
return available_app_list_.Get(index);
}
inline ::deviceapi::AvailableAppBean* CheckUpdateRes::mutable_available_app_list(int index) {
// @@protoc_insertion_point(field_mutable:deviceapi.CheckUpdateRes.available_app_list)
return available_app_list_.Mutable(index);
}
inline ::deviceapi::AvailableAppBean* CheckUpdateRes::add_available_app_list() {
// @@protoc_insertion_point(field_add:deviceapi.CheckUpdateRes.available_app_list)
return available_app_list_.Add();
}
inline ::google::protobuf::RepeatedPtrField< ::deviceapi::AvailableAppBean >*
CheckUpdateRes::mutable_available_app_list() {
// @@protoc_insertion_point(field_mutable_list:deviceapi.CheckUpdateRes.available_app_list)
return &available_app_list_;
}
inline const ::google::protobuf::RepeatedPtrField< ::deviceapi::AvailableAppBean >&
CheckUpdateRes::available_app_list() const {
// @@protoc_insertion_point(field_list:deviceapi.CheckUpdateRes.available_app_list)
return available_app_list_;
}
inline const CheckUpdateRes* CheckUpdateRes::internal_default_instance() {
return &CheckUpdateRes_default_instance_.get();
}
// -------------------------------------------------------------------
// AvailableAppBean
// optional string app_name = 1;
inline void AvailableAppBean::clear_app_name() {
app_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline const ::std::string& AvailableAppBean::app_name() const {
// @@protoc_insertion_point(field_get:deviceapi.AvailableAppBean.app_name)
return app_name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline void AvailableAppBean::set_app_name(const ::std::string& value) {
app_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
// @@protoc_insertion_point(field_set:deviceapi.AvailableAppBean.app_name)
}
inline void AvailableAppBean::set_app_name(const char* value) {
app_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
// @@protoc_insertion_point(field_set_char:deviceapi.AvailableAppBean.app_name)
}
inline void AvailableAppBean::set_app_name(const char* value, size_t size) {
app_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
::std::string(reinterpret_cast<const char*>(value), size));
// @@protoc_insertion_point(field_set_pointer:deviceapi.AvailableAppBean.app_name)
}
inline ::std::string* AvailableAppBean::mutable_app_name() {
// @@protoc_insertion_point(field_mutable:deviceapi.AvailableAppBean.app_name)
return app_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline ::std::string* AvailableAppBean::release_app_name() {
// @@protoc_insertion_point(field_release:deviceapi.AvailableAppBean.app_name)
return app_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline void AvailableAppBean::set_allocated_app_name(::std::string* app_name) {
if (app_name != NULL) {
} else {
}
app_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), app_name);
// @@protoc_insertion_point(field_set_allocated:deviceapi.AvailableAppBean.app_name)
}
// optional string app_logo = 2;
inline void AvailableAppBean::clear_app_logo() {
app_logo_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline const ::std::string& AvailableAppBean::app_logo() const {
// @@protoc_insertion_point(field_get:deviceapi.AvailableAppBean.app_logo)
return app_logo_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline void AvailableAppBean::set_app_logo(const ::std::string& value) {
app_logo_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
// @@protoc_insertion_point(field_set:deviceapi.AvailableAppBean.app_logo)
}
inline void AvailableAppBean::set_app_logo(const char* value) {
app_logo_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
// @@protoc_insertion_point(field_set_char:deviceapi.AvailableAppBean.app_logo)
}
inline void AvailableAppBean::set_app_logo(const char* value, size_t size) {
app_logo_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
::std::string(reinterpret_cast<const char*>(value), size));
// @@protoc_insertion_point(field_set_pointer:deviceapi.AvailableAppBean.app_logo)
}
inline ::std::string* AvailableAppBean::mutable_app_logo() {
// @@protoc_insertion_point(field_mutable:deviceapi.AvailableAppBean.app_logo)
return app_logo_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline ::std::string* AvailableAppBean::release_app_logo() {
// @@protoc_insertion_point(field_release:deviceapi.AvailableAppBean.app_logo)
return app_logo_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline void AvailableAppBean::set_allocated_app_logo(::std::string* app_logo) {
if (app_logo != NULL) {
} else {
}
app_logo_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), app_logo);
// @@protoc_insertion_point(field_set_allocated:deviceapi.AvailableAppBean.app_logo)
}
// optional string installed_version = 3;
inline void AvailableAppBean::clear_installed_version() {
installed_version_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline const ::std::string& AvailableAppBean::installed_version() const {
// @@protoc_insertion_point(field_get:deviceapi.AvailableAppBean.installed_version)
return installed_version_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline void AvailableAppBean::set_installed_version(const ::std::string& value) {
installed_version_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
// @@protoc_insertion_point(field_set:deviceapi.AvailableAppBean.installed_version)
}
inline void AvailableAppBean::set_installed_version(const char* value) {
installed_version_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
// @@protoc_insertion_point(field_set_char:deviceapi.AvailableAppBean.installed_version)
}
inline void AvailableAppBean::set_installed_version(const char* value, size_t size) {
installed_version_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
::std::string(reinterpret_cast<const char*>(value), size));
// @@protoc_insertion_point(field_set_pointer:deviceapi.AvailableAppBean.installed_version)
}
inline ::std::string* AvailableAppBean::mutable_installed_version() {
// @@protoc_insertion_point(field_mutable:deviceapi.AvailableAppBean.installed_version)
return installed_version_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline ::std::string* AvailableAppBean::release_installed_version() {
// @@protoc_insertion_point(field_release:deviceapi.AvailableAppBean.installed_version)
return installed_version_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline void AvailableAppBean::set_allocated_installed_version(::std::string* installed_version) {
if (installed_version != NULL) {
} else {
}
installed_version_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), installed_version);
// @@protoc_insertion_point(field_set_allocated:deviceapi.AvailableAppBean.installed_version)
}
// optional string last_updated = 4;
inline void AvailableAppBean::clear_last_updated() {
last_updated_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline const ::std::string& AvailableAppBean::last_updated() const {
// @@protoc_insertion_point(field_get:deviceapi.AvailableAppBean.last_updated)
return last_updated_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline void AvailableAppBean::set_last_updated(const ::std::string& value) {
last_updated_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
// @@protoc_insertion_point(field_set:deviceapi.AvailableAppBean.last_updated)
}
inline void AvailableAppBean::set_last_updated(const char* value) {
last_updated_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
// @@protoc_insertion_point(field_set_char:deviceapi.AvailableAppBean.last_updated)
}
inline void AvailableAppBean::set_last_updated(const char* value, size_t size) {
last_updated_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
::std::string(reinterpret_cast<const char*>(value), size));
// @@protoc_insertion_point(field_set_pointer:deviceapi.AvailableAppBean.last_updated)
}
inline ::std::string* AvailableAppBean::mutable_last_updated() {
// @@protoc_insertion_point(field_mutable:deviceapi.AvailableAppBean.last_updated)
return last_updated_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline ::std::string* AvailableAppBean::release_last_updated() {
// @@protoc_insertion_point(field_release:deviceapi.AvailableAppBean.last_updated)
return last_updated_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline void AvailableAppBean::set_allocated_last_updated(::std::string* last_updated) {
if (last_updated != NULL) {
} else {
}
last_updated_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), last_updated);
// @@protoc_insertion_point(field_set_allocated:deviceapi.AvailableAppBean.last_updated)
}
// optional string latest_version = 5;
inline void AvailableAppBean::clear_latest_version() {
latest_version_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline const ::std::string& AvailableAppBean::latest_version() const {
// @@protoc_insertion_point(field_get:deviceapi.AvailableAppBean.latest_version)
return latest_version_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline void AvailableAppBean::set_latest_version(const ::std::string& value) {
latest_version_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
// @@protoc_insertion_point(field_set:deviceapi.AvailableAppBean.latest_version)
}
inline void AvailableAppBean::set_latest_version(const char* value) {
latest_version_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
// @@protoc_insertion_point(field_set_char:deviceapi.AvailableAppBean.latest_version)
}
inline void AvailableAppBean::set_latest_version(const char* value, size_t size) {
latest_version_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
::std::string(reinterpret_cast<const char*>(value), size));
// @@protoc_insertion_point(field_set_pointer:deviceapi.AvailableAppBean.latest_version)
}
inline ::std::string* AvailableAppBean::mutable_latest_version() {
// @@protoc_insertion_point(field_mutable:deviceapi.AvailableAppBean.latest_version)
return latest_version_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline ::std::string* AvailableAppBean::release_latest_version() {
// @@protoc_insertion_point(field_release:deviceapi.AvailableAppBean.latest_version)
return latest_version_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline void AvailableAppBean::set_allocated_latest_version(::std::string* latest_version) {
if (latest_version != NULL) {
} else {
}
latest_version_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), latest_version);
// @@protoc_insertion_point(field_set_allocated:deviceapi.AvailableAppBean.latest_version)
}
// optional string install_mode = 6;
inline void AvailableAppBean::clear_install_mode() {
install_mode_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline const ::std::string& AvailableAppBean::install_mode() const {
// @@protoc_insertion_point(field_get:deviceapi.AvailableAppBean.install_mode)
return install_mode_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline void AvailableAppBean::set_install_mode(const ::std::string& value) {
install_mode_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
// @@protoc_insertion_point(field_set:deviceapi.AvailableAppBean.install_mode)
}
inline void AvailableAppBean::set_install_mode(const char* value) {
install_mode_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
// @@protoc_insertion_point(field_set_char:deviceapi.AvailableAppBean.install_mode)
}
inline void AvailableAppBean::set_install_mode(const char* value, size_t size) {
install_mode_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
::std::string(reinterpret_cast<const char*>(value), size));
// @@protoc_insertion_point(field_set_pointer:deviceapi.AvailableAppBean.install_mode)
}
inline ::std::string* AvailableAppBean::mutable_install_mode() {
// @@protoc_insertion_point(field_mutable:deviceapi.AvailableAppBean.install_mode)
return install_mode_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline ::std::string* AvailableAppBean::release_install_mode() {
// @@protoc_insertion_point(field_release:deviceapi.AvailableAppBean.install_mode)
return install_mode_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline void AvailableAppBean::set_allocated_install_mode(::std::string* install_mode) {
if (install_mode != NULL) {
} else {
}
install_mode_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), install_mode);
// @@protoc_insertion_point(field_set_allocated:deviceapi.AvailableAppBean.install_mode)
}
inline const AvailableAppBean* AvailableAppBean::internal_default_instance() {
return &AvailableAppBean_default_instance_.get();
}
// -------------------------------------------------------------------
// BindCheckReq
// optional string file_path = 1;
inline void BindCheckReq::clear_file_path() {
file_path_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline const ::std::string& BindCheckReq::file_path() const {
// @@protoc_insertion_point(field_get:deviceapi.BindCheckReq.file_path)
return file_path_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline void BindCheckReq::set_file_path(const ::std::string& value) {
file_path_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
// @@protoc_insertion_point(field_set:deviceapi.BindCheckReq.file_path)
}
inline void BindCheckReq::set_file_path(const char* value) {
file_path_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
// @@protoc_insertion_point(field_set_char:deviceapi.BindCheckReq.file_path)
}
inline void BindCheckReq::set_file_path(const char* value, size_t size) {
file_path_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
::std::string(reinterpret_cast<const char*>(value), size));
// @@protoc_insertion_point(field_set_pointer:deviceapi.BindCheckReq.file_path)
}
inline ::std::string* BindCheckReq::mutable_file_path() {
// @@protoc_insertion_point(field_mutable:deviceapi.BindCheckReq.file_path)
return file_path_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline ::std::string* BindCheckReq::release_file_path() {
// @@protoc_insertion_point(field_release:deviceapi.BindCheckReq.file_path)
return file_path_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline void BindCheckReq::set_allocated_file_path(::std::string* file_path) {
if (file_path != NULL) {
} else {
}
file_path_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), file_path);
// @@protoc_insertion_point(field_set_allocated:deviceapi.BindCheckReq.file_path)
}
inline const BindCheckReq* BindCheckReq::internal_default_instance() {
return &BindCheckReq_default_instance_.get();
}
// -------------------------------------------------------------------
// BindCheckRes
// optional string bind_status = 1;
inline void BindCheckRes::clear_bind_status() {
bind_status_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline const ::std::string& BindCheckRes::bind_status() const {
// @@protoc_insertion_point(field_get:deviceapi.BindCheckRes.bind_status)
return bind_status_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline void BindCheckRes::set_bind_status(const ::std::string& value) {
bind_status_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
// @@protoc_insertion_point(field_set:deviceapi.BindCheckRes.bind_status)
}
inline void BindCheckRes::set_bind_status(const char* value) {
bind_status_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
// @@protoc_insertion_point(field_set_char:deviceapi.BindCheckRes.bind_status)
}
inline void BindCheckRes::set_bind_status(const char* value, size_t size) {
bind_status_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
::std::string(reinterpret_cast<const char*>(value), size));
// @@protoc_insertion_point(field_set_pointer:deviceapi.BindCheckRes.bind_status)
}
inline ::std::string* BindCheckRes::mutable_bind_status() {
// @@protoc_insertion_point(field_mutable:deviceapi.BindCheckRes.bind_status)
return bind_status_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline ::std::string* BindCheckRes::release_bind_status() {
// @@protoc_insertion_point(field_release:deviceapi.BindCheckRes.bind_status)
return bind_status_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline void BindCheckRes::set_allocated_bind_status(::std::string* bind_status) {
if (bind_status != NULL) {
} else {
}
bind_status_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), bind_status);
// @@protoc_insertion_point(field_set_allocated:deviceapi.BindCheckRes.bind_status)
}
inline const BindCheckRes* BindCheckRes::internal_default_instance() {
return &BindCheckRes_default_instance_.get();
}
// -------------------------------------------------------------------
// BindAcquireReq
// optional string bind_code = 1;
inline void BindAcquireReq::clear_bind_code() {
bind_code_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline const ::std::string& BindAcquireReq::bind_code() const {
// @@protoc_insertion_point(field_get:deviceapi.BindAcquireReq.bind_code)
return bind_code_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline void BindAcquireReq::set_bind_code(const ::std::string& value) {
bind_code_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
// @@protoc_insertion_point(field_set:deviceapi.BindAcquireReq.bind_code)
}
inline void BindAcquireReq::set_bind_code(const char* value) {
bind_code_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
// @@protoc_insertion_point(field_set_char:deviceapi.BindAcquireReq.bind_code)
}
inline void BindAcquireReq::set_bind_code(const char* value, size_t size) {
bind_code_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
::std::string(reinterpret_cast<const char*>(value), size));
// @@protoc_insertion_point(field_set_pointer:deviceapi.BindAcquireReq.bind_code)
}
inline ::std::string* BindAcquireReq::mutable_bind_code() {
// @@protoc_insertion_point(field_mutable:deviceapi.BindAcquireReq.bind_code)
return bind_code_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline ::std::string* BindAcquireReq::release_bind_code() {
// @@protoc_insertion_point(field_release:deviceapi.BindAcquireReq.bind_code)
return bind_code_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline void BindAcquireReq::set_allocated_bind_code(::std::string* bind_code) {
if (bind_code != NULL) {
} else {
}
bind_code_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), bind_code);
// @@protoc_insertion_point(field_set_allocated:deviceapi.BindAcquireReq.bind_code)
}
inline const BindAcquireReq* BindAcquireReq::internal_default_instance() {
return &BindAcquireReq_default_instance_.get();
}
// -------------------------------------------------------------------
// BindAcquireRes
// optional string bind_result = 1;
inline void BindAcquireRes::clear_bind_result() {
bind_result_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline const ::std::string& BindAcquireRes::bind_result() const {
// @@protoc_insertion_point(field_get:deviceapi.BindAcquireRes.bind_result)
return bind_result_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline void BindAcquireRes::set_bind_result(const ::std::string& value) {
bind_result_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
// @@protoc_insertion_point(field_set:deviceapi.BindAcquireRes.bind_result)
}
inline void BindAcquireRes::set_bind_result(const char* value) {
bind_result_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
// @@protoc_insertion_point(field_set_char:deviceapi.BindAcquireRes.bind_result)
}
inline void BindAcquireRes::set_bind_result(const char* value, size_t size) {
bind_result_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
::std::string(reinterpret_cast<const char*>(value), size));
// @@protoc_insertion_point(field_set_pointer:deviceapi.BindAcquireRes.bind_result)
}
inline ::std::string* BindAcquireRes::mutable_bind_result() {
// @@protoc_insertion_point(field_mutable:deviceapi.BindAcquireRes.bind_result)
return bind_result_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline ::std::string* BindAcquireRes::release_bind_result() {
// @@protoc_insertion_point(field_release:deviceapi.BindAcquireRes.bind_result)
return bind_result_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline void BindAcquireRes::set_allocated_bind_result(::std::string* bind_result) {
if (bind_result != NULL) {
} else {
}
bind_result_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), bind_result);
// @@protoc_insertion_point(field_set_allocated:deviceapi.BindAcquireRes.bind_result)
}
inline const BindAcquireRes* BindAcquireRes::internal_default_instance() {
return &BindAcquireRes_default_instance_.get();
}
// -------------------------------------------------------------------
// GetSeidRes
// optional string seid = 1;
inline void GetSeidRes::clear_seid() {
seid_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline const ::std::string& GetSeidRes::seid() const {
// @@protoc_insertion_point(field_get:deviceapi.GetSeidRes.seid)
return seid_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline void GetSeidRes::set_seid(const ::std::string& value) {
seid_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
// @@protoc_insertion_point(field_set:deviceapi.GetSeidRes.seid)
}
inline void GetSeidRes::set_seid(const char* value) {
seid_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
// @@protoc_insertion_point(field_set_char:deviceapi.GetSeidRes.seid)
}
inline void GetSeidRes::set_seid(const char* value, size_t size) {
seid_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
::std::string(reinterpret_cast<const char*>(value), size));
// @@protoc_insertion_point(field_set_pointer:deviceapi.GetSeidRes.seid)
}
inline ::std::string* GetSeidRes::mutable_seid() {
// @@protoc_insertion_point(field_mutable:deviceapi.GetSeidRes.seid)
return seid_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline ::std::string* GetSeidRes::release_seid() {
// @@protoc_insertion_point(field_release:deviceapi.GetSeidRes.seid)
return seid_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline void GetSeidRes::set_allocated_seid(::std::string* seid) {
if (seid != NULL) {
} else {
}
seid_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), seid);
// @@protoc_insertion_point(field_set_allocated:deviceapi.GetSeidRes.seid)
}
inline const GetSeidRes* GetSeidRes::internal_default_instance() {
return &GetSeidRes_default_instance_.get();
}
// -------------------------------------------------------------------
// GetSnRes
// optional string sn = 1;
inline void GetSnRes::clear_sn() {
sn_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline const ::std::string& GetSnRes::sn() const {
// @@protoc_insertion_point(field_get:deviceapi.GetSnRes.sn)
return sn_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline void GetSnRes::set_sn(const ::std::string& value) {
sn_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
// @@protoc_insertion_point(field_set:deviceapi.GetSnRes.sn)
}
inline void GetSnRes::set_sn(const char* value) {
sn_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
// @@protoc_insertion_point(field_set_char:deviceapi.GetSnRes.sn)
}
inline void GetSnRes::set_sn(const char* value, size_t size) {
sn_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
::std::string(reinterpret_cast<const char*>(value), size));
// @@protoc_insertion_point(field_set_pointer:deviceapi.GetSnRes.sn)
}
inline ::std::string* GetSnRes::mutable_sn() {
// @@protoc_insertion_point(field_mutable:deviceapi.GetSnRes.sn)
return sn_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline ::std::string* GetSnRes::release_sn() {
// @@protoc_insertion_point(field_release:deviceapi.GetSnRes.sn)
return sn_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline void GetSnRes::set_allocated_sn(::std::string* sn) {
if (sn != NULL) {
} else {
}
sn_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), sn);
// @@protoc_insertion_point(field_set_allocated:deviceapi.GetSnRes.sn)
}
inline const GetSnRes* GetSnRes::internal_default_instance() {
return &GetSnRes_default_instance_.get();
}
// -------------------------------------------------------------------
// GetRamSizeRes
// optional string ram_size = 1;
inline void GetRamSizeRes::clear_ram_size() {
ram_size_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline const ::std::string& GetRamSizeRes::ram_size() const {
// @@protoc_insertion_point(field_get:deviceapi.GetRamSizeRes.ram_size)
return ram_size_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline void GetRamSizeRes::set_ram_size(const ::std::string& value) {
ram_size_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
// @@protoc_insertion_point(field_set:deviceapi.GetRamSizeRes.ram_size)
}
inline void GetRamSizeRes::set_ram_size(const char* value) {
ram_size_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
// @@protoc_insertion_point(field_set_char:deviceapi.GetRamSizeRes.ram_size)
}
inline void GetRamSizeRes::set_ram_size(const char* value, size_t size) {
ram_size_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
::std::string(reinterpret_cast<const char*>(value), size));
// @@protoc_insertion_point(field_set_pointer:deviceapi.GetRamSizeRes.ram_size)
}
inline ::std::string* GetRamSizeRes::mutable_ram_size() {
// @@protoc_insertion_point(field_mutable:deviceapi.GetRamSizeRes.ram_size)
return ram_size_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline ::std::string* GetRamSizeRes::release_ram_size() {
// @@protoc_insertion_point(field_release:deviceapi.GetRamSizeRes.ram_size)
return ram_size_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline void GetRamSizeRes::set_allocated_ram_size(::std::string* ram_size) {
if (ram_size != NULL) {
} else {
}
ram_size_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ram_size);
// @@protoc_insertion_point(field_set_allocated:deviceapi.GetRamSizeRes.ram_size)
}
inline const GetRamSizeRes* GetRamSizeRes::internal_default_instance() {
return &GetRamSizeRes_default_instance_.get();
}
// -------------------------------------------------------------------
// GetFirmwareVersionRes
// optional string firmware_version = 1;
inline void GetFirmwareVersionRes::clear_firmware_version() {
firmware_version_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline const ::std::string& GetFirmwareVersionRes::firmware_version() const {
// @@protoc_insertion_point(field_get:deviceapi.GetFirmwareVersionRes.firmware_version)
return firmware_version_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline void GetFirmwareVersionRes::set_firmware_version(const ::std::string& value) {
firmware_version_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
// @@protoc_insertion_point(field_set:deviceapi.GetFirmwareVersionRes.firmware_version)
}
inline void GetFirmwareVersionRes::set_firmware_version(const char* value) {
firmware_version_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
// @@protoc_insertion_point(field_set_char:deviceapi.GetFirmwareVersionRes.firmware_version)
}
inline void GetFirmwareVersionRes::set_firmware_version(const char* value, size_t size) {
firmware_version_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
::std::string(reinterpret_cast<const char*>(value), size));
// @@protoc_insertion_point(field_set_pointer:deviceapi.GetFirmwareVersionRes.firmware_version)
}
inline ::std::string* GetFirmwareVersionRes::mutable_firmware_version() {
// @@protoc_insertion_point(field_mutable:deviceapi.GetFirmwareVersionRes.firmware_version)
return firmware_version_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline ::std::string* GetFirmwareVersionRes::release_firmware_version() {
// @@protoc_insertion_point(field_release:deviceapi.GetFirmwareVersionRes.firmware_version)
return firmware_version_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline void GetFirmwareVersionRes::set_allocated_firmware_version(::std::string* firmware_version) {
if (firmware_version != NULL) {
} else {
}
firmware_version_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), firmware_version);
// @@protoc_insertion_point(field_set_allocated:deviceapi.GetFirmwareVersionRes.firmware_version)
}
inline const GetFirmwareVersionRes* GetFirmwareVersionRes::internal_default_instance() {
return &GetFirmwareVersionRes_default_instance_.get();
}
// -------------------------------------------------------------------
// GetBatteryPowerRes
// optional string battery_power = 1;
inline void GetBatteryPowerRes::clear_battery_power() {
battery_power_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline const ::std::string& GetBatteryPowerRes::battery_power() const {
// @@protoc_insertion_point(field_get:deviceapi.GetBatteryPowerRes.battery_power)
return battery_power_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline void GetBatteryPowerRes::set_battery_power(const ::std::string& value) {
battery_power_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
// @@protoc_insertion_point(field_set:deviceapi.GetBatteryPowerRes.battery_power)
}
inline void GetBatteryPowerRes::set_battery_power(const char* value) {
battery_power_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
// @@protoc_insertion_point(field_set_char:deviceapi.GetBatteryPowerRes.battery_power)
}
inline void GetBatteryPowerRes::set_battery_power(const char* value, size_t size) {
battery_power_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
::std::string(reinterpret_cast<const char*>(value), size));
// @@protoc_insertion_point(field_set_pointer:deviceapi.GetBatteryPowerRes.battery_power)
}
inline ::std::string* GetBatteryPowerRes::mutable_battery_power() {
// @@protoc_insertion_point(field_mutable:deviceapi.GetBatteryPowerRes.battery_power)
return battery_power_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline ::std::string* GetBatteryPowerRes::release_battery_power() {
// @@protoc_insertion_point(field_release:deviceapi.GetBatteryPowerRes.battery_power)
return battery_power_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline void GetBatteryPowerRes::set_allocated_battery_power(::std::string* battery_power) {
if (battery_power != NULL) {
} else {
}
battery_power_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), battery_power);
// @@protoc_insertion_point(field_set_allocated:deviceapi.GetBatteryPowerRes.battery_power)
}
inline const GetBatteryPowerRes* GetBatteryPowerRes::internal_default_instance() {
return &GetBatteryPowerRes_default_instance_.get();
}
// -------------------------------------------------------------------
// GetLifeTimeRes
// optional string life_time = 1;
inline void GetLifeTimeRes::clear_life_time() {
life_time_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline const ::std::string& GetLifeTimeRes::life_time() const {
// @@protoc_insertion_point(field_get:deviceapi.GetLifeTimeRes.life_time)
return life_time_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline void GetLifeTimeRes::set_life_time(const ::std::string& value) {
life_time_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
// @@protoc_insertion_point(field_set:deviceapi.GetLifeTimeRes.life_time)
}
inline void GetLifeTimeRes::set_life_time(const char* value) {
life_time_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
// @@protoc_insertion_point(field_set_char:deviceapi.GetLifeTimeRes.life_time)
}
inline void GetLifeTimeRes::set_life_time(const char* value, size_t size) {
life_time_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
::std::string(reinterpret_cast<const char*>(value), size));
// @@protoc_insertion_point(field_set_pointer:deviceapi.GetLifeTimeRes.life_time)
}
inline ::std::string* GetLifeTimeRes::mutable_life_time() {
// @@protoc_insertion_point(field_mutable:deviceapi.GetLifeTimeRes.life_time)
return life_time_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline ::std::string* GetLifeTimeRes::release_life_time() {
// @@protoc_insertion_point(field_release:deviceapi.GetLifeTimeRes.life_time)
return life_time_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline void GetLifeTimeRes::set_allocated_life_time(::std::string* life_time) {
if (life_time != NULL) {
} else {
}
life_time_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), life_time);
// @@protoc_insertion_point(field_set_allocated:deviceapi.GetLifeTimeRes.life_time)
}
inline const GetLifeTimeRes* GetLifeTimeRes::internal_default_instance() {
return &GetLifeTimeRes_default_instance_.get();
}
// -------------------------------------------------------------------
// GetBleNameRes
// optional string ble_name = 1;
inline void GetBleNameRes::clear_ble_name() {
ble_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline const ::std::string& GetBleNameRes::ble_name() const {
// @@protoc_insertion_point(field_get:deviceapi.GetBleNameRes.ble_name)
return ble_name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline void GetBleNameRes::set_ble_name(const ::std::string& value) {
ble_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
// @@protoc_insertion_point(field_set:deviceapi.GetBleNameRes.ble_name)
}
inline void GetBleNameRes::set_ble_name(const char* value) {
ble_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
// @@protoc_insertion_point(field_set_char:deviceapi.GetBleNameRes.ble_name)
}
inline void GetBleNameRes::set_ble_name(const char* value, size_t size) {
ble_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
::std::string(reinterpret_cast<const char*>(value), size));
// @@protoc_insertion_point(field_set_pointer:deviceapi.GetBleNameRes.ble_name)
}
inline ::std::string* GetBleNameRes::mutable_ble_name() {
// @@protoc_insertion_point(field_mutable:deviceapi.GetBleNameRes.ble_name)
return ble_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline ::std::string* GetBleNameRes::release_ble_name() {
// @@protoc_insertion_point(field_release:deviceapi.GetBleNameRes.ble_name)
return ble_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline void GetBleNameRes::set_allocated_ble_name(::std::string* ble_name) {
if (ble_name != NULL) {
} else {
}
ble_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ble_name);
// @@protoc_insertion_point(field_set_allocated:deviceapi.GetBleNameRes.ble_name)
}
inline const GetBleNameRes* GetBleNameRes::internal_default_instance() {
return &GetBleNameRes_default_instance_.get();
}
// -------------------------------------------------------------------
// SetBleNameReq
// optional string ble_name = 1;
inline void SetBleNameReq::clear_ble_name() {
ble_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline const ::std::string& SetBleNameReq::ble_name() const {
// @@protoc_insertion_point(field_get:deviceapi.SetBleNameReq.ble_name)
return ble_name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline void SetBleNameReq::set_ble_name(const ::std::string& value) {
ble_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
// @@protoc_insertion_point(field_set:deviceapi.SetBleNameReq.ble_name)
}
inline void SetBleNameReq::set_ble_name(const char* value) {
ble_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
// @@protoc_insertion_point(field_set_char:deviceapi.SetBleNameReq.ble_name)
}
inline void SetBleNameReq::set_ble_name(const char* value, size_t size) {
ble_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
::std::string(reinterpret_cast<const char*>(value), size));
// @@protoc_insertion_point(field_set_pointer:deviceapi.SetBleNameReq.ble_name)
}
inline ::std::string* SetBleNameReq::mutable_ble_name() {
// @@protoc_insertion_point(field_mutable:deviceapi.SetBleNameReq.ble_name)
return ble_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline ::std::string* SetBleNameReq::release_ble_name() {
// @@protoc_insertion_point(field_release:deviceapi.SetBleNameReq.ble_name)
return ble_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline void SetBleNameReq::set_allocated_ble_name(::std::string* ble_name) {
if (ble_name != NULL) {
} else {
}
ble_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ble_name);
// @@protoc_insertion_point(field_set_allocated:deviceapi.SetBleNameReq.ble_name)
}
inline const SetBleNameReq* SetBleNameReq::internal_default_instance() {
return &SetBleNameReq_default_instance_.get();
}
// -------------------------------------------------------------------
// GetBleVersionRes
// optional string ble_version = 1;
inline void GetBleVersionRes::clear_ble_version() {
ble_version_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline const ::std::string& GetBleVersionRes::ble_version() const {
// @@protoc_insertion_point(field_get:deviceapi.GetBleVersionRes.ble_version)
return ble_version_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline void GetBleVersionRes::set_ble_version(const ::std::string& value) {
ble_version_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
// @@protoc_insertion_point(field_set:deviceapi.GetBleVersionRes.ble_version)
}
inline void GetBleVersionRes::set_ble_version(const char* value) {
ble_version_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
// @@protoc_insertion_point(field_set_char:deviceapi.GetBleVersionRes.ble_version)
}
inline void GetBleVersionRes::set_ble_version(const char* value, size_t size) {
ble_version_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
::std::string(reinterpret_cast<const char*>(value), size));
// @@protoc_insertion_point(field_set_pointer:deviceapi.GetBleVersionRes.ble_version)
}
inline ::std::string* GetBleVersionRes::mutable_ble_version() {
// @@protoc_insertion_point(field_mutable:deviceapi.GetBleVersionRes.ble_version)
return ble_version_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline ::std::string* GetBleVersionRes::release_ble_version() {
// @@protoc_insertion_point(field_release:deviceapi.GetBleVersionRes.ble_version)
return ble_version_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline void GetBleVersionRes::set_allocated_ble_version(::std::string* ble_version) {
if (ble_version != NULL) {
} else {
}
ble_version_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ble_version);
// @@protoc_insertion_point(field_set_allocated:deviceapi.GetBleVersionRes.ble_version)
}
inline const GetBleVersionRes* GetBleVersionRes::internal_default_instance() {
return &GetBleVersionRes_default_instance_.get();
}
// -------------------------------------------------------------------
// GetSdkInfoRes
// optional string sdk_version = 1;
inline void GetSdkInfoRes::clear_sdk_version() {
sdk_version_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline const ::std::string& GetSdkInfoRes::sdk_version() const {
// @@protoc_insertion_point(field_get:deviceapi.GetSdkInfoRes.sdk_version)
return sdk_version_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline void GetSdkInfoRes::set_sdk_version(const ::std::string& value) {
sdk_version_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
// @@protoc_insertion_point(field_set:deviceapi.GetSdkInfoRes.sdk_version)
}
inline void GetSdkInfoRes::set_sdk_version(const char* value) {
sdk_version_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
// @@protoc_insertion_point(field_set_char:deviceapi.GetSdkInfoRes.sdk_version)
}
inline void GetSdkInfoRes::set_sdk_version(const char* value, size_t size) {
sdk_version_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
::std::string(reinterpret_cast<const char*>(value), size));
// @@protoc_insertion_point(field_set_pointer:deviceapi.GetSdkInfoRes.sdk_version)
}
inline ::std::string* GetSdkInfoRes::mutable_sdk_version() {
// @@protoc_insertion_point(field_mutable:deviceapi.GetSdkInfoRes.sdk_version)
return sdk_version_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline ::std::string* GetSdkInfoRes::release_sdk_version() {
// @@protoc_insertion_point(field_release:deviceapi.GetSdkInfoRes.sdk_version)
return sdk_version_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline void GetSdkInfoRes::set_allocated_sdk_version(::std::string* sdk_version) {
if (sdk_version != NULL) {
} else {
}
sdk_version_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), sdk_version);
// @@protoc_insertion_point(field_set_allocated:deviceapi.GetSdkInfoRes.sdk_version)
}
inline const GetSdkInfoRes* GetSdkInfoRes::internal_default_instance() {
return &GetSdkInfoRes_default_instance_.get();
}
#endif // !PROTOBUF_INLINE_NOT_IN_HEADERS
// -------------------------------------------------------------------
// -------------------------------------------------------------------
// -------------------------------------------------------------------
// -------------------------------------------------------------------
// -------------------------------------------------------------------
// -------------------------------------------------------------------
// -------------------------------------------------------------------
// -------------------------------------------------------------------
// -------------------------------------------------------------------
// -------------------------------------------------------------------
// -------------------------------------------------------------------
// -------------------------------------------------------------------
// -------------------------------------------------------------------
// -------------------------------------------------------------------
// -------------------------------------------------------------------
// -------------------------------------------------------------------
// -------------------------------------------------------------------
// -------------------------------------------------------------------
// -------------------------------------------------------------------
// @@protoc_insertion_point(namespace_scope)
} // namespace deviceapi
// @@protoc_insertion_point(global_scope)
#endif // PROTOBUF_device_2eproto__INCLUDED
|
15f1f04991b23fe3c2bd4258b7b65a546b42729c
|
eb2f9fa59f3f4951f10652623d8f1377d2bd932e
|
/lab1/Geometry/Circle.cpp
|
c90b2d6a75bc4b54c95bfe824211eecf1168fd41
|
[] |
no_license
|
Sparklll/cpp-labs
|
f0209cf4555cbbef642a043741b360fa03aa65e7
|
967f5326da7a0294675714fadabcd11340b871b7
|
refs/heads/master
| 2022-04-22T18:57:21.585119
| 2020-04-20T22:16:23
| 2020-04-20T22:16:23
| 250,391,782
| 1
| 3
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 699
|
cpp
|
Circle.cpp
|
#include "Circle.h"
Circle::Circle(QPointF point, QGraphicsItem *parent) : Figure(point, parent) {}
void Circle::paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget)
{
painter->setPen(*getFigurePen());
painter->setBrush(*getFigureBrush());
if (isCaptured()) {
painter->setBrush(QColor(118, 39, 171, 255));
}
painter->drawEllipse(QRectF(-80, -80, 160, 160));
}
QRectF Circle::boundingRect() const
{
return QRectF(-80, -80, 160, 160);
}
qreal Circle::getFigureArea() const
{
return (int) (getFigureScale() * M_PI * qPow(80, 2));
}
qreal Circle::getFigurePerimeter() const
{
return (int) (getFigureScale() * 2 * M_PI * 80);
}
|
752b6b512841ae24aeb01b48166369a60992fc8f
|
19f7378983b3d4c7c7ac2093a9bb2c318cdfb049
|
/CSharp/TSCloud_WINCPP_TEST/TSCloud_WINCPP_TESTDlg.cpp
|
d0d37e152c66dd60c8789e91548259658a19ab38
|
[] |
no_license
|
workon3d/3dsprint_cloud_sdk
|
85b757607a320a0a54bab7cab18b872e9892cf1c
|
33a120506ff796b96caeec90ac198118e96a8bab
|
refs/heads/master
| 2021-01-17T20:56:25.375160
| 2016-03-18T23:11:35
| 2016-03-18T23:11:35
| 24,964,165
| 0
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 3,273
|
cpp
|
TSCloud_WINCPP_TESTDlg.cpp
|
// TP2_WINCPP_TESTDlg.cpp : implementation file
//
#include "stdafx.h"
#include "TSCloud_WINCPP_TEST.h"
#include "TSCloud_WINCPP_TESTDlg.h"
#include "afxdialogex.h"
#include <string>
#include "../TSCloud_WINCPP_SDK/include/TSCloud_SDK.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#endif
using namespace TDSPRINT::Cloud::WINCPP_SDK;
// CTP2_WINCPP_TESTDlg dialog
CTP2_WINCPP_TESTDlg::CTP2_WINCPP_TESTDlg(CWnd* pParent /*=NULL*/)
: CDialogEx(CTP2_WINCPP_TESTDlg::IDD, pParent)
{
m_hIcon = AfxGetApp()->LoadIcon(IDR_MAINFRAME);
}
void CTP2_WINCPP_TESTDlg::DoDataExchange(CDataExchange* pDX)
{
CDialogEx::DoDataExchange(pDX);
}
BEGIN_MESSAGE_MAP(CTP2_WINCPP_TESTDlg, CDialogEx)
ON_WM_PAINT()
ON_WM_QUERYDRAGICON()
END_MESSAGE_MAP()
// CTP2_WINCPP_TESTDlg message handlers
BOOL CTP2_WINCPP_TESTDlg::OnInitDialog()
{
CDialogEx::OnInitDialog();
// Set the icon for this dialog. The framework does this automatically
// when the application's main window is not a dialog
SetIcon(m_hIcon, TRUE); // Set big icon
SetIcon(m_hIcon, FALSE); // Set small icon
// TODO: Add extra initialization here
TDSPRINT::Cloud::WINCPP_SDK::PrinterAPI* test = TDSPRINT::Cloud::WINCPP_SDK::createPrinterAPI(std::wstring(L"http://192.168.1.163:3000"));
// std::wstring result = test->authenticate();
std::wstring email = test->authenticate(std::wstring(L"be595d04ae9a1222c6b031ad9eb36132"));
test->CreateAsync(std::wstring(L"Test_PC"), std::wstring(L"{\"id\": \"00-26-B9-E2-FA-67\", \"name\": \"test\"}"));
// test->BatchUpdate(std::wstring(L"{\"printers\":[{\"complete_percentage\":100,\"device_type\":2005,\"engine_type\":3,\"id\":\"00-26-B9-E2-FA-68\",\"ip\":\"192.168.2.3\",\"material\":\"\",\"model_name\":\"Projet 360\",\"name\":\"VISPOWER-PC\",\"queue\":[{\"create_time\":\"2014-10-07T23:30:04Z\",\"filename\":\"\",\"id\":\"00-26-B9-E2-FA-68-cylinder_20141007162943\",\"material\":\"\",\"name\":\"cylinder_20141007162943\",\"remaining_time\":0,\"status\":0},{\"create_time\":\"2014-10-07T23:27:56Z\",\"filename\":\"\",\"id\":\"00-26-B9-E2-FA-68-cylinder_20141007152000\",\"material\":\"\",\"name\":\"cylinder_20141007152000\",\"remaining_time\":0,\"status\":2}],\"remaining_time\":0,\"status\":1}],\"update_time\":\"2014-10-08T22:24:15Z\"}"));
return TRUE; // return TRUE unless you set the focus to a control
}
// If you add a minimize button to your dialog, you will need the code below
// to draw the icon. For MFC applications using the document/view model,
// this is automatically done for you by the framework.
void CTP2_WINCPP_TESTDlg::OnPaint()
{
if (IsIconic())
{
CPaintDC dc(this); // device context for painting
SendMessage(WM_ICONERASEBKGND, reinterpret_cast<WPARAM>(dc.GetSafeHdc()), 0);
// Center icon in client rectangle
int cxIcon = GetSystemMetrics(SM_CXICON);
int cyIcon = GetSystemMetrics(SM_CYICON);
CRect rect;
GetClientRect(&rect);
int x = (rect.Width() - cxIcon + 1) / 2;
int y = (rect.Height() - cyIcon + 1) / 2;
// Draw the icon
dc.DrawIcon(x, y, m_hIcon);
}
else
{
CDialogEx::OnPaint();
}
}
// The system calls this function to obtain the cursor to display while the user drags
// the minimized window.
HCURSOR CTP2_WINCPP_TESTDlg::OnQueryDragIcon()
{
return static_cast<HCURSOR>(m_hIcon);
}
|
becac67a988ee1d7008a3deb5df13e98ad6e920f
|
3cb70b3141401f0783790bf5779e2f96b8c6f23d
|
/view/TankFactoryView.h
|
952279c9f86ea4e6d2e26f0304cc2beab366b598
|
[] |
no_license
|
ardazishvili/colony
|
b3a47d813f850d584f3d2a299f79006bcbf132dd
|
75917d41a94a39542d1f58a6efeb52ba3bc12865
|
refs/heads/master
| 2022-03-26T21:46:03.471166
| 2022-03-11T16:57:58
| 2022-03-11T17:07:59
| 225,729,133
| 9
| 2
| null | 2022-03-11T17:08:00
| 2019-12-03T22:24:35
|
C++
|
UTF-8
|
C++
| false
| false
| 273
|
h
|
TankFactoryView.h
|
#pragma once
#include "view/StructureView.h"
class TankFactoryView : public StructureView {
public:
TankFactoryView(glm::vec3 position);
void draw() override;
private:
static float TANK_FACTORY_HEALTH_BAR_WIDTH;
static float TANK_FACTORY_HEALTH_BAR_HEIGHT;
};
|
451871616c4ba73d8ba9c1abe111df13ad468ffb
|
193d62070a9330f994ae24c180f097997c4fdf33
|
/16. Number Theory Basics/test.cpp
|
f60d9b5b66e5d39f16ab171f39566c2bdeb4150f
|
[] |
no_license
|
sudo0809/Data-Structure-and-algo
|
06654ce0ddf295afc8910fc79d89adf42f2ea792
|
054740875d211fc4ed12fe978333b73d6c8bdcec
|
refs/heads/main
| 2023-02-14T03:46:55.825440
| 2021-01-14T20:02:52
| 2021-01-14T20:02:52
| 329,621,225
| 1
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 640
|
cpp
|
test.cpp
|
#include<iostream>
#include<vector>
using namespace std;
vector<int> prime_seive(int *p, int n){
for(int i=3; i<=n; i+=2){
p[i] = 1;
}
for(int i=3; i<=n; i+=2){
if(p[i]==1){
for(int j=i*i; j<=n; j+= i){
p[j] = 0;
}
}
}
p[0] = p[1] = 0;
p[2] = 1;
vector<int> primes;
primes.push_back(2);
for(int i=3; i<=n; i+=2){
if(p[i]==1){
primes.push_back(i);
}
}
cout<<primes[3]<<endl;
return primes;
}
int main() {
int n;
cin>>n;
int c = 500000;
int numbers[c] = {0};
vector<int> primes = prime_seive(numbers, c);
cout<<primes[n-1]<<endl;
return 0;
}
|
20793e1677ce0aa78e9b60634816e64b8e8e8ed9
|
599709e7687a78f92b268315590d6ad750ce97d6
|
/src_cpp/one_int.cpp
|
d836f6e4f5fb0bfc9d29a4b63cde29cd7a1bdffa
|
[] |
no_license
|
ReiMatsuzaki/cbasis2
|
b99d096150d87f9301ed0e34f7be5f0203e4a81e
|
86f21146fab6fc6f750d02fb2200ea94616ca896
|
refs/heads/master
| 2021-01-19T23:15:32.864686
| 2017-04-27T07:29:26
| 2017-04-27T07:29:26
| 88,953,186
| 0
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 40,557
|
cpp
|
one_int.cpp
|
/**
One electron integrals
*/
#include <sstream>
#include "../math/int_exp.hpp"
#include "one_int.hpp"
#include "mol_func.hpp"
#include "symmolint.hpp"
using namespace std;
using namespace Eigen;
namespace cbasis {
// ==== Slow routines ====
dcomplex SMatEle(CartGTO& a, CartGTO& b) {
dcomplex zetaP, wPx, wPy, wPz;
zetaP = a.zeta + b.zeta;
wPx = (a.zeta * a.x + b.zeta * b.x) / zetaP;
wPy = (a.zeta * a.y + b.zeta * b.y) / zetaP;
wPz = (a.zeta * a.z + b.zeta * b.z) / zetaP;
MultArray<dcomplex, 3> dxmap(1000), dymap(1000), dzmap(1000);
calc_d_coef(a.nx, b.nx, 0, zetaP, wPx, a.x, b.x, dxmap);
calc_d_coef(a.ny, b.ny, 0, zetaP, wPy, a.y, b.y, dymap);
calc_d_coef(a.nz, b.nz, 0, zetaP, wPz, a.z, b.z, dzmap);
dcomplex d2, eAB, ce;
d2 = pow(a.x-b.x, 2) + pow(a.y-b.y, 2) + pow(a.z-b.z, 2);
eAB = exp(-a.zeta*b.zeta/zetaP*d2);
ce = eAB * pow(M_PI/zetaP, 1.5);
return ce * dxmap(a.nx, b.nx, 0) * dymap(a.ny, b.ny, 0) * dzmap(a.nz, b.nz, 0);
}
dcomplex TMatEle(CartGTO& a, CartGTO& b) {
dcomplex zetaP, wPx, wPy, wPz;
zetaP = a.zeta + b.zeta;
wPx = (a.zeta * a.x + b.zeta * b.x) / zetaP;
wPy = (a.zeta * a.y + b.zeta * b.y) / zetaP;
wPz = (a.zeta * a.z + b.zeta * b.z) / zetaP;
MultArray<dcomplex, 3> dxmap(1000), dymap(1000), dzmap(1000);
calc_d_coef(a.nx, b.nx+2, 0, zetaP, wPx, a.x, b.x, dxmap);
calc_d_coef(a.ny, b.ny+2, 0, zetaP, wPy, a.y, b.y, dymap);
calc_d_coef(a.nz, b.nz+2, 0, zetaP, wPz, a.z, b.z, dzmap);
dcomplex dx00, dy00, dz00, dx02, dy02, dz02;
dx00 = dxmap(a.nx, b.nx ,0);
dy00 = dymap(a.ny, b.ny ,0);
dz00 = dzmap(a.nz, b.nz ,0);
dx02 = dxmap(a.nx, b.nx+2 ,0);
dy02 = dymap(a.ny, b.ny+2 ,0);
dz02 = dzmap(a.nz, b.nz+2 ,0);
dcomplex d2, eAB, ce;
d2 = pow(a.x-b.x, 2) + pow(a.y-b.y, 2) + pow(a.z-b.z, 2);
eAB = exp(-a.zeta*b.zeta/zetaP*d2);
ce = eAB * pow(M_PI/zetaP, 1.5);
dcomplex tele(0);
tele += -2.0*(2*b.nx+2*b.ny+2*b.nz+3) * b.zeta * dx00 * dy00 * dz00;
tele += +4.0*b.zeta*b.zeta*(dx02*dy00*dz00+dx00*dy02*dz00+dx00*dy00*dz02);
if(b.nx > 1) {
dcomplex dx = dxmap(a.nx, b.nx-2, 0);
tele += 1.0*b.nx*(b.nx-1) * dx * dy00 * dz00;
}
if(b.ny > 1) {
dcomplex dy = dymap(a.ny, b.ny-2, 0);
tele += 1.0*b.ny*(b.ny-1) * dx00 * dy * dz00;
}
if(b.nz > 1) {
dcomplex dz = dzmap(a.nz, b.nz-2, 0);
tele += 1.0*b.nz*(b.nz-1) * dx00 * dy00 * dz;
}
return -0.5*ce*tele;
}
dcomplex VMatEle(CartGTO& a, Vector3cd at, CartGTO& b) {
dcomplex zetaP, wPx, wPy, wPz, wKx, wKy, wKz, d2p, d2;
zetaP = a.zeta + b.zeta;
wPx = (a.zeta * a.x + b.zeta * b.x) / zetaP;
wPy = (a.zeta * a.y + b.zeta * b.y) / zetaP;
wPz = (a.zeta * a.z + b.zeta * b.z) / zetaP;
wKx = at[0]; wKy = at[1]; wKz = at[2];
d2p = dist2(wPx-wKx, wPy-wKy, wPz-wKz);
d2 = dist2(a.x-b.x, a.y-b.y, a.z-b.z);
MultArray<dcomplex, 3> dxmap(1000), dymap(1000), dzmap(1000);
calc_d_coef(a.nx, b.nx, a.nx+b.nx, zetaP, wPx, a.x, b.x, dxmap);
calc_d_coef(a.ny, b.ny, a.ny+b.ny, zetaP, wPy, a.y, b.y, dymap);
calc_d_coef(a.nz, b.nz, a.nz+b.nz, zetaP, wPz, a.z, b.z, dzmap);
dcomplex arg = zetaP * d2p;
double delta(0.0000000000001);
dcomplex Fjs[100], Gjs[100];
if(real(arg)+delta > 0.0) {
IncompleteGamma(a.nx+a.ny+a.nz+b.nx+b.ny+b.nz, arg, Fjs);
} else {
ExpIncompleteGamma(a.nx+a.ny+a.nz+b.nx+b.ny+b.nz, -arg, Gjs);
}
MultArray<dcomplex, 3> rmap(1000);
rmap.SetRange(0, a.nx+b.nx, 0, a.ny+b.ny, 0, a.nz+b.nz);
for(int nx = 0; nx <= a.nx + b.nx; nx++) {
for(int ny = 0; ny <= a.ny + b.ny; ny++) {
for(int nz = 0; nz <= a.nz + b.nz; nz++) {
if(real(arg)+delta > 0.0) {
rmap(nx, ny, nz) = -2.0*M_PI/zetaP*exp(-a.zeta*b.zeta/zetaP*d2) *
coef_R(zetaP, wPx, wPy, wPz, wKx, wKy, wKz, nx, ny, nz, 0, Fjs);
} else {
rmap(nx, ny, nz) = -2.0*M_PI/zetaP*exp(-a.zeta*b.zeta/zetaP*d2-arg) *
coef_R(zetaP, wPx, wPy, wPz, wKx, wKy, wKz, nx, ny, nz, 0, Gjs);
}
}
}
}
dcomplex vele(0);
for(int nx = 0; nx <= a.nx + b.nx; nx++) {
for(int ny = 0; ny <= a.ny + b.ny; ny++) {
for(int nz = 0; nz <= a.nz + b.nz; nz++) {
vele += (dxmap(a.nx, b.nx, nx) *
dymap(a.ny, b.ny, ny) *
dzmap(a.nz, b.nz, nz) *
rmap(nx, ny, nz));
}
}
}
return vele;
}
dcomplex XMatEle(CartGTO& a, CartGTO& b) {
/*
x (x-wx)^nx exp(-ar^2) = (x-wx)^(nx+1) exp(-ar^2) + wx (x-wx)^nx exp(-ar^2)
*/
CartGTO bb(b);
bb.nx += 1;
return SMatEle(a, bb) + b.x * SMatEle(a, b);
}
dcomplex YMatEle(CartGTO& a, CartGTO& b) {
CartGTO bb(b);
bb.ny += 1;
return SMatEle(a, bb) + b.y * SMatEle(a, b);
}
dcomplex ZMatEle(CartGTO& a, CartGTO& b) {
CartGTO bb(b);
bb.nz += 1;
return SMatEle(a, bb) + b.z * SMatEle(a, b);
}
dcomplex DXMatEle(CartGTO& a, CartGTO& b) {
/**
Dx [ (x-x0)^n exp(-z(x-x0)^2) ]
= { n(x-x0)^(n-1) -2z(x-x0)^(n+1)} exp(-z(x-x0)^2)
*/
dcomplex ele(0);
if(b.nx != 0) {
CartGTO b1 = b;
b1.nx--;
ele += dcomplex(b.nx) * SMatEle(a, b1);
}
CartGTO b2 = b;
b2.nx++;
ele += -2.0 * b.zeta * SMatEle(a, b2);
return ele;
}
dcomplex DYMatEle(CartGTO& a, CartGTO& b) {
dcomplex ele(0);
if(b.ny != 0) {
CartGTO b1 = b;
b1.ny--;
ele += dcomplex(b.ny) * SMatEle(a, b1);
}
CartGTO b2 = b;
b2.ny++;
ele += -2.0 * b.zeta * SMatEle(a, b2);
return ele;
}
dcomplex DZMatEle(CartGTO& a, CartGTO& b) {
dcomplex ele(0);
if(b.nz != 0) {
CartGTO b1 = b;
b1.nz--;
ele += dcomplex(b.nz) * SMatEle(a, b1);
}
CartGTO b2 = b;
b2.nz++;
ele += -2.0 * b.zeta * SMatEle(a, b2);
return ele;
}
dcomplex PWVecEle(const Vector3cd& k, CartGTO& a) {
/*
<exp[ikr] | cart GTO(W)> = int(exp[-ikr] GTO(W))
. = exp[-ikw] int(exp[-ikr] GTO(0))
. = exp[-ikw] int(x^nx exp[-ik_x x -zeta x^2])
. int(y^ny exp[-ik_y y -zeta y^2])
. int(z^nz exp[-ik_z z -zeta z^2])
*/
Vector3cd w(a.x, a.y, a.z);
dcomplex kw = k.dot(w);
dcomplex ii(0, 1);
return (exp(-ii*kw) *
STO_GTOInt_R(a.nx, ii*k[0], a.zeta) *
STO_GTOInt_R(a.ny, ii*k[1], a.zeta) *
STO_GTOInt_R(a.nz, ii*k[2], a.zeta));
}
dcomplex PWXVecEle(const Vector3cd& k, CartGTO& a) {
/*
<exp[ikr] | cart GTO(W)> = int(exp[-ikr] x GTO(W))
. = exp[-ikw] int(exp[-ikr] (x+wx) GTO(0))
. = exp[-ikw] int(x^(nx+1) exp[-ik_x x -zeta x^2])
. int(y^ny exp[-ik_y y -zeta y^2])
. int(z^nz exp[-ik_z z -zeta z^2])
. + wx exp[-ikw] int(x^nx exp[-ik_x x -zeta x^2])
. int(y^ny exp[-ik_y y -zeta y^2])
. int(z^nz exp[-ik_z z -zeta z^2])
*/
Vector3cd w(a.x, a.y, a.z);
dcomplex kw = k.dot(w);
dcomplex ii(0, 1);
return (exp(-ii*kw) *
STO_GTOInt_R(a.nx+1, ii*k[0], a.zeta) *
STO_GTOInt_R(a.ny, ii*k[1], a.zeta) *
STO_GTOInt_R(a.nz, ii*k[2], a.zeta) +
exp(-ii*kw) * w[0] *
STO_GTOInt_R(a.nx, ii*k[0], a.zeta) *
STO_GTOInt_R(a.ny, ii*k[1], a.zeta) *
STO_GTOInt_R(a.nz, ii*k[2], a.zeta));
}
dcomplex PWYVecEle(const Vector3cd& k, CartGTO& a) {
Vector3cd w(a.x, a.y, a.z);
dcomplex kw = k.dot(w);
dcomplex ii(0, 1);
return (exp(-ii*kw) *
STO_GTOInt_R(a.nx, ii*k[0], a.zeta) *
STO_GTOInt_R(a.ny+1, ii*k[1], a.zeta) *
STO_GTOInt_R(a.nz, ii*k[2], a.zeta) +
exp(-ii*kw) * w[1] *
STO_GTOInt_R(a.nx, ii*k[0], a.zeta) *
STO_GTOInt_R(a.ny, ii*k[1], a.zeta) *
STO_GTOInt_R(a.nz, ii*k[2], a.zeta));
}
dcomplex PWZVecEle(const Vector3cd& k, CartGTO& a) {
Vector3cd w(a.x, a.y, a.z);
dcomplex kw = k.dot(w);
dcomplex ii(0, 1);
return (exp(-ii*kw) *
STO_GTOInt_R(a.nx, ii*k[0], a.zeta) *
STO_GTOInt_R(a.ny, ii*k[1], a.zeta) *
STO_GTOInt_R(a.nz+1, ii*k[2], a.zeta) +
exp(-ii*kw) * w[2] *
STO_GTOInt_R(a.nx, ii*k[0], a.zeta) *
STO_GTOInt_R(a.ny, ii*k[1], a.zeta) *
STO_GTOInt_R(a.nz, ii*k[2], a.zeta));
}
// ==== SymGTOs(old) ====
struct PrimBasis {
A4dc s, t, v, x, y, z, dx, dy, dz;
PrimBasis(int num):
s(num), t(num), v(num), x(num), y(num), z(num),
dx(num), dy(num), dz(num) {}
void SetRange(int niat, int nipn, int njat, int njpn) {
s.SetRange(0, niat, 0, nipn, 0, njat, 0, njpn);
t.SetRange(0, niat, 0, nipn, 0, njat, 0, njpn);
v.SetRange(0, niat, 0, nipn, 0, njat, 0, njpn);
x.SetRange(0, niat, 0, nipn, 0, njat, 0, njpn);
y.SetRange(0, niat, 0, nipn, 0, njat, 0, njpn);
z.SetRange(0, niat, 0, nipn, 0, njat, 0, njpn);
dx.SetRange(0, niat, 0, nipn, 0, njat, 0, njpn);
dy.SetRange(0, niat, 0, nipn, 0, njat, 0, njpn);
dz.SetRange(0, niat, 0, nipn, 0, njat, 0, njpn);
}
};
void CalcRMap(Molecule mole, dcomplex zetai, dcomplex zetaj, dcomplex d2, dcomplex eAB,
dcomplex wPx, dcomplex wPy, dcomplex wPz, int nxij, int nyij, int nzij,
A2dc& Fjs_iat, A4dc& rmap) {
static double delta(0.0000000000001);
int nkat(mole->size());
rmap.SetRange(0, nxij, 0, nyij, 0, nzij, 0, nkat);
dcomplex zetaP = zetai + zetaj;
for(int kat = 0; kat < mole->size(); kat++) {
dcomplex wKx = mole->x(kat);
dcomplex wKy = mole->y(kat);
dcomplex wKz = mole->z(kat);
dcomplex d2p = dist2(wPx-wKx, wPy-wKy, wPz-wKz);
dcomplex arg = zetaP * d2p;
if(real(arg)+delta > 0.0) {
for(int nx = 0; nx <= nxij; nx++)
for(int ny = 0; ny <= nyij; ny++)
for(int nz = 0; nz <= nzij; nz++)
rmap(nx, ny, nz, kat) =
-2.0*M_PI/zetaP*eAB * coef_R(zetaP, wPx, wPy, wPz,
wKx, wKy, wKz, nx, ny, nz,
0, &Fjs_iat(kat, 0));
} else {
dcomplex arg_other = -zetai * zetaj / zetaP * d2 - arg;
for(int nx = 0; nx <= nxij; nx++)
for(int ny = 0; ny <= nyij; ny++)
for(int nz = 0; nz <= nzij; nz++) {
rmap(nx, ny, nz, kat) =
-2.0*M_PI/zetaP*exp(arg_other) *
coef_R(zetaP, wPx, wPy, wPz,
wKx, wKy, wKz, nx, ny, nz,
0, &Fjs_iat(kat, 0));
}
}
}
}
dcomplex calc_tele(SubIt isub, SubIt jsub, dcomplex zetaj,
int ipn, int jpn,
A3dc& dxmap, A3dc& dymap, A3dc& dzmap) {
int nxi, nxj, nyi, nyj, nzi, nzj;
nxi = isub->nx(ipn); nxj = jsub->nx(jpn);
nyi = isub->ny(ipn); nyj = jsub->ny(jpn);
nzi = isub->nz(ipn); nzj = jsub->nz(jpn);
dcomplex dx00, dy00, dz00, dx02, dy02, dz02;
dx00 = dxmap(nxi, nxj ,0);
dy00 = dymap(nyi, nyj ,0);
dz00 = dzmap(nzi, nzj ,0);
dx02 = dxmap(nxi, nxj+2 ,0);
dy02 = dymap(nyi, nyj+2 ,0);
dz02 = dzmap(nzi, nzj+2 ,0);
dcomplex t_ele(0.0);
t_ele += -2.0*(2*nxj+2*nyj+2*nzj+3)*zetaj*dx00*dy00*dz00;
t_ele += 4.0*zetaj*zetaj*(dx02*dy00*dz00+dx00*dy02*dz00+dx00*dy00*dz02);
if(nxj > 1) {
dcomplex dx = dxmap(nxi, nxj-2, 0);
t_ele += 1.0*nxj*(nxj-1) * dx * dy00 * dz00;
}
if(nyj > 1) {
dcomplex dy = dymap(nyi, nyj-2, 0);
t_ele += 1.0*nyj*(nyj-1) * dx00 * dy * dz00;
}
if(nzj > 1) {
dcomplex dz = dzmap(nzi, nzj-2, 0);
t_ele += 1.0*nzj*(nzj-1) * dx00 * dy00 * dz;
}
return t_ele;
}
dcomplex calc_vele(Molecule mole, SubIt isub, SubIt jsub, int ipn, int jpn,
A3dc& dxmap, A3dc& dymap, A3dc& dzmap, A4dc& rmap) {
int nxi, nxj, nyi, nyj, nzi, nzj;
nxi = isub->nx(ipn); nxj = jsub->nx(jpn);
nyi = isub->ny(ipn); nyj = jsub->ny(jpn);
nzi = isub->nz(ipn); nzj = jsub->nz(jpn);
dcomplex v_ele(0.0);
for(int nx = 0; nx <= nxi + nxj; nx++)
for(int ny = 0; ny <= nyi + nyj; ny++)
for(int nz = 0; nz <= nzi + nzj; nz++)
for(int kat = 0; kat < mole->size(); kat++) {
v_ele += (mole->q(kat) *
dxmap(nxi, nxj, nx) *
dymap(nyi, nyj, ny) *
dzmap(nzi, nzj, nz) *
rmap(nx, ny, nz, kat));
}
return v_ele;
}
void CalcPrim(Molecule mole, SubIt isub, SubIt jsub, int iz, int jz,
PrimBasis& prim, bool calc_coulomb) {
dcomplex zetai, zetaj;
zetai = isub->zeta_iz[iz]; zetaj = jsub->zeta_iz[jz];
dcomplex zetaP = zetai + zetaj;
int niat(isub->size_at()); int njat(jsub->size_at());
int nipn(isub->size_pn()); int njpn(jsub->size_pn());
static const int num(1000);
A3dc dxmap(num), dymap(num), dzmap(num);
A4dc rmap(num);
A2dc Fjs_iat(num);
prim.SetRange(niat, nipn, njat, njpn);
if(calc_coulomb)
Fjs_iat.SetRange(0, mole->size(), 0, isub->maxn+jsub->maxn);
for(int iat = 0; iat < niat; iat++) {
// int jat0 = (isub == jsub && iz == jz ? iat : 0);
for(int jat = 0; jat < njat; jat++) {
dcomplex xi, xj, yi, yj, zi, zj, wPx, wPy, wPz;
xi = isub->x(iat); yi = isub->y(iat); zi = isub->z(iat);
xj = jsub->x(jat); yj = jsub->y(jat); zj = jsub->z(jat);
wPx = (zetai*xi+zetaj*xj)/zetaP;
wPy = (zetai*yi+zetaj*yj)/zetaP;
wPz = (zetai*zi+zetaj*zj)/zetaP;
dcomplex d2 = dist2(xi-xj, yi-yj, zi-zj);
dcomplex eAB = exp(-zetai*zetaj/zetaP*d2);
dcomplex ce = eAB * pow(M_PI/zetaP, 1.5);
int mi = isub->maxn; int mj = jsub->maxn;
if(calc_coulomb) {
calc_d_coef(mi,mj+2,mi+mj,zetaP,wPx,xi,xj,dxmap);
calc_d_coef(mi,mj+2,mi+mj,zetaP,wPy,yi,yj,dymap);
calc_d_coef(mi,mj+2,mi+mj,zetaP,wPz,zi,zj,dzmap);
for(int kat = 0; kat < mole->size(); kat++) {
dcomplex d2p = dist2(wPx-mole->x(kat), wPy-mole->y(kat), wPz-mole->z(kat));
dcomplex arg = zetaP * d2p;
double delta(0.0000000000001);
if(real(arg)+delta > 0.0) {
IncompleteGamma(isub->maxn+jsub->maxn, arg, &Fjs_iat(kat, 0));
} else {
ExpIncompleteGamma(isub->maxn+jsub->maxn, -arg, &Fjs_iat(kat, 0));
}
}
} else {
calc_d_coef(mi,mj+2,0,zetaP,wPx,xi,xj,dxmap);
calc_d_coef(mi,mj+2,0,zetaP,wPy,yi,yj,dymap);
calc_d_coef(mi,mj+2,0,zetaP,wPz,zi,zj,dzmap);
}
for(int ipn = 0; ipn < nipn; ipn++) {
for(int jpn = 0; jpn < njpn; jpn++) {
int nxi, nxj, nyi, nyj, nzi, nzj;
nxi = isub->nx(ipn); nxj = jsub->nx(jpn);
nyi = isub->ny(ipn); nyj = jsub->ny(jpn);
nzi = isub->nz(ipn); nzj = jsub->nz(jpn);
dcomplex s_ele = dxmap(nxi,nxj,0) * dymap(nyi,nyj,0) * dzmap(nzi,nzj,0);
dcomplex x_ele = dymap(nyi,nyj,0)*dzmap(nzi,nzj,0)*
(dxmap(nxi,nxj+1,0)+xj*dxmap(nxi,nxj,0));
dcomplex y_ele = dzmap(nzi,nzj,0)*dxmap(nxi,nxj,0)*
(dymap(nyi,nyj+1,0)+yj*dymap(nyi,nyj,0));
dcomplex z_ele = dxmap(nxi,nxj,0)*dymap(nyi,nyj,0)*
(dzmap(nzi,nzj+1,0)+zj*dzmap(nzi,nzj,0));
dcomplex t_ele = calc_tele(isub, jsub, zetaj, ipn, jpn,
dxmap, dymap, dzmap);
dcomplex dx_ele = -2.0*zetaj*dxmap(nxi,nxj+1,0);
if(nxj>0)
dx_ele += dcomplex(nxj)*dxmap(nxi,nxj-1,0);
dx_ele *= dymap(nyi,nyj,0) * dzmap(nzi,nzj,0);
dcomplex dy_ele = -2.0*zetaj*dymap(nyi,nyj+1,0);
if(nyj>0)
dy_ele += dcomplex(nyj)*dymap(nyi,nyj-1,0);
dy_ele *= dxmap(nxi,nxj,0) * dzmap(nzi,nzj,0);
dcomplex dz_ele = -2.0*zetaj*dzmap(nzi,nzj+1,0);
if(nzj>0)
dz_ele += dcomplex(nzj)*dzmap(nzi,nzj-1,0);
dz_ele *= dymap(nyi,nyj,0) * dxmap(nxi,nxj,0);
prim.s(iat, ipn, jat, jpn) = ce * s_ele;
prim.t(iat, ipn, jat, jpn) = -0.5* ce * t_ele;
prim.x(iat, ipn, jat, jpn) = ce*x_ele;
prim.y(iat, ipn, jat, jpn) = ce*y_ele;
prim.z(iat, ipn, jat, jpn) = ce*z_ele;
prim.dx(iat, ipn, jat, jpn) = ce*dx_ele;
prim.dy(iat, ipn, jat, jpn) = ce*dy_ele;
prim.dz(iat, ipn, jat, jpn) = ce*dz_ele;
if(calc_coulomb) {
CalcRMap(mole, zetai, zetaj, d2, eAB, wPx, wPy, wPz,
nxi+nxj, nyi+nyj, nzi+nzj, Fjs_iat, rmap);
prim.v(iat, ipn, jat, jpn) =
calc_vele(mole, isub, jsub, ipn, jpn, dxmap, dymap, dzmap, rmap);
}
}}}}
}
void CalcTrans(SubIt isub, SubIt jsub, int iz, int jz,
PrimBasis& prim, BMatSet mat_map) {
int niat(isub->size_at()); int njat(jsub->size_at());
int nipn(isub->size_pn()); int njpn(jsub->size_pn());
for(RdsIt irds = isub->rds.begin(); irds != isub->rds.end(); ++irds) {
for(RdsIt jrds = jsub->rds.begin(); jrds != jsub->rds.end();++jrds) {
dcomplex cumsum_s(0.0), cumsum_t(0.0), cumsum_v(0.0);
dcomplex cumsum_x(0.0), cumsum_y(0.0), cumsum_z(0.0);
dcomplex cumsum_dx(0.0), cumsum_dy(0.0), cumsum_dz(0.0);
for(int iat = 0; iat < niat; iat++) {
for(int ipn = 0; ipn < nipn; ipn++) {
for(int jat = 0; jat < njat; jat++) {
for(int jpn = 0; jpn < njpn; jpn++) {
dcomplex cc =
irds->coef_iat_ipn(iat, ipn) *
jrds->coef_iat_ipn(jat, jpn) *
irds->coef_iz(iz) *
jrds->coef_iz(jz);
cumsum_s += cc*prim.s(iat, ipn, jat, jpn);
cumsum_t += cc*prim.t(iat, ipn, jat, jpn);
cumsum_v += cc*prim.v(iat, ipn, jat, jpn);
cumsum_x += cc*prim.x(iat, ipn, jat, jpn);
cumsum_y += cc*prim.y(iat, ipn, jat, jpn);
cumsum_z += cc*prim.z(iat, ipn, jat, jpn);
cumsum_dx += cc*prim.dx(iat, ipn, jat, jpn);
cumsum_dy += cc*prim.dy(iat, ipn, jat, jpn);
cumsum_dz += cc*prim.dz(iat, ipn, jat, jpn);
}}}}
int i(irds->offset + iz); int j(jrds->offset + jz);
int isym(irds->irrep); int jsym(jrds->irrep);
mat_map->SelfAdd("s", isym, jsym, i, j, cumsum_s);
mat_map->SelfAdd("t", isym, jsym, i, j, cumsum_t);
mat_map->SelfAdd("v", isym, jsym, i, j, cumsum_v);
mat_map->SelfAdd("x", isym, jsym, i, j, cumsum_x);
mat_map->SelfAdd("y", isym, jsym, i, j, cumsum_y);
mat_map->SelfAdd("z", isym, jsym, i, j, cumsum_z);
mat_map->SelfAdd("dx", isym, jsym, i, j, cumsum_dx);
mat_map->SelfAdd("dy", isym, jsym, i, j, cumsum_dy);
mat_map->SelfAdd("dz", isym, jsym, i, j, cumsum_dz);
}
}
}
BMatSet CalcMat(SymGTOs a, SymGTOs b, bool calc_coulomb) {
BMatSet bmat(new _BMatSet);
if(not a->setupq)
a->SetUp();
if(not b->setupq)
b->SetUp();
if(a->molecule() != b->molecule()) {
string msg; SUB_LOCATION(msg); msg += "\n" + msg + " : different molecule";
throw runtime_error(msg);
}
Molecule mole = a->molecule();
int num_sym(a->sym_group()->num_class());
for(Irrep isym = 0; isym < num_sym; isym++) {
for(Irrep jsym = 0; jsym < num_sym; jsym++) {
int numi = a->size_basis_isym(isym);
int numj = b->size_basis_isym(jsym);
MatrixXcd s = MatrixXcd::Zero(numi, numj);
bmat->SetMatrix("s", isym, jsym, s);
MatrixXcd t = MatrixXcd::Zero(numi, numj);
bmat->SetMatrix("t", isym, jsym, t);
MatrixXcd v = MatrixXcd::Zero(numi, numj);
bmat->SetMatrix("v", isym, jsym, v);
MatrixXcd x = MatrixXcd::Zero(numi, numj);
bmat->SetMatrix("x", isym, jsym, x);
MatrixXcd y = MatrixXcd::Zero(numi, numj);
bmat->SetMatrix("y", isym, jsym, y);
MatrixXcd z = MatrixXcd::Zero(numi, numj);
bmat->SetMatrix("z", isym, jsym, z);
MatrixXcd dx = MatrixXcd::Zero(numi, numj);
bmat->SetMatrix("dx", isym, jsym, dx);
MatrixXcd dy = MatrixXcd::Zero(numi, numj);
bmat->SetMatrix("dy", isym, jsym, dy);
MatrixXcd dz = MatrixXcd::Zero(numi, numj);
bmat->SetMatrix("dz", isym, jsym, dz);
}
}
PrimBasis prim(100);
for(SubIt isub = a->subs().begin(); isub != a->subs().end(); ++isub) {
for(SubIt jsub = b->subs().begin(); jsub != b->subs().end(); ++jsub) {
for(int iz = 0; iz < isub->size_zeta(); iz++) {
for(int jz = 0; jz < jsub->size_zeta(); jz++) {
CalcPrim(mole, isub, jsub, iz, jz, prim, calc_coulomb);
CalcTrans(isub, jsub, iz, jz, prim, bmat);
}
}
}
}
return bmat;
}
BMatSet CalcMat_Complex(SymGTOs g, bool calc_coulomb) {
return CalcMat(g, g, calc_coulomb);
}
BMatSet CalcMat_Hermite(SymGTOs g, bool calc_coulomb) {
SymGTOs c = g->Conj();
return CalcMat(c, g, calc_coulomb);
}
// ==== SymGTOs(new) ====
// -- init --
void InitBVec(SymGTOs a, BVec *ptr) {
vector<Irrep> irrep_list;
for(Irrep irrep = 0; irrep < a->sym_group()->order(); ++irrep)
irrep_list.push_back(irrep);
InitBVec(a, irrep_list, ptr);
}
void InitBVec(SymGTOs a, Irrep irrep, BVec *ptr_bvec) {
vector<Irrep> irrep_list(1); irrep_list[0] = irrep;
InitBVec(a, irrep_list, ptr_bvec);
}
void InitBVec(SymGTOs a, const vector<Irrep>& irrep_list, BVec *ptr) {
BVec& vec = *ptr;
SymmetryGroup sym = a->sym_group();
typedef vector<Irrep>::const_iterator It;
for(It it = irrep_list.begin(); it != irrep_list.end(); ++it) {
Irrep irrep = *it;
int n = a->size_basis_isym(irrep);
if(not vec.has_block(irrep))
vec[irrep] = VectorXcd::Zero(n);
if(vec[irrep].size() != n)
vec[irrep] = VectorXcd::Zero(n);
}
}
void InitBMat(SymGTOs a, Irrep krrep, SymGTOs b, BMat *ptr_mat) {
if(not a->sym_group()->IsSame(b->sym_group())) {
string msg; SUB_LOCATION(msg); msg = "\n" + msg + " : symmetry is different";
throw runtime_error(msg);
}
SymmetryGroup sym = a->sym_group();
BMat& mat = *ptr_mat;
/*
for(Irrep irrep = 0; irrep < sym->order(); ++irrep) {
for(Irrep jrrep = 0; jrrep < sym->order(); ++jrrep) {
if(sym->Non0_3(irrep, krrep, jrrep)) {
int ni = a->size_basis_isym(irrep);
int nj = b->size_basis_isym(jrrep);
if(not mat.has_block(irrep, jrrep))
mat(irrep, jrrep) = MatrixXcd::Zero(ni, nj);
if(mat(irrep, jrrep).rows() != ni || mat(irrep, jrrep).cols() != nj)
mat(irrep, jrrep) = MatrixXcd::Zero(ni, nj);
}
}
}
*/
for(SubIt isub = a->subs().begin(); isub != a->subs().end(); ++isub) {
for(SubIt jsub = b->subs().begin(); jsub != b->subs().end(); ++jsub) {
for(RdsIt irds = isub->rds.begin(); irds != isub->rds.end(); ++irds) {
for(RdsIt jrds = jsub->rds.begin(); jrds != jsub->rds.end(); ++jrds) {
Irrep irrep = irds->irrep;
Irrep jrrep = jrds->irrep;
int ni = a->size_basis_isym(irrep);
int nj = b->size_basis_isym(jrrep);
if(sym->Non0_3(irrep, krrep, jrrep)) {
pair<Irrep, Irrep> ijrrep(irrep, jrrep);
if(not mat.has_block(ijrrep))
mat[ijrrep] = MatrixXcd::Zero(ni, nj);
if(mat[ijrrep].rows() != ni || mat[ijrrep].cols() != nj)
mat[ijrrep] = MatrixXcd::Zero(ni, nj);
}
}
}
}
}
}
// -- primitive --
void CalcPrimSTV(Molecule mole, SubIt isub, SubIt jsub, int iz, int jz,
A4dc& s, A4dc& t, A4dc& v) {
dcomplex zetai, zetaj, zetaP;
zetai = isub->zeta_iz[iz]; zetaj = jsub->zeta_iz[jz]; zetaP = zetai + zetaj;
int niat, nipn, njat, njpn, nkat;
niat = isub->size_at(); nipn = isub->size_pn();
njat = jsub->size_at(); njpn = jsub->size_pn(); nkat = mole->size();
static int num(1000);
static A3dc dxmap(num, "dxmap_stv"), dymap(num, "dymap_stv"), dzmap(num, "dzmap_stv");
static A4dc rmap(num);
static A2dc Fjs_iat(num);
s.SetRange(0, niat-1, 0, nipn-1, 0, njat-1, 0, njpn-1);
t.SetRange(0, niat-1, 0, nipn-1, 0, njat-1, 0, njpn-1);
v.SetRange(0, niat-1, 0, nipn-1, 0, njat-1, 0, njpn-1);
Fjs_iat.SetRange(0, nkat, 0, isub->maxn + jsub->maxn);
for(int iat = 0; iat < niat; iat++) {
for(int jat = 0; jat < njat; jat++) {
// -- variables --
dcomplex xi, xj, yi, yj, zi, zj, wPx, wPy, wPz;
xi = isub->x(iat); yi = isub->y(iat); zi = isub->z(iat);
xj = jsub->x(jat); yj = jsub->y(jat); zj = jsub->z(jat);
wPx = (zetai*xi+zetaj*xj)/zetaP;
wPy = (zetai*yi+zetaj*yj)/zetaP;
wPz = (zetai*zi+zetaj*zj)/zetaP;
dcomplex d2 = dist2(xi-xj, yi-yj, zi-zj);
dcomplex eAB = exp(-zetai*zetaj/zetaP*d2);
dcomplex ce = eAB * pow(M_PI/zetaP, 1.5);
int mi = isub->maxn; int mj = jsub->maxn;
// -- compute coefficient --
calc_d_coef(mi,mj+2,mi+mj,zetaP,wPx,xi,xj,dxmap);
calc_d_coef(mi,mj+2,mi+mj,zetaP,wPy,yi,yj,dymap);
calc_d_coef(mi,mj+2,mi+mj,zetaP,wPz,zi,zj,dzmap);
for(int kat = 0; kat < nkat; kat++) {
dcomplex arg = zetaP * dist2(wPx-mole->x(kat), wPy-mole->y(kat), wPz-mole->z(kat));;
double delta(0.0000000000001);
if(real(arg)+delta > 0.0)
IncompleteGamma(isub->maxn+jsub->maxn, arg, &Fjs_iat(kat, 0));
else
ExpIncompleteGamma(isub->maxn+jsub->maxn, -arg, &Fjs_iat(kat, 0));
}
// -- matrix element --
for(int ipn = 0; ipn < nipn; ipn++) {
for(int jpn = 0; jpn < njpn; jpn++) {
int nxi, nxj, nyi, nyj, nzi, nzj;
nxi = isub->nx(ipn); nyi = isub->ny(ipn); nzi = isub->nz(ipn);
nxj = jsub->nx(jpn); nyj = jsub->ny(jpn); nzj = jsub->nz(jpn);
s(iat,ipn,jat,jpn) = ce*dxmap(nxi,nxj,0) * dymap(nyi,nyj,0) * dzmap(nzi,nzj,0);
t(iat,ipn,jat,jpn) = -0.5*ce*calc_tele(isub, jsub, zetaj, ipn, jpn, dxmap, dymap, dzmap);
CalcRMap(mole, zetai, zetaj, d2, eAB, wPx, wPy, wPz,
nxi+nxj, nyi+nyj, nzi+nzj, Fjs_iat, rmap);
v(iat,ipn,jat,jpn) = calc_vele(mole, isub, jsub, ipn, jpn,
dxmap, dymap, dzmap, rmap);
}
}
}
}
}
void CalcPrimDip(SubIt isub, SubIt jsub, int iz, int jz,
A4dc& x, A4dc& y, A4dc& z, A4dc& dx, A4dc& dy, A4dc& dz) {
dcomplex zetai, zetaj, zetaP;
zetai = isub->zeta_iz[iz]; zetaj = jsub->zeta_iz[jz]; zetaP = zetai + zetaj;
int niat, nipn, njat, njpn;
niat = isub->size_at(); nipn = isub->size_pn();
njat = jsub->size_at(); njpn = jsub->size_pn();
static int num(1000);
static A3dc dxmap(num, "dxmap_dip"), dymap(num, "dymap_dip"), dzmap(num, "d_map_dip");
x.SetRange( 0, niat-1, 0, nipn-1, 0, njat-1, 0, njpn-1);
y.SetRange( 0, niat-1, 0, nipn-1, 0, njat-1, 0, njpn-1);
z.SetRange( 0, niat-1, 0, nipn-1, 0, njat-1, 0, njpn-1);
dx.SetRange(0, niat-1, 0, nipn-1, 0, njat-1, 0, njpn-1);
dy.SetRange(0, niat-1, 0, nipn-1, 0, njat-1, 0, njpn-1);
dz.SetRange(0, niat-1, 0, nipn-1, 0, njat-1, 0, njpn-1);
for(int iat = 0; iat < niat; iat++) {
for(int jat = 0; jat < njat; jat++) {
// -- variables --
dcomplex xi, xj, yi, yj, zi, zj, wPx, wPy, wPz;
xi = isub->x(iat); yi = isub->y(iat); zi = isub->z(iat);
xj = jsub->x(jat); yj = jsub->y(jat); zj = jsub->z(jat);
wPx = (zetai*xi+zetaj*xj)/zetaP;
wPy = (zetai*yi+zetaj*yj)/zetaP;
wPz = (zetai*zi+zetaj*zj)/zetaP;
dcomplex d2 = dist2(xi-xj, yi-yj, zi-zj);
dcomplex eAB = exp(-zetai*zetaj/zetaP*d2);
dcomplex ce = eAB * pow(M_PI/zetaP, 1.5);
int mi = isub->maxn; int mj = jsub->maxn;
// -- compute coefficient --
calc_d_coef(mi,mj+1,0,zetaP,wPx,xi,xj,dxmap);
calc_d_coef(mi,mj+1,0,zetaP,wPy,yi,yj,dymap);
calc_d_coef(mi,mj+1,0,zetaP,wPz,zi,zj,dzmap);
// -- matrix element --
for(int ipn = 0; ipn < nipn; ipn++) {
for(int jpn = 0; jpn < njpn; jpn++) {
int nxi, nxj, nyi, nyj, nzi, nzj;
nxi = isub->nx(ipn); nyi = isub->ny(ipn); nzi = isub->nz(ipn);
nxj = jsub->nx(jpn); nyj = jsub->ny(jpn); nzj = jsub->nz(jpn);
x(iat,ipn,jat,jpn) = (ce*(dxmap(nxi,nxj+1,0) + xj*dxmap(nxi,nxj,0))
* dymap(nyi,nyj,0) * dzmap(nzi,nzj,0));
y(iat,ipn,jat,jpn) = (ce*(dymap(nyi,nyj+1,0) + yj*dymap(nyi,nyj,0))
* dxmap(nxi,nxj,0) * dzmap(nzi,nzj,0));
z(iat,ipn,jat,jpn) = (ce*(dzmap(nzi,nzj+1,0) + zj*dzmap(nzi,nzj,0))
* dxmap(nxi,nxj,0) * dymap(nyi,nyj,0));
dcomplex dx_ele = -2.0*zetaj * dxmap(nxi, nxj+1, 0);
if(nxj > 0)
dx_ele += dcomplex(nxj) * dxmap(nxi, nxj-1, 0);
dx_ele *= dymap(nyi, nyj, 0) * dzmap(nzi, nzj, 0);
dx(iat,ipn,jat,jpn) = ce * dx_ele;
dcomplex dy_ele = -2.0*zetaj * dymap(nyi, nyj+1, 0);
if(nyj > 0)
dy_ele += dcomplex(nyj) * dymap(nyi, nyj-1, 0);
dy_ele *= dxmap(nxi, nxj, 0) * dzmap(nzi, nzj, 0);
dy(iat,ipn,jat,jpn) = ce * dy_ele;
dcomplex dz_ele = -2.0*zetaj * dzmap(nzi, nzj+1, 0);
if(nzj > 0)
dz_ele += dcomplex(nzj) * dzmap(nzi, nzj-1, 0);
dz_ele *= dxmap(nxi, nxj, 0) * dymap(nyi, nyj, 0);
dz(iat,ipn,jat,jpn) = ce * dz_ele;
}
}
}
}
}
// -- translation --
void TransCoef(SubIt isub, SubIt jsub, RdsIt irds, RdsIt jrds, int iz, int jz, A4dc &cc) {
int niat(isub->size_at()); int njat(jsub->size_at());
int nipn(isub->size_pn()); int njpn(jsub->size_pn());
cc.SetRange(0, niat-1, 0, nipn-1, 0, njat-1, 0, njpn-1);
for(int iat = 0; iat < niat; iat++) {
for(int ipn = 0; ipn < nipn; ipn++) {
for(int jat = 0; jat < njat; jat++) {
for(int jpn = 0; jpn < njpn; jpn++) {
cc(iat, ipn, jat, jpn) =
irds->coef_iat_ipn(iat, ipn) *
jrds->coef_iat_ipn(jat, jpn) *
irds->coef_iz(iz) *
jrds->coef_iz(jz);
}
}
}
}
}
// -- main --
bool HasNon0(SymmetryGroup sym, SubIt isub, Irrep krrep, SubIt jsub) {
bool res = false;
for(RdsIt irds = isub->rds.begin(); irds != isub->rds.end(); ++irds)
for(RdsIt jrds = jsub->rds.begin(); jrds != jsub->rds.end(); ++jrds)
res = res || sym->Non0_3(irds->irrep, krrep, jrds->irrep);
return res;
}
void CalcSTMat(SymGTOs a, SymGTOs b, BMat *S, BMat *T) {
if(not a->setupq || not b->setupq) {
THROW_ERROR("not setup");
}
SymmetryGroup sym = a->sym_group();
if(not sym->IsSame(b->sym_group())) {
THROW_ERROR("symmetry is different")
}
static A4dc s(1000), t(1000), v(1000);
A4dc cc(1000);
Molecule mole = a->molecule();
InitBMat(a, 0, b, S);
InitBMat(a, 0, b, T);
for(SubIt isub = a->subs().begin(); isub != a->subs().end(); ++isub) {
for(SubIt jsub = b->subs().begin(); jsub != b->subs().end(); ++jsub) {
if(not HasNon0(sym, isub, sym->irrep_s(), jsub))
continue;
for(int iz = 0; iz < isub->size_zeta(); iz++) {
for(int jz = 0; jz < jsub->size_zeta(); jz++) {
CalcPrimSTV(mole, isub, jsub, iz, jz, s, t, v);
for(RdsIt irds = isub->rds.begin(); irds != isub->rds.end(); ++irds) {
for(RdsIt jrds = jsub->rds.begin(); jrds != jsub->rds.end();++jrds) {
if(sym->Non0_3(irds->irrep, 0, jrds->irrep)) {
int i(irds->offset + iz);
int j(jrds->offset + jz);
TransCoef(isub, jsub, irds, jrds, iz, jz, cc);
pair<Irrep, Irrep> ij(irds->irrep, jrds->irrep);
(*S)[ij](i, j) = MultArrayTDot(cc, s);
(*T)[ij](i, j) = MultArrayTDot(cc, t);
}
}
}
}
}
}
}
}
void CalcSTVMat(SymGTOs a, SymGTOs b, BMat *S, BMat *T, BMat *V) {
if(not a->setupq || not b->setupq) {
string msg; SUB_LOCATION(msg); msg = "\n" + msg + " : not setup";
throw runtime_error(msg);
}
SymmetryGroup sym = a->sym_group();
if(not sym->IsSame(b->sym_group())) {
string msg; SUB_LOCATION(msg); msg = "\n" + msg + " : not setup";
throw runtime_error(msg);
}
if(a->molecule() != b->molecule()) {
string msg; SUB_LOCATION(msg); msg += "\n" + msg + " : different molecule";
throw runtime_error(msg);
}
Molecule mole = a->molecule();
static A4dc s(1000), t(1000), v(1000);
A4dc cc(1000);
InitBMat(a, 0, b, S);
InitBMat(a, 0, b, T);
InitBMat(a, 0, b, V);
for(SubIt isub = a->subs().begin(); isub != a->subs().end(); ++isub) {
for(SubIt jsub = b->subs().begin(); jsub != b->subs().end(); ++jsub) {
if(not HasNon0(sym, isub, sym->irrep_s(), jsub))
continue;
for(int iz = 0; iz < isub->size_zeta(); iz++) {
for(int jz = 0; jz < jsub->size_zeta(); jz++) {
CalcPrimSTV(mole, isub, jsub, iz, jz, s, t, v);
for(RdsIt irds = isub->rds.begin(); irds != isub->rds.end(); ++irds) {
for(RdsIt jrds = jsub->rds.begin(); jrds != jsub->rds.end();++jrds) {
if(sym->Non0_3(irds->irrep, 0, jrds->irrep)) {
int i(irds->offset + iz);
int j(jrds->offset + jz);
TransCoef(isub, jsub, irds, jrds, iz, jz, cc);
pair<Irrep, Irrep> ij(irds->irrep, jrds->irrep);
(*S)[ij](i, j) = MultArrayTDot(cc, s);
(*T)[ij](i, j) = MultArrayTDot(cc, t);
(*V)[ij](i, j) = MultArrayTDot(cc, v);
}
}
}
}
}
}
}
}
void CalcSMat(SymGTOs a, SymGTOs b, BMat *S) {
if(not a->setupq || not b->setupq) {
string msg; SUB_LOCATION(msg); msg = "\n" + msg + " : not setup";
throw runtime_error(msg);
}
SymmetryGroup sym = a->sym_group();
if(not sym->IsSame(b->sym_group())) {
string msg; SUB_LOCATION(msg); msg = "\n" + msg + " : not setup";
throw runtime_error(msg);
}
static A4dc s(1000), t(1000), v(1000);
static A4dc cc(1000);
InitBMat(a, 0, b, S);
Molecule mole = NewMolecule(sym);
for(SubIt isub = a->subs().begin(); isub != a->subs().end(); ++isub) {
for(SubIt jsub = b->subs().begin(); jsub != b->subs().end(); ++jsub) {
if(not HasNon0(sym, isub, sym->irrep_s(), jsub))
continue;
for(int iz = 0; iz < isub->size_zeta(); iz++) {
for(int jz = 0; jz < jsub->size_zeta(); jz++) {
CalcPrimSTV(mole, isub, jsub, iz, jz, s, t, v);
for(RdsIt irds = isub->rds.begin(); irds != isub->rds.end(); ++irds) {
for(RdsIt jrds = jsub->rds.begin(); jrds != jsub->rds.end();++jrds) {
if(sym->Non0_3(irds->irrep, 0, jrds->irrep)) {
TransCoef(isub, jsub, irds, jrds, iz, jz, cc);
pair<Irrep, Irrep> ij(irds->irrep, jrds->irrep);
int i(irds->offset + iz);
int j(jrds->offset + jz);
(*S)[ij](i, j) = MultArrayTDot(cc, s);
}
}
}
}
}
}
}
}
void CalcVMat(SymGTOs a, Molecule mole, SymGTOs b, BMat *V) {
if(not a->setupq || not b->setupq) {
string msg; SUB_LOCATION(msg); msg = "\n" + msg + " : not setup";
throw runtime_error(msg);
}
SymmetryGroup sym = a->sym_group();
if(not sym->IsSame(b->sym_group())) {
string msg; SUB_LOCATION(msg); msg = "\n" + msg + " : not setup";
throw runtime_error(msg);
}
static A4dc s(1000), t(1000), v(1000);
static A4dc cc(1000);
InitBMat(a, 0, b, V);
for(SubIt isub = a->subs().begin(); isub != a->subs().end(); ++isub) {
for(SubIt jsub = b->subs().begin(); jsub != b->subs().end(); ++jsub) {
if(not HasNon0(sym, isub, sym->irrep_s(), jsub))
continue;
for(int iz = 0; iz < isub->size_zeta(); iz++) {
for(int jz = 0; jz < jsub->size_zeta(); jz++) {
CalcPrimSTV(mole, isub, jsub, iz, jz, s, t, v);
for(RdsIt irds = isub->rds.begin(); irds != isub->rds.end(); ++irds) {
for(RdsIt jrds = jsub->rds.begin(); jrds != jsub->rds.end();++jrds) {
if(sym->Non0_3(irds->irrep, 0, jrds->irrep)) {
TransCoef(isub, jsub, irds, jrds, iz, jz, cc);
pair<Irrep, Irrep> ij(irds->irrep, jrds->irrep);
int i(irds->offset + iz);
int j(jrds->offset + jz);
(*V)[ij](i, j) = MultArrayTDot(cc, v);
}
}
}
}
}
}
}
}
void CalcDipMat(SymGTOs a, SymGTOs b,
BMat* X, BMat* Y, BMat* Z, BMat* DX, BMat* DY, BMat* DZ) {
if(not a->setupq || not b->setupq) {
string msg; SUB_LOCATION(msg); msg = "\n" + msg + " : not setup";
throw runtime_error(msg);
}
SymmetryGroup sym = a->sym_group();
if(not sym->IsSame(b->sym_group())) {
string msg; SUB_LOCATION(msg); msg = "\n" + msg + " : not setup";
throw runtime_error(msg);
}
InitBMat(a, sym->irrep_x(), b, X);
InitBMat(a, sym->irrep_x(), b, DX);
InitBMat(a, sym->irrep_y(), b, Y);
InitBMat(a, sym->irrep_y(), b, DY);
InitBMat(a, sym->irrep_z(), b, Z);
InitBMat(a, sym->irrep_z(), b, DZ);
static A4dc x(1000), y(1000), z(1000), dx(1000), dy(1000), dz(1000);
A4dc cc(1000);
for(SubIt isub = a->subs().begin(); isub != a->subs().end(); ++isub) {
for(SubIt jsub = b->subs().begin(); jsub != b->subs().end(); ++jsub) {
// -- scalar --
bool calc_x = HasNon0(sym, isub, sym->irrep_x(), jsub);
bool calc_y = HasNon0(sym, isub, sym->irrep_y(), jsub);
bool calc_z = HasNon0(sym, isub, sym->irrep_z(), jsub);
if(not calc_x && not calc_y && not calc_z)
continue;
for(int iz = 0; iz < isub->size_zeta(); iz++) {
for(int jz = 0; jz < jsub->size_zeta(); jz++) {
CalcPrimDip(isub, jsub, iz, jz, x, y, z, dx, dy, dz);
for(RdsIt irds = isub->rds.begin(); irds != isub->rds.end(); ++irds) {
for(RdsIt jrds = jsub->rds.begin(); jrds != jsub->rds.end();++jrds) {
TransCoef(isub, jsub, irds, jrds, iz, jz, cc);
pair<Irrep, Irrep> ij(irds->irrep, jrds->irrep);
int i(irds->offset + iz);
int j(jrds->offset + jz);
if(sym->Non0_3(irds->irrep, sym->irrep_x(), jrds->irrep)) {
(*X)[ij](i, j) = MultArrayTDot(cc, x);
(*DX)[ij](i, j) = MultArrayTDot(cc, dx);
}
if(sym->Non0_3(irds->irrep, sym->irrep_y(), jrds->irrep)) {
(*Y)[ij](i, j) = MultArrayTDot(cc, y);
(*DY)[ij](i, j) = MultArrayTDot(cc, dy);
}
if(sym->Non0_3(irds->irrep, sym->irrep_z(), jrds->irrep)) {
(*Z)[ij](i, j) = MultArrayTDot(cc, z);
(*DZ)[ij](i, j) = MultArrayTDot(cc, dz);
}
}
}
}
}
}
}
}
void CalcDipMat(SymGTOs a, SymGTOs b, BMat* L, BMat *V) {
if(not a->setupq || not b->setupq) {
string msg; SUB_LOCATION(msg); msg = "\n" + msg + " : not setup";
throw runtime_error(msg);
}
SymmetryGroup sym = a->sym_group();
if(not sym->IsSame(b->sym_group())) {
string msg; SUB_LOCATION(msg); msg = "\n" + msg + " : not setup";
throw runtime_error(msg);
}
static A4dc x(1000), y(1000), z(1000), dx(1000), dy(1000), dz(1000);
A4dc cc(1000);
for(SubIt isub = a->subs().begin(); isub != a->subs().end(); ++isub) {
for(SubIt jsub = b->subs().begin(); jsub != b->subs().end(); ++jsub) {
// -- scalar --
bool calc_x = HasNon0(sym, isub, sym->irrep_x(), jsub);
bool calc_y = HasNon0(sym, isub, sym->irrep_y(), jsub);
bool calc_z = HasNon0(sym, isub, sym->irrep_z(), jsub);
if(not calc_x && not calc_y && not calc_z)
continue;
for(int iz = 0; iz < isub->size_zeta(); iz++) {
for(int jz = 0; jz < jsub->size_zeta(); jz++) {
CalcPrimDip(isub, jsub, iz, jz, x, y, z, dx, dy, dz);
for(RdsIt irds = isub->rds.begin(); irds != isub->rds.end(); ++irds) {
for(RdsIt jrds = jsub->rds.begin(); jrds != jsub->rds.end();++jrds) {
TransCoef(isub, jsub, irds, jrds, iz, jz, cc);
pair<Irrep, Irrep> ij(irds->irrep, jrds->irrep);
int i(irds->offset + iz);
int j(jrds->offset + jz);
if(sym->Non0_3(irds->irrep, sym->irrep_x(), jrds->irrep)) {
(*L)[ij](i, j) = MultArrayTDot(cc, x);
(*V)[ij](i, j) = MultArrayTDot(cc, dx);
}
if(sym->Non0_3(irds->irrep, sym->irrep_y(), jrds->irrep)) {
(*L)[ij](i, j) = MultArrayTDot(cc, y);
(*V)[ij](i, j) = MultArrayTDot(cc, dy);
}
if(sym->Non0_3(irds->irrep, sym->irrep_z(), jrds->irrep)) {
(*L)[ij](i, j) = MultArrayTDot(cc, z);
(*V)[ij](i, j) = MultArrayTDot(cc, dz);
}
}
}
}
}
}
}
}
void CalcPWVec( SymGTOs a, const Vector3cd& k,
BVec *pS, BVec *pX, BVec *pY, BVec *pZ) {
static A2dc s(1000), x(1000), y(1000), z(1000);
for(SubIt isub = a->subs().begin(); isub != a->subs().end(); ++isub) {
for(int iz = 0; iz < isub->size_zeta(); iz++) {
// -- basic --
dcomplex zetai = isub->zeta_iz[iz];
int niat(isub->size_at());
int nipn(isub->size_pn());
s.SetRange(0, niat, 0, nipn);
x.SetRange(0, niat, 0, nipn);
y.SetRange(0, niat, 0, nipn);
z.SetRange(0, niat, 0, nipn);
// -- primitive --
for(int iat = 0; iat < niat; iat++) {
for(int ipn = 0; ipn < nipn; ipn++) {
CartGTO gi(isub->nx(ipn), isub->ny(ipn), isub->nz(ipn),
isub->x( iat), isub->y( iat), isub->z( iat),
zetai);
s(iat, ipn) = PWVecEle(k, gi);
x(iat, ipn) = PWXVecEle(k, gi);
y(iat, ipn) = PWYVecEle(k, gi);
z(iat, ipn) = PWZVecEle(k, gi);
}
}
// -- translation --
for(RdsIt irds = isub->rds.begin(); irds != isub->rds.end(); ++irds) {
dcomplex accs(0), accx(0), accy(0), accz(0);
for(int iat = 0; iat < niat; iat++) {
for(int ipn = 0; ipn < nipn; ipn++) {
dcomplex cc = irds->coef_iat_ipn(iat, ipn)*irds->coef_iz(iz);
accs += cc * s(iat, ipn);
accx += cc * x(iat, ipn);
accy += cc * y(iat, ipn);
accz += cc * z(iat, ipn);
}
}
(*pS)[irds->irrep][irds->offset + iz] = accs;
(*pX)[irds->irrep][irds->offset + iz] = accx;
(*pY)[irds->irrep][irds->offset + iz] = accy;
(*pZ)[irds->irrep][irds->offset + iz] = accz;
}
}
}
}
}
|
331505f40575222c841cc2aeb37b0ae2de3290f8
|
99a150833c58400c9de7bbd75d6f884948f75469
|
/tests/SPMC_IPC_Consumer.cpp
|
4eb482b7773986f806a4554ace1a7b4ce0e2bcc5
|
[] |
no_license
|
acerwei/lockfreequeues
|
a6f5a340c24dd607665de44a80405c43fd506e78
|
6549812bc556628f75b9c3752cc49abe80c0abd1
|
refs/heads/master
| 2023-02-26T16:36:40.523293
| 2021-01-31T09:03:36
| 2021-01-31T09:03:36
| 296,818,908
| 0
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 1,118
|
cpp
|
SPMC_IPC_Consumer.cpp
|
/*
CopyRight (c) acer.king.wei@gmail.com 2019
*/
#include "../headers/SPMC.h"
using namespace std;
int main(int argc, char **argv)
{
if (argc<6)
{
cout<<"Error!!"<<endl;
cout<<"Format: bin Topic Pid MaxReaders BuffSize "<<endl;
exit(0);
}
int pid = std::atoi(argv[2]);
int n = std::atoi(argv[3]);
int bufSize = std::atoi(argv[4]);
int rid = std::atoi(argv[5]);
cout<<"Topic = "<<argv[1]<<", Pid = "<< argv[2]<<", MaxReaders = " <<n <<", BuffSize = "<<bufSize<<endl;
cout<<"My Reader ID is "<<rid<<endl;
//
SPMC<MemType_IPC> *shipc = new SPMC<MemType_IPC>(argv[1], (char)(pid&0xff), n, bufSize);
shipc->start(rid);
char buf[64];
int received = 0;
while (true)
{
size_t len = shipc->pop(rid, buf);
if (!len)
std::this_thread::sleep_for(chrono::nanoseconds(1));
else
{
received++;
buf[len] = '\0';
cout<<buf<<" "<<len<<" "<<received<<endl;
}
}
delete shipc;
std::this_thread::sleep_for(chrono::seconds(1));
return 0;
}
|
4ec8452abd0658f2cbf21f5f5430a5d55ff7e0c1
|
a26ea35c68a64304bc7e080c86b7c8f0354f20a7
|
/power.cpp
|
913ef66a92e5d9e17b04d2357eea45e051d6fcb0
|
[] |
no_license
|
indranilsldu/Recursion-using-C-
|
9ef0da7339a3fc28134c9029d0c33cbb35454a9e
|
c5d029f6c1a41326dad5ce49063ff158bfe531c4
|
refs/heads/master
| 2021-02-15T14:07:53.085584
| 2020-03-05T16:18:46
| 2020-03-05T16:18:46
| 244,905,794
| 1
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 405
|
cpp
|
power.cpp
|
#include <iostream>
using namespace std;
long int power(int x,int y)
{
if(y==1)
return x;
else
return x*power(x,y-1);
}
int main()
{
int x, y;
cout << "Enter the first number raised to second number: ";
cin >> x >> y;
long int res = power(x,y);
cout << "The power of the first number raised to second number is " << res;
return 0;
}
|
6871b8011b20248428f03d4684e0258977433463
|
55d71cdbf0d60d89be90e5b7843e496dab23cac9
|
/SDK/Galil PlugIn/Decoders.cpp
|
4c70c479ae279346eef7652c40efcb499d53aa95
|
[
"MIT"
] |
permissive
|
mariusl/step2mach
|
13f5838471e41a759b352afd0297c43ff7b17791
|
3ac7ff6c3b29a25f4520e4325e7922f2d34c547a
|
refs/heads/master
| 2020-05-25T02:22:29.182553
| 2019-06-21T11:54:01
| 2019-06-21T11:54:01
| 187,577,085
| 0
| 0
|
MIT
| 2019-06-21T11:54:02
| 2019-05-20T06:03:55
|
C
|
UTF-8
|
C++
| false
| false
| 9,338
|
cpp
|
Decoders.cpp
|
#include "stdafx.h"
#include "G100-Structs.h"
#include "decoders.h"
#include "Engine.h"
#include "TrajectoryControl.h"
#include "MessageTracker.h"
#include "Monitoring.h"
#include "math.h"
extern TrajBuffer *Engine;
extern TrajectoryControl *MainPlanner;
extern MessageTracker *G100Mess;
extern Monitoring *G100Mon;
extern int InitQueue; //this is set to sync the Queue sequence to the G100 current state at startup or after a seq error.
extern int IDs[64]; //Line numbers for each queue move..
//////////////////////////////////////////////////// INPUT MESSAGE DECODING //////////////////////////////////////////////
//These routines are decoders of various messages structures. Their responsibility is to fill the G100
//superstructure and perhaps trigger other events. Events are best hanlded by times repsonce however, not immediate
// responce. TIming is not critical in most cases, and overflow of the G100 can result from pressing too much.
extern GRex G100;
//this is responsibel for syncing states with anythign we're waiting for..
void SyncStates()
{
int curmon;
switch( G100.WaitForState )
{
case( NONE ): return;
case( MONITORSET ):
case( MONITORCHALLENGE ):
curmon = G100.CurrentHaltBits ^ 0xffffff;
if( G100.MonitorHaltBits == curmon )
G100.WaitForState = NONE; //inversion in effect
return; //Todo.. Add timer for resend of halt mask if this times out..
}
}
void FillFromFullStatus(WTMsFull status)
{
CheckQueueCap( status.qcap , false ); //check the queue capacity before chekcing the monitor.
CheckABSPosition( status.abs ); //active position update
CheckCurrentState( status.qstate ); //check the state of the queue
CheckEncoders( status.ctr ); //active
CheckInputs(status.in ); //active
CheckOutputs( status.out ); //active
}
void CheckCurrentState( WTMsQstat state )
{
static int lastm_isr = -1;
static int lastque = 0;
bool WasStopped = G100.HasMoved;
state.halt_bits = ShuffleInWord( state.halt_bits );
G100.CurrentHaltBits = state.halt_bits & 0xffffff;
G100.CurrentISR = state.m_isr;
G100.CurrentMISR = state.iters;
// for realtime checks..
G100.IsStill = ( state.sflags & QS_STILL ) != 0;
G100.IsDrained = ( state.sflags & QS_MAVGZ) != 0;
if( !G100.IsStill && !G100.IsDrained )
{
G100.HasMoved = true;
}
if( G100.EndQueueSeq == G100.CurrentQueueSeq &&
lastm_isr == G100.CurrentMISR )
{
//G100.IsStill = true;
//G100.IsDrained = true; //this corrects for a halt bug in the G100 that refuses to set IsStill
// And Is Drained if a monitor command is pending..
}
lastm_isr = G100.CurrentMISR;
lastque = G100.CurrentQueueSeq;
if( G100.Dwelling && G100.CurrentMISR == 0)
{
//this will clear the dwell flag in the Engine, and
//mach3 will continue translating code..
G100.Dwelling = false;
Engine->DwellTime = 0;
}
if( state.sflags & QS_HALT ) //we have a monitoring trigger..
{
G100Mon->OnMonitor(state.curr , state.halt_bits ); //this sends the challenge number and mask to the OnMonitor to decide what to do..
G100.SystemHalted = true;
}
else
G100.SystemHalted = false;
//now check every WTMsQstat for a sequence change..
}
void CheckQueueCap( WTMsQcap cap , bool ASync )
{
CString debug;
G100.CurrentQueueSeq = cap.cseq; // Current queue sequence number
//Store the next sequence number if we're init'ing the queue
G100.EndQueueSeq = cap.eseq; // Ending (most forward) QSN, plus one.
if (IDs[ G100.CurrentQueueSeq & 0x3f ] != 0 && Engine->TrajHead != Engine->TrajIndex )
{
debug.Format("Set to Display line: %d", IDs[ G100.CurrentQueueSeq & 0x3f ] );
Engine->DisplayLine = IDs[ G100.CurrentQueueSeq & 0x3f ];
G100Mess->DebugOut( debug );
}
if( InitQueue == 1 )
{
G100.NextQueue = G100.EndQueueSeq; //sync the SEQ and the ACK
G100.LastStored = G100.LastAck +1;
debug.Format( "Initit Queue to %d and Seq to %d", G100.NextQueue, G100.LastStored );
G100Mess->DebugOut( debug );
InitQueue = 0;
}
if( InitQueue > 0 ) InitQueue--;
G100.QueueFlags = cap.flags; // Queue capacity flags
}; //check the queue capacity
void CheckABSPosition( WTMsAbs abs )
{
G100.LastAbs = abs;
static int last[6] = { 0,0,0,0,0,0 };
for( int x = 0; x<6; x++)
{
if( Engine->Directions[x] ) abs.p[x] = - abs.p[x];
MainPlanner->PosChange[x] = RateToPos( x, abs.p[x]);
G100.CurDDA[x] = abs.p[x];
G100.LastCoord[x] = ActualPos( x, abs.p[x] );
//Mach3 Position update here
Engine->Axis[x].Index = (int) RateToPos( x,G100.CurDDA[x]); //update the MAch3 index registers with absolute position..
//Feedrate realtime update here for each axis.
Engine->StatLast[x] = ((abs.v[x] + last[x]) / 2) * 205; //amount per ms * 200 to match a 200ms calculation in Mach3
Engine->StatLast[x] = RateToPos( x, Engine->StatLast[x] );
last[x] = abs.v[x];
}
if( G100.IsStill && G100.IsDrained && G100Mess->nMessages == 0) //tell the Engine that all is done..
MainPlanner->ExternalStill = true;
else
MainPlanner->ExternalStill = false;
for( int a = 3; a<6; a++)
if( Engine->Axis[a].Slave ) //slaved axis should always report zero;
{
MainPlanner->PosChange[a] = 0;
G100.LastCoord[a] = 0;
Engine->StatLast[a] = 0;
last[a] = 0;
}
}; // positions
void CheckRELPosition( WTMsPos abs)
{
for( int x = 0; x<6; x++)
{
Engine->Axis[x].DepthCount = RateToPos( x, abs.pos[x].i );
if(Engine->Directions[x] ) Engine->Axis[x].DepthCount = -Engine->Axis[x].DepthCount;
}
};
void CheckEncoders( WTMsCtr counts )
{
for( int x = 0; x<6; x++)
{
Engine->Encoders[x].Count[0] = (counts.cex[x] << 16 | counts.f[x].c) - MainPlanner->EncoderZeros[x]; //ask Steve about this being short?
}
Engine->Counter = G100.CurrentISR;
}; //encoder positions
void CheckInputs( WTMsIn In )
{
In.i = ShuffleInWord( In.i); //shuffle the input word..
G100.InWord = In.i;
bool On = false;
for( int x = 0; x< nSigs; x++ )
{
if( Engine->InSigs[x].InPort == 1 &&
Engine->InSigs[x].Active &&
Engine->InSigs[x].InPin >= 1 &&
Engine->InSigs[x].InPin < 23 )
{
On = ((In.i >> (Engine->InSigs[x].InPin -1)) & 0x01);
Engine->InSigs[x].Activated = On;
if( Engine->InSigs[x].Negated ) Engine->InSigs[x].Activated = !On;
}
if( x < 64 )
{
int mask = 1 << x;
if( (Engine->WaitCondition & mask) > 0 )
if( Engine->InSigs[x].Active && Engine->InSigs[x].Activated ) //to make Mach3 waitcondition work..
Engine->WaitCondition &= ( 0xffffffff ^ mask );
}
}
MainPlanner->ModInputs[124] = In.ain[0]; //analogue inputs to the analogue holding registers.
MainPlanner->ModInputs[125] = In.ain[1];
MainPlanner->ModInputs[126] = In.ain[2];
MainPlanner->ModInputs[127] = In.ain[3];
}; //inputs
void CheckOutputs( WTMsOut out )
{
bool On = false;
G100.NeedDigOutputs = false;
unsigned int outs = 0;
for( int x = 0; x< nSigsOut; x++ )
{
if( Engine->OutSigs[x].OutPort == 1 &&
Engine->OutSigs[x].active &&
Engine->OutSigs[x].OutPin >= 1 &&
Engine->OutSigs[x].OutPin < 17 ) //pins 1-16
{
On = Engine->OutSigs[x].Activated;
if( Engine->OutSigs[x].Negated) On = !On;
//On is now true or false depending on the current state
SetBit( outs, On, Engine->OutSigs[x].OutPin); //set the bit in the output..
}
}
if( out.o != outs )
G100.NeedDigOutputs = true;
G100.NeedAnaOutputs = false;
if( (unsigned short)MainPlanner->ModOutputs[124] != out.aout[0] || //analogue outputs from analogue holding registers.
(unsigned short)MainPlanner->ModOutputs[125] != out.aout[1] ||
(unsigned short)MainPlanner->ModOutputs[126] != out.aout[2] || //analogue #3 seems unable to accept data
(unsigned short)MainPlanner->ModOutputs[127] != out.aout[3])
G100.NeedAnaOutputs = true;
}; //outputs
//Numeric Helpers/ ////////////////////////////////////////////////////////////////////////////
int ShuffleInWord(int data)
{
int a = (( data & 0xff0000) >> 16);
int b = (( data & 0x00ff000000) >> 16);
int c = (( data & 0xff00) << 8);
return a | b | c;
}
int ShuffleOutWord(int data)
{
int a = (( data & 0xff) << 16);
int b = (( data & 0x00ff00) << 16);
int c = (( data & 0xff0000) >> 8);
return a | b | c;
}
void SetBit( unsigned int &data, bool OnOff, short nBit)
{
if( OnOff ) //bit shoudl be made high
{
data |= ( 1 << (nBit-1) );
return;
}
data = data ^ 0xffffffff;
data |= ( 1 << (nBit-1) );
data = data ^ 0xffffffff;
}
slong RateToPos( int axis, slong pos)
{
slong poso;
poso = (slong)(pos / pow( (int)2, G100.Config.axis[axis].divider + 3));
return poso;
}
double ActualPos( int x, slong pos )
{
double poso;
poso = (pos / pow( (int) 2, G100.Config.axis[x].divider + 3));
return poso / MainPlanner->StepsPerAxis[x];
}
////////////////////////////////////////////////////////////////////// Helper routines for Network Traffic.
//
CString IpToString(DWORD ip)
{
char s[50];
itoa ((int)(ip >> 24), s, 10);
strcat (s, ".");
itoa ((int)(ip >> 16) & 0xFF, strchr(s,'\0'), 10);
strcat (s, ".");
itoa ((int)(ip >> 8) & 0xFF, strchr(s,'\0'), 10);
strcat (s, ".");
itoa ((int)(ip & 0xFF), strchr(s,'\0'), 10);
CString out = s;
return out;
}
|
b6d8981f6e59ea8b943bd176cd2b08b6ce012b47
|
f5ccc265ea129aac19d6d9dc7f45559938bb481d
|
/tests/KadizQLFieldNull.test.cpp
|
fa33c59dd105074588dc9f9f6c287612abaae4b5
|
[] |
no_license
|
webkadiz/KadizQL
|
c759ec0f7343665dafbeb3f55b9a769a36073d1c
|
85a4b789da4d931ce22bb9ef18d54738a66da9a1
|
refs/heads/main
| 2023-04-19T22:48:09.488623
| 2021-05-07T11:59:08
| 2021-05-07T11:59:08
| 360,678,420
| 0
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 370
|
cpp
|
KadizQLFieldNull.test.cpp
|
#include "../include/KadizQLFieldNull.h"
#include "../include/utils.h"
using namespace KadizQL;
using namespace std;
int main() {
size_t testNumber = 0;
{
FieldNull fieldNull("int");
if (fieldNull.getEncodedSize() == 4) {
testPassed(testNumber);
} else {
testFailed(testNumber);
}
}
return 0;
}
|
37d849cd203852862ab70f0e7325bc813d8940ca
|
39e72bfb033edb3c4e278bcbfa77ec4fe2ce1b46
|
/binary_translator/src/InstructionTranslationUnitCache.cpp
|
f43eb468681efc11055ffb76edb719cafb0158b8
|
[
"Apache-2.0",
"BSD-3-Clause"
] |
permissive
|
avatarone/avatar-python
|
e8b3ceb783f8fc1069a675a4fde6cdd578019602
|
c6d74f85f63333e3031e1f5e208d3f90e316a9e4
|
refs/heads/master
| 2021-06-11T21:11:38.220494
| 2016-10-18T12:45:43
| 2016-10-18T12:45:43
| 14,178,409
| 31
| 11
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 4,311
|
cpp
|
InstructionTranslationUnitCache.cpp
|
#include "lldc/InstructionTranslationUnitCache.h"
#include "lldc/util.h"
#include "llvm/IR/IRBuilder.h"
#include "llvm/IR/BasicBlock.h"
#include "llvm/IR/Function.h"
#include "llvm/IR/Value.h"
using namespace llvm;
void InstructionTranslationUnit::addIncoming(const std::map< unsigned, llvm::Value* >& values, llvm::BasicBlock* predecessor)
{
for (std::map< unsigned, Value* >::const_iterator itr = values.begin();
itr != values.end();
itr++)
{
assert(phi_nodes.find(itr->first) != phi_nodes.end() && "Found value that is not specified in the value information of the configuration");
phi_nodes[itr->first]->addIncoming(itr->second, predecessor);
}
}
bool UnfinishedInstructionTranslationUnit::operator==(const UnfinishedInstructionTranslationUnit& other)
{
return instruction_translation_unit.getProgramCounter() == other.instruction_translation_unit.getProgramCounter();
}
InstructionTranslationUnit* InstructionTranslationUnitCache::find(Function* function, uint64_t pc)
{
std::map< Function*, std::map< uint64_t, InstructionTranslationUnit > >::iterator outer_itr = instruction_translation_unit_cache.find(function);
if (outer_itr != instruction_translation_unit_cache.end())
{
std::map< uint64_t, InstructionTranslationUnit >::iterator inner_itr = outer_itr->second.find(pc);
if (inner_itr != outer_itr->second.end())
return &inner_itr->second;
}
return NULL;
}
InstructionTranslationUnit* InstructionTranslationUnitCache::create(
ReverseTranslationConfiguration& config,
Function* function,
uint64_t pc)
{
BasicBlock *head_bb = BasicBlock::Create(config.getLLVMContext(), intToHexString(pc), function);
IRBuilder<> builder(head_bb);
InstructionTranslationUnit& unit = instruction_translation_unit_cache[function][pc];
std::map< unsigned, Value* > new_values;
unit.head_bb = head_bb;
unit.instruction_set = 0;
unit.original_instruction = 0;
unit.is_finished = false;
unit.function = function;
unit.pc = pc;
for (std::list< ValueInformation >::const_iterator value_info_itr = config.getValueInformation().begin();
value_info_itr != config.getValueInformation().end();
value_info_itr++)
{
PHINode *phi = builder.CreatePHI(value_info_itr->getType(), 0, value_info_itr->getName());
unit.phi_nodes[value_info_itr->getId()] = phi;
new_values[value_info_itr->getId()] = phi;
}
this->unfinished_instruction_translation_units.push_back(new UnfinishedInstructionTranslationUnit(unit, new_values));
return &unit;
}
bool InstructionTranslationUnitCache::has_more_unfinished_translation_units()
{
return !this->unfinished_instruction_translation_units.empty();
}
UnfinishedInstructionTranslationUnit* InstructionTranslationUnitCache::get_next_unfinished_translation_unit()
{
UnfinishedInstructionTranslationUnit* unit = this->unfinished_instruction_translation_units.front();
this->unfinished_instruction_translation_units.pop_front();
return unit;
}
UnfinishedInstructionTranslationUnit::UnfinishedInstructionTranslationUnit(InstructionTranslationUnit& unit, const std::map< unsigned, llvm::Value* >& values)
: instruction_translation_unit(unit), values(values)
{
}
/**
* Get a translated instruction, if it is already translated, or create a new one
* if no translation has been found.
*/
InstructionTranslationUnit* InstructionTranslationUnitCache::find_create(
ReverseTranslationConfiguration& config,
Function* function,
uint64_t pc,
const std::map< unsigned, Value* >& predecessor_values,
BasicBlock *predecessor_bb,
bool terminate_last_block)
{
InstructionTranslationUnit* unit = this->find(function, pc);
if (!unit)
{
unit = this->create(config, function, pc);
}
unit->addIncoming(predecessor_values, predecessor_bb);
if (terminate_last_block)
{
IRBuilder<> builder(predecessor_bb);
builder.CreateBr(unit->getHead());
}
return unit;
}
InstructionTranslationUnitCache& InstructionTranslationUnitCache::getInstance()
{
static InstructionTranslationUnitCache instance;
return instance;
}
|
e175dc3ac38b3b2933d001f43dca7242a979346e
|
e9749d4e271546fbcdd261edd538d99eb3f7fff8
|
/QT/dermo_qt/20_10_2015/myhighlighter.cpp
|
f6cbf336bc807aa0e47ca50b6878bbb450f3733a
|
[] |
no_license
|
Xambey/something
|
90e4c4823cf553f9c8acc190313fec991b22b44d
|
0dc0ecd163e1fc662caea16f7363e166b6687adf
|
refs/heads/master
| 2021-01-10T14:40:09.253969
| 2016-05-09T08:57:50
| 2016-05-09T08:57:50
| 52,145,859
| 0
| 1
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 1,010
|
cpp
|
myhighlighter.cpp
|
#include <QLabel>
#include <QtGui>
#include <QApplication>
#include <QSplitter>
#include <QTextEdit>
#include <QLineEdit>
#include <QSpinBox>
#include <QPushButton>
#include <QVBoxLayout>
#include <QPixmap>
#include <QCheckBox>
#include <QGroupBox>
#include<QRadioButton>
#include <QWidget>
#include <QGridLayout>
#include <QAbstractSlider>
#include <QDial>
#include <QSlider>
#include <cstdlib>
#include <ctime>
#include <QWidget>
#include <QSyntaxHighlighter>
#include "myhighlighter.h"
#include <QtGui>
MyHighlighter::MyHighlighter(QTextDocument *parent) : QSyntaxHighlighter(parent)
{
}
void MyHighlighter::highlightBlock(const QString& str)
{
bool f = false;
bool pr = false;
for (int i = 0; i < str.length(); ++i) {
if (str.at(i).isNumber()) {
setFormat(i, 1, Qt::red);
}
if(str.at(i) == '"'){
f = !f;
setFormat(i, 1, Qt::blue);
i++;
}
if(f){
setFormat(i, 1, Qt::green);
}
}
}
|
0519d1b1096de164df7eaf8aec6ef0f527f75a2d
|
d2de984f31befb667233a31093ae41cc3ac22ae2
|
/loginwindow.cpp
|
3802e1dd1ffc0ab414783f982b4459c14bbf80a0
|
[] |
no_license
|
George-sudo/AST1520ClientUpgradeTool
|
22eec4059c404421e15bc4395b70f843c3676801
|
45dd3145c9c614fd754c972d870e05e49d2e53b7
|
refs/heads/master
| 2022-11-13T17:54:02.809712
| 2020-07-04T04:13:33
| 2020-07-04T04:13:33
| 275,969,184
| 0
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 2,250
|
cpp
|
loginwindow.cpp
|
#include "loginwindow.h"
#include "ui_loginwindow.h"
QUdpSocket *LoginWindow::UdpSocket = nullptr;
int LoginWindow::ServerPort = 50010;
QHostAddress LoginWindow::ServerAddress;
QString LoginWindow::m_min = "NULL";
QString LoginWindow::m_sec = "NULL";
QString LoginWindow::User = "NULL";
QString LoginWindow::Pass = "NULL";
int LoginWindow::m_num = 0;
LoginWindow::LoginWindow(QWidget *parent) :
QWidget(parent),
ui(new Ui::LoginWindow)
{
ui->setupUi(this);
LoginWindow::UdpSocket = new QUdpSocket(this);
LoginWindow::UdpSocket->bind(50010,QAbstractSocket::DontShareAddress);//绑定本地端口号
}
LoginWindow::~LoginWindow()
{
delete ui;
}
void LoginWindow::on_QuitBt_clicked()
{
QApplication* app;
app->quit();
}
void LoginWindow::on_LoginBt_clicked()
{
//获取当前时间的分秒
QString min;
QString sec;
QTime CurrentTime = QTime::currentTime();
min = QString("%1").arg(CurrentTime.minute());
sec = QString("%1").arg(CurrentTime.second());
//生成数字编号
if(m_min==min && m_sec==sec)
{
if(m_num < 9)
++m_num;
else
m_num = 0;
}
else
{
m_num = 0;
m_min = min;
m_sec = sec;
}
//获取用户账号和密码
LoginWindow::User = ui->UserLE->text();
LoginWindow::Pass = ui->PassLE->text();
//创建登录服务器命令的Json对象
QJsonObject obj;
obj.insert("actioncode",PC_LOGIN_TO_SERVER);
obj.insert("device_name","KVM_PC_9500");
obj.insert("data",LoginWindow::User+','+LoginWindow::Pass);
obj.insert("msg_id",(m_min+m_sec+QString("%1").arg(m_num)).toInt());
//序列化Json对象
QJsonDocument jsonDoc(obj);
QByteArray ba = jsonDoc.toJson();
//生成CRC16
quint16 crc = crc16_ccitt(ba.data(),ba.size());
ba.append(crc>>8);
ba.append(crc&0x00ff);
//添加结束符
ba.append(END);
//设置ip
LoginWindow::ServerAddress.setAddress(ui->IpLE->text());
// qDebug()<<UdpSocket->bind(Address,Port,QAbstractSocket::ShareAddress);
//发出登录服务器命令信号
emit JsonOder(NormalToSend,ba);
}
|
d13d742fa8590a638aad3bfdded43aa2ae23645f
|
323eb296cbf740ad6bf678fb15e48f0315b66824
|
/ps/BOJ/1120 문자열.cpp
|
bf3d36c545c575a931832f48ae942c008cf15ea5
|
[] |
no_license
|
zziri/study
|
0da83d87247dafb1083b6068e9b6354cb960af0c
|
b0eded396c5201283db2d7f45b66d19d3f2831b4
|
refs/heads/master
| 2023-03-26T23:47:13.699539
| 2021-03-25T01:19:40
| 2021-03-25T01:19:40
| 152,895,651
| 0
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 927
|
cpp
|
1120 문자열.cpp
|
/**
* @author Jihoon Jang
*/
#include <iostream>
#define abs(a) ((a>=0)?(a):(-a))
#define INF 987654321
#define SIZE 101
using namespace std;
void input(char *a, char *b)
{
cin >> a >> b;
}
int strlenn(char *str)
{
int ret = 0;
for(int i=0; str[i]; i++){
ret++;
}
return ret;
}
int strdiff(char *str1, char *str2)
{
int ret = 0;
for(int i=0; str1[i] && str2[i]; i++){
if(str1[i] != str2[i])
ret++;
}
return ret;
}
int minn(int n1, int n2)
{
if(n1 > n2)
return n2;
else
return n1;
}
int strlendiff(char *str1, char* str2)
{
int len1 = strlenn(str1), len2 = strlenn(str2);
return abs((len1-len2));
}
int solve(char *a, char *b)
{
int ret = INF;
int len = strlendiff(a, b);
for(int i=0; i<=len; i++){
ret = minn(ret, strdiff(a, b+i));
}
return ret;
}
int main(void)
{
ios::sync_with_stdio(false);
char a[SIZE];
char b[SIZE];
input(a, b);
cout << solve(a, b) << '\n';
return 0;
}
|
8716356a1361079823d6f530a4c3ad5a9d7177c6
|
1f5ed6bf21a3277ca821dfff179ae534193acfdd
|
/Martin/3rd/SFBAudioEngine/Output/AudioOutput.cpp
|
a9197afee99fae4d01b830ecef6ae79711d64909
|
[
"MIT"
] |
permissive
|
tgrbin/Martin
|
348943564121ea67d85febaf414cc5294c0f24a3
|
4935094faec06fd6808acb21b682f341d9de5b54
|
refs/heads/master
| 2016-09-16T14:26:43.706904
| 2016-04-17T10:52:55
| 2016-04-17T10:52:55
| 16,113,436
| 12
| 1
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 3,811
|
cpp
|
AudioOutput.cpp
|
/*
* Copyright (C) 2014 Stephen F. Booth <me@sbooth.org>
* All Rights Reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* - Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* - Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* - Neither the name of Stephen F. Booth nor the names of its
* contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
* HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include "AudioOutput.h"
#include "Logger.h"
SFB::Audio::Output::Output()
: mPlayer(nullptr)
{}
#pragma mark -
bool SFB::Audio::Output::SupportsFormat(const AudioFormat& format) const
{
return _SupportsFormat(format);
}
bool SFB::Audio::Output::Open()
{
LOGGER_DEBUG("org.sbooth.AudioEngine.Output", "Opening output");
if(_IsOpen())
return true;
return _Open();
}
bool SFB::Audio::Output::Close()
{
LOGGER_DEBUG("org.sbooth.AudioEngine.Output", "Closing output");
if(!_IsOpen())
return true;
return _Close();
}
bool SFB::Audio::Output::Start()
{
LOGGER_DEBUG("org.sbooth.AudioEngine.Output", "Starting output");
if(!_IsOpen())
return false;
if(_IsRunning())
return true;
return _Start();
}
bool SFB::Audio::Output::Stop()
{
LOGGER_DEBUG("org.sbooth.AudioEngine.Output", "Stopping output");
if(!_IsOpen())
return false;
if(!_IsRunning())
return true;
return _Stop();
}
bool SFB::Audio::Output::RequestStop()
{
LOGGER_DEBUG("org.sbooth.AudioEngine.Output", "Requesting output stop");
if(!_IsOpen())
return false;
if(!_IsRunning())
return true;
return _RequestStop();
}
bool SFB::Audio::Output::Reset()
{
LOGGER_DEBUG("org.sbooth.AudioEngine.Output", "Resetting output");
if(!_IsOpen())
return false;
// Some outputs may be able to reset while running
return _Reset();
}
bool SFB::Audio::Output::SetupForDecoder(const Decoder& decoder)
{
return _SetupForDecoder(decoder);
}
#pragma mark -
bool SFB::Audio::Output::CreateDeviceUID(CFStringRef& deviceUID) const
{
return _CreateDeviceUID(deviceUID);
}
bool SFB::Audio::Output::SetDeviceUID(CFStringRef deviceUID)
{
LOGGER_DEBUG("org.sbooth.AudioEngine.Output", "Setting device UID to " << deviceUID);
return _SetDeviceUID(deviceUID);
}
bool SFB::Audio::Output::GetDeviceSampleRate(Float64& sampleRate) const
{
return _GetDeviceSampleRate(sampleRate);
}
bool SFB::Audio::Output::SetDeviceSampleRate(Float64 sampleRate)
{
LOGGER_DEBUG("org.sbooth.AudioEngine.Output", "Setting device sample rate to " << sampleRate);
return _SetDeviceSampleRate(sampleRate);
}
size_t SFB::Audio::Output::GetPreferredBufferSize() const
{
return _GetPreferredBufferSize();
}
|
ba549e79dd215afabaeb2f7f42ea60b6eb11a556
|
53288d41d609f174b37daf722a41bd1ac930adf1
|
/TD2_Cpp/ex3.cpp
|
5e593720916886bdcac2df95ed5f84d9f3163838
|
[] |
no_license
|
auricjeremy/Cpp
|
00f555e63da442e2abe712ced2e57c0d654bf707
|
06daf6033367e4b252bad16fe69a5a4a67b0f450
|
refs/heads/master
| 2022-01-09T16:52:03.616080
| 2018-11-28T09:15:07
| 2018-11-28T09:15:07
| null | 0
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 297
|
cpp
|
ex3.cpp
|
#include <iostream>
using namespace std;
int main()
{
// Nombre de lignes sur le rectangle.
for(int numberOfLine = 0; numberOfLine < 10; numberOfLine++)
{
// Afficher les étoiles sur une ligne.
for(int star = 0; star < 7; star++)
{
cout << "*";
}
cout << endl;
}
return 0;
}
|
dd01c19ba2fe56912ff945ac0a555181c4da8295
|
cb83044bd6adedb9386a8698ffd2ba5d0058b8e5
|
/Code-Chef/2017-10_MEX.cpp
|
23a0205eacecd56083565b435151fcfa62a8a844
|
[] |
no_license
|
jacstrong/Code-Competitions
|
2295c6a8fce12a4cf86129e72646fbaad6149b37
|
d2b58cc14e01751f54971b2a81955e3e1d2bb5b3
|
refs/heads/master
| 2021-07-13T11:40:21.909358
| 2017-10-17T17:14:35
| 2017-10-17T17:14:35
| 106,328,640
| 0
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 1,018
|
cpp
|
2017-10_MEX.cpp
|
/*
* Jacob Strong
* Written October 2017
* https://www.codechef.com/OCT17/problems/MEX
*/
#include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
int main(void){
int T;
cin >> T;
for (int i = 0; i < T; i++){
int N;
cin >> N;
int K;
cin >> K;
int temp;
vector<int> S(200000); // 200000 is the constraint value for S
fill(S.begin(), S.end(), 0);
for (int j = 0; j < N; j++) {
cin >> temp;
S[temp] = 1;
}
int count = 0;
int itterator = 0;
if (K == 0){
while(itterator < S.size() && S[itterator] == 1){
count++;
itterator++;
}
}
else {
while (K >= 0) {
if (S.size() > itterator) {
if(S[itterator] == 1){
count++;
itterator++;
} else{
if (K > 0) {
count++;
}
K--;
itterator++;
}
} else{
if (K > 0) {
count++;
}
K--;
itterator++;
}
}
}
if(count >= S[0]){
cout << count << endl;;
} else{
cout << 0 << endl;
}
}
return 0;
}
|
13a587acf10639ccb514a258280e5b14a24b4207
|
83286ed366823923a390cc2781113e78580b313a
|
/PARTY.cpp
|
21addca5d7084de4e80db4134c9b5f26970c72a6
|
[] |
no_license
|
chunky2808/Spoj_Solutions
|
57d2b9705ba562eb431b0607486b7376c15a56dc
|
ba00572d31d486563233804cd198be871608201c
|
refs/heads/master
| 2020-03-19T01:43:30.392463
| 2018-05-31T10:13:15
| 2018-05-31T10:13:15
| 135,567,622
| 0
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 2,171
|
cpp
|
PARTY.cpp
|
//time complexity -
//space complexity -
//Submitted by Chunky_2808
#include<bits/stdc++.h>
using namespace std;
typedef long long int ll;
void fastscan(ll &x)
{
bool neg=false;
register int c;
x =0;
while((c=getchar()) < 48);
if(c=='-')
{
neg = true;
c=getchar();
}
for(;(c>47 && c<58);c=getchar())
x = (x<<1) + (x<<3) +c -48;
if(neg)
x *=-1;
}
#define For(i,a,b) for(i=a;i<b;i++)
#define Me(a,b) memset(a,b,sizeof(a))
#define pb push_back
#define mp make_pair
#define F first
#define S second
#define fs(a) fastscan(a)
#define ss set<ll>
#define vv vector<ll>
int main()
{
ll a,b,c,d,e,f,g,h;
while(1)
{
cin>>a>>b;
if(a==0 && b==0)break;
vector<pair<int,int> >my;
vector<pair<int,int> > :: iterator it;
For(c,0,b)
{
cin>>d>>e;
my.pb(mp(d,e));
}
sort(my.begin(),my.end());
ll arr[b+1][a+1],arr2[b+1][a+1];
memset(arr,0,sizeof(arr));
memset(arr2,0,sizeof(arr2));
it = my.begin();
For(c,1,b+1)
{
For(d,0,a+1)
{
if(d!=0)
{
if(c==1)
{
if(d>=(*it).first)
{arr[c][d] = (*it).second;arr2[c][d] = (*it).first;
}
}
else
{
if(d<(*it).first)
{arr[c][d] = arr[c-1][d];arr2[c][d]+= arr2[c-1][d];}
else
{
if(arr[c-1][d]<(*it).second+arr[c-1][d-(*it).first])
{
arr2[c][d] += arr2[c-1][d-(*it).first] + (*it).first;
arr[c][d] = arr[c-1][d-(*it).first] + (*it).second;
}
else
{
arr2[c][d]+= arr2[c-1][d];
arr[c][d] = arr[c-1][d];
}
}
}
}
}
it++;
}
ll aa = arr2[b][a],bb = arr[b][a];
For(c,1,b+1)
{
For(d,0,a+1)
{
if(arr[c][d]==bb)
{
aa = min(aa,arr2[c][d]);
}
}
}
cout<<aa<<" "<<arr[b][a]<<"\n";
}
}
|
bff9c382cba60f9305eee44d63632f2e0bad2596
|
9013f8c47968a1eb9e1ae7110fb7363d4ad31784
|
/UVA-problems/Flip sort.cpp
|
23771a17002514e1e25e2bad564874d6bb84e3f1
|
[] |
no_license
|
omar-mohamed/OnlineJudges-solutions
|
d06c4548a7976dc8f240e9305d829d977359b432
|
db99595e5279aedeb272b2057a52eb762db0d3d7
|
refs/heads/master
| 2020-12-19T22:01:32.848873
| 2016-06-06T16:15:27
| 2016-06-06T16:15:27
| 18,807,382
| 1
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 627
|
cpp
|
Flip sort.cpp
|
//#include<iostream>
//#include<algorithm>
//using namespace std;
//int main()
//{
// int n,tmp,count=0;
// int arr[1050];
// while(cin>>n)
// {
// for(int j=0;j<n;j++)
// {
// cin>>arr[j];
// }
// int j = 0;
// bool test;
// do {
// test = false;
// j++;
// for (int i = 0; i < n - j; i++)
// {
// if (arr[i] > arr[i + 1])
// {
// swap(arr[i],arr[i+1]);
// count++;
// test = true;
// }
// }
// }while(test);
// cout<<"Minimum exchange operations : "<<count<<endl;
// count=0;
// }
//
//return 0;
//}
|
ba74a7bf4b64e540a9b0cae336f791ee0884f64b
|
f9ec70cbae85a7daac3c3f170c7dbb1109ecd17b
|
/src/color.cpp
|
62e91480e7e7018105a2fb9f772969819b77b581
|
[] |
no_license
|
bowhan/circos_converter
|
11bde34ec84d2457fea502aec3313a1932586945
|
920f9b8e0051e2f95fadef9100d7bb498ca775d0
|
refs/heads/master
| 2021-01-12T17:47:10.673894
| 2016-12-08T13:12:24
| 2016-12-08T13:12:24
| 69,390,507
| 0
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 750
|
cpp
|
color.cpp
|
#include "utils/color.hpp"
#include <algorithm>
std::string to_rgb(double value, double minimun, double maximum) {
double ratio = 2 * (value - minimun) / (maximum - minimun);
int b = std::max(0, int(255 * (1 - ratio)));
int r = std::max(0, int(255 * (ratio - 1)));
int g = 255 - b - r;
return std::string{"rgb"} + '('
+ std::to_string(r) + ','
+ std::to_string(g) + ','
+ std::to_string(b) + ')';
}
std::string to_grey(double value, double minimum, double maximum) {
double ratio = (value - minimum) / (maximum - minimum);
int g = int(255 * (1 - ratio));
return std::string{"rgb"} + '('
+ std::to_string(g) + ','
+ std::to_string(g) + ','
+ std::to_string(g) + ')';
}
|
a67234cfd0fdea4f53716a150b2672c99e9622a9
|
5b83a3eef49ac004b98ff1ff9ce30989fd85c567
|
/VArena/Culori1/culori1.cpp
|
00396da6dc5208b05c157ac7294376671b6fdab3
|
[] |
no_license
|
floreaadrian/AlgCodes
|
cd0dfe331d2b1acae26ead05c4be07d6c3c05f52
|
b3ba2472ba256a73daea334c22bbca282ff3a24d
|
refs/heads/master
| 2020-05-25T14:34:27.475469
| 2019-05-21T13:49:35
| 2019-05-21T13:49:35
| 187,846,889
| 1
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 670
|
cpp
|
culori1.cpp
|
#include<fstream>
using namespace std;
ifstream fin("culori1.in");
ofstream fout("culori1.out");
int v[1000],f[101];
int main()
{
int n,i,k,j,i0=0,i1=1,i2=2,lafel=0,max;
fin>>n>>k;
for(i=0;i<n;i++)
fin>>v[i];
fin.close();
for(i=0;i<n;i++)
{
if(v[i0]==v[i1] && v[i1]==v[i2])
lafel++;
i0=i1;
i1=i2;
i2=(i2+1)%n;
}
f[v[n-1]]++;
for(i=0;i<(k-1);i++)
f[v[i]]++;
max=0;
for(j=1;j<=100;j++)
if(f[j]>max)
max=f[j];
i0=n-1;
i1=k-2;
for(i=0;i<n;i++)
{
f[v[i0]]--;
i0=(i0+1)%n;
i1=(i1+1)%n;
f[v[i1]]++;
if(f[v[i1]]>max)
max=f[v[i1]];
}
fout<<lafel<<"\n"<<max;
fout.close();
return 0;
}
|
730043ecc1283b812aa6c18b3495e7080722194f
|
1f59f964cb03a0f2b31c89a3cbe21e04123094d6
|
/Src/Engine/World/SpacePartition/Octree.cpp
|
0fd0e62ecf58f471a696aefabb41ed860c1c6c8e
|
[] |
no_license
|
ugozapad/Gamedesk
|
6a69e71a6416e16063ac1203be2c994571948d2a
|
db6dc1c815adaf358d4d7c124b13b79802e6043c
|
refs/heads/master
| 2022-01-26T17:01:52.651185
| 2011-07-01T00:08:53
| 2011-07-01T00:08:53
| null | 0
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 7,162
|
cpp
|
Octree.cpp
|
#include "Engine.h"
#include "Octree.h"
#include "Maths/Intersection.h"
namespace Gamedesk {
IMPLEMENT_CLASS(Octree);
Octree::Octree(void)
{
// Initialize(Vector3f(0,0,0), Vector3f(1000.0f, 1000.0f, 1000.0f), Vector3f(10.0f, 10.0f, 10.0f));
}
Octree::~Octree(void)
{
}
void Octree::Initialize(Vector3f pPosition, Vector3f pRootSize, Vector3f pLeafSize)
{
mRoot.SetMin(pPosition - (pRootSize / 2));
mRoot.SetMax(pPosition + (pRootSize / 2));
mRoot.BuildTree(pLeafSize);
}
Bool Octree::Insert(Entity* pEntity)
{
const BoundingBox& bb = pEntity->GetBoundingBox();
return mRoot.Insert(pEntity, bb);
}
Bool Octree::Remove(Entity* pEntity)
{
const BoundingBox& bb = pEntity->GetBoundingBox();
return mRoot.Remove(pEntity, bb);
}
UInt32 Octree::Query(List<Entity*>& pEntities, Class* pEntityType) const
{
mRoot.Query(pEntities, pEntityType);
return pEntities.size();
}
UInt32 Octree::Query(const Ray3f& pRay, List<Entity*>& pEntities, Class* pEntityType) const
{
mRoot.Query(pRay, pEntities, pEntityType);
return pEntities.size();
}
UInt32 Octree::Query(const BoundingBox& pBoundingBox, List<Entity*>& pEntities, Class* pEntityType) const
{
mRoot.Query(pBoundingBox, pEntities, pEntityType);
return pEntities.size();
}
UInt32 Octree::Query(const Frustum& pFrustum, List<Entity*>& pEntities, Class* pEntityType) const
{
mRoot.Query(pFrustum, pEntities, pEntityType);
return pEntities.size();
}
Octree::Node::Node() : mChildrenNodes(0)
{
}
Octree::Node::~Node()
{
GD_DELETE_ARRAY(mChildrenNodes);
}
void Octree::Node::BuildTree(Vector3f pLeafSize)
{
Vector3f extends = mBounds[1] - mBounds[0];
if(extends > pLeafSize)
{
Vector3f center = mBounds[0] + (extends / 2);
Float t = GetExtend();
Vector3f transforms[8];
transforms[0] = Vector3f(0,0,0);
transforms[1] = Vector3f(0,0,t);
transforms[2] = Vector3f(0,t,0);
transforms[3] = Vector3f(0,t,t);
transforms[4] = Vector3f(t,0,0);
transforms[5] = Vector3f(t,0,t);
transforms[6] = Vector3f(t,t,0);
transforms[7] = Vector3f(t,t,t);
mChildrenNodes = GD_NEW_ARRAY(Octree::Node, 8, this, "Octree::Node");
for(UInt32 i = 0; i < 8; i++)
{
mChildrenNodes[i].SetMin(mBounds[0] + transforms[i]);
mChildrenNodes[i].SetMax(center + transforms[i]);
mChildrenNodes[i].BuildTree(pLeafSize);
}
}
else
{
mChildrenNodes = 0;
}
}
Bool Octree::Node::Insert(Entity* pEntity, const BoundingBox& pBoundingBox)
{
if(Contains(pBoundingBox))
{
Bool inserted = false;
if(mChildrenNodes)
{
inserted = mChildrenNodes[0].Insert(pEntity, pBoundingBox);
if(!inserted) inserted = mChildrenNodes[1].Insert(pEntity, pBoundingBox);
if(!inserted) inserted = mChildrenNodes[2].Insert(pEntity, pBoundingBox);
if(!inserted) inserted = mChildrenNodes[3].Insert(pEntity, pBoundingBox);
if(!inserted) inserted = mChildrenNodes[4].Insert(pEntity, pBoundingBox);
if(!inserted) inserted = mChildrenNodes[5].Insert(pEntity, pBoundingBox);
if(!inserted) inserted = mChildrenNodes[6].Insert(pEntity, pBoundingBox);
if(!inserted) inserted = mChildrenNodes[7].Insert(pEntity, pBoundingBox);
}
if(!inserted)
mEntities.push_back(pEntity);
return true;
}
return false;
}
Bool Octree::Node::Remove(Entity* pEntity, const BoundingBox& pBoundingBox)
{
if(Contains(pBoundingBox))
{
Bool removed = false;
if(mChildrenNodes)
{
removed = mChildrenNodes[0].Remove(pEntity, pBoundingBox);
if(!removed) removed = mChildrenNodes[1].Remove(pEntity, pBoundingBox);
if(!removed) removed = mChildrenNodes[2].Remove(pEntity, pBoundingBox);
if(!removed) removed = mChildrenNodes[3].Remove(pEntity, pBoundingBox);
if(!removed) removed = mChildrenNodes[4].Remove(pEntity, pBoundingBox);
if(!removed) removed = mChildrenNodes[5].Remove(pEntity, pBoundingBox);
if(!removed) removed = mChildrenNodes[6].Remove(pEntity, pBoundingBox);
if(!removed) removed = mChildrenNodes[7].Remove(pEntity, pBoundingBox);
}
if(!removed)
mEntities.push_back(pEntity);
return true;
}
return false;
}
void Octree::Node::Query(List<Entity*>& pEntities, Class* pEntityType) const
{
std::insert_iterator<List<Entity*> > insert_it(pEntities, pEntities.end());
std::copy(mEntities.begin(), mEntities.end(), insert_it);
if(mChildrenNodes)
{
mChildrenNodes[0].Query(pEntities, pEntityType);
mChildrenNodes[1].Query(pEntities, pEntityType);
mChildrenNodes[2].Query(pEntities, pEntityType);
mChildrenNodes[3].Query(pEntities, pEntityType);
mChildrenNodes[4].Query(pEntities, pEntityType);
mChildrenNodes[5].Query(pEntities, pEntityType);
mChildrenNodes[6].Query(pEntities, pEntityType);
mChildrenNodes[7].Query(pEntities, pEntityType);
}
}
void Octree::Node::Query(const Ray3f& pRay, List<Entity*>& pEntities, Class* pEntityType) const
{
if(Intersect(pRay, *this))
{
std::insert_iterator<List<Entity*> > insert_it(pEntities, pEntities.end());
std::copy(mEntities.begin(), mEntities.end(), insert_it);
if(mChildrenNodes)
{
mChildrenNodes[0].Query(pRay, pEntities, pEntityType);
mChildrenNodes[1].Query(pRay, pEntities, pEntityType);
mChildrenNodes[2].Query(pRay, pEntities, pEntityType);
mChildrenNodes[3].Query(pRay, pEntities, pEntityType);
mChildrenNodes[4].Query(pRay, pEntities, pEntityType);
mChildrenNodes[5].Query(pRay, pEntities, pEntityType);
mChildrenNodes[6].Query(pRay, pEntities, pEntityType);
mChildrenNodes[7].Query(pRay, pEntities, pEntityType);
}
}
}
void Octree::Node::Query(const BoundingBox& pBoundingBox, List<Entity*>& pEntities, Class* pEntityType) const
{
if(pBoundingBox.Contains(*this))
{
std::insert_iterator<List<Entity*> > insert_it(pEntities, pEntities.end());
std::copy(mEntities.begin(), mEntities.end(), insert_it);
if(mChildrenNodes)
{
mChildrenNodes[0].Query(pBoundingBox, pEntities, pEntityType);
mChildrenNodes[1].Query(pBoundingBox, pEntities, pEntityType);
mChildrenNodes[2].Query(pBoundingBox, pEntities, pEntityType);
mChildrenNodes[3].Query(pBoundingBox, pEntities, pEntityType);
mChildrenNodes[4].Query(pBoundingBox, pEntities, pEntityType);
mChildrenNodes[5].Query(pBoundingBox, pEntities, pEntityType);
mChildrenNodes[6].Query(pBoundingBox, pEntities, pEntityType);
mChildrenNodes[7].Query(pBoundingBox, pEntities, pEntityType);
}
}
}
void Octree::Node::Query(const Frustum& pFrustum, List<Entity*>& pEntities, Class* pEntityType) const
{
if(pFrustum.BoxInFrustum(*this))
{
std::insert_iterator<List<Entity*> > insert_it(pEntities, pEntities.end());
std::copy(mEntities.begin(), mEntities.end(), insert_it);
if(mChildrenNodes)
{
mChildrenNodes[0].Query(pFrustum, pEntities, pEntityType);
mChildrenNodes[1].Query(pFrustum, pEntities, pEntityType);
mChildrenNodes[2].Query(pFrustum, pEntities, pEntityType);
mChildrenNodes[3].Query(pFrustum, pEntities, pEntityType);
mChildrenNodes[4].Query(pFrustum, pEntities, pEntityType);
mChildrenNodes[5].Query(pFrustum, pEntities, pEntityType);
mChildrenNodes[6].Query(pFrustum, pEntities, pEntityType);
mChildrenNodes[7].Query(pFrustum, pEntities, pEntityType);
}
}
}
} // namespace Gamedesk
|
4dabcd2e9d9f35129ec43c36a787351abe61e422
|
6694e74a33999b764a3858917e8643a3b546f62f
|
/libkineto/src/ActivityType.cpp
|
a7295da73c24e3cb85a5fd54199b59eb686dd381
|
[
"BSD-3-Clause"
] |
permissive
|
LinGongHeng/kineto
|
4fa824a9172ac400d98542404143c2e4a33b1f31
|
ebde0dd49192647dbfc49b4362363134266ca3d9
|
refs/heads/main
| 2023-09-06T02:10:16.444040
| 2021-11-22T19:03:56
| 2021-11-22T19:05:02
| null | 0
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 1,867
|
cpp
|
ActivityType.cpp
|
/*
* Copyright (c) Facebook, Inc. and its affiliates.
* All rights reserved.
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree.
*/
#include "ActivityType.h"
#include <fmt/format.h>
namespace libkineto {
struct ActivityTypeName {
const char* name;
ActivityType type;
};
static constexpr std::array<ActivityTypeName, activityTypeCount + 1> map{{
{"cpu_op", ActivityType::CPU_OP},
{"user_annotation", ActivityType::USER_ANNOTATION},
{"gpu_user_Annotation", ActivityType::GPU_USER_ANNOTATION},
{"gpu_memcpy", ActivityType::GPU_MEMCPY},
{"gpu_memset", ActivityType::GPU_MEMSET},
{"kernel", ActivityType::CONCURRENT_KERNEL},
{"external_correlation", ActivityType::EXTERNAL_CORRELATION},
{"cuda_runtime", ActivityType::CUDA_RUNTIME},
{"glow_runtime", ActivityType::GLOW_RUNTIME},
{"cpu_instant_event", ActivityType::CPU_INSTANT_EVENT},
{"python_function", ActivityType::PYTHON_FUNCTION},
{"ENUM_COUNT", ActivityType::ENUM_COUNT}
}};
static constexpr bool matchingOrder(int idx = 0) {
return map[idx].type == ActivityType::ENUM_COUNT ||
((idx == (int) map[idx].type) && matchingOrder(idx + 1));
}
static_assert(matchingOrder(), "ActivityTypeName map is out of order");
const char* toString(ActivityType t) {
return map[(int)t].name;
}
ActivityType toActivityType(const std::string& str) {
for (int i = 0; i < activityTypeCount; i++) {
if (str == map[i].name) {
return map[i].type;
}
}
throw std::invalid_argument(fmt::format("Invalid activity type: {}", str));
}
const std::array<ActivityType, activityTypeCount> activityTypes() {
std::array<ActivityType, activityTypeCount> res;
for (int i = 0; i < activityTypeCount; i++) {
res[i] = map[i].type;
}
return res;
}
} // namespace libkineto
|
94edde8a7fe083db53b29225628ad051f48ea7d7
|
cfeac52f970e8901871bd02d9acb7de66b9fb6b4
|
/generated/src/aws-cpp-sdk-codedeploy/source/model/DeploymentOverview.cpp
|
e9889864acd5cb62d0721694021738af44b69add
|
[
"Apache-2.0",
"MIT",
"JSON"
] |
permissive
|
aws/aws-sdk-cpp
|
aff116ddf9ca2b41e45c47dba1c2b7754935c585
|
9a7606a6c98e13c759032c2e920c7c64a6a35264
|
refs/heads/main
| 2023-08-25T11:16:55.982089
| 2023-08-24T18:14:53
| 2023-08-24T18:14:53
| 35,440,404
| 1,681
| 1,133
|
Apache-2.0
| 2023-09-12T15:59:33
| 2015-05-11T17:57:32
| null |
UTF-8
|
C++
| false
| false
| 2,619
|
cpp
|
DeploymentOverview.cpp
|
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/codedeploy/model/DeploymentOverview.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace CodeDeploy
{
namespace Model
{
DeploymentOverview::DeploymentOverview() :
m_pending(0),
m_pendingHasBeenSet(false),
m_inProgress(0),
m_inProgressHasBeenSet(false),
m_succeeded(0),
m_succeededHasBeenSet(false),
m_failed(0),
m_failedHasBeenSet(false),
m_skipped(0),
m_skippedHasBeenSet(false),
m_ready(0),
m_readyHasBeenSet(false)
{
}
DeploymentOverview::DeploymentOverview(JsonView jsonValue) :
m_pending(0),
m_pendingHasBeenSet(false),
m_inProgress(0),
m_inProgressHasBeenSet(false),
m_succeeded(0),
m_succeededHasBeenSet(false),
m_failed(0),
m_failedHasBeenSet(false),
m_skipped(0),
m_skippedHasBeenSet(false),
m_ready(0),
m_readyHasBeenSet(false)
{
*this = jsonValue;
}
DeploymentOverview& DeploymentOverview::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("Pending"))
{
m_pending = jsonValue.GetInt64("Pending");
m_pendingHasBeenSet = true;
}
if(jsonValue.ValueExists("InProgress"))
{
m_inProgress = jsonValue.GetInt64("InProgress");
m_inProgressHasBeenSet = true;
}
if(jsonValue.ValueExists("Succeeded"))
{
m_succeeded = jsonValue.GetInt64("Succeeded");
m_succeededHasBeenSet = true;
}
if(jsonValue.ValueExists("Failed"))
{
m_failed = jsonValue.GetInt64("Failed");
m_failedHasBeenSet = true;
}
if(jsonValue.ValueExists("Skipped"))
{
m_skipped = jsonValue.GetInt64("Skipped");
m_skippedHasBeenSet = true;
}
if(jsonValue.ValueExists("Ready"))
{
m_ready = jsonValue.GetInt64("Ready");
m_readyHasBeenSet = true;
}
return *this;
}
JsonValue DeploymentOverview::Jsonize() const
{
JsonValue payload;
if(m_pendingHasBeenSet)
{
payload.WithInt64("Pending", m_pending);
}
if(m_inProgressHasBeenSet)
{
payload.WithInt64("InProgress", m_inProgress);
}
if(m_succeededHasBeenSet)
{
payload.WithInt64("Succeeded", m_succeeded);
}
if(m_failedHasBeenSet)
{
payload.WithInt64("Failed", m_failed);
}
if(m_skippedHasBeenSet)
{
payload.WithInt64("Skipped", m_skipped);
}
if(m_readyHasBeenSet)
{
payload.WithInt64("Ready", m_ready);
}
return payload;
}
} // namespace Model
} // namespace CodeDeploy
} // namespace Aws
|
317347c415e205be6e8029505df4169fa1ff6aee
|
0182a60fdf5976d7df3154fb6470e8fc1c8f4b43
|
/source/config.hpp
|
45e5688b0383e1accd0221fc95dbe126547ad924
|
[
"MIT"
] |
permissive
|
LiquidFenrir/MultiUpdater
|
cffc8824742b8a2991c38e31b864b7c71f39d2c2
|
7d0ce6df21de24924c851f9e4049e2c17b08d9a4
|
refs/heads/rewrite
| 2021-01-17T21:03:44.916666
| 2021-01-07T15:30:46
| 2021-01-07T15:30:46
| 62,512,980
| 175
| 39
|
MIT
| 2021-01-07T14:36:44
| 2016-07-03T19:58:43
|
C++
|
UTF-8
|
C++
| false
| false
| 537
|
hpp
|
config.hpp
|
#pragma once
#include "common.hpp"
enum EntryState {
STATE_NONE = 0,
STATE_FAILED = BIT(0),
STATE_SUCCESS = BIT(1),
STATE_MARKED = BIT(2),
};
class Entry
{
public:
std::string name;
int state;
Entry(json jsonEntry);
void update(bool deleteArchive, bool deleteCia);
private:
std::string m_url;
std::string m_path;
std::string m_inRelease;
std::string m_inArchive;
};
class Config
{
public:
bool m_selfUpdater;
bool m_deleteCIA;
bool m_deleteArchive;
std::vector<Entry> entries;
Config();
};
|
7dd927c7373b5b4ff8bd9dc6c4165759b4735338
|
a2b49d0b5414134df2dbfd690b1fbab66db2d01f
|
/fibbonacci_numbers.cpp
|
966a5778a91ed9e79f7de2e278dc60bea4c1ded8
|
[] |
no_license
|
Ngufuli/cpp
|
7296e6cae38af27b314a156478899b2dd4a0b3be
|
c7acc1ea19f2f25c8dc2fe9be52a8ca92af9ae77
|
refs/heads/master
| 2020-06-28T16:29:51.833907
| 2019-08-03T01:39:33
| 2019-08-03T01:39:33
| 200,281,571
| 1
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 260
|
cpp
|
fibbonacci_numbers.cpp
|
using namespace std;
#include<iostream>
int fibb(int n);
int main()
{
int n,i;
cout<<"Enter a number\n";
cin>>n;
for(i=1;i<=n;i++)
cout<<fibb(i)<<" ";
}
int fibb(int n)
{
if(n==1)
return 0;
else if(n==2)
return 1;
else
return fibb(n-1)+fibb(n-2);
}
|
801c5e0feb3e23fb1c6e6a92096d82baae699587
|
8a1d4c495534963852c043bbdf76cfdc41ac8ecf
|
/week5-tiny_oracle/_older/thermal_printer_test.ino
|
e0ebee999a3cfefa28a052a4debec68edf37102f
|
[
"MIT"
] |
permissive
|
sharkwheels/Independet_study_2017
|
e12d36145f29cdc1962b4cf6725c31f8b0d24c0f
|
bc3974a784c1d264b10a8584e9c5000d5d20496a
|
refs/heads/master
| 2020-12-30T16:28:51.560667
| 2017-08-17T17:40:23
| 2017-08-17T17:40:23
| 90,997,181
| 0
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 1,941
|
ino
|
thermal_printer_test.ino
|
/************
Tiny Oracles 1.0
https://learn.adafruit.com/adafruit-neopixel-featherwing
http://richardhayler.blogspot.ca/2016/04/getting-started-with-adafruit-feather.html
**************/
#include <SoftwareSerial.h>
#include <Adafruit_Thermal.h>
#include <ESP8266WiFi.h>
#include <Adafruit_NeoPixel.h>
#ifdef __AVR__
#include <avr/power.h>
#endif
#define NEO_PIN 15
#define TX_PIN 14 // printer rx = blue / yellow
#define RX_PIN 12 // printer tx = green
Adafruit_NeoPixel strip = Adafruit_NeoPixel(32, NEO_PIN, NEO_GRB + NEO_KHZ800);
SoftwareSerial mySerial(RX_PIN, TX_PIN); // Declare SoftwareSerial obj first
Adafruit_Thermal printer(&mySerial);
void setup() {
Serial.begin(115200);
Serial.println(F("PRINTER TEST"));
mySerial.begin(9600);
printer.begin();
printer.println(F("HIYA! I'M A PRINTER!"));
printer.feed(1);
delay(500);
strip.begin();
strip.show(); // Initialize all pixels to 'off'
}
void loop() {
colorWipe(strip.Color(0, 255, 0), 50); // Green
colorWipe(strip.Color(0, 0, 255), 50); // Blue
rainbow(20);
}
// Fill the dots one after the other with a color
void colorWipe(uint32_t c, uint8_t wait) {
for(uint16_t i=0; i<strip.numPixels(); i++) {
strip.setPixelColor(i, c);
strip.show();
delay(wait);
}
}
void rainbow(uint8_t wait) {
uint16_t i, j;
for(j=0; j<256; j++) {
for(i=0; i<strip.numPixels(); i++) {
strip.setPixelColor(i, Wheel((i+j) & 255));
}
strip.show();
delay(wait);
}
}
// Input a value 0 to 255 to get a color value.
// The colours are a transition r - g - b - back to r.
uint32_t Wheel(byte WheelPos) {
WheelPos = 255 - WheelPos;
if(WheelPos < 85) {
return strip.Color(255 - WheelPos * 3, 0, WheelPos * 3);
} else if(WheelPos < 170) {
WheelPos -= 85;
return strip.Color(0, WheelPos * 3, 255 - WheelPos * 3);
} else {
WheelPos -= 170;
return strip.Color(WheelPos * 3, 255 - WheelPos * 3, 0);
}
}
|
b0204f6bf548aa2cc1e566de5583d9b005e58b00
|
9e2f2e03a169036b3b23253faafb23be2a239458
|
/11631/11631.cpp
|
8d8921862efd389b798befca75a05c93b1a1ff27
|
[] |
no_license
|
M4573R/UVa-Online-Judge-1
|
b45bfc327459adedb0ace989bd8fa6c41b9d6be1
|
702fa3e03a3739e7ed5a8c5aa71f963272d95543
|
refs/heads/master
| 2021-01-16T18:44:30.776083
| 2014-08-22T13:48:11
| 2014-08-22T13:48:11
| null | 0
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 2,007
|
cpp
|
11631.cpp
|
//==============================================================
// Coded by: Huynh Nhat Minh
// Problem Number: 11631 - Dark roads
//==============================================================
#include <iostream>
#include <cstdio>
#include <algorithm>
#include <cstring>
#include <string>
#include <cctype>
#include <deque>
#include <stack>
#include <queue>
#include <list>
#include <vector>
#include <map>
#include <sstream>
#include <cmath>
#include <bitset>
#include <utility>
#include <set>
#define INF 99999999
using namespace std;
typedef struct
{
int u,v,c;
}edge;
edge save[200005];
int lab[200005];
int m,n;
char s[30];
int getRoot(int u)
{
if(u==lab[u]) return u;
return lab[u]=getRoot(lab[u]);
}
int unionset(int a,int b)
{
return lab[a]=b;
}
bool cmp(edge a,edge b)
{
return a.c<b.c;
}
int convert(const char *s,int &n,int &m)
{
int i = 0;
m = n = 0;
while (s[i] != ' ') n = n * 10 + s[i++] - 48;
i++;
while (s[i] != 0) m = m * 10 + s[i++] - 48;
return (m + n);
}
void convert(const char *s,int &u,int &v,int &w)
{
int i = 0;
u = v = w = 0;
while (s[i] != ' ') u = u * 10 + s[i++] - 48;
i++;
while (s[i] != ' ') v = v * 10 + s[i++] - 48;
i++;
while (s[i] != 0) w = w * 10 + s[i++] - 48;
}
int main()
{
//freopen("11631.INP","r",stdin);
//freopen("11631.OUT","w",stdout);
while (gets(s) && convert(s,n,m))
{
int l = 0,total = 0;
for (int i = 0 ; i <= n ; i++)
lab[i] = i;
for (int i = 0 ; i < m ; i++)
{
gets(s);
convert(s,save[i].u,save[i].v,save[i].c);
total += save[i].c;
}
sort(save,save+m,cmp);
for (int i = 0 , br = 0; i < m && br < n - 1 ; i++)
{
int ru = getRoot(save[i].u),rv = getRoot(save[i].v);
if (ru != rv)
lab[rv] = ru , l += save[i].c , br++;
}
printf("%d\n",total - l);
}
return 0;
}
|
85d849552185348ae587fd03ad97d2c07c1a7bcc
|
0c4f4a5c9e704dd25970720a39f85f3bc9f8f048
|
/src/protos/TotalCountType.pb.h
|
2b316922acbccb4feeadc0734fd5f09c642f46fb
|
[
"MIT"
] |
permissive
|
diadoc/diadocsdk-cpp
|
c36012343235189807900692794ce585a9d95461
|
4cdc6eac90cda5d37bd5f3d7f27aadbfd492099a
|
refs/heads/master
| 2023-08-17T18:07:01.186735
| 2023-08-09T08:24:06
| 2023-08-09T08:24:06
| 59,778,885
| 7
| 24
|
MIT
| 2023-08-09T08:24:08
| 2016-05-26T19:51:04
|
C++
|
UTF-8
|
C++
| false
| true
| 2,796
|
h
|
TotalCountType.pb.h
|
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: TotalCountType.proto
#ifndef PROTOBUF_TotalCountType_2eproto__INCLUDED
#define PROTOBUF_TotalCountType_2eproto__INCLUDED
#include <string>
#include <google/protobuf/stubs/common.h>
#if GOOGLE_PROTOBUF_VERSION < 2006000
#error This file was generated by a newer version of protoc which is
#error incompatible with your Protocol Buffer headers. Please update
#error your headers.
#endif
#if 2006001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
#error This file was generated by an older version of protoc which is
#error incompatible with your Protocol Buffer headers. Please
#error regenerate this file with a newer version of protoc.
#endif
#include <google/protobuf/generated_message_util.h>
#include <google/protobuf/repeated_field.h>
#include <google/protobuf/extension_set.h>
#include <google/protobuf/generated_enum_reflection.h>
// @@protoc_insertion_point(includes)
namespace Diadoc {
namespace Api {
namespace Proto {
// Internal implementation detail -- do not call these.
void protobuf_AddDesc_TotalCountType_2eproto();
void protobuf_AssignDesc_TotalCountType_2eproto();
void protobuf_ShutdownFile_TotalCountType_2eproto();
enum TotalCountType {
UnknownCountType = 0,
Equal = 1,
GreaterThanOrEqual = 2
};
bool TotalCountType_IsValid(int value);
const TotalCountType TotalCountType_MIN = UnknownCountType;
const TotalCountType TotalCountType_MAX = GreaterThanOrEqual;
const int TotalCountType_ARRAYSIZE = TotalCountType_MAX + 1;
const ::google::protobuf::EnumDescriptor* TotalCountType_descriptor();
inline const ::std::string& TotalCountType_Name(TotalCountType value) {
return ::google::protobuf::internal::NameOfEnum(
TotalCountType_descriptor(), value);
}
inline bool TotalCountType_Parse(
const ::std::string& name, TotalCountType* value) {
return ::google::protobuf::internal::ParseNamedEnum<TotalCountType>(
TotalCountType_descriptor(), name, value);
}
// ===================================================================
// ===================================================================
// ===================================================================
// @@protoc_insertion_point(namespace_scope)
} // namespace Proto
} // namespace Api
} // namespace Diadoc
#ifndef SWIG
namespace google {
namespace protobuf {
template <> struct is_proto_enum< ::Diadoc::Api::Proto::TotalCountType> : ::google::protobuf::internal::true_type {};
template <>
inline const EnumDescriptor* GetEnumDescriptor< ::Diadoc::Api::Proto::TotalCountType>() {
return ::Diadoc::Api::Proto::TotalCountType_descriptor();
}
} // namespace google
} // namespace protobuf
#endif // SWIG
// @@protoc_insertion_point(global_scope)
#endif // PROTOBUF_TotalCountType_2eproto__INCLUDED
|
c56dce856c5d5e034929f6ab9e0720302b7f25bd
|
193bb9c5920938df0722a18ce938ec097acdf779
|
/TA Program 4 Vexed/TA Program 4 Vexed/AllBoards.hpp
|
6011ef3b98a1c00f3cab9be2187aa3856399e566
|
[] |
no_license
|
buzixiua/cs141
|
550c1f47b8940ab58cb253deb357ec1cd62e313c
|
efaeb556e56d2d688e3ce2245f5ce828cdfba801
|
refs/heads/master
| 2022-04-04T21:26:20.780432
| 2019-12-22T13:41:04
| 2019-12-22T13:41:04
| null | 0
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 5,088
|
hpp
|
AllBoards.hpp
|
//
// AllBoards.hpp
// TA Program 4 Vexed
//
// Created by Viktor Kirillov on 10/14/19.
// Copyright © 2019 Viktor Kirillov. All rights reserved.
//
#pragma once
#include <iostream> // For cin, cout
#include <fstream> // For file input
#include <cstring> // For fgets()
#include "Board.hpp"
#include "Constants.h"
using namespace std;
void displayDirections();
class AllBoards {
public:
// Constructor
AllBoards() {
// Read in all the boards from the data file
ifstream inputFileStream; // declare the input file stream
// Open input file and verify file open worked.
inputFileStream.open( FileName);
if( !inputFileStream.is_open()) {
cout << "Could not find input file. " << FileName << ". Exiting..." << endl;
exit( -1);
}
// Read the five lines of comments at the top of the datafile. Datafile structure is:
// // Originally from Vexed v2.0 - globals.c "Global variable declarations"
// // Copyright (C) 1999 James McCombe (cybertube@earthling.net)
// // September 1,2001 - Version 2.0 changes by Mark Ingebretson (ingebret@yahoo.com) and others.
// // Oct 13, 2019 Format changed by Dale Reed (reed @ uic.edu)
// // Covered by the GNU General Public License https://www.gnu.org/licenses/old-licenses/gpl-2.0.en.html
// // Level 000
// 9 9 9 9 9 9 9 9 9 9
// 9 9 9 9 9 9 9 9 9 9
// 9 9 9 2 1 0 0 9 9 9
// 9 9 9 9 9 0 0 9 9 9
// 9 9 9 0 0 0 0 9 9 9
// 9 9 9 1 0 0 2 9 9 9
// 9 9 9 9 1 2 9 9 9 9
// 9 9 9 9 9 9 9 9 9 9
// // Level 001
// 9 9 9 9 9 9 9 9 9 9
// 9 9 9 9 9 9 9 9 9 9
// ...
string inputLine;
for( int i=0; i<5; i++) {
getline(inputFileStream, inputLine);
}
// Now read each of the 118 (MaxNumberOfBoards) boards. Each one starts with a comment that has the board number.
for( int boardIndex = 0; boardIndex < MaxNumberOfBoards; boardIndex++) {
// Read the comment with the board number
getline(inputFileStream, inputLine);
// For each board now read the BoardRows * BoardColumns number of board values, as integers
for( int row=0; row<BoardRows; row++) {
for( int col=0; col<BoardColumns; col++) {
inputFileStream >> allBoards[ boardIndex][ row * BoardColumns + col];
}
// Get rid of end-of-line character at the end of each board, so we can get a clean start on reading the
// first line of the next board.
getline(inputFileStream, inputLine);
}
}//end for( int boardIndex=0...
// Close the input file.
inputFileStream.close();
}//end AllBoards() constructor
// Get and Set member functions
Board getBoard( int boardIndex) {
// Validate board index number
if( boardIndex < 0 || boardIndex > MaxNumberOfBoards) {
cout << "In getBoard() inside AllBoards class, boardIndex "
<< boardIndex << " is out of range. Exiting..." << endl;
exit( -1);
}
// Construct a Board from one of all the boards
Board newBoard( boardIndex, allBoards[ boardIndex], levelParValues[ boardIndex]);
return newBoard;
}
// Get the par value for this board
int getParValue( int boardIndex) {
int theParValue = -1;
if( boardIndex < NumberOfPresetBoardParValues) {
theParValue = levelParValues[ boardIndex];
}
else {
theParValue = 15; // Default for par values at the upper end of the levels
}
return theParValue;
} // end getParValue()
private:
int par = 0; // The number of moves it should take to solve this level
int currentLevel = -1; // Which board we are on
int allBoards[ 118][ BoardRows * BoardColumns]; // Array to store all 118 8x10 boards
// Par values for levels 0 through 59. Default is 15 after that.
const int levelParValues[ NumberOfPresetBoardParValues] =
// 0 1 2 3 4 5 6 7 8 9
{ 4, 3, 14, 5, 6, 4, 4, 14, 5, 25, // 0 - 9
12, 17, 17, 8, 4, 12, 9, 8, 12, 8, // 10 - 19
10, 10, 16, 13, 20, 14, 10, 9, 12, 14, // 20 - 29
15, 13, 20, 8, 15, 10, 10, 11, 7, 23, // 30 - 39
8, 11, 16, 14, 12, 13, 13, 3, 35, 18, // 40 - 49
26, 10, 13, 18, 26, 12, 15, 5, 22, 15}; // 50 - 59
}; //end class allBoards
|
6384b2322a5a192c94f132dac0d70664df0f8ecc
|
4f24a8f533c63203c0b8c86fcc18a2a4e6856660
|
/ip_filter_range.cpp
|
874ef019800237b22337794c81e1ca0993f31380
|
[] |
no_license
|
East-Oz/range
|
38f7e367789ee24efbe4c41fc29059e5fd95f829
|
914ba44f37b20a7508cd3b6bb4591f73417d07b0
|
refs/heads/master
| 2020-04-25T17:21:09.029560
| 2019-02-28T15:37:11
| 2019-02-28T16:17:32
| 172,944,617
| 0
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 5,011
|
cpp
|
ip_filter_range.cpp
|
#include <iostream>
#include <cassert>
#include <cstdlib>
#include <iostream>
#include <string>
#include <vector>
#include <algorithm>
#include <fstream>
#include <sstream>
#include <chrono>
#include <range/v3/all.hpp>
// ("", '.') -> [""]
// ("11", '.') -> ["11"]
// ("..", '.') -> ["", "", ""]
// ("11.", '.') -> ["11", ""]
// (".11", '.') -> ["", "11"]
// ("11.22", '.') -> ["11", "22"]
typedef std::vector<unsigned char> IPT;
typedef std::vector<IPT> IP_STORAGE;
std::vector<std::string> split( const std::string &str, char d )
{
std::vector<std::string> r;
std::string::size_type start = 0;
std::string::size_type stop = str.find_first_of( d );
while( stop != std::string::npos )
{
r.push_back( str.substr( start, stop - start ) );
start = stop + 1;
stop = str.find_first_of( d, start );
}
r.push_back( str.substr( start ) );
return r;
}
unsigned char string_to_char( std::string val )
{
unsigned char out_value = 0;
const char *start = val.c_str();
char c;
int n = 0;
size_t size = val.size();
size_t count = 0;
while( count < size )
{
c = *start;
++start;
if( c >= '0' && c <= '9' )
{
n *= 10;
n += c - '0';
}
++count;
}
out_value = n;
return out_value;
}
std::vector<unsigned char> get_vector_ip( std::string str, char d )
{
std::vector<unsigned char> out;
std::string::size_type start = 0;
std::string::size_type stop = str.find_first_of( d );
while( stop != std::string::npos )
{
out.push_back( string_to_char( str.substr( start, stop - start ) ) );
start = stop + 1;
stop = str.find_first_of( d, start );
}
out.push_back( string_to_char( str.substr( start ) ) );
return out;
}
void show_ip_vector( IP_STORAGE& ip_pool_out )
{
ranges::for_each( ip_pool_out, []( std::vector<unsigned char> ip_part )
{
size_t i = 0;
size_t ip_size = ip_part.size();
ranges::for_each( ip_part, [ & ]( unsigned char c )
{
std::cout << std::to_string( c );
if( i < (ip_size - 1) )
std::cout << '.';
++i;
} );
std::cout << std::endl;
} );
}
void show_ip_from_vector( const IPT& val )
{
size_t i = 0;
size_t ip_size = val.size();
for(auto _v: val )
{
std::cout << std::to_string( _v );
if( i < (ip_size - 1) )
std::cout << '.';
++i;
}
std::cout << std::endl;
}
int main( int, char** )
{
using ip_addr_vec = std::vector<std::vector<unsigned char>>;
try
{
ip_addr_vec ip_pool;
for( std::string line; std::getline( std::cin, line );)
{
std::vector<std::string> v = split( line, '\t' );
ip_pool.push_back( get_vector_ip( v.at( 0 ), '.' ) );
}
// reverse lexicographically sort
ranges::sort( ip_pool, std::greater<>() );
// show
show_ip_vector( ip_pool );
// show first condition elements
auto first_confition = ip_pool | ranges::view::filter( [&]( const IPT& val )
{
try
{
if( val.at( 0 ) == 1 ) return true;
else return false;
}
catch( ... ) { return false; }
} );
for( const auto i : first_confition )
{
show_ip_from_vector( i );
}
// show second condition elements
auto second_confition = ip_pool | ranges::view::filter( [ & ]( const IPT& val )
{
try
{
if( (val.at( 0 ) == 46)
&& (val.at( 1 ) == 70) )
return true;
else
return false;
}
catch( ... ) { return false; }
} );
for( const auto i : second_confition )
{
show_ip_from_vector( i );
}
// show third condition elemants
auto third_confition = ip_pool | ranges::view::filter( [ & ]( const IPT& val )
{
try
{
if( ( val.at( 0 ) == 46 )
|| ( val.at( 1 ) == 46 )
|| ( val.at( 2 ) == 46 )
|| ( val.at( 3 ) == 46 )
)
return true;
else
return false;
}
catch( ... ) { return false; }
} );
for( const auto i : third_confition )
{
show_ip_from_vector( i );
}
// 222.173.235.246
// 222.130.177.64
// 222.82.198.61
// ...
// 1.70.44.170
// 1.29.168.152
// 1.1.234.8
// TODO filter by first byte and output
// ip = filter(1)
// 1.231.69.33
// 1.87.203.225
// 1.70.44.170
// 1.29.168.152
// 1.1.234.8
// TODO filter by first and second bytes and output
// ip = filter(46, 70)
// 46.70.225.39
// 46.70.147.26
// 46.70.113.73
// 46.70.29.76
// TODO filter by any byte and output
// ip = filter_any(46)
// 186.204.34.46
// 186.46.222.194
// 185.46.87.231
// 185.46.86.132
// 185.46.86.131
// 185.46.86.131
// 185.46.86.22
// 185.46.85.204
// 185.46.85.78
// 68.46.218.208
// 46.251.197.23
// 46.223.254.56
// 46.223.254.56
// 46.182.19.219
// 46.161.63.66
// 46.161.61.51
// 46.161.60.92
// 46.161.60.35
// 46.161.58.202
// 46.161.56.241
// 46.161.56.203
// 46.161.56.174
// 46.161.56.106
// 46.161.56.106
// 46.101.163.119
// 46.101.127.145
// 46.70.225.39
// 46.70.147.26
// 46.70.113.73
// 46.70.29.76
// 46.55.46.98
// 46.49.43.85
// 39.46.86.85
// 5.189.203.46
}
catch( const std::exception &e )
{
std::cerr << e.what() << std::endl;
}
return 0;
}
|
d03692ae02e7c3b12f5ae8f5e9211fabe263762a
|
ca7922175dba2afd28d315e49256c2b19a5495fd
|
/Files.cpp
|
ac141da490dfd16f10d894e92984a3e89cd085f6
|
[] |
no_license
|
LuisR-jpg/CoronaCoders
|
bda52b24f06ca3a5d524d522f230ce7626dc3698
|
5b2ff531123ca2c54b9a1ff5f27ac085b394ab2c
|
refs/heads/main
| 2023-09-06T05:14:03.387141
| 2021-11-12T18:30:11
| 2021-11-12T18:30:11
| 308,761,352
| 0
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 189
|
cpp
|
Files.cpp
|
#include <bits/stdc++.h>
using namespace std;
int main(){
freopen("input.txt", "r", stdin);
freopen("output.txt", "w", stdout);
//Now you can use cin and cout normally
return 0;
}
|
4724552bfd2ade849884ec0a7a5f61041c623a62
|
ce864449c5444ec84b1c7d663ede682d82f82126
|
/libgo/defer/defer.cpp
|
718df4af4c7dfbbb2ef2046ae498282792dc3b02
|
[
"MIT"
] |
permissive
|
hbt19860104/libgo
|
e732c80ff05225232b93befe9ae958f53e6c8003
|
2445101912a3b83361b9766e34f76cc16567f111
|
refs/heads/master
| 2022-11-01T06:57:48.288008
| 2020-06-16T06:33:46
| 2020-06-16T06:33:46
| 272,623,004
| 1
| 0
|
MIT
| 2020-06-16T06:03:26
| 2020-06-16T06:03:26
| null |
UTF-8
|
C++
| false
| false
| 1,042
|
cpp
|
defer.cpp
|
#include "defer.h"
#include "../scheduler/scheduler.h"
#include "../cls/co_local_storage.h"
namespace co
{
inline void*& GetLastDeferTls()
{
thread_local static void* p = nullptr;
return p;
}
dismisser*& dismisser::GetLastDefer()
{
Task* tk = Processer::GetCurrentTask();
if (tk) {
CLS_REF(dismisser*) defer_cls = CLS(dismisser*, nullptr);
return (dismisser*&)defer_cls;
}
return reinterpret_cast<dismisser*&>(GetLastDeferTls());
}
void dismisser::SetLastDefer(dismisser* ptr)
{
GetLastDefer() = ptr;
}
void dismisser::ClearLastDefer(dismisser*)
{
GetLastDefer() = nullptr;
}
struct FakeDismisser : public dismisser
{
virtual bool dismiss() override { return false; }
};
dismisser& GetLastDefer()
{
dismisser* d = dismisser::GetLastDefer();
if (d)
return *d;
static FakeDismisser nullD;
return nullD;
}
} // namespace co
|
933ec31538f8b50d483cfe9b5a37256a13167a37
|
e25b7aad6b112244c214f74ed6942bb00c482bcb
|
/battleGame/SoulBelt.cpp
|
d64e882c6cbabf013d031f725a90630cbaa064a8
|
[] |
no_license
|
kvshdev/SoulRulersGame
|
88c4b5a96a50af497352bfcb6c79fa8b92956b1c
|
4e2d3121c5ac819ef52a37f45f26e16db9650013
|
refs/heads/master
| 2020-04-12T21:27:04.526804
| 2018-12-22T04:03:22
| 2018-12-22T04:03:22
| 162,762,304
| 0
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 1,181
|
cpp
|
SoulBelt.cpp
|
//
// SoulBelt.cpp
// battleGame
//
// Created by Kadeem Bobcombe on 12/21/18.
// Copyright © 2018 Kadeem Bobcombe. All rights reserved.
//
#include "SoulBelt.hpp"
#include "SoulRuler.cpp"
#include <vector>
using namespace std;
class SoulBelt{
string name;
int size = 0;
Souls *mySouls[4] = {NULL,NULL,NULL,NULL};
public:
SoulBelt(string name){
this->name = name;
}
void addSouls(Souls *addedSoul){
for (int i = 0; i<4; i++){
if (size == 4){
cout << "Soul Belt is currently full";
}
if(mySouls[i] == NULL){
mySouls[i] = addedSoul;
size += 1;
break;
}
}
}
void printSouls(){
for (int i = 0; i < 4; i++){
if (mySouls[i] == NULL){
cout << "No Soul in slot " << i+1 << "\n";
}
if (mySouls[i] != NULL){
cout << mySouls[i]->getName() << " " ;
cout << mySouls[i]->getMaxHealth() << "\n";
}
}
}
};
|
fccbd826a4c6dd032fafb4b0c0a7495e16208a77
|
c786d2d846c122bf40a315f922ea6d30d13f2446
|
/witness/server/webcam/webcam.h
|
064e16929e7b46b2b350ae1019f8567179188914
|
[
"Apache-2.0"
] |
permissive
|
curtismuntz/witness
|
f739360c30571228aafde3fa89ef5fe2e0221a00
|
474a90ebd42ffa965f4869431a675005e8f149fd
|
refs/heads/master
| 2023-09-01T21:52:32.066082
| 2021-03-17T17:19:03
| 2021-03-17T17:19:03
| 172,268,964
| 15
| 2
|
Apache-2.0
| 2023-07-05T22:39:29
| 2019-02-23T22:02:29
|
C++
|
UTF-8
|
C++
| false
| false
| 1,622
|
h
|
webcam.h
|
#pragma once
#include <memory>
#include <string>
#include "glog/logging.h"
#include "opencv2/core.hpp"
// #include "opencv2/highgui.hpp"
#include "opencv2/imgproc.hpp"
#include "opencv2/video/background_segm.hpp"
#include "opencv2/videoio.hpp"
namespace witness::webcam {
// Manager and actions for common camera acquisition and adjustments
class Webcam {
public:
explicit Webcam(int camera_rotation_degrees)
: calibrated_(false), rotation_degrees_(camera_rotation_degrees) {
// Disable autofocus.
SetParameter(cv::CAP_PROP_AUTOFOCUS, 0);
}
~Webcam() { CloseCamera(); }
bool OpenCamera(int camera_id = 0);
bool IsCalibrated() { return calibrated_; }
void SetCalibration(const cv::Mat &m) { camera_intrisics_ = m; }
cv::Mat GetCalibration() { return camera_intrisics_; }
void CloseCamera();
bool SetParameter(const int cv_parameter, const int value);
bool SaveImage(const std::string &desired_filename);
bool UnmanagedSaveImage(const std::string &desired_filename);
cv::VideoWriter CreateVideoObject(const std::string &fname);
bool ReadFrame(cv::Mat *frame);
void ReadGrey(cv::Mat *frame, cv::Mat *grey);
void Watermark(cv::Mat *img);
void WatermarkTime(cv::Mat *img);
void SetCameraRotation(const int degrees) { rotation_degrees_ = degrees; }
std::unique_ptr<cv::VideoCapture> camera_;
void SetWatermarkString(const std::string &newstring) { watermark_string_ = newstring; }
private:
bool active_;
bool calibrated_;
int rotation_degrees_;
cv::Mat camera_intrisics_;
std::string watermark_string_ = "https://murt.is";
};
} // namespace witness::webcam
|
29aa100f2f070ca92877408dc59f91cd1aa49ff3
|
308cf11178f8034c1e64e9692d633dbf94d9edda
|
/core/src/main/cpp/keyx/KeyRequestData.cpp
|
c3f20a85b87cf8500895418f2ca6fdac1c31d846
|
[
"Apache-2.0"
] |
permissive
|
firmangel8/msl
|
9abd151c5b31254fba9ce4ea5a61939c7d262da7
|
78dfd67165533d97051ea6d828063eacc92de77a
|
refs/heads/master
| 2020-12-20T06:34:56.344898
| 2019-10-28T20:00:19
| 2019-10-28T20:00:19
| 235,989,131
| 1
| 0
|
Apache-2.0
| 2020-01-24T11:18:03
| 2020-01-24T11:18:03
| null |
UTF-8
|
C++
| false
| false
| 3,496
|
cpp
|
KeyRequestData.cpp
|
/**
* Copyright (c) 2016-2017 Netflix, Inc. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <io/MslEncoderException.h>
#include <io/MslEncoderFactory.h>
#include <io/MslEncoderFormat.h>
#include <keyx/KeyRequestData.h>
#include <io/MslObject.h>
#include <keyx/KeyExchangeFactory.h>
#include <MslEncodingException.h>
#include <MslError.h>
#include <MslKeyExchangeException.h>
#include <util/MslContext.h>
#include <util/MslUtils.h>
#include <string>
using namespace std;
using namespace netflix::msl;
using namespace netflix::msl::io;
using namespace netflix::msl::util;
namespace netflix {
namespace msl {
namespace keyx {
namespace {
/** Key key exchange scheme. */
const string KEY_SCHEME = "scheme";
/** Key key request data. */
const string KEY_KEYDATA = "keydata";
} // namespace anonymous
//static
shared_ptr<KeyRequestData> KeyRequestData::create(shared_ptr<MslContext> ctx,
shared_ptr<MslObject> keyRequestDataMo)
{
try {
// Pull the key data.
const string schemeName = keyRequestDataMo->getString(KEY_SCHEME);
const KeyExchangeScheme scheme = ctx->getKeyExchangeScheme(schemeName);
if (scheme == KeyExchangeScheme::INVALID)
throw MslKeyExchangeException(MslError::UNIDENTIFIED_KEYX_SCHEME, schemeName);
shared_ptr<MslEncoderFactory> encoder = ctx->getMslEncoderFactory();
shared_ptr<MslObject> keyData = keyRequestDataMo->getMslObject(KEY_KEYDATA, encoder);
// Construct an instance of the concrete subclass.
shared_ptr<KeyExchangeFactory> keyFactory = ctx->getKeyExchangeFactory(scheme);
if (!keyFactory)
throw MslKeyExchangeException(MslError::KEYX_FACTORY_NOT_FOUND, scheme.name());
return keyFactory->createRequestData(ctx, keyData);
} catch (const MslEncoderException& e) {
throw MslEncodingException(MslError::MSL_PARSE_ERROR, "keyrequestdata " + keyRequestDataMo->toString(), e);
}
}
shared_ptr<ByteArray> KeyRequestData::toMslEncoding(shared_ptr<MslEncoderFactory> encoder, const MslEncoderFormat& format) const
{
shared_ptr<MslObject> mo = encoder->createObject();
mo->put(KEY_SCHEME, scheme.name());
mo->put(KEY_KEYDATA, getKeydata(encoder, format));
return encoder->encodeObject(mo, format);
}
bool KeyRequestData::equals(shared_ptr<const KeyRequestData> base) const
{
if (!base) return false;
if (this == base.get()) return true;
return scheme == base->scheme;
}
bool operator==(const KeyRequestData& a, const KeyRequestData& b)
{
shared_ptr<const KeyRequestData> ap(&a, &MslUtils::nullDeleter<KeyRequestData>);
shared_ptr<const KeyRequestData> bp(&b, &MslUtils::nullDeleter<KeyRequestData>);
return ap->equals(bp);
}
ostream& operator<<(ostream& os, const KeyRequestData& data)
{
// FIXME
return os << data.scheme.name();
}
ostream& operator<<(ostream& os, shared_ptr<KeyRequestData> data)
{
return os << *data;
}
}}} // namespace netflix::msl::keyx
|
39e9315a210592d4fb1385d6d734f8bf9d7d43ef
|
a46994fe39ed68cb82081f2f5f41cf96bb34bb1b
|
/BombermanIKA/Source/BombermanIKA/BIKExplosionActor.cpp
|
aa1028f81f74e700542c6343c6a25772d1b3b92e
|
[] |
no_license
|
Naufrago0/BombermanIKA
|
5152d08e30e62568a77c63f2c3cdbaccb5267e25
|
19bdd2a80f23516430a2b6a3a0ac698ab60ad0e6
|
refs/heads/master
| 2021-08-26T07:28:51.756526
| 2017-11-22T08:50:05
| 2017-11-22T08:50:05
| 110,872,478
| 0
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 1,773
|
cpp
|
BIKExplosionActor.cpp
|
#include "BIKExplosionActor.h"
#include "BIKLevelBlock.h"
#include "BIKDestructibleBlockActor.h"
#include "BIKPowerUpActor.h"
ABIKExplosionActor::ABIKExplosionActor()
{
DelaySecondsToApply = 0.f;
ExplosionSeconds = 0.f;
DamageEnabled = true;
//Enable tick for this class of actors
PrimaryActorTick.bCanEverTick = true;
}
void ABIKExplosionActor::Tick(float DeltaSeconds)
{
Super::Tick(DeltaSeconds);
if (DelaySecondsToApply > 0.f)
{
DelaySecondsToApply -= DeltaSeconds;
if (DelaySecondsToApply <= 0.f)
{
Explode();
}
}
else if (ExplosionSeconds > 0.f)
{
ExplosionSeconds -= DeltaSeconds;
if (ExplosionSeconds <= 0.f)
{
ExplosionEnd();
}
}
}
void ABIKExplosionActor::ConfigureExplosion(FBIKLevelBlock* LevelBlockArg, const float DelaySecondsArg, const float ExplosionSecondsArg)
{
SetLevelBlock(LevelBlockArg);
DelaySecondsToApply = DelaySecondsArg;
ExplosionSeconds = ExplosionSecondsArg;
// Hide the explosion until the DelaySeconds elapse
if(DelaySecondsToApply > 0.f)
SetActorHiddenInGame(true);
}
void ABIKExplosionActor::Explode()
{
//Show the explosion
SetActorHiddenInGame(false);
// Destroy the block if there is a destructible on this space
if (LevelBlock->IsDestroyable() && DamageEnabled)
{
// DestroyLevelBlock may disable the damage on this explosion if
// it generates a powerup so we have to check again DamageEnabled
LevelBlock->DestroyableBlock->DestroyLevelBlock();
}
if (LevelBlock->IsPowerUp() && DamageEnabled)
{
LevelBlock->PowerUp->Destroy();
LevelBlock->PowerUp = nullptr;
}
}
void ABIKExplosionActor::ExplosionEnd()
{
// Update the level block where the explosion is standing and destroy this explosion actor
LevelBlock->Explosion = nullptr;
LevelBlock = nullptr;
Destroy();
}
|
c9d69c4446c8aa60e6cabfd81d005155470eb946
|
fd53a68dc04d6fcf066ecf0fcc7e747a6fcbd5bf
|
/util/include/HSC/baslerClass.hpp
|
ba47d67a5bf39b0f5b6b3f0f89bd464605d78937
|
[] |
no_license
|
mikihiroikura/CoaXpressCam
|
fbbecbc08237602ba755fad70b543a5d5cbb1634
|
e9603189e60ce0c7aab11f0db53ca99f62fa6986
|
refs/heads/master
| 2023-05-25T12:18:43.214695
| 2021-05-28T07:11:46
| 2021-05-28T07:11:46
| 280,502,010
| 1
| 0
| null | null | null | null |
SHIFT_JIS
|
C++
| false
| false
| 2,833
|
hpp
|
baslerClass.hpp
|
#pragma once
/// @file baslerClass.hpp
/// @brief baslerClass baslerカメラ
/// @author Mikihiro Ikura
/// @date 2017/8/10 作成
/// @date 2020/6/11 最終更新
/// @version 2.0.1 Pylon6に対応
///
#include <HSC/Camera.hpp>
#include <Basler/pylon/PylonIncludes.h>
#include <Basler/pylon/PylonGUI.h>
using namespace Pylon;
#include <Basler/pylon/usb/BaslerUsbInstantCamera.h>
typedef Pylon::CBaslerUsbInstantCamera Camera_t;
typedef Camera_t::GrabResultPtr_t GrabResultPtr_t;
#pragma comment(lib, "GCBase_MD_VC141_v3_1_Basler_pylon")
#pragma comment(lib, "GenApi_MD_VC141_v3_1_Basler_pylon")
#pragma comment(lib, "PylonBase_v6_1")
#pragma comment(lib, "PylonC")
#pragma comment(lib, "PylonGUI_v6_1")
#pragma comment(lib, "PylonUtility_v6_1")
/// Camera.hpp へ移動
/*
namespace paramTypeBasler
{
enum class Param
{
ExposureTime = 0,
TriggerDelay = 1,
};
enum class FastMode
{
SensorReadoutModeFast = 0,
SensorReadoutModeNormal = 1
};
enum class AcquisitionMode
{
EnableAcquisitionFrameRate = 0,
TriggerMode = 1
};
enum class CaptureType
{
ColorGrab = 0,
MonocroGrab = 1,
BayerGrab = 2
};
enum class GrabStrategy
{
OneByOne = 0,
LatestOnlyFrame = 1
};
}
*/
class basler : public Camera
{
private:
struct debug_class
{
float exposure_time;
float trigger_delay;
int fast_mode;
int acquisition_mode;
int cap_type;
int grab_strategy;
};
static constexpr int CAM_WIDTH = 640;
static constexpr int CAM_HEIGHT = 480;
static constexpr float CAM_FPS = 500;
static unsigned int camera_number;
static unsigned int camera_count;
static DeviceInfoList_t devices;
EGrabStrategy grab_strategy;
paramTypeBasler::CaptureType capture_type_flag;
CTlFactory* tlFactory;
CImageFormatConverter formatConverter;
Camera_t *Cameras;
CGrabResultPtr ptrGrabResult;
CPylonImage pylonImage;
debug_class debug_flag;
std::size_t frameNumber;
std::string deviceName;
public:
basler();
~basler();
void parameter_all_print();
void connect(int id);
void disconnect();
void start();
void stop();
void setParam(const paramTypeCamera::paramInt &pT, const int param);
void setParam(const paramTypeCamera::paramFloat &pT, const float param);
void setParam(const paramTypeBasler::Param &pT, const float param);
void setParam(const paramTypeBasler::AcquisitionMode &pT);
void setParam(const paramTypeBasler::FastMode &pT);
void setParam(const paramTypeBasler::CaptureType &pT);
void setParam(const paramTypeBasler::GrabStrategy &pT);
//virtual void getParam(const paramType &pT, void* param) = 0;
int getParam(const paramTypeCamera::paramInt &pT);
float getParam(const paramTypeCamera::paramFloat &pT);
float getParam(const paramTypeBasler::Param &pT);
/// 画像の取得(単眼)
void captureFrame(void* data);
void baslerMessage(std::string str);
};
|
b24a3c4b2858f75624e35f195fb675dd6adb8fde
|
b6d732508140f86297d89cd8cea366bed7b17e10
|
/011.container-with-most-water.hpp
|
43320e87bd28a56a405a5a51f01c8c2a442760e4
|
[] |
no_license
|
15cm/LeetCode
|
8cfd25d7aac01f2cf99e9171d07d20540f9a2de0
|
da5bb7d378371861008e4180ce6fb05b5d880a01
|
refs/heads/master
| 2021-01-13T01:07:16.351418
| 2018-09-24T06:13:22
| 2018-09-24T06:13:22
| 54,251,571
| 1
| 0
| null | 2019-05-01T02:10:03
| 2016-03-19T06:40:34
|
C++
|
UTF-8
|
C++
| false
| false
| 443
|
hpp
|
011.container-with-most-water.hpp
|
#include <vector>
#include <math.h>
using namespace std;
class Solution {
public:
int maxArea(vector<int>& height) {
int ans = 0;
for(int i = 0, j = height.size() - 1; i < j;height[i] > height[j] ? j -- : i ++) {
ans = max(ans, areaOf(i, j, height[i], height[j]));
}
return ans;
}
int areaOf(int left, int right, int h1, int h2) {
return min(h1, h2) * (right - left);
}
};
|
fbf49aaece842529d8e5365b3eb0a35cf4e1a5aa
|
0ca1bb89e877b3c9d3ae6f5baceb7ecb8e0120d4
|
/Samples/Plugins/main.cpp
|
b6c0615064a17ef325f2de215fe0b5f6777de003
|
[] |
no_license
|
MazingR/stormancer-sdk-cpp
|
10451899e563d76407c6995306abaeaffc70752a
|
e90ab82d50c4e829eac2bf98326fe6efabea8d5f
|
refs/heads/master
| 2020-03-20T21:35:33.262788
| 2018-06-15T09:16:07
| 2018-06-15T09:16:07
| null | 0
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 2,847
|
cpp
|
main.cpp
|
#include "StormancerWrapper.h"
#include "PlayerProfile/PlayerProfileService.h"
#include "PlayerProfile/PlayerProfile.h"
#include "Leaderboard/LeaderboardService.h"
#include "stormancer/Logger/ConsoleLogger.h"
#include "stormancer/Helpers.h"
bool stop = false;
const std::string endpoint = "http://127.0.0.1:8081";
const std::string accountId = "account-id";
const std::string applicationName = "application-name";
int main()
{
Stormancer::StormancerWrapper stormancerWrapper;
auto logger = std::make_shared<Stormancer::ConsoleLogger>();
stormancerWrapper.setLogger(logger);
stormancerWrapper.init(endpoint, accountId, applicationName);
stormancerWrapper.Authenticate("steam", "plop").then([logger, &stormancerWrapper](pplx::task<void> t) {
try
{
t.wait();
logger->log("connect OK");
stormancerWrapper.getService<Stormancer::LeaderboardService>("services", true, true).then([=](pplx::task<std::shared_ptr<Stormancer::LeaderboardService>> t) {
try
{
auto service = t.get();
Stormancer::LeaderboardQuery query;
query.leaderboardName = "test";
query.size = 10;
service->query(query).then([=](pplx::task<Stormancer::LeaderboardResult> t2) {
try
{
auto result = t2.get();
auto resultsCount = result.results.size();
logger->log(Stormancer::LogLevel::Debug, "main", "Results count = " + std::to_string(resultsCount));
if (resultsCount > 0)
{
logger->log(Stormancer::LogLevel::Debug, "main", "My rank = " + std::to_string(result.results[0].ranking));
logger->log(Stormancer::LogLevel::Debug, "main", "My score = " + std::to_string(result.results[0].scoreRecord.score));
std::time_t a = result.results[0].scoreRecord.createdOn / 1000;
auto dateStr = Stormancer::time_tToStr(a, true);
logger->log(Stormancer::LogLevel::Debug, "main", "My date = " + dateStr);
}
}
catch (const std::exception& ex)
{
logger->log(ex);
}
});
}
catch (const std::exception& ex)
{
logger->log(ex);
}
});
}
catch (const std::exception& ex)
{
logger->log(std::string("connect failed (") + ex.what() + ")");
}
});
/*stormancerWrapper.getService<Stormancer::PlayerProfileService<Stormancer::PlayerProfile>>("main").then([](std::shared_ptr<Stormancer::PlayerProfileService<Stormancer::PlayerProfile>> pps) {
pps->get().then([](Stormancer::PlayerProfile pp) {
std::cout << "get player profile OK" << std::endl;
});
});*/
// simulate a game render loop
pplx::create_task([&stormancerWrapper]() {
while (!stop)
{
// We should call update at render loop start
stormancerWrapper.update();
std::this_thread::sleep_for(std::chrono::milliseconds(10));
}
});
std::cin.ignore();
stormancerWrapper.shutdown();
stop = true;
return 0;
}
|
ef38a97918d38299730220e3e92125b5ebd937e8
|
ae6dbcfd6a333bf598b871e15a7741fef81f964f
|
/Projects/bdda/src/CPP/PowerPoint/PptDataModel/PptFooterMCAtom.cpp
|
5622424464a031b77d7d843b3a2973d952168e6d
|
[] |
no_license
|
xeon2007/WSProf
|
7d431ec6a23071dde25226437583141f68ff6f85
|
d02c386118bbd45237f6defa14106be8fd989cd0
|
refs/heads/master
| 2016-11-03T17:25:02.997045
| 2015-12-08T22:04:14
| 2015-12-08T22:04:14
| null | 0
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 677
|
cpp
|
PptFooterMCAtom.cpp
|
/**
* @file PptFooterMCAtom.cpp
*
* Definition of class PptFooterMCAtom
*
* (c) Schema Software Inc., 2003
*
* @ingroup PowerPoint
*/
#include "ch_prelibc.h"
#include "ch_prefix.h"
#include "PptFooterMCAtom.h"
#include "PptDataModelVisitor.h"
PptFooterMCAtom::PptFooterMCAtom(const EshHeader & in_header) :
PptAtom(in_header)
{
ChLOG_DEBUG_START_FN;
}
ChIMPORT PptFooterMCAtom::PptFooterMCAtom() :
PptAtom(ID)
{
ChLOG_DEBUG_START_FN;
}
bool PptFooterMCAtom::accept(EshVisitor & in_visitor)
{
ChLOG_DEBUG_START_FN;
PptDataModelVisitor* pPptVisitor = ChDOWNCAST<EshVisitor, PptDataModelVisitor>(& in_visitor);
return pPptVisitor->visit(*this);
}
|
f4b70a36ad69c138eb075d828f3c945ca9504b46
|
7422e240993e1a7d41833cf41a56441438eed34c
|
/Prax13/main.cpp
|
10664fd866953381ef6da55dc6539548074b84bb
|
[] |
no_license
|
nikopa96/C-Advanced
|
3a653b72e15d5a899a95b95705a6e7adb2448eff
|
b2f0fd2d1fe49fdd402f250ac011385557adcd61
|
refs/heads/master
| 2022-02-03T10:28:28.761484
| 2019-06-25T18:08:51
| 2019-06-25T18:08:51
| 193,759,186
| 0
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 507
|
cpp
|
main.cpp
|
#include <iostream>
#include <thread>
#include "Room.h"
std::mutex msgmutex;
int main() {
auto rp = std::make_shared<Room>("Orange",3);
auto rp2 = std::make_shared<Room>("Green",2);
rp->setNext(rp2);
std::vector<std::thread> players;
for ( auto &name : { "Alice","Bob","Carol","Dave","Eve","George","Harry" } ) {
players.emplace_back(Player(name,rp));
}
for ( auto &t : players ) {
if ( t.joinable() ) {
t.join();
}
}
return 0;
}
|
481d2013a5b9fb84408702bfc6ab715a77b157de
|
78e12055ace347c65e371aae2bcfb4c9d6e02e61
|
/Lab-0106/Lab-0106/3DVector.h
|
10f63cd8467b82798cf1b6a4e68b73d7c804b6ba
|
[] |
no_license
|
dusandjovanovic/Array-and-Multi-dimensional-array-implementation
|
c27e278a9c1076b707a11669c2a7a394d3fe4431
|
1e3588f8b7da9d365e698951348073a81de37172
|
refs/heads/master
| 2021-07-01T02:05:23.889700
| 2017-09-19T19:09:03
| 2017-09-19T19:09:03
| 103,441,247
| 0
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 952
|
h
|
3DVector.h
|
#pragma once
#include <iostream>
using namespace std;
class multiDim {
protected:
double* data;
long dimension;
public:
multiDim() {
dimension = 3;
data = new double[dimension];
}
multiDim(double x, double y, double z) {
dimension = 3;
data = new double[dimension];
data[0] = x;
data[1] = y;
data[2] = z;
}
double dot(multiDim& vector) {
double result = 0;
for (long i = 0; i < dimension; i++)
result += data[i] * vector.data[i];
return result;
}
multiDim cross(multiDim& vector) {
multiDim result(0, 0, 0);
result.data[0] = data[1] * vector.data[2] - data[2] * vector.data[1];
result.data[1] = data[2] * vector.data[0] - data[0] * vector.data[2];
result.data[2] = data[0] * vector.data[1] - data[1] * vector.data[0];
return result;
}
void showAll() {
for (long i = 0; i < dimension; i++)
cout << data[i] << " | ";
cout << endl;
}
void reinitialize() {
data[0] = data[1] = data[2] = 0;
}
};
|
f4af81ae01f5b19c4fdbdf60857b6ed62e9b5495
|
8b34a27043d7905e76b288ef496a06af3eefef88
|
/main.cpp
|
3a0d5a64dc2fb39eb1bf079069ac0abf20e71b13
|
[] |
no_license
|
dream-kzx/PersonServer
|
33daebfff224de5073e0e7bed1fa6b44bacd8073
|
c46417baedf1121591ef0c263cd1924e3dd09db5
|
refs/heads/master
| 2022-10-27T10:44:09.213104
| 2020-06-14T03:24:55
| 2020-06-14T03:24:55
| 271,152,796
| 0
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 870
|
cpp
|
main.cpp
|
// ManagerServer.cpp: 定义应用程序的入口点。
//
//
#pragma execution_character_set("utf-8")
#include <httplib.h>
#include <sqlite3.h>
#include <chrono>
#include <cstdio>
#include <cstdlib>
#include <iostream>
#include "KServer.h"
#include "SQLKK.h"
#include "Controller.h"
#include "MyCrypto.h"
extern lookupman::KServer k_server;
extern void global_init();
int main() {
using namespace lookupman;
using namespace httplib;
//std::cout << MyCrypto::Hash("I'm kzx khhhhhh") << std::endl;
global_init();
k_server.Post("/SignIn", StaffSignIn);
k_server.Post("/login", StaffLogin);
k_server.Post("/GetStaffMessage", StaffGetMessage);
k_server.Post("/UpdateStaffMessage", StaffUpdateMessage);
k_server.Get("/", [](const Request& req, Response& res) {
res.set_content("Hello World!", "text/plain");
});
k_server.Listen();
}
|
f616208538c398bdc3266c770141d837da51a7ab
|
0e9a4940ce22ffcbbc15d92a462d7f28e01d0787
|
/src/FCFS.cpp
|
8ea2201c927bb4a29cd7bdd3d4e0ed7e2cca7452
|
[
"BSD-3-Clause"
] |
permissive
|
ryangarvey/Schedulers
|
e4484574e56e573560636b7b5322c12c238c2e7f
|
71d20c131774641a91364756d35b346621e882df
|
refs/heads/master
| 2022-11-15T18:02:51.251939
| 2020-07-01T23:16:28
| 2020-07-01T23:16:28
| 276,080,521
| 0
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 861
|
cpp
|
FCFS.cpp
|
#include "Scheduler.h"
#include "ProcessSorts.h"
#include <vector>
#include <queue>
#include <iostream>
#include <algorithm>
using namespace std;
void FirstComeFirstServed(vector<Process>& procs) {
Scheduler schedule;
sort(procs.begin(), procs.end(), sortByArrival);
int currTime = procs[0].arrival;
for (int i = 0; i < procs.size(); ++i) {
if (currTime < procs[i].arrival) {
schedule.add(procs[i], procs[i].arrival);
currTime = procs[i].arrival;
} else {
schedule.add(procs[i], currTime);
currTime += procs[i].burst;
}
}
schedule.printSchedule();
}
int main() {
Process * a = new Process("A", 1, 4);
Process * b = new Process("B", 4, 6);
Process * c = new Process("C", 7, 2);
vector<Process> prc {*a,*b,*c};
FirstComeFirstServed(prc);
}
|
4df10b9d98cfa323fc0b71772a9e8bea8cfc8a87
|
61225acb6eb55cfbe464c7554b627fa92b736d97
|
/cisco-ios-xr/ydk/models/cisco_ios_xr/fragmented/Cisco_IOS_XR_fib_common_oper_2.cpp
|
cc96d0a4c869934d0155837dd7e2044a595cb9be
|
[
"Apache-2.0"
] |
permissive
|
CiscoDevNet/ydk-cpp
|
a4301f2e512e50b1d4287a04ae50e361cffa3f4e
|
f84684214cff6dc640338ccca9ecdf13d308205f
|
refs/heads/master
| 2023-08-16T18:05:25.822935
| 2022-02-19T18:27:13
| 2022-02-19T18:27:13
| 74,431,871
| 19
| 13
|
Apache-2.0
| 2023-09-06T17:29:35
| 2016-11-22T03:48:08
|
C++
|
UTF-8
|
C++
| false
| false
| 1,020,386
|
cpp
|
Cisco_IOS_XR_fib_common_oper_2.cpp
|
#include <sstream>
#include <iostream>
#include <ydk/entity_util.hpp>
#include "bundle_info.hpp"
#include "generated_entity_lookup.hpp"
#include "Cisco_IOS_XR_fib_common_oper_2.hpp"
#include "Cisco_IOS_XR_fib_common_oper_3.hpp"
using namespace ydk;
namespace cisco_ios_xr {
namespace Cisco_IOS_XR_fib_common_oper {
Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoDetailHardwareIngress::NhInfoSpecialDetailHardwareIngress::NhInfoSpecialDiscardDetailHardwareIngress::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionBase::ObjectBase::ObjectBase()
:
object_reference_count{YType::uint32, "object-reference-count"},
object_flags{YType::uint32, "object-flags"},
object_type{YType::uint8, "object-type"},
object_time_stamp{YType::uint64, "object-time-stamp"},
object_pointer{YType::uint64, "object-pointer"}
{
yang_name = "object-base"; yang_parent_name = "nh-info-extension-base"; is_top_level_class = false; has_list_ancestor = true;
}
Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoDetailHardwareIngress::NhInfoSpecialDetailHardwareIngress::NhInfoSpecialDiscardDetailHardwareIngress::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionBase::ObjectBase::~ObjectBase()
{
}
bool Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoDetailHardwareIngress::NhInfoSpecialDetailHardwareIngress::NhInfoSpecialDiscardDetailHardwareIngress::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionBase::ObjectBase::has_data() const
{
if (is_presence_container) return true;
return object_reference_count.is_set
|| object_flags.is_set
|| object_type.is_set
|| object_time_stamp.is_set
|| object_pointer.is_set;
}
bool Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoDetailHardwareIngress::NhInfoSpecialDetailHardwareIngress::NhInfoSpecialDiscardDetailHardwareIngress::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionBase::ObjectBase::has_operation() const
{
return is_set(yfilter)
|| ydk::is_set(object_reference_count.yfilter)
|| ydk::is_set(object_flags.yfilter)
|| ydk::is_set(object_type.yfilter)
|| ydk::is_set(object_time_stamp.yfilter)
|| ydk::is_set(object_pointer.yfilter);
}
std::string Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoDetailHardwareIngress::NhInfoSpecialDetailHardwareIngress::NhInfoSpecialDiscardDetailHardwareIngress::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionBase::ObjectBase::get_segment_path() const
{
std::ostringstream path_buffer;
path_buffer << "object-base";
return path_buffer.str();
}
std::vector<std::pair<std::string, LeafData> > Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoDetailHardwareIngress::NhInfoSpecialDetailHardwareIngress::NhInfoSpecialDiscardDetailHardwareIngress::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionBase::ObjectBase::get_name_leaf_data() const
{
std::vector<std::pair<std::string, LeafData> > leaf_name_data {};
if (object_reference_count.is_set || is_set(object_reference_count.yfilter)) leaf_name_data.push_back(object_reference_count.get_name_leafdata());
if (object_flags.is_set || is_set(object_flags.yfilter)) leaf_name_data.push_back(object_flags.get_name_leafdata());
if (object_type.is_set || is_set(object_type.yfilter)) leaf_name_data.push_back(object_type.get_name_leafdata());
if (object_time_stamp.is_set || is_set(object_time_stamp.yfilter)) leaf_name_data.push_back(object_time_stamp.get_name_leafdata());
if (object_pointer.is_set || is_set(object_pointer.yfilter)) leaf_name_data.push_back(object_pointer.get_name_leafdata());
return leaf_name_data;
}
std::shared_ptr<ydk::Entity> Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoDetailHardwareIngress::NhInfoSpecialDetailHardwareIngress::NhInfoSpecialDiscardDetailHardwareIngress::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionBase::ObjectBase::get_child_by_name(const std::string & child_yang_name, const std::string & segment_path)
{
return nullptr;
}
std::map<std::string, std::shared_ptr<ydk::Entity>> Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoDetailHardwareIngress::NhInfoSpecialDetailHardwareIngress::NhInfoSpecialDiscardDetailHardwareIngress::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionBase::ObjectBase::get_children() const
{
std::map<std::string, std::shared_ptr<ydk::Entity>> _children{};
char count_=0;
return _children;
}
void Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoDetailHardwareIngress::NhInfoSpecialDetailHardwareIngress::NhInfoSpecialDiscardDetailHardwareIngress::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionBase::ObjectBase::set_value(const std::string & value_path, const std::string & value, const std::string & name_space, const std::string & name_space_prefix)
{
if(value_path == "object-reference-count")
{
object_reference_count = value;
object_reference_count.value_namespace = name_space;
object_reference_count.value_namespace_prefix = name_space_prefix;
}
if(value_path == "object-flags")
{
object_flags = value;
object_flags.value_namespace = name_space;
object_flags.value_namespace_prefix = name_space_prefix;
}
if(value_path == "object-type")
{
object_type = value;
object_type.value_namespace = name_space;
object_type.value_namespace_prefix = name_space_prefix;
}
if(value_path == "object-time-stamp")
{
object_time_stamp = value;
object_time_stamp.value_namespace = name_space;
object_time_stamp.value_namespace_prefix = name_space_prefix;
}
if(value_path == "object-pointer")
{
object_pointer = value;
object_pointer.value_namespace = name_space;
object_pointer.value_namespace_prefix = name_space_prefix;
}
}
void Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoDetailHardwareIngress::NhInfoSpecialDetailHardwareIngress::NhInfoSpecialDiscardDetailHardwareIngress::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionBase::ObjectBase::set_filter(const std::string & value_path, YFilter yfilter)
{
if(value_path == "object-reference-count")
{
object_reference_count.yfilter = yfilter;
}
if(value_path == "object-flags")
{
object_flags.yfilter = yfilter;
}
if(value_path == "object-type")
{
object_type.yfilter = yfilter;
}
if(value_path == "object-time-stamp")
{
object_time_stamp.yfilter = yfilter;
}
if(value_path == "object-pointer")
{
object_pointer.yfilter = yfilter;
}
}
bool Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoDetailHardwareIngress::NhInfoSpecialDetailHardwareIngress::NhInfoSpecialDiscardDetailHardwareIngress::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionBase::ObjectBase::has_leaf_or_child_of_name(const std::string & name) const
{
if(name == "object-reference-count" || name == "object-flags" || name == "object-type" || name == "object-time-stamp" || name == "object-pointer")
return true;
return false;
}
Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoDetailHardwareIngress::NhInfoSpecialDetailHardwareIngress::NhInfoSpecialDiscardDetailHardwareIngress::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionDetail_::NhInfoExtensionDetail_()
:
type{YType::enumeration, "type"}
,
snecd_nhr(std::make_shared<Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoDetailHardwareIngress::NhInfoSpecialDetailHardwareIngress::NhInfoSpecialDiscardDetailHardwareIngress::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionDetail_::SnecdNhr>())
{
snecd_nhr->parent = this;
yang_name = "nh-info-extension-detail"; yang_parent_name = "nh-info-extension-detail"; is_top_level_class = false; has_list_ancestor = true;
}
Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoDetailHardwareIngress::NhInfoSpecialDetailHardwareIngress::NhInfoSpecialDiscardDetailHardwareIngress::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionDetail_::~NhInfoExtensionDetail_()
{
}
bool Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoDetailHardwareIngress::NhInfoSpecialDetailHardwareIngress::NhInfoSpecialDiscardDetailHardwareIngress::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionDetail_::has_data() const
{
if (is_presence_container) return true;
return type.is_set
|| (snecd_nhr != nullptr && snecd_nhr->has_data());
}
bool Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoDetailHardwareIngress::NhInfoSpecialDetailHardwareIngress::NhInfoSpecialDiscardDetailHardwareIngress::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionDetail_::has_operation() const
{
return is_set(yfilter)
|| ydk::is_set(type.yfilter)
|| (snecd_nhr != nullptr && snecd_nhr->has_operation());
}
std::string Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoDetailHardwareIngress::NhInfoSpecialDetailHardwareIngress::NhInfoSpecialDiscardDetailHardwareIngress::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionDetail_::get_segment_path() const
{
std::ostringstream path_buffer;
path_buffer << "nh-info-extension-detail";
return path_buffer.str();
}
std::vector<std::pair<std::string, LeafData> > Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoDetailHardwareIngress::NhInfoSpecialDetailHardwareIngress::NhInfoSpecialDiscardDetailHardwareIngress::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionDetail_::get_name_leaf_data() const
{
std::vector<std::pair<std::string, LeafData> > leaf_name_data {};
if (type.is_set || is_set(type.yfilter)) leaf_name_data.push_back(type.get_name_leafdata());
return leaf_name_data;
}
std::shared_ptr<ydk::Entity> Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoDetailHardwareIngress::NhInfoSpecialDetailHardwareIngress::NhInfoSpecialDiscardDetailHardwareIngress::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionDetail_::get_child_by_name(const std::string & child_yang_name, const std::string & segment_path)
{
if(child_yang_name == "snecd-nhr")
{
if(snecd_nhr == nullptr)
{
snecd_nhr = std::make_shared<Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoDetailHardwareIngress::NhInfoSpecialDetailHardwareIngress::NhInfoSpecialDiscardDetailHardwareIngress::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionDetail_::SnecdNhr>();
}
return snecd_nhr;
}
return nullptr;
}
std::map<std::string, std::shared_ptr<ydk::Entity>> Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoDetailHardwareIngress::NhInfoSpecialDetailHardwareIngress::NhInfoSpecialDiscardDetailHardwareIngress::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionDetail_::get_children() const
{
std::map<std::string, std::shared_ptr<ydk::Entity>> _children{};
char count_=0;
if(snecd_nhr != nullptr)
{
_children["snecd-nhr"] = snecd_nhr;
}
return _children;
}
void Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoDetailHardwareIngress::NhInfoSpecialDetailHardwareIngress::NhInfoSpecialDiscardDetailHardwareIngress::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionDetail_::set_value(const std::string & value_path, const std::string & value, const std::string & name_space, const std::string & name_space_prefix)
{
if(value_path == "type")
{
type = value;
type.value_namespace = name_space;
type.value_namespace_prefix = name_space_prefix;
}
}
void Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoDetailHardwareIngress::NhInfoSpecialDetailHardwareIngress::NhInfoSpecialDiscardDetailHardwareIngress::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionDetail_::set_filter(const std::string & value_path, YFilter yfilter)
{
if(value_path == "type")
{
type.yfilter = yfilter;
}
}
bool Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoDetailHardwareIngress::NhInfoSpecialDetailHardwareIngress::NhInfoSpecialDiscardDetailHardwareIngress::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionDetail_::has_leaf_or_child_of_name(const std::string & name) const
{
if(name == "snecd-nhr" || name == "type")
return true;
return false;
}
Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoDetailHardwareIngress::NhInfoSpecialDetailHardwareIngress::NhInfoSpecialDiscardDetailHardwareIngress::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionDetail_::SnecdNhr::SnecdNhr()
:
nh_info_replicated_type{YType::uint8, "nh-info-replicated-type"},
nh_info_replicated_nh_id{YType::uint32, "nh-info-replicated-nh-id"},
nh_info_replicated_encap_id{YType::uint64, "nh-info-replicated-encap-id"},
nh_info_replicated_interface{YType::str, "nh-info-replicated-interface"}
{
yang_name = "snecd-nhr"; yang_parent_name = "nh-info-extension-detail"; is_top_level_class = false; has_list_ancestor = true;
}
Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoDetailHardwareIngress::NhInfoSpecialDetailHardwareIngress::NhInfoSpecialDiscardDetailHardwareIngress::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionDetail_::SnecdNhr::~SnecdNhr()
{
}
bool Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoDetailHardwareIngress::NhInfoSpecialDetailHardwareIngress::NhInfoSpecialDiscardDetailHardwareIngress::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionDetail_::SnecdNhr::has_data() const
{
if (is_presence_container) return true;
return nh_info_replicated_type.is_set
|| nh_info_replicated_nh_id.is_set
|| nh_info_replicated_encap_id.is_set
|| nh_info_replicated_interface.is_set;
}
bool Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoDetailHardwareIngress::NhInfoSpecialDetailHardwareIngress::NhInfoSpecialDiscardDetailHardwareIngress::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionDetail_::SnecdNhr::has_operation() const
{
return is_set(yfilter)
|| ydk::is_set(nh_info_replicated_type.yfilter)
|| ydk::is_set(nh_info_replicated_nh_id.yfilter)
|| ydk::is_set(nh_info_replicated_encap_id.yfilter)
|| ydk::is_set(nh_info_replicated_interface.yfilter);
}
std::string Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoDetailHardwareIngress::NhInfoSpecialDetailHardwareIngress::NhInfoSpecialDiscardDetailHardwareIngress::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionDetail_::SnecdNhr::get_segment_path() const
{
std::ostringstream path_buffer;
path_buffer << "snecd-nhr";
return path_buffer.str();
}
std::vector<std::pair<std::string, LeafData> > Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoDetailHardwareIngress::NhInfoSpecialDetailHardwareIngress::NhInfoSpecialDiscardDetailHardwareIngress::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionDetail_::SnecdNhr::get_name_leaf_data() const
{
std::vector<std::pair<std::string, LeafData> > leaf_name_data {};
if (nh_info_replicated_type.is_set || is_set(nh_info_replicated_type.yfilter)) leaf_name_data.push_back(nh_info_replicated_type.get_name_leafdata());
if (nh_info_replicated_nh_id.is_set || is_set(nh_info_replicated_nh_id.yfilter)) leaf_name_data.push_back(nh_info_replicated_nh_id.get_name_leafdata());
if (nh_info_replicated_encap_id.is_set || is_set(nh_info_replicated_encap_id.yfilter)) leaf_name_data.push_back(nh_info_replicated_encap_id.get_name_leafdata());
if (nh_info_replicated_interface.is_set || is_set(nh_info_replicated_interface.yfilter)) leaf_name_data.push_back(nh_info_replicated_interface.get_name_leafdata());
return leaf_name_data;
}
std::shared_ptr<ydk::Entity> Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoDetailHardwareIngress::NhInfoSpecialDetailHardwareIngress::NhInfoSpecialDiscardDetailHardwareIngress::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionDetail_::SnecdNhr::get_child_by_name(const std::string & child_yang_name, const std::string & segment_path)
{
return nullptr;
}
std::map<std::string, std::shared_ptr<ydk::Entity>> Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoDetailHardwareIngress::NhInfoSpecialDetailHardwareIngress::NhInfoSpecialDiscardDetailHardwareIngress::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionDetail_::SnecdNhr::get_children() const
{
std::map<std::string, std::shared_ptr<ydk::Entity>> _children{};
char count_=0;
return _children;
}
void Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoDetailHardwareIngress::NhInfoSpecialDetailHardwareIngress::NhInfoSpecialDiscardDetailHardwareIngress::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionDetail_::SnecdNhr::set_value(const std::string & value_path, const std::string & value, const std::string & name_space, const std::string & name_space_prefix)
{
if(value_path == "nh-info-replicated-type")
{
nh_info_replicated_type = value;
nh_info_replicated_type.value_namespace = name_space;
nh_info_replicated_type.value_namespace_prefix = name_space_prefix;
}
if(value_path == "nh-info-replicated-nh-id")
{
nh_info_replicated_nh_id = value;
nh_info_replicated_nh_id.value_namespace = name_space;
nh_info_replicated_nh_id.value_namespace_prefix = name_space_prefix;
}
if(value_path == "nh-info-replicated-encap-id")
{
nh_info_replicated_encap_id = value;
nh_info_replicated_encap_id.value_namespace = name_space;
nh_info_replicated_encap_id.value_namespace_prefix = name_space_prefix;
}
if(value_path == "nh-info-replicated-interface")
{
nh_info_replicated_interface = value;
nh_info_replicated_interface.value_namespace = name_space;
nh_info_replicated_interface.value_namespace_prefix = name_space_prefix;
}
}
void Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoDetailHardwareIngress::NhInfoSpecialDetailHardwareIngress::NhInfoSpecialDiscardDetailHardwareIngress::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionDetail_::SnecdNhr::set_filter(const std::string & value_path, YFilter yfilter)
{
if(value_path == "nh-info-replicated-type")
{
nh_info_replicated_type.yfilter = yfilter;
}
if(value_path == "nh-info-replicated-nh-id")
{
nh_info_replicated_nh_id.yfilter = yfilter;
}
if(value_path == "nh-info-replicated-encap-id")
{
nh_info_replicated_encap_id.yfilter = yfilter;
}
if(value_path == "nh-info-replicated-interface")
{
nh_info_replicated_interface.yfilter = yfilter;
}
}
bool Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoDetailHardwareIngress::NhInfoSpecialDetailHardwareIngress::NhInfoSpecialDiscardDetailHardwareIngress::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionDetail_::SnecdNhr::has_leaf_or_child_of_name(const std::string & name) const
{
if(name == "nh-info-replicated-type" || name == "nh-info-replicated-nh-id" || name == "nh-info-replicated-encap-id" || name == "nh-info-replicated-interface")
return true;
return false;
}
Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoBrief()
:
nh_info_special_brief(std::make_shared<Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief>())
, nh_info_remote_briefs(std::make_shared<Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoRemoteBriefs>())
, nh_info_local_briefs(std::make_shared<Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoLocalBriefs>())
{
nh_info_special_brief->parent = this;
nh_info_remote_briefs->parent = this;
nh_info_local_briefs->parent = this;
yang_name = "nh-info-brief"; yang_parent_name = "vrf"; is_top_level_class = false; has_list_ancestor = true;
}
Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::~NhInfoBrief()
{
}
bool Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::has_data() const
{
if (is_presence_container) return true;
return (nh_info_special_brief != nullptr && nh_info_special_brief->has_data())
|| (nh_info_remote_briefs != nullptr && nh_info_remote_briefs->has_data())
|| (nh_info_local_briefs != nullptr && nh_info_local_briefs->has_data());
}
bool Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::has_operation() const
{
return is_set(yfilter)
|| (nh_info_special_brief != nullptr && nh_info_special_brief->has_operation())
|| (nh_info_remote_briefs != nullptr && nh_info_remote_briefs->has_operation())
|| (nh_info_local_briefs != nullptr && nh_info_local_briefs->has_operation());
}
std::string Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::get_segment_path() const
{
std::ostringstream path_buffer;
path_buffer << "nh-info-brief";
return path_buffer.str();
}
std::vector<std::pair<std::string, LeafData> > Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::get_name_leaf_data() const
{
std::vector<std::pair<std::string, LeafData> > leaf_name_data {};
return leaf_name_data;
}
std::shared_ptr<ydk::Entity> Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::get_child_by_name(const std::string & child_yang_name, const std::string & segment_path)
{
if(child_yang_name == "nh-info-special-brief")
{
if(nh_info_special_brief == nullptr)
{
nh_info_special_brief = std::make_shared<Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief>();
}
return nh_info_special_brief;
}
if(child_yang_name == "nh-info-remote-briefs")
{
if(nh_info_remote_briefs == nullptr)
{
nh_info_remote_briefs = std::make_shared<Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoRemoteBriefs>();
}
return nh_info_remote_briefs;
}
if(child_yang_name == "nh-info-local-briefs")
{
if(nh_info_local_briefs == nullptr)
{
nh_info_local_briefs = std::make_shared<Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoLocalBriefs>();
}
return nh_info_local_briefs;
}
return nullptr;
}
std::map<std::string, std::shared_ptr<ydk::Entity>> Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::get_children() const
{
std::map<std::string, std::shared_ptr<ydk::Entity>> _children{};
char count_=0;
if(nh_info_special_brief != nullptr)
{
_children["nh-info-special-brief"] = nh_info_special_brief;
}
if(nh_info_remote_briefs != nullptr)
{
_children["nh-info-remote-briefs"] = nh_info_remote_briefs;
}
if(nh_info_local_briefs != nullptr)
{
_children["nh-info-local-briefs"] = nh_info_local_briefs;
}
return _children;
}
void Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::set_value(const std::string & value_path, const std::string & value, const std::string & name_space, const std::string & name_space_prefix)
{
}
void Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::set_filter(const std::string & value_path, YFilter yfilter)
{
}
bool Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::has_leaf_or_child_of_name(const std::string & name) const
{
if(name == "nh-info-special-brief" || name == "nh-info-remote-briefs" || name == "nh-info-local-briefs")
return true;
return false;
}
Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialBrief()
:
nh_info_special_discard_brief(std::make_shared<Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialDiscardBrief>())
, nh_info_special_null_brief(std::make_shared<Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialNullBrief>())
, nh_info_special_punt_brief(std::make_shared<Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialPuntBrief>())
, nh_info_special_drop_brief(std::make_shared<Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialDropBrief>())
{
nh_info_special_discard_brief->parent = this;
nh_info_special_null_brief->parent = this;
nh_info_special_punt_brief->parent = this;
nh_info_special_drop_brief->parent = this;
yang_name = "nh-info-special-brief"; yang_parent_name = "nh-info-brief"; is_top_level_class = false; has_list_ancestor = true;
}
Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::~NhInfoSpecialBrief()
{
}
bool Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::has_data() const
{
if (is_presence_container) return true;
return (nh_info_special_discard_brief != nullptr && nh_info_special_discard_brief->has_data())
|| (nh_info_special_null_brief != nullptr && nh_info_special_null_brief->has_data())
|| (nh_info_special_punt_brief != nullptr && nh_info_special_punt_brief->has_data())
|| (nh_info_special_drop_brief != nullptr && nh_info_special_drop_brief->has_data());
}
bool Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::has_operation() const
{
return is_set(yfilter)
|| (nh_info_special_discard_brief != nullptr && nh_info_special_discard_brief->has_operation())
|| (nh_info_special_null_brief != nullptr && nh_info_special_null_brief->has_operation())
|| (nh_info_special_punt_brief != nullptr && nh_info_special_punt_brief->has_operation())
|| (nh_info_special_drop_brief != nullptr && nh_info_special_drop_brief->has_operation());
}
std::string Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::get_segment_path() const
{
std::ostringstream path_buffer;
path_buffer << "nh-info-special-brief";
return path_buffer.str();
}
std::vector<std::pair<std::string, LeafData> > Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::get_name_leaf_data() const
{
std::vector<std::pair<std::string, LeafData> > leaf_name_data {};
return leaf_name_data;
}
std::shared_ptr<ydk::Entity> Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::get_child_by_name(const std::string & child_yang_name, const std::string & segment_path)
{
if(child_yang_name == "nh-info-special-discard-brief")
{
if(nh_info_special_discard_brief == nullptr)
{
nh_info_special_discard_brief = std::make_shared<Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialDiscardBrief>();
}
return nh_info_special_discard_brief;
}
if(child_yang_name == "nh-info-special-null-brief")
{
if(nh_info_special_null_brief == nullptr)
{
nh_info_special_null_brief = std::make_shared<Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialNullBrief>();
}
return nh_info_special_null_brief;
}
if(child_yang_name == "nh-info-special-punt-brief")
{
if(nh_info_special_punt_brief == nullptr)
{
nh_info_special_punt_brief = std::make_shared<Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialPuntBrief>();
}
return nh_info_special_punt_brief;
}
if(child_yang_name == "nh-info-special-drop-brief")
{
if(nh_info_special_drop_brief == nullptr)
{
nh_info_special_drop_brief = std::make_shared<Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialDropBrief>();
}
return nh_info_special_drop_brief;
}
return nullptr;
}
std::map<std::string, std::shared_ptr<ydk::Entity>> Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::get_children() const
{
std::map<std::string, std::shared_ptr<ydk::Entity>> _children{};
char count_=0;
if(nh_info_special_discard_brief != nullptr)
{
_children["nh-info-special-discard-brief"] = nh_info_special_discard_brief;
}
if(nh_info_special_null_brief != nullptr)
{
_children["nh-info-special-null-brief"] = nh_info_special_null_brief;
}
if(nh_info_special_punt_brief != nullptr)
{
_children["nh-info-special-punt-brief"] = nh_info_special_punt_brief;
}
if(nh_info_special_drop_brief != nullptr)
{
_children["nh-info-special-drop-brief"] = nh_info_special_drop_brief;
}
return _children;
}
void Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::set_value(const std::string & value_path, const std::string & value, const std::string & name_space, const std::string & name_space_prefix)
{
}
void Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::set_filter(const std::string & value_path, YFilter yfilter)
{
}
bool Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::has_leaf_or_child_of_name(const std::string & name) const
{
if(name == "nh-info-special-discard-brief" || name == "nh-info-special-null-brief" || name == "nh-info-special-punt-brief" || name == "nh-info-special-drop-brief")
return true;
return false;
}
Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialDiscardBrief::NhInfoSpecialDiscardBrief()
:
si_link_proto{YType::uint32, "si-link-proto"},
si_nhinfo{YType::uint32, "si-nhinfo"},
si_nhtype{YType::uint32, "si-nhtype"},
si_ifh{YType::uint32, "si-ifh"},
si_pfi_interface_type{YType::uint32, "si-pfi-interface-type"},
si_adj_ptr{YType::uint32, "si-adj-ptr"},
si_adj_present{YType::boolean, "si-adj-present"},
si_special_type{YType::uint32, "si-special-type"},
si_refcount{YType::uint32, "si-refcount"},
si_flags{YType::uint32, "si-flags"},
si_adj_if{YType::uint32, "si-adj-if"},
si_ext_pfx{YType::str, "si-ext-pfx"},
si_ext_pfx_len{YType::uint32, "si-ext-pfx-len"},
si_ext_pfx_proto{YType::uint32, "si-ext-pfx-proto"},
si_adj_address{YType::str, "si-adj-address"},
si_adj_addrlen{YType::uint32, "si-adj-addrlen"},
si_adj_addr_proto{YType::uint32, "si-adj-addr-proto"},
si_adj_rw_len{YType::uint32, "si-adj-rw-len"},
si_adj_rw{YType::str, "si-adj-rw"},
si_dep_nhinfo_type{YType::uint32, "si-dep-nhinfo-type"},
si_dep_nhinfo{YType::uint32, "si-dep-nhinfo"},
si_dep_nhinfo_ifh{YType::uint32, "si-dep-nhinfo-ifh"},
si_bkup_frr{YType::uint32, "si-bkup-frr"},
si_protect_frr{YType::uint32, "si-protect-frr"},
si_bkup_nhinfo{YType::uint32, "si-bkup-nhinfo"},
si_bkup_ifh{YType::uint32, "si-bkup-ifh"},
si_bkup_addr{YType::str, "si-bkup-addr"},
si_bkup_addrlen{YType::uint32, "si-bkup-addrlen"},
si_bkup_addr_proto{YType::uint32, "si-bkup-addr-proto"},
si_frr_active{YType::boolean, "si-frr-active"},
si_attr_is_ext_mgd{YType::boolean, "si-attr-is-ext-mgd"},
si_attr_is_incomp{YType::boolean, "si-attr-is-incomp"},
si_attr_is_tunnel{YType::boolean, "si-attr-is-tunnel"},
si_attr_is_tunnel_srte{YType::boolean, "si-attr-is-tunnel-srte"},
si_attr_is_gre_tunnel{YType::boolean, "si-attr-is-gre-tunnel"},
si_gre_ti{YType::uint32, "si-gre-ti"},
si_gre_ti_flags{YType::uint32, "si-gre-ti-flags"},
si_gre_ti_refcnt{YType::uint32, "si-gre-ti-refcnt"},
si_gre_tos_propagate{YType::boolean, "si-gre-tos-propagate"},
si_hardware{YType::str, "si-hardware"},
si_nhinfo_ptr{YType::uint32, "si-nhinfo-ptr"},
si_fnb_idb_ptr{YType::uint32, "si-fnb-idb-ptr"},
si_anc_ifh{YType::uint32, "si-anc-ifh"},
si_gre_ti_resolving_leafp{YType::uint32, "si-gre-ti-resolving-leafp"},
si_gre_dest_addr{YType::str, "si-gre-dest-addr"},
si_nhid{YType::uint32, "si-nhid"},
si_upd_ts{YType::uint64, "si-upd-ts"}
,
si_pwhe(std::make_shared<Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialDiscardBrief::SiPwhe>())
, nh_info_extension(std::make_shared<Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialDiscardBrief::NhInfoExtension>())
{
si_pwhe->parent = this;
nh_info_extension->parent = this;
yang_name = "nh-info-special-discard-brief"; yang_parent_name = "nh-info-special-brief"; is_top_level_class = false; has_list_ancestor = true;
}
Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialDiscardBrief::~NhInfoSpecialDiscardBrief()
{
}
bool Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialDiscardBrief::has_data() const
{
if (is_presence_container) return true;
return si_link_proto.is_set
|| si_nhinfo.is_set
|| si_nhtype.is_set
|| si_ifh.is_set
|| si_pfi_interface_type.is_set
|| si_adj_ptr.is_set
|| si_adj_present.is_set
|| si_special_type.is_set
|| si_refcount.is_set
|| si_flags.is_set
|| si_adj_if.is_set
|| si_ext_pfx.is_set
|| si_ext_pfx_len.is_set
|| si_ext_pfx_proto.is_set
|| si_adj_address.is_set
|| si_adj_addrlen.is_set
|| si_adj_addr_proto.is_set
|| si_adj_rw_len.is_set
|| si_adj_rw.is_set
|| si_dep_nhinfo_type.is_set
|| si_dep_nhinfo.is_set
|| si_dep_nhinfo_ifh.is_set
|| si_bkup_frr.is_set
|| si_protect_frr.is_set
|| si_bkup_nhinfo.is_set
|| si_bkup_ifh.is_set
|| si_bkup_addr.is_set
|| si_bkup_addrlen.is_set
|| si_bkup_addr_proto.is_set
|| si_frr_active.is_set
|| si_attr_is_ext_mgd.is_set
|| si_attr_is_incomp.is_set
|| si_attr_is_tunnel.is_set
|| si_attr_is_tunnel_srte.is_set
|| si_attr_is_gre_tunnel.is_set
|| si_gre_ti.is_set
|| si_gre_ti_flags.is_set
|| si_gre_ti_refcnt.is_set
|| si_gre_tos_propagate.is_set
|| si_hardware.is_set
|| si_nhinfo_ptr.is_set
|| si_fnb_idb_ptr.is_set
|| si_anc_ifh.is_set
|| si_gre_ti_resolving_leafp.is_set
|| si_gre_dest_addr.is_set
|| si_nhid.is_set
|| si_upd_ts.is_set
|| (si_pwhe != nullptr && si_pwhe->has_data())
|| (nh_info_extension != nullptr && nh_info_extension->has_data());
}
bool Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialDiscardBrief::has_operation() const
{
return is_set(yfilter)
|| ydk::is_set(si_link_proto.yfilter)
|| ydk::is_set(si_nhinfo.yfilter)
|| ydk::is_set(si_nhtype.yfilter)
|| ydk::is_set(si_ifh.yfilter)
|| ydk::is_set(si_pfi_interface_type.yfilter)
|| ydk::is_set(si_adj_ptr.yfilter)
|| ydk::is_set(si_adj_present.yfilter)
|| ydk::is_set(si_special_type.yfilter)
|| ydk::is_set(si_refcount.yfilter)
|| ydk::is_set(si_flags.yfilter)
|| ydk::is_set(si_adj_if.yfilter)
|| ydk::is_set(si_ext_pfx.yfilter)
|| ydk::is_set(si_ext_pfx_len.yfilter)
|| ydk::is_set(si_ext_pfx_proto.yfilter)
|| ydk::is_set(si_adj_address.yfilter)
|| ydk::is_set(si_adj_addrlen.yfilter)
|| ydk::is_set(si_adj_addr_proto.yfilter)
|| ydk::is_set(si_adj_rw_len.yfilter)
|| ydk::is_set(si_adj_rw.yfilter)
|| ydk::is_set(si_dep_nhinfo_type.yfilter)
|| ydk::is_set(si_dep_nhinfo.yfilter)
|| ydk::is_set(si_dep_nhinfo_ifh.yfilter)
|| ydk::is_set(si_bkup_frr.yfilter)
|| ydk::is_set(si_protect_frr.yfilter)
|| ydk::is_set(si_bkup_nhinfo.yfilter)
|| ydk::is_set(si_bkup_ifh.yfilter)
|| ydk::is_set(si_bkup_addr.yfilter)
|| ydk::is_set(si_bkup_addrlen.yfilter)
|| ydk::is_set(si_bkup_addr_proto.yfilter)
|| ydk::is_set(si_frr_active.yfilter)
|| ydk::is_set(si_attr_is_ext_mgd.yfilter)
|| ydk::is_set(si_attr_is_incomp.yfilter)
|| ydk::is_set(si_attr_is_tunnel.yfilter)
|| ydk::is_set(si_attr_is_tunnel_srte.yfilter)
|| ydk::is_set(si_attr_is_gre_tunnel.yfilter)
|| ydk::is_set(si_gre_ti.yfilter)
|| ydk::is_set(si_gre_ti_flags.yfilter)
|| ydk::is_set(si_gre_ti_refcnt.yfilter)
|| ydk::is_set(si_gre_tos_propagate.yfilter)
|| ydk::is_set(si_hardware.yfilter)
|| ydk::is_set(si_nhinfo_ptr.yfilter)
|| ydk::is_set(si_fnb_idb_ptr.yfilter)
|| ydk::is_set(si_anc_ifh.yfilter)
|| ydk::is_set(si_gre_ti_resolving_leafp.yfilter)
|| ydk::is_set(si_gre_dest_addr.yfilter)
|| ydk::is_set(si_nhid.yfilter)
|| ydk::is_set(si_upd_ts.yfilter)
|| (si_pwhe != nullptr && si_pwhe->has_operation())
|| (nh_info_extension != nullptr && nh_info_extension->has_operation());
}
std::string Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialDiscardBrief::get_segment_path() const
{
std::ostringstream path_buffer;
path_buffer << "nh-info-special-discard-brief";
return path_buffer.str();
}
std::vector<std::pair<std::string, LeafData> > Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialDiscardBrief::get_name_leaf_data() const
{
std::vector<std::pair<std::string, LeafData> > leaf_name_data {};
if (si_link_proto.is_set || is_set(si_link_proto.yfilter)) leaf_name_data.push_back(si_link_proto.get_name_leafdata());
if (si_nhinfo.is_set || is_set(si_nhinfo.yfilter)) leaf_name_data.push_back(si_nhinfo.get_name_leafdata());
if (si_nhtype.is_set || is_set(si_nhtype.yfilter)) leaf_name_data.push_back(si_nhtype.get_name_leafdata());
if (si_ifh.is_set || is_set(si_ifh.yfilter)) leaf_name_data.push_back(si_ifh.get_name_leafdata());
if (si_pfi_interface_type.is_set || is_set(si_pfi_interface_type.yfilter)) leaf_name_data.push_back(si_pfi_interface_type.get_name_leafdata());
if (si_adj_ptr.is_set || is_set(si_adj_ptr.yfilter)) leaf_name_data.push_back(si_adj_ptr.get_name_leafdata());
if (si_adj_present.is_set || is_set(si_adj_present.yfilter)) leaf_name_data.push_back(si_adj_present.get_name_leafdata());
if (si_special_type.is_set || is_set(si_special_type.yfilter)) leaf_name_data.push_back(si_special_type.get_name_leafdata());
if (si_refcount.is_set || is_set(si_refcount.yfilter)) leaf_name_data.push_back(si_refcount.get_name_leafdata());
if (si_flags.is_set || is_set(si_flags.yfilter)) leaf_name_data.push_back(si_flags.get_name_leafdata());
if (si_adj_if.is_set || is_set(si_adj_if.yfilter)) leaf_name_data.push_back(si_adj_if.get_name_leafdata());
if (si_ext_pfx.is_set || is_set(si_ext_pfx.yfilter)) leaf_name_data.push_back(si_ext_pfx.get_name_leafdata());
if (si_ext_pfx_len.is_set || is_set(si_ext_pfx_len.yfilter)) leaf_name_data.push_back(si_ext_pfx_len.get_name_leafdata());
if (si_ext_pfx_proto.is_set || is_set(si_ext_pfx_proto.yfilter)) leaf_name_data.push_back(si_ext_pfx_proto.get_name_leafdata());
if (si_adj_address.is_set || is_set(si_adj_address.yfilter)) leaf_name_data.push_back(si_adj_address.get_name_leafdata());
if (si_adj_addrlen.is_set || is_set(si_adj_addrlen.yfilter)) leaf_name_data.push_back(si_adj_addrlen.get_name_leafdata());
if (si_adj_addr_proto.is_set || is_set(si_adj_addr_proto.yfilter)) leaf_name_data.push_back(si_adj_addr_proto.get_name_leafdata());
if (si_adj_rw_len.is_set || is_set(si_adj_rw_len.yfilter)) leaf_name_data.push_back(si_adj_rw_len.get_name_leafdata());
if (si_adj_rw.is_set || is_set(si_adj_rw.yfilter)) leaf_name_data.push_back(si_adj_rw.get_name_leafdata());
if (si_dep_nhinfo_type.is_set || is_set(si_dep_nhinfo_type.yfilter)) leaf_name_data.push_back(si_dep_nhinfo_type.get_name_leafdata());
if (si_dep_nhinfo.is_set || is_set(si_dep_nhinfo.yfilter)) leaf_name_data.push_back(si_dep_nhinfo.get_name_leafdata());
if (si_dep_nhinfo_ifh.is_set || is_set(si_dep_nhinfo_ifh.yfilter)) leaf_name_data.push_back(si_dep_nhinfo_ifh.get_name_leafdata());
if (si_bkup_frr.is_set || is_set(si_bkup_frr.yfilter)) leaf_name_data.push_back(si_bkup_frr.get_name_leafdata());
if (si_protect_frr.is_set || is_set(si_protect_frr.yfilter)) leaf_name_data.push_back(si_protect_frr.get_name_leafdata());
if (si_bkup_nhinfo.is_set || is_set(si_bkup_nhinfo.yfilter)) leaf_name_data.push_back(si_bkup_nhinfo.get_name_leafdata());
if (si_bkup_ifh.is_set || is_set(si_bkup_ifh.yfilter)) leaf_name_data.push_back(si_bkup_ifh.get_name_leafdata());
if (si_bkup_addr.is_set || is_set(si_bkup_addr.yfilter)) leaf_name_data.push_back(si_bkup_addr.get_name_leafdata());
if (si_bkup_addrlen.is_set || is_set(si_bkup_addrlen.yfilter)) leaf_name_data.push_back(si_bkup_addrlen.get_name_leafdata());
if (si_bkup_addr_proto.is_set || is_set(si_bkup_addr_proto.yfilter)) leaf_name_data.push_back(si_bkup_addr_proto.get_name_leafdata());
if (si_frr_active.is_set || is_set(si_frr_active.yfilter)) leaf_name_data.push_back(si_frr_active.get_name_leafdata());
if (si_attr_is_ext_mgd.is_set || is_set(si_attr_is_ext_mgd.yfilter)) leaf_name_data.push_back(si_attr_is_ext_mgd.get_name_leafdata());
if (si_attr_is_incomp.is_set || is_set(si_attr_is_incomp.yfilter)) leaf_name_data.push_back(si_attr_is_incomp.get_name_leafdata());
if (si_attr_is_tunnel.is_set || is_set(si_attr_is_tunnel.yfilter)) leaf_name_data.push_back(si_attr_is_tunnel.get_name_leafdata());
if (si_attr_is_tunnel_srte.is_set || is_set(si_attr_is_tunnel_srte.yfilter)) leaf_name_data.push_back(si_attr_is_tunnel_srte.get_name_leafdata());
if (si_attr_is_gre_tunnel.is_set || is_set(si_attr_is_gre_tunnel.yfilter)) leaf_name_data.push_back(si_attr_is_gre_tunnel.get_name_leafdata());
if (si_gre_ti.is_set || is_set(si_gre_ti.yfilter)) leaf_name_data.push_back(si_gre_ti.get_name_leafdata());
if (si_gre_ti_flags.is_set || is_set(si_gre_ti_flags.yfilter)) leaf_name_data.push_back(si_gre_ti_flags.get_name_leafdata());
if (si_gre_ti_refcnt.is_set || is_set(si_gre_ti_refcnt.yfilter)) leaf_name_data.push_back(si_gre_ti_refcnt.get_name_leafdata());
if (si_gre_tos_propagate.is_set || is_set(si_gre_tos_propagate.yfilter)) leaf_name_data.push_back(si_gre_tos_propagate.get_name_leafdata());
if (si_hardware.is_set || is_set(si_hardware.yfilter)) leaf_name_data.push_back(si_hardware.get_name_leafdata());
if (si_nhinfo_ptr.is_set || is_set(si_nhinfo_ptr.yfilter)) leaf_name_data.push_back(si_nhinfo_ptr.get_name_leafdata());
if (si_fnb_idb_ptr.is_set || is_set(si_fnb_idb_ptr.yfilter)) leaf_name_data.push_back(si_fnb_idb_ptr.get_name_leafdata());
if (si_anc_ifh.is_set || is_set(si_anc_ifh.yfilter)) leaf_name_data.push_back(si_anc_ifh.get_name_leafdata());
if (si_gre_ti_resolving_leafp.is_set || is_set(si_gre_ti_resolving_leafp.yfilter)) leaf_name_data.push_back(si_gre_ti_resolving_leafp.get_name_leafdata());
if (si_gre_dest_addr.is_set || is_set(si_gre_dest_addr.yfilter)) leaf_name_data.push_back(si_gre_dest_addr.get_name_leafdata());
if (si_nhid.is_set || is_set(si_nhid.yfilter)) leaf_name_data.push_back(si_nhid.get_name_leafdata());
if (si_upd_ts.is_set || is_set(si_upd_ts.yfilter)) leaf_name_data.push_back(si_upd_ts.get_name_leafdata());
return leaf_name_data;
}
std::shared_ptr<ydk::Entity> Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialDiscardBrief::get_child_by_name(const std::string & child_yang_name, const std::string & segment_path)
{
if(child_yang_name == "si-pwhe")
{
if(si_pwhe == nullptr)
{
si_pwhe = std::make_shared<Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialDiscardBrief::SiPwhe>();
}
return si_pwhe;
}
if(child_yang_name == "nh-info-extension")
{
if(nh_info_extension == nullptr)
{
nh_info_extension = std::make_shared<Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialDiscardBrief::NhInfoExtension>();
}
return nh_info_extension;
}
return nullptr;
}
std::map<std::string, std::shared_ptr<ydk::Entity>> Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialDiscardBrief::get_children() const
{
std::map<std::string, std::shared_ptr<ydk::Entity>> _children{};
char count_=0;
if(si_pwhe != nullptr)
{
_children["si-pwhe"] = si_pwhe;
}
if(nh_info_extension != nullptr)
{
_children["nh-info-extension"] = nh_info_extension;
}
return _children;
}
void Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialDiscardBrief::set_value(const std::string & value_path, const std::string & value, const std::string & name_space, const std::string & name_space_prefix)
{
if(value_path == "si-link-proto")
{
si_link_proto = value;
si_link_proto.value_namespace = name_space;
si_link_proto.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-nhinfo")
{
si_nhinfo = value;
si_nhinfo.value_namespace = name_space;
si_nhinfo.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-nhtype")
{
si_nhtype = value;
si_nhtype.value_namespace = name_space;
si_nhtype.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-ifh")
{
si_ifh = value;
si_ifh.value_namespace = name_space;
si_ifh.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-pfi-interface-type")
{
si_pfi_interface_type = value;
si_pfi_interface_type.value_namespace = name_space;
si_pfi_interface_type.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-adj-ptr")
{
si_adj_ptr = value;
si_adj_ptr.value_namespace = name_space;
si_adj_ptr.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-adj-present")
{
si_adj_present = value;
si_adj_present.value_namespace = name_space;
si_adj_present.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-special-type")
{
si_special_type = value;
si_special_type.value_namespace = name_space;
si_special_type.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-refcount")
{
si_refcount = value;
si_refcount.value_namespace = name_space;
si_refcount.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-flags")
{
si_flags = value;
si_flags.value_namespace = name_space;
si_flags.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-adj-if")
{
si_adj_if = value;
si_adj_if.value_namespace = name_space;
si_adj_if.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-ext-pfx")
{
si_ext_pfx = value;
si_ext_pfx.value_namespace = name_space;
si_ext_pfx.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-ext-pfx-len")
{
si_ext_pfx_len = value;
si_ext_pfx_len.value_namespace = name_space;
si_ext_pfx_len.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-ext-pfx-proto")
{
si_ext_pfx_proto = value;
si_ext_pfx_proto.value_namespace = name_space;
si_ext_pfx_proto.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-adj-address")
{
si_adj_address = value;
si_adj_address.value_namespace = name_space;
si_adj_address.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-adj-addrlen")
{
si_adj_addrlen = value;
si_adj_addrlen.value_namespace = name_space;
si_adj_addrlen.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-adj-addr-proto")
{
si_adj_addr_proto = value;
si_adj_addr_proto.value_namespace = name_space;
si_adj_addr_proto.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-adj-rw-len")
{
si_adj_rw_len = value;
si_adj_rw_len.value_namespace = name_space;
si_adj_rw_len.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-adj-rw")
{
si_adj_rw = value;
si_adj_rw.value_namespace = name_space;
si_adj_rw.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-dep-nhinfo-type")
{
si_dep_nhinfo_type = value;
si_dep_nhinfo_type.value_namespace = name_space;
si_dep_nhinfo_type.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-dep-nhinfo")
{
si_dep_nhinfo = value;
si_dep_nhinfo.value_namespace = name_space;
si_dep_nhinfo.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-dep-nhinfo-ifh")
{
si_dep_nhinfo_ifh = value;
si_dep_nhinfo_ifh.value_namespace = name_space;
si_dep_nhinfo_ifh.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-bkup-frr")
{
si_bkup_frr = value;
si_bkup_frr.value_namespace = name_space;
si_bkup_frr.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-protect-frr")
{
si_protect_frr = value;
si_protect_frr.value_namespace = name_space;
si_protect_frr.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-bkup-nhinfo")
{
si_bkup_nhinfo = value;
si_bkup_nhinfo.value_namespace = name_space;
si_bkup_nhinfo.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-bkup-ifh")
{
si_bkup_ifh = value;
si_bkup_ifh.value_namespace = name_space;
si_bkup_ifh.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-bkup-addr")
{
si_bkup_addr = value;
si_bkup_addr.value_namespace = name_space;
si_bkup_addr.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-bkup-addrlen")
{
si_bkup_addrlen = value;
si_bkup_addrlen.value_namespace = name_space;
si_bkup_addrlen.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-bkup-addr-proto")
{
si_bkup_addr_proto = value;
si_bkup_addr_proto.value_namespace = name_space;
si_bkup_addr_proto.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-frr-active")
{
si_frr_active = value;
si_frr_active.value_namespace = name_space;
si_frr_active.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-attr-is-ext-mgd")
{
si_attr_is_ext_mgd = value;
si_attr_is_ext_mgd.value_namespace = name_space;
si_attr_is_ext_mgd.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-attr-is-incomp")
{
si_attr_is_incomp = value;
si_attr_is_incomp.value_namespace = name_space;
si_attr_is_incomp.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-attr-is-tunnel")
{
si_attr_is_tunnel = value;
si_attr_is_tunnel.value_namespace = name_space;
si_attr_is_tunnel.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-attr-is-tunnel-srte")
{
si_attr_is_tunnel_srte = value;
si_attr_is_tunnel_srte.value_namespace = name_space;
si_attr_is_tunnel_srte.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-attr-is-gre-tunnel")
{
si_attr_is_gre_tunnel = value;
si_attr_is_gre_tunnel.value_namespace = name_space;
si_attr_is_gre_tunnel.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-gre-ti")
{
si_gre_ti = value;
si_gre_ti.value_namespace = name_space;
si_gre_ti.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-gre-ti-flags")
{
si_gre_ti_flags = value;
si_gre_ti_flags.value_namespace = name_space;
si_gre_ti_flags.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-gre-ti-refcnt")
{
si_gre_ti_refcnt = value;
si_gre_ti_refcnt.value_namespace = name_space;
si_gre_ti_refcnt.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-gre-tos-propagate")
{
si_gre_tos_propagate = value;
si_gre_tos_propagate.value_namespace = name_space;
si_gre_tos_propagate.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-hardware")
{
si_hardware = value;
si_hardware.value_namespace = name_space;
si_hardware.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-nhinfo-ptr")
{
si_nhinfo_ptr = value;
si_nhinfo_ptr.value_namespace = name_space;
si_nhinfo_ptr.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-fnb-idb-ptr")
{
si_fnb_idb_ptr = value;
si_fnb_idb_ptr.value_namespace = name_space;
si_fnb_idb_ptr.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-anc-ifh")
{
si_anc_ifh = value;
si_anc_ifh.value_namespace = name_space;
si_anc_ifh.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-gre-ti-resolving-leafp")
{
si_gre_ti_resolving_leafp = value;
si_gre_ti_resolving_leafp.value_namespace = name_space;
si_gre_ti_resolving_leafp.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-gre-dest-addr")
{
si_gre_dest_addr = value;
si_gre_dest_addr.value_namespace = name_space;
si_gre_dest_addr.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-nhid")
{
si_nhid = value;
si_nhid.value_namespace = name_space;
si_nhid.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-upd-ts")
{
si_upd_ts = value;
si_upd_ts.value_namespace = name_space;
si_upd_ts.value_namespace_prefix = name_space_prefix;
}
}
void Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialDiscardBrief::set_filter(const std::string & value_path, YFilter yfilter)
{
if(value_path == "si-link-proto")
{
si_link_proto.yfilter = yfilter;
}
if(value_path == "si-nhinfo")
{
si_nhinfo.yfilter = yfilter;
}
if(value_path == "si-nhtype")
{
si_nhtype.yfilter = yfilter;
}
if(value_path == "si-ifh")
{
si_ifh.yfilter = yfilter;
}
if(value_path == "si-pfi-interface-type")
{
si_pfi_interface_type.yfilter = yfilter;
}
if(value_path == "si-adj-ptr")
{
si_adj_ptr.yfilter = yfilter;
}
if(value_path == "si-adj-present")
{
si_adj_present.yfilter = yfilter;
}
if(value_path == "si-special-type")
{
si_special_type.yfilter = yfilter;
}
if(value_path == "si-refcount")
{
si_refcount.yfilter = yfilter;
}
if(value_path == "si-flags")
{
si_flags.yfilter = yfilter;
}
if(value_path == "si-adj-if")
{
si_adj_if.yfilter = yfilter;
}
if(value_path == "si-ext-pfx")
{
si_ext_pfx.yfilter = yfilter;
}
if(value_path == "si-ext-pfx-len")
{
si_ext_pfx_len.yfilter = yfilter;
}
if(value_path == "si-ext-pfx-proto")
{
si_ext_pfx_proto.yfilter = yfilter;
}
if(value_path == "si-adj-address")
{
si_adj_address.yfilter = yfilter;
}
if(value_path == "si-adj-addrlen")
{
si_adj_addrlen.yfilter = yfilter;
}
if(value_path == "si-adj-addr-proto")
{
si_adj_addr_proto.yfilter = yfilter;
}
if(value_path == "si-adj-rw-len")
{
si_adj_rw_len.yfilter = yfilter;
}
if(value_path == "si-adj-rw")
{
si_adj_rw.yfilter = yfilter;
}
if(value_path == "si-dep-nhinfo-type")
{
si_dep_nhinfo_type.yfilter = yfilter;
}
if(value_path == "si-dep-nhinfo")
{
si_dep_nhinfo.yfilter = yfilter;
}
if(value_path == "si-dep-nhinfo-ifh")
{
si_dep_nhinfo_ifh.yfilter = yfilter;
}
if(value_path == "si-bkup-frr")
{
si_bkup_frr.yfilter = yfilter;
}
if(value_path == "si-protect-frr")
{
si_protect_frr.yfilter = yfilter;
}
if(value_path == "si-bkup-nhinfo")
{
si_bkup_nhinfo.yfilter = yfilter;
}
if(value_path == "si-bkup-ifh")
{
si_bkup_ifh.yfilter = yfilter;
}
if(value_path == "si-bkup-addr")
{
si_bkup_addr.yfilter = yfilter;
}
if(value_path == "si-bkup-addrlen")
{
si_bkup_addrlen.yfilter = yfilter;
}
if(value_path == "si-bkup-addr-proto")
{
si_bkup_addr_proto.yfilter = yfilter;
}
if(value_path == "si-frr-active")
{
si_frr_active.yfilter = yfilter;
}
if(value_path == "si-attr-is-ext-mgd")
{
si_attr_is_ext_mgd.yfilter = yfilter;
}
if(value_path == "si-attr-is-incomp")
{
si_attr_is_incomp.yfilter = yfilter;
}
if(value_path == "si-attr-is-tunnel")
{
si_attr_is_tunnel.yfilter = yfilter;
}
if(value_path == "si-attr-is-tunnel-srte")
{
si_attr_is_tunnel_srte.yfilter = yfilter;
}
if(value_path == "si-attr-is-gre-tunnel")
{
si_attr_is_gre_tunnel.yfilter = yfilter;
}
if(value_path == "si-gre-ti")
{
si_gre_ti.yfilter = yfilter;
}
if(value_path == "si-gre-ti-flags")
{
si_gre_ti_flags.yfilter = yfilter;
}
if(value_path == "si-gre-ti-refcnt")
{
si_gre_ti_refcnt.yfilter = yfilter;
}
if(value_path == "si-gre-tos-propagate")
{
si_gre_tos_propagate.yfilter = yfilter;
}
if(value_path == "si-hardware")
{
si_hardware.yfilter = yfilter;
}
if(value_path == "si-nhinfo-ptr")
{
si_nhinfo_ptr.yfilter = yfilter;
}
if(value_path == "si-fnb-idb-ptr")
{
si_fnb_idb_ptr.yfilter = yfilter;
}
if(value_path == "si-anc-ifh")
{
si_anc_ifh.yfilter = yfilter;
}
if(value_path == "si-gre-ti-resolving-leafp")
{
si_gre_ti_resolving_leafp.yfilter = yfilter;
}
if(value_path == "si-gre-dest-addr")
{
si_gre_dest_addr.yfilter = yfilter;
}
if(value_path == "si-nhid")
{
si_nhid.yfilter = yfilter;
}
if(value_path == "si-upd-ts")
{
si_upd_ts.yfilter = yfilter;
}
}
bool Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialDiscardBrief::has_leaf_or_child_of_name(const std::string & name) const
{
if(name == "si-pwhe" || name == "nh-info-extension" || name == "si-link-proto" || name == "si-nhinfo" || name == "si-nhtype" || name == "si-ifh" || name == "si-pfi-interface-type" || name == "si-adj-ptr" || name == "si-adj-present" || name == "si-special-type" || name == "si-refcount" || name == "si-flags" || name == "si-adj-if" || name == "si-ext-pfx" || name == "si-ext-pfx-len" || name == "si-ext-pfx-proto" || name == "si-adj-address" || name == "si-adj-addrlen" || name == "si-adj-addr-proto" || name == "si-adj-rw-len" || name == "si-adj-rw" || name == "si-dep-nhinfo-type" || name == "si-dep-nhinfo" || name == "si-dep-nhinfo-ifh" || name == "si-bkup-frr" || name == "si-protect-frr" || name == "si-bkup-nhinfo" || name == "si-bkup-ifh" || name == "si-bkup-addr" || name == "si-bkup-addrlen" || name == "si-bkup-addr-proto" || name == "si-frr-active" || name == "si-attr-is-ext-mgd" || name == "si-attr-is-incomp" || name == "si-attr-is-tunnel" || name == "si-attr-is-tunnel-srte" || name == "si-attr-is-gre-tunnel" || name == "si-gre-ti" || name == "si-gre-ti-flags" || name == "si-gre-ti-refcnt" || name == "si-gre-tos-propagate" || name == "si-hardware" || name == "si-nhinfo-ptr" || name == "si-fnb-idb-ptr" || name == "si-anc-ifh" || name == "si-gre-ti-resolving-leafp" || name == "si-gre-dest-addr" || name == "si-nhid" || name == "si-upd-ts")
return true;
return false;
}
Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialDiscardBrief::SiPwhe::SiPwhe()
:
pwhe_adjacency_client_data{YType::uint32, "pwhe-adjacency-client-data"},
vctype{YType::uint32, "vctype"},
vc_internal_label{YType::uint32, "vc-internal-label"},
cw_enabled{YType::boolean, "cw-enabled"},
l2_overhead_bytes{YType::uint16, "l2-overhead-bytes"},
dot1q_vlan_tag{YType::uint32, "dot1q-vlan-tag"}
{
yang_name = "si-pwhe"; yang_parent_name = "nh-info-special-discard-brief"; is_top_level_class = false; has_list_ancestor = true;
}
Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialDiscardBrief::SiPwhe::~SiPwhe()
{
}
bool Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialDiscardBrief::SiPwhe::has_data() const
{
if (is_presence_container) return true;
return pwhe_adjacency_client_data.is_set
|| vctype.is_set
|| vc_internal_label.is_set
|| cw_enabled.is_set
|| l2_overhead_bytes.is_set
|| dot1q_vlan_tag.is_set;
}
bool Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialDiscardBrief::SiPwhe::has_operation() const
{
return is_set(yfilter)
|| ydk::is_set(pwhe_adjacency_client_data.yfilter)
|| ydk::is_set(vctype.yfilter)
|| ydk::is_set(vc_internal_label.yfilter)
|| ydk::is_set(cw_enabled.yfilter)
|| ydk::is_set(l2_overhead_bytes.yfilter)
|| ydk::is_set(dot1q_vlan_tag.yfilter);
}
std::string Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialDiscardBrief::SiPwhe::get_segment_path() const
{
std::ostringstream path_buffer;
path_buffer << "si-pwhe";
return path_buffer.str();
}
std::vector<std::pair<std::string, LeafData> > Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialDiscardBrief::SiPwhe::get_name_leaf_data() const
{
std::vector<std::pair<std::string, LeafData> > leaf_name_data {};
if (pwhe_adjacency_client_data.is_set || is_set(pwhe_adjacency_client_data.yfilter)) leaf_name_data.push_back(pwhe_adjacency_client_data.get_name_leafdata());
if (vctype.is_set || is_set(vctype.yfilter)) leaf_name_data.push_back(vctype.get_name_leafdata());
if (vc_internal_label.is_set || is_set(vc_internal_label.yfilter)) leaf_name_data.push_back(vc_internal_label.get_name_leafdata());
if (cw_enabled.is_set || is_set(cw_enabled.yfilter)) leaf_name_data.push_back(cw_enabled.get_name_leafdata());
if (l2_overhead_bytes.is_set || is_set(l2_overhead_bytes.yfilter)) leaf_name_data.push_back(l2_overhead_bytes.get_name_leafdata());
if (dot1q_vlan_tag.is_set || is_set(dot1q_vlan_tag.yfilter)) leaf_name_data.push_back(dot1q_vlan_tag.get_name_leafdata());
return leaf_name_data;
}
std::shared_ptr<ydk::Entity> Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialDiscardBrief::SiPwhe::get_child_by_name(const std::string & child_yang_name, const std::string & segment_path)
{
return nullptr;
}
std::map<std::string, std::shared_ptr<ydk::Entity>> Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialDiscardBrief::SiPwhe::get_children() const
{
std::map<std::string, std::shared_ptr<ydk::Entity>> _children{};
char count_=0;
return _children;
}
void Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialDiscardBrief::SiPwhe::set_value(const std::string & value_path, const std::string & value, const std::string & name_space, const std::string & name_space_prefix)
{
if(value_path == "pwhe-adjacency-client-data")
{
pwhe_adjacency_client_data = value;
pwhe_adjacency_client_data.value_namespace = name_space;
pwhe_adjacency_client_data.value_namespace_prefix = name_space_prefix;
}
if(value_path == "vctype")
{
vctype = value;
vctype.value_namespace = name_space;
vctype.value_namespace_prefix = name_space_prefix;
}
if(value_path == "vc-internal-label")
{
vc_internal_label = value;
vc_internal_label.value_namespace = name_space;
vc_internal_label.value_namespace_prefix = name_space_prefix;
}
if(value_path == "cw-enabled")
{
cw_enabled = value;
cw_enabled.value_namespace = name_space;
cw_enabled.value_namespace_prefix = name_space_prefix;
}
if(value_path == "l2-overhead-bytes")
{
l2_overhead_bytes = value;
l2_overhead_bytes.value_namespace = name_space;
l2_overhead_bytes.value_namespace_prefix = name_space_prefix;
}
if(value_path == "dot1q-vlan-tag")
{
dot1q_vlan_tag = value;
dot1q_vlan_tag.value_namespace = name_space;
dot1q_vlan_tag.value_namespace_prefix = name_space_prefix;
}
}
void Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialDiscardBrief::SiPwhe::set_filter(const std::string & value_path, YFilter yfilter)
{
if(value_path == "pwhe-adjacency-client-data")
{
pwhe_adjacency_client_data.yfilter = yfilter;
}
if(value_path == "vctype")
{
vctype.yfilter = yfilter;
}
if(value_path == "vc-internal-label")
{
vc_internal_label.yfilter = yfilter;
}
if(value_path == "cw-enabled")
{
cw_enabled.yfilter = yfilter;
}
if(value_path == "l2-overhead-bytes")
{
l2_overhead_bytes.yfilter = yfilter;
}
if(value_path == "dot1q-vlan-tag")
{
dot1q_vlan_tag.yfilter = yfilter;
}
}
bool Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialDiscardBrief::SiPwhe::has_leaf_or_child_of_name(const std::string & name) const
{
if(name == "pwhe-adjacency-client-data" || name == "vctype" || name == "vc-internal-label" || name == "cw-enabled" || name == "l2-overhead-bytes" || name == "dot1q-vlan-tag")
return true;
return false;
}
Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialDiscardBrief::NhInfoExtension::NhInfoExtension()
:
nh_info_extension_detail(this, {})
{
yang_name = "nh-info-extension"; yang_parent_name = "nh-info-special-discard-brief"; is_top_level_class = false; has_list_ancestor = true;
}
Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialDiscardBrief::NhInfoExtension::~NhInfoExtension()
{
}
bool Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialDiscardBrief::NhInfoExtension::has_data() const
{
if (is_presence_container) return true;
for (std::size_t index=0; index<nh_info_extension_detail.len(); index++)
{
if(nh_info_extension_detail[index]->has_data())
return true;
}
return false;
}
bool Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialDiscardBrief::NhInfoExtension::has_operation() const
{
for (std::size_t index=0; index<nh_info_extension_detail.len(); index++)
{
if(nh_info_extension_detail[index]->has_operation())
return true;
}
return is_set(yfilter);
}
std::string Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialDiscardBrief::NhInfoExtension::get_segment_path() const
{
std::ostringstream path_buffer;
path_buffer << "nh-info-extension";
return path_buffer.str();
}
std::vector<std::pair<std::string, LeafData> > Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialDiscardBrief::NhInfoExtension::get_name_leaf_data() const
{
std::vector<std::pair<std::string, LeafData> > leaf_name_data {};
return leaf_name_data;
}
std::shared_ptr<ydk::Entity> Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialDiscardBrief::NhInfoExtension::get_child_by_name(const std::string & child_yang_name, const std::string & segment_path)
{
if(child_yang_name == "nh-info-extension-detail")
{
auto ent_ = std::make_shared<Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialDiscardBrief::NhInfoExtension::NhInfoExtensionDetail>();
ent_->parent = this;
nh_info_extension_detail.append(ent_);
return ent_;
}
return nullptr;
}
std::map<std::string, std::shared_ptr<ydk::Entity>> Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialDiscardBrief::NhInfoExtension::get_children() const
{
std::map<std::string, std::shared_ptr<ydk::Entity>> _children{};
char count_=0;
count_ = 0;
for (auto ent_ : nh_info_extension_detail.entities())
{
if(_children.find(ent_->get_segment_path()) == _children.end())
_children[ent_->get_segment_path()] = ent_;
else
_children[ent_->get_segment_path()+count_++] = ent_;
}
return _children;
}
void Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialDiscardBrief::NhInfoExtension::set_value(const std::string & value_path, const std::string & value, const std::string & name_space, const std::string & name_space_prefix)
{
}
void Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialDiscardBrief::NhInfoExtension::set_filter(const std::string & value_path, YFilter yfilter)
{
}
bool Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialDiscardBrief::NhInfoExtension::has_leaf_or_child_of_name(const std::string & name) const
{
if(name == "nh-info-extension-detail")
return true;
return false;
}
Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialDiscardBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionDetail()
:
nh_info_extension_base(std::make_shared<Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialDiscardBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionBase>())
, nh_info_extension_detail(std::make_shared<Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialDiscardBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionDetail_>())
{
nh_info_extension_base->parent = this;
nh_info_extension_detail->parent = this;
yang_name = "nh-info-extension-detail"; yang_parent_name = "nh-info-extension"; is_top_level_class = false; has_list_ancestor = true;
}
Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialDiscardBrief::NhInfoExtension::NhInfoExtensionDetail::~NhInfoExtensionDetail()
{
}
bool Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialDiscardBrief::NhInfoExtension::NhInfoExtensionDetail::has_data() const
{
if (is_presence_container) return true;
return (nh_info_extension_base != nullptr && nh_info_extension_base->has_data())
|| (nh_info_extension_detail != nullptr && nh_info_extension_detail->has_data());
}
bool Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialDiscardBrief::NhInfoExtension::NhInfoExtensionDetail::has_operation() const
{
return is_set(yfilter)
|| (nh_info_extension_base != nullptr && nh_info_extension_base->has_operation())
|| (nh_info_extension_detail != nullptr && nh_info_extension_detail->has_operation());
}
std::string Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialDiscardBrief::NhInfoExtension::NhInfoExtensionDetail::get_segment_path() const
{
std::ostringstream path_buffer;
path_buffer << "nh-info-extension-detail";
path_buffer << "[" << get_ylist_key() << "]";
return path_buffer.str();
}
std::vector<std::pair<std::string, LeafData> > Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialDiscardBrief::NhInfoExtension::NhInfoExtensionDetail::get_name_leaf_data() const
{
std::vector<std::pair<std::string, LeafData> > leaf_name_data {};
return leaf_name_data;
}
std::shared_ptr<ydk::Entity> Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialDiscardBrief::NhInfoExtension::NhInfoExtensionDetail::get_child_by_name(const std::string & child_yang_name, const std::string & segment_path)
{
if(child_yang_name == "nh-info-extension-base")
{
if(nh_info_extension_base == nullptr)
{
nh_info_extension_base = std::make_shared<Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialDiscardBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionBase>();
}
return nh_info_extension_base;
}
if(child_yang_name == "nh-info-extension-detail")
{
if(nh_info_extension_detail == nullptr)
{
nh_info_extension_detail = std::make_shared<Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialDiscardBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionDetail_>();
}
return nh_info_extension_detail;
}
return nullptr;
}
std::map<std::string, std::shared_ptr<ydk::Entity>> Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialDiscardBrief::NhInfoExtension::NhInfoExtensionDetail::get_children() const
{
std::map<std::string, std::shared_ptr<ydk::Entity>> _children{};
char count_=0;
if(nh_info_extension_base != nullptr)
{
_children["nh-info-extension-base"] = nh_info_extension_base;
}
if(nh_info_extension_detail != nullptr)
{
_children["nh-info-extension-detail"] = nh_info_extension_detail;
}
return _children;
}
void Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialDiscardBrief::NhInfoExtension::NhInfoExtensionDetail::set_value(const std::string & value_path, const std::string & value, const std::string & name_space, const std::string & name_space_prefix)
{
}
void Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialDiscardBrief::NhInfoExtension::NhInfoExtensionDetail::set_filter(const std::string & value_path, YFilter yfilter)
{
}
bool Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialDiscardBrief::NhInfoExtension::NhInfoExtensionDetail::has_leaf_or_child_of_name(const std::string & name) const
{
if(name == "nh-info-extension-base" || name == "nh-info-extension-detail")
return true;
return false;
}
Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialDiscardBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionBase::NhInfoExtensionBase()
:
parent_object_pointer{YType::uint64, "parent-object-pointer"},
back_object_pointer{YType::uint64, "back-object-pointer"}
,
object_base(std::make_shared<Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialDiscardBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionBase::ObjectBase>())
{
object_base->parent = this;
yang_name = "nh-info-extension-base"; yang_parent_name = "nh-info-extension-detail"; is_top_level_class = false; has_list_ancestor = true;
}
Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialDiscardBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionBase::~NhInfoExtensionBase()
{
}
bool Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialDiscardBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionBase::has_data() const
{
if (is_presence_container) return true;
return parent_object_pointer.is_set
|| back_object_pointer.is_set
|| (object_base != nullptr && object_base->has_data());
}
bool Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialDiscardBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionBase::has_operation() const
{
return is_set(yfilter)
|| ydk::is_set(parent_object_pointer.yfilter)
|| ydk::is_set(back_object_pointer.yfilter)
|| (object_base != nullptr && object_base->has_operation());
}
std::string Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialDiscardBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionBase::get_segment_path() const
{
std::ostringstream path_buffer;
path_buffer << "nh-info-extension-base";
return path_buffer.str();
}
std::vector<std::pair<std::string, LeafData> > Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialDiscardBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionBase::get_name_leaf_data() const
{
std::vector<std::pair<std::string, LeafData> > leaf_name_data {};
if (parent_object_pointer.is_set || is_set(parent_object_pointer.yfilter)) leaf_name_data.push_back(parent_object_pointer.get_name_leafdata());
if (back_object_pointer.is_set || is_set(back_object_pointer.yfilter)) leaf_name_data.push_back(back_object_pointer.get_name_leafdata());
return leaf_name_data;
}
std::shared_ptr<ydk::Entity> Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialDiscardBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionBase::get_child_by_name(const std::string & child_yang_name, const std::string & segment_path)
{
if(child_yang_name == "object-base")
{
if(object_base == nullptr)
{
object_base = std::make_shared<Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialDiscardBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionBase::ObjectBase>();
}
return object_base;
}
return nullptr;
}
std::map<std::string, std::shared_ptr<ydk::Entity>> Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialDiscardBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionBase::get_children() const
{
std::map<std::string, std::shared_ptr<ydk::Entity>> _children{};
char count_=0;
if(object_base != nullptr)
{
_children["object-base"] = object_base;
}
return _children;
}
void Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialDiscardBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionBase::set_value(const std::string & value_path, const std::string & value, const std::string & name_space, const std::string & name_space_prefix)
{
if(value_path == "parent-object-pointer")
{
parent_object_pointer = value;
parent_object_pointer.value_namespace = name_space;
parent_object_pointer.value_namespace_prefix = name_space_prefix;
}
if(value_path == "back-object-pointer")
{
back_object_pointer = value;
back_object_pointer.value_namespace = name_space;
back_object_pointer.value_namespace_prefix = name_space_prefix;
}
}
void Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialDiscardBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionBase::set_filter(const std::string & value_path, YFilter yfilter)
{
if(value_path == "parent-object-pointer")
{
parent_object_pointer.yfilter = yfilter;
}
if(value_path == "back-object-pointer")
{
back_object_pointer.yfilter = yfilter;
}
}
bool Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialDiscardBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionBase::has_leaf_or_child_of_name(const std::string & name) const
{
if(name == "object-base" || name == "parent-object-pointer" || name == "back-object-pointer")
return true;
return false;
}
Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialDiscardBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionBase::ObjectBase::ObjectBase()
:
object_reference_count{YType::uint32, "object-reference-count"},
object_flags{YType::uint32, "object-flags"},
object_type{YType::uint8, "object-type"},
object_time_stamp{YType::uint64, "object-time-stamp"},
object_pointer{YType::uint64, "object-pointer"}
{
yang_name = "object-base"; yang_parent_name = "nh-info-extension-base"; is_top_level_class = false; has_list_ancestor = true;
}
Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialDiscardBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionBase::ObjectBase::~ObjectBase()
{
}
bool Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialDiscardBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionBase::ObjectBase::has_data() const
{
if (is_presence_container) return true;
return object_reference_count.is_set
|| object_flags.is_set
|| object_type.is_set
|| object_time_stamp.is_set
|| object_pointer.is_set;
}
bool Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialDiscardBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionBase::ObjectBase::has_operation() const
{
return is_set(yfilter)
|| ydk::is_set(object_reference_count.yfilter)
|| ydk::is_set(object_flags.yfilter)
|| ydk::is_set(object_type.yfilter)
|| ydk::is_set(object_time_stamp.yfilter)
|| ydk::is_set(object_pointer.yfilter);
}
std::string Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialDiscardBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionBase::ObjectBase::get_segment_path() const
{
std::ostringstream path_buffer;
path_buffer << "object-base";
return path_buffer.str();
}
std::vector<std::pair<std::string, LeafData> > Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialDiscardBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionBase::ObjectBase::get_name_leaf_data() const
{
std::vector<std::pair<std::string, LeafData> > leaf_name_data {};
if (object_reference_count.is_set || is_set(object_reference_count.yfilter)) leaf_name_data.push_back(object_reference_count.get_name_leafdata());
if (object_flags.is_set || is_set(object_flags.yfilter)) leaf_name_data.push_back(object_flags.get_name_leafdata());
if (object_type.is_set || is_set(object_type.yfilter)) leaf_name_data.push_back(object_type.get_name_leafdata());
if (object_time_stamp.is_set || is_set(object_time_stamp.yfilter)) leaf_name_data.push_back(object_time_stamp.get_name_leafdata());
if (object_pointer.is_set || is_set(object_pointer.yfilter)) leaf_name_data.push_back(object_pointer.get_name_leafdata());
return leaf_name_data;
}
std::shared_ptr<ydk::Entity> Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialDiscardBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionBase::ObjectBase::get_child_by_name(const std::string & child_yang_name, const std::string & segment_path)
{
return nullptr;
}
std::map<std::string, std::shared_ptr<ydk::Entity>> Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialDiscardBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionBase::ObjectBase::get_children() const
{
std::map<std::string, std::shared_ptr<ydk::Entity>> _children{};
char count_=0;
return _children;
}
void Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialDiscardBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionBase::ObjectBase::set_value(const std::string & value_path, const std::string & value, const std::string & name_space, const std::string & name_space_prefix)
{
if(value_path == "object-reference-count")
{
object_reference_count = value;
object_reference_count.value_namespace = name_space;
object_reference_count.value_namespace_prefix = name_space_prefix;
}
if(value_path == "object-flags")
{
object_flags = value;
object_flags.value_namespace = name_space;
object_flags.value_namespace_prefix = name_space_prefix;
}
if(value_path == "object-type")
{
object_type = value;
object_type.value_namespace = name_space;
object_type.value_namespace_prefix = name_space_prefix;
}
if(value_path == "object-time-stamp")
{
object_time_stamp = value;
object_time_stamp.value_namespace = name_space;
object_time_stamp.value_namespace_prefix = name_space_prefix;
}
if(value_path == "object-pointer")
{
object_pointer = value;
object_pointer.value_namespace = name_space;
object_pointer.value_namespace_prefix = name_space_prefix;
}
}
void Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialDiscardBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionBase::ObjectBase::set_filter(const std::string & value_path, YFilter yfilter)
{
if(value_path == "object-reference-count")
{
object_reference_count.yfilter = yfilter;
}
if(value_path == "object-flags")
{
object_flags.yfilter = yfilter;
}
if(value_path == "object-type")
{
object_type.yfilter = yfilter;
}
if(value_path == "object-time-stamp")
{
object_time_stamp.yfilter = yfilter;
}
if(value_path == "object-pointer")
{
object_pointer.yfilter = yfilter;
}
}
bool Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialDiscardBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionBase::ObjectBase::has_leaf_or_child_of_name(const std::string & name) const
{
if(name == "object-reference-count" || name == "object-flags" || name == "object-type" || name == "object-time-stamp" || name == "object-pointer")
return true;
return false;
}
Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialDiscardBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionDetail_::NhInfoExtensionDetail_()
:
type{YType::enumeration, "type"}
,
snecd_nhr(std::make_shared<Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialDiscardBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionDetail_::SnecdNhr>())
{
snecd_nhr->parent = this;
yang_name = "nh-info-extension-detail"; yang_parent_name = "nh-info-extension-detail"; is_top_level_class = false; has_list_ancestor = true;
}
Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialDiscardBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionDetail_::~NhInfoExtensionDetail_()
{
}
bool Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialDiscardBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionDetail_::has_data() const
{
if (is_presence_container) return true;
return type.is_set
|| (snecd_nhr != nullptr && snecd_nhr->has_data());
}
bool Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialDiscardBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionDetail_::has_operation() const
{
return is_set(yfilter)
|| ydk::is_set(type.yfilter)
|| (snecd_nhr != nullptr && snecd_nhr->has_operation());
}
std::string Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialDiscardBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionDetail_::get_segment_path() const
{
std::ostringstream path_buffer;
path_buffer << "nh-info-extension-detail";
return path_buffer.str();
}
std::vector<std::pair<std::string, LeafData> > Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialDiscardBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionDetail_::get_name_leaf_data() const
{
std::vector<std::pair<std::string, LeafData> > leaf_name_data {};
if (type.is_set || is_set(type.yfilter)) leaf_name_data.push_back(type.get_name_leafdata());
return leaf_name_data;
}
std::shared_ptr<ydk::Entity> Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialDiscardBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionDetail_::get_child_by_name(const std::string & child_yang_name, const std::string & segment_path)
{
if(child_yang_name == "snecd-nhr")
{
if(snecd_nhr == nullptr)
{
snecd_nhr = std::make_shared<Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialDiscardBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionDetail_::SnecdNhr>();
}
return snecd_nhr;
}
return nullptr;
}
std::map<std::string, std::shared_ptr<ydk::Entity>> Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialDiscardBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionDetail_::get_children() const
{
std::map<std::string, std::shared_ptr<ydk::Entity>> _children{};
char count_=0;
if(snecd_nhr != nullptr)
{
_children["snecd-nhr"] = snecd_nhr;
}
return _children;
}
void Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialDiscardBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionDetail_::set_value(const std::string & value_path, const std::string & value, const std::string & name_space, const std::string & name_space_prefix)
{
if(value_path == "type")
{
type = value;
type.value_namespace = name_space;
type.value_namespace_prefix = name_space_prefix;
}
}
void Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialDiscardBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionDetail_::set_filter(const std::string & value_path, YFilter yfilter)
{
if(value_path == "type")
{
type.yfilter = yfilter;
}
}
bool Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialDiscardBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionDetail_::has_leaf_or_child_of_name(const std::string & name) const
{
if(name == "snecd-nhr" || name == "type")
return true;
return false;
}
Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialDiscardBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionDetail_::SnecdNhr::SnecdNhr()
:
nh_info_replicated_type{YType::uint8, "nh-info-replicated-type"},
nh_info_replicated_nh_id{YType::uint32, "nh-info-replicated-nh-id"},
nh_info_replicated_encap_id{YType::uint64, "nh-info-replicated-encap-id"},
nh_info_replicated_interface{YType::str, "nh-info-replicated-interface"}
{
yang_name = "snecd-nhr"; yang_parent_name = "nh-info-extension-detail"; is_top_level_class = false; has_list_ancestor = true;
}
Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialDiscardBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionDetail_::SnecdNhr::~SnecdNhr()
{
}
bool Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialDiscardBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionDetail_::SnecdNhr::has_data() const
{
if (is_presence_container) return true;
return nh_info_replicated_type.is_set
|| nh_info_replicated_nh_id.is_set
|| nh_info_replicated_encap_id.is_set
|| nh_info_replicated_interface.is_set;
}
bool Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialDiscardBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionDetail_::SnecdNhr::has_operation() const
{
return is_set(yfilter)
|| ydk::is_set(nh_info_replicated_type.yfilter)
|| ydk::is_set(nh_info_replicated_nh_id.yfilter)
|| ydk::is_set(nh_info_replicated_encap_id.yfilter)
|| ydk::is_set(nh_info_replicated_interface.yfilter);
}
std::string Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialDiscardBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionDetail_::SnecdNhr::get_segment_path() const
{
std::ostringstream path_buffer;
path_buffer << "snecd-nhr";
return path_buffer.str();
}
std::vector<std::pair<std::string, LeafData> > Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialDiscardBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionDetail_::SnecdNhr::get_name_leaf_data() const
{
std::vector<std::pair<std::string, LeafData> > leaf_name_data {};
if (nh_info_replicated_type.is_set || is_set(nh_info_replicated_type.yfilter)) leaf_name_data.push_back(nh_info_replicated_type.get_name_leafdata());
if (nh_info_replicated_nh_id.is_set || is_set(nh_info_replicated_nh_id.yfilter)) leaf_name_data.push_back(nh_info_replicated_nh_id.get_name_leafdata());
if (nh_info_replicated_encap_id.is_set || is_set(nh_info_replicated_encap_id.yfilter)) leaf_name_data.push_back(nh_info_replicated_encap_id.get_name_leafdata());
if (nh_info_replicated_interface.is_set || is_set(nh_info_replicated_interface.yfilter)) leaf_name_data.push_back(nh_info_replicated_interface.get_name_leafdata());
return leaf_name_data;
}
std::shared_ptr<ydk::Entity> Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialDiscardBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionDetail_::SnecdNhr::get_child_by_name(const std::string & child_yang_name, const std::string & segment_path)
{
return nullptr;
}
std::map<std::string, std::shared_ptr<ydk::Entity>> Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialDiscardBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionDetail_::SnecdNhr::get_children() const
{
std::map<std::string, std::shared_ptr<ydk::Entity>> _children{};
char count_=0;
return _children;
}
void Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialDiscardBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionDetail_::SnecdNhr::set_value(const std::string & value_path, const std::string & value, const std::string & name_space, const std::string & name_space_prefix)
{
if(value_path == "nh-info-replicated-type")
{
nh_info_replicated_type = value;
nh_info_replicated_type.value_namespace = name_space;
nh_info_replicated_type.value_namespace_prefix = name_space_prefix;
}
if(value_path == "nh-info-replicated-nh-id")
{
nh_info_replicated_nh_id = value;
nh_info_replicated_nh_id.value_namespace = name_space;
nh_info_replicated_nh_id.value_namespace_prefix = name_space_prefix;
}
if(value_path == "nh-info-replicated-encap-id")
{
nh_info_replicated_encap_id = value;
nh_info_replicated_encap_id.value_namespace = name_space;
nh_info_replicated_encap_id.value_namespace_prefix = name_space_prefix;
}
if(value_path == "nh-info-replicated-interface")
{
nh_info_replicated_interface = value;
nh_info_replicated_interface.value_namespace = name_space;
nh_info_replicated_interface.value_namespace_prefix = name_space_prefix;
}
}
void Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialDiscardBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionDetail_::SnecdNhr::set_filter(const std::string & value_path, YFilter yfilter)
{
if(value_path == "nh-info-replicated-type")
{
nh_info_replicated_type.yfilter = yfilter;
}
if(value_path == "nh-info-replicated-nh-id")
{
nh_info_replicated_nh_id.yfilter = yfilter;
}
if(value_path == "nh-info-replicated-encap-id")
{
nh_info_replicated_encap_id.yfilter = yfilter;
}
if(value_path == "nh-info-replicated-interface")
{
nh_info_replicated_interface.yfilter = yfilter;
}
}
bool Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialDiscardBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionDetail_::SnecdNhr::has_leaf_or_child_of_name(const std::string & name) const
{
if(name == "nh-info-replicated-type" || name == "nh-info-replicated-nh-id" || name == "nh-info-replicated-encap-id" || name == "nh-info-replicated-interface")
return true;
return false;
}
Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialNullBrief::NhInfoSpecialNullBrief()
:
si_link_proto{YType::uint32, "si-link-proto"},
si_nhinfo{YType::uint32, "si-nhinfo"},
si_nhtype{YType::uint32, "si-nhtype"},
si_ifh{YType::uint32, "si-ifh"},
si_pfi_interface_type{YType::uint32, "si-pfi-interface-type"},
si_adj_ptr{YType::uint32, "si-adj-ptr"},
si_adj_present{YType::boolean, "si-adj-present"},
si_special_type{YType::uint32, "si-special-type"},
si_refcount{YType::uint32, "si-refcount"},
si_flags{YType::uint32, "si-flags"},
si_adj_if{YType::uint32, "si-adj-if"},
si_ext_pfx{YType::str, "si-ext-pfx"},
si_ext_pfx_len{YType::uint32, "si-ext-pfx-len"},
si_ext_pfx_proto{YType::uint32, "si-ext-pfx-proto"},
si_adj_address{YType::str, "si-adj-address"},
si_adj_addrlen{YType::uint32, "si-adj-addrlen"},
si_adj_addr_proto{YType::uint32, "si-adj-addr-proto"},
si_adj_rw_len{YType::uint32, "si-adj-rw-len"},
si_adj_rw{YType::str, "si-adj-rw"},
si_dep_nhinfo_type{YType::uint32, "si-dep-nhinfo-type"},
si_dep_nhinfo{YType::uint32, "si-dep-nhinfo"},
si_dep_nhinfo_ifh{YType::uint32, "si-dep-nhinfo-ifh"},
si_bkup_frr{YType::uint32, "si-bkup-frr"},
si_protect_frr{YType::uint32, "si-protect-frr"},
si_bkup_nhinfo{YType::uint32, "si-bkup-nhinfo"},
si_bkup_ifh{YType::uint32, "si-bkup-ifh"},
si_bkup_addr{YType::str, "si-bkup-addr"},
si_bkup_addrlen{YType::uint32, "si-bkup-addrlen"},
si_bkup_addr_proto{YType::uint32, "si-bkup-addr-proto"},
si_frr_active{YType::boolean, "si-frr-active"},
si_attr_is_ext_mgd{YType::boolean, "si-attr-is-ext-mgd"},
si_attr_is_incomp{YType::boolean, "si-attr-is-incomp"},
si_attr_is_tunnel{YType::boolean, "si-attr-is-tunnel"},
si_attr_is_tunnel_srte{YType::boolean, "si-attr-is-tunnel-srte"},
si_attr_is_gre_tunnel{YType::boolean, "si-attr-is-gre-tunnel"},
si_gre_ti{YType::uint32, "si-gre-ti"},
si_gre_ti_flags{YType::uint32, "si-gre-ti-flags"},
si_gre_ti_refcnt{YType::uint32, "si-gre-ti-refcnt"},
si_gre_tos_propagate{YType::boolean, "si-gre-tos-propagate"},
si_hardware{YType::str, "si-hardware"},
si_nhinfo_ptr{YType::uint32, "si-nhinfo-ptr"},
si_fnb_idb_ptr{YType::uint32, "si-fnb-idb-ptr"},
si_anc_ifh{YType::uint32, "si-anc-ifh"},
si_gre_ti_resolving_leafp{YType::uint32, "si-gre-ti-resolving-leafp"},
si_gre_dest_addr{YType::str, "si-gre-dest-addr"},
si_nhid{YType::uint32, "si-nhid"},
si_upd_ts{YType::uint64, "si-upd-ts"}
,
si_pwhe(std::make_shared<Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialNullBrief::SiPwhe>())
, nh_info_extension(std::make_shared<Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialNullBrief::NhInfoExtension>())
{
si_pwhe->parent = this;
nh_info_extension->parent = this;
yang_name = "nh-info-special-null-brief"; yang_parent_name = "nh-info-special-brief"; is_top_level_class = false; has_list_ancestor = true;
}
Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialNullBrief::~NhInfoSpecialNullBrief()
{
}
bool Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialNullBrief::has_data() const
{
if (is_presence_container) return true;
return si_link_proto.is_set
|| si_nhinfo.is_set
|| si_nhtype.is_set
|| si_ifh.is_set
|| si_pfi_interface_type.is_set
|| si_adj_ptr.is_set
|| si_adj_present.is_set
|| si_special_type.is_set
|| si_refcount.is_set
|| si_flags.is_set
|| si_adj_if.is_set
|| si_ext_pfx.is_set
|| si_ext_pfx_len.is_set
|| si_ext_pfx_proto.is_set
|| si_adj_address.is_set
|| si_adj_addrlen.is_set
|| si_adj_addr_proto.is_set
|| si_adj_rw_len.is_set
|| si_adj_rw.is_set
|| si_dep_nhinfo_type.is_set
|| si_dep_nhinfo.is_set
|| si_dep_nhinfo_ifh.is_set
|| si_bkup_frr.is_set
|| si_protect_frr.is_set
|| si_bkup_nhinfo.is_set
|| si_bkup_ifh.is_set
|| si_bkup_addr.is_set
|| si_bkup_addrlen.is_set
|| si_bkup_addr_proto.is_set
|| si_frr_active.is_set
|| si_attr_is_ext_mgd.is_set
|| si_attr_is_incomp.is_set
|| si_attr_is_tunnel.is_set
|| si_attr_is_tunnel_srte.is_set
|| si_attr_is_gre_tunnel.is_set
|| si_gre_ti.is_set
|| si_gre_ti_flags.is_set
|| si_gre_ti_refcnt.is_set
|| si_gre_tos_propagate.is_set
|| si_hardware.is_set
|| si_nhinfo_ptr.is_set
|| si_fnb_idb_ptr.is_set
|| si_anc_ifh.is_set
|| si_gre_ti_resolving_leafp.is_set
|| si_gre_dest_addr.is_set
|| si_nhid.is_set
|| si_upd_ts.is_set
|| (si_pwhe != nullptr && si_pwhe->has_data())
|| (nh_info_extension != nullptr && nh_info_extension->has_data());
}
bool Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialNullBrief::has_operation() const
{
return is_set(yfilter)
|| ydk::is_set(si_link_proto.yfilter)
|| ydk::is_set(si_nhinfo.yfilter)
|| ydk::is_set(si_nhtype.yfilter)
|| ydk::is_set(si_ifh.yfilter)
|| ydk::is_set(si_pfi_interface_type.yfilter)
|| ydk::is_set(si_adj_ptr.yfilter)
|| ydk::is_set(si_adj_present.yfilter)
|| ydk::is_set(si_special_type.yfilter)
|| ydk::is_set(si_refcount.yfilter)
|| ydk::is_set(si_flags.yfilter)
|| ydk::is_set(si_adj_if.yfilter)
|| ydk::is_set(si_ext_pfx.yfilter)
|| ydk::is_set(si_ext_pfx_len.yfilter)
|| ydk::is_set(si_ext_pfx_proto.yfilter)
|| ydk::is_set(si_adj_address.yfilter)
|| ydk::is_set(si_adj_addrlen.yfilter)
|| ydk::is_set(si_adj_addr_proto.yfilter)
|| ydk::is_set(si_adj_rw_len.yfilter)
|| ydk::is_set(si_adj_rw.yfilter)
|| ydk::is_set(si_dep_nhinfo_type.yfilter)
|| ydk::is_set(si_dep_nhinfo.yfilter)
|| ydk::is_set(si_dep_nhinfo_ifh.yfilter)
|| ydk::is_set(si_bkup_frr.yfilter)
|| ydk::is_set(si_protect_frr.yfilter)
|| ydk::is_set(si_bkup_nhinfo.yfilter)
|| ydk::is_set(si_bkup_ifh.yfilter)
|| ydk::is_set(si_bkup_addr.yfilter)
|| ydk::is_set(si_bkup_addrlen.yfilter)
|| ydk::is_set(si_bkup_addr_proto.yfilter)
|| ydk::is_set(si_frr_active.yfilter)
|| ydk::is_set(si_attr_is_ext_mgd.yfilter)
|| ydk::is_set(si_attr_is_incomp.yfilter)
|| ydk::is_set(si_attr_is_tunnel.yfilter)
|| ydk::is_set(si_attr_is_tunnel_srte.yfilter)
|| ydk::is_set(si_attr_is_gre_tunnel.yfilter)
|| ydk::is_set(si_gre_ti.yfilter)
|| ydk::is_set(si_gre_ti_flags.yfilter)
|| ydk::is_set(si_gre_ti_refcnt.yfilter)
|| ydk::is_set(si_gre_tos_propagate.yfilter)
|| ydk::is_set(si_hardware.yfilter)
|| ydk::is_set(si_nhinfo_ptr.yfilter)
|| ydk::is_set(si_fnb_idb_ptr.yfilter)
|| ydk::is_set(si_anc_ifh.yfilter)
|| ydk::is_set(si_gre_ti_resolving_leafp.yfilter)
|| ydk::is_set(si_gre_dest_addr.yfilter)
|| ydk::is_set(si_nhid.yfilter)
|| ydk::is_set(si_upd_ts.yfilter)
|| (si_pwhe != nullptr && si_pwhe->has_operation())
|| (nh_info_extension != nullptr && nh_info_extension->has_operation());
}
std::string Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialNullBrief::get_segment_path() const
{
std::ostringstream path_buffer;
path_buffer << "nh-info-special-null-brief";
return path_buffer.str();
}
std::vector<std::pair<std::string, LeafData> > Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialNullBrief::get_name_leaf_data() const
{
std::vector<std::pair<std::string, LeafData> > leaf_name_data {};
if (si_link_proto.is_set || is_set(si_link_proto.yfilter)) leaf_name_data.push_back(si_link_proto.get_name_leafdata());
if (si_nhinfo.is_set || is_set(si_nhinfo.yfilter)) leaf_name_data.push_back(si_nhinfo.get_name_leafdata());
if (si_nhtype.is_set || is_set(si_nhtype.yfilter)) leaf_name_data.push_back(si_nhtype.get_name_leafdata());
if (si_ifh.is_set || is_set(si_ifh.yfilter)) leaf_name_data.push_back(si_ifh.get_name_leafdata());
if (si_pfi_interface_type.is_set || is_set(si_pfi_interface_type.yfilter)) leaf_name_data.push_back(si_pfi_interface_type.get_name_leafdata());
if (si_adj_ptr.is_set || is_set(si_adj_ptr.yfilter)) leaf_name_data.push_back(si_adj_ptr.get_name_leafdata());
if (si_adj_present.is_set || is_set(si_adj_present.yfilter)) leaf_name_data.push_back(si_adj_present.get_name_leafdata());
if (si_special_type.is_set || is_set(si_special_type.yfilter)) leaf_name_data.push_back(si_special_type.get_name_leafdata());
if (si_refcount.is_set || is_set(si_refcount.yfilter)) leaf_name_data.push_back(si_refcount.get_name_leafdata());
if (si_flags.is_set || is_set(si_flags.yfilter)) leaf_name_data.push_back(si_flags.get_name_leafdata());
if (si_adj_if.is_set || is_set(si_adj_if.yfilter)) leaf_name_data.push_back(si_adj_if.get_name_leafdata());
if (si_ext_pfx.is_set || is_set(si_ext_pfx.yfilter)) leaf_name_data.push_back(si_ext_pfx.get_name_leafdata());
if (si_ext_pfx_len.is_set || is_set(si_ext_pfx_len.yfilter)) leaf_name_data.push_back(si_ext_pfx_len.get_name_leafdata());
if (si_ext_pfx_proto.is_set || is_set(si_ext_pfx_proto.yfilter)) leaf_name_data.push_back(si_ext_pfx_proto.get_name_leafdata());
if (si_adj_address.is_set || is_set(si_adj_address.yfilter)) leaf_name_data.push_back(si_adj_address.get_name_leafdata());
if (si_adj_addrlen.is_set || is_set(si_adj_addrlen.yfilter)) leaf_name_data.push_back(si_adj_addrlen.get_name_leafdata());
if (si_adj_addr_proto.is_set || is_set(si_adj_addr_proto.yfilter)) leaf_name_data.push_back(si_adj_addr_proto.get_name_leafdata());
if (si_adj_rw_len.is_set || is_set(si_adj_rw_len.yfilter)) leaf_name_data.push_back(si_adj_rw_len.get_name_leafdata());
if (si_adj_rw.is_set || is_set(si_adj_rw.yfilter)) leaf_name_data.push_back(si_adj_rw.get_name_leafdata());
if (si_dep_nhinfo_type.is_set || is_set(si_dep_nhinfo_type.yfilter)) leaf_name_data.push_back(si_dep_nhinfo_type.get_name_leafdata());
if (si_dep_nhinfo.is_set || is_set(si_dep_nhinfo.yfilter)) leaf_name_data.push_back(si_dep_nhinfo.get_name_leafdata());
if (si_dep_nhinfo_ifh.is_set || is_set(si_dep_nhinfo_ifh.yfilter)) leaf_name_data.push_back(si_dep_nhinfo_ifh.get_name_leafdata());
if (si_bkup_frr.is_set || is_set(si_bkup_frr.yfilter)) leaf_name_data.push_back(si_bkup_frr.get_name_leafdata());
if (si_protect_frr.is_set || is_set(si_protect_frr.yfilter)) leaf_name_data.push_back(si_protect_frr.get_name_leafdata());
if (si_bkup_nhinfo.is_set || is_set(si_bkup_nhinfo.yfilter)) leaf_name_data.push_back(si_bkup_nhinfo.get_name_leafdata());
if (si_bkup_ifh.is_set || is_set(si_bkup_ifh.yfilter)) leaf_name_data.push_back(si_bkup_ifh.get_name_leafdata());
if (si_bkup_addr.is_set || is_set(si_bkup_addr.yfilter)) leaf_name_data.push_back(si_bkup_addr.get_name_leafdata());
if (si_bkup_addrlen.is_set || is_set(si_bkup_addrlen.yfilter)) leaf_name_data.push_back(si_bkup_addrlen.get_name_leafdata());
if (si_bkup_addr_proto.is_set || is_set(si_bkup_addr_proto.yfilter)) leaf_name_data.push_back(si_bkup_addr_proto.get_name_leafdata());
if (si_frr_active.is_set || is_set(si_frr_active.yfilter)) leaf_name_data.push_back(si_frr_active.get_name_leafdata());
if (si_attr_is_ext_mgd.is_set || is_set(si_attr_is_ext_mgd.yfilter)) leaf_name_data.push_back(si_attr_is_ext_mgd.get_name_leafdata());
if (si_attr_is_incomp.is_set || is_set(si_attr_is_incomp.yfilter)) leaf_name_data.push_back(si_attr_is_incomp.get_name_leafdata());
if (si_attr_is_tunnel.is_set || is_set(si_attr_is_tunnel.yfilter)) leaf_name_data.push_back(si_attr_is_tunnel.get_name_leafdata());
if (si_attr_is_tunnel_srte.is_set || is_set(si_attr_is_tunnel_srte.yfilter)) leaf_name_data.push_back(si_attr_is_tunnel_srte.get_name_leafdata());
if (si_attr_is_gre_tunnel.is_set || is_set(si_attr_is_gre_tunnel.yfilter)) leaf_name_data.push_back(si_attr_is_gre_tunnel.get_name_leafdata());
if (si_gre_ti.is_set || is_set(si_gre_ti.yfilter)) leaf_name_data.push_back(si_gre_ti.get_name_leafdata());
if (si_gre_ti_flags.is_set || is_set(si_gre_ti_flags.yfilter)) leaf_name_data.push_back(si_gre_ti_flags.get_name_leafdata());
if (si_gre_ti_refcnt.is_set || is_set(si_gre_ti_refcnt.yfilter)) leaf_name_data.push_back(si_gre_ti_refcnt.get_name_leafdata());
if (si_gre_tos_propagate.is_set || is_set(si_gre_tos_propagate.yfilter)) leaf_name_data.push_back(si_gre_tos_propagate.get_name_leafdata());
if (si_hardware.is_set || is_set(si_hardware.yfilter)) leaf_name_data.push_back(si_hardware.get_name_leafdata());
if (si_nhinfo_ptr.is_set || is_set(si_nhinfo_ptr.yfilter)) leaf_name_data.push_back(si_nhinfo_ptr.get_name_leafdata());
if (si_fnb_idb_ptr.is_set || is_set(si_fnb_idb_ptr.yfilter)) leaf_name_data.push_back(si_fnb_idb_ptr.get_name_leafdata());
if (si_anc_ifh.is_set || is_set(si_anc_ifh.yfilter)) leaf_name_data.push_back(si_anc_ifh.get_name_leafdata());
if (si_gre_ti_resolving_leafp.is_set || is_set(si_gre_ti_resolving_leafp.yfilter)) leaf_name_data.push_back(si_gre_ti_resolving_leafp.get_name_leafdata());
if (si_gre_dest_addr.is_set || is_set(si_gre_dest_addr.yfilter)) leaf_name_data.push_back(si_gre_dest_addr.get_name_leafdata());
if (si_nhid.is_set || is_set(si_nhid.yfilter)) leaf_name_data.push_back(si_nhid.get_name_leafdata());
if (si_upd_ts.is_set || is_set(si_upd_ts.yfilter)) leaf_name_data.push_back(si_upd_ts.get_name_leafdata());
return leaf_name_data;
}
std::shared_ptr<ydk::Entity> Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialNullBrief::get_child_by_name(const std::string & child_yang_name, const std::string & segment_path)
{
if(child_yang_name == "si-pwhe")
{
if(si_pwhe == nullptr)
{
si_pwhe = std::make_shared<Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialNullBrief::SiPwhe>();
}
return si_pwhe;
}
if(child_yang_name == "nh-info-extension")
{
if(nh_info_extension == nullptr)
{
nh_info_extension = std::make_shared<Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialNullBrief::NhInfoExtension>();
}
return nh_info_extension;
}
return nullptr;
}
std::map<std::string, std::shared_ptr<ydk::Entity>> Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialNullBrief::get_children() const
{
std::map<std::string, std::shared_ptr<ydk::Entity>> _children{};
char count_=0;
if(si_pwhe != nullptr)
{
_children["si-pwhe"] = si_pwhe;
}
if(nh_info_extension != nullptr)
{
_children["nh-info-extension"] = nh_info_extension;
}
return _children;
}
void Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialNullBrief::set_value(const std::string & value_path, const std::string & value, const std::string & name_space, const std::string & name_space_prefix)
{
if(value_path == "si-link-proto")
{
si_link_proto = value;
si_link_proto.value_namespace = name_space;
si_link_proto.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-nhinfo")
{
si_nhinfo = value;
si_nhinfo.value_namespace = name_space;
si_nhinfo.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-nhtype")
{
si_nhtype = value;
si_nhtype.value_namespace = name_space;
si_nhtype.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-ifh")
{
si_ifh = value;
si_ifh.value_namespace = name_space;
si_ifh.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-pfi-interface-type")
{
si_pfi_interface_type = value;
si_pfi_interface_type.value_namespace = name_space;
si_pfi_interface_type.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-adj-ptr")
{
si_adj_ptr = value;
si_adj_ptr.value_namespace = name_space;
si_adj_ptr.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-adj-present")
{
si_adj_present = value;
si_adj_present.value_namespace = name_space;
si_adj_present.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-special-type")
{
si_special_type = value;
si_special_type.value_namespace = name_space;
si_special_type.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-refcount")
{
si_refcount = value;
si_refcount.value_namespace = name_space;
si_refcount.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-flags")
{
si_flags = value;
si_flags.value_namespace = name_space;
si_flags.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-adj-if")
{
si_adj_if = value;
si_adj_if.value_namespace = name_space;
si_adj_if.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-ext-pfx")
{
si_ext_pfx = value;
si_ext_pfx.value_namespace = name_space;
si_ext_pfx.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-ext-pfx-len")
{
si_ext_pfx_len = value;
si_ext_pfx_len.value_namespace = name_space;
si_ext_pfx_len.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-ext-pfx-proto")
{
si_ext_pfx_proto = value;
si_ext_pfx_proto.value_namespace = name_space;
si_ext_pfx_proto.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-adj-address")
{
si_adj_address = value;
si_adj_address.value_namespace = name_space;
si_adj_address.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-adj-addrlen")
{
si_adj_addrlen = value;
si_adj_addrlen.value_namespace = name_space;
si_adj_addrlen.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-adj-addr-proto")
{
si_adj_addr_proto = value;
si_adj_addr_proto.value_namespace = name_space;
si_adj_addr_proto.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-adj-rw-len")
{
si_adj_rw_len = value;
si_adj_rw_len.value_namespace = name_space;
si_adj_rw_len.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-adj-rw")
{
si_adj_rw = value;
si_adj_rw.value_namespace = name_space;
si_adj_rw.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-dep-nhinfo-type")
{
si_dep_nhinfo_type = value;
si_dep_nhinfo_type.value_namespace = name_space;
si_dep_nhinfo_type.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-dep-nhinfo")
{
si_dep_nhinfo = value;
si_dep_nhinfo.value_namespace = name_space;
si_dep_nhinfo.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-dep-nhinfo-ifh")
{
si_dep_nhinfo_ifh = value;
si_dep_nhinfo_ifh.value_namespace = name_space;
si_dep_nhinfo_ifh.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-bkup-frr")
{
si_bkup_frr = value;
si_bkup_frr.value_namespace = name_space;
si_bkup_frr.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-protect-frr")
{
si_protect_frr = value;
si_protect_frr.value_namespace = name_space;
si_protect_frr.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-bkup-nhinfo")
{
si_bkup_nhinfo = value;
si_bkup_nhinfo.value_namespace = name_space;
si_bkup_nhinfo.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-bkup-ifh")
{
si_bkup_ifh = value;
si_bkup_ifh.value_namespace = name_space;
si_bkup_ifh.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-bkup-addr")
{
si_bkup_addr = value;
si_bkup_addr.value_namespace = name_space;
si_bkup_addr.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-bkup-addrlen")
{
si_bkup_addrlen = value;
si_bkup_addrlen.value_namespace = name_space;
si_bkup_addrlen.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-bkup-addr-proto")
{
si_bkup_addr_proto = value;
si_bkup_addr_proto.value_namespace = name_space;
si_bkup_addr_proto.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-frr-active")
{
si_frr_active = value;
si_frr_active.value_namespace = name_space;
si_frr_active.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-attr-is-ext-mgd")
{
si_attr_is_ext_mgd = value;
si_attr_is_ext_mgd.value_namespace = name_space;
si_attr_is_ext_mgd.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-attr-is-incomp")
{
si_attr_is_incomp = value;
si_attr_is_incomp.value_namespace = name_space;
si_attr_is_incomp.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-attr-is-tunnel")
{
si_attr_is_tunnel = value;
si_attr_is_tunnel.value_namespace = name_space;
si_attr_is_tunnel.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-attr-is-tunnel-srte")
{
si_attr_is_tunnel_srte = value;
si_attr_is_tunnel_srte.value_namespace = name_space;
si_attr_is_tunnel_srte.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-attr-is-gre-tunnel")
{
si_attr_is_gre_tunnel = value;
si_attr_is_gre_tunnel.value_namespace = name_space;
si_attr_is_gre_tunnel.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-gre-ti")
{
si_gre_ti = value;
si_gre_ti.value_namespace = name_space;
si_gre_ti.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-gre-ti-flags")
{
si_gre_ti_flags = value;
si_gre_ti_flags.value_namespace = name_space;
si_gre_ti_flags.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-gre-ti-refcnt")
{
si_gre_ti_refcnt = value;
si_gre_ti_refcnt.value_namespace = name_space;
si_gre_ti_refcnt.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-gre-tos-propagate")
{
si_gre_tos_propagate = value;
si_gre_tos_propagate.value_namespace = name_space;
si_gre_tos_propagate.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-hardware")
{
si_hardware = value;
si_hardware.value_namespace = name_space;
si_hardware.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-nhinfo-ptr")
{
si_nhinfo_ptr = value;
si_nhinfo_ptr.value_namespace = name_space;
si_nhinfo_ptr.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-fnb-idb-ptr")
{
si_fnb_idb_ptr = value;
si_fnb_idb_ptr.value_namespace = name_space;
si_fnb_idb_ptr.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-anc-ifh")
{
si_anc_ifh = value;
si_anc_ifh.value_namespace = name_space;
si_anc_ifh.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-gre-ti-resolving-leafp")
{
si_gre_ti_resolving_leafp = value;
si_gre_ti_resolving_leafp.value_namespace = name_space;
si_gre_ti_resolving_leafp.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-gre-dest-addr")
{
si_gre_dest_addr = value;
si_gre_dest_addr.value_namespace = name_space;
si_gre_dest_addr.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-nhid")
{
si_nhid = value;
si_nhid.value_namespace = name_space;
si_nhid.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-upd-ts")
{
si_upd_ts = value;
si_upd_ts.value_namespace = name_space;
si_upd_ts.value_namespace_prefix = name_space_prefix;
}
}
void Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialNullBrief::set_filter(const std::string & value_path, YFilter yfilter)
{
if(value_path == "si-link-proto")
{
si_link_proto.yfilter = yfilter;
}
if(value_path == "si-nhinfo")
{
si_nhinfo.yfilter = yfilter;
}
if(value_path == "si-nhtype")
{
si_nhtype.yfilter = yfilter;
}
if(value_path == "si-ifh")
{
si_ifh.yfilter = yfilter;
}
if(value_path == "si-pfi-interface-type")
{
si_pfi_interface_type.yfilter = yfilter;
}
if(value_path == "si-adj-ptr")
{
si_adj_ptr.yfilter = yfilter;
}
if(value_path == "si-adj-present")
{
si_adj_present.yfilter = yfilter;
}
if(value_path == "si-special-type")
{
si_special_type.yfilter = yfilter;
}
if(value_path == "si-refcount")
{
si_refcount.yfilter = yfilter;
}
if(value_path == "si-flags")
{
si_flags.yfilter = yfilter;
}
if(value_path == "si-adj-if")
{
si_adj_if.yfilter = yfilter;
}
if(value_path == "si-ext-pfx")
{
si_ext_pfx.yfilter = yfilter;
}
if(value_path == "si-ext-pfx-len")
{
si_ext_pfx_len.yfilter = yfilter;
}
if(value_path == "si-ext-pfx-proto")
{
si_ext_pfx_proto.yfilter = yfilter;
}
if(value_path == "si-adj-address")
{
si_adj_address.yfilter = yfilter;
}
if(value_path == "si-adj-addrlen")
{
si_adj_addrlen.yfilter = yfilter;
}
if(value_path == "si-adj-addr-proto")
{
si_adj_addr_proto.yfilter = yfilter;
}
if(value_path == "si-adj-rw-len")
{
si_adj_rw_len.yfilter = yfilter;
}
if(value_path == "si-adj-rw")
{
si_adj_rw.yfilter = yfilter;
}
if(value_path == "si-dep-nhinfo-type")
{
si_dep_nhinfo_type.yfilter = yfilter;
}
if(value_path == "si-dep-nhinfo")
{
si_dep_nhinfo.yfilter = yfilter;
}
if(value_path == "si-dep-nhinfo-ifh")
{
si_dep_nhinfo_ifh.yfilter = yfilter;
}
if(value_path == "si-bkup-frr")
{
si_bkup_frr.yfilter = yfilter;
}
if(value_path == "si-protect-frr")
{
si_protect_frr.yfilter = yfilter;
}
if(value_path == "si-bkup-nhinfo")
{
si_bkup_nhinfo.yfilter = yfilter;
}
if(value_path == "si-bkup-ifh")
{
si_bkup_ifh.yfilter = yfilter;
}
if(value_path == "si-bkup-addr")
{
si_bkup_addr.yfilter = yfilter;
}
if(value_path == "si-bkup-addrlen")
{
si_bkup_addrlen.yfilter = yfilter;
}
if(value_path == "si-bkup-addr-proto")
{
si_bkup_addr_proto.yfilter = yfilter;
}
if(value_path == "si-frr-active")
{
si_frr_active.yfilter = yfilter;
}
if(value_path == "si-attr-is-ext-mgd")
{
si_attr_is_ext_mgd.yfilter = yfilter;
}
if(value_path == "si-attr-is-incomp")
{
si_attr_is_incomp.yfilter = yfilter;
}
if(value_path == "si-attr-is-tunnel")
{
si_attr_is_tunnel.yfilter = yfilter;
}
if(value_path == "si-attr-is-tunnel-srte")
{
si_attr_is_tunnel_srte.yfilter = yfilter;
}
if(value_path == "si-attr-is-gre-tunnel")
{
si_attr_is_gre_tunnel.yfilter = yfilter;
}
if(value_path == "si-gre-ti")
{
si_gre_ti.yfilter = yfilter;
}
if(value_path == "si-gre-ti-flags")
{
si_gre_ti_flags.yfilter = yfilter;
}
if(value_path == "si-gre-ti-refcnt")
{
si_gre_ti_refcnt.yfilter = yfilter;
}
if(value_path == "si-gre-tos-propagate")
{
si_gre_tos_propagate.yfilter = yfilter;
}
if(value_path == "si-hardware")
{
si_hardware.yfilter = yfilter;
}
if(value_path == "si-nhinfo-ptr")
{
si_nhinfo_ptr.yfilter = yfilter;
}
if(value_path == "si-fnb-idb-ptr")
{
si_fnb_idb_ptr.yfilter = yfilter;
}
if(value_path == "si-anc-ifh")
{
si_anc_ifh.yfilter = yfilter;
}
if(value_path == "si-gre-ti-resolving-leafp")
{
si_gre_ti_resolving_leafp.yfilter = yfilter;
}
if(value_path == "si-gre-dest-addr")
{
si_gre_dest_addr.yfilter = yfilter;
}
if(value_path == "si-nhid")
{
si_nhid.yfilter = yfilter;
}
if(value_path == "si-upd-ts")
{
si_upd_ts.yfilter = yfilter;
}
}
bool Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialNullBrief::has_leaf_or_child_of_name(const std::string & name) const
{
if(name == "si-pwhe" || name == "nh-info-extension" || name == "si-link-proto" || name == "si-nhinfo" || name == "si-nhtype" || name == "si-ifh" || name == "si-pfi-interface-type" || name == "si-adj-ptr" || name == "si-adj-present" || name == "si-special-type" || name == "si-refcount" || name == "si-flags" || name == "si-adj-if" || name == "si-ext-pfx" || name == "si-ext-pfx-len" || name == "si-ext-pfx-proto" || name == "si-adj-address" || name == "si-adj-addrlen" || name == "si-adj-addr-proto" || name == "si-adj-rw-len" || name == "si-adj-rw" || name == "si-dep-nhinfo-type" || name == "si-dep-nhinfo" || name == "si-dep-nhinfo-ifh" || name == "si-bkup-frr" || name == "si-protect-frr" || name == "si-bkup-nhinfo" || name == "si-bkup-ifh" || name == "si-bkup-addr" || name == "si-bkup-addrlen" || name == "si-bkup-addr-proto" || name == "si-frr-active" || name == "si-attr-is-ext-mgd" || name == "si-attr-is-incomp" || name == "si-attr-is-tunnel" || name == "si-attr-is-tunnel-srte" || name == "si-attr-is-gre-tunnel" || name == "si-gre-ti" || name == "si-gre-ti-flags" || name == "si-gre-ti-refcnt" || name == "si-gre-tos-propagate" || name == "si-hardware" || name == "si-nhinfo-ptr" || name == "si-fnb-idb-ptr" || name == "si-anc-ifh" || name == "si-gre-ti-resolving-leafp" || name == "si-gre-dest-addr" || name == "si-nhid" || name == "si-upd-ts")
return true;
return false;
}
Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialNullBrief::SiPwhe::SiPwhe()
:
pwhe_adjacency_client_data{YType::uint32, "pwhe-adjacency-client-data"},
vctype{YType::uint32, "vctype"},
vc_internal_label{YType::uint32, "vc-internal-label"},
cw_enabled{YType::boolean, "cw-enabled"},
l2_overhead_bytes{YType::uint16, "l2-overhead-bytes"},
dot1q_vlan_tag{YType::uint32, "dot1q-vlan-tag"}
{
yang_name = "si-pwhe"; yang_parent_name = "nh-info-special-null-brief"; is_top_level_class = false; has_list_ancestor = true;
}
Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialNullBrief::SiPwhe::~SiPwhe()
{
}
bool Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialNullBrief::SiPwhe::has_data() const
{
if (is_presence_container) return true;
return pwhe_adjacency_client_data.is_set
|| vctype.is_set
|| vc_internal_label.is_set
|| cw_enabled.is_set
|| l2_overhead_bytes.is_set
|| dot1q_vlan_tag.is_set;
}
bool Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialNullBrief::SiPwhe::has_operation() const
{
return is_set(yfilter)
|| ydk::is_set(pwhe_adjacency_client_data.yfilter)
|| ydk::is_set(vctype.yfilter)
|| ydk::is_set(vc_internal_label.yfilter)
|| ydk::is_set(cw_enabled.yfilter)
|| ydk::is_set(l2_overhead_bytes.yfilter)
|| ydk::is_set(dot1q_vlan_tag.yfilter);
}
std::string Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialNullBrief::SiPwhe::get_segment_path() const
{
std::ostringstream path_buffer;
path_buffer << "si-pwhe";
return path_buffer.str();
}
std::vector<std::pair<std::string, LeafData> > Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialNullBrief::SiPwhe::get_name_leaf_data() const
{
std::vector<std::pair<std::string, LeafData> > leaf_name_data {};
if (pwhe_adjacency_client_data.is_set || is_set(pwhe_adjacency_client_data.yfilter)) leaf_name_data.push_back(pwhe_adjacency_client_data.get_name_leafdata());
if (vctype.is_set || is_set(vctype.yfilter)) leaf_name_data.push_back(vctype.get_name_leafdata());
if (vc_internal_label.is_set || is_set(vc_internal_label.yfilter)) leaf_name_data.push_back(vc_internal_label.get_name_leafdata());
if (cw_enabled.is_set || is_set(cw_enabled.yfilter)) leaf_name_data.push_back(cw_enabled.get_name_leafdata());
if (l2_overhead_bytes.is_set || is_set(l2_overhead_bytes.yfilter)) leaf_name_data.push_back(l2_overhead_bytes.get_name_leafdata());
if (dot1q_vlan_tag.is_set || is_set(dot1q_vlan_tag.yfilter)) leaf_name_data.push_back(dot1q_vlan_tag.get_name_leafdata());
return leaf_name_data;
}
std::shared_ptr<ydk::Entity> Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialNullBrief::SiPwhe::get_child_by_name(const std::string & child_yang_name, const std::string & segment_path)
{
return nullptr;
}
std::map<std::string, std::shared_ptr<ydk::Entity>> Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialNullBrief::SiPwhe::get_children() const
{
std::map<std::string, std::shared_ptr<ydk::Entity>> _children{};
char count_=0;
return _children;
}
void Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialNullBrief::SiPwhe::set_value(const std::string & value_path, const std::string & value, const std::string & name_space, const std::string & name_space_prefix)
{
if(value_path == "pwhe-adjacency-client-data")
{
pwhe_adjacency_client_data = value;
pwhe_adjacency_client_data.value_namespace = name_space;
pwhe_adjacency_client_data.value_namespace_prefix = name_space_prefix;
}
if(value_path == "vctype")
{
vctype = value;
vctype.value_namespace = name_space;
vctype.value_namespace_prefix = name_space_prefix;
}
if(value_path == "vc-internal-label")
{
vc_internal_label = value;
vc_internal_label.value_namespace = name_space;
vc_internal_label.value_namespace_prefix = name_space_prefix;
}
if(value_path == "cw-enabled")
{
cw_enabled = value;
cw_enabled.value_namespace = name_space;
cw_enabled.value_namespace_prefix = name_space_prefix;
}
if(value_path == "l2-overhead-bytes")
{
l2_overhead_bytes = value;
l2_overhead_bytes.value_namespace = name_space;
l2_overhead_bytes.value_namespace_prefix = name_space_prefix;
}
if(value_path == "dot1q-vlan-tag")
{
dot1q_vlan_tag = value;
dot1q_vlan_tag.value_namespace = name_space;
dot1q_vlan_tag.value_namespace_prefix = name_space_prefix;
}
}
void Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialNullBrief::SiPwhe::set_filter(const std::string & value_path, YFilter yfilter)
{
if(value_path == "pwhe-adjacency-client-data")
{
pwhe_adjacency_client_data.yfilter = yfilter;
}
if(value_path == "vctype")
{
vctype.yfilter = yfilter;
}
if(value_path == "vc-internal-label")
{
vc_internal_label.yfilter = yfilter;
}
if(value_path == "cw-enabled")
{
cw_enabled.yfilter = yfilter;
}
if(value_path == "l2-overhead-bytes")
{
l2_overhead_bytes.yfilter = yfilter;
}
if(value_path == "dot1q-vlan-tag")
{
dot1q_vlan_tag.yfilter = yfilter;
}
}
bool Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialNullBrief::SiPwhe::has_leaf_or_child_of_name(const std::string & name) const
{
if(name == "pwhe-adjacency-client-data" || name == "vctype" || name == "vc-internal-label" || name == "cw-enabled" || name == "l2-overhead-bytes" || name == "dot1q-vlan-tag")
return true;
return false;
}
Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialNullBrief::NhInfoExtension::NhInfoExtension()
:
nh_info_extension_detail(this, {})
{
yang_name = "nh-info-extension"; yang_parent_name = "nh-info-special-null-brief"; is_top_level_class = false; has_list_ancestor = true;
}
Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialNullBrief::NhInfoExtension::~NhInfoExtension()
{
}
bool Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialNullBrief::NhInfoExtension::has_data() const
{
if (is_presence_container) return true;
for (std::size_t index=0; index<nh_info_extension_detail.len(); index++)
{
if(nh_info_extension_detail[index]->has_data())
return true;
}
return false;
}
bool Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialNullBrief::NhInfoExtension::has_operation() const
{
for (std::size_t index=0; index<nh_info_extension_detail.len(); index++)
{
if(nh_info_extension_detail[index]->has_operation())
return true;
}
return is_set(yfilter);
}
std::string Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialNullBrief::NhInfoExtension::get_segment_path() const
{
std::ostringstream path_buffer;
path_buffer << "nh-info-extension";
return path_buffer.str();
}
std::vector<std::pair<std::string, LeafData> > Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialNullBrief::NhInfoExtension::get_name_leaf_data() const
{
std::vector<std::pair<std::string, LeafData> > leaf_name_data {};
return leaf_name_data;
}
std::shared_ptr<ydk::Entity> Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialNullBrief::NhInfoExtension::get_child_by_name(const std::string & child_yang_name, const std::string & segment_path)
{
if(child_yang_name == "nh-info-extension-detail")
{
auto ent_ = std::make_shared<Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialNullBrief::NhInfoExtension::NhInfoExtensionDetail>();
ent_->parent = this;
nh_info_extension_detail.append(ent_);
return ent_;
}
return nullptr;
}
std::map<std::string, std::shared_ptr<ydk::Entity>> Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialNullBrief::NhInfoExtension::get_children() const
{
std::map<std::string, std::shared_ptr<ydk::Entity>> _children{};
char count_=0;
count_ = 0;
for (auto ent_ : nh_info_extension_detail.entities())
{
if(_children.find(ent_->get_segment_path()) == _children.end())
_children[ent_->get_segment_path()] = ent_;
else
_children[ent_->get_segment_path()+count_++] = ent_;
}
return _children;
}
void Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialNullBrief::NhInfoExtension::set_value(const std::string & value_path, const std::string & value, const std::string & name_space, const std::string & name_space_prefix)
{
}
void Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialNullBrief::NhInfoExtension::set_filter(const std::string & value_path, YFilter yfilter)
{
}
bool Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialNullBrief::NhInfoExtension::has_leaf_or_child_of_name(const std::string & name) const
{
if(name == "nh-info-extension-detail")
return true;
return false;
}
Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialNullBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionDetail()
:
nh_info_extension_base(std::make_shared<Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialNullBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionBase>())
, nh_info_extension_detail(std::make_shared<Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialNullBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionDetail_>())
{
nh_info_extension_base->parent = this;
nh_info_extension_detail->parent = this;
yang_name = "nh-info-extension-detail"; yang_parent_name = "nh-info-extension"; is_top_level_class = false; has_list_ancestor = true;
}
Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialNullBrief::NhInfoExtension::NhInfoExtensionDetail::~NhInfoExtensionDetail()
{
}
bool Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialNullBrief::NhInfoExtension::NhInfoExtensionDetail::has_data() const
{
if (is_presence_container) return true;
return (nh_info_extension_base != nullptr && nh_info_extension_base->has_data())
|| (nh_info_extension_detail != nullptr && nh_info_extension_detail->has_data());
}
bool Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialNullBrief::NhInfoExtension::NhInfoExtensionDetail::has_operation() const
{
return is_set(yfilter)
|| (nh_info_extension_base != nullptr && nh_info_extension_base->has_operation())
|| (nh_info_extension_detail != nullptr && nh_info_extension_detail->has_operation());
}
std::string Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialNullBrief::NhInfoExtension::NhInfoExtensionDetail::get_segment_path() const
{
std::ostringstream path_buffer;
path_buffer << "nh-info-extension-detail";
path_buffer << "[" << get_ylist_key() << "]";
return path_buffer.str();
}
std::vector<std::pair<std::string, LeafData> > Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialNullBrief::NhInfoExtension::NhInfoExtensionDetail::get_name_leaf_data() const
{
std::vector<std::pair<std::string, LeafData> > leaf_name_data {};
return leaf_name_data;
}
std::shared_ptr<ydk::Entity> Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialNullBrief::NhInfoExtension::NhInfoExtensionDetail::get_child_by_name(const std::string & child_yang_name, const std::string & segment_path)
{
if(child_yang_name == "nh-info-extension-base")
{
if(nh_info_extension_base == nullptr)
{
nh_info_extension_base = std::make_shared<Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialNullBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionBase>();
}
return nh_info_extension_base;
}
if(child_yang_name == "nh-info-extension-detail")
{
if(nh_info_extension_detail == nullptr)
{
nh_info_extension_detail = std::make_shared<Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialNullBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionDetail_>();
}
return nh_info_extension_detail;
}
return nullptr;
}
std::map<std::string, std::shared_ptr<ydk::Entity>> Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialNullBrief::NhInfoExtension::NhInfoExtensionDetail::get_children() const
{
std::map<std::string, std::shared_ptr<ydk::Entity>> _children{};
char count_=0;
if(nh_info_extension_base != nullptr)
{
_children["nh-info-extension-base"] = nh_info_extension_base;
}
if(nh_info_extension_detail != nullptr)
{
_children["nh-info-extension-detail"] = nh_info_extension_detail;
}
return _children;
}
void Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialNullBrief::NhInfoExtension::NhInfoExtensionDetail::set_value(const std::string & value_path, const std::string & value, const std::string & name_space, const std::string & name_space_prefix)
{
}
void Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialNullBrief::NhInfoExtension::NhInfoExtensionDetail::set_filter(const std::string & value_path, YFilter yfilter)
{
}
bool Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialNullBrief::NhInfoExtension::NhInfoExtensionDetail::has_leaf_or_child_of_name(const std::string & name) const
{
if(name == "nh-info-extension-base" || name == "nh-info-extension-detail")
return true;
return false;
}
Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialNullBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionBase::NhInfoExtensionBase()
:
parent_object_pointer{YType::uint64, "parent-object-pointer"},
back_object_pointer{YType::uint64, "back-object-pointer"}
,
object_base(std::make_shared<Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialNullBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionBase::ObjectBase>())
{
object_base->parent = this;
yang_name = "nh-info-extension-base"; yang_parent_name = "nh-info-extension-detail"; is_top_level_class = false; has_list_ancestor = true;
}
Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialNullBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionBase::~NhInfoExtensionBase()
{
}
bool Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialNullBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionBase::has_data() const
{
if (is_presence_container) return true;
return parent_object_pointer.is_set
|| back_object_pointer.is_set
|| (object_base != nullptr && object_base->has_data());
}
bool Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialNullBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionBase::has_operation() const
{
return is_set(yfilter)
|| ydk::is_set(parent_object_pointer.yfilter)
|| ydk::is_set(back_object_pointer.yfilter)
|| (object_base != nullptr && object_base->has_operation());
}
std::string Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialNullBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionBase::get_segment_path() const
{
std::ostringstream path_buffer;
path_buffer << "nh-info-extension-base";
return path_buffer.str();
}
std::vector<std::pair<std::string, LeafData> > Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialNullBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionBase::get_name_leaf_data() const
{
std::vector<std::pair<std::string, LeafData> > leaf_name_data {};
if (parent_object_pointer.is_set || is_set(parent_object_pointer.yfilter)) leaf_name_data.push_back(parent_object_pointer.get_name_leafdata());
if (back_object_pointer.is_set || is_set(back_object_pointer.yfilter)) leaf_name_data.push_back(back_object_pointer.get_name_leafdata());
return leaf_name_data;
}
std::shared_ptr<ydk::Entity> Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialNullBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionBase::get_child_by_name(const std::string & child_yang_name, const std::string & segment_path)
{
if(child_yang_name == "object-base")
{
if(object_base == nullptr)
{
object_base = std::make_shared<Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialNullBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionBase::ObjectBase>();
}
return object_base;
}
return nullptr;
}
std::map<std::string, std::shared_ptr<ydk::Entity>> Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialNullBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionBase::get_children() const
{
std::map<std::string, std::shared_ptr<ydk::Entity>> _children{};
char count_=0;
if(object_base != nullptr)
{
_children["object-base"] = object_base;
}
return _children;
}
void Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialNullBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionBase::set_value(const std::string & value_path, const std::string & value, const std::string & name_space, const std::string & name_space_prefix)
{
if(value_path == "parent-object-pointer")
{
parent_object_pointer = value;
parent_object_pointer.value_namespace = name_space;
parent_object_pointer.value_namespace_prefix = name_space_prefix;
}
if(value_path == "back-object-pointer")
{
back_object_pointer = value;
back_object_pointer.value_namespace = name_space;
back_object_pointer.value_namespace_prefix = name_space_prefix;
}
}
void Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialNullBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionBase::set_filter(const std::string & value_path, YFilter yfilter)
{
if(value_path == "parent-object-pointer")
{
parent_object_pointer.yfilter = yfilter;
}
if(value_path == "back-object-pointer")
{
back_object_pointer.yfilter = yfilter;
}
}
bool Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialNullBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionBase::has_leaf_or_child_of_name(const std::string & name) const
{
if(name == "object-base" || name == "parent-object-pointer" || name == "back-object-pointer")
return true;
return false;
}
Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialNullBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionBase::ObjectBase::ObjectBase()
:
object_reference_count{YType::uint32, "object-reference-count"},
object_flags{YType::uint32, "object-flags"},
object_type{YType::uint8, "object-type"},
object_time_stamp{YType::uint64, "object-time-stamp"},
object_pointer{YType::uint64, "object-pointer"}
{
yang_name = "object-base"; yang_parent_name = "nh-info-extension-base"; is_top_level_class = false; has_list_ancestor = true;
}
Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialNullBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionBase::ObjectBase::~ObjectBase()
{
}
bool Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialNullBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionBase::ObjectBase::has_data() const
{
if (is_presence_container) return true;
return object_reference_count.is_set
|| object_flags.is_set
|| object_type.is_set
|| object_time_stamp.is_set
|| object_pointer.is_set;
}
bool Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialNullBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionBase::ObjectBase::has_operation() const
{
return is_set(yfilter)
|| ydk::is_set(object_reference_count.yfilter)
|| ydk::is_set(object_flags.yfilter)
|| ydk::is_set(object_type.yfilter)
|| ydk::is_set(object_time_stamp.yfilter)
|| ydk::is_set(object_pointer.yfilter);
}
std::string Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialNullBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionBase::ObjectBase::get_segment_path() const
{
std::ostringstream path_buffer;
path_buffer << "object-base";
return path_buffer.str();
}
std::vector<std::pair<std::string, LeafData> > Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialNullBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionBase::ObjectBase::get_name_leaf_data() const
{
std::vector<std::pair<std::string, LeafData> > leaf_name_data {};
if (object_reference_count.is_set || is_set(object_reference_count.yfilter)) leaf_name_data.push_back(object_reference_count.get_name_leafdata());
if (object_flags.is_set || is_set(object_flags.yfilter)) leaf_name_data.push_back(object_flags.get_name_leafdata());
if (object_type.is_set || is_set(object_type.yfilter)) leaf_name_data.push_back(object_type.get_name_leafdata());
if (object_time_stamp.is_set || is_set(object_time_stamp.yfilter)) leaf_name_data.push_back(object_time_stamp.get_name_leafdata());
if (object_pointer.is_set || is_set(object_pointer.yfilter)) leaf_name_data.push_back(object_pointer.get_name_leafdata());
return leaf_name_data;
}
std::shared_ptr<ydk::Entity> Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialNullBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionBase::ObjectBase::get_child_by_name(const std::string & child_yang_name, const std::string & segment_path)
{
return nullptr;
}
std::map<std::string, std::shared_ptr<ydk::Entity>> Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialNullBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionBase::ObjectBase::get_children() const
{
std::map<std::string, std::shared_ptr<ydk::Entity>> _children{};
char count_=0;
return _children;
}
void Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialNullBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionBase::ObjectBase::set_value(const std::string & value_path, const std::string & value, const std::string & name_space, const std::string & name_space_prefix)
{
if(value_path == "object-reference-count")
{
object_reference_count = value;
object_reference_count.value_namespace = name_space;
object_reference_count.value_namespace_prefix = name_space_prefix;
}
if(value_path == "object-flags")
{
object_flags = value;
object_flags.value_namespace = name_space;
object_flags.value_namespace_prefix = name_space_prefix;
}
if(value_path == "object-type")
{
object_type = value;
object_type.value_namespace = name_space;
object_type.value_namespace_prefix = name_space_prefix;
}
if(value_path == "object-time-stamp")
{
object_time_stamp = value;
object_time_stamp.value_namespace = name_space;
object_time_stamp.value_namespace_prefix = name_space_prefix;
}
if(value_path == "object-pointer")
{
object_pointer = value;
object_pointer.value_namespace = name_space;
object_pointer.value_namespace_prefix = name_space_prefix;
}
}
void Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialNullBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionBase::ObjectBase::set_filter(const std::string & value_path, YFilter yfilter)
{
if(value_path == "object-reference-count")
{
object_reference_count.yfilter = yfilter;
}
if(value_path == "object-flags")
{
object_flags.yfilter = yfilter;
}
if(value_path == "object-type")
{
object_type.yfilter = yfilter;
}
if(value_path == "object-time-stamp")
{
object_time_stamp.yfilter = yfilter;
}
if(value_path == "object-pointer")
{
object_pointer.yfilter = yfilter;
}
}
bool Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialNullBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionBase::ObjectBase::has_leaf_or_child_of_name(const std::string & name) const
{
if(name == "object-reference-count" || name == "object-flags" || name == "object-type" || name == "object-time-stamp" || name == "object-pointer")
return true;
return false;
}
Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialNullBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionDetail_::NhInfoExtensionDetail_()
:
type{YType::enumeration, "type"}
,
snecd_nhr(std::make_shared<Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialNullBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionDetail_::SnecdNhr>())
{
snecd_nhr->parent = this;
yang_name = "nh-info-extension-detail"; yang_parent_name = "nh-info-extension-detail"; is_top_level_class = false; has_list_ancestor = true;
}
Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialNullBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionDetail_::~NhInfoExtensionDetail_()
{
}
bool Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialNullBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionDetail_::has_data() const
{
if (is_presence_container) return true;
return type.is_set
|| (snecd_nhr != nullptr && snecd_nhr->has_data());
}
bool Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialNullBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionDetail_::has_operation() const
{
return is_set(yfilter)
|| ydk::is_set(type.yfilter)
|| (snecd_nhr != nullptr && snecd_nhr->has_operation());
}
std::string Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialNullBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionDetail_::get_segment_path() const
{
std::ostringstream path_buffer;
path_buffer << "nh-info-extension-detail";
return path_buffer.str();
}
std::vector<std::pair<std::string, LeafData> > Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialNullBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionDetail_::get_name_leaf_data() const
{
std::vector<std::pair<std::string, LeafData> > leaf_name_data {};
if (type.is_set || is_set(type.yfilter)) leaf_name_data.push_back(type.get_name_leafdata());
return leaf_name_data;
}
std::shared_ptr<ydk::Entity> Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialNullBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionDetail_::get_child_by_name(const std::string & child_yang_name, const std::string & segment_path)
{
if(child_yang_name == "snecd-nhr")
{
if(snecd_nhr == nullptr)
{
snecd_nhr = std::make_shared<Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialNullBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionDetail_::SnecdNhr>();
}
return snecd_nhr;
}
return nullptr;
}
std::map<std::string, std::shared_ptr<ydk::Entity>> Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialNullBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionDetail_::get_children() const
{
std::map<std::string, std::shared_ptr<ydk::Entity>> _children{};
char count_=0;
if(snecd_nhr != nullptr)
{
_children["snecd-nhr"] = snecd_nhr;
}
return _children;
}
void Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialNullBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionDetail_::set_value(const std::string & value_path, const std::string & value, const std::string & name_space, const std::string & name_space_prefix)
{
if(value_path == "type")
{
type = value;
type.value_namespace = name_space;
type.value_namespace_prefix = name_space_prefix;
}
}
void Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialNullBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionDetail_::set_filter(const std::string & value_path, YFilter yfilter)
{
if(value_path == "type")
{
type.yfilter = yfilter;
}
}
bool Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialNullBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionDetail_::has_leaf_or_child_of_name(const std::string & name) const
{
if(name == "snecd-nhr" || name == "type")
return true;
return false;
}
Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialNullBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionDetail_::SnecdNhr::SnecdNhr()
:
nh_info_replicated_type{YType::uint8, "nh-info-replicated-type"},
nh_info_replicated_nh_id{YType::uint32, "nh-info-replicated-nh-id"},
nh_info_replicated_encap_id{YType::uint64, "nh-info-replicated-encap-id"},
nh_info_replicated_interface{YType::str, "nh-info-replicated-interface"}
{
yang_name = "snecd-nhr"; yang_parent_name = "nh-info-extension-detail"; is_top_level_class = false; has_list_ancestor = true;
}
Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialNullBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionDetail_::SnecdNhr::~SnecdNhr()
{
}
bool Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialNullBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionDetail_::SnecdNhr::has_data() const
{
if (is_presence_container) return true;
return nh_info_replicated_type.is_set
|| nh_info_replicated_nh_id.is_set
|| nh_info_replicated_encap_id.is_set
|| nh_info_replicated_interface.is_set;
}
bool Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialNullBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionDetail_::SnecdNhr::has_operation() const
{
return is_set(yfilter)
|| ydk::is_set(nh_info_replicated_type.yfilter)
|| ydk::is_set(nh_info_replicated_nh_id.yfilter)
|| ydk::is_set(nh_info_replicated_encap_id.yfilter)
|| ydk::is_set(nh_info_replicated_interface.yfilter);
}
std::string Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialNullBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionDetail_::SnecdNhr::get_segment_path() const
{
std::ostringstream path_buffer;
path_buffer << "snecd-nhr";
return path_buffer.str();
}
std::vector<std::pair<std::string, LeafData> > Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialNullBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionDetail_::SnecdNhr::get_name_leaf_data() const
{
std::vector<std::pair<std::string, LeafData> > leaf_name_data {};
if (nh_info_replicated_type.is_set || is_set(nh_info_replicated_type.yfilter)) leaf_name_data.push_back(nh_info_replicated_type.get_name_leafdata());
if (nh_info_replicated_nh_id.is_set || is_set(nh_info_replicated_nh_id.yfilter)) leaf_name_data.push_back(nh_info_replicated_nh_id.get_name_leafdata());
if (nh_info_replicated_encap_id.is_set || is_set(nh_info_replicated_encap_id.yfilter)) leaf_name_data.push_back(nh_info_replicated_encap_id.get_name_leafdata());
if (nh_info_replicated_interface.is_set || is_set(nh_info_replicated_interface.yfilter)) leaf_name_data.push_back(nh_info_replicated_interface.get_name_leafdata());
return leaf_name_data;
}
std::shared_ptr<ydk::Entity> Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialNullBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionDetail_::SnecdNhr::get_child_by_name(const std::string & child_yang_name, const std::string & segment_path)
{
return nullptr;
}
std::map<std::string, std::shared_ptr<ydk::Entity>> Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialNullBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionDetail_::SnecdNhr::get_children() const
{
std::map<std::string, std::shared_ptr<ydk::Entity>> _children{};
char count_=0;
return _children;
}
void Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialNullBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionDetail_::SnecdNhr::set_value(const std::string & value_path, const std::string & value, const std::string & name_space, const std::string & name_space_prefix)
{
if(value_path == "nh-info-replicated-type")
{
nh_info_replicated_type = value;
nh_info_replicated_type.value_namespace = name_space;
nh_info_replicated_type.value_namespace_prefix = name_space_prefix;
}
if(value_path == "nh-info-replicated-nh-id")
{
nh_info_replicated_nh_id = value;
nh_info_replicated_nh_id.value_namespace = name_space;
nh_info_replicated_nh_id.value_namespace_prefix = name_space_prefix;
}
if(value_path == "nh-info-replicated-encap-id")
{
nh_info_replicated_encap_id = value;
nh_info_replicated_encap_id.value_namespace = name_space;
nh_info_replicated_encap_id.value_namespace_prefix = name_space_prefix;
}
if(value_path == "nh-info-replicated-interface")
{
nh_info_replicated_interface = value;
nh_info_replicated_interface.value_namespace = name_space;
nh_info_replicated_interface.value_namespace_prefix = name_space_prefix;
}
}
void Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialNullBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionDetail_::SnecdNhr::set_filter(const std::string & value_path, YFilter yfilter)
{
if(value_path == "nh-info-replicated-type")
{
nh_info_replicated_type.yfilter = yfilter;
}
if(value_path == "nh-info-replicated-nh-id")
{
nh_info_replicated_nh_id.yfilter = yfilter;
}
if(value_path == "nh-info-replicated-encap-id")
{
nh_info_replicated_encap_id.yfilter = yfilter;
}
if(value_path == "nh-info-replicated-interface")
{
nh_info_replicated_interface.yfilter = yfilter;
}
}
bool Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialNullBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionDetail_::SnecdNhr::has_leaf_or_child_of_name(const std::string & name) const
{
if(name == "nh-info-replicated-type" || name == "nh-info-replicated-nh-id" || name == "nh-info-replicated-encap-id" || name == "nh-info-replicated-interface")
return true;
return false;
}
Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialPuntBrief::NhInfoSpecialPuntBrief()
:
si_link_proto{YType::uint32, "si-link-proto"},
si_nhinfo{YType::uint32, "si-nhinfo"},
si_nhtype{YType::uint32, "si-nhtype"},
si_ifh{YType::uint32, "si-ifh"},
si_pfi_interface_type{YType::uint32, "si-pfi-interface-type"},
si_adj_ptr{YType::uint32, "si-adj-ptr"},
si_adj_present{YType::boolean, "si-adj-present"},
si_special_type{YType::uint32, "si-special-type"},
si_refcount{YType::uint32, "si-refcount"},
si_flags{YType::uint32, "si-flags"},
si_adj_if{YType::uint32, "si-adj-if"},
si_ext_pfx{YType::str, "si-ext-pfx"},
si_ext_pfx_len{YType::uint32, "si-ext-pfx-len"},
si_ext_pfx_proto{YType::uint32, "si-ext-pfx-proto"},
si_adj_address{YType::str, "si-adj-address"},
si_adj_addrlen{YType::uint32, "si-adj-addrlen"},
si_adj_addr_proto{YType::uint32, "si-adj-addr-proto"},
si_adj_rw_len{YType::uint32, "si-adj-rw-len"},
si_adj_rw{YType::str, "si-adj-rw"},
si_dep_nhinfo_type{YType::uint32, "si-dep-nhinfo-type"},
si_dep_nhinfo{YType::uint32, "si-dep-nhinfo"},
si_dep_nhinfo_ifh{YType::uint32, "si-dep-nhinfo-ifh"},
si_bkup_frr{YType::uint32, "si-bkup-frr"},
si_protect_frr{YType::uint32, "si-protect-frr"},
si_bkup_nhinfo{YType::uint32, "si-bkup-nhinfo"},
si_bkup_ifh{YType::uint32, "si-bkup-ifh"},
si_bkup_addr{YType::str, "si-bkup-addr"},
si_bkup_addrlen{YType::uint32, "si-bkup-addrlen"},
si_bkup_addr_proto{YType::uint32, "si-bkup-addr-proto"},
si_frr_active{YType::boolean, "si-frr-active"},
si_attr_is_ext_mgd{YType::boolean, "si-attr-is-ext-mgd"},
si_attr_is_incomp{YType::boolean, "si-attr-is-incomp"},
si_attr_is_tunnel{YType::boolean, "si-attr-is-tunnel"},
si_attr_is_tunnel_srte{YType::boolean, "si-attr-is-tunnel-srte"},
si_attr_is_gre_tunnel{YType::boolean, "si-attr-is-gre-tunnel"},
si_gre_ti{YType::uint32, "si-gre-ti"},
si_gre_ti_flags{YType::uint32, "si-gre-ti-flags"},
si_gre_ti_refcnt{YType::uint32, "si-gre-ti-refcnt"},
si_gre_tos_propagate{YType::boolean, "si-gre-tos-propagate"},
si_hardware{YType::str, "si-hardware"},
si_nhinfo_ptr{YType::uint32, "si-nhinfo-ptr"},
si_fnb_idb_ptr{YType::uint32, "si-fnb-idb-ptr"},
si_anc_ifh{YType::uint32, "si-anc-ifh"},
si_gre_ti_resolving_leafp{YType::uint32, "si-gre-ti-resolving-leafp"},
si_gre_dest_addr{YType::str, "si-gre-dest-addr"},
si_nhid{YType::uint32, "si-nhid"},
si_upd_ts{YType::uint64, "si-upd-ts"}
,
si_pwhe(std::make_shared<Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialPuntBrief::SiPwhe>())
, nh_info_extension(std::make_shared<Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialPuntBrief::NhInfoExtension>())
{
si_pwhe->parent = this;
nh_info_extension->parent = this;
yang_name = "nh-info-special-punt-brief"; yang_parent_name = "nh-info-special-brief"; is_top_level_class = false; has_list_ancestor = true;
}
Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialPuntBrief::~NhInfoSpecialPuntBrief()
{
}
bool Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialPuntBrief::has_data() const
{
if (is_presence_container) return true;
return si_link_proto.is_set
|| si_nhinfo.is_set
|| si_nhtype.is_set
|| si_ifh.is_set
|| si_pfi_interface_type.is_set
|| si_adj_ptr.is_set
|| si_adj_present.is_set
|| si_special_type.is_set
|| si_refcount.is_set
|| si_flags.is_set
|| si_adj_if.is_set
|| si_ext_pfx.is_set
|| si_ext_pfx_len.is_set
|| si_ext_pfx_proto.is_set
|| si_adj_address.is_set
|| si_adj_addrlen.is_set
|| si_adj_addr_proto.is_set
|| si_adj_rw_len.is_set
|| si_adj_rw.is_set
|| si_dep_nhinfo_type.is_set
|| si_dep_nhinfo.is_set
|| si_dep_nhinfo_ifh.is_set
|| si_bkup_frr.is_set
|| si_protect_frr.is_set
|| si_bkup_nhinfo.is_set
|| si_bkup_ifh.is_set
|| si_bkup_addr.is_set
|| si_bkup_addrlen.is_set
|| si_bkup_addr_proto.is_set
|| si_frr_active.is_set
|| si_attr_is_ext_mgd.is_set
|| si_attr_is_incomp.is_set
|| si_attr_is_tunnel.is_set
|| si_attr_is_tunnel_srte.is_set
|| si_attr_is_gre_tunnel.is_set
|| si_gre_ti.is_set
|| si_gre_ti_flags.is_set
|| si_gre_ti_refcnt.is_set
|| si_gre_tos_propagate.is_set
|| si_hardware.is_set
|| si_nhinfo_ptr.is_set
|| si_fnb_idb_ptr.is_set
|| si_anc_ifh.is_set
|| si_gre_ti_resolving_leafp.is_set
|| si_gre_dest_addr.is_set
|| si_nhid.is_set
|| si_upd_ts.is_set
|| (si_pwhe != nullptr && si_pwhe->has_data())
|| (nh_info_extension != nullptr && nh_info_extension->has_data());
}
bool Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialPuntBrief::has_operation() const
{
return is_set(yfilter)
|| ydk::is_set(si_link_proto.yfilter)
|| ydk::is_set(si_nhinfo.yfilter)
|| ydk::is_set(si_nhtype.yfilter)
|| ydk::is_set(si_ifh.yfilter)
|| ydk::is_set(si_pfi_interface_type.yfilter)
|| ydk::is_set(si_adj_ptr.yfilter)
|| ydk::is_set(si_adj_present.yfilter)
|| ydk::is_set(si_special_type.yfilter)
|| ydk::is_set(si_refcount.yfilter)
|| ydk::is_set(si_flags.yfilter)
|| ydk::is_set(si_adj_if.yfilter)
|| ydk::is_set(si_ext_pfx.yfilter)
|| ydk::is_set(si_ext_pfx_len.yfilter)
|| ydk::is_set(si_ext_pfx_proto.yfilter)
|| ydk::is_set(si_adj_address.yfilter)
|| ydk::is_set(si_adj_addrlen.yfilter)
|| ydk::is_set(si_adj_addr_proto.yfilter)
|| ydk::is_set(si_adj_rw_len.yfilter)
|| ydk::is_set(si_adj_rw.yfilter)
|| ydk::is_set(si_dep_nhinfo_type.yfilter)
|| ydk::is_set(si_dep_nhinfo.yfilter)
|| ydk::is_set(si_dep_nhinfo_ifh.yfilter)
|| ydk::is_set(si_bkup_frr.yfilter)
|| ydk::is_set(si_protect_frr.yfilter)
|| ydk::is_set(si_bkup_nhinfo.yfilter)
|| ydk::is_set(si_bkup_ifh.yfilter)
|| ydk::is_set(si_bkup_addr.yfilter)
|| ydk::is_set(si_bkup_addrlen.yfilter)
|| ydk::is_set(si_bkup_addr_proto.yfilter)
|| ydk::is_set(si_frr_active.yfilter)
|| ydk::is_set(si_attr_is_ext_mgd.yfilter)
|| ydk::is_set(si_attr_is_incomp.yfilter)
|| ydk::is_set(si_attr_is_tunnel.yfilter)
|| ydk::is_set(si_attr_is_tunnel_srte.yfilter)
|| ydk::is_set(si_attr_is_gre_tunnel.yfilter)
|| ydk::is_set(si_gre_ti.yfilter)
|| ydk::is_set(si_gre_ti_flags.yfilter)
|| ydk::is_set(si_gre_ti_refcnt.yfilter)
|| ydk::is_set(si_gre_tos_propagate.yfilter)
|| ydk::is_set(si_hardware.yfilter)
|| ydk::is_set(si_nhinfo_ptr.yfilter)
|| ydk::is_set(si_fnb_idb_ptr.yfilter)
|| ydk::is_set(si_anc_ifh.yfilter)
|| ydk::is_set(si_gre_ti_resolving_leafp.yfilter)
|| ydk::is_set(si_gre_dest_addr.yfilter)
|| ydk::is_set(si_nhid.yfilter)
|| ydk::is_set(si_upd_ts.yfilter)
|| (si_pwhe != nullptr && si_pwhe->has_operation())
|| (nh_info_extension != nullptr && nh_info_extension->has_operation());
}
std::string Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialPuntBrief::get_segment_path() const
{
std::ostringstream path_buffer;
path_buffer << "nh-info-special-punt-brief";
return path_buffer.str();
}
std::vector<std::pair<std::string, LeafData> > Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialPuntBrief::get_name_leaf_data() const
{
std::vector<std::pair<std::string, LeafData> > leaf_name_data {};
if (si_link_proto.is_set || is_set(si_link_proto.yfilter)) leaf_name_data.push_back(si_link_proto.get_name_leafdata());
if (si_nhinfo.is_set || is_set(si_nhinfo.yfilter)) leaf_name_data.push_back(si_nhinfo.get_name_leafdata());
if (si_nhtype.is_set || is_set(si_nhtype.yfilter)) leaf_name_data.push_back(si_nhtype.get_name_leafdata());
if (si_ifh.is_set || is_set(si_ifh.yfilter)) leaf_name_data.push_back(si_ifh.get_name_leafdata());
if (si_pfi_interface_type.is_set || is_set(si_pfi_interface_type.yfilter)) leaf_name_data.push_back(si_pfi_interface_type.get_name_leafdata());
if (si_adj_ptr.is_set || is_set(si_adj_ptr.yfilter)) leaf_name_data.push_back(si_adj_ptr.get_name_leafdata());
if (si_adj_present.is_set || is_set(si_adj_present.yfilter)) leaf_name_data.push_back(si_adj_present.get_name_leafdata());
if (si_special_type.is_set || is_set(si_special_type.yfilter)) leaf_name_data.push_back(si_special_type.get_name_leafdata());
if (si_refcount.is_set || is_set(si_refcount.yfilter)) leaf_name_data.push_back(si_refcount.get_name_leafdata());
if (si_flags.is_set || is_set(si_flags.yfilter)) leaf_name_data.push_back(si_flags.get_name_leafdata());
if (si_adj_if.is_set || is_set(si_adj_if.yfilter)) leaf_name_data.push_back(si_adj_if.get_name_leafdata());
if (si_ext_pfx.is_set || is_set(si_ext_pfx.yfilter)) leaf_name_data.push_back(si_ext_pfx.get_name_leafdata());
if (si_ext_pfx_len.is_set || is_set(si_ext_pfx_len.yfilter)) leaf_name_data.push_back(si_ext_pfx_len.get_name_leafdata());
if (si_ext_pfx_proto.is_set || is_set(si_ext_pfx_proto.yfilter)) leaf_name_data.push_back(si_ext_pfx_proto.get_name_leafdata());
if (si_adj_address.is_set || is_set(si_adj_address.yfilter)) leaf_name_data.push_back(si_adj_address.get_name_leafdata());
if (si_adj_addrlen.is_set || is_set(si_adj_addrlen.yfilter)) leaf_name_data.push_back(si_adj_addrlen.get_name_leafdata());
if (si_adj_addr_proto.is_set || is_set(si_adj_addr_proto.yfilter)) leaf_name_data.push_back(si_adj_addr_proto.get_name_leafdata());
if (si_adj_rw_len.is_set || is_set(si_adj_rw_len.yfilter)) leaf_name_data.push_back(si_adj_rw_len.get_name_leafdata());
if (si_adj_rw.is_set || is_set(si_adj_rw.yfilter)) leaf_name_data.push_back(si_adj_rw.get_name_leafdata());
if (si_dep_nhinfo_type.is_set || is_set(si_dep_nhinfo_type.yfilter)) leaf_name_data.push_back(si_dep_nhinfo_type.get_name_leafdata());
if (si_dep_nhinfo.is_set || is_set(si_dep_nhinfo.yfilter)) leaf_name_data.push_back(si_dep_nhinfo.get_name_leafdata());
if (si_dep_nhinfo_ifh.is_set || is_set(si_dep_nhinfo_ifh.yfilter)) leaf_name_data.push_back(si_dep_nhinfo_ifh.get_name_leafdata());
if (si_bkup_frr.is_set || is_set(si_bkup_frr.yfilter)) leaf_name_data.push_back(si_bkup_frr.get_name_leafdata());
if (si_protect_frr.is_set || is_set(si_protect_frr.yfilter)) leaf_name_data.push_back(si_protect_frr.get_name_leafdata());
if (si_bkup_nhinfo.is_set || is_set(si_bkup_nhinfo.yfilter)) leaf_name_data.push_back(si_bkup_nhinfo.get_name_leafdata());
if (si_bkup_ifh.is_set || is_set(si_bkup_ifh.yfilter)) leaf_name_data.push_back(si_bkup_ifh.get_name_leafdata());
if (si_bkup_addr.is_set || is_set(si_bkup_addr.yfilter)) leaf_name_data.push_back(si_bkup_addr.get_name_leafdata());
if (si_bkup_addrlen.is_set || is_set(si_bkup_addrlen.yfilter)) leaf_name_data.push_back(si_bkup_addrlen.get_name_leafdata());
if (si_bkup_addr_proto.is_set || is_set(si_bkup_addr_proto.yfilter)) leaf_name_data.push_back(si_bkup_addr_proto.get_name_leafdata());
if (si_frr_active.is_set || is_set(si_frr_active.yfilter)) leaf_name_data.push_back(si_frr_active.get_name_leafdata());
if (si_attr_is_ext_mgd.is_set || is_set(si_attr_is_ext_mgd.yfilter)) leaf_name_data.push_back(si_attr_is_ext_mgd.get_name_leafdata());
if (si_attr_is_incomp.is_set || is_set(si_attr_is_incomp.yfilter)) leaf_name_data.push_back(si_attr_is_incomp.get_name_leafdata());
if (si_attr_is_tunnel.is_set || is_set(si_attr_is_tunnel.yfilter)) leaf_name_data.push_back(si_attr_is_tunnel.get_name_leafdata());
if (si_attr_is_tunnel_srte.is_set || is_set(si_attr_is_tunnel_srte.yfilter)) leaf_name_data.push_back(si_attr_is_tunnel_srte.get_name_leafdata());
if (si_attr_is_gre_tunnel.is_set || is_set(si_attr_is_gre_tunnel.yfilter)) leaf_name_data.push_back(si_attr_is_gre_tunnel.get_name_leafdata());
if (si_gre_ti.is_set || is_set(si_gre_ti.yfilter)) leaf_name_data.push_back(si_gre_ti.get_name_leafdata());
if (si_gre_ti_flags.is_set || is_set(si_gre_ti_flags.yfilter)) leaf_name_data.push_back(si_gre_ti_flags.get_name_leafdata());
if (si_gre_ti_refcnt.is_set || is_set(si_gre_ti_refcnt.yfilter)) leaf_name_data.push_back(si_gre_ti_refcnt.get_name_leafdata());
if (si_gre_tos_propagate.is_set || is_set(si_gre_tos_propagate.yfilter)) leaf_name_data.push_back(si_gre_tos_propagate.get_name_leafdata());
if (si_hardware.is_set || is_set(si_hardware.yfilter)) leaf_name_data.push_back(si_hardware.get_name_leafdata());
if (si_nhinfo_ptr.is_set || is_set(si_nhinfo_ptr.yfilter)) leaf_name_data.push_back(si_nhinfo_ptr.get_name_leafdata());
if (si_fnb_idb_ptr.is_set || is_set(si_fnb_idb_ptr.yfilter)) leaf_name_data.push_back(si_fnb_idb_ptr.get_name_leafdata());
if (si_anc_ifh.is_set || is_set(si_anc_ifh.yfilter)) leaf_name_data.push_back(si_anc_ifh.get_name_leafdata());
if (si_gre_ti_resolving_leafp.is_set || is_set(si_gre_ti_resolving_leafp.yfilter)) leaf_name_data.push_back(si_gre_ti_resolving_leafp.get_name_leafdata());
if (si_gre_dest_addr.is_set || is_set(si_gre_dest_addr.yfilter)) leaf_name_data.push_back(si_gre_dest_addr.get_name_leafdata());
if (si_nhid.is_set || is_set(si_nhid.yfilter)) leaf_name_data.push_back(si_nhid.get_name_leafdata());
if (si_upd_ts.is_set || is_set(si_upd_ts.yfilter)) leaf_name_data.push_back(si_upd_ts.get_name_leafdata());
return leaf_name_data;
}
std::shared_ptr<ydk::Entity> Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialPuntBrief::get_child_by_name(const std::string & child_yang_name, const std::string & segment_path)
{
if(child_yang_name == "si-pwhe")
{
if(si_pwhe == nullptr)
{
si_pwhe = std::make_shared<Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialPuntBrief::SiPwhe>();
}
return si_pwhe;
}
if(child_yang_name == "nh-info-extension")
{
if(nh_info_extension == nullptr)
{
nh_info_extension = std::make_shared<Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialPuntBrief::NhInfoExtension>();
}
return nh_info_extension;
}
return nullptr;
}
std::map<std::string, std::shared_ptr<ydk::Entity>> Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialPuntBrief::get_children() const
{
std::map<std::string, std::shared_ptr<ydk::Entity>> _children{};
char count_=0;
if(si_pwhe != nullptr)
{
_children["si-pwhe"] = si_pwhe;
}
if(nh_info_extension != nullptr)
{
_children["nh-info-extension"] = nh_info_extension;
}
return _children;
}
void Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialPuntBrief::set_value(const std::string & value_path, const std::string & value, const std::string & name_space, const std::string & name_space_prefix)
{
if(value_path == "si-link-proto")
{
si_link_proto = value;
si_link_proto.value_namespace = name_space;
si_link_proto.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-nhinfo")
{
si_nhinfo = value;
si_nhinfo.value_namespace = name_space;
si_nhinfo.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-nhtype")
{
si_nhtype = value;
si_nhtype.value_namespace = name_space;
si_nhtype.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-ifh")
{
si_ifh = value;
si_ifh.value_namespace = name_space;
si_ifh.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-pfi-interface-type")
{
si_pfi_interface_type = value;
si_pfi_interface_type.value_namespace = name_space;
si_pfi_interface_type.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-adj-ptr")
{
si_adj_ptr = value;
si_adj_ptr.value_namespace = name_space;
si_adj_ptr.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-adj-present")
{
si_adj_present = value;
si_adj_present.value_namespace = name_space;
si_adj_present.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-special-type")
{
si_special_type = value;
si_special_type.value_namespace = name_space;
si_special_type.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-refcount")
{
si_refcount = value;
si_refcount.value_namespace = name_space;
si_refcount.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-flags")
{
si_flags = value;
si_flags.value_namespace = name_space;
si_flags.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-adj-if")
{
si_adj_if = value;
si_adj_if.value_namespace = name_space;
si_adj_if.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-ext-pfx")
{
si_ext_pfx = value;
si_ext_pfx.value_namespace = name_space;
si_ext_pfx.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-ext-pfx-len")
{
si_ext_pfx_len = value;
si_ext_pfx_len.value_namespace = name_space;
si_ext_pfx_len.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-ext-pfx-proto")
{
si_ext_pfx_proto = value;
si_ext_pfx_proto.value_namespace = name_space;
si_ext_pfx_proto.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-adj-address")
{
si_adj_address = value;
si_adj_address.value_namespace = name_space;
si_adj_address.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-adj-addrlen")
{
si_adj_addrlen = value;
si_adj_addrlen.value_namespace = name_space;
si_adj_addrlen.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-adj-addr-proto")
{
si_adj_addr_proto = value;
si_adj_addr_proto.value_namespace = name_space;
si_adj_addr_proto.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-adj-rw-len")
{
si_adj_rw_len = value;
si_adj_rw_len.value_namespace = name_space;
si_adj_rw_len.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-adj-rw")
{
si_adj_rw = value;
si_adj_rw.value_namespace = name_space;
si_adj_rw.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-dep-nhinfo-type")
{
si_dep_nhinfo_type = value;
si_dep_nhinfo_type.value_namespace = name_space;
si_dep_nhinfo_type.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-dep-nhinfo")
{
si_dep_nhinfo = value;
si_dep_nhinfo.value_namespace = name_space;
si_dep_nhinfo.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-dep-nhinfo-ifh")
{
si_dep_nhinfo_ifh = value;
si_dep_nhinfo_ifh.value_namespace = name_space;
si_dep_nhinfo_ifh.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-bkup-frr")
{
si_bkup_frr = value;
si_bkup_frr.value_namespace = name_space;
si_bkup_frr.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-protect-frr")
{
si_protect_frr = value;
si_protect_frr.value_namespace = name_space;
si_protect_frr.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-bkup-nhinfo")
{
si_bkup_nhinfo = value;
si_bkup_nhinfo.value_namespace = name_space;
si_bkup_nhinfo.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-bkup-ifh")
{
si_bkup_ifh = value;
si_bkup_ifh.value_namespace = name_space;
si_bkup_ifh.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-bkup-addr")
{
si_bkup_addr = value;
si_bkup_addr.value_namespace = name_space;
si_bkup_addr.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-bkup-addrlen")
{
si_bkup_addrlen = value;
si_bkup_addrlen.value_namespace = name_space;
si_bkup_addrlen.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-bkup-addr-proto")
{
si_bkup_addr_proto = value;
si_bkup_addr_proto.value_namespace = name_space;
si_bkup_addr_proto.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-frr-active")
{
si_frr_active = value;
si_frr_active.value_namespace = name_space;
si_frr_active.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-attr-is-ext-mgd")
{
si_attr_is_ext_mgd = value;
si_attr_is_ext_mgd.value_namespace = name_space;
si_attr_is_ext_mgd.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-attr-is-incomp")
{
si_attr_is_incomp = value;
si_attr_is_incomp.value_namespace = name_space;
si_attr_is_incomp.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-attr-is-tunnel")
{
si_attr_is_tunnel = value;
si_attr_is_tunnel.value_namespace = name_space;
si_attr_is_tunnel.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-attr-is-tunnel-srte")
{
si_attr_is_tunnel_srte = value;
si_attr_is_tunnel_srte.value_namespace = name_space;
si_attr_is_tunnel_srte.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-attr-is-gre-tunnel")
{
si_attr_is_gre_tunnel = value;
si_attr_is_gre_tunnel.value_namespace = name_space;
si_attr_is_gre_tunnel.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-gre-ti")
{
si_gre_ti = value;
si_gre_ti.value_namespace = name_space;
si_gre_ti.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-gre-ti-flags")
{
si_gre_ti_flags = value;
si_gre_ti_flags.value_namespace = name_space;
si_gre_ti_flags.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-gre-ti-refcnt")
{
si_gre_ti_refcnt = value;
si_gre_ti_refcnt.value_namespace = name_space;
si_gre_ti_refcnt.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-gre-tos-propagate")
{
si_gre_tos_propagate = value;
si_gre_tos_propagate.value_namespace = name_space;
si_gre_tos_propagate.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-hardware")
{
si_hardware = value;
si_hardware.value_namespace = name_space;
si_hardware.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-nhinfo-ptr")
{
si_nhinfo_ptr = value;
si_nhinfo_ptr.value_namespace = name_space;
si_nhinfo_ptr.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-fnb-idb-ptr")
{
si_fnb_idb_ptr = value;
si_fnb_idb_ptr.value_namespace = name_space;
si_fnb_idb_ptr.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-anc-ifh")
{
si_anc_ifh = value;
si_anc_ifh.value_namespace = name_space;
si_anc_ifh.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-gre-ti-resolving-leafp")
{
si_gre_ti_resolving_leafp = value;
si_gre_ti_resolving_leafp.value_namespace = name_space;
si_gre_ti_resolving_leafp.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-gre-dest-addr")
{
si_gre_dest_addr = value;
si_gre_dest_addr.value_namespace = name_space;
si_gre_dest_addr.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-nhid")
{
si_nhid = value;
si_nhid.value_namespace = name_space;
si_nhid.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-upd-ts")
{
si_upd_ts = value;
si_upd_ts.value_namespace = name_space;
si_upd_ts.value_namespace_prefix = name_space_prefix;
}
}
void Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialPuntBrief::set_filter(const std::string & value_path, YFilter yfilter)
{
if(value_path == "si-link-proto")
{
si_link_proto.yfilter = yfilter;
}
if(value_path == "si-nhinfo")
{
si_nhinfo.yfilter = yfilter;
}
if(value_path == "si-nhtype")
{
si_nhtype.yfilter = yfilter;
}
if(value_path == "si-ifh")
{
si_ifh.yfilter = yfilter;
}
if(value_path == "si-pfi-interface-type")
{
si_pfi_interface_type.yfilter = yfilter;
}
if(value_path == "si-adj-ptr")
{
si_adj_ptr.yfilter = yfilter;
}
if(value_path == "si-adj-present")
{
si_adj_present.yfilter = yfilter;
}
if(value_path == "si-special-type")
{
si_special_type.yfilter = yfilter;
}
if(value_path == "si-refcount")
{
si_refcount.yfilter = yfilter;
}
if(value_path == "si-flags")
{
si_flags.yfilter = yfilter;
}
if(value_path == "si-adj-if")
{
si_adj_if.yfilter = yfilter;
}
if(value_path == "si-ext-pfx")
{
si_ext_pfx.yfilter = yfilter;
}
if(value_path == "si-ext-pfx-len")
{
si_ext_pfx_len.yfilter = yfilter;
}
if(value_path == "si-ext-pfx-proto")
{
si_ext_pfx_proto.yfilter = yfilter;
}
if(value_path == "si-adj-address")
{
si_adj_address.yfilter = yfilter;
}
if(value_path == "si-adj-addrlen")
{
si_adj_addrlen.yfilter = yfilter;
}
if(value_path == "si-adj-addr-proto")
{
si_adj_addr_proto.yfilter = yfilter;
}
if(value_path == "si-adj-rw-len")
{
si_adj_rw_len.yfilter = yfilter;
}
if(value_path == "si-adj-rw")
{
si_adj_rw.yfilter = yfilter;
}
if(value_path == "si-dep-nhinfo-type")
{
si_dep_nhinfo_type.yfilter = yfilter;
}
if(value_path == "si-dep-nhinfo")
{
si_dep_nhinfo.yfilter = yfilter;
}
if(value_path == "si-dep-nhinfo-ifh")
{
si_dep_nhinfo_ifh.yfilter = yfilter;
}
if(value_path == "si-bkup-frr")
{
si_bkup_frr.yfilter = yfilter;
}
if(value_path == "si-protect-frr")
{
si_protect_frr.yfilter = yfilter;
}
if(value_path == "si-bkup-nhinfo")
{
si_bkup_nhinfo.yfilter = yfilter;
}
if(value_path == "si-bkup-ifh")
{
si_bkup_ifh.yfilter = yfilter;
}
if(value_path == "si-bkup-addr")
{
si_bkup_addr.yfilter = yfilter;
}
if(value_path == "si-bkup-addrlen")
{
si_bkup_addrlen.yfilter = yfilter;
}
if(value_path == "si-bkup-addr-proto")
{
si_bkup_addr_proto.yfilter = yfilter;
}
if(value_path == "si-frr-active")
{
si_frr_active.yfilter = yfilter;
}
if(value_path == "si-attr-is-ext-mgd")
{
si_attr_is_ext_mgd.yfilter = yfilter;
}
if(value_path == "si-attr-is-incomp")
{
si_attr_is_incomp.yfilter = yfilter;
}
if(value_path == "si-attr-is-tunnel")
{
si_attr_is_tunnel.yfilter = yfilter;
}
if(value_path == "si-attr-is-tunnel-srte")
{
si_attr_is_tunnel_srte.yfilter = yfilter;
}
if(value_path == "si-attr-is-gre-tunnel")
{
si_attr_is_gre_tunnel.yfilter = yfilter;
}
if(value_path == "si-gre-ti")
{
si_gre_ti.yfilter = yfilter;
}
if(value_path == "si-gre-ti-flags")
{
si_gre_ti_flags.yfilter = yfilter;
}
if(value_path == "si-gre-ti-refcnt")
{
si_gre_ti_refcnt.yfilter = yfilter;
}
if(value_path == "si-gre-tos-propagate")
{
si_gre_tos_propagate.yfilter = yfilter;
}
if(value_path == "si-hardware")
{
si_hardware.yfilter = yfilter;
}
if(value_path == "si-nhinfo-ptr")
{
si_nhinfo_ptr.yfilter = yfilter;
}
if(value_path == "si-fnb-idb-ptr")
{
si_fnb_idb_ptr.yfilter = yfilter;
}
if(value_path == "si-anc-ifh")
{
si_anc_ifh.yfilter = yfilter;
}
if(value_path == "si-gre-ti-resolving-leafp")
{
si_gre_ti_resolving_leafp.yfilter = yfilter;
}
if(value_path == "si-gre-dest-addr")
{
si_gre_dest_addr.yfilter = yfilter;
}
if(value_path == "si-nhid")
{
si_nhid.yfilter = yfilter;
}
if(value_path == "si-upd-ts")
{
si_upd_ts.yfilter = yfilter;
}
}
bool Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialPuntBrief::has_leaf_or_child_of_name(const std::string & name) const
{
if(name == "si-pwhe" || name == "nh-info-extension" || name == "si-link-proto" || name == "si-nhinfo" || name == "si-nhtype" || name == "si-ifh" || name == "si-pfi-interface-type" || name == "si-adj-ptr" || name == "si-adj-present" || name == "si-special-type" || name == "si-refcount" || name == "si-flags" || name == "si-adj-if" || name == "si-ext-pfx" || name == "si-ext-pfx-len" || name == "si-ext-pfx-proto" || name == "si-adj-address" || name == "si-adj-addrlen" || name == "si-adj-addr-proto" || name == "si-adj-rw-len" || name == "si-adj-rw" || name == "si-dep-nhinfo-type" || name == "si-dep-nhinfo" || name == "si-dep-nhinfo-ifh" || name == "si-bkup-frr" || name == "si-protect-frr" || name == "si-bkup-nhinfo" || name == "si-bkup-ifh" || name == "si-bkup-addr" || name == "si-bkup-addrlen" || name == "si-bkup-addr-proto" || name == "si-frr-active" || name == "si-attr-is-ext-mgd" || name == "si-attr-is-incomp" || name == "si-attr-is-tunnel" || name == "si-attr-is-tunnel-srte" || name == "si-attr-is-gre-tunnel" || name == "si-gre-ti" || name == "si-gre-ti-flags" || name == "si-gre-ti-refcnt" || name == "si-gre-tos-propagate" || name == "si-hardware" || name == "si-nhinfo-ptr" || name == "si-fnb-idb-ptr" || name == "si-anc-ifh" || name == "si-gre-ti-resolving-leafp" || name == "si-gre-dest-addr" || name == "si-nhid" || name == "si-upd-ts")
return true;
return false;
}
Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialPuntBrief::SiPwhe::SiPwhe()
:
pwhe_adjacency_client_data{YType::uint32, "pwhe-adjacency-client-data"},
vctype{YType::uint32, "vctype"},
vc_internal_label{YType::uint32, "vc-internal-label"},
cw_enabled{YType::boolean, "cw-enabled"},
l2_overhead_bytes{YType::uint16, "l2-overhead-bytes"},
dot1q_vlan_tag{YType::uint32, "dot1q-vlan-tag"}
{
yang_name = "si-pwhe"; yang_parent_name = "nh-info-special-punt-brief"; is_top_level_class = false; has_list_ancestor = true;
}
Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialPuntBrief::SiPwhe::~SiPwhe()
{
}
bool Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialPuntBrief::SiPwhe::has_data() const
{
if (is_presence_container) return true;
return pwhe_adjacency_client_data.is_set
|| vctype.is_set
|| vc_internal_label.is_set
|| cw_enabled.is_set
|| l2_overhead_bytes.is_set
|| dot1q_vlan_tag.is_set;
}
bool Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialPuntBrief::SiPwhe::has_operation() const
{
return is_set(yfilter)
|| ydk::is_set(pwhe_adjacency_client_data.yfilter)
|| ydk::is_set(vctype.yfilter)
|| ydk::is_set(vc_internal_label.yfilter)
|| ydk::is_set(cw_enabled.yfilter)
|| ydk::is_set(l2_overhead_bytes.yfilter)
|| ydk::is_set(dot1q_vlan_tag.yfilter);
}
std::string Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialPuntBrief::SiPwhe::get_segment_path() const
{
std::ostringstream path_buffer;
path_buffer << "si-pwhe";
return path_buffer.str();
}
std::vector<std::pair<std::string, LeafData> > Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialPuntBrief::SiPwhe::get_name_leaf_data() const
{
std::vector<std::pair<std::string, LeafData> > leaf_name_data {};
if (pwhe_adjacency_client_data.is_set || is_set(pwhe_adjacency_client_data.yfilter)) leaf_name_data.push_back(pwhe_adjacency_client_data.get_name_leafdata());
if (vctype.is_set || is_set(vctype.yfilter)) leaf_name_data.push_back(vctype.get_name_leafdata());
if (vc_internal_label.is_set || is_set(vc_internal_label.yfilter)) leaf_name_data.push_back(vc_internal_label.get_name_leafdata());
if (cw_enabled.is_set || is_set(cw_enabled.yfilter)) leaf_name_data.push_back(cw_enabled.get_name_leafdata());
if (l2_overhead_bytes.is_set || is_set(l2_overhead_bytes.yfilter)) leaf_name_data.push_back(l2_overhead_bytes.get_name_leafdata());
if (dot1q_vlan_tag.is_set || is_set(dot1q_vlan_tag.yfilter)) leaf_name_data.push_back(dot1q_vlan_tag.get_name_leafdata());
return leaf_name_data;
}
std::shared_ptr<ydk::Entity> Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialPuntBrief::SiPwhe::get_child_by_name(const std::string & child_yang_name, const std::string & segment_path)
{
return nullptr;
}
std::map<std::string, std::shared_ptr<ydk::Entity>> Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialPuntBrief::SiPwhe::get_children() const
{
std::map<std::string, std::shared_ptr<ydk::Entity>> _children{};
char count_=0;
return _children;
}
void Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialPuntBrief::SiPwhe::set_value(const std::string & value_path, const std::string & value, const std::string & name_space, const std::string & name_space_prefix)
{
if(value_path == "pwhe-adjacency-client-data")
{
pwhe_adjacency_client_data = value;
pwhe_adjacency_client_data.value_namespace = name_space;
pwhe_adjacency_client_data.value_namespace_prefix = name_space_prefix;
}
if(value_path == "vctype")
{
vctype = value;
vctype.value_namespace = name_space;
vctype.value_namespace_prefix = name_space_prefix;
}
if(value_path == "vc-internal-label")
{
vc_internal_label = value;
vc_internal_label.value_namespace = name_space;
vc_internal_label.value_namespace_prefix = name_space_prefix;
}
if(value_path == "cw-enabled")
{
cw_enabled = value;
cw_enabled.value_namespace = name_space;
cw_enabled.value_namespace_prefix = name_space_prefix;
}
if(value_path == "l2-overhead-bytes")
{
l2_overhead_bytes = value;
l2_overhead_bytes.value_namespace = name_space;
l2_overhead_bytes.value_namespace_prefix = name_space_prefix;
}
if(value_path == "dot1q-vlan-tag")
{
dot1q_vlan_tag = value;
dot1q_vlan_tag.value_namespace = name_space;
dot1q_vlan_tag.value_namespace_prefix = name_space_prefix;
}
}
void Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialPuntBrief::SiPwhe::set_filter(const std::string & value_path, YFilter yfilter)
{
if(value_path == "pwhe-adjacency-client-data")
{
pwhe_adjacency_client_data.yfilter = yfilter;
}
if(value_path == "vctype")
{
vctype.yfilter = yfilter;
}
if(value_path == "vc-internal-label")
{
vc_internal_label.yfilter = yfilter;
}
if(value_path == "cw-enabled")
{
cw_enabled.yfilter = yfilter;
}
if(value_path == "l2-overhead-bytes")
{
l2_overhead_bytes.yfilter = yfilter;
}
if(value_path == "dot1q-vlan-tag")
{
dot1q_vlan_tag.yfilter = yfilter;
}
}
bool Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialPuntBrief::SiPwhe::has_leaf_or_child_of_name(const std::string & name) const
{
if(name == "pwhe-adjacency-client-data" || name == "vctype" || name == "vc-internal-label" || name == "cw-enabled" || name == "l2-overhead-bytes" || name == "dot1q-vlan-tag")
return true;
return false;
}
Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialPuntBrief::NhInfoExtension::NhInfoExtension()
:
nh_info_extension_detail(this, {})
{
yang_name = "nh-info-extension"; yang_parent_name = "nh-info-special-punt-brief"; is_top_level_class = false; has_list_ancestor = true;
}
Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialPuntBrief::NhInfoExtension::~NhInfoExtension()
{
}
bool Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialPuntBrief::NhInfoExtension::has_data() const
{
if (is_presence_container) return true;
for (std::size_t index=0; index<nh_info_extension_detail.len(); index++)
{
if(nh_info_extension_detail[index]->has_data())
return true;
}
return false;
}
bool Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialPuntBrief::NhInfoExtension::has_operation() const
{
for (std::size_t index=0; index<nh_info_extension_detail.len(); index++)
{
if(nh_info_extension_detail[index]->has_operation())
return true;
}
return is_set(yfilter);
}
std::string Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialPuntBrief::NhInfoExtension::get_segment_path() const
{
std::ostringstream path_buffer;
path_buffer << "nh-info-extension";
return path_buffer.str();
}
std::vector<std::pair<std::string, LeafData> > Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialPuntBrief::NhInfoExtension::get_name_leaf_data() const
{
std::vector<std::pair<std::string, LeafData> > leaf_name_data {};
return leaf_name_data;
}
std::shared_ptr<ydk::Entity> Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialPuntBrief::NhInfoExtension::get_child_by_name(const std::string & child_yang_name, const std::string & segment_path)
{
if(child_yang_name == "nh-info-extension-detail")
{
auto ent_ = std::make_shared<Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialPuntBrief::NhInfoExtension::NhInfoExtensionDetail>();
ent_->parent = this;
nh_info_extension_detail.append(ent_);
return ent_;
}
return nullptr;
}
std::map<std::string, std::shared_ptr<ydk::Entity>> Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialPuntBrief::NhInfoExtension::get_children() const
{
std::map<std::string, std::shared_ptr<ydk::Entity>> _children{};
char count_=0;
count_ = 0;
for (auto ent_ : nh_info_extension_detail.entities())
{
if(_children.find(ent_->get_segment_path()) == _children.end())
_children[ent_->get_segment_path()] = ent_;
else
_children[ent_->get_segment_path()+count_++] = ent_;
}
return _children;
}
void Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialPuntBrief::NhInfoExtension::set_value(const std::string & value_path, const std::string & value, const std::string & name_space, const std::string & name_space_prefix)
{
}
void Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialPuntBrief::NhInfoExtension::set_filter(const std::string & value_path, YFilter yfilter)
{
}
bool Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialPuntBrief::NhInfoExtension::has_leaf_or_child_of_name(const std::string & name) const
{
if(name == "nh-info-extension-detail")
return true;
return false;
}
Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialPuntBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionDetail()
:
nh_info_extension_base(std::make_shared<Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialPuntBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionBase>())
, nh_info_extension_detail(std::make_shared<Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialPuntBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionDetail_>())
{
nh_info_extension_base->parent = this;
nh_info_extension_detail->parent = this;
yang_name = "nh-info-extension-detail"; yang_parent_name = "nh-info-extension"; is_top_level_class = false; has_list_ancestor = true;
}
Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialPuntBrief::NhInfoExtension::NhInfoExtensionDetail::~NhInfoExtensionDetail()
{
}
bool Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialPuntBrief::NhInfoExtension::NhInfoExtensionDetail::has_data() const
{
if (is_presence_container) return true;
return (nh_info_extension_base != nullptr && nh_info_extension_base->has_data())
|| (nh_info_extension_detail != nullptr && nh_info_extension_detail->has_data());
}
bool Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialPuntBrief::NhInfoExtension::NhInfoExtensionDetail::has_operation() const
{
return is_set(yfilter)
|| (nh_info_extension_base != nullptr && nh_info_extension_base->has_operation())
|| (nh_info_extension_detail != nullptr && nh_info_extension_detail->has_operation());
}
std::string Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialPuntBrief::NhInfoExtension::NhInfoExtensionDetail::get_segment_path() const
{
std::ostringstream path_buffer;
path_buffer << "nh-info-extension-detail";
path_buffer << "[" << get_ylist_key() << "]";
return path_buffer.str();
}
std::vector<std::pair<std::string, LeafData> > Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialPuntBrief::NhInfoExtension::NhInfoExtensionDetail::get_name_leaf_data() const
{
std::vector<std::pair<std::string, LeafData> > leaf_name_data {};
return leaf_name_data;
}
std::shared_ptr<ydk::Entity> Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialPuntBrief::NhInfoExtension::NhInfoExtensionDetail::get_child_by_name(const std::string & child_yang_name, const std::string & segment_path)
{
if(child_yang_name == "nh-info-extension-base")
{
if(nh_info_extension_base == nullptr)
{
nh_info_extension_base = std::make_shared<Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialPuntBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionBase>();
}
return nh_info_extension_base;
}
if(child_yang_name == "nh-info-extension-detail")
{
if(nh_info_extension_detail == nullptr)
{
nh_info_extension_detail = std::make_shared<Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialPuntBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionDetail_>();
}
return nh_info_extension_detail;
}
return nullptr;
}
std::map<std::string, std::shared_ptr<ydk::Entity>> Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialPuntBrief::NhInfoExtension::NhInfoExtensionDetail::get_children() const
{
std::map<std::string, std::shared_ptr<ydk::Entity>> _children{};
char count_=0;
if(nh_info_extension_base != nullptr)
{
_children["nh-info-extension-base"] = nh_info_extension_base;
}
if(nh_info_extension_detail != nullptr)
{
_children["nh-info-extension-detail"] = nh_info_extension_detail;
}
return _children;
}
void Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialPuntBrief::NhInfoExtension::NhInfoExtensionDetail::set_value(const std::string & value_path, const std::string & value, const std::string & name_space, const std::string & name_space_prefix)
{
}
void Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialPuntBrief::NhInfoExtension::NhInfoExtensionDetail::set_filter(const std::string & value_path, YFilter yfilter)
{
}
bool Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialPuntBrief::NhInfoExtension::NhInfoExtensionDetail::has_leaf_or_child_of_name(const std::string & name) const
{
if(name == "nh-info-extension-base" || name == "nh-info-extension-detail")
return true;
return false;
}
Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialPuntBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionBase::NhInfoExtensionBase()
:
parent_object_pointer{YType::uint64, "parent-object-pointer"},
back_object_pointer{YType::uint64, "back-object-pointer"}
,
object_base(std::make_shared<Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialPuntBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionBase::ObjectBase>())
{
object_base->parent = this;
yang_name = "nh-info-extension-base"; yang_parent_name = "nh-info-extension-detail"; is_top_level_class = false; has_list_ancestor = true;
}
Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialPuntBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionBase::~NhInfoExtensionBase()
{
}
bool Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialPuntBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionBase::has_data() const
{
if (is_presence_container) return true;
return parent_object_pointer.is_set
|| back_object_pointer.is_set
|| (object_base != nullptr && object_base->has_data());
}
bool Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialPuntBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionBase::has_operation() const
{
return is_set(yfilter)
|| ydk::is_set(parent_object_pointer.yfilter)
|| ydk::is_set(back_object_pointer.yfilter)
|| (object_base != nullptr && object_base->has_operation());
}
std::string Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialPuntBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionBase::get_segment_path() const
{
std::ostringstream path_buffer;
path_buffer << "nh-info-extension-base";
return path_buffer.str();
}
std::vector<std::pair<std::string, LeafData> > Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialPuntBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionBase::get_name_leaf_data() const
{
std::vector<std::pair<std::string, LeafData> > leaf_name_data {};
if (parent_object_pointer.is_set || is_set(parent_object_pointer.yfilter)) leaf_name_data.push_back(parent_object_pointer.get_name_leafdata());
if (back_object_pointer.is_set || is_set(back_object_pointer.yfilter)) leaf_name_data.push_back(back_object_pointer.get_name_leafdata());
return leaf_name_data;
}
std::shared_ptr<ydk::Entity> Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialPuntBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionBase::get_child_by_name(const std::string & child_yang_name, const std::string & segment_path)
{
if(child_yang_name == "object-base")
{
if(object_base == nullptr)
{
object_base = std::make_shared<Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialPuntBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionBase::ObjectBase>();
}
return object_base;
}
return nullptr;
}
std::map<std::string, std::shared_ptr<ydk::Entity>> Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialPuntBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionBase::get_children() const
{
std::map<std::string, std::shared_ptr<ydk::Entity>> _children{};
char count_=0;
if(object_base != nullptr)
{
_children["object-base"] = object_base;
}
return _children;
}
void Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialPuntBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionBase::set_value(const std::string & value_path, const std::string & value, const std::string & name_space, const std::string & name_space_prefix)
{
if(value_path == "parent-object-pointer")
{
parent_object_pointer = value;
parent_object_pointer.value_namespace = name_space;
parent_object_pointer.value_namespace_prefix = name_space_prefix;
}
if(value_path == "back-object-pointer")
{
back_object_pointer = value;
back_object_pointer.value_namespace = name_space;
back_object_pointer.value_namespace_prefix = name_space_prefix;
}
}
void Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialPuntBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionBase::set_filter(const std::string & value_path, YFilter yfilter)
{
if(value_path == "parent-object-pointer")
{
parent_object_pointer.yfilter = yfilter;
}
if(value_path == "back-object-pointer")
{
back_object_pointer.yfilter = yfilter;
}
}
bool Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialPuntBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionBase::has_leaf_or_child_of_name(const std::string & name) const
{
if(name == "object-base" || name == "parent-object-pointer" || name == "back-object-pointer")
return true;
return false;
}
Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialPuntBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionBase::ObjectBase::ObjectBase()
:
object_reference_count{YType::uint32, "object-reference-count"},
object_flags{YType::uint32, "object-flags"},
object_type{YType::uint8, "object-type"},
object_time_stamp{YType::uint64, "object-time-stamp"},
object_pointer{YType::uint64, "object-pointer"}
{
yang_name = "object-base"; yang_parent_name = "nh-info-extension-base"; is_top_level_class = false; has_list_ancestor = true;
}
Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialPuntBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionBase::ObjectBase::~ObjectBase()
{
}
bool Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialPuntBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionBase::ObjectBase::has_data() const
{
if (is_presence_container) return true;
return object_reference_count.is_set
|| object_flags.is_set
|| object_type.is_set
|| object_time_stamp.is_set
|| object_pointer.is_set;
}
bool Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialPuntBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionBase::ObjectBase::has_operation() const
{
return is_set(yfilter)
|| ydk::is_set(object_reference_count.yfilter)
|| ydk::is_set(object_flags.yfilter)
|| ydk::is_set(object_type.yfilter)
|| ydk::is_set(object_time_stamp.yfilter)
|| ydk::is_set(object_pointer.yfilter);
}
std::string Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialPuntBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionBase::ObjectBase::get_segment_path() const
{
std::ostringstream path_buffer;
path_buffer << "object-base";
return path_buffer.str();
}
std::vector<std::pair<std::string, LeafData> > Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialPuntBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionBase::ObjectBase::get_name_leaf_data() const
{
std::vector<std::pair<std::string, LeafData> > leaf_name_data {};
if (object_reference_count.is_set || is_set(object_reference_count.yfilter)) leaf_name_data.push_back(object_reference_count.get_name_leafdata());
if (object_flags.is_set || is_set(object_flags.yfilter)) leaf_name_data.push_back(object_flags.get_name_leafdata());
if (object_type.is_set || is_set(object_type.yfilter)) leaf_name_data.push_back(object_type.get_name_leafdata());
if (object_time_stamp.is_set || is_set(object_time_stamp.yfilter)) leaf_name_data.push_back(object_time_stamp.get_name_leafdata());
if (object_pointer.is_set || is_set(object_pointer.yfilter)) leaf_name_data.push_back(object_pointer.get_name_leafdata());
return leaf_name_data;
}
std::shared_ptr<ydk::Entity> Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialPuntBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionBase::ObjectBase::get_child_by_name(const std::string & child_yang_name, const std::string & segment_path)
{
return nullptr;
}
std::map<std::string, std::shared_ptr<ydk::Entity>> Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialPuntBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionBase::ObjectBase::get_children() const
{
std::map<std::string, std::shared_ptr<ydk::Entity>> _children{};
char count_=0;
return _children;
}
void Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialPuntBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionBase::ObjectBase::set_value(const std::string & value_path, const std::string & value, const std::string & name_space, const std::string & name_space_prefix)
{
if(value_path == "object-reference-count")
{
object_reference_count = value;
object_reference_count.value_namespace = name_space;
object_reference_count.value_namespace_prefix = name_space_prefix;
}
if(value_path == "object-flags")
{
object_flags = value;
object_flags.value_namespace = name_space;
object_flags.value_namespace_prefix = name_space_prefix;
}
if(value_path == "object-type")
{
object_type = value;
object_type.value_namespace = name_space;
object_type.value_namespace_prefix = name_space_prefix;
}
if(value_path == "object-time-stamp")
{
object_time_stamp = value;
object_time_stamp.value_namespace = name_space;
object_time_stamp.value_namespace_prefix = name_space_prefix;
}
if(value_path == "object-pointer")
{
object_pointer = value;
object_pointer.value_namespace = name_space;
object_pointer.value_namespace_prefix = name_space_prefix;
}
}
void Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialPuntBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionBase::ObjectBase::set_filter(const std::string & value_path, YFilter yfilter)
{
if(value_path == "object-reference-count")
{
object_reference_count.yfilter = yfilter;
}
if(value_path == "object-flags")
{
object_flags.yfilter = yfilter;
}
if(value_path == "object-type")
{
object_type.yfilter = yfilter;
}
if(value_path == "object-time-stamp")
{
object_time_stamp.yfilter = yfilter;
}
if(value_path == "object-pointer")
{
object_pointer.yfilter = yfilter;
}
}
bool Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialPuntBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionBase::ObjectBase::has_leaf_or_child_of_name(const std::string & name) const
{
if(name == "object-reference-count" || name == "object-flags" || name == "object-type" || name == "object-time-stamp" || name == "object-pointer")
return true;
return false;
}
Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialPuntBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionDetail_::NhInfoExtensionDetail_()
:
type{YType::enumeration, "type"}
,
snecd_nhr(std::make_shared<Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialPuntBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionDetail_::SnecdNhr>())
{
snecd_nhr->parent = this;
yang_name = "nh-info-extension-detail"; yang_parent_name = "nh-info-extension-detail"; is_top_level_class = false; has_list_ancestor = true;
}
Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialPuntBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionDetail_::~NhInfoExtensionDetail_()
{
}
bool Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialPuntBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionDetail_::has_data() const
{
if (is_presence_container) return true;
return type.is_set
|| (snecd_nhr != nullptr && snecd_nhr->has_data());
}
bool Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialPuntBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionDetail_::has_operation() const
{
return is_set(yfilter)
|| ydk::is_set(type.yfilter)
|| (snecd_nhr != nullptr && snecd_nhr->has_operation());
}
std::string Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialPuntBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionDetail_::get_segment_path() const
{
std::ostringstream path_buffer;
path_buffer << "nh-info-extension-detail";
return path_buffer.str();
}
std::vector<std::pair<std::string, LeafData> > Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialPuntBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionDetail_::get_name_leaf_data() const
{
std::vector<std::pair<std::string, LeafData> > leaf_name_data {};
if (type.is_set || is_set(type.yfilter)) leaf_name_data.push_back(type.get_name_leafdata());
return leaf_name_data;
}
std::shared_ptr<ydk::Entity> Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialPuntBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionDetail_::get_child_by_name(const std::string & child_yang_name, const std::string & segment_path)
{
if(child_yang_name == "snecd-nhr")
{
if(snecd_nhr == nullptr)
{
snecd_nhr = std::make_shared<Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialPuntBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionDetail_::SnecdNhr>();
}
return snecd_nhr;
}
return nullptr;
}
std::map<std::string, std::shared_ptr<ydk::Entity>> Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialPuntBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionDetail_::get_children() const
{
std::map<std::string, std::shared_ptr<ydk::Entity>> _children{};
char count_=0;
if(snecd_nhr != nullptr)
{
_children["snecd-nhr"] = snecd_nhr;
}
return _children;
}
void Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialPuntBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionDetail_::set_value(const std::string & value_path, const std::string & value, const std::string & name_space, const std::string & name_space_prefix)
{
if(value_path == "type")
{
type = value;
type.value_namespace = name_space;
type.value_namespace_prefix = name_space_prefix;
}
}
void Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialPuntBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionDetail_::set_filter(const std::string & value_path, YFilter yfilter)
{
if(value_path == "type")
{
type.yfilter = yfilter;
}
}
bool Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialPuntBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionDetail_::has_leaf_or_child_of_name(const std::string & name) const
{
if(name == "snecd-nhr" || name == "type")
return true;
return false;
}
Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialPuntBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionDetail_::SnecdNhr::SnecdNhr()
:
nh_info_replicated_type{YType::uint8, "nh-info-replicated-type"},
nh_info_replicated_nh_id{YType::uint32, "nh-info-replicated-nh-id"},
nh_info_replicated_encap_id{YType::uint64, "nh-info-replicated-encap-id"},
nh_info_replicated_interface{YType::str, "nh-info-replicated-interface"}
{
yang_name = "snecd-nhr"; yang_parent_name = "nh-info-extension-detail"; is_top_level_class = false; has_list_ancestor = true;
}
Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialPuntBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionDetail_::SnecdNhr::~SnecdNhr()
{
}
bool Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialPuntBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionDetail_::SnecdNhr::has_data() const
{
if (is_presence_container) return true;
return nh_info_replicated_type.is_set
|| nh_info_replicated_nh_id.is_set
|| nh_info_replicated_encap_id.is_set
|| nh_info_replicated_interface.is_set;
}
bool Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialPuntBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionDetail_::SnecdNhr::has_operation() const
{
return is_set(yfilter)
|| ydk::is_set(nh_info_replicated_type.yfilter)
|| ydk::is_set(nh_info_replicated_nh_id.yfilter)
|| ydk::is_set(nh_info_replicated_encap_id.yfilter)
|| ydk::is_set(nh_info_replicated_interface.yfilter);
}
std::string Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialPuntBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionDetail_::SnecdNhr::get_segment_path() const
{
std::ostringstream path_buffer;
path_buffer << "snecd-nhr";
return path_buffer.str();
}
std::vector<std::pair<std::string, LeafData> > Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialPuntBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionDetail_::SnecdNhr::get_name_leaf_data() const
{
std::vector<std::pair<std::string, LeafData> > leaf_name_data {};
if (nh_info_replicated_type.is_set || is_set(nh_info_replicated_type.yfilter)) leaf_name_data.push_back(nh_info_replicated_type.get_name_leafdata());
if (nh_info_replicated_nh_id.is_set || is_set(nh_info_replicated_nh_id.yfilter)) leaf_name_data.push_back(nh_info_replicated_nh_id.get_name_leafdata());
if (nh_info_replicated_encap_id.is_set || is_set(nh_info_replicated_encap_id.yfilter)) leaf_name_data.push_back(nh_info_replicated_encap_id.get_name_leafdata());
if (nh_info_replicated_interface.is_set || is_set(nh_info_replicated_interface.yfilter)) leaf_name_data.push_back(nh_info_replicated_interface.get_name_leafdata());
return leaf_name_data;
}
std::shared_ptr<ydk::Entity> Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialPuntBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionDetail_::SnecdNhr::get_child_by_name(const std::string & child_yang_name, const std::string & segment_path)
{
return nullptr;
}
std::map<std::string, std::shared_ptr<ydk::Entity>> Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialPuntBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionDetail_::SnecdNhr::get_children() const
{
std::map<std::string, std::shared_ptr<ydk::Entity>> _children{};
char count_=0;
return _children;
}
void Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialPuntBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionDetail_::SnecdNhr::set_value(const std::string & value_path, const std::string & value, const std::string & name_space, const std::string & name_space_prefix)
{
if(value_path == "nh-info-replicated-type")
{
nh_info_replicated_type = value;
nh_info_replicated_type.value_namespace = name_space;
nh_info_replicated_type.value_namespace_prefix = name_space_prefix;
}
if(value_path == "nh-info-replicated-nh-id")
{
nh_info_replicated_nh_id = value;
nh_info_replicated_nh_id.value_namespace = name_space;
nh_info_replicated_nh_id.value_namespace_prefix = name_space_prefix;
}
if(value_path == "nh-info-replicated-encap-id")
{
nh_info_replicated_encap_id = value;
nh_info_replicated_encap_id.value_namespace = name_space;
nh_info_replicated_encap_id.value_namespace_prefix = name_space_prefix;
}
if(value_path == "nh-info-replicated-interface")
{
nh_info_replicated_interface = value;
nh_info_replicated_interface.value_namespace = name_space;
nh_info_replicated_interface.value_namespace_prefix = name_space_prefix;
}
}
void Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialPuntBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionDetail_::SnecdNhr::set_filter(const std::string & value_path, YFilter yfilter)
{
if(value_path == "nh-info-replicated-type")
{
nh_info_replicated_type.yfilter = yfilter;
}
if(value_path == "nh-info-replicated-nh-id")
{
nh_info_replicated_nh_id.yfilter = yfilter;
}
if(value_path == "nh-info-replicated-encap-id")
{
nh_info_replicated_encap_id.yfilter = yfilter;
}
if(value_path == "nh-info-replicated-interface")
{
nh_info_replicated_interface.yfilter = yfilter;
}
}
bool Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialPuntBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionDetail_::SnecdNhr::has_leaf_or_child_of_name(const std::string & name) const
{
if(name == "nh-info-replicated-type" || name == "nh-info-replicated-nh-id" || name == "nh-info-replicated-encap-id" || name == "nh-info-replicated-interface")
return true;
return false;
}
Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialDropBrief::NhInfoSpecialDropBrief()
:
si_link_proto{YType::uint32, "si-link-proto"},
si_nhinfo{YType::uint32, "si-nhinfo"},
si_nhtype{YType::uint32, "si-nhtype"},
si_ifh{YType::uint32, "si-ifh"},
si_pfi_interface_type{YType::uint32, "si-pfi-interface-type"},
si_adj_ptr{YType::uint32, "si-adj-ptr"},
si_adj_present{YType::boolean, "si-adj-present"},
si_special_type{YType::uint32, "si-special-type"},
si_refcount{YType::uint32, "si-refcount"},
si_flags{YType::uint32, "si-flags"},
si_adj_if{YType::uint32, "si-adj-if"},
si_ext_pfx{YType::str, "si-ext-pfx"},
si_ext_pfx_len{YType::uint32, "si-ext-pfx-len"},
si_ext_pfx_proto{YType::uint32, "si-ext-pfx-proto"},
si_adj_address{YType::str, "si-adj-address"},
si_adj_addrlen{YType::uint32, "si-adj-addrlen"},
si_adj_addr_proto{YType::uint32, "si-adj-addr-proto"},
si_adj_rw_len{YType::uint32, "si-adj-rw-len"},
si_adj_rw{YType::str, "si-adj-rw"},
si_dep_nhinfo_type{YType::uint32, "si-dep-nhinfo-type"},
si_dep_nhinfo{YType::uint32, "si-dep-nhinfo"},
si_dep_nhinfo_ifh{YType::uint32, "si-dep-nhinfo-ifh"},
si_bkup_frr{YType::uint32, "si-bkup-frr"},
si_protect_frr{YType::uint32, "si-protect-frr"},
si_bkup_nhinfo{YType::uint32, "si-bkup-nhinfo"},
si_bkup_ifh{YType::uint32, "si-bkup-ifh"},
si_bkup_addr{YType::str, "si-bkup-addr"},
si_bkup_addrlen{YType::uint32, "si-bkup-addrlen"},
si_bkup_addr_proto{YType::uint32, "si-bkup-addr-proto"},
si_frr_active{YType::boolean, "si-frr-active"},
si_attr_is_ext_mgd{YType::boolean, "si-attr-is-ext-mgd"},
si_attr_is_incomp{YType::boolean, "si-attr-is-incomp"},
si_attr_is_tunnel{YType::boolean, "si-attr-is-tunnel"},
si_attr_is_tunnel_srte{YType::boolean, "si-attr-is-tunnel-srte"},
si_attr_is_gre_tunnel{YType::boolean, "si-attr-is-gre-tunnel"},
si_gre_ti{YType::uint32, "si-gre-ti"},
si_gre_ti_flags{YType::uint32, "si-gre-ti-flags"},
si_gre_ti_refcnt{YType::uint32, "si-gre-ti-refcnt"},
si_gre_tos_propagate{YType::boolean, "si-gre-tos-propagate"},
si_hardware{YType::str, "si-hardware"},
si_nhinfo_ptr{YType::uint32, "si-nhinfo-ptr"},
si_fnb_idb_ptr{YType::uint32, "si-fnb-idb-ptr"},
si_anc_ifh{YType::uint32, "si-anc-ifh"},
si_gre_ti_resolving_leafp{YType::uint32, "si-gre-ti-resolving-leafp"},
si_gre_dest_addr{YType::str, "si-gre-dest-addr"},
si_nhid{YType::uint32, "si-nhid"},
si_upd_ts{YType::uint64, "si-upd-ts"}
,
si_pwhe(std::make_shared<Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialDropBrief::SiPwhe>())
, nh_info_extension(std::make_shared<Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialDropBrief::NhInfoExtension>())
{
si_pwhe->parent = this;
nh_info_extension->parent = this;
yang_name = "nh-info-special-drop-brief"; yang_parent_name = "nh-info-special-brief"; is_top_level_class = false; has_list_ancestor = true;
}
Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialDropBrief::~NhInfoSpecialDropBrief()
{
}
bool Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialDropBrief::has_data() const
{
if (is_presence_container) return true;
return si_link_proto.is_set
|| si_nhinfo.is_set
|| si_nhtype.is_set
|| si_ifh.is_set
|| si_pfi_interface_type.is_set
|| si_adj_ptr.is_set
|| si_adj_present.is_set
|| si_special_type.is_set
|| si_refcount.is_set
|| si_flags.is_set
|| si_adj_if.is_set
|| si_ext_pfx.is_set
|| si_ext_pfx_len.is_set
|| si_ext_pfx_proto.is_set
|| si_adj_address.is_set
|| si_adj_addrlen.is_set
|| si_adj_addr_proto.is_set
|| si_adj_rw_len.is_set
|| si_adj_rw.is_set
|| si_dep_nhinfo_type.is_set
|| si_dep_nhinfo.is_set
|| si_dep_nhinfo_ifh.is_set
|| si_bkup_frr.is_set
|| si_protect_frr.is_set
|| si_bkup_nhinfo.is_set
|| si_bkup_ifh.is_set
|| si_bkup_addr.is_set
|| si_bkup_addrlen.is_set
|| si_bkup_addr_proto.is_set
|| si_frr_active.is_set
|| si_attr_is_ext_mgd.is_set
|| si_attr_is_incomp.is_set
|| si_attr_is_tunnel.is_set
|| si_attr_is_tunnel_srte.is_set
|| si_attr_is_gre_tunnel.is_set
|| si_gre_ti.is_set
|| si_gre_ti_flags.is_set
|| si_gre_ti_refcnt.is_set
|| si_gre_tos_propagate.is_set
|| si_hardware.is_set
|| si_nhinfo_ptr.is_set
|| si_fnb_idb_ptr.is_set
|| si_anc_ifh.is_set
|| si_gre_ti_resolving_leafp.is_set
|| si_gre_dest_addr.is_set
|| si_nhid.is_set
|| si_upd_ts.is_set
|| (si_pwhe != nullptr && si_pwhe->has_data())
|| (nh_info_extension != nullptr && nh_info_extension->has_data());
}
bool Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialDropBrief::has_operation() const
{
return is_set(yfilter)
|| ydk::is_set(si_link_proto.yfilter)
|| ydk::is_set(si_nhinfo.yfilter)
|| ydk::is_set(si_nhtype.yfilter)
|| ydk::is_set(si_ifh.yfilter)
|| ydk::is_set(si_pfi_interface_type.yfilter)
|| ydk::is_set(si_adj_ptr.yfilter)
|| ydk::is_set(si_adj_present.yfilter)
|| ydk::is_set(si_special_type.yfilter)
|| ydk::is_set(si_refcount.yfilter)
|| ydk::is_set(si_flags.yfilter)
|| ydk::is_set(si_adj_if.yfilter)
|| ydk::is_set(si_ext_pfx.yfilter)
|| ydk::is_set(si_ext_pfx_len.yfilter)
|| ydk::is_set(si_ext_pfx_proto.yfilter)
|| ydk::is_set(si_adj_address.yfilter)
|| ydk::is_set(si_adj_addrlen.yfilter)
|| ydk::is_set(si_adj_addr_proto.yfilter)
|| ydk::is_set(si_adj_rw_len.yfilter)
|| ydk::is_set(si_adj_rw.yfilter)
|| ydk::is_set(si_dep_nhinfo_type.yfilter)
|| ydk::is_set(si_dep_nhinfo.yfilter)
|| ydk::is_set(si_dep_nhinfo_ifh.yfilter)
|| ydk::is_set(si_bkup_frr.yfilter)
|| ydk::is_set(si_protect_frr.yfilter)
|| ydk::is_set(si_bkup_nhinfo.yfilter)
|| ydk::is_set(si_bkup_ifh.yfilter)
|| ydk::is_set(si_bkup_addr.yfilter)
|| ydk::is_set(si_bkup_addrlen.yfilter)
|| ydk::is_set(si_bkup_addr_proto.yfilter)
|| ydk::is_set(si_frr_active.yfilter)
|| ydk::is_set(si_attr_is_ext_mgd.yfilter)
|| ydk::is_set(si_attr_is_incomp.yfilter)
|| ydk::is_set(si_attr_is_tunnel.yfilter)
|| ydk::is_set(si_attr_is_tunnel_srte.yfilter)
|| ydk::is_set(si_attr_is_gre_tunnel.yfilter)
|| ydk::is_set(si_gre_ti.yfilter)
|| ydk::is_set(si_gre_ti_flags.yfilter)
|| ydk::is_set(si_gre_ti_refcnt.yfilter)
|| ydk::is_set(si_gre_tos_propagate.yfilter)
|| ydk::is_set(si_hardware.yfilter)
|| ydk::is_set(si_nhinfo_ptr.yfilter)
|| ydk::is_set(si_fnb_idb_ptr.yfilter)
|| ydk::is_set(si_anc_ifh.yfilter)
|| ydk::is_set(si_gre_ti_resolving_leafp.yfilter)
|| ydk::is_set(si_gre_dest_addr.yfilter)
|| ydk::is_set(si_nhid.yfilter)
|| ydk::is_set(si_upd_ts.yfilter)
|| (si_pwhe != nullptr && si_pwhe->has_operation())
|| (nh_info_extension != nullptr && nh_info_extension->has_operation());
}
std::string Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialDropBrief::get_segment_path() const
{
std::ostringstream path_buffer;
path_buffer << "nh-info-special-drop-brief";
return path_buffer.str();
}
std::vector<std::pair<std::string, LeafData> > Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialDropBrief::get_name_leaf_data() const
{
std::vector<std::pair<std::string, LeafData> > leaf_name_data {};
if (si_link_proto.is_set || is_set(si_link_proto.yfilter)) leaf_name_data.push_back(si_link_proto.get_name_leafdata());
if (si_nhinfo.is_set || is_set(si_nhinfo.yfilter)) leaf_name_data.push_back(si_nhinfo.get_name_leafdata());
if (si_nhtype.is_set || is_set(si_nhtype.yfilter)) leaf_name_data.push_back(si_nhtype.get_name_leafdata());
if (si_ifh.is_set || is_set(si_ifh.yfilter)) leaf_name_data.push_back(si_ifh.get_name_leafdata());
if (si_pfi_interface_type.is_set || is_set(si_pfi_interface_type.yfilter)) leaf_name_data.push_back(si_pfi_interface_type.get_name_leafdata());
if (si_adj_ptr.is_set || is_set(si_adj_ptr.yfilter)) leaf_name_data.push_back(si_adj_ptr.get_name_leafdata());
if (si_adj_present.is_set || is_set(si_adj_present.yfilter)) leaf_name_data.push_back(si_adj_present.get_name_leafdata());
if (si_special_type.is_set || is_set(si_special_type.yfilter)) leaf_name_data.push_back(si_special_type.get_name_leafdata());
if (si_refcount.is_set || is_set(si_refcount.yfilter)) leaf_name_data.push_back(si_refcount.get_name_leafdata());
if (si_flags.is_set || is_set(si_flags.yfilter)) leaf_name_data.push_back(si_flags.get_name_leafdata());
if (si_adj_if.is_set || is_set(si_adj_if.yfilter)) leaf_name_data.push_back(si_adj_if.get_name_leafdata());
if (si_ext_pfx.is_set || is_set(si_ext_pfx.yfilter)) leaf_name_data.push_back(si_ext_pfx.get_name_leafdata());
if (si_ext_pfx_len.is_set || is_set(si_ext_pfx_len.yfilter)) leaf_name_data.push_back(si_ext_pfx_len.get_name_leafdata());
if (si_ext_pfx_proto.is_set || is_set(si_ext_pfx_proto.yfilter)) leaf_name_data.push_back(si_ext_pfx_proto.get_name_leafdata());
if (si_adj_address.is_set || is_set(si_adj_address.yfilter)) leaf_name_data.push_back(si_adj_address.get_name_leafdata());
if (si_adj_addrlen.is_set || is_set(si_adj_addrlen.yfilter)) leaf_name_data.push_back(si_adj_addrlen.get_name_leafdata());
if (si_adj_addr_proto.is_set || is_set(si_adj_addr_proto.yfilter)) leaf_name_data.push_back(si_adj_addr_proto.get_name_leafdata());
if (si_adj_rw_len.is_set || is_set(si_adj_rw_len.yfilter)) leaf_name_data.push_back(si_adj_rw_len.get_name_leafdata());
if (si_adj_rw.is_set || is_set(si_adj_rw.yfilter)) leaf_name_data.push_back(si_adj_rw.get_name_leafdata());
if (si_dep_nhinfo_type.is_set || is_set(si_dep_nhinfo_type.yfilter)) leaf_name_data.push_back(si_dep_nhinfo_type.get_name_leafdata());
if (si_dep_nhinfo.is_set || is_set(si_dep_nhinfo.yfilter)) leaf_name_data.push_back(si_dep_nhinfo.get_name_leafdata());
if (si_dep_nhinfo_ifh.is_set || is_set(si_dep_nhinfo_ifh.yfilter)) leaf_name_data.push_back(si_dep_nhinfo_ifh.get_name_leafdata());
if (si_bkup_frr.is_set || is_set(si_bkup_frr.yfilter)) leaf_name_data.push_back(si_bkup_frr.get_name_leafdata());
if (si_protect_frr.is_set || is_set(si_protect_frr.yfilter)) leaf_name_data.push_back(si_protect_frr.get_name_leafdata());
if (si_bkup_nhinfo.is_set || is_set(si_bkup_nhinfo.yfilter)) leaf_name_data.push_back(si_bkup_nhinfo.get_name_leafdata());
if (si_bkup_ifh.is_set || is_set(si_bkup_ifh.yfilter)) leaf_name_data.push_back(si_bkup_ifh.get_name_leafdata());
if (si_bkup_addr.is_set || is_set(si_bkup_addr.yfilter)) leaf_name_data.push_back(si_bkup_addr.get_name_leafdata());
if (si_bkup_addrlen.is_set || is_set(si_bkup_addrlen.yfilter)) leaf_name_data.push_back(si_bkup_addrlen.get_name_leafdata());
if (si_bkup_addr_proto.is_set || is_set(si_bkup_addr_proto.yfilter)) leaf_name_data.push_back(si_bkup_addr_proto.get_name_leafdata());
if (si_frr_active.is_set || is_set(si_frr_active.yfilter)) leaf_name_data.push_back(si_frr_active.get_name_leafdata());
if (si_attr_is_ext_mgd.is_set || is_set(si_attr_is_ext_mgd.yfilter)) leaf_name_data.push_back(si_attr_is_ext_mgd.get_name_leafdata());
if (si_attr_is_incomp.is_set || is_set(si_attr_is_incomp.yfilter)) leaf_name_data.push_back(si_attr_is_incomp.get_name_leafdata());
if (si_attr_is_tunnel.is_set || is_set(si_attr_is_tunnel.yfilter)) leaf_name_data.push_back(si_attr_is_tunnel.get_name_leafdata());
if (si_attr_is_tunnel_srte.is_set || is_set(si_attr_is_tunnel_srte.yfilter)) leaf_name_data.push_back(si_attr_is_tunnel_srte.get_name_leafdata());
if (si_attr_is_gre_tunnel.is_set || is_set(si_attr_is_gre_tunnel.yfilter)) leaf_name_data.push_back(si_attr_is_gre_tunnel.get_name_leafdata());
if (si_gre_ti.is_set || is_set(si_gre_ti.yfilter)) leaf_name_data.push_back(si_gre_ti.get_name_leafdata());
if (si_gre_ti_flags.is_set || is_set(si_gre_ti_flags.yfilter)) leaf_name_data.push_back(si_gre_ti_flags.get_name_leafdata());
if (si_gre_ti_refcnt.is_set || is_set(si_gre_ti_refcnt.yfilter)) leaf_name_data.push_back(si_gre_ti_refcnt.get_name_leafdata());
if (si_gre_tos_propagate.is_set || is_set(si_gre_tos_propagate.yfilter)) leaf_name_data.push_back(si_gre_tos_propagate.get_name_leafdata());
if (si_hardware.is_set || is_set(si_hardware.yfilter)) leaf_name_data.push_back(si_hardware.get_name_leafdata());
if (si_nhinfo_ptr.is_set || is_set(si_nhinfo_ptr.yfilter)) leaf_name_data.push_back(si_nhinfo_ptr.get_name_leafdata());
if (si_fnb_idb_ptr.is_set || is_set(si_fnb_idb_ptr.yfilter)) leaf_name_data.push_back(si_fnb_idb_ptr.get_name_leafdata());
if (si_anc_ifh.is_set || is_set(si_anc_ifh.yfilter)) leaf_name_data.push_back(si_anc_ifh.get_name_leafdata());
if (si_gre_ti_resolving_leafp.is_set || is_set(si_gre_ti_resolving_leafp.yfilter)) leaf_name_data.push_back(si_gre_ti_resolving_leafp.get_name_leafdata());
if (si_gre_dest_addr.is_set || is_set(si_gre_dest_addr.yfilter)) leaf_name_data.push_back(si_gre_dest_addr.get_name_leafdata());
if (si_nhid.is_set || is_set(si_nhid.yfilter)) leaf_name_data.push_back(si_nhid.get_name_leafdata());
if (si_upd_ts.is_set || is_set(si_upd_ts.yfilter)) leaf_name_data.push_back(si_upd_ts.get_name_leafdata());
return leaf_name_data;
}
std::shared_ptr<ydk::Entity> Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialDropBrief::get_child_by_name(const std::string & child_yang_name, const std::string & segment_path)
{
if(child_yang_name == "si-pwhe")
{
if(si_pwhe == nullptr)
{
si_pwhe = std::make_shared<Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialDropBrief::SiPwhe>();
}
return si_pwhe;
}
if(child_yang_name == "nh-info-extension")
{
if(nh_info_extension == nullptr)
{
nh_info_extension = std::make_shared<Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialDropBrief::NhInfoExtension>();
}
return nh_info_extension;
}
return nullptr;
}
std::map<std::string, std::shared_ptr<ydk::Entity>> Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialDropBrief::get_children() const
{
std::map<std::string, std::shared_ptr<ydk::Entity>> _children{};
char count_=0;
if(si_pwhe != nullptr)
{
_children["si-pwhe"] = si_pwhe;
}
if(nh_info_extension != nullptr)
{
_children["nh-info-extension"] = nh_info_extension;
}
return _children;
}
void Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialDropBrief::set_value(const std::string & value_path, const std::string & value, const std::string & name_space, const std::string & name_space_prefix)
{
if(value_path == "si-link-proto")
{
si_link_proto = value;
si_link_proto.value_namespace = name_space;
si_link_proto.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-nhinfo")
{
si_nhinfo = value;
si_nhinfo.value_namespace = name_space;
si_nhinfo.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-nhtype")
{
si_nhtype = value;
si_nhtype.value_namespace = name_space;
si_nhtype.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-ifh")
{
si_ifh = value;
si_ifh.value_namespace = name_space;
si_ifh.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-pfi-interface-type")
{
si_pfi_interface_type = value;
si_pfi_interface_type.value_namespace = name_space;
si_pfi_interface_type.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-adj-ptr")
{
si_adj_ptr = value;
si_adj_ptr.value_namespace = name_space;
si_adj_ptr.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-adj-present")
{
si_adj_present = value;
si_adj_present.value_namespace = name_space;
si_adj_present.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-special-type")
{
si_special_type = value;
si_special_type.value_namespace = name_space;
si_special_type.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-refcount")
{
si_refcount = value;
si_refcount.value_namespace = name_space;
si_refcount.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-flags")
{
si_flags = value;
si_flags.value_namespace = name_space;
si_flags.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-adj-if")
{
si_adj_if = value;
si_adj_if.value_namespace = name_space;
si_adj_if.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-ext-pfx")
{
si_ext_pfx = value;
si_ext_pfx.value_namespace = name_space;
si_ext_pfx.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-ext-pfx-len")
{
si_ext_pfx_len = value;
si_ext_pfx_len.value_namespace = name_space;
si_ext_pfx_len.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-ext-pfx-proto")
{
si_ext_pfx_proto = value;
si_ext_pfx_proto.value_namespace = name_space;
si_ext_pfx_proto.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-adj-address")
{
si_adj_address = value;
si_adj_address.value_namespace = name_space;
si_adj_address.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-adj-addrlen")
{
si_adj_addrlen = value;
si_adj_addrlen.value_namespace = name_space;
si_adj_addrlen.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-adj-addr-proto")
{
si_adj_addr_proto = value;
si_adj_addr_proto.value_namespace = name_space;
si_adj_addr_proto.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-adj-rw-len")
{
si_adj_rw_len = value;
si_adj_rw_len.value_namespace = name_space;
si_adj_rw_len.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-adj-rw")
{
si_adj_rw = value;
si_adj_rw.value_namespace = name_space;
si_adj_rw.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-dep-nhinfo-type")
{
si_dep_nhinfo_type = value;
si_dep_nhinfo_type.value_namespace = name_space;
si_dep_nhinfo_type.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-dep-nhinfo")
{
si_dep_nhinfo = value;
si_dep_nhinfo.value_namespace = name_space;
si_dep_nhinfo.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-dep-nhinfo-ifh")
{
si_dep_nhinfo_ifh = value;
si_dep_nhinfo_ifh.value_namespace = name_space;
si_dep_nhinfo_ifh.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-bkup-frr")
{
si_bkup_frr = value;
si_bkup_frr.value_namespace = name_space;
si_bkup_frr.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-protect-frr")
{
si_protect_frr = value;
si_protect_frr.value_namespace = name_space;
si_protect_frr.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-bkup-nhinfo")
{
si_bkup_nhinfo = value;
si_bkup_nhinfo.value_namespace = name_space;
si_bkup_nhinfo.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-bkup-ifh")
{
si_bkup_ifh = value;
si_bkup_ifh.value_namespace = name_space;
si_bkup_ifh.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-bkup-addr")
{
si_bkup_addr = value;
si_bkup_addr.value_namespace = name_space;
si_bkup_addr.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-bkup-addrlen")
{
si_bkup_addrlen = value;
si_bkup_addrlen.value_namespace = name_space;
si_bkup_addrlen.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-bkup-addr-proto")
{
si_bkup_addr_proto = value;
si_bkup_addr_proto.value_namespace = name_space;
si_bkup_addr_proto.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-frr-active")
{
si_frr_active = value;
si_frr_active.value_namespace = name_space;
si_frr_active.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-attr-is-ext-mgd")
{
si_attr_is_ext_mgd = value;
si_attr_is_ext_mgd.value_namespace = name_space;
si_attr_is_ext_mgd.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-attr-is-incomp")
{
si_attr_is_incomp = value;
si_attr_is_incomp.value_namespace = name_space;
si_attr_is_incomp.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-attr-is-tunnel")
{
si_attr_is_tunnel = value;
si_attr_is_tunnel.value_namespace = name_space;
si_attr_is_tunnel.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-attr-is-tunnel-srte")
{
si_attr_is_tunnel_srte = value;
si_attr_is_tunnel_srte.value_namespace = name_space;
si_attr_is_tunnel_srte.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-attr-is-gre-tunnel")
{
si_attr_is_gre_tunnel = value;
si_attr_is_gre_tunnel.value_namespace = name_space;
si_attr_is_gre_tunnel.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-gre-ti")
{
si_gre_ti = value;
si_gre_ti.value_namespace = name_space;
si_gre_ti.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-gre-ti-flags")
{
si_gre_ti_flags = value;
si_gre_ti_flags.value_namespace = name_space;
si_gre_ti_flags.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-gre-ti-refcnt")
{
si_gre_ti_refcnt = value;
si_gre_ti_refcnt.value_namespace = name_space;
si_gre_ti_refcnt.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-gre-tos-propagate")
{
si_gre_tos_propagate = value;
si_gre_tos_propagate.value_namespace = name_space;
si_gre_tos_propagate.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-hardware")
{
si_hardware = value;
si_hardware.value_namespace = name_space;
si_hardware.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-nhinfo-ptr")
{
si_nhinfo_ptr = value;
si_nhinfo_ptr.value_namespace = name_space;
si_nhinfo_ptr.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-fnb-idb-ptr")
{
si_fnb_idb_ptr = value;
si_fnb_idb_ptr.value_namespace = name_space;
si_fnb_idb_ptr.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-anc-ifh")
{
si_anc_ifh = value;
si_anc_ifh.value_namespace = name_space;
si_anc_ifh.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-gre-ti-resolving-leafp")
{
si_gre_ti_resolving_leafp = value;
si_gre_ti_resolving_leafp.value_namespace = name_space;
si_gre_ti_resolving_leafp.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-gre-dest-addr")
{
si_gre_dest_addr = value;
si_gre_dest_addr.value_namespace = name_space;
si_gre_dest_addr.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-nhid")
{
si_nhid = value;
si_nhid.value_namespace = name_space;
si_nhid.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-upd-ts")
{
si_upd_ts = value;
si_upd_ts.value_namespace = name_space;
si_upd_ts.value_namespace_prefix = name_space_prefix;
}
}
void Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialDropBrief::set_filter(const std::string & value_path, YFilter yfilter)
{
if(value_path == "si-link-proto")
{
si_link_proto.yfilter = yfilter;
}
if(value_path == "si-nhinfo")
{
si_nhinfo.yfilter = yfilter;
}
if(value_path == "si-nhtype")
{
si_nhtype.yfilter = yfilter;
}
if(value_path == "si-ifh")
{
si_ifh.yfilter = yfilter;
}
if(value_path == "si-pfi-interface-type")
{
si_pfi_interface_type.yfilter = yfilter;
}
if(value_path == "si-adj-ptr")
{
si_adj_ptr.yfilter = yfilter;
}
if(value_path == "si-adj-present")
{
si_adj_present.yfilter = yfilter;
}
if(value_path == "si-special-type")
{
si_special_type.yfilter = yfilter;
}
if(value_path == "si-refcount")
{
si_refcount.yfilter = yfilter;
}
if(value_path == "si-flags")
{
si_flags.yfilter = yfilter;
}
if(value_path == "si-adj-if")
{
si_adj_if.yfilter = yfilter;
}
if(value_path == "si-ext-pfx")
{
si_ext_pfx.yfilter = yfilter;
}
if(value_path == "si-ext-pfx-len")
{
si_ext_pfx_len.yfilter = yfilter;
}
if(value_path == "si-ext-pfx-proto")
{
si_ext_pfx_proto.yfilter = yfilter;
}
if(value_path == "si-adj-address")
{
si_adj_address.yfilter = yfilter;
}
if(value_path == "si-adj-addrlen")
{
si_adj_addrlen.yfilter = yfilter;
}
if(value_path == "si-adj-addr-proto")
{
si_adj_addr_proto.yfilter = yfilter;
}
if(value_path == "si-adj-rw-len")
{
si_adj_rw_len.yfilter = yfilter;
}
if(value_path == "si-adj-rw")
{
si_adj_rw.yfilter = yfilter;
}
if(value_path == "si-dep-nhinfo-type")
{
si_dep_nhinfo_type.yfilter = yfilter;
}
if(value_path == "si-dep-nhinfo")
{
si_dep_nhinfo.yfilter = yfilter;
}
if(value_path == "si-dep-nhinfo-ifh")
{
si_dep_nhinfo_ifh.yfilter = yfilter;
}
if(value_path == "si-bkup-frr")
{
si_bkup_frr.yfilter = yfilter;
}
if(value_path == "si-protect-frr")
{
si_protect_frr.yfilter = yfilter;
}
if(value_path == "si-bkup-nhinfo")
{
si_bkup_nhinfo.yfilter = yfilter;
}
if(value_path == "si-bkup-ifh")
{
si_bkup_ifh.yfilter = yfilter;
}
if(value_path == "si-bkup-addr")
{
si_bkup_addr.yfilter = yfilter;
}
if(value_path == "si-bkup-addrlen")
{
si_bkup_addrlen.yfilter = yfilter;
}
if(value_path == "si-bkup-addr-proto")
{
si_bkup_addr_proto.yfilter = yfilter;
}
if(value_path == "si-frr-active")
{
si_frr_active.yfilter = yfilter;
}
if(value_path == "si-attr-is-ext-mgd")
{
si_attr_is_ext_mgd.yfilter = yfilter;
}
if(value_path == "si-attr-is-incomp")
{
si_attr_is_incomp.yfilter = yfilter;
}
if(value_path == "si-attr-is-tunnel")
{
si_attr_is_tunnel.yfilter = yfilter;
}
if(value_path == "si-attr-is-tunnel-srte")
{
si_attr_is_tunnel_srte.yfilter = yfilter;
}
if(value_path == "si-attr-is-gre-tunnel")
{
si_attr_is_gre_tunnel.yfilter = yfilter;
}
if(value_path == "si-gre-ti")
{
si_gre_ti.yfilter = yfilter;
}
if(value_path == "si-gre-ti-flags")
{
si_gre_ti_flags.yfilter = yfilter;
}
if(value_path == "si-gre-ti-refcnt")
{
si_gre_ti_refcnt.yfilter = yfilter;
}
if(value_path == "si-gre-tos-propagate")
{
si_gre_tos_propagate.yfilter = yfilter;
}
if(value_path == "si-hardware")
{
si_hardware.yfilter = yfilter;
}
if(value_path == "si-nhinfo-ptr")
{
si_nhinfo_ptr.yfilter = yfilter;
}
if(value_path == "si-fnb-idb-ptr")
{
si_fnb_idb_ptr.yfilter = yfilter;
}
if(value_path == "si-anc-ifh")
{
si_anc_ifh.yfilter = yfilter;
}
if(value_path == "si-gre-ti-resolving-leafp")
{
si_gre_ti_resolving_leafp.yfilter = yfilter;
}
if(value_path == "si-gre-dest-addr")
{
si_gre_dest_addr.yfilter = yfilter;
}
if(value_path == "si-nhid")
{
si_nhid.yfilter = yfilter;
}
if(value_path == "si-upd-ts")
{
si_upd_ts.yfilter = yfilter;
}
}
bool Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialDropBrief::has_leaf_or_child_of_name(const std::string & name) const
{
if(name == "si-pwhe" || name == "nh-info-extension" || name == "si-link-proto" || name == "si-nhinfo" || name == "si-nhtype" || name == "si-ifh" || name == "si-pfi-interface-type" || name == "si-adj-ptr" || name == "si-adj-present" || name == "si-special-type" || name == "si-refcount" || name == "si-flags" || name == "si-adj-if" || name == "si-ext-pfx" || name == "si-ext-pfx-len" || name == "si-ext-pfx-proto" || name == "si-adj-address" || name == "si-adj-addrlen" || name == "si-adj-addr-proto" || name == "si-adj-rw-len" || name == "si-adj-rw" || name == "si-dep-nhinfo-type" || name == "si-dep-nhinfo" || name == "si-dep-nhinfo-ifh" || name == "si-bkup-frr" || name == "si-protect-frr" || name == "si-bkup-nhinfo" || name == "si-bkup-ifh" || name == "si-bkup-addr" || name == "si-bkup-addrlen" || name == "si-bkup-addr-proto" || name == "si-frr-active" || name == "si-attr-is-ext-mgd" || name == "si-attr-is-incomp" || name == "si-attr-is-tunnel" || name == "si-attr-is-tunnel-srte" || name == "si-attr-is-gre-tunnel" || name == "si-gre-ti" || name == "si-gre-ti-flags" || name == "si-gre-ti-refcnt" || name == "si-gre-tos-propagate" || name == "si-hardware" || name == "si-nhinfo-ptr" || name == "si-fnb-idb-ptr" || name == "si-anc-ifh" || name == "si-gre-ti-resolving-leafp" || name == "si-gre-dest-addr" || name == "si-nhid" || name == "si-upd-ts")
return true;
return false;
}
Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialDropBrief::SiPwhe::SiPwhe()
:
pwhe_adjacency_client_data{YType::uint32, "pwhe-adjacency-client-data"},
vctype{YType::uint32, "vctype"},
vc_internal_label{YType::uint32, "vc-internal-label"},
cw_enabled{YType::boolean, "cw-enabled"},
l2_overhead_bytes{YType::uint16, "l2-overhead-bytes"},
dot1q_vlan_tag{YType::uint32, "dot1q-vlan-tag"}
{
yang_name = "si-pwhe"; yang_parent_name = "nh-info-special-drop-brief"; is_top_level_class = false; has_list_ancestor = true;
}
Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialDropBrief::SiPwhe::~SiPwhe()
{
}
bool Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialDropBrief::SiPwhe::has_data() const
{
if (is_presence_container) return true;
return pwhe_adjacency_client_data.is_set
|| vctype.is_set
|| vc_internal_label.is_set
|| cw_enabled.is_set
|| l2_overhead_bytes.is_set
|| dot1q_vlan_tag.is_set;
}
bool Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialDropBrief::SiPwhe::has_operation() const
{
return is_set(yfilter)
|| ydk::is_set(pwhe_adjacency_client_data.yfilter)
|| ydk::is_set(vctype.yfilter)
|| ydk::is_set(vc_internal_label.yfilter)
|| ydk::is_set(cw_enabled.yfilter)
|| ydk::is_set(l2_overhead_bytes.yfilter)
|| ydk::is_set(dot1q_vlan_tag.yfilter);
}
std::string Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialDropBrief::SiPwhe::get_segment_path() const
{
std::ostringstream path_buffer;
path_buffer << "si-pwhe";
return path_buffer.str();
}
std::vector<std::pair<std::string, LeafData> > Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialDropBrief::SiPwhe::get_name_leaf_data() const
{
std::vector<std::pair<std::string, LeafData> > leaf_name_data {};
if (pwhe_adjacency_client_data.is_set || is_set(pwhe_adjacency_client_data.yfilter)) leaf_name_data.push_back(pwhe_adjacency_client_data.get_name_leafdata());
if (vctype.is_set || is_set(vctype.yfilter)) leaf_name_data.push_back(vctype.get_name_leafdata());
if (vc_internal_label.is_set || is_set(vc_internal_label.yfilter)) leaf_name_data.push_back(vc_internal_label.get_name_leafdata());
if (cw_enabled.is_set || is_set(cw_enabled.yfilter)) leaf_name_data.push_back(cw_enabled.get_name_leafdata());
if (l2_overhead_bytes.is_set || is_set(l2_overhead_bytes.yfilter)) leaf_name_data.push_back(l2_overhead_bytes.get_name_leafdata());
if (dot1q_vlan_tag.is_set || is_set(dot1q_vlan_tag.yfilter)) leaf_name_data.push_back(dot1q_vlan_tag.get_name_leafdata());
return leaf_name_data;
}
std::shared_ptr<ydk::Entity> Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialDropBrief::SiPwhe::get_child_by_name(const std::string & child_yang_name, const std::string & segment_path)
{
return nullptr;
}
std::map<std::string, std::shared_ptr<ydk::Entity>> Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialDropBrief::SiPwhe::get_children() const
{
std::map<std::string, std::shared_ptr<ydk::Entity>> _children{};
char count_=0;
return _children;
}
void Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialDropBrief::SiPwhe::set_value(const std::string & value_path, const std::string & value, const std::string & name_space, const std::string & name_space_prefix)
{
if(value_path == "pwhe-adjacency-client-data")
{
pwhe_adjacency_client_data = value;
pwhe_adjacency_client_data.value_namespace = name_space;
pwhe_adjacency_client_data.value_namespace_prefix = name_space_prefix;
}
if(value_path == "vctype")
{
vctype = value;
vctype.value_namespace = name_space;
vctype.value_namespace_prefix = name_space_prefix;
}
if(value_path == "vc-internal-label")
{
vc_internal_label = value;
vc_internal_label.value_namespace = name_space;
vc_internal_label.value_namespace_prefix = name_space_prefix;
}
if(value_path == "cw-enabled")
{
cw_enabled = value;
cw_enabled.value_namespace = name_space;
cw_enabled.value_namespace_prefix = name_space_prefix;
}
if(value_path == "l2-overhead-bytes")
{
l2_overhead_bytes = value;
l2_overhead_bytes.value_namespace = name_space;
l2_overhead_bytes.value_namespace_prefix = name_space_prefix;
}
if(value_path == "dot1q-vlan-tag")
{
dot1q_vlan_tag = value;
dot1q_vlan_tag.value_namespace = name_space;
dot1q_vlan_tag.value_namespace_prefix = name_space_prefix;
}
}
void Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialDropBrief::SiPwhe::set_filter(const std::string & value_path, YFilter yfilter)
{
if(value_path == "pwhe-adjacency-client-data")
{
pwhe_adjacency_client_data.yfilter = yfilter;
}
if(value_path == "vctype")
{
vctype.yfilter = yfilter;
}
if(value_path == "vc-internal-label")
{
vc_internal_label.yfilter = yfilter;
}
if(value_path == "cw-enabled")
{
cw_enabled.yfilter = yfilter;
}
if(value_path == "l2-overhead-bytes")
{
l2_overhead_bytes.yfilter = yfilter;
}
if(value_path == "dot1q-vlan-tag")
{
dot1q_vlan_tag.yfilter = yfilter;
}
}
bool Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialDropBrief::SiPwhe::has_leaf_or_child_of_name(const std::string & name) const
{
if(name == "pwhe-adjacency-client-data" || name == "vctype" || name == "vc-internal-label" || name == "cw-enabled" || name == "l2-overhead-bytes" || name == "dot1q-vlan-tag")
return true;
return false;
}
Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialDropBrief::NhInfoExtension::NhInfoExtension()
:
nh_info_extension_detail(this, {})
{
yang_name = "nh-info-extension"; yang_parent_name = "nh-info-special-drop-brief"; is_top_level_class = false; has_list_ancestor = true;
}
Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialDropBrief::NhInfoExtension::~NhInfoExtension()
{
}
bool Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialDropBrief::NhInfoExtension::has_data() const
{
if (is_presence_container) return true;
for (std::size_t index=0; index<nh_info_extension_detail.len(); index++)
{
if(nh_info_extension_detail[index]->has_data())
return true;
}
return false;
}
bool Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialDropBrief::NhInfoExtension::has_operation() const
{
for (std::size_t index=0; index<nh_info_extension_detail.len(); index++)
{
if(nh_info_extension_detail[index]->has_operation())
return true;
}
return is_set(yfilter);
}
std::string Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialDropBrief::NhInfoExtension::get_segment_path() const
{
std::ostringstream path_buffer;
path_buffer << "nh-info-extension";
return path_buffer.str();
}
std::vector<std::pair<std::string, LeafData> > Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialDropBrief::NhInfoExtension::get_name_leaf_data() const
{
std::vector<std::pair<std::string, LeafData> > leaf_name_data {};
return leaf_name_data;
}
std::shared_ptr<ydk::Entity> Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialDropBrief::NhInfoExtension::get_child_by_name(const std::string & child_yang_name, const std::string & segment_path)
{
if(child_yang_name == "nh-info-extension-detail")
{
auto ent_ = std::make_shared<Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialDropBrief::NhInfoExtension::NhInfoExtensionDetail>();
ent_->parent = this;
nh_info_extension_detail.append(ent_);
return ent_;
}
return nullptr;
}
std::map<std::string, std::shared_ptr<ydk::Entity>> Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialDropBrief::NhInfoExtension::get_children() const
{
std::map<std::string, std::shared_ptr<ydk::Entity>> _children{};
char count_=0;
count_ = 0;
for (auto ent_ : nh_info_extension_detail.entities())
{
if(_children.find(ent_->get_segment_path()) == _children.end())
_children[ent_->get_segment_path()] = ent_;
else
_children[ent_->get_segment_path()+count_++] = ent_;
}
return _children;
}
void Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialDropBrief::NhInfoExtension::set_value(const std::string & value_path, const std::string & value, const std::string & name_space, const std::string & name_space_prefix)
{
}
void Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialDropBrief::NhInfoExtension::set_filter(const std::string & value_path, YFilter yfilter)
{
}
bool Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialDropBrief::NhInfoExtension::has_leaf_or_child_of_name(const std::string & name) const
{
if(name == "nh-info-extension-detail")
return true;
return false;
}
Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialDropBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionDetail()
:
nh_info_extension_base(std::make_shared<Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialDropBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionBase>())
, nh_info_extension_detail(std::make_shared<Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialDropBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionDetail_>())
{
nh_info_extension_base->parent = this;
nh_info_extension_detail->parent = this;
yang_name = "nh-info-extension-detail"; yang_parent_name = "nh-info-extension"; is_top_level_class = false; has_list_ancestor = true;
}
Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialDropBrief::NhInfoExtension::NhInfoExtensionDetail::~NhInfoExtensionDetail()
{
}
bool Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialDropBrief::NhInfoExtension::NhInfoExtensionDetail::has_data() const
{
if (is_presence_container) return true;
return (nh_info_extension_base != nullptr && nh_info_extension_base->has_data())
|| (nh_info_extension_detail != nullptr && nh_info_extension_detail->has_data());
}
bool Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialDropBrief::NhInfoExtension::NhInfoExtensionDetail::has_operation() const
{
return is_set(yfilter)
|| (nh_info_extension_base != nullptr && nh_info_extension_base->has_operation())
|| (nh_info_extension_detail != nullptr && nh_info_extension_detail->has_operation());
}
std::string Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialDropBrief::NhInfoExtension::NhInfoExtensionDetail::get_segment_path() const
{
std::ostringstream path_buffer;
path_buffer << "nh-info-extension-detail";
path_buffer << "[" << get_ylist_key() << "]";
return path_buffer.str();
}
std::vector<std::pair<std::string, LeafData> > Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialDropBrief::NhInfoExtension::NhInfoExtensionDetail::get_name_leaf_data() const
{
std::vector<std::pair<std::string, LeafData> > leaf_name_data {};
return leaf_name_data;
}
std::shared_ptr<ydk::Entity> Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialDropBrief::NhInfoExtension::NhInfoExtensionDetail::get_child_by_name(const std::string & child_yang_name, const std::string & segment_path)
{
if(child_yang_name == "nh-info-extension-base")
{
if(nh_info_extension_base == nullptr)
{
nh_info_extension_base = std::make_shared<Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialDropBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionBase>();
}
return nh_info_extension_base;
}
if(child_yang_name == "nh-info-extension-detail")
{
if(nh_info_extension_detail == nullptr)
{
nh_info_extension_detail = std::make_shared<Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialDropBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionDetail_>();
}
return nh_info_extension_detail;
}
return nullptr;
}
std::map<std::string, std::shared_ptr<ydk::Entity>> Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialDropBrief::NhInfoExtension::NhInfoExtensionDetail::get_children() const
{
std::map<std::string, std::shared_ptr<ydk::Entity>> _children{};
char count_=0;
if(nh_info_extension_base != nullptr)
{
_children["nh-info-extension-base"] = nh_info_extension_base;
}
if(nh_info_extension_detail != nullptr)
{
_children["nh-info-extension-detail"] = nh_info_extension_detail;
}
return _children;
}
void Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialDropBrief::NhInfoExtension::NhInfoExtensionDetail::set_value(const std::string & value_path, const std::string & value, const std::string & name_space, const std::string & name_space_prefix)
{
}
void Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialDropBrief::NhInfoExtension::NhInfoExtensionDetail::set_filter(const std::string & value_path, YFilter yfilter)
{
}
bool Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialDropBrief::NhInfoExtension::NhInfoExtensionDetail::has_leaf_or_child_of_name(const std::string & name) const
{
if(name == "nh-info-extension-base" || name == "nh-info-extension-detail")
return true;
return false;
}
Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialDropBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionBase::NhInfoExtensionBase()
:
parent_object_pointer{YType::uint64, "parent-object-pointer"},
back_object_pointer{YType::uint64, "back-object-pointer"}
,
object_base(std::make_shared<Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialDropBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionBase::ObjectBase>())
{
object_base->parent = this;
yang_name = "nh-info-extension-base"; yang_parent_name = "nh-info-extension-detail"; is_top_level_class = false; has_list_ancestor = true;
}
Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialDropBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionBase::~NhInfoExtensionBase()
{
}
bool Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialDropBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionBase::has_data() const
{
if (is_presence_container) return true;
return parent_object_pointer.is_set
|| back_object_pointer.is_set
|| (object_base != nullptr && object_base->has_data());
}
bool Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialDropBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionBase::has_operation() const
{
return is_set(yfilter)
|| ydk::is_set(parent_object_pointer.yfilter)
|| ydk::is_set(back_object_pointer.yfilter)
|| (object_base != nullptr && object_base->has_operation());
}
std::string Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialDropBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionBase::get_segment_path() const
{
std::ostringstream path_buffer;
path_buffer << "nh-info-extension-base";
return path_buffer.str();
}
std::vector<std::pair<std::string, LeafData> > Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialDropBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionBase::get_name_leaf_data() const
{
std::vector<std::pair<std::string, LeafData> > leaf_name_data {};
if (parent_object_pointer.is_set || is_set(parent_object_pointer.yfilter)) leaf_name_data.push_back(parent_object_pointer.get_name_leafdata());
if (back_object_pointer.is_set || is_set(back_object_pointer.yfilter)) leaf_name_data.push_back(back_object_pointer.get_name_leafdata());
return leaf_name_data;
}
std::shared_ptr<ydk::Entity> Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialDropBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionBase::get_child_by_name(const std::string & child_yang_name, const std::string & segment_path)
{
if(child_yang_name == "object-base")
{
if(object_base == nullptr)
{
object_base = std::make_shared<Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialDropBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionBase::ObjectBase>();
}
return object_base;
}
return nullptr;
}
std::map<std::string, std::shared_ptr<ydk::Entity>> Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialDropBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionBase::get_children() const
{
std::map<std::string, std::shared_ptr<ydk::Entity>> _children{};
char count_=0;
if(object_base != nullptr)
{
_children["object-base"] = object_base;
}
return _children;
}
void Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialDropBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionBase::set_value(const std::string & value_path, const std::string & value, const std::string & name_space, const std::string & name_space_prefix)
{
if(value_path == "parent-object-pointer")
{
parent_object_pointer = value;
parent_object_pointer.value_namespace = name_space;
parent_object_pointer.value_namespace_prefix = name_space_prefix;
}
if(value_path == "back-object-pointer")
{
back_object_pointer = value;
back_object_pointer.value_namespace = name_space;
back_object_pointer.value_namespace_prefix = name_space_prefix;
}
}
void Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialDropBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionBase::set_filter(const std::string & value_path, YFilter yfilter)
{
if(value_path == "parent-object-pointer")
{
parent_object_pointer.yfilter = yfilter;
}
if(value_path == "back-object-pointer")
{
back_object_pointer.yfilter = yfilter;
}
}
bool Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialDropBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionBase::has_leaf_or_child_of_name(const std::string & name) const
{
if(name == "object-base" || name == "parent-object-pointer" || name == "back-object-pointer")
return true;
return false;
}
Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialDropBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionBase::ObjectBase::ObjectBase()
:
object_reference_count{YType::uint32, "object-reference-count"},
object_flags{YType::uint32, "object-flags"},
object_type{YType::uint8, "object-type"},
object_time_stamp{YType::uint64, "object-time-stamp"},
object_pointer{YType::uint64, "object-pointer"}
{
yang_name = "object-base"; yang_parent_name = "nh-info-extension-base"; is_top_level_class = false; has_list_ancestor = true;
}
Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialDropBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionBase::ObjectBase::~ObjectBase()
{
}
bool Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialDropBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionBase::ObjectBase::has_data() const
{
if (is_presence_container) return true;
return object_reference_count.is_set
|| object_flags.is_set
|| object_type.is_set
|| object_time_stamp.is_set
|| object_pointer.is_set;
}
bool Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialDropBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionBase::ObjectBase::has_operation() const
{
return is_set(yfilter)
|| ydk::is_set(object_reference_count.yfilter)
|| ydk::is_set(object_flags.yfilter)
|| ydk::is_set(object_type.yfilter)
|| ydk::is_set(object_time_stamp.yfilter)
|| ydk::is_set(object_pointer.yfilter);
}
std::string Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialDropBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionBase::ObjectBase::get_segment_path() const
{
std::ostringstream path_buffer;
path_buffer << "object-base";
return path_buffer.str();
}
std::vector<std::pair<std::string, LeafData> > Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialDropBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionBase::ObjectBase::get_name_leaf_data() const
{
std::vector<std::pair<std::string, LeafData> > leaf_name_data {};
if (object_reference_count.is_set || is_set(object_reference_count.yfilter)) leaf_name_data.push_back(object_reference_count.get_name_leafdata());
if (object_flags.is_set || is_set(object_flags.yfilter)) leaf_name_data.push_back(object_flags.get_name_leafdata());
if (object_type.is_set || is_set(object_type.yfilter)) leaf_name_data.push_back(object_type.get_name_leafdata());
if (object_time_stamp.is_set || is_set(object_time_stamp.yfilter)) leaf_name_data.push_back(object_time_stamp.get_name_leafdata());
if (object_pointer.is_set || is_set(object_pointer.yfilter)) leaf_name_data.push_back(object_pointer.get_name_leafdata());
return leaf_name_data;
}
std::shared_ptr<ydk::Entity> Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialDropBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionBase::ObjectBase::get_child_by_name(const std::string & child_yang_name, const std::string & segment_path)
{
return nullptr;
}
std::map<std::string, std::shared_ptr<ydk::Entity>> Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialDropBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionBase::ObjectBase::get_children() const
{
std::map<std::string, std::shared_ptr<ydk::Entity>> _children{};
char count_=0;
return _children;
}
void Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialDropBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionBase::ObjectBase::set_value(const std::string & value_path, const std::string & value, const std::string & name_space, const std::string & name_space_prefix)
{
if(value_path == "object-reference-count")
{
object_reference_count = value;
object_reference_count.value_namespace = name_space;
object_reference_count.value_namespace_prefix = name_space_prefix;
}
if(value_path == "object-flags")
{
object_flags = value;
object_flags.value_namespace = name_space;
object_flags.value_namespace_prefix = name_space_prefix;
}
if(value_path == "object-type")
{
object_type = value;
object_type.value_namespace = name_space;
object_type.value_namespace_prefix = name_space_prefix;
}
if(value_path == "object-time-stamp")
{
object_time_stamp = value;
object_time_stamp.value_namespace = name_space;
object_time_stamp.value_namespace_prefix = name_space_prefix;
}
if(value_path == "object-pointer")
{
object_pointer = value;
object_pointer.value_namespace = name_space;
object_pointer.value_namespace_prefix = name_space_prefix;
}
}
void Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialDropBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionBase::ObjectBase::set_filter(const std::string & value_path, YFilter yfilter)
{
if(value_path == "object-reference-count")
{
object_reference_count.yfilter = yfilter;
}
if(value_path == "object-flags")
{
object_flags.yfilter = yfilter;
}
if(value_path == "object-type")
{
object_type.yfilter = yfilter;
}
if(value_path == "object-time-stamp")
{
object_time_stamp.yfilter = yfilter;
}
if(value_path == "object-pointer")
{
object_pointer.yfilter = yfilter;
}
}
bool Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialDropBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionBase::ObjectBase::has_leaf_or_child_of_name(const std::string & name) const
{
if(name == "object-reference-count" || name == "object-flags" || name == "object-type" || name == "object-time-stamp" || name == "object-pointer")
return true;
return false;
}
Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialDropBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionDetail_::NhInfoExtensionDetail_()
:
type{YType::enumeration, "type"}
,
snecd_nhr(std::make_shared<Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialDropBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionDetail_::SnecdNhr>())
{
snecd_nhr->parent = this;
yang_name = "nh-info-extension-detail"; yang_parent_name = "nh-info-extension-detail"; is_top_level_class = false; has_list_ancestor = true;
}
Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialDropBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionDetail_::~NhInfoExtensionDetail_()
{
}
bool Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialDropBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionDetail_::has_data() const
{
if (is_presence_container) return true;
return type.is_set
|| (snecd_nhr != nullptr && snecd_nhr->has_data());
}
bool Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialDropBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionDetail_::has_operation() const
{
return is_set(yfilter)
|| ydk::is_set(type.yfilter)
|| (snecd_nhr != nullptr && snecd_nhr->has_operation());
}
std::string Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialDropBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionDetail_::get_segment_path() const
{
std::ostringstream path_buffer;
path_buffer << "nh-info-extension-detail";
return path_buffer.str();
}
std::vector<std::pair<std::string, LeafData> > Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialDropBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionDetail_::get_name_leaf_data() const
{
std::vector<std::pair<std::string, LeafData> > leaf_name_data {};
if (type.is_set || is_set(type.yfilter)) leaf_name_data.push_back(type.get_name_leafdata());
return leaf_name_data;
}
std::shared_ptr<ydk::Entity> Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialDropBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionDetail_::get_child_by_name(const std::string & child_yang_name, const std::string & segment_path)
{
if(child_yang_name == "snecd-nhr")
{
if(snecd_nhr == nullptr)
{
snecd_nhr = std::make_shared<Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialDropBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionDetail_::SnecdNhr>();
}
return snecd_nhr;
}
return nullptr;
}
std::map<std::string, std::shared_ptr<ydk::Entity>> Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialDropBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionDetail_::get_children() const
{
std::map<std::string, std::shared_ptr<ydk::Entity>> _children{};
char count_=0;
if(snecd_nhr != nullptr)
{
_children["snecd-nhr"] = snecd_nhr;
}
return _children;
}
void Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialDropBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionDetail_::set_value(const std::string & value_path, const std::string & value, const std::string & name_space, const std::string & name_space_prefix)
{
if(value_path == "type")
{
type = value;
type.value_namespace = name_space;
type.value_namespace_prefix = name_space_prefix;
}
}
void Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialDropBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionDetail_::set_filter(const std::string & value_path, YFilter yfilter)
{
if(value_path == "type")
{
type.yfilter = yfilter;
}
}
bool Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialDropBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionDetail_::has_leaf_or_child_of_name(const std::string & name) const
{
if(name == "snecd-nhr" || name == "type")
return true;
return false;
}
Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialDropBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionDetail_::SnecdNhr::SnecdNhr()
:
nh_info_replicated_type{YType::uint8, "nh-info-replicated-type"},
nh_info_replicated_nh_id{YType::uint32, "nh-info-replicated-nh-id"},
nh_info_replicated_encap_id{YType::uint64, "nh-info-replicated-encap-id"},
nh_info_replicated_interface{YType::str, "nh-info-replicated-interface"}
{
yang_name = "snecd-nhr"; yang_parent_name = "nh-info-extension-detail"; is_top_level_class = false; has_list_ancestor = true;
}
Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialDropBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionDetail_::SnecdNhr::~SnecdNhr()
{
}
bool Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialDropBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionDetail_::SnecdNhr::has_data() const
{
if (is_presence_container) return true;
return nh_info_replicated_type.is_set
|| nh_info_replicated_nh_id.is_set
|| nh_info_replicated_encap_id.is_set
|| nh_info_replicated_interface.is_set;
}
bool Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialDropBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionDetail_::SnecdNhr::has_operation() const
{
return is_set(yfilter)
|| ydk::is_set(nh_info_replicated_type.yfilter)
|| ydk::is_set(nh_info_replicated_nh_id.yfilter)
|| ydk::is_set(nh_info_replicated_encap_id.yfilter)
|| ydk::is_set(nh_info_replicated_interface.yfilter);
}
std::string Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialDropBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionDetail_::SnecdNhr::get_segment_path() const
{
std::ostringstream path_buffer;
path_buffer << "snecd-nhr";
return path_buffer.str();
}
std::vector<std::pair<std::string, LeafData> > Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialDropBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionDetail_::SnecdNhr::get_name_leaf_data() const
{
std::vector<std::pair<std::string, LeafData> > leaf_name_data {};
if (nh_info_replicated_type.is_set || is_set(nh_info_replicated_type.yfilter)) leaf_name_data.push_back(nh_info_replicated_type.get_name_leafdata());
if (nh_info_replicated_nh_id.is_set || is_set(nh_info_replicated_nh_id.yfilter)) leaf_name_data.push_back(nh_info_replicated_nh_id.get_name_leafdata());
if (nh_info_replicated_encap_id.is_set || is_set(nh_info_replicated_encap_id.yfilter)) leaf_name_data.push_back(nh_info_replicated_encap_id.get_name_leafdata());
if (nh_info_replicated_interface.is_set || is_set(nh_info_replicated_interface.yfilter)) leaf_name_data.push_back(nh_info_replicated_interface.get_name_leafdata());
return leaf_name_data;
}
std::shared_ptr<ydk::Entity> Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialDropBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionDetail_::SnecdNhr::get_child_by_name(const std::string & child_yang_name, const std::string & segment_path)
{
return nullptr;
}
std::map<std::string, std::shared_ptr<ydk::Entity>> Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialDropBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionDetail_::SnecdNhr::get_children() const
{
std::map<std::string, std::shared_ptr<ydk::Entity>> _children{};
char count_=0;
return _children;
}
void Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialDropBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionDetail_::SnecdNhr::set_value(const std::string & value_path, const std::string & value, const std::string & name_space, const std::string & name_space_prefix)
{
if(value_path == "nh-info-replicated-type")
{
nh_info_replicated_type = value;
nh_info_replicated_type.value_namespace = name_space;
nh_info_replicated_type.value_namespace_prefix = name_space_prefix;
}
if(value_path == "nh-info-replicated-nh-id")
{
nh_info_replicated_nh_id = value;
nh_info_replicated_nh_id.value_namespace = name_space;
nh_info_replicated_nh_id.value_namespace_prefix = name_space_prefix;
}
if(value_path == "nh-info-replicated-encap-id")
{
nh_info_replicated_encap_id = value;
nh_info_replicated_encap_id.value_namespace = name_space;
nh_info_replicated_encap_id.value_namespace_prefix = name_space_prefix;
}
if(value_path == "nh-info-replicated-interface")
{
nh_info_replicated_interface = value;
nh_info_replicated_interface.value_namespace = name_space;
nh_info_replicated_interface.value_namespace_prefix = name_space_prefix;
}
}
void Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialDropBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionDetail_::SnecdNhr::set_filter(const std::string & value_path, YFilter yfilter)
{
if(value_path == "nh-info-replicated-type")
{
nh_info_replicated_type.yfilter = yfilter;
}
if(value_path == "nh-info-replicated-nh-id")
{
nh_info_replicated_nh_id.yfilter = yfilter;
}
if(value_path == "nh-info-replicated-encap-id")
{
nh_info_replicated_encap_id.yfilter = yfilter;
}
if(value_path == "nh-info-replicated-interface")
{
nh_info_replicated_interface.yfilter = yfilter;
}
}
bool Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoSpecialBrief::NhInfoSpecialDropBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionDetail_::SnecdNhr::has_leaf_or_child_of_name(const std::string & name) const
{
if(name == "nh-info-replicated-type" || name == "nh-info-replicated-nh-id" || name == "nh-info-replicated-encap-id" || name == "nh-info-replicated-interface")
return true;
return false;
}
Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoRemoteBriefs::NhInfoRemoteBriefs()
:
nh_info_remote_brief(this, {})
{
yang_name = "nh-info-remote-briefs"; yang_parent_name = "nh-info-brief"; is_top_level_class = false; has_list_ancestor = true;
}
Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoRemoteBriefs::~NhInfoRemoteBriefs()
{
}
bool Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoRemoteBriefs::has_data() const
{
if (is_presence_container) return true;
for (std::size_t index=0; index<nh_info_remote_brief.len(); index++)
{
if(nh_info_remote_brief[index]->has_data())
return true;
}
return false;
}
bool Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoRemoteBriefs::has_operation() const
{
for (std::size_t index=0; index<nh_info_remote_brief.len(); index++)
{
if(nh_info_remote_brief[index]->has_operation())
return true;
}
return is_set(yfilter);
}
std::string Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoRemoteBriefs::get_segment_path() const
{
std::ostringstream path_buffer;
path_buffer << "nh-info-remote-briefs";
return path_buffer.str();
}
std::vector<std::pair<std::string, LeafData> > Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoRemoteBriefs::get_name_leaf_data() const
{
std::vector<std::pair<std::string, LeafData> > leaf_name_data {};
return leaf_name_data;
}
std::shared_ptr<ydk::Entity> Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoRemoteBriefs::get_child_by_name(const std::string & child_yang_name, const std::string & segment_path)
{
if(child_yang_name == "nh-info-remote-brief")
{
auto ent_ = std::make_shared<Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoRemoteBriefs::NhInfoRemoteBrief>();
ent_->parent = this;
nh_info_remote_brief.append(ent_);
return ent_;
}
return nullptr;
}
std::map<std::string, std::shared_ptr<ydk::Entity>> Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoRemoteBriefs::get_children() const
{
std::map<std::string, std::shared_ptr<ydk::Entity>> _children{};
char count_=0;
count_ = 0;
for (auto ent_ : nh_info_remote_brief.entities())
{
if(_children.find(ent_->get_segment_path()) == _children.end())
_children[ent_->get_segment_path()] = ent_;
else
_children[ent_->get_segment_path()+count_++] = ent_;
}
return _children;
}
void Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoRemoteBriefs::set_value(const std::string & value_path, const std::string & value, const std::string & name_space, const std::string & name_space_prefix)
{
}
void Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoRemoteBriefs::set_filter(const std::string & value_path, YFilter yfilter)
{
}
bool Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoRemoteBriefs::has_leaf_or_child_of_name(const std::string & name) const
{
if(name == "nh-info-remote-brief")
return true;
return false;
}
Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoRemoteBriefs::NhInfoRemoteBrief::NhInfoRemoteBrief()
:
nh_interface_name{YType::str, "nh-interface-name"},
nh_proto{YType::enumeration, "nh-proto"},
nh_pfx_length{YType::uint32, "nh-pfx-length"},
nh_address{YType::str, "nh-address"},
si_link_proto{YType::uint32, "si-link-proto"},
si_nhinfo{YType::uint32, "si-nhinfo"},
si_nhtype{YType::uint32, "si-nhtype"},
si_ifh{YType::uint32, "si-ifh"},
si_pfi_interface_type{YType::uint32, "si-pfi-interface-type"},
si_adj_ptr{YType::uint32, "si-adj-ptr"},
si_adj_present{YType::boolean, "si-adj-present"},
si_special_type{YType::uint32, "si-special-type"},
si_refcount{YType::uint32, "si-refcount"},
si_flags{YType::uint32, "si-flags"},
si_adj_if{YType::uint32, "si-adj-if"},
si_ext_pfx{YType::str, "si-ext-pfx"},
si_ext_pfx_len{YType::uint32, "si-ext-pfx-len"},
si_ext_pfx_proto{YType::uint32, "si-ext-pfx-proto"},
si_adj_address{YType::str, "si-adj-address"},
si_adj_addrlen{YType::uint32, "si-adj-addrlen"},
si_adj_addr_proto{YType::uint32, "si-adj-addr-proto"},
si_adj_rw_len{YType::uint32, "si-adj-rw-len"},
si_adj_rw{YType::str, "si-adj-rw"},
si_dep_nhinfo_type{YType::uint32, "si-dep-nhinfo-type"},
si_dep_nhinfo{YType::uint32, "si-dep-nhinfo"},
si_dep_nhinfo_ifh{YType::uint32, "si-dep-nhinfo-ifh"},
si_bkup_frr{YType::uint32, "si-bkup-frr"},
si_protect_frr{YType::uint32, "si-protect-frr"},
si_bkup_nhinfo{YType::uint32, "si-bkup-nhinfo"},
si_bkup_ifh{YType::uint32, "si-bkup-ifh"},
si_bkup_addr{YType::str, "si-bkup-addr"},
si_bkup_addrlen{YType::uint32, "si-bkup-addrlen"},
si_bkup_addr_proto{YType::uint32, "si-bkup-addr-proto"},
si_frr_active{YType::boolean, "si-frr-active"},
si_attr_is_ext_mgd{YType::boolean, "si-attr-is-ext-mgd"},
si_attr_is_incomp{YType::boolean, "si-attr-is-incomp"},
si_attr_is_tunnel{YType::boolean, "si-attr-is-tunnel"},
si_attr_is_tunnel_srte{YType::boolean, "si-attr-is-tunnel-srte"},
si_attr_is_gre_tunnel{YType::boolean, "si-attr-is-gre-tunnel"},
si_gre_ti{YType::uint32, "si-gre-ti"},
si_gre_ti_flags{YType::uint32, "si-gre-ti-flags"},
si_gre_ti_refcnt{YType::uint32, "si-gre-ti-refcnt"},
si_gre_tos_propagate{YType::boolean, "si-gre-tos-propagate"},
si_hardware{YType::str, "si-hardware"},
si_nhinfo_ptr{YType::uint32, "si-nhinfo-ptr"},
si_fnb_idb_ptr{YType::uint32, "si-fnb-idb-ptr"},
si_anc_ifh{YType::uint32, "si-anc-ifh"},
si_gre_ti_resolving_leafp{YType::uint32, "si-gre-ti-resolving-leafp"},
si_gre_dest_addr{YType::str, "si-gre-dest-addr"},
si_nhid{YType::uint32, "si-nhid"},
si_upd_ts{YType::uint64, "si-upd-ts"}
,
si_pwhe(std::make_shared<Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoRemoteBriefs::NhInfoRemoteBrief::SiPwhe>())
, nh_info_extension(std::make_shared<Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoRemoteBriefs::NhInfoRemoteBrief::NhInfoExtension>())
{
si_pwhe->parent = this;
nh_info_extension->parent = this;
yang_name = "nh-info-remote-brief"; yang_parent_name = "nh-info-remote-briefs"; is_top_level_class = false; has_list_ancestor = true;
}
Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoRemoteBriefs::NhInfoRemoteBrief::~NhInfoRemoteBrief()
{
}
bool Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoRemoteBriefs::NhInfoRemoteBrief::has_data() const
{
if (is_presence_container) return true;
return nh_interface_name.is_set
|| nh_proto.is_set
|| nh_pfx_length.is_set
|| nh_address.is_set
|| si_link_proto.is_set
|| si_nhinfo.is_set
|| si_nhtype.is_set
|| si_ifh.is_set
|| si_pfi_interface_type.is_set
|| si_adj_ptr.is_set
|| si_adj_present.is_set
|| si_special_type.is_set
|| si_refcount.is_set
|| si_flags.is_set
|| si_adj_if.is_set
|| si_ext_pfx.is_set
|| si_ext_pfx_len.is_set
|| si_ext_pfx_proto.is_set
|| si_adj_address.is_set
|| si_adj_addrlen.is_set
|| si_adj_addr_proto.is_set
|| si_adj_rw_len.is_set
|| si_adj_rw.is_set
|| si_dep_nhinfo_type.is_set
|| si_dep_nhinfo.is_set
|| si_dep_nhinfo_ifh.is_set
|| si_bkup_frr.is_set
|| si_protect_frr.is_set
|| si_bkup_nhinfo.is_set
|| si_bkup_ifh.is_set
|| si_bkup_addr.is_set
|| si_bkup_addrlen.is_set
|| si_bkup_addr_proto.is_set
|| si_frr_active.is_set
|| si_attr_is_ext_mgd.is_set
|| si_attr_is_incomp.is_set
|| si_attr_is_tunnel.is_set
|| si_attr_is_tunnel_srte.is_set
|| si_attr_is_gre_tunnel.is_set
|| si_gre_ti.is_set
|| si_gre_ti_flags.is_set
|| si_gre_ti_refcnt.is_set
|| si_gre_tos_propagate.is_set
|| si_hardware.is_set
|| si_nhinfo_ptr.is_set
|| si_fnb_idb_ptr.is_set
|| si_anc_ifh.is_set
|| si_gre_ti_resolving_leafp.is_set
|| si_gre_dest_addr.is_set
|| si_nhid.is_set
|| si_upd_ts.is_set
|| (si_pwhe != nullptr && si_pwhe->has_data())
|| (nh_info_extension != nullptr && nh_info_extension->has_data());
}
bool Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoRemoteBriefs::NhInfoRemoteBrief::has_operation() const
{
return is_set(yfilter)
|| ydk::is_set(nh_interface_name.yfilter)
|| ydk::is_set(nh_proto.yfilter)
|| ydk::is_set(nh_pfx_length.yfilter)
|| ydk::is_set(nh_address.yfilter)
|| ydk::is_set(si_link_proto.yfilter)
|| ydk::is_set(si_nhinfo.yfilter)
|| ydk::is_set(si_nhtype.yfilter)
|| ydk::is_set(si_ifh.yfilter)
|| ydk::is_set(si_pfi_interface_type.yfilter)
|| ydk::is_set(si_adj_ptr.yfilter)
|| ydk::is_set(si_adj_present.yfilter)
|| ydk::is_set(si_special_type.yfilter)
|| ydk::is_set(si_refcount.yfilter)
|| ydk::is_set(si_flags.yfilter)
|| ydk::is_set(si_adj_if.yfilter)
|| ydk::is_set(si_ext_pfx.yfilter)
|| ydk::is_set(si_ext_pfx_len.yfilter)
|| ydk::is_set(si_ext_pfx_proto.yfilter)
|| ydk::is_set(si_adj_address.yfilter)
|| ydk::is_set(si_adj_addrlen.yfilter)
|| ydk::is_set(si_adj_addr_proto.yfilter)
|| ydk::is_set(si_adj_rw_len.yfilter)
|| ydk::is_set(si_adj_rw.yfilter)
|| ydk::is_set(si_dep_nhinfo_type.yfilter)
|| ydk::is_set(si_dep_nhinfo.yfilter)
|| ydk::is_set(si_dep_nhinfo_ifh.yfilter)
|| ydk::is_set(si_bkup_frr.yfilter)
|| ydk::is_set(si_protect_frr.yfilter)
|| ydk::is_set(si_bkup_nhinfo.yfilter)
|| ydk::is_set(si_bkup_ifh.yfilter)
|| ydk::is_set(si_bkup_addr.yfilter)
|| ydk::is_set(si_bkup_addrlen.yfilter)
|| ydk::is_set(si_bkup_addr_proto.yfilter)
|| ydk::is_set(si_frr_active.yfilter)
|| ydk::is_set(si_attr_is_ext_mgd.yfilter)
|| ydk::is_set(si_attr_is_incomp.yfilter)
|| ydk::is_set(si_attr_is_tunnel.yfilter)
|| ydk::is_set(si_attr_is_tunnel_srte.yfilter)
|| ydk::is_set(si_attr_is_gre_tunnel.yfilter)
|| ydk::is_set(si_gre_ti.yfilter)
|| ydk::is_set(si_gre_ti_flags.yfilter)
|| ydk::is_set(si_gre_ti_refcnt.yfilter)
|| ydk::is_set(si_gre_tos_propagate.yfilter)
|| ydk::is_set(si_hardware.yfilter)
|| ydk::is_set(si_nhinfo_ptr.yfilter)
|| ydk::is_set(si_fnb_idb_ptr.yfilter)
|| ydk::is_set(si_anc_ifh.yfilter)
|| ydk::is_set(si_gre_ti_resolving_leafp.yfilter)
|| ydk::is_set(si_gre_dest_addr.yfilter)
|| ydk::is_set(si_nhid.yfilter)
|| ydk::is_set(si_upd_ts.yfilter)
|| (si_pwhe != nullptr && si_pwhe->has_operation())
|| (nh_info_extension != nullptr && nh_info_extension->has_operation());
}
std::string Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoRemoteBriefs::NhInfoRemoteBrief::get_segment_path() const
{
std::ostringstream path_buffer;
path_buffer << "nh-info-remote-brief";
path_buffer << "[" << get_ylist_key() << "]";
return path_buffer.str();
}
std::vector<std::pair<std::string, LeafData> > Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoRemoteBriefs::NhInfoRemoteBrief::get_name_leaf_data() const
{
std::vector<std::pair<std::string, LeafData> > leaf_name_data {};
if (nh_interface_name.is_set || is_set(nh_interface_name.yfilter)) leaf_name_data.push_back(nh_interface_name.get_name_leafdata());
if (nh_proto.is_set || is_set(nh_proto.yfilter)) leaf_name_data.push_back(nh_proto.get_name_leafdata());
if (nh_pfx_length.is_set || is_set(nh_pfx_length.yfilter)) leaf_name_data.push_back(nh_pfx_length.get_name_leafdata());
if (nh_address.is_set || is_set(nh_address.yfilter)) leaf_name_data.push_back(nh_address.get_name_leafdata());
if (si_link_proto.is_set || is_set(si_link_proto.yfilter)) leaf_name_data.push_back(si_link_proto.get_name_leafdata());
if (si_nhinfo.is_set || is_set(si_nhinfo.yfilter)) leaf_name_data.push_back(si_nhinfo.get_name_leafdata());
if (si_nhtype.is_set || is_set(si_nhtype.yfilter)) leaf_name_data.push_back(si_nhtype.get_name_leafdata());
if (si_ifh.is_set || is_set(si_ifh.yfilter)) leaf_name_data.push_back(si_ifh.get_name_leafdata());
if (si_pfi_interface_type.is_set || is_set(si_pfi_interface_type.yfilter)) leaf_name_data.push_back(si_pfi_interface_type.get_name_leafdata());
if (si_adj_ptr.is_set || is_set(si_adj_ptr.yfilter)) leaf_name_data.push_back(si_adj_ptr.get_name_leafdata());
if (si_adj_present.is_set || is_set(si_adj_present.yfilter)) leaf_name_data.push_back(si_adj_present.get_name_leafdata());
if (si_special_type.is_set || is_set(si_special_type.yfilter)) leaf_name_data.push_back(si_special_type.get_name_leafdata());
if (si_refcount.is_set || is_set(si_refcount.yfilter)) leaf_name_data.push_back(si_refcount.get_name_leafdata());
if (si_flags.is_set || is_set(si_flags.yfilter)) leaf_name_data.push_back(si_flags.get_name_leafdata());
if (si_adj_if.is_set || is_set(si_adj_if.yfilter)) leaf_name_data.push_back(si_adj_if.get_name_leafdata());
if (si_ext_pfx.is_set || is_set(si_ext_pfx.yfilter)) leaf_name_data.push_back(si_ext_pfx.get_name_leafdata());
if (si_ext_pfx_len.is_set || is_set(si_ext_pfx_len.yfilter)) leaf_name_data.push_back(si_ext_pfx_len.get_name_leafdata());
if (si_ext_pfx_proto.is_set || is_set(si_ext_pfx_proto.yfilter)) leaf_name_data.push_back(si_ext_pfx_proto.get_name_leafdata());
if (si_adj_address.is_set || is_set(si_adj_address.yfilter)) leaf_name_data.push_back(si_adj_address.get_name_leafdata());
if (si_adj_addrlen.is_set || is_set(si_adj_addrlen.yfilter)) leaf_name_data.push_back(si_adj_addrlen.get_name_leafdata());
if (si_adj_addr_proto.is_set || is_set(si_adj_addr_proto.yfilter)) leaf_name_data.push_back(si_adj_addr_proto.get_name_leafdata());
if (si_adj_rw_len.is_set || is_set(si_adj_rw_len.yfilter)) leaf_name_data.push_back(si_adj_rw_len.get_name_leafdata());
if (si_adj_rw.is_set || is_set(si_adj_rw.yfilter)) leaf_name_data.push_back(si_adj_rw.get_name_leafdata());
if (si_dep_nhinfo_type.is_set || is_set(si_dep_nhinfo_type.yfilter)) leaf_name_data.push_back(si_dep_nhinfo_type.get_name_leafdata());
if (si_dep_nhinfo.is_set || is_set(si_dep_nhinfo.yfilter)) leaf_name_data.push_back(si_dep_nhinfo.get_name_leafdata());
if (si_dep_nhinfo_ifh.is_set || is_set(si_dep_nhinfo_ifh.yfilter)) leaf_name_data.push_back(si_dep_nhinfo_ifh.get_name_leafdata());
if (si_bkup_frr.is_set || is_set(si_bkup_frr.yfilter)) leaf_name_data.push_back(si_bkup_frr.get_name_leafdata());
if (si_protect_frr.is_set || is_set(si_protect_frr.yfilter)) leaf_name_data.push_back(si_protect_frr.get_name_leafdata());
if (si_bkup_nhinfo.is_set || is_set(si_bkup_nhinfo.yfilter)) leaf_name_data.push_back(si_bkup_nhinfo.get_name_leafdata());
if (si_bkup_ifh.is_set || is_set(si_bkup_ifh.yfilter)) leaf_name_data.push_back(si_bkup_ifh.get_name_leafdata());
if (si_bkup_addr.is_set || is_set(si_bkup_addr.yfilter)) leaf_name_data.push_back(si_bkup_addr.get_name_leafdata());
if (si_bkup_addrlen.is_set || is_set(si_bkup_addrlen.yfilter)) leaf_name_data.push_back(si_bkup_addrlen.get_name_leafdata());
if (si_bkup_addr_proto.is_set || is_set(si_bkup_addr_proto.yfilter)) leaf_name_data.push_back(si_bkup_addr_proto.get_name_leafdata());
if (si_frr_active.is_set || is_set(si_frr_active.yfilter)) leaf_name_data.push_back(si_frr_active.get_name_leafdata());
if (si_attr_is_ext_mgd.is_set || is_set(si_attr_is_ext_mgd.yfilter)) leaf_name_data.push_back(si_attr_is_ext_mgd.get_name_leafdata());
if (si_attr_is_incomp.is_set || is_set(si_attr_is_incomp.yfilter)) leaf_name_data.push_back(si_attr_is_incomp.get_name_leafdata());
if (si_attr_is_tunnel.is_set || is_set(si_attr_is_tunnel.yfilter)) leaf_name_data.push_back(si_attr_is_tunnel.get_name_leafdata());
if (si_attr_is_tunnel_srte.is_set || is_set(si_attr_is_tunnel_srte.yfilter)) leaf_name_data.push_back(si_attr_is_tunnel_srte.get_name_leafdata());
if (si_attr_is_gre_tunnel.is_set || is_set(si_attr_is_gre_tunnel.yfilter)) leaf_name_data.push_back(si_attr_is_gre_tunnel.get_name_leafdata());
if (si_gre_ti.is_set || is_set(si_gre_ti.yfilter)) leaf_name_data.push_back(si_gre_ti.get_name_leafdata());
if (si_gre_ti_flags.is_set || is_set(si_gre_ti_flags.yfilter)) leaf_name_data.push_back(si_gre_ti_flags.get_name_leafdata());
if (si_gre_ti_refcnt.is_set || is_set(si_gre_ti_refcnt.yfilter)) leaf_name_data.push_back(si_gre_ti_refcnt.get_name_leafdata());
if (si_gre_tos_propagate.is_set || is_set(si_gre_tos_propagate.yfilter)) leaf_name_data.push_back(si_gre_tos_propagate.get_name_leafdata());
if (si_hardware.is_set || is_set(si_hardware.yfilter)) leaf_name_data.push_back(si_hardware.get_name_leafdata());
if (si_nhinfo_ptr.is_set || is_set(si_nhinfo_ptr.yfilter)) leaf_name_data.push_back(si_nhinfo_ptr.get_name_leafdata());
if (si_fnb_idb_ptr.is_set || is_set(si_fnb_idb_ptr.yfilter)) leaf_name_data.push_back(si_fnb_idb_ptr.get_name_leafdata());
if (si_anc_ifh.is_set || is_set(si_anc_ifh.yfilter)) leaf_name_data.push_back(si_anc_ifh.get_name_leafdata());
if (si_gre_ti_resolving_leafp.is_set || is_set(si_gre_ti_resolving_leafp.yfilter)) leaf_name_data.push_back(si_gre_ti_resolving_leafp.get_name_leafdata());
if (si_gre_dest_addr.is_set || is_set(si_gre_dest_addr.yfilter)) leaf_name_data.push_back(si_gre_dest_addr.get_name_leafdata());
if (si_nhid.is_set || is_set(si_nhid.yfilter)) leaf_name_data.push_back(si_nhid.get_name_leafdata());
if (si_upd_ts.is_set || is_set(si_upd_ts.yfilter)) leaf_name_data.push_back(si_upd_ts.get_name_leafdata());
return leaf_name_data;
}
std::shared_ptr<ydk::Entity> Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoRemoteBriefs::NhInfoRemoteBrief::get_child_by_name(const std::string & child_yang_name, const std::string & segment_path)
{
if(child_yang_name == "si-pwhe")
{
if(si_pwhe == nullptr)
{
si_pwhe = std::make_shared<Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoRemoteBriefs::NhInfoRemoteBrief::SiPwhe>();
}
return si_pwhe;
}
if(child_yang_name == "nh-info-extension")
{
if(nh_info_extension == nullptr)
{
nh_info_extension = std::make_shared<Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoRemoteBriefs::NhInfoRemoteBrief::NhInfoExtension>();
}
return nh_info_extension;
}
return nullptr;
}
std::map<std::string, std::shared_ptr<ydk::Entity>> Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoRemoteBriefs::NhInfoRemoteBrief::get_children() const
{
std::map<std::string, std::shared_ptr<ydk::Entity>> _children{};
char count_=0;
if(si_pwhe != nullptr)
{
_children["si-pwhe"] = si_pwhe;
}
if(nh_info_extension != nullptr)
{
_children["nh-info-extension"] = nh_info_extension;
}
return _children;
}
void Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoRemoteBriefs::NhInfoRemoteBrief::set_value(const std::string & value_path, const std::string & value, const std::string & name_space, const std::string & name_space_prefix)
{
if(value_path == "nh-interface-name")
{
nh_interface_name = value;
nh_interface_name.value_namespace = name_space;
nh_interface_name.value_namespace_prefix = name_space_prefix;
}
if(value_path == "nh-proto")
{
nh_proto = value;
nh_proto.value_namespace = name_space;
nh_proto.value_namespace_prefix = name_space_prefix;
}
if(value_path == "nh-pfx-length")
{
nh_pfx_length = value;
nh_pfx_length.value_namespace = name_space;
nh_pfx_length.value_namespace_prefix = name_space_prefix;
}
if(value_path == "nh-address")
{
nh_address = value;
nh_address.value_namespace = name_space;
nh_address.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-link-proto")
{
si_link_proto = value;
si_link_proto.value_namespace = name_space;
si_link_proto.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-nhinfo")
{
si_nhinfo = value;
si_nhinfo.value_namespace = name_space;
si_nhinfo.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-nhtype")
{
si_nhtype = value;
si_nhtype.value_namespace = name_space;
si_nhtype.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-ifh")
{
si_ifh = value;
si_ifh.value_namespace = name_space;
si_ifh.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-pfi-interface-type")
{
si_pfi_interface_type = value;
si_pfi_interface_type.value_namespace = name_space;
si_pfi_interface_type.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-adj-ptr")
{
si_adj_ptr = value;
si_adj_ptr.value_namespace = name_space;
si_adj_ptr.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-adj-present")
{
si_adj_present = value;
si_adj_present.value_namespace = name_space;
si_adj_present.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-special-type")
{
si_special_type = value;
si_special_type.value_namespace = name_space;
si_special_type.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-refcount")
{
si_refcount = value;
si_refcount.value_namespace = name_space;
si_refcount.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-flags")
{
si_flags = value;
si_flags.value_namespace = name_space;
si_flags.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-adj-if")
{
si_adj_if = value;
si_adj_if.value_namespace = name_space;
si_adj_if.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-ext-pfx")
{
si_ext_pfx = value;
si_ext_pfx.value_namespace = name_space;
si_ext_pfx.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-ext-pfx-len")
{
si_ext_pfx_len = value;
si_ext_pfx_len.value_namespace = name_space;
si_ext_pfx_len.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-ext-pfx-proto")
{
si_ext_pfx_proto = value;
si_ext_pfx_proto.value_namespace = name_space;
si_ext_pfx_proto.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-adj-address")
{
si_adj_address = value;
si_adj_address.value_namespace = name_space;
si_adj_address.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-adj-addrlen")
{
si_adj_addrlen = value;
si_adj_addrlen.value_namespace = name_space;
si_adj_addrlen.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-adj-addr-proto")
{
si_adj_addr_proto = value;
si_adj_addr_proto.value_namespace = name_space;
si_adj_addr_proto.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-adj-rw-len")
{
si_adj_rw_len = value;
si_adj_rw_len.value_namespace = name_space;
si_adj_rw_len.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-adj-rw")
{
si_adj_rw = value;
si_adj_rw.value_namespace = name_space;
si_adj_rw.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-dep-nhinfo-type")
{
si_dep_nhinfo_type = value;
si_dep_nhinfo_type.value_namespace = name_space;
si_dep_nhinfo_type.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-dep-nhinfo")
{
si_dep_nhinfo = value;
si_dep_nhinfo.value_namespace = name_space;
si_dep_nhinfo.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-dep-nhinfo-ifh")
{
si_dep_nhinfo_ifh = value;
si_dep_nhinfo_ifh.value_namespace = name_space;
si_dep_nhinfo_ifh.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-bkup-frr")
{
si_bkup_frr = value;
si_bkup_frr.value_namespace = name_space;
si_bkup_frr.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-protect-frr")
{
si_protect_frr = value;
si_protect_frr.value_namespace = name_space;
si_protect_frr.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-bkup-nhinfo")
{
si_bkup_nhinfo = value;
si_bkup_nhinfo.value_namespace = name_space;
si_bkup_nhinfo.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-bkup-ifh")
{
si_bkup_ifh = value;
si_bkup_ifh.value_namespace = name_space;
si_bkup_ifh.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-bkup-addr")
{
si_bkup_addr = value;
si_bkup_addr.value_namespace = name_space;
si_bkup_addr.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-bkup-addrlen")
{
si_bkup_addrlen = value;
si_bkup_addrlen.value_namespace = name_space;
si_bkup_addrlen.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-bkup-addr-proto")
{
si_bkup_addr_proto = value;
si_bkup_addr_proto.value_namespace = name_space;
si_bkup_addr_proto.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-frr-active")
{
si_frr_active = value;
si_frr_active.value_namespace = name_space;
si_frr_active.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-attr-is-ext-mgd")
{
si_attr_is_ext_mgd = value;
si_attr_is_ext_mgd.value_namespace = name_space;
si_attr_is_ext_mgd.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-attr-is-incomp")
{
si_attr_is_incomp = value;
si_attr_is_incomp.value_namespace = name_space;
si_attr_is_incomp.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-attr-is-tunnel")
{
si_attr_is_tunnel = value;
si_attr_is_tunnel.value_namespace = name_space;
si_attr_is_tunnel.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-attr-is-tunnel-srte")
{
si_attr_is_tunnel_srte = value;
si_attr_is_tunnel_srte.value_namespace = name_space;
si_attr_is_tunnel_srte.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-attr-is-gre-tunnel")
{
si_attr_is_gre_tunnel = value;
si_attr_is_gre_tunnel.value_namespace = name_space;
si_attr_is_gre_tunnel.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-gre-ti")
{
si_gre_ti = value;
si_gre_ti.value_namespace = name_space;
si_gre_ti.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-gre-ti-flags")
{
si_gre_ti_flags = value;
si_gre_ti_flags.value_namespace = name_space;
si_gre_ti_flags.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-gre-ti-refcnt")
{
si_gre_ti_refcnt = value;
si_gre_ti_refcnt.value_namespace = name_space;
si_gre_ti_refcnt.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-gre-tos-propagate")
{
si_gre_tos_propagate = value;
si_gre_tos_propagate.value_namespace = name_space;
si_gre_tos_propagate.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-hardware")
{
si_hardware = value;
si_hardware.value_namespace = name_space;
si_hardware.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-nhinfo-ptr")
{
si_nhinfo_ptr = value;
si_nhinfo_ptr.value_namespace = name_space;
si_nhinfo_ptr.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-fnb-idb-ptr")
{
si_fnb_idb_ptr = value;
si_fnb_idb_ptr.value_namespace = name_space;
si_fnb_idb_ptr.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-anc-ifh")
{
si_anc_ifh = value;
si_anc_ifh.value_namespace = name_space;
si_anc_ifh.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-gre-ti-resolving-leafp")
{
si_gre_ti_resolving_leafp = value;
si_gre_ti_resolving_leafp.value_namespace = name_space;
si_gre_ti_resolving_leafp.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-gre-dest-addr")
{
si_gre_dest_addr = value;
si_gre_dest_addr.value_namespace = name_space;
si_gre_dest_addr.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-nhid")
{
si_nhid = value;
si_nhid.value_namespace = name_space;
si_nhid.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-upd-ts")
{
si_upd_ts = value;
si_upd_ts.value_namespace = name_space;
si_upd_ts.value_namespace_prefix = name_space_prefix;
}
}
void Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoRemoteBriefs::NhInfoRemoteBrief::set_filter(const std::string & value_path, YFilter yfilter)
{
if(value_path == "nh-interface-name")
{
nh_interface_name.yfilter = yfilter;
}
if(value_path == "nh-proto")
{
nh_proto.yfilter = yfilter;
}
if(value_path == "nh-pfx-length")
{
nh_pfx_length.yfilter = yfilter;
}
if(value_path == "nh-address")
{
nh_address.yfilter = yfilter;
}
if(value_path == "si-link-proto")
{
si_link_proto.yfilter = yfilter;
}
if(value_path == "si-nhinfo")
{
si_nhinfo.yfilter = yfilter;
}
if(value_path == "si-nhtype")
{
si_nhtype.yfilter = yfilter;
}
if(value_path == "si-ifh")
{
si_ifh.yfilter = yfilter;
}
if(value_path == "si-pfi-interface-type")
{
si_pfi_interface_type.yfilter = yfilter;
}
if(value_path == "si-adj-ptr")
{
si_adj_ptr.yfilter = yfilter;
}
if(value_path == "si-adj-present")
{
si_adj_present.yfilter = yfilter;
}
if(value_path == "si-special-type")
{
si_special_type.yfilter = yfilter;
}
if(value_path == "si-refcount")
{
si_refcount.yfilter = yfilter;
}
if(value_path == "si-flags")
{
si_flags.yfilter = yfilter;
}
if(value_path == "si-adj-if")
{
si_adj_if.yfilter = yfilter;
}
if(value_path == "si-ext-pfx")
{
si_ext_pfx.yfilter = yfilter;
}
if(value_path == "si-ext-pfx-len")
{
si_ext_pfx_len.yfilter = yfilter;
}
if(value_path == "si-ext-pfx-proto")
{
si_ext_pfx_proto.yfilter = yfilter;
}
if(value_path == "si-adj-address")
{
si_adj_address.yfilter = yfilter;
}
if(value_path == "si-adj-addrlen")
{
si_adj_addrlen.yfilter = yfilter;
}
if(value_path == "si-adj-addr-proto")
{
si_adj_addr_proto.yfilter = yfilter;
}
if(value_path == "si-adj-rw-len")
{
si_adj_rw_len.yfilter = yfilter;
}
if(value_path == "si-adj-rw")
{
si_adj_rw.yfilter = yfilter;
}
if(value_path == "si-dep-nhinfo-type")
{
si_dep_nhinfo_type.yfilter = yfilter;
}
if(value_path == "si-dep-nhinfo")
{
si_dep_nhinfo.yfilter = yfilter;
}
if(value_path == "si-dep-nhinfo-ifh")
{
si_dep_nhinfo_ifh.yfilter = yfilter;
}
if(value_path == "si-bkup-frr")
{
si_bkup_frr.yfilter = yfilter;
}
if(value_path == "si-protect-frr")
{
si_protect_frr.yfilter = yfilter;
}
if(value_path == "si-bkup-nhinfo")
{
si_bkup_nhinfo.yfilter = yfilter;
}
if(value_path == "si-bkup-ifh")
{
si_bkup_ifh.yfilter = yfilter;
}
if(value_path == "si-bkup-addr")
{
si_bkup_addr.yfilter = yfilter;
}
if(value_path == "si-bkup-addrlen")
{
si_bkup_addrlen.yfilter = yfilter;
}
if(value_path == "si-bkup-addr-proto")
{
si_bkup_addr_proto.yfilter = yfilter;
}
if(value_path == "si-frr-active")
{
si_frr_active.yfilter = yfilter;
}
if(value_path == "si-attr-is-ext-mgd")
{
si_attr_is_ext_mgd.yfilter = yfilter;
}
if(value_path == "si-attr-is-incomp")
{
si_attr_is_incomp.yfilter = yfilter;
}
if(value_path == "si-attr-is-tunnel")
{
si_attr_is_tunnel.yfilter = yfilter;
}
if(value_path == "si-attr-is-tunnel-srte")
{
si_attr_is_tunnel_srte.yfilter = yfilter;
}
if(value_path == "si-attr-is-gre-tunnel")
{
si_attr_is_gre_tunnel.yfilter = yfilter;
}
if(value_path == "si-gre-ti")
{
si_gre_ti.yfilter = yfilter;
}
if(value_path == "si-gre-ti-flags")
{
si_gre_ti_flags.yfilter = yfilter;
}
if(value_path == "si-gre-ti-refcnt")
{
si_gre_ti_refcnt.yfilter = yfilter;
}
if(value_path == "si-gre-tos-propagate")
{
si_gre_tos_propagate.yfilter = yfilter;
}
if(value_path == "si-hardware")
{
si_hardware.yfilter = yfilter;
}
if(value_path == "si-nhinfo-ptr")
{
si_nhinfo_ptr.yfilter = yfilter;
}
if(value_path == "si-fnb-idb-ptr")
{
si_fnb_idb_ptr.yfilter = yfilter;
}
if(value_path == "si-anc-ifh")
{
si_anc_ifh.yfilter = yfilter;
}
if(value_path == "si-gre-ti-resolving-leafp")
{
si_gre_ti_resolving_leafp.yfilter = yfilter;
}
if(value_path == "si-gre-dest-addr")
{
si_gre_dest_addr.yfilter = yfilter;
}
if(value_path == "si-nhid")
{
si_nhid.yfilter = yfilter;
}
if(value_path == "si-upd-ts")
{
si_upd_ts.yfilter = yfilter;
}
}
bool Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoRemoteBriefs::NhInfoRemoteBrief::has_leaf_or_child_of_name(const std::string & name) const
{
if(name == "si-pwhe" || name == "nh-info-extension" || name == "nh-interface-name" || name == "nh-proto" || name == "nh-pfx-length" || name == "nh-address" || name == "si-link-proto" || name == "si-nhinfo" || name == "si-nhtype" || name == "si-ifh" || name == "si-pfi-interface-type" || name == "si-adj-ptr" || name == "si-adj-present" || name == "si-special-type" || name == "si-refcount" || name == "si-flags" || name == "si-adj-if" || name == "si-ext-pfx" || name == "si-ext-pfx-len" || name == "si-ext-pfx-proto" || name == "si-adj-address" || name == "si-adj-addrlen" || name == "si-adj-addr-proto" || name == "si-adj-rw-len" || name == "si-adj-rw" || name == "si-dep-nhinfo-type" || name == "si-dep-nhinfo" || name == "si-dep-nhinfo-ifh" || name == "si-bkup-frr" || name == "si-protect-frr" || name == "si-bkup-nhinfo" || name == "si-bkup-ifh" || name == "si-bkup-addr" || name == "si-bkup-addrlen" || name == "si-bkup-addr-proto" || name == "si-frr-active" || name == "si-attr-is-ext-mgd" || name == "si-attr-is-incomp" || name == "si-attr-is-tunnel" || name == "si-attr-is-tunnel-srte" || name == "si-attr-is-gre-tunnel" || name == "si-gre-ti" || name == "si-gre-ti-flags" || name == "si-gre-ti-refcnt" || name == "si-gre-tos-propagate" || name == "si-hardware" || name == "si-nhinfo-ptr" || name == "si-fnb-idb-ptr" || name == "si-anc-ifh" || name == "si-gre-ti-resolving-leafp" || name == "si-gre-dest-addr" || name == "si-nhid" || name == "si-upd-ts")
return true;
return false;
}
Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoRemoteBriefs::NhInfoRemoteBrief::SiPwhe::SiPwhe()
:
pwhe_adjacency_client_data{YType::uint32, "pwhe-adjacency-client-data"},
vctype{YType::uint32, "vctype"},
vc_internal_label{YType::uint32, "vc-internal-label"},
cw_enabled{YType::boolean, "cw-enabled"},
l2_overhead_bytes{YType::uint16, "l2-overhead-bytes"},
dot1q_vlan_tag{YType::uint32, "dot1q-vlan-tag"}
{
yang_name = "si-pwhe"; yang_parent_name = "nh-info-remote-brief"; is_top_level_class = false; has_list_ancestor = true;
}
Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoRemoteBriefs::NhInfoRemoteBrief::SiPwhe::~SiPwhe()
{
}
bool Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoRemoteBriefs::NhInfoRemoteBrief::SiPwhe::has_data() const
{
if (is_presence_container) return true;
return pwhe_adjacency_client_data.is_set
|| vctype.is_set
|| vc_internal_label.is_set
|| cw_enabled.is_set
|| l2_overhead_bytes.is_set
|| dot1q_vlan_tag.is_set;
}
bool Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoRemoteBriefs::NhInfoRemoteBrief::SiPwhe::has_operation() const
{
return is_set(yfilter)
|| ydk::is_set(pwhe_adjacency_client_data.yfilter)
|| ydk::is_set(vctype.yfilter)
|| ydk::is_set(vc_internal_label.yfilter)
|| ydk::is_set(cw_enabled.yfilter)
|| ydk::is_set(l2_overhead_bytes.yfilter)
|| ydk::is_set(dot1q_vlan_tag.yfilter);
}
std::string Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoRemoteBriefs::NhInfoRemoteBrief::SiPwhe::get_segment_path() const
{
std::ostringstream path_buffer;
path_buffer << "si-pwhe";
return path_buffer.str();
}
std::vector<std::pair<std::string, LeafData> > Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoRemoteBriefs::NhInfoRemoteBrief::SiPwhe::get_name_leaf_data() const
{
std::vector<std::pair<std::string, LeafData> > leaf_name_data {};
if (pwhe_adjacency_client_data.is_set || is_set(pwhe_adjacency_client_data.yfilter)) leaf_name_data.push_back(pwhe_adjacency_client_data.get_name_leafdata());
if (vctype.is_set || is_set(vctype.yfilter)) leaf_name_data.push_back(vctype.get_name_leafdata());
if (vc_internal_label.is_set || is_set(vc_internal_label.yfilter)) leaf_name_data.push_back(vc_internal_label.get_name_leafdata());
if (cw_enabled.is_set || is_set(cw_enabled.yfilter)) leaf_name_data.push_back(cw_enabled.get_name_leafdata());
if (l2_overhead_bytes.is_set || is_set(l2_overhead_bytes.yfilter)) leaf_name_data.push_back(l2_overhead_bytes.get_name_leafdata());
if (dot1q_vlan_tag.is_set || is_set(dot1q_vlan_tag.yfilter)) leaf_name_data.push_back(dot1q_vlan_tag.get_name_leafdata());
return leaf_name_data;
}
std::shared_ptr<ydk::Entity> Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoRemoteBriefs::NhInfoRemoteBrief::SiPwhe::get_child_by_name(const std::string & child_yang_name, const std::string & segment_path)
{
return nullptr;
}
std::map<std::string, std::shared_ptr<ydk::Entity>> Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoRemoteBriefs::NhInfoRemoteBrief::SiPwhe::get_children() const
{
std::map<std::string, std::shared_ptr<ydk::Entity>> _children{};
char count_=0;
return _children;
}
void Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoRemoteBriefs::NhInfoRemoteBrief::SiPwhe::set_value(const std::string & value_path, const std::string & value, const std::string & name_space, const std::string & name_space_prefix)
{
if(value_path == "pwhe-adjacency-client-data")
{
pwhe_adjacency_client_data = value;
pwhe_adjacency_client_data.value_namespace = name_space;
pwhe_adjacency_client_data.value_namespace_prefix = name_space_prefix;
}
if(value_path == "vctype")
{
vctype = value;
vctype.value_namespace = name_space;
vctype.value_namespace_prefix = name_space_prefix;
}
if(value_path == "vc-internal-label")
{
vc_internal_label = value;
vc_internal_label.value_namespace = name_space;
vc_internal_label.value_namespace_prefix = name_space_prefix;
}
if(value_path == "cw-enabled")
{
cw_enabled = value;
cw_enabled.value_namespace = name_space;
cw_enabled.value_namespace_prefix = name_space_prefix;
}
if(value_path == "l2-overhead-bytes")
{
l2_overhead_bytes = value;
l2_overhead_bytes.value_namespace = name_space;
l2_overhead_bytes.value_namespace_prefix = name_space_prefix;
}
if(value_path == "dot1q-vlan-tag")
{
dot1q_vlan_tag = value;
dot1q_vlan_tag.value_namespace = name_space;
dot1q_vlan_tag.value_namespace_prefix = name_space_prefix;
}
}
void Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoRemoteBriefs::NhInfoRemoteBrief::SiPwhe::set_filter(const std::string & value_path, YFilter yfilter)
{
if(value_path == "pwhe-adjacency-client-data")
{
pwhe_adjacency_client_data.yfilter = yfilter;
}
if(value_path == "vctype")
{
vctype.yfilter = yfilter;
}
if(value_path == "vc-internal-label")
{
vc_internal_label.yfilter = yfilter;
}
if(value_path == "cw-enabled")
{
cw_enabled.yfilter = yfilter;
}
if(value_path == "l2-overhead-bytes")
{
l2_overhead_bytes.yfilter = yfilter;
}
if(value_path == "dot1q-vlan-tag")
{
dot1q_vlan_tag.yfilter = yfilter;
}
}
bool Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoRemoteBriefs::NhInfoRemoteBrief::SiPwhe::has_leaf_or_child_of_name(const std::string & name) const
{
if(name == "pwhe-adjacency-client-data" || name == "vctype" || name == "vc-internal-label" || name == "cw-enabled" || name == "l2-overhead-bytes" || name == "dot1q-vlan-tag")
return true;
return false;
}
Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoRemoteBriefs::NhInfoRemoteBrief::NhInfoExtension::NhInfoExtension()
:
nh_info_extension_detail(this, {})
{
yang_name = "nh-info-extension"; yang_parent_name = "nh-info-remote-brief"; is_top_level_class = false; has_list_ancestor = true;
}
Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoRemoteBriefs::NhInfoRemoteBrief::NhInfoExtension::~NhInfoExtension()
{
}
bool Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoRemoteBriefs::NhInfoRemoteBrief::NhInfoExtension::has_data() const
{
if (is_presence_container) return true;
for (std::size_t index=0; index<nh_info_extension_detail.len(); index++)
{
if(nh_info_extension_detail[index]->has_data())
return true;
}
return false;
}
bool Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoRemoteBriefs::NhInfoRemoteBrief::NhInfoExtension::has_operation() const
{
for (std::size_t index=0; index<nh_info_extension_detail.len(); index++)
{
if(nh_info_extension_detail[index]->has_operation())
return true;
}
return is_set(yfilter);
}
std::string Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoRemoteBriefs::NhInfoRemoteBrief::NhInfoExtension::get_segment_path() const
{
std::ostringstream path_buffer;
path_buffer << "nh-info-extension";
return path_buffer.str();
}
std::vector<std::pair<std::string, LeafData> > Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoRemoteBriefs::NhInfoRemoteBrief::NhInfoExtension::get_name_leaf_data() const
{
std::vector<std::pair<std::string, LeafData> > leaf_name_data {};
return leaf_name_data;
}
std::shared_ptr<ydk::Entity> Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoRemoteBriefs::NhInfoRemoteBrief::NhInfoExtension::get_child_by_name(const std::string & child_yang_name, const std::string & segment_path)
{
if(child_yang_name == "nh-info-extension-detail")
{
auto ent_ = std::make_shared<Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoRemoteBriefs::NhInfoRemoteBrief::NhInfoExtension::NhInfoExtensionDetail>();
ent_->parent = this;
nh_info_extension_detail.append(ent_);
return ent_;
}
return nullptr;
}
std::map<std::string, std::shared_ptr<ydk::Entity>> Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoRemoteBriefs::NhInfoRemoteBrief::NhInfoExtension::get_children() const
{
std::map<std::string, std::shared_ptr<ydk::Entity>> _children{};
char count_=0;
count_ = 0;
for (auto ent_ : nh_info_extension_detail.entities())
{
if(_children.find(ent_->get_segment_path()) == _children.end())
_children[ent_->get_segment_path()] = ent_;
else
_children[ent_->get_segment_path()+count_++] = ent_;
}
return _children;
}
void Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoRemoteBriefs::NhInfoRemoteBrief::NhInfoExtension::set_value(const std::string & value_path, const std::string & value, const std::string & name_space, const std::string & name_space_prefix)
{
}
void Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoRemoteBriefs::NhInfoRemoteBrief::NhInfoExtension::set_filter(const std::string & value_path, YFilter yfilter)
{
}
bool Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoRemoteBriefs::NhInfoRemoteBrief::NhInfoExtension::has_leaf_or_child_of_name(const std::string & name) const
{
if(name == "nh-info-extension-detail")
return true;
return false;
}
Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoRemoteBriefs::NhInfoRemoteBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionDetail()
:
nh_info_extension_base(std::make_shared<Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoRemoteBriefs::NhInfoRemoteBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionBase>())
, nh_info_extension_detail(std::make_shared<Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoRemoteBriefs::NhInfoRemoteBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionDetail_>())
{
nh_info_extension_base->parent = this;
nh_info_extension_detail->parent = this;
yang_name = "nh-info-extension-detail"; yang_parent_name = "nh-info-extension"; is_top_level_class = false; has_list_ancestor = true;
}
Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoRemoteBriefs::NhInfoRemoteBrief::NhInfoExtension::NhInfoExtensionDetail::~NhInfoExtensionDetail()
{
}
bool Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoRemoteBriefs::NhInfoRemoteBrief::NhInfoExtension::NhInfoExtensionDetail::has_data() const
{
if (is_presence_container) return true;
return (nh_info_extension_base != nullptr && nh_info_extension_base->has_data())
|| (nh_info_extension_detail != nullptr && nh_info_extension_detail->has_data());
}
bool Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoRemoteBriefs::NhInfoRemoteBrief::NhInfoExtension::NhInfoExtensionDetail::has_operation() const
{
return is_set(yfilter)
|| (nh_info_extension_base != nullptr && nh_info_extension_base->has_operation())
|| (nh_info_extension_detail != nullptr && nh_info_extension_detail->has_operation());
}
std::string Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoRemoteBriefs::NhInfoRemoteBrief::NhInfoExtension::NhInfoExtensionDetail::get_segment_path() const
{
std::ostringstream path_buffer;
path_buffer << "nh-info-extension-detail";
path_buffer << "[" << get_ylist_key() << "]";
return path_buffer.str();
}
std::vector<std::pair<std::string, LeafData> > Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoRemoteBriefs::NhInfoRemoteBrief::NhInfoExtension::NhInfoExtensionDetail::get_name_leaf_data() const
{
std::vector<std::pair<std::string, LeafData> > leaf_name_data {};
return leaf_name_data;
}
std::shared_ptr<ydk::Entity> Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoRemoteBriefs::NhInfoRemoteBrief::NhInfoExtension::NhInfoExtensionDetail::get_child_by_name(const std::string & child_yang_name, const std::string & segment_path)
{
if(child_yang_name == "nh-info-extension-base")
{
if(nh_info_extension_base == nullptr)
{
nh_info_extension_base = std::make_shared<Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoRemoteBriefs::NhInfoRemoteBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionBase>();
}
return nh_info_extension_base;
}
if(child_yang_name == "nh-info-extension-detail")
{
if(nh_info_extension_detail == nullptr)
{
nh_info_extension_detail = std::make_shared<Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoRemoteBriefs::NhInfoRemoteBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionDetail_>();
}
return nh_info_extension_detail;
}
return nullptr;
}
std::map<std::string, std::shared_ptr<ydk::Entity>> Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoRemoteBriefs::NhInfoRemoteBrief::NhInfoExtension::NhInfoExtensionDetail::get_children() const
{
std::map<std::string, std::shared_ptr<ydk::Entity>> _children{};
char count_=0;
if(nh_info_extension_base != nullptr)
{
_children["nh-info-extension-base"] = nh_info_extension_base;
}
if(nh_info_extension_detail != nullptr)
{
_children["nh-info-extension-detail"] = nh_info_extension_detail;
}
return _children;
}
void Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoRemoteBriefs::NhInfoRemoteBrief::NhInfoExtension::NhInfoExtensionDetail::set_value(const std::string & value_path, const std::string & value, const std::string & name_space, const std::string & name_space_prefix)
{
}
void Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoRemoteBriefs::NhInfoRemoteBrief::NhInfoExtension::NhInfoExtensionDetail::set_filter(const std::string & value_path, YFilter yfilter)
{
}
bool Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoRemoteBriefs::NhInfoRemoteBrief::NhInfoExtension::NhInfoExtensionDetail::has_leaf_or_child_of_name(const std::string & name) const
{
if(name == "nh-info-extension-base" || name == "nh-info-extension-detail")
return true;
return false;
}
Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoRemoteBriefs::NhInfoRemoteBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionBase::NhInfoExtensionBase()
:
parent_object_pointer{YType::uint64, "parent-object-pointer"},
back_object_pointer{YType::uint64, "back-object-pointer"}
,
object_base(std::make_shared<Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoRemoteBriefs::NhInfoRemoteBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionBase::ObjectBase>())
{
object_base->parent = this;
yang_name = "nh-info-extension-base"; yang_parent_name = "nh-info-extension-detail"; is_top_level_class = false; has_list_ancestor = true;
}
Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoRemoteBriefs::NhInfoRemoteBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionBase::~NhInfoExtensionBase()
{
}
bool Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoRemoteBriefs::NhInfoRemoteBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionBase::has_data() const
{
if (is_presence_container) return true;
return parent_object_pointer.is_set
|| back_object_pointer.is_set
|| (object_base != nullptr && object_base->has_data());
}
bool Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoRemoteBriefs::NhInfoRemoteBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionBase::has_operation() const
{
return is_set(yfilter)
|| ydk::is_set(parent_object_pointer.yfilter)
|| ydk::is_set(back_object_pointer.yfilter)
|| (object_base != nullptr && object_base->has_operation());
}
std::string Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoRemoteBriefs::NhInfoRemoteBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionBase::get_segment_path() const
{
std::ostringstream path_buffer;
path_buffer << "nh-info-extension-base";
return path_buffer.str();
}
std::vector<std::pair<std::string, LeafData> > Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoRemoteBriefs::NhInfoRemoteBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionBase::get_name_leaf_data() const
{
std::vector<std::pair<std::string, LeafData> > leaf_name_data {};
if (parent_object_pointer.is_set || is_set(parent_object_pointer.yfilter)) leaf_name_data.push_back(parent_object_pointer.get_name_leafdata());
if (back_object_pointer.is_set || is_set(back_object_pointer.yfilter)) leaf_name_data.push_back(back_object_pointer.get_name_leafdata());
return leaf_name_data;
}
std::shared_ptr<ydk::Entity> Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoRemoteBriefs::NhInfoRemoteBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionBase::get_child_by_name(const std::string & child_yang_name, const std::string & segment_path)
{
if(child_yang_name == "object-base")
{
if(object_base == nullptr)
{
object_base = std::make_shared<Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoRemoteBriefs::NhInfoRemoteBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionBase::ObjectBase>();
}
return object_base;
}
return nullptr;
}
std::map<std::string, std::shared_ptr<ydk::Entity>> Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoRemoteBriefs::NhInfoRemoteBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionBase::get_children() const
{
std::map<std::string, std::shared_ptr<ydk::Entity>> _children{};
char count_=0;
if(object_base != nullptr)
{
_children["object-base"] = object_base;
}
return _children;
}
void Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoRemoteBriefs::NhInfoRemoteBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionBase::set_value(const std::string & value_path, const std::string & value, const std::string & name_space, const std::string & name_space_prefix)
{
if(value_path == "parent-object-pointer")
{
parent_object_pointer = value;
parent_object_pointer.value_namespace = name_space;
parent_object_pointer.value_namespace_prefix = name_space_prefix;
}
if(value_path == "back-object-pointer")
{
back_object_pointer = value;
back_object_pointer.value_namespace = name_space;
back_object_pointer.value_namespace_prefix = name_space_prefix;
}
}
void Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoRemoteBriefs::NhInfoRemoteBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionBase::set_filter(const std::string & value_path, YFilter yfilter)
{
if(value_path == "parent-object-pointer")
{
parent_object_pointer.yfilter = yfilter;
}
if(value_path == "back-object-pointer")
{
back_object_pointer.yfilter = yfilter;
}
}
bool Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoRemoteBriefs::NhInfoRemoteBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionBase::has_leaf_or_child_of_name(const std::string & name) const
{
if(name == "object-base" || name == "parent-object-pointer" || name == "back-object-pointer")
return true;
return false;
}
Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoRemoteBriefs::NhInfoRemoteBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionBase::ObjectBase::ObjectBase()
:
object_reference_count{YType::uint32, "object-reference-count"},
object_flags{YType::uint32, "object-flags"},
object_type{YType::uint8, "object-type"},
object_time_stamp{YType::uint64, "object-time-stamp"},
object_pointer{YType::uint64, "object-pointer"}
{
yang_name = "object-base"; yang_parent_name = "nh-info-extension-base"; is_top_level_class = false; has_list_ancestor = true;
}
Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoRemoteBriefs::NhInfoRemoteBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionBase::ObjectBase::~ObjectBase()
{
}
bool Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoRemoteBriefs::NhInfoRemoteBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionBase::ObjectBase::has_data() const
{
if (is_presence_container) return true;
return object_reference_count.is_set
|| object_flags.is_set
|| object_type.is_set
|| object_time_stamp.is_set
|| object_pointer.is_set;
}
bool Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoRemoteBriefs::NhInfoRemoteBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionBase::ObjectBase::has_operation() const
{
return is_set(yfilter)
|| ydk::is_set(object_reference_count.yfilter)
|| ydk::is_set(object_flags.yfilter)
|| ydk::is_set(object_type.yfilter)
|| ydk::is_set(object_time_stamp.yfilter)
|| ydk::is_set(object_pointer.yfilter);
}
std::string Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoRemoteBriefs::NhInfoRemoteBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionBase::ObjectBase::get_segment_path() const
{
std::ostringstream path_buffer;
path_buffer << "object-base";
return path_buffer.str();
}
std::vector<std::pair<std::string, LeafData> > Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoRemoteBriefs::NhInfoRemoteBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionBase::ObjectBase::get_name_leaf_data() const
{
std::vector<std::pair<std::string, LeafData> > leaf_name_data {};
if (object_reference_count.is_set || is_set(object_reference_count.yfilter)) leaf_name_data.push_back(object_reference_count.get_name_leafdata());
if (object_flags.is_set || is_set(object_flags.yfilter)) leaf_name_data.push_back(object_flags.get_name_leafdata());
if (object_type.is_set || is_set(object_type.yfilter)) leaf_name_data.push_back(object_type.get_name_leafdata());
if (object_time_stamp.is_set || is_set(object_time_stamp.yfilter)) leaf_name_data.push_back(object_time_stamp.get_name_leafdata());
if (object_pointer.is_set || is_set(object_pointer.yfilter)) leaf_name_data.push_back(object_pointer.get_name_leafdata());
return leaf_name_data;
}
std::shared_ptr<ydk::Entity> Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoRemoteBriefs::NhInfoRemoteBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionBase::ObjectBase::get_child_by_name(const std::string & child_yang_name, const std::string & segment_path)
{
return nullptr;
}
std::map<std::string, std::shared_ptr<ydk::Entity>> Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoRemoteBriefs::NhInfoRemoteBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionBase::ObjectBase::get_children() const
{
std::map<std::string, std::shared_ptr<ydk::Entity>> _children{};
char count_=0;
return _children;
}
void Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoRemoteBriefs::NhInfoRemoteBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionBase::ObjectBase::set_value(const std::string & value_path, const std::string & value, const std::string & name_space, const std::string & name_space_prefix)
{
if(value_path == "object-reference-count")
{
object_reference_count = value;
object_reference_count.value_namespace = name_space;
object_reference_count.value_namespace_prefix = name_space_prefix;
}
if(value_path == "object-flags")
{
object_flags = value;
object_flags.value_namespace = name_space;
object_flags.value_namespace_prefix = name_space_prefix;
}
if(value_path == "object-type")
{
object_type = value;
object_type.value_namespace = name_space;
object_type.value_namespace_prefix = name_space_prefix;
}
if(value_path == "object-time-stamp")
{
object_time_stamp = value;
object_time_stamp.value_namespace = name_space;
object_time_stamp.value_namespace_prefix = name_space_prefix;
}
if(value_path == "object-pointer")
{
object_pointer = value;
object_pointer.value_namespace = name_space;
object_pointer.value_namespace_prefix = name_space_prefix;
}
}
void Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoRemoteBriefs::NhInfoRemoteBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionBase::ObjectBase::set_filter(const std::string & value_path, YFilter yfilter)
{
if(value_path == "object-reference-count")
{
object_reference_count.yfilter = yfilter;
}
if(value_path == "object-flags")
{
object_flags.yfilter = yfilter;
}
if(value_path == "object-type")
{
object_type.yfilter = yfilter;
}
if(value_path == "object-time-stamp")
{
object_time_stamp.yfilter = yfilter;
}
if(value_path == "object-pointer")
{
object_pointer.yfilter = yfilter;
}
}
bool Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoRemoteBriefs::NhInfoRemoteBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionBase::ObjectBase::has_leaf_or_child_of_name(const std::string & name) const
{
if(name == "object-reference-count" || name == "object-flags" || name == "object-type" || name == "object-time-stamp" || name == "object-pointer")
return true;
return false;
}
Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoRemoteBriefs::NhInfoRemoteBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionDetail_::NhInfoExtensionDetail_()
:
type{YType::enumeration, "type"}
,
snecd_nhr(std::make_shared<Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoRemoteBriefs::NhInfoRemoteBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionDetail_::SnecdNhr>())
{
snecd_nhr->parent = this;
yang_name = "nh-info-extension-detail"; yang_parent_name = "nh-info-extension-detail"; is_top_level_class = false; has_list_ancestor = true;
}
Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoRemoteBriefs::NhInfoRemoteBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionDetail_::~NhInfoExtensionDetail_()
{
}
bool Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoRemoteBriefs::NhInfoRemoteBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionDetail_::has_data() const
{
if (is_presence_container) return true;
return type.is_set
|| (snecd_nhr != nullptr && snecd_nhr->has_data());
}
bool Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoRemoteBriefs::NhInfoRemoteBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionDetail_::has_operation() const
{
return is_set(yfilter)
|| ydk::is_set(type.yfilter)
|| (snecd_nhr != nullptr && snecd_nhr->has_operation());
}
std::string Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoRemoteBriefs::NhInfoRemoteBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionDetail_::get_segment_path() const
{
std::ostringstream path_buffer;
path_buffer << "nh-info-extension-detail";
return path_buffer.str();
}
std::vector<std::pair<std::string, LeafData> > Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoRemoteBriefs::NhInfoRemoteBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionDetail_::get_name_leaf_data() const
{
std::vector<std::pair<std::string, LeafData> > leaf_name_data {};
if (type.is_set || is_set(type.yfilter)) leaf_name_data.push_back(type.get_name_leafdata());
return leaf_name_data;
}
std::shared_ptr<ydk::Entity> Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoRemoteBriefs::NhInfoRemoteBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionDetail_::get_child_by_name(const std::string & child_yang_name, const std::string & segment_path)
{
if(child_yang_name == "snecd-nhr")
{
if(snecd_nhr == nullptr)
{
snecd_nhr = std::make_shared<Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoRemoteBriefs::NhInfoRemoteBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionDetail_::SnecdNhr>();
}
return snecd_nhr;
}
return nullptr;
}
std::map<std::string, std::shared_ptr<ydk::Entity>> Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoRemoteBriefs::NhInfoRemoteBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionDetail_::get_children() const
{
std::map<std::string, std::shared_ptr<ydk::Entity>> _children{};
char count_=0;
if(snecd_nhr != nullptr)
{
_children["snecd-nhr"] = snecd_nhr;
}
return _children;
}
void Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoRemoteBriefs::NhInfoRemoteBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionDetail_::set_value(const std::string & value_path, const std::string & value, const std::string & name_space, const std::string & name_space_prefix)
{
if(value_path == "type")
{
type = value;
type.value_namespace = name_space;
type.value_namespace_prefix = name_space_prefix;
}
}
void Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoRemoteBriefs::NhInfoRemoteBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionDetail_::set_filter(const std::string & value_path, YFilter yfilter)
{
if(value_path == "type")
{
type.yfilter = yfilter;
}
}
bool Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoRemoteBriefs::NhInfoRemoteBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionDetail_::has_leaf_or_child_of_name(const std::string & name) const
{
if(name == "snecd-nhr" || name == "type")
return true;
return false;
}
Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoRemoteBriefs::NhInfoRemoteBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionDetail_::SnecdNhr::SnecdNhr()
:
nh_info_replicated_type{YType::uint8, "nh-info-replicated-type"},
nh_info_replicated_nh_id{YType::uint32, "nh-info-replicated-nh-id"},
nh_info_replicated_encap_id{YType::uint64, "nh-info-replicated-encap-id"},
nh_info_replicated_interface{YType::str, "nh-info-replicated-interface"}
{
yang_name = "snecd-nhr"; yang_parent_name = "nh-info-extension-detail"; is_top_level_class = false; has_list_ancestor = true;
}
Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoRemoteBriefs::NhInfoRemoteBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionDetail_::SnecdNhr::~SnecdNhr()
{
}
bool Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoRemoteBriefs::NhInfoRemoteBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionDetail_::SnecdNhr::has_data() const
{
if (is_presence_container) return true;
return nh_info_replicated_type.is_set
|| nh_info_replicated_nh_id.is_set
|| nh_info_replicated_encap_id.is_set
|| nh_info_replicated_interface.is_set;
}
bool Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoRemoteBriefs::NhInfoRemoteBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionDetail_::SnecdNhr::has_operation() const
{
return is_set(yfilter)
|| ydk::is_set(nh_info_replicated_type.yfilter)
|| ydk::is_set(nh_info_replicated_nh_id.yfilter)
|| ydk::is_set(nh_info_replicated_encap_id.yfilter)
|| ydk::is_set(nh_info_replicated_interface.yfilter);
}
std::string Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoRemoteBriefs::NhInfoRemoteBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionDetail_::SnecdNhr::get_segment_path() const
{
std::ostringstream path_buffer;
path_buffer << "snecd-nhr";
return path_buffer.str();
}
std::vector<std::pair<std::string, LeafData> > Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoRemoteBriefs::NhInfoRemoteBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionDetail_::SnecdNhr::get_name_leaf_data() const
{
std::vector<std::pair<std::string, LeafData> > leaf_name_data {};
if (nh_info_replicated_type.is_set || is_set(nh_info_replicated_type.yfilter)) leaf_name_data.push_back(nh_info_replicated_type.get_name_leafdata());
if (nh_info_replicated_nh_id.is_set || is_set(nh_info_replicated_nh_id.yfilter)) leaf_name_data.push_back(nh_info_replicated_nh_id.get_name_leafdata());
if (nh_info_replicated_encap_id.is_set || is_set(nh_info_replicated_encap_id.yfilter)) leaf_name_data.push_back(nh_info_replicated_encap_id.get_name_leafdata());
if (nh_info_replicated_interface.is_set || is_set(nh_info_replicated_interface.yfilter)) leaf_name_data.push_back(nh_info_replicated_interface.get_name_leafdata());
return leaf_name_data;
}
std::shared_ptr<ydk::Entity> Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoRemoteBriefs::NhInfoRemoteBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionDetail_::SnecdNhr::get_child_by_name(const std::string & child_yang_name, const std::string & segment_path)
{
return nullptr;
}
std::map<std::string, std::shared_ptr<ydk::Entity>> Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoRemoteBriefs::NhInfoRemoteBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionDetail_::SnecdNhr::get_children() const
{
std::map<std::string, std::shared_ptr<ydk::Entity>> _children{};
char count_=0;
return _children;
}
void Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoRemoteBriefs::NhInfoRemoteBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionDetail_::SnecdNhr::set_value(const std::string & value_path, const std::string & value, const std::string & name_space, const std::string & name_space_prefix)
{
if(value_path == "nh-info-replicated-type")
{
nh_info_replicated_type = value;
nh_info_replicated_type.value_namespace = name_space;
nh_info_replicated_type.value_namespace_prefix = name_space_prefix;
}
if(value_path == "nh-info-replicated-nh-id")
{
nh_info_replicated_nh_id = value;
nh_info_replicated_nh_id.value_namespace = name_space;
nh_info_replicated_nh_id.value_namespace_prefix = name_space_prefix;
}
if(value_path == "nh-info-replicated-encap-id")
{
nh_info_replicated_encap_id = value;
nh_info_replicated_encap_id.value_namespace = name_space;
nh_info_replicated_encap_id.value_namespace_prefix = name_space_prefix;
}
if(value_path == "nh-info-replicated-interface")
{
nh_info_replicated_interface = value;
nh_info_replicated_interface.value_namespace = name_space;
nh_info_replicated_interface.value_namespace_prefix = name_space_prefix;
}
}
void Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoRemoteBriefs::NhInfoRemoteBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionDetail_::SnecdNhr::set_filter(const std::string & value_path, YFilter yfilter)
{
if(value_path == "nh-info-replicated-type")
{
nh_info_replicated_type.yfilter = yfilter;
}
if(value_path == "nh-info-replicated-nh-id")
{
nh_info_replicated_nh_id.yfilter = yfilter;
}
if(value_path == "nh-info-replicated-encap-id")
{
nh_info_replicated_encap_id.yfilter = yfilter;
}
if(value_path == "nh-info-replicated-interface")
{
nh_info_replicated_interface.yfilter = yfilter;
}
}
bool Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoRemoteBriefs::NhInfoRemoteBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionDetail_::SnecdNhr::has_leaf_or_child_of_name(const std::string & name) const
{
if(name == "nh-info-replicated-type" || name == "nh-info-replicated-nh-id" || name == "nh-info-replicated-encap-id" || name == "nh-info-replicated-interface")
return true;
return false;
}
Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoLocalBriefs::NhInfoLocalBriefs()
:
nh_info_local_brief(this, {})
{
yang_name = "nh-info-local-briefs"; yang_parent_name = "nh-info-brief"; is_top_level_class = false; has_list_ancestor = true;
}
Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoLocalBriefs::~NhInfoLocalBriefs()
{
}
bool Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoLocalBriefs::has_data() const
{
if (is_presence_container) return true;
for (std::size_t index=0; index<nh_info_local_brief.len(); index++)
{
if(nh_info_local_brief[index]->has_data())
return true;
}
return false;
}
bool Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoLocalBriefs::has_operation() const
{
for (std::size_t index=0; index<nh_info_local_brief.len(); index++)
{
if(nh_info_local_brief[index]->has_operation())
return true;
}
return is_set(yfilter);
}
std::string Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoLocalBriefs::get_segment_path() const
{
std::ostringstream path_buffer;
path_buffer << "nh-info-local-briefs";
return path_buffer.str();
}
std::vector<std::pair<std::string, LeafData> > Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoLocalBriefs::get_name_leaf_data() const
{
std::vector<std::pair<std::string, LeafData> > leaf_name_data {};
return leaf_name_data;
}
std::shared_ptr<ydk::Entity> Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoLocalBriefs::get_child_by_name(const std::string & child_yang_name, const std::string & segment_path)
{
if(child_yang_name == "nh-info-local-brief")
{
auto ent_ = std::make_shared<Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoLocalBriefs::NhInfoLocalBrief>();
ent_->parent = this;
nh_info_local_brief.append(ent_);
return ent_;
}
return nullptr;
}
std::map<std::string, std::shared_ptr<ydk::Entity>> Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoLocalBriefs::get_children() const
{
std::map<std::string, std::shared_ptr<ydk::Entity>> _children{};
char count_=0;
count_ = 0;
for (auto ent_ : nh_info_local_brief.entities())
{
if(_children.find(ent_->get_segment_path()) == _children.end())
_children[ent_->get_segment_path()] = ent_;
else
_children[ent_->get_segment_path()+count_++] = ent_;
}
return _children;
}
void Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoLocalBriefs::set_value(const std::string & value_path, const std::string & value, const std::string & name_space, const std::string & name_space_prefix)
{
}
void Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoLocalBriefs::set_filter(const std::string & value_path, YFilter yfilter)
{
}
bool Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoLocalBriefs::has_leaf_or_child_of_name(const std::string & name) const
{
if(name == "nh-info-local-brief")
return true;
return false;
}
Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoLocalBriefs::NhInfoLocalBrief::NhInfoLocalBrief()
:
nh_interface_name{YType::str, "nh-interface-name"},
nh_proto{YType::enumeration, "nh-proto"},
nh_pfx_length{YType::uint32, "nh-pfx-length"},
nh_address{YType::str, "nh-address"},
si_link_proto{YType::uint32, "si-link-proto"},
si_nhinfo{YType::uint32, "si-nhinfo"},
si_nhtype{YType::uint32, "si-nhtype"},
si_ifh{YType::uint32, "si-ifh"},
si_pfi_interface_type{YType::uint32, "si-pfi-interface-type"},
si_adj_ptr{YType::uint32, "si-adj-ptr"},
si_adj_present{YType::boolean, "si-adj-present"},
si_special_type{YType::uint32, "si-special-type"},
si_refcount{YType::uint32, "si-refcount"},
si_flags{YType::uint32, "si-flags"},
si_adj_if{YType::uint32, "si-adj-if"},
si_ext_pfx{YType::str, "si-ext-pfx"},
si_ext_pfx_len{YType::uint32, "si-ext-pfx-len"},
si_ext_pfx_proto{YType::uint32, "si-ext-pfx-proto"},
si_adj_address{YType::str, "si-adj-address"},
si_adj_addrlen{YType::uint32, "si-adj-addrlen"},
si_adj_addr_proto{YType::uint32, "si-adj-addr-proto"},
si_adj_rw_len{YType::uint32, "si-adj-rw-len"},
si_adj_rw{YType::str, "si-adj-rw"},
si_dep_nhinfo_type{YType::uint32, "si-dep-nhinfo-type"},
si_dep_nhinfo{YType::uint32, "si-dep-nhinfo"},
si_dep_nhinfo_ifh{YType::uint32, "si-dep-nhinfo-ifh"},
si_bkup_frr{YType::uint32, "si-bkup-frr"},
si_protect_frr{YType::uint32, "si-protect-frr"},
si_bkup_nhinfo{YType::uint32, "si-bkup-nhinfo"},
si_bkup_ifh{YType::uint32, "si-bkup-ifh"},
si_bkup_addr{YType::str, "si-bkup-addr"},
si_bkup_addrlen{YType::uint32, "si-bkup-addrlen"},
si_bkup_addr_proto{YType::uint32, "si-bkup-addr-proto"},
si_frr_active{YType::boolean, "si-frr-active"},
si_attr_is_ext_mgd{YType::boolean, "si-attr-is-ext-mgd"},
si_attr_is_incomp{YType::boolean, "si-attr-is-incomp"},
si_attr_is_tunnel{YType::boolean, "si-attr-is-tunnel"},
si_attr_is_tunnel_srte{YType::boolean, "si-attr-is-tunnel-srte"},
si_attr_is_gre_tunnel{YType::boolean, "si-attr-is-gre-tunnel"},
si_gre_ti{YType::uint32, "si-gre-ti"},
si_gre_ti_flags{YType::uint32, "si-gre-ti-flags"},
si_gre_ti_refcnt{YType::uint32, "si-gre-ti-refcnt"},
si_gre_tos_propagate{YType::boolean, "si-gre-tos-propagate"},
si_hardware{YType::str, "si-hardware"},
si_nhinfo_ptr{YType::uint32, "si-nhinfo-ptr"},
si_fnb_idb_ptr{YType::uint32, "si-fnb-idb-ptr"},
si_anc_ifh{YType::uint32, "si-anc-ifh"},
si_gre_ti_resolving_leafp{YType::uint32, "si-gre-ti-resolving-leafp"},
si_gre_dest_addr{YType::str, "si-gre-dest-addr"},
si_nhid{YType::uint32, "si-nhid"},
si_upd_ts{YType::uint64, "si-upd-ts"}
,
si_pwhe(std::make_shared<Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoLocalBriefs::NhInfoLocalBrief::SiPwhe>())
, nh_info_extension(std::make_shared<Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoLocalBriefs::NhInfoLocalBrief::NhInfoExtension>())
{
si_pwhe->parent = this;
nh_info_extension->parent = this;
yang_name = "nh-info-local-brief"; yang_parent_name = "nh-info-local-briefs"; is_top_level_class = false; has_list_ancestor = true;
}
Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoLocalBriefs::NhInfoLocalBrief::~NhInfoLocalBrief()
{
}
bool Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoLocalBriefs::NhInfoLocalBrief::has_data() const
{
if (is_presence_container) return true;
return nh_interface_name.is_set
|| nh_proto.is_set
|| nh_pfx_length.is_set
|| nh_address.is_set
|| si_link_proto.is_set
|| si_nhinfo.is_set
|| si_nhtype.is_set
|| si_ifh.is_set
|| si_pfi_interface_type.is_set
|| si_adj_ptr.is_set
|| si_adj_present.is_set
|| si_special_type.is_set
|| si_refcount.is_set
|| si_flags.is_set
|| si_adj_if.is_set
|| si_ext_pfx.is_set
|| si_ext_pfx_len.is_set
|| si_ext_pfx_proto.is_set
|| si_adj_address.is_set
|| si_adj_addrlen.is_set
|| si_adj_addr_proto.is_set
|| si_adj_rw_len.is_set
|| si_adj_rw.is_set
|| si_dep_nhinfo_type.is_set
|| si_dep_nhinfo.is_set
|| si_dep_nhinfo_ifh.is_set
|| si_bkup_frr.is_set
|| si_protect_frr.is_set
|| si_bkup_nhinfo.is_set
|| si_bkup_ifh.is_set
|| si_bkup_addr.is_set
|| si_bkup_addrlen.is_set
|| si_bkup_addr_proto.is_set
|| si_frr_active.is_set
|| si_attr_is_ext_mgd.is_set
|| si_attr_is_incomp.is_set
|| si_attr_is_tunnel.is_set
|| si_attr_is_tunnel_srte.is_set
|| si_attr_is_gre_tunnel.is_set
|| si_gre_ti.is_set
|| si_gre_ti_flags.is_set
|| si_gre_ti_refcnt.is_set
|| si_gre_tos_propagate.is_set
|| si_hardware.is_set
|| si_nhinfo_ptr.is_set
|| si_fnb_idb_ptr.is_set
|| si_anc_ifh.is_set
|| si_gre_ti_resolving_leafp.is_set
|| si_gre_dest_addr.is_set
|| si_nhid.is_set
|| si_upd_ts.is_set
|| (si_pwhe != nullptr && si_pwhe->has_data())
|| (nh_info_extension != nullptr && nh_info_extension->has_data());
}
bool Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoLocalBriefs::NhInfoLocalBrief::has_operation() const
{
return is_set(yfilter)
|| ydk::is_set(nh_interface_name.yfilter)
|| ydk::is_set(nh_proto.yfilter)
|| ydk::is_set(nh_pfx_length.yfilter)
|| ydk::is_set(nh_address.yfilter)
|| ydk::is_set(si_link_proto.yfilter)
|| ydk::is_set(si_nhinfo.yfilter)
|| ydk::is_set(si_nhtype.yfilter)
|| ydk::is_set(si_ifh.yfilter)
|| ydk::is_set(si_pfi_interface_type.yfilter)
|| ydk::is_set(si_adj_ptr.yfilter)
|| ydk::is_set(si_adj_present.yfilter)
|| ydk::is_set(si_special_type.yfilter)
|| ydk::is_set(si_refcount.yfilter)
|| ydk::is_set(si_flags.yfilter)
|| ydk::is_set(si_adj_if.yfilter)
|| ydk::is_set(si_ext_pfx.yfilter)
|| ydk::is_set(si_ext_pfx_len.yfilter)
|| ydk::is_set(si_ext_pfx_proto.yfilter)
|| ydk::is_set(si_adj_address.yfilter)
|| ydk::is_set(si_adj_addrlen.yfilter)
|| ydk::is_set(si_adj_addr_proto.yfilter)
|| ydk::is_set(si_adj_rw_len.yfilter)
|| ydk::is_set(si_adj_rw.yfilter)
|| ydk::is_set(si_dep_nhinfo_type.yfilter)
|| ydk::is_set(si_dep_nhinfo.yfilter)
|| ydk::is_set(si_dep_nhinfo_ifh.yfilter)
|| ydk::is_set(si_bkup_frr.yfilter)
|| ydk::is_set(si_protect_frr.yfilter)
|| ydk::is_set(si_bkup_nhinfo.yfilter)
|| ydk::is_set(si_bkup_ifh.yfilter)
|| ydk::is_set(si_bkup_addr.yfilter)
|| ydk::is_set(si_bkup_addrlen.yfilter)
|| ydk::is_set(si_bkup_addr_proto.yfilter)
|| ydk::is_set(si_frr_active.yfilter)
|| ydk::is_set(si_attr_is_ext_mgd.yfilter)
|| ydk::is_set(si_attr_is_incomp.yfilter)
|| ydk::is_set(si_attr_is_tunnel.yfilter)
|| ydk::is_set(si_attr_is_tunnel_srte.yfilter)
|| ydk::is_set(si_attr_is_gre_tunnel.yfilter)
|| ydk::is_set(si_gre_ti.yfilter)
|| ydk::is_set(si_gre_ti_flags.yfilter)
|| ydk::is_set(si_gre_ti_refcnt.yfilter)
|| ydk::is_set(si_gre_tos_propagate.yfilter)
|| ydk::is_set(si_hardware.yfilter)
|| ydk::is_set(si_nhinfo_ptr.yfilter)
|| ydk::is_set(si_fnb_idb_ptr.yfilter)
|| ydk::is_set(si_anc_ifh.yfilter)
|| ydk::is_set(si_gre_ti_resolving_leafp.yfilter)
|| ydk::is_set(si_gre_dest_addr.yfilter)
|| ydk::is_set(si_nhid.yfilter)
|| ydk::is_set(si_upd_ts.yfilter)
|| (si_pwhe != nullptr && si_pwhe->has_operation())
|| (nh_info_extension != nullptr && nh_info_extension->has_operation());
}
std::string Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoLocalBriefs::NhInfoLocalBrief::get_segment_path() const
{
std::ostringstream path_buffer;
path_buffer << "nh-info-local-brief";
path_buffer << "[" << get_ylist_key() << "]";
return path_buffer.str();
}
std::vector<std::pair<std::string, LeafData> > Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoLocalBriefs::NhInfoLocalBrief::get_name_leaf_data() const
{
std::vector<std::pair<std::string, LeafData> > leaf_name_data {};
if (nh_interface_name.is_set || is_set(nh_interface_name.yfilter)) leaf_name_data.push_back(nh_interface_name.get_name_leafdata());
if (nh_proto.is_set || is_set(nh_proto.yfilter)) leaf_name_data.push_back(nh_proto.get_name_leafdata());
if (nh_pfx_length.is_set || is_set(nh_pfx_length.yfilter)) leaf_name_data.push_back(nh_pfx_length.get_name_leafdata());
if (nh_address.is_set || is_set(nh_address.yfilter)) leaf_name_data.push_back(nh_address.get_name_leafdata());
if (si_link_proto.is_set || is_set(si_link_proto.yfilter)) leaf_name_data.push_back(si_link_proto.get_name_leafdata());
if (si_nhinfo.is_set || is_set(si_nhinfo.yfilter)) leaf_name_data.push_back(si_nhinfo.get_name_leafdata());
if (si_nhtype.is_set || is_set(si_nhtype.yfilter)) leaf_name_data.push_back(si_nhtype.get_name_leafdata());
if (si_ifh.is_set || is_set(si_ifh.yfilter)) leaf_name_data.push_back(si_ifh.get_name_leafdata());
if (si_pfi_interface_type.is_set || is_set(si_pfi_interface_type.yfilter)) leaf_name_data.push_back(si_pfi_interface_type.get_name_leafdata());
if (si_adj_ptr.is_set || is_set(si_adj_ptr.yfilter)) leaf_name_data.push_back(si_adj_ptr.get_name_leafdata());
if (si_adj_present.is_set || is_set(si_adj_present.yfilter)) leaf_name_data.push_back(si_adj_present.get_name_leafdata());
if (si_special_type.is_set || is_set(si_special_type.yfilter)) leaf_name_data.push_back(si_special_type.get_name_leafdata());
if (si_refcount.is_set || is_set(si_refcount.yfilter)) leaf_name_data.push_back(si_refcount.get_name_leafdata());
if (si_flags.is_set || is_set(si_flags.yfilter)) leaf_name_data.push_back(si_flags.get_name_leafdata());
if (si_adj_if.is_set || is_set(si_adj_if.yfilter)) leaf_name_data.push_back(si_adj_if.get_name_leafdata());
if (si_ext_pfx.is_set || is_set(si_ext_pfx.yfilter)) leaf_name_data.push_back(si_ext_pfx.get_name_leafdata());
if (si_ext_pfx_len.is_set || is_set(si_ext_pfx_len.yfilter)) leaf_name_data.push_back(si_ext_pfx_len.get_name_leafdata());
if (si_ext_pfx_proto.is_set || is_set(si_ext_pfx_proto.yfilter)) leaf_name_data.push_back(si_ext_pfx_proto.get_name_leafdata());
if (si_adj_address.is_set || is_set(si_adj_address.yfilter)) leaf_name_data.push_back(si_adj_address.get_name_leafdata());
if (si_adj_addrlen.is_set || is_set(si_adj_addrlen.yfilter)) leaf_name_data.push_back(si_adj_addrlen.get_name_leafdata());
if (si_adj_addr_proto.is_set || is_set(si_adj_addr_proto.yfilter)) leaf_name_data.push_back(si_adj_addr_proto.get_name_leafdata());
if (si_adj_rw_len.is_set || is_set(si_adj_rw_len.yfilter)) leaf_name_data.push_back(si_adj_rw_len.get_name_leafdata());
if (si_adj_rw.is_set || is_set(si_adj_rw.yfilter)) leaf_name_data.push_back(si_adj_rw.get_name_leafdata());
if (si_dep_nhinfo_type.is_set || is_set(si_dep_nhinfo_type.yfilter)) leaf_name_data.push_back(si_dep_nhinfo_type.get_name_leafdata());
if (si_dep_nhinfo.is_set || is_set(si_dep_nhinfo.yfilter)) leaf_name_data.push_back(si_dep_nhinfo.get_name_leafdata());
if (si_dep_nhinfo_ifh.is_set || is_set(si_dep_nhinfo_ifh.yfilter)) leaf_name_data.push_back(si_dep_nhinfo_ifh.get_name_leafdata());
if (si_bkup_frr.is_set || is_set(si_bkup_frr.yfilter)) leaf_name_data.push_back(si_bkup_frr.get_name_leafdata());
if (si_protect_frr.is_set || is_set(si_protect_frr.yfilter)) leaf_name_data.push_back(si_protect_frr.get_name_leafdata());
if (si_bkup_nhinfo.is_set || is_set(si_bkup_nhinfo.yfilter)) leaf_name_data.push_back(si_bkup_nhinfo.get_name_leafdata());
if (si_bkup_ifh.is_set || is_set(si_bkup_ifh.yfilter)) leaf_name_data.push_back(si_bkup_ifh.get_name_leafdata());
if (si_bkup_addr.is_set || is_set(si_bkup_addr.yfilter)) leaf_name_data.push_back(si_bkup_addr.get_name_leafdata());
if (si_bkup_addrlen.is_set || is_set(si_bkup_addrlen.yfilter)) leaf_name_data.push_back(si_bkup_addrlen.get_name_leafdata());
if (si_bkup_addr_proto.is_set || is_set(si_bkup_addr_proto.yfilter)) leaf_name_data.push_back(si_bkup_addr_proto.get_name_leafdata());
if (si_frr_active.is_set || is_set(si_frr_active.yfilter)) leaf_name_data.push_back(si_frr_active.get_name_leafdata());
if (si_attr_is_ext_mgd.is_set || is_set(si_attr_is_ext_mgd.yfilter)) leaf_name_data.push_back(si_attr_is_ext_mgd.get_name_leafdata());
if (si_attr_is_incomp.is_set || is_set(si_attr_is_incomp.yfilter)) leaf_name_data.push_back(si_attr_is_incomp.get_name_leafdata());
if (si_attr_is_tunnel.is_set || is_set(si_attr_is_tunnel.yfilter)) leaf_name_data.push_back(si_attr_is_tunnel.get_name_leafdata());
if (si_attr_is_tunnel_srte.is_set || is_set(si_attr_is_tunnel_srte.yfilter)) leaf_name_data.push_back(si_attr_is_tunnel_srte.get_name_leafdata());
if (si_attr_is_gre_tunnel.is_set || is_set(si_attr_is_gre_tunnel.yfilter)) leaf_name_data.push_back(si_attr_is_gre_tunnel.get_name_leafdata());
if (si_gre_ti.is_set || is_set(si_gre_ti.yfilter)) leaf_name_data.push_back(si_gre_ti.get_name_leafdata());
if (si_gre_ti_flags.is_set || is_set(si_gre_ti_flags.yfilter)) leaf_name_data.push_back(si_gre_ti_flags.get_name_leafdata());
if (si_gre_ti_refcnt.is_set || is_set(si_gre_ti_refcnt.yfilter)) leaf_name_data.push_back(si_gre_ti_refcnt.get_name_leafdata());
if (si_gre_tos_propagate.is_set || is_set(si_gre_tos_propagate.yfilter)) leaf_name_data.push_back(si_gre_tos_propagate.get_name_leafdata());
if (si_hardware.is_set || is_set(si_hardware.yfilter)) leaf_name_data.push_back(si_hardware.get_name_leafdata());
if (si_nhinfo_ptr.is_set || is_set(si_nhinfo_ptr.yfilter)) leaf_name_data.push_back(si_nhinfo_ptr.get_name_leafdata());
if (si_fnb_idb_ptr.is_set || is_set(si_fnb_idb_ptr.yfilter)) leaf_name_data.push_back(si_fnb_idb_ptr.get_name_leafdata());
if (si_anc_ifh.is_set || is_set(si_anc_ifh.yfilter)) leaf_name_data.push_back(si_anc_ifh.get_name_leafdata());
if (si_gre_ti_resolving_leafp.is_set || is_set(si_gre_ti_resolving_leafp.yfilter)) leaf_name_data.push_back(si_gre_ti_resolving_leafp.get_name_leafdata());
if (si_gre_dest_addr.is_set || is_set(si_gre_dest_addr.yfilter)) leaf_name_data.push_back(si_gre_dest_addr.get_name_leafdata());
if (si_nhid.is_set || is_set(si_nhid.yfilter)) leaf_name_data.push_back(si_nhid.get_name_leafdata());
if (si_upd_ts.is_set || is_set(si_upd_ts.yfilter)) leaf_name_data.push_back(si_upd_ts.get_name_leafdata());
return leaf_name_data;
}
std::shared_ptr<ydk::Entity> Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoLocalBriefs::NhInfoLocalBrief::get_child_by_name(const std::string & child_yang_name, const std::string & segment_path)
{
if(child_yang_name == "si-pwhe")
{
if(si_pwhe == nullptr)
{
si_pwhe = std::make_shared<Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoLocalBriefs::NhInfoLocalBrief::SiPwhe>();
}
return si_pwhe;
}
if(child_yang_name == "nh-info-extension")
{
if(nh_info_extension == nullptr)
{
nh_info_extension = std::make_shared<Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoLocalBriefs::NhInfoLocalBrief::NhInfoExtension>();
}
return nh_info_extension;
}
return nullptr;
}
std::map<std::string, std::shared_ptr<ydk::Entity>> Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoLocalBriefs::NhInfoLocalBrief::get_children() const
{
std::map<std::string, std::shared_ptr<ydk::Entity>> _children{};
char count_=0;
if(si_pwhe != nullptr)
{
_children["si-pwhe"] = si_pwhe;
}
if(nh_info_extension != nullptr)
{
_children["nh-info-extension"] = nh_info_extension;
}
return _children;
}
void Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoLocalBriefs::NhInfoLocalBrief::set_value(const std::string & value_path, const std::string & value, const std::string & name_space, const std::string & name_space_prefix)
{
if(value_path == "nh-interface-name")
{
nh_interface_name = value;
nh_interface_name.value_namespace = name_space;
nh_interface_name.value_namespace_prefix = name_space_prefix;
}
if(value_path == "nh-proto")
{
nh_proto = value;
nh_proto.value_namespace = name_space;
nh_proto.value_namespace_prefix = name_space_prefix;
}
if(value_path == "nh-pfx-length")
{
nh_pfx_length = value;
nh_pfx_length.value_namespace = name_space;
nh_pfx_length.value_namespace_prefix = name_space_prefix;
}
if(value_path == "nh-address")
{
nh_address = value;
nh_address.value_namespace = name_space;
nh_address.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-link-proto")
{
si_link_proto = value;
si_link_proto.value_namespace = name_space;
si_link_proto.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-nhinfo")
{
si_nhinfo = value;
si_nhinfo.value_namespace = name_space;
si_nhinfo.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-nhtype")
{
si_nhtype = value;
si_nhtype.value_namespace = name_space;
si_nhtype.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-ifh")
{
si_ifh = value;
si_ifh.value_namespace = name_space;
si_ifh.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-pfi-interface-type")
{
si_pfi_interface_type = value;
si_pfi_interface_type.value_namespace = name_space;
si_pfi_interface_type.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-adj-ptr")
{
si_adj_ptr = value;
si_adj_ptr.value_namespace = name_space;
si_adj_ptr.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-adj-present")
{
si_adj_present = value;
si_adj_present.value_namespace = name_space;
si_adj_present.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-special-type")
{
si_special_type = value;
si_special_type.value_namespace = name_space;
si_special_type.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-refcount")
{
si_refcount = value;
si_refcount.value_namespace = name_space;
si_refcount.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-flags")
{
si_flags = value;
si_flags.value_namespace = name_space;
si_flags.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-adj-if")
{
si_adj_if = value;
si_adj_if.value_namespace = name_space;
si_adj_if.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-ext-pfx")
{
si_ext_pfx = value;
si_ext_pfx.value_namespace = name_space;
si_ext_pfx.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-ext-pfx-len")
{
si_ext_pfx_len = value;
si_ext_pfx_len.value_namespace = name_space;
si_ext_pfx_len.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-ext-pfx-proto")
{
si_ext_pfx_proto = value;
si_ext_pfx_proto.value_namespace = name_space;
si_ext_pfx_proto.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-adj-address")
{
si_adj_address = value;
si_adj_address.value_namespace = name_space;
si_adj_address.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-adj-addrlen")
{
si_adj_addrlen = value;
si_adj_addrlen.value_namespace = name_space;
si_adj_addrlen.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-adj-addr-proto")
{
si_adj_addr_proto = value;
si_adj_addr_proto.value_namespace = name_space;
si_adj_addr_proto.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-adj-rw-len")
{
si_adj_rw_len = value;
si_adj_rw_len.value_namespace = name_space;
si_adj_rw_len.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-adj-rw")
{
si_adj_rw = value;
si_adj_rw.value_namespace = name_space;
si_adj_rw.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-dep-nhinfo-type")
{
si_dep_nhinfo_type = value;
si_dep_nhinfo_type.value_namespace = name_space;
si_dep_nhinfo_type.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-dep-nhinfo")
{
si_dep_nhinfo = value;
si_dep_nhinfo.value_namespace = name_space;
si_dep_nhinfo.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-dep-nhinfo-ifh")
{
si_dep_nhinfo_ifh = value;
si_dep_nhinfo_ifh.value_namespace = name_space;
si_dep_nhinfo_ifh.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-bkup-frr")
{
si_bkup_frr = value;
si_bkup_frr.value_namespace = name_space;
si_bkup_frr.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-protect-frr")
{
si_protect_frr = value;
si_protect_frr.value_namespace = name_space;
si_protect_frr.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-bkup-nhinfo")
{
si_bkup_nhinfo = value;
si_bkup_nhinfo.value_namespace = name_space;
si_bkup_nhinfo.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-bkup-ifh")
{
si_bkup_ifh = value;
si_bkup_ifh.value_namespace = name_space;
si_bkup_ifh.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-bkup-addr")
{
si_bkup_addr = value;
si_bkup_addr.value_namespace = name_space;
si_bkup_addr.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-bkup-addrlen")
{
si_bkup_addrlen = value;
si_bkup_addrlen.value_namespace = name_space;
si_bkup_addrlen.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-bkup-addr-proto")
{
si_bkup_addr_proto = value;
si_bkup_addr_proto.value_namespace = name_space;
si_bkup_addr_proto.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-frr-active")
{
si_frr_active = value;
si_frr_active.value_namespace = name_space;
si_frr_active.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-attr-is-ext-mgd")
{
si_attr_is_ext_mgd = value;
si_attr_is_ext_mgd.value_namespace = name_space;
si_attr_is_ext_mgd.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-attr-is-incomp")
{
si_attr_is_incomp = value;
si_attr_is_incomp.value_namespace = name_space;
si_attr_is_incomp.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-attr-is-tunnel")
{
si_attr_is_tunnel = value;
si_attr_is_tunnel.value_namespace = name_space;
si_attr_is_tunnel.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-attr-is-tunnel-srte")
{
si_attr_is_tunnel_srte = value;
si_attr_is_tunnel_srte.value_namespace = name_space;
si_attr_is_tunnel_srte.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-attr-is-gre-tunnel")
{
si_attr_is_gre_tunnel = value;
si_attr_is_gre_tunnel.value_namespace = name_space;
si_attr_is_gre_tunnel.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-gre-ti")
{
si_gre_ti = value;
si_gre_ti.value_namespace = name_space;
si_gre_ti.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-gre-ti-flags")
{
si_gre_ti_flags = value;
si_gre_ti_flags.value_namespace = name_space;
si_gre_ti_flags.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-gre-ti-refcnt")
{
si_gre_ti_refcnt = value;
si_gre_ti_refcnt.value_namespace = name_space;
si_gre_ti_refcnt.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-gre-tos-propagate")
{
si_gre_tos_propagate = value;
si_gre_tos_propagate.value_namespace = name_space;
si_gre_tos_propagate.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-hardware")
{
si_hardware = value;
si_hardware.value_namespace = name_space;
si_hardware.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-nhinfo-ptr")
{
si_nhinfo_ptr = value;
si_nhinfo_ptr.value_namespace = name_space;
si_nhinfo_ptr.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-fnb-idb-ptr")
{
si_fnb_idb_ptr = value;
si_fnb_idb_ptr.value_namespace = name_space;
si_fnb_idb_ptr.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-anc-ifh")
{
si_anc_ifh = value;
si_anc_ifh.value_namespace = name_space;
si_anc_ifh.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-gre-ti-resolving-leafp")
{
si_gre_ti_resolving_leafp = value;
si_gre_ti_resolving_leafp.value_namespace = name_space;
si_gre_ti_resolving_leafp.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-gre-dest-addr")
{
si_gre_dest_addr = value;
si_gre_dest_addr.value_namespace = name_space;
si_gre_dest_addr.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-nhid")
{
si_nhid = value;
si_nhid.value_namespace = name_space;
si_nhid.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-upd-ts")
{
si_upd_ts = value;
si_upd_ts.value_namespace = name_space;
si_upd_ts.value_namespace_prefix = name_space_prefix;
}
}
void Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoLocalBriefs::NhInfoLocalBrief::set_filter(const std::string & value_path, YFilter yfilter)
{
if(value_path == "nh-interface-name")
{
nh_interface_name.yfilter = yfilter;
}
if(value_path == "nh-proto")
{
nh_proto.yfilter = yfilter;
}
if(value_path == "nh-pfx-length")
{
nh_pfx_length.yfilter = yfilter;
}
if(value_path == "nh-address")
{
nh_address.yfilter = yfilter;
}
if(value_path == "si-link-proto")
{
si_link_proto.yfilter = yfilter;
}
if(value_path == "si-nhinfo")
{
si_nhinfo.yfilter = yfilter;
}
if(value_path == "si-nhtype")
{
si_nhtype.yfilter = yfilter;
}
if(value_path == "si-ifh")
{
si_ifh.yfilter = yfilter;
}
if(value_path == "si-pfi-interface-type")
{
si_pfi_interface_type.yfilter = yfilter;
}
if(value_path == "si-adj-ptr")
{
si_adj_ptr.yfilter = yfilter;
}
if(value_path == "si-adj-present")
{
si_adj_present.yfilter = yfilter;
}
if(value_path == "si-special-type")
{
si_special_type.yfilter = yfilter;
}
if(value_path == "si-refcount")
{
si_refcount.yfilter = yfilter;
}
if(value_path == "si-flags")
{
si_flags.yfilter = yfilter;
}
if(value_path == "si-adj-if")
{
si_adj_if.yfilter = yfilter;
}
if(value_path == "si-ext-pfx")
{
si_ext_pfx.yfilter = yfilter;
}
if(value_path == "si-ext-pfx-len")
{
si_ext_pfx_len.yfilter = yfilter;
}
if(value_path == "si-ext-pfx-proto")
{
si_ext_pfx_proto.yfilter = yfilter;
}
if(value_path == "si-adj-address")
{
si_adj_address.yfilter = yfilter;
}
if(value_path == "si-adj-addrlen")
{
si_adj_addrlen.yfilter = yfilter;
}
if(value_path == "si-adj-addr-proto")
{
si_adj_addr_proto.yfilter = yfilter;
}
if(value_path == "si-adj-rw-len")
{
si_adj_rw_len.yfilter = yfilter;
}
if(value_path == "si-adj-rw")
{
si_adj_rw.yfilter = yfilter;
}
if(value_path == "si-dep-nhinfo-type")
{
si_dep_nhinfo_type.yfilter = yfilter;
}
if(value_path == "si-dep-nhinfo")
{
si_dep_nhinfo.yfilter = yfilter;
}
if(value_path == "si-dep-nhinfo-ifh")
{
si_dep_nhinfo_ifh.yfilter = yfilter;
}
if(value_path == "si-bkup-frr")
{
si_bkup_frr.yfilter = yfilter;
}
if(value_path == "si-protect-frr")
{
si_protect_frr.yfilter = yfilter;
}
if(value_path == "si-bkup-nhinfo")
{
si_bkup_nhinfo.yfilter = yfilter;
}
if(value_path == "si-bkup-ifh")
{
si_bkup_ifh.yfilter = yfilter;
}
if(value_path == "si-bkup-addr")
{
si_bkup_addr.yfilter = yfilter;
}
if(value_path == "si-bkup-addrlen")
{
si_bkup_addrlen.yfilter = yfilter;
}
if(value_path == "si-bkup-addr-proto")
{
si_bkup_addr_proto.yfilter = yfilter;
}
if(value_path == "si-frr-active")
{
si_frr_active.yfilter = yfilter;
}
if(value_path == "si-attr-is-ext-mgd")
{
si_attr_is_ext_mgd.yfilter = yfilter;
}
if(value_path == "si-attr-is-incomp")
{
si_attr_is_incomp.yfilter = yfilter;
}
if(value_path == "si-attr-is-tunnel")
{
si_attr_is_tunnel.yfilter = yfilter;
}
if(value_path == "si-attr-is-tunnel-srte")
{
si_attr_is_tunnel_srte.yfilter = yfilter;
}
if(value_path == "si-attr-is-gre-tunnel")
{
si_attr_is_gre_tunnel.yfilter = yfilter;
}
if(value_path == "si-gre-ti")
{
si_gre_ti.yfilter = yfilter;
}
if(value_path == "si-gre-ti-flags")
{
si_gre_ti_flags.yfilter = yfilter;
}
if(value_path == "si-gre-ti-refcnt")
{
si_gre_ti_refcnt.yfilter = yfilter;
}
if(value_path == "si-gre-tos-propagate")
{
si_gre_tos_propagate.yfilter = yfilter;
}
if(value_path == "si-hardware")
{
si_hardware.yfilter = yfilter;
}
if(value_path == "si-nhinfo-ptr")
{
si_nhinfo_ptr.yfilter = yfilter;
}
if(value_path == "si-fnb-idb-ptr")
{
si_fnb_idb_ptr.yfilter = yfilter;
}
if(value_path == "si-anc-ifh")
{
si_anc_ifh.yfilter = yfilter;
}
if(value_path == "si-gre-ti-resolving-leafp")
{
si_gre_ti_resolving_leafp.yfilter = yfilter;
}
if(value_path == "si-gre-dest-addr")
{
si_gre_dest_addr.yfilter = yfilter;
}
if(value_path == "si-nhid")
{
si_nhid.yfilter = yfilter;
}
if(value_path == "si-upd-ts")
{
si_upd_ts.yfilter = yfilter;
}
}
bool Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoLocalBriefs::NhInfoLocalBrief::has_leaf_or_child_of_name(const std::string & name) const
{
if(name == "si-pwhe" || name == "nh-info-extension" || name == "nh-interface-name" || name == "nh-proto" || name == "nh-pfx-length" || name == "nh-address" || name == "si-link-proto" || name == "si-nhinfo" || name == "si-nhtype" || name == "si-ifh" || name == "si-pfi-interface-type" || name == "si-adj-ptr" || name == "si-adj-present" || name == "si-special-type" || name == "si-refcount" || name == "si-flags" || name == "si-adj-if" || name == "si-ext-pfx" || name == "si-ext-pfx-len" || name == "si-ext-pfx-proto" || name == "si-adj-address" || name == "si-adj-addrlen" || name == "si-adj-addr-proto" || name == "si-adj-rw-len" || name == "si-adj-rw" || name == "si-dep-nhinfo-type" || name == "si-dep-nhinfo" || name == "si-dep-nhinfo-ifh" || name == "si-bkup-frr" || name == "si-protect-frr" || name == "si-bkup-nhinfo" || name == "si-bkup-ifh" || name == "si-bkup-addr" || name == "si-bkup-addrlen" || name == "si-bkup-addr-proto" || name == "si-frr-active" || name == "si-attr-is-ext-mgd" || name == "si-attr-is-incomp" || name == "si-attr-is-tunnel" || name == "si-attr-is-tunnel-srte" || name == "si-attr-is-gre-tunnel" || name == "si-gre-ti" || name == "si-gre-ti-flags" || name == "si-gre-ti-refcnt" || name == "si-gre-tos-propagate" || name == "si-hardware" || name == "si-nhinfo-ptr" || name == "si-fnb-idb-ptr" || name == "si-anc-ifh" || name == "si-gre-ti-resolving-leafp" || name == "si-gre-dest-addr" || name == "si-nhid" || name == "si-upd-ts")
return true;
return false;
}
Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoLocalBriefs::NhInfoLocalBrief::SiPwhe::SiPwhe()
:
pwhe_adjacency_client_data{YType::uint32, "pwhe-adjacency-client-data"},
vctype{YType::uint32, "vctype"},
vc_internal_label{YType::uint32, "vc-internal-label"},
cw_enabled{YType::boolean, "cw-enabled"},
l2_overhead_bytes{YType::uint16, "l2-overhead-bytes"},
dot1q_vlan_tag{YType::uint32, "dot1q-vlan-tag"}
{
yang_name = "si-pwhe"; yang_parent_name = "nh-info-local-brief"; is_top_level_class = false; has_list_ancestor = true;
}
Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoLocalBriefs::NhInfoLocalBrief::SiPwhe::~SiPwhe()
{
}
bool Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoLocalBriefs::NhInfoLocalBrief::SiPwhe::has_data() const
{
if (is_presence_container) return true;
return pwhe_adjacency_client_data.is_set
|| vctype.is_set
|| vc_internal_label.is_set
|| cw_enabled.is_set
|| l2_overhead_bytes.is_set
|| dot1q_vlan_tag.is_set;
}
bool Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoLocalBriefs::NhInfoLocalBrief::SiPwhe::has_operation() const
{
return is_set(yfilter)
|| ydk::is_set(pwhe_adjacency_client_data.yfilter)
|| ydk::is_set(vctype.yfilter)
|| ydk::is_set(vc_internal_label.yfilter)
|| ydk::is_set(cw_enabled.yfilter)
|| ydk::is_set(l2_overhead_bytes.yfilter)
|| ydk::is_set(dot1q_vlan_tag.yfilter);
}
std::string Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoLocalBriefs::NhInfoLocalBrief::SiPwhe::get_segment_path() const
{
std::ostringstream path_buffer;
path_buffer << "si-pwhe";
return path_buffer.str();
}
std::vector<std::pair<std::string, LeafData> > Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoLocalBriefs::NhInfoLocalBrief::SiPwhe::get_name_leaf_data() const
{
std::vector<std::pair<std::string, LeafData> > leaf_name_data {};
if (pwhe_adjacency_client_data.is_set || is_set(pwhe_adjacency_client_data.yfilter)) leaf_name_data.push_back(pwhe_adjacency_client_data.get_name_leafdata());
if (vctype.is_set || is_set(vctype.yfilter)) leaf_name_data.push_back(vctype.get_name_leafdata());
if (vc_internal_label.is_set || is_set(vc_internal_label.yfilter)) leaf_name_data.push_back(vc_internal_label.get_name_leafdata());
if (cw_enabled.is_set || is_set(cw_enabled.yfilter)) leaf_name_data.push_back(cw_enabled.get_name_leafdata());
if (l2_overhead_bytes.is_set || is_set(l2_overhead_bytes.yfilter)) leaf_name_data.push_back(l2_overhead_bytes.get_name_leafdata());
if (dot1q_vlan_tag.is_set || is_set(dot1q_vlan_tag.yfilter)) leaf_name_data.push_back(dot1q_vlan_tag.get_name_leafdata());
return leaf_name_data;
}
std::shared_ptr<ydk::Entity> Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoLocalBriefs::NhInfoLocalBrief::SiPwhe::get_child_by_name(const std::string & child_yang_name, const std::string & segment_path)
{
return nullptr;
}
std::map<std::string, std::shared_ptr<ydk::Entity>> Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoLocalBriefs::NhInfoLocalBrief::SiPwhe::get_children() const
{
std::map<std::string, std::shared_ptr<ydk::Entity>> _children{};
char count_=0;
return _children;
}
void Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoLocalBriefs::NhInfoLocalBrief::SiPwhe::set_value(const std::string & value_path, const std::string & value, const std::string & name_space, const std::string & name_space_prefix)
{
if(value_path == "pwhe-adjacency-client-data")
{
pwhe_adjacency_client_data = value;
pwhe_adjacency_client_data.value_namespace = name_space;
pwhe_adjacency_client_data.value_namespace_prefix = name_space_prefix;
}
if(value_path == "vctype")
{
vctype = value;
vctype.value_namespace = name_space;
vctype.value_namespace_prefix = name_space_prefix;
}
if(value_path == "vc-internal-label")
{
vc_internal_label = value;
vc_internal_label.value_namespace = name_space;
vc_internal_label.value_namespace_prefix = name_space_prefix;
}
if(value_path == "cw-enabled")
{
cw_enabled = value;
cw_enabled.value_namespace = name_space;
cw_enabled.value_namespace_prefix = name_space_prefix;
}
if(value_path == "l2-overhead-bytes")
{
l2_overhead_bytes = value;
l2_overhead_bytes.value_namespace = name_space;
l2_overhead_bytes.value_namespace_prefix = name_space_prefix;
}
if(value_path == "dot1q-vlan-tag")
{
dot1q_vlan_tag = value;
dot1q_vlan_tag.value_namespace = name_space;
dot1q_vlan_tag.value_namespace_prefix = name_space_prefix;
}
}
void Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoLocalBriefs::NhInfoLocalBrief::SiPwhe::set_filter(const std::string & value_path, YFilter yfilter)
{
if(value_path == "pwhe-adjacency-client-data")
{
pwhe_adjacency_client_data.yfilter = yfilter;
}
if(value_path == "vctype")
{
vctype.yfilter = yfilter;
}
if(value_path == "vc-internal-label")
{
vc_internal_label.yfilter = yfilter;
}
if(value_path == "cw-enabled")
{
cw_enabled.yfilter = yfilter;
}
if(value_path == "l2-overhead-bytes")
{
l2_overhead_bytes.yfilter = yfilter;
}
if(value_path == "dot1q-vlan-tag")
{
dot1q_vlan_tag.yfilter = yfilter;
}
}
bool Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoLocalBriefs::NhInfoLocalBrief::SiPwhe::has_leaf_or_child_of_name(const std::string & name) const
{
if(name == "pwhe-adjacency-client-data" || name == "vctype" || name == "vc-internal-label" || name == "cw-enabled" || name == "l2-overhead-bytes" || name == "dot1q-vlan-tag")
return true;
return false;
}
Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoLocalBriefs::NhInfoLocalBrief::NhInfoExtension::NhInfoExtension()
:
nh_info_extension_detail(this, {})
{
yang_name = "nh-info-extension"; yang_parent_name = "nh-info-local-brief"; is_top_level_class = false; has_list_ancestor = true;
}
Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoLocalBriefs::NhInfoLocalBrief::NhInfoExtension::~NhInfoExtension()
{
}
bool Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoLocalBriefs::NhInfoLocalBrief::NhInfoExtension::has_data() const
{
if (is_presence_container) return true;
for (std::size_t index=0; index<nh_info_extension_detail.len(); index++)
{
if(nh_info_extension_detail[index]->has_data())
return true;
}
return false;
}
bool Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoLocalBriefs::NhInfoLocalBrief::NhInfoExtension::has_operation() const
{
for (std::size_t index=0; index<nh_info_extension_detail.len(); index++)
{
if(nh_info_extension_detail[index]->has_operation())
return true;
}
return is_set(yfilter);
}
std::string Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoLocalBriefs::NhInfoLocalBrief::NhInfoExtension::get_segment_path() const
{
std::ostringstream path_buffer;
path_buffer << "nh-info-extension";
return path_buffer.str();
}
std::vector<std::pair<std::string, LeafData> > Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoLocalBriefs::NhInfoLocalBrief::NhInfoExtension::get_name_leaf_data() const
{
std::vector<std::pair<std::string, LeafData> > leaf_name_data {};
return leaf_name_data;
}
std::shared_ptr<ydk::Entity> Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoLocalBriefs::NhInfoLocalBrief::NhInfoExtension::get_child_by_name(const std::string & child_yang_name, const std::string & segment_path)
{
if(child_yang_name == "nh-info-extension-detail")
{
auto ent_ = std::make_shared<Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoLocalBriefs::NhInfoLocalBrief::NhInfoExtension::NhInfoExtensionDetail>();
ent_->parent = this;
nh_info_extension_detail.append(ent_);
return ent_;
}
return nullptr;
}
std::map<std::string, std::shared_ptr<ydk::Entity>> Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoLocalBriefs::NhInfoLocalBrief::NhInfoExtension::get_children() const
{
std::map<std::string, std::shared_ptr<ydk::Entity>> _children{};
char count_=0;
count_ = 0;
for (auto ent_ : nh_info_extension_detail.entities())
{
if(_children.find(ent_->get_segment_path()) == _children.end())
_children[ent_->get_segment_path()] = ent_;
else
_children[ent_->get_segment_path()+count_++] = ent_;
}
return _children;
}
void Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoLocalBriefs::NhInfoLocalBrief::NhInfoExtension::set_value(const std::string & value_path, const std::string & value, const std::string & name_space, const std::string & name_space_prefix)
{
}
void Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoLocalBriefs::NhInfoLocalBrief::NhInfoExtension::set_filter(const std::string & value_path, YFilter yfilter)
{
}
bool Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoLocalBriefs::NhInfoLocalBrief::NhInfoExtension::has_leaf_or_child_of_name(const std::string & name) const
{
if(name == "nh-info-extension-detail")
return true;
return false;
}
Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoLocalBriefs::NhInfoLocalBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionDetail()
:
nh_info_extension_base(std::make_shared<Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoLocalBriefs::NhInfoLocalBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionBase>())
, nh_info_extension_detail(std::make_shared<Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoLocalBriefs::NhInfoLocalBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionDetail_>())
{
nh_info_extension_base->parent = this;
nh_info_extension_detail->parent = this;
yang_name = "nh-info-extension-detail"; yang_parent_name = "nh-info-extension"; is_top_level_class = false; has_list_ancestor = true;
}
Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoLocalBriefs::NhInfoLocalBrief::NhInfoExtension::NhInfoExtensionDetail::~NhInfoExtensionDetail()
{
}
bool Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoLocalBriefs::NhInfoLocalBrief::NhInfoExtension::NhInfoExtensionDetail::has_data() const
{
if (is_presence_container) return true;
return (nh_info_extension_base != nullptr && nh_info_extension_base->has_data())
|| (nh_info_extension_detail != nullptr && nh_info_extension_detail->has_data());
}
bool Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoLocalBriefs::NhInfoLocalBrief::NhInfoExtension::NhInfoExtensionDetail::has_operation() const
{
return is_set(yfilter)
|| (nh_info_extension_base != nullptr && nh_info_extension_base->has_operation())
|| (nh_info_extension_detail != nullptr && nh_info_extension_detail->has_operation());
}
std::string Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoLocalBriefs::NhInfoLocalBrief::NhInfoExtension::NhInfoExtensionDetail::get_segment_path() const
{
std::ostringstream path_buffer;
path_buffer << "nh-info-extension-detail";
path_buffer << "[" << get_ylist_key() << "]";
return path_buffer.str();
}
std::vector<std::pair<std::string, LeafData> > Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoLocalBriefs::NhInfoLocalBrief::NhInfoExtension::NhInfoExtensionDetail::get_name_leaf_data() const
{
std::vector<std::pair<std::string, LeafData> > leaf_name_data {};
return leaf_name_data;
}
std::shared_ptr<ydk::Entity> Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoLocalBriefs::NhInfoLocalBrief::NhInfoExtension::NhInfoExtensionDetail::get_child_by_name(const std::string & child_yang_name, const std::string & segment_path)
{
if(child_yang_name == "nh-info-extension-base")
{
if(nh_info_extension_base == nullptr)
{
nh_info_extension_base = std::make_shared<Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoLocalBriefs::NhInfoLocalBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionBase>();
}
return nh_info_extension_base;
}
if(child_yang_name == "nh-info-extension-detail")
{
if(nh_info_extension_detail == nullptr)
{
nh_info_extension_detail = std::make_shared<Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoLocalBriefs::NhInfoLocalBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionDetail_>();
}
return nh_info_extension_detail;
}
return nullptr;
}
std::map<std::string, std::shared_ptr<ydk::Entity>> Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoLocalBriefs::NhInfoLocalBrief::NhInfoExtension::NhInfoExtensionDetail::get_children() const
{
std::map<std::string, std::shared_ptr<ydk::Entity>> _children{};
char count_=0;
if(nh_info_extension_base != nullptr)
{
_children["nh-info-extension-base"] = nh_info_extension_base;
}
if(nh_info_extension_detail != nullptr)
{
_children["nh-info-extension-detail"] = nh_info_extension_detail;
}
return _children;
}
void Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoLocalBriefs::NhInfoLocalBrief::NhInfoExtension::NhInfoExtensionDetail::set_value(const std::string & value_path, const std::string & value, const std::string & name_space, const std::string & name_space_prefix)
{
}
void Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoLocalBriefs::NhInfoLocalBrief::NhInfoExtension::NhInfoExtensionDetail::set_filter(const std::string & value_path, YFilter yfilter)
{
}
bool Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoLocalBriefs::NhInfoLocalBrief::NhInfoExtension::NhInfoExtensionDetail::has_leaf_or_child_of_name(const std::string & name) const
{
if(name == "nh-info-extension-base" || name == "nh-info-extension-detail")
return true;
return false;
}
Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoLocalBriefs::NhInfoLocalBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionBase::NhInfoExtensionBase()
:
parent_object_pointer{YType::uint64, "parent-object-pointer"},
back_object_pointer{YType::uint64, "back-object-pointer"}
,
object_base(std::make_shared<Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoLocalBriefs::NhInfoLocalBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionBase::ObjectBase>())
{
object_base->parent = this;
yang_name = "nh-info-extension-base"; yang_parent_name = "nh-info-extension-detail"; is_top_level_class = false; has_list_ancestor = true;
}
Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoLocalBriefs::NhInfoLocalBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionBase::~NhInfoExtensionBase()
{
}
bool Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoLocalBriefs::NhInfoLocalBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionBase::has_data() const
{
if (is_presence_container) return true;
return parent_object_pointer.is_set
|| back_object_pointer.is_set
|| (object_base != nullptr && object_base->has_data());
}
bool Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoLocalBriefs::NhInfoLocalBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionBase::has_operation() const
{
return is_set(yfilter)
|| ydk::is_set(parent_object_pointer.yfilter)
|| ydk::is_set(back_object_pointer.yfilter)
|| (object_base != nullptr && object_base->has_operation());
}
std::string Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoLocalBriefs::NhInfoLocalBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionBase::get_segment_path() const
{
std::ostringstream path_buffer;
path_buffer << "nh-info-extension-base";
return path_buffer.str();
}
std::vector<std::pair<std::string, LeafData> > Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoLocalBriefs::NhInfoLocalBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionBase::get_name_leaf_data() const
{
std::vector<std::pair<std::string, LeafData> > leaf_name_data {};
if (parent_object_pointer.is_set || is_set(parent_object_pointer.yfilter)) leaf_name_data.push_back(parent_object_pointer.get_name_leafdata());
if (back_object_pointer.is_set || is_set(back_object_pointer.yfilter)) leaf_name_data.push_back(back_object_pointer.get_name_leafdata());
return leaf_name_data;
}
std::shared_ptr<ydk::Entity> Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoLocalBriefs::NhInfoLocalBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionBase::get_child_by_name(const std::string & child_yang_name, const std::string & segment_path)
{
if(child_yang_name == "object-base")
{
if(object_base == nullptr)
{
object_base = std::make_shared<Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoLocalBriefs::NhInfoLocalBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionBase::ObjectBase>();
}
return object_base;
}
return nullptr;
}
std::map<std::string, std::shared_ptr<ydk::Entity>> Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoLocalBriefs::NhInfoLocalBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionBase::get_children() const
{
std::map<std::string, std::shared_ptr<ydk::Entity>> _children{};
char count_=0;
if(object_base != nullptr)
{
_children["object-base"] = object_base;
}
return _children;
}
void Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoLocalBriefs::NhInfoLocalBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionBase::set_value(const std::string & value_path, const std::string & value, const std::string & name_space, const std::string & name_space_prefix)
{
if(value_path == "parent-object-pointer")
{
parent_object_pointer = value;
parent_object_pointer.value_namespace = name_space;
parent_object_pointer.value_namespace_prefix = name_space_prefix;
}
if(value_path == "back-object-pointer")
{
back_object_pointer = value;
back_object_pointer.value_namespace = name_space;
back_object_pointer.value_namespace_prefix = name_space_prefix;
}
}
void Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoLocalBriefs::NhInfoLocalBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionBase::set_filter(const std::string & value_path, YFilter yfilter)
{
if(value_path == "parent-object-pointer")
{
parent_object_pointer.yfilter = yfilter;
}
if(value_path == "back-object-pointer")
{
back_object_pointer.yfilter = yfilter;
}
}
bool Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoLocalBriefs::NhInfoLocalBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionBase::has_leaf_or_child_of_name(const std::string & name) const
{
if(name == "object-base" || name == "parent-object-pointer" || name == "back-object-pointer")
return true;
return false;
}
Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoLocalBriefs::NhInfoLocalBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionBase::ObjectBase::ObjectBase()
:
object_reference_count{YType::uint32, "object-reference-count"},
object_flags{YType::uint32, "object-flags"},
object_type{YType::uint8, "object-type"},
object_time_stamp{YType::uint64, "object-time-stamp"},
object_pointer{YType::uint64, "object-pointer"}
{
yang_name = "object-base"; yang_parent_name = "nh-info-extension-base"; is_top_level_class = false; has_list_ancestor = true;
}
Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoLocalBriefs::NhInfoLocalBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionBase::ObjectBase::~ObjectBase()
{
}
bool Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoLocalBriefs::NhInfoLocalBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionBase::ObjectBase::has_data() const
{
if (is_presence_container) return true;
return object_reference_count.is_set
|| object_flags.is_set
|| object_type.is_set
|| object_time_stamp.is_set
|| object_pointer.is_set;
}
bool Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoLocalBriefs::NhInfoLocalBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionBase::ObjectBase::has_operation() const
{
return is_set(yfilter)
|| ydk::is_set(object_reference_count.yfilter)
|| ydk::is_set(object_flags.yfilter)
|| ydk::is_set(object_type.yfilter)
|| ydk::is_set(object_time_stamp.yfilter)
|| ydk::is_set(object_pointer.yfilter);
}
std::string Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoLocalBriefs::NhInfoLocalBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionBase::ObjectBase::get_segment_path() const
{
std::ostringstream path_buffer;
path_buffer << "object-base";
return path_buffer.str();
}
std::vector<std::pair<std::string, LeafData> > Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoLocalBriefs::NhInfoLocalBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionBase::ObjectBase::get_name_leaf_data() const
{
std::vector<std::pair<std::string, LeafData> > leaf_name_data {};
if (object_reference_count.is_set || is_set(object_reference_count.yfilter)) leaf_name_data.push_back(object_reference_count.get_name_leafdata());
if (object_flags.is_set || is_set(object_flags.yfilter)) leaf_name_data.push_back(object_flags.get_name_leafdata());
if (object_type.is_set || is_set(object_type.yfilter)) leaf_name_data.push_back(object_type.get_name_leafdata());
if (object_time_stamp.is_set || is_set(object_time_stamp.yfilter)) leaf_name_data.push_back(object_time_stamp.get_name_leafdata());
if (object_pointer.is_set || is_set(object_pointer.yfilter)) leaf_name_data.push_back(object_pointer.get_name_leafdata());
return leaf_name_data;
}
std::shared_ptr<ydk::Entity> Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoLocalBriefs::NhInfoLocalBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionBase::ObjectBase::get_child_by_name(const std::string & child_yang_name, const std::string & segment_path)
{
return nullptr;
}
std::map<std::string, std::shared_ptr<ydk::Entity>> Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoLocalBriefs::NhInfoLocalBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionBase::ObjectBase::get_children() const
{
std::map<std::string, std::shared_ptr<ydk::Entity>> _children{};
char count_=0;
return _children;
}
void Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoLocalBriefs::NhInfoLocalBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionBase::ObjectBase::set_value(const std::string & value_path, const std::string & value, const std::string & name_space, const std::string & name_space_prefix)
{
if(value_path == "object-reference-count")
{
object_reference_count = value;
object_reference_count.value_namespace = name_space;
object_reference_count.value_namespace_prefix = name_space_prefix;
}
if(value_path == "object-flags")
{
object_flags = value;
object_flags.value_namespace = name_space;
object_flags.value_namespace_prefix = name_space_prefix;
}
if(value_path == "object-type")
{
object_type = value;
object_type.value_namespace = name_space;
object_type.value_namespace_prefix = name_space_prefix;
}
if(value_path == "object-time-stamp")
{
object_time_stamp = value;
object_time_stamp.value_namespace = name_space;
object_time_stamp.value_namespace_prefix = name_space_prefix;
}
if(value_path == "object-pointer")
{
object_pointer = value;
object_pointer.value_namespace = name_space;
object_pointer.value_namespace_prefix = name_space_prefix;
}
}
void Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoLocalBriefs::NhInfoLocalBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionBase::ObjectBase::set_filter(const std::string & value_path, YFilter yfilter)
{
if(value_path == "object-reference-count")
{
object_reference_count.yfilter = yfilter;
}
if(value_path == "object-flags")
{
object_flags.yfilter = yfilter;
}
if(value_path == "object-type")
{
object_type.yfilter = yfilter;
}
if(value_path == "object-time-stamp")
{
object_time_stamp.yfilter = yfilter;
}
if(value_path == "object-pointer")
{
object_pointer.yfilter = yfilter;
}
}
bool Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoLocalBriefs::NhInfoLocalBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionBase::ObjectBase::has_leaf_or_child_of_name(const std::string & name) const
{
if(name == "object-reference-count" || name == "object-flags" || name == "object-type" || name == "object-time-stamp" || name == "object-pointer")
return true;
return false;
}
Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoLocalBriefs::NhInfoLocalBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionDetail_::NhInfoExtensionDetail_()
:
type{YType::enumeration, "type"}
,
snecd_nhr(std::make_shared<Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoLocalBriefs::NhInfoLocalBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionDetail_::SnecdNhr>())
{
snecd_nhr->parent = this;
yang_name = "nh-info-extension-detail"; yang_parent_name = "nh-info-extension-detail"; is_top_level_class = false; has_list_ancestor = true;
}
Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoLocalBriefs::NhInfoLocalBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionDetail_::~NhInfoExtensionDetail_()
{
}
bool Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoLocalBriefs::NhInfoLocalBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionDetail_::has_data() const
{
if (is_presence_container) return true;
return type.is_set
|| (snecd_nhr != nullptr && snecd_nhr->has_data());
}
bool Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoLocalBriefs::NhInfoLocalBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionDetail_::has_operation() const
{
return is_set(yfilter)
|| ydk::is_set(type.yfilter)
|| (snecd_nhr != nullptr && snecd_nhr->has_operation());
}
std::string Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoLocalBriefs::NhInfoLocalBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionDetail_::get_segment_path() const
{
std::ostringstream path_buffer;
path_buffer << "nh-info-extension-detail";
return path_buffer.str();
}
std::vector<std::pair<std::string, LeafData> > Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoLocalBriefs::NhInfoLocalBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionDetail_::get_name_leaf_data() const
{
std::vector<std::pair<std::string, LeafData> > leaf_name_data {};
if (type.is_set || is_set(type.yfilter)) leaf_name_data.push_back(type.get_name_leafdata());
return leaf_name_data;
}
std::shared_ptr<ydk::Entity> Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoLocalBriefs::NhInfoLocalBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionDetail_::get_child_by_name(const std::string & child_yang_name, const std::string & segment_path)
{
if(child_yang_name == "snecd-nhr")
{
if(snecd_nhr == nullptr)
{
snecd_nhr = std::make_shared<Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoLocalBriefs::NhInfoLocalBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionDetail_::SnecdNhr>();
}
return snecd_nhr;
}
return nullptr;
}
std::map<std::string, std::shared_ptr<ydk::Entity>> Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoLocalBriefs::NhInfoLocalBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionDetail_::get_children() const
{
std::map<std::string, std::shared_ptr<ydk::Entity>> _children{};
char count_=0;
if(snecd_nhr != nullptr)
{
_children["snecd-nhr"] = snecd_nhr;
}
return _children;
}
void Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoLocalBriefs::NhInfoLocalBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionDetail_::set_value(const std::string & value_path, const std::string & value, const std::string & name_space, const std::string & name_space_prefix)
{
if(value_path == "type")
{
type = value;
type.value_namespace = name_space;
type.value_namespace_prefix = name_space_prefix;
}
}
void Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoLocalBriefs::NhInfoLocalBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionDetail_::set_filter(const std::string & value_path, YFilter yfilter)
{
if(value_path == "type")
{
type.yfilter = yfilter;
}
}
bool Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoLocalBriefs::NhInfoLocalBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionDetail_::has_leaf_or_child_of_name(const std::string & name) const
{
if(name == "snecd-nhr" || name == "type")
return true;
return false;
}
Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoLocalBriefs::NhInfoLocalBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionDetail_::SnecdNhr::SnecdNhr()
:
nh_info_replicated_type{YType::uint8, "nh-info-replicated-type"},
nh_info_replicated_nh_id{YType::uint32, "nh-info-replicated-nh-id"},
nh_info_replicated_encap_id{YType::uint64, "nh-info-replicated-encap-id"},
nh_info_replicated_interface{YType::str, "nh-info-replicated-interface"}
{
yang_name = "snecd-nhr"; yang_parent_name = "nh-info-extension-detail"; is_top_level_class = false; has_list_ancestor = true;
}
Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoLocalBriefs::NhInfoLocalBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionDetail_::SnecdNhr::~SnecdNhr()
{
}
bool Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoLocalBriefs::NhInfoLocalBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionDetail_::SnecdNhr::has_data() const
{
if (is_presence_container) return true;
return nh_info_replicated_type.is_set
|| nh_info_replicated_nh_id.is_set
|| nh_info_replicated_encap_id.is_set
|| nh_info_replicated_interface.is_set;
}
bool Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoLocalBriefs::NhInfoLocalBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionDetail_::SnecdNhr::has_operation() const
{
return is_set(yfilter)
|| ydk::is_set(nh_info_replicated_type.yfilter)
|| ydk::is_set(nh_info_replicated_nh_id.yfilter)
|| ydk::is_set(nh_info_replicated_encap_id.yfilter)
|| ydk::is_set(nh_info_replicated_interface.yfilter);
}
std::string Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoLocalBriefs::NhInfoLocalBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionDetail_::SnecdNhr::get_segment_path() const
{
std::ostringstream path_buffer;
path_buffer << "snecd-nhr";
return path_buffer.str();
}
std::vector<std::pair<std::string, LeafData> > Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoLocalBriefs::NhInfoLocalBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionDetail_::SnecdNhr::get_name_leaf_data() const
{
std::vector<std::pair<std::string, LeafData> > leaf_name_data {};
if (nh_info_replicated_type.is_set || is_set(nh_info_replicated_type.yfilter)) leaf_name_data.push_back(nh_info_replicated_type.get_name_leafdata());
if (nh_info_replicated_nh_id.is_set || is_set(nh_info_replicated_nh_id.yfilter)) leaf_name_data.push_back(nh_info_replicated_nh_id.get_name_leafdata());
if (nh_info_replicated_encap_id.is_set || is_set(nh_info_replicated_encap_id.yfilter)) leaf_name_data.push_back(nh_info_replicated_encap_id.get_name_leafdata());
if (nh_info_replicated_interface.is_set || is_set(nh_info_replicated_interface.yfilter)) leaf_name_data.push_back(nh_info_replicated_interface.get_name_leafdata());
return leaf_name_data;
}
std::shared_ptr<ydk::Entity> Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoLocalBriefs::NhInfoLocalBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionDetail_::SnecdNhr::get_child_by_name(const std::string & child_yang_name, const std::string & segment_path)
{
return nullptr;
}
std::map<std::string, std::shared_ptr<ydk::Entity>> Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoLocalBriefs::NhInfoLocalBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionDetail_::SnecdNhr::get_children() const
{
std::map<std::string, std::shared_ptr<ydk::Entity>> _children{};
char count_=0;
return _children;
}
void Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoLocalBriefs::NhInfoLocalBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionDetail_::SnecdNhr::set_value(const std::string & value_path, const std::string & value, const std::string & name_space, const std::string & name_space_prefix)
{
if(value_path == "nh-info-replicated-type")
{
nh_info_replicated_type = value;
nh_info_replicated_type.value_namespace = name_space;
nh_info_replicated_type.value_namespace_prefix = name_space_prefix;
}
if(value_path == "nh-info-replicated-nh-id")
{
nh_info_replicated_nh_id = value;
nh_info_replicated_nh_id.value_namespace = name_space;
nh_info_replicated_nh_id.value_namespace_prefix = name_space_prefix;
}
if(value_path == "nh-info-replicated-encap-id")
{
nh_info_replicated_encap_id = value;
nh_info_replicated_encap_id.value_namespace = name_space;
nh_info_replicated_encap_id.value_namespace_prefix = name_space_prefix;
}
if(value_path == "nh-info-replicated-interface")
{
nh_info_replicated_interface = value;
nh_info_replicated_interface.value_namespace = name_space;
nh_info_replicated_interface.value_namespace_prefix = name_space_prefix;
}
}
void Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoLocalBriefs::NhInfoLocalBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionDetail_::SnecdNhr::set_filter(const std::string & value_path, YFilter yfilter)
{
if(value_path == "nh-info-replicated-type")
{
nh_info_replicated_type.yfilter = yfilter;
}
if(value_path == "nh-info-replicated-nh-id")
{
nh_info_replicated_nh_id.yfilter = yfilter;
}
if(value_path == "nh-info-replicated-encap-id")
{
nh_info_replicated_encap_id.yfilter = yfilter;
}
if(value_path == "nh-info-replicated-interface")
{
nh_info_replicated_interface.yfilter = yfilter;
}
}
bool Fib::Nodes::Node::Protocols::Protocol::Vrfs::Vrf::NhInfoBrief::NhInfoLocalBriefs::NhInfoLocalBrief::NhInfoExtension::NhInfoExtensionDetail::NhInfoExtensionDetail_::SnecdNhr::has_leaf_or_child_of_name(const std::string & name) const
{
if(name == "nh-info-replicated-type" || name == "nh-info-replicated-nh-id" || name == "nh-info-replicated-encap-id" || name == "nh-info-replicated-interface")
return true;
return false;
}
Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoutes()
:
exact_route(this, {})
{
yang_name = "exact-routes"; yang_parent_name = "protocol"; is_top_level_class = false; has_list_ancestor = true;
}
Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::~ExactRoutes()
{
}
bool Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::has_data() const
{
if (is_presence_container) return true;
for (std::size_t index=0; index<exact_route.len(); index++)
{
if(exact_route[index]->has_data())
return true;
}
return false;
}
bool Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::has_operation() const
{
for (std::size_t index=0; index<exact_route.len(); index++)
{
if(exact_route[index]->has_operation())
return true;
}
return is_set(yfilter);
}
std::string Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::get_segment_path() const
{
std::ostringstream path_buffer;
path_buffer << "exact-routes";
return path_buffer.str();
}
std::vector<std::pair<std::string, LeafData> > Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::get_name_leaf_data() const
{
std::vector<std::pair<std::string, LeafData> > leaf_name_data {};
return leaf_name_data;
}
std::shared_ptr<ydk::Entity> Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::get_child_by_name(const std::string & child_yang_name, const std::string & segment_path)
{
if(child_yang_name == "exact-route")
{
auto ent_ = std::make_shared<Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute>();
ent_->parent = this;
exact_route.append(ent_);
return ent_;
}
return nullptr;
}
std::map<std::string, std::shared_ptr<ydk::Entity>> Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::get_children() const
{
std::map<std::string, std::shared_ptr<ydk::Entity>> _children{};
char count_=0;
count_ = 0;
for (auto ent_ : exact_route.entities())
{
if(_children.find(ent_->get_segment_path()) == _children.end())
_children[ent_->get_segment_path()] = ent_;
else
_children[ent_->get_segment_path()+count_++] = ent_;
}
return _children;
}
void Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::set_value(const std::string & value_path, const std::string & value, const std::string & name_space, const std::string & name_space_prefix)
{
}
void Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::set_filter(const std::string & value_path, YFilter yfilter)
{
}
bool Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::has_leaf_or_child_of_name(const std::string & name) const
{
if(name == "exact-route")
return true;
return false;
}
Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::ExactRoute()
:
protocol_name{YType::enumeration, "protocol-name"},
vrf_name{YType::str, "vrf-name"},
source{YType::str, "source"},
destination{YType::str, "destination"},
ipv6_flow_label{YType::uint32, "ipv6-flow-label"},
protocol_type_fib_entry{YType::uint32, "protocol-type-fib-entry"},
platform_hardware{YType::str, "platform-hardware"},
number_of_referances_to_path_list{YType::uint32, "number-of-referances-to-path-list"},
path_list_flags{YType::uint32, "path-list-flags"},
path_list_source{YType::uint32, "path-list-source"},
number_of_referances_to_ldi{YType::uint32, "number-of-referances-to-ldi"},
ldi_flags{YType::uint32, "ldi-flags"},
flags_external_ldi{YType::uint32, "flags-external-ldi"},
pointer_external_ldi{YType::uint32, "pointer-external-ldi"},
exact_path_interface_handle{YType::uint32, "exact-path-interface-handle"},
exact_path_gre_interface_handle{YType::uint32, "exact-path-gre-interface-handle"},
exact_route_gre_phys_ifh_avail{YType::boolean, "exact-route-gre-phys-ifh-avail"},
exact_route_result{YType::boolean, "exact-route-result"},
prefix_is_static_or_connected{YType::boolean, "prefix-is-static-or-connected"},
packet_should_recieve{YType::boolean, "packet-should-recieve"},
prefix_connected{YType::boolean, "prefix-connected"},
prefix_for_adjancency{YType::boolean, "prefix-for-adjancency"},
prefix_for_pic_next_hop{YType::boolean, "prefix-for-pic-next-hop"},
purgable_after_purge_interval{YType::boolean, "purgable-after-purge-interval"},
broadcast_recive_flag{YType::boolean, "broadcast-recive-flag"},
broadcast_forward_flag{YType::boolean, "broadcast-forward-flag"},
zero_by_zero_route_as_default{YType::boolean, "zero-by-zero-route-as-default"},
external_switch_triggered{YType::boolean, "external-switch-triggered"},
route_attribute_flag{YType::boolean, "route-attribute-flag"},
dummy_real_zero_route{YType::boolean, "dummy-real-zero-route"},
ldi_lw_flag{YType::uint32, "ldi-lw-flag"},
ref_counter_of_ldi_lw_ldi{YType::uint32, "ref-counter-of-ldi-lw-ldi"},
type_of_ldi_lw_ldi{YType::uint32, "type-of-ldi-lw-ldi"},
lspa_flags{YType::uint32, "lspa-flags"},
version_of_route{YType::uint64, "version-of-route"},
fib_route_download_priority{YType::uint32, "fib-route-download-priority"},
time_of_last_update_in_msec{YType::uint64, "time-of-last-update-in-msec"},
l2_subscriber_route{YType::boolean, "l2-subscriber-route"},
l2_subscriber_xconnect_id{YType::uint32, "l2-subscriber-xconnect-id"},
l2_subscriber_flags{YType::uint32, "l2-subscriber-flags"},
l2_subscriber_ip_protocol{YType::uint32, "l2-subscriber-ip-protocol"},
l2tpv3_cookie_length_bits{YType::uint32, "l2tpv3-cookie-length-bits"},
route_for_external_reach_linecard_flag{YType::boolean, "route-for-external-reach-linecard-flag"},
route_source_not_preferred{YType::boolean, "route-source-not-preferred"},
route_is_sr_flag{YType::boolean, "route-is-sr-flag"}
,
detail_fib_entry_information(std::make_shared<Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::DetailFibEntryInformation>())
, fib_entry_path(std::make_shared<Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::FibEntryPath>())
, extension_object(this, {})
{
detail_fib_entry_information->parent = this;
fib_entry_path->parent = this;
yang_name = "exact-route"; yang_parent_name = "exact-routes"; is_top_level_class = false; has_list_ancestor = true;
}
Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::~ExactRoute()
{
}
bool Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::has_data() const
{
if (is_presence_container) return true;
for (std::size_t index=0; index<extension_object.len(); index++)
{
if(extension_object[index]->has_data())
return true;
}
return protocol_name.is_set
|| vrf_name.is_set
|| source.is_set
|| destination.is_set
|| ipv6_flow_label.is_set
|| protocol_type_fib_entry.is_set
|| platform_hardware.is_set
|| number_of_referances_to_path_list.is_set
|| path_list_flags.is_set
|| path_list_source.is_set
|| number_of_referances_to_ldi.is_set
|| ldi_flags.is_set
|| flags_external_ldi.is_set
|| pointer_external_ldi.is_set
|| exact_path_interface_handle.is_set
|| exact_path_gre_interface_handle.is_set
|| exact_route_gre_phys_ifh_avail.is_set
|| exact_route_result.is_set
|| prefix_is_static_or_connected.is_set
|| packet_should_recieve.is_set
|| prefix_connected.is_set
|| prefix_for_adjancency.is_set
|| prefix_for_pic_next_hop.is_set
|| purgable_after_purge_interval.is_set
|| broadcast_recive_flag.is_set
|| broadcast_forward_flag.is_set
|| zero_by_zero_route_as_default.is_set
|| external_switch_triggered.is_set
|| route_attribute_flag.is_set
|| dummy_real_zero_route.is_set
|| ldi_lw_flag.is_set
|| ref_counter_of_ldi_lw_ldi.is_set
|| type_of_ldi_lw_ldi.is_set
|| lspa_flags.is_set
|| version_of_route.is_set
|| fib_route_download_priority.is_set
|| time_of_last_update_in_msec.is_set
|| l2_subscriber_route.is_set
|| l2_subscriber_xconnect_id.is_set
|| l2_subscriber_flags.is_set
|| l2_subscriber_ip_protocol.is_set
|| l2tpv3_cookie_length_bits.is_set
|| route_for_external_reach_linecard_flag.is_set
|| route_source_not_preferred.is_set
|| route_is_sr_flag.is_set
|| (detail_fib_entry_information != nullptr && detail_fib_entry_information->has_data())
|| (fib_entry_path != nullptr && fib_entry_path->has_data());
}
bool Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::has_operation() const
{
for (std::size_t index=0; index<extension_object.len(); index++)
{
if(extension_object[index]->has_operation())
return true;
}
return is_set(yfilter)
|| ydk::is_set(protocol_name.yfilter)
|| ydk::is_set(vrf_name.yfilter)
|| ydk::is_set(source.yfilter)
|| ydk::is_set(destination.yfilter)
|| ydk::is_set(ipv6_flow_label.yfilter)
|| ydk::is_set(protocol_type_fib_entry.yfilter)
|| ydk::is_set(platform_hardware.yfilter)
|| ydk::is_set(number_of_referances_to_path_list.yfilter)
|| ydk::is_set(path_list_flags.yfilter)
|| ydk::is_set(path_list_source.yfilter)
|| ydk::is_set(number_of_referances_to_ldi.yfilter)
|| ydk::is_set(ldi_flags.yfilter)
|| ydk::is_set(flags_external_ldi.yfilter)
|| ydk::is_set(pointer_external_ldi.yfilter)
|| ydk::is_set(exact_path_interface_handle.yfilter)
|| ydk::is_set(exact_path_gre_interface_handle.yfilter)
|| ydk::is_set(exact_route_gre_phys_ifh_avail.yfilter)
|| ydk::is_set(exact_route_result.yfilter)
|| ydk::is_set(prefix_is_static_or_connected.yfilter)
|| ydk::is_set(packet_should_recieve.yfilter)
|| ydk::is_set(prefix_connected.yfilter)
|| ydk::is_set(prefix_for_adjancency.yfilter)
|| ydk::is_set(prefix_for_pic_next_hop.yfilter)
|| ydk::is_set(purgable_after_purge_interval.yfilter)
|| ydk::is_set(broadcast_recive_flag.yfilter)
|| ydk::is_set(broadcast_forward_flag.yfilter)
|| ydk::is_set(zero_by_zero_route_as_default.yfilter)
|| ydk::is_set(external_switch_triggered.yfilter)
|| ydk::is_set(route_attribute_flag.yfilter)
|| ydk::is_set(dummy_real_zero_route.yfilter)
|| ydk::is_set(ldi_lw_flag.yfilter)
|| ydk::is_set(ref_counter_of_ldi_lw_ldi.yfilter)
|| ydk::is_set(type_of_ldi_lw_ldi.yfilter)
|| ydk::is_set(lspa_flags.yfilter)
|| ydk::is_set(version_of_route.yfilter)
|| ydk::is_set(fib_route_download_priority.yfilter)
|| ydk::is_set(time_of_last_update_in_msec.yfilter)
|| ydk::is_set(l2_subscriber_route.yfilter)
|| ydk::is_set(l2_subscriber_xconnect_id.yfilter)
|| ydk::is_set(l2_subscriber_flags.yfilter)
|| ydk::is_set(l2_subscriber_ip_protocol.yfilter)
|| ydk::is_set(l2tpv3_cookie_length_bits.yfilter)
|| ydk::is_set(route_for_external_reach_linecard_flag.yfilter)
|| ydk::is_set(route_source_not_preferred.yfilter)
|| ydk::is_set(route_is_sr_flag.yfilter)
|| (detail_fib_entry_information != nullptr && detail_fib_entry_information->has_operation())
|| (fib_entry_path != nullptr && fib_entry_path->has_operation());
}
std::string Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::get_segment_path() const
{
std::ostringstream path_buffer;
path_buffer << "exact-route";
path_buffer << "[" << get_ylist_key() << "]";
return path_buffer.str();
}
std::vector<std::pair<std::string, LeafData> > Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::get_name_leaf_data() const
{
std::vector<std::pair<std::string, LeafData> > leaf_name_data {};
if (protocol_name.is_set || is_set(protocol_name.yfilter)) leaf_name_data.push_back(protocol_name.get_name_leafdata());
if (vrf_name.is_set || is_set(vrf_name.yfilter)) leaf_name_data.push_back(vrf_name.get_name_leafdata());
if (source.is_set || is_set(source.yfilter)) leaf_name_data.push_back(source.get_name_leafdata());
if (destination.is_set || is_set(destination.yfilter)) leaf_name_data.push_back(destination.get_name_leafdata());
if (ipv6_flow_label.is_set || is_set(ipv6_flow_label.yfilter)) leaf_name_data.push_back(ipv6_flow_label.get_name_leafdata());
if (protocol_type_fib_entry.is_set || is_set(protocol_type_fib_entry.yfilter)) leaf_name_data.push_back(protocol_type_fib_entry.get_name_leafdata());
if (platform_hardware.is_set || is_set(platform_hardware.yfilter)) leaf_name_data.push_back(platform_hardware.get_name_leafdata());
if (number_of_referances_to_path_list.is_set || is_set(number_of_referances_to_path_list.yfilter)) leaf_name_data.push_back(number_of_referances_to_path_list.get_name_leafdata());
if (path_list_flags.is_set || is_set(path_list_flags.yfilter)) leaf_name_data.push_back(path_list_flags.get_name_leafdata());
if (path_list_source.is_set || is_set(path_list_source.yfilter)) leaf_name_data.push_back(path_list_source.get_name_leafdata());
if (number_of_referances_to_ldi.is_set || is_set(number_of_referances_to_ldi.yfilter)) leaf_name_data.push_back(number_of_referances_to_ldi.get_name_leafdata());
if (ldi_flags.is_set || is_set(ldi_flags.yfilter)) leaf_name_data.push_back(ldi_flags.get_name_leafdata());
if (flags_external_ldi.is_set || is_set(flags_external_ldi.yfilter)) leaf_name_data.push_back(flags_external_ldi.get_name_leafdata());
if (pointer_external_ldi.is_set || is_set(pointer_external_ldi.yfilter)) leaf_name_data.push_back(pointer_external_ldi.get_name_leafdata());
if (exact_path_interface_handle.is_set || is_set(exact_path_interface_handle.yfilter)) leaf_name_data.push_back(exact_path_interface_handle.get_name_leafdata());
if (exact_path_gre_interface_handle.is_set || is_set(exact_path_gre_interface_handle.yfilter)) leaf_name_data.push_back(exact_path_gre_interface_handle.get_name_leafdata());
if (exact_route_gre_phys_ifh_avail.is_set || is_set(exact_route_gre_phys_ifh_avail.yfilter)) leaf_name_data.push_back(exact_route_gre_phys_ifh_avail.get_name_leafdata());
if (exact_route_result.is_set || is_set(exact_route_result.yfilter)) leaf_name_data.push_back(exact_route_result.get_name_leafdata());
if (prefix_is_static_or_connected.is_set || is_set(prefix_is_static_or_connected.yfilter)) leaf_name_data.push_back(prefix_is_static_or_connected.get_name_leafdata());
if (packet_should_recieve.is_set || is_set(packet_should_recieve.yfilter)) leaf_name_data.push_back(packet_should_recieve.get_name_leafdata());
if (prefix_connected.is_set || is_set(prefix_connected.yfilter)) leaf_name_data.push_back(prefix_connected.get_name_leafdata());
if (prefix_for_adjancency.is_set || is_set(prefix_for_adjancency.yfilter)) leaf_name_data.push_back(prefix_for_adjancency.get_name_leafdata());
if (prefix_for_pic_next_hop.is_set || is_set(prefix_for_pic_next_hop.yfilter)) leaf_name_data.push_back(prefix_for_pic_next_hop.get_name_leafdata());
if (purgable_after_purge_interval.is_set || is_set(purgable_after_purge_interval.yfilter)) leaf_name_data.push_back(purgable_after_purge_interval.get_name_leafdata());
if (broadcast_recive_flag.is_set || is_set(broadcast_recive_flag.yfilter)) leaf_name_data.push_back(broadcast_recive_flag.get_name_leafdata());
if (broadcast_forward_flag.is_set || is_set(broadcast_forward_flag.yfilter)) leaf_name_data.push_back(broadcast_forward_flag.get_name_leafdata());
if (zero_by_zero_route_as_default.is_set || is_set(zero_by_zero_route_as_default.yfilter)) leaf_name_data.push_back(zero_by_zero_route_as_default.get_name_leafdata());
if (external_switch_triggered.is_set || is_set(external_switch_triggered.yfilter)) leaf_name_data.push_back(external_switch_triggered.get_name_leafdata());
if (route_attribute_flag.is_set || is_set(route_attribute_flag.yfilter)) leaf_name_data.push_back(route_attribute_flag.get_name_leafdata());
if (dummy_real_zero_route.is_set || is_set(dummy_real_zero_route.yfilter)) leaf_name_data.push_back(dummy_real_zero_route.get_name_leafdata());
if (ldi_lw_flag.is_set || is_set(ldi_lw_flag.yfilter)) leaf_name_data.push_back(ldi_lw_flag.get_name_leafdata());
if (ref_counter_of_ldi_lw_ldi.is_set || is_set(ref_counter_of_ldi_lw_ldi.yfilter)) leaf_name_data.push_back(ref_counter_of_ldi_lw_ldi.get_name_leafdata());
if (type_of_ldi_lw_ldi.is_set || is_set(type_of_ldi_lw_ldi.yfilter)) leaf_name_data.push_back(type_of_ldi_lw_ldi.get_name_leafdata());
if (lspa_flags.is_set || is_set(lspa_flags.yfilter)) leaf_name_data.push_back(lspa_flags.get_name_leafdata());
if (version_of_route.is_set || is_set(version_of_route.yfilter)) leaf_name_data.push_back(version_of_route.get_name_leafdata());
if (fib_route_download_priority.is_set || is_set(fib_route_download_priority.yfilter)) leaf_name_data.push_back(fib_route_download_priority.get_name_leafdata());
if (time_of_last_update_in_msec.is_set || is_set(time_of_last_update_in_msec.yfilter)) leaf_name_data.push_back(time_of_last_update_in_msec.get_name_leafdata());
if (l2_subscriber_route.is_set || is_set(l2_subscriber_route.yfilter)) leaf_name_data.push_back(l2_subscriber_route.get_name_leafdata());
if (l2_subscriber_xconnect_id.is_set || is_set(l2_subscriber_xconnect_id.yfilter)) leaf_name_data.push_back(l2_subscriber_xconnect_id.get_name_leafdata());
if (l2_subscriber_flags.is_set || is_set(l2_subscriber_flags.yfilter)) leaf_name_data.push_back(l2_subscriber_flags.get_name_leafdata());
if (l2_subscriber_ip_protocol.is_set || is_set(l2_subscriber_ip_protocol.yfilter)) leaf_name_data.push_back(l2_subscriber_ip_protocol.get_name_leafdata());
if (l2tpv3_cookie_length_bits.is_set || is_set(l2tpv3_cookie_length_bits.yfilter)) leaf_name_data.push_back(l2tpv3_cookie_length_bits.get_name_leafdata());
if (route_for_external_reach_linecard_flag.is_set || is_set(route_for_external_reach_linecard_flag.yfilter)) leaf_name_data.push_back(route_for_external_reach_linecard_flag.get_name_leafdata());
if (route_source_not_preferred.is_set || is_set(route_source_not_preferred.yfilter)) leaf_name_data.push_back(route_source_not_preferred.get_name_leafdata());
if (route_is_sr_flag.is_set || is_set(route_is_sr_flag.yfilter)) leaf_name_data.push_back(route_is_sr_flag.get_name_leafdata());
return leaf_name_data;
}
std::shared_ptr<ydk::Entity> Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::get_child_by_name(const std::string & child_yang_name, const std::string & segment_path)
{
if(child_yang_name == "detail-fib-entry-information")
{
if(detail_fib_entry_information == nullptr)
{
detail_fib_entry_information = std::make_shared<Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::DetailFibEntryInformation>();
}
return detail_fib_entry_information;
}
if(child_yang_name == "fib-entry-path")
{
if(fib_entry_path == nullptr)
{
fib_entry_path = std::make_shared<Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::FibEntryPath>();
}
return fib_entry_path;
}
if(child_yang_name == "extension-object")
{
auto ent_ = std::make_shared<Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::ExtensionObject>();
ent_->parent = this;
extension_object.append(ent_);
return ent_;
}
return nullptr;
}
std::map<std::string, std::shared_ptr<ydk::Entity>> Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::get_children() const
{
std::map<std::string, std::shared_ptr<ydk::Entity>> _children{};
char count_=0;
if(detail_fib_entry_information != nullptr)
{
_children["detail-fib-entry-information"] = detail_fib_entry_information;
}
if(fib_entry_path != nullptr)
{
_children["fib-entry-path"] = fib_entry_path;
}
count_ = 0;
for (auto ent_ : extension_object.entities())
{
if(_children.find(ent_->get_segment_path()) == _children.end())
_children[ent_->get_segment_path()] = ent_;
else
_children[ent_->get_segment_path()+count_++] = ent_;
}
return _children;
}
void Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::set_value(const std::string & value_path, const std::string & value, const std::string & name_space, const std::string & name_space_prefix)
{
if(value_path == "protocol-name")
{
protocol_name = value;
protocol_name.value_namespace = name_space;
protocol_name.value_namespace_prefix = name_space_prefix;
}
if(value_path == "vrf-name")
{
vrf_name = value;
vrf_name.value_namespace = name_space;
vrf_name.value_namespace_prefix = name_space_prefix;
}
if(value_path == "source")
{
source = value;
source.value_namespace = name_space;
source.value_namespace_prefix = name_space_prefix;
}
if(value_path == "destination")
{
destination = value;
destination.value_namespace = name_space;
destination.value_namespace_prefix = name_space_prefix;
}
if(value_path == "ipv6-flow-label")
{
ipv6_flow_label = value;
ipv6_flow_label.value_namespace = name_space;
ipv6_flow_label.value_namespace_prefix = name_space_prefix;
}
if(value_path == "protocol-type-fib-entry")
{
protocol_type_fib_entry = value;
protocol_type_fib_entry.value_namespace = name_space;
protocol_type_fib_entry.value_namespace_prefix = name_space_prefix;
}
if(value_path == "platform-hardware")
{
platform_hardware = value;
platform_hardware.value_namespace = name_space;
platform_hardware.value_namespace_prefix = name_space_prefix;
}
if(value_path == "number-of-referances-to-path-list")
{
number_of_referances_to_path_list = value;
number_of_referances_to_path_list.value_namespace = name_space;
number_of_referances_to_path_list.value_namespace_prefix = name_space_prefix;
}
if(value_path == "path-list-flags")
{
path_list_flags = value;
path_list_flags.value_namespace = name_space;
path_list_flags.value_namespace_prefix = name_space_prefix;
}
if(value_path == "path-list-source")
{
path_list_source = value;
path_list_source.value_namespace = name_space;
path_list_source.value_namespace_prefix = name_space_prefix;
}
if(value_path == "number-of-referances-to-ldi")
{
number_of_referances_to_ldi = value;
number_of_referances_to_ldi.value_namespace = name_space;
number_of_referances_to_ldi.value_namespace_prefix = name_space_prefix;
}
if(value_path == "ldi-flags")
{
ldi_flags = value;
ldi_flags.value_namespace = name_space;
ldi_flags.value_namespace_prefix = name_space_prefix;
}
if(value_path == "flags-external-ldi")
{
flags_external_ldi = value;
flags_external_ldi.value_namespace = name_space;
flags_external_ldi.value_namespace_prefix = name_space_prefix;
}
if(value_path == "pointer-external-ldi")
{
pointer_external_ldi = value;
pointer_external_ldi.value_namespace = name_space;
pointer_external_ldi.value_namespace_prefix = name_space_prefix;
}
if(value_path == "exact-path-interface-handle")
{
exact_path_interface_handle = value;
exact_path_interface_handle.value_namespace = name_space;
exact_path_interface_handle.value_namespace_prefix = name_space_prefix;
}
if(value_path == "exact-path-gre-interface-handle")
{
exact_path_gre_interface_handle = value;
exact_path_gre_interface_handle.value_namespace = name_space;
exact_path_gre_interface_handle.value_namespace_prefix = name_space_prefix;
}
if(value_path == "exact-route-gre-phys-ifh-avail")
{
exact_route_gre_phys_ifh_avail = value;
exact_route_gre_phys_ifh_avail.value_namespace = name_space;
exact_route_gre_phys_ifh_avail.value_namespace_prefix = name_space_prefix;
}
if(value_path == "exact-route-result")
{
exact_route_result = value;
exact_route_result.value_namespace = name_space;
exact_route_result.value_namespace_prefix = name_space_prefix;
}
if(value_path == "prefix-is-static-or-connected")
{
prefix_is_static_or_connected = value;
prefix_is_static_or_connected.value_namespace = name_space;
prefix_is_static_or_connected.value_namespace_prefix = name_space_prefix;
}
if(value_path == "packet-should-recieve")
{
packet_should_recieve = value;
packet_should_recieve.value_namespace = name_space;
packet_should_recieve.value_namespace_prefix = name_space_prefix;
}
if(value_path == "prefix-connected")
{
prefix_connected = value;
prefix_connected.value_namespace = name_space;
prefix_connected.value_namespace_prefix = name_space_prefix;
}
if(value_path == "prefix-for-adjancency")
{
prefix_for_adjancency = value;
prefix_for_adjancency.value_namespace = name_space;
prefix_for_adjancency.value_namespace_prefix = name_space_prefix;
}
if(value_path == "prefix-for-pic-next-hop")
{
prefix_for_pic_next_hop = value;
prefix_for_pic_next_hop.value_namespace = name_space;
prefix_for_pic_next_hop.value_namespace_prefix = name_space_prefix;
}
if(value_path == "purgable-after-purge-interval")
{
purgable_after_purge_interval = value;
purgable_after_purge_interval.value_namespace = name_space;
purgable_after_purge_interval.value_namespace_prefix = name_space_prefix;
}
if(value_path == "broadcast-recive-flag")
{
broadcast_recive_flag = value;
broadcast_recive_flag.value_namespace = name_space;
broadcast_recive_flag.value_namespace_prefix = name_space_prefix;
}
if(value_path == "broadcast-forward-flag")
{
broadcast_forward_flag = value;
broadcast_forward_flag.value_namespace = name_space;
broadcast_forward_flag.value_namespace_prefix = name_space_prefix;
}
if(value_path == "zero-by-zero-route-as-default")
{
zero_by_zero_route_as_default = value;
zero_by_zero_route_as_default.value_namespace = name_space;
zero_by_zero_route_as_default.value_namespace_prefix = name_space_prefix;
}
if(value_path == "external-switch-triggered")
{
external_switch_triggered = value;
external_switch_triggered.value_namespace = name_space;
external_switch_triggered.value_namespace_prefix = name_space_prefix;
}
if(value_path == "route-attribute-flag")
{
route_attribute_flag = value;
route_attribute_flag.value_namespace = name_space;
route_attribute_flag.value_namespace_prefix = name_space_prefix;
}
if(value_path == "dummy-real-zero-route")
{
dummy_real_zero_route = value;
dummy_real_zero_route.value_namespace = name_space;
dummy_real_zero_route.value_namespace_prefix = name_space_prefix;
}
if(value_path == "ldi-lw-flag")
{
ldi_lw_flag = value;
ldi_lw_flag.value_namespace = name_space;
ldi_lw_flag.value_namespace_prefix = name_space_prefix;
}
if(value_path == "ref-counter-of-ldi-lw-ldi")
{
ref_counter_of_ldi_lw_ldi = value;
ref_counter_of_ldi_lw_ldi.value_namespace = name_space;
ref_counter_of_ldi_lw_ldi.value_namespace_prefix = name_space_prefix;
}
if(value_path == "type-of-ldi-lw-ldi")
{
type_of_ldi_lw_ldi = value;
type_of_ldi_lw_ldi.value_namespace = name_space;
type_of_ldi_lw_ldi.value_namespace_prefix = name_space_prefix;
}
if(value_path == "lspa-flags")
{
lspa_flags = value;
lspa_flags.value_namespace = name_space;
lspa_flags.value_namespace_prefix = name_space_prefix;
}
if(value_path == "version-of-route")
{
version_of_route = value;
version_of_route.value_namespace = name_space;
version_of_route.value_namespace_prefix = name_space_prefix;
}
if(value_path == "fib-route-download-priority")
{
fib_route_download_priority = value;
fib_route_download_priority.value_namespace = name_space;
fib_route_download_priority.value_namespace_prefix = name_space_prefix;
}
if(value_path == "time-of-last-update-in-msec")
{
time_of_last_update_in_msec = value;
time_of_last_update_in_msec.value_namespace = name_space;
time_of_last_update_in_msec.value_namespace_prefix = name_space_prefix;
}
if(value_path == "l2-subscriber-route")
{
l2_subscriber_route = value;
l2_subscriber_route.value_namespace = name_space;
l2_subscriber_route.value_namespace_prefix = name_space_prefix;
}
if(value_path == "l2-subscriber-xconnect-id")
{
l2_subscriber_xconnect_id = value;
l2_subscriber_xconnect_id.value_namespace = name_space;
l2_subscriber_xconnect_id.value_namespace_prefix = name_space_prefix;
}
if(value_path == "l2-subscriber-flags")
{
l2_subscriber_flags = value;
l2_subscriber_flags.value_namespace = name_space;
l2_subscriber_flags.value_namespace_prefix = name_space_prefix;
}
if(value_path == "l2-subscriber-ip-protocol")
{
l2_subscriber_ip_protocol = value;
l2_subscriber_ip_protocol.value_namespace = name_space;
l2_subscriber_ip_protocol.value_namespace_prefix = name_space_prefix;
}
if(value_path == "l2tpv3-cookie-length-bits")
{
l2tpv3_cookie_length_bits = value;
l2tpv3_cookie_length_bits.value_namespace = name_space;
l2tpv3_cookie_length_bits.value_namespace_prefix = name_space_prefix;
}
if(value_path == "route-for-external-reach-linecard-flag")
{
route_for_external_reach_linecard_flag = value;
route_for_external_reach_linecard_flag.value_namespace = name_space;
route_for_external_reach_linecard_flag.value_namespace_prefix = name_space_prefix;
}
if(value_path == "route-source-not-preferred")
{
route_source_not_preferred = value;
route_source_not_preferred.value_namespace = name_space;
route_source_not_preferred.value_namespace_prefix = name_space_prefix;
}
if(value_path == "route-is-sr-flag")
{
route_is_sr_flag = value;
route_is_sr_flag.value_namespace = name_space;
route_is_sr_flag.value_namespace_prefix = name_space_prefix;
}
}
void Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::set_filter(const std::string & value_path, YFilter yfilter)
{
if(value_path == "protocol-name")
{
protocol_name.yfilter = yfilter;
}
if(value_path == "vrf-name")
{
vrf_name.yfilter = yfilter;
}
if(value_path == "source")
{
source.yfilter = yfilter;
}
if(value_path == "destination")
{
destination.yfilter = yfilter;
}
if(value_path == "ipv6-flow-label")
{
ipv6_flow_label.yfilter = yfilter;
}
if(value_path == "protocol-type-fib-entry")
{
protocol_type_fib_entry.yfilter = yfilter;
}
if(value_path == "platform-hardware")
{
platform_hardware.yfilter = yfilter;
}
if(value_path == "number-of-referances-to-path-list")
{
number_of_referances_to_path_list.yfilter = yfilter;
}
if(value_path == "path-list-flags")
{
path_list_flags.yfilter = yfilter;
}
if(value_path == "path-list-source")
{
path_list_source.yfilter = yfilter;
}
if(value_path == "number-of-referances-to-ldi")
{
number_of_referances_to_ldi.yfilter = yfilter;
}
if(value_path == "ldi-flags")
{
ldi_flags.yfilter = yfilter;
}
if(value_path == "flags-external-ldi")
{
flags_external_ldi.yfilter = yfilter;
}
if(value_path == "pointer-external-ldi")
{
pointer_external_ldi.yfilter = yfilter;
}
if(value_path == "exact-path-interface-handle")
{
exact_path_interface_handle.yfilter = yfilter;
}
if(value_path == "exact-path-gre-interface-handle")
{
exact_path_gre_interface_handle.yfilter = yfilter;
}
if(value_path == "exact-route-gre-phys-ifh-avail")
{
exact_route_gre_phys_ifh_avail.yfilter = yfilter;
}
if(value_path == "exact-route-result")
{
exact_route_result.yfilter = yfilter;
}
if(value_path == "prefix-is-static-or-connected")
{
prefix_is_static_or_connected.yfilter = yfilter;
}
if(value_path == "packet-should-recieve")
{
packet_should_recieve.yfilter = yfilter;
}
if(value_path == "prefix-connected")
{
prefix_connected.yfilter = yfilter;
}
if(value_path == "prefix-for-adjancency")
{
prefix_for_adjancency.yfilter = yfilter;
}
if(value_path == "prefix-for-pic-next-hop")
{
prefix_for_pic_next_hop.yfilter = yfilter;
}
if(value_path == "purgable-after-purge-interval")
{
purgable_after_purge_interval.yfilter = yfilter;
}
if(value_path == "broadcast-recive-flag")
{
broadcast_recive_flag.yfilter = yfilter;
}
if(value_path == "broadcast-forward-flag")
{
broadcast_forward_flag.yfilter = yfilter;
}
if(value_path == "zero-by-zero-route-as-default")
{
zero_by_zero_route_as_default.yfilter = yfilter;
}
if(value_path == "external-switch-triggered")
{
external_switch_triggered.yfilter = yfilter;
}
if(value_path == "route-attribute-flag")
{
route_attribute_flag.yfilter = yfilter;
}
if(value_path == "dummy-real-zero-route")
{
dummy_real_zero_route.yfilter = yfilter;
}
if(value_path == "ldi-lw-flag")
{
ldi_lw_flag.yfilter = yfilter;
}
if(value_path == "ref-counter-of-ldi-lw-ldi")
{
ref_counter_of_ldi_lw_ldi.yfilter = yfilter;
}
if(value_path == "type-of-ldi-lw-ldi")
{
type_of_ldi_lw_ldi.yfilter = yfilter;
}
if(value_path == "lspa-flags")
{
lspa_flags.yfilter = yfilter;
}
if(value_path == "version-of-route")
{
version_of_route.yfilter = yfilter;
}
if(value_path == "fib-route-download-priority")
{
fib_route_download_priority.yfilter = yfilter;
}
if(value_path == "time-of-last-update-in-msec")
{
time_of_last_update_in_msec.yfilter = yfilter;
}
if(value_path == "l2-subscriber-route")
{
l2_subscriber_route.yfilter = yfilter;
}
if(value_path == "l2-subscriber-xconnect-id")
{
l2_subscriber_xconnect_id.yfilter = yfilter;
}
if(value_path == "l2-subscriber-flags")
{
l2_subscriber_flags.yfilter = yfilter;
}
if(value_path == "l2-subscriber-ip-protocol")
{
l2_subscriber_ip_protocol.yfilter = yfilter;
}
if(value_path == "l2tpv3-cookie-length-bits")
{
l2tpv3_cookie_length_bits.yfilter = yfilter;
}
if(value_path == "route-for-external-reach-linecard-flag")
{
route_for_external_reach_linecard_flag.yfilter = yfilter;
}
if(value_path == "route-source-not-preferred")
{
route_source_not_preferred.yfilter = yfilter;
}
if(value_path == "route-is-sr-flag")
{
route_is_sr_flag.yfilter = yfilter;
}
}
bool Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::has_leaf_or_child_of_name(const std::string & name) const
{
if(name == "detail-fib-entry-information" || name == "fib-entry-path" || name == "extension-object" || name == "protocol-name" || name == "vrf-name" || name == "source" || name == "destination" || name == "ipv6-flow-label" || name == "protocol-type-fib-entry" || name == "platform-hardware" || name == "number-of-referances-to-path-list" || name == "path-list-flags" || name == "path-list-source" || name == "number-of-referances-to-ldi" || name == "ldi-flags" || name == "flags-external-ldi" || name == "pointer-external-ldi" || name == "exact-path-interface-handle" || name == "exact-path-gre-interface-handle" || name == "exact-route-gre-phys-ifh-avail" || name == "exact-route-result" || name == "prefix-is-static-or-connected" || name == "packet-should-recieve" || name == "prefix-connected" || name == "prefix-for-adjancency" || name == "prefix-for-pic-next-hop" || name == "purgable-after-purge-interval" || name == "broadcast-recive-flag" || name == "broadcast-forward-flag" || name == "zero-by-zero-route-as-default" || name == "external-switch-triggered" || name == "route-attribute-flag" || name == "dummy-real-zero-route" || name == "ldi-lw-flag" || name == "ref-counter-of-ldi-lw-ldi" || name == "type-of-ldi-lw-ldi" || name == "lspa-flags" || name == "version-of-route" || name == "fib-route-download-priority" || name == "time-of-last-update-in-msec" || name == "l2-subscriber-route" || name == "l2-subscriber-xconnect-id" || name == "l2-subscriber-flags" || name == "l2-subscriber-ip-protocol" || name == "l2tpv3-cookie-length-bits" || name == "route-for-external-reach-linecard-flag" || name == "route-source-not-preferred" || name == "route-is-sr-flag")
return true;
return false;
}
Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::DetailFibEntryInformation::DetailFibEntryInformation()
:
fib_entry_version{YType::uint32, "fib-entry-version"},
per_prefix_accounting{YType::uint8, "per-prefix-accounting"},
load_sharing_type{YType::enumeration, "load-sharing-type"},
fib_entry_adjacency_type{YType::enumeration, "fib-entry-adjacency-type"},
fib_protocol_type{YType::uint32, "fib-protocol-type"},
afi_fib_protocol_type{YType::uint32, "afi-fib-protocol-type"},
aib_l3_address{YType::str, "aib-l3-address"},
adjacency_address_length{YType::uint32, "adjacency-address-length"},
adjacency_interface{YType::uint32, "adjacency-interface"},
fib_special_nh_information_type{YType::uint32, "fib-special-nh-information-type"},
fib_entry_adjacency_address{YType::str, "fib-entry-adjacency-address"},
fib_entry_adjacency_interface{YType::uint32, "fib-entry-adjacency-interface"},
packets_through_fib_entry{YType::uint64, "packets-through-fib-entry"},
bytes_through_fib_entry{YType::uint64, "bytes-through-fib-entry"},
detailed_prefix_length{YType::uint32, "detailed-prefix-length"},
prefix_protocol{YType::uint32, "prefix-protocol"},
precedence_forpackets{YType::uint8, "precedence-forpackets"},
traffic_index_for_packets{YType::uint8, "traffic-index-for-packets"},
switch_compontent_id{YType::uint32, "switch-compontent-id"},
fast_adjacency_flag{YType::boolean, "fast-adjacency-flag"},
illegal_fast_adjacency_flag{YType::boolean, "illegal-fast-adjacency-flag"},
remote_adjacency_flag{YType::boolean, "remote-adjacency-flag"},
bgp_attribute_id{YType::uint32, "bgp-attribute-id"},
bgp_local_attribute_id{YType::uint32, "bgp-local-attribute-id"},
bgp_attribute_origin_as{YType::uint32, "bgp-attribute-origin-as"},
bgp_attribute_next_hop_as{YType::uint32, "bgp-attribute-next-hop-as"},
path_string{YType::str, "path-string"},
extcom_string{YType::str, "extcom-string"},
com_string{YType::str, "com-string"},
extended_community{YType::uint32, "extended-community"},
qos_group{YType::uint32, "qos-group"},
mpls_fec{YType::uint32, "mpls-fec"},
qppb_qos_group_and_ip_precedence{YType::uint32, "qppb-qos-group-and-ip-precedence"},
flow_tag{YType::uint8, "flow-tag"},
forward_class{YType::uint8, "forward-class"},
pl_time_of_last_update_in_msec{YType::uint64, "pl-time-of-last-update-in-msec"},
ldi_time_of_last_update_in_msec{YType::uint64, "ldi-time-of-last-update-in-msec"},
lwldi_time_of_last_update_in_msec{YType::uint64, "lwldi-time-of-last-update-in-msec"},
pl_time_stamp_type{YType::uint32, "pl-time-stamp-type"}
,
loadshare_information(std::make_shared<Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::DetailFibEntryInformation::LoadshareInformation>())
{
loadshare_information->parent = this;
yang_name = "detail-fib-entry-information"; yang_parent_name = "exact-route"; is_top_level_class = false; has_list_ancestor = true;
}
Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::DetailFibEntryInformation::~DetailFibEntryInformation()
{
}
bool Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::DetailFibEntryInformation::has_data() const
{
if (is_presence_container) return true;
return fib_entry_version.is_set
|| per_prefix_accounting.is_set
|| load_sharing_type.is_set
|| fib_entry_adjacency_type.is_set
|| fib_protocol_type.is_set
|| afi_fib_protocol_type.is_set
|| aib_l3_address.is_set
|| adjacency_address_length.is_set
|| adjacency_interface.is_set
|| fib_special_nh_information_type.is_set
|| fib_entry_adjacency_address.is_set
|| fib_entry_adjacency_interface.is_set
|| packets_through_fib_entry.is_set
|| bytes_through_fib_entry.is_set
|| detailed_prefix_length.is_set
|| prefix_protocol.is_set
|| precedence_forpackets.is_set
|| traffic_index_for_packets.is_set
|| switch_compontent_id.is_set
|| fast_adjacency_flag.is_set
|| illegal_fast_adjacency_flag.is_set
|| remote_adjacency_flag.is_set
|| bgp_attribute_id.is_set
|| bgp_local_attribute_id.is_set
|| bgp_attribute_origin_as.is_set
|| bgp_attribute_next_hop_as.is_set
|| path_string.is_set
|| extcom_string.is_set
|| com_string.is_set
|| extended_community.is_set
|| qos_group.is_set
|| mpls_fec.is_set
|| qppb_qos_group_and_ip_precedence.is_set
|| flow_tag.is_set
|| forward_class.is_set
|| pl_time_of_last_update_in_msec.is_set
|| ldi_time_of_last_update_in_msec.is_set
|| lwldi_time_of_last_update_in_msec.is_set
|| pl_time_stamp_type.is_set
|| (loadshare_information != nullptr && loadshare_information->has_data());
}
bool Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::DetailFibEntryInformation::has_operation() const
{
return is_set(yfilter)
|| ydk::is_set(fib_entry_version.yfilter)
|| ydk::is_set(per_prefix_accounting.yfilter)
|| ydk::is_set(load_sharing_type.yfilter)
|| ydk::is_set(fib_entry_adjacency_type.yfilter)
|| ydk::is_set(fib_protocol_type.yfilter)
|| ydk::is_set(afi_fib_protocol_type.yfilter)
|| ydk::is_set(aib_l3_address.yfilter)
|| ydk::is_set(adjacency_address_length.yfilter)
|| ydk::is_set(adjacency_interface.yfilter)
|| ydk::is_set(fib_special_nh_information_type.yfilter)
|| ydk::is_set(fib_entry_adjacency_address.yfilter)
|| ydk::is_set(fib_entry_adjacency_interface.yfilter)
|| ydk::is_set(packets_through_fib_entry.yfilter)
|| ydk::is_set(bytes_through_fib_entry.yfilter)
|| ydk::is_set(detailed_prefix_length.yfilter)
|| ydk::is_set(prefix_protocol.yfilter)
|| ydk::is_set(precedence_forpackets.yfilter)
|| ydk::is_set(traffic_index_for_packets.yfilter)
|| ydk::is_set(switch_compontent_id.yfilter)
|| ydk::is_set(fast_adjacency_flag.yfilter)
|| ydk::is_set(illegal_fast_adjacency_flag.yfilter)
|| ydk::is_set(remote_adjacency_flag.yfilter)
|| ydk::is_set(bgp_attribute_id.yfilter)
|| ydk::is_set(bgp_local_attribute_id.yfilter)
|| ydk::is_set(bgp_attribute_origin_as.yfilter)
|| ydk::is_set(bgp_attribute_next_hop_as.yfilter)
|| ydk::is_set(path_string.yfilter)
|| ydk::is_set(extcom_string.yfilter)
|| ydk::is_set(com_string.yfilter)
|| ydk::is_set(extended_community.yfilter)
|| ydk::is_set(qos_group.yfilter)
|| ydk::is_set(mpls_fec.yfilter)
|| ydk::is_set(qppb_qos_group_and_ip_precedence.yfilter)
|| ydk::is_set(flow_tag.yfilter)
|| ydk::is_set(forward_class.yfilter)
|| ydk::is_set(pl_time_of_last_update_in_msec.yfilter)
|| ydk::is_set(ldi_time_of_last_update_in_msec.yfilter)
|| ydk::is_set(lwldi_time_of_last_update_in_msec.yfilter)
|| ydk::is_set(pl_time_stamp_type.yfilter)
|| (loadshare_information != nullptr && loadshare_information->has_operation());
}
std::string Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::DetailFibEntryInformation::get_segment_path() const
{
std::ostringstream path_buffer;
path_buffer << "detail-fib-entry-information";
return path_buffer.str();
}
std::vector<std::pair<std::string, LeafData> > Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::DetailFibEntryInformation::get_name_leaf_data() const
{
std::vector<std::pair<std::string, LeafData> > leaf_name_data {};
if (fib_entry_version.is_set || is_set(fib_entry_version.yfilter)) leaf_name_data.push_back(fib_entry_version.get_name_leafdata());
if (per_prefix_accounting.is_set || is_set(per_prefix_accounting.yfilter)) leaf_name_data.push_back(per_prefix_accounting.get_name_leafdata());
if (load_sharing_type.is_set || is_set(load_sharing_type.yfilter)) leaf_name_data.push_back(load_sharing_type.get_name_leafdata());
if (fib_entry_adjacency_type.is_set || is_set(fib_entry_adjacency_type.yfilter)) leaf_name_data.push_back(fib_entry_adjacency_type.get_name_leafdata());
if (fib_protocol_type.is_set || is_set(fib_protocol_type.yfilter)) leaf_name_data.push_back(fib_protocol_type.get_name_leafdata());
if (afi_fib_protocol_type.is_set || is_set(afi_fib_protocol_type.yfilter)) leaf_name_data.push_back(afi_fib_protocol_type.get_name_leafdata());
if (aib_l3_address.is_set || is_set(aib_l3_address.yfilter)) leaf_name_data.push_back(aib_l3_address.get_name_leafdata());
if (adjacency_address_length.is_set || is_set(adjacency_address_length.yfilter)) leaf_name_data.push_back(adjacency_address_length.get_name_leafdata());
if (adjacency_interface.is_set || is_set(adjacency_interface.yfilter)) leaf_name_data.push_back(adjacency_interface.get_name_leafdata());
if (fib_special_nh_information_type.is_set || is_set(fib_special_nh_information_type.yfilter)) leaf_name_data.push_back(fib_special_nh_information_type.get_name_leafdata());
if (fib_entry_adjacency_address.is_set || is_set(fib_entry_adjacency_address.yfilter)) leaf_name_data.push_back(fib_entry_adjacency_address.get_name_leafdata());
if (fib_entry_adjacency_interface.is_set || is_set(fib_entry_adjacency_interface.yfilter)) leaf_name_data.push_back(fib_entry_adjacency_interface.get_name_leafdata());
if (packets_through_fib_entry.is_set || is_set(packets_through_fib_entry.yfilter)) leaf_name_data.push_back(packets_through_fib_entry.get_name_leafdata());
if (bytes_through_fib_entry.is_set || is_set(bytes_through_fib_entry.yfilter)) leaf_name_data.push_back(bytes_through_fib_entry.get_name_leafdata());
if (detailed_prefix_length.is_set || is_set(detailed_prefix_length.yfilter)) leaf_name_data.push_back(detailed_prefix_length.get_name_leafdata());
if (prefix_protocol.is_set || is_set(prefix_protocol.yfilter)) leaf_name_data.push_back(prefix_protocol.get_name_leafdata());
if (precedence_forpackets.is_set || is_set(precedence_forpackets.yfilter)) leaf_name_data.push_back(precedence_forpackets.get_name_leafdata());
if (traffic_index_for_packets.is_set || is_set(traffic_index_for_packets.yfilter)) leaf_name_data.push_back(traffic_index_for_packets.get_name_leafdata());
if (switch_compontent_id.is_set || is_set(switch_compontent_id.yfilter)) leaf_name_data.push_back(switch_compontent_id.get_name_leafdata());
if (fast_adjacency_flag.is_set || is_set(fast_adjacency_flag.yfilter)) leaf_name_data.push_back(fast_adjacency_flag.get_name_leafdata());
if (illegal_fast_adjacency_flag.is_set || is_set(illegal_fast_adjacency_flag.yfilter)) leaf_name_data.push_back(illegal_fast_adjacency_flag.get_name_leafdata());
if (remote_adjacency_flag.is_set || is_set(remote_adjacency_flag.yfilter)) leaf_name_data.push_back(remote_adjacency_flag.get_name_leafdata());
if (bgp_attribute_id.is_set || is_set(bgp_attribute_id.yfilter)) leaf_name_data.push_back(bgp_attribute_id.get_name_leafdata());
if (bgp_local_attribute_id.is_set || is_set(bgp_local_attribute_id.yfilter)) leaf_name_data.push_back(bgp_local_attribute_id.get_name_leafdata());
if (bgp_attribute_origin_as.is_set || is_set(bgp_attribute_origin_as.yfilter)) leaf_name_data.push_back(bgp_attribute_origin_as.get_name_leafdata());
if (bgp_attribute_next_hop_as.is_set || is_set(bgp_attribute_next_hop_as.yfilter)) leaf_name_data.push_back(bgp_attribute_next_hop_as.get_name_leafdata());
if (path_string.is_set || is_set(path_string.yfilter)) leaf_name_data.push_back(path_string.get_name_leafdata());
if (extcom_string.is_set || is_set(extcom_string.yfilter)) leaf_name_data.push_back(extcom_string.get_name_leafdata());
if (com_string.is_set || is_set(com_string.yfilter)) leaf_name_data.push_back(com_string.get_name_leafdata());
if (extended_community.is_set || is_set(extended_community.yfilter)) leaf_name_data.push_back(extended_community.get_name_leafdata());
if (qos_group.is_set || is_set(qos_group.yfilter)) leaf_name_data.push_back(qos_group.get_name_leafdata());
if (mpls_fec.is_set || is_set(mpls_fec.yfilter)) leaf_name_data.push_back(mpls_fec.get_name_leafdata());
if (qppb_qos_group_and_ip_precedence.is_set || is_set(qppb_qos_group_and_ip_precedence.yfilter)) leaf_name_data.push_back(qppb_qos_group_and_ip_precedence.get_name_leafdata());
if (flow_tag.is_set || is_set(flow_tag.yfilter)) leaf_name_data.push_back(flow_tag.get_name_leafdata());
if (forward_class.is_set || is_set(forward_class.yfilter)) leaf_name_data.push_back(forward_class.get_name_leafdata());
if (pl_time_of_last_update_in_msec.is_set || is_set(pl_time_of_last_update_in_msec.yfilter)) leaf_name_data.push_back(pl_time_of_last_update_in_msec.get_name_leafdata());
if (ldi_time_of_last_update_in_msec.is_set || is_set(ldi_time_of_last_update_in_msec.yfilter)) leaf_name_data.push_back(ldi_time_of_last_update_in_msec.get_name_leafdata());
if (lwldi_time_of_last_update_in_msec.is_set || is_set(lwldi_time_of_last_update_in_msec.yfilter)) leaf_name_data.push_back(lwldi_time_of_last_update_in_msec.get_name_leafdata());
if (pl_time_stamp_type.is_set || is_set(pl_time_stamp_type.yfilter)) leaf_name_data.push_back(pl_time_stamp_type.get_name_leafdata());
return leaf_name_data;
}
std::shared_ptr<ydk::Entity> Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::DetailFibEntryInformation::get_child_by_name(const std::string & child_yang_name, const std::string & segment_path)
{
if(child_yang_name == "loadshare-information")
{
if(loadshare_information == nullptr)
{
loadshare_information = std::make_shared<Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::DetailFibEntryInformation::LoadshareInformation>();
}
return loadshare_information;
}
return nullptr;
}
std::map<std::string, std::shared_ptr<ydk::Entity>> Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::DetailFibEntryInformation::get_children() const
{
std::map<std::string, std::shared_ptr<ydk::Entity>> _children{};
char count_=0;
if(loadshare_information != nullptr)
{
_children["loadshare-information"] = loadshare_information;
}
return _children;
}
void Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::DetailFibEntryInformation::set_value(const std::string & value_path, const std::string & value, const std::string & name_space, const std::string & name_space_prefix)
{
if(value_path == "fib-entry-version")
{
fib_entry_version = value;
fib_entry_version.value_namespace = name_space;
fib_entry_version.value_namespace_prefix = name_space_prefix;
}
if(value_path == "per-prefix-accounting")
{
per_prefix_accounting = value;
per_prefix_accounting.value_namespace = name_space;
per_prefix_accounting.value_namespace_prefix = name_space_prefix;
}
if(value_path == "load-sharing-type")
{
load_sharing_type = value;
load_sharing_type.value_namespace = name_space;
load_sharing_type.value_namespace_prefix = name_space_prefix;
}
if(value_path == "fib-entry-adjacency-type")
{
fib_entry_adjacency_type = value;
fib_entry_adjacency_type.value_namespace = name_space;
fib_entry_adjacency_type.value_namespace_prefix = name_space_prefix;
}
if(value_path == "fib-protocol-type")
{
fib_protocol_type = value;
fib_protocol_type.value_namespace = name_space;
fib_protocol_type.value_namespace_prefix = name_space_prefix;
}
if(value_path == "afi-fib-protocol-type")
{
afi_fib_protocol_type = value;
afi_fib_protocol_type.value_namespace = name_space;
afi_fib_protocol_type.value_namespace_prefix = name_space_prefix;
}
if(value_path == "aib-l3-address")
{
aib_l3_address = value;
aib_l3_address.value_namespace = name_space;
aib_l3_address.value_namespace_prefix = name_space_prefix;
}
if(value_path == "adjacency-address-length")
{
adjacency_address_length = value;
adjacency_address_length.value_namespace = name_space;
adjacency_address_length.value_namespace_prefix = name_space_prefix;
}
if(value_path == "adjacency-interface")
{
adjacency_interface = value;
adjacency_interface.value_namespace = name_space;
adjacency_interface.value_namespace_prefix = name_space_prefix;
}
if(value_path == "fib-special-nh-information-type")
{
fib_special_nh_information_type = value;
fib_special_nh_information_type.value_namespace = name_space;
fib_special_nh_information_type.value_namespace_prefix = name_space_prefix;
}
if(value_path == "fib-entry-adjacency-address")
{
fib_entry_adjacency_address = value;
fib_entry_adjacency_address.value_namespace = name_space;
fib_entry_adjacency_address.value_namespace_prefix = name_space_prefix;
}
if(value_path == "fib-entry-adjacency-interface")
{
fib_entry_adjacency_interface = value;
fib_entry_adjacency_interface.value_namespace = name_space;
fib_entry_adjacency_interface.value_namespace_prefix = name_space_prefix;
}
if(value_path == "packets-through-fib-entry")
{
packets_through_fib_entry = value;
packets_through_fib_entry.value_namespace = name_space;
packets_through_fib_entry.value_namespace_prefix = name_space_prefix;
}
if(value_path == "bytes-through-fib-entry")
{
bytes_through_fib_entry = value;
bytes_through_fib_entry.value_namespace = name_space;
bytes_through_fib_entry.value_namespace_prefix = name_space_prefix;
}
if(value_path == "detailed-prefix-length")
{
detailed_prefix_length = value;
detailed_prefix_length.value_namespace = name_space;
detailed_prefix_length.value_namespace_prefix = name_space_prefix;
}
if(value_path == "prefix-protocol")
{
prefix_protocol = value;
prefix_protocol.value_namespace = name_space;
prefix_protocol.value_namespace_prefix = name_space_prefix;
}
if(value_path == "precedence-forpackets")
{
precedence_forpackets = value;
precedence_forpackets.value_namespace = name_space;
precedence_forpackets.value_namespace_prefix = name_space_prefix;
}
if(value_path == "traffic-index-for-packets")
{
traffic_index_for_packets = value;
traffic_index_for_packets.value_namespace = name_space;
traffic_index_for_packets.value_namespace_prefix = name_space_prefix;
}
if(value_path == "switch-compontent-id")
{
switch_compontent_id = value;
switch_compontent_id.value_namespace = name_space;
switch_compontent_id.value_namespace_prefix = name_space_prefix;
}
if(value_path == "fast-adjacency-flag")
{
fast_adjacency_flag = value;
fast_adjacency_flag.value_namespace = name_space;
fast_adjacency_flag.value_namespace_prefix = name_space_prefix;
}
if(value_path == "illegal-fast-adjacency-flag")
{
illegal_fast_adjacency_flag = value;
illegal_fast_adjacency_flag.value_namespace = name_space;
illegal_fast_adjacency_flag.value_namespace_prefix = name_space_prefix;
}
if(value_path == "remote-adjacency-flag")
{
remote_adjacency_flag = value;
remote_adjacency_flag.value_namespace = name_space;
remote_adjacency_flag.value_namespace_prefix = name_space_prefix;
}
if(value_path == "bgp-attribute-id")
{
bgp_attribute_id = value;
bgp_attribute_id.value_namespace = name_space;
bgp_attribute_id.value_namespace_prefix = name_space_prefix;
}
if(value_path == "bgp-local-attribute-id")
{
bgp_local_attribute_id = value;
bgp_local_attribute_id.value_namespace = name_space;
bgp_local_attribute_id.value_namespace_prefix = name_space_prefix;
}
if(value_path == "bgp-attribute-origin-as")
{
bgp_attribute_origin_as = value;
bgp_attribute_origin_as.value_namespace = name_space;
bgp_attribute_origin_as.value_namespace_prefix = name_space_prefix;
}
if(value_path == "bgp-attribute-next-hop-as")
{
bgp_attribute_next_hop_as = value;
bgp_attribute_next_hop_as.value_namespace = name_space;
bgp_attribute_next_hop_as.value_namespace_prefix = name_space_prefix;
}
if(value_path == "path-string")
{
path_string = value;
path_string.value_namespace = name_space;
path_string.value_namespace_prefix = name_space_prefix;
}
if(value_path == "extcom-string")
{
extcom_string = value;
extcom_string.value_namespace = name_space;
extcom_string.value_namespace_prefix = name_space_prefix;
}
if(value_path == "com-string")
{
com_string = value;
com_string.value_namespace = name_space;
com_string.value_namespace_prefix = name_space_prefix;
}
if(value_path == "extended-community")
{
extended_community = value;
extended_community.value_namespace = name_space;
extended_community.value_namespace_prefix = name_space_prefix;
}
if(value_path == "qos-group")
{
qos_group = value;
qos_group.value_namespace = name_space;
qos_group.value_namespace_prefix = name_space_prefix;
}
if(value_path == "mpls-fec")
{
mpls_fec = value;
mpls_fec.value_namespace = name_space;
mpls_fec.value_namespace_prefix = name_space_prefix;
}
if(value_path == "qppb-qos-group-and-ip-precedence")
{
qppb_qos_group_and_ip_precedence = value;
qppb_qos_group_and_ip_precedence.value_namespace = name_space;
qppb_qos_group_and_ip_precedence.value_namespace_prefix = name_space_prefix;
}
if(value_path == "flow-tag")
{
flow_tag = value;
flow_tag.value_namespace = name_space;
flow_tag.value_namespace_prefix = name_space_prefix;
}
if(value_path == "forward-class")
{
forward_class = value;
forward_class.value_namespace = name_space;
forward_class.value_namespace_prefix = name_space_prefix;
}
if(value_path == "pl-time-of-last-update-in-msec")
{
pl_time_of_last_update_in_msec = value;
pl_time_of_last_update_in_msec.value_namespace = name_space;
pl_time_of_last_update_in_msec.value_namespace_prefix = name_space_prefix;
}
if(value_path == "ldi-time-of-last-update-in-msec")
{
ldi_time_of_last_update_in_msec = value;
ldi_time_of_last_update_in_msec.value_namespace = name_space;
ldi_time_of_last_update_in_msec.value_namespace_prefix = name_space_prefix;
}
if(value_path == "lwldi-time-of-last-update-in-msec")
{
lwldi_time_of_last_update_in_msec = value;
lwldi_time_of_last_update_in_msec.value_namespace = name_space;
lwldi_time_of_last_update_in_msec.value_namespace_prefix = name_space_prefix;
}
if(value_path == "pl-time-stamp-type")
{
pl_time_stamp_type = value;
pl_time_stamp_type.value_namespace = name_space;
pl_time_stamp_type.value_namespace_prefix = name_space_prefix;
}
}
void Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::DetailFibEntryInformation::set_filter(const std::string & value_path, YFilter yfilter)
{
if(value_path == "fib-entry-version")
{
fib_entry_version.yfilter = yfilter;
}
if(value_path == "per-prefix-accounting")
{
per_prefix_accounting.yfilter = yfilter;
}
if(value_path == "load-sharing-type")
{
load_sharing_type.yfilter = yfilter;
}
if(value_path == "fib-entry-adjacency-type")
{
fib_entry_adjacency_type.yfilter = yfilter;
}
if(value_path == "fib-protocol-type")
{
fib_protocol_type.yfilter = yfilter;
}
if(value_path == "afi-fib-protocol-type")
{
afi_fib_protocol_type.yfilter = yfilter;
}
if(value_path == "aib-l3-address")
{
aib_l3_address.yfilter = yfilter;
}
if(value_path == "adjacency-address-length")
{
adjacency_address_length.yfilter = yfilter;
}
if(value_path == "adjacency-interface")
{
adjacency_interface.yfilter = yfilter;
}
if(value_path == "fib-special-nh-information-type")
{
fib_special_nh_information_type.yfilter = yfilter;
}
if(value_path == "fib-entry-adjacency-address")
{
fib_entry_adjacency_address.yfilter = yfilter;
}
if(value_path == "fib-entry-adjacency-interface")
{
fib_entry_adjacency_interface.yfilter = yfilter;
}
if(value_path == "packets-through-fib-entry")
{
packets_through_fib_entry.yfilter = yfilter;
}
if(value_path == "bytes-through-fib-entry")
{
bytes_through_fib_entry.yfilter = yfilter;
}
if(value_path == "detailed-prefix-length")
{
detailed_prefix_length.yfilter = yfilter;
}
if(value_path == "prefix-protocol")
{
prefix_protocol.yfilter = yfilter;
}
if(value_path == "precedence-forpackets")
{
precedence_forpackets.yfilter = yfilter;
}
if(value_path == "traffic-index-for-packets")
{
traffic_index_for_packets.yfilter = yfilter;
}
if(value_path == "switch-compontent-id")
{
switch_compontent_id.yfilter = yfilter;
}
if(value_path == "fast-adjacency-flag")
{
fast_adjacency_flag.yfilter = yfilter;
}
if(value_path == "illegal-fast-adjacency-flag")
{
illegal_fast_adjacency_flag.yfilter = yfilter;
}
if(value_path == "remote-adjacency-flag")
{
remote_adjacency_flag.yfilter = yfilter;
}
if(value_path == "bgp-attribute-id")
{
bgp_attribute_id.yfilter = yfilter;
}
if(value_path == "bgp-local-attribute-id")
{
bgp_local_attribute_id.yfilter = yfilter;
}
if(value_path == "bgp-attribute-origin-as")
{
bgp_attribute_origin_as.yfilter = yfilter;
}
if(value_path == "bgp-attribute-next-hop-as")
{
bgp_attribute_next_hop_as.yfilter = yfilter;
}
if(value_path == "path-string")
{
path_string.yfilter = yfilter;
}
if(value_path == "extcom-string")
{
extcom_string.yfilter = yfilter;
}
if(value_path == "com-string")
{
com_string.yfilter = yfilter;
}
if(value_path == "extended-community")
{
extended_community.yfilter = yfilter;
}
if(value_path == "qos-group")
{
qos_group.yfilter = yfilter;
}
if(value_path == "mpls-fec")
{
mpls_fec.yfilter = yfilter;
}
if(value_path == "qppb-qos-group-and-ip-precedence")
{
qppb_qos_group_and_ip_precedence.yfilter = yfilter;
}
if(value_path == "flow-tag")
{
flow_tag.yfilter = yfilter;
}
if(value_path == "forward-class")
{
forward_class.yfilter = yfilter;
}
if(value_path == "pl-time-of-last-update-in-msec")
{
pl_time_of_last_update_in_msec.yfilter = yfilter;
}
if(value_path == "ldi-time-of-last-update-in-msec")
{
ldi_time_of_last_update_in_msec.yfilter = yfilter;
}
if(value_path == "lwldi-time-of-last-update-in-msec")
{
lwldi_time_of_last_update_in_msec.yfilter = yfilter;
}
if(value_path == "pl-time-stamp-type")
{
pl_time_stamp_type.yfilter = yfilter;
}
}
bool Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::DetailFibEntryInformation::has_leaf_or_child_of_name(const std::string & name) const
{
if(name == "loadshare-information" || name == "fib-entry-version" || name == "per-prefix-accounting" || name == "load-sharing-type" || name == "fib-entry-adjacency-type" || name == "fib-protocol-type" || name == "afi-fib-protocol-type" || name == "aib-l3-address" || name == "adjacency-address-length" || name == "adjacency-interface" || name == "fib-special-nh-information-type" || name == "fib-entry-adjacency-address" || name == "fib-entry-adjacency-interface" || name == "packets-through-fib-entry" || name == "bytes-through-fib-entry" || name == "detailed-prefix-length" || name == "prefix-protocol" || name == "precedence-forpackets" || name == "traffic-index-for-packets" || name == "switch-compontent-id" || name == "fast-adjacency-flag" || name == "illegal-fast-adjacency-flag" || name == "remote-adjacency-flag" || name == "bgp-attribute-id" || name == "bgp-local-attribute-id" || name == "bgp-attribute-origin-as" || name == "bgp-attribute-next-hop-as" || name == "path-string" || name == "extcom-string" || name == "com-string" || name == "extended-community" || name == "qos-group" || name == "mpls-fec" || name == "qppb-qos-group-and-ip-precedence" || name == "flow-tag" || name == "forward-class" || name == "pl-time-of-last-update-in-msec" || name == "ldi-time-of-last-update-in-msec" || name == "lwldi-time-of-last-update-in-msec" || name == "pl-time-stamp-type")
return true;
return false;
}
Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::DetailFibEntryInformation::LoadshareInformation::LoadshareInformation()
:
packets_through_load_information{YType::uint64, "packets-through-load-information"},
bytes_through_load_information{YType::uint64, "bytes-through-load-information"},
total_packets_through_load_information{YType::uint64, "total-packets-through-load-information"},
total_bytes_through_load_information{YType::uint64, "total-bytes-through-load-information"},
prefix_of_owner{YType::uint32, "prefix-of-owner"},
mask_length_of_owner{YType::uint32, "mask-length-of-owner"},
load_information_reference_count{YType::uint16, "load-information-reference-count"},
per_dest_load_sharing_flag{YType::boolean, "per-dest-load-sharing-flag"},
load_information_owner_deleted_flag{YType::boolean, "load-information-owner-deleted-flag"},
loadinfo_sanity_flag{YType::boolean, "loadinfo-sanity-flag"},
is_owner{YType::boolean, "is-owner"}
,
load_informtion_internal_data(std::make_shared<Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::DetailFibEntryInformation::LoadshareInformation::LoadInformtionInternalData>())
{
load_informtion_internal_data->parent = this;
yang_name = "loadshare-information"; yang_parent_name = "detail-fib-entry-information"; is_top_level_class = false; has_list_ancestor = true;
}
Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::DetailFibEntryInformation::LoadshareInformation::~LoadshareInformation()
{
}
bool Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::DetailFibEntryInformation::LoadshareInformation::has_data() const
{
if (is_presence_container) return true;
return packets_through_load_information.is_set
|| bytes_through_load_information.is_set
|| total_packets_through_load_information.is_set
|| total_bytes_through_load_information.is_set
|| prefix_of_owner.is_set
|| mask_length_of_owner.is_set
|| load_information_reference_count.is_set
|| per_dest_load_sharing_flag.is_set
|| load_information_owner_deleted_flag.is_set
|| loadinfo_sanity_flag.is_set
|| is_owner.is_set
|| (load_informtion_internal_data != nullptr && load_informtion_internal_data->has_data());
}
bool Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::DetailFibEntryInformation::LoadshareInformation::has_operation() const
{
return is_set(yfilter)
|| ydk::is_set(packets_through_load_information.yfilter)
|| ydk::is_set(bytes_through_load_information.yfilter)
|| ydk::is_set(total_packets_through_load_information.yfilter)
|| ydk::is_set(total_bytes_through_load_information.yfilter)
|| ydk::is_set(prefix_of_owner.yfilter)
|| ydk::is_set(mask_length_of_owner.yfilter)
|| ydk::is_set(load_information_reference_count.yfilter)
|| ydk::is_set(per_dest_load_sharing_flag.yfilter)
|| ydk::is_set(load_information_owner_deleted_flag.yfilter)
|| ydk::is_set(loadinfo_sanity_flag.yfilter)
|| ydk::is_set(is_owner.yfilter)
|| (load_informtion_internal_data != nullptr && load_informtion_internal_data->has_operation());
}
std::string Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::DetailFibEntryInformation::LoadshareInformation::get_segment_path() const
{
std::ostringstream path_buffer;
path_buffer << "loadshare-information";
return path_buffer.str();
}
std::vector<std::pair<std::string, LeafData> > Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::DetailFibEntryInformation::LoadshareInformation::get_name_leaf_data() const
{
std::vector<std::pair<std::string, LeafData> > leaf_name_data {};
if (packets_through_load_information.is_set || is_set(packets_through_load_information.yfilter)) leaf_name_data.push_back(packets_through_load_information.get_name_leafdata());
if (bytes_through_load_information.is_set || is_set(bytes_through_load_information.yfilter)) leaf_name_data.push_back(bytes_through_load_information.get_name_leafdata());
if (total_packets_through_load_information.is_set || is_set(total_packets_through_load_information.yfilter)) leaf_name_data.push_back(total_packets_through_load_information.get_name_leafdata());
if (total_bytes_through_load_information.is_set || is_set(total_bytes_through_load_information.yfilter)) leaf_name_data.push_back(total_bytes_through_load_information.get_name_leafdata());
if (prefix_of_owner.is_set || is_set(prefix_of_owner.yfilter)) leaf_name_data.push_back(prefix_of_owner.get_name_leafdata());
if (mask_length_of_owner.is_set || is_set(mask_length_of_owner.yfilter)) leaf_name_data.push_back(mask_length_of_owner.get_name_leafdata());
if (load_information_reference_count.is_set || is_set(load_information_reference_count.yfilter)) leaf_name_data.push_back(load_information_reference_count.get_name_leafdata());
if (per_dest_load_sharing_flag.is_set || is_set(per_dest_load_sharing_flag.yfilter)) leaf_name_data.push_back(per_dest_load_sharing_flag.get_name_leafdata());
if (load_information_owner_deleted_flag.is_set || is_set(load_information_owner_deleted_flag.yfilter)) leaf_name_data.push_back(load_information_owner_deleted_flag.get_name_leafdata());
if (loadinfo_sanity_flag.is_set || is_set(loadinfo_sanity_flag.yfilter)) leaf_name_data.push_back(loadinfo_sanity_flag.get_name_leafdata());
if (is_owner.is_set || is_set(is_owner.yfilter)) leaf_name_data.push_back(is_owner.get_name_leafdata());
return leaf_name_data;
}
std::shared_ptr<ydk::Entity> Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::DetailFibEntryInformation::LoadshareInformation::get_child_by_name(const std::string & child_yang_name, const std::string & segment_path)
{
if(child_yang_name == "load-informtion-internal-data")
{
if(load_informtion_internal_data == nullptr)
{
load_informtion_internal_data = std::make_shared<Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::DetailFibEntryInformation::LoadshareInformation::LoadInformtionInternalData>();
}
return load_informtion_internal_data;
}
return nullptr;
}
std::map<std::string, std::shared_ptr<ydk::Entity>> Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::DetailFibEntryInformation::LoadshareInformation::get_children() const
{
std::map<std::string, std::shared_ptr<ydk::Entity>> _children{};
char count_=0;
if(load_informtion_internal_data != nullptr)
{
_children["load-informtion-internal-data"] = load_informtion_internal_data;
}
return _children;
}
void Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::DetailFibEntryInformation::LoadshareInformation::set_value(const std::string & value_path, const std::string & value, const std::string & name_space, const std::string & name_space_prefix)
{
if(value_path == "packets-through-load-information")
{
packets_through_load_information = value;
packets_through_load_information.value_namespace = name_space;
packets_through_load_information.value_namespace_prefix = name_space_prefix;
}
if(value_path == "bytes-through-load-information")
{
bytes_through_load_information = value;
bytes_through_load_information.value_namespace = name_space;
bytes_through_load_information.value_namespace_prefix = name_space_prefix;
}
if(value_path == "total-packets-through-load-information")
{
total_packets_through_load_information = value;
total_packets_through_load_information.value_namespace = name_space;
total_packets_through_load_information.value_namespace_prefix = name_space_prefix;
}
if(value_path == "total-bytes-through-load-information")
{
total_bytes_through_load_information = value;
total_bytes_through_load_information.value_namespace = name_space;
total_bytes_through_load_information.value_namespace_prefix = name_space_prefix;
}
if(value_path == "prefix-of-owner")
{
prefix_of_owner = value;
prefix_of_owner.value_namespace = name_space;
prefix_of_owner.value_namespace_prefix = name_space_prefix;
}
if(value_path == "mask-length-of-owner")
{
mask_length_of_owner = value;
mask_length_of_owner.value_namespace = name_space;
mask_length_of_owner.value_namespace_prefix = name_space_prefix;
}
if(value_path == "load-information-reference-count")
{
load_information_reference_count = value;
load_information_reference_count.value_namespace = name_space;
load_information_reference_count.value_namespace_prefix = name_space_prefix;
}
if(value_path == "per-dest-load-sharing-flag")
{
per_dest_load_sharing_flag = value;
per_dest_load_sharing_flag.value_namespace = name_space;
per_dest_load_sharing_flag.value_namespace_prefix = name_space_prefix;
}
if(value_path == "load-information-owner-deleted-flag")
{
load_information_owner_deleted_flag = value;
load_information_owner_deleted_flag.value_namespace = name_space;
load_information_owner_deleted_flag.value_namespace_prefix = name_space_prefix;
}
if(value_path == "loadinfo-sanity-flag")
{
loadinfo_sanity_flag = value;
loadinfo_sanity_flag.value_namespace = name_space;
loadinfo_sanity_flag.value_namespace_prefix = name_space_prefix;
}
if(value_path == "is-owner")
{
is_owner = value;
is_owner.value_namespace = name_space;
is_owner.value_namespace_prefix = name_space_prefix;
}
}
void Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::DetailFibEntryInformation::LoadshareInformation::set_filter(const std::string & value_path, YFilter yfilter)
{
if(value_path == "packets-through-load-information")
{
packets_through_load_information.yfilter = yfilter;
}
if(value_path == "bytes-through-load-information")
{
bytes_through_load_information.yfilter = yfilter;
}
if(value_path == "total-packets-through-load-information")
{
total_packets_through_load_information.yfilter = yfilter;
}
if(value_path == "total-bytes-through-load-information")
{
total_bytes_through_load_information.yfilter = yfilter;
}
if(value_path == "prefix-of-owner")
{
prefix_of_owner.yfilter = yfilter;
}
if(value_path == "mask-length-of-owner")
{
mask_length_of_owner.yfilter = yfilter;
}
if(value_path == "load-information-reference-count")
{
load_information_reference_count.yfilter = yfilter;
}
if(value_path == "per-dest-load-sharing-flag")
{
per_dest_load_sharing_flag.yfilter = yfilter;
}
if(value_path == "load-information-owner-deleted-flag")
{
load_information_owner_deleted_flag.yfilter = yfilter;
}
if(value_path == "loadinfo-sanity-flag")
{
loadinfo_sanity_flag.yfilter = yfilter;
}
if(value_path == "is-owner")
{
is_owner.yfilter = yfilter;
}
}
bool Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::DetailFibEntryInformation::LoadshareInformation::has_leaf_or_child_of_name(const std::string & name) const
{
if(name == "load-informtion-internal-data" || name == "packets-through-load-information" || name == "bytes-through-load-information" || name == "total-packets-through-load-information" || name == "total-bytes-through-load-information" || name == "prefix-of-owner" || name == "mask-length-of-owner" || name == "load-information-reference-count" || name == "per-dest-load-sharing-flag" || name == "load-information-owner-deleted-flag" || name == "loadinfo-sanity-flag" || name == "is-owner")
return true;
return false;
}
Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::DetailFibEntryInformation::LoadshareInformation::LoadInformtionInternalData::LoadInformtionInternalData()
:
level_ofldis{YType::uint8, "level-ofldis"},
number_of_ldis{YType::uint8, "number-of-ldis"},
maximum_index_arrays{YType::uint32, "maximum-index-arrays"},
path_indices{YType::str, "path-indices"},
path_ldi_numbers{YType::str, "path-ldi-numbers"},
maximum_slots{YType::uint32, "maximum-slots"},
normalized_weights{YType::str, "normalized-weights"},
tunnel_class_value{YType::str, "tunnel-class-value"},
is_pbts_info_valid{YType::boolean, "is-pbts-info-valid"},
pbts_class_offset{YType::str, "pbts-class-offset"},
pbts_class_num_paths{YType::str, "pbts-class-num-paths"},
pbts_fallback_mapped_class{YType::str, "pbts-fallback-mapped-class"},
round_robin_disable{YType::boolean, "round-robin-disable"},
ldi_next_hop_buckets{YType::uint8, "ldi-next-hop-buckets"},
platform_hardware_information{YType::str, "platform-hardware-information"}
,
sanity_flag(this, {})
, interface_handle(this, {})
, weights_of_path(this, {})
, adjacency_address(this, {})
, pbts_class_is_fallback_mapped(this, {})
, pbts_fallback_to_drop(this, {})
, tunnel_is_forward_class(this, {})
{
yang_name = "load-informtion-internal-data"; yang_parent_name = "loadshare-information"; is_top_level_class = false; has_list_ancestor = true;
}
Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::DetailFibEntryInformation::LoadshareInformation::LoadInformtionInternalData::~LoadInformtionInternalData()
{
}
bool Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::DetailFibEntryInformation::LoadshareInformation::LoadInformtionInternalData::has_data() const
{
if (is_presence_container) return true;
for (std::size_t index=0; index<sanity_flag.len(); index++)
{
if(sanity_flag[index]->has_data())
return true;
}
for (std::size_t index=0; index<interface_handle.len(); index++)
{
if(interface_handle[index]->has_data())
return true;
}
for (std::size_t index=0; index<weights_of_path.len(); index++)
{
if(weights_of_path[index]->has_data())
return true;
}
for (std::size_t index=0; index<adjacency_address.len(); index++)
{
if(adjacency_address[index]->has_data())
return true;
}
for (std::size_t index=0; index<pbts_class_is_fallback_mapped.len(); index++)
{
if(pbts_class_is_fallback_mapped[index]->has_data())
return true;
}
for (std::size_t index=0; index<pbts_fallback_to_drop.len(); index++)
{
if(pbts_fallback_to_drop[index]->has_data())
return true;
}
for (std::size_t index=0; index<tunnel_is_forward_class.len(); index++)
{
if(tunnel_is_forward_class[index]->has_data())
return true;
}
return level_ofldis.is_set
|| number_of_ldis.is_set
|| maximum_index_arrays.is_set
|| path_indices.is_set
|| path_ldi_numbers.is_set
|| maximum_slots.is_set
|| normalized_weights.is_set
|| tunnel_class_value.is_set
|| is_pbts_info_valid.is_set
|| pbts_class_offset.is_set
|| pbts_class_num_paths.is_set
|| pbts_fallback_mapped_class.is_set
|| round_robin_disable.is_set
|| ldi_next_hop_buckets.is_set
|| platform_hardware_information.is_set;
}
bool Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::DetailFibEntryInformation::LoadshareInformation::LoadInformtionInternalData::has_operation() const
{
for (std::size_t index=0; index<sanity_flag.len(); index++)
{
if(sanity_flag[index]->has_operation())
return true;
}
for (std::size_t index=0; index<interface_handle.len(); index++)
{
if(interface_handle[index]->has_operation())
return true;
}
for (std::size_t index=0; index<weights_of_path.len(); index++)
{
if(weights_of_path[index]->has_operation())
return true;
}
for (std::size_t index=0; index<adjacency_address.len(); index++)
{
if(adjacency_address[index]->has_operation())
return true;
}
for (std::size_t index=0; index<pbts_class_is_fallback_mapped.len(); index++)
{
if(pbts_class_is_fallback_mapped[index]->has_operation())
return true;
}
for (std::size_t index=0; index<pbts_fallback_to_drop.len(); index++)
{
if(pbts_fallback_to_drop[index]->has_operation())
return true;
}
for (std::size_t index=0; index<tunnel_is_forward_class.len(); index++)
{
if(tunnel_is_forward_class[index]->has_operation())
return true;
}
return is_set(yfilter)
|| ydk::is_set(level_ofldis.yfilter)
|| ydk::is_set(number_of_ldis.yfilter)
|| ydk::is_set(maximum_index_arrays.yfilter)
|| ydk::is_set(path_indices.yfilter)
|| ydk::is_set(path_ldi_numbers.yfilter)
|| ydk::is_set(maximum_slots.yfilter)
|| ydk::is_set(normalized_weights.yfilter)
|| ydk::is_set(tunnel_class_value.yfilter)
|| ydk::is_set(is_pbts_info_valid.yfilter)
|| ydk::is_set(pbts_class_offset.yfilter)
|| ydk::is_set(pbts_class_num_paths.yfilter)
|| ydk::is_set(pbts_fallback_mapped_class.yfilter)
|| ydk::is_set(round_robin_disable.yfilter)
|| ydk::is_set(ldi_next_hop_buckets.yfilter)
|| ydk::is_set(platform_hardware_information.yfilter);
}
std::string Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::DetailFibEntryInformation::LoadshareInformation::LoadInformtionInternalData::get_segment_path() const
{
std::ostringstream path_buffer;
path_buffer << "load-informtion-internal-data";
return path_buffer.str();
}
std::vector<std::pair<std::string, LeafData> > Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::DetailFibEntryInformation::LoadshareInformation::LoadInformtionInternalData::get_name_leaf_data() const
{
std::vector<std::pair<std::string, LeafData> > leaf_name_data {};
if (level_ofldis.is_set || is_set(level_ofldis.yfilter)) leaf_name_data.push_back(level_ofldis.get_name_leafdata());
if (number_of_ldis.is_set || is_set(number_of_ldis.yfilter)) leaf_name_data.push_back(number_of_ldis.get_name_leafdata());
if (maximum_index_arrays.is_set || is_set(maximum_index_arrays.yfilter)) leaf_name_data.push_back(maximum_index_arrays.get_name_leafdata());
if (path_indices.is_set || is_set(path_indices.yfilter)) leaf_name_data.push_back(path_indices.get_name_leafdata());
if (path_ldi_numbers.is_set || is_set(path_ldi_numbers.yfilter)) leaf_name_data.push_back(path_ldi_numbers.get_name_leafdata());
if (maximum_slots.is_set || is_set(maximum_slots.yfilter)) leaf_name_data.push_back(maximum_slots.get_name_leafdata());
if (normalized_weights.is_set || is_set(normalized_weights.yfilter)) leaf_name_data.push_back(normalized_weights.get_name_leafdata());
if (tunnel_class_value.is_set || is_set(tunnel_class_value.yfilter)) leaf_name_data.push_back(tunnel_class_value.get_name_leafdata());
if (is_pbts_info_valid.is_set || is_set(is_pbts_info_valid.yfilter)) leaf_name_data.push_back(is_pbts_info_valid.get_name_leafdata());
if (pbts_class_offset.is_set || is_set(pbts_class_offset.yfilter)) leaf_name_data.push_back(pbts_class_offset.get_name_leafdata());
if (pbts_class_num_paths.is_set || is_set(pbts_class_num_paths.yfilter)) leaf_name_data.push_back(pbts_class_num_paths.get_name_leafdata());
if (pbts_fallback_mapped_class.is_set || is_set(pbts_fallback_mapped_class.yfilter)) leaf_name_data.push_back(pbts_fallback_mapped_class.get_name_leafdata());
if (round_robin_disable.is_set || is_set(round_robin_disable.yfilter)) leaf_name_data.push_back(round_robin_disable.get_name_leafdata());
if (ldi_next_hop_buckets.is_set || is_set(ldi_next_hop_buckets.yfilter)) leaf_name_data.push_back(ldi_next_hop_buckets.get_name_leafdata());
if (platform_hardware_information.is_set || is_set(platform_hardware_information.yfilter)) leaf_name_data.push_back(platform_hardware_information.get_name_leafdata());
return leaf_name_data;
}
std::shared_ptr<ydk::Entity> Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::DetailFibEntryInformation::LoadshareInformation::LoadInformtionInternalData::get_child_by_name(const std::string & child_yang_name, const std::string & segment_path)
{
if(child_yang_name == "sanity-flag")
{
auto ent_ = std::make_shared<Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::DetailFibEntryInformation::LoadshareInformation::LoadInformtionInternalData::SanityFlag>();
ent_->parent = this;
sanity_flag.append(ent_);
return ent_;
}
if(child_yang_name == "interface-handle")
{
auto ent_ = std::make_shared<Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::DetailFibEntryInformation::LoadshareInformation::LoadInformtionInternalData::InterfaceHandle>();
ent_->parent = this;
interface_handle.append(ent_);
return ent_;
}
if(child_yang_name == "weights-of-path")
{
auto ent_ = std::make_shared<Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::DetailFibEntryInformation::LoadshareInformation::LoadInformtionInternalData::WeightsOfPath>();
ent_->parent = this;
weights_of_path.append(ent_);
return ent_;
}
if(child_yang_name == "adjacency-address")
{
auto ent_ = std::make_shared<Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::DetailFibEntryInformation::LoadshareInformation::LoadInformtionInternalData::AdjacencyAddress>();
ent_->parent = this;
adjacency_address.append(ent_);
return ent_;
}
if(child_yang_name == "pbts-class-is-fallback-mapped")
{
auto ent_ = std::make_shared<Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::DetailFibEntryInformation::LoadshareInformation::LoadInformtionInternalData::PbtsClassIsFallbackMapped>();
ent_->parent = this;
pbts_class_is_fallback_mapped.append(ent_);
return ent_;
}
if(child_yang_name == "pbts-fallback-to-drop")
{
auto ent_ = std::make_shared<Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::DetailFibEntryInformation::LoadshareInformation::LoadInformtionInternalData::PbtsFallbackToDrop>();
ent_->parent = this;
pbts_fallback_to_drop.append(ent_);
return ent_;
}
if(child_yang_name == "tunnel-is-forward-class")
{
auto ent_ = std::make_shared<Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::DetailFibEntryInformation::LoadshareInformation::LoadInformtionInternalData::TunnelIsForwardClass>();
ent_->parent = this;
tunnel_is_forward_class.append(ent_);
return ent_;
}
return nullptr;
}
std::map<std::string, std::shared_ptr<ydk::Entity>> Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::DetailFibEntryInformation::LoadshareInformation::LoadInformtionInternalData::get_children() const
{
std::map<std::string, std::shared_ptr<ydk::Entity>> _children{};
char count_=0;
count_ = 0;
for (auto ent_ : sanity_flag.entities())
{
if(_children.find(ent_->get_segment_path()) == _children.end())
_children[ent_->get_segment_path()] = ent_;
else
_children[ent_->get_segment_path()+count_++] = ent_;
}
count_ = 0;
for (auto ent_ : interface_handle.entities())
{
if(_children.find(ent_->get_segment_path()) == _children.end())
_children[ent_->get_segment_path()] = ent_;
else
_children[ent_->get_segment_path()+count_++] = ent_;
}
count_ = 0;
for (auto ent_ : weights_of_path.entities())
{
if(_children.find(ent_->get_segment_path()) == _children.end())
_children[ent_->get_segment_path()] = ent_;
else
_children[ent_->get_segment_path()+count_++] = ent_;
}
count_ = 0;
for (auto ent_ : adjacency_address.entities())
{
if(_children.find(ent_->get_segment_path()) == _children.end())
_children[ent_->get_segment_path()] = ent_;
else
_children[ent_->get_segment_path()+count_++] = ent_;
}
count_ = 0;
for (auto ent_ : pbts_class_is_fallback_mapped.entities())
{
if(_children.find(ent_->get_segment_path()) == _children.end())
_children[ent_->get_segment_path()] = ent_;
else
_children[ent_->get_segment_path()+count_++] = ent_;
}
count_ = 0;
for (auto ent_ : pbts_fallback_to_drop.entities())
{
if(_children.find(ent_->get_segment_path()) == _children.end())
_children[ent_->get_segment_path()] = ent_;
else
_children[ent_->get_segment_path()+count_++] = ent_;
}
count_ = 0;
for (auto ent_ : tunnel_is_forward_class.entities())
{
if(_children.find(ent_->get_segment_path()) == _children.end())
_children[ent_->get_segment_path()] = ent_;
else
_children[ent_->get_segment_path()+count_++] = ent_;
}
return _children;
}
void Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::DetailFibEntryInformation::LoadshareInformation::LoadInformtionInternalData::set_value(const std::string & value_path, const std::string & value, const std::string & name_space, const std::string & name_space_prefix)
{
if(value_path == "level-ofldis")
{
level_ofldis = value;
level_ofldis.value_namespace = name_space;
level_ofldis.value_namespace_prefix = name_space_prefix;
}
if(value_path == "number-of-ldis")
{
number_of_ldis = value;
number_of_ldis.value_namespace = name_space;
number_of_ldis.value_namespace_prefix = name_space_prefix;
}
if(value_path == "maximum-index-arrays")
{
maximum_index_arrays = value;
maximum_index_arrays.value_namespace = name_space;
maximum_index_arrays.value_namespace_prefix = name_space_prefix;
}
if(value_path == "path-indices")
{
path_indices = value;
path_indices.value_namespace = name_space;
path_indices.value_namespace_prefix = name_space_prefix;
}
if(value_path == "path-ldi-numbers")
{
path_ldi_numbers = value;
path_ldi_numbers.value_namespace = name_space;
path_ldi_numbers.value_namespace_prefix = name_space_prefix;
}
if(value_path == "maximum-slots")
{
maximum_slots = value;
maximum_slots.value_namespace = name_space;
maximum_slots.value_namespace_prefix = name_space_prefix;
}
if(value_path == "normalized-weights")
{
normalized_weights = value;
normalized_weights.value_namespace = name_space;
normalized_weights.value_namespace_prefix = name_space_prefix;
}
if(value_path == "tunnel-class-value")
{
tunnel_class_value = value;
tunnel_class_value.value_namespace = name_space;
tunnel_class_value.value_namespace_prefix = name_space_prefix;
}
if(value_path == "is-pbts-info-valid")
{
is_pbts_info_valid = value;
is_pbts_info_valid.value_namespace = name_space;
is_pbts_info_valid.value_namespace_prefix = name_space_prefix;
}
if(value_path == "pbts-class-offset")
{
pbts_class_offset = value;
pbts_class_offset.value_namespace = name_space;
pbts_class_offset.value_namespace_prefix = name_space_prefix;
}
if(value_path == "pbts-class-num-paths")
{
pbts_class_num_paths = value;
pbts_class_num_paths.value_namespace = name_space;
pbts_class_num_paths.value_namespace_prefix = name_space_prefix;
}
if(value_path == "pbts-fallback-mapped-class")
{
pbts_fallback_mapped_class = value;
pbts_fallback_mapped_class.value_namespace = name_space;
pbts_fallback_mapped_class.value_namespace_prefix = name_space_prefix;
}
if(value_path == "round-robin-disable")
{
round_robin_disable = value;
round_robin_disable.value_namespace = name_space;
round_robin_disable.value_namespace_prefix = name_space_prefix;
}
if(value_path == "ldi-next-hop-buckets")
{
ldi_next_hop_buckets = value;
ldi_next_hop_buckets.value_namespace = name_space;
ldi_next_hop_buckets.value_namespace_prefix = name_space_prefix;
}
if(value_path == "platform-hardware-information")
{
platform_hardware_information = value;
platform_hardware_information.value_namespace = name_space;
platform_hardware_information.value_namespace_prefix = name_space_prefix;
}
}
void Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::DetailFibEntryInformation::LoadshareInformation::LoadInformtionInternalData::set_filter(const std::string & value_path, YFilter yfilter)
{
if(value_path == "level-ofldis")
{
level_ofldis.yfilter = yfilter;
}
if(value_path == "number-of-ldis")
{
number_of_ldis.yfilter = yfilter;
}
if(value_path == "maximum-index-arrays")
{
maximum_index_arrays.yfilter = yfilter;
}
if(value_path == "path-indices")
{
path_indices.yfilter = yfilter;
}
if(value_path == "path-ldi-numbers")
{
path_ldi_numbers.yfilter = yfilter;
}
if(value_path == "maximum-slots")
{
maximum_slots.yfilter = yfilter;
}
if(value_path == "normalized-weights")
{
normalized_weights.yfilter = yfilter;
}
if(value_path == "tunnel-class-value")
{
tunnel_class_value.yfilter = yfilter;
}
if(value_path == "is-pbts-info-valid")
{
is_pbts_info_valid.yfilter = yfilter;
}
if(value_path == "pbts-class-offset")
{
pbts_class_offset.yfilter = yfilter;
}
if(value_path == "pbts-class-num-paths")
{
pbts_class_num_paths.yfilter = yfilter;
}
if(value_path == "pbts-fallback-mapped-class")
{
pbts_fallback_mapped_class.yfilter = yfilter;
}
if(value_path == "round-robin-disable")
{
round_robin_disable.yfilter = yfilter;
}
if(value_path == "ldi-next-hop-buckets")
{
ldi_next_hop_buckets.yfilter = yfilter;
}
if(value_path == "platform-hardware-information")
{
platform_hardware_information.yfilter = yfilter;
}
}
bool Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::DetailFibEntryInformation::LoadshareInformation::LoadInformtionInternalData::has_leaf_or_child_of_name(const std::string & name) const
{
if(name == "sanity-flag" || name == "interface-handle" || name == "weights-of-path" || name == "adjacency-address" || name == "pbts-class-is-fallback-mapped" || name == "pbts-fallback-to-drop" || name == "tunnel-is-forward-class" || name == "level-ofldis" || name == "number-of-ldis" || name == "maximum-index-arrays" || name == "path-indices" || name == "path-ldi-numbers" || name == "maximum-slots" || name == "normalized-weights" || name == "tunnel-class-value" || name == "is-pbts-info-valid" || name == "pbts-class-offset" || name == "pbts-class-num-paths" || name == "pbts-fallback-mapped-class" || name == "round-robin-disable" || name == "ldi-next-hop-buckets" || name == "platform-hardware-information")
return true;
return false;
}
Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::DetailFibEntryInformation::LoadshareInformation::LoadInformtionInternalData::SanityFlag::SanityFlag()
:
entry{YType::boolean, "entry"}
{
yang_name = "sanity-flag"; yang_parent_name = "load-informtion-internal-data"; is_top_level_class = false; has_list_ancestor = true;
}
Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::DetailFibEntryInformation::LoadshareInformation::LoadInformtionInternalData::SanityFlag::~SanityFlag()
{
}
bool Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::DetailFibEntryInformation::LoadshareInformation::LoadInformtionInternalData::SanityFlag::has_data() const
{
if (is_presence_container) return true;
return entry.is_set;
}
bool Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::DetailFibEntryInformation::LoadshareInformation::LoadInformtionInternalData::SanityFlag::has_operation() const
{
return is_set(yfilter)
|| ydk::is_set(entry.yfilter);
}
std::string Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::DetailFibEntryInformation::LoadshareInformation::LoadInformtionInternalData::SanityFlag::get_segment_path() const
{
std::ostringstream path_buffer;
path_buffer << "sanity-flag";
path_buffer << "[" << get_ylist_key() << "]";
return path_buffer.str();
}
std::vector<std::pair<std::string, LeafData> > Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::DetailFibEntryInformation::LoadshareInformation::LoadInformtionInternalData::SanityFlag::get_name_leaf_data() const
{
std::vector<std::pair<std::string, LeafData> > leaf_name_data {};
if (entry.is_set || is_set(entry.yfilter)) leaf_name_data.push_back(entry.get_name_leafdata());
return leaf_name_data;
}
std::shared_ptr<ydk::Entity> Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::DetailFibEntryInformation::LoadshareInformation::LoadInformtionInternalData::SanityFlag::get_child_by_name(const std::string & child_yang_name, const std::string & segment_path)
{
return nullptr;
}
std::map<std::string, std::shared_ptr<ydk::Entity>> Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::DetailFibEntryInformation::LoadshareInformation::LoadInformtionInternalData::SanityFlag::get_children() const
{
std::map<std::string, std::shared_ptr<ydk::Entity>> _children{};
char count_=0;
return _children;
}
void Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::DetailFibEntryInformation::LoadshareInformation::LoadInformtionInternalData::SanityFlag::set_value(const std::string & value_path, const std::string & value, const std::string & name_space, const std::string & name_space_prefix)
{
if(value_path == "entry")
{
entry = value;
entry.value_namespace = name_space;
entry.value_namespace_prefix = name_space_prefix;
}
}
void Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::DetailFibEntryInformation::LoadshareInformation::LoadInformtionInternalData::SanityFlag::set_filter(const std::string & value_path, YFilter yfilter)
{
if(value_path == "entry")
{
entry.yfilter = yfilter;
}
}
bool Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::DetailFibEntryInformation::LoadshareInformation::LoadInformtionInternalData::SanityFlag::has_leaf_or_child_of_name(const std::string & name) const
{
if(name == "entry")
return true;
return false;
}
Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::DetailFibEntryInformation::LoadshareInformation::LoadInformtionInternalData::InterfaceHandle::InterfaceHandle()
:
entry{YType::str, "entry"}
{
yang_name = "interface-handle"; yang_parent_name = "load-informtion-internal-data"; is_top_level_class = false; has_list_ancestor = true;
}
Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::DetailFibEntryInformation::LoadshareInformation::LoadInformtionInternalData::InterfaceHandle::~InterfaceHandle()
{
}
bool Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::DetailFibEntryInformation::LoadshareInformation::LoadInformtionInternalData::InterfaceHandle::has_data() const
{
if (is_presence_container) return true;
return entry.is_set;
}
bool Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::DetailFibEntryInformation::LoadshareInformation::LoadInformtionInternalData::InterfaceHandle::has_operation() const
{
return is_set(yfilter)
|| ydk::is_set(entry.yfilter);
}
std::string Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::DetailFibEntryInformation::LoadshareInformation::LoadInformtionInternalData::InterfaceHandle::get_segment_path() const
{
std::ostringstream path_buffer;
path_buffer << "interface-handle";
path_buffer << "[" << get_ylist_key() << "]";
return path_buffer.str();
}
std::vector<std::pair<std::string, LeafData> > Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::DetailFibEntryInformation::LoadshareInformation::LoadInformtionInternalData::InterfaceHandle::get_name_leaf_data() const
{
std::vector<std::pair<std::string, LeafData> > leaf_name_data {};
if (entry.is_set || is_set(entry.yfilter)) leaf_name_data.push_back(entry.get_name_leafdata());
return leaf_name_data;
}
std::shared_ptr<ydk::Entity> Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::DetailFibEntryInformation::LoadshareInformation::LoadInformtionInternalData::InterfaceHandle::get_child_by_name(const std::string & child_yang_name, const std::string & segment_path)
{
return nullptr;
}
std::map<std::string, std::shared_ptr<ydk::Entity>> Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::DetailFibEntryInformation::LoadshareInformation::LoadInformtionInternalData::InterfaceHandle::get_children() const
{
std::map<std::string, std::shared_ptr<ydk::Entity>> _children{};
char count_=0;
return _children;
}
void Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::DetailFibEntryInformation::LoadshareInformation::LoadInformtionInternalData::InterfaceHandle::set_value(const std::string & value_path, const std::string & value, const std::string & name_space, const std::string & name_space_prefix)
{
if(value_path == "entry")
{
entry = value;
entry.value_namespace = name_space;
entry.value_namespace_prefix = name_space_prefix;
}
}
void Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::DetailFibEntryInformation::LoadshareInformation::LoadInformtionInternalData::InterfaceHandle::set_filter(const std::string & value_path, YFilter yfilter)
{
if(value_path == "entry")
{
entry.yfilter = yfilter;
}
}
bool Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::DetailFibEntryInformation::LoadshareInformation::LoadInformtionInternalData::InterfaceHandle::has_leaf_or_child_of_name(const std::string & name) const
{
if(name == "entry")
return true;
return false;
}
Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::DetailFibEntryInformation::LoadshareInformation::LoadInformtionInternalData::WeightsOfPath::WeightsOfPath()
:
entry{YType::uint32, "entry"}
{
yang_name = "weights-of-path"; yang_parent_name = "load-informtion-internal-data"; is_top_level_class = false; has_list_ancestor = true;
}
Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::DetailFibEntryInformation::LoadshareInformation::LoadInformtionInternalData::WeightsOfPath::~WeightsOfPath()
{
}
bool Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::DetailFibEntryInformation::LoadshareInformation::LoadInformtionInternalData::WeightsOfPath::has_data() const
{
if (is_presence_container) return true;
return entry.is_set;
}
bool Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::DetailFibEntryInformation::LoadshareInformation::LoadInformtionInternalData::WeightsOfPath::has_operation() const
{
return is_set(yfilter)
|| ydk::is_set(entry.yfilter);
}
std::string Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::DetailFibEntryInformation::LoadshareInformation::LoadInformtionInternalData::WeightsOfPath::get_segment_path() const
{
std::ostringstream path_buffer;
path_buffer << "weights-of-path";
path_buffer << "[" << get_ylist_key() << "]";
return path_buffer.str();
}
std::vector<std::pair<std::string, LeafData> > Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::DetailFibEntryInformation::LoadshareInformation::LoadInformtionInternalData::WeightsOfPath::get_name_leaf_data() const
{
std::vector<std::pair<std::string, LeafData> > leaf_name_data {};
if (entry.is_set || is_set(entry.yfilter)) leaf_name_data.push_back(entry.get_name_leafdata());
return leaf_name_data;
}
std::shared_ptr<ydk::Entity> Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::DetailFibEntryInformation::LoadshareInformation::LoadInformtionInternalData::WeightsOfPath::get_child_by_name(const std::string & child_yang_name, const std::string & segment_path)
{
return nullptr;
}
std::map<std::string, std::shared_ptr<ydk::Entity>> Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::DetailFibEntryInformation::LoadshareInformation::LoadInformtionInternalData::WeightsOfPath::get_children() const
{
std::map<std::string, std::shared_ptr<ydk::Entity>> _children{};
char count_=0;
return _children;
}
void Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::DetailFibEntryInformation::LoadshareInformation::LoadInformtionInternalData::WeightsOfPath::set_value(const std::string & value_path, const std::string & value, const std::string & name_space, const std::string & name_space_prefix)
{
if(value_path == "entry")
{
entry = value;
entry.value_namespace = name_space;
entry.value_namespace_prefix = name_space_prefix;
}
}
void Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::DetailFibEntryInformation::LoadshareInformation::LoadInformtionInternalData::WeightsOfPath::set_filter(const std::string & value_path, YFilter yfilter)
{
if(value_path == "entry")
{
entry.yfilter = yfilter;
}
}
bool Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::DetailFibEntryInformation::LoadshareInformation::LoadInformtionInternalData::WeightsOfPath::has_leaf_or_child_of_name(const std::string & name) const
{
if(name == "entry")
return true;
return false;
}
Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::DetailFibEntryInformation::LoadshareInformation::LoadInformtionInternalData::AdjacencyAddress::AdjacencyAddress()
:
address{YType::str, "address"}
{
yang_name = "adjacency-address"; yang_parent_name = "load-informtion-internal-data"; is_top_level_class = false; has_list_ancestor = true;
}
Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::DetailFibEntryInformation::LoadshareInformation::LoadInformtionInternalData::AdjacencyAddress::~AdjacencyAddress()
{
}
bool Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::DetailFibEntryInformation::LoadshareInformation::LoadInformtionInternalData::AdjacencyAddress::has_data() const
{
if (is_presence_container) return true;
return address.is_set;
}
bool Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::DetailFibEntryInformation::LoadshareInformation::LoadInformtionInternalData::AdjacencyAddress::has_operation() const
{
return is_set(yfilter)
|| ydk::is_set(address.yfilter);
}
std::string Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::DetailFibEntryInformation::LoadshareInformation::LoadInformtionInternalData::AdjacencyAddress::get_segment_path() const
{
std::ostringstream path_buffer;
path_buffer << "adjacency-address";
path_buffer << "[" << get_ylist_key() << "]";
return path_buffer.str();
}
std::vector<std::pair<std::string, LeafData> > Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::DetailFibEntryInformation::LoadshareInformation::LoadInformtionInternalData::AdjacencyAddress::get_name_leaf_data() const
{
std::vector<std::pair<std::string, LeafData> > leaf_name_data {};
if (address.is_set || is_set(address.yfilter)) leaf_name_data.push_back(address.get_name_leafdata());
return leaf_name_data;
}
std::shared_ptr<ydk::Entity> Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::DetailFibEntryInformation::LoadshareInformation::LoadInformtionInternalData::AdjacencyAddress::get_child_by_name(const std::string & child_yang_name, const std::string & segment_path)
{
return nullptr;
}
std::map<std::string, std::shared_ptr<ydk::Entity>> Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::DetailFibEntryInformation::LoadshareInformation::LoadInformtionInternalData::AdjacencyAddress::get_children() const
{
std::map<std::string, std::shared_ptr<ydk::Entity>> _children{};
char count_=0;
return _children;
}
void Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::DetailFibEntryInformation::LoadshareInformation::LoadInformtionInternalData::AdjacencyAddress::set_value(const std::string & value_path, const std::string & value, const std::string & name_space, const std::string & name_space_prefix)
{
if(value_path == "address")
{
address = value;
address.value_namespace = name_space;
address.value_namespace_prefix = name_space_prefix;
}
}
void Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::DetailFibEntryInformation::LoadshareInformation::LoadInformtionInternalData::AdjacencyAddress::set_filter(const std::string & value_path, YFilter yfilter)
{
if(value_path == "address")
{
address.yfilter = yfilter;
}
}
bool Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::DetailFibEntryInformation::LoadshareInformation::LoadInformtionInternalData::AdjacencyAddress::has_leaf_or_child_of_name(const std::string & name) const
{
if(name == "address")
return true;
return false;
}
Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::DetailFibEntryInformation::LoadshareInformation::LoadInformtionInternalData::PbtsClassIsFallbackMapped::PbtsClassIsFallbackMapped()
:
entry{YType::boolean, "entry"}
{
yang_name = "pbts-class-is-fallback-mapped"; yang_parent_name = "load-informtion-internal-data"; is_top_level_class = false; has_list_ancestor = true;
}
Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::DetailFibEntryInformation::LoadshareInformation::LoadInformtionInternalData::PbtsClassIsFallbackMapped::~PbtsClassIsFallbackMapped()
{
}
bool Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::DetailFibEntryInformation::LoadshareInformation::LoadInformtionInternalData::PbtsClassIsFallbackMapped::has_data() const
{
if (is_presence_container) return true;
return entry.is_set;
}
bool Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::DetailFibEntryInformation::LoadshareInformation::LoadInformtionInternalData::PbtsClassIsFallbackMapped::has_operation() const
{
return is_set(yfilter)
|| ydk::is_set(entry.yfilter);
}
std::string Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::DetailFibEntryInformation::LoadshareInformation::LoadInformtionInternalData::PbtsClassIsFallbackMapped::get_segment_path() const
{
std::ostringstream path_buffer;
path_buffer << "pbts-class-is-fallback-mapped";
path_buffer << "[" << get_ylist_key() << "]";
return path_buffer.str();
}
std::vector<std::pair<std::string, LeafData> > Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::DetailFibEntryInformation::LoadshareInformation::LoadInformtionInternalData::PbtsClassIsFallbackMapped::get_name_leaf_data() const
{
std::vector<std::pair<std::string, LeafData> > leaf_name_data {};
if (entry.is_set || is_set(entry.yfilter)) leaf_name_data.push_back(entry.get_name_leafdata());
return leaf_name_data;
}
std::shared_ptr<ydk::Entity> Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::DetailFibEntryInformation::LoadshareInformation::LoadInformtionInternalData::PbtsClassIsFallbackMapped::get_child_by_name(const std::string & child_yang_name, const std::string & segment_path)
{
return nullptr;
}
std::map<std::string, std::shared_ptr<ydk::Entity>> Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::DetailFibEntryInformation::LoadshareInformation::LoadInformtionInternalData::PbtsClassIsFallbackMapped::get_children() const
{
std::map<std::string, std::shared_ptr<ydk::Entity>> _children{};
char count_=0;
return _children;
}
void Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::DetailFibEntryInformation::LoadshareInformation::LoadInformtionInternalData::PbtsClassIsFallbackMapped::set_value(const std::string & value_path, const std::string & value, const std::string & name_space, const std::string & name_space_prefix)
{
if(value_path == "entry")
{
entry = value;
entry.value_namespace = name_space;
entry.value_namespace_prefix = name_space_prefix;
}
}
void Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::DetailFibEntryInformation::LoadshareInformation::LoadInformtionInternalData::PbtsClassIsFallbackMapped::set_filter(const std::string & value_path, YFilter yfilter)
{
if(value_path == "entry")
{
entry.yfilter = yfilter;
}
}
bool Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::DetailFibEntryInformation::LoadshareInformation::LoadInformtionInternalData::PbtsClassIsFallbackMapped::has_leaf_or_child_of_name(const std::string & name) const
{
if(name == "entry")
return true;
return false;
}
Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::DetailFibEntryInformation::LoadshareInformation::LoadInformtionInternalData::PbtsFallbackToDrop::PbtsFallbackToDrop()
:
entry{YType::boolean, "entry"}
{
yang_name = "pbts-fallback-to-drop"; yang_parent_name = "load-informtion-internal-data"; is_top_level_class = false; has_list_ancestor = true;
}
Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::DetailFibEntryInformation::LoadshareInformation::LoadInformtionInternalData::PbtsFallbackToDrop::~PbtsFallbackToDrop()
{
}
bool Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::DetailFibEntryInformation::LoadshareInformation::LoadInformtionInternalData::PbtsFallbackToDrop::has_data() const
{
if (is_presence_container) return true;
return entry.is_set;
}
bool Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::DetailFibEntryInformation::LoadshareInformation::LoadInformtionInternalData::PbtsFallbackToDrop::has_operation() const
{
return is_set(yfilter)
|| ydk::is_set(entry.yfilter);
}
std::string Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::DetailFibEntryInformation::LoadshareInformation::LoadInformtionInternalData::PbtsFallbackToDrop::get_segment_path() const
{
std::ostringstream path_buffer;
path_buffer << "pbts-fallback-to-drop";
path_buffer << "[" << get_ylist_key() << "]";
return path_buffer.str();
}
std::vector<std::pair<std::string, LeafData> > Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::DetailFibEntryInformation::LoadshareInformation::LoadInformtionInternalData::PbtsFallbackToDrop::get_name_leaf_data() const
{
std::vector<std::pair<std::string, LeafData> > leaf_name_data {};
if (entry.is_set || is_set(entry.yfilter)) leaf_name_data.push_back(entry.get_name_leafdata());
return leaf_name_data;
}
std::shared_ptr<ydk::Entity> Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::DetailFibEntryInformation::LoadshareInformation::LoadInformtionInternalData::PbtsFallbackToDrop::get_child_by_name(const std::string & child_yang_name, const std::string & segment_path)
{
return nullptr;
}
std::map<std::string, std::shared_ptr<ydk::Entity>> Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::DetailFibEntryInformation::LoadshareInformation::LoadInformtionInternalData::PbtsFallbackToDrop::get_children() const
{
std::map<std::string, std::shared_ptr<ydk::Entity>> _children{};
char count_=0;
return _children;
}
void Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::DetailFibEntryInformation::LoadshareInformation::LoadInformtionInternalData::PbtsFallbackToDrop::set_value(const std::string & value_path, const std::string & value, const std::string & name_space, const std::string & name_space_prefix)
{
if(value_path == "entry")
{
entry = value;
entry.value_namespace = name_space;
entry.value_namespace_prefix = name_space_prefix;
}
}
void Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::DetailFibEntryInformation::LoadshareInformation::LoadInformtionInternalData::PbtsFallbackToDrop::set_filter(const std::string & value_path, YFilter yfilter)
{
if(value_path == "entry")
{
entry.yfilter = yfilter;
}
}
bool Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::DetailFibEntryInformation::LoadshareInformation::LoadInformtionInternalData::PbtsFallbackToDrop::has_leaf_or_child_of_name(const std::string & name) const
{
if(name == "entry")
return true;
return false;
}
Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::DetailFibEntryInformation::LoadshareInformation::LoadInformtionInternalData::TunnelIsForwardClass::TunnelIsForwardClass()
:
entry{YType::boolean, "entry"}
{
yang_name = "tunnel-is-forward-class"; yang_parent_name = "load-informtion-internal-data"; is_top_level_class = false; has_list_ancestor = true;
}
Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::DetailFibEntryInformation::LoadshareInformation::LoadInformtionInternalData::TunnelIsForwardClass::~TunnelIsForwardClass()
{
}
bool Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::DetailFibEntryInformation::LoadshareInformation::LoadInformtionInternalData::TunnelIsForwardClass::has_data() const
{
if (is_presence_container) return true;
return entry.is_set;
}
bool Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::DetailFibEntryInformation::LoadshareInformation::LoadInformtionInternalData::TunnelIsForwardClass::has_operation() const
{
return is_set(yfilter)
|| ydk::is_set(entry.yfilter);
}
std::string Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::DetailFibEntryInformation::LoadshareInformation::LoadInformtionInternalData::TunnelIsForwardClass::get_segment_path() const
{
std::ostringstream path_buffer;
path_buffer << "tunnel-is-forward-class";
path_buffer << "[" << get_ylist_key() << "]";
return path_buffer.str();
}
std::vector<std::pair<std::string, LeafData> > Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::DetailFibEntryInformation::LoadshareInformation::LoadInformtionInternalData::TunnelIsForwardClass::get_name_leaf_data() const
{
std::vector<std::pair<std::string, LeafData> > leaf_name_data {};
if (entry.is_set || is_set(entry.yfilter)) leaf_name_data.push_back(entry.get_name_leafdata());
return leaf_name_data;
}
std::shared_ptr<ydk::Entity> Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::DetailFibEntryInformation::LoadshareInformation::LoadInformtionInternalData::TunnelIsForwardClass::get_child_by_name(const std::string & child_yang_name, const std::string & segment_path)
{
return nullptr;
}
std::map<std::string, std::shared_ptr<ydk::Entity>> Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::DetailFibEntryInformation::LoadshareInformation::LoadInformtionInternalData::TunnelIsForwardClass::get_children() const
{
std::map<std::string, std::shared_ptr<ydk::Entity>> _children{};
char count_=0;
return _children;
}
void Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::DetailFibEntryInformation::LoadshareInformation::LoadInformtionInternalData::TunnelIsForwardClass::set_value(const std::string & value_path, const std::string & value, const std::string & name_space, const std::string & name_space_prefix)
{
if(value_path == "entry")
{
entry = value;
entry.value_namespace = name_space;
entry.value_namespace_prefix = name_space_prefix;
}
}
void Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::DetailFibEntryInformation::LoadshareInformation::LoadInformtionInternalData::TunnelIsForwardClass::set_filter(const std::string & value_path, YFilter yfilter)
{
if(value_path == "entry")
{
entry.yfilter = yfilter;
}
}
bool Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::DetailFibEntryInformation::LoadshareInformation::LoadInformtionInternalData::TunnelIsForwardClass::has_leaf_or_child_of_name(const std::string & name) const
{
if(name == "entry")
return true;
return false;
}
Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::FibEntryPath::FibEntryPath()
:
fib_sh_tbl_path(this, {})
{
yang_name = "fib-entry-path"; yang_parent_name = "exact-route"; is_top_level_class = false; has_list_ancestor = true;
}
Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::FibEntryPath::~FibEntryPath()
{
}
bool Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::FibEntryPath::has_data() const
{
if (is_presence_container) return true;
for (std::size_t index=0; index<fib_sh_tbl_path.len(); index++)
{
if(fib_sh_tbl_path[index]->has_data())
return true;
}
return false;
}
bool Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::FibEntryPath::has_operation() const
{
for (std::size_t index=0; index<fib_sh_tbl_path.len(); index++)
{
if(fib_sh_tbl_path[index]->has_operation())
return true;
}
return is_set(yfilter);
}
std::string Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::FibEntryPath::get_segment_path() const
{
std::ostringstream path_buffer;
path_buffer << "fib-entry-path";
return path_buffer.str();
}
std::vector<std::pair<std::string, LeafData> > Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::FibEntryPath::get_name_leaf_data() const
{
std::vector<std::pair<std::string, LeafData> > leaf_name_data {};
return leaf_name_data;
}
std::shared_ptr<ydk::Entity> Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::FibEntryPath::get_child_by_name(const std::string & child_yang_name, const std::string & segment_path)
{
if(child_yang_name == "fib-sh-tbl-path")
{
auto ent_ = std::make_shared<Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::FibEntryPath::FibShTblPath>();
ent_->parent = this;
fib_sh_tbl_path.append(ent_);
return ent_;
}
return nullptr;
}
std::map<std::string, std::shared_ptr<ydk::Entity>> Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::FibEntryPath::get_children() const
{
std::map<std::string, std::shared_ptr<ydk::Entity>> _children{};
char count_=0;
count_ = 0;
for (auto ent_ : fib_sh_tbl_path.entities())
{
if(_children.find(ent_->get_segment_path()) == _children.end())
_children[ent_->get_segment_path()] = ent_;
else
_children[ent_->get_segment_path()+count_++] = ent_;
}
return _children;
}
void Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::FibEntryPath::set_value(const std::string & value_path, const std::string & value, const std::string & name_space, const std::string & name_space_prefix)
{
}
void Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::FibEntryPath::set_filter(const std::string & value_path, YFilter yfilter)
{
}
bool Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::FibEntryPath::has_leaf_or_child_of_name(const std::string & name) const
{
if(name == "fib-sh-tbl-path")
return true;
return false;
}
Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::FibEntryPath::FibShTblPath::FibShTblPath()
:
hardware_information{YType::str, "hardware-information"},
brief_interface_handle{YType::str, "brief-interface-handle"},
brief_next_hop_prefix{YType::str, "brief-next-hop-prefix"},
via_label_to_recurse{YType::uint32, "via-label-to-recurse"},
brief_pnode_address{YType::str, "brief-pnode-address"},
brief_qnode_address{YType::str, "brief-qnode-address"},
brief_lfa_protection_type{YType::enumeration, "brief-lfa-protection-type"},
resolved_path{YType::boolean, "resolved-path"},
recursive_path{YType::boolean, "recursive-path"},
packets_received_path{YType::boolean, "packets-received-path"},
attached_path{YType::boolean, "attached-path"},
backup_path{YType::boolean, "backup-path"},
best_external_path{YType::boolean, "best-external-path"},
protect_ignore{YType::boolean, "protect-ignore"},
path_dlb{YType::boolean, "path-dlb"},
path_flags{YType::uint32, "path-flags"},
path_info_flags{YType::uint16, "path-info-flags"},
path_index{YType::uint8, "path-index"},
backup_index{YType::uint8, "backup-index"},
next_hop_index{YType::uint32, "next-hop-index"},
parent_interface_handle{YType::str, "parent-interface-handle"},
recursionvia_len{YType::uint8, "recursionvia-len"}
,
more_detail_about_path(std::make_shared<Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::FibEntryPath::FibShTblPath::MoreDetailAboutPath>())
, mpls_information_for_path(std::make_shared<Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::FibEntryPath::FibShTblPath::MplsInformationForPath>())
{
more_detail_about_path->parent = this;
mpls_information_for_path->parent = this;
yang_name = "fib-sh-tbl-path"; yang_parent_name = "fib-entry-path"; is_top_level_class = false; has_list_ancestor = true;
}
Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::FibEntryPath::FibShTblPath::~FibShTblPath()
{
}
bool Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::FibEntryPath::FibShTblPath::has_data() const
{
if (is_presence_container) return true;
return hardware_information.is_set
|| brief_interface_handle.is_set
|| brief_next_hop_prefix.is_set
|| via_label_to_recurse.is_set
|| brief_pnode_address.is_set
|| brief_qnode_address.is_set
|| brief_lfa_protection_type.is_set
|| resolved_path.is_set
|| recursive_path.is_set
|| packets_received_path.is_set
|| attached_path.is_set
|| backup_path.is_set
|| best_external_path.is_set
|| protect_ignore.is_set
|| path_dlb.is_set
|| path_flags.is_set
|| path_info_flags.is_set
|| path_index.is_set
|| backup_index.is_set
|| next_hop_index.is_set
|| parent_interface_handle.is_set
|| recursionvia_len.is_set
|| (more_detail_about_path != nullptr && more_detail_about_path->has_data())
|| (mpls_information_for_path != nullptr && mpls_information_for_path->has_data());
}
bool Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::FibEntryPath::FibShTblPath::has_operation() const
{
return is_set(yfilter)
|| ydk::is_set(hardware_information.yfilter)
|| ydk::is_set(brief_interface_handle.yfilter)
|| ydk::is_set(brief_next_hop_prefix.yfilter)
|| ydk::is_set(via_label_to_recurse.yfilter)
|| ydk::is_set(brief_pnode_address.yfilter)
|| ydk::is_set(brief_qnode_address.yfilter)
|| ydk::is_set(brief_lfa_protection_type.yfilter)
|| ydk::is_set(resolved_path.yfilter)
|| ydk::is_set(recursive_path.yfilter)
|| ydk::is_set(packets_received_path.yfilter)
|| ydk::is_set(attached_path.yfilter)
|| ydk::is_set(backup_path.yfilter)
|| ydk::is_set(best_external_path.yfilter)
|| ydk::is_set(protect_ignore.yfilter)
|| ydk::is_set(path_dlb.yfilter)
|| ydk::is_set(path_flags.yfilter)
|| ydk::is_set(path_info_flags.yfilter)
|| ydk::is_set(path_index.yfilter)
|| ydk::is_set(backup_index.yfilter)
|| ydk::is_set(next_hop_index.yfilter)
|| ydk::is_set(parent_interface_handle.yfilter)
|| ydk::is_set(recursionvia_len.yfilter)
|| (more_detail_about_path != nullptr && more_detail_about_path->has_operation())
|| (mpls_information_for_path != nullptr && mpls_information_for_path->has_operation());
}
std::string Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::FibEntryPath::FibShTblPath::get_segment_path() const
{
std::ostringstream path_buffer;
path_buffer << "fib-sh-tbl-path";
path_buffer << "[" << get_ylist_key() << "]";
return path_buffer.str();
}
std::vector<std::pair<std::string, LeafData> > Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::FibEntryPath::FibShTblPath::get_name_leaf_data() const
{
std::vector<std::pair<std::string, LeafData> > leaf_name_data {};
if (hardware_information.is_set || is_set(hardware_information.yfilter)) leaf_name_data.push_back(hardware_information.get_name_leafdata());
if (brief_interface_handle.is_set || is_set(brief_interface_handle.yfilter)) leaf_name_data.push_back(brief_interface_handle.get_name_leafdata());
if (brief_next_hop_prefix.is_set || is_set(brief_next_hop_prefix.yfilter)) leaf_name_data.push_back(brief_next_hop_prefix.get_name_leafdata());
if (via_label_to_recurse.is_set || is_set(via_label_to_recurse.yfilter)) leaf_name_data.push_back(via_label_to_recurse.get_name_leafdata());
if (brief_pnode_address.is_set || is_set(brief_pnode_address.yfilter)) leaf_name_data.push_back(brief_pnode_address.get_name_leafdata());
if (brief_qnode_address.is_set || is_set(brief_qnode_address.yfilter)) leaf_name_data.push_back(brief_qnode_address.get_name_leafdata());
if (brief_lfa_protection_type.is_set || is_set(brief_lfa_protection_type.yfilter)) leaf_name_data.push_back(brief_lfa_protection_type.get_name_leafdata());
if (resolved_path.is_set || is_set(resolved_path.yfilter)) leaf_name_data.push_back(resolved_path.get_name_leafdata());
if (recursive_path.is_set || is_set(recursive_path.yfilter)) leaf_name_data.push_back(recursive_path.get_name_leafdata());
if (packets_received_path.is_set || is_set(packets_received_path.yfilter)) leaf_name_data.push_back(packets_received_path.get_name_leafdata());
if (attached_path.is_set || is_set(attached_path.yfilter)) leaf_name_data.push_back(attached_path.get_name_leafdata());
if (backup_path.is_set || is_set(backup_path.yfilter)) leaf_name_data.push_back(backup_path.get_name_leafdata());
if (best_external_path.is_set || is_set(best_external_path.yfilter)) leaf_name_data.push_back(best_external_path.get_name_leafdata());
if (protect_ignore.is_set || is_set(protect_ignore.yfilter)) leaf_name_data.push_back(protect_ignore.get_name_leafdata());
if (path_dlb.is_set || is_set(path_dlb.yfilter)) leaf_name_data.push_back(path_dlb.get_name_leafdata());
if (path_flags.is_set || is_set(path_flags.yfilter)) leaf_name_data.push_back(path_flags.get_name_leafdata());
if (path_info_flags.is_set || is_set(path_info_flags.yfilter)) leaf_name_data.push_back(path_info_flags.get_name_leafdata());
if (path_index.is_set || is_set(path_index.yfilter)) leaf_name_data.push_back(path_index.get_name_leafdata());
if (backup_index.is_set || is_set(backup_index.yfilter)) leaf_name_data.push_back(backup_index.get_name_leafdata());
if (next_hop_index.is_set || is_set(next_hop_index.yfilter)) leaf_name_data.push_back(next_hop_index.get_name_leafdata());
if (parent_interface_handle.is_set || is_set(parent_interface_handle.yfilter)) leaf_name_data.push_back(parent_interface_handle.get_name_leafdata());
if (recursionvia_len.is_set || is_set(recursionvia_len.yfilter)) leaf_name_data.push_back(recursionvia_len.get_name_leafdata());
return leaf_name_data;
}
std::shared_ptr<ydk::Entity> Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::FibEntryPath::FibShTblPath::get_child_by_name(const std::string & child_yang_name, const std::string & segment_path)
{
if(child_yang_name == "more-detail-about-path")
{
if(more_detail_about_path == nullptr)
{
more_detail_about_path = std::make_shared<Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::FibEntryPath::FibShTblPath::MoreDetailAboutPath>();
}
return more_detail_about_path;
}
if(child_yang_name == "mpls-information-for-path")
{
if(mpls_information_for_path == nullptr)
{
mpls_information_for_path = std::make_shared<Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::FibEntryPath::FibShTblPath::MplsInformationForPath>();
}
return mpls_information_for_path;
}
return nullptr;
}
std::map<std::string, std::shared_ptr<ydk::Entity>> Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::FibEntryPath::FibShTblPath::get_children() const
{
std::map<std::string, std::shared_ptr<ydk::Entity>> _children{};
char count_=0;
if(more_detail_about_path != nullptr)
{
_children["more-detail-about-path"] = more_detail_about_path;
}
if(mpls_information_for_path != nullptr)
{
_children["mpls-information-for-path"] = mpls_information_for_path;
}
return _children;
}
void Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::FibEntryPath::FibShTblPath::set_value(const std::string & value_path, const std::string & value, const std::string & name_space, const std::string & name_space_prefix)
{
if(value_path == "hardware-information")
{
hardware_information = value;
hardware_information.value_namespace = name_space;
hardware_information.value_namespace_prefix = name_space_prefix;
}
if(value_path == "brief-interface-handle")
{
brief_interface_handle = value;
brief_interface_handle.value_namespace = name_space;
brief_interface_handle.value_namespace_prefix = name_space_prefix;
}
if(value_path == "brief-next-hop-prefix")
{
brief_next_hop_prefix = value;
brief_next_hop_prefix.value_namespace = name_space;
brief_next_hop_prefix.value_namespace_prefix = name_space_prefix;
}
if(value_path == "via-label-to-recurse")
{
via_label_to_recurse = value;
via_label_to_recurse.value_namespace = name_space;
via_label_to_recurse.value_namespace_prefix = name_space_prefix;
}
if(value_path == "brief-pnode-address")
{
brief_pnode_address = value;
brief_pnode_address.value_namespace = name_space;
brief_pnode_address.value_namespace_prefix = name_space_prefix;
}
if(value_path == "brief-qnode-address")
{
brief_qnode_address = value;
brief_qnode_address.value_namespace = name_space;
brief_qnode_address.value_namespace_prefix = name_space_prefix;
}
if(value_path == "brief-lfa-protection-type")
{
brief_lfa_protection_type = value;
brief_lfa_protection_type.value_namespace = name_space;
brief_lfa_protection_type.value_namespace_prefix = name_space_prefix;
}
if(value_path == "resolved-path")
{
resolved_path = value;
resolved_path.value_namespace = name_space;
resolved_path.value_namespace_prefix = name_space_prefix;
}
if(value_path == "recursive-path")
{
recursive_path = value;
recursive_path.value_namespace = name_space;
recursive_path.value_namespace_prefix = name_space_prefix;
}
if(value_path == "packets-received-path")
{
packets_received_path = value;
packets_received_path.value_namespace = name_space;
packets_received_path.value_namespace_prefix = name_space_prefix;
}
if(value_path == "attached-path")
{
attached_path = value;
attached_path.value_namespace = name_space;
attached_path.value_namespace_prefix = name_space_prefix;
}
if(value_path == "backup-path")
{
backup_path = value;
backup_path.value_namespace = name_space;
backup_path.value_namespace_prefix = name_space_prefix;
}
if(value_path == "best-external-path")
{
best_external_path = value;
best_external_path.value_namespace = name_space;
best_external_path.value_namespace_prefix = name_space_prefix;
}
if(value_path == "protect-ignore")
{
protect_ignore = value;
protect_ignore.value_namespace = name_space;
protect_ignore.value_namespace_prefix = name_space_prefix;
}
if(value_path == "path-dlb")
{
path_dlb = value;
path_dlb.value_namespace = name_space;
path_dlb.value_namespace_prefix = name_space_prefix;
}
if(value_path == "path-flags")
{
path_flags = value;
path_flags.value_namespace = name_space;
path_flags.value_namespace_prefix = name_space_prefix;
}
if(value_path == "path-info-flags")
{
path_info_flags = value;
path_info_flags.value_namespace = name_space;
path_info_flags.value_namespace_prefix = name_space_prefix;
}
if(value_path == "path-index")
{
path_index = value;
path_index.value_namespace = name_space;
path_index.value_namespace_prefix = name_space_prefix;
}
if(value_path == "backup-index")
{
backup_index = value;
backup_index.value_namespace = name_space;
backup_index.value_namespace_prefix = name_space_prefix;
}
if(value_path == "next-hop-index")
{
next_hop_index = value;
next_hop_index.value_namespace = name_space;
next_hop_index.value_namespace_prefix = name_space_prefix;
}
if(value_path == "parent-interface-handle")
{
parent_interface_handle = value;
parent_interface_handle.value_namespace = name_space;
parent_interface_handle.value_namespace_prefix = name_space_prefix;
}
if(value_path == "recursionvia-len")
{
recursionvia_len = value;
recursionvia_len.value_namespace = name_space;
recursionvia_len.value_namespace_prefix = name_space_prefix;
}
}
void Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::FibEntryPath::FibShTblPath::set_filter(const std::string & value_path, YFilter yfilter)
{
if(value_path == "hardware-information")
{
hardware_information.yfilter = yfilter;
}
if(value_path == "brief-interface-handle")
{
brief_interface_handle.yfilter = yfilter;
}
if(value_path == "brief-next-hop-prefix")
{
brief_next_hop_prefix.yfilter = yfilter;
}
if(value_path == "via-label-to-recurse")
{
via_label_to_recurse.yfilter = yfilter;
}
if(value_path == "brief-pnode-address")
{
brief_pnode_address.yfilter = yfilter;
}
if(value_path == "brief-qnode-address")
{
brief_qnode_address.yfilter = yfilter;
}
if(value_path == "brief-lfa-protection-type")
{
brief_lfa_protection_type.yfilter = yfilter;
}
if(value_path == "resolved-path")
{
resolved_path.yfilter = yfilter;
}
if(value_path == "recursive-path")
{
recursive_path.yfilter = yfilter;
}
if(value_path == "packets-received-path")
{
packets_received_path.yfilter = yfilter;
}
if(value_path == "attached-path")
{
attached_path.yfilter = yfilter;
}
if(value_path == "backup-path")
{
backup_path.yfilter = yfilter;
}
if(value_path == "best-external-path")
{
best_external_path.yfilter = yfilter;
}
if(value_path == "protect-ignore")
{
protect_ignore.yfilter = yfilter;
}
if(value_path == "path-dlb")
{
path_dlb.yfilter = yfilter;
}
if(value_path == "path-flags")
{
path_flags.yfilter = yfilter;
}
if(value_path == "path-info-flags")
{
path_info_flags.yfilter = yfilter;
}
if(value_path == "path-index")
{
path_index.yfilter = yfilter;
}
if(value_path == "backup-index")
{
backup_index.yfilter = yfilter;
}
if(value_path == "next-hop-index")
{
next_hop_index.yfilter = yfilter;
}
if(value_path == "parent-interface-handle")
{
parent_interface_handle.yfilter = yfilter;
}
if(value_path == "recursionvia-len")
{
recursionvia_len.yfilter = yfilter;
}
}
bool Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::FibEntryPath::FibShTblPath::has_leaf_or_child_of_name(const std::string & name) const
{
if(name == "more-detail-about-path" || name == "mpls-information-for-path" || name == "hardware-information" || name == "brief-interface-handle" || name == "brief-next-hop-prefix" || name == "via-label-to-recurse" || name == "brief-pnode-address" || name == "brief-qnode-address" || name == "brief-lfa-protection-type" || name == "resolved-path" || name == "recursive-path" || name == "packets-received-path" || name == "attached-path" || name == "backup-path" || name == "best-external-path" || name == "protect-ignore" || name == "path-dlb" || name == "path-flags" || name == "path-info-flags" || name == "path-index" || name == "backup-index" || name == "next-hop-index" || name == "parent-interface-handle" || name == "recursionvia-len")
return true;
return false;
}
Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::FibEntryPath::FibShTblPath::MoreDetailAboutPath::MoreDetailAboutPath()
:
ip_address_to_recurse{YType::str, "ip-address-to-recurse"},
label_to_recurse{YType::uint32, "label-to-recurse"},
detail_next_hop_prefix{YType::str, "detail-next-hop-prefix"},
next_hop_mask_length{YType::uint8, "next-hop-mask-length"},
interface_associated_path{YType::str, "interface-associated-path"},
next_hop_interface{YType::str, "next-hop-interface"},
next_hop_vrf{YType::str, "next-hop-vrf"},
tunnle_endpoint_id{YType::uint32, "tunnle-endpoint-id"},
lisprlocid{YType::uint32, "lisprlocid"},
number_of_dependencies_this_path{YType::uint32, "number-of-dependencies-this-path"},
robin_reset_value{YType::uint8, "robin-reset-value"},
recurse_prefix_object{YType::boolean, "recurse-prefix-object"},
next_prefix_recursion{YType::str, "next-prefix-recursion"},
next_prefix_length{YType::uint8, "next-prefix-length"},
recurse_prefix_object2{YType::boolean, "recurse-prefix-object2"},
next_prefix_recursion2{YType::str, "next-prefix-recursion2"},
next_prefix_length2{YType::uint8, "next-prefix-length2"},
detail_fib_adjacency_type{YType::enumeration, "detail-fib-adjacency-type"},
current_path_flag{YType::boolean, "current-path-flag"},
recursive_path_information{YType::boolean, "recursive-path-information"},
external_adjacency{YType::boolean, "external-adjacency"},
fib_path_nh_information_type{YType::enumeration, "fib-path-nh-information-type"},
fib_path_nh_information_type_special{YType::enumeration, "fib-path-nh-information-type-special"},
weight_of_path{YType::uint32, "weight-of-path"},
tunnel_class{YType::uint8, "tunnel-class"},
tunnel_is_forward_class{YType::boolean, "tunnel-is-forward-class"}
,
spd_ipencap(this, {})
, next_next_hop(this, {})
{
yang_name = "more-detail-about-path"; yang_parent_name = "fib-sh-tbl-path"; is_top_level_class = false; has_list_ancestor = true;
}
Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::FibEntryPath::FibShTblPath::MoreDetailAboutPath::~MoreDetailAboutPath()
{
}
bool Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::FibEntryPath::FibShTblPath::MoreDetailAboutPath::has_data() const
{
if (is_presence_container) return true;
for (std::size_t index=0; index<spd_ipencap.len(); index++)
{
if(spd_ipencap[index]->has_data())
return true;
}
for (std::size_t index=0; index<next_next_hop.len(); index++)
{
if(next_next_hop[index]->has_data())
return true;
}
return ip_address_to_recurse.is_set
|| label_to_recurse.is_set
|| detail_next_hop_prefix.is_set
|| next_hop_mask_length.is_set
|| interface_associated_path.is_set
|| next_hop_interface.is_set
|| next_hop_vrf.is_set
|| tunnle_endpoint_id.is_set
|| lisprlocid.is_set
|| number_of_dependencies_this_path.is_set
|| robin_reset_value.is_set
|| recurse_prefix_object.is_set
|| next_prefix_recursion.is_set
|| next_prefix_length.is_set
|| recurse_prefix_object2.is_set
|| next_prefix_recursion2.is_set
|| next_prefix_length2.is_set
|| detail_fib_adjacency_type.is_set
|| current_path_flag.is_set
|| recursive_path_information.is_set
|| external_adjacency.is_set
|| fib_path_nh_information_type.is_set
|| fib_path_nh_information_type_special.is_set
|| weight_of_path.is_set
|| tunnel_class.is_set
|| tunnel_is_forward_class.is_set;
}
bool Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::FibEntryPath::FibShTblPath::MoreDetailAboutPath::has_operation() const
{
for (std::size_t index=0; index<spd_ipencap.len(); index++)
{
if(spd_ipencap[index]->has_operation())
return true;
}
for (std::size_t index=0; index<next_next_hop.len(); index++)
{
if(next_next_hop[index]->has_operation())
return true;
}
return is_set(yfilter)
|| ydk::is_set(ip_address_to_recurse.yfilter)
|| ydk::is_set(label_to_recurse.yfilter)
|| ydk::is_set(detail_next_hop_prefix.yfilter)
|| ydk::is_set(next_hop_mask_length.yfilter)
|| ydk::is_set(interface_associated_path.yfilter)
|| ydk::is_set(next_hop_interface.yfilter)
|| ydk::is_set(next_hop_vrf.yfilter)
|| ydk::is_set(tunnle_endpoint_id.yfilter)
|| ydk::is_set(lisprlocid.yfilter)
|| ydk::is_set(number_of_dependencies_this_path.yfilter)
|| ydk::is_set(robin_reset_value.yfilter)
|| ydk::is_set(recurse_prefix_object.yfilter)
|| ydk::is_set(next_prefix_recursion.yfilter)
|| ydk::is_set(next_prefix_length.yfilter)
|| ydk::is_set(recurse_prefix_object2.yfilter)
|| ydk::is_set(next_prefix_recursion2.yfilter)
|| ydk::is_set(next_prefix_length2.yfilter)
|| ydk::is_set(detail_fib_adjacency_type.yfilter)
|| ydk::is_set(current_path_flag.yfilter)
|| ydk::is_set(recursive_path_information.yfilter)
|| ydk::is_set(external_adjacency.yfilter)
|| ydk::is_set(fib_path_nh_information_type.yfilter)
|| ydk::is_set(fib_path_nh_information_type_special.yfilter)
|| ydk::is_set(weight_of_path.yfilter)
|| ydk::is_set(tunnel_class.yfilter)
|| ydk::is_set(tunnel_is_forward_class.yfilter);
}
std::string Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::FibEntryPath::FibShTblPath::MoreDetailAboutPath::get_segment_path() const
{
std::ostringstream path_buffer;
path_buffer << "more-detail-about-path";
return path_buffer.str();
}
std::vector<std::pair<std::string, LeafData> > Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::FibEntryPath::FibShTblPath::MoreDetailAboutPath::get_name_leaf_data() const
{
std::vector<std::pair<std::string, LeafData> > leaf_name_data {};
if (ip_address_to_recurse.is_set || is_set(ip_address_to_recurse.yfilter)) leaf_name_data.push_back(ip_address_to_recurse.get_name_leafdata());
if (label_to_recurse.is_set || is_set(label_to_recurse.yfilter)) leaf_name_data.push_back(label_to_recurse.get_name_leafdata());
if (detail_next_hop_prefix.is_set || is_set(detail_next_hop_prefix.yfilter)) leaf_name_data.push_back(detail_next_hop_prefix.get_name_leafdata());
if (next_hop_mask_length.is_set || is_set(next_hop_mask_length.yfilter)) leaf_name_data.push_back(next_hop_mask_length.get_name_leafdata());
if (interface_associated_path.is_set || is_set(interface_associated_path.yfilter)) leaf_name_data.push_back(interface_associated_path.get_name_leafdata());
if (next_hop_interface.is_set || is_set(next_hop_interface.yfilter)) leaf_name_data.push_back(next_hop_interface.get_name_leafdata());
if (next_hop_vrf.is_set || is_set(next_hop_vrf.yfilter)) leaf_name_data.push_back(next_hop_vrf.get_name_leafdata());
if (tunnle_endpoint_id.is_set || is_set(tunnle_endpoint_id.yfilter)) leaf_name_data.push_back(tunnle_endpoint_id.get_name_leafdata());
if (lisprlocid.is_set || is_set(lisprlocid.yfilter)) leaf_name_data.push_back(lisprlocid.get_name_leafdata());
if (number_of_dependencies_this_path.is_set || is_set(number_of_dependencies_this_path.yfilter)) leaf_name_data.push_back(number_of_dependencies_this_path.get_name_leafdata());
if (robin_reset_value.is_set || is_set(robin_reset_value.yfilter)) leaf_name_data.push_back(robin_reset_value.get_name_leafdata());
if (recurse_prefix_object.is_set || is_set(recurse_prefix_object.yfilter)) leaf_name_data.push_back(recurse_prefix_object.get_name_leafdata());
if (next_prefix_recursion.is_set || is_set(next_prefix_recursion.yfilter)) leaf_name_data.push_back(next_prefix_recursion.get_name_leafdata());
if (next_prefix_length.is_set || is_set(next_prefix_length.yfilter)) leaf_name_data.push_back(next_prefix_length.get_name_leafdata());
if (recurse_prefix_object2.is_set || is_set(recurse_prefix_object2.yfilter)) leaf_name_data.push_back(recurse_prefix_object2.get_name_leafdata());
if (next_prefix_recursion2.is_set || is_set(next_prefix_recursion2.yfilter)) leaf_name_data.push_back(next_prefix_recursion2.get_name_leafdata());
if (next_prefix_length2.is_set || is_set(next_prefix_length2.yfilter)) leaf_name_data.push_back(next_prefix_length2.get_name_leafdata());
if (detail_fib_adjacency_type.is_set || is_set(detail_fib_adjacency_type.yfilter)) leaf_name_data.push_back(detail_fib_adjacency_type.get_name_leafdata());
if (current_path_flag.is_set || is_set(current_path_flag.yfilter)) leaf_name_data.push_back(current_path_flag.get_name_leafdata());
if (recursive_path_information.is_set || is_set(recursive_path_information.yfilter)) leaf_name_data.push_back(recursive_path_information.get_name_leafdata());
if (external_adjacency.is_set || is_set(external_adjacency.yfilter)) leaf_name_data.push_back(external_adjacency.get_name_leafdata());
if (fib_path_nh_information_type.is_set || is_set(fib_path_nh_information_type.yfilter)) leaf_name_data.push_back(fib_path_nh_information_type.get_name_leafdata());
if (fib_path_nh_information_type_special.is_set || is_set(fib_path_nh_information_type_special.yfilter)) leaf_name_data.push_back(fib_path_nh_information_type_special.get_name_leafdata());
if (weight_of_path.is_set || is_set(weight_of_path.yfilter)) leaf_name_data.push_back(weight_of_path.get_name_leafdata());
if (tunnel_class.is_set || is_set(tunnel_class.yfilter)) leaf_name_data.push_back(tunnel_class.get_name_leafdata());
if (tunnel_is_forward_class.is_set || is_set(tunnel_is_forward_class.yfilter)) leaf_name_data.push_back(tunnel_is_forward_class.get_name_leafdata());
return leaf_name_data;
}
std::shared_ptr<ydk::Entity> Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::FibEntryPath::FibShTblPath::MoreDetailAboutPath::get_child_by_name(const std::string & child_yang_name, const std::string & segment_path)
{
if(child_yang_name == "spd-ipencap")
{
auto ent_ = std::make_shared<Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::FibEntryPath::FibShTblPath::MoreDetailAboutPath::SpdIpencap>();
ent_->parent = this;
spd_ipencap.append(ent_);
return ent_;
}
if(child_yang_name == "next-next-hop")
{
auto ent_ = std::make_shared<Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::FibEntryPath::FibShTblPath::MoreDetailAboutPath::NextNextHop>();
ent_->parent = this;
next_next_hop.append(ent_);
return ent_;
}
return nullptr;
}
std::map<std::string, std::shared_ptr<ydk::Entity>> Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::FibEntryPath::FibShTblPath::MoreDetailAboutPath::get_children() const
{
std::map<std::string, std::shared_ptr<ydk::Entity>> _children{};
char count_=0;
count_ = 0;
for (auto ent_ : spd_ipencap.entities())
{
if(_children.find(ent_->get_segment_path()) == _children.end())
_children[ent_->get_segment_path()] = ent_;
else
_children[ent_->get_segment_path()+count_++] = ent_;
}
count_ = 0;
for (auto ent_ : next_next_hop.entities())
{
if(_children.find(ent_->get_segment_path()) == _children.end())
_children[ent_->get_segment_path()] = ent_;
else
_children[ent_->get_segment_path()+count_++] = ent_;
}
return _children;
}
void Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::FibEntryPath::FibShTblPath::MoreDetailAboutPath::set_value(const std::string & value_path, const std::string & value, const std::string & name_space, const std::string & name_space_prefix)
{
if(value_path == "ip-address-to-recurse")
{
ip_address_to_recurse = value;
ip_address_to_recurse.value_namespace = name_space;
ip_address_to_recurse.value_namespace_prefix = name_space_prefix;
}
if(value_path == "label-to-recurse")
{
label_to_recurse = value;
label_to_recurse.value_namespace = name_space;
label_to_recurse.value_namespace_prefix = name_space_prefix;
}
if(value_path == "detail-next-hop-prefix")
{
detail_next_hop_prefix = value;
detail_next_hop_prefix.value_namespace = name_space;
detail_next_hop_prefix.value_namespace_prefix = name_space_prefix;
}
if(value_path == "next-hop-mask-length")
{
next_hop_mask_length = value;
next_hop_mask_length.value_namespace = name_space;
next_hop_mask_length.value_namespace_prefix = name_space_prefix;
}
if(value_path == "interface-associated-path")
{
interface_associated_path = value;
interface_associated_path.value_namespace = name_space;
interface_associated_path.value_namespace_prefix = name_space_prefix;
}
if(value_path == "next-hop-interface")
{
next_hop_interface = value;
next_hop_interface.value_namespace = name_space;
next_hop_interface.value_namespace_prefix = name_space_prefix;
}
if(value_path == "next-hop-vrf")
{
next_hop_vrf = value;
next_hop_vrf.value_namespace = name_space;
next_hop_vrf.value_namespace_prefix = name_space_prefix;
}
if(value_path == "tunnle-endpoint-id")
{
tunnle_endpoint_id = value;
tunnle_endpoint_id.value_namespace = name_space;
tunnle_endpoint_id.value_namespace_prefix = name_space_prefix;
}
if(value_path == "lisprlocid")
{
lisprlocid = value;
lisprlocid.value_namespace = name_space;
lisprlocid.value_namespace_prefix = name_space_prefix;
}
if(value_path == "number-of-dependencies-this-path")
{
number_of_dependencies_this_path = value;
number_of_dependencies_this_path.value_namespace = name_space;
number_of_dependencies_this_path.value_namespace_prefix = name_space_prefix;
}
if(value_path == "robin-reset-value")
{
robin_reset_value = value;
robin_reset_value.value_namespace = name_space;
robin_reset_value.value_namespace_prefix = name_space_prefix;
}
if(value_path == "recurse-prefix-object")
{
recurse_prefix_object = value;
recurse_prefix_object.value_namespace = name_space;
recurse_prefix_object.value_namespace_prefix = name_space_prefix;
}
if(value_path == "next-prefix-recursion")
{
next_prefix_recursion = value;
next_prefix_recursion.value_namespace = name_space;
next_prefix_recursion.value_namespace_prefix = name_space_prefix;
}
if(value_path == "next-prefix-length")
{
next_prefix_length = value;
next_prefix_length.value_namespace = name_space;
next_prefix_length.value_namespace_prefix = name_space_prefix;
}
if(value_path == "recurse-prefix-object2")
{
recurse_prefix_object2 = value;
recurse_prefix_object2.value_namespace = name_space;
recurse_prefix_object2.value_namespace_prefix = name_space_prefix;
}
if(value_path == "next-prefix-recursion2")
{
next_prefix_recursion2 = value;
next_prefix_recursion2.value_namespace = name_space;
next_prefix_recursion2.value_namespace_prefix = name_space_prefix;
}
if(value_path == "next-prefix-length2")
{
next_prefix_length2 = value;
next_prefix_length2.value_namespace = name_space;
next_prefix_length2.value_namespace_prefix = name_space_prefix;
}
if(value_path == "detail-fib-adjacency-type")
{
detail_fib_adjacency_type = value;
detail_fib_adjacency_type.value_namespace = name_space;
detail_fib_adjacency_type.value_namespace_prefix = name_space_prefix;
}
if(value_path == "current-path-flag")
{
current_path_flag = value;
current_path_flag.value_namespace = name_space;
current_path_flag.value_namespace_prefix = name_space_prefix;
}
if(value_path == "recursive-path-information")
{
recursive_path_information = value;
recursive_path_information.value_namespace = name_space;
recursive_path_information.value_namespace_prefix = name_space_prefix;
}
if(value_path == "external-adjacency")
{
external_adjacency = value;
external_adjacency.value_namespace = name_space;
external_adjacency.value_namespace_prefix = name_space_prefix;
}
if(value_path == "fib-path-nh-information-type")
{
fib_path_nh_information_type = value;
fib_path_nh_information_type.value_namespace = name_space;
fib_path_nh_information_type.value_namespace_prefix = name_space_prefix;
}
if(value_path == "fib-path-nh-information-type-special")
{
fib_path_nh_information_type_special = value;
fib_path_nh_information_type_special.value_namespace = name_space;
fib_path_nh_information_type_special.value_namespace_prefix = name_space_prefix;
}
if(value_path == "weight-of-path")
{
weight_of_path = value;
weight_of_path.value_namespace = name_space;
weight_of_path.value_namespace_prefix = name_space_prefix;
}
if(value_path == "tunnel-class")
{
tunnel_class = value;
tunnel_class.value_namespace = name_space;
tunnel_class.value_namespace_prefix = name_space_prefix;
}
if(value_path == "tunnel-is-forward-class")
{
tunnel_is_forward_class = value;
tunnel_is_forward_class.value_namespace = name_space;
tunnel_is_forward_class.value_namespace_prefix = name_space_prefix;
}
}
void Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::FibEntryPath::FibShTblPath::MoreDetailAboutPath::set_filter(const std::string & value_path, YFilter yfilter)
{
if(value_path == "ip-address-to-recurse")
{
ip_address_to_recurse.yfilter = yfilter;
}
if(value_path == "label-to-recurse")
{
label_to_recurse.yfilter = yfilter;
}
if(value_path == "detail-next-hop-prefix")
{
detail_next_hop_prefix.yfilter = yfilter;
}
if(value_path == "next-hop-mask-length")
{
next_hop_mask_length.yfilter = yfilter;
}
if(value_path == "interface-associated-path")
{
interface_associated_path.yfilter = yfilter;
}
if(value_path == "next-hop-interface")
{
next_hop_interface.yfilter = yfilter;
}
if(value_path == "next-hop-vrf")
{
next_hop_vrf.yfilter = yfilter;
}
if(value_path == "tunnle-endpoint-id")
{
tunnle_endpoint_id.yfilter = yfilter;
}
if(value_path == "lisprlocid")
{
lisprlocid.yfilter = yfilter;
}
if(value_path == "number-of-dependencies-this-path")
{
number_of_dependencies_this_path.yfilter = yfilter;
}
if(value_path == "robin-reset-value")
{
robin_reset_value.yfilter = yfilter;
}
if(value_path == "recurse-prefix-object")
{
recurse_prefix_object.yfilter = yfilter;
}
if(value_path == "next-prefix-recursion")
{
next_prefix_recursion.yfilter = yfilter;
}
if(value_path == "next-prefix-length")
{
next_prefix_length.yfilter = yfilter;
}
if(value_path == "recurse-prefix-object2")
{
recurse_prefix_object2.yfilter = yfilter;
}
if(value_path == "next-prefix-recursion2")
{
next_prefix_recursion2.yfilter = yfilter;
}
if(value_path == "next-prefix-length2")
{
next_prefix_length2.yfilter = yfilter;
}
if(value_path == "detail-fib-adjacency-type")
{
detail_fib_adjacency_type.yfilter = yfilter;
}
if(value_path == "current-path-flag")
{
current_path_flag.yfilter = yfilter;
}
if(value_path == "recursive-path-information")
{
recursive_path_information.yfilter = yfilter;
}
if(value_path == "external-adjacency")
{
external_adjacency.yfilter = yfilter;
}
if(value_path == "fib-path-nh-information-type")
{
fib_path_nh_information_type.yfilter = yfilter;
}
if(value_path == "fib-path-nh-information-type-special")
{
fib_path_nh_information_type_special.yfilter = yfilter;
}
if(value_path == "weight-of-path")
{
weight_of_path.yfilter = yfilter;
}
if(value_path == "tunnel-class")
{
tunnel_class.yfilter = yfilter;
}
if(value_path == "tunnel-is-forward-class")
{
tunnel_is_forward_class.yfilter = yfilter;
}
}
bool Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::FibEntryPath::FibShTblPath::MoreDetailAboutPath::has_leaf_or_child_of_name(const std::string & name) const
{
if(name == "spd-ipencap" || name == "next-next-hop" || name == "ip-address-to-recurse" || name == "label-to-recurse" || name == "detail-next-hop-prefix" || name == "next-hop-mask-length" || name == "interface-associated-path" || name == "next-hop-interface" || name == "next-hop-vrf" || name == "tunnle-endpoint-id" || name == "lisprlocid" || name == "number-of-dependencies-this-path" || name == "robin-reset-value" || name == "recurse-prefix-object" || name == "next-prefix-recursion" || name == "next-prefix-length" || name == "recurse-prefix-object2" || name == "next-prefix-recursion2" || name == "next-prefix-length2" || name == "detail-fib-adjacency-type" || name == "current-path-flag" || name == "recursive-path-information" || name == "external-adjacency" || name == "fib-path-nh-information-type" || name == "fib-path-nh-information-type-special" || name == "weight-of-path" || name == "tunnel-class" || name == "tunnel-is-forward-class")
return true;
return false;
}
Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::FibEntryPath::FibShTblPath::MoreDetailAboutPath::SpdIpencap::SpdIpencap()
:
ip_encap_hdr_count{YType::uint8, "ip-encap-hdr-count"},
ip_encap_locks{YType::uint32, "ip-encap-locks"},
ip_encap_transport_tbl{YType::uint32, "ip-encap-transport-tbl"},
ipe_transport_vrf_name{YType::str, "ipe-transport-vrf-name"},
ip_encap_transport_af{YType::uint32, "ip-encap-transport-af"},
ip_encap_payload_af{YType::uint32, "ip-encap-payload-af"},
ip_encap_payload_mtu{YType::uint16, "ip-encap-payload-mtu"},
ip_encap_parent{YType::uint32, "ip-encap-parent"},
ip_encap_parent_type{YType::uint32, "ip-encap-parent-type"}
,
ip_encap_hdr(this, {})
{
yang_name = "spd-ipencap"; yang_parent_name = "more-detail-about-path"; is_top_level_class = false; has_list_ancestor = true;
}
Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::FibEntryPath::FibShTblPath::MoreDetailAboutPath::SpdIpencap::~SpdIpencap()
{
}
bool Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::FibEntryPath::FibShTblPath::MoreDetailAboutPath::SpdIpencap::has_data() const
{
if (is_presence_container) return true;
for (std::size_t index=0; index<ip_encap_hdr.len(); index++)
{
if(ip_encap_hdr[index]->has_data())
return true;
}
return ip_encap_hdr_count.is_set
|| ip_encap_locks.is_set
|| ip_encap_transport_tbl.is_set
|| ipe_transport_vrf_name.is_set
|| ip_encap_transport_af.is_set
|| ip_encap_payload_af.is_set
|| ip_encap_payload_mtu.is_set
|| ip_encap_parent.is_set
|| ip_encap_parent_type.is_set;
}
bool Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::FibEntryPath::FibShTblPath::MoreDetailAboutPath::SpdIpencap::has_operation() const
{
for (std::size_t index=0; index<ip_encap_hdr.len(); index++)
{
if(ip_encap_hdr[index]->has_operation())
return true;
}
return is_set(yfilter)
|| ydk::is_set(ip_encap_hdr_count.yfilter)
|| ydk::is_set(ip_encap_locks.yfilter)
|| ydk::is_set(ip_encap_transport_tbl.yfilter)
|| ydk::is_set(ipe_transport_vrf_name.yfilter)
|| ydk::is_set(ip_encap_transport_af.yfilter)
|| ydk::is_set(ip_encap_payload_af.yfilter)
|| ydk::is_set(ip_encap_payload_mtu.yfilter)
|| ydk::is_set(ip_encap_parent.yfilter)
|| ydk::is_set(ip_encap_parent_type.yfilter);
}
std::string Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::FibEntryPath::FibShTblPath::MoreDetailAboutPath::SpdIpencap::get_segment_path() const
{
std::ostringstream path_buffer;
path_buffer << "spd-ipencap";
path_buffer << "[" << get_ylist_key() << "]";
return path_buffer.str();
}
std::vector<std::pair<std::string, LeafData> > Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::FibEntryPath::FibShTblPath::MoreDetailAboutPath::SpdIpencap::get_name_leaf_data() const
{
std::vector<std::pair<std::string, LeafData> > leaf_name_data {};
if (ip_encap_hdr_count.is_set || is_set(ip_encap_hdr_count.yfilter)) leaf_name_data.push_back(ip_encap_hdr_count.get_name_leafdata());
if (ip_encap_locks.is_set || is_set(ip_encap_locks.yfilter)) leaf_name_data.push_back(ip_encap_locks.get_name_leafdata());
if (ip_encap_transport_tbl.is_set || is_set(ip_encap_transport_tbl.yfilter)) leaf_name_data.push_back(ip_encap_transport_tbl.get_name_leafdata());
if (ipe_transport_vrf_name.is_set || is_set(ipe_transport_vrf_name.yfilter)) leaf_name_data.push_back(ipe_transport_vrf_name.get_name_leafdata());
if (ip_encap_transport_af.is_set || is_set(ip_encap_transport_af.yfilter)) leaf_name_data.push_back(ip_encap_transport_af.get_name_leafdata());
if (ip_encap_payload_af.is_set || is_set(ip_encap_payload_af.yfilter)) leaf_name_data.push_back(ip_encap_payload_af.get_name_leafdata());
if (ip_encap_payload_mtu.is_set || is_set(ip_encap_payload_mtu.yfilter)) leaf_name_data.push_back(ip_encap_payload_mtu.get_name_leafdata());
if (ip_encap_parent.is_set || is_set(ip_encap_parent.yfilter)) leaf_name_data.push_back(ip_encap_parent.get_name_leafdata());
if (ip_encap_parent_type.is_set || is_set(ip_encap_parent_type.yfilter)) leaf_name_data.push_back(ip_encap_parent_type.get_name_leafdata());
return leaf_name_data;
}
std::shared_ptr<ydk::Entity> Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::FibEntryPath::FibShTblPath::MoreDetailAboutPath::SpdIpencap::get_child_by_name(const std::string & child_yang_name, const std::string & segment_path)
{
if(child_yang_name == "ip-encap-hdr")
{
auto ent_ = std::make_shared<Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::FibEntryPath::FibShTblPath::MoreDetailAboutPath::SpdIpencap::IpEncapHdr>();
ent_->parent = this;
ip_encap_hdr.append(ent_);
return ent_;
}
return nullptr;
}
std::map<std::string, std::shared_ptr<ydk::Entity>> Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::FibEntryPath::FibShTblPath::MoreDetailAboutPath::SpdIpencap::get_children() const
{
std::map<std::string, std::shared_ptr<ydk::Entity>> _children{};
char count_=0;
count_ = 0;
for (auto ent_ : ip_encap_hdr.entities())
{
if(_children.find(ent_->get_segment_path()) == _children.end())
_children[ent_->get_segment_path()] = ent_;
else
_children[ent_->get_segment_path()+count_++] = ent_;
}
return _children;
}
void Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::FibEntryPath::FibShTblPath::MoreDetailAboutPath::SpdIpencap::set_value(const std::string & value_path, const std::string & value, const std::string & name_space, const std::string & name_space_prefix)
{
if(value_path == "ip-encap-hdr-count")
{
ip_encap_hdr_count = value;
ip_encap_hdr_count.value_namespace = name_space;
ip_encap_hdr_count.value_namespace_prefix = name_space_prefix;
}
if(value_path == "ip-encap-locks")
{
ip_encap_locks = value;
ip_encap_locks.value_namespace = name_space;
ip_encap_locks.value_namespace_prefix = name_space_prefix;
}
if(value_path == "ip-encap-transport-tbl")
{
ip_encap_transport_tbl = value;
ip_encap_transport_tbl.value_namespace = name_space;
ip_encap_transport_tbl.value_namespace_prefix = name_space_prefix;
}
if(value_path == "ipe-transport-vrf-name")
{
ipe_transport_vrf_name = value;
ipe_transport_vrf_name.value_namespace = name_space;
ipe_transport_vrf_name.value_namespace_prefix = name_space_prefix;
}
if(value_path == "ip-encap-transport-af")
{
ip_encap_transport_af = value;
ip_encap_transport_af.value_namespace = name_space;
ip_encap_transport_af.value_namespace_prefix = name_space_prefix;
}
if(value_path == "ip-encap-payload-af")
{
ip_encap_payload_af = value;
ip_encap_payload_af.value_namespace = name_space;
ip_encap_payload_af.value_namespace_prefix = name_space_prefix;
}
if(value_path == "ip-encap-payload-mtu")
{
ip_encap_payload_mtu = value;
ip_encap_payload_mtu.value_namespace = name_space;
ip_encap_payload_mtu.value_namespace_prefix = name_space_prefix;
}
if(value_path == "ip-encap-parent")
{
ip_encap_parent = value;
ip_encap_parent.value_namespace = name_space;
ip_encap_parent.value_namespace_prefix = name_space_prefix;
}
if(value_path == "ip-encap-parent-type")
{
ip_encap_parent_type = value;
ip_encap_parent_type.value_namespace = name_space;
ip_encap_parent_type.value_namespace_prefix = name_space_prefix;
}
}
void Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::FibEntryPath::FibShTblPath::MoreDetailAboutPath::SpdIpencap::set_filter(const std::string & value_path, YFilter yfilter)
{
if(value_path == "ip-encap-hdr-count")
{
ip_encap_hdr_count.yfilter = yfilter;
}
if(value_path == "ip-encap-locks")
{
ip_encap_locks.yfilter = yfilter;
}
if(value_path == "ip-encap-transport-tbl")
{
ip_encap_transport_tbl.yfilter = yfilter;
}
if(value_path == "ipe-transport-vrf-name")
{
ipe_transport_vrf_name.yfilter = yfilter;
}
if(value_path == "ip-encap-transport-af")
{
ip_encap_transport_af.yfilter = yfilter;
}
if(value_path == "ip-encap-payload-af")
{
ip_encap_payload_af.yfilter = yfilter;
}
if(value_path == "ip-encap-payload-mtu")
{
ip_encap_payload_mtu.yfilter = yfilter;
}
if(value_path == "ip-encap-parent")
{
ip_encap_parent.yfilter = yfilter;
}
if(value_path == "ip-encap-parent-type")
{
ip_encap_parent_type.yfilter = yfilter;
}
}
bool Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::FibEntryPath::FibShTblPath::MoreDetailAboutPath::SpdIpencap::has_leaf_or_child_of_name(const std::string & name) const
{
if(name == "ip-encap-hdr" || name == "ip-encap-hdr-count" || name == "ip-encap-locks" || name == "ip-encap-transport-tbl" || name == "ipe-transport-vrf-name" || name == "ip-encap-transport-af" || name == "ip-encap-payload-af" || name == "ip-encap-payload-mtu" || name == "ip-encap-parent" || name == "ip-encap-parent-type")
return true;
return false;
}
Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::FibEntryPath::FibShTblPath::MoreDetailAboutPath::SpdIpencap::IpEncapHdr::IpEncapHdr()
:
ip_encap_hdr_type{YType::enumeration, "ip-encap-hdr-type"},
ip_encap_hdrp{YType::str, "ip-encap-hdrp"},
ip_encap_hdr_dyn{YType::uint32, "ip-encap-hdr-dyn"}
{
yang_name = "ip-encap-hdr"; yang_parent_name = "spd-ipencap"; is_top_level_class = false; has_list_ancestor = true;
}
Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::FibEntryPath::FibShTblPath::MoreDetailAboutPath::SpdIpencap::IpEncapHdr::~IpEncapHdr()
{
}
bool Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::FibEntryPath::FibShTblPath::MoreDetailAboutPath::SpdIpencap::IpEncapHdr::has_data() const
{
if (is_presence_container) return true;
return ip_encap_hdr_type.is_set
|| ip_encap_hdrp.is_set
|| ip_encap_hdr_dyn.is_set;
}
bool Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::FibEntryPath::FibShTblPath::MoreDetailAboutPath::SpdIpencap::IpEncapHdr::has_operation() const
{
return is_set(yfilter)
|| ydk::is_set(ip_encap_hdr_type.yfilter)
|| ydk::is_set(ip_encap_hdrp.yfilter)
|| ydk::is_set(ip_encap_hdr_dyn.yfilter);
}
std::string Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::FibEntryPath::FibShTblPath::MoreDetailAboutPath::SpdIpencap::IpEncapHdr::get_segment_path() const
{
std::ostringstream path_buffer;
path_buffer << "ip-encap-hdr";
path_buffer << "[" << get_ylist_key() << "]";
return path_buffer.str();
}
std::vector<std::pair<std::string, LeafData> > Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::FibEntryPath::FibShTblPath::MoreDetailAboutPath::SpdIpencap::IpEncapHdr::get_name_leaf_data() const
{
std::vector<std::pair<std::string, LeafData> > leaf_name_data {};
if (ip_encap_hdr_type.is_set || is_set(ip_encap_hdr_type.yfilter)) leaf_name_data.push_back(ip_encap_hdr_type.get_name_leafdata());
if (ip_encap_hdrp.is_set || is_set(ip_encap_hdrp.yfilter)) leaf_name_data.push_back(ip_encap_hdrp.get_name_leafdata());
if (ip_encap_hdr_dyn.is_set || is_set(ip_encap_hdr_dyn.yfilter)) leaf_name_data.push_back(ip_encap_hdr_dyn.get_name_leafdata());
return leaf_name_data;
}
std::shared_ptr<ydk::Entity> Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::FibEntryPath::FibShTblPath::MoreDetailAboutPath::SpdIpencap::IpEncapHdr::get_child_by_name(const std::string & child_yang_name, const std::string & segment_path)
{
return nullptr;
}
std::map<std::string, std::shared_ptr<ydk::Entity>> Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::FibEntryPath::FibShTblPath::MoreDetailAboutPath::SpdIpencap::IpEncapHdr::get_children() const
{
std::map<std::string, std::shared_ptr<ydk::Entity>> _children{};
char count_=0;
return _children;
}
void Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::FibEntryPath::FibShTblPath::MoreDetailAboutPath::SpdIpencap::IpEncapHdr::set_value(const std::string & value_path, const std::string & value, const std::string & name_space, const std::string & name_space_prefix)
{
if(value_path == "ip-encap-hdr-type")
{
ip_encap_hdr_type = value;
ip_encap_hdr_type.value_namespace = name_space;
ip_encap_hdr_type.value_namespace_prefix = name_space_prefix;
}
if(value_path == "ip-encap-hdrp")
{
ip_encap_hdrp = value;
ip_encap_hdrp.value_namespace = name_space;
ip_encap_hdrp.value_namespace_prefix = name_space_prefix;
}
if(value_path == "ip-encap-hdr-dyn")
{
ip_encap_hdr_dyn = value;
ip_encap_hdr_dyn.value_namespace = name_space;
ip_encap_hdr_dyn.value_namespace_prefix = name_space_prefix;
}
}
void Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::FibEntryPath::FibShTblPath::MoreDetailAboutPath::SpdIpencap::IpEncapHdr::set_filter(const std::string & value_path, YFilter yfilter)
{
if(value_path == "ip-encap-hdr-type")
{
ip_encap_hdr_type.yfilter = yfilter;
}
if(value_path == "ip-encap-hdrp")
{
ip_encap_hdrp.yfilter = yfilter;
}
if(value_path == "ip-encap-hdr-dyn")
{
ip_encap_hdr_dyn.yfilter = yfilter;
}
}
bool Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::FibEntryPath::FibShTblPath::MoreDetailAboutPath::SpdIpencap::IpEncapHdr::has_leaf_or_child_of_name(const std::string & name) const
{
if(name == "ip-encap-hdr-type" || name == "ip-encap-hdrp" || name == "ip-encap-hdr-dyn")
return true;
return false;
}
Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::FibEntryPath::FibShTblPath::MoreDetailAboutPath::NextNextHop::NextNextHop()
:
next_next_hop_index{YType::uint8, "next-next-hop-index"},
next_next_hop_prefix{YType::str, "next-next-hop-prefix"},
next_next_hop_interface{YType::uint32, "next-next-hop-interface"}
{
yang_name = "next-next-hop"; yang_parent_name = "more-detail-about-path"; is_top_level_class = false; has_list_ancestor = true;
}
Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::FibEntryPath::FibShTblPath::MoreDetailAboutPath::NextNextHop::~NextNextHop()
{
}
bool Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::FibEntryPath::FibShTblPath::MoreDetailAboutPath::NextNextHop::has_data() const
{
if (is_presence_container) return true;
return next_next_hop_index.is_set
|| next_next_hop_prefix.is_set
|| next_next_hop_interface.is_set;
}
bool Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::FibEntryPath::FibShTblPath::MoreDetailAboutPath::NextNextHop::has_operation() const
{
return is_set(yfilter)
|| ydk::is_set(next_next_hop_index.yfilter)
|| ydk::is_set(next_next_hop_prefix.yfilter)
|| ydk::is_set(next_next_hop_interface.yfilter);
}
std::string Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::FibEntryPath::FibShTblPath::MoreDetailAboutPath::NextNextHop::get_segment_path() const
{
std::ostringstream path_buffer;
path_buffer << "next-next-hop";
path_buffer << "[" << get_ylist_key() << "]";
return path_buffer.str();
}
std::vector<std::pair<std::string, LeafData> > Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::FibEntryPath::FibShTblPath::MoreDetailAboutPath::NextNextHop::get_name_leaf_data() const
{
std::vector<std::pair<std::string, LeafData> > leaf_name_data {};
if (next_next_hop_index.is_set || is_set(next_next_hop_index.yfilter)) leaf_name_data.push_back(next_next_hop_index.get_name_leafdata());
if (next_next_hop_prefix.is_set || is_set(next_next_hop_prefix.yfilter)) leaf_name_data.push_back(next_next_hop_prefix.get_name_leafdata());
if (next_next_hop_interface.is_set || is_set(next_next_hop_interface.yfilter)) leaf_name_data.push_back(next_next_hop_interface.get_name_leafdata());
return leaf_name_data;
}
std::shared_ptr<ydk::Entity> Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::FibEntryPath::FibShTblPath::MoreDetailAboutPath::NextNextHop::get_child_by_name(const std::string & child_yang_name, const std::string & segment_path)
{
return nullptr;
}
std::map<std::string, std::shared_ptr<ydk::Entity>> Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::FibEntryPath::FibShTblPath::MoreDetailAboutPath::NextNextHop::get_children() const
{
std::map<std::string, std::shared_ptr<ydk::Entity>> _children{};
char count_=0;
return _children;
}
void Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::FibEntryPath::FibShTblPath::MoreDetailAboutPath::NextNextHop::set_value(const std::string & value_path, const std::string & value, const std::string & name_space, const std::string & name_space_prefix)
{
if(value_path == "next-next-hop-index")
{
next_next_hop_index = value;
next_next_hop_index.value_namespace = name_space;
next_next_hop_index.value_namespace_prefix = name_space_prefix;
}
if(value_path == "next-next-hop-prefix")
{
next_next_hop_prefix = value;
next_next_hop_prefix.value_namespace = name_space;
next_next_hop_prefix.value_namespace_prefix = name_space_prefix;
}
if(value_path == "next-next-hop-interface")
{
next_next_hop_interface = value;
next_next_hop_interface.value_namespace = name_space;
next_next_hop_interface.value_namespace_prefix = name_space_prefix;
}
}
void Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::FibEntryPath::FibShTblPath::MoreDetailAboutPath::NextNextHop::set_filter(const std::string & value_path, YFilter yfilter)
{
if(value_path == "next-next-hop-index")
{
next_next_hop_index.yfilter = yfilter;
}
if(value_path == "next-next-hop-prefix")
{
next_next_hop_prefix.yfilter = yfilter;
}
if(value_path == "next-next-hop-interface")
{
next_next_hop_interface.yfilter = yfilter;
}
}
bool Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::FibEntryPath::FibShTblPath::MoreDetailAboutPath::NextNextHop::has_leaf_or_child_of_name(const std::string & name) const
{
if(name == "next-next-hop-index" || name == "next-next-hop-prefix" || name == "next-next-hop-interface")
return true;
return false;
}
Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::FibEntryPath::FibShTblPath::MplsInformationForPath::MplsInformationForPath()
:
local_lable{YType::uint32, "local-lable"},
recursive_fwd_chain{YType::boolean, "recursive-fwd-chain"},
number_of_igp_paths{YType::uint32, "number-of-igp-paths"},
remote_backup{YType::boolean, "remote-backup"}
,
recursive_lbl_stack(this, {})
, igp_label_stack_array(this, {})
{
yang_name = "mpls-information-for-path"; yang_parent_name = "fib-sh-tbl-path"; is_top_level_class = false; has_list_ancestor = true;
}
Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::FibEntryPath::FibShTblPath::MplsInformationForPath::~MplsInformationForPath()
{
}
bool Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::FibEntryPath::FibShTblPath::MplsInformationForPath::has_data() const
{
if (is_presence_container) return true;
for (std::size_t index=0; index<recursive_lbl_stack.len(); index++)
{
if(recursive_lbl_stack[index]->has_data())
return true;
}
for (std::size_t index=0; index<igp_label_stack_array.len(); index++)
{
if(igp_label_stack_array[index]->has_data())
return true;
}
return local_lable.is_set
|| recursive_fwd_chain.is_set
|| number_of_igp_paths.is_set
|| remote_backup.is_set;
}
bool Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::FibEntryPath::FibShTblPath::MplsInformationForPath::has_operation() const
{
for (std::size_t index=0; index<recursive_lbl_stack.len(); index++)
{
if(recursive_lbl_stack[index]->has_operation())
return true;
}
for (std::size_t index=0; index<igp_label_stack_array.len(); index++)
{
if(igp_label_stack_array[index]->has_operation())
return true;
}
return is_set(yfilter)
|| ydk::is_set(local_lable.yfilter)
|| ydk::is_set(recursive_fwd_chain.yfilter)
|| ydk::is_set(number_of_igp_paths.yfilter)
|| ydk::is_set(remote_backup.yfilter);
}
std::string Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::FibEntryPath::FibShTblPath::MplsInformationForPath::get_segment_path() const
{
std::ostringstream path_buffer;
path_buffer << "mpls-information-for-path";
return path_buffer.str();
}
std::vector<std::pair<std::string, LeafData> > Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::FibEntryPath::FibShTblPath::MplsInformationForPath::get_name_leaf_data() const
{
std::vector<std::pair<std::string, LeafData> > leaf_name_data {};
if (local_lable.is_set || is_set(local_lable.yfilter)) leaf_name_data.push_back(local_lable.get_name_leafdata());
if (recursive_fwd_chain.is_set || is_set(recursive_fwd_chain.yfilter)) leaf_name_data.push_back(recursive_fwd_chain.get_name_leafdata());
if (number_of_igp_paths.is_set || is_set(number_of_igp_paths.yfilter)) leaf_name_data.push_back(number_of_igp_paths.get_name_leafdata());
if (remote_backup.is_set || is_set(remote_backup.yfilter)) leaf_name_data.push_back(remote_backup.get_name_leafdata());
return leaf_name_data;
}
std::shared_ptr<ydk::Entity> Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::FibEntryPath::FibShTblPath::MplsInformationForPath::get_child_by_name(const std::string & child_yang_name, const std::string & segment_path)
{
if(child_yang_name == "recursive-lbl-stack")
{
auto ent_ = std::make_shared<Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::FibEntryPath::FibShTblPath::MplsInformationForPath::RecursiveLblStack>();
ent_->parent = this;
recursive_lbl_stack.append(ent_);
return ent_;
}
if(child_yang_name == "igp-label-stack-array")
{
auto ent_ = std::make_shared<Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::FibEntryPath::FibShTblPath::MplsInformationForPath::IgpLabelStackArray>();
ent_->parent = this;
igp_label_stack_array.append(ent_);
return ent_;
}
return nullptr;
}
std::map<std::string, std::shared_ptr<ydk::Entity>> Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::FibEntryPath::FibShTblPath::MplsInformationForPath::get_children() const
{
std::map<std::string, std::shared_ptr<ydk::Entity>> _children{};
char count_=0;
count_ = 0;
for (auto ent_ : recursive_lbl_stack.entities())
{
if(_children.find(ent_->get_segment_path()) == _children.end())
_children[ent_->get_segment_path()] = ent_;
else
_children[ent_->get_segment_path()+count_++] = ent_;
}
count_ = 0;
for (auto ent_ : igp_label_stack_array.entities())
{
if(_children.find(ent_->get_segment_path()) == _children.end())
_children[ent_->get_segment_path()] = ent_;
else
_children[ent_->get_segment_path()+count_++] = ent_;
}
return _children;
}
void Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::FibEntryPath::FibShTblPath::MplsInformationForPath::set_value(const std::string & value_path, const std::string & value, const std::string & name_space, const std::string & name_space_prefix)
{
if(value_path == "local-lable")
{
local_lable = value;
local_lable.value_namespace = name_space;
local_lable.value_namespace_prefix = name_space_prefix;
}
if(value_path == "recursive-fwd-chain")
{
recursive_fwd_chain = value;
recursive_fwd_chain.value_namespace = name_space;
recursive_fwd_chain.value_namespace_prefix = name_space_prefix;
}
if(value_path == "number-of-igp-paths")
{
number_of_igp_paths = value;
number_of_igp_paths.value_namespace = name_space;
number_of_igp_paths.value_namespace_prefix = name_space_prefix;
}
if(value_path == "remote-backup")
{
remote_backup = value;
remote_backup.value_namespace = name_space;
remote_backup.value_namespace_prefix = name_space_prefix;
}
}
void Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::FibEntryPath::FibShTblPath::MplsInformationForPath::set_filter(const std::string & value_path, YFilter yfilter)
{
if(value_path == "local-lable")
{
local_lable.yfilter = yfilter;
}
if(value_path == "recursive-fwd-chain")
{
recursive_fwd_chain.yfilter = yfilter;
}
if(value_path == "number-of-igp-paths")
{
number_of_igp_paths.yfilter = yfilter;
}
if(value_path == "remote-backup")
{
remote_backup.yfilter = yfilter;
}
}
bool Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::FibEntryPath::FibShTblPath::MplsInformationForPath::has_leaf_or_child_of_name(const std::string & name) const
{
if(name == "recursive-lbl-stack" || name == "igp-label-stack-array" || name == "local-lable" || name == "recursive-fwd-chain" || name == "number-of-igp-paths" || name == "remote-backup")
return true;
return false;
}
Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::FibEntryPath::FibShTblPath::MplsInformationForPath::RecursiveLblStack::RecursiveLblStack()
:
entry{YType::uint32, "entry"}
{
yang_name = "recursive-lbl-stack"; yang_parent_name = "mpls-information-for-path"; is_top_level_class = false; has_list_ancestor = true;
}
Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::FibEntryPath::FibShTblPath::MplsInformationForPath::RecursiveLblStack::~RecursiveLblStack()
{
}
bool Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::FibEntryPath::FibShTblPath::MplsInformationForPath::RecursiveLblStack::has_data() const
{
if (is_presence_container) return true;
return entry.is_set;
}
bool Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::FibEntryPath::FibShTblPath::MplsInformationForPath::RecursiveLblStack::has_operation() const
{
return is_set(yfilter)
|| ydk::is_set(entry.yfilter);
}
std::string Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::FibEntryPath::FibShTblPath::MplsInformationForPath::RecursiveLblStack::get_segment_path() const
{
std::ostringstream path_buffer;
path_buffer << "recursive-lbl-stack";
path_buffer << "[" << get_ylist_key() << "]";
return path_buffer.str();
}
std::vector<std::pair<std::string, LeafData> > Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::FibEntryPath::FibShTblPath::MplsInformationForPath::RecursiveLblStack::get_name_leaf_data() const
{
std::vector<std::pair<std::string, LeafData> > leaf_name_data {};
if (entry.is_set || is_set(entry.yfilter)) leaf_name_data.push_back(entry.get_name_leafdata());
return leaf_name_data;
}
std::shared_ptr<ydk::Entity> Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::FibEntryPath::FibShTblPath::MplsInformationForPath::RecursiveLblStack::get_child_by_name(const std::string & child_yang_name, const std::string & segment_path)
{
return nullptr;
}
std::map<std::string, std::shared_ptr<ydk::Entity>> Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::FibEntryPath::FibShTblPath::MplsInformationForPath::RecursiveLblStack::get_children() const
{
std::map<std::string, std::shared_ptr<ydk::Entity>> _children{};
char count_=0;
return _children;
}
void Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::FibEntryPath::FibShTblPath::MplsInformationForPath::RecursiveLblStack::set_value(const std::string & value_path, const std::string & value, const std::string & name_space, const std::string & name_space_prefix)
{
if(value_path == "entry")
{
entry = value;
entry.value_namespace = name_space;
entry.value_namespace_prefix = name_space_prefix;
}
}
void Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::FibEntryPath::FibShTblPath::MplsInformationForPath::RecursiveLblStack::set_filter(const std::string & value_path, YFilter yfilter)
{
if(value_path == "entry")
{
entry.yfilter = yfilter;
}
}
bool Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::FibEntryPath::FibShTblPath::MplsInformationForPath::RecursiveLblStack::has_leaf_or_child_of_name(const std::string & name) const
{
if(name == "entry")
return true;
return false;
}
Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::FibEntryPath::FibShTblPath::MplsInformationForPath::IgpLabelStackArray::IgpLabelStackArray()
:
number_of_labels{YType::uint32, "number-of-labels"},
out_interface{YType::str, "out-interface"},
nh_address{YType::str, "nh-address"}
,
lstack(this, {})
{
yang_name = "igp-label-stack-array"; yang_parent_name = "mpls-information-for-path"; is_top_level_class = false; has_list_ancestor = true;
}
Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::FibEntryPath::FibShTblPath::MplsInformationForPath::IgpLabelStackArray::~IgpLabelStackArray()
{
}
bool Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::FibEntryPath::FibShTblPath::MplsInformationForPath::IgpLabelStackArray::has_data() const
{
if (is_presence_container) return true;
for (std::size_t index=0; index<lstack.len(); index++)
{
if(lstack[index]->has_data())
return true;
}
return number_of_labels.is_set
|| out_interface.is_set
|| nh_address.is_set;
}
bool Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::FibEntryPath::FibShTblPath::MplsInformationForPath::IgpLabelStackArray::has_operation() const
{
for (std::size_t index=0; index<lstack.len(); index++)
{
if(lstack[index]->has_operation())
return true;
}
return is_set(yfilter)
|| ydk::is_set(number_of_labels.yfilter)
|| ydk::is_set(out_interface.yfilter)
|| ydk::is_set(nh_address.yfilter);
}
std::string Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::FibEntryPath::FibShTblPath::MplsInformationForPath::IgpLabelStackArray::get_segment_path() const
{
std::ostringstream path_buffer;
path_buffer << "igp-label-stack-array";
path_buffer << "[" << get_ylist_key() << "]";
return path_buffer.str();
}
std::vector<std::pair<std::string, LeafData> > Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::FibEntryPath::FibShTblPath::MplsInformationForPath::IgpLabelStackArray::get_name_leaf_data() const
{
std::vector<std::pair<std::string, LeafData> > leaf_name_data {};
if (number_of_labels.is_set || is_set(number_of_labels.yfilter)) leaf_name_data.push_back(number_of_labels.get_name_leafdata());
if (out_interface.is_set || is_set(out_interface.yfilter)) leaf_name_data.push_back(out_interface.get_name_leafdata());
if (nh_address.is_set || is_set(nh_address.yfilter)) leaf_name_data.push_back(nh_address.get_name_leafdata());
return leaf_name_data;
}
std::shared_ptr<ydk::Entity> Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::FibEntryPath::FibShTblPath::MplsInformationForPath::IgpLabelStackArray::get_child_by_name(const std::string & child_yang_name, const std::string & segment_path)
{
if(child_yang_name == "lstack")
{
auto ent_ = std::make_shared<Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::FibEntryPath::FibShTblPath::MplsInformationForPath::IgpLabelStackArray::Lstack>();
ent_->parent = this;
lstack.append(ent_);
return ent_;
}
return nullptr;
}
std::map<std::string, std::shared_ptr<ydk::Entity>> Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::FibEntryPath::FibShTblPath::MplsInformationForPath::IgpLabelStackArray::get_children() const
{
std::map<std::string, std::shared_ptr<ydk::Entity>> _children{};
char count_=0;
count_ = 0;
for (auto ent_ : lstack.entities())
{
if(_children.find(ent_->get_segment_path()) == _children.end())
_children[ent_->get_segment_path()] = ent_;
else
_children[ent_->get_segment_path()+count_++] = ent_;
}
return _children;
}
void Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::FibEntryPath::FibShTblPath::MplsInformationForPath::IgpLabelStackArray::set_value(const std::string & value_path, const std::string & value, const std::string & name_space, const std::string & name_space_prefix)
{
if(value_path == "number-of-labels")
{
number_of_labels = value;
number_of_labels.value_namespace = name_space;
number_of_labels.value_namespace_prefix = name_space_prefix;
}
if(value_path == "out-interface")
{
out_interface = value;
out_interface.value_namespace = name_space;
out_interface.value_namespace_prefix = name_space_prefix;
}
if(value_path == "nh-address")
{
nh_address = value;
nh_address.value_namespace = name_space;
nh_address.value_namespace_prefix = name_space_prefix;
}
}
void Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::FibEntryPath::FibShTblPath::MplsInformationForPath::IgpLabelStackArray::set_filter(const std::string & value_path, YFilter yfilter)
{
if(value_path == "number-of-labels")
{
number_of_labels.yfilter = yfilter;
}
if(value_path == "out-interface")
{
out_interface.yfilter = yfilter;
}
if(value_path == "nh-address")
{
nh_address.yfilter = yfilter;
}
}
bool Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::FibEntryPath::FibShTblPath::MplsInformationForPath::IgpLabelStackArray::has_leaf_or_child_of_name(const std::string & name) const
{
if(name == "lstack" || name == "number-of-labels" || name == "out-interface" || name == "nh-address")
return true;
return false;
}
Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::FibEntryPath::FibShTblPath::MplsInformationForPath::IgpLabelStackArray::Lstack::Lstack()
:
entry{YType::uint32, "entry"}
{
yang_name = "lstack"; yang_parent_name = "igp-label-stack-array"; is_top_level_class = false; has_list_ancestor = true;
}
Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::FibEntryPath::FibShTblPath::MplsInformationForPath::IgpLabelStackArray::Lstack::~Lstack()
{
}
bool Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::FibEntryPath::FibShTblPath::MplsInformationForPath::IgpLabelStackArray::Lstack::has_data() const
{
if (is_presence_container) return true;
return entry.is_set;
}
bool Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::FibEntryPath::FibShTblPath::MplsInformationForPath::IgpLabelStackArray::Lstack::has_operation() const
{
return is_set(yfilter)
|| ydk::is_set(entry.yfilter);
}
std::string Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::FibEntryPath::FibShTblPath::MplsInformationForPath::IgpLabelStackArray::Lstack::get_segment_path() const
{
std::ostringstream path_buffer;
path_buffer << "lstack";
path_buffer << "[" << get_ylist_key() << "]";
return path_buffer.str();
}
std::vector<std::pair<std::string, LeafData> > Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::FibEntryPath::FibShTblPath::MplsInformationForPath::IgpLabelStackArray::Lstack::get_name_leaf_data() const
{
std::vector<std::pair<std::string, LeafData> > leaf_name_data {};
if (entry.is_set || is_set(entry.yfilter)) leaf_name_data.push_back(entry.get_name_leafdata());
return leaf_name_data;
}
std::shared_ptr<ydk::Entity> Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::FibEntryPath::FibShTblPath::MplsInformationForPath::IgpLabelStackArray::Lstack::get_child_by_name(const std::string & child_yang_name, const std::string & segment_path)
{
return nullptr;
}
std::map<std::string, std::shared_ptr<ydk::Entity>> Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::FibEntryPath::FibShTblPath::MplsInformationForPath::IgpLabelStackArray::Lstack::get_children() const
{
std::map<std::string, std::shared_ptr<ydk::Entity>> _children{};
char count_=0;
return _children;
}
void Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::FibEntryPath::FibShTblPath::MplsInformationForPath::IgpLabelStackArray::Lstack::set_value(const std::string & value_path, const std::string & value, const std::string & name_space, const std::string & name_space_prefix)
{
if(value_path == "entry")
{
entry = value;
entry.value_namespace = name_space;
entry.value_namespace_prefix = name_space_prefix;
}
}
void Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::FibEntryPath::FibShTblPath::MplsInformationForPath::IgpLabelStackArray::Lstack::set_filter(const std::string & value_path, YFilter yfilter)
{
if(value_path == "entry")
{
entry.yfilter = yfilter;
}
}
bool Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::FibEntryPath::FibShTblPath::MplsInformationForPath::IgpLabelStackArray::Lstack::has_leaf_or_child_of_name(const std::string & name) const
{
if(name == "entry")
return true;
return false;
}
Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::ExtensionObject::ExtensionObject()
:
type{YType::enumeration, "type"}
,
sfecd_le(std::make_shared<Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::ExtensionObject::SfecdLe>())
{
sfecd_le->parent = this;
yang_name = "extension-object"; yang_parent_name = "exact-route"; is_top_level_class = false; has_list_ancestor = true;
}
Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::ExtensionObject::~ExtensionObject()
{
}
bool Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::ExtensionObject::has_data() const
{
if (is_presence_container) return true;
return type.is_set
|| (sfecd_le != nullptr && sfecd_le->has_data());
}
bool Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::ExtensionObject::has_operation() const
{
return is_set(yfilter)
|| ydk::is_set(type.yfilter)
|| (sfecd_le != nullptr && sfecd_le->has_operation());
}
std::string Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::ExtensionObject::get_segment_path() const
{
std::ostringstream path_buffer;
path_buffer << "extension-object";
path_buffer << "[" << get_ylist_key() << "]";
return path_buffer.str();
}
std::vector<std::pair<std::string, LeafData> > Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::ExtensionObject::get_name_leaf_data() const
{
std::vector<std::pair<std::string, LeafData> > leaf_name_data {};
if (type.is_set || is_set(type.yfilter)) leaf_name_data.push_back(type.get_name_leafdata());
return leaf_name_data;
}
std::shared_ptr<ydk::Entity> Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::ExtensionObject::get_child_by_name(const std::string & child_yang_name, const std::string & segment_path)
{
if(child_yang_name == "sfecd-le")
{
if(sfecd_le == nullptr)
{
sfecd_le = std::make_shared<Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::ExtensionObject::SfecdLe>();
}
return sfecd_le;
}
return nullptr;
}
std::map<std::string, std::shared_ptr<ydk::Entity>> Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::ExtensionObject::get_children() const
{
std::map<std::string, std::shared_ptr<ydk::Entity>> _children{};
char count_=0;
if(sfecd_le != nullptr)
{
_children["sfecd-le"] = sfecd_le;
}
return _children;
}
void Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::ExtensionObject::set_value(const std::string & value_path, const std::string & value, const std::string & name_space, const std::string & name_space_prefix)
{
if(value_path == "type")
{
type = value;
type.value_namespace = name_space;
type.value_namespace_prefix = name_space_prefix;
}
}
void Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::ExtensionObject::set_filter(const std::string & value_path, YFilter yfilter)
{
if(value_path == "type")
{
type.yfilter = yfilter;
}
}
bool Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::ExtensionObject::has_leaf_or_child_of_name(const std::string & name) const
{
if(name == "sfecd-le" || name == "type")
return true;
return false;
}
Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::ExtensionObject::SfecdLe::SfecdLe()
:
context_label_flag{YType::boolean, "context-label-flag"},
context_label{YType::uint32, "context-label"}
{
yang_name = "sfecd-le"; yang_parent_name = "extension-object"; is_top_level_class = false; has_list_ancestor = true;
}
Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::ExtensionObject::SfecdLe::~SfecdLe()
{
}
bool Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::ExtensionObject::SfecdLe::has_data() const
{
if (is_presence_container) return true;
return context_label_flag.is_set
|| context_label.is_set;
}
bool Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::ExtensionObject::SfecdLe::has_operation() const
{
return is_set(yfilter)
|| ydk::is_set(context_label_flag.yfilter)
|| ydk::is_set(context_label.yfilter);
}
std::string Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::ExtensionObject::SfecdLe::get_segment_path() const
{
std::ostringstream path_buffer;
path_buffer << "sfecd-le";
return path_buffer.str();
}
std::vector<std::pair<std::string, LeafData> > Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::ExtensionObject::SfecdLe::get_name_leaf_data() const
{
std::vector<std::pair<std::string, LeafData> > leaf_name_data {};
if (context_label_flag.is_set || is_set(context_label_flag.yfilter)) leaf_name_data.push_back(context_label_flag.get_name_leafdata());
if (context_label.is_set || is_set(context_label.yfilter)) leaf_name_data.push_back(context_label.get_name_leafdata());
return leaf_name_data;
}
std::shared_ptr<ydk::Entity> Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::ExtensionObject::SfecdLe::get_child_by_name(const std::string & child_yang_name, const std::string & segment_path)
{
return nullptr;
}
std::map<std::string, std::shared_ptr<ydk::Entity>> Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::ExtensionObject::SfecdLe::get_children() const
{
std::map<std::string, std::shared_ptr<ydk::Entity>> _children{};
char count_=0;
return _children;
}
void Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::ExtensionObject::SfecdLe::set_value(const std::string & value_path, const std::string & value, const std::string & name_space, const std::string & name_space_prefix)
{
if(value_path == "context-label-flag")
{
context_label_flag = value;
context_label_flag.value_namespace = name_space;
context_label_flag.value_namespace_prefix = name_space_prefix;
}
if(value_path == "context-label")
{
context_label = value;
context_label.value_namespace = name_space;
context_label.value_namespace_prefix = name_space_prefix;
}
}
void Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::ExtensionObject::SfecdLe::set_filter(const std::string & value_path, YFilter yfilter)
{
if(value_path == "context-label-flag")
{
context_label_flag.yfilter = yfilter;
}
if(value_path == "context-label")
{
context_label.yfilter = yfilter;
}
}
bool Fib::Nodes::Node::Protocols::Protocol::ExactRoutes::ExactRoute::ExtensionObject::SfecdLe::has_leaf_or_child_of_name(const std::string & name) const
{
if(name == "context-label-flag" || name == "context-label")
return true;
return false;
}
Fib::Nodes::Node::Protocols::Protocol::ProtocolGlobal::ProtocolGlobal()
:
segment_routing(std::make_shared<Fib::Nodes::Node::Protocols::Protocol::ProtocolGlobal::SegmentRouting>())
{
segment_routing->parent = this;
yang_name = "protocol-global"; yang_parent_name = "protocol"; is_top_level_class = false; has_list_ancestor = true;
}
Fib::Nodes::Node::Protocols::Protocol::ProtocolGlobal::~ProtocolGlobal()
{
}
bool Fib::Nodes::Node::Protocols::Protocol::ProtocolGlobal::has_data() const
{
if (is_presence_container) return true;
return (segment_routing != nullptr && segment_routing->has_data());
}
bool Fib::Nodes::Node::Protocols::Protocol::ProtocolGlobal::has_operation() const
{
return is_set(yfilter)
|| (segment_routing != nullptr && segment_routing->has_operation());
}
std::string Fib::Nodes::Node::Protocols::Protocol::ProtocolGlobal::get_segment_path() const
{
std::ostringstream path_buffer;
path_buffer << "protocol-global";
return path_buffer.str();
}
std::vector<std::pair<std::string, LeafData> > Fib::Nodes::Node::Protocols::Protocol::ProtocolGlobal::get_name_leaf_data() const
{
std::vector<std::pair<std::string, LeafData> > leaf_name_data {};
return leaf_name_data;
}
std::shared_ptr<ydk::Entity> Fib::Nodes::Node::Protocols::Protocol::ProtocolGlobal::get_child_by_name(const std::string & child_yang_name, const std::string & segment_path)
{
if(child_yang_name == "segment-routing")
{
if(segment_routing == nullptr)
{
segment_routing = std::make_shared<Fib::Nodes::Node::Protocols::Protocol::ProtocolGlobal::SegmentRouting>();
}
return segment_routing;
}
return nullptr;
}
std::map<std::string, std::shared_ptr<ydk::Entity>> Fib::Nodes::Node::Protocols::Protocol::ProtocolGlobal::get_children() const
{
std::map<std::string, std::shared_ptr<ydk::Entity>> _children{};
char count_=0;
if(segment_routing != nullptr)
{
_children["segment-routing"] = segment_routing;
}
return _children;
}
void Fib::Nodes::Node::Protocols::Protocol::ProtocolGlobal::set_value(const std::string & value_path, const std::string & value, const std::string & name_space, const std::string & name_space_prefix)
{
}
void Fib::Nodes::Node::Protocols::Protocol::ProtocolGlobal::set_filter(const std::string & value_path, YFilter yfilter)
{
}
bool Fib::Nodes::Node::Protocols::Protocol::ProtocolGlobal::has_leaf_or_child_of_name(const std::string & name) const
{
if(name == "segment-routing")
return true;
return false;
}
Fib::Nodes::Node::Protocols::Protocol::ProtocolGlobal::SegmentRouting::SegmentRouting()
:
srv6(std::make_shared<Fib::Nodes::Node::Protocols::Protocol::ProtocolGlobal::SegmentRouting::Srv6>())
{
srv6->parent = this;
yang_name = "segment-routing"; yang_parent_name = "protocol-global"; is_top_level_class = false; has_list_ancestor = true;
}
Fib::Nodes::Node::Protocols::Protocol::ProtocolGlobal::SegmentRouting::~SegmentRouting()
{
}
bool Fib::Nodes::Node::Protocols::Protocol::ProtocolGlobal::SegmentRouting::has_data() const
{
if (is_presence_container) return true;
return (srv6 != nullptr && srv6->has_data());
}
bool Fib::Nodes::Node::Protocols::Protocol::ProtocolGlobal::SegmentRouting::has_operation() const
{
return is_set(yfilter)
|| (srv6 != nullptr && srv6->has_operation());
}
std::string Fib::Nodes::Node::Protocols::Protocol::ProtocolGlobal::SegmentRouting::get_segment_path() const
{
std::ostringstream path_buffer;
path_buffer << "segment-routing";
return path_buffer.str();
}
std::vector<std::pair<std::string, LeafData> > Fib::Nodes::Node::Protocols::Protocol::ProtocolGlobal::SegmentRouting::get_name_leaf_data() const
{
std::vector<std::pair<std::string, LeafData> > leaf_name_data {};
return leaf_name_data;
}
std::shared_ptr<ydk::Entity> Fib::Nodes::Node::Protocols::Protocol::ProtocolGlobal::SegmentRouting::get_child_by_name(const std::string & child_yang_name, const std::string & segment_path)
{
if(child_yang_name == "srv6")
{
if(srv6 == nullptr)
{
srv6 = std::make_shared<Fib::Nodes::Node::Protocols::Protocol::ProtocolGlobal::SegmentRouting::Srv6>();
}
return srv6;
}
return nullptr;
}
std::map<std::string, std::shared_ptr<ydk::Entity>> Fib::Nodes::Node::Protocols::Protocol::ProtocolGlobal::SegmentRouting::get_children() const
{
std::map<std::string, std::shared_ptr<ydk::Entity>> _children{};
char count_=0;
if(srv6 != nullptr)
{
_children["srv6"] = srv6;
}
return _children;
}
void Fib::Nodes::Node::Protocols::Protocol::ProtocolGlobal::SegmentRouting::set_value(const std::string & value_path, const std::string & value, const std::string & name_space, const std::string & name_space_prefix)
{
}
void Fib::Nodes::Node::Protocols::Protocol::ProtocolGlobal::SegmentRouting::set_filter(const std::string & value_path, YFilter yfilter)
{
}
bool Fib::Nodes::Node::Protocols::Protocol::ProtocolGlobal::SegmentRouting::has_leaf_or_child_of_name(const std::string & name) const
{
if(name == "srv6")
return true;
return false;
}
Fib::Nodes::Node::Protocols::Protocol::ProtocolGlobal::SegmentRouting::Srv6::Srv6()
:
srv6_enabled{YType::boolean, "srv6-enabled"},
encap_source_address{YType::str, "encap-source-address"},
locator_count{YType::uint32, "locator-count"}
,
locator(this, {})
{
yang_name = "srv6"; yang_parent_name = "segment-routing"; is_top_level_class = false; has_list_ancestor = true;
}
Fib::Nodes::Node::Protocols::Protocol::ProtocolGlobal::SegmentRouting::Srv6::~Srv6()
{
}
bool Fib::Nodes::Node::Protocols::Protocol::ProtocolGlobal::SegmentRouting::Srv6::has_data() const
{
if (is_presence_container) return true;
for (std::size_t index=0; index<locator.len(); index++)
{
if(locator[index]->has_data())
return true;
}
return srv6_enabled.is_set
|| encap_source_address.is_set
|| locator_count.is_set;
}
bool Fib::Nodes::Node::Protocols::Protocol::ProtocolGlobal::SegmentRouting::Srv6::has_operation() const
{
for (std::size_t index=0; index<locator.len(); index++)
{
if(locator[index]->has_operation())
return true;
}
return is_set(yfilter)
|| ydk::is_set(srv6_enabled.yfilter)
|| ydk::is_set(encap_source_address.yfilter)
|| ydk::is_set(locator_count.yfilter);
}
std::string Fib::Nodes::Node::Protocols::Protocol::ProtocolGlobal::SegmentRouting::Srv6::get_segment_path() const
{
std::ostringstream path_buffer;
path_buffer << "srv6";
return path_buffer.str();
}
std::vector<std::pair<std::string, LeafData> > Fib::Nodes::Node::Protocols::Protocol::ProtocolGlobal::SegmentRouting::Srv6::get_name_leaf_data() const
{
std::vector<std::pair<std::string, LeafData> > leaf_name_data {};
if (srv6_enabled.is_set || is_set(srv6_enabled.yfilter)) leaf_name_data.push_back(srv6_enabled.get_name_leafdata());
if (encap_source_address.is_set || is_set(encap_source_address.yfilter)) leaf_name_data.push_back(encap_source_address.get_name_leafdata());
if (locator_count.is_set || is_set(locator_count.yfilter)) leaf_name_data.push_back(locator_count.get_name_leafdata());
return leaf_name_data;
}
std::shared_ptr<ydk::Entity> Fib::Nodes::Node::Protocols::Protocol::ProtocolGlobal::SegmentRouting::Srv6::get_child_by_name(const std::string & child_yang_name, const std::string & segment_path)
{
if(child_yang_name == "locator")
{
auto ent_ = std::make_shared<Fib::Nodes::Node::Protocols::Protocol::ProtocolGlobal::SegmentRouting::Srv6::Locator>();
ent_->parent = this;
locator.append(ent_);
return ent_;
}
return nullptr;
}
std::map<std::string, std::shared_ptr<ydk::Entity>> Fib::Nodes::Node::Protocols::Protocol::ProtocolGlobal::SegmentRouting::Srv6::get_children() const
{
std::map<std::string, std::shared_ptr<ydk::Entity>> _children{};
char count_=0;
count_ = 0;
for (auto ent_ : locator.entities())
{
if(_children.find(ent_->get_segment_path()) == _children.end())
_children[ent_->get_segment_path()] = ent_;
else
_children[ent_->get_segment_path()+count_++] = ent_;
}
return _children;
}
void Fib::Nodes::Node::Protocols::Protocol::ProtocolGlobal::SegmentRouting::Srv6::set_value(const std::string & value_path, const std::string & value, const std::string & name_space, const std::string & name_space_prefix)
{
if(value_path == "srv6-enabled")
{
srv6_enabled = value;
srv6_enabled.value_namespace = name_space;
srv6_enabled.value_namespace_prefix = name_space_prefix;
}
if(value_path == "encap-source-address")
{
encap_source_address = value;
encap_source_address.value_namespace = name_space;
encap_source_address.value_namespace_prefix = name_space_prefix;
}
if(value_path == "locator-count")
{
locator_count = value;
locator_count.value_namespace = name_space;
locator_count.value_namespace_prefix = name_space_prefix;
}
}
void Fib::Nodes::Node::Protocols::Protocol::ProtocolGlobal::SegmentRouting::Srv6::set_filter(const std::string & value_path, YFilter yfilter)
{
if(value_path == "srv6-enabled")
{
srv6_enabled.yfilter = yfilter;
}
if(value_path == "encap-source-address")
{
encap_source_address.yfilter = yfilter;
}
if(value_path == "locator-count")
{
locator_count.yfilter = yfilter;
}
}
bool Fib::Nodes::Node::Protocols::Protocol::ProtocolGlobal::SegmentRouting::Srv6::has_leaf_or_child_of_name(const std::string & name) const
{
if(name == "locator" || name == "srv6-enabled" || name == "encap-source-address" || name == "locator-count")
return true;
return false;
}
Fib::Nodes::Node::Protocols::Protocol::ProtocolGlobal::SegmentRouting::Srv6::Locator::Locator()
:
name{YType::str, "name"},
prefix{YType::str, "prefix"},
locator{YType::str, "locator"}
{
yang_name = "locator"; yang_parent_name = "srv6"; is_top_level_class = false; has_list_ancestor = true;
}
Fib::Nodes::Node::Protocols::Protocol::ProtocolGlobal::SegmentRouting::Srv6::Locator::~Locator()
{
}
bool Fib::Nodes::Node::Protocols::Protocol::ProtocolGlobal::SegmentRouting::Srv6::Locator::has_data() const
{
if (is_presence_container) return true;
return name.is_set
|| prefix.is_set
|| locator.is_set;
}
bool Fib::Nodes::Node::Protocols::Protocol::ProtocolGlobal::SegmentRouting::Srv6::Locator::has_operation() const
{
return is_set(yfilter)
|| ydk::is_set(name.yfilter)
|| ydk::is_set(prefix.yfilter)
|| ydk::is_set(locator.yfilter);
}
std::string Fib::Nodes::Node::Protocols::Protocol::ProtocolGlobal::SegmentRouting::Srv6::Locator::get_segment_path() const
{
std::ostringstream path_buffer;
path_buffer << "locator";
path_buffer << "[" << get_ylist_key() << "]";
return path_buffer.str();
}
std::vector<std::pair<std::string, LeafData> > Fib::Nodes::Node::Protocols::Protocol::ProtocolGlobal::SegmentRouting::Srv6::Locator::get_name_leaf_data() const
{
std::vector<std::pair<std::string, LeafData> > leaf_name_data {};
if (name.is_set || is_set(name.yfilter)) leaf_name_data.push_back(name.get_name_leafdata());
if (prefix.is_set || is_set(prefix.yfilter)) leaf_name_data.push_back(prefix.get_name_leafdata());
if (locator.is_set || is_set(locator.yfilter)) leaf_name_data.push_back(locator.get_name_leafdata());
return leaf_name_data;
}
std::shared_ptr<ydk::Entity> Fib::Nodes::Node::Protocols::Protocol::ProtocolGlobal::SegmentRouting::Srv6::Locator::get_child_by_name(const std::string & child_yang_name, const std::string & segment_path)
{
return nullptr;
}
std::map<std::string, std::shared_ptr<ydk::Entity>> Fib::Nodes::Node::Protocols::Protocol::ProtocolGlobal::SegmentRouting::Srv6::Locator::get_children() const
{
std::map<std::string, std::shared_ptr<ydk::Entity>> _children{};
char count_=0;
return _children;
}
void Fib::Nodes::Node::Protocols::Protocol::ProtocolGlobal::SegmentRouting::Srv6::Locator::set_value(const std::string & value_path, const std::string & value, const std::string & name_space, const std::string & name_space_prefix)
{
if(value_path == "name")
{
name = value;
name.value_namespace = name_space;
name.value_namespace_prefix = name_space_prefix;
}
if(value_path == "prefix")
{
prefix = value;
prefix.value_namespace = name_space;
prefix.value_namespace_prefix = name_space_prefix;
}
if(value_path == "locator")
{
locator = value;
locator.value_namespace = name_space;
locator.value_namespace_prefix = name_space_prefix;
}
}
void Fib::Nodes::Node::Protocols::Protocol::ProtocolGlobal::SegmentRouting::Srv6::Locator::set_filter(const std::string & value_path, YFilter yfilter)
{
if(value_path == "name")
{
name.yfilter = yfilter;
}
if(value_path == "prefix")
{
prefix.yfilter = yfilter;
}
if(value_path == "locator")
{
locator.yfilter = yfilter;
}
}
bool Fib::Nodes::Node::Protocols::Protocol::ProtocolGlobal::SegmentRouting::Srv6::Locator::has_leaf_or_child_of_name(const std::string & name) const
{
if(name == "name" || name == "prefix" || name == "locator")
return true;
return false;
}
Fib::Nodes::Node::Protocols::Protocol::NhIds::NhIds()
:
nh_id(this, {})
{
yang_name = "nh-ids"; yang_parent_name = "protocol"; is_top_level_class = false; has_list_ancestor = true;
}
Fib::Nodes::Node::Protocols::Protocol::NhIds::~NhIds()
{
}
bool Fib::Nodes::Node::Protocols::Protocol::NhIds::has_data() const
{
if (is_presence_container) return true;
for (std::size_t index=0; index<nh_id.len(); index++)
{
if(nh_id[index]->has_data())
return true;
}
return false;
}
bool Fib::Nodes::Node::Protocols::Protocol::NhIds::has_operation() const
{
for (std::size_t index=0; index<nh_id.len(); index++)
{
if(nh_id[index]->has_operation())
return true;
}
return is_set(yfilter);
}
std::string Fib::Nodes::Node::Protocols::Protocol::NhIds::get_segment_path() const
{
std::ostringstream path_buffer;
path_buffer << "nh-ids";
return path_buffer.str();
}
std::vector<std::pair<std::string, LeafData> > Fib::Nodes::Node::Protocols::Protocol::NhIds::get_name_leaf_data() const
{
std::vector<std::pair<std::string, LeafData> > leaf_name_data {};
return leaf_name_data;
}
std::shared_ptr<ydk::Entity> Fib::Nodes::Node::Protocols::Protocol::NhIds::get_child_by_name(const std::string & child_yang_name, const std::string & segment_path)
{
if(child_yang_name == "nh-id")
{
auto ent_ = std::make_shared<Fib::Nodes::Node::Protocols::Protocol::NhIds::NhId>();
ent_->parent = this;
nh_id.append(ent_);
return ent_;
}
return nullptr;
}
std::map<std::string, std::shared_ptr<ydk::Entity>> Fib::Nodes::Node::Protocols::Protocol::NhIds::get_children() const
{
std::map<std::string, std::shared_ptr<ydk::Entity>> _children{};
char count_=0;
count_ = 0;
for (auto ent_ : nh_id.entities())
{
if(_children.find(ent_->get_segment_path()) == _children.end())
_children[ent_->get_segment_path()] = ent_;
else
_children[ent_->get_segment_path()+count_++] = ent_;
}
return _children;
}
void Fib::Nodes::Node::Protocols::Protocol::NhIds::set_value(const std::string & value_path, const std::string & value, const std::string & name_space, const std::string & name_space_prefix)
{
}
void Fib::Nodes::Node::Protocols::Protocol::NhIds::set_filter(const std::string & value_path, YFilter yfilter)
{
}
bool Fib::Nodes::Node::Protocols::Protocol::NhIds::has_leaf_or_child_of_name(const std::string & name) const
{
if(name == "nh-id")
return true;
return false;
}
Fib::Nodes::Node::Protocols::Protocol::NhIds::NhId::NhId()
:
nh_id{YType::uint32, "nh-id"},
nh_interface_name{YType::str, "nh-interface-name"},
nh_address{YType::str, "nh-address"},
nh_interface_name_xr{YType::str, "nh-interface-name-xr"},
nh_address_xr{YType::str, "nh-address-xr"},
nh_protocol{YType::uint8, "nh-protocol"},
nh_link_type{YType::uint8, "nh-link-type"},
nh_table_id{YType::uint32, "nh-table-id"},
nh_id_xr{YType::uint32, "nh-id-xr"},
nh_id_application{YType::uint8, "nh-id-application"},
version{YType::uint64, "version"},
time_of_last_update_in_msec{YType::uint64, "time-of-last-update-in-msec"},
encap_id{YType::uint64, "encap-id"}
{
yang_name = "nh-id"; yang_parent_name = "nh-ids"; is_top_level_class = false; has_list_ancestor = true;
}
Fib::Nodes::Node::Protocols::Protocol::NhIds::NhId::~NhId()
{
}
bool Fib::Nodes::Node::Protocols::Protocol::NhIds::NhId::has_data() const
{
if (is_presence_container) return true;
return nh_id.is_set
|| nh_interface_name.is_set
|| nh_address.is_set
|| nh_interface_name_xr.is_set
|| nh_address_xr.is_set
|| nh_protocol.is_set
|| nh_link_type.is_set
|| nh_table_id.is_set
|| nh_id_xr.is_set
|| nh_id_application.is_set
|| version.is_set
|| time_of_last_update_in_msec.is_set
|| encap_id.is_set;
}
bool Fib::Nodes::Node::Protocols::Protocol::NhIds::NhId::has_operation() const
{
return is_set(yfilter)
|| ydk::is_set(nh_id.yfilter)
|| ydk::is_set(nh_interface_name.yfilter)
|| ydk::is_set(nh_address.yfilter)
|| ydk::is_set(nh_interface_name_xr.yfilter)
|| ydk::is_set(nh_address_xr.yfilter)
|| ydk::is_set(nh_protocol.yfilter)
|| ydk::is_set(nh_link_type.yfilter)
|| ydk::is_set(nh_table_id.yfilter)
|| ydk::is_set(nh_id_xr.yfilter)
|| ydk::is_set(nh_id_application.yfilter)
|| ydk::is_set(version.yfilter)
|| ydk::is_set(time_of_last_update_in_msec.yfilter)
|| ydk::is_set(encap_id.yfilter);
}
std::string Fib::Nodes::Node::Protocols::Protocol::NhIds::NhId::get_segment_path() const
{
std::ostringstream path_buffer;
path_buffer << "nh-id";
path_buffer << "[" << get_ylist_key() << "]";
return path_buffer.str();
}
std::vector<std::pair<std::string, LeafData> > Fib::Nodes::Node::Protocols::Protocol::NhIds::NhId::get_name_leaf_data() const
{
std::vector<std::pair<std::string, LeafData> > leaf_name_data {};
if (nh_id.is_set || is_set(nh_id.yfilter)) leaf_name_data.push_back(nh_id.get_name_leafdata());
if (nh_interface_name.is_set || is_set(nh_interface_name.yfilter)) leaf_name_data.push_back(nh_interface_name.get_name_leafdata());
if (nh_address.is_set || is_set(nh_address.yfilter)) leaf_name_data.push_back(nh_address.get_name_leafdata());
if (nh_interface_name_xr.is_set || is_set(nh_interface_name_xr.yfilter)) leaf_name_data.push_back(nh_interface_name_xr.get_name_leafdata());
if (nh_address_xr.is_set || is_set(nh_address_xr.yfilter)) leaf_name_data.push_back(nh_address_xr.get_name_leafdata());
if (nh_protocol.is_set || is_set(nh_protocol.yfilter)) leaf_name_data.push_back(nh_protocol.get_name_leafdata());
if (nh_link_type.is_set || is_set(nh_link_type.yfilter)) leaf_name_data.push_back(nh_link_type.get_name_leafdata());
if (nh_table_id.is_set || is_set(nh_table_id.yfilter)) leaf_name_data.push_back(nh_table_id.get_name_leafdata());
if (nh_id_xr.is_set || is_set(nh_id_xr.yfilter)) leaf_name_data.push_back(nh_id_xr.get_name_leafdata());
if (nh_id_application.is_set || is_set(nh_id_application.yfilter)) leaf_name_data.push_back(nh_id_application.get_name_leafdata());
if (version.is_set || is_set(version.yfilter)) leaf_name_data.push_back(version.get_name_leafdata());
if (time_of_last_update_in_msec.is_set || is_set(time_of_last_update_in_msec.yfilter)) leaf_name_data.push_back(time_of_last_update_in_msec.get_name_leafdata());
if (encap_id.is_set || is_set(encap_id.yfilter)) leaf_name_data.push_back(encap_id.get_name_leafdata());
return leaf_name_data;
}
std::shared_ptr<ydk::Entity> Fib::Nodes::Node::Protocols::Protocol::NhIds::NhId::get_child_by_name(const std::string & child_yang_name, const std::string & segment_path)
{
return nullptr;
}
std::map<std::string, std::shared_ptr<ydk::Entity>> Fib::Nodes::Node::Protocols::Protocol::NhIds::NhId::get_children() const
{
std::map<std::string, std::shared_ptr<ydk::Entity>> _children{};
char count_=0;
return _children;
}
void Fib::Nodes::Node::Protocols::Protocol::NhIds::NhId::set_value(const std::string & value_path, const std::string & value, const std::string & name_space, const std::string & name_space_prefix)
{
if(value_path == "nh-id")
{
nh_id = value;
nh_id.value_namespace = name_space;
nh_id.value_namespace_prefix = name_space_prefix;
}
if(value_path == "nh-interface-name")
{
nh_interface_name = value;
nh_interface_name.value_namespace = name_space;
nh_interface_name.value_namespace_prefix = name_space_prefix;
}
if(value_path == "nh-address")
{
nh_address = value;
nh_address.value_namespace = name_space;
nh_address.value_namespace_prefix = name_space_prefix;
}
if(value_path == "nh-interface-name-xr")
{
nh_interface_name_xr = value;
nh_interface_name_xr.value_namespace = name_space;
nh_interface_name_xr.value_namespace_prefix = name_space_prefix;
}
if(value_path == "nh-address-xr")
{
nh_address_xr = value;
nh_address_xr.value_namespace = name_space;
nh_address_xr.value_namespace_prefix = name_space_prefix;
}
if(value_path == "nh-protocol")
{
nh_protocol = value;
nh_protocol.value_namespace = name_space;
nh_protocol.value_namespace_prefix = name_space_prefix;
}
if(value_path == "nh-link-type")
{
nh_link_type = value;
nh_link_type.value_namespace = name_space;
nh_link_type.value_namespace_prefix = name_space_prefix;
}
if(value_path == "nh-table-id")
{
nh_table_id = value;
nh_table_id.value_namespace = name_space;
nh_table_id.value_namespace_prefix = name_space_prefix;
}
if(value_path == "nh-id-xr")
{
nh_id_xr = value;
nh_id_xr.value_namespace = name_space;
nh_id_xr.value_namespace_prefix = name_space_prefix;
}
if(value_path == "nh-id-application")
{
nh_id_application = value;
nh_id_application.value_namespace = name_space;
nh_id_application.value_namespace_prefix = name_space_prefix;
}
if(value_path == "version")
{
version = value;
version.value_namespace = name_space;
version.value_namespace_prefix = name_space_prefix;
}
if(value_path == "time-of-last-update-in-msec")
{
time_of_last_update_in_msec = value;
time_of_last_update_in_msec.value_namespace = name_space;
time_of_last_update_in_msec.value_namespace_prefix = name_space_prefix;
}
if(value_path == "encap-id")
{
encap_id = value;
encap_id.value_namespace = name_space;
encap_id.value_namespace_prefix = name_space_prefix;
}
}
void Fib::Nodes::Node::Protocols::Protocol::NhIds::NhId::set_filter(const std::string & value_path, YFilter yfilter)
{
if(value_path == "nh-id")
{
nh_id.yfilter = yfilter;
}
if(value_path == "nh-interface-name")
{
nh_interface_name.yfilter = yfilter;
}
if(value_path == "nh-address")
{
nh_address.yfilter = yfilter;
}
if(value_path == "nh-interface-name-xr")
{
nh_interface_name_xr.yfilter = yfilter;
}
if(value_path == "nh-address-xr")
{
nh_address_xr.yfilter = yfilter;
}
if(value_path == "nh-protocol")
{
nh_protocol.yfilter = yfilter;
}
if(value_path == "nh-link-type")
{
nh_link_type.yfilter = yfilter;
}
if(value_path == "nh-table-id")
{
nh_table_id.yfilter = yfilter;
}
if(value_path == "nh-id-xr")
{
nh_id_xr.yfilter = yfilter;
}
if(value_path == "nh-id-application")
{
nh_id_application.yfilter = yfilter;
}
if(value_path == "version")
{
version.yfilter = yfilter;
}
if(value_path == "time-of-last-update-in-msec")
{
time_of_last_update_in_msec.yfilter = yfilter;
}
if(value_path == "encap-id")
{
encap_id.yfilter = yfilter;
}
}
bool Fib::Nodes::Node::Protocols::Protocol::NhIds::NhId::has_leaf_or_child_of_name(const std::string & name) const
{
if(name == "nh-id" || name == "nh-interface-name" || name == "nh-address" || name == "nh-interface-name-xr" || name == "nh-address-xr" || name == "nh-protocol" || name == "nh-link-type" || name == "nh-table-id" || name == "nh-id-xr" || name == "nh-id-application" || name == "version" || name == "time-of-last-update-in-msec" || name == "encap-id")
return true;
return false;
}
Fib::Nodes::Node::Protocols::Protocol::FrrNhinfoPendings::FrrNhinfoPendings()
:
frr_nhinfo_pending(this, {})
{
yang_name = "frr-nhinfo-pendings"; yang_parent_name = "protocol"; is_top_level_class = false; has_list_ancestor = true;
}
Fib::Nodes::Node::Protocols::Protocol::FrrNhinfoPendings::~FrrNhinfoPendings()
{
}
bool Fib::Nodes::Node::Protocols::Protocol::FrrNhinfoPendings::has_data() const
{
if (is_presence_container) return true;
for (std::size_t index=0; index<frr_nhinfo_pending.len(); index++)
{
if(frr_nhinfo_pending[index]->has_data())
return true;
}
return false;
}
bool Fib::Nodes::Node::Protocols::Protocol::FrrNhinfoPendings::has_operation() const
{
for (std::size_t index=0; index<frr_nhinfo_pending.len(); index++)
{
if(frr_nhinfo_pending[index]->has_operation())
return true;
}
return is_set(yfilter);
}
std::string Fib::Nodes::Node::Protocols::Protocol::FrrNhinfoPendings::get_segment_path() const
{
std::ostringstream path_buffer;
path_buffer << "frr-nhinfo-pendings";
return path_buffer.str();
}
std::vector<std::pair<std::string, LeafData> > Fib::Nodes::Node::Protocols::Protocol::FrrNhinfoPendings::get_name_leaf_data() const
{
std::vector<std::pair<std::string, LeafData> > leaf_name_data {};
return leaf_name_data;
}
std::shared_ptr<ydk::Entity> Fib::Nodes::Node::Protocols::Protocol::FrrNhinfoPendings::get_child_by_name(const std::string & child_yang_name, const std::string & segment_path)
{
if(child_yang_name == "frr-nhinfo-pending")
{
auto ent_ = std::make_shared<Fib::Nodes::Node::Protocols::Protocol::FrrNhinfoPendings::FrrNhinfoPending>();
ent_->parent = this;
frr_nhinfo_pending.append(ent_);
return ent_;
}
return nullptr;
}
std::map<std::string, std::shared_ptr<ydk::Entity>> Fib::Nodes::Node::Protocols::Protocol::FrrNhinfoPendings::get_children() const
{
std::map<std::string, std::shared_ptr<ydk::Entity>> _children{};
char count_=0;
count_ = 0;
for (auto ent_ : frr_nhinfo_pending.entities())
{
if(_children.find(ent_->get_segment_path()) == _children.end())
_children[ent_->get_segment_path()] = ent_;
else
_children[ent_->get_segment_path()+count_++] = ent_;
}
return _children;
}
void Fib::Nodes::Node::Protocols::Protocol::FrrNhinfoPendings::set_value(const std::string & value_path, const std::string & value, const std::string & name_space, const std::string & name_space_prefix)
{
}
void Fib::Nodes::Node::Protocols::Protocol::FrrNhinfoPendings::set_filter(const std::string & value_path, YFilter yfilter)
{
}
bool Fib::Nodes::Node::Protocols::Protocol::FrrNhinfoPendings::has_leaf_or_child_of_name(const std::string & name) const
{
if(name == "frr-nhinfo-pending")
return true;
return false;
}
Fib::Nodes::Node::Protocols::Protocol::FrrNhinfoPendings::FrrNhinfoPending::FrrNhinfoPending()
:
queue_index{YType::uint32, "queue-index"},
frr_type{YType::enumeration, "frr-type"},
link_type{YType::enumeration, "link-type"},
prefix_length{YType::uint32, "prefix-length"},
interface_name{YType::str, "interface-name"},
main_interface_name{YType::str, "main-interface-name"},
next_hop_prefix{YType::str, "next-hop-prefix"},
replicated_nh_type{YType::enumeration, "replicated-nh-type"},
si_frrtype{YType::uint32, "si-frrtype"},
si_refcount{YType::uint32, "si-refcount"},
si_flags{YType::uint32, "si-flags"},
si_ifh{YType::uint32, "si-ifh"},
si_main_ifh{YType::uint32, "si-main-ifh"},
si_linktype{YType::uint32, "si-linktype"},
si_nh_pfx_proto{YType::uint32, "si-nh-pfx-proto"},
si_nh_pfx{YType::str, "si-nh-pfx"},
si_nh_pfx_len{YType::uint32, "si-nh-pfx-len"},
si_tunid{YType::uint32, "si-tunid"},
si_frr_ptr{YType::uint32, "si-frr-ptr"},
si_prot_frr_ptr{YType::uint32, "si-prot-frr-ptr"},
si_parent_nh_ptr{YType::uint32, "si-parent-nh-ptr"},
si_repl_parent_type{YType::uint8, "si-repl-parent-type"},
si_upd_ts{YType::uint64, "si-upd-ts"}
{
yang_name = "frr-nhinfo-pending"; yang_parent_name = "frr-nhinfo-pendings"; is_top_level_class = false; has_list_ancestor = true;
}
Fib::Nodes::Node::Protocols::Protocol::FrrNhinfoPendings::FrrNhinfoPending::~FrrNhinfoPending()
{
}
bool Fib::Nodes::Node::Protocols::Protocol::FrrNhinfoPendings::FrrNhinfoPending::has_data() const
{
if (is_presence_container) return true;
return queue_index.is_set
|| frr_type.is_set
|| link_type.is_set
|| prefix_length.is_set
|| interface_name.is_set
|| main_interface_name.is_set
|| next_hop_prefix.is_set
|| replicated_nh_type.is_set
|| si_frrtype.is_set
|| si_refcount.is_set
|| si_flags.is_set
|| si_ifh.is_set
|| si_main_ifh.is_set
|| si_linktype.is_set
|| si_nh_pfx_proto.is_set
|| si_nh_pfx.is_set
|| si_nh_pfx_len.is_set
|| si_tunid.is_set
|| si_frr_ptr.is_set
|| si_prot_frr_ptr.is_set
|| si_parent_nh_ptr.is_set
|| si_repl_parent_type.is_set
|| si_upd_ts.is_set;
}
bool Fib::Nodes::Node::Protocols::Protocol::FrrNhinfoPendings::FrrNhinfoPending::has_operation() const
{
return is_set(yfilter)
|| ydk::is_set(queue_index.yfilter)
|| ydk::is_set(frr_type.yfilter)
|| ydk::is_set(link_type.yfilter)
|| ydk::is_set(prefix_length.yfilter)
|| ydk::is_set(interface_name.yfilter)
|| ydk::is_set(main_interface_name.yfilter)
|| ydk::is_set(next_hop_prefix.yfilter)
|| ydk::is_set(replicated_nh_type.yfilter)
|| ydk::is_set(si_frrtype.yfilter)
|| ydk::is_set(si_refcount.yfilter)
|| ydk::is_set(si_flags.yfilter)
|| ydk::is_set(si_ifh.yfilter)
|| ydk::is_set(si_main_ifh.yfilter)
|| ydk::is_set(si_linktype.yfilter)
|| ydk::is_set(si_nh_pfx_proto.yfilter)
|| ydk::is_set(si_nh_pfx.yfilter)
|| ydk::is_set(si_nh_pfx_len.yfilter)
|| ydk::is_set(si_tunid.yfilter)
|| ydk::is_set(si_frr_ptr.yfilter)
|| ydk::is_set(si_prot_frr_ptr.yfilter)
|| ydk::is_set(si_parent_nh_ptr.yfilter)
|| ydk::is_set(si_repl_parent_type.yfilter)
|| ydk::is_set(si_upd_ts.yfilter);
}
std::string Fib::Nodes::Node::Protocols::Protocol::FrrNhinfoPendings::FrrNhinfoPending::get_segment_path() const
{
std::ostringstream path_buffer;
path_buffer << "frr-nhinfo-pending";
path_buffer << "[" << get_ylist_key() << "]";
return path_buffer.str();
}
std::vector<std::pair<std::string, LeafData> > Fib::Nodes::Node::Protocols::Protocol::FrrNhinfoPendings::FrrNhinfoPending::get_name_leaf_data() const
{
std::vector<std::pair<std::string, LeafData> > leaf_name_data {};
if (queue_index.is_set || is_set(queue_index.yfilter)) leaf_name_data.push_back(queue_index.get_name_leafdata());
if (frr_type.is_set || is_set(frr_type.yfilter)) leaf_name_data.push_back(frr_type.get_name_leafdata());
if (link_type.is_set || is_set(link_type.yfilter)) leaf_name_data.push_back(link_type.get_name_leafdata());
if (prefix_length.is_set || is_set(prefix_length.yfilter)) leaf_name_data.push_back(prefix_length.get_name_leafdata());
if (interface_name.is_set || is_set(interface_name.yfilter)) leaf_name_data.push_back(interface_name.get_name_leafdata());
if (main_interface_name.is_set || is_set(main_interface_name.yfilter)) leaf_name_data.push_back(main_interface_name.get_name_leafdata());
if (next_hop_prefix.is_set || is_set(next_hop_prefix.yfilter)) leaf_name_data.push_back(next_hop_prefix.get_name_leafdata());
if (replicated_nh_type.is_set || is_set(replicated_nh_type.yfilter)) leaf_name_data.push_back(replicated_nh_type.get_name_leafdata());
if (si_frrtype.is_set || is_set(si_frrtype.yfilter)) leaf_name_data.push_back(si_frrtype.get_name_leafdata());
if (si_refcount.is_set || is_set(si_refcount.yfilter)) leaf_name_data.push_back(si_refcount.get_name_leafdata());
if (si_flags.is_set || is_set(si_flags.yfilter)) leaf_name_data.push_back(si_flags.get_name_leafdata());
if (si_ifh.is_set || is_set(si_ifh.yfilter)) leaf_name_data.push_back(si_ifh.get_name_leafdata());
if (si_main_ifh.is_set || is_set(si_main_ifh.yfilter)) leaf_name_data.push_back(si_main_ifh.get_name_leafdata());
if (si_linktype.is_set || is_set(si_linktype.yfilter)) leaf_name_data.push_back(si_linktype.get_name_leafdata());
if (si_nh_pfx_proto.is_set || is_set(si_nh_pfx_proto.yfilter)) leaf_name_data.push_back(si_nh_pfx_proto.get_name_leafdata());
if (si_nh_pfx.is_set || is_set(si_nh_pfx.yfilter)) leaf_name_data.push_back(si_nh_pfx.get_name_leafdata());
if (si_nh_pfx_len.is_set || is_set(si_nh_pfx_len.yfilter)) leaf_name_data.push_back(si_nh_pfx_len.get_name_leafdata());
if (si_tunid.is_set || is_set(si_tunid.yfilter)) leaf_name_data.push_back(si_tunid.get_name_leafdata());
if (si_frr_ptr.is_set || is_set(si_frr_ptr.yfilter)) leaf_name_data.push_back(si_frr_ptr.get_name_leafdata());
if (si_prot_frr_ptr.is_set || is_set(si_prot_frr_ptr.yfilter)) leaf_name_data.push_back(si_prot_frr_ptr.get_name_leafdata());
if (si_parent_nh_ptr.is_set || is_set(si_parent_nh_ptr.yfilter)) leaf_name_data.push_back(si_parent_nh_ptr.get_name_leafdata());
if (si_repl_parent_type.is_set || is_set(si_repl_parent_type.yfilter)) leaf_name_data.push_back(si_repl_parent_type.get_name_leafdata());
if (si_upd_ts.is_set || is_set(si_upd_ts.yfilter)) leaf_name_data.push_back(si_upd_ts.get_name_leafdata());
return leaf_name_data;
}
std::shared_ptr<ydk::Entity> Fib::Nodes::Node::Protocols::Protocol::FrrNhinfoPendings::FrrNhinfoPending::get_child_by_name(const std::string & child_yang_name, const std::string & segment_path)
{
return nullptr;
}
std::map<std::string, std::shared_ptr<ydk::Entity>> Fib::Nodes::Node::Protocols::Protocol::FrrNhinfoPendings::FrrNhinfoPending::get_children() const
{
std::map<std::string, std::shared_ptr<ydk::Entity>> _children{};
char count_=0;
return _children;
}
void Fib::Nodes::Node::Protocols::Protocol::FrrNhinfoPendings::FrrNhinfoPending::set_value(const std::string & value_path, const std::string & value, const std::string & name_space, const std::string & name_space_prefix)
{
if(value_path == "queue-index")
{
queue_index = value;
queue_index.value_namespace = name_space;
queue_index.value_namespace_prefix = name_space_prefix;
}
if(value_path == "frr-type")
{
frr_type = value;
frr_type.value_namespace = name_space;
frr_type.value_namespace_prefix = name_space_prefix;
}
if(value_path == "link-type")
{
link_type = value;
link_type.value_namespace = name_space;
link_type.value_namespace_prefix = name_space_prefix;
}
if(value_path == "prefix-length")
{
prefix_length = value;
prefix_length.value_namespace = name_space;
prefix_length.value_namespace_prefix = name_space_prefix;
}
if(value_path == "interface-name")
{
interface_name = value;
interface_name.value_namespace = name_space;
interface_name.value_namespace_prefix = name_space_prefix;
}
if(value_path == "main-interface-name")
{
main_interface_name = value;
main_interface_name.value_namespace = name_space;
main_interface_name.value_namespace_prefix = name_space_prefix;
}
if(value_path == "next-hop-prefix")
{
next_hop_prefix = value;
next_hop_prefix.value_namespace = name_space;
next_hop_prefix.value_namespace_prefix = name_space_prefix;
}
if(value_path == "replicated-nh-type")
{
replicated_nh_type = value;
replicated_nh_type.value_namespace = name_space;
replicated_nh_type.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-frrtype")
{
si_frrtype = value;
si_frrtype.value_namespace = name_space;
si_frrtype.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-refcount")
{
si_refcount = value;
si_refcount.value_namespace = name_space;
si_refcount.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-flags")
{
si_flags = value;
si_flags.value_namespace = name_space;
si_flags.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-ifh")
{
si_ifh = value;
si_ifh.value_namespace = name_space;
si_ifh.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-main-ifh")
{
si_main_ifh = value;
si_main_ifh.value_namespace = name_space;
si_main_ifh.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-linktype")
{
si_linktype = value;
si_linktype.value_namespace = name_space;
si_linktype.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-nh-pfx-proto")
{
si_nh_pfx_proto = value;
si_nh_pfx_proto.value_namespace = name_space;
si_nh_pfx_proto.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-nh-pfx")
{
si_nh_pfx = value;
si_nh_pfx.value_namespace = name_space;
si_nh_pfx.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-nh-pfx-len")
{
si_nh_pfx_len = value;
si_nh_pfx_len.value_namespace = name_space;
si_nh_pfx_len.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-tunid")
{
si_tunid = value;
si_tunid.value_namespace = name_space;
si_tunid.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-frr-ptr")
{
si_frr_ptr = value;
si_frr_ptr.value_namespace = name_space;
si_frr_ptr.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-prot-frr-ptr")
{
si_prot_frr_ptr = value;
si_prot_frr_ptr.value_namespace = name_space;
si_prot_frr_ptr.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-parent-nh-ptr")
{
si_parent_nh_ptr = value;
si_parent_nh_ptr.value_namespace = name_space;
si_parent_nh_ptr.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-repl-parent-type")
{
si_repl_parent_type = value;
si_repl_parent_type.value_namespace = name_space;
si_repl_parent_type.value_namespace_prefix = name_space_prefix;
}
if(value_path == "si-upd-ts")
{
si_upd_ts = value;
si_upd_ts.value_namespace = name_space;
si_upd_ts.value_namespace_prefix = name_space_prefix;
}
}
void Fib::Nodes::Node::Protocols::Protocol::FrrNhinfoPendings::FrrNhinfoPending::set_filter(const std::string & value_path, YFilter yfilter)
{
if(value_path == "queue-index")
{
queue_index.yfilter = yfilter;
}
if(value_path == "frr-type")
{
frr_type.yfilter = yfilter;
}
if(value_path == "link-type")
{
link_type.yfilter = yfilter;
}
if(value_path == "prefix-length")
{
prefix_length.yfilter = yfilter;
}
if(value_path == "interface-name")
{
interface_name.yfilter = yfilter;
}
if(value_path == "main-interface-name")
{
main_interface_name.yfilter = yfilter;
}
if(value_path == "next-hop-prefix")
{
next_hop_prefix.yfilter = yfilter;
}
if(value_path == "replicated-nh-type")
{
replicated_nh_type.yfilter = yfilter;
}
if(value_path == "si-frrtype")
{
si_frrtype.yfilter = yfilter;
}
if(value_path == "si-refcount")
{
si_refcount.yfilter = yfilter;
}
if(value_path == "si-flags")
{
si_flags.yfilter = yfilter;
}
if(value_path == "si-ifh")
{
si_ifh.yfilter = yfilter;
}
if(value_path == "si-main-ifh")
{
si_main_ifh.yfilter = yfilter;
}
if(value_path == "si-linktype")
{
si_linktype.yfilter = yfilter;
}
if(value_path == "si-nh-pfx-proto")
{
si_nh_pfx_proto.yfilter = yfilter;
}
if(value_path == "si-nh-pfx")
{
si_nh_pfx.yfilter = yfilter;
}
if(value_path == "si-nh-pfx-len")
{
si_nh_pfx_len.yfilter = yfilter;
}
if(value_path == "si-tunid")
{
si_tunid.yfilter = yfilter;
}
if(value_path == "si-frr-ptr")
{
si_frr_ptr.yfilter = yfilter;
}
if(value_path == "si-prot-frr-ptr")
{
si_prot_frr_ptr.yfilter = yfilter;
}
if(value_path == "si-parent-nh-ptr")
{
si_parent_nh_ptr.yfilter = yfilter;
}
if(value_path == "si-repl-parent-type")
{
si_repl_parent_type.yfilter = yfilter;
}
if(value_path == "si-upd-ts")
{
si_upd_ts.yfilter = yfilter;
}
}
bool Fib::Nodes::Node::Protocols::Protocol::FrrNhinfoPendings::FrrNhinfoPending::has_leaf_or_child_of_name(const std::string & name) const
{
if(name == "queue-index" || name == "frr-type" || name == "link-type" || name == "prefix-length" || name == "interface-name" || name == "main-interface-name" || name == "next-hop-prefix" || name == "replicated-nh-type" || name == "si-frrtype" || name == "si-refcount" || name == "si-flags" || name == "si-ifh" || name == "si-main-ifh" || name == "si-linktype" || name == "si-nh-pfx-proto" || name == "si-nh-pfx" || name == "si-nh-pfx-len" || name == "si-tunid" || name == "si-frr-ptr" || name == "si-prot-frr-ptr" || name == "si-parent-nh-ptr" || name == "si-repl-parent-type" || name == "si-upd-ts")
return true;
return false;
}
Fib::Nodes::Node::Protocols::Protocol::ExternalClientSummaries::ExternalClientSummaries()
:
external_client_summary(this, {})
{
yang_name = "external-client-summaries"; yang_parent_name = "protocol"; is_top_level_class = false; has_list_ancestor = true;
}
Fib::Nodes::Node::Protocols::Protocol::ExternalClientSummaries::~ExternalClientSummaries()
{
}
bool Fib::Nodes::Node::Protocols::Protocol::ExternalClientSummaries::has_data() const
{
if (is_presence_container) return true;
for (std::size_t index=0; index<external_client_summary.len(); index++)
{
if(external_client_summary[index]->has_data())
return true;
}
return false;
}
bool Fib::Nodes::Node::Protocols::Protocol::ExternalClientSummaries::has_operation() const
{
for (std::size_t index=0; index<external_client_summary.len(); index++)
{
if(external_client_summary[index]->has_operation())
return true;
}
return is_set(yfilter);
}
std::string Fib::Nodes::Node::Protocols::Protocol::ExternalClientSummaries::get_segment_path() const
{
std::ostringstream path_buffer;
path_buffer << "external-client-summaries";
return path_buffer.str();
}
std::vector<std::pair<std::string, LeafData> > Fib::Nodes::Node::Protocols::Protocol::ExternalClientSummaries::get_name_leaf_data() const
{
std::vector<std::pair<std::string, LeafData> > leaf_name_data {};
return leaf_name_data;
}
std::shared_ptr<ydk::Entity> Fib::Nodes::Node::Protocols::Protocol::ExternalClientSummaries::get_child_by_name(const std::string & child_yang_name, const std::string & segment_path)
{
if(child_yang_name == "external-client-summary")
{
auto ent_ = std::make_shared<Fib::Nodes::Node::Protocols::Protocol::ExternalClientSummaries::ExternalClientSummary>();
ent_->parent = this;
external_client_summary.append(ent_);
return ent_;
}
return nullptr;
}
std::map<std::string, std::shared_ptr<ydk::Entity>> Fib::Nodes::Node::Protocols::Protocol::ExternalClientSummaries::get_children() const
{
std::map<std::string, std::shared_ptr<ydk::Entity>> _children{};
char count_=0;
count_ = 0;
for (auto ent_ : external_client_summary.entities())
{
if(_children.find(ent_->get_segment_path()) == _children.end())
_children[ent_->get_segment_path()] = ent_;
else
_children[ent_->get_segment_path()+count_++] = ent_;
}
return _children;
}
void Fib::Nodes::Node::Protocols::Protocol::ExternalClientSummaries::set_value(const std::string & value_path, const std::string & value, const std::string & name_space, const std::string & name_space_prefix)
{
}
void Fib::Nodes::Node::Protocols::Protocol::ExternalClientSummaries::set_filter(const std::string & value_path, YFilter yfilter)
{
}
bool Fib::Nodes::Node::Protocols::Protocol::ExternalClientSummaries::has_leaf_or_child_of_name(const std::string & name) const
{
if(name == "external-client-summary")
return true;
return false;
}
Fib::Nodes::Node::Protocols::Protocol::ExternalClientSummaries::ExternalClientSummary::ExternalClientSummary()
:
ecd_ver{YType::uint32, "ecd-ver"},
id{YType::uint32, "id"},
ses_client_name{YType::str, "ses-client-name"},
ses_feci_fib_proto{YType::uint32, "ses-feci-fib-proto"},
ses_num_regs{YType::uint32, "ses-num-regs"},
ses_num_pending{YType::uint32, "ses-num-pending"},
ses_client_pulsed_time{YType::uint64, "ses-client-pulsed-time"},
ses_comp_id{YType::uint32, "ses-comp-id"},
ses_ecd_version{YType::uint32, "ses-ecd-version"}
,
ses_pl_sum(std::make_shared<Fib::Nodes::Node::Protocols::Protocol::ExternalClientSummaries::ExternalClientSummary::SesPlSum>())
{
ses_pl_sum->parent = this;
yang_name = "external-client-summary"; yang_parent_name = "external-client-summaries"; is_top_level_class = false; has_list_ancestor = true;
}
Fib::Nodes::Node::Protocols::Protocol::ExternalClientSummaries::ExternalClientSummary::~ExternalClientSummary()
{
}
bool Fib::Nodes::Node::Protocols::Protocol::ExternalClientSummaries::ExternalClientSummary::has_data() const
{
if (is_presence_container) return true;
return ecd_ver.is_set
|| id.is_set
|| ses_client_name.is_set
|| ses_feci_fib_proto.is_set
|| ses_num_regs.is_set
|| ses_num_pending.is_set
|| ses_client_pulsed_time.is_set
|| ses_comp_id.is_set
|| ses_ecd_version.is_set
|| (ses_pl_sum != nullptr && ses_pl_sum->has_data());
}
bool Fib::Nodes::Node::Protocols::Protocol::ExternalClientSummaries::ExternalClientSummary::has_operation() const
{
return is_set(yfilter)
|| ydk::is_set(ecd_ver.yfilter)
|| ydk::is_set(id.yfilter)
|| ydk::is_set(ses_client_name.yfilter)
|| ydk::is_set(ses_feci_fib_proto.yfilter)
|| ydk::is_set(ses_num_regs.yfilter)
|| ydk::is_set(ses_num_pending.yfilter)
|| ydk::is_set(ses_client_pulsed_time.yfilter)
|| ydk::is_set(ses_comp_id.yfilter)
|| ydk::is_set(ses_ecd_version.yfilter)
|| (ses_pl_sum != nullptr && ses_pl_sum->has_operation());
}
std::string Fib::Nodes::Node::Protocols::Protocol::ExternalClientSummaries::ExternalClientSummary::get_segment_path() const
{
std::ostringstream path_buffer;
path_buffer << "external-client-summary";
path_buffer << "[" << get_ylist_key() << "]";
return path_buffer.str();
}
std::vector<std::pair<std::string, LeafData> > Fib::Nodes::Node::Protocols::Protocol::ExternalClientSummaries::ExternalClientSummary::get_name_leaf_data() const
{
std::vector<std::pair<std::string, LeafData> > leaf_name_data {};
if (ecd_ver.is_set || is_set(ecd_ver.yfilter)) leaf_name_data.push_back(ecd_ver.get_name_leafdata());
if (id.is_set || is_set(id.yfilter)) leaf_name_data.push_back(id.get_name_leafdata());
if (ses_client_name.is_set || is_set(ses_client_name.yfilter)) leaf_name_data.push_back(ses_client_name.get_name_leafdata());
if (ses_feci_fib_proto.is_set || is_set(ses_feci_fib_proto.yfilter)) leaf_name_data.push_back(ses_feci_fib_proto.get_name_leafdata());
if (ses_num_regs.is_set || is_set(ses_num_regs.yfilter)) leaf_name_data.push_back(ses_num_regs.get_name_leafdata());
if (ses_num_pending.is_set || is_set(ses_num_pending.yfilter)) leaf_name_data.push_back(ses_num_pending.get_name_leafdata());
if (ses_client_pulsed_time.is_set || is_set(ses_client_pulsed_time.yfilter)) leaf_name_data.push_back(ses_client_pulsed_time.get_name_leafdata());
if (ses_comp_id.is_set || is_set(ses_comp_id.yfilter)) leaf_name_data.push_back(ses_comp_id.get_name_leafdata());
if (ses_ecd_version.is_set || is_set(ses_ecd_version.yfilter)) leaf_name_data.push_back(ses_ecd_version.get_name_leafdata());
return leaf_name_data;
}
std::shared_ptr<ydk::Entity> Fib::Nodes::Node::Protocols::Protocol::ExternalClientSummaries::ExternalClientSummary::get_child_by_name(const std::string & child_yang_name, const std::string & segment_path)
{
if(child_yang_name == "ses-pl-sum")
{
if(ses_pl_sum == nullptr)
{
ses_pl_sum = std::make_shared<Fib::Nodes::Node::Protocols::Protocol::ExternalClientSummaries::ExternalClientSummary::SesPlSum>();
}
return ses_pl_sum;
}
return nullptr;
}
std::map<std::string, std::shared_ptr<ydk::Entity>> Fib::Nodes::Node::Protocols::Protocol::ExternalClientSummaries::ExternalClientSummary::get_children() const
{
std::map<std::string, std::shared_ptr<ydk::Entity>> _children{};
char count_=0;
if(ses_pl_sum != nullptr)
{
_children["ses-pl-sum"] = ses_pl_sum;
}
return _children;
}
void Fib::Nodes::Node::Protocols::Protocol::ExternalClientSummaries::ExternalClientSummary::set_value(const std::string & value_path, const std::string & value, const std::string & name_space, const std::string & name_space_prefix)
{
if(value_path == "ecd-ver")
{
ecd_ver = value;
ecd_ver.value_namespace = name_space;
ecd_ver.value_namespace_prefix = name_space_prefix;
}
if(value_path == "id")
{
id = value;
id.value_namespace = name_space;
id.value_namespace_prefix = name_space_prefix;
}
if(value_path == "ses-client-name")
{
ses_client_name = value;
ses_client_name.value_namespace = name_space;
ses_client_name.value_namespace_prefix = name_space_prefix;
}
if(value_path == "ses-feci-fib-proto")
{
ses_feci_fib_proto = value;
ses_feci_fib_proto.value_namespace = name_space;
ses_feci_fib_proto.value_namespace_prefix = name_space_prefix;
}
if(value_path == "ses-num-regs")
{
ses_num_regs = value;
ses_num_regs.value_namespace = name_space;
ses_num_regs.value_namespace_prefix = name_space_prefix;
}
if(value_path == "ses-num-pending")
{
ses_num_pending = value;
ses_num_pending.value_namespace = name_space;
ses_num_pending.value_namespace_prefix = name_space_prefix;
}
if(value_path == "ses-client-pulsed-time")
{
ses_client_pulsed_time = value;
ses_client_pulsed_time.value_namespace = name_space;
ses_client_pulsed_time.value_namespace_prefix = name_space_prefix;
}
if(value_path == "ses-comp-id")
{
ses_comp_id = value;
ses_comp_id.value_namespace = name_space;
ses_comp_id.value_namespace_prefix = name_space_prefix;
}
if(value_path == "ses-ecd-version")
{
ses_ecd_version = value;
ses_ecd_version.value_namespace = name_space;
ses_ecd_version.value_namespace_prefix = name_space_prefix;
}
}
void Fib::Nodes::Node::Protocols::Protocol::ExternalClientSummaries::ExternalClientSummary::set_filter(const std::string & value_path, YFilter yfilter)
{
if(value_path == "ecd-ver")
{
ecd_ver.yfilter = yfilter;
}
if(value_path == "id")
{
id.yfilter = yfilter;
}
if(value_path == "ses-client-name")
{
ses_client_name.yfilter = yfilter;
}
if(value_path == "ses-feci-fib-proto")
{
ses_feci_fib_proto.yfilter = yfilter;
}
if(value_path == "ses-num-regs")
{
ses_num_regs.yfilter = yfilter;
}
if(value_path == "ses-num-pending")
{
ses_num_pending.yfilter = yfilter;
}
if(value_path == "ses-client-pulsed-time")
{
ses_client_pulsed_time.yfilter = yfilter;
}
if(value_path == "ses-comp-id")
{
ses_comp_id.yfilter = yfilter;
}
if(value_path == "ses-ecd-version")
{
ses_ecd_version.yfilter = yfilter;
}
}
bool Fib::Nodes::Node::Protocols::Protocol::ExternalClientSummaries::ExternalClientSummary::has_leaf_or_child_of_name(const std::string & name) const
{
if(name == "ses-pl-sum" || name == "ecd-ver" || name == "id" || name == "ses-client-name" || name == "ses-feci-fib-proto" || name == "ses-num-regs" || name == "ses-num-pending" || name == "ses-client-pulsed-time" || name == "ses-comp-id" || name == "ses-ecd-version")
return true;
return false;
}
Fib::Nodes::Node::Protocols::Protocol::ExternalClientSummaries::ExternalClientSummary::SesPlSum::SesPlSum()
:
sep_num_ecd_pathlist{YType::uint32, "sep-num-ecd-pathlist"},
sep_num_ecd_pl_unresolved{YType::uint32, "sep-num-ecd-pl-unresolved"}
,
sep_num_ecd_pl_per_interest(this, {})
{
yang_name = "ses-pl-sum"; yang_parent_name = "external-client-summary"; is_top_level_class = false; has_list_ancestor = true;
}
Fib::Nodes::Node::Protocols::Protocol::ExternalClientSummaries::ExternalClientSummary::SesPlSum::~SesPlSum()
{
}
bool Fib::Nodes::Node::Protocols::Protocol::ExternalClientSummaries::ExternalClientSummary::SesPlSum::has_data() const
{
if (is_presence_container) return true;
for (std::size_t index=0; index<sep_num_ecd_pl_per_interest.len(); index++)
{
if(sep_num_ecd_pl_per_interest[index]->has_data())
return true;
}
return sep_num_ecd_pathlist.is_set
|| sep_num_ecd_pl_unresolved.is_set;
}
bool Fib::Nodes::Node::Protocols::Protocol::ExternalClientSummaries::ExternalClientSummary::SesPlSum::has_operation() const
{
for (std::size_t index=0; index<sep_num_ecd_pl_per_interest.len(); index++)
{
if(sep_num_ecd_pl_per_interest[index]->has_operation())
return true;
}
return is_set(yfilter)
|| ydk::is_set(sep_num_ecd_pathlist.yfilter)
|| ydk::is_set(sep_num_ecd_pl_unresolved.yfilter);
}
std::string Fib::Nodes::Node::Protocols::Protocol::ExternalClientSummaries::ExternalClientSummary::SesPlSum::get_segment_path() const
{
std::ostringstream path_buffer;
path_buffer << "ses-pl-sum";
return path_buffer.str();
}
std::vector<std::pair<std::string, LeafData> > Fib::Nodes::Node::Protocols::Protocol::ExternalClientSummaries::ExternalClientSummary::SesPlSum::get_name_leaf_data() const
{
std::vector<std::pair<std::string, LeafData> > leaf_name_data {};
if (sep_num_ecd_pathlist.is_set || is_set(sep_num_ecd_pathlist.yfilter)) leaf_name_data.push_back(sep_num_ecd_pathlist.get_name_leafdata());
if (sep_num_ecd_pl_unresolved.is_set || is_set(sep_num_ecd_pl_unresolved.yfilter)) leaf_name_data.push_back(sep_num_ecd_pl_unresolved.get_name_leafdata());
return leaf_name_data;
}
std::shared_ptr<ydk::Entity> Fib::Nodes::Node::Protocols::Protocol::ExternalClientSummaries::ExternalClientSummary::SesPlSum::get_child_by_name(const std::string & child_yang_name, const std::string & segment_path)
{
if(child_yang_name == "sep-num-ecd-pl-per-interest")
{
auto ent_ = std::make_shared<Fib::Nodes::Node::Protocols::Protocol::ExternalClientSummaries::ExternalClientSummary::SesPlSum::SepNumEcdPlPerInterest>();
ent_->parent = this;
sep_num_ecd_pl_per_interest.append(ent_);
return ent_;
}
return nullptr;
}
std::map<std::string, std::shared_ptr<ydk::Entity>> Fib::Nodes::Node::Protocols::Protocol::ExternalClientSummaries::ExternalClientSummary::SesPlSum::get_children() const
{
std::map<std::string, std::shared_ptr<ydk::Entity>> _children{};
char count_=0;
count_ = 0;
for (auto ent_ : sep_num_ecd_pl_per_interest.entities())
{
if(_children.find(ent_->get_segment_path()) == _children.end())
_children[ent_->get_segment_path()] = ent_;
else
_children[ent_->get_segment_path()+count_++] = ent_;
}
return _children;
}
void Fib::Nodes::Node::Protocols::Protocol::ExternalClientSummaries::ExternalClientSummary::SesPlSum::set_value(const std::string & value_path, const std::string & value, const std::string & name_space, const std::string & name_space_prefix)
{
if(value_path == "sep-num-ecd-pathlist")
{
sep_num_ecd_pathlist = value;
sep_num_ecd_pathlist.value_namespace = name_space;
sep_num_ecd_pathlist.value_namespace_prefix = name_space_prefix;
}
if(value_path == "sep-num-ecd-pl-unresolved")
{
sep_num_ecd_pl_unresolved = value;
sep_num_ecd_pl_unresolved.value_namespace = name_space;
sep_num_ecd_pl_unresolved.value_namespace_prefix = name_space_prefix;
}
}
void Fib::Nodes::Node::Protocols::Protocol::ExternalClientSummaries::ExternalClientSummary::SesPlSum::set_filter(const std::string & value_path, YFilter yfilter)
{
if(value_path == "sep-num-ecd-pathlist")
{
sep_num_ecd_pathlist.yfilter = yfilter;
}
if(value_path == "sep-num-ecd-pl-unresolved")
{
sep_num_ecd_pl_unresolved.yfilter = yfilter;
}
}
bool Fib::Nodes::Node::Protocols::Protocol::ExternalClientSummaries::ExternalClientSummary::SesPlSum::has_leaf_or_child_of_name(const std::string & name) const
{
if(name == "sep-num-ecd-pl-per-interest" || name == "sep-num-ecd-pathlist" || name == "sep-num-ecd-pl-unresolved")
return true;
return false;
}
Fib::Nodes::Node::Protocols::Protocol::ExternalClientSummaries::ExternalClientSummary::SesPlSum::SepNumEcdPlPerInterest::SepNumEcdPlPerInterest()
:
entry{YType::uint32, "entry"}
{
yang_name = "sep-num-ecd-pl-per-interest"; yang_parent_name = "ses-pl-sum"; is_top_level_class = false; has_list_ancestor = true;
}
Fib::Nodes::Node::Protocols::Protocol::ExternalClientSummaries::ExternalClientSummary::SesPlSum::SepNumEcdPlPerInterest::~SepNumEcdPlPerInterest()
{
}
bool Fib::Nodes::Node::Protocols::Protocol::ExternalClientSummaries::ExternalClientSummary::SesPlSum::SepNumEcdPlPerInterest::has_data() const
{
if (is_presence_container) return true;
return entry.is_set;
}
bool Fib::Nodes::Node::Protocols::Protocol::ExternalClientSummaries::ExternalClientSummary::SesPlSum::SepNumEcdPlPerInterest::has_operation() const
{
return is_set(yfilter)
|| ydk::is_set(entry.yfilter);
}
std::string Fib::Nodes::Node::Protocols::Protocol::ExternalClientSummaries::ExternalClientSummary::SesPlSum::SepNumEcdPlPerInterest::get_segment_path() const
{
std::ostringstream path_buffer;
path_buffer << "sep-num-ecd-pl-per-interest";
path_buffer << "[" << get_ylist_key() << "]";
return path_buffer.str();
}
std::vector<std::pair<std::string, LeafData> > Fib::Nodes::Node::Protocols::Protocol::ExternalClientSummaries::ExternalClientSummary::SesPlSum::SepNumEcdPlPerInterest::get_name_leaf_data() const
{
std::vector<std::pair<std::string, LeafData> > leaf_name_data {};
if (entry.is_set || is_set(entry.yfilter)) leaf_name_data.push_back(entry.get_name_leafdata());
return leaf_name_data;
}
std::shared_ptr<ydk::Entity> Fib::Nodes::Node::Protocols::Protocol::ExternalClientSummaries::ExternalClientSummary::SesPlSum::SepNumEcdPlPerInterest::get_child_by_name(const std::string & child_yang_name, const std::string & segment_path)
{
return nullptr;
}
std::map<std::string, std::shared_ptr<ydk::Entity>> Fib::Nodes::Node::Protocols::Protocol::ExternalClientSummaries::ExternalClientSummary::SesPlSum::SepNumEcdPlPerInterest::get_children() const
{
std::map<std::string, std::shared_ptr<ydk::Entity>> _children{};
char count_=0;
return _children;
}
void Fib::Nodes::Node::Protocols::Protocol::ExternalClientSummaries::ExternalClientSummary::SesPlSum::SepNumEcdPlPerInterest::set_value(const std::string & value_path, const std::string & value, const std::string & name_space, const std::string & name_space_prefix)
{
if(value_path == "entry")
{
entry = value;
entry.value_namespace = name_space;
entry.value_namespace_prefix = name_space_prefix;
}
}
void Fib::Nodes::Node::Protocols::Protocol::ExternalClientSummaries::ExternalClientSummary::SesPlSum::SepNumEcdPlPerInterest::set_filter(const std::string & value_path, YFilter yfilter)
{
if(value_path == "entry")
{
entry.yfilter = yfilter;
}
}
bool Fib::Nodes::Node::Protocols::Protocol::ExternalClientSummaries::ExternalClientSummary::SesPlSum::SepNumEcdPlPerInterest::has_leaf_or_child_of_name(const std::string & name) const
{
if(name == "entry")
return true;
return false;
}
Fib::Nodes::Node::Protocols::Protocol::Misc::Misc()
:
mi_pfi_ifh_upd{YType::uint64, "mi-pfi-ifh-upd"},
mi_pfi_ifh_del{YType::uint64, "mi-pfi-ifh-del"},
mi_pfi_ifh_stale{YType::uint64, "mi-pfi-ifh-stale"},
mi_tot_plat_upd_time{YType::uint64, "mi-tot-plat-upd-time"},
mi_tot_gtrie_time{YType::uint64, "mi-tot-gtrie-time"},
mi_tot_dnld_time{YType::uint64, "mi-tot-dnld-time"},
mi_clock_time{YType::uint64, "mi-clock-time"},
mi_cpu_time{YType::uint64, "mi-cpu-time"},
mi_shm_reset_ts{YType::uint64, "mi-shm-reset-ts"},
mi_idb_recycle_count{YType::uint32, "mi-idb-recycle-count"},
mi_idb_recycle_cleanup_count{YType::uint32, "mi-idb-recycle-cleanup-count"},
mi_num_mgmt_list{YType::uint32, "mi-num-mgmt-list"},
mi_num_virtual_ll_addresses_added{YType::uint32, "mi-num-virtual-ll-addresses-added"},
mi_num_virtual_ll_addresses_deleted{YType::uint32, "mi-num-virtual-ll-addresses-deleted"},
mi_num_virtual_ll_addresses_dropped{YType::uint32, "mi-num-virtual-ll-addresses-dropped"},
mi_num_virtual_ll_addresses_cached{YType::uint32, "mi-num-virtual-ll-addresses-cached"},
mi_cpuless_init{YType::boolean, "mi-cpuless-init"},
mi_cpuless_count{YType::uint32, "mi-cpuless-count"},
mi_prefer_aib_routes_over_rib_oper{YType::boolean, "mi-prefer-aib-routes-over-rib-oper"},
mi_prefer_aib_routes_over_rib_cfg{YType::boolean, "mi-prefer-aib-routes-over-rib-cfg"},
mi_xpl_ldi_enabled{YType::boolean, "mi-xpl-ldi-enabled"},
mi_frr_follow_bgp_pic{YType::boolean, "mi-frr-follow-bgp-pic"},
mi_encap_sharing_disable{YType::boolean, "mi-encap-sharing-disable"},
mi_lba_hash_recover{YType::boolean, "mi-lba-hash-recover"}
,
mi_issu_state(std::make_shared<Fib::Nodes::Node::Protocols::Protocol::Misc::MiIssuState>())
, mi_plat_capabilities(std::make_shared<Fib::Nodes::Node::Protocols::Protocol::Misc::MiPlatCapabilities>())
, mi_idb_ext_cleanup_failed_count(this, {})
, mi_lrpf_stats_fail(this, {})
, mi_lrpf_stats_act(this, {})
, mi_lrpf_num(this, {})
, mi_idb_lsec_enabled_num(this, {})
, mi_num_lisp_eid(this, {})
, mi_num_lisp_valid_eid(this, {})
, mi_cpuless_node(this, {})
, mi_proto_dbg_stat(this, {})
, mi_idb_purge_cntr(this, {})
, mi_del(this, {})
, mi_frr_stat(this, {})
{
mi_issu_state->parent = this;
mi_plat_capabilities->parent = this;
yang_name = "misc"; yang_parent_name = "protocol"; is_top_level_class = false; has_list_ancestor = true;
}
Fib::Nodes::Node::Protocols::Protocol::Misc::~Misc()
{
}
bool Fib::Nodes::Node::Protocols::Protocol::Misc::has_data() const
{
if (is_presence_container) return true;
for (std::size_t index=0; index<mi_idb_ext_cleanup_failed_count.len(); index++)
{
if(mi_idb_ext_cleanup_failed_count[index]->has_data())
return true;
}
for (std::size_t index=0; index<mi_lrpf_stats_fail.len(); index++)
{
if(mi_lrpf_stats_fail[index]->has_data())
return true;
}
for (std::size_t index=0; index<mi_lrpf_stats_act.len(); index++)
{
if(mi_lrpf_stats_act[index]->has_data())
return true;
}
for (std::size_t index=0; index<mi_lrpf_num.len(); index++)
{
if(mi_lrpf_num[index]->has_data())
return true;
}
for (std::size_t index=0; index<mi_idb_lsec_enabled_num.len(); index++)
{
if(mi_idb_lsec_enabled_num[index]->has_data())
return true;
}
for (std::size_t index=0; index<mi_num_lisp_eid.len(); index++)
{
if(mi_num_lisp_eid[index]->has_data())
return true;
}
for (std::size_t index=0; index<mi_num_lisp_valid_eid.len(); index++)
{
if(mi_num_lisp_valid_eid[index]->has_data())
return true;
}
for (std::size_t index=0; index<mi_cpuless_node.len(); index++)
{
if(mi_cpuless_node[index]->has_data())
return true;
}
for (std::size_t index=0; index<mi_proto_dbg_stat.len(); index++)
{
if(mi_proto_dbg_stat[index]->has_data())
return true;
}
for (std::size_t index=0; index<mi_idb_purge_cntr.len(); index++)
{
if(mi_idb_purge_cntr[index]->has_data())
return true;
}
for (std::size_t index=0; index<mi_del.len(); index++)
{
if(mi_del[index]->has_data())
return true;
}
for (std::size_t index=0; index<mi_frr_stat.len(); index++)
{
if(mi_frr_stat[index]->has_data())
return true;
}
return mi_pfi_ifh_upd.is_set
|| mi_pfi_ifh_del.is_set
|| mi_pfi_ifh_stale.is_set
|| mi_tot_plat_upd_time.is_set
|| mi_tot_gtrie_time.is_set
|| mi_tot_dnld_time.is_set
|| mi_clock_time.is_set
|| mi_cpu_time.is_set
|| mi_shm_reset_ts.is_set
|| mi_idb_recycle_count.is_set
|| mi_idb_recycle_cleanup_count.is_set
|| mi_num_mgmt_list.is_set
|| mi_num_virtual_ll_addresses_added.is_set
|| mi_num_virtual_ll_addresses_deleted.is_set
|| mi_num_virtual_ll_addresses_dropped.is_set
|| mi_num_virtual_ll_addresses_cached.is_set
|| mi_cpuless_init.is_set
|| mi_cpuless_count.is_set
|| mi_prefer_aib_routes_over_rib_oper.is_set
|| mi_prefer_aib_routes_over_rib_cfg.is_set
|| mi_xpl_ldi_enabled.is_set
|| mi_frr_follow_bgp_pic.is_set
|| mi_encap_sharing_disable.is_set
|| mi_lba_hash_recover.is_set
|| (mi_issu_state != nullptr && mi_issu_state->has_data())
|| (mi_plat_capabilities != nullptr && mi_plat_capabilities->has_data());
}
bool Fib::Nodes::Node::Protocols::Protocol::Misc::has_operation() const
{
for (std::size_t index=0; index<mi_idb_ext_cleanup_failed_count.len(); index++)
{
if(mi_idb_ext_cleanup_failed_count[index]->has_operation())
return true;
}
for (std::size_t index=0; index<mi_lrpf_stats_fail.len(); index++)
{
if(mi_lrpf_stats_fail[index]->has_operation())
return true;
}
for (std::size_t index=0; index<mi_lrpf_stats_act.len(); index++)
{
if(mi_lrpf_stats_act[index]->has_operation())
return true;
}
for (std::size_t index=0; index<mi_lrpf_num.len(); index++)
{
if(mi_lrpf_num[index]->has_operation())
return true;
}
for (std::size_t index=0; index<mi_idb_lsec_enabled_num.len(); index++)
{
if(mi_idb_lsec_enabled_num[index]->has_operation())
return true;
}
for (std::size_t index=0; index<mi_num_lisp_eid.len(); index++)
{
if(mi_num_lisp_eid[index]->has_operation())
return true;
}
for (std::size_t index=0; index<mi_num_lisp_valid_eid.len(); index++)
{
if(mi_num_lisp_valid_eid[index]->has_operation())
return true;
}
for (std::size_t index=0; index<mi_cpuless_node.len(); index++)
{
if(mi_cpuless_node[index]->has_operation())
return true;
}
for (std::size_t index=0; index<mi_proto_dbg_stat.len(); index++)
{
if(mi_proto_dbg_stat[index]->has_operation())
return true;
}
for (std::size_t index=0; index<mi_idb_purge_cntr.len(); index++)
{
if(mi_idb_purge_cntr[index]->has_operation())
return true;
}
for (std::size_t index=0; index<mi_del.len(); index++)
{
if(mi_del[index]->has_operation())
return true;
}
for (std::size_t index=0; index<mi_frr_stat.len(); index++)
{
if(mi_frr_stat[index]->has_operation())
return true;
}
return is_set(yfilter)
|| ydk::is_set(mi_pfi_ifh_upd.yfilter)
|| ydk::is_set(mi_pfi_ifh_del.yfilter)
|| ydk::is_set(mi_pfi_ifh_stale.yfilter)
|| ydk::is_set(mi_tot_plat_upd_time.yfilter)
|| ydk::is_set(mi_tot_gtrie_time.yfilter)
|| ydk::is_set(mi_tot_dnld_time.yfilter)
|| ydk::is_set(mi_clock_time.yfilter)
|| ydk::is_set(mi_cpu_time.yfilter)
|| ydk::is_set(mi_shm_reset_ts.yfilter)
|| ydk::is_set(mi_idb_recycle_count.yfilter)
|| ydk::is_set(mi_idb_recycle_cleanup_count.yfilter)
|| ydk::is_set(mi_num_mgmt_list.yfilter)
|| ydk::is_set(mi_num_virtual_ll_addresses_added.yfilter)
|| ydk::is_set(mi_num_virtual_ll_addresses_deleted.yfilter)
|| ydk::is_set(mi_num_virtual_ll_addresses_dropped.yfilter)
|| ydk::is_set(mi_num_virtual_ll_addresses_cached.yfilter)
|| ydk::is_set(mi_cpuless_init.yfilter)
|| ydk::is_set(mi_cpuless_count.yfilter)
|| ydk::is_set(mi_prefer_aib_routes_over_rib_oper.yfilter)
|| ydk::is_set(mi_prefer_aib_routes_over_rib_cfg.yfilter)
|| ydk::is_set(mi_xpl_ldi_enabled.yfilter)
|| ydk::is_set(mi_frr_follow_bgp_pic.yfilter)
|| ydk::is_set(mi_encap_sharing_disable.yfilter)
|| ydk::is_set(mi_lba_hash_recover.yfilter)
|| (mi_issu_state != nullptr && mi_issu_state->has_operation())
|| (mi_plat_capabilities != nullptr && mi_plat_capabilities->has_operation());
}
std::string Fib::Nodes::Node::Protocols::Protocol::Misc::get_segment_path() const
{
std::ostringstream path_buffer;
path_buffer << "misc";
return path_buffer.str();
}
std::vector<std::pair<std::string, LeafData> > Fib::Nodes::Node::Protocols::Protocol::Misc::get_name_leaf_data() const
{
std::vector<std::pair<std::string, LeafData> > leaf_name_data {};
if (mi_pfi_ifh_upd.is_set || is_set(mi_pfi_ifh_upd.yfilter)) leaf_name_data.push_back(mi_pfi_ifh_upd.get_name_leafdata());
if (mi_pfi_ifh_del.is_set || is_set(mi_pfi_ifh_del.yfilter)) leaf_name_data.push_back(mi_pfi_ifh_del.get_name_leafdata());
if (mi_pfi_ifh_stale.is_set || is_set(mi_pfi_ifh_stale.yfilter)) leaf_name_data.push_back(mi_pfi_ifh_stale.get_name_leafdata());
if (mi_tot_plat_upd_time.is_set || is_set(mi_tot_plat_upd_time.yfilter)) leaf_name_data.push_back(mi_tot_plat_upd_time.get_name_leafdata());
if (mi_tot_gtrie_time.is_set || is_set(mi_tot_gtrie_time.yfilter)) leaf_name_data.push_back(mi_tot_gtrie_time.get_name_leafdata());
if (mi_tot_dnld_time.is_set || is_set(mi_tot_dnld_time.yfilter)) leaf_name_data.push_back(mi_tot_dnld_time.get_name_leafdata());
if (mi_clock_time.is_set || is_set(mi_clock_time.yfilter)) leaf_name_data.push_back(mi_clock_time.get_name_leafdata());
if (mi_cpu_time.is_set || is_set(mi_cpu_time.yfilter)) leaf_name_data.push_back(mi_cpu_time.get_name_leafdata());
if (mi_shm_reset_ts.is_set || is_set(mi_shm_reset_ts.yfilter)) leaf_name_data.push_back(mi_shm_reset_ts.get_name_leafdata());
if (mi_idb_recycle_count.is_set || is_set(mi_idb_recycle_count.yfilter)) leaf_name_data.push_back(mi_idb_recycle_count.get_name_leafdata());
if (mi_idb_recycle_cleanup_count.is_set || is_set(mi_idb_recycle_cleanup_count.yfilter)) leaf_name_data.push_back(mi_idb_recycle_cleanup_count.get_name_leafdata());
if (mi_num_mgmt_list.is_set || is_set(mi_num_mgmt_list.yfilter)) leaf_name_data.push_back(mi_num_mgmt_list.get_name_leafdata());
if (mi_num_virtual_ll_addresses_added.is_set || is_set(mi_num_virtual_ll_addresses_added.yfilter)) leaf_name_data.push_back(mi_num_virtual_ll_addresses_added.get_name_leafdata());
if (mi_num_virtual_ll_addresses_deleted.is_set || is_set(mi_num_virtual_ll_addresses_deleted.yfilter)) leaf_name_data.push_back(mi_num_virtual_ll_addresses_deleted.get_name_leafdata());
if (mi_num_virtual_ll_addresses_dropped.is_set || is_set(mi_num_virtual_ll_addresses_dropped.yfilter)) leaf_name_data.push_back(mi_num_virtual_ll_addresses_dropped.get_name_leafdata());
if (mi_num_virtual_ll_addresses_cached.is_set || is_set(mi_num_virtual_ll_addresses_cached.yfilter)) leaf_name_data.push_back(mi_num_virtual_ll_addresses_cached.get_name_leafdata());
if (mi_cpuless_init.is_set || is_set(mi_cpuless_init.yfilter)) leaf_name_data.push_back(mi_cpuless_init.get_name_leafdata());
if (mi_cpuless_count.is_set || is_set(mi_cpuless_count.yfilter)) leaf_name_data.push_back(mi_cpuless_count.get_name_leafdata());
if (mi_prefer_aib_routes_over_rib_oper.is_set || is_set(mi_prefer_aib_routes_over_rib_oper.yfilter)) leaf_name_data.push_back(mi_prefer_aib_routes_over_rib_oper.get_name_leafdata());
if (mi_prefer_aib_routes_over_rib_cfg.is_set || is_set(mi_prefer_aib_routes_over_rib_cfg.yfilter)) leaf_name_data.push_back(mi_prefer_aib_routes_over_rib_cfg.get_name_leafdata());
if (mi_xpl_ldi_enabled.is_set || is_set(mi_xpl_ldi_enabled.yfilter)) leaf_name_data.push_back(mi_xpl_ldi_enabled.get_name_leafdata());
if (mi_frr_follow_bgp_pic.is_set || is_set(mi_frr_follow_bgp_pic.yfilter)) leaf_name_data.push_back(mi_frr_follow_bgp_pic.get_name_leafdata());
if (mi_encap_sharing_disable.is_set || is_set(mi_encap_sharing_disable.yfilter)) leaf_name_data.push_back(mi_encap_sharing_disable.get_name_leafdata());
if (mi_lba_hash_recover.is_set || is_set(mi_lba_hash_recover.yfilter)) leaf_name_data.push_back(mi_lba_hash_recover.get_name_leafdata());
return leaf_name_data;
}
std::shared_ptr<ydk::Entity> Fib::Nodes::Node::Protocols::Protocol::Misc::get_child_by_name(const std::string & child_yang_name, const std::string & segment_path)
{
if(child_yang_name == "mi-issu-state")
{
if(mi_issu_state == nullptr)
{
mi_issu_state = std::make_shared<Fib::Nodes::Node::Protocols::Protocol::Misc::MiIssuState>();
}
return mi_issu_state;
}
if(child_yang_name == "mi-plat-capabilities")
{
if(mi_plat_capabilities == nullptr)
{
mi_plat_capabilities = std::make_shared<Fib::Nodes::Node::Protocols::Protocol::Misc::MiPlatCapabilities>();
}
return mi_plat_capabilities;
}
if(child_yang_name == "mi-idb-ext-cleanup-failed-count")
{
auto ent_ = std::make_shared<Fib::Nodes::Node::Protocols::Protocol::Misc::MiIdbExtCleanupFailedCount>();
ent_->parent = this;
mi_idb_ext_cleanup_failed_count.append(ent_);
return ent_;
}
if(child_yang_name == "mi-lrpf-stats-fail")
{
auto ent_ = std::make_shared<Fib::Nodes::Node::Protocols::Protocol::Misc::MiLrpfStatsFail>();
ent_->parent = this;
mi_lrpf_stats_fail.append(ent_);
return ent_;
}
if(child_yang_name == "mi-lrpf-stats-act")
{
auto ent_ = std::make_shared<Fib::Nodes::Node::Protocols::Protocol::Misc::MiLrpfStatsAct>();
ent_->parent = this;
mi_lrpf_stats_act.append(ent_);
return ent_;
}
if(child_yang_name == "mi-lrpf-num")
{
auto ent_ = std::make_shared<Fib::Nodes::Node::Protocols::Protocol::Misc::MiLrpfNum>();
ent_->parent = this;
mi_lrpf_num.append(ent_);
return ent_;
}
if(child_yang_name == "mi-idb-lsec-enabled-num")
{
auto ent_ = std::make_shared<Fib::Nodes::Node::Protocols::Protocol::Misc::MiIdbLsecEnabledNum>();
ent_->parent = this;
mi_idb_lsec_enabled_num.append(ent_);
return ent_;
}
if(child_yang_name == "mi-num-lisp-eid")
{
auto ent_ = std::make_shared<Fib::Nodes::Node::Protocols::Protocol::Misc::MiNumLispEid>();
ent_->parent = this;
mi_num_lisp_eid.append(ent_);
return ent_;
}
if(child_yang_name == "mi-num-lisp-valid-eid")
{
auto ent_ = std::make_shared<Fib::Nodes::Node::Protocols::Protocol::Misc::MiNumLispValidEid>();
ent_->parent = this;
mi_num_lisp_valid_eid.append(ent_);
return ent_;
}
if(child_yang_name == "mi-cpuless-node")
{
auto ent_ = std::make_shared<Fib::Nodes::Node::Protocols::Protocol::Misc::MiCpulessNode>();
ent_->parent = this;
mi_cpuless_node.append(ent_);
return ent_;
}
if(child_yang_name == "mi-proto-dbg-stat")
{
auto ent_ = std::make_shared<Fib::Nodes::Node::Protocols::Protocol::Misc::MiProtoDbgStat>();
ent_->parent = this;
mi_proto_dbg_stat.append(ent_);
return ent_;
}
if(child_yang_name == "mi-idb-purge-cntr")
{
auto ent_ = std::make_shared<Fib::Nodes::Node::Protocols::Protocol::Misc::MiIdbPurgeCntr>();
ent_->parent = this;
mi_idb_purge_cntr.append(ent_);
return ent_;
}
if(child_yang_name == "mi-del")
{
auto ent_ = std::make_shared<Fib::Nodes::Node::Protocols::Protocol::Misc::MiDel>();
ent_->parent = this;
mi_del.append(ent_);
return ent_;
}
if(child_yang_name == "mi-frr-stat")
{
auto ent_ = std::make_shared<Fib::Nodes::Node::Protocols::Protocol::Misc::MiFrrStat>();
ent_->parent = this;
mi_frr_stat.append(ent_);
return ent_;
}
return nullptr;
}
std::map<std::string, std::shared_ptr<ydk::Entity>> Fib::Nodes::Node::Protocols::Protocol::Misc::get_children() const
{
std::map<std::string, std::shared_ptr<ydk::Entity>> _children{};
char count_=0;
if(mi_issu_state != nullptr)
{
_children["mi-issu-state"] = mi_issu_state;
}
if(mi_plat_capabilities != nullptr)
{
_children["mi-plat-capabilities"] = mi_plat_capabilities;
}
count_ = 0;
for (auto ent_ : mi_idb_ext_cleanup_failed_count.entities())
{
if(_children.find(ent_->get_segment_path()) == _children.end())
_children[ent_->get_segment_path()] = ent_;
else
_children[ent_->get_segment_path()+count_++] = ent_;
}
count_ = 0;
for (auto ent_ : mi_lrpf_stats_fail.entities())
{
if(_children.find(ent_->get_segment_path()) == _children.end())
_children[ent_->get_segment_path()] = ent_;
else
_children[ent_->get_segment_path()+count_++] = ent_;
}
count_ = 0;
for (auto ent_ : mi_lrpf_stats_act.entities())
{
if(_children.find(ent_->get_segment_path()) == _children.end())
_children[ent_->get_segment_path()] = ent_;
else
_children[ent_->get_segment_path()+count_++] = ent_;
}
count_ = 0;
for (auto ent_ : mi_lrpf_num.entities())
{
if(_children.find(ent_->get_segment_path()) == _children.end())
_children[ent_->get_segment_path()] = ent_;
else
_children[ent_->get_segment_path()+count_++] = ent_;
}
count_ = 0;
for (auto ent_ : mi_idb_lsec_enabled_num.entities())
{
if(_children.find(ent_->get_segment_path()) == _children.end())
_children[ent_->get_segment_path()] = ent_;
else
_children[ent_->get_segment_path()+count_++] = ent_;
}
count_ = 0;
for (auto ent_ : mi_num_lisp_eid.entities())
{
if(_children.find(ent_->get_segment_path()) == _children.end())
_children[ent_->get_segment_path()] = ent_;
else
_children[ent_->get_segment_path()+count_++] = ent_;
}
count_ = 0;
for (auto ent_ : mi_num_lisp_valid_eid.entities())
{
if(_children.find(ent_->get_segment_path()) == _children.end())
_children[ent_->get_segment_path()] = ent_;
else
_children[ent_->get_segment_path()+count_++] = ent_;
}
count_ = 0;
for (auto ent_ : mi_cpuless_node.entities())
{
if(_children.find(ent_->get_segment_path()) == _children.end())
_children[ent_->get_segment_path()] = ent_;
else
_children[ent_->get_segment_path()+count_++] = ent_;
}
count_ = 0;
for (auto ent_ : mi_proto_dbg_stat.entities())
{
if(_children.find(ent_->get_segment_path()) == _children.end())
_children[ent_->get_segment_path()] = ent_;
else
_children[ent_->get_segment_path()+count_++] = ent_;
}
count_ = 0;
for (auto ent_ : mi_idb_purge_cntr.entities())
{
if(_children.find(ent_->get_segment_path()) == _children.end())
_children[ent_->get_segment_path()] = ent_;
else
_children[ent_->get_segment_path()+count_++] = ent_;
}
count_ = 0;
for (auto ent_ : mi_del.entities())
{
if(_children.find(ent_->get_segment_path()) == _children.end())
_children[ent_->get_segment_path()] = ent_;
else
_children[ent_->get_segment_path()+count_++] = ent_;
}
count_ = 0;
for (auto ent_ : mi_frr_stat.entities())
{
if(_children.find(ent_->get_segment_path()) == _children.end())
_children[ent_->get_segment_path()] = ent_;
else
_children[ent_->get_segment_path()+count_++] = ent_;
}
return _children;
}
void Fib::Nodes::Node::Protocols::Protocol::Misc::set_value(const std::string & value_path, const std::string & value, const std::string & name_space, const std::string & name_space_prefix)
{
if(value_path == "mi-pfi-ifh-upd")
{
mi_pfi_ifh_upd = value;
mi_pfi_ifh_upd.value_namespace = name_space;
mi_pfi_ifh_upd.value_namespace_prefix = name_space_prefix;
}
if(value_path == "mi-pfi-ifh-del")
{
mi_pfi_ifh_del = value;
mi_pfi_ifh_del.value_namespace = name_space;
mi_pfi_ifh_del.value_namespace_prefix = name_space_prefix;
}
if(value_path == "mi-pfi-ifh-stale")
{
mi_pfi_ifh_stale = value;
mi_pfi_ifh_stale.value_namespace = name_space;
mi_pfi_ifh_stale.value_namespace_prefix = name_space_prefix;
}
if(value_path == "mi-tot-plat-upd-time")
{
mi_tot_plat_upd_time = value;
mi_tot_plat_upd_time.value_namespace = name_space;
mi_tot_plat_upd_time.value_namespace_prefix = name_space_prefix;
}
if(value_path == "mi-tot-gtrie-time")
{
mi_tot_gtrie_time = value;
mi_tot_gtrie_time.value_namespace = name_space;
mi_tot_gtrie_time.value_namespace_prefix = name_space_prefix;
}
if(value_path == "mi-tot-dnld-time")
{
mi_tot_dnld_time = value;
mi_tot_dnld_time.value_namespace = name_space;
mi_tot_dnld_time.value_namespace_prefix = name_space_prefix;
}
if(value_path == "mi-clock-time")
{
mi_clock_time = value;
mi_clock_time.value_namespace = name_space;
mi_clock_time.value_namespace_prefix = name_space_prefix;
}
if(value_path == "mi-cpu-time")
{
mi_cpu_time = value;
mi_cpu_time.value_namespace = name_space;
mi_cpu_time.value_namespace_prefix = name_space_prefix;
}
if(value_path == "mi-shm-reset-ts")
{
mi_shm_reset_ts = value;
mi_shm_reset_ts.value_namespace = name_space;
mi_shm_reset_ts.value_namespace_prefix = name_space_prefix;
}
if(value_path == "mi-idb-recycle-count")
{
mi_idb_recycle_count = value;
mi_idb_recycle_count.value_namespace = name_space;
mi_idb_recycle_count.value_namespace_prefix = name_space_prefix;
}
if(value_path == "mi-idb-recycle-cleanup-count")
{
mi_idb_recycle_cleanup_count = value;
mi_idb_recycle_cleanup_count.value_namespace = name_space;
mi_idb_recycle_cleanup_count.value_namespace_prefix = name_space_prefix;
}
if(value_path == "mi-num-mgmt-list")
{
mi_num_mgmt_list = value;
mi_num_mgmt_list.value_namespace = name_space;
mi_num_mgmt_list.value_namespace_prefix = name_space_prefix;
}
if(value_path == "mi-num-virtual-ll-addresses-added")
{
mi_num_virtual_ll_addresses_added = value;
mi_num_virtual_ll_addresses_added.value_namespace = name_space;
mi_num_virtual_ll_addresses_added.value_namespace_prefix = name_space_prefix;
}
if(value_path == "mi-num-virtual-ll-addresses-deleted")
{
mi_num_virtual_ll_addresses_deleted = value;
mi_num_virtual_ll_addresses_deleted.value_namespace = name_space;
mi_num_virtual_ll_addresses_deleted.value_namespace_prefix = name_space_prefix;
}
if(value_path == "mi-num-virtual-ll-addresses-dropped")
{
mi_num_virtual_ll_addresses_dropped = value;
mi_num_virtual_ll_addresses_dropped.value_namespace = name_space;
mi_num_virtual_ll_addresses_dropped.value_namespace_prefix = name_space_prefix;
}
if(value_path == "mi-num-virtual-ll-addresses-cached")
{
mi_num_virtual_ll_addresses_cached = value;
mi_num_virtual_ll_addresses_cached.value_namespace = name_space;
mi_num_virtual_ll_addresses_cached.value_namespace_prefix = name_space_prefix;
}
if(value_path == "mi-cpuless-init")
{
mi_cpuless_init = value;
mi_cpuless_init.value_namespace = name_space;
mi_cpuless_init.value_namespace_prefix = name_space_prefix;
}
if(value_path == "mi-cpuless-count")
{
mi_cpuless_count = value;
mi_cpuless_count.value_namespace = name_space;
mi_cpuless_count.value_namespace_prefix = name_space_prefix;
}
if(value_path == "mi-prefer-aib-routes-over-rib-oper")
{
mi_prefer_aib_routes_over_rib_oper = value;
mi_prefer_aib_routes_over_rib_oper.value_namespace = name_space;
mi_prefer_aib_routes_over_rib_oper.value_namespace_prefix = name_space_prefix;
}
if(value_path == "mi-prefer-aib-routes-over-rib-cfg")
{
mi_prefer_aib_routes_over_rib_cfg = value;
mi_prefer_aib_routes_over_rib_cfg.value_namespace = name_space;
mi_prefer_aib_routes_over_rib_cfg.value_namespace_prefix = name_space_prefix;
}
if(value_path == "mi-xpl-ldi-enabled")
{
mi_xpl_ldi_enabled = value;
mi_xpl_ldi_enabled.value_namespace = name_space;
mi_xpl_ldi_enabled.value_namespace_prefix = name_space_prefix;
}
if(value_path == "mi-frr-follow-bgp-pic")
{
mi_frr_follow_bgp_pic = value;
mi_frr_follow_bgp_pic.value_namespace = name_space;
mi_frr_follow_bgp_pic.value_namespace_prefix = name_space_prefix;
}
if(value_path == "mi-encap-sharing-disable")
{
mi_encap_sharing_disable = value;
mi_encap_sharing_disable.value_namespace = name_space;
mi_encap_sharing_disable.value_namespace_prefix = name_space_prefix;
}
if(value_path == "mi-lba-hash-recover")
{
mi_lba_hash_recover = value;
mi_lba_hash_recover.value_namespace = name_space;
mi_lba_hash_recover.value_namespace_prefix = name_space_prefix;
}
}
void Fib::Nodes::Node::Protocols::Protocol::Misc::set_filter(const std::string & value_path, YFilter yfilter)
{
if(value_path == "mi-pfi-ifh-upd")
{
mi_pfi_ifh_upd.yfilter = yfilter;
}
if(value_path == "mi-pfi-ifh-del")
{
mi_pfi_ifh_del.yfilter = yfilter;
}
if(value_path == "mi-pfi-ifh-stale")
{
mi_pfi_ifh_stale.yfilter = yfilter;
}
if(value_path == "mi-tot-plat-upd-time")
{
mi_tot_plat_upd_time.yfilter = yfilter;
}
if(value_path == "mi-tot-gtrie-time")
{
mi_tot_gtrie_time.yfilter = yfilter;
}
if(value_path == "mi-tot-dnld-time")
{
mi_tot_dnld_time.yfilter = yfilter;
}
if(value_path == "mi-clock-time")
{
mi_clock_time.yfilter = yfilter;
}
if(value_path == "mi-cpu-time")
{
mi_cpu_time.yfilter = yfilter;
}
if(value_path == "mi-shm-reset-ts")
{
mi_shm_reset_ts.yfilter = yfilter;
}
if(value_path == "mi-idb-recycle-count")
{
mi_idb_recycle_count.yfilter = yfilter;
}
if(value_path == "mi-idb-recycle-cleanup-count")
{
mi_idb_recycle_cleanup_count.yfilter = yfilter;
}
if(value_path == "mi-num-mgmt-list")
{
mi_num_mgmt_list.yfilter = yfilter;
}
if(value_path == "mi-num-virtual-ll-addresses-added")
{
mi_num_virtual_ll_addresses_added.yfilter = yfilter;
}
if(value_path == "mi-num-virtual-ll-addresses-deleted")
{
mi_num_virtual_ll_addresses_deleted.yfilter = yfilter;
}
if(value_path == "mi-num-virtual-ll-addresses-dropped")
{
mi_num_virtual_ll_addresses_dropped.yfilter = yfilter;
}
if(value_path == "mi-num-virtual-ll-addresses-cached")
{
mi_num_virtual_ll_addresses_cached.yfilter = yfilter;
}
if(value_path == "mi-cpuless-init")
{
mi_cpuless_init.yfilter = yfilter;
}
if(value_path == "mi-cpuless-count")
{
mi_cpuless_count.yfilter = yfilter;
}
if(value_path == "mi-prefer-aib-routes-over-rib-oper")
{
mi_prefer_aib_routes_over_rib_oper.yfilter = yfilter;
}
if(value_path == "mi-prefer-aib-routes-over-rib-cfg")
{
mi_prefer_aib_routes_over_rib_cfg.yfilter = yfilter;
}
if(value_path == "mi-xpl-ldi-enabled")
{
mi_xpl_ldi_enabled.yfilter = yfilter;
}
if(value_path == "mi-frr-follow-bgp-pic")
{
mi_frr_follow_bgp_pic.yfilter = yfilter;
}
if(value_path == "mi-encap-sharing-disable")
{
mi_encap_sharing_disable.yfilter = yfilter;
}
if(value_path == "mi-lba-hash-recover")
{
mi_lba_hash_recover.yfilter = yfilter;
}
}
bool Fib::Nodes::Node::Protocols::Protocol::Misc::has_leaf_or_child_of_name(const std::string & name) const
{
if(name == "mi-issu-state" || name == "mi-plat-capabilities" || name == "mi-idb-ext-cleanup-failed-count" || name == "mi-lrpf-stats-fail" || name == "mi-lrpf-stats-act" || name == "mi-lrpf-num" || name == "mi-idb-lsec-enabled-num" || name == "mi-num-lisp-eid" || name == "mi-num-lisp-valid-eid" || name == "mi-cpuless-node" || name == "mi-proto-dbg-stat" || name == "mi-idb-purge-cntr" || name == "mi-del" || name == "mi-frr-stat" || name == "mi-pfi-ifh-upd" || name == "mi-pfi-ifh-del" || name == "mi-pfi-ifh-stale" || name == "mi-tot-plat-upd-time" || name == "mi-tot-gtrie-time" || name == "mi-tot-dnld-time" || name == "mi-clock-time" || name == "mi-cpu-time" || name == "mi-shm-reset-ts" || name == "mi-idb-recycle-count" || name == "mi-idb-recycle-cleanup-count" || name == "mi-num-mgmt-list" || name == "mi-num-virtual-ll-addresses-added" || name == "mi-num-virtual-ll-addresses-deleted" || name == "mi-num-virtual-ll-addresses-dropped" || name == "mi-num-virtual-ll-addresses-cached" || name == "mi-cpuless-init" || name == "mi-cpuless-count" || name == "mi-prefer-aib-routes-over-rib-oper" || name == "mi-prefer-aib-routes-over-rib-cfg" || name == "mi-xpl-ldi-enabled" || name == "mi-frr-follow-bgp-pic" || name == "mi-encap-sharing-disable" || name == "mi-lba-hash-recover")
return true;
return false;
}
Fib::Nodes::Node::Protocols::Protocol::Misc::MiIssuState::MiIssuState()
:
imdr_support{YType::boolean, "imdr-support"},
slc_support{YType::boolean, "slc-support"},
fis_issu_restart{YType::boolean, "fis-issu-restart"},
imdr_eoc_implicit{YType::boolean, "imdr-eoc-implicit"},
slc_eoc_implicit{YType::boolean, "slc-eoc-implicit"},
eoc_received_imdr_time_stamp{YType::str, "eoc-received-imdr-time-stamp"},
eoc_received_slc_time_stamp{YType::str, "eoc-received-slc-time-stamp"},
eod_received_im_time_stamp{YType::str, "eod-received-im-time-stamp"},
eod_sent_imdr_time_stamp{YType::str, "eod-sent-imdr-time-stamp"},
eod_sent_slc_time_stamp{YType::str, "eod-sent-slc-time-stamp"},
fis_issu_error_ts{YType::uint64, "fis-issu-error-ts"}
,
fis_proto_state(this, {})
{
yang_name = "mi-issu-state"; yang_parent_name = "misc"; is_top_level_class = false; has_list_ancestor = true;
}
Fib::Nodes::Node::Protocols::Protocol::Misc::MiIssuState::~MiIssuState()
{
}
bool Fib::Nodes::Node::Protocols::Protocol::Misc::MiIssuState::has_data() const
{
if (is_presence_container) return true;
for (std::size_t index=0; index<fis_proto_state.len(); index++)
{
if(fis_proto_state[index]->has_data())
return true;
}
return imdr_support.is_set
|| slc_support.is_set
|| fis_issu_restart.is_set
|| imdr_eoc_implicit.is_set
|| slc_eoc_implicit.is_set
|| eoc_received_imdr_time_stamp.is_set
|| eoc_received_slc_time_stamp.is_set
|| eod_received_im_time_stamp.is_set
|| eod_sent_imdr_time_stamp.is_set
|| eod_sent_slc_time_stamp.is_set
|| fis_issu_error_ts.is_set;
}
bool Fib::Nodes::Node::Protocols::Protocol::Misc::MiIssuState::has_operation() const
{
for (std::size_t index=0; index<fis_proto_state.len(); index++)
{
if(fis_proto_state[index]->has_operation())
return true;
}
return is_set(yfilter)
|| ydk::is_set(imdr_support.yfilter)
|| ydk::is_set(slc_support.yfilter)
|| ydk::is_set(fis_issu_restart.yfilter)
|| ydk::is_set(imdr_eoc_implicit.yfilter)
|| ydk::is_set(slc_eoc_implicit.yfilter)
|| ydk::is_set(eoc_received_imdr_time_stamp.yfilter)
|| ydk::is_set(eoc_received_slc_time_stamp.yfilter)
|| ydk::is_set(eod_received_im_time_stamp.yfilter)
|| ydk::is_set(eod_sent_imdr_time_stamp.yfilter)
|| ydk::is_set(eod_sent_slc_time_stamp.yfilter)
|| ydk::is_set(fis_issu_error_ts.yfilter);
}
std::string Fib::Nodes::Node::Protocols::Protocol::Misc::MiIssuState::get_segment_path() const
{
std::ostringstream path_buffer;
path_buffer << "mi-issu-state";
return path_buffer.str();
}
std::vector<std::pair<std::string, LeafData> > Fib::Nodes::Node::Protocols::Protocol::Misc::MiIssuState::get_name_leaf_data() const
{
std::vector<std::pair<std::string, LeafData> > leaf_name_data {};
if (imdr_support.is_set || is_set(imdr_support.yfilter)) leaf_name_data.push_back(imdr_support.get_name_leafdata());
if (slc_support.is_set || is_set(slc_support.yfilter)) leaf_name_data.push_back(slc_support.get_name_leafdata());
if (fis_issu_restart.is_set || is_set(fis_issu_restart.yfilter)) leaf_name_data.push_back(fis_issu_restart.get_name_leafdata());
if (imdr_eoc_implicit.is_set || is_set(imdr_eoc_implicit.yfilter)) leaf_name_data.push_back(imdr_eoc_implicit.get_name_leafdata());
if (slc_eoc_implicit.is_set || is_set(slc_eoc_implicit.yfilter)) leaf_name_data.push_back(slc_eoc_implicit.get_name_leafdata());
if (eoc_received_imdr_time_stamp.is_set || is_set(eoc_received_imdr_time_stamp.yfilter)) leaf_name_data.push_back(eoc_received_imdr_time_stamp.get_name_leafdata());
if (eoc_received_slc_time_stamp.is_set || is_set(eoc_received_slc_time_stamp.yfilter)) leaf_name_data.push_back(eoc_received_slc_time_stamp.get_name_leafdata());
if (eod_received_im_time_stamp.is_set || is_set(eod_received_im_time_stamp.yfilter)) leaf_name_data.push_back(eod_received_im_time_stamp.get_name_leafdata());
if (eod_sent_imdr_time_stamp.is_set || is_set(eod_sent_imdr_time_stamp.yfilter)) leaf_name_data.push_back(eod_sent_imdr_time_stamp.get_name_leafdata());
if (eod_sent_slc_time_stamp.is_set || is_set(eod_sent_slc_time_stamp.yfilter)) leaf_name_data.push_back(eod_sent_slc_time_stamp.get_name_leafdata());
if (fis_issu_error_ts.is_set || is_set(fis_issu_error_ts.yfilter)) leaf_name_data.push_back(fis_issu_error_ts.get_name_leafdata());
return leaf_name_data;
}
std::shared_ptr<ydk::Entity> Fib::Nodes::Node::Protocols::Protocol::Misc::MiIssuState::get_child_by_name(const std::string & child_yang_name, const std::string & segment_path)
{
if(child_yang_name == "fis-proto-state")
{
auto ent_ = std::make_shared<Fib::Nodes::Node::Protocols::Protocol::Misc::MiIssuState::FisProtoState>();
ent_->parent = this;
fis_proto_state.append(ent_);
return ent_;
}
return nullptr;
}
std::map<std::string, std::shared_ptr<ydk::Entity>> Fib::Nodes::Node::Protocols::Protocol::Misc::MiIssuState::get_children() const
{
std::map<std::string, std::shared_ptr<ydk::Entity>> _children{};
char count_=0;
count_ = 0;
for (auto ent_ : fis_proto_state.entities())
{
if(_children.find(ent_->get_segment_path()) == _children.end())
_children[ent_->get_segment_path()] = ent_;
else
_children[ent_->get_segment_path()+count_++] = ent_;
}
return _children;
}
void Fib::Nodes::Node::Protocols::Protocol::Misc::MiIssuState::set_value(const std::string & value_path, const std::string & value, const std::string & name_space, const std::string & name_space_prefix)
{
if(value_path == "imdr-support")
{
imdr_support = value;
imdr_support.value_namespace = name_space;
imdr_support.value_namespace_prefix = name_space_prefix;
}
if(value_path == "slc-support")
{
slc_support = value;
slc_support.value_namespace = name_space;
slc_support.value_namespace_prefix = name_space_prefix;
}
if(value_path == "fis-issu-restart")
{
fis_issu_restart = value;
fis_issu_restart.value_namespace = name_space;
fis_issu_restart.value_namespace_prefix = name_space_prefix;
}
if(value_path == "imdr-eoc-implicit")
{
imdr_eoc_implicit = value;
imdr_eoc_implicit.value_namespace = name_space;
imdr_eoc_implicit.value_namespace_prefix = name_space_prefix;
}
if(value_path == "slc-eoc-implicit")
{
slc_eoc_implicit = value;
slc_eoc_implicit.value_namespace = name_space;
slc_eoc_implicit.value_namespace_prefix = name_space_prefix;
}
if(value_path == "eoc-received-imdr-time-stamp")
{
eoc_received_imdr_time_stamp = value;
eoc_received_imdr_time_stamp.value_namespace = name_space;
eoc_received_imdr_time_stamp.value_namespace_prefix = name_space_prefix;
}
if(value_path == "eoc-received-slc-time-stamp")
{
eoc_received_slc_time_stamp = value;
eoc_received_slc_time_stamp.value_namespace = name_space;
eoc_received_slc_time_stamp.value_namespace_prefix = name_space_prefix;
}
if(value_path == "eod-received-im-time-stamp")
{
eod_received_im_time_stamp = value;
eod_received_im_time_stamp.value_namespace = name_space;
eod_received_im_time_stamp.value_namespace_prefix = name_space_prefix;
}
if(value_path == "eod-sent-imdr-time-stamp")
{
eod_sent_imdr_time_stamp = value;
eod_sent_imdr_time_stamp.value_namespace = name_space;
eod_sent_imdr_time_stamp.value_namespace_prefix = name_space_prefix;
}
if(value_path == "eod-sent-slc-time-stamp")
{
eod_sent_slc_time_stamp = value;
eod_sent_slc_time_stamp.value_namespace = name_space;
eod_sent_slc_time_stamp.value_namespace_prefix = name_space_prefix;
}
if(value_path == "fis-issu-error-ts")
{
fis_issu_error_ts = value;
fis_issu_error_ts.value_namespace = name_space;
fis_issu_error_ts.value_namespace_prefix = name_space_prefix;
}
}
void Fib::Nodes::Node::Protocols::Protocol::Misc::MiIssuState::set_filter(const std::string & value_path, YFilter yfilter)
{
if(value_path == "imdr-support")
{
imdr_support.yfilter = yfilter;
}
if(value_path == "slc-support")
{
slc_support.yfilter = yfilter;
}
if(value_path == "fis-issu-restart")
{
fis_issu_restart.yfilter = yfilter;
}
if(value_path == "imdr-eoc-implicit")
{
imdr_eoc_implicit.yfilter = yfilter;
}
if(value_path == "slc-eoc-implicit")
{
slc_eoc_implicit.yfilter = yfilter;
}
if(value_path == "eoc-received-imdr-time-stamp")
{
eoc_received_imdr_time_stamp.yfilter = yfilter;
}
if(value_path == "eoc-received-slc-time-stamp")
{
eoc_received_slc_time_stamp.yfilter = yfilter;
}
if(value_path == "eod-received-im-time-stamp")
{
eod_received_im_time_stamp.yfilter = yfilter;
}
if(value_path == "eod-sent-imdr-time-stamp")
{
eod_sent_imdr_time_stamp.yfilter = yfilter;
}
if(value_path == "eod-sent-slc-time-stamp")
{
eod_sent_slc_time_stamp.yfilter = yfilter;
}
if(value_path == "fis-issu-error-ts")
{
fis_issu_error_ts.yfilter = yfilter;
}
}
bool Fib::Nodes::Node::Protocols::Protocol::Misc::MiIssuState::has_leaf_or_child_of_name(const std::string & name) const
{
if(name == "fis-proto-state" || name == "imdr-support" || name == "slc-support" || name == "fis-issu-restart" || name == "imdr-eoc-implicit" || name == "slc-eoc-implicit" || name == "eoc-received-imdr-time-stamp" || name == "eoc-received-slc-time-stamp" || name == "eod-received-im-time-stamp" || name == "eod-sent-imdr-time-stamp" || name == "eod-sent-slc-time-stamp" || name == "fis-issu-error-ts")
return true;
return false;
}
Fib::Nodes::Node::Protocols::Protocol::Misc::MiIssuState::FisProtoState::FisProtoState()
:
protocol_name{YType::str, "protocol-name"},
aib_eod_time_stamp{YType::str, "aib-eod-time-stamp"},
rsi_eod_valid{YType::boolean, "rsi-eod-valid"},
rsi_eod_time_stamp{YType::str, "rsi-eod-time-stamp"},
lsd_eod_valid{YType::boolean, "lsd-eod-valid"},
lsd_eod_time_stamp{YType::str, "lsd-eod-time-stamp"},
lmrib_eod_valid{YType::boolean, "lmrib-eod-valid"},
lmrib_eod_time_stamp{YType::str, "lmrib-eod-time-stamp"},
rib_info_valid{YType::boolean, "rib-info-valid"},
bcdl_tables{YType::uint32, "bcdl-tables"},
converged_tables{YType::uint32, "converged-tables"},
rib_tables_converged_time_stamp{YType::str, "rib-tables-converged-time-stamp"},
protocol_eod_valid{YType::boolean, "protocol-eod-valid"},
protocol_eod_time_stamp{YType::str, "protocol-eod-time-stamp"}
{
yang_name = "fis-proto-state"; yang_parent_name = "mi-issu-state"; is_top_level_class = false; has_list_ancestor = true;
}
Fib::Nodes::Node::Protocols::Protocol::Misc::MiIssuState::FisProtoState::~FisProtoState()
{
}
bool Fib::Nodes::Node::Protocols::Protocol::Misc::MiIssuState::FisProtoState::has_data() const
{
if (is_presence_container) return true;
return protocol_name.is_set
|| aib_eod_time_stamp.is_set
|| rsi_eod_valid.is_set
|| rsi_eod_time_stamp.is_set
|| lsd_eod_valid.is_set
|| lsd_eod_time_stamp.is_set
|| lmrib_eod_valid.is_set
|| lmrib_eod_time_stamp.is_set
|| rib_info_valid.is_set
|| bcdl_tables.is_set
|| converged_tables.is_set
|| rib_tables_converged_time_stamp.is_set
|| protocol_eod_valid.is_set
|| protocol_eod_time_stamp.is_set;
}
bool Fib::Nodes::Node::Protocols::Protocol::Misc::MiIssuState::FisProtoState::has_operation() const
{
return is_set(yfilter)
|| ydk::is_set(protocol_name.yfilter)
|| ydk::is_set(aib_eod_time_stamp.yfilter)
|| ydk::is_set(rsi_eod_valid.yfilter)
|| ydk::is_set(rsi_eod_time_stamp.yfilter)
|| ydk::is_set(lsd_eod_valid.yfilter)
|| ydk::is_set(lsd_eod_time_stamp.yfilter)
|| ydk::is_set(lmrib_eod_valid.yfilter)
|| ydk::is_set(lmrib_eod_time_stamp.yfilter)
|| ydk::is_set(rib_info_valid.yfilter)
|| ydk::is_set(bcdl_tables.yfilter)
|| ydk::is_set(converged_tables.yfilter)
|| ydk::is_set(rib_tables_converged_time_stamp.yfilter)
|| ydk::is_set(protocol_eod_valid.yfilter)
|| ydk::is_set(protocol_eod_time_stamp.yfilter);
}
std::string Fib::Nodes::Node::Protocols::Protocol::Misc::MiIssuState::FisProtoState::get_segment_path() const
{
std::ostringstream path_buffer;
path_buffer << "fis-proto-state";
path_buffer << "[" << get_ylist_key() << "]";
return path_buffer.str();
}
std::vector<std::pair<std::string, LeafData> > Fib::Nodes::Node::Protocols::Protocol::Misc::MiIssuState::FisProtoState::get_name_leaf_data() const
{
std::vector<std::pair<std::string, LeafData> > leaf_name_data {};
if (protocol_name.is_set || is_set(protocol_name.yfilter)) leaf_name_data.push_back(protocol_name.get_name_leafdata());
if (aib_eod_time_stamp.is_set || is_set(aib_eod_time_stamp.yfilter)) leaf_name_data.push_back(aib_eod_time_stamp.get_name_leafdata());
if (rsi_eod_valid.is_set || is_set(rsi_eod_valid.yfilter)) leaf_name_data.push_back(rsi_eod_valid.get_name_leafdata());
if (rsi_eod_time_stamp.is_set || is_set(rsi_eod_time_stamp.yfilter)) leaf_name_data.push_back(rsi_eod_time_stamp.get_name_leafdata());
if (lsd_eod_valid.is_set || is_set(lsd_eod_valid.yfilter)) leaf_name_data.push_back(lsd_eod_valid.get_name_leafdata());
if (lsd_eod_time_stamp.is_set || is_set(lsd_eod_time_stamp.yfilter)) leaf_name_data.push_back(lsd_eod_time_stamp.get_name_leafdata());
if (lmrib_eod_valid.is_set || is_set(lmrib_eod_valid.yfilter)) leaf_name_data.push_back(lmrib_eod_valid.get_name_leafdata());
if (lmrib_eod_time_stamp.is_set || is_set(lmrib_eod_time_stamp.yfilter)) leaf_name_data.push_back(lmrib_eod_time_stamp.get_name_leafdata());
if (rib_info_valid.is_set || is_set(rib_info_valid.yfilter)) leaf_name_data.push_back(rib_info_valid.get_name_leafdata());
if (bcdl_tables.is_set || is_set(bcdl_tables.yfilter)) leaf_name_data.push_back(bcdl_tables.get_name_leafdata());
if (converged_tables.is_set || is_set(converged_tables.yfilter)) leaf_name_data.push_back(converged_tables.get_name_leafdata());
if (rib_tables_converged_time_stamp.is_set || is_set(rib_tables_converged_time_stamp.yfilter)) leaf_name_data.push_back(rib_tables_converged_time_stamp.get_name_leafdata());
if (protocol_eod_valid.is_set || is_set(protocol_eod_valid.yfilter)) leaf_name_data.push_back(protocol_eod_valid.get_name_leafdata());
if (protocol_eod_time_stamp.is_set || is_set(protocol_eod_time_stamp.yfilter)) leaf_name_data.push_back(protocol_eod_time_stamp.get_name_leafdata());
return leaf_name_data;
}
std::shared_ptr<ydk::Entity> Fib::Nodes::Node::Protocols::Protocol::Misc::MiIssuState::FisProtoState::get_child_by_name(const std::string & child_yang_name, const std::string & segment_path)
{
return nullptr;
}
std::map<std::string, std::shared_ptr<ydk::Entity>> Fib::Nodes::Node::Protocols::Protocol::Misc::MiIssuState::FisProtoState::get_children() const
{
std::map<std::string, std::shared_ptr<ydk::Entity>> _children{};
char count_=0;
return _children;
}
void Fib::Nodes::Node::Protocols::Protocol::Misc::MiIssuState::FisProtoState::set_value(const std::string & value_path, const std::string & value, const std::string & name_space, const std::string & name_space_prefix)
{
if(value_path == "protocol-name")
{
protocol_name = value;
protocol_name.value_namespace = name_space;
protocol_name.value_namespace_prefix = name_space_prefix;
}
if(value_path == "aib-eod-time-stamp")
{
aib_eod_time_stamp = value;
aib_eod_time_stamp.value_namespace = name_space;
aib_eod_time_stamp.value_namespace_prefix = name_space_prefix;
}
if(value_path == "rsi-eod-valid")
{
rsi_eod_valid = value;
rsi_eod_valid.value_namespace = name_space;
rsi_eod_valid.value_namespace_prefix = name_space_prefix;
}
if(value_path == "rsi-eod-time-stamp")
{
rsi_eod_time_stamp = value;
rsi_eod_time_stamp.value_namespace = name_space;
rsi_eod_time_stamp.value_namespace_prefix = name_space_prefix;
}
if(value_path == "lsd-eod-valid")
{
lsd_eod_valid = value;
lsd_eod_valid.value_namespace = name_space;
lsd_eod_valid.value_namespace_prefix = name_space_prefix;
}
if(value_path == "lsd-eod-time-stamp")
{
lsd_eod_time_stamp = value;
lsd_eod_time_stamp.value_namespace = name_space;
lsd_eod_time_stamp.value_namespace_prefix = name_space_prefix;
}
if(value_path == "lmrib-eod-valid")
{
lmrib_eod_valid = value;
lmrib_eod_valid.value_namespace = name_space;
lmrib_eod_valid.value_namespace_prefix = name_space_prefix;
}
if(value_path == "lmrib-eod-time-stamp")
{
lmrib_eod_time_stamp = value;
lmrib_eod_time_stamp.value_namespace = name_space;
lmrib_eod_time_stamp.value_namespace_prefix = name_space_prefix;
}
if(value_path == "rib-info-valid")
{
rib_info_valid = value;
rib_info_valid.value_namespace = name_space;
rib_info_valid.value_namespace_prefix = name_space_prefix;
}
if(value_path == "bcdl-tables")
{
bcdl_tables = value;
bcdl_tables.value_namespace = name_space;
bcdl_tables.value_namespace_prefix = name_space_prefix;
}
if(value_path == "converged-tables")
{
converged_tables = value;
converged_tables.value_namespace = name_space;
converged_tables.value_namespace_prefix = name_space_prefix;
}
if(value_path == "rib-tables-converged-time-stamp")
{
rib_tables_converged_time_stamp = value;
rib_tables_converged_time_stamp.value_namespace = name_space;
rib_tables_converged_time_stamp.value_namespace_prefix = name_space_prefix;
}
if(value_path == "protocol-eod-valid")
{
protocol_eod_valid = value;
protocol_eod_valid.value_namespace = name_space;
protocol_eod_valid.value_namespace_prefix = name_space_prefix;
}
if(value_path == "protocol-eod-time-stamp")
{
protocol_eod_time_stamp = value;
protocol_eod_time_stamp.value_namespace = name_space;
protocol_eod_time_stamp.value_namespace_prefix = name_space_prefix;
}
}
void Fib::Nodes::Node::Protocols::Protocol::Misc::MiIssuState::FisProtoState::set_filter(const std::string & value_path, YFilter yfilter)
{
if(value_path == "protocol-name")
{
protocol_name.yfilter = yfilter;
}
if(value_path == "aib-eod-time-stamp")
{
aib_eod_time_stamp.yfilter = yfilter;
}
if(value_path == "rsi-eod-valid")
{
rsi_eod_valid.yfilter = yfilter;
}
if(value_path == "rsi-eod-time-stamp")
{
rsi_eod_time_stamp.yfilter = yfilter;
}
if(value_path == "lsd-eod-valid")
{
lsd_eod_valid.yfilter = yfilter;
}
if(value_path == "lsd-eod-time-stamp")
{
lsd_eod_time_stamp.yfilter = yfilter;
}
if(value_path == "lmrib-eod-valid")
{
lmrib_eod_valid.yfilter = yfilter;
}
if(value_path == "lmrib-eod-time-stamp")
{
lmrib_eod_time_stamp.yfilter = yfilter;
}
if(value_path == "rib-info-valid")
{
rib_info_valid.yfilter = yfilter;
}
if(value_path == "bcdl-tables")
{
bcdl_tables.yfilter = yfilter;
}
if(value_path == "converged-tables")
{
converged_tables.yfilter = yfilter;
}
if(value_path == "rib-tables-converged-time-stamp")
{
rib_tables_converged_time_stamp.yfilter = yfilter;
}
if(value_path == "protocol-eod-valid")
{
protocol_eod_valid.yfilter = yfilter;
}
if(value_path == "protocol-eod-time-stamp")
{
protocol_eod_time_stamp.yfilter = yfilter;
}
}
bool Fib::Nodes::Node::Protocols::Protocol::Misc::MiIssuState::FisProtoState::has_leaf_or_child_of_name(const std::string & name) const
{
if(name == "protocol-name" || name == "aib-eod-time-stamp" || name == "rsi-eod-valid" || name == "rsi-eod-time-stamp" || name == "lsd-eod-valid" || name == "lsd-eod-time-stamp" || name == "lmrib-eod-valid" || name == "lmrib-eod-time-stamp" || name == "rib-info-valid" || name == "bcdl-tables" || name == "converged-tables" || name == "rib-tables-converged-time-stamp" || name == "protocol-eod-valid" || name == "protocol-eod-time-stamp")
return true;
return false;
}
Fib::Nodes::Node::Protocols::Protocol::Misc::MiPlatCapabilities::MiPlatCapabilities()
:
fpc_num_l3_lbl_levels{YType::uint8, "fpc-num-l3-lbl-levels"},
fpc_num_l3_lbl_paths{YType::uint8, "fpc-num-l3-lbl-paths"},
fpc_num_l3_lbl_rec_paths{YType::uint8, "fpc-num-l3-lbl-rec-paths"},
fpc_num_l3_ucmp_paths{YType::uint8, "fpc-num-l3-ucmp-paths"},
fpc_num_fwding_stages{YType::uint8, "fpc-num-fwding-stages"},
fpc_local_label_split{YType::uint32, "fpc-local-label-split"},
fpc_stats_support{YType::boolean, "fpc-stats-support"},
fpc_platf_ready_cb_wait{YType::boolean, "fpc-platf-ready-cb-wait"},
fpc_num_paths_per_pbts_class{YType::uint8, "fpc-num-paths-per-pbts-class"},
fpc_platf_v4_upd_disable{YType::boolean, "fpc-platf-v4-upd-disable"},
fpc_platf_v6_upd_disable{YType::boolean, "fpc-platf-v6-upd-disable"},
fpc_lba_tuples_default{YType::uint32, "fpc-lba-tuples-default"},
fpc_mraps_support{YType::boolean, "fpc-mraps-support"},
fpc_pbts_defclass_support{YType::boolean, "fpc-pbts-defclass-support"},
fpc_loadinfo_filter_support{YType::boolean, "fpc-loadinfo-filter-support"},
fpc_nhid{YType::boolean, "fpc-nhid"},
fpc_platf_temp_back_walk_reqd{YType::boolean, "fpc-platf-temp-back-walk-reqd"},
fpc_link_mpls_nhinfo_in_ipv6_thread_support{YType::boolean, "fpc-link-mpls-nhinfo-in-ipv6-thread-support"},
fpc_exclude_deag_bkup{YType::boolean, "fpc-exclude-deag-bkup"},
fpc_dlb_support{YType::boolean, "fpc-dlb-support"},
fpc_prefix_filter_support{YType::uint8, "fpc-prefix-filter-support"},
fpc_slowpath_ingress_inject_reqd{YType::boolean, "fpc-slowpath-ingress-inject-reqd"},
fpc_cofo_support{YType::boolean, "fpc-cofo-support"},
fpc_srv6_support{YType::boolean, "fpc-srv6-support"},
fpc_v4v6_ldi_collapse_support{YType::boolean, "fpc-v4v6-ldi-collapse-support"}
,
fpc_lisp_decap_over_v4(this, {})
, fpc_lisp_decap_over_v6(this, {})
, fpc_lisp_ucmp(this, {})
, fpc_resolve_via_table(this, {})
{
yang_name = "mi-plat-capabilities"; yang_parent_name = "misc"; is_top_level_class = false; has_list_ancestor = true;
}
Fib::Nodes::Node::Protocols::Protocol::Misc::MiPlatCapabilities::~MiPlatCapabilities()
{
}
bool Fib::Nodes::Node::Protocols::Protocol::Misc::MiPlatCapabilities::has_data() const
{
if (is_presence_container) return true;
for (std::size_t index=0; index<fpc_lisp_decap_over_v4.len(); index++)
{
if(fpc_lisp_decap_over_v4[index]->has_data())
return true;
}
for (std::size_t index=0; index<fpc_lisp_decap_over_v6.len(); index++)
{
if(fpc_lisp_decap_over_v6[index]->has_data())
return true;
}
for (std::size_t index=0; index<fpc_lisp_ucmp.len(); index++)
{
if(fpc_lisp_ucmp[index]->has_data())
return true;
}
for (std::size_t index=0; index<fpc_resolve_via_table.len(); index++)
{
if(fpc_resolve_via_table[index]->has_data())
return true;
}
return fpc_num_l3_lbl_levels.is_set
|| fpc_num_l3_lbl_paths.is_set
|| fpc_num_l3_lbl_rec_paths.is_set
|| fpc_num_l3_ucmp_paths.is_set
|| fpc_num_fwding_stages.is_set
|| fpc_local_label_split.is_set
|| fpc_stats_support.is_set
|| fpc_platf_ready_cb_wait.is_set
|| fpc_num_paths_per_pbts_class.is_set
|| fpc_platf_v4_upd_disable.is_set
|| fpc_platf_v6_upd_disable.is_set
|| fpc_lba_tuples_default.is_set
|| fpc_mraps_support.is_set
|| fpc_pbts_defclass_support.is_set
|| fpc_loadinfo_filter_support.is_set
|| fpc_nhid.is_set
|| fpc_platf_temp_back_walk_reqd.is_set
|| fpc_link_mpls_nhinfo_in_ipv6_thread_support.is_set
|| fpc_exclude_deag_bkup.is_set
|| fpc_dlb_support.is_set
|| fpc_prefix_filter_support.is_set
|| fpc_slowpath_ingress_inject_reqd.is_set
|| fpc_cofo_support.is_set
|| fpc_srv6_support.is_set
|| fpc_v4v6_ldi_collapse_support.is_set;
}
bool Fib::Nodes::Node::Protocols::Protocol::Misc::MiPlatCapabilities::has_operation() const
{
for (std::size_t index=0; index<fpc_lisp_decap_over_v4.len(); index++)
{
if(fpc_lisp_decap_over_v4[index]->has_operation())
return true;
}
for (std::size_t index=0; index<fpc_lisp_decap_over_v6.len(); index++)
{
if(fpc_lisp_decap_over_v6[index]->has_operation())
return true;
}
for (std::size_t index=0; index<fpc_lisp_ucmp.len(); index++)
{
if(fpc_lisp_ucmp[index]->has_operation())
return true;
}
for (std::size_t index=0; index<fpc_resolve_via_table.len(); index++)
{
if(fpc_resolve_via_table[index]->has_operation())
return true;
}
return is_set(yfilter)
|| ydk::is_set(fpc_num_l3_lbl_levels.yfilter)
|| ydk::is_set(fpc_num_l3_lbl_paths.yfilter)
|| ydk::is_set(fpc_num_l3_lbl_rec_paths.yfilter)
|| ydk::is_set(fpc_num_l3_ucmp_paths.yfilter)
|| ydk::is_set(fpc_num_fwding_stages.yfilter)
|| ydk::is_set(fpc_local_label_split.yfilter)
|| ydk::is_set(fpc_stats_support.yfilter)
|| ydk::is_set(fpc_platf_ready_cb_wait.yfilter)
|| ydk::is_set(fpc_num_paths_per_pbts_class.yfilter)
|| ydk::is_set(fpc_platf_v4_upd_disable.yfilter)
|| ydk::is_set(fpc_platf_v6_upd_disable.yfilter)
|| ydk::is_set(fpc_lba_tuples_default.yfilter)
|| ydk::is_set(fpc_mraps_support.yfilter)
|| ydk::is_set(fpc_pbts_defclass_support.yfilter)
|| ydk::is_set(fpc_loadinfo_filter_support.yfilter)
|| ydk::is_set(fpc_nhid.yfilter)
|| ydk::is_set(fpc_platf_temp_back_walk_reqd.yfilter)
|| ydk::is_set(fpc_link_mpls_nhinfo_in_ipv6_thread_support.yfilter)
|| ydk::is_set(fpc_exclude_deag_bkup.yfilter)
|| ydk::is_set(fpc_dlb_support.yfilter)
|| ydk::is_set(fpc_prefix_filter_support.yfilter)
|| ydk::is_set(fpc_slowpath_ingress_inject_reqd.yfilter)
|| ydk::is_set(fpc_cofo_support.yfilter)
|| ydk::is_set(fpc_srv6_support.yfilter)
|| ydk::is_set(fpc_v4v6_ldi_collapse_support.yfilter);
}
std::string Fib::Nodes::Node::Protocols::Protocol::Misc::MiPlatCapabilities::get_segment_path() const
{
std::ostringstream path_buffer;
path_buffer << "mi-plat-capabilities";
return path_buffer.str();
}
std::vector<std::pair<std::string, LeafData> > Fib::Nodes::Node::Protocols::Protocol::Misc::MiPlatCapabilities::get_name_leaf_data() const
{
std::vector<std::pair<std::string, LeafData> > leaf_name_data {};
if (fpc_num_l3_lbl_levels.is_set || is_set(fpc_num_l3_lbl_levels.yfilter)) leaf_name_data.push_back(fpc_num_l3_lbl_levels.get_name_leafdata());
if (fpc_num_l3_lbl_paths.is_set || is_set(fpc_num_l3_lbl_paths.yfilter)) leaf_name_data.push_back(fpc_num_l3_lbl_paths.get_name_leafdata());
if (fpc_num_l3_lbl_rec_paths.is_set || is_set(fpc_num_l3_lbl_rec_paths.yfilter)) leaf_name_data.push_back(fpc_num_l3_lbl_rec_paths.get_name_leafdata());
if (fpc_num_l3_ucmp_paths.is_set || is_set(fpc_num_l3_ucmp_paths.yfilter)) leaf_name_data.push_back(fpc_num_l3_ucmp_paths.get_name_leafdata());
if (fpc_num_fwding_stages.is_set || is_set(fpc_num_fwding_stages.yfilter)) leaf_name_data.push_back(fpc_num_fwding_stages.get_name_leafdata());
if (fpc_local_label_split.is_set || is_set(fpc_local_label_split.yfilter)) leaf_name_data.push_back(fpc_local_label_split.get_name_leafdata());
if (fpc_stats_support.is_set || is_set(fpc_stats_support.yfilter)) leaf_name_data.push_back(fpc_stats_support.get_name_leafdata());
if (fpc_platf_ready_cb_wait.is_set || is_set(fpc_platf_ready_cb_wait.yfilter)) leaf_name_data.push_back(fpc_platf_ready_cb_wait.get_name_leafdata());
if (fpc_num_paths_per_pbts_class.is_set || is_set(fpc_num_paths_per_pbts_class.yfilter)) leaf_name_data.push_back(fpc_num_paths_per_pbts_class.get_name_leafdata());
if (fpc_platf_v4_upd_disable.is_set || is_set(fpc_platf_v4_upd_disable.yfilter)) leaf_name_data.push_back(fpc_platf_v4_upd_disable.get_name_leafdata());
if (fpc_platf_v6_upd_disable.is_set || is_set(fpc_platf_v6_upd_disable.yfilter)) leaf_name_data.push_back(fpc_platf_v6_upd_disable.get_name_leafdata());
if (fpc_lba_tuples_default.is_set || is_set(fpc_lba_tuples_default.yfilter)) leaf_name_data.push_back(fpc_lba_tuples_default.get_name_leafdata());
if (fpc_mraps_support.is_set || is_set(fpc_mraps_support.yfilter)) leaf_name_data.push_back(fpc_mraps_support.get_name_leafdata());
if (fpc_pbts_defclass_support.is_set || is_set(fpc_pbts_defclass_support.yfilter)) leaf_name_data.push_back(fpc_pbts_defclass_support.get_name_leafdata());
if (fpc_loadinfo_filter_support.is_set || is_set(fpc_loadinfo_filter_support.yfilter)) leaf_name_data.push_back(fpc_loadinfo_filter_support.get_name_leafdata());
if (fpc_nhid.is_set || is_set(fpc_nhid.yfilter)) leaf_name_data.push_back(fpc_nhid.get_name_leafdata());
if (fpc_platf_temp_back_walk_reqd.is_set || is_set(fpc_platf_temp_back_walk_reqd.yfilter)) leaf_name_data.push_back(fpc_platf_temp_back_walk_reqd.get_name_leafdata());
if (fpc_link_mpls_nhinfo_in_ipv6_thread_support.is_set || is_set(fpc_link_mpls_nhinfo_in_ipv6_thread_support.yfilter)) leaf_name_data.push_back(fpc_link_mpls_nhinfo_in_ipv6_thread_support.get_name_leafdata());
if (fpc_exclude_deag_bkup.is_set || is_set(fpc_exclude_deag_bkup.yfilter)) leaf_name_data.push_back(fpc_exclude_deag_bkup.get_name_leafdata());
if (fpc_dlb_support.is_set || is_set(fpc_dlb_support.yfilter)) leaf_name_data.push_back(fpc_dlb_support.get_name_leafdata());
if (fpc_prefix_filter_support.is_set || is_set(fpc_prefix_filter_support.yfilter)) leaf_name_data.push_back(fpc_prefix_filter_support.get_name_leafdata());
if (fpc_slowpath_ingress_inject_reqd.is_set || is_set(fpc_slowpath_ingress_inject_reqd.yfilter)) leaf_name_data.push_back(fpc_slowpath_ingress_inject_reqd.get_name_leafdata());
if (fpc_cofo_support.is_set || is_set(fpc_cofo_support.yfilter)) leaf_name_data.push_back(fpc_cofo_support.get_name_leafdata());
if (fpc_srv6_support.is_set || is_set(fpc_srv6_support.yfilter)) leaf_name_data.push_back(fpc_srv6_support.get_name_leafdata());
if (fpc_v4v6_ldi_collapse_support.is_set || is_set(fpc_v4v6_ldi_collapse_support.yfilter)) leaf_name_data.push_back(fpc_v4v6_ldi_collapse_support.get_name_leafdata());
return leaf_name_data;
}
std::shared_ptr<ydk::Entity> Fib::Nodes::Node::Protocols::Protocol::Misc::MiPlatCapabilities::get_child_by_name(const std::string & child_yang_name, const std::string & segment_path)
{
if(child_yang_name == "fpc-lisp-decap-over-v4")
{
auto ent_ = std::make_shared<Fib::Nodes::Node::Protocols::Protocol::Misc::MiPlatCapabilities::FpcLispDecapOverV4>();
ent_->parent = this;
fpc_lisp_decap_over_v4.append(ent_);
return ent_;
}
if(child_yang_name == "fpc-lisp-decap-over-v6")
{
auto ent_ = std::make_shared<Fib::Nodes::Node::Protocols::Protocol::Misc::MiPlatCapabilities::FpcLispDecapOverV6>();
ent_->parent = this;
fpc_lisp_decap_over_v6.append(ent_);
return ent_;
}
if(child_yang_name == "fpc-lisp-ucmp")
{
auto ent_ = std::make_shared<Fib::Nodes::Node::Protocols::Protocol::Misc::MiPlatCapabilities::FpcLispUcmp>();
ent_->parent = this;
fpc_lisp_ucmp.append(ent_);
return ent_;
}
if(child_yang_name == "fpc-resolve-via-table")
{
auto ent_ = std::make_shared<Fib::Nodes::Node::Protocols::Protocol::Misc::MiPlatCapabilities::FpcResolveViaTable>();
ent_->parent = this;
fpc_resolve_via_table.append(ent_);
return ent_;
}
return nullptr;
}
std::map<std::string, std::shared_ptr<ydk::Entity>> Fib::Nodes::Node::Protocols::Protocol::Misc::MiPlatCapabilities::get_children() const
{
std::map<std::string, std::shared_ptr<ydk::Entity>> _children{};
char count_=0;
count_ = 0;
for (auto ent_ : fpc_lisp_decap_over_v4.entities())
{
if(_children.find(ent_->get_segment_path()) == _children.end())
_children[ent_->get_segment_path()] = ent_;
else
_children[ent_->get_segment_path()+count_++] = ent_;
}
count_ = 0;
for (auto ent_ : fpc_lisp_decap_over_v6.entities())
{
if(_children.find(ent_->get_segment_path()) == _children.end())
_children[ent_->get_segment_path()] = ent_;
else
_children[ent_->get_segment_path()+count_++] = ent_;
}
count_ = 0;
for (auto ent_ : fpc_lisp_ucmp.entities())
{
if(_children.find(ent_->get_segment_path()) == _children.end())
_children[ent_->get_segment_path()] = ent_;
else
_children[ent_->get_segment_path()+count_++] = ent_;
}
count_ = 0;
for (auto ent_ : fpc_resolve_via_table.entities())
{
if(_children.find(ent_->get_segment_path()) == _children.end())
_children[ent_->get_segment_path()] = ent_;
else
_children[ent_->get_segment_path()+count_++] = ent_;
}
return _children;
}
void Fib::Nodes::Node::Protocols::Protocol::Misc::MiPlatCapabilities::set_value(const std::string & value_path, const std::string & value, const std::string & name_space, const std::string & name_space_prefix)
{
if(value_path == "fpc-num-l3-lbl-levels")
{
fpc_num_l3_lbl_levels = value;
fpc_num_l3_lbl_levels.value_namespace = name_space;
fpc_num_l3_lbl_levels.value_namespace_prefix = name_space_prefix;
}
if(value_path == "fpc-num-l3-lbl-paths")
{
fpc_num_l3_lbl_paths = value;
fpc_num_l3_lbl_paths.value_namespace = name_space;
fpc_num_l3_lbl_paths.value_namespace_prefix = name_space_prefix;
}
if(value_path == "fpc-num-l3-lbl-rec-paths")
{
fpc_num_l3_lbl_rec_paths = value;
fpc_num_l3_lbl_rec_paths.value_namespace = name_space;
fpc_num_l3_lbl_rec_paths.value_namespace_prefix = name_space_prefix;
}
if(value_path == "fpc-num-l3-ucmp-paths")
{
fpc_num_l3_ucmp_paths = value;
fpc_num_l3_ucmp_paths.value_namespace = name_space;
fpc_num_l3_ucmp_paths.value_namespace_prefix = name_space_prefix;
}
if(value_path == "fpc-num-fwding-stages")
{
fpc_num_fwding_stages = value;
fpc_num_fwding_stages.value_namespace = name_space;
fpc_num_fwding_stages.value_namespace_prefix = name_space_prefix;
}
if(value_path == "fpc-local-label-split")
{
fpc_local_label_split = value;
fpc_local_label_split.value_namespace = name_space;
fpc_local_label_split.value_namespace_prefix = name_space_prefix;
}
if(value_path == "fpc-stats-support")
{
fpc_stats_support = value;
fpc_stats_support.value_namespace = name_space;
fpc_stats_support.value_namespace_prefix = name_space_prefix;
}
if(value_path == "fpc-platf-ready-cb-wait")
{
fpc_platf_ready_cb_wait = value;
fpc_platf_ready_cb_wait.value_namespace = name_space;
fpc_platf_ready_cb_wait.value_namespace_prefix = name_space_prefix;
}
if(value_path == "fpc-num-paths-per-pbts-class")
{
fpc_num_paths_per_pbts_class = value;
fpc_num_paths_per_pbts_class.value_namespace = name_space;
fpc_num_paths_per_pbts_class.value_namespace_prefix = name_space_prefix;
}
if(value_path == "fpc-platf-v4-upd-disable")
{
fpc_platf_v4_upd_disable = value;
fpc_platf_v4_upd_disable.value_namespace = name_space;
fpc_platf_v4_upd_disable.value_namespace_prefix = name_space_prefix;
}
if(value_path == "fpc-platf-v6-upd-disable")
{
fpc_platf_v6_upd_disable = value;
fpc_platf_v6_upd_disable.value_namespace = name_space;
fpc_platf_v6_upd_disable.value_namespace_prefix = name_space_prefix;
}
if(value_path == "fpc-lba-tuples-default")
{
fpc_lba_tuples_default = value;
fpc_lba_tuples_default.value_namespace = name_space;
fpc_lba_tuples_default.value_namespace_prefix = name_space_prefix;
}
if(value_path == "fpc-mraps-support")
{
fpc_mraps_support = value;
fpc_mraps_support.value_namespace = name_space;
fpc_mraps_support.value_namespace_prefix = name_space_prefix;
}
if(value_path == "fpc-pbts-defclass-support")
{
fpc_pbts_defclass_support = value;
fpc_pbts_defclass_support.value_namespace = name_space;
fpc_pbts_defclass_support.value_namespace_prefix = name_space_prefix;
}
if(value_path == "fpc-loadinfo-filter-support")
{
fpc_loadinfo_filter_support = value;
fpc_loadinfo_filter_support.value_namespace = name_space;
fpc_loadinfo_filter_support.value_namespace_prefix = name_space_prefix;
}
if(value_path == "fpc-nhid")
{
fpc_nhid = value;
fpc_nhid.value_namespace = name_space;
fpc_nhid.value_namespace_prefix = name_space_prefix;
}
if(value_path == "fpc-platf-temp-back-walk-reqd")
{
fpc_platf_temp_back_walk_reqd = value;
fpc_platf_temp_back_walk_reqd.value_namespace = name_space;
fpc_platf_temp_back_walk_reqd.value_namespace_prefix = name_space_prefix;
}
if(value_path == "fpc-link-mpls-nhinfo-in-ipv6-thread-support")
{
fpc_link_mpls_nhinfo_in_ipv6_thread_support = value;
fpc_link_mpls_nhinfo_in_ipv6_thread_support.value_namespace = name_space;
fpc_link_mpls_nhinfo_in_ipv6_thread_support.value_namespace_prefix = name_space_prefix;
}
if(value_path == "fpc-exclude-deag-bkup")
{
fpc_exclude_deag_bkup = value;
fpc_exclude_deag_bkup.value_namespace = name_space;
fpc_exclude_deag_bkup.value_namespace_prefix = name_space_prefix;
}
if(value_path == "fpc-dlb-support")
{
fpc_dlb_support = value;
fpc_dlb_support.value_namespace = name_space;
fpc_dlb_support.value_namespace_prefix = name_space_prefix;
}
if(value_path == "fpc-prefix-filter-support")
{
fpc_prefix_filter_support = value;
fpc_prefix_filter_support.value_namespace = name_space;
fpc_prefix_filter_support.value_namespace_prefix = name_space_prefix;
}
if(value_path == "fpc-slowpath-ingress-inject-reqd")
{
fpc_slowpath_ingress_inject_reqd = value;
fpc_slowpath_ingress_inject_reqd.value_namespace = name_space;
fpc_slowpath_ingress_inject_reqd.value_namespace_prefix = name_space_prefix;
}
if(value_path == "fpc-cofo-support")
{
fpc_cofo_support = value;
fpc_cofo_support.value_namespace = name_space;
fpc_cofo_support.value_namespace_prefix = name_space_prefix;
}
if(value_path == "fpc-srv6-support")
{
fpc_srv6_support = value;
fpc_srv6_support.value_namespace = name_space;
fpc_srv6_support.value_namespace_prefix = name_space_prefix;
}
if(value_path == "fpc-v4v6-ldi-collapse-support")
{
fpc_v4v6_ldi_collapse_support = value;
fpc_v4v6_ldi_collapse_support.value_namespace = name_space;
fpc_v4v6_ldi_collapse_support.value_namespace_prefix = name_space_prefix;
}
}
void Fib::Nodes::Node::Protocols::Protocol::Misc::MiPlatCapabilities::set_filter(const std::string & value_path, YFilter yfilter)
{
if(value_path == "fpc-num-l3-lbl-levels")
{
fpc_num_l3_lbl_levels.yfilter = yfilter;
}
if(value_path == "fpc-num-l3-lbl-paths")
{
fpc_num_l3_lbl_paths.yfilter = yfilter;
}
if(value_path == "fpc-num-l3-lbl-rec-paths")
{
fpc_num_l3_lbl_rec_paths.yfilter = yfilter;
}
if(value_path == "fpc-num-l3-ucmp-paths")
{
fpc_num_l3_ucmp_paths.yfilter = yfilter;
}
if(value_path == "fpc-num-fwding-stages")
{
fpc_num_fwding_stages.yfilter = yfilter;
}
if(value_path == "fpc-local-label-split")
{
fpc_local_label_split.yfilter = yfilter;
}
if(value_path == "fpc-stats-support")
{
fpc_stats_support.yfilter = yfilter;
}
if(value_path == "fpc-platf-ready-cb-wait")
{
fpc_platf_ready_cb_wait.yfilter = yfilter;
}
if(value_path == "fpc-num-paths-per-pbts-class")
{
fpc_num_paths_per_pbts_class.yfilter = yfilter;
}
if(value_path == "fpc-platf-v4-upd-disable")
{
fpc_platf_v4_upd_disable.yfilter = yfilter;
}
if(value_path == "fpc-platf-v6-upd-disable")
{
fpc_platf_v6_upd_disable.yfilter = yfilter;
}
if(value_path == "fpc-lba-tuples-default")
{
fpc_lba_tuples_default.yfilter = yfilter;
}
if(value_path == "fpc-mraps-support")
{
fpc_mraps_support.yfilter = yfilter;
}
if(value_path == "fpc-pbts-defclass-support")
{
fpc_pbts_defclass_support.yfilter = yfilter;
}
if(value_path == "fpc-loadinfo-filter-support")
{
fpc_loadinfo_filter_support.yfilter = yfilter;
}
if(value_path == "fpc-nhid")
{
fpc_nhid.yfilter = yfilter;
}
if(value_path == "fpc-platf-temp-back-walk-reqd")
{
fpc_platf_temp_back_walk_reqd.yfilter = yfilter;
}
if(value_path == "fpc-link-mpls-nhinfo-in-ipv6-thread-support")
{
fpc_link_mpls_nhinfo_in_ipv6_thread_support.yfilter = yfilter;
}
if(value_path == "fpc-exclude-deag-bkup")
{
fpc_exclude_deag_bkup.yfilter = yfilter;
}
if(value_path == "fpc-dlb-support")
{
fpc_dlb_support.yfilter = yfilter;
}
if(value_path == "fpc-prefix-filter-support")
{
fpc_prefix_filter_support.yfilter = yfilter;
}
if(value_path == "fpc-slowpath-ingress-inject-reqd")
{
fpc_slowpath_ingress_inject_reqd.yfilter = yfilter;
}
if(value_path == "fpc-cofo-support")
{
fpc_cofo_support.yfilter = yfilter;
}
if(value_path == "fpc-srv6-support")
{
fpc_srv6_support.yfilter = yfilter;
}
if(value_path == "fpc-v4v6-ldi-collapse-support")
{
fpc_v4v6_ldi_collapse_support.yfilter = yfilter;
}
}
bool Fib::Nodes::Node::Protocols::Protocol::Misc::MiPlatCapabilities::has_leaf_or_child_of_name(const std::string & name) const
{
if(name == "fpc-lisp-decap-over-v4" || name == "fpc-lisp-decap-over-v6" || name == "fpc-lisp-ucmp" || name == "fpc-resolve-via-table" || name == "fpc-num-l3-lbl-levels" || name == "fpc-num-l3-lbl-paths" || name == "fpc-num-l3-lbl-rec-paths" || name == "fpc-num-l3-ucmp-paths" || name == "fpc-num-fwding-stages" || name == "fpc-local-label-split" || name == "fpc-stats-support" || name == "fpc-platf-ready-cb-wait" || name == "fpc-num-paths-per-pbts-class" || name == "fpc-platf-v4-upd-disable" || name == "fpc-platf-v6-upd-disable" || name == "fpc-lba-tuples-default" || name == "fpc-mraps-support" || name == "fpc-pbts-defclass-support" || name == "fpc-loadinfo-filter-support" || name == "fpc-nhid" || name == "fpc-platf-temp-back-walk-reqd" || name == "fpc-link-mpls-nhinfo-in-ipv6-thread-support" || name == "fpc-exclude-deag-bkup" || name == "fpc-dlb-support" || name == "fpc-prefix-filter-support" || name == "fpc-slowpath-ingress-inject-reqd" || name == "fpc-cofo-support" || name == "fpc-srv6-support" || name == "fpc-v4v6-ldi-collapse-support")
return true;
return false;
}
Fib::Nodes::Node::Protocols::Protocol::Misc::MiPlatCapabilities::FpcLispDecapOverV4::FpcLispDecapOverV4()
:
entry{YType::boolean, "entry"}
{
yang_name = "fpc-lisp-decap-over-v4"; yang_parent_name = "mi-plat-capabilities"; is_top_level_class = false; has_list_ancestor = true;
}
Fib::Nodes::Node::Protocols::Protocol::Misc::MiPlatCapabilities::FpcLispDecapOverV4::~FpcLispDecapOverV4()
{
}
bool Fib::Nodes::Node::Protocols::Protocol::Misc::MiPlatCapabilities::FpcLispDecapOverV4::has_data() const
{
if (is_presence_container) return true;
return entry.is_set;
}
bool Fib::Nodes::Node::Protocols::Protocol::Misc::MiPlatCapabilities::FpcLispDecapOverV4::has_operation() const
{
return is_set(yfilter)
|| ydk::is_set(entry.yfilter);
}
std::string Fib::Nodes::Node::Protocols::Protocol::Misc::MiPlatCapabilities::FpcLispDecapOverV4::get_segment_path() const
{
std::ostringstream path_buffer;
path_buffer << "fpc-lisp-decap-over-v4";
path_buffer << "[" << get_ylist_key() << "]";
return path_buffer.str();
}
std::vector<std::pair<std::string, LeafData> > Fib::Nodes::Node::Protocols::Protocol::Misc::MiPlatCapabilities::FpcLispDecapOverV4::get_name_leaf_data() const
{
std::vector<std::pair<std::string, LeafData> > leaf_name_data {};
if (entry.is_set || is_set(entry.yfilter)) leaf_name_data.push_back(entry.get_name_leafdata());
return leaf_name_data;
}
std::shared_ptr<ydk::Entity> Fib::Nodes::Node::Protocols::Protocol::Misc::MiPlatCapabilities::FpcLispDecapOverV4::get_child_by_name(const std::string & child_yang_name, const std::string & segment_path)
{
return nullptr;
}
std::map<std::string, std::shared_ptr<ydk::Entity>> Fib::Nodes::Node::Protocols::Protocol::Misc::MiPlatCapabilities::FpcLispDecapOverV4::get_children() const
{
std::map<std::string, std::shared_ptr<ydk::Entity>> _children{};
char count_=0;
return _children;
}
void Fib::Nodes::Node::Protocols::Protocol::Misc::MiPlatCapabilities::FpcLispDecapOverV4::set_value(const std::string & value_path, const std::string & value, const std::string & name_space, const std::string & name_space_prefix)
{
if(value_path == "entry")
{
entry = value;
entry.value_namespace = name_space;
entry.value_namespace_prefix = name_space_prefix;
}
}
void Fib::Nodes::Node::Protocols::Protocol::Misc::MiPlatCapabilities::FpcLispDecapOverV4::set_filter(const std::string & value_path, YFilter yfilter)
{
if(value_path == "entry")
{
entry.yfilter = yfilter;
}
}
bool Fib::Nodes::Node::Protocols::Protocol::Misc::MiPlatCapabilities::FpcLispDecapOverV4::has_leaf_or_child_of_name(const std::string & name) const
{
if(name == "entry")
return true;
return false;
}
Fib::Nodes::Node::Protocols::Protocol::Misc::MiPlatCapabilities::FpcLispDecapOverV6::FpcLispDecapOverV6()
:
entry{YType::boolean, "entry"}
{
yang_name = "fpc-lisp-decap-over-v6"; yang_parent_name = "mi-plat-capabilities"; is_top_level_class = false; has_list_ancestor = true;
}
Fib::Nodes::Node::Protocols::Protocol::Misc::MiPlatCapabilities::FpcLispDecapOverV6::~FpcLispDecapOverV6()
{
}
bool Fib::Nodes::Node::Protocols::Protocol::Misc::MiPlatCapabilities::FpcLispDecapOverV6::has_data() const
{
if (is_presence_container) return true;
return entry.is_set;
}
bool Fib::Nodes::Node::Protocols::Protocol::Misc::MiPlatCapabilities::FpcLispDecapOverV6::has_operation() const
{
return is_set(yfilter)
|| ydk::is_set(entry.yfilter);
}
std::string Fib::Nodes::Node::Protocols::Protocol::Misc::MiPlatCapabilities::FpcLispDecapOverV6::get_segment_path() const
{
std::ostringstream path_buffer;
path_buffer << "fpc-lisp-decap-over-v6";
path_buffer << "[" << get_ylist_key() << "]";
return path_buffer.str();
}
std::vector<std::pair<std::string, LeafData> > Fib::Nodes::Node::Protocols::Protocol::Misc::MiPlatCapabilities::FpcLispDecapOverV6::get_name_leaf_data() const
{
std::vector<std::pair<std::string, LeafData> > leaf_name_data {};
if (entry.is_set || is_set(entry.yfilter)) leaf_name_data.push_back(entry.get_name_leafdata());
return leaf_name_data;
}
std::shared_ptr<ydk::Entity> Fib::Nodes::Node::Protocols::Protocol::Misc::MiPlatCapabilities::FpcLispDecapOverV6::get_child_by_name(const std::string & child_yang_name, const std::string & segment_path)
{
return nullptr;
}
std::map<std::string, std::shared_ptr<ydk::Entity>> Fib::Nodes::Node::Protocols::Protocol::Misc::MiPlatCapabilities::FpcLispDecapOverV6::get_children() const
{
std::map<std::string, std::shared_ptr<ydk::Entity>> _children{};
char count_=0;
return _children;
}
void Fib::Nodes::Node::Protocols::Protocol::Misc::MiPlatCapabilities::FpcLispDecapOverV6::set_value(const std::string & value_path, const std::string & value, const std::string & name_space, const std::string & name_space_prefix)
{
if(value_path == "entry")
{
entry = value;
entry.value_namespace = name_space;
entry.value_namespace_prefix = name_space_prefix;
}
}
void Fib::Nodes::Node::Protocols::Protocol::Misc::MiPlatCapabilities::FpcLispDecapOverV6::set_filter(const std::string & value_path, YFilter yfilter)
{
if(value_path == "entry")
{
entry.yfilter = yfilter;
}
}
bool Fib::Nodes::Node::Protocols::Protocol::Misc::MiPlatCapabilities::FpcLispDecapOverV6::has_leaf_or_child_of_name(const std::string & name) const
{
if(name == "entry")
return true;
return false;
}
Fib::Nodes::Node::Protocols::Protocol::Misc::MiPlatCapabilities::FpcLispUcmp::FpcLispUcmp()
:
entry{YType::boolean, "entry"}
{
yang_name = "fpc-lisp-ucmp"; yang_parent_name = "mi-plat-capabilities"; is_top_level_class = false; has_list_ancestor = true;
}
Fib::Nodes::Node::Protocols::Protocol::Misc::MiPlatCapabilities::FpcLispUcmp::~FpcLispUcmp()
{
}
bool Fib::Nodes::Node::Protocols::Protocol::Misc::MiPlatCapabilities::FpcLispUcmp::has_data() const
{
if (is_presence_container) return true;
return entry.is_set;
}
bool Fib::Nodes::Node::Protocols::Protocol::Misc::MiPlatCapabilities::FpcLispUcmp::has_operation() const
{
return is_set(yfilter)
|| ydk::is_set(entry.yfilter);
}
std::string Fib::Nodes::Node::Protocols::Protocol::Misc::MiPlatCapabilities::FpcLispUcmp::get_segment_path() const
{
std::ostringstream path_buffer;
path_buffer << "fpc-lisp-ucmp";
path_buffer << "[" << get_ylist_key() << "]";
return path_buffer.str();
}
std::vector<std::pair<std::string, LeafData> > Fib::Nodes::Node::Protocols::Protocol::Misc::MiPlatCapabilities::FpcLispUcmp::get_name_leaf_data() const
{
std::vector<std::pair<std::string, LeafData> > leaf_name_data {};
if (entry.is_set || is_set(entry.yfilter)) leaf_name_data.push_back(entry.get_name_leafdata());
return leaf_name_data;
}
std::shared_ptr<ydk::Entity> Fib::Nodes::Node::Protocols::Protocol::Misc::MiPlatCapabilities::FpcLispUcmp::get_child_by_name(const std::string & child_yang_name, const std::string & segment_path)
{
return nullptr;
}
std::map<std::string, std::shared_ptr<ydk::Entity>> Fib::Nodes::Node::Protocols::Protocol::Misc::MiPlatCapabilities::FpcLispUcmp::get_children() const
{
std::map<std::string, std::shared_ptr<ydk::Entity>> _children{};
char count_=0;
return _children;
}
void Fib::Nodes::Node::Protocols::Protocol::Misc::MiPlatCapabilities::FpcLispUcmp::set_value(const std::string & value_path, const std::string & value, const std::string & name_space, const std::string & name_space_prefix)
{
if(value_path == "entry")
{
entry = value;
entry.value_namespace = name_space;
entry.value_namespace_prefix = name_space_prefix;
}
}
void Fib::Nodes::Node::Protocols::Protocol::Misc::MiPlatCapabilities::FpcLispUcmp::set_filter(const std::string & value_path, YFilter yfilter)
{
if(value_path == "entry")
{
entry.yfilter = yfilter;
}
}
bool Fib::Nodes::Node::Protocols::Protocol::Misc::MiPlatCapabilities::FpcLispUcmp::has_leaf_or_child_of_name(const std::string & name) const
{
if(name == "entry")
return true;
return false;
}
Fib::Nodes::Node::Protocols::Protocol::Misc::MiPlatCapabilities::FpcResolveViaTable::FpcResolveViaTable()
:
entry{YType::boolean, "entry"}
{
yang_name = "fpc-resolve-via-table"; yang_parent_name = "mi-plat-capabilities"; is_top_level_class = false; has_list_ancestor = true;
}
Fib::Nodes::Node::Protocols::Protocol::Misc::MiPlatCapabilities::FpcResolveViaTable::~FpcResolveViaTable()
{
}
bool Fib::Nodes::Node::Protocols::Protocol::Misc::MiPlatCapabilities::FpcResolveViaTable::has_data() const
{
if (is_presence_container) return true;
return entry.is_set;
}
bool Fib::Nodes::Node::Protocols::Protocol::Misc::MiPlatCapabilities::FpcResolveViaTable::has_operation() const
{
return is_set(yfilter)
|| ydk::is_set(entry.yfilter);
}
std::string Fib::Nodes::Node::Protocols::Protocol::Misc::MiPlatCapabilities::FpcResolveViaTable::get_segment_path() const
{
std::ostringstream path_buffer;
path_buffer << "fpc-resolve-via-table";
path_buffer << "[" << get_ylist_key() << "]";
return path_buffer.str();
}
std::vector<std::pair<std::string, LeafData> > Fib::Nodes::Node::Protocols::Protocol::Misc::MiPlatCapabilities::FpcResolveViaTable::get_name_leaf_data() const
{
std::vector<std::pair<std::string, LeafData> > leaf_name_data {};
if (entry.is_set || is_set(entry.yfilter)) leaf_name_data.push_back(entry.get_name_leafdata());
return leaf_name_data;
}
std::shared_ptr<ydk::Entity> Fib::Nodes::Node::Protocols::Protocol::Misc::MiPlatCapabilities::FpcResolveViaTable::get_child_by_name(const std::string & child_yang_name, const std::string & segment_path)
{
return nullptr;
}
std::map<std::string, std::shared_ptr<ydk::Entity>> Fib::Nodes::Node::Protocols::Protocol::Misc::MiPlatCapabilities::FpcResolveViaTable::get_children() const
{
std::map<std::string, std::shared_ptr<ydk::Entity>> _children{};
char count_=0;
return _children;
}
void Fib::Nodes::Node::Protocols::Protocol::Misc::MiPlatCapabilities::FpcResolveViaTable::set_value(const std::string & value_path, const std::string & value, const std::string & name_space, const std::string & name_space_prefix)
{
if(value_path == "entry")
{
entry = value;
entry.value_namespace = name_space;
entry.value_namespace_prefix = name_space_prefix;
}
}
void Fib::Nodes::Node::Protocols::Protocol::Misc::MiPlatCapabilities::FpcResolveViaTable::set_filter(const std::string & value_path, YFilter yfilter)
{
if(value_path == "entry")
{
entry.yfilter = yfilter;
}
}
bool Fib::Nodes::Node::Protocols::Protocol::Misc::MiPlatCapabilities::FpcResolveViaTable::has_leaf_or_child_of_name(const std::string & name) const
{
if(name == "entry")
return true;
return false;
}
Fib::Nodes::Node::Protocols::Protocol::Misc::MiIdbExtCleanupFailedCount::MiIdbExtCleanupFailedCount()
:
entry{YType::uint32, "entry"}
{
yang_name = "mi-idb-ext-cleanup-failed-count"; yang_parent_name = "misc"; is_top_level_class = false; has_list_ancestor = true;
}
Fib::Nodes::Node::Protocols::Protocol::Misc::MiIdbExtCleanupFailedCount::~MiIdbExtCleanupFailedCount()
{
}
bool Fib::Nodes::Node::Protocols::Protocol::Misc::MiIdbExtCleanupFailedCount::has_data() const
{
if (is_presence_container) return true;
return entry.is_set;
}
bool Fib::Nodes::Node::Protocols::Protocol::Misc::MiIdbExtCleanupFailedCount::has_operation() const
{
return is_set(yfilter)
|| ydk::is_set(entry.yfilter);
}
std::string Fib::Nodes::Node::Protocols::Protocol::Misc::MiIdbExtCleanupFailedCount::get_segment_path() const
{
std::ostringstream path_buffer;
path_buffer << "mi-idb-ext-cleanup-failed-count";
path_buffer << "[" << get_ylist_key() << "]";
return path_buffer.str();
}
std::vector<std::pair<std::string, LeafData> > Fib::Nodes::Node::Protocols::Protocol::Misc::MiIdbExtCleanupFailedCount::get_name_leaf_data() const
{
std::vector<std::pair<std::string, LeafData> > leaf_name_data {};
if (entry.is_set || is_set(entry.yfilter)) leaf_name_data.push_back(entry.get_name_leafdata());
return leaf_name_data;
}
std::shared_ptr<ydk::Entity> Fib::Nodes::Node::Protocols::Protocol::Misc::MiIdbExtCleanupFailedCount::get_child_by_name(const std::string & child_yang_name, const std::string & segment_path)
{
return nullptr;
}
std::map<std::string, std::shared_ptr<ydk::Entity>> Fib::Nodes::Node::Protocols::Protocol::Misc::MiIdbExtCleanupFailedCount::get_children() const
{
std::map<std::string, std::shared_ptr<ydk::Entity>> _children{};
char count_=0;
return _children;
}
void Fib::Nodes::Node::Protocols::Protocol::Misc::MiIdbExtCleanupFailedCount::set_value(const std::string & value_path, const std::string & value, const std::string & name_space, const std::string & name_space_prefix)
{
if(value_path == "entry")
{
entry = value;
entry.value_namespace = name_space;
entry.value_namespace_prefix = name_space_prefix;
}
}
void Fib::Nodes::Node::Protocols::Protocol::Misc::MiIdbExtCleanupFailedCount::set_filter(const std::string & value_path, YFilter yfilter)
{
if(value_path == "entry")
{
entry.yfilter = yfilter;
}
}
bool Fib::Nodes::Node::Protocols::Protocol::Misc::MiIdbExtCleanupFailedCount::has_leaf_or_child_of_name(const std::string & name) const
{
if(name == "entry")
return true;
return false;
}
Fib::Nodes::Node::Protocols::Protocol::Misc::MiLrpfStatsFail::MiLrpfStatsFail()
:
entry{YType::uint32, "entry"}
{
yang_name = "mi-lrpf-stats-fail"; yang_parent_name = "misc"; is_top_level_class = false; has_list_ancestor = true;
}
Fib::Nodes::Node::Protocols::Protocol::Misc::MiLrpfStatsFail::~MiLrpfStatsFail()
{
}
bool Fib::Nodes::Node::Protocols::Protocol::Misc::MiLrpfStatsFail::has_data() const
{
if (is_presence_container) return true;
return entry.is_set;
}
bool Fib::Nodes::Node::Protocols::Protocol::Misc::MiLrpfStatsFail::has_operation() const
{
return is_set(yfilter)
|| ydk::is_set(entry.yfilter);
}
std::string Fib::Nodes::Node::Protocols::Protocol::Misc::MiLrpfStatsFail::get_segment_path() const
{
std::ostringstream path_buffer;
path_buffer << "mi-lrpf-stats-fail";
path_buffer << "[" << get_ylist_key() << "]";
return path_buffer.str();
}
std::vector<std::pair<std::string, LeafData> > Fib::Nodes::Node::Protocols::Protocol::Misc::MiLrpfStatsFail::get_name_leaf_data() const
{
std::vector<std::pair<std::string, LeafData> > leaf_name_data {};
if (entry.is_set || is_set(entry.yfilter)) leaf_name_data.push_back(entry.get_name_leafdata());
return leaf_name_data;
}
std::shared_ptr<ydk::Entity> Fib::Nodes::Node::Protocols::Protocol::Misc::MiLrpfStatsFail::get_child_by_name(const std::string & child_yang_name, const std::string & segment_path)
{
return nullptr;
}
std::map<std::string, std::shared_ptr<ydk::Entity>> Fib::Nodes::Node::Protocols::Protocol::Misc::MiLrpfStatsFail::get_children() const
{
std::map<std::string, std::shared_ptr<ydk::Entity>> _children{};
char count_=0;
return _children;
}
void Fib::Nodes::Node::Protocols::Protocol::Misc::MiLrpfStatsFail::set_value(const std::string & value_path, const std::string & value, const std::string & name_space, const std::string & name_space_prefix)
{
if(value_path == "entry")
{
entry = value;
entry.value_namespace = name_space;
entry.value_namespace_prefix = name_space_prefix;
}
}
void Fib::Nodes::Node::Protocols::Protocol::Misc::MiLrpfStatsFail::set_filter(const std::string & value_path, YFilter yfilter)
{
if(value_path == "entry")
{
entry.yfilter = yfilter;
}
}
bool Fib::Nodes::Node::Protocols::Protocol::Misc::MiLrpfStatsFail::has_leaf_or_child_of_name(const std::string & name) const
{
if(name == "entry")
return true;
return false;
}
Fib::Nodes::Node::Protocols::Protocol::Misc::MiLrpfStatsAct::MiLrpfStatsAct()
:
entry{YType::uint32, "entry"}
{
yang_name = "mi-lrpf-stats-act"; yang_parent_name = "misc"; is_top_level_class = false; has_list_ancestor = true;
}
Fib::Nodes::Node::Protocols::Protocol::Misc::MiLrpfStatsAct::~MiLrpfStatsAct()
{
}
bool Fib::Nodes::Node::Protocols::Protocol::Misc::MiLrpfStatsAct::has_data() const
{
if (is_presence_container) return true;
return entry.is_set;
}
bool Fib::Nodes::Node::Protocols::Protocol::Misc::MiLrpfStatsAct::has_operation() const
{
return is_set(yfilter)
|| ydk::is_set(entry.yfilter);
}
std::string Fib::Nodes::Node::Protocols::Protocol::Misc::MiLrpfStatsAct::get_segment_path() const
{
std::ostringstream path_buffer;
path_buffer << "mi-lrpf-stats-act";
path_buffer << "[" << get_ylist_key() << "]";
return path_buffer.str();
}
std::vector<std::pair<std::string, LeafData> > Fib::Nodes::Node::Protocols::Protocol::Misc::MiLrpfStatsAct::get_name_leaf_data() const
{
std::vector<std::pair<std::string, LeafData> > leaf_name_data {};
if (entry.is_set || is_set(entry.yfilter)) leaf_name_data.push_back(entry.get_name_leafdata());
return leaf_name_data;
}
std::shared_ptr<ydk::Entity> Fib::Nodes::Node::Protocols::Protocol::Misc::MiLrpfStatsAct::get_child_by_name(const std::string & child_yang_name, const std::string & segment_path)
{
return nullptr;
}
std::map<std::string, std::shared_ptr<ydk::Entity>> Fib::Nodes::Node::Protocols::Protocol::Misc::MiLrpfStatsAct::get_children() const
{
std::map<std::string, std::shared_ptr<ydk::Entity>> _children{};
char count_=0;
return _children;
}
void Fib::Nodes::Node::Protocols::Protocol::Misc::MiLrpfStatsAct::set_value(const std::string & value_path, const std::string & value, const std::string & name_space, const std::string & name_space_prefix)
{
if(value_path == "entry")
{
entry = value;
entry.value_namespace = name_space;
entry.value_namespace_prefix = name_space_prefix;
}
}
void Fib::Nodes::Node::Protocols::Protocol::Misc::MiLrpfStatsAct::set_filter(const std::string & value_path, YFilter yfilter)
{
if(value_path == "entry")
{
entry.yfilter = yfilter;
}
}
bool Fib::Nodes::Node::Protocols::Protocol::Misc::MiLrpfStatsAct::has_leaf_or_child_of_name(const std::string & name) const
{
if(name == "entry")
return true;
return false;
}
Fib::Nodes::Node::Protocols::Protocol::Misc::MiLrpfNum::MiLrpfNum()
:
entry{YType::uint32, "entry"}
{
yang_name = "mi-lrpf-num"; yang_parent_name = "misc"; is_top_level_class = false; has_list_ancestor = true;
}
Fib::Nodes::Node::Protocols::Protocol::Misc::MiLrpfNum::~MiLrpfNum()
{
}
bool Fib::Nodes::Node::Protocols::Protocol::Misc::MiLrpfNum::has_data() const
{
if (is_presence_container) return true;
return entry.is_set;
}
bool Fib::Nodes::Node::Protocols::Protocol::Misc::MiLrpfNum::has_operation() const
{
return is_set(yfilter)
|| ydk::is_set(entry.yfilter);
}
std::string Fib::Nodes::Node::Protocols::Protocol::Misc::MiLrpfNum::get_segment_path() const
{
std::ostringstream path_buffer;
path_buffer << "mi-lrpf-num";
path_buffer << "[" << get_ylist_key() << "]";
return path_buffer.str();
}
std::vector<std::pair<std::string, LeafData> > Fib::Nodes::Node::Protocols::Protocol::Misc::MiLrpfNum::get_name_leaf_data() const
{
std::vector<std::pair<std::string, LeafData> > leaf_name_data {};
if (entry.is_set || is_set(entry.yfilter)) leaf_name_data.push_back(entry.get_name_leafdata());
return leaf_name_data;
}
std::shared_ptr<ydk::Entity> Fib::Nodes::Node::Protocols::Protocol::Misc::MiLrpfNum::get_child_by_name(const std::string & child_yang_name, const std::string & segment_path)
{
return nullptr;
}
std::map<std::string, std::shared_ptr<ydk::Entity>> Fib::Nodes::Node::Protocols::Protocol::Misc::MiLrpfNum::get_children() const
{
std::map<std::string, std::shared_ptr<ydk::Entity>> _children{};
char count_=0;
return _children;
}
void Fib::Nodes::Node::Protocols::Protocol::Misc::MiLrpfNum::set_value(const std::string & value_path, const std::string & value, const std::string & name_space, const std::string & name_space_prefix)
{
if(value_path == "entry")
{
entry = value;
entry.value_namespace = name_space;
entry.value_namespace_prefix = name_space_prefix;
}
}
void Fib::Nodes::Node::Protocols::Protocol::Misc::MiLrpfNum::set_filter(const std::string & value_path, YFilter yfilter)
{
if(value_path == "entry")
{
entry.yfilter = yfilter;
}
}
bool Fib::Nodes::Node::Protocols::Protocol::Misc::MiLrpfNum::has_leaf_or_child_of_name(const std::string & name) const
{
if(name == "entry")
return true;
return false;
}
Fib::Nodes::Node::Protocols::Protocol::Misc::MiIdbLsecEnabledNum::MiIdbLsecEnabledNum()
:
entry{YType::uint32, "entry"}
{
yang_name = "mi-idb-lsec-enabled-num"; yang_parent_name = "misc"; is_top_level_class = false; has_list_ancestor = true;
}
Fib::Nodes::Node::Protocols::Protocol::Misc::MiIdbLsecEnabledNum::~MiIdbLsecEnabledNum()
{
}
bool Fib::Nodes::Node::Protocols::Protocol::Misc::MiIdbLsecEnabledNum::has_data() const
{
if (is_presence_container) return true;
return entry.is_set;
}
bool Fib::Nodes::Node::Protocols::Protocol::Misc::MiIdbLsecEnabledNum::has_operation() const
{
return is_set(yfilter)
|| ydk::is_set(entry.yfilter);
}
std::string Fib::Nodes::Node::Protocols::Protocol::Misc::MiIdbLsecEnabledNum::get_segment_path() const
{
std::ostringstream path_buffer;
path_buffer << "mi-idb-lsec-enabled-num";
path_buffer << "[" << get_ylist_key() << "]";
return path_buffer.str();
}
std::vector<std::pair<std::string, LeafData> > Fib::Nodes::Node::Protocols::Protocol::Misc::MiIdbLsecEnabledNum::get_name_leaf_data() const
{
std::vector<std::pair<std::string, LeafData> > leaf_name_data {};
if (entry.is_set || is_set(entry.yfilter)) leaf_name_data.push_back(entry.get_name_leafdata());
return leaf_name_data;
}
std::shared_ptr<ydk::Entity> Fib::Nodes::Node::Protocols::Protocol::Misc::MiIdbLsecEnabledNum::get_child_by_name(const std::string & child_yang_name, const std::string & segment_path)
{
return nullptr;
}
std::map<std::string, std::shared_ptr<ydk::Entity>> Fib::Nodes::Node::Protocols::Protocol::Misc::MiIdbLsecEnabledNum::get_children() const
{
std::map<std::string, std::shared_ptr<ydk::Entity>> _children{};
char count_=0;
return _children;
}
void Fib::Nodes::Node::Protocols::Protocol::Misc::MiIdbLsecEnabledNum::set_value(const std::string & value_path, const std::string & value, const std::string & name_space, const std::string & name_space_prefix)
{
if(value_path == "entry")
{
entry = value;
entry.value_namespace = name_space;
entry.value_namespace_prefix = name_space_prefix;
}
}
void Fib::Nodes::Node::Protocols::Protocol::Misc::MiIdbLsecEnabledNum::set_filter(const std::string & value_path, YFilter yfilter)
{
if(value_path == "entry")
{
entry.yfilter = yfilter;
}
}
bool Fib::Nodes::Node::Protocols::Protocol::Misc::MiIdbLsecEnabledNum::has_leaf_or_child_of_name(const std::string & name) const
{
if(name == "entry")
return true;
return false;
}
Fib::Nodes::Node::Protocols::Protocol::Misc::MiNumLispEid::MiNumLispEid()
:
entry{YType::uint32, "entry"}
{
yang_name = "mi-num-lisp-eid"; yang_parent_name = "misc"; is_top_level_class = false; has_list_ancestor = true;
}
Fib::Nodes::Node::Protocols::Protocol::Misc::MiNumLispEid::~MiNumLispEid()
{
}
bool Fib::Nodes::Node::Protocols::Protocol::Misc::MiNumLispEid::has_data() const
{
if (is_presence_container) return true;
return entry.is_set;
}
bool Fib::Nodes::Node::Protocols::Protocol::Misc::MiNumLispEid::has_operation() const
{
return is_set(yfilter)
|| ydk::is_set(entry.yfilter);
}
std::string Fib::Nodes::Node::Protocols::Protocol::Misc::MiNumLispEid::get_segment_path() const
{
std::ostringstream path_buffer;
path_buffer << "mi-num-lisp-eid";
path_buffer << "[" << get_ylist_key() << "]";
return path_buffer.str();
}
std::vector<std::pair<std::string, LeafData> > Fib::Nodes::Node::Protocols::Protocol::Misc::MiNumLispEid::get_name_leaf_data() const
{
std::vector<std::pair<std::string, LeafData> > leaf_name_data {};
if (entry.is_set || is_set(entry.yfilter)) leaf_name_data.push_back(entry.get_name_leafdata());
return leaf_name_data;
}
std::shared_ptr<ydk::Entity> Fib::Nodes::Node::Protocols::Protocol::Misc::MiNumLispEid::get_child_by_name(const std::string & child_yang_name, const std::string & segment_path)
{
return nullptr;
}
std::map<std::string, std::shared_ptr<ydk::Entity>> Fib::Nodes::Node::Protocols::Protocol::Misc::MiNumLispEid::get_children() const
{
std::map<std::string, std::shared_ptr<ydk::Entity>> _children{};
char count_=0;
return _children;
}
void Fib::Nodes::Node::Protocols::Protocol::Misc::MiNumLispEid::set_value(const std::string & value_path, const std::string & value, const std::string & name_space, const std::string & name_space_prefix)
{
if(value_path == "entry")
{
entry = value;
entry.value_namespace = name_space;
entry.value_namespace_prefix = name_space_prefix;
}
}
void Fib::Nodes::Node::Protocols::Protocol::Misc::MiNumLispEid::set_filter(const std::string & value_path, YFilter yfilter)
{
if(value_path == "entry")
{
entry.yfilter = yfilter;
}
}
bool Fib::Nodes::Node::Protocols::Protocol::Misc::MiNumLispEid::has_leaf_or_child_of_name(const std::string & name) const
{
if(name == "entry")
return true;
return false;
}
Fib::Nodes::Node::Protocols::Protocol::Misc::MiNumLispValidEid::MiNumLispValidEid()
:
entry{YType::uint32, "entry"}
{
yang_name = "mi-num-lisp-valid-eid"; yang_parent_name = "misc"; is_top_level_class = false; has_list_ancestor = true;
}
Fib::Nodes::Node::Protocols::Protocol::Misc::MiNumLispValidEid::~MiNumLispValidEid()
{
}
bool Fib::Nodes::Node::Protocols::Protocol::Misc::MiNumLispValidEid::has_data() const
{
if (is_presence_container) return true;
return entry.is_set;
}
bool Fib::Nodes::Node::Protocols::Protocol::Misc::MiNumLispValidEid::has_operation() const
{
return is_set(yfilter)
|| ydk::is_set(entry.yfilter);
}
std::string Fib::Nodes::Node::Protocols::Protocol::Misc::MiNumLispValidEid::get_segment_path() const
{
std::ostringstream path_buffer;
path_buffer << "mi-num-lisp-valid-eid";
path_buffer << "[" << get_ylist_key() << "]";
return path_buffer.str();
}
std::vector<std::pair<std::string, LeafData> > Fib::Nodes::Node::Protocols::Protocol::Misc::MiNumLispValidEid::get_name_leaf_data() const
{
std::vector<std::pair<std::string, LeafData> > leaf_name_data {};
if (entry.is_set || is_set(entry.yfilter)) leaf_name_data.push_back(entry.get_name_leafdata());
return leaf_name_data;
}
std::shared_ptr<ydk::Entity> Fib::Nodes::Node::Protocols::Protocol::Misc::MiNumLispValidEid::get_child_by_name(const std::string & child_yang_name, const std::string & segment_path)
{
return nullptr;
}
std::map<std::string, std::shared_ptr<ydk::Entity>> Fib::Nodes::Node::Protocols::Protocol::Misc::MiNumLispValidEid::get_children() const
{
std::map<std::string, std::shared_ptr<ydk::Entity>> _children{};
char count_=0;
return _children;
}
void Fib::Nodes::Node::Protocols::Protocol::Misc::MiNumLispValidEid::set_value(const std::string & value_path, const std::string & value, const std::string & name_space, const std::string & name_space_prefix)
{
if(value_path == "entry")
{
entry = value;
entry.value_namespace = name_space;
entry.value_namespace_prefix = name_space_prefix;
}
}
void Fib::Nodes::Node::Protocols::Protocol::Misc::MiNumLispValidEid::set_filter(const std::string & value_path, YFilter yfilter)
{
if(value_path == "entry")
{
entry.yfilter = yfilter;
}
}
bool Fib::Nodes::Node::Protocols::Protocol::Misc::MiNumLispValidEid::has_leaf_or_child_of_name(const std::string & name) const
{
if(name == "entry")
return true;
return false;
}
Fib::Nodes::Node::Protocols::Protocol::Misc::MiCpulessNode::MiCpulessNode()
:
entry{YType::uint32, "entry"}
{
yang_name = "mi-cpuless-node"; yang_parent_name = "misc"; is_top_level_class = false; has_list_ancestor = true;
}
Fib::Nodes::Node::Protocols::Protocol::Misc::MiCpulessNode::~MiCpulessNode()
{
}
bool Fib::Nodes::Node::Protocols::Protocol::Misc::MiCpulessNode::has_data() const
{
if (is_presence_container) return true;
return entry.is_set;
}
bool Fib::Nodes::Node::Protocols::Protocol::Misc::MiCpulessNode::has_operation() const
{
return is_set(yfilter)
|| ydk::is_set(entry.yfilter);
}
std::string Fib::Nodes::Node::Protocols::Protocol::Misc::MiCpulessNode::get_segment_path() const
{
std::ostringstream path_buffer;
path_buffer << "mi-cpuless-node";
path_buffer << "[" << get_ylist_key() << "]";
return path_buffer.str();
}
std::vector<std::pair<std::string, LeafData> > Fib::Nodes::Node::Protocols::Protocol::Misc::MiCpulessNode::get_name_leaf_data() const
{
std::vector<std::pair<std::string, LeafData> > leaf_name_data {};
if (entry.is_set || is_set(entry.yfilter)) leaf_name_data.push_back(entry.get_name_leafdata());
return leaf_name_data;
}
std::shared_ptr<ydk::Entity> Fib::Nodes::Node::Protocols::Protocol::Misc::MiCpulessNode::get_child_by_name(const std::string & child_yang_name, const std::string & segment_path)
{
return nullptr;
}
std::map<std::string, std::shared_ptr<ydk::Entity>> Fib::Nodes::Node::Protocols::Protocol::Misc::MiCpulessNode::get_children() const
{
std::map<std::string, std::shared_ptr<ydk::Entity>> _children{};
char count_=0;
return _children;
}
void Fib::Nodes::Node::Protocols::Protocol::Misc::MiCpulessNode::set_value(const std::string & value_path, const std::string & value, const std::string & name_space, const std::string & name_space_prefix)
{
if(value_path == "entry")
{
entry = value;
entry.value_namespace = name_space;
entry.value_namespace_prefix = name_space_prefix;
}
}
void Fib::Nodes::Node::Protocols::Protocol::Misc::MiCpulessNode::set_filter(const std::string & value_path, YFilter yfilter)
{
if(value_path == "entry")
{
entry.yfilter = yfilter;
}
}
bool Fib::Nodes::Node::Protocols::Protocol::Misc::MiCpulessNode::has_leaf_or_child_of_name(const std::string & name) const
{
if(name == "entry")
return true;
return false;
}
Fib::Nodes::Node::Protocols::Protocol::Misc::MiProtoDbgStat::MiProtoDbgStat()
:
fpd_gbltbl_entries{YType::uint64, "fpd-gbltbl-entries"},
fpd_gbltbl_rej_entries{YType::uint64, "fpd-gbltbl-rej-entries"},
fpd_vrftbl_entries{YType::uint64, "fpd-vrftbl-entries"},
fpd_vrftbl_rej_entries{YType::uint64, "fpd-vrftbl-rej-entries"},
fpd_num_tbls{YType::uint32, "fpd-num-tbls"},
fpd_bcdl_msgs{YType::uint64, "fpd-bcdl-msgs"},
fpd_route_upd{YType::uint64, "fpd-route-upd"},
fpd_route_del{YType::uint64, "fpd-route-del"},
fpd_route_rcv{YType::uint64, "fpd-route-rcv"},
fpd_route_drops{YType::uint64, "fpd-route-drops"},
fpd_lbl_recycled{YType::uint64, "fpd-lbl-recycled"},
fpd_version_mismatch_drops{YType::uint64, "fpd-version-mismatch-drops"},
fpd_adj_upd{YType::uint64, "fpd-adj-upd"},
fpd_adj_del{YType::uint64, "fpd-adj-del"},
fpd_adj_upd_tx{YType::uint64, "fpd-adj-upd-tx"},
fpd_adj_upd_tx_nh_found{YType::uint64, "fpd-adj-upd-tx-nh-found"},
fpd_adj_upd_tx_retry_created{YType::uint64, "fpd-adj-upd-tx-retry-created"},
fpd_adj_tx_retry_nh_found{YType::uint64, "fpd-adj-tx-retry-nh-found"},
fpd_adj_tx_retry_obj_reinit{YType::uint64, "fpd-adj-tx-retry-obj-reinit"},
fpd_adj_drops{YType::uint64, "fpd-adj-drops"},
fpd_adj_msg{YType::uint64, "fpd-adj-msg"},
fpd_te_rcv{YType::uint64, "fpd-te-rcv"},
fpd_te_version_mismatch_drops{YType::uint64, "fpd-te-version-mismatch-drops"},
fpd_num_retry_touts{YType::uint64, "fpd-num-retry-touts"},
fpd_ldi_num_fixedup{YType::uint64, "fpd-ldi-num-fixedup"},
fpd_ldi_num_correct_fixup{YType::uint64, "fpd-ldi-num-correct-fixup"},
fpd_pl_num_queued_fixedup{YType::uint64, "fpd-pl-num-queued-fixedup"},
fpd_pl_num_correct_fixup{YType::uint64, "fpd-pl-num-correct-fixup"},
fpd_pl_retry_add_exist{YType::uint64, "fpd-pl-retry-add-exist"},
fpd_pl_inline_res_q{YType::uint64, "fpd-pl-inline-res-q"},
fpd_pl_with_backup_create_count{YType::uint64, "fpd-pl-with-backup-create-count"},
fpd_pl_with_backup_del_count{YType::uint64, "fpd-pl-with-backup-del-count"},
fpd_pl_backup_enable_count{YType::uint64, "fpd-pl-backup-enable-count"},
fpd_pl_backup_disable_count{YType::uint64, "fpd-pl-backup-disable-count"},
fpd_pl_fast_nfn_count{YType::uint64, "fpd-pl-fast-nfn-count"},
fpd_ldi_backup_activate_count{YType::uint64, "fpd-ldi-backup-activate-count"},
fpd_ldi_last_backup_activate_time{YType::uint64, "fpd-ldi-last-backup-activate-time"},
fpd_ldi_max_backup_activate_time{YType::uint64, "fpd-ldi-max-backup-activate-time"},
fpd_ldi_min_backup_activate_time{YType::uint64, "fpd-ldi-min-backup-activate-time"},
fpd_ldi_total_backup_activate_time{YType::uint64, "fpd-ldi-total-backup-activate-time"},
fpd_ldi_avg_backup_activate_time{YType::uint64, "fpd-ldi-avg-backup-activate-time"},
fpd_recursion_constraint_count{YType::uint64, "fpd-recursion-constraint-count"},
fpd_ldi_num_del_refcnt{YType::uint64, "fpd-ldi-num-del-refcnt"},
fpd_retryq_size{YType::uint32, "fpd-retryq-size"},
fpd_num_allocs{YType::uint64, "fpd-num-allocs"},
fpd_num_frees{YType::uint64, "fpd-num-frees"},
fpd_retryq_timeout{YType::uint32, "fpd-retryq-timeout"},
fpd_retryq_sched_time{YType::uint32, "fpd-retryq-sched-time"}
,
fpd_platf_upd_stats(std::make_shared<Fib::Nodes::Node::Protocols::Protocol::Misc::MiProtoDbgStat::FpdPlatfUpdStats>())
, fpd_gtrie_timing(std::make_shared<Fib::Nodes::Node::Protocols::Protocol::Misc::MiProtoDbgStat::FpdGtrieTiming>())
, fpd_gbltbl_src_entry(this, {})
, fpd_vrftbl_src_entry(this, {})
, fpd_num_retry(this, {})
{
fpd_platf_upd_stats->parent = this;
fpd_gtrie_timing->parent = this;
yang_name = "mi-proto-dbg-stat"; yang_parent_name = "misc"; is_top_level_class = false; has_list_ancestor = true;
}
Fib::Nodes::Node::Protocols::Protocol::Misc::MiProtoDbgStat::~MiProtoDbgStat()
{
}
bool Fib::Nodes::Node::Protocols::Protocol::Misc::MiProtoDbgStat::has_data() const
{
if (is_presence_container) return true;
for (std::size_t index=0; index<fpd_gbltbl_src_entry.len(); index++)
{
if(fpd_gbltbl_src_entry[index]->has_data())
return true;
}
for (std::size_t index=0; index<fpd_vrftbl_src_entry.len(); index++)
{
if(fpd_vrftbl_src_entry[index]->has_data())
return true;
}
for (std::size_t index=0; index<fpd_num_retry.len(); index++)
{
if(fpd_num_retry[index]->has_data())
return true;
}
return fpd_gbltbl_entries.is_set
|| fpd_gbltbl_rej_entries.is_set
|| fpd_vrftbl_entries.is_set
|| fpd_vrftbl_rej_entries.is_set
|| fpd_num_tbls.is_set
|| fpd_bcdl_msgs.is_set
|| fpd_route_upd.is_set
|| fpd_route_del.is_set
|| fpd_route_rcv.is_set
|| fpd_route_drops.is_set
|| fpd_lbl_recycled.is_set
|| fpd_version_mismatch_drops.is_set
|| fpd_adj_upd.is_set
|| fpd_adj_del.is_set
|| fpd_adj_upd_tx.is_set
|| fpd_adj_upd_tx_nh_found.is_set
|| fpd_adj_upd_tx_retry_created.is_set
|| fpd_adj_tx_retry_nh_found.is_set
|| fpd_adj_tx_retry_obj_reinit.is_set
|| fpd_adj_drops.is_set
|| fpd_adj_msg.is_set
|| fpd_te_rcv.is_set
|| fpd_te_version_mismatch_drops.is_set
|| fpd_num_retry_touts.is_set
|| fpd_ldi_num_fixedup.is_set
|| fpd_ldi_num_correct_fixup.is_set
|| fpd_pl_num_queued_fixedup.is_set
|| fpd_pl_num_correct_fixup.is_set
|| fpd_pl_retry_add_exist.is_set
|| fpd_pl_inline_res_q.is_set
|| fpd_pl_with_backup_create_count.is_set
|| fpd_pl_with_backup_del_count.is_set
|| fpd_pl_backup_enable_count.is_set
|| fpd_pl_backup_disable_count.is_set
|| fpd_pl_fast_nfn_count.is_set
|| fpd_ldi_backup_activate_count.is_set
|| fpd_ldi_last_backup_activate_time.is_set
|| fpd_ldi_max_backup_activate_time.is_set
|| fpd_ldi_min_backup_activate_time.is_set
|| fpd_ldi_total_backup_activate_time.is_set
|| fpd_ldi_avg_backup_activate_time.is_set
|| fpd_recursion_constraint_count.is_set
|| fpd_ldi_num_del_refcnt.is_set
|| fpd_retryq_size.is_set
|| fpd_num_allocs.is_set
|| fpd_num_frees.is_set
|| fpd_retryq_timeout.is_set
|| fpd_retryq_sched_time.is_set
|| (fpd_platf_upd_stats != nullptr && fpd_platf_upd_stats->has_data())
|| (fpd_gtrie_timing != nullptr && fpd_gtrie_timing->has_data());
}
bool Fib::Nodes::Node::Protocols::Protocol::Misc::MiProtoDbgStat::has_operation() const
{
for (std::size_t index=0; index<fpd_gbltbl_src_entry.len(); index++)
{
if(fpd_gbltbl_src_entry[index]->has_operation())
return true;
}
for (std::size_t index=0; index<fpd_vrftbl_src_entry.len(); index++)
{
if(fpd_vrftbl_src_entry[index]->has_operation())
return true;
}
for (std::size_t index=0; index<fpd_num_retry.len(); index++)
{
if(fpd_num_retry[index]->has_operation())
return true;
}
return is_set(yfilter)
|| ydk::is_set(fpd_gbltbl_entries.yfilter)
|| ydk::is_set(fpd_gbltbl_rej_entries.yfilter)
|| ydk::is_set(fpd_vrftbl_entries.yfilter)
|| ydk::is_set(fpd_vrftbl_rej_entries.yfilter)
|| ydk::is_set(fpd_num_tbls.yfilter)
|| ydk::is_set(fpd_bcdl_msgs.yfilter)
|| ydk::is_set(fpd_route_upd.yfilter)
|| ydk::is_set(fpd_route_del.yfilter)
|| ydk::is_set(fpd_route_rcv.yfilter)
|| ydk::is_set(fpd_route_drops.yfilter)
|| ydk::is_set(fpd_lbl_recycled.yfilter)
|| ydk::is_set(fpd_version_mismatch_drops.yfilter)
|| ydk::is_set(fpd_adj_upd.yfilter)
|| ydk::is_set(fpd_adj_del.yfilter)
|| ydk::is_set(fpd_adj_upd_tx.yfilter)
|| ydk::is_set(fpd_adj_upd_tx_nh_found.yfilter)
|| ydk::is_set(fpd_adj_upd_tx_retry_created.yfilter)
|| ydk::is_set(fpd_adj_tx_retry_nh_found.yfilter)
|| ydk::is_set(fpd_adj_tx_retry_obj_reinit.yfilter)
|| ydk::is_set(fpd_adj_drops.yfilter)
|| ydk::is_set(fpd_adj_msg.yfilter)
|| ydk::is_set(fpd_te_rcv.yfilter)
|| ydk::is_set(fpd_te_version_mismatch_drops.yfilter)
|| ydk::is_set(fpd_num_retry_touts.yfilter)
|| ydk::is_set(fpd_ldi_num_fixedup.yfilter)
|| ydk::is_set(fpd_ldi_num_correct_fixup.yfilter)
|| ydk::is_set(fpd_pl_num_queued_fixedup.yfilter)
|| ydk::is_set(fpd_pl_num_correct_fixup.yfilter)
|| ydk::is_set(fpd_pl_retry_add_exist.yfilter)
|| ydk::is_set(fpd_pl_inline_res_q.yfilter)
|| ydk::is_set(fpd_pl_with_backup_create_count.yfilter)
|| ydk::is_set(fpd_pl_with_backup_del_count.yfilter)
|| ydk::is_set(fpd_pl_backup_enable_count.yfilter)
|| ydk::is_set(fpd_pl_backup_disable_count.yfilter)
|| ydk::is_set(fpd_pl_fast_nfn_count.yfilter)
|| ydk::is_set(fpd_ldi_backup_activate_count.yfilter)
|| ydk::is_set(fpd_ldi_last_backup_activate_time.yfilter)
|| ydk::is_set(fpd_ldi_max_backup_activate_time.yfilter)
|| ydk::is_set(fpd_ldi_min_backup_activate_time.yfilter)
|| ydk::is_set(fpd_ldi_total_backup_activate_time.yfilter)
|| ydk::is_set(fpd_ldi_avg_backup_activate_time.yfilter)
|| ydk::is_set(fpd_recursion_constraint_count.yfilter)
|| ydk::is_set(fpd_ldi_num_del_refcnt.yfilter)
|| ydk::is_set(fpd_retryq_size.yfilter)
|| ydk::is_set(fpd_num_allocs.yfilter)
|| ydk::is_set(fpd_num_frees.yfilter)
|| ydk::is_set(fpd_retryq_timeout.yfilter)
|| ydk::is_set(fpd_retryq_sched_time.yfilter)
|| (fpd_platf_upd_stats != nullptr && fpd_platf_upd_stats->has_operation())
|| (fpd_gtrie_timing != nullptr && fpd_gtrie_timing->has_operation());
}
std::string Fib::Nodes::Node::Protocols::Protocol::Misc::MiProtoDbgStat::get_segment_path() const
{
std::ostringstream path_buffer;
path_buffer << "mi-proto-dbg-stat";
path_buffer << "[" << get_ylist_key() << "]";
return path_buffer.str();
}
std::vector<std::pair<std::string, LeafData> > Fib::Nodes::Node::Protocols::Protocol::Misc::MiProtoDbgStat::get_name_leaf_data() const
{
std::vector<std::pair<std::string, LeafData> > leaf_name_data {};
if (fpd_gbltbl_entries.is_set || is_set(fpd_gbltbl_entries.yfilter)) leaf_name_data.push_back(fpd_gbltbl_entries.get_name_leafdata());
if (fpd_gbltbl_rej_entries.is_set || is_set(fpd_gbltbl_rej_entries.yfilter)) leaf_name_data.push_back(fpd_gbltbl_rej_entries.get_name_leafdata());
if (fpd_vrftbl_entries.is_set || is_set(fpd_vrftbl_entries.yfilter)) leaf_name_data.push_back(fpd_vrftbl_entries.get_name_leafdata());
if (fpd_vrftbl_rej_entries.is_set || is_set(fpd_vrftbl_rej_entries.yfilter)) leaf_name_data.push_back(fpd_vrftbl_rej_entries.get_name_leafdata());
if (fpd_num_tbls.is_set || is_set(fpd_num_tbls.yfilter)) leaf_name_data.push_back(fpd_num_tbls.get_name_leafdata());
if (fpd_bcdl_msgs.is_set || is_set(fpd_bcdl_msgs.yfilter)) leaf_name_data.push_back(fpd_bcdl_msgs.get_name_leafdata());
if (fpd_route_upd.is_set || is_set(fpd_route_upd.yfilter)) leaf_name_data.push_back(fpd_route_upd.get_name_leafdata());
if (fpd_route_del.is_set || is_set(fpd_route_del.yfilter)) leaf_name_data.push_back(fpd_route_del.get_name_leafdata());
if (fpd_route_rcv.is_set || is_set(fpd_route_rcv.yfilter)) leaf_name_data.push_back(fpd_route_rcv.get_name_leafdata());
if (fpd_route_drops.is_set || is_set(fpd_route_drops.yfilter)) leaf_name_data.push_back(fpd_route_drops.get_name_leafdata());
if (fpd_lbl_recycled.is_set || is_set(fpd_lbl_recycled.yfilter)) leaf_name_data.push_back(fpd_lbl_recycled.get_name_leafdata());
if (fpd_version_mismatch_drops.is_set || is_set(fpd_version_mismatch_drops.yfilter)) leaf_name_data.push_back(fpd_version_mismatch_drops.get_name_leafdata());
if (fpd_adj_upd.is_set || is_set(fpd_adj_upd.yfilter)) leaf_name_data.push_back(fpd_adj_upd.get_name_leafdata());
if (fpd_adj_del.is_set || is_set(fpd_adj_del.yfilter)) leaf_name_data.push_back(fpd_adj_del.get_name_leafdata());
if (fpd_adj_upd_tx.is_set || is_set(fpd_adj_upd_tx.yfilter)) leaf_name_data.push_back(fpd_adj_upd_tx.get_name_leafdata());
if (fpd_adj_upd_tx_nh_found.is_set || is_set(fpd_adj_upd_tx_nh_found.yfilter)) leaf_name_data.push_back(fpd_adj_upd_tx_nh_found.get_name_leafdata());
if (fpd_adj_upd_tx_retry_created.is_set || is_set(fpd_adj_upd_tx_retry_created.yfilter)) leaf_name_data.push_back(fpd_adj_upd_tx_retry_created.get_name_leafdata());
if (fpd_adj_tx_retry_nh_found.is_set || is_set(fpd_adj_tx_retry_nh_found.yfilter)) leaf_name_data.push_back(fpd_adj_tx_retry_nh_found.get_name_leafdata());
if (fpd_adj_tx_retry_obj_reinit.is_set || is_set(fpd_adj_tx_retry_obj_reinit.yfilter)) leaf_name_data.push_back(fpd_adj_tx_retry_obj_reinit.get_name_leafdata());
if (fpd_adj_drops.is_set || is_set(fpd_adj_drops.yfilter)) leaf_name_data.push_back(fpd_adj_drops.get_name_leafdata());
if (fpd_adj_msg.is_set || is_set(fpd_adj_msg.yfilter)) leaf_name_data.push_back(fpd_adj_msg.get_name_leafdata());
if (fpd_te_rcv.is_set || is_set(fpd_te_rcv.yfilter)) leaf_name_data.push_back(fpd_te_rcv.get_name_leafdata());
if (fpd_te_version_mismatch_drops.is_set || is_set(fpd_te_version_mismatch_drops.yfilter)) leaf_name_data.push_back(fpd_te_version_mismatch_drops.get_name_leafdata());
if (fpd_num_retry_touts.is_set || is_set(fpd_num_retry_touts.yfilter)) leaf_name_data.push_back(fpd_num_retry_touts.get_name_leafdata());
if (fpd_ldi_num_fixedup.is_set || is_set(fpd_ldi_num_fixedup.yfilter)) leaf_name_data.push_back(fpd_ldi_num_fixedup.get_name_leafdata());
if (fpd_ldi_num_correct_fixup.is_set || is_set(fpd_ldi_num_correct_fixup.yfilter)) leaf_name_data.push_back(fpd_ldi_num_correct_fixup.get_name_leafdata());
if (fpd_pl_num_queued_fixedup.is_set || is_set(fpd_pl_num_queued_fixedup.yfilter)) leaf_name_data.push_back(fpd_pl_num_queued_fixedup.get_name_leafdata());
if (fpd_pl_num_correct_fixup.is_set || is_set(fpd_pl_num_correct_fixup.yfilter)) leaf_name_data.push_back(fpd_pl_num_correct_fixup.get_name_leafdata());
if (fpd_pl_retry_add_exist.is_set || is_set(fpd_pl_retry_add_exist.yfilter)) leaf_name_data.push_back(fpd_pl_retry_add_exist.get_name_leafdata());
if (fpd_pl_inline_res_q.is_set || is_set(fpd_pl_inline_res_q.yfilter)) leaf_name_data.push_back(fpd_pl_inline_res_q.get_name_leafdata());
if (fpd_pl_with_backup_create_count.is_set || is_set(fpd_pl_with_backup_create_count.yfilter)) leaf_name_data.push_back(fpd_pl_with_backup_create_count.get_name_leafdata());
if (fpd_pl_with_backup_del_count.is_set || is_set(fpd_pl_with_backup_del_count.yfilter)) leaf_name_data.push_back(fpd_pl_with_backup_del_count.get_name_leafdata());
if (fpd_pl_backup_enable_count.is_set || is_set(fpd_pl_backup_enable_count.yfilter)) leaf_name_data.push_back(fpd_pl_backup_enable_count.get_name_leafdata());
if (fpd_pl_backup_disable_count.is_set || is_set(fpd_pl_backup_disable_count.yfilter)) leaf_name_data.push_back(fpd_pl_backup_disable_count.get_name_leafdata());
if (fpd_pl_fast_nfn_count.is_set || is_set(fpd_pl_fast_nfn_count.yfilter)) leaf_name_data.push_back(fpd_pl_fast_nfn_count.get_name_leafdata());
if (fpd_ldi_backup_activate_count.is_set || is_set(fpd_ldi_backup_activate_count.yfilter)) leaf_name_data.push_back(fpd_ldi_backup_activate_count.get_name_leafdata());
if (fpd_ldi_last_backup_activate_time.is_set || is_set(fpd_ldi_last_backup_activate_time.yfilter)) leaf_name_data.push_back(fpd_ldi_last_backup_activate_time.get_name_leafdata());
if (fpd_ldi_max_backup_activate_time.is_set || is_set(fpd_ldi_max_backup_activate_time.yfilter)) leaf_name_data.push_back(fpd_ldi_max_backup_activate_time.get_name_leafdata());
if (fpd_ldi_min_backup_activate_time.is_set || is_set(fpd_ldi_min_backup_activate_time.yfilter)) leaf_name_data.push_back(fpd_ldi_min_backup_activate_time.get_name_leafdata());
if (fpd_ldi_total_backup_activate_time.is_set || is_set(fpd_ldi_total_backup_activate_time.yfilter)) leaf_name_data.push_back(fpd_ldi_total_backup_activate_time.get_name_leafdata());
if (fpd_ldi_avg_backup_activate_time.is_set || is_set(fpd_ldi_avg_backup_activate_time.yfilter)) leaf_name_data.push_back(fpd_ldi_avg_backup_activate_time.get_name_leafdata());
if (fpd_recursion_constraint_count.is_set || is_set(fpd_recursion_constraint_count.yfilter)) leaf_name_data.push_back(fpd_recursion_constraint_count.get_name_leafdata());
if (fpd_ldi_num_del_refcnt.is_set || is_set(fpd_ldi_num_del_refcnt.yfilter)) leaf_name_data.push_back(fpd_ldi_num_del_refcnt.get_name_leafdata());
if (fpd_retryq_size.is_set || is_set(fpd_retryq_size.yfilter)) leaf_name_data.push_back(fpd_retryq_size.get_name_leafdata());
if (fpd_num_allocs.is_set || is_set(fpd_num_allocs.yfilter)) leaf_name_data.push_back(fpd_num_allocs.get_name_leafdata());
if (fpd_num_frees.is_set || is_set(fpd_num_frees.yfilter)) leaf_name_data.push_back(fpd_num_frees.get_name_leafdata());
if (fpd_retryq_timeout.is_set || is_set(fpd_retryq_timeout.yfilter)) leaf_name_data.push_back(fpd_retryq_timeout.get_name_leafdata());
if (fpd_retryq_sched_time.is_set || is_set(fpd_retryq_sched_time.yfilter)) leaf_name_data.push_back(fpd_retryq_sched_time.get_name_leafdata());
return leaf_name_data;
}
std::shared_ptr<ydk::Entity> Fib::Nodes::Node::Protocols::Protocol::Misc::MiProtoDbgStat::get_child_by_name(const std::string & child_yang_name, const std::string & segment_path)
{
if(child_yang_name == "fpd-platf-upd-stats")
{
if(fpd_platf_upd_stats == nullptr)
{
fpd_platf_upd_stats = std::make_shared<Fib::Nodes::Node::Protocols::Protocol::Misc::MiProtoDbgStat::FpdPlatfUpdStats>();
}
return fpd_platf_upd_stats;
}
if(child_yang_name == "fpd-gtrie-timing")
{
if(fpd_gtrie_timing == nullptr)
{
fpd_gtrie_timing = std::make_shared<Fib::Nodes::Node::Protocols::Protocol::Misc::MiProtoDbgStat::FpdGtrieTiming>();
}
return fpd_gtrie_timing;
}
if(child_yang_name == "fpd-gbltbl-src-entry")
{
auto ent_ = std::make_shared<Fib::Nodes::Node::Protocols::Protocol::Misc::MiProtoDbgStat::FpdGbltblSrcEntry>();
ent_->parent = this;
fpd_gbltbl_src_entry.append(ent_);
return ent_;
}
if(child_yang_name == "fpd-vrftbl-src-entry")
{
auto ent_ = std::make_shared<Fib::Nodes::Node::Protocols::Protocol::Misc::MiProtoDbgStat::FpdVrftblSrcEntry>();
ent_->parent = this;
fpd_vrftbl_src_entry.append(ent_);
return ent_;
}
if(child_yang_name == "fpd-num-retry")
{
auto ent_ = std::make_shared<Fib::Nodes::Node::Protocols::Protocol::Misc::MiProtoDbgStat::FpdNumRetry>();
ent_->parent = this;
fpd_num_retry.append(ent_);
return ent_;
}
return nullptr;
}
std::map<std::string, std::shared_ptr<ydk::Entity>> Fib::Nodes::Node::Protocols::Protocol::Misc::MiProtoDbgStat::get_children() const
{
std::map<std::string, std::shared_ptr<ydk::Entity>> _children{};
char count_=0;
if(fpd_platf_upd_stats != nullptr)
{
_children["fpd-platf-upd-stats"] = fpd_platf_upd_stats;
}
if(fpd_gtrie_timing != nullptr)
{
_children["fpd-gtrie-timing"] = fpd_gtrie_timing;
}
count_ = 0;
for (auto ent_ : fpd_gbltbl_src_entry.entities())
{
if(_children.find(ent_->get_segment_path()) == _children.end())
_children[ent_->get_segment_path()] = ent_;
else
_children[ent_->get_segment_path()+count_++] = ent_;
}
count_ = 0;
for (auto ent_ : fpd_vrftbl_src_entry.entities())
{
if(_children.find(ent_->get_segment_path()) == _children.end())
_children[ent_->get_segment_path()] = ent_;
else
_children[ent_->get_segment_path()+count_++] = ent_;
}
count_ = 0;
for (auto ent_ : fpd_num_retry.entities())
{
if(_children.find(ent_->get_segment_path()) == _children.end())
_children[ent_->get_segment_path()] = ent_;
else
_children[ent_->get_segment_path()+count_++] = ent_;
}
return _children;
}
void Fib::Nodes::Node::Protocols::Protocol::Misc::MiProtoDbgStat::set_value(const std::string & value_path, const std::string & value, const std::string & name_space, const std::string & name_space_prefix)
{
if(value_path == "fpd-gbltbl-entries")
{
fpd_gbltbl_entries = value;
fpd_gbltbl_entries.value_namespace = name_space;
fpd_gbltbl_entries.value_namespace_prefix = name_space_prefix;
}
if(value_path == "fpd-gbltbl-rej-entries")
{
fpd_gbltbl_rej_entries = value;
fpd_gbltbl_rej_entries.value_namespace = name_space;
fpd_gbltbl_rej_entries.value_namespace_prefix = name_space_prefix;
}
if(value_path == "fpd-vrftbl-entries")
{
fpd_vrftbl_entries = value;
fpd_vrftbl_entries.value_namespace = name_space;
fpd_vrftbl_entries.value_namespace_prefix = name_space_prefix;
}
if(value_path == "fpd-vrftbl-rej-entries")
{
fpd_vrftbl_rej_entries = value;
fpd_vrftbl_rej_entries.value_namespace = name_space;
fpd_vrftbl_rej_entries.value_namespace_prefix = name_space_prefix;
}
if(value_path == "fpd-num-tbls")
{
fpd_num_tbls = value;
fpd_num_tbls.value_namespace = name_space;
fpd_num_tbls.value_namespace_prefix = name_space_prefix;
}
if(value_path == "fpd-bcdl-msgs")
{
fpd_bcdl_msgs = value;
fpd_bcdl_msgs.value_namespace = name_space;
fpd_bcdl_msgs.value_namespace_prefix = name_space_prefix;
}
if(value_path == "fpd-route-upd")
{
fpd_route_upd = value;
fpd_route_upd.value_namespace = name_space;
fpd_route_upd.value_namespace_prefix = name_space_prefix;
}
if(value_path == "fpd-route-del")
{
fpd_route_del = value;
fpd_route_del.value_namespace = name_space;
fpd_route_del.value_namespace_prefix = name_space_prefix;
}
if(value_path == "fpd-route-rcv")
{
fpd_route_rcv = value;
fpd_route_rcv.value_namespace = name_space;
fpd_route_rcv.value_namespace_prefix = name_space_prefix;
}
if(value_path == "fpd-route-drops")
{
fpd_route_drops = value;
fpd_route_drops.value_namespace = name_space;
fpd_route_drops.value_namespace_prefix = name_space_prefix;
}
if(value_path == "fpd-lbl-recycled")
{
fpd_lbl_recycled = value;
fpd_lbl_recycled.value_namespace = name_space;
fpd_lbl_recycled.value_namespace_prefix = name_space_prefix;
}
if(value_path == "fpd-version-mismatch-drops")
{
fpd_version_mismatch_drops = value;
fpd_version_mismatch_drops.value_namespace = name_space;
fpd_version_mismatch_drops.value_namespace_prefix = name_space_prefix;
}
if(value_path == "fpd-adj-upd")
{
fpd_adj_upd = value;
fpd_adj_upd.value_namespace = name_space;
fpd_adj_upd.value_namespace_prefix = name_space_prefix;
}
if(value_path == "fpd-adj-del")
{
fpd_adj_del = value;
fpd_adj_del.value_namespace = name_space;
fpd_adj_del.value_namespace_prefix = name_space_prefix;
}
if(value_path == "fpd-adj-upd-tx")
{
fpd_adj_upd_tx = value;
fpd_adj_upd_tx.value_namespace = name_space;
fpd_adj_upd_tx.value_namespace_prefix = name_space_prefix;
}
if(value_path == "fpd-adj-upd-tx-nh-found")
{
fpd_adj_upd_tx_nh_found = value;
fpd_adj_upd_tx_nh_found.value_namespace = name_space;
fpd_adj_upd_tx_nh_found.value_namespace_prefix = name_space_prefix;
}
if(value_path == "fpd-adj-upd-tx-retry-created")
{
fpd_adj_upd_tx_retry_created = value;
fpd_adj_upd_tx_retry_created.value_namespace = name_space;
fpd_adj_upd_tx_retry_created.value_namespace_prefix = name_space_prefix;
}
if(value_path == "fpd-adj-tx-retry-nh-found")
{
fpd_adj_tx_retry_nh_found = value;
fpd_adj_tx_retry_nh_found.value_namespace = name_space;
fpd_adj_tx_retry_nh_found.value_namespace_prefix = name_space_prefix;
}
if(value_path == "fpd-adj-tx-retry-obj-reinit")
{
fpd_adj_tx_retry_obj_reinit = value;
fpd_adj_tx_retry_obj_reinit.value_namespace = name_space;
fpd_adj_tx_retry_obj_reinit.value_namespace_prefix = name_space_prefix;
}
if(value_path == "fpd-adj-drops")
{
fpd_adj_drops = value;
fpd_adj_drops.value_namespace = name_space;
fpd_adj_drops.value_namespace_prefix = name_space_prefix;
}
if(value_path == "fpd-adj-msg")
{
fpd_adj_msg = value;
fpd_adj_msg.value_namespace = name_space;
fpd_adj_msg.value_namespace_prefix = name_space_prefix;
}
if(value_path == "fpd-te-rcv")
{
fpd_te_rcv = value;
fpd_te_rcv.value_namespace = name_space;
fpd_te_rcv.value_namespace_prefix = name_space_prefix;
}
if(value_path == "fpd-te-version-mismatch-drops")
{
fpd_te_version_mismatch_drops = value;
fpd_te_version_mismatch_drops.value_namespace = name_space;
fpd_te_version_mismatch_drops.value_namespace_prefix = name_space_prefix;
}
if(value_path == "fpd-num-retry-touts")
{
fpd_num_retry_touts = value;
fpd_num_retry_touts.value_namespace = name_space;
fpd_num_retry_touts.value_namespace_prefix = name_space_prefix;
}
if(value_path == "fpd-ldi-num-fixedup")
{
fpd_ldi_num_fixedup = value;
fpd_ldi_num_fixedup.value_namespace = name_space;
fpd_ldi_num_fixedup.value_namespace_prefix = name_space_prefix;
}
if(value_path == "fpd-ldi-num-correct-fixup")
{
fpd_ldi_num_correct_fixup = value;
fpd_ldi_num_correct_fixup.value_namespace = name_space;
fpd_ldi_num_correct_fixup.value_namespace_prefix = name_space_prefix;
}
if(value_path == "fpd-pl-num-queued-fixedup")
{
fpd_pl_num_queued_fixedup = value;
fpd_pl_num_queued_fixedup.value_namespace = name_space;
fpd_pl_num_queued_fixedup.value_namespace_prefix = name_space_prefix;
}
if(value_path == "fpd-pl-num-correct-fixup")
{
fpd_pl_num_correct_fixup = value;
fpd_pl_num_correct_fixup.value_namespace = name_space;
fpd_pl_num_correct_fixup.value_namespace_prefix = name_space_prefix;
}
if(value_path == "fpd-pl-retry-add-exist")
{
fpd_pl_retry_add_exist = value;
fpd_pl_retry_add_exist.value_namespace = name_space;
fpd_pl_retry_add_exist.value_namespace_prefix = name_space_prefix;
}
if(value_path == "fpd-pl-inline-res-q")
{
fpd_pl_inline_res_q = value;
fpd_pl_inline_res_q.value_namespace = name_space;
fpd_pl_inline_res_q.value_namespace_prefix = name_space_prefix;
}
if(value_path == "fpd-pl-with-backup-create-count")
{
fpd_pl_with_backup_create_count = value;
fpd_pl_with_backup_create_count.value_namespace = name_space;
fpd_pl_with_backup_create_count.value_namespace_prefix = name_space_prefix;
}
if(value_path == "fpd-pl-with-backup-del-count")
{
fpd_pl_with_backup_del_count = value;
fpd_pl_with_backup_del_count.value_namespace = name_space;
fpd_pl_with_backup_del_count.value_namespace_prefix = name_space_prefix;
}
if(value_path == "fpd-pl-backup-enable-count")
{
fpd_pl_backup_enable_count = value;
fpd_pl_backup_enable_count.value_namespace = name_space;
fpd_pl_backup_enable_count.value_namespace_prefix = name_space_prefix;
}
if(value_path == "fpd-pl-backup-disable-count")
{
fpd_pl_backup_disable_count = value;
fpd_pl_backup_disable_count.value_namespace = name_space;
fpd_pl_backup_disable_count.value_namespace_prefix = name_space_prefix;
}
if(value_path == "fpd-pl-fast-nfn-count")
{
fpd_pl_fast_nfn_count = value;
fpd_pl_fast_nfn_count.value_namespace = name_space;
fpd_pl_fast_nfn_count.value_namespace_prefix = name_space_prefix;
}
if(value_path == "fpd-ldi-backup-activate-count")
{
fpd_ldi_backup_activate_count = value;
fpd_ldi_backup_activate_count.value_namespace = name_space;
fpd_ldi_backup_activate_count.value_namespace_prefix = name_space_prefix;
}
if(value_path == "fpd-ldi-last-backup-activate-time")
{
fpd_ldi_last_backup_activate_time = value;
fpd_ldi_last_backup_activate_time.value_namespace = name_space;
fpd_ldi_last_backup_activate_time.value_namespace_prefix = name_space_prefix;
}
if(value_path == "fpd-ldi-max-backup-activate-time")
{
fpd_ldi_max_backup_activate_time = value;
fpd_ldi_max_backup_activate_time.value_namespace = name_space;
fpd_ldi_max_backup_activate_time.value_namespace_prefix = name_space_prefix;
}
if(value_path == "fpd-ldi-min-backup-activate-time")
{
fpd_ldi_min_backup_activate_time = value;
fpd_ldi_min_backup_activate_time.value_namespace = name_space;
fpd_ldi_min_backup_activate_time.value_namespace_prefix = name_space_prefix;
}
if(value_path == "fpd-ldi-total-backup-activate-time")
{
fpd_ldi_total_backup_activate_time = value;
fpd_ldi_total_backup_activate_time.value_namespace = name_space;
fpd_ldi_total_backup_activate_time.value_namespace_prefix = name_space_prefix;
}
if(value_path == "fpd-ldi-avg-backup-activate-time")
{
fpd_ldi_avg_backup_activate_time = value;
fpd_ldi_avg_backup_activate_time.value_namespace = name_space;
fpd_ldi_avg_backup_activate_time.value_namespace_prefix = name_space_prefix;
}
if(value_path == "fpd-recursion-constraint-count")
{
fpd_recursion_constraint_count = value;
fpd_recursion_constraint_count.value_namespace = name_space;
fpd_recursion_constraint_count.value_namespace_prefix = name_space_prefix;
}
if(value_path == "fpd-ldi-num-del-refcnt")
{
fpd_ldi_num_del_refcnt = value;
fpd_ldi_num_del_refcnt.value_namespace = name_space;
fpd_ldi_num_del_refcnt.value_namespace_prefix = name_space_prefix;
}
if(value_path == "fpd-retryq-size")
{
fpd_retryq_size = value;
fpd_retryq_size.value_namespace = name_space;
fpd_retryq_size.value_namespace_prefix = name_space_prefix;
}
if(value_path == "fpd-num-allocs")
{
fpd_num_allocs = value;
fpd_num_allocs.value_namespace = name_space;
fpd_num_allocs.value_namespace_prefix = name_space_prefix;
}
if(value_path == "fpd-num-frees")
{
fpd_num_frees = value;
fpd_num_frees.value_namespace = name_space;
fpd_num_frees.value_namespace_prefix = name_space_prefix;
}
if(value_path == "fpd-retryq-timeout")
{
fpd_retryq_timeout = value;
fpd_retryq_timeout.value_namespace = name_space;
fpd_retryq_timeout.value_namespace_prefix = name_space_prefix;
}
if(value_path == "fpd-retryq-sched-time")
{
fpd_retryq_sched_time = value;
fpd_retryq_sched_time.value_namespace = name_space;
fpd_retryq_sched_time.value_namespace_prefix = name_space_prefix;
}
}
void Fib::Nodes::Node::Protocols::Protocol::Misc::MiProtoDbgStat::set_filter(const std::string & value_path, YFilter yfilter)
{
if(value_path == "fpd-gbltbl-entries")
{
fpd_gbltbl_entries.yfilter = yfilter;
}
if(value_path == "fpd-gbltbl-rej-entries")
{
fpd_gbltbl_rej_entries.yfilter = yfilter;
}
if(value_path == "fpd-vrftbl-entries")
{
fpd_vrftbl_entries.yfilter = yfilter;
}
if(value_path == "fpd-vrftbl-rej-entries")
{
fpd_vrftbl_rej_entries.yfilter = yfilter;
}
if(value_path == "fpd-num-tbls")
{
fpd_num_tbls.yfilter = yfilter;
}
if(value_path == "fpd-bcdl-msgs")
{
fpd_bcdl_msgs.yfilter = yfilter;
}
if(value_path == "fpd-route-upd")
{
fpd_route_upd.yfilter = yfilter;
}
if(value_path == "fpd-route-del")
{
fpd_route_del.yfilter = yfilter;
}
if(value_path == "fpd-route-rcv")
{
fpd_route_rcv.yfilter = yfilter;
}
if(value_path == "fpd-route-drops")
{
fpd_route_drops.yfilter = yfilter;
}
if(value_path == "fpd-lbl-recycled")
{
fpd_lbl_recycled.yfilter = yfilter;
}
if(value_path == "fpd-version-mismatch-drops")
{
fpd_version_mismatch_drops.yfilter = yfilter;
}
if(value_path == "fpd-adj-upd")
{
fpd_adj_upd.yfilter = yfilter;
}
if(value_path == "fpd-adj-del")
{
fpd_adj_del.yfilter = yfilter;
}
if(value_path == "fpd-adj-upd-tx")
{
fpd_adj_upd_tx.yfilter = yfilter;
}
if(value_path == "fpd-adj-upd-tx-nh-found")
{
fpd_adj_upd_tx_nh_found.yfilter = yfilter;
}
if(value_path == "fpd-adj-upd-tx-retry-created")
{
fpd_adj_upd_tx_retry_created.yfilter = yfilter;
}
if(value_path == "fpd-adj-tx-retry-nh-found")
{
fpd_adj_tx_retry_nh_found.yfilter = yfilter;
}
if(value_path == "fpd-adj-tx-retry-obj-reinit")
{
fpd_adj_tx_retry_obj_reinit.yfilter = yfilter;
}
if(value_path == "fpd-adj-drops")
{
fpd_adj_drops.yfilter = yfilter;
}
if(value_path == "fpd-adj-msg")
{
fpd_adj_msg.yfilter = yfilter;
}
if(value_path == "fpd-te-rcv")
{
fpd_te_rcv.yfilter = yfilter;
}
if(value_path == "fpd-te-version-mismatch-drops")
{
fpd_te_version_mismatch_drops.yfilter = yfilter;
}
if(value_path == "fpd-num-retry-touts")
{
fpd_num_retry_touts.yfilter = yfilter;
}
if(value_path == "fpd-ldi-num-fixedup")
{
fpd_ldi_num_fixedup.yfilter = yfilter;
}
if(value_path == "fpd-ldi-num-correct-fixup")
{
fpd_ldi_num_correct_fixup.yfilter = yfilter;
}
if(value_path == "fpd-pl-num-queued-fixedup")
{
fpd_pl_num_queued_fixedup.yfilter = yfilter;
}
if(value_path == "fpd-pl-num-correct-fixup")
{
fpd_pl_num_correct_fixup.yfilter = yfilter;
}
if(value_path == "fpd-pl-retry-add-exist")
{
fpd_pl_retry_add_exist.yfilter = yfilter;
}
if(value_path == "fpd-pl-inline-res-q")
{
fpd_pl_inline_res_q.yfilter = yfilter;
}
if(value_path == "fpd-pl-with-backup-create-count")
{
fpd_pl_with_backup_create_count.yfilter = yfilter;
}
if(value_path == "fpd-pl-with-backup-del-count")
{
fpd_pl_with_backup_del_count.yfilter = yfilter;
}
if(value_path == "fpd-pl-backup-enable-count")
{
fpd_pl_backup_enable_count.yfilter = yfilter;
}
if(value_path == "fpd-pl-backup-disable-count")
{
fpd_pl_backup_disable_count.yfilter = yfilter;
}
if(value_path == "fpd-pl-fast-nfn-count")
{
fpd_pl_fast_nfn_count.yfilter = yfilter;
}
if(value_path == "fpd-ldi-backup-activate-count")
{
fpd_ldi_backup_activate_count.yfilter = yfilter;
}
if(value_path == "fpd-ldi-last-backup-activate-time")
{
fpd_ldi_last_backup_activate_time.yfilter = yfilter;
}
if(value_path == "fpd-ldi-max-backup-activate-time")
{
fpd_ldi_max_backup_activate_time.yfilter = yfilter;
}
if(value_path == "fpd-ldi-min-backup-activate-time")
{
fpd_ldi_min_backup_activate_time.yfilter = yfilter;
}
if(value_path == "fpd-ldi-total-backup-activate-time")
{
fpd_ldi_total_backup_activate_time.yfilter = yfilter;
}
if(value_path == "fpd-ldi-avg-backup-activate-time")
{
fpd_ldi_avg_backup_activate_time.yfilter = yfilter;
}
if(value_path == "fpd-recursion-constraint-count")
{
fpd_recursion_constraint_count.yfilter = yfilter;
}
if(value_path == "fpd-ldi-num-del-refcnt")
{
fpd_ldi_num_del_refcnt.yfilter = yfilter;
}
if(value_path == "fpd-retryq-size")
{
fpd_retryq_size.yfilter = yfilter;
}
if(value_path == "fpd-num-allocs")
{
fpd_num_allocs.yfilter = yfilter;
}
if(value_path == "fpd-num-frees")
{
fpd_num_frees.yfilter = yfilter;
}
if(value_path == "fpd-retryq-timeout")
{
fpd_retryq_timeout.yfilter = yfilter;
}
if(value_path == "fpd-retryq-sched-time")
{
fpd_retryq_sched_time.yfilter = yfilter;
}
}
bool Fib::Nodes::Node::Protocols::Protocol::Misc::MiProtoDbgStat::has_leaf_or_child_of_name(const std::string & name) const
{
if(name == "fpd-platf-upd-stats" || name == "fpd-gtrie-timing" || name == "fpd-gbltbl-src-entry" || name == "fpd-vrftbl-src-entry" || name == "fpd-num-retry" || name == "fpd-gbltbl-entries" || name == "fpd-gbltbl-rej-entries" || name == "fpd-vrftbl-entries" || name == "fpd-vrftbl-rej-entries" || name == "fpd-num-tbls" || name == "fpd-bcdl-msgs" || name == "fpd-route-upd" || name == "fpd-route-del" || name == "fpd-route-rcv" || name == "fpd-route-drops" || name == "fpd-lbl-recycled" || name == "fpd-version-mismatch-drops" || name == "fpd-adj-upd" || name == "fpd-adj-del" || name == "fpd-adj-upd-tx" || name == "fpd-adj-upd-tx-nh-found" || name == "fpd-adj-upd-tx-retry-created" || name == "fpd-adj-tx-retry-nh-found" || name == "fpd-adj-tx-retry-obj-reinit" || name == "fpd-adj-drops" || name == "fpd-adj-msg" || name == "fpd-te-rcv" || name == "fpd-te-version-mismatch-drops" || name == "fpd-num-retry-touts" || name == "fpd-ldi-num-fixedup" || name == "fpd-ldi-num-correct-fixup" || name == "fpd-pl-num-queued-fixedup" || name == "fpd-pl-num-correct-fixup" || name == "fpd-pl-retry-add-exist" || name == "fpd-pl-inline-res-q" || name == "fpd-pl-with-backup-create-count" || name == "fpd-pl-with-backup-del-count" || name == "fpd-pl-backup-enable-count" || name == "fpd-pl-backup-disable-count" || name == "fpd-pl-fast-nfn-count" || name == "fpd-ldi-backup-activate-count" || name == "fpd-ldi-last-backup-activate-time" || name == "fpd-ldi-max-backup-activate-time" || name == "fpd-ldi-min-backup-activate-time" || name == "fpd-ldi-total-backup-activate-time" || name == "fpd-ldi-avg-backup-activate-time" || name == "fpd-recursion-constraint-count" || name == "fpd-ldi-num-del-refcnt" || name == "fpd-retryq-size" || name == "fpd-num-allocs" || name == "fpd-num-frees" || name == "fpd-retryq-timeout" || name == "fpd-retryq-sched-time")
return true;
return false;
}
Fib::Nodes::Node::Protocols::Protocol::Misc::MiProtoDbgStat::FpdPlatfUpdStats::FpdPlatfUpdStats()
:
fpus_num_success{YType::uint64, "fpus-num-success"},
fpus_num_failure{YType::uint64, "fpus-num-failure"},
fpus_upd_total_time{YType::uint64, "fpus-upd-total-time"}
,
fpus_obj_stat(this, {})
{
yang_name = "fpd-platf-upd-stats"; yang_parent_name = "mi-proto-dbg-stat"; is_top_level_class = false; has_list_ancestor = true;
}
Fib::Nodes::Node::Protocols::Protocol::Misc::MiProtoDbgStat::FpdPlatfUpdStats::~FpdPlatfUpdStats()
{
}
bool Fib::Nodes::Node::Protocols::Protocol::Misc::MiProtoDbgStat::FpdPlatfUpdStats::has_data() const
{
if (is_presence_container) return true;
for (std::size_t index=0; index<fpus_obj_stat.len(); index++)
{
if(fpus_obj_stat[index]->has_data())
return true;
}
return fpus_num_success.is_set
|| fpus_num_failure.is_set
|| fpus_upd_total_time.is_set;
}
bool Fib::Nodes::Node::Protocols::Protocol::Misc::MiProtoDbgStat::FpdPlatfUpdStats::has_operation() const
{
for (std::size_t index=0; index<fpus_obj_stat.len(); index++)
{
if(fpus_obj_stat[index]->has_operation())
return true;
}
return is_set(yfilter)
|| ydk::is_set(fpus_num_success.yfilter)
|| ydk::is_set(fpus_num_failure.yfilter)
|| ydk::is_set(fpus_upd_total_time.yfilter);
}
std::string Fib::Nodes::Node::Protocols::Protocol::Misc::MiProtoDbgStat::FpdPlatfUpdStats::get_segment_path() const
{
std::ostringstream path_buffer;
path_buffer << "fpd-platf-upd-stats";
return path_buffer.str();
}
std::vector<std::pair<std::string, LeafData> > Fib::Nodes::Node::Protocols::Protocol::Misc::MiProtoDbgStat::FpdPlatfUpdStats::get_name_leaf_data() const
{
std::vector<std::pair<std::string, LeafData> > leaf_name_data {};
if (fpus_num_success.is_set || is_set(fpus_num_success.yfilter)) leaf_name_data.push_back(fpus_num_success.get_name_leafdata());
if (fpus_num_failure.is_set || is_set(fpus_num_failure.yfilter)) leaf_name_data.push_back(fpus_num_failure.get_name_leafdata());
if (fpus_upd_total_time.is_set || is_set(fpus_upd_total_time.yfilter)) leaf_name_data.push_back(fpus_upd_total_time.get_name_leafdata());
return leaf_name_data;
}
std::shared_ptr<ydk::Entity> Fib::Nodes::Node::Protocols::Protocol::Misc::MiProtoDbgStat::FpdPlatfUpdStats::get_child_by_name(const std::string & child_yang_name, const std::string & segment_path)
{
if(child_yang_name == "fpus-obj-stat")
{
auto ent_ = std::make_shared<Fib::Nodes::Node::Protocols::Protocol::Misc::MiProtoDbgStat::FpdPlatfUpdStats::FpusObjStat>();
ent_->parent = this;
fpus_obj_stat.append(ent_);
return ent_;
}
return nullptr;
}
std::map<std::string, std::shared_ptr<ydk::Entity>> Fib::Nodes::Node::Protocols::Protocol::Misc::MiProtoDbgStat::FpdPlatfUpdStats::get_children() const
{
std::map<std::string, std::shared_ptr<ydk::Entity>> _children{};
char count_=0;
count_ = 0;
for (auto ent_ : fpus_obj_stat.entities())
{
if(_children.find(ent_->get_segment_path()) == _children.end())
_children[ent_->get_segment_path()] = ent_;
else
_children[ent_->get_segment_path()+count_++] = ent_;
}
return _children;
}
void Fib::Nodes::Node::Protocols::Protocol::Misc::MiProtoDbgStat::FpdPlatfUpdStats::set_value(const std::string & value_path, const std::string & value, const std::string & name_space, const std::string & name_space_prefix)
{
if(value_path == "fpus-num-success")
{
fpus_num_success = value;
fpus_num_success.value_namespace = name_space;
fpus_num_success.value_namespace_prefix = name_space_prefix;
}
if(value_path == "fpus-num-failure")
{
fpus_num_failure = value;
fpus_num_failure.value_namespace = name_space;
fpus_num_failure.value_namespace_prefix = name_space_prefix;
}
if(value_path == "fpus-upd-total-time")
{
fpus_upd_total_time = value;
fpus_upd_total_time.value_namespace = name_space;
fpus_upd_total_time.value_namespace_prefix = name_space_prefix;
}
}
void Fib::Nodes::Node::Protocols::Protocol::Misc::MiProtoDbgStat::FpdPlatfUpdStats::set_filter(const std::string & value_path, YFilter yfilter)
{
if(value_path == "fpus-num-success")
{
fpus_num_success.yfilter = yfilter;
}
if(value_path == "fpus-num-failure")
{
fpus_num_failure.yfilter = yfilter;
}
if(value_path == "fpus-upd-total-time")
{
fpus_upd_total_time.yfilter = yfilter;
}
}
bool Fib::Nodes::Node::Protocols::Protocol::Misc::MiProtoDbgStat::FpdPlatfUpdStats::has_leaf_or_child_of_name(const std::string & name) const
{
if(name == "fpus-obj-stat" || name == "fpus-num-success" || name == "fpus-num-failure" || name == "fpus-upd-total-time")
return true;
return false;
}
Fib::Nodes::Node::Protocols::Protocol::Misc::MiProtoDbgStat::FpdPlatfUpdStats::FpusObjStat::FpusObjStat()
:
fos_tot_updates{YType::uint64, "fos-tot-updates"},
fos_tot_upd_time{YType::uint64, "fos-tot-upd-time"}
,
fos_obj_act_stat(this, {})
{
yang_name = "fpus-obj-stat"; yang_parent_name = "fpd-platf-upd-stats"; is_top_level_class = false; has_list_ancestor = true;
}
Fib::Nodes::Node::Protocols::Protocol::Misc::MiProtoDbgStat::FpdPlatfUpdStats::FpusObjStat::~FpusObjStat()
{
}
bool Fib::Nodes::Node::Protocols::Protocol::Misc::MiProtoDbgStat::FpdPlatfUpdStats::FpusObjStat::has_data() const
{
if (is_presence_container) return true;
for (std::size_t index=0; index<fos_obj_act_stat.len(); index++)
{
if(fos_obj_act_stat[index]->has_data())
return true;
}
return fos_tot_updates.is_set
|| fos_tot_upd_time.is_set;
}
bool Fib::Nodes::Node::Protocols::Protocol::Misc::MiProtoDbgStat::FpdPlatfUpdStats::FpusObjStat::has_operation() const
{
for (std::size_t index=0; index<fos_obj_act_stat.len(); index++)
{
if(fos_obj_act_stat[index]->has_operation())
return true;
}
return is_set(yfilter)
|| ydk::is_set(fos_tot_updates.yfilter)
|| ydk::is_set(fos_tot_upd_time.yfilter);
}
std::string Fib::Nodes::Node::Protocols::Protocol::Misc::MiProtoDbgStat::FpdPlatfUpdStats::FpusObjStat::get_segment_path() const
{
std::ostringstream path_buffer;
path_buffer << "fpus-obj-stat";
path_buffer << "[" << get_ylist_key() << "]";
return path_buffer.str();
}
std::vector<std::pair<std::string, LeafData> > Fib::Nodes::Node::Protocols::Protocol::Misc::MiProtoDbgStat::FpdPlatfUpdStats::FpusObjStat::get_name_leaf_data() const
{
std::vector<std::pair<std::string, LeafData> > leaf_name_data {};
if (fos_tot_updates.is_set || is_set(fos_tot_updates.yfilter)) leaf_name_data.push_back(fos_tot_updates.get_name_leafdata());
if (fos_tot_upd_time.is_set || is_set(fos_tot_upd_time.yfilter)) leaf_name_data.push_back(fos_tot_upd_time.get_name_leafdata());
return leaf_name_data;
}
std::shared_ptr<ydk::Entity> Fib::Nodes::Node::Protocols::Protocol::Misc::MiProtoDbgStat::FpdPlatfUpdStats::FpusObjStat::get_child_by_name(const std::string & child_yang_name, const std::string & segment_path)
{
if(child_yang_name == "fos-obj-act-stat")
{
auto ent_ = std::make_shared<Fib::Nodes::Node::Protocols::Protocol::Misc::MiProtoDbgStat::FpdPlatfUpdStats::FpusObjStat::FosObjActStat>();
ent_->parent = this;
fos_obj_act_stat.append(ent_);
return ent_;
}
return nullptr;
}
std::map<std::string, std::shared_ptr<ydk::Entity>> Fib::Nodes::Node::Protocols::Protocol::Misc::MiProtoDbgStat::FpdPlatfUpdStats::FpusObjStat::get_children() const
{
std::map<std::string, std::shared_ptr<ydk::Entity>> _children{};
char count_=0;
count_ = 0;
for (auto ent_ : fos_obj_act_stat.entities())
{
if(_children.find(ent_->get_segment_path()) == _children.end())
_children[ent_->get_segment_path()] = ent_;
else
_children[ent_->get_segment_path()+count_++] = ent_;
}
return _children;
}
void Fib::Nodes::Node::Protocols::Protocol::Misc::MiProtoDbgStat::FpdPlatfUpdStats::FpusObjStat::set_value(const std::string & value_path, const std::string & value, const std::string & name_space, const std::string & name_space_prefix)
{
if(value_path == "fos-tot-updates")
{
fos_tot_updates = value;
fos_tot_updates.value_namespace = name_space;
fos_tot_updates.value_namespace_prefix = name_space_prefix;
}
if(value_path == "fos-tot-upd-time")
{
fos_tot_upd_time = value;
fos_tot_upd_time.value_namespace = name_space;
fos_tot_upd_time.value_namespace_prefix = name_space_prefix;
}
}
void Fib::Nodes::Node::Protocols::Protocol::Misc::MiProtoDbgStat::FpdPlatfUpdStats::FpusObjStat::set_filter(const std::string & value_path, YFilter yfilter)
{
if(value_path == "fos-tot-updates")
{
fos_tot_updates.yfilter = yfilter;
}
if(value_path == "fos-tot-upd-time")
{
fos_tot_upd_time.yfilter = yfilter;
}
}
bool Fib::Nodes::Node::Protocols::Protocol::Misc::MiProtoDbgStat::FpdPlatfUpdStats::FpusObjStat::has_leaf_or_child_of_name(const std::string & name) const
{
if(name == "fos-obj-act-stat" || name == "fos-tot-updates" || name == "fos-tot-upd-time")
return true;
return false;
}
Fib::Nodes::Node::Protocols::Protocol::Misc::MiProtoDbgStat::FpdPlatfUpdStats::FpusObjStat::FosObjActStat::FosObjActStat()
:
foas_tot_updates{YType::uint64, "foas-tot-updates"},
foas_tot_upd_time{YType::uint64, "foas-tot-upd-time"},
foas_tot_updates_zero{YType::uint64, "foas-tot-updates-zero"},
foas_num_success{YType::uint64, "foas-num-success"},
foas_num_failure{YType::uint64, "foas-num-failure"},
foas_max_time{YType::uint64, "foas-max-time"},
foas_max_tstamp{YType::uint64, "foas-max-tstamp"}
{
yang_name = "fos-obj-act-stat"; yang_parent_name = "fpus-obj-stat"; is_top_level_class = false; has_list_ancestor = true;
}
Fib::Nodes::Node::Protocols::Protocol::Misc::MiProtoDbgStat::FpdPlatfUpdStats::FpusObjStat::FosObjActStat::~FosObjActStat()
{
}
bool Fib::Nodes::Node::Protocols::Protocol::Misc::MiProtoDbgStat::FpdPlatfUpdStats::FpusObjStat::FosObjActStat::has_data() const
{
if (is_presence_container) return true;
return foas_tot_updates.is_set
|| foas_tot_upd_time.is_set
|| foas_tot_updates_zero.is_set
|| foas_num_success.is_set
|| foas_num_failure.is_set
|| foas_max_time.is_set
|| foas_max_tstamp.is_set;
}
bool Fib::Nodes::Node::Protocols::Protocol::Misc::MiProtoDbgStat::FpdPlatfUpdStats::FpusObjStat::FosObjActStat::has_operation() const
{
return is_set(yfilter)
|| ydk::is_set(foas_tot_updates.yfilter)
|| ydk::is_set(foas_tot_upd_time.yfilter)
|| ydk::is_set(foas_tot_updates_zero.yfilter)
|| ydk::is_set(foas_num_success.yfilter)
|| ydk::is_set(foas_num_failure.yfilter)
|| ydk::is_set(foas_max_time.yfilter)
|| ydk::is_set(foas_max_tstamp.yfilter);
}
std::string Fib::Nodes::Node::Protocols::Protocol::Misc::MiProtoDbgStat::FpdPlatfUpdStats::FpusObjStat::FosObjActStat::get_segment_path() const
{
std::ostringstream path_buffer;
path_buffer << "fos-obj-act-stat";
path_buffer << "[" << get_ylist_key() << "]";
return path_buffer.str();
}
std::vector<std::pair<std::string, LeafData> > Fib::Nodes::Node::Protocols::Protocol::Misc::MiProtoDbgStat::FpdPlatfUpdStats::FpusObjStat::FosObjActStat::get_name_leaf_data() const
{
std::vector<std::pair<std::string, LeafData> > leaf_name_data {};
if (foas_tot_updates.is_set || is_set(foas_tot_updates.yfilter)) leaf_name_data.push_back(foas_tot_updates.get_name_leafdata());
if (foas_tot_upd_time.is_set || is_set(foas_tot_upd_time.yfilter)) leaf_name_data.push_back(foas_tot_upd_time.get_name_leafdata());
if (foas_tot_updates_zero.is_set || is_set(foas_tot_updates_zero.yfilter)) leaf_name_data.push_back(foas_tot_updates_zero.get_name_leafdata());
if (foas_num_success.is_set || is_set(foas_num_success.yfilter)) leaf_name_data.push_back(foas_num_success.get_name_leafdata());
if (foas_num_failure.is_set || is_set(foas_num_failure.yfilter)) leaf_name_data.push_back(foas_num_failure.get_name_leafdata());
if (foas_max_time.is_set || is_set(foas_max_time.yfilter)) leaf_name_data.push_back(foas_max_time.get_name_leafdata());
if (foas_max_tstamp.is_set || is_set(foas_max_tstamp.yfilter)) leaf_name_data.push_back(foas_max_tstamp.get_name_leafdata());
return leaf_name_data;
}
std::shared_ptr<ydk::Entity> Fib::Nodes::Node::Protocols::Protocol::Misc::MiProtoDbgStat::FpdPlatfUpdStats::FpusObjStat::FosObjActStat::get_child_by_name(const std::string & child_yang_name, const std::string & segment_path)
{
return nullptr;
}
std::map<std::string, std::shared_ptr<ydk::Entity>> Fib::Nodes::Node::Protocols::Protocol::Misc::MiProtoDbgStat::FpdPlatfUpdStats::FpusObjStat::FosObjActStat::get_children() const
{
std::map<std::string, std::shared_ptr<ydk::Entity>> _children{};
char count_=0;
return _children;
}
void Fib::Nodes::Node::Protocols::Protocol::Misc::MiProtoDbgStat::FpdPlatfUpdStats::FpusObjStat::FosObjActStat::set_value(const std::string & value_path, const std::string & value, const std::string & name_space, const std::string & name_space_prefix)
{
if(value_path == "foas-tot-updates")
{
foas_tot_updates = value;
foas_tot_updates.value_namespace = name_space;
foas_tot_updates.value_namespace_prefix = name_space_prefix;
}
if(value_path == "foas-tot-upd-time")
{
foas_tot_upd_time = value;
foas_tot_upd_time.value_namespace = name_space;
foas_tot_upd_time.value_namespace_prefix = name_space_prefix;
}
if(value_path == "foas-tot-updates-zero")
{
foas_tot_updates_zero = value;
foas_tot_updates_zero.value_namespace = name_space;
foas_tot_updates_zero.value_namespace_prefix = name_space_prefix;
}
if(value_path == "foas-num-success")
{
foas_num_success = value;
foas_num_success.value_namespace = name_space;
foas_num_success.value_namespace_prefix = name_space_prefix;
}
if(value_path == "foas-num-failure")
{
foas_num_failure = value;
foas_num_failure.value_namespace = name_space;
foas_num_failure.value_namespace_prefix = name_space_prefix;
}
if(value_path == "foas-max-time")
{
foas_max_time = value;
foas_max_time.value_namespace = name_space;
foas_max_time.value_namespace_prefix = name_space_prefix;
}
if(value_path == "foas-max-tstamp")
{
foas_max_tstamp = value;
foas_max_tstamp.value_namespace = name_space;
foas_max_tstamp.value_namespace_prefix = name_space_prefix;
}
}
void Fib::Nodes::Node::Protocols::Protocol::Misc::MiProtoDbgStat::FpdPlatfUpdStats::FpusObjStat::FosObjActStat::set_filter(const std::string & value_path, YFilter yfilter)
{
if(value_path == "foas-tot-updates")
{
foas_tot_updates.yfilter = yfilter;
}
if(value_path == "foas-tot-upd-time")
{
foas_tot_upd_time.yfilter = yfilter;
}
if(value_path == "foas-tot-updates-zero")
{
foas_tot_updates_zero.yfilter = yfilter;
}
if(value_path == "foas-num-success")
{
foas_num_success.yfilter = yfilter;
}
if(value_path == "foas-num-failure")
{
foas_num_failure.yfilter = yfilter;
}
if(value_path == "foas-max-time")
{
foas_max_time.yfilter = yfilter;
}
if(value_path == "foas-max-tstamp")
{
foas_max_tstamp.yfilter = yfilter;
}
}
bool Fib::Nodes::Node::Protocols::Protocol::Misc::MiProtoDbgStat::FpdPlatfUpdStats::FpusObjStat::FosObjActStat::has_leaf_or_child_of_name(const std::string & name) const
{
if(name == "foas-tot-updates" || name == "foas-tot-upd-time" || name == "foas-tot-updates-zero" || name == "foas-num-success" || name == "foas-num-failure" || name == "foas-max-time" || name == "foas-max-tstamp")
return true;
return false;
}
Fib::Nodes::Node::Protocols::Protocol::Misc::MiProtoDbgStat::FpdGtrieTiming::FpdGtrieTiming()
:
fgt_num_success{YType::uint64, "fgt-num-success"},
fgt_num_failure{YType::uint64, "fgt-num-failure"},
fgt_upd_total_time{YType::uint64, "fgt-upd-total-time"}
,
fgt_gtrie_fn_timing(this, {})
{
yang_name = "fpd-gtrie-timing"; yang_parent_name = "mi-proto-dbg-stat"; is_top_level_class = false; has_list_ancestor = true;
}
Fib::Nodes::Node::Protocols::Protocol::Misc::MiProtoDbgStat::FpdGtrieTiming::~FpdGtrieTiming()
{
}
bool Fib::Nodes::Node::Protocols::Protocol::Misc::MiProtoDbgStat::FpdGtrieTiming::has_data() const
{
if (is_presence_container) return true;
for (std::size_t index=0; index<fgt_gtrie_fn_timing.len(); index++)
{
if(fgt_gtrie_fn_timing[index]->has_data())
return true;
}
return fgt_num_success.is_set
|| fgt_num_failure.is_set
|| fgt_upd_total_time.is_set;
}
bool Fib::Nodes::Node::Protocols::Protocol::Misc::MiProtoDbgStat::FpdGtrieTiming::has_operation() const
{
for (std::size_t index=0; index<fgt_gtrie_fn_timing.len(); index++)
{
if(fgt_gtrie_fn_timing[index]->has_operation())
return true;
}
return is_set(yfilter)
|| ydk::is_set(fgt_num_success.yfilter)
|| ydk::is_set(fgt_num_failure.yfilter)
|| ydk::is_set(fgt_upd_total_time.yfilter);
}
std::string Fib::Nodes::Node::Protocols::Protocol::Misc::MiProtoDbgStat::FpdGtrieTiming::get_segment_path() const
{
std::ostringstream path_buffer;
path_buffer << "fpd-gtrie-timing";
return path_buffer.str();
}
std::vector<std::pair<std::string, LeafData> > Fib::Nodes::Node::Protocols::Protocol::Misc::MiProtoDbgStat::FpdGtrieTiming::get_name_leaf_data() const
{
std::vector<std::pair<std::string, LeafData> > leaf_name_data {};
if (fgt_num_success.is_set || is_set(fgt_num_success.yfilter)) leaf_name_data.push_back(fgt_num_success.get_name_leafdata());
if (fgt_num_failure.is_set || is_set(fgt_num_failure.yfilter)) leaf_name_data.push_back(fgt_num_failure.get_name_leafdata());
if (fgt_upd_total_time.is_set || is_set(fgt_upd_total_time.yfilter)) leaf_name_data.push_back(fgt_upd_total_time.get_name_leafdata());
return leaf_name_data;
}
std::shared_ptr<ydk::Entity> Fib::Nodes::Node::Protocols::Protocol::Misc::MiProtoDbgStat::FpdGtrieTiming::get_child_by_name(const std::string & child_yang_name, const std::string & segment_path)
{
if(child_yang_name == "fgt-gtrie-fn-timing")
{
auto ent_ = std::make_shared<Fib::Nodes::Node::Protocols::Protocol::Misc::MiProtoDbgStat::FpdGtrieTiming::FgtGtrieFnTiming>();
ent_->parent = this;
fgt_gtrie_fn_timing.append(ent_);
return ent_;
}
return nullptr;
}
std::map<std::string, std::shared_ptr<ydk::Entity>> Fib::Nodes::Node::Protocols::Protocol::Misc::MiProtoDbgStat::FpdGtrieTiming::get_children() const
{
std::map<std::string, std::shared_ptr<ydk::Entity>> _children{};
char count_=0;
count_ = 0;
for (auto ent_ : fgt_gtrie_fn_timing.entities())
{
if(_children.find(ent_->get_segment_path()) == _children.end())
_children[ent_->get_segment_path()] = ent_;
else
_children[ent_->get_segment_path()+count_++] = ent_;
}
return _children;
}
void Fib::Nodes::Node::Protocols::Protocol::Misc::MiProtoDbgStat::FpdGtrieTiming::set_value(const std::string & value_path, const std::string & value, const std::string & name_space, const std::string & name_space_prefix)
{
if(value_path == "fgt-num-success")
{
fgt_num_success = value;
fgt_num_success.value_namespace = name_space;
fgt_num_success.value_namespace_prefix = name_space_prefix;
}
if(value_path == "fgt-num-failure")
{
fgt_num_failure = value;
fgt_num_failure.value_namespace = name_space;
fgt_num_failure.value_namespace_prefix = name_space_prefix;
}
if(value_path == "fgt-upd-total-time")
{
fgt_upd_total_time = value;
fgt_upd_total_time.value_namespace = name_space;
fgt_upd_total_time.value_namespace_prefix = name_space_prefix;
}
}
void Fib::Nodes::Node::Protocols::Protocol::Misc::MiProtoDbgStat::FpdGtrieTiming::set_filter(const std::string & value_path, YFilter yfilter)
{
if(value_path == "fgt-num-success")
{
fgt_num_success.yfilter = yfilter;
}
if(value_path == "fgt-num-failure")
{
fgt_num_failure.yfilter = yfilter;
}
if(value_path == "fgt-upd-total-time")
{
fgt_upd_total_time.yfilter = yfilter;
}
}
bool Fib::Nodes::Node::Protocols::Protocol::Misc::MiProtoDbgStat::FpdGtrieTiming::has_leaf_or_child_of_name(const std::string & name) const
{
if(name == "fgt-gtrie-fn-timing" || name == "fgt-num-success" || name == "fgt-num-failure" || name == "fgt-upd-total-time")
return true;
return false;
}
Fib::Nodes::Node::Protocols::Protocol::Misc::MiProtoDbgStat::FpdGtrieTiming::FgtGtrieFnTiming::FgtGtrieFnTiming()
:
fgft_fn{YType::str, "fgft-fn"},
fgft_tot_updates{YType::uint64, "fgft-tot-updates"},
fgft_tot_updates_zero{YType::uint64, "fgft-tot-updates-zero"},
fgft_tot_upd_time{YType::uint64, "fgft-tot-upd-time"},
fgft_max_time{YType::uint64, "fgft-max-time"},
fgft_max_tstamp{YType::uint64, "fgft-max-tstamp"}
{
yang_name = "fgt-gtrie-fn-timing"; yang_parent_name = "fpd-gtrie-timing"; is_top_level_class = false; has_list_ancestor = true;
}
Fib::Nodes::Node::Protocols::Protocol::Misc::MiProtoDbgStat::FpdGtrieTiming::FgtGtrieFnTiming::~FgtGtrieFnTiming()
{
}
bool Fib::Nodes::Node::Protocols::Protocol::Misc::MiProtoDbgStat::FpdGtrieTiming::FgtGtrieFnTiming::has_data() const
{
if (is_presence_container) return true;
return fgft_fn.is_set
|| fgft_tot_updates.is_set
|| fgft_tot_updates_zero.is_set
|| fgft_tot_upd_time.is_set
|| fgft_max_time.is_set
|| fgft_max_tstamp.is_set;
}
bool Fib::Nodes::Node::Protocols::Protocol::Misc::MiProtoDbgStat::FpdGtrieTiming::FgtGtrieFnTiming::has_operation() const
{
return is_set(yfilter)
|| ydk::is_set(fgft_fn.yfilter)
|| ydk::is_set(fgft_tot_updates.yfilter)
|| ydk::is_set(fgft_tot_updates_zero.yfilter)
|| ydk::is_set(fgft_tot_upd_time.yfilter)
|| ydk::is_set(fgft_max_time.yfilter)
|| ydk::is_set(fgft_max_tstamp.yfilter);
}
std::string Fib::Nodes::Node::Protocols::Protocol::Misc::MiProtoDbgStat::FpdGtrieTiming::FgtGtrieFnTiming::get_segment_path() const
{
std::ostringstream path_buffer;
path_buffer << "fgt-gtrie-fn-timing";
path_buffer << "[" << get_ylist_key() << "]";
return path_buffer.str();
}
std::vector<std::pair<std::string, LeafData> > Fib::Nodes::Node::Protocols::Protocol::Misc::MiProtoDbgStat::FpdGtrieTiming::FgtGtrieFnTiming::get_name_leaf_data() const
{
std::vector<std::pair<std::string, LeafData> > leaf_name_data {};
if (fgft_fn.is_set || is_set(fgft_fn.yfilter)) leaf_name_data.push_back(fgft_fn.get_name_leafdata());
if (fgft_tot_updates.is_set || is_set(fgft_tot_updates.yfilter)) leaf_name_data.push_back(fgft_tot_updates.get_name_leafdata());
if (fgft_tot_updates_zero.is_set || is_set(fgft_tot_updates_zero.yfilter)) leaf_name_data.push_back(fgft_tot_updates_zero.get_name_leafdata());
if (fgft_tot_upd_time.is_set || is_set(fgft_tot_upd_time.yfilter)) leaf_name_data.push_back(fgft_tot_upd_time.get_name_leafdata());
if (fgft_max_time.is_set || is_set(fgft_max_time.yfilter)) leaf_name_data.push_back(fgft_max_time.get_name_leafdata());
if (fgft_max_tstamp.is_set || is_set(fgft_max_tstamp.yfilter)) leaf_name_data.push_back(fgft_max_tstamp.get_name_leafdata());
return leaf_name_data;
}
std::shared_ptr<ydk::Entity> Fib::Nodes::Node::Protocols::Protocol::Misc::MiProtoDbgStat::FpdGtrieTiming::FgtGtrieFnTiming::get_child_by_name(const std::string & child_yang_name, const std::string & segment_path)
{
return nullptr;
}
std::map<std::string, std::shared_ptr<ydk::Entity>> Fib::Nodes::Node::Protocols::Protocol::Misc::MiProtoDbgStat::FpdGtrieTiming::FgtGtrieFnTiming::get_children() const
{
std::map<std::string, std::shared_ptr<ydk::Entity>> _children{};
char count_=0;
return _children;
}
void Fib::Nodes::Node::Protocols::Protocol::Misc::MiProtoDbgStat::FpdGtrieTiming::FgtGtrieFnTiming::set_value(const std::string & value_path, const std::string & value, const std::string & name_space, const std::string & name_space_prefix)
{
if(value_path == "fgft-fn")
{
fgft_fn = value;
fgft_fn.value_namespace = name_space;
fgft_fn.value_namespace_prefix = name_space_prefix;
}
if(value_path == "fgft-tot-updates")
{
fgft_tot_updates = value;
fgft_tot_updates.value_namespace = name_space;
fgft_tot_updates.value_namespace_prefix = name_space_prefix;
}
if(value_path == "fgft-tot-updates-zero")
{
fgft_tot_updates_zero = value;
fgft_tot_updates_zero.value_namespace = name_space;
fgft_tot_updates_zero.value_namespace_prefix = name_space_prefix;
}
if(value_path == "fgft-tot-upd-time")
{
fgft_tot_upd_time = value;
fgft_tot_upd_time.value_namespace = name_space;
fgft_tot_upd_time.value_namespace_prefix = name_space_prefix;
}
if(value_path == "fgft-max-time")
{
fgft_max_time = value;
fgft_max_time.value_namespace = name_space;
fgft_max_time.value_namespace_prefix = name_space_prefix;
}
if(value_path == "fgft-max-tstamp")
{
fgft_max_tstamp = value;
fgft_max_tstamp.value_namespace = name_space;
fgft_max_tstamp.value_namespace_prefix = name_space_prefix;
}
}
void Fib::Nodes::Node::Protocols::Protocol::Misc::MiProtoDbgStat::FpdGtrieTiming::FgtGtrieFnTiming::set_filter(const std::string & value_path, YFilter yfilter)
{
if(value_path == "fgft-fn")
{
fgft_fn.yfilter = yfilter;
}
if(value_path == "fgft-tot-updates")
{
fgft_tot_updates.yfilter = yfilter;
}
if(value_path == "fgft-tot-updates-zero")
{
fgft_tot_updates_zero.yfilter = yfilter;
}
if(value_path == "fgft-tot-upd-time")
{
fgft_tot_upd_time.yfilter = yfilter;
}
if(value_path == "fgft-max-time")
{
fgft_max_time.yfilter = yfilter;
}
if(value_path == "fgft-max-tstamp")
{
fgft_max_tstamp.yfilter = yfilter;
}
}
bool Fib::Nodes::Node::Protocols::Protocol::Misc::MiProtoDbgStat::FpdGtrieTiming::FgtGtrieFnTiming::has_leaf_or_child_of_name(const std::string & name) const
{
if(name == "fgft-fn" || name == "fgft-tot-updates" || name == "fgft-tot-updates-zero" || name == "fgft-tot-upd-time" || name == "fgft-max-time" || name == "fgft-max-tstamp")
return true;
return false;
}
Fib::Nodes::Node::Protocols::Protocol::Misc::MiProtoDbgStat::FpdGbltblSrcEntry::FpdGbltblSrcEntry()
:
entry{YType::uint64, "entry"}
{
yang_name = "fpd-gbltbl-src-entry"; yang_parent_name = "mi-proto-dbg-stat"; is_top_level_class = false; has_list_ancestor = true;
}
Fib::Nodes::Node::Protocols::Protocol::Misc::MiProtoDbgStat::FpdGbltblSrcEntry::~FpdGbltblSrcEntry()
{
}
bool Fib::Nodes::Node::Protocols::Protocol::Misc::MiProtoDbgStat::FpdGbltblSrcEntry::has_data() const
{
if (is_presence_container) return true;
return entry.is_set;
}
bool Fib::Nodes::Node::Protocols::Protocol::Misc::MiProtoDbgStat::FpdGbltblSrcEntry::has_operation() const
{
return is_set(yfilter)
|| ydk::is_set(entry.yfilter);
}
std::string Fib::Nodes::Node::Protocols::Protocol::Misc::MiProtoDbgStat::FpdGbltblSrcEntry::get_segment_path() const
{
std::ostringstream path_buffer;
path_buffer << "fpd-gbltbl-src-entry";
path_buffer << "[" << get_ylist_key() << "]";
return path_buffer.str();
}
std::vector<std::pair<std::string, LeafData> > Fib::Nodes::Node::Protocols::Protocol::Misc::MiProtoDbgStat::FpdGbltblSrcEntry::get_name_leaf_data() const
{
std::vector<std::pair<std::string, LeafData> > leaf_name_data {};
if (entry.is_set || is_set(entry.yfilter)) leaf_name_data.push_back(entry.get_name_leafdata());
return leaf_name_data;
}
std::shared_ptr<ydk::Entity> Fib::Nodes::Node::Protocols::Protocol::Misc::MiProtoDbgStat::FpdGbltblSrcEntry::get_child_by_name(const std::string & child_yang_name, const std::string & segment_path)
{
return nullptr;
}
std::map<std::string, std::shared_ptr<ydk::Entity>> Fib::Nodes::Node::Protocols::Protocol::Misc::MiProtoDbgStat::FpdGbltblSrcEntry::get_children() const
{
std::map<std::string, std::shared_ptr<ydk::Entity>> _children{};
char count_=0;
return _children;
}
void Fib::Nodes::Node::Protocols::Protocol::Misc::MiProtoDbgStat::FpdGbltblSrcEntry::set_value(const std::string & value_path, const std::string & value, const std::string & name_space, const std::string & name_space_prefix)
{
if(value_path == "entry")
{
entry = value;
entry.value_namespace = name_space;
entry.value_namespace_prefix = name_space_prefix;
}
}
void Fib::Nodes::Node::Protocols::Protocol::Misc::MiProtoDbgStat::FpdGbltblSrcEntry::set_filter(const std::string & value_path, YFilter yfilter)
{
if(value_path == "entry")
{
entry.yfilter = yfilter;
}
}
bool Fib::Nodes::Node::Protocols::Protocol::Misc::MiProtoDbgStat::FpdGbltblSrcEntry::has_leaf_or_child_of_name(const std::string & name) const
{
if(name == "entry")
return true;
return false;
}
Fib::Nodes::Node::Protocols::Protocol::Misc::MiProtoDbgStat::FpdVrftblSrcEntry::FpdVrftblSrcEntry()
:
entry{YType::uint64, "entry"}
{
yang_name = "fpd-vrftbl-src-entry"; yang_parent_name = "mi-proto-dbg-stat"; is_top_level_class = false; has_list_ancestor = true;
}
Fib::Nodes::Node::Protocols::Protocol::Misc::MiProtoDbgStat::FpdVrftblSrcEntry::~FpdVrftblSrcEntry()
{
}
bool Fib::Nodes::Node::Protocols::Protocol::Misc::MiProtoDbgStat::FpdVrftblSrcEntry::has_data() const
{
if (is_presence_container) return true;
return entry.is_set;
}
bool Fib::Nodes::Node::Protocols::Protocol::Misc::MiProtoDbgStat::FpdVrftblSrcEntry::has_operation() const
{
return is_set(yfilter)
|| ydk::is_set(entry.yfilter);
}
std::string Fib::Nodes::Node::Protocols::Protocol::Misc::MiProtoDbgStat::FpdVrftblSrcEntry::get_segment_path() const
{
std::ostringstream path_buffer;
path_buffer << "fpd-vrftbl-src-entry";
path_buffer << "[" << get_ylist_key() << "]";
return path_buffer.str();
}
std::vector<std::pair<std::string, LeafData> > Fib::Nodes::Node::Protocols::Protocol::Misc::MiProtoDbgStat::FpdVrftblSrcEntry::get_name_leaf_data() const
{
std::vector<std::pair<std::string, LeafData> > leaf_name_data {};
if (entry.is_set || is_set(entry.yfilter)) leaf_name_data.push_back(entry.get_name_leafdata());
return leaf_name_data;
}
std::shared_ptr<ydk::Entity> Fib::Nodes::Node::Protocols::Protocol::Misc::MiProtoDbgStat::FpdVrftblSrcEntry::get_child_by_name(const std::string & child_yang_name, const std::string & segment_path)
{
return nullptr;
}
std::map<std::string, std::shared_ptr<ydk::Entity>> Fib::Nodes::Node::Protocols::Protocol::Misc::MiProtoDbgStat::FpdVrftblSrcEntry::get_children() const
{
std::map<std::string, std::shared_ptr<ydk::Entity>> _children{};
char count_=0;
return _children;
}
void Fib::Nodes::Node::Protocols::Protocol::Misc::MiProtoDbgStat::FpdVrftblSrcEntry::set_value(const std::string & value_path, const std::string & value, const std::string & name_space, const std::string & name_space_prefix)
{
if(value_path == "entry")
{
entry = value;
entry.value_namespace = name_space;
entry.value_namespace_prefix = name_space_prefix;
}
}
void Fib::Nodes::Node::Protocols::Protocol::Misc::MiProtoDbgStat::FpdVrftblSrcEntry::set_filter(const std::string & value_path, YFilter yfilter)
{
if(value_path == "entry")
{
entry.yfilter = yfilter;
}
}
bool Fib::Nodes::Node::Protocols::Protocol::Misc::MiProtoDbgStat::FpdVrftblSrcEntry::has_leaf_or_child_of_name(const std::string & name) const
{
if(name == "entry")
return true;
return false;
}
Fib::Nodes::Node::Protocols::Protocol::Misc::MiProtoDbgStat::FpdNumRetry::FpdNumRetry()
:
entry{YType::uint64, "entry"}
{
yang_name = "fpd-num-retry"; yang_parent_name = "mi-proto-dbg-stat"; is_top_level_class = false; has_list_ancestor = true;
}
Fib::Nodes::Node::Protocols::Protocol::Misc::MiProtoDbgStat::FpdNumRetry::~FpdNumRetry()
{
}
bool Fib::Nodes::Node::Protocols::Protocol::Misc::MiProtoDbgStat::FpdNumRetry::has_data() const
{
if (is_presence_container) return true;
return entry.is_set;
}
bool Fib::Nodes::Node::Protocols::Protocol::Misc::MiProtoDbgStat::FpdNumRetry::has_operation() const
{
return is_set(yfilter)
|| ydk::is_set(entry.yfilter);
}
std::string Fib::Nodes::Node::Protocols::Protocol::Misc::MiProtoDbgStat::FpdNumRetry::get_segment_path() const
{
std::ostringstream path_buffer;
path_buffer << "fpd-num-retry";
path_buffer << "[" << get_ylist_key() << "]";
return path_buffer.str();
}
std::vector<std::pair<std::string, LeafData> > Fib::Nodes::Node::Protocols::Protocol::Misc::MiProtoDbgStat::FpdNumRetry::get_name_leaf_data() const
{
std::vector<std::pair<std::string, LeafData> > leaf_name_data {};
if (entry.is_set || is_set(entry.yfilter)) leaf_name_data.push_back(entry.get_name_leafdata());
return leaf_name_data;
}
std::shared_ptr<ydk::Entity> Fib::Nodes::Node::Protocols::Protocol::Misc::MiProtoDbgStat::FpdNumRetry::get_child_by_name(const std::string & child_yang_name, const std::string & segment_path)
{
return nullptr;
}
std::map<std::string, std::shared_ptr<ydk::Entity>> Fib::Nodes::Node::Protocols::Protocol::Misc::MiProtoDbgStat::FpdNumRetry::get_children() const
{
std::map<std::string, std::shared_ptr<ydk::Entity>> _children{};
char count_=0;
return _children;
}
void Fib::Nodes::Node::Protocols::Protocol::Misc::MiProtoDbgStat::FpdNumRetry::set_value(const std::string & value_path, const std::string & value, const std::string & name_space, const std::string & name_space_prefix)
{
if(value_path == "entry")
{
entry = value;
entry.value_namespace = name_space;
entry.value_namespace_prefix = name_space_prefix;
}
}
void Fib::Nodes::Node::Protocols::Protocol::Misc::MiProtoDbgStat::FpdNumRetry::set_filter(const std::string & value_path, YFilter yfilter)
{
if(value_path == "entry")
{
entry.yfilter = yfilter;
}
}
bool Fib::Nodes::Node::Protocols::Protocol::Misc::MiProtoDbgStat::FpdNumRetry::has_leaf_or_child_of_name(const std::string & name) const
{
if(name == "entry")
return true;
return false;
}
Fib::Nodes::Node::Protocols::Protocol::Misc::MiIdbPurgeCntr::MiIdbPurgeCntr()
:
fpp_cntr(this, {})
{
yang_name = "mi-idb-purge-cntr"; yang_parent_name = "misc"; is_top_level_class = false; has_list_ancestor = true;
}
Fib::Nodes::Node::Protocols::Protocol::Misc::MiIdbPurgeCntr::~MiIdbPurgeCntr()
{
}
bool Fib::Nodes::Node::Protocols::Protocol::Misc::MiIdbPurgeCntr::has_data() const
{
if (is_presence_container) return true;
for (std::size_t index=0; index<fpp_cntr.len(); index++)
{
if(fpp_cntr[index]->has_data())
return true;
}
return false;
}
bool Fib::Nodes::Node::Protocols::Protocol::Misc::MiIdbPurgeCntr::has_operation() const
{
for (std::size_t index=0; index<fpp_cntr.len(); index++)
{
if(fpp_cntr[index]->has_operation())
return true;
}
return is_set(yfilter);
}
std::string Fib::Nodes::Node::Protocols::Protocol::Misc::MiIdbPurgeCntr::get_segment_path() const
{
std::ostringstream path_buffer;
path_buffer << "mi-idb-purge-cntr";
path_buffer << "[" << get_ylist_key() << "]";
return path_buffer.str();
}
std::vector<std::pair<std::string, LeafData> > Fib::Nodes::Node::Protocols::Protocol::Misc::MiIdbPurgeCntr::get_name_leaf_data() const
{
std::vector<std::pair<std::string, LeafData> > leaf_name_data {};
return leaf_name_data;
}
std::shared_ptr<ydk::Entity> Fib::Nodes::Node::Protocols::Protocol::Misc::MiIdbPurgeCntr::get_child_by_name(const std::string & child_yang_name, const std::string & segment_path)
{
if(child_yang_name == "fpp-cntr")
{
auto ent_ = std::make_shared<Fib::Nodes::Node::Protocols::Protocol::Misc::MiIdbPurgeCntr::FppCntr>();
ent_->parent = this;
fpp_cntr.append(ent_);
return ent_;
}
return nullptr;
}
std::map<std::string, std::shared_ptr<ydk::Entity>> Fib::Nodes::Node::Protocols::Protocol::Misc::MiIdbPurgeCntr::get_children() const
{
std::map<std::string, std::shared_ptr<ydk::Entity>> _children{};
char count_=0;
count_ = 0;
for (auto ent_ : fpp_cntr.entities())
{
if(_children.find(ent_->get_segment_path()) == _children.end())
_children[ent_->get_segment_path()] = ent_;
else
_children[ent_->get_segment_path()+count_++] = ent_;
}
return _children;
}
void Fib::Nodes::Node::Protocols::Protocol::Misc::MiIdbPurgeCntr::set_value(const std::string & value_path, const std::string & value, const std::string & name_space, const std::string & name_space_prefix)
{
}
void Fib::Nodes::Node::Protocols::Protocol::Misc::MiIdbPurgeCntr::set_filter(const std::string & value_path, YFilter yfilter)
{
}
bool Fib::Nodes::Node::Protocols::Protocol::Misc::MiIdbPurgeCntr::has_leaf_or_child_of_name(const std::string & name) const
{
if(name == "fpp-cntr")
return true;
return false;
}
Fib::Nodes::Node::Protocols::Protocol::Misc::MiIdbPurgeCntr::FppCntr::FppCntr()
:
entry{YType::uint32, "entry"}
{
yang_name = "fpp-cntr"; yang_parent_name = "mi-idb-purge-cntr"; is_top_level_class = false; has_list_ancestor = true;
}
Fib::Nodes::Node::Protocols::Protocol::Misc::MiIdbPurgeCntr::FppCntr::~FppCntr()
{
}
bool Fib::Nodes::Node::Protocols::Protocol::Misc::MiIdbPurgeCntr::FppCntr::has_data() const
{
if (is_presence_container) return true;
return entry.is_set;
}
bool Fib::Nodes::Node::Protocols::Protocol::Misc::MiIdbPurgeCntr::FppCntr::has_operation() const
{
return is_set(yfilter)
|| ydk::is_set(entry.yfilter);
}
std::string Fib::Nodes::Node::Protocols::Protocol::Misc::MiIdbPurgeCntr::FppCntr::get_segment_path() const
{
std::ostringstream path_buffer;
path_buffer << "fpp-cntr";
path_buffer << "[" << get_ylist_key() << "]";
return path_buffer.str();
}
std::vector<std::pair<std::string, LeafData> > Fib::Nodes::Node::Protocols::Protocol::Misc::MiIdbPurgeCntr::FppCntr::get_name_leaf_data() const
{
std::vector<std::pair<std::string, LeafData> > leaf_name_data {};
if (entry.is_set || is_set(entry.yfilter)) leaf_name_data.push_back(entry.get_name_leafdata());
return leaf_name_data;
}
std::shared_ptr<ydk::Entity> Fib::Nodes::Node::Protocols::Protocol::Misc::MiIdbPurgeCntr::FppCntr::get_child_by_name(const std::string & child_yang_name, const std::string & segment_path)
{
return nullptr;
}
std::map<std::string, std::shared_ptr<ydk::Entity>> Fib::Nodes::Node::Protocols::Protocol::Misc::MiIdbPurgeCntr::FppCntr::get_children() const
{
std::map<std::string, std::shared_ptr<ydk::Entity>> _children{};
char count_=0;
return _children;
}
void Fib::Nodes::Node::Protocols::Protocol::Misc::MiIdbPurgeCntr::FppCntr::set_value(const std::string & value_path, const std::string & value, const std::string & name_space, const std::string & name_space_prefix)
{
if(value_path == "entry")
{
entry = value;
entry.value_namespace = name_space;
entry.value_namespace_prefix = name_space_prefix;
}
}
void Fib::Nodes::Node::Protocols::Protocol::Misc::MiIdbPurgeCntr::FppCntr::set_filter(const std::string & value_path, YFilter yfilter)
{
if(value_path == "entry")
{
entry.yfilter = yfilter;
}
}
bool Fib::Nodes::Node::Protocols::Protocol::Misc::MiIdbPurgeCntr::FppCntr::has_leaf_or_child_of_name(const std::string & name) const
{
if(name == "entry")
return true;
return false;
}
Fib::Nodes::Node::Protocols::Protocol::Misc::MiDel::MiDel()
:
tableid{YType::uint32, "tableid"},
prfx{YType::str, "prfx"},
prfx_len{YType::uint16, "prfx-len"},
prfx_proto{YType::uint16, "prfx-proto"},
msec_time{YType::uint64, "msec-time"}
{
yang_name = "mi-del"; yang_parent_name = "misc"; is_top_level_class = false; has_list_ancestor = true;
}
Fib::Nodes::Node::Protocols::Protocol::Misc::MiDel::~MiDel()
{
}
bool Fib::Nodes::Node::Protocols::Protocol::Misc::MiDel::has_data() const
{
if (is_presence_container) return true;
return tableid.is_set
|| prfx.is_set
|| prfx_len.is_set
|| prfx_proto.is_set
|| msec_time.is_set;
}
bool Fib::Nodes::Node::Protocols::Protocol::Misc::MiDel::has_operation() const
{
return is_set(yfilter)
|| ydk::is_set(tableid.yfilter)
|| ydk::is_set(prfx.yfilter)
|| ydk::is_set(prfx_len.yfilter)
|| ydk::is_set(prfx_proto.yfilter)
|| ydk::is_set(msec_time.yfilter);
}
std::string Fib::Nodes::Node::Protocols::Protocol::Misc::MiDel::get_segment_path() const
{
std::ostringstream path_buffer;
path_buffer << "mi-del";
path_buffer << "[" << get_ylist_key() << "]";
return path_buffer.str();
}
std::vector<std::pair<std::string, LeafData> > Fib::Nodes::Node::Protocols::Protocol::Misc::MiDel::get_name_leaf_data() const
{
std::vector<std::pair<std::string, LeafData> > leaf_name_data {};
if (tableid.is_set || is_set(tableid.yfilter)) leaf_name_data.push_back(tableid.get_name_leafdata());
if (prfx.is_set || is_set(prfx.yfilter)) leaf_name_data.push_back(prfx.get_name_leafdata());
if (prfx_len.is_set || is_set(prfx_len.yfilter)) leaf_name_data.push_back(prfx_len.get_name_leafdata());
if (prfx_proto.is_set || is_set(prfx_proto.yfilter)) leaf_name_data.push_back(prfx_proto.get_name_leafdata());
if (msec_time.is_set || is_set(msec_time.yfilter)) leaf_name_data.push_back(msec_time.get_name_leafdata());
return leaf_name_data;
}
std::shared_ptr<ydk::Entity> Fib::Nodes::Node::Protocols::Protocol::Misc::MiDel::get_child_by_name(const std::string & child_yang_name, const std::string & segment_path)
{
return nullptr;
}
std::map<std::string, std::shared_ptr<ydk::Entity>> Fib::Nodes::Node::Protocols::Protocol::Misc::MiDel::get_children() const
{
std::map<std::string, std::shared_ptr<ydk::Entity>> _children{};
char count_=0;
return _children;
}
void Fib::Nodes::Node::Protocols::Protocol::Misc::MiDel::set_value(const std::string & value_path, const std::string & value, const std::string & name_space, const std::string & name_space_prefix)
{
if(value_path == "tableid")
{
tableid = value;
tableid.value_namespace = name_space;
tableid.value_namespace_prefix = name_space_prefix;
}
if(value_path == "prfx")
{
prfx = value;
prfx.value_namespace = name_space;
prfx.value_namespace_prefix = name_space_prefix;
}
if(value_path == "prfx-len")
{
prfx_len = value;
prfx_len.value_namespace = name_space;
prfx_len.value_namespace_prefix = name_space_prefix;
}
if(value_path == "prfx-proto")
{
prfx_proto = value;
prfx_proto.value_namespace = name_space;
prfx_proto.value_namespace_prefix = name_space_prefix;
}
if(value_path == "msec-time")
{
msec_time = value;
msec_time.value_namespace = name_space;
msec_time.value_namespace_prefix = name_space_prefix;
}
}
void Fib::Nodes::Node::Protocols::Protocol::Misc::MiDel::set_filter(const std::string & value_path, YFilter yfilter)
{
if(value_path == "tableid")
{
tableid.yfilter = yfilter;
}
if(value_path == "prfx")
{
prfx.yfilter = yfilter;
}
if(value_path == "prfx-len")
{
prfx_len.yfilter = yfilter;
}
if(value_path == "prfx-proto")
{
prfx_proto.yfilter = yfilter;
}
if(value_path == "msec-time")
{
msec_time.yfilter = yfilter;
}
}
bool Fib::Nodes::Node::Protocols::Protocol::Misc::MiDel::has_leaf_or_child_of_name(const std::string & name) const
{
if(name == "tableid" || name == "prfx" || name == "prfx-len" || name == "prfx-proto" || name == "msec-time")
return true;
return false;
}
Fib::Nodes::Node::Protocols::Protocol::Misc::MiFrrStat::MiFrrStat()
:
mi_num_intf_frr{YType::uint32, "mi-num-intf-frr"},
mi_num_parent_intf_frr{YType::uint32, "mi-num-parent-intf-frr"},
mi_num_pfi_intf_down{YType::uint32, "mi-num-pfi-intf-down"},
mi_num_bfd_down{YType::uint32, "mi-num-bfd-down"},
mi_num_prot_frr_objects{YType::uint32, "mi-num-prot-frr-objects"},
mi_num_bkup_frr_objects{YType::uint32, "mi-num-bkup-frr-objects"},
mi_num_tunid_allocs{YType::uint32, "mi-num-tunid-allocs"},
mi_num_tunid_alloc_failures{YType::uint32, "mi-num-tunid-alloc-failures"},
mi_num_tunid_frees{YType::uint32, "mi-num-tunid-frees"},
mi_num_tunid_free_failures{YType::uint32, "mi-num-tunid-free-failures"},
mi_num_frr_reset_queue_adds{YType::uint32, "mi-num-frr-reset-queue-adds"},
mi_num_frr_reset_queue_remove{YType::uint32, "mi-num-frr-reset-queue-remove"},
mi_num_frr_reset{YType::uint32, "mi-num-frr-reset"},
mi_num_frr_proto_events{YType::uint32, "mi-num-frr-proto-events"},
mi_num_frr_logs{YType::uint32, "mi-num-frr-logs"}
{
yang_name = "mi-frr-stat"; yang_parent_name = "misc"; is_top_level_class = false; has_list_ancestor = true;
}
Fib::Nodes::Node::Protocols::Protocol::Misc::MiFrrStat::~MiFrrStat()
{
}
bool Fib::Nodes::Node::Protocols::Protocol::Misc::MiFrrStat::has_data() const
{
if (is_presence_container) return true;
return mi_num_intf_frr.is_set
|| mi_num_parent_intf_frr.is_set
|| mi_num_pfi_intf_down.is_set
|| mi_num_bfd_down.is_set
|| mi_num_prot_frr_objects.is_set
|| mi_num_bkup_frr_objects.is_set
|| mi_num_tunid_allocs.is_set
|| mi_num_tunid_alloc_failures.is_set
|| mi_num_tunid_frees.is_set
|| mi_num_tunid_free_failures.is_set
|| mi_num_frr_reset_queue_adds.is_set
|| mi_num_frr_reset_queue_remove.is_set
|| mi_num_frr_reset.is_set
|| mi_num_frr_proto_events.is_set
|| mi_num_frr_logs.is_set;
}
bool Fib::Nodes::Node::Protocols::Protocol::Misc::MiFrrStat::has_operation() const
{
return is_set(yfilter)
|| ydk::is_set(mi_num_intf_frr.yfilter)
|| ydk::is_set(mi_num_parent_intf_frr.yfilter)
|| ydk::is_set(mi_num_pfi_intf_down.yfilter)
|| ydk::is_set(mi_num_bfd_down.yfilter)
|| ydk::is_set(mi_num_prot_frr_objects.yfilter)
|| ydk::is_set(mi_num_bkup_frr_objects.yfilter)
|| ydk::is_set(mi_num_tunid_allocs.yfilter)
|| ydk::is_set(mi_num_tunid_alloc_failures.yfilter)
|| ydk::is_set(mi_num_tunid_frees.yfilter)
|| ydk::is_set(mi_num_tunid_free_failures.yfilter)
|| ydk::is_set(mi_num_frr_reset_queue_adds.yfilter)
|| ydk::is_set(mi_num_frr_reset_queue_remove.yfilter)
|| ydk::is_set(mi_num_frr_reset.yfilter)
|| ydk::is_set(mi_num_frr_proto_events.yfilter)
|| ydk::is_set(mi_num_frr_logs.yfilter);
}
std::string Fib::Nodes::Node::Protocols::Protocol::Misc::MiFrrStat::get_segment_path() const
{
std::ostringstream path_buffer;
path_buffer << "mi-frr-stat";
path_buffer << "[" << get_ylist_key() << "]";
return path_buffer.str();
}
std::vector<std::pair<std::string, LeafData> > Fib::Nodes::Node::Protocols::Protocol::Misc::MiFrrStat::get_name_leaf_data() const
{
std::vector<std::pair<std::string, LeafData> > leaf_name_data {};
if (mi_num_intf_frr.is_set || is_set(mi_num_intf_frr.yfilter)) leaf_name_data.push_back(mi_num_intf_frr.get_name_leafdata());
if (mi_num_parent_intf_frr.is_set || is_set(mi_num_parent_intf_frr.yfilter)) leaf_name_data.push_back(mi_num_parent_intf_frr.get_name_leafdata());
if (mi_num_pfi_intf_down.is_set || is_set(mi_num_pfi_intf_down.yfilter)) leaf_name_data.push_back(mi_num_pfi_intf_down.get_name_leafdata());
if (mi_num_bfd_down.is_set || is_set(mi_num_bfd_down.yfilter)) leaf_name_data.push_back(mi_num_bfd_down.get_name_leafdata());
if (mi_num_prot_frr_objects.is_set || is_set(mi_num_prot_frr_objects.yfilter)) leaf_name_data.push_back(mi_num_prot_frr_objects.get_name_leafdata());
if (mi_num_bkup_frr_objects.is_set || is_set(mi_num_bkup_frr_objects.yfilter)) leaf_name_data.push_back(mi_num_bkup_frr_objects.get_name_leafdata());
if (mi_num_tunid_allocs.is_set || is_set(mi_num_tunid_allocs.yfilter)) leaf_name_data.push_back(mi_num_tunid_allocs.get_name_leafdata());
if (mi_num_tunid_alloc_failures.is_set || is_set(mi_num_tunid_alloc_failures.yfilter)) leaf_name_data.push_back(mi_num_tunid_alloc_failures.get_name_leafdata());
if (mi_num_tunid_frees.is_set || is_set(mi_num_tunid_frees.yfilter)) leaf_name_data.push_back(mi_num_tunid_frees.get_name_leafdata());
if (mi_num_tunid_free_failures.is_set || is_set(mi_num_tunid_free_failures.yfilter)) leaf_name_data.push_back(mi_num_tunid_free_failures.get_name_leafdata());
if (mi_num_frr_reset_queue_adds.is_set || is_set(mi_num_frr_reset_queue_adds.yfilter)) leaf_name_data.push_back(mi_num_frr_reset_queue_adds.get_name_leafdata());
if (mi_num_frr_reset_queue_remove.is_set || is_set(mi_num_frr_reset_queue_remove.yfilter)) leaf_name_data.push_back(mi_num_frr_reset_queue_remove.get_name_leafdata());
if (mi_num_frr_reset.is_set || is_set(mi_num_frr_reset.yfilter)) leaf_name_data.push_back(mi_num_frr_reset.get_name_leafdata());
if (mi_num_frr_proto_events.is_set || is_set(mi_num_frr_proto_events.yfilter)) leaf_name_data.push_back(mi_num_frr_proto_events.get_name_leafdata());
if (mi_num_frr_logs.is_set || is_set(mi_num_frr_logs.yfilter)) leaf_name_data.push_back(mi_num_frr_logs.get_name_leafdata());
return leaf_name_data;
}
std::shared_ptr<ydk::Entity> Fib::Nodes::Node::Protocols::Protocol::Misc::MiFrrStat::get_child_by_name(const std::string & child_yang_name, const std::string & segment_path)
{
return nullptr;
}
std::map<std::string, std::shared_ptr<ydk::Entity>> Fib::Nodes::Node::Protocols::Protocol::Misc::MiFrrStat::get_children() const
{
std::map<std::string, std::shared_ptr<ydk::Entity>> _children{};
char count_=0;
return _children;
}
void Fib::Nodes::Node::Protocols::Protocol::Misc::MiFrrStat::set_value(const std::string & value_path, const std::string & value, const std::string & name_space, const std::string & name_space_prefix)
{
if(value_path == "mi-num-intf-frr")
{
mi_num_intf_frr = value;
mi_num_intf_frr.value_namespace = name_space;
mi_num_intf_frr.value_namespace_prefix = name_space_prefix;
}
if(value_path == "mi-num-parent-intf-frr")
{
mi_num_parent_intf_frr = value;
mi_num_parent_intf_frr.value_namespace = name_space;
mi_num_parent_intf_frr.value_namespace_prefix = name_space_prefix;
}
if(value_path == "mi-num-pfi-intf-down")
{
mi_num_pfi_intf_down = value;
mi_num_pfi_intf_down.value_namespace = name_space;
mi_num_pfi_intf_down.value_namespace_prefix = name_space_prefix;
}
if(value_path == "mi-num-bfd-down")
{
mi_num_bfd_down = value;
mi_num_bfd_down.value_namespace = name_space;
mi_num_bfd_down.value_namespace_prefix = name_space_prefix;
}
if(value_path == "mi-num-prot-frr-objects")
{
mi_num_prot_frr_objects = value;
mi_num_prot_frr_objects.value_namespace = name_space;
mi_num_prot_frr_objects.value_namespace_prefix = name_space_prefix;
}
if(value_path == "mi-num-bkup-frr-objects")
{
mi_num_bkup_frr_objects = value;
mi_num_bkup_frr_objects.value_namespace = name_space;
mi_num_bkup_frr_objects.value_namespace_prefix = name_space_prefix;
}
if(value_path == "mi-num-tunid-allocs")
{
mi_num_tunid_allocs = value;
mi_num_tunid_allocs.value_namespace = name_space;
mi_num_tunid_allocs.value_namespace_prefix = name_space_prefix;
}
if(value_path == "mi-num-tunid-alloc-failures")
{
mi_num_tunid_alloc_failures = value;
mi_num_tunid_alloc_failures.value_namespace = name_space;
mi_num_tunid_alloc_failures.value_namespace_prefix = name_space_prefix;
}
if(value_path == "mi-num-tunid-frees")
{
mi_num_tunid_frees = value;
mi_num_tunid_frees.value_namespace = name_space;
mi_num_tunid_frees.value_namespace_prefix = name_space_prefix;
}
if(value_path == "mi-num-tunid-free-failures")
{
mi_num_tunid_free_failures = value;
mi_num_tunid_free_failures.value_namespace = name_space;
mi_num_tunid_free_failures.value_namespace_prefix = name_space_prefix;
}
if(value_path == "mi-num-frr-reset-queue-adds")
{
mi_num_frr_reset_queue_adds = value;
mi_num_frr_reset_queue_adds.value_namespace = name_space;
mi_num_frr_reset_queue_adds.value_namespace_prefix = name_space_prefix;
}
if(value_path == "mi-num-frr-reset-queue-remove")
{
mi_num_frr_reset_queue_remove = value;
mi_num_frr_reset_queue_remove.value_namespace = name_space;
mi_num_frr_reset_queue_remove.value_namespace_prefix = name_space_prefix;
}
if(value_path == "mi-num-frr-reset")
{
mi_num_frr_reset = value;
mi_num_frr_reset.value_namespace = name_space;
mi_num_frr_reset.value_namespace_prefix = name_space_prefix;
}
if(value_path == "mi-num-frr-proto-events")
{
mi_num_frr_proto_events = value;
mi_num_frr_proto_events.value_namespace = name_space;
mi_num_frr_proto_events.value_namespace_prefix = name_space_prefix;
}
if(value_path == "mi-num-frr-logs")
{
mi_num_frr_logs = value;
mi_num_frr_logs.value_namespace = name_space;
mi_num_frr_logs.value_namespace_prefix = name_space_prefix;
}
}
void Fib::Nodes::Node::Protocols::Protocol::Misc::MiFrrStat::set_filter(const std::string & value_path, YFilter yfilter)
{
if(value_path == "mi-num-intf-frr")
{
mi_num_intf_frr.yfilter = yfilter;
}
if(value_path == "mi-num-parent-intf-frr")
{
mi_num_parent_intf_frr.yfilter = yfilter;
}
if(value_path == "mi-num-pfi-intf-down")
{
mi_num_pfi_intf_down.yfilter = yfilter;
}
if(value_path == "mi-num-bfd-down")
{
mi_num_bfd_down.yfilter = yfilter;
}
if(value_path == "mi-num-prot-frr-objects")
{
mi_num_prot_frr_objects.yfilter = yfilter;
}
if(value_path == "mi-num-bkup-frr-objects")
{
mi_num_bkup_frr_objects.yfilter = yfilter;
}
if(value_path == "mi-num-tunid-allocs")
{
mi_num_tunid_allocs.yfilter = yfilter;
}
if(value_path == "mi-num-tunid-alloc-failures")
{
mi_num_tunid_alloc_failures.yfilter = yfilter;
}
if(value_path == "mi-num-tunid-frees")
{
mi_num_tunid_frees.yfilter = yfilter;
}
if(value_path == "mi-num-tunid-free-failures")
{
mi_num_tunid_free_failures.yfilter = yfilter;
}
if(value_path == "mi-num-frr-reset-queue-adds")
{
mi_num_frr_reset_queue_adds.yfilter = yfilter;
}
if(value_path == "mi-num-frr-reset-queue-remove")
{
mi_num_frr_reset_queue_remove.yfilter = yfilter;
}
if(value_path == "mi-num-frr-reset")
{
mi_num_frr_reset.yfilter = yfilter;
}
if(value_path == "mi-num-frr-proto-events")
{
mi_num_frr_proto_events.yfilter = yfilter;
}
if(value_path == "mi-num-frr-logs")
{
mi_num_frr_logs.yfilter = yfilter;
}
}
bool Fib::Nodes::Node::Protocols::Protocol::Misc::MiFrrStat::has_leaf_or_child_of_name(const std::string & name) const
{
if(name == "mi-num-intf-frr" || name == "mi-num-parent-intf-frr" || name == "mi-num-pfi-intf-down" || name == "mi-num-bfd-down" || name == "mi-num-prot-frr-objects" || name == "mi-num-bkup-frr-objects" || name == "mi-num-tunid-allocs" || name == "mi-num-tunid-alloc-failures" || name == "mi-num-tunid-frees" || name == "mi-num-tunid-free-failures" || name == "mi-num-frr-reset-queue-adds" || name == "mi-num-frr-reset-queue-remove" || name == "mi-num-frr-reset" || name == "mi-num-frr-proto-events" || name == "mi-num-frr-logs")
return true;
return false;
}
Fib::Nodes::Node::Protocols::Protocol::LocalLabel::LocalLabel()
:
conflicts(std::make_shared<Fib::Nodes::Node::Protocols::Protocol::LocalLabel::Conflicts>())
{
conflicts->parent = this;
yang_name = "local-label"; yang_parent_name = "protocol"; is_top_level_class = false; has_list_ancestor = true;
}
Fib::Nodes::Node::Protocols::Protocol::LocalLabel::~LocalLabel()
{
}
bool Fib::Nodes::Node::Protocols::Protocol::LocalLabel::has_data() const
{
if (is_presence_container) return true;
return (conflicts != nullptr && conflicts->has_data());
}
bool Fib::Nodes::Node::Protocols::Protocol::LocalLabel::has_operation() const
{
return is_set(yfilter)
|| (conflicts != nullptr && conflicts->has_operation());
}
std::string Fib::Nodes::Node::Protocols::Protocol::LocalLabel::get_segment_path() const
{
std::ostringstream path_buffer;
path_buffer << "local-label";
return path_buffer.str();
}
std::vector<std::pair<std::string, LeafData> > Fib::Nodes::Node::Protocols::Protocol::LocalLabel::get_name_leaf_data() const
{
std::vector<std::pair<std::string, LeafData> > leaf_name_data {};
return leaf_name_data;
}
std::shared_ptr<ydk::Entity> Fib::Nodes::Node::Protocols::Protocol::LocalLabel::get_child_by_name(const std::string & child_yang_name, const std::string & segment_path)
{
if(child_yang_name == "conflicts")
{
if(conflicts == nullptr)
{
conflicts = std::make_shared<Fib::Nodes::Node::Protocols::Protocol::LocalLabel::Conflicts>();
}
return conflicts;
}
return nullptr;
}
std::map<std::string, std::shared_ptr<ydk::Entity>> Fib::Nodes::Node::Protocols::Protocol::LocalLabel::get_children() const
{
std::map<std::string, std::shared_ptr<ydk::Entity>> _children{};
char count_=0;
if(conflicts != nullptr)
{
_children["conflicts"] = conflicts;
}
return _children;
}
void Fib::Nodes::Node::Protocols::Protocol::LocalLabel::set_value(const std::string & value_path, const std::string & value, const std::string & name_space, const std::string & name_space_prefix)
{
}
void Fib::Nodes::Node::Protocols::Protocol::LocalLabel::set_filter(const std::string & value_path, YFilter yfilter)
{
}
bool Fib::Nodes::Node::Protocols::Protocol::LocalLabel::has_leaf_or_child_of_name(const std::string & name) const
{
if(name == "conflicts")
return true;
return false;
}
Fib::Nodes::Node::Protocols::Protocol::LocalLabel::Conflicts::Conflicts()
:
conflict(this, {})
{
yang_name = "conflicts"; yang_parent_name = "local-label"; is_top_level_class = false; has_list_ancestor = true;
}
Fib::Nodes::Node::Protocols::Protocol::LocalLabel::Conflicts::~Conflicts()
{
}
bool Fib::Nodes::Node::Protocols::Protocol::LocalLabel::Conflicts::has_data() const
{
if (is_presence_container) return true;
for (std::size_t index=0; index<conflict.len(); index++)
{
if(conflict[index]->has_data())
return true;
}
return false;
}
bool Fib::Nodes::Node::Protocols::Protocol::LocalLabel::Conflicts::has_operation() const
{
for (std::size_t index=0; index<conflict.len(); index++)
{
if(conflict[index]->has_operation())
return true;
}
return is_set(yfilter);
}
std::string Fib::Nodes::Node::Protocols::Protocol::LocalLabel::Conflicts::get_segment_path() const
{
std::ostringstream path_buffer;
path_buffer << "conflicts";
return path_buffer.str();
}
std::vector<std::pair<std::string, LeafData> > Fib::Nodes::Node::Protocols::Protocol::LocalLabel::Conflicts::get_name_leaf_data() const
{
std::vector<std::pair<std::string, LeafData> > leaf_name_data {};
return leaf_name_data;
}
std::shared_ptr<ydk::Entity> Fib::Nodes::Node::Protocols::Protocol::LocalLabel::Conflicts::get_child_by_name(const std::string & child_yang_name, const std::string & segment_path)
{
if(child_yang_name == "conflict")
{
auto ent_ = std::make_shared<Fib::Nodes::Node::Protocols::Protocol::LocalLabel::Conflicts::Conflict>();
ent_->parent = this;
conflict.append(ent_);
return ent_;
}
return nullptr;
}
std::map<std::string, std::shared_ptr<ydk::Entity>> Fib::Nodes::Node::Protocols::Protocol::LocalLabel::Conflicts::get_children() const
{
std::map<std::string, std::shared_ptr<ydk::Entity>> _children{};
char count_=0;
count_ = 0;
for (auto ent_ : conflict.entities())
{
if(_children.find(ent_->get_segment_path()) == _children.end())
_children[ent_->get_segment_path()] = ent_;
else
_children[ent_->get_segment_path()+count_++] = ent_;
}
return _children;
}
void Fib::Nodes::Node::Protocols::Protocol::LocalLabel::Conflicts::set_value(const std::string & value_path, const std::string & value, const std::string & name_space, const std::string & name_space_prefix)
{
}
void Fib::Nodes::Node::Protocols::Protocol::LocalLabel::Conflicts::set_filter(const std::string & value_path, YFilter yfilter)
{
}
bool Fib::Nodes::Node::Protocols::Protocol::LocalLabel::Conflicts::has_leaf_or_child_of_name(const std::string & name) const
{
if(name == "conflict")
return true;
return false;
}
Fib::Nodes::Node::Protocols::Protocol::LocalLabel::Conflicts::Conflict::Conflict()
:
label{YType::uint32, "label"},
source{YType::enumeration, "source"},
ll_ctype{YType::enumeration, "ll-ctype"},
pfx_tbl_id{YType::uint32, "pfx-tbl-id"},
prefix{YType::str, "prefix"},
prefix_len{YType::uint32, "prefix-len"},
local_label{YType::uint32, "local-label"},
source_xr{YType::uint32, "source-xr"},
update_ts{YType::uint64, "update-ts"},
retry_ts{YType::uint64, "retry-ts"},
num_retries{YType::uint32, "num-retries"}
,
ext(std::make_shared<Fib::Nodes::Node::Protocols::Protocol::LocalLabel::Conflicts::Conflict::Ext>())
{
ext->parent = this;
yang_name = "conflict"; yang_parent_name = "conflicts"; is_top_level_class = false; has_list_ancestor = true;
}
Fib::Nodes::Node::Protocols::Protocol::LocalLabel::Conflicts::Conflict::~Conflict()
{
}
bool Fib::Nodes::Node::Protocols::Protocol::LocalLabel::Conflicts::Conflict::has_data() const
{
if (is_presence_container) return true;
return label.is_set
|| source.is_set
|| ll_ctype.is_set
|| pfx_tbl_id.is_set
|| prefix.is_set
|| prefix_len.is_set
|| local_label.is_set
|| source_xr.is_set
|| update_ts.is_set
|| retry_ts.is_set
|| num_retries.is_set
|| (ext != nullptr && ext->has_data());
}
bool Fib::Nodes::Node::Protocols::Protocol::LocalLabel::Conflicts::Conflict::has_operation() const
{
return is_set(yfilter)
|| ydk::is_set(label.yfilter)
|| ydk::is_set(source.yfilter)
|| ydk::is_set(ll_ctype.yfilter)
|| ydk::is_set(pfx_tbl_id.yfilter)
|| ydk::is_set(prefix.yfilter)
|| ydk::is_set(prefix_len.yfilter)
|| ydk::is_set(local_label.yfilter)
|| ydk::is_set(source_xr.yfilter)
|| ydk::is_set(update_ts.yfilter)
|| ydk::is_set(retry_ts.yfilter)
|| ydk::is_set(num_retries.yfilter)
|| (ext != nullptr && ext->has_operation());
}
std::string Fib::Nodes::Node::Protocols::Protocol::LocalLabel::Conflicts::Conflict::get_segment_path() const
{
std::ostringstream path_buffer;
path_buffer << "conflict";
path_buffer << "[" << get_ylist_key() << "]";
return path_buffer.str();
}
std::vector<std::pair<std::string, LeafData> > Fib::Nodes::Node::Protocols::Protocol::LocalLabel::Conflicts::Conflict::get_name_leaf_data() const
{
std::vector<std::pair<std::string, LeafData> > leaf_name_data {};
if (label.is_set || is_set(label.yfilter)) leaf_name_data.push_back(label.get_name_leafdata());
if (source.is_set || is_set(source.yfilter)) leaf_name_data.push_back(source.get_name_leafdata());
if (ll_ctype.is_set || is_set(ll_ctype.yfilter)) leaf_name_data.push_back(ll_ctype.get_name_leafdata());
if (pfx_tbl_id.is_set || is_set(pfx_tbl_id.yfilter)) leaf_name_data.push_back(pfx_tbl_id.get_name_leafdata());
if (prefix.is_set || is_set(prefix.yfilter)) leaf_name_data.push_back(prefix.get_name_leafdata());
if (prefix_len.is_set || is_set(prefix_len.yfilter)) leaf_name_data.push_back(prefix_len.get_name_leafdata());
if (local_label.is_set || is_set(local_label.yfilter)) leaf_name_data.push_back(local_label.get_name_leafdata());
if (source_xr.is_set || is_set(source_xr.yfilter)) leaf_name_data.push_back(source_xr.get_name_leafdata());
if (update_ts.is_set || is_set(update_ts.yfilter)) leaf_name_data.push_back(update_ts.get_name_leafdata());
if (retry_ts.is_set || is_set(retry_ts.yfilter)) leaf_name_data.push_back(retry_ts.get_name_leafdata());
if (num_retries.is_set || is_set(num_retries.yfilter)) leaf_name_data.push_back(num_retries.get_name_leafdata());
return leaf_name_data;
}
std::shared_ptr<ydk::Entity> Fib::Nodes::Node::Protocols::Protocol::LocalLabel::Conflicts::Conflict::get_child_by_name(const std::string & child_yang_name, const std::string & segment_path)
{
if(child_yang_name == "ext")
{
if(ext == nullptr)
{
ext = std::make_shared<Fib::Nodes::Node::Protocols::Protocol::LocalLabel::Conflicts::Conflict::Ext>();
}
return ext;
}
return nullptr;
}
std::map<std::string, std::shared_ptr<ydk::Entity>> Fib::Nodes::Node::Protocols::Protocol::LocalLabel::Conflicts::Conflict::get_children() const
{
std::map<std::string, std::shared_ptr<ydk::Entity>> _children{};
char count_=0;
if(ext != nullptr)
{
_children["ext"] = ext;
}
return _children;
}
void Fib::Nodes::Node::Protocols::Protocol::LocalLabel::Conflicts::Conflict::set_value(const std::string & value_path, const std::string & value, const std::string & name_space, const std::string & name_space_prefix)
{
if(value_path == "label")
{
label = value;
label.value_namespace = name_space;
label.value_namespace_prefix = name_space_prefix;
}
if(value_path == "source")
{
source = value;
source.value_namespace = name_space;
source.value_namespace_prefix = name_space_prefix;
}
if(value_path == "ll-ctype")
{
ll_ctype = value;
ll_ctype.value_namespace = name_space;
ll_ctype.value_namespace_prefix = name_space_prefix;
}
if(value_path == "pfx-tbl-id")
{
pfx_tbl_id = value;
pfx_tbl_id.value_namespace = name_space;
pfx_tbl_id.value_namespace_prefix = name_space_prefix;
}
if(value_path == "prefix")
{
prefix = value;
prefix.value_namespace = name_space;
prefix.value_namespace_prefix = name_space_prefix;
}
if(value_path == "prefix-len")
{
prefix_len = value;
prefix_len.value_namespace = name_space;
prefix_len.value_namespace_prefix = name_space_prefix;
}
if(value_path == "local-label")
{
local_label = value;
local_label.value_namespace = name_space;
local_label.value_namespace_prefix = name_space_prefix;
}
if(value_path == "source-xr")
{
source_xr = value;
source_xr.value_namespace = name_space;
source_xr.value_namespace_prefix = name_space_prefix;
}
if(value_path == "update-ts")
{
update_ts = value;
update_ts.value_namespace = name_space;
update_ts.value_namespace_prefix = name_space_prefix;
}
if(value_path == "retry-ts")
{
retry_ts = value;
retry_ts.value_namespace = name_space;
retry_ts.value_namespace_prefix = name_space_prefix;
}
if(value_path == "num-retries")
{
num_retries = value;
num_retries.value_namespace = name_space;
num_retries.value_namespace_prefix = name_space_prefix;
}
}
void Fib::Nodes::Node::Protocols::Protocol::LocalLabel::Conflicts::Conflict::set_filter(const std::string & value_path, YFilter yfilter)
{
if(value_path == "label")
{
label.yfilter = yfilter;
}
if(value_path == "source")
{
source.yfilter = yfilter;
}
if(value_path == "ll-ctype")
{
ll_ctype.yfilter = yfilter;
}
if(value_path == "pfx-tbl-id")
{
pfx_tbl_id.yfilter = yfilter;
}
if(value_path == "prefix")
{
prefix.yfilter = yfilter;
}
if(value_path == "prefix-len")
{
prefix_len.yfilter = yfilter;
}
if(value_path == "local-label")
{
local_label.yfilter = yfilter;
}
if(value_path == "source-xr")
{
source_xr.yfilter = yfilter;
}
if(value_path == "update-ts")
{
update_ts.yfilter = yfilter;
}
if(value_path == "retry-ts")
{
retry_ts.yfilter = yfilter;
}
if(value_path == "num-retries")
{
num_retries.yfilter = yfilter;
}
}
bool Fib::Nodes::Node::Protocols::Protocol::LocalLabel::Conflicts::Conflict::has_leaf_or_child_of_name(const std::string & name) const
{
if(name == "ext" || name == "label" || name == "source" || name == "ll-ctype" || name == "pfx-tbl-id" || name == "prefix" || name == "prefix-len" || name == "local-label" || name == "source-xr" || name == "update-ts" || name == "retry-ts" || name == "num-retries")
return true;
return false;
}
Fib::Nodes::Node::Protocols::Protocol::LocalLabel::Conflicts::Conflict::Ext::Ext()
:
type{YType::enumeration, "type"}
,
pfx(std::make_shared<Fib::Nodes::Node::Protocols::Protocol::LocalLabel::Conflicts::Conflict::Ext::Pfx>())
, lsm(std::make_shared<Fib::Nodes::Node::Protocols::Protocol::LocalLabel::Conflicts::Conflict::Ext::Lsm>())
{
pfx->parent = this;
lsm->parent = this;
yang_name = "ext"; yang_parent_name = "conflict"; is_top_level_class = false; has_list_ancestor = true;
}
Fib::Nodes::Node::Protocols::Protocol::LocalLabel::Conflicts::Conflict::Ext::~Ext()
{
}
bool Fib::Nodes::Node::Protocols::Protocol::LocalLabel::Conflicts::Conflict::Ext::has_data() const
{
if (is_presence_container) return true;
return type.is_set
|| (pfx != nullptr && pfx->has_data())
|| (lsm != nullptr && lsm->has_data());
}
bool Fib::Nodes::Node::Protocols::Protocol::LocalLabel::Conflicts::Conflict::Ext::has_operation() const
{
return is_set(yfilter)
|| ydk::is_set(type.yfilter)
|| (pfx != nullptr && pfx->has_operation())
|| (lsm != nullptr && lsm->has_operation());
}
std::string Fib::Nodes::Node::Protocols::Protocol::LocalLabel::Conflicts::Conflict::Ext::get_segment_path() const
{
std::ostringstream path_buffer;
path_buffer << "ext";
return path_buffer.str();
}
std::vector<std::pair<std::string, LeafData> > Fib::Nodes::Node::Protocols::Protocol::LocalLabel::Conflicts::Conflict::Ext::get_name_leaf_data() const
{
std::vector<std::pair<std::string, LeafData> > leaf_name_data {};
if (type.is_set || is_set(type.yfilter)) leaf_name_data.push_back(type.get_name_leafdata());
return leaf_name_data;
}
std::shared_ptr<ydk::Entity> Fib::Nodes::Node::Protocols::Protocol::LocalLabel::Conflicts::Conflict::Ext::get_child_by_name(const std::string & child_yang_name, const std::string & segment_path)
{
if(child_yang_name == "pfx")
{
if(pfx == nullptr)
{
pfx = std::make_shared<Fib::Nodes::Node::Protocols::Protocol::LocalLabel::Conflicts::Conflict::Ext::Pfx>();
}
return pfx;
}
if(child_yang_name == "lsm")
{
if(lsm == nullptr)
{
lsm = std::make_shared<Fib::Nodes::Node::Protocols::Protocol::LocalLabel::Conflicts::Conflict::Ext::Lsm>();
}
return lsm;
}
return nullptr;
}
std::map<std::string, std::shared_ptr<ydk::Entity>> Fib::Nodes::Node::Protocols::Protocol::LocalLabel::Conflicts::Conflict::Ext::get_children() const
{
std::map<std::string, std::shared_ptr<ydk::Entity>> _children{};
char count_=0;
if(pfx != nullptr)
{
_children["pfx"] = pfx;
}
if(lsm != nullptr)
{
_children["lsm"] = lsm;
}
return _children;
}
void Fib::Nodes::Node::Protocols::Protocol::LocalLabel::Conflicts::Conflict::Ext::set_value(const std::string & value_path, const std::string & value, const std::string & name_space, const std::string & name_space_prefix)
{
if(value_path == "type")
{
type = value;
type.value_namespace = name_space;
type.value_namespace_prefix = name_space_prefix;
}
}
void Fib::Nodes::Node::Protocols::Protocol::LocalLabel::Conflicts::Conflict::Ext::set_filter(const std::string & value_path, YFilter yfilter)
{
if(value_path == "type")
{
type.yfilter = yfilter;
}
}
bool Fib::Nodes::Node::Protocols::Protocol::LocalLabel::Conflicts::Conflict::Ext::has_leaf_or_child_of_name(const std::string & name) const
{
if(name == "pfx" || name == "lsm" || name == "type")
return true;
return false;
}
Fib::Nodes::Node::Protocols::Protocol::LocalLabel::Conflicts::Conflict::Ext::Pfx::Pfx()
:
pfx{YType::str, "pfx"},
tbl_id{YType::uint32, "tbl-id"}
{
yang_name = "pfx"; yang_parent_name = "ext"; is_top_level_class = false; has_list_ancestor = true;
}
Fib::Nodes::Node::Protocols::Protocol::LocalLabel::Conflicts::Conflict::Ext::Pfx::~Pfx()
{
}
bool Fib::Nodes::Node::Protocols::Protocol::LocalLabel::Conflicts::Conflict::Ext::Pfx::has_data() const
{
if (is_presence_container) return true;
return pfx.is_set
|| tbl_id.is_set;
}
bool Fib::Nodes::Node::Protocols::Protocol::LocalLabel::Conflicts::Conflict::Ext::Pfx::has_operation() const
{
return is_set(yfilter)
|| ydk::is_set(pfx.yfilter)
|| ydk::is_set(tbl_id.yfilter);
}
std::string Fib::Nodes::Node::Protocols::Protocol::LocalLabel::Conflicts::Conflict::Ext::Pfx::get_segment_path() const
{
std::ostringstream path_buffer;
path_buffer << "pfx";
return path_buffer.str();
}
std::vector<std::pair<std::string, LeafData> > Fib::Nodes::Node::Protocols::Protocol::LocalLabel::Conflicts::Conflict::Ext::Pfx::get_name_leaf_data() const
{
std::vector<std::pair<std::string, LeafData> > leaf_name_data {};
if (pfx.is_set || is_set(pfx.yfilter)) leaf_name_data.push_back(pfx.get_name_leafdata());
if (tbl_id.is_set || is_set(tbl_id.yfilter)) leaf_name_data.push_back(tbl_id.get_name_leafdata());
return leaf_name_data;
}
std::shared_ptr<ydk::Entity> Fib::Nodes::Node::Protocols::Protocol::LocalLabel::Conflicts::Conflict::Ext::Pfx::get_child_by_name(const std::string & child_yang_name, const std::string & segment_path)
{
return nullptr;
}
std::map<std::string, std::shared_ptr<ydk::Entity>> Fib::Nodes::Node::Protocols::Protocol::LocalLabel::Conflicts::Conflict::Ext::Pfx::get_children() const
{
std::map<std::string, std::shared_ptr<ydk::Entity>> _children{};
char count_=0;
return _children;
}
void Fib::Nodes::Node::Protocols::Protocol::LocalLabel::Conflicts::Conflict::Ext::Pfx::set_value(const std::string & value_path, const std::string & value, const std::string & name_space, const std::string & name_space_prefix)
{
if(value_path == "pfx")
{
pfx = value;
pfx.value_namespace = name_space;
pfx.value_namespace_prefix = name_space_prefix;
}
if(value_path == "tbl-id")
{
tbl_id = value;
tbl_id.value_namespace = name_space;
tbl_id.value_namespace_prefix = name_space_prefix;
}
}
void Fib::Nodes::Node::Protocols::Protocol::LocalLabel::Conflicts::Conflict::Ext::Pfx::set_filter(const std::string & value_path, YFilter yfilter)
{
if(value_path == "pfx")
{
pfx.yfilter = yfilter;
}
if(value_path == "tbl-id")
{
tbl_id.yfilter = yfilter;
}
}
bool Fib::Nodes::Node::Protocols::Protocol::LocalLabel::Conflicts::Conflict::Ext::Pfx::has_leaf_or_child_of_name(const std::string & name) const
{
if(name == "pfx" || name == "tbl-id")
return true;
return false;
}
Fib::Nodes::Node::Protocols::Protocol::LocalLabel::Conflicts::Conflict::Ext::Lsm::Lsm()
:
nh{YType::str, "nh"},
mcast_id{YType::uint32, "mcast-id"}
{
yang_name = "lsm"; yang_parent_name = "ext"; is_top_level_class = false; has_list_ancestor = true;
}
Fib::Nodes::Node::Protocols::Protocol::LocalLabel::Conflicts::Conflict::Ext::Lsm::~Lsm()
{
}
bool Fib::Nodes::Node::Protocols::Protocol::LocalLabel::Conflicts::Conflict::Ext::Lsm::has_data() const
{
if (is_presence_container) return true;
return nh.is_set
|| mcast_id.is_set;
}
bool Fib::Nodes::Node::Protocols::Protocol::LocalLabel::Conflicts::Conflict::Ext::Lsm::has_operation() const
{
return is_set(yfilter)
|| ydk::is_set(nh.yfilter)
|| ydk::is_set(mcast_id.yfilter);
}
std::string Fib::Nodes::Node::Protocols::Protocol::LocalLabel::Conflicts::Conflict::Ext::Lsm::get_segment_path() const
{
std::ostringstream path_buffer;
path_buffer << "lsm";
return path_buffer.str();
}
std::vector<std::pair<std::string, LeafData> > Fib::Nodes::Node::Protocols::Protocol::LocalLabel::Conflicts::Conflict::Ext::Lsm::get_name_leaf_data() const
{
std::vector<std::pair<std::string, LeafData> > leaf_name_data {};
if (nh.is_set || is_set(nh.yfilter)) leaf_name_data.push_back(nh.get_name_leafdata());
if (mcast_id.is_set || is_set(mcast_id.yfilter)) leaf_name_data.push_back(mcast_id.get_name_leafdata());
return leaf_name_data;
}
std::shared_ptr<ydk::Entity> Fib::Nodes::Node::Protocols::Protocol::LocalLabel::Conflicts::Conflict::Ext::Lsm::get_child_by_name(const std::string & child_yang_name, const std::string & segment_path)
{
return nullptr;
}
std::map<std::string, std::shared_ptr<ydk::Entity>> Fib::Nodes::Node::Protocols::Protocol::LocalLabel::Conflicts::Conflict::Ext::Lsm::get_children() const
{
std::map<std::string, std::shared_ptr<ydk::Entity>> _children{};
char count_=0;
return _children;
}
void Fib::Nodes::Node::Protocols::Protocol::LocalLabel::Conflicts::Conflict::Ext::Lsm::set_value(const std::string & value_path, const std::string & value, const std::string & name_space, const std::string & name_space_prefix)
{
if(value_path == "nh")
{
nh = value;
nh.value_namespace = name_space;
nh.value_namespace_prefix = name_space_prefix;
}
if(value_path == "mcast-id")
{
mcast_id = value;
mcast_id.value_namespace = name_space;
mcast_id.value_namespace_prefix = name_space_prefix;
}
}
void Fib::Nodes::Node::Protocols::Protocol::LocalLabel::Conflicts::Conflict::Ext::Lsm::set_filter(const std::string & value_path, YFilter yfilter)
{
if(value_path == "nh")
{
nh.yfilter = yfilter;
}
if(value_path == "mcast-id")
{
mcast_id.yfilter = yfilter;
}
}
bool Fib::Nodes::Node::Protocols::Protocol::LocalLabel::Conflicts::Conflict::Ext::Lsm::has_leaf_or_child_of_name(const std::string & name) const
{
if(name == "nh" || name == "mcast-id")
return true;
return false;
}
OcAftL3::OcAftL3()
:
vrfs(std::make_shared<OcAftL3::Vrfs>())
{
vrfs->parent = this;
yang_name = "oc-aft-l3"; yang_parent_name = "Cisco-IOS-XR-fib-common-oper"; is_top_level_class = true; has_list_ancestor = false;
}
OcAftL3::~OcAftL3()
{
}
bool OcAftL3::has_data() const
{
if (is_presence_container) return true;
return (vrfs != nullptr && vrfs->has_data());
}
bool OcAftL3::has_operation() const
{
return is_set(yfilter)
|| (vrfs != nullptr && vrfs->has_operation());
}
std::string OcAftL3::get_segment_path() const
{
std::ostringstream path_buffer;
path_buffer << "Cisco-IOS-XR-fib-common-oper:oc-aft-l3";
return path_buffer.str();
}
std::vector<std::pair<std::string, LeafData> > OcAftL3::get_name_leaf_data() const
{
std::vector<std::pair<std::string, LeafData> > leaf_name_data {};
return leaf_name_data;
}
std::shared_ptr<ydk::Entity> OcAftL3::get_child_by_name(const std::string & child_yang_name, const std::string & segment_path)
{
if(child_yang_name == "vrfs")
{
if(vrfs == nullptr)
{
vrfs = std::make_shared<OcAftL3::Vrfs>();
}
return vrfs;
}
return nullptr;
}
std::map<std::string, std::shared_ptr<ydk::Entity>> OcAftL3::get_children() const
{
std::map<std::string, std::shared_ptr<ydk::Entity>> _children{};
char count_=0;
if(vrfs != nullptr)
{
_children["vrfs"] = vrfs;
}
return _children;
}
void OcAftL3::set_value(const std::string & value_path, const std::string & value, const std::string & name_space, const std::string & name_space_prefix)
{
}
void OcAftL3::set_filter(const std::string & value_path, YFilter yfilter)
{
}
std::shared_ptr<ydk::Entity> OcAftL3::clone_ptr() const
{
return std::make_shared<OcAftL3>();
}
std::string OcAftL3::get_bundle_yang_models_location() const
{
return ydk_cisco_ios_xr_models_path;
}
std::string OcAftL3::get_bundle_name() const
{
return "cisco_ios_xr";
}
augment_capabilities_function OcAftL3::get_augment_capabilities_function() const
{
return cisco_ios_xr_augment_lookup_tables;
}
std::map<std::pair<std::string, std::string>, std::string> OcAftL3::get_namespace_identity_lookup() const
{
return cisco_ios_xr_namespace_identity_lookup;
}
bool OcAftL3::has_leaf_or_child_of_name(const std::string & name) const
{
if(name == "vrfs")
return true;
return false;
}
OcAftL3::Vrfs::Vrfs()
:
vrf(this, {"vrf_name"})
{
yang_name = "vrfs"; yang_parent_name = "oc-aft-l3"; is_top_level_class = false; has_list_ancestor = false;
}
OcAftL3::Vrfs::~Vrfs()
{
}
bool OcAftL3::Vrfs::has_data() const
{
if (is_presence_container) return true;
for (std::size_t index=0; index<vrf.len(); index++)
{
if(vrf[index]->has_data())
return true;
}
return false;
}
bool OcAftL3::Vrfs::has_operation() const
{
for (std::size_t index=0; index<vrf.len(); index++)
{
if(vrf[index]->has_operation())
return true;
}
return is_set(yfilter);
}
std::string OcAftL3::Vrfs::get_absolute_path() const
{
std::ostringstream path_buffer;
path_buffer << "Cisco-IOS-XR-fib-common-oper:oc-aft-l3/" << get_segment_path();
return path_buffer.str();
}
std::string OcAftL3::Vrfs::get_segment_path() const
{
std::ostringstream path_buffer;
path_buffer << "vrfs";
return path_buffer.str();
}
std::vector<std::pair<std::string, LeafData> > OcAftL3::Vrfs::get_name_leaf_data() const
{
std::vector<std::pair<std::string, LeafData> > leaf_name_data {};
return leaf_name_data;
}
std::shared_ptr<ydk::Entity> OcAftL3::Vrfs::get_child_by_name(const std::string & child_yang_name, const std::string & segment_path)
{
if(child_yang_name == "vrf")
{
auto ent_ = std::make_shared<OcAftL3::Vrfs::Vrf>();
ent_->parent = this;
vrf.append(ent_);
return ent_;
}
return nullptr;
}
std::map<std::string, std::shared_ptr<ydk::Entity>> OcAftL3::Vrfs::get_children() const
{
std::map<std::string, std::shared_ptr<ydk::Entity>> _children{};
char count_=0;
count_ = 0;
for (auto ent_ : vrf.entities())
{
if(_children.find(ent_->get_segment_path()) == _children.end())
_children[ent_->get_segment_path()] = ent_;
else
_children[ent_->get_segment_path()+count_++] = ent_;
}
return _children;
}
void OcAftL3::Vrfs::set_value(const std::string & value_path, const std::string & value, const std::string & name_space, const std::string & name_space_prefix)
{
}
void OcAftL3::Vrfs::set_filter(const std::string & value_path, YFilter yfilter)
{
}
bool OcAftL3::Vrfs::has_leaf_or_child_of_name(const std::string & name) const
{
if(name == "vrf")
return true;
return false;
}
OcAftL3::Vrfs::Vrf::Vrf()
:
vrf_name{YType::str, "vrf-name"}
,
abstract_forwarding_tables(std::make_shared<OcAftL3::Vrfs::Vrf::AbstractForwardingTables>())
{
abstract_forwarding_tables->parent = this;
yang_name = "vrf"; yang_parent_name = "vrfs"; is_top_level_class = false; has_list_ancestor = false;
}
OcAftL3::Vrfs::Vrf::~Vrf()
{
}
bool OcAftL3::Vrfs::Vrf::has_data() const
{
if (is_presence_container) return true;
return vrf_name.is_set
|| (abstract_forwarding_tables != nullptr && abstract_forwarding_tables->has_data());
}
bool OcAftL3::Vrfs::Vrf::has_operation() const
{
return is_set(yfilter)
|| ydk::is_set(vrf_name.yfilter)
|| (abstract_forwarding_tables != nullptr && abstract_forwarding_tables->has_operation());
}
std::string OcAftL3::Vrfs::Vrf::get_absolute_path() const
{
std::ostringstream path_buffer;
path_buffer << "Cisco-IOS-XR-fib-common-oper:oc-aft-l3/vrfs/" << get_segment_path();
return path_buffer.str();
}
std::string OcAftL3::Vrfs::Vrf::get_segment_path() const
{
std::ostringstream path_buffer;
path_buffer << "vrf";
ADD_KEY_TOKEN(vrf_name, "vrf-name");
return path_buffer.str();
}
std::vector<std::pair<std::string, LeafData> > OcAftL3::Vrfs::Vrf::get_name_leaf_data() const
{
std::vector<std::pair<std::string, LeafData> > leaf_name_data {};
if (vrf_name.is_set || is_set(vrf_name.yfilter)) leaf_name_data.push_back(vrf_name.get_name_leafdata());
return leaf_name_data;
}
std::shared_ptr<ydk::Entity> OcAftL3::Vrfs::Vrf::get_child_by_name(const std::string & child_yang_name, const std::string & segment_path)
{
if(child_yang_name == "abstract-forwarding-tables")
{
if(abstract_forwarding_tables == nullptr)
{
abstract_forwarding_tables = std::make_shared<OcAftL3::Vrfs::Vrf::AbstractForwardingTables>();
}
return abstract_forwarding_tables;
}
return nullptr;
}
std::map<std::string, std::shared_ptr<ydk::Entity>> OcAftL3::Vrfs::Vrf::get_children() const
{
std::map<std::string, std::shared_ptr<ydk::Entity>> _children{};
char count_=0;
if(abstract_forwarding_tables != nullptr)
{
_children["abstract-forwarding-tables"] = abstract_forwarding_tables;
}
return _children;
}
void OcAftL3::Vrfs::Vrf::set_value(const std::string & value_path, const std::string & value, const std::string & name_space, const std::string & name_space_prefix)
{
if(value_path == "vrf-name")
{
vrf_name = value;
vrf_name.value_namespace = name_space;
vrf_name.value_namespace_prefix = name_space_prefix;
}
}
void OcAftL3::Vrfs::Vrf::set_filter(const std::string & value_path, YFilter yfilter)
{
if(value_path == "vrf-name")
{
vrf_name.yfilter = yfilter;
}
}
bool OcAftL3::Vrfs::Vrf::has_leaf_or_child_of_name(const std::string & name) const
{
if(name == "abstract-forwarding-tables" || name == "vrf-name")
return true;
return false;
}
OcAftL3::Vrfs::Vrf::AbstractForwardingTables::AbstractForwardingTables()
:
mpls(std::make_shared<OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Mpls>())
, ipv6_unicast(std::make_shared<OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Ipv6Unicast>())
, ipv4_unicast(std::make_shared<OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Ipv4Unicast>())
{
mpls->parent = this;
ipv6_unicast->parent = this;
ipv4_unicast->parent = this;
yang_name = "abstract-forwarding-tables"; yang_parent_name = "vrf"; is_top_level_class = false; has_list_ancestor = true;
}
OcAftL3::Vrfs::Vrf::AbstractForwardingTables::~AbstractForwardingTables()
{
}
bool OcAftL3::Vrfs::Vrf::AbstractForwardingTables::has_data() const
{
if (is_presence_container) return true;
return (mpls != nullptr && mpls->has_data())
|| (ipv6_unicast != nullptr && ipv6_unicast->has_data())
|| (ipv4_unicast != nullptr && ipv4_unicast->has_data());
}
bool OcAftL3::Vrfs::Vrf::AbstractForwardingTables::has_operation() const
{
return is_set(yfilter)
|| (mpls != nullptr && mpls->has_operation())
|| (ipv6_unicast != nullptr && ipv6_unicast->has_operation())
|| (ipv4_unicast != nullptr && ipv4_unicast->has_operation());
}
std::string OcAftL3::Vrfs::Vrf::AbstractForwardingTables::get_segment_path() const
{
std::ostringstream path_buffer;
path_buffer << "abstract-forwarding-tables";
return path_buffer.str();
}
std::vector<std::pair<std::string, LeafData> > OcAftL3::Vrfs::Vrf::AbstractForwardingTables::get_name_leaf_data() const
{
std::vector<std::pair<std::string, LeafData> > leaf_name_data {};
return leaf_name_data;
}
std::shared_ptr<ydk::Entity> OcAftL3::Vrfs::Vrf::AbstractForwardingTables::get_child_by_name(const std::string & child_yang_name, const std::string & segment_path)
{
if(child_yang_name == "mpls")
{
if(mpls == nullptr)
{
mpls = std::make_shared<OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Mpls>();
}
return mpls;
}
if(child_yang_name == "ipv6-unicast")
{
if(ipv6_unicast == nullptr)
{
ipv6_unicast = std::make_shared<OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Ipv6Unicast>();
}
return ipv6_unicast;
}
if(child_yang_name == "ipv4-unicast")
{
if(ipv4_unicast == nullptr)
{
ipv4_unicast = std::make_shared<OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Ipv4Unicast>();
}
return ipv4_unicast;
}
return nullptr;
}
std::map<std::string, std::shared_ptr<ydk::Entity>> OcAftL3::Vrfs::Vrf::AbstractForwardingTables::get_children() const
{
std::map<std::string, std::shared_ptr<ydk::Entity>> _children{};
char count_=0;
if(mpls != nullptr)
{
_children["mpls"] = mpls;
}
if(ipv6_unicast != nullptr)
{
_children["ipv6-unicast"] = ipv6_unicast;
}
if(ipv4_unicast != nullptr)
{
_children["ipv4-unicast"] = ipv4_unicast;
}
return _children;
}
void OcAftL3::Vrfs::Vrf::AbstractForwardingTables::set_value(const std::string & value_path, const std::string & value, const std::string & name_space, const std::string & name_space_prefix)
{
}
void OcAftL3::Vrfs::Vrf::AbstractForwardingTables::set_filter(const std::string & value_path, YFilter yfilter)
{
}
bool OcAftL3::Vrfs::Vrf::AbstractForwardingTables::has_leaf_or_child_of_name(const std::string & name) const
{
if(name == "mpls" || name == "ipv6-unicast" || name == "ipv4-unicast")
return true;
return false;
}
OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Mpls::Mpls()
:
labels(std::make_shared<OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Mpls::Labels>())
{
labels->parent = this;
yang_name = "mpls"; yang_parent_name = "abstract-forwarding-tables"; is_top_level_class = false; has_list_ancestor = true;
}
OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Mpls::~Mpls()
{
}
bool OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Mpls::has_data() const
{
if (is_presence_container) return true;
return (labels != nullptr && labels->has_data());
}
bool OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Mpls::has_operation() const
{
return is_set(yfilter)
|| (labels != nullptr && labels->has_operation());
}
std::string OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Mpls::get_segment_path() const
{
std::ostringstream path_buffer;
path_buffer << "mpls";
return path_buffer.str();
}
std::vector<std::pair<std::string, LeafData> > OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Mpls::get_name_leaf_data() const
{
std::vector<std::pair<std::string, LeafData> > leaf_name_data {};
return leaf_name_data;
}
std::shared_ptr<ydk::Entity> OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Mpls::get_child_by_name(const std::string & child_yang_name, const std::string & segment_path)
{
if(child_yang_name == "labels")
{
if(labels == nullptr)
{
labels = std::make_shared<OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Mpls::Labels>();
}
return labels;
}
return nullptr;
}
std::map<std::string, std::shared_ptr<ydk::Entity>> OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Mpls::get_children() const
{
std::map<std::string, std::shared_ptr<ydk::Entity>> _children{};
char count_=0;
if(labels != nullptr)
{
_children["labels"] = labels;
}
return _children;
}
void OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Mpls::set_value(const std::string & value_path, const std::string & value, const std::string & name_space, const std::string & name_space_prefix)
{
}
void OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Mpls::set_filter(const std::string & value_path, YFilter yfilter)
{
}
bool OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Mpls::has_leaf_or_child_of_name(const std::string & name) const
{
if(name == "labels")
return true;
return false;
}
OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Mpls::Labels::Labels()
:
label(this, {"label"})
{
yang_name = "labels"; yang_parent_name = "mpls"; is_top_level_class = false; has_list_ancestor = true;
}
OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Mpls::Labels::~Labels()
{
}
bool OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Mpls::Labels::has_data() const
{
if (is_presence_container) return true;
for (std::size_t index=0; index<label.len(); index++)
{
if(label[index]->has_data())
return true;
}
return false;
}
bool OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Mpls::Labels::has_operation() const
{
for (std::size_t index=0; index<label.len(); index++)
{
if(label[index]->has_operation())
return true;
}
return is_set(yfilter);
}
std::string OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Mpls::Labels::get_segment_path() const
{
std::ostringstream path_buffer;
path_buffer << "labels";
return path_buffer.str();
}
std::vector<std::pair<std::string, LeafData> > OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Mpls::Labels::get_name_leaf_data() const
{
std::vector<std::pair<std::string, LeafData> > leaf_name_data {};
return leaf_name_data;
}
std::shared_ptr<ydk::Entity> OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Mpls::Labels::get_child_by_name(const std::string & child_yang_name, const std::string & segment_path)
{
if(child_yang_name == "label")
{
auto ent_ = std::make_shared<OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Mpls::Labels::Label>();
ent_->parent = this;
label.append(ent_);
return ent_;
}
return nullptr;
}
std::map<std::string, std::shared_ptr<ydk::Entity>> OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Mpls::Labels::get_children() const
{
std::map<std::string, std::shared_ptr<ydk::Entity>> _children{};
char count_=0;
count_ = 0;
for (auto ent_ : label.entities())
{
if(_children.find(ent_->get_segment_path()) == _children.end())
_children[ent_->get_segment_path()] = ent_;
else
_children[ent_->get_segment_path()+count_++] = ent_;
}
return _children;
}
void OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Mpls::Labels::set_value(const std::string & value_path, const std::string & value, const std::string & name_space, const std::string & name_space_prefix)
{
}
void OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Mpls::Labels::set_filter(const std::string & value_path, YFilter yfilter)
{
}
bool OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Mpls::Labels::has_leaf_or_child_of_name(const std::string & name) const
{
if(name == "label")
return true;
return false;
}
OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Mpls::Labels::Label::Label()
:
label{YType::str, "label"}
,
next_hops(std::make_shared<OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Mpls::Labels::Label::NextHops>())
, state(std::make_shared<OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Mpls::Labels::Label::State>())
{
next_hops->parent = this;
state->parent = this;
yang_name = "label"; yang_parent_name = "labels"; is_top_level_class = false; has_list_ancestor = true;
}
OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Mpls::Labels::Label::~Label()
{
}
bool OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Mpls::Labels::Label::has_data() const
{
if (is_presence_container) return true;
return label.is_set
|| (next_hops != nullptr && next_hops->has_data())
|| (state != nullptr && state->has_data());
}
bool OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Mpls::Labels::Label::has_operation() const
{
return is_set(yfilter)
|| ydk::is_set(label.yfilter)
|| (next_hops != nullptr && next_hops->has_operation())
|| (state != nullptr && state->has_operation());
}
std::string OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Mpls::Labels::Label::get_segment_path() const
{
std::ostringstream path_buffer;
path_buffer << "label";
ADD_KEY_TOKEN(label, "label");
return path_buffer.str();
}
std::vector<std::pair<std::string, LeafData> > OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Mpls::Labels::Label::get_name_leaf_data() const
{
std::vector<std::pair<std::string, LeafData> > leaf_name_data {};
if (label.is_set || is_set(label.yfilter)) leaf_name_data.push_back(label.get_name_leafdata());
return leaf_name_data;
}
std::shared_ptr<ydk::Entity> OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Mpls::Labels::Label::get_child_by_name(const std::string & child_yang_name, const std::string & segment_path)
{
if(child_yang_name == "next-hops")
{
if(next_hops == nullptr)
{
next_hops = std::make_shared<OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Mpls::Labels::Label::NextHops>();
}
return next_hops;
}
if(child_yang_name == "state")
{
if(state == nullptr)
{
state = std::make_shared<OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Mpls::Labels::Label::State>();
}
return state;
}
return nullptr;
}
std::map<std::string, std::shared_ptr<ydk::Entity>> OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Mpls::Labels::Label::get_children() const
{
std::map<std::string, std::shared_ptr<ydk::Entity>> _children{};
char count_=0;
if(next_hops != nullptr)
{
_children["next-hops"] = next_hops;
}
if(state != nullptr)
{
_children["state"] = state;
}
return _children;
}
void OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Mpls::Labels::Label::set_value(const std::string & value_path, const std::string & value, const std::string & name_space, const std::string & name_space_prefix)
{
if(value_path == "label")
{
label = value;
label.value_namespace = name_space;
label.value_namespace_prefix = name_space_prefix;
}
}
void OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Mpls::Labels::Label::set_filter(const std::string & value_path, YFilter yfilter)
{
if(value_path == "label")
{
label.yfilter = yfilter;
}
}
bool OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Mpls::Labels::Label::has_leaf_or_child_of_name(const std::string & name) const
{
if(name == "next-hops" || name == "state" || name == "label")
return true;
return false;
}
OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Mpls::Labels::Label::NextHops::NextHops()
:
next_hop(this, {"index_"})
{
yang_name = "next-hops"; yang_parent_name = "label"; is_top_level_class = false; has_list_ancestor = true;
}
OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Mpls::Labels::Label::NextHops::~NextHops()
{
}
bool OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Mpls::Labels::Label::NextHops::has_data() const
{
if (is_presence_container) return true;
for (std::size_t index=0; index<next_hop.len(); index++)
{
if(next_hop[index]->has_data())
return true;
}
return false;
}
bool OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Mpls::Labels::Label::NextHops::has_operation() const
{
for (std::size_t index=0; index<next_hop.len(); index++)
{
if(next_hop[index]->has_operation())
return true;
}
return is_set(yfilter);
}
std::string OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Mpls::Labels::Label::NextHops::get_segment_path() const
{
std::ostringstream path_buffer;
path_buffer << "next-hops";
return path_buffer.str();
}
std::vector<std::pair<std::string, LeafData> > OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Mpls::Labels::Label::NextHops::get_name_leaf_data() const
{
std::vector<std::pair<std::string, LeafData> > leaf_name_data {};
return leaf_name_data;
}
std::shared_ptr<ydk::Entity> OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Mpls::Labels::Label::NextHops::get_child_by_name(const std::string & child_yang_name, const std::string & segment_path)
{
if(child_yang_name == "next-hop")
{
auto ent_ = std::make_shared<OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Mpls::Labels::Label::NextHops::NextHop>();
ent_->parent = this;
next_hop.append(ent_);
return ent_;
}
return nullptr;
}
std::map<std::string, std::shared_ptr<ydk::Entity>> OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Mpls::Labels::Label::NextHops::get_children() const
{
std::map<std::string, std::shared_ptr<ydk::Entity>> _children{};
char count_=0;
count_ = 0;
for (auto ent_ : next_hop.entities())
{
if(_children.find(ent_->get_segment_path()) == _children.end())
_children[ent_->get_segment_path()] = ent_;
else
_children[ent_->get_segment_path()+count_++] = ent_;
}
return _children;
}
void OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Mpls::Labels::Label::NextHops::set_value(const std::string & value_path, const std::string & value, const std::string & name_space, const std::string & name_space_prefix)
{
}
void OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Mpls::Labels::Label::NextHops::set_filter(const std::string & value_path, YFilter yfilter)
{
}
bool OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Mpls::Labels::Label::NextHops::has_leaf_or_child_of_name(const std::string & name) const
{
if(name == "next-hop")
return true;
return false;
}
OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Mpls::Labels::Label::NextHops::NextHop::NextHop()
:
index_{YType::uint32, "index"}
,
state(std::make_shared<OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Mpls::Labels::Label::NextHops::NextHop::State>())
, interface_ref(std::make_shared<OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Mpls::Labels::Label::NextHops::NextHop::InterfaceRef>())
{
state->parent = this;
interface_ref->parent = this;
yang_name = "next-hop"; yang_parent_name = "next-hops"; is_top_level_class = false; has_list_ancestor = true;
}
OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Mpls::Labels::Label::NextHops::NextHop::~NextHop()
{
}
bool OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Mpls::Labels::Label::NextHops::NextHop::has_data() const
{
if (is_presence_container) return true;
return index_.is_set
|| (state != nullptr && state->has_data())
|| (interface_ref != nullptr && interface_ref->has_data());
}
bool OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Mpls::Labels::Label::NextHops::NextHop::has_operation() const
{
return is_set(yfilter)
|| ydk::is_set(index_.yfilter)
|| (state != nullptr && state->has_operation())
|| (interface_ref != nullptr && interface_ref->has_operation());
}
std::string OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Mpls::Labels::Label::NextHops::NextHop::get_segment_path() const
{
std::ostringstream path_buffer;
path_buffer << "next-hop";
ADD_KEY_TOKEN(index_, "index");
return path_buffer.str();
}
std::vector<std::pair<std::string, LeafData> > OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Mpls::Labels::Label::NextHops::NextHop::get_name_leaf_data() const
{
std::vector<std::pair<std::string, LeafData> > leaf_name_data {};
if (index_.is_set || is_set(index_.yfilter)) leaf_name_data.push_back(index_.get_name_leafdata());
return leaf_name_data;
}
std::shared_ptr<ydk::Entity> OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Mpls::Labels::Label::NextHops::NextHop::get_child_by_name(const std::string & child_yang_name, const std::string & segment_path)
{
if(child_yang_name == "state")
{
if(state == nullptr)
{
state = std::make_shared<OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Mpls::Labels::Label::NextHops::NextHop::State>();
}
return state;
}
if(child_yang_name == "interface-ref")
{
if(interface_ref == nullptr)
{
interface_ref = std::make_shared<OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Mpls::Labels::Label::NextHops::NextHop::InterfaceRef>();
}
return interface_ref;
}
return nullptr;
}
std::map<std::string, std::shared_ptr<ydk::Entity>> OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Mpls::Labels::Label::NextHops::NextHop::get_children() const
{
std::map<std::string, std::shared_ptr<ydk::Entity>> _children{};
char count_=0;
if(state != nullptr)
{
_children["state"] = state;
}
if(interface_ref != nullptr)
{
_children["interface-ref"] = interface_ref;
}
return _children;
}
void OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Mpls::Labels::Label::NextHops::NextHop::set_value(const std::string & value_path, const std::string & value, const std::string & name_space, const std::string & name_space_prefix)
{
if(value_path == "index")
{
index_ = value;
index_.value_namespace = name_space;
index_.value_namespace_prefix = name_space_prefix;
}
}
void OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Mpls::Labels::Label::NextHops::NextHop::set_filter(const std::string & value_path, YFilter yfilter)
{
if(value_path == "index")
{
index_.yfilter = yfilter;
}
}
bool OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Mpls::Labels::Label::NextHops::NextHop::has_leaf_or_child_of_name(const std::string & name) const
{
if(name == "state" || name == "interface-ref" || name == "index")
return true;
return false;
}
OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Mpls::Labels::Label::NextHops::NextHop::State::State()
:
index_{YType::uint64, "index"},
weight{YType::uint32, "weight"},
ip_address{YType::str, "ip-address"},
network_instance{YType::str, "network-instance"},
popped_mpls_label_stack{YType::str, "popped-mpls-label-stack"},
pushed_mpls_label_stack{YType::str, "pushed-mpls-label-stack"}
{
yang_name = "state"; yang_parent_name = "next-hop"; is_top_level_class = false; has_list_ancestor = true;
}
OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Mpls::Labels::Label::NextHops::NextHop::State::~State()
{
}
bool OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Mpls::Labels::Label::NextHops::NextHop::State::has_data() const
{
if (is_presence_container) return true;
for (auto const & leaf : popped_mpls_label_stack.getYLeafs())
{
if(leaf.is_set)
return true;
}
for (auto const & leaf : pushed_mpls_label_stack.getYLeafs())
{
if(leaf.is_set)
return true;
}
return index_.is_set
|| weight.is_set
|| ip_address.is_set
|| network_instance.is_set;
}
bool OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Mpls::Labels::Label::NextHops::NextHop::State::has_operation() const
{
for (auto const & leaf : popped_mpls_label_stack.getYLeafs())
{
if(is_set(leaf.yfilter))
return true;
}
for (auto const & leaf : pushed_mpls_label_stack.getYLeafs())
{
if(is_set(leaf.yfilter))
return true;
}
return is_set(yfilter)
|| ydk::is_set(index_.yfilter)
|| ydk::is_set(weight.yfilter)
|| ydk::is_set(ip_address.yfilter)
|| ydk::is_set(network_instance.yfilter)
|| ydk::is_set(popped_mpls_label_stack.yfilter)
|| ydk::is_set(pushed_mpls_label_stack.yfilter);
}
std::string OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Mpls::Labels::Label::NextHops::NextHop::State::get_segment_path() const
{
std::ostringstream path_buffer;
path_buffer << "state";
return path_buffer.str();
}
std::vector<std::pair<std::string, LeafData> > OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Mpls::Labels::Label::NextHops::NextHop::State::get_name_leaf_data() const
{
std::vector<std::pair<std::string, LeafData> > leaf_name_data {};
if (index_.is_set || is_set(index_.yfilter)) leaf_name_data.push_back(index_.get_name_leafdata());
if (weight.is_set || is_set(weight.yfilter)) leaf_name_data.push_back(weight.get_name_leafdata());
if (ip_address.is_set || is_set(ip_address.yfilter)) leaf_name_data.push_back(ip_address.get_name_leafdata());
if (network_instance.is_set || is_set(network_instance.yfilter)) leaf_name_data.push_back(network_instance.get_name_leafdata());
auto popped_mpls_label_stack_name_datas = popped_mpls_label_stack.get_name_leafdata();
leaf_name_data.insert(leaf_name_data.end(), popped_mpls_label_stack_name_datas.begin(), popped_mpls_label_stack_name_datas.end());
auto pushed_mpls_label_stack_name_datas = pushed_mpls_label_stack.get_name_leafdata();
leaf_name_data.insert(leaf_name_data.end(), pushed_mpls_label_stack_name_datas.begin(), pushed_mpls_label_stack_name_datas.end());
return leaf_name_data;
}
std::shared_ptr<ydk::Entity> OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Mpls::Labels::Label::NextHops::NextHop::State::get_child_by_name(const std::string & child_yang_name, const std::string & segment_path)
{
return nullptr;
}
std::map<std::string, std::shared_ptr<ydk::Entity>> OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Mpls::Labels::Label::NextHops::NextHop::State::get_children() const
{
std::map<std::string, std::shared_ptr<ydk::Entity>> _children{};
char count_=0;
return _children;
}
void OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Mpls::Labels::Label::NextHops::NextHop::State::set_value(const std::string & value_path, const std::string & value, const std::string & name_space, const std::string & name_space_prefix)
{
if(value_path == "index")
{
index_ = value;
index_.value_namespace = name_space;
index_.value_namespace_prefix = name_space_prefix;
}
if(value_path == "weight")
{
weight = value;
weight.value_namespace = name_space;
weight.value_namespace_prefix = name_space_prefix;
}
if(value_path == "ip-address")
{
ip_address = value;
ip_address.value_namespace = name_space;
ip_address.value_namespace_prefix = name_space_prefix;
}
if(value_path == "network-instance")
{
network_instance = value;
network_instance.value_namespace = name_space;
network_instance.value_namespace_prefix = name_space_prefix;
}
if(value_path == "popped-mpls-label-stack")
{
popped_mpls_label_stack.append(value);
}
if(value_path == "pushed-mpls-label-stack")
{
pushed_mpls_label_stack.append(value);
}
}
void OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Mpls::Labels::Label::NextHops::NextHop::State::set_filter(const std::string & value_path, YFilter yfilter)
{
if(value_path == "index")
{
index_.yfilter = yfilter;
}
if(value_path == "weight")
{
weight.yfilter = yfilter;
}
if(value_path == "ip-address")
{
ip_address.yfilter = yfilter;
}
if(value_path == "network-instance")
{
network_instance.yfilter = yfilter;
}
if(value_path == "popped-mpls-label-stack")
{
popped_mpls_label_stack.yfilter = yfilter;
}
if(value_path == "pushed-mpls-label-stack")
{
pushed_mpls_label_stack.yfilter = yfilter;
}
}
bool OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Mpls::Labels::Label::NextHops::NextHop::State::has_leaf_or_child_of_name(const std::string & name) const
{
if(name == "index" || name == "weight" || name == "ip-address" || name == "network-instance" || name == "popped-mpls-label-stack" || name == "pushed-mpls-label-stack")
return true;
return false;
}
OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Mpls::Labels::Label::NextHops::NextHop::InterfaceRef::InterfaceRef()
:
state(std::make_shared<OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Mpls::Labels::Label::NextHops::NextHop::InterfaceRef::State>())
{
state->parent = this;
yang_name = "interface-ref"; yang_parent_name = "next-hop"; is_top_level_class = false; has_list_ancestor = true;
}
OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Mpls::Labels::Label::NextHops::NextHop::InterfaceRef::~InterfaceRef()
{
}
bool OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Mpls::Labels::Label::NextHops::NextHop::InterfaceRef::has_data() const
{
if (is_presence_container) return true;
return (state != nullptr && state->has_data());
}
bool OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Mpls::Labels::Label::NextHops::NextHop::InterfaceRef::has_operation() const
{
return is_set(yfilter)
|| (state != nullptr && state->has_operation());
}
std::string OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Mpls::Labels::Label::NextHops::NextHop::InterfaceRef::get_segment_path() const
{
std::ostringstream path_buffer;
path_buffer << "interface-ref";
return path_buffer.str();
}
std::vector<std::pair<std::string, LeafData> > OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Mpls::Labels::Label::NextHops::NextHop::InterfaceRef::get_name_leaf_data() const
{
std::vector<std::pair<std::string, LeafData> > leaf_name_data {};
return leaf_name_data;
}
std::shared_ptr<ydk::Entity> OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Mpls::Labels::Label::NextHops::NextHop::InterfaceRef::get_child_by_name(const std::string & child_yang_name, const std::string & segment_path)
{
if(child_yang_name == "state")
{
if(state == nullptr)
{
state = std::make_shared<OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Mpls::Labels::Label::NextHops::NextHop::InterfaceRef::State>();
}
return state;
}
return nullptr;
}
std::map<std::string, std::shared_ptr<ydk::Entity>> OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Mpls::Labels::Label::NextHops::NextHop::InterfaceRef::get_children() const
{
std::map<std::string, std::shared_ptr<ydk::Entity>> _children{};
char count_=0;
if(state != nullptr)
{
_children["state"] = state;
}
return _children;
}
void OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Mpls::Labels::Label::NextHops::NextHop::InterfaceRef::set_value(const std::string & value_path, const std::string & value, const std::string & name_space, const std::string & name_space_prefix)
{
}
void OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Mpls::Labels::Label::NextHops::NextHop::InterfaceRef::set_filter(const std::string & value_path, YFilter yfilter)
{
}
bool OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Mpls::Labels::Label::NextHops::NextHop::InterfaceRef::has_leaf_or_child_of_name(const std::string & name) const
{
if(name == "state")
return true;
return false;
}
OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Mpls::Labels::Label::NextHops::NextHop::InterfaceRef::State::State()
:
interface{YType::str, "interface"},
subinterface{YType::uint32, "subinterface"}
{
yang_name = "state"; yang_parent_name = "interface-ref"; is_top_level_class = false; has_list_ancestor = true;
}
OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Mpls::Labels::Label::NextHops::NextHop::InterfaceRef::State::~State()
{
}
bool OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Mpls::Labels::Label::NextHops::NextHop::InterfaceRef::State::has_data() const
{
if (is_presence_container) return true;
return interface.is_set
|| subinterface.is_set;
}
bool OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Mpls::Labels::Label::NextHops::NextHop::InterfaceRef::State::has_operation() const
{
return is_set(yfilter)
|| ydk::is_set(interface.yfilter)
|| ydk::is_set(subinterface.yfilter);
}
std::string OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Mpls::Labels::Label::NextHops::NextHop::InterfaceRef::State::get_segment_path() const
{
std::ostringstream path_buffer;
path_buffer << "state";
return path_buffer.str();
}
std::vector<std::pair<std::string, LeafData> > OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Mpls::Labels::Label::NextHops::NextHop::InterfaceRef::State::get_name_leaf_data() const
{
std::vector<std::pair<std::string, LeafData> > leaf_name_data {};
if (interface.is_set || is_set(interface.yfilter)) leaf_name_data.push_back(interface.get_name_leafdata());
if (subinterface.is_set || is_set(subinterface.yfilter)) leaf_name_data.push_back(subinterface.get_name_leafdata());
return leaf_name_data;
}
std::shared_ptr<ydk::Entity> OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Mpls::Labels::Label::NextHops::NextHop::InterfaceRef::State::get_child_by_name(const std::string & child_yang_name, const std::string & segment_path)
{
return nullptr;
}
std::map<std::string, std::shared_ptr<ydk::Entity>> OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Mpls::Labels::Label::NextHops::NextHop::InterfaceRef::State::get_children() const
{
std::map<std::string, std::shared_ptr<ydk::Entity>> _children{};
char count_=0;
return _children;
}
void OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Mpls::Labels::Label::NextHops::NextHop::InterfaceRef::State::set_value(const std::string & value_path, const std::string & value, const std::string & name_space, const std::string & name_space_prefix)
{
if(value_path == "interface")
{
interface = value;
interface.value_namespace = name_space;
interface.value_namespace_prefix = name_space_prefix;
}
if(value_path == "subinterface")
{
subinterface = value;
subinterface.value_namespace = name_space;
subinterface.value_namespace_prefix = name_space_prefix;
}
}
void OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Mpls::Labels::Label::NextHops::NextHop::InterfaceRef::State::set_filter(const std::string & value_path, YFilter yfilter)
{
if(value_path == "interface")
{
interface.yfilter = yfilter;
}
if(value_path == "subinterface")
{
subinterface.yfilter = yfilter;
}
}
bool OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Mpls::Labels::Label::NextHops::NextHop::InterfaceRef::State::has_leaf_or_child_of_name(const std::string & name) const
{
if(name == "interface" || name == "subinterface")
return true;
return false;
}
OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Mpls::Labels::Label::State::State()
:
prefix_index{YType::str, "prefix-index"}
{
yang_name = "state"; yang_parent_name = "label"; is_top_level_class = false; has_list_ancestor = true;
}
OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Mpls::Labels::Label::State::~State()
{
}
bool OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Mpls::Labels::Label::State::has_data() const
{
if (is_presence_container) return true;
return prefix_index.is_set;
}
bool OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Mpls::Labels::Label::State::has_operation() const
{
return is_set(yfilter)
|| ydk::is_set(prefix_index.yfilter);
}
std::string OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Mpls::Labels::Label::State::get_segment_path() const
{
std::ostringstream path_buffer;
path_buffer << "state";
return path_buffer.str();
}
std::vector<std::pair<std::string, LeafData> > OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Mpls::Labels::Label::State::get_name_leaf_data() const
{
std::vector<std::pair<std::string, LeafData> > leaf_name_data {};
if (prefix_index.is_set || is_set(prefix_index.yfilter)) leaf_name_data.push_back(prefix_index.get_name_leafdata());
return leaf_name_data;
}
std::shared_ptr<ydk::Entity> OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Mpls::Labels::Label::State::get_child_by_name(const std::string & child_yang_name, const std::string & segment_path)
{
return nullptr;
}
std::map<std::string, std::shared_ptr<ydk::Entity>> OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Mpls::Labels::Label::State::get_children() const
{
std::map<std::string, std::shared_ptr<ydk::Entity>> _children{};
char count_=0;
return _children;
}
void OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Mpls::Labels::Label::State::set_value(const std::string & value_path, const std::string & value, const std::string & name_space, const std::string & name_space_prefix)
{
if(value_path == "prefix-index")
{
prefix_index = value;
prefix_index.value_namespace = name_space;
prefix_index.value_namespace_prefix = name_space_prefix;
}
}
void OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Mpls::Labels::Label::State::set_filter(const std::string & value_path, YFilter yfilter)
{
if(value_path == "prefix-index")
{
prefix_index.yfilter = yfilter;
}
}
bool OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Mpls::Labels::Label::State::has_leaf_or_child_of_name(const std::string & name) const
{
if(name == "prefix-index")
return true;
return false;
}
OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Ipv6Unicast::Ipv6Unicast()
:
prefixes(std::make_shared<OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Ipv6Unicast::Prefixes>())
{
prefixes->parent = this;
yang_name = "ipv6-unicast"; yang_parent_name = "abstract-forwarding-tables"; is_top_level_class = false; has_list_ancestor = true;
}
OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Ipv6Unicast::~Ipv6Unicast()
{
}
bool OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Ipv6Unicast::has_data() const
{
if (is_presence_container) return true;
return (prefixes != nullptr && prefixes->has_data());
}
bool OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Ipv6Unicast::has_operation() const
{
return is_set(yfilter)
|| (prefixes != nullptr && prefixes->has_operation());
}
std::string OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Ipv6Unicast::get_segment_path() const
{
std::ostringstream path_buffer;
path_buffer << "ipv6-unicast";
return path_buffer.str();
}
std::vector<std::pair<std::string, LeafData> > OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Ipv6Unicast::get_name_leaf_data() const
{
std::vector<std::pair<std::string, LeafData> > leaf_name_data {};
return leaf_name_data;
}
std::shared_ptr<ydk::Entity> OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Ipv6Unicast::get_child_by_name(const std::string & child_yang_name, const std::string & segment_path)
{
if(child_yang_name == "prefixes")
{
if(prefixes == nullptr)
{
prefixes = std::make_shared<OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Ipv6Unicast::Prefixes>();
}
return prefixes;
}
return nullptr;
}
std::map<std::string, std::shared_ptr<ydk::Entity>> OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Ipv6Unicast::get_children() const
{
std::map<std::string, std::shared_ptr<ydk::Entity>> _children{};
char count_=0;
if(prefixes != nullptr)
{
_children["prefixes"] = prefixes;
}
return _children;
}
void OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Ipv6Unicast::set_value(const std::string & value_path, const std::string & value, const std::string & name_space, const std::string & name_space_prefix)
{
}
void OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Ipv6Unicast::set_filter(const std::string & value_path, YFilter yfilter)
{
}
bool OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Ipv6Unicast::has_leaf_or_child_of_name(const std::string & name) const
{
if(name == "prefixes")
return true;
return false;
}
OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Ipv6Unicast::Prefixes::Prefixes()
:
prefix(this, {"prefix"})
{
yang_name = "prefixes"; yang_parent_name = "ipv6-unicast"; is_top_level_class = false; has_list_ancestor = true;
}
OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Ipv6Unicast::Prefixes::~Prefixes()
{
}
bool OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Ipv6Unicast::Prefixes::has_data() const
{
if (is_presence_container) return true;
for (std::size_t index=0; index<prefix.len(); index++)
{
if(prefix[index]->has_data())
return true;
}
return false;
}
bool OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Ipv6Unicast::Prefixes::has_operation() const
{
for (std::size_t index=0; index<prefix.len(); index++)
{
if(prefix[index]->has_operation())
return true;
}
return is_set(yfilter);
}
std::string OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Ipv6Unicast::Prefixes::get_segment_path() const
{
std::ostringstream path_buffer;
path_buffer << "prefixes";
return path_buffer.str();
}
std::vector<std::pair<std::string, LeafData> > OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Ipv6Unicast::Prefixes::get_name_leaf_data() const
{
std::vector<std::pair<std::string, LeafData> > leaf_name_data {};
return leaf_name_data;
}
std::shared_ptr<ydk::Entity> OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Ipv6Unicast::Prefixes::get_child_by_name(const std::string & child_yang_name, const std::string & segment_path)
{
if(child_yang_name == "prefix")
{
auto ent_ = std::make_shared<OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Ipv6Unicast::Prefixes::Prefix>();
ent_->parent = this;
prefix.append(ent_);
return ent_;
}
return nullptr;
}
std::map<std::string, std::shared_ptr<ydk::Entity>> OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Ipv6Unicast::Prefixes::get_children() const
{
std::map<std::string, std::shared_ptr<ydk::Entity>> _children{};
char count_=0;
count_ = 0;
for (auto ent_ : prefix.entities())
{
if(_children.find(ent_->get_segment_path()) == _children.end())
_children[ent_->get_segment_path()] = ent_;
else
_children[ent_->get_segment_path()+count_++] = ent_;
}
return _children;
}
void OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Ipv6Unicast::Prefixes::set_value(const std::string & value_path, const std::string & value, const std::string & name_space, const std::string & name_space_prefix)
{
}
void OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Ipv6Unicast::Prefixes::set_filter(const std::string & value_path, YFilter yfilter)
{
}
bool OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Ipv6Unicast::Prefixes::has_leaf_or_child_of_name(const std::string & name) const
{
if(name == "prefix")
return true;
return false;
}
OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Ipv6Unicast::Prefixes::Prefix::Prefix()
:
prefix{YType::str, "prefix"}
,
next_hops(std::make_shared<OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Ipv6Unicast::Prefixes::Prefix::NextHops>())
, state(std::make_shared<OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Ipv6Unicast::Prefixes::Prefix::State>())
{
next_hops->parent = this;
state->parent = this;
yang_name = "prefix"; yang_parent_name = "prefixes"; is_top_level_class = false; has_list_ancestor = true;
}
OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Ipv6Unicast::Prefixes::Prefix::~Prefix()
{
}
bool OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Ipv6Unicast::Prefixes::Prefix::has_data() const
{
if (is_presence_container) return true;
return prefix.is_set
|| (next_hops != nullptr && next_hops->has_data())
|| (state != nullptr && state->has_data());
}
bool OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Ipv6Unicast::Prefixes::Prefix::has_operation() const
{
return is_set(yfilter)
|| ydk::is_set(prefix.yfilter)
|| (next_hops != nullptr && next_hops->has_operation())
|| (state != nullptr && state->has_operation());
}
std::string OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Ipv6Unicast::Prefixes::Prefix::get_segment_path() const
{
std::ostringstream path_buffer;
path_buffer << "prefix";
ADD_KEY_TOKEN(prefix, "prefix");
return path_buffer.str();
}
std::vector<std::pair<std::string, LeafData> > OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Ipv6Unicast::Prefixes::Prefix::get_name_leaf_data() const
{
std::vector<std::pair<std::string, LeafData> > leaf_name_data {};
if (prefix.is_set || is_set(prefix.yfilter)) leaf_name_data.push_back(prefix.get_name_leafdata());
return leaf_name_data;
}
std::shared_ptr<ydk::Entity> OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Ipv6Unicast::Prefixes::Prefix::get_child_by_name(const std::string & child_yang_name, const std::string & segment_path)
{
if(child_yang_name == "next-hops")
{
if(next_hops == nullptr)
{
next_hops = std::make_shared<OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Ipv6Unicast::Prefixes::Prefix::NextHops>();
}
return next_hops;
}
if(child_yang_name == "state")
{
if(state == nullptr)
{
state = std::make_shared<OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Ipv6Unicast::Prefixes::Prefix::State>();
}
return state;
}
return nullptr;
}
std::map<std::string, std::shared_ptr<ydk::Entity>> OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Ipv6Unicast::Prefixes::Prefix::get_children() const
{
std::map<std::string, std::shared_ptr<ydk::Entity>> _children{};
char count_=0;
if(next_hops != nullptr)
{
_children["next-hops"] = next_hops;
}
if(state != nullptr)
{
_children["state"] = state;
}
return _children;
}
void OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Ipv6Unicast::Prefixes::Prefix::set_value(const std::string & value_path, const std::string & value, const std::string & name_space, const std::string & name_space_prefix)
{
if(value_path == "prefix")
{
prefix = value;
prefix.value_namespace = name_space;
prefix.value_namespace_prefix = name_space_prefix;
}
}
void OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Ipv6Unicast::Prefixes::Prefix::set_filter(const std::string & value_path, YFilter yfilter)
{
if(value_path == "prefix")
{
prefix.yfilter = yfilter;
}
}
bool OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Ipv6Unicast::Prefixes::Prefix::has_leaf_or_child_of_name(const std::string & name) const
{
if(name == "next-hops" || name == "state" || name == "prefix")
return true;
return false;
}
OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Ipv6Unicast::Prefixes::Prefix::NextHops::NextHops()
:
next_hop(this, {"index_"})
{
yang_name = "next-hops"; yang_parent_name = "prefix"; is_top_level_class = false; has_list_ancestor = true;
}
OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Ipv6Unicast::Prefixes::Prefix::NextHops::~NextHops()
{
}
bool OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Ipv6Unicast::Prefixes::Prefix::NextHops::has_data() const
{
if (is_presence_container) return true;
for (std::size_t index=0; index<next_hop.len(); index++)
{
if(next_hop[index]->has_data())
return true;
}
return false;
}
bool OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Ipv6Unicast::Prefixes::Prefix::NextHops::has_operation() const
{
for (std::size_t index=0; index<next_hop.len(); index++)
{
if(next_hop[index]->has_operation())
return true;
}
return is_set(yfilter);
}
std::string OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Ipv6Unicast::Prefixes::Prefix::NextHops::get_segment_path() const
{
std::ostringstream path_buffer;
path_buffer << "next-hops";
return path_buffer.str();
}
std::vector<std::pair<std::string, LeafData> > OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Ipv6Unicast::Prefixes::Prefix::NextHops::get_name_leaf_data() const
{
std::vector<std::pair<std::string, LeafData> > leaf_name_data {};
return leaf_name_data;
}
std::shared_ptr<ydk::Entity> OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Ipv6Unicast::Prefixes::Prefix::NextHops::get_child_by_name(const std::string & child_yang_name, const std::string & segment_path)
{
if(child_yang_name == "next-hop")
{
auto ent_ = std::make_shared<OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Ipv6Unicast::Prefixes::Prefix::NextHops::NextHop>();
ent_->parent = this;
next_hop.append(ent_);
return ent_;
}
return nullptr;
}
std::map<std::string, std::shared_ptr<ydk::Entity>> OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Ipv6Unicast::Prefixes::Prefix::NextHops::get_children() const
{
std::map<std::string, std::shared_ptr<ydk::Entity>> _children{};
char count_=0;
count_ = 0;
for (auto ent_ : next_hop.entities())
{
if(_children.find(ent_->get_segment_path()) == _children.end())
_children[ent_->get_segment_path()] = ent_;
else
_children[ent_->get_segment_path()+count_++] = ent_;
}
return _children;
}
void OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Ipv6Unicast::Prefixes::Prefix::NextHops::set_value(const std::string & value_path, const std::string & value, const std::string & name_space, const std::string & name_space_prefix)
{
}
void OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Ipv6Unicast::Prefixes::Prefix::NextHops::set_filter(const std::string & value_path, YFilter yfilter)
{
}
bool OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Ipv6Unicast::Prefixes::Prefix::NextHops::has_leaf_or_child_of_name(const std::string & name) const
{
if(name == "next-hop")
return true;
return false;
}
OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Ipv6Unicast::Prefixes::Prefix::NextHops::NextHop::NextHop()
:
index_{YType::uint32, "index"}
,
state(std::make_shared<OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Ipv6Unicast::Prefixes::Prefix::NextHops::NextHop::State>())
, interface_ref(std::make_shared<OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Ipv6Unicast::Prefixes::Prefix::NextHops::NextHop::InterfaceRef>())
{
state->parent = this;
interface_ref->parent = this;
yang_name = "next-hop"; yang_parent_name = "next-hops"; is_top_level_class = false; has_list_ancestor = true;
}
OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Ipv6Unicast::Prefixes::Prefix::NextHops::NextHop::~NextHop()
{
}
bool OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Ipv6Unicast::Prefixes::Prefix::NextHops::NextHop::has_data() const
{
if (is_presence_container) return true;
return index_.is_set
|| (state != nullptr && state->has_data())
|| (interface_ref != nullptr && interface_ref->has_data());
}
bool OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Ipv6Unicast::Prefixes::Prefix::NextHops::NextHop::has_operation() const
{
return is_set(yfilter)
|| ydk::is_set(index_.yfilter)
|| (state != nullptr && state->has_operation())
|| (interface_ref != nullptr && interface_ref->has_operation());
}
std::string OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Ipv6Unicast::Prefixes::Prefix::NextHops::NextHop::get_segment_path() const
{
std::ostringstream path_buffer;
path_buffer << "next-hop";
ADD_KEY_TOKEN(index_, "index");
return path_buffer.str();
}
std::vector<std::pair<std::string, LeafData> > OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Ipv6Unicast::Prefixes::Prefix::NextHops::NextHop::get_name_leaf_data() const
{
std::vector<std::pair<std::string, LeafData> > leaf_name_data {};
if (index_.is_set || is_set(index_.yfilter)) leaf_name_data.push_back(index_.get_name_leafdata());
return leaf_name_data;
}
std::shared_ptr<ydk::Entity> OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Ipv6Unicast::Prefixes::Prefix::NextHops::NextHop::get_child_by_name(const std::string & child_yang_name, const std::string & segment_path)
{
if(child_yang_name == "state")
{
if(state == nullptr)
{
state = std::make_shared<OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Ipv6Unicast::Prefixes::Prefix::NextHops::NextHop::State>();
}
return state;
}
if(child_yang_name == "interface-ref")
{
if(interface_ref == nullptr)
{
interface_ref = std::make_shared<OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Ipv6Unicast::Prefixes::Prefix::NextHops::NextHop::InterfaceRef>();
}
return interface_ref;
}
return nullptr;
}
std::map<std::string, std::shared_ptr<ydk::Entity>> OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Ipv6Unicast::Prefixes::Prefix::NextHops::NextHop::get_children() const
{
std::map<std::string, std::shared_ptr<ydk::Entity>> _children{};
char count_=0;
if(state != nullptr)
{
_children["state"] = state;
}
if(interface_ref != nullptr)
{
_children["interface-ref"] = interface_ref;
}
return _children;
}
void OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Ipv6Unicast::Prefixes::Prefix::NextHops::NextHop::set_value(const std::string & value_path, const std::string & value, const std::string & name_space, const std::string & name_space_prefix)
{
if(value_path == "index")
{
index_ = value;
index_.value_namespace = name_space;
index_.value_namespace_prefix = name_space_prefix;
}
}
void OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Ipv6Unicast::Prefixes::Prefix::NextHops::NextHop::set_filter(const std::string & value_path, YFilter yfilter)
{
if(value_path == "index")
{
index_.yfilter = yfilter;
}
}
bool OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Ipv6Unicast::Prefixes::Prefix::NextHops::NextHop::has_leaf_or_child_of_name(const std::string & name) const
{
if(name == "state" || name == "interface-ref" || name == "index")
return true;
return false;
}
OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Ipv6Unicast::Prefixes::Prefix::NextHops::NextHop::State::State()
:
index_{YType::uint64, "index"},
weight{YType::uint32, "weight"},
ip_address{YType::str, "ip-address"},
network_instance{YType::str, "network-instance"},
popped_mpls_label_stack{YType::str, "popped-mpls-label-stack"},
pushed_mpls_label_stack{YType::str, "pushed-mpls-label-stack"}
{
yang_name = "state"; yang_parent_name = "next-hop"; is_top_level_class = false; has_list_ancestor = true;
}
OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Ipv6Unicast::Prefixes::Prefix::NextHops::NextHop::State::~State()
{
}
bool OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Ipv6Unicast::Prefixes::Prefix::NextHops::NextHop::State::has_data() const
{
if (is_presence_container) return true;
for (auto const & leaf : popped_mpls_label_stack.getYLeafs())
{
if(leaf.is_set)
return true;
}
for (auto const & leaf : pushed_mpls_label_stack.getYLeafs())
{
if(leaf.is_set)
return true;
}
return index_.is_set
|| weight.is_set
|| ip_address.is_set
|| network_instance.is_set;
}
bool OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Ipv6Unicast::Prefixes::Prefix::NextHops::NextHop::State::has_operation() const
{
for (auto const & leaf : popped_mpls_label_stack.getYLeafs())
{
if(is_set(leaf.yfilter))
return true;
}
for (auto const & leaf : pushed_mpls_label_stack.getYLeafs())
{
if(is_set(leaf.yfilter))
return true;
}
return is_set(yfilter)
|| ydk::is_set(index_.yfilter)
|| ydk::is_set(weight.yfilter)
|| ydk::is_set(ip_address.yfilter)
|| ydk::is_set(network_instance.yfilter)
|| ydk::is_set(popped_mpls_label_stack.yfilter)
|| ydk::is_set(pushed_mpls_label_stack.yfilter);
}
std::string OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Ipv6Unicast::Prefixes::Prefix::NextHops::NextHop::State::get_segment_path() const
{
std::ostringstream path_buffer;
path_buffer << "state";
return path_buffer.str();
}
std::vector<std::pair<std::string, LeafData> > OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Ipv6Unicast::Prefixes::Prefix::NextHops::NextHop::State::get_name_leaf_data() const
{
std::vector<std::pair<std::string, LeafData> > leaf_name_data {};
if (index_.is_set || is_set(index_.yfilter)) leaf_name_data.push_back(index_.get_name_leafdata());
if (weight.is_set || is_set(weight.yfilter)) leaf_name_data.push_back(weight.get_name_leafdata());
if (ip_address.is_set || is_set(ip_address.yfilter)) leaf_name_data.push_back(ip_address.get_name_leafdata());
if (network_instance.is_set || is_set(network_instance.yfilter)) leaf_name_data.push_back(network_instance.get_name_leafdata());
auto popped_mpls_label_stack_name_datas = popped_mpls_label_stack.get_name_leafdata();
leaf_name_data.insert(leaf_name_data.end(), popped_mpls_label_stack_name_datas.begin(), popped_mpls_label_stack_name_datas.end());
auto pushed_mpls_label_stack_name_datas = pushed_mpls_label_stack.get_name_leafdata();
leaf_name_data.insert(leaf_name_data.end(), pushed_mpls_label_stack_name_datas.begin(), pushed_mpls_label_stack_name_datas.end());
return leaf_name_data;
}
std::shared_ptr<ydk::Entity> OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Ipv6Unicast::Prefixes::Prefix::NextHops::NextHop::State::get_child_by_name(const std::string & child_yang_name, const std::string & segment_path)
{
return nullptr;
}
std::map<std::string, std::shared_ptr<ydk::Entity>> OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Ipv6Unicast::Prefixes::Prefix::NextHops::NextHop::State::get_children() const
{
std::map<std::string, std::shared_ptr<ydk::Entity>> _children{};
char count_=0;
return _children;
}
void OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Ipv6Unicast::Prefixes::Prefix::NextHops::NextHop::State::set_value(const std::string & value_path, const std::string & value, const std::string & name_space, const std::string & name_space_prefix)
{
if(value_path == "index")
{
index_ = value;
index_.value_namespace = name_space;
index_.value_namespace_prefix = name_space_prefix;
}
if(value_path == "weight")
{
weight = value;
weight.value_namespace = name_space;
weight.value_namespace_prefix = name_space_prefix;
}
if(value_path == "ip-address")
{
ip_address = value;
ip_address.value_namespace = name_space;
ip_address.value_namespace_prefix = name_space_prefix;
}
if(value_path == "network-instance")
{
network_instance = value;
network_instance.value_namespace = name_space;
network_instance.value_namespace_prefix = name_space_prefix;
}
if(value_path == "popped-mpls-label-stack")
{
popped_mpls_label_stack.append(value);
}
if(value_path == "pushed-mpls-label-stack")
{
pushed_mpls_label_stack.append(value);
}
}
void OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Ipv6Unicast::Prefixes::Prefix::NextHops::NextHop::State::set_filter(const std::string & value_path, YFilter yfilter)
{
if(value_path == "index")
{
index_.yfilter = yfilter;
}
if(value_path == "weight")
{
weight.yfilter = yfilter;
}
if(value_path == "ip-address")
{
ip_address.yfilter = yfilter;
}
if(value_path == "network-instance")
{
network_instance.yfilter = yfilter;
}
if(value_path == "popped-mpls-label-stack")
{
popped_mpls_label_stack.yfilter = yfilter;
}
if(value_path == "pushed-mpls-label-stack")
{
pushed_mpls_label_stack.yfilter = yfilter;
}
}
bool OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Ipv6Unicast::Prefixes::Prefix::NextHops::NextHop::State::has_leaf_or_child_of_name(const std::string & name) const
{
if(name == "index" || name == "weight" || name == "ip-address" || name == "network-instance" || name == "popped-mpls-label-stack" || name == "pushed-mpls-label-stack")
return true;
return false;
}
OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Ipv6Unicast::Prefixes::Prefix::NextHops::NextHop::InterfaceRef::InterfaceRef()
:
state(std::make_shared<OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Ipv6Unicast::Prefixes::Prefix::NextHops::NextHop::InterfaceRef::State>())
{
state->parent = this;
yang_name = "interface-ref"; yang_parent_name = "next-hop"; is_top_level_class = false; has_list_ancestor = true;
}
OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Ipv6Unicast::Prefixes::Prefix::NextHops::NextHop::InterfaceRef::~InterfaceRef()
{
}
bool OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Ipv6Unicast::Prefixes::Prefix::NextHops::NextHop::InterfaceRef::has_data() const
{
if (is_presence_container) return true;
return (state != nullptr && state->has_data());
}
bool OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Ipv6Unicast::Prefixes::Prefix::NextHops::NextHop::InterfaceRef::has_operation() const
{
return is_set(yfilter)
|| (state != nullptr && state->has_operation());
}
std::string OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Ipv6Unicast::Prefixes::Prefix::NextHops::NextHop::InterfaceRef::get_segment_path() const
{
std::ostringstream path_buffer;
path_buffer << "interface-ref";
return path_buffer.str();
}
std::vector<std::pair<std::string, LeafData> > OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Ipv6Unicast::Prefixes::Prefix::NextHops::NextHop::InterfaceRef::get_name_leaf_data() const
{
std::vector<std::pair<std::string, LeafData> > leaf_name_data {};
return leaf_name_data;
}
std::shared_ptr<ydk::Entity> OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Ipv6Unicast::Prefixes::Prefix::NextHops::NextHop::InterfaceRef::get_child_by_name(const std::string & child_yang_name, const std::string & segment_path)
{
if(child_yang_name == "state")
{
if(state == nullptr)
{
state = std::make_shared<OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Ipv6Unicast::Prefixes::Prefix::NextHops::NextHop::InterfaceRef::State>();
}
return state;
}
return nullptr;
}
std::map<std::string, std::shared_ptr<ydk::Entity>> OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Ipv6Unicast::Prefixes::Prefix::NextHops::NextHop::InterfaceRef::get_children() const
{
std::map<std::string, std::shared_ptr<ydk::Entity>> _children{};
char count_=0;
if(state != nullptr)
{
_children["state"] = state;
}
return _children;
}
void OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Ipv6Unicast::Prefixes::Prefix::NextHops::NextHop::InterfaceRef::set_value(const std::string & value_path, const std::string & value, const std::string & name_space, const std::string & name_space_prefix)
{
}
void OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Ipv6Unicast::Prefixes::Prefix::NextHops::NextHop::InterfaceRef::set_filter(const std::string & value_path, YFilter yfilter)
{
}
bool OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Ipv6Unicast::Prefixes::Prefix::NextHops::NextHop::InterfaceRef::has_leaf_or_child_of_name(const std::string & name) const
{
if(name == "state")
return true;
return false;
}
OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Ipv6Unicast::Prefixes::Prefix::NextHops::NextHop::InterfaceRef::State::State()
:
interface{YType::str, "interface"},
subinterface{YType::uint32, "subinterface"}
{
yang_name = "state"; yang_parent_name = "interface-ref"; is_top_level_class = false; has_list_ancestor = true;
}
OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Ipv6Unicast::Prefixes::Prefix::NextHops::NextHop::InterfaceRef::State::~State()
{
}
bool OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Ipv6Unicast::Prefixes::Prefix::NextHops::NextHop::InterfaceRef::State::has_data() const
{
if (is_presence_container) return true;
return interface.is_set
|| subinterface.is_set;
}
bool OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Ipv6Unicast::Prefixes::Prefix::NextHops::NextHop::InterfaceRef::State::has_operation() const
{
return is_set(yfilter)
|| ydk::is_set(interface.yfilter)
|| ydk::is_set(subinterface.yfilter);
}
std::string OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Ipv6Unicast::Prefixes::Prefix::NextHops::NextHop::InterfaceRef::State::get_segment_path() const
{
std::ostringstream path_buffer;
path_buffer << "state";
return path_buffer.str();
}
std::vector<std::pair<std::string, LeafData> > OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Ipv6Unicast::Prefixes::Prefix::NextHops::NextHop::InterfaceRef::State::get_name_leaf_data() const
{
std::vector<std::pair<std::string, LeafData> > leaf_name_data {};
if (interface.is_set || is_set(interface.yfilter)) leaf_name_data.push_back(interface.get_name_leafdata());
if (subinterface.is_set || is_set(subinterface.yfilter)) leaf_name_data.push_back(subinterface.get_name_leafdata());
return leaf_name_data;
}
std::shared_ptr<ydk::Entity> OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Ipv6Unicast::Prefixes::Prefix::NextHops::NextHop::InterfaceRef::State::get_child_by_name(const std::string & child_yang_name, const std::string & segment_path)
{
return nullptr;
}
std::map<std::string, std::shared_ptr<ydk::Entity>> OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Ipv6Unicast::Prefixes::Prefix::NextHops::NextHop::InterfaceRef::State::get_children() const
{
std::map<std::string, std::shared_ptr<ydk::Entity>> _children{};
char count_=0;
return _children;
}
void OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Ipv6Unicast::Prefixes::Prefix::NextHops::NextHop::InterfaceRef::State::set_value(const std::string & value_path, const std::string & value, const std::string & name_space, const std::string & name_space_prefix)
{
if(value_path == "interface")
{
interface = value;
interface.value_namespace = name_space;
interface.value_namespace_prefix = name_space_prefix;
}
if(value_path == "subinterface")
{
subinterface = value;
subinterface.value_namespace = name_space;
subinterface.value_namespace_prefix = name_space_prefix;
}
}
void OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Ipv6Unicast::Prefixes::Prefix::NextHops::NextHop::InterfaceRef::State::set_filter(const std::string & value_path, YFilter yfilter)
{
if(value_path == "interface")
{
interface.yfilter = yfilter;
}
if(value_path == "subinterface")
{
subinterface.yfilter = yfilter;
}
}
bool OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Ipv6Unicast::Prefixes::Prefix::NextHops::NextHop::InterfaceRef::State::has_leaf_or_child_of_name(const std::string & name) const
{
if(name == "interface" || name == "subinterface")
return true;
return false;
}
OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Ipv6Unicast::Prefixes::Prefix::State::State()
:
prefix_index{YType::str, "prefix-index"}
{
yang_name = "state"; yang_parent_name = "prefix"; is_top_level_class = false; has_list_ancestor = true;
}
OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Ipv6Unicast::Prefixes::Prefix::State::~State()
{
}
bool OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Ipv6Unicast::Prefixes::Prefix::State::has_data() const
{
if (is_presence_container) return true;
return prefix_index.is_set;
}
bool OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Ipv6Unicast::Prefixes::Prefix::State::has_operation() const
{
return is_set(yfilter)
|| ydk::is_set(prefix_index.yfilter);
}
std::string OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Ipv6Unicast::Prefixes::Prefix::State::get_segment_path() const
{
std::ostringstream path_buffer;
path_buffer << "state";
return path_buffer.str();
}
std::vector<std::pair<std::string, LeafData> > OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Ipv6Unicast::Prefixes::Prefix::State::get_name_leaf_data() const
{
std::vector<std::pair<std::string, LeafData> > leaf_name_data {};
if (prefix_index.is_set || is_set(prefix_index.yfilter)) leaf_name_data.push_back(prefix_index.get_name_leafdata());
return leaf_name_data;
}
std::shared_ptr<ydk::Entity> OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Ipv6Unicast::Prefixes::Prefix::State::get_child_by_name(const std::string & child_yang_name, const std::string & segment_path)
{
return nullptr;
}
std::map<std::string, std::shared_ptr<ydk::Entity>> OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Ipv6Unicast::Prefixes::Prefix::State::get_children() const
{
std::map<std::string, std::shared_ptr<ydk::Entity>> _children{};
char count_=0;
return _children;
}
void OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Ipv6Unicast::Prefixes::Prefix::State::set_value(const std::string & value_path, const std::string & value, const std::string & name_space, const std::string & name_space_prefix)
{
if(value_path == "prefix-index")
{
prefix_index = value;
prefix_index.value_namespace = name_space;
prefix_index.value_namespace_prefix = name_space_prefix;
}
}
void OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Ipv6Unicast::Prefixes::Prefix::State::set_filter(const std::string & value_path, YFilter yfilter)
{
if(value_path == "prefix-index")
{
prefix_index.yfilter = yfilter;
}
}
bool OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Ipv6Unicast::Prefixes::Prefix::State::has_leaf_or_child_of_name(const std::string & name) const
{
if(name == "prefix-index")
return true;
return false;
}
OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Ipv4Unicast::Ipv4Unicast()
:
prefixes(std::make_shared<OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Ipv4Unicast::Prefixes>())
{
prefixes->parent = this;
yang_name = "ipv4-unicast"; yang_parent_name = "abstract-forwarding-tables"; is_top_level_class = false; has_list_ancestor = true;
}
OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Ipv4Unicast::~Ipv4Unicast()
{
}
bool OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Ipv4Unicast::has_data() const
{
if (is_presence_container) return true;
return (prefixes != nullptr && prefixes->has_data());
}
bool OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Ipv4Unicast::has_operation() const
{
return is_set(yfilter)
|| (prefixes != nullptr && prefixes->has_operation());
}
std::string OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Ipv4Unicast::get_segment_path() const
{
std::ostringstream path_buffer;
path_buffer << "ipv4-unicast";
return path_buffer.str();
}
std::vector<std::pair<std::string, LeafData> > OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Ipv4Unicast::get_name_leaf_data() const
{
std::vector<std::pair<std::string, LeafData> > leaf_name_data {};
return leaf_name_data;
}
std::shared_ptr<ydk::Entity> OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Ipv4Unicast::get_child_by_name(const std::string & child_yang_name, const std::string & segment_path)
{
if(child_yang_name == "prefixes")
{
if(prefixes == nullptr)
{
prefixes = std::make_shared<OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Ipv4Unicast::Prefixes>();
}
return prefixes;
}
return nullptr;
}
std::map<std::string, std::shared_ptr<ydk::Entity>> OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Ipv4Unicast::get_children() const
{
std::map<std::string, std::shared_ptr<ydk::Entity>> _children{};
char count_=0;
if(prefixes != nullptr)
{
_children["prefixes"] = prefixes;
}
return _children;
}
void OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Ipv4Unicast::set_value(const std::string & value_path, const std::string & value, const std::string & name_space, const std::string & name_space_prefix)
{
}
void OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Ipv4Unicast::set_filter(const std::string & value_path, YFilter yfilter)
{
}
bool OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Ipv4Unicast::has_leaf_or_child_of_name(const std::string & name) const
{
if(name == "prefixes")
return true;
return false;
}
OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Ipv4Unicast::Prefixes::Prefixes()
:
prefix(this, {"prefix"})
{
yang_name = "prefixes"; yang_parent_name = "ipv4-unicast"; is_top_level_class = false; has_list_ancestor = true;
}
OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Ipv4Unicast::Prefixes::~Prefixes()
{
}
bool OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Ipv4Unicast::Prefixes::has_data() const
{
if (is_presence_container) return true;
for (std::size_t index=0; index<prefix.len(); index++)
{
if(prefix[index]->has_data())
return true;
}
return false;
}
bool OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Ipv4Unicast::Prefixes::has_operation() const
{
for (std::size_t index=0; index<prefix.len(); index++)
{
if(prefix[index]->has_operation())
return true;
}
return is_set(yfilter);
}
std::string OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Ipv4Unicast::Prefixes::get_segment_path() const
{
std::ostringstream path_buffer;
path_buffer << "prefixes";
return path_buffer.str();
}
std::vector<std::pair<std::string, LeafData> > OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Ipv4Unicast::Prefixes::get_name_leaf_data() const
{
std::vector<std::pair<std::string, LeafData> > leaf_name_data {};
return leaf_name_data;
}
std::shared_ptr<ydk::Entity> OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Ipv4Unicast::Prefixes::get_child_by_name(const std::string & child_yang_name, const std::string & segment_path)
{
if(child_yang_name == "prefix")
{
auto ent_ = std::make_shared<OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Ipv4Unicast::Prefixes::Prefix>();
ent_->parent = this;
prefix.append(ent_);
return ent_;
}
return nullptr;
}
std::map<std::string, std::shared_ptr<ydk::Entity>> OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Ipv4Unicast::Prefixes::get_children() const
{
std::map<std::string, std::shared_ptr<ydk::Entity>> _children{};
char count_=0;
count_ = 0;
for (auto ent_ : prefix.entities())
{
if(_children.find(ent_->get_segment_path()) == _children.end())
_children[ent_->get_segment_path()] = ent_;
else
_children[ent_->get_segment_path()+count_++] = ent_;
}
return _children;
}
void OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Ipv4Unicast::Prefixes::set_value(const std::string & value_path, const std::string & value, const std::string & name_space, const std::string & name_space_prefix)
{
}
void OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Ipv4Unicast::Prefixes::set_filter(const std::string & value_path, YFilter yfilter)
{
}
bool OcAftL3::Vrfs::Vrf::AbstractForwardingTables::Ipv4Unicast::Prefixes::has_leaf_or_child_of_name(const std::string & name) const
{
if(name == "prefix")
return true;
return false;
}
}
}
|
a5bc8417299252f2b6d09e261820f3b9b6ed08c8
|
f0723f4d6b072ec086a7ecddb617b61dca4a1d31
|
/main.cpp
|
ad718909c6b29003e8a1f1d7d048ff46e2cf4475
|
[] |
no_license
|
mcdonk24/Assignment1
|
cf48beea3edd34a9250c878229de4d32d6a9b036
|
fbf986edd8495381c17408920abc33b04c2272a3
|
refs/heads/master
| 2020-04-15T09:13:49.588651
| 2013-12-16T11:57:01
| 2013-12-16T11:57:01
| null | 0
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 1,663
|
cpp
|
main.cpp
|
#include "Animal.h"
#include "Carnivore.h"
#include "Herbivore.h"
#include "Omnivore.h"
#include <iostream>
#include <vector>
//16.classTest and structTest used to demonstrate difference between class and struct
class classTest{
int r;
};
struct structTest{
int t;
};
//20.Used in the algorithm, for_each, for the vector container
void vectdisplay(Carnivore o)
{
o.display();
}
int main(){
//5.Friend function
Carnivore sa("Leopard", 3);
sleepingAnimals(sa);
Carnivore a("Lion", 2);
a.display();
Carnivore b("Lion", 4);
//10.overloaded operators
Carnivore g = a + b;
g.display();
//11.operations on pointers to arrays
Carnivore somecarnivores[]={Carnivore("Dragon", 7), Carnivore("Tiger", 0), Carnivore("Jaguar", 4)};
Carnivore *p = &somecarnivores[0];
p->display();
(++p)->display();
Herbivore *c = new Omnivore("Rabbit");
Omnivore *h = dynamic_cast<Omnivore*>(c); //12.dynamic casting
delete h;//14.correct use of delete
//19.use of a vector container
vector<Carnivore> vect;
vect.push_back(Carnivore("Liger", 2));
vect.push_back(Carnivore("Eagle", 0));
vect.push_back(Carnivore("Vulture", 2));
//20.use of an algorithm on container
for_each(vect.begin(), vect.end(), vectdisplay);
Herbivore d("Panda", 3);
Omnivore e("Human");
//7.modified copy constructor
Omnivore f(e);
d.display();
e.display();
f.display();
Carnivore *i = new Carnivore("Dinosaur", 4); //14.correct use of new
Herbivore *j = reinterpret_cast<Herbivore*>(i);//12.reinterpret casting
j->display();
//16.demonstrates the difference between a class and a struct
classTest test1;
structTest test2;
//test1.r = 42; will not work because class is private
test2.t = 42;
}
|
cf244ec03a078deed3abbccb3274757b618beedb
|
61de147b672f29e97e786eb508167706b463feb1
|
/FaustGames/CommonSources/gen/BaseObjectsPInvoke.cpp
|
d480cfea4aaaf3692534d5ab917c2d9da98fbf55
|
[] |
no_license
|
faustgames-ru/FaustEngine
|
83914ac8ba11163984dbe74ebfdef48793c3c67c
|
c779e3ff99503f366624c5c1ac202e4648c6bb4e
|
refs/heads/master
| 2021-04-22T13:31:30.544214
| 2019-02-05T08:49:07
| 2019-02-05T08:49:07
| 29,536,506
| 0
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 234
|
cpp
|
BaseObjectsPInvoke.cpp
|
/* ============================================================== */
/* This file is automatically generated. Please do not modify it. */
/* ============================================================== */
#include "BaseObjects.h"
|
a63e0832aba5567445157e4d99a3887518259711
|
9fbb4f4fcf1ba449279773b5244664d3dbbfa335
|
/UnitTests/PrimitiveTypes/4_1_Tests.cpp
|
f1a4f55084fedbb498ab2a7c2b2cb6a16b3dc8fb
|
[] |
no_license
|
ChrisMurimPark/EPI
|
39f7ace21ff0a239e099f09fa09820d67dea4d6c
|
f38071d3b138b9449c9e73d7b12ec09ac06f134a
|
refs/heads/master
| 2021-05-01T12:25:28.124726
| 2018-08-06T01:39:45
| 2018-08-06T01:39:45
| 121,065,706
| 0
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 1,303
|
cpp
|
4_1_Tests.cpp
|
//
// Problem1Tests.cpp
// UnitTests
//
// Created by Chris (Murim) Park on 2/10/18.
// Copyright © 2018 Chris (Murim) Park. All rights reserved.
//
#include <gtest/gtest.h>
#include <random>
#include <limits>
#include "../../EPI/PrimitiveTypes/4.1/Solution1.hpp"
#include "../../EPI/PrimitiveTypes/4.1/Solution2.hpp"
#include "../../EPI/PrimitiveTypes/4.1/Solution3.hpp"
// Although this test doesn't guarantee that the implementations are correct,
// there's a high degree of confidence that at least one is correct. Over a large
// number of runs, we can have some confidence that these solutions are correct.
TEST(ParityOfAWordTests, GivenRandomNumbers_EachSolutionComputesSameParity)
{
const size_t NUM_POINTS = 10000;
std::random_device rd;
std::mt19937_64 mt;
mt.seed(time(NULL));
std::uniform_int_distribution<unsigned long long> distribution;
std::vector<unsigned long long> test_points;
test_points.reserve(NUM_POINTS);
for (size_t i = 0; i < NUM_POINTS; ++i)
test_points.push_back(distribution(mt));
const short s1 = S1::Parity(test_points);
// S2::ParityCalculator pc;
// const short s2 = pc.Parity(test_points);
const short s3 = S3::Parity(test_points);
// EXPECT_EQ(s1, s2);
// EXPECT_EQ(s2, s3);
EXPECT_EQ(s1, s3);
}
|
4ea44795ace3ec4eda5b0d4d683053f481da9829
|
fd2503f9cd6eb223c462624d87e31566777e742e
|
/RoomServer/RoomServer/RoomServer.h
|
a4ce41206fadfe496e6fe492a7303b7ba64b92e5
|
[] |
no_license
|
433Project/RoomManager
|
9d75cdeb85cc021a7479756b43cef8eefd8a84cc
|
078a3ab787f9c08dcc0cd98cc9f2f472b0e71073
|
refs/heads/master
| 2021-01-18T18:07:26.884693
| 2016-11-11T05:29:09
| 2016-11-11T05:29:09
| 72,184,523
| 0
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 405
|
h
|
RoomServer.h
|
#pragma once
#include "IOCPManager.h"
#include "protocol.h"
class RoomServer
{
public:
~RoomServer();
void Start();
private:
void ProcessMessage();
struct Room
{
int player1;
int player2;
int roomNo;
int leftTime = 0;
};
struct AddressInfo
{
SrcDstType srcType;
int srcCode;
SrcDstType dstType;
int dstCode;
};
private:
IOCPManager iocpManager;
std::vector<Room> rooms;
};
|
db985e39a2fa214781b5f857222450e76ff6f4ba
|
f6ab96101246c8764dc16073cbea72a188a0dc1a
|
/volume125/12546 - LCM Pair Sum.cpp
|
7d20b017a0271059d685651ee835a7622d1e5927
|
[] |
no_license
|
nealwu/UVa
|
c87ddc8a0bf07a9bd9cadbf88b7389790bc321cb
|
10ddd83a00271b0c9c259506aa17d03075850f60
|
refs/heads/master
| 2020-09-07T18:52:19.352699
| 2019-05-01T09:41:55
| 2019-05-01T09:41:55
| 220,883,015
| 3
| 2
| null | 2019-11-11T02:14:54
| 2019-11-11T02:14:54
| null |
UTF-8
|
C++
| false
| false
| 809
|
cpp
|
12546 - LCM Pair Sum.cpp
|
#include <stdio.h>
#define mod 1000000007LL
int main() {
int testcase;
int cases, n, i, j;
long long pi, ai, ans;
scanf("%d", &testcase);
cases = 0;
while(testcase--) {
scanf("%d", &n);
ans = 1;
long long N = 1;
for(i = 0; i < n; i++) {
scanf("%lld %lld", &pi, &ai);
long long tmp = 1, sum = 0;
for(j = 0; j < ai; j++) {
sum += tmp;
sum %= mod;
tmp = tmp*pi;
tmp %= mod;
}
N *= tmp;
N %= mod;
tmp = tmp*(ai+1);
tmp %= mod;
sum = (sum+tmp)%mod;
ans *= sum;
ans %= mod;
}
printf("Case %d: %lld\n", ++cases, (ans+N)%mod);
}
return 0;
}
|
a6c8ad1f1d4b4343cd685adde58fbe3ea8ea86ab
|
db57b19e70315c4adb79020c64a1c9d2b4e3cc94
|
/Editor/interface/ComponentLibraryDlg.cpp
|
e8bef67722bb734a9f24643e640be82d40d123d6
|
[] |
no_license
|
rock3125/gforce-x
|
da9d5d75769780939314bf03ac008f9d7362e675
|
3a349ea799dfe1f24fb04bb14b643175730c2d95
|
refs/heads/master
| 2021-12-25T06:27:14.101284
| 2017-02-20T09:32:44
| 2017-02-20T09:32:44
| null | 0
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 2,896
|
cpp
|
ComponentLibraryDlg.cpp
|
#include "editor/stdafx.h"
#include "interface/componentLibraryDlg.h"
#include "interface/progressDlg.h"
#include "d3d9/interface.h"
#include "system/BaseApp.h"
#include "system/objectFactory.h"
#include "system/signals/creationObserver.h"
#pragma warning(disable:4355)
/////////////////////////////////////////////////////////////////////////////
ComponentLibraryDlg::ComponentLibraryDlg(CWnd* pParent)
: CDialog(ComponentLibraryDlg::IDD,pParent)
, list(this)
{
initialised=false;
}
ComponentLibraryDlg::~ComponentLibraryDlg()
{
}
void ComponentLibraryDlg::SetData(WorldObject* obj)
{
};
void ComponentLibraryDlg::Activate()
{
};
void ComponentLibraryDlg::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(ComponentLibraryDlg)
DDX_Control(pDX, IDC_COMPONENTLIBRARY_LIST, list);
//}}AFX_DATA_MAP
// done
initialised=true;
bitmap.LoadBitmap(IDB_WHEEL);
imageList.Create(16,16,ILC_COLOR8,1,0);
imageList.Add(&bitmap,RGB(0,0,0));
list.SetImageList(&imageList,LVSIL_SMALL);
Resize();
RebuildList();
}
BEGIN_MESSAGE_MAP(ComponentLibraryDlg,CDialog)
ON_WM_SIZE()
END_MESSAGE_MAP()
void ComponentLibraryDlg::OnOK()
{
};
void ComponentLibraryDlg::OnCancel()
{
ShowWindow(SW_HIDE);
};
void ComponentLibraryDlg::OnSize(UINT,int,int)
{
if (initialised)
{
Resize();
}
};
void ComponentLibraryDlg::Resize()
{
CRect r;
GetClientRect(&r);
int border=2;
list.SetWindowPos(0,border,border,r.Width()-(border*2),r.Height()-(border*2),SWP_NOZORDER);
};
void ComponentLibraryDlg::DoubleClickListItem(WorldObject::WorldType type)
{
ProgressDlg* dlg = ProgressDlg::Start(this,"Parsing " + ObjectFactory::GetWorldTypeName(type));
CreationObserver::NotifyObservers(type);
dlg->End();
};
void ComponentLibraryDlg::RebuildList()
{
if (initialised)
{
list.DeleteAllItems();
std::vector<WorldObject::WorldType> objList=ObjectFactory::GetCreatableObjectList();
for (int i=0; i<objList.size(); i++)
{
std::string str=ObjectFactory::GetWorldTypeName(objList[i]);
int index=list.InsertItem(i,str.c_str(),0);
list.SetItemData(index,DWORD_PTR(objList[i]));
}
};
};
void ComponentLibraryDlg::NewItem(WorldObject* newItem)
{
RebuildList();
};
void ComponentLibraryDlg::Menu(ClickableList::ComponentCommands cmd)
{
switch (cmd)
{
case ClickableList::COMPONENT_DELETE:
{
// only custom items can be deleted
int index = list.GetSelectedItem();
if (index>0)
{
WorldObject::WorldType t=WorldObject::WorldType(list.GetItemData(index));
if (t > WorldObject::TYPE_LAST)
{
ObjectFactory::RemoveCustomObject(t);
}
}
break;
}
case ClickableList::COMPONENT_LOAD:
{
break;
}
case ClickableList::COMPONENT_SAVE:
{
break;
}
}
};
|
d2af3d2bc04645b2286ce9153bc2a35832404606
|
8c1d48b95f674e9c16ab17e5f29e2d49ed7c17a2
|
/Entrainement/DAY06/4.cpp
|
f09b7d856ff131e164ced3afef9b089eeaec23a0
|
[] |
no_license
|
labintei/C-
|
f2e4bbed02363e3e3a478da4e713c2531b228c1c
|
a0393da868d22e1ba95854e4a949a5994645928c
|
refs/heads/master
| 2023-09-06T09:55:51.413994
| 2021-11-18T19:35:50
| 2021-11-18T19:35:50
| 417,142,508
| 0
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 1,309
|
cpp
|
4.cpp
|
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* 4.cpp :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: labintei <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2021/10/28 17:10:42 by labintei #+# #+# */
/* Updated: 2021/10/28 17:17:30 by labintei ### ########.fr */
/* */
/* ************************************************************************** */
#include <iostream>
#include <string>
// STATC CAST
//
// CONVERSION : REINTERPRETATION : QUALIFIEURS DE TYPES : UPCAST : DOWNCAST
// 5 ACTIONS DE CAST POSSIBLES
// PREMIER CAST (STATIC CAST) CONVERSION SIMPLE ET NAVIGUATION DANS ARBRE
// D HERITAGE
//
int main(void)
{
int a = 42;
double b = a;
int c = b;
//Je souhaite static cast b(double) en int (downcast)
int d = static_cast<int>(b);
return 0;
}
|
49cdd1c58dcf992ff6a1bd399c3ae6adff831d10
|
3ea34c23f90326359c3c64281680a7ee237ff0f2
|
/Data/2324/H
|
83cbbb73e717d7e3201e1bbc330c495d261ce202
|
[] |
no_license
|
lcnbr/EM
|
c6b90c02ba08422809e94882917c87ae81b501a2
|
aec19cb6e07e6659786e92db0ccbe4f3d0b6c317
|
refs/heads/master
| 2023-04-28T20:25:40.955518
| 2020-02-16T23:14:07
| 2020-02-16T23:14:07
| null | 0
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 91,998
|
H
|
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | foam-extend: Open Source Cstd::filesystem::create_directory();FD |
| \\ / O peration | Version: 4.0 |
| \\ / A nd | Web: http://www.foam-extend.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class volVectorField;
location "Data/2324";
object H;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [0 1 -1 0 0 0 0];
internalField nonuniform List<vector>
4096
(
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(1.4013740750224e-12,1.20724909085317e-11,-1.27539362801682e-11)
(2.57448468581748e-12,2.64678121388298e-11,-1.21146332354216e-11)
(2.51635359501473e-12,4.57131072750716e-11,-1.08079388307424e-11)
(2.4875040216212e-12,7.33680662445631e-11,-9.07537382660916e-12)
(2.61917035746727e-12,1.15864896400948e-10,-7.07730877911273e-12)
(2.00355626222727e-12,1.83752621528144e-10,-4.98450108841011e-12)
(-2.32791223296322e-13,2.94422902829657e-10,-2.80142186404882e-12)
(-2.26115910231058e-12,4.78470846058247e-10,-1.3598378342428e-12)
(-3.41841113128864e-12,7.82709365144448e-10,-4.58732264381532e-13)
(-4.19557249041719e-12,1.2086101546646e-09,4.85575522771007e-14)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(2.36461672403771e-12,1.09565552520587e-11,-2.83546925181682e-11)
(4.14718523458022e-12,2.48241453036949e-11,-2.75696762147083e-11)
(4.28395248159795e-12,4.42599288642034e-11,-2.53146012675706e-11)
(4.36223836493555e-12,7.15048436910277e-11,-2.19768878364037e-11)
(3.98831231597398e-12,1.14029942376862e-10,-1.77658007161505e-11)
(3.00492411485918e-12,1.82142301918531e-10,-1.31340567954159e-11)
(-2.17047547087339e-13,2.93597296319784e-10,-8.47323896156218e-12)
(-4.06568090903252e-12,4.78780862774685e-10,-5.13028938404128e-12)
(-6.33433370820874e-12,7.83971883458903e-10,-3.13387357133124e-12)
(-7.82256364948665e-12,1.21004268523615e-09,-1.50435867202881e-12)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(2.41416589676414e-12,9.92295643551745e-12,-4.87830605102201e-11)
(4.69204689774388e-12,2.25662222853988e-11,-4.7841821985597e-11)
(4.68662689236305e-12,4.13350133521889e-11,-4.49802712246619e-11)
(4.52914257113803e-12,6.73779216372496e-11,-4.05244081496173e-11)
(3.88591287681278e-12,1.09184485685861e-10,-3.49136560796051e-11)
(2.91190424481714e-12,1.77500176912687e-10,-2.78349503945428e-11)
(-2.25066354507432e-13,2.90803278427826e-10,-2.02171320970545e-11)
(-5.4097364866502e-12,4.78257510388772e-10,-1.45164259939987e-11)
(-9.0850316229544e-12,7.8474230019246e-10,-1.01512450317174e-11)
(-1.11235696238823e-11,1.21079329353794e-09,-5.38230826272258e-12)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(2.80230929710003e-12,8.89117345048476e-12,-7.85147314342661e-11)
(5.34674692226679e-12,1.96662045130751e-11,-7.74360497931597e-11)
(5.74934154427552e-12,3.65110982437938e-11,-7.45007736516619e-11)
(5.73037997152063e-12,6.08895152527724e-11,-6.97874991171842e-11)
(5.57271288231002e-12,1.00757989378918e-10,-6.33230170996861e-11)
(4.8363155450368e-12,1.68692778832977e-10,-5.45022189819899e-11)
(1.01299003088271e-12,2.84834721248834e-10,-4.40613064276941e-11)
(-5.57937296246857e-12,4.75234116924448e-10,-3.42015211227704e-11)
(-9.37663256653326e-12,7.82437239422969e-10,-2.44458876450959e-11)
(-1.05131123314185e-11,1.20833515128071e-09,-1.30050771964282e-11)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(3.26715217967728e-12,7.35259219102741e-12,-1.22613789128783e-10)
(5.84189177153038e-12,1.60548954488953e-11,-1.21365432902534e-10)
(6.70695482547607e-12,3.02888772139931e-11,-1.18640887875073e-10)
(7.31627071397945e-12,5.22857789993603e-11,-1.14405534193337e-10)
(7.56489846271708e-12,8.92243984245011e-11,-1.0797629319574e-10)
(6.28367269153512e-12,1.55289753891332e-10,-9.89055717590002e-11)
(9.81454771031662e-13,2.73346993578929e-10,-8.72413548224325e-11)
(-4.31883440569848e-12,4.66779612890826e-10,-6.97834949019853e-11)
(-6.53399319000943e-12,7.73669264702974e-10,-4.95396653246136e-11)
(-6.23721624599222e-12,1.19877812700362e-09,-2.60787868094546e-11)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(3.69959995537234e-12,5.53568555999912e-12,-1.89485951426529e-10)
(6.53404173679587e-12,1.23909524727983e-11,-1.88241339911907e-10)
(7.79319951873773e-12,2.43333687898936e-11,-1.86062119370203e-10)
(8.45987802125579e-12,4.31844037694866e-11,-1.82666665739498e-10)
(8.96247586647188e-12,7.65899706780504e-11,-1.76951587876385e-10)
(7.81353089975658e-12,1.39967386752729e-10,-1.67210906731359e-10)
(3.34199586088227e-12,2.57978660460053e-10,-1.51726117602023e-10)
(-1.08454118606411e-12,4.49810147562169e-10,-1.26089023697872e-10)
(-2.42841893246137e-12,7.53575527129071e-10,-9.12614716754365e-11)
(-2.48316425100765e-12,1.17625791136652e-09,-4.84079722926967e-11)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(3.39511487395774e-12,3.78573015361692e-12,-2.96750393249603e-10)
(6.85881381580817e-12,9.34246164482937e-12,-2.95993112001438e-10)
(9.44162427998983e-12,1.91802730495986e-11,-2.9444151717397e-10)
(9.91319217410341e-12,3.45291063369362e-11,-2.91418675498518e-10)
(9.51494448251475e-12,6.35314896904195e-11,-2.85846414261694e-10)
(7.82610461890665e-12,1.21986503721508e-10,-2.74905597154746e-10)
(5.78544367871728e-12,2.3471080976325e-10,-2.53189854637455e-10)
(3.04081120560296e-12,4.18466865246285e-10,-2.17782107134313e-10)
(2.11337306377446e-12,7.13896937456448e-10,-1.62355325565792e-10)
(1.73804851282668e-12,1.13058638395551e-09,-8.8286428978859e-11)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(2.01452804100335e-12,2.48699569593993e-12,-4.76037855867913e-10)
(5.26527578477798e-12,6.9588676111765e-12,-4.76250437995045e-10)
(8.57310821345949e-12,1.46492751361588e-11,-4.75235950501245e-10)
(9.46985799857759e-12,2.71072574513773e-11,-4.72254203600119e-10)
(9.02984890734675e-12,5.25182407696249e-11,-4.66254158017882e-10)
(7.40432253535913e-12,1.0428644737982e-10,-4.53139041875794e-10)
(6.56538914584826e-12,2.02207660054795e-10,-4.25672783380687e-10)
(5.44218901950405e-12,3.65988559410788e-10,-3.74000538906323e-10)
(3.64152748013122e-12,6.42332612908561e-10,-2.88709569082121e-10)
(3.57031566164805e-12,1.04411950093761e-09,-1.63478684359743e-10)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(1.25016662963245e-12,1.84263661364134e-12,-7.7896883223342e-10)
(3.26107445985599e-12,4.87883401791744e-12,-7.79046244755559e-10)
(6.41558218136215e-12,9.99388458300175e-12,-7.77578583184863e-10)
(8.4832739484217e-12,1.91981173459626e-11,-7.73914439668498e-10)
(8.59689010663142e-12,3.88200742232933e-11,-7.66209489380322e-10)
(7.31789790387435e-12,7.83918481568912e-11,-7.4913270315828e-10)
(6.4138592870937e-12,1.52276487836155e-10,-7.13370766026367e-10)
(6.49645146852321e-12,2.82544148986745e-10,-6.43873931229658e-10)
(4.32955097405455e-12,5.18218519414455e-10,-5.20132473015309e-10)
(3.98378089884147e-12,8.81293077688359e-10,-3.12329021823737e-10)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(7.12533160850744e-13,1.19681992482887e-12,-1.20473935162246e-09)
(1.99797765341047e-12,2.65725496010194e-12,-1.20398589156688e-09)
(4.9094966120397e-12,5.14552230379983e-12,-1.20193846481472e-09)
(7.36792740576985e-12,1.01754510607634e-11,-1.1975826566262e-09)
(7.91057129940048e-12,2.08141057674439e-11,-1.18816250454959e-09)
(6.87995435615459e-12,4.24732414015377e-11,-1.1679079359545e-09)
(6.25284716878714e-12,8.34009718546445e-11,-1.12576064373103e-09)
(6.39161612113429e-12,1.60061202588301e-10,-1.04200571929778e-09)
(3.94773768247182e-12,3.11098474253523e-10,-8.8121053848478e-10)
(3.36421355423432e-12,5.69348387889303e-10,-5.69792923817663e-10)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(1.87800668674558e-12,2.21159153488534e-11,-2.4867363832579e-11)
(2.91145711626924e-12,4.92309678895401e-11,-2.34728168023408e-11)
(2.23696700172729e-12,8.4896857800834e-11,-2.04451791033532e-11)
(2.35266152765796e-12,1.34561435194111e-10,-1.68280474319647e-11)
(2.36131669079836e-12,2.10091158069352e-10,-1.25832215598494e-11)
(1.43079664750513e-12,3.28514410516414e-10,-7.93790674038105e-12)
(-8.48768743154593e-13,5.17240005096016e-10,-3.0594840531326e-12)
(-3.47228138875896e-12,8.35494644324558e-10,-3.70347511651875e-13)
(-5.18821926277693e-12,1.44541892252691e-09,1.39540695288872e-13)
(-5.57954551019327e-12,2.8474429783441e-09,6.11702570030867e-14)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(2.61319923712027e-12,2.08526351377735e-11,-5.40192403164858e-11)
(4.15003330574273e-12,4.64168908152338e-11,-5.1847213751806e-11)
(3.87115456245371e-12,8.12431014331954e-11,-4.66933833548164e-11)
(4.27807329845353e-12,1.30302594473406e-10,-3.99340354173939e-11)
(4.20202508624152e-12,2.05550260827915e-10,-3.12133614430957e-11)
(2.98623128683075e-12,3.2447063024444e-10,-2.07785855465759e-11)
(-7.65979232757389e-13,5.15716342599668e-10,-9.9511300237838e-12)
(-5.53874433557743e-12,8.37032657469487e-10,-4.30622538728356e-12)
(-8.73426534068329e-12,1.44803095573976e-09,-2.54373938251806e-12)
(-1.00775306230635e-11,2.84971721900832e-09,-1.53238006987137e-12)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(2.50471035717454e-12,1.89239947035202e-11,-9.27193664371284e-11)
(4.7305139091383e-12,4.20262184837226e-11,-9.01078067201672e-11)
(5.05467892572786e-12,7.48370603061799e-11,-8.39630032644437e-11)
(5.406796885611e-12,1.2172704140421e-10,-7.4579597615527e-11)
(5.23370349863831e-12,1.95148835189082e-10,-6.18172265772364e-11)
(4.10148402703392e-12,3.14567786825784e-10,-4.4671312508402e-11)
(4.27847214475418e-14,5.11452691676433e-10,-2.61923226576375e-11)
(-6.75152398478131e-12,8.3852665843671e-10,-1.7078504421153e-11)
(-1.15489076227119e-11,1.45111934605907e-09,-1.22883134784488e-11)
(-1.40477356295513e-11,2.85202938074153e-09,-6.87610529827464e-12)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(3.26220891545008e-12,1.63274371758619e-11,-1.46733177263101e-10)
(6.02277984494535e-12,3.6216473220397e-11,-1.44107422205309e-10)
(7.25828803959002e-12,6.51122409315691e-11,-1.38011226907866e-10)
(7.86963420743894e-12,1.07817267719399e-10,-1.27654576875443e-10)
(8.2855057190172e-12,1.76419039358553e-10,-1.12497744634934e-10)
(7.79842793240811e-12,2.94830057701843e-10,-9.10415088838283e-11)
(2.6409323958409e-12,5.00973708004534e-10,-6.60630434523918e-11)
(-6.88050240640511e-12,8.37638518032188e-10,-5.01807638636387e-11)
(-1.20494682947578e-11,1.45103271545836e-09,-3.65463962688066e-11)
(-1.39611652499102e-11,2.85014541216961e-09,-1.98757077329807e-11)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(3.83570258445654e-12,1.33380449805507e-11,-2.23715486962978e-10)
(6.78128972016391e-12,2.96134568028191e-11,-2.21600643071744e-10)
(8.42710956783881e-12,5.32644513692054e-11,-2.16302335166574e-10)
(9.98840494625028e-12,8.95470259261075e-11,-2.0728894815058e-10)
(1.11286047724379e-11,1.49970972637988e-10,-1.9325768626464e-10)
(9.94182289357364e-12,2.62117138718111e-10,-1.74990010772978e-10)
(-1.10807203054263e-12,4.74643225255864e-10,-1.57165712712276e-10)
(-7.59319865421857e-12,8.28145763542277e-10,-1.21701766473722e-10)
(-9.90113413132937e-12,1.44075521078334e-09,-8.53694492988726e-11)
(-9.7957874188019e-12,2.83616190831093e-09,-4.4794195390403e-11)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(4.20494384713294e-12,1.0169951083131e-11,-3.38531390833613e-10)
(7.40331202305981e-12,2.26472151230486e-11,-3.36919136494523e-10)
(9.55084162832376e-12,4.11076623099736e-11,-3.32920944547618e-10)
(1.14000975907046e-11,7.00352856486184e-11,-3.26228733258989e-10)
(1.22802757090888e-11,1.21882293954259e-10,-3.15191685725865e-10)
(1.03096248016064e-11,2.28890807615264e-10,-2.98422114962812e-10)
(9.72752653597869e-13,4.51151397165786e-10,-2.74699680770858e-10)
(-4.56881089258957e-12,8.02685449698438e-10,-2.2752210828677e-10)
(-5.60332864269555e-12,1.40818026377387e-09,-1.63201383732082e-10)
(-5.21960913245458e-12,2.7977044986342e-09,-8.58591338813011e-11)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(3.93656808346833e-12,7.05893308196557e-12,-5.20228185023671e-10)
(7.69081302199464e-12,1.62421714148822e-11,-5.19291448349286e-10)
(1.09497805179787e-11,3.04169540125878e-11,-5.16809494207692e-10)
(1.17627798228301e-11,5.26871841934494e-11,-5.12246999838037e-10)
(9.58737629638278e-12,9.52708451169398e-11,-5.04836818333263e-10)
(3.81041844332908e-12,1.9120060646662e-10,-4.90351100934354e-10)
(2.88084588407483e-12,4.10722691224679e-10,-4.49821710463725e-10)
(9.23354724318189e-14,7.47682873611538e-10,-3.93195775536233e-10)
(-3.91198975569788e-13,1.33777789261375e-09,-2.90012420519224e-10)
(-8.14974475982275e-14,2.71713798395499e-09,-1.56180510832145e-10)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(2.87146925043402e-12,4.58288545284895e-12,-8.30833930959434e-10)
(6.33082188423682e-12,1.15083363715061e-11,-8.30732445754878e-10)
(1.02467518654946e-11,2.28370969879776e-11,-8.29249380885814e-10)
(1.13789525217565e-11,4.18278486082692e-11,-8.25472047528565e-10)
(9.61289931156472e-12,8.14140471178388e-11,-8.18373761479775e-10)
(5.83266326320549e-12,1.7087417014501e-10,-8.02110815540391e-10)
(4.82431689016181e-12,3.57143335415431e-10,-7.58656201340915e-10)
(3.59562961916274e-12,6.49555936959263e-10,-6.65792375610456e-10)
(2.52473625201273e-12,1.20870652744911e-09,-5.12055802000071e-10)
(2.91805455057291e-12,2.56509248684479e-09,-2.90934100043183e-10)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(1.97339584058424e-12,2.91996642770728e-12,-1.4364702710597e-09)
(4.0149919469764e-12,7.87637110803232e-12,-1.43616418162459e-09)
(7.59980094420068e-12,1.62882929767309e-11,-1.43429697942675e-09)
(9.80098994544851e-12,3.13923058967653e-11,-1.42921516960149e-09)
(9.52607234045193e-12,6.3293843341119e-11,-1.41800760916132e-09)
(7.47456752729538e-12,1.31799598967363e-10,-1.39237047974719e-09)
(5.79254047189498e-12,2.66387787877979e-10,-1.33325148927654e-09)
(5.23793965260924e-12,4.98744166443528e-10,-1.21125743122741e-09)
(3.64614494340002e-12,9.90355925067688e-10,-9.94481899206164e-10)
(3.59944887425453e-12,2.27692135942114e-09,-6.21369048627172e-10)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(1.15589303010058e-12,1.57467498241875e-12,-2.83495508275347e-09)
(2.6078058613545e-12,4.05183506782394e-12,-2.83381479631664e-09)
(5.69921072730812e-12,8.5347286114443e-12,-2.83138296639832e-09)
(8.12322638993067e-12,1.71095360620113e-11,-2.82506963457866e-09)
(8.47010847173938e-12,3.4957260347534e-11,-2.81022439868625e-09)
(7.20590353421183e-12,7.21035622180449e-11,-2.77722919057419e-09)
(5.89889459016893e-12,1.44876346170462e-10,-2.70610733696741e-09)
(5.65763789648575e-12,2.83670028672876e-10,-2.56116838504014e-09)
(3.6285972688803e-12,6.18633011278441e-10,-2.2764643344248e-09)
(2.91967762596959e-12,1.65671199141987e-09,-1.65709169355617e-09)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(1.74673986758002e-12,3.00106501115301e-11,-3.34650766710967e-11)
(2.6978964912591e-12,6.589231063651e-11,-3.19810914470911e-11)
(2.27359169867771e-12,1.12283764029277e-10,-2.80063858873976e-11)
(2.36667637660947e-12,1.76054507566109e-10,-2.23372781844865e-11)
(2.25689911239738e-12,2.69807891055406e-10,-1.50672158332324e-11)
(5.9615423218984e-13,4.07929147553463e-10,-6.39095994849604e-12)
(-2.01424278855631e-12,6.10856264308564e-10,1.74141965182568e-12)
(-5.52018274068551e-12,9.03352389002845e-10,4.587605933763e-12)
(-7.72188203727074e-12,1.32080627353038e-09,3.51257752087746e-12)
(-7.79261591767773e-12,1.83126275948248e-09,1.50725082921293e-12)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(2.36981310620049e-12,2.90062726228382e-11,-7.32423002119498e-11)
(3.3868752397365e-12,6.26678678259003e-11,-7.00356009320413e-11)
(3.51784775111791e-12,1.07142471262592e-10,-6.26765465922367e-11)
(4.13295239404142e-12,1.69700852693964e-10,-5.19005886537811e-11)
(4.16867482867752e-12,2.62175730743894e-10,-3.66341285236829e-11)
(2.06161918273029e-12,4.01417369201466e-10,-1.64469949353691e-11)
(-2.1472329472436e-12,6.10196152076809e-10,3.51004093241908e-12)
(-8.7952313060785e-12,9.07829179559256e-10,8.42742408030195e-12)
(-1.28340149728285e-11,1.32635905918488e-09,5.44377724490335e-12)
(-1.39220724258634e-11,1.83589937731252e-09,1.91228430532459e-12)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(2.48970816588349e-12,2.6179635912684e-11,-1.25956292662061e-10)
(4.39545571797587e-12,5.6204971803994e-11,-1.21462361003879e-10)
(5.39609265194043e-12,9.70560878548286e-11,-1.12130911322584e-10)
(6.55419953142439e-12,1.55472169093609e-10,-9.67033036414198e-11)
(6.81758526041706e-12,2.43685023200072e-10,-7.291331789139e-11)
(5.36022330019859e-12,3.8435517905139e-10,-3.78154184014846e-11)
(1.4079501576944e-12,6.0881549653181e-10,2.00218481824497e-12)
(-1.06535745240196e-11,9.17255080428903e-10,6.4086107039761e-12)
(-1.68744852010643e-11,1.33611457760962e-09,3.93034631154735e-13)
(-1.90398723566261e-11,1.84303190297801e-09,-1.90592240300271e-12)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(3.62584605220553e-12,2.16338999821697e-11,-1.96555993698369e-10)
(6.52960096629115e-12,4.69177789480873e-11,-1.91715900398699e-10)
(8.74942756885928e-12,8.15851320633116e-11,-1.81931114170301e-10)
(1.09830437594462e-11,1.31845766339801e-10,-1.64298992879862e-10)
(1.32773366891445e-11,2.09318407852932e-10,-1.35036516262381e-10)
(1.55328814841978e-11,3.45508014900534e-10,-8.86687930764547e-11)
(1.30891355559902e-11,6.01062386346234e-10,-2.52777448345141e-11)
(-1.10221155109058e-11,9.32955611912591e-10,-2.3010118027583e-11)
(-1.84426521551486e-11,1.34738574544883e-09,-2.5219855880012e-11)
(-1.98533691249884e-11,1.8476182578623e-09,-1.64084675433418e-11)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(4.88895259024656e-12,1.68105663214074e-11,-2.90925292962661e-10)
(8.4492234956286e-12,3.67779547380945e-11,-2.87073783170091e-10)
(1.15705116099859e-11,6.33358553812615e-11,-2.78420341129104e-10)
(1.54688833380015e-11,1.01051056427914e-10,-2.62673902301088e-10)
(2.09496079654897e-11,1.5906947062582e-10,-2.3729255480969e-10)
(2.53438559346854e-11,2.68628428034045e-10,-2.06678343195135e-10)
(-1.30801901798891e-11,5.30057296215726e-10,-2.16066987374692e-10)
(-1.84652019852471e-11,9.4810895269818e-10,-1.40125516807168e-10)
(-1.79014410286297e-11,1.3507933083874e-09,-9.5719912115459e-11)
(-1.61325731330173e-11,1.83894570817812e-09,-5.03807210837097e-11)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(5.70370750957397e-12,1.24012232445621e-11,-4.22781598688272e-10)
(9.81016378406092e-12,2.67133234675592e-11,-4.20304168321389e-10)
(1.35493386368581e-11,4.4958867584686e-11,-4.14163219143494e-10)
(1.77111515140728e-11,6.97876827379881e-11,-4.0335092378207e-10)
(2.21221537822965e-11,1.10596713005765e-10,-3.86688153307389e-10)
(2.4277391758312e-11,2.09688906852499e-10,-3.6492348176784e-10)
(-5.77611388888849e-12,5.33569475519689e-10,-3.62850976078559e-10)
(-1.38869593610414e-11,9.33707931438342e-10,-2.87946025559547e-10)
(-1.25432073326704e-11,1.31964600488988e-09,-2.0070164453156e-10)
(-1.05122283355322e-11,1.79657054873498e-09,-1.03556351980985e-10)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(5.47587903883681e-12,8.65153172351746e-12,-6.13662398965054e-10)
(9.94269392316517e-12,1.79370038128958e-11,-6.12183912794601e-10)
(1.39671431730643e-11,2.9485678307176e-11,-6.09502347855433e-10)
(1.52119339031954e-11,4.3543974499363e-11,-6.06022466010287e-10)
(8.95845689688409e-12,6.4207875874951e-11,-6.05600810477156e-10)
(-1.63925357058793e-11,1.24231014100187e-10,-6.11179644608977e-10)
(-1.65733233911345e-13,4.86800632459473e-10,-5.3023287393909e-10)
(-4.96408289296576e-12,8.7096250919614e-10,-5.10454353514571e-10)
(-5.15174349743728e-12,1.23482328908782e-09,-3.54623018474072e-10)
(-4.2165111691133e-12,1.7001578002924e-09,-1.82406725991998e-10)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(4.43290307126142e-12,5.55133026011663e-12,-8.95546140111664e-10)
(8.47972227878908e-12,1.21438717807216e-11,-8.94585174802009e-10)
(1.30182225187769e-11,2.13668387575972e-11,-8.93419151831965e-10)
(1.47162091855833e-11,3.52402678284587e-11,-8.92229902017755e-10)
(1.14701571481845e-11,6.63943432201826e-11,-8.93659974459512e-10)
(1.45262024163161e-12,1.61356549804292e-10,-8.97841428623519e-10)
(2.71603869728037e-12,4.44752340704687e-10,-8.74688747922824e-10)
(6.70826523327429e-13,7.21805158189364e-10,-7.45524870679479e-10)
(-2.46363323098479e-13,1.06930773267518e-09,-5.4336404929026e-10)
(1.55081931637704e-13,1.52297932716745e-09,-2.92913311904548e-10)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(3.01259785065128e-12,3.23459138811585e-12,-1.30619445037699e-09)
(5.97232578929405e-12,8.10180523878095e-12,-1.30549880621845e-09)
(1.02715554848651e-11,1.60523788197196e-11,-1.30398867022797e-09)
(1.28761993400254e-11,2.99121688728859e-11,-1.30029520408047e-09)
(1.2225525920321e-11,6.17784160276842e-11,-1.29308640705202e-09)
(8.05161380559808e-12,1.41795014281745e-10,-1.27519800832307e-09)
(5.30992413015817e-12,3.13607163800615e-10,-1.21897695513973e-09)
(3.53654540095469e-12,5.22755060418231e-10,-1.0708159244933e-09)
(2.25620815447439e-12,8.2257593504493e-10,-8.28701778026192e-10)
(2.43976824818319e-12,1.2337187640729e-09,-4.75735055610719e-10)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(1.59028157515367e-12,1.55799974525304e-12,-1.81013223442883e-09)
(4.22781101055308e-12,4.07326272975756e-12,-1.80940169716842e-09)
(7.92060751949619e-12,8.69127496437231e-12,-1.80743591345005e-09)
(1.03875265593153e-11,1.75805097851366e-11,-1.8018432683403e-09)
(1.04321607075019e-11,3.72353803859991e-11,-1.78809137148542e-09)
(8.18761214486714e-12,8.0701262000172e-11,-1.7554321628498e-09)
(5.83628883377076e-12,1.63961760404636e-10,-1.67885137218835e-09)
(4.62361595282074e-12,2.81876730514804e-10,-1.51627465135526e-09)
(2.88896767921519e-12,4.71432620168732e-10,-1.23372701235628e-09)
(2.5399754903636e-12,7.59954200391714e-10,-7.61184105640575e-10)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(1.26713213228052e-12,3.56027843364749e-11,-4.00869298218934e-11)
(1.94763374215462e-12,7.69467825306748e-11,-3.85536437947443e-11)
(1.74577676246863e-12,1.2949400438819e-10,-3.3812707087699e-11)
(1.45026889751038e-12,1.99473178011104e-10,-2.58959746378539e-11)
(1.21280353917786e-12,2.96750301884203e-10,-1.4760078159348e-11)
(-1.02444701611635e-12,4.32137340271442e-10,-3.76183654533448e-13)
(-4.20031683875671e-12,6.16750496765391e-10,1.29359023013381e-11)
(-8.92194488421246e-12,8.45679247390084e-10,1.52576803230319e-11)
(-1.1269341000146e-11,1.10365600737586e-09,1.047537402293e-11)
(-1.09219829184249e-11,1.32427010255777e-09,4.5929895476931e-12)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(1.98975053644939e-12,3.43016114289562e-11,-8.66204239453649e-11)
(2.49071692184856e-12,7.29338769471593e-11,-8.29065721028898e-11)
(2.82827322040264e-12,1.22541224946566e-10,-7.3753523357416e-11)
(3.09517586434256e-12,1.89789938455788e-10,-5.83841918462296e-11)
(2.472248784163e-12,2.84785615563712e-10,-3.46030455600459e-11)
(-8.33226534959706e-13,4.22337607115205e-10,-4.20212832227325e-13)
(-5.68396055013874e-12,6.18688452958327e-10,3.64071947280525e-11)
(-1.52374853402739e-11,8.54114213570476e-10,3.69261119389853e-11)
(-1.90580404579598e-11,1.11261810677459e-09,2.18565883259038e-11)
(-1.91423137861907e-11,1.33178622419468e-09,8.58496498268592e-12)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(2.54151243821103e-12,3.05562624619822e-11,-1.46762608181695e-10)
(4.35119889257614e-12,6.42995104254042e-11,-1.41256563274996e-10)
(5.43944076229002e-12,1.08273165171734e-10,-1.28909335146011e-10)
(6.39061653522179e-12,1.68014212214113e-10,-1.06465481093341e-10)
(6.08630111765574e-12,2.54861581942492e-10,-6.84822407370283e-11)
(4.38978423122029e-12,3.93555803380379e-10,-3.92905368808258e-12)
(4.7546344576675e-12,6.30339535928852e-10,9.3655103517651e-11)
(-2.03385299350327e-11,8.79296413870966e-10,7.16369497118495e-11)
(-2.58466960062096e-11,1.13239073788805e-09,3.2169815657409e-11)
(-2.55321496434891e-11,1.34540141572215e-09,9.77992393545038e-12)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(3.60908641333921e-12,2.47893949839302e-11,-2.24649396515087e-10)
(6.88463894788839e-12,5.22315212757973e-11,-2.18111209124904e-10)
(9.36658296046139e-12,8.72164045946969e-11,-2.04113069921705e-10)
(1.25152770538301e-11,1.33029342482918e-10,-1.7815742249204e-10)
(1.7158550730343e-11,1.97872730563383e-10,-1.30672482900592e-10)
(2.90214201087287e-11,3.16264919669373e-10,-3.23832516465087e-11)
(8.18265988796046e-11,6.88586590533457e-10,2.4364528324569e-10)
(-2.39657184442033e-11,9.46751835953354e-10,9.98924613184991e-11)
(-3.06616034302879e-11,1.16742474628504e-09,2.09960992502839e-11)
(-2.7589286984439e-11,1.36193478488879e-09,-1.57757327246583e-12)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(5.44678587452128e-12,1.81898141490638e-11,-3.24224910420953e-10)
(9.86041272518721e-12,3.87119664842678e-11,-3.18132416352177e-10)
(1.42010605785298e-11,6.292866891867e-11,-3.04864920208833e-10)
(2.13509095365155e-11,8.94471847281866e-11,-2.80563589898398e-10)
(3.88081539710217e-11,1.13227366776764e-10,-2.37081150606952e-10)
(9.36720212957302e-11,1.06200423090512e-10,-1.56055721331346e-10)
(-9.25338400513393e-11,1.31287603242448e-09,-2.57170747997818e-17)
(-4.84697854171691e-11,1.11505316224976e-09,-9.68701920781913e-11)
(-3.20933285628968e-11,1.21288014995396e-09,-7.33401815442557e-11)
(-2.41381347732591e-11,1.36872925280064e-09,-4.24565659592514e-11)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(6.97596866375347e-12,1.22788858345382e-11,-4.52484930211346e-10)
(1.24455342608265e-11,2.56855370886494e-11,-4.48314386732652e-10)
(1.82102325529772e-11,3.90476902819575e-11,-4.38648487359027e-10)
(2.72920892779896e-11,4.67278961066969e-11,-4.215086903241e-10)
(4.67463193735209e-11,3.75185688120327e-11,-3.92058537491091e-10)
(1.0766277882133e-10,-7.23519503092951e-12,-3.23189396885209e-10)
(-3.39122213476778e-11,1.31721242491885e-09,-3.28796582567193e-16)
(-3.83859181467612e-11,1.12962892203158e-09,-2.86706203623575e-10)
(-2.48657840811573e-11,1.19672721936128e-09,-2.00075271251924e-10)
(-1.76558318741623e-11,1.33300497189701e-09,-1.031088011224e-10)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(7.09759433184074e-12,7.9919480739357e-12,-6.19543608473381e-10)
(1.3054261016129e-11,1.5136315516287e-11,-6.1718371065884e-10)
(1.86061008775219e-11,1.94928019809693e-11,-6.1339428599191e-10)
(2.30939850409752e-11,9.72466152224444e-12,-6.11119016571188e-10)
(1.23508236833706e-11,-5.40084956157842e-11,-6.29990957581298e-10)
(-1.3446484207985e-10,-3.65439053779782e-10,-7.77924664352521e-10)
(2.21040380965381e-11,1.57000607931281e-09,-1.71134308083339e-09)
(-1.163806692678e-11,1.10414922364901e-09,-7.49987289709013e-10)
(-1.18524795669536e-11,1.11437036094953e-09,-4.00733645175773e-10)
(-9.44476403601808e-12,1.23552832973083e-09,-1.87243117498582e-10)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(5.78867663363451e-12,5.21309502585061e-12,-8.33414763140555e-10)
(1.13557658506689e-11,9.53286839476052e-12,-8.32087624078622e-10)
(1.71434326424645e-11,1.19619163703622e-11,-8.31165965370032e-10)
(2.14743805827828e-11,7.8479383326516e-12,-8.33944403384065e-10)
(2.02675385048327e-11,-4.83261198214242e-12,-8.54161703745685e-10)
(-2.1385249367373e-12,2.15637870182838e-11,-9.28707943055328e-10)
(4.69733835819747e-12,6.30754273761589e-10,-1.09714654625033e-09)
(-2.4398970948332e-12,7.75968854871285e-10,-8.05919175718977e-10)
(-3.96530307835511e-12,9.06553746964391e-10,-5.25379705983701e-10)
(-3.49766687864948e-12,1.05130529845804e-09,-2.64694260111873e-10)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(3.9935453348516e-12,3.30137666390813e-12,-1.08233457660365e-09)
(8.49073230785145e-12,6.68275947680133e-12,-1.08155953843071e-09)
(1.39391931928195e-11,1.04649850583751e-11,-1.08053210664737e-09)
(1.79990613992361e-11,1.54598286502411e-11,-1.07997786863818e-09)
(1.8880162833012e-11,3.17966998837798e-11,-1.0836984500471e-09)
(1.29243129037746e-11,1.0308962238796e-10,-1.09355494964294e-09)
(6.79429687965163e-12,3.42269445214944e-10,-1.08179066498227e-09)
(2.30072883742945e-12,4.99998379569957e-10,-9.0480360421317e-10)
(4.3280061512861e-13,6.48156111605475e-10,-6.54900302943681e-10)
(4.69276318642562e-13,7.88336114600022e-10,-3.51345632206388e-10)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(2.41774406000116e-12,1.70668908593609e-12,-1.29647112456158e-09)
(6.33529002194096e-12,3.63935137060009e-12,-1.29553997711304e-09)
(1.10192373741194e-11,6.56530670909298e-12,-1.29374995492395e-09)
(1.42161394895686e-11,1.23045840729819e-11,-1.29013901972578e-09)
(1.5008332457892e-11,2.72879304359184e-11,-1.28240388377837e-09)
(1.23080834836551e-11,6.96979699077316e-11,-1.2619699075073e-09)
(7.22132840515852e-12,1.62462945799884e-10,-1.19999783722034e-09)
(3.95270746881906e-12,2.5101750803934e-10,-1.0394436576524e-09)
(1.77868113206976e-12,3.46044416873195e-10,-7.87937169514568e-10)
(1.31007024160235e-12,4.3884285475022e-10,-4.40737860127269e-10)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(1.03501901265713e-12,3.90948500316008e-11,-4.44730989374771e-11)
(1.21960261863079e-12,8.34835633117458e-11,-4.22398496507981e-11)
(7.81823754249379e-13,1.37800331504664e-10,-3.67606307848146e-11)
(-2.38802567395633e-15,2.07170221561432e-10,-2.76513707395998e-11)
(-1.20640464515266e-12,2.98895587485379e-10,-1.40348342033186e-11)
(-4.53679981573139e-12,4.21433715257863e-10,4.43323248044652e-12)
(-8.46005105341228e-12,5.78919801115016e-10,2.30151524770201e-11)
(-1.25746047645095e-11,7.53229832785059e-10,2.49018413390405e-11)
(-1.43490559236494e-11,9.18985093547957e-10,1.67115535872917e-11)
(-1.38451150075786e-11,1.03338375814494e-09,7.73601737767998e-12)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(2.02124766098604e-12,3.7370814155622e-11,-9.55696257830433e-11)
(1.97203469811175e-12,7.87470513238444e-11,-9.07615453943777e-11)
(1.72700148405911e-12,1.29440272261027e-10,-7.99773526696785e-11)
(1.0897558197961e-12,1.94384858183233e-10,-6.15440964204182e-11)
(-1.78655032238694e-12,2.82225997752289e-10,-3.22331200454649e-11)
(-8.87883036040503e-12,4.05429958733227e-10,1.2518652705162e-11)
(-1.78539607315661e-11,5.79881436555134e-10,7.03988527713234e-11)
(-2.53501620277881e-11,7.62549901936006e-10,6.73774562845244e-11)
(-2.55590482281414e-11,9.28559184400782e-10,3.88205616188853e-11)
(-2.41725403309296e-11,1.04133743620017e-09,1.57832715595843e-11)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(2.80233500953386e-12,3.32705161464883e-11,-1.5771814262024e-10)
(4.07195991322765e-12,6.90143453645347e-11,-1.51195555436106e-10)
(4.05234728666648e-12,1.1260275322313e-10,-1.36718851412223e-10)
(3.39224591005028e-12,1.67216929460278e-10,-1.10221341089125e-10)
(-1.47803455220509e-12,2.40771602052077e-10,-6.46173247418479e-11)
(-1.59034892634532e-11,3.52612199764445e-10,1.95087712868927e-11)
(-3.1474266341051e-11,5.92456736590241e-10,2.12354512403063e-10)
(-4.83268179630141e-11,7.95394149993586e-10,1.63066646046026e-10)
(-3.84908126812867e-11,9.53308767489744e-10,7.13198823894045e-11)
(-3.22855948745623e-11,1.05775928608981e-09,2.32987976685185e-11)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(3.67047985801178e-12,2.73317274037247e-11,-2.34426132019504e-10)
(6.40605453623096e-12,5.58671800880159e-11,-2.26861670843743e-10)
(7.69867120683996e-12,8.84381514503811e-11,-2.10412887355617e-10)
(8.61249521712694e-12,1.24759928880243e-10,-1.80925549741757e-10)
(3.51468326287652e-12,1.60718996780974e-10,-1.3153401032003e-10)
(-3.694261820466e-11,1.65950517831216e-10,-5.70792980710546e-11)
(-3.98710021084215e-10,6.77531100062048e-10,9.83702585192035e-17)
(-1.13370682672374e-10,8.97550969556042e-10,3.87169749902355e-10)
(-5.35433345765262e-11,1.00456429230549e-09,9.59605464402878e-11)
(-3.59613281690216e-11,1.08217978503511e-09,1.89268049348243e-11)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(5.26522012026085e-12,1.99102687335213e-11,-3.30106047056373e-10)
(9.61934597746075e-12,4.05916736401806e-11,-3.22542280664053e-10)
(1.37807089048081e-11,6.15825327267999e-11,-3.06433627305265e-10)
(2.0587758866545e-11,7.96072619972933e-11,-2.77061184976252e-10)
(3.34915226601612e-11,8.92915317476383e-11,-2.2492819775751e-10)
(5.10519438029755e-11,8.30072861480678e-11,-1.3558426218776e-10)
(-6.61845979099111e-17,4.07058317384212e-16,-1.65528890983216e-17)
(-8.65755557328909e-11,1.19255455586001e-09,3.36217605166281e-17)
(-4.6824013555242e-11,1.08297790017954e-09,-2.5638921899956e-11)
(-3.08704198287581e-11,1.10146378699951e-09,-2.57947678455528e-11)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(7.09236294565917e-12,1.29648717833209e-11,-4.46248202124294e-10)
(1.33288564595771e-11,2.5739373780414e-11,-4.40438983948913e-10)
(2.06253238190167e-11,3.52779365013323e-11,-4.27447007677634e-10)
(3.48451710294564e-11,3.44315182545459e-11,-4.02668901186571e-10)
(6.94042431954315e-11,1.4852919925452e-11,-3.54240913120315e-10)
(1.42677569481628e-10,-2.40862392740194e-11,-2.4773041744581e-10)
(-9.1464021867327e-19,3.08190336923422e-16,-3.0248037228117e-17)
(-9.95371521359365e-11,1.18725199127741e-09,-1.50066294540204e-16)
(-3.9475395798885e-11,1.07575533395169e-09,-1.35080939263784e-10)
(-2.32879908305179e-11,1.07349439612282e-09,-8.48295202444416e-11)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(7.51654956537213e-12,8.03518550560037e-12,-5.83675886176867e-10)
(1.48682834707498e-11,1.40662665031208e-11,-5.79896119396405e-10)
(2.38617170674048e-11,1.39428990945678e-11,-5.72501858609898e-10)
(4.38426492406501e-11,-4.90151676837021e-12,-5.60051519230121e-10)
(1.11108646820966e-10,-6.61371428191755e-11,-5.37336131400946e-10)
(4.11950733602859e-10,-1.99379615648216e-10,-4.62359334264438e-10)
(5.25234977325948e-17,4.24114044501715e-16,-5.23884296869407e-16)
(-3.27113426823262e-11,1.27528614073537e-09,-8.0396783785574e-10)
(-1.75263932589597e-11,1.01272052379427e-09,-3.88146186626633e-10)
(-1.24648502618572e-11,9.84289761292289e-10,-1.73380788552736e-10)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(6.37325593355455e-12,4.97598732183589e-12,-7.39626861158708e-10)
(1.32842160601162e-11,7.77375057950212e-12,-7.37555919320642e-10)
(2.14188019684248e-11,3.93718625292132e-12,-7.34570907975117e-10)
(3.40797906268659e-11,-1.96048175608522e-11,-7.34555217411318e-10)
(5.8184465948525e-11,-1.00831411625797e-10,-7.53072317543558e-10)
(8.47742428886062e-11,-3.94445336095068e-10,-8.49394539812583e-10)
(1.95479637355429e-12,8.03967770983415e-10,-1.30916785715664e-09)
(-7.00889152887785e-12,7.96923983944515e-10,-8.1133139614212e-10)
(-6.25311359126267e-12,7.82530398823025e-10,-4.82572564929154e-10)
(-5.22274313241897e-12,8.06271324269579e-10,-2.31258214060033e-10)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(4.81319473989867e-12,3.17805605103786e-12,-8.93540218853601e-10)
(1.05067086306584e-11,5.19014729621503e-12,-8.92490044728722e-10)
(1.72846335329688e-11,4.27129647280691e-12,-8.90748343566074e-10)
(2.48748873853755e-11,-1.7523815121709e-12,-8.90467982611295e-10)
(3.32454318767149e-11,-1.12465638167305e-11,-8.98750020479241e-10)
(3.45516807233358e-11,1.28385880357809e-11,-9.27536966892177e-10)
(9.61373552560314e-12,3.44307441394281e-10,-9.73527571670307e-10)
(1.37829909856936e-12,4.63090602121427e-10,-7.74519052448817e-10)
(-1.01017538987083e-12,5.26839582129019e-10,-5.30662283643316e-10)
(-1.38309603791171e-12,5.73151117730971e-10,-2.72049115418932e-10)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(3.1932856974043e-12,1.60009185605233e-12,-1.00031017988047e-09)
(8.18461920344392e-12,2.95944316461511e-12,-9.99645057066079e-10)
(1.39736088850436e-11,3.74817147934028e-12,-9.97896422795284e-10)
(1.8785587615141e-11,5.24352991311833e-12,-9.95009945017579e-10)
(2.18622866227432e-11,1.24614271801489e-11,-9.91137543918883e-10)
(2.00339831044196e-11,4.6405792986371e-11,-9.81485977098472e-10)
(9.13009463710944e-12,1.49968856701022e-10,-9.3888848295815e-10)
(3.46372737032541e-12,2.18861195415743e-10,-7.88947714758522e-10)
(6.23788617990057e-13,2.67448767934302e-10,-5.70123123007389e-10)
(-5.84935135488803e-13,3.01152710550924e-10,-3.02219875775031e-10)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(5.25805601959921e-13,4.14646785488092e-11,-4.61069499876852e-11)
(4.76895740550082e-13,8.74757199492853e-11,-4.36293056481206e-11)
(3.26229526747297e-14,1.40884659145973e-10,-3.82593829330859e-11)
(-8.33561183761793e-13,2.06392188762164e-10,-2.94839855323555e-11)
(-3.00488159582061e-12,2.89814605848495e-10,-1.54524734912783e-11)
(-7.11496328769649e-12,3.96044673671731e-10,3.70187430978873e-12)
(-1.13083753554878e-11,5.26339863270224e-10,2.28823774543505e-11)
(-1.37043861637951e-11,6.60788207272429e-10,2.55175576226367e-11)
(-1.4947610566787e-11,7.75852165206828e-10,1.77050425705094e-11)
(-1.40627756850742e-11,8.4569918703268e-10,8.48208705932995e-12)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(1.31346528146905e-12,3.89907261189299e-11,-9.80825399326669e-11)
(9.20547932708486e-13,8.20171404016636e-11,-9.31768584748121e-11)
(1.31264272706605e-13,1.31916958433554e-10,-8.25417411696312e-11)
(-1.05329183222027e-12,1.923386878583e-10,-6.41971956569884e-11)
(-5.08392737279443e-12,2.70535957680979e-10,-3.43919451292777e-11)
(-1.3941271457808e-11,3.75787565345619e-10,1.10340668623588e-11)
(-2.74078642799035e-11,5.21859767373384e-10,6.97846075788575e-11)
(-2.96375154196965e-11,6.66218218358689e-10,7.02016062961119e-11)
(-2.72713412578961e-11,7.82777980164108e-10,4.19883677484794e-11)
(-2.48111186609552e-11,8.51931248791096e-10,1.7543588532456e-11)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(2.21853656816525e-12,3.42633559969632e-11,-1.59389676749736e-10)
(2.74242116586929e-12,7.15270801494961e-11,-1.52997744507393e-10)
(1.71943873630581e-12,1.14032556746694e-10,-1.38803437098033e-10)
(2.45230142810578e-13,1.63453587803855e-10,-1.12408001457287e-10)
(-5.55152530988762e-12,2.25576567719462e-10,-6.71061783812952e-11)
(-2.20875484463842e-11,3.15645459533637e-10,1.51111537192611e-11)
(-6.72607634558142e-11,5.17700667213061e-10,2.00163568688589e-10)
(-5.87368738689326e-11,6.8937217905037e-10,1.6826801177978e-10)
(-4.17252527761571e-11,8.02604855841756e-10,7.74946439937891e-11)
(-3.34072961515113e-11,8.65393508055818e-10,2.64022359294848e-11)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(3.52747735247042e-12,2.83591461926565e-11,-2.32936794694354e-10)
(5.23277749594134e-12,5.82622493177191e-11,-2.25148115053605e-10)
(5.06695231659153e-12,8.9441189466501e-11,-2.08357040610931e-10)
(4.37362267834472e-12,1.20528348449827e-10,-1.78836658568682e-10)
(4.87436047239134e-13,1.45103003310927e-10,-1.31173003013669e-10)
(-1.10787829628297e-11,1.29789027250317e-10,-6.31115094555747e-11)
(-1.08348979612579e-10,5.44654917203137e-10,5.52588880669279e-17)
(-1.17165065514271e-10,7.70405845268524e-10,3.88148675476057e-10)
(-5.49232009450877e-11,8.46091137400708e-10,1.05672925100528e-10)
(-3.63185251985554e-11,8.86202445675999e-10,2.38019504010661e-11)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(4.6468506781172e-12,2.12904827759089e-11,-3.21432592772457e-10)
(8.36299247845636e-12,4.30335877142997e-11,-3.13149989128898e-10)
(1.07128628012402e-11,6.28620378833953e-11,-2.95827651373507e-10)
(1.36305153905761e-11,7.78448851690343e-11,-2.65025719669015e-10)
(1.85861989125702e-11,8.3830006404238e-11,-2.12026119393497e-10)
(2.25612235901946e-11,7.70935161476075e-11,-1.25587044396755e-10)
(-1.74912670640705e-17,2.05414232307709e-16,-1.55493289948985e-17)
(-5.56340356285751e-11,1.03647541867285e-09,3.85015023378566e-17)
(-3.94456013817741e-11,9.15429004117695e-10,-1.4426406558078e-11)
(-2.86957967976054e-11,9.02850681989151e-10,-1.90617067495263e-11)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(6.2128310480204e-12,1.43706907163263e-11,-4.23922296446854e-10)
(1.20099874655578e-11,2.80691290619579e-11,-4.16787906332678e-10)
(1.71822547347691e-11,3.69564720815981e-11,-4.01392631174828e-10)
(2.57502179860374e-11,3.5429254703737e-11,-3.72878798579743e-10)
(4.38838102655712e-11,1.83412217263134e-11,-3.18703440379774e-10)
(7.02405586580521e-11,-1.11247804841236e-11,-2.10053347198524e-10)
(2.97990951512027e-18,1.21547933524282e-16,-2.57332392754729e-17)
(-5.24905123964077e-11,1.00643990605749e-09,-1.11233864834072e-16)
(-2.66920046608169e-11,9.02303163207531e-10,-1.12444387672529e-10)
(-1.89128762444702e-11,8.7547633051401e-10,-7.2216482943734e-11)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(6.7959809686491e-12,8.93203143656816e-12,-5.35093667384017e-10)
(1.37665386078902e-11,1.58257495956497e-11,-5.30044943143889e-10)
(2.14170905292934e-11,1.54264159993336e-11,-5.19419025054325e-10)
(3.58305622039564e-11,-2.47675103113418e-12,-5.00201050748642e-10)
(7.08261184910557e-11,-5.34013257168427e-11,-4.62310130164191e-10)
(1.44657643669544e-10,-1.47079215943383e-10,-3.61746952138616e-10)
(1.96255703923118e-17,1.95589177358056e-16,-2.63013055899453e-16)
(2.98291628793986e-11,1.06604381509861e-09,-6.84435978848031e-10)
(-2.10166636159921e-12,8.425714688199e-10,-3.33669692786839e-10)
(-7.82720179189336e-12,7.94449142852294e-10,-1.49155531667223e-10)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(6.1002453662939e-12,5.41431178651356e-12,-6.49909623004757e-10)
(1.28828079978544e-11,8.68182660528565e-12,-6.46894628989388e-10)
(2.10690011847421e-11,3.66847613624895e-12,-6.41184471660027e-10)
(3.47444547104424e-11,-2.2807846591258e-11,-6.35470838304462e-10)
(6.49218404084834e-11,-1.08622048703443e-10,-6.42168174415806e-10)
(1.3726363610186e-10,-3.97841549733184e-10,-7.13358589614871e-10)
(-3.62213350518301e-11,6.84435919734501e-10,-1.1070616583857e-09)
(-1.93434091877113e-12,6.7811361722775e-10,-6.9060718230795e-10)
(-1.87664776632634e-12,6.44728142979453e-10,-4.07564055970778e-10)
(-3.36075065387241e-12,6.38952666173024e-10,-1.93072260097849e-10)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(5.34098481007447e-12,3.43171316241674e-12,-7.50860719761017e-10)
(1.09957115996198e-11,5.71305942274565e-12,-7.48889890810418e-10)
(1.75273975715619e-11,3.38806327520766e-12,-7.45221734836548e-10)
(2.61610138280365e-11,-6.08706494203536e-12,-7.41854622425541e-10)
(3.83243872927823e-11,-2.20081824460193e-11,-7.45015644540616e-10)
(4.69750805508502e-11,-1.10501077298825e-11,-7.66496734160293e-10)
(4.94380099739136e-12,2.92283668047226e-10,-8.07208941404107e-10)
(1.7509369987498e-12,3.9079226419225e-10,-6.36292029398206e-10)
(-2.32529419539468e-13,4.25769429653165e-10,-4.27668415129522e-10)
(-1.43380427673888e-12,4.43048281440762e-10,-2.15047874136997e-10)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(4.12825473906371e-12,1.75373886777514e-12,-8.1255855043414e-10)
(9.39542809726464e-12,3.36331021802325e-12,-8.11223247456106e-10)
(1.48353025866798e-11,3.20006409974051e-12,-8.07717606768666e-10)
(2.01567164295624e-11,2.5668501125026e-12,-8.02770350342497e-10)
(2.46721469824824e-11,6.57144268976489e-12,-7.97325033957739e-10)
(2.38422819504668e-11,3.39430718678606e-11,-7.87551479991128e-10)
(9.15818313850455e-12,1.26886426820953e-10,-7.50672603282749e-10)
(3.50033103493469e-12,1.82269823439769e-10,-6.21391433952682e-10)
(1.69309319938306e-13,2.11813885289602e-10,-4.38086259101628e-10)
(-1.65210035961567e-12,2.26834408131184e-10,-2.26369593449133e-10)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(5.22113692336554e-13,4.34285038640223e-11,-4.71784567452786e-11)
(5.6555257310861e-13,9.01479902300728e-11,-4.45973466121609e-11)
(2.24926264362188e-13,1.42358542955394e-10,-3.94686389696323e-11)
(-8.11572320984859e-13,2.03864203874543e-10,-3.13623025057491e-11)
(-2.8805812293685e-12,2.78926500598008e-10,-1.87852010169181e-11)
(-6.03835810614933e-12,3.69914228454472e-10,-2.06752637786412e-12)
(-9.46345962695817e-12,4.77288359122367e-10,1.4293097975611e-11)
(-1.13218821979068e-11,5.83384250347648e-10,1.80354618420459e-11)
(-1.26504700128474e-11,6.68896245194921e-10,1.32966408259906e-11)
(-1.18127503841235e-11,7.17260641742924e-10,6.57126557157148e-12)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(1.13515394558552e-12,4.08303671945529e-11,-9.84607021673654e-11)
(7.75490879674441e-13,8.4890745587419e-11,-9.35151107156662e-11)
(-3.28879553054224e-13,1.34138826854807e-10,-8.33433449427956e-11)
(-1.97344230548181e-12,1.91094010494487e-10,-6.66475870477527e-11)
(-5.55054940293007e-12,2.61195160047942e-10,-4.0588235982853e-11)
(-1.25497063623515e-11,3.50480478727539e-10,-2.28803132603188e-12)
(-2.366576283683e-11,4.6837858743619e-10,4.42897341575438e-11)
(-2.45782375637533e-11,5.83508131241173e-10,4.8785212775288e-11)
(-2.26534377195152e-11,6.71671885985404e-10,3.04245358117332e-11)
(-2.07297893933748e-11,7.20264250631141e-10,1.29974405353352e-11)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(1.73081413011881e-12,3.60216476000807e-11,-1.57087414209555e-10)
(1.81294458828971e-12,7.45899159364527e-11,-1.50887456164143e-10)
(-8.46296242425231e-14,1.17263272511917e-10,-1.3734822526017e-10)
(-2.1313535791601e-12,1.64656567598816e-10,-1.13433779544324e-10)
(-7.29529300187626e-12,2.20686298981092e-10,-7.44928459678702e-11)
(-2.12835311324317e-11,2.96174234106313e-10,-9.0437342115373e-12)
(-6.23194565370608e-11,4.46040499812351e-10,1.23146776348865e-10)
(-4.89971723010929e-11,5.88498934441263e-10,1.11800402098381e-10)
(-3.41191262707201e-11,6.80335154496214e-10,5.30738942440353e-11)
(-2.7813997842196e-11,7.26598720757622e-10,1.83635458234113e-11)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(2.80746112846416e-12,3.03241236690906e-11,-2.25873226083261e-10)
(3.670364656705e-12,6.17767080965278e-11,-2.18115034953718e-10)
(2.12572185741112e-12,9.40858159399373e-11,-2.01919038734273e-10)
(-6.0656959584393e-13,1.25810027981793e-10,-1.74901982063391e-10)
(-6.30106060418566e-12,1.51717464803972e-10,-1.33525686811296e-10)
(-2.14948365746017e-11,1.45493993798664e-10,-7.95370497765846e-11)
(4.81571119591553e-11,3.86598524120419e-10,-6.12256132988835e-11)
(-1.0075888854307e-10,6.10035229587993e-10,2.4500909261205e-10)
(-4.23900929626185e-11,6.98141680454276e-10,6.44479429340997e-11)
(-2.91648111106765e-11,7.34816937074734e-10,1.31527464660989e-11)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(3.28403909410379e-12,2.36916081268867e-11,-3.06351641239098e-10)
(6.00511337543519e-12,4.74082586062504e-11,-2.98452811619516e-10)
(5.81649689855616e-12,6.92613064172067e-11,-2.81615432184527e-10)
(3.04654558035269e-12,8.67784757278571e-11,-2.53030786846175e-10)
(-2.36409140624654e-12,9.68314983353201e-11,-2.06810689669698e-10)
(-1.48075086254803e-11,9.9967512487069e-11,-1.32558378935264e-10)
(1.23242003866015e-17,2.08274734726112e-16,-5.76072754737542e-17)
(-1.1172077953626e-11,6.86882259197614e-10,-5.11675521245161e-11)
(-2.16844602801014e-11,7.21232788803966e-10,-3.38414117493528e-11)
(-2.0383152071903e-11,7.35366597722911e-10,-2.30799485532907e-11)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(4.51710021358387e-12,1.7051044673548e-11,-3.96645829156756e-10)
(8.85809177403343e-12,3.31487580880883e-11,-3.89331453492007e-10)
(1.01984782219206e-11,4.51015418648439e-11,-3.73435887309676e-10)
(9.48086552098053e-12,4.89585157767727e-11,-3.46377041474689e-10)
(6.97626452746336e-12,4.08602049417513e-11,-2.99061345821513e-10)
(-3.85832734797971e-12,2.10366085737027e-11,-2.06780223490803e-10)
(1.44392912399454e-17,1.39720278054084e-16,-7.64069782758168e-17)
(3.4985500113098e-13,6.47534323723454e-10,-1.10021552709842e-10)
(-7.18821500191536e-12,6.9510327709772e-10,-1.18645511158644e-10)
(-1.01021715265221e-11,7.0266705286802e-10,-6.68899091787816e-11)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(5.26497637854151e-12,1.14375494640057e-11,-4.8924706034966e-10)
(1.02845435086917e-11,2.0862038945365e-11,-4.83282196571058e-10)
(1.39570560867156e-11,2.47771533103833e-11,-4.7086226418665e-10)
(1.82707371796083e-11,1.61418332139963e-11,-4.50011029478685e-10)
(2.54836634520987e-11,-1.46766422102871e-11,-4.12636123084053e-10)
(3.36732883337689e-11,-7.44528460851518e-11,-3.22233109710792e-10)
(1.13152186798304e-17,1.74630859229991e-16,-2.40641182546983e-16)
(6.6993074689082e-11,6.30398732486555e-10,-4.50101172758247e-10)
(1.12274983591601e-11,6.32954217711921e-10,-2.58919204783727e-10)
(-1.48625677986447e-12,6.28914148779289e-10,-1.2177518432001e-10)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(5.0678499750149e-12,7.08619564748031e-12,-5.76871467276762e-10)
(1.01414178510231e-11,1.22187408585239e-11,-5.72625673703239e-10)
(1.56357806902399e-11,1.17932346803921e-11,-5.64455654526557e-10)
(2.4721009172535e-11,-3.0032498144997e-12,-5.53271396090105e-10)
(4.94983893501381e-11,-5.40479706622513e-11,-5.44035747297238e-10)
(1.44175262869379e-10,-2.22631567501209e-10,-5.53294515201268e-10)
(-6.05235594422883e-11,4.2473705392895e-10,-6.47527443129362e-10)
(2.34388577954288e-12,4.83229056201584e-10,-4.96972547847835e-10)
(2.59026968699217e-12,4.99438769300263e-10,-3.18062118657994e-10)
(-5.28626019527762e-13,5.0484851273744e-10,-1.5483197536016e-10)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(5.0481301541106e-12,4.10325712272174e-12,-6.4835230815503e-10)
(9.67730483048778e-12,7.48019440068092e-12,-6.44847578335276e-10)
(1.43482843360068e-11,8.05111383109137e-12,-6.38458549526661e-10)
(2.06681208885599e-11,3.94455795718373e-12,-6.30305745035837e-10)
(3.12258517766949e-11,-2.26409428194094e-12,-6.22779402077317e-10)
(4.26941081969161e-11,1.4157583301192e-11,-6.18206568786904e-10)
(-5.75869782285255e-13,2.1860180919948e-10,-6.08194245313331e-10)
(1.64976348254429e-12,3.0215349573042e-10,-4.94548074257096e-10)
(1.1024739514954e-12,3.36008356528314e-10,-3.38224733424636e-10)
(-2.67805104128302e-13,3.49239552878635e-10,-1.70668109689377e-10)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(4.54669062880406e-12,1.87615085277758e-12,-6.89114392768305e-10)
(9.25309762784889e-12,3.81527978039919e-12,-6.85949875747683e-10)
(1.3088110260251e-11,4.8030494939208e-12,-6.79311926888124e-10)
(1.72782501573068e-11,5.56148241358602e-12,-6.70559994061361e-10)
(2.14700357056372e-11,1.09924039208539e-11,-6.5958154224101e-10)
(2.09064771099481e-11,3.41748323614227e-11,-6.40382216176946e-10)
(6.76344062939097e-12,1.02124811199952e-10,-5.96459934058661e-10)
(2.46497962365142e-12,1.4555317452452e-10,-4.91938713547027e-10)
(2.66528957027336e-13,1.68252456207193e-10,-3.45405870695212e-10)
(-1.18728567757203e-12,1.78082267758512e-10,-1.77314714210268e-10)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(5.39140228739395e-13,4.57079937412333e-11,-4.77414797923786e-11)
(6.94089573186952e-13,9.36100905976016e-11,-4.48601857342578e-11)
(3.38305901105786e-13,1.45124370666253e-10,-3.95162274754056e-11)
(-6.18480429780436e-13,2.03509989676477e-10,-3.1978452500761e-11)
(-1.86691531835872e-12,2.72552932297274e-10,-2.18399558727221e-11)
(-2.96523273269571e-12,3.52140000281084e-10,-8.93018009372262e-12)
(-4.29605180724222e-12,4.41214901865828e-10,3.25975116930062e-12)
(-6.70694207533899e-12,5.27126729680322e-10,7.72374504605425e-12)
(-8.70073554894934e-12,5.94021085200581e-10,6.80226377574278e-12)
(-8.24509370077349e-12,6.3095910424952e-10,3.54295097927913e-12)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(9.98282088376364e-13,4.31436712909295e-11,-9.88610203739044e-11)
(9.04554757780481e-13,8.85617950969375e-11,-9.34279290435492e-11)
(-1.49083105240357e-13,1.37695941096137e-10,-8.32939980644343e-11)
(-1.5953504746997e-12,1.93120826333989e-10,-6.84747615865323e-11)
(-3.3418929928889e-12,2.58705324715438e-10,-4.75464031601352e-11)
(-4.82122722471846e-12,3.37956142207128e-10,-1.92571046831616e-11)
(-5.8231538307179e-12,4.33718570010593e-10,1.05969755765799e-11)
(-1.12083638002961e-11,5.24575426235726e-10,1.82376356991421e-11)
(-1.38896109538914e-11,5.93563987224851e-10,1.28677372981668e-11)
(-1.40668189845003e-11,6.30944323439028e-10,5.70803450363659e-12)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(1.22838001570535e-12,3.8279861077516e-11,-1.54789539908257e-10)
(1.08692152423738e-12,7.87222639147026e-11,-1.48447162697363e-10)
(-8.21618768085499e-13,1.22615639637261e-10,-1.35490444973813e-10)
(-2.22574753856738e-12,1.71478727418342e-10,-1.14862812216272e-10)
(-3.77557058112359e-12,2.28539004306396e-10,-8.3675938010721e-11)
(-2.79380138519724e-12,3.04509300882804e-10,-3.73353707226269e-11)
(8.46889340536915e-12,4.21026990247223e-10,2.71544202268711e-11)
(-1.18069595934866e-11,5.23599214996785e-10,3.22249815028599e-11)
(-1.7215303808152e-11,5.94627959336879e-10,1.60182409099378e-11)
(-1.76686683359234e-11,6.30750063163157e-10,4.91558706407416e-12)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(1.6817855411168e-12,3.23968712499006e-11,-2.18398443573642e-10)
(1.84281792751941e-12,6.60695398667117e-11,-2.10991564075002e-10)
(-6.68252907172359e-14,1.01632645480376e-10,-1.96479181747942e-10)
(-2.95131259402461e-12,1.39435704940797e-10,-1.73352647873642e-10)
(-5.4037311702309e-12,1.79926030829043e-10,-1.37667482790935e-10)
(5.72020825929216e-12,2.36879073130063e-10,-7.94858165373116e-11)
(1.28520721893957e-10,4.18830765504347e-10,6.23544593363913e-11)
(2.95523152528005e-12,5.31121285617176e-10,3.43325807531156e-11)
(-1.41860048443355e-11,5.9702118244039e-10,2.86383624275214e-12)
(-1.65617252927992e-11,6.27810063704542e-10,-4.79190614148465e-12)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(2.02577292786733e-12,2.5922001759382e-11,-2.91850330304565e-10)
(3.42723445858878e-12,5.24916195067431e-11,-2.84511576040924e-10)
(1.39161611256628e-12,7.88852591946235e-11,-2.69655225160266e-10)
(-5.3535916450425e-12,1.03429690751047e-10,-2.46361894210658e-10)
(-2.06451087471024e-11,1.1995148896343e-10,-2.13988589306195e-10)
(-6.84349260400831e-11,9.83152441351446e-11,-1.78519976426871e-10)
(5.11675753958975e-11,5.48327330850142e-10,-1.84288678025613e-10)
(1.08497171453195e-11,5.60642356739066e-10,-9.46841669048953e-11)
(-6.31641177002872e-12,5.95755335936058e-10,-6.03038003154684e-11)
(-1.07635557702789e-11,6.14804572728001e-10,-3.1897970443794e-11)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(2.81621975833405e-12,1.97014019013246e-11,-3.72059293090943e-10)
(5.24924473445605e-12,3.93171867284211e-11,-3.65090369068976e-10)
(3.46402094139969e-12,5.70170428971911e-11,-3.50609266503989e-10)
(-5.01814756941427e-12,7.06149770614661e-11,-3.29306031807436e-10)
(-2.97680106512109e-11,7.51463883672189e-11,-3.01808128115762e-10)
(-1.15149019772925e-10,5.12825908980044e-11,-2.76597957392892e-10)
(1.10021455831573e-10,4.94969599870445e-10,-3.02469629689649e-10)
(2.61094046868302e-11,5.30608920165285e-10,-1.95386770536683e-10)
(3.20524240408912e-12,5.63000298125508e-10,-1.29479320203144e-10)
(-3.23917661654968e-12,5.77115607380288e-10,-6.55382341305199e-11)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(3.65146641646939e-12,1.42416759178602e-11,-4.51549016106022e-10)
(6.50790921105624e-12,2.75220857231623e-11,-4.45227367702892e-10)
(6.0897400087858e-12,3.83359696259003e-11,-4.3271841178185e-10)
(4.09138134643741e-14,4.33513988478563e-11,-4.15291116287977e-10)
(-2.55480214691766e-11,3.65021275403151e-11,-3.96506495683391e-10)
(-1.40380859319782e-10,-9.66440285577489e-12,-3.97836999681552e-10)
(2.5364064134202e-11,4.79705529823587e-10,-5.60404260126555e-10)
(2.29807829995001e-11,4.80880347754889e-10,-3.44425639551803e-10)
(7.59892630709885e-12,5.00107866513826e-10,-2.10608053036518e-10)
(8.04194941953128e-13,5.09089026662692e-10,-1.01486480901901e-10)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(3.80499492626513e-12,9.41479638025197e-12,-5.22127724834404e-10)
(6.70994513212882e-12,1.77679714577892e-11,-5.17103671704017e-10)
(8.1936431031344e-12,2.45048536692249e-11,-5.07464740423903e-10)
(8.53755260795803e-12,2.72831618509191e-11,-4.94025794310326e-10)
(6.97328087386594e-12,2.68322981491911e-11,-4.80327151845822e-10)
(1.6190399950639e-12,4.54374541066309e-11,-4.75215403599719e-10)
(-4.94320999430178e-12,2.87026471488991e-10,-4.88858441784946e-10)
(4.50901706086466e-12,3.63320830311019e-10,-3.80619642931588e-10)
(2.79053916112387e-12,3.95343480982982e-10,-2.52801761292967e-10)
(2.48358479136325e-13,4.07692395793261e-10,-1.25481100654126e-10)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(3.77050660433085e-12,5.79746094368393e-12,-5.76472687200762e-10)
(6.95319064215433e-12,1.09939486697695e-11,-5.71803880602795e-10)
(9.44354418235724e-12,1.58267583248508e-11,-5.63594873737916e-10)
(1.15248534736344e-11,2.0582360313297e-11,-5.51980145970941e-10)
(1.33965202834753e-11,3.11970906980306e-11,-5.3678438823956e-10)
(1.26645356630797e-11,6.7019436442594e-11,-5.17098451391991e-10)
(2.25495716105154e-12,1.75554946901638e-10,-4.83597381317181e-10)
(1.92674385599189e-12,2.38138698727384e-10,-3.93448238319978e-10)
(1.30175053734849e-12,2.6946918142537e-10,-2.72335869918279e-10)
(2.21370326621793e-13,2.82375054369774e-10,-1.38271564610149e-10)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(3.25832446095938e-12,2.87972855200025e-12,-6.0557704648248e-10)
(6.43042854868945e-12,5.55254866776278e-12,-6.00851460100046e-10)
(9.13922692740813e-12,8.2023049872773e-12,-5.92565283686929e-10)
(1.18612807505431e-11,1.17901209392093e-11,-5.81032281213499e-10)
(1.32631135624261e-11,2.09184570551214e-11,-5.63735808977054e-10)
(1.11590273530802e-11,4.31255611323995e-11,-5.35624668206624e-10)
(4.36703131770806e-12,8.64367680167823e-11,-4.86453005779695e-10)
(1.48531129635067e-12,1.17982356592797e-10,-3.98384596499193e-10)
(4.2782867926272e-13,1.36026803513296e-10,-2.79889529207386e-10)
(-4.19732129331515e-13,1.44096179597105e-10,-1.43717269383782e-10)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(2.22168620943569e-13,4.77433059111514e-11,-4.6612521943895e-11)
(3.984268150042e-13,9.69469930677824e-11,-4.39617056969565e-11)
(2.28960496563002e-13,1.48034336936575e-10,-3.89041822321924e-11)
(-3.67813715317573e-13,2.04406749366197e-10,-3.22407666525758e-11)
(-9.29083515547142e-13,2.69310431481543e-10,-2.42896093167417e-11)
(-9.71305921715059e-13,3.40764883836954e-10,-1.44382155263451e-11)
(-1.26371382876591e-12,4.17710661245375e-10,-5.28749230692867e-12)
(-3.23415736047754e-12,4.91578205877356e-10,-5.19892924693396e-13)
(-4.98432477673952e-12,5.48119140488399e-10,9.31267697705782e-13)
(-4.68736191097039e-12,5.78527875368213e-10,6.4662743452028e-13)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(4.29000971430733e-13,4.52619379460827e-11,-9.76024074591625e-11)
(6.10154960879701e-13,9.20474154479858e-11,-9.25770740170248e-11)
(1.11981875738101e-13,1.41307110948749e-10,-8.33214070554057e-11)
(-8.81609985421849e-13,1.9612207553569e-10,-7.03637123569166e-11)
(-1.46487106083492e-12,2.58996326894013e-10,-5.35116488704877e-11)
(-1.2284661601618e-12,3.310005367627e-10,-3.27557644570294e-11)
(-7.72234189861997e-13,4.11811784288849e-10,-1.30704207037355e-11)
(-4.86225416040064e-12,4.88191057613674e-10,-3.71287912299387e-12)
(-7.79388027139429e-12,5.45661510874141e-10,-1.32029114649714e-12)
(-8.16452420496436e-12,5.76323327235915e-10,-9.20324643470458e-13)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(7.68992632419677e-13,4.06498154655587e-11,-1.52097163529328e-10)
(7.82927848682746e-13,8.29927231939834e-11,-1.46093539283919e-10)
(-4.66257368734074e-13,1.28060784292466e-10,-1.34152456210086e-10)
(-1.36959926658431e-12,1.78670307257561e-10,-1.16548150163664e-10)
(-1.50316439187186e-12,2.37576699977976e-10,-9.23323004134408e-11)
(3.46635418080107e-13,3.10589641905476e-10,-6.1471250703492e-11)
(5.59455687214772e-12,4.0152732677321e-10,-2.82744084915732e-11)
(-3.12228962089738e-12,4.82932649734469e-10,-1.39392617924872e-11)
(-8.50587306580412e-12,5.40961214121648e-10,-9.49564725748182e-12)
(-9.81308181324854e-12,5.70607126153432e-10,-5.61069121085783e-12)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(7.49775532978196e-13,3.50574088276725e-11,-2.13426946599324e-10)
(9.08355960433907e-13,7.119086451289e-11,-2.06739291291113e-10)
(-4.4597287923503e-13,1.09876144575498e-10,-1.93664193318327e-10)
(-2.63046348697542e-12,1.53541419621035e-10,-1.73804836520367e-10)
(-3.61085555827416e-12,2.05778167677348e-10,-1.46049262963354e-10)
(2.44376138049547e-12,2.77607154129515e-10,-1.09190481989759e-10)
(2.70460351314426e-11,3.90915370306352e-10,-6.1051274534007e-11)
(4.90290491373639e-12,4.76619605828379e-10,-4.18795689230301e-11)
(-5.26441595580785e-12,5.32218751278304e-10,-3.07149831685997e-11)
(-8.34814045771496e-12,5.59169421609031e-10,-1.68465093942712e-11)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(9.07618522277517e-13,2.88870826176572e-11,-2.82398295856932e-10)
(1.74531635625091e-12,5.8461516554537e-11,-2.75634929163515e-10)
(-3.34985395967294e-14,8.96919888580582e-11,-2.62180570690316e-10)
(-4.91218285993886e-12,1.24456538537502e-10,-2.42034178946767e-10)
(-1.13086210302126e-11,1.67145513387723e-10,-2.16335391813609e-10)
(-1.56335712041617e-11,2.31651075151756e-10,-1.87022767037493e-10)
(1.49207952548378e-11,3.92995218387544e-10,-1.58459973525986e-10)
(6.50278712970382e-12,4.68797869452656e-10,-1.12674811034906e-10)
(-1.96720383104964e-12,5.15112679840999e-10,-7.45530056013845e-11)
(-4.97256086638139e-12,5.37119445469279e-10,-3.79777534993147e-11)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(1.30702171986301e-12,2.26836870415379e-11,-3.55628721798578e-10)
(2.56324317472814e-12,4.5921075343378e-11,-3.48955948835768e-10)
(8.41859516131875e-13,6.9751538705059e-11,-3.35604961029021e-10)
(-5.25247304746683e-12,9.64250475830402e-11,-3.16921641017333e-10)
(-1.63339205471796e-11,1.31306248517718e-10,-2.94571623264934e-10)
(-2.83303537223828e-11,1.91749435098367e-10,-2.71411307548057e-10)
(1.82026667254916e-11,3.58877901487349e-10,-2.50776410182159e-10)
(9.93052676361728e-12,4.3520836026994e-10,-1.88941263766401e-10)
(2.15658794316868e-12,4.77627774735036e-10,-1.26268906413576e-10)
(-7.50830029433175e-13,4.96322652038867e-10,-6.369646916195e-11)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(2.15669755090754e-12,1.67000033620402e-11,-4.25870770780704e-10)
(3.75306755540152e-12,3.40296424276939e-11,-4.19417875615907e-10)
(2.49356047157342e-12,5.18114885348507e-11,-4.06941417467085e-10)
(-2.67546979419256e-12,7.13817534873432e-11,-3.90056063440216e-10)
(-1.45476880798624e-11,9.81741565653786e-11,-3.7120310631626e-10)
(-3.29154558371947e-11,1.50321505268637e-10,-3.56175904859994e-10)
(2.06450189411672e-12,3.12946471496133e-10,-3.52865376603789e-10)
(6.72271392811428e-12,3.80203065036795e-10,-2.67774662490114e-10)
(3.24173970332362e-12,4.16820614721517e-10,-1.77378359247336e-10)
(7.14344909461444e-13,4.3211375991903e-10,-8.82814868775354e-11)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(2.39827723246649e-12,1.13562699855679e-11,-4.85355682149624e-10)
(3.84503664002421e-12,2.34718832307419e-11,-4.79727904267955e-10)
(3.43279233394853e-12,3.63327398662466e-11,-4.68884552991781e-10)
(1.53971168107098e-12,5.11807459332852e-11,-4.53594062739344e-10)
(-2.50325992107817e-12,7.4181981612306e-11,-4.34810266408039e-10)
(-6.31990415558387e-12,1.22381798176744e-10,-4.13841710658462e-10)
(-1.71048426039832e-12,2.30739996010408e-10,-3.8465950552179e-10)
(1.87326700589755e-12,2.95065747511299e-10,-3.07245710079354e-10)
(1.3441780799012e-12,3.30110544495175e-10,-2.10276830343469e-10)
(8.45992484941292e-14,3.44427236258119e-10,-1.06180592032818e-10)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(2.01943239803854e-12,7.08973095490366e-12,-5.28367283658811e-10)
(4.18558377929775e-12,1.46221238961601e-11,-5.23146358292596e-10)
(5.45326975296103e-12,2.29512679264499e-11,-5.13424350630933e-10)
(5.12133511634844e-12,3.3832381691067e-11,-4.98990712685627e-10)
(3.98921707877514e-12,5.3046354076205e-11,-4.78683034277835e-10)
(3.05734089844489e-12,9.01407610423973e-11,-4.5020975350788e-10)
(1.22399304875947e-12,1.52809199095298e-10,-4.05454726272639e-10)
(9.70717588865772e-13,1.99434183342328e-10,-3.28656589711646e-10)
(6.79823141314003e-13,2.2687657808195e-10,-2.29021625234175e-10)
(2.28680489144392e-13,2.38459808477134e-10,-1.16869831365732e-10)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(1.41246663052527e-12,3.36037717737764e-12,-5.50310396386547e-10)
(3.69680080333557e-12,7.1204904075639e-12,-5.45420684795513e-10)
(5.8085294412553e-12,1.12665336684408e-11,-5.36121696260446e-10)
(6.35492945330817e-12,1.70711011587313e-11,-5.22035201179075e-10)
(6.07042984711922e-12,2.8303707158688e-11,-5.00688091905435e-10)
(5.11292605855264e-12,4.81963488713919e-11,-4.67693565252503e-10)
(2.73539005398405e-12,7.68997584648448e-11,-4.15983066075102e-10)
(9.726005973457e-13,1.00355805114689e-10,-3.37731035944532e-10)
(2.82372368944154e-13,1.15129333411149e-10,-2.37107232423375e-10)
(-4.08219160231704e-14,1.21829106736892e-10,-1.21908859361178e-10)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(5.27203391073937e-14,4.94670362717284e-11,-4.54589735365487e-11)
(2.40480970018122e-13,9.90318305851024e-11,-4.33248567744017e-11)
(2.92770904770137e-13,1.50166736941808e-10,-3.85865478949863e-11)
(-3.42972206255892e-14,2.05495179264203e-10,-3.21713113987662e-11)
(-4.66372718436556e-13,2.68868358354597e-10,-2.50549507388214e-11)
(-3.57682066863958e-13,3.36525300026075e-10,-1.68352472703834e-11)
(-1.32436254490691e-13,4.06897939104485e-10,-9.34677753045859e-12)
(-1.29816971918551e-12,4.74217166916713e-10,-4.30780995636133e-12)
(-2.24205489931821e-12,5.25760801890045e-10,-1.93126447441926e-12)
(-1.83618634415802e-12,5.53665756074859e-10,-1.01094666040473e-12)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(1.57900098170729e-14,4.73856398487039e-11,-9.65616957862463e-11)
(4.091802532904e-13,9.45340026757051e-11,-9.22036653409689e-11)
(4.00613833555076e-13,1.44044271350314e-10,-8.33049868236717e-11)
(-2.81905193763969e-13,1.98344521383659e-10,-7.08978590337934e-11)
(-8.01128558247843e-13,2.60182282167732e-10,-5.58346991113287e-11)
(-5.02915056238799e-13,3.28679148219315e-10,-3.90416257059885e-11)
(1.54681745021113e-13,4.01726535275868e-10,-2.38720282141401e-11)
(-1.99643425768847e-12,4.70542451715591e-10,-1.39248305441806e-11)
(-3.49355002193386e-12,5.22598429176715e-10,-8.6794635791746e-12)
(-3.3686477659387e-12,5.50818623070297e-10,-4.91110360659343e-12)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(3.57775024932571e-13,4.304339941324e-11,-1.51125395811826e-10)
(6.43703455935013e-13,8.60445044117051e-11,-1.4526859478226e-10)
(1.14076301771941e-13,1.32037757394001e-10,-1.33409105602742e-10)
(-4.56561380270736e-13,1.82999456267433e-10,-1.1708771868586e-10)
(-5.65681801184338e-13,2.42588080204147e-10,-9.62245565135575e-11)
(1.3228098211916e-13,3.13006635671209e-10,-7.22171961187243e-11)
(1.87136663994282e-12,3.91934019350926e-10,-4.89998502322012e-11)
(-1.25286024983639e-12,4.63300650492904e-10,-3.2629584620167e-11)
(-3.64836626908867e-12,5.15336519182203e-10,-2.14285834627029e-11)
(-3.98606847970801e-12,5.42538871697761e-10,-1.13349599368034e-11)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(2.32446434795321e-13,3.75443734085967e-11,-2.11970909157917e-10)
(5.62605945982982e-13,7.48287186881357e-11,-2.05536137765153e-10)
(-1.21173959732397e-13,1.1583044677888e-10,-1.92517879350352e-10)
(-1.30115596044608e-12,1.61679732714864e-10,-1.73951135993207e-10)
(-1.83698224223665e-12,2.18015038008125e-10,-1.50081426838434e-10)
(2.60632902519243e-13,2.89921570766817e-10,-1.21792504724079e-10)
(5.79448143933552e-12,3.77435120378827e-10,-9.1223566257775e-11)
(1.5600555349647e-12,4.50846789085605e-10,-6.60233960390824e-11)
(-2.02681829281524e-12,5.01594529387213e-10,-4.42292064665788e-11)
(-3.14467371223351e-12,5.27217843281244e-10,-2.274458947268e-11)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(3.47647405015804e-13,3.13420484506349e-11,-2.79596423750896e-10)
(8.31399094223134e-13,6.23730662193217e-11,-2.72678241270367e-10)
(-2.3944013019229e-13,9.71425294619893e-11,-2.59251905510948e-10)
(-2.57947903861891e-12,1.36508867599657e-10,-2.40186258064845e-10)
(-4.78198093631556e-12,1.8788913365154e-10,-2.16761455907899e-10)
(-4.29472466228116e-12,2.5961326520303e-10,-1.89148215749318e-10)
(3.2529496639668e-12,3.5802943159944e-10,-1.57490141654836e-10)
(1.97049087883027e-12,4.30612655048104e-10,-1.19311355802769e-10)
(-1.05755082715787e-12,4.78083094100485e-10,-8.0633238909677e-11)
(-2.15352093527723e-12,5.01328580096324e-10,-4.12204601464656e-11)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(6.17932436553695e-13,2.47715133751164e-11,-3.4833785598837e-10)
(1.10368828367199e-12,4.97781295541162e-11,-3.41358623447189e-10)
(9.85896746650352e-14,7.78374418856973e-11,-3.28112181149445e-10)
(-2.55919670418533e-12,1.1050458640411e-10,-3.09883655258043e-10)
(-6.36214431173515e-12,1.55493912556621e-10,-2.87955770558884e-10)
(-7.53732125855878e-12,2.23660466446299e-10,-2.62202928055125e-10)
(2.29895030096734e-12,3.23103595411332e-10,-2.29717781146674e-10)
(2.2634646439777e-12,3.93905029033828e-10,-1.79578101435314e-10)
(3.91310705034469e-13,4.37612764510132e-10,-1.22654967176792e-10)
(-2.38407071596773e-13,4.57954599014582e-10,-6.26065107192863e-11)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(1.04753576259888e-12,1.84102132704815e-11,-4.13324498006615e-10)
(1.83436860352797e-12,3.76353755400577e-11,-4.0682710797327e-10)
(1.08695511334795e-12,5.97075056689479e-11,-3.93989916672548e-10)
(-1.32741936412784e-12,8.60175050007559e-11,-3.76170988632462e-10)
(-5.58271458305382e-12,1.23378925741171e-10,-3.55099117158683e-10)
(-8.2862770014556e-12,1.83637998279257e-10,-3.31170527081801e-10)
(-8.19736733926653e-13,2.75262866000962e-10,-2.98511335572171e-10)
(1.46372821082546e-12,3.3924535941926e-10,-2.36345431763615e-10)
(8.54937559906087e-13,3.77955618757669e-10,-1.61502821424653e-10)
(1.19381692836616e-13,3.95109681223701e-10,-8.17333236276412e-11)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(1.03703838149875e-12,1.29603589997415e-11,-4.65882304063226e-10)
(1.85144469840873e-12,2.66325528428672e-11,-4.60614587037947e-10)
(1.5237740213125e-12,4.29755327422171e-11,-4.49279210992149e-10)
(1.0427959198783e-13,6.36182141628537e-11,-4.32268455513617e-10)
(-2.33618813456819e-12,9.38676210812542e-11,-4.10453927183859e-10)
(-3.26107215792307e-12,1.42692529768117e-10,-3.82803526281261e-10)
(-1.19348278769349e-12,2.12277225458496e-10,-3.41661540338005e-10)
(5.35951438953875e-13,2.65866477291129e-10,-2.74344183850549e-10)
(4.8190618247601e-13,2.99041058520578e-10,-1.89960656507244e-10)
(-1.28565003350979e-13,3.134957392889e-10,-9.66381386480576e-11)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(5.27860809346574e-13,8.72968035597063e-12,-5.03641320633729e-10)
(1.96520960623931e-12,1.71486214954529e-11,-4.98718138749244e-10)
(2.70436606566245e-12,2.74885512850146e-11,-4.8817441969117e-10)
(1.57493724088109e-12,4.1907965425081e-11,-4.7152834254251e-10)
(2.58583226332513e-13,6.38810320440868e-11,-4.48957415593606e-10)
(2.46725834225861e-13,9.82894716669349e-11,-4.17557671445979e-10)
(3.35297118212672e-13,1.43766386183334e-10,-3.69481261166275e-10)
(4.1413133904434e-13,1.82018901386788e-10,-2.98171710054164e-10)
(2.7527394367649e-13,2.06200446843866e-10,-2.07788434848322e-10)
(-1.04491363460052e-14,2.16729035637495e-10,-1.06068784270357e-10)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(-1.16867783131674e-13,4.33435928084694e-12,-5.22438496859141e-10)
(1.518302675831e-12,8.5701120436203e-12,-5.18221005361425e-10)
(2.98856802832589e-12,1.3546840202018e-11,-5.08132590641974e-10)
(2.0789213384003e-12,2.09119757170566e-11,-4.9159718241163e-10)
(1.37961035287841e-12,3.27398711227731e-11,-4.68606285356173e-10)
(1.59877575253548e-12,5.04597872214776e-11,-4.34486803880522e-10)
(1.38311838826724e-12,7.27921321894276e-11,-3.82428240906509e-10)
(7.0460219087682e-13,9.20497575199896e-11,-3.08252990328814e-10)
(2.13332717893193e-13,1.04756070209578e-10,-2.15498630617947e-10)
(-1.20574540312485e-13,1.10649802230788e-10,-1.10529227690476e-10)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
)
;
boundaryField
{
fuel
{
type fixedValue;
value uniform (0.1 0 0);
}
air
{
type fixedValue;
value uniform (-0.1 0 0);
}
outlet
{
type zeroGradient;
}
frontAndBack
{
type empty;
}
}
// ************************************************************************* //
|
|
d0758ff3e157c973030fa80d5ff63c4dfbbbeab4
|
b50e860ff4cf638152df1beb4257907676d0d6c9
|
/CCC/CCC-'05-S4.cpp
|
4a6cfc11ccf02ae59244b998a7e1adc6fe4974b5
|
[] |
no_license
|
elu02/CP-solutions
|
50b5ab0d5725b01318fd6ce2606f2ca9d7de0129
|
ac8913731e40ca223ee1523cc47b41989e22e511
|
refs/heads/master
| 2022-12-05T00:34:41.092716
| 2020-08-19T06:11:49
| 2020-08-19T06:11:49
| 288,637,996
| 0
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 1,469
|
cpp
|
CCC-'05-S4.cpp
|
#include <bits/stdc++.h>
#include <iostream>
#include <map>
#include <queue>
#include <string>
#include <vector>
using namespace std;
struct Node
{
string s;
int level;
};
int main() //min = (length - one) * 2
{
ios_base::sync_with_stdio(0);
cin.tie(0);
int l;
cin >> l;
for(int o=0; o<l; o++)
{
map<string, vector<string> > names;
map<string, bool> visited;
int n;
bool f=true;
string prev, next, home;
cin >> n;
cin >> prev;
for(int i=0; i<n-2; i++)
{
cin >> next;
names[prev].push_back(next);
names[next].push_back(prev);
visited[prev] = 0;
prev = next;
}
cin >> home;
names[prev].push_back(home);
names[home].push_back(prev);
queue<Node> bfsq;
bfsq.push({home, 0});
visited[home]=1;
int counter;
while(!bfsq.empty())
{
Node cur = bfsq.front();
bfsq.pop();
for(int i=0; i<(int)names[cur.s].size(); i++)
{
if(!visited[names[cur.s][i]])
{
bfsq.push({names[cur.s][i], cur.level+1});
visited[names[cur.s][i]] = 1;
}
}
counter = cur.level;
}
cout << (n-((counter)*2)) * 10 << '\n';
}
}
|
aaddf8983fbeb80de1a5fcd72f4806779ffbda50
|
326e3da17182bda6b22e56211bcf2516f59817da
|
/TsWork/Light.h
|
ffd15978a2885df4df13785a37309498f1d1384d
|
[] |
no_license
|
bzhao41/GLUTV2
|
11bc26df3cb4a31297623affc66959067c4eefd1
|
c28f595ff542efc8eca17334fa8970607001b50a
|
refs/heads/master
| 2021-04-09T14:00:38.768525
| 2018-03-21T23:01:19
| 2018-03-21T23:01:19
| 125,548,030
| 0
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 608
|
h
|
Light.h
|
#ifndef __LIGHT_H__
#define __LIGHT_H__
#include "Angel.h"
class Light {
public:
Light(vec4 p, vec4 a, vec4 s, vec4 d) : position(p), ambient(a), specular(s), diffuse(d) {}
vec4 getPosition() { return position; }
vec4 getAmbient() { return ambient; }
vec4 getDiffuse() { return diffuse; }
vec4 getSpecular() { return specular; }
void setPosition(vec4 pos) { position = pos; }
void turnOn() { enabled = 1; }
void turnOff() { enabled = 0; }
int getEnabled() { return enabled; }
private:
vec4 position, ambient, diffuse, specular;
int enabled;
};
#endif
|
3ccf03ae4041b1d1557ee376bcf6cd6d275e2605
|
ca98685f0731a88953dd16f59a977f0ec6a8822a
|
/src/roms/EmuProperties.h
|
045486ceb9f4277470be24cacde4567b5cdb4873
|
[] |
no_license
|
damarbo33/MinimalUI
|
2ff15492f1e93acb52b2dfc96c7cd8424b7d7235
|
bef959866b68af7573b28abbd3ca6b8c5a720563
|
refs/heads/master
| 2022-11-07T17:38:08.468750
| 2022-10-27T09:32:33
| 2022-10-27T09:32:33
| 22,223,415
| 0
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 830
|
h
|
EmuProperties.h
|
#ifndef ESTRUCTURASEMU_H
#define ESTRUCTURASEMU_H
class Emuinfo{
public:
Emuinfo(){
clear();
};
~Emuinfo(){};
struct struct_emu {
string idEmu, nombreEmu, rutaEmu, parmsEmu, rutaRoms, emuRomExt, rutaImg;
string platform;
bool descomp, titleRom, fixOption;
} emuProperties;
void clear(){
emuProperties.descomp = false;
emuProperties.titleRom = false;
emuProperties.idEmu = "";
emuProperties.nombreEmu = "";
emuProperties.rutaEmu = "";
emuProperties.parmsEmu = "";
emuProperties.rutaRoms = "";
emuProperties.rutaImg = "";
emuProperties.fixOption = false;
emuProperties.platform = "";
}
};
#endif
|
93dd5b203552bce595f059a9431d1ea4567daf21
|
8d8e518d2d90a87c58217ecc2fd333adc83330a8
|
/PACMAN CLONE/loadMaze-Post.cpp
|
136074c3962700fa5a6d88c105b9546ae2857ec0
|
[] |
no_license
|
MatthewM39/Data_Structures_Stuff
|
9cbbaa3c910b853f8bfeaa811b07f58ebe64d0f3
|
6c82255195aad9d6d17ae53dca7b688250dbc1f3
|
refs/heads/master
| 2021-01-23T08:10:38.814099
| 2017-03-28T16:21:20
| 2017-03-28T16:21:20
| 86,482,184
| 0
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 2,162
|
cpp
|
loadMaze-Post.cpp
|
#include <fstream>
#include <string>
#include <iostream>
using namespace std;
#include "CConsole.h"
class Maze {
public:
Maze() {
console = new CConsole(64, 24);
}
~Maze() {
delete console;
}
void display() const {
for (int i = 0; i < xSize; i++) {
for (int j = 0; j < ySize; j++) {
if (myDisplay[i][j] == '#' || myDisplay[i][j] == '*' || myDisplay[i][j] == '.') // if a wall char is found, need to print it
console->printChar(i, j, myDisplay[i][j]);
}
}
}
void displayActors() const {
console->setColor(black, red); // drawing the player, need to change colors
console->printChar(playerX, playerY, '@'); // draw the player
console->setColor(blue, white); // change colors
console->printChar(monsterX, monsterY, 'M'); // draw the monster
console->setColor(white, black); // swap back to default colors for now (this might be unecessary later in the project)
}
bool loadMaze(const string &filename) {
ifstream input;
input.open(filename); // attempt to open the file
if (!input.is_open()) // make sure the file opens
return false;
string myString;
int i = 0;
while (i < ySize) { // go through the file until the maze height is reached
getline(input, myString); // get the line as a string
for (int j = 0; j < xSize; j++) { // convert to char array
if (myString[j] == '@') { // if @ is found set player spawn coords
playerX = j;
playerY = i;
}
else if (myString[j] == '$') { // if $ is found set monster spawn coords
monsterX = j;
monsterY = i;
}
else
myDisplay[j][i] = myString[j]; // otherwise, insert the char into the array
}
i++;
}
return true;
}
private:
int playerX, playerY;
int monsterX, monsterY;
CConsole * console;
static const int ySize = 21; // maze y dimension
static const int xSize = 23; // maze x dimension
char myDisplay[xSize][ySize]; // 2D char array to hold the maze
};
void main () {
Maze m;
bool result = m.loadMaze("MAZE0.TXT");
if (result) {
m.display();
m.displayActors();
}
}
|
27e200933148c9c927c25ff440bd26b8da4f5475
|
4ccf7aa23ae97ce06ebbea5ecb311d9e5604d28a
|
/2020codes/codeforces/1294/D - MEX maximizing.cpp
|
107aa6f6b1d8dc25e9429dbcc0e13f18f32364e1
|
[
"LicenseRef-scancode-other-permissive",
"MIT"
] |
permissive
|
TieWay59/HappyACEveryday
|
25682d30aafed3a51f645562fb7e5348e9515417
|
6474a05a9eafc83e9c185ba8e6d716f7d44eade0
|
refs/heads/master
| 2021-08-22T21:29:31.138853
| 2021-06-16T04:19:14
| 2021-06-16T04:19:14
| 190,430,779
| 3
| 1
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 1,942
|
cpp
|
D - MEX maximizing.cpp
|
/**
* █████╗ ██████╗ ██████╗ ██╗ ███████╗
* ██╔══██╗██╔════╝ ██╔══██╗██║ ╚══███╔╝
* ███████║██║ ██████╔╝██║ ███╔╝
* ██╔══██║██║ ██╔═══╝ ██║ ███╔╝
* ██║ ██║╚██████╗▄█╗ ██║ ███████╗███████╗
* ╚═╝ ╚═╝ ╚═════╝╚═╝ ╚═╝ ╚══════╝╚══════╝
*
* @Author: TieWay59
* @Created: 2020/1/22 23:15
* @Link: http://m3.codeforces.com/contest/1294/problem/D
* @Tags:
*
*******************************************************/
#include <bits/stdc++.h>
#ifdef DEBUG
# include "libs59/debugers.h"
// #define debug(x) cerr <<#x << " = "<<x<<endl;
#else
# define endl '\n'
# define debug(...)
#endif
#define STOPSYNC ios::sync_with_stdio(false);cin.tie(nullptr)
#define MULTIKASE int Kase=0;cin>>Kase;for(int kase=1;kase<=Kase;kase++)
typedef long long ll;
const int MAXN = 4e5 + 59;
const int MOD = 1e9 + 7;
const int INF = 0x3F3F3F3F;
const ll llINF = 0x3F3F3F3F3F3F3F3F;
using namespace std;
void solve(int kaseId = -1) {
int q, x;
cin >> q >> x;
vector<int> a(x, 0);
int mina = 0;
int minp = 0;
while (q--) {
int y, ans;
cin >> y;
y %= x;
a[y]++;
while (a[minp] > mina) {
minp++;
if (minp == x) {
mina++;
minp = 0;
}
}
ans = mina * x + minp;
cout << ans << endl;
}
}
void solves() {
MULTIKASE {
solve(kase);
}
}
int main() {
STOPSYNC;
solve();
return 0;
}
/*
*/
|
0e6fce0dccd9052c28ad584b7d5126c7c20e4704
|
6a151d774c8230cf2a6a04cd6566c5aa813f9a3a
|
/Codeforces/GCD Compression CF 1370B.cpp
|
c519f97c446488b8decd9a85099aa1e0248d882e
|
[] |
no_license
|
RakibulRanak/Solved-ACM-problems
|
fdc5b39bdbe1bcc06f95c2a77478534362dca257
|
7d28d4da7bb01989f741228c4039a96ab307a8a6
|
refs/heads/master
| 2021-07-01T09:50:02.039776
| 2020-10-11T20:46:28
| 2020-10-11T20:46:28
| 168,976,930
| 3
| 2
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 1,274
|
cpp
|
GCD Compression CF 1370B.cpp
|
#include<bits/stdc++.h>
using namespace std;
#define ll long long
#define FastIO ios_base::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL);
ll log2bal(ll x)
{
ll i = 1, count = 0;
while (i * 2 <= x) {
i *= 2; count++;
}
return count;
}
void solve(ll cs) {
int n;
cin >> n;
int even = 0, odd = 0;
vector<int>jur, bijur;
for (int i = 1; i <= 2 * n; i++)
{
int x;
cin >> x;
if (x % 2 == 1)
{
odd++;
bijur.push_back(i);
}
else
{
even++;
jur.push_back(i);
}
}
if (even % 2 == 0)
{
if (even > odd)
{
for (int i = 0; i < even - 2; i += 2)
{
cout << jur[i] << " " << jur[i + 1] << endl;
}
for (int i = 0; i < odd; i += 2)
{
cout << bijur[i] << " " << bijur[i + 1] << endl;
}
}
else
{
for (int i = 0; i < even; i += 2)
{
cout << jur[i] << " " << jur[i + 1] << endl;
}
for (int i = 0; i < odd - 2; i += 2)
{
cout << bijur[i] << " " << bijur[i + 1] << endl;
}
}
}
else
{
for (int i = 0; i < even - 1; i += 2)
{
cout << jur[i] << " " << jur[i + 1] << endl;
}
for (int i = 0; i < odd - 1; i += 2)
{
cout << bijur[i] << " " << bijur[i + 1] << endl;
}
}
}
int main() {
FastIO; ll t; cin >> t;
for (ll i = 0; i < t; i++) solve(i + 1);
return 0;
}
|
abb952935106201222a8471ce16ff71c86259360
|
b4aa0fe128e43b950192150ecb4a1a21c2f2d338
|
/OpenCVGraph/ZoomView.hpp
|
d3b6e31f51d5767c811a97dd91bd86d84097f620
|
[
"Apache-2.0"
] |
permissive
|
jaybo/OpenCVGraph
|
e5ef2ca7d8051d90e2e5859799c2a7c4b6a9d3e0
|
46f2d8765deccc7c7696d598a73e14bb44bada9a
|
refs/heads/master
| 2021-01-18T05:36:12.410641
| 2016-03-11T22:06:21
| 2016-03-11T22:06:21
| 45,309,742
| 0
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 9,936
|
hpp
|
ZoomView.hpp
|
#pragma once
#include "stdafx.h"
using namespace std;
using namespace cv;
namespace openCVGraph
{
#define MAX_ZOOMVIEW_LOCKS 10
class ZoomView;
static ZoomView * g_LastActiveZoomView = NULL;
struct ZoomWindowPosition
{
int x = 0; // center of image
int y = 0;
int dx = 0; // delta from center due to mouse dragging
int dy = 0;
int zoomFactor = 0;
};
// Lock zoom and scroll positions of different filters
static ZoomWindowPosition ZoomWindowPositions[MAX_ZOOMVIEW_LOCKS]; // Lock ZoomWindows
// Displays Mats with zooming and synchronized pan/scroll between different windows
//
class ZoomView
{
public:
static void DefaultMouseProcessor(int event, int x, int y, int flags, void* param)
{
ZoomView* view = (ZoomView*)param;
g_LastActiveZoomView = view;
if (view->m_mouseCallback) {
// call a user callback if supplied
(*view->m_mouseCallback)(event, x, y, flags, param);
}
int d;
switch (event)
{
case cv::EVENT_RBUTTONDOWN:
break;
case cv::EVENT_RBUTTONUP:
break;
case cv::EVENT_MOUSEWHEEL:
{
view->m_mx = x;
view->m_my = y;
//if (flags & EVENT_FLAG_CTRLKEY)
//{
//}
//if (flags & EVENT_FLAG_SHIFTKEY)
//{
//}
//if (!(flags & EVENT_FLAG_CTRLKEY) && !(flags & EVENT_FLAG_SHIFTKEY))
//{
//}
// zoom faster on big images
int zoomInc = (view->MatView.size().width >= 1024) ? 2 : 1;
d = getMouseWheelDelta(flags);
//cout << d << endl;
if (d > 0)
{
view->m_ZoomFactor += zoomInc;
}
else
{
view->m_ZoomFactor -= zoomInc;
}
}
break;
case cv::EVENT_LBUTTONDOWN:
view->m_MouseLButtonDown = true;
view->m_sx = x;
view->m_sy = y;
view->m_dx = 0;
view->m_dy = 0;
break;
case cv::EVENT_MOUSEMOVE:
// cout << x << ", " << y << endl;
if (view->m_MouseLButtonDown) {
int absZoom = abs(view->m_ZoomFactor);
if (view->m_ZoomFactor < 0) {
view->m_dx = (x - view->m_sx) * absZoom;
view->m_dy = (y - view->m_sy) * absZoom;
}
else if (view->m_ZoomFactor > 0) {
view->m_dx = (int)((x - view->m_sx) / (float)absZoom);
view->m_dy = (int)((y - view->m_sy) / (float)absZoom);
}
else {
view->m_dx = (x - view->m_sx);
view->m_dy = (y - view->m_sy);
}
}
else {
view->m_dx = 0;
view->m_dy = 0;
}
//cout << view->m_cx << " : " << view->m_cy << " " << view->m_dx << " : " << view->m_dy << endl;
view->m_wx = x;
view->m_wy = y;
break;
case cv::EVENT_LBUTTONUP:
view->m_MouseLButtonDown = false;
view->m_cx -= view->m_dx;
view->m_cy -= view->m_dy;
view->m_cx = max (view->m_cx, 0);
view->m_cy = max (view->m_cy, 0);
view->m_cx = min(view->m_cx, view->m_imWidth);
view->m_cy = min(view->m_cy, view->m_imHeight);
//view->m_cx = max(view->m_cx, view->m_winWidth/2);
//view->m_cy = max(view->m_cy, view->m_winHeight/2);
//view->m_cx = min(view->m_cx, view->m_imWidth - (view->m_winWidth / 2));
//view->m_cy = min(view->m_cy, view->m_imHeight - view->m_winHeight / 2);
view->m_dx = 0;
view->m_dy = 0;
break;
}
}
ZoomView() {
}
ZoomView(const string &name)
{
m_ZoomViewName = name;
}
~ZoomView()
{
}
void Init(int width = 512, int height = 512,
cv::MouseCallback mouseCallback = NULL)
{
m_winWidth = width;
m_winHeight = height;
cv::namedWindow(m_ZoomViewName, WINDOW_AUTOSIZE);
cv::resizeWindow(m_ZoomViewName, width, height);
if (mouseCallback) {
m_mouseCallback = mouseCallback;
}
cv::setMouseCallback(m_ZoomViewName, (cv::MouseCallback) DefaultMouseProcessor, this);
}
bool KeyboardProcessor(int key)
{
bool fOK = true;
return fOK;
}
void processView(Mat mat, Mat matOverlay, GraphData& graphData, int zoomWindowLockIndex)
{
if (zoomWindowLockIndex >= 0) {
if (this == g_LastActiveZoomView) {
// We are the active view, so save our coords
ZoomWindowPositions[zoomWindowLockIndex].x = m_cx;
ZoomWindowPositions[zoomWindowLockIndex].y = m_cy;
ZoomWindowPositions[zoomWindowLockIndex].dx = m_dx;
ZoomWindowPositions[zoomWindowLockIndex].dy = m_dy;
ZoomWindowPositions[zoomWindowLockIndex].zoomFactor = m_ZoomFactor;
}
else if (g_LastActiveZoomView != NULL) {
// We aren't the active view, so sync to somebody else
m_cx = ZoomWindowPositions[zoomWindowLockIndex].x;
m_cy = ZoomWindowPositions[zoomWindowLockIndex].y;
m_dx = ZoomWindowPositions[zoomWindowLockIndex].dx;
m_dy = ZoomWindowPositions[zoomWindowLockIndex].dy;
m_ZoomFactor = ZoomWindowPositions[zoomWindowLockIndex].zoomFactor;
}
}
MatView = mat;
if (firstTime) {
firstTime = false;
m_imWidth = MatView.cols;
m_imHeight = MatView.rows;
m_cx = MatView.cols / 2;
m_cy = MatView.rows / 2;
m_dx = 0;
m_dy = 0;
}
int srcHeight, srcWidth;
if (m_ZoomFactor >= 1) {
srcHeight = (int)((float)m_winHeight / m_ZoomFactor);
srcWidth = (int)((float)m_winWidth / m_ZoomFactor);
}
else if (m_ZoomFactor == 0) {
srcHeight = m_winHeight;
srcWidth = m_winWidth;
}
else {
srcHeight = m_winHeight * abs(m_ZoomFactor);
srcWidth = m_winWidth * abs(m_ZoomFactor);
}
srcWidth = min(srcWidth, MatView.size().width);
srcHeight = min(srcHeight, MatView.size().height);
//Point tl(m_cx - m_dx, m_dy - m_cy); // center of view
Point tl(m_cx - m_dx, m_cy - m_dy); // center of view
tl.x -= srcWidth / 2; // top left
tl.x = min(tl.x, MatView.size().width - srcWidth);
tl.x = max(0, tl.x);
//cout << tl.y;
tl.y -= srcHeight / 2;
tl.y = min(tl.y, MatView.size().height - srcHeight);
tl.y = max(0, tl.y);
MatZoomed = MatView(Rect(tl, Size(srcWidth, srcHeight)));
cv::resize(MatZoomed, MatZoomed, Size(m_winWidth, m_winHeight), 0, 0, INTER_NEAREST);
int nChannels = MatZoomed.channels();
int nDepth = MatZoomed.depth();
// 1if 16bpp, convert to 8bpp
if (nDepth == 2 && nChannels == 1) {
MatZoomed.convertTo(MatZoomed, CV_8UC1, 1.0 / 256);
}
if (nChannels != 3) {
cv::cvtColor(MatZoomed, MatZoomed, CV_GRAY2RGB);
}
// merge in the (usually) text overlay
if (!matOverlay.empty()) {
// make a black outline to the text
matOverlay.copyTo(MatShadow);
dilate(MatShadow, MatShadow, dilateElement, Point(-1, -1), 1);
cv::bitwise_not(MatShadow, MatShadow);
cv::bitwise_and(MatShadow, MatZoomed, MatZoomed);
cv::bitwise_or(matOverlay, MatZoomed, MatZoomed);
}
cv::imshow(m_ZoomViewName, MatZoomed);
}
private:
std::string m_ZoomViewName;
int m_cx = 0, m_cy = 0; // center of view (in view image coords) (0,0 is center of view)
int m_dx = 0, m_dy = 0; // drag delta (zoomed window coords)
int m_wx = 0, m_wy = 0; // window coords
int m_sx, m_sy; // mouse pos at start of drag (window coords)
int m_mx, m_my; // current mouse position
bool firstTime = true;
int m_winWidth, m_winHeight;
int m_imWidth, m_imHeight;
int m_ZoomFactor = 0; // 0 is 1:1 pixelwise
bool m_MouseLButtonDown = false;
int m_SampledPixelU16;
cv::Mat MatView; // original image to view
cv::Mat MatZoomed; // then modified by pan and zoom
cv::Mat MatShadow;
int dilation_size = 1;
Mat dilateElement = cv::getStructuringElement(MORPH_RECT,
Size(2 * dilation_size + 1, 2 * dilation_size + 1),
Point(dilation_size, dilation_size));
cv::MouseCallback m_mouseCallback = NULL;
};
}
|
8f04fe0951bdf1133848b6efef63efe765db9f6f
|
c6ef31569a31e0da96008865eccbbb7be67313f2
|
/cocosProject/proj.linux/Managers/EconomicsManager.cpp
|
517cfb0f2fa3c9cc14d19d7c5f11cf04b7e97f8e
|
[] |
no_license
|
jonyrock/FoxyBird
|
ee3fb1732be9a2349d03c86c0893a2c956037387
|
e4221134f8e0f6540e8ae6817dd68761f6ec4d14
|
refs/heads/master
| 2021-01-10T09:59:00.616567
| 2016-02-09T16:15:55
| 2016-02-09T16:15:55
| 51,378,657
| 4
| 1
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 625
|
cpp
|
EconomicsManager.cpp
|
#include "Managers/EconomicsManager.h"
#include <functional>
#include <unistd.h>
#include <thread>
#include <iostream>
using namespace std;
struct EconomicsManagerImpl : public EconomicsManager {
bool init() override {
return true;
}
void askPurchase(function<void(bool, string)> fun) {
fun(false, "asdsa");
}
void askRestore(std::function<void(bool, std::string)> fun) {
fun(false, "asdsa");
}
bool hasBoughtItem() override {
return false;
}
};
EconomicsManager* EconomicsManager::getInstance() {
static EconomicsManagerImpl instance;
return &instance;
}
|
9cf60ff25881a4d0778e31efbc0b976a0c94f9d2
|
7a92cfe4f12c3eda0cb1e30e770e42fde1342873
|
/Source/MyProject/Enemy.h
|
7e23dadea6c2347223231daf048d1c6026e89fc4
|
[] |
no_license
|
Tzarski/TGP-Group-Project
|
e2d5a9dfb48eff7cf343026fe05e21fe793a208b
|
f729543aad2115cd150206a2999ce1196fb00e8a
|
refs/heads/master
| 2022-01-14T02:35:38.040097
| 2019-04-30T07:37:36
| 2019-04-30T07:37:36
| 167,528,818
| 0
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 1,211
|
h
|
Enemy.h
|
// Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include <EngineGlobals.h>
#include <Runtime/Engine/Classes/Engine/Engine.h>
#include "../Plugins/2D/Paper2D/Source/Paper2D/Classes/PaperSprite.h"
#include "../Plugins/2D/Paper2D/Source/Paper2D/Classes/PaperSpriteComponent.h"
#include "GameFramework/Actor.h"
#include "PlayerChar.h"
#include "newastar.h"
#include "GenericPlatformMath.h"
#include "Runtime/Core/Public/Math/UnrealMathUtility.h"
#include "Enemy.generated.h"
UCLASS()
class MYPROJECT_API AEnemy : public AActor
{
GENERATED_BODY()
public:
// Sets default values for this actor's properties
AEnemy(const FObjectInitializer& PCIP);
protected:
// Called when the game starts or when spawned
virtual void BeginPlay() override;
TArray<AActor*> foundCharacter;
class APlayerChar * player;
class Anewastar * pathfinder;
bool dead = false;
int minus = 1;
class AItemsManager* itemsManager;
int randomID = FMath::FRandRange(1,3);
int randomKey = FMath::FRandRange(0, 100);
public:
// Called every frame
virtual void Tick(float DeltaTime) override;
void Hit();
bool moved;
int ticks = 0;
class UPaperSpriteComponent* defaultsprite;
};
|
4fcad5302820b11eda564d7f5ada079792a15c1d
|
c712c82341b30aad4678f6fbc758d6d20bd84c37
|
/CAC_Source_1.7884/PenalityListWindow.cpp
|
0e756d702344f7e8079d3f3489a1a8f775dd1e64
|
[] |
no_license
|
governmentbg/EPEP_2019_d2
|
ab547c729021e1d625181e264bdf287703dcb46c
|
5e68240f15805c485505438b27de12bab56df91e
|
refs/heads/master
| 2022-12-26T10:00:41.766991
| 2020-09-28T13:55:30
| 2020-09-28T13:55:30
| 292,803,726
| 0
| 0
| null | null | null | null |
WINDOWS-1251
|
C++
| false
| false
| 919
|
cpp
|
PenalityListWindow.cpp
|
//{{TPenalityListWindow Implementation}}
TPenalityListWindow::TPenalityListWindow(TWindow* parent, int resourceId)
:
TGroupListWindow(parent, resourceId, new TLongAliasArray, 172)
{
Add(
new TGroupListColumn("", group_inactive, 12, LVCFMT_CENTER | LVCFMT_NO_SEARCH),
new TGroupListColumn("Име", "F_NAME", 148),
NULL
);
}
void TPenalityListWindow::Subject()
{
subject_reality(this, (TPenalityType *) Group(), "F_PENALITIES");
}
void TPenalityListWindow::Print()
{
print_realticles((TLongAliasArray *) array, "налагане на глоби");
}
bool TPenalityListWindow::AddGroup(TGroup *group)
{
return edit_reality(this, (TPenalityType *) group, false, IDD_EDIT_PENALITY_TYPE);
}
bool TPenalityListWindow::EditGroup(TGroup *group)
{
return edit_reality(this, (TPenalityType *) group, true, IDD_EDIT_PENALITY_TYPE);
}
TGroup *TPenalityListWindow::NewGroup() const
{
return new TPenalityType;
}
|
569f4ebf49a09b9ea9cc9c90280c5f25113472d8
|
35e70e4185d32c90066ca0c31766d734fa778bf0
|
/pathinspectorwidget.h
|
a3b9376b96a9c126760198d2d63ba31cc50b0f42
|
[] |
no_license
|
andreykondakov74/FileInspector
|
7aff7e461e76cb3c35447ec57639afe340ce2c1c
|
b62529c332e5b0b1b42a8dd202543cb26c6f386a
|
refs/heads/main
| 2023-08-14T17:39:26.934408
| 2021-09-30T13:54:52
| 2021-09-30T13:54:52
| 412,084,046
| 0
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 1,414
|
h
|
pathinspectorwidget.h
|
#pragma once
#include <QWidget>
class detailWidget_c;
class QFileSystemModel;
class QItemSelection;
class QMenu;
class QPoint;
class QPushButton;
class QTreeView;
/*!
Defines a central widget of the application.
Contains a tree view and some buttons for navigation along with preview logic \em detailWidget_c
in order to display selection details.
*/
class pathInspectorWidget_c : public QWidget
{
Q_OBJECT
private:
// The selection preview logic
detailWidget_c *_detailWidget;
// Navigation Up button
QPushButton *_navigateUpButton;
// Navigation Home button
QPushButton *_navigateHomeButton;
// File system data model
QFileSystemModel *_fileSystemModel;
// File system tree view
QTreeView *_fileTreeView;
// Context menu for the file system tree view
QMenu *_fileTreeContextMenu;
public:
pathInspectorWidget_c( QWidget * = nullptr );
protected:
virtual ~pathInspectorWidget_c() = default;
virtual void setupModel();
virtual void setupTree();
public slots:
void folderSelected( const QString & );
void handleCustomMenuActivation( const QPoint & );
void handleContextMenuListAction();
private slots:
void fileTreeSelectionChanged( const QItemSelection &, const QItemSelection & );
void handleNavigateUp();
void handleNavigateHome();
signals:
void selectionChanged( const QString & );
};
|
538b57139424bd0d8cc8a066f99e0e3cbd7fc70c
|
88ae8695987ada722184307301e221e1ba3cc2fa
|
/third_party/angle/src/libANGLE/renderer/d3d/ImageD3D.h
|
ac58ca5cf626ff7cb9f4e1bc5bea83dda0982a4a
|
[
"BSD-3-Clause",
"Apache-2.0",
"LGPL-2.0-or-later",
"MIT",
"GPL-1.0-or-later",
"LicenseRef-scancode-unknown-license-reference"
] |
permissive
|
iridium-browser/iridium-browser
|
71d9c5ff76e014e6900b825f67389ab0ccd01329
|
5ee297f53dc7f8e70183031cff62f37b0f19d25f
|
refs/heads/master
| 2023-08-03T16:44:16.844552
| 2023-07-20T15:17:00
| 2023-07-23T16:09:30
| 220,016,632
| 341
| 40
|
BSD-3-Clause
| 2021-08-13T13:54:45
| 2019-11-06T14:32:31
| null |
UTF-8
|
C++
| false
| false
| 4,073
|
h
|
ImageD3D.h
|
//
// Copyright 2002 The ANGLE Project Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
//
// ImageD3D.h: Defines the rx::ImageD3D class, an abstract base class for the
// renderer-specific classes which will define the interface to the underlying
// surfaces or resources.
#ifndef LIBANGLE_RENDERER_D3D_IMAGED3D_H_
#define LIBANGLE_RENDERER_D3D_IMAGED3D_H_
#include "common/debug.h"
#include "common/PackedEnums.h"
#include "libANGLE/Error.h"
#include "libANGLE/angletypes.h"
namespace gl
{
class Context;
class Framebuffer;
class ImageIndex;
struct PixelUnpackState;
} // namespace gl
namespace rx
{
class TextureStorage;
class RendererD3D;
class RenderTargetD3D;
class ImageD3D : angle::NonCopyable
{
public:
ImageD3D();
virtual ~ImageD3D() {}
GLsizei getWidth() const { return mWidth; }
GLsizei getHeight() const { return mHeight; }
GLsizei getDepth() const { return mDepth; }
GLenum getInternalFormat() const { return mInternalFormat; }
gl::TextureType getType() const { return mType; }
bool isRenderableFormat() const { return mRenderable; }
void markDirty() { mDirty = true; }
void markClean() { mDirty = false; }
virtual bool isDirty() const = 0;
virtual bool redefine(gl::TextureType type,
GLenum internalformat,
const gl::Extents &size,
bool forceRelease) = 0;
virtual angle::Result loadData(const gl::Context *context,
const gl::Box &area,
const gl::PixelUnpackState &unpack,
GLenum type,
const void *input,
bool applySkipImages) = 0;
virtual angle::Result loadCompressedData(const gl::Context *context,
const gl::Box &area,
const void *input) = 0;
virtual angle::Result setManagedSurface2D(const gl::Context *context,
TextureStorage *storage,
int level);
virtual angle::Result setManagedSurfaceCube(const gl::Context *context,
TextureStorage *storage,
int face,
int level);
virtual angle::Result setManagedSurface3D(const gl::Context *context,
TextureStorage *storage,
int level);
virtual angle::Result setManagedSurface2DArray(const gl::Context *context,
TextureStorage *storage,
int layer,
int level);
virtual angle::Result copyToStorage(const gl::Context *context,
TextureStorage *storage,
const gl::ImageIndex &index,
const gl::Box ®ion) = 0;
virtual angle::Result copyFromTexStorage(const gl::Context *context,
const gl::ImageIndex &imageIndex,
TextureStorage *source) = 0;
virtual angle::Result copyFromFramebuffer(const gl::Context *context,
const gl::Offset &destOffset,
const gl::Rectangle &sourceArea,
const gl::Framebuffer *source) = 0;
protected:
GLsizei mWidth;
GLsizei mHeight;
GLsizei mDepth;
GLenum mInternalFormat;
bool mRenderable;
gl::TextureType mType;
bool mDirty;
};
} // namespace rx
#endif // LIBANGLE_RENDERER_D3D_IMAGED3D_H_
|
2ae17d280de35ed983103dc6eb2c2080d69df7dc
|
623a8be7e988b4006c82f25874e7570312089b96
|
/dpss/src/qvge/CTextLabel.cpp
|
32b368d61fdf8d41b49c2a8319adfcdbbc4b65ab
|
[] |
no_license
|
ArsMasiuk/DPSE
|
c8f30779bbff823c42552fe23bd0c867e122d314
|
f04446545d73d19a130eb3a565ad46bf7008eb27
|
refs/heads/master
| 2021-01-19T04:08:22.592215
| 2019-11-07T22:18:57
| 2019-11-07T22:18:57
| 84,427,904
| 2
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 506
|
cpp
|
CTextLabel.cpp
|
/*
This file is a part of
QVGE - Qt Visual Graph Editor
(c) 2016-2018 Ars L. Masiuk (ars.masiuk@gmail.com)
It can be used freely, maintaining the information above.
*/
#include "CTextLabel.h"
#include <QFontMetricsF>
CTextLabel::CTextLabel()
{
}
CTextLabel::~CTextLabel()
{
}
void CTextLabel::setText(const QString& text, const QFont& font)
{
m_text = text;
m_size = QFontMetricsF(font).size(0, text);
//Super::setText(txt.replace("\n", "<br>"));
//m_size = Super::size(); // too long...
}
|
5c36e8eea0e900cd46332e6d2f139ff8572410df
|
6232097590c8454d42856f2ea94a35bddd876a69
|
/BaekJoon/1264.cpp
|
784552b6ef0164f0d381b53af5c83613b051caa9
|
[] |
no_license
|
BiteSnail/BaekJoon
|
a4f3e387fca63df670c7879fe7f5093c4e198fd1
|
b7b3b7b18c02777130d2e1c3af4b165e1db11788
|
refs/heads/master
| 2023-02-13T06:51:47.978051
| 2023-02-01T02:08:40
| 2023-02-01T02:08:40
| 207,684,431
| 0
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 438
|
cpp
|
1264.cpp
|
#include <iostream>
#include <string>
using namespace std;
bool is_vowel(const char c){
return c == 'a' || c=='A' || c=='e' || c=='E' || c=='i' || c=='I' || c=='O' || c=='o' || c=='u' || c=='U';
}
int main(){
string str;
int cnt;
while(getline(cin, str), str!="#"){
cnt = 0;
for(int i=0;i<str.size();i++){
cnt += is_vowel(str[i]);
}
cout<< cnt << '\n';
}
return 0;
}
|
1fcea87db25307d67292e843340fe4df8da08669
|
7836899f9584bb4e8716baa6f490a01f5433b55c
|
/problem_495.cpp
|
a61887848db138120b07f60122a4bfd9ef2217e8
|
[] |
no_license
|
RayFong/leetcode
|
e479d2dbb83c89c47979adad3a7e2d17ca678a72
|
0d4fbd46b8545e44aa3d934b5d0b51e36bb4d4ab
|
refs/heads/main
| 2023-03-06T18:02:17.177333
| 2021-02-10T02:52:46
| 2021-02-10T02:52:46
| 301,999,577
| 0
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 710
|
cpp
|
problem_495.cpp
|
#include "util.h"
class Solution {
public:
string Demo() {
return "demo";
}
int findPoisonedDuration(vector<int>& timeSeries, int duration) {
if (timeSeries.empty()) return 0;
sort(timeSeries.begin(), timeSeries.end());
int cnt = duration;
for (size_t i = 1; i < timeSeries.size(); i++) {
auto diff = timeSeries[i] - timeSeries[i-1];
cnt += min(diff, duration);
}
return cnt;
}
};
int main(int argc, char* argv[]) {
Solution solution;
{
vector<int> timeSeries = {1, 2};
auto res = solution.findPoisonedDuration(timeSeries, 2);
println(res);
}
{
vector<int> timeSeries = {1, 4};
auto res = solution.findPoisonedDuration(timeSeries, 2);
println(res);
}
return 0;
}
|
dfc8f204c15cfc7d9ab96307b84f4c391c3311ab
|
726e12f5232f7b6199e45a301c22b605a7c8e202
|
/XAudio2/Code/PointLight.h
|
144c4a968fafbb07e77f1140d890567d61e933a4
|
[] |
no_license
|
jarllarsson/PA2505-Stort-Spelprojekt-Prototyp
|
7102a8aab92c2372f2956a28a7e23c8e82cd0d79
|
db4aa290b663d053134360eb2ba1e2fb09e02c68
|
refs/heads/master
| 2020-03-30T20:39:32.247008
| 2012-11-23T10:30:14
| 2012-11-23T10:30:14
| null | 0
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 1,333
|
h
|
PointLight.h
|
/************************************************************************/
/* Created by: Hoodad */
/* Date: 6/25/2012 */
/************************************************************************/
#ifndef POINTLIGHT_H__
#define POINTLIGHT_H__
#include "stdafx.h"
#include "AABB.h"
#include "Shader.h"
#include "LightInfo.h"
#include "MovementComp.h"
#include "Object.h"
#include "MeshBuffers.h"
class PointLight : public Object
{
private:
LightInfo mInformation[1];
MeshBuffers* mLightGeometry;
Shader* mShader;
D3DXVECTOR3 mLightAtt;
D3DXCOLOR m_color;
float dir;
ID3D11DeviceContext* mDeviceContext;
MovementComp* mMovement;
D3DXMATRIX m_scale;
ID3D11RasterizerState* m_rasterState;
AABB* m_debugData;
ID3D11BlendState* m_blendState;
public:
PointLight();
~PointLight();
HRESULT Init(ID3D11BlendState* p_blendState, ID3D11RasterizerState* p_rasterState, ID3D11DeviceContext* deviceContext,MeshBuffers* lightGeometry, AABB* p_debugData,Shader* shader,D3DXVECTOR3 pos, D3DXCOLOR diffuse, float range);
HRESULT Update(float deltaTime);
HRESULT Draw(D3DXMATRIX p_viewProjection, D3DXMATRIX viewProjectionInverse);
HRESULT Render(D3DXMATRIX viewProjection);
HRESULT RenderDebug(D3DXMATRIX p_viewProject);
D3DXCOLOR* GetColor();
};
#endif // POINTLIGHT_H__
|
fc53c98fc3e5cd17cad05f9ca4637f91f624124a
|
390b9d600d026733ff7180fa8dd5a42cac8bf797
|
/DelegateTest/testmodel.cpp
|
23280e59e5cd4629a31a6b4c2397ded5f44c068e
|
[] |
no_license
|
phyz777/DelegateTest
|
345cc807d06235a8139e64a382084ca6e614b959
|
d0a599c467de519e132b43f54f363df0b304122a
|
refs/heads/master
| 2021-08-20T08:45:40.297007
| 2017-11-28T16:40:01
| 2017-11-28T16:40:01
| 112,359,282
| 1
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 3,773
|
cpp
|
testmodel.cpp
|
#include "testmodel.hpp"
TestModel::TestModel()
:root(new RootItem()){
}
TestModel::~TestModel(){
}
int TestModel::rowCount(QModelIndex const& parent) const{
TestModelItemBase* itemBase =
reinterpret_cast<TestModelItemBase*>(parent.internalPointer());
switch(itemBase->getItemType()){
case TestModelItemBase::ITEM_TYPE::ROOT:
{
RootItem* item = dynamic_cast<RootItem*>(itemBase);
return item->getList().size();
}
case TestModelItemBase::ITEM_TYPE::TEST_ITEM:
{
TestModelItem* item = dynamic_cast<TestModelItem*>(itemBase);
return 0;
}
default:
return -1;
}
}
int TestModel::columnCount(QModelIndex const& parent) const{
return 1;
}
QModelIndex TestModel::index(int row, int column, QModelIndex const& parent) const{
if(0!=column){
return QModelIndex();
}
if(!parent.isValid()){
if(row==0){
return this->createIndex(0, 0, this->root);
}
return QModelIndex();
}
TestModelItemBase* parentItemBase = reinterpret_cast<TestModelItemBase*>(parent.internalPointer());
TestModelItemBase::ITEM_TYPE itemType = parentItemBase->getItemType();
switch(itemType){
case TestModelItemBase::ITEM_TYPE::ROOT:
{
RootItem* parentItem = dynamic_cast<RootItem*>(parentItemBase);
return this->createIndex(row, 0, reinterpret_cast<void*>(parentItem->getList().at(row)));
}
case TestModelItemBase::ITEM_TYPE::TEST_ITEM:
return QModelIndex();
default:
return QModelIndex();
}
}
QModelIndex TestModel::parent(QModelIndex const& index) const{
TestModelItemBase* parent =
reinterpret_cast<TestModelItemBase*>(index.internalPointer());
return this->createIndex(parent->getIndex(), 0,
reinterpret_cast<void*>(parent->getParent()));
}
QVariant TestModel::headerData(int section, Qt::Orientation orientation, int role) const{
if (0==section && Qt::Orientation::Horizontal==orientation && Qt::DisplayRole==role) {
int i = 42;
return QVariant(i);
} else {
return QVariant();
}
}
QVariant TestModel::data(QModelIndex const& index, int role) const{
TestModelItemBase* item = reinterpret_cast<TestModelItemBase*>(index.internalPointer());
if(Qt::DisplayRole==role){
switch(item->getItemType()){
case TestModelItemBase::ITEM_TYPE::TEST_ITEM:
return QString("Test item");
default:
return QString("");
}
}else{
if(Qt::EditRole==role){
QMessageBox::information(nullptr, "Model data", "We have an edit role");
}
if(Qt::UserRole==role){
QMessageBox::information(nullptr, "Model data", "We have a user role");
}
return QVariant();
}
}
Qt::ItemFlags TestModel::flags(QModelIndex const&){
QMessageBox::information(nullptr, "Model Flags", "Selectable, Editable, Enabled");
return (Qt::ItemIsSelectable | Qt::ItemIsEditable | Qt::ItemIsEnabled);
}
bool TestModel::setHeaderData(int, Qt::Orientation, const QVariant&, int){
QMessageBox::information(nullptr, "Set header data", "Just return true");
return true;
}
bool TestModel::setData(const QModelIndex&, const QVariant&, int){
QMessageBox::information(nullptr, "Set data", "Just return true");
return true;
}
void TestModel::insertTestItem(TestClass* testClass){
if(nullptr==testClass){
QMessageBox::critical(nullptr, "Critical", "Not inserting nullptr");
return;
}
TestModelItem* child = new TestModelItem(testClass, this->root->size(), this->root);
this->beginInsertRows(this->createIndex(0, 0, reinterpret_cast<void*>(this->root)),
this->root->size(), this->root->size());
this->root->appendChild(child);
this->endInsertRows();
}
RootItem* TestModel::getRoot(){
return this->root;
}
|
1da85d18efd371707e562428590b4877a56b603d
|
3142bae3886dc76fdcba9863f6ecf52604ca4d0e
|
/src/utilities/GenException.cc
|
8646fdb30a31f880cd2e4e0d55444419ff32060e
|
[
"MIT"
] |
permissive
|
khurrumsaleem/serment
|
28b58af8c23476e42fc049509971a73f35a3b076
|
c97947ccf3853f9578722e4fd9f0fd317254c118
|
refs/heads/master
| 2022-02-02T12:05:27.196186
| 2012-08-19T21:33:12
| 2012-08-19T21:33:12
| null | 0
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 1,770
|
cc
|
GenException.cc
|
//----------------------------------*-C++-*----------------------------------//
/*!
* \file GenException.cc
* \author Jeremy Roberts
* \date 04/09/2011
* \brief Member definitions of class GenException
* \note Modified version of K. Huff's class from cyclus
*/
//---------------------------------------------------------------------------//
// $Rev:: 106 $:Rev of last commit
// $Author:: j.alyn.roberts@gmail.com $:Author of last commit
// $Date:: 2011-06-15 20:35:53 -0400 (Wed, 15 Jun 2011) $:Date of last commit
//---------------------------------------------------------------------------//
#include <sstream>
#include "GenException.hh"
//namespace util
//{
string itoa(int i) { stringstream out; out << i; return out.str(); };
string dtoa(double d) { stringstream out; out << d; return out.str(); };
string GenException::prepend = "serment exception";
//- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
GenException::GenException()
{
myMessage = prepend;
}
//- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
GenException::GenException(int line, string file, string msg)
{
myMessage = prepend + "\n"
+ " on line: " + itoa(line) + "\n"
+ " in file: " + file + "\n"
+ " message: " + msg;
}
//- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
const char* GenException::what() const throw()
{
//const char* toRet = myMessage;
// return toRet;
return myMessage.c_str();
}
//- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
GenException::~GenException() throw()
{
}
//} // end namespace util
|
6c3e22d85a791ca1333b1cbe4f3850cd8fcc3073
|
b3aa189fe003d656d4a5a93434c1a0b9f0329e23
|
/example-callbacks/src/ofApp.cpp
|
f7c3aeca1adf8de88c6ff9c3a9511f00e5e8790b
|
[
"MIT"
] |
permissive
|
loudcube/ofxJsonUtilsUtils
|
46a8cafc908ffaef42f217d022880e8258571637
|
7fd1acf46404db4a66bb0ba5c498c5f89efea045
|
refs/heads/master
| 2023-07-03T03:11:52.498187
| 2018-04-12T02:21:49
| 2018-04-12T02:21:49
| null | 0
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 2,728
|
cpp
|
ofApp.cpp
|
#include "ofApp.h"
//--------------------------------------------------------------
void ofApp::setup(){
const std::map<float, std::string> size_maps = {
{5, "small"},
{20, "middle"},
{50, "large"}
};
data_.setDidLoadListener([size_maps](Data &data, const ofJson &json) {
std::string size_str = json["circle_size"];
for(auto s : size_maps) {
if(s.second == size_str) {
data.circle_size = s.first;
}
}
});
data_.setWillSaveListener([size_maps](const Data &data, ofJson &json) {
auto result = size_maps.find(data.circle_size);
if(result != end(size_maps)) {
json["circle_size"] = result->second;
}
});
data_.load("data.json");
}
//--------------------------------------------------------------
void ofApp::update(){
}
//--------------------------------------------------------------
void ofApp::draw(){
ofPushStyle();
ofNoFill();
ofSetColor(data_.line_color);
ofSetLineWidth(data_.line_width);
ofBeginShape();
for(auto &p : data_.points) {
ofVertex(p.x, p.y);
}
ofEndShape();
ofFill();
ofSetColor(data_.circle_color);
for(auto &p : data_.points) {
ofDrawCircle(p, data_.circle_size);
}
ofPopStyle();
ofDrawBitmapStringHighlight("click to add a point.", 10,10);
ofDrawBitmapStringHighlight("press enter to save to file.", 10,30);
ofDrawBitmapStringHighlight("when you edit data.json manually, it will reload automatically.", 10,50);
}
//--------------------------------------------------------------
void ofApp::keyPressed(int key){
switch(key) {
case OF_KEY_RETURN:
data_.overwrite();
break;
}
}
//--------------------------------------------------------------
void ofApp::keyReleased(int key){
}
//--------------------------------------------------------------
void ofApp::mouseMoved(int x, int y ){
}
//--------------------------------------------------------------
void ofApp::mouseDragged(int x, int y, int button){
}
//--------------------------------------------------------------
void ofApp::mousePressed(int x, int y, int button){
data_.points.emplace_back(x,y);
}
//--------------------------------------------------------------
void ofApp::mouseReleased(int x, int y, int button){
}
//--------------------------------------------------------------
void ofApp::mouseEntered(int x, int y){
}
//--------------------------------------------------------------
void ofApp::mouseExited(int x, int y){
}
//--------------------------------------------------------------
void ofApp::windowResized(int w, int h){
}
//--------------------------------------------------------------
void ofApp::gotMessage(ofMessage msg){
}
//--------------------------------------------------------------
void ofApp::dragEvent(ofDragInfo dragInfo){
}
|
6576ca643a74ceabe28214aa40ae95e24576fea8
|
a909df0ba2abf695df4a7d15350312d4c6463c48
|
/UVa/10593.cpp
|
54364ca542e98ea6c2c4e1693110ade85cab7de2
|
[] |
no_license
|
SayaUrobuchi/uvachan
|
1dadd767a96bb02c7e9449c48e463847480e98ec
|
c213f5f3dcfc72376913a21f9abe72988a8127a1
|
refs/heads/master
| 2023-07-23T03:59:50.638063
| 2023-07-16T04:31:23
| 2023-07-16T04:31:23
| 94,064,326
| 0
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 1,327
|
cpp
|
10593.cpp
|
#include <stdio.h>
#include <string.h>
char map[501];
short dp[500][2], dp2[500][3];
int main()
{
int n, i, j, k, l, ans, min;
while(scanf("%d", &n) == 1)
{
ans = 0;
memset(dp, 0, sizeof(dp));
memset(dp2, 0, sizeof(dp2));
for(i=0; i<n; i++)
{
scanf("%s", map);
for(j=0; j<n; j++)
{
min = 0;
if(map[j] == 'x')
{
if(i && j)
{
min = dp[j-1][0];
if(dp[j-1][1] < min)
{
min = dp[j-1][1];
}
if(dp[j][0] < min)
{
min = dp[j][0];
}
min++;
if(min > 1)
{
ans += min - 1;
}
dp[j][1] = min;
min = 1;
if(dp2[j][1])
{
if(j && j < n - 1)
{
min = dp2[j-1][1];
if(dp2[j][0] < min)
{
min = dp2[j][0];
}
if(dp2[j+1][1] < min)
{
min = dp2[j+1][1];
}
ans += min++;
}
}
dp2[j][2] = min;
}
else
{
dp[j][1] = 1;
dp2[j][2] = 1;
}
}
else
{
dp[j][1] = 0;
dp2[j][2] = 0;
}
if(j)
{
dp[j-1][0] = dp[j-1][1];
dp2[j-1][0] = dp2[j-1][1];
dp2[j-1][1] = dp2[j-1][2];
}
}
dp[j-1][0] = dp[j-1][1];
dp2[j-1][0] = dp2[j-1][1];
dp2[j-1][1] = dp2[j-1][2];
}
printf("%d\n", ans);
}
return 0;
}
|
fdfb211c54c5a31d40d4f5e591cc8ee6c2a38891
|
16354e2eecd983f4f7f7d9fe945267a322f6a9ec
|
/GG-codejam/2020/1-B/1.cpp
|
e16f6c95a77f344a26398136f9919e8dbc04bbd9
|
[] |
no_license
|
barnrang/Pro-con
|
3c6823e3b442b23500501005cf9db682d6e61c7f
|
1839ce45d9ff89c6371c51030209d022934ea750
|
refs/heads/master
| 2022-05-06T11:54:08.033266
| 2022-04-04T14:30:23
| 2022-04-04T14:30:23
| 180,594,413
| 0
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 3,594
|
cpp
|
1.cpp
|
#include <iostream>
#include <math.h>
#include <bitset>
#include <algorithm>
#define ll long long
using namespace std;
void do_case(int i);
int main() {
int n;
cin >> n;
for(int i = 1; i < n+1; i++){
do_case(i);
}
return 0;
}
void print_array(int* a, int n) {
cout << "[" << endl;
for (int i = 0; i < n; i++){
cout << a[i] << ", ";
}
cout << "]" << endl;
}
void do_case(int no) {
ll x, y;
cin >> x >> y;
ll abs_sum = abs(x) + abs(y);
if (abs_sum % 2 == 0) {
cout << "Case #" << no << ": " << "IMPOSSIBLE" << endl;
return;
}
int max_digit = log2((double)abs_sum)+1;
ll tmp = 1;
for (int i = 0; i < max_digit; i++) {
tmp = tmp * 2;
}
tmp--;
ll diff_max = (tmp - abs_sum) / 2;
string diff_bin = bitset<40>(diff_max).to_string();
reverse(diff_bin.begin(), diff_bin.end());
// cout << diff_bin << endl;
int digit[40];
for (int i = 0; i < 40; i++) digit[i] = 0;
for (int i = 0; i < max_digit; i++) {
if (diff_bin[i] == '0') {
digit[i] = 1;
}
else if (diff_bin[i] == '1') {
digit[i] = -1;
} else {
cout << "What the fuck" << endl;
}
}
string x_bin = bitset<40>(abs(x)).to_string();
reverse(x_bin.begin(), x_bin.end());
string y_bin = bitset<40>(abs(y)).to_string();
reverse(y_bin.begin(), y_bin.end());
int x_digit[40];
int y_digit[40];
for (int i = 0; i < 40; i++) {
x_digit[i] = 0;
y_digit[i] = 0;
}
int pointer = 0;
while (x_bin[pointer] != '1') pointer++;
while (pointer < max_digit) {
if (x_bin[pointer] == '1') {
if (digit[pointer] == 1) {
x_digit[pointer] = 1;
pointer++;
while (x_bin[pointer] == '0'){
pointer++;
if (pointer >= max_digit) break;
}
}
else if (digit[pointer] == -1)
{
x_digit[pointer] = -1; // Pass to next digit
while (x_bin[pointer] == '1') {
pointer++;
}
}
}
else {
if (digit[pointer] == 1) {
// Case where values been pass right
x_digit[pointer] = 1;
while (x_bin[pointer] == '0') {
pointer++;
}
}
else if (digit[pointer] == -1) {
x_digit[pointer] = -1; // Pass to next digit
pointer++; // See if next digit is 1
while (x_bin[pointer] == '1') {
pointer++;
}
}
}
}
for (int i = 0; i < max_digit; i++) {
if (x_digit[i] == 0) {
y_digit[i] = digit[i];
}
}
if (x < 0) {
for (int i = 0; i < max_digit; i++) {
x_digit[i] *= -1;
}
}
if (y < 0) {
for (int i = 0; i < max_digit; i++) {
y_digit[i] *= -1;
}
}
string output = "";
for (int i = 0; i < max_digit; i++) {
if (x_digit[i] == 1) {
output += "E";
}
if (x_digit[i] == -1) {
output += "W";
}
if (y_digit[i] == 1) {
output += "N";
}
if (y_digit[i] == -1) {
output += "S";
}
}
// print_array(x_digit, 10);
// print_array(y_digit, 10);
cout << "Case #" << no << ": " << output << endl;
}
|
786a5c571c7591c0c837f57901fd0ddc3721759a
|
a687e07a561ceeb06d0c4d6efa51f68d5358b573
|
/KOI/지역본선2006/초등부/2577/2577.cpp
|
9d940b32e6d7141854da5d29a90248226a1972c4
|
[] |
no_license
|
gnoeyp/BOJ
|
c499d88e3b41b9ed62fdc69fcee23783fc5fd94c
|
982760f98b82d498cbf7aac30e53e0dffebf11f3
|
refs/heads/master
| 2023-01-20T23:35:15.782970
| 2020-11-29T12:14:24
| 2020-11-29T12:14:24
| null | 0
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 318
|
cpp
|
2577.cpp
|
#include <iostream>
using namespace std;
int main() {
int count[10] = {0,};
int A, B, C, D;
cin >> A >> B >> C;
D = A*B*C;
while (D > 0) {
int a = D % 10;
count[a]++;
D /= 10;
}
for (int i = 0; i < 10; i++) {
cout << count[i] << endl;
}
return 0;
}
|
a4830d1384c1acfeedd722b628e08093ed8070d3
|
b8d116c857b13991366b58674a4dd1a96412b5bf
|
/src/materialsystem/stdshaders/fxctmp9_tmp/vertexlit_and_unlit_generic_bump_ps20b.inc
|
78bddcd6e3c28cb1a31386d514ed082f064fa0aa
|
[
"MIT"
] |
permissive
|
SCell555/hl2-asw-port
|
6eaa2a4f1f68f1dfb603657d469c42c85b2d9d1a
|
16441f599c6b2d3fd051ee2805cc08680dedbb03
|
refs/heads/master
| 2021-01-17T18:21:59.547507
| 2016-05-12T17:09:21
| 2016-05-12T17:09:21
| 49,386,904
| 3
| 1
| null | 2016-01-10T21:45:46
| 2016-01-10T21:45:44
| null |
UTF-8
|
C++
| false
| false
| 13,869
|
inc
|
vertexlit_and_unlit_generic_bump_ps20b.inc
|
// ALL SKIP STATEMENTS THAT AFFECT THIS SHADER!!!
// ( $FLASHLIGHT != 0 ) && ( $NUM_LIGHTS > 0 )
// ( $FLASHLIGHT == 0 ) && ( $FLASHLIGHTSHADOWS == 1 )
// (! $DETAILTEXTURE) && ( $DETAIL_BLEND_MODE != 0 )
// ( $DIFFUSELIGHTING == 0 ) && ( $LIGHTWARPTEXTURE == 1 )
// ( $SELFILLUMFRESNEL == 1 ) && ( $LIGHTWARPTEXTURE == 1 )
// ( $SELFILLUM == 0 ) && ( $SELFILLUMFRESNEL == 1 )
// ( $FLASHLIGHT == 1 ) && ( $SELFILLUMFRESNEL == 1 )
// ( $SELFILLUMFRESNEL == 1 ) && ( $DETAILTEXTURE == 1 )
// ( $SELFILLUMFRESNEL == 1 ) && ( $NORMALMAPALPHAENVMAPMASK == 1 )
// defined $PIXELFOGTYPE && defined $WRITEWATERFOGTODESTALPHA && ( $PIXELFOGTYPE != 1 ) && $WRITEWATERFOGTODESTALPHA
// defined $LIGHTING_PREVIEW && defined $FASTPATHENVMAPTINT && $LIGHTING_PREVIEW && $FASTPATHENVMAPTINT
// defined $LIGHTING_PREVIEW && defined $FASTPATHENVMAPCONTRAST && $LIGHTING_PREVIEW && $FASTPATHENVMAPCONTRAST
// defined $LIGHTING_PREVIEW && defined $FASTPATH && $LIGHTING_PREVIEW && $FASTPATH
// ($FLASHLIGHT || $FLASHLIGHTSHADOWS) && $LIGHTING_PREVIEW
// defined $PIXELFOGTYPE && defined $WRITEWATERFOGTODESTALPHA && ( $PIXELFOGTYPE != 1 ) && $WRITEWATERFOGTODESTALPHA
// defined $LIGHTING_PREVIEW && defined $FASTPATHENVMAPTINT && $LIGHTING_PREVIEW && $FASTPATHENVMAPTINT
// defined $LIGHTING_PREVIEW && defined $FASTPATHENVMAPCONTRAST && $LIGHTING_PREVIEW && $FASTPATHENVMAPCONTRAST
// defined $LIGHTING_PREVIEW && defined $FASTPATH && $LIGHTING_PREVIEW && $FASTPATH
// ($FLASHLIGHT || $FLASHLIGHTSHADOWS) && $LIGHTING_PREVIEW
// defined $PIXELFOGTYPE && defined $WRITEWATERFOGTODESTALPHA && ( $PIXELFOGTYPE != 1 ) && $WRITEWATERFOGTODESTALPHA
// defined $LIGHTING_PREVIEW && defined $FASTPATHENVMAPTINT && $LIGHTING_PREVIEW && $FASTPATHENVMAPTINT
// defined $LIGHTING_PREVIEW && defined $FASTPATHENVMAPCONTRAST && $LIGHTING_PREVIEW && $FASTPATHENVMAPCONTRAST
// defined $LIGHTING_PREVIEW && defined $FASTPATH && $LIGHTING_PREVIEW && $FASTPATH
// ($FLASHLIGHT || $FLASHLIGHTSHADOWS) && $LIGHTING_PREVIEW
#include "shaderlib/cshader.h"
class vertexlit_and_unlit_generic_bump_ps20b_Static_Index
{
private:
int m_nCUBEMAP;
#ifdef _DEBUG
bool m_bCUBEMAP;
#endif
public:
void SetCUBEMAP( int i )
{
Assert( i >= 0 && i <= 1 );
m_nCUBEMAP = i;
#ifdef _DEBUG
m_bCUBEMAP = true;
#endif
}
void SetCUBEMAP( bool i )
{
m_nCUBEMAP = i ? 1 : 0;
#ifdef _DEBUG
m_bCUBEMAP = true;
#endif
}
private:
int m_nDIFFUSELIGHTING;
#ifdef _DEBUG
bool m_bDIFFUSELIGHTING;
#endif
public:
void SetDIFFUSELIGHTING( int i )
{
Assert( i >= 0 && i <= 1 );
m_nDIFFUSELIGHTING = i;
#ifdef _DEBUG
m_bDIFFUSELIGHTING = true;
#endif
}
void SetDIFFUSELIGHTING( bool i )
{
m_nDIFFUSELIGHTING = i ? 1 : 0;
#ifdef _DEBUG
m_bDIFFUSELIGHTING = true;
#endif
}
private:
int m_nLIGHTWARPTEXTURE;
#ifdef _DEBUG
bool m_bLIGHTWARPTEXTURE;
#endif
public:
void SetLIGHTWARPTEXTURE( int i )
{
Assert( i >= 0 && i <= 1 );
m_nLIGHTWARPTEXTURE = i;
#ifdef _DEBUG
m_bLIGHTWARPTEXTURE = true;
#endif
}
void SetLIGHTWARPTEXTURE( bool i )
{
m_nLIGHTWARPTEXTURE = i ? 1 : 0;
#ifdef _DEBUG
m_bLIGHTWARPTEXTURE = true;
#endif
}
private:
int m_nSELFILLUM;
#ifdef _DEBUG
bool m_bSELFILLUM;
#endif
public:
void SetSELFILLUM( int i )
{
Assert( i >= 0 && i <= 1 );
m_nSELFILLUM = i;
#ifdef _DEBUG
m_bSELFILLUM = true;
#endif
}
void SetSELFILLUM( bool i )
{
m_nSELFILLUM = i ? 1 : 0;
#ifdef _DEBUG
m_bSELFILLUM = true;
#endif
}
private:
int m_nSELFILLUMFRESNEL;
#ifdef _DEBUG
bool m_bSELFILLUMFRESNEL;
#endif
public:
void SetSELFILLUMFRESNEL( int i )
{
Assert( i >= 0 && i <= 1 );
m_nSELFILLUMFRESNEL = i;
#ifdef _DEBUG
m_bSELFILLUMFRESNEL = true;
#endif
}
void SetSELFILLUMFRESNEL( bool i )
{
m_nSELFILLUMFRESNEL = i ? 1 : 0;
#ifdef _DEBUG
m_bSELFILLUMFRESNEL = true;
#endif
}
private:
int m_nNORMALMAPALPHAENVMAPMASK;
#ifdef _DEBUG
bool m_bNORMALMAPALPHAENVMAPMASK;
#endif
public:
void SetNORMALMAPALPHAENVMAPMASK( int i )
{
Assert( i >= 0 && i <= 1 );
m_nNORMALMAPALPHAENVMAPMASK = i;
#ifdef _DEBUG
m_bNORMALMAPALPHAENVMAPMASK = true;
#endif
}
void SetNORMALMAPALPHAENVMAPMASK( bool i )
{
m_nNORMALMAPALPHAENVMAPMASK = i ? 1 : 0;
#ifdef _DEBUG
m_bNORMALMAPALPHAENVMAPMASK = true;
#endif
}
private:
int m_nHALFLAMBERT;
#ifdef _DEBUG
bool m_bHALFLAMBERT;
#endif
public:
void SetHALFLAMBERT( int i )
{
Assert( i >= 0 && i <= 1 );
m_nHALFLAMBERT = i;
#ifdef _DEBUG
m_bHALFLAMBERT = true;
#endif
}
void SetHALFLAMBERT( bool i )
{
m_nHALFLAMBERT = i ? 1 : 0;
#ifdef _DEBUG
m_bHALFLAMBERT = true;
#endif
}
private:
int m_nFLASHLIGHT;
#ifdef _DEBUG
bool m_bFLASHLIGHT;
#endif
public:
void SetFLASHLIGHT( int i )
{
Assert( i >= 0 && i <= 1 );
m_nFLASHLIGHT = i;
#ifdef _DEBUG
m_bFLASHLIGHT = true;
#endif
}
void SetFLASHLIGHT( bool i )
{
m_nFLASHLIGHT = i ? 1 : 0;
#ifdef _DEBUG
m_bFLASHLIGHT = true;
#endif
}
private:
int m_nDETAILTEXTURE;
#ifdef _DEBUG
bool m_bDETAILTEXTURE;
#endif
public:
void SetDETAILTEXTURE( int i )
{
Assert( i >= 0 && i <= 1 );
m_nDETAILTEXTURE = i;
#ifdef _DEBUG
m_bDETAILTEXTURE = true;
#endif
}
void SetDETAILTEXTURE( bool i )
{
m_nDETAILTEXTURE = i ? 1 : 0;
#ifdef _DEBUG
m_bDETAILTEXTURE = true;
#endif
}
private:
int m_nDETAIL_BLEND_MODE;
#ifdef _DEBUG
bool m_bDETAIL_BLEND_MODE;
#endif
public:
void SetDETAIL_BLEND_MODE( int i )
{
Assert( i >= 0 && i <= 6 );
m_nDETAIL_BLEND_MODE = i;
#ifdef _DEBUG
m_bDETAIL_BLEND_MODE = true;
#endif
}
void SetDETAIL_BLEND_MODE( bool i )
{
m_nDETAIL_BLEND_MODE = i ? 1 : 0;
#ifdef _DEBUG
m_bDETAIL_BLEND_MODE = true;
#endif
}
private:
int m_nFLASHLIGHTDEPTHFILTERMODE;
#ifdef _DEBUG
bool m_bFLASHLIGHTDEPTHFILTERMODE;
#endif
public:
void SetFLASHLIGHTDEPTHFILTERMODE( int i )
{
Assert( i >= 0 && i <= 2 );
m_nFLASHLIGHTDEPTHFILTERMODE = i;
#ifdef _DEBUG
m_bFLASHLIGHTDEPTHFILTERMODE = true;
#endif
}
void SetFLASHLIGHTDEPTHFILTERMODE( bool i )
{
m_nFLASHLIGHTDEPTHFILTERMODE = i ? 1 : 0;
#ifdef _DEBUG
m_bFLASHLIGHTDEPTHFILTERMODE = true;
#endif
}
private:
int m_nSHADER_SRGB_READ;
#ifdef _DEBUG
bool m_bSHADER_SRGB_READ;
#endif
public:
void SetSHADER_SRGB_READ( int i )
{
Assert( i >= 0 && i <= 0 );
m_nSHADER_SRGB_READ = i;
#ifdef _DEBUG
m_bSHADER_SRGB_READ = true;
#endif
}
void SetSHADER_SRGB_READ( bool i )
{
m_nSHADER_SRGB_READ = i ? 1 : 0;
#ifdef _DEBUG
m_bSHADER_SRGB_READ = true;
#endif
}
private:
int m_nSTATICLIGHT3;
#ifdef _DEBUG
bool m_bSTATICLIGHT3;
#endif
public:
void SetSTATICLIGHT3( int i )
{
Assert( i >= 0 && i <= 0 );
m_nSTATICLIGHT3 = i;
#ifdef _DEBUG
m_bSTATICLIGHT3 = true;
#endif
}
void SetSTATICLIGHT3( bool i )
{
m_nSTATICLIGHT3 = i ? 1 : 0;
#ifdef _DEBUG
m_bSTATICLIGHT3 = true;
#endif
}
private:
int m_nWORLD_NORMAL;
#ifdef _DEBUG
bool m_bWORLD_NORMAL;
#endif
public:
void SetWORLD_NORMAL( int i )
{
Assert( i >= 0 && i <= 0 );
m_nWORLD_NORMAL = i;
#ifdef _DEBUG
m_bWORLD_NORMAL = true;
#endif
}
void SetWORLD_NORMAL( bool i )
{
m_nWORLD_NORMAL = i ? 1 : 0;
#ifdef _DEBUG
m_bWORLD_NORMAL = true;
#endif
}
private:
int m_nDOPIXELFOG;
#ifdef _DEBUG
bool m_bDOPIXELFOG;
#endif
public:
void SetDOPIXELFOG( int i )
{
Assert( i >= 0 && i <= 1 );
m_nDOPIXELFOG = i;
#ifdef _DEBUG
m_bDOPIXELFOG = true;
#endif
}
void SetDOPIXELFOG( bool i )
{
m_nDOPIXELFOG = i ? 1 : 0;
#ifdef _DEBUG
m_bDOPIXELFOG = true;
#endif
}
public:
// CONSTRUCTOR
vertexlit_and_unlit_generic_bump_ps20b_Static_Index( IShaderShadow *pShaderShadow, IMaterialVar **params )
{
#ifdef _DEBUG
m_bCUBEMAP = false;
#endif // _DEBUG
m_nCUBEMAP = 0;
#ifdef _DEBUG
m_bDIFFUSELIGHTING = false;
#endif // _DEBUG
m_nDIFFUSELIGHTING = 0;
#ifdef _DEBUG
m_bLIGHTWARPTEXTURE = false;
#endif // _DEBUG
m_nLIGHTWARPTEXTURE = 0;
#ifdef _DEBUG
m_bSELFILLUM = false;
#endif // _DEBUG
m_nSELFILLUM = 0;
#ifdef _DEBUG
m_bSELFILLUMFRESNEL = false;
#endif // _DEBUG
m_nSELFILLUMFRESNEL = 0;
#ifdef _DEBUG
m_bNORMALMAPALPHAENVMAPMASK = false;
#endif // _DEBUG
m_nNORMALMAPALPHAENVMAPMASK = 0;
#ifdef _DEBUG
m_bHALFLAMBERT = false;
#endif // _DEBUG
m_nHALFLAMBERT = 0;
#ifdef _DEBUG
m_bFLASHLIGHT = false;
#endif // _DEBUG
m_nFLASHLIGHT = 0;
#ifdef _DEBUG
m_bDETAILTEXTURE = false;
#endif // _DEBUG
m_nDETAILTEXTURE = 0;
#ifdef _DEBUG
m_bDETAIL_BLEND_MODE = false;
#endif // _DEBUG
m_nDETAIL_BLEND_MODE = 0;
#ifdef _DEBUG
m_bFLASHLIGHTDEPTHFILTERMODE = false;
#endif // _DEBUG
m_nFLASHLIGHTDEPTHFILTERMODE = 0;
#ifdef _DEBUG
m_bSHADER_SRGB_READ = false;
#endif // _DEBUG
m_nSHADER_SRGB_READ = 0;
#ifdef _DEBUG
m_bSTATICLIGHT3 = false;
#endif // _DEBUG
m_nSTATICLIGHT3 = 0;
#ifdef _DEBUG
m_bWORLD_NORMAL = false;
#endif // _DEBUG
m_nWORLD_NORMAL = 0;
#ifdef _DEBUG
m_bDOPIXELFOG = true;
#endif // _DEBUG
m_nDOPIXELFOG = !IS_FLAG_SET( MATERIAL_VAR_VERTEXFOG ) ? 1 : 0 ;
}
int GetIndex()
{
// Asserts to make sure that we aren't using any skipped combinations.
// Asserts to make sure that we are setting all of the combination vars.
#ifdef _DEBUG
bool bAllStaticVarsDefined = m_bCUBEMAP && m_bDIFFUSELIGHTING && m_bLIGHTWARPTEXTURE && m_bSELFILLUM && m_bSELFILLUMFRESNEL && m_bNORMALMAPALPHAENVMAPMASK && m_bHALFLAMBERT && m_bFLASHLIGHT && m_bDETAILTEXTURE && m_bDETAIL_BLEND_MODE && m_bFLASHLIGHTDEPTHFILTERMODE && m_bSHADER_SRGB_READ && m_bSTATICLIGHT3 && m_bWORLD_NORMAL && m_bDOPIXELFOG;
Assert( bAllStaticVarsDefined );
#endif // _DEBUG
return ( 80 * m_nCUBEMAP ) + ( 160 * m_nDIFFUSELIGHTING ) + ( 320 * m_nLIGHTWARPTEXTURE ) + ( 640 * m_nSELFILLUM ) + ( 1280 * m_nSELFILLUMFRESNEL ) + ( 2560 * m_nNORMALMAPALPHAENVMAPMASK ) + ( 5120 * m_nHALFLAMBERT ) + ( 10240 * m_nFLASHLIGHT ) + ( 20480 * m_nDETAILTEXTURE ) + ( 40960 * m_nDETAIL_BLEND_MODE ) + ( 286720 * m_nFLASHLIGHTDEPTHFILTERMODE ) + ( 860160 * m_nSHADER_SRGB_READ ) + ( 860160 * m_nSTATICLIGHT3 ) + ( 860160 * m_nWORLD_NORMAL ) + ( 860160 * m_nDOPIXELFOG ) + 0;
}
};
#define shaderStaticTest_vertexlit_and_unlit_generic_bump_ps20b psh_forgot_to_set_static_CUBEMAP + psh_forgot_to_set_static_DIFFUSELIGHTING + psh_forgot_to_set_static_LIGHTWARPTEXTURE + psh_forgot_to_set_static_SELFILLUM + psh_forgot_to_set_static_SELFILLUMFRESNEL + psh_forgot_to_set_static_NORMALMAPALPHAENVMAPMASK + psh_forgot_to_set_static_HALFLAMBERT + psh_forgot_to_set_static_FLASHLIGHT + psh_forgot_to_set_static_DETAILTEXTURE + psh_forgot_to_set_static_DETAIL_BLEND_MODE + psh_forgot_to_set_static_FLASHLIGHTDEPTHFILTERMODE + psh_forgot_to_set_static_SHADER_SRGB_READ + psh_forgot_to_set_static_STATICLIGHT3 + psh_forgot_to_set_static_WORLD_NORMAL + 0
class vertexlit_and_unlit_generic_bump_ps20b_Dynamic_Index
{
private:
int m_nWRITEWATERFOGTODESTALPHA;
#ifdef _DEBUG
bool m_bWRITEWATERFOGTODESTALPHA;
#endif
public:
void SetWRITEWATERFOGTODESTALPHA( int i )
{
Assert( i >= 0 && i <= 1 );
m_nWRITEWATERFOGTODESTALPHA = i;
#ifdef _DEBUG
m_bWRITEWATERFOGTODESTALPHA = true;
#endif
}
void SetWRITEWATERFOGTODESTALPHA( bool i )
{
m_nWRITEWATERFOGTODESTALPHA = i ? 1 : 0;
#ifdef _DEBUG
m_bWRITEWATERFOGTODESTALPHA = true;
#endif
}
private:
int m_nNUM_LIGHTS;
#ifdef _DEBUG
bool m_bNUM_LIGHTS;
#endif
public:
void SetNUM_LIGHTS( int i )
{
Assert( i >= 0 && i <= 4 );
m_nNUM_LIGHTS = i;
#ifdef _DEBUG
m_bNUM_LIGHTS = true;
#endif
}
void SetNUM_LIGHTS( bool i )
{
m_nNUM_LIGHTS = i ? 1 : 0;
#ifdef _DEBUG
m_bNUM_LIGHTS = true;
#endif
}
private:
int m_nAMBIENT_LIGHT;
#ifdef _DEBUG
bool m_bAMBIENT_LIGHT;
#endif
public:
void SetAMBIENT_LIGHT( int i )
{
Assert( i >= 0 && i <= 1 );
m_nAMBIENT_LIGHT = i;
#ifdef _DEBUG
m_bAMBIENT_LIGHT = true;
#endif
}
void SetAMBIENT_LIGHT( bool i )
{
m_nAMBIENT_LIGHT = i ? 1 : 0;
#ifdef _DEBUG
m_bAMBIENT_LIGHT = true;
#endif
}
private:
int m_nFLASHLIGHTSHADOWS;
#ifdef _DEBUG
bool m_bFLASHLIGHTSHADOWS;
#endif
public:
void SetFLASHLIGHTSHADOWS( int i )
{
Assert( i >= 0 && i <= 1 );
m_nFLASHLIGHTSHADOWS = i;
#ifdef _DEBUG
m_bFLASHLIGHTSHADOWS = true;
#endif
}
void SetFLASHLIGHTSHADOWS( bool i )
{
m_nFLASHLIGHTSHADOWS = i ? 1 : 0;
#ifdef _DEBUG
m_bFLASHLIGHTSHADOWS = true;
#endif
}
private:
int m_nPIXELFOGTYPE;
#ifdef _DEBUG
bool m_bPIXELFOGTYPE;
#endif
public:
void SetPIXELFOGTYPE( int i )
{
Assert( i >= 0 && i <= 1 );
m_nPIXELFOGTYPE = i;
#ifdef _DEBUG
m_bPIXELFOGTYPE = true;
#endif
}
void SetPIXELFOGTYPE( bool i )
{
m_nPIXELFOGTYPE = i ? 1 : 0;
#ifdef _DEBUG
m_bPIXELFOGTYPE = true;
#endif
}
public:
// CONSTRUCTOR
vertexlit_and_unlit_generic_bump_ps20b_Dynamic_Index( IShaderDynamicAPI *pShaderAPI )
{
#ifdef _DEBUG
m_bWRITEWATERFOGTODESTALPHA = false;
#endif // _DEBUG
m_nWRITEWATERFOGTODESTALPHA = 0;
#ifdef _DEBUG
m_bNUM_LIGHTS = false;
#endif // _DEBUG
m_nNUM_LIGHTS = 0;
#ifdef _DEBUG
m_bAMBIENT_LIGHT = false;
#endif // _DEBUG
m_nAMBIENT_LIGHT = 0;
#ifdef _DEBUG
m_bFLASHLIGHTSHADOWS = false;
#endif // _DEBUG
m_nFLASHLIGHTSHADOWS = 0;
#ifdef _DEBUG
m_bPIXELFOGTYPE = true;
#endif // _DEBUG
m_nPIXELFOGTYPE = ( pShaderAPI->GetSceneFogMode() == MATERIAL_FOG_LINEAR_BELOW_FOG_Z ) ;
}
int GetIndex()
{
// Asserts to make sure that we aren't using any skipped combinations.
// Asserts to make sure that we are setting all of the combination vars.
#ifdef _DEBUG
bool bAllDynamicVarsDefined = m_bWRITEWATERFOGTODESTALPHA && m_bNUM_LIGHTS && m_bAMBIENT_LIGHT && m_bFLASHLIGHTSHADOWS && m_bPIXELFOGTYPE;
Assert( bAllDynamicVarsDefined );
#endif // _DEBUG
return ( 1 * m_nWRITEWATERFOGTODESTALPHA ) + ( 2 * m_nNUM_LIGHTS ) + ( 10 * m_nAMBIENT_LIGHT ) + ( 20 * m_nFLASHLIGHTSHADOWS ) + ( 40 * m_nPIXELFOGTYPE ) + 0;
}
};
#define shaderDynamicTest_vertexlit_and_unlit_generic_bump_ps20b psh_forgot_to_set_dynamic_WRITEWATERFOGTODESTALPHA + psh_forgot_to_set_dynamic_NUM_LIGHTS + psh_forgot_to_set_dynamic_AMBIENT_LIGHT + psh_forgot_to_set_dynamic_FLASHLIGHTSHADOWS + 0
|
12acb19838bbb48159b2fda7ad2fb0db9857eb02
|
75399026dac78ee4656dc2674f05b32c9a60a1e1
|
/digital-speech-processing/hw3/dsp_hw3/mapping.cpp
|
5719f9d7ae171ecb1456b1e775184270c0863587
|
[
"MIT"
] |
permissive
|
silverneko/HWs
|
c3f406b44ac623bf8a73fe52b1532838882c6c0f
|
84d19316e01c3bb7b2fcf1fa9ad3dff99c01b543
|
refs/heads/master
| 2018-09-10T06:39:01.890346
| 2018-06-05T12:01:30
| 2018-06-08T11:38:45
| 71,684,292
| 0
| 1
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 1,009
|
cpp
|
mapping.cpp
|
#include <iostream>
#include <fstream>
#include <string>
#include <map>
#include <set>
#include <vector>
using namespace std;
int main(int argc, char *argv[]) {
if (argc != 2) {
cerr << "Usage: " << argv[0] << " [Big5 to BoPoMoPho mapping]\n";
return -1;
}
map<string,set<string>> ReverseMapping;
vector<string> Chars;
ifstream fin(argv[1]);
string Big5, Bopomo;
while(fin >> Big5 >> Bopomo) {
string Initial(Bopomo.substr(0, 2));
Big5 = Big5.substr(0, 2);
ReverseMapping[Initial].insert(Big5);
Chars.push_back(Big5);
for (int i = 2; i < Bopomo.size(); ++i) {
if (Bopomo[i] == '/') {
ReverseMapping[Bopomo.substr(i+1, 2)].insert(Big5);
}
}
}
fin.close();
for (auto It = ReverseMapping.begin(); It != ReverseMapping.end(); ++It) {
cout << It->first;
for (auto Char : It->second) {
cout << " " << Char;
}
cout << endl;
}
for (auto Char : Chars) {
cout << Char << " " << Char << endl;
}
return 0;
}
|
fe493a12f32a26456c0d99272b7867b6e431f35f
|
e9774bd2d0cd9aaad49eacd092ba97e95dbf9a5f
|
/problems/C - Simple Strings.cpp
|
e2403ebf38efa1613c457afecbbe021264d5e752
|
[] |
no_license
|
My-Competitive-Programming-Legacy/CodeForces
|
fb589c187706060d8a33eccf75597dad4dab904d
|
f9df0ffe76b1d37215f063e87920c0044fe226a4
|
refs/heads/master
| 2023-06-23T06:04:30.369027
| 2021-07-19T12:20:19
| 2021-07-19T12:20:19
| 387,414,460
| 0
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 905
|
cpp
|
C - Simple Strings.cpp
|
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
#define ar array
#define space " "
#define pb push_back
#define vi vector<int>
#define vii vector<vector<int>>
const double inf = 2e18;
#define EPS 0.0000000001
void solve() {
string s;
cin >> s;
int n = (int) s.size();
vector<char> nxt(n);
nxt[n - 1] = '*';
for (int i = n - 2; i >= 0; i--) {
if (s[i] == s[i + 1]) nxt[i] = nxt[i + 1];
else nxt[i] = s[i + 1];
}
for (int i = 0; i < n - 1; i++) {
if(s[i] == s[i+1]) {
char bad = '*' ;
if(i+2 < n ) bad = s[i+2] ;
for(char c = 'a' ; c <='z';c++){
if(c != s[i] && c != bad ){
s[i+1] =c ;
break;
}
}
}
}
cout << s << endl;
}
int main() {
int q = 1;
// cin >> q;
while (q--) {
solve();
}
}
|
aab746da517a5f3be6af3259af7e5941645be334
|
18446ae1df7667ea915dec633d6ad76227e339ec
|
/leafToDLL.cpp
|
02e02150902764559091207688231a67ef0e6617
|
[] |
no_license
|
muneerkhann13/Tree
|
46ece1d7ca40f8aee1e3bd0ed3332f57dc877d7d
|
c6524160d26b756ad3389e24790b3629909b317c
|
refs/heads/master
| 2021-01-11T16:31:20.610848
| 2017-02-01T16:43:44
| 2017-02-01T16:43:44
| 80,097,613
| 0
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 345
|
cpp
|
leafToDLL.cpp
|
node *leafToDLL(node *root,node **head){
if(root!=NULL){
if(root->left==NULL&&root->right==NULL){
root->right=(*head);
if((*head)!=NULL)
(*head)->left=root;
*head=root;
return NULL;
}
root->right=leafToDLL(root->right,head);
root->left=leafToDLL(root->left,head);
return root;
}
}
|
949e3685790476f9fc03482ba11b114fc0118a58
|
d7d471213a5563cbb250aceb7fa5d079068d2e5f
|
/src/ui/ColorChooser.h
|
db79b8349822892a3a2e9596aada1de3b0bf3c0e
|
[] |
no_license
|
Rowanion/ColorChooser
|
1496f0c7ceb3f89f075792133bb9bfd66749b28d
|
39de15d0591404b67faf183b3792f0a7612b9f29
|
refs/heads/master
| 2022-10-08T05:57:59.939268
| 2017-01-30T08:42:48
| 2017-01-30T08:42:48
| 48,139,674
| 0
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 548
|
h
|
ColorChooser.h
|
#pragma once
#include <QtWidgets/QMainWindow>
#include "ui_ColorChooser.h"
class ColorChooser : public QMainWindow, public Ui_ColorChooser
{
Q_OBJECT
public:
ColorChooser(QWidget* parent = nullptr);
~ColorChooser();
private slots:
void onCustomContextMenu( const QPoint & point );
void copyName();
void copyHexRGBColor();
void copyHexARGBColor();
void copyByteRGBColor();
void copyFloatRGBColor();
void onTableClicked( const QModelIndex& pIndex );
private:
class QStandardItemModel* m_model{ nullptr };
QString m_currentColor;
};
|
91f3f86524eeb8962182e917d6e5e68ec29c76c1
|
b64524fb3a3965740d9f1ed3205f0f12c5abf02f
|
/Final Project/main.cpp
|
43618a9640653f3fae89b9e8742fc4c6ee29a0cc
|
[] |
no_license
|
GeorgiusKurli/Data_Structure_Final_Project
|
40086d6e6ef33f35822cefa4269b1a16b6313407
|
d0eaecc2df83042e32dff55e603344361b2fff8e
|
refs/heads/master
| 2020-03-19T05:10:21.700194
| 2018-06-04T14:53:03
| 2018-06-04T14:53:03
| 135,906,123
| 0
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 11,062
|
cpp
|
main.cpp
|
#include<iostream>
#include<fstream>
using namespace std;
//Used to trim whitespace from a string
string Trim(string line){
if(line.substr(0,1) == " "){
line = line.erase(line.front());
}
if(line.substr(line.length(),1) == " "){
line.pop_back();
}
return line;
}
//A huffman tree node
struct Huffman_Node{
Huffman_Node* left;
Huffman_Node* right;
int frequency;
string letter;
};
//used to store code generated by the huffman tree
string huffman_code = "";
//Used to generate a code based on the huffman tree
void generate_code(Huffman_Node* node, string code){
//base case
if(node->left == NULL && node->right == NULL){
huffman_code += node->letter + code + "___";
}
if(node->left != NULL){
generate_code(node->left, code + "0");
}
if(node->right != NULL){
generate_code(node->right, code + "1");
}
}
//Creating a node structure for the priority queue
struct Node{
Node* next;
int frequency;
string letter;
Huffman_Node* huffman_node;
};
bool empty(Node*head);
//Used for inserting data into a priority queue
void insert_node(Node* head, string letter, int frequency){
Node* current = head;
Node* temp = new Node();
temp->huffman_node = NULL;
temp->frequency = frequency;
temp->letter = letter;
while(current->next != NULL && frequency > current->next->frequency)
{
current = current->next;
}
if(current->next == NULL){
temp->next = NULL;
current->next = temp;
}
else{
temp->next = current->next;
current->next = temp;
}
}
// Used for inserting a huffman node into the priority queue
void insert_node(Node* head, Huffman_Node* node){
Node* current = head;
Node* temp = new Node();
temp->huffman_node = node;
temp->frequency = node->frequency;
while(current->next != NULL && temp->frequency > current->next->frequency)
{
current = current->next;
}
if(current->next == NULL){
temp->next = NULL;
current->next = temp;
}
else{
temp->next = current->next;
current->next = temp;
}
}
//Used for popping in a priority queue
Node* pop(Node* head){
if(!empty(head)){
Node* current = head;
if(head->next->next != NULL){
current = current->next;
head->next = current->next;
return current;
}
else if(head->next != NULL){
current = head->next;
head->next = NULL;
return current;
}
}
}
//Used to start the priority queue
Node* initialize_queue(string letter, int frequency){
Node* head = new Node();
head->frequency = frequency;
head->letter = letter;
head->next = NULL;
return head;
}
//Used to print every node in a priority queue
Node* printall(Node* head){
Node* current = head;
current = current->next;
while(current != NULL){
cout << current->letter;
cout << current->frequency << endl;
current = current->next;
}
}
//Used to check if the queue is empty
bool empty(Node* head){
if(head->next == NULL){
return true;
}
return false;
}
void Compress(string filedir, string filesavedas){
//Used to read the file
ifstream filereader;
//Used to convert string into index
hash<string> myhash;
//Used to temporarily store current items
string current_char;
int current_index;
int modulus = 10000;
//Used to store all letters used
string letters[1000] = {""};
//Used to count unique letters
int letter_count = 0;
//Used to count all letters
int all_letter_count = -1;
//Used to store frequency and letters
int max_index = 10000;
int letter_frequency[max_index] = {};
string letter_present[max_index] = {""};
//Opening of the file
filereader.open(filedir);
//Reading through the file char by char and adding into respective hash sets
if(filereader.is_open()){
while(filereader.good()){
all_letter_count += 1;
current_char = filereader.get();
current_index = myhash(current_char) % modulus;
//Adding the letter into the array if index of the array is null
if(letter_present[current_index] == ""){
letter_present[current_index] = current_char;
letter_frequency[current_index] = 1;
letters[letter_count] = current_char;
letter_count += 1;
}
//Collision Prevention
else if(letter_present[current_index] != current_char){
//Moving one by one to find a free slot or the current char
while(letter_present[current_index] != "" && letter_present[current_index] != current_char){
if(current_index + 1 > max_index){
current_index = current_index - max_index;
}
current_index = current_index + 1;
}
if(letter_present[current_index] == ""){
letter_present[current_index] = current_char;
letter_frequency[current_index] = 1;
letters[letter_count] = current_char;
letter_count += 1;
}
else{
letter_frequency[current_index] += 1;
}
}
//Increamenting frequency if same char is found
else{
letter_frequency[current_index] += 1;
}
}
}
cout << "LOG: Hashing completed" << endl;
filereader.close();
Node* head = initialize_queue("",0);
// Adding all of the data into the priority queue
for(int x = 0; x < letter_count; x++)
{
current_index = myhash(letters[x]) % modulus;
insert_node(head, letter_present[current_index], letter_frequency[current_index]);
}
//Creating Huffman Tree
Node* left;
Node* right;
Huffman_Node *huffman_node, *leaf_left, *leaf_right;
//removing end of file char
pop(head);
letter_count -= 1;
while(!empty(head)){
//Popping two nodes from queue
left = pop(head);
//check if pop(head) is still executable
if(right = pop(head)){
//Creating new huffman node
huffman_node = new Huffman_Node();
huffman_node->frequency = left->frequency + right->frequency;
huffman_node->letter = "";
//Creating left leaf
if(left->huffman_node == NULL){
leaf_left = new Huffman_Node();
leaf_left->frequency = left->frequency;
leaf_left->letter = left->letter;
leaf_left->left = NULL;
leaf_left->right = NULL;
huffman_node->left = leaf_left;
}
else{
huffman_node->left = left->huffman_node;
}
//Creating right leaf
if(right->huffman_node == NULL){
leaf_right = new Huffman_Node();
leaf_right->frequency = right->frequency;
leaf_right->letter = right->letter;
leaf_right->left = NULL;
leaf_right->right = NULL;
huffman_node->right = leaf_right;
}
else{
huffman_node->right = right->huffman_node;
}
insert_node(head, huffman_node);
}
}
//Generating code from the huffman tree
generate_code(left->huffman_node, "");
cout << "LOG: Huffman completed" << endl;
//Output file
ofstream file_code_writer;
ofstream file_compressed_writer;
filereader.open(filedir);
file_code_writer.open(filedir+"_code.txt");
int index;
//Writing the code, letter count and unique letter count into a file
file_code_writer << all_letter_count << " " << letter_count << " ";
file_code_writer.flush();
file_code_writer << huffman_code;
file_code_writer.close();
cout << "LOG: Code file written successfully" << endl;
file_compressed_writer.open(filesavedas);
//Used to store temporary code
string temp_code;
//Used for comparison
string zero = "0";
//Used to get number of binary created
float binary_count = 0;
string temp_char;
int iterator;
if(filereader.is_open()){
for(int x = 0; x < all_letter_count; x++){
current_char = filereader.get();
iterator = 1;
temp_char = huffman_code.substr(huffman_code.find(current_char) + iterator, 1);
temp_code = "";
while(temp_char != "_"){
temp_code += temp_char;
iterator += 1;
temp_char = huffman_code.substr(huffman_code.find(current_char) + iterator, 1);
}
for(int i = 0; i < temp_code.length(); i++){
if(string(1, temp_code[i]) == zero){
file_compressed_writer << "0";
}
else{
file_compressed_writer << "1";
}
file_compressed_writer.flush();
binary_count += 1;
}
}
}
cout << "LOG: Main file written successfully" << endl;
filereader.close();
file_compressed_writer.close();
cout << "File size: " << all_letter_count * 8 << " bits" << endl;
cout << "Theoretical compressed file size: " << binary_count << " bits" << endl;
cout << "Theoretical percentage space saved: " << 100 - binary_count/(all_letter_count * 8) * 100 << "%" << endl;
}
//Function to decompress
void Decompress(string filedir, string filecode, string filesavedas){
ifstream code_filereader;
ifstream main_filereader;
ofstream filewriter;
string huffman_code = "";
string current;
int all_letter_count;
int letter_count;
code_filereader.open(filecode);
if(code_filereader.is_open()){
//Get total character count
current = code_filereader.get();
while((current) != " "){
huffman_code += current;
current = code_filereader.get();
}
all_letter_count = stoi(huffman_code);
huffman_code = "";
current = code_filereader.get();
while((current) != " "){
huffman_code += current;
current = code_filereader.get();
}
letter_count = stoi(huffman_code);
huffman_code = "";
while(code_filereader.good()){
huffman_code += code_filereader.get();
}
}
huffman_code.pop_back();
cout << "LOG: Code file read." << endl;
code_filereader.close();
string huffman_code_array[letter_count];
int iterator = 0;
char delimiter = '_';
//Splitting huffman code into array
for(int x = 0; x < letter_count; x++){
while(huffman_code[iterator] != delimiter){
current += huffman_code[iterator];
iterator += 1;
}
iterator += 3;
huffman_code_array[x] = current;
current = "";
}
huffman_code_array[0] = huffman_code_array[0].substr(1);
int position;
cout << "LOG: Huffman code reconstructed" << endl;
main_filereader.open(filedir);
filewriter.open(filesavedas);
//Used to store current letter codes
string current_code = "";
//Bool used to check if code is found
bool found;
if(main_filereader.is_open()){
//Loop for each letter
for(int i = 0; i < all_letter_count; i++){
found = false;
if(!main_filereader.good()){
break;
}
current_code = main_filereader.get();
while(!found){
iterator = 0;
while(iterator < letter_count){
if(huffman_code_array[iterator].substr(1, -1) == current_code){
iterator = letter_count+1;
}
else{
iterator += 1;
}
}
if(iterator == letter_count){
current_code += main_filereader.get();
}
else{
found = true;
}
}
for(int x = 0; x < letter_count; x++){
if(huffman_code_array[x].substr(1, -1) == current_code){
filewriter << huffman_code_array[x].substr(0,1);
filewriter.flush();
}
}
}
}
main_filereader.close();
filewriter.close();
cout << "LOG: Output file successfully created." << endl;
};
int main(){
string dir;
cout << "Input file directory" << endl;
cin >> dir;
Compress(dir + ".txt", dir + "_compressed.txt");
Decompress(dir + "_compressed.txt",dir + ".txt_code.txt", dir + "_output.txt");
}
|
0840ab0c55d79c5aba6472d1d0ef52b33c36afd1
|
86597074758b2e8740a8a122f67aa7f27d86eaa6
|
/src/Light.h
|
c5e107b3773a5ce4307f0abb42314811fb965501
|
[] |
no_license
|
shadept/AVT
|
9c5782f4dd6f89a8697e5d82f83629d6994e5049
|
0f732606347613f702a8f48d5bf194d1b989f312
|
refs/heads/master
| 2020-06-05T08:29:46.661030
| 2013-12-20T14:44:56
| 2013-12-20T14:44:56
| 14,799,752
| 3
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 689
|
h
|
Light.h
|
#ifndef LIGHT_H
#define LIGHT_H
#include "Material.h"
#include "Spatial.h"
#include "Vector3.h"
class Light : public Spatial
{
public:
enum class Type
{
DIRECTIONAL,
POINTLIGHT,
SPOTLGHT
};
Light(Type type = Type::POINTLIGHT);
~Light();
virtual void OnDraw(Renderer& renderer) const;
// private:
public:
Type mType;
Vector3 mAmbientColor;
Vector3 mDiffuseColor;
Vector3 mSpecularColor; // uma beka dumb, normalmente tem a cor da luz +- cor do material
Vector3 mDirection;
// float mConstanceAtt;
float mLinearAtt;
float mQuadraticAtt;
float mCutoffAngle;
float mSpotExponent;
private:
Geometry* mDebugSphere;
Material* mDebugMaterial;
};
#endif // LIGHT_H
|
3bab00f63c316ff9ebf566e93843bdca6e4db96f
|
2b0b07242be5ea756aba992e171b43fbee9bfada
|
/BOJ/5002/5002.cpp14.cpp
|
d71070bc5e14c1eea5274a427f3746801ee8943e
|
[] |
no_license
|
newdaytrue/PS
|
28f138a5e8fd4024836ea7c2b6ce59bea91dbad7
|
afffef30fcb59f6abfee2d5b8f00a304e8d80c91
|
refs/heads/master
| 2020-03-22T13:01:46.555651
| 2018-02-13T18:25:34
| 2018-02-13T18:25:34
| 140,078,090
| 1
| 0
| null | 2018-07-07T11:21:44
| 2018-07-07T11:21:44
| null |
UTF-8
|
C++
| false
| false
| 1,364
|
cpp
|
5002.cpp14.cpp
|
/////////////////////////////////////////////////////
#ifdef _DEBUG
#include "bits_stdc++.h"
#else
#include "bits/stdc++.h"
#endif
using namespace std;
typedef pair<int, int> pii;
typedef vector<vector<pii > > Edge;
typedef unsigned long long llu;
typedef long long ll;
typedef priority_queue<pii > Pq;
typedef vector<int>::iterator It;
#define INF 0x3f3f3f3f
#define UINF 0xffffffffu
#define LINF 0x3f3f3f3f3f3f3f3fll
#define MOD 1000000007
#define EOD 1e-9
#define all(x) x.begin(),x.end()
const double PI = acos(0.0)*2.0;
/////////////////////////////////////////////////////
int X;
string str;
int cache[100][100][100][3];
int solve(int idx, int m, int w, int wait) {
if (abs(m - w) > X)
return -INF;
if (idx == str.size())
return 0;
int &ret = cache[idx][m][w][wait];
if (ret != -1)
return ret;
ret = 0;
if (wait == 1)
ret = max(ret, solve(idx, m + 1, w, 0) + 1);
if (wait == 2)
ret = max(ret, solve(idx, m, w + 1, 0) + 1);
if (wait == 0) {
if (str[idx] == 'M')
ret = max(ret, solve(idx + 1, m, w, 1));
else
ret = max(ret, solve(idx + 1, m, w, 2));
}
if (str[idx] == 'M')
ret = max(ret, solve(idx + 1, m + 1, w, wait) + 1);
else
ret = max(ret, solve(idx + 1, m, w + 1, wait) + 1);
return ret;
}
int main() {
memset(cache, -1, sizeof(cache));
scanf("%d", &X);
cin >> str;
printf("%d\n", solve(0, 0, 0, 0));
return 0;
}
|
548bbd0ba023be95d13d2e86811927af54d081ce
|
b39dba38a99bc970d7c861517ab82bb92f5fc548
|
/src/mpt/fs/fs.hpp
|
c314929231ba57a7fbb4fb90c1391f68a4b322be
|
[
"BSL-1.0",
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] |
permissive
|
OpenMPT/openmpt
|
711aef385c6a098a9a2aaefa25f6563e4501d2e8
|
41c5bde364ed61afb414ac38792715ee9433c01c
|
refs/heads/master
| 2023-09-01T21:37:18.329917
| 2023-09-01T10:10:22
| 2023-09-01T10:10:22
| 82,913,630
| 501
| 87
|
BSD-3-Clause
| 2023-07-14T08:47:12
| 2017-02-23T10:04:01
|
C++
|
UTF-8
|
C++
| false
| false
| 4,030
|
hpp
|
fs.hpp
|
/* SPDX-License-Identifier: BSL-1.0 OR BSD-3-Clause */
#ifndef MPT_FS_FS_HPP
#define MPT_FS_FS_HPP
#include "mpt/base/detect.hpp"
#include "mpt/base/namespace.hpp"
#include "mpt/path/native_path.hpp"
#if MPT_OS_WINDOWS
#include <vector>
#endif // MPT_OS_WINDOWS
#if MPT_OS_WINDOWS
#include <windows.h>
#endif // MPT_OS_WINDOWS
namespace mpt {
inline namespace MPT_INLINE_NS {
template <typename Tpath>
class fs;
#if MPT_OS_WINDOWS
template <>
class fs<mpt::native_path> {
public:
// Verify if this path represents a valid directory on the file system.
bool is_directory(const mpt::native_path & path) {
// Using PathIsDirectoryW here instead would increase libopenmpt dependencies by shlwapi.dll.
// GetFileAttributesW also does the job just fine.
#if MPT_OS_WINDOWS_WINRT
WIN32_FILE_ATTRIBUTE_DATA data = {};
if (::GetFileAttributesExW(path.AsNative().c_str(), GetFileExInfoStandard, &data) == 0) {
return false;
}
DWORD dwAttrib = data.dwFileAttributes;
#else // !MPT_OS_WINDOWS_WINRT
DWORD dwAttrib = ::GetFileAttributes(path.AsNative().c_str());
#endif // MPT_OS_WINDOWS_WINRT
return ((dwAttrib != INVALID_FILE_ATTRIBUTES) && (dwAttrib & FILE_ATTRIBUTE_DIRECTORY));
}
// Verify if this path exists and is a file on the file system.
bool is_file(const mpt::native_path & path) {
#if MPT_OS_WINDOWS_WINRT
WIN32_FILE_ATTRIBUTE_DATA data = {};
if (::GetFileAttributesExW(path.AsNative().c_str(), GetFileExInfoStandard, &data) == 0) {
return false;
}
DWORD dwAttrib = data.dwFileAttributes;
#else // !MPT_OS_WINDOWS_WINRT
DWORD dwAttrib = ::GetFileAttributes(path.AsNative().c_str());
#endif // MPT_OS_WINDOWS_WINRT
return ((dwAttrib != INVALID_FILE_ATTRIBUTES) && !(dwAttrib & FILE_ATTRIBUTE_DIRECTORY));
}
// Verify that a path exists (no matter what type)
bool exists(const mpt::native_path & path) {
return ::PathFileExists(path.AsNative().c_str()) != FALSE;
}
public:
#if !(MPT_WINRT_BEFORE(MPT_WIN_10))
mpt::native_path absolute(const mpt::native_path & path) {
DWORD size = ::GetFullPathName(path.AsNative().c_str(), 0, nullptr, nullptr);
if (size == 0) {
return path;
}
std::vector<TCHAR> fullPathName(size, TEXT('\0'));
if (::GetFullPathName(path.AsNative().c_str(), size, fullPathName.data(), nullptr) == 0) {
return path;
}
return mpt::native_path::FromNative(fullPathName.data());
}
#endif // !MPT_OS_WINDOWS_WINRT
public:
// Deletes a complete directory tree. Handle with EXTREME care.
// Returns false if any file could not be removed and aborts as soon as it
// encounters any error. path must be absolute.
bool delete_tree(mpt::native_path path) {
if (path.AsNative().empty()) {
return false;
}
if (::PathIsRelative(path.AsNative().c_str()) == TRUE) {
return false;
}
if (!mpt::fs<mpt::native_path>{}.exists(path)) {
return true;
}
if (!mpt::fs<mpt::native_path>{}.is_directory(path)) {
return false;
}
path = path.WithTrailingSlash();
HANDLE hFind = NULL;
WIN32_FIND_DATA wfd = {};
hFind = ::FindFirstFile((path + MPT_NATIVE_PATH("*.*")).AsNative().c_str(), &wfd);
if (hFind != NULL && hFind != INVALID_HANDLE_VALUE) {
do {
mpt::native_path filename = mpt::native_path::FromNative(wfd.cFileName);
if (filename != MPT_NATIVE_PATH(".") && filename != MPT_NATIVE_PATH("..")) {
filename = path + filename;
if (mpt::fs<mpt::native_path>{}.is_directory(filename)) {
if (!mpt::fs<mpt::native_path>{}.delete_tree(filename)) {
return false;
}
} else if (mpt::fs<mpt::native_path>{}.is_file(filename)) {
if (::DeleteFile(filename.AsNative().c_str()) == 0) {
return false;
}
}
}
} while (::FindNextFile(hFind, &wfd));
::FindClose(hFind);
}
if (::RemoveDirectory(path.AsNative().c_str()) == 0) {
return false;
}
return true;
}
}; // class fs
using native_fs = fs<mpt::native_path>;
#endif // MPT_OS_WINDOWS
} // namespace MPT_INLINE_NS
} // namespace mpt
#endif // MPT_FS_FS_HPP
|
35a9a0ccf041b672e06fc9db743076be950f3387
|
f8e473cfde05425d873e8138f854c248f95701ee
|
/CPP-07/ex00/main.cpp
|
4fdf7fbe9107b949a2a30af75fc711b4f2a10a67
|
[] |
no_license
|
Ourobore/CPP-Modules
|
cc29150d1c1dc8808c6d62d3c44190ce91ae0b80
|
a15c25dd3407c5ccdb7d67654e2009534c36d891
|
refs/heads/master
| 2023-07-15T18:35:59.999433
| 2021-08-25T08:50:59
| 2021-08-25T08:50:59
| 377,454,565
| 0
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 4,812
|
cpp
|
main.cpp
|
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* main.cpp :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: user42 <user42@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2021/08/16 14:35:24 by lchapren #+# #+# */
/* Updated: 2021/08/21 10:32:16 by user42 ### ########.fr */
/* */
/* ************************************************************************** */
#include "whatever.hpp"
int main(void)
{
// Values
int intA = 42;
int intB = -39;
int intM = 21;
int intN = 21;
char charA = 'c';
char charB = 'h';
float floatA = 81.3f;
float floatB = -2.6f;
myClass myClassA(-51);
myClass myClassB(6);
std::string strA = "Bingo";
std::string strB = "Bongo";
std::cout << "--- Min() ---" << std::endl;
std::cout << std::endl;
std::cout << "-> int" << std::endl;
std::cout << "intA: " << intA << ", intB: " << intB << std::endl;
std::cout << "min is: " << ::min(intA, intB) << std::endl;
std::cout << "&intM: " << &intM << ", &intN: " << &intN << std::endl;
std::cout << "min is: " << &(::min(intM, intN)) << std::endl;
std::cout << std::endl;
std::cout << "-> char" << std::endl;
std::cout << "charA: " << charA << ", charB: " << charB << std::endl;
std::cout << "min is: " << ::min(charA, charB) << std::endl;
std::cout << std::endl;
std::cout << "-> float" << std::endl;
std::cout << "floatA: " << floatA << ", floatB: " << floatB << std::endl;
std::cout << "min is: " << ::min(floatA, floatB) << std::endl;
std::cout << std::endl;
std::cout << "-> myClass" << std::endl;
std::cout << "myClassA: " << myClassA.getN() << ", myClassB: " << myClassB.getN() << std::endl;
std::cout << "min is: " << ::min(myClassA, myClassB).getN() << std::endl;
std::cout << std::endl;
std::cout << std::endl;
std::cout << std::endl;
std::cout << "--- Max() ---" << std::endl;
std::cout << std::endl;
std::cout << "-> int" << std::endl;
std::cout << "intA: " << intA << ", intB: " << intB << std::endl;
std::cout << "max is: " << ::max(intA, intB) << std::endl;
std::cout << "&intM: " << &intM << ", &intN: " << &intN << std::endl;
std::cout << "max is: " << &(::max(intM, intN)) << std::endl;
std::cout << std::endl;
std::cout << "-> char" << std::endl;
std::cout << "charA: " << charA << ", charB: " << charB << std::endl;
std::cout << "max is: " << ::max(charA, charB) << std::endl;
std::cout << std::endl;
std::cout << "-> float" << std::endl;
std::cout << "floatA: " << floatA << ", floatA: " << floatB << std::endl;
std::cout << "max is: " << ::max(floatA, floatB) << std::endl;
std::cout << std::endl;
std::cout << "-> myClass" << std::endl;
std::cout << "myClassA: " << myClassA.getN() << ", myClassB: " << myClassB.getN() << std::endl;
std::cout << "max is: " << ::max(myClassA, myClassB).getN() << std::endl;
std::cout << std::endl;
std::cout << std::endl;
std::cout << std::endl;
std::cout << "--- Swap() ---" << std::endl;
std::cout << std::endl;
std::cout << "-> int" << std::endl;
std::cout << "intA: " << intA << ", intB: " << intB << std::endl;
std::cout << "Swaping" << std::endl;
::swap(intA, intB);
std::cout << "intA: " << intA << ", intB: " << intB << std::endl;
std::cout << std::endl;
std::cout << "-> char" << std::endl;
std::cout << "charA: " << charA << ", charB: " << charB << std::endl;
std::cout << "Swaping" << std::endl;
::swap(charA, charB);
std::cout << "charA: " << charA << ", charB: " << charB << std::endl;
std::cout << std::endl;
std::cout << "-> float" << std::endl;
std::cout << "floatA: " << floatA << ", floatA: " << floatB << std::endl;
std::cout << "Swaping" << std::endl;
::swap(floatA, floatB);
std::cout << "floatA: " << floatA << ", floatB: " << floatB << std::endl;
std::cout << std::endl;
std::cout << "-> myClass" << std::endl;
std::cout << "myClassA: " << myClassA.getN() << ", myClassB: " << myClassB.getN() << std::endl;
std::cout << "Swaping" << std::endl;
::swap(myClassA, myClassB);
std::cout << "myClassA: " << myClassA.getN() << ", myClassB: " << myClassB.getN() << std::endl;
std::cout << std::endl;
std::cout << "-> string" << std::endl;
std::cout << "strA: " << strA << ", strB: " << strB << std::endl;
std::cout << "Swaping" << std::endl;
::swap(strA, strB);
std::cout << "strA: " << strA << ", strB: " << strB << std::endl;
}
|
dca3f3fea77d67ef9ab076a8c45c15624a4ae7f9
|
1cc5720e245ca0d8083b0f12806a5c8b13b5cf98
|
/v3/355/c.cpp
|
c417c28ada2e28e283033bcc8812a156c1fb8d27
|
[] |
no_license
|
Emerson21/uva-problems
|
399d82d93b563e3018921eaff12ca545415fd782
|
3079bdd1cd17087cf54b08c60e2d52dbd0118556
|
refs/heads/master
| 2021-01-18T09:12:23.069387
| 2010-12-15T00:38:34
| 2010-12-15T00:38:34
| null | 0
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 2,318
|
cpp
|
c.cpp
|
#include <iostream>
#include <stdio.h>
#include <stdlib.h>
using namespace std;
void preenche(char *c,int nl, char nchar) {
int len = strlen(c);
if(len>=nl) return;
int i, d = nl - len;
for(i=len;i>=0;i--) c[i+d] = c[i];
for(i=0;i!=d;i++) c[i] = nchar;
}
char *ltoa(unsigned long long n, char *out, int rout) {
int p = 0;
char temp[50];
long long t;
while(n > 0) {
t = n % rout;
if(t<10) temp[p] = '0' + t;
else temp[p] = 65 + t - 10;
p++;
n /= rout;
}
if(p==0) temp[p++] = '0';
for(int i=0;i!=p;i++) {
out[i] = temp[p-i-1];
}
out[p] = '\0';
return out;
}
unsigned long long toBase10(const char *in, int b) {
unsigned long long v = 0;
while((*in)!='\0' && (*in)!='\n' && (*in)!='\r') {
if((*in)>='0' && (*in)<='9') {
v = v * b + ((*in)-'0');
} else if((*in)>='A' && (*in)<='F') {
v = v * b + ((*in)-'A'+10);
}
in++;
}
return v;
}
/*
** Calling parameters: 1 - Number string to be converted
** 2 - Buffer for the converted output
** 3 - Radix (base) of the input
** 4 - Radix of the output
** Returns: Pointer to converted output
*/
char *base_convert(const char *in, char *out, int rin, int rout)
{
unsigned long long n;
char *dummy;
n = toBase10(in, rin);
dummy = ltoa(n, out, rout);
return dummy;
}
bool eh(char *in,int b) {
if((*in)=='-') in++;
while((*in)!='\0' && (*in)!='\n' && (*in)!='\r') {
if((*in)>='0' && (*in)<='9') {
if((*in)-'0'>=b) return false;
} else if((*in)>='A' && (*in)<='F') {
if((*in)-'A'+10>=b) return false;
} else {
return false;
}
in++;
}
return true;
}
int main() {
int b1,b2;
char a1[100],a2[100];
while((cin >> b1 >> b2 >> a1)) {
if(eh(a1,b1)) {
if(b1==b2) {
cout << a1 << " base " << b1 << " = " << a1 << " base " << b1 << endl;
continue;
}
if((a1[0])=='-') {
base_convert(&a1[1],a2,b1,b2);
cout << a1 << " base " << b1 << " = -" << a2 << " base " << b2 << endl;
} else {
base_convert(a1,a2,b1,b2);
cout << a1 << " base " << b1 << " = " << a2 << " base " << b2 << endl;
}
} else {
cout << a1 << " is an illegal base " << b1 << " number" << endl;
}
}
return 0;
}
|
1f32904f25a53b9131ef22d465edeceb45c2467f
|
333cfd9c9edd8edb8a821914e14653b30cfef7b0
|
/qtui/main_window.cpp
|
bd826e3e0dbf638a04140895233ae84423b81d0e
|
[] |
no_license
|
awe-system/conf_rpc
|
e1d90fc8b219759254af07680a4fbeb1d0f7311a
|
d88448973462d586bb575c68bf02b3eac40f84ba
|
refs/heads/master
| 2021-06-20T04:19:07.950178
| 2021-01-04T12:06:17
| 2021-01-04T12:06:17
| 145,934,397
| 1
| 3
| null | 2021-01-04T12:06:18
| 2018-08-24T02:52:10
|
Python
|
UTF-8
|
C++
| false
| false
| 17,323
|
cpp
|
main_window.cpp
|
#include "main_window.h"
#include "ui_main_window.h"
#include "func_dialog.h"
#include <QDomDocument>
#include <QFileDialog>
#include <QMessageBox>
#include <QSizePolicy>
#include <QTextEdit>
#include <QTextStream>
#include <QXmlStreamWriter>
#include <lt_function/utils.h>
main_window::main_window(QWidget *parent) :
QMainWindow(parent),
ui(new Ui::main_window)
{
ui->setupUi(this);
ui->comboBox_cli->addItem("C++");
ui->comboBox_cli->addItem("python");
ui->comboBox_cli->addItem("python/C++");
ui->comboBox_serv->addItem("C++");
ui->func_list->resizeColumnsToContents();
ui->func_list->horizontalHeader();
}
void main_window::alert(const QString &str)
{
QMessageBox *msg = new QMessageBox("Alert",str,
QMessageBox::Critical,QMessageBox::Ok | QMessageBox::Default,
QMessageBox::Cancel | QMessageBox::Escape,0);
msg->show();
}
main_window::~main_window()
{
delete ui;
}
void main_window::add_key_to_map(const QString &func_key, const json_obj & obj)
{
if(funcs.end() != funcs.find(func_key.toStdString()))
{
alert("same func name exsit");
return;
}
funcs[func_key.toStdString()] = obj;
funcs_by_num.push_back(obj);
}
void main_window::reove_from_map(const QString &func_key)
{
funcs.erase(func_key.toStdString());
}
void main_window::reove_from_list(int row)
{
funcs_by_num.erase(funcs_by_num.begin()+ row);
}
bool main_window::is_xml_empty()
{
if (ui->xml_path->text() == "")
{
return true;
}
return false;
}
void main_window::recovery_port(QDomNode *node)
{
QDomElement e=node->toElement();
QString port_str = e.attribute("content");
ui->port_box->setValue(port_str.toInt());
}
void main_window::recovery_project(QDomNode *node)
{
QDomElement e=node->toElement();
QString project_str = e.attribute("content");
ui->project->setText(project_str);
}
void main_window::recovery_client(QDomNode *node)
{
QDomElement e=node->toElement();
QString type = e.attribute("type");
ui->comboBox_cli->setCurrentText(type);
QString withping_str = e.attribute("withping");
if(withping_str == "true") ui->withping->setCheckState(Qt::Checked);
else ui->withping->setCheckState(Qt::Unchecked);
QString nmspace = e.attribute("namespace");
ui->cli_namespace->setText(nmspace);
QString filename = e.attribute("filename");
ui->cli_file->setText(filename);
try {
QString classname = e.attribute("classname");
ui->cli_classname->setText(classname);
} catch (...) {
}
}
void main_window::recovery_server(QDomNode *node)
{
QDomElement e=node->toElement();
QString type = e.attribute("type");
ui->comboBox_serv->setCurrentText(type);
QString nmspace = e.attribute("namespace");
ui->serv_namespace->setText(nmspace);
QString filename = e.attribute("filename");
ui->serv_file->setText(filename);
try {
QString classname = e.attribute("classname");
ui->serv_classname->setText(classname);
} catch (...) {
}
}
static void recovey_func_name(QDomElement *e, json_obj & obj)
{
QString func_name = e->attribute("name");
obj[FUNC_NAME] = func_name.toStdString();
}
static void recovey_func_type(QDomElement *e, json_obj & obj)
{
QString func_type = e->attribute("type");
obj[FUNC_TYPE] = func_type.toStdString();
if(obj[FUNC_TYPE] == "async")
{
try {
QString sub_type = e->attribute("subtype");
if(sub_type == "sync")
{
obj[FUNC_TYPE] = "clientsync";
}
} catch (...) {
}
}
}
static void recovey_param(QDomNode *n, json_obj & obj)
{
QDomElement e=n->toElement();
QString name = e.attribute("name");
obj[PARAM_NAME] = name.toStdString();
QString value = e.attribute("value");
obj[PARAM_TYPE] = value.toStdString();
QString inout = e.attribute("type");
obj[PARAM_INOUT] = inout.toStdString();
}
static void recovey_func_params(QDomElement *e, json_obj & obj)
{
try {
cout<<"recovey_func_params"<<endl;
QDomNodeList params= e->childNodes();
obj[FUNC_PARAMS] = json_obj();
for(int i=0;i<params.count();i++) //遍历子元素,count和size都可以用,可用于标签数计数
{
QDomNode n = params.at(i);
if(n.isElement() && n.nodeName() == "param")
{
json_obj tmp_obj;
recovey_param(&n, tmp_obj);
obj[FUNC_PARAMS].append(tmp_obj);
}
}
cout<<"recovey_func_params normal out"<<endl;
} catch (...) {
cout<<"recovey_func_params except"<<endl;
}
}
void main_window::recovery_func(QDomNode *node)
{
QDomElement e=node->toElement();
json_obj obj;
recovey_func_name(&e, obj);
recovey_func_type(&e, obj);
recovey_func_params(&e, obj);
cout<<obj.dumps()<<endl;
add_json_to_func(obj);
}
#define check_err_out(is_err,msg) \
do\
{\
if(is_err)\
{\
alert(msg);\
throw 1;\
}\
}\
while(0)
void main_window::recovery_node(QDomNode *node)
{
if(node->nodeName() == "port")
{
recovery_port(node);
}
else if(node->nodeName() == "project")
{
recovery_project(node);
}
else if(node->nodeName() == "client")
{
recovery_client(node);
}
else if(node->nodeName() == "server")
{
recovery_server(node);
}
else if(node->nodeName() == "func")
{
recovery_func(node);
}
}
void main_window::recovery(QDomDocument *doc)
{
QDomElement root=doc->documentElement();
check_err_out(root.nodeName() != "funcs", "xml need funcs");
QDomNode node=root.firstChild();
while(!node.isNull())
{
if(node.isElement())
{
recovery_node(&node);
}
node=node.nextSibling();
}
}
void main_window::load_file(const QString &path)
{
try {
QFile file(path);
if(!file.open(QFile::ReadOnly)) throw 1;
QDomDocument doc;
if(!doc.setContent(&file))
{
file.close();
throw 2;
}
file.close();
recovery(&doc);
} catch (...) {
alert("加载失败");
}
}
void main_window::save_file(const QString &path)
{
try {
QFile file(path);
if(!file.open(QFile::WriteOnly|QFile::Truncate))
return;
QXmlStreamWriter writer(&file);
save(&writer);
file.close();
} catch (...) {
alert("加载失败");
}
}
void main_window::save_port(QXmlStreamWriter *writer)
{
writer->writeStartElement("port");
writer->writeAttribute("content", ui->port_box->text());
writer->writeEndElement();
}
void main_window::save_project(QXmlStreamWriter *writer)
{
writer->writeStartElement("project");
writer->writeAttribute("content", ui->project->text());
writer->writeEndElement();
}
void main_window::save_client(QXmlStreamWriter *writer)
{
writer->writeStartElement("client");
writer->writeAttribute("type", ui->comboBox_cli->currentText());
writer->writeAttribute("namespace", ui->cli_namespace->text());
writer->writeAttribute("filename", ui->cli_file->text());
if(ui->withping->isChecked()) writer->writeAttribute("withping", "true");
if(ui->cli_classname->text() != "") writer->writeAttribute("classname", ui->cli_classname->text());
writer->writeEndElement();
}
void main_window::save_server(QXmlStreamWriter *writer)
{
writer->writeStartElement("server");
writer->writeAttribute("type", ui->comboBox_serv->currentText());
writer->writeAttribute("namespace", ui->serv_namespace->text());
writer->writeAttribute("filename", ui->serv_file->text());
if(ui->serv_classname->text() != "") writer->writeAttribute("classname", ui->serv_classname->text());
writer->writeEndElement();
}
void main_window::save_params(QXmlStreamWriter *writer, const json_obj &obj)
{
for(auto param : obj[FUNC_PARAMS].array_val)
{
writer->writeStartElement("param");
writer->writeAttribute("name", param[PARAM_NAME].s_val.c_str());
writer->writeAttribute("value", param[PARAM_TYPE].s_val.c_str());
writer->writeAttribute("type", param[PARAM_INOUT].s_val.c_str());
writer->writeEndElement();
}
}
static QString functype_by_obj(const json_obj & obj)
{
if(obj[FUNC_TYPE].s_val == "sync") return "sync";
if(obj[FUNC_TYPE].s_val == "async") return "async";
if(obj[FUNC_TYPE].s_val == "clientsync") return "async";
}
static QString subtype_by_obj(const json_obj & obj)
{
if(obj[FUNC_TYPE].s_val == "clientsync") return "sync";
return "";
}
void main_window::save_func(QXmlStreamWriter *writer)
{
for(auto it : funcs_by_num)
{
writer->writeStartElement("func");
writer->writeAttribute("name", it[FUNC_NAME].s_val.c_str());
writer->writeAttribute("type", functype_by_obj(it));
if(subtype_by_obj(it) != "") writer->writeAttribute("subtype", subtype_by_obj(it));
save_params(writer, it);
writer->writeEndElement();
}
}
void main_window::save(QXmlStreamWriter *writer)
{
writer->setAutoFormatting(true);
writer->writeStartDocument("1.0", true);
writer->writeStartElement("funcs");
save_port(writer);
save_project(writer);
save_client(writer);
save_server(writer);
save_func(writer);
writer->writeEndElement();
writer->writeEndDocument();
}
void main_window::on_add_func_clicked()
{
Dialog *dlg = new Dialog;
this->setHidden(true);
dlg->setModal(true);
dlg->exec();
this->setHidden(false);
add_res_to_func_list(dlg);
delete dlg;
}
void main_window::edit_item(QListWidgetItem *item)
{
int row = ui->func_list->currentRow();
if(row<0) return;
Dialog *dlg = new Dialog;
this->setHidden(true);
dlg->setModal(true);
QTextEdit * edit = (QTextEdit *)ui->func_list->cellWidget(row, 0);
dlg->from_json(funcs[edit->toPlainText().toStdString()]);
dlg->exec();
this->setHidden(false);
update_res_to_func_list(row, dlg);
delete dlg;
}
static QString get_item_string(const json_obj & obj)
{
QString res = QString(obj[FUNC_TYPE].s_val.c_str()) + QString(" int ")
+ QString(obj[FUNC_NAME].s_val.c_str()) + QString("(");
for(int row = 0; row < obj[FUNC_PARAMS].array_val.size() ;++row)
{
res += obj[FUNC_PARAMS][row][PARAM_INOUT].s_val.c_str();
res += " ";
res += obj[FUNC_PARAMS][row][PARAM_TYPE].s_val.c_str();
res += " ";
res += obj[FUNC_PARAMS][row][PARAM_NAME].s_val.c_str();;
if(row != obj[FUNC_PARAMS].array_val.size() -1 )
{
res += " , ";
}
}
res += QString(");");
return res;
}
void main_window::add_json_to_func(const json_obj &obj)
{
QString str = get_item_string(obj);
add_string_to_func_list(str);
add_key_to_map(str,obj);
}
void main_window::update_funclist_format()
{
for(int i = 0; i < ui->func_list->rowCount(); i++)
{
QTextEdit * edit = (QTextEdit *)ui->func_list->cellWidget(i, 0);
edit->setReadOnly(true);
edit->setFixedSize(edit->toPlainText().count()*13 + 5,edit->height());
edit->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Fixed);
update_color(edit);
}
ui->func_list->resizeColumnsToContents();
// ui->func_list->resizeRowsToContents();
ui->func_list->horizontalHeader();
}
void main_window::update_color(QTextEdit *item)
{
update_color_key_color(item, QString("async"),Qt::green);
update_color_key_color(item, QString("sync"),Qt::green);
update_color_key_color(item, QString("clientsync"),Qt::green);
update_color_key_color(item, QString("in"),Qt::gray);
update_color_key_color(item, QString("out"),Qt::gray);
update_color_key_color(item, QString("inout"),Qt::gray);
update_color_key_color(item, QString("string"),Qt::blue);
update_color_key_color(item, QString("char_p"),Qt::blue);
update_color_key_color(item, QString("ulong"),Qt::blue);
update_color_key_color(item, QString("int"),Qt::blue);
update_color_key_color(item, QString("uint"),Qt::blue);
update_color_key_color(item, QString("bool"),Qt::blue);
update_color_key_color(item, QString("void_p"),Qt::blue);
update_color_key_color(item, QString("data"),Qt::blue);
}
void main_window::update_color_key_color(QTextEdit *item, const QString &key, const QBrush &brush)
{
QString searchString = key;
QTextDocument *document = item->document();
if (searchString.isEmpty()) {
return;
}
QTextCursor highlightCursor(document);
QTextCursor cursor(document);
cursor.beginEditBlock();
QTextCharFormat plainFormat(highlightCursor.charFormat());
QTextCharFormat colorFormat = plainFormat;
colorFormat.setForeground(brush);
while (!highlightCursor.isNull() && !highlightCursor.atEnd()) {
highlightCursor = document->find(searchString, highlightCursor,
QTextDocument::FindWholeWords);
if (!highlightCursor.isNull()) {
highlightCursor.movePosition(QTextCursor::WordRight,
QTextCursor::KeepAnchor);
highlightCursor.mergeCharFormat(colorFormat);
}
}
cursor.endEditBlock();
}
void main_window::add_string_to_func_list(QString &str)
{
int cur = ui->func_list->rowCount();
if(cur == -1)
{
cur = 0;
}
ui->func_list->insertRow(cur);
QTextEdit *item = new QTextEdit(str);
ui->func_list->setCellWidget(cur,0, item);
update_funclist_format();
}
void main_window::clear()
{
while(ui->func_list->rowCount()> 0)
{
ui->func_list->selectRow(0);
remove_from_listview(0);
}
}
void main_window::add_res_to_func_list(Dialog *dlg)
{
if(!dlg->is_canceled)
{
json_obj obj = dlg->to_json();
add_json_to_func(obj);
}
}
void main_window::update_res_to_func_list(int r, Dialog *dlg)
{
if(!dlg->is_canceled)
{
remove_from_listview(r);
add_res_to_func_list(dlg);
}
}
void main_window::remove_from_listview(int row)
{
QTextEdit *item = (QTextEdit *)ui->func_list->cellWidget(row, 0);
reove_from_map(item->toPlainText());
reove_from_list(row);
delete item;
ui->func_list->removeRow(row);
}
void main_window::on_rm_func_clicked()
{
remove_from_listview(ui->func_list->currentRow());
}
void main_window::on_edit_bt_clicked()
{
edit_item(nullptr);
}
void main_window::on_view_bt_clicked()
{
QString last_path=".";
if(ui->xml_path->text()!="")
{
last_path = ui->xml_path->text();
}
QString path = QFileDialog::getOpenFileName(this, tr("Open .xml"), last_path, tr("xml Files(*.xml)"));
if (path.length() == 0)
{
alert("您找不到对象");
return;
}
else
{
ui->xml_path->setText(path);
}
}
void main_window::on_view_bt_cli_clicked()
{
QString last_path=".";
if(ui->cli_path->text()!="")
{
last_path = ui->cli_path->text();
}
QString path = QFileDialog::getExistingDirectory(this,QString(),last_path);
if (path.length() == 0)
{
alert("您找不到对象");
return;
}
else
{
ui->cli_path->setText(path);
}
}
void main_window::on_view_bt_server_clicked()
{
QString last_path=".";
if(ui->cli_path->text()!="")
{
last_path = ui->server_path->text();
}
QString path = QFileDialog::getExistingDirectory(this,QString(),last_path);
if (path.length() == 0)
{
alert("您找不到对象");
return;
}
else
{
ui->server_path->setText(path);
}
}
void main_window::on_load_xml_clicked()
{
if(is_xml_empty())
{
alert("xml不能为空");
return;
}
clear();
load_file(ui->xml_path->text());
}
void main_window::on_save_xml_clicked()
{
if(is_xml_empty())
{
alert("xml不能为空");
return;
}
save_file(ui->xml_path->text());
alert("保存完毕");
}
void main_window::on_func_list_cellDoubleClicked(int row, int column)
{
edit_item(nullptr);
}
void main_window::on_generate_clicked()
{
if(ui->xml_path->text() == "" || ui->cli_path->text() == "" || ui->server_path->text() == "")
{
alert("目录不能为空");
return;
}
QString cmd = "/opt/generate_cmd/remote/generate " + ui->xml_path->text() + " \"" + ui->cli_file->text();
if(ui->comboBox_cli->currentText() == "C++")
{
cmd += "*.*\" ";
}
else if(ui->comboBox_cli->currentText() == "python")
{
cmd += ".py\" ";
}
else if(ui->comboBox_cli->currentText() == "python/C++")
{
cmd += cmd += "*.*\" ";
}
cmd += ui->cli_path->text() + " \"" + ui->serv_file->text()+ "*.*\" " + ui->server_path->text();
std::string output;
auto err = buf_exec_cpp(cmd.toStdString(),output);
if(err)
{
alert(QString(output.c_str()));
}
else {
alert("生成成功");
}
}
|
136a17c51c977416a54d4d2a1ed0b7b5e587db88
|
46a1537239b8e80458d172fba5739d14fe549f0d
|
/spoj/FIBOSUM - Fibonacci Sum.cpp
|
e82a985c6a081f15c0f6e60e90f561b83e23cc78
|
[] |
no_license
|
vkstack/mycodes
|
1b08638ba97da5b535a7b0026d840652dd7ab4c1
|
fbbb5a20451b271e0d912a1fe94382d0a287b1c7
|
refs/heads/master
| 2021-01-10T01:30:06.400672
| 2016-08-24T17:46:31
| 2016-08-24T17:46:31
| 51,477,375
| 0
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 274
|
cpp
|
FIBOSUM - Fibonacci Sum.cpp
|
#include<iostream>
using namespace std;
#define mod 1000000007
#define ll long long
ll f[1000009];
int main(){
f[0]=0;
f[1]=1;
for(ll i=2;i<1000000;i++)
f[i]=(f[i-1]%mod+f[i-2]%mod)%mod;
for(i=1;i<1000000;i++)
f[i]+=f[i-1];
ll t,m,n;
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.