blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
4
201
content_id
stringlengths
40
40
detected_licenses
listlengths
0
85
license_type
stringclasses
2 values
repo_name
stringlengths
7
100
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringclasses
260 values
visit_date
timestamp[us]
revision_date
timestamp[us]
committer_date
timestamp[us]
github_id
int64
11.4k
681M
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
17 values
gha_event_created_at
timestamp[us]
gha_created_at
timestamp[us]
gha_language
stringclasses
80 values
src_encoding
stringclasses
28 values
language
stringclasses
1 value
is_vendor
bool
1 class
is_generated
bool
2 classes
length_bytes
int64
8
9.86M
extension
stringclasses
52 values
content
stringlengths
8
9.86M
authors
listlengths
1
1
author
stringlengths
0
119
b1a880d02f1bfe4e787b685d9bd2a04f8f888026
0eff74b05b60098333ad66cf801bdd93becc9ea4
/second/download/CMake/CMake/CMake-joern/Kitware_CMake_repos_function_1748.cpp
0417621be61209fdead3aa2ce4b1ec471d9f2775
[]
no_license
niuxu18/logTracker-old
97543445ea7e414ed40bdc681239365d33418975
f2b060f13a0295387fe02187543db124916eb446
refs/heads/master
2021-09-13T21:39:37.686481
2017-12-11T03:36:34
2017-12-11T03:36:34
null
0
0
null
null
null
null
UTF-8
C++
false
false
359
cpp
static int inet_ntop4(const unsigned char *src, char *dst, size_t size) { static const char fmt[] = "%u.%u.%u.%u"; char tmp[UV__INET_ADDRSTRLEN]; int l; l = snprintf(tmp, sizeof(tmp), fmt, src[0], src[1], src[2], src[3]); if (l <= 0 || (size_t) l >= size) { return UV_ENOSPC; } strncpy(dst, tmp, size); dst[size - 1] = '\0'; return 0; }
[ "993273596@qq.com" ]
993273596@qq.com
304daf50554d33c37d540143132f4338e14abca1
58c9ae4d753d6e11dbfd65e7e655dd89de38d694
/CS32/Project_1/Game.h
2fc07ff3a3a37dac4bfa9b11faa693597c66b145
[]
no_license
YuanpingSong/first-year-portfolio
65c8a6268678d169027a1930379c886c572a94a0
4b8f7fe817f0578733822b6277da49607bb9a122
refs/heads/master
2020-03-30T08:18:39.849998
2018-10-02T03:11:52
2018-10-02T03:11:52
151,005,093
0
1
null
null
null
null
UTF-8
C++
false
false
382
h
// // Game.h // Project_1 // // Created by Yuanping Song on 1/11/18. // Copyright © 2018 Yuanping Song. All rights reserved. // #ifndef Game_h #define Game_h class City; class Game { public: // Constructor/destructor Game(int rows, int cols, int nFlatulans); ~Game(); // Mutators void play(); private: City* m_city; }; #endif /* Game_h */
[ "yuanping.song@outlook.com" ]
yuanping.song@outlook.com
e78afc7f89da4eee94bee06f64873da22f7c15f4
7182b78c0ecf8b99d9e5db315b34b7c7577b779b
/old_complete/dynamol/trunk/Main_Build/dynamol/runmopac.cpp
5bf34a7a1c7fd42d4f1697010717c2b56a245976
[]
no_license
gnulnx/dynamol
cbc85abf3d23c9af508576731d06f8ba372449db
88a1000563f1d49793df8a404eff0fe8768b46b4
refs/heads/master
2016-09-06T11:20:54.279297
2015-04-09T14:02:42
2015-04-09T14:02:42
32,398,825
0
0
null
null
null
null
UTF-8
C++
false
false
2,143
cpp
/*************************************************************************** * Copyright (C) 2004 by jfurr * * jfurr@jabba.albmolecular.com * * * * This program 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 2 of the License, or * * (at your option) any later version. * * * * This program 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 this program; if not, write to the * * Free Software Foundation, Inc., * * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * ***************************************************************************/ #include "runmopac.h" #include "qprocess.h" #include <iostream> #include <iomanip> using namespace std; runMopac::runMopac(QWidget *parent, const char *name) : QWidget(parent, name) { } runMopac::~runMopac() { } void runMopac::start() { ////////////cout <<"Yep you are here"<<endl; done = false; QProcess *proc = new QProcess; proc->addArgument( "mopac" ); proc->addArgument( "mol" ); proc->start(); connect( proc, SIGNAL(processExited()), this, SLOT(mopacDone()) ); //while (!done){} } void runMopac::mopacDone() { ////////////cout <<"mopacDone()"<<endl; done = true; } bool runMopac::Done() {return this->done;}
[ "jfurr@Johns-MacBook-Pro.local" ]
jfurr@Johns-MacBook-Pro.local
b68ed717145cbd40671bf08e72223a636638fa92
90ab621451779844d3e40ce45b3386fdeb6b08e2
/problem-1B-spreadsheets/spreadsheets.cc
ec841b59e1e5bf2a8cb9c0ce22c3d710ef133e77
[]
no_license
julien-sobczak/codeforces-playground
963e9f936a35bff769762e3602c8b7a76f6e915c
0816f5306695f42f6a3e4f9992f2f41760ef9dc4
refs/heads/master
2021-04-29T10:49:32.118308
2018-02-13T20:12:51
2018-02-15T08:12:51
77,832,734
0
0
null
null
null
null
UTF-8
C++
false
false
624
cc
#include <iostream> #include <string> #include <math.h> #include <ctype.h> #include <stdio.h> using namespace std; void letter(int number) { if (number) { letter((number - 1) / 26); putchar('A' + ((number - 1) % 26)); } } int main() { int n; int r, c; char str[20], *p; scanf("%d", &n); for (int i = 0; i < n; i++) { scanf("%s", str); if (sscanf(str, "%*c%d%*c%d", &r, &c) == 2) { // Ex: R23C55 letter(c); printf("%d\n", r); } else { // Ex: BC23 for (c=0, p=str; *p >= 'A'; ++p) c = c*26 + *p - 'A' + 1; printf("R%sC%d\n", p, c); } } return 0; }
[ "julien.sobczak@gmail.com" ]
julien.sobczak@gmail.com
6f4f290d5703f70f59effd133872f2823b522d55
4f4ddc396fa1dfc874780895ca9b8ee4f7714222
/src/xtp/Source/ReportControl/TrackControl/XTPTrackPaintManager.h
5297513173d8a57d2059a96c9171bd848fd72def
[]
no_license
UtsavChokshiCNU/GenSym-Test2
3214145186d032a6b5a7486003cef40787786ba0
a48c806df56297019cfcb22862dd64609fdd8711
refs/heads/master
2021-01-23T23:14:03.559378
2017-09-09T14:20:09
2017-09-09T14:20:09
102,960,203
3
5
null
null
null
null
UTF-8
C++
false
false
6,134
h
// XTPTrackPaintManager.h: interface for the CXTPTrackPaintManager class. // // This file is a part of the XTREME REPORTCONTROL MFC class library. // (c)1998-2011 Codejock Software, All Rights Reserved. // // THIS SOURCE FILE IS THE PROPERTY OF CODEJOCK SOFTWARE AND IS NOT TO BE // RE-DISTRIBUTED BY ANY MEANS WHATSOEVER WITHOUT THE EXPRESSED WRITTEN // CONSENT OF CODEJOCK SOFTWARE. // // THIS SOURCE CODE CAN ONLY BE USED UNDER THE TERMS AND CONDITIONS OUTLINED // IN THE XTREME TOOLKIT PRO LICENSE AGREEMENT. CODEJOCK SOFTWARE GRANTS TO // YOU (ONE SOFTWARE DEVELOPER) THE LIMITED RIGHT TO USE THIS SOFTWARE ON A // SINGLE COMPUTER. // // CONTACT INFORMATION: // support@codejock.com // http://www.codejock.com // ///////////////////////////////////////////////////////////////////////////// //{{AFX_CODEJOCK_PRIVATE #if !defined(__XTPTRACKPAINTMANAGER_H__) #define __XTPTRACKPAINTMANAGER_H__ //}}AFX_CODEJOCK_PRIVATE #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 //----------------------------------------------------------------------- // Summary: // This class represents a track control paint manager.This class does // painting of various elements of the track control. //----------------------------------------------------------------------- class _XTP_EXT_CLASS CXTPTrackPaintManager : public CXTPReportPaintManager { public: //----------------------------------------------------------------------- // Summary: // Creates a CXTPTrackPaintManager object. //----------------------------------------------------------------------- CXTPTrackPaintManager(); //----------------------------------------------------------------------- // Summary: // CXTPTrackPaintManager destructor, does the cleanups. //----------------------------------------------------------------------- ~CXTPTrackPaintManager(); public: //----------------------------------------------------------------------- // Summary: // Initializes all drawings defaults (fonts, colors, etc.).Most of // them are system defaults. //----------------------------------------------------------------------- void RefreshMetrics(); public: //----------------------------------------------------------------------- // Summary: // Call this function to draw the track header. // Parameters: // pDC - Pointer to the device context. // Remarks: // It a virtual function, so the derived classes can give their // specific implementations. //----------------------------------------------------------------------- virtual void DrawTrackHeader(CDC* pDC); //----------------------------------------------------------------------- // Summary: // Call this function to draw the markers. // Parameters: // pDC - Pointer to the device context. // Remarks: // It a virtual function, so the derived classes can give their // specific implementations. //----------------------------------------------------------------------- virtual void DrawMarkers(CDC* pDC); //----------------------------------------------------------------------- // Summary: // Call this function to draw the time line. // Parameters: // pDC - Pointer to the device context. // Remarks: // It a virtual function, so the derived classes can give their // specific implementations. //----------------------------------------------------------------------- virtual void DrawTimeLine(CDC* pDC); //----------------------------------------------------------------------- // Summary: // Call this function to format the time and tick marker, relative to a time line // position. // Parameters: // nPosition - A point in the time line. // clrTick - Tick Mark color // nTickLength - Tick Mark length // Returns: // A CString which contains the formatted time. // Remarks: // It a virtual function, so the derived classes can give their // specific implementations. //----------------------------------------------------------------------- virtual CString FormatTimeLineTick(int nPosition, COLORREF& clrTick, int& nTickLength); virtual CString FormatTime(int nPosition); public: COLORREF m_clrWorkArea; //The color of the work area. COLORREF m_clrTrackHeader; //The track header color. COLORREF m_clrTrackTimeArea; //The track time area color. COLORREF m_clrTimeHeaderDarkDark; //The header deep dark color. COLORREF m_clrTimeHeaderDark; //The header dark color. COLORREF m_clrTimeSliderBackground; //The slider background color. COLORREF m_clrTimeHeaderDivider; //The header divider color. COLORREF m_clrScrollBarLight; //The scroll bar light color. COLORREF m_clrScrollBarDark; //The scroll bar dark color. COLORREF m_clrSelectedArea; //The color of the selected area. COLORREF m_clrMarker; //The color of the marker. int m_nTimeLineStep; BOOL m_bTimeLineStepAuto; #ifdef _XTP_ACTIVEX //{{AFX_CODEJOCK_PRIVATE DECLARE_DISPATCH_MAP() DECLARE_INTERFACE_MAP() DECLARE_OLETYPELIB_EX(CXTPTrackPaintManager); #define DECLARE_PROPERTY_UN(theProperty, theType)\ afx_msg theType OleGet##theProperty();\ afx_msg void OleSet##theProperty(theType); DECLARE_PROPERTY_UN(WorkArea, COLORREF); DECLARE_PROPERTY_UN(TrackHeader, COLORREF); DECLARE_PROPERTY_UN(TrackTimeArea, COLORREF); DECLARE_PROPERTY_UN(TimeHeaderDarkDark, COLORREF); DECLARE_PROPERTY_UN(TimeHeaderDark, COLORREF); DECLARE_PROPERTY_UN(TimeSliderBackground, COLORREF); DECLARE_PROPERTY_UN(TimeHeaderDivider, COLORREF); DECLARE_PROPERTY_UN(ScrollBarLight, COLORREF); DECLARE_PROPERTY_UN(ScrollBarDark, COLORREF); DECLARE_PROPERTY_UN(Marker, COLORREF); DECLARE_PROPERTY_UN(SelectedArea, COLORREF); void OleSetTimeLineStep(int nStep); int OleGetTimeLineStep(); BOOL m_bCustomTimeLineLabel; //}}AFX_CODEJOCK_PRIVATE #endif }; #endif //#if !defined(__XTPTRACKPAINTMANAGER_H__)
[ "utsavchokshi@Utsavs-MacBook-Pro.local" ]
utsavchokshi@Utsavs-MacBook-Pro.local
5a0b764e3aba7754bc3e5cae344123bccf030581
cd8830f7e7106ca0fdbfd8ea8acb8c85a8c5087d
/2020.11.13-Homework-8/Task8/Connect_List.h
20cd2a27ba32f01d3d5e94a84c2f765bf4e9a9b3
[ "Apache-2.0" ]
permissive
Magomedkhan/programming-bach-2020-autumn
a6732d0fc69a24f58dcb1884425014250f50f342
178a39da49090a054ede058f9019328805422433
refs/heads/master
2023-05-14T00:36:32.195742
2021-06-07T10:36:13
2021-06-07T10:36:13
297,934,409
0
0
null
null
null
null
WINDOWS-1251
C++
false
false
2,406
h
#include <iostream> struct Node { public: int data; Node* next; Node(int data, Node* next = nullptr) :data(data), next(next) {} }; class Connect_List { private: int count; Node* head; Node* tail; public: Connect_List() : count(0), head(nullptr), tail(nullptr) {} Connect_List(const Connect_List& list); ~Connect_List(); private: bool indexValid(int); public: int length(); bool addToHead(int); bool addToTail(int); bool add(int, int); int get(int); bool set(int, int); int& operator[](int); friend std::ostream& operator<<(std::ostream&, const Connect_List); void operator+=(int); /// <summary> /// удалить начало списка /// </summary> /// <returns>значение элемента, стоявшего в начале</returns> int extractHead(); /// <summary> /// удалить хвост списка /// </summary> /// <returns>значение элемента, стоявшего в конце</returns> int extractTail(); /// <summary> /// удалить элемент, стоящий на месте index /// </summary> /// <returns>значение элемента, стоявшего на месте index</returns> int extract(int index); /// <summary> /// удалить элемент /// </summary> /// <param name="">индекс удаляемого элемента</param> void operator-=(int); Connect_List& operator=(Connect_List); /// <summary> /// поиск элемента /// </summary> /// <param name="">значение искомого</param> /// <returns>-1, если элемента в списке нет</returns> int indexOf(int); /// <summary> /// содержится ли элемент в списке. в функции нужно обойтись одной строкой /// </summary> /// <param name="">значение элемента</param> bool contains(int); /// <summary> /// поменять два элемента местами. /// Переписывать значения элементов нельзя. /// Можно только менять значения полей next. /// </summary> /// <param name="">индекс первого элемента</param> /// <param name="">индекс второго элемента</param> /// <returns>false - если индексы были некорректны</returns> bool swap(int, int); };
[ "st087937@student.spbu.ru" ]
st087937@student.spbu.ru
d8a5e95e6318aa83cbd9319af1ef14b8200c874d
8aff3e739ac368e8dd14157fa758b8873ad1d285
/frontend/src/ui/classes/statistics/ClassStatisticsPage.h
58ce3a8b713d5c1ba20b98e1dd50592804757027
[]
no_license
bakobence/Templex
77622b05b10b15ab4a1211ed1b8ad564bf514de3
169a0a1a51712cf52e0077022ff5700895c92ad1
refs/heads/master
2021-05-20T10:02:53.729244
2021-03-23T10:14:58
2021-03-23T10:14:58
172,889,146
0
0
null
null
null
null
UTF-8
C++
false
false
962
h
#pragma once #include "ui/PageBase.h" #include "ui/common/class_template_selector/ClassTemplateSelector.h" #include <QtCharts> #include <string> #include <vector> namespace templex { namespace frontend { namespace Ui { class ClassStatisticsPage; } class ClassStatisticsPage : public PageBase { Q_OBJECT public: ClassStatisticsPage(); void initialize() override; void deinitialize() override; QString pageName() override; void onClassTemplateSelected(std::shared_ptr<model::Template> classTemplate); void onBarHovered(bool status, int index, QBarSet* set); private: Ui::ClassStatisticsPage* ui_; ClassTemplateSelector* classSelector_; std::shared_ptr<model::Template> currentClassTemplate_; std::vector<std::vector<std::string>> currentArguments_; QBarSet* set_; QBarSeries* series_; QChart* chart_; QBarCategoryAxis* x_; QValueAxis* y_; }; } // namespace frontend } // namespace templex
[ "bako.bence@gmail.com" ]
bako.bence@gmail.com
59c023c2e130fd52cab561018c4602875591e223
41bd50d1daa458016e216a4b2183f929577349fc
/bla.cpp
c7d1698b2485e51974cefab974bc61fff9cba7df
[]
no_license
BNNJ/misc
115a9ff6169160a788c266d851c5457aadbb853e
f9704dc9e5117fc40c0a5c8fb638f6d549298bf0
refs/heads/master
2021-07-14T16:12:26.620598
2020-05-10T19:06:54
2020-05-10T19:06:54
136,900,733
0
0
null
null
null
null
UTF-8
C++
false
false
689
cpp
/* ** #### dans item.h ##### */ typedef enum e_mat { MAT_COPPER, MAT_SILVER, MAT_CACA } t_mat; class Item { public : Item(t_mat mat); // constructor ~Item(); // destructor private : char *name; t_mat mat; int weight; int price; } /* ** dans item.cpp */ int init_weight(t_mat mat) { // initialise le poids en fonction de mat } int init_price(t_mat mat) { // initialise le prix en fonction de mat } Item::Item(char *item_name, t_mat mat) { name = strdup(item_name); t_mat = mat; // au cas ou on ai besoin du materiau plus tard weight = init_weight(mat); price = init_price(mat); } int main() { Item something("toilet brush", MAT_CACA); return 0; }
[ "BNNJ1974@gmail.com" ]
BNNJ1974@gmail.com
e2571e93c2070c1f5fb8c899655065d3978ab69a
b3973b607e776fd40c52434a5bc1609218aa8c2f
/BoltzmannPhysics/xcode/Dynamics/Constraints/BallAndSocketJoint.cpp
12c05f190f672cecc9516ae01ea0860e4eec6195
[]
no_license
drewcummins/boltzmann-games
ff0e1adea03334ff5953cab4c4d384144b57041c
d80e3e2c16716cd60dbba2a73570411344f59277
refs/heads/master
2022-07-21T15:09:54.653309
2017-06-13T00:32:04
2017-06-13T00:32:04
84,253,672
0
0
null
null
null
null
UTF-8
C++
false
false
1,969
cpp
// // BallAndSocketJoint.cpp // BoltzmannPhysics // // Created by Drew on 3/8/17. // // #include "BallAndSocketJoint.hpp" #include "Utils.hpp" using namespace bltz; Constraint BallAndSocketJoint::create(Body b1, vec3 r1, Body b2) { Constraint joint(new BallAndSocketJoint(b1, r1, b2)); return joint; } BallAndSocketJoint::BallAndSocketJoint(Body b1, vec3 r1, Body b2) : BaseConstraint(b1, b2), r1(r1) { this->r1 += b1->xModel; // move to center of mass frame r2 = (b1->com + b1->R * this->r1 - b2->com) * inverse(b2->R); eqn.lambda = vec3(0,0,0); } void BallAndSocketJoint::prepare(float dt) { r1R = b1->R * r1; r2R = b2->R * r2; eqn.bias = (b2->com + r2R - b1->com - r1R) * (beta/dt); eqn.J.L1 = mat3(); eqn.J.A1 = Utils::skew(r1R); eqn.K = b1->invM * mat3() + eqn.J.A1 * b1->invIWorld * -eqn.J.A1; if (!b2->isGround) { eqn.J.L2 = mat3(); eqn.J.A2 = Utils::skew(r2R); eqn.K += b2->invM * mat3() + eqn.J.A2 * b2->invIWorld * -eqn.J.A2; } eqn.K = inverse(eqn.K); } void BallAndSocketJoint::solve(float dt) { vec3 Cdot = -eqn.J.L1 * b1->v - eqn.J.A1 * b1->omega; if (!b2->isGround) { Cdot += eqn.J.L2 * b2->v + eqn.J.A2 * b2->omega; } vec3 lambda = -eqn.K * (Cdot + eqn.bias); eqn.lambda += lambda; b1->v -= b1->invM * lambda; b1->omega += b1->invIWorld * eqn.J.A1 * lambda; if (!b2->isGround) { b2->v += b2->invM * lambda; b2->omega -= b2->invIWorld * eqn.J.A2 * lambda; } } void BallAndSocketJoint::render() { gl::color(0.2, 0.2, 1.0); gl::lineWidth(0.05); r1R = b1->R * r1; gl::pushModelMatrix(); gl::translate(b1->com + r1R); gl::drawSphere(vec3(), 0.015f); gl::popModelMatrix(); r2R = b2->R * r2; gl::pushModelMatrix(); gl::translate(b2->com + r2R); gl::drawSphere(vec3(), 0.015f); gl::popModelMatrix(); }
[ "drew.f.cummins@gmail.com" ]
drew.f.cummins@gmail.com
828763fdda1deecfb1e2d1caa38bb788d284a5b4
96fa2f9224418ff1f7e20c322726e14c407b9537
/EersteEngine/EersteEnginePublic/Application.h
8f26891a1bf047052f01a34ca73acc4116f8bdb7
[ "MIT" ]
permissive
fabsgc/Eerste-Engine
70e89fdb72358591e4b2f70f9fd29047b1e25e80
2aeb9a9b248b1cc466482e4600e3e6cec7a6019d
refs/heads/master
2021-05-04T04:42:13.757617
2018-02-08T23:54:04
2018-02-08T23:54:04
120,334,250
0
0
null
null
null
null
UTF-8
C++
false
false
230
h
#pragma once #include "CoreApplication.h" #include "Prerequisites.h" namespace ee { class Application: public CoreApplication { public: Application(); virtual ~Application(); }; EE_EXPORT Application& gApplication(); }
[ "fabienbeaudimi@hotmail.fr" ]
fabienbeaudimi@hotmail.fr
efd30de1897e416d7ad2c6d3bae30c405601a97e
44289ecb892b6f3df043bab40142cf8530ac2ba4
/Sources/External/node/elastos/external/chromium_org/third_party/WebKit/Source/modules/modules_gyp/core/InstrumentingAgentsInl.h
58ebc22a9b1ffcf3d62519e53e2e1b23e90fb0fd
[ "Apache-2.0" ]
permissive
warrenween/Elastos
a6ef68d8fb699fd67234f376b171c1b57235ed02
5618eede26d464bdf739f9244344e3e87118d7fe
refs/heads/master
2021-01-01T04:07:12.833674
2017-06-17T15:34:33
2017-06-17T15:34:33
97,120,576
2
1
null
2017-07-13T12:33:20
2017-07-13T12:33:20
null
UTF-8
C++
false
false
5,627
h
// Code generated from InspectorInstrumentation.idl #ifndef InstrumentingAgentsInl_h #define InstrumentingAgentsInl_h #include "wtf/FastAllocBase.h" #include "wtf/Noncopyable.h" #include "wtf/PassRefPtr.h" #include "wtf/RefCounted.h" namespace WebCore { class InspectorApplicationCacheAgent; class InspectorCSSAgent; class InspectorCanvasAgent; class InspectorConsoleAgent; class InspectorDOMAgent; class InspectorDOMDebuggerAgent; class InspectorDOMStorageAgent; class InspectorDebuggerAgent; class InspectorInspectorAgent; class InspectorLayerTreeAgent; class InspectorPageAgent; class InspectorProfilerAgent; class InspectorResourceAgent; class InspectorTimelineAgent; class InspectorWorkerAgent; class PageDebuggerAgent; class PageRuntimeAgent; class WorkerRuntimeAgent; class InstrumentingAgents : public RefCounted<InstrumentingAgents> { WTF_MAKE_NONCOPYABLE(InstrumentingAgents); WTF_MAKE_FAST_ALLOCATED; public: static PassRefPtr<InstrumentingAgents> create() { return adoptRef(new InstrumentingAgents()); } ~InstrumentingAgents() { } void reset(); InspectorApplicationCacheAgent* inspectorApplicationCacheAgent() const { return m_inspectorApplicationCacheAgent; } void setInspectorApplicationCacheAgent(InspectorApplicationCacheAgent* agent) { m_inspectorApplicationCacheAgent = agent; } InspectorCSSAgent* inspectorCSSAgent() const { return m_inspectorCSSAgent; } void setInspectorCSSAgent(InspectorCSSAgent* agent) { m_inspectorCSSAgent = agent; } InspectorCanvasAgent* inspectorCanvasAgent() const { return m_inspectorCanvasAgent; } void setInspectorCanvasAgent(InspectorCanvasAgent* agent) { m_inspectorCanvasAgent = agent; } InspectorConsoleAgent* inspectorConsoleAgent() const { return m_inspectorConsoleAgent; } void setInspectorConsoleAgent(InspectorConsoleAgent* agent) { m_inspectorConsoleAgent = agent; } InspectorDOMAgent* inspectorDOMAgent() const { return m_inspectorDOMAgent; } void setInspectorDOMAgent(InspectorDOMAgent* agent) { m_inspectorDOMAgent = agent; } InspectorDOMDebuggerAgent* inspectorDOMDebuggerAgent() const { return m_inspectorDOMDebuggerAgent; } void setInspectorDOMDebuggerAgent(InspectorDOMDebuggerAgent* agent) { m_inspectorDOMDebuggerAgent = agent; } InspectorDOMStorageAgent* inspectorDOMStorageAgent() const { return m_inspectorDOMStorageAgent; } void setInspectorDOMStorageAgent(InspectorDOMStorageAgent* agent) { m_inspectorDOMStorageAgent = agent; } InspectorDebuggerAgent* inspectorDebuggerAgent() const { return m_inspectorDebuggerAgent; } void setInspectorDebuggerAgent(InspectorDebuggerAgent* agent) { m_inspectorDebuggerAgent = agent; } InspectorInspectorAgent* inspectorInspectorAgent() const { return m_inspectorInspectorAgent; } void setInspectorInspectorAgent(InspectorInspectorAgent* agent) { m_inspectorInspectorAgent = agent; } InspectorLayerTreeAgent* inspectorLayerTreeAgent() const { return m_inspectorLayerTreeAgent; } void setInspectorLayerTreeAgent(InspectorLayerTreeAgent* agent) { m_inspectorLayerTreeAgent = agent; } InspectorPageAgent* inspectorPageAgent() const { return m_inspectorPageAgent; } void setInspectorPageAgent(InspectorPageAgent* agent) { m_inspectorPageAgent = agent; } InspectorProfilerAgent* inspectorProfilerAgent() const { return m_inspectorProfilerAgent; } void setInspectorProfilerAgent(InspectorProfilerAgent* agent) { m_inspectorProfilerAgent = agent; } InspectorResourceAgent* inspectorResourceAgent() const { return m_inspectorResourceAgent; } void setInspectorResourceAgent(InspectorResourceAgent* agent) { m_inspectorResourceAgent = agent; } InspectorTimelineAgent* inspectorTimelineAgent() const { return m_inspectorTimelineAgent; } void setInspectorTimelineAgent(InspectorTimelineAgent* agent) { m_inspectorTimelineAgent = agent; } InspectorWorkerAgent* inspectorWorkerAgent() const { return m_inspectorWorkerAgent; } void setInspectorWorkerAgent(InspectorWorkerAgent* agent) { m_inspectorWorkerAgent = agent; } PageDebuggerAgent* pageDebuggerAgent() const { return m_pageDebuggerAgent; } void setPageDebuggerAgent(PageDebuggerAgent* agent) { m_pageDebuggerAgent = agent; } PageRuntimeAgent* pageRuntimeAgent() const { return m_pageRuntimeAgent; } void setPageRuntimeAgent(PageRuntimeAgent* agent) { m_pageRuntimeAgent = agent; } WorkerRuntimeAgent* workerRuntimeAgent() const { return m_workerRuntimeAgent; } void setWorkerRuntimeAgent(WorkerRuntimeAgent* agent) { m_workerRuntimeAgent = agent; } private: InstrumentingAgents(); InspectorApplicationCacheAgent* m_inspectorApplicationCacheAgent; InspectorCSSAgent* m_inspectorCSSAgent; InspectorCanvasAgent* m_inspectorCanvasAgent; InspectorConsoleAgent* m_inspectorConsoleAgent; InspectorDOMAgent* m_inspectorDOMAgent; InspectorDOMDebuggerAgent* m_inspectorDOMDebuggerAgent; InspectorDOMStorageAgent* m_inspectorDOMStorageAgent; InspectorDebuggerAgent* m_inspectorDebuggerAgent; InspectorInspectorAgent* m_inspectorInspectorAgent; InspectorLayerTreeAgent* m_inspectorLayerTreeAgent; InspectorPageAgent* m_inspectorPageAgent; InspectorProfilerAgent* m_inspectorProfilerAgent; InspectorResourceAgent* m_inspectorResourceAgent; InspectorTimelineAgent* m_inspectorTimelineAgent; InspectorWorkerAgent* m_inspectorWorkerAgent; PageDebuggerAgent* m_pageDebuggerAgent; PageRuntimeAgent* m_pageRuntimeAgent; WorkerRuntimeAgent* m_workerRuntimeAgent; }; } #endif // !defined(InstrumentingAgentsInl_h)
[ "gdsys@126.com" ]
gdsys@126.com
625fbc009e97e7bcad86722815732ed98e94bb26
6aeccfb60568a360d2d143e0271f0def40747d73
/sandbox/generic/include/boost/generic/detail/deduction_result.hpp
503f3ae9c5a34569ecb718e78b908adf30e377c9
[]
no_license
ttyang/sandbox
1066b324a13813cb1113beca75cdaf518e952276
e1d6fde18ced644bb63e231829b2fe0664e51fac
refs/heads/trunk
2021-01-19T17:17:47.452557
2013-06-07T14:19:55
2013-06-07T14:19:55
13,488,698
1
3
null
2023-03-20T11:52:19
2013-10-11T03:08:51
C++
UTF-8
C++
false
false
3,384
hpp
#ifndef BOOST_GENERIC_DETAIL_DEDUCTION_RESULT_HPP #define BOOST_GENERIC_DETAIL_DEDUCTION_RESULT_HPP #include <boost/generic/detail/dummy_type.hpp> #include <boost/mpl/begin_end.hpp> #include <boost/mpl/deref.hpp> #include <boost/mpl/eval_if.hpp> #include <boost/mpl/find_if.hpp> #include <boost/mpl/identity.hpp> #include <boost/mpl/if.hpp> #include <boost/mpl/iterator_range.hpp> #include <boost/mpl/next_prior.hpp> #include <boost/mpl/not.hpp> #include <boost/mpl/or.hpp> #include <boost/mpl/quote.hpp> #include <boost/type_traits/is_same.hpp> namespace boost { namespace generic { namespace detail { // Error tags class no_deduction {}; class ambiguous_deduction {}; template< class T > struct is_not_deduction_error : boost::mpl::true_ {}; template<> struct is_not_deduction_error< no_deduction > : mpl::false_ {}; template<> struct is_not_deduction_error< ambiguous_deduction > : mpl::false_ {}; template<> struct is_dummy_type< no_deduction > : mpl::true_ {}; template< class FirstDeduction > struct is_different_deduction_ { template< class OtherDeduction > struct apply : mpl::not_ < mpl::or_ < is_dummy_type< OtherDeduction > , is_same< FirstDeduction, OtherDeduction > > > {}; }; template< class T > struct is_dummy_meta : is_dummy_type< typename T::type > {}; template< class L, class R > struct is_same_second_meta : is_same< L, typename R::type > {}; template< class FirstDeduction, class OtherDeductionMeta > struct deduction_result : mpl::if_c < is_dummy_type< FirstDeduction >::value , mpl::eval_if < is_dummy_meta< OtherDeductionMeta > , mpl::identity< FirstDeduction > , OtherDeductionMeta > , mpl::eval_if < is_dummy_meta< OtherDeductionMeta > , mpl::identity< FirstDeduction > , mpl::if_< is_same_second_meta< FirstDeduction, OtherDeductionMeta > , FirstDeduction , ambiguous_deduction > > >::type {}; // Takes a sequence and an iterator into that sequence and yields // ambiguous_deduction // if there is another deduction to a different type template< class Sequence, class FirstDeductionIt > struct deduction_result_verifier { private: typedef typename mpl::deref< FirstDeductionIt >::type first_deduction; typedef typename mpl::next< FirstDeductionIt >::type range_begin; typedef typename mpl::end< Sequence >::type range_end; typedef typename mpl::find_if < mpl::iterator_range< range_begin, range_end > , is_different_deduction_< first_deduction > >::type mismatched_deduced_type_it; public: typedef typename mpl::if_ < is_same< mismatched_deduced_type_it, range_end > , first_deduction , ambiguous_deduction > ::type type; }; template< class Sequence > struct deduction_result_ { private: typedef typename mpl::find_if < Sequence, mpl::quote1< is_not_dummy_type > >::type first_deduced_type_it; public: typedef typename mpl::eval_if < is_same< first_deduced_type_it , typename mpl::end< Sequence >::type > , mpl::identity< no_deduction > , deduction_result_verifier< Sequence, first_deduced_type_it > >::type type; }; } } } #endif // BOOST_GENERIC_DETAIL_DEDUCTION_RESULT_HPP
[ "rivorus@gmail.com" ]
rivorus@gmail.com
662c14c312663b86228389271ed50f88c2ed762b
2dc791511160f8417541a74f9630bcd22f7f3923
/noi_oj/chp1.1/1.cpp
f4c60cbbea1dc6da378724231cae7315a248a5f3
[]
no_license
linlih/CodeExercise
f3f8b15ef86c7891537549db986a540829ff323b
5f34c0a402d263fd0ada4cb659ed2ebb1c91c6e1
refs/heads/master
2021-06-09T08:56:12.574375
2021-04-16T06:58:47
2021-04-16T06:58:47
163,124,042
0
0
null
null
null
null
UTF-8
C++
false
false
135
cpp
#include <iostream> using namespace std; int main(int argc, char const *argv[]) { cout << "Hello, World!" << endl; return 0; }
[ "linhome.luck@gmail.com" ]
linhome.luck@gmail.com
2ad9aa061f4a5501c7b1a2c519f716e5eb29727b
c8eacfd93fb70980bccab428e6bb4cd998e30d31
/Baekjoon/baekjoon_1003.cpp
328d32c6730cf38d4960e1149f3dc2ca97b25e41
[]
no_license
Kdj9384/Algorithm
f048600916efc301faa5ece18fd2731fab2eed66
ba32ab7c2a3809a89a73043129a1f39451f2ddaf
refs/heads/master
2023-09-03T13:31:55.611039
2021-11-17T08:17:25
2021-11-17T08:17:25
366,966,232
0
0
null
null
null
null
UTF-8
C++
false
false
1,132
cpp
/** * @file baekjoon_1003.cpp * @brief * 피보나치 수열을 DP로 구현하는 문제. + 피보나치 값 대신 문제에서 제시된 0과 1의 출력을 저장해나가면 된다. * */ #include <iostream> #include <string.h> #include <string> #include <vector> typedef struct Fibo { int fibo_value; int zero; int one; } Fibo; using std::cin; using std::cout; Fibo visited[50]; void fibo(int n) { for (int i = 0; i <= n; i++) { if (i == 0) // fibo(0) { visited[i].fibo_value = 0; visited[i].one = 0; visited[i].zero = 1; } else if (i == 1) { visited[i].fibo_value = 1; visited[i].one = 1; visited[i].zero = 0; } else { visited[i].fibo_value = visited[i - 1].fibo_value + visited[i - 2].fibo_value; visited[i].one = visited[i - 1].one + visited[i - 2].one; visited[i].zero = visited[i - 1].zero + visited[i - 2].zero; } } } int main() { int T, N; cin >> T; while (T--) { cin >> N; fibo(N); printf("%d %d\n", visited[N].zero, visited[N].one); memset(visited, 0, sizeof(Fibo) * 50); } }
[ "kdj93843404@gmail.com" ]
kdj93843404@gmail.com
78d8f776b503a0b78e919514b40a72f0c5dc399a
6c1313416066d48842802b7b8eb696935c2dbde2
/Heirloom/thirdparty/glm/glm/ext/matrix_float3x2_precision.hpp
f3161287774522a4ec887f7114ce1058fa0dc79e
[ "MIT", "LicenseRef-scancode-warranty-disclaimer", "LicenseRef-scancode-happy-bunny" ]
permissive
MilanDierickGD/QBert
c242a22afca9af31180665992a231ce2189db2cd
c49a626de47179e248e80b9c24c2425adc216593
refs/heads/master
2023-05-14T01:37:49.376784
2021-06-06T23:20:33
2021-06-06T23:20:33
372,919,892
0
0
null
null
null
null
UTF-8
C++
false
false
1,580
hpp
/// @ref core /// @file glm/ext/matrix_float3x2_precision.hpp #pragma once #include "../detail/type_mat3x2.hpp" namespace glm { /// @addtogroup core_matrix_precision /// @{ /// 3 columns of 2 components matrix of single-precision floating-point numbers using low precision arithmetic in term of ULPs. /// /// @see <a href="http://www.opengl.org/registry/doc/GLSLangSpec.4.20.8.pdf">GLSL 4.20.8 specification, section 4.1.6 Matrices</a> /// @see <a href="http://www.opengl.org/registry/doc/GLSLangSpec.4.20.8.pdf">GLSL 4.20.8 specification, section 4.7.2 Precision Qualifier</a> typedef mat<3, 2, float, lowp> lowp_mat3x2; /// 3 columns of 2 components matrix of single-precision floating-point numbers using medium precision arithmetic in term of ULPs. /// /// @see <a href="http://www.opengl.org/registry/doc/GLSLangSpec.4.20.8.pdf">GLSL 4.20.8 specification, section 4.1.6 Matrices</a> /// @see <a href="http://www.opengl.org/registry/doc/GLSLangSpec.4.20.8.pdf">GLSL 4.20.8 specification, section 4.7.2 Precision Qualifier</a> typedef mat<3, 2, float, mediump> mediump_mat3x2; /// 3 columns of 2 components matrix of single-precision floating-point numbers using high precision arithmetic in term of ULPs. /// /// @see <a href="http://www.opengl.org/registry/doc/GLSLangSpec.4.20.8.pdf">GLSL 4.20.8 specification, section 4.1.6 Matrices</a> /// @see <a href="http://www.opengl.org/registry/doc/GLSLangSpec.4.20.8.pdf">GLSL 4.20.8 specification, section 4.7.2 Precision Qualifier</a> typedef mat<3, 2, float, highp> highp_mat3x2; /// @} }//namespace glm
[ "milan.dierick@gmail.com" ]
milan.dierick@gmail.com
b79b3dab96e30c5c98cbc809951464a6fa7766cc
3ff1fe3888e34cd3576d91319bf0f08ca955940f
/asr/include/tencentcloud/asr/v20190614/model/DeleteCustomizationResponse.h
b20c9b06e854264acc8c3984e99ee8dd46985729
[ "Apache-2.0" ]
permissive
TencentCloud/tencentcloud-sdk-cpp
9f5df8220eaaf72f7eaee07b2ede94f89313651f
42a76b812b81d1b52ec6a217fafc8faa135e06ca
refs/heads/master
2023-08-30T03:22:45.269556
2023-08-30T00:45:39
2023-08-30T00:45:39
188,991,963
55
37
Apache-2.0
2023-08-17T03:13:20
2019-05-28T08:56:08
C++
UTF-8
C++
false
false
1,637
h
/* * Copyright (c) 2017-2019 THL A29 Limited, a Tencent company. 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. */ #ifndef TENCENTCLOUD_ASR_V20190614_MODEL_DELETECUSTOMIZATIONRESPONSE_H_ #define TENCENTCLOUD_ASR_V20190614_MODEL_DELETECUSTOMIZATIONRESPONSE_H_ #include <string> #include <vector> #include <map> #include <tencentcloud/core/AbstractModel.h> namespace TencentCloud { namespace Asr { namespace V20190614 { namespace Model { /** * DeleteCustomization返回参数结构体 */ class DeleteCustomizationResponse : public AbstractModel { public: DeleteCustomizationResponse(); ~DeleteCustomizationResponse() = default; CoreInternalOutcome Deserialize(const std::string &payload); std::string ToJsonString() const; private: }; } } } } #endif // !TENCENTCLOUD_ASR_V20190614_MODEL_DELETECUSTOMIZATIONRESPONSE_H_
[ "tencentcloudapi@tenent.com" ]
tencentcloudapi@tenent.com
ae2a15d3e890490f78829cea01afa6423733d56a
afe31c46a7b33cc68fc70002df38dc245a1519ee
/Plugins/StrayFogLibrary/Source/StrayFogLibrary/GameMode/StrayFogGameStateBase.cpp
567284ccc759042eefd3f0328449cda2fae7aec7
[]
no_license
StrayFog/StrayFogUE4.20
8287f1f0062d89925b9d7ce2e414df4d2653c59a
84657ffe9f268d4f292ff2ec5a5b287f9e954a33
refs/heads/master
2020-03-26T20:54:53.591447
2018-08-20T02:08:50
2018-08-20T02:08:50
145,354,601
0
0
null
null
null
null
UTF-8
C++
false
false
119
cpp
// Fill out your copyright notice in the Description page of Project Settings. #include "StrayFogGameStateBase.h"
[ "362220796@qq.com" ]
362220796@qq.com
4b16cd732350aa060250947ef869a0b93c7c0d8b
34031ce2f59ba79d1bb272d3c345b76bf7b204a2
/Celeste.ino
ec591eae374f34c749cd58dc387986caf28fdf2d
[]
no_license
minirop/Celeste-META
a3dfedc84aca602548daae76a8a624b113e5c923
878aa01d512ad7681d6dd450d583b7928f2269a4
refs/heads/master
2021-12-15T06:05:37.522954
2021-12-06T12:27:04
2021-12-06T12:27:04
170,198,935
4
2
null
null
null
null
UTF-8
C++
false
false
222
ino
#include "game.h" Game game; void setup() { gb.begin(); SerialUSB.begin(9600); gb.setFrameRate(30); game.init(); } void loop() { while (!gb.update()); gb.display.clear(); game.update(); game.draw(); }
[ "minirop@hotmail.com" ]
minirop@hotmail.com
4502276399dc548538cf973f6a5008906673666b
c1fec9321911ff765c7ac27300494525995ccea3
/export/macos/obj/include/lime/_internal/backend/native/RenderEventInfo.h
c0322ea690a6b08cdb3c914f21bd6581bc8a0126
[]
no_license
MagnusStrom/Fight
9621a7162118ea96c483498107437f5061074285
b0de99f412e8b94161cc555d839a464f4a47573b
refs/heads/main
2023-07-11T22:24:35.145753
2021-08-09T09:20:46
2021-08-09T09:20:46
392,041,079
2
0
null
null
null
null
UTF-8
C++
false
true
2,597
h
// Generated by Haxe 4.1.5 #ifndef INCLUDED_lime__internal_backend_native_RenderEventInfo #define INCLUDED_lime__internal_backend_native_RenderEventInfo #ifndef HXCPP_H #include <hxcpp.h> #endif HX_DECLARE_STACK_FRAME(_hx_pos_e2a4e584e1f8ec25_807_new) HX_DECLARE_CLASS4(lime,_internal,backend,native,RenderEventInfo) namespace lime{ namespace _internal{ namespace backend{ namespace native{ class HXCPP_CLASS_ATTRIBUTES RenderEventInfo_obj : public ::hx::Object { public: typedef ::hx::Object super; typedef RenderEventInfo_obj OBJ_; RenderEventInfo_obj(); public: enum { _hx_ClassId = 0x7660a6a6 }; void __construct( ::Dynamic type); inline void *operator new(size_t inSize, bool inContainer=false,const char *inName="lime._internal.backend.native.RenderEventInfo") { return ::hx::Object::operator new(inSize,inContainer,inName); } inline void *operator new(size_t inSize, int extra) { return ::hx::Object::operator new(inSize+extra,false,"lime._internal.backend.native.RenderEventInfo"); } inline static ::hx::ObjectPtr< RenderEventInfo_obj > __new( ::Dynamic type) { ::hx::ObjectPtr< RenderEventInfo_obj > __this = new RenderEventInfo_obj(); __this->__construct(type); return __this; } inline static ::hx::ObjectPtr< RenderEventInfo_obj > __alloc(::hx::Ctx *_hx_ctx, ::Dynamic type) { RenderEventInfo_obj *__this = (RenderEventInfo_obj*)(::hx::Ctx::alloc(_hx_ctx, sizeof(RenderEventInfo_obj), false, "lime._internal.backend.native.RenderEventInfo")); *(void **)__this = RenderEventInfo_obj::_hx_vtable; { HX_STACKFRAME(&_hx_pos_e2a4e584e1f8ec25_807_new) HXDLIN( 807) ( ( ::lime::_internal::backend::native::RenderEventInfo)(__this) )->type = ( (int)(type) ); } return __this; } static void * _hx_vtable; static Dynamic __CreateEmpty(); static Dynamic __Create(::hx::DynamicArray inArgs); //~RenderEventInfo_obj(); HX_DO_RTTI_ALL; ::hx::Val __Field(const ::String &inString, ::hx::PropertyAccess inCallProp); ::hx::Val __SetField(const ::String &inString,const ::hx::Val &inValue, ::hx::PropertyAccess inCallProp); void __GetFields(Array< ::String> &outFields); static void __register(); bool _hx_isInstanceOf(int inClassId); ::String __ToString() const { return HX_("RenderEventInfo",52,a3,fc,3d); } int type; ::lime::_internal::backend::native::RenderEventInfo clone(); ::Dynamic clone_dyn(); }; } // end namespace lime } // end namespace _internal } // end namespace backend } // end namespace native #endif /* INCLUDED_lime__internal_backend_native_RenderEventInfo */
[ "magnuscock69@gmail.com" ]
magnuscock69@gmail.com
c9a8929aff8ee01d1123ed7fcd533b826d6f75e0
75995027f5bb5a0b930d1b6705e86ffc94cb9777
/Source/HideAndSeekWithAI/Private/Core/GameEntities/Triggers/FinishGameTrigger.cpp
ccd3f0e59ec48098b4a906c01dcf20403dca7ee8
[]
no_license
arttkachev/HideAndSeekWithAI
588808e3ea502d99e0f564b77d3b0e2142b503b2
a94216fb62fc091cb8bc817afe35bb57c40bc884
refs/heads/master
2022-07-02T01:49:13.462462
2020-05-11T21:18:12
2020-05-11T21:18:12
263,107,414
0
0
null
null
null
null
UTF-8
C++
false
false
931
cpp
// Fill out your copyright notice in the Description page of Project Settings. #include "Core/GameEntities/Triggers/FinishGameTrigger.h" #include "Kismet/GameplayStatics.h" #include "Core/GameLibraries/GameFunctionLibrary.h" // Sets default values AFinishGameTrigger::AFinishGameTrigger() { // Set this actor to call Tick() every frame. You can turn this off to improve performance if you don't need it. PrimaryActorTick.bCanEverTick = false; } // Called when the game starts or when spawned void AFinishGameTrigger::BeginPlay() { Super::BeginPlay(); } // Called every frame void AFinishGameTrigger::Tick(float DeltaTime) { Super::Tick(DeltaTime); } void AFinishGameTrigger::OnOverlappingHappened(UPrimitiveComponent* OverlappedComp, AActor* Other, UPrimitiveComponent* OtherComp, int32 OtherBodyIndex, bool bFromSweep, const FHitResult& SweepResult) { UGameFunctionLibrary::StopGame(this, WidgetOnTrigger); }
[ "art.tkachev@bk.ru" ]
art.tkachev@bk.ru
74c174dfd7df3b15e2a49a74ae9883b0f4665041
a0d34bf94b271e61433de34f562a6111beedc416
/course2_final_project/Project2/Course.cpp
1082e917b92677adabc665cdce738a93e70833f7
[]
no_license
salman-a-shah/OCC-CPP
106e9a54da09a45818074d9ca1762e96912a329b
ba6fef7c581c250686b4ee515984abc40cf3d894
refs/heads/master
2022-05-28T20:15:26.140721
2020-04-30T23:46:07
2020-04-30T23:46:07
260,340,986
0
0
null
null
null
null
UTF-8
C++
false
false
1,146
cpp
/* Shah, Salman CSA250 March 10, 2014 Project 1 */ #include "Course.h" // default constructor Course::Course() { courseCredits = 0; courseGrade = '*'; } // setCourseInfo void Course::setCourseInfo(const string &cName, const string &cNumber, char cGrade, int cCredits) { courseName = cName; courseNo = cNumber; courseGrade = cGrade; courseCredits = cCredits; } // printCourseInfo void Course::printCourseInfo(bool print) const { cout << left << setw(11) << courseNo << setw(15) << courseName << right << setw(3) << courseCredits; if (print) { cout << setw(7) << right << courseGrade << endl; } else { cout << setw(7) << right << "***" << endl; } } // getCourseCredits int Course::getCourseCredits() const { return courseCredits; } // getCourseNumber string Course::getCourseNumber() const { return courseNo; } // getCourseName string Course::getCourseName() const { return courseName; } // getCourseGrade char Course::getCourseGrade() const { return courseGrade; } // destructor Course::~Course() { }
[ "noreply@github.com" ]
noreply@github.com
53c609cbf4f1ea78a1e360ce71555cc411199cd5
b18b8eaf86a7cba2e2a0e0945560f5ef3b3c7bd8
/034-Find-First-and-Last-Position-of-Element-in-Sorted-Array/solution.cpp
c51929ee866b171e83d7ceb20029c4afd94ba8a3
[ "Apache-2.0" ]
permissive
ActiveVariable/leetcode
b80e7e4e27b3d1e8b58c7b1c19903b2e50b7e05e
453a86ac16360e44893262e04f77fd350d1e80f2
refs/heads/master
2023-06-12T13:58:13.067262
2021-07-17T04:31:31
2021-07-17T04:31:31
387,292,280
1
0
Apache-2.0
2021-07-19T00:01:11
2021-07-19T00:01:10
null
UTF-8
C++
false
false
844
cpp
#include "solution.hpp" static auto x = []() { // turn off sync std::ios::sync_with_stdio(false); // untie in/out streams cin.tie(NULL); return 0; }(); vector<int> Solution::searchRange(vector<int>& nums, int target) { if (nums.empty()) return vector<int>{-1, -1}; int low = subsearch(nums, (float)target-0.5, 0, nums.size()-1); int high = subsearch(nums, (float)target+0.5, 0, nums.size()-1); if (low == high) return vector<int>{-1, -1}; else return vector<int>{low+1, high}; } int Solution::subsearch(vector<int>& nums, float target, int start, int end) { if (target < nums[start]) return start-1; else if (target > nums[end]) return end; int k = (start + end) / 2; if (nums[k] > target) return subsearch(nums, target, start, k-1); else return subsearch(nums, target, k+1, end); }
[ "johnhany@163.com" ]
johnhany@163.com
f571147ad39397988664d4545330152df9bb54de
3b31bbc1074ba61c115209156413ffdf419cf9f8
/newnnfw/runtimes/tests/neural_networks_test/generated/models/depth_to_space_float_1.model.cpp
d45c9bc9f0711f216ed64e99a9c1777029ce68ec
[ "MIT", "Apache-2.0" ]
permissive
mojunsang26/Tizen-NN-Runtime
caa35a5aa8137fc8dfc376805c92ac333be9c06b
ff50aa626ef101483d03550533ac7110ddca5afc
refs/heads/master
2020-04-09T07:19:22.780932
2019-10-30T02:31:03
2019-10-30T02:31:03
160,150,527
0
0
Apache-2.0
2018-12-03T07:34:44
2018-12-03T07:34:44
null
UTF-8
C++
false
false
869
cpp
// Generated file (from: depth_to_space_float_1.mod.py). Do not edit void CreateModel(Model *model) { OperandType type1(Type::INT32, {}); OperandType type0(Type::TENSOR_FLOAT32, {1, 1, 1, 8}); OperandType type2(Type::TENSOR_FLOAT32, {1, 2, 2, 2}); // Phase 1, operands auto input = model->addOperand(&type0); auto block_size = model->addOperand(&type1); auto output = model->addOperand(&type2); // Phase 2, operations static int32_t block_size_init[] = {2}; model->setOperandValue(block_size, block_size_init, sizeof(int32_t) * 1); model->addOperation(ANEURALNETWORKS_DEPTH_TO_SPACE, {input, block_size}, {output}); // Phase 3, inputs and outputs model->identifyInputsAndOutputs( {input}, {output}); assert(model->isValid()); } bool is_ignored(int i) { static std::set<int> ignore = {}; return ignore.find(i) != ignore.end(); }
[ "lazineer@gmail.com" ]
lazineer@gmail.com
a5db83a139848a42f1fab7ec899865af86638c73
f11081914224b3aa2433f67950a0b7f745cb56de
/Lista 1/Ex 11.cpp
fde6819df61e144bf202e92502f8a9bf4a0eb190
[]
no_license
JaymeAugusto/AlgoritmosSemestre2
01ffc39a9e183e1cb87f354a4502f31cec77a1ad
68c96f79d945409fac38d8ad6546fddd81e371e3
refs/heads/main
2023-04-24T00:12:33.950771
2021-05-12T21:25:18
2021-05-12T21:25:18
366,856,999
0
0
null
null
null
null
WINDOWS-1252
C++
false
false
433
cpp
//Jayme Augusto | GRR 20195529 | Curso de Licenciatura em Computacao | 2º periodo #include<stdio.h> int main(){ int n, n0, r, i; printf("Digite quantas vezes deseja fazer a progressao: "); scanf("%d",&n); printf("\n Digite o primeiro numero da progressao"); scanf("%d",&n0); printf("\n Digite a razao da progressao"); scanf("%d",&r); for(i=0; i<n; i++){ printf("[%d] ", n0); n0 += r; } return 0; }
[ "noreply@github.com" ]
noreply@github.com
be0648d0c0b62256df084e3ccb48dd7c193e4fc2
183f345f802fb16fb28f83e40cd1a67939564f32
/src/Livro.cpp
d92c02118810baf62fd41128f5116a7fbeebe88d
[]
no_license
pds2/20192-team-10
b9548fc23dd37394ea01faf3216911d178facee3
2d932186737c7e93fa73e9a5512334cb0a5f3f85
refs/heads/master
2020-08-05T17:36:44.044957
2019-12-04T01:53:18
2019-12-04T01:53:18
212,636,383
0
1
null
null
null
null
UTF-8
C++
false
false
991
cpp
// // Created by User on 27/11/2019. // #include "Livro.h" Livro::Livro(){ this->titulo = ""; this->autor = ""; this->alugado_por = ""; this->localizacao = ""; } Livro::Livro(std::string titulo, std::string autor, std::string alugado_por, std::string localizacao){ this->titulo = titulo; this->autor=autor; this->alugado_por = alugado_por; this->localizacao = localizacao; } std::string Livro::get_titulo(){ return this->titulo; } void Livro::set_titulo(std::string titulo){ this->titulo=titulo; } std::string Livro::get_autor(){ return this->autor; } void Livro::set_autor(std::string autor){ this->autor = autor; } std::string Livro::get_alugado_por(){ return this->alugado_por; } void Livro::set_alugado_por(std::string alugado_por){ this->alugado_por = alugado_por; } std::string Livro::get_localizacao(){ return this->localizacao; } void Livro::set_localizacao(std::string localizacao){ this->localizacao = localizacao; }
[ "danielvcmiranda@gmail.com" ]
danielvcmiranda@gmail.com
b6088f714c63d49f3db100572d4ef0f39cc603ac
7302f9d71d06aa7df8fb8562e19537d4a2072c30
/examples/c++/lcm1602-i2c.cxx
4fbd59e5ce2c5269af228865adec957f680008b0
[ "MIT" ]
permissive
MotionCTL/edison-lcd
823b5228bee140d0892edc499f4d102b67910a7a
c79b4cf9e136a2da4b9e648b479b8f64d28e11d7
refs/heads/master
2021-01-20T19:44:57.119303
2016-06-08T18:25:38
2016-06-08T18:25:38
60,690,822
0
0
null
null
null
null
UTF-8
C++
false
false
1,640
cxx
/* * Author: Thomas Ingleby <thomas.c.ingleby@intel.com> * Copyright (c) 2014 Intel Corporation. * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * "Software"), to deal in the Software without restriction, including * without limitation the rights to use, copy, modify, merge, publish, * distribute, sublicense, and/or sell copies of the Software, and to * permit persons to whom the Software is furnished to do so, subject to * the following conditions: * * The above copyright notice and this permission notice shall be * included in all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ #include "lcm1602.hpp" int main(int argc, char **argv) { //! [Interesting] upm::Lcm1602* lcd = new upm::Lcm1602(6, 0x27); lcd->setCursor(0,0); lcd->write("Hello World"); //! [Interesting] sleep(3); lcd->setCursor(1,2); lcd->write("Hello World"); sleep(3); lcd->setCursor(2,4); lcd->write("Hello World"); sleep(3); lcd->setCursor(3,6); lcd->write("Hello World"); sleep(3); delete lcd; return 0; }
[ "txracing@motionctl.com" ]
txracing@motionctl.com
d3c1e6e59977339de374a7161982d1df80694818
eaf5c173ec669b26c95f7babad40306f2c7ea459
/abc058/arc071_b.cpp
7473c01419becdef7f16eb97a34a187f5e1c1b80
[]
no_license
rikuTanide/atcoder_endeavor
657cc3ba7fbf361355376a014e3e49317fe96def
6b5dc43474d5183d8eecb8cb13bf45087c7ed195
refs/heads/master
2023-02-02T11:49:06.679743
2020-12-21T04:51:10
2020-12-21T04:51:10
318,676,396
0
0
null
null
null
null
UTF-8
C++
false
false
3,713
cpp
#include <bits/stdc++.h> //#include <boost/multiprecision/cpp_int.hpp> //namespace mp = boost::multiprecision; using namespace std; const int mod = 1000000007; struct mint { long long x; // typedef long long ll; mint(long long x = 0) : x((x % mod + mod) % mod) {} mint &operator+=(const mint a) { if ((x += a.x) >= mod) x -= mod; return *this; } mint &operator-=(const mint a) { if ((x += mod - a.x) >= mod) x -= mod; return *this; } mint &operator*=(const mint a) { (x *= a.x) %= mod; return *this; } mint operator+(const mint a) const { mint res(*this); return res += a; } mint operator-(const mint a) const { mint res(*this); return res -= a; } mint operator*(const mint a) const { mint res(*this); return res *= a; } mint pow(long long t) const { if (!t) return 1; mint a = pow(t >> 1); a *= a; if (t & 1) a *= *this; return a; } // for prime mod mint inv() const { return pow(mod - 2); } mint &operator/=(const mint a) { return (*this) *= a.inv(); } mint operator/(const mint a) const { mint res(*this); return res /= a; } friend std::istream &operator>>(std::istream &in, mint &o) { long long a; in >> a; o = a; return in; } friend std::ostream &operator<<(std::ostream &out, const mint &o) { out << o.x; return out; } }; const double PI = 3.14159265358979323846; typedef mint ll; const double EPS = 1e-9; #define rep(i, n) for (int i = 0; i < (n); ++i) //#define rep(i, n) for (ll i = 0; i < (n); ++i) typedef pair<ll, ll> P; const ll INF = 10e17; #define cmin(x, y) x = min(x, y) #define cmax(x, y) x = max(x, y) #define ret() return 0; double equal(double a, double b) { return fabs(a - b) < DBL_EPSILON; } std::istream &operator>>(std::istream &in, set<int> &o) { int a; in >> a; o.insert(a); return in; } bool contain(set<int> &s, int a) { return s.find(a) != s.end(); } //ofstream outfile("log.txt"); //outfile << setw(6) << setfill('0') << prefecture << setw(6) << setfill('0') << rank << endl; // std::cout << std::bitset<8>(9); //const ll mod = 1e10; typedef priority_queue<ll, vector<ll>, greater<ll> > PQ_ASK; class CumulativeSum { vector<ll> numbers; vector<ll> sums; public: CumulativeSum(int n) { numbers.resize(n); sums.resize(n); } void set(int i, ll value) { numbers[i] = value; } ll getSum(int i) { if (i == -1) return 0; if (i == sums.size()) return sums.back(); return sums[i]; } ll getSectionSum(int start, int end) { return getSum(end) - getSum(start - 1); } void build() { for (int i = 0; i < numbers.size(); i++) { sums[i] = getSum(i - 1) + numbers[i]; } } }; int main() { int h, w; cin >> h >> w; vector<ll> horizontal(h), vertical(w); rep(y, h) cin >> horizontal[y]; rep(x, w) cin >> vertical[x]; CumulativeSum hori_sum(h), ver_sum(w); rep(y, h) hori_sum.set(y, horizontal[y]); rep(x, w) ver_sum.set(x, vertical[x]); hori_sum.build(); ver_sum.build(); ll s = 0, t = 0; for (int y = h - 1; y > 0; y--) { ll a = horizontal[y] * y; ll b = hori_sum.getSum(y - 1); ll n = a - b; s += n; } for (int x = w - 1; x > 0; x--) { ll a = vertical[x] * x; ll b = ver_sum.getSum(x - 1); ll n = a - b; t += n; } ll ans = s * t; cout << ans << endl; }
[ "riku@tanide.net" ]
riku@tanide.net
570daf005da44dcd838eefa005adb76e14df43ef
a943a35487e663d443850f598aac78b464ca5ac2
/galilei/galilei/plugins/gmeasure.h
1fd66dc1c848eda5dfac933ca831a7578b688210
[]
no_license
pfrancq/galilei
61855e4a40f0da2b93c1941a412e2eb0d6b7b24f
2230fbd0240bba26c49e0b506685219655cdbc2f
refs/heads/main
2023-08-14T12:28:46.458447
2021-10-04T11:37:31
2021-10-04T11:37:31
405,099,015
0
0
null
null
null
null
UTF-8
C++
false
false
4,586
h
/* GALILEI Research Project GMeasure.h Generic Measure - Implementation. Copyright 2005-2015 by Pascal Francq (pascal@francq.info). Copyright 2005-2008 by the Université Libre de Bruxelles (ULB). This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2.0 of the License, or (at your option) any later version. This library 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 Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library, as a file COPYING.LIB; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ //------------------------------------------------------------------------------ #ifndef GMeasureH #define GMeasureH //------------------------------------------------------------------------------ // include files for ANSI C/C++ #include <stdarg.h> //------------------------------------------------------------------------------ // include files for GALILEI #include <gplugin.h> #include <gpluginmanager.h> //------------------------------------------------------------------------------ namespace GALILEI{ //------------------------------------------------------------------------------ //------------------------------------------------------------------------------ /** * The GMeasure class provides a representation for a specific measure (ex: * Similarities between profiles, similarities between documents and groups, * agreement ratios between profiles, ...). * * See the documentation related to GPlugIn for more general information. * @short Measures. */ class GMeasure : public GPlugIn { public: /** * Constructor of a measure. * @param session Session. * @param fac Plug-in factory. */ GMeasure(GSession* session,GPlugInFactory* fac); /** * Get a measure. Each plug-in can handle several types of measure (first * parameter of the method). The other parameters (including eventually the * result of the measure) depend of the particular plug-in. This means that * the caller must exactly know which parameters are requested by a * particular plug-in. This method is intended to be called in an intensive * way (in contrary of Info) * @param measure Type of the measure. * * Suppose that the method takes two int arguments and should return a * double that represents the product (measure=1) or the sum (measure=2). This * method should be written: * @code * void Measure(int measure,...) * { * va_list ap; * va_start(ap,measure); * int i=va_arg(ap,int); * int j=va_arg(ap,int); * double* d=va_arg(ap,double*); * switch(measure) * { * case 1 : (*d)=i*j; break; * case 2 : (*d)=i+j; break; * } * va_end(ap); * } * @endcode * The method should be call: * @code * GMeasure* ptr; * double d; * ... * ptr->Measure(1,3,4,&d); * cout<<d<<endl; * @endcode */ virtual void Measure(size_t measure,...)=0; /** * Exchange a particular information with the plug-in. The other parameters * (including eventually the result of the measure) depend of the particular * plug-in. This means that the caller must exactly know which parameters * are requested by a particular plug-in. This method is not intended to be * called in an intensive way (in contrary of Measure). * @param info Information to get. * * Suppose the function should simply return a double. This method should * be written: * @code * void Info(int info,...) * { * va_list ap; * double* d=va_arg(ap,double*); * switch(info) * { * case 1 : (*d)=2; break; * case 2 : (*d)=3; break; * } * va_end(ap); * } * @endcode * The method should be call: * @code * GMeasure* ptr; * double d; * ... * ptr->Info(1,&d); * cout<<d<<endl; * @endcode */ virtual void Info(size_t info,...); /** * Destruct the measure. */ virtual ~GMeasure(void); }; //------------------------------------------------------------------------------- #define CREATE_MEASURE_FACTORY(type,name,desc,plugin) \ CREATE_FACTORY(GALILEI::GMeasure,plugin,"Measures",type,name,desc) } //-------- End of namespace GALILEI ----------------------------------------- //------------------------------------------------------------------------------ #endif
[ "pfrancq@da7721e6-cd2b-0410-b678-e5eefa682a33" ]
pfrancq@da7721e6-cd2b-0410-b678-e5eefa682a33
8f32f81a64c32aed0bc0d99f7497ae1517dec7cb
774a2f2aba22f6105502de8b95ad31b2ee49fd11
/src/log_file.cpp
d4bd81c98b1ca0ee370952ecbef00c0ffe479dbc
[]
no_license
halirutan/XPaceTools
141659a190ba6b3b1942701a302312f476e4280d
e5bfbdda07ce662dba936797dcc7b61b82eec465
refs/heads/master
2023-01-14T19:26:02.223598
2020-11-23T10:42:19
2020-11-23T10:42:19
228,889,428
0
0
null
null
null
null
UTF-8
C++
false
false
2,495
cpp
#include "log_file.hpp" #include "parser.hpp" #include <stdexcept> #include <fstream> #include <regex> #include <iostream> namespace xpace { XpaceLogFile::XpaceLogFile(std::string fileName) : fileName_(std::move(fileName)), initialPose_(), motions_(), positions_() { if (isXpaceLogFile()) { parse(); calculateAbsolutePositions(); } else { throw std::invalid_argument("File " + fileName_ + " is not a valid XPace logfile."); } } /** * Parses the logfile. For internal use only. */ void XpaceLogFile::parse() { // we already tested if the file is valid and can be opened! std::ifstream file; file.open(fileName_); bool haveInitialPose = false; if (file.is_open()) { std::string line; while (std::getline(file, line)) { if (!haveInitialPose) { parser::initial_pose_t pose; bool result = parser::parseInitialPose(line, pose); if (result) { haveInitialPose = true; initialPose_ = pose; } continue; } parser::motion_t motion; bool result = parser::parseMotion(line, motion); if (result) { motions_.emplace_back(motion); } } } else { throw std::runtime_error("Logfile cannot be opened. That should never happen."); } if (!haveInitialPose || motions_.empty()) { throw std::runtime_error("Could not create log-file object. Either no initial pose or no motions could be read."); } } /** * Checks if the filename is *.log and if we have the xpace magic string in the file * @return true if it appears to be a valid logfile */ bool XpaceLogFile::isXpaceLogFile() { if (std::regex_match(fileName_, std::regex(".*.log"))) { std::ifstream file; file.open(fileName_, std::ios::in); if (file.is_open()) { std::string firstLine; std::getline(file, firstLine); if (std::regex_match(firstLine, std::regex("# libXPACE log file[\r\n]*"))) { file.close(); return true; } } file.close(); } return false; } InitialPosition XpaceLogFile::getInitialPosition() const { return initialPose_; } size_t XpaceLogFile::getNumberOfMotions() const { return motions_.size(); } void XpaceLogFile::calculateAbsolutePositions() { positions_.resize(motions_.size()); for (int i = 0; i < motions_.size(); ++i) { positions_[i] = motions_[i].applyToPose(initialPose_); } } std::vector<Motion> XpaceLogFile::getAbsolutePositions() const { return positions_; } std::vector<Motion> XpaceLogFile::getMotions() const { return motions_; } std::string XpaceLogFile::getFilename() { return fileName_; } }
[ "patrick@halirutan.de" ]
patrick@halirutan.de
b65823470b5708f7ac8b2e5d1a4db6347127327e
2aa40ab42188b9b4d249df03b38168ee940ceffb
/public/xml-security-c/src/xml-security-c-1.2.1/include/xsec/xenc/XENCEncryptedType.hpp
0da92cb6d497be1c2a921e37e49f6b816d8c8f56
[ "Apache-2.0" ]
permissive
killerlife/CineCast
bea93404dc28be9e887f73d36eb506885f2806c5
955a42a69399b8bb22d9042a50c758a46cba4cf5
refs/heads/master
2020-04-12T06:38:03.387855
2018-08-02T05:20:24
2018-08-02T05:20:24
61,522,406
2
1
null
null
null
null
UTF-8
C++
false
false
9,723
hpp
/* * Copyright 2003-2005 The Apache Software Foundation. * * 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. */ /* * XSEC * * XENCEncryptedType := Definition for holder object for EncryptedType * element * * Author(s): Berin Lautenbach * * $Id: XENCEncryptedType.hpp,v 1.1.1.1 2006/08/21 08:15:02 baiqian Exp $ * */ #ifndef XENCENCRYPTEDTYPE_INCLUDE #define XENCENCRYPTEDTYPE_INCLUDE // XSEC Includes #include <xsec/framework/XSECDefs.hpp> class XENCCipherData; class DSIGKeyInfoList; class DSIGKeyInfoName; class DSIGKeyInfoValue; class DSIGKeyInfoX509; class XENCEncryptionMethod; class XENCEncryptedKey; /** * @ingroup xenc */ /** * @brief Interface definition for the EncryptedType object * * The \<EncryptedType\> element is an abstract type on which * EncryptedData and EncryptedKey objects are built. * * This is the base class on which most of the XML Encryption * standard is built. Using classes derived from this, * calling programs can decrypt the content, determine KeyInfo * references etc. * * In general derived objects should not be used directly. * The XENCCipher class should be used to operate on them. * * The schema definition for EncryptedType is as follows : * * \verbatim <complexType name='EncryptedType' abstract='true'> <sequence> <element name='EncryptionMethod' type='xenc:EncryptionMethodType' minOccurs='0'/> <element ref='ds:KeyInfo' minOccurs='0'/> <element ref='xenc:CipherData'/> <element ref='xenc:EncryptionProperties' minOccurs='0'/> </sequence> <attribute name='Id' type='ID' use='optional'/> <attribute name='Type' type='anyURI' use='optional'/> <attribute name='MimeType' type='string' use='optional'/> <attribute name='Encoding' type='anyURI' use='optional'/> </complexType> \endverbatim */ class XENCEncryptedType { /** @name Constructors and Destructors */ //@{ protected: XENCEncryptedType() {}; public: virtual ~XENCEncryptedType() {}; /** @name Basic Interface Methods */ //@{ /** * \brief Retrieve the CipherData element * * CipherData elements are the sub part of the EncryptedData * that hold the actual enciphered information. * * @returns The CipherData object */ virtual XENCCipherData * getCipherData(void) const = 0; /** * \brief Retrieve the EncryptionMethod element * * The EncryptionMethod element holds information about the * encryption algorithm to be used to encrypt/decrypt the data * * This method provides a means to extract the EncryptionMethod * element from the EncryptedType * * @returns The EncryptionMethod element */ virtual XENCEncryptionMethod * getEncryptionMethod(void) const = 0; /** * \brief Get the DOM Element Node of this structure * * @returns the DOM Element Node representing the \<EncryptionType\> element */ virtual XERCES_CPP_NAMESPACE_QUALIFIER DOMElement * getElement(void) const = 0; //@} /** @name Getter interface Methods */ //@{ /** * \brief Get the Type URI for the EncryptedType * * If this object is an EncryptedData, it <em>may</em> have a * Type attribute that defines whether it is an encrypted * Element or Element Content. This method allows the caller * to see this type URI. * * @returns a pointer to the URI string (owned by the library) * or NULL if no type is set */ virtual const XMLCh * getType(void) const = 0; /** * \brief Get the MimeType of the EncryptedType * * If this object is an EncryptedData, it <em>may</em> have a * MimeType attribute that "describes the media type of the * data which has been encrypted" (from the XML Encryption spec). * * The XML-Security-C library makes no use of this attribute, but * it provides these functions to allow applications to set and get. * * @returns a pointer to the MimeType string (owned by the library) * or NULL if no MimeType is set */ virtual const XMLCh * getMimeType(void) const = 0; /** * \brief Get the Encoding of the EncryptedType * * If this object is an EncryptedData, it <em>may</em> have an * encoding attribute that describes how the data has been encoded * prior to encryption. (E.g. http://www.w3.org/2000/09/xmldsig#base64) * * The XML-Security-C library makes no use of this attribute, but * it provides these functions to allow applications to set and get. * * @returns A string (owned by the library) providing the encoding URI */ virtual const XMLCh * getEncoding(void) const = 0; //@} /** @name Setter interface methods */ //@{ /** * \brief Set the Type URI for the EncryptedType * * Allows a calling application to set a particular Type URI for * the EncryptedType. * * @note calls to encryptElement and encryptElementContent * automatically set the appropriate Type URI. * * @param uri The URI to set */ virtual void setType(const XMLCh * uri) = 0; /** * \brief Set the MimeType of the EncryptedType * * If this object is an EncryptedData, it <em>may</em> have a * MimeType attribute that "describes the media type of the * data which has been encrypted" (from the XML Encryption spec). * * The XML-Security-C library makes no use of this attribute, but * it provides these functions to allow applications to set and get. * * @param mimeType String to set in the MimeType attribute. * @note no checking of this string is done by the library - it * simply sets the value of the MimeType attribute to this value. */ virtual void setMimeType(const XMLCh * mimeType) = 0; /** * \brief Set the Encoding of the EncryptedType * * If this object is an EncryptedData, it <em>may</em> have an * encoding attribute that describes how the data has been encoded * prior to encryption. (E.g. http://www.w3.org/2000/09/xmldsig#base64) * * The XML-Security-C library makes no use of this attribute, but * it provides these functions to allow applications to set and get. * * @param uri String (URI) to set in the Encoding attribute. * @note no checking of this string is done by the library - it * simply sets the value of the Encoding attribute to this value. */ virtual void setEncoding(const XMLCh * uri) = 0; //@} /** @name KeyInfo Element Manipulation */ //@{ /** * \brief Get the list of \<KeyInfo\> elements. * * <p>This function recovers list that contains the KeyInfo elements * read in from the DOM document.</p> * * <p>This list should be used by calling applications to determine what key * is appropriate for decrypting the document.</p> * * @note The list should never be modified directly. If you need to * add keyInfo elements, call the appropriate functions in EncryptedType * * @returns A pointer to the DSIGKeyInfoList object held by the XENCCipher */ virtual DSIGKeyInfoList * getKeyInfoList(void) = 0; /** * \brief Clear out all KeyInfo elements in the signature. * * This function will delete all KeyInfo elements from both the EncryptedType * object <em>and the associated DOM</em>. * */ virtual void clearKeyInfo(void) = 0; /** * \brief Append a DSA KeyValue element * * Add a new KeyInfo element for a DSA Value * * @param P Base64 encoded value of P * @param Q Base64 encoded value of Q * @param G Base64 encoded value of G * @param Y Base64 encoded value of Y * @returns A pointer to the created object. */ virtual DSIGKeyInfoValue * appendDSAKeyValue(const XMLCh * P, const XMLCh * Q, const XMLCh * G, const XMLCh * Y) = 0; /** * \brief Append a RSA KeyValue element * * Add a new KeyInfo element for a RSA Value * * @param modulus Base64 encoded value of the modulus * @param exponent Base64 encoded value of exponent * @returns A pointer to the created object. */ virtual DSIGKeyInfoValue * appendRSAKeyValue(const XMLCh * modulus, const XMLCh * exponent) = 0; /** * \brief Append a X509Data element. * * Add a new KeyInfo element for X509 data. * * @note The added element is empty. The caller must make use of the * returned object to set the required values. * * @returns A pointer to the created object. */ virtual DSIGKeyInfoX509 * appendX509Data(void) = 0; /** * \brief Append a KeyName element. * * Add a new KeyInfo element for a key name. * * @param name The name of the key to set in the XML * @param isDName Treat the name as a Distinguished name and encode accordingly * @returns A pointer to the created object */ virtual DSIGKeyInfoName * appendKeyName(const XMLCh * name, bool isDName = false) = 0; /** * \brief Append an already created EncryptedKey. * * Add an already created EncryptedKey. * * @note The encryptedKey becomes the property of the owning EncryptedType * object and will be deleted upon its destruction. * * @param encryptedKey A pointer to the encrypted Key */ virtual void appendEncryptedKey(XENCEncryptedKey * encryptedKey) = 0; //@} private: // Unimplemented XENCEncryptedType(const XENCEncryptedType &); XENCEncryptedType & operator = (const XENCEncryptedType &); }; #endif /* XENCENCRYPTEDTYPE_INCLUDE */
[ "jaontolt@leoniscinema.com" ]
jaontolt@leoniscinema.com
675d8695b938db6a3bd336fb13066754102befa2
7968913540f6b1f516cbf81a40ca3b7da4a6b6f2
/DragonTimeSpace/DragonLib/Network/Messages/relation.pb.h
5cfc3e9c993bf0cbd47cde935799f5ad910c250a
[]
no_license
sebafreitas/DragonTimeSpace
cd60d6daefa2b14bb4ad8022d2f0f319c3e6c2a9
16718fd3aacb284aa9fd5221744873ba944eca88
refs/heads/master
2023-02-27T18:40:36.094540
2021-02-04T13:51:57
2021-02-04T13:51:57
null
0
0
null
null
null
null
UTF-8
C++
false
true
212,951
h
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: relation.proto #ifndef GOOGLE_PROTOBUF_INCLUDED_relation_2eproto #define GOOGLE_PROTOBUF_INCLUDED_relation_2eproto #include <limits> #include <string> #include <google/protobuf/port_def.inc> #if PROTOBUF_VERSION < 3011000 #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 3011004 < 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/port_undef.inc> #include <google/protobuf/io/coded_stream.h> #include <google/protobuf/arena.h> #include <google/protobuf/arenastring.h> #include <google/protobuf/generated_message_table_driven.h> #include <google/protobuf/generated_message_util.h> #include <google/protobuf/inlined_string_field.h> #include <google/protobuf/metadata.h> #include <google/protobuf/generated_message_reflection.h> #include <google/protobuf/message.h> #include <google/protobuf/repeated_field.h> // IWYU pragma: export #include <google/protobuf/extension_set.h> // IWYU pragma: export #include <google/protobuf/generated_enum_reflection.h> #include <google/protobuf/unknown_field_set.h> // @@protoc_insertion_point(includes) #include <google/protobuf/port_def.inc> #define PROTOBUF_INTERNAL_EXPORT_relation_2eproto PROTOBUF_NAMESPACE_OPEN namespace internal { class AnyMetadata; } // namespace internal PROTOBUF_NAMESPACE_CLOSE // Internal implementation detail -- do not use these members. struct TableStruct_relation_2eproto { static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[] PROTOBUF_SECTION_VARIABLE(protodesc_cold); static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[] PROTOBUF_SECTION_VARIABLE(protodesc_cold); static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[20] PROTOBUF_SECTION_VARIABLE(protodesc_cold); static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[]; static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[]; static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[]; }; extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_relation_2eproto; namespace relation { class BlackItem; class BlackItemDefaultTypeInternal; extern BlackItemDefaultTypeInternal _BlackItem_default_instance_; class MSG_AllFriendPage_CSC; class MSG_AllFriendPage_CSCDefaultTypeInternal; extern MSG_AllFriendPage_CSCDefaultTypeInternal _MSG_AllFriendPage_CSC_default_instance_; class MSG_BlackList_CSC; class MSG_BlackList_CSCDefaultTypeInternal; extern MSG_BlackList_CSCDefaultTypeInternal _MSG_BlackList_CSC_default_instance_; class MSG_ChangeNickName_CSC; class MSG_ChangeNickName_CSCDefaultTypeInternal; extern MSG_ChangeNickName_CSCDefaultTypeInternal _MSG_ChangeNickName_CSC_default_instance_; class MSG_ModifyPageName_CSC; class MSG_ModifyPageName_CSCDefaultTypeInternal; extern MSG_ModifyPageName_CSCDefaultTypeInternal _MSG_ModifyPageName_CSC_default_instance_; class MSG_MoveFriendToPage_CSC; class MSG_MoveFriendToPage_CSCDefaultTypeInternal; extern MSG_MoveFriendToPage_CSCDefaultTypeInternal _MSG_MoveFriendToPage_CSC_default_instance_; class MSG_OperateBlackList_CSC; class MSG_OperateBlackList_CSCDefaultTypeInternal; extern MSG_OperateBlackList_CSCDefaultTypeInternal _MSG_OperateBlackList_CSC_default_instance_; class MSG_Req_AnswerApplyRelation_CS; class MSG_Req_AnswerApplyRelation_CSDefaultTypeInternal; extern MSG_Req_AnswerApplyRelation_CSDefaultTypeInternal _MSG_Req_AnswerApplyRelation_CS_default_instance_; class MSG_Req_ApplyRelation_CS; class MSG_Req_ApplyRelation_CSDefaultTypeInternal; extern MSG_Req_ApplyRelation_CSDefaultTypeInternal _MSG_Req_ApplyRelation_CS_default_instance_; class MSG_Req_DeleteRelation_CS; class MSG_Req_DeleteRelation_CSDefaultTypeInternal; extern MSG_Req_DeleteRelation_CSDefaultTypeInternal _MSG_Req_DeleteRelation_CS_default_instance_; class MSG_Req_OfflineInteractive_CS; class MSG_Req_OfflineInteractive_CSDefaultTypeInternal; extern MSG_Req_OfflineInteractive_CSDefaultTypeInternal _MSG_Req_OfflineInteractive_CS_default_instance_; class MSG_Req_SearchRelation_CS; class MSG_Req_SearchRelation_CSDefaultTypeInternal; extern MSG_Req_SearchRelation_CSDefaultTypeInternal _MSG_Req_SearchRelation_CS_default_instance_; class MSG_Ret_AddInteractive_SC; class MSG_Ret_AddInteractive_SCDefaultTypeInternal; extern MSG_Ret_AddInteractive_SCDefaultTypeInternal _MSG_Ret_AddInteractive_SC_default_instance_; class MSG_Ret_AnswerApplyRelation_SC; class MSG_Ret_AnswerApplyRelation_SCDefaultTypeInternal; extern MSG_Ret_AnswerApplyRelation_SCDefaultTypeInternal _MSG_Ret_AnswerApplyRelation_SC_default_instance_; class MSG_Ret_DeleteRelation_SC; class MSG_Ret_DeleteRelation_SCDefaultTypeInternal; extern MSG_Ret_DeleteRelation_SCDefaultTypeInternal _MSG_Ret_DeleteRelation_SC_default_instance_; class MSG_Ret_RefreshRelation_SC; class MSG_Ret_RefreshRelation_SCDefaultTypeInternal; extern MSG_Ret_RefreshRelation_SCDefaultTypeInternal _MSG_Ret_RefreshRelation_SC_default_instance_; class MSG_Ret_RelationList_SC; class MSG_Ret_RelationList_SCDefaultTypeInternal; extern MSG_Ret_RelationList_SCDefaultTypeInternal _MSG_Ret_RelationList_SC_default_instance_; class MSG_Ret_SearchRelation_SC; class MSG_Ret_SearchRelation_SCDefaultTypeInternal; extern MSG_Ret_SearchRelation_SCDefaultTypeInternal _MSG_Ret_SearchRelation_SC_default_instance_; class PageItem; class PageItemDefaultTypeInternal; extern PageItemDefaultTypeInternal _PageItem_default_instance_; class relation_item; class relation_itemDefaultTypeInternal; extern relation_itemDefaultTypeInternal _relation_item_default_instance_; } // namespace relation PROTOBUF_NAMESPACE_OPEN template<> ::relation::BlackItem* Arena::CreateMaybeMessage<::relation::BlackItem>(Arena*); template<> ::relation::MSG_AllFriendPage_CSC* Arena::CreateMaybeMessage<::relation::MSG_AllFriendPage_CSC>(Arena*); template<> ::relation::MSG_BlackList_CSC* Arena::CreateMaybeMessage<::relation::MSG_BlackList_CSC>(Arena*); template<> ::relation::MSG_ChangeNickName_CSC* Arena::CreateMaybeMessage<::relation::MSG_ChangeNickName_CSC>(Arena*); template<> ::relation::MSG_ModifyPageName_CSC* Arena::CreateMaybeMessage<::relation::MSG_ModifyPageName_CSC>(Arena*); template<> ::relation::MSG_MoveFriendToPage_CSC* Arena::CreateMaybeMessage<::relation::MSG_MoveFriendToPage_CSC>(Arena*); template<> ::relation::MSG_OperateBlackList_CSC* Arena::CreateMaybeMessage<::relation::MSG_OperateBlackList_CSC>(Arena*); template<> ::relation::MSG_Req_AnswerApplyRelation_CS* Arena::CreateMaybeMessage<::relation::MSG_Req_AnswerApplyRelation_CS>(Arena*); template<> ::relation::MSG_Req_ApplyRelation_CS* Arena::CreateMaybeMessage<::relation::MSG_Req_ApplyRelation_CS>(Arena*); template<> ::relation::MSG_Req_DeleteRelation_CS* Arena::CreateMaybeMessage<::relation::MSG_Req_DeleteRelation_CS>(Arena*); template<> ::relation::MSG_Req_OfflineInteractive_CS* Arena::CreateMaybeMessage<::relation::MSG_Req_OfflineInteractive_CS>(Arena*); template<> ::relation::MSG_Req_SearchRelation_CS* Arena::CreateMaybeMessage<::relation::MSG_Req_SearchRelation_CS>(Arena*); template<> ::relation::MSG_Ret_AddInteractive_SC* Arena::CreateMaybeMessage<::relation::MSG_Ret_AddInteractive_SC>(Arena*); template<> ::relation::MSG_Ret_AnswerApplyRelation_SC* Arena::CreateMaybeMessage<::relation::MSG_Ret_AnswerApplyRelation_SC>(Arena*); template<> ::relation::MSG_Ret_DeleteRelation_SC* Arena::CreateMaybeMessage<::relation::MSG_Ret_DeleteRelation_SC>(Arena*); template<> ::relation::MSG_Ret_RefreshRelation_SC* Arena::CreateMaybeMessage<::relation::MSG_Ret_RefreshRelation_SC>(Arena*); template<> ::relation::MSG_Ret_RelationList_SC* Arena::CreateMaybeMessage<::relation::MSG_Ret_RelationList_SC>(Arena*); template<> ::relation::MSG_Ret_SearchRelation_SC* Arena::CreateMaybeMessage<::relation::MSG_Ret_SearchRelation_SC>(Arena*); template<> ::relation::PageItem* Arena::CreateMaybeMessage<::relation::PageItem>(Arena*); template<> ::relation::relation_item* Arena::CreateMaybeMessage<::relation::relation_item>(Arena*); PROTOBUF_NAMESPACE_CLOSE namespace relation { enum RelationType : int { RELATION_STRANGER = 0, RELATION_FRIEND = 1, RELATION_APPLY = 2, RELATION_BE_APPLY = 3, RELATION_BOTH_APPLY = 4 }; bool RelationType_IsValid(int value); constexpr RelationType RelationType_MIN = RELATION_STRANGER; constexpr RelationType RelationType_MAX = RELATION_BOTH_APPLY; constexpr int RelationType_ARRAYSIZE = RelationType_MAX + 1; const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* RelationType_descriptor(); template<typename T> inline const std::string& RelationType_Name(T enum_t_value) { static_assert(::std::is_same<T, RelationType>::value || ::std::is_integral<T>::value, "Incorrect type passed to function RelationType_Name."); return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( RelationType_descriptor(), enum_t_value); } inline bool RelationType_Parse( const std::string& name, RelationType* value) { return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<RelationType>( RelationType_descriptor(), name, value); } // =================================================================== class relation_item : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:relation.relation_item) */ { public: relation_item(); virtual ~relation_item(); relation_item(const relation_item& from); relation_item(relation_item&& from) noexcept : relation_item() { *this = ::std::move(from); } inline relation_item& operator=(const relation_item& from) { CopyFrom(from); return *this; } inline relation_item& operator=(relation_item&& from) noexcept { if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { if (this != &from) InternalSwap(&from); } else { CopyFrom(from); } return *this; } inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { return _internal_metadata_.unknown_fields(); } inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { return _internal_metadata_.mutable_unknown_fields(); } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return GetMetadataStatic().descriptor; } static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return GetMetadataStatic().reflection; } static const relation_item& default_instance(); static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const relation_item* internal_default_instance() { return reinterpret_cast<const relation_item*>( &_relation_item_default_instance_); } static constexpr int kIndexInFileMessages = 0; friend void swap(relation_item& a, relation_item& b) { a.Swap(&b); } inline void Swap(relation_item* other) { if (other == this) return; InternalSwap(other); } // implements Message ---------------------------------------------- inline relation_item* New() const final { return CreateMaybeMessage<relation_item>(nullptr); } relation_item* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { return CreateMaybeMessage<relation_item>(arena); } void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; void CopyFrom(const relation_item& from); void MergeFrom(const relation_item& from); PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; size_t ByteSizeLong() const final; const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; int GetCachedSize() const final { return _cached_size_.Get(); } private: inline void SharedCtor(); inline void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(relation_item* other); friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { return "relation.relation_item"; } private: inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { return nullptr; } inline void* MaybeArenaPtr() const { return nullptr; } public: ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; private: static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_relation_2eproto); return ::descriptor_table_relation_2eproto.file_level_metadata[kIndexInFileMessages]; } public: // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { kRelationnameFieldNumber = 2, kPageFieldNumber = 9, kNickNameFieldNumber = 10, kRelationidFieldNumber = 1, kLevelFieldNumber = 3, kCareerFieldNumber = 4, kTypeFieldNumber = 5, kStatusFieldNumber = 6, kLoveDegreeFieldNumber = 7, kLastchattimeFieldNumber = 8, kOfflineTimeFieldNumber = 11, kHeadPicFieldNumber = 12, kViplevelFieldNumber = 13, kPowerFieldNumber = 14, kFriendrateFieldNumber = 15, kCreateTimeFieldNumber = 16, }; // optional string relationname = 2; bool has_relationname() const; private: bool _internal_has_relationname() const; public: void clear_relationname(); const std::string& relationname() const; void set_relationname(const std::string& value); void set_relationname(std::string&& value); void set_relationname(const char* value); void set_relationname(const char* value, size_t size); std::string* mutable_relationname(); std::string* release_relationname(); void set_allocated_relationname(std::string* relationname); private: const std::string& _internal_relationname() const; void _internal_set_relationname(const std::string& value); std::string* _internal_mutable_relationname(); public: // optional string page = 9; bool has_page() const; private: bool _internal_has_page() const; public: void clear_page(); const std::string& page() const; void set_page(const std::string& value); void set_page(std::string&& value); void set_page(const char* value); void set_page(const char* value, size_t size); std::string* mutable_page(); std::string* release_page(); void set_allocated_page(std::string* page); private: const std::string& _internal_page() const; void _internal_set_page(const std::string& value); std::string* _internal_mutable_page(); public: // optional string nickName = 10; bool has_nickname() const; private: bool _internal_has_nickname() const; public: void clear_nickname(); const std::string& nickname() const; void set_nickname(const std::string& value); void set_nickname(std::string&& value); void set_nickname(const char* value); void set_nickname(const char* value, size_t size); std::string* mutable_nickname(); std::string* release_nickname(); void set_allocated_nickname(std::string* nickname); private: const std::string& _internal_nickname() const; void _internal_set_nickname(const std::string& value); std::string* _internal_mutable_nickname(); public: // optional uint64 relationid = 1; bool has_relationid() const; private: bool _internal_has_relationid() const; public: void clear_relationid(); ::PROTOBUF_NAMESPACE_ID::uint64 relationid() const; void set_relationid(::PROTOBUF_NAMESPACE_ID::uint64 value); private: ::PROTOBUF_NAMESPACE_ID::uint64 _internal_relationid() const; void _internal_set_relationid(::PROTOBUF_NAMESPACE_ID::uint64 value); public: // optional uint32 level = 3; bool has_level() const; private: bool _internal_has_level() const; public: void clear_level(); ::PROTOBUF_NAMESPACE_ID::uint32 level() const; void set_level(::PROTOBUF_NAMESPACE_ID::uint32 value); private: ::PROTOBUF_NAMESPACE_ID::uint32 _internal_level() const; void _internal_set_level(::PROTOBUF_NAMESPACE_ID::uint32 value); public: // optional uint32 career = 4; bool has_career() const; private: bool _internal_has_career() const; public: void clear_career(); ::PROTOBUF_NAMESPACE_ID::uint32 career() const; void set_career(::PROTOBUF_NAMESPACE_ID::uint32 value); private: ::PROTOBUF_NAMESPACE_ID::uint32 _internal_career() const; void _internal_set_career(::PROTOBUF_NAMESPACE_ID::uint32 value); public: // optional uint32 type = 5; bool has_type() const; private: bool _internal_has_type() const; public: void clear_type(); ::PROTOBUF_NAMESPACE_ID::uint32 type() const; void set_type(::PROTOBUF_NAMESPACE_ID::uint32 value); private: ::PROTOBUF_NAMESPACE_ID::uint32 _internal_type() const; void _internal_set_type(::PROTOBUF_NAMESPACE_ID::uint32 value); public: // optional uint32 status = 6; bool has_status() const; private: bool _internal_has_status() const; public: void clear_status(); ::PROTOBUF_NAMESPACE_ID::uint32 status() const; void set_status(::PROTOBUF_NAMESPACE_ID::uint32 value); private: ::PROTOBUF_NAMESPACE_ID::uint32 _internal_status() const; void _internal_set_status(::PROTOBUF_NAMESPACE_ID::uint32 value); public: // optional uint32 love_degree = 7; bool has_love_degree() const; private: bool _internal_has_love_degree() const; public: void clear_love_degree(); ::PROTOBUF_NAMESPACE_ID::uint32 love_degree() const; void set_love_degree(::PROTOBUF_NAMESPACE_ID::uint32 value); private: ::PROTOBUF_NAMESPACE_ID::uint32 _internal_love_degree() const; void _internal_set_love_degree(::PROTOBUF_NAMESPACE_ID::uint32 value); public: // optional uint32 lastchattime = 8; bool has_lastchattime() const; private: bool _internal_has_lastchattime() const; public: void clear_lastchattime(); ::PROTOBUF_NAMESPACE_ID::uint32 lastchattime() const; void set_lastchattime(::PROTOBUF_NAMESPACE_ID::uint32 value); private: ::PROTOBUF_NAMESPACE_ID::uint32 _internal_lastchattime() const; void _internal_set_lastchattime(::PROTOBUF_NAMESPACE_ID::uint32 value); public: // optional uint32 offlineTime = 11; bool has_offlinetime() const; private: bool _internal_has_offlinetime() const; public: void clear_offlinetime(); ::PROTOBUF_NAMESPACE_ID::uint32 offlinetime() const; void set_offlinetime(::PROTOBUF_NAMESPACE_ID::uint32 value); private: ::PROTOBUF_NAMESPACE_ID::uint32 _internal_offlinetime() const; void _internal_set_offlinetime(::PROTOBUF_NAMESPACE_ID::uint32 value); public: // optional uint32 headPic = 12; bool has_headpic() const; private: bool _internal_has_headpic() const; public: void clear_headpic(); ::PROTOBUF_NAMESPACE_ID::uint32 headpic() const; void set_headpic(::PROTOBUF_NAMESPACE_ID::uint32 value); private: ::PROTOBUF_NAMESPACE_ID::uint32 _internal_headpic() const; void _internal_set_headpic(::PROTOBUF_NAMESPACE_ID::uint32 value); public: // optional uint32 viplevel = 13; bool has_viplevel() const; private: bool _internal_has_viplevel() const; public: void clear_viplevel(); ::PROTOBUF_NAMESPACE_ID::uint32 viplevel() const; void set_viplevel(::PROTOBUF_NAMESPACE_ID::uint32 value); private: ::PROTOBUF_NAMESPACE_ID::uint32 _internal_viplevel() const; void _internal_set_viplevel(::PROTOBUF_NAMESPACE_ID::uint32 value); public: // optional uint32 power = 14; bool has_power() const; private: bool _internal_has_power() const; public: void clear_power(); ::PROTOBUF_NAMESPACE_ID::uint32 power() const; void set_power(::PROTOBUF_NAMESPACE_ID::uint32 value); private: ::PROTOBUF_NAMESPACE_ID::uint32 _internal_power() const; void _internal_set_power(::PROTOBUF_NAMESPACE_ID::uint32 value); public: // optional uint32 friendrate = 15; bool has_friendrate() const; private: bool _internal_has_friendrate() const; public: void clear_friendrate(); ::PROTOBUF_NAMESPACE_ID::uint32 friendrate() const; void set_friendrate(::PROTOBUF_NAMESPACE_ID::uint32 value); private: ::PROTOBUF_NAMESPACE_ID::uint32 _internal_friendrate() const; void _internal_set_friendrate(::PROTOBUF_NAMESPACE_ID::uint32 value); public: // optional uint32 createTime = 16; bool has_createtime() const; private: bool _internal_has_createtime() const; public: void clear_createtime(); ::PROTOBUF_NAMESPACE_ID::uint32 createtime() const; void set_createtime(::PROTOBUF_NAMESPACE_ID::uint32 value); private: ::PROTOBUF_NAMESPACE_ID::uint32 _internal_createtime() const; void _internal_set_createtime(::PROTOBUF_NAMESPACE_ID::uint32 value); public: // @@protoc_insertion_point(class_scope:relation.relation_item) private: class _Internal; ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr relationname_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr page_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr nickname_; ::PROTOBUF_NAMESPACE_ID::uint64 relationid_; ::PROTOBUF_NAMESPACE_ID::uint32 level_; ::PROTOBUF_NAMESPACE_ID::uint32 career_; ::PROTOBUF_NAMESPACE_ID::uint32 type_; ::PROTOBUF_NAMESPACE_ID::uint32 status_; ::PROTOBUF_NAMESPACE_ID::uint32 love_degree_; ::PROTOBUF_NAMESPACE_ID::uint32 lastchattime_; ::PROTOBUF_NAMESPACE_ID::uint32 offlinetime_; ::PROTOBUF_NAMESPACE_ID::uint32 headpic_; ::PROTOBUF_NAMESPACE_ID::uint32 viplevel_; ::PROTOBUF_NAMESPACE_ID::uint32 power_; ::PROTOBUF_NAMESPACE_ID::uint32 friendrate_; ::PROTOBUF_NAMESPACE_ID::uint32 createtime_; friend struct ::TableStruct_relation_2eproto; }; // ------------------------------------------------------------------- class MSG_Ret_RelationList_SC : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:relation.MSG_Ret_RelationList_SC) */ { public: MSG_Ret_RelationList_SC(); virtual ~MSG_Ret_RelationList_SC(); MSG_Ret_RelationList_SC(const MSG_Ret_RelationList_SC& from); MSG_Ret_RelationList_SC(MSG_Ret_RelationList_SC&& from) noexcept : MSG_Ret_RelationList_SC() { *this = ::std::move(from); } inline MSG_Ret_RelationList_SC& operator=(const MSG_Ret_RelationList_SC& from) { CopyFrom(from); return *this; } inline MSG_Ret_RelationList_SC& operator=(MSG_Ret_RelationList_SC&& from) noexcept { if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { if (this != &from) InternalSwap(&from); } else { CopyFrom(from); } return *this; } inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { return _internal_metadata_.unknown_fields(); } inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { return _internal_metadata_.mutable_unknown_fields(); } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return GetMetadataStatic().descriptor; } static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return GetMetadataStatic().reflection; } static const MSG_Ret_RelationList_SC& default_instance(); static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const MSG_Ret_RelationList_SC* internal_default_instance() { return reinterpret_cast<const MSG_Ret_RelationList_SC*>( &_MSG_Ret_RelationList_SC_default_instance_); } static constexpr int kIndexInFileMessages = 1; friend void swap(MSG_Ret_RelationList_SC& a, MSG_Ret_RelationList_SC& b) { a.Swap(&b); } inline void Swap(MSG_Ret_RelationList_SC* other) { if (other == this) return; InternalSwap(other); } // implements Message ---------------------------------------------- inline MSG_Ret_RelationList_SC* New() const final { return CreateMaybeMessage<MSG_Ret_RelationList_SC>(nullptr); } MSG_Ret_RelationList_SC* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { return CreateMaybeMessage<MSG_Ret_RelationList_SC>(arena); } void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; void CopyFrom(const MSG_Ret_RelationList_SC& from); void MergeFrom(const MSG_Ret_RelationList_SC& from); PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; size_t ByteSizeLong() const final; const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; int GetCachedSize() const final { return _cached_size_.Get(); } private: inline void SharedCtor(); inline void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(MSG_Ret_RelationList_SC* other); friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { return "relation.MSG_Ret_RelationList_SC"; } private: inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { return nullptr; } inline void* MaybeArenaPtr() const { return nullptr; } public: ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; private: static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_relation_2eproto); return ::descriptor_table_relation_2eproto.file_level_metadata[kIndexInFileMessages]; } public: // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { kRelationsFieldNumber = 1, kTypeFieldNumber = 2, }; // repeated .relation.relation_item relations = 1; int relations_size() const; private: int _internal_relations_size() const; public: void clear_relations(); ::relation::relation_item* mutable_relations(int index); ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::relation::relation_item >* mutable_relations(); private: const ::relation::relation_item& _internal_relations(int index) const; ::relation::relation_item* _internal_add_relations(); public: const ::relation::relation_item& relations(int index) const; ::relation::relation_item* add_relations(); const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::relation::relation_item >& relations() const; // optional uint32 type = 2; bool has_type() const; private: bool _internal_has_type() const; public: void clear_type(); ::PROTOBUF_NAMESPACE_ID::uint32 type() const; void set_type(::PROTOBUF_NAMESPACE_ID::uint32 value); private: ::PROTOBUF_NAMESPACE_ID::uint32 _internal_type() const; void _internal_set_type(::PROTOBUF_NAMESPACE_ID::uint32 value); public: // @@protoc_insertion_point(class_scope:relation.MSG_Ret_RelationList_SC) private: class _Internal; ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::relation::relation_item > relations_; ::PROTOBUF_NAMESPACE_ID::uint32 type_; friend struct ::TableStruct_relation_2eproto; }; // ------------------------------------------------------------------- class MSG_Ret_RefreshRelation_SC : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:relation.MSG_Ret_RefreshRelation_SC) */ { public: MSG_Ret_RefreshRelation_SC(); virtual ~MSG_Ret_RefreshRelation_SC(); MSG_Ret_RefreshRelation_SC(const MSG_Ret_RefreshRelation_SC& from); MSG_Ret_RefreshRelation_SC(MSG_Ret_RefreshRelation_SC&& from) noexcept : MSG_Ret_RefreshRelation_SC() { *this = ::std::move(from); } inline MSG_Ret_RefreshRelation_SC& operator=(const MSG_Ret_RefreshRelation_SC& from) { CopyFrom(from); return *this; } inline MSG_Ret_RefreshRelation_SC& operator=(MSG_Ret_RefreshRelation_SC&& from) noexcept { if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { if (this != &from) InternalSwap(&from); } else { CopyFrom(from); } return *this; } inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { return _internal_metadata_.unknown_fields(); } inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { return _internal_metadata_.mutable_unknown_fields(); } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return GetMetadataStatic().descriptor; } static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return GetMetadataStatic().reflection; } static const MSG_Ret_RefreshRelation_SC& default_instance(); static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const MSG_Ret_RefreshRelation_SC* internal_default_instance() { return reinterpret_cast<const MSG_Ret_RefreshRelation_SC*>( &_MSG_Ret_RefreshRelation_SC_default_instance_); } static constexpr int kIndexInFileMessages = 2; friend void swap(MSG_Ret_RefreshRelation_SC& a, MSG_Ret_RefreshRelation_SC& b) { a.Swap(&b); } inline void Swap(MSG_Ret_RefreshRelation_SC* other) { if (other == this) return; InternalSwap(other); } // implements Message ---------------------------------------------- inline MSG_Ret_RefreshRelation_SC* New() const final { return CreateMaybeMessage<MSG_Ret_RefreshRelation_SC>(nullptr); } MSG_Ret_RefreshRelation_SC* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { return CreateMaybeMessage<MSG_Ret_RefreshRelation_SC>(arena); } void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; void CopyFrom(const MSG_Ret_RefreshRelation_SC& from); void MergeFrom(const MSG_Ret_RefreshRelation_SC& from); PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; size_t ByteSizeLong() const final; const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; int GetCachedSize() const final { return _cached_size_.Get(); } private: inline void SharedCtor(); inline void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(MSG_Ret_RefreshRelation_SC* other); friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { return "relation.MSG_Ret_RefreshRelation_SC"; } private: inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { return nullptr; } inline void* MaybeArenaPtr() const { return nullptr; } public: ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; private: static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_relation_2eproto); return ::descriptor_table_relation_2eproto.file_level_metadata[kIndexInFileMessages]; } public: // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { kDataFieldNumber = 1, }; // optional .relation.relation_item data = 1; bool has_data() const; private: bool _internal_has_data() const; public: void clear_data(); const ::relation::relation_item& data() const; ::relation::relation_item* release_data(); ::relation::relation_item* mutable_data(); void set_allocated_data(::relation::relation_item* data); private: const ::relation::relation_item& _internal_data() const; ::relation::relation_item* _internal_mutable_data(); public: // @@protoc_insertion_point(class_scope:relation.MSG_Ret_RefreshRelation_SC) private: class _Internal; ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; ::relation::relation_item* data_; friend struct ::TableStruct_relation_2eproto; }; // ------------------------------------------------------------------- class MSG_Req_ApplyRelation_CS : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:relation.MSG_Req_ApplyRelation_CS) */ { public: MSG_Req_ApplyRelation_CS(); virtual ~MSG_Req_ApplyRelation_CS(); MSG_Req_ApplyRelation_CS(const MSG_Req_ApplyRelation_CS& from); MSG_Req_ApplyRelation_CS(MSG_Req_ApplyRelation_CS&& from) noexcept : MSG_Req_ApplyRelation_CS() { *this = ::std::move(from); } inline MSG_Req_ApplyRelation_CS& operator=(const MSG_Req_ApplyRelation_CS& from) { CopyFrom(from); return *this; } inline MSG_Req_ApplyRelation_CS& operator=(MSG_Req_ApplyRelation_CS&& from) noexcept { if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { if (this != &from) InternalSwap(&from); } else { CopyFrom(from); } return *this; } inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { return _internal_metadata_.unknown_fields(); } inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { return _internal_metadata_.mutable_unknown_fields(); } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return GetMetadataStatic().descriptor; } static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return GetMetadataStatic().reflection; } static const MSG_Req_ApplyRelation_CS& default_instance(); static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const MSG_Req_ApplyRelation_CS* internal_default_instance() { return reinterpret_cast<const MSG_Req_ApplyRelation_CS*>( &_MSG_Req_ApplyRelation_CS_default_instance_); } static constexpr int kIndexInFileMessages = 3; friend void swap(MSG_Req_ApplyRelation_CS& a, MSG_Req_ApplyRelation_CS& b) { a.Swap(&b); } inline void Swap(MSG_Req_ApplyRelation_CS* other) { if (other == this) return; InternalSwap(other); } // implements Message ---------------------------------------------- inline MSG_Req_ApplyRelation_CS* New() const final { return CreateMaybeMessage<MSG_Req_ApplyRelation_CS>(nullptr); } MSG_Req_ApplyRelation_CS* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { return CreateMaybeMessage<MSG_Req_ApplyRelation_CS>(arena); } void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; void CopyFrom(const MSG_Req_ApplyRelation_CS& from); void MergeFrom(const MSG_Req_ApplyRelation_CS& from); PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; size_t ByteSizeLong() const final; const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; int GetCachedSize() const final { return _cached_size_.Get(); } private: inline void SharedCtor(); inline void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(MSG_Req_ApplyRelation_CS* other); friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { return "relation.MSG_Req_ApplyRelation_CS"; } private: inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { return nullptr; } inline void* MaybeArenaPtr() const { return nullptr; } public: ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; private: static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_relation_2eproto); return ::descriptor_table_relation_2eproto.file_level_metadata[kIndexInFileMessages]; } public: // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { kRelationidFieldNumber = 1, }; // optional uint64 relationid = 1; bool has_relationid() const; private: bool _internal_has_relationid() const; public: void clear_relationid(); ::PROTOBUF_NAMESPACE_ID::uint64 relationid() const; void set_relationid(::PROTOBUF_NAMESPACE_ID::uint64 value); private: ::PROTOBUF_NAMESPACE_ID::uint64 _internal_relationid() const; void _internal_set_relationid(::PROTOBUF_NAMESPACE_ID::uint64 value); public: // @@protoc_insertion_point(class_scope:relation.MSG_Req_ApplyRelation_CS) private: class _Internal; ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; ::PROTOBUF_NAMESPACE_ID::uint64 relationid_; friend struct ::TableStruct_relation_2eproto; }; // ------------------------------------------------------------------- class MSG_Req_AnswerApplyRelation_CS : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:relation.MSG_Req_AnswerApplyRelation_CS) */ { public: MSG_Req_AnswerApplyRelation_CS(); virtual ~MSG_Req_AnswerApplyRelation_CS(); MSG_Req_AnswerApplyRelation_CS(const MSG_Req_AnswerApplyRelation_CS& from); MSG_Req_AnswerApplyRelation_CS(MSG_Req_AnswerApplyRelation_CS&& from) noexcept : MSG_Req_AnswerApplyRelation_CS() { *this = ::std::move(from); } inline MSG_Req_AnswerApplyRelation_CS& operator=(const MSG_Req_AnswerApplyRelation_CS& from) { CopyFrom(from); return *this; } inline MSG_Req_AnswerApplyRelation_CS& operator=(MSG_Req_AnswerApplyRelation_CS&& from) noexcept { if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { if (this != &from) InternalSwap(&from); } else { CopyFrom(from); } return *this; } inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { return _internal_metadata_.unknown_fields(); } inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { return _internal_metadata_.mutable_unknown_fields(); } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return GetMetadataStatic().descriptor; } static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return GetMetadataStatic().reflection; } static const MSG_Req_AnswerApplyRelation_CS& default_instance(); static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const MSG_Req_AnswerApplyRelation_CS* internal_default_instance() { return reinterpret_cast<const MSG_Req_AnswerApplyRelation_CS*>( &_MSG_Req_AnswerApplyRelation_CS_default_instance_); } static constexpr int kIndexInFileMessages = 4; friend void swap(MSG_Req_AnswerApplyRelation_CS& a, MSG_Req_AnswerApplyRelation_CS& b) { a.Swap(&b); } inline void Swap(MSG_Req_AnswerApplyRelation_CS* other) { if (other == this) return; InternalSwap(other); } // implements Message ---------------------------------------------- inline MSG_Req_AnswerApplyRelation_CS* New() const final { return CreateMaybeMessage<MSG_Req_AnswerApplyRelation_CS>(nullptr); } MSG_Req_AnswerApplyRelation_CS* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { return CreateMaybeMessage<MSG_Req_AnswerApplyRelation_CS>(arena); } void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; void CopyFrom(const MSG_Req_AnswerApplyRelation_CS& from); void MergeFrom(const MSG_Req_AnswerApplyRelation_CS& from); PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; size_t ByteSizeLong() const final; const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; int GetCachedSize() const final { return _cached_size_.Get(); } private: inline void SharedCtor(); inline void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(MSG_Req_AnswerApplyRelation_CS* other); friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { return "relation.MSG_Req_AnswerApplyRelation_CS"; } private: inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { return nullptr; } inline void* MaybeArenaPtr() const { return nullptr; } public: ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; private: static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_relation_2eproto); return ::descriptor_table_relation_2eproto.file_level_metadata[kIndexInFileMessages]; } public: // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { kRelationidFieldNumber = 1, kTypeFieldNumber = 2, }; // optional uint64 relationid = 1; bool has_relationid() const; private: bool _internal_has_relationid() const; public: void clear_relationid(); ::PROTOBUF_NAMESPACE_ID::uint64 relationid() const; void set_relationid(::PROTOBUF_NAMESPACE_ID::uint64 value); private: ::PROTOBUF_NAMESPACE_ID::uint64 _internal_relationid() const; void _internal_set_relationid(::PROTOBUF_NAMESPACE_ID::uint64 value); public: // optional uint32 type = 2; bool has_type() const; private: bool _internal_has_type() const; public: void clear_type(); ::PROTOBUF_NAMESPACE_ID::uint32 type() const; void set_type(::PROTOBUF_NAMESPACE_ID::uint32 value); private: ::PROTOBUF_NAMESPACE_ID::uint32 _internal_type() const; void _internal_set_type(::PROTOBUF_NAMESPACE_ID::uint32 value); public: // @@protoc_insertion_point(class_scope:relation.MSG_Req_AnswerApplyRelation_CS) private: class _Internal; ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; ::PROTOBUF_NAMESPACE_ID::uint64 relationid_; ::PROTOBUF_NAMESPACE_ID::uint32 type_; friend struct ::TableStruct_relation_2eproto; }; // ------------------------------------------------------------------- class MSG_Ret_AnswerApplyRelation_SC : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:relation.MSG_Ret_AnswerApplyRelation_SC) */ { public: MSG_Ret_AnswerApplyRelation_SC(); virtual ~MSG_Ret_AnswerApplyRelation_SC(); MSG_Ret_AnswerApplyRelation_SC(const MSG_Ret_AnswerApplyRelation_SC& from); MSG_Ret_AnswerApplyRelation_SC(MSG_Ret_AnswerApplyRelation_SC&& from) noexcept : MSG_Ret_AnswerApplyRelation_SC() { *this = ::std::move(from); } inline MSG_Ret_AnswerApplyRelation_SC& operator=(const MSG_Ret_AnswerApplyRelation_SC& from) { CopyFrom(from); return *this; } inline MSG_Ret_AnswerApplyRelation_SC& operator=(MSG_Ret_AnswerApplyRelation_SC&& from) noexcept { if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { if (this != &from) InternalSwap(&from); } else { CopyFrom(from); } return *this; } inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { return _internal_metadata_.unknown_fields(); } inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { return _internal_metadata_.mutable_unknown_fields(); } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return GetMetadataStatic().descriptor; } static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return GetMetadataStatic().reflection; } static const MSG_Ret_AnswerApplyRelation_SC& default_instance(); static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const MSG_Ret_AnswerApplyRelation_SC* internal_default_instance() { return reinterpret_cast<const MSG_Ret_AnswerApplyRelation_SC*>( &_MSG_Ret_AnswerApplyRelation_SC_default_instance_); } static constexpr int kIndexInFileMessages = 5; friend void swap(MSG_Ret_AnswerApplyRelation_SC& a, MSG_Ret_AnswerApplyRelation_SC& b) { a.Swap(&b); } inline void Swap(MSG_Ret_AnswerApplyRelation_SC* other) { if (other == this) return; InternalSwap(other); } // implements Message ---------------------------------------------- inline MSG_Ret_AnswerApplyRelation_SC* New() const final { return CreateMaybeMessage<MSG_Ret_AnswerApplyRelation_SC>(nullptr); } MSG_Ret_AnswerApplyRelation_SC* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { return CreateMaybeMessage<MSG_Ret_AnswerApplyRelation_SC>(arena); } void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; void CopyFrom(const MSG_Ret_AnswerApplyRelation_SC& from); void MergeFrom(const MSG_Ret_AnswerApplyRelation_SC& from); PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; size_t ByteSizeLong() const final; const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; int GetCachedSize() const final { return _cached_size_.Get(); } private: inline void SharedCtor(); inline void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(MSG_Ret_AnswerApplyRelation_SC* other); friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { return "relation.MSG_Ret_AnswerApplyRelation_SC"; } private: inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { return nullptr; } inline void* MaybeArenaPtr() const { return nullptr; } public: ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; private: static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_relation_2eproto); return ::descriptor_table_relation_2eproto.file_level_metadata[kIndexInFileMessages]; } public: // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { kRelationidFieldNumber = 1, kIssuccFieldNumber = 2, }; // optional uint64 relationid = 1; bool has_relationid() const; private: bool _internal_has_relationid() const; public: void clear_relationid(); ::PROTOBUF_NAMESPACE_ID::uint64 relationid() const; void set_relationid(::PROTOBUF_NAMESPACE_ID::uint64 value); private: ::PROTOBUF_NAMESPACE_ID::uint64 _internal_relationid() const; void _internal_set_relationid(::PROTOBUF_NAMESPACE_ID::uint64 value); public: // optional bool issucc = 2; bool has_issucc() const; private: bool _internal_has_issucc() const; public: void clear_issucc(); bool issucc() const; void set_issucc(bool value); private: bool _internal_issucc() const; void _internal_set_issucc(bool value); public: // @@protoc_insertion_point(class_scope:relation.MSG_Ret_AnswerApplyRelation_SC) private: class _Internal; ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; ::PROTOBUF_NAMESPACE_ID::uint64 relationid_; bool issucc_; friend struct ::TableStruct_relation_2eproto; }; // ------------------------------------------------------------------- class MSG_Req_DeleteRelation_CS : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:relation.MSG_Req_DeleteRelation_CS) */ { public: MSG_Req_DeleteRelation_CS(); virtual ~MSG_Req_DeleteRelation_CS(); MSG_Req_DeleteRelation_CS(const MSG_Req_DeleteRelation_CS& from); MSG_Req_DeleteRelation_CS(MSG_Req_DeleteRelation_CS&& from) noexcept : MSG_Req_DeleteRelation_CS() { *this = ::std::move(from); } inline MSG_Req_DeleteRelation_CS& operator=(const MSG_Req_DeleteRelation_CS& from) { CopyFrom(from); return *this; } inline MSG_Req_DeleteRelation_CS& operator=(MSG_Req_DeleteRelation_CS&& from) noexcept { if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { if (this != &from) InternalSwap(&from); } else { CopyFrom(from); } return *this; } inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { return _internal_metadata_.unknown_fields(); } inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { return _internal_metadata_.mutable_unknown_fields(); } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return GetMetadataStatic().descriptor; } static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return GetMetadataStatic().reflection; } static const MSG_Req_DeleteRelation_CS& default_instance(); static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const MSG_Req_DeleteRelation_CS* internal_default_instance() { return reinterpret_cast<const MSG_Req_DeleteRelation_CS*>( &_MSG_Req_DeleteRelation_CS_default_instance_); } static constexpr int kIndexInFileMessages = 6; friend void swap(MSG_Req_DeleteRelation_CS& a, MSG_Req_DeleteRelation_CS& b) { a.Swap(&b); } inline void Swap(MSG_Req_DeleteRelation_CS* other) { if (other == this) return; InternalSwap(other); } // implements Message ---------------------------------------------- inline MSG_Req_DeleteRelation_CS* New() const final { return CreateMaybeMessage<MSG_Req_DeleteRelation_CS>(nullptr); } MSG_Req_DeleteRelation_CS* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { return CreateMaybeMessage<MSG_Req_DeleteRelation_CS>(arena); } void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; void CopyFrom(const MSG_Req_DeleteRelation_CS& from); void MergeFrom(const MSG_Req_DeleteRelation_CS& from); PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; size_t ByteSizeLong() const final; const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; int GetCachedSize() const final { return _cached_size_.Get(); } private: inline void SharedCtor(); inline void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(MSG_Req_DeleteRelation_CS* other); friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { return "relation.MSG_Req_DeleteRelation_CS"; } private: inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { return nullptr; } inline void* MaybeArenaPtr() const { return nullptr; } public: ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; private: static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_relation_2eproto); return ::descriptor_table_relation_2eproto.file_level_metadata[kIndexInFileMessages]; } public: // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { kRelationidFieldNumber = 1, }; // optional uint64 relationid = 1; bool has_relationid() const; private: bool _internal_has_relationid() const; public: void clear_relationid(); ::PROTOBUF_NAMESPACE_ID::uint64 relationid() const; void set_relationid(::PROTOBUF_NAMESPACE_ID::uint64 value); private: ::PROTOBUF_NAMESPACE_ID::uint64 _internal_relationid() const; void _internal_set_relationid(::PROTOBUF_NAMESPACE_ID::uint64 value); public: // @@protoc_insertion_point(class_scope:relation.MSG_Req_DeleteRelation_CS) private: class _Internal; ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; ::PROTOBUF_NAMESPACE_ID::uint64 relationid_; friend struct ::TableStruct_relation_2eproto; }; // ------------------------------------------------------------------- class MSG_Ret_DeleteRelation_SC : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:relation.MSG_Ret_DeleteRelation_SC) */ { public: MSG_Ret_DeleteRelation_SC(); virtual ~MSG_Ret_DeleteRelation_SC(); MSG_Ret_DeleteRelation_SC(const MSG_Ret_DeleteRelation_SC& from); MSG_Ret_DeleteRelation_SC(MSG_Ret_DeleteRelation_SC&& from) noexcept : MSG_Ret_DeleteRelation_SC() { *this = ::std::move(from); } inline MSG_Ret_DeleteRelation_SC& operator=(const MSG_Ret_DeleteRelation_SC& from) { CopyFrom(from); return *this; } inline MSG_Ret_DeleteRelation_SC& operator=(MSG_Ret_DeleteRelation_SC&& from) noexcept { if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { if (this != &from) InternalSwap(&from); } else { CopyFrom(from); } return *this; } inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { return _internal_metadata_.unknown_fields(); } inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { return _internal_metadata_.mutable_unknown_fields(); } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return GetMetadataStatic().descriptor; } static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return GetMetadataStatic().reflection; } static const MSG_Ret_DeleteRelation_SC& default_instance(); static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const MSG_Ret_DeleteRelation_SC* internal_default_instance() { return reinterpret_cast<const MSG_Ret_DeleteRelation_SC*>( &_MSG_Ret_DeleteRelation_SC_default_instance_); } static constexpr int kIndexInFileMessages = 7; friend void swap(MSG_Ret_DeleteRelation_SC& a, MSG_Ret_DeleteRelation_SC& b) { a.Swap(&b); } inline void Swap(MSG_Ret_DeleteRelation_SC* other) { if (other == this) return; InternalSwap(other); } // implements Message ---------------------------------------------- inline MSG_Ret_DeleteRelation_SC* New() const final { return CreateMaybeMessage<MSG_Ret_DeleteRelation_SC>(nullptr); } MSG_Ret_DeleteRelation_SC* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { return CreateMaybeMessage<MSG_Ret_DeleteRelation_SC>(arena); } void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; void CopyFrom(const MSG_Ret_DeleteRelation_SC& from); void MergeFrom(const MSG_Ret_DeleteRelation_SC& from); PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; size_t ByteSizeLong() const final; const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; int GetCachedSize() const final { return _cached_size_.Get(); } private: inline void SharedCtor(); inline void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(MSG_Ret_DeleteRelation_SC* other); friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { return "relation.MSG_Ret_DeleteRelation_SC"; } private: inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { return nullptr; } inline void* MaybeArenaPtr() const { return nullptr; } public: ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; private: static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_relation_2eproto); return ::descriptor_table_relation_2eproto.file_level_metadata[kIndexInFileMessages]; } public: // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { kRelationidFieldNumber = 1, kIssuccFieldNumber = 2, }; // optional uint64 relationid = 1; bool has_relationid() const; private: bool _internal_has_relationid() const; public: void clear_relationid(); ::PROTOBUF_NAMESPACE_ID::uint64 relationid() const; void set_relationid(::PROTOBUF_NAMESPACE_ID::uint64 value); private: ::PROTOBUF_NAMESPACE_ID::uint64 _internal_relationid() const; void _internal_set_relationid(::PROTOBUF_NAMESPACE_ID::uint64 value); public: // optional bool issucc = 2; bool has_issucc() const; private: bool _internal_has_issucc() const; public: void clear_issucc(); bool issucc() const; void set_issucc(bool value); private: bool _internal_issucc() const; void _internal_set_issucc(bool value); public: // @@protoc_insertion_point(class_scope:relation.MSG_Ret_DeleteRelation_SC) private: class _Internal; ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; ::PROTOBUF_NAMESPACE_ID::uint64 relationid_; bool issucc_; friend struct ::TableStruct_relation_2eproto; }; // ------------------------------------------------------------------- class MSG_Req_OfflineInteractive_CS : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:relation.MSG_Req_OfflineInteractive_CS) */ { public: MSG_Req_OfflineInteractive_CS(); virtual ~MSG_Req_OfflineInteractive_CS(); MSG_Req_OfflineInteractive_CS(const MSG_Req_OfflineInteractive_CS& from); MSG_Req_OfflineInteractive_CS(MSG_Req_OfflineInteractive_CS&& from) noexcept : MSG_Req_OfflineInteractive_CS() { *this = ::std::move(from); } inline MSG_Req_OfflineInteractive_CS& operator=(const MSG_Req_OfflineInteractive_CS& from) { CopyFrom(from); return *this; } inline MSG_Req_OfflineInteractive_CS& operator=(MSG_Req_OfflineInteractive_CS&& from) noexcept { if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { if (this != &from) InternalSwap(&from); } else { CopyFrom(from); } return *this; } inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { return _internal_metadata_.unknown_fields(); } inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { return _internal_metadata_.mutable_unknown_fields(); } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return GetMetadataStatic().descriptor; } static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return GetMetadataStatic().reflection; } static const MSG_Req_OfflineInteractive_CS& default_instance(); static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const MSG_Req_OfflineInteractive_CS* internal_default_instance() { return reinterpret_cast<const MSG_Req_OfflineInteractive_CS*>( &_MSG_Req_OfflineInteractive_CS_default_instance_); } static constexpr int kIndexInFileMessages = 8; friend void swap(MSG_Req_OfflineInteractive_CS& a, MSG_Req_OfflineInteractive_CS& b) { a.Swap(&b); } inline void Swap(MSG_Req_OfflineInteractive_CS* other) { if (other == this) return; InternalSwap(other); } // implements Message ---------------------------------------------- inline MSG_Req_OfflineInteractive_CS* New() const final { return CreateMaybeMessage<MSG_Req_OfflineInteractive_CS>(nullptr); } MSG_Req_OfflineInteractive_CS* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { return CreateMaybeMessage<MSG_Req_OfflineInteractive_CS>(arena); } void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; void CopyFrom(const MSG_Req_OfflineInteractive_CS& from); void MergeFrom(const MSG_Req_OfflineInteractive_CS& from); PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; size_t ByteSizeLong() const final; const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; int GetCachedSize() const final { return _cached_size_.Get(); } private: inline void SharedCtor(); inline void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(MSG_Req_OfflineInteractive_CS* other); friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { return "relation.MSG_Req_OfflineInteractive_CS"; } private: inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { return nullptr; } inline void* MaybeArenaPtr() const { return nullptr; } public: ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; private: static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_relation_2eproto); return ::descriptor_table_relation_2eproto.file_level_metadata[kIndexInFileMessages]; } public: // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- // @@protoc_insertion_point(class_scope:relation.MSG_Req_OfflineInteractive_CS) private: class _Internal; ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_relation_2eproto; }; // ------------------------------------------------------------------- class MSG_Ret_AddInteractive_SC : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:relation.MSG_Ret_AddInteractive_SC) */ { public: MSG_Ret_AddInteractive_SC(); virtual ~MSG_Ret_AddInteractive_SC(); MSG_Ret_AddInteractive_SC(const MSG_Ret_AddInteractive_SC& from); MSG_Ret_AddInteractive_SC(MSG_Ret_AddInteractive_SC&& from) noexcept : MSG_Ret_AddInteractive_SC() { *this = ::std::move(from); } inline MSG_Ret_AddInteractive_SC& operator=(const MSG_Ret_AddInteractive_SC& from) { CopyFrom(from); return *this; } inline MSG_Ret_AddInteractive_SC& operator=(MSG_Ret_AddInteractive_SC&& from) noexcept { if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { if (this != &from) InternalSwap(&from); } else { CopyFrom(from); } return *this; } inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { return _internal_metadata_.unknown_fields(); } inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { return _internal_metadata_.mutable_unknown_fields(); } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return GetMetadataStatic().descriptor; } static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return GetMetadataStatic().reflection; } static const MSG_Ret_AddInteractive_SC& default_instance(); static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const MSG_Ret_AddInteractive_SC* internal_default_instance() { return reinterpret_cast<const MSG_Ret_AddInteractive_SC*>( &_MSG_Ret_AddInteractive_SC_default_instance_); } static constexpr int kIndexInFileMessages = 9; friend void swap(MSG_Ret_AddInteractive_SC& a, MSG_Ret_AddInteractive_SC& b) { a.Swap(&b); } inline void Swap(MSG_Ret_AddInteractive_SC* other) { if (other == this) return; InternalSwap(other); } // implements Message ---------------------------------------------- inline MSG_Ret_AddInteractive_SC* New() const final { return CreateMaybeMessage<MSG_Ret_AddInteractive_SC>(nullptr); } MSG_Ret_AddInteractive_SC* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { return CreateMaybeMessage<MSG_Ret_AddInteractive_SC>(arena); } void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; void CopyFrom(const MSG_Ret_AddInteractive_SC& from); void MergeFrom(const MSG_Ret_AddInteractive_SC& from); PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; size_t ByteSizeLong() const final; const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; int GetCachedSize() const final { return _cached_size_.Get(); } private: inline void SharedCtor(); inline void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(MSG_Ret_AddInteractive_SC* other); friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { return "relation.MSG_Ret_AddInteractive_SC"; } private: inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { return nullptr; } inline void* MaybeArenaPtr() const { return nullptr; } public: ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; private: static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_relation_2eproto); return ::descriptor_table_relation_2eproto.file_level_metadata[kIndexInFileMessages]; } public: // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { kDataFieldNumber = 1, }; // repeated .relation.relation_item data = 1; int data_size() const; private: int _internal_data_size() const; public: void clear_data(); ::relation::relation_item* mutable_data(int index); ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::relation::relation_item >* mutable_data(); private: const ::relation::relation_item& _internal_data(int index) const; ::relation::relation_item* _internal_add_data(); public: const ::relation::relation_item& data(int index) const; ::relation::relation_item* add_data(); const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::relation::relation_item >& data() const; // @@protoc_insertion_point(class_scope:relation.MSG_Ret_AddInteractive_SC) private: class _Internal; ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::relation::relation_item > data_; friend struct ::TableStruct_relation_2eproto; }; // ------------------------------------------------------------------- class MSG_Req_SearchRelation_CS : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:relation.MSG_Req_SearchRelation_CS) */ { public: MSG_Req_SearchRelation_CS(); virtual ~MSG_Req_SearchRelation_CS(); MSG_Req_SearchRelation_CS(const MSG_Req_SearchRelation_CS& from); MSG_Req_SearchRelation_CS(MSG_Req_SearchRelation_CS&& from) noexcept : MSG_Req_SearchRelation_CS() { *this = ::std::move(from); } inline MSG_Req_SearchRelation_CS& operator=(const MSG_Req_SearchRelation_CS& from) { CopyFrom(from); return *this; } inline MSG_Req_SearchRelation_CS& operator=(MSG_Req_SearchRelation_CS&& from) noexcept { if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { if (this != &from) InternalSwap(&from); } else { CopyFrom(from); } return *this; } inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { return _internal_metadata_.unknown_fields(); } inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { return _internal_metadata_.mutable_unknown_fields(); } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return GetMetadataStatic().descriptor; } static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return GetMetadataStatic().reflection; } static const MSG_Req_SearchRelation_CS& default_instance(); static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const MSG_Req_SearchRelation_CS* internal_default_instance() { return reinterpret_cast<const MSG_Req_SearchRelation_CS*>( &_MSG_Req_SearchRelation_CS_default_instance_); } static constexpr int kIndexInFileMessages = 10; friend void swap(MSG_Req_SearchRelation_CS& a, MSG_Req_SearchRelation_CS& b) { a.Swap(&b); } inline void Swap(MSG_Req_SearchRelation_CS* other) { if (other == this) return; InternalSwap(other); } // implements Message ---------------------------------------------- inline MSG_Req_SearchRelation_CS* New() const final { return CreateMaybeMessage<MSG_Req_SearchRelation_CS>(nullptr); } MSG_Req_SearchRelation_CS* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { return CreateMaybeMessage<MSG_Req_SearchRelation_CS>(arena); } void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; void CopyFrom(const MSG_Req_SearchRelation_CS& from); void MergeFrom(const MSG_Req_SearchRelation_CS& from); PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; size_t ByteSizeLong() const final; const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; int GetCachedSize() const final { return _cached_size_.Get(); } private: inline void SharedCtor(); inline void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(MSG_Req_SearchRelation_CS* other); friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { return "relation.MSG_Req_SearchRelation_CS"; } private: inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { return nullptr; } inline void* MaybeArenaPtr() const { return nullptr; } public: ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; private: static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_relation_2eproto); return ::descriptor_table_relation_2eproto.file_level_metadata[kIndexInFileMessages]; } public: // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { kConditionFieldNumber = 1, }; // optional string condition = 1; bool has_condition() const; private: bool _internal_has_condition() const; public: void clear_condition(); const std::string& condition() const; void set_condition(const std::string& value); void set_condition(std::string&& value); void set_condition(const char* value); void set_condition(const char* value, size_t size); std::string* mutable_condition(); std::string* release_condition(); void set_allocated_condition(std::string* condition); private: const std::string& _internal_condition() const; void _internal_set_condition(const std::string& value); std::string* _internal_mutable_condition(); public: // @@protoc_insertion_point(class_scope:relation.MSG_Req_SearchRelation_CS) private: class _Internal; ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr condition_; friend struct ::TableStruct_relation_2eproto; }; // ------------------------------------------------------------------- class MSG_Ret_SearchRelation_SC : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:relation.MSG_Ret_SearchRelation_SC) */ { public: MSG_Ret_SearchRelation_SC(); virtual ~MSG_Ret_SearchRelation_SC(); MSG_Ret_SearchRelation_SC(const MSG_Ret_SearchRelation_SC& from); MSG_Ret_SearchRelation_SC(MSG_Ret_SearchRelation_SC&& from) noexcept : MSG_Ret_SearchRelation_SC() { *this = ::std::move(from); } inline MSG_Ret_SearchRelation_SC& operator=(const MSG_Ret_SearchRelation_SC& from) { CopyFrom(from); return *this; } inline MSG_Ret_SearchRelation_SC& operator=(MSG_Ret_SearchRelation_SC&& from) noexcept { if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { if (this != &from) InternalSwap(&from); } else { CopyFrom(from); } return *this; } inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { return _internal_metadata_.unknown_fields(); } inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { return _internal_metadata_.mutable_unknown_fields(); } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return GetMetadataStatic().descriptor; } static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return GetMetadataStatic().reflection; } static const MSG_Ret_SearchRelation_SC& default_instance(); static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const MSG_Ret_SearchRelation_SC* internal_default_instance() { return reinterpret_cast<const MSG_Ret_SearchRelation_SC*>( &_MSG_Ret_SearchRelation_SC_default_instance_); } static constexpr int kIndexInFileMessages = 11; friend void swap(MSG_Ret_SearchRelation_SC& a, MSG_Ret_SearchRelation_SC& b) { a.Swap(&b); } inline void Swap(MSG_Ret_SearchRelation_SC* other) { if (other == this) return; InternalSwap(other); } // implements Message ---------------------------------------------- inline MSG_Ret_SearchRelation_SC* New() const final { return CreateMaybeMessage<MSG_Ret_SearchRelation_SC>(nullptr); } MSG_Ret_SearchRelation_SC* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { return CreateMaybeMessage<MSG_Ret_SearchRelation_SC>(arena); } void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; void CopyFrom(const MSG_Ret_SearchRelation_SC& from); void MergeFrom(const MSG_Ret_SearchRelation_SC& from); PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; size_t ByteSizeLong() const final; const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; int GetCachedSize() const final { return _cached_size_.Get(); } private: inline void SharedCtor(); inline void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(MSG_Ret_SearchRelation_SC* other); friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { return "relation.MSG_Ret_SearchRelation_SC"; } private: inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { return nullptr; } inline void* MaybeArenaPtr() const { return nullptr; } public: ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; private: static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_relation_2eproto); return ::descriptor_table_relation_2eproto.file_level_metadata[kIndexInFileMessages]; } public: // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { kRelationFieldNumber = 1, }; // optional .relation.relation_item relation = 1; bool has_relation() const; private: bool _internal_has_relation() const; public: void clear_relation(); const ::relation::relation_item& relation() const; ::relation::relation_item* release_relation(); ::relation::relation_item* mutable_relation(); void set_allocated_relation(::relation::relation_item* relation); private: const ::relation::relation_item& _internal_relation() const; ::relation::relation_item* _internal_mutable_relation(); public: // @@protoc_insertion_point(class_scope:relation.MSG_Ret_SearchRelation_SC) private: class _Internal; ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; ::relation::relation_item* relation_; friend struct ::TableStruct_relation_2eproto; }; // ------------------------------------------------------------------- class MSG_ModifyPageName_CSC : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:relation.MSG_ModifyPageName_CSC) */ { public: MSG_ModifyPageName_CSC(); virtual ~MSG_ModifyPageName_CSC(); MSG_ModifyPageName_CSC(const MSG_ModifyPageName_CSC& from); MSG_ModifyPageName_CSC(MSG_ModifyPageName_CSC&& from) noexcept : MSG_ModifyPageName_CSC() { *this = ::std::move(from); } inline MSG_ModifyPageName_CSC& operator=(const MSG_ModifyPageName_CSC& from) { CopyFrom(from); return *this; } inline MSG_ModifyPageName_CSC& operator=(MSG_ModifyPageName_CSC&& from) noexcept { if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { if (this != &from) InternalSwap(&from); } else { CopyFrom(from); } return *this; } inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { return _internal_metadata_.unknown_fields(); } inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { return _internal_metadata_.mutable_unknown_fields(); } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return GetMetadataStatic().descriptor; } static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return GetMetadataStatic().reflection; } static const MSG_ModifyPageName_CSC& default_instance(); static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const MSG_ModifyPageName_CSC* internal_default_instance() { return reinterpret_cast<const MSG_ModifyPageName_CSC*>( &_MSG_ModifyPageName_CSC_default_instance_); } static constexpr int kIndexInFileMessages = 12; friend void swap(MSG_ModifyPageName_CSC& a, MSG_ModifyPageName_CSC& b) { a.Swap(&b); } inline void Swap(MSG_ModifyPageName_CSC* other) { if (other == this) return; InternalSwap(other); } // implements Message ---------------------------------------------- inline MSG_ModifyPageName_CSC* New() const final { return CreateMaybeMessage<MSG_ModifyPageName_CSC>(nullptr); } MSG_ModifyPageName_CSC* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { return CreateMaybeMessage<MSG_ModifyPageName_CSC>(arena); } void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; void CopyFrom(const MSG_ModifyPageName_CSC& from); void MergeFrom(const MSG_ModifyPageName_CSC& from); PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; size_t ByteSizeLong() const final; const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; int GetCachedSize() const final { return _cached_size_.Get(); } private: inline void SharedCtor(); inline void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(MSG_ModifyPageName_CSC* other); friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { return "relation.MSG_ModifyPageName_CSC"; } private: inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { return nullptr; } inline void* MaybeArenaPtr() const { return nullptr; } public: ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; private: static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_relation_2eproto); return ::descriptor_table_relation_2eproto.file_level_metadata[kIndexInFileMessages]; } public: // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { kPageFieldNumber = 1, kNewPageFieldNumber = 2, kOpcodeFieldNumber = 3, kSuccessFieldNumber = 4, }; // optional string page = 1; bool has_page() const; private: bool _internal_has_page() const; public: void clear_page(); const std::string& page() const; void set_page(const std::string& value); void set_page(std::string&& value); void set_page(const char* value); void set_page(const char* value, size_t size); std::string* mutable_page(); std::string* release_page(); void set_allocated_page(std::string* page); private: const std::string& _internal_page() const; void _internal_set_page(const std::string& value); std::string* _internal_mutable_page(); public: // optional string new_page = 2; bool has_new_page() const; private: bool _internal_has_new_page() const; public: void clear_new_page(); const std::string& new_page() const; void set_new_page(const std::string& value); void set_new_page(std::string&& value); void set_new_page(const char* value); void set_new_page(const char* value, size_t size); std::string* mutable_new_page(); std::string* release_new_page(); void set_allocated_new_page(std::string* new_page); private: const std::string& _internal_new_page() const; void _internal_set_new_page(const std::string& value); std::string* _internal_mutable_new_page(); public: // optional uint32 opcode = 3; bool has_opcode() const; private: bool _internal_has_opcode() const; public: void clear_opcode(); ::PROTOBUF_NAMESPACE_ID::uint32 opcode() const; void set_opcode(::PROTOBUF_NAMESPACE_ID::uint32 value); private: ::PROTOBUF_NAMESPACE_ID::uint32 _internal_opcode() const; void _internal_set_opcode(::PROTOBUF_NAMESPACE_ID::uint32 value); public: // optional bool success = 4; bool has_success() const; private: bool _internal_has_success() const; public: void clear_success(); bool success() const; void set_success(bool value); private: bool _internal_success() const; void _internal_set_success(bool value); public: // @@protoc_insertion_point(class_scope:relation.MSG_ModifyPageName_CSC) private: class _Internal; ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr page_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr new_page_; ::PROTOBUF_NAMESPACE_ID::uint32 opcode_; bool success_; friend struct ::TableStruct_relation_2eproto; }; // ------------------------------------------------------------------- class MSG_MoveFriendToPage_CSC : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:relation.MSG_MoveFriendToPage_CSC) */ { public: MSG_MoveFriendToPage_CSC(); virtual ~MSG_MoveFriendToPage_CSC(); MSG_MoveFriendToPage_CSC(const MSG_MoveFriendToPage_CSC& from); MSG_MoveFriendToPage_CSC(MSG_MoveFriendToPage_CSC&& from) noexcept : MSG_MoveFriendToPage_CSC() { *this = ::std::move(from); } inline MSG_MoveFriendToPage_CSC& operator=(const MSG_MoveFriendToPage_CSC& from) { CopyFrom(from); return *this; } inline MSG_MoveFriendToPage_CSC& operator=(MSG_MoveFriendToPage_CSC&& from) noexcept { if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { if (this != &from) InternalSwap(&from); } else { CopyFrom(from); } return *this; } inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { return _internal_metadata_.unknown_fields(); } inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { return _internal_metadata_.mutable_unknown_fields(); } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return GetMetadataStatic().descriptor; } static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return GetMetadataStatic().reflection; } static const MSG_MoveFriendToPage_CSC& default_instance(); static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const MSG_MoveFriendToPage_CSC* internal_default_instance() { return reinterpret_cast<const MSG_MoveFriendToPage_CSC*>( &_MSG_MoveFriendToPage_CSC_default_instance_); } static constexpr int kIndexInFileMessages = 13; friend void swap(MSG_MoveFriendToPage_CSC& a, MSG_MoveFriendToPage_CSC& b) { a.Swap(&b); } inline void Swap(MSG_MoveFriendToPage_CSC* other) { if (other == this) return; InternalSwap(other); } // implements Message ---------------------------------------------- inline MSG_MoveFriendToPage_CSC* New() const final { return CreateMaybeMessage<MSG_MoveFriendToPage_CSC>(nullptr); } MSG_MoveFriendToPage_CSC* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { return CreateMaybeMessage<MSG_MoveFriendToPage_CSC>(arena); } void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; void CopyFrom(const MSG_MoveFriendToPage_CSC& from); void MergeFrom(const MSG_MoveFriendToPage_CSC& from); PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; size_t ByteSizeLong() const final; const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; int GetCachedSize() const final { return _cached_size_.Get(); } private: inline void SharedCtor(); inline void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(MSG_MoveFriendToPage_CSC* other); friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { return "relation.MSG_MoveFriendToPage_CSC"; } private: inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { return nullptr; } inline void* MaybeArenaPtr() const { return nullptr; } public: ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; private: static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_relation_2eproto); return ::descriptor_table_relation_2eproto.file_level_metadata[kIndexInFileMessages]; } public: // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { kPageFieldNumber = 2, kCharidFieldNumber = 1, kSuccessFieldNumber = 3, }; // optional string page = 2; bool has_page() const; private: bool _internal_has_page() const; public: void clear_page(); const std::string& page() const; void set_page(const std::string& value); void set_page(std::string&& value); void set_page(const char* value); void set_page(const char* value, size_t size); std::string* mutable_page(); std::string* release_page(); void set_allocated_page(std::string* page); private: const std::string& _internal_page() const; void _internal_set_page(const std::string& value); std::string* _internal_mutable_page(); public: // optional uint64 charid = 1; bool has_charid() const; private: bool _internal_has_charid() const; public: void clear_charid(); ::PROTOBUF_NAMESPACE_ID::uint64 charid() const; void set_charid(::PROTOBUF_NAMESPACE_ID::uint64 value); private: ::PROTOBUF_NAMESPACE_ID::uint64 _internal_charid() const; void _internal_set_charid(::PROTOBUF_NAMESPACE_ID::uint64 value); public: // optional bool success = 3; bool has_success() const; private: bool _internal_has_success() const; public: void clear_success(); bool success() const; void set_success(bool value); private: bool _internal_success() const; void _internal_set_success(bool value); public: // @@protoc_insertion_point(class_scope:relation.MSG_MoveFriendToPage_CSC) private: class _Internal; ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr page_; ::PROTOBUF_NAMESPACE_ID::uint64 charid_; bool success_; friend struct ::TableStruct_relation_2eproto; }; // ------------------------------------------------------------------- class PageItem : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:relation.PageItem) */ { public: PageItem(); virtual ~PageItem(); PageItem(const PageItem& from); PageItem(PageItem&& from) noexcept : PageItem() { *this = ::std::move(from); } inline PageItem& operator=(const PageItem& from) { CopyFrom(from); return *this; } inline PageItem& operator=(PageItem&& from) noexcept { if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { if (this != &from) InternalSwap(&from); } else { CopyFrom(from); } return *this; } inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { return _internal_metadata_.unknown_fields(); } inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { return _internal_metadata_.mutable_unknown_fields(); } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return GetMetadataStatic().descriptor; } static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return GetMetadataStatic().reflection; } static const PageItem& default_instance(); static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const PageItem* internal_default_instance() { return reinterpret_cast<const PageItem*>( &_PageItem_default_instance_); } static constexpr int kIndexInFileMessages = 14; friend void swap(PageItem& a, PageItem& b) { a.Swap(&b); } inline void Swap(PageItem* other) { if (other == this) return; InternalSwap(other); } // implements Message ---------------------------------------------- inline PageItem* New() const final { return CreateMaybeMessage<PageItem>(nullptr); } PageItem* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { return CreateMaybeMessage<PageItem>(arena); } void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; void CopyFrom(const PageItem& from); void MergeFrom(const PageItem& from); PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; size_t ByteSizeLong() const final; const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; int GetCachedSize() const final { return _cached_size_.Get(); } private: inline void SharedCtor(); inline void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(PageItem* other); friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { return "relation.PageItem"; } private: inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { return nullptr; } inline void* MaybeArenaPtr() const { return nullptr; } public: ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; private: static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_relation_2eproto); return ::descriptor_table_relation_2eproto.file_level_metadata[kIndexInFileMessages]; } public: // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { kPageNameFieldNumber = 1, kCreatetimeFieldNumber = 2, }; // optional string page_name = 1; bool has_page_name() const; private: bool _internal_has_page_name() const; public: void clear_page_name(); const std::string& page_name() const; void set_page_name(const std::string& value); void set_page_name(std::string&& value); void set_page_name(const char* value); void set_page_name(const char* value, size_t size); std::string* mutable_page_name(); std::string* release_page_name(); void set_allocated_page_name(std::string* page_name); private: const std::string& _internal_page_name() const; void _internal_set_page_name(const std::string& value); std::string* _internal_mutable_page_name(); public: // optional uint32 createtime = 2; bool has_createtime() const; private: bool _internal_has_createtime() const; public: void clear_createtime(); ::PROTOBUF_NAMESPACE_ID::uint32 createtime() const; void set_createtime(::PROTOBUF_NAMESPACE_ID::uint32 value); private: ::PROTOBUF_NAMESPACE_ID::uint32 _internal_createtime() const; void _internal_set_createtime(::PROTOBUF_NAMESPACE_ID::uint32 value); public: // @@protoc_insertion_point(class_scope:relation.PageItem) private: class _Internal; ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr page_name_; ::PROTOBUF_NAMESPACE_ID::uint32 createtime_; friend struct ::TableStruct_relation_2eproto; }; // ------------------------------------------------------------------- class MSG_AllFriendPage_CSC : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:relation.MSG_AllFriendPage_CSC) */ { public: MSG_AllFriendPage_CSC(); virtual ~MSG_AllFriendPage_CSC(); MSG_AllFriendPage_CSC(const MSG_AllFriendPage_CSC& from); MSG_AllFriendPage_CSC(MSG_AllFriendPage_CSC&& from) noexcept : MSG_AllFriendPage_CSC() { *this = ::std::move(from); } inline MSG_AllFriendPage_CSC& operator=(const MSG_AllFriendPage_CSC& from) { CopyFrom(from); return *this; } inline MSG_AllFriendPage_CSC& operator=(MSG_AllFriendPage_CSC&& from) noexcept { if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { if (this != &from) InternalSwap(&from); } else { CopyFrom(from); } return *this; } inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { return _internal_metadata_.unknown_fields(); } inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { return _internal_metadata_.mutable_unknown_fields(); } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return GetMetadataStatic().descriptor; } static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return GetMetadataStatic().reflection; } static const MSG_AllFriendPage_CSC& default_instance(); static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const MSG_AllFriendPage_CSC* internal_default_instance() { return reinterpret_cast<const MSG_AllFriendPage_CSC*>( &_MSG_AllFriendPage_CSC_default_instance_); } static constexpr int kIndexInFileMessages = 15; friend void swap(MSG_AllFriendPage_CSC& a, MSG_AllFriendPage_CSC& b) { a.Swap(&b); } inline void Swap(MSG_AllFriendPage_CSC* other) { if (other == this) return; InternalSwap(other); } // implements Message ---------------------------------------------- inline MSG_AllFriendPage_CSC* New() const final { return CreateMaybeMessage<MSG_AllFriendPage_CSC>(nullptr); } MSG_AllFriendPage_CSC* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { return CreateMaybeMessage<MSG_AllFriendPage_CSC>(arena); } void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; void CopyFrom(const MSG_AllFriendPage_CSC& from); void MergeFrom(const MSG_AllFriendPage_CSC& from); PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; size_t ByteSizeLong() const final; const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; int GetCachedSize() const final { return _cached_size_.Get(); } private: inline void SharedCtor(); inline void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(MSG_AllFriendPage_CSC* other); friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { return "relation.MSG_AllFriendPage_CSC"; } private: inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { return nullptr; } inline void* MaybeArenaPtr() const { return nullptr; } public: ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; private: static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_relation_2eproto); return ::descriptor_table_relation_2eproto.file_level_metadata[kIndexInFileMessages]; } public: // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { kPagesFieldNumber = 1, }; // repeated .relation.PageItem pages = 1; int pages_size() const; private: int _internal_pages_size() const; public: void clear_pages(); ::relation::PageItem* mutable_pages(int index); ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::relation::PageItem >* mutable_pages(); private: const ::relation::PageItem& _internal_pages(int index) const; ::relation::PageItem* _internal_add_pages(); public: const ::relation::PageItem& pages(int index) const; ::relation::PageItem* add_pages(); const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::relation::PageItem >& pages() const; // @@protoc_insertion_point(class_scope:relation.MSG_AllFriendPage_CSC) private: class _Internal; ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::relation::PageItem > pages_; friend struct ::TableStruct_relation_2eproto; }; // ------------------------------------------------------------------- class BlackItem : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:relation.BlackItem) */ { public: BlackItem(); virtual ~BlackItem(); BlackItem(const BlackItem& from); BlackItem(BlackItem&& from) noexcept : BlackItem() { *this = ::std::move(from); } inline BlackItem& operator=(const BlackItem& from) { CopyFrom(from); return *this; } inline BlackItem& operator=(BlackItem&& from) noexcept { if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { if (this != &from) InternalSwap(&from); } else { CopyFrom(from); } return *this; } inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { return _internal_metadata_.unknown_fields(); } inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { return _internal_metadata_.mutable_unknown_fields(); } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return GetMetadataStatic().descriptor; } static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return GetMetadataStatic().reflection; } static const BlackItem& default_instance(); static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const BlackItem* internal_default_instance() { return reinterpret_cast<const BlackItem*>( &_BlackItem_default_instance_); } static constexpr int kIndexInFileMessages = 16; friend void swap(BlackItem& a, BlackItem& b) { a.Swap(&b); } inline void Swap(BlackItem* other) { if (other == this) return; InternalSwap(other); } // implements Message ---------------------------------------------- inline BlackItem* New() const final { return CreateMaybeMessage<BlackItem>(nullptr); } BlackItem* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { return CreateMaybeMessage<BlackItem>(arena); } void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; void CopyFrom(const BlackItem& from); void MergeFrom(const BlackItem& from); PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; size_t ByteSizeLong() const final; const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; int GetCachedSize() const final { return _cached_size_.Get(); } private: inline void SharedCtor(); inline void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(BlackItem* other); friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { return "relation.BlackItem"; } private: inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { return nullptr; } inline void* MaybeArenaPtr() const { return nullptr; } public: ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; private: static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_relation_2eproto); return ::descriptor_table_relation_2eproto.file_level_metadata[kIndexInFileMessages]; } public: // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { kNameFieldNumber = 2, kCharidFieldNumber = 1, kLevelFieldNumber = 3, kViplevelFieldNumber = 4, }; // optional string name = 2; bool has_name() const; private: bool _internal_has_name() const; public: void clear_name(); const std::string& name() const; void set_name(const std::string& value); void set_name(std::string&& value); void set_name(const char* value); void set_name(const char* value, size_t size); std::string* mutable_name(); std::string* release_name(); void set_allocated_name(std::string* name); private: const std::string& _internal_name() const; void _internal_set_name(const std::string& value); std::string* _internal_mutable_name(); public: // optional uint64 charid = 1; bool has_charid() const; private: bool _internal_has_charid() const; public: void clear_charid(); ::PROTOBUF_NAMESPACE_ID::uint64 charid() const; void set_charid(::PROTOBUF_NAMESPACE_ID::uint64 value); private: ::PROTOBUF_NAMESPACE_ID::uint64 _internal_charid() const; void _internal_set_charid(::PROTOBUF_NAMESPACE_ID::uint64 value); public: // optional uint32 level = 3; bool has_level() const; private: bool _internal_has_level() const; public: void clear_level(); ::PROTOBUF_NAMESPACE_ID::uint32 level() const; void set_level(::PROTOBUF_NAMESPACE_ID::uint32 value); private: ::PROTOBUF_NAMESPACE_ID::uint32 _internal_level() const; void _internal_set_level(::PROTOBUF_NAMESPACE_ID::uint32 value); public: // optional uint32 viplevel = 4; bool has_viplevel() const; private: bool _internal_has_viplevel() const; public: void clear_viplevel(); ::PROTOBUF_NAMESPACE_ID::uint32 viplevel() const; void set_viplevel(::PROTOBUF_NAMESPACE_ID::uint32 value); private: ::PROTOBUF_NAMESPACE_ID::uint32 _internal_viplevel() const; void _internal_set_viplevel(::PROTOBUF_NAMESPACE_ID::uint32 value); public: // @@protoc_insertion_point(class_scope:relation.BlackItem) private: class _Internal; ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; ::PROTOBUF_NAMESPACE_ID::uint64 charid_; ::PROTOBUF_NAMESPACE_ID::uint32 level_; ::PROTOBUF_NAMESPACE_ID::uint32 viplevel_; friend struct ::TableStruct_relation_2eproto; }; // ------------------------------------------------------------------- class MSG_BlackList_CSC : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:relation.MSG_BlackList_CSC) */ { public: MSG_BlackList_CSC(); virtual ~MSG_BlackList_CSC(); MSG_BlackList_CSC(const MSG_BlackList_CSC& from); MSG_BlackList_CSC(MSG_BlackList_CSC&& from) noexcept : MSG_BlackList_CSC() { *this = ::std::move(from); } inline MSG_BlackList_CSC& operator=(const MSG_BlackList_CSC& from) { CopyFrom(from); return *this; } inline MSG_BlackList_CSC& operator=(MSG_BlackList_CSC&& from) noexcept { if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { if (this != &from) InternalSwap(&from); } else { CopyFrom(from); } return *this; } inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { return _internal_metadata_.unknown_fields(); } inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { return _internal_metadata_.mutable_unknown_fields(); } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return GetMetadataStatic().descriptor; } static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return GetMetadataStatic().reflection; } static const MSG_BlackList_CSC& default_instance(); static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const MSG_BlackList_CSC* internal_default_instance() { return reinterpret_cast<const MSG_BlackList_CSC*>( &_MSG_BlackList_CSC_default_instance_); } static constexpr int kIndexInFileMessages = 17; friend void swap(MSG_BlackList_CSC& a, MSG_BlackList_CSC& b) { a.Swap(&b); } inline void Swap(MSG_BlackList_CSC* other) { if (other == this) return; InternalSwap(other); } // implements Message ---------------------------------------------- inline MSG_BlackList_CSC* New() const final { return CreateMaybeMessage<MSG_BlackList_CSC>(nullptr); } MSG_BlackList_CSC* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { return CreateMaybeMessage<MSG_BlackList_CSC>(arena); } void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; void CopyFrom(const MSG_BlackList_CSC& from); void MergeFrom(const MSG_BlackList_CSC& from); PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; size_t ByteSizeLong() const final; const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; int GetCachedSize() const final { return _cached_size_.Get(); } private: inline void SharedCtor(); inline void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(MSG_BlackList_CSC* other); friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { return "relation.MSG_BlackList_CSC"; } private: inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { return nullptr; } inline void* MaybeArenaPtr() const { return nullptr; } public: ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; private: static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_relation_2eproto); return ::descriptor_table_relation_2eproto.file_level_metadata[kIndexInFileMessages]; } public: // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { kBlackListFieldNumber = 1, }; // repeated .relation.BlackItem blackList = 1; int blacklist_size() const; private: int _internal_blacklist_size() const; public: void clear_blacklist(); ::relation::BlackItem* mutable_blacklist(int index); ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::relation::BlackItem >* mutable_blacklist(); private: const ::relation::BlackItem& _internal_blacklist(int index) const; ::relation::BlackItem* _internal_add_blacklist(); public: const ::relation::BlackItem& blacklist(int index) const; ::relation::BlackItem* add_blacklist(); const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::relation::BlackItem >& blacklist() const; // @@protoc_insertion_point(class_scope:relation.MSG_BlackList_CSC) private: class _Internal; ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::relation::BlackItem > blacklist_; friend struct ::TableStruct_relation_2eproto; }; // ------------------------------------------------------------------- class MSG_OperateBlackList_CSC : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:relation.MSG_OperateBlackList_CSC) */ { public: MSG_OperateBlackList_CSC(); virtual ~MSG_OperateBlackList_CSC(); MSG_OperateBlackList_CSC(const MSG_OperateBlackList_CSC& from); MSG_OperateBlackList_CSC(MSG_OperateBlackList_CSC&& from) noexcept : MSG_OperateBlackList_CSC() { *this = ::std::move(from); } inline MSG_OperateBlackList_CSC& operator=(const MSG_OperateBlackList_CSC& from) { CopyFrom(from); return *this; } inline MSG_OperateBlackList_CSC& operator=(MSG_OperateBlackList_CSC&& from) noexcept { if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { if (this != &from) InternalSwap(&from); } else { CopyFrom(from); } return *this; } inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { return _internal_metadata_.unknown_fields(); } inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { return _internal_metadata_.mutable_unknown_fields(); } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return GetMetadataStatic().descriptor; } static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return GetMetadataStatic().reflection; } static const MSG_OperateBlackList_CSC& default_instance(); static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const MSG_OperateBlackList_CSC* internal_default_instance() { return reinterpret_cast<const MSG_OperateBlackList_CSC*>( &_MSG_OperateBlackList_CSC_default_instance_); } static constexpr int kIndexInFileMessages = 18; friend void swap(MSG_OperateBlackList_CSC& a, MSG_OperateBlackList_CSC& b) { a.Swap(&b); } inline void Swap(MSG_OperateBlackList_CSC* other) { if (other == this) return; InternalSwap(other); } // implements Message ---------------------------------------------- inline MSG_OperateBlackList_CSC* New() const final { return CreateMaybeMessage<MSG_OperateBlackList_CSC>(nullptr); } MSG_OperateBlackList_CSC* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { return CreateMaybeMessage<MSG_OperateBlackList_CSC>(arena); } void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; void CopyFrom(const MSG_OperateBlackList_CSC& from); void MergeFrom(const MSG_OperateBlackList_CSC& from); PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; size_t ByteSizeLong() const final; const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; int GetCachedSize() const final { return _cached_size_.Get(); } private: inline void SharedCtor(); inline void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(MSG_OperateBlackList_CSC* other); friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { return "relation.MSG_OperateBlackList_CSC"; } private: inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { return nullptr; } inline void* MaybeArenaPtr() const { return nullptr; } public: ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; private: static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_relation_2eproto); return ::descriptor_table_relation_2eproto.file_level_metadata[kIndexInFileMessages]; } public: // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { kDataFieldNumber = 3, kCharidFieldNumber = 1, kOpcodeFieldNumber = 2, kSuccessFieldNumber = 4, }; // optional .relation.BlackItem data = 3; bool has_data() const; private: bool _internal_has_data() const; public: void clear_data(); const ::relation::BlackItem& data() const; ::relation::BlackItem* release_data(); ::relation::BlackItem* mutable_data(); void set_allocated_data(::relation::BlackItem* data); private: const ::relation::BlackItem& _internal_data() const; ::relation::BlackItem* _internal_mutable_data(); public: // optional uint64 charid = 1; bool has_charid() const; private: bool _internal_has_charid() const; public: void clear_charid(); ::PROTOBUF_NAMESPACE_ID::uint64 charid() const; void set_charid(::PROTOBUF_NAMESPACE_ID::uint64 value); private: ::PROTOBUF_NAMESPACE_ID::uint64 _internal_charid() const; void _internal_set_charid(::PROTOBUF_NAMESPACE_ID::uint64 value); public: // optional uint32 opcode = 2; bool has_opcode() const; private: bool _internal_has_opcode() const; public: void clear_opcode(); ::PROTOBUF_NAMESPACE_ID::uint32 opcode() const; void set_opcode(::PROTOBUF_NAMESPACE_ID::uint32 value); private: ::PROTOBUF_NAMESPACE_ID::uint32 _internal_opcode() const; void _internal_set_opcode(::PROTOBUF_NAMESPACE_ID::uint32 value); public: // optional bool success = 4; bool has_success() const; private: bool _internal_has_success() const; public: void clear_success(); bool success() const; void set_success(bool value); private: bool _internal_success() const; void _internal_set_success(bool value); public: // @@protoc_insertion_point(class_scope:relation.MSG_OperateBlackList_CSC) private: class _Internal; ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; ::relation::BlackItem* data_; ::PROTOBUF_NAMESPACE_ID::uint64 charid_; ::PROTOBUF_NAMESPACE_ID::uint32 opcode_; bool success_; friend struct ::TableStruct_relation_2eproto; }; // ------------------------------------------------------------------- class MSG_ChangeNickName_CSC : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:relation.MSG_ChangeNickName_CSC) */ { public: MSG_ChangeNickName_CSC(); virtual ~MSG_ChangeNickName_CSC(); MSG_ChangeNickName_CSC(const MSG_ChangeNickName_CSC& from); MSG_ChangeNickName_CSC(MSG_ChangeNickName_CSC&& from) noexcept : MSG_ChangeNickName_CSC() { *this = ::std::move(from); } inline MSG_ChangeNickName_CSC& operator=(const MSG_ChangeNickName_CSC& from) { CopyFrom(from); return *this; } inline MSG_ChangeNickName_CSC& operator=(MSG_ChangeNickName_CSC&& from) noexcept { if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { if (this != &from) InternalSwap(&from); } else { CopyFrom(from); } return *this; } inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { return _internal_metadata_.unknown_fields(); } inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { return _internal_metadata_.mutable_unknown_fields(); } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return GetMetadataStatic().descriptor; } static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return GetMetadataStatic().reflection; } static const MSG_ChangeNickName_CSC& default_instance(); static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const MSG_ChangeNickName_CSC* internal_default_instance() { return reinterpret_cast<const MSG_ChangeNickName_CSC*>( &_MSG_ChangeNickName_CSC_default_instance_); } static constexpr int kIndexInFileMessages = 19; friend void swap(MSG_ChangeNickName_CSC& a, MSG_ChangeNickName_CSC& b) { a.Swap(&b); } inline void Swap(MSG_ChangeNickName_CSC* other) { if (other == this) return; InternalSwap(other); } // implements Message ---------------------------------------------- inline MSG_ChangeNickName_CSC* New() const final { return CreateMaybeMessage<MSG_ChangeNickName_CSC>(nullptr); } MSG_ChangeNickName_CSC* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { return CreateMaybeMessage<MSG_ChangeNickName_CSC>(arena); } void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; void CopyFrom(const MSG_ChangeNickName_CSC& from); void MergeFrom(const MSG_ChangeNickName_CSC& from); PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; size_t ByteSizeLong() const final; const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; int GetCachedSize() const final { return _cached_size_.Get(); } private: inline void SharedCtor(); inline void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(MSG_ChangeNickName_CSC* other); friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { return "relation.MSG_ChangeNickName_CSC"; } private: inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { return nullptr; } inline void* MaybeArenaPtr() const { return nullptr; } public: ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; private: static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_relation_2eproto); return ::descriptor_table_relation_2eproto.file_level_metadata[kIndexInFileMessages]; } public: // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { kNicknameFieldNumber = 2, kCharidFieldNumber = 1, kSuccessFieldNumber = 3, }; // optional string nickname = 2; bool has_nickname() const; private: bool _internal_has_nickname() const; public: void clear_nickname(); const std::string& nickname() const; void set_nickname(const std::string& value); void set_nickname(std::string&& value); void set_nickname(const char* value); void set_nickname(const char* value, size_t size); std::string* mutable_nickname(); std::string* release_nickname(); void set_allocated_nickname(std::string* nickname); private: const std::string& _internal_nickname() const; void _internal_set_nickname(const std::string& value); std::string* _internal_mutable_nickname(); public: // optional uint64 charid = 1; bool has_charid() const; private: bool _internal_has_charid() const; public: void clear_charid(); ::PROTOBUF_NAMESPACE_ID::uint64 charid() const; void set_charid(::PROTOBUF_NAMESPACE_ID::uint64 value); private: ::PROTOBUF_NAMESPACE_ID::uint64 _internal_charid() const; void _internal_set_charid(::PROTOBUF_NAMESPACE_ID::uint64 value); public: // optional bool success = 3; bool has_success() const; private: bool _internal_has_success() const; public: void clear_success(); bool success() const; void set_success(bool value); private: bool _internal_success() const; void _internal_set_success(bool value); public: // @@protoc_insertion_point(class_scope:relation.MSG_ChangeNickName_CSC) private: class _Internal; ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr nickname_; ::PROTOBUF_NAMESPACE_ID::uint64 charid_; bool success_; friend struct ::TableStruct_relation_2eproto; }; // =================================================================== // =================================================================== #ifdef __GNUC__ #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wstrict-aliasing" #endif // __GNUC__ // relation_item // optional uint64 relationid = 1; inline bool relation_item::_internal_has_relationid() const { bool value = (_has_bits_[0] & 0x00000008u) != 0; return value; } inline bool relation_item::has_relationid() const { return _internal_has_relationid(); } inline void relation_item::clear_relationid() { relationid_ = PROTOBUF_ULONGLONG(0); _has_bits_[0] &= ~0x00000008u; } inline ::PROTOBUF_NAMESPACE_ID::uint64 relation_item::_internal_relationid() const { return relationid_; } inline ::PROTOBUF_NAMESPACE_ID::uint64 relation_item::relationid() const { // @@protoc_insertion_point(field_get:relation.relation_item.relationid) return _internal_relationid(); } inline void relation_item::_internal_set_relationid(::PROTOBUF_NAMESPACE_ID::uint64 value) { _has_bits_[0] |= 0x00000008u; relationid_ = value; } inline void relation_item::set_relationid(::PROTOBUF_NAMESPACE_ID::uint64 value) { _internal_set_relationid(value); // @@protoc_insertion_point(field_set:relation.relation_item.relationid) } // optional string relationname = 2; inline bool relation_item::_internal_has_relationname() const { bool value = (_has_bits_[0] & 0x00000001u) != 0; return value; } inline bool relation_item::has_relationname() const { return _internal_has_relationname(); } inline void relation_item::clear_relationname() { relationname_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); _has_bits_[0] &= ~0x00000001u; } inline const std::string& relation_item::relationname() const { // @@protoc_insertion_point(field_get:relation.relation_item.relationname) return _internal_relationname(); } inline void relation_item::set_relationname(const std::string& value) { _internal_set_relationname(value); // @@protoc_insertion_point(field_set:relation.relation_item.relationname) } inline std::string* relation_item::mutable_relationname() { // @@protoc_insertion_point(field_mutable:relation.relation_item.relationname) return _internal_mutable_relationname(); } inline const std::string& relation_item::_internal_relationname() const { return relationname_.GetNoArena(); } inline void relation_item::_internal_set_relationname(const std::string& value) { _has_bits_[0] |= 0x00000001u; relationname_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); } inline void relation_item::set_relationname(std::string&& value) { _has_bits_[0] |= 0x00000001u; relationname_.SetNoArena( &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); // @@protoc_insertion_point(field_set_rvalue:relation.relation_item.relationname) } inline void relation_item::set_relationname(const char* value) { GOOGLE_DCHECK(value != nullptr); _has_bits_[0] |= 0x00000001u; relationname_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:relation.relation_item.relationname) } inline void relation_item::set_relationname(const char* value, size_t size) { _has_bits_[0] |= 0x00000001u; relationname_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast<const char*>(value), size)); // @@protoc_insertion_point(field_set_pointer:relation.relation_item.relationname) } inline std::string* relation_item::_internal_mutable_relationname() { _has_bits_[0] |= 0x00000001u; return relationname_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } inline std::string* relation_item::release_relationname() { // @@protoc_insertion_point(field_release:relation.relation_item.relationname) if (!_internal_has_relationname()) { return nullptr; } _has_bits_[0] &= ~0x00000001u; return relationname_.ReleaseNonDefaultNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } inline void relation_item::set_allocated_relationname(std::string* relationname) { if (relationname != nullptr) { _has_bits_[0] |= 0x00000001u; } else { _has_bits_[0] &= ~0x00000001u; } relationname_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), relationname); // @@protoc_insertion_point(field_set_allocated:relation.relation_item.relationname) } // optional uint32 level = 3; inline bool relation_item::_internal_has_level() const { bool value = (_has_bits_[0] & 0x00000010u) != 0; return value; } inline bool relation_item::has_level() const { return _internal_has_level(); } inline void relation_item::clear_level() { level_ = 0u; _has_bits_[0] &= ~0x00000010u; } inline ::PROTOBUF_NAMESPACE_ID::uint32 relation_item::_internal_level() const { return level_; } inline ::PROTOBUF_NAMESPACE_ID::uint32 relation_item::level() const { // @@protoc_insertion_point(field_get:relation.relation_item.level) return _internal_level(); } inline void relation_item::_internal_set_level(::PROTOBUF_NAMESPACE_ID::uint32 value) { _has_bits_[0] |= 0x00000010u; level_ = value; } inline void relation_item::set_level(::PROTOBUF_NAMESPACE_ID::uint32 value) { _internal_set_level(value); // @@protoc_insertion_point(field_set:relation.relation_item.level) } // optional uint32 career = 4; inline bool relation_item::_internal_has_career() const { bool value = (_has_bits_[0] & 0x00000020u) != 0; return value; } inline bool relation_item::has_career() const { return _internal_has_career(); } inline void relation_item::clear_career() { career_ = 0u; _has_bits_[0] &= ~0x00000020u; } inline ::PROTOBUF_NAMESPACE_ID::uint32 relation_item::_internal_career() const { return career_; } inline ::PROTOBUF_NAMESPACE_ID::uint32 relation_item::career() const { // @@protoc_insertion_point(field_get:relation.relation_item.career) return _internal_career(); } inline void relation_item::_internal_set_career(::PROTOBUF_NAMESPACE_ID::uint32 value) { _has_bits_[0] |= 0x00000020u; career_ = value; } inline void relation_item::set_career(::PROTOBUF_NAMESPACE_ID::uint32 value) { _internal_set_career(value); // @@protoc_insertion_point(field_set:relation.relation_item.career) } // optional uint32 type = 5; inline bool relation_item::_internal_has_type() const { bool value = (_has_bits_[0] & 0x00000040u) != 0; return value; } inline bool relation_item::has_type() const { return _internal_has_type(); } inline void relation_item::clear_type() { type_ = 0u; _has_bits_[0] &= ~0x00000040u; } inline ::PROTOBUF_NAMESPACE_ID::uint32 relation_item::_internal_type() const { return type_; } inline ::PROTOBUF_NAMESPACE_ID::uint32 relation_item::type() const { // @@protoc_insertion_point(field_get:relation.relation_item.type) return _internal_type(); } inline void relation_item::_internal_set_type(::PROTOBUF_NAMESPACE_ID::uint32 value) { _has_bits_[0] |= 0x00000040u; type_ = value; } inline void relation_item::set_type(::PROTOBUF_NAMESPACE_ID::uint32 value) { _internal_set_type(value); // @@protoc_insertion_point(field_set:relation.relation_item.type) } // optional uint32 status = 6; inline bool relation_item::_internal_has_status() const { bool value = (_has_bits_[0] & 0x00000080u) != 0; return value; } inline bool relation_item::has_status() const { return _internal_has_status(); } inline void relation_item::clear_status() { status_ = 0u; _has_bits_[0] &= ~0x00000080u; } inline ::PROTOBUF_NAMESPACE_ID::uint32 relation_item::_internal_status() const { return status_; } inline ::PROTOBUF_NAMESPACE_ID::uint32 relation_item::status() const { // @@protoc_insertion_point(field_get:relation.relation_item.status) return _internal_status(); } inline void relation_item::_internal_set_status(::PROTOBUF_NAMESPACE_ID::uint32 value) { _has_bits_[0] |= 0x00000080u; status_ = value; } inline void relation_item::set_status(::PROTOBUF_NAMESPACE_ID::uint32 value) { _internal_set_status(value); // @@protoc_insertion_point(field_set:relation.relation_item.status) } // optional uint32 love_degree = 7; inline bool relation_item::_internal_has_love_degree() const { bool value = (_has_bits_[0] & 0x00000100u) != 0; return value; } inline bool relation_item::has_love_degree() const { return _internal_has_love_degree(); } inline void relation_item::clear_love_degree() { love_degree_ = 0u; _has_bits_[0] &= ~0x00000100u; } inline ::PROTOBUF_NAMESPACE_ID::uint32 relation_item::_internal_love_degree() const { return love_degree_; } inline ::PROTOBUF_NAMESPACE_ID::uint32 relation_item::love_degree() const { // @@protoc_insertion_point(field_get:relation.relation_item.love_degree) return _internal_love_degree(); } inline void relation_item::_internal_set_love_degree(::PROTOBUF_NAMESPACE_ID::uint32 value) { _has_bits_[0] |= 0x00000100u; love_degree_ = value; } inline void relation_item::set_love_degree(::PROTOBUF_NAMESPACE_ID::uint32 value) { _internal_set_love_degree(value); // @@protoc_insertion_point(field_set:relation.relation_item.love_degree) } // optional uint32 lastchattime = 8; inline bool relation_item::_internal_has_lastchattime() const { bool value = (_has_bits_[0] & 0x00000200u) != 0; return value; } inline bool relation_item::has_lastchattime() const { return _internal_has_lastchattime(); } inline void relation_item::clear_lastchattime() { lastchattime_ = 0u; _has_bits_[0] &= ~0x00000200u; } inline ::PROTOBUF_NAMESPACE_ID::uint32 relation_item::_internal_lastchattime() const { return lastchattime_; } inline ::PROTOBUF_NAMESPACE_ID::uint32 relation_item::lastchattime() const { // @@protoc_insertion_point(field_get:relation.relation_item.lastchattime) return _internal_lastchattime(); } inline void relation_item::_internal_set_lastchattime(::PROTOBUF_NAMESPACE_ID::uint32 value) { _has_bits_[0] |= 0x00000200u; lastchattime_ = value; } inline void relation_item::set_lastchattime(::PROTOBUF_NAMESPACE_ID::uint32 value) { _internal_set_lastchattime(value); // @@protoc_insertion_point(field_set:relation.relation_item.lastchattime) } // optional string page = 9; inline bool relation_item::_internal_has_page() const { bool value = (_has_bits_[0] & 0x00000002u) != 0; return value; } inline bool relation_item::has_page() const { return _internal_has_page(); } inline void relation_item::clear_page() { page_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); _has_bits_[0] &= ~0x00000002u; } inline const std::string& relation_item::page() const { // @@protoc_insertion_point(field_get:relation.relation_item.page) return _internal_page(); } inline void relation_item::set_page(const std::string& value) { _internal_set_page(value); // @@protoc_insertion_point(field_set:relation.relation_item.page) } inline std::string* relation_item::mutable_page() { // @@protoc_insertion_point(field_mutable:relation.relation_item.page) return _internal_mutable_page(); } inline const std::string& relation_item::_internal_page() const { return page_.GetNoArena(); } inline void relation_item::_internal_set_page(const std::string& value) { _has_bits_[0] |= 0x00000002u; page_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); } inline void relation_item::set_page(std::string&& value) { _has_bits_[0] |= 0x00000002u; page_.SetNoArena( &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); // @@protoc_insertion_point(field_set_rvalue:relation.relation_item.page) } inline void relation_item::set_page(const char* value) { GOOGLE_DCHECK(value != nullptr); _has_bits_[0] |= 0x00000002u; page_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:relation.relation_item.page) } inline void relation_item::set_page(const char* value, size_t size) { _has_bits_[0] |= 0x00000002u; page_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast<const char*>(value), size)); // @@protoc_insertion_point(field_set_pointer:relation.relation_item.page) } inline std::string* relation_item::_internal_mutable_page() { _has_bits_[0] |= 0x00000002u; return page_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } inline std::string* relation_item::release_page() { // @@protoc_insertion_point(field_release:relation.relation_item.page) if (!_internal_has_page()) { return nullptr; } _has_bits_[0] &= ~0x00000002u; return page_.ReleaseNonDefaultNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } inline void relation_item::set_allocated_page(std::string* page) { if (page != nullptr) { _has_bits_[0] |= 0x00000002u; } else { _has_bits_[0] &= ~0x00000002u; } page_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), page); // @@protoc_insertion_point(field_set_allocated:relation.relation_item.page) } // optional string nickName = 10; inline bool relation_item::_internal_has_nickname() const { bool value = (_has_bits_[0] & 0x00000004u) != 0; return value; } inline bool relation_item::has_nickname() const { return _internal_has_nickname(); } inline void relation_item::clear_nickname() { nickname_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); _has_bits_[0] &= ~0x00000004u; } inline const std::string& relation_item::nickname() const { // @@protoc_insertion_point(field_get:relation.relation_item.nickName) return _internal_nickname(); } inline void relation_item::set_nickname(const std::string& value) { _internal_set_nickname(value); // @@protoc_insertion_point(field_set:relation.relation_item.nickName) } inline std::string* relation_item::mutable_nickname() { // @@protoc_insertion_point(field_mutable:relation.relation_item.nickName) return _internal_mutable_nickname(); } inline const std::string& relation_item::_internal_nickname() const { return nickname_.GetNoArena(); } inline void relation_item::_internal_set_nickname(const std::string& value) { _has_bits_[0] |= 0x00000004u; nickname_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); } inline void relation_item::set_nickname(std::string&& value) { _has_bits_[0] |= 0x00000004u; nickname_.SetNoArena( &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); // @@protoc_insertion_point(field_set_rvalue:relation.relation_item.nickName) } inline void relation_item::set_nickname(const char* value) { GOOGLE_DCHECK(value != nullptr); _has_bits_[0] |= 0x00000004u; nickname_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:relation.relation_item.nickName) } inline void relation_item::set_nickname(const char* value, size_t size) { _has_bits_[0] |= 0x00000004u; nickname_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast<const char*>(value), size)); // @@protoc_insertion_point(field_set_pointer:relation.relation_item.nickName) } inline std::string* relation_item::_internal_mutable_nickname() { _has_bits_[0] |= 0x00000004u; return nickname_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } inline std::string* relation_item::release_nickname() { // @@protoc_insertion_point(field_release:relation.relation_item.nickName) if (!_internal_has_nickname()) { return nullptr; } _has_bits_[0] &= ~0x00000004u; return nickname_.ReleaseNonDefaultNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } inline void relation_item::set_allocated_nickname(std::string* nickname) { if (nickname != nullptr) { _has_bits_[0] |= 0x00000004u; } else { _has_bits_[0] &= ~0x00000004u; } nickname_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), nickname); // @@protoc_insertion_point(field_set_allocated:relation.relation_item.nickName) } // optional uint32 offlineTime = 11; inline bool relation_item::_internal_has_offlinetime() const { bool value = (_has_bits_[0] & 0x00000400u) != 0; return value; } inline bool relation_item::has_offlinetime() const { return _internal_has_offlinetime(); } inline void relation_item::clear_offlinetime() { offlinetime_ = 0u; _has_bits_[0] &= ~0x00000400u; } inline ::PROTOBUF_NAMESPACE_ID::uint32 relation_item::_internal_offlinetime() const { return offlinetime_; } inline ::PROTOBUF_NAMESPACE_ID::uint32 relation_item::offlinetime() const { // @@protoc_insertion_point(field_get:relation.relation_item.offlineTime) return _internal_offlinetime(); } inline void relation_item::_internal_set_offlinetime(::PROTOBUF_NAMESPACE_ID::uint32 value) { _has_bits_[0] |= 0x00000400u; offlinetime_ = value; } inline void relation_item::set_offlinetime(::PROTOBUF_NAMESPACE_ID::uint32 value) { _internal_set_offlinetime(value); // @@protoc_insertion_point(field_set:relation.relation_item.offlineTime) } // optional uint32 headPic = 12; inline bool relation_item::_internal_has_headpic() const { bool value = (_has_bits_[0] & 0x00000800u) != 0; return value; } inline bool relation_item::has_headpic() const { return _internal_has_headpic(); } inline void relation_item::clear_headpic() { headpic_ = 0u; _has_bits_[0] &= ~0x00000800u; } inline ::PROTOBUF_NAMESPACE_ID::uint32 relation_item::_internal_headpic() const { return headpic_; } inline ::PROTOBUF_NAMESPACE_ID::uint32 relation_item::headpic() const { // @@protoc_insertion_point(field_get:relation.relation_item.headPic) return _internal_headpic(); } inline void relation_item::_internal_set_headpic(::PROTOBUF_NAMESPACE_ID::uint32 value) { _has_bits_[0] |= 0x00000800u; headpic_ = value; } inline void relation_item::set_headpic(::PROTOBUF_NAMESPACE_ID::uint32 value) { _internal_set_headpic(value); // @@protoc_insertion_point(field_set:relation.relation_item.headPic) } // optional uint32 viplevel = 13; inline bool relation_item::_internal_has_viplevel() const { bool value = (_has_bits_[0] & 0x00001000u) != 0; return value; } inline bool relation_item::has_viplevel() const { return _internal_has_viplevel(); } inline void relation_item::clear_viplevel() { viplevel_ = 0u; _has_bits_[0] &= ~0x00001000u; } inline ::PROTOBUF_NAMESPACE_ID::uint32 relation_item::_internal_viplevel() const { return viplevel_; } inline ::PROTOBUF_NAMESPACE_ID::uint32 relation_item::viplevel() const { // @@protoc_insertion_point(field_get:relation.relation_item.viplevel) return _internal_viplevel(); } inline void relation_item::_internal_set_viplevel(::PROTOBUF_NAMESPACE_ID::uint32 value) { _has_bits_[0] |= 0x00001000u; viplevel_ = value; } inline void relation_item::set_viplevel(::PROTOBUF_NAMESPACE_ID::uint32 value) { _internal_set_viplevel(value); // @@protoc_insertion_point(field_set:relation.relation_item.viplevel) } // optional uint32 power = 14; inline bool relation_item::_internal_has_power() const { bool value = (_has_bits_[0] & 0x00002000u) != 0; return value; } inline bool relation_item::has_power() const { return _internal_has_power(); } inline void relation_item::clear_power() { power_ = 0u; _has_bits_[0] &= ~0x00002000u; } inline ::PROTOBUF_NAMESPACE_ID::uint32 relation_item::_internal_power() const { return power_; } inline ::PROTOBUF_NAMESPACE_ID::uint32 relation_item::power() const { // @@protoc_insertion_point(field_get:relation.relation_item.power) return _internal_power(); } inline void relation_item::_internal_set_power(::PROTOBUF_NAMESPACE_ID::uint32 value) { _has_bits_[0] |= 0x00002000u; power_ = value; } inline void relation_item::set_power(::PROTOBUF_NAMESPACE_ID::uint32 value) { _internal_set_power(value); // @@protoc_insertion_point(field_set:relation.relation_item.power) } // optional uint32 friendrate = 15; inline bool relation_item::_internal_has_friendrate() const { bool value = (_has_bits_[0] & 0x00004000u) != 0; return value; } inline bool relation_item::has_friendrate() const { return _internal_has_friendrate(); } inline void relation_item::clear_friendrate() { friendrate_ = 0u; _has_bits_[0] &= ~0x00004000u; } inline ::PROTOBUF_NAMESPACE_ID::uint32 relation_item::_internal_friendrate() const { return friendrate_; } inline ::PROTOBUF_NAMESPACE_ID::uint32 relation_item::friendrate() const { // @@protoc_insertion_point(field_get:relation.relation_item.friendrate) return _internal_friendrate(); } inline void relation_item::_internal_set_friendrate(::PROTOBUF_NAMESPACE_ID::uint32 value) { _has_bits_[0] |= 0x00004000u; friendrate_ = value; } inline void relation_item::set_friendrate(::PROTOBUF_NAMESPACE_ID::uint32 value) { _internal_set_friendrate(value); // @@protoc_insertion_point(field_set:relation.relation_item.friendrate) } // optional uint32 createTime = 16; inline bool relation_item::_internal_has_createtime() const { bool value = (_has_bits_[0] & 0x00008000u) != 0; return value; } inline bool relation_item::has_createtime() const { return _internal_has_createtime(); } inline void relation_item::clear_createtime() { createtime_ = 0u; _has_bits_[0] &= ~0x00008000u; } inline ::PROTOBUF_NAMESPACE_ID::uint32 relation_item::_internal_createtime() const { return createtime_; } inline ::PROTOBUF_NAMESPACE_ID::uint32 relation_item::createtime() const { // @@protoc_insertion_point(field_get:relation.relation_item.createTime) return _internal_createtime(); } inline void relation_item::_internal_set_createtime(::PROTOBUF_NAMESPACE_ID::uint32 value) { _has_bits_[0] |= 0x00008000u; createtime_ = value; } inline void relation_item::set_createtime(::PROTOBUF_NAMESPACE_ID::uint32 value) { _internal_set_createtime(value); // @@protoc_insertion_point(field_set:relation.relation_item.createTime) } // ------------------------------------------------------------------- // MSG_Ret_RelationList_SC // repeated .relation.relation_item relations = 1; inline int MSG_Ret_RelationList_SC::_internal_relations_size() const { return relations_.size(); } inline int MSG_Ret_RelationList_SC::relations_size() const { return _internal_relations_size(); } inline void MSG_Ret_RelationList_SC::clear_relations() { relations_.Clear(); } inline ::relation::relation_item* MSG_Ret_RelationList_SC::mutable_relations(int index) { // @@protoc_insertion_point(field_mutable:relation.MSG_Ret_RelationList_SC.relations) return relations_.Mutable(index); } inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::relation::relation_item >* MSG_Ret_RelationList_SC::mutable_relations() { // @@protoc_insertion_point(field_mutable_list:relation.MSG_Ret_RelationList_SC.relations) return &relations_; } inline const ::relation::relation_item& MSG_Ret_RelationList_SC::_internal_relations(int index) const { return relations_.Get(index); } inline const ::relation::relation_item& MSG_Ret_RelationList_SC::relations(int index) const { // @@protoc_insertion_point(field_get:relation.MSG_Ret_RelationList_SC.relations) return _internal_relations(index); } inline ::relation::relation_item* MSG_Ret_RelationList_SC::_internal_add_relations() { return relations_.Add(); } inline ::relation::relation_item* MSG_Ret_RelationList_SC::add_relations() { // @@protoc_insertion_point(field_add:relation.MSG_Ret_RelationList_SC.relations) return _internal_add_relations(); } inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::relation::relation_item >& MSG_Ret_RelationList_SC::relations() const { // @@protoc_insertion_point(field_list:relation.MSG_Ret_RelationList_SC.relations) return relations_; } // optional uint32 type = 2; inline bool MSG_Ret_RelationList_SC::_internal_has_type() const { bool value = (_has_bits_[0] & 0x00000001u) != 0; return value; } inline bool MSG_Ret_RelationList_SC::has_type() const { return _internal_has_type(); } inline void MSG_Ret_RelationList_SC::clear_type() { type_ = 0u; _has_bits_[0] &= ~0x00000001u; } inline ::PROTOBUF_NAMESPACE_ID::uint32 MSG_Ret_RelationList_SC::_internal_type() const { return type_; } inline ::PROTOBUF_NAMESPACE_ID::uint32 MSG_Ret_RelationList_SC::type() const { // @@protoc_insertion_point(field_get:relation.MSG_Ret_RelationList_SC.type) return _internal_type(); } inline void MSG_Ret_RelationList_SC::_internal_set_type(::PROTOBUF_NAMESPACE_ID::uint32 value) { _has_bits_[0] |= 0x00000001u; type_ = value; } inline void MSG_Ret_RelationList_SC::set_type(::PROTOBUF_NAMESPACE_ID::uint32 value) { _internal_set_type(value); // @@protoc_insertion_point(field_set:relation.MSG_Ret_RelationList_SC.type) } // ------------------------------------------------------------------- // MSG_Ret_RefreshRelation_SC // optional .relation.relation_item data = 1; inline bool MSG_Ret_RefreshRelation_SC::_internal_has_data() const { bool value = (_has_bits_[0] & 0x00000001u) != 0; PROTOBUF_ASSUME(!value || data_ != nullptr); return value; } inline bool MSG_Ret_RefreshRelation_SC::has_data() const { return _internal_has_data(); } inline void MSG_Ret_RefreshRelation_SC::clear_data() { if (data_ != nullptr) data_->Clear(); _has_bits_[0] &= ~0x00000001u; } inline const ::relation::relation_item& MSG_Ret_RefreshRelation_SC::_internal_data() const { const ::relation::relation_item* p = data_; return p != nullptr ? *p : *reinterpret_cast<const ::relation::relation_item*>( &::relation::_relation_item_default_instance_); } inline const ::relation::relation_item& MSG_Ret_RefreshRelation_SC::data() const { // @@protoc_insertion_point(field_get:relation.MSG_Ret_RefreshRelation_SC.data) return _internal_data(); } inline ::relation::relation_item* MSG_Ret_RefreshRelation_SC::release_data() { // @@protoc_insertion_point(field_release:relation.MSG_Ret_RefreshRelation_SC.data) _has_bits_[0] &= ~0x00000001u; ::relation::relation_item* temp = data_; data_ = nullptr; return temp; } inline ::relation::relation_item* MSG_Ret_RefreshRelation_SC::_internal_mutable_data() { _has_bits_[0] |= 0x00000001u; if (data_ == nullptr) { auto* p = CreateMaybeMessage<::relation::relation_item>(GetArenaNoVirtual()); data_ = p; } return data_; } inline ::relation::relation_item* MSG_Ret_RefreshRelation_SC::mutable_data() { // @@protoc_insertion_point(field_mutable:relation.MSG_Ret_RefreshRelation_SC.data) return _internal_mutable_data(); } inline void MSG_Ret_RefreshRelation_SC::set_allocated_data(::relation::relation_item* data) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); if (message_arena == nullptr) { delete data_; } if (data) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; if (message_arena != submessage_arena) { data = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, data, submessage_arena); } _has_bits_[0] |= 0x00000001u; } else { _has_bits_[0] &= ~0x00000001u; } data_ = data; // @@protoc_insertion_point(field_set_allocated:relation.MSG_Ret_RefreshRelation_SC.data) } // ------------------------------------------------------------------- // MSG_Req_ApplyRelation_CS // optional uint64 relationid = 1; inline bool MSG_Req_ApplyRelation_CS::_internal_has_relationid() const { bool value = (_has_bits_[0] & 0x00000001u) != 0; return value; } inline bool MSG_Req_ApplyRelation_CS::has_relationid() const { return _internal_has_relationid(); } inline void MSG_Req_ApplyRelation_CS::clear_relationid() { relationid_ = PROTOBUF_ULONGLONG(0); _has_bits_[0] &= ~0x00000001u; } inline ::PROTOBUF_NAMESPACE_ID::uint64 MSG_Req_ApplyRelation_CS::_internal_relationid() const { return relationid_; } inline ::PROTOBUF_NAMESPACE_ID::uint64 MSG_Req_ApplyRelation_CS::relationid() const { // @@protoc_insertion_point(field_get:relation.MSG_Req_ApplyRelation_CS.relationid) return _internal_relationid(); } inline void MSG_Req_ApplyRelation_CS::_internal_set_relationid(::PROTOBUF_NAMESPACE_ID::uint64 value) { _has_bits_[0] |= 0x00000001u; relationid_ = value; } inline void MSG_Req_ApplyRelation_CS::set_relationid(::PROTOBUF_NAMESPACE_ID::uint64 value) { _internal_set_relationid(value); // @@protoc_insertion_point(field_set:relation.MSG_Req_ApplyRelation_CS.relationid) } // ------------------------------------------------------------------- // MSG_Req_AnswerApplyRelation_CS // optional uint64 relationid = 1; inline bool MSG_Req_AnswerApplyRelation_CS::_internal_has_relationid() const { bool value = (_has_bits_[0] & 0x00000001u) != 0; return value; } inline bool MSG_Req_AnswerApplyRelation_CS::has_relationid() const { return _internal_has_relationid(); } inline void MSG_Req_AnswerApplyRelation_CS::clear_relationid() { relationid_ = PROTOBUF_ULONGLONG(0); _has_bits_[0] &= ~0x00000001u; } inline ::PROTOBUF_NAMESPACE_ID::uint64 MSG_Req_AnswerApplyRelation_CS::_internal_relationid() const { return relationid_; } inline ::PROTOBUF_NAMESPACE_ID::uint64 MSG_Req_AnswerApplyRelation_CS::relationid() const { // @@protoc_insertion_point(field_get:relation.MSG_Req_AnswerApplyRelation_CS.relationid) return _internal_relationid(); } inline void MSG_Req_AnswerApplyRelation_CS::_internal_set_relationid(::PROTOBUF_NAMESPACE_ID::uint64 value) { _has_bits_[0] |= 0x00000001u; relationid_ = value; } inline void MSG_Req_AnswerApplyRelation_CS::set_relationid(::PROTOBUF_NAMESPACE_ID::uint64 value) { _internal_set_relationid(value); // @@protoc_insertion_point(field_set:relation.MSG_Req_AnswerApplyRelation_CS.relationid) } // optional uint32 type = 2; inline bool MSG_Req_AnswerApplyRelation_CS::_internal_has_type() const { bool value = (_has_bits_[0] & 0x00000002u) != 0; return value; } inline bool MSG_Req_AnswerApplyRelation_CS::has_type() const { return _internal_has_type(); } inline void MSG_Req_AnswerApplyRelation_CS::clear_type() { type_ = 0u; _has_bits_[0] &= ~0x00000002u; } inline ::PROTOBUF_NAMESPACE_ID::uint32 MSG_Req_AnswerApplyRelation_CS::_internal_type() const { return type_; } inline ::PROTOBUF_NAMESPACE_ID::uint32 MSG_Req_AnswerApplyRelation_CS::type() const { // @@protoc_insertion_point(field_get:relation.MSG_Req_AnswerApplyRelation_CS.type) return _internal_type(); } inline void MSG_Req_AnswerApplyRelation_CS::_internal_set_type(::PROTOBUF_NAMESPACE_ID::uint32 value) { _has_bits_[0] |= 0x00000002u; type_ = value; } inline void MSG_Req_AnswerApplyRelation_CS::set_type(::PROTOBUF_NAMESPACE_ID::uint32 value) { _internal_set_type(value); // @@protoc_insertion_point(field_set:relation.MSG_Req_AnswerApplyRelation_CS.type) } // ------------------------------------------------------------------- // MSG_Ret_AnswerApplyRelation_SC // optional uint64 relationid = 1; inline bool MSG_Ret_AnswerApplyRelation_SC::_internal_has_relationid() const { bool value = (_has_bits_[0] & 0x00000001u) != 0; return value; } inline bool MSG_Ret_AnswerApplyRelation_SC::has_relationid() const { return _internal_has_relationid(); } inline void MSG_Ret_AnswerApplyRelation_SC::clear_relationid() { relationid_ = PROTOBUF_ULONGLONG(0); _has_bits_[0] &= ~0x00000001u; } inline ::PROTOBUF_NAMESPACE_ID::uint64 MSG_Ret_AnswerApplyRelation_SC::_internal_relationid() const { return relationid_; } inline ::PROTOBUF_NAMESPACE_ID::uint64 MSG_Ret_AnswerApplyRelation_SC::relationid() const { // @@protoc_insertion_point(field_get:relation.MSG_Ret_AnswerApplyRelation_SC.relationid) return _internal_relationid(); } inline void MSG_Ret_AnswerApplyRelation_SC::_internal_set_relationid(::PROTOBUF_NAMESPACE_ID::uint64 value) { _has_bits_[0] |= 0x00000001u; relationid_ = value; } inline void MSG_Ret_AnswerApplyRelation_SC::set_relationid(::PROTOBUF_NAMESPACE_ID::uint64 value) { _internal_set_relationid(value); // @@protoc_insertion_point(field_set:relation.MSG_Ret_AnswerApplyRelation_SC.relationid) } // optional bool issucc = 2; inline bool MSG_Ret_AnswerApplyRelation_SC::_internal_has_issucc() const { bool value = (_has_bits_[0] & 0x00000002u) != 0; return value; } inline bool MSG_Ret_AnswerApplyRelation_SC::has_issucc() const { return _internal_has_issucc(); } inline void MSG_Ret_AnswerApplyRelation_SC::clear_issucc() { issucc_ = false; _has_bits_[0] &= ~0x00000002u; } inline bool MSG_Ret_AnswerApplyRelation_SC::_internal_issucc() const { return issucc_; } inline bool MSG_Ret_AnswerApplyRelation_SC::issucc() const { // @@protoc_insertion_point(field_get:relation.MSG_Ret_AnswerApplyRelation_SC.issucc) return _internal_issucc(); } inline void MSG_Ret_AnswerApplyRelation_SC::_internal_set_issucc(bool value) { _has_bits_[0] |= 0x00000002u; issucc_ = value; } inline void MSG_Ret_AnswerApplyRelation_SC::set_issucc(bool value) { _internal_set_issucc(value); // @@protoc_insertion_point(field_set:relation.MSG_Ret_AnswerApplyRelation_SC.issucc) } // ------------------------------------------------------------------- // MSG_Req_DeleteRelation_CS // optional uint64 relationid = 1; inline bool MSG_Req_DeleteRelation_CS::_internal_has_relationid() const { bool value = (_has_bits_[0] & 0x00000001u) != 0; return value; } inline bool MSG_Req_DeleteRelation_CS::has_relationid() const { return _internal_has_relationid(); } inline void MSG_Req_DeleteRelation_CS::clear_relationid() { relationid_ = PROTOBUF_ULONGLONG(0); _has_bits_[0] &= ~0x00000001u; } inline ::PROTOBUF_NAMESPACE_ID::uint64 MSG_Req_DeleteRelation_CS::_internal_relationid() const { return relationid_; } inline ::PROTOBUF_NAMESPACE_ID::uint64 MSG_Req_DeleteRelation_CS::relationid() const { // @@protoc_insertion_point(field_get:relation.MSG_Req_DeleteRelation_CS.relationid) return _internal_relationid(); } inline void MSG_Req_DeleteRelation_CS::_internal_set_relationid(::PROTOBUF_NAMESPACE_ID::uint64 value) { _has_bits_[0] |= 0x00000001u; relationid_ = value; } inline void MSG_Req_DeleteRelation_CS::set_relationid(::PROTOBUF_NAMESPACE_ID::uint64 value) { _internal_set_relationid(value); // @@protoc_insertion_point(field_set:relation.MSG_Req_DeleteRelation_CS.relationid) } // ------------------------------------------------------------------- // MSG_Ret_DeleteRelation_SC // optional uint64 relationid = 1; inline bool MSG_Ret_DeleteRelation_SC::_internal_has_relationid() const { bool value = (_has_bits_[0] & 0x00000001u) != 0; return value; } inline bool MSG_Ret_DeleteRelation_SC::has_relationid() const { return _internal_has_relationid(); } inline void MSG_Ret_DeleteRelation_SC::clear_relationid() { relationid_ = PROTOBUF_ULONGLONG(0); _has_bits_[0] &= ~0x00000001u; } inline ::PROTOBUF_NAMESPACE_ID::uint64 MSG_Ret_DeleteRelation_SC::_internal_relationid() const { return relationid_; } inline ::PROTOBUF_NAMESPACE_ID::uint64 MSG_Ret_DeleteRelation_SC::relationid() const { // @@protoc_insertion_point(field_get:relation.MSG_Ret_DeleteRelation_SC.relationid) return _internal_relationid(); } inline void MSG_Ret_DeleteRelation_SC::_internal_set_relationid(::PROTOBUF_NAMESPACE_ID::uint64 value) { _has_bits_[0] |= 0x00000001u; relationid_ = value; } inline void MSG_Ret_DeleteRelation_SC::set_relationid(::PROTOBUF_NAMESPACE_ID::uint64 value) { _internal_set_relationid(value); // @@protoc_insertion_point(field_set:relation.MSG_Ret_DeleteRelation_SC.relationid) } // optional bool issucc = 2; inline bool MSG_Ret_DeleteRelation_SC::_internal_has_issucc() const { bool value = (_has_bits_[0] & 0x00000002u) != 0; return value; } inline bool MSG_Ret_DeleteRelation_SC::has_issucc() const { return _internal_has_issucc(); } inline void MSG_Ret_DeleteRelation_SC::clear_issucc() { issucc_ = false; _has_bits_[0] &= ~0x00000002u; } inline bool MSG_Ret_DeleteRelation_SC::_internal_issucc() const { return issucc_; } inline bool MSG_Ret_DeleteRelation_SC::issucc() const { // @@protoc_insertion_point(field_get:relation.MSG_Ret_DeleteRelation_SC.issucc) return _internal_issucc(); } inline void MSG_Ret_DeleteRelation_SC::_internal_set_issucc(bool value) { _has_bits_[0] |= 0x00000002u; issucc_ = value; } inline void MSG_Ret_DeleteRelation_SC::set_issucc(bool value) { _internal_set_issucc(value); // @@protoc_insertion_point(field_set:relation.MSG_Ret_DeleteRelation_SC.issucc) } // ------------------------------------------------------------------- // MSG_Req_OfflineInteractive_CS // ------------------------------------------------------------------- // MSG_Ret_AddInteractive_SC // repeated .relation.relation_item data = 1; inline int MSG_Ret_AddInteractive_SC::_internal_data_size() const { return data_.size(); } inline int MSG_Ret_AddInteractive_SC::data_size() const { return _internal_data_size(); } inline void MSG_Ret_AddInteractive_SC::clear_data() { data_.Clear(); } inline ::relation::relation_item* MSG_Ret_AddInteractive_SC::mutable_data(int index) { // @@protoc_insertion_point(field_mutable:relation.MSG_Ret_AddInteractive_SC.data) return data_.Mutable(index); } inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::relation::relation_item >* MSG_Ret_AddInteractive_SC::mutable_data() { // @@protoc_insertion_point(field_mutable_list:relation.MSG_Ret_AddInteractive_SC.data) return &data_; } inline const ::relation::relation_item& MSG_Ret_AddInteractive_SC::_internal_data(int index) const { return data_.Get(index); } inline const ::relation::relation_item& MSG_Ret_AddInteractive_SC::data(int index) const { // @@protoc_insertion_point(field_get:relation.MSG_Ret_AddInteractive_SC.data) return _internal_data(index); } inline ::relation::relation_item* MSG_Ret_AddInteractive_SC::_internal_add_data() { return data_.Add(); } inline ::relation::relation_item* MSG_Ret_AddInteractive_SC::add_data() { // @@protoc_insertion_point(field_add:relation.MSG_Ret_AddInteractive_SC.data) return _internal_add_data(); } inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::relation::relation_item >& MSG_Ret_AddInteractive_SC::data() const { // @@protoc_insertion_point(field_list:relation.MSG_Ret_AddInteractive_SC.data) return data_; } // ------------------------------------------------------------------- // MSG_Req_SearchRelation_CS // optional string condition = 1; inline bool MSG_Req_SearchRelation_CS::_internal_has_condition() const { bool value = (_has_bits_[0] & 0x00000001u) != 0; return value; } inline bool MSG_Req_SearchRelation_CS::has_condition() const { return _internal_has_condition(); } inline void MSG_Req_SearchRelation_CS::clear_condition() { condition_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); _has_bits_[0] &= ~0x00000001u; } inline const std::string& MSG_Req_SearchRelation_CS::condition() const { // @@protoc_insertion_point(field_get:relation.MSG_Req_SearchRelation_CS.condition) return _internal_condition(); } inline void MSG_Req_SearchRelation_CS::set_condition(const std::string& value) { _internal_set_condition(value); // @@protoc_insertion_point(field_set:relation.MSG_Req_SearchRelation_CS.condition) } inline std::string* MSG_Req_SearchRelation_CS::mutable_condition() { // @@protoc_insertion_point(field_mutable:relation.MSG_Req_SearchRelation_CS.condition) return _internal_mutable_condition(); } inline const std::string& MSG_Req_SearchRelation_CS::_internal_condition() const { return condition_.GetNoArena(); } inline void MSG_Req_SearchRelation_CS::_internal_set_condition(const std::string& value) { _has_bits_[0] |= 0x00000001u; condition_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); } inline void MSG_Req_SearchRelation_CS::set_condition(std::string&& value) { _has_bits_[0] |= 0x00000001u; condition_.SetNoArena( &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); // @@protoc_insertion_point(field_set_rvalue:relation.MSG_Req_SearchRelation_CS.condition) } inline void MSG_Req_SearchRelation_CS::set_condition(const char* value) { GOOGLE_DCHECK(value != nullptr); _has_bits_[0] |= 0x00000001u; condition_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:relation.MSG_Req_SearchRelation_CS.condition) } inline void MSG_Req_SearchRelation_CS::set_condition(const char* value, size_t size) { _has_bits_[0] |= 0x00000001u; condition_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast<const char*>(value), size)); // @@protoc_insertion_point(field_set_pointer:relation.MSG_Req_SearchRelation_CS.condition) } inline std::string* MSG_Req_SearchRelation_CS::_internal_mutable_condition() { _has_bits_[0] |= 0x00000001u; return condition_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } inline std::string* MSG_Req_SearchRelation_CS::release_condition() { // @@protoc_insertion_point(field_release:relation.MSG_Req_SearchRelation_CS.condition) if (!_internal_has_condition()) { return nullptr; } _has_bits_[0] &= ~0x00000001u; return condition_.ReleaseNonDefaultNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } inline void MSG_Req_SearchRelation_CS::set_allocated_condition(std::string* condition) { if (condition != nullptr) { _has_bits_[0] |= 0x00000001u; } else { _has_bits_[0] &= ~0x00000001u; } condition_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), condition); // @@protoc_insertion_point(field_set_allocated:relation.MSG_Req_SearchRelation_CS.condition) } // ------------------------------------------------------------------- // MSG_Ret_SearchRelation_SC // optional .relation.relation_item relation = 1; inline bool MSG_Ret_SearchRelation_SC::_internal_has_relation() const { bool value = (_has_bits_[0] & 0x00000001u) != 0; PROTOBUF_ASSUME(!value || relation_ != nullptr); return value; } inline bool MSG_Ret_SearchRelation_SC::has_relation() const { return _internal_has_relation(); } inline void MSG_Ret_SearchRelation_SC::clear_relation() { if (relation_ != nullptr) relation_->Clear(); _has_bits_[0] &= ~0x00000001u; } inline const ::relation::relation_item& MSG_Ret_SearchRelation_SC::_internal_relation() const { const ::relation::relation_item* p = relation_; return p != nullptr ? *p : *reinterpret_cast<const ::relation::relation_item*>( &::relation::_relation_item_default_instance_); } inline const ::relation::relation_item& MSG_Ret_SearchRelation_SC::relation() const { // @@protoc_insertion_point(field_get:relation.MSG_Ret_SearchRelation_SC.relation) return _internal_relation(); } inline ::relation::relation_item* MSG_Ret_SearchRelation_SC::release_relation() { // @@protoc_insertion_point(field_release:relation.MSG_Ret_SearchRelation_SC.relation) _has_bits_[0] &= ~0x00000001u; ::relation::relation_item* temp = relation_; relation_ = nullptr; return temp; } inline ::relation::relation_item* MSG_Ret_SearchRelation_SC::_internal_mutable_relation() { _has_bits_[0] |= 0x00000001u; if (relation_ == nullptr) { auto* p = CreateMaybeMessage<::relation::relation_item>(GetArenaNoVirtual()); relation_ = p; } return relation_; } inline ::relation::relation_item* MSG_Ret_SearchRelation_SC::mutable_relation() { // @@protoc_insertion_point(field_mutable:relation.MSG_Ret_SearchRelation_SC.relation) return _internal_mutable_relation(); } inline void MSG_Ret_SearchRelation_SC::set_allocated_relation(::relation::relation_item* relation) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); if (message_arena == nullptr) { delete relation_; } if (relation) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; if (message_arena != submessage_arena) { relation = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, relation, submessage_arena); } _has_bits_[0] |= 0x00000001u; } else { _has_bits_[0] &= ~0x00000001u; } relation_ = relation; // @@protoc_insertion_point(field_set_allocated:relation.MSG_Ret_SearchRelation_SC.relation) } // ------------------------------------------------------------------- // MSG_ModifyPageName_CSC // optional string page = 1; inline bool MSG_ModifyPageName_CSC::_internal_has_page() const { bool value = (_has_bits_[0] & 0x00000001u) != 0; return value; } inline bool MSG_ModifyPageName_CSC::has_page() const { return _internal_has_page(); } inline void MSG_ModifyPageName_CSC::clear_page() { page_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); _has_bits_[0] &= ~0x00000001u; } inline const std::string& MSG_ModifyPageName_CSC::page() const { // @@protoc_insertion_point(field_get:relation.MSG_ModifyPageName_CSC.page) return _internal_page(); } inline void MSG_ModifyPageName_CSC::set_page(const std::string& value) { _internal_set_page(value); // @@protoc_insertion_point(field_set:relation.MSG_ModifyPageName_CSC.page) } inline std::string* MSG_ModifyPageName_CSC::mutable_page() { // @@protoc_insertion_point(field_mutable:relation.MSG_ModifyPageName_CSC.page) return _internal_mutable_page(); } inline const std::string& MSG_ModifyPageName_CSC::_internal_page() const { return page_.GetNoArena(); } inline void MSG_ModifyPageName_CSC::_internal_set_page(const std::string& value) { _has_bits_[0] |= 0x00000001u; page_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); } inline void MSG_ModifyPageName_CSC::set_page(std::string&& value) { _has_bits_[0] |= 0x00000001u; page_.SetNoArena( &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); // @@protoc_insertion_point(field_set_rvalue:relation.MSG_ModifyPageName_CSC.page) } inline void MSG_ModifyPageName_CSC::set_page(const char* value) { GOOGLE_DCHECK(value != nullptr); _has_bits_[0] |= 0x00000001u; page_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:relation.MSG_ModifyPageName_CSC.page) } inline void MSG_ModifyPageName_CSC::set_page(const char* value, size_t size) { _has_bits_[0] |= 0x00000001u; page_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast<const char*>(value), size)); // @@protoc_insertion_point(field_set_pointer:relation.MSG_ModifyPageName_CSC.page) } inline std::string* MSG_ModifyPageName_CSC::_internal_mutable_page() { _has_bits_[0] |= 0x00000001u; return page_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } inline std::string* MSG_ModifyPageName_CSC::release_page() { // @@protoc_insertion_point(field_release:relation.MSG_ModifyPageName_CSC.page) if (!_internal_has_page()) { return nullptr; } _has_bits_[0] &= ~0x00000001u; return page_.ReleaseNonDefaultNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } inline void MSG_ModifyPageName_CSC::set_allocated_page(std::string* page) { if (page != nullptr) { _has_bits_[0] |= 0x00000001u; } else { _has_bits_[0] &= ~0x00000001u; } page_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), page); // @@protoc_insertion_point(field_set_allocated:relation.MSG_ModifyPageName_CSC.page) } // optional string new_page = 2; inline bool MSG_ModifyPageName_CSC::_internal_has_new_page() const { bool value = (_has_bits_[0] & 0x00000002u) != 0; return value; } inline bool MSG_ModifyPageName_CSC::has_new_page() const { return _internal_has_new_page(); } inline void MSG_ModifyPageName_CSC::clear_new_page() { new_page_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); _has_bits_[0] &= ~0x00000002u; } inline const std::string& MSG_ModifyPageName_CSC::new_page() const { // @@protoc_insertion_point(field_get:relation.MSG_ModifyPageName_CSC.new_page) return _internal_new_page(); } inline void MSG_ModifyPageName_CSC::set_new_page(const std::string& value) { _internal_set_new_page(value); // @@protoc_insertion_point(field_set:relation.MSG_ModifyPageName_CSC.new_page) } inline std::string* MSG_ModifyPageName_CSC::mutable_new_page() { // @@protoc_insertion_point(field_mutable:relation.MSG_ModifyPageName_CSC.new_page) return _internal_mutable_new_page(); } inline const std::string& MSG_ModifyPageName_CSC::_internal_new_page() const { return new_page_.GetNoArena(); } inline void MSG_ModifyPageName_CSC::_internal_set_new_page(const std::string& value) { _has_bits_[0] |= 0x00000002u; new_page_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); } inline void MSG_ModifyPageName_CSC::set_new_page(std::string&& value) { _has_bits_[0] |= 0x00000002u; new_page_.SetNoArena( &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); // @@protoc_insertion_point(field_set_rvalue:relation.MSG_ModifyPageName_CSC.new_page) } inline void MSG_ModifyPageName_CSC::set_new_page(const char* value) { GOOGLE_DCHECK(value != nullptr); _has_bits_[0] |= 0x00000002u; new_page_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:relation.MSG_ModifyPageName_CSC.new_page) } inline void MSG_ModifyPageName_CSC::set_new_page(const char* value, size_t size) { _has_bits_[0] |= 0x00000002u; new_page_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast<const char*>(value), size)); // @@protoc_insertion_point(field_set_pointer:relation.MSG_ModifyPageName_CSC.new_page) } inline std::string* MSG_ModifyPageName_CSC::_internal_mutable_new_page() { _has_bits_[0] |= 0x00000002u; return new_page_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } inline std::string* MSG_ModifyPageName_CSC::release_new_page() { // @@protoc_insertion_point(field_release:relation.MSG_ModifyPageName_CSC.new_page) if (!_internal_has_new_page()) { return nullptr; } _has_bits_[0] &= ~0x00000002u; return new_page_.ReleaseNonDefaultNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } inline void MSG_ModifyPageName_CSC::set_allocated_new_page(std::string* new_page) { if (new_page != nullptr) { _has_bits_[0] |= 0x00000002u; } else { _has_bits_[0] &= ~0x00000002u; } new_page_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), new_page); // @@protoc_insertion_point(field_set_allocated:relation.MSG_ModifyPageName_CSC.new_page) } // optional uint32 opcode = 3; inline bool MSG_ModifyPageName_CSC::_internal_has_opcode() const { bool value = (_has_bits_[0] & 0x00000004u) != 0; return value; } inline bool MSG_ModifyPageName_CSC::has_opcode() const { return _internal_has_opcode(); } inline void MSG_ModifyPageName_CSC::clear_opcode() { opcode_ = 0u; _has_bits_[0] &= ~0x00000004u; } inline ::PROTOBUF_NAMESPACE_ID::uint32 MSG_ModifyPageName_CSC::_internal_opcode() const { return opcode_; } inline ::PROTOBUF_NAMESPACE_ID::uint32 MSG_ModifyPageName_CSC::opcode() const { // @@protoc_insertion_point(field_get:relation.MSG_ModifyPageName_CSC.opcode) return _internal_opcode(); } inline void MSG_ModifyPageName_CSC::_internal_set_opcode(::PROTOBUF_NAMESPACE_ID::uint32 value) { _has_bits_[0] |= 0x00000004u; opcode_ = value; } inline void MSG_ModifyPageName_CSC::set_opcode(::PROTOBUF_NAMESPACE_ID::uint32 value) { _internal_set_opcode(value); // @@protoc_insertion_point(field_set:relation.MSG_ModifyPageName_CSC.opcode) } // optional bool success = 4; inline bool MSG_ModifyPageName_CSC::_internal_has_success() const { bool value = (_has_bits_[0] & 0x00000008u) != 0; return value; } inline bool MSG_ModifyPageName_CSC::has_success() const { return _internal_has_success(); } inline void MSG_ModifyPageName_CSC::clear_success() { success_ = false; _has_bits_[0] &= ~0x00000008u; } inline bool MSG_ModifyPageName_CSC::_internal_success() const { return success_; } inline bool MSG_ModifyPageName_CSC::success() const { // @@protoc_insertion_point(field_get:relation.MSG_ModifyPageName_CSC.success) return _internal_success(); } inline void MSG_ModifyPageName_CSC::_internal_set_success(bool value) { _has_bits_[0] |= 0x00000008u; success_ = value; } inline void MSG_ModifyPageName_CSC::set_success(bool value) { _internal_set_success(value); // @@protoc_insertion_point(field_set:relation.MSG_ModifyPageName_CSC.success) } // ------------------------------------------------------------------- // MSG_MoveFriendToPage_CSC // optional uint64 charid = 1; inline bool MSG_MoveFriendToPage_CSC::_internal_has_charid() const { bool value = (_has_bits_[0] & 0x00000002u) != 0; return value; } inline bool MSG_MoveFriendToPage_CSC::has_charid() const { return _internal_has_charid(); } inline void MSG_MoveFriendToPage_CSC::clear_charid() { charid_ = PROTOBUF_ULONGLONG(0); _has_bits_[0] &= ~0x00000002u; } inline ::PROTOBUF_NAMESPACE_ID::uint64 MSG_MoveFriendToPage_CSC::_internal_charid() const { return charid_; } inline ::PROTOBUF_NAMESPACE_ID::uint64 MSG_MoveFriendToPage_CSC::charid() const { // @@protoc_insertion_point(field_get:relation.MSG_MoveFriendToPage_CSC.charid) return _internal_charid(); } inline void MSG_MoveFriendToPage_CSC::_internal_set_charid(::PROTOBUF_NAMESPACE_ID::uint64 value) { _has_bits_[0] |= 0x00000002u; charid_ = value; } inline void MSG_MoveFriendToPage_CSC::set_charid(::PROTOBUF_NAMESPACE_ID::uint64 value) { _internal_set_charid(value); // @@protoc_insertion_point(field_set:relation.MSG_MoveFriendToPage_CSC.charid) } // optional string page = 2; inline bool MSG_MoveFriendToPage_CSC::_internal_has_page() const { bool value = (_has_bits_[0] & 0x00000001u) != 0; return value; } inline bool MSG_MoveFriendToPage_CSC::has_page() const { return _internal_has_page(); } inline void MSG_MoveFriendToPage_CSC::clear_page() { page_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); _has_bits_[0] &= ~0x00000001u; } inline const std::string& MSG_MoveFriendToPage_CSC::page() const { // @@protoc_insertion_point(field_get:relation.MSG_MoveFriendToPage_CSC.page) return _internal_page(); } inline void MSG_MoveFriendToPage_CSC::set_page(const std::string& value) { _internal_set_page(value); // @@protoc_insertion_point(field_set:relation.MSG_MoveFriendToPage_CSC.page) } inline std::string* MSG_MoveFriendToPage_CSC::mutable_page() { // @@protoc_insertion_point(field_mutable:relation.MSG_MoveFriendToPage_CSC.page) return _internal_mutable_page(); } inline const std::string& MSG_MoveFriendToPage_CSC::_internal_page() const { return page_.GetNoArena(); } inline void MSG_MoveFriendToPage_CSC::_internal_set_page(const std::string& value) { _has_bits_[0] |= 0x00000001u; page_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); } inline void MSG_MoveFriendToPage_CSC::set_page(std::string&& value) { _has_bits_[0] |= 0x00000001u; page_.SetNoArena( &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); // @@protoc_insertion_point(field_set_rvalue:relation.MSG_MoveFriendToPage_CSC.page) } inline void MSG_MoveFriendToPage_CSC::set_page(const char* value) { GOOGLE_DCHECK(value != nullptr); _has_bits_[0] |= 0x00000001u; page_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:relation.MSG_MoveFriendToPage_CSC.page) } inline void MSG_MoveFriendToPage_CSC::set_page(const char* value, size_t size) { _has_bits_[0] |= 0x00000001u; page_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast<const char*>(value), size)); // @@protoc_insertion_point(field_set_pointer:relation.MSG_MoveFriendToPage_CSC.page) } inline std::string* MSG_MoveFriendToPage_CSC::_internal_mutable_page() { _has_bits_[0] |= 0x00000001u; return page_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } inline std::string* MSG_MoveFriendToPage_CSC::release_page() { // @@protoc_insertion_point(field_release:relation.MSG_MoveFriendToPage_CSC.page) if (!_internal_has_page()) { return nullptr; } _has_bits_[0] &= ~0x00000001u; return page_.ReleaseNonDefaultNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } inline void MSG_MoveFriendToPage_CSC::set_allocated_page(std::string* page) { if (page != nullptr) { _has_bits_[0] |= 0x00000001u; } else { _has_bits_[0] &= ~0x00000001u; } page_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), page); // @@protoc_insertion_point(field_set_allocated:relation.MSG_MoveFriendToPage_CSC.page) } // optional bool success = 3; inline bool MSG_MoveFriendToPage_CSC::_internal_has_success() const { bool value = (_has_bits_[0] & 0x00000004u) != 0; return value; } inline bool MSG_MoveFriendToPage_CSC::has_success() const { return _internal_has_success(); } inline void MSG_MoveFriendToPage_CSC::clear_success() { success_ = false; _has_bits_[0] &= ~0x00000004u; } inline bool MSG_MoveFriendToPage_CSC::_internal_success() const { return success_; } inline bool MSG_MoveFriendToPage_CSC::success() const { // @@protoc_insertion_point(field_get:relation.MSG_MoveFriendToPage_CSC.success) return _internal_success(); } inline void MSG_MoveFriendToPage_CSC::_internal_set_success(bool value) { _has_bits_[0] |= 0x00000004u; success_ = value; } inline void MSG_MoveFriendToPage_CSC::set_success(bool value) { _internal_set_success(value); // @@protoc_insertion_point(field_set:relation.MSG_MoveFriendToPage_CSC.success) } // ------------------------------------------------------------------- // PageItem // optional string page_name = 1; inline bool PageItem::_internal_has_page_name() const { bool value = (_has_bits_[0] & 0x00000001u) != 0; return value; } inline bool PageItem::has_page_name() const { return _internal_has_page_name(); } inline void PageItem::clear_page_name() { page_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); _has_bits_[0] &= ~0x00000001u; } inline const std::string& PageItem::page_name() const { // @@protoc_insertion_point(field_get:relation.PageItem.page_name) return _internal_page_name(); } inline void PageItem::set_page_name(const std::string& value) { _internal_set_page_name(value); // @@protoc_insertion_point(field_set:relation.PageItem.page_name) } inline std::string* PageItem::mutable_page_name() { // @@protoc_insertion_point(field_mutable:relation.PageItem.page_name) return _internal_mutable_page_name(); } inline const std::string& PageItem::_internal_page_name() const { return page_name_.GetNoArena(); } inline void PageItem::_internal_set_page_name(const std::string& value) { _has_bits_[0] |= 0x00000001u; page_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); } inline void PageItem::set_page_name(std::string&& value) { _has_bits_[0] |= 0x00000001u; page_name_.SetNoArena( &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); // @@protoc_insertion_point(field_set_rvalue:relation.PageItem.page_name) } inline void PageItem::set_page_name(const char* value) { GOOGLE_DCHECK(value != nullptr); _has_bits_[0] |= 0x00000001u; page_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:relation.PageItem.page_name) } inline void PageItem::set_page_name(const char* value, size_t size) { _has_bits_[0] |= 0x00000001u; page_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast<const char*>(value), size)); // @@protoc_insertion_point(field_set_pointer:relation.PageItem.page_name) } inline std::string* PageItem::_internal_mutable_page_name() { _has_bits_[0] |= 0x00000001u; return page_name_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } inline std::string* PageItem::release_page_name() { // @@protoc_insertion_point(field_release:relation.PageItem.page_name) if (!_internal_has_page_name()) { return nullptr; } _has_bits_[0] &= ~0x00000001u; return page_name_.ReleaseNonDefaultNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } inline void PageItem::set_allocated_page_name(std::string* page_name) { if (page_name != nullptr) { _has_bits_[0] |= 0x00000001u; } else { _has_bits_[0] &= ~0x00000001u; } page_name_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), page_name); // @@protoc_insertion_point(field_set_allocated:relation.PageItem.page_name) } // optional uint32 createtime = 2; inline bool PageItem::_internal_has_createtime() const { bool value = (_has_bits_[0] & 0x00000002u) != 0; return value; } inline bool PageItem::has_createtime() const { return _internal_has_createtime(); } inline void PageItem::clear_createtime() { createtime_ = 0u; _has_bits_[0] &= ~0x00000002u; } inline ::PROTOBUF_NAMESPACE_ID::uint32 PageItem::_internal_createtime() const { return createtime_; } inline ::PROTOBUF_NAMESPACE_ID::uint32 PageItem::createtime() const { // @@protoc_insertion_point(field_get:relation.PageItem.createtime) return _internal_createtime(); } inline void PageItem::_internal_set_createtime(::PROTOBUF_NAMESPACE_ID::uint32 value) { _has_bits_[0] |= 0x00000002u; createtime_ = value; } inline void PageItem::set_createtime(::PROTOBUF_NAMESPACE_ID::uint32 value) { _internal_set_createtime(value); // @@protoc_insertion_point(field_set:relation.PageItem.createtime) } // ------------------------------------------------------------------- // MSG_AllFriendPage_CSC // repeated .relation.PageItem pages = 1; inline int MSG_AllFriendPage_CSC::_internal_pages_size() const { return pages_.size(); } inline int MSG_AllFriendPage_CSC::pages_size() const { return _internal_pages_size(); } inline void MSG_AllFriendPage_CSC::clear_pages() { pages_.Clear(); } inline ::relation::PageItem* MSG_AllFriendPage_CSC::mutable_pages(int index) { // @@protoc_insertion_point(field_mutable:relation.MSG_AllFriendPage_CSC.pages) return pages_.Mutable(index); } inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::relation::PageItem >* MSG_AllFriendPage_CSC::mutable_pages() { // @@protoc_insertion_point(field_mutable_list:relation.MSG_AllFriendPage_CSC.pages) return &pages_; } inline const ::relation::PageItem& MSG_AllFriendPage_CSC::_internal_pages(int index) const { return pages_.Get(index); } inline const ::relation::PageItem& MSG_AllFriendPage_CSC::pages(int index) const { // @@protoc_insertion_point(field_get:relation.MSG_AllFriendPage_CSC.pages) return _internal_pages(index); } inline ::relation::PageItem* MSG_AllFriendPage_CSC::_internal_add_pages() { return pages_.Add(); } inline ::relation::PageItem* MSG_AllFriendPage_CSC::add_pages() { // @@protoc_insertion_point(field_add:relation.MSG_AllFriendPage_CSC.pages) return _internal_add_pages(); } inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::relation::PageItem >& MSG_AllFriendPage_CSC::pages() const { // @@protoc_insertion_point(field_list:relation.MSG_AllFriendPage_CSC.pages) return pages_; } // ------------------------------------------------------------------- // BlackItem // optional uint64 charid = 1; inline bool BlackItem::_internal_has_charid() const { bool value = (_has_bits_[0] & 0x00000002u) != 0; return value; } inline bool BlackItem::has_charid() const { return _internal_has_charid(); } inline void BlackItem::clear_charid() { charid_ = PROTOBUF_ULONGLONG(0); _has_bits_[0] &= ~0x00000002u; } inline ::PROTOBUF_NAMESPACE_ID::uint64 BlackItem::_internal_charid() const { return charid_; } inline ::PROTOBUF_NAMESPACE_ID::uint64 BlackItem::charid() const { // @@protoc_insertion_point(field_get:relation.BlackItem.charid) return _internal_charid(); } inline void BlackItem::_internal_set_charid(::PROTOBUF_NAMESPACE_ID::uint64 value) { _has_bits_[0] |= 0x00000002u; charid_ = value; } inline void BlackItem::set_charid(::PROTOBUF_NAMESPACE_ID::uint64 value) { _internal_set_charid(value); // @@protoc_insertion_point(field_set:relation.BlackItem.charid) } // optional string name = 2; inline bool BlackItem::_internal_has_name() const { bool value = (_has_bits_[0] & 0x00000001u) != 0; return value; } inline bool BlackItem::has_name() const { return _internal_has_name(); } inline void BlackItem::clear_name() { name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); _has_bits_[0] &= ~0x00000001u; } inline const std::string& BlackItem::name() const { // @@protoc_insertion_point(field_get:relation.BlackItem.name) return _internal_name(); } inline void BlackItem::set_name(const std::string& value) { _internal_set_name(value); // @@protoc_insertion_point(field_set:relation.BlackItem.name) } inline std::string* BlackItem::mutable_name() { // @@protoc_insertion_point(field_mutable:relation.BlackItem.name) return _internal_mutable_name(); } inline const std::string& BlackItem::_internal_name() const { return name_.GetNoArena(); } inline void BlackItem::_internal_set_name(const std::string& value) { _has_bits_[0] |= 0x00000001u; name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); } inline void BlackItem::set_name(std::string&& value) { _has_bits_[0] |= 0x00000001u; name_.SetNoArena( &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); // @@protoc_insertion_point(field_set_rvalue:relation.BlackItem.name) } inline void BlackItem::set_name(const char* value) { GOOGLE_DCHECK(value != nullptr); _has_bits_[0] |= 0x00000001u; name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:relation.BlackItem.name) } inline void BlackItem::set_name(const char* value, size_t size) { _has_bits_[0] |= 0x00000001u; name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast<const char*>(value), size)); // @@protoc_insertion_point(field_set_pointer:relation.BlackItem.name) } inline std::string* BlackItem::_internal_mutable_name() { _has_bits_[0] |= 0x00000001u; return name_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } inline std::string* BlackItem::release_name() { // @@protoc_insertion_point(field_release:relation.BlackItem.name) if (!_internal_has_name()) { return nullptr; } _has_bits_[0] &= ~0x00000001u; return name_.ReleaseNonDefaultNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } inline void BlackItem::set_allocated_name(std::string* name) { if (name != nullptr) { _has_bits_[0] |= 0x00000001u; } else { _has_bits_[0] &= ~0x00000001u; } name_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), name); // @@protoc_insertion_point(field_set_allocated:relation.BlackItem.name) } // optional uint32 level = 3; inline bool BlackItem::_internal_has_level() const { bool value = (_has_bits_[0] & 0x00000004u) != 0; return value; } inline bool BlackItem::has_level() const { return _internal_has_level(); } inline void BlackItem::clear_level() { level_ = 0u; _has_bits_[0] &= ~0x00000004u; } inline ::PROTOBUF_NAMESPACE_ID::uint32 BlackItem::_internal_level() const { return level_; } inline ::PROTOBUF_NAMESPACE_ID::uint32 BlackItem::level() const { // @@protoc_insertion_point(field_get:relation.BlackItem.level) return _internal_level(); } inline void BlackItem::_internal_set_level(::PROTOBUF_NAMESPACE_ID::uint32 value) { _has_bits_[0] |= 0x00000004u; level_ = value; } inline void BlackItem::set_level(::PROTOBUF_NAMESPACE_ID::uint32 value) { _internal_set_level(value); // @@protoc_insertion_point(field_set:relation.BlackItem.level) } // optional uint32 viplevel = 4; inline bool BlackItem::_internal_has_viplevel() const { bool value = (_has_bits_[0] & 0x00000008u) != 0; return value; } inline bool BlackItem::has_viplevel() const { return _internal_has_viplevel(); } inline void BlackItem::clear_viplevel() { viplevel_ = 0u; _has_bits_[0] &= ~0x00000008u; } inline ::PROTOBUF_NAMESPACE_ID::uint32 BlackItem::_internal_viplevel() const { return viplevel_; } inline ::PROTOBUF_NAMESPACE_ID::uint32 BlackItem::viplevel() const { // @@protoc_insertion_point(field_get:relation.BlackItem.viplevel) return _internal_viplevel(); } inline void BlackItem::_internal_set_viplevel(::PROTOBUF_NAMESPACE_ID::uint32 value) { _has_bits_[0] |= 0x00000008u; viplevel_ = value; } inline void BlackItem::set_viplevel(::PROTOBUF_NAMESPACE_ID::uint32 value) { _internal_set_viplevel(value); // @@protoc_insertion_point(field_set:relation.BlackItem.viplevel) } // ------------------------------------------------------------------- // MSG_BlackList_CSC // repeated .relation.BlackItem blackList = 1; inline int MSG_BlackList_CSC::_internal_blacklist_size() const { return blacklist_.size(); } inline int MSG_BlackList_CSC::blacklist_size() const { return _internal_blacklist_size(); } inline void MSG_BlackList_CSC::clear_blacklist() { blacklist_.Clear(); } inline ::relation::BlackItem* MSG_BlackList_CSC::mutable_blacklist(int index) { // @@protoc_insertion_point(field_mutable:relation.MSG_BlackList_CSC.blackList) return blacklist_.Mutable(index); } inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::relation::BlackItem >* MSG_BlackList_CSC::mutable_blacklist() { // @@protoc_insertion_point(field_mutable_list:relation.MSG_BlackList_CSC.blackList) return &blacklist_; } inline const ::relation::BlackItem& MSG_BlackList_CSC::_internal_blacklist(int index) const { return blacklist_.Get(index); } inline const ::relation::BlackItem& MSG_BlackList_CSC::blacklist(int index) const { // @@protoc_insertion_point(field_get:relation.MSG_BlackList_CSC.blackList) return _internal_blacklist(index); } inline ::relation::BlackItem* MSG_BlackList_CSC::_internal_add_blacklist() { return blacklist_.Add(); } inline ::relation::BlackItem* MSG_BlackList_CSC::add_blacklist() { // @@protoc_insertion_point(field_add:relation.MSG_BlackList_CSC.blackList) return _internal_add_blacklist(); } inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::relation::BlackItem >& MSG_BlackList_CSC::blacklist() const { // @@protoc_insertion_point(field_list:relation.MSG_BlackList_CSC.blackList) return blacklist_; } // ------------------------------------------------------------------- // MSG_OperateBlackList_CSC // optional uint64 charid = 1; inline bool MSG_OperateBlackList_CSC::_internal_has_charid() const { bool value = (_has_bits_[0] & 0x00000002u) != 0; return value; } inline bool MSG_OperateBlackList_CSC::has_charid() const { return _internal_has_charid(); } inline void MSG_OperateBlackList_CSC::clear_charid() { charid_ = PROTOBUF_ULONGLONG(0); _has_bits_[0] &= ~0x00000002u; } inline ::PROTOBUF_NAMESPACE_ID::uint64 MSG_OperateBlackList_CSC::_internal_charid() const { return charid_; } inline ::PROTOBUF_NAMESPACE_ID::uint64 MSG_OperateBlackList_CSC::charid() const { // @@protoc_insertion_point(field_get:relation.MSG_OperateBlackList_CSC.charid) return _internal_charid(); } inline void MSG_OperateBlackList_CSC::_internal_set_charid(::PROTOBUF_NAMESPACE_ID::uint64 value) { _has_bits_[0] |= 0x00000002u; charid_ = value; } inline void MSG_OperateBlackList_CSC::set_charid(::PROTOBUF_NAMESPACE_ID::uint64 value) { _internal_set_charid(value); // @@protoc_insertion_point(field_set:relation.MSG_OperateBlackList_CSC.charid) } // optional uint32 opcode = 2; inline bool MSG_OperateBlackList_CSC::_internal_has_opcode() const { bool value = (_has_bits_[0] & 0x00000004u) != 0; return value; } inline bool MSG_OperateBlackList_CSC::has_opcode() const { return _internal_has_opcode(); } inline void MSG_OperateBlackList_CSC::clear_opcode() { opcode_ = 0u; _has_bits_[0] &= ~0x00000004u; } inline ::PROTOBUF_NAMESPACE_ID::uint32 MSG_OperateBlackList_CSC::_internal_opcode() const { return opcode_; } inline ::PROTOBUF_NAMESPACE_ID::uint32 MSG_OperateBlackList_CSC::opcode() const { // @@protoc_insertion_point(field_get:relation.MSG_OperateBlackList_CSC.opcode) return _internal_opcode(); } inline void MSG_OperateBlackList_CSC::_internal_set_opcode(::PROTOBUF_NAMESPACE_ID::uint32 value) { _has_bits_[0] |= 0x00000004u; opcode_ = value; } inline void MSG_OperateBlackList_CSC::set_opcode(::PROTOBUF_NAMESPACE_ID::uint32 value) { _internal_set_opcode(value); // @@protoc_insertion_point(field_set:relation.MSG_OperateBlackList_CSC.opcode) } // optional .relation.BlackItem data = 3; inline bool MSG_OperateBlackList_CSC::_internal_has_data() const { bool value = (_has_bits_[0] & 0x00000001u) != 0; PROTOBUF_ASSUME(!value || data_ != nullptr); return value; } inline bool MSG_OperateBlackList_CSC::has_data() const { return _internal_has_data(); } inline void MSG_OperateBlackList_CSC::clear_data() { if (data_ != nullptr) data_->Clear(); _has_bits_[0] &= ~0x00000001u; } inline const ::relation::BlackItem& MSG_OperateBlackList_CSC::_internal_data() const { const ::relation::BlackItem* p = data_; return p != nullptr ? *p : *reinterpret_cast<const ::relation::BlackItem*>( &::relation::_BlackItem_default_instance_); } inline const ::relation::BlackItem& MSG_OperateBlackList_CSC::data() const { // @@protoc_insertion_point(field_get:relation.MSG_OperateBlackList_CSC.data) return _internal_data(); } inline ::relation::BlackItem* MSG_OperateBlackList_CSC::release_data() { // @@protoc_insertion_point(field_release:relation.MSG_OperateBlackList_CSC.data) _has_bits_[0] &= ~0x00000001u; ::relation::BlackItem* temp = data_; data_ = nullptr; return temp; } inline ::relation::BlackItem* MSG_OperateBlackList_CSC::_internal_mutable_data() { _has_bits_[0] |= 0x00000001u; if (data_ == nullptr) { auto* p = CreateMaybeMessage<::relation::BlackItem>(GetArenaNoVirtual()); data_ = p; } return data_; } inline ::relation::BlackItem* MSG_OperateBlackList_CSC::mutable_data() { // @@protoc_insertion_point(field_mutable:relation.MSG_OperateBlackList_CSC.data) return _internal_mutable_data(); } inline void MSG_OperateBlackList_CSC::set_allocated_data(::relation::BlackItem* data) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); if (message_arena == nullptr) { delete data_; } if (data) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; if (message_arena != submessage_arena) { data = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, data, submessage_arena); } _has_bits_[0] |= 0x00000001u; } else { _has_bits_[0] &= ~0x00000001u; } data_ = data; // @@protoc_insertion_point(field_set_allocated:relation.MSG_OperateBlackList_CSC.data) } // optional bool success = 4; inline bool MSG_OperateBlackList_CSC::_internal_has_success() const { bool value = (_has_bits_[0] & 0x00000008u) != 0; return value; } inline bool MSG_OperateBlackList_CSC::has_success() const { return _internal_has_success(); } inline void MSG_OperateBlackList_CSC::clear_success() { success_ = false; _has_bits_[0] &= ~0x00000008u; } inline bool MSG_OperateBlackList_CSC::_internal_success() const { return success_; } inline bool MSG_OperateBlackList_CSC::success() const { // @@protoc_insertion_point(field_get:relation.MSG_OperateBlackList_CSC.success) return _internal_success(); } inline void MSG_OperateBlackList_CSC::_internal_set_success(bool value) { _has_bits_[0] |= 0x00000008u; success_ = value; } inline void MSG_OperateBlackList_CSC::set_success(bool value) { _internal_set_success(value); // @@protoc_insertion_point(field_set:relation.MSG_OperateBlackList_CSC.success) } // ------------------------------------------------------------------- // MSG_ChangeNickName_CSC // optional uint64 charid = 1; inline bool MSG_ChangeNickName_CSC::_internal_has_charid() const { bool value = (_has_bits_[0] & 0x00000002u) != 0; return value; } inline bool MSG_ChangeNickName_CSC::has_charid() const { return _internal_has_charid(); } inline void MSG_ChangeNickName_CSC::clear_charid() { charid_ = PROTOBUF_ULONGLONG(0); _has_bits_[0] &= ~0x00000002u; } inline ::PROTOBUF_NAMESPACE_ID::uint64 MSG_ChangeNickName_CSC::_internal_charid() const { return charid_; } inline ::PROTOBUF_NAMESPACE_ID::uint64 MSG_ChangeNickName_CSC::charid() const { // @@protoc_insertion_point(field_get:relation.MSG_ChangeNickName_CSC.charid) return _internal_charid(); } inline void MSG_ChangeNickName_CSC::_internal_set_charid(::PROTOBUF_NAMESPACE_ID::uint64 value) { _has_bits_[0] |= 0x00000002u; charid_ = value; } inline void MSG_ChangeNickName_CSC::set_charid(::PROTOBUF_NAMESPACE_ID::uint64 value) { _internal_set_charid(value); // @@protoc_insertion_point(field_set:relation.MSG_ChangeNickName_CSC.charid) } // optional string nickname = 2; inline bool MSG_ChangeNickName_CSC::_internal_has_nickname() const { bool value = (_has_bits_[0] & 0x00000001u) != 0; return value; } inline bool MSG_ChangeNickName_CSC::has_nickname() const { return _internal_has_nickname(); } inline void MSG_ChangeNickName_CSC::clear_nickname() { nickname_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); _has_bits_[0] &= ~0x00000001u; } inline const std::string& MSG_ChangeNickName_CSC::nickname() const { // @@protoc_insertion_point(field_get:relation.MSG_ChangeNickName_CSC.nickname) return _internal_nickname(); } inline void MSG_ChangeNickName_CSC::set_nickname(const std::string& value) { _internal_set_nickname(value); // @@protoc_insertion_point(field_set:relation.MSG_ChangeNickName_CSC.nickname) } inline std::string* MSG_ChangeNickName_CSC::mutable_nickname() { // @@protoc_insertion_point(field_mutable:relation.MSG_ChangeNickName_CSC.nickname) return _internal_mutable_nickname(); } inline const std::string& MSG_ChangeNickName_CSC::_internal_nickname() const { return nickname_.GetNoArena(); } inline void MSG_ChangeNickName_CSC::_internal_set_nickname(const std::string& value) { _has_bits_[0] |= 0x00000001u; nickname_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); } inline void MSG_ChangeNickName_CSC::set_nickname(std::string&& value) { _has_bits_[0] |= 0x00000001u; nickname_.SetNoArena( &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); // @@protoc_insertion_point(field_set_rvalue:relation.MSG_ChangeNickName_CSC.nickname) } inline void MSG_ChangeNickName_CSC::set_nickname(const char* value) { GOOGLE_DCHECK(value != nullptr); _has_bits_[0] |= 0x00000001u; nickname_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:relation.MSG_ChangeNickName_CSC.nickname) } inline void MSG_ChangeNickName_CSC::set_nickname(const char* value, size_t size) { _has_bits_[0] |= 0x00000001u; nickname_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast<const char*>(value), size)); // @@protoc_insertion_point(field_set_pointer:relation.MSG_ChangeNickName_CSC.nickname) } inline std::string* MSG_ChangeNickName_CSC::_internal_mutable_nickname() { _has_bits_[0] |= 0x00000001u; return nickname_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } inline std::string* MSG_ChangeNickName_CSC::release_nickname() { // @@protoc_insertion_point(field_release:relation.MSG_ChangeNickName_CSC.nickname) if (!_internal_has_nickname()) { return nullptr; } _has_bits_[0] &= ~0x00000001u; return nickname_.ReleaseNonDefaultNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } inline void MSG_ChangeNickName_CSC::set_allocated_nickname(std::string* nickname) { if (nickname != nullptr) { _has_bits_[0] |= 0x00000001u; } else { _has_bits_[0] &= ~0x00000001u; } nickname_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), nickname); // @@protoc_insertion_point(field_set_allocated:relation.MSG_ChangeNickName_CSC.nickname) } // optional bool success = 3; inline bool MSG_ChangeNickName_CSC::_internal_has_success() const { bool value = (_has_bits_[0] & 0x00000004u) != 0; return value; } inline bool MSG_ChangeNickName_CSC::has_success() const { return _internal_has_success(); } inline void MSG_ChangeNickName_CSC::clear_success() { success_ = false; _has_bits_[0] &= ~0x00000004u; } inline bool MSG_ChangeNickName_CSC::_internal_success() const { return success_; } inline bool MSG_ChangeNickName_CSC::success() const { // @@protoc_insertion_point(field_get:relation.MSG_ChangeNickName_CSC.success) return _internal_success(); } inline void MSG_ChangeNickName_CSC::_internal_set_success(bool value) { _has_bits_[0] |= 0x00000004u; success_ = value; } inline void MSG_ChangeNickName_CSC::set_success(bool value) { _internal_set_success(value); // @@protoc_insertion_point(field_set:relation.MSG_ChangeNickName_CSC.success) } #ifdef __GNUC__ #pragma GCC diagnostic pop #endif // __GNUC__ // ------------------------------------------------------------------- // ------------------------------------------------------------------- // ------------------------------------------------------------------- // ------------------------------------------------------------------- // ------------------------------------------------------------------- // ------------------------------------------------------------------- // ------------------------------------------------------------------- // ------------------------------------------------------------------- // ------------------------------------------------------------------- // ------------------------------------------------------------------- // ------------------------------------------------------------------- // ------------------------------------------------------------------- // ------------------------------------------------------------------- // ------------------------------------------------------------------- // ------------------------------------------------------------------- // ------------------------------------------------------------------- // ------------------------------------------------------------------- // ------------------------------------------------------------------- // ------------------------------------------------------------------- // @@protoc_insertion_point(namespace_scope) } // namespace relation PROTOBUF_NAMESPACE_OPEN template <> struct is_proto_enum< ::relation::RelationType> : ::std::true_type {}; template <> inline const EnumDescriptor* GetEnumDescriptor< ::relation::RelationType>() { return ::relation::RelationType_descriptor(); } PROTOBUF_NAMESPACE_CLOSE // @@protoc_insertion_point(global_scope) #include <google/protobuf/port_undef.inc> #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_relation_2eproto
[ "dblegendsmud@gmail.com" ]
dblegendsmud@gmail.com
5d5865f4f1dd8b4269308553e5d438517e145af7
ea3a1002436f10cf34f7eab781441304223183bf
/clockIndentify/live.h
2debd088ef5fed94fcf9e1d36992b4d35b1a4bcb
[]
no_license
paldn/ResolveOpenCvRTSPFlickering
dfdbaa82a1ee0390fff2a49491f916bfa5da8670
aa68016c7c970a1cceb8328e5dc6176df2513829
refs/heads/master
2021-08-26T09:27:35.471567
2017-11-23T01:31:11
2017-11-23T01:31:11
111,654,655
0
0
null
null
null
null
UTF-8
C++
false
false
578
h
#pragma once #include "pch.h" #include <iostream> #include <memory> #include <string> using namespace std; namespace live { class Pusher { public: Pusher(); ~Pusher(); int Init(string url,string url2); int WritePacket(shared_ptr<AVPacket> packet); shared_ptr<AVPacket> ReadPacketFromSource(); private: int OpenInput(string url); int OpenOutput(string url); void av_packet_rescale_ts(AVPacket *pkt, AVRational src_tb, AVRational dst_tb); private: char url[256]; AVFormatContext *inputContext = nullptr; AVFormatContext *outputContext = nullptr; }; }
[ "Paldin@live.com" ]
Paldin@live.com
b3cea2f811981b7d53a2bd123f5d7b9fa4e6210c
ddaef91231e3a90fabbda68079b9ec43c24abc68
/libs/Structure/include/ST/CaptureSession.h
fa4ab8f79cca974a95c2224066cc307a4c6d43f0
[ "MIT" ]
permissive
gallagher-tech/ofxStructureCore
b69142c59d6ce009749568710e7c267fb08d66aa
00e1f5783ac21d3ef1b985fb8cb80431879232ca
refs/heads/master
2020-12-23T07:00:45.599948
2020-02-17T05:49:05
2020-02-17T05:49:05
237,076,758
0
0
MIT
2020-01-29T20:34:31
2020-01-29T20:34:30
null
UTF-8
C++
false
false
8,058
h
/* CaptureSession.h Copyright © 2017 Occipital, Inc. All rights reserved. This file is part of the Structure SDK. Unauthorized copying of this file, via any medium is strictly prohibited. Proprietary and confidential. http://structure.io */ #pragma once #include <ST/MathTypes.h> #include <ST/CaptureSessionTypes.h> namespace ST { //------------------------------------------------------------------------------ struct CaptureSession; struct CaptureSessionSample; struct BridgeEngineInternalState; //------------------------------------------------------------------------------ /** @brief The interface for CaptureSession delegates (CaptureSession::setDelegate). */ struct ST_API CaptureSessionDelegate { virtual ~CaptureSessionDelegate() {} /** @brief Gets called when any type of data is streamed from CaptureSession. @param session The parent CaptureSession this delegate is attached to. @param sample The streamed data. @see CaptureSessionSample */ virtual void captureSessionDidOutputSample(CaptureSession* session, const CaptureSessionSample& sample) = 0; /** @brief Gets called when a lone visible frame gets sent through before tracking is running. This can be ignored for most users. @param session The parent CaptureSession this delegate is attached to. @param sample The streamed data. @see CaptureSessionSample */ virtual void captureSessionDidOutputEarlySample(CaptureSession* session, const CaptureSessionSample& sample) {} /** @brief Gets called when an incomplete sample is dropped or streamed from CaptureSession. This can be ignored for most users. @param session The parent CaptureSession this delegate is attached to. @param sample The streamed data. @see CaptureSessionSample */ virtual void captureSessionDidDropPartiallySynchronizedSample(CaptureSession* session, const CaptureSessionSample& sample) {} /** @brief Gets called when the state of streaming changes. @see CaptureSessionEventId @param session The parent CaptureSession this delegate is attached to. @param event The event identifier. */ virtual void captureSessionEventDidOccur(CaptureSession* session, CaptureSessionEventId event) {} }; //------------------------------------------------------------------------------ /** @brief The main context for connecting to and streaming data from a Structure Core. You will need to create a CaptureSessionDelegate instance in order to receive samples. Example initialization: @code{.cpp} struct MyCaptureSessionDelegate : public ST::CaptureSessionDelegate { void captureSessionDidOutputSample (CaptureSession* session, const CaptureSessionSample& sample) override { switch (sample.type) { case ST::CaptureSessionSample::Type::SynchronizedFrames: // we have sync'd frames! // ST::Matrix4 cameraPose = ST::Matrix4::nan(); // bridgeEngine.provideRgbdFrame(sample.depthFrame, sample.visibleFrame, cameraPose); break; case ST::CaptureSessionSample::Type::AccelerometerEvent: // we have accel data! // bridgeEngine.provideAccelData(sample.accelerometerEvent); break; case ST::CaptureSessionSample::Type::GyroscopeEvent: // we have gyro data! // bridgeEngine.provideGyroData(sample.gyroscopeEvent); break; }; } }; // configure the options to stream everything needed for tracking ST::CaptureSessionSettings settings; settings.structureCore.depthEnabled = true; settings.structureCore.visibleEnabled = true; settings.structureCore.accelerometerEnabled = true; settings.structureCore.gyroscopeEnabled = true; // create your delegate class MyCaptureSessionDelegate delegate; // attach the delegate to a CaptureSession ST::CaptureSession captureSession; captureSession.setDelegate(&delegate); // apply settings and start streaming! captureSession.startMonitoring(settings); captureSession.startStreaming(); @endcode */ struct ST_API CaptureSession { /** @brief Constructor. */ CaptureSession(); ~CaptureSession(); /** @brief Attach a CaptureSessionDelegate to send output samples to. The delegate must be set prior to configuring the CaptureSession (@ref startMonitoring). */ void setDelegate(CaptureSessionDelegate* delegate); /** @brief Initializes the CaptureSession and prepares it to start streaming data. Must be called at least once before streaming is started. If an error occurs, the captureSessionEventDidOccur delegate method will trigger. @see CaptureSessionDelegate::captureSessionEventDidOccur @param settings Settings for the capture session @return True, if able to initialize the session using the provided settings. */ bool startMonitoring(const CaptureSessionSettings& settings); /** @brief Attempt to start streaming data from a specified source. Streaming will start immediately after. Sample data is delivered to the delegate via CaptureSessionDelegate::captureSessionDidOutputSample. If an error occurs, the captureSessionEventDidOccur delegate method will trigger. @see CaptureSessionDelegate::captureSessionEventDidOccur @return True, if able to initialize. Otherwise, false. */ bool startStreaming(); /** @brief Stop streaming from the specified source. */ void stopStreaming(); /** @brief Re-initialize streaming from the specified source. Note that a Structure Core will be disconnected entirely for a brief moment after. @return True, if able to reboot the source. Otherwise, false. */ bool rebootCaptureSource(); /** @brief Obtain the serial number for a connected Structure Core. Deprecated, use sensorInfo. */ const char* sensorSerialNumber() const; /** @brief Obtain information about the sensor this CaptureSession is using. */ const CaptureSessionSensorInfo& sensorInfo() const; /** @brief Returns the extrinsic transformation between the IMU and the depth camera - convention of the returned matrix is "IMU_centroid from depth". This function requires a Structure Core to be connected and initialized. @see initialize */ const Matrix4 getImuFromDepthExtrinsics () const; /** @brief Returns the extrinsic transformation between the IMU and the visible camera - convention of the returned matrix is "IMU_centroid from visible". This function requires a Structure Core to be connected and initialized. @see initialize */ const Matrix4 getImuFromVisibleExtrinsics () const; /** @brief Return the USB connection version between the host and Structure Core. Full streaming functionality is only available under CaptureSessionUSBVersion::USB3. */ CaptureSessionUSBVersion USBVersion() const; /** @brief Set the exposure and gain of the visible frames from a Structure Core. */ void setVisibleCameraExposureAndGain(float exposure, float gain); /** @brief Get the exposure and gain of the visible frames from a Structure Core. */ void getVisibleCameraExposureAndGain(float* exposure, float* gain) const; /** @brief Set the exposure and gain of the infrared frames from a Structure Core. */ void setInfraredCamerasExposureAndGain(float exposure, float gain); /** @brief Get the exposure and gain of the infrared frames from a Structure Core. */ void getInfraredCamerasExposureAndGain(float* exposure, float* gain) const; /** @brief Returns the settings provided during initialization. */ const CaptureSessionSettings& settings() const; void persistExposureAndGainSettings(bool persist_infrared); void clearSavedSettings(); ST_DECLARE_OPAQUE_INTERNALS(CaptureSession); }; //------------------------------------------------------------------------------ }
[ "thenry@gallagherdesign.com" ]
thenry@gallagherdesign.com
ec8206daf9b9ef71ba7802bd1fb12f773f2d7590
77eb167185c6ae0743e3d698ff52261255db40b4
/framework/shape.hpp
7056a262736af91337ec549130fe39f401cdcd3e
[ "MIT" ]
permissive
elmeyer/programmiersprachen-raytracer
c387f4cd871299e2e6e693e420ad2f42dd351e68
482b81b10e2f47ca98e6aa93e0bfd052cc0b1d3f
refs/heads/master
2021-01-18T05:06:00.457319
2015-08-11T06:50:16
2015-08-11T06:50:16
37,532,633
0
0
null
2015-06-16T13:42:13
2015-06-16T13:42:12
null
UTF-8
C++
false
false
843
hpp
#ifndef BUW_SHAPE_HPP #define BUW_SHAPE_HPP #define _USE_MATH_DEFINES #include <iostream> #include <string> #include <glm/glm.hpp> #include "material.hpp" #include "ray.hpp" class Shape { public: Shape(); /* virtual */ ~Shape(); Shape(std::string const& name); Shape(Material const& material); Shape(std::string const& name, Material const& material); std::string const& getName() const; Material const& getMaterial() const; virtual double area() const = 0; virtual double volume() const = 0; virtual std::ostream& print(std::ostream& os) const; virtual bool intersect(Ray const& r, float& t) = 0; // pure virtual private: std::string name_; Material material_; }; std::ostream& operator<<(std::ostream& os, Shape const& s); #endif
[ "lars.meyer@uni-weimar.de" ]
lars.meyer@uni-weimar.de
780eaf9ce4c6c1b46a7eddf72f480abbed212459
98b1e51f55fe389379b0db00365402359309186a
/homework_6/problem_2/10x10/0.827/U
a5b1191fd2cac34f29d74c52f273d8e4354e18ef
[]
no_license
taddyb/597-009
f14c0e75a03ae2fd741905c4c0bc92440d10adda
5f67e7d3910e3ec115fb3f3dc89a21dcc9a1b927
refs/heads/main
2023-01-23T08:14:47.028429
2020-12-03T13:24:27
2020-12-03T13:24:27
311,713,551
1
0
null
null
null
null
UTF-8
C++
false
false
1,147
/*--------------------------------*- C++ -*----------------------------------*\ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org \\ / A nd | Version: 8 \\/ M anipulation | \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format ascii; class volVectorField; location "0.827"; object U; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // dimensions [0 1 -1 0 0 0 0]; internalField uniform (2 2 0); boundaryField { left { type fixedValue; value uniform (2 2 0); } right { type zeroGradient; } up { type zeroGradient; } down { type fixedValue; value uniform (2 2 0); } frontAndBack { type empty; } } // ************************************************************************* //
[ "tbindas@pop-os.localdomain" ]
tbindas@pop-os.localdomain
d1983814ee1bd05ce64a20e572cd5e97c2a85612
086fa2a98f3abd62b793b188ce73b8b2c232f104
/EjerciciosDevC++/Ejercicio9-if/main.cpp
4dfceac56bc59501c86b262f3513ea1e8258467f
[]
no_license
helens1/Lenguaje-de-Programacion-II
f720b8f5b26f8e3531c489dbeb1c211a74caebf2
9fc14c69b9885706ecd93d2bdd7d1d098ce48400
refs/heads/master
2022-12-25T04:42:19.583791
2020-10-12T15:43:45
2020-10-12T15:43:45
297,504,491
1
0
null
null
null
null
UTF-8
C++
false
false
336
cpp
#include <iostream> using namespace std; int main(int argc, char** argv) { int numeroSecreto = 7; int numero = 0; cout << "Ingresaste el numero: "; cin >> numero; cout << endl; if (numero == numeroSecreto) { cout << "Adivinaste el numero secreto: " << numero; } else { cout << "No adivinaste "; } return 0; }
[ "hele.suarez@unah.hn" ]
hele.suarez@unah.hn
96a1cfc2261d91b233044770c856cda355b78e5c
76392943c82a44c4d3eb63d5b382d24ddb394ef9
/.build/uno/src/sketch.cpp
f78780d1831713d83bee4f053a34e1d8d3edef3c
[]
no_license
efatsi/auto-slider
124f601f544221d69db838aa992883a7f4c9a1bd
ba93913f6537d609e3c617eaac7100c8b6a877c6
refs/heads/master
2020-04-13T07:59:21.817404
2013-06-27T22:45:58
2013-06-27T22:45:58
null
0
0
null
null
null
null
UTF-8
C++
false
false
3,279
cpp
#include <Arduino.h> void setup(); void loop(); void updateEncoder(); void increment(); void decrement(); void display(); void setLights(); void moveIt(); void step(); int distanceInterval(); void wait(); void turnOnGreenLight(); #line 1 "src/sketch.ino" #include <DoubleCounter.h> #include <Servo.h> const int serialPin = 8; const int registerClockPin = 9; const int serialClockPin = 10; const int servoPin = 5; DoubleCounter counter(serialPin, registerClockPin, serialClockPin); Servo servo; int encoderPin1 = 2; int encoderPin2 = 3; int buttonPin = 6; int switchPin = 7; volatile int lastEncoded = 0; long lastencoderValue = 0; int lastMSB = 0; int lastLSB = 0; // timeInterval, distanceInterval, reverse int lights[] = {12, 11, 4}; int values[] = {1, 1, 0}; int mins[] = {1, 1, 0}; int maxes[] = {99, 10, 1}; int position = 0; long stepStart; int greenLight = 13; void setup() { counter.init(); servo.attach(servoPin); pinMode(encoderPin1, INPUT); pinMode(encoderPin2, INPUT); pinMode(buttonPin, INPUT); pinMode(switchPin, INPUT); digitalWrite(encoderPin1, HIGH); digitalWrite(encoderPin2, HIGH); for (int i = 0; i < 3; i++) { // Multiply by 4 since updateEncoder() // increments/decrements values by 4 // (read with division) values[i] *= 4; mins[i] *= 4; maxes[i] *= 4; pinMode(lights[i], OUTPUT); } pinMode(greenLight, OUTPUT); attachInterrupt(0, updateEncoder, CHANGE); attachInterrupt(1, updateEncoder, CHANGE); } void loop() { if (digitalRead(switchPin) == HIGH) { turnOnGreenLight(); moveIt(); digitalWrite(greenLight, LOW); } else { display(); if (digitalRead(buttonPin) == LOW) { position = (position + 1) % 3; display(); delay(250); } } } void updateEncoder() { int MSB = digitalRead(encoderPin1); int LSB = digitalRead(encoderPin2); int encoded = (MSB << 1) | LSB; int sum = (lastEncoded << 2) | encoded; if (sum == 0b1101 || sum == 0b0100 || sum == 0b0010 || sum == 0b1011) increment(); if (sum == 0b1110 || sum == 0b0111 || sum == 0b0001 || sum == 0b1000) decrement(); lastEncoded = encoded; } void increment() { values[position] ++; if (values[position] > maxes[position]) { values[position] = maxes[position]; } } void decrement() { values[position] --; if (values[position] < mins[position]) { values[position] = mins[position]; } } void display() { counter.draw((values[position] / 4)); setLights(); } void setLights() { for (int i = 0; i < 3; i++) { if (i == position) { digitalWrite(lights[i], HIGH); } else { digitalWrite(lights[i], LOW); } } } void moveIt() { while (digitalRead(switchPin) == HIGH) { stepStart = millis(); step(); wait(); } } void step() { int reverse = (values[2] / 4); if (reverse == 0) { servo.write(92 + distanceInterval()); } else { servo.write(93 - distanceInterval()); } delay(400); servo.write(93); } int distanceInterval() { return 5 + (values[1] / 4); } void wait() { while(millis() - stepStart < (values[0] / 4) * 1000) {} } void turnOnGreenLight() { for (int i = 0; i < 3; i++) { digitalWrite(lights[i], LOW); } digitalWrite(greenLight, HIGH); }
[ "eli.fatsi@viget.com" ]
eli.fatsi@viget.com
758ed50cac4d97fc1e6448713d404f8684bcf72e
7d4ab2326de34cf1d149b4d664920beebe7e60f5
/machine/mipssim.cc
f5ed7ed5c3a26fc769a1cc82d450a903a1a3c3a8
[]
no_license
SebastienLAURET/nachos
7455d06a70addc44dab3bfa7091ae790a97ed3de
744bd81ea00401cb9b57e670609ffe55c7b73b59
refs/heads/master
2021-01-20T04:54:25.684201
2017-04-28T22:33:28
2017-04-28T22:33:28
84,239,421
0
0
null
null
null
null
UTF-8
C++
false
false
20,626
cc
// mipssim.cc -- simulate a MIPS R2/3000 processor // // This code has been adapted from Ousterhout's MIPSSIM package. // Byte ordering is little-endian, so we can be compatible with // DEC RISC systems. // // DO NOT CHANGE -- part of the machine emulation // // Copyright (c) 1992-1993 The Regents of the University of California. // All rights reserved. See copyright.h for copyright notice and limitation // of liability and disclaimer of warranty provisions. #pragma implementation "machine/machine.h" #pragma implementation "machine/mipssim.h" #include "copyright.h" #include "machine.h" #include "mipssim.h" #include "system.h" static void Mult(int a, int b, bool signedArith, int* hiPtr, int* loPtr); /* This function is executed by the child process only. It sets the registers to the state they would have if the operating system was executing on the simulated hardware, which it isn't. Therefore, this magic is necessary to give the registers the contents they would have if it was true. */ void Machine::Fix_Fork_Registers() { // Do any delayed load operation, because it would long since have occurred // if the OS was running on the simulated hardware // This is necessary only if a LOAD immediately precedes the SYSTEMCALL, // which it almost certainly wouldn't. DelayedLoad(0, 0); // Advance program counters past the SYSTEMCALL instruction registers[PrevPCReg] = registers[PCReg]; // PrevPCReg is set for debugging, // in case we are jumping into // lala-land registers[PCReg] = registers[NextPCReg]; registers[NextPCReg] = registers[NextPCReg] + 4; // Child process returns 0 from fork (); register 2 holds return values in // our version of GCC registers[2] = 0; } //---------------------------------------------------------------------- // Machine::Run // Simulate the execution of a user-level program on Nachos. // Called by the kernel when the program starts up; never returns. // // This routine is re-entrant, in that it can be called multiple // times concurrently -- one for each thread executing user code. //---------------------------------------------------------------------- void Machine::Run() { Instruction *instr = new Instruction; // storage for decoded instruction if(DebugIsEnabled('m')) printf("Starting thread \"%s\" at time %d\n", currentThread->getName(), stats->totalTicks); interrupt->setStatus(UserMode); for (;;) { #ifdef REMOTE_USER_PROGRAM_DEBUGGING int addr; bool trapFlag = singleStep; if (breakpoints.queryBreakpoint(registers[PCReg], 1, SoftwareBp, addr)) BREAKPOINT(addr); #endif OneInstruction(instr); interrupt->OneTick(); #ifdef REMOTE_USER_PROGRAM_DEBUGGING // FIXME : We need to explain here how the remembered value of singleStep in // trapFlag is necessary and why both must be true in the test for this condition if ((singleStep)&&(trapFlag)) BREAKPOINT(registers[PCReg]); #endif //REMOTE_USER_PROGRAM_DEBUGGING } } //---------------------------------------------------------------------- // TypeToReg // Retrieve the register # referred to in an instruction. //---------------------------------------------------------------------- static int TypeToReg(RegType reg, Instruction *instr) { switch (reg) { case RS: return instr->rs; case RT: return instr->rt; case RD: return instr->rd; case EXTRA: return instr->extra; default: return -1; } } //---------------------------------------------------------------------- // Machine::OneInstruction // Execute one instruction from a user-level program // // If there is any kind of exception or interrupt, we invoke the // exception handler, and when it returns, we return to Run(), which // will re-invoke us in a loop. This allows us to // re-start the instruction execution from the beginning, in // case any of our state has changed. On a syscall, // the OS software must increment the PC so execution begins // at the instruction immediately after the syscall. // // This routine is re-entrant, in that it can be called multiple // times concurrently -- one for each thread executing user code. // We get re-entrancy by never caching any data -- we always re-start the // simulation from scratch each time we are called (or after trapping // back to the Nachos kernel on an exception or interrupt), and we always // store all data back to the machine registers and memory before // leaving. This allows the Nachos kernel to control our behavior // by controlling the contents of memory, the translation table, // and the register set. //---------------------------------------------------------------------- void Machine::OneInstruction(Instruction *instr) { unsigned int raw; int nextLoadReg = 0; int nextLoadValue = 0; // record delayed load operation, to apply // in the future // Fetch instruction if (!machine->ReadMem(registers[PCReg], 4, &raw)) return; // exception occurred instr->Decode(raw); if (DebugIsEnabled('m')) { struct OpString *str = &opStrings[instr->opCode]; ASSERT(instr->opCode <= MaxOpcode); printf("At PC = 0x%x: ", registers[PCReg]); printf(str->string, TypeToReg(str->args[0], instr), TypeToReg(str->args[1], instr), TypeToReg(str->args[2], instr)); printf("\n"); } // Compute next pc, but don't install in case there's an error or branch. int pcAfter = registers[NextPCReg] + 4; int sum, diff, tmp, value; unsigned int rs, rt, imm; // Execute the instruction (cf. Kane's book) switch (instr->opCode) { case OP_ADD: sum = registers[instr->rs] + registers[instr->rt]; if (!((registers[instr->rs] ^ registers[instr->rt]) & SIGN_BIT) && ((registers[instr->rs] ^ sum) & SIGN_BIT)) { RaiseException(OverflowException, 0); return; } registers[instr->rd] = sum; break; case OP_ADDI: sum = registers[instr->rs] + instr->extra; if (!((registers[instr->rs] ^ instr->extra) & SIGN_BIT) && ((instr->extra ^ sum) & SIGN_BIT)) { RaiseException(OverflowException, 0); return; } registers[instr->rt] = sum; break; case OP_ADDIU: registers[instr->rt] = registers[instr->rs] + instr->extra; break; case OP_ADDU: registers[instr->rd] = registers[instr->rs] + registers[instr->rt]; break; case OP_AND: registers[instr->rd] = registers[instr->rs] & registers[instr->rt]; break; case OP_ANDI: registers[instr->rt] = registers[instr->rs] & (instr->extra & 0xffff); break; case OP_BEQ: if (registers[instr->rs] == registers[instr->rt]) pcAfter = registers[NextPCReg] + IndexToAddr(instr->extra); break; case OP_BGEZAL: registers[R31] = registers[NextPCReg] + 4; case OP_BGEZ: if (!(registers[instr->rs] & SIGN_BIT)) pcAfter = registers[NextPCReg] + IndexToAddr(instr->extra); break; case OP_BGTZ: if (registers[instr->rs] > 0) pcAfter = registers[NextPCReg] + IndexToAddr(instr->extra); break; case OP_BLEZ: if (registers[instr->rs] <= 0) pcAfter = registers[NextPCReg] + IndexToAddr(instr->extra); break; case OP_BLTZAL: registers[R31] = registers[NextPCReg] + 4; case OP_BLTZ: if (registers[instr->rs] & SIGN_BIT) pcAfter = registers[NextPCReg] + IndexToAddr(instr->extra); break; case OP_BNE: if (registers[instr->rs] != registers[instr->rt]) pcAfter = registers[NextPCReg] + IndexToAddr(instr->extra); break; #ifdef REMOTE_USER_PROGRAM_DEBUGGING case OP_BREAK: // Under normal circumstances, this is not used, because the simulator // has an unbounded number of hardware breakpoint registers. // Breakpoints are managed with a lookup table, rather than replacing // instructions with a BREAK instruction. BREAKPOINT(registers[PCReg]); /* Regress the PC registers so that we re-execute the instruction that had been replaced by breakpoint instruction. */ pcAfter = registers[NextPCReg]; registers[NextPCReg] = registers[PCReg]; break; #endif case OP_DIV: if (registers[instr->rt] == 0) { registers[LoReg] = 0; registers[HiReg] = 0; } else { registers[LoReg] = registers[instr->rs] / registers[instr->rt]; registers[HiReg] = registers[instr->rs] % registers[instr->rt]; } break; case OP_DIVU: rs = (unsigned int) registers[instr->rs]; rt = (unsigned int) registers[instr->rt]; if (rt == 0) { registers[LoReg] = 0; registers[HiReg] = 0; } else { tmp = rs / rt; registers[LoReg] = (int) tmp; tmp = rs % rt; registers[HiReg] = (int) tmp; } break; case OP_JAL: registers[R31] = registers[NextPCReg] + 4; case OP_J: pcAfter = (pcAfter & 0xf0000000) | IndexToAddr(instr->extra); break; case OP_JALR: registers[instr->rd] = registers[NextPCReg] + 4; case OP_JR: pcAfter = registers[instr->rs]; break; case OP_LB: case OP_LBU: tmp = registers[instr->rs] + instr->extra; if (!machine->ReadMem(tmp, 1, &value)) return; if ((value & 0x80) && (instr->opCode == OP_LB)) value |= 0xffffff00; else value &= 0xff; nextLoadReg = instr->rt; nextLoadValue = value; break; case OP_LH: case OP_LHU: tmp = registers[instr->rs] + instr->extra; if (tmp & 0x1) { RaiseException(AddressErrorException, tmp); return; } if (!machine->ReadMem(tmp, 2, &value)) return; if ((value & 0x8000) && (instr->opCode == OP_LH)) value |= 0xffff0000; else value &= 0xffff; nextLoadReg = instr->rt; nextLoadValue = value; break; case OP_LUI: DEBUG('m', "Executing: LUI r%d,%d\n", instr->rt, instr->extra); registers[instr->rt] = instr->extra << 16; break; case OP_LW: tmp = registers[instr->rs] + instr->extra; if (tmp & 0x3) { RaiseException(AddressErrorException, tmp); return; } if (!machine->ReadMem(tmp, 4, &value)) return; nextLoadReg = instr->rt; nextLoadValue = value; break; case OP_LWL: tmp = registers[instr->rs] + instr->extra; // ReadMem assumes all 4 byte requests are aligned on an even // word boundary. Also, the little endian/big endian swap code would // fail (I think) if the other cases are ever exercised. ASSERT((tmp & 0x3) == 0); if (!machine->ReadMem(tmp, 4, &value)) return; if (registers[LoadReg] == instr->rt) nextLoadValue = registers[LoadValueReg]; else nextLoadValue = registers[instr->rt]; switch (tmp & 0x3) { case 0: nextLoadValue = value; break; case 1: nextLoadValue = (nextLoadValue & 0xff) | (value << 8); break; case 2: nextLoadValue = (nextLoadValue & 0xffff) | (value << 16); break; case 3: nextLoadValue = (nextLoadValue & 0xffffff) | (value << 24); break; } nextLoadReg = instr->rt; break; case OP_LWR: tmp = registers[instr->rs] + instr->extra; // ReadMem assumes all 4 byte requests are aligned on an even // word boundary. Also, the little endian/big endian swap code would // fail (I think) if the other cases are ever exercised. ASSERT((tmp & 0x3) == 0); if (!machine->ReadMem(tmp, 4, &value)) return; if (registers[LoadReg] == instr->rt) nextLoadValue = registers[LoadValueReg]; else nextLoadValue = registers[instr->rt]; switch (tmp & 0x3) { case 0: nextLoadValue = (nextLoadValue & 0xffffff00) | ((value >> 24) & 0xff); break; case 1: nextLoadValue = (nextLoadValue & 0xffff0000) | ((value >> 16) & 0xffff); break; case 2: nextLoadValue = (nextLoadValue & 0xff000000) | ((value >> 8) & 0xffffff); break; case 3: nextLoadValue = value; break; } nextLoadReg = instr->rt; break; case OP_MFHI: registers[instr->rd] = registers[HiReg]; break; case OP_MFLO: registers[instr->rd] = registers[LoReg]; break; case OP_MTHI: registers[HiReg] = registers[instr->rs]; break; case OP_MTLO: registers[LoReg] = registers[instr->rs]; break; case OP_MULT: Mult(registers[instr->rs], registers[instr->rt], true, &registers[HiReg], &registers[LoReg]); break; case OP_MULTU: Mult(registers[instr->rs], registers[instr->rt], false, &registers[HiReg], &registers[LoReg]); break; case OP_NOR: registers[instr->rd] = ~(registers[instr->rs] | registers[instr->rt]); break; case OP_OR: registers[instr->rd] = registers[instr->rs] | registers[instr->rt]; break; case OP_ORI: registers[instr->rt] = registers[instr->rs] | (instr->extra & 0xffff); break; case OP_SB: if (!machine->WriteMem((unsigned) (registers[instr->rs] + instr->extra), 1, registers[instr->rt])) return; break; case OP_SH: if (!machine->WriteMem((unsigned) (registers[instr->rs] + instr->extra), 2, registers[instr->rt])) return; break; case OP_SLL: registers[instr->rd] = registers[instr->rt] << instr->extra; break; case OP_SLLV: registers[instr->rd] = registers[instr->rt] << (registers[instr->rs] & 0x1f); break; case OP_SLT: if (registers[instr->rs] < registers[instr->rt]) registers[instr->rd] = 1; else registers[instr->rd] = 0; break; case OP_SLTI: if (registers[instr->rs] < instr->extra) registers[instr->rt] = 1; else registers[instr->rt] = 0; break; case OP_SLTIU: rs = registers[instr->rs]; imm = instr->extra; if (rs < imm) registers[instr->rt] = 1; else registers[instr->rt] = 0; break; case OP_SLTU: rs = registers[instr->rs]; rt = registers[instr->rt]; if (rs < rt) registers[instr->rd] = 1; else registers[instr->rd] = 0; break; case OP_SRA: registers[instr->rd] = registers[instr->rt] >> instr->extra; break; case OP_SRAV: registers[instr->rd] = registers[instr->rt] >> (registers[instr->rs] & 0x1f); break; case OP_SRL: tmp = registers[instr->rt]; tmp >>= instr->extra; registers[instr->rd] = tmp; break; case OP_SRLV: tmp = registers[instr->rt]; tmp >>= (registers[instr->rs] & 0x1f); registers[instr->rd] = tmp; break; case OP_SUB: diff = registers[instr->rs] - registers[instr->rt]; if (((registers[instr->rs] ^ registers[instr->rt]) & SIGN_BIT) && ((registers[instr->rs] ^ diff) & SIGN_BIT)) { RaiseException(OverflowException, 0); return; } registers[instr->rd] = diff; break; case OP_SUBU: registers[instr->rd] = registers[instr->rs] - registers[instr->rt]; break; case OP_SW: if (!machine->WriteMem((unsigned) (registers[instr->rs] + instr->extra), 4, registers[instr->rt])) return; break; case OP_SWL: tmp = registers[instr->rs] + instr->extra; // The little endian/big endian swap code would // fail (I think) if the other cases are ever exercised. ASSERT((tmp & 0x3) == 0); if (!machine->ReadMem((tmp & ~0x3), 4, &value)) return; switch (tmp & 0x3) { case 0: value = registers[instr->rt]; break; case 1: value = (value & 0xff000000) | ((registers[instr->rt] >> 8) & 0xffffff); break; case 2: value = (value & 0xffff0000) | ((registers[instr->rt] >> 16) & 0xffff); break; case 3: value = (value & 0xffffff00) | ((registers[instr->rt] >> 24) & 0xff); break; } if (!machine->WriteMem((tmp & ~0x3), 4, value)) return; break; case OP_SWR: tmp = registers[instr->rs] + instr->extra; // The little endian/big endian swap code would // fail (I think) if the other cases are ever exercised. ASSERT((tmp & 0x3) == 0); if (!machine->ReadMem((tmp & ~0x3), 4, &value)) return; switch (tmp & 0x3) { case 0: value = (value & 0xffffff) | (registers[instr->rt] << 24); break; case 1: value = (value & 0xffff) | (registers[instr->rt] << 16); break; case 2: value = (value & 0xff) | (registers[instr->rt] << 8); break; case 3: value = registers[instr->rt]; break; } if (!machine->WriteMem((tmp & ~0x3), 4, value)) return; break; case OP_SYSCALL: RaiseException(SyscallException, 0); break; case OP_XOR: registers[instr->rd] = registers[instr->rs] ^ registers[instr->rt]; break; case OP_XORI: registers[instr->rt] = registers[instr->rs] ^ (instr->extra & 0xffff); break; case OP_RES: case OP_UNIMP: RaiseException(IllegalInstrException, 0); return; default: ASSERT(false); } // Now we have successfully executed the instruction. // Do any delayed load operation DelayedLoad(nextLoadReg, nextLoadValue); // Advance program counters. registers[PrevPCReg] = registers[PCReg]; // for debugging, in case we // are jumping into lala-land registers[PCReg] = registers[NextPCReg]; registers[NextPCReg] = pcAfter; } //---------------------------------------------------------------------- // Machine::DelayedLoad // Simulate effects of a delayed load. // // NOTE -- RaiseException/CheckInterrupts must also call DelayedLoad, // since any delayed load must get applied before we trap to the kernel. //---------------------------------------------------------------------- /* FIXME: This should be explicitly scheduled in terms of machine ticks, rather than in terms of the next DelayedLoad(0,0), which is the mechanism currently used to flush a pending a load of a nonzero register into its destination. */ void Machine::DelayedLoad(int nextReg, int nextValue) { registers[registers[LoadReg]] = registers[LoadValueReg]; registers[LoadReg] = nextReg; registers[LoadValueReg] = nextValue; // Because the delayed load may have modified R0, and R0 is hardwired to // be zero, restore 0 if the load changed it registers[0] = 0; } //---------------------------------------------------------------------- // Instruction::Decode // Decode a MIPS instruction //---------------------------------------------------------------------- void Instruction::Decode(unsigned int binary_instr) { OpInfo *opPtr; unsigned int value = binary_instr; rs = (value >> 21) & 0x1f; rt = (value >> 16) & 0x1f; rd = (value >> 11) & 0x1f; opPtr = &opTable[(value >> 26) & 0x3f]; opCode = opPtr->opCode; if (opPtr->format == IFMT) { extra = value & 0xffff; if (extra & 0x8000) { extra |= 0xffff0000; } } else if (opPtr->format == RFMT) { extra = (value >> 6) & 0x1f; } else { extra = value & 0x3ffffff; } if (opCode == SPECIAL) { opCode = specialTable[value & 0x3f]; } else if (opCode == BCOND) { int i = value & 0x1f0000; if (i == 0) { opCode = OP_BLTZ; } else if (i == 0x10000) { opCode = OP_BGEZ; } else if (i == 0x100000) { opCode = OP_BLTZAL; } else if (i == 0x110000) { opCode = OP_BGEZAL; } else { opCode = OP_UNIMP; } } } //---------------------------------------------------------------------- // Mult // Simulate R2000 multiplication. // The words at *hiPtr and *loPtr are overwritten with the // double-length result of the multiplication. //---------------------------------------------------------------------- // FIXME: Could we use long longs instead of going through all this pain? static void Mult(int a, int b, bool signedArith, int* hiPtr, int* loPtr) { if ((a == 0) || (b == 0)) { *hiPtr = *loPtr = 0; return; } // Compute the sign of the result, then make everything positive // so unsigned computation can be done in the main loop. bool negative = false; if (signedArith) { if (a < 0) { negative = !negative; a = -a; } if (b < 0) { negative = !negative; b = -b; } } // Compute the result in unsigned arithmetic (check a's bits one at // a time, and add in a shifted value of b). unsigned int bLo = b; unsigned int bHi = 0; unsigned int lo = 0; unsigned int hi = 0; for (int i = 0; i < 32; i++) { if (a & 1) { lo += bLo; if (lo < bLo) // Carry out of the low bits? hi += 1; hi += bHi; if ((a & 0xfffffffe) == 0) break; } bHi <<= 1; if (bLo & 0x80000000) bHi |= 1; bLo <<= 1; a >>= 1; } // If the result is supposed to be negative, compute the two's // complement of the double-word result. if (negative) { hi = ~hi; lo = ~lo; lo++; if (lo == 0) hi++; } *hiPtr = (int) hi; *loPtr = (int) lo; }
[ "lauret_s@epitech.eu" ]
lauret_s@epitech.eu
1dba243d9a9b69691c0bab00d68eee1894d1d9ee
f91df17f35659a26c245fdbfc2354b1aa7861b53
/src/PbBSTNode.h
3b1f38e42a205d936c2e250cdf2f5e47b628fff6
[]
no_license
erdemegemarasli/AVLTree-and-Analysis
d2e432032e4dde2d81a4ca3deeb3eb5ce5303a6a
09aff42ce135e93e5a14392a223f938e6d95cad4
refs/heads/master
2020-05-03T14:59:19.786546
2019-03-31T13:47:58
2019-03-31T13:47:58
178,693,537
0
0
null
null
null
null
UTF-8
C++
false
false
957
h
/* * Title : Heaps and AVL Trees * Author : Erdem Ege Marasli * ID : 21602156 * Section : 2 * Assignment : 3 * Description : PbBSTNode implementation * */ #ifndef PbBSTNode_h #define PbBSTNode_h #include <iostream> #include <string> using namespace std; class PbBSTNode { // a node in the tree private: int item; // a data item in the tree PbBSTNode *leftChildPtr; // pointers to children PbBSTNode *rightChildPtr; public: PbBSTNode(); PbBSTNode(const int&, PbBSTNode* = NULL, PbBSTNode* = NULL); void setItem(const int& nodeItem); int getItem() const; bool isLeaf(); PbBSTNode* getLeftChildPtr() const; PbBSTNode* getRightChildPtr() const; void setLeftChildPtr(PbBSTNode* leftPtr); void setRightChildPtr(PbBSTNode* rightPtr); // friend class - can access private parts friend class PbBST; friend class AVLTree; }; #endif /* PbBSTNode_h */
[ "noreply@github.com" ]
noreply@github.com
02c1a9b1a0dd4f67cf11cd703eefe4f4aeebe2bc
fb7efe44f4d9f30d623f880d0eb620f3a81f0fbd
/third_party/WebKit/Source/core/dom/DocumentModulatorImpl.cpp
dc698e7cb43f31b9213cd64164d626c5003dd7be
[ "BSD-2-Clause", "LGPL-2.1-only", "LGPL-2.0-only", "LGPL-2.0-or-later", "GPL-1.0-or-later", "MIT", "Apache-2.0", "LicenseRef-scancode-warranty-disclaimer", "GPL-2.0-only", "LicenseRef-scancode-other-copyleft", "BSD-3-Clause" ]
permissive
wzyy2/chromium-browser
2644b0daf58f8b3caee8a6c09a2b448b2dfe059c
eb905f00a0f7e141e8d6c89be8fb26192a88c4b7
refs/heads/master
2022-11-23T20:25:08.120045
2018-01-16T06:41:26
2018-01-16T06:41:26
117,618,467
3
2
BSD-3-Clause
2022-11-20T22:03:57
2018-01-16T02:09:10
null
UTF-8
C++
false
false
1,026
cpp
// Copyright 2017 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "core/dom/DocumentModulatorImpl.h" #include "core/loader/modulescript/DocumentModuleScriptFetcher.h" namespace blink { ModulatorImplBase* DocumentModulatorImpl::Create( RefPtr<ScriptState> script_state, ResourceFetcher* resource_fetcher) { return new DocumentModulatorImpl(std::move(script_state), resource_fetcher); } ModuleScriptFetcher* DocumentModulatorImpl::CreateModuleScriptFetcher() { return new DocumentModuleScriptFetcher(fetcher_); } DEFINE_TRACE(DocumentModulatorImpl) { visitor->Trace(fetcher_); ModulatorImplBase::Trace(visitor); } DocumentModulatorImpl::DocumentModulatorImpl(RefPtr<ScriptState> script_state, ResourceFetcher* resource_fetcher) : ModulatorImplBase(std::move(script_state)), fetcher_(resource_fetcher) { DCHECK(fetcher_); } } // namespace blink
[ "jacob-chen@iotwrt.com" ]
jacob-chen@iotwrt.com
7f45fbded5b0a88646180f152250384506fbeece
165be8367f5753b03fae11430b1c3ebf48aa834a
/tools/converter/source/tensorflow/RangeTf.cpp
3484c79e2a67997650b35a5e6b60a63215ed92dd
[ "Apache-2.0" ]
permissive
alibaba/MNN
f21b31e3c62d9ba1070c2e4e931fd9220611307c
c442ff39ec9a6a99c28bddd465d8074a7b5c1cca
refs/heads/master
2023-09-01T18:26:42.533902
2023-08-22T11:16:44
2023-08-22T11:16:44
181,436,799
8,383
1,789
null
2023-09-07T02:01:43
2019-04-15T07:40:18
C++
UTF-8
C++
false
false
693
cpp
// // RangeTf.cpp // MNNConverter // // Created by MNN on 2019/01/31. // Copyright © 2018, Alibaba Group Holding Limited // #include <string.h> #include "TfUtils.hpp" #include "tfOpConverter.hpp" #include "graph.pb.h" DECLARE_OP_CONVERTER(Range); MNN::OpType Range::opType() { return MNN::OpType_Range; } MNN::OpParameter Range::type() { return MNN::OpParameter_Range; } void Range::run(MNN::OpT *dstOp, TmpNode *srcNode) { auto Range = new MNN::RangeT; tensorflow::AttrValue value; if (find_attr_value(srcNode->tfNode, "Tidx", value)) { Range->Tidx = (MNN::DataType)value.type(); } dstOp->main.value = Range; } REGISTER_CONVERTER(Range, Range);
[ "yiliu.cyl@alibaba-inc.com" ]
yiliu.cyl@alibaba-inc.com
7d84594cde38b7aaee6a758a8070da0585f256b8
baed2ef7de880259daf49800dadcbae01972c784
/src/internal/system/EventTest.cpp
d63ead7eabc5cd3198f4106c9a4db84180793728
[]
no_license
yuxiang660/little-bee-socket
53b50c95e09cf6730228a55192d803fbb3dcebf4
4a5040ddc948f0522bf8d9357188857cc18993c6
refs/heads/master
2021-05-22T01:39:43.093264
2020-05-27T15:50:52
2020-05-27T15:50:52
252,908,818
1
0
null
null
null
null
UTF-8
C++
false
false
1,750
cpp
#include "Event.h" #include <gtest/gtest.h> #include <sys/epoll.h> namespace { const int fakeFd = 1; class EventTest : public ::testing::Test { public: EventTest() : event ( fakeFd, [this]() { readDone = true; }, [this]() { writeDone = true; }, [this](int fdKey) { removedFd = fdKey; removeDone = true; }, [this]() { errorDone = true; } ), readDone(false), writeDone(false), removeDone(false), errorDone(false), removedFd(-1) { } cbee::Event event; bool readDone; bool writeDone; bool removeDone; bool errorDone; int removedFd; }; TEST_F(EventTest, readEvent_expectedCallBack) { event.setActiveEvents(cbee::Event::kConnectedOrReadableOrCloseEvent); event.handleEvent(); EXPECT_EQ(false, writeDone); EXPECT_EQ(true, readDone); EXPECT_EQ(false, removeDone); EXPECT_EQ(false, errorDone); } TEST_F(EventTest, writeEvent_expectedCallBack) { event.setActiveEvents(cbee::Event::kWritableEvent); event.handleEvent(); EXPECT_EQ(true, writeDone); EXPECT_EQ(false, readDone); EXPECT_EQ(false, removeDone); EXPECT_EQ(false, errorDone); } TEST_F(EventTest, errorEvent_expectedCallBack) { event.setActiveEvents(cbee::Event::kErrorEvent); event.handleEvent(); EXPECT_EQ(false, writeDone); EXPECT_EQ(false, readDone); EXPECT_EQ(false, removeDone); EXPECT_EQ(true, errorDone); } TEST_F(EventTest, removeEvent_expectedCallBack) { event.setActiveEvents(cbee::Event::kRemoveEvent); event.handleEvent(); EXPECT_EQ(false, writeDone); EXPECT_EQ(false, readDone); EXPECT_EQ(true, removeDone); EXPECT_EQ(false, errorDone); EXPECT_EQ(fakeFd, removedFd); } } // namespace
[ "yuxiang660@163.com" ]
yuxiang660@163.com
2b48f620a51f76ba0f113026dd5cd5a74da5b91f
5950c4973a1862d2b67e072deeea8f4188d23d97
/Export/macos/obj/src/haxe/zip/_InflateImpl/Window.cpp
c48f53b20c271cccf2f9bb49404311e1b2a5b849
[ "MIT" ]
permissive
TrilateralX/TrilateralLimeTriangle
b3cc0283cd3745b57ccc9131fcc9b81427414718
219d8e54fc3861dc1ffeb3da25da6eda349847c1
refs/heads/master
2022-10-26T11:51:28.578254
2020-06-16T12:32:35
2020-06-16T12:32:35
272,572,760
0
0
null
null
null
null
UTF-8
C++
false
true
9,174
cpp
// Generated by Haxe 4.2.0-rc.1+cb30bd580 #include <hxcpp.h> #ifndef INCLUDED_haxe_crypto_Adler32 #include <haxe/crypto/Adler32.h> #endif #ifndef INCLUDED_haxe_io_Bytes #include <haxe/io/Bytes.h> #endif #ifndef INCLUDED_haxe_zip__InflateImpl_Window #include <haxe/zip/_InflateImpl/Window.h> #endif HX_DEFINE_STACK_FRAME(_hx_pos_af150f0022e4c7dc_37_new,"haxe.zip._InflateImpl.Window","new",0x88adb9f3,"haxe.zip._InflateImpl.Window.new","/usr/local/lib/haxe/std/haxe/zip/InflateImpl.hx",37,0x21814451) HX_LOCAL_STACK_FRAME(_hx_pos_af150f0022e4c7dc_44_slide,"haxe.zip._InflateImpl.Window","slide",0x409d7984,"haxe.zip._InflateImpl.Window.slide","/usr/local/lib/haxe/std/haxe/zip/InflateImpl.hx",44,0x21814451) HX_LOCAL_STACK_FRAME(_hx_pos_af150f0022e4c7dc_53_addBytes,"haxe.zip._InflateImpl.Window","addBytes",0xb984b017,"haxe.zip._InflateImpl.Window.addBytes","/usr/local/lib/haxe/std/haxe/zip/InflateImpl.hx",53,0x21814451) HX_LOCAL_STACK_FRAME(_hx_pos_af150f0022e4c7dc_60_addByte,"haxe.zip._InflateImpl.Window","addByte",0xa74a10dc,"haxe.zip._InflateImpl.Window.addByte","/usr/local/lib/haxe/std/haxe/zip/InflateImpl.hx",60,0x21814451) HX_LOCAL_STACK_FRAME(_hx_pos_af150f0022e4c7dc_68_getLastChar,"haxe.zip._InflateImpl.Window","getLastChar",0xdd866f95,"haxe.zip._InflateImpl.Window.getLastChar","/usr/local/lib/haxe/std/haxe/zip/InflateImpl.hx",68,0x21814451) HX_LOCAL_STACK_FRAME(_hx_pos_af150f0022e4c7dc_72_available,"haxe.zip._InflateImpl.Window","available",0x3285339c,"haxe.zip._InflateImpl.Window.available","/usr/local/lib/haxe/std/haxe/zip/InflateImpl.hx",72,0x21814451) HX_LOCAL_STACK_FRAME(_hx_pos_af150f0022e4c7dc_75_checksum,"haxe.zip._InflateImpl.Window","checksum",0x2f923f50,"haxe.zip._InflateImpl.Window.checksum","/usr/local/lib/haxe/std/haxe/zip/InflateImpl.hx",75,0x21814451) namespace haxe{ namespace zip{ namespace _InflateImpl{ void Window_obj::__construct(bool hasCrc){ HX_GC_STACKFRAME(&_hx_pos_af150f0022e4c7dc_37_new) HXLINE( 38) this->buffer = ::haxe::io::Bytes_obj::alloc(65536); HXLINE( 39) this->pos = 0; HXLINE( 40) if (hasCrc) { HXLINE( 41) this->crc = ::haxe::crypto::Adler32_obj::__alloc( HX_CTX ); } } Dynamic Window_obj::__CreateEmpty() { return new Window_obj; } void *Window_obj::_hx_vtable = 0; Dynamic Window_obj::__Create(::hx::DynamicArray inArgs) { ::hx::ObjectPtr< Window_obj > _hx_result = new Window_obj(); _hx_result->__construct(inArgs[0]); return _hx_result; } bool Window_obj::_hx_isInstanceOf(int inClassId) { return inClassId==(int)0x00000001 || inClassId==(int)0x1515906b; } void Window_obj::slide(){ HX_STACKFRAME(&_hx_pos_af150f0022e4c7dc_44_slide) HXLINE( 45) if (::hx::IsNotNull( this->crc )) { HXLINE( 46) this->crc->update(this->buffer,0,32768); } HXLINE( 47) ::haxe::io::Bytes b = ::haxe::io::Bytes_obj::alloc(65536); HXLINE( 48) ::haxe::zip::_InflateImpl::Window _hx_tmp = ::hx::ObjectPtr<OBJ_>(this); HXDLIN( 48) _hx_tmp->pos = (_hx_tmp->pos - 32768); HXLINE( 49) b->blit(0,this->buffer,32768,this->pos); HXLINE( 50) this->buffer = b; } HX_DEFINE_DYNAMIC_FUNC0(Window_obj,slide,(void)) void Window_obj::addBytes( ::haxe::io::Bytes b,int p,int len){ HX_STACKFRAME(&_hx_pos_af150f0022e4c7dc_53_addBytes) HXLINE( 54) if (((this->pos + len) > 65536)) { HXLINE( 55) this->slide(); } HXLINE( 56) this->buffer->blit(this->pos,b,p,len); HXLINE( 57) ::haxe::zip::_InflateImpl::Window _hx_tmp = ::hx::ObjectPtr<OBJ_>(this); HXDLIN( 57) _hx_tmp->pos = (_hx_tmp->pos + len); } HX_DEFINE_DYNAMIC_FUNC3(Window_obj,addBytes,(void)) void Window_obj::addByte(int c){ HX_STACKFRAME(&_hx_pos_af150f0022e4c7dc_60_addByte) HXLINE( 61) if ((this->pos == 65536)) { HXLINE( 62) this->slide(); } HXLINE( 63) this->buffer->b[this->pos] = ( (unsigned char)(c) ); HXLINE( 64) this->pos++; } HX_DEFINE_DYNAMIC_FUNC1(Window_obj,addByte,(void)) int Window_obj::getLastChar(){ HX_STACKFRAME(&_hx_pos_af150f0022e4c7dc_68_getLastChar) HXDLIN( 68) return ( (int)(this->buffer->b->__get((this->pos - 1))) ); } HX_DEFINE_DYNAMIC_FUNC0(Window_obj,getLastChar,return ) int Window_obj::available(){ HX_STACKFRAME(&_hx_pos_af150f0022e4c7dc_72_available) HXDLIN( 72) return this->pos; } HX_DEFINE_DYNAMIC_FUNC0(Window_obj,available,return ) ::haxe::crypto::Adler32 Window_obj::checksum(){ HX_STACKFRAME(&_hx_pos_af150f0022e4c7dc_75_checksum) HXLINE( 76) if (::hx::IsNotNull( this->crc )) { HXLINE( 77) this->crc->update(this->buffer,0,this->pos); } HXLINE( 78) return this->crc; } HX_DEFINE_DYNAMIC_FUNC0(Window_obj,checksum,return ) ::hx::ObjectPtr< Window_obj > Window_obj::__new(bool hasCrc) { ::hx::ObjectPtr< Window_obj > __this = new Window_obj(); __this->__construct(hasCrc); return __this; } ::hx::ObjectPtr< Window_obj > Window_obj::__alloc(::hx::Ctx *_hx_ctx,bool hasCrc) { Window_obj *__this = (Window_obj*)(::hx::Ctx::alloc(_hx_ctx, sizeof(Window_obj), true, "haxe.zip._InflateImpl.Window")); *(void **)__this = Window_obj::_hx_vtable; __this->__construct(hasCrc); return __this; } Window_obj::Window_obj() { } void Window_obj::__Mark(HX_MARK_PARAMS) { HX_MARK_BEGIN_CLASS(Window); HX_MARK_MEMBER_NAME(buffer,"buffer"); HX_MARK_MEMBER_NAME(pos,"pos"); HX_MARK_MEMBER_NAME(crc,"crc"); HX_MARK_END_CLASS(); } void Window_obj::__Visit(HX_VISIT_PARAMS) { HX_VISIT_MEMBER_NAME(buffer,"buffer"); HX_VISIT_MEMBER_NAME(pos,"pos"); HX_VISIT_MEMBER_NAME(crc,"crc"); } ::hx::Val Window_obj::__Field(const ::String &inName,::hx::PropertyAccess inCallProp) { switch(inName.length) { case 3: if (HX_FIELD_EQ(inName,"pos") ) { return ::hx::Val( pos ); } if (HX_FIELD_EQ(inName,"crc") ) { return ::hx::Val( crc ); } break; case 5: if (HX_FIELD_EQ(inName,"slide") ) { return ::hx::Val( slide_dyn() ); } break; case 6: if (HX_FIELD_EQ(inName,"buffer") ) { return ::hx::Val( buffer ); } break; case 7: if (HX_FIELD_EQ(inName,"addByte") ) { return ::hx::Val( addByte_dyn() ); } break; case 8: if (HX_FIELD_EQ(inName,"addBytes") ) { return ::hx::Val( addBytes_dyn() ); } if (HX_FIELD_EQ(inName,"checksum") ) { return ::hx::Val( checksum_dyn() ); } break; case 9: if (HX_FIELD_EQ(inName,"available") ) { return ::hx::Val( available_dyn() ); } break; case 11: if (HX_FIELD_EQ(inName,"getLastChar") ) { return ::hx::Val( getLastChar_dyn() ); } } return super::__Field(inName,inCallProp); } ::hx::Val Window_obj::__SetField(const ::String &inName,const ::hx::Val &inValue,::hx::PropertyAccess inCallProp) { switch(inName.length) { case 3: if (HX_FIELD_EQ(inName,"pos") ) { pos=inValue.Cast< int >(); return inValue; } if (HX_FIELD_EQ(inName,"crc") ) { crc=inValue.Cast< ::haxe::crypto::Adler32 >(); return inValue; } break; case 6: if (HX_FIELD_EQ(inName,"buffer") ) { buffer=inValue.Cast< ::haxe::io::Bytes >(); return inValue; } } return super::__SetField(inName,inValue,inCallProp); } void Window_obj::__GetFields(Array< ::String> &outFields) { outFields->push(HX_("buffer",00,bd,94,d0)); outFields->push(HX_("pos",94,5d,55,00)); outFields->push(HX_("crc",d4,82,4b,00)); super::__GetFields(outFields); }; #ifdef HXCPP_SCRIPTABLE static ::hx::StorageInfo Window_obj_sMemberStorageInfo[] = { {::hx::fsObject /* ::haxe::io::Bytes */ ,(int)offsetof(Window_obj,buffer),HX_("buffer",00,bd,94,d0)}, {::hx::fsInt,(int)offsetof(Window_obj,pos),HX_("pos",94,5d,55,00)}, {::hx::fsObject /* ::haxe::crypto::Adler32 */ ,(int)offsetof(Window_obj,crc),HX_("crc",d4,82,4b,00)}, { ::hx::fsUnknown, 0, null()} }; static ::hx::StaticInfo *Window_obj_sStaticStorageInfo = 0; #endif static ::String Window_obj_sMemberFields[] = { HX_("buffer",00,bd,94,d0), HX_("pos",94,5d,55,00), HX_("crc",d4,82,4b,00), HX_("slide",31,c5,c7,7e), HX_("addBytes",8a,2e,f5,36), HX_("addByte",c9,61,60,7d), HX_("getLastChar",02,3b,fc,fa), HX_("available",c9,59,83,77), HX_("checksum",c3,bd,02,ad), ::String(null()) }; ::hx::Class Window_obj::__mClass; void Window_obj::__register() { Window_obj _hx_dummy; Window_obj::_hx_vtable = *(void **)&_hx_dummy; ::hx::Static(__mClass) = new ::hx::Class_obj(); __mClass->mName = HX_("haxe.zip._InflateImpl.Window",81,44,4f,10); __mClass->mSuper = &super::__SGetClass(); __mClass->mConstructEmpty = &__CreateEmpty; __mClass->mConstructArgs = &__Create; __mClass->mGetStaticField = &::hx::Class_obj::GetNoStaticField; __mClass->mSetStaticField = &::hx::Class_obj::SetNoStaticField; __mClass->mStatics = ::hx::Class_obj::dupFunctions(0 /* sStaticFields */); __mClass->mMembers = ::hx::Class_obj::dupFunctions(Window_obj_sMemberFields); __mClass->mCanCast = ::hx::TCanCast< Window_obj >; #ifdef HXCPP_SCRIPTABLE __mClass->mMemberStorageInfo = Window_obj_sMemberStorageInfo; #endif #ifdef HXCPP_SCRIPTABLE __mClass->mStaticStorageInfo = Window_obj_sStaticStorageInfo; #endif ::hx::_hx_RegisterClass(__mClass->mName, __mClass); } } // end namespace haxe } // end namespace zip } // end namespace _InflateImpl
[ "none" ]
none
b1802de76bafba866efe5aae5f3326f8a529cf7c
7bf737a6379689104c82905cac3858b47ec98583
/offer/09_(2)jumpStep.cpp
c5e5b390eb992ad7e6c8789e256ae48b1709f5ea
[]
no_license
nutm/algcode
1a78434ba172c3f904423d828b060f17ace8d8d2
813e78c149221403414860e9142ee3d7647ff536
refs/heads/master
2020-12-02T21:19:49.000368
2017-07-12T12:44:01
2017-07-12T12:44:01
null
0
0
null
null
null
null
UTF-8
C++
false
false
288
cpp
//跳台阶 class Solution { public: int jumpFloor(int number) { if(number == 0) return 0; if(number == 1) return 1; if(number == 2) return 2; return jumpFloor(number - 1) + jumpFloor(number - 2); } };
[ "206153481@qq.com" ]
206153481@qq.com
22ff2235de070b8cf6b374983bbdbd288edfab04
370241453173e03510842e910a7dbc64623ed2e0
/lvp/COLLEGE.H
a067714c21eb0d67686d0a7c9aba80eb312c7dec
[ "MIT" ]
permissive
0xC000005/eps11cpp
46ec420040d4dd682b4d90ea860a32d07afbe2c6
cf6ba97d32eb7f1bb54d8f814d33f233f485ece6
refs/heads/master
2022-08-28T16:26:27.837497
2022-08-03T18:23:03
2022-08-03T18:23:03
206,599,846
1
0
MIT
2019-09-27T21:00:18
2019-09-05T15:41:15
C++
UTF-8
C++
false
false
1,242
h
/* Lawrenceville Press CollegeClass type DECLARATION */ /* October 1997 */ #ifndef _College_ #define _College_ #include <lvp\bool.h> #include <lvp\string.h> #include <iostream.h> #include <fstream.h> #include <stdlib.h> class CollegeClass { public: CollegeClass(); ~CollegeClass(); bool GetNext(); // Move to next college; returns false if fails bool CurrentIsValid(); // Returns true only if current item is valid void Reset(); // Moves back to the start of the database // These functions obtain the information of the current item String GetName() const; String GetTown() const; String GetState() const; String GetPubOrPri() const; long GetEnrollment() const; long GetTuition() const; long GetRoomAndBoard() const; // Dislays information of the current item (for debugging) friend ostream & operator << (ostream &, const CollegeClass &); private: String CurrentName; String CurrentTown; String CurrentState; String CurrentPubOrPri; long CurrentEnrollment; long CurrentTuition; long CurrentRoomAndBoard; fstream DBFile; bool IsValid; }; #include <lvp\college.cpp> #endif
[ "noreply@github.com" ]
noreply@github.com
c054c66d355973493fdac1fa15e2b0a869413c6d
99bb155256ca7f076003668ed70843a31a92bf33
/Source.cpp
b4907f597da7581880dfda9fcf56ea241c172e80
[ "MIT" ]
permissive
MasyoLab/convert_file_path
2af3d96de0765b4ff27e5058e2895ddcc555fec2
3b7a4192c14aa4a31be2c2bbba135f87c95f739b
refs/heads/master
2023-06-03T01:10:25.431479
2021-06-27T15:36:26
2021-06-27T15:36:26
379,299,645
0
0
null
null
null
null
UTF-8
C++
false
false
10,954
cpp
//========================================================================== // convert_file_path // Get latest version at https://github.com/MasyoLab/convert_file_path //========================================================================== #define _CRTDBG_MAP_ALLOC #include <cstdlib> #include <crtdbg.h> #define _GLIBCXX_DEBUG #include <time.h> #include <iostream> #include <chrono> #include <direct.h> #include "data_save.hpp" #include "file_path.hpp" #include "folder_path.hpp" #include "text_load.hpp" //========================================================================== // �N���X��` //========================================================================== class contena_dc { public: contena_dc() { m_str_name.clear(); m_str_path.clear(); m_str_extension.clear(); } contena_dc(const std::string& str_name, const std::string& str_path, const std::string& str_extension) { for (auto& itr : str_name) { // �󔒂�u�������܂� if (itr == ' ') { m_str_name += "_"; continue; } m_str_name += itr; } m_str_path = str_path; m_str_extension = str_extension; } ~contena_dc() { m_str_name.clear(); m_str_path.clear(); m_str_extension.clear(); } public: std::string m_str_name; // �t�@�C���� std::string m_str_path; // �t�@�C���p�X std::string m_str_extension; // �g���q }; //========================================================================== // �^��` //========================================================================== using list_contena_dc = std::list<contena_dc>; using list_string = std::list<std::string>; //========================================================================== // �֐���` //========================================================================== //========================================================================== /** @brief �t�@�C���T�� @param dir_name [in] �T���Ώۃf�B���N�g�� @param extension [in] �g���q�w�� @param set_ [in] */ list_contena_dc search( const std::string& dir_name, const list_string& extension, const std::string set_); //========================================================================== //========================================================================== /** @brief �w�b�_�[���� @param create_day [in] ������ @param create_time [in] �������� @param data_dc [in] �ǂݎ�茋�� @param extension [in] �g���q�w�� */ void create_header( const std::string& create_day, const std::string& create_time, const list_contena_dc& data_dc, const list_string& extension); //========================================================================== //========================================================================== /** @brief ���O���� @param start_ms [in] �����J�n���� @param end_ms [in] �����I������ @param create_day [in] ������ @param create_time [in] �������� @param directory [in] �T�������f�B���N�g�� @param data_dc [in] �ǂݎ�茋�� */ void create_log( float start_ms, float end_ms, const std::string& create_day, const std::string& create_time, const list_string& directory, const list_contena_dc& data_dc); //========================================================================== //========================================================================== /** @brief ���Ԏ擾 @return ���� */ float get_time_sec(); //========================================================================== //============================================================================= // main //============================================================================= int main() { _CrtSetDbgFlag(_CRTDBG_ALLOC_MEM_DF | _CRTDBG_LEAK_CHECK_DF); list_contena_dc data_dc; // �f�[�^�i�[�p time_t timer; tm* date; std::string create_day; // ������ std::string create_time; // �������� char str[256] = { 0 }; float start_ms = get_time_sec(); //============================================================================= // �������s�J�n���Ԃ��L�^ //============================================================================= timer = time(nullptr); // �o�ߎ��Ԃ��擾 date = localtime(&timer); // �o�ߎ��Ԃ����Ԃ�\���\���� date �ɕϊ� strftime(str, sizeof(str), "%Y/%m/%d", date); // �N���������b create_day = str; strftime(str, sizeof(str), "%H:%M:%S", date); // �N���������b create_time = str; //============================================================================= // ���C������ //============================================================================= //============================================================================= // �f�B���N�g���T�� //============================================================================= // �g���q�ǂݎ�� auto extension = text_load::get("�g���q�w��.txt"); // �����f�B���N�g������T�� auto directory = folder_path::get_all(); // �f�B���N�g���w��Ȃ� data_dc = search("", extension, "*."); // �f�B���N�g���w�肠�� for (auto& itr1 : directory) // ���o�����f�B���N�g�����̑S�f�[�^��T������ // �擾�������ʂ�lj����� for (auto& itr2 : search(itr1, extension, "\\*.")) data_dc.push_back(itr2); // �o�͏��� create_header(create_day, create_time, data_dc, extension); // ���O�o�� create_log(start_ms, get_time_sec(), create_day, create_time, directory, data_dc); return std::system("PAUSE"); } list_contena_dc search( const std::string& dir_name, const list_string& extension, const std::string set_) { list_contena_dc data_dc; // �f�[�^�i�[�p // �T���f�[�^�L�^ for (auto& itr1 : extension) { // �S�T���Ώۃf�B���N�g���������� // �f�[�^�̊i�[ for (auto& itr2 : file_path::get_in(dir_name, itr1, set_)) { std::string _file_name; // �t�@�C���� std::string _path_name; // �g���q bool bchange = false; // �g���q�r�� for (auto& itr3 : itr2) { std::string str_; str_ = itr3; if (str_ == ".") bchange = true; if (bchange == false && str_ != ".") _file_name += str_; else if (bchange == true && str_ != ".") _path_name += str_; } if (dir_name == "") data_dc.emplace_back(_file_name, dir_name + itr2, _path_name); else if (dir_name != "") data_dc.emplace_back(_file_name, dir_name + "/" + itr2, _path_name); } } return data_dc; } void create_header( const std::string& create_day, const std::string& create_time, const list_contena_dc& data_dc, const list_string& extension) { list_string header_data; // �w�b�_�[�̓��e const std::string _define = "#define "; const std::string _ifndef = "#ifndef "; const std::string _endif = "#endif "; std::string _extension; int n_count = 0; header_data.push_back("//============================================================================="); header_data.push_back("// resource file path"); header_data.push_back("// " + create_day); header_data.push_back("// " + create_time); header_data.push_back("//============================================================================="); header_data.push_back("#pragma once"); for (auto& itr1 : extension) { for (auto& itr2 : data_dc) { if (itr1 == itr2.m_str_extension) { std::string header_text; // �e�L�X�g�����p if (_extension != itr1) { _extension = itr1; header_data.push_back(""); header_data.push_back("//============================================================================="); header_data.push_back("// filename extension [." + _extension + "]"); header_data.push_back("//============================================================================="); header_data.push_back(""); } header_text = "RESOURCE_"; header_text += itr2.m_str_name; header_text += "_"; header_text += itr2.m_str_extension; header_data.push_back(_ifndef + header_text); header_data.push_back(_define + header_text + " " + '"' + itr2.m_str_path + '"'); header_data.push_back(_endif + "// !" + header_text); header_text.clear(); } } } // �o�� list_string str_link; // txt�f�[�^�̐��� str_link.push_back(std::to_string(data_dc.size())); for (auto& itr : data_dc) // �i�[ str_link.push_back(itr.m_str_path); // �ۑ� data_save::save("resource_list.txt", str_link); data_save::save("resource_list.h", header_data); } void create_log( float start_ms, float end_ms, const std::string& create_day, const std::string& create_time, const list_string& directory, const list_contena_dc& data_dc) { std::string Generation_time = "GenerationTime : " + std::to_string(end_ms - start_ms) + " ms"; list_string log_data; log_data.push_back(""); log_data.push_back("=========== convert_file_path ==========="); log_data.push_back("*** " + create_day); log_data.push_back("*** " + create_time); log_data.push_back("*** " + Generation_time); log_data.push_back("*** Number of detected data : " + std::to_string((int)data_dc.size())); log_data.push_back(""); log_data.push_back("=========== We are generating logs ==========="); log_data.push_back(""); log_data.push_back("���������������� Folder import list ����������������"); log_data.push_back(""); for (auto& itr : directory) log_data.push_back("[" + itr + "]" + "�����o���܂���"); log_data.push_back(""); log_data.push_back("���������������� File import list ����������������"); log_data.push_back(""); for (auto& itr : data_dc) log_data.push_back("[" + itr.m_str_path + "]" + "�����o���܂���"); log_data.push_back(""); log_data.push_back("=========== Log generation has ended ==========="); log_data.push_back(""); log_data.push_back("**** Crash! ****"); log_data.push_back(""); // ���O�̕ۑ� data_save::save("convert_file_path.log", log_data); // �o�� for (auto& itr : log_data) std::cout << itr << std::endl; } float get_time_sec() { return static_cast<float>(std::chrono::duration_cast<std::chrono::nanoseconds>(std::chrono::steady_clock::now().time_since_epoch()).count()) / (float)1000000000; }
[ "masyo.lab@gmail.com" ]
masyo.lab@gmail.com
4e64823273a4e91bceda8c3a1d5ec446c46fbd49
1116b5d34d9a451b82996cedad18968247b598d3
/test/test_desktop/lib/Base64/Base64.h
44e14d179dd8fcbc6da3994f006612778fd12d1d
[ "MIT" ]
permissive
hankei6km/SpriteToBmp
44d71036fb4852116aae7188896e8ea5495fdb37
0c77e57e7b81769a79ebe48cbc3333cb475ead8f
refs/heads/master
2022-11-22T13:15:11.428057
2020-07-08T17:29:38
2020-07-08T17:29:38
275,606,685
0
0
null
null
null
null
UTF-8
C++
false
false
268
h
#ifndef __TEST_BASE64_H_ #define __TEST_BASE64_H_ #include <string.h> class Base64Class { public: int encode(char *output, char *input, int inputLength) { strcpy(output, "ABC123=="); return strlen(output); } }; Base64Class Base64; #endif
[ "hankei6km@gmail.com" ]
hankei6km@gmail.com
d9bdfc6357dd38966c724ac19b1e7664e0fb00e8
ad9ccc593da714b20a1a6d648620f03962d63bd8
/csl/test/test_parser.h
b6a003cf0eb1a8b2f7d26a3e2eda311bb798f8be
[]
no_license
yanzewu/csl
a776cb196e877f066df6dc273b022d73f741a056
83bbc13bea686a7b6d3058cff1364ebd8b0c53ec
refs/heads/master
2020-03-13T03:47:43.945921
2018-05-09T09:24:47
2018-05-09T09:24:47
null
0
0
null
null
null
null
UTF-8
C++
false
false
917
h
#include "../parser.h" #include <iostream> class ParserTest { public: void test_parse_expr() { RDParser parser; Context context; parser.load_context(&context); parser.parse_line_expr("1 + 2")->print(std::cout); // test basic parser.parse_line_expr("x=y=++a+++=4==5")->print(std::cout); // unary & assignment parser.parse_line_expr("1+3^x*(3 and 4 or 5)")->print(std::cout); // test priority } void test_parse_decl() { RDParser parser; Context context; parser.load_context(&context); parser.parse_string("int a;")->print(std::cout); parser.parse_string("int* a, b=1+2, c=a;")->print(std::cout); parser.parse_string("int[10] c;")->print(std::cout); parser.parse_string("void[6+a] d")->print(std::cout); parser.parse_string("int[10] d = {1,2,{2,3}}")->print(std::cout); } };
[ "wuyanze0@gmail.com" ]
wuyanze0@gmail.com
9b7f732c987ad36bcb34adc3b6b2d012450caaa7
bd832250822eb91317aa92366500899bea560c4a
/MIDTERM/C2.cpp
4fd59467c3c270fb65c0bbfe7b597f7d0626510c
[]
no_license
zhetkergendarkhan/ADS-2019-fall-
c259fc5b5ebb6fd45d21172ebff78e61541ab642
763ed452be00dfd31ee7cf81112d25098f661341
refs/heads/master
2021-04-11T22:47:46.354633
2020-03-21T21:08:01
2020-03-21T21:08:01
249,060,965
0
0
null
null
null
null
UTF-8
C++
false
false
524
cpp
#include <iostream> #include <queue> using namespace std; int main() { queue <int> q; int t; int c = 0; cin >> t; for( int i = 1; i <= t; i++) { int a, b; cin >> a; if(a == 1) { cin >> b; q.push(b); } else if(a == 2) { cin >> b; c += b; } else { while(q.size() > 0 && q.front() <= c) q.pop(); if(q.size() > 0) { cout << q.front() << endl; } else { cout << -1 << endl; } } } }
[ "darkhan.zhetkergen@mail.ru" ]
darkhan.zhetkergen@mail.ru
19744c03e02b42ddad588f7a481c6a3531db74de
a049cdb280f28f8c734b65c69a6e5220c392369a
/linkedList_insertionSort.cpp
f771fc880be14b6eafffdcf6ae6dc2c41b2c8bff
[]
no_license
mayank-sisodiya/DS-and-Algo
9c1553df32863d0afb41fd841e06a9046a435aac
427c017804c0600b4a295ce264bd4ed647dd832d
refs/heads/master
2021-09-15T04:38:20.360921
2018-05-26T07:13:17
2018-05-26T07:13:17
null
0
0
null
null
null
null
UTF-8
C++
false
false
1,553
cpp
#include <bits/stdc++.h> using namespace std; struct node{ int val; node* next; node(int x) : val(x),next(NULL) {} }; node* createList(){ node *A = new node(0); node *it = A; for (int i = 0; i < 10; ++i) { node* temp = new node(rand() % 10 +1); it->next = temp; it = it->next; } return A; } void displayList(node* display) { while(display) { if(display->next == NULL) cout<<display->val; else cout<<display->val<<" -> "; display = display->next; } } node* insertionSort(node* A) { if(!A || !A->next) return A; node* sorted = NULL; node* list = A; while(list) { node* current = list; list = list->next; if(!sorted || sorted->val >= current->val) { current->next = sorted; sorted = current; } else { node* temp = sorted; while(sorted) { node* it = temp; temp = temp->next; if(!it->next || it->next->val > current->val) { current->next = it->next; it->next = current; break; } } } } return sorted; } int main(int argc, char **argv) { node* A = createList(); cout<<"Before sorting\n"; displayList(A); node* B = insertionSort(A); cout<<"\nAfter sorting\n"; displayList(B); return 0; }
[ "mksisodiya.sisodiya4@gmail.com" ]
mksisodiya.sisodiya4@gmail.com
31293afc88ca9c66b677620b115894c023b2f5cf
cbbe1c873a63a46732ad012b9b3560de4c4e10c3
/Vjudge Online Judge/O sursuri.cpp
57f26e28d5c609286961b15791032e67eb93aaf5
[]
no_license
tamim36/Problem-Solving
54dc85d302ee44f32db434641f7d456671175b25
8c108e79adaa5cd9041808ae69f3476ac9c888ee
refs/heads/master
2023-07-19T08:31:56.246406
2023-07-09T04:48:41
2023-07-09T04:48:41
157,269,727
0
0
null
null
null
null
UTF-8
C++
false
false
604
cpp
#include <bits/stdc++.h> using namespace std; int main () { string str; getline(cin, str); transform(str.begin(), str.end(), str.begin(), ::tolower); for (int i=0; i<str.length(); i++){ if (str[i] == 'a' || str[i] == 'e' || str[i] == 'i' || str[i] == 'o' || str[i] == 'u' || str[i] == 'y'){ str.erase(i,1); i -= 1; } } for (int i=0; i<str.length(); i++){ if (isalpha(str[i]) != 0){ cout << "." << str[i]; } else{ cout << str[i]; } } return 0; }
[ "noreply@github.com" ]
noreply@github.com
702fa756fd33cc6cba78ff078796df2610e92fee
c66af0db88b62a00cdb2adb3dec7f55ca7dbd390
/Complexité/TD/ListLink.cpp
f88b97264cd0f24e0b8770fc5e4714876231e327
[]
no_license
hongdt/M1
bc194ea5d65cdefd57ff1a7c8e5d32944e40d474
662eb7b4cdd3e99e006b45a9657c7784af60162c
refs/heads/master
2021-01-11T07:07:22.800273
2016-12-05T08:34:45
2016-12-05T08:34:45
72,500,222
0
0
null
null
null
null
UTF-8
C++
false
false
2,116
cpp
#include <stdio.h> using namespace std; typedef int element_type; typedef struct node { element_type element; struct node *left, *right; } NODE; NODE *root; void khoi_tao_cay(NODE ** root) { *root = NULL; } void insert(NODE *tmp, NODE **root) { if (tmp->element < (*root)->element) if ((*root)->left) insert(tmp, &(*root)->left); else (*root)->left = tmp; else if ((*root)->right) insert(tmp, &(*root)->right); else (*root)->right = tmp; } void insert_node(element_type e, NODE **root) { NODE *tmp; //tmp = (NODE *)malloc(sizeof(NODE)); tmp->element = e; tmp->left = NULL; tmp->right = NULL; if (*root == NULL) *root = tmp; else insert(tmp, root); } void nhap_cay(NODE **root) { element_type e; do { printf("\nNhap element (-1 de ket thuc) : "); scanf("%d", &e); if (e != -1) insert_node(e, root); } while (e != -1); } void NLR(NODE *root) { if (root != NULL) { printf("%d ", root->element); NLR(root->left); NLR(root->right); } } void NRL(NODE *root) { if (root != NULL) { printf("%d ", root->element); NRL(root->right); NRL(root->left); } } void LNR(NODE *root) { if (root != NULL) { LNR(root->left); printf("%d ", root->element); LNR(root->right); } } void LRN(NODE *root) { if (root != NULL) { LRN(root->left); LRN(root->right); printf("%d ", root->element); } } void RNL(NODE *root) { if (root != NULL) { RNL(root->right); printf("%d ", root->element); RNL(root->left); } } void RLN(NODE *root) { if (root != NULL) { RLN(root->right); RLN(root->left); printf("%d ", root->element); } } int main() { khoi_tao_cay(&root); nhap_cay(&root); printf("\nDuyet cay NLR : "); NLR(root); printf("\nDuyet cay NRL : "); NRL(root); printf("\nDuyet cay LNR : "); LNR(root); printf("\nDuyet cay LRN : "); LRN(root); printf("\nDuyet cay RNL : "); RNL(root); printf("\nDuyet cay RLN : "); RLN(root); return 0; //getch(); } //------------------------
[ "dthong.p20@ifi.edu.vn" ]
dthong.p20@ifi.edu.vn
26bbf44ccbf2822669138b5a25caae91c3c7ee00
eaf0c24a620807e1304c4d663a493637a85f6d84
/server/src/Socket.cpp
00ea0b8719608bc64276e3ec10e71a1767c687f8
[]
no_license
xiaopeifeng/dbproxy
71f488e61c0a50ffdd74d0e1671cde0eb76cbb78
0c972e2db766e6bfd15ad9e98e8867566f41a43c
refs/heads/master
2021-01-10T01:19:24.529260
2016-03-10T14:04:46
2016-03-10T14:04:46
52,366,310
0
0
null
null
null
null
UTF-8
C++
false
false
3,786
cpp
#include "Socket.h" #include <assert.h> #include <arpa/inet.h> #include <errno.h> #include <iostream> #include <fcntl.h> #include <memory.h> #include <netinet/in.h> #include <stdlib.h> #include <stdio.h> #include <strings.h> #include <sys/socket.h> #include <unistd.h> Socket::Socket(const std::string& ip, int port) : m_ip(ip) , m_port(port) , m_fd(-1) {} Socket::Socket(int fd) { m_fd = fd; } Socket::Socket() { m_fd = socket(AF_INET, SOCK_STREAM, 0); assert(m_fd != -1); } Socket::~Socket() {} bool Socket::bind(int port) { if( m_fd == -1 ) return false; sockaddr_in addr; ::memset((void*)&addr, 0, sizeof(addr)); addr.sin_family = AF_INET; addr.sin_addr.s_addr = htonl(INADDR_ANY); addr.sin_port = htons(port); int s = ::bind(m_fd, reinterpret_cast<struct sockaddr*>(&addr), sizeof(addr)); return s == 0; } bool Socket::listen() { if( m_fd == -1 ) return false; int s = ::listen(m_fd, 1000); return s == 0; } bool Socket::connect() { struct sockaddr_in sockaddr; m_fd = socket(AF_INET, SOCK_STREAM, 0); assert(m_fd != -1); bzero((char*)&sockaddr, sizeof(sockaddr)); sockaddr.sin_family = AF_INET; sockaddr.sin_port = htons(m_port); if( !inet_aton(m_ip.c_str(), &(sockaddr.sin_addr)) ){ return -1; } int rc = ::connect(m_fd, (struct sockaddr*)(&sockaddr), sizeof(sockaddr)); printf("connect return %d\n", rc); return rc == 0; } Socket* Socket::accept() { if( m_fd == -1 ) return NULL; int sock = ::accept(m_fd, NULL, NULL); if( sock == -1 ) { printf("accept error!\n"); return NULL; } Socket* ptr = new Socket(sock); return ptr; } bool Socket::close() { return ::close(m_fd) == 0; } int Socket::send(const char* buf, int sz) { return ::send(m_fd, buf, sz, 0); } /* int Socket::send(const std::string& str) { int sendtotal = 0; while(sendtotal != str.length()) { int sendbytes = ::send(m_fd, str.c_str(), str.length(), 0); if( sendbytes < 0 ){ if( errno == EINTR || errno == EAGAIN ){ return sendtotal; }else{ close(m_fd); return -1; } }else if( sendbytes > 0 ){ sendtotal += sendbytes; } } return sendtotal; } */ int Socket::recv(char* buf, int sz) { return ::recv(m_fd, buf, sz, 0); } /* int Socket::recv(std::string& str) { int recv_bytes = 0; char buf[20] = {0}; while(recv_bytes < MSG_HEAD_SIZE){ int n = ::recv(m_fd, buf+recv_bytes, MSG_HEAD_SIZE-recv_bytes, 0); if( n < 0 ){ if( errno == EINTR || errno == EAGAIN ){ continue; }else{ close(m_fd); return -1; } }else{ recv_bytes += n; } } long length = *((long*)buf); long length2 = ntohl(length); std::cout << length2 << std::endl; assert(length2 > 0); char result_buf[10240] = {0}; recv_bytes = 0; while(recv_bytes < length2){ int n = ::recv(m_fd, result_buf+recv_bytes, length-recv_bytes, 0); if( n < 0 ){ if( errno == EINTR || errno == EAGAIN ){ continue; }else{ close(m_fd); return -1; } }else{ recv_bytes += n; } } str = std::string(result_buf); return 0; } */ int Socket::read(char* data, int len) { return ::read(m_fd, data, len); } int Socket::write(const char* data, int len) { return ::write(m_fd, data, len); } void Socket::setNonBlock() { int flags = fcntl(m_fd, F_GETFL); int res = fcntl(m_fd, F_SETFL, flags|O_NONBLOCK); assert(res != -1); } void Socket::setAddrReuse() { int optval = 1; ::setsockopt(m_fd, SOL_SOCKET, SO_REUSEADDR, &optval, static_cast<socklen_t>(sizeof(optval))); } void Socket::setKeepAlive() { int optval = 1; ::setsockopt(m_fd, SOL_SOCKET, SO_KEEPALIVE, &optval, static_cast<socklen_t>(sizeof(optval))); }
[ "xiaopeifenng@gmail.com" ]
xiaopeifenng@gmail.com
cfde1074454874bd56d907bf68b058f13bb46542
0f28092cf8d203ef24212ca6c64c7ddd14192bb0
/Source/ProjectMage/ProjectMageCharacter.cpp
82242326e944bedf8dcd057f01b1a47402c45ad0
[]
no_license
dantame/ProjectMage
a025a94bc95e84c8d0dd5301b37785931a429463
dca8c0d9a96c3875d70d7bee6ef61446d0838865
refs/heads/master
2021-01-25T08:42:40.940620
2015-04-03T17:46:27
2015-04-03T17:46:27
33,359,584
0
0
null
null
null
null
UTF-8
C++
false
false
2,392
cpp
// Copyright 1998-2015 Epic Games, Inc. All Rights Reserved. #include "ProjectMage.h" #include "ProjectMageCharacter.h" #include "UnrealNetwork.h" DEFINE_LOG_CATEGORY_STATIC(LogFPChar, Warning, All); ////////////////////////////////////////////////////////////////////////// // AProjectMageCharacter AProjectMageCharacter::AProjectMageCharacter(const FObjectInitializer& ObjectInitializer) : Super(ObjectInitializer) { // Set size for collision capsule GetCapsuleComponent()->InitCapsuleSize(42.f, 96.0f); // set our turn rates for input BaseTurnRate = 45.f; BaseLookUpRate = 45.f; TextRender = ObjectInitializer.CreateDefaultSubobject<UTextRenderComponent>(this, TEXT("HitpointsText")); TextRender->AttachTo(RootComponent); TextRender->SetNetAddressable(); TextRender->SetIsReplicated(true); TextRender->AddLocalOffset(FVector(0.0, 25.0, 110.0), true); TextRender->SetText(FString::SanitizeFloat(Hitpoints)); } void AProjectMageCharacter::SetHitpoints(float hp) { if (Role < ROLE_Authority) { ServerSetHitpoints(hp); } else { Hitpoints = hp; } } bool AProjectMageCharacter::ServerSetHitpoints_Validate(float hp) { return true; } void AProjectMageCharacter::ServerSetHitpoints_Implementation(float hp) { SetHitpoints(hp); } void AProjectMageCharacter::GetLifetimeReplicatedProps(TArray<FLifetimeProperty>& OutLifetimeProps) const { Super::GetLifetimeReplicatedProps(OutLifetimeProps); DOREPLIFETIME(AProjectMageCharacter, Hitpoints); } void AProjectMageCharacter::OnHitpointsReplicated() { UE_LOG(LogTemp, Warning, TEXT("Hitpoints replicated %f"), Hitpoints); TextRender->SetText(FString::SanitizeFloat(Hitpoints)); } void AProjectMageCharacter::MoveForward(float Value) { if (Value != 0.0f) { // add movement in that direction AddMovementInput(GetActorForwardVector(), Value); } } void AProjectMageCharacter::MoveRight(float Value) { if (Value != 0.0f) { // add movement in that direction AddMovementInput(GetActorRightVector(), Value); } } void AProjectMageCharacter::TurnAtRate(float Rate) { // calculate delta for this frame from the rate information AddControllerYawInput(Rate * BaseTurnRate * GetWorld()->GetDeltaSeconds()); } void AProjectMageCharacter::LookUpAtRate(float Rate) { // calculate delta for this frame from the rate information AddControllerPitchInput(Rate * BaseLookUpRate * GetWorld()->GetDeltaSeconds()); }
[ "dan.tame@dubitlimited.com" ]
dan.tame@dubitlimited.com
42b95cb6c6f7eceaa6d210effaaa16ce0c321106
d17d3be48d1a72ff619458a81637bc0a8235fb87
/OpenPlanet/OPObjectManager/parsesystemmessage.cpp
a3494aa8975601d52667a7dacab49fac10bda17a
[ "Apache-2.0" ]
permissive
xOpenPlanet/Windows
2350e013c9815d7c21bb2ec1f86a08065e52d084
9609f4ef6fb66e2f852fedb44c8e2f36668a890b
refs/heads/master
2020-03-15T05:56:32.603021
2018-06-01T07:47:31
2018-06-01T07:47:31
131,997,337
2
0
null
null
null
null
GB18030
C++
false
false
14,784
cpp
#include "parsesystemmessage.h" #include "imtranstype.h" #include "httpnetworksharelib.h" #include <QJsonParseError> #include <QJsonDocument> #include <QDir> #include <QApplication> #include <QJsonObject> #include <QDebug> #include "define.h" ParseSystemMessage::ParseSystemMessage(QObject *parent) : QObject(parent) { } ParseSystemMessage::~ParseSystemMessage() { } QString ParseSystemMessage::GetExeDir() { QString path; QDir dir; return dir.currentPath(); } void ParseSystemMessage::ParseSysMessage(MessageInfo messageInfo) { QString strMessage = messageInfo.strMsg; QJsonParseError jsonError; QJsonDocument jsonDocument = QJsonDocument::fromJson(strMessage.toUtf8(), &jsonError); if (jsonError.error == QJsonParseError::NoError) { if (jsonDocument.isObject()) { QVariantMap result = jsonDocument.toVariant().toMap(); if (result["CMD"].toString() == "applyAddFriend") //申请添加好友消息 { int userID = result["friendUserId"].toInt(); //if (!gDataBaseOpera->DBJudgeFriendIsHaveByID(QString::number(userID))) //emit sigApplyFriend(QString::number(userID)); } else if (result["CMD"].toString() == "applyAddGroup") //申请加入群组 { //GroupInfo groupInfo = gDataBaseOpera->DBGetGroupFromID(QString::number(result["groupId"].toInt())); //QString applyID = result["userId"].toString(); //if (!gDataBaseOpera->DBJudgeGroupIsHaveBuddy(groupInfo.groupId, applyID)) //emit sigApplyAddGroup(applyID, groupInfo.groupId); } else if (result["CMD"].toString() == "updateUser") //更新用户信息 { OnDealUpDateUser(messageInfo,result["user"].toMap()); } else if (result["CMD"].toString() == "updateGroup") //更新群组信息 { OnDealUpdateGroupInfo(result); } else if (result["CMD"].toString() == "addFriend") { OnDealAddFriend(result); } else if (result["CMD"].toString() == "addUserToGroup") //申请加入群组同意 { OnDealAddUserToGroup(result); } else if (result["CMD"].toString() == "userQuitGroup") { OnDealUserQuitGroup(result); } else if (result["CMD"].toString() == "dissolveGroup") //解散群组 { OnDealDisSolveGroup(result); } else if (result["CMD"].toString() == "deleteFriend") { gDataBaseOpera->DBDeleteBuddyInfoByID(result["friendUserId"].toString()); emit sigDeleteFriend(BuddyDelete, result["friendUserId"]); } } } } //更新好友信息 void ParseSystemMessage::OnDealUpDateUser(MessageInfo msgInfo, QVariantMap mapResult) { BuddyInfo buddyInfo; buddyInfo.strHttpAvatar = mapResult["avatar"].toString(); buddyInfo.strEmail = mapResult["email"].toString(); buddyInfo.strMobilePhone = mapResult["mobilePhone"].toString(); buddyInfo.strNickName = mapResult["nickName"].toString(); buddyInfo.strPingYin = mAlphabeticalSort.GetChineseSpell(buddyInfo.strNickName); buddyInfo.strNote = mapResult["note"].toString(); buddyInfo.strPhone = mapResult["phone"].toString(); buddyInfo.strSex = mapResult["sex"].toString(); buddyInfo.strSign = mapResult["sign"].toString(); buddyInfo.nUserId = mapResult["userId"].toInt(); buddyInfo.strUserName = mapResult["userName"].toString(); buddyInfo.nUserType = mapResult["userType"].toInt(); buddyInfo.strLocalAvatar = GetExeDir() + "/resource/header/" + mapResult["userId"].toString() + ".jpg"; if (buddyInfo.strSex == "F")//默认头像 { buddyInfo.strDefaultAvatar = QString(":/IMChatClient/Resources/imchatclient/female.png"); } else { buddyInfo.strDefaultAvatar = QString(":/PerChat/Resources/person/temp.png"); } QFile::remove(buddyInfo.strLocalAvatar); buddyInfo.BuddyType = 1; if (gDataManager) { UserInfo userInfo = gDataManager->getUserInfo(); if (gDataBaseOpera) { if (gDataBaseOpera->DBJudgeBuddyIsHaveByID((QString::number(buddyInfo.nUserId)))) { gDataBaseOpera->DBInsertBuddyInfo(buddyInfo); } if (gDataBaseOpera->DBJudgeGroupIsHaveBuddy(QString::number(msgInfo.nToUserID), QString::number(buddyInfo.nUserId))) { gDataBaseOpera->DBInsertGroupBuddyInfo(QString::number(msgInfo.nToUserID), buddyInfo); } } if (buddyInfo.nUserId == userInfo.nUserID) { userInfo.strUserNickName = mapResult["nickName"].toString(); userInfo.strUserName = mapResult["nickName"].toString(); userInfo.strUserAvatarHttp = mapResult["avatar"].toString(); userInfo.strSex = mapResult["sex"].toString(); userInfo.strNote = mapResult["note"].toString(); userInfo.strEmil = mapResult["email"].toString(); userInfo.strSign = mapResult["sign"].toString(); userInfo.strPhone = mapResult["phone"].toString(); userInfo.strUserAvatarLocal = GetExeDir() + "/resource/header/" + mapResult["userId"].toString() + ".jpg"; QFile::remove(userInfo.strUserAvatarLocal); gDataManager->setUserInfo(userInfo); // emit sigUpdateUserInfo(userInfo); //更新用户信息 } /*开始下载好友头像*/ IMDownLoadHeaderImg *headerImage = new IMDownLoadHeaderImg; connect(headerImage, SIGNAL(sigUpdateBuddyHeaderImage(int, QPixmap)), this, SLOT(slotUpdateBuddyHeaderImage(int, QPixmap))); headerImage->StartDownLoadBuddyeHeaderImage(buddyInfo); } } //更新好友头像 void ParseSystemMessage::slotUpdateBuddyHeaderImage(int buddyID, QPixmap pix) { IMDownLoadHeaderImg *headerImage = qobject_cast<IMDownLoadHeaderImg*>(sender()); BuddyInfo buddyInfo = gDataBaseOpera->DBGetBuddyInfoByID(QString::number(buddyID)); emit sigUpdateInfo(BuddyUpdate, QVariant::fromValue(buddyInfo)); if (headerImage) { headerImage->deleteLater(); headerImage = NULL; } } //更新群组信息 void ParseSystemMessage::OnDealUpdateGroupInfo(QVariantMap mapResult) { GroupInfo groupInfo; groupInfo.groupHttpHeadImage = mapResult["avatar"].toString(); groupInfo.groupId = mapResult["groupId"].toString(); groupInfo.groupName = mapResult["groupName"].toString(); groupInfo.groupLoacalHeadImage = QStringLiteral("resource/header/groupheader/") + groupInfo.groupId + ".jpg"; groupInfo.groupDefaultAvatar = ":/GroupChat/Resources/groupchat/group.png"; QFile::remove(groupInfo.groupLoacalHeadImage); if (gDataBaseOpera) { GroupInfo oldGroupInfo = gDataBaseOpera->DBGetGroupFromID(groupInfo.groupId); groupInfo.createUserId = oldGroupInfo.createUserId; gDataBaseOpera->DBInsertGroupInfo(groupInfo); } IMDownLoadHeaderImg *headerImage = new IMDownLoadHeaderImg; connect(headerImage, SIGNAL(sigUpdateBuddyHeaderImage(int, QPixmap)), this, SLOT(slotUpdateGroupHeaderImage(int, QPixmap))); headerImage->StartDownLoadGroupHeaderImage(groupInfo); } //更新群组头像 void ParseSystemMessage::slotUpdateGroupHeaderImage(int buddyID, QPixmap pix) { IMDownLoadHeaderImg *headerImage = qobject_cast<IMDownLoadHeaderImg*>(sender()); if (gDataBaseOpera) { GroupInfo groupInfo = gDataBaseOpera->DBGetGroupFromID(QString::number(buddyID)); emit sigUpdateInfo(GroupUpdate, QVariant::fromValue(groupInfo)); } if (headerImage) { headerImage->deleteLater(); headerImage = NULL; } } //处理用户退出群组 void ParseSystemMessage::OnDealUserQuitGroup(QVariantMap mapResult) { QString groupID = QString::number(mapResult["groupId"].toInt()); QString userID = QString::number(mapResult["groupUserId"].toInt()); if (gDataBaseOpera) { gDataBaseOpera->DBDeleteGroupUserByID(groupID, userID); } emit sigUserQuitGroup(groupID, userID); } //申请添加好友成功 void ParseSystemMessage::OnDealAddFriend(QVariantMap result) { QString strBuddyID = result["friendUserId"].toString(); if (!gDataBaseOpera->DBJudgeFriendIsHaveByID(strBuddyID)) { HttpNetWork::HttpNetWorkShareLib *PersonInfo = new HttpNetWork::HttpNetWorkShareLib(); connect(PersonInfo, SIGNAL(sigReplyFinished(bool, QString)), this, SLOT(slotRequestPersonInfoFinished(bool, QString))); AppConfig configInfo = gDataManager->getAppConfigInfo(); QString strRequest = configInfo.MessageServerAddress + HTTP_GETBUDDYINFOBYID + strBuddyID; PersonInfo->getHttpRequest(strRequest); } } void ParseSystemMessage::slotRequestPersonInfoFinished(bool bResult,QString result) { if (bResult) { QJsonParseError jsonError; BuddyInfo buddyInfo; QJsonDocument jsonDocument = QJsonDocument::fromJson(result.toUtf8(), &jsonError); if (jsonError.error == QJsonParseError::NoError) { if (jsonDocument.isObject()) { QVariantMap result = jsonDocument.toVariant().toMap(); if (result["result"].toString() == "success") { QVariantMap usrInfo = result["user"].toMap(); if (!usrInfo.isEmpty()) { QString strPinYin; buddyInfo.strHttpAvatar = usrInfo["avatar"].toString(); buddyInfo.strEmail = usrInfo["email"].toString(); buddyInfo.strMobilePhone = usrInfo["mobilePhone"].toString(); buddyInfo.strNickName = usrInfo["nickName"].toString(); buddyInfo.strNote = usrInfo["note"].toString(); buddyInfo.strPhone = usrInfo["phone"].toString(); buddyInfo.strSex = usrInfo["sex"].toString(); buddyInfo.strSign = usrInfo["sign"].toString(); buddyInfo.nUserId = usrInfo["userId"].toInt(); buddyInfo.strUserName = usrInfo["userName"].toString(); buddyInfo.nUserType = usrInfo["userType"].toInt(); buddyInfo.BuddyType = 1; buddyInfo.strLocalAvatar = GetExeDir() + "/resource/header/" + usrInfo["userId"].toString() + ".jpg"; if (buddyInfo.strSex == "F")//默认头像 { buddyInfo.strDefaultAvatar = QString(":/IMChatClient/Resources/imchatclient/female.png"); } else { buddyInfo.strDefaultAvatar = QString(":/PerChat/Resources/person/temp.png"); } //根据名称获取首字母 if (!buddyInfo.strNote.isEmpty()) strPinYin = mAlphabeticalSort.GetChineseSpell(buddyInfo.strNote); else strPinYin = mAlphabeticalSort.GetChineseSpell(buddyInfo.strNickName); buddyInfo.strPingYin = strPinYin; if (gDataBaseOpera) { gDataBaseOpera->DBInsertBuddyInfo(buddyInfo); } } } } } emit sigAddFriendSuccess(buddyInfo); } } void ParseSystemMessage::slotRequestGroupInfoFinished(bool bResult, QString result) { if (bResult) { QJsonParseError jsonError; GroupInfo groupInfo; QJsonDocument jsonDocument = QJsonDocument::fromJson(result.toUtf8(), &jsonError); if (jsonError.error == QJsonParseError::NoError) { if (jsonDocument.isObject()) { QVariantMap result = jsonDocument.toVariant().toMap(); if (result["result"].toString() == "success") { QVariantMap resultInfo = result["group"].toMap(); groupInfo.groupHttpHeadImage = resultInfo["avatar"].toString(); groupInfo.createTime = resultInfo["createTime"].toString(); groupInfo.createUserId = resultInfo["createUserId"].toString(); groupInfo.groupId = resultInfo["groupId"].toString(); groupInfo.groupLoacalHeadImage = ":/GroupChat/Resources/groupchat/group.png"; groupInfo.groupDefaultAvatar = QStringLiteral(":/GroupChat/Resources/groupchat/group.png"); groupInfo.groupName = resultInfo["groupName"].toString(); gDataBaseOpera->DBInsertGroupInfo(groupInfo); } } } emit sigAddSuccessGroup(groupInfo); } } //申请加入群组同意 void ParseSystemMessage::OnDealAddUserToGroup(QVariantMap result) { QString strGroupID = result["groupId"].toString(); QString groupUserID = result["groupUserId"].toString(); UserInfo userInfo = gDataManager->getUserInfo(); //判断添加上的userId是否是登录用户 if (groupUserID == QString::number(userInfo.nUserID)) { if (!gDataBaseOpera->DBJudgeGroupIsHaveByID(groupUserID)) { HttpNetWork::HttpNetWorkShareLib *PersonInfo = new HttpNetWork::HttpNetWorkShareLib(); connect(PersonInfo, SIGNAL(sigReplyFinished(bool, QString)), this, SLOT(slotRequestGroupInfoFinished(bool, QString))); UserInfo userInfo = gDataManager->getUserInfo(); AppConfig appConf = gDataManager->getAppConfigInfo(); QString strResult = appConf.MessageServerAddress + HTTP_GETGROUPINFOBYGROUPID + QString("?userId=") + QString::number(userInfo.nUserID) + "&passWord=" + userInfo.strUserPWD + "&groupId=" + strGroupID; PersonInfo->getHttpRequest(strResult); } } else { //如果加群的不是用户,先判断本地是否有这个群,本地有这个群,才会更新群成员。 QString localGroupName = gDataBaseOpera->DBGetGroupFromID(strGroupID).groupName; //当localGroupName不为空,代表本地有这个群。 if (!localGroupName.isEmpty()) { BuddyInfo buddy = gDataBaseOpera->DBGetGroupUserFromID(groupUserID); if (buddy.nUserId == groupUserID.toInt()) { gDataBaseOpera->DBInsertGroupBuddyInfo(strGroupID, buddy); emit sigAddSuccessGroupUserInfo(strGroupID, buddy); /*群组添加成员成功*/ return; } /*群组添加成员成功 请求群组信息*/ HttpNetWork::HttpNetWorkShareLib *PersonInfo = new HttpNetWork::HttpNetWorkShareLib(); connect(PersonInfo, SIGNAL(sigReplyFinished(bool, QString)), this, SLOT(slotRecvAddGroupUser(bool, QString))); AppConfig configInfo = gDataManager->getAppConfigInfo(); QString strRequest = configInfo.MessageServerAddress + HTTP_GETBUDDYINFOBYID + groupUserID; PersonInfo->setObjectName(strGroupID); PersonInfo->getHttpRequest(strRequest); } } } void ParseSystemMessage::slotRecvAddGroupUser(bool success, QString data) { if (success) { HttpNetWork::HttpNetWorkShareLib *act = qobject_cast<HttpNetWork::HttpNetWorkShareLib*>(sender()); QString addGroupID = act->objectName(); QJsonDocument document = QJsonDocument::fromJson(data.toUtf8()); QJsonObject object = document.object().take("user").toObject(); BuddyInfo info; info.strHttpAvatar = object.take("avatar").toString(); info.strNickName = object.take("nickName").toString(); info.strMobilePhone = object.take("nickName").toString(); info.strPhone = object.take("phone").toString(); info.strUserName = object.take("userName").toString(); info.strSign = object.take("sign").toString(); info.strSex = object.take("sex").toString(); info.nUserId = object.take("userId").toInt(); info.nUserType = object.take("userType").toInt(); info.BuddyType = 0; info.strDefaultAvatar = QString(":/PerChat/Resources/person/temp.png"); QString strPath = QApplication::applicationDirPath(); info.strLocalAvatar = strPath + "/resource/header/" + QString::number(info.nUserId) + ".jpg"; gDataBaseOpera->DBInsertGroupBuddyInfo(addGroupID, info); emit sigAddSuccessGroupUserInfo(addGroupID, info); } } //解散群组 void ParseSystemMessage::OnDealDisSolveGroup(QVariantMap result) { QString groupID = result["groupId"].toString(); if (gDataBaseOpera) { gDataBaseOpera->DBDeleteGroupInfoByID(groupID); } emit sigDeleteGroup(groupID); }
[ "fanwenxing@pansoft.com" ]
fanwenxing@pansoft.com
14ab6fe1852f775b12b3f952a005be82c42698c5
f0c872eb0b60bef25a7534078bb98fe402b541da
/chrome/browser/chromeos/login/webui_login_display.cc
bc0770f4fedcf424e65d853b58332b7f4583f2fd
[ "BSD-3-Clause" ]
permissive
aYukiSekiguchi/ACCESS-Chromium
f31c3795889c5ace66eb750a235105fe2466c116
bec8149e84800b81aa0c98b5556ec8f46cb9db47
refs/heads/master
2020-06-01T19:31:30.180217
2012-07-26T08:54:49
2012-07-26T08:55:00
null
0
0
null
null
null
null
UTF-8
C++
false
false
6,850
cc
// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/chromeos/login/webui_login_display.h" #include "chrome/browser/chromeos/input_method/input_method_manager.h" #include "chrome/browser/chromeos/input_method/xkeyboard.h" #include "chrome/browser/chromeos/login/webui_login_view.h" #include "chrome/browser/chromeos/login/wizard_accessibility_helper.h" #include "chrome/browser/profiles/profile_manager.h" #include "chrome/browser/ui/browser_window.h" #include "grit/chromium_strings.h" #include "grit/generated_resources.h" #include "ui/base/l10n/l10n_util.h" #include "ui/views/widget/widget.h" #if defined(TOOLKIT_USES_GTK) #include "chrome/browser/chromeos/legacy_window_manager/wm_ipc.h" #endif namespace chromeos { // WebUILoginDisplay, public: -------------------------------------------------- WebUILoginDisplay::~WebUILoginDisplay() { } // LoginDisplay implementation: ------------------------------------------------ WebUILoginDisplay::WebUILoginDisplay(LoginDisplay::Delegate* delegate) : LoginDisplay(delegate, gfx::Rect()), show_guest_(false), show_new_user_(false), webui_handler_(NULL) { } void WebUILoginDisplay::Init(const UserList& users, bool show_guest, bool show_users, bool show_new_user) { // Testing that the delegate has been set. DCHECK(delegate_); users_ = users; show_guest_ = show_guest; show_users_ = show_users; show_new_user_ = show_new_user; } void WebUILoginDisplay::PreferencesChanged(const UserList& users, bool show_guest, bool show_users, bool show_new_user) { // Set all internal state as for init and then redraw the attached UI. Init(users, show_guest, show_users, show_new_user); if (webui_handler_) webui_handler_->OnPreferencesChanged(); } void WebUILoginDisplay::OnBeforeUserRemoved(const std::string& username) { for (UserList::iterator it = users_.begin(); it != users_.end(); ++it) { if ((*it)->email() == username) { users_.erase(it); break; } } } void WebUILoginDisplay::OnUserImageChanged(const User& user) { DCHECK(webui_handler_); webui_handler_->OnUserImageChanged(user); } void WebUILoginDisplay::OnUserRemoved(const std::string& username) { DCHECK(webui_handler_); webui_handler_->OnUserRemoved(username); } void WebUILoginDisplay::OnFadeOut() { } void WebUILoginDisplay::OnLoginSuccess(const std::string& username) { webui_handler_->OnLoginSuccess(username); } void WebUILoginDisplay::SetUIEnabled(bool is_enabled) { if (is_enabled) webui_handler_->ClearAndEnablePassword(); } void WebUILoginDisplay::SelectPod(int index) { } void WebUILoginDisplay::ShowError(int error_msg_id, int login_attempts, HelpAppLauncher::HelpTopic help_topic_id) { DCHECK(webui_handler_); std::string error_text; switch (error_msg_id) { case IDS_LOGIN_ERROR_AUTHENTICATING_HOSTED: error_text = l10n_util::GetStringFUTF8( error_msg_id, l10n_util::GetStringUTF16(IDS_PRODUCT_OS_NAME)); break; case IDS_LOGIN_ERROR_CAPTIVE_PORTAL: error_text = l10n_util::GetStringFUTF8( error_msg_id, delegate()->GetConnectedNetworkName()); break; default: error_text = l10n_util::GetStringUTF8(error_msg_id); break; } // Display a warning if Caps Lock is on and error is authentication-related. input_method::InputMethodManager* ime_manager = input_method::InputMethodManager::GetInstance(); if (ime_manager->GetXKeyboard()->CapsLockIsEnabled() && error_msg_id != IDS_LOGIN_ERROR_WHITELIST) { // TODO(ivankr): use a format string instead of concatenation. error_text += "\n" + l10n_util::GetStringUTF8(IDS_LOGIN_ERROR_CAPS_LOCK_HINT); } std::string help_link; switch (error_msg_id) { case IDS_LOGIN_ERROR_CAPTIVE_PORTAL: help_link = l10n_util::GetStringUTF8(IDS_LOGIN_FIX_CAPTIVE_PORTAL); break; case IDS_LOGIN_ERROR_CAPTIVE_PORTAL_NO_GUEST_MODE: // No help link is needed. break; case IDS_LOGIN_ERROR_AUTHENTICATING_HOSTED: help_link = l10n_util::GetStringUTF8(IDS_LEARN_MORE); break; default: if (login_attempts > 1) help_link = l10n_util::GetStringUTF8(IDS_LEARN_MORE); break; } webui_handler_->ShowError(login_attempts, error_text, help_link, help_topic_id); WizardAccessibilityHelper::GetInstance()->MaybeSpeak( error_text.c_str(), false, false); } void WebUILoginDisplay::ShowGaiaPasswordChanged(const std::string& username) { webui_handler_->ShowGaiaPasswordChanged(username); } // WebUILoginDisplay, SigninScreenHandlerDelegate implementation: -------------- void WebUILoginDisplay::CompleteLogin(const std::string& username, const std::string& password) { DCHECK(delegate_); if (delegate_) delegate_->CompleteLogin(username, password); } void WebUILoginDisplay::Login(const std::string& username, const std::string& password) { DCHECK(delegate_); if (delegate_) delegate_->Login(username, password); } void WebUILoginDisplay::LoginAsGuest() { DCHECK(delegate_); if (delegate_) delegate_->LoginAsGuest(); } void WebUILoginDisplay::FixCaptivePortal() { DCHECK(delegate_); if (delegate_) delegate_->FixCaptivePortal(); } void WebUILoginDisplay::CreateAccount() { DCHECK(delegate_); if (delegate_) delegate_->CreateAccount(); } void WebUILoginDisplay::RemoveUser(const std::string& username) { UserManager::Get()->RemoveUser(username, this); } void WebUILoginDisplay::ShowEnterpriseEnrollmentScreen() { if (delegate_) delegate_->OnStartEnterpriseEnrollment(); } void WebUILoginDisplay::SetWebUIHandler( LoginDisplayWebUIHandler* webui_handler) { webui_handler_ = webui_handler; } void WebUILoginDisplay::ShowSigninScreenForCreds( const std::string& username, const std::string& password) { DCHECK(webui_handler_); webui_handler_->ShowSigninScreenForCreds(username, password); } const UserList& WebUILoginDisplay::GetUsers() const { return users_; } bool WebUILoginDisplay::IsShowGuest() const { return show_guest_; } bool WebUILoginDisplay::IsShowUsers() const { return show_users_; } bool WebUILoginDisplay::IsShowNewUser() const { return show_new_user_; } void WebUILoginDisplay::SetDisplayEmail(const std::string& email) { if (delegate_) delegate_->SetDisplayEmail(email); } } // namespace chromeos
[ "yuki.sekiguchi@access-company.com" ]
yuki.sekiguchi@access-company.com
9beb01a04398f50ed35097e864b6ae8cdb1454c5
06a75b5612b5b41f1e5b2a5d2e42b2377f839b9e
/nbdp0418/src/views/contacts/individualeditview.h
d7846a33532c3dd8508c445411e630a1cf8bf680
[]
no_license
yzz1/GitStudy
938258650d5b2268ed02a0a5fc25a6cbbee1d3dc
e58e2800fbecc74d26278b88c2bd24d259850d5e
refs/heads/master
2021-01-12T10:01:43.331153
2016-12-14T01:08:26
2016-12-14T01:08:26
76,337,815
0
0
null
null
null
null
UTF-8
C++
false
false
1,823
h
/**************************************************************************** ** ** 文件名称: individualeditview.h ** 功能概述: 个人联系表编辑界面类 ** 版本号: 1.0 ** 作成日期: 20151113 ** 作成者: HSCN ** 修改日期: 20151113 ** 修改者: HSCN ** ****************************************************************************/ #ifndef INDIVIDUALEDITVIEW_H #define INDIVIDUALEDITVIEW_H #include <QWidget> #include <QMap> #include <widgets/titlewidget.h> namespace Ui { class IndividualEditView; } class FrequencyIndividualData { public : // FrequencyData(); QString strNO; QString strChannel; QString strTx; QString strRx; bool display; void clear(); }; class IndividualEditView : public QWidget { Q_OBJECT public: explicit IndividualEditView(QWidget* parent = 0); ~IndividualEditView(); private: Ui::IndividualEditView* ui; QString m_strModle; //打开模式 编辑or新建 QList<FrequencyIndividualData> m_list; //频率数据缓存 QMap <QString, QString> m_stationMap; //联系人数据 bool eventFilter(QObject* watched, QEvent* event); bool m_editmode; //编辑频率标记 signals: void afterPageSignal(QString thisID, QString fowordID, QMap<QString, QString>paraMap); public slots: bool saveData(); void frontPageSlot(QString thisID, QString fowordID, QMap<QString, QString>paraMap); void cancelButtonClicked(); void homeClickedSlot(); void individualClickedSlot(); void stationClickedSlot(); void arrowUpButtonClicked(); void arrowDownButtonClicked(); }; #endif // INDIVIDUALEDITVIEW_H
[ "zhenzhongyao@126.com" ]
zhenzhongyao@126.com
f0acf302370ad92057d7a05d567a1b608d08e78f
dcac044d2c30fc082a2bdcbba3fe2e755acc629b
/ProjectPractic/ProjectPractic/MyForm.h
2d8257b7cc22328ead4dcbe53462787c07f32041
[]
no_license
Terrorrene/SPbCT_AfanasevSP
1357a66401a7fea5bc6b69a47917ca6022d50993
55f1ccc24e39235f43a4c8dd90cbecfc9389e1eb
refs/heads/main
2023-02-01T14:01:44.048486
2020-12-15T04:29:41
2020-12-15T04:29:41
306,569,328
0
0
null
null
null
null
WINDOWS-1251
C++
false
false
13,524
h
#pragma once #include <ctime> #include <iostream> #include <Windows.h> #include <stdio.h> #include <fstream> #include "SorrDLL.h" //#include <thread> int q=0, ch[100]; //Абстрактный вектрор struct vector { public: int size; int index; int** chislo; int& operator[](const int&); }; void vectorf(vector* a, int n, int** m, int p) { //srand(time(0)); q = p; a->size = n; a->chislo = m; for (int i = 0; i < n; i++) { m[q][i] = rand() % 10; } //a->chislo = m; }; int& vector::operator[](const int& i) { index = q; return chislo[index][i]; }; vector stroka1, stroka2, stroka3, stroka4, stroka5; //////////////////////////////////// //Потоки для сортировки векторов DWORD WINAPI thread1(LPVOID lpParam) { int fuka[20]; q = 0; int j = 0; int Data = 0; Data = *((int*)lpParam); for (int i = 0; i < 20; i++) { q = 0; stroka1[i] = ch[j]; j++; } return 0; } DWORD WINAPI thread2(LPVOID lpParam) { int fuka[20]; q = 1; int j = 20; int Data = 0; Data = *((int*)lpParam); for (int i = 0; i < 20; i++) { q = 1; stroka2[i] = ch[j]; j++; } return 0; } DWORD WINAPI thread3(LPVOID lpParam) { int fuka[20]; q = 2; int j = 40; int Data = 0; Data = *((int*)lpParam); for (int i = 0; i < 20; i++) { q = 2; stroka3[i] = ch[j]; j++; } return 0; } DWORD WINAPI thread4(LPVOID lpParam) { int fuka[20]; q = 3; int j = 60; int Data = 0; Data = *((int*)lpParam); for (int i = 0; i < 20; i++) { q = 3; stroka4[i] = ch[j]; j++; } return 0; } DWORD WINAPI thread5(LPVOID lpParam) { int fuka[20]; q = 4; int j = 80; int Data = 0; Data = *((int*)lpParam); for (int i = 0; i < 20; i++) { q = 4; stroka5[i] = ch[j]; j++; } return 0; } ////////////////////////////////////////////////////////// namespace ProjectPractic { using namespace System; using namespace System::ComponentModel; using namespace System::Collections; using namespace System::Windows::Forms; using namespace System::Data; using namespace System::Drawing; using namespace std; /// <summary> /// —водка дл¤ MyForm /// </summary> public ref class MyForm : public System::Windows::Forms::Form { public: MyForm(void) { InitializeComponent(); // //TODO: добавьте код конструктора // } protected: /// <summary> /// ќсвободить все используемые ресурсы. /// </summary> ~MyForm() { if (components) { delete components; } } private: System::Windows::Forms::Label^ label1; private: System::Windows::Forms::Label^ DataTime; private: System::Windows::Forms::DataGridView^ table1; private: System::Windows::Forms::DataGridView^ table2; private: System::Windows::Forms::Button^ button1; protected: private: /// <summary> /// ќб¤зательна¤ переменна¤ конструктора. /// </summary> System::ComponentModel::Container ^components; #pragma region Windows Form Designer generated code /// <summary> /// “ребуемый метод дл¤ поддержки конструктора Ч не измен¤йте /// содержимое этого метода с помощью редактора кода. /// </summary> void InitializeComponent(void) { this->label1 = (gcnew System::Windows::Forms::Label()); this->DataTime = (gcnew System::Windows::Forms::Label()); this->table1 = (gcnew System::Windows::Forms::DataGridView()); this->table2 = (gcnew System::Windows::Forms::DataGridView()); this->button1 = (gcnew System::Windows::Forms::Button()); (cli::safe_cast<System::ComponentModel::ISupportInitialize^>(this->table1))->BeginInit(); (cli::safe_cast<System::ComponentModel::ISupportInitialize^>(this->table2))->BeginInit(); this->SuspendLayout(); // // label1 // this->label1->AutoSize = true; this->label1->Location = System::Drawing::Point(18, 14); this->label1->Margin = System::Windows::Forms::Padding(4, 0, 4, 0); this->label1->Name = L"label1"; this->label1->Size = System::Drawing::Size(155, 20); this->label1->TabIndex = 0; this->label1->Text = L"Афанасьев Сергей"; // // DataTime // this->DataTime->AutoSize = true; this->DataTime->Location = System::Drawing::Point(18, 34); this->DataTime->Margin = System::Windows::Forms::Padding(4, 0, 4, 0); this->DataTime->Name = L"DataTime"; this->DataTime->Size = System::Drawing::Size(0, 20); this->DataTime->TabIndex = 1; // // table1 // this->table1->ColumnHeadersHeightSizeMode = System::Windows::Forms::DataGridViewColumnHeadersHeightSizeMode::AutoSize; this->table1->ColumnHeadersVisible = false; this->table1->EnableHeadersVisualStyles = false; this->table1->Location = System::Drawing::Point(22, 88); this->table1->Margin = System::Windows::Forms::Padding(4, 5, 4, 5); this->table1->Name = L"table1"; this->table1->RowHeadersVisible = false; this->table1->RowTemplate->ReadOnly = true; this->table1->Size = System::Drawing::Size(360, 354); this->table1->TabIndex = 2; // // table2 // this->table2->ColumnHeadersHeightSizeMode = System::Windows::Forms::DataGridViewColumnHeadersHeightSizeMode::AutoSize; this->table2->ColumnHeadersVisible = false; this->table2->EnableHeadersVisualStyles = false; this->table2->Location = System::Drawing::Point(440, 88); this->table2->Margin = System::Windows::Forms::Padding(4, 5, 4, 5); this->table2->Name = L"table2"; this->table2->RowHeadersVisible = false; this->table2->RowTemplate->ReadOnly = true; this->table2->Size = System::Drawing::Size(360, 354); this->table2->TabIndex = 3; // // button1 // this->button1->Location = System::Drawing::Point(850, 406); this->button1->Margin = System::Windows::Forms::Padding(4, 5, 4, 5); this->button1->Name = L"button1"; this->button1->Size = System::Drawing::Size(112, 35); this->button1->TabIndex = 4; this->button1->Text = L"Сортировка"; this->button1->UseVisualStyleBackColor = true; this->button1->Click += gcnew System::EventHandler(this, &MyForm::button1_Click); // // MyForm // this->AutoScaleDimensions = System::Drawing::SizeF(9, 20); this->AutoScaleMode = System::Windows::Forms::AutoScaleMode::Font; this->ClientSize = System::Drawing::Size(1018, 497); this->Controls->Add(this->button1); this->Controls->Add(this->table2); this->Controls->Add(this->table1); this->Controls->Add(this->DataTime); this->Controls->Add(this->label1); this->Margin = System::Windows::Forms::Padding(4, 5, 4, 5); this->Name = L"MyForm"; this->Text = L"MyForm"; this->Load += gcnew System::EventHandler(this, &MyForm::MyForm_Load); (cli::safe_cast<System::ComponentModel::ISupportInitialize^>(this->table1))->EndInit(); (cli::safe_cast<System::ComponentModel::ISupportInitialize^>(this->table2))->EndInit(); this->ResumeLayout(false); this->PerformLayout(); } #pragma endregion private: System::Void MyForm_Load(System::Object^ sender, System::EventArgs^ e) { //srand(time(0)); //вывод даты time_t now = time(0); tm *ltm = localtime(&now); int year = 1900 + ltm->tm_year, month = 1 + ltm->tm_mon, day = ltm->tm_mday, time = ltm->tm_hour, min = ltm->tm_min, sec = ltm->tm_sec; DataTime->Text += " "; DataTime->Text += day.ToString(); DataTime->Text += "."; DataTime->Text += month.ToString(); DataTime->Text += "."; DataTime->Text += year.ToString(); DataTime->Text += " "; if (time < 10) { DataTime->Text += "0"; DataTime->Text += time.ToString(); } else DataTime->Text += time.ToString(); DataTime->Text += ":"; if (min < 10) { DataTime->Text += "0"; DataTime->Text += min.ToString(); } else DataTime->Text += min.ToString(); DataTime->Text += ":"; if (sec < 10) { DataTime->Text += "0"; DataTime->Text += sec.ToString(); } else DataTime->Text += sec.ToString(); //////////////////////////////////////////////// //Создание первой таблицы table1->Columns->Clear(); table1->ColumnCount = 20; table1->RowCount = 5; ///////////////////////////////////////////////// //Создание и открытие файла csv HANDLE F = CreateFile(L"file1.csv", GENERIC_READ | GENERIC_WRITE, 0, 0, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, 0); CloseHandle(F); ofstream csv("file1.csv"); //////////////////////////////////////////////// //Заполнние вектров строк, csv файла, и таблицы. //1 int n = 20; int**m = new int* [20]; for (int i = 0; i < n; i++) m[i]=new int[20]; //vector stroka1; vectorf(&stroka1, n, &m[0], 0); for (int i = 0; i <= n; i++) { if (i == n) csv << endl; else csv << stroka1[i] << ";"; } for (int j = 0; j < n; j++) { this->table1->Rows[0]->Cells[j]->Value = stroka1[j].ToString(); table1->Columns[j]->Width = 20; } //2 //vector stroka2; vectorf(&stroka2, n, &m[0], 1); for (int i = 0; i <= n; i++) { if (i == n) csv << endl; else csv << stroka2[i] << ";"; } for (int j = 0; j < n; j++) this->table1->Rows[1]->Cells[j]->Value = stroka2[j].ToString(); //3 //vector stroka3; vectorf(&stroka3, n, &m[0], 2); for (int i = 0; i <= n; i++) { if (i == n) csv << endl; else csv << stroka3[i] << ";"; } for (int j = 0; j < n; j++) this->table1->Rows[2]->Cells[j]->Value = stroka3[j].ToString(); //4 //vector stroka4; vectorf(&stroka4, n, &m[0], 3); for (int i = 0; i <= n; i++) { if (i == n) csv << endl; else csv << stroka4[i] << ";"; } for (int j = 0; j < n; j++) this->table1->Rows[3]->Cells[j]->Value = stroka4[j].ToString(); //5 //vector stroka5; vectorf(&stroka5, n, &m[0], 4); for (int i = 0; i <= n; i++) { if (i == n) csv << endl; else csv << stroka5[i] << ";"; } for (int j = 0; j < n; j++) this->table1->Rows[4]->Cells[j]->Value = stroka5[j].ToString(); ///////////////////////////////////////////////// csv.close(); //////////////////////////////////////////////// } private: System::Void button1_Click(System::Object^ sender, System::EventArgs^ e) { ///////////////////////////////////////////////////////////////////////////////////////////////////// //Сохздание именногово канала для передачи сожержимого файла csv char buffer[1024] = { 0 }, bufer[1024]; DWORD nCount; HANDLE F = CreateFile(L"file1.csv", GENERIC_READ | GENERIC_WRITE, 0, 0, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, 0); ReadFile(F,buffer,sizeof(buffer), &nCount,0); HANDLE hPipe = CreateNamedPipe(L"\\.\\pipe\pipename", PIPE_ACCESS_OUTBOUND, PIPE_TYPE_BYTE | PIPE_READMODE_BYTE, PIPE_UNLIMITED_INSTANCES, 1024, 1024, INFINITE, 0); WriteFile(hPipe, buffer, sizeof(buffer), 0, 0); CloseHandle(hPipe); CloseHandle(F); ch[100] = sort(&ch[0]); ///////////////////////////////////////////////////////////////////////////////////////////////// //Создание потоков int nt1 = 1, nt2 = 2, nt3 = 3, nt4 = 4, nt5 = 5; HANDLE potok1 = CreateThread(0,0, thread1, &nt1, 0, 0); HANDLE potok2 = CreateThread(0, 0, thread2, &nt2, 0, 0); HANDLE potok3 = CreateThread(0, 0, thread3, &nt3, 0, 0); HANDLE potok4 = CreateThread(0, 0, thread4, &nt4, 0, 0); HANDLE potok5 = CreateThread(0, 0, thread5, &nt5, 0, 0); HANDLE sppot[5];//Массив потоков sppot[0] = potok1; sppot[1] = potok2; sppot[2] = potok3; sppot[3] = potok4; sppot[4] = potok5; WaitForMultipleObjects(5, sppot,TRUE, INFINITE);//Ждём выполение всех потоков CloseHandle(potok1); CloseHandle(potok2); CloseHandle(potok3); CloseHandle(potok4); CloseHandle(potok5); //////////////////////////////////////////////////////////////////////// //Создание второй таблицы и txt файла table2->Columns->Clear(); table2->ColumnCount = 20; table2->RowCount = 5; HANDLE TXT = CreateFile(L"res.txt", GENERIC_WRITE, 0, 0, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, 0); CloseHandle(TXT); ofstream txt("res.txt"); //////////////////////////////////////////////////////////////////////// //Заполнение таблицы и txt файла for (int j = 0; j < 20; j++) { q = 0; this->table2->Rows[0]->Cells[j]->Value = stroka1[j].ToString(); table2->Columns[j]->Width = 20; txt << stroka1[j]; } txt << endl; for (int j = 0; j < 20; j++) { q = 1; this->table2->Rows[1]->Cells[j]->Value = stroka2[j].ToString(); table2->Columns[j]->Width = 20; txt << stroka2[j]; } txt << endl; for (int j = 0; j < 20; j++) { q = 2; this->table2->Rows[2]->Cells[j]->Value = stroka3[j].ToString(); table2->Columns[j]->Width = 20; txt << stroka3[j]; } txt << endl; for (int j = 0; j < 20; j++) { q = 3; this->table2->Rows[3]->Cells[j]->Value = stroka4[j].ToString(); table2->Columns[j]->Width = 20; txt << stroka4[j]; } txt << endl; for (int j = 0; j < 20; j++) { q = 4; this->table2->Rows[4]->Cells[j]->Value = stroka5[j].ToString(); table2->Columns[j]->Width = 20; txt << stroka5[j]; } txt << endl; } private: System::Void textBox1_TextChanged(System::Object^ sender, System::EventArgs^ e) { } }; }
[ "noreply@github.com" ]
noreply@github.com
d9ef39a6f759f8df1bb03a3597a1ae54a7648b4b
0b148b758e5314decf439dd06b870b48053262b5
/cpp/lesson21_0.cpp
dfef79307c76896f2e3701f686f330eab3d70d35
[]
no_license
danielzhang1998/xiaojiayu_lesson_coding
31b0c43ad86fb739637fe6f61da3199b891b082c
42cf18fe12f78b3d528d7716f053fe8e39dcded6
refs/heads/main
2023-03-11T13:39:50.212571
2021-03-05T08:13:27
2021-03-05T08:13:27
338,525,096
0
0
null
null
null
null
UTF-8
C++
false
false
1,436
cpp
#include <iostream> #include <string> class Lovers { public: Lovers(std::string theName); // 构造器 void kiss(Lovers *lover); void ask(Lovers *lover, std::string something); protected: std::string name; friend class Others; }; class Boyfriend : public Lovers { public: Boyfriend(std::string theName); }; class Girlfriend : public Lovers { public: Girlfriend(std::string theName); }; class Others { public: Others(std::string theName); void kiss(Lovers *lover); protected: std::string name; }; Lovers::Lovers(std::string theName) { name = theName; } void Lovers::kiss(Lovers *lover) { std::cout << name << " kiss " << lover->name << std::endl; } void Lovers::ask(Lovers *lover, std::string something) { std::cout << "Baby, " << lover->name << " help me " << something << std::endl; } Boyfriend::Boyfriend(std::string theName) : Lovers(theName) { } Girlfriend::Girlfriend(std::string theName) : Lovers(theName) { } Others::Others(std::string theName) { name = theName; } void Others::kiss(Lovers *lover) { std::cout << name << " kiss " << lover->name << std::endl; } int main(void) { Boyfriend boyfriend("A"); Girlfriend girlfriend("B"); Others others("路人甲"); girlfriend.kiss(&boyfriend); girlfriend.ask(&boyfriend, "do the dishes"); std::cout << "路人甲登场" << std::endl; others.kiss(&girlfriend); return 0; }
[ "noreply@github.com" ]
noreply@github.com
ac51726db448db61c10206dfa8523c6cdae297de
958210fd96a92d19893776ba5404de90031dc580
/src/kpextract.cpp
299280ec114e204819ec07393a57f5e7fdffcc0e
[]
no_license
elrinor/shiken
6f8da4f8aaaf57ab7f88860719693e105ab1871e
41a87d836708467b2321f44255dbceaee3039c67
refs/heads/main
2023-09-05T23:13:23.866319
2021-10-31T18:45:39
2021-10-31T18:45:39
423,228,522
0
0
null
null
null
null
UTF-8
C++
false
false
2,214
cpp
#include "config.h" #include <cstdlib> /* for srand() */ #include <ctime> /* for time() */ #include <iostream> #include <exception> #include <boost/lexical_cast.hpp> #include <boost/program_options.hpp> #include <vigra/stdimage.hxx> #include "acv/Extractor.h" #include "Common.h" int main(int argc, char** argv) { using namespace boost::program_options; using namespace std; time_t t; srand(static_cast<int>(time(&t))); try { vigra::Size2D maxSize; options_description desc("Allowed options"); desc.add_options() ("help", "produce help message") ("input,i", value<string>(), "input file name") ("size,s", value<vigra::Size2D>(&maxSize)->default_value(vigra::Size2D(DEFAULT_MAX_SIZE_X, DEFAULT_MAX_SIZE_Y), boost::lexical_cast<string>(DEFAULT_MAX_SIZE_X) + ":" + boost::lexical_cast<string>(DEFAULT_MAX_SIZE_Y)), "maximal size of an image for keypoint extraction, in format w:h") ("draw,d", value<string>(), "draw keypoints and save result into a file with the given name"); variables_map vm; store(command_line_parser(argc, argv).options(desc).run(), vm); notify(vm); if(vm.count("help") > 0 || vm.count("input") < 1) { cout << "kpextract - keypoint extractor, version " << BRT_VERSION << "." << endl; cout << endl; cout << "USAGE:" << endl; cout << " kpextract [options]" << endl; cout << endl; cout << desc << endl; return 1; } /* Load input image. */ vigra::BRGBImage image; importImage(image, vm["input"].as<string>()); /* Extract keypoints from input image. */ acv::Extract<> extract; extractKeypoints(image, maxSize, extract); /* Draw keypoints if needed. */ if(vm.count("draw") > 0) { importImage(image, vm["input"].as<string>()); markKeypoints(extract.keypoints(), image, vigra::RGBValue<vigra::UInt8>(0, 0, 255)); exportImage(image, vm["draw"].as<string>()); } cout << extract; } catch (exception& e) { cerr << "error: " << e.what() << endl; return 1; } catch(...) { cerr << "error: Exception of unknown type." << endl; return 1; } return 0; }
[ "ru.elric@gmail.com" ]
ru.elric@gmail.com
5fa60c3900dbc723375c9a090eee4ba98bb8dc37
86e0d9fd9a0ac257b85b398d613930d86c8a7d4e
/MyEngine/MyEngine/MyEngine_Core/src/graphics/Renderable2d.h
c476542b7b097b005388b039a0d3c203dfe9b474
[]
no_license
RapheMellor/Game-engine
370953ae1beaa55254f7c752ec321d23f3cb9ef0
29557da1e153665d8dfd185c8ddb7eac1471d3f7
refs/heads/master
2020-03-17T15:27:51.968424
2018-05-16T19:42:01
2018-05-16T19:42:01
133,711,707
0
0
null
null
null
null
UTF-8
C++
false
false
1,783
h
#pragma once //Include files #include "Buffers/VertexBuffer.h" #include "Buffers/IndexBuffer.h" #include "Buffers/VertexArray.h" #include "../Maths/Maths.h" #include "Shader.h" namespace MyEngine { namespace graphics { class Renderable2D { //Protected functions protected: Maths::Vector3 m_Position; Maths::Vector2 m_Size; Maths::Vector4 m_Color; VertexArray* m_VertexArray; IndexBuffer* m_IndexBuffer; Shader& m_Shader; //Public functions public: Renderable2D(Maths::Vector3 position, Maths::Vector2 size, Maths::Vector4 color, Shader& shader) : m_Position(position), m_Size(size), m_Color(color), m_Shader(shader) { m_VertexArray = new VertexArray(); GLfloat vertices[] = { 0, 0, 0, 0, size.y, 0, size.x, size.y, 0, size.x, 0, 0 }; GLfloat colors[] = { color.x, color.y, color.z, color.w, color.x, color.y, color.z, color.w, color.x, color.y, color.z, color.w, color.x, color.y, color.z, color.w }; m_VertexArray->addBuffer(new Buffer(vertices, 4 * 3, 3), 0); m_VertexArray->addBuffer(new Buffer(colors, 4 * 4, 4), 1); GLushort indices[] = { 0, 1, 2, 2, 3, 0 }; m_IndexBuffer = new IndexBuffer(indices, 6); } virtual ~Renderable2D() { delete m_VertexArray; delete m_IndexBuffer; } inline const VertexArray* getVAO() const { return m_VertexArray; } inline const IndexBuffer* getIBO() const { return m_IndexBuffer; } inline Shader& getShader() const { return m_Shader; } inline const Maths::Vector3& getPosition() const { return m_Position; } inline const Maths::Vector2& getSize() const { return m_Size; } inline const Maths::Vector4& getColor() const { return m_Color; } }; } }
[ "noreply@github.com" ]
noreply@github.com
ebf25cc3dda457e89d1f61fbba83d2a1bc302554
17e36f4300aefc70743277b370dae40000e20ec2
/Engine/lib/assimp/code/Obj/ObjFileData.h
298d1e1b7d62030cec198a696c255df7af643452
[ "MIT", "LicenseRef-scancode-unknown" ]
permissive
JeffProgrammer/Torque3D
e9746a70aaac51e271c6f6c75e98c2ee672a1418
ce79101cb350e5df4281a1de51ee934142de6e2b
refs/heads/Preview4_0
2023-01-23T00:37:25.922742
2021-04-23T07:02:29
2021-04-23T07:02:29
270,866,275
2
1
MIT
2022-05-25T02:42:00
2020-06-09T00:41:36
C++
UTF-8
C++
false
false
10,432
h
/* Open Asset Import Library (assimp) ---------------------------------------------------------------------- Copyright (c) 2006-2020, assimp team All rights reserved. Redistribution and use of this software 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 assimp team, nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission of the assimp team. 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. ---------------------------------------------------------------------- */ #pragma once #ifndef OBJ_FILEDATA_H_INC #define OBJ_FILEDATA_H_INC #include <vector> #include <map> #include <assimp/types.h> #include <assimp/mesh.h> namespace Assimp { namespace ObjFile { struct Object; struct Face; struct Material; // ------------------------------------------------------------------------------------------------ //! \struct Face //! \brief Data structure for a simple obj-face, describes discredit,l.ation and materials // ------------------------------------------------------------------------------------------------ struct Face { typedef std::vector<unsigned int> IndexArray; //! Primitive type aiPrimitiveType m_PrimitiveType; //! Vertex indices IndexArray m_vertices; //! Normal indices IndexArray m_normals; //! Texture coordinates indices IndexArray m_texturCoords; //! Pointer to assigned material Material *m_pMaterial; //! \brief Default constructor Face( aiPrimitiveType pt = aiPrimitiveType_POLYGON) : m_PrimitiveType( pt ) , m_vertices() , m_normals() , m_texturCoords() , m_pMaterial( 0L ) { // empty } //! \brief Destructor ~Face() { // empty } }; // ------------------------------------------------------------------------------------------------ //! \struct Object //! \brief Stores all objects of an obj-file object definition // ------------------------------------------------------------------------------------------------ struct Object { enum ObjectType { ObjType, GroupType }; //! Object name std::string m_strObjName; //! Transformation matrix, stored in OpenGL format aiMatrix4x4 m_Transformation; //! All sub-objects referenced by this object std::vector<Object*> m_SubObjects; /// Assigned meshes std::vector<unsigned int> m_Meshes; //! \brief Default constructor Object() = default; //! \brief Destructor ~Object() { for ( std::vector<Object*>::iterator it = m_SubObjects.begin(); it != m_SubObjects.end(); ++it) { delete *it; } } }; // ------------------------------------------------------------------------------------------------ //! \struct Material //! \brief Data structure to store all material specific data // ------------------------------------------------------------------------------------------------ struct Material { //! Name of material description aiString MaterialName; //! Texture names aiString texture; aiString textureSpecular; aiString textureAmbient; aiString textureEmissive; aiString textureBump; aiString textureNormal; aiString textureReflection[6]; aiString textureSpecularity; aiString textureOpacity; aiString textureDisp; enum TextureType { TextureDiffuseType = 0, TextureSpecularType, TextureAmbientType, TextureEmissiveType, TextureBumpType, TextureNormalType, TextureReflectionSphereType, TextureReflectionCubeTopType, TextureReflectionCubeBottomType, TextureReflectionCubeFrontType, TextureReflectionCubeBackType, TextureReflectionCubeLeftType, TextureReflectionCubeRightType, TextureSpecularityType, TextureOpacityType, TextureDispType, TextureTypeCount }; bool clamp[TextureTypeCount]; //! Ambient color aiColor3D ambient; //! Diffuse color aiColor3D diffuse; //! Specular color aiColor3D specular; //! Emissive color aiColor3D emissive; //! Alpha value ai_real alpha; //! Shineness factor ai_real shineness; //! Illumination model int illumination_model; //! Index of refraction ai_real ior; //! Transparency color aiColor3D transparent; //! Constructor Material() : diffuse ( ai_real( 0.6 ), ai_real( 0.6 ), ai_real( 0.6 ) ) , alpha (ai_real( 1.0 ) ) , shineness ( ai_real( 0.0) ) , illumination_model (1) , ior ( ai_real( 1.0 ) ) , transparent( ai_real( 1.0), ai_real (1.0), ai_real(1.0)) { std::fill_n(clamp, static_cast<unsigned int>(TextureTypeCount), false); } // Destructor ~Material() = default; }; // ------------------------------------------------------------------------------------------------ //! \struct Mesh //! \brief Data structure to store a mesh // ------------------------------------------------------------------------------------------------ struct Mesh { static const unsigned int NoMaterial = ~0u; /// The name for the mesh std::string m_name; /// Array with pointer to all stored faces std::vector<Face*> m_Faces; /// Assigned material Material *m_pMaterial; /// Number of stored indices. unsigned int m_uiNumIndices; /// Number of UV unsigned int m_uiUVCoordinates[ AI_MAX_NUMBER_OF_TEXTURECOORDS ]; /// Material index. unsigned int m_uiMaterialIndex; /// True, if normals are stored. bool m_hasNormals; /// True, if vertex colors are stored. bool m_hasVertexColors; /// Constructor explicit Mesh( const std::string &name ) : m_name( name ) , m_pMaterial(NULL) , m_uiNumIndices(0) , m_uiMaterialIndex( NoMaterial ) , m_hasNormals(false) { memset(m_uiUVCoordinates, 0, sizeof( unsigned int ) * AI_MAX_NUMBER_OF_TEXTURECOORDS); } /// Destructor ~Mesh() { for (std::vector<Face*>::iterator it = m_Faces.begin(); it != m_Faces.end(); ++it) { delete *it; } } }; // ------------------------------------------------------------------------------------------------ //! \struct Model //! \brief Data structure to store all obj-specific model datas // ------------------------------------------------------------------------------------------------ struct Model { typedef std::map<std::string, std::vector<unsigned int>* > GroupMap; typedef std::map<std::string, std::vector<unsigned int>* >::iterator GroupMapIt; typedef std::map<std::string, std::vector<unsigned int>* >::const_iterator ConstGroupMapIt; //! Model name std::string m_ModelName; //! List ob assigned objects std::vector<Object*> m_Objects; //! Pointer to current object ObjFile::Object *m_pCurrent; //! Pointer to current material ObjFile::Material *m_pCurrentMaterial; //! Pointer to default material ObjFile::Material *m_pDefaultMaterial; //! Vector with all generated materials std::vector<std::string> m_MaterialLib; //! Vector with all generated vertices std::vector<aiVector3D> m_Vertices; //! vector with all generated normals std::vector<aiVector3D> m_Normals; //! vector with all vertex colors std::vector<aiVector3D> m_VertexColors; //! Group map GroupMap m_Groups; //! Group to face id assignment std::vector<unsigned int> *m_pGroupFaceIDs; //! Active group std::string m_strActiveGroup; //! Vector with generated texture coordinates std::vector<aiVector3D> m_TextureCoord; //! Maximum dimension of texture coordinates unsigned int m_TextureCoordDim; //! Current mesh instance Mesh *m_pCurrentMesh; //! Vector with stored meshes std::vector<Mesh*> m_Meshes; //! Material map std::map<std::string, Material*> m_MaterialMap; //! \brief The default class constructor Model() : m_ModelName(""), m_pCurrent(NULL), m_pCurrentMaterial(NULL), m_pDefaultMaterial(NULL), m_pGroupFaceIDs(NULL), m_strActiveGroup(""), m_TextureCoordDim(0), m_pCurrentMesh(NULL) { // empty } //! \brief The class destructor ~Model() { // Clear all stored object instances for (std::vector<Object*>::iterator it = m_Objects.begin(); it != m_Objects.end(); ++it) { delete *it; } m_Objects.clear(); // Clear all stored mesh instances for (std::vector<Mesh*>::iterator it = m_Meshes.begin(); it != m_Meshes.end(); ++it) { delete *it; } m_Meshes.clear(); for(GroupMapIt it = m_Groups.begin(); it != m_Groups.end(); ++it) { delete it->second; } m_Groups.clear(); for ( std::map<std::string, Material*>::iterator it = m_MaterialMap.begin(); it != m_MaterialMap.end(); ++it ) { delete it->second; } } }; // ------------------------------------------------------------------------------------------------ } // Namespace ObjFile } // Namespace Assimp #endif // OBJ_FILEDATA_H_INC
[ "Areloch@gmail.com" ]
Areloch@gmail.com
b5ea41dec9cd2b2abbd2a63a7b22d71db28d5e2a
aa10e3edb2d9db88b0fa48beee2c8a4c93d6958f
/ch05/0529ex.cpp
0d4f18810f2e4339d6c6ebcbb86d7f7934c3bbb8
[ "MIT" ]
permissive
mallius/CppPrimer
e1a04d6e1a00d180ecca60a0207466a46a5651b7
0285fabe5934492dfed0a9cf67ba5650982a5f76
refs/heads/master
2021-06-05T10:32:55.651469
2021-05-20T03:36:22
2021-05-20T03:36:22
88,345,336
0
1
null
null
null
null
UTF-8
C++
false
false
545
cpp
#include <iostream> #include <vector> using namespace std; class Obj { public: // Obj(): ival(0), kval(0), jval(0), vec() { } int ival, kval, jval; vector<int> vec; }; int main(void) { Obj obj; Obj *ptr = &obj; if(ptr->ival != 0) //正确 cout << "ival: " << ptr->ival << endl; if(ptr->ival != ptr->jval < ptr->kval) //正确 cout << "ival != jval < kval" << endl; //if(ptr != 0 && *ptr++) //错误 //cout << "ptr != 0 && *ptr++" << endl; //ival++ && ival 有歧义 //vec[ival++] <= vec[ival] //有歧义 return 0; }
[ "mallius@qq.com" ]
mallius@qq.com
d966aef670852b1d85fcd730c3b5320e3a679280
1569f3417e66ac1d9720dc8d89d00b7241867c75
/src/include/models.hpp
f07a90a68029556de5f5447cba5ac4c10a1fdaea
[]
no_license
muschellij2/gfpca
c404178deb40bc98afc6ecc77e977a4625f69f66
1666b448ea728ebfd52e61ece62cf86aea50564a
refs/heads/master
2021-01-18T01:26:46.344108
2016-06-09T16:07:11
2016-06-09T16:07:11
58,102,882
0
0
null
2016-05-05T03:54:40
2016-05-05T03:54:39
C++
UTF-8
C++
false
false
29,061
hpp
#ifndef MODELS_HPP #define MODELS_HPP #define STAN__SERVICES__COMMAND_HPP #include <rstan/rstaninc.hpp> // Code generated by Stan version 2.9 #include <stan/model/model_header.hpp> namespace model_gfpca_namespace { using std::istream; using std::string; using std::stringstream; using std::vector; using stan::io::dump; using stan::math::lgamma; using stan::model::prob_grad; using namespace stan::math; typedef Eigen::Matrix<double,Eigen::Dynamic,1> vector_d; typedef Eigen::Matrix<double,1,Eigen::Dynamic> row_vector_d; typedef Eigen::Matrix<double,Eigen::Dynamic,Eigen::Dynamic> matrix_d; static int current_statement_begin__; class model_gfpca : public prob_grad { private: int N; int I; int D; int p; int Kt; int Kp; vector<int> Y; vector<int> subjId; vector<vector_d> X; matrix_d BS; matrix_d PenMat; vector_d mu_beta; public: model_gfpca(stan::io::var_context& context__, std::ostream* pstream__ = 0) : prob_grad(0) { current_statement_begin__ = -1; static const char* function__ = "model_gfpca_namespace::model_gfpca"; (void) function__; // dummy call to supress warning size_t pos__; (void) pos__; // dummy call to supress warning std::vector<int> vals_i__; std::vector<double> vals_r__; context__.validate_dims("data initialization", "N", "int", context__.to_vec()); N = int(0); vals_i__ = context__.vals_i("N"); pos__ = 0; N = vals_i__[pos__++]; context__.validate_dims("data initialization", "I", "int", context__.to_vec()); I = int(0); vals_i__ = context__.vals_i("I"); pos__ = 0; I = vals_i__[pos__++]; context__.validate_dims("data initialization", "D", "int", context__.to_vec()); D = int(0); vals_i__ = context__.vals_i("D"); pos__ = 0; D = vals_i__[pos__++]; context__.validate_dims("data initialization", "p", "int", context__.to_vec()); p = int(0); vals_i__ = context__.vals_i("p"); pos__ = 0; p = vals_i__[pos__++]; context__.validate_dims("data initialization", "Kt", "int", context__.to_vec()); Kt = int(0); vals_i__ = context__.vals_i("Kt"); pos__ = 0; Kt = vals_i__[pos__++]; context__.validate_dims("data initialization", "Kp", "int", context__.to_vec()); Kp = int(0); vals_i__ = context__.vals_i("Kp"); pos__ = 0; Kp = vals_i__[pos__++]; context__.validate_dims("data initialization", "Y", "int", context__.to_vec(N)); validate_non_negative_index("Y", "N", N); Y = std::vector<int>(N,int(0)); vals_i__ = context__.vals_i("Y"); pos__ = 0; size_t Y_limit_0__ = N; for (size_t i_0__ = 0; i_0__ < Y_limit_0__; ++i_0__) { Y[i_0__] = vals_i__[pos__++]; } context__.validate_dims("data initialization", "subjId", "int", context__.to_vec(N)); validate_non_negative_index("subjId", "N", N); subjId = std::vector<int>(N,int(0)); vals_i__ = context__.vals_i("subjId"); pos__ = 0; size_t subjId_limit_0__ = N; for (size_t i_0__ = 0; i_0__ < subjId_limit_0__; ++i_0__) { subjId[i_0__] = vals_i__[pos__++]; } validate_non_negative_index("X", "I", I); validate_non_negative_index("X", "p", p); X = std::vector<vector_d>(I,vector_d(p)); context__.validate_dims("data initialization", "X", "vector_d", context__.to_vec(I,p)); vals_r__ = context__.vals_r("X"); pos__ = 0; size_t X_i_vec_lim__ = p; for (size_t i_vec__ = 0; i_vec__ < X_i_vec_lim__; ++i_vec__) { size_t X_limit_0__ = I; for (size_t i_0__ = 0; i_0__ < X_limit_0__; ++i_0__) { X[i_0__][i_vec__] = vals_r__[pos__++]; } } context__.validate_dims("data initialization", "BS", "matrix_d", context__.to_vec(N,Kt)); validate_non_negative_index("BS", "N", N); validate_non_negative_index("BS", "Kt", Kt); BS = matrix_d(N,Kt); vals_r__ = context__.vals_r("BS"); pos__ = 0; size_t BS_m_mat_lim__ = N; size_t BS_n_mat_lim__ = Kt; for (size_t n_mat__ = 0; n_mat__ < BS_n_mat_lim__; ++n_mat__) { for (size_t m_mat__ = 0; m_mat__ < BS_m_mat_lim__; ++m_mat__) { BS(m_mat__,n_mat__) = vals_r__[pos__++]; } } context__.validate_dims("data initialization", "PenMat", "matrix_d", context__.to_vec(Kt,Kt)); validate_non_negative_index("PenMat", "Kt", Kt); validate_non_negative_index("PenMat", "Kt", Kt); PenMat = matrix_d(Kt,Kt); vals_r__ = context__.vals_r("PenMat"); pos__ = 0; size_t PenMat_k_mat_lim__ = Kt; for (size_t n_mat__ = 0; n_mat__ < PenMat_k_mat_lim__; ++n_mat__) { for (size_t m_mat__ = 0; m_mat__ < PenMat_k_mat_lim__; ++m_mat__) { PenMat(m_mat__,n_mat__) = vals_r__[pos__++]; } } // validate data check_greater_or_equal(function__,"N",N,0); check_greater_or_equal(function__,"I",I,0); check_greater_or_equal(function__,"D",D,0); check_greater_or_equal(function__,"p",p,0); stan::math::check_cov_matrix(function__,"PenMat",PenMat); validate_non_negative_index("mu_beta", "Kt", Kt); mu_beta = vector_d(Kt); double DUMMY_VAR__(std::numeric_limits<double>::quiet_NaN()); (void) DUMMY_VAR__; // suppress unused var warning // initialize transformed variables to avoid seg fault on val access stan::math::fill(mu_beta,DUMMY_VAR__); try { current_statement_begin__ = 31; for (int k = 1; k <= Kt; ++k) { current_statement_begin__ = 32; stan::math::assign(get_base1_lhs(mu_beta,k,"mu_beta",1), 0); } } catch (const std::exception& e) { stan::lang::rethrow_located(e,current_statement_begin__); // Next line prevents compiler griping about no return throw std::runtime_error("*** IF YOU SEE THIS, PLEASE REPORT A BUG ***"); } // validate transformed data // set parameter ranges num_params_r__ = 0U; param_ranges_i__.clear(); num_params_r__ += p * Kt; num_params_r__ += Kp * Kt; num_params_r__ += Kp * I; num_params_r__ += p; num_params_r__ += Kp; } ~model_gfpca() { } void transform_inits(const stan::io::var_context& context__, std::vector<int>& params_i__, std::vector<double>& params_r__, std::ostream* pstream__) const { stan::io::writer<double> writer__(params_r__,params_i__); size_t pos__; (void) pos__; // dummy call to supress warning std::vector<double> vals_r__; std::vector<int> vals_i__; if (!(context__.contains_r("beta"))) throw std::runtime_error("variable beta missing"); vals_r__ = context__.vals_r("beta"); pos__ = 0U; context__.validate_dims("initialization", "beta", "matrix_d", context__.to_vec(p,Kt)); matrix_d beta(p,Kt); for (int j2__ = 0U; j2__ < Kt; ++j2__) for (int j1__ = 0U; j1__ < p; ++j1__) beta(j1__,j2__) = vals_r__[pos__++]; try { writer__.matrix_unconstrain(beta); } catch (const std::exception& e) { throw std::runtime_error(std::string("Error transforming variable beta: ") + e.what()); } if (!(context__.contains_r("beta_psi"))) throw std::runtime_error("variable beta_psi missing"); vals_r__ = context__.vals_r("beta_psi"); pos__ = 0U; context__.validate_dims("initialization", "beta_psi", "matrix_d", context__.to_vec(Kp,Kt)); matrix_d beta_psi(Kp,Kt); for (int j2__ = 0U; j2__ < Kt; ++j2__) for (int j1__ = 0U; j1__ < Kp; ++j1__) beta_psi(j1__,j2__) = vals_r__[pos__++]; try { writer__.matrix_unconstrain(beta_psi); } catch (const std::exception& e) { throw std::runtime_error(std::string("Error transforming variable beta_psi: ") + e.what()); } if (!(context__.contains_r("c"))) throw std::runtime_error("variable c missing"); vals_r__ = context__.vals_r("c"); pos__ = 0U; context__.validate_dims("initialization", "c", "vector_d", context__.to_vec(I,Kp)); std::vector<vector_d> c(I,vector_d(Kp)); for (int j1__ = 0U; j1__ < Kp; ++j1__) for (int i0__ = 0U; i0__ < I; ++i0__) c[i0__](j1__) = vals_r__[pos__++]; for (int i0__ = 0U; i0__ < I; ++i0__) try { writer__.vector_unconstrain(c[i0__]); } catch (const std::exception& e) { throw std::runtime_error(std::string("Error transforming variable c: ") + e.what()); } if (!(context__.contains_r("beta_sig"))) throw std::runtime_error("variable beta_sig missing"); vals_r__ = context__.vals_r("beta_sig"); pos__ = 0U; context__.validate_dims("initialization", "beta_sig", "vector_d", context__.to_vec(p)); vector_d beta_sig(p); for (int j1__ = 0U; j1__ < p; ++j1__) beta_sig(j1__) = vals_r__[pos__++]; try { writer__.vector_lub_unconstrain(0,100,beta_sig); } catch (const std::exception& e) { throw std::runtime_error(std::string("Error transforming variable beta_sig: ") + e.what()); } if (!(context__.contains_r("psi_sig"))) throw std::runtime_error("variable psi_sig missing"); vals_r__ = context__.vals_r("psi_sig"); pos__ = 0U; context__.validate_dims("initialization", "psi_sig", "vector_d", context__.to_vec(Kp)); vector_d psi_sig(Kp); for (int j1__ = 0U; j1__ < Kp; ++j1__) psi_sig(j1__) = vals_r__[pos__++]; try { writer__.vector_lub_unconstrain(0,100,psi_sig); } catch (const std::exception& e) { throw std::runtime_error(std::string("Error transforming variable psi_sig: ") + e.what()); } params_r__ = writer__.data_r(); params_i__ = writer__.data_i(); } void transform_inits(const stan::io::var_context& context, Eigen::Matrix<double,Eigen::Dynamic,1>& params_r, std::ostream* pstream__) const { std::vector<double> params_r_vec; std::vector<int> params_i_vec; transform_inits(context, params_i_vec, params_r_vec, pstream__); params_r.resize(params_r_vec.size()); for (int i = 0; i < params_r.size(); ++i) params_r(i) = params_r_vec[i]; } template <bool propto__, bool jacobian__, typename T__> T__ log_prob(vector<T__>& params_r__, vector<int>& params_i__, std::ostream* pstream__ = 0) const { T__ DUMMY_VAR__(std::numeric_limits<double>::quiet_NaN()); (void) DUMMY_VAR__; // suppress unused var warning T__ lp__(0.0); stan::math::accumulator<T__> lp_accum__; // model parameters stan::io::reader<T__> in__(params_r__,params_i__); Eigen::Matrix<T__,Eigen::Dynamic,Eigen::Dynamic> beta; (void) beta; // dummy to suppress unused var warning if (jacobian__) beta = in__.matrix_constrain(p,Kt,lp__); else beta = in__.matrix_constrain(p,Kt); Eigen::Matrix<T__,Eigen::Dynamic,Eigen::Dynamic> beta_psi; (void) beta_psi; // dummy to suppress unused var warning if (jacobian__) beta_psi = in__.matrix_constrain(Kp,Kt,lp__); else beta_psi = in__.matrix_constrain(Kp,Kt); vector<Eigen::Matrix<T__,Eigen::Dynamic,1> > c; size_t dim_c_0__ = I; c.reserve(dim_c_0__); for (size_t k_0__ = 0; k_0__ < dim_c_0__; ++k_0__) { if (jacobian__) c.push_back(in__.vector_constrain(Kp,lp__)); else c.push_back(in__.vector_constrain(Kp)); } Eigen::Matrix<T__,Eigen::Dynamic,1> beta_sig; (void) beta_sig; // dummy to suppress unused var warning if (jacobian__) beta_sig = in__.vector_lub_constrain(0,100,p,lp__); else beta_sig = in__.vector_lub_constrain(0,100,p); Eigen::Matrix<T__,Eigen::Dynamic,1> psi_sig; (void) psi_sig; // dummy to suppress unused var warning if (jacobian__) psi_sig = in__.vector_lub_constrain(0,100,Kp,lp__); else psi_sig = in__.vector_lub_constrain(0,100,Kp); // transformed parameters Eigen::Matrix<T__,Eigen::Dynamic,1> beta_tau2(p); (void) beta_tau2; // dummy to suppress unused var warning stan::math::fill(beta_tau2,DUMMY_VAR__); Eigen::Matrix<T__,Eigen::Dynamic,1> psi_tau2(Kp); (void) psi_tau2; // dummy to suppress unused var warning stan::math::fill(psi_tau2,DUMMY_VAR__); // initialize transformed variables to avoid seg fault on val access stan::math::fill(beta_tau2,DUMMY_VAR__); stan::math::fill(psi_tau2,DUMMY_VAR__); try { current_statement_begin__ = 48; for (int pcur = 1; pcur <= p; ++pcur) { current_statement_begin__ = 49; stan::math::assign(get_base1_lhs(beta_tau2,pcur,"beta_tau2",1), pow(get_base1(beta_sig,pcur,"beta_sig",1),-(1))); } current_statement_begin__ = 52; for (int kcur = 1; kcur <= Kp; ++kcur) { current_statement_begin__ = 53; stan::math::assign(get_base1_lhs(psi_tau2,kcur,"psi_tau2",1), pow(get_base1(psi_sig,kcur,"psi_sig",1),-(1))); } } catch (const std::exception& e) { stan::lang::rethrow_located(e,current_statement_begin__); // Next line prevents compiler griping about no return throw std::runtime_error("*** IF YOU SEE THIS, PLEASE REPORT A BUG ***"); } // validate transformed parameters for (int i0__ = 0; i0__ < p; ++i0__) { if (stan::math::is_uninitialized(beta_tau2(i0__))) { std::stringstream msg__; msg__ << "Undefined transformed parameter: beta_tau2" << '[' << i0__ << ']'; throw std::runtime_error(msg__.str()); } } for (int i0__ = 0; i0__ < Kp; ++i0__) { if (stan::math::is_uninitialized(psi_tau2(i0__))) { std::stringstream msg__; msg__ << "Undefined transformed parameter: psi_tau2" << '[' << i0__ << ']'; throw std::runtime_error(msg__.str()); } } const char* function__ = "validate transformed params"; (void) function__; // dummy to suppress unused var warning check_greater_or_equal(function__,"beta_tau2",beta_tau2,0.01); check_greater_or_equal(function__,"psi_tau2",psi_tau2,0.01); // model body try { current_statement_begin__ = 64; for (int pcur = 1; pcur <= p; ++pcur) { current_statement_begin__ = 65; lp_accum__.add(inv_gamma_log<propto__>(get_base1(beta_sig,pcur,"beta_sig",1), 1, 1)); } current_statement_begin__ = 70; for (int kcur = 1; kcur <= Kp; ++kcur) { current_statement_begin__ = 71; lp_accum__.add(inv_gamma_log<propto__>(get_base1(psi_sig,kcur,"psi_sig",1), 1, 1)); } current_statement_begin__ = 76; for (int pcur = 1; pcur <= p; ++pcur) { current_statement_begin__ = 77; lp_accum__.add(multi_normal_prec_log<propto__>(transpose(get_base1(beta,pcur,"beta",1)), mu_beta, multiply(get_base1(beta_tau2,pcur,"beta_tau2",1),PenMat))); } current_statement_begin__ = 81; for (int kcur = 1; kcur <= Kp; ++kcur) { current_statement_begin__ = 82; lp_accum__.add(multi_normal_prec_log<propto__>(transpose(get_base1(beta_psi,kcur,"beta_psi",1)), mu_beta, multiply(get_base1(psi_tau2,kcur,"psi_tau2",1),PenMat))); } current_statement_begin__ = 86; for (int i = 1; i <= I; ++i) { current_statement_begin__ = 87; lp_accum__.add(normal_log<propto__>(get_base1(c,i,"c",1), 0.0, 1.0)); } current_statement_begin__ = 94; for (int i = 1; i <= N; ++i) { current_statement_begin__ = 95; lp_accum__.add(bernoulli_logit_log<propto__>(get_base1(Y,i,"Y",1), (multiply(multiply(get_base1(BS,i,"BS",1),transpose(beta)),get_base1(X,get_base1(subjId,i,"subjId",1),"X",1)) + multiply(multiply(get_base1(BS,i,"BS",1),transpose(beta_psi)),get_base1(c,get_base1(subjId,i,"subjId",1),"c",1))))); } } catch (const std::exception& e) { stan::lang::rethrow_located(e,current_statement_begin__); // Next line prevents compiler griping about no return throw std::runtime_error("*** IF YOU SEE THIS, PLEASE REPORT A BUG ***"); } lp_accum__.add(lp__); return lp_accum__.sum(); } // log_prob() template <bool propto, bool jacobian, typename T_> T_ log_prob(Eigen::Matrix<T_,Eigen::Dynamic,1>& params_r, std::ostream* pstream = 0) const { std::vector<T_> vec_params_r; vec_params_r.reserve(params_r.size()); for (int i = 0; i < params_r.size(); ++i) vec_params_r.push_back(params_r(i)); std::vector<int> vec_params_i; return log_prob<propto,jacobian,T_>(vec_params_r, vec_params_i, pstream); } void get_param_names(std::vector<std::string>& names__) const { names__.resize(0); names__.push_back("beta"); names__.push_back("beta_psi"); names__.push_back("c"); names__.push_back("beta_sig"); names__.push_back("psi_sig"); names__.push_back("beta_tau2"); names__.push_back("psi_tau2"); } void get_dims(std::vector<std::vector<size_t> >& dimss__) const { dimss__.resize(0); std::vector<size_t> dims__; dims__.resize(0); dims__.push_back(p); dims__.push_back(Kt); dimss__.push_back(dims__); dims__.resize(0); dims__.push_back(Kp); dims__.push_back(Kt); dimss__.push_back(dims__); dims__.resize(0); dims__.push_back(I); dims__.push_back(Kp); dimss__.push_back(dims__); dims__.resize(0); dims__.push_back(p); dimss__.push_back(dims__); dims__.resize(0); dims__.push_back(Kp); dimss__.push_back(dims__); dims__.resize(0); dims__.push_back(p); dimss__.push_back(dims__); dims__.resize(0); dims__.push_back(Kp); dimss__.push_back(dims__); } template <typename RNG> void write_array(RNG& base_rng__, std::vector<double>& params_r__, std::vector<int>& params_i__, std::vector<double>& vars__, bool include_tparams__ = true, bool include_gqs__ = true, std::ostream* pstream__ = 0) const { vars__.resize(0); stan::io::reader<double> in__(params_r__,params_i__); static const char* function__ = "model_gfpca_namespace::write_array"; (void) function__; // dummy call to supress warning // read-transform, write parameters matrix_d beta = in__.matrix_constrain(p,Kt); matrix_d beta_psi = in__.matrix_constrain(Kp,Kt); vector<vector_d> c; size_t dim_c_0__ = I; for (size_t k_0__ = 0; k_0__ < dim_c_0__; ++k_0__) { c.push_back(in__.vector_constrain(Kp)); } vector_d beta_sig = in__.vector_lub_constrain(0,100,p); vector_d psi_sig = in__.vector_lub_constrain(0,100,Kp); for (int k_1__ = 0; k_1__ < Kt; ++k_1__) { for (int k_0__ = 0; k_0__ < p; ++k_0__) { vars__.push_back(beta(k_0__, k_1__)); } } for (int k_1__ = 0; k_1__ < Kt; ++k_1__) { for (int k_0__ = 0; k_0__ < Kp; ++k_0__) { vars__.push_back(beta_psi(k_0__, k_1__)); } } for (int k_1__ = 0; k_1__ < Kp; ++k_1__) { for (int k_0__ = 0; k_0__ < I; ++k_0__) { vars__.push_back(c[k_0__][k_1__]); } } for (int k_0__ = 0; k_0__ < p; ++k_0__) { vars__.push_back(beta_sig[k_0__]); } for (int k_0__ = 0; k_0__ < Kp; ++k_0__) { vars__.push_back(psi_sig[k_0__]); } if (!include_tparams__) return; // declare and define transformed parameters double lp__ = 0.0; (void) lp__; // dummy call to supress warning stan::math::accumulator<double> lp_accum__; vector_d beta_tau2(p); (void) beta_tau2; // dummy to suppress unused var warning vector_d psi_tau2(Kp); (void) psi_tau2; // dummy to suppress unused var warning try { current_statement_begin__ = 48; for (int pcur = 1; pcur <= p; ++pcur) { current_statement_begin__ = 49; stan::math::assign(get_base1_lhs(beta_tau2,pcur,"beta_tau2",1), pow(get_base1(beta_sig,pcur,"beta_sig",1),-(1))); } current_statement_begin__ = 52; for (int kcur = 1; kcur <= Kp; ++kcur) { current_statement_begin__ = 53; stan::math::assign(get_base1_lhs(psi_tau2,kcur,"psi_tau2",1), pow(get_base1(psi_sig,kcur,"psi_sig",1),-(1))); } } catch (const std::exception& e) { stan::lang::rethrow_located(e,current_statement_begin__); // Next line prevents compiler griping about no return throw std::runtime_error("*** IF YOU SEE THIS, PLEASE REPORT A BUG ***"); } // validate transformed parameters check_greater_or_equal(function__,"beta_tau2",beta_tau2,0.01); check_greater_or_equal(function__,"psi_tau2",psi_tau2,0.01); // write transformed parameters for (int k_0__ = 0; k_0__ < p; ++k_0__) { vars__.push_back(beta_tau2[k_0__]); } for (int k_0__ = 0; k_0__ < Kp; ++k_0__) { vars__.push_back(psi_tau2[k_0__]); } if (!include_gqs__) return; // declare and define generated quantities double DUMMY_VAR__(std::numeric_limits<double>::quiet_NaN()); (void) DUMMY_VAR__; // suppress unused var warning // initialize transformed variables to avoid seg fault on val access try { } catch (const std::exception& e) { stan::lang::rethrow_located(e,current_statement_begin__); // Next line prevents compiler griping about no return throw std::runtime_error("*** IF YOU SEE THIS, PLEASE REPORT A BUG ***"); } // validate generated quantities // write generated quantities } template <typename RNG> void write_array(RNG& base_rng, Eigen::Matrix<double,Eigen::Dynamic,1>& params_r, Eigen::Matrix<double,Eigen::Dynamic,1>& vars, bool include_tparams = true, bool include_gqs = true, std::ostream* pstream = 0) const { std::vector<double> params_r_vec(params_r.size()); for (int i = 0; i < params_r.size(); ++i) params_r_vec[i] = params_r(i); std::vector<double> vars_vec; std::vector<int> params_i_vec; write_array(base_rng,params_r_vec,params_i_vec,vars_vec,include_tparams,include_gqs,pstream); vars.resize(vars_vec.size()); for (int i = 0; i < vars.size(); ++i) vars(i) = vars_vec[i]; } static std::string model_name() { return "model_gfpca"; } void constrained_param_names(std::vector<std::string>& param_names__, bool include_tparams__ = true, bool include_gqs__ = true) const { std::stringstream param_name_stream__; for (int k_1__ = 1; k_1__ <= Kt; ++k_1__) { for (int k_0__ = 1; k_0__ <= p; ++k_0__) { param_name_stream__.str(std::string()); param_name_stream__ << "beta" << '.' << k_0__ << '.' << k_1__; param_names__.push_back(param_name_stream__.str()); } } for (int k_1__ = 1; k_1__ <= Kt; ++k_1__) { for (int k_0__ = 1; k_0__ <= Kp; ++k_0__) { param_name_stream__.str(std::string()); param_name_stream__ << "beta_psi" << '.' << k_0__ << '.' << k_1__; param_names__.push_back(param_name_stream__.str()); } } for (int k_1__ = 1; k_1__ <= Kp; ++k_1__) { for (int k_0__ = 1; k_0__ <= I; ++k_0__) { param_name_stream__.str(std::string()); param_name_stream__ << "c" << '.' << k_0__ << '.' << k_1__; param_names__.push_back(param_name_stream__.str()); } } for (int k_0__ = 1; k_0__ <= p; ++k_0__) { param_name_stream__.str(std::string()); param_name_stream__ << "beta_sig" << '.' << k_0__; param_names__.push_back(param_name_stream__.str()); } for (int k_0__ = 1; k_0__ <= Kp; ++k_0__) { param_name_stream__.str(std::string()); param_name_stream__ << "psi_sig" << '.' << k_0__; param_names__.push_back(param_name_stream__.str()); } if (!include_gqs__ && !include_tparams__) return; for (int k_0__ = 1; k_0__ <= p; ++k_0__) { param_name_stream__.str(std::string()); param_name_stream__ << "beta_tau2" << '.' << k_0__; param_names__.push_back(param_name_stream__.str()); } for (int k_0__ = 1; k_0__ <= Kp; ++k_0__) { param_name_stream__.str(std::string()); param_name_stream__ << "psi_tau2" << '.' << k_0__; param_names__.push_back(param_name_stream__.str()); } if (!include_gqs__) return; } void unconstrained_param_names(std::vector<std::string>& param_names__, bool include_tparams__ = true, bool include_gqs__ = true) const { std::stringstream param_name_stream__; for (int k_1__ = 1; k_1__ <= Kt; ++k_1__) { for (int k_0__ = 1; k_0__ <= p; ++k_0__) { param_name_stream__.str(std::string()); param_name_stream__ << "beta" << '.' << k_0__ << '.' << k_1__; param_names__.push_back(param_name_stream__.str()); } } for (int k_1__ = 1; k_1__ <= Kt; ++k_1__) { for (int k_0__ = 1; k_0__ <= Kp; ++k_0__) { param_name_stream__.str(std::string()); param_name_stream__ << "beta_psi" << '.' << k_0__ << '.' << k_1__; param_names__.push_back(param_name_stream__.str()); } } for (int k_1__ = 1; k_1__ <= Kp; ++k_1__) { for (int k_0__ = 1; k_0__ <= I; ++k_0__) { param_name_stream__.str(std::string()); param_name_stream__ << "c" << '.' << k_0__ << '.' << k_1__; param_names__.push_back(param_name_stream__.str()); } } for (int k_0__ = 1; k_0__ <= p; ++k_0__) { param_name_stream__.str(std::string()); param_name_stream__ << "beta_sig" << '.' << k_0__; param_names__.push_back(param_name_stream__.str()); } for (int k_0__ = 1; k_0__ <= Kp; ++k_0__) { param_name_stream__.str(std::string()); param_name_stream__ << "psi_sig" << '.' << k_0__; param_names__.push_back(param_name_stream__.str()); } if (!include_gqs__ && !include_tparams__) return; for (int k_0__ = 1; k_0__ <= p; ++k_0__) { param_name_stream__.str(std::string()); param_name_stream__ << "beta_tau2" << '.' << k_0__; param_names__.push_back(param_name_stream__.str()); } for (int k_0__ = 1; k_0__ <= Kp; ++k_0__) { param_name_stream__.str(std::string()); param_name_stream__ << "psi_tau2" << '.' << k_0__; param_names__.push_back(param_name_stream__.str()); } if (!include_gqs__) return; } }; // model } // namespace #endif
[ "jeff.goldsmith@columbia.edu" ]
jeff.goldsmith@columbia.edu
cf9df2b88db2e83798d22466cda5cdadb9786763
9030ce2789a58888904d0c50c21591632eddffd7
/SDK/ARKSurvivalEvolved_WeapBola_functions.cpp
38c3a206c073771379a8dce0d78801009106835e
[ "MIT" ]
permissive
2bite/ARK-SDK
8ce93f504b2e3bd4f8e7ced184980b13f127b7bf
ce1f4906ccf82ed38518558c0163c4f92f5f7b14
refs/heads/master
2022-09-19T06:28:20.076298
2022-09-03T17:21:00
2022-09-03T17:21:00
232,411,353
14
5
null
null
null
null
UTF-8
C++
false
false
2,329
cpp
// ARKSurvivalEvolved (332.8) SDK #ifdef _MSC_VER #pragma pack(push, 0x8) #endif #include "ARKSurvivalEvolved_WeapBola_parameters.hpp" namespace sdk { //--------------------------------------------------------------------------- //Functions //--------------------------------------------------------------------------- // Function WeapBola.WeapBola_C.BPWeaponCanFire // () // Parameters: // bool ReturnValue (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) bool AWeapBola_C::BPWeaponCanFire() { static auto fn = UObject::FindObject<UFunction>("Function WeapBola.WeapBola_C.BPWeaponCanFire"); AWeapBola_C_BPWeaponCanFire_Params params; auto flags = fn->FunctionFlags; UObject::ProcessEvent(fn, &params); fn->FunctionFlags = flags; return params.ReturnValue; } // Function WeapBola.WeapBola_C.BPGetProjectileSpeed // () // Parameters: // float ReturnValue (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) float AWeapBola_C::BPGetProjectileSpeed() { static auto fn = UObject::FindObject<UFunction>("Function WeapBola.WeapBola_C.BPGetProjectileSpeed"); AWeapBola_C_BPGetProjectileSpeed_Params params; auto flags = fn->FunctionFlags; UObject::ProcessEvent(fn, &params); fn->FunctionFlags = flags; return params.ReturnValue; } // Function WeapBola.WeapBola_C.UserConstructionScript // () void AWeapBola_C::UserConstructionScript() { static auto fn = UObject::FindObject<UFunction>("Function WeapBola.WeapBola_C.UserConstructionScript"); AWeapBola_C_UserConstructionScript_Params params; auto flags = fn->FunctionFlags; UObject::ProcessEvent(fn, &params); fn->FunctionFlags = flags; } // Function WeapBola.WeapBola_C.ExecuteUbergraph_WeapBola // () // Parameters: // int EntryPoint (Parm, ZeroConstructor, IsPlainOldData) void AWeapBola_C::ExecuteUbergraph_WeapBola(int EntryPoint) { static auto fn = UObject::FindObject<UFunction>("Function WeapBola.WeapBola_C.ExecuteUbergraph_WeapBola"); AWeapBola_C_ExecuteUbergraph_WeapBola_Params params; params.EntryPoint = EntryPoint; auto flags = fn->FunctionFlags; UObject::ProcessEvent(fn, &params); fn->FunctionFlags = flags; } } #ifdef _MSC_VER #pragma pack(pop) #endif
[ "sergey.2bite@gmail.com" ]
sergey.2bite@gmail.com
61f15b95455eece11cfcd422af6bb8d88f30b958
0136056dd39ac03260a58153041dafc2c82dc696
/__linux__C__C++/project/hVS/version1.0/event/event.cpp
f825843b33c20bf8e133addc57f127ea36ad7291
[]
no_license
heyuanlong1/test7879
4fd4ca8c25c56e7498f8160f366cc85344d6e31e
4f411fc44fb2b0fc95b034f374769ca6aa66b67e
refs/heads/master
2020-06-17T20:46:55.003633
2019-08-15T03:45:24
2019-08-15T03:45:24
74,970,442
0
0
null
null
null
null
UTF-8
C++
false
false
1,207
cpp
#include "event.h" #define LOBBY_NET_UPD_BUF_SIZE 1500 static int lobby_server_upd_socket = -1; int event_lobby_init() { int port = get_lobby_server_udp_port(); lobby_server_upd_socket = net_udp_socket_init(port); printf("event_lobby_init lobby_server_upd_socket:%d\n", lobby_server_upd_socket); return 0; } int event_lobby_loop(busi_lobby_callback_handle_t lobby_callback) { static char net_buf[LOBBY_NET_UPD_BUF_SIZE] = { 0 }; static int recv_len; static struct sockaddr_in addr; static lobby_busi_t busi; for (;;) { recv_len = net_upd_recv(lobby_server_upd_socket, net_buf, LOBBY_NET_UPD_BUF_SIZE, &addr); if (recv_len > 0) { busi.data = ((void*)net_buf); busi.data_len = recv_len; busi.addr = &addr; lobby_callback(&busi); } else { } } } int event_lobby_notify(lobby_busi_t *busi) { int sendLen = net_upd_send(lobby_server_upd_socket, (const char *)busi->data, busi->data_len ,busi->addr); if (sendLen <= 0) { printf("net_upd_send failed\n"); } return 0; } /* int event_lobby_cmd(int cmd) { switch (cmd) { case CMD_REG: case CMD_LOGIN: case CMD_LOGOUT: case CMD_ENTER_ROOM: case CMD_GOOUT_ROOM: break; default: return -1; } return 0; } */
[ "1023417614@qq.com" ]
1023417614@qq.com
e5cdfe9bc7f48b9c70073a8f15077c082ab42ddb
5e8d200078e64b97e3bbd1e61f83cb5bae99ab6e
/main/source/src/protocols/minimization_packing/MinMover.cc
71b68515dc69d00219b8008e2227dbea1f977e37
[]
no_license
MedicaicloudLink/Rosetta
3ee2d79d48b31bd8ca898036ad32fe910c9a7a28
01affdf77abb773ed375b83cdbbf58439edd8719
refs/heads/master
2020-12-07T17:52:01.350906
2020-01-10T08:24:09
2020-01-10T08:24:09
232,757,729
2
6
null
null
null
null
UTF-8
C++
false
false
20,999
cc
// -*- mode:c++;tab-width:2;indent-tabs-mode:t;show-trailing-whitespace:t;rm-trailing-spaces:t -*- // vi: set ts=2 noet: // // (c) Copyright Rosetta Commons Member Institutions. // (c) This file is part of the Rosetta software suite and is made available under license. // (c) The Rosetta software is developed by the contributing members of the Rosetta Commons. // (c) For more information, see http://www.rosettacommons.org. Questions about this can be // (c) addressed to University of Washington CoMotion, email: license@uw.edu. /// @file protocols/minimization_packing/MinMover.cc /// @brief method definitions for MinMover /// @author ashworth // Unit headers #include <protocols/minimization_packing/MinMover.hh> #include <protocols/minimization_packing/MinMoverCreator.hh> // Package headers #include <core/optimization/AtomTreeMinimizer.hh> #include <core/optimization/MinimizerOptions.hh> #include <core/optimization/CartesianMinimizer.hh> #include <core/optimization/symmetry/SymAtomTreeMinimizer.hh> // Project headers #include <core/id/TorsionID.hh> #include <core/id/types.hh> #include <core/conformation/Residue.hh> #include <core/kinematics/MoveMap.hh> #include <core/select/movemap/MoveMapFactory.hh> #include <core/select/jump_selector/JumpIndexSelector.hh> #include <core/pack/task/PackerTask.hh> #include <core/pack/task/TaskFactory.hh> #include <core/scoring/ScoreFunction.hh> #include <core/scoring/ScoreFunctionFactory.hh> // get_score_function #include <core/pose/Pose.hh> #include <core/pose/symmetry/util.hh> #include <core/pack/task/operation/TaskOperation.hh> #include <core/select/movemap/util.hh> #include <protocols/rosetta_scripts/util.hh> #include <protocols/moves/mover_schemas.hh> // Basic headers #include <basic/prof.hh> #include <basic/datacache/DataMap.hh> // Utility headers #include <utility/string_util.hh> #include <utility/tag/Tag.hh> #include <utility/tag/XMLSchemaGeneration.hh> #include <utility/vector0.hh> #include <utility/vector1.hh> // C++ headers #include <iostream> // Boost Headers #include <basic/Tracer.hh> namespace protocols { namespace minimization_packing { using namespace core; using namespace kinematics; using namespace optimization; using namespace scoring; using core::pack::task::PackerTaskOP; static basic::Tracer TR( "protocols.minimization_packing.MinMover" ); std::string MinMoverCreator::keyname() const { return MinMoverCreator::mover_name(); } protocols::moves::MoverOP MinMoverCreator::create_mover() const { return utility::pointer::make_shared< MinMover >(); } void MinMoverCreator::provide_xml_schema( utility::tag::XMLSchemaDefinition & xsd ) const { MinMover::provide_xml_schema( xsd ); } std::string MinMoverCreator::mover_name() { return "MinMover"; } std::string MinMover::mover_name() { return MinMoverCreator::mover_name(); } // default constructor // proper lightweight default constructor MinMover::MinMover() : Parent("MinMover"), movemap_(/* 0 */), scorefxn_(/* 0 */), min_options_(/* 0 */), abs_score_convergence_threshold_(0.0), cartesian_(false), dof_tasks_() { omega_ = true; min_options_ = utility::pointer::make_shared< MinimizerOptions >( "linmin", 0.01, true, false, false ); } MinMover::MinMover( std::string const & name ) : Parent( name ), movemap_(/* 0 */), scorefxn_(/* 0 */), min_options_(/* 0 */), abs_score_convergence_threshold_(0.0), cartesian_(false), dof_tasks_() { omega_ = true; min_options_ = utility::pointer::make_shared< MinimizerOptions >( "linmin", 0.01, true, false, false ); } MinMover::~MinMover()= default; // constructor with arguments MinMover::MinMover( MoveMapOP movemap_in, ScoreFunctionCOP scorefxn_in, std::string const & min_type_in, Real tolerance_in, bool use_nb_list_in, bool deriv_check_in /* = false */, bool deriv_check_verbose_in /* = false */ ) : Parent("MinMover"), movemap_(std::move( movemap_in )), scorefxn_(std::move( scorefxn_in )), min_options_(/* 0 */), abs_score_convergence_threshold_(0.0), cartesian_(false), dof_tasks_() { omega_ = true; min_options_ = utility::pointer::make_shared< MinimizerOptions >( min_type_in, tolerance_in, use_nb_list_in, deriv_check_in, deriv_check_verbose_in ); } /// @brief allow non-const access to the internal minimizer options object MinimizerOptionsOP MinMover::min_options() { return min_options_; } /// @brief allow const access to the internal minimizer options object MinimizerOptionsCOP MinMover::min_options() const { return min_options_; } void MinMover::min_options( MinimizerOptionsOP min_options) { min_options_ = min_options; } void MinMover::movemap( MoveMapCOP movemap_in ) { movemap_ = utility::pointer::make_shared< MoveMap >( *movemap_in ); } void MinMover::set_movemap( MoveMapCOP movemap_in ){ movemap( movemap_in ); } void MinMover::movemap_factory( core::select::movemap::MoveMapFactoryCOP mmf ) { movemap_factory_ = mmf; } MoveMapCOP MinMover::movemap( core::pose::Pose const & pose ) const { if ( movemap_ ) { return movemap_; } else if ( movemap_factory_ ) { return movemap_factory_->create_movemap_from_pose( pose ); } else { return utility::pointer::make_shared< core::kinematics::MoveMap >(); } } /// @brief Get the explicitly set movemap object, if present, nullptr if not /// Will not create a default or look at the MoveMapFactory core::kinematics::MoveMapCOP MinMover::explicitly_set_movemap() const { return movemap_; } void MinMover::score_function( ScoreFunctionCOP scorefxn_in ) { runtime_assert( scorefxn_in != nullptr ); scorefxn_ = scorefxn_in; } // Why would you want a deep copy of the ScoreFunction here? // In any case, commenting this out, because PyRosetta cannot distinguish between these two function signatures, always // choosing this one and leading to unexpected behavior. ~Labonte /*void MinMover::score_function( ScoreFunction const & scorefxn_in ) { scorefxn_ = scorefxn_in.clone(); }*/ ScoreFunctionCOP MinMover::score_function() const { return scorefxn_; } void MinMover::min_type( std::string min_type_in ) { min_options_->min_type( min_type_in ); } std::string MinMover::min_type() const { return min_options_->min_type(); } void MinMover::tolerance( Real tolerance_in ) { min_options_->minimize_tolerance( tolerance_in ); } Real MinMover::tolerance() const { return min_options_->minimize_tolerance(); } void MinMover::nb_list( bool nb_list_in ) { min_options_->use_nblist( nb_list_in ); } bool MinMover::nb_list() const { return min_options_->use_nblist(); } void MinMover::deriv_check( bool deriv_check_in ) { min_options_->deriv_check( deriv_check_in ); } bool MinMover::deriv_check() const { return min_options_->deriv_check(); } /// @details restrict the move map by the packer task: ///If a residue is not designable, the backbone is fixes ///If a residue is not packable, the sidechain is fixed /// ///WARNING: This is extending the abuse of using task operations for ///general ResidueSubsets /// ///When TaskOperations replaced with ResidueSetOperations please ///change this too! void MinMover::apply_dof_tasks_to_movemap( core::pose::Pose const & pose, MoveMap & movemap ) const { for ( auto const & dof_task : dof_tasks_ ) { //generate task PackerTaskOP task( dof_task.second->create_task_and_apply_taskoperations( pose ) ); //modify movemap by task Size const nres( task->total_residue() ); //Set DOFs by task operations: for ( Size i(1); i <= nres; ++i ) { if ( dof_task.first.first == core::id::PHI ) { core::kinematics::MoveMap::MoveMapTorsionID mmid; mmid.first = i; mmid.second = dof_task.first.second; movemap.set( mmid, task->pack_residue( i ) ); } else { for ( Size ia=1,iamax=pose.residue(i).natoms(); ia<=iamax; ++ia ) { movemap.set( core::id::DOF_ID( core::id::AtomID(ia,i), dof_task.first.first ), task->pack_residue(i) ); } //movemap.set( t->first.first, task->pack_residue( i ) ); } } } if ( !omega_ ) { TR << "shutting off omega dihedral angle minimization" << std::endl; for ( core::Size i = 1; i <= pose.size(); ++i ) { if ( !pose.residue( i ).is_protein() ) continue; movemap.set( core::id::TorsionID( core::id::omega_torsion, BB, i), false ); } } } void MinMover::max_iter( Size max_iter_in ) { min_options_->max_iter( max_iter_in ); } void MinMover::minimize(pose::Pose & pose, core::kinematics::MoveMap const & active_movemap){ PROF_START( basic::MINMOVER_APPLY ); inner_run_minimizer( pose, active_movemap ); if ( abs_score_convergence_threshold() > 0.0 ) { while ( abs_score_diff_after_minimization() > abs_score_convergence_threshold() ) { // Make sure further minimizations lead to the same answer TR << "running another iteration of minimization. difference is: " << abs_score_diff_after_minimization() << std::endl; inner_run_minimizer( pose, active_movemap ); } } PROF_STOP( basic::MINMOVER_APPLY ); // emit statistics if ( TR.Debug.visible() ) { scorefxn_->show( TR.Debug, pose ); TR.Debug << std::endl; } } void MinMover::inner_run_minimizer( core::pose::Pose & pose, core::kinematics::MoveMap const & active_movemap ) { if ( !cartesian( ) ) { AtomTreeMinimizerOP minimizer; if ( core::pose::symmetry::is_symmetric( pose ) ) { minimizer = utility::pointer::make_shared< core::optimization::symmetry::SymAtomTreeMinimizer >(); } else { minimizer = utility::pointer::make_shared< AtomTreeMinimizer >(); } score_before_minimization_ = (*scorefxn_)(pose); score_after_minimization_ = minimizer->run( pose, active_movemap, *scorefxn_, *min_options_ ); } else { CartesianMinimizer minimizer; score_before_minimization_ = (*scorefxn_)(pose); score_after_minimization_ = minimizer.run( pose, active_movemap, *scorefxn_, *min_options_ ); } } void MinMover::apply( pose::Pose & pose ) { // lazy default initialization MoveMapOP active_movemap( movemap(pose)->clone() ); apply_dof_tasks_to_movemap(pose, *active_movemap); if ( core::pose::symmetry::is_symmetric( pose ) ) { core::pose::symmetry::make_symmetric_movemap( pose, *active_movemap ); } if ( ! scorefxn_ ) scorefxn_ = get_score_function(pose); // get a default (INITIALIZED!) ScoreFunction minimize( pose, *active_movemap ); } void MinMover::show(std::ostream & output) const { Mover::show(output); output << "Minimization type:\t" << min_type() << "\nScorefunction:\t\t"; if ( score_function() != nullptr ) { output << score_function()->get_name() << std::endl; } else { output << "none" << std::endl; } output << "Score tolerance:\t" << tolerance() << "\nNb list:\t\t" << (nb_list() ? "True" : "False") << "\nDeriv check:\t\t" << (deriv_check() ? "True" : "False") << std::endl << "Movemap:" << std::endl; if ( movemap_ != nullptr ) { movemap_->show(output); } } protocols::moves::MoverOP MinMover::clone() const { return utility::pointer::make_shared< protocols::minimization_packing::MinMover >( *this ); } protocols::moves::MoverOP MinMover::fresh_instance() const { return utility::pointer::make_shared< MinMover >(); } void MinMover::parse_my_tag( TagCOP const tag, basic::datacache::DataMap & data, Filters_map const & filters, protocols::moves::Movers_map const & movers, Pose const & ) { parse_opts( tag, data, filters, movers ); parse_movemap_factory( tag, data ); parse_dof_tasks( tag, data ); } void MinMover::parse_opts( TagCOP const tag, basic::datacache::DataMap & data, Filters_map const &, protocols::moves::Movers_map const & ) { if ( tag->hasOption("scorefxn") ) { score_function( protocols::rosetta_scripts::parse_score_function( tag, data ) ); } max_iter( tag->getOption< int >( "max_iter", 200 ) ); min_type( tag->getOption< std::string >( "type", "lbfgs_armijo_nonmonotone" ) ); tolerance( tag->getOption< core::Real >( "tolerance", 0.01 ) ); abs_score_convergence_threshold( tag->getOption< core::Real >( "abs_score_convergence_threshold", 0.0 ) ); cartesian( tag->getOption< bool >( "cartesian", false ) ); //fpd if cartesian or nonideal default to lbfgs minimization otherwise the runtime is horrible if ( cartesian() && !tag->hasOption("type") ) { min_type( "lbfgs_armijo_nonmonotone" ); } if ( ( tag->getOption<bool>("bondangle",false) ||tag->getOption<bool>("bondlength",false) ) && !tag->hasOption("type") ) { min_type( "lbfgs_armijo_nonmonotone" ); } } void MinMover::parse_movemap_factory( TagCOP const tag, basic::datacache::DataMap & data ) { using namespace core::select::movemap; if ( tag->hasOption("movemap_factory") ) { TR << "Found set MoveMap factory. Using this to define MoveMap." << std::endl; if ( tag->hasOption("chi") || tag->hasOption("bb") ) { throw CREATE_EXCEPTION( utility::excn::RosettaScriptsOptionError, "MinMover can accept either a MoveMapFactory OR bb/chi (with or without an old-style movemap.)"); } MoveMapFactoryOP mmf = core::select::movemap::parse_movemap_factory( tag, data ); movemap_factory(mmf); return; } MoveMapFactoryOP mmf( new MoveMapFactory ); if ( tag->hasOption("jump") ) { utility::vector1<std::string> jumps = utility::string_split( tag->getOption<std::string>( "jump" ), ',' ); // string 'ALL' makes all jumps movable if ( jumps.size() == 1 && (jumps[1] == "ALL" || jumps[1] == "All" || jumps[1] == "all" || jumps[1] == "*") ) { mmf->all_jumps( true ); } else if ( tag->getOption< core::Size > ( "jump" ) == 0 ) { mmf->all_jumps( false ); } else { for ( std::string const & jump : jumps ) { int const value = std::atoi( jump.c_str() ); // convert to C string, then convert to integer (phew!) core::select::jump_selector::JumpSelectorCOP jump_select( new core::select::jump_selector::JumpIndexSelector( value ) ); TR << "Setting min on jump " << value << std::endl; mmf->add_jump_action( mm_enable, jump_select ); } } } if ( !(tag->hasOption("bb") && tag->hasOption("chi")) ) { utility_exit_with_message("If not using a Movemap Factory, bb and chi options are required!"); } bool const chi( tag->getOption< bool >( "chi" ) ), bb( tag->getOption< bool >( "bb" ) ); omega_ = tag->getOption< bool >( "omega", true ); mmf->all_chi( chi ); mmf->all_bb( bb ); TR<<"Options chi, bb: "<<chi<<", "<<bb<<" omega: "<<omega_<<std::endl; if ( tag->hasOption("bondangle") ) { bool const value( tag->getOption<bool>("bondangle") ); mmf->all_bondangles( value ); } if ( tag->hasOption("bondlength") ) { bool const value( tag->getOption<bool>("bondlength") ); mmf->all_bondlengths( value ); } movemap_factory( protocols::rosetta_scripts::parse_movemap_factory_legacy( tag, data, false, mmf ) ); } /// @detail helper function for parse_of_tasks void MinMover::parse_dof_task_type( std::string const & tag_name, core::id::DOF_Type dof_type, core::id::TorsionType torsion_type, TagCOP const tag, basic::datacache::DataMap & data ) { if ( !tag->hasOption(tag_name) ) { return; } using namespace core::pack::task; using namespace core::pack::task::operation; using std::string; using StringVec = utility::vector1<std::string>; TaskFactoryOP task_factory( new TaskFactory() ); string const t_o_val( tag->getOption<string>(tag_name) ); StringVec const t_o_keys( utility::string_split( t_o_val, ',' ) ); for ( string const & t_o_key : t_o_keys ) { if ( data.has( "task_operations", t_o_key ) ) { task_factory->push_back( data.get_ptr< TaskOperation >( "task_operations", t_o_key ) ); TR << "\t " << tag_name << ": " << t_o_key << std::endl; } else { utility_exit_with_message("TaskOperation " + t_o_key + " not found in basic::datacache::DataMap."); } } dof_tasks_[ std::make_pair(dof_type, torsion_type)] = task_factory; } void MinMover::parse_dof_tasks( TagCOP const tag, basic::datacache::DataMap & data ) { if ( tag->hasOption("bb_task_operations") || tag->hasOption("chi_task_operations") || tag->hasOption("bondangle_task_operations") || tag->hasOption("bondlength_task_operations") ) { TR << "Adding the following task operations to mover " << tag->getName() << " " << "called " << tag->getOption<std::string>( "name", "no_name" ) << ":" << std::endl; } parse_dof_task_type( "bb_task_operations", core::id::PHI, core::id::BB, tag, data ); parse_dof_task_type( "chi_task_operations", core::id::PHI, core::id::CHI, tag, data ); parse_dof_task_type( "bondangle_task_operations", core::id::THETA, core::id::BB, // (dummy parameter) tag, data ); parse_dof_task_type( "bondlength_task_operations", core::id::D, core::id::BB, // (dummy parameter) tag, data ); } std::ostream &operator<< (std::ostream &os, MinMover const &mover) { mover.show(os); return os; } utility::tag::XMLSchemaComplexTypeGeneratorOP MinMover::complex_type_generator_for_min_mover( utility::tag::XMLSchemaDefinition & xsd ){ using namespace utility::tag; AttributeList attributes; attributes + XMLSchemaAttribute( "jump", xs_string, "Comma-separated list of jumps to minimize over (be sure this jump exists!). " "If set to \"ALL\", all jumps will be set to minimize. " "If set to \"0\", jumps will be set not to minimize" ) + XMLSchemaAttribute( "abs_score_convergence_threshold", xsct_real , "Keep minimizing until difference before minimization is less than this threshold" ) + XMLSchemaAttribute::attribute_w_default( "max_iter", xsct_non_negative_integer, "maximum number of iterations allowed. This default is also very loose. " "This and the tolerance setting both affect if you will reach convergence", "200" ) + XMLSchemaAttribute::attribute_w_default( "type", xsct_minimizer_type, "Minimizer type. linmin, dfpmin, dfpmin_armijo, dfpmin_armijo_nonmonotone. " "dfpmin minimzers can also be used with absolute tolerance (add \"atol\" to the minimizer type).", "lbfgs_armijo_nonmonotone" ) + XMLSchemaAttribute::attribute_w_default( "tolerance", xsct_real , "Criteria for convergence of minimization. The default is very loose, " "it's recommended to specify something less than 0.01. " "max_iter also affects convergence", "0.01" ) + XMLSchemaAttribute::attribute_w_default( "cartesian", xsct_rosetta_bool , "Perform cartesian minimization?", "false" ) + XMLSchemaAttribute::attribute_w_default( "bondangle", xsct_rosetta_bool , "Minimize bond angles?", "0" ) + XMLSchemaAttribute::attribute_w_default( "bondlength", xsct_rosetta_bool , "Minimize bond lengths?", "0" ); attributes + XMLSchemaAttribute( "chi", xsct_rosetta_bool , "Minimize chi angles?" ) + XMLSchemaAttribute( "bb", xsct_rosetta_bool , "Minimize backbone torsion angles?" ) + XMLSchemaAttribute::attribute_w_default( "omega", xsct_rosetta_bool , "Minimize omega torsions?", "true" ); //All of these are lists of task operations, but none use parse_task_operations attributes + XMLSchemaAttribute( "bb_task_operations", xsct_task_operation_comma_separated_list , "Task operations specifying residues for backbone minimization" ) + XMLSchemaAttribute( "chi_task_operations", xsct_task_operation_comma_separated_list , "Task operations specifying residues for sidechain minimization" ) + XMLSchemaAttribute( "bondangle_task_operations", xsct_task_operation_comma_separated_list , "Task operations specifying residues for bond angle minimization" ) + XMLSchemaAttribute( "bondlength_task_operations", xsct_task_operation_comma_separated_list , "Task operation specifying residues for bond length minimization" ); core::select::movemap::attributes_for_parse_movemap_factory_default_attr_name( attributes, "The name of the already-defined MoveMapFactory that will be used to alter the" " default behavior of the MoveMap. By default, all backbone, chi, and jump DOFs" " are allowed to change. A MoveMapFactory can be used to change which of those" " DOFs are actually enabled. Be warned that combining a MoveMapFactory with" " a MoveMap can result in unexpected behavior. " ); rosetta_scripts::attributes_for_parse_score_function( attributes ); XMLSchemaSimpleSubelementList subelements; rosetta_scripts::append_subelement_for_parse_movemap_factory_legacy( xsd, subelements ); XMLSchemaComplexTypeGeneratorOP ct_gen( new XMLSchemaComplexTypeGenerator ); ct_gen->complex_type_naming_func( & moves::complex_type_name_for_mover ) .add_attributes( attributes ) .set_subelements_repeatable( subelements ) .add_optional_name_attribute(); return ct_gen; } void MinMover::provide_xml_schema( utility::tag::XMLSchemaDefinition & xsd ) { //Check parse_movemap using namespace utility::tag; auto ct_gen = complex_type_generator_for_min_mover( xsd ); ct_gen->element_name( mover_name() ) .description( "Does minimization over sidechain and/or backbone" ) .write_complex_type_to_schema( xsd ); } Real MinMover::score_diff_after_minimization() const { return score_after_minimization_ - score_before_minimization_; } Real MinMover::abs_score_diff_after_minimization() const { return std::abs( score_diff_after_minimization() ); } } // minimization_packing } // protocols
[ "36790013+MedicaicloudLink@users.noreply.github.com" ]
36790013+MedicaicloudLink@users.noreply.github.com
26c26cacbe878f77db38591e2f0486e7c8a346d6
9b419f114d20f98a7719fabd32379035ff444923
/include/ImageDrawer.h
02855aef51a1d703cd5877e9df118216587029ba
[]
no_license
phelrine/kica
ecd553725b7e1d84529866c728224bbcb75838ac
828881d6df9a52b5c65d662b86d577278c9c66a6
refs/heads/master
2020-04-08T20:34:33.884854
2011-07-12T02:47:49
2011-07-12T02:47:49
1,966,187
0
1
null
null
null
null
UTF-8
C++
false
false
566
h
#ifndef IMAGEDRAWER_H_INCLUDED #define IMAGEDRAWER_H_INCLUDED #include <XnOpenNI.h> #include <XnCppWrapper.h> #if (XN_PLATFORM == XN_PLATFORM_MACOSX) #include <GLUT/glut.h> #else #include <GL/glut.h> #endif #include "TextureDrawer.h" class ImageDrawer : public TextureDrawer { xn::ImageGenerator generator; GLubyte *texData; public: ImageDrawer(xn::ImageGenerator &generator_); virtual ~ImageDrawer(); const GLubyte *getTextureData() const {return texData;}; virtual void draw(); private: void update(); }; #endif /* IMAGEDRAWER_H_INCLUDED */
[ "phelrine@gmail.com" ]
phelrine@gmail.com
581d441e01122350501c55bf4bdcaa9a4618f11f
79e672e1718b5a027dfb0a4ae946c0a5fbb35431
/CivilOffice/person.cpp
4ee0e315c41e6b311d25ccfb464868c63443afe8
[]
no_license
Sotiraqi/OOP-Projects
c6a27b1faaf8463c2507a9ba297d936fc52e8709
7de808db3367d8d9ab3b6832255a29c66966d983
refs/heads/main
2023-03-17T20:35:03.909606
2021-03-24T14:05:43
2021-03-24T14:05:43
351,093,214
0
0
null
null
null
null
UTF-8
C++
false
false
1,135
cpp
#include "person.h" CPerson::CPerson() { name_surname = ""; m_name_surname = ""; f_name_surname = ""; birth_day = 0; } CPerson::CPerson(string p_data, string pm_data, string pf_data, long int birthday) { p_data = name_surname; pm_data = m_name_surname; pf_data = f_name_surname; birthday = birth_day; } bool CPerson::operator<(const CPerson& stud) { if (birth_day < stud.birth_day) { return true; } else { return false; } } ostream& operator<<(ostream& os, const CPerson& pers) { cout << "Surname/Name: " << pers.name_surname << endl; cout << "Father's Surname/Name: " << pers.f_name_surname << endl; cout << "Mother's Surname/Name: " << pers.m_name_surname << endl; cout << "Birthday: " << pers.birth_day << endl; // TODO: insert return statement here return os; } void bubble_sort(CPerson* arr[], int size) { CPerson* temp; for (int i = 0; i < size; i++) { for (int j = 0; j < size - i - 1; j++) { if (arr[j + 1] < arr[j]) { // swap the elements temp = arr[j]; arr[j] = arr[j + 1]; arr[j + 1] = temp; } } } }
[ "noreply@github.com" ]
noreply@github.com
a62fa066f00d215e84eaaa28a67874d7a742e509
dd1e3221c0b9378457ef54a409788b42b8df66ea
/Applications/BasicScenes/App.cpp
25633782e9f320ed45e5f37f3e67759f264b6edd
[ "MIT" ]
permissive
FTD2012/Hieroglyph3
b1b83bea2c7b8e08c2916d2b9006ae77264bfcc4
10adfe1639747ecb6aa0bb5a4d2618383758d361
refs/heads/master
2022-11-02T07:28:00.660292
2020-06-19T12:41:56
2020-06-19T12:41:56
273,384,411
2
2
null
null
null
null
UTF-8
C++
false
false
9,002
cpp
//-------------------------------------------------------------------------------- // This file is a portion of the Hieroglyph 3 Rendering Engine. It is distributed // under the MIT License, available in the root of this distribution and // at the following URL: // // http://www.opensource.org/licenses/mit-license.php // // Copyright (c) Jason Zink //-------------------------------------------------------------------------------- #include "App.h" #include "Log.h" #include <sstream> #include "EventManager.h" #include "EvtFrameStart.h" #include "EvtChar.h" #include "EvtKeyUp.h" #include "EvtKeyDown.h" #include "ScriptManager.h" #include "SwapChainConfigDX11.h" #include "Texture2dConfigDX11.h" #include "RasterizerStateConfigDX11.h" #include "BufferConfigDX11.h" #include "MaterialGeneratorDX11.h" #include "IParameterManager.h" using namespace Glyph3; //-------------------------------------------------------------------------------- App AppInstance; // Provides an instance of the application //-------------------------------------------------------------------------------- //-------------------------------------------------------------------------------- App::App() { } //-------------------------------------------------------------------------------- bool App::ConfigureEngineComponents() { // The application currently supplies the int width = 640; int height = 320; bool windowed = true; // Set the render window parameters and initialize the window m_pWindow = new Win32RenderWindow(); m_pWindow->SetPosition( 25, 25 ); m_pWindow->SetSize( width, height ); m_pWindow->SetCaption( GetName() ); m_pWindow->Initialize( this ); // Create the renderer and initialize it for the desired device // type and feature level. m_pRenderer11 = new RendererDX11(); if ( !m_pRenderer11->Initialize( D3D_DRIVER_TYPE_HARDWARE, D3D_FEATURE_LEVEL_11_0 ) ) { Log::Get().Write( L"Could not create hardware device, trying to create the reference device..." ); if ( !m_pRenderer11->Initialize( D3D_DRIVER_TYPE_REFERENCE, D3D_FEATURE_LEVEL_11_0 ) ) { ShowWindow( m_pWindow->GetHandle(), SW_HIDE ); MessageBox( m_pWindow->GetHandle(), L"Could not create a hardware or software Direct3D 11 device - the program will now abort!", L"Hieroglyph 3 Rendering", MB_ICONEXCLAMATION | MB_SYSTEMMODAL ); RequestTermination(); return( false ); } // If using the reference device, utilize a fixed time step for any animations. m_pTimer->SetFixedTimeStep( 1.0f / 10.0f ); } // Create a swap chain for the window that we started out with. This // demonstrates using a configuration object for fast and concise object // creation. SwapChainConfigDX11 Config; Config.SetWidth( m_pWindow->GetWidth() ); Config.SetHeight( m_pWindow->GetHeight() ); Config.SetOutputWindow( m_pWindow->GetHandle() ); m_iSwapChain = m_pRenderer11->CreateSwapChain( &Config ); m_pWindow->SetSwapChain( m_iSwapChain ); // We'll keep a copy of the render target index to use in later examples. m_RenderTarget = m_pRenderer11->GetSwapChainResource( m_iSwapChain ); // Next we create a depth buffer for use in the traditional rendering // pipeline. Texture2dConfigDX11 DepthConfig; DepthConfig.SetDepthBuffer( width, height ); m_DepthTarget = m_pRenderer11->CreateTexture2D( &DepthConfig, 0 ); // Bind the swap chain render target and the depth buffer for use in // rendering. m_pRenderer11->pImmPipeline->ClearRenderTargets(); m_pRenderer11->pImmPipeline->OutputMergerStage.DesiredState.RenderTargetViews.SetState( 0, m_RenderTarget->m_iResourceRTV ); m_pRenderer11->pImmPipeline->OutputMergerStage.DesiredState.DepthTargetViews.SetState( m_DepthTarget->m_iResourceDSV ); m_pRenderer11->pImmPipeline->ApplyRenderTargets(); // Create a view port to use on the scene. This basically selects the // entire floating point area of the render target. D3D11_VIEWPORT viewport; viewport.Width = static_cast< float >( width ); viewport.Height = static_cast< float >( height ); viewport.MinDepth = 0.0f; viewport.MaxDepth = 1.0f; viewport.TopLeftX = 0; viewport.TopLeftY = 0; int ViewPort = m_pRenderer11->CreateViewPort( viewport ); m_pRenderer11->pImmPipeline->RasterizerStage.DesiredState.ViewportCount.SetState( 1 ); m_pRenderer11->pImmPipeline->RasterizerStage.DesiredState.Viewports.SetState( 0, ViewPort ); return( true ); } //-------------------------------------------------------------------------------- void App::ShutdownEngineComponents() { if ( m_pRenderer11 ) { m_pRenderer11->Shutdown(); delete m_pRenderer11; } if ( m_pWindow ) { m_pWindow->Shutdown(); delete m_pWindow; } } //-------------------------------------------------------------------------------- void App::Initialize() { // Load and initialize the geometry to be rendered. m_pGeometry = GeometryLoaderDX11::loadMS3DFile2( std::wstring( L"box.ms3d" ) ); m_pGeometry->LoadToBuffers(); m_pGeometry->SetPrimitiveType( D3D11_PRIMITIVE_TOPOLOGY_3_CONTROL_POINT_PATCHLIST ); // Create the parameters for use with this effect m_TessParams = Vector4f( 1.0f, 1.0f, 1.0f, 1.0f ); m_pRenderer11->m_pParamMgr->SetVectorParameter( std::wstring( L"EdgeFactors" ), &m_TessParams ); // Create the material for use by the entities. m_pMaterial = MaterialGeneratorDX11::GenerateWireFrame( *m_pRenderer11 ); // Create the camera, and the render view that will produce an image of the // from the camera's point of view of the scene. m_pCamera = new Camera(); m_pCamera->Spatial().SetTranslation( Vector3f( 0.0f, 0.0f, -15.0f ) ); m_pRenderView = new ViewPerspective( *m_pRenderer11, m_RenderTarget, m_DepthTarget ); m_pRenderView->SetColorClearValue( Vector4f( 0.6f, 0.6f, 0.6f, 0.6f ) ); m_pCamera->SetCameraView( m_pRenderView ); m_pCamera->SetProjectionParams( 0.1f, 100.0f, 640.0f / 320.0f, static_cast<float>( GLYPH_PI ) / 2.0f ); // Create the scene and add the entities to it. Then add the camera to the // scene so that it will be updated via the scene interface instead of // manually manipulating it. m_pActor = new Actor(); for ( int i = 0; i < 10; i++ ) { m_pEntity[i] = new Entity3D(); m_pEntity[i]->Visual.SetGeometry( m_pGeometry ); m_pEntity[i]->Visual.SetMaterial( m_pMaterial ); m_pEntity[i]->Transform.Position() = Vector3f( static_cast<float>( i ) * 4.0f, 4.0f * ( i % 2 ) - 2.0f, 0.0f ); m_pActor->GetNode()->AttachChild( m_pEntity[i] ); } m_pScene->AddActor( m_pActor ); m_pScene->AddCamera( m_pCamera ); } //-------------------------------------------------------------------------------- void App::Update() { // Update the timer to determine the elapsed time since last frame. This can // then used for animation during the frame. m_pTimer->Update(); // Send an event to everyone that a new frame has started. This will be used // in later examples for using the material system with render views. EvtManager.ProcessEvent( EvtFrameStartPtr( new EvtFrameStart( m_pTimer->Elapsed() ) ) ); // Manipulate the scene here - simply rotate the root of the scene in this // example. Matrix3f rotation; rotation.RotationX( m_pTimer->Elapsed() ); m_pActor->GetNode()->Transform.Rotation() *= rotation; // Update the scene, and then render all cameras within the scene. m_pScene->Update( m_pTimer->Elapsed() ); m_pScene->Render( m_pRenderer11 ); // Present the results of the rendering to the output window. m_pRenderer11->Present( m_pWindow->GetHandle(), m_pWindow->GetSwapChain() ); } //-------------------------------------------------------------------------------- void App::Shutdown() { for ( int i = 0; i < 10; i++ ) SAFE_DELETE( m_pEntity[i] ); //SAFE_DELETE( m_pCamera ); // Print the framerate out for the log before shutting down. std::wstringstream out; out << L"Max FPS: " << m_pTimer->MaxFramerate(); Log::Get().Write( out.str() ); } //-------------------------------------------------------------------------------- void App::TakeScreenShot() { if ( m_bSaveScreenshot ) { m_bSaveScreenshot = false; m_pRenderer11->pImmPipeline->SaveTextureScreenShot( 0, GetName() ); } } //-------------------------------------------------------------------------------- bool App::HandleEvent( EventPtr pEvent ) { eEVENT e = pEvent->GetEventType(); if ( e == SYSTEM_KEYBOARD_KEYDOWN ) { EvtKeyDownPtr pKeyDown = std::static_pointer_cast<EvtKeyDown>( pEvent ); unsigned int key = pKeyDown->GetCharacterCode(); } else if ( e == SYSTEM_KEYBOARD_KEYUP ) { EvtKeyUpPtr pKeyUp = std::static_pointer_cast<EvtKeyUp>( pEvent ); unsigned int key = pKeyUp->GetCharacterCode(); } // Call the parent class's event handler if we haven't handled the event. return( Application::HandleEvent( pEvent ) ); } //-------------------------------------------------------------------------------- std::wstring App::GetName( ) { return( std::wstring( L"BasicScenes" ) ); } //--------------------------------------------------------------------------------
[ "invokerleve@gmail.com" ]
invokerleve@gmail.com
e3a006f836981ebebe5a578a145bc573b65f3c34
bd321bc5612ca3812451e67ed7ea774afdba6b8e
/Common/EpollServer.h
7b0eba6a6b2ba99df0b3b5900b78202fb8a2543b
[]
no_license
Cho-Sungmin/GameServerStudy
4d8fe0aee2fb1f1bc6d70cb024352f8ab9dc41bd
46b63e5c10f1eb1a04be281f6f210c1dd422c58d
refs/heads/main
2023-07-19T15:32:30.940601
2021-09-10T15:00:12
2021-09-10T15:00:12
355,748,653
0
0
null
2021-09-10T15:00:13
2021-04-08T03:09:59
C++
UTF-8
C++
false
false
2,005
h
#ifndef EPOLL_SERVER_H #define EPOLL_SERVER_H #include <sys/epoll.h> #include <sys/unistd.h> #include <thread> #include <functional> #include <condition_variable> #include <queue> #include "Debug.h" #include "Server.h" #include "JobQueue.h" #define MAX_EVENTS 5 enum EventType { INTR = 0, INVALID, ACCEPT, INPUT, MAX }; enum TIMEOUT : int { BLOCKING = -1, NON_BLOCKING = 0 }; class Epoll_Ex : runtime_error { public: string errCode = ""; Epoll_Ex(const string &code) : runtime_error(code) { errCode = code; } virtual const char *what() const noexcept override { return errCode.c_str(); } }; struct EpollResult { int fd = 0; EventType event; }; class EpollServer : public Server { int m_state; int m_epoll; //--- For multi-threading ---// condition_variable m_conditionVar; mutex m_mutex; protected: JobQueue *m_pJobQueue; thread *m_pIOEventWaiter; //--- For multi-threading ---// void initThreads(); void waitEventRoutine(); virtual void handler(int event, int clntSocket); virtual void processMSG(){}; private: void createEpoll(); void controlEpoll(int op, int target_fd, uint32_t event); int waitEventNotifications(struct epoll_event *events, int maxEvents, int timeout); void handleEvent(struct epoll_event event, EpollResult &result); public: EpollServer() : Server() { m_pJobQueue = JobQueue::getInstance(); } EpollServer(int mode) : Server(mode) { m_pJobQueue = JobQueue::getInstance(); } ~EpollServer() { if (m_pJobQueue != nullptr) delete m_pJobQueue; } int getState() const; virtual void init(const char *port) override; virtual bool ready() override; virtual void run(void **inParams = nullptr, void **outParams = nullptr) override; virtual void stop() override; //--- Clear expired fd ---// virtual void farewell(int expired_fd) override; }; #endif
[ "asakura_12@naver.com" ]
asakura_12@naver.com
42c4099a46124b221337d2391d7615562d1d274f
1af9022022bfca31d779de2ab908d7c6eadb03db
/forethought/2.cpp
8c16bca49f27b0ed6259db61df92eed2b64495a0
[]
no_license
ashrafmoid/cp
2366b49eedc2af4c1ae21c8cc75d3720e94eb1ac
01d012b6473f134973ac734a796de7eef0f9c37f
refs/heads/master
2020-05-16T12:05:37.994523
2020-03-08T22:37:17
2020-03-08T22:37:17
183,037,192
0
0
null
null
null
null
UTF-8
C++
false
false
1,361
cpp
#include<bits/stdc++.h> using namespace std; typedef long long ll; #define f first #define s second #define mp make_pair vector<int> z(100005); void z_function(string s) { int n = (int) s.length(); for (int i = 1, l = 0, r = 0; i < n; ++i) { if (i <= r) z[i] = min (r - i + 1, z[i - l]); while (i + z[i] < n && s[z[i]] == s[i + z[i]]) ++z[i]; if (i + z[i] - 1 > r) l = i, r = i + z[i] - 1; } //return z; } int main(){ ios_base::sync_with_stdio(false);cin.tie(NULL); string s;cin>>s; int len=s.size(); vector<int>v(len); for(int i=0;i<len;i++){ if(s[i]=='a')v[i]=1; else v[i]=0; if(i){v[i]+=v[i-1];} } if(v[len-1]==len){cout<<s<<"\n";return 0;} int lwr=lower_bound(v.begin(),v.end(),v[len-1])-v.begin(); //cout<<lwr<<"\n"; int flg=-1; for(int i=lwr;i<len;i++){ //cout<<" i= "<<i <<"v1= "<<(i+1-v[i])<<"v2= "<<((len-i-1))<<"\n"; if(i+1-v[i]==(len-i-1)){flg=i;break;} } //cout<<"flg= "<<flg<<"\n"; if(flg==-1){cout<<":(";return 0;} int ans=-1;int j=flg+1; string t="";int i; for( i=0;i<=flg && j<len ;){ t+=s[i]; if(s[i]=='a'){i++;continue;} if(s[i]==s[j]){;j++;i++;ans=j;} else { ans=-1; break; } } while(i<=flg && s[i]=='a'){t+=s[i];i++;} //cout<<"j= "<<j<<"i= "<<i<<"\n"; if(j==len && i>flg){cout<<t<<"\n";} else cout<<":("; return 0; }
[ "ashrafmoid1999@gmail.com" ]
ashrafmoid1999@gmail.com
2b049bd9cdb6ec61bf79e562fc038c7e408f7733
280f525f0c24052c4bfd9a789a163b442308dd66
/classes/Map.cpp
cbac1220d0cd4ce77adb1b2adafb6d5d544ec324
[]
no_license
Arthareos/BombitzaLabz-Reborn
fd2c2cee1687cb4c3acd56eb48caf4e876380b6d
3c4d7eb71392ac787711d4ebfb5884eb984f3c38
refs/heads/master
2022-04-22T04:08:41.165791
2020-04-20T18:10:24
2020-04-20T18:10:24
235,392,108
0
0
null
null
null
null
UTF-8
C++
false
false
6,297
cpp
#include "Map.h" //height and width in tile number Map::Map(sf::RenderWindow& window, int16_t width, int16_t height, Biome biome) { m_offsetWidth = window.getSize().x / 2 - width * 32; m_offsetHeight = window.getSize().y / 2 - height * 32 + 32; this->m_width = width; this->m_height = height; std::string textureDirectory; srand(time(NULL)); switch (biome) { case Biome::glacial: textureDirectory = ".\\\\resources\\\\glacial.png"; break; case Biome::tundra: textureDirectory = ".\\\\resources\\\\tundra.png"; break; case Biome::sand: textureDirectory = ".\\\\resources\\\\sand.png"; break; case Biome::castle: textureDirectory = ".\\\\resources\\\\castle.png"; break; } std::vector<std::vector<int16_t>> matrix; matrix.resize(width); m_tiles.resize(width); for (uint16_t indexX = 0; indexX < width; indexX++) { matrix.at(indexX).resize(height); m_tiles.at(indexX).resize(height); for (uint16_t indexY = 0; indexY < height; indexY++) { if (indexX % 2 == 0 && indexY % 2 == 0) { matrix.at(indexX).at(indexY) = 11; } else { matrix.at(indexX).at(indexY) = 0; } } } for (uint16_t index = 0; index < width; index++) { matrix.at(index).at(0) = 10; matrix.at(index).at(height - 1) = 10; } for (uint16_t index = 0; index < height; index++) { matrix.at(0).at(index) = 10; matrix.at(width - 1).at(index) = 10; } for (uint16_t indexX = 0; indexX < width; indexX++) { for (uint16_t indexY = 0; indexY < height; indexY++) { m_tiles.at(indexX).at(indexY).SetCoordinates(indexX, indexY); m_tiles.at(indexX).at(indexY).SetType(matrix[indexX][indexY]); m_tiles.at(indexX).at(indexY).SetTexture(textureDirectory); m_tiles.at(indexX).at(indexY).SetCrate(false); m_tiles.at(indexX).at(indexY).SetIndex(indexX, indexY); m_tiles.at(indexX).at(indexY).GetSprite().setScale(2, 2); m_tiles.at(indexX).at(indexY).GetSprite().setTextureRect(sf::IntRect(m_tiles.at(indexX).at(indexY).GetSprite().getPosition().x * 32, m_tiles.at(indexX).at(indexY).GetSprite().getPosition().y * 32, 32, 32)); m_tiles.at(indexX).at(indexY).SetCoordinates(indexX + m_offsetWidth, indexY + m_offsetHeight); m_tiles.at(indexX).at(indexY).GetSprite().setPosition(indexX * 64 + m_offsetHeight, indexY * 64 + m_offsetWidth); } } int16_t numberCrates = 96; //int16_t numberCrates = 32; int auxHeight, auxWidth; while (numberCrates) { auxHeight = rand() % height; auxWidth = rand() % width; auxHeight = std::clamp(auxHeight, 1, (int)height - 1); auxWidth = std::clamp(auxWidth, 1, (int)width - 1); if (PositionValidator(auxWidth, auxHeight)) { m_tiles.at(auxWidth).at(auxHeight).SetCrate(true); m_tiles.at(auxWidth).at(auxHeight).SetType(1); m_tiles.at(auxWidth).at(auxHeight).SetTexture(textureDirectory); m_tiles.at(auxWidth).at(auxHeight).GetSprite().setScale(2, 2); m_tiles.at(auxWidth).at(auxHeight).GetSprite().setTextureRect(sf::IntRect(m_tiles.at(auxWidth).at(auxHeight).GetSprite().getPosition().x * 32, m_tiles.at(auxWidth).at(auxHeight).GetSprite().getPosition().y * 32, 32, 32)); m_tiles.at(auxWidth).at(auxHeight).GetSprite().setPosition(auxWidth * 64 + m_offsetHeight, auxHeight * 64 + m_offsetWidth); numberCrates--; } if (auxHeight == height || auxWidth == width) { srand(NULL); } } /*for (int indexX = 0; indexX < getSize().x; indexX++) { for (int indexY = 0; indexY < getSize().y; indexY++) { std::cout << std::setw(3) << getMapTiles()[indexX][indexY].getType(); } std::cout << std::endl; }*/ } const bool Map::PositionValidator(int width, int height) { if (m_tiles.at(width).at(height).GetType() != 0) { return false; } if ((height == 1 && width == 1) || (height == 2 && width == 1) || (height == 1 && width == 2) || (height == GetSize().y - 2 && width == GetSize().x - 2) || (height == GetSize().y - 3 && width == GetSize().x - 2) || (height == GetSize().y - 2 && width == GetSize().x - 3) || (height == GetSize().y - 2 && width == 1) || (height == GetSize().y - 2 && width == 2) || (height == GetSize().y - 3 && width == 1) || (height == 1 && width == GetSize().x - 2) || (height == 2 && GetSize().x - 2) || (height == 1 && width == GetSize().x - 3)) { return false; } return true; } //Returns a 3x3 matrix of MapTiles std::vector<MapTile> Map::GetAdjacentTiles(sf::Vector2u& center) { int16_t minWidth = center.x - 1; int16_t maxWidth = center.x + 1; if (minWidth < 0) minWidth = 0; if (maxWidth > m_width) maxWidth = m_width; int16_t minHeight = center.y - 1; int16_t maxHeight = center.y + 1; if (minHeight < 0) minHeight = 0; if (maxWidth > m_height) maxWidth = m_height; std::vector<MapTile> adjacentArea; adjacentArea.push_back(m_tiles.at(center.y + 1).at(center.x)); // bottom tile adjacentArea.push_back(m_tiles.at(center.y - 1).at(center.x)); // top tile adjacentArea.push_back(m_tiles.at(center.y).at(center.x - 1)); // right tile adjacentArea.push_back(m_tiles.at(center.y).at(center.x + 1)); // left tile return adjacentArea; } uint16_t Map::GetNumberOfCrates() { uint16_t aux = 0; for (int indexX = 0; indexX < m_height - 1; indexX++) { for (uint16_t indexY = 0; indexY < m_width - 1; indexY++) { if (m_tiles.at(indexX).at(indexY).HasCrate() == true) { aux++; } } } return aux; } void Map::DestroyCrate(uint16_t indexX, uint16_t indexY) { if (m_tiles.at(indexX).at(indexY).HasCrate() == true || m_tiles.at(indexX).at(indexY).GetType() == 1) { m_tiles.at(indexX).at(indexY).SetCrate(false); m_tiles.at(indexX).at(indexY).SetType(0); m_tiles.at(indexX).at(indexY).GetSprite().setScale(2, 2); m_tiles.at(indexX).at(indexY).GetSprite().setTextureRect(sf::IntRect(m_tiles.at(indexX).at(indexY).GetSprite().getPosition().x * 32, m_tiles.at(indexX).at(indexY).GetSprite().getPosition().y * 32, 32, 32)); m_tiles.at(indexX).at(indexY).SetCoordinates(indexX + m_offsetWidth, indexY + m_offsetHeight); m_tiles.at(indexX).at(indexY).GetSprite().setPosition(indexX * 64 + m_offsetHeight, indexY * 64 + m_offsetWidth); } } void Map::DrawMap(sf::RenderWindow& window) { for (int indexX = 0; indexX < GetSize().x; indexX++) { for (int indexY = 0; indexY < GetSize().y; indexY++) { GetMapTiles()[indexX][indexY].Draw(window); } } }
[ "difonzosimone@hotmail.com" ]
difonzosimone@hotmail.com
7f8ffc66f6c258ba7a16d717ea3aa9ad1247f73b
bab7cee09c1f90c93f98aad8c83180197a2cdabe
/devel/.private/geographic_msgs/include/geographic_msgs/GeoPointStamped.h
27be36e64824cdeef3d8e79821018b35db792342
[]
no_license
lievech/car_simulation_ws
25ccad1677e4af9054f8f2298b54ad44e4058676
d3c74a3af3f242e34fac97d525325ab62d2be3a5
refs/heads/master
2020-08-02T06:32:10.944218
2019-09-28T02:56:50
2019-09-28T02:56:50
211,263,284
0
2
null
null
null
null
UTF-8
C++
false
false
7,209
h
// Generated by gencpp from file geographic_msgs/GeoPointStamped.msg // DO NOT EDIT! #ifndef GEOGRAPHIC_MSGS_MESSAGE_GEOPOINTSTAMPED_H #define GEOGRAPHIC_MSGS_MESSAGE_GEOPOINTSTAMPED_H #include <string> #include <vector> #include <map> #include <ros/types.h> #include <ros/serialization.h> #include <ros/builtin_message_traits.h> #include <ros/message_operations.h> #include <std_msgs/Header.h> #include <geographic_msgs/GeoPoint.h> namespace geographic_msgs { template <class ContainerAllocator> struct GeoPointStamped_ { typedef GeoPointStamped_<ContainerAllocator> Type; GeoPointStamped_() : header() , position() { } GeoPointStamped_(const ContainerAllocator& _alloc) : header(_alloc) , position(_alloc) { (void)_alloc; } typedef ::std_msgs::Header_<ContainerAllocator> _header_type; _header_type header; typedef ::geographic_msgs::GeoPoint_<ContainerAllocator> _position_type; _position_type position; typedef boost::shared_ptr< ::geographic_msgs::GeoPointStamped_<ContainerAllocator> > Ptr; typedef boost::shared_ptr< ::geographic_msgs::GeoPointStamped_<ContainerAllocator> const> ConstPtr; }; // struct GeoPointStamped_ typedef ::geographic_msgs::GeoPointStamped_<std::allocator<void> > GeoPointStamped; typedef boost::shared_ptr< ::geographic_msgs::GeoPointStamped > GeoPointStampedPtr; typedef boost::shared_ptr< ::geographic_msgs::GeoPointStamped const> GeoPointStampedConstPtr; // constants requiring out of line definition template<typename ContainerAllocator> std::ostream& operator<<(std::ostream& s, const ::geographic_msgs::GeoPointStamped_<ContainerAllocator> & v) { ros::message_operations::Printer< ::geographic_msgs::GeoPointStamped_<ContainerAllocator> >::stream(s, "", v); return s; } } // namespace geographic_msgs namespace ros { namespace message_traits { // BOOLTRAITS {'IsFixedSize': False, 'IsMessage': True, 'HasHeader': True} // {'std_msgs': ['/opt/ros/kinetic/share/std_msgs/cmake/../msg'], 'geographic_msgs': ['/home/lhn/hhh_ws/src/car_simulation_interface/msgs/geographic_msgs/msg'], 'geometry_msgs': ['/opt/ros/kinetic/share/geometry_msgs/cmake/../msg'], 'uuid_msgs': ['/home/lhn/hhh_ws/src/car_simulation_interface/msgs/uuid_msgs/msg']} // !!!!!!!!!!! ['__class__', '__delattr__', '__dict__', '__doc__', '__eq__', '__format__', '__getattribute__', '__hash__', '__init__', '__module__', '__ne__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__sizeof__', '__str__', '__subclasshook__', '__weakref__', '_parsed_fields', 'constants', 'fields', 'full_name', 'has_header', 'header_present', 'names', 'package', 'parsed_fields', 'short_name', 'text', 'types'] template <class ContainerAllocator> struct IsFixedSize< ::geographic_msgs::GeoPointStamped_<ContainerAllocator> > : FalseType { }; template <class ContainerAllocator> struct IsFixedSize< ::geographic_msgs::GeoPointStamped_<ContainerAllocator> const> : FalseType { }; template <class ContainerAllocator> struct IsMessage< ::geographic_msgs::GeoPointStamped_<ContainerAllocator> > : TrueType { }; template <class ContainerAllocator> struct IsMessage< ::geographic_msgs::GeoPointStamped_<ContainerAllocator> const> : TrueType { }; template <class ContainerAllocator> struct HasHeader< ::geographic_msgs::GeoPointStamped_<ContainerAllocator> > : TrueType { }; template <class ContainerAllocator> struct HasHeader< ::geographic_msgs::GeoPointStamped_<ContainerAllocator> const> : TrueType { }; template<class ContainerAllocator> struct MD5Sum< ::geographic_msgs::GeoPointStamped_<ContainerAllocator> > { static const char* value() { return "ea50d268b03080563c330351a21edc89"; } static const char* value(const ::geographic_msgs::GeoPointStamped_<ContainerAllocator>&) { return value(); } static const uint64_t static_value1 = 0xea50d268b0308056ULL; static const uint64_t static_value2 = 0x3c330351a21edc89ULL; }; template<class ContainerAllocator> struct DataType< ::geographic_msgs::GeoPointStamped_<ContainerAllocator> > { static const char* value() { return "geographic_msgs/GeoPointStamped"; } static const char* value(const ::geographic_msgs::GeoPointStamped_<ContainerAllocator>&) { return value(); } }; template<class ContainerAllocator> struct Definition< ::geographic_msgs::GeoPointStamped_<ContainerAllocator> > { static const char* value() { return "Header header\n\ geographic_msgs/GeoPoint position\n\ \n\ ================================================================================\n\ MSG: std_msgs/Header\n\ # Standard metadata for higher-level stamped data types.\n\ # This is generally used to communicate timestamped data \n\ # in a particular coordinate frame.\n\ # \n\ # sequence ID: consecutively increasing ID \n\ uint32 seq\n\ #Two-integer timestamp that is expressed as:\n\ # * stamp.sec: seconds (stamp_secs) since epoch (in Python the variable is called 'secs')\n\ # * stamp.nsec: nanoseconds since stamp_secs (in Python the variable is called 'nsecs')\n\ # time-handling sugar is provided by the client library\n\ time stamp\n\ #Frame this data is associated with\n\ # 0: no frame\n\ # 1: global frame\n\ string frame_id\n\ \n\ ================================================================================\n\ MSG: geographic_msgs/GeoPoint\n\ # Geographic point, using the WGS 84 reference ellipsoid.\n\ \n\ # Latitude [degrees]. Positive is north of equator; negative is south\n\ # (-90 <= latitude <= +90).\n\ float64 latitude\n\ \n\ # Longitude [degrees]. Positive is east of prime meridian; negative is\n\ # west (-180 <= longitude <= +180). At the poles, latitude is -90 or\n\ # +90, and longitude is irrelevant, but must be in range.\n\ float64 longitude\n\ \n\ # Altitude [m]. Positive is above the WGS 84 ellipsoid (NaN if unspecified).\n\ float64 altitude\n\ "; } static const char* value(const ::geographic_msgs::GeoPointStamped_<ContainerAllocator>&) { return value(); } }; } // namespace message_traits } // namespace ros namespace ros { namespace serialization { template<class ContainerAllocator> struct Serializer< ::geographic_msgs::GeoPointStamped_<ContainerAllocator> > { template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) { stream.next(m.header); stream.next(m.position); } ROS_DECLARE_ALLINONE_SERIALIZER }; // struct GeoPointStamped_ } // namespace serialization } // namespace ros namespace ros { namespace message_operations { template<class ContainerAllocator> struct Printer< ::geographic_msgs::GeoPointStamped_<ContainerAllocator> > { template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::geographic_msgs::GeoPointStamped_<ContainerAllocator>& v) { s << indent << "header: "; s << std::endl; Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + " ", v.header); s << indent << "position: "; s << std::endl; Printer< ::geographic_msgs::GeoPoint_<ContainerAllocator> >::stream(s, indent + " ", v.position); } }; } // namespace message_operations } // namespace ros #endif // GEOGRAPHIC_MSGS_MESSAGE_GEOPOINTSTAMPED_H
[ "2328187416@qq.com" ]
2328187416@qq.com
b472cb5e997da5d814c0fcd989381216532f9256
cabb2e8677a59efa8ccf8d23479440d4a0d9ac6b
/Thermal_Energy_Storage_with_Finite_Volumes/code/write.hpp
03449a6fb50404d05130940deeada0410876e6db
[]
no_license
loregiac/Projects
6cde7725f7e423b81901cf356934260724b364a3
23f7f2de35bb4181feb1b5864a90a5df050f81d5
refs/heads/master
2021-01-24T13:14:52.057433
2018-02-27T18:03:15
2018-02-27T18:03:15
123,161,794
0
0
null
null
null
null
UTF-8
C++
false
false
2,172
hpp
/*********************************************************************** * * * Code for project of "Fundamentals of CFD Methods" course * * * * Author: Lorenzo Giacomel * * Date: 13/12/2017 * * * * This code can be freely used for non-commercial purposes as long * * as this header is left intact. * * Copyright © 2017 Lorenzo Giacomel. All rights reserved. * ***********************************************************************/ #include <iostream> #include <string> #include <fstream> #include <math.h> #define pi 3.14159265358979323846 /** Write the temperature distributions for both the fluid and the solid phases to an external file @param Tf The temperature distribution of the fluid phase @param Ts The temperature distribution of the solid phase @param x The x coordinates of the points at which the temperatures are given @param N The number of elements in Tf, Ts and x arrays @param name The name of the file to which the temperatures have to be written */ void write_temperature(double* Tf, double* Ts, double* x, unsigned int N, std::string name) { std::ofstream out_file(name, std::ios::out); for (int i = 0; i < N; i++) { out_file << x[i] << '\t' << Tf[i] << '\t' << Ts[i] << "\n"; } out_file.close(); } /** Write the state of the storage at every time instant to an external file @param t The time instants @param states The state of each time instant @param Nt_tot The number of time instants */ void write_states(double* t, double* states, int Nt_tot) { std::ofstream out_file("states.dat", std::ios::out); out_file << "t" << '\t' << "state"<< "\n"; for (int i = 0; i < Nt_tot; i++) { out_file << t[i] << '\t' << states[i] << "\n"; } out_file.close(); }
[ "glorenzo@student.ethz.ch" ]
glorenzo@student.ethz.ch
801084151097fa2dd806888724ac02d4755c3b10
d9d2569b29d7827eeb80e63d46a108c6f1cfd20b
/codigo_final_lab1/codigo_final_lab1.ino
db15388116549e9566470e07e8afdfc6a28daeb5
[]
no_license
soficantarelli/SaliendoLaberinto
0763116e2a57781fc45db9ffe57dbfa3397d5b0f
d2390f2da0f6857b8011d0e36fe343aed6e0f740
refs/heads/master
2020-06-07T10:54:20.733010
2019-06-21T00:59:03
2019-06-21T00:59:03
193,006,102
0
0
null
null
null
null
UTF-8
C++
false
false
9,790
ino
#include <AFMotor.h> #define STOPPED 0 #define FOLLOWING_LINE 1 #define NO_LINE 2 #define CONT_LINE 3 #define POS_LINE 4 #define RIGHT_TURN 5 #define LEFT_TURN 6 #define IZQUIERDA -1 #define DERECHA 1 AF_DCMotor motor1(1, MOTOR12_64KHZ); AF_DCMotor motor2(2, MOTOR12_64KHZ); const int SensorIzquierdo = A0; //izquierda const int Sensor1 = A1; const int Sensor2 = A2; const int Sensor3 = A3; const int SensorDerecho = A4; //derecha int Sensores[5]= {0, 0, 0, 0, 0}; int valorizquierdo = 0, valor1 = 0, valor2 = 0, valor3 = 0, valorderecho = 0; const int boton = A5; int mode = 0; int error = 0; int Kp = 20; unsigned int estado = 0; int control = 0; char camino[100] = " "; unsigned char LongitudCamino = 0; int indiceCamino = 0; void setup() { pinMode(boton, INPUT); motor1.setSpeed(130); motor2.setSpeed(100); } void leerSensores() { valorizquierdo = analogRead(SensorIzquierdo); valor1 = analogRead(Sensor1); valor2 = analogRead(Sensor2); valor3 = analogRead(Sensor3); valorderecho = analogRead(SensorDerecho); if (valorizquierdo < 500) Sensores[0] = 0; else Sensores[0] = 1; if (valor1 < 820) Sensores[1] = 0; else Sensores[1] = 1; if (valor2 < 880) Sensores[2] = 0; else Sensores[2] = 1; if (valor3 < 860) Sensores[3] = 0; else Sensores[3] = 1; if (valorderecho < 650) Sensores[4] = 0; else Sensores[4] = 1; Serial.print("Sensor Izquierdo "); Serial.println(Sensores[0]); Serial.println(valorizquierdo); Serial.print("Sensor 1 "); Serial.println(Sensores[1]); Serial.println(valor1); Serial.print("Sensor 2 "); Serial.println(Sensores[2]); Serial.println(valor2); Serial.print("Sensor 3 "); Serial. println(Sensores[3]); Serial.println(valor3); Serial.print("Sensor Derecho "); Serial.println(Sensores[4]); Serial.println(valorderecho); if((Sensores[0] == 1)&&(Sensores[1] == 1)&&(Sensores[2] == 1)&&(Sensores[3] == 1)&&(Sensores[4] == 1)) { mode = CONT_LINE; error = 0; } else { if((Sensores[0] == 0)&&(Sensores[4] == 1)) { mode = RIGHT_TURN; error = 0; } else { if((Sensores[0] == 1)&&(Sensores[4] == 0)) { mode = LEFT_TURN; error = 0; } else { if ((Sensores[0] == 0)&&(Sensores[1] == 0)&&(Sensores[2] == 0)&&(Sensores[3] == 0)&&(Sensores[4] == 0)) { mode = NO_LINE; error = 0; } else { if ((Sensores[0] == 0)&&(Sensores[1] == 0)&&(Sensores[2] == 0)&&(Sensores[3] == 1)&&(Sensores[4] == 1)) { mode = FOLLOWING_LINE; error = 3; } else { if ((Sensores[0] == 0)&&(Sensores[1] == 0)&&(Sensores[2] == 0)&&(Sensores[3] == 1)&&(Sensores[4] == 0)) { mode = FOLLOWING_LINE; error = 2; } else { if ((Sensores[0] == 0)&&(Sensores[1] == 0)&&(Sensores[2] == 1)&&(Sensores[3] == 1)&&(Sensores[4] == 0)) { mode = FOLLOWING_LINE; error = 1; } else { if ((Sensores[0] == 0)&&(Sensores[1] == 0)&&(Sensores[2] == 1)&&(Sensores[3] == 0)&&(Sensores[4] == 0)) { mode = FOLLOWING_LINE; error = 0; } else { if ((Sensores[0] == 0)&&(Sensores[1] == 1)&&(Sensores[2] == 1)&&(Sensores[3] == 0)&&(Sensores[4] == 0)) { mode = FOLLOWING_LINE; error = -1; } else { if ((Sensores[0] == 0)&&(Sensores[1] == 1)&&(Sensores[2] == 0)&&(Sensores[3] == 0)&&(Sensores[4] == 0)) { mode = FOLLOWING_LINE; error = -2; } else { if ((Sensores[0] == 1)&&(Sensores[1] == 1)&&(Sensores[2] == 0)&&(Sensores[3] == 0)&&(Sensores[4] == 0)) { mode = FOLLOWING_LINE; error = -3; } } } } } } } } } } } } void motorStop(int time) { motor1.run(RELEASE); motor2.run(RELEASE); delay(time); } void motorForward() { motor1.run(FORWARD); motor2.run(FORWARD); } void motorTurn(int direction, int time) {motor1.run(RELEASE); motor2.run(RELEASE); delay(500); switch(direction) { case 1: motor1.setSpeed(120 + Kp*direction); motor2.setSpeed(130 + Kp*direction); motor1.run(FORWARD); motor2.run(BACKWARD); break; case 2: motor1.setSpeed(120 + Kp*direction); motor2.setSpeed(130 + Kp*direction); motor1.run(FORWARD); motor2.run(BACKWARD); time = 150; break; case 3: motor1.setSpeed(120 + Kp*direction); motor2.setSpeed(130 + Kp*direction); motor1.run(FORWARD); motor2.run(BACKWARD); time = 190; break; case -1: motor1.setSpeed(130 + Kp*(-direction)); motor2.setSpeed(120 + Kp*(-direction)); motor1.run(BACKWARD); motor2.run(FORWARD); break; case -2: motor1.setSpeed(130 + Kp*(-direction)); motor2.setSpeed(120 + Kp*(-direction)); motor1.run(BACKWARD); motor2.run(FORWARD); time = 150; break; case -3: motor1.setSpeed(130 + Kp*(-direction)); motor2.setSpeed(120 + Kp*(-direction)); motor1.run(BACKWARD); motor2.run(FORWARD); time = 190; break; } delay(time); motorStop(500); } void runExtraInch(void) { motorForward(); delay(500); motorStop(1000); } void goAndTurn(int direction, int degrees) { motorForward(); delay(1250); motorTurn(direction, degrees); } void optimizado(int direction, int degrees) { motorForward(); delay(1500); motorTurn(direction, degrees); } void followingLine(void) { if (error == 0) { motorForward(); } else { motorTurn(error, 115); } } void endMaze() { motorStop(500); mode = STOPPED; estado = 1; } void resolverLaberinto(void) { while (!estado) { motor1.setSpeed(130); motor2.setSpeed(100); leerSensores(); switch (mode) { case NO_LINE: motorStop(1000); goAndTurn(IZQUIERDA, 2500); intersecciones('B'); break; case CONT_LINE: motorStop(1000); runExtraInch(); leerSensores(); if (mode == CONT_LINE) endMaze(); else { goAndTurn(IZQUIERDA, 1300); intersecciones('L'); } break; case RIGHT_TURN: motorStop(1000); runExtraInch(); leerSensores(); if (mode == NO_LINE) { goAndTurn(DERECHA, 1250); intersecciones('R'); } else intersecciones('S'); break; case LEFT_TURN: motorStop(1000); runExtraInch(); goAndTurn(IZQUIERDA, 1300); intersecciones('L'); break; case FOLLOWING_LINE: followingLine(); break; } } } void intersecciones(char direccion) { camino[LongitudCamino] = direccion; LongitudCamino++; simplificarCamino(); } void simplificarCamino() { if (LongitudCamino < 3 || camino[LongitudCamino-2] != 'B') return; int anguloTotal = 0; int i; for (i = 1; i <= 3; i++) { switch (camino[LongitudCamino-i]) { case 'R': anguloTotal += 90; break; case 'L': anguloTotal += 270; break; case 'B': anguloTotal += 180; break; } } anguloTotal = anguloTotal % 360; switch(anguloTotal) { case 0: camino[LongitudCamino-3] = 'S'; break; case 90: camino[LongitudCamino-3] = 'R'; break; case 180: camino[LongitudCamino-3] = 'B'; break; case 270: camino[LongitudCamino-3] = 'L'; break; } LongitudCamino -= 2; } void optimizarLaberinto(void) { while (!estado) { motor1.setSpeed(130); motor2.setSpeed(100); leerSensores(); switch (mode) { case FOLLOWING_LINE: followingLine(); break; case CONT_LINE: if (indiceCamino >= LongitudCamino){ leerSensores(); while(mode == FOLLOWING_LINE){ followingLine(); leerSensores(); } endMaze(); } else { cambiarDireccion(camino[indiceCamino]); indiceCamino++; } break; case RIGHT_TURN: if (indiceCamino >= LongitudCamino) { leerSensores(); while(mode == FOLLOWING_LINE){ followingLine(); leerSensores(); } endMaze(); } else { cambiarDireccion(camino[indiceCamino]); indiceCamino++; } break; case LEFT_TURN: if (indiceCamino >= LongitudCamino){ leerSensores(); while(mode == FOLLOWING_LINE){ followingLine(); leerSensores(); } endMaze(); } else { cambiarDireccion(camino[indiceCamino]); indiceCamino++; } break; } } } void cambiarDireccion(char dir) { switch(dir) { case 'L': optimizado(IZQUIERDA, 1350); break; case 'R': optimizado(DERECHA, 1350); break; case 'B': optimizado(IZQUIERDA, 2600); break; case 'S': runExtraInch(); break; } } void loop() { if(digitalRead(boton) == HIGH && control == 0) { leerSensores(); resolverLaberinto(); control = 1; } indiceCamino = 0; estado = 0; if(digitalRead(boton) == HIGH && control == 1) { optimizarLaberinto(); control = 0; estado = 0; indiceCamino = 0; LongitudCamino = 0; } }
[ "noreply@github.com" ]
noreply@github.com
c45d6331f629b46e9277372e6923a145eb2112c9
54b37241d83de4de308f335d412e0ce9df392a78
/src-char-ox/Core/Math/sci_lapack.h
22ba10a58f4452f9e913ac5bb78de5c18cc88a3c
[ "MIT" ]
permissive
jholmen/Uintah-sc19
dac772fbbc7ab9b8b2bf1be02a08c9e2d8166d24
fae5ebe7821ec23709e97736f1378aa4aa01e645
refs/heads/master
2023-04-15T21:18:28.362715
2021-04-20T13:54:30
2021-04-20T13:54:30
359,625,839
2
0
null
null
null
null
UTF-8
C++
false
false
1,672
h
/* * The MIT License * * Copyright (c) 1997-2018 The University of Utah * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to * deal in the Software without restriction, including without limitation the * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or * sell copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS * IN THE SOFTWARE. */ /* * sci_lapack.h * * Written by: * Author: Andrew Shafer * Department of Computer Science * University of Utah * Date: Oct 21, 2003 * */ #ifndef SCI_Math_sci_lapack_h #define SCI_Math_sci_lapack_h 1 namespace Uintah { bool lapackinvert(double *A, int n); void lapacksvd(double **A, int m, int n, double *S, double **U, double **VT); void lapackeigen(double **A, int n, double *EigReal, double *EigImag, double **EigVect=0); } // End namespace Uintah #endif /* SCI_Math_sci_lapack_h */
[ "jholmen@sci.utah.edu" ]
jholmen@sci.utah.edu
f5ab84643dde941e915baf4889865cd4b08556c3
cefd6c17774b5c94240d57adccef57d9bba4a2e9
/Data/src/DataException.cpp
f252fa81137314a20aca251eeece267d854d67ba
[ "BSL-1.0" ]
permissive
adzhou/oragle
9c054c25b24ff0a65cb9639bafd02aac2bcdce8b
5442d418b87d0da161429ffa5cb83777e9b38e4d
refs/heads/master
2022-11-01T05:04:59.368831
2014-03-12T15:50:08
2014-03-12T15:50:08
17,238,063
0
1
BSL-1.0
2022-10-18T04:23:53
2014-02-27T05:39:44
C++
UTF-8
C++
false
false
3,140
cpp
// // DataException.cpp // // $Id: //poco/Main/Data/src/DataException.cpp#8 $ // // Library: Data // Package: DataCore // Module: DataException // // Copyright (c) 2006, Applied Informatics Software Engineering GmbH. // and Contributors. // // Permission is hereby granted, free of charge, to any person or organization // obtaining a copy of the software and accompanying documentation covered by // this license (the "Software") to use, reproduce, display, distribute, // execute, and transmit the Software, and to prepare derivative works of the // Software, and to permit third-parties to whom the Software is furnished to // do so, all subject to the following: // // The copyright notices in the Software and this entire statement, including // the above license grant, this restriction and the following disclaimer, // must be included in all copies of the Software, in whole or in part, and // all derivative works of the Software, unless such copies or derivative // works are solely in the form of machine-executable object code generated by // a source language processor. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT // SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE // FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, // ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. // #include "Poco/Data/DataException.h" #include <typeinfo> namespace Poco { namespace Data { POCO_IMPLEMENT_EXCEPTION(DataException, Poco::IOException, "Database Exception") POCO_IMPLEMENT_EXCEPTION(RowDataMissingException, DataException, "Data for row missing") POCO_IMPLEMENT_EXCEPTION(UnknownDataBaseException, DataException, "Type of data base unknown") POCO_IMPLEMENT_EXCEPTION(UnknownTypeException, DataException, "Type of data unknown") POCO_IMPLEMENT_EXCEPTION(ExecutionException, DataException, "Execution error") POCO_IMPLEMENT_EXCEPTION(BindingException, DataException, "Binding error") POCO_IMPLEMENT_EXCEPTION(ExtractException, DataException, "Extraction error") POCO_IMPLEMENT_EXCEPTION(LimitException, DataException, "Limit error") POCO_IMPLEMENT_EXCEPTION(NotSupportedException, DataException, "Feature or property not supported") POCO_IMPLEMENT_EXCEPTION(SessionUnavailableException, DataException, "Session is unavailable") POCO_IMPLEMENT_EXCEPTION(SessionPoolExhaustedException, DataException, "No more sessions available from the session pool") POCO_IMPLEMENT_EXCEPTION(SessionPoolExistsException, DataException, "Session already exists in the pool") POCO_IMPLEMENT_EXCEPTION(NoDataException, DataException, "No data found") POCO_IMPLEMENT_EXCEPTION(LengthExceededException, DataException, "Data too long") POCO_IMPLEMENT_EXCEPTION(ConnectionFailedException, DataException, "Connection attempt failed") POCO_IMPLEMENT_EXCEPTION(NotConnectedException, DataException, "Not connected to data source") } } // namespace Poco::Data
[ "adzhou@hp.com" ]
adzhou@hp.com
1205386b16f2e8eb762db03172a8b5f096b0cad2
31b9b180a9866b317dc7483b9b3bd51e2634b321
/Meta/Test/TypeTraits_test.cpp
f8fe9a30b89a46a92c2cfbd0ae61f0dd91653768
[]
no_license
davidandpenny/Cpp
c49c554b1b51a7b608b52f2f7011258035868669
ebed36f912dc25c0923ac3653020990873e1f0de
refs/heads/master
2020-05-18T11:34:51.404266
2018-05-25T21:38:16
2018-05-25T21:38:16
41,175,637
0
0
null
null
null
null
UTF-8
C++
false
false
1,608
cpp
#include "TypeTraits.h" #include <cstdint> // for int8_t. using namespace Std; namespace { // Confirm char types: static_assert(is_character<char>(), "char is a character"); static_assert(is_character<const char>(), "const char is a character"); static_assert(is_character<char&>(), "char ref is a character"); static_assert(is_character<const char&>(), "const char ref is a character"); static_assert(is_character<wchar_t>(), "wchar_t is a character"); static_assert(is_character<const wchar_t>(), "const wchar_t is a character"); static_assert(is_character<wchar_t&>(), "wchar_t ref is a character"); static_assert(is_character<const wchar_t&>(), "const wchar_t ref is a character"); static_assert(is_character<char16_t>(), "char16_t is a character"); static_assert(is_character<const char16_t>(), "const char16_t is a character"); static_assert(is_character<char16_t&>(), "char16_t ref is a character"); static_assert(is_character<const char16_t&>(), "const char16_t ref is a character"); static_assert(is_character<char32_t>(), "char32_t is a character"); static_assert(is_character<const char32_t>(), "const char32_t is a character"); static_assert(is_character<char32_t&>(), "char32_t ref is a character"); static_assert(is_character<const char32_t&>(), "const char32_t ref is a character"); // Confirm non-char types: static_assert(!is_character<int8_t>(), "int8_t is not a character"); static_assert(!is_character<uint8_t>(), "uint8_t is not a character"); static_assert(!is_character<int>(), "int is not a character"); }
[ "David.Oliver@virgingalactic.com" ]
David.Oliver@virgingalactic.com
f79bfeda37001a8f3d8c117d767f840916dc301c
80838913ef3980da9a19edfaeca56c4cfdf080a4
/Source/system/resource_manager.h
12596a33dc1bc482e9ddc644c9aa427905fff1cd
[]
no_license
devmabbott/SDL_Tetris
ba0bc1f2ae278a78c7aeba8d78aad26880aeb3cd
00494211425c742139ca8a2c068541fc8799371d
refs/heads/master
2021-01-22T03:30:42.971589
2013-04-10T10:51:34
2013-04-10T10:51:34
null
0
0
null
null
null
null
UTF-8
C++
false
false
1,522
h
#ifndef RESOURCE_MANAGER_H #define RESOURCE_MANAGER_H #include <map> #include <string> #include <memory> template<typename T> class ResourceManager { public: typedef std::shared_ptr<T> Resource; /// Preloads a resource void add(const std::string& key ) { if ( resources.count(key) == 0 ) resources[key] = load(key); } /// Gets the resource and loads it if it hasn't been loaded yet Resource get(const std::string& key) { Resource result; auto it = resources.find(key); if (it == resources.end()) // not loaded yet, load now return resources.insert(std::make_pair(key, load(key))).first->second; else return it->second; } /// Removes all unused loaded resources void clean() { auto it = resources.begin(); // could be more elegant with the C++11 foreach loop while ( it !=resources.end() ) { if ( it->second.unique() ) resources.erase(it++); // eraserd element's iterator is invalidated, so the post increment is important here... else // btw C++11 map::erase returns iterator, so this could be safely: it = resources.erase(it); ++it; } } protected: /// Must be implemented for the corresponding resource type virtual Resource load(const std::string& key) = 0; /// Map for the resources std::map<std::string, Resource> resources; }; #endif // RESOURCE_MANAGER_H
[ "ichbinpunk@gmail.com" ]
ichbinpunk@gmail.com
c58b95b8d4468e11c18d07c89fb658914aec4c74
a0ef3aa1b3118baf54dc186d89c35072b8d96d54
/codeforces/1385/D.cpp
effe03ec539a56d5b908022a6cec2a683c84bc3a
[]
no_license
arjunbangari/Problem-Solving
110398129698038660e558509c46c385e7848cc3
9c9760627a3fbdd97ecee8cbc02245a3ea0f7fda
refs/heads/master
2023-02-05T17:09:40.631840
2019-08-10T12:02:00
2020-12-29T11:52:13
324,994,511
4
0
null
null
null
null
UTF-8
C++
false
false
1,139
cpp
#include <bits/stdc++.h> using namespace std; typedef long long int ll; typedef long double ld; typedef pair<ll,ll> pll; #define endl "\n"; #define fast ios_base::sync_with_stdio(false);cin.tie(NULL);cout.tie(NULL) ll const inf = 1e18; ll const maxn = 1e6+5; ll const mod = 1e9+7; // code begins here ll n; string s; ll cnt[maxn][26]; void preprocess(){ for(ll i=0;i<=n;i++) for(ll j=0;j<26;j++) cnt[i][j] = 0; for(ll i=1;i<=n;i++){ cnt[i][s[i]-'a']++; for(ll j=0;j<26;j++) cnt[i][j] += cnt[i-1][j]; } } ll solve(ll l, ll r, char c){ if(l==r) return ( s[l]==c ? 0 : 1 ); ll m = (l+r)/2; ll len = (r-l+1)/2; ll ans1 = len - cnt[m][c-'a'] + cnt[l-1][c-'a'] + solve(m+1, r, char(c+1)); ll ans2 = len - cnt[r][c-'a'] + cnt[m][c-'a'] + solve(l, m, char(c+1)); return min(ans1, ans2); } int main(){ fast; ll t; cin>>t; while(t--){ cin>>n; cin>>s; s = "#" + s; preprocess(); ll ans = solve(1, n, 'a'); cout<<ans<<endl; } return 0; }
[ "sarjun99718@gmail.com" ]
sarjun99718@gmail.com
2feb03c0bd2ff8784c512eb9f288ad7a28a6c936
4c052882366dd86b06880d8e9908b30d627b8d2e
/1094_car_pooling/solution.cpp
a9af2eaa2cda52139dda87f0a59c4d84a09a20d3
[]
no_license
adithya-tp/leet_code
da93c9f4422d92c472e5595011abf898ae88586e
42204865cde865dd5b8306c3e1861b8086fb19e6
refs/heads/master
2022-08-31T14:28:54.711351
2022-08-11T15:18:04
2022-08-11T15:18:04
214,262,000
0
0
null
null
null
null
UTF-8
C++
false
false
616
cpp
class Solution { public: bool carPooling(vector<vector<int>>& trips, int capacity) { int total = 0; vector<pair<int, int>> make_number_line; for(auto it = trips.begin(); it != trips.end(); it++){ make_number_line.push_back(make_pair((*it)[1], (*it)[0])); make_number_line.push_back(make_pair((*it)[2], -(*it)[0])); } sort(make_number_line.begin(), make_number_line.end()); for(auto i : make_number_line){ total += i.second; if(total > capacity) return false; } return true; } };
[ "adithyatp@yahoo.com" ]
adithyatp@yahoo.com
156d992b96560a4c60de05112cf1f98e4448c51c
236a60e070e02d9552293cd5ecad5b61578fbf3f
/src/br/com/hygor/uri/cpp/starter/_1007_diferenca.cpp
7d6a6526aa4ddf9879cf084cdcc283fab7946f57
[]
no_license
zygor06/URI
cf961d4bc90f9b6cc39e2a172e5ac80891b9f1a4
49030c1e56db196e0c6a1fe7edd8ad3177f40b07
refs/heads/master
2021-08-29T21:09:32.032130
2017-12-15T01:25:33
2017-12-15T01:25:34
113,379,163
0
0
null
null
null
null
UTF-8
C++
false
false
177
cpp
// // @author Hygor Dias // @github github.com/zygor06 // #include <iostream> using namespace std; int main(){ //Implementar resolucao do exercicio _1007_Diferenca }
[ "hygor_christian@hotmail.com" ]
hygor_christian@hotmail.com
2fc2a46bb3013448c052a469627499ed86ccadac
7b9e626cfc3aa45ff44f79b0fb31b782a17d6c98
/src/dynamics/smagorinskyBGKdynamics.h
ccf3ca9021d789c1f45dbc13680c05313d44e33e
[]
no_license
lex16000/LBv1.2
e95b1b42925aaa892e6099be83496a0a56271dff
cee82cc6fe75d2f9b25a9f62ce8d50d3480c47ac
refs/heads/master
2021-04-06T01:41:48.099885
2018-04-04T12:01:09
2018-04-04T12:01:09
125,254,173
0
0
null
null
null
null
UTF-8
C++
false
false
16,301
h
/* This file is part of the OpenLB library * * Copyright (C) 2012-2015 Mathias J. Krause, Jonas Latt, Patrick Nathen * E-mail contact: info@openlb.net * The most recent release of OpenLB can be downloaded at * <http://www.openlb.net/> * * This program 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 2 * of the License, or (at your option) any later version. * * This program 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 this program; if not, write to the Free * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, * Boston, MA 02110-1301, USA. */ /** \file * BGK Dynamics with adjusted omega -- header file. */ #ifndef SMAGORINSKY_BGK_DYNAMICS_H #define SMAGORINSKY_BGK_DYNAMICS_H #include "dynamics/dynamics.h" #include "core/cell.h" #include<complex> // For shear kalman Smagorinsky - Populations namespace olb { /// Interface for the Large-Eddy-Simulation dynamics classes template<typename T, template<typename U> class Lattice> struct LESDynamics { /// Destructor: virtual to enable inheritance virtual ~LESDynamics() { } /// Get local effective relaxation parameter of the dynamics virtual T getEffectiveOmega(Cell<T,Lattice>& cell_) =0; }; /// Implementation of Smagorinsky Dynamics template<typename T, template<typename U> class Lattice> class SmagorinskyDynamics : public LESDynamics<T,Lattice> { public: /// Constructor SmagorinskyDynamics(T smagoConst_); private: /// Smagorinsky constant T smagoConst; protected: /// get the constant preFactor variable used to speed up calculations virtual T getPreFactor(); /// get the Smagorinsky constant virtual T getSmagoConst(); /// Compute constant prefactor variable in order to speed up the computation virtual T computePreFactor(); /// Precomputed constant which speeeds up the computation T preFactor; }; /// Implementation of the Smagorinsky BGK collision step template<typename T, template<typename U> class Lattice> class SmagorinskyBGKdynamics : public SmagorinskyDynamics<T,Lattice>, public BGKdynamics<T,Lattice> { public: /// Constructor SmagorinskyBGKdynamics(T omega_, Momenta<T,Lattice>& momenta_, T smagoConst_); /// Collision step void collide(Cell<T,Lattice>& cell, LatticeStatistics<T>& statistics_) override; /// Collide with fixed velocity void staticCollide(Cell<T,Lattice>& cell_, const T u[Lattice<T>::d], LatticeStatistics<T>& statistics_) override; /// Set local relaxation parameter of the dynamics void setOmega(T omega_) override; /// Get local smagorinsky relaxation parameter of the dynamics T getEffectiveOmega(Cell<T,Lattice>& cell_) override; protected: /// Computes the local smagorinsky relaxation parameter T computeEffectiveOmega(Cell<T,Lattice>& cell); }; /// Implementation of the ForcedBGK collision step template<typename T, template<typename U> class Lattice> class SmagorinskyForcedBGKdynamics : public SmagorinskyDynamics<T,Lattice>, public ForcedBGKdynamics<T,Lattice> { public: /// Constructor SmagorinskyForcedBGKdynamics(T omega_, Momenta<T,Lattice>& momenta_, T smagoConst_); /// Collision step virtual void collide(Cell<T,Lattice>& cell, LatticeStatistics<T>& statistics_); /// Collide with fixed velocity virtual void staticCollide(Cell<T,Lattice>& cell_, const T u[Lattice<T>::d], LatticeStatistics<T>& statistics_); /// Set local relaxation parameter of the dynamics virtual void setOmega(T omega_); /// Get local smagorinsky relaxation parameter of the dynamics virtual T getEffectiveOmega(Cell<T,Lattice>& cell_); protected: /// Computes the local smagorinsky relaxation parameter T computeEffectiveOmega(Cell<T,Lattice>& cell_); }; /// Implementation of the consistent Strain Smagorinsky BGK collision step /// /// Consistent subgrid scale modelling for lattice Boltzmann methods /// Orestis Malaspinas and Pierre Sagaut /// Journal of Fluid Mechanics / Volume / June 2012, pp 514-542 /// DOI: http://dx.doi.org/10.1017/jfm.2012.155 template<typename T, template<typename U> class Lattice> class ConStrainSmagorinskyBGKdynamics : public SmagorinskyBGKdynamics<T,Lattice> { public: /// Constructor ConStrainSmagorinskyBGKdynamics(T omega_, Momenta<T,Lattice>& momenta_, T smagoConst_=T(.1)); protected: /// Computes the local smagorinsky relaxation parameter T computeEffectiveOmega(Cell<T,Lattice>& cell_); }; /// Implementation of the consistent Smagorinsky BGK collision step /// /// Consistent subgrid scale modelling for lattice Boltzmann methods /// Orestis Malaspinas and Pierre Sagaut /// Journal of Fluid Mechanics / Volume / June 2012, pp 514-542 /// DOI: http://dx.doi.org/10.1017/jfm.2012.155 template<typename T, template<typename U> class Lattice> class ConSmagorinskyBGKdynamics : public SmagorinskyBGKdynamics<T,Lattice> { public: /// Constructor ConSmagorinskyBGKdynamics(T omega_, Momenta<T,Lattice>& momenta_, T smagoConst_); protected: /// should be remove --> David T computeEffectiveOmega(Cell<T,Lattice>& cell_); }; /// Implementation of a the dynamic Smarorinsky BGK collision step template<typename T, template<typename U> class Lattice> class DynSmagorinskyBGKdynamics : public SmagorinskyBGKdynamics<T,Lattice> { public: /// Constructor DynSmagorinskyBGKdynamics(T omega_, Momenta<T,Lattice>& momenta_); protected: /// Computes the local smagorinsky relaxation parameter T computeEffectiveOmega(Cell<T,Lattice>& cell); const static T smagoConstIsAt = Lattice<T>::ExternalField::smagoConstIsAt; }; /// Implementation of the ADM BGK collision step template<typename T, template<typename U> class Lattice> class ADMBGKdynamics : public BGKdynamics<T,Lattice> { public: /// Constructor ADMBGKdynamics(T omega_, Momenta<T,Lattice>& momenta_); /// Collision step virtual void collide(Cell<T,Lattice>& cell, LatticeStatistics<T>& statistics_); /// Collide with fixed velocity virtual void staticCollide(Cell<T,Lattice>& cell, const T u[Lattice<T>::d], LatticeStatistics<T>& statistics_); private: T omega; static const int rhoIsAt = Lattice<T>::ExternalField::rhoIsAt; static const int velocityBeginsAt = Lattice<T>::ExternalField::velocityBeginsAt; static const int sizeOfVelocity = Lattice<T>::ExternalField::sizeOfVelocity; }; /// Implementation of the ForcedADMBGK collision step template<typename T, template<typename U> class Lattice> class ForcedADMBGKdynamics : public BGKdynamics<T,Lattice> { public: /// Constructor ForcedADMBGKdynamics(T omega_, Momenta<T,Lattice>& momenta_); /// Collision step virtual void collide(Cell<T,Lattice>& cell, LatticeStatistics<T>& statistics_); /// Collide with fixed velocity virtual void staticCollide(Cell<T,Lattice>& cell, const T u[Lattice<T>::d], LatticeStatistics<T>& statistics_); private: T omega; static const int forceBeginsAt = Lattice<T>::ExternalField::forceBeginsAt; static const int sizeOfForce = Lattice<T>::ExternalField::sizeOfForce; static const int filRhoIsAt = Lattice<T>::ExternalField::filRhoIsAt; static const int localFilVelXBeginsAt = Lattice<T>::ExternalField::localFilVelXBeginsAt; static const int localFilVelYBeginsAt = Lattice<T>::ExternalField::localFilVelYBeginsAt; static const int localFilVelZBeginsAt = Lattice<T>::ExternalField::localFilVelZBeginsAt; }; /// Implementation of a Shear Smarorinsky BGK collision step /// Shown good results for wall-bounded flows /// Leveque et al.: Shear-Improved Smagorinsky Model for Large-Eddy Simulation /// of Wall-Bounded Turbulent Flows /// DOI: http://dx.doi.org/10.1017/S0022112006003429 template<typename T, template<typename U> class Lattice> class ShearSmagorinskyBGKdynamics : public SmagorinskyBGKdynamics<T,Lattice> { public: /// Constructor ShearSmagorinskyBGKdynamics(T omega_, Momenta<T,Lattice>& momenta_, T smagoConst_); /// Collision step virtual void collide(Cell<T,Lattice>& cell, LatticeStatistics<T>& statistics_); /// Collide with fixed velocity virtual void staticCollide(Cell<T,Lattice>& cell_, const T u[Lattice<T>::d], LatticeStatistics<T>& statistics_); /// Get Effective Omega stored in a external field virtual T getEffectiveOmega(Cell<T,Lattice>& cell); protected: /// Computes the local smagorinsky relaxation parameter T computeEffectiveOmega(Cell<T,Lattice>& cell, int iT); /// The external field variables' positions const static int avShearIsAt = Lattice<T>::ExternalField::avShearIsAt; }; /// Implementation of the ForcedBGK collision step template<typename T, template<typename U> class Lattice> class ShearSmagorinskyForcedBGKdynamics : public SmagorinskyForcedBGKdynamics<T,Lattice> { public: /// Constructor ShearSmagorinskyForcedBGKdynamics(T omega_, Momenta<T,Lattice>& momenta_, T smagoConst_); /// Collision step virtual void collide(Cell<T,Lattice>& cell, LatticeStatistics<T>& statistics_); /// Collide with fixed velocity virtual void staticCollide(Cell<T,Lattice>& cell_, const T u[Lattice<T>::d], LatticeStatistics<T>& statistics_); /// Get Effective Omega stored in a external field virtual T getEffectiveOmega(Cell<T,Lattice>& cell); protected: /// Computes the local smagorinsky relaxation parameter T computeEffectiveOmega(Cell<T,Lattice>& cell, int iT); // Define current time step /// Smagorinsky constant const static int avShearIsAt = Lattice<T>::ExternalField::avShearIsAt; }; /// Implementation of the ForcedBGK collision step template<typename T, template<typename U> class Lattice> class SmagorinskyLinearVelocityForcedBGKdynamics : public SmagorinskyForcedBGKdynamics<T,Lattice> { public: /// Constructor SmagorinskyLinearVelocityForcedBGKdynamics(T omega_, Momenta<T,Lattice>& momenta_, T smagoConst_); /// Collision step virtual void collide(Cell<T,Lattice>& cell, LatticeStatistics<T>& statistics_); }; /// Implementation of the BGK collision step template<typename T, template<typename U> class Lattice> class KrauseBGKdynamics : public SmagorinskyBGKdynamics<T,Lattice> { public: /// Constructor KrauseBGKdynamics(T omega_, Momenta<T,Lattice>& momenta_, T smagoConst_); /// Collision step void collide(Cell<T,Lattice>& cell, LatticeStatistics<T>& statistics_) override; /// Collide with fixed velocity void staticCollide(Cell<T,Lattice>& cell, const T u[Lattice<T>::d], LatticeStatistics<T>& statistics_) override; /// Get local smagorinsky relaxation parameter of the dynamics T getEffectiveOmega(Cell<T,Lattice>& cell_) override; private: /// Computes a constant prefactor in order to speed up the computation T computePreFactor() override; /// Computes the local smagorinsky relaxation parameter void computeEffectiveOmega(T omega0, Cell<T,Lattice>& cell, T preFactor_, T rho, T u[Lattice<T>::d], T newOmega[Lattice<T>::q]); T preFactor; }; /// Implementation of the BGK collision step template<typename T, template<typename U> class Lattice> class WALEBGKdynamics : public SmagorinskyBGKdynamics<T,Lattice> { public: /// Constructor WALEBGKdynamics(T omega_, Momenta<T,Lattice>& momenta_, T smagoConst_); protected: /// Computes a constant prefactor in order to speed up the computation T computePreFactor(); /// Computes the local smagorinsky relaxation parameter T computeEffectiveOmega(Cell<T,Lattice>& cell_); }; /// Implementation of the BGK collision step template<typename T, template<typename U> class Lattice> class FDKalmanShearSmagorinskyBGKdynamics : public SmagorinskyBGKdynamics<T,Lattice> { public: /// Constructor FDKalmanShearSmagorinskyBGKdynamics(T omega_, Momenta<T,Lattice>& momenta_, T smagoConst_, T u_char_lat, T f_char_lat); /// Get local effective relaxation parameter of the dynamics virtual T getEffectiveOmega(Cell<T,Lattice>& cell_); protected: /// Computes a constant prefactor in order to speed up the computation virtual T computePreFactor(); /// Computes the local smagorinsky relaxation parameter virtual T computeOmega(Cell<T,Lattice>& cell_); // The variance of increment of kalman filtered velocity T VarInVelKal; T UCharLat; private: void computeNormStrainRate(Cell<T,Lattice>& cell, int PosVelGrad, T& NormStrainRate); void KalmanStep(Cell<T,Lattice>& cell); }; //////////////////////////////////////////////////////////////////////////////// /// Implementation of a Shear Smarorinsky BGK collision step with Kalman Filter // /// Leveque et al.: Shear-Improved Smagorinsky Model for Large-Eddy Simulation /// of Wall-Bounded Turbulent Flows /// /// Boudet et al. (2016) A Kalman filter adapted of the estimation of mean gradients // in the a large-eddy simulation of unsteady turbulent flows. template<typename T, template<typename U> class Lattice> class ShearKalmanSmagorinskyBGKdynamics : public SmagorinskyBGKdynamics<T,Lattice> { public: /// Constructor ShearKalmanSmagorinskyBGKdynamics(T omega_, Momenta<T,Lattice>& momenta_, T smagoConst_, T u_char_lat, T f_char_lat); /// Get local effective relaxation parameter of the dynamics virtual T getEffectiveOmega(Cell<T,Lattice>& cell_); protected: /// Computes the local smagorinsky relaxation parameter T computeEffectiveOmega(Cell<T,Lattice>& cell_); private: /// Updates the filtered velocity with a Kalman procedure void KalmanStep(Cell<T,Lattice>& cell); /// Computes the kalman filtered velocity and strain rate using the filtered population stored in a externa field void computeKalmanUStress(Cell<T,Lattice>& cell, T (&KalmanU)[Lattice<T>::d], T (&KalmanPi)[util::TensorVal<Lattice<T> >::n]); /// Computes The Kalman filtered velocity using the filtered populations stored in a external field void computeKalmanU(Cell<T,Lattice>& cell, T (&KalmanU)[Lattice<T>::d]); /// Computes the Kalman filtered strain rate using the filtered populations stored in a external field void computeKalmanStress(Cell<T,Lattice>& cell, T (&KalmanU)[Lattice<T>::d], T (&KalmanPi)[util::TensorVal<Lattice<T> >::n]); /// Computes instantaneous tau_sgs and update kalman tau_sgs void computeAndupdateTauSgs(Cell<T,Lattice>& cell, T rho, T pi[util::TensorVal<Lattice<T> >::n], T KalmanPiNeqN[util::TensorVal<Lattice<T> >::n], T KalmanPiNeqN1[util::TensorVal<Lattice<T> >::n], T K, T &tau_sgs); /// Methods to compute the square Norm of second order moment non-quilibrium distribution function void computeNormSOM(T pi[util::TensorVal<Lattice<T> >::n], T &piNorm); void computeNormSOM(T pi1[util::TensorVal<Lattice<T> >::n], T pi2[util::TensorVal<Lattice<T> >::n], T rho, T &piNorm); void computeNormSOM(T pi[util::TensorVal<Lattice<T> >::n], T rho, T &piNorm); /// Compute the instantaneous tau_sgs void computeTauSgs(Cell<T,Lattice>& cell, T rho, T KalmanPiNeqNormSqr, T KalmanInstPiNeqNormSqr, T PiNeqNormSqr, T K, T &tau_sgs); void computeRoots4thPoly(T A, T B, T C, T D, T E, std::complex<T> (&Roots)[4]); // Update the local kalman tau_sgs stored in a external field void updateTauSgsKalman(Cell<T,Lattice>& cell, T NN, T Nn1, T n1n1, T N1N1, T K, T tau_sgs_n1); // The variance of increment of kalman filtered velocity T VarInVelKal; T UCharLat; /// The external field variables' positions static const int ErrorCovarianceIsAt = Lattice<T>::ExternalField::ErrorCovarianceIsAt; static const int VarianceIsAt = Lattice<T>::ExternalField::VarianceIsAt; static const int TauSgsIsAt = Lattice<T>::ExternalField::TauSgsIsAt; static const int FilteredPopulationIsAt = Lattice<T>::ExternalField::FilteredPopulationIsAt; }; } #endif
[ "schulz_a_alexander@hotmail.com" ]
schulz_a_alexander@hotmail.com
0d6be53c41d89ac0ad87e968a1af3c6a28daa029
6fc95be6087ac2a3c36946d0d1fcaa46cd09723f
/countLeafNodes.cpp
d274410af1579038ff05ed9d7e00a53c507ebcd3
[]
no_license
tommotaku/Tree-Data-Structure
0b34d406fdf2243f07a02f88ea3f8549937de719
4b80c224cc074066004731ceb3a2fd8a8592be66
refs/heads/master
2023-01-29T03:23:56.810600
2020-12-07T07:58:48
2020-12-07T07:58:48
261,506,549
0
0
null
null
null
null
UTF-8
C++
false
false
1,513
cpp
#include <bits/stdc++.h> using namespace std; #define pb push_back #define loop(i,n) for(int i = 0; i < n; i++) #define mp make_pair #define F first #define S second #define asort(a) sort(a,a+n) #define vsort(v) sort(v.begin(), v.end()) #define remdup(v) v.erase(unique(v.begin(), v.end()), v.end()) #define iter(m) for(auto it = m.begin(); it != m.end(); it++) typedef long long ll; typedef unsigned long long ull; typedef pair<int, int> pii; typedef pair<long, long> pll; class Node{ public: int val; Node* left, *right; Node(int x){ val = x; left = NULL; right = NULL; } }; int height(Node* tree){ if(tree == NULL) return 0; int lheight = height(tree->left); int rheight = height(tree->right); return (max(lheight, rheight)+1); } void levelOrder(Node* tree, int level, int& count){ if(tree == NULL) return; if(level == 1){ if(tree->left == NULL && tree->right == NULL) count++; } else{ levelOrder(tree->left, level-1, count); levelOrder(tree->right, level-1, count); } } int leafNodes(Node* tree){ int count = 0; int h = height(tree); for(int i = 1; i <= h; i++) levelOrder(tree, i, count); return count; } int main(){ Node* tree; tree = new Node(1); tree->left = new Node(2); tree->right = new Node(3); tree->left->left = new Node(4); tree->right->left = new Node(5); tree->right->right = new Node(6); cout << leafNodes(tree); }
[ "pepito.tip@gmail.com" ]
pepito.tip@gmail.com
d154ca2cfd77acc52495eb8f96be15b106e578c5
aa402b47eb8430b7f0f74201cc5364aaffb05fac
/src/include/platform/internal/GenericPlatformManagerImpl_Zephyr.h
6c4a6a2eda109406370e791f6d07e2f553cd4f90
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
Forest-Rain/connectedhomeip
7105a5f43c2f9edf16726863bf0e4335aca085f4
aef5db43b94095b5d60e94ba2009ca29ae92cdd0
refs/heads/master
2023-07-18T21:40:44.592434
2021-09-15T23:05:12
2021-09-15T23:05:12
null
0
0
null
null
null
null
UTF-8
C++
false
false
3,483
h
/* * * Copyright (c) 2020 Project CHIP Authors * * 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. */ /** * @file * Provides an generic implementation of PlatformManager features * for use on Zephyr RTOS platforms. */ #pragma once #include <platform/internal/GenericPlatformManagerImpl.h> #include <sys/select.h> #include <zephyr.h> namespace chip { namespace DeviceLayer { namespace Internal { /** * Provides a generic implementation of PlatformManager features that works on Zephyr RTOS platforms. * * This template contains implementations of selected features from the PlatformManager abstract * interface that are suitable for use on Zephyr-based platforms. It is intended to be inherited * (directly or indirectly) by the PlatformManagerImpl class, which also appears as the template's * ImplClass parameter. */ template <class ImplClass> class GenericPlatformManagerImpl_Zephyr : public GenericPlatformManagerImpl<ImplClass> { protected: using ThreadStack = k_thread_stack_t[K_THREAD_STACK_LEN(CHIP_DEVICE_CONFIG_CHIP_TASK_STACK_SIZE)]; // Members for select() loop int mMaxFd; fd_set mReadSet; fd_set mWriteSet; fd_set mErrorSet; timeval mNextTimeout; // Lock for the whole CHIP stack k_mutex mChipStackLock; // Members for CHIP event processing ChipDeviceEvent mChipEventRingBuffer[CHIP_DEVICE_CONFIG_MAX_EVENT_QUEUE_SIZE]; k_msgq mChipEventQueue; // Main CHIP thread // Although defining thread stack as a class member is feasible it's discouraged according to // the Zephyr documentation (see remarks on K_THREAD_STACK_MEMBER macro). Therefore, this class // requires the stack reference to be passed in the constructor. ThreadStack & mChipThreadStack; k_thread mChipThread; // ===== Methods that implement the PlatformManager abstract interface. CHIP_ERROR _InitChipStack(); void _LockChipStack(void); bool _TryLockChipStack(void); void _UnlockChipStack(void); CHIP_ERROR _PostEvent(const ChipDeviceEvent * event); void _RunEventLoop(void); CHIP_ERROR _StartEventLoopTask(void); CHIP_ERROR _StopEventLoopTask(); CHIP_ERROR _StartChipTimer(uint32_t durationMS); CHIP_ERROR _Shutdown(void); // ===== Methods available to the implementation subclass. explicit GenericPlatformManagerImpl_Zephyr(ThreadStack & stack) : mChipThreadStack(stack) {} private: // ===== Private members for use by this class only. ImplClass * Impl() { return static_cast<ImplClass *>(this); } void SysUpdate(); void SysProcess(); void ProcessDeviceEvents(); static void EventLoopTaskMain(void * thisPtr, void *, void *); }; // Instruct the compiler to instantiate the template only when explicitly told to do so. extern template class GenericPlatformManagerImpl_Zephyr<PlatformManagerImpl>; } // namespace Internal } // namespace DeviceLayer } // namespace chip
[ "noreply@github.com" ]
noreply@github.com
010e5970c674e638ed42aca6100b7ef1a1b73624
d00367a4edb27448ed322069f1d7b9eb740a974f
/Library/Il2cppBuildCache/Android/arm64-v8a/il2cppOutput/UnityEngine.SharedInternalsModule_Attr.cpp
94baa0280c5472ed5d39a9df72d234883bcbb392
[]
no_license
Kyoungminn/project_teample
c43b25bdd342180a60b5921104ce8f9ddf385f88
e9c3b97154d69a2e111171c59ee759cd86693404
refs/heads/main
2023-07-12T23:30:59.161224
2021-08-17T06:49:35
2021-08-17T06:49:35
397,087,564
2
3
null
null
null
null
UTF-8
C++
false
false
146,177
cpp
#include "pch-cpp.hpp" #ifndef _MSC_VER # include <alloca.h> #else # include <malloc.h> #endif #include <limits> #include <stdint.h> // System.Char[] struct CharU5BU5D_t7B7FC5BC8091AA3B9CB0B29CDD80B5EE9254AA34; // System.AttributeUsageAttribute struct AttributeUsageAttribute_tBB0BAAA82036E6FCDD80A688BBD039F6FFD8EA1C; // System.Runtime.CompilerServices.CompilationRelaxationsAttribute struct CompilationRelaxationsAttribute_t661FDDC06629BDA607A42BD660944F039FE03AFF; // System.Runtime.CompilerServices.CompilerGeneratedAttribute struct CompilerGeneratedAttribute_t39106AB982658D7A94C27DEF3C48DB2F5F7CD75C; // System.Diagnostics.DebuggableAttribute struct DebuggableAttribute_tA8054EBD0FC7511695D494B690B5771658E3191B; // System.Diagnostics.DebuggerBrowsableAttribute struct DebuggerBrowsableAttribute_t2FA4793AD1982F5150E07D26822ED5953CD90F53; // System.Runtime.CompilerServices.InternalsVisibleToAttribute struct InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C; // System.ParamArrayAttribute struct ParamArrayAttribute_t9DCEB4CDDB8EDDB1124171D4C51FA6069EEA5C5F; // System.Runtime.CompilerServices.RuntimeCompatibilityAttribute struct RuntimeCompatibilityAttribute_tFF99AB2963098F9CBCD47A20D9FD3D51C17C1C80; // System.String struct String_t; // UnityEngine.UnityEngineModuleAssembly struct UnityEngineModuleAssembly_t33CB058FDDDC458E384578147D6027BB1EC86CFF; // UnityEngine.Bindings.VisibleToOtherModulesAttribute struct VisibleToOtherModulesAttribute_t7C36871C9AD251C033486E04A2FFCB7CFB830914; IL2CPP_EXTERN_C_BEGIN IL2CPP_EXTERN_C_END #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Object // System.Attribute struct Attribute_t037CA9D9F3B742C063DB364D2EEBBF9FC5772C71 : public RuntimeObject { public: public: }; // System.String struct String_t : public RuntimeObject { public: // System.Int32 System.String::m_stringLength int32_t ___m_stringLength_0; // System.Char System.String::m_firstChar Il2CppChar ___m_firstChar_1; public: inline static int32_t get_offset_of_m_stringLength_0() { return static_cast<int32_t>(offsetof(String_t, ___m_stringLength_0)); } inline int32_t get_m_stringLength_0() const { return ___m_stringLength_0; } inline int32_t* get_address_of_m_stringLength_0() { return &___m_stringLength_0; } inline void set_m_stringLength_0(int32_t value) { ___m_stringLength_0 = value; } inline static int32_t get_offset_of_m_firstChar_1() { return static_cast<int32_t>(offsetof(String_t, ___m_firstChar_1)); } inline Il2CppChar get_m_firstChar_1() const { return ___m_firstChar_1; } inline Il2CppChar* get_address_of_m_firstChar_1() { return &___m_firstChar_1; } inline void set_m_firstChar_1(Il2CppChar value) { ___m_firstChar_1 = value; } }; struct String_t_StaticFields { public: // System.String System.String::Empty String_t* ___Empty_5; public: inline static int32_t get_offset_of_Empty_5() { return static_cast<int32_t>(offsetof(String_t_StaticFields, ___Empty_5)); } inline String_t* get_Empty_5() const { return ___Empty_5; } inline String_t** get_address_of_Empty_5() { return &___Empty_5; } inline void set_Empty_5(String_t* value) { ___Empty_5 = value; Il2CppCodeGenWriteBarrier((void**)(&___Empty_5), (void*)value); } }; // System.ValueType struct ValueType_tDBF999C1B75C48C68621878250DBF6CDBCF51E52 : public RuntimeObject { public: public: }; // Native definition for P/Invoke marshalling of System.ValueType struct ValueType_tDBF999C1B75C48C68621878250DBF6CDBCF51E52_marshaled_pinvoke { }; // Native definition for COM marshalling of System.ValueType struct ValueType_tDBF999C1B75C48C68621878250DBF6CDBCF51E52_marshaled_com { }; // System.Boolean struct Boolean_t07D1E3F34E4813023D64F584DFF7B34C9D922F37 { public: // System.Boolean System.Boolean::m_value bool ___m_value_0; public: inline static int32_t get_offset_of_m_value_0() { return static_cast<int32_t>(offsetof(Boolean_t07D1E3F34E4813023D64F584DFF7B34C9D922F37, ___m_value_0)); } inline bool get_m_value_0() const { return ___m_value_0; } inline bool* get_address_of_m_value_0() { return &___m_value_0; } inline void set_m_value_0(bool value) { ___m_value_0 = value; } }; struct Boolean_t07D1E3F34E4813023D64F584DFF7B34C9D922F37_StaticFields { public: // System.String System.Boolean::TrueString String_t* ___TrueString_5; // System.String System.Boolean::FalseString String_t* ___FalseString_6; public: inline static int32_t get_offset_of_TrueString_5() { return static_cast<int32_t>(offsetof(Boolean_t07D1E3F34E4813023D64F584DFF7B34C9D922F37_StaticFields, ___TrueString_5)); } inline String_t* get_TrueString_5() const { return ___TrueString_5; } inline String_t** get_address_of_TrueString_5() { return &___TrueString_5; } inline void set_TrueString_5(String_t* value) { ___TrueString_5 = value; Il2CppCodeGenWriteBarrier((void**)(&___TrueString_5), (void*)value); } inline static int32_t get_offset_of_FalseString_6() { return static_cast<int32_t>(offsetof(Boolean_t07D1E3F34E4813023D64F584DFF7B34C9D922F37_StaticFields, ___FalseString_6)); } inline String_t* get_FalseString_6() const { return ___FalseString_6; } inline String_t** get_address_of_FalseString_6() { return &___FalseString_6; } inline void set_FalseString_6(String_t* value) { ___FalseString_6 = value; Il2CppCodeGenWriteBarrier((void**)(&___FalseString_6), (void*)value); } }; // System.Runtime.CompilerServices.CompilationRelaxationsAttribute struct CompilationRelaxationsAttribute_t661FDDC06629BDA607A42BD660944F039FE03AFF : public Attribute_t037CA9D9F3B742C063DB364D2EEBBF9FC5772C71 { public: // System.Int32 System.Runtime.CompilerServices.CompilationRelaxationsAttribute::m_relaxations int32_t ___m_relaxations_0; public: inline static int32_t get_offset_of_m_relaxations_0() { return static_cast<int32_t>(offsetof(CompilationRelaxationsAttribute_t661FDDC06629BDA607A42BD660944F039FE03AFF, ___m_relaxations_0)); } inline int32_t get_m_relaxations_0() const { return ___m_relaxations_0; } inline int32_t* get_address_of_m_relaxations_0() { return &___m_relaxations_0; } inline void set_m_relaxations_0(int32_t value) { ___m_relaxations_0 = value; } }; // System.Runtime.CompilerServices.CompilerGeneratedAttribute struct CompilerGeneratedAttribute_t39106AB982658D7A94C27DEF3C48DB2F5F7CD75C : public Attribute_t037CA9D9F3B742C063DB364D2EEBBF9FC5772C71 { public: public: }; // System.Enum struct Enum_t23B90B40F60E677A8025267341651C94AE079CDA : public ValueType_tDBF999C1B75C48C68621878250DBF6CDBCF51E52 { public: public: }; struct Enum_t23B90B40F60E677A8025267341651C94AE079CDA_StaticFields { public: // System.Char[] System.Enum::enumSeperatorCharArray CharU5BU5D_t7B7FC5BC8091AA3B9CB0B29CDD80B5EE9254AA34* ___enumSeperatorCharArray_0; public: inline static int32_t get_offset_of_enumSeperatorCharArray_0() { return static_cast<int32_t>(offsetof(Enum_t23B90B40F60E677A8025267341651C94AE079CDA_StaticFields, ___enumSeperatorCharArray_0)); } inline CharU5BU5D_t7B7FC5BC8091AA3B9CB0B29CDD80B5EE9254AA34* get_enumSeperatorCharArray_0() const { return ___enumSeperatorCharArray_0; } inline CharU5BU5D_t7B7FC5BC8091AA3B9CB0B29CDD80B5EE9254AA34** get_address_of_enumSeperatorCharArray_0() { return &___enumSeperatorCharArray_0; } inline void set_enumSeperatorCharArray_0(CharU5BU5D_t7B7FC5BC8091AA3B9CB0B29CDD80B5EE9254AA34* value) { ___enumSeperatorCharArray_0 = value; Il2CppCodeGenWriteBarrier((void**)(&___enumSeperatorCharArray_0), (void*)value); } }; // Native definition for P/Invoke marshalling of System.Enum struct Enum_t23B90B40F60E677A8025267341651C94AE079CDA_marshaled_pinvoke { }; // Native definition for COM marshalling of System.Enum struct Enum_t23B90B40F60E677A8025267341651C94AE079CDA_marshaled_com { }; // System.Runtime.CompilerServices.InternalsVisibleToAttribute struct InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C : public Attribute_t037CA9D9F3B742C063DB364D2EEBBF9FC5772C71 { public: // System.String System.Runtime.CompilerServices.InternalsVisibleToAttribute::_assemblyName String_t* ____assemblyName_0; // System.Boolean System.Runtime.CompilerServices.InternalsVisibleToAttribute::_allInternalsVisible bool ____allInternalsVisible_1; public: inline static int32_t get_offset_of__assemblyName_0() { return static_cast<int32_t>(offsetof(InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C, ____assemblyName_0)); } inline String_t* get__assemblyName_0() const { return ____assemblyName_0; } inline String_t** get_address_of__assemblyName_0() { return &____assemblyName_0; } inline void set__assemblyName_0(String_t* value) { ____assemblyName_0 = value; Il2CppCodeGenWriteBarrier((void**)(&____assemblyName_0), (void*)value); } inline static int32_t get_offset_of__allInternalsVisible_1() { return static_cast<int32_t>(offsetof(InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C, ____allInternalsVisible_1)); } inline bool get__allInternalsVisible_1() const { return ____allInternalsVisible_1; } inline bool* get_address_of__allInternalsVisible_1() { return &____allInternalsVisible_1; } inline void set__allInternalsVisible_1(bool value) { ____allInternalsVisible_1 = value; } }; // System.ParamArrayAttribute struct ParamArrayAttribute_t9DCEB4CDDB8EDDB1124171D4C51FA6069EEA5C5F : public Attribute_t037CA9D9F3B742C063DB364D2EEBBF9FC5772C71 { public: public: }; // System.Runtime.CompilerServices.RuntimeCompatibilityAttribute struct RuntimeCompatibilityAttribute_tFF99AB2963098F9CBCD47A20D9FD3D51C17C1C80 : public Attribute_t037CA9D9F3B742C063DB364D2EEBBF9FC5772C71 { public: // System.Boolean System.Runtime.CompilerServices.RuntimeCompatibilityAttribute::m_wrapNonExceptionThrows bool ___m_wrapNonExceptionThrows_0; public: inline static int32_t get_offset_of_m_wrapNonExceptionThrows_0() { return static_cast<int32_t>(offsetof(RuntimeCompatibilityAttribute_tFF99AB2963098F9CBCD47A20D9FD3D51C17C1C80, ___m_wrapNonExceptionThrows_0)); } inline bool get_m_wrapNonExceptionThrows_0() const { return ___m_wrapNonExceptionThrows_0; } inline bool* get_address_of_m_wrapNonExceptionThrows_0() { return &___m_wrapNonExceptionThrows_0; } inline void set_m_wrapNonExceptionThrows_0(bool value) { ___m_wrapNonExceptionThrows_0 = value; } }; // UnityEngine.UnityEngineModuleAssembly struct UnityEngineModuleAssembly_t33CB058FDDDC458E384578147D6027BB1EC86CFF : public Attribute_t037CA9D9F3B742C063DB364D2EEBBF9FC5772C71 { public: public: }; // UnityEngine.Bindings.VisibleToOtherModulesAttribute struct VisibleToOtherModulesAttribute_t7C36871C9AD251C033486E04A2FFCB7CFB830914 : public Attribute_t037CA9D9F3B742C063DB364D2EEBBF9FC5772C71 { public: public: }; // System.Void struct Void_t700C6383A2A510C2CF4DD86DABD5CA9FF70ADAC5 { public: union { struct { }; uint8_t Void_t700C6383A2A510C2CF4DD86DABD5CA9FF70ADAC5__padding[1]; }; public: }; // System.AttributeTargets struct AttributeTargets_t5F71273DFE1D0CA9B8109F02A023A7DBA9BFC923 { public: // System.Int32 System.AttributeTargets::value__ int32_t ___value___2; public: inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(AttributeTargets_t5F71273DFE1D0CA9B8109F02A023A7DBA9BFC923, ___value___2)); } inline int32_t get_value___2() const { return ___value___2; } inline int32_t* get_address_of_value___2() { return &___value___2; } inline void set_value___2(int32_t value) { ___value___2 = value; } }; // System.Diagnostics.DebuggerBrowsableState struct DebuggerBrowsableState_t2A824ECEB650CFABB239FD0918FCC88A09B45091 { public: // System.Int32 System.Diagnostics.DebuggerBrowsableState::value__ int32_t ___value___2; public: inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(DebuggerBrowsableState_t2A824ECEB650CFABB239FD0918FCC88A09B45091, ___value___2)); } inline int32_t get_value___2() const { return ___value___2; } inline int32_t* get_address_of_value___2() { return &___value___2; } inline void set_value___2(int32_t value) { ___value___2 = value; } }; // System.Diagnostics.DebuggableAttribute/DebuggingModes struct DebuggingModes_t279D5B9C012ABA935887CB73C5A63A1F46AF08A8 { public: // System.Int32 System.Diagnostics.DebuggableAttribute/DebuggingModes::value__ int32_t ___value___2; public: inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(DebuggingModes_t279D5B9C012ABA935887CB73C5A63A1F46AF08A8, ___value___2)); } inline int32_t get_value___2() const { return ___value___2; } inline int32_t* get_address_of_value___2() { return &___value___2; } inline void set_value___2(int32_t value) { ___value___2 = value; } }; // System.AttributeUsageAttribute struct AttributeUsageAttribute_tBB0BAAA82036E6FCDD80A688BBD039F6FFD8EA1C : public Attribute_t037CA9D9F3B742C063DB364D2EEBBF9FC5772C71 { public: // System.AttributeTargets System.AttributeUsageAttribute::m_attributeTarget int32_t ___m_attributeTarget_0; // System.Boolean System.AttributeUsageAttribute::m_allowMultiple bool ___m_allowMultiple_1; // System.Boolean System.AttributeUsageAttribute::m_inherited bool ___m_inherited_2; public: inline static int32_t get_offset_of_m_attributeTarget_0() { return static_cast<int32_t>(offsetof(AttributeUsageAttribute_tBB0BAAA82036E6FCDD80A688BBD039F6FFD8EA1C, ___m_attributeTarget_0)); } inline int32_t get_m_attributeTarget_0() const { return ___m_attributeTarget_0; } inline int32_t* get_address_of_m_attributeTarget_0() { return &___m_attributeTarget_0; } inline void set_m_attributeTarget_0(int32_t value) { ___m_attributeTarget_0 = value; } inline static int32_t get_offset_of_m_allowMultiple_1() { return static_cast<int32_t>(offsetof(AttributeUsageAttribute_tBB0BAAA82036E6FCDD80A688BBD039F6FFD8EA1C, ___m_allowMultiple_1)); } inline bool get_m_allowMultiple_1() const { return ___m_allowMultiple_1; } inline bool* get_address_of_m_allowMultiple_1() { return &___m_allowMultiple_1; } inline void set_m_allowMultiple_1(bool value) { ___m_allowMultiple_1 = value; } inline static int32_t get_offset_of_m_inherited_2() { return static_cast<int32_t>(offsetof(AttributeUsageAttribute_tBB0BAAA82036E6FCDD80A688BBD039F6FFD8EA1C, ___m_inherited_2)); } inline bool get_m_inherited_2() const { return ___m_inherited_2; } inline bool* get_address_of_m_inherited_2() { return &___m_inherited_2; } inline void set_m_inherited_2(bool value) { ___m_inherited_2 = value; } }; struct AttributeUsageAttribute_tBB0BAAA82036E6FCDD80A688BBD039F6FFD8EA1C_StaticFields { public: // System.AttributeUsageAttribute System.AttributeUsageAttribute::Default AttributeUsageAttribute_tBB0BAAA82036E6FCDD80A688BBD039F6FFD8EA1C * ___Default_3; public: inline static int32_t get_offset_of_Default_3() { return static_cast<int32_t>(offsetof(AttributeUsageAttribute_tBB0BAAA82036E6FCDD80A688BBD039F6FFD8EA1C_StaticFields, ___Default_3)); } inline AttributeUsageAttribute_tBB0BAAA82036E6FCDD80A688BBD039F6FFD8EA1C * get_Default_3() const { return ___Default_3; } inline AttributeUsageAttribute_tBB0BAAA82036E6FCDD80A688BBD039F6FFD8EA1C ** get_address_of_Default_3() { return &___Default_3; } inline void set_Default_3(AttributeUsageAttribute_tBB0BAAA82036E6FCDD80A688BBD039F6FFD8EA1C * value) { ___Default_3 = value; Il2CppCodeGenWriteBarrier((void**)(&___Default_3), (void*)value); } }; // System.Diagnostics.DebuggableAttribute struct DebuggableAttribute_tA8054EBD0FC7511695D494B690B5771658E3191B : public Attribute_t037CA9D9F3B742C063DB364D2EEBBF9FC5772C71 { public: // System.Diagnostics.DebuggableAttribute/DebuggingModes System.Diagnostics.DebuggableAttribute::m_debuggingModes int32_t ___m_debuggingModes_0; public: inline static int32_t get_offset_of_m_debuggingModes_0() { return static_cast<int32_t>(offsetof(DebuggableAttribute_tA8054EBD0FC7511695D494B690B5771658E3191B, ___m_debuggingModes_0)); } inline int32_t get_m_debuggingModes_0() const { return ___m_debuggingModes_0; } inline int32_t* get_address_of_m_debuggingModes_0() { return &___m_debuggingModes_0; } inline void set_m_debuggingModes_0(int32_t value) { ___m_debuggingModes_0 = value; } }; // System.Diagnostics.DebuggerBrowsableAttribute struct DebuggerBrowsableAttribute_t2FA4793AD1982F5150E07D26822ED5953CD90F53 : public Attribute_t037CA9D9F3B742C063DB364D2EEBBF9FC5772C71 { public: // System.Diagnostics.DebuggerBrowsableState System.Diagnostics.DebuggerBrowsableAttribute::state int32_t ___state_0; public: inline static int32_t get_offset_of_state_0() { return static_cast<int32_t>(offsetof(DebuggerBrowsableAttribute_t2FA4793AD1982F5150E07D26822ED5953CD90F53, ___state_0)); } inline int32_t get_state_0() const { return ___state_0; } inline int32_t* get_address_of_state_0() { return &___state_0; } inline void set_state_0(int32_t value) { ___state_0 = value; } }; #ifdef __clang__ #pragma clang diagnostic pop #endif // System.Void System.Runtime.CompilerServices.InternalsVisibleToAttribute::.ctor(System.String) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9 (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * __this, String_t* ___assemblyName0, const RuntimeMethod* method); // System.Void UnityEngine.UnityEngineModuleAssembly::.ctor() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void UnityEngineModuleAssembly__ctor_m76C129AC6AA438BE601F5279EE9EB599BEF90AF9 (UnityEngineModuleAssembly_t33CB058FDDDC458E384578147D6027BB1EC86CFF * __this, const RuntimeMethod* method); // System.Void System.Runtime.CompilerServices.CompilationRelaxationsAttribute::.ctor(System.Int32) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void CompilationRelaxationsAttribute__ctor_mAC3079EBC4EEAB474EED8208EF95DB39C922333B (CompilationRelaxationsAttribute_t661FDDC06629BDA607A42BD660944F039FE03AFF * __this, int32_t ___relaxations0, const RuntimeMethod* method); // System.Void System.Runtime.CompilerServices.RuntimeCompatibilityAttribute::.ctor() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void RuntimeCompatibilityAttribute__ctor_m551DDF1438CE97A984571949723F30F44CF7317C (RuntimeCompatibilityAttribute_tFF99AB2963098F9CBCD47A20D9FD3D51C17C1C80 * __this, const RuntimeMethod* method); // System.Void System.Runtime.CompilerServices.RuntimeCompatibilityAttribute::set_WrapNonExceptionThrows(System.Boolean) IL2CPP_MANAGED_FORCE_INLINE IL2CPP_METHOD_ATTR void RuntimeCompatibilityAttribute_set_WrapNonExceptionThrows_m8562196F90F3EBCEC23B5708EE0332842883C490_inline (RuntimeCompatibilityAttribute_tFF99AB2963098F9CBCD47A20D9FD3D51C17C1C80 * __this, bool ___value0, const RuntimeMethod* method); // System.Void System.Diagnostics.DebuggableAttribute::.ctor(System.Diagnostics.DebuggableAttribute/DebuggingModes) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void DebuggableAttribute__ctor_m7FF445C8435494A4847123A668D889E692E55550 (DebuggableAttribute_tA8054EBD0FC7511695D494B690B5771658E3191B * __this, int32_t ___modes0, const RuntimeMethod* method); // System.Void UnityEngine.Bindings.VisibleToOtherModulesAttribute::.ctor() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void VisibleToOtherModulesAttribute__ctor_mA193FBBFEBF3CF09151A66AF466D6DA6C35CBD6F (VisibleToOtherModulesAttribute_t7C36871C9AD251C033486E04A2FFCB7CFB830914 * __this, const RuntimeMethod* method); // System.Void System.AttributeUsageAttribute::.ctor(System.AttributeTargets) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void AttributeUsageAttribute__ctor_m5114E18826A49A025D48DC71904C430BD590656D (AttributeUsageAttribute_tBB0BAAA82036E6FCDD80A688BBD039F6FFD8EA1C * __this, int32_t ___validOn0, const RuntimeMethod* method); // System.Void System.AttributeUsageAttribute::set_Inherited(System.Boolean) IL2CPP_MANAGED_FORCE_INLINE IL2CPP_METHOD_ATTR void AttributeUsageAttribute_set_Inherited_m56105980C36CB71AECD398C6077739BDFD2085E0_inline (AttributeUsageAttribute_tBB0BAAA82036E6FCDD80A688BBD039F6FFD8EA1C * __this, bool ___value0, const RuntimeMethod* method); // System.Void System.Diagnostics.DebuggerBrowsableAttribute::.ctor(System.Diagnostics.DebuggerBrowsableState) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void DebuggerBrowsableAttribute__ctor_mAA8BCC1E418754685F320B14A08AC226E76346E5 (DebuggerBrowsableAttribute_t2FA4793AD1982F5150E07D26822ED5953CD90F53 * __this, int32_t ___state0, const RuntimeMethod* method); // System.Void System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void CompilerGeneratedAttribute__ctor_m9DC3E4E2DA76FE93948D44199213E2E924DCBE35 (CompilerGeneratedAttribute_t39106AB982658D7A94C27DEF3C48DB2F5F7CD75C * __this, const RuntimeMethod* method); // System.Void System.ParamArrayAttribute::.ctor() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ParamArrayAttribute__ctor_mCC72AFF718185BA7B87FD8D9471F1274400C5719 (ParamArrayAttribute_t9DCEB4CDDB8EDDB1124171D4C51FA6069EEA5C5F * __this, const RuntimeMethod* method); // System.Void System.AttributeUsageAttribute::set_AllowMultiple(System.Boolean) IL2CPP_MANAGED_FORCE_INLINE IL2CPP_METHOD_ATTR void AttributeUsageAttribute_set_AllowMultiple_mF412CDAFFE16D056721EF81A1EC04ACE63612055_inline (AttributeUsageAttribute_tBB0BAAA82036E6FCDD80A688BBD039F6FFD8EA1C * __this, bool ___value0, const RuntimeMethod* method); static void UnityEngine_SharedInternalsModule_CustomAttributesCacheGenerator(CustomAttributesCache* cache) { { InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[0]; InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x45\x6E\x67\x69\x6E\x65\x2E\x41\x63\x63\x65\x73\x73\x69\x62\x69\x6C\x69\x74\x79\x4D\x6F\x64\x75\x6C\x65"), NULL); } { InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[1]; InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x45\x6E\x67\x69\x6E\x65\x2E\x43\x6F\x72\x65\x4D\x6F\x64\x75\x6C\x65"), NULL); } { InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[2]; InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x45\x6E\x67\x69\x6E\x65\x2E\x50\x72\x6F\x66\x69\x6C\x65\x72\x4D\x6F\x64\x75\x6C\x65"), NULL); } { InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[3]; InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x2E\x49\x6E\x74\x65\x72\x6E\x61\x6C\x41\x50\x49\x45\x6E\x67\x69\x6E\x65\x42\x72\x69\x64\x67\x65\x2E\x30\x32\x34"), NULL); } { InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[4]; InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x2E\x53\x75\x62\x73\x79\x73\x74\x65\x6D\x2E\x52\x65\x67\x69\x73\x74\x72\x61\x74\x69\x6F\x6E"), NULL); } { InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[5]; InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x2E\x49\x6E\x74\x65\x72\x6E\x61\x6C\x41\x50\x49\x45\x6E\x67\x69\x6E\x65\x42\x72\x69\x64\x67\x65\x44\x65\x76\x2E\x30\x30\x35"), NULL); } { InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[6]; InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x2E\x49\x6E\x74\x65\x72\x6E\x61\x6C\x41\x50\x49\x45\x6E\x67\x69\x6E\x65\x42\x72\x69\x64\x67\x65\x44\x65\x76\x2E\x30\x30\x34"), NULL); } { InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[7]; InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x2E\x49\x6E\x74\x65\x72\x6E\x61\x6C\x41\x50\x49\x45\x6E\x67\x69\x6E\x65\x42\x72\x69\x64\x67\x65\x44\x65\x76\x2E\x30\x30\x33"), NULL); } { InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[8]; InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x2E\x49\x6E\x74\x65\x72\x6E\x61\x6C\x41\x50\x49\x45\x6E\x67\x69\x6E\x65\x42\x72\x69\x64\x67\x65\x44\x65\x76\x2E\x30\x30\x32"), NULL); } { InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[9]; InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x2E\x49\x6E\x74\x65\x72\x6E\x61\x6C\x41\x50\x49\x45\x6E\x67\x69\x6E\x65\x42\x72\x69\x64\x67\x65\x44\x65\x76\x2E\x30\x30\x31"), NULL); } { InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[10]; InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x2E\x49\x6E\x74\x65\x72\x6E\x61\x6C\x41\x50\x49\x45\x6E\x67\x69\x6E\x65\x42\x72\x69\x64\x67\x65\x2E\x30\x32\x33"), NULL); } { InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[11]; InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x45\x6E\x67\x69\x6E\x65\x2E\x53\x68\x61\x72\x65\x64\x49\x6E\x74\x65\x72\x6E\x61\x6C\x73\x4D\x6F\x64\x75\x6C\x65"), NULL); } { InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[12]; InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x2E\x49\x6E\x74\x65\x72\x6E\x61\x6C\x41\x50\x49\x45\x6E\x67\x69\x6E\x65\x42\x72\x69\x64\x67\x65\x2E\x30\x32\x32"), NULL); } { InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[13]; InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x45\x6E\x67\x69\x6E\x65\x2E\x50\x68\x79\x73\x69\x63\x73\x4D\x6F\x64\x75\x6C\x65"), NULL); } { InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[14]; InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x45\x6E\x67\x69\x6E\x65\x2E\x50\x61\x72\x74\x69\x63\x6C\x65\x53\x79\x73\x74\x65\x6D\x4D\x6F\x64\x75\x6C\x65"), NULL); } { InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[15]; InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x45\x6E\x67\x69\x6E\x65\x2E\x4C\x6F\x63\x61\x6C\x69\x7A\x61\x74\x69\x6F\x6E\x4D\x6F\x64\x75\x6C\x65"), NULL); } { InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[16]; InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x45\x6E\x67\x69\x6E\x65\x2E\x4A\x53\x4F\x4E\x53\x65\x72\x69\x61\x6C\x69\x7A\x65\x4D\x6F\x64\x75\x6C\x65"), NULL); } { InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[17]; InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x45\x6E\x67\x69\x6E\x65\x2E\x49\x6E\x70\x75\x74\x4C\x65\x67\x61\x63\x79\x4D\x6F\x64\x75\x6C\x65"), NULL); } { InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[18]; InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x45\x6E\x67\x69\x6E\x65\x2E\x49\x6D\x61\x67\x65\x43\x6F\x6E\x76\x65\x72\x73\x69\x6F\x6E\x4D\x6F\x64\x75\x6C\x65"), NULL); } { InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[19]; InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x45\x6E\x67\x69\x6E\x65\x2E\x41\x49\x4D\x6F\x64\x75\x6C\x65"), NULL); } { InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[20]; InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x45\x6E\x67\x69\x6E\x65\x2E\x48\x6F\x74\x52\x65\x6C\x6F\x61\x64\x4D\x6F\x64\x75\x6C\x65"), NULL); } { InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[21]; InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x45\x6E\x67\x69\x6E\x65\x2E\x47\x49\x4D\x6F\x64\x75\x6C\x65"), NULL); } { InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[22]; InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x45\x6E\x67\x69\x6E\x65\x2E\x44\x69\x72\x65\x63\x74\x6F\x72\x4D\x6F\x64\x75\x6C\x65"), NULL); } { InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[23]; InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x45\x6E\x67\x69\x6E\x65\x2E\x44\x53\x50\x47\x72\x61\x70\x68\x4D\x6F\x64\x75\x6C\x65"), NULL); } { InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[24]; InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x45\x6E\x67\x69\x6E\x65\x2E\x41\x75\x64\x69\x6F\x4D\x6F\x64\x75\x6C\x65"), NULL); } { InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[25]; InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x45\x6E\x67\x69\x6E\x65\x2E\x41\x6E\x69\x6D\x61\x74\x69\x6F\x6E\x4D\x6F\x64\x75\x6C\x65"), NULL); } { InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[26]; InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x45\x6E\x67\x69\x6E\x65\x2E\x41\x6E\x64\x72\x6F\x69\x64\x4A\x4E\x49\x4D\x6F\x64\x75\x6C\x65"), NULL); } { InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[27]; InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x45\x6E\x67\x69\x6E\x65\x2E\x47\x72\x69\x64\x4D\x6F\x64\x75\x6C\x65"), NULL); } { UnityEngineModuleAssembly_t33CB058FDDDC458E384578147D6027BB1EC86CFF * tmp = (UnityEngineModuleAssembly_t33CB058FDDDC458E384578147D6027BB1EC86CFF *)cache->attributes[28]; UnityEngineModuleAssembly__ctor_m76C129AC6AA438BE601F5279EE9EB599BEF90AF9(tmp, NULL); } { InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[29]; InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x45\x6E\x67\x69\x6E\x65\x2E\x58\x52\x4D\x6F\x64\x75\x6C\x65"), NULL); } { InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[30]; InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x2E\x49\x6E\x74\x65\x72\x6E\x61\x6C\x41\x50\x49\x45\x6E\x67\x69\x6E\x65\x42\x72\x69\x64\x67\x65\x2E\x30\x32\x31"), NULL); } { CompilationRelaxationsAttribute_t661FDDC06629BDA607A42BD660944F039FE03AFF * tmp = (CompilationRelaxationsAttribute_t661FDDC06629BDA607A42BD660944F039FE03AFF *)cache->attributes[31]; CompilationRelaxationsAttribute__ctor_mAC3079EBC4EEAB474EED8208EF95DB39C922333B(tmp, 8LL, NULL); } { RuntimeCompatibilityAttribute_tFF99AB2963098F9CBCD47A20D9FD3D51C17C1C80 * tmp = (RuntimeCompatibilityAttribute_tFF99AB2963098F9CBCD47A20D9FD3D51C17C1C80 *)cache->attributes[32]; RuntimeCompatibilityAttribute__ctor_m551DDF1438CE97A984571949723F30F44CF7317C(tmp, NULL); RuntimeCompatibilityAttribute_set_WrapNonExceptionThrows_m8562196F90F3EBCEC23B5708EE0332842883C490_inline(tmp, true, NULL); } { DebuggableAttribute_tA8054EBD0FC7511695D494B690B5771658E3191B * tmp = (DebuggableAttribute_tA8054EBD0FC7511695D494B690B5771658E3191B *)cache->attributes[33]; DebuggableAttribute__ctor_m7FF445C8435494A4847123A668D889E692E55550(tmp, 263LL, NULL); } { InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[34]; InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x45\x6E\x67\x69\x6E\x65\x2E\x55\x6E\x69\x74\x79\x54\x65\x73\x74\x50\x72\x6F\x74\x6F\x63\x6F\x6C\x4D\x6F\x64\x75\x6C\x65"), NULL); } { InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[35]; InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x45\x6E\x67\x69\x6E\x65\x2E\x54\x65\x72\x72\x61\x69\x6E\x50\x68\x79\x73\x69\x63\x73\x4D\x6F\x64\x75\x6C\x65"), NULL); } { InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[36]; InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x45\x6E\x67\x69\x6E\x65\x2E\x54\x4C\x53\x4D\x6F\x64\x75\x6C\x65"), NULL); } { InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[37]; InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x45\x6E\x67\x69\x6E\x65\x2E\x53\x75\x62\x73\x79\x73\x74\x65\x6D\x73\x4D\x6F\x64\x75\x6C\x65"), NULL); } { InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[38]; InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x45\x6E\x67\x69\x6E\x65\x2E\x53\x75\x62\x73\x74\x61\x6E\x63\x65\x4D\x6F\x64\x75\x6C\x65"), NULL); } { InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[39]; InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x45\x6E\x67\x69\x6E\x65\x2E\x53\x74\x72\x65\x61\x6D\x69\x6E\x67\x4D\x6F\x64\x75\x6C\x65"), NULL); } { InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[40]; InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x45\x6E\x67\x69\x6E\x65\x2E\x53\x70\x72\x69\x74\x65\x53\x68\x61\x70\x65\x4D\x6F\x64\x75\x6C\x65"), NULL); } { InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[41]; InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x45\x6E\x67\x69\x6E\x65\x2E\x53\x70\x72\x69\x74\x65\x4D\x61\x73\x6B\x4D\x6F\x64\x75\x6C\x65"), NULL); } { InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[42]; InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x45\x6E\x67\x69\x6E\x65\x2E\x54\x65\x72\x72\x61\x69\x6E\x4D\x6F\x64\x75\x6C\x65"), NULL); } { InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[43]; InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x45\x6E\x67\x69\x6E\x65\x2E\x53\x63\x72\x65\x65\x6E\x43\x61\x70\x74\x75\x72\x65\x4D\x6F\x64\x75\x6C\x65"), NULL); } { InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[44]; InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x45\x6E\x67\x69\x6E\x65\x2E\x55\x6E\x69\x74\x79\x57\x65\x62\x52\x65\x71\x75\x65\x73\x74\x4D\x6F\x64\x75\x6C\x65"), NULL); } { InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[45]; InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x45\x6E\x67\x69\x6E\x65\x2E\x55\x6E\x69\x74\x79\x57\x65\x62\x52\x65\x71\x75\x65\x73\x74\x54\x65\x78\x74\x75\x72\x65\x4D\x6F\x64\x75\x6C\x65"), NULL); } { InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[46]; InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x45\x6E\x67\x69\x6E\x65\x2E\x55\x6E\x69\x74\x79\x57\x65\x62\x52\x65\x71\x75\x65\x73\x74\x41\x73\x73\x65\x74\x42\x75\x6E\x64\x6C\x65\x4D\x6F\x64\x75\x6C\x65"), NULL); } { InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[47]; InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x45\x6E\x67\x69\x6E\x65\x2E\x55\x6E\x69\x74\x79\x41\x6E\x61\x6C\x79\x74\x69\x63\x73\x4D\x6F\x64\x75\x6C\x65"), NULL); } { InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[48]; InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x45\x6E\x67\x69\x6E\x65\x2E\x55\x4E\x45\x54\x4D\x6F\x64\x75\x6C\x65"), NULL); } { InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[49]; InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x45\x6E\x67\x69\x6E\x65\x2E\x55\x49\x45\x6C\x65\x6D\x65\x6E\x74\x73\x4E\x61\x74\x69\x76\x65\x4D\x6F\x64\x75\x6C\x65"), NULL); } { InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[50]; InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x45\x6E\x67\x69\x6E\x65\x2E\x54\x65\x78\x74\x43\x6F\x72\x65\x4D\x6F\x64\x75\x6C\x65"), NULL); } { InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[51]; InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x45\x6E\x67\x69\x6E\x65"), NULL); } { InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[52]; InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x45\x6E\x67\x69\x6E\x65\x2E\x50\x68\x79\x73\x69\x63\x73\x32\x44\x4D\x6F\x64\x75\x6C\x65"), NULL); } { InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[53]; InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x45\x6E\x67\x69\x6E\x65\x2E\x52\x75\x6E\x74\x69\x6D\x65\x49\x6E\x69\x74\x69\x61\x6C\x69\x7A\x65\x4F\x6E\x4C\x6F\x61\x64\x4D\x61\x6E\x61\x67\x65\x72\x49\x6E\x69\x74\x69\x61\x6C\x69\x7A\x65\x72\x4D\x6F\x64\x75\x6C\x65"), NULL); } { InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[54]; InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x45\x6E\x67\x69\x6E\x65\x2E\x55\x6E\x69\x74\x79\x57\x65\x62\x52\x65\x71\x75\x65\x73\x74\x57\x57\x57\x4D\x6F\x64\x75\x6C\x65"), NULL); } { InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[55]; InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x45\x6E\x67\x69\x6E\x65\x2E\x47\x61\x6D\x65\x43\x65\x6E\x74\x65\x72\x4D\x6F\x64\x75\x6C\x65"), NULL); } { InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[56]; InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x45\x6E\x67\x69\x6E\x65\x2E\x56\x46\x58\x4D\x6F\x64\x75\x6C\x65"), NULL); } { InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[57]; InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x45\x6E\x67\x69\x6E\x65\x2E\x43\x72\x61\x73\x68\x52\x65\x70\x6F\x72\x74\x69\x6E\x67\x4D\x6F\x64\x75\x6C\x65"), NULL); } { InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[58]; InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x45\x6E\x67\x69\x6E\x65\x2E\x56\x65\x68\x69\x63\x6C\x65\x73\x4D\x6F\x64\x75\x6C\x65"), NULL); } { InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[59]; InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x45\x6E\x67\x69\x6E\x65\x2E\x57\x69\x6E\x64\x4D\x6F\x64\x75\x6C\x65"), NULL); } { InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[60]; InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x45\x6E\x67\x69\x6E\x65\x2E\x41\x73\x73\x65\x74\x42\x75\x6E\x64\x6C\x65\x4D\x6F\x64\x75\x6C\x65"), NULL); } { InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[61]; InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x45\x6E\x67\x69\x6E\x65\x2E\x43\x6C\x6F\x74\x68\x4D\x6F\x64\x75\x6C\x65"), NULL); } { InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[62]; InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x45\x6E\x67\x69\x6E\x65\x2E\x49\x4D\x47\x55\x49\x4D\x6F\x64\x75\x6C\x65"), NULL); } { InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[63]; InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x45\x6E\x67\x69\x6E\x65\x2E\x55\x6E\x69\x74\x79\x57\x65\x62\x52\x65\x71\x75\x65\x73\x74\x41\x75\x64\x69\x6F\x4D\x6F\x64\x75\x6C\x65"), NULL); } { InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[64]; InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x45\x6E\x67\x69\x6E\x65\x2E\x49\x6E\x70\x75\x74\x4D\x6F\x64\x75\x6C\x65"), NULL); } { InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[65]; InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x45\x6E\x67\x69\x6E\x65\x2E\x56\x69\x64\x65\x6F\x4D\x6F\x64\x75\x6C\x65"), NULL); } { InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[66]; InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x2E\x43\x6F\x72\x65"), NULL); } { InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[67]; InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x2E\x43\x6F\x6C\x6C\x65\x63\x74\x69\x6F\x6E\x73"), NULL); } { InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[68]; InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x2E\x45\x6E\x74\x69\x74\x69\x65\x73"), NULL); } { InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[69]; InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x45\x6E\x67\x69\x6E\x65\x2E\x43\x6C\x6F\x75\x64\x2E\x53\x65\x72\x76\x69\x63\x65"), NULL); } { InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[70]; InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x45\x6E\x67\x69\x6E\x65\x2E\x43\x6C\x6F\x75\x64"), NULL); } { InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[71]; InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x45\x6E\x67\x69\x6E\x65\x2E\x4E\x65\x74\x77\x6F\x72\x6B\x69\x6E\x67"), NULL); } { InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[72]; InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x45\x6E\x67\x69\x6E\x65\x2E\x50\x53\x35\x56\x52\x4D\x6F\x64\x75\x6C\x65"), NULL); } { InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[73]; InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x45\x6E\x67\x69\x6E\x65\x2E\x53\x70\x61\x74\x69\x61\x6C\x54\x72\x61\x63\x6B\x69\x6E\x67"), NULL); } { InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[74]; InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x45\x6E\x67\x69\x6E\x65\x2E\x50\x53\x35\x4D\x6F\x64\x75\x6C\x65"), NULL); } { InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[75]; InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x45\x6E\x67\x69\x6E\x65\x2E\x50\x53\x34\x4D\x6F\x64\x75\x6C\x65"), NULL); } { InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[76]; InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x45\x6E\x67\x69\x6E\x65\x2E\x58\x62\x6F\x78\x4F\x6E\x65\x4D\x6F\x64\x75\x6C\x65"), NULL); } { InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[77]; InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x45\x6E\x67\x69\x6E\x65\x2E\x53\x77\x69\x74\x63\x68\x4D\x6F\x64\x75\x6C\x65"), NULL); } { InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[78]; InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x45\x6E\x67\x69\x6E\x65\x2E\x56\x52\x4D\x6F\x64\x75\x6C\x65"), NULL); } { InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[79]; InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x45\x6E\x67\x69\x6E\x65\x2E\x55\x49\x45\x6C\x65\x6D\x65\x6E\x74\x73\x4D\x6F\x64\x75\x6C\x65"), NULL); } { InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[80]; InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x45\x6E\x67\x69\x6E\x65\x2E\x50\x65\x72\x66\x6F\x72\x6D\x61\x6E\x63\x65\x52\x65\x70\x6F\x72\x74\x69\x6E\x67\x4D\x6F\x64\x75\x6C\x65"), NULL); } { InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[81]; InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x45\x6E\x67\x69\x6E\x65\x2E\x50\x53\x34\x56\x52\x4D\x6F\x64\x75\x6C\x65"), NULL); } { InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[82]; InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x45\x6E\x67\x69\x6E\x65\x2E\x50\x75\x72\x63\x68\x61\x73\x69\x6E\x67"), NULL); } { InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[83]; InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x2E\x41\x6E\x61\x6C\x79\x74\x69\x63\x73"), NULL); } { InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[84]; InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x45\x6E\x67\x69\x6E\x65\x2E\x41\x64\x76\x65\x72\x74\x69\x73\x65\x6D\x65\x6E\x74\x73"), NULL); } { InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[85]; InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x41\x73\x73\x65\x6D\x62\x6C\x79\x2D\x43\x53\x68\x61\x72\x70\x2D\x74\x65\x73\x74\x61\x62\x6C\x65"), NULL); } { InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[86]; InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x2E\x54\x69\x6D\x65\x6C\x69\x6E\x65"), NULL); } { InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[87]; InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x2E\x52\x75\x6E\x74\x69\x6D\x65\x54\x65\x73\x74\x73\x2E\x41\x6C\x6C\x49\x6E\x31\x52\x75\x6E\x6E\x65\x72"), NULL); } { InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[88]; InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x2E\x50\x65\x72\x66\x6F\x72\x6D\x61\x6E\x63\x65\x54\x65\x73\x74\x73\x2E\x52\x75\x6E\x74\x69\x6D\x65\x54\x65\x73\x74\x52\x75\x6E\x6E\x65\x72\x2E\x54\x65\x73\x74\x73"), NULL); } { InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[89]; InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x2E\x52\x75\x6E\x74\x69\x6D\x65\x54\x65\x73\x74\x73\x2E\x46\x72\x61\x6D\x65\x77\x6F\x72\x6B\x2E\x54\x65\x73\x74\x73"), NULL); } { InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[90]; InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x45\x6E\x67\x69\x6E\x65\x2E\x54\x65\x73\x74\x52\x75\x6E\x6E\x65\x72"), NULL); } { InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[91]; InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x2E\x52\x75\x6E\x74\x69\x6D\x65\x54\x65\x73\x74\x73"), NULL); } { InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[92]; InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x2E\x52\x75\x6E\x74\x69\x6D\x65\x54\x65\x73\x74\x73\x2E\x46\x72\x61\x6D\x65\x77\x6F\x72\x6B"), NULL); } { InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[93]; InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x2E\x49\x6E\x74\x65\x67\x72\x61\x74\x69\x6F\x6E\x54\x65\x73\x74\x73\x2E\x54\x69\x6D\x65\x6C\x69\x6E\x65"), NULL); } { InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[94]; InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x2E\x49\x6E\x74\x65\x67\x72\x61\x74\x69\x6F\x6E\x54\x65\x73\x74\x73\x2E\x55\x6E\x69\x74\x79\x41\x6E\x61\x6C\x79\x74\x69\x63\x73"), NULL); } { InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[95]; InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x2E\x49\x6E\x74\x65\x67\x72\x61\x74\x69\x6F\x6E\x54\x65\x73\x74\x73"), NULL); } { InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[96]; InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x2E\x44\x65\x70\x6C\x6F\x79\x6D\x65\x6E\x74\x54\x65\x73\x74\x73\x2E\x53\x65\x72\x76\x69\x63\x65\x73"), NULL); } { InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[97]; InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x2E\x42\x75\x72\x73\x74\x2E\x45\x64\x69\x74\x6F\x72"), NULL); } { InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[98]; InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x2E\x42\x75\x72\x73\x74"), NULL); } { InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[99]; InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x2E\x41\x75\x74\x6F\x6D\x61\x74\x69\x6F\x6E"), NULL); } { InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[100]; InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x45\x6E\x67\x69\x6E\x65\x2E\x41\x6E\x61\x6C\x79\x74\x69\x63\x73"), NULL); } { InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[101]; InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x41\x73\x73\x65\x6D\x62\x6C\x79\x2D\x43\x53\x68\x61\x72\x70\x2D\x66\x69\x72\x73\x74\x70\x61\x73\x73\x2D\x74\x65\x73\x74\x61\x62\x6C\x65"), NULL); } { InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[102]; InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x2E\x57\x69\x6E\x64\x6F\x77\x73\x4D\x52\x41\x75\x74\x6F\x6D\x61\x74\x69\x6F\x6E"), NULL); } { InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[103]; InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x2E\x75\x63\x67\x2E\x51\x6F\x53"), NULL); } { InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[104]; InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x2E\x4E\x65\x74\x77\x6F\x72\x6B\x69\x6E\x67\x2E\x54\x72\x61\x6E\x73\x70\x6F\x72\x74"), NULL); } { InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[105]; InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x2E\x55\x49\x45\x6C\x65\x6D\x65\x6E\x74\x73\x2E\x45\x64\x69\x74\x6F\x72\x54\x65\x73\x74\x73"), NULL); } { InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[106]; InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x2E\x49\x6E\x74\x65\x72\x6E\x61\x6C\x41\x50\x49\x45\x6E\x67\x69\x6E\x65\x42\x72\x69\x64\x67\x65\x2E\x30\x30\x31"), NULL); } { InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[107]; InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x2E\x55\x49\x45\x6C\x65\x6D\x65\x6E\x74\x73\x2E\x45\x64\x69\x74\x6F\x72"), NULL); } { InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[108]; InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x2E\x55\x49\x45\x6C\x65\x6D\x65\x6E\x74\x73"), NULL); } { InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[109]; InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x2E\x55\x49\x2E\x42\x75\x69\x6C\x64\x65\x72\x2E\x45\x64\x69\x74\x6F\x72\x54\x65\x73\x74\x73"), NULL); } { InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[110]; InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x45\x64\x69\x74\x6F\x72\x2E\x55\x49\x42\x75\x69\x6C\x64\x65\x72\x4D\x6F\x64\x75\x6C\x65"), NULL); } { InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[111]; InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x2E\x55\x49\x2E\x42\x75\x69\x6C\x64\x65\x72\x2E\x45\x64\x69\x74\x6F\x72"), NULL); } { InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[112]; InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x2E\x32\x44\x2E\x53\x70\x72\x69\x74\x65\x2E\x45\x64\x69\x74\x6F\x72\x54\x65\x73\x74\x73"), NULL); } { InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[113]; InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x2E\x32\x44\x2E\x53\x70\x72\x69\x74\x65\x2E\x45\x64\x69\x74\x6F\x72"), NULL); } { InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[114]; InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x45\x6E\x67\x69\x6E\x65\x2E\x55\x49\x45\x6C\x65\x6D\x65\x6E\x74\x73\x47\x61\x6D\x65\x4F\x62\x6A\x65\x63\x74\x73\x4D\x6F\x64\x75\x6C\x65"), NULL); } { InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[115]; InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x45\x6E\x67\x69\x6E\x65\x2E\x41\x52\x4D\x6F\x64\x75\x6C\x65"), NULL); } { InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[116]; InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x2E\x49\x6E\x74\x65\x72\x6E\x61\x6C\x41\x50\x49\x45\x6E\x67\x69\x6E\x65\x42\x72\x69\x64\x67\x65\x2E\x30\x30\x32"), NULL); } { InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[117]; InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x2E\x49\x6E\x74\x65\x72\x6E\x61\x6C\x41\x50\x49\x45\x6E\x67\x69\x6E\x65\x42\x72\x69\x64\x67\x65\x2E\x30\x30\x34"), NULL); } { InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[118]; InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x2E\x49\x6E\x74\x65\x72\x6E\x61\x6C\x41\x50\x49\x45\x6E\x67\x69\x6E\x65\x42\x72\x69\x64\x67\x65\x2E\x30\x31\x38"), NULL); } { InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[119]; InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x2E\x49\x6E\x74\x65\x72\x6E\x61\x6C\x41\x50\x49\x45\x6E\x67\x69\x6E\x65\x42\x72\x69\x64\x67\x65\x2E\x30\x31\x37"), NULL); } { InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[120]; InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x47\x6F\x6F\x67\x6C\x65\x41\x52\x2E\x55\x6E\x69\x74\x79\x4E\x61\x74\x69\x76\x65"), NULL); } { InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[121]; InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x2E\x49\x6E\x74\x65\x72\x6E\x61\x6C\x41\x50\x49\x45\x6E\x67\x69\x6E\x65\x42\x72\x69\x64\x67\x65\x2E\x30\x31\x31"), NULL); } { InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[122]; InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x2E\x49\x6E\x74\x65\x72\x6E\x61\x6C\x41\x50\x49\x45\x6E\x67\x69\x6E\x65\x42\x72\x69\x64\x67\x65\x2E\x30\x30\x35"), NULL); } { InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[123]; InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x2E\x49\x6E\x74\x65\x72\x6E\x61\x6C\x41\x50\x49\x45\x6E\x67\x69\x6E\x65\x42\x72\x69\x64\x67\x65\x2E\x30\x30\x36"), NULL); } { InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[124]; InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x2E\x49\x6E\x74\x65\x72\x6E\x61\x6C\x41\x50\x49\x45\x6E\x67\x69\x6E\x65\x42\x72\x69\x64\x67\x65\x2E\x30\x30\x37"), NULL); } { InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[125]; InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x2E\x49\x6E\x74\x65\x72\x6E\x61\x6C\x41\x50\x49\x45\x6E\x67\x69\x6E\x65\x42\x72\x69\x64\x67\x65\x2E\x30\x30\x38"), NULL); } { InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[126]; InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x45\x6E\x67\x69\x6E\x65\x2E\x54\x65\x78\x74\x52\x65\x6E\x64\x65\x72\x69\x6E\x67\x4D\x6F\x64\x75\x6C\x65"), NULL); } { InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[127]; InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x2E\x49\x6E\x74\x65\x72\x6E\x61\x6C\x41\x50\x49\x45\x6E\x67\x69\x6E\x65\x42\x72\x69\x64\x67\x65\x2E\x30\x30\x39"), NULL); } { InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[128]; InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x2E\x49\x6E\x74\x65\x72\x6E\x61\x6C\x41\x50\x49\x45\x6E\x67\x69\x6E\x65\x42\x72\x69\x64\x67\x65\x2E\x30\x31\x32"), NULL); } { InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[129]; InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x2E\x49\x6E\x74\x65\x72\x6E\x61\x6C\x41\x50\x49\x45\x6E\x67\x69\x6E\x65\x42\x72\x69\x64\x67\x65\x2E\x30\x30\x33"), NULL); } { InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[130]; InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x2E\x49\x6E\x74\x65\x72\x6E\x61\x6C\x41\x50\x49\x45\x6E\x67\x69\x6E\x65\x42\x72\x69\x64\x67\x65\x2E\x30\x31\x33"), NULL); } { InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[131]; InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x2E\x49\x6E\x74\x65\x72\x6E\x61\x6C\x41\x50\x49\x45\x6E\x67\x69\x6E\x65\x42\x72\x69\x64\x67\x65\x2E\x30\x31\x34"), NULL); } { InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[132]; InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x2E\x49\x6E\x74\x65\x72\x6E\x61\x6C\x41\x50\x49\x45\x6E\x67\x69\x6E\x65\x42\x72\x69\x64\x67\x65\x2E\x30\x31\x35"), NULL); } { InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[133]; InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x2E\x49\x6E\x74\x65\x72\x6E\x61\x6C\x41\x50\x49\x45\x6E\x67\x69\x6E\x65\x42\x72\x69\x64\x67\x65\x2E\x30\x31\x36"), NULL); } { InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[134]; InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x2E\x49\x6E\x74\x65\x72\x6E\x61\x6C\x41\x50\x49\x45\x6E\x67\x69\x6E\x65\x42\x72\x69\x64\x67\x65\x2E\x30\x31\x30"), NULL); } { InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[135]; InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x45\x6E\x67\x69\x6E\x65\x2E\x54\x69\x6C\x65\x6D\x61\x70\x4D\x6F\x64\x75\x6C\x65"), NULL); } { InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[136]; InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x45\x6E\x67\x69\x6E\x65\x2E\x55\x49\x4D\x6F\x64\x75\x6C\x65"), NULL); } { InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[137]; InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x45\x6E\x67\x69\x6E\x65\x2E\x55\x6D\x62\x72\x61\x4D\x6F\x64\x75\x6C\x65"), NULL); } { InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[138]; InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x2E\x49\x6E\x74\x65\x67\x72\x61\x74\x69\x6F\x6E\x54\x65\x73\x74\x73\x2E\x46\x72\x61\x6D\x65\x77\x6F\x72\x6B"), NULL); } { InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[139]; InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x2E\x49\x6E\x74\x65\x72\x6E\x61\x6C\x41\x50\x49\x45\x6E\x67\x69\x6E\x65\x42\x72\x69\x64\x67\x65\x2E\x30\x32\x30"), NULL); } { InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[140]; InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x2E\x49\x6E\x74\x65\x72\x6E\x61\x6C\x41\x50\x49\x45\x6E\x67\x69\x6E\x65\x42\x72\x69\x64\x67\x65\x2E\x30\x31\x39"), NULL); } { InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[141]; InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x45\x6E\x67\x69\x6E\x65\x2E\x55\x6E\x69\x74\x79\x43\x75\x72\x6C\x4D\x6F\x64\x75\x6C\x65"), NULL); } { InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C * tmp = (InternalsVisibleToAttribute_t1D9772A02892BAC440952F880A43C257E6C3E68C *)cache->attributes[142]; InternalsVisibleToAttribute__ctor_m420071A75DCEEC72356490C64B4B0B9270DA32B9(tmp, il2cpp_codegen_string_new_wrapper("\x55\x6E\x69\x74\x79\x45\x6E\x67\x69\x6E\x65\x2E\x55\x6E\x69\x74\x79\x43\x6F\x6E\x6E\x65\x63\x74\x4D\x6F\x64\x75\x6C\x65"), NULL); } } static void AssetFileNameExtensionAttribute_tED45B2D2362BB4D5CDCA25F7C1E890AADAD6FA2D_CustomAttributesCacheGenerator(CustomAttributesCache* cache) { { VisibleToOtherModulesAttribute_t7C36871C9AD251C033486E04A2FFCB7CFB830914 * tmp = (VisibleToOtherModulesAttribute_t7C36871C9AD251C033486E04A2FFCB7CFB830914 *)cache->attributes[0]; VisibleToOtherModulesAttribute__ctor_mA193FBBFEBF3CF09151A66AF466D6DA6C35CBD6F(tmp, NULL); } { AttributeUsageAttribute_tBB0BAAA82036E6FCDD80A688BBD039F6FFD8EA1C * tmp = (AttributeUsageAttribute_tBB0BAAA82036E6FCDD80A688BBD039F6FFD8EA1C *)cache->attributes[1]; AttributeUsageAttribute__ctor_m5114E18826A49A025D48DC71904C430BD590656D(tmp, 4LL, NULL); AttributeUsageAttribute_set_Inherited_m56105980C36CB71AECD398C6077739BDFD2085E0_inline(tmp, false, NULL); } } static void AssetFileNameExtensionAttribute_tED45B2D2362BB4D5CDCA25F7C1E890AADAD6FA2D_CustomAttributesCacheGenerator_U3CpreferredExtensionU3Ek__BackingField(CustomAttributesCache* cache) { { DebuggerBrowsableAttribute_t2FA4793AD1982F5150E07D26822ED5953CD90F53 * tmp = (DebuggerBrowsableAttribute_t2FA4793AD1982F5150E07D26822ED5953CD90F53 *)cache->attributes[0]; DebuggerBrowsableAttribute__ctor_mAA8BCC1E418754685F320B14A08AC226E76346E5(tmp, 0LL, NULL); } { CompilerGeneratedAttribute_t39106AB982658D7A94C27DEF3C48DB2F5F7CD75C * tmp = (CompilerGeneratedAttribute_t39106AB982658D7A94C27DEF3C48DB2F5F7CD75C *)cache->attributes[1]; CompilerGeneratedAttribute__ctor_m9DC3E4E2DA76FE93948D44199213E2E924DCBE35(tmp, NULL); } } static void AssetFileNameExtensionAttribute_tED45B2D2362BB4D5CDCA25F7C1E890AADAD6FA2D_CustomAttributesCacheGenerator_U3CotherExtensionsU3Ek__BackingField(CustomAttributesCache* cache) { { DebuggerBrowsableAttribute_t2FA4793AD1982F5150E07D26822ED5953CD90F53 * tmp = (DebuggerBrowsableAttribute_t2FA4793AD1982F5150E07D26822ED5953CD90F53 *)cache->attributes[0]; DebuggerBrowsableAttribute__ctor_mAA8BCC1E418754685F320B14A08AC226E76346E5(tmp, 0LL, NULL); } { CompilerGeneratedAttribute_t39106AB982658D7A94C27DEF3C48DB2F5F7CD75C * tmp = (CompilerGeneratedAttribute_t39106AB982658D7A94C27DEF3C48DB2F5F7CD75C *)cache->attributes[1]; CompilerGeneratedAttribute__ctor_m9DC3E4E2DA76FE93948D44199213E2E924DCBE35(tmp, NULL); } } static void AssetFileNameExtensionAttribute_tED45B2D2362BB4D5CDCA25F7C1E890AADAD6FA2D_CustomAttributesCacheGenerator_AssetFileNameExtensionAttribute__ctor_mA62DCAB1C4F07C81D6883560C6773B68C9CE6DDE____otherExtensions1(CustomAttributesCache* cache) { { ParamArrayAttribute_t9DCEB4CDDB8EDDB1124171D4C51FA6069EEA5C5F * tmp = (ParamArrayAttribute_t9DCEB4CDDB8EDDB1124171D4C51FA6069EEA5C5F *)cache->attributes[0]; ParamArrayAttribute__ctor_mCC72AFF718185BA7B87FD8D9471F1274400C5719(tmp, NULL); } } static void ThreadAndSerializationSafeAttribute_t41719A461F31891B2536A2E4A1E983DD7E428E7B_CustomAttributesCacheGenerator(CustomAttributesCache* cache) { { AttributeUsageAttribute_tBB0BAAA82036E6FCDD80A688BBD039F6FFD8EA1C * tmp = (AttributeUsageAttribute_tBB0BAAA82036E6FCDD80A688BBD039F6FFD8EA1C *)cache->attributes[0]; AttributeUsageAttribute__ctor_m5114E18826A49A025D48DC71904C430BD590656D(tmp, 64LL, NULL); } { VisibleToOtherModulesAttribute_t7C36871C9AD251C033486E04A2FFCB7CFB830914 * tmp = (VisibleToOtherModulesAttribute_t7C36871C9AD251C033486E04A2FFCB7CFB830914 *)cache->attributes[1]; VisibleToOtherModulesAttribute__ctor_mA193FBBFEBF3CF09151A66AF466D6DA6C35CBD6F(tmp, NULL); } } static void WritableAttribute_t00CD7A683EA83064B3741A90A772DD0DE1AF5103_CustomAttributesCacheGenerator(CustomAttributesCache* cache) { { AttributeUsageAttribute_tBB0BAAA82036E6FCDD80A688BBD039F6FFD8EA1C * tmp = (AttributeUsageAttribute_tBB0BAAA82036E6FCDD80A688BBD039F6FFD8EA1C *)cache->attributes[0]; AttributeUsageAttribute__ctor_m5114E18826A49A025D48DC71904C430BD590656D(tmp, 2048LL, NULL); AttributeUsageAttribute_set_AllowMultiple_mF412CDAFFE16D056721EF81A1EC04ACE63612055_inline(tmp, false, NULL); } { VisibleToOtherModulesAttribute_t7C36871C9AD251C033486E04A2FFCB7CFB830914 * tmp = (VisibleToOtherModulesAttribute_t7C36871C9AD251C033486E04A2FFCB7CFB830914 *)cache->attributes[1]; VisibleToOtherModulesAttribute__ctor_mA193FBBFEBF3CF09151A66AF466D6DA6C35CBD6F(tmp, NULL); } } static void UnityEngineModuleAssembly_t33CB058FDDDC458E384578147D6027BB1EC86CFF_CustomAttributesCacheGenerator(CustomAttributesCache* cache) { { AttributeUsageAttribute_tBB0BAAA82036E6FCDD80A688BBD039F6FFD8EA1C * tmp = (AttributeUsageAttribute_tBB0BAAA82036E6FCDD80A688BBD039F6FFD8EA1C *)cache->attributes[0]; AttributeUsageAttribute__ctor_m5114E18826A49A025D48DC71904C430BD590656D(tmp, 1LL, NULL); } { VisibleToOtherModulesAttribute_t7C36871C9AD251C033486E04A2FFCB7CFB830914 * tmp = (VisibleToOtherModulesAttribute_t7C36871C9AD251C033486E04A2FFCB7CFB830914 *)cache->attributes[1]; VisibleToOtherModulesAttribute__ctor_mA193FBBFEBF3CF09151A66AF466D6DA6C35CBD6F(tmp, NULL); } } static void NativeClassAttribute_tBE8213A7A54307A9A771B70B38CB946BED926B0D_CustomAttributesCacheGenerator(CustomAttributesCache* cache) { { AttributeUsageAttribute_tBB0BAAA82036E6FCDD80A688BBD039F6FFD8EA1C * tmp = (AttributeUsageAttribute_tBB0BAAA82036E6FCDD80A688BBD039F6FFD8EA1C *)cache->attributes[0]; AttributeUsageAttribute__ctor_m5114E18826A49A025D48DC71904C430BD590656D(tmp, 12LL, NULL); AttributeUsageAttribute_set_Inherited_m56105980C36CB71AECD398C6077739BDFD2085E0_inline(tmp, false, NULL); } { VisibleToOtherModulesAttribute_t7C36871C9AD251C033486E04A2FFCB7CFB830914 * tmp = (VisibleToOtherModulesAttribute_t7C36871C9AD251C033486E04A2FFCB7CFB830914 *)cache->attributes[1]; VisibleToOtherModulesAttribute__ctor_mA193FBBFEBF3CF09151A66AF466D6DA6C35CBD6F(tmp, NULL); } } static void NativeClassAttribute_tBE8213A7A54307A9A771B70B38CB946BED926B0D_CustomAttributesCacheGenerator_U3CQualifiedNativeNameU3Ek__BackingField(CustomAttributesCache* cache) { { DebuggerBrowsableAttribute_t2FA4793AD1982F5150E07D26822ED5953CD90F53 * tmp = (DebuggerBrowsableAttribute_t2FA4793AD1982F5150E07D26822ED5953CD90F53 *)cache->attributes[0]; DebuggerBrowsableAttribute__ctor_mAA8BCC1E418754685F320B14A08AC226E76346E5(tmp, 0LL, NULL); } { CompilerGeneratedAttribute_t39106AB982658D7A94C27DEF3C48DB2F5F7CD75C * tmp = (CompilerGeneratedAttribute_t39106AB982658D7A94C27DEF3C48DB2F5F7CD75C *)cache->attributes[1]; CompilerGeneratedAttribute__ctor_m9DC3E4E2DA76FE93948D44199213E2E924DCBE35(tmp, NULL); } } static void NativeClassAttribute_tBE8213A7A54307A9A771B70B38CB946BED926B0D_CustomAttributesCacheGenerator_U3CDeclarationU3Ek__BackingField(CustomAttributesCache* cache) { { DebuggerBrowsableAttribute_t2FA4793AD1982F5150E07D26822ED5953CD90F53 * tmp = (DebuggerBrowsableAttribute_t2FA4793AD1982F5150E07D26822ED5953CD90F53 *)cache->attributes[0]; DebuggerBrowsableAttribute__ctor_mAA8BCC1E418754685F320B14A08AC226E76346E5(tmp, 0LL, NULL); } { CompilerGeneratedAttribute_t39106AB982658D7A94C27DEF3C48DB2F5F7CD75C * tmp = (CompilerGeneratedAttribute_t39106AB982658D7A94C27DEF3C48DB2F5F7CD75C *)cache->attributes[1]; CompilerGeneratedAttribute__ctor_m9DC3E4E2DA76FE93948D44199213E2E924DCBE35(tmp, NULL); } } static void NativeClassAttribute_tBE8213A7A54307A9A771B70B38CB946BED926B0D_CustomAttributesCacheGenerator_NativeClassAttribute_set_QualifiedNativeName_mFC347A2EBD44977DFEA72A9B37C0ADECF1150262(CustomAttributesCache* cache) { { CompilerGeneratedAttribute_t39106AB982658D7A94C27DEF3C48DB2F5F7CD75C * tmp = (CompilerGeneratedAttribute_t39106AB982658D7A94C27DEF3C48DB2F5F7CD75C *)cache->attributes[0]; CompilerGeneratedAttribute__ctor_m9DC3E4E2DA76FE93948D44199213E2E924DCBE35(tmp, NULL); } } static void NativeClassAttribute_tBE8213A7A54307A9A771B70B38CB946BED926B0D_CustomAttributesCacheGenerator_NativeClassAttribute_set_Declaration_mF6FF1EB7079637160DA617FC4318EAD490409A3A(CustomAttributesCache* cache) { { CompilerGeneratedAttribute_t39106AB982658D7A94C27DEF3C48DB2F5F7CD75C * tmp = (CompilerGeneratedAttribute_t39106AB982658D7A94C27DEF3C48DB2F5F7CD75C *)cache->attributes[0]; CompilerGeneratedAttribute__ctor_m9DC3E4E2DA76FE93948D44199213E2E924DCBE35(tmp, NULL); } } static void UnityString_t1F0FC4EA4EF5A9AAB2BF779CD416EB85F9F86609_CustomAttributesCacheGenerator(CustomAttributesCache* cache) { { VisibleToOtherModulesAttribute_t7C36871C9AD251C033486E04A2FFCB7CFB830914 * tmp = (VisibleToOtherModulesAttribute_t7C36871C9AD251C033486E04A2FFCB7CFB830914 *)cache->attributes[0]; VisibleToOtherModulesAttribute__ctor_mA193FBBFEBF3CF09151A66AF466D6DA6C35CBD6F(tmp, NULL); } } static void UnityString_t1F0FC4EA4EF5A9AAB2BF779CD416EB85F9F86609_CustomAttributesCacheGenerator_UnityString_Format_m7A07C068ED408DD06F634070770FB55F13AA4EC9____args1(CustomAttributesCache* cache) { { ParamArrayAttribute_t9DCEB4CDDB8EDDB1124171D4C51FA6069EEA5C5F * tmp = (ParamArrayAttribute_t9DCEB4CDDB8EDDB1124171D4C51FA6069EEA5C5F *)cache->attributes[0]; ParamArrayAttribute__ctor_mCC72AFF718185BA7B87FD8D9471F1274400C5719(tmp, NULL); } } static void VisibleToOtherModulesAttribute_t7C36871C9AD251C033486E04A2FFCB7CFB830914_CustomAttributesCacheGenerator(CustomAttributesCache* cache) { { VisibleToOtherModulesAttribute_t7C36871C9AD251C033486E04A2FFCB7CFB830914 * tmp = (VisibleToOtherModulesAttribute_t7C36871C9AD251C033486E04A2FFCB7CFB830914 *)cache->attributes[0]; VisibleToOtherModulesAttribute__ctor_mA193FBBFEBF3CF09151A66AF466D6DA6C35CBD6F(tmp, NULL); } { AttributeUsageAttribute_tBB0BAAA82036E6FCDD80A688BBD039F6FFD8EA1C * tmp = (AttributeUsageAttribute_tBB0BAAA82036E6FCDD80A688BBD039F6FFD8EA1C *)cache->attributes[1]; AttributeUsageAttribute__ctor_m5114E18826A49A025D48DC71904C430BD590656D(tmp, 5628LL, NULL); AttributeUsageAttribute_set_Inherited_m56105980C36CB71AECD398C6077739BDFD2085E0_inline(tmp, false, NULL); } } static void VisibleToOtherModulesAttribute_t7C36871C9AD251C033486E04A2FFCB7CFB830914_CustomAttributesCacheGenerator_VisibleToOtherModulesAttribute__ctor_m84C0721B304CBF2411FF63DF4922F2EAADBDA85E____modules0(CustomAttributesCache* cache) { { ParamArrayAttribute_t9DCEB4CDDB8EDDB1124171D4C51FA6069EEA5C5F * tmp = (ParamArrayAttribute_t9DCEB4CDDB8EDDB1124171D4C51FA6069EEA5C5F *)cache->attributes[0]; ParamArrayAttribute__ctor_mCC72AFF718185BA7B87FD8D9471F1274400C5719(tmp, NULL); } } static void NativeConditionalAttribute_t659349956F06958D4D05443BD06FF5CDC767C88B_CustomAttributesCacheGenerator(CustomAttributesCache* cache) { { VisibleToOtherModulesAttribute_t7C36871C9AD251C033486E04A2FFCB7CFB830914 * tmp = (VisibleToOtherModulesAttribute_t7C36871C9AD251C033486E04A2FFCB7CFB830914 *)cache->attributes[0]; VisibleToOtherModulesAttribute__ctor_mA193FBBFEBF3CF09151A66AF466D6DA6C35CBD6F(tmp, NULL); } { AttributeUsageAttribute_tBB0BAAA82036E6FCDD80A688BBD039F6FFD8EA1C * tmp = (AttributeUsageAttribute_tBB0BAAA82036E6FCDD80A688BBD039F6FFD8EA1C *)cache->attributes[1]; AttributeUsageAttribute__ctor_m5114E18826A49A025D48DC71904C430BD590656D(tmp, 204LL, NULL); } } static void NativeConditionalAttribute_t659349956F06958D4D05443BD06FF5CDC767C88B_CustomAttributesCacheGenerator_U3CConditionU3Ek__BackingField(CustomAttributesCache* cache) { { DebuggerBrowsableAttribute_t2FA4793AD1982F5150E07D26822ED5953CD90F53 * tmp = (DebuggerBrowsableAttribute_t2FA4793AD1982F5150E07D26822ED5953CD90F53 *)cache->attributes[0]; DebuggerBrowsableAttribute__ctor_mAA8BCC1E418754685F320B14A08AC226E76346E5(tmp, 0LL, NULL); } { CompilerGeneratedAttribute_t39106AB982658D7A94C27DEF3C48DB2F5F7CD75C * tmp = (CompilerGeneratedAttribute_t39106AB982658D7A94C27DEF3C48DB2F5F7CD75C *)cache->attributes[1]; CompilerGeneratedAttribute__ctor_m9DC3E4E2DA76FE93948D44199213E2E924DCBE35(tmp, NULL); } } static void NativeConditionalAttribute_t659349956F06958D4D05443BD06FF5CDC767C88B_CustomAttributesCacheGenerator_U3CEnabledU3Ek__BackingField(CustomAttributesCache* cache) { { DebuggerBrowsableAttribute_t2FA4793AD1982F5150E07D26822ED5953CD90F53 * tmp = (DebuggerBrowsableAttribute_t2FA4793AD1982F5150E07D26822ED5953CD90F53 *)cache->attributes[0]; DebuggerBrowsableAttribute__ctor_mAA8BCC1E418754685F320B14A08AC226E76346E5(tmp, 0LL, NULL); } { CompilerGeneratedAttribute_t39106AB982658D7A94C27DEF3C48DB2F5F7CD75C * tmp = (CompilerGeneratedAttribute_t39106AB982658D7A94C27DEF3C48DB2F5F7CD75C *)cache->attributes[1]; CompilerGeneratedAttribute__ctor_m9DC3E4E2DA76FE93948D44199213E2E924DCBE35(tmp, NULL); } } static void NativeConditionalAttribute_t659349956F06958D4D05443BD06FF5CDC767C88B_CustomAttributesCacheGenerator_NativeConditionalAttribute_set_Condition_m380CB2CFC2874DA64DA0D2934FCD35923924E09C(CustomAttributesCache* cache) { { CompilerGeneratedAttribute_t39106AB982658D7A94C27DEF3C48DB2F5F7CD75C * tmp = (CompilerGeneratedAttribute_t39106AB982658D7A94C27DEF3C48DB2F5F7CD75C *)cache->attributes[0]; CompilerGeneratedAttribute__ctor_m9DC3E4E2DA76FE93948D44199213E2E924DCBE35(tmp, NULL); } } static void NativeConditionalAttribute_t659349956F06958D4D05443BD06FF5CDC767C88B_CustomAttributesCacheGenerator_NativeConditionalAttribute_set_Enabled_mC5611EF1236F6AC1925997C39993F249D9F86581(CustomAttributesCache* cache) { { CompilerGeneratedAttribute_t39106AB982658D7A94C27DEF3C48DB2F5F7CD75C * tmp = (CompilerGeneratedAttribute_t39106AB982658D7A94C27DEF3C48DB2F5F7CD75C *)cache->attributes[0]; CompilerGeneratedAttribute__ctor_m9DC3E4E2DA76FE93948D44199213E2E924DCBE35(tmp, NULL); } } static void NativeHeaderAttribute_t7F0E4B53790AA75CDB4C44E6D644267F8FE3066C_CustomAttributesCacheGenerator(CustomAttributesCache* cache) { { AttributeUsageAttribute_tBB0BAAA82036E6FCDD80A688BBD039F6FFD8EA1C * tmp = (AttributeUsageAttribute_tBB0BAAA82036E6FCDD80A688BBD039F6FFD8EA1C *)cache->attributes[0]; AttributeUsageAttribute__ctor_m5114E18826A49A025D48DC71904C430BD590656D(tmp, 10716LL, NULL); AttributeUsageAttribute_set_AllowMultiple_mF412CDAFFE16D056721EF81A1EC04ACE63612055_inline(tmp, true, NULL); } { VisibleToOtherModulesAttribute_t7C36871C9AD251C033486E04A2FFCB7CFB830914 * tmp = (VisibleToOtherModulesAttribute_t7C36871C9AD251C033486E04A2FFCB7CFB830914 *)cache->attributes[1]; VisibleToOtherModulesAttribute__ctor_mA193FBBFEBF3CF09151A66AF466D6DA6C35CBD6F(tmp, NULL); } } static void NativeHeaderAttribute_t7F0E4B53790AA75CDB4C44E6D644267F8FE3066C_CustomAttributesCacheGenerator_U3CHeaderU3Ek__BackingField(CustomAttributesCache* cache) { { DebuggerBrowsableAttribute_t2FA4793AD1982F5150E07D26822ED5953CD90F53 * tmp = (DebuggerBrowsableAttribute_t2FA4793AD1982F5150E07D26822ED5953CD90F53 *)cache->attributes[0]; DebuggerBrowsableAttribute__ctor_mAA8BCC1E418754685F320B14A08AC226E76346E5(tmp, 0LL, NULL); } { CompilerGeneratedAttribute_t39106AB982658D7A94C27DEF3C48DB2F5F7CD75C * tmp = (CompilerGeneratedAttribute_t39106AB982658D7A94C27DEF3C48DB2F5F7CD75C *)cache->attributes[1]; CompilerGeneratedAttribute__ctor_m9DC3E4E2DA76FE93948D44199213E2E924DCBE35(tmp, NULL); } } static void NativeHeaderAttribute_t7F0E4B53790AA75CDB4C44E6D644267F8FE3066C_CustomAttributesCacheGenerator_NativeHeaderAttribute_set_Header_mAA0DA2ACAF3BF508D3997CCA9CE41736C8293C7D(CustomAttributesCache* cache) { { CompilerGeneratedAttribute_t39106AB982658D7A94C27DEF3C48DB2F5F7CD75C * tmp = (CompilerGeneratedAttribute_t39106AB982658D7A94C27DEF3C48DB2F5F7CD75C *)cache->attributes[0]; CompilerGeneratedAttribute__ctor_m9DC3E4E2DA76FE93948D44199213E2E924DCBE35(tmp, NULL); } } static void NativeNameAttribute_tCEF3726869BD5ADC4600DDAC8DF0D4B5AAAF65F7_CustomAttributesCacheGenerator(CustomAttributesCache* cache) { { AttributeUsageAttribute_tBB0BAAA82036E6FCDD80A688BBD039F6FFD8EA1C * tmp = (AttributeUsageAttribute_tBB0BAAA82036E6FCDD80A688BBD039F6FFD8EA1C *)cache->attributes[0]; AttributeUsageAttribute__ctor_m5114E18826A49A025D48DC71904C430BD590656D(tmp, 448LL, NULL); } { VisibleToOtherModulesAttribute_t7C36871C9AD251C033486E04A2FFCB7CFB830914 * tmp = (VisibleToOtherModulesAttribute_t7C36871C9AD251C033486E04A2FFCB7CFB830914 *)cache->attributes[1]; VisibleToOtherModulesAttribute__ctor_mA193FBBFEBF3CF09151A66AF466D6DA6C35CBD6F(tmp, NULL); } } static void NativeNameAttribute_tCEF3726869BD5ADC4600DDAC8DF0D4B5AAAF65F7_CustomAttributesCacheGenerator_U3CNameU3Ek__BackingField(CustomAttributesCache* cache) { { DebuggerBrowsableAttribute_t2FA4793AD1982F5150E07D26822ED5953CD90F53 * tmp = (DebuggerBrowsableAttribute_t2FA4793AD1982F5150E07D26822ED5953CD90F53 *)cache->attributes[0]; DebuggerBrowsableAttribute__ctor_mAA8BCC1E418754685F320B14A08AC226E76346E5(tmp, 0LL, NULL); } { CompilerGeneratedAttribute_t39106AB982658D7A94C27DEF3C48DB2F5F7CD75C * tmp = (CompilerGeneratedAttribute_t39106AB982658D7A94C27DEF3C48DB2F5F7CD75C *)cache->attributes[1]; CompilerGeneratedAttribute__ctor_m9DC3E4E2DA76FE93948D44199213E2E924DCBE35(tmp, NULL); } } static void NativeNameAttribute_tCEF3726869BD5ADC4600DDAC8DF0D4B5AAAF65F7_CustomAttributesCacheGenerator_NativeNameAttribute_set_Name_m9CDE38A03BBC21458ADE2874B18A7B81146F7E07(CustomAttributesCache* cache) { { CompilerGeneratedAttribute_t39106AB982658D7A94C27DEF3C48DB2F5F7CD75C * tmp = (CompilerGeneratedAttribute_t39106AB982658D7A94C27DEF3C48DB2F5F7CD75C *)cache->attributes[0]; CompilerGeneratedAttribute__ctor_m9DC3E4E2DA76FE93948D44199213E2E924DCBE35(tmp, NULL); } } static void NativeWritableSelfAttribute_tFAFEEA81F742D3AFDA0A7A16F11C7E1E4DE4131A_CustomAttributesCacheGenerator(CustomAttributesCache* cache) { { AttributeUsageAttribute_tBB0BAAA82036E6FCDD80A688BBD039F6FFD8EA1C * tmp = (AttributeUsageAttribute_tBB0BAAA82036E6FCDD80A688BBD039F6FFD8EA1C *)cache->attributes[0]; AttributeUsageAttribute__ctor_m5114E18826A49A025D48DC71904C430BD590656D(tmp, 64LL, NULL); } { VisibleToOtherModulesAttribute_t7C36871C9AD251C033486E04A2FFCB7CFB830914 * tmp = (VisibleToOtherModulesAttribute_t7C36871C9AD251C033486E04A2FFCB7CFB830914 *)cache->attributes[1]; VisibleToOtherModulesAttribute__ctor_mA193FBBFEBF3CF09151A66AF466D6DA6C35CBD6F(tmp, NULL); } } static void NativeWritableSelfAttribute_tFAFEEA81F742D3AFDA0A7A16F11C7E1E4DE4131A_CustomAttributesCacheGenerator_U3CWritableSelfU3Ek__BackingField(CustomAttributesCache* cache) { { CompilerGeneratedAttribute_t39106AB982658D7A94C27DEF3C48DB2F5F7CD75C * tmp = (CompilerGeneratedAttribute_t39106AB982658D7A94C27DEF3C48DB2F5F7CD75C *)cache->attributes[0]; CompilerGeneratedAttribute__ctor_m9DC3E4E2DA76FE93948D44199213E2E924DCBE35(tmp, NULL); } { DebuggerBrowsableAttribute_t2FA4793AD1982F5150E07D26822ED5953CD90F53 * tmp = (DebuggerBrowsableAttribute_t2FA4793AD1982F5150E07D26822ED5953CD90F53 *)cache->attributes[1]; DebuggerBrowsableAttribute__ctor_mAA8BCC1E418754685F320B14A08AC226E76346E5(tmp, 0LL, NULL); } } static void NativeWritableSelfAttribute_tFAFEEA81F742D3AFDA0A7A16F11C7E1E4DE4131A_CustomAttributesCacheGenerator_NativeWritableSelfAttribute_set_WritableSelf_mB2E797FBF3F0F6E5EC5FD95C7ECE18B7913F933C(CustomAttributesCache* cache) { { CompilerGeneratedAttribute_t39106AB982658D7A94C27DEF3C48DB2F5F7CD75C * tmp = (CompilerGeneratedAttribute_t39106AB982658D7A94C27DEF3C48DB2F5F7CD75C *)cache->attributes[0]; CompilerGeneratedAttribute__ctor_m9DC3E4E2DA76FE93948D44199213E2E924DCBE35(tmp, NULL); } } static void NativeMethodAttribute_t57F61ACA17BEC1260A06658ACD971B0009CC1866_CustomAttributesCacheGenerator(CustomAttributesCache* cache) { { VisibleToOtherModulesAttribute_t7C36871C9AD251C033486E04A2FFCB7CFB830914 * tmp = (VisibleToOtherModulesAttribute_t7C36871C9AD251C033486E04A2FFCB7CFB830914 *)cache->attributes[0]; VisibleToOtherModulesAttribute__ctor_mA193FBBFEBF3CF09151A66AF466D6DA6C35CBD6F(tmp, NULL); } { AttributeUsageAttribute_tBB0BAAA82036E6FCDD80A688BBD039F6FFD8EA1C * tmp = (AttributeUsageAttribute_tBB0BAAA82036E6FCDD80A688BBD039F6FFD8EA1C *)cache->attributes[1]; AttributeUsageAttribute__ctor_m5114E18826A49A025D48DC71904C430BD590656D(tmp, 192LL, NULL); } } static void NativeMethodAttribute_t57F61ACA17BEC1260A06658ACD971B0009CC1866_CustomAttributesCacheGenerator_U3CNameU3Ek__BackingField(CustomAttributesCache* cache) { { CompilerGeneratedAttribute_t39106AB982658D7A94C27DEF3C48DB2F5F7CD75C * tmp = (CompilerGeneratedAttribute_t39106AB982658D7A94C27DEF3C48DB2F5F7CD75C *)cache->attributes[0]; CompilerGeneratedAttribute__ctor_m9DC3E4E2DA76FE93948D44199213E2E924DCBE35(tmp, NULL); } { DebuggerBrowsableAttribute_t2FA4793AD1982F5150E07D26822ED5953CD90F53 * tmp = (DebuggerBrowsableAttribute_t2FA4793AD1982F5150E07D26822ED5953CD90F53 *)cache->attributes[1]; DebuggerBrowsableAttribute__ctor_mAA8BCC1E418754685F320B14A08AC226E76346E5(tmp, 0LL, NULL); } } static void NativeMethodAttribute_t57F61ACA17BEC1260A06658ACD971B0009CC1866_CustomAttributesCacheGenerator_U3CIsThreadSafeU3Ek__BackingField(CustomAttributesCache* cache) { { DebuggerBrowsableAttribute_t2FA4793AD1982F5150E07D26822ED5953CD90F53 * tmp = (DebuggerBrowsableAttribute_t2FA4793AD1982F5150E07D26822ED5953CD90F53 *)cache->attributes[0]; DebuggerBrowsableAttribute__ctor_mAA8BCC1E418754685F320B14A08AC226E76346E5(tmp, 0LL, NULL); } { CompilerGeneratedAttribute_t39106AB982658D7A94C27DEF3C48DB2F5F7CD75C * tmp = (CompilerGeneratedAttribute_t39106AB982658D7A94C27DEF3C48DB2F5F7CD75C *)cache->attributes[1]; CompilerGeneratedAttribute__ctor_m9DC3E4E2DA76FE93948D44199213E2E924DCBE35(tmp, NULL); } } static void NativeMethodAttribute_t57F61ACA17BEC1260A06658ACD971B0009CC1866_CustomAttributesCacheGenerator_U3CIsFreeFunctionU3Ek__BackingField(CustomAttributesCache* cache) { { CompilerGeneratedAttribute_t39106AB982658D7A94C27DEF3C48DB2F5F7CD75C * tmp = (CompilerGeneratedAttribute_t39106AB982658D7A94C27DEF3C48DB2F5F7CD75C *)cache->attributes[0]; CompilerGeneratedAttribute__ctor_m9DC3E4E2DA76FE93948D44199213E2E924DCBE35(tmp, NULL); } { DebuggerBrowsableAttribute_t2FA4793AD1982F5150E07D26822ED5953CD90F53 * tmp = (DebuggerBrowsableAttribute_t2FA4793AD1982F5150E07D26822ED5953CD90F53 *)cache->attributes[1]; DebuggerBrowsableAttribute__ctor_mAA8BCC1E418754685F320B14A08AC226E76346E5(tmp, 0LL, NULL); } } static void NativeMethodAttribute_t57F61ACA17BEC1260A06658ACD971B0009CC1866_CustomAttributesCacheGenerator_U3CThrowsExceptionU3Ek__BackingField(CustomAttributesCache* cache) { { DebuggerBrowsableAttribute_t2FA4793AD1982F5150E07D26822ED5953CD90F53 * tmp = (DebuggerBrowsableAttribute_t2FA4793AD1982F5150E07D26822ED5953CD90F53 *)cache->attributes[0]; DebuggerBrowsableAttribute__ctor_mAA8BCC1E418754685F320B14A08AC226E76346E5(tmp, 0LL, NULL); } { CompilerGeneratedAttribute_t39106AB982658D7A94C27DEF3C48DB2F5F7CD75C * tmp = (CompilerGeneratedAttribute_t39106AB982658D7A94C27DEF3C48DB2F5F7CD75C *)cache->attributes[1]; CompilerGeneratedAttribute__ctor_m9DC3E4E2DA76FE93948D44199213E2E924DCBE35(tmp, NULL); } } static void NativeMethodAttribute_t57F61ACA17BEC1260A06658ACD971B0009CC1866_CustomAttributesCacheGenerator_U3CHasExplicitThisU3Ek__BackingField(CustomAttributesCache* cache) { { CompilerGeneratedAttribute_t39106AB982658D7A94C27DEF3C48DB2F5F7CD75C * tmp = (CompilerGeneratedAttribute_t39106AB982658D7A94C27DEF3C48DB2F5F7CD75C *)cache->attributes[0]; CompilerGeneratedAttribute__ctor_m9DC3E4E2DA76FE93948D44199213E2E924DCBE35(tmp, NULL); } { DebuggerBrowsableAttribute_t2FA4793AD1982F5150E07D26822ED5953CD90F53 * tmp = (DebuggerBrowsableAttribute_t2FA4793AD1982F5150E07D26822ED5953CD90F53 *)cache->attributes[1]; DebuggerBrowsableAttribute__ctor_mAA8BCC1E418754685F320B14A08AC226E76346E5(tmp, 0LL, NULL); } } static void NativeMethodAttribute_t57F61ACA17BEC1260A06658ACD971B0009CC1866_CustomAttributesCacheGenerator_NativeMethodAttribute_set_Name_mC85A9B1CE4650D43D0E73B503753864CA4952A9C(CustomAttributesCache* cache) { { CompilerGeneratedAttribute_t39106AB982658D7A94C27DEF3C48DB2F5F7CD75C * tmp = (CompilerGeneratedAttribute_t39106AB982658D7A94C27DEF3C48DB2F5F7CD75C *)cache->attributes[0]; CompilerGeneratedAttribute__ctor_m9DC3E4E2DA76FE93948D44199213E2E924DCBE35(tmp, NULL); } } static void NativeMethodAttribute_t57F61ACA17BEC1260A06658ACD971B0009CC1866_CustomAttributesCacheGenerator_NativeMethodAttribute_set_IsThreadSafe_m965EAB84605EABFD2AE9B84FBE7FF311D1116A56(CustomAttributesCache* cache) { { CompilerGeneratedAttribute_t39106AB982658D7A94C27DEF3C48DB2F5F7CD75C * tmp = (CompilerGeneratedAttribute_t39106AB982658D7A94C27DEF3C48DB2F5F7CD75C *)cache->attributes[0]; CompilerGeneratedAttribute__ctor_m9DC3E4E2DA76FE93948D44199213E2E924DCBE35(tmp, NULL); } } static void NativeMethodAttribute_t57F61ACA17BEC1260A06658ACD971B0009CC1866_CustomAttributesCacheGenerator_NativeMethodAttribute_set_IsFreeFunction_m25C53EDE8A4BD0CEA8E4BA9E6199F9773368ACD1(CustomAttributesCache* cache) { { CompilerGeneratedAttribute_t39106AB982658D7A94C27DEF3C48DB2F5F7CD75C * tmp = (CompilerGeneratedAttribute_t39106AB982658D7A94C27DEF3C48DB2F5F7CD75C *)cache->attributes[0]; CompilerGeneratedAttribute__ctor_m9DC3E4E2DA76FE93948D44199213E2E924DCBE35(tmp, NULL); } } static void NativeMethodAttribute_t57F61ACA17BEC1260A06658ACD971B0009CC1866_CustomAttributesCacheGenerator_NativeMethodAttribute_set_ThrowsException_m9F73529E4F4A3E151DBE4C7E07790B02292D8DBC(CustomAttributesCache* cache) { { CompilerGeneratedAttribute_t39106AB982658D7A94C27DEF3C48DB2F5F7CD75C * tmp = (CompilerGeneratedAttribute_t39106AB982658D7A94C27DEF3C48DB2F5F7CD75C *)cache->attributes[0]; CompilerGeneratedAttribute__ctor_m9DC3E4E2DA76FE93948D44199213E2E924DCBE35(tmp, NULL); } } static void NativeMethodAttribute_t57F61ACA17BEC1260A06658ACD971B0009CC1866_CustomAttributesCacheGenerator_NativeMethodAttribute_set_HasExplicitThis_mB44D70CDD0D14884A4FA84776C3091C742FAFE44(CustomAttributesCache* cache) { { CompilerGeneratedAttribute_t39106AB982658D7A94C27DEF3C48DB2F5F7CD75C * tmp = (CompilerGeneratedAttribute_t39106AB982658D7A94C27DEF3C48DB2F5F7CD75C *)cache->attributes[0]; CompilerGeneratedAttribute__ctor_m9DC3E4E2DA76FE93948D44199213E2E924DCBE35(tmp, NULL); } } static void TargetType_tBE103EBCFE59544A834B8108A56B2A91F7CBE1DF_CustomAttributesCacheGenerator(CustomAttributesCache* cache) { { VisibleToOtherModulesAttribute_t7C36871C9AD251C033486E04A2FFCB7CFB830914 * tmp = (VisibleToOtherModulesAttribute_t7C36871C9AD251C033486E04A2FFCB7CFB830914 *)cache->attributes[0]; VisibleToOtherModulesAttribute__ctor_mA193FBBFEBF3CF09151A66AF466D6DA6C35CBD6F(tmp, NULL); } } static void NativePropertyAttribute_t300C37301B5C27B1EECB6CBE7EED16EEDA11975A_CustomAttributesCacheGenerator(CustomAttributesCache* cache) { { VisibleToOtherModulesAttribute_t7C36871C9AD251C033486E04A2FFCB7CFB830914 * tmp = (VisibleToOtherModulesAttribute_t7C36871C9AD251C033486E04A2FFCB7CFB830914 *)cache->attributes[0]; VisibleToOtherModulesAttribute__ctor_mA193FBBFEBF3CF09151A66AF466D6DA6C35CBD6F(tmp, NULL); } { AttributeUsageAttribute_tBB0BAAA82036E6FCDD80A688BBD039F6FFD8EA1C * tmp = (AttributeUsageAttribute_tBB0BAAA82036E6FCDD80A688BBD039F6FFD8EA1C *)cache->attributes[1]; AttributeUsageAttribute__ctor_m5114E18826A49A025D48DC71904C430BD590656D(tmp, 128LL, NULL); } } static void NativePropertyAttribute_t300C37301B5C27B1EECB6CBE7EED16EEDA11975A_CustomAttributesCacheGenerator_U3CTargetTypeU3Ek__BackingField(CustomAttributesCache* cache) { { DebuggerBrowsableAttribute_t2FA4793AD1982F5150E07D26822ED5953CD90F53 * tmp = (DebuggerBrowsableAttribute_t2FA4793AD1982F5150E07D26822ED5953CD90F53 *)cache->attributes[0]; DebuggerBrowsableAttribute__ctor_mAA8BCC1E418754685F320B14A08AC226E76346E5(tmp, 0LL, NULL); } { CompilerGeneratedAttribute_t39106AB982658D7A94C27DEF3C48DB2F5F7CD75C * tmp = (CompilerGeneratedAttribute_t39106AB982658D7A94C27DEF3C48DB2F5F7CD75C *)cache->attributes[1]; CompilerGeneratedAttribute__ctor_m9DC3E4E2DA76FE93948D44199213E2E924DCBE35(tmp, NULL); } } static void NativePropertyAttribute_t300C37301B5C27B1EECB6CBE7EED16EEDA11975A_CustomAttributesCacheGenerator_NativePropertyAttribute_set_TargetType_m4A237836D8EDCF9310BD67B422E7E2EAD6DB51C8(CustomAttributesCache* cache) { { CompilerGeneratedAttribute_t39106AB982658D7A94C27DEF3C48DB2F5F7CD75C * tmp = (CompilerGeneratedAttribute_t39106AB982658D7A94C27DEF3C48DB2F5F7CD75C *)cache->attributes[0]; CompilerGeneratedAttribute__ctor_m9DC3E4E2DA76FE93948D44199213E2E924DCBE35(tmp, NULL); } } static void CodegenOptions_t2D0BDBDCEFA8EC8B714E6F9E84A55557343398FA_CustomAttributesCacheGenerator(CustomAttributesCache* cache) { { VisibleToOtherModulesAttribute_t7C36871C9AD251C033486E04A2FFCB7CFB830914 * tmp = (VisibleToOtherModulesAttribute_t7C36871C9AD251C033486E04A2FFCB7CFB830914 *)cache->attributes[0]; VisibleToOtherModulesAttribute__ctor_mA193FBBFEBF3CF09151A66AF466D6DA6C35CBD6F(tmp, NULL); } } static void NativeAsStructAttribute_tB664BE8A337A63DCA81BC69418AC482FAD5CDB3E_CustomAttributesCacheGenerator(CustomAttributesCache* cache) { { VisibleToOtherModulesAttribute_t7C36871C9AD251C033486E04A2FFCB7CFB830914 * tmp = (VisibleToOtherModulesAttribute_t7C36871C9AD251C033486E04A2FFCB7CFB830914 *)cache->attributes[0]; VisibleToOtherModulesAttribute__ctor_mA193FBBFEBF3CF09151A66AF466D6DA6C35CBD6F(tmp, NULL); } { AttributeUsageAttribute_tBB0BAAA82036E6FCDD80A688BBD039F6FFD8EA1C * tmp = (AttributeUsageAttribute_tBB0BAAA82036E6FCDD80A688BBD039F6FFD8EA1C *)cache->attributes[1]; AttributeUsageAttribute__ctor_m5114E18826A49A025D48DC71904C430BD590656D(tmp, 4LL, NULL); } } static void NativeTypeAttribute_t7A71B541B18D0BA1A9889E05D36CAC56CF9F48D9_CustomAttributesCacheGenerator(CustomAttributesCache* cache) { { AttributeUsageAttribute_tBB0BAAA82036E6FCDD80A688BBD039F6FFD8EA1C * tmp = (AttributeUsageAttribute_tBB0BAAA82036E6FCDD80A688BBD039F6FFD8EA1C *)cache->attributes[0]; AttributeUsageAttribute__ctor_m5114E18826A49A025D48DC71904C430BD590656D(tmp, 28LL, NULL); } { VisibleToOtherModulesAttribute_t7C36871C9AD251C033486E04A2FFCB7CFB830914 * tmp = (VisibleToOtherModulesAttribute_t7C36871C9AD251C033486E04A2FFCB7CFB830914 *)cache->attributes[1]; VisibleToOtherModulesAttribute__ctor_mA193FBBFEBF3CF09151A66AF466D6DA6C35CBD6F(tmp, NULL); } } static void NativeTypeAttribute_t7A71B541B18D0BA1A9889E05D36CAC56CF9F48D9_CustomAttributesCacheGenerator_U3CHeaderU3Ek__BackingField(CustomAttributesCache* cache) { { DebuggerBrowsableAttribute_t2FA4793AD1982F5150E07D26822ED5953CD90F53 * tmp = (DebuggerBrowsableAttribute_t2FA4793AD1982F5150E07D26822ED5953CD90F53 *)cache->attributes[0]; DebuggerBrowsableAttribute__ctor_mAA8BCC1E418754685F320B14A08AC226E76346E5(tmp, 0LL, NULL); } { CompilerGeneratedAttribute_t39106AB982658D7A94C27DEF3C48DB2F5F7CD75C * tmp = (CompilerGeneratedAttribute_t39106AB982658D7A94C27DEF3C48DB2F5F7CD75C *)cache->attributes[1]; CompilerGeneratedAttribute__ctor_m9DC3E4E2DA76FE93948D44199213E2E924DCBE35(tmp, NULL); } } static void NativeTypeAttribute_t7A71B541B18D0BA1A9889E05D36CAC56CF9F48D9_CustomAttributesCacheGenerator_U3CIntermediateScriptingStructNameU3Ek__BackingField(CustomAttributesCache* cache) { { DebuggerBrowsableAttribute_t2FA4793AD1982F5150E07D26822ED5953CD90F53 * tmp = (DebuggerBrowsableAttribute_t2FA4793AD1982F5150E07D26822ED5953CD90F53 *)cache->attributes[0]; DebuggerBrowsableAttribute__ctor_mAA8BCC1E418754685F320B14A08AC226E76346E5(tmp, 0LL, NULL); } { CompilerGeneratedAttribute_t39106AB982658D7A94C27DEF3C48DB2F5F7CD75C * tmp = (CompilerGeneratedAttribute_t39106AB982658D7A94C27DEF3C48DB2F5F7CD75C *)cache->attributes[1]; CompilerGeneratedAttribute__ctor_m9DC3E4E2DA76FE93948D44199213E2E924DCBE35(tmp, NULL); } } static void NativeTypeAttribute_t7A71B541B18D0BA1A9889E05D36CAC56CF9F48D9_CustomAttributesCacheGenerator_U3CCodegenOptionsU3Ek__BackingField(CustomAttributesCache* cache) { { DebuggerBrowsableAttribute_t2FA4793AD1982F5150E07D26822ED5953CD90F53 * tmp = (DebuggerBrowsableAttribute_t2FA4793AD1982F5150E07D26822ED5953CD90F53 *)cache->attributes[0]; DebuggerBrowsableAttribute__ctor_mAA8BCC1E418754685F320B14A08AC226E76346E5(tmp, 0LL, NULL); } { CompilerGeneratedAttribute_t39106AB982658D7A94C27DEF3C48DB2F5F7CD75C * tmp = (CompilerGeneratedAttribute_t39106AB982658D7A94C27DEF3C48DB2F5F7CD75C *)cache->attributes[1]; CompilerGeneratedAttribute__ctor_m9DC3E4E2DA76FE93948D44199213E2E924DCBE35(tmp, NULL); } } static void NativeTypeAttribute_t7A71B541B18D0BA1A9889E05D36CAC56CF9F48D9_CustomAttributesCacheGenerator_NativeTypeAttribute_set_Header_m8985D6BB07D335B2C835232D2D29DB34BF3E5C4D(CustomAttributesCache* cache) { { CompilerGeneratedAttribute_t39106AB982658D7A94C27DEF3C48DB2F5F7CD75C * tmp = (CompilerGeneratedAttribute_t39106AB982658D7A94C27DEF3C48DB2F5F7CD75C *)cache->attributes[0]; CompilerGeneratedAttribute__ctor_m9DC3E4E2DA76FE93948D44199213E2E924DCBE35(tmp, NULL); } } static void NativeTypeAttribute_t7A71B541B18D0BA1A9889E05D36CAC56CF9F48D9_CustomAttributesCacheGenerator_NativeTypeAttribute_set_IntermediateScriptingStructName_m34118253495FE12EE6E98EEB022D0B9DF8D991CA(CustomAttributesCache* cache) { { CompilerGeneratedAttribute_t39106AB982658D7A94C27DEF3C48DB2F5F7CD75C * tmp = (CompilerGeneratedAttribute_t39106AB982658D7A94C27DEF3C48DB2F5F7CD75C *)cache->attributes[0]; CompilerGeneratedAttribute__ctor_m9DC3E4E2DA76FE93948D44199213E2E924DCBE35(tmp, NULL); } } static void NativeTypeAttribute_t7A71B541B18D0BA1A9889E05D36CAC56CF9F48D9_CustomAttributesCacheGenerator_NativeTypeAttribute_set_CodegenOptions_m94AD39BD31282F8F355D44B5D1BF884B84256AB8(CustomAttributesCache* cache) { { CompilerGeneratedAttribute_t39106AB982658D7A94C27DEF3C48DB2F5F7CD75C * tmp = (CompilerGeneratedAttribute_t39106AB982658D7A94C27DEF3C48DB2F5F7CD75C *)cache->attributes[0]; CompilerGeneratedAttribute__ctor_m9DC3E4E2DA76FE93948D44199213E2E924DCBE35(tmp, NULL); } } static void NotNullAttribute_t22E59D8061EE39B8A3F837C2245240C2466382FC_CustomAttributesCacheGenerator(CustomAttributesCache* cache) { { AttributeUsageAttribute_tBB0BAAA82036E6FCDD80A688BBD039F6FFD8EA1C * tmp = (AttributeUsageAttribute_tBB0BAAA82036E6FCDD80A688BBD039F6FFD8EA1C *)cache->attributes[0]; AttributeUsageAttribute__ctor_m5114E18826A49A025D48DC71904C430BD590656D(tmp, 2048LL, NULL); } { VisibleToOtherModulesAttribute_t7C36871C9AD251C033486E04A2FFCB7CFB830914 * tmp = (VisibleToOtherModulesAttribute_t7C36871C9AD251C033486E04A2FFCB7CFB830914 *)cache->attributes[1]; VisibleToOtherModulesAttribute__ctor_mA193FBBFEBF3CF09151A66AF466D6DA6C35CBD6F(tmp, NULL); } } static void NotNullAttribute_t22E59D8061EE39B8A3F837C2245240C2466382FC_CustomAttributesCacheGenerator_U3CExceptionU3Ek__BackingField(CustomAttributesCache* cache) { { DebuggerBrowsableAttribute_t2FA4793AD1982F5150E07D26822ED5953CD90F53 * tmp = (DebuggerBrowsableAttribute_t2FA4793AD1982F5150E07D26822ED5953CD90F53 *)cache->attributes[0]; DebuggerBrowsableAttribute__ctor_mAA8BCC1E418754685F320B14A08AC226E76346E5(tmp, 0LL, NULL); } { CompilerGeneratedAttribute_t39106AB982658D7A94C27DEF3C48DB2F5F7CD75C * tmp = (CompilerGeneratedAttribute_t39106AB982658D7A94C27DEF3C48DB2F5F7CD75C *)cache->attributes[1]; CompilerGeneratedAttribute__ctor_m9DC3E4E2DA76FE93948D44199213E2E924DCBE35(tmp, NULL); } } static void NotNullAttribute_t22E59D8061EE39B8A3F837C2245240C2466382FC_CustomAttributesCacheGenerator_NotNullAttribute_set_Exception_mB0765502D567AE1CEEA8C8B62E4146C9ED9E100A(CustomAttributesCache* cache) { { CompilerGeneratedAttribute_t39106AB982658D7A94C27DEF3C48DB2F5F7CD75C * tmp = (CompilerGeneratedAttribute_t39106AB982658D7A94C27DEF3C48DB2F5F7CD75C *)cache->attributes[0]; CompilerGeneratedAttribute__ctor_m9DC3E4E2DA76FE93948D44199213E2E924DCBE35(tmp, NULL); } } static void FreeFunctionAttribute_tBB3B939D760190FEC84762F1BA94B99672613D03_CustomAttributesCacheGenerator(CustomAttributesCache* cache) { { AttributeUsageAttribute_tBB0BAAA82036E6FCDD80A688BBD039F6FFD8EA1C * tmp = (AttributeUsageAttribute_tBB0BAAA82036E6FCDD80A688BBD039F6FFD8EA1C *)cache->attributes[0]; AttributeUsageAttribute__ctor_m5114E18826A49A025D48DC71904C430BD590656D(tmp, 64LL, NULL); } { VisibleToOtherModulesAttribute_t7C36871C9AD251C033486E04A2FFCB7CFB830914 * tmp = (VisibleToOtherModulesAttribute_t7C36871C9AD251C033486E04A2FFCB7CFB830914 *)cache->attributes[1]; VisibleToOtherModulesAttribute__ctor_mA193FBBFEBF3CF09151A66AF466D6DA6C35CBD6F(tmp, NULL); } } static void ThreadSafeAttribute_t19BB6779619E58C8E3DF5198224E2BCB9E3D84B6_CustomAttributesCacheGenerator(CustomAttributesCache* cache) { { VisibleToOtherModulesAttribute_t7C36871C9AD251C033486E04A2FFCB7CFB830914 * tmp = (VisibleToOtherModulesAttribute_t7C36871C9AD251C033486E04A2FFCB7CFB830914 *)cache->attributes[0]; VisibleToOtherModulesAttribute__ctor_mA193FBBFEBF3CF09151A66AF466D6DA6C35CBD6F(tmp, NULL); } { AttributeUsageAttribute_tBB0BAAA82036E6FCDD80A688BBD039F6FFD8EA1C * tmp = (AttributeUsageAttribute_tBB0BAAA82036E6FCDD80A688BBD039F6FFD8EA1C *)cache->attributes[1]; AttributeUsageAttribute__ctor_m5114E18826A49A025D48DC71904C430BD590656D(tmp, 64LL, NULL); } } static void StaticAccessorType_tFA86A321ADAC16A48DF7FC82F8FBBE5F71D2DC4C_CustomAttributesCacheGenerator(CustomAttributesCache* cache) { { VisibleToOtherModulesAttribute_t7C36871C9AD251C033486E04A2FFCB7CFB830914 * tmp = (VisibleToOtherModulesAttribute_t7C36871C9AD251C033486E04A2FFCB7CFB830914 *)cache->attributes[0]; VisibleToOtherModulesAttribute__ctor_mA193FBBFEBF3CF09151A66AF466D6DA6C35CBD6F(tmp, NULL); } } static void StaticAccessorAttribute_t7A16FF0FA31E38510BBC8BCA5AE56C3E67D5A2BA_CustomAttributesCacheGenerator(CustomAttributesCache* cache) { { AttributeUsageAttribute_tBB0BAAA82036E6FCDD80A688BBD039F6FFD8EA1C * tmp = (AttributeUsageAttribute_tBB0BAAA82036E6FCDD80A688BBD039F6FFD8EA1C *)cache->attributes[0]; AttributeUsageAttribute__ctor_m5114E18826A49A025D48DC71904C430BD590656D(tmp, 204LL, NULL); } { VisibleToOtherModulesAttribute_t7C36871C9AD251C033486E04A2FFCB7CFB830914 * tmp = (VisibleToOtherModulesAttribute_t7C36871C9AD251C033486E04A2FFCB7CFB830914 *)cache->attributes[1]; VisibleToOtherModulesAttribute__ctor_mA193FBBFEBF3CF09151A66AF466D6DA6C35CBD6F(tmp, NULL); } } static void StaticAccessorAttribute_t7A16FF0FA31E38510BBC8BCA5AE56C3E67D5A2BA_CustomAttributesCacheGenerator_U3CNameU3Ek__BackingField(CustomAttributesCache* cache) { { DebuggerBrowsableAttribute_t2FA4793AD1982F5150E07D26822ED5953CD90F53 * tmp = (DebuggerBrowsableAttribute_t2FA4793AD1982F5150E07D26822ED5953CD90F53 *)cache->attributes[0]; DebuggerBrowsableAttribute__ctor_mAA8BCC1E418754685F320B14A08AC226E76346E5(tmp, 0LL, NULL); } { CompilerGeneratedAttribute_t39106AB982658D7A94C27DEF3C48DB2F5F7CD75C * tmp = (CompilerGeneratedAttribute_t39106AB982658D7A94C27DEF3C48DB2F5F7CD75C *)cache->attributes[1]; CompilerGeneratedAttribute__ctor_m9DC3E4E2DA76FE93948D44199213E2E924DCBE35(tmp, NULL); } } static void StaticAccessorAttribute_t7A16FF0FA31E38510BBC8BCA5AE56C3E67D5A2BA_CustomAttributesCacheGenerator_U3CTypeU3Ek__BackingField(CustomAttributesCache* cache) { { DebuggerBrowsableAttribute_t2FA4793AD1982F5150E07D26822ED5953CD90F53 * tmp = (DebuggerBrowsableAttribute_t2FA4793AD1982F5150E07D26822ED5953CD90F53 *)cache->attributes[0]; DebuggerBrowsableAttribute__ctor_mAA8BCC1E418754685F320B14A08AC226E76346E5(tmp, 0LL, NULL); } { CompilerGeneratedAttribute_t39106AB982658D7A94C27DEF3C48DB2F5F7CD75C * tmp = (CompilerGeneratedAttribute_t39106AB982658D7A94C27DEF3C48DB2F5F7CD75C *)cache->attributes[1]; CompilerGeneratedAttribute__ctor_m9DC3E4E2DA76FE93948D44199213E2E924DCBE35(tmp, NULL); } } static void StaticAccessorAttribute_t7A16FF0FA31E38510BBC8BCA5AE56C3E67D5A2BA_CustomAttributesCacheGenerator_StaticAccessorAttribute_set_Name_mE3C7CF6EEC0AD95934F4E2643AC4782F085388AC(CustomAttributesCache* cache) { { CompilerGeneratedAttribute_t39106AB982658D7A94C27DEF3C48DB2F5F7CD75C * tmp = (CompilerGeneratedAttribute_t39106AB982658D7A94C27DEF3C48DB2F5F7CD75C *)cache->attributes[0]; CompilerGeneratedAttribute__ctor_m9DC3E4E2DA76FE93948D44199213E2E924DCBE35(tmp, NULL); } } static void StaticAccessorAttribute_t7A16FF0FA31E38510BBC8BCA5AE56C3E67D5A2BA_CustomAttributesCacheGenerator_StaticAccessorAttribute_set_Type_m4208DB2673001E231D71DBB17BE60B1128BDC5B9(CustomAttributesCache* cache) { { CompilerGeneratedAttribute_t39106AB982658D7A94C27DEF3C48DB2F5F7CD75C * tmp = (CompilerGeneratedAttribute_t39106AB982658D7A94C27DEF3C48DB2F5F7CD75C *)cache->attributes[0]; CompilerGeneratedAttribute__ctor_m9DC3E4E2DA76FE93948D44199213E2E924DCBE35(tmp, NULL); } } static void StaticAccessorAttribute_t7A16FF0FA31E38510BBC8BCA5AE56C3E67D5A2BA_CustomAttributesCacheGenerator_StaticAccessorAttribute__ctor_m31B2712768DF710ABFF1A17F55F41A5D0DE921FC(CustomAttributesCache* cache) { { VisibleToOtherModulesAttribute_t7C36871C9AD251C033486E04A2FFCB7CFB830914 * tmp = (VisibleToOtherModulesAttribute_t7C36871C9AD251C033486E04A2FFCB7CFB830914 *)cache->attributes[0]; VisibleToOtherModulesAttribute__ctor_mA193FBBFEBF3CF09151A66AF466D6DA6C35CBD6F(tmp, NULL); } } static void NativeThrowsAttribute_tF59F2833BDD09C6C89298E603D5C3A598CC08137_CustomAttributesCacheGenerator(CustomAttributesCache* cache) { { VisibleToOtherModulesAttribute_t7C36871C9AD251C033486E04A2FFCB7CFB830914 * tmp = (VisibleToOtherModulesAttribute_t7C36871C9AD251C033486E04A2FFCB7CFB830914 *)cache->attributes[0]; VisibleToOtherModulesAttribute__ctor_mA193FBBFEBF3CF09151A66AF466D6DA6C35CBD6F(tmp, NULL); } { AttributeUsageAttribute_tBB0BAAA82036E6FCDD80A688BBD039F6FFD8EA1C * tmp = (AttributeUsageAttribute_tBB0BAAA82036E6FCDD80A688BBD039F6FFD8EA1C *)cache->attributes[1]; AttributeUsageAttribute__ctor_m5114E18826A49A025D48DC71904C430BD590656D(tmp, 192LL, NULL); } } static void NativeThrowsAttribute_tF59F2833BDD09C6C89298E603D5C3A598CC08137_CustomAttributesCacheGenerator_U3CThrowsExceptionU3Ek__BackingField(CustomAttributesCache* cache) { { CompilerGeneratedAttribute_t39106AB982658D7A94C27DEF3C48DB2F5F7CD75C * tmp = (CompilerGeneratedAttribute_t39106AB982658D7A94C27DEF3C48DB2F5F7CD75C *)cache->attributes[0]; CompilerGeneratedAttribute__ctor_m9DC3E4E2DA76FE93948D44199213E2E924DCBE35(tmp, NULL); } { DebuggerBrowsableAttribute_t2FA4793AD1982F5150E07D26822ED5953CD90F53 * tmp = (DebuggerBrowsableAttribute_t2FA4793AD1982F5150E07D26822ED5953CD90F53 *)cache->attributes[1]; DebuggerBrowsableAttribute__ctor_mAA8BCC1E418754685F320B14A08AC226E76346E5(tmp, 0LL, NULL); } } static void NativeThrowsAttribute_tF59F2833BDD09C6C89298E603D5C3A598CC08137_CustomAttributesCacheGenerator_NativeThrowsAttribute_set_ThrowsException_mD4A9F62D0715371AF6A6B12E75E1498C92EA27D1(CustomAttributesCache* cache) { { CompilerGeneratedAttribute_t39106AB982658D7A94C27DEF3C48DB2F5F7CD75C * tmp = (CompilerGeneratedAttribute_t39106AB982658D7A94C27DEF3C48DB2F5F7CD75C *)cache->attributes[0]; CompilerGeneratedAttribute__ctor_m9DC3E4E2DA76FE93948D44199213E2E924DCBE35(tmp, NULL); } } static void IgnoreAttribute_tAB4906F0BB2E4FD1CAE2D8D21DFD776EA434E5CA_CustomAttributesCacheGenerator(CustomAttributesCache* cache) { { VisibleToOtherModulesAttribute_t7C36871C9AD251C033486E04A2FFCB7CFB830914 * tmp = (VisibleToOtherModulesAttribute_t7C36871C9AD251C033486E04A2FFCB7CFB830914 *)cache->attributes[0]; VisibleToOtherModulesAttribute__ctor_mA193FBBFEBF3CF09151A66AF466D6DA6C35CBD6F(tmp, NULL); } { AttributeUsageAttribute_tBB0BAAA82036E6FCDD80A688BBD039F6FFD8EA1C * tmp = (AttributeUsageAttribute_tBB0BAAA82036E6FCDD80A688BBD039F6FFD8EA1C *)cache->attributes[1]; AttributeUsageAttribute__ctor_m5114E18826A49A025D48DC71904C430BD590656D(tmp, 256LL, NULL); } } static void IgnoreAttribute_tAB4906F0BB2E4FD1CAE2D8D21DFD776EA434E5CA_CustomAttributesCacheGenerator_U3CDoesNotContributeToSizeU3Ek__BackingField(CustomAttributesCache* cache) { { DebuggerBrowsableAttribute_t2FA4793AD1982F5150E07D26822ED5953CD90F53 * tmp = (DebuggerBrowsableAttribute_t2FA4793AD1982F5150E07D26822ED5953CD90F53 *)cache->attributes[0]; DebuggerBrowsableAttribute__ctor_mAA8BCC1E418754685F320B14A08AC226E76346E5(tmp, 0LL, NULL); } { CompilerGeneratedAttribute_t39106AB982658D7A94C27DEF3C48DB2F5F7CD75C * tmp = (CompilerGeneratedAttribute_t39106AB982658D7A94C27DEF3C48DB2F5F7CD75C *)cache->attributes[1]; CompilerGeneratedAttribute__ctor_m9DC3E4E2DA76FE93948D44199213E2E924DCBE35(tmp, NULL); } } static void IgnoreAttribute_tAB4906F0BB2E4FD1CAE2D8D21DFD776EA434E5CA_CustomAttributesCacheGenerator_IgnoreAttribute_set_DoesNotContributeToSize_m2C9085AD22AA116AF2620014EFAC038C056DE2CC(CustomAttributesCache* cache) { { CompilerGeneratedAttribute_t39106AB982658D7A94C27DEF3C48DB2F5F7CD75C * tmp = (CompilerGeneratedAttribute_t39106AB982658D7A94C27DEF3C48DB2F5F7CD75C *)cache->attributes[0]; CompilerGeneratedAttribute__ctor_m9DC3E4E2DA76FE93948D44199213E2E924DCBE35(tmp, NULL); } } static void PreventReadOnlyInstanceModificationAttribute_tE8D4FA7769A398DB777682CC73E6E7664F9DB1D7_CustomAttributesCacheGenerator(CustomAttributesCache* cache) { { AttributeUsageAttribute_tBB0BAAA82036E6FCDD80A688BBD039F6FFD8EA1C * tmp = (AttributeUsageAttribute_tBB0BAAA82036E6FCDD80A688BBD039F6FFD8EA1C *)cache->attributes[0]; AttributeUsageAttribute__ctor_m5114E18826A49A025D48DC71904C430BD590656D(tmp, 4LL, NULL); AttributeUsageAttribute_set_AllowMultiple_mF412CDAFFE16D056721EF81A1EC04ACE63612055_inline(tmp, false, NULL); AttributeUsageAttribute_set_Inherited_m56105980C36CB71AECD398C6077739BDFD2085E0_inline(tmp, false, NULL); } { VisibleToOtherModulesAttribute_t7C36871C9AD251C033486E04A2FFCB7CFB830914 * tmp = (VisibleToOtherModulesAttribute_t7C36871C9AD251C033486E04A2FFCB7CFB830914 *)cache->attributes[1]; VisibleToOtherModulesAttribute__ctor_mA193FBBFEBF3CF09151A66AF466D6DA6C35CBD6F(tmp, NULL); } } static void UsedByNativeCodeAttribute_t604CF4E57FB3E7BCCCF0871A9B526472B2CDCB92_CustomAttributesCacheGenerator(CustomAttributesCache* cache) { { AttributeUsageAttribute_tBB0BAAA82036E6FCDD80A688BBD039F6FFD8EA1C * tmp = (AttributeUsageAttribute_tBB0BAAA82036E6FCDD80A688BBD039F6FFD8EA1C *)cache->attributes[0]; AttributeUsageAttribute__ctor_m5114E18826A49A025D48DC71904C430BD590656D(tmp, 1532LL, NULL); AttributeUsageAttribute_set_Inherited_m56105980C36CB71AECD398C6077739BDFD2085E0_inline(tmp, false, NULL); } { VisibleToOtherModulesAttribute_t7C36871C9AD251C033486E04A2FFCB7CFB830914 * tmp = (VisibleToOtherModulesAttribute_t7C36871C9AD251C033486E04A2FFCB7CFB830914 *)cache->attributes[1]; VisibleToOtherModulesAttribute__ctor_mA193FBBFEBF3CF09151A66AF466D6DA6C35CBD6F(tmp, NULL); } } static void UsedByNativeCodeAttribute_t604CF4E57FB3E7BCCCF0871A9B526472B2CDCB92_CustomAttributesCacheGenerator_U3CNameU3Ek__BackingField(CustomAttributesCache* cache) { { DebuggerBrowsableAttribute_t2FA4793AD1982F5150E07D26822ED5953CD90F53 * tmp = (DebuggerBrowsableAttribute_t2FA4793AD1982F5150E07D26822ED5953CD90F53 *)cache->attributes[0]; DebuggerBrowsableAttribute__ctor_mAA8BCC1E418754685F320B14A08AC226E76346E5(tmp, 0LL, NULL); } { CompilerGeneratedAttribute_t39106AB982658D7A94C27DEF3C48DB2F5F7CD75C * tmp = (CompilerGeneratedAttribute_t39106AB982658D7A94C27DEF3C48DB2F5F7CD75C *)cache->attributes[1]; CompilerGeneratedAttribute__ctor_m9DC3E4E2DA76FE93948D44199213E2E924DCBE35(tmp, NULL); } } static void UsedByNativeCodeAttribute_t604CF4E57FB3E7BCCCF0871A9B526472B2CDCB92_CustomAttributesCacheGenerator_UsedByNativeCodeAttribute_set_Name_m8DBAC832E9A24549BBEFFB74C6264DA879D5930A(CustomAttributesCache* cache) { { CompilerGeneratedAttribute_t39106AB982658D7A94C27DEF3C48DB2F5F7CD75C * tmp = (CompilerGeneratedAttribute_t39106AB982658D7A94C27DEF3C48DB2F5F7CD75C *)cache->attributes[0]; CompilerGeneratedAttribute__ctor_m9DC3E4E2DA76FE93948D44199213E2E924DCBE35(tmp, NULL); } } static void RequiredByNativeCodeAttribute_t855401D3C2EF3B44F4F1C3EE2DCD361CFC358D20_CustomAttributesCacheGenerator(CustomAttributesCache* cache) { { VisibleToOtherModulesAttribute_t7C36871C9AD251C033486E04A2FFCB7CFB830914 * tmp = (VisibleToOtherModulesAttribute_t7C36871C9AD251C033486E04A2FFCB7CFB830914 *)cache->attributes[0]; VisibleToOtherModulesAttribute__ctor_mA193FBBFEBF3CF09151A66AF466D6DA6C35CBD6F(tmp, NULL); } { AttributeUsageAttribute_tBB0BAAA82036E6FCDD80A688BBD039F6FFD8EA1C * tmp = (AttributeUsageAttribute_tBB0BAAA82036E6FCDD80A688BBD039F6FFD8EA1C *)cache->attributes[1]; AttributeUsageAttribute__ctor_m5114E18826A49A025D48DC71904C430BD590656D(tmp, 1532LL, NULL); AttributeUsageAttribute_set_Inherited_m56105980C36CB71AECD398C6077739BDFD2085E0_inline(tmp, false, NULL); } } static void RequiredByNativeCodeAttribute_t855401D3C2EF3B44F4F1C3EE2DCD361CFC358D20_CustomAttributesCacheGenerator_U3CNameU3Ek__BackingField(CustomAttributesCache* cache) { { CompilerGeneratedAttribute_t39106AB982658D7A94C27DEF3C48DB2F5F7CD75C * tmp = (CompilerGeneratedAttribute_t39106AB982658D7A94C27DEF3C48DB2F5F7CD75C *)cache->attributes[0]; CompilerGeneratedAttribute__ctor_m9DC3E4E2DA76FE93948D44199213E2E924DCBE35(tmp, NULL); } { DebuggerBrowsableAttribute_t2FA4793AD1982F5150E07D26822ED5953CD90F53 * tmp = (DebuggerBrowsableAttribute_t2FA4793AD1982F5150E07D26822ED5953CD90F53 *)cache->attributes[1]; DebuggerBrowsableAttribute__ctor_mAA8BCC1E418754685F320B14A08AC226E76346E5(tmp, 0LL, NULL); } } static void RequiredByNativeCodeAttribute_t855401D3C2EF3B44F4F1C3EE2DCD361CFC358D20_CustomAttributesCacheGenerator_U3COptionalU3Ek__BackingField(CustomAttributesCache* cache) { { CompilerGeneratedAttribute_t39106AB982658D7A94C27DEF3C48DB2F5F7CD75C * tmp = (CompilerGeneratedAttribute_t39106AB982658D7A94C27DEF3C48DB2F5F7CD75C *)cache->attributes[0]; CompilerGeneratedAttribute__ctor_m9DC3E4E2DA76FE93948D44199213E2E924DCBE35(tmp, NULL); } { DebuggerBrowsableAttribute_t2FA4793AD1982F5150E07D26822ED5953CD90F53 * tmp = (DebuggerBrowsableAttribute_t2FA4793AD1982F5150E07D26822ED5953CD90F53 *)cache->attributes[1]; DebuggerBrowsableAttribute__ctor_mAA8BCC1E418754685F320B14A08AC226E76346E5(tmp, 0LL, NULL); } } static void RequiredByNativeCodeAttribute_t855401D3C2EF3B44F4F1C3EE2DCD361CFC358D20_CustomAttributesCacheGenerator_U3CGenerateProxyU3Ek__BackingField(CustomAttributesCache* cache) { { CompilerGeneratedAttribute_t39106AB982658D7A94C27DEF3C48DB2F5F7CD75C * tmp = (CompilerGeneratedAttribute_t39106AB982658D7A94C27DEF3C48DB2F5F7CD75C *)cache->attributes[0]; CompilerGeneratedAttribute__ctor_m9DC3E4E2DA76FE93948D44199213E2E924DCBE35(tmp, NULL); } { DebuggerBrowsableAttribute_t2FA4793AD1982F5150E07D26822ED5953CD90F53 * tmp = (DebuggerBrowsableAttribute_t2FA4793AD1982F5150E07D26822ED5953CD90F53 *)cache->attributes[1]; DebuggerBrowsableAttribute__ctor_mAA8BCC1E418754685F320B14A08AC226E76346E5(tmp, 0LL, NULL); } } static void RequiredByNativeCodeAttribute_t855401D3C2EF3B44F4F1C3EE2DCD361CFC358D20_CustomAttributesCacheGenerator_RequiredByNativeCodeAttribute_set_Name_m504598B96728E392B798F925B3CEE906160816A8(CustomAttributesCache* cache) { { CompilerGeneratedAttribute_t39106AB982658D7A94C27DEF3C48DB2F5F7CD75C * tmp = (CompilerGeneratedAttribute_t39106AB982658D7A94C27DEF3C48DB2F5F7CD75C *)cache->attributes[0]; CompilerGeneratedAttribute__ctor_m9DC3E4E2DA76FE93948D44199213E2E924DCBE35(tmp, NULL); } } static void RequiredByNativeCodeAttribute_t855401D3C2EF3B44F4F1C3EE2DCD361CFC358D20_CustomAttributesCacheGenerator_RequiredByNativeCodeAttribute_set_Optional_mB223A17DB0A1E507A9C90AFA15A8FC5E01A5A57A(CustomAttributesCache* cache) { { CompilerGeneratedAttribute_t39106AB982658D7A94C27DEF3C48DB2F5F7CD75C * tmp = (CompilerGeneratedAttribute_t39106AB982658D7A94C27DEF3C48DB2F5F7CD75C *)cache->attributes[0]; CompilerGeneratedAttribute__ctor_m9DC3E4E2DA76FE93948D44199213E2E924DCBE35(tmp, NULL); } } static void RequiredByNativeCodeAttribute_t855401D3C2EF3B44F4F1C3EE2DCD361CFC358D20_CustomAttributesCacheGenerator_RequiredByNativeCodeAttribute_set_GenerateProxy_m4B70A962664BE60B0EC391D10CF328752AB59D56(CustomAttributesCache* cache) { { CompilerGeneratedAttribute_t39106AB982658D7A94C27DEF3C48DB2F5F7CD75C * tmp = (CompilerGeneratedAttribute_t39106AB982658D7A94C27DEF3C48DB2F5F7CD75C *)cache->attributes[0]; CompilerGeneratedAttribute__ctor_m9DC3E4E2DA76FE93948D44199213E2E924DCBE35(tmp, NULL); } } IL2CPP_EXTERN_C const CustomAttributesCacheGenerator g_UnityEngine_SharedInternalsModule_AttributeGenerators[]; const CustomAttributesCacheGenerator g_UnityEngine_SharedInternalsModule_AttributeGenerators[84] = { AssetFileNameExtensionAttribute_tED45B2D2362BB4D5CDCA25F7C1E890AADAD6FA2D_CustomAttributesCacheGenerator, ThreadAndSerializationSafeAttribute_t41719A461F31891B2536A2E4A1E983DD7E428E7B_CustomAttributesCacheGenerator, WritableAttribute_t00CD7A683EA83064B3741A90A772DD0DE1AF5103_CustomAttributesCacheGenerator, UnityEngineModuleAssembly_t33CB058FDDDC458E384578147D6027BB1EC86CFF_CustomAttributesCacheGenerator, NativeClassAttribute_tBE8213A7A54307A9A771B70B38CB946BED926B0D_CustomAttributesCacheGenerator, UnityString_t1F0FC4EA4EF5A9AAB2BF779CD416EB85F9F86609_CustomAttributesCacheGenerator, VisibleToOtherModulesAttribute_t7C36871C9AD251C033486E04A2FFCB7CFB830914_CustomAttributesCacheGenerator, NativeConditionalAttribute_t659349956F06958D4D05443BD06FF5CDC767C88B_CustomAttributesCacheGenerator, NativeHeaderAttribute_t7F0E4B53790AA75CDB4C44E6D644267F8FE3066C_CustomAttributesCacheGenerator, NativeNameAttribute_tCEF3726869BD5ADC4600DDAC8DF0D4B5AAAF65F7_CustomAttributesCacheGenerator, NativeWritableSelfAttribute_tFAFEEA81F742D3AFDA0A7A16F11C7E1E4DE4131A_CustomAttributesCacheGenerator, NativeMethodAttribute_t57F61ACA17BEC1260A06658ACD971B0009CC1866_CustomAttributesCacheGenerator, TargetType_tBE103EBCFE59544A834B8108A56B2A91F7CBE1DF_CustomAttributesCacheGenerator, NativePropertyAttribute_t300C37301B5C27B1EECB6CBE7EED16EEDA11975A_CustomAttributesCacheGenerator, CodegenOptions_t2D0BDBDCEFA8EC8B714E6F9E84A55557343398FA_CustomAttributesCacheGenerator, NativeAsStructAttribute_tB664BE8A337A63DCA81BC69418AC482FAD5CDB3E_CustomAttributesCacheGenerator, NativeTypeAttribute_t7A71B541B18D0BA1A9889E05D36CAC56CF9F48D9_CustomAttributesCacheGenerator, NotNullAttribute_t22E59D8061EE39B8A3F837C2245240C2466382FC_CustomAttributesCacheGenerator, FreeFunctionAttribute_tBB3B939D760190FEC84762F1BA94B99672613D03_CustomAttributesCacheGenerator, ThreadSafeAttribute_t19BB6779619E58C8E3DF5198224E2BCB9E3D84B6_CustomAttributesCacheGenerator, StaticAccessorType_tFA86A321ADAC16A48DF7FC82F8FBBE5F71D2DC4C_CustomAttributesCacheGenerator, StaticAccessorAttribute_t7A16FF0FA31E38510BBC8BCA5AE56C3E67D5A2BA_CustomAttributesCacheGenerator, NativeThrowsAttribute_tF59F2833BDD09C6C89298E603D5C3A598CC08137_CustomAttributesCacheGenerator, IgnoreAttribute_tAB4906F0BB2E4FD1CAE2D8D21DFD776EA434E5CA_CustomAttributesCacheGenerator, PreventReadOnlyInstanceModificationAttribute_tE8D4FA7769A398DB777682CC73E6E7664F9DB1D7_CustomAttributesCacheGenerator, UsedByNativeCodeAttribute_t604CF4E57FB3E7BCCCF0871A9B526472B2CDCB92_CustomAttributesCacheGenerator, RequiredByNativeCodeAttribute_t855401D3C2EF3B44F4F1C3EE2DCD361CFC358D20_CustomAttributesCacheGenerator, AssetFileNameExtensionAttribute_tED45B2D2362BB4D5CDCA25F7C1E890AADAD6FA2D_CustomAttributesCacheGenerator_U3CpreferredExtensionU3Ek__BackingField, AssetFileNameExtensionAttribute_tED45B2D2362BB4D5CDCA25F7C1E890AADAD6FA2D_CustomAttributesCacheGenerator_U3CotherExtensionsU3Ek__BackingField, NativeClassAttribute_tBE8213A7A54307A9A771B70B38CB946BED926B0D_CustomAttributesCacheGenerator_U3CQualifiedNativeNameU3Ek__BackingField, NativeClassAttribute_tBE8213A7A54307A9A771B70B38CB946BED926B0D_CustomAttributesCacheGenerator_U3CDeclarationU3Ek__BackingField, NativeConditionalAttribute_t659349956F06958D4D05443BD06FF5CDC767C88B_CustomAttributesCacheGenerator_U3CConditionU3Ek__BackingField, NativeConditionalAttribute_t659349956F06958D4D05443BD06FF5CDC767C88B_CustomAttributesCacheGenerator_U3CEnabledU3Ek__BackingField, NativeHeaderAttribute_t7F0E4B53790AA75CDB4C44E6D644267F8FE3066C_CustomAttributesCacheGenerator_U3CHeaderU3Ek__BackingField, NativeNameAttribute_tCEF3726869BD5ADC4600DDAC8DF0D4B5AAAF65F7_CustomAttributesCacheGenerator_U3CNameU3Ek__BackingField, NativeWritableSelfAttribute_tFAFEEA81F742D3AFDA0A7A16F11C7E1E4DE4131A_CustomAttributesCacheGenerator_U3CWritableSelfU3Ek__BackingField, NativeMethodAttribute_t57F61ACA17BEC1260A06658ACD971B0009CC1866_CustomAttributesCacheGenerator_U3CNameU3Ek__BackingField, NativeMethodAttribute_t57F61ACA17BEC1260A06658ACD971B0009CC1866_CustomAttributesCacheGenerator_U3CIsThreadSafeU3Ek__BackingField, NativeMethodAttribute_t57F61ACA17BEC1260A06658ACD971B0009CC1866_CustomAttributesCacheGenerator_U3CIsFreeFunctionU3Ek__BackingField, NativeMethodAttribute_t57F61ACA17BEC1260A06658ACD971B0009CC1866_CustomAttributesCacheGenerator_U3CThrowsExceptionU3Ek__BackingField, NativeMethodAttribute_t57F61ACA17BEC1260A06658ACD971B0009CC1866_CustomAttributesCacheGenerator_U3CHasExplicitThisU3Ek__BackingField, NativePropertyAttribute_t300C37301B5C27B1EECB6CBE7EED16EEDA11975A_CustomAttributesCacheGenerator_U3CTargetTypeU3Ek__BackingField, NativeTypeAttribute_t7A71B541B18D0BA1A9889E05D36CAC56CF9F48D9_CustomAttributesCacheGenerator_U3CHeaderU3Ek__BackingField, NativeTypeAttribute_t7A71B541B18D0BA1A9889E05D36CAC56CF9F48D9_CustomAttributesCacheGenerator_U3CIntermediateScriptingStructNameU3Ek__BackingField, NativeTypeAttribute_t7A71B541B18D0BA1A9889E05D36CAC56CF9F48D9_CustomAttributesCacheGenerator_U3CCodegenOptionsU3Ek__BackingField, NotNullAttribute_t22E59D8061EE39B8A3F837C2245240C2466382FC_CustomAttributesCacheGenerator_U3CExceptionU3Ek__BackingField, StaticAccessorAttribute_t7A16FF0FA31E38510BBC8BCA5AE56C3E67D5A2BA_CustomAttributesCacheGenerator_U3CNameU3Ek__BackingField, StaticAccessorAttribute_t7A16FF0FA31E38510BBC8BCA5AE56C3E67D5A2BA_CustomAttributesCacheGenerator_U3CTypeU3Ek__BackingField, NativeThrowsAttribute_tF59F2833BDD09C6C89298E603D5C3A598CC08137_CustomAttributesCacheGenerator_U3CThrowsExceptionU3Ek__BackingField, IgnoreAttribute_tAB4906F0BB2E4FD1CAE2D8D21DFD776EA434E5CA_CustomAttributesCacheGenerator_U3CDoesNotContributeToSizeU3Ek__BackingField, UsedByNativeCodeAttribute_t604CF4E57FB3E7BCCCF0871A9B526472B2CDCB92_CustomAttributesCacheGenerator_U3CNameU3Ek__BackingField, RequiredByNativeCodeAttribute_t855401D3C2EF3B44F4F1C3EE2DCD361CFC358D20_CustomAttributesCacheGenerator_U3CNameU3Ek__BackingField, RequiredByNativeCodeAttribute_t855401D3C2EF3B44F4F1C3EE2DCD361CFC358D20_CustomAttributesCacheGenerator_U3COptionalU3Ek__BackingField, RequiredByNativeCodeAttribute_t855401D3C2EF3B44F4F1C3EE2DCD361CFC358D20_CustomAttributesCacheGenerator_U3CGenerateProxyU3Ek__BackingField, NativeClassAttribute_tBE8213A7A54307A9A771B70B38CB946BED926B0D_CustomAttributesCacheGenerator_NativeClassAttribute_set_QualifiedNativeName_mFC347A2EBD44977DFEA72A9B37C0ADECF1150262, NativeClassAttribute_tBE8213A7A54307A9A771B70B38CB946BED926B0D_CustomAttributesCacheGenerator_NativeClassAttribute_set_Declaration_mF6FF1EB7079637160DA617FC4318EAD490409A3A, NativeConditionalAttribute_t659349956F06958D4D05443BD06FF5CDC767C88B_CustomAttributesCacheGenerator_NativeConditionalAttribute_set_Condition_m380CB2CFC2874DA64DA0D2934FCD35923924E09C, NativeConditionalAttribute_t659349956F06958D4D05443BD06FF5CDC767C88B_CustomAttributesCacheGenerator_NativeConditionalAttribute_set_Enabled_mC5611EF1236F6AC1925997C39993F249D9F86581, NativeHeaderAttribute_t7F0E4B53790AA75CDB4C44E6D644267F8FE3066C_CustomAttributesCacheGenerator_NativeHeaderAttribute_set_Header_mAA0DA2ACAF3BF508D3997CCA9CE41736C8293C7D, NativeNameAttribute_tCEF3726869BD5ADC4600DDAC8DF0D4B5AAAF65F7_CustomAttributesCacheGenerator_NativeNameAttribute_set_Name_m9CDE38A03BBC21458ADE2874B18A7B81146F7E07, NativeWritableSelfAttribute_tFAFEEA81F742D3AFDA0A7A16F11C7E1E4DE4131A_CustomAttributesCacheGenerator_NativeWritableSelfAttribute_set_WritableSelf_mB2E797FBF3F0F6E5EC5FD95C7ECE18B7913F933C, NativeMethodAttribute_t57F61ACA17BEC1260A06658ACD971B0009CC1866_CustomAttributesCacheGenerator_NativeMethodAttribute_set_Name_mC85A9B1CE4650D43D0E73B503753864CA4952A9C, NativeMethodAttribute_t57F61ACA17BEC1260A06658ACD971B0009CC1866_CustomAttributesCacheGenerator_NativeMethodAttribute_set_IsThreadSafe_m965EAB84605EABFD2AE9B84FBE7FF311D1116A56, NativeMethodAttribute_t57F61ACA17BEC1260A06658ACD971B0009CC1866_CustomAttributesCacheGenerator_NativeMethodAttribute_set_IsFreeFunction_m25C53EDE8A4BD0CEA8E4BA9E6199F9773368ACD1, NativeMethodAttribute_t57F61ACA17BEC1260A06658ACD971B0009CC1866_CustomAttributesCacheGenerator_NativeMethodAttribute_set_ThrowsException_m9F73529E4F4A3E151DBE4C7E07790B02292D8DBC, NativeMethodAttribute_t57F61ACA17BEC1260A06658ACD971B0009CC1866_CustomAttributesCacheGenerator_NativeMethodAttribute_set_HasExplicitThis_mB44D70CDD0D14884A4FA84776C3091C742FAFE44, NativePropertyAttribute_t300C37301B5C27B1EECB6CBE7EED16EEDA11975A_CustomAttributesCacheGenerator_NativePropertyAttribute_set_TargetType_m4A237836D8EDCF9310BD67B422E7E2EAD6DB51C8, NativeTypeAttribute_t7A71B541B18D0BA1A9889E05D36CAC56CF9F48D9_CustomAttributesCacheGenerator_NativeTypeAttribute_set_Header_m8985D6BB07D335B2C835232D2D29DB34BF3E5C4D, NativeTypeAttribute_t7A71B541B18D0BA1A9889E05D36CAC56CF9F48D9_CustomAttributesCacheGenerator_NativeTypeAttribute_set_IntermediateScriptingStructName_m34118253495FE12EE6E98EEB022D0B9DF8D991CA, NativeTypeAttribute_t7A71B541B18D0BA1A9889E05D36CAC56CF9F48D9_CustomAttributesCacheGenerator_NativeTypeAttribute_set_CodegenOptions_m94AD39BD31282F8F355D44B5D1BF884B84256AB8, NotNullAttribute_t22E59D8061EE39B8A3F837C2245240C2466382FC_CustomAttributesCacheGenerator_NotNullAttribute_set_Exception_mB0765502D567AE1CEEA8C8B62E4146C9ED9E100A, StaticAccessorAttribute_t7A16FF0FA31E38510BBC8BCA5AE56C3E67D5A2BA_CustomAttributesCacheGenerator_StaticAccessorAttribute_set_Name_mE3C7CF6EEC0AD95934F4E2643AC4782F085388AC, StaticAccessorAttribute_t7A16FF0FA31E38510BBC8BCA5AE56C3E67D5A2BA_CustomAttributesCacheGenerator_StaticAccessorAttribute_set_Type_m4208DB2673001E231D71DBB17BE60B1128BDC5B9, StaticAccessorAttribute_t7A16FF0FA31E38510BBC8BCA5AE56C3E67D5A2BA_CustomAttributesCacheGenerator_StaticAccessorAttribute__ctor_m31B2712768DF710ABFF1A17F55F41A5D0DE921FC, NativeThrowsAttribute_tF59F2833BDD09C6C89298E603D5C3A598CC08137_CustomAttributesCacheGenerator_NativeThrowsAttribute_set_ThrowsException_mD4A9F62D0715371AF6A6B12E75E1498C92EA27D1, IgnoreAttribute_tAB4906F0BB2E4FD1CAE2D8D21DFD776EA434E5CA_CustomAttributesCacheGenerator_IgnoreAttribute_set_DoesNotContributeToSize_m2C9085AD22AA116AF2620014EFAC038C056DE2CC, UsedByNativeCodeAttribute_t604CF4E57FB3E7BCCCF0871A9B526472B2CDCB92_CustomAttributesCacheGenerator_UsedByNativeCodeAttribute_set_Name_m8DBAC832E9A24549BBEFFB74C6264DA879D5930A, RequiredByNativeCodeAttribute_t855401D3C2EF3B44F4F1C3EE2DCD361CFC358D20_CustomAttributesCacheGenerator_RequiredByNativeCodeAttribute_set_Name_m504598B96728E392B798F925B3CEE906160816A8, RequiredByNativeCodeAttribute_t855401D3C2EF3B44F4F1C3EE2DCD361CFC358D20_CustomAttributesCacheGenerator_RequiredByNativeCodeAttribute_set_Optional_mB223A17DB0A1E507A9C90AFA15A8FC5E01A5A57A, RequiredByNativeCodeAttribute_t855401D3C2EF3B44F4F1C3EE2DCD361CFC358D20_CustomAttributesCacheGenerator_RequiredByNativeCodeAttribute_set_GenerateProxy_m4B70A962664BE60B0EC391D10CF328752AB59D56, AssetFileNameExtensionAttribute_tED45B2D2362BB4D5CDCA25F7C1E890AADAD6FA2D_CustomAttributesCacheGenerator_AssetFileNameExtensionAttribute__ctor_mA62DCAB1C4F07C81D6883560C6773B68C9CE6DDE____otherExtensions1, UnityString_t1F0FC4EA4EF5A9AAB2BF779CD416EB85F9F86609_CustomAttributesCacheGenerator_UnityString_Format_m7A07C068ED408DD06F634070770FB55F13AA4EC9____args1, VisibleToOtherModulesAttribute_t7C36871C9AD251C033486E04A2FFCB7CFB830914_CustomAttributesCacheGenerator_VisibleToOtherModulesAttribute__ctor_m84C0721B304CBF2411FF63DF4922F2EAADBDA85E____modules0, UnityEngine_SharedInternalsModule_CustomAttributesCacheGenerator, }; IL2CPP_MANAGED_FORCE_INLINE IL2CPP_METHOD_ATTR void RuntimeCompatibilityAttribute_set_WrapNonExceptionThrows_m8562196F90F3EBCEC23B5708EE0332842883C490_inline (RuntimeCompatibilityAttribute_tFF99AB2963098F9CBCD47A20D9FD3D51C17C1C80 * __this, bool ___value0, const RuntimeMethod* method) { { bool L_0 = ___value0; __this->set_m_wrapNonExceptionThrows_0(L_0); return; } } IL2CPP_MANAGED_FORCE_INLINE IL2CPP_METHOD_ATTR void AttributeUsageAttribute_set_Inherited_m56105980C36CB71AECD398C6077739BDFD2085E0_inline (AttributeUsageAttribute_tBB0BAAA82036E6FCDD80A688BBD039F6FFD8EA1C * __this, bool ___value0, const RuntimeMethod* method) { { bool L_0 = ___value0; __this->set_m_inherited_2(L_0); return; } } IL2CPP_MANAGED_FORCE_INLINE IL2CPP_METHOD_ATTR void AttributeUsageAttribute_set_AllowMultiple_mF412CDAFFE16D056721EF81A1EC04ACE63612055_inline (AttributeUsageAttribute_tBB0BAAA82036E6FCDD80A688BBD039F6FFD8EA1C * __this, bool ___value0, const RuntimeMethod* method) { { bool L_0 = ___value0; __this->set_m_allowMultiple_1(L_0); return; } }
[ "minnkyoung2014@gmail.com" ]
minnkyoung2014@gmail.com
83f4992ee3fd4bc60439e2467d92520b7634819c
a6a8538a362a1c50e1aad22869dff4612e0e5417
/nvpr_svg/cairo/scene_cairo.cpp
e422667382d38f3d3c3f3d339860ef9c222c8133
[]
no_license
victusfate/nvpr_demo
da4d34a04a93799cf056ad8abf20cf5f24f6afef
f6c6ec9bf133b28f22f4cdc851465c6cf7ed69fd
refs/heads/master
2021-01-09T21:58:24.962794
2013-02-24T19:37:33
2013-02-24T19:37:33
8,395,367
0
1
null
null
null
null
UTF-8
C++
false
false
6,052
cpp
/* scene_cairo.cpp - Cairo renderer usage of path rendering scene graph. */ // Copyright (c) NVIDIA Corporation. All rights reserved. #include "nvpr_svg_config.h" // configure path renderers to use #include "scene_cairo.hpp" #if USE_CAIRO inline cairo_matrix_t gl2cairo(const float4x4 &m) { cairo_matrix_t matrix; cairo_matrix_init(&matrix, m[0][0], m[1][0], // xx, xy m[0][1], m[1][1], // yx, yy m[0][3], m[1][3]); // x0, y0 return matrix; } inline float4x4 cairo2gl(const cairo_matrix_t &m) { return float4x4( m.xx, m.xy, 0, m.x0, m.yx, m.yy, 0, m.y0, 0, 0, 1, 0, 0, 0, 0, 1); } static void transformCairoPath(cairo_path_t *path, float4x4 &matrix) { // Transform the path to match the current transformation matrix of the clip path for (int i = 0; i < path->num_data; i += path->data[i].header.length) { for (int j = 1; j < path->data[i].header.length; j++) { float2 point(path->data[j+i].point.x, path->data[j+i].point.y); path->data[j+i].point.x = dot(point, matrix[0].xy) + matrix[0].w; path->data[j+i].point.y = dot(point, matrix[1].xy) + matrix[1].w; } } } namespace CairoVisitors { /////////////////////////////////////////////////////////////////////////////// // ClipMask void ClipMask::intersectWith(ClipMaskPtr mask) { cairo_push_group_with_content(cr, CAIRO_CONTENT_ALPHA); cairo_set_source(cr, pattern); cairo_pattern_destroy(pattern); cairo_mask(cr, mask->pattern); pattern = cairo_pop_group(cr); } void ClipMask::apply() { cairo_mask(cr, pattern); } /////////////////////////////////////////////////////////////////////////////// // Draw Draw::Draw(CairoRendererPtr renderer_) : renderer(renderer_) { cairo_matrix_t m; cairo_get_matrix(renderer->cr, &m); matrix_stack.pop(); matrix_stack.push(cairo2gl(m)); clip_stack.push(ClipPath(ClipMaskPtr(), m)); } void Draw::visit(ShapePtr shape) { ShapeRendererStatePtr renderer_state = shape->getRendererState(renderer); CairoShapeRendererStatePtr shape_renderer = dynamic_pointer_cast<CairoShapeRendererState>(renderer_state); if (clip_stack.top().mask) { cairo_push_group_with_content(renderer->cr, CAIRO_CONTENT_COLOR_ALPHA); } shape_renderer->draw(); if (clip_stack.top().mask) { cairo_pop_group_to_source(renderer->cr); cairo_set_matrix(renderer->cr, &clip_stack.top().matrix); clip_stack.top().mask->apply(); cairo_matrix_t m = gl2cairo(matrix_stack.top()); cairo_set_matrix(renderer->cr, &m); } } void Draw::apply(TransformPtr transform) { MatrixSaveVisitor::apply(transform); cairo_matrix_t m = gl2cairo(matrix_stack.top()); cairo_set_matrix(renderer->cr, &m); } void Draw::unapply(TransformPtr transform) { MatrixSaveVisitor::unapply(transform); cairo_matrix_t m = gl2cairo(matrix_stack.top()); cairo_set_matrix(renderer->cr, &m); } void Draw::apply(ClipPtr clip) { cairo_save(renderer->cr); ClipVisitorPtr clip_visitor(new ClipVisitor(renderer)); clip->path->traverse(clip_visitor); ClipMaskPtr mask = clip_visitor->startClipping(clip->clip_merge); if (clip_stack.top().mask) { if (mask) { mask->intersectWith(clip_stack.top().mask); } else { mask = clip_stack.top().mask; } } clip_stack.push(ClipPath(mask, gl2cairo(matrix_stack.top()))); } void Draw::unapply(ClipPtr clip) { clip_stack.pop(); cairo_restore(renderer->cr); } /////////////////////////////////////////////////////////////////////////////// // ClipVisitor ClipVisitor::~ClipVisitor() { for (size_t i = 0; i < paths.size(); i++) { cairo_path_destroy(paths[i]); } } void ClipVisitor::visit(ShapePtr shape) { cairo_t *cr = renderer->cr; ShapeRendererStatePtr renderer_state = shape->getRendererState(renderer); CairoShapeRendererStatePtr shape_renderer = dynamic_pointer_cast<CairoShapeRendererState>(renderer_state); vector<cairo_path_t*> temp_paths; shape_renderer->getPaths(temp_paths); for (size_t i = 0; i < temp_paths.size(); i++) { cairo_new_path(renderer->cr); cairo_append_path(renderer->cr, temp_paths[i]); cairo_path_t *path = cairo_copy_path(cr); transformCairoPath(path, matrix_stack.top()); paths.push_back(path); } } void ClipVisitor::apply(ClipPtr clip) { assert(!child_mask); ClipVisitorPtr clip_visitor(new ClipVisitor(renderer)); clip->path->traverse(clip_visitor); child_mask = clip_visitor->startClipping(clip->clip_merge); } void ClipVisitor::unapply(ClipPtr clip) { // ignore } ClipMaskPtr ClipVisitor::startClipping(ClipMerge clip_merge) { if (clip_merge == CLIP_COVERAGE_UNION && paths.size() > 1) { cairo_push_group_with_content(renderer->cr, CAIRO_CONTENT_ALPHA); cairo_set_source_rgba(renderer->cr, 1, 1, 1, 1); for (size_t i = 0; i < paths.size(); i++) { cairo_new_path(renderer->cr); cairo_append_path(renderer->cr, paths[i]); cairo_fill(renderer->cr); } ClipMaskPtr mask(new ClipMask(renderer->cr, cairo_pop_group(renderer->cr))); if (child_mask) { mask->intersectWith(child_mask); } return mask; } else { cairo_new_path(renderer->cr); for (size_t i = 0; i < paths.size(); i++) { cairo_append_path(renderer->cr, paths[i]); } cairo_set_fill_rule(renderer->cr, clip_merge == SUM_WINDING_NUMBERS_MOD_2 ? CAIRO_FILL_RULE_EVEN_ODD : CAIRO_FILL_RULE_WINDING); cairo_clip(renderer->cr); return child_mask; } } }; #endif
[ "messel@gmail.com" ]
messel@gmail.com
fbd770744301d644cfe1851e20056e4c2b119ad7
84a19fe0b89bb19caa1641aeadc9623c1a181767
/abc/133/f.cpp
841a071eef93f4dcd9e57179a196ac4267ec705f
[ "MIT" ]
permissive
wotsushi/competitive-programming
75abae653cff744189c53ad7e6dbd2ca1a62e3a8
17ec8fd5e1c23aee626aee70b1c0da8d7f8b8c86
refs/heads/master
2021-06-10T06:42:40.846666
2021-05-31T10:32:51
2021-05-31T10:32:51
175,002,279
3
0
null
null
null
null
UTF-8
C++
false
false
6,291
cpp
#pragma region template 2.4 #include <bits/stdc++.h> using namespace std; template <typename T> using pq_asc = priority_queue<T, vector<T>, greater<T>>; typedef long long ll; typedef vector<ll> vi; typedef vector<vi> vvi; typedef pair<ll, ll> ii; typedef vector<ii> vii; typedef vector<string> vs; #define REP(i, n) for (ll i = 0; i < (n); ++i) #define REP1(i, n) for (ll i = 1; i <= (n); ++i) #define FOR(i, a) for (auto &i : a) #define CH(f, x, y) x = f(x, y) #define IN(T, x) \ T x; \ cin >> x; #define AIN(T, a, n) \ vector<T> a(n); \ FOR(i, a) \ cin >> i; #define A2IN(T1, a, T2, b, n) \ vector<T1> a(n); \ vector<T2> b(n); \ REP(i, n) \ cin >> a[i] >> b[i]; #define OUT(x) cout << (x) << endl; #define FOUT(x) cout << fixed << setprecision(15) << (x) << endl; #define ALL(a) (a).begin(), (a).end() #define SORT(a) sort(ALL(a)) #define RSORT(a) \ SORT(a); \ reverse(ALL(a)) #define DUMP(x) cout << #x << " = " << (x) << endl; #define DUMPA(a) \ cout << #a << " = {"; \ JOUT(ALL(a), ", ", cout) << "}" << endl; template <typename T> ostream &JOUT(T s, T e, string sep = " ", ostream &os = cout) { if (s != e) { os << *s; ++s; } while (s != e) { os << sep << *s; ++s; } return os; } ostream &YES(bool cond, string yes = "Yes", string no = "No", ostream &os = cout) { if (cond) { os << yes << endl; } else { os << no << endl; } return os; } template <typename T1, typename T2> ostream &operator<<(ostream &os, const pair<T1, T2> &p) { os << '(' << p.first << ", " << p.second << ')'; return os; } template <typename T> ostream &operator<<(ostream &os, const vector<T> &v) { os << '['; JOUT(ALL(v), ", ", os) << ']'; return os; } const ll INF = 1e18; const ll MOD = 1e9 + 7; #pragma endregion template #pragma region graph 0.2 template <typename W> struct graph { using E = pair<ll, W>; ll n; ll m; bool weighted; bool directed; vector<vector<E>> e; graph() {} graph(ll n, ll m = 0, bool weighted = false, bool directed = false) : n(n), m(m), directed(directed), weighted(weighted) { e.assign(n + 1, vector<E>()); } void add(ll i, ll j, W w = 1) { e[i].push_back(E(j, w)); if (not directed) { e[j].push_back(E(i, w)); } ++m; } vector<E> &operator[](int i) { return e[i]; } }; template <typename W> istream &operator>>(istream &is, graph<W> &G) { REP(i, G.m) { ll from, to, w; is >> from >> to; if (G.weighted) { is >> w; G.add(from, to, w); } else { G.add(from, to); } --G.m; } return is; } #pragma endregion graph #pragma region tree 0.1 template <typename W> struct tree { using E = pair<ll, W>; ll n; ll r; vector<E> p; vector<vector<E>> c; vi d; tree() {} tree(graph<W> &G, ll r = 1) : n(G.n), r(r) { p.assign(G.n + 1, E(-2, 0)); c.assign(G.n + 1, vector<E>()); d.assign(G.n + 1, 0); queue<ll> q; p[r] = E(-1, 0); q.push(r); while (!q.empty()) { ll i = q.front(); q.pop(); for (auto [j, w] : G[i]) { if (p[j].first == -2) { p[j] = E(i, w); c[i].push_back(E(j, w)); d[j] = d[i] + 1; q.push(j); } } } } E par(ll i) { return p[i]; } ll depth(ll i) { return d[i]; } vector<E> &operator[](int i) { return c[i]; } }; #pragma endregion tree #pragma region lca 0.1 struct lca { vvi p; vi d; ll m; lca() {} template <typename W> lca(tree<W> &T) { m = 1; ll n = T.n + 1; while (n > 1) { n >>= 1; ++m; } p.assign(T.n + 1, vi(m)); REP(i, T.n + 1) { p[i][0] = T.par(i).first; } REP(j, m - 1) { REP(i, T.n + 1) { if (p[i][j] < 0) { p[i][j + 1] = p[i][j]; } else { p[i][j + 1] = p[p[i][j]][j]; } } } d.assign(T.n + 1, 0); REP(i, T.n + 1) { d[i] = T.depth(i); } } ll operator()(ll i, ll j) { if (d[i] > d[j]) { swap(i, j); } REP(k, m) { if ((d[j] - d[i]) >> k & 1) { j = p[j][k]; } } if (i == j) { return i; } for (ll k = m - 1; k >= 0; --k) { if (p[i][k] != p[j][k]) { i = p[i][k]; j = p[j][k]; } } return p[i][0]; } }; #pragma endregion lca ll N; vii E; tree<ll> T; vector<vector<tuple<ll, ll, ll, ll>>> U; vi ans; vi cnt; vi sum; void f(ll i, ll s) { for (auto [j, k, x, y] : U[i]) { ans[j] += k * (s - sum[x] + cnt[x] * y); } for (auto [j, k] : T[i]) { auto [c, d] = E[k]; s += d; ++cnt[c]; sum[c] += d; f(j, s); sum[c] -= d; --cnt[c]; s -= d; } } int main() { cin >> N; IN(ll, Q); graph<ll> G(N); E.resize(N - 1); REP(i, N - 1) { IN(ll, a); IN(ll, b); IN(ll, c); IN(ll, d); E[i] = {c, d}; G.add(a, b, i); } T = tree<ll>(G); lca lca(T); U.resize(N + 1); REP(i, Q) { IN(ll, x); IN(ll, y); IN(ll, u); IN(ll, v); U[u].push_back({i, 1, x, y}); U[v].push_back({i, 1, x, y}); U[lca(u, v)].push_back({i, -2, x, y}); } ans.resize(Q); cnt.resize(N); sum.resize(N); f(1, 0); FOR(a, ans) { OUT(a); } }
[ "wotsushi@gmail.com" ]
wotsushi@gmail.com
74e8084ab1aa5cf59a239ed3e3e0ee4b7e48ca4d
38295d730791898c8a3c78bb5cbb10a662c25b90
/tc3-plc/beispiele/beispieleDriver.cpp
7fde06eb1e4185f17505047943cadb9663f28df5
[]
no_license
ansuro/twincat3demo
49cf8c753146d33bae3b553b8e65367397fb250b
2437ad952f34df4e596d0085df2c5e467ff9c104
refs/heads/master
2022-04-19T05:51:46.589813
2020-04-17T21:14:49
2020-04-17T21:14:49
254,726,268
0
0
null
null
null
null
UTF-8
C++
false
false
606
cpp
/////////////////////////////////////////////////////////////////////////////// // beispieleDriver.cpp #include "TcPch.h" #pragma hdrstop #include "beispieleDriver.h" #include "beispieleClassFactory.h" DECLARE_GENERIC_DEVICE(BEISPIELEDRV) IOSTATUS CbeispieleDriver::OnLoad( ) { TRACE(_T("CObjClassFactory::OnLoad()\n") ); m_pObjClassFactory = new CbeispieleClassFactory(); return IOSTATUS_SUCCESS; } VOID CbeispieleDriver::OnUnLoad( ) { delete m_pObjClassFactory; } unsigned long _cdecl CbeispieleDriver::BEISPIELEDRV_GetVersion( ) { return( (BEISPIELEDRV_Major << 8) | BEISPIELEDRV_Minor ); }
[ "ansuro@users.noreply.github.com" ]
ansuro@users.noreply.github.com
7b130c3387227ed5f4e8053da85cb6bc811393b8
5cb9dccbcccb8a2137368dd0615fe3e3c7761707
/simulations/kinova/devel/.private/moveit_msgs/include/moveit_msgs/ExecuteTrajectoryActionGoal.h
4d0fcbbaa84cad5bbc4334bea9224b8f4d09418c
[]
no_license
Simon-Steinmann/sim2real-modular-RL-project
b2467a393014e106043f6128a026f5eac934a83d
4027590ac94de2d5c914731c09efcf2f318b9ca3
refs/heads/master
2020-07-29T01:30:56.450919
2019-10-12T09:33:00
2019-10-12T09:33:00
209,605,548
4
1
null
null
null
null
UTF-8
C++
false
false
11,952
h
// Generated by gencpp from file moveit_msgs/ExecuteTrajectoryActionGoal.msg // DO NOT EDIT! #ifndef MOVEIT_MSGS_MESSAGE_EXECUTETRAJECTORYACTIONGOAL_H #define MOVEIT_MSGS_MESSAGE_EXECUTETRAJECTORYACTIONGOAL_H #include <string> #include <vector> #include <map> #include <ros/types.h> #include <ros/serialization.h> #include <ros/builtin_message_traits.h> #include <ros/message_operations.h> #include <std_msgs/Header.h> #include <actionlib_msgs/GoalID.h> #include <moveit_msgs/ExecuteTrajectoryGoal.h> namespace moveit_msgs { template <class ContainerAllocator> struct ExecuteTrajectoryActionGoal_ { typedef ExecuteTrajectoryActionGoal_<ContainerAllocator> Type; ExecuteTrajectoryActionGoal_() : header() , goal_id() , goal() { } ExecuteTrajectoryActionGoal_(const ContainerAllocator& _alloc) : header(_alloc) , goal_id(_alloc) , goal(_alloc) { (void)_alloc; } typedef ::std_msgs::Header_<ContainerAllocator> _header_type; _header_type header; typedef ::actionlib_msgs::GoalID_<ContainerAllocator> _goal_id_type; _goal_id_type goal_id; typedef ::moveit_msgs::ExecuteTrajectoryGoal_<ContainerAllocator> _goal_type; _goal_type goal; typedef boost::shared_ptr< ::moveit_msgs::ExecuteTrajectoryActionGoal_<ContainerAllocator> > Ptr; typedef boost::shared_ptr< ::moveit_msgs::ExecuteTrajectoryActionGoal_<ContainerAllocator> const> ConstPtr; }; // struct ExecuteTrajectoryActionGoal_ typedef ::moveit_msgs::ExecuteTrajectoryActionGoal_<std::allocator<void> > ExecuteTrajectoryActionGoal; typedef boost::shared_ptr< ::moveit_msgs::ExecuteTrajectoryActionGoal > ExecuteTrajectoryActionGoalPtr; typedef boost::shared_ptr< ::moveit_msgs::ExecuteTrajectoryActionGoal const> ExecuteTrajectoryActionGoalConstPtr; // constants requiring out of line definition template<typename ContainerAllocator> std::ostream& operator<<(std::ostream& s, const ::moveit_msgs::ExecuteTrajectoryActionGoal_<ContainerAllocator> & v) { ros::message_operations::Printer< ::moveit_msgs::ExecuteTrajectoryActionGoal_<ContainerAllocator> >::stream(s, "", v); return s; } } // namespace moveit_msgs namespace ros { namespace message_traits { // BOOLTRAITS {'IsFixedSize': False, 'IsMessage': True, 'HasHeader': True} // {'shape_msgs': ['/opt/ros/melodic/share/shape_msgs/cmake/../msg'], 'std_msgs': ['/opt/ros/melodic/share/std_msgs/cmake/../msg'], 'moveit_msgs': ['/home/acis/sim2real/simulations/kinova/devel/.private/moveit_msgs/share/moveit_msgs/msg', '/home/acis/sim2real/simulations/kinova/src/moveit_msgs/msg'], 'trajectory_msgs': ['/opt/ros/melodic/share/trajectory_msgs/cmake/../msg'], 'sensor_msgs': ['/opt/ros/melodic/share/sensor_msgs/cmake/../msg'], 'object_recognition_msgs': ['/opt/ros/melodic/share/object_recognition_msgs/cmake/../msg'], 'octomap_msgs': ['/opt/ros/melodic/share/octomap_msgs/cmake/../msg'], 'geometry_msgs': ['/opt/ros/melodic/share/geometry_msgs/cmake/../msg'], 'actionlib_msgs': ['/opt/ros/melodic/share/actionlib_msgs/cmake/../msg']} // !!!!!!!!!!! ['__class__', '__delattr__', '__dict__', '__doc__', '__eq__', '__format__', '__getattribute__', '__hash__', '__init__', '__module__', '__ne__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__sizeof__', '__str__', '__subclasshook__', '__weakref__', '_parsed_fields', 'constants', 'fields', 'full_name', 'has_header', 'header_present', 'names', 'package', 'parsed_fields', 'short_name', 'text', 'types'] template <class ContainerAllocator> struct IsFixedSize< ::moveit_msgs::ExecuteTrajectoryActionGoal_<ContainerAllocator> > : FalseType { }; template <class ContainerAllocator> struct IsFixedSize< ::moveit_msgs::ExecuteTrajectoryActionGoal_<ContainerAllocator> const> : FalseType { }; template <class ContainerAllocator> struct IsMessage< ::moveit_msgs::ExecuteTrajectoryActionGoal_<ContainerAllocator> > : TrueType { }; template <class ContainerAllocator> struct IsMessage< ::moveit_msgs::ExecuteTrajectoryActionGoal_<ContainerAllocator> const> : TrueType { }; template <class ContainerAllocator> struct HasHeader< ::moveit_msgs::ExecuteTrajectoryActionGoal_<ContainerAllocator> > : TrueType { }; template <class ContainerAllocator> struct HasHeader< ::moveit_msgs::ExecuteTrajectoryActionGoal_<ContainerAllocator> const> : TrueType { }; template<class ContainerAllocator> struct MD5Sum< ::moveit_msgs::ExecuteTrajectoryActionGoal_<ContainerAllocator> > { static const char* value() { return "36f350977c67bc94e8cd408452bad0f0"; } static const char* value(const ::moveit_msgs::ExecuteTrajectoryActionGoal_<ContainerAllocator>&) { return value(); } static const uint64_t static_value1 = 0x36f350977c67bc94ULL; static const uint64_t static_value2 = 0xe8cd408452bad0f0ULL; }; template<class ContainerAllocator> struct DataType< ::moveit_msgs::ExecuteTrajectoryActionGoal_<ContainerAllocator> > { static const char* value() { return "moveit_msgs/ExecuteTrajectoryActionGoal"; } static const char* value(const ::moveit_msgs::ExecuteTrajectoryActionGoal_<ContainerAllocator>&) { return value(); } }; template<class ContainerAllocator> struct Definition< ::moveit_msgs::ExecuteTrajectoryActionGoal_<ContainerAllocator> > { static const char* value() { return "# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n" "\n" "Header header\n" "actionlib_msgs/GoalID goal_id\n" "ExecuteTrajectoryGoal goal\n" "\n" "================================================================================\n" "MSG: std_msgs/Header\n" "# Standard metadata for higher-level stamped data types.\n" "# This is generally used to communicate timestamped data \n" "# in a particular coordinate frame.\n" "# \n" "# sequence ID: consecutively increasing ID \n" "uint32 seq\n" "#Two-integer timestamp that is expressed as:\n" "# * stamp.sec: seconds (stamp_secs) since epoch (in Python the variable is called 'secs')\n" "# * stamp.nsec: nanoseconds since stamp_secs (in Python the variable is called 'nsecs')\n" "# time-handling sugar is provided by the client library\n" "time stamp\n" "#Frame this data is associated with\n" "string frame_id\n" "\n" "================================================================================\n" "MSG: actionlib_msgs/GoalID\n" "# The stamp should store the time at which this goal was requested.\n" "# It is used by an action server when it tries to preempt all\n" "# goals that were requested before a certain time\n" "time stamp\n" "\n" "# The id provides a way to associate feedback and\n" "# result message with specific goal requests. The id\n" "# specified must be unique.\n" "string id\n" "\n" "\n" "================================================================================\n" "MSG: moveit_msgs/ExecuteTrajectoryGoal\n" "# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n" "# The trajectory to execute\n" "RobotTrajectory trajectory\n" "\n" "\n" "================================================================================\n" "MSG: moveit_msgs/RobotTrajectory\n" "trajectory_msgs/JointTrajectory joint_trajectory\n" "trajectory_msgs/MultiDOFJointTrajectory multi_dof_joint_trajectory\n" "\n" "================================================================================\n" "MSG: trajectory_msgs/JointTrajectory\n" "Header header\n" "string[] joint_names\n" "JointTrajectoryPoint[] points\n" "================================================================================\n" "MSG: trajectory_msgs/JointTrajectoryPoint\n" "# Each trajectory point specifies either positions[, velocities[, accelerations]]\n" "# or positions[, effort] for the trajectory to be executed.\n" "# All specified values are in the same order as the joint names in JointTrajectory.msg\n" "\n" "float64[] positions\n" "float64[] velocities\n" "float64[] accelerations\n" "float64[] effort\n" "duration time_from_start\n" "\n" "================================================================================\n" "MSG: trajectory_msgs/MultiDOFJointTrajectory\n" "# The header is used to specify the coordinate frame and the reference time for the trajectory durations\n" "Header header\n" "\n" "# A representation of a multi-dof joint trajectory (each point is a transformation)\n" "# Each point along the trajectory will include an array of positions/velocities/accelerations\n" "# that has the same length as the array of joint names, and has the same order of joints as \n" "# the joint names array.\n" "\n" "string[] joint_names\n" "MultiDOFJointTrajectoryPoint[] points\n" "\n" "================================================================================\n" "MSG: trajectory_msgs/MultiDOFJointTrajectoryPoint\n" "# Each multi-dof joint can specify a transform (up to 6 DOF)\n" "geometry_msgs/Transform[] transforms\n" "\n" "# There can be a velocity specified for the origin of the joint \n" "geometry_msgs/Twist[] velocities\n" "\n" "# There can be an acceleration specified for the origin of the joint \n" "geometry_msgs/Twist[] accelerations\n" "\n" "duration time_from_start\n" "\n" "================================================================================\n" "MSG: geometry_msgs/Transform\n" "# This represents the transform between two coordinate frames in free space.\n" "\n" "Vector3 translation\n" "Quaternion rotation\n" "\n" "================================================================================\n" "MSG: geometry_msgs/Vector3\n" "# This represents a vector in free space. \n" "# It is only meant to represent a direction. Therefore, it does not\n" "# make sense to apply a translation to it (e.g., when applying a \n" "# generic rigid transformation to a Vector3, tf2 will only apply the\n" "# rotation). If you want your data to be translatable too, use the\n" "# geometry_msgs/Point message instead.\n" "\n" "float64 x\n" "float64 y\n" "float64 z\n" "================================================================================\n" "MSG: geometry_msgs/Quaternion\n" "# This represents an orientation in free space in quaternion form.\n" "\n" "float64 x\n" "float64 y\n" "float64 z\n" "float64 w\n" "\n" "================================================================================\n" "MSG: geometry_msgs/Twist\n" "# This expresses velocity in free space broken into its linear and angular parts.\n" "Vector3 linear\n" "Vector3 angular\n" ; } static const char* value(const ::moveit_msgs::ExecuteTrajectoryActionGoal_<ContainerAllocator>&) { return value(); } }; } // namespace message_traits } // namespace ros namespace ros { namespace serialization { template<class ContainerAllocator> struct Serializer< ::moveit_msgs::ExecuteTrajectoryActionGoal_<ContainerAllocator> > { template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) { stream.next(m.header); stream.next(m.goal_id); stream.next(m.goal); } ROS_DECLARE_ALLINONE_SERIALIZER }; // struct ExecuteTrajectoryActionGoal_ } // namespace serialization } // namespace ros namespace ros { namespace message_operations { template<class ContainerAllocator> struct Printer< ::moveit_msgs::ExecuteTrajectoryActionGoal_<ContainerAllocator> > { template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::moveit_msgs::ExecuteTrajectoryActionGoal_<ContainerAllocator>& v) { s << indent << "header: "; s << std::endl; Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + " ", v.header); s << indent << "goal_id: "; s << std::endl; Printer< ::actionlib_msgs::GoalID_<ContainerAllocator> >::stream(s, indent + " ", v.goal_id); s << indent << "goal: "; s << std::endl; Printer< ::moveit_msgs::ExecuteTrajectoryGoal_<ContainerAllocator> >::stream(s, indent + " ", v.goal); } }; } // namespace message_operations } // namespace ros #endif // MOVEIT_MSGS_MESSAGE_EXECUTETRAJECTORYACTIONGOAL_H
[ "simon.steinmann91@gmail.com" ]
simon.steinmann91@gmail.com
077cc243c398bf672e082723c277b681c1d0a568
32123c3af30ed0a8c551e2672b576aa7cb207b40
/BJ/Hand.cpp
0cd0c0ba288a79d2b0f203013fccff1f37dbd4ea
[]
no_license
DaniilMD/OOP
116153a05cadae2503ae41a936b5d357e286b184
e5603e86d53eeae46000354a2974258b2c136205
refs/heads/master
2022-12-10T06:03:39.820545
2020-09-15T08:39:34
2020-09-15T08:39:34
285,548,844
0
0
null
null
null
null
UTF-8
C++
false
false
585
cpp
#include "Hand.h" void Hand::Add(Card* pCard) { m_Cards.push_back(pCard); } void Hand::Clear() { m_Cards.clear(); } int Hand::GetTotal() const { int sum = 0; int aces = 0; for (unsigned int i = 0; i < m_Cards.size(); i++) { int value = m_Cards[i]->GetValue(); if (value >= two && value <= nine) sum += value; else if (value >= jack && value <= king) sum += 10; else if (value == ace) { aces++; sum += 1; } } if (sum + aces * 10 <= 21) sum += aces * 10; return (sum); } Hand::~Hand() { m_Cards.clear(); }
[ "noreply@github.com" ]
noreply@github.com
0b3706fd3cfea61984e6ac273a88497bbd0c78f8
210f70d9490160b35ebbc4764f8054a83f448761
/contracts/eosiolib_native/math/fabs.cpp
93e0107c8631f7b93c8412baffed8bdd04033fd6
[ "MIT" ]
permissive
zdfjt/pyeos
3efbe4ff3531fb76705f9ed3f4b33e8166d09b18
4f04eb982c86c1fdb413084af77c713a6fda3070
refs/heads/master
2021-10-09T00:14:15.181468
2018-12-19T04:13:02
2018-12-19T04:13:02
null
0
0
null
null
null
null
UTF-8
C++
false
false
160
cpp
#include <stdint.h> #include "../double.hpp" Double fabs(Double x) { union {double f; uint64_t i;} u; u.i = x._v.i; u.i &= -1ULL/2; return u.f; }
[ "learnforpractice@gmail.com" ]
learnforpractice@gmail.com
29a8592716bf7cbf72a6363b59e8d79f953cc925
b777a42345d3a85914ece0a181ffd82a79082c8d
/SubscaleGPU/Clustering/Clustering.h
ea7981ae803778b5d828d95d9cfcc46dfc22ff00
[]
no_license
KieferN/SUBSCALE_GPU
6d16837b466e2381bca780d8c9f64d8425d220fa
1dceeaec3421459426ee14d85264ceecc56d1b8f
refs/heads/master
2022-12-29T04:01:33.821363
2020-10-16T20:54:21
2020-10-16T20:54:21
304,707,182
0
1
null
null
null
null
UTF-8
C++
false
false
343
h
#pragma once #include "../Tables/LocalSubspaceTable.cuh" #include "../SubscaleTypes.h" // class for final clustering class Clustering { private: int minPoints; double epsilon; public: Clustering(int minPoints, double epsilon); std::vector<Cluster> calculateClusters(vector<DataPoint> points, LocalSubspaceTable* clusterCandidates); };
[ "kiefer.nicolas@gmx.de" ]
kiefer.nicolas@gmx.de
bceda222dc5fabcc81eb6cfab572053109f353da
5cf898435ed5675fa3fa55e6e25c2ad0663324b0
/Hearts Of Greed/Project_HeartsOfGreed/ParticleSystem.cpp
9ded525fdd759f211cb3799dc9d74a4e2d2e7aa0
[ "MIT" ]
permissive
x-mat-studio/HeartsOfGreed
6b9ad93885f9621239459756151f0b98a0221491
2582b807627a32d6d73e5940525a1dcd13054636
refs/heads/master
2023-06-01T13:30:53.262178
2021-06-18T10:24:34
2021-06-18T10:24:34
243,086,903
3
1
MIT
2020-06-15T06:42:34
2020-02-25T19:41:45
C
UTF-8
C++
false
false
1,882
cpp
#include "ParticleSystem.h" #include "Emitter.h" #include "Particle.h" #include "EventManager.h" ParticleSystem::ParticleSystem() : Entity(fMPoint(0, 0), ENTITY_TYPE::PARTICLE_SYSTEM, ENTITY_ALIGNEMENT::NEUTRAL, nullptr, 0, 0), active(false) {} ParticleSystem::ParticleSystem(float x, float y, ParticleSystem* copy, bool active) : Entity(fMPoint(x, y), ENTITY_TYPE::PARTICLE_SYSTEM, ENTITY_ALIGNEMENT::NEUTRAL, nullptr, 0, 0), emitterVector(copy->emitterVector), active(active) { Move(position.x, position.y); } ParticleSystem::~ParticleSystem() { emitterVector.clear(); } bool ParticleSystem::Update(float dt) { int numEmiters = emitterVector.size(); for (int i = 0; i < numEmiters; i++) { emitterVector[i].Update(dt); } return true; } bool ParticleSystem::PostUpdate(float dt) { int numEmiters = emitterVector.size(); for (int i = 0; i < numEmiters; i++) { emitterVector[i].PostUpdate(dt); } return true; } void ParticleSystem::PushEmiter(Emitter& emiter) { emitterVector.push_back(emiter); } void ParticleSystem::Desactivate() { int numEmiters = emitterVector.size(); for (int i = 0; i < numEmiters; i++) { emitterVector[i].Desactivate(); } active = false; } void ParticleSystem::Activate() { int numEmiters = emitterVector.size(); for (int i = 0; i < numEmiters; i++) { emitterVector[i].Activate(); } active = true; } bool ParticleSystem::IsActive() { return active; } //Move the particle system, and its emiters in relation to the particle system void ParticleSystem::Move(int x, int y) { position.x = x; position.y = y; if (active) { int numEmiters = emitterVector.size(); for (int i = 0; i < numEmiters; i++) { emitterVector[i].SetPosition(x, y); } } } void ParticleSystem::Die() { toDelete = true; app->eventManager->GenerateEvent(EVENT_ENUM::ENTITY_DEAD, EVENT_ENUM::NULL_EVENT); }
[ "47975174+jose-tello@users.noreply.github.com" ]
47975174+jose-tello@users.noreply.github.com
da47b2ff32875c6908718e08b7fae35f3514fbdf
1f7cdf773f1e9ec93f3458af8f2e086a19eecad3
/1019SystemyPozycyjne/main.cpp
a74740892369f921b2f5ec79a93921494dde261e
[]
no_license
konekwronek/SPOJ
a87fb67c1c4b331123388565f04277304b532d3b
6efae91ed90a1cf7a94277c65becb35add9de690
refs/heads/master
2020-03-20T08:41:20.880674
2018-06-14T13:23:06
2018-06-14T13:23:06
137,316,238
0
0
null
null
null
null
UTF-8
C++
false
false
804
cpp
#include <iostream> using namespace std; class numsys{ char cnum[10]; int number; int length; public: void SetNumber(int n){number = n;} void GetNumber(); void ToSystem(int sys); }; void numsys::GetNumber(){ for(int i = length - 1; i >= 0; i--){ cout << cnum[i]; } } void numsys::ToSystem(int sys){ int num, cyf; num = number; length = 0; do{ cyf = num % sys; if(cyf < 10)cnum[length] = cyf + 48; else cnum[length] = cyf + 55; length++; num /= sys; }while(num); } int main() { int t, num; numsys number; cin >> t; while(t > 0){ cin >> num; number.SetNumber(num); number.ToSystem(16); number.GetNumber(); cout << " "; number.ToSystem(11); number.GetNumber(); cout << "\n"; t--; } return 0; }
[ "32572821+konekwronek@users.noreply.github.com" ]
32572821+konekwronek@users.noreply.github.com
eb8dc9e0afc02cd9785b6475307669c79e0bddb2
4db134e702985a4e57bc9bf19b6a73da9b295dc7
/GLImac-Template/TP3/exo3_structure_vertex.cpp
abfb290f1672c20aa7a663b94e876129113608e1
[]
no_license
OMeyer973/IMAC_s3_opengl
e433f5e915c27b5a07f60178b250bbd9c49d95b4
a9425d01eb4455fbc78e63ae296c0e056b81e3dc
refs/heads/master
2020-04-03T15:50:27.137693
2018-12-03T11:51:12
2018-12-03T11:51:12
155,379,892
0
0
null
null
null
null
UTF-8
C++
false
false
3,960
cpp
#include <glimac/SDLWindowManager.hpp> #include <glimac/Program.hpp> #include <glimac/FilePath.hpp> #include <glimac/glm.hpp> #include <GL/glew.h> #include <iostream> #include <cstddef> using namespace glimac; struct Vertex2DColor{ Vertex2DColor(); Vertex2DColor(const glm::vec2 &vecPos, const glm::vec3 &vecCol) : position(vecPos), color(vecCol){}; // constructeur glm::vec2 position; glm::vec3 color; }; int main(int argc, char** argv) { // Initialize SDL and open a window SDLWindowManager windowManager(800, 600, "GLImac"); // Initialize glew for OpenGL3+ support GLenum glewInitError = glewInit(); if (GLEW_OK != glewInitError) { std::cerr << glewGetErrorString(glewInitError) << std::endl; return EXIT_FAILURE; } std::cout << "OpenGL Version : " << glGetString(GL_VERSION) << std::endl; std::cout << "GLEW Version : " << glewGetString(GLEW_VERSION) << std::endl; /********************************* * INITIALIZATION CODE *********************************/ // Charger et compiler les shaders FilePath applicationPath(argv[0]); Program program = loadProgram(applicationPath.dirPath() + "shaders/triangle.vs.glsl", applicationPath.dirPath() + "shaders/triangle.fs.glsl"); program.use(); // Indiquer a OpenGL de les utiliser // Création d'un seul VBO = contient les données GLuint vbo; glGenBuffers(1, &vbo); //Binding d'un VBO sur la cible GL_ARRAY_BUFFER: permet de la modifier glBindBuffer(GL_ARRAY_BUFFER, vbo); //On peut à présent modifier le VBO en passant par la cible //Coordonnée triangle Vertex2DColor vertices[] = { Vertex2DColor(glm::vec2(-0.5, -0.5), glm::vec3(1, 0, 0)), Vertex2DColor(glm::vec2(0.5, -0.5), glm::vec3(0, 1, 0)), Vertex2DColor(glm::vec2(0, 0.5), glm::vec3(0, 0, 1)) }; //Envoi des données glBufferData(GL_ARRAY_BUFFER, 3 * sizeof (Vertex2DColor), vertices, GL_STATIC_DRAW); //On utilise GL_STATIC_DRAW pour un buffer dont les données ne changeront jamais. //Débindage, pour éviter de remodifier le VBO par erreur. glBindBuffer(GL_ARRAY_BUFFER, 0); //Création du VAO (Vertex Array Object) = décrit les données //décrit pour chaque attribut de sommet (position, couleur, normale, etc.) la manière dont ils sont rangés dans un ou plusieurs VBOs GLuint vao; glGenVertexArrays(1, &vao); //Binding du VAO glBindVertexArray(vao); //Activation des attributs de vertex const GLuint VERTEX_ATTR_POSITION = 3; const GLuint VERTEX_ATTR_COLOR = 8; glEnableVertexAttribArray(VERTEX_ATTR_POSITION); glEnableVertexAttribArray(VERTEX_ATTR_COLOR); //Binding d'un VBO sur la cible GL_ARRAY_BUFFER: glBindBuffer(GL_ARRAY_BUFFER, vbo); //Spécification des attributs de vertex //glVertexAttribPointer(GLuint index,GLint size, GLenum type, GLboolean normalized, GLsizei stride, const GLvoid* pointer); glVertexAttribPointer(VERTEX_ATTR_POSITION, 2, GL_FLOAT, GL_FALSE, sizeof (Vertex2DColor), (const GLvoid*) offsetof(Vertex2DColor, position)); glVertexAttribPointer(VERTEX_ATTR_COLOR, 3, GL_FLOAT, GL_FALSE, sizeof (Vertex2DColor), (const GLvoid*) offsetof(Vertex2DColor, color)); //Débindage glBindBuffer(GL_ARRAY_BUFFER, 0); glBindVertexArray(0); // Application loop: bool done = false; while (!done) { // Event loop: SDL_Event e; while (windowManager.pollEvent(e)) { if (e.type == SDL_QUIT) { done = true; // Leave the loop after this iteration } } /********************************* * RENDERING CODE *********************************/ //glClear(GLbitfield mask); glClear(GL_COLOR_BUFFER_BIT); glBindVertexArray(vao); glDrawArrays(GL_TRIANGLES, 0, 3); glBindVertexArray(0); // Update the display windowManager.swapBuffers(); } //libération des ressources glDeleteBuffers(1, &vbo); glDeleteVertexArrays(1, &vao); return EXIT_SUCCESS; }
[ "olivier.meyer973@gmail.com" ]
olivier.meyer973@gmail.com
76a2e4005cf82add05b390fc94494551c217f0ba
401f268de94e642daceae5f52bb8e5679d905dd2
/Level1/13.문자열다루기기본/13.문자열다루기기본.cpp
0d84da00dfc3a9a3b683a65b44544a9e080d2d36
[]
no_license
getState/Programmers-Algorithm
4c539ac25d72ca90d670be345164816635f7c1f2
f70cbef8d3325949935a9a22b0ff8639bbf241bc
refs/heads/master
2022-11-26T01:46:58.326560
2020-07-24T05:49:17
2020-07-24T05:49:17
275,632,488
0
0
null
null
null
null
UTF-8
C++
false
false
363
cpp
#include <string> #include <vector> using namespace std; bool solution(string s) { bool answer = true; if(s.size()==4 || s.size()==6){ answer = true; }else{ return false; } for(int i = 0 ; i<s.size() ; i++){ if(s[i]<'0' || s[i]>'9'){ answer = false; break; } } return answer; }
[ "asj4468972@gmail.com" ]
asj4468972@gmail.com
c62a7c2b5ee3a88ecadb34410a5976e5d55bf794
6af8c27c35b601bb853e2502a438bf4e9b4e5175
/login_server/user_opt.cpp
40b9890df3007f9ace32faa64977eedaa7032e70
[]
no_license
Czeslaw20/MyGameServer
c65ff523b801dfb113f48ffa66dd64bc157f8aa4
d80c7b8abaecbd591d33dc84d3872a3660159d3e
refs/heads/master
2022-12-17T23:49:40.055845
2020-09-26T15:50:53
2020-09-26T15:50:53
294,658,722
0
0
null
null
null
null
UTF-8
C++
false
false
1,646
cpp
#include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <sys/types.h> #include <sys/wait.h> #include <string> using namespace std; void AddUser(const char *_name, const char *_password) { char buf[1024] = {0}; sprintf(buf, "./add_user.sh %s %s", _name, _password); system(buf); } void AddUserMd5(const char *_name, const char *_password) { char buf[1024] = {0}; sprintf(buf, "echo '%s:%s' >> userfile", _name, _password); system(buf); } bool CheckUser(const char *_name, const char *_password_dgst) { bool bRet = false; if (fork() > 0) { int iStatus = 0; wait(&iStatus); if (iStatus == 0) { bRet = true; } } else { execlp("./check_user.sh", "./check_user.sh", _name, _password_dgst, NULL); } return bRet; } void DelUser(const char *_name) { char buf[1024] = {0}; //注意要把脚本文件权限改为755,否则用不了!!!!! sprintf(buf, "./del_user.sh %s", _name); system(buf); } string create_container() { string ret; FILE *pf = popen("./create_room.sh", "r"); if (pf != NULL) { char buf[1024]; fread(buf, 1, sizeof(buf), pf); ret.append(buf); ret.pop_back(); pclose(pf); } return ret; } bool check_room(const char *_room_no) { bool bRet = false; if (fork() > 0) { int iStatus = 0; wait(&iStatus); if (iStatus == 0) { bRet = true; } } else { execlp("./check_room.sh", "./check_room.sh", _room_no, NULL); } return bRet; }
[ "1214665388@qq.com" ]
1214665388@qq.com
ed5a1be02519fabf5189e10ace9da08bb5c28309
7ce3c4db8c565883c5d6c1000824d67d8d104f62
/OpenCLRayTracer/RayTracer/RayTracer.h
435c1d940981d09e74234a8e1618ce56cdf6f02f
[ "MIT" ]
permissive
JSlowgrove/GCP-Assignment-2-OpenCL-Ray-Tracer
455a758c28c94dd5206d3d5a3fbfad997b90cdf7
df1c06d8b628bd63b2b530a1729612610ed7c36e
refs/heads/master
2021-09-27T01:56:54.015807
2018-11-05T12:49:30
2018-11-05T12:49:30
151,534,829
0
0
null
null
null
null
UTF-8
C++
false
false
2,419
h
#pragma once #include <vector> #include "glm/glm.hpp" #include "Ray.h" #include "Triangle.h" #include "Sphere.h" #include "Box.h" //Macros // Ref: http://cs.lth.se/tomas_akenine-moller #define EPSILON 0.000001 #define CROSS(dest,v1,v2) \ dest[0]=v1[1]*v2[2]-v1[2]*v2[1]; \ dest[1]=v1[2]*v2[0]-v1[0]*v2[2]; \ dest[2]=v1[0]*v2[1]-v1[1]*v2[0]; #define DOT(v1,v2) (v1[0]*v2[0]+v1[1]*v2[1]+v1[2]*v2[2]) #define SUB(dest,v1,v2) \ dest[0]=v1[0]-v2[0]; \ dest[1]=v1[1]-v2[1]; \ dest[2]=v1[2]-v2[2]; namespace RayTracer { //Ref: http://cs.lth.se/tomas_akenine-moller int intersectTriangle(double orig[3], double dir[3], double vert0[3], double vert1[3], double vert2[3], double *t, double *u, double *v); int rayTriangleIntersect(glm::vec4& rayOrigin, glm::vec4& rayDirection, glm::vec4& a, glm::vec4& b, glm::vec4& c, glm::vec4& intersectionPoint, float& distance); std::vector<unsigned char> rayTraceBoxes(std::vector<Box> boxes, glm::vec2 screenDim, glm::vec4 rayDirection, bool useOpenCL); std::vector<unsigned char> runRayTrace(unsigned int xLoopNum, unsigned int yLoopNum, unsigned int numberOfBoxes, glm::vec4 rayDirection, std::vector<glm::vec4> vertices, std::vector<glm::vec4> colours); std::vector<unsigned char> runOpenCLRayTrace(unsigned int xLoopNum, unsigned int yLoopNum, unsigned int numberOfBoxes, glm::vec4 rayDirection, std::vector<glm::vec4> vertices, std::vector<glm::vec4> colours, int numOfVerts, int numOfColours); // //A function to test for a ray triangle intersection // int rayTriangleIntersect(Ray& ray, Triangle& triangle, glm::vec3& intersectionPoint); // // //ray trace a triangle // std::vector<unsigned char> rayTrace2DTriangle(Triangle triangle, glm::vec2 screenDim, glm::vec3 colour); // // //ray trace a sphere // std::vector<unsigned char> rayTraceSphere(Sphere sphere, glm::vec2 screenDim, glm::vec3 colour); // // //ray trace a box // std::vector<unsigned char> rayTraceBox(Box box, glm::vec2 screenDim, glm::vec3 colour); // // //ray trace a triangle // int rayTriangleIntersect(Ray& ray, glm::vec4& a, glm::vec4& b, glm::vec4& c, glm::vec3& intersectionPoint); // // int rayTriangleIntersect(Ray& ray, glm::vec4& a, glm::vec4& b, glm::vec4& c, glm::vec3& intersectionPoint, float& distance); // std::vector<unsigned char> rayTraceBoxes(std::vector<Box> boxes, glm::vec2 screenDim); };
[ "i7218850@bournemouth.ac.uk" ]
i7218850@bournemouth.ac.uk