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
15618a727d0bde2a97adb952fbdd6d9fdc212918
b367fe5f0c2c50846b002b59472c50453e1629bc
/xbox_leak_may_2020/xbox trunk/xbox/private/online/xodash/XODashLib/xcdplay.cpp
caba5af6bc6829c7e030165bb2776c9952a74080
[]
no_license
sgzwiz/xbox_leak_may_2020
11b441502a659c8da8a1aa199f89f6236dd59325
fd00b4b3b2abb1ea6ef9ac64b755419741a3af00
refs/heads/master
2022-12-23T16:14:54.706755
2020-09-27T18:24:48
2020-09-27T18:24:48
null
0
0
null
null
null
null
UTF-8
C++
false
false
4,328
cpp
#include "std.h" #include "utilities.h" #include "xcdplay.h" #include "ntiosvc.h" extern CNtIoctlCdromService g_cdrom; XCDPlayer::XCDPlayer() : m_streamer(&g_cdrom) { m_dwStartPosition = 0; m_dwStopPosition = 0; m_pvBuffer = NULL; } XCDPlayer::~XCDPlayer() { if (m_hPlayThread != NULL) { if (m_hTerminate != NULL) SetEvent(m_hTerminate); WaitForSingleObject(m_hPlayThread, INFINITE); } } HRESULT XCDPlayer::Initialize(int nTrack, WAVEFORMATEX* pFormat) { HRESULT hr = S_OK; if (!SelectTrack(nTrack) ) { return E_INVALIDARG; } ZeroMemory(pFormat, sizeof (WAVEFORMATEX)); pFormat->wFormatTag = WAVE_FORMAT_PCM; pFormat->nChannels = 2; pFormat->nSamplesPerSec = 44100; pFormat->wBitsPerSample = 16; pFormat->nBlockAlign = pFormat->wBitsPerSample / 8 * pFormat->nChannels; pFormat->nAvgBytesPerSec = pFormat->nSamplesPerSec * pFormat->nBlockAlign; hr = CAudioPump::Initialize(0, pFormat, BYTES_PER_CHUNK, CD_AUDIO_SEGMENTS_PER_BUFFER); if(FAILED(hr)) { DbgPrint("XCDPlayer::Initialize - fail to init AudioPump"); return hr; } m_pDSBuffer->SetHeadroom(0); return hr; } // NOTE: This is called from a secondary thread! int XCDPlayer::GetData(BYTE* pbBuffer, int cbBuffer) { const DWORD dwPosition = GetPosition(); if (dwPosition >= m_dwStopPosition) return 0; // all done! if (dwPosition + ((cbBuffer + CDAUDIO_BYTES_PER_FRAME - 1) / CDAUDIO_BYTES_PER_FRAME) >= m_dwStopPosition) cbBuffer = (m_dwStopPosition - dwPosition) * CDAUDIO_BYTES_PER_FRAME; int nRead = m_streamer.Read(pbBuffer, cbBuffer); if (nRead <= 0) return nRead; m_pvBuffer = pbBuffer; return nRead; } /* void XCDPlayer::Seek(BOOL fForward) { DWORD dwCurPosition; dwCurPosition = GetPosition(); if (fForward) { dwCurPosition += CDAUDIO_FRAMES_PER_SECOND; DWORD dwLastFrame = g_cdrom.GetTrackFrame(g_cdrom.GetTrackCount()); if (dwCurPosition >= dwLastFrame) { dwCurPosition -= dwLastFrame - g_cdrom.GetTrackFrame(0); } } else { dwCurPosition -= CDAUDIO_FRAMES_PER_SECOND; if (dwCurPosition < g_cdrom.GetTrackFrame(0)) { dwCurPosition += g_cdrom.GetTrackFrame(g_cdrom.GetTrackCount()) - g_cdrom.GetTrackFrame(0); } } SetPosition(dwCurPosition); } */ void XCDPlayer::Stop() { CAudioPump::Stop(); m_streamer.SetFrame(m_dwStartPosition); } float XCDPlayer::GetPlaybackLength() { DWORD dwLength = m_dwStopPosition - m_dwStartPosition; return (float)dwLength / CDAUDIO_FRAMES_PER_SECOND; } float XCDPlayer::GetPlaybackTime() { // Keep the UI from displaying playback time past the end of the song, even if we // play a little silence after the song. float playbackTime = CAudioPump::GetPlaybackTime(); float length = GetPlaybackLength(); if(playbackTime > length){ playbackTime = length; } return playbackTime; } void* XCDPlayer::GetSampleBuffer() { return m_pvBuffer; } DWORD XCDPlayer::GetSampleBufferSize() { return BYTES_PER_CHUNK; } void XCDPlayer::SetPosition(DWORD dwPosition) { WaitForSingleObject(m_hMutex, INFINITE); m_streamer.SetFrame(dwPosition); ReleaseMutex(m_hMutex); } DWORD XCDPlayer::GetPosition() { WaitForSingleObject(m_hMutex, INFINITE); DWORD dw = m_streamer.GetFrame(); ReleaseMutex(m_hMutex); return dw; } bool XCDPlayer::SelectTrack(int nTrack) { m_nCurrentTrack = nTrack; DbgPrint("XCDPlayer::Initialize()\n"); if (!g_cdrom.IsOpen()) { DbgPrint("Cannot open CD player; g_cdrom is not open!\n"); return false; } // BLOCK: Select track { m_nTotalTracks = g_cdrom.GetTrackCount(); ASSERT(m_nTotalTracks > 0); if (nTrack < 0 || nTrack >= m_nTotalTracks) { DbgPrint("XCDPlayer::Initialize invalid track %d\n", nTrack); return false; } m_dwStartPosition = g_cdrom.GetTrackFrame(nTrack); m_dwStopPosition = g_cdrom.GetTrackFrame(nTrack + 1); m_streamer.SetFrame(m_dwStartPosition); } return true; } void XCDPlayer::OnAudioEnd() { m_nCurrentTrack++; if (m_nCurrentTrack >= m_nTotalTracks) { m_nCurrentTrack = 0; } else { if (SelectTrack(m_nCurrentTrack)) { CAudioPump::Play(); } } }
[ "benjamin.barratt@icloud.com" ]
benjamin.barratt@icloud.com
ee8f2054a2c3e4c6dd9a4bd4447c60fe7890fe88
cd9ce6b6e0539815d03b890097033c2a80aeb790
/PlayRho/Dynamics/Joints/RopeJoint.cpp
9aa9691c83d0294a4a60b79fb8902b7c8cdcd20d
[ "Zlib" ]
permissive
godinj/PlayRho
3f8277a48f45a11c4eaef49436defbea3306d08d
f6f19598a8fca67e10a574faa9bc732d1bd20a2e
refs/heads/master
2022-12-09T12:29:16.551689
2020-09-19T03:31:45
2020-09-19T03:31:45
296,776,046
0
0
Zlib
2020-09-19T03:08:56
2020-09-19T03:08:55
null
UTF-8
C++
false
false
8,302
cpp
/* * Original work Copyright (c) 2007-2011 Erin Catto http://www.box2d.org * Modified work Copyright (c) 2017 Louis Langholtz https://github.com/louis-langholtz/PlayRho * * This software is provided 'as-is', without any express or implied * warranty. In no event will the authors be held liable for any damages * arising from the use of this software. * * Permission is granted to anyone to use this software for any purpose, * including commercial applications, and to alter it and redistribute it * freely, subject to the following restrictions: * * 1. The origin of this software must not be misrepresented; you must not * claim that you wrote the original software. If you use this software * in a product, an acknowledgment in the product documentation would be * appreciated but is not required. * 2. Altered source versions must be plainly marked as such, and must not be * misrepresented as being the original software. * 3. This notice may not be removed or altered from any source distribution. */ #include <PlayRho/Dynamics/Joints/RopeJoint.hpp> #include <PlayRho/Dynamics/Joints/JointVisitor.hpp> #include <PlayRho/Dynamics/Body.hpp> #include <PlayRho/Dynamics/StepConf.hpp> #include <PlayRho/Dynamics/Contacts/ContactSolver.hpp> #include <PlayRho/Dynamics/Contacts/BodyConstraint.hpp> #include <algorithm> namespace playrho { namespace d2 { // Limit: // C = norm(pB - pA) - L // u = (pB - pA) / norm(pB - pA) // Cdot = dot(u, vB + cross(wB, rB) - vA - cross(wA, rA)) // J = [-u -cross(rA, u) u cross(rB, u)] // K = J * invM * JT // = invMassA + invIA * cross(rA, u)^2 + invMassB + invIB * cross(rB, u)^2 RopeJoint::RopeJoint(const RopeJointConf& def): Joint{def}, m_localAnchorA{def.localAnchorA}, m_localAnchorB{def.localAnchorB}, m_maxLength{def.maxLength} { } void RopeJoint::Accept(JointVisitor& visitor) const { visitor.Visit(*this); } void RopeJoint::Accept(JointVisitor& visitor) { visitor.Visit(*this); } void RopeJoint::InitVelocityConstraints(BodyConstraintsMap& bodies, const StepConf& step, const ConstraintSolverConf& conf) { auto& bodyConstraintA = At(bodies, GetBodyA()); auto& bodyConstraintB = At(bodies, GetBodyB()); const auto invMassA = bodyConstraintA->GetInvMass(); const auto invRotInertiaA = bodyConstraintA->GetInvRotInertia(); const auto posA = bodyConstraintA->GetPosition(); auto velA = bodyConstraintA->GetVelocity(); const auto invMassB = bodyConstraintB->GetInvMass(); const auto invRotInertiaB = bodyConstraintB->GetInvRotInertia(); const auto posB = bodyConstraintB->GetPosition(); auto velB = bodyConstraintB->GetVelocity(); const auto qA = UnitVec::Get(posA.angular); const auto qB = UnitVec::Get(posB.angular); m_rA = Rotate(m_localAnchorA - bodyConstraintA->GetLocalCenter(), qA); m_rB = Rotate(m_localAnchorB - bodyConstraintB->GetLocalCenter(), qB); const auto posDelta = Length2{(posB.linear + m_rB) - (posA.linear + m_rA)}; const auto uvresult = UnitVec::Get(posDelta[0], posDelta[1]); const auto uv = std::get<UnitVec>(uvresult); m_length = std::get<Length>(uvresult); const auto C = m_length - m_maxLength; m_state = (C > 0_m)? e_atUpperLimit: e_inactiveLimit; if (m_length > conf.linearSlop) { m_u = uv; } else { m_u = UnitVec::GetZero(); m_mass = 0_kg; m_impulse = 0; return; } // Compute effective mass. const auto crA = Cross(m_rA, m_u); const auto crB = Cross(m_rB, m_u); const auto invRotMassA = InvMass{invRotInertiaA * Square(crA) / SquareRadian}; const auto invRotMassB = InvMass{invRotInertiaB * Square(crB) / SquareRadian}; const auto invMass = invMassA + invMassB + invRotMassA + invRotMassB; m_mass = (invMass != InvMass{0}) ? Real{1} / invMass : 0_kg; if (step.doWarmStart) { // Scale the impulse to support a variable time step. m_impulse *= step.dtRatio; const auto P = m_impulse * m_u; // L * M * L T^-1 / QP is: L^2 M T^-1 QP^-1 which is: AngularMomentum. const auto crossAP = AngularMomentum{Cross(m_rA, P) / Radian}; const auto crossBP = AngularMomentum{Cross(m_rB, P) / Radian}; // L * M * L T^-1 is: L^2 M T^-1 velA -= Velocity{bodyConstraintA->GetInvMass() * P, invRotInertiaA * crossAP}; velB += Velocity{bodyConstraintB->GetInvMass() * P, invRotInertiaB * crossBP}; } else { m_impulse = 0; } bodyConstraintA->SetVelocity(velA); bodyConstraintB->SetVelocity(velB); } bool RopeJoint::SolveVelocityConstraints(BodyConstraintsMap& bodies, const StepConf& step) { auto& bodyConstraintA = At(bodies, GetBodyA()); auto& bodyConstraintB = At(bodies, GetBodyB()); auto velA = bodyConstraintA->GetVelocity(); auto velB = bodyConstraintB->GetVelocity(); // Cdot = dot(u, v + cross(w, r)) const auto vpA = velA.linear + GetRevPerpendicular(m_rA) * (velA.angular / Radian); const auto vpB = velB.linear + GetRevPerpendicular(m_rB) * (velB.angular / Radian); const auto C = m_length - m_maxLength; const auto vpDelta = LinearVelocity2{vpB - vpA}; // Predictive constraint. const auto Cdot = LinearVelocity{Dot(m_u, vpDelta)} + ((C < 0_m)? LinearVelocity{step.GetInvTime() * C}: 0_mps); auto impulse = -m_mass * Cdot; const auto oldImpulse = m_impulse; m_impulse = std::min(0_Ns, m_impulse + impulse); impulse = m_impulse - oldImpulse; const auto P = impulse * m_u; // L * M * L T^-1 / QP is: L^2 M T^-1 QP^-1 which is: AngularMomentum. const auto crossAP = AngularMomentum{Cross(m_rA, P) / Radian}; const auto crossBP = AngularMomentum{Cross(m_rB, P) / Radian}; // L * M * L T^-1 is: L^2 M T^-1 velA -= Velocity{bodyConstraintA->GetInvMass() * P, bodyConstraintA->GetInvRotInertia() * crossAP}; velB += Velocity{bodyConstraintB->GetInvMass() * P, bodyConstraintB->GetInvRotInertia() * crossBP}; bodyConstraintA->SetVelocity(velA); bodyConstraintB->SetVelocity(velB); return impulse == 0_Ns; } bool RopeJoint::SolvePositionConstraints(BodyConstraintsMap& bodies, const ConstraintSolverConf& conf) const { auto& bodyConstraintA = At(bodies, GetBodyA()); auto& bodyConstraintB = At(bodies, GetBodyB()); auto posA = bodyConstraintA->GetPosition(); auto posB = bodyConstraintB->GetPosition(); const auto qA = UnitVec::Get(posA.angular); const auto qB = UnitVec::Get(posB.angular); const auto rA = Length2{Rotate(m_localAnchorA - bodyConstraintA->GetLocalCenter(), qA)}; const auto rB = Length2{Rotate(m_localAnchorB - bodyConstraintB->GetLocalCenter(), qB)}; const auto posDelta = (posB.linear + rB) - (posA.linear + rA); const auto uvresult = UnitVec::Get(posDelta[0], posDelta[1]); const auto u = std::get<UnitVec>(uvresult); const auto length = std::get<Length>(uvresult); const auto C = std::clamp(length - m_maxLength, 0_m, conf.maxLinearCorrection); const auto impulse = -m_mass * C; const auto linImpulse = impulse * u; const auto angImpulseA = Cross(rA, linImpulse) / Radian; const auto angImpulseB = Cross(rB, linImpulse) / Radian; posA -= Position{bodyConstraintA->GetInvMass() * linImpulse, bodyConstraintA->GetInvRotInertia() * angImpulseA}; posB += Position{bodyConstraintB->GetInvMass() * linImpulse, bodyConstraintB->GetInvRotInertia() * angImpulseB}; bodyConstraintA->SetPosition(posA); bodyConstraintB->SetPosition(posB); return (length - m_maxLength) < conf.linearSlop; } Length2 RopeJoint::GetAnchorA() const { return GetWorldPoint(*GetBodyA(), GetLocalAnchorA()); } Length2 RopeJoint::GetAnchorB() const { return GetWorldPoint(*GetBodyB(), GetLocalAnchorB()); } Momentum2 RopeJoint::GetLinearReaction() const { return m_impulse * m_u; } AngularMomentum RopeJoint::GetAngularReaction() const { return AngularMomentum{0}; } Length RopeJoint::GetMaxLength() const { return m_maxLength; } Joint::LimitState RopeJoint::GetLimitState() const { return m_state; } } // namespace d2 } // namespace playrho
[ "lou_langholtz@me.com" ]
lou_langholtz@me.com
015f877633f2ade56063fc7e1f9879d0b942a74a
f8a4a2e1e72be0774bcdcd50a4904b723e2e6c1c
/cob_lookat_action/LookAtResult.h
59b1fcdb879ed81bbbd479a09748e532d6d980c1
[]
no_license
controlzone/lib
4a12338ea4f9a1da2a22e170c53344fd724de170
eacfea11dda11c7e1b15a19b5fb956cd35027f5f
refs/heads/master
2016-08-06T23:44:36.392104
2015-01-19T20:54:36
2015-01-19T20:54:36
29,496,212
0
0
null
null
null
null
UTF-8
C++
false
false
1,137
h
#ifndef _ROS_cob_lookat_action_LookAtResult_h #define _ROS_cob_lookat_action_LookAtResult_h #include <stdint.h> #include <string.h> #include <stdlib.h> #include "ros/msg.h" namespace cob_lookat_action { class LookAtResult : public ros::Msg { public: bool success; virtual int serialize(unsigned char *outbuffer) const { int offset = 0; union { bool real; uint8_t base; } u_success; u_success.real = this->success; *(outbuffer + offset + 0) = (u_success.base >> (8 * 0)) & 0xFF; offset += sizeof(this->success); return offset; } virtual int deserialize(unsigned char *inbuffer) { int offset = 0; union { bool real; uint8_t base; } u_success; u_success.base = 0; u_success.base |= ((uint8_t) (*(inbuffer + offset + 0))) << (8 * 0); this->success = u_success.real; offset += sizeof(this->success); return offset; } const char * getType(){ return "cob_lookat_action/LookAtResult"; }; const char * getMD5(){ return "358e233cde0c8a8bcfea4ce193f8fc15"; }; }; } #endif
[ "greg@buffinton.com" ]
greg@buffinton.com
64fee5ff1f851dd56a11964ee8954e8e8c7548bc
0ceb709ffd7b88e3d1f17a98e1e86e910b000355
/Gready/B. Disturbed People.cpp
01f434c3271f80832aeeb341cb485e59ae580e77
[]
no_license
amine116/competitive-programming
76bf8a96ed4fce11f8489bee2d6a1a654208b0bb
b30992818e5909b43a1be9baeb73c07280e685b5
refs/heads/main
2023-07-17T02:29:41.100498
2021-09-01T17:59:08
2021-09-01T17:59:08
396,813,125
0
0
null
null
null
null
UTF-8
C++
false
false
1,427
cpp
/* Author: Aminul Islam. Email: iaminul237@gmail.com Facebook: www.facebook.com/aminul.islam116 Department: mathematics Institution: Shahjalal university of science and technology, Sylhet. Bangladesh. */ #include<bits/stdc++.h> #define ll long long #define ull unsigned long long #define sll signed long long #define I() ( { int a ; read(a) ; a; } ) #define L() ( { ll a ; read(a) ; a; } ) #define D() ({double a; scanf("%lf", &a); a;}) #define UL() ( { ull a; read(a); a; } ) #define SL() ( { sll a; read(a); a; } ) #define rep(n) for(ll i = 0; i < n; i++) #define print1(a) (printf("%I64d ", a)) #define print1ln(a) (printf("%I64d\n", a)) #define print2(a, b) (printf("%I64d %I64d ", a, b)) #define print2ln(a, b) (printf("%I64d %I64d\n", a, b)) #define print3ln(a, b, c) (printf("%I64d %I64d %I64d\n", a, b, c)) #define newLine (printf("\n")) #define mod 1000000007 #define MAX 300005 template<class T>inline bool read(T &x){ int c=getchar();int sgn=1; while(~c&&c<'0'||c>'9'){if(c=='-')sgn=-1;c=getchar();} for(x=0;~c&&'0'<=c&&c<='9';c=getchar())x=x*10+c-'0'; x*=sgn; return ~c; } using namespace std; int main(){ ll n = L(), arr[n + 1]; rep(n) arr[i] = L(); ll count = 0; rep(n){ if(arr[i] == 0 && i > 0){ if(arr[i - 1] == 1 && arr[i + 1] == 1) count++, arr[i + 1] = 0; } } print1ln(count); return 0; }
[ "noreply@github.com" ]
noreply@github.com
59d3484295ef9e62094f1752dd51c1518045a999
ac227cc22d5f5364e5d029a2cef83816a6954590
/src/shared/respond_stat_command.h
71340b14a1012b3108d7908926cbdc5f3305ffca
[ "BSD-3-Clause" ]
permissive
schinmayee/nimbus
597185bc8bac91a2480466cebc8b337f5d96bd2e
170cd15e24a7a88243a6ea80aabadc0fc0e6e177
refs/heads/master
2020-03-11T11:42:39.262834
2018-04-18T01:28:23
2018-04-18T01:28:23
129,976,755
0
0
BSD-3-Clause
2018-04-17T23:33:23
2018-04-17T23:33:23
null
UTF-8
C++
false
false
3,106
h
/* * Copyright 2013 Stanford University. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * - Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * - Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the * distribution. * * - Neither the name of the copyright holders nor the names of * its contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL * THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED * OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * worker responds to controller query for its stats with a * RespondStatCommand, reporting idle, block and run time. * * Author: Omid Mashayekhi <omidm@stanford.edu> */ #ifndef NIMBUS_SRC_SHARED_RESPOND_STAT_COMMAND_H_ #define NIMBUS_SRC_SHARED_RESPOND_STAT_COMMAND_H_ #include <list> #include <string> #include "src/shared/scheduler_command.h" namespace nimbus { class RespondStatCommand : public SchedulerCommand { public: RespondStatCommand(); RespondStatCommand(const counter_t& query_id, const worker_id_t& worker_id, const int64_t& run_time, const int64_t& block_time, const int64_t& idle_time); ~RespondStatCommand(); virtual SchedulerCommand* Clone(); virtual bool Parse(const std::string& data); virtual bool Parse(const SchedulerPBuf& buf); virtual std::string ToNetworkData(); virtual std::string ToString(); counter_t query_id(); worker_id_t worker_id(); int64_t run_time(); int64_t block_time(); int64_t idle_time(); void set_final(bool flag); private: counter_t query_id_; worker_id_t worker_id_; int64_t run_time_; int64_t block_time_; int64_t idle_time_; bool ReadFromProtobuf(const RespondStatPBuf& buf); bool WriteToProtobuf(RespondStatPBuf* buf); }; typedef std::list<RespondStatCommand*> RespondStatCommandList; } // namespace nimbus #endif // NIMBUS_SRC_SHARED_RESPOND_STAT_COMMAND_H_
[ "omidm@stanford.edu" ]
omidm@stanford.edu
26e4574d95f1c87dcb535f6519414caa37bae399
46b922e408654398fc69b6f5399c0d71579cb468
/Src/FM79979Engine/Core/GameplayUT/OpenGL/GLSL/GLSLUiniform.cpp
049cb865e282525f28693e8250ee2345c0787899
[]
no_license
radtek/FM79979
514355d91e0f3d2a73371f6b264b2e77335ed841
96f32530070d27e96b8a5d7159e5a216a33e91a2
refs/heads/master
2023-03-27T19:02:49.263164
2021-03-29T09:38:46
2021-03-29T09:38:46
null
0
0
null
null
null
null
UTF-8
C++
false
false
18,628
cpp
//#include "../XML/XMLLoader.h" #include "GLSLUiniform.h" #include "Shader.h" #include <iostream> #include <fstream> #include <sstream> #include <string> #include <assert.h> using namespace std; namespace FATMING_CORE { cGLSLProgram*g_pCurrentUsingGLSLProgram = nullptr; extern cBaseShader*g_pCurrentShader; TYPDE_DEFINE_MARCO(cUniformManager); //================================================================================================================================= /// /// Constructor /// /// \param none /// /// \return null //================================================================================================================================= cUniformData::cUniformData() : m_iLocation(-1), m_strName(nullptr), m_eDatatype(0) { } //================================================================================================================================= /// /// Destructor /// /// \param none /// /// \return null //================================================================================================================================= cUniformData::~cUniformData() { if ( m_strName != nullptr ) { delete [] m_strName; m_strName = nullptr; } } cUniformManager::cUniformManager():ISAXCallback(true) { m_uiRecentProgramHandle = 0; } cUniformManager::~cUniformManager() { } //<GLSL ProgramName="mainProg" VS="data/vertex.glsl" FS="data/fragment.glsl" > // <!-- sample 1D,2D,3D --> // <Texture Name="tex0" samplerDimesion="2" /> // <!-- attribute enusude u call the vertexpointer and setup index to cooresponded--> // <Attribute Name="position" Index="0"> // <Attribute Name="texture" Index="1"> // <Attribute Name="normal" Index="2"> // <!-- uniform --> // <Uniform Name="MatrixVP" Type="float44" Data="1.f,0.f,0.f,0.f,0.f,1.f,0.f,0.f,0.f,0.f,1.f,0.f,0.f,0.f,0.f,1.f,"/> // <Uniform Name="LightPos" Type="float3" Data="0.f,0.f,0.f"/> //<HLSL/> void cUniformManager::ProcessGLSLData() { //char l_strShaderFileName[MAX_PATH]; cGLSLProgram*l_pGLSLProgram = new cGLSLProgram(); m_pCurrentGLSLProgram = l_pGLSLProgram; m_pCurrentUniformData->m_eDatatype = SAMPLE_PROGRAM; // Create the one program we are going to use.//ensure glewInit is called m_uiRecentProgramHandle = glCreateProgram(); m_pCurrentGLSLProgram->SetProgramHandle(m_uiRecentProgramHandle); PARSE_CURRENT_ELEMENT_START COMPARE_NAME("ProgramName") { int l_iLength = (int)wcslen(l_strValue); m_pCurrentUniformData->m_strName = new char [l_iLength+1]; sprintf(m_pCurrentUniformData->m_strName,"%s",UT::WcharToChar(l_strValue).c_str()); m_pCurrentGLSLProgram->SetName(UT::CharToWchar(m_pCurrentUniformData->m_strName)); } else COMPARE_NAME("VS") { m_pCurrentGLSLProgram->m_uiVertShaderHandle = glCreateShader( GL_VERTEX_SHADER ); LoadShaderObject( UT::WcharToChar(l_strValue).c_str(), m_pCurrentGLSLProgram->m_uiVertShaderHandle ); } else COMPARE_NAME("FS") { m_pCurrentGLSLProgram->m_uiFragShaderHandle = glCreateShader( GL_FRAGMENT_SHADER ); LoadShaderObject( UT::WcharToChar(l_strValue).c_str(), m_pCurrentGLSLProgram->m_uiFragShaderHandle ); } PARSE_NAME_VALUE_END // Attach them to the program. glAttachShader( m_uiRecentProgramHandle, m_pCurrentGLSLProgram->m_uiVertShaderHandle ); glAttachShader( m_uiRecentProgramHandle, m_pCurrentGLSLProgram->m_uiFragShaderHandle ); // Link the whole program together. glLinkProgram( m_uiRecentProgramHandle ); // Check for link success glUseProgram( m_uiRecentProgramHandle ); this->m_pCurrentGLSLProgram->UpdateAllUniforms(); CheckProgram(m_uiRecentProgramHandle,GL_LINK_STATUS,L"link"); } //void cUniformManager::ProcessTextureData() //{ //// <Texture Name="tex0" SamplerDimesion="2" Unit="0" /> // PARSE_CURRENT_ELEMENT_START // COMPARE_NAME("Name") // { // int l_iLength = (int)wcslen(l_strValue); // m_pCurrentUniformData->m_strName = new char [l_iLength+1]; // sprintf(m_pCurrentUniformData->m_strName,"%s",UT::WcharToChar(l_strValue).c_str()); // } // else // COMPARE_NAME("SamplerDimesion")//1D,2D,3D // { // // } // else // COMPARE_NAME("Unit") // { // m_pCurrentUniformData->m_uiTextureUnit = (UINT)_wtoi(l_strValue); // } // PARSE_NAME_VALUE_END // m_pCurrentUniformData->m_eDatatype = SAMPLE_INT; // //u have to assign texture ID // m_pCurrentUniformData->m_uiTextureHandle = -1; // glUseProgram(m_uiRecentProgramHandle); // m_pCurrentUniformData->m_iLocation = glGetUniformLocation( m_uiRecentProgramHandle,"tex0" ); // assert(m_pCurrentUniformData->m_iLocation!=-1); // //http://www.gamedev.net/community/forums/topic.asp?topic_id=516840 // //Because half of your shader doesn't do anything, and is optimized // //away by the compiler. The uniforms don't exist anymore after compilation // //(because they aren't used) and will therefore not be found by glGetUniformLocation. // //Unless you are accessing them by a pixel shader. But since you didn't post any, my // //first assumption would be this. // glUniform1i( m_pCurrentUniformData->m_iLocation, m_pCurrentUniformData->m_uiTextureUnit ); //} void cUniformManager::ProcessAttributeData() { std::wstring l_strAttributeName; int l_iIndex = -1; PARSE_CURRENT_ELEMENT_START COMPARE_NAME("Name") { l_strAttributeName = l_strValue; l_iIndex = glGetUniformLocation( m_uiRecentProgramHandle,UT::WcharToChar(l_strValue).c_str()); MyGlErrorTest("cUniformManager::ProcessAttributeData Name"); } PARSE_NAME_VALUE_END assert(l_iIndex!=-1); this->m_pCurrentGLSLProgram->AddAttributeData(UT::WcharToChar(l_strAttributeName.c_str()),l_iIndex); SAFE_DELETE(m_pCurrentUniformData); } void cUniformManager::ProcessUniformData() { PARSE_CURRENT_ELEMENT_START COMPARE_NAME("Name") { int l_iLength = (int)wcslen(l_strValue); m_pCurrentUniformData->m_strName = new char [l_iLength+1]; sprintf(m_pCurrentUniformData->m_strName,"%s",UT::WcharToChar(l_strValue).c_str()); this->m_pCurrentUniformData->m_iLocation = glGetUniformLocation( m_uiRecentProgramHandle, UT::WcharToChar(l_strValue).c_str() ); //http://www.gamedev.net/community/forums/topic.asp?topic_id=516840 //Because half of your shader doesn't do anything, and is optimized //away by the compiler. The uniforms don't exist anymore after compilation //(because they aren't used) and will therefore not be found by glGetUniformLocation. //Unless you are accessing them by a pixel shader. But since you didn't post any, my //first assumption would be this. assert(this->m_pCurrentUniformData->m_iLocation != -1); } else COMPARE_NAME_WITH_DEFINE(DATA_TYPE) { COMPARE_VALUE_WITH_DEFINE(UNIFORM_DATA_TYPE_cMatrix44) { m_pCurrentUniformData->m_eDatatype = SAMPLE_FLOAT_MAT4; } else COMPARE_VALUE_WITH_DEFINE(UNIFORM_DATA_TYPE_FLOAT1) { m_pCurrentUniformData->m_eDatatype = SAMPLE_FLOAT; } else COMPARE_VALUE_WITH_DEFINE(UNIFORM_DATA_TYPE_FLOAT2) { m_pCurrentUniformData->m_eDatatype = SAMPLE_FLOAT_VEC2; } else COMPARE_VALUE_WITH_DEFINE(UNIFORM_DATA_TYPE_FLOAT3) { m_pCurrentUniformData->m_eDatatype = SAMPLE_FLOAT_VEC3; } else COMPARE_VALUE_WITH_DEFINE(UNIFORM_DATA_TYPE_FLOAT4) { m_pCurrentUniformData->m_eDatatype = SAMPLE_FLOAT_VEC4; } else COMPARE_VALUE_WITH_DEFINE(UNIFORM_DATA_TYPE_INT) { m_pCurrentUniformData->m_eDatatype = SAMPLE_INT; } else { UT::ErrorMsg((wchar_t*)l_strValue,L"there is no such type"); } } else COMPARE_NAME("Data") { switch(m_pCurrentUniformData->m_eDatatype) { case SAMPLE_FLOAT: this->m_pCurrentUniformData->m_fData[0] = (float)_wtof(l_strValue); glUniform1f( m_pCurrentUniformData->m_iLocation, this->m_pCurrentUniformData->m_fData[0] ); break; case SAMPLE_FLOAT_VEC2: { Vector2 l_v2 = GetVector2((char*)l_strValue); memcpy(this->m_pCurrentUniformData->m_fData,&l_v2,sizeof(float)*2); glUniform2fv( m_pCurrentUniformData->m_iLocation,1, &this->m_pCurrentUniformData->m_fData[0] ); } break; case SAMPLE_FLOAT_VEC3: { Vector3 l_v3 = GetVector3((char*)l_strValue); memcpy(this->m_pCurrentUniformData->m_fData,&l_v3,sizeof(float)*3); glUniform3fv( m_pCurrentUniformData->m_iLocation,1, &this->m_pCurrentUniformData->m_fData[0] ); } break; case SAMPLE_FLOAT_VEC4: { Vector4 l_v4 = GetVector4((char*)l_strValue); memcpy(this->m_pCurrentUniformData->m_fData,&l_v4,sizeof(float)*4); glUniform4fv( m_pCurrentUniformData->m_iLocation,1, &this->m_pCurrentUniformData->m_fData[0] ); } break; case SAMPLE_INT: this->m_pCurrentUniformData->m_iData[0] = _wtoi(l_strValue); glUniform1i( m_pCurrentUniformData->m_iLocation, this->m_pCurrentUniformData->m_iData[0] ); break; case SAMPLE_FLOAT_MAT4: { cMatrix44 l_mat = GetMatrix((char*)l_strValue); memcpy(this->m_pCurrentUniformData->m_fData,&l_mat,sizeof(float)*16); glUniformMatrix4fv( m_pCurrentUniformData->m_iLocation, 1, GL_FALSE, &m_pCurrentUniformData->m_fData[0] ); } break; } } PARSE_NAME_VALUE_END } void cUniformManager::HandleElementData(TiXmlElement*e_pTiXmlElement) { if( !e_pTiXmlElement->m_bDone ) { cUniformData *l_pNewUniform = new cUniformData; //memset( l_pNewUniform, 0, sizeof(cUniformData) ); m_pCurrentUniformData = l_pNewUniform; const wchar_t* l_strName = e_pTiXmlElement->Value(); COMPARE_NAME("GLSL") { ProcessGLSLData(); } //else //COMPARE_NAME("Texture") //{ // ProcessTextureData(); //} else COMPARE_NAME("Attribute") { ProcessAttributeData(); } else COMPARE_NAME("Uniform") { ProcessUniformData(); } else { assert(0); } assert( m_uiRecentProgramHandle != 0); if( m_pCurrentUniformData ) { assert(m_pCurrentUniformData->m_strName); m_pCurrentGLSLProgram->AddUniform(m_pCurrentUniformData); } } else { const wchar_t* l_strName = e_pTiXmlElement->Value(); COMPARE_NAME("GLSL") { glLinkProgram( m_uiRecentProgramHandle ); CheckProgram(m_uiRecentProgramHandle,GL_LINK_STATUS,L"link"); m_pCurrentGLSLProgram->UpdateAllUniforms(); this->AddObject(m_pCurrentGLSLProgram); m_uiRecentProgramHandle = 0; } } } //================================================================================================================================= /// /// Loads all the shader objects. /// /// \param fileName is the name for the file where we get objects /// \param stateHandle is the ES handle to different types of shaders /// /// \return bool saying whether we passed or failed //================================================================================================================================= bool LoadShaderObject( const char* e_strFileName, GLuint e_uiShaderHandle ) { char* source = nullptr; { // Use file io to load the code of the shader. std::ifstream fp( e_strFileName , ios_base::binary ); if( fp.fail() ) { #ifdef WIN32 FMLog::LogWithFlag(L"Failed to open shader file:", CORE_LOG_FLAG); FMLog::LogWithFlag(UT::CharToWchar(e_strFileName), CORE_LOG_FLAG); #endif assert(0); return false; } fp.seekg( 0, std::ios_base::end ); const long len = (const long)fp.tellg(); fp.seekg( 0, std::ios_base::beg ); // The +1 is optional, depending on how you call glShaderSourceARB source = new char[len+1]; fp.read(source, sizeof(char)*len); source[len] = 0; } const char* gls[1] = { source }; // Pass our sources to OpenGL. Our sources are nullptr terminated, so pass nullptr for the lenghts. glShaderSource( e_uiShaderHandle, 1, gls, nullptr ); // OpenGL made a copy. Do not need the source anymore. delete[] source; source = 0; // Compile that one object. glCompileShader(e_uiShaderHandle); // Check for compilation success GLint compilationResult = 0; glGetShaderiv( e_uiShaderHandle, GL_COMPILE_STATUS, &compilationResult ); CheckShader(e_uiShaderHandle, GL_COMPILE_STATUS,L"Compile\n"); // current implementation always succeeds. // The error will happen at link time. if ( compilationResult == 0 ) { #ifdef WIN32 FMLog::LogWithFlag(L"Failed to compile shader:", CORE_LOG_FLAG); FMLog::LogWithFlag(UT::CharToWchar(e_strFileName), CORE_LOG_FLAG); #endif return false; } return true; } cUniformData* cGLSLProgram::GetUniform(char*e_strName) { for ( cUniformDataIterator index = m_Uniforms.begin(); index != m_Uniforms.end() ; ++index) { cUniformData* current = *index; if ( strcmp( e_strName, current->m_strName ) == 0 ) return current; } return 0; } //================================================================================================================================= /// /// Updates the value of a uniform /// /// \param name - The name we gave to the uniform /// \param vals - An array of values we want to to replace the current uniform values with /// /// \return true=pass ... false=fail //================================================================================================================================= bool cGLSLProgram::UpdateOneUniform( const char* name, float* vals ) { bool updated = false; cUniformDataIterator index; for ( index = m_Uniforms.begin(); index != m_Uniforms.end() ; ++index) { cUniformData* current = *index; if ( strcmp( name, current->m_strName ) == 0 ) { updated = true; switch( current->m_eDatatype ) { case SAMPLE_FLOAT: memcpy( current->m_fData, vals, sizeof(float) * 1 ); glUniform1f( current->m_iLocation, current->m_fData[0] ); break; case SAMPLE_FLOAT_VEC2: memcpy( current->m_fData, vals, sizeof(float) * 2 ); glUniform2f( current->m_iLocation, current->m_fData[0], current->m_fData[1] ); break; case SAMPLE_FLOAT_VEC3: memcpy( current->m_fData, vals, sizeof(float) * 3 ); glUniform3f( current->m_iLocation, current->m_fData[0], current->m_fData[1], current->m_fData[2] ); break; case SAMPLE_FLOAT_VEC4: memcpy( current->m_fData, vals, sizeof(float) * 4 ); glUniform4f( current->m_iLocation, current->m_fData[0], current->m_fData[1], current->m_fData[2], current->m_fData[3] ); break; case SAMPLE_FLOAT_MAT4: memcpy( current->m_fData, vals, sizeof(float) * 16 ); glUniformMatrix4fv( current->m_iLocation, 1, GL_FALSE, &current->m_fData[0] ); break; default: assert(0); break; } } if ( updated ) { break; } } assert( updated == true ); // They probably passed in un unsupported type or invalid name return updated; } //================================================================================================================================= /// /// Deletes all the GL resources that we have loaded /// /// \param name - The name we gave to the program /// /// \return true=pass ... false=fail //================================================================================================================================= void cGLSLProgram::FreeAllData() { cUniformDataIterator index; for ( index = m_Uniforms.begin(); index != m_Uniforms.end() ; ++index) { if ( m_uiVertShaderHandle ) { glDeleteShader( m_uiVertShaderHandle ); } if ( m_uiFragShaderHandle ) { glDeleteShader( m_uiFragShaderHandle ); } } for ( UINT i = 0; i < m_Uniforms.size() ; i++ ) { if ( m_Uniforms[i] != nullptr ) { delete m_Uniforms[i]; } } m_Uniforms.clear(); glDeleteProgram( m_uiProgramHandle ); } //================================================================================================================================= /// /// Updates all the uniform data after a link /// /// \param void /// /// \return void //================================================================================================================================= void cGLSLProgram::UpdateAllUniforms() { cUniformDataIterator index; for ( index = m_Uniforms.begin(); index != m_Uniforms.end() ; ++index) { //GLenum l_en = (*index)->m_eDatatype; switch( (*index)->m_eDatatype ) { case SAMPLE_FLOAT: glUniform1f( (*index)->m_iLocation, (*index)->m_fData[0] ); break; case SAMPLE_FLOAT_VEC2: glUniform2f( (*index)->m_iLocation, (*index)->m_fData[0], (*index)->m_fData[1] ); break; case SAMPLE_FLOAT_VEC3: glUniform3f( (*index)->m_iLocation, (*index)->m_fData[0], (*index)->m_fData[1], (*index)->m_fData[2] ); break; case SAMPLE_FLOAT_VEC4: glUniform4f( (*index)->m_iLocation, (*index)->m_fData[0], (*index)->m_fData[1], (*index)->m_fData[2], (*index)->m_fData[3] ); break; case SAMPLE_FLOAT_MAT4: glUniformMatrix4fv( (*index)->m_iLocation, 1, GL_FALSE, &(*index)->m_fData[0] ); break; case SAMPLE_PROGRAM: break; default: assert(0); break; } } } void cGLSLProgram::AddAttributeData(std::string e_strName,int e_iLocation) { AddAttributeData(e_strName.c_str(),e_iLocation); } void cGLSLProgram::AddAttributeData(const char*e_strName,int e_iLocation) { this->m_AttributeDataVector.insert(std::make_pair(e_iLocation,std::string(e_strName))); } void cGLSLProgram::UsingProgram() { g_pCurrentShader = nullptr; if( g_pCurrentUsingGLSLProgram != this ) { g_pCurrentUsingGLSLProgram = this; glUseProgram(this->m_uiProgramHandle); std::map<int,std::string>::iterator l_iterator = m_AttributeDataVector.begin(); for( ;l_iterator != m_AttributeDataVector.end();++l_iterator ) { int l_iIndex = l_iterator->first; glEnableVertexAttribArray(l_iIndex); //const char*l_str = l_iterator->second.c_str(); glBindAttribLocation( m_uiProgramHandle, l_iterator->first, l_iterator->second.c_str() ); //const char*l_str = (const char*)glGetString(glGetError()); } } } void cGLSLProgram::DisableProgram() { assert(g_pCurrentUsingGLSLProgram == this); glUseProgram(0); std::map<int,std::string>::iterator l_iterator = m_AttributeDataVector.begin(); for( ;l_iterator != m_AttributeDataVector.end();++l_iterator ) { int l_iIndex = l_iterator->first; glDisableVertexAttribArray(l_iIndex); } } //======================== // //======================== }
[ "osimejp@yahoo.co.jp" ]
osimejp@yahoo.co.jp
9595d92ce3f0286a89eb406ecfe71d15784046b1
a4166a4b451cd0f22d96fdf9849ec9211c7612bd
/static/cms_static.cpp
620aef5c6f24d59885217384d84c64d034959769
[]
no_license
ctinkong/cms
6bdd54a59767c3c2fa606a0faef91a8acce19f2b
3d7b52d93842664af39213ddca5ca584d824796d
refs/heads/master
2023-03-20T13:08:31.975181
2021-09-07T11:22:57
2023-02-23T09:49:19
187,953,852
16
6
null
null
null
null
WINDOWS-1252
C++
false
false
16,803
cpp
/* The MIT License (MIT) Copyright (c) 2017- cms(hsc) Author: รŒรฌยฟร•รƒยปร“รรŽรšร”ร†/kisslovecsh@foxmail.com 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 <static/cms_static.h> #include <common/cms_utility.h> #include <app/cms_app_info.h> #include <log/cms_log.h> #include <errno.h> #define MapHashOneTaskIterator std::map<HASH,OneTask *>::iterator CStatic *CStatic::minstance = NULL; CStatic::CStatic() { misRun = false; mtid = 0; mdownloadTick = 0; mdownloadSpeed = 0; mdownloadTT = getTickCount(); muploadTick = 0; muploadSpeed = 0; muploadTT = getTickCount(); mupdateTime = mappStartTime = getTimeUnix(); mtotalConn = 0; mcpuInfo0 = getCpuInfo(); } CStatic::~CStatic() { } CStatic *CStatic::instance() { if (minstance == NULL) { minstance = new CStatic(); } return minstance; } void CStatic::freeInstance() { if (minstance) { delete minstance; minstance = NULL; } } bool CStatic::run() { misRun = true; int res = cmsCreateThread(&mtid, routinue, this, false); if (res == -1) { char date[128] = { 0 }; getTimeStr(date); logs->error("%s ***** file=%s,line=%d cmsCreateThread error *****", date, __FILE__, __LINE__); return false; } return true; } void CStatic::stop() { logs->debug("##### CStatic::stop begin #####"); misRun = false; mlockOneTaskPacket.Lock(); mlockOneTaskPacket.Signal(); mlockOneTaskPacket.Unlock(); cmsWaitForThread(mtid, NULL); mtid = 0; logs->debug("##### CStatic::stop finish #####"); } void CStatic::thread() { logs->info(">>>>> CStatic thread pid=%d", gettid()); setThreadName("cms-static"); OneTaskDownload *otd; OneTaskUpload *otu; OneTaskMeida *otma; OneTaskMem *otmm; OneTaskPacket *otp; bool isTrue; bool isHandleOne; for (; misRun;) { isHandleOne = false; //OneTaskDownload isTrue = pop(&otp); if (isTrue) { mupdateTime = getTimeUnix(); switch (otp->packetID) { case PACKET_ONE_TASK_DOWNLOAD: otd = (OneTaskDownload *)otp; handle(otd); delete otd; break; case PACKET_ONE_TASK_UPLOAD: otu = (OneTaskUpload *)otp; handle(otu); delete otu; break; case PACKET_ONE_TASK_MEDIA: otma = (OneTaskMeida *)otp; handle(otma); delete otma; break; case PACKET_ONE_TASK_MEM: otmm = (OneTaskMem *)otp; handle(otmm); delete otmm; break; case PACKET_ONE_TASK_HLS_MEM: otmm = (OneTaskMem *)otp; handle(otmm); delete otmm; break; default: logs->error("*** [CStatic::thread] unexpect packet %d ***", otp->packetID); break; } isHandleOne = true; } if (!isHandleOne) { cmsSleep(10); } } logs->info(">>>>> CStatic thread leave pid=%d", gettid()); } void *CStatic::routinue(void *param) { CStatic *pIns = (CStatic*)param; pIns->thread(); return NULL; } void CStatic::setAppName(std::string appName) { mappName = appName; } void CStatic::push(OneTaskPacket *otp) { mlockOneTaskPacket.Lock(); if (mqueueOneTaskPacket.empty()) { mlockOneTaskPacket.Signal(); } mqueueOneTaskPacket.push(otp); mlockOneTaskPacket.Unlock(); } bool CStatic::pop(OneTaskPacket **otp) { bool isTrue = false; mlockOneTaskPacket.Lock(); while (mqueueOneTaskPacket.empty()) { if (!misRun) { goto End; } mlockOneTaskPacket.Wait(); } *otp = mqueueOneTaskPacket.front(); mqueueOneTaskPacket.pop(); isTrue = true; End: mlockOneTaskPacket.Unlock(); return isTrue; } void CStatic::handle(OneTaskDownload *otd) { uint32 tt = (uint64)getTickCount(); mlockHashTask.Lock(); MapHashOneTaskIterator it = mmapHashTask.find(otd->hash); if (it != mmapHashTask.end()) { if (otd->isRemove) { delete it->second; mmapHashTask.erase(it); } else { it->second->mdownloadTick += otd->downloadBytes; it->second->mdownloadTotal += otd->downloadBytes; it->second->misPublishTask = otd->isPublishTask; if (tt - it->second->mdownloadTT >= 1000 * 5) { it->second->mdownloadSpeed = it->second->mdownloadTick * 1000 / (tt - it->second->mdownloadTT); it->second->mdownloadTT = tt; it->second->mdownloadTick = 0; } } } else { if (!otd->isRemove && otd->isFromeTask) { OneTask *otk = newOneTask(); otk->mdownloadTick += otd->downloadBytes; otk->mdownloadTotal += otd->downloadBytes; otk->mdownloadTT = (uint64)getTickCount(); otk->misPublishTask = otd->isPublishTask; mmapHashTask[otd->hash] = otk; } } mlockHashTask.Unlock(); if (!otd->isRemove) { mlockDownload.Lock(); mdownloadTick += otd->downloadBytes; if (tt - mdownloadTT >= 1000 * 5) { mdownloadSpeed = mdownloadTick * 1000 / (tt - mdownloadTT); mdownloadTT = tt; mdownloadTick = 0; } mlockDownload.Unlock(); } } void CStatic::handle(OneTaskUpload *otu) { uint32 tt = (uint64)getTickCount(); mlockHashTask.Lock(); MapHashOneTaskIterator it = mmapHashTask.find(otu->hash); if (it != mmapHashTask.end()) { if (otu->connAct == PACKET_CONN_ADD) { it->second->mtotalConn++; mtotalConn++; } else if (otu->connAct == PACKET_CONN_DEL) { it->second->mtotalConn--; mtotalConn--; if (it->second->mtotalConn < 0) { it->second->mtotalConn = 0; mtotalConn = 0; } } else if (otu->connAct == PACKET_CONN_DATA) { it->second->muploadTick += otu->uploadBytes; it->second->muploadTotal += otu->uploadBytes; if (tt - it->second->muploadTT >= 1000 * 5) { it->second->muploadSpeed = it->second->muploadTick * 1000 / (tt - it->second->muploadTT); it->second->muploadTT = tt; it->second->muploadTick = 0; } } else { logs->error("*** [CStatic::handle] handle task %s upload packet unknow packet id %d ***", it->second->murl.c_str(), otu->connAct); } } mlockHashTask.Unlock(); if (otu->connAct == PACKET_CONN_DATA) { mlockUpload.Lock(); muploadTick += otu->uploadBytes; if (tt - muploadTT >= 1000 * 5) { muploadSpeed = muploadTick * 1000 / (tt - muploadTT); muploadTT = tt; muploadTick = 0; } mlockUpload.Unlock(); } } void CStatic::handle(OneTaskMeida *otm) { mlockHashTask.Lock(); MapHashOneTaskIterator it = mmapHashTask.find(otm->hash); if (it != mmapHashTask.end()) { if (otm->videoFramerate > 0) { it->second->mvideoFramerate = otm->videoFramerate; } if (otm->audioFramerate > 0) { it->second->maudioFramerate = otm->audioFramerate; } if (otm->audioSamplerate > 0) { it->second->maudioSamplerate = otm->audioSamplerate; } if (otm->mediaRate > 0) { it->second->mmediaRate = otm->mediaRate; } if (otm->width > 0) { it->second->miWidth = otm->width; } if (otm->height > 0) { it->second->miHeight = otm->height; } if (!otm->videoType.empty()) { it->second->mvideoType = otm->videoType; } if (!otm->audioType.empty()) { it->second->maudioType = otm->audioType; } if (!otm->remoteAddr.empty()) { it->second->mremoteAddr = otm->remoteAddr; } it->second->murl = otm->url; it->second->misUDP = otm->isUdp; } mlockHashTask.Unlock(); } void CStatic::handle(OneTaskMem *otm) { mlockHashTask.Lock(); MapHashOneTaskIterator it = mmapHashTask.find(otm->hash); if (it != mmapHashTask.end()) { if (otm->packetID == PACKET_ONE_TASK_MEM) { it->second->mtotalMem = otm->totalMem; #ifdef __CMS_CYCLE_MEM__ it->second->mtotalCycMem = otm->totalCycMem; #endif } else if (otm->packetID == PACKET_ONE_TASK_HLS_MEM) { it->second->mhlsMem = otm->hlsMem; it->second->mtotalHlsMem = otm->totalMem; it->second->misHls = true; } } mlockHashTask.Unlock(); } std::string CStatic::dump() { cJSON *root = cJSON_CreateObject(); cJSON *taskArray = NULL; std::string appVersion; appVersion.append(APP_NAME); appVersion.append("/"); appVersion.append(APP_VERSION); std::string strBuildTime = __DATE__; strBuildTime.append(" "); strBuildTime.append(__TIME__); cJSON_AddItemToObject(root, "version", cJSON_CreateString(appVersion.c_str())); cJSON_AddItemToObject(root, "build_time", cJSON_CreateString(strBuildTime.c_str())); #ifdef __CMS_CYCLE_MEM__ cJSON_AddItemToObject(root, "build_cycle_mem", cJSON_CreateBool(1)); #endif #ifdef __CMS_POOL_MEM__ cJSON_AddItemToObject(root, "build_pool_mem", cJSON_CreateBool(1)); #endif #ifdef _CMS_LEAK_CHECK_ cJSON_AddItemToObject(root, "build_check_mem", cJSON_CreateBool(1)); #endif #ifdef __CMS_CYCLE_MEM__ int64 totalMem = 0; int64 totalCycMem = 0; cJSON_AddItemToObject(root, "task_num", cJSON_CreateNumber(getTaskInfo(&taskArray, totalMem, totalCycMem))); if (totalCycMem) { char szPer[20] = { 0 }; snprintf(szPer, sizeof(szPer), "%lld%%", (totalMem * 100) / totalCycMem); cJSON_AddItemToObject(root, "cycle_mem_per", cJSON_CreateString(szPer)); } else { cJSON_AddItemToObject(root, "cycle_mem_per", cJSON_CreateString("-")); } #else cJSON_AddItemToObject(root, "task_num", cJSON_CreateNumber(getTaskInfo(&taskArray))); #endif cJSON_AddItemToObject(root, "task_list", taskArray); cJSON_AddItemToObject(root, "conn_num", cJSON_CreateNumber(mtotalConn)); cJSON_AddItemToObject(root, "upload_speed", cJSON_CreateNumber(muploadSpeed)); cJSON_AddItemToObject(root, "download_speed", cJSON_CreateNumber(mdownloadSpeed)); cJSON_AddItemToObject(root, "upload_speed_s", cJSON_CreateString(parseSpeed8Mem(muploadSpeed, true).c_str())); cJSON_AddItemToObject(root, "download_speed_s", cJSON_CreateString(parseSpeed8Mem(mdownloadSpeed, true).c_str())); int cpu = getCpuUsage(); cJSON_AddItemToObject(root, "cpu", cJSON_CreateNumber(cpu)); float mem = getMemUsage(); cJSON_AddItemToObject(root, "mem", cJSON_CreateNumber(mem)); int memsize = getMemSize(); cJSON_AddItemToObject(root, "mem_size", cJSON_CreateNumber(memsize)); struct tm st; localtime_r(&mappStartTime, &st); char szStartTime[128] = { 0 }; snprintf(szStartTime, sizeof(szStartTime), "%04d-%02d-%02d %02d:%02d:%02d", st.tm_year + 1900, st.tm_mon + 1, st.tm_mday, st.tm_hour, st.tm_min, st.tm_sec); cJSON_AddItemToObject(root, "start_time", cJSON_CreateString(szStartTime)); localtime_r(&mupdateTime, &st); char szUpdateTime[128] = { 0 }; snprintf(szUpdateTime, sizeof(szUpdateTime), "%04d-%02d-%02d %02d:%02d:%02d", st.tm_year + 1900, st.tm_mon + 1, st.tm_mday, st.tm_hour, st.tm_min, st.tm_sec); cJSON_AddItemToObject(root, "update_data_time", cJSON_CreateString(szUpdateTime)); std::string strJson; char *s = cJSON_PrintUnformatted(root); if (s) { strJson.append(s); free(s); } cJSON_Delete(root); return strJson; } #ifdef __CMS_CYCLE_MEM__ int CStatic::getTaskInfo(cJSON **value, int64 &totalMem, int64 &totalCycMem) #else int CStatic::getTaskInfo(cJSON **value) #endif { *value = cJSON_CreateArray(); int size = 0; mlockHashTask.Lock(); size = mmapHashTask.size(); MapHashOneTaskIterator it = mmapHashTask.begin(); for (; it != mmapHashTask.end(); ++it) { OneTask *otk = it->second; cJSON *v = cJSON_CreateObject(); //HASH hash = it->first; struct tm st; localtime_r(&otk->mttCreate, &st); char szTime[128] = { 0 }; snprintf(szTime, sizeof(szTime), "%04d-%02d-%02d %02d:%02d:%02d", st.tm_year + 1900, st.tm_mon + 1, st.tm_mday, st.tm_hour, st.tm_min, st.tm_sec); cJSON_AddItemToObject(v, "time", cJSON_CreateString(szTime)); cJSON_AddItemToObject(v, "url", cJSON_CreateString(otk->murl.c_str())); cJSON_AddItemToObject(v, "addr", cJSON_CreateString(otk->mremoteAddr.c_str())); cJSON_AddItemToObject(v, "conn_num", cJSON_CreateNumber(otk->mtotalConn)); cJSON_AddItemToObject(v, "udp", cJSON_CreateBool(otk->misUDP ? 1 : 0)); cJSON_AddItemToObject(v, "publish", cJSON_CreateBool(otk->misPublishTask ? 1 : 0)); cJSON_AddItemToObject(v, "open_hls", cJSON_CreateBool(otk->misHls ? 1 : 0)); cJSON_AddItemToObject(v, "media_rate", cJSON_CreateNumber(otk->mmediaRate)); cJSON_AddItemToObject(v, "video_frame_rate", cJSON_CreateNumber(otk->mvideoFramerate)); cJSON_AddItemToObject(v, "video_type", cJSON_CreateString(otk->mvideoType.c_str())); cJSON_AddItemToObject(v, "video_width", cJSON_CreateNumber(otk->miWidth)); cJSON_AddItemToObject(v, "video_height", cJSON_CreateNumber(otk->miHeight)); cJSON_AddItemToObject(v, "audio_frame_rate", cJSON_CreateNumber(otk->maudioFramerate)); cJSON_AddItemToObject(v, "audio_sample_rate", cJSON_CreateNumber(otk->maudioSamplerate)); cJSON_AddItemToObject(v, "audio_type", cJSON_CreateString(otk->maudioType.c_str())); cJSON_AddItemToObject(v, "download_speed", cJSON_CreateNumber(otk->mdownloadSpeed)); cJSON_AddItemToObject(v, "download_speed_s", cJSON_CreateString(parseSpeed8Mem(otk->mdownloadSpeed, true).c_str())); cJSON_AddItemToObject(v, "upload_speed", cJSON_CreateNumber(otk->muploadSpeed)); cJSON_AddItemToObject(v, "upload_speed_s", cJSON_CreateString(parseSpeed8Mem(otk->muploadSpeed, true).c_str())); cJSON_AddItemToObject(v, "total_mem", cJSON_CreateNumber(otk->mtotalMem)); cJSON_AddItemToObject(v, "total_mem_s", cJSON_CreateString(parseSpeed8Mem(otk->mtotalMem, false).c_str())); cJSON_AddItemToObject(v, "hls_data_mem", cJSON_CreateNumber(otk->mhlsMem)); cJSON_AddItemToObject(v, "hls_data_mem_s", cJSON_CreateString(parseSpeed8Mem(otk->mhlsMem, false).c_str())); cJSON_AddItemToObject(v, "hls_total_mem", cJSON_CreateNumber(otk->mtotalHlsMem)); cJSON_AddItemToObject(v, "hls_total_mem_s", cJSON_CreateString(parseSpeed8Mem(otk->mtotalHlsMem, false).c_str())); #ifdef __CMS_CYCLE_MEM__ cJSON_AddItemToObject(v, "total_cycle_mem", cJSON_CreateNumber(otk->mtotalCycMem)); cJSON_AddItemToObject(v, "total_cycle_mem_s", cJSON_CreateString(parseSpeed8Mem(otk->mtotalCycMem, false).c_str())); if (otk->mtotalCycMem) { char szPer[20] = { 0 }; snprintf(szPer, sizeof(szPer), "%lld%%", (otk->mtotalMem * 100) / otk->mtotalCycMem); cJSON_AddItemToObject(v, "cycle_mem_per", cJSON_CreateString(szPer)); } else { cJSON_AddItemToObject(v, "cycle_mem_per", cJSON_CreateString("-")); } totalMem += otk->mtotalMem; totalCycMem += otk->mtotalCycMem; #endif cJSON_AddItemToArray(*value, v); } mlockHashTask.Unlock(); return size; } int CStatic::getCpuUsage() { CpuInfo cupInfo = getCpuInfo(); int busytime = cupInfo.user + cupInfo.nice + cupInfo.sys - mcpuInfo0.user - mcpuInfo0.nice - mcpuInfo0.sys; int sumtime = busytime + cupInfo.idle - mcpuInfo0.idle; mcpuInfo0 = cupInfo; if (0 != sumtime) { return (100 * busytime / sumtime); } return 0; } CpuInfo CStatic::getCpuInfo() { FILE* file = NULL; file = fopen("/proc/stat", "r"); CpuInfo cpu; cpu.user = cpu.sys = cpu.nice = cpu.idle = 0; if (NULL == file) { //open error logs->error("getCpuInfo fopen failed with error %d!", errno); return mcpuInfo0; } char strtemp[10]; fscanf(file, "%s%lld%lld%lld%lld", strtemp, &cpu.user, &cpu.nice, &cpu.sys, &cpu.idle); fclose(file); return cpu; } float CStatic::getMemUsage() { std::string strcmd = "ps aux | grep "; strcmd += mappName; strcmd += "> /tmp/memtemp.txt"; if (system(strcmd.c_str()) == -1) { logs->error("*** GetMemUsage system failed! ***"); return 0; } FILE* file = fopen("/tmp/memtemp.txt", "r"); if (NULL == file) { logs->error("*** GetMemUsage fopen failed with error %d! ***", errno); return 0; } char username[100]; int pid; float cpurate, memrate; fscanf(file, "%s%d%f%f", username, &pid, &cpurate, &memrate); fclose(file); return memrate; } int CStatic::getMemSize() { std::string strcmd = "ps -e -o 'comm,rsz' | grep "; strcmd += mappName; strcmd += "> /tmp/memsizetemp.txt"; if (system(strcmd.c_str()) == -1) { logs->error("*** getMemSize system failed! ***"); return 0; } FILE* file = fopen("/tmp/memsizetemp.txt", "r"); if (NULL == file) { logs->error("*** getMemSize fopen failed with error %d! ***", errno); return 0; } char appName[100]; int memsize = 0; fscanf(file, "%s%d", appName, &memsize); fclose(file); return memsize; }
[ "370265036@qq.com" ]
370265036@qq.com
ee91a2d33b22a512d85882b1c62d31da815b025a
390f7202c68a6859955bef72f3e94d1287103a8e
/codeforces/1287/B.cpp
ce35e338dc452b7f195926dbf4181d5ab6d4030f
[]
no_license
lorenzocazzador/CompetitiveProgramming
9a1f2ef81075cc5e43f834b7208b15ed72e8d0b3
d6c98e956dc5495414a475b52f3a2904a8f66716
refs/heads/master
2023-02-04T14:28:23.908790
2018-09-23T12:10:00
2020-12-27T14:40:54
323,644,436
0
0
null
null
null
null
UTF-8
C++
false
false
950
cpp
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef vector<int> vi; typedef pair<int,int> pii; typedef vector<pii> vii; #define F first #define S second int main() { int N, K; cin >> N >> K; vector<string> C(N); set<string> S; for(string & x : C) { cin >> x; S.insert(x); } int res = 0; for(int j=0; j<N; j++) for(int z=j+1; z<N; z++) { string x = C[j], y = C[z], F = ""; for(int i=0; i<K; i++) { if(x[i] == y[i]) F += x[i]; else if((x[i] == 'S' && y[i] == 'E') || (y[i] == 'S' && x[i] == 'E')) F += "T"; else if((x[i] == 'S' && y[i] == 'T') || (y[i] == 'S' && x[i] == 'T')) F += "E"; else if((x[i] == 'T' && y[i] == 'E') || (y[i] == 'T' && x[i] == 'E')) F += "S"; } if(S.count(F) != 0) res++; } cout << res/3; }
[ "cazzadorlorenzo.1@gmail.com" ]
cazzadorlorenzo.1@gmail.com
771137cf0e03437ad8805ff8a76e792a98c4ede1
c969d314658262ef02cc88ea8962b54cebe5efb5
/src/GeneLink.cpp
aef0c8c81d9e18145bd9b6cc22053631c2001bfd
[]
no_license
Lung-Yu/af
6975b2013c7e1adee005acbc92c78e105cf450bc
2b4f187878ce9cb4d7e9f4545604bcabc77046ed
refs/heads/master
2020-03-24T16:55:50.091402
2018-07-30T07:51:01
2018-07-30T07:51:01
142,843,339
0
0
null
null
null
null
UTF-8
C++
false
false
995
cpp
#include "GeneLink.hpp" using namespace std; GeneLink::GeneLink(int innov, int in_node_id, int out_node_id, double w) { this->innovationId = innov; this->inNodeId = in_node_id; this->outNodeId = out_node_id; this->weight = w; this->isEnable = true; this->mutationCount = 0; } GeneLink::~GeneLink() { } int GeneLink::InnovationId() { return this->innovationId; } void GeneLink::harassWeight() { this->weight = NEAT::randfloat() - 0.5; } std::shared_ptr<GeneLink> GeneLink::clone() { return move(make_unique<GeneLink>(this->innovationId, this->inNodeId, this->outNodeId, this->weight)); } int GeneLink::getMutationCount() { return this->mutationCount; } int GeneLink::getInNodeId() { return this->inNodeId; } int GeneLink::getOutNodeId() { return this->outNodeId; } void GeneLink::setEnable() { this->isEnable = true; } void GeneLink::setDisable() { this->isEnable = false; } bool GeneLink::IsEnable(){ return this->isEnable; }
[ "workfile975@gmail.com" ]
workfile975@gmail.com
17d430ab2a2e943aefa0ad42b439aa4ffffbdfcd
e56d100ce7e183df367d6e969844bd84f0079dee
/wzemcmbd/CrdWzemNav/PnlWzemNavPre.h
27b8a989c3b2a87d75e8b8e1ed2f75c01763fa2f
[ "MIT" ]
permissive
mpsitech/wzem-WhizniumSBE-Engine-Monitor
800b556dce0212a6f9ad7fbedbff4c87d9cb5421
2808427d328f45ad1e842e0455565eeb1a563adf
refs/heads/master
2022-09-29T02:41:46.253166
2022-09-12T20:34:28
2022-09-12T20:34:28
282,705,563
0
0
null
null
null
null
UTF-8
C++
false
false
4,300
h
/** * \file PnlWzemNavPre.h * job handler for job PnlWzemNavPre (declarations) * \copyright (C) 2016-2020 MPSI Technologies GmbH * \author Alexander Wirthmueller (auto-generation) * \date created: 1 Dec 2020 */ // IP header --- ABOVE #ifndef PNLWZEMNAVPRE_H #define PNLWZEMNAVPRE_H // IP include.spec --- INSERT // IP include.cust --- INSERT #define VecVWzemNavPreDo PnlWzemNavPre::VecVDo #define ContInfWzemNavPre PnlWzemNavPre::ContInf #define StatShrWzemNavPre PnlWzemNavPre::StatShr #define TagWzemNavPre PnlWzemNavPre::Tag #define DpchAppWzemNavPreDo PnlWzemNavPre::DpchAppDo #define DpchEngWzemNavPreData PnlWzemNavPre::DpchEngData /** * PnlWzemNavPre */ class PnlWzemNavPre : public JobWzem { public: /** * VecVDo (full: VecVWzemNavPreDo) */ class VecVDo { public: static const Sbecore::uint BUTPRDREMOVECLICK = 1; static Sbecore::uint getIx(const std::string& sref); static std::string getSref(const Sbecore::uint ix); }; /** * ContInf (full: ContInfWzemNavPre) */ class ContInf : public Sbecore::Block { public: static const Sbecore::uint TXTPRD = 1; public: ContInf(const std::string& TxtPrd = ""); public: std::string TxtPrd; public: void writeJSON(Json::Value& sup, std::string difftag = ""); void writeXML(xmlTextWriter* wr, std::string difftag = "", bool shorttags = true); std::set<Sbecore::uint> comm(const ContInf* comp); std::set<Sbecore::uint> diff(const ContInf* comp); }; /** * StatShr (full: StatShrWzemNavPre) */ class StatShr : public Sbecore::Block { public: static const Sbecore::uint TXTPRDAVAIL = 1; public: StatShr(const bool TxtPrdAvail = true); public: bool TxtPrdAvail; public: void writeJSON(Json::Value& sup, std::string difftag = ""); void writeXML(xmlTextWriter* wr, std::string difftag = "", bool shorttags = true); std::set<Sbecore::uint> comm(const StatShr* comp); std::set<Sbecore::uint> diff(const StatShr* comp); }; /** * Tag (full: TagWzemNavPre) */ class Tag { public: static void writeJSON(const Sbecore::uint ixWzemVLocale, Json::Value& sup, std::string difftag = ""); static void writeXML(const Sbecore::uint ixWzemVLocale, xmlTextWriter* wr, std::string difftag = "", bool shorttags = true); }; /** * DpchAppDo (full: DpchAppWzemNavPreDo) */ class DpchAppDo : public DpchAppWzem { public: static const Sbecore::uint JREF = 1; static const Sbecore::uint IXVDO = 2; public: DpchAppDo(); public: Sbecore::uint ixVDo; public: std::string getSrefsMask(); void readJSON(const Json::Value& sup, bool addbasetag = false); void readXML(xmlXPathContext* docctx, std::string basexpath = "", bool addbasetag = false); }; /** * DpchEngData (full: DpchEngWzemNavPreData) */ class DpchEngData : public DpchEngWzem { public: static const Sbecore::uint JREF = 1; static const Sbecore::uint CONTINF = 2; static const Sbecore::uint STATSHR = 3; static const Sbecore::uint TAG = 4; static const Sbecore::uint ALL = 5; public: DpchEngData(const Sbecore::ubigint jref = 0, ContInf* continf = NULL, StatShr* statshr = NULL, const std::set<Sbecore::uint>& mask = {NONE}); public: ContInf continf; StatShr statshr; public: std::string getSrefsMask(); void merge(DpchEngWzem* dpcheng); void writeJSON(const Sbecore::uint ixWzemVLocale, Json::Value& sup); void writeXML(const Sbecore::uint ixWzemVLocale, xmlTextWriter* wr); }; bool evalTxtPrdAvail(DbsWzem* dbswzem); public: PnlWzemNavPre(XchgWzem* xchg, DbsWzem* dbswzem, const Sbecore::ubigint jrefSup, const Sbecore::uint ixWzemVLocale); ~PnlWzemNavPre(); public: ContInf continf; StatShr statshr; // IP vars.cust --- INSERT public: // IP cust --- INSERT public: DpchEngWzem* getNewDpchEng(std::set<Sbecore::uint> items); void refresh(DbsWzem* dbswzem, std::set<Sbecore::uint>& moditems, const bool unmute = false); void updatePreset(DbsWzem* dbswzem, const Sbecore::uint ixWzemVPreset, const Sbecore::ubigint jrefTrig, const bool notif = false); public: public: void handleRequest(DbsWzem* dbswzem, ReqWzem* req); private: void handleDpchAppWzemInit(DbsWzem* dbswzem, DpchAppWzemInit* dpchappwzeminit, DpchEngWzem** dpcheng); void handleDpchAppDoButPrdRemoveClick(DbsWzem* dbswzem, DpchEngWzem** dpcheng); }; #endif
[ "aw@mpsitech.com" ]
aw@mpsitech.com
823576e6e32ae81ff7ab49f193e1e955ddca07f7
610283b5280b205273e400a14b7c85695c7ed7e4
/catkin_ws/src/mrpt_navigation/mrpt_localization/src/mrpt_localization_node.cpp
d275218e15d80a8352b5b185ff17bcbe07f06df4
[ "BSD-2-Clause" ]
permissive
attaoveisi/AttBot_Rasberry
a2824189110c7945152e049444666c97d758d2e3
dadcd6e80e2f3c7bd78c7a48ef64799de7bfa17f
refs/heads/master
2023-02-18T07:57:46.037968
2021-01-10T10:49:58
2021-01-10T10:49:58
254,923,662
1
0
null
null
null
null
UTF-8
C++
false
false
21,357
cpp
/*********************************************************************************** * Revised BSD License * * Copyright (c) 2014, Markus Bader <markus.bader@tuwien.ac.at> * * All rights reserved. * * * * Redistribution and use in source and binary forms, with or without * * modification, are permitted provided that the following conditions are met: * * * Redistributions of source code must retain the above copyright * * notice, this list of conditions and the following disclaimer. * * * Redistributions in binary form must reproduce the above copyright * * notice, this list of conditions and the following disclaimer in the * * documentation and/or other materials provided with the distribution. * * * Neither the name of the Vienna University of Technology nor the * * names of its contributors may be used to endorse or promote products * * derived from this software without specific prior written permission. * * * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" *AND * * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED ** * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE * * DISCLAIMED. IN NO EVENT SHALL Markus Bader BE LIABLE FOR ANY * * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES * * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; ** * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND * * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT * * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS ** * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ** * ***********************************************************************************/ #include <boost/interprocess/sync/scoped_lock.hpp> #include <geometry_msgs/PoseArray.h> #include <pose_cov_ops/pose_cov_ops.h> #include <mrpt_bridge/pose.h> #include <mrpt_bridge/laser_scan.h> #include <mrpt_bridge/time.h> #include <mrpt_bridge/map.h> #include <mrpt_bridge/beacon.h> #include <mrpt/version.h> #include <mrpt/obs/CObservationBeaconRanges.h> using namespace mrpt::obs; #include <mrpt/version.h> // #if MRPT_VERSION >= 0x199 #include <mrpt/system/COutputLogger.h> using namespace mrpt::system; #else #include <mrpt/utils/COutputLogger.h> using namespace mrpt::utils; #endif #include <mrpt/obs/CObservationRobotPose.h> #include "mrpt_localization_node.h" #include <mrpt/maps/COccupancyGridMap2D.h> using mrpt::maps::COccupancyGridMap2D; int main(int argc, char** argv) { ros::init(argc, argv, "localization"); ros::NodeHandle nh; PFLocalizationNode my_node(nh); my_node.init(); my_node.loop(); return 0; } PFLocalizationNode::~PFLocalizationNode() {} PFLocalizationNode::PFLocalizationNode(ros::NodeHandle& n) : PFLocalization(new PFLocalizationNode::Parameters(this)), nh_(n), first_map_received_(false), loop_count_(0) { } PFLocalizationNode::Parameters* PFLocalizationNode::param() { return (PFLocalizationNode::Parameters*)param_; } void PFLocalizationNode::init() { // Use MRPT library the same log level as on ROS nodes (only for // MRPT_VERSION >= 0x150) useROSLogLevel(); PFLocalization::init(); sub_init_pose_ = nh_.subscribe( "initialpose", 1, &PFLocalizationNode::callbackInitialpose, this); sub_odometry_ = nh_.subscribe("odom", 1, &PFLocalizationNode::callbackOdometry, this); // Subscribe to one or more laser sources: std::vector<std::string> sources; mrpt::system::tokenize(param()->sensor_sources, " ,\t\n", sources); ROS_ASSERT_MSG( !sources.empty(), "*Fatal*: At least one sensor source must be provided in " "~sensor_sources (e.g. \"scan\" or \"beacon\")"); sub_sensors_.resize(sources.size()); for (size_t i = 0; i < sources.size(); i++) { if (sources[i].find("scan") != std::string::npos) { sub_sensors_[i] = nh_.subscribe( sources[i], 1, &PFLocalizationNode::callbackLaser, this); } else if (sources[i].find("beacon") != std::string::npos) { sub_sensors_[i] = nh_.subscribe( sources[i], 1, &PFLocalizationNode::callbackBeacon, this); } else { sub_sensors_[i] = nh_.subscribe( sources[i], 1, &PFLocalizationNode::callbackRobotPose, this); } } if (!param()->map_file.empty()) { #if MRPT_VERSION >= 0x199 if (metric_map_.countMapsByClass<COccupancyGridMap2D>()) { mrpt_bridge::convert( *metric_map_.mapByClass<COccupancyGridMap2D>(), resp_.map); } #else if (metric_map_.m_gridMaps.size()) { mrpt_bridge::convert(*metric_map_.m_gridMaps[0], resp_.map); } #endif pub_map_ = nh_.advertise<nav_msgs::OccupancyGrid>("map", 1, true); pub_metadata_ = nh_.advertise<nav_msgs::MapMetaData>("map_metadata", 1, true); service_map_ = nh_.advertiseService( "static_map", &PFLocalizationNode::mapCallback, this); } pub_particles_ = nh_.advertise<geometry_msgs::PoseArray>("particlecloud", 1, true); pub_pose_ = nh_.advertise<geometry_msgs::PoseWithCovarianceStamped>( "mrpt_pose", 2, true); } void PFLocalizationNode::loop() { ROS_INFO("loop"); for (ros::Rate rate(param()->rate); ros::ok(); loop_count_++) { param()->update(loop_count_); if ((loop_count_ % param()->map_update_skip == 0) && #if MRPT_VERSION >= 0x199 (metric_map_.countMapsByClass<COccupancyGridMap2D>())) #else (metric_map_.m_gridMaps.size())) #endif publishMap(); if (loop_count_ % param()->particlecloud_update_skip == 0) publishParticles(); if (param()->tf_broadcast) publishTF(); if (param()->pose_broadcast) publishPose(); ros::spinOnce(); rate.sleep(); } } bool PFLocalizationNode::waitForTransform( mrpt::poses::CPose3D& des, const std::string& target_frame, const std::string& source_frame, const ros::Time& time, const ros::Duration& timeout, const ros::Duration& polling_sleep_duration) { tf::StampedTransform transform; try { tf_listener_.waitForTransform( target_frame, source_frame, time, timeout, polling_sleep_duration); tf_listener_.lookupTransform( target_frame, source_frame, time, transform); } catch (tf::TransformException& e) { ROS_WARN( "Failed to get transform target_frame (%s) to source_frame (%s): " "%s", target_frame.c_str(), source_frame.c_str(), e.what()); return false; } mrpt_bridge::convert(transform, des); return true; } void PFLocalizationNode::callbackLaser(const sensor_msgs::LaserScan& _msg) { using namespace mrpt::maps; using namespace mrpt::obs; time_last_input_ = ros::Time::now(); // ROS_INFO("callbackLaser"); auto laser = CObservation2DRangeScan::Create(); // printf("callbackLaser %s\n", _msg.header.frame_id.c_str()); if (laser_poses_.find(_msg.header.frame_id) == laser_poses_.end()) { updateSensorPose(_msg.header.frame_id); } else if (state_ != IDLE) // updating filter; we must be moving or // update_while_stopped set to true { if(param()->update_sensor_pose) { updateSensorPose(_msg.header.frame_id); } // mrpt::poses::CPose3D pose = laser_poses_[_msg.header.frame_id]; // ROS_INFO("LASER POSE %4.3f, %4.3f, %4.3f, %4.3f, %4.3f, %4.3f", // pose.x(), pose.y(), pose.z(), pose.roll(), pose.pitch(), pose.yaw()); mrpt_bridge::convert(_msg, laser_poses_[_msg.header.frame_id], *laser); auto sf = CSensoryFrame::Create(); CObservationOdometry::Ptr odometry; odometryForCallback(odometry, _msg.header); CObservation::Ptr obs = CObservation::Ptr(laser); sf->insert(obs); observation(sf, odometry); if (param()->gui_mrpt) show3DDebug(sf); } } void PFLocalizationNode::callbackBeacon( const mrpt_msgs::ObservationRangeBeacon& _msg) { using namespace mrpt::maps; using namespace mrpt::obs; time_last_input_ = ros::Time::now(); // ROS_INFO("callbackBeacon"); auto beacon = CObservationBeaconRanges::Create(); // printf("callbackBeacon %s\n", _msg.header.frame_id.c_str()); if (beacon_poses_.find(_msg.header.frame_id) == beacon_poses_.end()) { updateSensorPose(_msg.header.frame_id); } else if (state_ != IDLE) // updating filter; we must be moving or // update_while_stopped set to true { if(param()->update_sensor_pose) { updateSensorPose(_msg.header.frame_id); } // mrpt::poses::CPose3D pose = beacon_poses_[_msg.header.frame_id]; // ROS_INFO("BEACON POSE %4.3f, %4.3f, %4.3f, %4.3f, %4.3f, %4.3f", // pose.x(), pose.y(), pose.z(), pose.roll(), pose.pitch(), pose.yaw()); mrpt_bridge::convert( _msg, beacon_poses_[_msg.header.frame_id], *beacon); auto sf = CSensoryFrame::Create(); CObservationOdometry::Ptr odometry; odometryForCallback(odometry, _msg.header); CObservation::Ptr obs = CObservation::Ptr(beacon); sf->insert(obs); observation(sf, odometry); if (param()->gui_mrpt) show3DDebug(sf); } } void PFLocalizationNode::callbackRobotPose( const geometry_msgs::PoseWithCovarianceStamped& _msg) { using namespace mrpt::maps; using namespace mrpt::obs; time_last_input_ = ros::Time::now(); // Robot pose externally provided; we update filter regardless state_ // attribute's value, as these // corrections are typically independent from robot motion (e.g. inputs from // GPS or tracking system) // XXX admittedly an arbitrary choice; feel free to open an issue if you // think it doesn't make sense static std::string base_frame_id = tf::resolve(param()->tf_prefix, param()->base_frame_id); static std::string global_frame_id = tf::resolve(param()->tf_prefix, param()->global_frame_id); tf::StampedTransform map_to_obs_tf; try { tf_listener_.waitForTransform( global_frame_id, _msg.header.frame_id, ros::Time(0.0), ros::Duration(0.5)); tf_listener_.lookupTransform( global_frame_id, _msg.header.frame_id, ros::Time(0.0), map_to_obs_tf); } catch (tf::TransformException& ex) { ROS_ERROR("%s", ex.what()); return; } // Transform observation into global frame, including covariance. For that, // we must first obtain // the global frame -> observation frame tf as a Pose msg, as required by // pose_cov_ops::compose geometry_msgs::Pose map_to_obs_pose; tf::pointTFToMsg(map_to_obs_tf.getOrigin(), map_to_obs_pose.position); tf::quaternionTFToMsg( map_to_obs_tf.getRotation(), map_to_obs_pose.orientation); geometry_msgs::PoseWithCovarianceStamped obs_pose_world; obs_pose_world.header.stamp = _msg.header.stamp; obs_pose_world.header.frame_id = global_frame_id; pose_cov_ops::compose(map_to_obs_pose, _msg.pose, obs_pose_world.pose); // Ensure the covariance matrix can be inverted (no zeros in the diagonal) for (unsigned int i = 0; i < obs_pose_world.pose.covariance.size(); ++i) { if (i / 6 == i % 6 && obs_pose_world.pose.covariance[i] <= 0.0) obs_pose_world.pose.covariance[i] = std::numeric_limits<double>().infinity(); } // Covert the received pose into an observation the filter can integrate auto feature = CObservationRobotPose::Create(); feature->sensorLabel = _msg.header.frame_id; mrpt_bridge::convert(_msg.header.stamp, feature->timestamp); mrpt_bridge::convert(obs_pose_world.pose, feature->pose); auto sf = CSensoryFrame::Create(); CObservationOdometry::Ptr odometry; odometryForCallback(odometry, _msg.header); CObservation::Ptr obs = CObservation::Ptr(feature); sf->insert(obs); observation(sf, odometry); if (param()->gui_mrpt) show3DDebug(sf); } void PFLocalizationNode::odometryForCallback( CObservationOdometry::Ptr& _odometry, const std_msgs::Header& _msg_header) { std::string base_frame_id = tf::resolve(param()->tf_prefix, param()->base_frame_id); std::string odom_frame_id = tf::resolve(param()->tf_prefix, param()->odom_frame_id); mrpt::poses::CPose3D poseOdom; if (this->waitForTransform( poseOdom, odom_frame_id, base_frame_id, _msg_header.stamp, ros::Duration(1.0))) { _odometry = CObservationOdometry::Create(); _odometry->sensorLabel = odom_frame_id; _odometry->hasEncodersInfo = false; _odometry->hasVelocities = false; _odometry->odometry.x() = poseOdom.x(); _odometry->odometry.y() = poseOdom.y(); _odometry->odometry.phi() = poseOdom.yaw(); } } bool PFLocalizationNode::waitForMap() { int wait_counter = 0; int wait_limit = 10; if (param()->use_map_topic) { sub_map_ = nh_.subscribe("map", 1, &PFLocalizationNode::callbackMap, this); ROS_INFO("Subscribed to map topic."); while (!first_map_received_ && ros::ok() && wait_counter < wait_limit) { ROS_INFO("waiting for map callback.."); ros::Duration(0.5).sleep(); ros::spinOnce(); wait_counter++; } if (wait_counter != wait_limit) { return true; } } else { client_map_ = nh_.serviceClient<nav_msgs::GetMap>("static_map"); nav_msgs::GetMap srv; while (!client_map_.call(srv) && ros::ok() && wait_counter < wait_limit) { ROS_INFO("waiting for map service!"); ros::Duration(0.5).sleep(); wait_counter++; } client_map_.shutdown(); if (wait_counter != wait_limit) { ROS_INFO_STREAM("Map service complete."); updateMap(srv.response.map); return true; } } ROS_WARN_STREAM("No map received."); return false; } void PFLocalizationNode::callbackMap(const nav_msgs::OccupancyGrid& msg) { if (param()->first_map_only && first_map_received_) { return; } ROS_INFO_STREAM("Map received."); updateMap(msg); first_map_received_ = true; } void PFLocalizationNode::updateSensorPose(std::string _frame_id) { mrpt::poses::CPose3D pose; tf::StampedTransform transform; try { std::string base_frame_id = tf::resolve(param()->tf_prefix, param()->base_frame_id); tf_listener_.lookupTransform( base_frame_id, _frame_id, ros::Time(0), transform); tf::Vector3 translation = transform.getOrigin(); tf::Quaternion quat = transform.getRotation(); pose.x() = translation.x(); pose.y() = translation.y(); pose.z() = translation.z(); tf::Matrix3x3 Rsrc(quat); mrpt::math::CMatrixDouble33 Rdes; for (int c = 0; c < 3; c++) for (int r = 0; r < 3; r++) Rdes(r, c) = Rsrc.getRow(r)[c]; pose.setRotationMatrix(Rdes); laser_poses_[_frame_id] = pose; beacon_poses_[_frame_id] = pose; } catch (tf::TransformException& ex) { ROS_ERROR("%s", ex.what()); ros::Duration(1.0).sleep(); } } void PFLocalizationNode::callbackInitialpose( const geometry_msgs::PoseWithCovarianceStamped& _msg) { const geometry_msgs::PoseWithCovariance& pose = _msg.pose; mrpt_bridge::convert(pose, initial_pose_); update_counter_ = 0; state_ = INIT; } void PFLocalizationNode::callbackOdometry(const nav_msgs::Odometry& _msg) { // We always update the filter if update_while_stopped is true, regardless // robot is moving or // not; otherwise, update filter if we are moving or at initialization (100 // first iterations) bool moving = std::abs(_msg.twist.twist.linear.x) > 1e-3 || std::abs(_msg.twist.twist.linear.y) > 1e-3 || std::abs(_msg.twist.twist.linear.z) > 1e-3 || std::abs(_msg.twist.twist.angular.x) > 1e-3 || std::abs(_msg.twist.twist.angular.y) > 1e-3 || std::abs(_msg.twist.twist.angular.z) > 1e-3; if (param()->update_while_stopped || moving) { if (state_ == IDLE) { state_ = RUN; } } else if (state_ == RUN && update_counter_ >= 100) { state_ = IDLE; } } void PFLocalizationNode::updateMap(const nav_msgs::OccupancyGrid& _msg) { #if MRPT_VERSION >= 0x199 ASSERT_(metric_map_.countMapsByClass<COccupancyGridMap2D>()); mrpt_bridge::convert(_msg, *metric_map_.mapByClass<COccupancyGridMap2D>()); #else ASSERT_(metric_map_.m_gridMaps.size() == 1); mrpt_bridge::convert(_msg, *metric_map_.m_gridMaps[0]); #endif } bool PFLocalizationNode::mapCallback( nav_msgs::GetMap::Request& req, nav_msgs::GetMap::Response& res) { ROS_INFO("mapCallback: service requested!\n"); res = resp_; return true; } void PFLocalizationNode::publishMap() { resp_.map.header.stamp = ros::Time::now(); resp_.map.header.frame_id = tf::resolve(param()->tf_prefix, param()->global_frame_id); resp_.map.header.seq = loop_count_; if (pub_map_.getNumSubscribers() > 0) { pub_map_.publish(resp_.map); } if (pub_metadata_.getNumSubscribers() > 0) { pub_metadata_.publish(resp_.map.info); } } void PFLocalizationNode::publishParticles() { if (pub_particles_.getNumSubscribers() > 0) { geometry_msgs::PoseArray poseArray; poseArray.header.frame_id = tf::resolve(param()->tf_prefix, param()->global_frame_id); poseArray.header.stamp = ros::Time::now(); poseArray.header.seq = loop_count_; poseArray.poses.resize(pdf_.particlesCount()); for (size_t i = 0; i < pdf_.particlesCount(); i++) { mrpt::math::TPose2D p = pdf_.getParticlePose(i); mrpt_bridge::convert(p, poseArray.poses[i]); } mrpt::poses::CPose2D p; pub_particles_.publish(poseArray); } } /** * @brief Publish map -> odom tf; as the filter provides map -> base, we * multiply it by base -> odom */ void PFLocalizationNode::publishTF() { static std::string base_frame_id = tf::resolve(param()->tf_prefix, param()->base_frame_id); static std::string odom_frame_id = tf::resolve(param()->tf_prefix, param()->odom_frame_id); static std::string global_frame_id = tf::resolve(param()->tf_prefix, param()->global_frame_id); mrpt::poses::CPose2D robot_pose; pdf_.getMean(robot_pose); tf::StampedTransform base_on_map_tf, odom_on_base_tf; mrpt_bridge::convert(robot_pose, base_on_map_tf); ros::Time time_last_update(0.0); if (state_ == RUN) { mrpt_bridge::convert(time_last_update_, time_last_update); // Last update time can be too far in the past if we where not updating // filter, due to robot stopped or no // observations for a while (we optionally show a warning in the second // case) // We use time zero if so when getting base -> odom tf to prevent an // extrapolation into the past exception if ((ros::Time::now() - time_last_update).toSec() > param()->no_update_tolerance) { if ((ros::Time::now() - time_last_input_).toSec() > param()->no_inputs_tolerance) { ROS_WARN_THROTTLE( 2.0, "No observations received for %.2fs (tolerance %.2fs); are " "robot sensors working?", (ros::Time::now() - time_last_input_).toSec(), param()->no_inputs_tolerance); } else { ROS_DEBUG_THROTTLE( 2.0, "No filter updates for %.2fs (tolerance %.2fs); probably " "robot stopped for a while", (ros::Time::now() - time_last_update).toSec(), param()->no_update_tolerance); } time_last_update = ros::Time(0.0); } } try { // Get base -> odom transform tf_listener_.waitForTransform( base_frame_id, odom_frame_id, time_last_update, ros::Duration(0.1)); tf_listener_.lookupTransform( base_frame_id, odom_frame_id, time_last_update, odom_on_base_tf); } catch (tf::TransformException& e) { ROS_WARN_THROTTLE( 2.0, "Transform from base frame (%s) to odom frame (%s) failed: %s", base_frame_id.c_str(), odom_frame_id.c_str(), e.what()); ROS_WARN_THROTTLE( 2.0, "Ensure that your mobile base driver is broadcasting %s -> %s tf", odom_frame_id.c_str(), base_frame_id.c_str()); return; } // We want to send a transform that is good up until a tolerance time so // that odom can be used ros::Time transform_expiration = (time_last_update.isZero() ? ros::Time::now() : time_last_update) + ros::Duration(param()->transform_tolerance); tf::StampedTransform tmp_tf_stamped( base_on_map_tf * odom_on_base_tf, transform_expiration, global_frame_id, odom_frame_id); tf_broadcaster_.sendTransform(tmp_tf_stamped); } /** * @brief Publish the current pose of the robot **/ void PFLocalizationNode::publishPose() { // cov for x, y, phi (meter, meter, radian) #if MRPT_VERSION >= 0x199 const auto [cov, mean] = pdf_.getCovarianceAndMean(); #else mrpt::math::CMatrixDouble33 cov; mrpt::poses::CPose2D mean; pdf_.getCovarianceAndMean(cov, mean); #endif geometry_msgs::PoseWithCovarianceStamped p; // Fill in the header p.header.frame_id = tf::resolve(param()->tf_prefix, param()->global_frame_id); if (loop_count_ < 10 || state_ == IDLE) p.header.stamp = ros::Time::now(); // on first iterations timestamp // differs a lot from ROS time else mrpt_bridge::convert(time_last_update_, p.header.stamp); // Copy in the pose mrpt_bridge::convert(mean, p.pose.pose); // Copy in the covariance, converting from 3-D to 6-D for (int i = 0; i < 3; i++) { for (int j = 0; j < 3; j++) { int ros_i = i; int ros_j = j; if (i == 2 || j == 2) { ros_i = i == 2 ? 5 : i; ros_j = j == 2 ? 5 : j; } p.pose.covariance[ros_i * 6 + ros_j] = cov(i, j); } } pub_pose_.publish(p); } void PFLocalizationNode::useROSLogLevel() { // Set ROS log level also on MRPT internal log system; level enums are fully // compatible std::map<std::string, ros::console::levels::Level> loggers; ros::console::get_loggers(loggers); if (loggers.find("ros.roscpp") != loggers.end()) pdf_.setVerbosityLevel( static_cast<VerbosityLevel>(loggers["ros.roscpp"])); if (loggers.find("ros.mrpt_localization") != loggers.end()) pdf_.setVerbosityLevel( static_cast<VerbosityLevel>(loggers["ros.mrpt_localization"])); }
[ "atta.oveisi@gmail.com" ]
atta.oveisi@gmail.com
b692cfb10b53d86d6be1f832077dd5caff3afe86
dddd6739ea13fb51180d8832827dab0e5aee3eff
/EscapeRoomCXX/Escapegame/Source/Escapegame/DoorLogic.h
7561dcba815ad534671494bc36b54a938f98950c
[]
no_license
danrol/UE4CXXExperiments
3d0b280b2d0117edde18b05bf75e938a3a8c887b
5fafd003fd9999a57d61ff4079a3cd954563e84e
refs/heads/master
2023-01-18T21:05:50.223469
2020-11-22T09:49:52
2020-11-22T09:49:52
297,367,495
0
0
null
null
null
null
UTF-8
C++
false
false
1,586
h
// Fill out your copyright notice in the Description page of Project Settings. #pragma once #include "CoreMinimal.h" #include "Components/ActorComponent.h" #include "Components/AudioComponent.h" #include "Components/PrimitiveComponent.h" #include "Engine/TriggerVolume.h" #include "Engine/World.h" #include "GameFramework/PlayerController.h" #include "DoorLogic.generated.h" UCLASS( ClassGroup=(Custom), meta=(BlueprintSpawnableComponent) ) class ESCAPEGAME_API UDoorLogic : public UActorComponent { GENERATED_BODY() public: // Sets default values for this component's properties UDoorLogic(); protected: // Called when the game starts virtual void BeginPlay() override; public: // Called every frame virtual void TickComponent(float DeltaTime, ELevelTick TickType, FActorComponentTickFunction* ThisTickFunction) override; void OpenDoor(float DeltaTime); void CloseDoor(float DeltaTime); float TotalMassOfActors() const; void FindAudioComponent(); void CheckPressurePlate() const; private: float TickDeltaTime; float DoorPitch; float DoorRoll; float ClosedDoorYaw; float DoorLastOpened = 0.f; bool bIsDoorOpen = false; UPROPERTY(EditAnywhere) ATriggerVolume* PressurePlate = nullptr; UPROPERTY(EditAnywhere) // makes value editable from editor float OpenAngle = 90.f; UPROPERTY(EditAnywhere) float MassToOpenDoor = 10.f; UPROPERTY(EditAnywhere) float DoorCloseDelay = 0.3f; UPROPERTY(EditAnywhere) float OpenDoorSpeed = 1.1f; UPROPERTY(EditAnywhere) float CloseDoorSpeed = 1.1f; UPROPERTY() UAudioComponent* AudioComponent = nullptr; };
[ "danrol92@gmail.com" ]
danrol92@gmail.com
821d2264c5841bc92341eff9481f160c964eca32
abff3f461cd7d740cfc1e675b23616ee638e3f1e
/opencascade/TFunction_Function.hxx
0d227729a11833673283d748ae69c348cca3a8c1
[ "Apache-2.0" ]
permissive
CadQuery/pywrap
4f93a4191d3f033f67e1fc209038fc7f89d53a15
f3bcde70fd66a2d884fa60a7a9d9f6aa7c3b6e16
refs/heads/master
2023-04-27T04:49:58.222609
2023-02-10T07:56:06
2023-02-10T07:56:06
146,502,084
22
25
Apache-2.0
2023-05-01T12:14:52
2018-08-28T20:18:59
C++
UTF-8
C++
false
false
3,693
hxx
// Created on: 1999-06-10 // Created by: Vladislav ROMASHKO // Copyright (c) 1999 Matra Datavision // Copyright (c) 1999-2014 OPEN CASCADE SAS // // This file is part of Open CASCADE Technology software library. // // This library is free software; you can redistribute it and/or modify it under // the terms of the GNU Lesser General Public License version 2.1 as published // by the Free Software Foundation, with special exception defined in the file // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT // distribution for complete text of the license and disclaimer of any warranty. // // Alternatively, this file may be used under the terms of Open CASCADE // commercial license or contractual agreement. #ifndef _TFunction_Function_HeaderFile #define _TFunction_Function_HeaderFile #include <Standard.hxx> #include <Standard_Type.hxx> #include <Standard_GUID.hxx> #include <Standard_Integer.hxx> #include <TDF_Attribute.hxx> #include <Standard_Boolean.hxx> #include <Standard_OStream.hxx> class TDF_Label; class Standard_GUID; class TDF_Attribute; class TDF_RelocationTable; class TDF_DataSet; class TFunction_Function; DEFINE_STANDARD_HANDLE(TFunction_Function, TDF_Attribute) //! Provides the following two services //! - a link to an evaluation driver //! - the means of providing a link between a //! function and an evaluation driver. class TFunction_Function : public TDF_Attribute { public: //! Static methods: //! ============== //! Finds or Creates a function attribute on the label <L>. //! Returns the function attribute. Standard_EXPORT static Handle(TFunction_Function) Set (const TDF_Label& L); //! Finds or Creates a function attribute on the label <L>. //! Sets a driver ID to the function. //! Returns the function attribute. Standard_EXPORT static Handle(TFunction_Function) Set (const TDF_Label& L, const Standard_GUID& DriverID); //! Returns the GUID for functions. //! Returns a function found on the label. //! Instance methods: //! ================ Standard_EXPORT static const Standard_GUID& GetID(); Standard_EXPORT TFunction_Function(); //! Returns the GUID for this function's driver. const Standard_GUID& GetDriverGUID() const { return myDriverGUID; } //! Sets the driver for this function as that //! indentified by the GUID guid. Standard_EXPORT void SetDriverGUID (const Standard_GUID& guid); //! Returns true if the execution failed Standard_Boolean Failed() const { return myFailure != 0; } //! Sets the failed index. Standard_EXPORT void SetFailure (const Standard_Integer mode = 0); //! Returns an index of failure if the execution of this function failed. //! If this integer value is 0, no failure has occurred. //! Implementation of Attribute methods: //! =================================== Standard_Integer GetFailure() const { return myFailure; } Standard_EXPORT const Standard_GUID& ID() const Standard_OVERRIDE; Standard_EXPORT virtual void Restore (const Handle(TDF_Attribute)& with) Standard_OVERRIDE; Standard_EXPORT virtual void Paste (const Handle(TDF_Attribute)& into, const Handle(TDF_RelocationTable)& RT) const Standard_OVERRIDE; Standard_EXPORT virtual Handle(TDF_Attribute) NewEmpty() const Standard_OVERRIDE; Standard_EXPORT virtual void References (const Handle(TDF_DataSet)& aDataSet) const Standard_OVERRIDE; Standard_EXPORT virtual Standard_OStream& Dump (Standard_OStream& anOS) const Standard_OVERRIDE; DEFINE_STANDARD_RTTIEXT(TFunction_Function,TDF_Attribute) private: Standard_GUID myDriverGUID; Standard_Integer myFailure; }; #endif // _TFunction_Function_HeaderFile
[ "adam.jan.urbanczyk@gmail.com" ]
adam.jan.urbanczyk@gmail.com
1490b9633d68c66cfc79c6151cc8de6b7da96404
16e74759177d503c29b558af4fa451b7121b0034
/Trees/is_complete_binary_tree.cpp
9d3e2f285de375eea12321bb90a793557a00213e
[]
no_license
barry-1928/GeeksProblems
45783b72ec90224f1817149daa0595b392b4bc6f
996401c2dc5ee47d81f987918d89d5326487be94
refs/heads/master
2020-03-19T12:48:15.359725
2018-06-13T17:59:44
2018-06-13T17:59:44
136,541,383
0
0
null
null
null
null
UTF-8
C++
false
false
1,847
cpp
#include<bits/stdc++.h> using namespace std; bool isCompleteBT(struct node* root) { queue<node*> q; q.push(root); int c = 0; bool b = false; while(!q.empty()) { int cnt = q.size(); if(cnt == (1<<c)) { bool f1 = true; while(cnt--) { node *f = q.front(); bool b1 = false, b2 = false; if(f->left) {b1 = true; q.push(f->left); } if(f->right) {b2 = true; q.push(f->right); } if(b2) { if(!b1) return false; } if(!b1 && !b2) { if(f1) f1 = false; } else { if(!f1) return false; } q.pop(); } } else { if(!b) { b = true; bool f1 = true; while(cnt--) { node *f = q.front(); bool b1 = false, b2 = false; if(f->left) {b1 = true; q.push(f->left); } if(f->right) {b2 = true; q.push(f->right); } if(b2) { if(!b1) return false; } if(!b1 && !b2) { if(f1) f1 = false; } else { if(!f1) return false; } q.pop(); } } else { return false; } } c++; } return true; }
[ "rajatbhatta6399@gmail.com" ]
rajatbhatta6399@gmail.com
ef809a46dc44efa3161a13cbf983902b37919b65
e396ca3e9140c8a1f43c2505af6f318d40a7db1d
/unittest/internal_test/HA1209_ActiveContents_Sound.hpp
8705c1043bc096c9a902c3206813b22027ea3c28
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
kenji-hosokawa/rba
4fb2c8ef84c5b8bf2d80785986abd299c9e76203
52a88df64dcfec8165aea32cb3052e7e74a3a709
refs/heads/master
2022-12-17T10:23:05.558421
2020-07-29T11:03:27
2020-07-29T11:03:27
274,852,993
0
0
null
2020-06-25T07:19:19
2020-06-25T07:19:19
null
UTF-8
C++
false
false
643
hpp
// Copyright (c) 2019 DENSO CORPORATION. All rights reserved. /** * HA1209_ActiveContents_Sound.hpp */ #ifndef HA1209_ACTIVECONTENTS_SOUND_HPP #define HA1209_ACTIVECONTENTS_SOUND_HPP #include <string> #include "gtest/gtest.h" #include "RBAArbitrator.hpp" #define JSONFILE "HA1209_ActiveContents_Sound.json" namespace { class HA1209_ActiveContents_Sound : public ::testing::Test { protected: HA1209_ActiveContents_Sound()=default; virtual ~HA1209_ActiveContents_Sound()=default; virtual void SetUp(); virtual void TearDown(); protected: rba::RBAModel* model_ = nullptr; rba::RBAArbitrator* arb_= nullptr; }; } #endif
[ "nnishiguchi@jp.adit-jv.com" ]
nnishiguchi@jp.adit-jv.com
e59895f3ed8398a23379bca4dff661b1a17fd5cc
a047b4009ca2e9460b558f8406b5e435f90b1add
/xraftvt/main.cc
81b587dc1896c14984722b952092bc2483d97699
[]
no_license
shin1m/xraft
d92dfd877da74a83a9de65fd69898fc2442eaf9d
a65f3e5b0e4c85eba6ac938028a8e61e2da63b48
refs/heads/main
2023-06-30T23:15:19.511340
2023-06-11T21:58:38
2023-06-11T21:58:38
3,844,881
0
0
null
null
null
null
UTF-8
C++
false
false
3,303
cc
#include "window.h" #include <sys/wait.h> #include <pty.h> #include <signal.h> #ifdef XRAFT_UTMP #include <cstring> #include <pwd.h> #include <utmp.h> #endif namespace { void f_terminate(int a_signal) { try { f_application()->f_exit(); } catch (std::runtime_error&) { } } void f_wait(int a_signal) { wait(NULL); try { f_application()->f_exit(); } catch (std::runtime_error&) { } } #ifdef XRAFT_UTMP uid_t v_euid = geteuid(); gid_t v_egid = getegid(); void f_log(struct utmp& a_utmp) { seteuid(v_euid); setegid(v_egid); setutent(); pututline(&a_utmp); endutent(); updwtmp("/var/log/wtmp", &a_utmp); seteuid(getuid()); setegid(getgid()); } void f_login(t_application& a_application, struct utmp& a_utmp, int a_master) { a_utmp.ut_type = UT_UNKNOWN; a_utmp.ut_pid = getpid(); const char* line = ptsname(a_master); if (!line || std::strncmp(line, "/dev/", 5) != 0) return; line += 5; std::strncpy(a_utmp.ut_line, line, UT_LINESIZE); if (std::strncmp(line, "pts/", 4) == 0) { a_utmp.ut_id[0] = 'p'; std::strncpy(a_utmp.ut_id + 1, line + 4, 3); } else if (std::strncmp(line, "tty", 3) == 0) { std::strncpy(a_utmp.ut_id, line + 3, 4); } else { return; } uid_t uid = getuid(); struct passwd* passwd = getpwuid(uid); if (passwd) std::strncpy(a_utmp.ut_user, passwd->pw_name, UT_NAMESIZE); else std::snprintf(a_utmp.ut_user, UT_NAMESIZE, "%d", uid); std::strncpy(a_utmp.ut_host, DisplayString(a_application.f_x11_display()), UT_HOSTSIZE); a_utmp.ut_time = time(NULL); a_utmp.ut_addr = 0; a_utmp.ut_type = USER_PROCESS; f_log(a_utmp); } void f_logout(struct utmp& a_utmp) { if (a_utmp.ut_type != USER_PROCESS) return; a_utmp.ut_type = DEAD_PROCESS; std::memset(a_utmp.ut_line, 0, UT_LINESIZE); std::memset(a_utmp.ut_user, 0, UT_NAMESIZE); std::memset(a_utmp.ut_host, 0, UT_HOSTSIZE); a_utmp.ut_time = 0; f_log(a_utmp); } #endif int f_main(int argc, char* argv[], int a_master) { struct sigaction action; action.sa_flags = 0; action.sa_handler = f_terminate; sigaction(SIGTERM, &action, NULL); sigaction(SIGINT, &action, NULL); sigaction(SIGQUIT, &action, NULL); sigaction(SIGHUP, &action, NULL); action.sa_handler = f_wait; sigaction(SIGCHLD, &action, NULL); std::setlocale(LC_ALL, ""); std::vector<std::string> arguments(argv, argv + argc); t_application application(arguments); #ifdef XRAFT_UTMP struct utmp utmp; f_login(application, utmp, a_master); #endif t_pointer<t_content> content = new t_content(192, 80, 24, a_master); t_pointer<t_pane> pane = new t_pane(content); application.f_add(pane); pane->f_hints(argv[0]); pane->f_show(); application.f_run(); #ifdef XRAFT_UTMP f_logout(utmp); #endif return 0; } } int main(int argc, char* argv[]) { #ifdef XRAFT_UTMP seteuid(getuid()); setegid(getgid()); #endif int master; switch (forkpty(&master, NULL, NULL, NULL)) { case -1: return 1; case 0: { struct sigaction action; action.sa_flags = 0; action.sa_handler = SIG_DFL; sigaction(SIGINT, &action, NULL); sigaction(SIGQUIT, &action, NULL); const char* shell = std::getenv("SHELL"); if (shell == NULL) shell = "/bin/sh"; setenv("TERM", "xterm", 1); return execlp(shell, shell, NULL); } default: { int n = f_main(argc, argv, master); close(master); return n; } } }
[ "shin1morita@gmail.com" ]
shin1morita@gmail.com
9d98e7c166ba43364538d06d48b989f5c4ea7fc8
afac0199cb511396cd375d94b2f7bdac8cfdcc4a
/XJU C++ๅŸบ็ก€/7.6.2ๅŽปๆމๅญ—็ฌฆไธฒ้ฆ–้ƒจ็š„็ฉบๆ ผ.cpp
688d0e70c059889de8e65419bf9c76136d021c47
[]
no_license
LolitaSian/C-notes
086e1ff1c01aaa2105bb1964b8da1df227a13100
cc38f1913dee778278815ab378a118c9c088e4fa
refs/heads/master
2021-04-27T05:13:10.142402
2018-04-10T12:48:18
2018-04-10T12:48:18
122,990,891
5
1
null
null
null
null
GB18030
C++
false
false
371
cpp
#include<iostream> using namespace std; void noblank(char s[]) { int k,j; k=0; while(s[k]==' ') k++;//่ฎก็ฎ—็ฉบๆ ผๆ•ฐ j=k; while(s[j]!='\0') { s[j-k]=s[j]; j++; } s[j-k]='\0'; } int main() { char str[100]; cin.getline(str,100); cout<<"ๅŽปๆމ็ฉบๆ ผไน‹ๅ‰"<<str<<endl; noblank(str); cout<<"ๅŽปๆމ็ฉบๆ ผไน‹ๅŽ"<<str<<endl; return 0; }
[ "1662777456@qq.com" ]
1662777456@qq.com
db5cc1fef9d0f144005dd3c8c269cb029d244c75
1369aff7cb69edc5a30553764992143f676a8e21
/src/Scene.cpp
2c607e264208e08cfd14f08b1c7934ea1d7fb389
[]
no_license
s4906029/Program
50f9b2d84fd8aa3fe178880d46242e8448b28a5c
d5047e1c34031a4a6ce1b70b481b7d85b8c4e3e5
refs/heads/master
2020-03-17T18:49:28.170588
2018-05-18T00:37:21
2018-05-18T00:37:21
133,834,981
0
0
null
null
null
null
UTF-8
C++
false
false
797
cpp
#include "Scene.h" #include "Boid.h" #include <ngl/Random.h> #include <ngl/NGLStream.h> Scene::Scene( ngl::Transformation * _t, ngl::Camera * _camera ) { m_transform = _t; m_camera = _camera; } void Scene::addNewWall( ngl::Vec3 _point, float _size, ngl::Vec3 _normal, bool _draw ) { Wall * newWall = new Wall; _normal.normalize(); newWall -> centre = _point; newWall -> size = _size; newWall -> a = _normal.m_x; newWall -> b = _normal.m_y; newWall -> c = _normal.m_z; newWall -> d = -(newWall->a * _point.m_x + newWall->b * _point.m_y + newWall->c * _point.m_z ); newWall -> draw_flag = _draw; m_walls.push_back( newWall ); }
[ "noreply@github.com" ]
noreply@github.com
fa0d239e6f5b923f8fdacb8fea94377ce36f6aef
04116947acb012476ae3ab711680f0327bd70f46
/Engin4/game/sources/PlayerEntity.cpp
bda4e4185f73c78f9d657e36259a59aff59cd1b0
[]
no_license
TheSeryes/C-GamePerso
8a55327185e27d952495358ef26082169b56ae01
d681b687a39d3c7adb8ff1f8fe0389e933ea0044
refs/heads/master
2020-09-06T03:22:19.036912
2019-12-05T22:39:38
2019-12-05T22:39:38
220,303,079
0
0
null
null
null
null
UTF-8
C++
false
false
2,774
cpp
#include <PlayerEntity.h> #include <TileMap.h> #include <MapEntity.h> #include <Config.h> PlayerEntity::PlayerEntity() { m_Transform = new bart::Transform(); m_Animation = new bart::Animation(); m_RigidBody = new bart::RigidBody(this); } void PlayerEntity::Start() { m_destroyOnLoad = false; m_Animation->Load("Assets/Images/walk.png"); m_Animation->InitAnimation(3, 32, 64); m_Animation->Play(0, 3, 0.5f, true); // Idle frame /*bart::IScene& tScene = bart::Engine::Instance().GetScene(); MapEntity* tMapEntityPtr = static_cast<MapEntity*>(tScene.FindEntity("GameMap")); bart::TileMap* tMap = tMapEntityPtr->GetMapPtr(); m_CollisionLayerPtr = tMap->GetLayer<bart::TileLayer>("Collision"); m_Interactable = tMap->GetLayer<bart::TileLayer>("Lianne");*/ } void PlayerEntity::Destroy() { m_Animation->Unload(); SAFE_DELETE(m_Animation); SAFE_DELETE(m_Transform); SAFE_DELETE(m_RigidBody); } void PlayerEntity::Draw() { m_Animation->Draw(); } void PlayerEntity::Update(float aDeltaTime) { IInput& tInput = Engine::Instance().GetInput(); m_RigidBody->Update(m_Transform, aDeltaTime); if (tInput.IsKeyDown(KEY_LEFT)) { m_Transform->Translate(-1.0f, 0.0f); m_Transform->SetFlip(true, false); m_Animation->Update(m_Transform, aDeltaTime); } else if (tInput.IsKeyDown(KEY_RIGHT)) { m_Transform->Translate(1.0f, 0.0f); m_Transform->SetFlip(false, false); m_Animation->Update(m_Transform, aDeltaTime); } m_RigidBody->SetTransform(m_Transform); } void PlayerEntity::SetPosition(const int aX, const int aY) { m_Transform->SetPosition(static_cast<float>(aX), static_cast<float>(aY)); } void PlayerEntity::SetTransform(float aX, float aY, float aWidth, float aHeight) { m_Transform->SetPosition(aX, aY); m_Transform->SetWidth(aWidth); m_Transform->SetHeight(aHeight); } void PlayerEntity::SetBodyType(bart::EBodyType aType) { m_RigidBody->Create(aType, RECTANGLE_SHAPE, m_Transform); } void PlayerFactory::Create(const std::string& aName, const bart::Rectangle& aDest, float aAngle, bart::TiledProperties* aProps) const { PlayerEntity* tEntity = new PlayerEntity(); tEntity->SetPosition(aDest.X, aDest.Y); tEntity->SetTransform(static_cast<float>(aDest.X), static_cast<float>(aDest.Y), static_cast<float>(aDest.W), static_cast<float>(aDest.H)); const std::string tBody = aProps->GetString("RigidBody"); if (tBody == "dynamic") { tEntity->SetBodyType(DYNAMIC_BODY); } else if (tBody == "static") { tEntity->SetBodyType(STATIC_BODY); } else { tEntity->SetBodyType(KINEMATIC_BODY); } bart::Engine::Instance().GetScene().AddEntity(aName, tEntity); } // Monter dans les lianes, AddForce
[ "jonathan_b07@hotmail.fr" ]
jonathan_b07@hotmail.fr
6ca3a6cdf74762ad92df829cb5fe9ea7bcb98609
90c95fd7a5687b1095bf499892b8c9ba40f59533
/sprout/container/subscript_at.hpp
7b63e362e865b68279856d2262a2b80ac7fc1c53
[ "BSL-1.0" ]
permissive
CreativeLabs0X3CF/Sprout
af60a938fd12e8439a831d4d538c4c48011ca54f
f08464943fbe2ac2030060e6ff20e4bb9782cd8e
refs/heads/master
2021-01-20T17:03:24.630813
2016-08-15T04:44:46
2016-08-15T04:44:46
null
0
0
null
null
null
null
UTF-8
C++
false
false
3,367
hpp
/*============================================================================= Copyright (c) 2011-2016 Bolero MURAKAMI https://github.com/bolero-MURAKAMI/Sprout Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) =============================================================================*/ #ifndef SPROUT_CONTAINER_SUBSCRIPT_AT_HPP #define SPROUT_CONTAINER_SUBSCRIPT_AT_HPP #include <sprout/config.hpp> #include <sprout/workaround/std/cstddef.hpp> #include <sprout/container/traits_fwd.hpp> #include <sprout/container/container_traits.hpp> namespace sprout { // // subscript_at // // effect: // sprout::container_range_traits<Container>::range_subscript_at(cont, i) // [default] // ADL callable range_subscript_at(cont, i) -> range_subscript_at(cont, i) // [default] // Container is T[N] -> cont[i] // otherwise, Container is not const // && sprout::is_const_reference_cast_convertible<const_reference, reference> // && (callable sprout::as_const(cont)[i] // || callable sprout::as_const(cont).begin() // || ADL(without sprout) callable begin(sprout::as_const(cont)) // ) // -> sprout::const_reference_cast<reference>(sprout::subscript_at(sprout::as_const(cont), i)) // otherwise, callable cont[i] -> cont[i] // otherwise -> *sprout::next(sprout::begin(cont), i) // template<typename Container> inline SPROUT_CONSTEXPR typename sprout::container_traits<Container>::reference subscript_at(Container& cont, typename sprout::container_traits<Container>::size_type i) { return sprout::container_range_traits<Container>::range_subscript_at(cont, i); } template<typename Container> inline SPROUT_CONSTEXPR typename sprout::container_traits<Container const>::reference subscript_at(Container const& cont, typename sprout::container_traits<Container const>::size_type i) { return sprout::container_range_traits<Container const>::range_subscript_at(cont, i); } template<typename T, std::size_t N> inline SPROUT_CONSTEXPR typename sprout::container_traits<T[N]>::reference subscript_at(T (& arr)[N], typename sprout::container_traits<T[N]>::size_type i) { return sprout::container_range_traits<T[N]>::range_subscript_at(arr, i); } template<typename T, std::size_t N> inline SPROUT_CONSTEXPR typename sprout::container_traits<T const[N]>::reference subscript_at(T const (& arr)[N], typename sprout::container_traits<T const[N]>::size_type i) { return sprout::container_range_traits<T const[N]>::range_subscript_at(arr, i); } // // csubscript_at // template<typename Container> inline SPROUT_CONSTEXPR typename sprout::container_traits<Container const>::reference csubscript_at(Container const& cont, typename sprout::container_traits<Container const>::size_type i) { return sprout::subscript_at(cont, i); } template<typename T, std::size_t N> inline SPROUT_CONSTEXPR typename sprout::container_traits<T const[N]>::reference csubscript_at(T const (& arr)[N], typename sprout::container_traits<T const[N]>::size_type i) { return sprout::subscript_at(arr, i); } } // namespace sprout #include <sprout/container/container_range_traits.hpp> #endif // #ifndef SPROUT_CONTAINER_SUBSCRIPT_AT_HPP
[ "bolero.murakami@gmail.com" ]
bolero.murakami@gmail.com
1b5bd34aa668cb6f601db71e57c5a6c6a343d77b
f0aba2f950349e00b6452e0f06f412388b7dd012
/Library/Il2cppBuildCache/iOS/il2cppOutput/UnresolvedVirtualCallStubs.cpp
9814976b68c181c8373ab19380647e74b6ea33cf
[]
no_license
sixtyfourbits/quacking-duck-game
40b075eb97f83d21257d5c6cfe3d3e8ed3044dfa
d3a49d195deaac7dd60addfd98717556d253b747
refs/heads/main
2023-09-03T17:00:26.708818
2021-11-14T12:21:18
2021-11-14T12:21:18
417,143,950
0
0
null
null
null
null
UTF-8
C++
false
false
323,010
cpp
๏ปฟ#include "pch-cpp.hpp" #ifndef _MSC_VER # include <alloca.h> #else # include <malloc.h> #endif #include <stdint.h> #include <limits> // System.Char[] struct CharU5BU5D_t7B7FC5BC8091AA3B9CB0B29CDD80B5EE9254AA34; // System.Int32[] struct Int32U5BU5D_t70F1BDC14B1786481B176D6139A5E3B87DC54C32; // UnityEngine.UIElements.StyleValueHandle[] struct StyleValueHandleU5BU5D_t8FCC38AD3E7E9F31424A6842204C9407D70FF41A; // System.UInt32[] struct UInt32U5BU5D_tCF06F1E9E72E0302C762578FF5358CC523F2A2CF; // UnityEngine.EventSystems.BaseRaycaster struct BaseRaycaster_tBC0FB2CBE6D3D40991EC20F689C43F76AD82A876; // UnityEngine.UIElements.Focusable struct Focusable_t54CC145FEE85D2A5D92761C419288150CF5BEC14; // UnityEngine.GameObject struct GameObject_tC000A2E1A7CF1E10FD7BA08863287C072207C319; // System.Threading.ManualResetEvent struct ManualResetEvent_t9E2ED486907E3A16122ED4E946534E4DD6B5A7BA; // System.Reflection.MemberInfo struct MemberInfo_t; // System.Security.Cryptography.RandomNumberGenerator struct RandomNumberGenerator_t2CB5440F189986116A2FA9F907AE52644047AC50; // UnityEngine.UIElements.UIR.RenderChainCommand struct RenderChainCommand_t687866AA005A30DF2AF3D60E22ADC708C90828F1; // UnityEngine.RenderTexture struct RenderTexture_t5FE7A5B47EF962A0E8D7BEBA05E9FC87D49A1849; // UnityEngine.UI.Selectable struct Selectable_t34088A3677CC9D344F81B0D91999D8C5963D7DBD; // System.Threading.SendOrPostCallback struct SendOrPostCallback_t6B7334CE017AF595535507519400AC02D688DC3C; // UnityEngine.Sprite struct Sprite_t5B10B1178EC2E6F53D33FFD77557F31C08A51ED9; // System.String struct String_t; // UnityEngine.UIElements.StyleSheet struct StyleSheet_tB0EAD646842945D83386B5A06090AAFE6A60520F; // UnityEngine.Texture struct Texture_t9FE0218A1EEDF266E8C85879FE123265CACC95AE; // UnityEngine.Texture2D struct Texture2D_t9B604D0D8E28032123641A7E7338FA872E2698BF; // System.Type struct Type_t; // UnityEngine.Events.UnityAction struct UnityAction_t22E545F8BE0A62EE051C6A83E209587A0DB1C099; // UnityEngine.UIElements.VisualElement struct VisualElement_tAF72253CBD78143319BFE58F26C2349B2959C8C0; // System.Void struct Void_t700C6383A2A510C2CF4DD86DABD5CA9FF70ADAC5; struct StyleValueHandle_t46AFAF3564D6DF2EA2739A1D85438355478AD185 ; 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.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.Collections.Generic.KeyValuePair`2<System.Object,System.Object> struct KeyValuePair_2_tFB6A066C69E28C6ACA5FC5E24D969BFADC5FA625 { public: // TKey System.Collections.Generic.KeyValuePair`2::key RuntimeObject * ___key_0; // TValue System.Collections.Generic.KeyValuePair`2::value RuntimeObject * ___value_1; public: inline static int32_t get_offset_of_key_0() { return static_cast<int32_t>(offsetof(KeyValuePair_2_tFB6A066C69E28C6ACA5FC5E24D969BFADC5FA625, ___key_0)); } inline RuntimeObject * get_key_0() const { return ___key_0; } inline RuntimeObject ** get_address_of_key_0() { return &___key_0; } inline void set_key_0(RuntimeObject * value) { ___key_0 = value; Il2CppCodeGenWriteBarrier((void**)(&___key_0), (void*)value); } inline static int32_t get_offset_of_value_1() { return static_cast<int32_t>(offsetof(KeyValuePair_2_tFB6A066C69E28C6ACA5FC5E24D969BFADC5FA625, ___value_1)); } inline RuntimeObject * get_value_1() const { return ___value_1; } inline RuntimeObject ** get_address_of_value_1() { return &___value_1; } inline void set_value_1(RuntimeObject * value) { ___value_1 = value; Il2CppCodeGenWriteBarrier((void**)(&___value_1), (void*)value); } }; // System.Nullable`1<System.Int32> struct Nullable_1_t864FD0051A05D37F91C857AB496BFCB3FE756103 { public: // T System.Nullable`1::value int32_t ___value_0; // System.Boolean System.Nullable`1::has_value bool ___has_value_1; public: inline static int32_t get_offset_of_value_0() { return static_cast<int32_t>(offsetof(Nullable_1_t864FD0051A05D37F91C857AB496BFCB3FE756103, ___value_0)); } inline int32_t get_value_0() const { return ___value_0; } inline int32_t* get_address_of_value_0() { return &___value_0; } inline void set_value_0(int32_t value) { ___value_0 = value; } inline static int32_t get_offset_of_has_value_1() { return static_cast<int32_t>(offsetof(Nullable_1_t864FD0051A05D37F91C857AB496BFCB3FE756103, ___has_value_1)); } inline bool get_has_value_1() const { return ___has_value_1; } inline bool* get_address_of_has_value_1() { return &___has_value_1; } inline void set_has_value_1(bool value) { ___has_value_1 = value; } }; // 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); } }; // UnityEngine.Color struct Color_tF40DAF76C04FFECF3FE6024F85A294741C9CC659 { public: // System.Single UnityEngine.Color::r float ___r_0; // System.Single UnityEngine.Color::g float ___g_1; // System.Single UnityEngine.Color::b float ___b_2; // System.Single UnityEngine.Color::a float ___a_3; public: inline static int32_t get_offset_of_r_0() { return static_cast<int32_t>(offsetof(Color_tF40DAF76C04FFECF3FE6024F85A294741C9CC659, ___r_0)); } inline float get_r_0() const { return ___r_0; } inline float* get_address_of_r_0() { return &___r_0; } inline void set_r_0(float value) { ___r_0 = value; } inline static int32_t get_offset_of_g_1() { return static_cast<int32_t>(offsetof(Color_tF40DAF76C04FFECF3FE6024F85A294741C9CC659, ___g_1)); } inline float get_g_1() const { return ___g_1; } inline float* get_address_of_g_1() { return &___g_1; } inline void set_g_1(float value) { ___g_1 = value; } inline static int32_t get_offset_of_b_2() { return static_cast<int32_t>(offsetof(Color_tF40DAF76C04FFECF3FE6024F85A294741C9CC659, ___b_2)); } inline float get_b_2() const { return ___b_2; } inline float* get_address_of_b_2() { return &___b_2; } inline void set_b_2(float value) { ___b_2 = value; } inline static int32_t get_offset_of_a_3() { return static_cast<int32_t>(offsetof(Color_tF40DAF76C04FFECF3FE6024F85A294741C9CC659, ___a_3)); } inline float get_a_3() const { return ___a_3; } inline float* get_address_of_a_3() { return &___a_3; } inline void set_a_3(float value) { ___a_3 = value; } }; // UnityEngine.Color32 struct Color32_tDB54A78627878A7D2DE42BB028D64306A18E858D { public: union { #pragma pack(push, tp, 1) struct { // System.Int32 UnityEngine.Color32::rgba int32_t ___rgba_0; }; #pragma pack(pop, tp) struct { int32_t ___rgba_0_forAlignmentOnly; }; #pragma pack(push, tp, 1) struct { // System.Byte UnityEngine.Color32::r uint8_t ___r_1; }; #pragma pack(pop, tp) struct { uint8_t ___r_1_forAlignmentOnly; }; #pragma pack(push, tp, 1) struct { char ___g_2_OffsetPadding[1]; // System.Byte UnityEngine.Color32::g uint8_t ___g_2; }; #pragma pack(pop, tp) struct { char ___g_2_OffsetPadding_forAlignmentOnly[1]; uint8_t ___g_2_forAlignmentOnly; }; #pragma pack(push, tp, 1) struct { char ___b_3_OffsetPadding[2]; // System.Byte UnityEngine.Color32::b uint8_t ___b_3; }; #pragma pack(pop, tp) struct { char ___b_3_OffsetPadding_forAlignmentOnly[2]; uint8_t ___b_3_forAlignmentOnly; }; #pragma pack(push, tp, 1) struct { char ___a_4_OffsetPadding[3]; // System.Byte UnityEngine.Color32::a uint8_t ___a_4; }; #pragma pack(pop, tp) struct { char ___a_4_OffsetPadding_forAlignmentOnly[3]; uint8_t ___a_4_forAlignmentOnly; }; }; public: inline static int32_t get_offset_of_rgba_0() { return static_cast<int32_t>(offsetof(Color32_tDB54A78627878A7D2DE42BB028D64306A18E858D, ___rgba_0)); } inline int32_t get_rgba_0() const { return ___rgba_0; } inline int32_t* get_address_of_rgba_0() { return &___rgba_0; } inline void set_rgba_0(int32_t value) { ___rgba_0 = value; } inline static int32_t get_offset_of_r_1() { return static_cast<int32_t>(offsetof(Color32_tDB54A78627878A7D2DE42BB028D64306A18E858D, ___r_1)); } inline uint8_t get_r_1() const { return ___r_1; } inline uint8_t* get_address_of_r_1() { return &___r_1; } inline void set_r_1(uint8_t value) { ___r_1 = value; } inline static int32_t get_offset_of_g_2() { return static_cast<int32_t>(offsetof(Color32_tDB54A78627878A7D2DE42BB028D64306A18E858D, ___g_2)); } inline uint8_t get_g_2() const { return ___g_2; } inline uint8_t* get_address_of_g_2() { return &___g_2; } inline void set_g_2(uint8_t value) { ___g_2 = value; } inline static int32_t get_offset_of_b_3() { return static_cast<int32_t>(offsetof(Color32_tDB54A78627878A7D2DE42BB028D64306A18E858D, ___b_3)); } inline uint8_t get_b_3() const { return ___b_3; } inline uint8_t* get_address_of_b_3() { return &___b_3; } inline void set_b_3(uint8_t value) { ___b_3 = value; } inline static int32_t get_offset_of_a_4() { return static_cast<int32_t>(offsetof(Color32_tDB54A78627878A7D2DE42BB028D64306A18E858D, ___a_4)); } inline uint8_t get_a_4() const { return ___a_4; } inline uint8_t* get_address_of_a_4() { return &___a_4; } inline void set_a_4(uint8_t value) { ___a_4 = value; } }; // System.Reflection.CustomAttributeTypedArgument struct CustomAttributeTypedArgument_tE7152E8FACDD29A8E0040E151C86F436FA8E6910 { public: // System.Type System.Reflection.CustomAttributeTypedArgument::argumentType Type_t * ___argumentType_0; // System.Object System.Reflection.CustomAttributeTypedArgument::value RuntimeObject * ___value_1; public: inline static int32_t get_offset_of_argumentType_0() { return static_cast<int32_t>(offsetof(CustomAttributeTypedArgument_tE7152E8FACDD29A8E0040E151C86F436FA8E6910, ___argumentType_0)); } inline Type_t * get_argumentType_0() const { return ___argumentType_0; } inline Type_t ** get_address_of_argumentType_0() { return &___argumentType_0; } inline void set_argumentType_0(Type_t * value) { ___argumentType_0 = value; Il2CppCodeGenWriteBarrier((void**)(&___argumentType_0), (void*)value); } inline static int32_t get_offset_of_value_1() { return static_cast<int32_t>(offsetof(CustomAttributeTypedArgument_tE7152E8FACDD29A8E0040E151C86F436FA8E6910, ___value_1)); } inline RuntimeObject * get_value_1() const { return ___value_1; } inline RuntimeObject ** get_address_of_value_1() { return &___value_1; } inline void set_value_1(RuntimeObject * value) { ___value_1 = value; Il2CppCodeGenWriteBarrier((void**)(&___value_1), (void*)value); } }; // Native definition for P/Invoke marshalling of System.Reflection.CustomAttributeTypedArgument struct CustomAttributeTypedArgument_tE7152E8FACDD29A8E0040E151C86F436FA8E6910_marshaled_pinvoke { Type_t * ___argumentType_0; Il2CppIUnknown* ___value_1; }; // Native definition for COM marshalling of System.Reflection.CustomAttributeTypedArgument struct CustomAttributeTypedArgument_tE7152E8FACDD29A8E0040E151C86F436FA8E6910_marshaled_com { Type_t * ___argumentType_0; Il2CppIUnknown* ___value_1; }; // System.DateTime struct DateTime_tEAF2CD16E071DF5441F40822E4CFE880E5245405 { public: // System.UInt64 System.DateTime::dateData uint64_t ___dateData_44; public: inline static int32_t get_offset_of_dateData_44() { return static_cast<int32_t>(offsetof(DateTime_tEAF2CD16E071DF5441F40822E4CFE880E5245405, ___dateData_44)); } inline uint64_t get_dateData_44() const { return ___dateData_44; } inline uint64_t* get_address_of_dateData_44() { return &___dateData_44; } inline void set_dateData_44(uint64_t value) { ___dateData_44 = value; } }; struct DateTime_tEAF2CD16E071DF5441F40822E4CFE880E5245405_StaticFields { public: // System.Int32[] System.DateTime::DaysToMonth365 Int32U5BU5D_t70F1BDC14B1786481B176D6139A5E3B87DC54C32* ___DaysToMonth365_29; // System.Int32[] System.DateTime::DaysToMonth366 Int32U5BU5D_t70F1BDC14B1786481B176D6139A5E3B87DC54C32* ___DaysToMonth366_30; // System.DateTime System.DateTime::MinValue DateTime_tEAF2CD16E071DF5441F40822E4CFE880E5245405 ___MinValue_31; // System.DateTime System.DateTime::MaxValue DateTime_tEAF2CD16E071DF5441F40822E4CFE880E5245405 ___MaxValue_32; public: inline static int32_t get_offset_of_DaysToMonth365_29() { return static_cast<int32_t>(offsetof(DateTime_tEAF2CD16E071DF5441F40822E4CFE880E5245405_StaticFields, ___DaysToMonth365_29)); } inline Int32U5BU5D_t70F1BDC14B1786481B176D6139A5E3B87DC54C32* get_DaysToMonth365_29() const { return ___DaysToMonth365_29; } inline Int32U5BU5D_t70F1BDC14B1786481B176D6139A5E3B87DC54C32** get_address_of_DaysToMonth365_29() { return &___DaysToMonth365_29; } inline void set_DaysToMonth365_29(Int32U5BU5D_t70F1BDC14B1786481B176D6139A5E3B87DC54C32* value) { ___DaysToMonth365_29 = value; Il2CppCodeGenWriteBarrier((void**)(&___DaysToMonth365_29), (void*)value); } inline static int32_t get_offset_of_DaysToMonth366_30() { return static_cast<int32_t>(offsetof(DateTime_tEAF2CD16E071DF5441F40822E4CFE880E5245405_StaticFields, ___DaysToMonth366_30)); } inline Int32U5BU5D_t70F1BDC14B1786481B176D6139A5E3B87DC54C32* get_DaysToMonth366_30() const { return ___DaysToMonth366_30; } inline Int32U5BU5D_t70F1BDC14B1786481B176D6139A5E3B87DC54C32** get_address_of_DaysToMonth366_30() { return &___DaysToMonth366_30; } inline void set_DaysToMonth366_30(Int32U5BU5D_t70F1BDC14B1786481B176D6139A5E3B87DC54C32* value) { ___DaysToMonth366_30 = value; Il2CppCodeGenWriteBarrier((void**)(&___DaysToMonth366_30), (void*)value); } inline static int32_t get_offset_of_MinValue_31() { return static_cast<int32_t>(offsetof(DateTime_tEAF2CD16E071DF5441F40822E4CFE880E5245405_StaticFields, ___MinValue_31)); } inline DateTime_tEAF2CD16E071DF5441F40822E4CFE880E5245405 get_MinValue_31() const { return ___MinValue_31; } inline DateTime_tEAF2CD16E071DF5441F40822E4CFE880E5245405 * get_address_of_MinValue_31() { return &___MinValue_31; } inline void set_MinValue_31(DateTime_tEAF2CD16E071DF5441F40822E4CFE880E5245405 value) { ___MinValue_31 = value; } inline static int32_t get_offset_of_MaxValue_32() { return static_cast<int32_t>(offsetof(DateTime_tEAF2CD16E071DF5441F40822E4CFE880E5245405_StaticFields, ___MaxValue_32)); } inline DateTime_tEAF2CD16E071DF5441F40822E4CFE880E5245405 get_MaxValue_32() const { return ___MaxValue_32; } inline DateTime_tEAF2CD16E071DF5441F40822E4CFE880E5245405 * get_address_of_MaxValue_32() { return &___MaxValue_32; } inline void set_MaxValue_32(DateTime_tEAF2CD16E071DF5441F40822E4CFE880E5245405 value) { ___MaxValue_32 = value; } }; // System.Decimal struct Decimal_t2978B229CA86D3B7BA66A0AEEE014E0DE4F940D7 { public: // System.Int32 System.Decimal::flags int32_t ___flags_14; // System.Int32 System.Decimal::hi int32_t ___hi_15; // System.Int32 System.Decimal::lo int32_t ___lo_16; // System.Int32 System.Decimal::mid int32_t ___mid_17; public: inline static int32_t get_offset_of_flags_14() { return static_cast<int32_t>(offsetof(Decimal_t2978B229CA86D3B7BA66A0AEEE014E0DE4F940D7, ___flags_14)); } inline int32_t get_flags_14() const { return ___flags_14; } inline int32_t* get_address_of_flags_14() { return &___flags_14; } inline void set_flags_14(int32_t value) { ___flags_14 = value; } inline static int32_t get_offset_of_hi_15() { return static_cast<int32_t>(offsetof(Decimal_t2978B229CA86D3B7BA66A0AEEE014E0DE4F940D7, ___hi_15)); } inline int32_t get_hi_15() const { return ___hi_15; } inline int32_t* get_address_of_hi_15() { return &___hi_15; } inline void set_hi_15(int32_t value) { ___hi_15 = value; } inline static int32_t get_offset_of_lo_16() { return static_cast<int32_t>(offsetof(Decimal_t2978B229CA86D3B7BA66A0AEEE014E0DE4F940D7, ___lo_16)); } inline int32_t get_lo_16() const { return ___lo_16; } inline int32_t* get_address_of_lo_16() { return &___lo_16; } inline void set_lo_16(int32_t value) { ___lo_16 = value; } inline static int32_t get_offset_of_mid_17() { return static_cast<int32_t>(offsetof(Decimal_t2978B229CA86D3B7BA66A0AEEE014E0DE4F940D7, ___mid_17)); } inline int32_t get_mid_17() const { return ___mid_17; } inline int32_t* get_address_of_mid_17() { return &___mid_17; } inline void set_mid_17(int32_t value) { ___mid_17 = value; } }; struct Decimal_t2978B229CA86D3B7BA66A0AEEE014E0DE4F940D7_StaticFields { public: // System.UInt32[] System.Decimal::Powers10 UInt32U5BU5D_tCF06F1E9E72E0302C762578FF5358CC523F2A2CF* ___Powers10_6; // System.Decimal System.Decimal::Zero Decimal_t2978B229CA86D3B7BA66A0AEEE014E0DE4F940D7 ___Zero_7; // System.Decimal System.Decimal::One Decimal_t2978B229CA86D3B7BA66A0AEEE014E0DE4F940D7 ___One_8; // System.Decimal System.Decimal::MinusOne Decimal_t2978B229CA86D3B7BA66A0AEEE014E0DE4F940D7 ___MinusOne_9; // System.Decimal System.Decimal::MaxValue Decimal_t2978B229CA86D3B7BA66A0AEEE014E0DE4F940D7 ___MaxValue_10; // System.Decimal System.Decimal::MinValue Decimal_t2978B229CA86D3B7BA66A0AEEE014E0DE4F940D7 ___MinValue_11; // System.Decimal System.Decimal::NearNegativeZero Decimal_t2978B229CA86D3B7BA66A0AEEE014E0DE4F940D7 ___NearNegativeZero_12; // System.Decimal System.Decimal::NearPositiveZero Decimal_t2978B229CA86D3B7BA66A0AEEE014E0DE4F940D7 ___NearPositiveZero_13; public: inline static int32_t get_offset_of_Powers10_6() { return static_cast<int32_t>(offsetof(Decimal_t2978B229CA86D3B7BA66A0AEEE014E0DE4F940D7_StaticFields, ___Powers10_6)); } inline UInt32U5BU5D_tCF06F1E9E72E0302C762578FF5358CC523F2A2CF* get_Powers10_6() const { return ___Powers10_6; } inline UInt32U5BU5D_tCF06F1E9E72E0302C762578FF5358CC523F2A2CF** get_address_of_Powers10_6() { return &___Powers10_6; } inline void set_Powers10_6(UInt32U5BU5D_tCF06F1E9E72E0302C762578FF5358CC523F2A2CF* value) { ___Powers10_6 = value; Il2CppCodeGenWriteBarrier((void**)(&___Powers10_6), (void*)value); } inline static int32_t get_offset_of_Zero_7() { return static_cast<int32_t>(offsetof(Decimal_t2978B229CA86D3B7BA66A0AEEE014E0DE4F940D7_StaticFields, ___Zero_7)); } inline Decimal_t2978B229CA86D3B7BA66A0AEEE014E0DE4F940D7 get_Zero_7() const { return ___Zero_7; } inline Decimal_t2978B229CA86D3B7BA66A0AEEE014E0DE4F940D7 * get_address_of_Zero_7() { return &___Zero_7; } inline void set_Zero_7(Decimal_t2978B229CA86D3B7BA66A0AEEE014E0DE4F940D7 value) { ___Zero_7 = value; } inline static int32_t get_offset_of_One_8() { return static_cast<int32_t>(offsetof(Decimal_t2978B229CA86D3B7BA66A0AEEE014E0DE4F940D7_StaticFields, ___One_8)); } inline Decimal_t2978B229CA86D3B7BA66A0AEEE014E0DE4F940D7 get_One_8() const { return ___One_8; } inline Decimal_t2978B229CA86D3B7BA66A0AEEE014E0DE4F940D7 * get_address_of_One_8() { return &___One_8; } inline void set_One_8(Decimal_t2978B229CA86D3B7BA66A0AEEE014E0DE4F940D7 value) { ___One_8 = value; } inline static int32_t get_offset_of_MinusOne_9() { return static_cast<int32_t>(offsetof(Decimal_t2978B229CA86D3B7BA66A0AEEE014E0DE4F940D7_StaticFields, ___MinusOne_9)); } inline Decimal_t2978B229CA86D3B7BA66A0AEEE014E0DE4F940D7 get_MinusOne_9() const { return ___MinusOne_9; } inline Decimal_t2978B229CA86D3B7BA66A0AEEE014E0DE4F940D7 * get_address_of_MinusOne_9() { return &___MinusOne_9; } inline void set_MinusOne_9(Decimal_t2978B229CA86D3B7BA66A0AEEE014E0DE4F940D7 value) { ___MinusOne_9 = value; } inline static int32_t get_offset_of_MaxValue_10() { return static_cast<int32_t>(offsetof(Decimal_t2978B229CA86D3B7BA66A0AEEE014E0DE4F940D7_StaticFields, ___MaxValue_10)); } inline Decimal_t2978B229CA86D3B7BA66A0AEEE014E0DE4F940D7 get_MaxValue_10() const { return ___MaxValue_10; } inline Decimal_t2978B229CA86D3B7BA66A0AEEE014E0DE4F940D7 * get_address_of_MaxValue_10() { return &___MaxValue_10; } inline void set_MaxValue_10(Decimal_t2978B229CA86D3B7BA66A0AEEE014E0DE4F940D7 value) { ___MaxValue_10 = value; } inline static int32_t get_offset_of_MinValue_11() { return static_cast<int32_t>(offsetof(Decimal_t2978B229CA86D3B7BA66A0AEEE014E0DE4F940D7_StaticFields, ___MinValue_11)); } inline Decimal_t2978B229CA86D3B7BA66A0AEEE014E0DE4F940D7 get_MinValue_11() const { return ___MinValue_11; } inline Decimal_t2978B229CA86D3B7BA66A0AEEE014E0DE4F940D7 * get_address_of_MinValue_11() { return &___MinValue_11; } inline void set_MinValue_11(Decimal_t2978B229CA86D3B7BA66A0AEEE014E0DE4F940D7 value) { ___MinValue_11 = value; } inline static int32_t get_offset_of_NearNegativeZero_12() { return static_cast<int32_t>(offsetof(Decimal_t2978B229CA86D3B7BA66A0AEEE014E0DE4F940D7_StaticFields, ___NearNegativeZero_12)); } inline Decimal_t2978B229CA86D3B7BA66A0AEEE014E0DE4F940D7 get_NearNegativeZero_12() const { return ___NearNegativeZero_12; } inline Decimal_t2978B229CA86D3B7BA66A0AEEE014E0DE4F940D7 * get_address_of_NearNegativeZero_12() { return &___NearNegativeZero_12; } inline void set_NearNegativeZero_12(Decimal_t2978B229CA86D3B7BA66A0AEEE014E0DE4F940D7 value) { ___NearNegativeZero_12 = value; } inline static int32_t get_offset_of_NearPositiveZero_13() { return static_cast<int32_t>(offsetof(Decimal_t2978B229CA86D3B7BA66A0AEEE014E0DE4F940D7_StaticFields, ___NearPositiveZero_13)); } inline Decimal_t2978B229CA86D3B7BA66A0AEEE014E0DE4F940D7 get_NearPositiveZero_13() const { return ___NearPositiveZero_13; } inline Decimal_t2978B229CA86D3B7BA66A0AEEE014E0DE4F940D7 * get_address_of_NearPositiveZero_13() { return &___NearPositiveZero_13; } inline void set_NearPositiveZero_13(Decimal_t2978B229CA86D3B7BA66A0AEEE014E0DE4F940D7 value) { ___NearPositiveZero_13 = value; } }; // System.Collections.DictionaryEntry struct DictionaryEntry_tF60471FAB430320A9C7D4382BF966EAAC06D7A90 { public: // System.Object System.Collections.DictionaryEntry::_key RuntimeObject * ____key_0; // System.Object System.Collections.DictionaryEntry::_value RuntimeObject * ____value_1; public: inline static int32_t get_offset_of__key_0() { return static_cast<int32_t>(offsetof(DictionaryEntry_tF60471FAB430320A9C7D4382BF966EAAC06D7A90, ____key_0)); } inline RuntimeObject * get__key_0() const { return ____key_0; } inline RuntimeObject ** get_address_of__key_0() { return &____key_0; } inline void set__key_0(RuntimeObject * value) { ____key_0 = value; Il2CppCodeGenWriteBarrier((void**)(&____key_0), (void*)value); } inline static int32_t get_offset_of__value_1() { return static_cast<int32_t>(offsetof(DictionaryEntry_tF60471FAB430320A9C7D4382BF966EAAC06D7A90, ____value_1)); } inline RuntimeObject * get__value_1() const { return ____value_1; } inline RuntimeObject ** get_address_of__value_1() { return &____value_1; } inline void set__value_1(RuntimeObject * value) { ____value_1 = value; Il2CppCodeGenWriteBarrier((void**)(&____value_1), (void*)value); } }; // Native definition for P/Invoke marshalling of System.Collections.DictionaryEntry struct DictionaryEntry_tF60471FAB430320A9C7D4382BF966EAAC06D7A90_marshaled_pinvoke { Il2CppIUnknown* ____key_0; Il2CppIUnknown* ____value_1; }; // Native definition for COM marshalling of System.Collections.DictionaryEntry struct DictionaryEntry_tF60471FAB430320A9C7D4382BF966EAAC06D7A90_marshaled_com { Il2CppIUnknown* ____key_0; Il2CppIUnknown* ____value_1; }; // 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 { }; // UnityEngine.EventInterests struct EventInterests_t4DC3B6F7CFFDBF0AC4DE302F9102C769B87B9D79 { public: // System.Boolean UnityEngine.EventInterests::<wantsMouseMove>k__BackingField bool ___U3CwantsMouseMoveU3Ek__BackingField_0; // System.Boolean UnityEngine.EventInterests::<wantsMouseEnterLeaveWindow>k__BackingField bool ___U3CwantsMouseEnterLeaveWindowU3Ek__BackingField_1; // System.Boolean UnityEngine.EventInterests::<wantsLessLayoutEvents>k__BackingField bool ___U3CwantsLessLayoutEventsU3Ek__BackingField_2; public: inline static int32_t get_offset_of_U3CwantsMouseMoveU3Ek__BackingField_0() { return static_cast<int32_t>(offsetof(EventInterests_t4DC3B6F7CFFDBF0AC4DE302F9102C769B87B9D79, ___U3CwantsMouseMoveU3Ek__BackingField_0)); } inline bool get_U3CwantsMouseMoveU3Ek__BackingField_0() const { return ___U3CwantsMouseMoveU3Ek__BackingField_0; } inline bool* get_address_of_U3CwantsMouseMoveU3Ek__BackingField_0() { return &___U3CwantsMouseMoveU3Ek__BackingField_0; } inline void set_U3CwantsMouseMoveU3Ek__BackingField_0(bool value) { ___U3CwantsMouseMoveU3Ek__BackingField_0 = value; } inline static int32_t get_offset_of_U3CwantsMouseEnterLeaveWindowU3Ek__BackingField_1() { return static_cast<int32_t>(offsetof(EventInterests_t4DC3B6F7CFFDBF0AC4DE302F9102C769B87B9D79, ___U3CwantsMouseEnterLeaveWindowU3Ek__BackingField_1)); } inline bool get_U3CwantsMouseEnterLeaveWindowU3Ek__BackingField_1() const { return ___U3CwantsMouseEnterLeaveWindowU3Ek__BackingField_1; } inline bool* get_address_of_U3CwantsMouseEnterLeaveWindowU3Ek__BackingField_1() { return &___U3CwantsMouseEnterLeaveWindowU3Ek__BackingField_1; } inline void set_U3CwantsMouseEnterLeaveWindowU3Ek__BackingField_1(bool value) { ___U3CwantsMouseEnterLeaveWindowU3Ek__BackingField_1 = value; } inline static int32_t get_offset_of_U3CwantsLessLayoutEventsU3Ek__BackingField_2() { return static_cast<int32_t>(offsetof(EventInterests_t4DC3B6F7CFFDBF0AC4DE302F9102C769B87B9D79, ___U3CwantsLessLayoutEventsU3Ek__BackingField_2)); } inline bool get_U3CwantsLessLayoutEventsU3Ek__BackingField_2() const { return ___U3CwantsLessLayoutEventsU3Ek__BackingField_2; } inline bool* get_address_of_U3CwantsLessLayoutEventsU3Ek__BackingField_2() { return &___U3CwantsLessLayoutEventsU3Ek__BackingField_2; } inline void set_U3CwantsLessLayoutEventsU3Ek__BackingField_2(bool value) { ___U3CwantsLessLayoutEventsU3Ek__BackingField_2 = value; } }; // Native definition for P/Invoke marshalling of UnityEngine.EventInterests struct EventInterests_t4DC3B6F7CFFDBF0AC4DE302F9102C769B87B9D79_marshaled_pinvoke { int32_t ___U3CwantsMouseMoveU3Ek__BackingField_0; int32_t ___U3CwantsMouseEnterLeaveWindowU3Ek__BackingField_1; int32_t ___U3CwantsLessLayoutEventsU3Ek__BackingField_2; }; // Native definition for COM marshalling of UnityEngine.EventInterests struct EventInterests_t4DC3B6F7CFFDBF0AC4DE302F9102C769B87B9D79_marshaled_com { int32_t ___U3CwantsMouseMoveU3Ek__BackingField_0; int32_t ___U3CwantsMouseEnterLeaveWindowU3Ek__BackingField_1; int32_t ___U3CwantsLessLayoutEventsU3Ek__BackingField_2; }; // System.Runtime.InteropServices.GCHandle struct GCHandle_t757890BC4BBBEDE5A623A3C110013EDD24613603 { public: // System.Int32 System.Runtime.InteropServices.GCHandle::handle int32_t ___handle_0; public: inline static int32_t get_offset_of_handle_0() { return static_cast<int32_t>(offsetof(GCHandle_t757890BC4BBBEDE5A623A3C110013EDD24613603, ___handle_0)); } inline int32_t get_handle_0() const { return ___handle_0; } inline int32_t* get_address_of_handle_0() { return &___handle_0; } inline void set_handle_0(int32_t value) { ___handle_0 = value; } }; // System.Guid struct Guid_t { public: // System.Int32 System.Guid::_a int32_t ____a_1; // System.Int16 System.Guid::_b int16_t ____b_2; // System.Int16 System.Guid::_c int16_t ____c_3; // System.Byte System.Guid::_d uint8_t ____d_4; // System.Byte System.Guid::_e uint8_t ____e_5; // System.Byte System.Guid::_f uint8_t ____f_6; // System.Byte System.Guid::_g uint8_t ____g_7; // System.Byte System.Guid::_h uint8_t ____h_8; // System.Byte System.Guid::_i uint8_t ____i_9; // System.Byte System.Guid::_j uint8_t ____j_10; // System.Byte System.Guid::_k uint8_t ____k_11; public: inline static int32_t get_offset_of__a_1() { return static_cast<int32_t>(offsetof(Guid_t, ____a_1)); } inline int32_t get__a_1() const { return ____a_1; } inline int32_t* get_address_of__a_1() { return &____a_1; } inline void set__a_1(int32_t value) { ____a_1 = value; } inline static int32_t get_offset_of__b_2() { return static_cast<int32_t>(offsetof(Guid_t, ____b_2)); } inline int16_t get__b_2() const { return ____b_2; } inline int16_t* get_address_of__b_2() { return &____b_2; } inline void set__b_2(int16_t value) { ____b_2 = value; } inline static int32_t get_offset_of__c_3() { return static_cast<int32_t>(offsetof(Guid_t, ____c_3)); } inline int16_t get__c_3() const { return ____c_3; } inline int16_t* get_address_of__c_3() { return &____c_3; } inline void set__c_3(int16_t value) { ____c_3 = value; } inline static int32_t get_offset_of__d_4() { return static_cast<int32_t>(offsetof(Guid_t, ____d_4)); } inline uint8_t get__d_4() const { return ____d_4; } inline uint8_t* get_address_of__d_4() { return &____d_4; } inline void set__d_4(uint8_t value) { ____d_4 = value; } inline static int32_t get_offset_of__e_5() { return static_cast<int32_t>(offsetof(Guid_t, ____e_5)); } inline uint8_t get__e_5() const { return ____e_5; } inline uint8_t* get_address_of__e_5() { return &____e_5; } inline void set__e_5(uint8_t value) { ____e_5 = value; } inline static int32_t get_offset_of__f_6() { return static_cast<int32_t>(offsetof(Guid_t, ____f_6)); } inline uint8_t get__f_6() const { return ____f_6; } inline uint8_t* get_address_of__f_6() { return &____f_6; } inline void set__f_6(uint8_t value) { ____f_6 = value; } inline static int32_t get_offset_of__g_7() { return static_cast<int32_t>(offsetof(Guid_t, ____g_7)); } inline uint8_t get__g_7() const { return ____g_7; } inline uint8_t* get_address_of__g_7() { return &____g_7; } inline void set__g_7(uint8_t value) { ____g_7 = value; } inline static int32_t get_offset_of__h_8() { return static_cast<int32_t>(offsetof(Guid_t, ____h_8)); } inline uint8_t get__h_8() const { return ____h_8; } inline uint8_t* get_address_of__h_8() { return &____h_8; } inline void set__h_8(uint8_t value) { ____h_8 = value; } inline static int32_t get_offset_of__i_9() { return static_cast<int32_t>(offsetof(Guid_t, ____i_9)); } inline uint8_t get__i_9() const { return ____i_9; } inline uint8_t* get_address_of__i_9() { return &____i_9; } inline void set__i_9(uint8_t value) { ____i_9 = value; } inline static int32_t get_offset_of__j_10() { return static_cast<int32_t>(offsetof(Guid_t, ____j_10)); } inline uint8_t get__j_10() const { return ____j_10; } inline uint8_t* get_address_of__j_10() { return &____j_10; } inline void set__j_10(uint8_t value) { ____j_10 = value; } inline static int32_t get_offset_of__k_11() { return static_cast<int32_t>(offsetof(Guid_t, ____k_11)); } inline uint8_t get__k_11() const { return ____k_11; } inline uint8_t* get_address_of__k_11() { return &____k_11; } inline void set__k_11(uint8_t value) { ____k_11 = value; } }; struct Guid_t_StaticFields { public: // System.Guid System.Guid::Empty Guid_t ___Empty_0; // System.Object System.Guid::_rngAccess RuntimeObject * ____rngAccess_12; // System.Security.Cryptography.RandomNumberGenerator System.Guid::_rng RandomNumberGenerator_t2CB5440F189986116A2FA9F907AE52644047AC50 * ____rng_13; // System.Security.Cryptography.RandomNumberGenerator System.Guid::_fastRng RandomNumberGenerator_t2CB5440F189986116A2FA9F907AE52644047AC50 * ____fastRng_14; public: inline static int32_t get_offset_of_Empty_0() { return static_cast<int32_t>(offsetof(Guid_t_StaticFields, ___Empty_0)); } inline Guid_t get_Empty_0() const { return ___Empty_0; } inline Guid_t * get_address_of_Empty_0() { return &___Empty_0; } inline void set_Empty_0(Guid_t value) { ___Empty_0 = value; } inline static int32_t get_offset_of__rngAccess_12() { return static_cast<int32_t>(offsetof(Guid_t_StaticFields, ____rngAccess_12)); } inline RuntimeObject * get__rngAccess_12() const { return ____rngAccess_12; } inline RuntimeObject ** get_address_of__rngAccess_12() { return &____rngAccess_12; } inline void set__rngAccess_12(RuntimeObject * value) { ____rngAccess_12 = value; Il2CppCodeGenWriteBarrier((void**)(&____rngAccess_12), (void*)value); } inline static int32_t get_offset_of__rng_13() { return static_cast<int32_t>(offsetof(Guid_t_StaticFields, ____rng_13)); } inline RandomNumberGenerator_t2CB5440F189986116A2FA9F907AE52644047AC50 * get__rng_13() const { return ____rng_13; } inline RandomNumberGenerator_t2CB5440F189986116A2FA9F907AE52644047AC50 ** get_address_of__rng_13() { return &____rng_13; } inline void set__rng_13(RandomNumberGenerator_t2CB5440F189986116A2FA9F907AE52644047AC50 * value) { ____rng_13 = value; Il2CppCodeGenWriteBarrier((void**)(&____rng_13), (void*)value); } inline static int32_t get_offset_of__fastRng_14() { return static_cast<int32_t>(offsetof(Guid_t_StaticFields, ____fastRng_14)); } inline RandomNumberGenerator_t2CB5440F189986116A2FA9F907AE52644047AC50 * get__fastRng_14() const { return ____fastRng_14; } inline RandomNumberGenerator_t2CB5440F189986116A2FA9F907AE52644047AC50 ** get_address_of__fastRng_14() { return &____fastRng_14; } inline void set__fastRng_14(RandomNumberGenerator_t2CB5440F189986116A2FA9F907AE52644047AC50 * value) { ____fastRng_14 = value; Il2CppCodeGenWriteBarrier((void**)(&____fastRng_14), (void*)value); } }; // System.IntPtr struct IntPtr_t { public: // System.Void* System.IntPtr::m_value void* ___m_value_0; public: inline static int32_t get_offset_of_m_value_0() { return static_cast<int32_t>(offsetof(IntPtr_t, ___m_value_0)); } inline void* get_m_value_0() const { return ___m_value_0; } inline void** get_address_of_m_value_0() { return &___m_value_0; } inline void set_m_value_0(void* value) { ___m_value_0 = value; } }; struct IntPtr_t_StaticFields { public: // System.IntPtr System.IntPtr::Zero intptr_t ___Zero_1; public: inline static int32_t get_offset_of_Zero_1() { return static_cast<int32_t>(offsetof(IntPtr_t_StaticFields, ___Zero_1)); } inline intptr_t get_Zero_1() const { return ___Zero_1; } inline intptr_t* get_address_of_Zero_1() { return &___Zero_1; } inline void set_Zero_1(intptr_t value) { ___Zero_1 = value; } }; // UnityEngine.Matrix4x4 struct Matrix4x4_tDE7FF4F2E2EA284F6EFE00D627789D0E5B8B4461 { public: // System.Single UnityEngine.Matrix4x4::m00 float ___m00_0; // System.Single UnityEngine.Matrix4x4::m10 float ___m10_1; // System.Single UnityEngine.Matrix4x4::m20 float ___m20_2; // System.Single UnityEngine.Matrix4x4::m30 float ___m30_3; // System.Single UnityEngine.Matrix4x4::m01 float ___m01_4; // System.Single UnityEngine.Matrix4x4::m11 float ___m11_5; // System.Single UnityEngine.Matrix4x4::m21 float ___m21_6; // System.Single UnityEngine.Matrix4x4::m31 float ___m31_7; // System.Single UnityEngine.Matrix4x4::m02 float ___m02_8; // System.Single UnityEngine.Matrix4x4::m12 float ___m12_9; // System.Single UnityEngine.Matrix4x4::m22 float ___m22_10; // System.Single UnityEngine.Matrix4x4::m32 float ___m32_11; // System.Single UnityEngine.Matrix4x4::m03 float ___m03_12; // System.Single UnityEngine.Matrix4x4::m13 float ___m13_13; // System.Single UnityEngine.Matrix4x4::m23 float ___m23_14; // System.Single UnityEngine.Matrix4x4::m33 float ___m33_15; public: inline static int32_t get_offset_of_m00_0() { return static_cast<int32_t>(offsetof(Matrix4x4_tDE7FF4F2E2EA284F6EFE00D627789D0E5B8B4461, ___m00_0)); } inline float get_m00_0() const { return ___m00_0; } inline float* get_address_of_m00_0() { return &___m00_0; } inline void set_m00_0(float value) { ___m00_0 = value; } inline static int32_t get_offset_of_m10_1() { return static_cast<int32_t>(offsetof(Matrix4x4_tDE7FF4F2E2EA284F6EFE00D627789D0E5B8B4461, ___m10_1)); } inline float get_m10_1() const { return ___m10_1; } inline float* get_address_of_m10_1() { return &___m10_1; } inline void set_m10_1(float value) { ___m10_1 = value; } inline static int32_t get_offset_of_m20_2() { return static_cast<int32_t>(offsetof(Matrix4x4_tDE7FF4F2E2EA284F6EFE00D627789D0E5B8B4461, ___m20_2)); } inline float get_m20_2() const { return ___m20_2; } inline float* get_address_of_m20_2() { return &___m20_2; } inline void set_m20_2(float value) { ___m20_2 = value; } inline static int32_t get_offset_of_m30_3() { return static_cast<int32_t>(offsetof(Matrix4x4_tDE7FF4F2E2EA284F6EFE00D627789D0E5B8B4461, ___m30_3)); } inline float get_m30_3() const { return ___m30_3; } inline float* get_address_of_m30_3() { return &___m30_3; } inline void set_m30_3(float value) { ___m30_3 = value; } inline static int32_t get_offset_of_m01_4() { return static_cast<int32_t>(offsetof(Matrix4x4_tDE7FF4F2E2EA284F6EFE00D627789D0E5B8B4461, ___m01_4)); } inline float get_m01_4() const { return ___m01_4; } inline float* get_address_of_m01_4() { return &___m01_4; } inline void set_m01_4(float value) { ___m01_4 = value; } inline static int32_t get_offset_of_m11_5() { return static_cast<int32_t>(offsetof(Matrix4x4_tDE7FF4F2E2EA284F6EFE00D627789D0E5B8B4461, ___m11_5)); } inline float get_m11_5() const { return ___m11_5; } inline float* get_address_of_m11_5() { return &___m11_5; } inline void set_m11_5(float value) { ___m11_5 = value; } inline static int32_t get_offset_of_m21_6() { return static_cast<int32_t>(offsetof(Matrix4x4_tDE7FF4F2E2EA284F6EFE00D627789D0E5B8B4461, ___m21_6)); } inline float get_m21_6() const { return ___m21_6; } inline float* get_address_of_m21_6() { return &___m21_6; } inline void set_m21_6(float value) { ___m21_6 = value; } inline static int32_t get_offset_of_m31_7() { return static_cast<int32_t>(offsetof(Matrix4x4_tDE7FF4F2E2EA284F6EFE00D627789D0E5B8B4461, ___m31_7)); } inline float get_m31_7() const { return ___m31_7; } inline float* get_address_of_m31_7() { return &___m31_7; } inline void set_m31_7(float value) { ___m31_7 = value; } inline static int32_t get_offset_of_m02_8() { return static_cast<int32_t>(offsetof(Matrix4x4_tDE7FF4F2E2EA284F6EFE00D627789D0E5B8B4461, ___m02_8)); } inline float get_m02_8() const { return ___m02_8; } inline float* get_address_of_m02_8() { return &___m02_8; } inline void set_m02_8(float value) { ___m02_8 = value; } inline static int32_t get_offset_of_m12_9() { return static_cast<int32_t>(offsetof(Matrix4x4_tDE7FF4F2E2EA284F6EFE00D627789D0E5B8B4461, ___m12_9)); } inline float get_m12_9() const { return ___m12_9; } inline float* get_address_of_m12_9() { return &___m12_9; } inline void set_m12_9(float value) { ___m12_9 = value; } inline static int32_t get_offset_of_m22_10() { return static_cast<int32_t>(offsetof(Matrix4x4_tDE7FF4F2E2EA284F6EFE00D627789D0E5B8B4461, ___m22_10)); } inline float get_m22_10() const { return ___m22_10; } inline float* get_address_of_m22_10() { return &___m22_10; } inline void set_m22_10(float value) { ___m22_10 = value; } inline static int32_t get_offset_of_m32_11() { return static_cast<int32_t>(offsetof(Matrix4x4_tDE7FF4F2E2EA284F6EFE00D627789D0E5B8B4461, ___m32_11)); } inline float get_m32_11() const { return ___m32_11; } inline float* get_address_of_m32_11() { return &___m32_11; } inline void set_m32_11(float value) { ___m32_11 = value; } inline static int32_t get_offset_of_m03_12() { return static_cast<int32_t>(offsetof(Matrix4x4_tDE7FF4F2E2EA284F6EFE00D627789D0E5B8B4461, ___m03_12)); } inline float get_m03_12() const { return ___m03_12; } inline float* get_address_of_m03_12() { return &___m03_12; } inline void set_m03_12(float value) { ___m03_12 = value; } inline static int32_t get_offset_of_m13_13() { return static_cast<int32_t>(offsetof(Matrix4x4_tDE7FF4F2E2EA284F6EFE00D627789D0E5B8B4461, ___m13_13)); } inline float get_m13_13() const { return ___m13_13; } inline float* get_address_of_m13_13() { return &___m13_13; } inline void set_m13_13(float value) { ___m13_13 = value; } inline static int32_t get_offset_of_m23_14() { return static_cast<int32_t>(offsetof(Matrix4x4_tDE7FF4F2E2EA284F6EFE00D627789D0E5B8B4461, ___m23_14)); } inline float get_m23_14() const { return ___m23_14; } inline float* get_address_of_m23_14() { return &___m23_14; } inline void set_m23_14(float value) { ___m23_14 = value; } inline static int32_t get_offset_of_m33_15() { return static_cast<int32_t>(offsetof(Matrix4x4_tDE7FF4F2E2EA284F6EFE00D627789D0E5B8B4461, ___m33_15)); } inline float get_m33_15() const { return ___m33_15; } inline float* get_address_of_m33_15() { return &___m33_15; } inline void set_m33_15(float value) { ___m33_15 = value; } }; struct Matrix4x4_tDE7FF4F2E2EA284F6EFE00D627789D0E5B8B4461_StaticFields { public: // UnityEngine.Matrix4x4 UnityEngine.Matrix4x4::zeroMatrix Matrix4x4_tDE7FF4F2E2EA284F6EFE00D627789D0E5B8B4461 ___zeroMatrix_16; // UnityEngine.Matrix4x4 UnityEngine.Matrix4x4::identityMatrix Matrix4x4_tDE7FF4F2E2EA284F6EFE00D627789D0E5B8B4461 ___identityMatrix_17; public: inline static int32_t get_offset_of_zeroMatrix_16() { return static_cast<int32_t>(offsetof(Matrix4x4_tDE7FF4F2E2EA284F6EFE00D627789D0E5B8B4461_StaticFields, ___zeroMatrix_16)); } inline Matrix4x4_tDE7FF4F2E2EA284F6EFE00D627789D0E5B8B4461 get_zeroMatrix_16() const { return ___zeroMatrix_16; } inline Matrix4x4_tDE7FF4F2E2EA284F6EFE00D627789D0E5B8B4461 * get_address_of_zeroMatrix_16() { return &___zeroMatrix_16; } inline void set_zeroMatrix_16(Matrix4x4_tDE7FF4F2E2EA284F6EFE00D627789D0E5B8B4461 value) { ___zeroMatrix_16 = value; } inline static int32_t get_offset_of_identityMatrix_17() { return static_cast<int32_t>(offsetof(Matrix4x4_tDE7FF4F2E2EA284F6EFE00D627789D0E5B8B4461_StaticFields, ___identityMatrix_17)); } inline Matrix4x4_tDE7FF4F2E2EA284F6EFE00D627789D0E5B8B4461 get_identityMatrix_17() const { return ___identityMatrix_17; } inline Matrix4x4_tDE7FF4F2E2EA284F6EFE00D627789D0E5B8B4461 * get_address_of_identityMatrix_17() { return &___identityMatrix_17; } inline void set_identityMatrix_17(Matrix4x4_tDE7FF4F2E2EA284F6EFE00D627789D0E5B8B4461 value) { ___identityMatrix_17 = value; } }; // UnityEngine.PropertyName struct PropertyName_t1B3B39F9873F8967D3557FE2CCF4E415F909FEC1 { public: // System.Int32 UnityEngine.PropertyName::id int32_t ___id_0; public: inline static int32_t get_offset_of_id_0() { return static_cast<int32_t>(offsetof(PropertyName_t1B3B39F9873F8967D3557FE2CCF4E415F909FEC1, ___id_0)); } inline int32_t get_id_0() const { return ___id_0; } inline int32_t* get_address_of_id_0() { return &___id_0; } inline void set_id_0(int32_t value) { ___id_0 = value; } }; // UnityEngine.SocialPlatforms.Range struct Range_t70C133E51417BC822E878050C90A577A69B671DC { public: // System.Int32 UnityEngine.SocialPlatforms.Range::from int32_t ___from_0; // System.Int32 UnityEngine.SocialPlatforms.Range::count int32_t ___count_1; public: inline static int32_t get_offset_of_from_0() { return static_cast<int32_t>(offsetof(Range_t70C133E51417BC822E878050C90A577A69B671DC, ___from_0)); } inline int32_t get_from_0() const { return ___from_0; } inline int32_t* get_address_of_from_0() { return &___from_0; } inline void set_from_0(int32_t value) { ___from_0 = value; } inline static int32_t get_offset_of_count_1() { return static_cast<int32_t>(offsetof(Range_t70C133E51417BC822E878050C90A577A69B671DC, ___count_1)); } inline int32_t get_count_1() const { return ___count_1; } inline int32_t* get_address_of_count_1() { return &___count_1; } inline void set_count_1(int32_t value) { ___count_1 = value; } }; // UnityEngine.Rect struct Rect_t7D9187DB6339DBA5741C09B6CCEF2F54F1966878 { public: // System.Single UnityEngine.Rect::m_XMin float ___m_XMin_0; // System.Single UnityEngine.Rect::m_YMin float ___m_YMin_1; // System.Single UnityEngine.Rect::m_Width float ___m_Width_2; // System.Single UnityEngine.Rect::m_Height float ___m_Height_3; public: inline static int32_t get_offset_of_m_XMin_0() { return static_cast<int32_t>(offsetof(Rect_t7D9187DB6339DBA5741C09B6CCEF2F54F1966878, ___m_XMin_0)); } inline float get_m_XMin_0() const { return ___m_XMin_0; } inline float* get_address_of_m_XMin_0() { return &___m_XMin_0; } inline void set_m_XMin_0(float value) { ___m_XMin_0 = value; } inline static int32_t get_offset_of_m_YMin_1() { return static_cast<int32_t>(offsetof(Rect_t7D9187DB6339DBA5741C09B6CCEF2F54F1966878, ___m_YMin_1)); } inline float get_m_YMin_1() const { return ___m_YMin_1; } inline float* get_address_of_m_YMin_1() { return &___m_YMin_1; } inline void set_m_YMin_1(float value) { ___m_YMin_1 = value; } inline static int32_t get_offset_of_m_Width_2() { return static_cast<int32_t>(offsetof(Rect_t7D9187DB6339DBA5741C09B6CCEF2F54F1966878, ___m_Width_2)); } inline float get_m_Width_2() const { return ___m_Width_2; } inline float* get_address_of_m_Width_2() { return &___m_Width_2; } inline void set_m_Width_2(float value) { ___m_Width_2 = value; } inline static int32_t get_offset_of_m_Height_3() { return static_cast<int32_t>(offsetof(Rect_t7D9187DB6339DBA5741C09B6CCEF2F54F1966878, ___m_Height_3)); } inline float get_m_Height_3() const { return ___m_Height_3; } inline float* get_address_of_m_Height_3() { return &___m_Height_3; } inline void set_m_Height_3(float value) { ___m_Height_3 = value; } }; // UnityEngine.UIElements.UIR.RenderChainTextEntry struct RenderChainTextEntry_t2B7733A1A5036FC66D89122F798A839F058AE7C7 { public: // UnityEngine.UIElements.UIR.RenderChainCommand UnityEngine.UIElements.UIR.RenderChainTextEntry::command RenderChainCommand_t687866AA005A30DF2AF3D60E22ADC708C90828F1 * ___command_0; // System.Int32 UnityEngine.UIElements.UIR.RenderChainTextEntry::firstVertex int32_t ___firstVertex_1; // System.Int32 UnityEngine.UIElements.UIR.RenderChainTextEntry::vertexCount int32_t ___vertexCount_2; public: inline static int32_t get_offset_of_command_0() { return static_cast<int32_t>(offsetof(RenderChainTextEntry_t2B7733A1A5036FC66D89122F798A839F058AE7C7, ___command_0)); } inline RenderChainCommand_t687866AA005A30DF2AF3D60E22ADC708C90828F1 * get_command_0() const { return ___command_0; } inline RenderChainCommand_t687866AA005A30DF2AF3D60E22ADC708C90828F1 ** get_address_of_command_0() { return &___command_0; } inline void set_command_0(RenderChainCommand_t687866AA005A30DF2AF3D60E22ADC708C90828F1 * value) { ___command_0 = value; Il2CppCodeGenWriteBarrier((void**)(&___command_0), (void*)value); } inline static int32_t get_offset_of_firstVertex_1() { return static_cast<int32_t>(offsetof(RenderChainTextEntry_t2B7733A1A5036FC66D89122F798A839F058AE7C7, ___firstVertex_1)); } inline int32_t get_firstVertex_1() const { return ___firstVertex_1; } inline int32_t* get_address_of_firstVertex_1() { return &___firstVertex_1; } inline void set_firstVertex_1(int32_t value) { ___firstVertex_1 = value; } inline static int32_t get_offset_of_vertexCount_2() { return static_cast<int32_t>(offsetof(RenderChainTextEntry_t2B7733A1A5036FC66D89122F798A839F058AE7C7, ___vertexCount_2)); } inline int32_t get_vertexCount_2() const { return ___vertexCount_2; } inline int32_t* get_address_of_vertexCount_2() { return &___vertexCount_2; } inline void set_vertexCount_2(int32_t value) { ___vertexCount_2 = value; } }; // Native definition for P/Invoke marshalling of UnityEngine.UIElements.UIR.RenderChainTextEntry struct RenderChainTextEntry_t2B7733A1A5036FC66D89122F798A839F058AE7C7_marshaled_pinvoke { RenderChainCommand_t687866AA005A30DF2AF3D60E22ADC708C90828F1 * ___command_0; int32_t ___firstVertex_1; int32_t ___vertexCount_2; }; // Native definition for COM marshalling of UnityEngine.UIElements.UIR.RenderChainTextEntry struct RenderChainTextEntry_t2B7733A1A5036FC66D89122F798A839F058AE7C7_marshaled_com { RenderChainCommand_t687866AA005A30DF2AF3D60E22ADC708C90828F1 * ___command_0; int32_t ___firstVertex_1; int32_t ___vertexCount_2; }; // System.Resources.ResourceLocator struct ResourceLocator_t3D496606F94367D5D6B24DA9DC0A3B46E6B53B11 { public: // System.Object System.Resources.ResourceLocator::_value RuntimeObject * ____value_0; // System.Int32 System.Resources.ResourceLocator::_dataPos int32_t ____dataPos_1; public: inline static int32_t get_offset_of__value_0() { return static_cast<int32_t>(offsetof(ResourceLocator_t3D496606F94367D5D6B24DA9DC0A3B46E6B53B11, ____value_0)); } inline RuntimeObject * get__value_0() const { return ____value_0; } inline RuntimeObject ** get_address_of__value_0() { return &____value_0; } inline void set__value_0(RuntimeObject * value) { ____value_0 = value; Il2CppCodeGenWriteBarrier((void**)(&____value_0), (void*)value); } inline static int32_t get_offset_of__dataPos_1() { return static_cast<int32_t>(offsetof(ResourceLocator_t3D496606F94367D5D6B24DA9DC0A3B46E6B53B11, ____dataPos_1)); } inline int32_t get__dataPos_1() const { return ____dataPos_1; } inline int32_t* get_address_of__dataPos_1() { return &____dataPos_1; } inline void set__dataPos_1(int32_t value) { ____dataPos_1 = value; } }; // Native definition for P/Invoke marshalling of System.Resources.ResourceLocator struct ResourceLocator_t3D496606F94367D5D6B24DA9DC0A3B46E6B53B11_marshaled_pinvoke { Il2CppIUnknown* ____value_0; int32_t ____dataPos_1; }; // Native definition for COM marshalling of System.Resources.ResourceLocator struct ResourceLocator_t3D496606F94367D5D6B24DA9DC0A3B46E6B53B11_marshaled_com { Il2CppIUnknown* ____value_0; int32_t ____dataPos_1; }; // UnityEngine.Rendering.ShaderTagId struct ShaderTagId_t51914C89B8119195DACD234D1A624AAB7A07F795 { public: // System.Int32 UnityEngine.Rendering.ShaderTagId::m_Id int32_t ___m_Id_1; public: inline static int32_t get_offset_of_m_Id_1() { return static_cast<int32_t>(offsetof(ShaderTagId_t51914C89B8119195DACD234D1A624AAB7A07F795, ___m_Id_1)); } inline int32_t get_m_Id_1() const { return ___m_Id_1; } inline int32_t* get_address_of_m_Id_1() { return &___m_Id_1; } inline void set_m_Id_1(int32_t value) { ___m_Id_1 = value; } }; struct ShaderTagId_t51914C89B8119195DACD234D1A624AAB7A07F795_StaticFields { public: // UnityEngine.Rendering.ShaderTagId UnityEngine.Rendering.ShaderTagId::none ShaderTagId_t51914C89B8119195DACD234D1A624AAB7A07F795 ___none_0; public: inline static int32_t get_offset_of_none_0() { return static_cast<int32_t>(offsetof(ShaderTagId_t51914C89B8119195DACD234D1A624AAB7A07F795_StaticFields, ___none_0)); } inline ShaderTagId_t51914C89B8119195DACD234D1A624AAB7A07F795 get_none_0() const { return ___none_0; } inline ShaderTagId_t51914C89B8119195DACD234D1A624AAB7A07F795 * get_address_of_none_0() { return &___none_0; } inline void set_none_0(ShaderTagId_t51914C89B8119195DACD234D1A624AAB7A07F795 value) { ___none_0 = value; } }; // UnityEngine.UI.SpriteState struct SpriteState_t9024961148433175CE2F3D9E8E9239A8B1CAB15E { public: // UnityEngine.Sprite UnityEngine.UI.SpriteState::m_HighlightedSprite Sprite_t5B10B1178EC2E6F53D33FFD77557F31C08A51ED9 * ___m_HighlightedSprite_0; // UnityEngine.Sprite UnityEngine.UI.SpriteState::m_PressedSprite Sprite_t5B10B1178EC2E6F53D33FFD77557F31C08A51ED9 * ___m_PressedSprite_1; // UnityEngine.Sprite UnityEngine.UI.SpriteState::m_SelectedSprite Sprite_t5B10B1178EC2E6F53D33FFD77557F31C08A51ED9 * ___m_SelectedSprite_2; // UnityEngine.Sprite UnityEngine.UI.SpriteState::m_DisabledSprite Sprite_t5B10B1178EC2E6F53D33FFD77557F31C08A51ED9 * ___m_DisabledSprite_3; public: inline static int32_t get_offset_of_m_HighlightedSprite_0() { return static_cast<int32_t>(offsetof(SpriteState_t9024961148433175CE2F3D9E8E9239A8B1CAB15E, ___m_HighlightedSprite_0)); } inline Sprite_t5B10B1178EC2E6F53D33FFD77557F31C08A51ED9 * get_m_HighlightedSprite_0() const { return ___m_HighlightedSprite_0; } inline Sprite_t5B10B1178EC2E6F53D33FFD77557F31C08A51ED9 ** get_address_of_m_HighlightedSprite_0() { return &___m_HighlightedSprite_0; } inline void set_m_HighlightedSprite_0(Sprite_t5B10B1178EC2E6F53D33FFD77557F31C08A51ED9 * value) { ___m_HighlightedSprite_0 = value; Il2CppCodeGenWriteBarrier((void**)(&___m_HighlightedSprite_0), (void*)value); } inline static int32_t get_offset_of_m_PressedSprite_1() { return static_cast<int32_t>(offsetof(SpriteState_t9024961148433175CE2F3D9E8E9239A8B1CAB15E, ___m_PressedSprite_1)); } inline Sprite_t5B10B1178EC2E6F53D33FFD77557F31C08A51ED9 * get_m_PressedSprite_1() const { return ___m_PressedSprite_1; } inline Sprite_t5B10B1178EC2E6F53D33FFD77557F31C08A51ED9 ** get_address_of_m_PressedSprite_1() { return &___m_PressedSprite_1; } inline void set_m_PressedSprite_1(Sprite_t5B10B1178EC2E6F53D33FFD77557F31C08A51ED9 * value) { ___m_PressedSprite_1 = value; Il2CppCodeGenWriteBarrier((void**)(&___m_PressedSprite_1), (void*)value); } inline static int32_t get_offset_of_m_SelectedSprite_2() { return static_cast<int32_t>(offsetof(SpriteState_t9024961148433175CE2F3D9E8E9239A8B1CAB15E, ___m_SelectedSprite_2)); } inline Sprite_t5B10B1178EC2E6F53D33FFD77557F31C08A51ED9 * get_m_SelectedSprite_2() const { return ___m_SelectedSprite_2; } inline Sprite_t5B10B1178EC2E6F53D33FFD77557F31C08A51ED9 ** get_address_of_m_SelectedSprite_2() { return &___m_SelectedSprite_2; } inline void set_m_SelectedSprite_2(Sprite_t5B10B1178EC2E6F53D33FFD77557F31C08A51ED9 * value) { ___m_SelectedSprite_2 = value; Il2CppCodeGenWriteBarrier((void**)(&___m_SelectedSprite_2), (void*)value); } inline static int32_t get_offset_of_m_DisabledSprite_3() { return static_cast<int32_t>(offsetof(SpriteState_t9024961148433175CE2F3D9E8E9239A8B1CAB15E, ___m_DisabledSprite_3)); } inline Sprite_t5B10B1178EC2E6F53D33FFD77557F31C08A51ED9 * get_m_DisabledSprite_3() const { return ___m_DisabledSprite_3; } inline Sprite_t5B10B1178EC2E6F53D33FFD77557F31C08A51ED9 ** get_address_of_m_DisabledSprite_3() { return &___m_DisabledSprite_3; } inline void set_m_DisabledSprite_3(Sprite_t5B10B1178EC2E6F53D33FFD77557F31C08A51ED9 * value) { ___m_DisabledSprite_3 = value; Il2CppCodeGenWriteBarrier((void**)(&___m_DisabledSprite_3), (void*)value); } }; // Native definition for P/Invoke marshalling of UnityEngine.UI.SpriteState struct SpriteState_t9024961148433175CE2F3D9E8E9239A8B1CAB15E_marshaled_pinvoke { Sprite_t5B10B1178EC2E6F53D33FFD77557F31C08A51ED9 * ___m_HighlightedSprite_0; Sprite_t5B10B1178EC2E6F53D33FFD77557F31C08A51ED9 * ___m_PressedSprite_1; Sprite_t5B10B1178EC2E6F53D33FFD77557F31C08A51ED9 * ___m_SelectedSprite_2; Sprite_t5B10B1178EC2E6F53D33FFD77557F31C08A51ED9 * ___m_DisabledSprite_3; }; // Native definition for COM marshalling of UnityEngine.UI.SpriteState struct SpriteState_t9024961148433175CE2F3D9E8E9239A8B1CAB15E_marshaled_com { Sprite_t5B10B1178EC2E6F53D33FFD77557F31C08A51ED9 * ___m_HighlightedSprite_0; Sprite_t5B10B1178EC2E6F53D33FFD77557F31C08A51ED9 * ___m_PressedSprite_1; Sprite_t5B10B1178EC2E6F53D33FFD77557F31C08A51ED9 * ___m_SelectedSprite_2; Sprite_t5B10B1178EC2E6F53D33FFD77557F31C08A51ED9 * ___m_DisabledSprite_3; }; // UnityEngine.UIElements.StyleVariable struct StyleVariable_tEF01599E5D91F65B4405F88847D7F6AA87B210BD { public: // System.String UnityEngine.UIElements.StyleVariable::name String_t* ___name_0; // UnityEngine.UIElements.StyleSheet UnityEngine.UIElements.StyleVariable::sheet StyleSheet_tB0EAD646842945D83386B5A06090AAFE6A60520F * ___sheet_1; // UnityEngine.UIElements.StyleValueHandle[] UnityEngine.UIElements.StyleVariable::handles StyleValueHandleU5BU5D_t8FCC38AD3E7E9F31424A6842204C9407D70FF41A* ___handles_2; public: inline static int32_t get_offset_of_name_0() { return static_cast<int32_t>(offsetof(StyleVariable_tEF01599E5D91F65B4405F88847D7F6AA87B210BD, ___name_0)); } inline String_t* get_name_0() const { return ___name_0; } inline String_t** get_address_of_name_0() { return &___name_0; } inline void set_name_0(String_t* value) { ___name_0 = value; Il2CppCodeGenWriteBarrier((void**)(&___name_0), (void*)value); } inline static int32_t get_offset_of_sheet_1() { return static_cast<int32_t>(offsetof(StyleVariable_tEF01599E5D91F65B4405F88847D7F6AA87B210BD, ___sheet_1)); } inline StyleSheet_tB0EAD646842945D83386B5A06090AAFE6A60520F * get_sheet_1() const { return ___sheet_1; } inline StyleSheet_tB0EAD646842945D83386B5A06090AAFE6A60520F ** get_address_of_sheet_1() { return &___sheet_1; } inline void set_sheet_1(StyleSheet_tB0EAD646842945D83386B5A06090AAFE6A60520F * value) { ___sheet_1 = value; Il2CppCodeGenWriteBarrier((void**)(&___sheet_1), (void*)value); } inline static int32_t get_offset_of_handles_2() { return static_cast<int32_t>(offsetof(StyleVariable_tEF01599E5D91F65B4405F88847D7F6AA87B210BD, ___handles_2)); } inline StyleValueHandleU5BU5D_t8FCC38AD3E7E9F31424A6842204C9407D70FF41A* get_handles_2() const { return ___handles_2; } inline StyleValueHandleU5BU5D_t8FCC38AD3E7E9F31424A6842204C9407D70FF41A** get_address_of_handles_2() { return &___handles_2; } inline void set_handles_2(StyleValueHandleU5BU5D_t8FCC38AD3E7E9F31424A6842204C9407D70FF41A* value) { ___handles_2 = value; Il2CppCodeGenWriteBarrier((void**)(&___handles_2), (void*)value); } }; // Native definition for P/Invoke marshalling of UnityEngine.UIElements.StyleVariable struct StyleVariable_tEF01599E5D91F65B4405F88847D7F6AA87B210BD_marshaled_pinvoke { char* ___name_0; StyleSheet_tB0EAD646842945D83386B5A06090AAFE6A60520F * ___sheet_1; StyleValueHandle_t46AFAF3564D6DF2EA2739A1D85438355478AD185 * ___handles_2; }; // Native definition for COM marshalling of UnityEngine.UIElements.StyleVariable struct StyleVariable_tEF01599E5D91F65B4405F88847D7F6AA87B210BD_marshaled_com { Il2CppChar* ___name_0; StyleSheet_tB0EAD646842945D83386B5A06090AAFE6A60520F * ___sheet_1; StyleValueHandle_t46AFAF3564D6DF2EA2739A1D85438355478AD185 * ___handles_2; }; // UnityEngine.UIElements.TextureId struct TextureId_t1DB18D78549F5571E12587245D818634A6EA17C5 { public: // System.Int32 UnityEngine.UIElements.TextureId::m_Index int32_t ___m_Index_0; public: inline static int32_t get_offset_of_m_Index_0() { return static_cast<int32_t>(offsetof(TextureId_t1DB18D78549F5571E12587245D818634A6EA17C5, ___m_Index_0)); } inline int32_t get_m_Index_0() const { return ___m_Index_0; } inline int32_t* get_address_of_m_Index_0() { return &___m_Index_0; } inline void set_m_Index_0(int32_t value) { ___m_Index_0 = value; } }; struct TextureId_t1DB18D78549F5571E12587245D818634A6EA17C5_StaticFields { public: // UnityEngine.UIElements.TextureId UnityEngine.UIElements.TextureId::invalid TextureId_t1DB18D78549F5571E12587245D818634A6EA17C5 ___invalid_1; public: inline static int32_t get_offset_of_invalid_1() { return static_cast<int32_t>(offsetof(TextureId_t1DB18D78549F5571E12587245D818634A6EA17C5_StaticFields, ___invalid_1)); } inline TextureId_t1DB18D78549F5571E12587245D818634A6EA17C5 get_invalid_1() const { return ___invalid_1; } inline TextureId_t1DB18D78549F5571E12587245D818634A6EA17C5 * get_address_of_invalid_1() { return &___invalid_1; } inline void set_invalid_1(TextureId_t1DB18D78549F5571E12587245D818634A6EA17C5 value) { ___invalid_1 = value; } }; // UnityEngine.UILineInfo struct UILineInfo_tD082FF4894030AD4EBF57ACF6A997135E4B8B67C { public: // System.Int32 UnityEngine.UILineInfo::startCharIdx int32_t ___startCharIdx_0; // System.Int32 UnityEngine.UILineInfo::height int32_t ___height_1; // System.Single UnityEngine.UILineInfo::topY float ___topY_2; // System.Single UnityEngine.UILineInfo::leading float ___leading_3; public: inline static int32_t get_offset_of_startCharIdx_0() { return static_cast<int32_t>(offsetof(UILineInfo_tD082FF4894030AD4EBF57ACF6A997135E4B8B67C, ___startCharIdx_0)); } inline int32_t get_startCharIdx_0() const { return ___startCharIdx_0; } inline int32_t* get_address_of_startCharIdx_0() { return &___startCharIdx_0; } inline void set_startCharIdx_0(int32_t value) { ___startCharIdx_0 = value; } inline static int32_t get_offset_of_height_1() { return static_cast<int32_t>(offsetof(UILineInfo_tD082FF4894030AD4EBF57ACF6A997135E4B8B67C, ___height_1)); } inline int32_t get_height_1() const { return ___height_1; } inline int32_t* get_address_of_height_1() { return &___height_1; } inline void set_height_1(int32_t value) { ___height_1 = value; } inline static int32_t get_offset_of_topY_2() { return static_cast<int32_t>(offsetof(UILineInfo_tD082FF4894030AD4EBF57ACF6A997135E4B8B67C, ___topY_2)); } inline float get_topY_2() const { return ___topY_2; } inline float* get_address_of_topY_2() { return &___topY_2; } inline void set_topY_2(float value) { ___topY_2 = value; } inline static int32_t get_offset_of_leading_3() { return static_cast<int32_t>(offsetof(UILineInfo_tD082FF4894030AD4EBF57ACF6A997135E4B8B67C, ___leading_3)); } inline float get_leading_3() const { return ___leading_3; } inline float* get_address_of_leading_3() { return &___leading_3; } inline void set_leading_3(float value) { ___leading_3 = value; } }; // UnityEngine.Vector2 struct Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9 { public: // System.Single UnityEngine.Vector2::x float ___x_0; // System.Single UnityEngine.Vector2::y float ___y_1; public: inline static int32_t get_offset_of_x_0() { return static_cast<int32_t>(offsetof(Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9, ___x_0)); } inline float get_x_0() const { return ___x_0; } inline float* get_address_of_x_0() { return &___x_0; } inline void set_x_0(float value) { ___x_0 = value; } inline static int32_t get_offset_of_y_1() { return static_cast<int32_t>(offsetof(Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9, ___y_1)); } inline float get_y_1() const { return ___y_1; } inline float* get_address_of_y_1() { return &___y_1; } inline void set_y_1(float value) { ___y_1 = value; } }; struct Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9_StaticFields { public: // UnityEngine.Vector2 UnityEngine.Vector2::zeroVector Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9 ___zeroVector_2; // UnityEngine.Vector2 UnityEngine.Vector2::oneVector Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9 ___oneVector_3; // UnityEngine.Vector2 UnityEngine.Vector2::upVector Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9 ___upVector_4; // UnityEngine.Vector2 UnityEngine.Vector2::downVector Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9 ___downVector_5; // UnityEngine.Vector2 UnityEngine.Vector2::leftVector Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9 ___leftVector_6; // UnityEngine.Vector2 UnityEngine.Vector2::rightVector Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9 ___rightVector_7; // UnityEngine.Vector2 UnityEngine.Vector2::positiveInfinityVector Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9 ___positiveInfinityVector_8; // UnityEngine.Vector2 UnityEngine.Vector2::negativeInfinityVector Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9 ___negativeInfinityVector_9; public: inline static int32_t get_offset_of_zeroVector_2() { return static_cast<int32_t>(offsetof(Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9_StaticFields, ___zeroVector_2)); } inline Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9 get_zeroVector_2() const { return ___zeroVector_2; } inline Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9 * get_address_of_zeroVector_2() { return &___zeroVector_2; } inline void set_zeroVector_2(Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9 value) { ___zeroVector_2 = value; } inline static int32_t get_offset_of_oneVector_3() { return static_cast<int32_t>(offsetof(Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9_StaticFields, ___oneVector_3)); } inline Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9 get_oneVector_3() const { return ___oneVector_3; } inline Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9 * get_address_of_oneVector_3() { return &___oneVector_3; } inline void set_oneVector_3(Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9 value) { ___oneVector_3 = value; } inline static int32_t get_offset_of_upVector_4() { return static_cast<int32_t>(offsetof(Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9_StaticFields, ___upVector_4)); } inline Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9 get_upVector_4() const { return ___upVector_4; } inline Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9 * get_address_of_upVector_4() { return &___upVector_4; } inline void set_upVector_4(Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9 value) { ___upVector_4 = value; } inline static int32_t get_offset_of_downVector_5() { return static_cast<int32_t>(offsetof(Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9_StaticFields, ___downVector_5)); } inline Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9 get_downVector_5() const { return ___downVector_5; } inline Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9 * get_address_of_downVector_5() { return &___downVector_5; } inline void set_downVector_5(Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9 value) { ___downVector_5 = value; } inline static int32_t get_offset_of_leftVector_6() { return static_cast<int32_t>(offsetof(Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9_StaticFields, ___leftVector_6)); } inline Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9 get_leftVector_6() const { return ___leftVector_6; } inline Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9 * get_address_of_leftVector_6() { return &___leftVector_6; } inline void set_leftVector_6(Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9 value) { ___leftVector_6 = value; } inline static int32_t get_offset_of_rightVector_7() { return static_cast<int32_t>(offsetof(Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9_StaticFields, ___rightVector_7)); } inline Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9 get_rightVector_7() const { return ___rightVector_7; } inline Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9 * get_address_of_rightVector_7() { return &___rightVector_7; } inline void set_rightVector_7(Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9 value) { ___rightVector_7 = value; } inline static int32_t get_offset_of_positiveInfinityVector_8() { return static_cast<int32_t>(offsetof(Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9_StaticFields, ___positiveInfinityVector_8)); } inline Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9 get_positiveInfinityVector_8() const { return ___positiveInfinityVector_8; } inline Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9 * get_address_of_positiveInfinityVector_8() { return &___positiveInfinityVector_8; } inline void set_positiveInfinityVector_8(Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9 value) { ___positiveInfinityVector_8 = value; } inline static int32_t get_offset_of_negativeInfinityVector_9() { return static_cast<int32_t>(offsetof(Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9_StaticFields, ___negativeInfinityVector_9)); } inline Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9 get_negativeInfinityVector_9() const { return ___negativeInfinityVector_9; } inline Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9 * get_address_of_negativeInfinityVector_9() { return &___negativeInfinityVector_9; } inline void set_negativeInfinityVector_9(Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9 value) { ___negativeInfinityVector_9 = value; } }; // UnityEngine.Vector3 struct Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E { public: // System.Single UnityEngine.Vector3::x float ___x_2; // System.Single UnityEngine.Vector3::y float ___y_3; // System.Single UnityEngine.Vector3::z float ___z_4; public: inline static int32_t get_offset_of_x_2() { return static_cast<int32_t>(offsetof(Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E, ___x_2)); } inline float get_x_2() const { return ___x_2; } inline float* get_address_of_x_2() { return &___x_2; } inline void set_x_2(float value) { ___x_2 = value; } inline static int32_t get_offset_of_y_3() { return static_cast<int32_t>(offsetof(Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E, ___y_3)); } inline float get_y_3() const { return ___y_3; } inline float* get_address_of_y_3() { return &___y_3; } inline void set_y_3(float value) { ___y_3 = value; } inline static int32_t get_offset_of_z_4() { return static_cast<int32_t>(offsetof(Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E, ___z_4)); } inline float get_z_4() const { return ___z_4; } inline float* get_address_of_z_4() { return &___z_4; } inline void set_z_4(float value) { ___z_4 = value; } }; struct Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E_StaticFields { public: // UnityEngine.Vector3 UnityEngine.Vector3::zeroVector Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E ___zeroVector_5; // UnityEngine.Vector3 UnityEngine.Vector3::oneVector Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E ___oneVector_6; // UnityEngine.Vector3 UnityEngine.Vector3::upVector Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E ___upVector_7; // UnityEngine.Vector3 UnityEngine.Vector3::downVector Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E ___downVector_8; // UnityEngine.Vector3 UnityEngine.Vector3::leftVector Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E ___leftVector_9; // UnityEngine.Vector3 UnityEngine.Vector3::rightVector Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E ___rightVector_10; // UnityEngine.Vector3 UnityEngine.Vector3::forwardVector Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E ___forwardVector_11; // UnityEngine.Vector3 UnityEngine.Vector3::backVector Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E ___backVector_12; // UnityEngine.Vector3 UnityEngine.Vector3::positiveInfinityVector Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E ___positiveInfinityVector_13; // UnityEngine.Vector3 UnityEngine.Vector3::negativeInfinityVector Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E ___negativeInfinityVector_14; public: inline static int32_t get_offset_of_zeroVector_5() { return static_cast<int32_t>(offsetof(Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E_StaticFields, ___zeroVector_5)); } inline Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E get_zeroVector_5() const { return ___zeroVector_5; } inline Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E * get_address_of_zeroVector_5() { return &___zeroVector_5; } inline void set_zeroVector_5(Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E value) { ___zeroVector_5 = value; } inline static int32_t get_offset_of_oneVector_6() { return static_cast<int32_t>(offsetof(Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E_StaticFields, ___oneVector_6)); } inline Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E get_oneVector_6() const { return ___oneVector_6; } inline Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E * get_address_of_oneVector_6() { return &___oneVector_6; } inline void set_oneVector_6(Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E value) { ___oneVector_6 = value; } inline static int32_t get_offset_of_upVector_7() { return static_cast<int32_t>(offsetof(Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E_StaticFields, ___upVector_7)); } inline Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E get_upVector_7() const { return ___upVector_7; } inline Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E * get_address_of_upVector_7() { return &___upVector_7; } inline void set_upVector_7(Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E value) { ___upVector_7 = value; } inline static int32_t get_offset_of_downVector_8() { return static_cast<int32_t>(offsetof(Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E_StaticFields, ___downVector_8)); } inline Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E get_downVector_8() const { return ___downVector_8; } inline Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E * get_address_of_downVector_8() { return &___downVector_8; } inline void set_downVector_8(Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E value) { ___downVector_8 = value; } inline static int32_t get_offset_of_leftVector_9() { return static_cast<int32_t>(offsetof(Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E_StaticFields, ___leftVector_9)); } inline Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E get_leftVector_9() const { return ___leftVector_9; } inline Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E * get_address_of_leftVector_9() { return &___leftVector_9; } inline void set_leftVector_9(Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E value) { ___leftVector_9 = value; } inline static int32_t get_offset_of_rightVector_10() { return static_cast<int32_t>(offsetof(Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E_StaticFields, ___rightVector_10)); } inline Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E get_rightVector_10() const { return ___rightVector_10; } inline Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E * get_address_of_rightVector_10() { return &___rightVector_10; } inline void set_rightVector_10(Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E value) { ___rightVector_10 = value; } inline static int32_t get_offset_of_forwardVector_11() { return static_cast<int32_t>(offsetof(Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E_StaticFields, ___forwardVector_11)); } inline Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E get_forwardVector_11() const { return ___forwardVector_11; } inline Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E * get_address_of_forwardVector_11() { return &___forwardVector_11; } inline void set_forwardVector_11(Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E value) { ___forwardVector_11 = value; } inline static int32_t get_offset_of_backVector_12() { return static_cast<int32_t>(offsetof(Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E_StaticFields, ___backVector_12)); } inline Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E get_backVector_12() const { return ___backVector_12; } inline Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E * get_address_of_backVector_12() { return &___backVector_12; } inline void set_backVector_12(Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E value) { ___backVector_12 = value; } inline static int32_t get_offset_of_positiveInfinityVector_13() { return static_cast<int32_t>(offsetof(Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E_StaticFields, ___positiveInfinityVector_13)); } inline Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E get_positiveInfinityVector_13() const { return ___positiveInfinityVector_13; } inline Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E * get_address_of_positiveInfinityVector_13() { return &___positiveInfinityVector_13; } inline void set_positiveInfinityVector_13(Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E value) { ___positiveInfinityVector_13 = value; } inline static int32_t get_offset_of_negativeInfinityVector_14() { return static_cast<int32_t>(offsetof(Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E_StaticFields, ___negativeInfinityVector_14)); } inline Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E get_negativeInfinityVector_14() const { return ___negativeInfinityVector_14; } inline Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E * get_address_of_negativeInfinityVector_14() { return &___negativeInfinityVector_14; } inline void set_negativeInfinityVector_14(Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E value) { ___negativeInfinityVector_14 = value; } }; // UnityEngine.Vector3Int struct Vector3Int_t197C3BA05CF19F1A22D40F8AE64CD4102AFB77EA { public: // System.Int32 UnityEngine.Vector3Int::m_X int32_t ___m_X_0; // System.Int32 UnityEngine.Vector3Int::m_Y int32_t ___m_Y_1; // System.Int32 UnityEngine.Vector3Int::m_Z int32_t ___m_Z_2; public: inline static int32_t get_offset_of_m_X_0() { return static_cast<int32_t>(offsetof(Vector3Int_t197C3BA05CF19F1A22D40F8AE64CD4102AFB77EA, ___m_X_0)); } inline int32_t get_m_X_0() const { return ___m_X_0; } inline int32_t* get_address_of_m_X_0() { return &___m_X_0; } inline void set_m_X_0(int32_t value) { ___m_X_0 = value; } inline static int32_t get_offset_of_m_Y_1() { return static_cast<int32_t>(offsetof(Vector3Int_t197C3BA05CF19F1A22D40F8AE64CD4102AFB77EA, ___m_Y_1)); } inline int32_t get_m_Y_1() const { return ___m_Y_1; } inline int32_t* get_address_of_m_Y_1() { return &___m_Y_1; } inline void set_m_Y_1(int32_t value) { ___m_Y_1 = value; } inline static int32_t get_offset_of_m_Z_2() { return static_cast<int32_t>(offsetof(Vector3Int_t197C3BA05CF19F1A22D40F8AE64CD4102AFB77EA, ___m_Z_2)); } inline int32_t get_m_Z_2() const { return ___m_Z_2; } inline int32_t* get_address_of_m_Z_2() { return &___m_Z_2; } inline void set_m_Z_2(int32_t value) { ___m_Z_2 = value; } }; struct Vector3Int_t197C3BA05CF19F1A22D40F8AE64CD4102AFB77EA_StaticFields { public: // UnityEngine.Vector3Int UnityEngine.Vector3Int::s_Zero Vector3Int_t197C3BA05CF19F1A22D40F8AE64CD4102AFB77EA ___s_Zero_3; // UnityEngine.Vector3Int UnityEngine.Vector3Int::s_One Vector3Int_t197C3BA05CF19F1A22D40F8AE64CD4102AFB77EA ___s_One_4; // UnityEngine.Vector3Int UnityEngine.Vector3Int::s_Up Vector3Int_t197C3BA05CF19F1A22D40F8AE64CD4102AFB77EA ___s_Up_5; // UnityEngine.Vector3Int UnityEngine.Vector3Int::s_Down Vector3Int_t197C3BA05CF19F1A22D40F8AE64CD4102AFB77EA ___s_Down_6; // UnityEngine.Vector3Int UnityEngine.Vector3Int::s_Left Vector3Int_t197C3BA05CF19F1A22D40F8AE64CD4102AFB77EA ___s_Left_7; // UnityEngine.Vector3Int UnityEngine.Vector3Int::s_Right Vector3Int_t197C3BA05CF19F1A22D40F8AE64CD4102AFB77EA ___s_Right_8; // UnityEngine.Vector3Int UnityEngine.Vector3Int::s_Forward Vector3Int_t197C3BA05CF19F1A22D40F8AE64CD4102AFB77EA ___s_Forward_9; // UnityEngine.Vector3Int UnityEngine.Vector3Int::s_Back Vector3Int_t197C3BA05CF19F1A22D40F8AE64CD4102AFB77EA ___s_Back_10; public: inline static int32_t get_offset_of_s_Zero_3() { return static_cast<int32_t>(offsetof(Vector3Int_t197C3BA05CF19F1A22D40F8AE64CD4102AFB77EA_StaticFields, ___s_Zero_3)); } inline Vector3Int_t197C3BA05CF19F1A22D40F8AE64CD4102AFB77EA get_s_Zero_3() const { return ___s_Zero_3; } inline Vector3Int_t197C3BA05CF19F1A22D40F8AE64CD4102AFB77EA * get_address_of_s_Zero_3() { return &___s_Zero_3; } inline void set_s_Zero_3(Vector3Int_t197C3BA05CF19F1A22D40F8AE64CD4102AFB77EA value) { ___s_Zero_3 = value; } inline static int32_t get_offset_of_s_One_4() { return static_cast<int32_t>(offsetof(Vector3Int_t197C3BA05CF19F1A22D40F8AE64CD4102AFB77EA_StaticFields, ___s_One_4)); } inline Vector3Int_t197C3BA05CF19F1A22D40F8AE64CD4102AFB77EA get_s_One_4() const { return ___s_One_4; } inline Vector3Int_t197C3BA05CF19F1A22D40F8AE64CD4102AFB77EA * get_address_of_s_One_4() { return &___s_One_4; } inline void set_s_One_4(Vector3Int_t197C3BA05CF19F1A22D40F8AE64CD4102AFB77EA value) { ___s_One_4 = value; } inline static int32_t get_offset_of_s_Up_5() { return static_cast<int32_t>(offsetof(Vector3Int_t197C3BA05CF19F1A22D40F8AE64CD4102AFB77EA_StaticFields, ___s_Up_5)); } inline Vector3Int_t197C3BA05CF19F1A22D40F8AE64CD4102AFB77EA get_s_Up_5() const { return ___s_Up_5; } inline Vector3Int_t197C3BA05CF19F1A22D40F8AE64CD4102AFB77EA * get_address_of_s_Up_5() { return &___s_Up_5; } inline void set_s_Up_5(Vector3Int_t197C3BA05CF19F1A22D40F8AE64CD4102AFB77EA value) { ___s_Up_5 = value; } inline static int32_t get_offset_of_s_Down_6() { return static_cast<int32_t>(offsetof(Vector3Int_t197C3BA05CF19F1A22D40F8AE64CD4102AFB77EA_StaticFields, ___s_Down_6)); } inline Vector3Int_t197C3BA05CF19F1A22D40F8AE64CD4102AFB77EA get_s_Down_6() const { return ___s_Down_6; } inline Vector3Int_t197C3BA05CF19F1A22D40F8AE64CD4102AFB77EA * get_address_of_s_Down_6() { return &___s_Down_6; } inline void set_s_Down_6(Vector3Int_t197C3BA05CF19F1A22D40F8AE64CD4102AFB77EA value) { ___s_Down_6 = value; } inline static int32_t get_offset_of_s_Left_7() { return static_cast<int32_t>(offsetof(Vector3Int_t197C3BA05CF19F1A22D40F8AE64CD4102AFB77EA_StaticFields, ___s_Left_7)); } inline Vector3Int_t197C3BA05CF19F1A22D40F8AE64CD4102AFB77EA get_s_Left_7() const { return ___s_Left_7; } inline Vector3Int_t197C3BA05CF19F1A22D40F8AE64CD4102AFB77EA * get_address_of_s_Left_7() { return &___s_Left_7; } inline void set_s_Left_7(Vector3Int_t197C3BA05CF19F1A22D40F8AE64CD4102AFB77EA value) { ___s_Left_7 = value; } inline static int32_t get_offset_of_s_Right_8() { return static_cast<int32_t>(offsetof(Vector3Int_t197C3BA05CF19F1A22D40F8AE64CD4102AFB77EA_StaticFields, ___s_Right_8)); } inline Vector3Int_t197C3BA05CF19F1A22D40F8AE64CD4102AFB77EA get_s_Right_8() const { return ___s_Right_8; } inline Vector3Int_t197C3BA05CF19F1A22D40F8AE64CD4102AFB77EA * get_address_of_s_Right_8() { return &___s_Right_8; } inline void set_s_Right_8(Vector3Int_t197C3BA05CF19F1A22D40F8AE64CD4102AFB77EA value) { ___s_Right_8 = value; } inline static int32_t get_offset_of_s_Forward_9() { return static_cast<int32_t>(offsetof(Vector3Int_t197C3BA05CF19F1A22D40F8AE64CD4102AFB77EA_StaticFields, ___s_Forward_9)); } inline Vector3Int_t197C3BA05CF19F1A22D40F8AE64CD4102AFB77EA get_s_Forward_9() const { return ___s_Forward_9; } inline Vector3Int_t197C3BA05CF19F1A22D40F8AE64CD4102AFB77EA * get_address_of_s_Forward_9() { return &___s_Forward_9; } inline void set_s_Forward_9(Vector3Int_t197C3BA05CF19F1A22D40F8AE64CD4102AFB77EA value) { ___s_Forward_9 = value; } inline static int32_t get_offset_of_s_Back_10() { return static_cast<int32_t>(offsetof(Vector3Int_t197C3BA05CF19F1A22D40F8AE64CD4102AFB77EA_StaticFields, ___s_Back_10)); } inline Vector3Int_t197C3BA05CF19F1A22D40F8AE64CD4102AFB77EA get_s_Back_10() const { return ___s_Back_10; } inline Vector3Int_t197C3BA05CF19F1A22D40F8AE64CD4102AFB77EA * get_address_of_s_Back_10() { return &___s_Back_10; } inline void set_s_Back_10(Vector3Int_t197C3BA05CF19F1A22D40F8AE64CD4102AFB77EA value) { ___s_Back_10 = value; } }; // UnityEngine.Vector4 struct Vector4_tA56A37FC5661BCC89C3DDC24BE12BA5BCB6A02C7 { public: // System.Single UnityEngine.Vector4::x float ___x_1; // System.Single UnityEngine.Vector4::y float ___y_2; // System.Single UnityEngine.Vector4::z float ___z_3; // System.Single UnityEngine.Vector4::w float ___w_4; public: inline static int32_t get_offset_of_x_1() { return static_cast<int32_t>(offsetof(Vector4_tA56A37FC5661BCC89C3DDC24BE12BA5BCB6A02C7, ___x_1)); } inline float get_x_1() const { return ___x_1; } inline float* get_address_of_x_1() { return &___x_1; } inline void set_x_1(float value) { ___x_1 = value; } inline static int32_t get_offset_of_y_2() { return static_cast<int32_t>(offsetof(Vector4_tA56A37FC5661BCC89C3DDC24BE12BA5BCB6A02C7, ___y_2)); } inline float get_y_2() const { return ___y_2; } inline float* get_address_of_y_2() { return &___y_2; } inline void set_y_2(float value) { ___y_2 = value; } inline static int32_t get_offset_of_z_3() { return static_cast<int32_t>(offsetof(Vector4_tA56A37FC5661BCC89C3DDC24BE12BA5BCB6A02C7, ___z_3)); } inline float get_z_3() const { return ___z_3; } inline float* get_address_of_z_3() { return &___z_3; } inline void set_z_3(float value) { ___z_3 = value; } inline static int32_t get_offset_of_w_4() { return static_cast<int32_t>(offsetof(Vector4_tA56A37FC5661BCC89C3DDC24BE12BA5BCB6A02C7, ___w_4)); } inline float get_w_4() const { return ___w_4; } inline float* get_address_of_w_4() { return &___w_4; } inline void set_w_4(float value) { ___w_4 = value; } }; struct Vector4_tA56A37FC5661BCC89C3DDC24BE12BA5BCB6A02C7_StaticFields { public: // UnityEngine.Vector4 UnityEngine.Vector4::zeroVector Vector4_tA56A37FC5661BCC89C3DDC24BE12BA5BCB6A02C7 ___zeroVector_5; // UnityEngine.Vector4 UnityEngine.Vector4::oneVector Vector4_tA56A37FC5661BCC89C3DDC24BE12BA5BCB6A02C7 ___oneVector_6; // UnityEngine.Vector4 UnityEngine.Vector4::positiveInfinityVector Vector4_tA56A37FC5661BCC89C3DDC24BE12BA5BCB6A02C7 ___positiveInfinityVector_7; // UnityEngine.Vector4 UnityEngine.Vector4::negativeInfinityVector Vector4_tA56A37FC5661BCC89C3DDC24BE12BA5BCB6A02C7 ___negativeInfinityVector_8; public: inline static int32_t get_offset_of_zeroVector_5() { return static_cast<int32_t>(offsetof(Vector4_tA56A37FC5661BCC89C3DDC24BE12BA5BCB6A02C7_StaticFields, ___zeroVector_5)); } inline Vector4_tA56A37FC5661BCC89C3DDC24BE12BA5BCB6A02C7 get_zeroVector_5() const { return ___zeroVector_5; } inline Vector4_tA56A37FC5661BCC89C3DDC24BE12BA5BCB6A02C7 * get_address_of_zeroVector_5() { return &___zeroVector_5; } inline void set_zeroVector_5(Vector4_tA56A37FC5661BCC89C3DDC24BE12BA5BCB6A02C7 value) { ___zeroVector_5 = value; } inline static int32_t get_offset_of_oneVector_6() { return static_cast<int32_t>(offsetof(Vector4_tA56A37FC5661BCC89C3DDC24BE12BA5BCB6A02C7_StaticFields, ___oneVector_6)); } inline Vector4_tA56A37FC5661BCC89C3DDC24BE12BA5BCB6A02C7 get_oneVector_6() const { return ___oneVector_6; } inline Vector4_tA56A37FC5661BCC89C3DDC24BE12BA5BCB6A02C7 * get_address_of_oneVector_6() { return &___oneVector_6; } inline void set_oneVector_6(Vector4_tA56A37FC5661BCC89C3DDC24BE12BA5BCB6A02C7 value) { ___oneVector_6 = value; } inline static int32_t get_offset_of_positiveInfinityVector_7() { return static_cast<int32_t>(offsetof(Vector4_tA56A37FC5661BCC89C3DDC24BE12BA5BCB6A02C7_StaticFields, ___positiveInfinityVector_7)); } inline Vector4_tA56A37FC5661BCC89C3DDC24BE12BA5BCB6A02C7 get_positiveInfinityVector_7() const { return ___positiveInfinityVector_7; } inline Vector4_tA56A37FC5661BCC89C3DDC24BE12BA5BCB6A02C7 * get_address_of_positiveInfinityVector_7() { return &___positiveInfinityVector_7; } inline void set_positiveInfinityVector_7(Vector4_tA56A37FC5661BCC89C3DDC24BE12BA5BCB6A02C7 value) { ___positiveInfinityVector_7 = value; } inline static int32_t get_offset_of_negativeInfinityVector_8() { return static_cast<int32_t>(offsetof(Vector4_tA56A37FC5661BCC89C3DDC24BE12BA5BCB6A02C7_StaticFields, ___negativeInfinityVector_8)); } inline Vector4_tA56A37FC5661BCC89C3DDC24BE12BA5BCB6A02C7 get_negativeInfinityVector_8() const { return ___negativeInfinityVector_8; } inline Vector4_tA56A37FC5661BCC89C3DDC24BE12BA5BCB6A02C7 * get_address_of_negativeInfinityVector_8() { return &___negativeInfinityVector_8; } inline void set_negativeInfinityVector_8(Vector4_tA56A37FC5661BCC89C3DDC24BE12BA5BCB6A02C7 value) { ___negativeInfinityVector_8 = value; } }; // System.Threading.Tasks.VoidTaskResult struct VoidTaskResult_t28D1A323545DE024749196472558F49F1AAF0004 { public: union { struct { }; uint8_t VoidTaskResult_t28D1A323545DE024749196472558F49F1AAF0004__padding[1]; }; public: }; // UnityEngine.Yoga.YogaSize struct YogaSize_tC805BF63DE9A9E4B9984B964AB0A1CFA04ADC1FD { public: // System.Single UnityEngine.Yoga.YogaSize::width float ___width_0; // System.Single UnityEngine.Yoga.YogaSize::height float ___height_1; public: inline static int32_t get_offset_of_width_0() { return static_cast<int32_t>(offsetof(YogaSize_tC805BF63DE9A9E4B9984B964AB0A1CFA04ADC1FD, ___width_0)); } inline float get_width_0() const { return ___width_0; } inline float* get_address_of_width_0() { return &___width_0; } inline void set_width_0(float value) { ___width_0 = value; } inline static int32_t get_offset_of_height_1() { return static_cast<int32_t>(offsetof(YogaSize_tC805BF63DE9A9E4B9984B964AB0A1CFA04ADC1FD, ___height_1)); } inline float get_height_1() const { return ___height_1; } inline float* get_address_of_height_1() { return &___height_1; } inline void set_height_1(float value) { ___height_1 = value; } }; // UnityEngine.BeforeRenderHelper/OrderBlock struct OrderBlock_t0B106828F588BC2F0B9895425E6FD39EDA45C1E2 { public: // System.Int32 UnityEngine.BeforeRenderHelper/OrderBlock::order int32_t ___order_0; // UnityEngine.Events.UnityAction UnityEngine.BeforeRenderHelper/OrderBlock::callback UnityAction_t22E545F8BE0A62EE051C6A83E209587A0DB1C099 * ___callback_1; public: inline static int32_t get_offset_of_order_0() { return static_cast<int32_t>(offsetof(OrderBlock_t0B106828F588BC2F0B9895425E6FD39EDA45C1E2, ___order_0)); } inline int32_t get_order_0() const { return ___order_0; } inline int32_t* get_address_of_order_0() { return &___order_0; } inline void set_order_0(int32_t value) { ___order_0 = value; } inline static int32_t get_offset_of_callback_1() { return static_cast<int32_t>(offsetof(OrderBlock_t0B106828F588BC2F0B9895425E6FD39EDA45C1E2, ___callback_1)); } inline UnityAction_t22E545F8BE0A62EE051C6A83E209587A0DB1C099 * get_callback_1() const { return ___callback_1; } inline UnityAction_t22E545F8BE0A62EE051C6A83E209587A0DB1C099 ** get_address_of_callback_1() { return &___callback_1; } inline void set_callback_1(UnityAction_t22E545F8BE0A62EE051C6A83E209587A0DB1C099 * value) { ___callback_1 = value; Il2CppCodeGenWriteBarrier((void**)(&___callback_1), (void*)value); } }; // Native definition for P/Invoke marshalling of UnityEngine.BeforeRenderHelper/OrderBlock struct OrderBlock_t0B106828F588BC2F0B9895425E6FD39EDA45C1E2_marshaled_pinvoke { int32_t ___order_0; Il2CppMethodPointer ___callback_1; }; // Native definition for COM marshalling of UnityEngine.BeforeRenderHelper/OrderBlock struct OrderBlock_t0B106828F588BC2F0B9895425E6FD39EDA45C1E2_marshaled_com { int32_t ___order_0; Il2CppMethodPointer ___callback_1; }; // UnityEngine.UIElements.FocusController/FocusedElement struct FocusedElement_tF9897C653908D7004ACBEC7265361828BA9DB206 { public: // UnityEngine.UIElements.VisualElement UnityEngine.UIElements.FocusController/FocusedElement::m_SubTreeRoot VisualElement_tAF72253CBD78143319BFE58F26C2349B2959C8C0 * ___m_SubTreeRoot_0; // UnityEngine.UIElements.Focusable UnityEngine.UIElements.FocusController/FocusedElement::m_FocusedElement Focusable_t54CC145FEE85D2A5D92761C419288150CF5BEC14 * ___m_FocusedElement_1; public: inline static int32_t get_offset_of_m_SubTreeRoot_0() { return static_cast<int32_t>(offsetof(FocusedElement_tF9897C653908D7004ACBEC7265361828BA9DB206, ___m_SubTreeRoot_0)); } inline VisualElement_tAF72253CBD78143319BFE58F26C2349B2959C8C0 * get_m_SubTreeRoot_0() const { return ___m_SubTreeRoot_0; } inline VisualElement_tAF72253CBD78143319BFE58F26C2349B2959C8C0 ** get_address_of_m_SubTreeRoot_0() { return &___m_SubTreeRoot_0; } inline void set_m_SubTreeRoot_0(VisualElement_tAF72253CBD78143319BFE58F26C2349B2959C8C0 * value) { ___m_SubTreeRoot_0 = value; Il2CppCodeGenWriteBarrier((void**)(&___m_SubTreeRoot_0), (void*)value); } inline static int32_t get_offset_of_m_FocusedElement_1() { return static_cast<int32_t>(offsetof(FocusedElement_tF9897C653908D7004ACBEC7265361828BA9DB206, ___m_FocusedElement_1)); } inline Focusable_t54CC145FEE85D2A5D92761C419288150CF5BEC14 * get_m_FocusedElement_1() const { return ___m_FocusedElement_1; } inline Focusable_t54CC145FEE85D2A5D92761C419288150CF5BEC14 ** get_address_of_m_FocusedElement_1() { return &___m_FocusedElement_1; } inline void set_m_FocusedElement_1(Focusable_t54CC145FEE85D2A5D92761C419288150CF5BEC14 * value) { ___m_FocusedElement_1 = value; Il2CppCodeGenWriteBarrier((void**)(&___m_FocusedElement_1), (void*)value); } }; // Native definition for P/Invoke marshalling of UnityEngine.UIElements.FocusController/FocusedElement struct FocusedElement_tF9897C653908D7004ACBEC7265361828BA9DB206_marshaled_pinvoke { VisualElement_tAF72253CBD78143319BFE58F26C2349B2959C8C0 * ___m_SubTreeRoot_0; Focusable_t54CC145FEE85D2A5D92761C419288150CF5BEC14 * ___m_FocusedElement_1; }; // Native definition for COM marshalling of UnityEngine.UIElements.FocusController/FocusedElement struct FocusedElement_tF9897C653908D7004ACBEC7265361828BA9DB206_marshaled_com { VisualElement_tAF72253CBD78143319BFE58F26C2349B2959C8C0 * ___m_SubTreeRoot_0; Focusable_t54CC145FEE85D2A5D92761C419288150CF5BEC14 * ___m_FocusedElement_1; }; // UnityEngine.UIElements.TextureRegistry/TextureInfo struct TextureInfo_tD08547B0C7CCA578BCF7493CE018FC48EDF65069 { public: // UnityEngine.Texture UnityEngine.UIElements.TextureRegistry/TextureInfo::texture Texture_t9FE0218A1EEDF266E8C85879FE123265CACC95AE * ___texture_0; // System.Boolean UnityEngine.UIElements.TextureRegistry/TextureInfo::dynamic bool ___dynamic_1; // System.Int32 UnityEngine.UIElements.TextureRegistry/TextureInfo::refCount int32_t ___refCount_2; public: inline static int32_t get_offset_of_texture_0() { return static_cast<int32_t>(offsetof(TextureInfo_tD08547B0C7CCA578BCF7493CE018FC48EDF65069, ___texture_0)); } inline Texture_t9FE0218A1EEDF266E8C85879FE123265CACC95AE * get_texture_0() const { return ___texture_0; } inline Texture_t9FE0218A1EEDF266E8C85879FE123265CACC95AE ** get_address_of_texture_0() { return &___texture_0; } inline void set_texture_0(Texture_t9FE0218A1EEDF266E8C85879FE123265CACC95AE * value) { ___texture_0 = value; Il2CppCodeGenWriteBarrier((void**)(&___texture_0), (void*)value); } inline static int32_t get_offset_of_dynamic_1() { return static_cast<int32_t>(offsetof(TextureInfo_tD08547B0C7CCA578BCF7493CE018FC48EDF65069, ___dynamic_1)); } inline bool get_dynamic_1() const { return ___dynamic_1; } inline bool* get_address_of_dynamic_1() { return &___dynamic_1; } inline void set_dynamic_1(bool value) { ___dynamic_1 = value; } inline static int32_t get_offset_of_refCount_2() { return static_cast<int32_t>(offsetof(TextureInfo_tD08547B0C7CCA578BCF7493CE018FC48EDF65069, ___refCount_2)); } inline int32_t get_refCount_2() const { return ___refCount_2; } inline int32_t* get_address_of_refCount_2() { return &___refCount_2; } inline void set_refCount_2(int32_t value) { ___refCount_2 = value; } }; // Native definition for P/Invoke marshalling of UnityEngine.UIElements.TextureRegistry/TextureInfo struct TextureInfo_tD08547B0C7CCA578BCF7493CE018FC48EDF65069_marshaled_pinvoke { Texture_t9FE0218A1EEDF266E8C85879FE123265CACC95AE * ___texture_0; int32_t ___dynamic_1; int32_t ___refCount_2; }; // Native definition for COM marshalling of UnityEngine.UIElements.TextureRegistry/TextureInfo struct TextureInfo_tD08547B0C7CCA578BCF7493CE018FC48EDF65069_marshaled_com { Texture_t9FE0218A1EEDF266E8C85879FE123265CACC95AE * ___texture_0; int32_t ___dynamic_1; int32_t ___refCount_2; }; // UnityEngine.UnitySynchronizationContext/WorkRequest struct WorkRequest_tA19FD4D1269D8EE2EA886AAF036C4F7F09154393 { public: // System.Threading.SendOrPostCallback UnityEngine.UnitySynchronizationContext/WorkRequest::m_DelagateCallback SendOrPostCallback_t6B7334CE017AF595535507519400AC02D688DC3C * ___m_DelagateCallback_0; // System.Object UnityEngine.UnitySynchronizationContext/WorkRequest::m_DelagateState RuntimeObject * ___m_DelagateState_1; // System.Threading.ManualResetEvent UnityEngine.UnitySynchronizationContext/WorkRequest::m_WaitHandle ManualResetEvent_t9E2ED486907E3A16122ED4E946534E4DD6B5A7BA * ___m_WaitHandle_2; public: inline static int32_t get_offset_of_m_DelagateCallback_0() { return static_cast<int32_t>(offsetof(WorkRequest_tA19FD4D1269D8EE2EA886AAF036C4F7F09154393, ___m_DelagateCallback_0)); } inline SendOrPostCallback_t6B7334CE017AF595535507519400AC02D688DC3C * get_m_DelagateCallback_0() const { return ___m_DelagateCallback_0; } inline SendOrPostCallback_t6B7334CE017AF595535507519400AC02D688DC3C ** get_address_of_m_DelagateCallback_0() { return &___m_DelagateCallback_0; } inline void set_m_DelagateCallback_0(SendOrPostCallback_t6B7334CE017AF595535507519400AC02D688DC3C * value) { ___m_DelagateCallback_0 = value; Il2CppCodeGenWriteBarrier((void**)(&___m_DelagateCallback_0), (void*)value); } inline static int32_t get_offset_of_m_DelagateState_1() { return static_cast<int32_t>(offsetof(WorkRequest_tA19FD4D1269D8EE2EA886AAF036C4F7F09154393, ___m_DelagateState_1)); } inline RuntimeObject * get_m_DelagateState_1() const { return ___m_DelagateState_1; } inline RuntimeObject ** get_address_of_m_DelagateState_1() { return &___m_DelagateState_1; } inline void set_m_DelagateState_1(RuntimeObject * value) { ___m_DelagateState_1 = value; Il2CppCodeGenWriteBarrier((void**)(&___m_DelagateState_1), (void*)value); } inline static int32_t get_offset_of_m_WaitHandle_2() { return static_cast<int32_t>(offsetof(WorkRequest_tA19FD4D1269D8EE2EA886AAF036C4F7F09154393, ___m_WaitHandle_2)); } inline ManualResetEvent_t9E2ED486907E3A16122ED4E946534E4DD6B5A7BA * get_m_WaitHandle_2() const { return ___m_WaitHandle_2; } inline ManualResetEvent_t9E2ED486907E3A16122ED4E946534E4DD6B5A7BA ** get_address_of_m_WaitHandle_2() { return &___m_WaitHandle_2; } inline void set_m_WaitHandle_2(ManualResetEvent_t9E2ED486907E3A16122ED4E946534E4DD6B5A7BA * value) { ___m_WaitHandle_2 = value; Il2CppCodeGenWriteBarrier((void**)(&___m_WaitHandle_2), (void*)value); } }; // Native definition for P/Invoke marshalling of UnityEngine.UnitySynchronizationContext/WorkRequest struct WorkRequest_tA19FD4D1269D8EE2EA886AAF036C4F7F09154393_marshaled_pinvoke { Il2CppMethodPointer ___m_DelagateCallback_0; Il2CppIUnknown* ___m_DelagateState_1; ManualResetEvent_t9E2ED486907E3A16122ED4E946534E4DD6B5A7BA * ___m_WaitHandle_2; }; // Native definition for COM marshalling of UnityEngine.UnitySynchronizationContext/WorkRequest struct WorkRequest_tA19FD4D1269D8EE2EA886AAF036C4F7F09154393_marshaled_com { Il2CppMethodPointer ___m_DelagateCallback_0; Il2CppIUnknown* ___m_DelagateState_1; ManualResetEvent_t9E2ED486907E3A16122ED4E946534E4DD6B5A7BA * ___m_WaitHandle_2; }; // System.Collections.Generic.KeyValuePair`2<System.DateTime,System.Object> struct KeyValuePair_2_tB6ECB423D6D4B3D2F916E061DDF9A7C3F0958D57 { public: // TKey System.Collections.Generic.KeyValuePair`2::key DateTime_tEAF2CD16E071DF5441F40822E4CFE880E5245405 ___key_0; // TValue System.Collections.Generic.KeyValuePair`2::value RuntimeObject * ___value_1; public: inline static int32_t get_offset_of_key_0() { return static_cast<int32_t>(offsetof(KeyValuePair_2_tB6ECB423D6D4B3D2F916E061DDF9A7C3F0958D57, ___key_0)); } inline DateTime_tEAF2CD16E071DF5441F40822E4CFE880E5245405 get_key_0() const { return ___key_0; } inline DateTime_tEAF2CD16E071DF5441F40822E4CFE880E5245405 * get_address_of_key_0() { return &___key_0; } inline void set_key_0(DateTime_tEAF2CD16E071DF5441F40822E4CFE880E5245405 value) { ___key_0 = value; } inline static int32_t get_offset_of_value_1() { return static_cast<int32_t>(offsetof(KeyValuePair_2_tB6ECB423D6D4B3D2F916E061DDF9A7C3F0958D57, ___value_1)); } inline RuntimeObject * get_value_1() const { return ___value_1; } inline RuntimeObject ** get_address_of_value_1() { return &___value_1; } inline void set_value_1(RuntimeObject * value) { ___value_1 = value; Il2CppCodeGenWriteBarrier((void**)(&___value_1), (void*)value); } }; // System.Collections.Generic.KeyValuePair`2<UnityEngine.PropertyName,System.Object> struct KeyValuePair_2_t69D65A575EDB8417950EECED1DEB6124D053CC7B { public: // TKey System.Collections.Generic.KeyValuePair`2::key PropertyName_t1B3B39F9873F8967D3557FE2CCF4E415F909FEC1 ___key_0; // TValue System.Collections.Generic.KeyValuePair`2::value RuntimeObject * ___value_1; public: inline static int32_t get_offset_of_key_0() { return static_cast<int32_t>(offsetof(KeyValuePair_2_t69D65A575EDB8417950EECED1DEB6124D053CC7B, ___key_0)); } inline PropertyName_t1B3B39F9873F8967D3557FE2CCF4E415F909FEC1 get_key_0() const { return ___key_0; } inline PropertyName_t1B3B39F9873F8967D3557FE2CCF4E415F909FEC1 * get_address_of_key_0() { return &___key_0; } inline void set_key_0(PropertyName_t1B3B39F9873F8967D3557FE2CCF4E415F909FEC1 value) { ___key_0 = value; } inline static int32_t get_offset_of_value_1() { return static_cast<int32_t>(offsetof(KeyValuePair_2_t69D65A575EDB8417950EECED1DEB6124D053CC7B, ___value_1)); } inline RuntimeObject * get_value_1() const { return ___value_1; } inline RuntimeObject ** get_address_of_value_1() { return &___value_1; } inline void set_value_1(RuntimeObject * value) { ___value_1 = value; Il2CppCodeGenWriteBarrier((void**)(&___value_1), (void*)value); } }; // Unity.Collections.Allocator struct Allocator_t9888223DEF4F46F3419ECFCCD0753599BEE52A05 { public: // System.Int32 Unity.Collections.Allocator::value__ int32_t ___value___2; public: inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(Allocator_t9888223DEF4F46F3419ECFCCD0753599BEE52A05, ___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; } }; // UnityEngine.UI.ColorBlock struct ColorBlock_t04DFBB97B4772D2E00FD17ED2E3E6590E6916955 { public: // UnityEngine.Color UnityEngine.UI.ColorBlock::m_NormalColor Color_tF40DAF76C04FFECF3FE6024F85A294741C9CC659 ___m_NormalColor_0; // UnityEngine.Color UnityEngine.UI.ColorBlock::m_HighlightedColor Color_tF40DAF76C04FFECF3FE6024F85A294741C9CC659 ___m_HighlightedColor_1; // UnityEngine.Color UnityEngine.UI.ColorBlock::m_PressedColor Color_tF40DAF76C04FFECF3FE6024F85A294741C9CC659 ___m_PressedColor_2; // UnityEngine.Color UnityEngine.UI.ColorBlock::m_SelectedColor Color_tF40DAF76C04FFECF3FE6024F85A294741C9CC659 ___m_SelectedColor_3; // UnityEngine.Color UnityEngine.UI.ColorBlock::m_DisabledColor Color_tF40DAF76C04FFECF3FE6024F85A294741C9CC659 ___m_DisabledColor_4; // System.Single UnityEngine.UI.ColorBlock::m_ColorMultiplier float ___m_ColorMultiplier_5; // System.Single UnityEngine.UI.ColorBlock::m_FadeDuration float ___m_FadeDuration_6; public: inline static int32_t get_offset_of_m_NormalColor_0() { return static_cast<int32_t>(offsetof(ColorBlock_t04DFBB97B4772D2E00FD17ED2E3E6590E6916955, ___m_NormalColor_0)); } inline Color_tF40DAF76C04FFECF3FE6024F85A294741C9CC659 get_m_NormalColor_0() const { return ___m_NormalColor_0; } inline Color_tF40DAF76C04FFECF3FE6024F85A294741C9CC659 * get_address_of_m_NormalColor_0() { return &___m_NormalColor_0; } inline void set_m_NormalColor_0(Color_tF40DAF76C04FFECF3FE6024F85A294741C9CC659 value) { ___m_NormalColor_0 = value; } inline static int32_t get_offset_of_m_HighlightedColor_1() { return static_cast<int32_t>(offsetof(ColorBlock_t04DFBB97B4772D2E00FD17ED2E3E6590E6916955, ___m_HighlightedColor_1)); } inline Color_tF40DAF76C04FFECF3FE6024F85A294741C9CC659 get_m_HighlightedColor_1() const { return ___m_HighlightedColor_1; } inline Color_tF40DAF76C04FFECF3FE6024F85A294741C9CC659 * get_address_of_m_HighlightedColor_1() { return &___m_HighlightedColor_1; } inline void set_m_HighlightedColor_1(Color_tF40DAF76C04FFECF3FE6024F85A294741C9CC659 value) { ___m_HighlightedColor_1 = value; } inline static int32_t get_offset_of_m_PressedColor_2() { return static_cast<int32_t>(offsetof(ColorBlock_t04DFBB97B4772D2E00FD17ED2E3E6590E6916955, ___m_PressedColor_2)); } inline Color_tF40DAF76C04FFECF3FE6024F85A294741C9CC659 get_m_PressedColor_2() const { return ___m_PressedColor_2; } inline Color_tF40DAF76C04FFECF3FE6024F85A294741C9CC659 * get_address_of_m_PressedColor_2() { return &___m_PressedColor_2; } inline void set_m_PressedColor_2(Color_tF40DAF76C04FFECF3FE6024F85A294741C9CC659 value) { ___m_PressedColor_2 = value; } inline static int32_t get_offset_of_m_SelectedColor_3() { return static_cast<int32_t>(offsetof(ColorBlock_t04DFBB97B4772D2E00FD17ED2E3E6590E6916955, ___m_SelectedColor_3)); } inline Color_tF40DAF76C04FFECF3FE6024F85A294741C9CC659 get_m_SelectedColor_3() const { return ___m_SelectedColor_3; } inline Color_tF40DAF76C04FFECF3FE6024F85A294741C9CC659 * get_address_of_m_SelectedColor_3() { return &___m_SelectedColor_3; } inline void set_m_SelectedColor_3(Color_tF40DAF76C04FFECF3FE6024F85A294741C9CC659 value) { ___m_SelectedColor_3 = value; } inline static int32_t get_offset_of_m_DisabledColor_4() { return static_cast<int32_t>(offsetof(ColorBlock_t04DFBB97B4772D2E00FD17ED2E3E6590E6916955, ___m_DisabledColor_4)); } inline Color_tF40DAF76C04FFECF3FE6024F85A294741C9CC659 get_m_DisabledColor_4() const { return ___m_DisabledColor_4; } inline Color_tF40DAF76C04FFECF3FE6024F85A294741C9CC659 * get_address_of_m_DisabledColor_4() { return &___m_DisabledColor_4; } inline void set_m_DisabledColor_4(Color_tF40DAF76C04FFECF3FE6024F85A294741C9CC659 value) { ___m_DisabledColor_4 = value; } inline static int32_t get_offset_of_m_ColorMultiplier_5() { return static_cast<int32_t>(offsetof(ColorBlock_t04DFBB97B4772D2E00FD17ED2E3E6590E6916955, ___m_ColorMultiplier_5)); } inline float get_m_ColorMultiplier_5() const { return ___m_ColorMultiplier_5; } inline float* get_address_of_m_ColorMultiplier_5() { return &___m_ColorMultiplier_5; } inline void set_m_ColorMultiplier_5(float value) { ___m_ColorMultiplier_5 = value; } inline static int32_t get_offset_of_m_FadeDuration_6() { return static_cast<int32_t>(offsetof(ColorBlock_t04DFBB97B4772D2E00FD17ED2E3E6590E6916955, ___m_FadeDuration_6)); } inline float get_m_FadeDuration_6() const { return ___m_FadeDuration_6; } inline float* get_address_of_m_FadeDuration_6() { return &___m_FadeDuration_6; } inline void set_m_FadeDuration_6(float value) { ___m_FadeDuration_6 = value; } }; struct ColorBlock_t04DFBB97B4772D2E00FD17ED2E3E6590E6916955_StaticFields { public: // UnityEngine.UI.ColorBlock UnityEngine.UI.ColorBlock::defaultColorBlock ColorBlock_t04DFBB97B4772D2E00FD17ED2E3E6590E6916955 ___defaultColorBlock_7; public: inline static int32_t get_offset_of_defaultColorBlock_7() { return static_cast<int32_t>(offsetof(ColorBlock_t04DFBB97B4772D2E00FD17ED2E3E6590E6916955_StaticFields, ___defaultColorBlock_7)); } inline ColorBlock_t04DFBB97B4772D2E00FD17ED2E3E6590E6916955 get_defaultColorBlock_7() const { return ___defaultColorBlock_7; } inline ColorBlock_t04DFBB97B4772D2E00FD17ED2E3E6590E6916955 * get_address_of_defaultColorBlock_7() { return &___defaultColorBlock_7; } inline void set_defaultColorBlock_7(ColorBlock_t04DFBB97B4772D2E00FD17ED2E3E6590E6916955 value) { ___defaultColorBlock_7 = value; } }; // System.ConsoleKey struct ConsoleKey_t4708A928547D666CF632F6F46340F476155566D4 { public: // System.Int32 System.ConsoleKey::value__ int32_t ___value___2; public: inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(ConsoleKey_t4708A928547D666CF632F6F46340F476155566D4, ___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.ConsoleModifiers struct ConsoleModifiers_t8465A8BC80F4BDB8816D80AA7CBE483DC7D01EBE { public: // System.Int32 System.ConsoleModifiers::value__ int32_t ___value___2; public: inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(ConsoleModifiers_t8465A8BC80F4BDB8816D80AA7CBE483DC7D01EBE, ___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; } }; // UnityEngine.UIElements.Cursor struct Cursor_t6FF56333603B811AE4BB9A0C7D66B88D874A4C4F { public: // UnityEngine.Texture2D UnityEngine.UIElements.Cursor::<texture>k__BackingField Texture2D_t9B604D0D8E28032123641A7E7338FA872E2698BF * ___U3CtextureU3Ek__BackingField_0; // UnityEngine.Vector2 UnityEngine.UIElements.Cursor::<hotspot>k__BackingField Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9 ___U3ChotspotU3Ek__BackingField_1; // System.Int32 UnityEngine.UIElements.Cursor::<defaultCursorId>k__BackingField int32_t ___U3CdefaultCursorIdU3Ek__BackingField_2; public: inline static int32_t get_offset_of_U3CtextureU3Ek__BackingField_0() { return static_cast<int32_t>(offsetof(Cursor_t6FF56333603B811AE4BB9A0C7D66B88D874A4C4F, ___U3CtextureU3Ek__BackingField_0)); } inline Texture2D_t9B604D0D8E28032123641A7E7338FA872E2698BF * get_U3CtextureU3Ek__BackingField_0() const { return ___U3CtextureU3Ek__BackingField_0; } inline Texture2D_t9B604D0D8E28032123641A7E7338FA872E2698BF ** get_address_of_U3CtextureU3Ek__BackingField_0() { return &___U3CtextureU3Ek__BackingField_0; } inline void set_U3CtextureU3Ek__BackingField_0(Texture2D_t9B604D0D8E28032123641A7E7338FA872E2698BF * value) { ___U3CtextureU3Ek__BackingField_0 = value; Il2CppCodeGenWriteBarrier((void**)(&___U3CtextureU3Ek__BackingField_0), (void*)value); } inline static int32_t get_offset_of_U3ChotspotU3Ek__BackingField_1() { return static_cast<int32_t>(offsetof(Cursor_t6FF56333603B811AE4BB9A0C7D66B88D874A4C4F, ___U3ChotspotU3Ek__BackingField_1)); } inline Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9 get_U3ChotspotU3Ek__BackingField_1() const { return ___U3ChotspotU3Ek__BackingField_1; } inline Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9 * get_address_of_U3ChotspotU3Ek__BackingField_1() { return &___U3ChotspotU3Ek__BackingField_1; } inline void set_U3ChotspotU3Ek__BackingField_1(Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9 value) { ___U3ChotspotU3Ek__BackingField_1 = value; } inline static int32_t get_offset_of_U3CdefaultCursorIdU3Ek__BackingField_2() { return static_cast<int32_t>(offsetof(Cursor_t6FF56333603B811AE4BB9A0C7D66B88D874A4C4F, ___U3CdefaultCursorIdU3Ek__BackingField_2)); } inline int32_t get_U3CdefaultCursorIdU3Ek__BackingField_2() const { return ___U3CdefaultCursorIdU3Ek__BackingField_2; } inline int32_t* get_address_of_U3CdefaultCursorIdU3Ek__BackingField_2() { return &___U3CdefaultCursorIdU3Ek__BackingField_2; } inline void set_U3CdefaultCursorIdU3Ek__BackingField_2(int32_t value) { ___U3CdefaultCursorIdU3Ek__BackingField_2 = value; } }; // Native definition for P/Invoke marshalling of UnityEngine.UIElements.Cursor struct Cursor_t6FF56333603B811AE4BB9A0C7D66B88D874A4C4F_marshaled_pinvoke { Texture2D_t9B604D0D8E28032123641A7E7338FA872E2698BF * ___U3CtextureU3Ek__BackingField_0; Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9 ___U3ChotspotU3Ek__BackingField_1; int32_t ___U3CdefaultCursorIdU3Ek__BackingField_2; }; // Native definition for COM marshalling of UnityEngine.UIElements.Cursor struct Cursor_t6FF56333603B811AE4BB9A0C7D66B88D874A4C4F_marshaled_com { Texture2D_t9B604D0D8E28032123641A7E7338FA872E2698BF * ___U3CtextureU3Ek__BackingField_0; Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9 ___U3ChotspotU3Ek__BackingField_1; int32_t ___U3CdefaultCursorIdU3Ek__BackingField_2; }; // System.Reflection.CustomAttributeNamedArgument struct CustomAttributeNamedArgument_t618778691CF7F5B44F7177210A817A29D3DAEDDA { public: // System.Reflection.CustomAttributeTypedArgument System.Reflection.CustomAttributeNamedArgument::typedArgument CustomAttributeTypedArgument_tE7152E8FACDD29A8E0040E151C86F436FA8E6910 ___typedArgument_0; // System.Reflection.MemberInfo System.Reflection.CustomAttributeNamedArgument::memberInfo MemberInfo_t * ___memberInfo_1; public: inline static int32_t get_offset_of_typedArgument_0() { return static_cast<int32_t>(offsetof(CustomAttributeNamedArgument_t618778691CF7F5B44F7177210A817A29D3DAEDDA, ___typedArgument_0)); } inline CustomAttributeTypedArgument_tE7152E8FACDD29A8E0040E151C86F436FA8E6910 get_typedArgument_0() const { return ___typedArgument_0; } inline CustomAttributeTypedArgument_tE7152E8FACDD29A8E0040E151C86F436FA8E6910 * get_address_of_typedArgument_0() { return &___typedArgument_0; } inline void set_typedArgument_0(CustomAttributeTypedArgument_tE7152E8FACDD29A8E0040E151C86F436FA8E6910 value) { ___typedArgument_0 = value; Il2CppCodeGenWriteBarrier((void**)&(((&___typedArgument_0))->___argumentType_0), (void*)NULL); #if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS Il2CppCodeGenWriteBarrier((void**)&(((&___typedArgument_0))->___value_1), (void*)NULL); #endif } inline static int32_t get_offset_of_memberInfo_1() { return static_cast<int32_t>(offsetof(CustomAttributeNamedArgument_t618778691CF7F5B44F7177210A817A29D3DAEDDA, ___memberInfo_1)); } inline MemberInfo_t * get_memberInfo_1() const { return ___memberInfo_1; } inline MemberInfo_t ** get_address_of_memberInfo_1() { return &___memberInfo_1; } inline void set_memberInfo_1(MemberInfo_t * value) { ___memberInfo_1 = value; Il2CppCodeGenWriteBarrier((void**)(&___memberInfo_1), (void*)value); } }; // Native definition for P/Invoke marshalling of System.Reflection.CustomAttributeNamedArgument struct CustomAttributeNamedArgument_t618778691CF7F5B44F7177210A817A29D3DAEDDA_marshaled_pinvoke { CustomAttributeTypedArgument_tE7152E8FACDD29A8E0040E151C86F436FA8E6910_marshaled_pinvoke ___typedArgument_0; MemberInfo_t * ___memberInfo_1; }; // Native definition for COM marshalling of System.Reflection.CustomAttributeNamedArgument struct CustomAttributeNamedArgument_t618778691CF7F5B44F7177210A817A29D3DAEDDA_marshaled_com { CustomAttributeTypedArgument_tE7152E8FACDD29A8E0040E151C86F436FA8E6910_marshaled_com ___typedArgument_0; MemberInfo_t * ___memberInfo_1; }; // Unity.Jobs.JobHandle struct JobHandle_t8AEB8D31C25D7774C71D62B0C662525E6E36D847 { public: // System.IntPtr Unity.Jobs.JobHandle::jobGroup intptr_t ___jobGroup_0; // System.Int32 Unity.Jobs.JobHandle::version int32_t ___version_1; public: inline static int32_t get_offset_of_jobGroup_0() { return static_cast<int32_t>(offsetof(JobHandle_t8AEB8D31C25D7774C71D62B0C662525E6E36D847, ___jobGroup_0)); } inline intptr_t get_jobGroup_0() const { return ___jobGroup_0; } inline intptr_t* get_address_of_jobGroup_0() { return &___jobGroup_0; } inline void set_jobGroup_0(intptr_t value) { ___jobGroup_0 = value; } inline static int32_t get_offset_of_version_1() { return static_cast<int32_t>(offsetof(JobHandle_t8AEB8D31C25D7774C71D62B0C662525E6E36D847, ___version_1)); } inline int32_t get_version_1() const { return ___version_1; } inline int32_t* get_address_of_version_1() { return &___version_1; } inline void set_version_1(int32_t value) { ___version_1 = value; } }; // UnityEngine.Rendering.LODParameters struct LODParameters_tA41D06C4BDB03138144BE9DCC4BC6B37963DC5CD { public: // System.Int32 UnityEngine.Rendering.LODParameters::m_IsOrthographic int32_t ___m_IsOrthographic_0; // UnityEngine.Vector3 UnityEngine.Rendering.LODParameters::m_CameraPosition Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E ___m_CameraPosition_1; // System.Single UnityEngine.Rendering.LODParameters::m_FieldOfView float ___m_FieldOfView_2; // System.Single UnityEngine.Rendering.LODParameters::m_OrthoSize float ___m_OrthoSize_3; // System.Int32 UnityEngine.Rendering.LODParameters::m_CameraPixelHeight int32_t ___m_CameraPixelHeight_4; public: inline static int32_t get_offset_of_m_IsOrthographic_0() { return static_cast<int32_t>(offsetof(LODParameters_tA41D06C4BDB03138144BE9DCC4BC6B37963DC5CD, ___m_IsOrthographic_0)); } inline int32_t get_m_IsOrthographic_0() const { return ___m_IsOrthographic_0; } inline int32_t* get_address_of_m_IsOrthographic_0() { return &___m_IsOrthographic_0; } inline void set_m_IsOrthographic_0(int32_t value) { ___m_IsOrthographic_0 = value; } inline static int32_t get_offset_of_m_CameraPosition_1() { return static_cast<int32_t>(offsetof(LODParameters_tA41D06C4BDB03138144BE9DCC4BC6B37963DC5CD, ___m_CameraPosition_1)); } inline Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E get_m_CameraPosition_1() const { return ___m_CameraPosition_1; } inline Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E * get_address_of_m_CameraPosition_1() { return &___m_CameraPosition_1; } inline void set_m_CameraPosition_1(Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E value) { ___m_CameraPosition_1 = value; } inline static int32_t get_offset_of_m_FieldOfView_2() { return static_cast<int32_t>(offsetof(LODParameters_tA41D06C4BDB03138144BE9DCC4BC6B37963DC5CD, ___m_FieldOfView_2)); } inline float get_m_FieldOfView_2() const { return ___m_FieldOfView_2; } inline float* get_address_of_m_FieldOfView_2() { return &___m_FieldOfView_2; } inline void set_m_FieldOfView_2(float value) { ___m_FieldOfView_2 = value; } inline static int32_t get_offset_of_m_OrthoSize_3() { return static_cast<int32_t>(offsetof(LODParameters_tA41D06C4BDB03138144BE9DCC4BC6B37963DC5CD, ___m_OrthoSize_3)); } inline float get_m_OrthoSize_3() const { return ___m_OrthoSize_3; } inline float* get_address_of_m_OrthoSize_3() { return &___m_OrthoSize_3; } inline void set_m_OrthoSize_3(float value) { ___m_OrthoSize_3 = value; } inline static int32_t get_offset_of_m_CameraPixelHeight_4() { return static_cast<int32_t>(offsetof(LODParameters_tA41D06C4BDB03138144BE9DCC4BC6B37963DC5CD, ___m_CameraPixelHeight_4)); } inline int32_t get_m_CameraPixelHeight_4() const { return ___m_CameraPixelHeight_4; } inline int32_t* get_address_of_m_CameraPixelHeight_4() { return &___m_CameraPixelHeight_4; } inline void set_m_CameraPixelHeight_4(int32_t value) { ___m_CameraPixelHeight_4 = value; } }; // UnityEngine.SceneManagement.LoadSceneMode struct LoadSceneMode_tF5060E18B71D524860ECBF7B9B56193B1907E5CC { public: // System.Int32 UnityEngine.SceneManagement.LoadSceneMode::value__ int32_t ___value___2; public: inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(LoadSceneMode_tF5060E18B71D524860ECBF7B9B56193B1907E5CC, ___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; } }; // UnityEngine.SceneManagement.LocalPhysicsMode struct LocalPhysicsMode_t0BC6949E496E4E126141A944F9B5A26939798BE6 { public: // System.Int32 UnityEngine.SceneManagement.LocalPhysicsMode::value__ int32_t ___value___2; public: inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(LocalPhysicsMode_t0BC6949E496E4E126141A944F9B5A26939798BE6, ___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; } }; // UnityEngine.Playables.PlayableGraph struct PlayableGraph_t2D5083CFACB413FA1BB13FF054BE09A5A55A205A { public: // System.IntPtr UnityEngine.Playables.PlayableGraph::m_Handle intptr_t ___m_Handle_0; // System.UInt32 UnityEngine.Playables.PlayableGraph::m_Version uint32_t ___m_Version_1; public: inline static int32_t get_offset_of_m_Handle_0() { return static_cast<int32_t>(offsetof(PlayableGraph_t2D5083CFACB413FA1BB13FF054BE09A5A55A205A, ___m_Handle_0)); } inline intptr_t get_m_Handle_0() const { return ___m_Handle_0; } inline intptr_t* get_address_of_m_Handle_0() { return &___m_Handle_0; } inline void set_m_Handle_0(intptr_t value) { ___m_Handle_0 = value; } inline static int32_t get_offset_of_m_Version_1() { return static_cast<int32_t>(offsetof(PlayableGraph_t2D5083CFACB413FA1BB13FF054BE09A5A55A205A, ___m_Version_1)); } inline uint32_t get_m_Version_1() const { return ___m_Version_1; } inline uint32_t* get_address_of_m_Version_1() { return &___m_Version_1; } inline void set_m_Version_1(uint32_t value) { ___m_Version_1 = value; } }; // UnityEngine.Playables.PlayableHandle struct PlayableHandle_t50DCD240B0400DDAD0822C13E5DBC7AD64DC027A { public: // System.IntPtr UnityEngine.Playables.PlayableHandle::m_Handle intptr_t ___m_Handle_0; // System.UInt32 UnityEngine.Playables.PlayableHandle::m_Version uint32_t ___m_Version_1; public: inline static int32_t get_offset_of_m_Handle_0() { return static_cast<int32_t>(offsetof(PlayableHandle_t50DCD240B0400DDAD0822C13E5DBC7AD64DC027A, ___m_Handle_0)); } inline intptr_t get_m_Handle_0() const { return ___m_Handle_0; } inline intptr_t* get_address_of_m_Handle_0() { return &___m_Handle_0; } inline void set_m_Handle_0(intptr_t value) { ___m_Handle_0 = value; } inline static int32_t get_offset_of_m_Version_1() { return static_cast<int32_t>(offsetof(PlayableHandle_t50DCD240B0400DDAD0822C13E5DBC7AD64DC027A, ___m_Version_1)); } inline uint32_t get_m_Version_1() const { return ___m_Version_1; } inline uint32_t* get_address_of_m_Version_1() { return &___m_Version_1; } inline void set_m_Version_1(uint32_t value) { ___m_Version_1 = value; } }; struct PlayableHandle_t50DCD240B0400DDAD0822C13E5DBC7AD64DC027A_StaticFields { public: // UnityEngine.Playables.PlayableHandle UnityEngine.Playables.PlayableHandle::m_Null PlayableHandle_t50DCD240B0400DDAD0822C13E5DBC7AD64DC027A ___m_Null_2; public: inline static int32_t get_offset_of_m_Null_2() { return static_cast<int32_t>(offsetof(PlayableHandle_t50DCD240B0400DDAD0822C13E5DBC7AD64DC027A_StaticFields, ___m_Null_2)); } inline PlayableHandle_t50DCD240B0400DDAD0822C13E5DBC7AD64DC027A get_m_Null_2() const { return ___m_Null_2; } inline PlayableHandle_t50DCD240B0400DDAD0822C13E5DBC7AD64DC027A * get_address_of_m_Null_2() { return &___m_Null_2; } inline void set_m_Null_2(PlayableHandle_t50DCD240B0400DDAD0822C13E5DBC7AD64DC027A value) { ___m_Null_2 = value; } }; // Unity.Profiling.ProfilerMarker struct ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 { public: // System.IntPtr Unity.Profiling.ProfilerMarker::m_Ptr intptr_t ___m_Ptr_0; public: inline static int32_t get_offset_of_m_Ptr_0() { return static_cast<int32_t>(offsetof(ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1, ___m_Ptr_0)); } inline intptr_t get_m_Ptr_0() const { return ___m_Ptr_0; } inline intptr_t* get_address_of_m_Ptr_0() { return &___m_Ptr_0; } inline void set_m_Ptr_0(intptr_t value) { ___m_Ptr_0 = value; } }; // UnityEngine.UIElements.PseudoStates struct PseudoStates_t70E0AFDE5E4631CF8D6DC61F4EFC2A897592520F { public: // System.Int32 UnityEngine.UIElements.PseudoStates::value__ int32_t ___value___2; public: inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(PseudoStates_t70E0AFDE5E4631CF8D6DC61F4EFC2A897592520F, ___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; } }; // UnityEngine.RaycastHit struct RaycastHit_t59E5AEC8FE13BFA2ACBB6FFBDB7585FFB7288F89 { public: // UnityEngine.Vector3 UnityEngine.RaycastHit::m_Point Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E ___m_Point_0; // UnityEngine.Vector3 UnityEngine.RaycastHit::m_Normal Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E ___m_Normal_1; // System.UInt32 UnityEngine.RaycastHit::m_FaceID uint32_t ___m_FaceID_2; // System.Single UnityEngine.RaycastHit::m_Distance float ___m_Distance_3; // UnityEngine.Vector2 UnityEngine.RaycastHit::m_UV Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9 ___m_UV_4; // System.Int32 UnityEngine.RaycastHit::m_Collider int32_t ___m_Collider_5; public: inline static int32_t get_offset_of_m_Point_0() { return static_cast<int32_t>(offsetof(RaycastHit_t59E5AEC8FE13BFA2ACBB6FFBDB7585FFB7288F89, ___m_Point_0)); } inline Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E get_m_Point_0() const { return ___m_Point_0; } inline Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E * get_address_of_m_Point_0() { return &___m_Point_0; } inline void set_m_Point_0(Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E value) { ___m_Point_0 = value; } inline static int32_t get_offset_of_m_Normal_1() { return static_cast<int32_t>(offsetof(RaycastHit_t59E5AEC8FE13BFA2ACBB6FFBDB7585FFB7288F89, ___m_Normal_1)); } inline Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E get_m_Normal_1() const { return ___m_Normal_1; } inline Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E * get_address_of_m_Normal_1() { return &___m_Normal_1; } inline void set_m_Normal_1(Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E value) { ___m_Normal_1 = value; } inline static int32_t get_offset_of_m_FaceID_2() { return static_cast<int32_t>(offsetof(RaycastHit_t59E5AEC8FE13BFA2ACBB6FFBDB7585FFB7288F89, ___m_FaceID_2)); } inline uint32_t get_m_FaceID_2() const { return ___m_FaceID_2; } inline uint32_t* get_address_of_m_FaceID_2() { return &___m_FaceID_2; } inline void set_m_FaceID_2(uint32_t value) { ___m_FaceID_2 = value; } inline static int32_t get_offset_of_m_Distance_3() { return static_cast<int32_t>(offsetof(RaycastHit_t59E5AEC8FE13BFA2ACBB6FFBDB7585FFB7288F89, ___m_Distance_3)); } inline float get_m_Distance_3() const { return ___m_Distance_3; } inline float* get_address_of_m_Distance_3() { return &___m_Distance_3; } inline void set_m_Distance_3(float value) { ___m_Distance_3 = value; } inline static int32_t get_offset_of_m_UV_4() { return static_cast<int32_t>(offsetof(RaycastHit_t59E5AEC8FE13BFA2ACBB6FFBDB7585FFB7288F89, ___m_UV_4)); } inline Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9 get_m_UV_4() const { return ___m_UV_4; } inline Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9 * get_address_of_m_UV_4() { return &___m_UV_4; } inline void set_m_UV_4(Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9 value) { ___m_UV_4 = value; } inline static int32_t get_offset_of_m_Collider_5() { return static_cast<int32_t>(offsetof(RaycastHit_t59E5AEC8FE13BFA2ACBB6FFBDB7585FFB7288F89, ___m_Collider_5)); } inline int32_t get_m_Collider_5() const { return ___m_Collider_5; } inline int32_t* get_address_of_m_Collider_5() { return &___m_Collider_5; } inline void set_m_Collider_5(int32_t value) { ___m_Collider_5 = value; } }; // UnityEngine.RaycastHit2D struct RaycastHit2D_t210878DAEBC96C1F69DF9883C454758724A106A4 { public: // UnityEngine.Vector2 UnityEngine.RaycastHit2D::m_Centroid Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9 ___m_Centroid_0; // UnityEngine.Vector2 UnityEngine.RaycastHit2D::m_Point Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9 ___m_Point_1; // UnityEngine.Vector2 UnityEngine.RaycastHit2D::m_Normal Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9 ___m_Normal_2; // System.Single UnityEngine.RaycastHit2D::m_Distance float ___m_Distance_3; // System.Single UnityEngine.RaycastHit2D::m_Fraction float ___m_Fraction_4; // System.Int32 UnityEngine.RaycastHit2D::m_Collider int32_t ___m_Collider_5; public: inline static int32_t get_offset_of_m_Centroid_0() { return static_cast<int32_t>(offsetof(RaycastHit2D_t210878DAEBC96C1F69DF9883C454758724A106A4, ___m_Centroid_0)); } inline Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9 get_m_Centroid_0() const { return ___m_Centroid_0; } inline Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9 * get_address_of_m_Centroid_0() { return &___m_Centroid_0; } inline void set_m_Centroid_0(Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9 value) { ___m_Centroid_0 = value; } inline static int32_t get_offset_of_m_Point_1() { return static_cast<int32_t>(offsetof(RaycastHit2D_t210878DAEBC96C1F69DF9883C454758724A106A4, ___m_Point_1)); } inline Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9 get_m_Point_1() const { return ___m_Point_1; } inline Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9 * get_address_of_m_Point_1() { return &___m_Point_1; } inline void set_m_Point_1(Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9 value) { ___m_Point_1 = value; } inline static int32_t get_offset_of_m_Normal_2() { return static_cast<int32_t>(offsetof(RaycastHit2D_t210878DAEBC96C1F69DF9883C454758724A106A4, ___m_Normal_2)); } inline Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9 get_m_Normal_2() const { return ___m_Normal_2; } inline Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9 * get_address_of_m_Normal_2() { return &___m_Normal_2; } inline void set_m_Normal_2(Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9 value) { ___m_Normal_2 = value; } inline static int32_t get_offset_of_m_Distance_3() { return static_cast<int32_t>(offsetof(RaycastHit2D_t210878DAEBC96C1F69DF9883C454758724A106A4, ___m_Distance_3)); } inline float get_m_Distance_3() const { return ___m_Distance_3; } inline float* get_address_of_m_Distance_3() { return &___m_Distance_3; } inline void set_m_Distance_3(float value) { ___m_Distance_3 = value; } inline static int32_t get_offset_of_m_Fraction_4() { return static_cast<int32_t>(offsetof(RaycastHit2D_t210878DAEBC96C1F69DF9883C454758724A106A4, ___m_Fraction_4)); } inline float get_m_Fraction_4() const { return ___m_Fraction_4; } inline float* get_address_of_m_Fraction_4() { return &___m_Fraction_4; } inline void set_m_Fraction_4(float value) { ___m_Fraction_4 = value; } inline static int32_t get_offset_of_m_Collider_5() { return static_cast<int32_t>(offsetof(RaycastHit2D_t210878DAEBC96C1F69DF9883C454758724A106A4, ___m_Collider_5)); } inline int32_t get_m_Collider_5() const { return ___m_Collider_5; } inline int32_t* get_address_of_m_Collider_5() { return &___m_Collider_5; } inline void set_m_Collider_5(int32_t value) { ___m_Collider_5 = value; } }; // UnityEngine.EventSystems.RaycastResult struct RaycastResult_t9EFDE24B29650BD6DC8A49D954A3769E17146BCE { public: // UnityEngine.GameObject UnityEngine.EventSystems.RaycastResult::m_GameObject GameObject_tC000A2E1A7CF1E10FD7BA08863287C072207C319 * ___m_GameObject_0; // UnityEngine.EventSystems.BaseRaycaster UnityEngine.EventSystems.RaycastResult::module BaseRaycaster_tBC0FB2CBE6D3D40991EC20F689C43F76AD82A876 * ___module_1; // System.Single UnityEngine.EventSystems.RaycastResult::distance float ___distance_2; // System.Single UnityEngine.EventSystems.RaycastResult::index float ___index_3; // System.Int32 UnityEngine.EventSystems.RaycastResult::depth int32_t ___depth_4; // System.Int32 UnityEngine.EventSystems.RaycastResult::sortingLayer int32_t ___sortingLayer_5; // System.Int32 UnityEngine.EventSystems.RaycastResult::sortingOrder int32_t ___sortingOrder_6; // UnityEngine.Vector3 UnityEngine.EventSystems.RaycastResult::worldPosition Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E ___worldPosition_7; // UnityEngine.Vector3 UnityEngine.EventSystems.RaycastResult::worldNormal Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E ___worldNormal_8; // UnityEngine.Vector2 UnityEngine.EventSystems.RaycastResult::screenPosition Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9 ___screenPosition_9; // System.Int32 UnityEngine.EventSystems.RaycastResult::displayIndex int32_t ___displayIndex_10; public: inline static int32_t get_offset_of_m_GameObject_0() { return static_cast<int32_t>(offsetof(RaycastResult_t9EFDE24B29650BD6DC8A49D954A3769E17146BCE, ___m_GameObject_0)); } inline GameObject_tC000A2E1A7CF1E10FD7BA08863287C072207C319 * get_m_GameObject_0() const { return ___m_GameObject_0; } inline GameObject_tC000A2E1A7CF1E10FD7BA08863287C072207C319 ** get_address_of_m_GameObject_0() { return &___m_GameObject_0; } inline void set_m_GameObject_0(GameObject_tC000A2E1A7CF1E10FD7BA08863287C072207C319 * value) { ___m_GameObject_0 = value; Il2CppCodeGenWriteBarrier((void**)(&___m_GameObject_0), (void*)value); } inline static int32_t get_offset_of_module_1() { return static_cast<int32_t>(offsetof(RaycastResult_t9EFDE24B29650BD6DC8A49D954A3769E17146BCE, ___module_1)); } inline BaseRaycaster_tBC0FB2CBE6D3D40991EC20F689C43F76AD82A876 * get_module_1() const { return ___module_1; } inline BaseRaycaster_tBC0FB2CBE6D3D40991EC20F689C43F76AD82A876 ** get_address_of_module_1() { return &___module_1; } inline void set_module_1(BaseRaycaster_tBC0FB2CBE6D3D40991EC20F689C43F76AD82A876 * value) { ___module_1 = value; Il2CppCodeGenWriteBarrier((void**)(&___module_1), (void*)value); } inline static int32_t get_offset_of_distance_2() { return static_cast<int32_t>(offsetof(RaycastResult_t9EFDE24B29650BD6DC8A49D954A3769E17146BCE, ___distance_2)); } inline float get_distance_2() const { return ___distance_2; } inline float* get_address_of_distance_2() { return &___distance_2; } inline void set_distance_2(float value) { ___distance_2 = value; } inline static int32_t get_offset_of_index_3() { return static_cast<int32_t>(offsetof(RaycastResult_t9EFDE24B29650BD6DC8A49D954A3769E17146BCE, ___index_3)); } inline float get_index_3() const { return ___index_3; } inline float* get_address_of_index_3() { return &___index_3; } inline void set_index_3(float value) { ___index_3 = value; } inline static int32_t get_offset_of_depth_4() { return static_cast<int32_t>(offsetof(RaycastResult_t9EFDE24B29650BD6DC8A49D954A3769E17146BCE, ___depth_4)); } inline int32_t get_depth_4() const { return ___depth_4; } inline int32_t* get_address_of_depth_4() { return &___depth_4; } inline void set_depth_4(int32_t value) { ___depth_4 = value; } inline static int32_t get_offset_of_sortingLayer_5() { return static_cast<int32_t>(offsetof(RaycastResult_t9EFDE24B29650BD6DC8A49D954A3769E17146BCE, ___sortingLayer_5)); } inline int32_t get_sortingLayer_5() const { return ___sortingLayer_5; } inline int32_t* get_address_of_sortingLayer_5() { return &___sortingLayer_5; } inline void set_sortingLayer_5(int32_t value) { ___sortingLayer_5 = value; } inline static int32_t get_offset_of_sortingOrder_6() { return static_cast<int32_t>(offsetof(RaycastResult_t9EFDE24B29650BD6DC8A49D954A3769E17146BCE, ___sortingOrder_6)); } inline int32_t get_sortingOrder_6() const { return ___sortingOrder_6; } inline int32_t* get_address_of_sortingOrder_6() { return &___sortingOrder_6; } inline void set_sortingOrder_6(int32_t value) { ___sortingOrder_6 = value; } inline static int32_t get_offset_of_worldPosition_7() { return static_cast<int32_t>(offsetof(RaycastResult_t9EFDE24B29650BD6DC8A49D954A3769E17146BCE, ___worldPosition_7)); } inline Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E get_worldPosition_7() const { return ___worldPosition_7; } inline Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E * get_address_of_worldPosition_7() { return &___worldPosition_7; } inline void set_worldPosition_7(Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E value) { ___worldPosition_7 = value; } inline static int32_t get_offset_of_worldNormal_8() { return static_cast<int32_t>(offsetof(RaycastResult_t9EFDE24B29650BD6DC8A49D954A3769E17146BCE, ___worldNormal_8)); } inline Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E get_worldNormal_8() const { return ___worldNormal_8; } inline Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E * get_address_of_worldNormal_8() { return &___worldNormal_8; } inline void set_worldNormal_8(Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E value) { ___worldNormal_8 = value; } inline static int32_t get_offset_of_screenPosition_9() { return static_cast<int32_t>(offsetof(RaycastResult_t9EFDE24B29650BD6DC8A49D954A3769E17146BCE, ___screenPosition_9)); } inline Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9 get_screenPosition_9() const { return ___screenPosition_9; } inline Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9 * get_address_of_screenPosition_9() { return &___screenPosition_9; } inline void set_screenPosition_9(Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9 value) { ___screenPosition_9 = value; } inline static int32_t get_offset_of_displayIndex_10() { return static_cast<int32_t>(offsetof(RaycastResult_t9EFDE24B29650BD6DC8A49D954A3769E17146BCE, ___displayIndex_10)); } inline int32_t get_displayIndex_10() const { return ___displayIndex_10; } inline int32_t* get_address_of_displayIndex_10() { return &___displayIndex_10; } inline void set_displayIndex_10(int32_t value) { ___displayIndex_10 = value; } }; // Native definition for P/Invoke marshalling of UnityEngine.EventSystems.RaycastResult struct RaycastResult_t9EFDE24B29650BD6DC8A49D954A3769E17146BCE_marshaled_pinvoke { GameObject_tC000A2E1A7CF1E10FD7BA08863287C072207C319 * ___m_GameObject_0; BaseRaycaster_tBC0FB2CBE6D3D40991EC20F689C43F76AD82A876 * ___module_1; float ___distance_2; float ___index_3; int32_t ___depth_4; int32_t ___sortingLayer_5; int32_t ___sortingOrder_6; Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E ___worldPosition_7; Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E ___worldNormal_8; Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9 ___screenPosition_9; int32_t ___displayIndex_10; }; // Native definition for COM marshalling of UnityEngine.EventSystems.RaycastResult struct RaycastResult_t9EFDE24B29650BD6DC8A49D954A3769E17146BCE_marshaled_com { GameObject_tC000A2E1A7CF1E10FD7BA08863287C072207C319 * ___m_GameObject_0; BaseRaycaster_tBC0FB2CBE6D3D40991EC20F689C43F76AD82A876 * ___module_1; float ___distance_2; float ___index_3; int32_t ___depth_4; int32_t ___sortingLayer_5; int32_t ___sortingOrder_6; Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E ___worldPosition_7; Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E ___worldNormal_8; Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9 ___screenPosition_9; int32_t ___displayIndex_10; }; // System.RuntimeFieldHandle struct RuntimeFieldHandle_t7BE65FC857501059EBAC9772C93B02CD413D9C96 { public: // System.IntPtr System.RuntimeFieldHandle::value intptr_t ___value_0; public: inline static int32_t get_offset_of_value_0() { return static_cast<int32_t>(offsetof(RuntimeFieldHandle_t7BE65FC857501059EBAC9772C93B02CD413D9C96, ___value_0)); } inline intptr_t get_value_0() const { return ___value_0; } inline intptr_t* get_address_of_value_0() { return &___value_0; } inline void set_value_0(intptr_t value) { ___value_0 = value; } }; // System.RuntimeMethodHandle struct RuntimeMethodHandle_t8974037C4FE5F6C3AE7D3731057CDB2891A21C9A { public: // System.IntPtr System.RuntimeMethodHandle::value intptr_t ___value_0; public: inline static int32_t get_offset_of_value_0() { return static_cast<int32_t>(offsetof(RuntimeMethodHandle_t8974037C4FE5F6C3AE7D3731057CDB2891A21C9A, ___value_0)); } inline intptr_t get_value_0() const { return ___value_0; } inline intptr_t* get_address_of_value_0() { return &___value_0; } inline void set_value_0(intptr_t value) { ___value_0 = value; } }; // System.RuntimeTypeHandle struct RuntimeTypeHandle_tC33965ADA3E041E0C94AF05E5CB527B56482CEF9 { public: // System.IntPtr System.RuntimeTypeHandle::value intptr_t ___value_0; public: inline static int32_t get_offset_of_value_0() { return static_cast<int32_t>(offsetof(RuntimeTypeHandle_tC33965ADA3E041E0C94AF05E5CB527B56482CEF9, ___value_0)); } inline intptr_t get_value_0() const { return ___value_0; } inline intptr_t* get_address_of_value_0() { return &___value_0; } inline void set_value_0(intptr_t value) { ___value_0 = value; } }; // UnityEngine.Rendering.ScriptableRenderContext struct ScriptableRenderContext_tEDDDFFA7401E6860E1D82DFD779B7A101939F52D { public: // System.IntPtr UnityEngine.Rendering.ScriptableRenderContext::m_Ptr intptr_t ___m_Ptr_1; public: inline static int32_t get_offset_of_m_Ptr_1() { return static_cast<int32_t>(offsetof(ScriptableRenderContext_tEDDDFFA7401E6860E1D82DFD779B7A101939F52D, ___m_Ptr_1)); } inline intptr_t get_m_Ptr_1() const { return ___m_Ptr_1; } inline intptr_t* get_address_of_m_Ptr_1() { return &___m_Ptr_1; } inline void set_m_Ptr_1(intptr_t value) { ___m_Ptr_1 = value; } }; struct ScriptableRenderContext_tEDDDFFA7401E6860E1D82DFD779B7A101939F52D_StaticFields { public: // UnityEngine.Rendering.ShaderTagId UnityEngine.Rendering.ScriptableRenderContext::kRenderTypeTag ShaderTagId_t51914C89B8119195DACD234D1A624AAB7A07F795 ___kRenderTypeTag_0; public: inline static int32_t get_offset_of_kRenderTypeTag_0() { return static_cast<int32_t>(offsetof(ScriptableRenderContext_tEDDDFFA7401E6860E1D82DFD779B7A101939F52D_StaticFields, ___kRenderTypeTag_0)); } inline ShaderTagId_t51914C89B8119195DACD234D1A624AAB7A07F795 get_kRenderTypeTag_0() const { return ___kRenderTypeTag_0; } inline ShaderTagId_t51914C89B8119195DACD234D1A624AAB7A07F795 * get_address_of_kRenderTypeTag_0() { return &___kRenderTypeTag_0; } inline void set_kRenderTypeTag_0(ShaderTagId_t51914C89B8119195DACD234D1A624AAB7A07F795 value) { ___kRenderTypeTag_0 = value; } }; // System.Runtime.Serialization.StreamingContextStates struct StreamingContextStates_tF4C7FE6D6121BD4C67699869C8269A60B36B42C3 { public: // System.Int32 System.Runtime.Serialization.StreamingContextStates::value__ int32_t ___value___2; public: inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(StreamingContextStates_tF4C7FE6D6121BD4C67699869C8269A60B36B42C3, ___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; } }; // UnityEngine.UIElements.StyleKeyword struct StyleKeyword_t01A121DD5B4904AB0EA0BFA6E26159EE9AF8B303 { public: // System.Int32 UnityEngine.UIElements.StyleKeyword::value__ int32_t ___value___2; public: inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(StyleKeyword_t01A121DD5B4904AB0EA0BFA6E26159EE9AF8B303, ___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; } }; // UnityEngine.UIElements.StyleSheets.StylePropertyId struct StylePropertyId_t595C8AB8A23E2DDDD0BCF5993E011BBFEA1DF59F { public: // System.Int32 UnityEngine.UIElements.StyleSheets.StylePropertyId::value__ int32_t ___value___2; public: inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(StylePropertyId_t595C8AB8A23E2DDDD0BCF5993E011BBFEA1DF59F, ___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; } }; // UnityEngine.UIElements.StyleSelectorType struct StyleSelectorType_t076854E4D0D1DE5408564915375B2D4AF5F13BD7 { public: // System.Int32 UnityEngine.UIElements.StyleSelectorType::value__ int32_t ___value___2; public: inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(StyleSelectorType_t076854E4D0D1DE5408564915375B2D4AF5F13BD7, ___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; } }; // UnityEngine.UIElements.StyleValueType struct StyleValueType_t41CD4C2FFE2B4D2AFCB10F36A6D685A60517E32F { public: // System.Int32 UnityEngine.UIElements.StyleValueType::value__ int32_t ___value___2; public: inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(StyleValueType_t41CD4C2FFE2B4D2AFCB10F36A6D685A60517E32F, ___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; } }; // UnityEngine.UIElements.TextShadow struct TextShadow_t9399EE93D4D61794CD4380D5D93C98BCA9972233 { public: // UnityEngine.Vector2 UnityEngine.UIElements.TextShadow::offset Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9 ___offset_0; // System.Single UnityEngine.UIElements.TextShadow::blurRadius float ___blurRadius_1; // UnityEngine.Color UnityEngine.UIElements.TextShadow::color Color_tF40DAF76C04FFECF3FE6024F85A294741C9CC659 ___color_2; public: inline static int32_t get_offset_of_offset_0() { return static_cast<int32_t>(offsetof(TextShadow_t9399EE93D4D61794CD4380D5D93C98BCA9972233, ___offset_0)); } inline Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9 get_offset_0() const { return ___offset_0; } inline Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9 * get_address_of_offset_0() { return &___offset_0; } inline void set_offset_0(Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9 value) { ___offset_0 = value; } inline static int32_t get_offset_of_blurRadius_1() { return static_cast<int32_t>(offsetof(TextShadow_t9399EE93D4D61794CD4380D5D93C98BCA9972233, ___blurRadius_1)); } inline float get_blurRadius_1() const { return ___blurRadius_1; } inline float* get_address_of_blurRadius_1() { return &___blurRadius_1; } inline void set_blurRadius_1(float value) { ___blurRadius_1 = value; } inline static int32_t get_offset_of_color_2() { return static_cast<int32_t>(offsetof(TextShadow_t9399EE93D4D61794CD4380D5D93C98BCA9972233, ___color_2)); } inline Color_tF40DAF76C04FFECF3FE6024F85A294741C9CC659 get_color_2() const { return ___color_2; } inline Color_tF40DAF76C04FFECF3FE6024F85A294741C9CC659 * get_address_of_color_2() { return &___color_2; } inline void set_color_2(Color_tF40DAF76C04FFECF3FE6024F85A294741C9CC659 value) { ___color_2 = value; } }; // UnityEngine.TextureFormat struct TextureFormat_tBED5388A0445FE978F97B41D247275B036407932 { public: // System.Int32 UnityEngine.TextureFormat::value__ int32_t ___value___2; public: inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(TextureFormat_tBED5388A0445FE978F97B41D247275B036407932, ___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.TimeSpan struct TimeSpan_t4F6A0E13E703B65365CFCAB58E05EE0AF3EE6203 { public: // System.Int64 System.TimeSpan::_ticks int64_t ____ticks_22; public: inline static int32_t get_offset_of__ticks_22() { return static_cast<int32_t>(offsetof(TimeSpan_t4F6A0E13E703B65365CFCAB58E05EE0AF3EE6203, ____ticks_22)); } inline int64_t get__ticks_22() const { return ____ticks_22; } inline int64_t* get_address_of__ticks_22() { return &____ticks_22; } inline void set__ticks_22(int64_t value) { ____ticks_22 = value; } }; struct TimeSpan_t4F6A0E13E703B65365CFCAB58E05EE0AF3EE6203_StaticFields { public: // System.TimeSpan System.TimeSpan::Zero TimeSpan_t4F6A0E13E703B65365CFCAB58E05EE0AF3EE6203 ___Zero_19; // System.TimeSpan System.TimeSpan::MaxValue TimeSpan_t4F6A0E13E703B65365CFCAB58E05EE0AF3EE6203 ___MaxValue_20; // System.TimeSpan System.TimeSpan::MinValue TimeSpan_t4F6A0E13E703B65365CFCAB58E05EE0AF3EE6203 ___MinValue_21; // System.Boolean modreq(System.Runtime.CompilerServices.IsVolatile) System.TimeSpan::_legacyConfigChecked bool ____legacyConfigChecked_23; // System.Boolean modreq(System.Runtime.CompilerServices.IsVolatile) System.TimeSpan::_legacyMode bool ____legacyMode_24; public: inline static int32_t get_offset_of_Zero_19() { return static_cast<int32_t>(offsetof(TimeSpan_t4F6A0E13E703B65365CFCAB58E05EE0AF3EE6203_StaticFields, ___Zero_19)); } inline TimeSpan_t4F6A0E13E703B65365CFCAB58E05EE0AF3EE6203 get_Zero_19() const { return ___Zero_19; } inline TimeSpan_t4F6A0E13E703B65365CFCAB58E05EE0AF3EE6203 * get_address_of_Zero_19() { return &___Zero_19; } inline void set_Zero_19(TimeSpan_t4F6A0E13E703B65365CFCAB58E05EE0AF3EE6203 value) { ___Zero_19 = value; } inline static int32_t get_offset_of_MaxValue_20() { return static_cast<int32_t>(offsetof(TimeSpan_t4F6A0E13E703B65365CFCAB58E05EE0AF3EE6203_StaticFields, ___MaxValue_20)); } inline TimeSpan_t4F6A0E13E703B65365CFCAB58E05EE0AF3EE6203 get_MaxValue_20() const { return ___MaxValue_20; } inline TimeSpan_t4F6A0E13E703B65365CFCAB58E05EE0AF3EE6203 * get_address_of_MaxValue_20() { return &___MaxValue_20; } inline void set_MaxValue_20(TimeSpan_t4F6A0E13E703B65365CFCAB58E05EE0AF3EE6203 value) { ___MaxValue_20 = value; } inline static int32_t get_offset_of_MinValue_21() { return static_cast<int32_t>(offsetof(TimeSpan_t4F6A0E13E703B65365CFCAB58E05EE0AF3EE6203_StaticFields, ___MinValue_21)); } inline TimeSpan_t4F6A0E13E703B65365CFCAB58E05EE0AF3EE6203 get_MinValue_21() const { return ___MinValue_21; } inline TimeSpan_t4F6A0E13E703B65365CFCAB58E05EE0AF3EE6203 * get_address_of_MinValue_21() { return &___MinValue_21; } inline void set_MinValue_21(TimeSpan_t4F6A0E13E703B65365CFCAB58E05EE0AF3EE6203 value) { ___MinValue_21 = value; } inline static int32_t get_offset_of__legacyConfigChecked_23() { return static_cast<int32_t>(offsetof(TimeSpan_t4F6A0E13E703B65365CFCAB58E05EE0AF3EE6203_StaticFields, ____legacyConfigChecked_23)); } inline bool get__legacyConfigChecked_23() const { return ____legacyConfigChecked_23; } inline bool* get_address_of__legacyConfigChecked_23() { return &____legacyConfigChecked_23; } inline void set__legacyConfigChecked_23(bool value) { ____legacyConfigChecked_23 = value; } inline static int32_t get_offset_of__legacyMode_24() { return static_cast<int32_t>(offsetof(TimeSpan_t4F6A0E13E703B65365CFCAB58E05EE0AF3EE6203_StaticFields, ____legacyMode_24)); } inline bool get__legacyMode_24() const { return ____legacyMode_24; } inline bool* get_address_of__legacyMode_24() { return &____legacyMode_24; } inline void set__legacyMode_24(bool value) { ____legacyMode_24 = value; } }; // UnityEngine.TouchPhase struct TouchPhase_tB52B8A497547FB9575DE7975D13AC7D64C3A958A { public: // System.Int32 UnityEngine.TouchPhase::value__ int32_t ___value___2; public: inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(TouchPhase_tB52B8A497547FB9575DE7975D13AC7D64C3A958A, ___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; } }; // UnityEngine.TouchType struct TouchType_t2EF726465ABD45681A6686BAC426814AA087C20F { public: // System.Int32 UnityEngine.TouchType::value__ int32_t ___value___2; public: inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(TouchType_t2EF726465ABD45681A6686BAC426814AA087C20F, ___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; } }; // UnityEngine.UICharInfo struct UICharInfo_tDEA65B831FAD06D1E9B10A6088E05C6D615B089A { public: // UnityEngine.Vector2 UnityEngine.UICharInfo::cursorPos Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9 ___cursorPos_0; // System.Single UnityEngine.UICharInfo::charWidth float ___charWidth_1; public: inline static int32_t get_offset_of_cursorPos_0() { return static_cast<int32_t>(offsetof(UICharInfo_tDEA65B831FAD06D1E9B10A6088E05C6D615B089A, ___cursorPos_0)); } inline Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9 get_cursorPos_0() const { return ___cursorPos_0; } inline Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9 * get_address_of_cursorPos_0() { return &___cursorPos_0; } inline void set_cursorPos_0(Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9 value) { ___cursorPos_0 = value; } inline static int32_t get_offset_of_charWidth_1() { return static_cast<int32_t>(offsetof(UICharInfo_tDEA65B831FAD06D1E9B10A6088E05C6D615B089A, ___charWidth_1)); } inline float get_charWidth_1() const { return ___charWidth_1; } inline float* get_address_of_charWidth_1() { return &___charWidth_1; } inline void set_charWidth_1(float value) { ___charWidth_1 = value; } }; // UnityEngine.UIVertex struct UIVertex_tD94AAC5F0B42DBC441AAA8ADBFCFF9E5C320C03A { public: // UnityEngine.Vector3 UnityEngine.UIVertex::position Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E ___position_0; // UnityEngine.Vector3 UnityEngine.UIVertex::normal Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E ___normal_1; // UnityEngine.Vector4 UnityEngine.UIVertex::tangent Vector4_tA56A37FC5661BCC89C3DDC24BE12BA5BCB6A02C7 ___tangent_2; // UnityEngine.Color32 UnityEngine.UIVertex::color Color32_tDB54A78627878A7D2DE42BB028D64306A18E858D ___color_3; // UnityEngine.Vector4 UnityEngine.UIVertex::uv0 Vector4_tA56A37FC5661BCC89C3DDC24BE12BA5BCB6A02C7 ___uv0_4; // UnityEngine.Vector4 UnityEngine.UIVertex::uv1 Vector4_tA56A37FC5661BCC89C3DDC24BE12BA5BCB6A02C7 ___uv1_5; // UnityEngine.Vector4 UnityEngine.UIVertex::uv2 Vector4_tA56A37FC5661BCC89C3DDC24BE12BA5BCB6A02C7 ___uv2_6; // UnityEngine.Vector4 UnityEngine.UIVertex::uv3 Vector4_tA56A37FC5661BCC89C3DDC24BE12BA5BCB6A02C7 ___uv3_7; public: inline static int32_t get_offset_of_position_0() { return static_cast<int32_t>(offsetof(UIVertex_tD94AAC5F0B42DBC441AAA8ADBFCFF9E5C320C03A, ___position_0)); } inline Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E get_position_0() const { return ___position_0; } inline Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E * get_address_of_position_0() { return &___position_0; } inline void set_position_0(Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E value) { ___position_0 = value; } inline static int32_t get_offset_of_normal_1() { return static_cast<int32_t>(offsetof(UIVertex_tD94AAC5F0B42DBC441AAA8ADBFCFF9E5C320C03A, ___normal_1)); } inline Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E get_normal_1() const { return ___normal_1; } inline Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E * get_address_of_normal_1() { return &___normal_1; } inline void set_normal_1(Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E value) { ___normal_1 = value; } inline static int32_t get_offset_of_tangent_2() { return static_cast<int32_t>(offsetof(UIVertex_tD94AAC5F0B42DBC441AAA8ADBFCFF9E5C320C03A, ___tangent_2)); } inline Vector4_tA56A37FC5661BCC89C3DDC24BE12BA5BCB6A02C7 get_tangent_2() const { return ___tangent_2; } inline Vector4_tA56A37FC5661BCC89C3DDC24BE12BA5BCB6A02C7 * get_address_of_tangent_2() { return &___tangent_2; } inline void set_tangent_2(Vector4_tA56A37FC5661BCC89C3DDC24BE12BA5BCB6A02C7 value) { ___tangent_2 = value; } inline static int32_t get_offset_of_color_3() { return static_cast<int32_t>(offsetof(UIVertex_tD94AAC5F0B42DBC441AAA8ADBFCFF9E5C320C03A, ___color_3)); } inline Color32_tDB54A78627878A7D2DE42BB028D64306A18E858D get_color_3() const { return ___color_3; } inline Color32_tDB54A78627878A7D2DE42BB028D64306A18E858D * get_address_of_color_3() { return &___color_3; } inline void set_color_3(Color32_tDB54A78627878A7D2DE42BB028D64306A18E858D value) { ___color_3 = value; } inline static int32_t get_offset_of_uv0_4() { return static_cast<int32_t>(offsetof(UIVertex_tD94AAC5F0B42DBC441AAA8ADBFCFF9E5C320C03A, ___uv0_4)); } inline Vector4_tA56A37FC5661BCC89C3DDC24BE12BA5BCB6A02C7 get_uv0_4() const { return ___uv0_4; } inline Vector4_tA56A37FC5661BCC89C3DDC24BE12BA5BCB6A02C7 * get_address_of_uv0_4() { return &___uv0_4; } inline void set_uv0_4(Vector4_tA56A37FC5661BCC89C3DDC24BE12BA5BCB6A02C7 value) { ___uv0_4 = value; } inline static int32_t get_offset_of_uv1_5() { return static_cast<int32_t>(offsetof(UIVertex_tD94AAC5F0B42DBC441AAA8ADBFCFF9E5C320C03A, ___uv1_5)); } inline Vector4_tA56A37FC5661BCC89C3DDC24BE12BA5BCB6A02C7 get_uv1_5() const { return ___uv1_5; } inline Vector4_tA56A37FC5661BCC89C3DDC24BE12BA5BCB6A02C7 * get_address_of_uv1_5() { return &___uv1_5; } inline void set_uv1_5(Vector4_tA56A37FC5661BCC89C3DDC24BE12BA5BCB6A02C7 value) { ___uv1_5 = value; } inline static int32_t get_offset_of_uv2_6() { return static_cast<int32_t>(offsetof(UIVertex_tD94AAC5F0B42DBC441AAA8ADBFCFF9E5C320C03A, ___uv2_6)); } inline Vector4_tA56A37FC5661BCC89C3DDC24BE12BA5BCB6A02C7 get_uv2_6() const { return ___uv2_6; } inline Vector4_tA56A37FC5661BCC89C3DDC24BE12BA5BCB6A02C7 * get_address_of_uv2_6() { return &___uv2_6; } inline void set_uv2_6(Vector4_tA56A37FC5661BCC89C3DDC24BE12BA5BCB6A02C7 value) { ___uv2_6 = value; } inline static int32_t get_offset_of_uv3_7() { return static_cast<int32_t>(offsetof(UIVertex_tD94AAC5F0B42DBC441AAA8ADBFCFF9E5C320C03A, ___uv3_7)); } inline Vector4_tA56A37FC5661BCC89C3DDC24BE12BA5BCB6A02C7 get_uv3_7() const { return ___uv3_7; } inline Vector4_tA56A37FC5661BCC89C3DDC24BE12BA5BCB6A02C7 * get_address_of_uv3_7() { return &___uv3_7; } inline void set_uv3_7(Vector4_tA56A37FC5661BCC89C3DDC24BE12BA5BCB6A02C7 value) { ___uv3_7 = value; } }; struct UIVertex_tD94AAC5F0B42DBC441AAA8ADBFCFF9E5C320C03A_StaticFields { public: // UnityEngine.Color32 UnityEngine.UIVertex::s_DefaultColor Color32_tDB54A78627878A7D2DE42BB028D64306A18E858D ___s_DefaultColor_8; // UnityEngine.Vector4 UnityEngine.UIVertex::s_DefaultTangent Vector4_tA56A37FC5661BCC89C3DDC24BE12BA5BCB6A02C7 ___s_DefaultTangent_9; // UnityEngine.UIVertex UnityEngine.UIVertex::simpleVert UIVertex_tD94AAC5F0B42DBC441AAA8ADBFCFF9E5C320C03A ___simpleVert_10; public: inline static int32_t get_offset_of_s_DefaultColor_8() { return static_cast<int32_t>(offsetof(UIVertex_tD94AAC5F0B42DBC441AAA8ADBFCFF9E5C320C03A_StaticFields, ___s_DefaultColor_8)); } inline Color32_tDB54A78627878A7D2DE42BB028D64306A18E858D get_s_DefaultColor_8() const { return ___s_DefaultColor_8; } inline Color32_tDB54A78627878A7D2DE42BB028D64306A18E858D * get_address_of_s_DefaultColor_8() { return &___s_DefaultColor_8; } inline void set_s_DefaultColor_8(Color32_tDB54A78627878A7D2DE42BB028D64306A18E858D value) { ___s_DefaultColor_8 = value; } inline static int32_t get_offset_of_s_DefaultTangent_9() { return static_cast<int32_t>(offsetof(UIVertex_tD94AAC5F0B42DBC441AAA8ADBFCFF9E5C320C03A_StaticFields, ___s_DefaultTangent_9)); } inline Vector4_tA56A37FC5661BCC89C3DDC24BE12BA5BCB6A02C7 get_s_DefaultTangent_9() const { return ___s_DefaultTangent_9; } inline Vector4_tA56A37FC5661BCC89C3DDC24BE12BA5BCB6A02C7 * get_address_of_s_DefaultTangent_9() { return &___s_DefaultTangent_9; } inline void set_s_DefaultTangent_9(Vector4_tA56A37FC5661BCC89C3DDC24BE12BA5BCB6A02C7 value) { ___s_DefaultTangent_9 = value; } inline static int32_t get_offset_of_simpleVert_10() { return static_cast<int32_t>(offsetof(UIVertex_tD94AAC5F0B42DBC441AAA8ADBFCFF9E5C320C03A_StaticFields, ___simpleVert_10)); } inline UIVertex_tD94AAC5F0B42DBC441AAA8ADBFCFF9E5C320C03A get_simpleVert_10() const { return ___simpleVert_10; } inline UIVertex_tD94AAC5F0B42DBC441AAA8ADBFCFF9E5C320C03A * get_address_of_simpleVert_10() { return &___simpleVert_10; } inline void set_simpleVert_10(UIVertex_tD94AAC5F0B42DBC441AAA8ADBFCFF9E5C320C03A value) { ___simpleVert_10 = value; } }; // UnityEngine.Camera/RenderRequestMode struct RenderRequestMode_tCB120B82DED523ADBA2D6093A1A8ABF17D94A313 { public: // System.Int32 UnityEngine.Camera/RenderRequestMode::value__ int32_t ___value___2; public: inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(RenderRequestMode_tCB120B82DED523ADBA2D6093A1A8ABF17D94A313, ___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; } }; // UnityEngine.Camera/RenderRequestOutputSpace struct RenderRequestOutputSpace_t8EB93E4720B2D1BAB624A04ADB473C37C7F3D6A5 { public: // System.Int32 UnityEngine.Camera/RenderRequestOutputSpace::value__ int32_t ___value___2; public: inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(RenderRequestOutputSpace_t8EB93E4720B2D1BAB624A04ADB473C37C7F3D6A5, ___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; } }; // UnityEngine.UIElements.Length/Unit struct Unit_t404BDC0B9D436EDDCC7891B48C4DCE2FCF7098AB { public: // System.Int32 UnityEngine.UIElements.Length/Unit::value__ int32_t ___value___2; public: inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(Unit_t404BDC0B9D436EDDCC7891B48C4DCE2FCF7098AB, ___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; } }; // UnityEngine.UI.Navigation/Mode struct Mode_t3113FDF05158BBA1DFC78D7F69E4C1D25135CB0F { public: // System.Int32 UnityEngine.UI.Navigation/Mode::value__ int32_t ___value___2; public: inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(Mode_t3113FDF05158BBA1DFC78D7F69E4C1D25135CB0F, ___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; } }; // Unity.Collections.NativeArray`1<UnityEngine.Rendering.BatchVisibility> struct NativeArray_1_t18D233A2E30E28048C1252473AFD0799557294DA { public: // System.Void* Unity.Collections.NativeArray`1::m_Buffer void* ___m_Buffer_0; // System.Int32 Unity.Collections.NativeArray`1::m_Length int32_t ___m_Length_1; // Unity.Collections.Allocator Unity.Collections.NativeArray`1::m_AllocatorLabel int32_t ___m_AllocatorLabel_2; public: inline static int32_t get_offset_of_m_Buffer_0() { return static_cast<int32_t>(offsetof(NativeArray_1_t18D233A2E30E28048C1252473AFD0799557294DA, ___m_Buffer_0)); } inline void* get_m_Buffer_0() const { return ___m_Buffer_0; } inline void** get_address_of_m_Buffer_0() { return &___m_Buffer_0; } inline void set_m_Buffer_0(void* value) { ___m_Buffer_0 = value; } inline static int32_t get_offset_of_m_Length_1() { return static_cast<int32_t>(offsetof(NativeArray_1_t18D233A2E30E28048C1252473AFD0799557294DA, ___m_Length_1)); } inline int32_t get_m_Length_1() const { return ___m_Length_1; } inline int32_t* get_address_of_m_Length_1() { return &___m_Length_1; } inline void set_m_Length_1(int32_t value) { ___m_Length_1 = value; } inline static int32_t get_offset_of_m_AllocatorLabel_2() { return static_cast<int32_t>(offsetof(NativeArray_1_t18D233A2E30E28048C1252473AFD0799557294DA, ___m_AllocatorLabel_2)); } inline int32_t get_m_AllocatorLabel_2() const { return ___m_AllocatorLabel_2; } inline int32_t* get_address_of_m_AllocatorLabel_2() { return &___m_AllocatorLabel_2; } inline void set_m_AllocatorLabel_2(int32_t value) { ___m_AllocatorLabel_2 = value; } }; // Unity.Collections.NativeArray`1<System.Byte> struct NativeArray_1_t3C2855C5B238E8C6739D4C17833F244B95C0F785 { public: // System.Void* Unity.Collections.NativeArray`1::m_Buffer void* ___m_Buffer_0; // System.Int32 Unity.Collections.NativeArray`1::m_Length int32_t ___m_Length_1; // Unity.Collections.Allocator Unity.Collections.NativeArray`1::m_AllocatorLabel int32_t ___m_AllocatorLabel_2; public: inline static int32_t get_offset_of_m_Buffer_0() { return static_cast<int32_t>(offsetof(NativeArray_1_t3C2855C5B238E8C6739D4C17833F244B95C0F785, ___m_Buffer_0)); } inline void* get_m_Buffer_0() const { return ___m_Buffer_0; } inline void** get_address_of_m_Buffer_0() { return &___m_Buffer_0; } inline void set_m_Buffer_0(void* value) { ___m_Buffer_0 = value; } inline static int32_t get_offset_of_m_Length_1() { return static_cast<int32_t>(offsetof(NativeArray_1_t3C2855C5B238E8C6739D4C17833F244B95C0F785, ___m_Length_1)); } inline int32_t get_m_Length_1() const { return ___m_Length_1; } inline int32_t* get_address_of_m_Length_1() { return &___m_Length_1; } inline void set_m_Length_1(int32_t value) { ___m_Length_1 = value; } inline static int32_t get_offset_of_m_AllocatorLabel_2() { return static_cast<int32_t>(offsetof(NativeArray_1_t3C2855C5B238E8C6739D4C17833F244B95C0F785, ___m_AllocatorLabel_2)); } inline int32_t get_m_AllocatorLabel_2() const { return ___m_AllocatorLabel_2; } inline int32_t* get_address_of_m_AllocatorLabel_2() { return &___m_AllocatorLabel_2; } inline void set_m_AllocatorLabel_2(int32_t value) { ___m_AllocatorLabel_2 = value; } }; // Unity.Collections.NativeArray`1<System.Int32> struct NativeArray_1_tD60079F06B473C85CF6C2BB4F2D203F38191AE99 { public: // System.Void* Unity.Collections.NativeArray`1::m_Buffer void* ___m_Buffer_0; // System.Int32 Unity.Collections.NativeArray`1::m_Length int32_t ___m_Length_1; // Unity.Collections.Allocator Unity.Collections.NativeArray`1::m_AllocatorLabel int32_t ___m_AllocatorLabel_2; public: inline static int32_t get_offset_of_m_Buffer_0() { return static_cast<int32_t>(offsetof(NativeArray_1_tD60079F06B473C85CF6C2BB4F2D203F38191AE99, ___m_Buffer_0)); } inline void* get_m_Buffer_0() const { return ___m_Buffer_0; } inline void** get_address_of_m_Buffer_0() { return &___m_Buffer_0; } inline void set_m_Buffer_0(void* value) { ___m_Buffer_0 = value; } inline static int32_t get_offset_of_m_Length_1() { return static_cast<int32_t>(offsetof(NativeArray_1_tD60079F06B473C85CF6C2BB4F2D203F38191AE99, ___m_Length_1)); } inline int32_t get_m_Length_1() const { return ___m_Length_1; } inline int32_t* get_address_of_m_Length_1() { return &___m_Length_1; } inline void set_m_Length_1(int32_t value) { ___m_Length_1 = value; } inline static int32_t get_offset_of_m_AllocatorLabel_2() { return static_cast<int32_t>(offsetof(NativeArray_1_tD60079F06B473C85CF6C2BB4F2D203F38191AE99, ___m_AllocatorLabel_2)); } inline int32_t get_m_AllocatorLabel_2() const { return ___m_AllocatorLabel_2; } inline int32_t* get_address_of_m_AllocatorLabel_2() { return &___m_AllocatorLabel_2; } inline void set_m_AllocatorLabel_2(int32_t value) { ___m_AllocatorLabel_2 = value; } }; // Unity.Collections.NativeArray`1<UnityEngine.Experimental.GlobalIllumination.LightDataGI> struct NativeArray_1_tF6A10DD2511425342F2B1B19CF0EA313D4F300D2 { public: // System.Void* Unity.Collections.NativeArray`1::m_Buffer void* ___m_Buffer_0; // System.Int32 Unity.Collections.NativeArray`1::m_Length int32_t ___m_Length_1; // Unity.Collections.Allocator Unity.Collections.NativeArray`1::m_AllocatorLabel int32_t ___m_AllocatorLabel_2; public: inline static int32_t get_offset_of_m_Buffer_0() { return static_cast<int32_t>(offsetof(NativeArray_1_tF6A10DD2511425342F2B1B19CF0EA313D4F300D2, ___m_Buffer_0)); } inline void* get_m_Buffer_0() const { return ___m_Buffer_0; } inline void** get_address_of_m_Buffer_0() { return &___m_Buffer_0; } inline void set_m_Buffer_0(void* value) { ___m_Buffer_0 = value; } inline static int32_t get_offset_of_m_Length_1() { return static_cast<int32_t>(offsetof(NativeArray_1_tF6A10DD2511425342F2B1B19CF0EA313D4F300D2, ___m_Length_1)); } inline int32_t get_m_Length_1() const { return ___m_Length_1; } inline int32_t* get_address_of_m_Length_1() { return &___m_Length_1; } inline void set_m_Length_1(int32_t value) { ___m_Length_1 = value; } inline static int32_t get_offset_of_m_AllocatorLabel_2() { return static_cast<int32_t>(offsetof(NativeArray_1_tF6A10DD2511425342F2B1B19CF0EA313D4F300D2, ___m_AllocatorLabel_2)); } inline int32_t get_m_AllocatorLabel_2() const { return ___m_AllocatorLabel_2; } inline int32_t* get_address_of_m_AllocatorLabel_2() { return &___m_AllocatorLabel_2; } inline void set_m_AllocatorLabel_2(int32_t value) { ___m_AllocatorLabel_2 = value; } }; // Unity.Collections.NativeArray`1<UnityEngine.Plane> struct NativeArray_1_t527C586787ACD1AD75E3C78BFB024FFA9925662E { public: // System.Void* Unity.Collections.NativeArray`1::m_Buffer void* ___m_Buffer_0; // System.Int32 Unity.Collections.NativeArray`1::m_Length int32_t ___m_Length_1; // Unity.Collections.Allocator Unity.Collections.NativeArray`1::m_AllocatorLabel int32_t ___m_AllocatorLabel_2; public: inline static int32_t get_offset_of_m_Buffer_0() { return static_cast<int32_t>(offsetof(NativeArray_1_t527C586787ACD1AD75E3C78BFB024FFA9925662E, ___m_Buffer_0)); } inline void* get_m_Buffer_0() const { return ___m_Buffer_0; } inline void** get_address_of_m_Buffer_0() { return &___m_Buffer_0; } inline void set_m_Buffer_0(void* value) { ___m_Buffer_0 = value; } inline static int32_t get_offset_of_m_Length_1() { return static_cast<int32_t>(offsetof(NativeArray_1_t527C586787ACD1AD75E3C78BFB024FFA9925662E, ___m_Length_1)); } inline int32_t get_m_Length_1() const { return ___m_Length_1; } inline int32_t* get_address_of_m_Length_1() { return &___m_Length_1; } inline void set_m_Length_1(int32_t value) { ___m_Length_1 = value; } inline static int32_t get_offset_of_m_AllocatorLabel_2() { return static_cast<int32_t>(offsetof(NativeArray_1_t527C586787ACD1AD75E3C78BFB024FFA9925662E, ___m_AllocatorLabel_2)); } inline int32_t get_m_AllocatorLabel_2() const { return ___m_AllocatorLabel_2; } inline int32_t* get_address_of_m_AllocatorLabel_2() { return &___m_AllocatorLabel_2; } inline void set_m_AllocatorLabel_2(int32_t value) { ___m_AllocatorLabel_2 = value; } }; // System.ConsoleKeyInfo struct ConsoleKeyInfo_tDA8AC07839288484FCB167A81B4FBA92ECCEAF88 { public: // System.Char System.ConsoleKeyInfo::_keyChar Il2CppChar ____keyChar_0; // System.ConsoleKey System.ConsoleKeyInfo::_key int32_t ____key_1; // System.ConsoleModifiers System.ConsoleKeyInfo::_mods int32_t ____mods_2; public: inline static int32_t get_offset_of__keyChar_0() { return static_cast<int32_t>(offsetof(ConsoleKeyInfo_tDA8AC07839288484FCB167A81B4FBA92ECCEAF88, ____keyChar_0)); } inline Il2CppChar get__keyChar_0() const { return ____keyChar_0; } inline Il2CppChar* get_address_of__keyChar_0() { return &____keyChar_0; } inline void set__keyChar_0(Il2CppChar value) { ____keyChar_0 = value; } inline static int32_t get_offset_of__key_1() { return static_cast<int32_t>(offsetof(ConsoleKeyInfo_tDA8AC07839288484FCB167A81B4FBA92ECCEAF88, ____key_1)); } inline int32_t get__key_1() const { return ____key_1; } inline int32_t* get_address_of__key_1() { return &____key_1; } inline void set__key_1(int32_t value) { ____key_1 = value; } inline static int32_t get_offset_of__mods_2() { return static_cast<int32_t>(offsetof(ConsoleKeyInfo_tDA8AC07839288484FCB167A81B4FBA92ECCEAF88, ____mods_2)); } inline int32_t get__mods_2() const { return ____mods_2; } inline int32_t* get_address_of__mods_2() { return &____mods_2; } inline void set__mods_2(int32_t value) { ____mods_2 = value; } }; // Native definition for P/Invoke marshalling of System.ConsoleKeyInfo struct ConsoleKeyInfo_tDA8AC07839288484FCB167A81B4FBA92ECCEAF88_marshaled_pinvoke { uint8_t ____keyChar_0; int32_t ____key_1; int32_t ____mods_2; }; // Native definition for COM marshalling of System.ConsoleKeyInfo struct ConsoleKeyInfo_tDA8AC07839288484FCB167A81B4FBA92ECCEAF88_marshaled_com { uint8_t ____keyChar_0; int32_t ____key_1; int32_t ____mods_2; }; // UnityEngine.UIElements.Length struct Length_tC812F6D7266A044F3AB7DBC98EC0A52678643696 { public: // System.Single UnityEngine.UIElements.Length::m_Value float ___m_Value_1; // UnityEngine.UIElements.Length/Unit UnityEngine.UIElements.Length::m_Unit int32_t ___m_Unit_2; public: inline static int32_t get_offset_of_m_Value_1() { return static_cast<int32_t>(offsetof(Length_tC812F6D7266A044F3AB7DBC98EC0A52678643696, ___m_Value_1)); } inline float get_m_Value_1() const { return ___m_Value_1; } inline float* get_address_of_m_Value_1() { return &___m_Value_1; } inline void set_m_Value_1(float value) { ___m_Value_1 = value; } inline static int32_t get_offset_of_m_Unit_2() { return static_cast<int32_t>(offsetof(Length_tC812F6D7266A044F3AB7DBC98EC0A52678643696, ___m_Unit_2)); } inline int32_t get_m_Unit_2() const { return ___m_Unit_2; } inline int32_t* get_address_of_m_Unit_2() { return &___m_Unit_2; } inline void set_m_Unit_2(int32_t value) { ___m_Unit_2 = value; } }; // UnityEngine.SceneManagement.LoadSceneParameters struct LoadSceneParameters_t98D2B4FCF0184320590305D3F367834287C2CAA2 { public: // UnityEngine.SceneManagement.LoadSceneMode UnityEngine.SceneManagement.LoadSceneParameters::m_LoadSceneMode int32_t ___m_LoadSceneMode_0; // UnityEngine.SceneManagement.LocalPhysicsMode UnityEngine.SceneManagement.LoadSceneParameters::m_LocalPhysicsMode int32_t ___m_LocalPhysicsMode_1; public: inline static int32_t get_offset_of_m_LoadSceneMode_0() { return static_cast<int32_t>(offsetof(LoadSceneParameters_t98D2B4FCF0184320590305D3F367834287C2CAA2, ___m_LoadSceneMode_0)); } inline int32_t get_m_LoadSceneMode_0() const { return ___m_LoadSceneMode_0; } inline int32_t* get_address_of_m_LoadSceneMode_0() { return &___m_LoadSceneMode_0; } inline void set_m_LoadSceneMode_0(int32_t value) { ___m_LoadSceneMode_0 = value; } inline static int32_t get_offset_of_m_LocalPhysicsMode_1() { return static_cast<int32_t>(offsetof(LoadSceneParameters_t98D2B4FCF0184320590305D3F367834287C2CAA2, ___m_LocalPhysicsMode_1)); } inline int32_t get_m_LocalPhysicsMode_1() const { return ___m_LocalPhysicsMode_1; } inline int32_t* get_address_of_m_LocalPhysicsMode_1() { return &___m_LocalPhysicsMode_1; } inline void set_m_LocalPhysicsMode_1(int32_t value) { ___m_LocalPhysicsMode_1 = value; } }; // UnityEngine.UI.Navigation struct Navigation_t1CF0FFB22C0357CD64714FB7A40A275F899D363A { public: // UnityEngine.UI.Navigation/Mode UnityEngine.UI.Navigation::m_Mode int32_t ___m_Mode_0; // System.Boolean UnityEngine.UI.Navigation::m_WrapAround bool ___m_WrapAround_1; // UnityEngine.UI.Selectable UnityEngine.UI.Navigation::m_SelectOnUp Selectable_t34088A3677CC9D344F81B0D91999D8C5963D7DBD * ___m_SelectOnUp_2; // UnityEngine.UI.Selectable UnityEngine.UI.Navigation::m_SelectOnDown Selectable_t34088A3677CC9D344F81B0D91999D8C5963D7DBD * ___m_SelectOnDown_3; // UnityEngine.UI.Selectable UnityEngine.UI.Navigation::m_SelectOnLeft Selectable_t34088A3677CC9D344F81B0D91999D8C5963D7DBD * ___m_SelectOnLeft_4; // UnityEngine.UI.Selectable UnityEngine.UI.Navigation::m_SelectOnRight Selectable_t34088A3677CC9D344F81B0D91999D8C5963D7DBD * ___m_SelectOnRight_5; public: inline static int32_t get_offset_of_m_Mode_0() { return static_cast<int32_t>(offsetof(Navigation_t1CF0FFB22C0357CD64714FB7A40A275F899D363A, ___m_Mode_0)); } inline int32_t get_m_Mode_0() const { return ___m_Mode_0; } inline int32_t* get_address_of_m_Mode_0() { return &___m_Mode_0; } inline void set_m_Mode_0(int32_t value) { ___m_Mode_0 = value; } inline static int32_t get_offset_of_m_WrapAround_1() { return static_cast<int32_t>(offsetof(Navigation_t1CF0FFB22C0357CD64714FB7A40A275F899D363A, ___m_WrapAround_1)); } inline bool get_m_WrapAround_1() const { return ___m_WrapAround_1; } inline bool* get_address_of_m_WrapAround_1() { return &___m_WrapAround_1; } inline void set_m_WrapAround_1(bool value) { ___m_WrapAround_1 = value; } inline static int32_t get_offset_of_m_SelectOnUp_2() { return static_cast<int32_t>(offsetof(Navigation_t1CF0FFB22C0357CD64714FB7A40A275F899D363A, ___m_SelectOnUp_2)); } inline Selectable_t34088A3677CC9D344F81B0D91999D8C5963D7DBD * get_m_SelectOnUp_2() const { return ___m_SelectOnUp_2; } inline Selectable_t34088A3677CC9D344F81B0D91999D8C5963D7DBD ** get_address_of_m_SelectOnUp_2() { return &___m_SelectOnUp_2; } inline void set_m_SelectOnUp_2(Selectable_t34088A3677CC9D344F81B0D91999D8C5963D7DBD * value) { ___m_SelectOnUp_2 = value; Il2CppCodeGenWriteBarrier((void**)(&___m_SelectOnUp_2), (void*)value); } inline static int32_t get_offset_of_m_SelectOnDown_3() { return static_cast<int32_t>(offsetof(Navigation_t1CF0FFB22C0357CD64714FB7A40A275F899D363A, ___m_SelectOnDown_3)); } inline Selectable_t34088A3677CC9D344F81B0D91999D8C5963D7DBD * get_m_SelectOnDown_3() const { return ___m_SelectOnDown_3; } inline Selectable_t34088A3677CC9D344F81B0D91999D8C5963D7DBD ** get_address_of_m_SelectOnDown_3() { return &___m_SelectOnDown_3; } inline void set_m_SelectOnDown_3(Selectable_t34088A3677CC9D344F81B0D91999D8C5963D7DBD * value) { ___m_SelectOnDown_3 = value; Il2CppCodeGenWriteBarrier((void**)(&___m_SelectOnDown_3), (void*)value); } inline static int32_t get_offset_of_m_SelectOnLeft_4() { return static_cast<int32_t>(offsetof(Navigation_t1CF0FFB22C0357CD64714FB7A40A275F899D363A, ___m_SelectOnLeft_4)); } inline Selectable_t34088A3677CC9D344F81B0D91999D8C5963D7DBD * get_m_SelectOnLeft_4() const { return ___m_SelectOnLeft_4; } inline Selectable_t34088A3677CC9D344F81B0D91999D8C5963D7DBD ** get_address_of_m_SelectOnLeft_4() { return &___m_SelectOnLeft_4; } inline void set_m_SelectOnLeft_4(Selectable_t34088A3677CC9D344F81B0D91999D8C5963D7DBD * value) { ___m_SelectOnLeft_4 = value; Il2CppCodeGenWriteBarrier((void**)(&___m_SelectOnLeft_4), (void*)value); } inline static int32_t get_offset_of_m_SelectOnRight_5() { return static_cast<int32_t>(offsetof(Navigation_t1CF0FFB22C0357CD64714FB7A40A275F899D363A, ___m_SelectOnRight_5)); } inline Selectable_t34088A3677CC9D344F81B0D91999D8C5963D7DBD * get_m_SelectOnRight_5() const { return ___m_SelectOnRight_5; } inline Selectable_t34088A3677CC9D344F81B0D91999D8C5963D7DBD ** get_address_of_m_SelectOnRight_5() { return &___m_SelectOnRight_5; } inline void set_m_SelectOnRight_5(Selectable_t34088A3677CC9D344F81B0D91999D8C5963D7DBD * value) { ___m_SelectOnRight_5 = value; Il2CppCodeGenWriteBarrier((void**)(&___m_SelectOnRight_5), (void*)value); } }; // Native definition for P/Invoke marshalling of UnityEngine.UI.Navigation struct Navigation_t1CF0FFB22C0357CD64714FB7A40A275F899D363A_marshaled_pinvoke { int32_t ___m_Mode_0; int32_t ___m_WrapAround_1; Selectable_t34088A3677CC9D344F81B0D91999D8C5963D7DBD * ___m_SelectOnUp_2; Selectable_t34088A3677CC9D344F81B0D91999D8C5963D7DBD * ___m_SelectOnDown_3; Selectable_t34088A3677CC9D344F81B0D91999D8C5963D7DBD * ___m_SelectOnLeft_4; Selectable_t34088A3677CC9D344F81B0D91999D8C5963D7DBD * ___m_SelectOnRight_5; }; // Native definition for COM marshalling of UnityEngine.UI.Navigation struct Navigation_t1CF0FFB22C0357CD64714FB7A40A275F899D363A_marshaled_com { int32_t ___m_Mode_0; int32_t ___m_WrapAround_1; Selectable_t34088A3677CC9D344F81B0D91999D8C5963D7DBD * ___m_SelectOnUp_2; Selectable_t34088A3677CC9D344F81B0D91999D8C5963D7DBD * ___m_SelectOnDown_3; Selectable_t34088A3677CC9D344F81B0D91999D8C5963D7DBD * ___m_SelectOnLeft_4; Selectable_t34088A3677CC9D344F81B0D91999D8C5963D7DBD * ___m_SelectOnRight_5; }; // UnityEngine.Playables.Playable struct Playable_tC24692CDD1DD8F1D5C646035A76D2830A70214E2 { public: // UnityEngine.Playables.PlayableHandle UnityEngine.Playables.Playable::m_Handle PlayableHandle_t50DCD240B0400DDAD0822C13E5DBC7AD64DC027A ___m_Handle_0; public: inline static int32_t get_offset_of_m_Handle_0() { return static_cast<int32_t>(offsetof(Playable_tC24692CDD1DD8F1D5C646035A76D2830A70214E2, ___m_Handle_0)); } inline PlayableHandle_t50DCD240B0400DDAD0822C13E5DBC7AD64DC027A get_m_Handle_0() const { return ___m_Handle_0; } inline PlayableHandle_t50DCD240B0400DDAD0822C13E5DBC7AD64DC027A * get_address_of_m_Handle_0() { return &___m_Handle_0; } inline void set_m_Handle_0(PlayableHandle_t50DCD240B0400DDAD0822C13E5DBC7AD64DC027A value) { ___m_Handle_0 = value; } }; struct Playable_tC24692CDD1DD8F1D5C646035A76D2830A70214E2_StaticFields { public: // UnityEngine.Playables.Playable UnityEngine.Playables.Playable::m_NullPlayable Playable_tC24692CDD1DD8F1D5C646035A76D2830A70214E2 ___m_NullPlayable_1; public: inline static int32_t get_offset_of_m_NullPlayable_1() { return static_cast<int32_t>(offsetof(Playable_tC24692CDD1DD8F1D5C646035A76D2830A70214E2_StaticFields, ___m_NullPlayable_1)); } inline Playable_tC24692CDD1DD8F1D5C646035A76D2830A70214E2 get_m_NullPlayable_1() const { return ___m_NullPlayable_1; } inline Playable_tC24692CDD1DD8F1D5C646035A76D2830A70214E2 * get_address_of_m_NullPlayable_1() { return &___m_NullPlayable_1; } inline void set_m_NullPlayable_1(Playable_tC24692CDD1DD8F1D5C646035A76D2830A70214E2 value) { ___m_NullPlayable_1 = value; } }; // System.Runtime.Serialization.StreamingContext struct StreamingContext_t5888E7E8C81AB6EF3B14FDDA6674F458076A8505 { public: // System.Object System.Runtime.Serialization.StreamingContext::m_additionalContext RuntimeObject * ___m_additionalContext_0; // System.Runtime.Serialization.StreamingContextStates System.Runtime.Serialization.StreamingContext::m_state int32_t ___m_state_1; public: inline static int32_t get_offset_of_m_additionalContext_0() { return static_cast<int32_t>(offsetof(StreamingContext_t5888E7E8C81AB6EF3B14FDDA6674F458076A8505, ___m_additionalContext_0)); } inline RuntimeObject * get_m_additionalContext_0() const { return ___m_additionalContext_0; } inline RuntimeObject ** get_address_of_m_additionalContext_0() { return &___m_additionalContext_0; } inline void set_m_additionalContext_0(RuntimeObject * value) { ___m_additionalContext_0 = value; Il2CppCodeGenWriteBarrier((void**)(&___m_additionalContext_0), (void*)value); } inline static int32_t get_offset_of_m_state_1() { return static_cast<int32_t>(offsetof(StreamingContext_t5888E7E8C81AB6EF3B14FDDA6674F458076A8505, ___m_state_1)); } inline int32_t get_m_state_1() const { return ___m_state_1; } inline int32_t* get_address_of_m_state_1() { return &___m_state_1; } inline void set_m_state_1(int32_t value) { ___m_state_1 = value; } }; // Native definition for P/Invoke marshalling of System.Runtime.Serialization.StreamingContext struct StreamingContext_t5888E7E8C81AB6EF3B14FDDA6674F458076A8505_marshaled_pinvoke { Il2CppIUnknown* ___m_additionalContext_0; int32_t ___m_state_1; }; // Native definition for COM marshalling of System.Runtime.Serialization.StreamingContext struct StreamingContext_t5888E7E8C81AB6EF3B14FDDA6674F458076A8505_marshaled_com { Il2CppIUnknown* ___m_additionalContext_0; int32_t ___m_state_1; }; // UnityEngine.UIElements.StyleSelectorPart struct StyleSelectorPart_t707EDC970FC0F3E91E56DCBC178672A120426D54 { public: // System.String UnityEngine.UIElements.StyleSelectorPart::m_Value String_t* ___m_Value_0; // UnityEngine.UIElements.StyleSelectorType UnityEngine.UIElements.StyleSelectorPart::m_Type int32_t ___m_Type_1; // System.Object UnityEngine.UIElements.StyleSelectorPart::tempData RuntimeObject * ___tempData_2; public: inline static int32_t get_offset_of_m_Value_0() { return static_cast<int32_t>(offsetof(StyleSelectorPart_t707EDC970FC0F3E91E56DCBC178672A120426D54, ___m_Value_0)); } inline String_t* get_m_Value_0() const { return ___m_Value_0; } inline String_t** get_address_of_m_Value_0() { return &___m_Value_0; } inline void set_m_Value_0(String_t* value) { ___m_Value_0 = value; Il2CppCodeGenWriteBarrier((void**)(&___m_Value_0), (void*)value); } inline static int32_t get_offset_of_m_Type_1() { return static_cast<int32_t>(offsetof(StyleSelectorPart_t707EDC970FC0F3E91E56DCBC178672A120426D54, ___m_Type_1)); } inline int32_t get_m_Type_1() const { return ___m_Type_1; } inline int32_t* get_address_of_m_Type_1() { return &___m_Type_1; } inline void set_m_Type_1(int32_t value) { ___m_Type_1 = value; } inline static int32_t get_offset_of_tempData_2() { return static_cast<int32_t>(offsetof(StyleSelectorPart_t707EDC970FC0F3E91E56DCBC178672A120426D54, ___tempData_2)); } inline RuntimeObject * get_tempData_2() const { return ___tempData_2; } inline RuntimeObject ** get_address_of_tempData_2() { return &___tempData_2; } inline void set_tempData_2(RuntimeObject * value) { ___tempData_2 = value; Il2CppCodeGenWriteBarrier((void**)(&___tempData_2), (void*)value); } }; // Native definition for P/Invoke marshalling of UnityEngine.UIElements.StyleSelectorPart struct StyleSelectorPart_t707EDC970FC0F3E91E56DCBC178672A120426D54_marshaled_pinvoke { char* ___m_Value_0; int32_t ___m_Type_1; Il2CppIUnknown* ___tempData_2; }; // Native definition for COM marshalling of UnityEngine.UIElements.StyleSelectorPart struct StyleSelectorPart_t707EDC970FC0F3E91E56DCBC178672A120426D54_marshaled_com { Il2CppChar* ___m_Value_0; int32_t ___m_Type_1; Il2CppIUnknown* ___tempData_2; }; // UnityEngine.UIElements.StyleValueHandle struct StyleValueHandle_t46AFAF3564D6DF2EA2739A1D85438355478AD185 { public: // UnityEngine.UIElements.StyleValueType UnityEngine.UIElements.StyleValueHandle::m_ValueType int32_t ___m_ValueType_0; // System.Int32 UnityEngine.UIElements.StyleValueHandle::valueIndex int32_t ___valueIndex_1; public: inline static int32_t get_offset_of_m_ValueType_0() { return static_cast<int32_t>(offsetof(StyleValueHandle_t46AFAF3564D6DF2EA2739A1D85438355478AD185, ___m_ValueType_0)); } inline int32_t get_m_ValueType_0() const { return ___m_ValueType_0; } inline int32_t* get_address_of_m_ValueType_0() { return &___m_ValueType_0; } inline void set_m_ValueType_0(int32_t value) { ___m_ValueType_0 = value; } inline static int32_t get_offset_of_valueIndex_1() { return static_cast<int32_t>(offsetof(StyleValueHandle_t46AFAF3564D6DF2EA2739A1D85438355478AD185, ___valueIndex_1)); } inline int32_t get_valueIndex_1() const { return ___valueIndex_1; } inline int32_t* get_address_of_valueIndex_1() { return &___valueIndex_1; } inline void set_valueIndex_1(int32_t value) { ___valueIndex_1 = value; } }; // UnityEngine.Touch struct Touch_tDEFED247540BCFA4AD452F1D37EEF4E09B4ACD8C { public: // System.Int32 UnityEngine.Touch::m_FingerId int32_t ___m_FingerId_0; // UnityEngine.Vector2 UnityEngine.Touch::m_Position Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9 ___m_Position_1; // UnityEngine.Vector2 UnityEngine.Touch::m_RawPosition Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9 ___m_RawPosition_2; // UnityEngine.Vector2 UnityEngine.Touch::m_PositionDelta Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9 ___m_PositionDelta_3; // System.Single UnityEngine.Touch::m_TimeDelta float ___m_TimeDelta_4; // System.Int32 UnityEngine.Touch::m_TapCount int32_t ___m_TapCount_5; // UnityEngine.TouchPhase UnityEngine.Touch::m_Phase int32_t ___m_Phase_6; // UnityEngine.TouchType UnityEngine.Touch::m_Type int32_t ___m_Type_7; // System.Single UnityEngine.Touch::m_Pressure float ___m_Pressure_8; // System.Single UnityEngine.Touch::m_maximumPossiblePressure float ___m_maximumPossiblePressure_9; // System.Single UnityEngine.Touch::m_Radius float ___m_Radius_10; // System.Single UnityEngine.Touch::m_RadiusVariance float ___m_RadiusVariance_11; // System.Single UnityEngine.Touch::m_AltitudeAngle float ___m_AltitudeAngle_12; // System.Single UnityEngine.Touch::m_AzimuthAngle float ___m_AzimuthAngle_13; public: inline static int32_t get_offset_of_m_FingerId_0() { return static_cast<int32_t>(offsetof(Touch_tDEFED247540BCFA4AD452F1D37EEF4E09B4ACD8C, ___m_FingerId_0)); } inline int32_t get_m_FingerId_0() const { return ___m_FingerId_0; } inline int32_t* get_address_of_m_FingerId_0() { return &___m_FingerId_0; } inline void set_m_FingerId_0(int32_t value) { ___m_FingerId_0 = value; } inline static int32_t get_offset_of_m_Position_1() { return static_cast<int32_t>(offsetof(Touch_tDEFED247540BCFA4AD452F1D37EEF4E09B4ACD8C, ___m_Position_1)); } inline Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9 get_m_Position_1() const { return ___m_Position_1; } inline Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9 * get_address_of_m_Position_1() { return &___m_Position_1; } inline void set_m_Position_1(Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9 value) { ___m_Position_1 = value; } inline static int32_t get_offset_of_m_RawPosition_2() { return static_cast<int32_t>(offsetof(Touch_tDEFED247540BCFA4AD452F1D37EEF4E09B4ACD8C, ___m_RawPosition_2)); } inline Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9 get_m_RawPosition_2() const { return ___m_RawPosition_2; } inline Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9 * get_address_of_m_RawPosition_2() { return &___m_RawPosition_2; } inline void set_m_RawPosition_2(Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9 value) { ___m_RawPosition_2 = value; } inline static int32_t get_offset_of_m_PositionDelta_3() { return static_cast<int32_t>(offsetof(Touch_tDEFED247540BCFA4AD452F1D37EEF4E09B4ACD8C, ___m_PositionDelta_3)); } inline Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9 get_m_PositionDelta_3() const { return ___m_PositionDelta_3; } inline Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9 * get_address_of_m_PositionDelta_3() { return &___m_PositionDelta_3; } inline void set_m_PositionDelta_3(Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9 value) { ___m_PositionDelta_3 = value; } inline static int32_t get_offset_of_m_TimeDelta_4() { return static_cast<int32_t>(offsetof(Touch_tDEFED247540BCFA4AD452F1D37EEF4E09B4ACD8C, ___m_TimeDelta_4)); } inline float get_m_TimeDelta_4() const { return ___m_TimeDelta_4; } inline float* get_address_of_m_TimeDelta_4() { return &___m_TimeDelta_4; } inline void set_m_TimeDelta_4(float value) { ___m_TimeDelta_4 = value; } inline static int32_t get_offset_of_m_TapCount_5() { return static_cast<int32_t>(offsetof(Touch_tDEFED247540BCFA4AD452F1D37EEF4E09B4ACD8C, ___m_TapCount_5)); } inline int32_t get_m_TapCount_5() const { return ___m_TapCount_5; } inline int32_t* get_address_of_m_TapCount_5() { return &___m_TapCount_5; } inline void set_m_TapCount_5(int32_t value) { ___m_TapCount_5 = value; } inline static int32_t get_offset_of_m_Phase_6() { return static_cast<int32_t>(offsetof(Touch_tDEFED247540BCFA4AD452F1D37EEF4E09B4ACD8C, ___m_Phase_6)); } inline int32_t get_m_Phase_6() const { return ___m_Phase_6; } inline int32_t* get_address_of_m_Phase_6() { return &___m_Phase_6; } inline void set_m_Phase_6(int32_t value) { ___m_Phase_6 = value; } inline static int32_t get_offset_of_m_Type_7() { return static_cast<int32_t>(offsetof(Touch_tDEFED247540BCFA4AD452F1D37EEF4E09B4ACD8C, ___m_Type_7)); } inline int32_t get_m_Type_7() const { return ___m_Type_7; } inline int32_t* get_address_of_m_Type_7() { return &___m_Type_7; } inline void set_m_Type_7(int32_t value) { ___m_Type_7 = value; } inline static int32_t get_offset_of_m_Pressure_8() { return static_cast<int32_t>(offsetof(Touch_tDEFED247540BCFA4AD452F1D37EEF4E09B4ACD8C, ___m_Pressure_8)); } inline float get_m_Pressure_8() const { return ___m_Pressure_8; } inline float* get_address_of_m_Pressure_8() { return &___m_Pressure_8; } inline void set_m_Pressure_8(float value) { ___m_Pressure_8 = value; } inline static int32_t get_offset_of_m_maximumPossiblePressure_9() { return static_cast<int32_t>(offsetof(Touch_tDEFED247540BCFA4AD452F1D37EEF4E09B4ACD8C, ___m_maximumPossiblePressure_9)); } inline float get_m_maximumPossiblePressure_9() const { return ___m_maximumPossiblePressure_9; } inline float* get_address_of_m_maximumPossiblePressure_9() { return &___m_maximumPossiblePressure_9; } inline void set_m_maximumPossiblePressure_9(float value) { ___m_maximumPossiblePressure_9 = value; } inline static int32_t get_offset_of_m_Radius_10() { return static_cast<int32_t>(offsetof(Touch_tDEFED247540BCFA4AD452F1D37EEF4E09B4ACD8C, ___m_Radius_10)); } inline float get_m_Radius_10() const { return ___m_Radius_10; } inline float* get_address_of_m_Radius_10() { return &___m_Radius_10; } inline void set_m_Radius_10(float value) { ___m_Radius_10 = value; } inline static int32_t get_offset_of_m_RadiusVariance_11() { return static_cast<int32_t>(offsetof(Touch_tDEFED247540BCFA4AD452F1D37EEF4E09B4ACD8C, ___m_RadiusVariance_11)); } inline float get_m_RadiusVariance_11() const { return ___m_RadiusVariance_11; } inline float* get_address_of_m_RadiusVariance_11() { return &___m_RadiusVariance_11; } inline void set_m_RadiusVariance_11(float value) { ___m_RadiusVariance_11 = value; } inline static int32_t get_offset_of_m_AltitudeAngle_12() { return static_cast<int32_t>(offsetof(Touch_tDEFED247540BCFA4AD452F1D37EEF4E09B4ACD8C, ___m_AltitudeAngle_12)); } inline float get_m_AltitudeAngle_12() const { return ___m_AltitudeAngle_12; } inline float* get_address_of_m_AltitudeAngle_12() { return &___m_AltitudeAngle_12; } inline void set_m_AltitudeAngle_12(float value) { ___m_AltitudeAngle_12 = value; } inline static int32_t get_offset_of_m_AzimuthAngle_13() { return static_cast<int32_t>(offsetof(Touch_tDEFED247540BCFA4AD452F1D37EEF4E09B4ACD8C, ___m_AzimuthAngle_13)); } inline float get_m_AzimuthAngle_13() const { return ___m_AzimuthAngle_13; } inline float* get_address_of_m_AzimuthAngle_13() { return &___m_AzimuthAngle_13; } inline void set_m_AzimuthAngle_13(float value) { ___m_AzimuthAngle_13 = value; } }; // System.TypedReference struct TypedReference_tE1755FC30D207D9552DE27539E907EE92C8C073A { public: // System.RuntimeTypeHandle System.TypedReference::type RuntimeTypeHandle_tC33965ADA3E041E0C94AF05E5CB527B56482CEF9 ___type_0; // System.IntPtr System.TypedReference::Value intptr_t ___Value_1; // System.IntPtr System.TypedReference::Type intptr_t ___Type_2; public: inline static int32_t get_offset_of_type_0() { return static_cast<int32_t>(offsetof(TypedReference_tE1755FC30D207D9552DE27539E907EE92C8C073A, ___type_0)); } inline RuntimeTypeHandle_tC33965ADA3E041E0C94AF05E5CB527B56482CEF9 get_type_0() const { return ___type_0; } inline RuntimeTypeHandle_tC33965ADA3E041E0C94AF05E5CB527B56482CEF9 * get_address_of_type_0() { return &___type_0; } inline void set_type_0(RuntimeTypeHandle_tC33965ADA3E041E0C94AF05E5CB527B56482CEF9 value) { ___type_0 = value; } inline static int32_t get_offset_of_Value_1() { return static_cast<int32_t>(offsetof(TypedReference_tE1755FC30D207D9552DE27539E907EE92C8C073A, ___Value_1)); } inline intptr_t get_Value_1() const { return ___Value_1; } inline intptr_t* get_address_of_Value_1() { return &___Value_1; } inline void set_Value_1(intptr_t value) { ___Value_1 = value; } inline static int32_t get_offset_of_Type_2() { return static_cast<int32_t>(offsetof(TypedReference_tE1755FC30D207D9552DE27539E907EE92C8C073A, ___Type_2)); } inline intptr_t get_Type_2() const { return ___Type_2; } inline intptr_t* get_address_of_Type_2() { return &___Type_2; } inline void set_Type_2(intptr_t value) { ___Type_2 = value; } }; // UnityEngine.Camera/RenderRequest struct RenderRequest_t7DEDFA6AAA1C8D381280183054C328F26BBCCE94 { public: // UnityEngine.Camera/RenderRequestMode UnityEngine.Camera/RenderRequest::m_CameraRenderMode int32_t ___m_CameraRenderMode_0; // UnityEngine.RenderTexture UnityEngine.Camera/RenderRequest::m_ResultRT RenderTexture_t5FE7A5B47EF962A0E8D7BEBA05E9FC87D49A1849 * ___m_ResultRT_1; // UnityEngine.Camera/RenderRequestOutputSpace UnityEngine.Camera/RenderRequest::m_OutputSpace int32_t ___m_OutputSpace_2; public: inline static int32_t get_offset_of_m_CameraRenderMode_0() { return static_cast<int32_t>(offsetof(RenderRequest_t7DEDFA6AAA1C8D381280183054C328F26BBCCE94, ___m_CameraRenderMode_0)); } inline int32_t get_m_CameraRenderMode_0() const { return ___m_CameraRenderMode_0; } inline int32_t* get_address_of_m_CameraRenderMode_0() { return &___m_CameraRenderMode_0; } inline void set_m_CameraRenderMode_0(int32_t value) { ___m_CameraRenderMode_0 = value; } inline static int32_t get_offset_of_m_ResultRT_1() { return static_cast<int32_t>(offsetof(RenderRequest_t7DEDFA6AAA1C8D381280183054C328F26BBCCE94, ___m_ResultRT_1)); } inline RenderTexture_t5FE7A5B47EF962A0E8D7BEBA05E9FC87D49A1849 * get_m_ResultRT_1() const { return ___m_ResultRT_1; } inline RenderTexture_t5FE7A5B47EF962A0E8D7BEBA05E9FC87D49A1849 ** get_address_of_m_ResultRT_1() { return &___m_ResultRT_1; } inline void set_m_ResultRT_1(RenderTexture_t5FE7A5B47EF962A0E8D7BEBA05E9FC87D49A1849 * value) { ___m_ResultRT_1 = value; Il2CppCodeGenWriteBarrier((void**)(&___m_ResultRT_1), (void*)value); } inline static int32_t get_offset_of_m_OutputSpace_2() { return static_cast<int32_t>(offsetof(RenderRequest_t7DEDFA6AAA1C8D381280183054C328F26BBCCE94, ___m_OutputSpace_2)); } inline int32_t get_m_OutputSpace_2() const { return ___m_OutputSpace_2; } inline int32_t* get_address_of_m_OutputSpace_2() { return &___m_OutputSpace_2; } inline void set_m_OutputSpace_2(int32_t value) { ___m_OutputSpace_2 = value; } }; // Native definition for P/Invoke marshalling of UnityEngine.Camera/RenderRequest struct RenderRequest_t7DEDFA6AAA1C8D381280183054C328F26BBCCE94_marshaled_pinvoke { int32_t ___m_CameraRenderMode_0; RenderTexture_t5FE7A5B47EF962A0E8D7BEBA05E9FC87D49A1849 * ___m_ResultRT_1; int32_t ___m_OutputSpace_2; }; // Native definition for COM marshalling of UnityEngine.Camera/RenderRequest struct RenderRequest_t7DEDFA6AAA1C8D381280183054C328F26BBCCE94_marshaled_com { int32_t ___m_CameraRenderMode_0; RenderTexture_t5FE7A5B47EF962A0E8D7BEBA05E9FC87D49A1849 * ___m_ResultRT_1; int32_t ___m_OutputSpace_2; }; // UnityEngine.UIElements.StyleComplexSelector/PseudoStateData struct PseudoStateData_t3F1A53FFD3D401315DCAD65C924AA3B7922AD4F3 { public: // UnityEngine.UIElements.PseudoStates UnityEngine.UIElements.StyleComplexSelector/PseudoStateData::state int32_t ___state_0; // System.Boolean UnityEngine.UIElements.StyleComplexSelector/PseudoStateData::negate bool ___negate_1; public: inline static int32_t get_offset_of_state_0() { return static_cast<int32_t>(offsetof(PseudoStateData_t3F1A53FFD3D401315DCAD65C924AA3B7922AD4F3, ___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; } inline static int32_t get_offset_of_negate_1() { return static_cast<int32_t>(offsetof(PseudoStateData_t3F1A53FFD3D401315DCAD65C924AA3B7922AD4F3, ___negate_1)); } inline bool get_negate_1() const { return ___negate_1; } inline bool* get_address_of_negate_1() { return &___negate_1; } inline void set_negate_1(bool value) { ___negate_1 = value; } }; // Native definition for P/Invoke marshalling of UnityEngine.UIElements.StyleComplexSelector/PseudoStateData struct PseudoStateData_t3F1A53FFD3D401315DCAD65C924AA3B7922AD4F3_marshaled_pinvoke { int32_t ___state_0; int32_t ___negate_1; }; // Native definition for COM marshalling of UnityEngine.UIElements.StyleComplexSelector/PseudoStateData struct PseudoStateData_t3F1A53FFD3D401315DCAD65C924AA3B7922AD4F3_marshaled_com { int32_t ___state_0; int32_t ___negate_1; }; // UnityEngine.Rendering.BatchCullingContext struct BatchCullingContext_t26E634F354C4F3915108C34A32FD32118FFE1F66 { public: // Unity.Collections.NativeArray`1<UnityEngine.Plane> UnityEngine.Rendering.BatchCullingContext::cullingPlanes NativeArray_1_t527C586787ACD1AD75E3C78BFB024FFA9925662E ___cullingPlanes_0; // Unity.Collections.NativeArray`1<UnityEngine.Rendering.BatchVisibility> UnityEngine.Rendering.BatchCullingContext::batchVisibility NativeArray_1_t18D233A2E30E28048C1252473AFD0799557294DA ___batchVisibility_1; // Unity.Collections.NativeArray`1<System.Int32> UnityEngine.Rendering.BatchCullingContext::visibleIndices NativeArray_1_tD60079F06B473C85CF6C2BB4F2D203F38191AE99 ___visibleIndices_2; // Unity.Collections.NativeArray`1<System.Int32> UnityEngine.Rendering.BatchCullingContext::visibleIndicesY NativeArray_1_tD60079F06B473C85CF6C2BB4F2D203F38191AE99 ___visibleIndicesY_3; // UnityEngine.Rendering.LODParameters UnityEngine.Rendering.BatchCullingContext::lodParameters LODParameters_tA41D06C4BDB03138144BE9DCC4BC6B37963DC5CD ___lodParameters_4; // UnityEngine.Matrix4x4 UnityEngine.Rendering.BatchCullingContext::cullingMatrix Matrix4x4_tDE7FF4F2E2EA284F6EFE00D627789D0E5B8B4461 ___cullingMatrix_5; // System.Single UnityEngine.Rendering.BatchCullingContext::nearPlane float ___nearPlane_6; public: inline static int32_t get_offset_of_cullingPlanes_0() { return static_cast<int32_t>(offsetof(BatchCullingContext_t26E634F354C4F3915108C34A32FD32118FFE1F66, ___cullingPlanes_0)); } inline NativeArray_1_t527C586787ACD1AD75E3C78BFB024FFA9925662E get_cullingPlanes_0() const { return ___cullingPlanes_0; } inline NativeArray_1_t527C586787ACD1AD75E3C78BFB024FFA9925662E * get_address_of_cullingPlanes_0() { return &___cullingPlanes_0; } inline void set_cullingPlanes_0(NativeArray_1_t527C586787ACD1AD75E3C78BFB024FFA9925662E value) { ___cullingPlanes_0 = value; } inline static int32_t get_offset_of_batchVisibility_1() { return static_cast<int32_t>(offsetof(BatchCullingContext_t26E634F354C4F3915108C34A32FD32118FFE1F66, ___batchVisibility_1)); } inline NativeArray_1_t18D233A2E30E28048C1252473AFD0799557294DA get_batchVisibility_1() const { return ___batchVisibility_1; } inline NativeArray_1_t18D233A2E30E28048C1252473AFD0799557294DA * get_address_of_batchVisibility_1() { return &___batchVisibility_1; } inline void set_batchVisibility_1(NativeArray_1_t18D233A2E30E28048C1252473AFD0799557294DA value) { ___batchVisibility_1 = value; } inline static int32_t get_offset_of_visibleIndices_2() { return static_cast<int32_t>(offsetof(BatchCullingContext_t26E634F354C4F3915108C34A32FD32118FFE1F66, ___visibleIndices_2)); } inline NativeArray_1_tD60079F06B473C85CF6C2BB4F2D203F38191AE99 get_visibleIndices_2() const { return ___visibleIndices_2; } inline NativeArray_1_tD60079F06B473C85CF6C2BB4F2D203F38191AE99 * get_address_of_visibleIndices_2() { return &___visibleIndices_2; } inline void set_visibleIndices_2(NativeArray_1_tD60079F06B473C85CF6C2BB4F2D203F38191AE99 value) { ___visibleIndices_2 = value; } inline static int32_t get_offset_of_visibleIndicesY_3() { return static_cast<int32_t>(offsetof(BatchCullingContext_t26E634F354C4F3915108C34A32FD32118FFE1F66, ___visibleIndicesY_3)); } inline NativeArray_1_tD60079F06B473C85CF6C2BB4F2D203F38191AE99 get_visibleIndicesY_3() const { return ___visibleIndicesY_3; } inline NativeArray_1_tD60079F06B473C85CF6C2BB4F2D203F38191AE99 * get_address_of_visibleIndicesY_3() { return &___visibleIndicesY_3; } inline void set_visibleIndicesY_3(NativeArray_1_tD60079F06B473C85CF6C2BB4F2D203F38191AE99 value) { ___visibleIndicesY_3 = value; } inline static int32_t get_offset_of_lodParameters_4() { return static_cast<int32_t>(offsetof(BatchCullingContext_t26E634F354C4F3915108C34A32FD32118FFE1F66, ___lodParameters_4)); } inline LODParameters_tA41D06C4BDB03138144BE9DCC4BC6B37963DC5CD get_lodParameters_4() const { return ___lodParameters_4; } inline LODParameters_tA41D06C4BDB03138144BE9DCC4BC6B37963DC5CD * get_address_of_lodParameters_4() { return &___lodParameters_4; } inline void set_lodParameters_4(LODParameters_tA41D06C4BDB03138144BE9DCC4BC6B37963DC5CD value) { ___lodParameters_4 = value; } inline static int32_t get_offset_of_cullingMatrix_5() { return static_cast<int32_t>(offsetof(BatchCullingContext_t26E634F354C4F3915108C34A32FD32118FFE1F66, ___cullingMatrix_5)); } inline Matrix4x4_tDE7FF4F2E2EA284F6EFE00D627789D0E5B8B4461 get_cullingMatrix_5() const { return ___cullingMatrix_5; } inline Matrix4x4_tDE7FF4F2E2EA284F6EFE00D627789D0E5B8B4461 * get_address_of_cullingMatrix_5() { return &___cullingMatrix_5; } inline void set_cullingMatrix_5(Matrix4x4_tDE7FF4F2E2EA284F6EFE00D627789D0E5B8B4461 value) { ___cullingMatrix_5 = value; } inline static int32_t get_offset_of_nearPlane_6() { return static_cast<int32_t>(offsetof(BatchCullingContext_t26E634F354C4F3915108C34A32FD32118FFE1F66, ___nearPlane_6)); } inline float get_nearPlane_6() const { return ___nearPlane_6; } inline float* get_address_of_nearPlane_6() { return &___nearPlane_6; } inline void set_nearPlane_6(float value) { ___nearPlane_6 = value; } }; // UnityEngine.Profiling.Experimental.DebugScreenCapture struct DebugScreenCapture_t82C35632EAE92C143A87097DC34C70EFADB750B1 { public: // Unity.Collections.NativeArray`1<System.Byte> UnityEngine.Profiling.Experimental.DebugScreenCapture::<rawImageDataReference>k__BackingField NativeArray_1_t3C2855C5B238E8C6739D4C17833F244B95C0F785 ___U3CrawImageDataReferenceU3Ek__BackingField_0; // UnityEngine.TextureFormat UnityEngine.Profiling.Experimental.DebugScreenCapture::<imageFormat>k__BackingField int32_t ___U3CimageFormatU3Ek__BackingField_1; // System.Int32 UnityEngine.Profiling.Experimental.DebugScreenCapture::<width>k__BackingField int32_t ___U3CwidthU3Ek__BackingField_2; // System.Int32 UnityEngine.Profiling.Experimental.DebugScreenCapture::<height>k__BackingField int32_t ___U3CheightU3Ek__BackingField_3; public: inline static int32_t get_offset_of_U3CrawImageDataReferenceU3Ek__BackingField_0() { return static_cast<int32_t>(offsetof(DebugScreenCapture_t82C35632EAE92C143A87097DC34C70EFADB750B1, ___U3CrawImageDataReferenceU3Ek__BackingField_0)); } inline NativeArray_1_t3C2855C5B238E8C6739D4C17833F244B95C0F785 get_U3CrawImageDataReferenceU3Ek__BackingField_0() const { return ___U3CrawImageDataReferenceU3Ek__BackingField_0; } inline NativeArray_1_t3C2855C5B238E8C6739D4C17833F244B95C0F785 * get_address_of_U3CrawImageDataReferenceU3Ek__BackingField_0() { return &___U3CrawImageDataReferenceU3Ek__BackingField_0; } inline void set_U3CrawImageDataReferenceU3Ek__BackingField_0(NativeArray_1_t3C2855C5B238E8C6739D4C17833F244B95C0F785 value) { ___U3CrawImageDataReferenceU3Ek__BackingField_0 = value; } inline static int32_t get_offset_of_U3CimageFormatU3Ek__BackingField_1() { return static_cast<int32_t>(offsetof(DebugScreenCapture_t82C35632EAE92C143A87097DC34C70EFADB750B1, ___U3CimageFormatU3Ek__BackingField_1)); } inline int32_t get_U3CimageFormatU3Ek__BackingField_1() const { return ___U3CimageFormatU3Ek__BackingField_1; } inline int32_t* get_address_of_U3CimageFormatU3Ek__BackingField_1() { return &___U3CimageFormatU3Ek__BackingField_1; } inline void set_U3CimageFormatU3Ek__BackingField_1(int32_t value) { ___U3CimageFormatU3Ek__BackingField_1 = value; } inline static int32_t get_offset_of_U3CwidthU3Ek__BackingField_2() { return static_cast<int32_t>(offsetof(DebugScreenCapture_t82C35632EAE92C143A87097DC34C70EFADB750B1, ___U3CwidthU3Ek__BackingField_2)); } inline int32_t get_U3CwidthU3Ek__BackingField_2() const { return ___U3CwidthU3Ek__BackingField_2; } inline int32_t* get_address_of_U3CwidthU3Ek__BackingField_2() { return &___U3CwidthU3Ek__BackingField_2; } inline void set_U3CwidthU3Ek__BackingField_2(int32_t value) { ___U3CwidthU3Ek__BackingField_2 = value; } inline static int32_t get_offset_of_U3CheightU3Ek__BackingField_3() { return static_cast<int32_t>(offsetof(DebugScreenCapture_t82C35632EAE92C143A87097DC34C70EFADB750B1, ___U3CheightU3Ek__BackingField_3)); } inline int32_t get_U3CheightU3Ek__BackingField_3() const { return ___U3CheightU3Ek__BackingField_3; } inline int32_t* get_address_of_U3CheightU3Ek__BackingField_3() { return &___U3CheightU3Ek__BackingField_3; } inline void set_U3CheightU3Ek__BackingField_3(int32_t value) { ___U3CheightU3Ek__BackingField_3 = value; } }; // UnityEngine.UIElements.StyleSheets.StylePropertyValue struct StylePropertyValue_t5F204B329C961E7A1EA49F83333FCE27D4FDB2A8 { public: // UnityEngine.UIElements.StyleSheet UnityEngine.UIElements.StyleSheets.StylePropertyValue::sheet StyleSheet_tB0EAD646842945D83386B5A06090AAFE6A60520F * ___sheet_0; // UnityEngine.UIElements.StyleValueHandle UnityEngine.UIElements.StyleSheets.StylePropertyValue::handle StyleValueHandle_t46AFAF3564D6DF2EA2739A1D85438355478AD185 ___handle_1; public: inline static int32_t get_offset_of_sheet_0() { return static_cast<int32_t>(offsetof(StylePropertyValue_t5F204B329C961E7A1EA49F83333FCE27D4FDB2A8, ___sheet_0)); } inline StyleSheet_tB0EAD646842945D83386B5A06090AAFE6A60520F * get_sheet_0() const { return ___sheet_0; } inline StyleSheet_tB0EAD646842945D83386B5A06090AAFE6A60520F ** get_address_of_sheet_0() { return &___sheet_0; } inline void set_sheet_0(StyleSheet_tB0EAD646842945D83386B5A06090AAFE6A60520F * value) { ___sheet_0 = value; Il2CppCodeGenWriteBarrier((void**)(&___sheet_0), (void*)value); } inline static int32_t get_offset_of_handle_1() { return static_cast<int32_t>(offsetof(StylePropertyValue_t5F204B329C961E7A1EA49F83333FCE27D4FDB2A8, ___handle_1)); } inline StyleValueHandle_t46AFAF3564D6DF2EA2739A1D85438355478AD185 get_handle_1() const { return ___handle_1; } inline StyleValueHandle_t46AFAF3564D6DF2EA2739A1D85438355478AD185 * get_address_of_handle_1() { return &___handle_1; } inline void set_handle_1(StyleValueHandle_t46AFAF3564D6DF2EA2739A1D85438355478AD185 value) { ___handle_1 = value; } }; // Native definition for P/Invoke marshalling of UnityEngine.UIElements.StyleSheets.StylePropertyValue struct StylePropertyValue_t5F204B329C961E7A1EA49F83333FCE27D4FDB2A8_marshaled_pinvoke { StyleSheet_tB0EAD646842945D83386B5A06090AAFE6A60520F * ___sheet_0; StyleValueHandle_t46AFAF3564D6DF2EA2739A1D85438355478AD185 ___handle_1; }; // Native definition for COM marshalling of UnityEngine.UIElements.StyleSheets.StylePropertyValue struct StylePropertyValue_t5F204B329C961E7A1EA49F83333FCE27D4FDB2A8_marshaled_com { StyleSheet_tB0EAD646842945D83386B5A06090AAFE6A60520F * ___sheet_0; StyleValueHandle_t46AFAF3564D6DF2EA2739A1D85438355478AD185 ___handle_1; }; // UnityEngine.UIElements.StyleSheets.StyleValue struct StyleValue_t761E8EE98A6473F2FB9DE803BD8F14F047430FF5 { public: union { #pragma pack(push, tp, 1) struct { // UnityEngine.UIElements.StyleSheets.StylePropertyId UnityEngine.UIElements.StyleSheets.StyleValue::id int32_t ___id_0; }; #pragma pack(pop, tp) struct { int32_t ___id_0_forAlignmentOnly; }; #pragma pack(push, tp, 1) struct { char ___keyword_1_OffsetPadding[4]; // UnityEngine.UIElements.StyleKeyword UnityEngine.UIElements.StyleSheets.StyleValue::keyword int32_t ___keyword_1; }; #pragma pack(pop, tp) struct { char ___keyword_1_OffsetPadding_forAlignmentOnly[4]; int32_t ___keyword_1_forAlignmentOnly; }; #pragma pack(push, tp, 1) struct { char ___number_2_OffsetPadding[8]; // System.Single UnityEngine.UIElements.StyleSheets.StyleValue::number float ___number_2; }; #pragma pack(pop, tp) struct { char ___number_2_OffsetPadding_forAlignmentOnly[8]; float ___number_2_forAlignmentOnly; }; #pragma pack(push, tp, 1) struct { char ___length_3_OffsetPadding[8]; // UnityEngine.UIElements.Length UnityEngine.UIElements.StyleSheets.StyleValue::length Length_tC812F6D7266A044F3AB7DBC98EC0A52678643696 ___length_3; }; #pragma pack(pop, tp) struct { char ___length_3_OffsetPadding_forAlignmentOnly[8]; Length_tC812F6D7266A044F3AB7DBC98EC0A52678643696 ___length_3_forAlignmentOnly; }; #pragma pack(push, tp, 1) struct { char ___color_4_OffsetPadding[8]; // UnityEngine.Color UnityEngine.UIElements.StyleSheets.StyleValue::color Color_tF40DAF76C04FFECF3FE6024F85A294741C9CC659 ___color_4; }; #pragma pack(pop, tp) struct { char ___color_4_OffsetPadding_forAlignmentOnly[8]; Color_tF40DAF76C04FFECF3FE6024F85A294741C9CC659 ___color_4_forAlignmentOnly; }; #pragma pack(push, tp, 1) struct { char ___resource_5_OffsetPadding[8]; // System.Runtime.InteropServices.GCHandle UnityEngine.UIElements.StyleSheets.StyleValue::resource GCHandle_t757890BC4BBBEDE5A623A3C110013EDD24613603 ___resource_5; }; #pragma pack(pop, tp) struct { char ___resource_5_OffsetPadding_forAlignmentOnly[8]; GCHandle_t757890BC4BBBEDE5A623A3C110013EDD24613603 ___resource_5_forAlignmentOnly; }; }; public: inline static int32_t get_offset_of_id_0() { return static_cast<int32_t>(offsetof(StyleValue_t761E8EE98A6473F2FB9DE803BD8F14F047430FF5, ___id_0)); } inline int32_t get_id_0() const { return ___id_0; } inline int32_t* get_address_of_id_0() { return &___id_0; } inline void set_id_0(int32_t value) { ___id_0 = value; } inline static int32_t get_offset_of_keyword_1() { return static_cast<int32_t>(offsetof(StyleValue_t761E8EE98A6473F2FB9DE803BD8F14F047430FF5, ___keyword_1)); } inline int32_t get_keyword_1() const { return ___keyword_1; } inline int32_t* get_address_of_keyword_1() { return &___keyword_1; } inline void set_keyword_1(int32_t value) { ___keyword_1 = value; } inline static int32_t get_offset_of_number_2() { return static_cast<int32_t>(offsetof(StyleValue_t761E8EE98A6473F2FB9DE803BD8F14F047430FF5, ___number_2)); } inline float get_number_2() const { return ___number_2; } inline float* get_address_of_number_2() { return &___number_2; } inline void set_number_2(float value) { ___number_2 = value; } inline static int32_t get_offset_of_length_3() { return static_cast<int32_t>(offsetof(StyleValue_t761E8EE98A6473F2FB9DE803BD8F14F047430FF5, ___length_3)); } inline Length_tC812F6D7266A044F3AB7DBC98EC0A52678643696 get_length_3() const { return ___length_3; } inline Length_tC812F6D7266A044F3AB7DBC98EC0A52678643696 * get_address_of_length_3() { return &___length_3; } inline void set_length_3(Length_tC812F6D7266A044F3AB7DBC98EC0A52678643696 value) { ___length_3 = value; } inline static int32_t get_offset_of_color_4() { return static_cast<int32_t>(offsetof(StyleValue_t761E8EE98A6473F2FB9DE803BD8F14F047430FF5, ___color_4)); } inline Color_tF40DAF76C04FFECF3FE6024F85A294741C9CC659 get_color_4() const { return ___color_4; } inline Color_tF40DAF76C04FFECF3FE6024F85A294741C9CC659 * get_address_of_color_4() { return &___color_4; } inline void set_color_4(Color_tF40DAF76C04FFECF3FE6024F85A294741C9CC659 value) { ___color_4 = value; } inline static int32_t get_offset_of_resource_5() { return static_cast<int32_t>(offsetof(StyleValue_t761E8EE98A6473F2FB9DE803BD8F14F047430FF5, ___resource_5)); } inline GCHandle_t757890BC4BBBEDE5A623A3C110013EDD24613603 get_resource_5() const { return ___resource_5; } inline GCHandle_t757890BC4BBBEDE5A623A3C110013EDD24613603 * get_address_of_resource_5() { return &___resource_5; } inline void set_resource_5(GCHandle_t757890BC4BBBEDE5A623A3C110013EDD24613603 value) { ___resource_5 = value; } }; #ifdef __clang__ #pragma clang diagnostic pop #endif static KeyValuePair_2_tB6ECB423D6D4B3D2F916E061DDF9A7C3F0958D57 UnresolvedVirtualCall_0 (RuntimeObject * __this, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static KeyValuePair_2_tFB6A066C69E28C6ACA5FC5E24D969BFADC5FA625 UnresolvedVirtualCall_1 (RuntimeObject * __this, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static KeyValuePair_2_t69D65A575EDB8417950EECED1DEB6124D053CC7B UnresolvedVirtualCall_2 (RuntimeObject * __this, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static Nullable_1_t864FD0051A05D37F91C857AB496BFCB3FE756103 UnresolvedVirtualCall_3 (RuntimeObject * __this, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static uint8_t UnresolvedVirtualCall_4 (RuntimeObject * __this, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static uint8_t UnresolvedVirtualCall_5 (RuntimeObject * __this, RuntimeObject * ___Object1, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static Color_tF40DAF76C04FFECF3FE6024F85A294741C9CC659 UnresolvedVirtualCall_6 (RuntimeObject * __this, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static Color32_tDB54A78627878A7D2DE42BB028D64306A18E858D UnresolvedVirtualCall_7 (RuntimeObject * __this, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static ConsoleKeyInfo_tDA8AC07839288484FCB167A81B4FBA92ECCEAF88 UnresolvedVirtualCall_8 (RuntimeObject * __this, int8_t ___SByte1, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static Cursor_t6FF56333603B811AE4BB9A0C7D66B88D874A4C4F UnresolvedVirtualCall_9 (RuntimeObject * __this, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static CustomAttributeNamedArgument_t618778691CF7F5B44F7177210A817A29D3DAEDDA UnresolvedVirtualCall_10 (RuntimeObject * __this, int32_t ___Int321, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static CustomAttributeTypedArgument_tE7152E8FACDD29A8E0040E151C86F436FA8E6910 UnresolvedVirtualCall_11 (RuntimeObject * __this, int32_t ___Int321, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static DateTime_tEAF2CD16E071DF5441F40822E4CFE880E5245405 UnresolvedVirtualCall_12 (RuntimeObject * __this, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static DateTime_tEAF2CD16E071DF5441F40822E4CFE880E5245405 UnresolvedVirtualCall_13 (RuntimeObject * __this, int32_t ___Int321, int32_t ___Int322, int32_t ___Int323, int32_t ___Int324, int32_t ___Int325, int32_t ___Int326, int32_t ___Int327, int32_t ___Int328, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static DateTime_tEAF2CD16E071DF5441F40822E4CFE880E5245405 UnresolvedVirtualCall_14 (RuntimeObject * __this, RuntimeObject * ___Object1, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static Decimal_t2978B229CA86D3B7BA66A0AEEE014E0DE4F940D7 UnresolvedVirtualCall_15 (RuntimeObject * __this, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static Decimal_t2978B229CA86D3B7BA66A0AEEE014E0DE4F940D7 UnresolvedVirtualCall_16 (RuntimeObject * __this, RuntimeObject * ___Object1, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static DictionaryEntry_tF60471FAB430320A9C7D4382BF966EAAC06D7A90 UnresolvedVirtualCall_17 (RuntimeObject * __this, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static double UnresolvedVirtualCall_18 (RuntimeObject * __this, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static double UnresolvedVirtualCall_19 (RuntimeObject * __this, RuntimeObject * ___Object1, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static EventInterests_t4DC3B6F7CFFDBF0AC4DE302F9102C769B87B9D79 UnresolvedVirtualCall_20 (RuntimeObject * __this, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static Guid_t UnresolvedVirtualCall_21 (RuntimeObject * __this, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static int16_t UnresolvedVirtualCall_22 (RuntimeObject * __this, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static int16_t UnresolvedVirtualCall_23 (RuntimeObject * __this, int16_t ___Int161, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static int16_t UnresolvedVirtualCall_24 (RuntimeObject * __this, RuntimeObject * ___Object1, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static int16_t UnresolvedVirtualCall_25 (RuntimeObject * __this, RuntimeObject * ___Object1, int32_t ___Int322, int16_t ___Int163, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static int32_t UnresolvedVirtualCall_26 (RuntimeObject * __this, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static int32_t UnresolvedVirtualCall_27 (RuntimeObject * __this, KeyValuePair_2_tB6ECB423D6D4B3D2F916E061DDF9A7C3F0958D57 ___KeyValuePair_21, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static int32_t UnresolvedVirtualCall_28 (RuntimeObject * __this, KeyValuePair_2_tB6ECB423D6D4B3D2F916E061DDF9A7C3F0958D57 ___KeyValuePair_21, KeyValuePair_2_tB6ECB423D6D4B3D2F916E061DDF9A7C3F0958D57 ___KeyValuePair_22, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static int32_t UnresolvedVirtualCall_29 (RuntimeObject * __this, KeyValuePair_2_t69D65A575EDB8417950EECED1DEB6124D053CC7B ___KeyValuePair_21, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static int32_t UnresolvedVirtualCall_30 (RuntimeObject * __this, KeyValuePair_2_t69D65A575EDB8417950EECED1DEB6124D053CC7B ___KeyValuePair_21, KeyValuePair_2_t69D65A575EDB8417950EECED1DEB6124D053CC7B ___KeyValuePair_22, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static int32_t UnresolvedVirtualCall_31 (RuntimeObject * __this, uint8_t ___Byte1, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static int32_t UnresolvedVirtualCall_32 (RuntimeObject * __this, Color32_tDB54A78627878A7D2DE42BB028D64306A18E858D ___Color321, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static int32_t UnresolvedVirtualCall_33 (RuntimeObject * __this, Color32_tDB54A78627878A7D2DE42BB028D64306A18E858D ___Color321, Color32_tDB54A78627878A7D2DE42BB028D64306A18E858D ___Color322, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static int32_t UnresolvedVirtualCall_34 (RuntimeObject * __this, ColorBlock_t04DFBB97B4772D2E00FD17ED2E3E6590E6916955 ___ColorBlock1, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static int32_t UnresolvedVirtualCall_35 (RuntimeObject * __this, CustomAttributeNamedArgument_t618778691CF7F5B44F7177210A817A29D3DAEDDA ___CustomAttributeNamedArgument1, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static int32_t UnresolvedVirtualCall_36 (RuntimeObject * __this, CustomAttributeTypedArgument_tE7152E8FACDD29A8E0040E151C86F436FA8E6910 ___CustomAttributeTypedArgument1, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static int32_t UnresolvedVirtualCall_37 (RuntimeObject * __this, DateTime_tEAF2CD16E071DF5441F40822E4CFE880E5245405 ___DateTime1, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static int32_t UnresolvedVirtualCall_38 (RuntimeObject * __this, DateTime_tEAF2CD16E071DF5441F40822E4CFE880E5245405 ___DateTime1, int32_t ___Int322, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static int32_t UnresolvedVirtualCall_39 (RuntimeObject * __this, int16_t ___Int161, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static int32_t UnresolvedVirtualCall_40 (RuntimeObject * __this, int32_t ___Int321, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static int32_t UnresolvedVirtualCall_41 (RuntimeObject * __this, int32_t ___Int321, int32_t ___Int322, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static int32_t UnresolvedVirtualCall_42 (RuntimeObject * __this, int32_t ___Int321, int32_t ___Int322, int32_t ___Int323, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static int32_t UnresolvedVirtualCall_43 (RuntimeObject * __this, int64_t ___Int641, int32_t ___Int322, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static int32_t UnresolvedVirtualCall_44 (RuntimeObject * __this, Navigation_t1CF0FFB22C0357CD64714FB7A40A275F899D363A ___Navigation1, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static int32_t UnresolvedVirtualCall_45 (RuntimeObject * __this, RuntimeObject * ___Object1, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static int32_t UnresolvedVirtualCall_46 (RuntimeObject * __this, RuntimeObject * ___Object1, KeyValuePair_2_tB6ECB423D6D4B3D2F916E061DDF9A7C3F0958D57 ___KeyValuePair_22, int32_t ___Int323, int32_t ___Int324, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static int32_t UnresolvedVirtualCall_47 (RuntimeObject * __this, RuntimeObject * ___Object1, KeyValuePair_2_t69D65A575EDB8417950EECED1DEB6124D053CC7B ___KeyValuePair_22, int32_t ___Int323, int32_t ___Int324, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static int32_t UnresolvedVirtualCall_48 (RuntimeObject * __this, RuntimeObject * ___Object1, Color32_tDB54A78627878A7D2DE42BB028D64306A18E858D ___Color322, int32_t ___Int323, int32_t ___Int324, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static int32_t UnresolvedVirtualCall_49 (RuntimeObject * __this, RuntimeObject * ___Object1, int32_t ___Int322, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static int32_t UnresolvedVirtualCall_50 (RuntimeObject * __this, RuntimeObject * ___Object1, int32_t ___Int322, int32_t ___Int323, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static int32_t UnresolvedVirtualCall_51 (RuntimeObject * __this, RuntimeObject * ___Object1, int32_t ___Int322, int32_t ___Int323, int32_t ___Int324, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static int32_t UnresolvedVirtualCall_52 (RuntimeObject * __this, RuntimeObject * ___Object1, int32_t ___Int322, int32_t ___Int323, RuntimeObject * ___Object4, int32_t ___Int325, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static int32_t UnresolvedVirtualCall_53 (RuntimeObject * __this, RuntimeObject * ___Object1, int32_t ___Int322, int32_t ___Int323, RuntimeObject * ___Object4, int32_t ___Int325, int32_t ___Int326, int32_t ___Int327, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static int32_t UnresolvedVirtualCall_54 (RuntimeObject * __this, RuntimeObject * ___Object1, int32_t ___Int322, int32_t ___Int323, RuntimeObject * ___Object4, int32_t ___Int325, int8_t ___SByte6, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static int32_t UnresolvedVirtualCall_55 (RuntimeObject * __this, RuntimeObject * ___Object1, int32_t ___Int322, int32_t ___Int323, int8_t ___SByte4, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static int32_t UnresolvedVirtualCall_56 (RuntimeObject * __this, RuntimeObject * ___Object1, int32_t ___Int322, RuntimeObject * ___Object3, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static int32_t UnresolvedVirtualCall_57 (RuntimeObject * __this, RuntimeObject * ___Object1, int32_t ___Int322, RuntimeObject * ___Object3, int32_t ___Int324, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static int32_t UnresolvedVirtualCall_58 (RuntimeObject * __this, RuntimeObject * ___Object1, int32_t ___Int322, RuntimeObject * ___Object3, int32_t ___Int324, RuntimeObject * ___Object5, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static int32_t UnresolvedVirtualCall_59 (RuntimeObject * __this, RuntimeObject * ___Object1, int32_t ___Int322, RuntimeObject * ___Object3, int32_t ___Int324, int8_t ___SByte5, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static int32_t UnresolvedVirtualCall_60 (RuntimeObject * __this, RuntimeObject * ___Object1, int32_t ___Int322, int8_t ___SByte3, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static int32_t UnresolvedVirtualCall_61 (RuntimeObject * __this, RuntimeObject * ___Object1, RuntimeObject * ___Object2, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static int32_t UnresolvedVirtualCall_62 (RuntimeObject * __this, RuntimeObject * ___Object1, RuntimeObject * ___Object2, int32_t ___Int323, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static int32_t UnresolvedVirtualCall_63 (RuntimeObject * __this, RuntimeObject * ___Object1, RuntimeObject * ___Object2, int32_t ___Int323, int32_t ___Int324, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static int32_t UnresolvedVirtualCall_64 (RuntimeObject * __this, RuntimeObject * ___Object1, RuntimeObject * ___Object2, int32_t ___Int323, int32_t ___Int324, int32_t ___Int325, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static int32_t UnresolvedVirtualCall_65 (RuntimeObject * __this, RuntimeObject * ___Object1, RaycastHit2D_t210878DAEBC96C1F69DF9883C454758724A106A4 ___RaycastHit2D2, int32_t ___Int323, int32_t ___Int324, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static int32_t UnresolvedVirtualCall_66 (RuntimeObject * __this, RuntimeObject * ___Object1, RaycastResult_t9EFDE24B29650BD6DC8A49D954A3769E17146BCE ___RaycastResult2, int32_t ___Int323, int32_t ___Int324, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static int32_t UnresolvedVirtualCall_67 (RuntimeObject * __this, RuntimeObject * ___Object1, RenderChainTextEntry_t2B7733A1A5036FC66D89122F798A839F058AE7C7 ___RenderChainTextEntry2, int32_t ___Int323, int32_t ___Int324, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static int32_t UnresolvedVirtualCall_68 (RuntimeObject * __this, RuntimeObject * ___Object1, StylePropertyValue_t5F204B329C961E7A1EA49F83333FCE27D4FDB2A8 ___StylePropertyValue2, int32_t ___Int323, int32_t ___Int324, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static int32_t UnresolvedVirtualCall_69 (RuntimeObject * __this, RuntimeObject * ___Object1, StyleSelectorPart_t707EDC970FC0F3E91E56DCBC178672A120426D54 ___StyleSelectorPart2, int32_t ___Int323, int32_t ___Int324, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static int32_t UnresolvedVirtualCall_70 (RuntimeObject * __this, RuntimeObject * ___Object1, StyleValue_t761E8EE98A6473F2FB9DE803BD8F14F047430FF5 ___StyleValue2, int32_t ___Int323, int32_t ___Int324, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static int32_t UnresolvedVirtualCall_71 (RuntimeObject * __this, RuntimeObject * ___Object1, StyleValueHandle_t46AFAF3564D6DF2EA2739A1D85438355478AD185 ___StyleValueHandle2, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static int32_t UnresolvedVirtualCall_72 (RuntimeObject * __this, RuntimeObject * ___Object1, StyleVariable_tEF01599E5D91F65B4405F88847D7F6AA87B210BD ___StyleVariable2, int32_t ___Int323, int32_t ___Int324, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static int32_t UnresolvedVirtualCall_73 (RuntimeObject * __this, RuntimeObject * ___Object1, UICharInfo_tDEA65B831FAD06D1E9B10A6088E05C6D615B089A ___UICharInfo2, int32_t ___Int323, int32_t ___Int324, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static int32_t UnresolvedVirtualCall_74 (RuntimeObject * __this, RuntimeObject * ___Object1, UILineInfo_tD082FF4894030AD4EBF57ACF6A997135E4B8B67C ___UILineInfo2, int32_t ___Int323, int32_t ___Int324, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static int32_t UnresolvedVirtualCall_75 (RuntimeObject * __this, RuntimeObject * ___Object1, UIVertex_tD94AAC5F0B42DBC441AAA8ADBFCFF9E5C320C03A ___UIVertex2, int32_t ___Int323, int32_t ___Int324, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static int32_t UnresolvedVirtualCall_76 (RuntimeObject * __this, RuntimeObject * ___Object1, Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E ___Vector32, int32_t ___Int323, int32_t ___Int324, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static int32_t UnresolvedVirtualCall_77 (RuntimeObject * __this, RuntimeObject * ___Object1, Vector4_tA56A37FC5661BCC89C3DDC24BE12BA5BCB6A02C7 ___Vector42, int32_t ___Int323, int32_t ___Int324, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static int32_t UnresolvedVirtualCall_78 (RuntimeObject * __this, RuntimeObject * ___Object1, OrderBlock_t0B106828F588BC2F0B9895425E6FD39EDA45C1E2 ___OrderBlock2, int32_t ___Int323, int32_t ___Int324, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static int32_t UnresolvedVirtualCall_79 (RuntimeObject * __this, RuntimeObject * ___Object1, RenderRequest_t7DEDFA6AAA1C8D381280183054C328F26BBCCE94 ___RenderRequest2, int32_t ___Int323, int32_t ___Int324, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static int32_t UnresolvedVirtualCall_80 (RuntimeObject * __this, RuntimeObject * ___Object1, FocusedElement_tF9897C653908D7004ACBEC7265361828BA9DB206 ___FocusedElement2, int32_t ___Int323, int32_t ___Int324, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static int32_t UnresolvedVirtualCall_81 (RuntimeObject * __this, RuntimeObject * ___Object1, TextureInfo_tD08547B0C7CCA578BCF7493CE018FC48EDF65069 ___TextureInfo2, int32_t ___Int323, int32_t ___Int324, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static int32_t UnresolvedVirtualCall_82 (RuntimeObject * __this, RuntimeObject * ___Object1, WorkRequest_tA19FD4D1269D8EE2EA886AAF036C4F7F09154393 ___WorkRequest2, int32_t ___Int323, int32_t ___Int324, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static int32_t UnresolvedVirtualCall_83 (RuntimeObject * __this, RaycastHit_t59E5AEC8FE13BFA2ACBB6FFBDB7585FFB7288F89 ___RaycastHit1, RaycastHit_t59E5AEC8FE13BFA2ACBB6FFBDB7585FFB7288F89 ___RaycastHit2, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static int32_t UnresolvedVirtualCall_84 (RuntimeObject * __this, RaycastHit2D_t210878DAEBC96C1F69DF9883C454758724A106A4 ___RaycastHit2D1, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static int32_t UnresolvedVirtualCall_85 (RuntimeObject * __this, RaycastHit2D_t210878DAEBC96C1F69DF9883C454758724A106A4 ___RaycastHit2D1, RaycastHit2D_t210878DAEBC96C1F69DF9883C454758724A106A4 ___RaycastHit2D2, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static int32_t UnresolvedVirtualCall_86 (RuntimeObject * __this, RaycastResult_t9EFDE24B29650BD6DC8A49D954A3769E17146BCE ___RaycastResult1, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static int32_t UnresolvedVirtualCall_87 (RuntimeObject * __this, RaycastResult_t9EFDE24B29650BD6DC8A49D954A3769E17146BCE ___RaycastResult1, RaycastResult_t9EFDE24B29650BD6DC8A49D954A3769E17146BCE ___RaycastResult2, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static int32_t UnresolvedVirtualCall_88 (RuntimeObject * __this, RenderChainTextEntry_t2B7733A1A5036FC66D89122F798A839F058AE7C7 ___RenderChainTextEntry1, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static int32_t UnresolvedVirtualCall_89 (RuntimeObject * __this, RenderChainTextEntry_t2B7733A1A5036FC66D89122F798A839F058AE7C7 ___RenderChainTextEntry1, RenderChainTextEntry_t2B7733A1A5036FC66D89122F798A839F058AE7C7 ___RenderChainTextEntry2, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static int32_t UnresolvedVirtualCall_90 (RuntimeObject * __this, ResourceLocator_t3D496606F94367D5D6B24DA9DC0A3B46E6B53B11 ___ResourceLocator1, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static int32_t UnresolvedVirtualCall_91 (RuntimeObject * __this, int8_t ___SByte1, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static int32_t UnresolvedVirtualCall_92 (RuntimeObject * __this, float ___Single1, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static int32_t UnresolvedVirtualCall_93 (RuntimeObject * __this, SpriteState_t9024961148433175CE2F3D9E8E9239A8B1CAB15E ___SpriteState1, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static int32_t UnresolvedVirtualCall_94 (RuntimeObject * __this, StylePropertyValue_t5F204B329C961E7A1EA49F83333FCE27D4FDB2A8 ___StylePropertyValue1, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static int32_t UnresolvedVirtualCall_95 (RuntimeObject * __this, StylePropertyValue_t5F204B329C961E7A1EA49F83333FCE27D4FDB2A8 ___StylePropertyValue1, StylePropertyValue_t5F204B329C961E7A1EA49F83333FCE27D4FDB2A8 ___StylePropertyValue2, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static int32_t UnresolvedVirtualCall_96 (RuntimeObject * __this, StyleSelectorPart_t707EDC970FC0F3E91E56DCBC178672A120426D54 ___StyleSelectorPart1, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static int32_t UnresolvedVirtualCall_97 (RuntimeObject * __this, StyleSelectorPart_t707EDC970FC0F3E91E56DCBC178672A120426D54 ___StyleSelectorPart1, StyleSelectorPart_t707EDC970FC0F3E91E56DCBC178672A120426D54 ___StyleSelectorPart2, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static int32_t UnresolvedVirtualCall_98 (RuntimeObject * __this, StyleValue_t761E8EE98A6473F2FB9DE803BD8F14F047430FF5 ___StyleValue1, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static int32_t UnresolvedVirtualCall_99 (RuntimeObject * __this, StyleValue_t761E8EE98A6473F2FB9DE803BD8F14F047430FF5 ___StyleValue1, StyleValue_t761E8EE98A6473F2FB9DE803BD8F14F047430FF5 ___StyleValue2, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static int32_t UnresolvedVirtualCall_100 (RuntimeObject * __this, StyleVariable_tEF01599E5D91F65B4405F88847D7F6AA87B210BD ___StyleVariable1, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static int32_t UnresolvedVirtualCall_101 (RuntimeObject * __this, StyleVariable_tEF01599E5D91F65B4405F88847D7F6AA87B210BD ___StyleVariable1, StyleVariable_tEF01599E5D91F65B4405F88847D7F6AA87B210BD ___StyleVariable2, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static int32_t UnresolvedVirtualCall_102 (RuntimeObject * __this, TextureId_t1DB18D78549F5571E12587245D818634A6EA17C5 ___TextureId1, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static int32_t UnresolvedVirtualCall_103 (RuntimeObject * __this, UICharInfo_tDEA65B831FAD06D1E9B10A6088E05C6D615B089A ___UICharInfo1, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static int32_t UnresolvedVirtualCall_104 (RuntimeObject * __this, UICharInfo_tDEA65B831FAD06D1E9B10A6088E05C6D615B089A ___UICharInfo1, UICharInfo_tDEA65B831FAD06D1E9B10A6088E05C6D615B089A ___UICharInfo2, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static int32_t UnresolvedVirtualCall_105 (RuntimeObject * __this, UILineInfo_tD082FF4894030AD4EBF57ACF6A997135E4B8B67C ___UILineInfo1, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static int32_t UnresolvedVirtualCall_106 (RuntimeObject * __this, UILineInfo_tD082FF4894030AD4EBF57ACF6A997135E4B8B67C ___UILineInfo1, UILineInfo_tD082FF4894030AD4EBF57ACF6A997135E4B8B67C ___UILineInfo2, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static int32_t UnresolvedVirtualCall_107 (RuntimeObject * __this, UIVertex_tD94AAC5F0B42DBC441AAA8ADBFCFF9E5C320C03A ___UIVertex1, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static int32_t UnresolvedVirtualCall_108 (RuntimeObject * __this, UIVertex_tD94AAC5F0B42DBC441AAA8ADBFCFF9E5C320C03A ___UIVertex1, UIVertex_tD94AAC5F0B42DBC441AAA8ADBFCFF9E5C320C03A ___UIVertex2, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static int32_t UnresolvedVirtualCall_109 (RuntimeObject * __this, uint64_t ___UInt641, uint64_t ___UInt642, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static int32_t UnresolvedVirtualCall_110 (RuntimeObject * __this, Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9 ___Vector21, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static int32_t UnresolvedVirtualCall_111 (RuntimeObject * __this, Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E ___Vector31, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static int32_t UnresolvedVirtualCall_112 (RuntimeObject * __this, Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E ___Vector31, Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E ___Vector32, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static int32_t UnresolvedVirtualCall_113 (RuntimeObject * __this, Vector4_tA56A37FC5661BCC89C3DDC24BE12BA5BCB6A02C7 ___Vector41, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static int32_t UnresolvedVirtualCall_114 (RuntimeObject * __this, Vector4_tA56A37FC5661BCC89C3DDC24BE12BA5BCB6A02C7 ___Vector41, Vector4_tA56A37FC5661BCC89C3DDC24BE12BA5BCB6A02C7 ___Vector42, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static int32_t UnresolvedVirtualCall_115 (RuntimeObject * __this, OrderBlock_t0B106828F588BC2F0B9895425E6FD39EDA45C1E2 ___OrderBlock1, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static int32_t UnresolvedVirtualCall_116 (RuntimeObject * __this, OrderBlock_t0B106828F588BC2F0B9895425E6FD39EDA45C1E2 ___OrderBlock1, OrderBlock_t0B106828F588BC2F0B9895425E6FD39EDA45C1E2 ___OrderBlock2, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static int32_t UnresolvedVirtualCall_117 (RuntimeObject * __this, RenderRequest_t7DEDFA6AAA1C8D381280183054C328F26BBCCE94 ___RenderRequest1, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static int32_t UnresolvedVirtualCall_118 (RuntimeObject * __this, RenderRequest_t7DEDFA6AAA1C8D381280183054C328F26BBCCE94 ___RenderRequest1, RenderRequest_t7DEDFA6AAA1C8D381280183054C328F26BBCCE94 ___RenderRequest2, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static int32_t UnresolvedVirtualCall_119 (RuntimeObject * __this, FocusedElement_tF9897C653908D7004ACBEC7265361828BA9DB206 ___FocusedElement1, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static int32_t UnresolvedVirtualCall_120 (RuntimeObject * __this, FocusedElement_tF9897C653908D7004ACBEC7265361828BA9DB206 ___FocusedElement1, FocusedElement_tF9897C653908D7004ACBEC7265361828BA9DB206 ___FocusedElement2, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static int32_t UnresolvedVirtualCall_121 (RuntimeObject * __this, PseudoStateData_t3F1A53FFD3D401315DCAD65C924AA3B7922AD4F3 ___PseudoStateData1, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static int32_t UnresolvedVirtualCall_122 (RuntimeObject * __this, TextureInfo_tD08547B0C7CCA578BCF7493CE018FC48EDF65069 ___TextureInfo1, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static int32_t UnresolvedVirtualCall_123 (RuntimeObject * __this, TextureInfo_tD08547B0C7CCA578BCF7493CE018FC48EDF65069 ___TextureInfo1, TextureInfo_tD08547B0C7CCA578BCF7493CE018FC48EDF65069 ___TextureInfo2, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static int32_t UnresolvedVirtualCall_124 (RuntimeObject * __this, WorkRequest_tA19FD4D1269D8EE2EA886AAF036C4F7F09154393 ___WorkRequest1, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static int32_t UnresolvedVirtualCall_125 (RuntimeObject * __this, WorkRequest_tA19FD4D1269D8EE2EA886AAF036C4F7F09154393 ___WorkRequest1, WorkRequest_tA19FD4D1269D8EE2EA886AAF036C4F7F09154393 ___WorkRequest2, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static int64_t UnresolvedVirtualCall_126 (RuntimeObject * __this, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static int64_t UnresolvedVirtualCall_127 (RuntimeObject * __this, int64_t ___Int641, int32_t ___Int322, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static int64_t UnresolvedVirtualCall_128 (RuntimeObject * __this, RuntimeObject * ___Object1, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static int64_t UnresolvedVirtualCall_129 (RuntimeObject * __this, RuntimeObject * ___Object1, RuntimeObject * ___Object2, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static intptr_t UnresolvedVirtualCall_130 (RuntimeObject * __this, RuntimeObject * ___Object1, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static JobHandle_t8AEB8D31C25D7774C71D62B0C662525E6E36D847 UnresolvedVirtualCall_131 (RuntimeObject * __this, RuntimeObject * ___Object1, BatchCullingContext_t26E634F354C4F3915108C34A32FD32118FFE1F66 ___BatchCullingContext2, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static RuntimeObject * UnresolvedVirtualCall_132 (RuntimeObject * __this, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static RuntimeObject * UnresolvedVirtualCall_133 (RuntimeObject * __this, int32_t ___Int321, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static RuntimeObject * UnresolvedVirtualCall_134 (RuntimeObject * __this, int32_t ___Int321, RuntimeObject * ___Object2, int32_t ___Int323, RuntimeObject * ___Object4, RuntimeObject * ___Object5, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static RuntimeObject * UnresolvedVirtualCall_135 (RuntimeObject * __this, int32_t ___Int321, RuntimeObject * ___Object2, RuntimeObject * ___Object3, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static RuntimeObject * UnresolvedVirtualCall_136 (RuntimeObject * __this, int32_t ___Int321, RuntimeObject * ___Object2, RuntimeObject * ___Object3, RuntimeObject * ___Object4, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static RuntimeObject * UnresolvedVirtualCall_137 (RuntimeObject * __this, int32_t ___Int321, RuntimeObject * ___Object2, RuntimeObject * ___Object3, RuntimeObject * ___Object4, RuntimeObject * ___Object5, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static RuntimeObject * UnresolvedVirtualCall_138 (RuntimeObject * __this, int32_t ___Int321, RuntimeObject * ___Object2, RuntimeObject * ___Object3, RuntimeObject * ___Object4, RuntimeObject * ___Object5, RuntimeObject * ___Object6, RuntimeObject * ___Object7, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static RuntimeObject * UnresolvedVirtualCall_139 (RuntimeObject * __this, int64_t ___Int641, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static RuntimeObject * UnresolvedVirtualCall_140 (RuntimeObject * __this, RuntimeObject * ___Object1, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static RuntimeObject * UnresolvedVirtualCall_141 (RuntimeObject * __this, RuntimeObject * ___Object1, int32_t ___Int322, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static RuntimeObject * UnresolvedVirtualCall_142 (RuntimeObject * __this, RuntimeObject * ___Object1, int32_t ___Int322, int32_t ___Int323, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static RuntimeObject * UnresolvedVirtualCall_143 (RuntimeObject * __this, RuntimeObject * ___Object1, int32_t ___Int322, int32_t ___Int323, RuntimeObject * ___Object4, RuntimeObject * ___Object5, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static RuntimeObject * UnresolvedVirtualCall_144 (RuntimeObject * __this, RuntimeObject * ___Object1, int32_t ___Int322, LoadSceneParameters_t98D2B4FCF0184320590305D3F367834287C2CAA2 ___LoadSceneParameters3, int8_t ___SByte4, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static RuntimeObject * UnresolvedVirtualCall_145 (RuntimeObject * __this, RuntimeObject * ___Object1, int32_t ___Int322, RuntimeObject * ___Object3, int32_t ___Int324, RuntimeObject * ___Object5, RuntimeObject * ___Object6, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static RuntimeObject * UnresolvedVirtualCall_146 (RuntimeObject * __this, RuntimeObject * ___Object1, int32_t ___Int322, RuntimeObject * ___Object3, RuntimeObject * ___Object4, RuntimeObject * ___Object5, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static RuntimeObject * UnresolvedVirtualCall_147 (RuntimeObject * __this, RuntimeObject * ___Object1, int32_t ___Int322, RuntimeObject * ___Object3, RuntimeObject * ___Object4, RuntimeObject * ___Object5, RuntimeObject * ___Object6, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static RuntimeObject * UnresolvedVirtualCall_148 (RuntimeObject * __this, RuntimeObject * ___Object1, int32_t ___Int322, RuntimeObject * ___Object3, RuntimeObject * ___Object4, RuntimeObject * ___Object5, RuntimeObject * ___Object6, RuntimeObject * ___Object7, RuntimeObject * ___Object8, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static RuntimeObject * UnresolvedVirtualCall_149 (RuntimeObject * __this, RuntimeObject * ___Object1, RuntimeObject * ___Object2, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static RuntimeObject * UnresolvedVirtualCall_150 (RuntimeObject * __this, RuntimeObject * ___Object1, RuntimeObject * ___Object2, RuntimeObject * ___Object3, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static RuntimeObject * UnresolvedVirtualCall_151 (RuntimeObject * __this, RuntimeObject * ___Object1, RuntimeObject * ___Object2, RuntimeObject * ___Object3, int32_t ___Int324, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static RuntimeObject * UnresolvedVirtualCall_152 (RuntimeObject * __this, RuntimeObject * ___Object1, RuntimeObject * ___Object2, RuntimeObject * ___Object3, RuntimeObject * ___Object4, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static RuntimeObject * UnresolvedVirtualCall_153 (RuntimeObject * __this, RuntimeObject * ___Object1, RuntimeObject * ___Object2, RuntimeObject * ___Object3, RuntimeObject * ___Object4, int32_t ___Int325, int32_t ___Int326, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static RuntimeObject * UnresolvedVirtualCall_154 (RuntimeObject * __this, RuntimeObject * ___Object1, RuntimeObject * ___Object2, int8_t ___SByte3, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static RuntimeObject * UnresolvedVirtualCall_155 (RuntimeObject * __this, RuntimeObject * ___Object1, RuntimeObject * ___Object2, float ___Single3, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static RuntimeObject * UnresolvedVirtualCall_156 (RuntimeObject * __this, RuntimeObject * ___Object1, RuntimeObject * ___Object2, StreamingContext_t5888E7E8C81AB6EF3B14FDDA6674F458076A8505 ___StreamingContext3, RuntimeObject * ___Object4, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static RuntimeObject * UnresolvedVirtualCall_157 (RuntimeObject * __this, RuntimeObject * ___Object1, int8_t ___SByte2, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static RuntimeObject * UnresolvedVirtualCall_158 (RuntimeObject * __this, RuntimeObject * ___Object1, int8_t ___SByte2, int8_t ___SByte3, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static RuntimeObject * UnresolvedVirtualCall_159 (RuntimeObject * __this, RuntimeObject * ___Object1, StreamingContext_t5888E7E8C81AB6EF3B14FDDA6674F458076A8505 ___StreamingContext2, RuntimeObject * ___Object3, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static RuntimeObject * UnresolvedVirtualCall_160 (RuntimeObject * __this, int8_t ___SByte1, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static RuntimeObject * UnresolvedVirtualCall_161 (RuntimeObject * __this, float ___Single1, float ___Single2, float ___Single3, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static RuntimeObject * UnresolvedVirtualCall_162 (RuntimeObject * __this, StreamingContext_t5888E7E8C81AB6EF3B14FDDA6674F458076A8505 ___StreamingContext1, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static RuntimeObject * UnresolvedVirtualCall_163 (RuntimeObject * __this, Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9 ___Vector21, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static Playable_tC24692CDD1DD8F1D5C646035A76D2830A70214E2 UnresolvedVirtualCall_164 (RuntimeObject * __this, PlayableGraph_t2D5083CFACB413FA1BB13FF054BE09A5A55A205A ___PlayableGraph1, RuntimeObject * ___Object2, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static ProfilerMarker_tAE86534C80C5D67768DB3B244D8D139A2E6495E1 UnresolvedVirtualCall_165 (RuntimeObject * __this, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static Range_t70C133E51417BC822E878050C90A577A69B671DC UnresolvedVirtualCall_166 (RuntimeObject * __this, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static RaycastHit2D_t210878DAEBC96C1F69DF9883C454758724A106A4 UnresolvedVirtualCall_167 (RuntimeObject * __this, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static RaycastResult_t9EFDE24B29650BD6DC8A49D954A3769E17146BCE UnresolvedVirtualCall_168 (RuntimeObject * __this, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static RenderChainTextEntry_t2B7733A1A5036FC66D89122F798A839F058AE7C7 UnresolvedVirtualCall_169 (RuntimeObject * __this, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static RuntimeFieldHandle_t7BE65FC857501059EBAC9772C93B02CD413D9C96 UnresolvedVirtualCall_170 (RuntimeObject * __this, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static RuntimeMethodHandle_t8974037C4FE5F6C3AE7D3731057CDB2891A21C9A UnresolvedVirtualCall_171 (RuntimeObject * __this, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static RuntimeTypeHandle_tC33965ADA3E041E0C94AF05E5CB527B56482CEF9 UnresolvedVirtualCall_172 (RuntimeObject * __this, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static int8_t UnresolvedVirtualCall_173 (RuntimeObject * __this, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static int8_t UnresolvedVirtualCall_174 (RuntimeObject * __this, KeyValuePair_2_tB6ECB423D6D4B3D2F916E061DDF9A7C3F0958D57 ___KeyValuePair_21, KeyValuePair_2_tB6ECB423D6D4B3D2F916E061DDF9A7C3F0958D57 ___KeyValuePair_22, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static int8_t UnresolvedVirtualCall_175 (RuntimeObject * __this, KeyValuePair_2_t69D65A575EDB8417950EECED1DEB6124D053CC7B ___KeyValuePair_21, KeyValuePair_2_t69D65A575EDB8417950EECED1DEB6124D053CC7B ___KeyValuePair_22, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static int8_t UnresolvedVirtualCall_176 (RuntimeObject * __this, uint8_t ___Byte1, uint8_t ___Byte2, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static int8_t UnresolvedVirtualCall_177 (RuntimeObject * __this, Color32_tDB54A78627878A7D2DE42BB028D64306A18E858D ___Color321, Color32_tDB54A78627878A7D2DE42BB028D64306A18E858D ___Color322, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static int8_t UnresolvedVirtualCall_178 (RuntimeObject * __this, ColorBlock_t04DFBB97B4772D2E00FD17ED2E3E6590E6916955 ___ColorBlock1, ColorBlock_t04DFBB97B4772D2E00FD17ED2E3E6590E6916955 ___ColorBlock2, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static int8_t UnresolvedVirtualCall_179 (RuntimeObject * __this, CustomAttributeNamedArgument_t618778691CF7F5B44F7177210A817A29D3DAEDDA ___CustomAttributeNamedArgument1, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static int8_t UnresolvedVirtualCall_180 (RuntimeObject * __this, CustomAttributeTypedArgument_tE7152E8FACDD29A8E0040E151C86F436FA8E6910 ___CustomAttributeTypedArgument1, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static int8_t UnresolvedVirtualCall_181 (RuntimeObject * __this, Guid_t ___Guid1, RuntimeObject * ___Object2, int32_t ___Int323, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static int8_t UnresolvedVirtualCall_182 (RuntimeObject * __this, int16_t ___Int161, int16_t ___Int162, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static int8_t UnresolvedVirtualCall_183 (RuntimeObject * __this, int16_t ___Int161, int16_t ___Int162, int32_t ___Int323, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static int8_t UnresolvedVirtualCall_184 (RuntimeObject * __this, int16_t ___Int161, int32_t ___Int322, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static int8_t UnresolvedVirtualCall_185 (RuntimeObject * __this, int16_t ___Int161, RuntimeObject * ___Object2, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static int8_t UnresolvedVirtualCall_186 (RuntimeObject * __this, int32_t ___Int321, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static int8_t UnresolvedVirtualCall_187 (RuntimeObject * __this, int32_t ___Int321, int32_t ___Int322, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static int8_t UnresolvedVirtualCall_188 (RuntimeObject * __this, int32_t ___Int321, int32_t ___Int322, int32_t ___Int323, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static int8_t UnresolvedVirtualCall_189 (RuntimeObject * __this, int32_t ___Int321, int32_t ___Int322, int32_t ___Int323, int32_t ___Int324, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static int8_t UnresolvedVirtualCall_190 (RuntimeObject * __this, int32_t ___Int321, int32_t ___Int322, int32_t ___Int323, int32_t ___Int324, int32_t ___Int325, int32_t ___Int326, int32_t ___Int327, int32_t ___Int328, RuntimeObject * ___Object9, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static int8_t UnresolvedVirtualCall_191 (RuntimeObject * __this, int32_t ___Int321, intptr_t ___IntPtr2, RuntimeObject * ___Object3, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static int8_t UnresolvedVirtualCall_192 (RuntimeObject * __this, int32_t ___Int321, int8_t ___SByte2, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static int8_t UnresolvedVirtualCall_193 (RuntimeObject * __this, int64_t ___Int641, RuntimeObject * ___Object2, int32_t ___Int323, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static int8_t UnresolvedVirtualCall_194 (RuntimeObject * __this, Navigation_t1CF0FFB22C0357CD64714FB7A40A275F899D363A ___Navigation1, Navigation_t1CF0FFB22C0357CD64714FB7A40A275F899D363A ___Navigation2, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static int8_t UnresolvedVirtualCall_195 (RuntimeObject * __this, RuntimeObject * ___Object1, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static int8_t UnresolvedVirtualCall_196 (RuntimeObject * __this, RuntimeObject * ___Object1, int32_t ___Int322, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static int8_t UnresolvedVirtualCall_197 (RuntimeObject * __this, RuntimeObject * ___Object1, RuntimeObject * ___Object2, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static int8_t UnresolvedVirtualCall_198 (RuntimeObject * __this, RuntimeObject * ___Object1, RuntimeObject * ___Object2, int32_t ___Int323, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static int8_t UnresolvedVirtualCall_199 (RuntimeObject * __this, RuntimeObject * ___Object1, RuntimeObject * ___Object2, RuntimeObject * ___Object3, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static int8_t UnresolvedVirtualCall_200 (RuntimeObject * __this, RuntimeObject * ___Object1, int8_t ___SByte2, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static int8_t UnresolvedVirtualCall_201 (RuntimeObject * __this, RaycastHit2D_t210878DAEBC96C1F69DF9883C454758724A106A4 ___RaycastHit2D1, RaycastHit2D_t210878DAEBC96C1F69DF9883C454758724A106A4 ___RaycastHit2D2, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static int8_t UnresolvedVirtualCall_202 (RuntimeObject * __this, RaycastResult_t9EFDE24B29650BD6DC8A49D954A3769E17146BCE ___RaycastResult1, RaycastResult_t9EFDE24B29650BD6DC8A49D954A3769E17146BCE ___RaycastResult2, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static int8_t UnresolvedVirtualCall_203 (RuntimeObject * __this, RenderChainTextEntry_t2B7733A1A5036FC66D89122F798A839F058AE7C7 ___RenderChainTextEntry1, RenderChainTextEntry_t2B7733A1A5036FC66D89122F798A839F058AE7C7 ___RenderChainTextEntry2, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static int8_t UnresolvedVirtualCall_204 (RuntimeObject * __this, ResourceLocator_t3D496606F94367D5D6B24DA9DC0A3B46E6B53B11 ___ResourceLocator1, ResourceLocator_t3D496606F94367D5D6B24DA9DC0A3B46E6B53B11 ___ResourceLocator2, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static int8_t UnresolvedVirtualCall_205 (RuntimeObject * __this, int8_t ___SByte1, int8_t ___SByte2, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static int8_t UnresolvedVirtualCall_206 (RuntimeObject * __this, float ___Single1, float ___Single2, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static int8_t UnresolvedVirtualCall_207 (RuntimeObject * __this, SpriteState_t9024961148433175CE2F3D9E8E9239A8B1CAB15E ___SpriteState1, SpriteState_t9024961148433175CE2F3D9E8E9239A8B1CAB15E ___SpriteState2, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static int8_t UnresolvedVirtualCall_208 (RuntimeObject * __this, StylePropertyValue_t5F204B329C961E7A1EA49F83333FCE27D4FDB2A8 ___StylePropertyValue1, StylePropertyValue_t5F204B329C961E7A1EA49F83333FCE27D4FDB2A8 ___StylePropertyValue2, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static int8_t UnresolvedVirtualCall_209 (RuntimeObject * __this, StyleSelectorPart_t707EDC970FC0F3E91E56DCBC178672A120426D54 ___StyleSelectorPart1, StyleSelectorPart_t707EDC970FC0F3E91E56DCBC178672A120426D54 ___StyleSelectorPart2, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static int8_t UnresolvedVirtualCall_210 (RuntimeObject * __this, StyleValue_t761E8EE98A6473F2FB9DE803BD8F14F047430FF5 ___StyleValue1, StyleValue_t761E8EE98A6473F2FB9DE803BD8F14F047430FF5 ___StyleValue2, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static int8_t UnresolvedVirtualCall_211 (RuntimeObject * __this, StyleVariable_tEF01599E5D91F65B4405F88847D7F6AA87B210BD ___StyleVariable1, StyleVariable_tEF01599E5D91F65B4405F88847D7F6AA87B210BD ___StyleVariable2, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static int8_t UnresolvedVirtualCall_212 (RuntimeObject * __this, TextureId_t1DB18D78549F5571E12587245D818634A6EA17C5 ___TextureId1, TextureId_t1DB18D78549F5571E12587245D818634A6EA17C5 ___TextureId2, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static int8_t UnresolvedVirtualCall_213 (RuntimeObject * __this, UICharInfo_tDEA65B831FAD06D1E9B10A6088E05C6D615B089A ___UICharInfo1, UICharInfo_tDEA65B831FAD06D1E9B10A6088E05C6D615B089A ___UICharInfo2, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static int8_t UnresolvedVirtualCall_214 (RuntimeObject * __this, UILineInfo_tD082FF4894030AD4EBF57ACF6A997135E4B8B67C ___UILineInfo1, UILineInfo_tD082FF4894030AD4EBF57ACF6A997135E4B8B67C ___UILineInfo2, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static int8_t UnresolvedVirtualCall_215 (RuntimeObject * __this, UIVertex_tD94AAC5F0B42DBC441AAA8ADBFCFF9E5C320C03A ___UIVertex1, UIVertex_tD94AAC5F0B42DBC441AAA8ADBFCFF9E5C320C03A ___UIVertex2, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static int8_t UnresolvedVirtualCall_216 (RuntimeObject * __this, Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9 ___Vector21, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static int8_t UnresolvedVirtualCall_217 (RuntimeObject * __this, Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9 ___Vector21, RuntimeObject * ___Object2, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static int8_t UnresolvedVirtualCall_218 (RuntimeObject * __this, Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9 ___Vector21, Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9 ___Vector22, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static int8_t UnresolvedVirtualCall_219 (RuntimeObject * __this, Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E ___Vector31, Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E ___Vector32, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static int8_t UnresolvedVirtualCall_220 (RuntimeObject * __this, Vector3Int_t197C3BA05CF19F1A22D40F8AE64CD4102AFB77EA ___Vector3Int1, RuntimeObject * ___Object2, RuntimeObject * ___Object3, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static int8_t UnresolvedVirtualCall_221 (RuntimeObject * __this, Vector4_tA56A37FC5661BCC89C3DDC24BE12BA5BCB6A02C7 ___Vector41, Vector4_tA56A37FC5661BCC89C3DDC24BE12BA5BCB6A02C7 ___Vector42, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static int8_t UnresolvedVirtualCall_222 (RuntimeObject * __this, OrderBlock_t0B106828F588BC2F0B9895425E6FD39EDA45C1E2 ___OrderBlock1, OrderBlock_t0B106828F588BC2F0B9895425E6FD39EDA45C1E2 ___OrderBlock2, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static int8_t UnresolvedVirtualCall_223 (RuntimeObject * __this, RenderRequest_t7DEDFA6AAA1C8D381280183054C328F26BBCCE94 ___RenderRequest1, RenderRequest_t7DEDFA6AAA1C8D381280183054C328F26BBCCE94 ___RenderRequest2, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static int8_t UnresolvedVirtualCall_224 (RuntimeObject * __this, FocusedElement_tF9897C653908D7004ACBEC7265361828BA9DB206 ___FocusedElement1, FocusedElement_tF9897C653908D7004ACBEC7265361828BA9DB206 ___FocusedElement2, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static int8_t UnresolvedVirtualCall_225 (RuntimeObject * __this, PseudoStateData_t3F1A53FFD3D401315DCAD65C924AA3B7922AD4F3 ___PseudoStateData1, PseudoStateData_t3F1A53FFD3D401315DCAD65C924AA3B7922AD4F3 ___PseudoStateData2, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static int8_t UnresolvedVirtualCall_226 (RuntimeObject * __this, TextureInfo_tD08547B0C7CCA578BCF7493CE018FC48EDF65069 ___TextureInfo1, TextureInfo_tD08547B0C7CCA578BCF7493CE018FC48EDF65069 ___TextureInfo2, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static int8_t UnresolvedVirtualCall_227 (RuntimeObject * __this, WorkRequest_tA19FD4D1269D8EE2EA886AAF036C4F7F09154393 ___WorkRequest1, WorkRequest_tA19FD4D1269D8EE2EA886AAF036C4F7F09154393 ___WorkRequest2, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static float UnresolvedVirtualCall_228 (RuntimeObject * __this, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static float UnresolvedVirtualCall_229 (RuntimeObject * __this, RuntimeObject * ___Object1, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static float UnresolvedVirtualCall_230 (RuntimeObject * __this, RuntimeObject * ___Object1, float ___Single2, float ___Single3, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static StylePropertyValue_t5F204B329C961E7A1EA49F83333FCE27D4FDB2A8 UnresolvedVirtualCall_231 (RuntimeObject * __this, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static StyleSelectorPart_t707EDC970FC0F3E91E56DCBC178672A120426D54 UnresolvedVirtualCall_232 (RuntimeObject * __this, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static StyleValue_t761E8EE98A6473F2FB9DE803BD8F14F047430FF5 UnresolvedVirtualCall_233 (RuntimeObject * __this, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static StyleVariable_tEF01599E5D91F65B4405F88847D7F6AA87B210BD UnresolvedVirtualCall_234 (RuntimeObject * __this, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static TextShadow_t9399EE93D4D61794CD4380D5D93C98BCA9972233 UnresolvedVirtualCall_235 (RuntimeObject * __this, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static TimeSpan_t4F6A0E13E703B65365CFCAB58E05EE0AF3EE6203 UnresolvedVirtualCall_236 (RuntimeObject * __this, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static TimeSpan_t4F6A0E13E703B65365CFCAB58E05EE0AF3EE6203 UnresolvedVirtualCall_237 (RuntimeObject * __this, RuntimeObject * ___Object1, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static TimeSpan_t4F6A0E13E703B65365CFCAB58E05EE0AF3EE6203 UnresolvedVirtualCall_238 (RuntimeObject * __this, TimeSpan_t4F6A0E13E703B65365CFCAB58E05EE0AF3EE6203 ___TimeSpan1, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static Touch_tDEFED247540BCFA4AD452F1D37EEF4E09B4ACD8C UnresolvedVirtualCall_239 (RuntimeObject * __this, int32_t ___Int321, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static UICharInfo_tDEA65B831FAD06D1E9B10A6088E05C6D615B089A UnresolvedVirtualCall_240 (RuntimeObject * __this, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static UICharInfo_tDEA65B831FAD06D1E9B10A6088E05C6D615B089A UnresolvedVirtualCall_241 (RuntimeObject * __this, int32_t ___Int321, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static UILineInfo_tD082FF4894030AD4EBF57ACF6A997135E4B8B67C UnresolvedVirtualCall_242 (RuntimeObject * __this, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static UILineInfo_tD082FF4894030AD4EBF57ACF6A997135E4B8B67C UnresolvedVirtualCall_243 (RuntimeObject * __this, int32_t ___Int321, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static UIVertex_tD94AAC5F0B42DBC441AAA8ADBFCFF9E5C320C03A UnresolvedVirtualCall_244 (RuntimeObject * __this, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static UIVertex_tD94AAC5F0B42DBC441AAA8ADBFCFF9E5C320C03A UnresolvedVirtualCall_245 (RuntimeObject * __this, int32_t ___Int321, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static uint16_t UnresolvedVirtualCall_246 (RuntimeObject * __this, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static uint16_t UnresolvedVirtualCall_247 (RuntimeObject * __this, RuntimeObject * ___Object1, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static uint32_t UnresolvedVirtualCall_248 (RuntimeObject * __this, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static uint32_t UnresolvedVirtualCall_249 (RuntimeObject * __this, RuntimeObject * ___Object1, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static uint64_t UnresolvedVirtualCall_250 (RuntimeObject * __this, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static uint64_t UnresolvedVirtualCall_251 (RuntimeObject * __this, RuntimeObject * ___Object1, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9 UnresolvedVirtualCall_252 (RuntimeObject * __this, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E UnresolvedVirtualCall_253 (RuntimeObject * __this, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static Vector4_tA56A37FC5661BCC89C3DDC24BE12BA5BCB6A02C7 UnresolvedVirtualCall_254 (RuntimeObject * __this, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static void UnresolvedVirtualCall_255 (RuntimeObject * __this, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static void UnresolvedVirtualCall_256 (RuntimeObject * __this, uint8_t ___Byte1, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static void UnresolvedVirtualCall_257 (RuntimeObject * __this, Color_tF40DAF76C04FFECF3FE6024F85A294741C9CC659 ___Color1, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static void UnresolvedVirtualCall_258 (RuntimeObject * __this, Color_tF40DAF76C04FFECF3FE6024F85A294741C9CC659 ___Color1, float ___Single2, int8_t ___SByte3, int8_t ___SByte4, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static void UnresolvedVirtualCall_259 (RuntimeObject * __this, Color_tF40DAF76C04FFECF3FE6024F85A294741C9CC659 ___Color1, float ___Single2, int8_t ___SByte3, int8_t ___SByte4, int8_t ___SByte5, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static void UnresolvedVirtualCall_260 (RuntimeObject * __this, double ___Double1, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static void UnresolvedVirtualCall_261 (RuntimeObject * __this, Guid_t ___Guid1, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static void UnresolvedVirtualCall_262 (RuntimeObject * __this, Guid_t ___Guid1, RuntimeObject * ___Object2, int32_t ___Int323, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static void UnresolvedVirtualCall_263 (RuntimeObject * __this, int16_t ___Int161, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static void UnresolvedVirtualCall_264 (RuntimeObject * __this, int32_t ___Int321, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static void UnresolvedVirtualCall_265 (RuntimeObject * __this, int32_t ___Int321, RuntimeObject * ___Object2, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static void UnresolvedVirtualCall_266 (RuntimeObject * __this, int32_t ___Int321, RuntimeObject * ___Object2, RuntimeObject * ___Object3, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static void UnresolvedVirtualCall_267 (RuntimeObject * __this, int32_t ___Int321, RuntimeObject * ___Object2, RuntimeObject * ___Object3, RuntimeObject * ___Object4, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static void UnresolvedVirtualCall_268 (RuntimeObject * __this, int32_t ___Int321, int8_t ___SByte2, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static void UnresolvedVirtualCall_269 (RuntimeObject * __this, int64_t ___Int641, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static void UnresolvedVirtualCall_270 (RuntimeObject * __this, int64_t ___Int641, RuntimeObject * ___Object2, int64_t ___Int643, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static void UnresolvedVirtualCall_271 (RuntimeObject * __this, RuntimeObject * ___Object1, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static void UnresolvedVirtualCall_272 (RuntimeObject * __this, RuntimeObject * ___Object1, NativeArray_1_tF6A10DD2511425342F2B1B19CF0EA313D4F300D2 ___NativeArray_12, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static void UnresolvedVirtualCall_273 (RuntimeObject * __this, RuntimeObject * ___Object1, int32_t ___Int322, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static void UnresolvedVirtualCall_274 (RuntimeObject * __this, RuntimeObject * ___Object1, int32_t ___Int322, int32_t ___Int323, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static void UnresolvedVirtualCall_275 (RuntimeObject * __this, RuntimeObject * ___Object1, RuntimeObject * ___Object2, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static void UnresolvedVirtualCall_276 (RuntimeObject * __this, RuntimeObject * ___Object1, RuntimeObject * ___Object2, int32_t ___Int323, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static void UnresolvedVirtualCall_277 (RuntimeObject * __this, RuntimeObject * ___Object1, RuntimeObject * ___Object2, int32_t ___Int323, RuntimeObject * ___Object4, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static void UnresolvedVirtualCall_278 (RuntimeObject * __this, RuntimeObject * ___Object1, RuntimeObject * ___Object2, int32_t ___Int323, RuntimeObject * ___Object4, RuntimeObject * ___Object5, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static void UnresolvedVirtualCall_279 (RuntimeObject * __this, RuntimeObject * ___Object1, RuntimeObject * ___Object2, RuntimeObject * ___Object3, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static void UnresolvedVirtualCall_280 (RuntimeObject * __this, RuntimeObject * ___Object1, RuntimeObject * ___Object2, RuntimeObject * ___Object3, RuntimeObject * ___Object4, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static void UnresolvedVirtualCall_281 (RuntimeObject * __this, RuntimeObject * ___Object1, RuntimeObject * ___Object2, int8_t ___SByte3, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static void UnresolvedVirtualCall_282 (RuntimeObject * __this, RuntimeObject * ___Object1, RuntimeObject * ___Object2, StreamingContext_t5888E7E8C81AB6EF3B14FDDA6674F458076A8505 ___StreamingContext3, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static void UnresolvedVirtualCall_283 (RuntimeObject * __this, RuntimeObject * ___Object1, int8_t ___SByte2, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static void UnresolvedVirtualCall_284 (RuntimeObject * __this, RuntimeObject * ___Object1, int8_t ___SByte2, DebugScreenCapture_t82C35632EAE92C143A87097DC34C70EFADB750B1 ___DebugScreenCapture3, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static void UnresolvedVirtualCall_285 (RuntimeObject * __this, RuntimeObject * ___Object1, int8_t ___SByte2, int8_t ___SByte3, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static void UnresolvedVirtualCall_286 (RuntimeObject * __this, RuntimeObject * ___Object1, StreamingContext_t5888E7E8C81AB6EF3B14FDDA6674F458076A8505 ___StreamingContext2, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static void UnresolvedVirtualCall_287 (RuntimeObject * __this, RuntimeObject * ___Object1, uint32_t ___UInt322, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static void UnresolvedVirtualCall_288 (RuntimeObject * __this, Rect_t7D9187DB6339DBA5741C09B6CCEF2F54F1966878 ___Rect1, int8_t ___SByte2, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static void UnresolvedVirtualCall_289 (RuntimeObject * __this, int8_t ___SByte1, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static void UnresolvedVirtualCall_290 (RuntimeObject * __this, ScriptableRenderContext_tEDDDFFA7401E6860E1D82DFD779B7A101939F52D ___ScriptableRenderContext1, RuntimeObject * ___Object2, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static void UnresolvedVirtualCall_291 (RuntimeObject * __this, ScriptableRenderContext_tEDDDFFA7401E6860E1D82DFD779B7A101939F52D ___ScriptableRenderContext1, RuntimeObject * ___Object2, RuntimeObject * ___Object3, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static void UnresolvedVirtualCall_292 (RuntimeObject * __this, float ___Single1, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static void UnresolvedVirtualCall_293 (RuntimeObject * __this, float ___Single1, int32_t ___Int322, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static void UnresolvedVirtualCall_294 (RuntimeObject * __this, float ___Single1, int8_t ___SByte2, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static void UnresolvedVirtualCall_295 (RuntimeObject * __this, float ___Single1, float ___Single2, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static void UnresolvedVirtualCall_296 (RuntimeObject * __this, float ___Single1, float ___Single2, int8_t ___SByte3, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static void UnresolvedVirtualCall_297 (RuntimeObject * __this, TypedReference_tE1755FC30D207D9552DE27539E907EE92C8C073A ___TypedReference1, RuntimeObject * ___Object2, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static void UnresolvedVirtualCall_298 (RuntimeObject * __this, uint16_t ___UInt161, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static void UnresolvedVirtualCall_299 (RuntimeObject * __this, uint32_t ___UInt321, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static void UnresolvedVirtualCall_300 (RuntimeObject * __this, uint64_t ___UInt641, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static void UnresolvedVirtualCall_301 (RuntimeObject * __this, Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9 ___Vector21, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static void UnresolvedVirtualCall_302 (RuntimeObject * __this, Vector3Int_t197C3BA05CF19F1A22D40F8AE64CD4102AFB77EA ___Vector3Int1, RuntimeObject * ___Object2, RuntimeObject * ___Object3, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static VoidTaskResult_t28D1A323545DE024749196472558F49F1AAF0004 UnresolvedVirtualCall_303 (RuntimeObject * __this, RuntimeObject * ___Object1, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static YogaSize_tC805BF63DE9A9E4B9984B964AB0A1CFA04ADC1FD UnresolvedVirtualCall_304 (RuntimeObject * __this, RuntimeObject * ___Object1, float ___Single2, int32_t ___Int323, float ___Single4, int32_t ___Int325, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static OrderBlock_t0B106828F588BC2F0B9895425E6FD39EDA45C1E2 UnresolvedVirtualCall_305 (RuntimeObject * __this, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static RenderRequest_t7DEDFA6AAA1C8D381280183054C328F26BBCCE94 UnresolvedVirtualCall_306 (RuntimeObject * __this, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static FocusedElement_tF9897C653908D7004ACBEC7265361828BA9DB206 UnresolvedVirtualCall_307 (RuntimeObject * __this, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static TextureInfo_tD08547B0C7CCA578BCF7493CE018FC48EDF65069 UnresolvedVirtualCall_308 (RuntimeObject * __this, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } static WorkRequest_tA19FD4D1269D8EE2EA886AAF036C4F7F09154393 UnresolvedVirtualCall_309 (RuntimeObject * __this, const RuntimeMethod* method) { il2cpp_codegen_raise_execution_engine_exception_missing_virtual(method); il2cpp_codegen_no_return(); } IL2CPP_EXTERN_C const Il2CppMethodPointer g_UnresolvedVirtualMethodPointers[]; const Il2CppMethodPointer g_UnresolvedVirtualMethodPointers[310] = { (const Il2CppMethodPointer) UnresolvedVirtualCall_0, (const Il2CppMethodPointer) UnresolvedVirtualCall_1, (const Il2CppMethodPointer) UnresolvedVirtualCall_2, (const Il2CppMethodPointer) UnresolvedVirtualCall_3, (const Il2CppMethodPointer) UnresolvedVirtualCall_4, (const Il2CppMethodPointer) UnresolvedVirtualCall_5, (const Il2CppMethodPointer) UnresolvedVirtualCall_6, (const Il2CppMethodPointer) UnresolvedVirtualCall_7, (const Il2CppMethodPointer) UnresolvedVirtualCall_8, (const Il2CppMethodPointer) UnresolvedVirtualCall_9, (const Il2CppMethodPointer) UnresolvedVirtualCall_10, (const Il2CppMethodPointer) UnresolvedVirtualCall_11, (const Il2CppMethodPointer) UnresolvedVirtualCall_12, (const Il2CppMethodPointer) UnresolvedVirtualCall_13, (const Il2CppMethodPointer) UnresolvedVirtualCall_14, (const Il2CppMethodPointer) UnresolvedVirtualCall_15, (const Il2CppMethodPointer) UnresolvedVirtualCall_16, (const Il2CppMethodPointer) UnresolvedVirtualCall_17, (const Il2CppMethodPointer) UnresolvedVirtualCall_18, (const Il2CppMethodPointer) UnresolvedVirtualCall_19, (const Il2CppMethodPointer) UnresolvedVirtualCall_20, (const Il2CppMethodPointer) UnresolvedVirtualCall_21, (const Il2CppMethodPointer) UnresolvedVirtualCall_22, (const Il2CppMethodPointer) UnresolvedVirtualCall_23, (const Il2CppMethodPointer) UnresolvedVirtualCall_24, (const Il2CppMethodPointer) UnresolvedVirtualCall_25, (const Il2CppMethodPointer) UnresolvedVirtualCall_26, (const Il2CppMethodPointer) UnresolvedVirtualCall_27, (const Il2CppMethodPointer) UnresolvedVirtualCall_28, (const Il2CppMethodPointer) UnresolvedVirtualCall_29, (const Il2CppMethodPointer) UnresolvedVirtualCall_30, (const Il2CppMethodPointer) UnresolvedVirtualCall_31, (const Il2CppMethodPointer) UnresolvedVirtualCall_32, (const Il2CppMethodPointer) UnresolvedVirtualCall_33, (const Il2CppMethodPointer) UnresolvedVirtualCall_34, (const Il2CppMethodPointer) UnresolvedVirtualCall_35, (const Il2CppMethodPointer) UnresolvedVirtualCall_36, (const Il2CppMethodPointer) UnresolvedVirtualCall_37, (const Il2CppMethodPointer) UnresolvedVirtualCall_38, (const Il2CppMethodPointer) UnresolvedVirtualCall_39, (const Il2CppMethodPointer) UnresolvedVirtualCall_40, (const Il2CppMethodPointer) UnresolvedVirtualCall_41, (const Il2CppMethodPointer) UnresolvedVirtualCall_42, (const Il2CppMethodPointer) UnresolvedVirtualCall_43, (const Il2CppMethodPointer) UnresolvedVirtualCall_44, (const Il2CppMethodPointer) UnresolvedVirtualCall_45, (const Il2CppMethodPointer) UnresolvedVirtualCall_46, (const Il2CppMethodPointer) UnresolvedVirtualCall_47, (const Il2CppMethodPointer) UnresolvedVirtualCall_48, (const Il2CppMethodPointer) UnresolvedVirtualCall_49, (const Il2CppMethodPointer) UnresolvedVirtualCall_50, (const Il2CppMethodPointer) UnresolvedVirtualCall_51, (const Il2CppMethodPointer) UnresolvedVirtualCall_52, (const Il2CppMethodPointer) UnresolvedVirtualCall_53, (const Il2CppMethodPointer) UnresolvedVirtualCall_54, (const Il2CppMethodPointer) UnresolvedVirtualCall_55, (const Il2CppMethodPointer) UnresolvedVirtualCall_56, (const Il2CppMethodPointer) UnresolvedVirtualCall_57, (const Il2CppMethodPointer) UnresolvedVirtualCall_58, (const Il2CppMethodPointer) UnresolvedVirtualCall_59, (const Il2CppMethodPointer) UnresolvedVirtualCall_60, (const Il2CppMethodPointer) UnresolvedVirtualCall_61, (const Il2CppMethodPointer) UnresolvedVirtualCall_62, (const Il2CppMethodPointer) UnresolvedVirtualCall_63, (const Il2CppMethodPointer) UnresolvedVirtualCall_64, (const Il2CppMethodPointer) UnresolvedVirtualCall_65, (const Il2CppMethodPointer) UnresolvedVirtualCall_66, (const Il2CppMethodPointer) UnresolvedVirtualCall_67, (const Il2CppMethodPointer) UnresolvedVirtualCall_68, (const Il2CppMethodPointer) UnresolvedVirtualCall_69, (const Il2CppMethodPointer) UnresolvedVirtualCall_70, (const Il2CppMethodPointer) UnresolvedVirtualCall_71, (const Il2CppMethodPointer) UnresolvedVirtualCall_72, (const Il2CppMethodPointer) UnresolvedVirtualCall_73, (const Il2CppMethodPointer) UnresolvedVirtualCall_74, (const Il2CppMethodPointer) UnresolvedVirtualCall_75, (const Il2CppMethodPointer) UnresolvedVirtualCall_76, (const Il2CppMethodPointer) UnresolvedVirtualCall_77, (const Il2CppMethodPointer) UnresolvedVirtualCall_78, (const Il2CppMethodPointer) UnresolvedVirtualCall_79, (const Il2CppMethodPointer) UnresolvedVirtualCall_80, (const Il2CppMethodPointer) UnresolvedVirtualCall_81, (const Il2CppMethodPointer) UnresolvedVirtualCall_82, (const Il2CppMethodPointer) UnresolvedVirtualCall_83, (const Il2CppMethodPointer) UnresolvedVirtualCall_84, (const Il2CppMethodPointer) UnresolvedVirtualCall_85, (const Il2CppMethodPointer) UnresolvedVirtualCall_86, (const Il2CppMethodPointer) UnresolvedVirtualCall_87, (const Il2CppMethodPointer) UnresolvedVirtualCall_88, (const Il2CppMethodPointer) UnresolvedVirtualCall_89, (const Il2CppMethodPointer) UnresolvedVirtualCall_90, (const Il2CppMethodPointer) UnresolvedVirtualCall_91, (const Il2CppMethodPointer) UnresolvedVirtualCall_92, (const Il2CppMethodPointer) UnresolvedVirtualCall_93, (const Il2CppMethodPointer) UnresolvedVirtualCall_94, (const Il2CppMethodPointer) UnresolvedVirtualCall_95, (const Il2CppMethodPointer) UnresolvedVirtualCall_96, (const Il2CppMethodPointer) UnresolvedVirtualCall_97, (const Il2CppMethodPointer) UnresolvedVirtualCall_98, (const Il2CppMethodPointer) UnresolvedVirtualCall_99, (const Il2CppMethodPointer) UnresolvedVirtualCall_100, (const Il2CppMethodPointer) UnresolvedVirtualCall_101, (const Il2CppMethodPointer) UnresolvedVirtualCall_102, (const Il2CppMethodPointer) UnresolvedVirtualCall_103, (const Il2CppMethodPointer) UnresolvedVirtualCall_104, (const Il2CppMethodPointer) UnresolvedVirtualCall_105, (const Il2CppMethodPointer) UnresolvedVirtualCall_106, (const Il2CppMethodPointer) UnresolvedVirtualCall_107, (const Il2CppMethodPointer) UnresolvedVirtualCall_108, (const Il2CppMethodPointer) UnresolvedVirtualCall_109, (const Il2CppMethodPointer) UnresolvedVirtualCall_110, (const Il2CppMethodPointer) UnresolvedVirtualCall_111, (const Il2CppMethodPointer) UnresolvedVirtualCall_112, (const Il2CppMethodPointer) UnresolvedVirtualCall_113, (const Il2CppMethodPointer) UnresolvedVirtualCall_114, (const Il2CppMethodPointer) UnresolvedVirtualCall_115, (const Il2CppMethodPointer) UnresolvedVirtualCall_116, (const Il2CppMethodPointer) UnresolvedVirtualCall_117, (const Il2CppMethodPointer) UnresolvedVirtualCall_118, (const Il2CppMethodPointer) UnresolvedVirtualCall_119, (const Il2CppMethodPointer) UnresolvedVirtualCall_120, (const Il2CppMethodPointer) UnresolvedVirtualCall_121, (const Il2CppMethodPointer) UnresolvedVirtualCall_122, (const Il2CppMethodPointer) UnresolvedVirtualCall_123, (const Il2CppMethodPointer) UnresolvedVirtualCall_124, (const Il2CppMethodPointer) UnresolvedVirtualCall_125, (const Il2CppMethodPointer) UnresolvedVirtualCall_126, (const Il2CppMethodPointer) UnresolvedVirtualCall_127, (const Il2CppMethodPointer) UnresolvedVirtualCall_128, (const Il2CppMethodPointer) UnresolvedVirtualCall_129, (const Il2CppMethodPointer) UnresolvedVirtualCall_130, (const Il2CppMethodPointer) UnresolvedVirtualCall_131, (const Il2CppMethodPointer) UnresolvedVirtualCall_132, (const Il2CppMethodPointer) UnresolvedVirtualCall_133, (const Il2CppMethodPointer) UnresolvedVirtualCall_134, (const Il2CppMethodPointer) UnresolvedVirtualCall_135, (const Il2CppMethodPointer) UnresolvedVirtualCall_136, (const Il2CppMethodPointer) UnresolvedVirtualCall_137, (const Il2CppMethodPointer) UnresolvedVirtualCall_138, (const Il2CppMethodPointer) UnresolvedVirtualCall_139, (const Il2CppMethodPointer) UnresolvedVirtualCall_140, (const Il2CppMethodPointer) UnresolvedVirtualCall_141, (const Il2CppMethodPointer) UnresolvedVirtualCall_142, (const Il2CppMethodPointer) UnresolvedVirtualCall_143, (const Il2CppMethodPointer) UnresolvedVirtualCall_144, (const Il2CppMethodPointer) UnresolvedVirtualCall_145, (const Il2CppMethodPointer) UnresolvedVirtualCall_146, (const Il2CppMethodPointer) UnresolvedVirtualCall_147, (const Il2CppMethodPointer) UnresolvedVirtualCall_148, (const Il2CppMethodPointer) UnresolvedVirtualCall_149, (const Il2CppMethodPointer) UnresolvedVirtualCall_150, (const Il2CppMethodPointer) UnresolvedVirtualCall_151, (const Il2CppMethodPointer) UnresolvedVirtualCall_152, (const Il2CppMethodPointer) UnresolvedVirtualCall_153, (const Il2CppMethodPointer) UnresolvedVirtualCall_154, (const Il2CppMethodPointer) UnresolvedVirtualCall_155, (const Il2CppMethodPointer) UnresolvedVirtualCall_156, (const Il2CppMethodPointer) UnresolvedVirtualCall_157, (const Il2CppMethodPointer) UnresolvedVirtualCall_158, (const Il2CppMethodPointer) UnresolvedVirtualCall_159, (const Il2CppMethodPointer) UnresolvedVirtualCall_160, (const Il2CppMethodPointer) UnresolvedVirtualCall_161, (const Il2CppMethodPointer) UnresolvedVirtualCall_162, (const Il2CppMethodPointer) UnresolvedVirtualCall_163, (const Il2CppMethodPointer) UnresolvedVirtualCall_164, (const Il2CppMethodPointer) UnresolvedVirtualCall_165, (const Il2CppMethodPointer) UnresolvedVirtualCall_166, (const Il2CppMethodPointer) UnresolvedVirtualCall_167, (const Il2CppMethodPointer) UnresolvedVirtualCall_168, (const Il2CppMethodPointer) UnresolvedVirtualCall_169, (const Il2CppMethodPointer) UnresolvedVirtualCall_170, (const Il2CppMethodPointer) UnresolvedVirtualCall_171, (const Il2CppMethodPointer) UnresolvedVirtualCall_172, (const Il2CppMethodPointer) UnresolvedVirtualCall_173, (const Il2CppMethodPointer) UnresolvedVirtualCall_174, (const Il2CppMethodPointer) UnresolvedVirtualCall_175, (const Il2CppMethodPointer) UnresolvedVirtualCall_176, (const Il2CppMethodPointer) UnresolvedVirtualCall_177, (const Il2CppMethodPointer) UnresolvedVirtualCall_178, (const Il2CppMethodPointer) UnresolvedVirtualCall_179, (const Il2CppMethodPointer) UnresolvedVirtualCall_180, (const Il2CppMethodPointer) UnresolvedVirtualCall_181, (const Il2CppMethodPointer) UnresolvedVirtualCall_182, (const Il2CppMethodPointer) UnresolvedVirtualCall_183, (const Il2CppMethodPointer) UnresolvedVirtualCall_184, (const Il2CppMethodPointer) UnresolvedVirtualCall_185, (const Il2CppMethodPointer) UnresolvedVirtualCall_186, (const Il2CppMethodPointer) UnresolvedVirtualCall_187, (const Il2CppMethodPointer) UnresolvedVirtualCall_188, (const Il2CppMethodPointer) UnresolvedVirtualCall_189, (const Il2CppMethodPointer) UnresolvedVirtualCall_190, (const Il2CppMethodPointer) UnresolvedVirtualCall_191, (const Il2CppMethodPointer) UnresolvedVirtualCall_192, (const Il2CppMethodPointer) UnresolvedVirtualCall_193, (const Il2CppMethodPointer) UnresolvedVirtualCall_194, (const Il2CppMethodPointer) UnresolvedVirtualCall_195, (const Il2CppMethodPointer) UnresolvedVirtualCall_196, (const Il2CppMethodPointer) UnresolvedVirtualCall_197, (const Il2CppMethodPointer) UnresolvedVirtualCall_198, (const Il2CppMethodPointer) UnresolvedVirtualCall_199, (const Il2CppMethodPointer) UnresolvedVirtualCall_200, (const Il2CppMethodPointer) UnresolvedVirtualCall_201, (const Il2CppMethodPointer) UnresolvedVirtualCall_202, (const Il2CppMethodPointer) UnresolvedVirtualCall_203, (const Il2CppMethodPointer) UnresolvedVirtualCall_204, (const Il2CppMethodPointer) UnresolvedVirtualCall_205, (const Il2CppMethodPointer) UnresolvedVirtualCall_206, (const Il2CppMethodPointer) UnresolvedVirtualCall_207, (const Il2CppMethodPointer) UnresolvedVirtualCall_208, (const Il2CppMethodPointer) UnresolvedVirtualCall_209, (const Il2CppMethodPointer) UnresolvedVirtualCall_210, (const Il2CppMethodPointer) UnresolvedVirtualCall_211, (const Il2CppMethodPointer) UnresolvedVirtualCall_212, (const Il2CppMethodPointer) UnresolvedVirtualCall_213, (const Il2CppMethodPointer) UnresolvedVirtualCall_214, (const Il2CppMethodPointer) UnresolvedVirtualCall_215, (const Il2CppMethodPointer) UnresolvedVirtualCall_216, (const Il2CppMethodPointer) UnresolvedVirtualCall_217, (const Il2CppMethodPointer) UnresolvedVirtualCall_218, (const Il2CppMethodPointer) UnresolvedVirtualCall_219, (const Il2CppMethodPointer) UnresolvedVirtualCall_220, (const Il2CppMethodPointer) UnresolvedVirtualCall_221, (const Il2CppMethodPointer) UnresolvedVirtualCall_222, (const Il2CppMethodPointer) UnresolvedVirtualCall_223, (const Il2CppMethodPointer) UnresolvedVirtualCall_224, (const Il2CppMethodPointer) UnresolvedVirtualCall_225, (const Il2CppMethodPointer) UnresolvedVirtualCall_226, (const Il2CppMethodPointer) UnresolvedVirtualCall_227, (const Il2CppMethodPointer) UnresolvedVirtualCall_228, (const Il2CppMethodPointer) UnresolvedVirtualCall_229, (const Il2CppMethodPointer) UnresolvedVirtualCall_230, (const Il2CppMethodPointer) UnresolvedVirtualCall_231, (const Il2CppMethodPointer) UnresolvedVirtualCall_232, (const Il2CppMethodPointer) UnresolvedVirtualCall_233, (const Il2CppMethodPointer) UnresolvedVirtualCall_234, (const Il2CppMethodPointer) UnresolvedVirtualCall_235, (const Il2CppMethodPointer) UnresolvedVirtualCall_236, (const Il2CppMethodPointer) UnresolvedVirtualCall_237, (const Il2CppMethodPointer) UnresolvedVirtualCall_238, (const Il2CppMethodPointer) UnresolvedVirtualCall_239, (const Il2CppMethodPointer) UnresolvedVirtualCall_240, (const Il2CppMethodPointer) UnresolvedVirtualCall_241, (const Il2CppMethodPointer) UnresolvedVirtualCall_242, (const Il2CppMethodPointer) UnresolvedVirtualCall_243, (const Il2CppMethodPointer) UnresolvedVirtualCall_244, (const Il2CppMethodPointer) UnresolvedVirtualCall_245, (const Il2CppMethodPointer) UnresolvedVirtualCall_246, (const Il2CppMethodPointer) UnresolvedVirtualCall_247, (const Il2CppMethodPointer) UnresolvedVirtualCall_248, (const Il2CppMethodPointer) UnresolvedVirtualCall_249, (const Il2CppMethodPointer) UnresolvedVirtualCall_250, (const Il2CppMethodPointer) UnresolvedVirtualCall_251, (const Il2CppMethodPointer) UnresolvedVirtualCall_252, (const Il2CppMethodPointer) UnresolvedVirtualCall_253, (const Il2CppMethodPointer) UnresolvedVirtualCall_254, (const Il2CppMethodPointer) UnresolvedVirtualCall_255, (const Il2CppMethodPointer) UnresolvedVirtualCall_256, (const Il2CppMethodPointer) UnresolvedVirtualCall_257, (const Il2CppMethodPointer) UnresolvedVirtualCall_258, (const Il2CppMethodPointer) UnresolvedVirtualCall_259, (const Il2CppMethodPointer) UnresolvedVirtualCall_260, (const Il2CppMethodPointer) UnresolvedVirtualCall_261, (const Il2CppMethodPointer) UnresolvedVirtualCall_262, (const Il2CppMethodPointer) UnresolvedVirtualCall_263, (const Il2CppMethodPointer) UnresolvedVirtualCall_264, (const Il2CppMethodPointer) UnresolvedVirtualCall_265, (const Il2CppMethodPointer) UnresolvedVirtualCall_266, (const Il2CppMethodPointer) UnresolvedVirtualCall_267, (const Il2CppMethodPointer) UnresolvedVirtualCall_268, (const Il2CppMethodPointer) UnresolvedVirtualCall_269, (const Il2CppMethodPointer) UnresolvedVirtualCall_270, (const Il2CppMethodPointer) UnresolvedVirtualCall_271, (const Il2CppMethodPointer) UnresolvedVirtualCall_272, (const Il2CppMethodPointer) UnresolvedVirtualCall_273, (const Il2CppMethodPointer) UnresolvedVirtualCall_274, (const Il2CppMethodPointer) UnresolvedVirtualCall_275, (const Il2CppMethodPointer) UnresolvedVirtualCall_276, (const Il2CppMethodPointer) UnresolvedVirtualCall_277, (const Il2CppMethodPointer) UnresolvedVirtualCall_278, (const Il2CppMethodPointer) UnresolvedVirtualCall_279, (const Il2CppMethodPointer) UnresolvedVirtualCall_280, (const Il2CppMethodPointer) UnresolvedVirtualCall_281, (const Il2CppMethodPointer) UnresolvedVirtualCall_282, (const Il2CppMethodPointer) UnresolvedVirtualCall_283, (const Il2CppMethodPointer) UnresolvedVirtualCall_284, (const Il2CppMethodPointer) UnresolvedVirtualCall_285, (const Il2CppMethodPointer) UnresolvedVirtualCall_286, (const Il2CppMethodPointer) UnresolvedVirtualCall_287, (const Il2CppMethodPointer) UnresolvedVirtualCall_288, (const Il2CppMethodPointer) UnresolvedVirtualCall_289, (const Il2CppMethodPointer) UnresolvedVirtualCall_290, (const Il2CppMethodPointer) UnresolvedVirtualCall_291, (const Il2CppMethodPointer) UnresolvedVirtualCall_292, (const Il2CppMethodPointer) UnresolvedVirtualCall_293, (const Il2CppMethodPointer) UnresolvedVirtualCall_294, (const Il2CppMethodPointer) UnresolvedVirtualCall_295, (const Il2CppMethodPointer) UnresolvedVirtualCall_296, (const Il2CppMethodPointer) UnresolvedVirtualCall_297, (const Il2CppMethodPointer) UnresolvedVirtualCall_298, (const Il2CppMethodPointer) UnresolvedVirtualCall_299, (const Il2CppMethodPointer) UnresolvedVirtualCall_300, (const Il2CppMethodPointer) UnresolvedVirtualCall_301, (const Il2CppMethodPointer) UnresolvedVirtualCall_302, (const Il2CppMethodPointer) UnresolvedVirtualCall_303, (const Il2CppMethodPointer) UnresolvedVirtualCall_304, (const Il2CppMethodPointer) UnresolvedVirtualCall_305, (const Il2CppMethodPointer) UnresolvedVirtualCall_306, (const Il2CppMethodPointer) UnresolvedVirtualCall_307, (const Il2CppMethodPointer) UnresolvedVirtualCall_308, (const Il2CppMethodPointer) UnresolvedVirtualCall_309, };
[ "jaehyung545@gmail.com" ]
jaehyung545@gmail.com
313917f32eaa95e49e1fd19d8987ad28e5d36b05
3ac78caf28163a075b51f3216f83a998e515f894
/toys/misc/cpp2/cpp_patts/interpret4.cpp
2a7e5905f719e0d094c572315d55cd2e7df6c88a
[]
no_license
walrus7521/code
566fe5b6f96e91577cf2147d5a8c6f3996dab08c
29e07e4cfc904e9f1a4455ced202506e3807f74c
refs/heads/master
2022-12-14T03:40:11.237082
2020-09-30T15:34:02
2020-09-30T15:34:02
46,368,605
2
1
null
2022-12-09T11:45:41
2015-11-17T19:00:35
C
UTF-8
C++
false
false
988
cpp
#include <iostream> #include <list> using namespace std; class Context { }; class AbstractExpression { public: virtual void Interpret(Context *context) = 0; }; class TerminalExpression : public AbstractExpression { public: void Interpret(Context *context) { cout << "Called Terminal.Interpret()" << endl; } }; class NonterminalExpression : public AbstractExpression { public: void Interpret(Context *context) { cout << "Called Nonterminal.Interpret()" << endl; } }; int main() { Context *context = new Context(); // Usually a tree list<AbstractExpression*> alist; // = new list<AbstractExpression*>(); // Populate 'abstract syntax tree' alist.push_back(new TerminalExpression()); alist.push_back(new NonterminalExpression()); alist.push_back(new TerminalExpression()); alist.push_back(new TerminalExpression()); // Interpret for (auto& exp : alist) { exp->Interpret(context); } }
[ "BartB@Corp.helitrak.com" ]
BartB@Corp.helitrak.com
acf576cac491dd637d911d1f1ab27f328423ffd1
38ff692416b2c15b5c266a1502e3bfab86ab195a
/table.cpp
878a0b5bc1dbab9784b78a31a99371aaeadcd7e9
[]
no_license
projedi/DB
c7b4f78b4919e96950681eceda8bc97145707143
d530a087bfa7bdd0461ab3356d95d47bd09b9805
refs/heads/master
2020-05-31T03:22:43.807651
2013-02-08T10:22:38
2013-02-08T10:22:38
null
0
0
null
null
null
null
UTF-8
C++
false
false
925
cpp
#include "index.h" #include <sstream> // Why do I need them here? Standard says in case of const integral it's not required uint8_t const Table::ADD_FLAG; uint8_t const Table::DEL_FLAG; struct SimpleRowIterator { boost::optional<std::pair<rowcount_t,pagesize_t>> operator() (rowiterator const& iter) { if(*iter >= rowCount) return boost::optional<std::pair<rowcount_t,pagesize_t>>(); return boost::optional<std::pair<rowcount_t,pagesize_t>>(std::make_pair(*iter + 1, 0)); } rowcount_t rowCount; }; rowiterator Table::rowIterator() const { SimpleRowIterator iter; iter.rowCount = m_rowCount; return rowiterator(nullptr, iter, std::make_pair(0,0)); } void Table::loadIndexes() { for(int i = 0;; ++i) { std::stringstream str; str << m_name << "-" << i; auto index = Index::findIndex(m_page.db(), str.str()); if(!index) break; m_indexes.push_back(index); } }
[ "shabalyn.a@gmail.com" ]
shabalyn.a@gmail.com
53cdac2e7523fe9c61c65f29ab2f28db10a20d49
e4d9bd82f88cc4f2401d7504d6d25cc81ce8f49c
/unix-socket-programming/cixd.cpp
7c017f041858f97d4e851b5673e6f7f5497f0854
[]
no_license
josephmfaulkner/Advanced-Programming-Course-Work
140270cc4a341db4ac7d6fa2f000276ba8d13a84
ce8654e995af4be2b7b2774cfa3b452aa4f74864
refs/heads/master
2021-01-17T18:40:04.686721
2016-06-10T23:08:41
2016-06-10T23:08:41
60,881,886
0
0
null
null
null
null
UTF-8
C++
false
false
8,397
cpp
// $Id: cixd.cpp,v 1.5 2016-02-11 14:20:37-08 - - $ #include <iostream> #include <sstream> #include <string> #include <vector> #include <fstream> using namespace std; #include <libgen.h> #include <sys/types.h> #include <unistd.h> #include "protocol.h" #include "logstream.h" #include "sockets.h" logstream log (cout); struct cix_exit: public exception {}; void reply_get (accepted_socket& client_sock, cix_header& header) { log << "called reply_get: " << header.filename << endl; ifstream filestream(header.filename); if(filestream.good()){ stringstream string_stream; log << "sending file to client... " << endl; string_stream << filestream.rdbuf(); string file_data = string_stream.str(); header.command = CIX_FILE; header.nbytes = file_data.size(); memset(header.filename,0, FILENAME_SIZE); log << "sending header " << header << endl; send_packet(client_sock,&header,sizeof(header)); send_packet(client_sock,file_data.c_str(),file_data.size()); log << "sent " << file_data.size() << " bytes" << endl; filestream.close(); } else{ log << "get: " << header.filename << "no such file exists " << endl; header.command = CIX_NAK; header.nbytes = 0; memset(header.filename,0, FILENAME_SIZE); log << "sending header " << header << endl; send_packet (client_sock, &header, sizeof(header)); filestream.close(); } } void reply_ls (accepted_socket& client_sock, cix_header& header) { log << "reply-ls " << endl; const char* ls_cmd = "ls -l 2>&1"; FILE* ls_pipe = popen (ls_cmd, "r"); if (ls_pipe == NULL) { log << "ls -l: popen failed: " << strerror (errno) << endl; header.command = CIX_NAK; header.nbytes = errno; log << "sending header " << header << endl; send_packet (client_sock, &header, sizeof header); } string ls_output; char buffer[0x1000]; for (;;) { char* rc = fgets (buffer, sizeof buffer, ls_pipe); if (rc == nullptr) break; ls_output.append (buffer); } int status = pclose (ls_pipe); if (status < 0) log << ls_cmd << ": " << strerror (errno) << endl; else log << ls_cmd << ": exit " << (status >> 8) << " signal " << (status & 0x7F) << " core " << (status >> 7 & 1) << endl; header.command = CIX_LSOUT; header.nbytes = ls_output.size(); memset (header.filename, 0, FILENAME_SIZE); log << "sending header " << header << endl; send_packet (client_sock, &header, sizeof header); send_packet (client_sock, ls_output.c_str(), ls_output.size()); log << "sent " << ls_output.size() << " bytes" << endl; } void reply_put (accepted_socket& client_sock, cix_header& header ){ log << "called reply_put: " << header.filename << endl; ofstream file_stream(header.filename,ofstream::out); if (file_stream.good()){ log << "recieving file from client... " << endl; char file_buffer[header.nbytes + 1]; recv_packet (client_sock,file_buffer, header.nbytes); log << "recieved" << header.nbytes << "bytes" << endl; file_buffer[header.nbytes] = '\0'; file_stream.write(file_buffer,header.nbytes); file_stream.close(); header.command = CIX_ACK; header.nbytes = 0; log << "sending header: " << header << endl; send_packet(client_sock,&header,sizeof(header)); } else { log <<" put: " << header.filename << " : cannot create such file" << endl; header.command = CIX_NAK; header.nbytes = 0; memset (header.filename, 0, FILENAME_SIZE); log << "sending header " << header << endl; send_packet(client_sock, &header, sizeof(header)); } } void reply_rm (accepted_socket& client_sock, cix_header& header){ log << "called reply_rm: " << header.filename << endl; if(remove(header.filename)){ log << "rm: " << header.filename << ". Failed to remove file" << endl; header.command = CIX_NAK; header.nbytes = 0; memset (header.filename, 0, FILENAME_SIZE); log << "sending header " << header << endl; send_packet(client_sock,&header, sizeof(header)); }else{ log << "removed file: " << header.filename << " from directory" << endl; header.command = CIX_ACK; log << "sending header " << header << endl; send_packet(client_sock,&header, sizeof(header)); } } void run_server (accepted_socket& client_sock) { log.execname (log.execname() + "-server"); log << "connected to " << to_string (client_sock) << endl; try { for (;;) { cix_header header; recv_packet (client_sock, &header, sizeof header); log << "received header " << header << endl; switch (header.command) { case CIX_LS: reply_ls (client_sock, header); break; case CIX_GET: reply_get(client_sock, header); break; case CIX_PUT: reply_put(client_sock, header); break; case CIX_RM: reply_rm(client_sock, header); break; default: log << "invalid header from client" << endl; log << "cix_nbytes = " << header.nbytes << endl; log << "cix_command = " << header.command << endl; log << "cix_filename = " << header.filename << endl; break; } } }catch (socket_error& error) { log << error.what() << endl; }catch (cix_exit& error) { log << "caught cix_exit" << endl; } log << "finishing" << endl; throw cix_exit(); } void fork_cixserver (server_socket& server, accepted_socket& accept){ pid_t pid = fork(); if (pid == 0) { // child server.close(); run_server (accept); throw cix_exit(); }else { accept.close(); if (pid < 0) { log << "fork failed: " << strerror (errno) << endl; }else { log << "forked cixserver pid " << pid << endl; } } } void reap_zombies() { for (;;) { int status; pid_t child = waitpid (-1, &status, WNOHANG); if (child <= 0) break; log << "child " << child << " exit " << (status >> 8) << " signal " << (status & 0x7F) << " core " << (status >> 7 & 1) << endl; } } void signal_handler (int signal) { log << "signal_handler: caught " << strsignal (signal) << endl; reap_zombies(); } void signal_action (int signal, void (*handler) (int)) { struct sigaction action; action.sa_handler = handler; sigfillset (&action.sa_mask); action.sa_flags = 0; int rc = sigaction (signal, &action, nullptr); if (rc < 0) log << "sigaction " << strsignal (signal) << " failed: " << strerror (errno) << endl; } int main (int argc, char** argv) { log.execname (basename (argv[0])); log << "starting" << endl; vector<string> args (&argv[1], &argv[argc]); signal_action (SIGCHLD, signal_handler); in_port_t port = get_cix_server_port (args, 0); try { server_socket listener (port); for (;;) { log << to_string (hostinfo()) << " accepting port " << to_string (port) << endl; accepted_socket client_sock; for (;;) { try { listener.accept (client_sock); break; }catch (socket_sys_error& error) { switch (error.sys_errno) { case EINTR: log << "listener.accept caught " << strerror (EINTR) << endl; break; default: throw; } } } log << "accepted " << to_string (client_sock) << endl; try { fork_cixserver (listener, client_sock); reap_zombies(); }catch (socket_error& error) { log << error.what() << endl; } } }catch (socket_error& error) { log << error.what() << endl; }catch (cix_exit& error) { log << "caught cix_exit" << endl; } log << "finishing" << endl; return 0; }
[ "jofaulkn@ucsc.edu" ]
jofaulkn@ucsc.edu
ecdb2912bcff257a1a62586c7b6750ea11e85cd4
a285184d2f91130544ee270916d1c24a92d0be1b
/Individual7anan2.cpp
567fbdd974f7193eebc1ce5bf69123c82c94d7d7
[]
no_license
7anann/splitFunction-
63aeabacfa1ac64fedc10b88382bcbd9cd8cb597
a62ff36884568a4aaab192c200ed5464a44188b9
refs/heads/master
2020-03-31T03:07:08.283884
2018-10-06T15:31:15
2018-10-06T15:31:15
151,853,488
0
0
null
null
null
null
UTF-8
C++
false
false
1,863
cpp
/* Author: Hanan Mohamed Abdelrahim ID:20170375 This program gets a string using a vector function and split the target with the given delimiter. For example: the input split("10,20,30,40" , ",") should output "10" , "20" , "30" , "40". */ #include <iostream> #include <string> #include <vector> using namespace std; vector<string> split(string target, string delimeter); /// vector function takes two strings and split the target int main() { vector<string> temp; ///vector to print the splitted target string target; string delim; cout << "Enter string : "; getline(cin, target); cout << "Enter delimiter : "; getline(cin, delim); temp = split(target, delim); ///---------------------------------------------------------- cout << "\nThe string after Splitting : \n\n[ "; for (int i = 0; i < temp.size(); i++) { cout << "\""<<temp[i]<<"\""; if( i != temp.size()-1) cout << " , "; } cout << " ]\n\n"; ///---------------------------------------------------- } vector<string> split(string target, string delimeter) { string temp; ///a temporary string to hold each letter from the vector vector<string> splitTarget; ///an empty vector to hold the splitted target for (int i = 0; i<target.size(); i++) { if (target[i] != delimeter[0]) { temp+=target[i]; ///temp string will contain each letter from target before the delimiter } else if(target[i] == delimeter[0]) { splitTarget.push_back(temp); /// when the delimiter is found, the word will be saved in the empty vector splitTarget temp=""; ///empty the string to hold the new word } } splitTarget.push_back(temp); return splitTarget ; }
[ "noreply@github.com" ]
noreply@github.com
111f4d5f4a7a5acf9d2b18e045aa08c8c728773e
640b40fad2faa6ab908177fe60c67028315f99fd
/20160615/string.cc
0e4d42d949513c7c6835e89b5ef62d1f79fe9015
[]
no_license
xmoyKing/CS_CPP
ad0a64a47313820855eea91cac9cc4cb319be1f2
d40a92ad30f8b1a03c65675bf15b85afa17f6734
refs/heads/master
2021-01-17T08:38:43.253988
2016-06-21T01:25:41
2016-06-21T01:25:41
60,462,887
0
0
null
null
null
null
UTF-8
C++
false
false
694
cc
/// /// @file string.cc /// @author lemon(haohb13@gmail.com) /// @date 2016-06-16 15:55:11 /// #include <stdio.h> #include <iostream> #include <string> using std::cout; using std::endl; using std::string; int main(void) { string s1 = "hello,world"; string s2 = s1; string s3 = s1; string s4 = "hello,world"; printf("s1's address: %p\n", s1.c_str()); printf("s2's address: %p\n", s2.c_str()); printf("s3's address: %p\n", s3.c_str()); printf("s4's address: %p\n", s4.c_str()); cout << endl; s3[0] = 'H';//ๅ‘็”Ÿไบ†ๅ†™ๆ“ไฝœ printf("s1's address: %p\n", s1.c_str()); printf("s2's address: %p\n", s2.c_str()); printf("s3's address: %p\n", s3.c_str()); return 0; }
[ "822547462@qq.com" ]
822547462@qq.com
36bf384842511dcc2bfce57b725e92003a78db79
42dd998837cc812e814129a7ecf886b41f11c517
/DeadlockDetector/DeadlockDetector/src/DeadlockDetector.cpp
dd0c65692f73e9ba548c63e66c0c1aa46bba7dee
[]
no_license
EdoHarutyunyan/DeadlockDetector
473642eda5922c5c863cf72609c972ee7e99f995
981926c096783e491a7b28503cb8087c2a03b31a
refs/heads/master
2023-03-03T21:48:56.989404
2021-02-17T13:15:18
2021-02-17T13:15:18
339,726,968
0
0
null
null
null
null
UTF-8
C++
false
false
1,251
cpp
#include "DeadlockDetector.h" DeadlockDetector::DeadlockDetector(const uint32_t matrixSize) noexcept { m_idsMatrix.resize(matrixSize); } bool DeadlockDetector::Detect() { std::vector<bool> visitedNodes(m_idsMatrix.size(), false); std::vector<bool> recursionStack(m_idsMatrix.size(), false); for (size_t i = 0; i < m_idsMatrix.size(); i++) { if (IsCyclic(i, visitedNodes, recursionStack)) { return true; } } return false; } bool DeadlockDetector::IsCyclic(const uint32_t currentNode, std::vector<bool>& visitedNodes, std::vector<bool>& recursionStack) { if (visitedNodes[currentNode] == false) { // Mark the current node as visited and part of recursion stack visitedNodes[currentNode] = true; recursionStack[currentNode] = true; for (auto i = m_idsMatrix[currentNode].begin(); i != m_idsMatrix[currentNode].end(); ++i) { if (!visitedNodes[*i] && IsCyclic(*i, visitedNodes, recursionStack)) { return true; } if (recursionStack[*i]) { return true; } } } // Remove the vertex from recursion stack recursionStack[currentNode] = false; return false; } void DeadlockDetector::PrepareGraph(const uint32_t start, const uint32_t destination) { m_idsMatrix[start].push_back(destination); }
[ "eduard.harutyunyan@teamviewer.com" ]
eduard.harutyunyan@teamviewer.com
fecaec87c8986a12f7bcd45c69ac3cbbd158763e
244bf2b00bd1b70d477bcc15465b3779a1bc8f88
/FELICITY_Ver1.3.1/FELICITY/Code_Generation/Interpolation/Main/@GenFELPtSearchCode/private/Pt_Search_Code_Skeleton/mexPoint_Search_A.cpp
c7779114b85cf35ae98a935e748cada9de92580a
[ "BSD-3-Clause" ]
permissive
eardi/sm-fpca
2349f0bb6bd3a70c9e3c893fe9843b31f4a6d6b1
cc080f23681b637e24ca4935a1c85d9fa6003471
refs/heads/master
2021-05-16T05:35:05.054557
2020-10-23T11:19:53
2020-10-23T11:19:53
103,156,444
3
1
null
null
null
null
UTF-8
C++
false
false
1,121
cpp
/* ============================================================================================ This is the main "gateway" routine that interfaces MATLAB with a custom point searching code (useful for finding interpolation points). See other accompanying files for more details. NOTE: this code was generated from the FELICITY package: Finite ELement Implementation and Computational Interface Tool for You OUTPUTS ------- plhs[0] = POINTS(1).DATA{Cell_Indices, Local_Ref_Coord}, POINTS(1).Name, POINTS(2).DATA{Cell_Indices, Local_Ref_Coord}, POINTS(2).Name, etc... NOTE: portions of this code are automatically generated! WARNING!: Make sure all inputs to this mex function are NOT sparse matrices!!! Only FULL matrices are allowed as inputs!!! Copyright (c) 06-16-2014, Shawn W. Walker ============================================================================================ */ // default libraries you need #include <algorithm> #include <cstring> #include <math.h> #include <mex.h> // <-- This one is required
[ "eardi.lila@gmail.com" ]
eardi.lila@gmail.com
88f33aac91a010f654ea1646294e53582fcefff5
5f6c300153c229efdbb22751c5a6820820ae8f05
/Script/main.cpp
5c71028f727d6eed8ef071be4ac3bf39bea76ac7
[]
no_license
JaeSangHan/SDL_BandGame
cd35b5a8b9d46ed55ef87cbcf246063fc1bcddfb
eedccc39c42191c9f2786dc1691d0c9b73eca845
refs/heads/master
2020-04-04T17:53:06.548078
2018-11-05T00:55:49
2018-11-05T00:55:49
156,140,459
0
0
null
null
null
null
UHC
C++
false
false
319
cpp
#include "stdafx.h" int main(int argc, char* argv[]) { CSystem* pSystem = new CSystem; //memory ํ• ๋‹น //๊ฐ์ฒด ์ƒ์„ฑ pSystem->Initialize(); //system ์ดˆ๊ธฐํ™” pSystem->Run(); //pSystem ์‹คํ–‰ //์—…๋ฐ์ดํŠธ pSystem->Terminate(); //pSystem ์ข…๋ฃŒ delete pSystem; //๊ฐ์ฒด ์‚ญ์ œ //memory ์ •๋ฆฌ return 0; }
[ "41419137+JaeSangHan@users.noreply.github.com" ]
41419137+JaeSangHan@users.noreply.github.com
9b3ef939c67b8f7e0b8d7e965e2c10f59a42cf6f
a6dcd99a24872d6e81539faa0eef01dcbed84ba2
/prototype/src/playerManager.cc
91f2c042585acf51389129bb146fa4ec7ee9c552
[]
no_license
mehmetrizaoz/design_patterns
2d508ac3563598984d4d09a398cde30682ae4da4
17ffeb88d4739fc3bd7de5276c98472767bfde0c
refs/heads/main
2023-05-22T22:56:33.430392
2021-06-16T06:36:22
2021-06-16T06:36:22
345,968,028
1
0
null
null
null
null
UTF-8
C++
false
false
335
cc
#include "playerManager.h" #include "Player.h" #include "GoalKeeper.h" #include "Midfielder.h" #include "Defender.h" #include "Attacker.h" Player* playerManager::playerType[] = { new GoalKeeper, new Defender, new Midfielder, new Attacker }; Player* playerManager::makePlayer( int choice ){ return playerType[choice]->clone(); }
[ "mehmetrizaoz@gmail.com" ]
mehmetrizaoz@gmail.com
746accc375ba10e3e462df5561d331d4baf1040c
cf06e08973c82a2b9a3a464631ce53c1541f4576
/include/peafowl/external/fastflow/ff/tpc/tpcEnvironment.hpp
ac91a60daeb02789d8544f503234d21ea7555b4d
[ "MIT", "GPL-2.0-only", "LGPL-3.0-only" ]
permissive
borisVanhoof/peafowl
2e2a138de9eee43d32a8ff3e034e5fde6c3ada53
56f7feb6480fc20052d3077a1b5032f48266dca9
refs/heads/master
2022-12-18T12:42:34.814791
2020-09-25T09:55:43
2020-09-25T09:55:43
298,533,584
0
0
MIT
2020-09-25T09:53:43
2020-09-25T09:53:42
null
UTF-8
C++
false
false
4,237
hpp
/* -*- Mode: C++; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */ /*! * \file tpcEnvironment.hpp * \ingroup aux_classes * * \brief This file includes the basic support for TPC platforms * * Realises a singleton class that keep the status of the TPC platform * creates contexts, command queues etc. */ /* *************************************************************************** * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. * * 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. * * As a special exception, you may use this file as part of a free software * library without restriction. Specifically, if other files instantiate * templates or use macros or inline functions from this file, or you compile * this file and link it with other files to produce an executable, this * file does not by itself cause the resulting executable to be covered by * the GNU General Public License. This exception does not however * invalidate any other reasons why the executable file might be covered by * the GNU General Public License. * **************************************************************************** */ /* * Massimo Torquati: torquati@di.unipi.it * */ #ifndef FF_TPCENVIRONMENT_HPP #define FF_TPCENVIRONMENT_HPP #if defined(FF_TPC) #include <cstdlib> #include <pthread.h> #include <atomic> #include <ff/utils.hpp> #include <ff/tpc/tpc_api.h> using namespace rpr; using namespace tpc; namespace ff { static pthread_mutex_t tpcInstanceMutex = PTHREAD_MUTEX_INITIALIZER; /*! * \class tpcEnvironment * \ingroup aux_classes * * \brief TPC platform inspection and setup * * \note Multiple TPC devices are currently not managed. * */ class tpcEnvironment { private: //NOTE: currently only one single TPC device is supported tpc_ctx_t *ctx; tpc_dev_ctx_t *dev_ctx; protected: tpcEnvironment():ctx(NULL),dev_ctx(NULL) { tpcId = 0; bool ok = false; tpc_res_t r = tpc_init(&ctx); if (r == TPC_SUCCESS) { // FIX: need to support multiple TPC devices r = tpc_create_device(ctx, 0, &dev_ctx, TPC_DEVICE_CREATE_FLAGS_NONE); ok = r == TPC_SUCCESS; } if (! ok) { tpc_deinit(ctx); ctx = NULL, dev_ctx=NULL; error("tpcEnvironment::tpcEnvironment FATAL ERROR, unable to create TPC device\n"); abort(); } } public: ~tpcEnvironment() { if (ctx != NULL) { tpc_destroy_device(ctx,dev_ctx); tpc_deinit(ctx); } } static inline tpcEnvironment * instance() { while (!m_tpcEnvironment) { pthread_mutex_lock(&tpcInstanceMutex); if (!m_tpcEnvironment) { m_tpcEnvironment = new tpcEnvironment(); } assert(m_tpcEnvironment); pthread_mutex_unlock(&tpcInstanceMutex); } return m_tpcEnvironment; } unsigned long getTPCID() { return ++tpcId; } tpc_dev_ctx_t *const getTPCDevice(bool exclusive=false) { return dev_ctx; } private: tpcEnvironment(tpcEnvironment const&){}; tpcEnvironment& operator=(tpcEnvironment const&){ return *this;}; private: static tpcEnvironment * m_tpcEnvironment; std::atomic_long tpcId; }; tpcEnvironment* tpcEnvironment::m_tpcEnvironment = NULL; } // namespace #else // FF_TPC not defined namespace ff { class tpcEnvironment{ private: tpcEnvironment() {} public: static inline tpcEnvironment * instance() { return NULL; } }; } // namespace #endif /* FF_TPC */ #endif /* FF_TPCENVIRONMENT_HPP */
[ "d.desensi.software@gmail.com" ]
d.desensi.software@gmail.com
60abc53d1d4843ff757860a3a400f77d07f54f45
9cab88ad06cd572ed0f34db2e00717a890b9aff4
/Game.cpp
f7b43768d8ec9a43238034a50c64c56bccf7bd90
[]
no_license
Problem-Solution-Environment/GAP5002
defd400cf81abb676edd4b47678d45e1af99cd36
5c696767884a41e152d3c1dae6271808125383ed
refs/heads/master
2021-01-13T09:03:40.174585
2016-11-10T14:26:37
2016-11-10T14:26:37
70,164,565
1
1
null
2016-11-10T14:26:37
2016-10-06T14:59:25
C++
UTF-8
C++
false
false
388
cpp
#include "Game.h" Game::Game() { } Game::~Game() { } void Game::setUp() { setBackground("images/sBgrd1.png"); m_Room.push_back(new Room_Object); } void Game::logic() { for (int i = 0; i < m_Room.size(); i++) { m_Room[i]->updateObjects(); } } void Game::draw() { for (int i = 0; i < m_Room.size(); i++) { m_Room[i]->drawObjects(); } }
[ "noreply@github.com" ]
noreply@github.com
4e901fc9bb55496723ece8ad36a11af5666034f0
a2df9b5688fbeeb18dab4f1d1d429528f6f9acfe
/Lab/MultplicationTableDynamic2DArray/main.cpp
07ff69d89838d7b84c92fd52448fb13a638aa02f
[]
no_license
joseroman1/Roman_Jose_CSC5_43952
450d60803d976bd2c4d2d007a4918ee06628a787
0489f5b0e6afd97e26f01c5ddbc75c4bdf3a0fcc
refs/heads/master
2021-01-02T14:46:50.168775
2015-06-08T16:44:40
2015-06-08T16:44:40
31,328,353
0
0
null
null
null
null
UTF-8
C++
false
false
1,526
cpp
/* * File: main.cpp * Author: Jose Roman * Created on June 1, 2015, 8:35 AM * Purpose: 2D Dynamic Array */ //System Libraries #include <iostream> #include <iomanip> using namespace std; //User Libraries //Global Constants //Function Prototypes int **filAray(int,int); void printArray(int **,int,int); void destroy(int**,int); //Execution Begins Here! int main(int argc, char** argv) { //Create the array int rows=13,cols=13; int **array=filAray(13,13);\ //Print the array printArray(array,rows,cols); //Deallocate the array destroy(rows,cols); return 0; } void destroy(int**a,int r){ //Loop and destroy the columns for(int i=0;i<r;i++){ delete [] a[i]; } //Destroy the rows delete []a; } void printArray(int **a,int r,int c){ //Print the headings cout<<"This is your multiplication table"<<endl; cout<<setw(8)<<0; for(int i=1;i<c;i++){ cout<<setw(4)<<a[0][i]; } cout<<endl; //Print the array for(int i=1;i<r;i++){ for(int j=0;j<c;j++){ cout<<a[i][j]; cout<<setw(4)<<a[i][j]; } cout<<endl; } } int **filAray(int row,int col){ //Create the number of rows int **array=new int*[row]; //Loop and create hte omlums for(int i=0;i<row;i++){ array[i]=new int[col]; } //Fill the array for(int i=0;i<row;i++){ for(int j=0;j<col;j++){ array[i][j]=i*j; } } //Return the array return array; }
[ "joseroman1" ]
joseroman1
d5c129cee71c98ceca4314267bc2c04e2c23236d
c57290e80f4c8d4fccdb86a60ebae3b25736847a
/FINNAL_FULL/FINNAL_FULL/DoThi_PTIT/9.cpp
b3d86eac3a33e332e87e84d943ddc5314ffc58ee
[]
no_license
nguyenanhptit/C-
735d411eb6ecb8de58a74a29f8329631547c1f73
44a6565ba9fcd0abff5ec892399459ffa3e2e5fe
refs/heads/master
2020-03-25T19:50:28.131195
2018-08-09T05:08:39
2018-08-09T05:08:39
144,102,806
0
0
null
null
null
null
UTF-8
C++
false
false
1,036
cpp
#include<conio.h> #include<stdio.h> #define FALSE 0 #define TRUE 1 FILE *f1; int d,N,stack[50],CE[50],A[50][50],a[50]; void Nhap() { f1=fopen("dothi9.in","r"); fscanf(f1,"%d",&N); for(int i=1;i<=N;i++) { for(int j=1;j<=N;j++) fscanf(f1,"%d",&A[i][j]); } for(int i=1;i<=N;i++) { printf(" \n"); for(int j=1;j<=N;j++) printf(" %d ",A[i][j]); } } int Ktra() { int s; d=0; for(int i=1;i<=N;i++) { s=0; for(int j=1;j<=N;j++) { s=s+A[i][j]; } if(s%2!=0) { d++; a[d]=i; } } if(d!=2) return 0; else return 1; } void TimEuler(int u) { int i,x,v,top,dCE;; printf("\n Dinh bat dau: %d :",u); top=1; dCE=0; stack[top]=u; while(top!=0) { v=stack[top];x=1; while(x<=N && A[v][x]==0) x++; if(x>N) { top--; dCE++; CE[dCE]=v; } else { top++; stack[top]=x; A[v][x]=A[x][v]=0; } } for(int j=dCE;j>0;j--) { printf(" %d ",CE[j]); } } int main() { Nhap(); if(Ktra()) { printf("\n Duong di Euler: \n"); TimEuler(a[1]); } else printf("\n Khong co duong di Euler"); }
[ "trannguyenanh96@gmail.com" ]
trannguyenanh96@gmail.com
0803e878b89eaf060d71be9afbd0bd14839eff93
b4b19d4db09afa6f54de5a0960fee8f300f62a87
/test/speed/micro/cloreps/cloreps.cpp
24a74d5e25a8873c3cb93147e4ea71f64af04047
[]
no_license
brk/foster
a112f4cb9c54a4bb4337f2874bb96cbd1d8410d0
d08873e647f3750cdc04a053e6be9450298791cf
refs/heads/master
2021-11-29T14:21:36.992844
2021-11-26T19:55:13
2021-11-26T19:55:13
227,006,748
1
0
null
null
null
null
UTF-8
C++
false
false
1,933
cpp
#include "timer.h" #include <vector> int count = 0; ///////////// typedef void (*fn_0)(void*); struct env_ii { int a; int b; }; struct clo_ii { env_ii* e; fn_0 f; }; void f_ii(void* env) { env_ii* e = (env_ii*) env; count += (e->a + e->b); } ///////////// struct cloenv_ii { fn_0 g; env_ii e; }; void g_ii(void* cloenv) { cloenv_ii* e = (cloenv_ii*) cloenv; count += (e->e.a + e->e.b); } ///////////// void h_ii(int a, int b) { count += (a + b); } ///////////// void test_f_ii(timings& t, int n) { { std::vector<clo_ii> cs(n); for (int i = 0; i < n; ++i) { cs[i].f = f_ii; cs[i].e = new env_ii; cs[i].e->a = 1; cs[i].e->b = 2; } timer r(t, "f"); for (int i = 0; i < n; ++i) { clo_ii* c = &cs[i]; c->f(c->e); } } } void test_f2_ii(timings& t, int n) { { std::vector<cloenv_ii> cs(n); for (int i = 0; i < n; ++i) { cs[i].g = f_ii; cs[i].e.a = 1; cs[i].e.b = 2; } timer r(t, "f2"); for (int i = 0; i < n; ++i) { cloenv_ii* c = &cs[i]; c->g(&c->e); } } } void test_g_ii(timings& t, int n) { { std::vector<cloenv_ii> cs(n); for (int i = 0; i < n; ++i) { cs[i].g = g_ii; cs[i].e.a = 1; cs[i].e.b = 2; } timer r(t, "g"); for (int i = 0; i < n; ++i) { cloenv_ii* c = &cs[i]; c->g(c); } } } void test_h_ii(timings& t, int n) { { std::vector<env_ii> es(n); for (int i = 0; i < n; ++i) { es[i].a = 1; es[i].b = 2; } timer r(t, "h"); for (int i = 0; i < n; ++i) { h_ii(es[i].a, es[i].b); } } } int main() { timings t; int n = 10000000; test_f_ii(t, n); test_g_ii(t, n); test_h_ii(t, n); test_f2_ii(t, n); std::cout << t.summarize("f", "h"); std::cout << t.summarize("g", "h"); std::cout << t.summarize("f", "g"); std::cout << t.summarize("f", "f2"); return 0; }
[ "eschew@gmail.com" ]
eschew@gmail.com
7c37acf0ba3e01f81ace60ece158f72298b84552
362c6ac45fadf863e53198e8060ef0e0af8e2dd4
/gdal-1.6.1-tcl_patched/ogr/ogrsf_frmts/bna/ogrbnalayer.cpp
db32e2bbaa7619360d4f932da89c8399f536317c
[ "LicenseRef-scancode-public-domain", "MIT", "LicenseRef-scancode-info-zip-2005-02", "LicenseRef-scancode-warranty-disclaimer" ]
permissive
blacksqr/tcl-map
7f524fa9c06a16a1f2ed240a7e091eeb09b15715
ea216b79338ac801ea5ef120edb3b5b724154534
refs/heads/master
2021-01-10T14:13:59.653675
2009-09-08T10:04:12
2009-09-08T10:04:12
48,476,435
0
0
null
null
null
null
UTF-8
C++
false
false
29,244
cpp
/****************************************************************************** * $Id: ogrbnalayer.cpp * * Project: BNA Translator * Purpose: Implements OGRBNALayer class. * Author: Even Rouault, even dot rouault at mines dash paris dot org * ****************************************************************************** * Copyright (c) 2007, Even Rouault * * 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 "ogr_bna.h" #include "cpl_conv.h" #include "cpl_string.h" #include "cpl_csv.h" #ifndef M_PI # define M_PI 3.1415926535897932384626433832795 #endif /************************************************************************/ /* OGRBNALayer() */ /* */ /* Note that the OGRBNALayer assumes ownership of the passed */ /* file pointer. */ /************************************************************************/ OGRBNALayer::OGRBNALayer( const char *pszFilename, const char* layerName, BNAFeatureType bnaFeatureType, OGRwkbGeometryType eLayerGeomType, int bWriter, OGRBNADataSource* poDS, int nIDs) { eof = FALSE; failed = FALSE; curLine = 0; nNextFID = 0; this->bWriter = bWriter; this->poDS = poDS; this->nIDs = nIDs; nFeatures = 0; partialIndexTable = TRUE; offsetAndLineFeaturesTable = NULL; const char* iKnowHowToCount[] = { "Primary", "Secondary", "Third", "Fourth", "Fifth" }; char tmp[32]; poFeatureDefn = new OGRFeatureDefn( CPLSPrintf("%s_%s", CPLGetBasename( pszFilename ) , layerName )); poFeatureDefn->Reference(); poFeatureDefn->SetGeomType( eLayerGeomType ); this->bnaFeatureType = bnaFeatureType; if (! bWriter ) { int i; for(i=0;i<nIDs;i++) { if (i < (int) (sizeof(iKnowHowToCount)/sizeof(iKnowHowToCount[0])) ) { sprintf(tmp, "%s ID", iKnowHowToCount[i]); OGRFieldDefn oFieldID(tmp, OFTString ); poFeatureDefn->AddFieldDefn( &oFieldID ); } else { sprintf(tmp, "%dth ID", i+1); OGRFieldDefn oFieldID(tmp, OFTString ); poFeatureDefn->AddFieldDefn( &oFieldID ); } } if (bnaFeatureType == BNA_ELLIPSE) { OGRFieldDefn oFieldMajorRadius( "Major radius", OFTReal ); poFeatureDefn->AddFieldDefn( &oFieldMajorRadius ); OGRFieldDefn oFieldMinorRadius( "Minor radius", OFTReal ); poFeatureDefn->AddFieldDefn( &oFieldMinorRadius ); } fpBNA = VSIFOpen( pszFilename, "rb" ); if( fpBNA == NULL ) return; } else { fpBNA = NULL; } } /************************************************************************/ /* ~OGRBNALayer() */ /************************************************************************/ OGRBNALayer::~OGRBNALayer() { poFeatureDefn->Release(); CPLFree(offsetAndLineFeaturesTable); if (fpBNA) VSIFClose( fpBNA ); } /************************************************************************/ /* SetFeatureIndexTable() */ /************************************************************************/ void OGRBNALayer::SetFeatureIndexTable(int nFeatures, OffsetAndLine* offsetAndLineFeaturesTable, int partialIndexTable) { this->nFeatures = nFeatures; this->offsetAndLineFeaturesTable = offsetAndLineFeaturesTable; this->partialIndexTable = partialIndexTable; } /************************************************************************/ /* ResetReading() */ /************************************************************************/ void OGRBNALayer::ResetReading() { eof = FALSE; failed = FALSE; curLine = 0; nNextFID = 0; VSIFSeek( fpBNA, 0, SEEK_SET ); } /************************************************************************/ /* GetNextFeature() */ /************************************************************************/ OGRFeature *OGRBNALayer::GetNextFeature() { OGRFeature *poFeature; BNARecord* record; int offset, line; if (failed || eof) return NULL; while(1) { int ok = FALSE; offset = VSIFTell(fpBNA); line = curLine; if (nNextFID < nFeatures) { VSIFSeek( fpBNA, offsetAndLineFeaturesTable[nNextFID].offset, SEEK_SET ); curLine = offsetAndLineFeaturesTable[nNextFID].line; } record = BNA_GetNextRecord(fpBNA, &ok, &curLine, TRUE, bnaFeatureType); if (ok == FALSE) { BNA_FreeRecord(record); failed = TRUE; return NULL; } if (record == NULL) { /* end of file */ eof = TRUE; /* and we have finally build the whole index table */ partialIndexTable = FALSE; return NULL; } if (record->featureType == bnaFeatureType) { if (nNextFID >= nFeatures) { nFeatures++; offsetAndLineFeaturesTable = (OffsetAndLine*)CPLRealloc(offsetAndLineFeaturesTable, nFeatures * sizeof(OffsetAndLine)); offsetAndLineFeaturesTable[nFeatures-1].offset = offset; offsetAndLineFeaturesTable[nFeatures-1].line = line; } poFeature = BuildFeatureFromBNARecord(record, nNextFID++); BNA_FreeRecord(record); if( (m_poFilterGeom == NULL || FilterGeometry( poFeature->GetGeometryRef() ) ) && (m_poAttrQuery == NULL || m_poAttrQuery->Evaluate( poFeature )) ) { return poFeature; } delete poFeature; } else { BNA_FreeRecord(record); } } } void OGRBNALayer::WriteFeatureAttributes(FILE* fp, OGRFeature *poFeature ) { int i; OGRFieldDefn *poField; int nbOutID = poDS->GetNbOutId(); if (nbOutID < 0) nbOutID = poFeatureDefn->GetFieldCount(); for(i=0;i<nbOutID;i++) { if (i < poFeatureDefn->GetFieldCount()) { poField = poFeatureDefn->GetFieldDefn( i ); if( poFeature->IsFieldSet( i ) ) { const char *pszRaw = poFeature->GetFieldAsString( i ); VSIFPrintf( fp, "\"%s\",", pszRaw); } else { VSIFPrintf( fp, "\"\","); } } else { VSIFPrintf( fp, "\"\","); } } } /************************************************************************/ /* CreateFeature() */ /************************************************************************/ OGRErr OGRBNALayer::CreateFeature( OGRFeature *poFeature ) { int i,j,k,n; OGRGeometry *poGeom = poFeature->GetGeometryRef(); char eol[3]; const char* partialEol = (poDS->GetMultiLine()) ? eol : poDS->GetCoordinateSeparator(); if (poGeom == NULL) { CPLError(CE_Failure, CPLE_AppDefined, "OGR BNA driver cannot write features with empty geometries."); return OGRERR_FAILURE; } if (poDS->GetUseCRLF()) { eol[0] = 13; eol[1] = 10; eol[2] = 0; } else { eol[0] = 10; eol[1] = 0; } if ( ! bWriter ) { return OGRERR_FAILURE; } if( poFeature->GetFID() == OGRNullFID ) poFeature->SetFID( nFeatures++ ); FILE* fp = poDS->GetOutputFP(); int nbPairPerLine = poDS->GetNbPairPerLine(); char formatCoordinates[32]; sprintf(formatCoordinates, "%%s%%.%df%s%%.%df", poDS->GetCoordinatePrecision(), poDS->GetCoordinateSeparator(), poDS->GetCoordinatePrecision()); switch( poGeom->getGeometryType() ) { case wkbPoint: case wkbPoint25D: { OGRPoint* point = (OGRPoint*)poGeom; WriteFeatureAttributes(fp, poFeature); VSIFPrintf( fp, "1"); VSIFPrintf( fp, formatCoordinates, partialEol, point->getX(), point->getY()); VSIFPrintf( fp, "%s", eol); break; } case wkbPolygon: case wkbPolygon25D: { OGRPolygon* polygon = (OGRPolygon*)poGeom; OGRLinearRing* ring = polygon->getExteriorRing(); double firstX = ring->getX(0); double firstY = ring->getY(0); int nBNAPoints = ring->getNumPoints(); int is_ellipse = FALSE; /* This code tries to detect an ellipse in a polygon geometry */ /* This will only work presumably on ellipses already read from a BNA file */ /* Mostly a BNA to BNA feature... */ if (poDS->GetEllipsesAsEllipses() && polygon->getNumInteriorRings() == 0 && nBNAPoints == 361) { double oppositeX = ring->getX(180); double oppositeY = ring->getY(180); double quarterX = ring->getX(90); double quarterY = ring->getY(90); double antiquarterX = ring->getX(270); double antiquarterY = ring->getY(270); double center1X = 0.5*(firstX + oppositeX); double center1Y = 0.5*(firstY + oppositeY); double center2X = 0.5*(quarterX + antiquarterX); double center2Y = 0.5*(quarterY + antiquarterY); if (fabs(center1X - center2X) < 1e-5 && fabs(center1Y - center2Y) < 1e-5 && fabs(oppositeY - firstY) < 1e-5 && fabs(quarterX - antiquarterX) < 1e-5) { double major_radius = fabs(firstX - center1X); double minor_radius = fabs(quarterY - center1Y); is_ellipse = TRUE; for(i=0;i<360;i++) { if (!(fabs(center1X + major_radius * cos(i * (M_PI / 180)) - ring->getX(i)) < 1e-5 && fabs(center1Y + minor_radius * sin(i * (M_PI / 180)) - ring->getY(i)) < 1e-5)) { is_ellipse = FALSE; break; } } if ( is_ellipse == TRUE ) { WriteFeatureAttributes(fp, poFeature); VSIFPrintf( fp, "2"); VSIFPrintf( fp, formatCoordinates, partialEol, center1X, center1Y); VSIFPrintf( fp, formatCoordinates, partialEol, major_radius, minor_radius); VSIFPrintf( fp, "%s", eol); } } } if ( is_ellipse == FALSE) { int nInteriorRings = polygon->getNumInteriorRings(); for(i=0;i<nInteriorRings;i++) { nBNAPoints += polygon->getInteriorRing(i)->getNumPoints() + 1; } if (nBNAPoints <= 3) { CPLError( CE_Failure, CPLE_AppDefined, "Invalid geometry" ); return OGRERR_FAILURE; } WriteFeatureAttributes(fp, poFeature); VSIFPrintf( fp, "%d", nBNAPoints); n = ring->getNumPoints(); int nbPair = 0; for(i=0;i<n;i++) { VSIFPrintf( fp, formatCoordinates, ((nbPair % nbPairPerLine) == 0) ? partialEol : " ", ring->getX(i), ring->getY(i)); nbPair++; } for(i=0;i<nInteriorRings;i++) { ring = polygon->getInteriorRing(i); n = ring->getNumPoints(); for(j=0;j<n;j++) { VSIFPrintf( fp, formatCoordinates, ((nbPair % nbPairPerLine) == 0) ? partialEol : " ", ring->getX(j), ring->getY(j)); nbPair++; } VSIFPrintf( fp, formatCoordinates, ((nbPair % nbPairPerLine) == 0) ? partialEol : " ", firstX, firstY); nbPair++; } VSIFPrintf( fp, "%s", eol); } break; } case wkbMultiPolygon: case wkbMultiPolygon25D: { OGRMultiPolygon* multipolygon = (OGRMultiPolygon*)poGeom; int N = multipolygon->getNumGeometries(); int nBNAPoints = 0; double firstX = 0, firstY = 0; for(i=0;i<N;i++) { OGRPolygon* polygon = (OGRPolygon*)multipolygon->getGeometryRef(i); OGRLinearRing* ring = polygon->getExteriorRing(); if (nBNAPoints) nBNAPoints ++; else { firstX = ring->getX(0); firstY = ring->getY(0); } nBNAPoints += ring->getNumPoints(); int nInteriorRings = polygon->getNumInteriorRings(); for(j=0;j<nInteriorRings;j++) { nBNAPoints += polygon->getInteriorRing(j)->getNumPoints() + 1; } } if (nBNAPoints <= 3) { CPLError( CE_Failure, CPLE_AppDefined, "Invalid geometry" ); return OGRERR_FAILURE; } WriteFeatureAttributes(fp, poFeature); VSIFPrintf( fp, "%d", nBNAPoints); int nbPair = 0; for(i=0;i<N;i++) { OGRPolygon* polygon = (OGRPolygon*)multipolygon->getGeometryRef(i); OGRLinearRing* ring = polygon->getExteriorRing(); n = ring->getNumPoints(); int nInteriorRings = polygon->getNumInteriorRings(); for(j=0;j<n;j++) { VSIFPrintf( fp, formatCoordinates, ((nbPair % nbPairPerLine) == 0) ? partialEol : " ",ring->getX(j), ring->getY(j)); nbPair++; } if (i != 0) { VSIFPrintf( fp, formatCoordinates, ((nbPair % nbPairPerLine) == 0) ? partialEol : " ",firstX, firstY); nbPair++; } for(j=0;j<nInteriorRings;j++) { ring = polygon->getInteriorRing(j); n = ring->getNumPoints(); for(k=0;k<n;k++) { VSIFPrintf( fp, formatCoordinates, ((nbPair % nbPairPerLine) == 0) ? partialEol : " ", ring->getX(k), ring->getY(k)); nbPair++; } VSIFPrintf( fp, formatCoordinates, ((nbPair % nbPairPerLine) == 0) ? partialEol : " ", firstX, firstY); nbPair++; } } VSIFPrintf( fp, "%s", eol); break; } case wkbLineString: case wkbLineString25D: { OGRLineString* line = (OGRLineString*)poGeom; int n = line->getNumPoints(); int i; if (n < 2) { CPLError( CE_Failure, CPLE_AppDefined, "Invalid geometry" ); return OGRERR_FAILURE; } WriteFeatureAttributes(fp, poFeature); VSIFPrintf( fp, "-%d", n); int nbPair = 0; for(i=0;i<n;i++) { VSIFPrintf( fp, formatCoordinates, ((nbPair % nbPairPerLine) == 0) ? partialEol : " ", line->getX(i), line->getY(i)); nbPair++; } VSIFPrintf( fp, "%s", eol); break; } default: { CPLError( CE_Failure, CPLE_AppDefined, "Unsupported geometry type : %s.", poGeom->getGeometryName() ); return OGRERR_UNSUPPORTED_GEOMETRY_TYPE; } } return OGRERR_NONE; } /************************************************************************/ /* CreateField() */ /************************************************************************/ OGRErr OGRBNALayer::CreateField( OGRFieldDefn *poField, int bApproxOK ) { if( !bWriter || nFeatures != 0) return OGRERR_FAILURE; poFeatureDefn->AddFieldDefn( poField ); return OGRERR_NONE; } /************************************************************************/ /* BuildFeatureFromBNARecord() */ /************************************************************************/ OGRFeature * OGRBNALayer::BuildFeatureFromBNARecord (BNARecord* record, long fid) { OGRFeature *poFeature; int i; poFeature = new OGRFeature( poFeatureDefn ); for(i=0;i<nIDs;i++) { poFeature->SetField( i, record->ids[i] ? record->ids[i] : ""); } poFeature->SetFID( fid ); if (bnaFeatureType == BNA_POINT) { poFeature->SetGeometryDirectly( new OGRPoint( record->tabCoords[0][0], record->tabCoords[0][1] ) ); } else if (bnaFeatureType == BNA_POLYLINE) { OGRLineString* lineString = new OGRLineString (); lineString->setCoordinateDimension(2); lineString->setNumPoints(record->nCoords); for(i=0;i<record->nCoords;i++) { lineString->setPoint(i, record->tabCoords[i][0], record->tabCoords[i][1] ); } poFeature->SetGeometryDirectly(lineString); } else if (bnaFeatureType == BNA_POLYGON) { double firstX = record->tabCoords[0][0]; double firstY = record->tabCoords[0][1]; int isFirstPolygon = 1; double secondaryFirstX = 0, secondaryFirstY = 0; OGRLinearRing* ring = new OGRLinearRing (); ring->setCoordinateDimension(2); ring->addPoint(record->tabCoords[0][0], record->tabCoords[0][1] ); /* record->nCoords is really a safe upper bound */ int nbPolygons = 0; OGRPolygon** tabPolygons = (OGRPolygon**)CPLMalloc(record->nCoords * sizeof(OGRPolygon*)); for(i=1;i<record->nCoords;i++) { ring->addPoint(record->tabCoords[i][0], record->tabCoords[i][1] ); if (isFirstPolygon == 1 && record->tabCoords[i][0] == firstX && record->tabCoords[i][1] == firstY) { OGRPolygon* polygon = new OGRPolygon (); polygon->addRingDirectly(ring); tabPolygons[nbPolygons] = polygon; nbPolygons++; if (i == record->nCoords - 1) { break; } isFirstPolygon = 0; i ++; secondaryFirstX = record->tabCoords[i][0]; secondaryFirstY = record->tabCoords[i][1]; ring = new OGRLinearRing (); ring->setCoordinateDimension(2); ring->addPoint(record->tabCoords[i][0], record->tabCoords[i][1] ); } else if (isFirstPolygon == 0 && record->tabCoords[i][0] == secondaryFirstX && record->tabCoords[i][1] == secondaryFirstY) { OGRPolygon* polygon = new OGRPolygon (); polygon->addRingDirectly(ring); tabPolygons[nbPolygons] = polygon; nbPolygons++; if (i < record->nCoords - 1) { /* After the closing of a subpolygon, the first coordinates of the first polygon */ /* should be recalled... in theory */ if (record->tabCoords[i+1][0] == firstX && record->tabCoords[i+1][1] == firstY) { if (i + 1 == record->nCoords - 1) break; i ++; } else { #if 0 CPLError(CE_Warning, CPLE_AppDefined, "Geometry of polygon of fid %d starting at line %d is not strictly conformant. " "Trying to go on...\n", fid, offsetAndLineFeaturesTable[fid].line + 1); #endif } i ++; secondaryFirstX = record->tabCoords[i][0]; secondaryFirstY = record->tabCoords[i][1]; ring = new OGRLinearRing (); ring->setCoordinateDimension(2); ring->addPoint(record->tabCoords[i][0], record->tabCoords[i][1] ); } else { #if 0 CPLError(CE_Warning, CPLE_AppDefined, "Geometry of polygon of fid %d starting at line %d is not strictly conformant. Trying to go on...\n", fid, offsetAndLineFeaturesTable[fid].line + 1); #endif } } } if (i == record->nCoords) { /* Let's be a bit tolerant abount non closing polygons */ if (isFirstPolygon) { ring->addPoint(record->tabCoords[0][0], record->tabCoords[0][1] ); OGRPolygon* polygon = new OGRPolygon (); polygon->addRingDirectly(ring); tabPolygons[nbPolygons] = polygon; nbPolygons++; } } if (nbPolygons == 1) { /* Special optimization here : we directly put the polygon into the multipolygon. */ /* This should save quite a few useless copies */ OGRMultiPolygon* multipolygon = new OGRMultiPolygon(); multipolygon->addGeometryDirectly(tabPolygons[0]); poFeature->SetGeometryDirectly(multipolygon); } else { int isValidGeometry; poFeature->SetGeometryDirectly( OGRGeometryFactory::organizePolygons((OGRGeometry**)tabPolygons, nbPolygons, &isValidGeometry, NULL)); if (!isValidGeometry) { CPLError(CE_Warning, CPLE_AppDefined, "Geometry of polygon of fid %ld starting at line %d cannot be translated to Simple Geometry. " "All polygons will be contained in a multipolygon.\n", fid, offsetAndLineFeaturesTable[fid].line + 1); } } CPLFree(tabPolygons); } else { /* Circle or ellipses are not part of the OGR Simple Geometry, so we discretize them into polygons by 1 degree step */ OGRPolygon* polygon = new OGRPolygon (); OGRLinearRing* ring = new OGRLinearRing (); ring->setCoordinateDimension(2); double center_x = record->tabCoords[0][0]; double center_y = record->tabCoords[0][1]; double major_radius = record->tabCoords[1][0]; double minor_radius = record->tabCoords[1][1]; if (minor_radius == 0) minor_radius = major_radius; for(i=0;i<360;i++) { ring->addPoint(center_x + major_radius * cos(i * (M_PI / 180)), center_y + minor_radius * sin(i * (M_PI / 180)) ); } ring->addPoint(center_x + major_radius, center_y); polygon->addRingDirectly ( ring ); poFeature->SetGeometryDirectly(polygon); poFeature->SetField( nIDs, major_radius); poFeature->SetField( nIDs+1, minor_radius); } return poFeature; } /************************************************************************/ /* FastParseUntil() */ /************************************************************************/ void OGRBNALayer::FastParseUntil ( int interestFID) { if (partialIndexTable) { ResetReading(); BNARecord* record; if (nFeatures > 0) { VSIFSeek( fpBNA, offsetAndLineFeaturesTable[nFeatures-1].offset, SEEK_SET ); curLine = offsetAndLineFeaturesTable[nFeatures-1].line; /* Just skip the last read one */ int ok = FALSE; record = BNA_GetNextRecord(fpBNA, &ok, &curLine, TRUE, BNA_READ_NONE); BNA_FreeRecord(record); } while(1) { int ok = FALSE; int offset = VSIFTell(fpBNA); int line = curLine; record = BNA_GetNextRecord(fpBNA, &ok, &curLine, TRUE, BNA_READ_NONE); if (ok == FALSE) { failed = TRUE; return; } if (record == NULL) { /* end of file */ eof = TRUE; /* and we have finally build the whole index table */ partialIndexTable = FALSE; return; } if (record->featureType == bnaFeatureType) { nFeatures++; offsetAndLineFeaturesTable = (OffsetAndLine*)CPLRealloc(offsetAndLineFeaturesTable, nFeatures * sizeof(OffsetAndLine)); offsetAndLineFeaturesTable[nFeatures-1].offset = offset; offsetAndLineFeaturesTable[nFeatures-1].line = line; BNA_FreeRecord(record); if (nFeatures - 1 == interestFID) return; } else { BNA_FreeRecord(record); } } } } /************************************************************************/ /* GetFeature() */ /************************************************************************/ OGRFeature * OGRBNALayer::GetFeature( long nFID ) { OGRFeature *poFeature; BNARecord* record; int ok; if (nFID < 0) return NULL; FastParseUntil(nFID); if (nFID >= nFeatures) return NULL; VSIFSeek( fpBNA, offsetAndLineFeaturesTable[nFID].offset, SEEK_SET ); curLine = offsetAndLineFeaturesTable[nFID].line; record = BNA_GetNextRecord(fpBNA, &ok, &curLine, TRUE, bnaFeatureType); poFeature = BuildFeatureFromBNARecord(record, nFID); BNA_FreeRecord(record); return poFeature; } /************************************************************************/ /* TestCapability() */ /************************************************************************/ int OGRBNALayer::TestCapability( const char * pszCap ) { if( EQUAL(pszCap,OLCSequentialWrite) ) return bWriter; else if( EQUAL(pszCap,OLCCreateField) ) return bWriter && nFeatures == 0; else return FALSE; }
[ "alsterg@0a9d5614-3a60-11de-801c-c7cb65f9a556" ]
alsterg@0a9d5614-3a60-11de-801c-c7cb65f9a556
f1a7ec96435b94dae1ae4d3a3ed2c8f4b88294ad
2cfb3aa426d29838d09e4fb8ca40bfb8636ade84
/RVAF-GUI/VtkViewer.h
b562031df0d095cb2d995743abafc55cb4f0e290
[ "BSD-2-Clause" ]
permissive
michaelchi08/RVAF-GUI
73324716205fbb840e3f1ac11cb84f1c507effe7
f3529804cabf215aadcec4d48ad71d03da62ad71
refs/heads/master
2021-05-12T10:39:39.003440
2017-11-20T02:42:53
2017-11-20T02:42:53
null
0
0
null
null
null
null
GB18030
C++
false
false
4,179
h
#pragma once #include "afxwin.h" #include <vtkResliceCursor.h> #include <vtkResliceCursorWidget.h> #include <vtkPlane.h> #include <vtkPlaneSource.h> #include <vtkPlaneWidget.h> #include <vtkImagePlaneWidget.h> #include <vtkResliceCursorThickLineRepresentation.h> #include <vtkResliceCursor.h> #include <vtkCommand.h> #include <vtkViewport.h> #include <vtkViewDependentErrorMetric.h> #include <vtkSmartPointer.h> #include <vtkRenderer.h> #include <vtkRendererSource.h> #include <vtkRenderingOpenGLModule.h> #include <vtkRenderWindow.h> #include <vtkWin32OpenGLRenderWindow.h> #include <vtkWin32RenderWindowInteractor.h> #include <vtkPolyVertex.h> #include <vtkUnstructuredGrid.h> #include <vtkDataSetMapper.h> #include <vtkActor.h> #include <vtkProperty.h> #include <vtkLookupTable.h> #include <vtkFloatArray.h> #include <vtkPointData.h> #include <vtkAutoInit.h> VTK_MODULE_INIT(vtkRenderingOpenGL) VTK_MODULE_INIT(vtkInteractionStyle) VTK_MODULE_INIT(vtkRenderingFreeType) using Pointf = struct _Pointf{ float x; float y; float z; float r; float g; float b; }; class CVtkViewer : public CStatic { DECLARE_DYNAMIC(CVtkViewer) public: CVtkViewer(); virtual ~CVtkViewer(); vtkSmartPointer<vtkActor> actor; void ReadPointCloud(std::vector<Pointf>&); public: //3.2 ้‡่ฝฝCvtkView็ฑปPreSubclassWindow๏ผˆ๏ผ‰ๅ‡ฝๆ•ฐๅ’ŒOnPaint()ๅ‡ฝๆ•ฐ //PreSubclassWindowๅ‡ฝๆ•ฐ่ดŸ่ดฃๅˆ›ๅปบVTKๅฏ่ง†ๅŒ–็ฎก็บฟ๏ผŒOnPaint()ๅ‡ฝๆ•ฐ่ดŸ่ดฃๅฎขๆˆทๅŒบๅ†…ๅœบๆ™ฏๆธฒๆŸ“ใ€‚ //vtkAcor,vtkRenderer,vtkRenderWindow,vtkRenderWindowInteractorๅ››ไธช้ƒจๅˆ†ใ€‚ๅฝ“็„ถๆ นๆฎ้œ€่ฆ่ฟ˜ๅฏไปฅ่ฎพ็ฝฎvtkRenderWindowInteractorStyle,ไปฅๅŠๅ…‰็…ง๏ผŒๆ่ดจ๏ผŒ้ขœ่‰ฒ็ญ‰ใ€‚ //ๅœจCvtkView็ฑปๅคดๆ–‡ไปถไธญๅฎšไน‰็›ธๅ…ณๅฏน่ฑก๏ผŒๅนถๅœจPreSubclassWindowๅ‡ฝๆ•ฐไธญๅฎžไพ‹ๅŒ–ๅ’Œๆž„ๅปบๅฏ่ง†ๅŒ–็ฎก็บฟ void PreSubclassWindow(); void SetImageData(vtkSmartPointer<vtkImageData> ImageData); void SetupReslice(); void MoveWindow(CRect); private: vtkSmartPointer< vtkImagePlaneWidget > m_ImagePlaneWidget; vtkSmartPointer< vtkResliceCursorWidget> m_ResliceCursorWidget; vtkSmartPointer< vtkResliceCursor > m_ResliceCursor; vtkSmartPointer< vtkResliceCursorThickLineRepresentation > m_ResliceCursorRep; vtkSmartPointer<vtkRenderer> m_Renderer; vtkSmartPointer<vtkRenderWindow> m_RenderWindow; vtkSmartPointer<vtkImageData> m_ImageData; //m_Directionไธบๆ–นๅ‘ๆ ‡ๅฟ—๏ผŒๅ–ๅ€ผๅˆ†ๅˆซไธบ0,1ๅ’Œ2๏ผŒๅˆ†ๅˆซไปฃ่กจX่ฝด๏ผŒY่ฝดๅ’ŒZ่ฝดๆ–นๅ‘๏ผŒ int m_Direction; protected: DECLARE_MESSAGE_MAP() }; //ๅฝ“็”จๆˆทๆ”นๅ˜ๅ›พๅƒๅˆ‡ๅˆ†็š„ๅๆ ‡่ฝดๆ—ถ๏ผˆๆ—‹่ฝฌๅๆ ‡่ฝดๆˆ–่€…ๅนณ็งปๅๆ ‡็ณป๏ผ‰๏ผŒๅ›พๅƒๅˆ‡ๅˆ†ๅนณ้ขไผšไบง็”Ÿ็›ธๅบ”็š„ๆ”นๅ˜๏ผŒ //ๅฆ‚ๆžœๅฐ†ๆ–ฐ็š„ๅˆ‡ๅˆ†ๅนณ้ขๆ›ดๆ–ฐๅˆฐไบŒ็ปด่ง†ๅ›พ็š„vtkImagePlaneWidgetๅฏน่ฑกไธญ๏ผŒๅณๅฏๅฎž็Žฐไธ‰็ปด่ง†ๅ›พ็š„ๅŒๆญฅๆ›ดๆ–ฐๆ“ไฝœใ€‚ ///ๅŸบไบŽไปฅไธŠ่ฎพ่ฎก๏ผŒๅฎž็Žฐไธ€ไธชvtkCommandๅญ็ฑป๏ผŒๆฅ็›‘ๅฌvtkResliceCursorWidget::ResliceAxesChangedEventๆถˆๆฏ๏ผŒๅนถๅฎž็Žฐ็›ธๅบ”็š„ๆ›ดๆ–ฐๆ“ไฝœใ€‚ //class vtkResliceCursorCallback : public vtkCommand //{ //public: // static vtkResliceCursorCallback *New() // { // return new vtkResliceCursorCallback; // } // // CVtkViewer* view[4]; // //public: // void Execute(vtkObject *caller, unsigned long /*ev*/, // void *callData) // { // vtkResliceCursorWidget *rcw = dynamic_cast<vtkResliceCursorWidget *>(caller); // if (rcw) // { // for (int i = 0; i < 3; i++) // { // vtkPlaneSource *ps = // static_cast<vtkPlaneSource *>(view[i]->GetImagePlaneWidget()->GetPolyDataAlgorithm()); // // ps->SetOrigin(view[i]->GetResliceCursorWidget()-> // GetResliceCursorRepresentation()->GetPlaneSource()->GetOrigin()); // ps->SetPoint1(view[i]->GetResliceCursorWidget()-> // GetResliceCursorRepresentation()->GetPlaneSource()->GetPoint1()); // ps->SetPoint2(view[i]->GetResliceCursorWidget()-> // GetResliceCursorRepresentation()->GetPlaneSource()->GetPoint2()); // // view[i]->GetImagePlaneWidget()->UpdatePlacement(); // view[i]->Render(); // } // view[3]->Render(); // } // // } // // vtkResliceCursorCallback() {} //};
[ "1377318286@qq.com" ]
1377318286@qq.com
c809f818774bf9efdb3fd7c398b39c89f66a6c88
a4058d50eb7ec5e489a766c44ee43a5c72080a73
/codejam/2020/Qualification Round 2020/c.cc
7f684794906d949df35e33134a704a433e72f43d
[]
no_license
AkibaSummer/programs
7e25d40aeab6851c42bd739c00a55bd6e99f5b45
ef8c0513435a81a121097bc34dfc6d023b342415
refs/heads/master
2022-10-28T08:27:22.408688
2022-10-03T16:01:17
2022-10-03T16:01:17
148,867,608
0
1
null
null
null
null
UTF-8
C++
false
false
1,429
cc
#pragma GCC optimize(3) #include <bits/stdc++.h> using namespace std; #define endl "\n" #define fast \ ios::sync_with_stdio(0); \ cin.tie(0); \ cout.tie(0) int dfs(vector<pair<pair<int, int>, char>> &input, vector<vector<int>> &links, int a) { for (auto &i : links[a]) { if (input[i].second == input[a].second) { return -1; } else if (input[i].second == 0) { input[i].second = 'C' + 'J' - input[a].second; if (dfs(input, links, i) == -1) return -1; } } return 0; } void slove() { int n; cin >> n; vector<pair<pair<int, int>, char>> input(n); for (int i = 0; i < n; i++) { cin >> input[i].first.first >> input[i].first.second; } vector<vector<int>> links(n); for (int i = 0; i < n; i++) { for (int j = i + 1; j < n; j++) { if (max(input[i].first.first, input[j].first.first) < min(input[i].first.second, input[j].first.second)) { links[i].push_back(j); links[j].push_back(i); } } } for (int i = 0; i < n; i++) { if (input[i].second == 0) { input[i].second = 'C'; if (dfs(input, links, i) == -1) { cout << "IMPOSSIBLE" << endl; return; } } } for (auto &i : input) { cout << i.second; } cout << endl; } int main() { fast; int t; cin >> t; for (int i = 1; i <= t; i++) { cout << "Case #" << i << ": "; slove(); } }
[ "oopsvpwowlq@gmail.com" ]
oopsvpwowlq@gmail.com
a736d99dd7be2fe5e01ee289bfddd42608cbf579
77bc7d5ee4b615a967b635d2ff745c3bc1121a5f
/AggroEngine/src/Graphics/OpenGL/OpenGL43Graphics.cpp
b6013d2117e187ec713f3ef14f733b4aa9dd4ca4
[]
no_license
liuyirong/Aggro-Engine
ac87e926b26e5ace1539b9755911b9f7a03967e1
d5babd737b23e5742765f58b0f4af2380fee5d90
refs/heads/master
2020-06-11T03:46:46.470426
2016-12-09T04:11:10
2016-12-09T04:11:10
76,011,972
1
0
null
2016-12-09T07:23:04
2016-12-09T07:23:03
null
UTF-8
C++
false
false
7,666
cpp
#include "OpenGL43Graphics.hpp" #include "WhiteTexture.hpp" #include "DefaultTextureHandle.hpp" #include "DefaultVertexBufferHandle.hpp" #include "Grid.hpp" #include "Config.hpp" #include "Locks.hpp" #include <iostream> #define BUFFER_OFFSET(i) ((char *)NULL + (i)) OpenGL43Graphics::OpenGL43Graphics() { } OpenGL43Graphics::~OpenGL43Graphics() { } void OpenGL43Graphics::init() { this->lock(); glShadeModel(GL_SMOOTH); glClearDepth(1.0f); glClearColor(0.3f, 0.3f, 0.3f, 1.0f); glEnable(GL_DEPTH_TEST); glDepthFunc(GL_LEQUAL); glHint(GL_PERSPECTIVE_CORRECTION_HINT, GL_FASTEST); glEnable(GL_NORMALIZE); glEnable(GL_CULL_FACE); glEnable(GL_BLEND); glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); this->unlock(); const Properties& props = gConfig->getProperties(); vector<int> nDimensions = props.getIntArrayProperty("graphics.resolution"); m_gBuffer = shared_ptr<GBuffer>(new GBuffer(this, nDimensions[0], nDimensions[1])); m_pboCache = shared_ptr<PixelBufferCache>(new PixelBufferCache()); m_viewport = shared_ptr<Viewport>(new Viewport()); } shared_ptr<VertexBufferHandle> OpenGL43Graphics::createVertexBuffer(shared_ptr<Mesh> mesh) { boost::lock_guard<OpenGL43Graphics> guard(*this); GLuint nVertexHandle; glGenBuffers(1, &nVertexHandle); glBindBuffer(GL_ARRAY_BUFFER_ARB, nVertexHandle); glBufferData(GL_ARRAY_BUFFER,mesh->getSizeOfVerticies()*8/3, NULL,GL_STATIC_DRAW); // 8/3 for 3 vert, 2 tex, 3 norm glBufferSubData(GL_ARRAY_BUFFER,0,mesh->getSizeOfVerticies(),mesh->getVerticies().get()); glBufferSubData(GL_ARRAY_BUFFER,mesh->getSizeOfVerticies(),mesh->getSizeOfVerticies()*2/3,mesh->getTexCoords().get()); glBufferSubData(GL_ARRAY_BUFFER,mesh->getSizeOfVerticies()*5/3,mesh->getSizeOfVerticies(),mesh->getNormals().get()); GLuint nIndexHandle; glGenBuffers(1, &nIndexHandle); glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, nIndexHandle); glBufferData(GL_ELEMENT_ARRAY_BUFFER, mesh->getSizeOfIndicies(), mesh->getIndicies().get(), GL_STATIC_DRAW); return shared_ptr<VertexBufferHandle>(new DefaultVertexBufferHandle(nVertexHandle, mesh->getSizeOfVerticies(), nIndexHandle, mesh->getSizeOfIndicies())); } void OpenGL43Graphics::deleteVertexBuffer(shared_ptr<VertexBufferHandle> nVertexBufferHandle) { GLuint nVBOHandle = nVertexBufferHandle->getVertexHandle(); boost::lock_guard<OpenGL43Graphics> guard(*this); glDeleteBuffers(1, &nVBOHandle); } shared_ptr<TextureHandle> OpenGL43Graphics::createTexture() { boost::lock_guard<OpenGL43Graphics> guard(*this); WhiteTexture texture(1,1); return texture.getHandle(); } shared_ptr<TextureHandle> OpenGL43Graphics::createTexture(shared_ptr<Image> image) { return createTexture(shared_ptr<TextureBuildOptions>(new TextureBuildOptions(image))); } shared_ptr<TextureHandle> OpenGL43Graphics::createTexture(shared_ptr<TextureBuildOptions> pTexOptions) { boost::lock_guard<OpenGL43Graphics> guard(*this); shared_ptr<Image> pImage = pTexOptions->getImage(); GLuint m_nHandle; glGenTextures(1, &m_nHandle); GLenum target = pTexOptions->getTarget(); glBindTexture(target, m_nHandle); glTexParameteri(target, GL_TEXTURE_MAG_FILTER, pTexOptions->getMagFilter()); glTexParameteri(target, GL_TEXTURE_MIN_FILTER, pTexOptions->getMinFilter()); glTexParameteri(target, GL_TEXTURE_WRAP_S, pTexOptions->getWrapS()); glTexParameteri(target, GL_TEXTURE_WRAP_T, pTexOptions->getWrapT()); if (pTexOptions->isGenMipmaps()) { gluBuild2DMipmaps(target, pImage->getComponents(), pImage->getWidth(), pImage->getHeight(), pImage->getFormat(), pImage->getImageType(), pImage->getData().get()); } else { glTexImage2D(target, 0, pImage->getInternalFormat(), pImage->getWidth(), pImage->getHeight(), 0, pImage->getFormat(), pImage->getImageType(), 0); } return shared_ptr<TextureHandle>(new DefaultTextureHandle(m_nHandle)); } void OpenGL43Graphics::deleteTexture(shared_ptr<TextureHandle> textureHandle) { GLuint nHandle = textureHandle->get(); boost::lock_guard<OpenGL43Graphics> guard(*this); glDeleteTextures(1,&nHandle); } void OpenGL43Graphics::stageTriangleRender(shared_ptr<RenderData> pRenderData) { boost::lock_guard<OpenGL43Graphics> guard(*this); renderQueue.push(pRenderData); } void OpenGL43Graphics::executeRender(RenderOptions &renderOptions) { m_gBuffer->drawToBuffer(renderOptions, renderQueue); _drawScreen(renderOptions, 0.0, 0.0, 1.0, 1.0); } void OpenGL43Graphics::setViewport(int nX, int nY, int nWidth, int nHeight) { boost::lock_guard<OpenGL43Graphics> guard(*this); m_viewport->setDimensions(nX, nY, nWidth, nHeight); glViewport(nX, nY, nWidth, nHeight); } shared_ptr<Viewport> OpenGL43Graphics::getViewport() { return m_viewport; } void OpenGL43Graphics::clearColor() { boost::lock_guard<OpenGL43Graphics> guard(*this); glClear(GL_COLOR_BUFFER_BIT); } void OpenGL43Graphics::clearDepth() { boost::lock_guard<OpenGL43Graphics> guard(*this); glClear(GL_DEPTH_BUFFER_BIT); } void OpenGL43Graphics::clearDepthAndColor() { boost::lock_guard<OpenGL43Graphics> guard(*this); glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); } ShaderStore OpenGL43Graphics::getShaderStore() { return m_shaderStore; } void OpenGL43Graphics::_drawScreen(RenderOptions &renderOptions, float nX1, float nY1, float nX2, float nY2) { clearDepth(); boost::lock_guard<OpenGL43Graphics> guard(*this); glDisable(GL_LIGHTING); for (int i = 31; i >= 0; i--) { glActiveTexture(GL_TEXTURE0 + i); glDisable(GL_TEXTURE_2D); } glEnable(GL_TEXTURE_2D); glMatrixMode(GL_PROJECTION); glLoadIdentity(); gluOrtho2D(0, 1.0, 0, 1.0); glMatrixMode(GL_MODELVIEW); glLoadIdentity(); glActiveTexture(0); glBindTexture(GL_TEXTURE_2D, _getRenderTargetTexture(renderOptions.getRenderTarget())->get()); glColor3f(1.0f, 1.0f, 1.0f); glBegin(GL_QUADS); glTexCoord2f(0, 0); glVertex2f(nX1, nY1); glTexCoord2f(1.0f, 0); glVertex2f(nX2, nY1); glTexCoord2f(1.0f, 1.0f); glVertex2f(nX2, nY2); glTexCoord2f(0, 1.0f); glVertex2f(nX1, nY2); glEnd(); } shared_ptr<TextureHandle> OpenGL43Graphics::_getRenderTargetTexture(RenderOptions::RenderTarget target) { switch (target) { case RenderOptions::SHADED: return m_gBuffer->getAlbedoTex(); case RenderOptions::ALBEDO: return m_gBuffer->getAlbedoTex(); case RenderOptions::NORMAL: return m_gBuffer->getNormalTex(); case RenderOptions::SELECTION: return m_gBuffer->getSelectionTex(); default: break; } return m_gBuffer->getAlbedoTex(); } shared_ptr<Image> OpenGL43Graphics::getRenderImage(RenderOptions::RenderTarget target) { int width = m_gBuffer->getWidth(); int height = m_gBuffer->getHeight(); return getRenderImage(0, 0, width, height, target); } shared_ptr<Image> OpenGL43Graphics::getRenderImage(int x, int y, int width, int height, RenderOptions::RenderTarget target) { boost::lock_guard<OpenGL43Graphics> guard(*this); int pixelSize = sizeof(unsigned short) * 4; int size = width * height * pixelSize; unsigned char *pixels = new unsigned char[size]; m_gBuffer->bind(); glReadBuffer(m_gBuffer->getSelectionColorAttachment()); glReadPixels(x, y, width, height, GL_RGBA, GL_UNSIGNED_SHORT, pixels); m_gBuffer->unbind(); return shared_ptr<Image>(new Image(width, height, ImageFormat::RGBA, InternalFormat::RGBA16, 0, boost::shared_array<unsigned char>(pixels))); } boost::shared_array<unsigned short> OpenGL43Graphics::getRenderImagePixel(int x, int y, RenderOptions::RenderTarget target) { shared_ptr<Image> image = getRenderImage(x, y, 1, 1, target); return image->getPixelUS(0, 0); } int OpenGL43Graphics::getFrameBufferWidth() { return m_gBuffer->getWidth(); } int OpenGL43Graphics::getFrameBufferHeight() { return m_gBuffer->getHeight(); }
[ "wcrane15@gmail.com" ]
wcrane15@gmail.com
ec5db2dfd35f8bfa660fdabf031bdf726f542a14
879681c994f1ca9c8d2c905a4e5064997ad25a27
/root-2.3.0/run/tutorials/multiphase/twoPhaseEulerFoam/RAS/bubbleColumn/21/nut.water
4c4399a2c767f6842fed99fc19e0239883b30e94
[]
no_license
MizuhaWatanabe/OpenFOAM-2.3.0-with-Ubuntu
3828272d989d45fb020e83f8426b849e75560c62
daeb870be81275e8a81f5cbac4ca1906a9bc69c0
refs/heads/master
2020-05-17T16:36:41.848261
2015-04-18T09:29:48
2015-04-18T09:29:48
34,159,882
1
0
null
null
null
null
UTF-8
C++
false
false
25,292
water
/*--------------------------------*- C++ -*----------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: 2.3.0 | | \\ / A nd | Web: www.OpenFOAM.org | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format ascii; class volScalarField; location "21"; object nut.water; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // dimensions [0 2 -1 0 0 0 0]; internalField nonuniform List<scalar> 1875 ( 1.88718e-05 3.40258e-07 8.8069e-07 1.83546e-06 5.61782e-06 1.09467e-05 1.24229e-05 1.25609e-05 1.41307e-05 1.51828e-05 1.5639e-05 1.68558e-05 1.68917e-05 1.7779e-05 1.80626e-05 1.83843e-05 1.89204e-05 1.94076e-05 2.00075e-05 2.0472e-05 2.11566e-05 2.13369e-05 2.14006e-05 2.15552e-05 2.45991e-05 1.32514e-05 2.18117e-06 5.74538e-06 6.81532e-06 8.64149e-06 1.10534e-05 1.57352e-05 1.80154e-05 1.83457e-05 1.8514e-05 1.87849e-05 1.97019e-05 1.98525e-05 2.1413e-05 2.20807e-05 2.34209e-05 2.35211e-05 2.45358e-05 2.44633e-05 2.57464e-05 2.57861e-05 2.57566e-05 2.33403e-05 1.8237e-05 5.23705e-06 2.33833e-05 5.85314e-06 4.23314e-06 4.10094e-06 5.04558e-06 7.06846e-06 9.68413e-06 1.55393e-05 1.97229e-05 1.9262e-05 1.9941e-05 2.09661e-05 2.30358e-05 2.66774e-05 3.05901e-05 3.25632e-05 3.46624e-05 3.40567e-05 3.22891e-05 3.02436e-05 3.14299e-05 3.31265e-05 3.22581e-05 4.22878e-05 4.24324e-09 3.68385e-05 3.29228e-05 2.81848e-05 2.54504e-05 2.13894e-05 1.32682e-05 9.60624e-06 9.68338e-06 1.07147e-05 1.33283e-05 1.69815e-05 1.84589e-05 2.02344e-05 2.32332e-05 2.69155e-05 3.22653e-05 3.84511e-05 3.57147e-05 3.05841e-05 2.82636e-05 2.87627e-05 2.70393e-05 2.22975e-05 3.22314e-05 5.7929e-31 5.35937e-05 3.96456e-05 2.90644e-05 2.66283e-05 2.61307e-05 2.52772e-05 2.24057e-05 1.63863e-05 1.17125e-05 1.18938e-05 1.23624e-05 1.3282e-05 1.45311e-05 1.62424e-05 1.7861e-05 2.01223e-05 2.25452e-05 2.52135e-05 2.54914e-05 2.52584e-05 2.40841e-05 2.25814e-05 2.12777e-05 3.07747e-05 5.36154e-31 4.15379e-05 2.94831e-05 3.12657e-05 3.14927e-05 3.18535e-05 2.92334e-05 2.78231e-05 2.56709e-05 2.09627e-05 1.57247e-05 1.33628e-05 1.28485e-05 1.25683e-05 1.26797e-05 1.29917e-05 1.35289e-05 1.44339e-05 1.57216e-05 1.65957e-05 1.69043e-05 1.79963e-05 1.9194e-05 1.97719e-05 2.98646e-05 4.67311e-31 1.48139e-05 3.13256e-05 4.27317e-05 4.6359e-05 4.43541e-05 4.11362e-05 3.60905e-05 3.01035e-05 2.47718e-05 2.02623e-05 1.70072e-05 1.44484e-05 1.33545e-05 1.27031e-05 1.26383e-05 1.26762e-05 1.29101e-05 1.336e-05 1.40066e-05 1.53493e-05 1.65302e-05 1.83294e-05 1.96429e-05 2.98991e-05 3.92257e-31 7.03864e-06 4.58759e-05 6.13729e-05 5.26147e-05 4.74427e-05 3.73081e-05 2.7388e-05 2.40091e-05 2.19778e-05 2.00828e-05 1.78286e-05 1.65801e-05 1.50495e-05 1.39434e-05 1.29746e-05 1.26199e-05 1.25421e-05 1.24939e-05 1.22987e-05 1.2774e-05 1.3979e-05 1.5948e-05 1.97826e-05 3.54332e-05 3.75484e-18 4.83716e-06 5.63363e-05 6.54458e-05 5.56533e-05 4.8483e-05 3.06356e-05 2.02503e-05 1.82757e-05 1.77336e-05 1.71259e-05 1.69233e-05 1.67191e-05 1.58049e-05 1.46311e-05 1.36748e-05 1.32259e-05 1.25997e-05 1.26509e-05 1.28558e-05 1.26936e-05 1.35661e-05 1.73195e-05 2.55734e-05 4.00309e-05 5.25128e-15 3.47902e-06 5.91105e-05 6.66377e-05 5.88309e-05 5.02035e-05 3.13501e-05 2.09629e-05 2.01989e-05 2.02032e-05 1.83433e-05 1.51819e-05 1.45215e-05 1.49144e-05 1.3876e-05 1.25831e-05 1.24037e-05 1.21773e-05 1.17161e-05 1.16725e-05 1.36655e-05 1.79924e-05 2.88035e-05 3.96836e-05 2.21429e-05 2.04612e-07 2.10408e-06 6.18066e-05 6.69929e-05 6.01693e-05 5.14183e-05 3.51706e-05 2.37824e-05 2.33571e-05 2.42445e-05 2.27223e-05 1.77571e-05 1.32378e-05 1.28561e-05 1.2363e-05 1.14096e-05 1.10231e-05 1.13305e-05 1.20511e-05 1.44245e-05 2.09673e-05 3.59611e-05 4.29725e-05 2.17851e-05 4.83851e-06 2.71202e-06 8.30209e-07 6.0955e-05 6.56756e-05 6.06238e-05 5.00444e-05 3.339e-05 2.31035e-05 2.27025e-05 2.45634e-05 2.20701e-05 1.54782e-05 1.0969e-05 1.03362e-05 1.00345e-05 1.03647e-05 1.13162e-05 1.34132e-05 1.76885e-05 3.04842e-05 4.62431e-05 5.3119e-05 2.86626e-05 6.31821e-06 2.94175e-06 4.78025e-06 6.43404e-08 5.26369e-05 5.94803e-05 5.96126e-05 4.84925e-05 3.04857e-05 2.33424e-05 2.21325e-05 2.26797e-05 1.8006e-05 1.0681e-05 9.40286e-06 9.14681e-06 9.79926e-06 1.20884e-05 1.7063e-05 2.7341e-05 4.59763e-05 5.73381e-05 5.67273e-05 3.84141e-05 1.57267e-05 6.24121e-06 2.77598e-06 3.82704e-06 1.62567e-09 4.74152e-05 5.09472e-05 5.53459e-05 4.76683e-05 3.00616e-05 2.3613e-05 2.17844e-05 1.67966e-05 1.11225e-05 9.21302e-06 8.60562e-06 9.61015e-06 1.41135e-05 2.27462e-05 4.44157e-05 5.84973e-05 6.70333e-05 6.61358e-05 5.23775e-05 4.09986e-05 4.15413e-05 3.83133e-05 1.02772e-05 1.17712e-10 4.45368e-12 4.49337e-05 4.27816e-05 5.10698e-05 4.19145e-05 2.29498e-05 1.74088e-05 1.43063e-05 1.0786e-05 9.32655e-06 8.47829e-06 1.01725e-05 1.63054e-05 3.26318e-05 5.48649e-05 6.78882e-05 7.71367e-05 7.94635e-05 7.40148e-05 7.12678e-05 7.90864e-05 7.97298e-05 7.01993e-05 4.60318e-05 1.34469e-12 1.85377e-13 4.31595e-05 4.01289e-05 4.96263e-05 3.41633e-05 1.75134e-05 1.31093e-05 1.07551e-05 9.52192e-06 8.54348e-06 1.07012e-05 1.77526e-05 3.88949e-05 6.22e-05 7.76681e-05 8.81903e-05 9.09753e-05 9.10018e-05 8.96948e-05 9.21898e-05 9.30935e-05 9.3902e-05 9.34295e-05 7.07944e-05 7.35266e-17 8.48615e-16 4.3225e-05 3.5347e-05 4.57729e-05 3.58672e-05 1.72774e-05 1.27387e-05 9.68162e-06 8.7095e-06 1.13373e-05 1.94338e-05 3.90814e-05 6.32413e-05 7.84042e-05 9.14528e-05 9.49709e-05 9.79187e-05 9.78822e-05 0.000100169 0.000102863 0.000104775 9.45521e-05 8.27145e-05 8.32374e-05 2.92546e-09 9.38503e-19 4.54935e-05 3.12408e-05 4.04153e-05 4.23536e-05 1.89456e-05 1.24562e-05 9.32479e-06 9.05122e-06 1.29524e-05 2.32262e-05 4.36301e-05 6.77087e-05 8.70466e-05 9.57988e-05 9.70214e-05 9.74758e-05 0.00010108 0.000106977 0.000106813 9.48167e-05 6.10117e-05 6.12808e-05 8.12485e-05 2.80019e-08 4.60377e-29 4.73308e-05 2.96094e-05 3.08772e-05 4.28196e-05 3.30034e-05 1.50228e-05 1.02559e-05 9.15073e-06 1.18898e-05 2.07343e-05 3.85476e-05 6.47521e-05 8.47777e-05 9.17124e-05 8.80885e-05 8.58278e-05 9.79802e-05 0.000106983 0.000101494 6.7154e-05 5.05214e-05 5.67034e-05 7.56272e-05 2.56303e-11 1.25991e-30 5.12738e-05 3.05991e-05 2.51599e-05 3.66915e-05 4.13001e-05 2.75261e-05 1.35984e-05 9.9739e-06 9.68406e-06 1.37448e-05 2.53454e-05 4.60889e-05 6.41472e-05 7.05441e-05 6.54392e-05 6.24337e-05 8.40436e-05 9.85333e-05 8.60355e-05 5.55985e-05 4.70015e-05 5.51472e-05 7.5667e-05 3.91335e-14 6.68606e-31 5.45574e-05 3.33613e-05 2.50419e-05 3.03691e-05 4.15065e-05 3.66618e-05 2.32726e-05 1.30552e-05 1.08902e-05 1.11512e-05 1.41501e-05 2.2044e-05 3.37395e-05 4.06553e-05 4.20695e-05 4.51821e-05 7.55349e-05 9.01651e-05 7.83157e-05 5.24317e-05 4.63784e-05 5.50391e-05 7.5488e-05 2.89882e-16 5.40806e-28 5.75324e-05 3.79509e-05 2.63575e-05 2.72625e-05 3.90594e-05 4.13068e-05 3.43151e-05 2.38232e-05 1.44428e-05 1.24256e-05 1.29547e-05 1.46532e-05 1.89501e-05 2.33842e-05 2.72829e-05 3.78817e-05 7.29341e-05 8.3224e-05 7.17273e-05 5.23627e-05 4.69393e-05 5.58972e-05 7.43005e-05 2.89074e-19 1.1941e-12 6.5395e-05 4.58111e-05 2.81958e-05 2.62751e-05 3.51835e-05 4.08646e-05 3.94092e-05 3.30608e-05 2.56617e-05 1.70295e-05 1.39169e-05 1.41501e-05 1.52885e-05 1.80015e-05 2.1125e-05 3.53382e-05 6.86551e-05 7.70089e-05 6.96306e-05 5.51111e-05 4.75183e-05 5.52327e-05 7.42248e-05 3.60361e-31 3.65431e-05 7.25013e-05 5.84557e-05 3.24368e-05 2.67282e-05 3.12009e-05 3.6732e-05 3.8954e-05 3.57764e-05 3.19341e-05 2.58464e-05 1.79563e-05 1.48764e-05 1.45107e-05 1.61861e-05 1.91671e-05 3.63941e-05 6.49422e-05 7.19981e-05 6.87064e-05 5.68395e-05 4.67582e-05 5.25808e-05 7.45329e-05 3.38315e-31 3.42745e-05 7.37505e-05 6.82547e-05 4.40413e-05 2.84406e-05 2.87649e-05 3.18397e-05 3.41598e-05 3.49069e-05 3.30554e-05 2.86167e-05 2.15551e-05 1.61531e-05 1.47972e-05 1.52947e-05 1.84856e-05 3.68668e-05 6.0143e-05 6.51364e-05 6.73976e-05 5.33252e-05 4.47199e-05 5.17518e-05 7.86671e-05 3.2825e-31 2.3709e-05 7.22044e-05 7.43983e-05 6.3969e-05 3.97203e-05 2.97634e-05 3.00488e-05 3.16024e-05 3.33642e-05 3.18482e-05 2.95062e-05 2.2922e-05 1.7129e-05 1.5568e-05 1.56777e-05 1.85132e-05 3.45423e-05 4.89241e-05 5.48125e-05 5.412e-05 4.50442e-05 4.37114e-05 5.13498e-05 8.21897e-05 3.00752e-31 1.99817e-05 7.14304e-05 7.60181e-05 7.26111e-05 6.26805e-05 4.40976e-05 3.47032e-05 3.18047e-05 3.29934e-05 3.25056e-05 3.016e-05 2.4048e-05 1.89393e-05 1.6995e-05 1.71574e-05 1.92952e-05 2.77693e-05 3.53094e-05 3.95359e-05 4.21413e-05 4.17973e-05 4.29837e-05 5.39849e-05 9.35641e-05 2.89266e-31 1.21436e-05 6.92537e-05 7.51515e-05 7.32635e-05 6.60238e-05 5.27692e-05 4.07604e-05 3.53795e-05 3.34113e-05 3.33405e-05 3.23598e-05 2.92102e-05 2.57766e-05 2.39574e-05 2.24634e-05 2.29324e-05 2.74792e-05 3.3532e-05 3.79901e-05 4.03223e-05 4.10414e-05 4.42149e-05 6.93306e-05 0.000102722 2.74599e-31 4.73463e-06 6.7984e-05 7.40164e-05 7.09523e-05 6.29275e-05 5.09389e-05 4.07305e-05 3.60888e-05 3.27791e-05 3.19727e-05 3.18985e-05 3.11191e-05 2.96688e-05 2.9043e-05 2.85482e-05 2.85926e-05 2.92542e-05 3.18326e-05 3.48388e-05 3.60431e-05 3.87163e-05 5.74312e-05 9.94822e-05 0.000101905 2.71865e-31 1.2346e-06 6.50936e-05 7.12337e-05 7.05724e-05 6.66159e-05 5.76757e-05 4.86799e-05 4.24064e-05 3.90004e-05 3.72346e-05 3.66025e-05 3.6394e-05 3.6115e-05 3.4998e-05 3.31577e-05 3.24357e-05 3.34369e-05 3.40135e-05 3.31386e-05 3.56448e-05 4.58009e-05 9.81899e-05 0.000108076 0.000102674 2.5654e-31 1.80047e-07 5.79281e-05 6.50455e-05 6.35772e-05 6.2386e-05 6.0214e-05 5.78839e-05 5.59614e-05 5.46476e-05 5.33895e-05 5.07544e-05 4.76318e-05 4.59441e-05 4.37181e-05 4.20166e-05 3.85213e-05 3.55358e-05 3.52536e-05 3.81185e-05 5.69804e-05 9.09333e-05 0.000107847 0.000103701 0.00010282 2.55984e-31 2.15382e-08 4.15525e-05 5.95481e-05 6.0781e-05 5.77597e-05 5.4395e-05 5.1729e-05 5.09648e-05 4.99559e-05 4.95783e-05 4.97137e-05 5.01349e-05 4.92093e-05 4.73882e-05 4.39507e-05 4.01024e-05 3.83116e-05 4.25893e-05 6.95948e-05 9.05705e-05 0.000102575 0.000111695 0.000125342 0.000103383 2.50334e-31 6.10767e-10 3.06237e-05 5.48101e-05 5.87466e-05 5.61848e-05 5.31912e-05 5.37669e-05 5.64554e-05 5.35102e-05 5.05532e-05 4.90029e-05 4.93579e-05 4.867e-05 4.69565e-05 4.45939e-05 4.46141e-05 5.65911e-05 7.86132e-05 9.49791e-05 0.000101039 0.000115997 0.000150844 0.000172246 0.000117269 2.39891e-31 1.62973e-22 2.67088e-05 5.30952e-05 5.57773e-05 5.44677e-05 5.7536e-05 6.11432e-05 5.79334e-05 5.15761e-05 4.93304e-05 4.91111e-05 4.9304e-05 4.89114e-05 4.92199e-05 5.59522e-05 7.07488e-05 8.20795e-05 9.35697e-05 0.000100691 0.000114874 0.000153876 0.000208904 0.000234369 0.000170102 2.42281e-31 1.94721e-19 2.56031e-05 5.0707e-05 5.1782e-05 5.50345e-05 6.13055e-05 6.18241e-05 5.48332e-05 4.98482e-05 4.99994e-05 5.06969e-05 5.26851e-05 5.73073e-05 6.71474e-05 7.68271e-05 8.13222e-05 9.09798e-05 9.90707e-05 0.000112495 0.000144819 0.000225903 0.000290163 0.00030478 0.000211664 2.32978e-31 4.432e-16 2.58428e-05 4.52986e-05 4.88931e-05 5.27825e-05 6.30273e-05 6.30839e-05 5.42964e-05 5.08249e-05 5.27845e-05 5.6808e-05 6.16207e-05 6.84016e-05 7.45771e-05 7.79159e-05 8.54478e-05 9.06424e-05 0.000108041 0.000136493 0.000208953 0.00031588 0.000371539 0.000355631 0.000237593 2.32767e-31 3.29236e-27 3.16473e-05 4.11784e-05 4.65451e-05 5.18463e-05 6.10873e-05 6.70947e-05 5.77657e-05 5.38422e-05 5.67323e-05 5.98797e-05 6.37846e-05 6.85336e-05 7.20131e-05 7.69699e-05 8.27321e-05 9.54602e-05 0.000121848 0.000183726 0.000299732 0.000401328 0.000440178 0.000403393 0.000295044 2.66569e-31 3.39707e-31 3.0585e-05 3.76379e-05 4.33157e-05 5.06491e-05 5.76521e-05 6.81554e-05 6.10722e-05 5.55654e-05 5.67935e-05 5.9634e-05 6.32005e-05 6.62553e-05 6.87356e-05 7.54969e-05 8.47855e-05 0.000103392 0.000148185 0.000247851 0.000371273 0.000454051 0.000480424 0.000447822 0.00034134 1.14837e-30 3.56157e-31 1.37941e-05 3.12202e-05 3.55189e-05 4.4761e-05 5.47511e-05 6.4439e-05 6.20331e-05 5.65476e-05 5.53967e-05 5.83268e-05 6.1085e-05 6.29735e-05 6.63741e-05 7.56384e-05 8.84794e-05 0.000112617 0.000176373 0.000292165 0.000406504 0.000482707 0.000506745 0.000471155 0.000365996 1.49463e-29 1.42019e-29 3.70071e-06 2.25583e-05 3.01289e-05 3.40348e-05 4.71613e-05 5.96952e-05 6.28304e-05 5.69905e-05 5.50202e-05 5.61407e-05 5.92721e-05 6.13921e-05 6.38817e-05 7.3445e-05 9.05488e-05 0.000117501 0.000191805 0.000308581 0.000417543 0.000493392 0.000520803 0.000485915 0.000385063 5.91442e-28 1.93767e-22 2.33529e-06 1.4701e-05 3.72337e-05 3.44263e-05 3.66541e-05 4.77061e-05 5.87882e-05 5.69332e-05 5.5003e-05 5.48975e-05 5.6503e-05 5.92078e-05 6.2987e-05 7.14384e-05 9.07513e-05 0.000122603 0.000200295 0.000312136 0.000414591 0.000489031 0.000519762 0.000487351 0.000400905 3.03166e-21 5.2511e-06 4.61991e-06 1.28314e-05 4.35332e-05 4.90727e-05 4.10011e-05 4.32177e-05 5.20301e-05 5.56031e-05 5.3737e-05 5.33692e-05 5.44346e-05 5.71398e-05 6.12211e-05 6.97152e-05 8.8595e-05 0.000122362 0.000198366 0.000308302 0.000406566 0.000477071 0.00050688 0.000484499 0.000454081 0.000423287 6.39798e-07 1.71089e-05 2.00388e-05 4.95348e-05 6.09727e-05 4.83251e-05 4.35416e-05 4.90849e-05 5.40974e-05 5.33289e-05 5.30526e-05 5.34421e-05 5.62847e-05 6.03725e-05 6.69611e-05 8.57845e-05 0.000123437 0.000205656 0.000312204 0.000404001 0.0004649 0.000493104 0.000477385 0.000471715 0.000479257 1.19061e-09 4.97513e-05 4.25651e-05 6.45673e-05 7.06953e-05 5.0527e-05 4.39411e-05 4.81603e-05 5.30684e-05 5.25377e-05 5.24754e-05 5.26675e-05 5.50623e-05 5.93773e-05 6.74914e-05 8.80152e-05 0.00013301 0.000222704 0.000322808 0.000404022 0.000454431 0.000475047 0.000453502 0.000457742 0.000480222 7.53747e-07 6.17652e-05 6.43266e-05 7.62792e-05 7.84371e-05 5.51705e-05 4.6555e-05 4.87435e-05 5.19105e-05 5.36752e-05 5.35265e-05 5.4284e-05 5.64434e-05 6.04601e-05 6.96995e-05 9.56999e-05 0.000158289 0.000249085 0.000339994 0.00040705 0.000446059 0.000455735 0.000424407 0.000424234 0.00044918 2.73388e-06 6.07989e-05 7.32213e-05 8.16737e-05 8.43425e-05 7.12242e-05 5.11188e-05 5.14878e-05 5.30112e-05 5.47633e-05 5.58915e-05 5.6559e-05 5.83082e-05 6.32516e-05 7.81277e-05 0.000122811 0.000198106 0.000284549 0.000359424 0.000408626 0.000434196 0.000428021 0.000395247 0.000401336 0.000427604 1.50271e-06 5.41551e-05 6.99615e-05 8.70013e-05 9.40909e-05 8.68872e-05 6.19811e-05 5.41484e-05 5.56579e-05 5.73473e-05 5.90196e-05 6.13441e-05 6.55348e-05 7.68266e-05 0.00010685 0.000164842 0.000240993 0.000314343 0.000367996 0.000400183 0.000408184 0.00038466 0.000361999 0.000380966 0.000413506 8.64913e-07 5.05416e-05 5.8618e-05 8.69594e-05 9.74675e-05 9.43968e-05 8.51935e-05 6.47715e-05 5.87568e-05 5.98989e-05 6.2765e-05 6.53741e-05 7.11558e-05 8.5818e-05 0.000120327 0.000180078 0.000251712 0.000315383 0.000355624 0.000374961 0.000370758 0.000337039 0.000326995 0.000362206 0.00039993 6.06572e-07 4.7452e-05 4.93225e-05 7.5251e-05 9.9295e-05 0.000102504 9.35706e-05 8.62105e-05 7.10301e-05 6.48989e-05 6.53608e-05 6.83472e-05 7.3954e-05 8.72098e-05 0.000117798 0.000171525 0.000237016 0.000289451 0.000313913 0.00032495 0.000315911 0.000288006 0.000302285 0.000352465 0.000392905 1.32524e-07 4.78773e-05 4.56965e-05 5.56884e-05 9.00566e-05 0.000103836 0.000104314 9.59908e-05 9.17241e-05 8.31942e-05 7.50035e-05 7.23849e-05 7.52184e-05 8.19027e-05 9.54045e-05 0.000124407 0.00017179 0.000217478 0.000248451 0.000270729 0.000274156 0.000259445 0.000292746 0.000346294 0.000385217 1.14748e-16 5.01541e-05 4.59995e-05 4.72101e-05 5.94923e-05 9.29149e-05 0.000103869 0.000104732 0.000100193 9.66328e-05 9.41575e-05 8.93354e-05 8.45714e-05 8.40564e-05 9.17696e-05 0.000105919 0.000130926 0.000160953 0.000181962 0.000206566 0.000224121 0.000240586 0.000293423 0.000339442 0.000374021 1.71982e-29 5.01139e-05 4.83514e-05 4.88574e-05 4.95492e-05 6.45439e-05 8.68585e-05 9.52939e-05 9.80062e-05 9.81521e-05 9.82971e-05 9.83682e-05 9.65969e-05 9.29819e-05 8.94121e-05 9.74483e-05 0.000109814 0.000132878 0.000164138 0.000199463 0.000221361 0.000248028 0.000296284 0.000332051 0.000357677 4.07245e-31 5.13194e-05 5.11219e-05 5.47659e-05 5.48376e-05 5.71313e-05 6.75458e-05 7.58427e-05 8.17992e-05 8.43989e-05 8.80387e-05 9.43649e-05 9.73108e-05 9.36084e-05 9.07354e-05 9.56605e-05 0.000107437 0.000132172 0.000166324 0.000203652 0.000230839 0.000247497 0.000275623 0.000310751 0.000334545 4.02549e-30 5.28565e-05 5.43463e-05 5.79909e-05 6.14232e-05 6.31885e-05 6.9061e-05 7.7704e-05 8.39895e-05 8.63534e-05 8.77621e-05 8.96857e-05 8.97487e-05 8.99529e-05 9.26915e-05 0.000100741 0.000115006 0.000143848 0.000171909 0.000186346 0.000197844 0.00019251 0.00021397 0.000275228 0.000308279 2.22407e-05 5.60221e-05 5.7874e-05 6.20878e-05 6.49376e-05 7.36962e-05 7.85693e-05 8.16245e-05 8.42959e-05 8.56357e-05 9.00606e-05 9.08095e-05 9.47053e-05 9.71145e-05 0.000102531 0.000112535 0.000132838 0.000147465 0.000160004 0.00016625 0.000134648 0.000103647 0.000135322 0.000233717 0.000304193 0.00017262 6.87371e-05 5.38268e-05 6.19919e-05 6.72295e-05 7.643e-05 7.95461e-05 8.30209e-05 8.7405e-05 8.91701e-05 9.30273e-05 9.62456e-05 0.000101877 0.000107916 0.000116354 0.000125289 0.000131665 0.000138307 0.00014145 0.000130935 9.89079e-05 8.17874e-05 0.000105527 0.000211825 0.000313307 0.000206318 8.77709e-05 5.42626e-05 5.4129e-05 5.87714e-05 6.60768e-05 6.73584e-05 7.26419e-05 7.79705e-05 8.08443e-05 8.5874e-05 9.09154e-05 9.3544e-05 9.63244e-05 0.000100091 0.000101807 0.000101731 0.000100402 9.67745e-05 9.10449e-05 7.33678e-05 7.03254e-05 9.86795e-05 0.00021562 0.000322115 0.000339451 0.000237181 0.000122127 7.50146e-05 5.98064e-05 5.68588e-05 6.31447e-05 7.03707e-05 7.49027e-05 7.82103e-05 8.13514e-05 8.41239e-05 8.61547e-05 8.89435e-05 9.20518e-05 9.44062e-05 9.5736e-05 9.57637e-05 9.5337e-05 8.56081e-05 7.6382e-05 8.95508e-05 0.000179828 0.000290849 0.000338946 0.000540906 0.000495458 0.000413052 0.000296094 0.000172282 9.95765e-05 7.79719e-05 7.34201e-05 7.07642e-05 7.13447e-05 7.4521e-05 8.49616e-05 9.32941e-05 9.74624e-05 0.000100194 0.000104108 0.000107028 0.000108539 0.000107328 9.8596e-05 9.82289e-05 0.000157912 0.000256802 0.000322657 0.000350256 0.000733677 0.000752312 0.000734093 0.00067858 0.000588768 0.000447735 0.000312349 0.000197632 0.000128111 9.41065e-05 8.10605e-05 7.6807e-05 7.86822e-05 8.19793e-05 8.43187e-05 8.99769e-05 9.89506e-05 0.000106963 0.000116676 0.000125689 0.000142603 0.000205991 0.000280408 0.000329483 0.000356007 0.000847635 0.000903464 0.000924022 0.000909356 0.00086181 0.000779532 0.000676995 0.000565227 0.000426882 0.00028411 0.000164141 0.000104389 8.45624e-05 8.02923e-05 8.18857e-05 8.58222e-05 9.57664e-05 0.000105334 0.000117616 0.000136634 0.000166451 0.000223102 0.000286121 0.000328643 0.000359134 0.000938698 0.00101937 0.00103901 0.00101627 0.000969552 0.000903038 0.000816777 0.000712096 0.000592635 0.000470001 0.000338139 0.000216838 0.000131939 8.96885e-05 8.43139e-05 8.94306e-05 0.000104174 0.000110246 0.000118571 0.000139324 0.00017719 0.000234649 0.000291414 0.000328589 0.000360005 0.00110827 0.00112557 0.00108691 0.00102395 0.000948695 0.000869634 0.000789116 0.000698664 0.000590799 0.000464437 0.000333513 0.000215684 0.000131876 9.58093e-05 9.63702e-05 0.000109645 0.000118741 0.000118675 0.000123608 0.000147599 0.000195825 0.000251977 0.000298823 0.000333167 0.00037175 0.00122568 0.00116098 0.00105215 0.000936906 0.00082659 0.000727589 0.000640496 0.000556278 0.00046362 0.000360169 0.00026042 0.000181584 0.000133828 0.000121303 0.000124485 0.000127181 0.00012449 0.000121976 0.000128234 0.000159946 0.000212489 0.000265799 0.000313595 0.000357759 0.000404352 0.00132434 0.0011705 0.000995037 0.000820051 0.000665914 0.000545648 0.000456135 0.000384987 0.000323491 0.000267569 0.000219526 0.000178737 0.000157359 0.000147139 0.000140711 0.000139606 0.00013434 0.000131356 0.00013845 0.000174908 0.000230594 0.000283801 0.000344805 0.000410247 0.000469953 0.00140775 0.00113316 0.000911142 0.000715643 0.000538206 0.000417005 0.000347493 0.000304438 0.000272691 0.000245635 0.000219643 0.000199939 0.000185601 0.000174903 0.000166236 0.000154071 0.000139648 0.00013404 0.000149259 0.000193576 0.000242695 0.000298214 0.000370227 0.000459287 0.000564978 0.00123414 0.000997541 0.00082235 0.00066971 0.000535945 0.000442908 0.000389086 0.000353838 0.000323783 0.000293167 0.000259139 0.000222221 0.000186665 0.000161191 0.000148503 0.00014242 0.000140377 0.000143506 0.000167208 0.000205042 0.000245726 0.000297543 0.000364068 0.000442907 0.000568152 0.000873696 0.000892852 0.000815891 0.00071636 0.000637452 0.000585503 0.000538729 0.000485142 0.000418485 0.000347105 0.000288653 0.000248744 0.000222856 0.000207114 0.000199614 0.000195717 0.000198326 0.000204934 0.000214955 0.00023577 0.000260787 0.00030307 0.000363757 0.000431975 0.000460104 0.00222035 0.00144079 0.00101667 0.000818165 0.000746594 0.000705617 0.000647116 0.000555494 0.000442936 0.000342398 0.000300364 0.000289657 0.000298527 0.00031597 0.000347771 0.000366576 0.000373751 0.000362514 0.000373344 0.000424463 0.000483339 0.000578873 0.000715742 0.00091598 0.00130833 0.00571605 0.0030724 0.00171417 0.00108708 0.000675079 0.000589585 0.000564239 0.00050064 0.000386074 0.000344283 0.000359714 0.000444335 0.000551276 0.000664613 0.000796811 0.000858607 0.000905348 0.000954255 0.000971888 0.000982795 0.000948268 0.00105793 0.00134277 0.0016083 0.00198735 0.0268123 0.00696789 0.00210871 0.000717012 0.000524894 0.000508233 0.000507031 0.00049396 0.000494514 0.00052576 0.00053863 0.000521155 0.000474915 0.000315296 0.0002107 0.000175953 0.000144336 8.76597e-05 2.26364e-05 1.72844e-05 2.02151e-05 0.000114961 0.000566572 0.00136638 0.00186578 0.0170616 0.00612079 0.00119203 0.000573603 0.000494656 0.000477234 0.000466207 0.000473872 0.000481668 0.000469996 0.000436952 0.000359287 0.000212673 4.84383e-05 8.03263e-06 1.41241e-06 7.3303e-07 7.04413e-07 8.61333e-07 1.49058e-06 6.39901e-06 5.16846e-05 0.000325295 0.00106012 0.00157642 0.00558569 0.00243963 0.000653403 0.000444311 0.000413163 0.00040329 0.000327743 0.000235147 0.000193515 0.000162672 0.000123223 7.45089e-05 2.40839e-05 4.24226e-06 7.8536e-07 5.67697e-07 5.74124e-07 6.14715e-07 6.79254e-07 1.18827e-06 5.64578e-06 5.29376e-05 0.000360674 0.00118465 0.00149669 0.00375694 0.001325 0.000516407 0.000388255 0.000336608 0.000240941 0.000114917 5.18879e-05 2.24147e-05 7.47716e-06 1.17328e-06 6.59104e-07 5.99866e-07 5.95513e-07 5.84847e-07 6.96461e-07 7.39591e-07 7.91682e-07 8.04461e-07 6.98922e-07 7.96992e-07 2.78311e-06 5.09509e-05 0.000985708 0.00118726 0.00185879 0.000735253 0.000334659 0.00026055 0.000226655 0.000163586 8.49467e-05 3.67577e-05 1.49383e-05 4.01608e-06 1.23036e-06 9.01589e-07 8.53939e-07 8.45894e-07 8.30925e-07 7.96395e-07 7.86568e-07 7.82934e-07 7.81756e-07 8.08725e-07 8.18939e-07 7.68606e-07 2.60396e-06 0.000300964 0.000604985 ) ; boundaryField { inlet { type calculated; value uniform 8.4375e-07; } outlet { type calculated; value nonuniform List<scalar> 25 ( 0.00185879 0.000735253 0.000334659 0.00026055 0.000226655 0.000163586 8.49467e-05 3.67577e-05 1.49383e-05 8.4375e-07 8.4375e-07 8.4375e-07 8.4375e-07 8.4375e-07 8.4375e-07 8.4375e-07 8.4375e-07 8.4375e-07 8.4375e-07 8.4375e-07 8.4375e-07 8.4375e-07 8.4375e-07 0.000300964 0.000604985 ) ; } walls { type nutkWallFunction; Cmu 0.09; kappa 0.41; E 9.8; value nonuniform List<scalar> 150 ( 6.33519e-06 5.85932e-06 7.01581e-06 8.87621e-06 1.04964e-05 9.08965e-06 6.5372e-06 5.3912e-06 4.83243e-06 4.42558e-06 3.90225e-06 3.09236e-06 1.63976e-06 5.69343e-07 0 0 0 0 0 0 0 0 0 7.70677e-06 7.6021e-06 6.96442e-06 6.66151e-06 5.92446e-06 4.77709e-06 3.50999e-06 2.21912e-06 1.29296e-06 4.29438e-07 0 0 0 0 0 0 0 0 5.0173e-06 2.86297e-06 4.90691e-07 2.95978e-06 4.06002e-06 3.58789e-06 3.12607e-06 2.84828e-06 1.95142e-06 0 0 0 0 6.54968e-06 1.0818e-05 1.17321e-05 1.35363e-05 1.543e-05 1.70176e-05 1.76895e-05 1.78442e-05 1.78743e-05 1.79607e-05 1.81578e-05 1.88224e-05 2.07334e-05 2.36172e-05 2.28509e-05 2.32154e-05 2.21703e-05 2.01944e-05 1.83367e-05 1.77328e-05 1.69152e-05 7.19667e-06 4.67638e-06 6.73409e-07 0 0 0 0 0 0 2.35171e-06 4.54294e-06 5.24723e-06 4.87466e-06 1.97178e-07 0 0 6.86322e-07 1.32858e-06 4.41262e-08 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1.47059e-05 1.53496e-05 1.52149e-05 1.48615e-05 1.47087e-05 1.45177e-05 1.42745e-05 1.41262e-05 1.39891e-05 1.39179e-05 1.38443e-05 1.36669e-05 1.33355e-05 1.29464e-05 1.27727e-05 1.29309e-05 1.3398e-05 1.34834e-05 1.3412e-05 1.33602e-05 1.33753e-05 1.35362e-05 1.39265e-05 1.44512e-05 1.51974e-05 1.68065e-05 1.98023e-05 1.88285e-05 1.63641e-05 1.33824e-05 1.2677e-05 1.24526e-05 1.17043e-05 9.94942e-06 ) ; } defaultFaces { type empty; } } // ************************************************************************* //
[ "mizuha.watanabe@gmail.com" ]
mizuha.watanabe@gmail.com
2a1abd6873eb81b0ee97fe8ae438ae7a04c59c83
50c71e0b03b28480abc03855a892b078393f5918
/Doug/Doug.cpp
26e03e0ecd0ec42c39ced69847eaca9bc20ff1d3
[]
no_license
jcurtis4207/Unix-Programs
a55aa533e219c06fd809abcedd5e3b892fb24ece
1bc9b3c5b9970cf06de0999d9718e50ed480ffe1
refs/heads/master
2023-07-17T18:42:19.474161
2021-08-29T22:14:35
2021-08-29T22:14:35
402,887,504
0
0
null
null
null
null
UTF-8
C++
false
false
4,460
cpp
/* * Doug - a take on 'du' * * Compilation: * clang++ -std=c++17 -O2 Doug.cpp -o doug (with added warnings) */ #include <algorithm> #include <filesystem> #include <iostream> using namespace std; bool tackS = false; const array<string, 5> sizeUnits { "B ", "KB", "MB", "GB", "TB" }; struct Entry{ filesystem::path path; uint64_t size; }; void printUsage(string errorType, string problem) { if(errorType == "badFlag") cerr << "ERROR: Unrecognized flag \"" << problem << "\"\n"; else if(errorType == "badPath") cerr << "ERROR: Unrecognized path \"" << problem << "\"\n"; cout << "Usage: doug [-hs] [path]\n"; cout << " -h : show help\n"; cout << " -s : sort by size\n"; exit((errorType == "") ? 0 : 1); } int getFlags(int argc, char** argv) { // if no arguments if(argc == 1) return -1; else { for(int arg = 1; arg < argc; arg++) { if(argv[arg][0] == '-') { // set flags from arguments beginning with '-' for(string::size_type charIndex = 1; charIndex < string(argv[arg]).length(); charIndex++) { if(argv[arg][charIndex] == 'h') printUsage("", ""); else if(argv[arg][charIndex] == 's') tackS = true; else printUsage("badFlag", string(1, argv[arg][charIndex])); } } // return index of first non '-' argument else return arg; } return -1; } } uint64_t getDirectorySize(const filesystem::path& path) { uint64_t totalSize = 0; for(const auto& file : filesystem::directory_iterator(path)) { if(filesystem::is_directory(file.path())) totalSize += getDirectorySize(file.path()); else if(filesystem::is_symlink(file.path())) continue; else totalSize += filesystem::file_size(file); } return totalSize; } void fillEntryVector(vector<Entry>& entries, string path) { for(const auto& file : filesystem::directory_iterator(path)) { if(file.is_directory()) { Entry temp = {file.path(), 0}; entries.push_back(temp); } } } uint64_t getFileSizes(string path) { uint64_t totalSize = 0; for(const auto& file : filesystem::directory_iterator(path)) { if(file.is_regular_file()) totalSize += filesystem::file_size(file); } return totalSize; } uint64_t sumSubdirectorySizes(vector<Entry>& entries) { uint64_t totalSize = 0; for(auto& entry : entries) { entry.size = getDirectorySize(entry.path); totalSize += entry.size; } return totalSize; } bool alphabeticSort(const Entry& e1, const Entry& e2) { // case insensitive alphabetic sort string name1 = e1.path.filename().string(); string name2 = e2.path.filename().string(); transform(name1.begin(), name1.end(), name1.begin(), ::tolower); transform(name2.begin(), name2.end(), name2.begin(), ::tolower); return (name1.compare(name2) < 0); } bool sizeSort(const Entry& e1, const Entry& e2) { return (e1.size > e2.size); } void printEntry(const Entry& entry) { double roundedFileSize = static_cast<double>(entry.size); unsigned long unitIndex = 0; for(unsigned long i = 0; i < sizeUnits.size(); i++) { if(roundedFileSize > 1024.0) { roundedFileSize /= 1024.0; unitIndex++; } else break; } cout << setw(6) << fixed << setprecision(1) << roundedFileSize; cout << sizeUnits[unitIndex] << " "; cout << entry.path.string() << "\n"; } int main(int argc, char** argv) { const int pathIndex = getFlags(argc, argv); const string path = (pathIndex == -1) ? filesystem::current_path().string() : static_cast<string>(argv[pathIndex]); if (!filesystem::exists(path)) printUsage("badPath", path); vector<Entry> entries; fillEntryVector(entries, path); uint64_t pathSize = getFileSizes(path); pathSize += sumSubdirectorySizes(entries); sort(entries.begin(), entries.end(), (tackS) ? sizeSort : alphabeticSort); for(const auto& entry : entries) printEntry(entry); printEntry(Entry{ path, pathSize }); return 0; }
[ "jcurtis4207@gmail.com" ]
jcurtis4207@gmail.com
7c30c680639b1cb20284dd0d87d5ee430495936c
f8247f16b71922b378356848ff4fc0579ade925c
/profilewidget.h
02cda4090f700509def2aec51f850dddfd8aebf1
[]
no_license
Mazar1ni/Skype
fb9c40a0e0e6d9a2db380bd87f0300fd08041ee9
3c9c80ae1a10d88b8fd0eb1aaae8f0d85822284e
refs/heads/master
2021-05-05T05:00:00.802662
2019-01-06T12:11:44
2019-01-06T12:11:44
118,648,722
0
0
null
null
null
null
UTF-8
C++
false
false
630
h
#ifndef PROFILEWIDGET_H #define PROFILEWIDGET_H #include <QWidget> #include <QLabel> class ProfileWidget : public QWidget { Q_OBJECT public: explicit ProfileWidget(QString n, QString iconN, QString i, QString identNumber, QWidget *parent = nullptr); void mousePressEvent(QMouseEvent* event); void updateName(QString newName); void updateIconName(QString newName); signals: clicked(); private slots: void updateIcon(); private: QString name; QString iconName; QString id; QString identifiacationNumber; QLabel* profileName; QLabel* profileIcon; }; #endif // PROFILEWIDGET_H
[ "xmazarini17@gmail.com" ]
xmazarini17@gmail.com
d4e230bdcdc25c86c7e1535943c579d660bca321
18ad22ada1a650da76f213ac46e7086469113c01
/Source/MixerInteractivityEditor/Private/K2Node_MixerButton.cpp
57291ba7ec7d8ecab3308443d45f480fdea86626
[]
no_license
FLY1NGSQU1RR3L/interactive-unreal-plugin
cdf314fd246fbbce98839256d51b5eedf77f40c6
cdfc4cb47962290ae0f9108bc67d59603a29b69a
refs/heads/master
2021-01-01T15:34:39.128589
2017-07-18T17:21:22
2017-07-18T17:21:22
97,650,921
1
0
null
2017-07-18T22:57:23
2017-07-18T22:57:23
null
UTF-8
C++
false
false
9,979
cpp
//********************************************************* // // Copyright (c) Microsoft. All rights reserved. // THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF // ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY // IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR // PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT. // //********************************************************* #include "K2Node_MixerButton.h" #include "BlueprintActionDatabaseRegistrar.h" #include "BlueprintNodeSpawner.h" #include "EditorCategoryUtils.h" #include "BlueprintEditorUtils.h" #include "GraphEditorSettings.h" #include "KismetCompiler.h" #include "K2Node_TemporaryVariable.h" #include "K2Node_AssignmentStatement.h" #include "MixerInteractivitySettings.h" #include "K2Node_MixerButtonEvent.h" #include "MixerInteractivityBlueprintLibrary.h" #define LOCTEXT_NAMESPACE "MixerInteractivityEditor" void UK2Node_MixerButton::ValidateNodeDuringCompilation(class FCompilerResultsLog& MessageLog) const { Super::ValidateNodeDuringCompilation(MessageLog); const UMixerInteractivitySettings* Settings = GetDefault<UMixerInteractivitySettings>(); check(Settings); if (!Settings->CachedButtons.Contains(ButtonId)) { MessageLog.Warning(*FText::Format(LOCTEXT("MixerButtonNode_UnknownButtonWarning", "Mixer Button Event specifies invalid button id '{0}' for @@"), FText::FromName(ButtonId)).ToString(), this); } } void UK2Node_MixerButton::ExpandNode(FKismetCompilerContext& CompilerContext, UEdGraph* SourceGraph) { Super::ExpandNode(CompilerContext, SourceGraph); UEdGraphPin* PressedPin = FindPin(TEXT("Pressed")); UEdGraphPin* ReleasedPin = FindPin(TEXT("Released")); bool PressedPinIsActive = PressedPin != nullptr && PressedPin->LinkedTo.Num() > 0; bool ReleasedPinIsActive = ReleasedPin != nullptr && ReleasedPin->LinkedTo.Num() > 0; UK2Node_TemporaryVariable* IntermediateButtonNode = nullptr; UK2Node_TemporaryVariable* IntermediateParticipantNode = nullptr; UK2Node_TemporaryVariable* IntermediateTransactionNode = nullptr; UK2Node_TemporaryVariable* IntermediateCostNode = nullptr; const UEdGraphSchema_K2* Schema = CompilerContext.GetSchema(); if (PressedPinIsActive && ReleasedPinIsActive) { IntermediateButtonNode = CompilerContext.SpawnIntermediateNode<UK2Node_TemporaryVariable>(this, SourceGraph); IntermediateButtonNode->VariableType.PinCategory = Schema->PC_Struct; IntermediateButtonNode->VariableType.PinSubCategoryObject = FMixerButtonReference::StaticStruct(); IntermediateButtonNode->AllocateDefaultPins(); IntermediateParticipantNode = CompilerContext.SpawnIntermediateNode<UK2Node_TemporaryVariable>(this, SourceGraph); IntermediateParticipantNode->VariableType.PinCategory = Schema->PC_Int; IntermediateParticipantNode->AllocateDefaultPins(); IntermediateTransactionNode = CompilerContext.SpawnIntermediateNode<UK2Node_TemporaryVariable>(this, SourceGraph); IntermediateTransactionNode->VariableType.PinCategory = Schema->PC_Struct; IntermediateTransactionNode->VariableType.PinSubCategoryObject = FMixerTransactionId::StaticStruct(); IntermediateTransactionNode->AllocateDefaultPins(); IntermediateCostNode = CompilerContext.SpawnIntermediateNode<UK2Node_TemporaryVariable>(this, SourceGraph); IntermediateCostNode->VariableType.PinCategory = Schema->PC_Int; IntermediateCostNode->AllocateDefaultPins(); } auto ExpandEventPin = [&](UEdGraphPin* OriginalPin, bool IsPressedEvent) { UK2Node_MixerButtonEvent* ButtonEvent = CompilerContext.SpawnIntermediateEventNode<UK2Node_MixerButtonEvent>(this, OriginalPin, SourceGraph); ButtonEvent->ButtonId = ButtonId; ButtonEvent->Pressed = IsPressedEvent; ButtonEvent->CustomFunctionName = FName(*FString::Printf(TEXT("MixerButtonEvt_%s_%s"), *ButtonId.ToString(), IsPressedEvent ? TEXT("Pressed") : TEXT("Released"))); ButtonEvent->EventReference.SetExternalDelegateMember(FName(TEXT("MixerButtonEventDynamicDelegate__DelegateSignature"))); ButtonEvent->bInternalEvent = true; ButtonEvent->AllocateDefaultPins(); if (IntermediateButtonNode) { check(IntermediateParticipantNode); auto MoveNodeToIntermediate = [&](const FString& OriginalPinName, UK2Node_TemporaryVariable* IntermediatePin) { UK2Node_AssignmentStatement* AssignmentNode = CompilerContext.SpawnIntermediateNode<UK2Node_AssignmentStatement>(this, SourceGraph); AssignmentNode->AllocateDefaultPins(); Schema->TryCreateConnection(IntermediatePin->GetVariablePin(), AssignmentNode->GetVariablePin()); Schema->TryCreateConnection(AssignmentNode->GetValuePin(), ButtonEvent->FindPinChecked(OriginalPinName)); CompilerContext.MovePinLinksToIntermediate(*FindPin(OriginalPinName), *IntermediatePin->GetVariablePin()); return AssignmentNode; }; UK2Node_AssignmentStatement* ButtonAssignment = MoveNodeToIntermediate(TEXT("Button"), IntermediateButtonNode); UK2Node_AssignmentStatement* ParticipantAssignment = MoveNodeToIntermediate(TEXT("ParticipantId"), IntermediateParticipantNode); UK2Node_AssignmentStatement* TransactionAssignment = MoveNodeToIntermediate(TEXT("TransactionId"), IntermediateTransactionNode); UK2Node_AssignmentStatement* CostAssignment = MoveNodeToIntermediate(TEXT("SparkCost"), IntermediateCostNode); CompilerContext.MovePinLinksToIntermediate(*OriginalPin, *ButtonAssignment->GetThenPin()); Schema->TryCreateConnection(ParticipantAssignment->GetThenPin(), ButtonAssignment->GetExecPin()); Schema->TryCreateConnection(TransactionAssignment->GetThenPin(), ParticipantAssignment->GetExecPin()); Schema->TryCreateConnection(CostAssignment->GetThenPin(), TransactionAssignment->GetExecPin()); Schema->TryCreateConnection(Schema->FindExecutionPin(*ButtonEvent, EGPD_Output), CostAssignment->GetExecPin()); } else { CompilerContext.MovePinLinksToIntermediate(*OriginalPin, *Schema->FindExecutionPin(*ButtonEvent, EGPD_Output)); CompilerContext.MovePinLinksToIntermediate(*FindPin(TEXT("Button")), *ButtonEvent->FindPin(TEXT("Button"))); CompilerContext.MovePinLinksToIntermediate(*FindPin(TEXT("ParticipantId")), *ButtonEvent->FindPin(TEXT("ParticipantId"))); CompilerContext.MovePinLinksToIntermediate(*FindPin(TEXT("TransactionId")), *ButtonEvent->FindPin(TEXT("TransactionId"))); CompilerContext.MovePinLinksToIntermediate(*FindPin(TEXT("SparkCost")), *ButtonEvent->FindPin(TEXT("SparkCost"))); } }; if (PressedPinIsActive) { ExpandEventPin(PressedPin, true); } if (ReleasedPinIsActive) { ExpandEventPin(ReleasedPin, false); } } void UK2Node_MixerButton::GetMenuActions(FBlueprintActionDatabaseRegistrar& ActionRegistrar) const { auto CustomizeMixerNodeLambda = [](UEdGraphNode* NewNode, bool bIsTemplateNode, FName ButtonName) { UK2Node_MixerButton* MixerNode = CastChecked<UK2Node_MixerButton>(NewNode); MixerNode->ButtonId = ButtonName; }; UClass* ActionKey = GetClass(); if (ActionRegistrar.IsOpenForRegistration(ActionKey)) { const UMixerInteractivitySettings* Settings = GetDefault<UMixerInteractivitySettings>(); for (FName CachedButtonName : Settings->CachedButtons) { UBlueprintNodeSpawner* NodeSpawner = UBlueprintNodeSpawner::Create(GetClass()); check(NodeSpawner != nullptr); NodeSpawner->CustomizeNodeDelegate = UBlueprintNodeSpawner::FCustomizeNodeDelegate::CreateStatic(CustomizeMixerNodeLambda, CachedButtonName); ActionRegistrar.AddBlueprintAction(ActionKey, NodeSpawner); } } } FText UK2Node_MixerButton::GetMenuCategory() const { return LOCTEXT("MixerButtonNode_MenuCategory", "{MixerInteractivity}|Button Events"); } FBlueprintNodeSignature UK2Node_MixerButton::GetSignature() const { FBlueprintNodeSignature NodeSignature = Super::GetSignature(); NodeSignature.AddKeyValue(ButtonId.ToString()); return NodeSignature; } void UK2Node_MixerButton::AllocateDefaultPins() { const UEdGraphSchema_K2* K2Schema = GetDefault<UEdGraphSchema_K2>(); CreatePin(EGPD_Output, K2Schema->PC_Exec, TEXT(""), NULL, false, false, TEXT("Pressed")); CreatePin(EGPD_Output, K2Schema->PC_Exec, TEXT(""), NULL, false, false, TEXT("Released")); CreatePin(EGPD_Output, K2Schema->PC_Struct, TEXT(""), FMixerButtonReference::StaticStruct(), false, false, TEXT("Button")); CreatePin(EGPD_Output, K2Schema->PC_Int, TEXT(""), NULL, false, false, TEXT("ParticipantId")); // Advanced pins UEdGraphPin* AdvancedPin = CreatePin(EGPD_Output, K2Schema->PC_Struct, TEXT(""), FMixerTransactionId::StaticStruct(), false, true, TEXT("TransactionId")); AdvancedPin->bAdvancedView = 1; AdvancedPin = CreatePin(EGPD_Output, K2Schema->PC_Int, TEXT(""), NULL, false, false, TEXT("SparkCost")); AdvancedPin->bAdvancedView = 1; Super::AllocateDefaultPins(); } FLinearColor UK2Node_MixerButton::GetNodeTitleColor() const { return GetDefault<UGraphEditorSettings>()->EventNodeTitleColor; } FText UK2Node_MixerButton::GetNodeTitle(ENodeTitleType::Type TitleType) const { if (CachedNodeTitle.IsOutOfDate(this)) { // FText::Format() is slow, so we cache this to save on performance CachedNodeTitle.SetCachedText(FText::Format(LOCTEXT("MixerButtonNode_Title", "{0} (Mixer button)"), FText::FromName(ButtonId)), this); } return CachedNodeTitle; } FText UK2Node_MixerButton::GetTooltipText() const { if (CachedTooltip.IsOutOfDate(this)) { CachedTooltip.SetCachedText(FText::Format(LOCTEXT("MixerButtonNode_Tooltip", "Events for when the {0} button is pressed or released on Mixer."), FText::FromName(ButtonId)), this); } return CachedTooltip; } FSlateIcon UK2Node_MixerButton::GetIconAndTint(FLinearColor& OutColor) const { return FSlateIcon("EditorStyle", "GraphEditor.PadEvent_16x"); } bool UK2Node_MixerButton::IsCompatibleWithGraph(const UEdGraph* TargetGraph) const { bool bIsCompatible = Super::IsCompatibleWithGraph(TargetGraph); if (bIsCompatible) { EGraphType const GraphType = TargetGraph->GetSchema()->GetGraphType(TargetGraph); bIsCompatible = (GraphType == EGraphType::GT_Ubergraph); } return bIsCompatible; }
[ "jamesya@microsoft.com" ]
jamesya@microsoft.com
d8ab2af9f5bb16813c514068b66638ca9f2db71b
e06ccb3f5e729b861b367d6ba4452cf3ba321531
/src/model/BaseModel.cpp
3fb50c60e302315dc4dc70e3f9f569c8d979bdd1
[]
no_license
raiscui/vHelix
2a38376960b11ea00ffad5ac75a44401f9b118e0
afaca6ca7c6fb7fcd1e369e6f90b95fd5c3bbe0e
refs/heads/master
2021-01-16T20:49:59.014849
2012-10-01T20:40:29
2012-10-01T20:40:29
null
0
0
null
null
null
null
UTF-8
C++
false
false
24,208
cpp
/* * Base.cpp * * Created on: 16 feb 2012 * Author: johan */ #include <model/Base.h> #include <model/Helix.h> #include <view/BaseShape.h> #include <view/HelixShape.h> #include <maya/MGlobal.h> #include <maya/MPlug.h> #include <maya/MPlugArray.h> #include <maya/MDGModifier.h> #include <maya/MCommandResult.h> #include <maya/MFnDagNode.h> #include <maya/MPxSurfaceShapeUI.h> #include <maya/MMaterial.h> #include <Helix.h> #include <HelixBase.h> #include <Utility.h> #include <DNA.h> #include <algorithm> namespace Helix { namespace Model { MStatus Base::Create(Helix & helix, const MString & name, const MVector & translation, Base & base) { MStatus status; MObject helix_object = helix.getObject(status); if (!status) { status.perror("Helix::getObject"); return status; } /* * Create the 'HelixBase' object type */ MFnDagNode base_dagNode; MObject base_object = base_dagNode.create(HelixBase::id, name, helix_object, &status); if (!status) { status.perror("MFnDagNode::create"); return status; } /* * Translate the base */ MFnTransform base_transform(base_object); if (!(status = base_transform.setTranslation(translation, MSpace::kTransform))) { status.perror("MFnTransform::setTranslation"); return status; } /* * Attach the shapes */ /* * Here, the Shape is instanced, which should save on memory and file size * however, it seems as instancing decreases performance on large models */ /*if (s_shape.isNull()) { MFnDagNode shape_dagNode; s_shape = shape_dagNode.create(::Helix::View::BaseShape::id, base_object, &status); if (!status) { status.perror("MFnDagNode::create BaseShape"); return status; } * * If the user creates a new scene, the shape will be deleted and our upcoming calls will crash * by tracking the shape we'll be notified when that occurs * MNodeMessage::addNodePreRemovalCallback(s_shape, BaseModel_Shape_NodePreRemovalCallback, NULL, &status); } else if (!(status = base_dagNode.addChild(s_shape, MFnDagNode::kNextPos, true))) { status.perror("MFnDagNode::addChild"); return status; }*/ /* * Here a new copy of the shapes is made every time */ MFnDagNode shape_dagNode; MObject shape_object = shape_dagNode.create(::Helix::View::BaseShape::id, base_object, &status); if (!status) { status.perror("MFnDagNode::create BaseShape"); return status; } base = base_object; return MStatus::kSuccess; } MStatus Base::AllSelected(MObjectArray & selectedBases) { return GetSelectedObjectsOfType(selectedBases, ::Helix::HelixBase::id); } MStatus Base::setMaterial(const Material & material) { if (material.getMaterial().length() == 0) return MStatus::kSuccess; MStatus status; MDagPath base_dagPath = getDagPath(status); if (!status) { status.perror("Base::getDagPath"); return status; } if (!(status = MGlobal::executeCommand(MString("sets -noWarnings -forceElement ") + material.getMaterial() + " " + base_dagPath.fullPathName()))) { status.perror("MGlobal::executeCommand"); return status; } return MStatus::kSuccess; } /* * Optimized version that does not call any MEL commands */ MStatus Base::getMaterialColor(float & r, float & g, float & b, float & a) { MStatus status; MDagPath & dagPath = getDagPath(status); if (!status) { status.perror("Base::getDagPath"); return status; } /* * We must iterate over the models Shape nodes, for the first we find that seem to have a material attached * originally, the idea was to use the listSets -extendToShape but it doesn't seem to work... */ unsigned int numShapes; if (!(status = dagPath.numberOfShapesDirectlyBelow(numShapes))) { status.perror("MDagPath::numberOfShapesDirectlyBelow"); return status; } for(unsigned int i = 0; i < numShapes; ++i) { MDagPath shape = dagPath; if (!(status = shape.extendToShapeDirectlyBelow(i))) { status.perror("MDagPath::extendToShapeDirectlyBelow"); return status; } if (MFnDagNode(shape).typeId(&status) == View::BaseShape::id) { MPxSurfaceShapeUI *shapeUI = MPxSurfaceShapeUI::surfaceShapeUI(shape, &status); if (!status) { status.perror("MPxSurfaceShapeUI::surfaceShapeUI"); return status; } MMaterial material = shapeUI->material(shape); MColor color; material.getDiffuse(color); r = color.r; g = color.g; b = color.b; a = color.a; return MStatus::kSuccess; } if (!status) { status.perror("MFnDagNode::typeId"); return status; } } return MStatus::kNotFound; } MStatus Base::getMaterial(Material & material) { MStatus status; //Material *materials; size_t numMaterials; Material::Iterator materials_begin = Material::AllMaterials_begin(status, numMaterials); if (!status) { status.perror("Material::AllMaterials_begin"); return status; } MDagPath & dagPath = getDagPath(status); if (!status) { status.perror("Base::getDagPath"); return status; } /* * We must iterate over the models Shape nodes, for the first we find that seem to have material attached * originally, the idea was to use the listSets -extendToShape but it doesn't seem to work... */ unsigned int numShapes; if (!(status = dagPath.numberOfShapesDirectlyBelow(numShapes))) { status.perror("MDagPath::numberOfShapesDirectlyBelow"); return status; } for(unsigned int i = 0; i < numShapes; ++i) { MDagPath shape = dagPath; if (!(status = shape.extendToShapeDirectlyBelow(i))) { status.perror("MDagPath::extendToShapeDirectlyBelow"); return status; } MCommandResult commandResult; MStringArray stringArray; if (!(status = MGlobal::executeCommand(MString("listSets -object ") + shape.fullPathName(), commandResult))) { status.perror("MGlobal::executeCommand"); return status; } if (!(status = commandResult.getResult(stringArray))) { status.perror("MCommandResult::getResult"); return status; } for(unsigned int j = 0; j < stringArray.length(); ++j) { Material::Iterator materialIt; if ((materialIt = std::find(materials_begin, Material::AllMaterials_end(), stringArray[j])) != Material::AllMaterials_end()) { material = *materialIt; return MStatus::kSuccess; } } } return MStatus::kNotFound; } /*Color Base::getColor(MStatus & status) { MPlug color_plug(getObject(status), HelixBase::aColor); if (!status) { status.perror("Base::getObject"); return Color(); } //color.index = color_plug.asInt(); status = MStatus::kSuccess; return Color(color_plug.asInt()); } MStatus Base::setColor(const Color & color) { MStatus status; MPlug color_plug(getObject(status), HelixBase::aColor); if (!status) { status.perror("Base::getObject"); return status; } color_plug.setInt(color.index); return MStatus::kSuccess; }*/ /* MStatus Base::setMaterial(const Material & material) { if (material.getMaterial().length() == 0) return MStatus::kSuccess; MStatus status; MDagPath base_dagPath = getDagPath(status); if (!status) { status.perror("Base::getDagPath"); return status; } if (!(status = MGlobal::executeCommand(MString("sets -noWarnings -forceElement ") + material.getMaterial() + " " + base_dagPath.fullPathName()))) { status.perror("MGlobal::executeCommand"); return status; } return MStatus::kSuccess; } MStatus Base::getMaterial(Material & material) { MStatus status; //Material *materials; size_t numMaterials; Material::Iterator materials_begin = Material::AllMaterials_begin(status, numMaterials); if (!status) { status.perror("Material::AllMaterials_begin"); return status; } MDagPath & dagPath = getDagPath(status); if (!status) { status.perror("Base::getDagPath"); return status; } * * We must iterate over the models Shape nodes, for the first we find that seem to have material attached * originally, the idea was to use the listSets -extendToShape but it doesn't seem to work... * unsigned int numShapes; if (!(status = dagPath.numberOfShapesDirectlyBelow(numShapes))) { status.perror("MDagPath::numberOfShapesDirectlyBelow"); return status; } for(unsigned int i = 0; i < numShapes; ++i) { MDagPath shape = dagPath; if (!(status = shape.extendToShapeDirectlyBelow(i))) { status.perror("MDagPath::extendToShapeDirectlyBelow"); return status; } MCommandResult commandResult; MStringArray stringArray; if (!(status = MGlobal::executeCommand(MString("listSets -object ") + shape.fullPathName(), commandResult))) { status.perror("MGlobal::executeCommand"); return status; } if (!(status = commandResult.getResult(stringArray))) { status.perror("MCommandResult::getResult"); return status; } for(unsigned int j = 0; j < stringArray.length(); ++j) { Material::Iterator materialIt; if ((materialIt = std::find(materials_begin, Material::AllMaterials_end(), stringArray[j])) != Material::AllMaterials_end()) { material = *materialIt; return MStatus::kSuccess; } } } return MStatus::kNotFound; } */ Base::Type Base::type(MStatus & status) { MObject thisObject(getObject(status)); if (!status) { status.perror("Base::getObject"); return Base::BASE; } MPlug forwardPlug(thisObject, ::Helix::HelixBase::aForward), backwardPlug(thisObject, ::Helix::HelixBase::aBackward); bool isForwardConnected = forwardPlug.isConnected(&status); if (!status) { status.perror("forwardPlug::isConnected"); return Base::BASE; } bool isBackwardConnected = backwardPlug.isConnected(&status); if (!status) { status.perror("backwardPlug::isConnected"); return Base::BASE; } status = MStatus::kSuccess; return (Base::Type) ((!isBackwardConnected ? Base::FIVE_PRIME_END : 0) | (!isForwardConnected ? Base::THREE_PRIME_END : 0)); } MStatus Base::connect_forward(Base & target, bool ignorePreviousConnections) { MStatus status; /* * Obtain the required objects */ MObject thisObject = getObject(status); if (!status) { status.perror("Base::getObject() this"); return status; } MObject targetObject = target.getObject(status); if (!status) { status.perror("Base::getObject() target"); return status; } /* * Remove all old connections */ if (!ignorePreviousConnections) { if (!(status = disconnect_forward(true))) { status.perror("Base::disconnect_forward"); return status; } if (!(status = target.disconnect_backward(true))) { status.perror("Base::disconnect_backward"); return status; } } MPlug forwardPlug (thisObject, HelixBase::aForward), backwardPlug (targetObject, HelixBase::aBackward); MDGModifier dgModifier; if (!(status = dgModifier.connect(backwardPlug, forwardPlug))) { status.perror("MDGModifier::connect"); return status; } if (!(status = dgModifier.doIt())) { status.perror("MDGModifier::doIt"); return status; } /* * Previously we did this in the connectionBroke/connectionMade but that was very unstable */ MDagPath thisDagPath = getDagPath(status); if (!status) { status.perror("Base::getDagPath() this"); return status; } MDagPath targetDagPath = target.getDagPath(status); if (!status) { status.perror("Base::getDagPath() target"); return status; } if (!(status = MGlobal::executeCommand(MString("aimConstraint -aimVector 0 0 -1.0 ") + targetDagPath.fullPathName() + " " + thisDagPath.fullPathName() + ";", false))) status.perror("MGlobal::executeCommand"); return MStatus::kSuccess; } /* * Helper method: Disconnect all connections on the given attribute */ MStatus Base_disconnect_attribute(MObject & object, MObject & attribute) { /* * Find all the connected objects on the forward attribute and remove them */ MStatus status; MPlug plug(object, attribute); MPlugArray targetPlugs; MDGModifier dgModifier; plug.connectedTo(targetPlugs, true, false, &status); if (!status) { status.perror("MPlug::connectedTo 1"); return status; } /* * Here this plug is a destination */ for(unsigned int i = 0; i < targetPlugs.length(); ++i) { if (!(status = dgModifier.disconnect(targetPlugs[i], plug))) { status.perror("MDGModifier::disconnect 1"); return status; } } targetPlugs.clear(); // Dunno if required though plug.connectedTo(targetPlugs, false, true, &status); if (!status) { status.perror("MPlug::connectedTo 2"); return status; } /* * Here this plug is a source */ for(unsigned int i = 0; i < targetPlugs.length(); ++i) { if (!(status = dgModifier.disconnect(plug, targetPlugs[i]))) { status.perror("MDGModifier::disconnect 2"); return status; } } if (!(status = dgModifier.doIt())) { status.perror("MDGModifier::doIt"); return status; } return MStatus::kSuccess; } MStatus Base::disconnect_forward(bool ignorePerpendicular) { MStatus status; MObject thisObject = getObject(status); if (!status) { status.perror("Base::getObject()"); return status; } /* * Remove aimConstraints */ MDagPath dagPath = getDagPath(status); if (!status) { status.perror("Base::getDagPath"); return status; } MString this_fullPathName = dagPath.fullPathName(); if (ignorePerpendicular) { if (!(status = MGlobal::executeCommand(MString("delete -cn ") + this_fullPathName + "; setAttr " + this_fullPathName + ".rotate 0 0 0;", false))) status.perror("MGlobal::executeCommand"); } else { if (!(status = MGlobal::executeCommand(MString("delete -cn ") + this_fullPathName + "; setAttr " + this_fullPathName + ".rotate 0 0 0; $backwards = `listConnections " + this_fullPathName + ".backward`; for($backward in $backwards) aimConstraint -aimVector 1.0 0 0 $backward " + this_fullPathName + ";", false))) status.perror("MGlobal::executeCommand"); } return Base_disconnect_attribute(thisObject, ::Helix::HelixBase::aForward); } MStatus Base::disconnect_backward(bool ignorePerpendicular) { MStatus status; MObject thisObject = getObject(status); if (!status) { status.perror("Base::getObject()"); return status; } /* * Remove aimConstraints */ Base b(backward(status)); if (!status && status != MStatus::kNotFound) { status.perror("Base::backward"); return status; } if (status) { MDagPath dagPath = b.getDagPath(status); if (!status) { status.perror("Base::getDagPath"); return status; } MString this_fullPathName = dagPath.fullPathName(); if (ignorePerpendicular) { if (!(status = MGlobal::executeCommand(MString("delete -cn ") + this_fullPathName + "; setAttr " + this_fullPathName + ".rotate 0 0 0;", false))) status.perror("MGlobal::executeCommand"); } else { if (!(status = MGlobal::executeCommand(MString("delete -cn ") + this_fullPathName + "; setAttr " + this_fullPathName + ".rotate 0 0 0; $backwards = `listConnections " + this_fullPathName + ".backward`; for($backward in $backwards) aimConstraint -aimVector 1.0 0 0 $backward " + this_fullPathName + ";", false))) status.perror("MGlobal::executeCommand"); } } return Base_disconnect_attribute(thisObject, ::Helix::HelixBase::aBackward); } MStatus Base::connect_opposite(Base & target, bool ignorePreviousConnections) { MStatus status; /* * Obtain the required objects */ MObject thisObject = getObject(status); if (!status) { status.perror("Base::getObject() this"); return status; } MObject targetObject = target.getObject(status); if (!status) { status.perror("Base::getObject() target"); return status; } /* * Remove all old connections */ if (!ignorePreviousConnections) { if (!(status = disconnect_opposite())) { status.perror("Base::disconnect_opposite"); return status; } if (!(status = target.disconnect_opposite())) { status.perror("Base::disconnect_opposite"); return status; } } MPlug thisLabelPlug (thisObject, HelixBase::aLabel), targetLabelPlug (targetObject, HelixBase::aLabel); MDGModifier dgModifier; if (!(status = dgModifier.connect(thisLabelPlug, targetLabelPlug))) { status.perror("MDGModifier::connect"); return status; } if (!(status = dgModifier.doIt())) { status.perror("MDGModifier::doIt"); return status; } return MStatus::kSuccess; } MStatus Base::disconnect_opposite() { MStatus status; /* * Obtain the required objects */ MObject thisObject = getObject(status); if (!status) { status.perror("Base::getObject() this"); return status; } MPlug thisLabelPlug (thisObject, HelixBase::aLabel); bool isConnected = thisLabelPlug.isConnected(&status); if (!status) { status.perror("MPlug::isConnected on label"); return status; } if (!isConnected) return MStatus::kSuccess; MPlugArray targetLabelPlugs; thisLabelPlug.connectedTo(targetLabelPlugs, true, true, &status); if (!status) { status.perror("MPlug::connectedTo"); return status; } MDGModifier dgModifier; for (unsigned int i = 0; i < targetLabelPlugs.length(); ++i) { MPlug targetLabelPlug = targetLabelPlugs[i]; bool isDestination = targetLabelPlug.isDestination(&status); if (!status) { status.perror("MPlug::isDestination on label"); return status; } if (isDestination) { if (!(status = dgModifier.disconnect(thisLabelPlug, targetLabelPlug))) { status.perror("MDGModifier::connect"); return status; } } else { if (!(status = dgModifier.disconnect(targetLabelPlug, thisLabelPlug))) { status.perror("MDGModifier::connect"); return status; } } } if (!(status = dgModifier.doIt())) { status.perror("MDGModifier::doIt"); return status; } return MStatus::kSuccess; } MStatus Base::setLabel(DNA::Name label) { MStatus status; MObject thisObject = getObject(status); if (!status) { status.perror("Base::getObject"); return status; } MPlug labelPlug(thisObject, ::Helix::HelixBase::aLabel); bool isDestination = labelPlug.isDestination(&status); if (!status) { status.perror("MPlug::isDestination"); return status; } if (isDestination) { /* * We have to set the label on the opposite base. Not this one as it is read-only */ Base oppositeBase = opposite(status); if (!status) { status.perror("Base::opposite"); return status; } MObject oppositeBaseObject = oppositeBase.getObject(status); if (!status) { status.perror("Base::getObject opposite"); return status; } MPlug oppositeBaseLabelPlug(oppositeBaseObject, ::Helix::HelixBase::aLabel); if (!(status = oppositeBaseLabelPlug.setInt((int) label.opposite()))) { status.perror("MPlug::setInt opposite"); return status; } } else { if (!(status = labelPlug.setInt((int) label))) { status.perror("MPlug::setInt"); return status; } } return MStatus::kSuccess; } MStatus Base::getLabel(DNA::Name & label) { MStatus status; MObject thisObject = getObject(status); if (!status) { status.perror("Base::getObject"); return status; } MPlug labelPlug(thisObject, ::Helix::HelixBase::aLabel); /* * Get the value from the attribute */ if (!(status = labelPlug.getValue((int &) label))) { status.perror("MPlug::getValue"); return status; } /* * Figure out if we are the destination on the connection, if we are, we need to inverse the value */ bool isDestination = labelPlug.isDestination(&status); if (!status) { status.perror("MPlug::getValue"); return status; } if (isDestination) label = label.opposite(); return MStatus::kSuccess; } /* * Helper method used by both forward and backward */ inline Base Base_target(MObject & baseObject, MObject & attribute, MStatus & status) { MPlug plug(baseObject, attribute); MPlugArray targetPlugs; bool isConnected = plug.connectedTo(targetPlugs, true, true, &status); if (!status) { status.perror("MPlug::connectedTo"); return Base(); } bool hasForward = (isConnected && targetPlugs.length() > 0); if (hasForward) { status = MStatus::kSuccess; return Base(targetPlugs[0].node()); } else { status = MStatus::kNotFound; return Base(); } } Base Base::forward(MStatus & status) { MObject thisObject = getObject(status); if (!status) { status.perror("Base::getObject() this"); return Base(); } return Base_target(thisObject, ::Helix::HelixBase::aForward, status); } Base Base::forward() { MStatus status; MString path = getDagPath(status).fullPathName(); MObject thisObject = getObject(status); if (!status) { status.perror("Base::getObject() this"); return Base(); } // We could at least print if there are any status errors, but speed! return Base_target(thisObject, ::Helix::HelixBase::aForward, status); } Base Base::backward(MStatus & status) { MObject thisObject = getObject(status); if (!status) { status.perror("Base::getObject() this"); return Base(); } return Base_target(thisObject, ::Helix::HelixBase::aBackward, status); } Base Base::backward() { MStatus status; MObject thisObject = getObject(status); if (!status) { status.perror("Base::getObject() this"); return Base(); } // We could at least print if there are any status errors, but speed! return Base_target(thisObject, ::Helix::HelixBase::aBackward, status); } Base Base::opposite(MStatus & status) { MObject thisObject = getObject(status); if (!status) { status.perror("Base::getObject() this"); return Base(); } // We could at least print if there are any status errors, but speed! return Base_target(thisObject, ::Helix::HelixBase::aLabel, status); } Base Base::opposite() { MStatus status; MObject thisObject = getObject(status); if (!status) { status.perror("Base::getObject() this"); return Base(); } // We could at least print if there are any status errors, but speed! return Base_target(thisObject, ::Helix::HelixBase::aLabel, status); } bool Base::opposite_isDestination(MStatus & status) { MObject thisObject = getObject(status); if (!status) { status.perror("Base::getObject() this"); return Base(); } MPlug plug(thisObject, ::Helix::HelixBase::aLabel); return plug.isDestination(&status); } Helix Base::getParent(MStatus & status) { MObject thisObject = getObject(status); if (!status) { status.perror("Base::getObject"); return Helix(); } MFnDagNode this_dagNode(thisObject); unsigned int numParents = this_dagNode.parentCount(&status); if (!status) { status.perror("MFnDagNode::parentCount"); return Helix(); } for(unsigned int i = 0; i < numParents; ++i) { MObject parent = this_dagNode.parent(i, &status); if (!status) { status.perror("MFnDagNode::parent"); return Helix(); } MFnDagNode parent_dagNode(parent); if (parent_dagNode.typeId(&status) == ::Helix::Helix::id) { status = MStatus::kSuccess; return Helix(parent); } if (!status) { status.perror("MFnDagNode::typeId"); return Helix(); } } status = MStatus::kNotFound; return Helix(); } } }
[ "jgar@kth.se" ]
jgar@kth.se
22e32135faca9ffed561e4ffde53d7f6cd56e45a
90f84d39df7c2d58a7084fd46e4e4c39d16adfe6
/reco/wordrec/dpwr/DPPreProcessor.h
b2b60b9c95dc14f27041282538856aa1d2564923
[]
no_license
amitdo/Lipitk
08c3c1848998fba7b5a94ef9a39775f628961328
23d51c3bc0505c35511e8fc8e91af455b9342461
refs/heads/master
2021-01-16T22:50:20.018371
2011-11-08T18:31:04
2011-11-08T18:31:04
null
0
0
null
null
null
null
UTF-8
C++
false
false
1,820
h
/**************************************************************************** * Copyright (c) HP Labs India. All rights reserved. * This source code is a property of HP Labs India. and is copyright protected. * UNATHORISED ACCESS, COPYING, REPRODUCTION OR DISTRIBUTION of this program * is strictly PROHIBITED. ****************************************************************************/ /************************************************************************ * SVN MACROS * * $LastChangedDate: 2008-07-18 15:00:39 +0530 (Fri, 18 Jul 2008) $ * $Revision: 561 $ * $Author: sharmnid $ * ************************************************************************/ /************************************************************************ * FILE DESCR: Definition of DPPreProcessor contains the specific pre-processing * techniques like 'shiro-rekha' detection * * CONTENTS: * * AUTHOR: Mudit Agrawal * * DATE: Mar 4, 2005 * CHANGE HISTORY: * Author Date Description of * ************************************************************************/ #ifndef __DPPREPROCESSOR_H #define __DPPREPROCESSOR_H #include "LTKInkUtils.h" /** * @class DPPreProcessor * <p> This class contains the specific pre-processing techniques like 'shiro-rekha' detection </p> */ class DPPreProcessor { public: /** * @name Constructors and Destructor */ // @{ /** * Default Constructor */ DPPreProcessor(); /** Destructor */ ~DPPreProcessor(); // @} /** * This function returns the stroke(s) which are shiro-rekha * @param void * * @return stroke-id of shiro-rekha */ int detectShiroRekha(const LTKTraceGroup &traceGroup, vector<int> & shiroRekhaIndices); int detectShiroRekha(const LTKTraceVector &traceVector, vector<int> & shiroRekhaIndices); }; #endif
[ "anirudhsharma.crypto@gmail.com" ]
anirudhsharma.crypto@gmail.com
f93da0bf9290fc19d03506ab9caecc733886f77a
08b8cf38e1936e8cec27f84af0d3727321cec9c4
/data/crawl/squid/old_hunk_5345.cpp
46f761384686863052ebb0112aaeee0861e2bc2c
[]
no_license
ccdxc/logSurvey
eaf28e9c2d6307140b17986d5c05106d1fd8e943
6b80226e1667c1e0760ab39160893ee19b0e9fb1
refs/heads/master
2022-01-07T21:31:55.446839
2018-04-21T14:12:43
2018-04-21T14:12:43
null
0
0
null
null
null
null
UTF-8
C++
false
false
1,486
cpp
ACLChecklist::authenticated() { http_hdr_type headertype; if (NULL == request) { fatal ("requiresRequest SHOULD have been true for this ACL!!"); return 0; } else if (!request->flags.accelerated) { /* Proxy authorization on proxy requests */ headertype = HDR_PROXY_AUTHORIZATION; } else if (request->flags.internal) { /* WWW authorization on accelerated internal requests */ headertype = HDR_AUTHORIZATION; } else { #if AUTH_ON_ACCELERATION /* WWW authorization on accelerated requests */ headertype = HDR_AUTHORIZATION; #else debug(28, 1) ("ACHChecklist::authenticated: authentication not applicable on accelerated requests.\n"); return -1; #endif } /* get authed here */ /* Note: this fills in auth_user_request when applicable */ switch (authenticateTryToAuthenticateAndSetAuthUser(&auth_user_request, headertype, request, conn(), src_addr)) { case AUTH_ACL_CANNOT_AUTHENTICATE: debug(28, 4) ("aclMatchAcl: returning 0 user authenticated but not authorised.\n"); return 0; case AUTH_AUTHENTICATED: return 1; break; case AUTH_ACL_HELPER: debug(28, 4) ("aclMatchAcl: returning 0 sending credentials to helper.\n"); changeState (ProxyAuthLookup::Instance()); return 0; case AUTH_ACL_CHALLENGE: debug(28, 4) ("aclMatchAcl: returning 0 sending authentication challenge.\n"); changeState (ProxyAuthNeeded::Instance()); return 0; default: fatal("unexpected authenticateAuthenticate reply\n"); return 0; } }
[ "993273596@qq.com" ]
993273596@qq.com
804610527d32e911dada9c3890429e0e9c59e295
039567c4edb90579d94602554d5396096053a7ba
/Data Structure/Array/MissingNumberInArray.cpp
6534cb9759d6f939ec02bbab8800276ff96af627
[ "MIT" ]
permissive
dwiputrias/Contribute-to-HacktoberFest2021
1632a2166c5902e9f56fa24c33d66b98e05dd2b5
c82c0f209cbc6186cfad84303f3a858f5a0e24df
refs/heads/main
2023-08-22T12:32:48.400515
2021-10-05T06:28:45
2021-10-05T06:28:45
414,042,721
2
0
MIT
2021-10-06T02:23:45
2021-10-06T02:23:44
null
UTF-8
C++
false
false
533
cpp
#include <iostream> using namespace std; int sumOfN(int n) { return (n * n + n) / 2; } void missingNumb(int arr[], int n) { int sum = sumOfN(n); int arrSum = 0; for (int i = 0; i < n - 1; i++) { arrSum += arr[i]; } cout << sum - arrSum; cout << endl; } int main() { int t; cin >> t; while (t--) { int n; cin >> n; int arr[n]; for (int i = 0; i < n - 1; i++) { cin >> arr[i]; } missingNumb(arr, n); } }
[ "anmolmoza2@gmail.com" ]
anmolmoza2@gmail.com
f33b6afd8cee633808f7143fb4aaf9b038555a95
53f7a36e0ebea8a0e29e1b3392dd9c4fd720563f
/Week 2 - Sorting/1/Solution.cpp
e22f6a102a02ec8d74d12ef6f8db60e37bc3b0b5
[]
no_license
ddaribo/Data-Structures-and-Algorithms-2018-2019
449a58473bf0152e535ed4f30e410362d685e5fa
8f71fe3e9cdfc776ea05170499893767124c225b
refs/heads/master
2020-12-27T08:10:03.041837
2020-02-02T19:54:27
2020-02-02T19:54:27
237,827,085
0
0
null
null
null
null
UTF-8
C++
false
false
1,135
cpp
#include <vector> #include <iostream> #include <algorithm> #include <string> using namespace std; bool comparison(string first, string second) { string fres = first + second; string sres = second + first; if (fres.compare(sres) > 0) { return true; } else { return false; } } int main() { int n; cin >> n; string nums = ""; vector<string> numbers; string input = ""; for (int i = 0; i < n; i++) { cin >> input; numbers.push_back(input); } int indexMax = 0; for (int i = 0; i < n - 1; i++) { indexMax = i; for (int j = i + 1; j < n; j++) { if (comparison(numbers[j],numbers[indexMax])) { indexMax = j; } } swap(numbers[indexMax], numbers[i]); } if (numbers[0] == "0") { cout << 0; } else { for (int i = 0; i < n; i++) { cout << numbers[i]; } } system("pause"); return 0; }
[ "noreply@github.com" ]
noreply@github.com
9b8d420dd2b7d8a34ad8bbfb980587d7c87be8b2
ab97a8915347c76d05d6690dbdbcaf23d7f0d1fd
/chrome/browser/android/feed/v2/feed_stream_surface.cc
62dab953a952f69fad815d28aaeffa159db9f111
[ "BSD-3-Clause" ]
permissive
laien529/chromium
c9eb243957faabf1b477939e3b681df77f083a9a
3f767cdd5c82e9c78b910b022ffacddcb04d775a
refs/heads/master
2022-11-28T00:28:58.669067
2020-08-20T08:37:31
2020-08-20T08:37:31
288,961,699
1
0
BSD-3-Clause
2020-08-20T09:21:57
2020-08-20T09:21:56
null
UTF-8
C++
false
false
8,914
cc
// Copyright 2020 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/android/feed/v2/feed_stream_surface.h" #include <string> #include <vector> #include "base/android/callback_android.h" #include "base/android/jni_android.h" #include "base/android/jni_array.h" #include "base/android/jni_string.h" #include "base/strings/string_piece.h" #include "chrome/android/chrome_jni_headers/FeedStreamSurface_jni.h" #include "chrome/browser/android/feed/v2/feed_service_factory.h" #include "chrome/browser/profiles/profile.h" #include "chrome/browser/profiles/profile_manager.h" #include "components/feed/core/proto/v2/ui.pb.h" #include "components/feed/core/v2/public/feed_service.h" #include "components/feed/core/v2/public/feed_stream_api.h" #include "components/variations/variations_ids_provider.h" using base::android::JavaParamRef; using base::android::JavaRef; using base::android::ScopedJavaGlobalRef; using base::android::ScopedJavaLocalRef; using base::android::ToJavaByteArray; namespace feed { static jlong JNI_FeedStreamSurface_Init(JNIEnv* env, const JavaParamRef<jobject>& j_this) { return reinterpret_cast<intptr_t>(new FeedStreamSurface(j_this)); } static base::android::ScopedJavaLocalRef<jintArray> JNI_FeedStreamSurface_GetExperimentIds(JNIEnv* env) { auto* variations_ids_provider = variations::VariationsIdsProvider::GetInstance(); DCHECK(variations_ids_provider != nullptr); return base::android::ToJavaIntArray( env, variations_ids_provider ->GetVariationsVectorForWebPropertiesKeys()); } FeedStreamSurface::FeedStreamSurface(const JavaRef<jobject>& j_this) : feed_stream_api_(nullptr) { java_ref_.Reset(j_this); // TODO(iwells): check that this profile is okay to use. what about first run? Profile* profile = ProfileManager::GetLastUsedProfile(); if (!profile) return; feed_stream_api_ = FeedServiceFactory::GetForBrowserContext(profile)->GetStream(); } FeedStreamSurface::~FeedStreamSurface() { if (feed_stream_api_) feed_stream_api_->DetachSurface(this); } void FeedStreamSurface::StreamUpdate( const feedui::StreamUpdate& stream_update) { JNIEnv* env = base::android::AttachCurrentThread(); int32_t data_size = stream_update.ByteSize(); std::vector<uint8_t> data; data.resize(data_size); stream_update.SerializeToArray(data.data(), data_size); ScopedJavaLocalRef<jbyteArray> j_data = ToJavaByteArray(env, data.data(), data_size); Java_FeedStreamSurface_onStreamUpdated(env, java_ref_, j_data); } void FeedStreamSurface::ReplaceDataStoreEntry(base::StringPiece key, base::StringPiece data) { JNIEnv* env = base::android::AttachCurrentThread(); Java_FeedStreamSurface_replaceDataStoreEntry( env, java_ref_, base::android::ConvertUTF8ToJavaString(env, key), base::android::ToJavaByteArray( env, reinterpret_cast<const uint8_t*>(data.data()), data.size())); } void FeedStreamSurface::RemoveDataStoreEntry(base::StringPiece key) { JNIEnv* env = base::android::AttachCurrentThread(); Java_FeedStreamSurface_removeDataStoreEntry( env, java_ref_, base::android::ConvertUTF8ToJavaString(env, key)); } void FeedStreamSurface::LoadMore(JNIEnv* env, const JavaParamRef<jobject>& obj, const JavaParamRef<jobject>& callback_obj) { feed_stream_api_->LoadMore( GetSurfaceId(), base::BindOnce(&base::android::RunBooleanCallbackAndroid, ScopedJavaGlobalRef<jobject>(callback_obj))); } void FeedStreamSurface::ProcessThereAndBackAgain( JNIEnv* env, const JavaParamRef<jobject>& obj, const JavaParamRef<jbyteArray>& data) { std::string data_string; base::android::JavaByteArrayToString(env, data, &data_string); feed_stream_api_->ProcessThereAndBackAgain(data_string); } void FeedStreamSurface::ProcessViewAction( JNIEnv* env, const base::android::JavaParamRef<jobject>& obj, const base::android::JavaParamRef<jbyteArray>& data) { std::string data_string; base::android::JavaByteArrayToString(env, data, &data_string); feed_stream_api_->ProcessViewAction(data_string); } int FeedStreamSurface::ExecuteEphemeralChange( JNIEnv* env, const JavaParamRef<jobject>& obj, const JavaParamRef<jbyteArray>& data) { std::string data_string; base::android::JavaByteArrayToString(env, data, &data_string); return feed_stream_api_->CreateEphemeralChangeFromPackedData(data_string) .GetUnsafeValue(); } void FeedStreamSurface::CommitEphemeralChange(JNIEnv* env, const JavaParamRef<jobject>& obj, int change_id) { feed_stream_api_->CommitEphemeralChange(EphemeralChangeId(change_id)); } void FeedStreamSurface::DiscardEphemeralChange(JNIEnv* env, const JavaParamRef<jobject>& obj, int change_id) { feed_stream_api_->RejectEphemeralChange(EphemeralChangeId(change_id)); } void FeedStreamSurface::SurfaceOpened(JNIEnv* env, const JavaParamRef<jobject>& obj) { if (feed_stream_api_ && !attached_) { attached_ = true; feed_stream_api_->AttachSurface(this); } } void FeedStreamSurface::SurfaceClosed(JNIEnv* env, const JavaParamRef<jobject>& obj) { if (feed_stream_api_ && attached_) { attached_ = false; feed_stream_api_->DetachSurface(this); } } void FeedStreamSurface::ReportOpenAction( JNIEnv* env, const JavaParamRef<jobject>& obj, const JavaParamRef<jstring>& slice_id) { feed_stream_api_->ReportOpenAction( base::android::ConvertJavaStringToUTF8(env, slice_id)); } void FeedStreamSurface::ReportOpenInNewTabAction( JNIEnv* env, const JavaParamRef<jobject>& obj, const JavaParamRef<jstring>& slice_id) { feed_stream_api_->ReportOpenInNewTabAction( base::android::ConvertJavaStringToUTF8(env, slice_id)); } void FeedStreamSurface::ReportOpenInNewIncognitoTabAction( JNIEnv* env, const JavaParamRef<jobject>& obj) { feed_stream_api_->ReportOpenInNewIncognitoTabAction(); } void FeedStreamSurface::ReportSliceViewed( JNIEnv* env, const JavaParamRef<jobject>& obj, const JavaParamRef<jstring>& slice_id) { feed_stream_api_->ReportSliceViewed( GetSurfaceId(), base::android::ConvertJavaStringToUTF8(env, slice_id)); } void FeedStreamSurface::ReportFeedViewed( JNIEnv* env, const base::android::JavaParamRef<jobject>& obj) { feed_stream_api_->ReportFeedViewed(GetSurfaceId()); } void FeedStreamSurface::ReportSendFeedbackAction( JNIEnv* env, const JavaParamRef<jobject>& obj) { feed_stream_api_->ReportSendFeedbackAction(); } void FeedStreamSurface::ReportLearnMoreAction( JNIEnv* env, const JavaParamRef<jobject>& obj) { feed_stream_api_->ReportLearnMoreAction(); } void FeedStreamSurface::ReportDownloadAction(JNIEnv* env, const JavaParamRef<jobject>& obj) { feed_stream_api_->ReportDownloadAction(); } void FeedStreamSurface::ReportNavigationStarted( JNIEnv* env, const JavaParamRef<jobject>& obj) { feed_stream_api_->ReportNavigationStarted(); } void FeedStreamSurface::ReportPageLoaded(JNIEnv* env, const JavaParamRef<jobject>& obj, const JavaParamRef<jstring>& url, jboolean in_new_tab) { feed_stream_api_->ReportPageLoaded(); } void FeedStreamSurface::ReportRemoveAction(JNIEnv* env, const JavaParamRef<jobject>& obj) { feed_stream_api_->ReportRemoveAction(); } void FeedStreamSurface::ReportNotInterestedInAction( JNIEnv* env, const JavaParamRef<jobject>& obj) { feed_stream_api_->ReportNotInterestedInAction(); } void FeedStreamSurface::ReportManageInterestsAction( JNIEnv* env, const JavaParamRef<jobject>& obj) { feed_stream_api_->ReportManageInterestsAction(); } void FeedStreamSurface::ReportContextMenuOpened( JNIEnv* env, const JavaParamRef<jobject>& obj) { feed_stream_api_->ReportContextMenuOpened(); } void FeedStreamSurface::ReportStreamScrolled(JNIEnv* env, const JavaParamRef<jobject>& obj, int distance_dp) { feed_stream_api_->ReportStreamScrolled(distance_dp); } void FeedStreamSurface::ReportStreamScrollStart( JNIEnv* env, const JavaParamRef<jobject>& obj) { feed_stream_api_->ReportStreamScrollStart(); } } // namespace feed
[ "commit-bot@chromium.org" ]
commit-bot@chromium.org
23ebaeb2b367d26f500979dd624ae0d7b311ee57
80bbbd89d103a5341db352fed64b43a5586008b4
/ProjectRPG.Jackson_County/maverick/gui/controls/ctrlCombo.cpp
152fdd48710b9fb12d814f186d9b566a148fd74b
[]
no_license
Tobinat/http-project-rpg.de
e9083a6557eeec31daf8bc84a142c6c024cf17b4
14abad48844ab1e778d7f9397ccca03172573ff8
refs/heads/master
2022-10-16T20:14:03.318015
2020-06-08T14:55:31
2020-06-08T14:55:31
56,940,792
6
3
null
null
null
null
UTF-8
C++
false
false
3,133
cpp
class MAV_ctrlCombo: MAV_ctrlDefaultText { type = CT_COMBO; // Type style = ST_LEFT + LB_TEXTURES + ST_NO_RECT; // Style colorBackground[] = {0.05,0.05,0.05,1}; // Fill color colorSelectBackground[] = {COLOR_ACTIVE_RGBA}; // Selected item fill color colorText[] = {COLOR_TEXT_RGBA}; // Text and frame color colorDisabled[] = {COLOR_TEXT_RGB,0.25}; // Disabled text color colorSelect[] = {0,0,0,1}; // Text selection color colorTextRight[] = {1,1,1,1}; //Color of text on the right when item is unselected colorSelectRight[] = {1,1,1,0.25}; //First color of text on the right when item is selected colorSelect2Right[] = {1,1,1,1}; //Second color of text on the right when item is selected colorPicture[] = {1,1,1,1}; // Picture color colorPictureSelected[] = {1,1,1,1}; // Selected picture color colorPictureDisabled[] = {1,1,1,0.25}; // Disabled picture color colorPictureRight[] = {1,1,1,1}; //Color of picture on the right when item is unselected colorPictureRightSelected[] = {1,1,1,1}; //Color of picture on the right when item is selected colorPictureRightDisabled[] = {1,1,1,0.25}; //Color of picture on the right when ListBox is disabled arrowEmpty = "\a3\3DEN\Data\Controls\ctrlCombo\arrowEmpty_ca.paa"; // Expand arrow arrowFull = "\a3\3DEN\Data\Controls\ctrlCombo\arrowFull_ca.paa"; // Collapse arrow wholeHeight = 12 * SIZE_M * GRID_H; // Maximum height of expanded box (including the control height) maxHistoryDelay = 1; // Time since last keyboard type search to reset it soundExpand[] = {"\A3\ui_f\data\sound\RscCombo\soundExpand",0.1,1}; // Sound played when the list is expanded soundCollapse[] = {"\A3\ui_f\data\sound\RscCombo\soundCollapse",0.1,1}; // Sound played when the list is collapsed soundSelect[] = {"\A3\ui_f\data\sound\RscCombo\soundSelect",0.1,1}; // Sound played when an item is selected // Scrollbar configuration (applied only when LB_TEXTURES style is used) class ComboScrollBar { width = 0; // Unknown? height = 0; // Unknown? scrollSpeed = 0.01; // Unknown? arrowEmpty = "\a3\3DEN\Data\Controls\ctrlDefault\arrowEmpty_ca.paa"; // Arrow arrowFull = "\a3\3DEN\Data\Controls\ctrlDefault\arrowFull_ca.paa"; // Arrow when clicked on border = "\a3\3DEN\Data\Controls\ctrlDefault\border_ca.paa"; // Slider background (stretched vertically) thumb = "\a3\3DEN\Data\Controls\ctrlDefault\thumb_ca.paa"; // Dragging element (stretched vertically) color[] = {1,1,1,1}; // Scrollbar color }; onCanDestroy = ""; onDestroy = ""; onSetFocus = ""; onKillFocus = ""; onKeyDown = ""; onKeyUp = ""; onMouseButtonDown = ""; onMouseButtonUp = ""; onMouseButtonClick = ""; onMouseButtonDblClick = ""; onMouseZChanged = ""; onMouseMoving = ""; onMouseHolding = ""; onLBSelChanged = ""; }; class MAV_ctrlComboToolbar: MAV_ctrlCombo { colorBackground[] = {0.05,0.05,0.05,1}; // Fill color colorSelectBackground[] = {COLOR_ACTIVE_RGBA}; // Selected item fill color arrowEmpty = "\a3\3DEN\Data\Controls\ctrlCombo\arrowEmptyToolbar_ca.paa"; arrowFull = "\a3\3DEN\Data\Controls\ctrlCombo\arrowEmptyToolbar_ca.paa"; wholeHeight = 12 * SIZE_M * GRID_H; };
[ "timebirds@gmx.de" ]
timebirds@gmx.de
356642e3b50ef1049f20bd7480cbcde1b96406ac
33d9fb53e5e5ec22dd8f7336399a4d60c6987f7b
/zImprovedArmor/ZenGin/Gothic_I_Addon/API/oMobInter.h
6213acb16b4dcafca448e38fd40923287b764593
[]
no_license
Gratt-5r2/zImprovedArmor
bae5dde5c0c1ae1b3614141d7592b8a73eee2a41
061915791032acfed45703284d2ccd5d394e4a88
refs/heads/master
2023-04-30T23:20:52.486636
2023-03-12T12:42:08
2023-03-12T12:42:08
332,370,109
1
2
null
2023-04-18T23:44:42
2021-01-24T04:54:39
C++
UTF-8
C++
false
false
28,084
h
๏ปฟ// Supported with union (c) 2018-2021 Union team #ifndef __OMOB_INTER_H__VER1__ #define __OMOB_INTER_H__VER1__ #include "oVob.h" #include "oItem.h" #include "oNpc.h" #include "zModel.h" namespace Gothic_I_Addon { // sizeof 5Ch struct TMobOptPos { public: zMAT4 trafo; // sizeof 40h offset 00h int distance; // sizeof 04h offset 40h oCNpc* npc; // sizeof 04h offset 44h zSTRING nodeName; // sizeof 14h offset 48h // user API #include "TMobOptPos.inl" }; // sizeof 168h class oCMOB : public oCVob { public: zCLASS_DECLARATION( oCMOB ) zSTRING name; // sizeof 14h offset 100h int hitp : 12; // sizeof 0Ch offset bit int damage : 12; // sizeof 0Ch offset bit int isDestroyed : 1; // sizeof 01h offset bit int moveable : 1; // sizeof 01h offset bit int takeable : 1; // sizeof 01h offset bit int focusOverride : 1; // sizeof 01h offset bit oTSndMaterial sndMat : 3; // sizeof 03h offset bit zSTRING visualDestroyed; // sizeof 14h offset 118h zSTRING ownerStr; // sizeof 14h offset 12Ch zSTRING ownerGuildStr; // sizeof 14h offset 140h int owner; // sizeof 04h offset 154h int ownerGuild; // sizeof 04h offset 158h int focusNameIndex; // sizeof 04h offset 15Ch zCList<zCVob> ignoreVobList; // sizeof 08h offset 160h zDefineInheritableCtor( oCMOB ) : zCtor( oCVob ) {} void oCMOB_OnInit() zCall( 0x006A8D90 ); oCMOB() : zCtor( oCVob ) zInit( oCMOB_OnInit() ); void SetMoveable( int ) zCall( 0x006A9430 ); int IsMoveable() zCall( 0x006A9460 ); void SetOwner( zSTRING const&, zSTRING const& ) zCall( 0x006A94D0 ); void SetOwner( int, int ) zCall( 0x006A96C0 ); int IsOwner( oCNpc* ) zCall( 0x006A9720 ); void Hit( int ) zCall( 0x006A9770 ); void InsertInIgnoreList( zCVob* ) zCall( 0x006A9A20 ); void RemoveFromIgnoreList( zCVob* ) zCall( 0x006A9A50 ); static zCObject* _CreateNewInstance() zCall( 0x006A5900 ); virtual zCClassDef* _GetClassDef() const zCall( 0x006A8EC0 ); virtual void Archive( zCArchiver& ) zCall( 0x006A9B00 ); virtual void Unarchive( zCArchiver& ) zCall( 0x006A9C40 ); virtual ~oCMOB() zCall( 0x006A8F00 ); virtual void OnDamage( zCVob*, zCVob*, float, int, zVEC3 const& ) zCall( 0x006A93F0 ); virtual void OnMessage( zCEventMessage*, zCVob* ) zCall( 0x006A9400 ); virtual int CanThisCollideWith( zCVob* ) zCall( 0x006A9AC0 ); virtual void SetVisual( zCVisual* ) zCall( 0x006A90A0 ); virtual int IsOwnedByGuild( int ) zCall( 0x006A96E0 ); virtual int IsOwnedByNpc( int ) zCall( 0x006A9700 ); virtual void GetSoundMaterial_AM( zCSoundManager::zTSndManMedium&, oTSndMaterial&, int ) zCall( 0x006A94B0 ); virtual void SetSoundMaterial( oTSndMaterial ) zCall( 0x006A9470 ); virtual oTSndMaterial GetSoundMaterial() zCall( 0x006A94A0 ); virtual void SetName( zSTRING const& ) zCall( 0x006A90C0 ); virtual zSTRING GetName() zCall( 0x006A90E0 ); virtual zCModel* GetModel() zCall( 0x006A9410 ); virtual zSTRING GetScemeName() zCall( 0x006A91E0 ); virtual void Destroy() zCall( 0x006A9780 ); virtual int AllowDiscardingOfSubtree() zCall( 0x006AA2D0 ); // user API #include "oCMOB.inl" }; // sizeof 220h class oCMobInter : public oCMOB { public: zCLASS_DECLARATION( oCMobInter ) enum TMobInterDirection { MOBINTER_DIRECTION_NONE, MOBINTER_DIRECTION_UP, MOBINTER_DIRECTION_DOWN }; zCList<TMobOptPos> optimalPosList; // sizeof 08h offset 168h zSTRING triggerTarget; // sizeof 14h offset 170h zSTRING useWithItem; // sizeof 14h offset 184h zSTRING sceme; // sizeof 14h offset 198h zSTRING conditionFunc; // sizeof 14h offset 1ACh zSTRING onStateFuncName; // sizeof 14h offset 1C0h int state; // sizeof 04h offset 1D4h int state_num; // sizeof 04h offset 1D8h int state_target; // sizeof 04h offset 1DCh int rewind; // sizeof 04h offset 1E0h zVEC3 lastHeading; // sizeof 0Ch offset 1E4h int mobStateAni; // sizeof 04h offset 1F0h int npcStateAni; // sizeof 04h offset 1F4h int npcsMax : 8; // sizeof 08h offset bit int npcsNeeded : 8; // sizeof 08h offset bit int npcsCurrent : 8; // sizeof 08h offset bit int tmpState : 8; // sizeof 08h offset bit int tmpStateChanged; // sizeof 04h offset 1FCh TMobInterDirection Direction; // sizeof 04h offset 200h int onInterruptReturnToSlotPos : 1; // sizeof 01h offset bit zVEC3 startPos; // sizeof 0Ch offset 208h float aniCombHeight; // sizeof 04h offset 214h zCVob* inUseVob; // sizeof 04h offset 218h float timerEnd; // sizeof 04h offset 21Ch zDefineInheritableCtor( oCMobInter ) : zCtor( oCMOB ) {} void oCMobInter_OnInit() zCall( 0x006AA630 ); oCMobInter() : zCtor( oCMOB ) zInit( oCMobInter_OnInit() ); void SetTempState( int ) zCall( 0x006AABB0 ); int IsTempStateChanged() zCall( 0x006AABF0 ); void SetStateToTempState() zCall( 0x006AAC00 ); void SetMobBodyState( oCNpc* ) zCall( 0x006AAC90 ); int HasUseWithItem( oCNpc* ) zCall( 0x006AB1C0 ); void ScanIdealPositions() zCall( 0x006AB290 ); int GetFreePosition( oCNpc*, zVEC3& ) zCall( 0x006AB640 ); void SetHeading( oCNpc* ) zCall( 0x006AB990 ); void SetIdealPosition( oCNpc* ) zCall( 0x006AB9E0 ); void SendStateChange( int, int ) zCall( 0x006AC5B0 ); void SendEndInteraction( oCNpc*, int, int ) zCall( 0x006AC8C0 ); void StartTransitionAniNpc( oCNpc*, zSTRING const& ) zCall( 0x006AD920 ); int IsMultiMob() zCall( 0x006AE690 ); int IsAvailable( oCNpc* ) zCall( 0x006AE6B0 ); void MarkAsUsed( float, zCVob* ) zCall( 0x006AE710 ); static zCObject* _CreateNewInstance() zCall( 0x006A5B70 ); static int SetAllMobsToState( oCWorld*, zSTRING const&, int ) zCall( 0x006AA2E0 ); static int TraverseMobs( zCTree<zCVob>*, zSTRING const&, int, int ) zCall( 0x006AA300 ); static void TriggerAllMobsToTmpState( zCWorld* ) zCall( 0x006AA490 ); static void TraverseTriggerMobs( zCTree<zCVob>* ) zCall( 0x006AA560 ); virtual zCClassDef* _GetClassDef() const zCall( 0x006AA7B0 ); virtual void Archive( zCArchiver& ) zCall( 0x006AFC20 ); virtual void Unarchive( zCArchiver& ) zCall( 0x006AFCC0 ); virtual ~oCMobInter() zCall( 0x006AA7F0 ); virtual void OnTrigger( zCVob*, zCVob* ) zCall( 0x006ABF70 ); virtual void OnUntrigger( zCVob*, zCVob* ) zCall( 0x006AC2A0 ); virtual void OnDamage( zCVob*, zCVob*, float, int, zVEC3 const& ) zCall( 0x006AAFA0 ); virtual void OnMessage( zCEventMessage*, zCVob* ) zCall( 0x006AAFB0 ); virtual void OnTick() zCall( 0x006ABEE0 ); virtual void SetVisual( zCVisual* ) zCall( 0x006AAA10 ); virtual zSTRING const* GetTriggerTarget( int ) const zCall( 0x006A6060 ); virtual zSTRING GetScemeName() zCall( 0x006AB240 ); virtual int GetState() zCall( 0x006A5FF0 ); virtual int GetStateNum() zCall( 0x006A6000 ); virtual TMobInterDirection GetDirection() zCall( 0x006A6010 ); virtual void SetDirection( TMobInterDirection ) zCall( 0x006A6020 ); virtual void SetUseWithItem( zSTRING const& ) zCall( 0x006AB060 ); virtual int GetUseWithItem() zCall( 0x006AB1A0 ); virtual void Reset() zCall( 0x006ABC70 ); virtual void Interact( oCNpc*, int, int, int, int, int ) zCall( 0x006ACA60 ); virtual void EndInteraction( oCNpc*, int ) zCall( 0x006AF1D0 ); virtual void InterruptInteraction( oCNpc* ) zCall( 0x006AE470 ); virtual void StopInteraction( oCNpc* ) zCall( 0x006AF4B0 ); virtual int CanInteractWith( oCNpc* ) zCall( 0x006AE730 ); virtual int IsInteractingWith( oCNpc* ) zCall( 0x006AEDB0 ); virtual int IsOccupied() zCall( 0x006A6030 ); virtual int AI_UseMobToState( oCNpc*, int ) zCall( 0x006AF7D0 ); virtual int IsIn( int ) zCall( 0x006A6050 ); virtual int IsInState( oCNpc*, int ) zCall( 0x006AD2F0 ); virtual void StartInteraction( oCNpc* ) zCall( 0x006AEDE0 ); virtual void StartStateChange( oCNpc*, int, int ) zCall( 0x006AD670 ); virtual void CheckStateChange( oCNpc* ) zCall( 0x006ADC50 ); virtual int CanChangeState( oCNpc*, int, int ) zCall( 0x006AD420 ); virtual void GetTransitionNames( int, int, zSTRING&, zSTRING& ) zCall( 0x006ACDE0 ); virtual void OnBeginStateChange( oCNpc*, int, int ) zCall( 0x006AE400 ); virtual void OnEndStateChange( oCNpc*, int, int ) zCall( 0x006AE410 ); virtual void CallOnStateFunc( oCNpc*, int ) zCall( 0x006AE040 ); virtual void SendCallOnStateFunc( oCNpc*, int ) zCall( 0x006AE250 ); virtual TMobOptPos* SearchFreePosition( oCNpc*, float ) zCall( 0x006AB6C0 ); // user API #include "oCMobInter.inl" }; // sizeof 234h class oCMobBed : public oCMobInter { public: zCLASS_DECLARATION( oCMobBed ) zSTRING addName; // sizeof 14h offset 220h void oCMobBed_OnInit() zCall( 0x006B07B0 ); oCMobBed() : zCtor( oCMobInter ) zInit( oCMobBed_OnInit() ); static zCObject* _CreateNewInstance() zCall( 0x006A5E00 ); virtual zCClassDef* _GetClassDef() const zCall( 0x006A60A0 ); virtual ~oCMobBed() zCall( 0x006B09A0 ); virtual zSTRING GetScemeName() zCall( 0x006B0C40 ); virtual void StartInteraction( oCNpc* ) zCall( 0x006B0BC0 ); virtual void OnBeginStateChange( oCNpc*, int, int ) zCall( 0x006B0BD0 ); virtual void OnEndStateChange( oCNpc*, int, int ) zCall( 0x006B0BE0 ); virtual TMobOptPos* SearchFreePosition( oCNpc*, float ) zCall( 0x006B0CF0 ); // user API #include "oCMobBed.inl" }; // sizeof 220h class oCMobSwitch : public oCMobInter { public: zCLASS_DECLARATION( oCMobSwitch ) void oCMobSwitch_OnInit() zCall( 0x006B0E80 ); oCMobSwitch() : zCtor( oCMobInter ) zInit( oCMobSwitch_OnInit() ); static zCObject* _CreateNewInstance() zCall( 0x006A62B0 ); virtual zCClassDef* _GetClassDef() const zCall( 0x006A6400 ); virtual void Archive( zCArchiver& ) zCall( 0x006B11B0 ); virtual void Unarchive( zCArchiver& ) zCall( 0x006B1250 ); virtual ~oCMobSwitch() zCall( 0x006B0FA0 ); // user API #include "oCMobSwitch.inl" }; // sizeof 228h class oCMobItemSlot : public oCMobInter { public: zCLASS_DECLARATION( oCMobItemSlot ) oCItem* insertedItem; // sizeof 04h offset 220h int removeable; // sizeof 04h offset 224h void oCMobItemSlot_OnInit() zCall( 0x006B5B00 ); oCMobItemSlot() : zCtor( oCMobInter ) zInit( oCMobItemSlot_OnInit() ); static zCObject* _CreateNewInstance() zCall( 0x006A7EE0 ); virtual zCClassDef* _GetClassDef() const zCall( 0x006A7FA0 ); virtual void Archive( zCArchiver& ) zCall( 0x006B6140 ); virtual void Unarchive( zCArchiver& ) zCall( 0x006B6210 ); virtual ~oCMobItemSlot() zCall( 0x006B5B50 ); virtual int GetUseWithItem() zCall( 0x006B5D60 ); virtual int CanInteractWith( oCNpc* ) zCall( 0x006B5DA0 ); virtual int IsIn( int ) zCall( 0x006B6110 ); virtual oCItem* GetInsertedItem() zCall( 0x006B5DC0 ); virtual int PlaceItem( oCItem* ) zCall( 0x006B5DD0 ); virtual oCItem* RemoveItem() zCall( 0x006B60D0 ); // user API #include "oCMobItemSlot.inl" }; // sizeof 24Ch class oCMobLockable : public oCMobInter { public: zCLASS_DECLARATION( oCMobLockable ) int locked : 1; // sizeof 01h offset bit int autoOpen : 1; // sizeof 01h offset bit int pickLockNr : 30; // sizeof 1Eh offset bit zSTRING keyInstance; // sizeof 14h offset 224h zSTRING pickLockStr; // sizeof 14h offset 238h zDefineInheritableCtor( oCMobLockable ) : zCtor( oCMobInter ) {} void oCMobLockable_OnInit() zCall( 0x006B1300 ); oCMobLockable() : zCtor( oCMobInter ) zInit( oCMobLockable_OnInit() ); int CanOpen( oCNpc* ) zCall( 0x006B1F20 ); virtual zCClassDef* _GetClassDef() const zCall( 0x006A6A00 ); virtual void Archive( zCArchiver& ) zCall( 0x006B2FE0 ); virtual void Unarchive( zCArchiver& ) zCall( 0x006B30D0 ); virtual ~oCMobLockable() zCall( 0x006B14D0 ); virtual void OnMessage( zCEventMessage*, zCVob* ) zCall( 0x006A6CB0 ); virtual void Interact( oCNpc*, int, int, int, int, int ) zCall( 0x006B16F0 ); virtual int CanInteractWith( oCNpc* ) zCall( 0x006B16C0 ); virtual int CanChangeState( oCNpc*, int, int ) zCall( 0x006B1D00 ); virtual void OnEndStateChange( oCNpc*, int, int ) zCall( 0x006B1D50 ); virtual void SetLocked( int ) zCall( 0x006A6A10 ); virtual void SetKeyInstance( zSTRING const& ) zCall( 0x006A6A30 ); virtual void SetPickLockStr( zSTRING const& ) zCall( 0x006A6B70 ); virtual void Open( oCNpc* ) zPureCall; virtual void Close( oCNpc* ) zPureCall; virtual void Lock( oCNpc* ) zCall( 0x006B2DB0 ); virtual void Unlock( oCNpc*, int ) zCall( 0x006B25E0 ); virtual int PickLock( oCNpc*, char ) zCall( 0x006B2260 ); // user API #include "oCMobLockable.inl" }; // sizeof 270h class oCMobContainer : public oCMobLockable { public: zCLASS_DECLARATION( oCMobContainer ) zSTRING contains; // sizeof 14h offset 24Ch oCItemContainer* items; // sizeof 04h offset 260h zCListSort<oCItem> containList; // sizeof 0Ch offset 264h void oCMobContainer_OnInit() zCall( 0x006B31E0 ); oCMobContainer() : zCtor( oCMobLockable ) zInit( oCMobContainer_OnInit() ); static zCObject* _CreateNewInstance() zCall( 0x006A6810 ); virtual zCClassDef* _GetClassDef() const zCall( 0x006A6D80 ); virtual void Archive( zCArchiver& ) zCall( 0x006B40C0 ); virtual void Unarchive( zCArchiver& ) zCall( 0x006B4260 ); virtual ~oCMobContainer() zCall( 0x006B33B0 ); virtual void OnMessage( zCEventMessage*, zCVob* ) zCall( 0x006B35E0 ); virtual void Destroy() zCall( 0x006B36E0 ); virtual void Reset() zCall( 0x006B38A0 ); virtual int IsIn( int ) zCall( 0x006B3F60 ); virtual void Open( oCNpc* ) zCall( 0x006B3FA0 ); virtual void Close( oCNpc* ) zCall( 0x006B4080 ); virtual void Insert( oCItem* ) zCall( 0x006B3A00 ); virtual void Remove( oCItem* ) zCall( 0x006B3A30 ); virtual oCItem* Remove( oCItem*, int ) zCall( 0x006B3AB0 ); virtual void CreateContents( zSTRING const& ) zCall( 0x006B3BC0 ); // user API #include "oCMobContainer.inl" }; // sizeof 260h class oCMobDoor : public oCMobLockable { public: zCLASS_DECLARATION( oCMobDoor ) zSTRING addName; // sizeof 14h offset 24Ch void oCMobDoor_OnInit() zCall( 0x006B44E0 ); oCMobDoor() : zCtor( oCMobLockable ) zInit( oCMobDoor_OnInit() ); static zCObject* _CreateNewInstance() zCall( 0x006A7690 ); virtual zCClassDef* _GetClassDef() const zCall( 0x006A7880 ); virtual ~oCMobDoor() zCall( 0x006B46F0 ); virtual zSTRING GetScemeName() zCall( 0x006B48B0 ); virtual TMobOptPos* SearchFreePosition( oCNpc*, float ) zCall( 0x006B4960 ); virtual void Open( oCNpc* ) zCall( 0x006A7890 ); virtual void Close( oCNpc* ) zCall( 0x006A78A0 ); // user API #include "oCMobDoor.inl" }; // sizeof 24Ch class oCMobFire : public oCMobInter { public: zCLASS_DECLARATION( oCMobFire ) zSTRING fireSlot; // sizeof 14h offset 220h zSTRING fireVobtreeName; // sizeof 14h offset 234h zCVob* fireVobtree; // sizeof 04h offset 248h void oCMobFire_OnInit() zCall( 0x006AFD70 ); oCMobFire() : zCtor( oCMobInter ) zInit( oCMobFire_OnInit() ); void DeleteEffects() zCall( 0x006B0180 ); static zCObject* _CreateNewInstance() zCall( 0x006A7AB0 ); virtual zCClassDef* _GetClassDef() const zCall( 0x006A7CD0 ); virtual void Archive( zCArchiver& ) zCall( 0x006B05C0 ); virtual void Unarchive( zCArchiver& ) zCall( 0x006B06D0 ); virtual ~oCMobFire() zCall( 0x006AFF80 ); virtual void OnTrigger( zCVob*, zCVob* ) zCall( 0x006B02B0 ); virtual void OnUntrigger( zCVob*, zCVob* ) zCall( 0x006B04F0 ); virtual void OnDamage( zCVob*, zCVob*, float, int, zVEC3 const& ) zCall( 0x006B01D0 ); virtual void OnEndStateChange( oCNpc*, int, int ) zCall( 0x006B0220 ); virtual void PreSave() zCall( 0x006B0560 ); virtual void PostSave() zCall( 0x006B06A0 ); // user API #include "oCMobFire.inl" }; // sizeof 220h class oCMobWheel : public oCMobInter { public: zCLASS_DECLARATION( oCMobWheel ) void oCMobWheel_OnInit() zCall( 0x006B4AF0 ); oCMobWheel() : zCtor( oCMobInter ) zInit( oCMobWheel_OnInit() ); static zCObject* _CreateNewInstance() zCall( 0x006A6F90 ); virtual zCClassDef* _GetClassDef() const zCall( 0x006A70F0 ); virtual ~oCMobWheel() zCall( 0x006B4E80 ); virtual void OnTrigger( zCVob*, zCVob* ) zCall( 0x006B4C20 ); virtual void OnUntrigger( zCVob*, zCVob* ) zCall( 0x006B4D40 ); virtual void Interact( oCNpc*, int, int, int, int, int ) zCall( 0x006B4E50 ); // user API #include "oCMobWheel.inl" }; // sizeof 228h class oCMobLadder : public oCMobInter { public: zCLASS_DECLARATION( oCMobLadder ) int Interacting; // sizeof 04h offset 220h int PrevAction; // sizeof 04h offset 224h void oCMobLadder_OnInit() zCall( 0x006B5090 ); oCMobLadder() : zCtor( oCMobInter ) zInit( oCMobLadder_OnInit() ); static zCObject* _CreateNewInstance() zCall( 0x006A7300 ); virtual zCClassDef* _GetClassDef() const zCall( 0x006A7470 ); virtual ~oCMobLadder() zCall( 0x006B51D0 ); virtual int DoFocusCheckBBox() zCall( 0x006A7480 ); virtual void Interact( oCNpc*, int, int, int, int, int ) zCall( 0x006B5690 ); virtual void EndInteraction( oCNpc*, int ) zCall( 0x006B5AE0 ); virtual int CanInteractWith( oCNpc* ) zCall( 0x006B5610 ); virtual void StartInteraction( oCNpc* ) zCall( 0x006B53E0 ); virtual int CanChangeState( oCNpc*, int, int ) zCall( 0x006B55C0 ); virtual TMobOptPos* SearchFreePosition( oCNpc*, float ) zCall( 0x006B5620 ); // user API #include "oCMobLadder.inl" }; // sizeof 100h class oCDummyVobGenerator : public zCVob { public: zCLASS_DECLARATION( oCDummyVobGenerator ) void oCDummyVobGenerator_OnInit() zCall( 0x006B6300 ); oCDummyVobGenerator() : zCtor( zCVob ) zInit( oCDummyVobGenerator_OnInit() ); static zCObject* _CreateNewInstance() zCall( 0x006A81B0 ); virtual zCClassDef* _GetClassDef() const zCall( 0x006A8290 ); virtual ~oCDummyVobGenerator() zCall( 0x006A82D0 ); virtual void OnTrigger( zCVob*, zCVob* ) zCall( 0x006B6370 ); // user API #include "oCDummyVobGenerator.inl" }; // sizeof 38h class oCMobMsg : public zCEventMessage { public: zCLASS_DECLARATION( oCMobMsg ) enum TMobMsgSubType { EV_STARTINTERACTION, EV_STARTSTATECHANGE, EV_ENDINTERACTION, EV_UNLOCK, EV_LOCK, EV_CALLSCRIPT }; oCNpc* npc; // sizeof 04h offset 2Ch int from; // sizeof 04h offset 30h int to : 31; // sizeof 1Fh offset bit int playAni : 1; // sizeof 01h offset bit void oCMobMsg_OnInit( TMobMsgSubType, oCNpc* ) zCall( 0x006A86B0 ); void oCMobMsg_OnInit() zCall( 0x006A8830 ); void oCMobMsg_OnInit( TMobMsgSubType, oCNpc*, int ) zCall( 0x006A8970 ); oCMobMsg( TMobMsgSubType a0, oCNpc* a1 ) : zCtor( zCEventMessage ) zInit( oCMobMsg_OnInit( a0, a1 )); oCMobMsg() : zCtor( zCEventMessage ) zInit( oCMobMsg_OnInit() ); oCMobMsg( TMobMsgSubType a0, oCNpc* a1, int a2 ) : zCtor( zCEventMessage ) zInit( oCMobMsg_OnInit( a0, a1, a2 )); static zCObject* _CreateNewInstance() zCall( 0x006A8520 ); virtual zCClassDef* _GetClassDef() const zCall( 0x006A8690 ); virtual ~oCMobMsg() zCall( 0x006A8820 ); virtual int IsNetRelevant() zCall( 0x006A86A0 ); virtual int MD_GetNumOfSubTypes() zCall( 0x006A8BE0 ); virtual zSTRING MD_GetSubTypeString( int ) zCall( 0x006A8BF0 ); virtual void Pack( zCBuffer&, zCEventManager* ) zCall( 0x006A8AC0 ); virtual void Unpack( zCBuffer&, zCEventManager* ) zCall( 0x006A8B40 ); // user API #include "oCMobMsg.inl" }; } // namespace Gothic_I_Addon #endif // __OMOB_INTER_H__VER1__
[ "amax96@yandex.ru" ]
amax96@yandex.ru
6893fc269d432c947e51eb02f4a4e2338b90b4cd
531618790c0b413e53c1058cacf128e328850e52
/tasutil.h
3414ab32bfad2c21fd0e552e52e36a2bdf43c52b
[]
no_license
sgnoohc/Commissioning2017
aa99c2bd6c173fb2097e3b3a3e5e9c3d3bfc1464
78ac4cffc7a17d177b9e96e466adb0fc0b8b3aee
refs/heads/master
2020-12-03T09:28:07.304991
2017-06-28T03:01:37
2017-06-28T03:06:59
95,622,918
0
0
null
null
null
null
UTF-8
C++
false
false
17,188
h
// . // ..: P. Chang, philip@physics.ucsd.edu // N.B.: I kept a very compact style in listing the functions in order to easily move around with {,} in vim. // Therefore, if one wants to add new feature please make the function extremely short as possible. // If the function is too long, maybe it doesn't belong here! #ifndef tasutil_h #define tasutil_h // C #include <map> #include <vector> #include <stdarg.h> #include <functional> // ROOT #include "TChain.h" #include "TFile.h" #include "TTree.h" #include "TChainElement.h" #include "TTreeCache.h" #include "TSystem.h" #include "TLorentzVector.h" #include "Math/LorentzVector.h" namespace TasUtil { /////////////////////////////////////////////////////////////////////////////////////////////// // Printing functions /////////////////////////////////////////////////////////////////////////////////////////////// // No namespace given in order to minimize typing // (e.g. TasUtil::print v. TasUtil::NAMESPACE::print) void print (TString msg="", const char* fname="", int flush_before=0, int flush_after=0); void error (TString msg, const char* fname, int is_error=1); void warning (TString msg, const char* fname); void announce(TString msg="", int quiet=0); void start (int quiet=0, int sleep_time=0); void exit (int quiet=0); /////////////////////////////////////////////////////////////////////////////////////////////// // Particle class /////////////////////////////////////////////////////////////////////////////////////////////// // This class holds every information about a "particle". // The class has a generic data structure using std::map<TString, 'data'>. // User can use it for whatever reason. class Particle { enum VarType { kINT = 0, kFLT = 1, kTLV = 2, kSTR = 3, kNON = -1 }; typedef std::vector<TString> vecStr; typedef std::map<TString, VarType> mapTyp; typedef std::map<TString, float> mapFlt; typedef std::map<TString, int> mapInt; typedef std::map<TString, TLorentzVector> mapTLV; typedef std::map<TString, TString> mapStr; private: ////////////////////////////////////////////////////////////////////////////////////////////////// // Members ////////////////////////////////////////////////////////////////////////////////////////////////// // Vector to hold the types vecStr var_Nam; mapStr var_Ttl; mapTyp var_Typ; mapFlt var_Flt; mapInt var_Int; mapTLV var_TLV; mapStr var_Str; public: ////////////////////////////////////////////////////////////////////////////////////////////////// // Functions ////////////////////////////////////////////////////////////////////////////////////////////////// Particle(); ~Particle(); bool varExists(TString name); void createFltVar(TString name, TString title=""); void createIntVar(TString name, TString title=""); void createTLVVar(TString name, TString title=""); void createStrVar(TString name, TString title=""); static void printError (TString name, TString msg, TString action, VarType type=kNON); static void printAlreadyExistsError(TString name, TString action, VarType type=kNON); static void printOutOfRangeError (TString name, TString action, VarType type=kNON); void setFltVar(TString name, float var); void setIntVar(TString name, int var); void setStrVar(TString name, TString var); void setTLVVar(TString name, TLorentzVector var); const float& getFltVar(TString name) const; const int& getIntVar(TString name) const; const TLorentzVector& getTLVVar(TString name) const; const TString& getStrVar(TString name) const; VarType getType(TString name); void print(); void printFltVar(TString name); void printIntVar(TString name); void printTLVVar(TString name); void printStrVar(TString name); }; typedef std::vector<Particle> Particles; /////////////////////////////////////////////////////////////////////////////////////////////// // Data extractor /////////////////////////////////////////////////////////////////////////////////////////////// Particles get(std::function<int()>, std::function<bool(int)>, std::function<Particle(int)>); /////////////////////////////////////////////////////////////////////////////////////////////// // Math functions /////////////////////////////////////////////////////////////////////////////////////////////// namespace Math { // Short hand for float LorentzVector typedef ROOT::Math::LorentzVector<ROOT::Math::PxPyPzE4D<float> > LorentzVector; /////////////////////////////////////////////////////////////////////////////////////////// // TLorentzVector related operations /////////////////////////////////////////////////////////////////////////////////////////// // Create TLVs TLorentzVector TLV(LorentzVector); TLorentzVector TLVXYZE(float, float, float, float); TLorentzVector TLVPtEtaPhiM(float, float, float, float); TLorentzVector TLVPtEtaPhiE(float, float, float, float); TLorentzVector TLVMET(float, float); // The custom MT function, not from the TLorentzVector member function float MT (TLorentzVector, TLorentzVector); // TLorentzVector float DEta(TLorentzVector a, TLorentzVector b); float DPhi(TLorentzVector a, TLorentzVector b); float DR (TLorentzVector a, TLorentzVector b); float DPt (TLorentzVector a, TLorentzVector b); float Mass(TLorentzVector a, TLorentzVector b); float Pt (TLorentzVector a, TLorentzVector b); float MT (TLorentzVector p4 , float met, float met_phi); /////////////////////////////////////////////////////////////////////////////////////////// // LorentzVector related operations /////////////////////////////////////////////////////////////////////////////////////////// // Creating LorentzVector LorentzVector LV(TLorentzVector); LorentzVector LVXYZE(float, float, float, float); LorentzVector METLV(float, float); // LorentzVector float DEta(LorentzVector a, float b); float DPhi(LorentzVector a, float b); float DEta(LorentzVector a, LorentzVector b); float DPhi(LorentzVector a, LorentzVector b); float DR (LorentzVector a, LorentzVector b); float DPt (LorentzVector a, LorentzVector b); float Mass(LorentzVector a, LorentzVector b); float Pt (LorentzVector a, LorentzVector b); float MT (LorentzVector a, LorentzVector b); float MT (LorentzVector a, float met, float met_phi); } /////////////////////////////////////////////////////////////////////////////////////////////// // Looper class /////////////////////////////////////////////////////////////////////////////////////////////// // NOTE: This class assumes accessing TTree in the SNT style which uses the following, // https://github.com/cmstas/Software/blob/master/makeCMS3ClassFiles/makeCMS3ClassFiles.C // It is assumed that the "template" class passed to this class will have // 1. "Init(TTree*)" // 2. "GetEntry(uint)" // 3. "progress(nevtProc'ed, total)" template <class TREECLASS> class Looper { // Members TChain* tchain; TObjArray *listOfFiles; TObjArrayIter* fileIter; TFile* tfile; TTree* ttree; unsigned int nEventsTotalInChain; unsigned int nEventsTotalInTree; int nEventsToProcess; unsigned int nEventsProcessed; unsigned int indexOfEventInTTree; bool fastmode; TREECLASS* treeclass; public: // Functions Looper(TChain* chain=0, TREECLASS* treeclass=0, int nEventsToProcess=-1); ~Looper(); void setTChain(TChain* c); void setTreeClass(TREECLASS* t); bool allEventsInTreeProcessed(); bool allEventsInChainProcessed(); bool nextEvent(); TTree* getTree() { return ttree; } unsigned int getNEventsProcessed() { return nEventsProcessed; } private: void setFileList(); void setNEventsToProcess(); bool nextTree(); bool nextEventInTree(); }; } /////////////////////////////////////////////////////////////////////////////////////////////////// // // // Event Looper (Looper) class template implementation // // /////////////////////////////////////////////////////////////////////////////////////////////////// // It's easier to put the implementation in the header file to avoid compilation issues. //_________________________________________________________________________________________________ template <class TREECLASS> TasUtil::Looper<TREECLASS>::Looper(TChain* c, TREECLASS* t, int nevtToProc) : tchain(0), listOfFiles(0), fileIter(0), tfile(0), ttree(0), nEventsTotalInChain(0), nEventsTotalInTree(0), nEventsToProcess(nevtToProc), nEventsProcessed(0), indexOfEventInTTree(0), fastmode(true), treeclass(0) { print("Start EventLooping"); start(); if (c) setTChain(c); if (t) setTreeClass(t); } //_________________________________________________________________________________________________ template <class TREECLASS> TasUtil::Looper<TREECLASS>::~Looper() { print("Finished EventLooping"); exit(); if (fileIter) delete fileIter; if (tfile) delete tfile; } //_________________________________________________________________________________________________ template <class TREECLASS> void TasUtil::Looper<TREECLASS>::setTChain(TChain* c) { if (c) { tchain = c; setNEventsToProcess(); setFileList(); } else { error("You provided a null TChain pointer!", __FUNCTION__); } } //_________________________________________________________________________________________________ template <class TREECLASS> void TasUtil::Looper<TREECLASS>::setTreeClass(TREECLASS* t) { if (t) { treeclass = t; } else { error("You provided a null TreeClass pointer!", __FUNCTION__); } } //_________________________________________________________________________________________________ template <class TREECLASS> bool TasUtil::Looper<TREECLASS>::nextTree() { if (!fileIter) error("fileIter not set but you are trying to access the next file", __FUNCTION__); // Get the TChainElement from TObjArrayIter. // If no more to run over, Next returns 0. TChainElement* chainelement = (TChainElement*) fileIter->Next(); if (chainelement) { // If there is already a TFile opened from previous iteration, close it. if (tfile) tfile->Close(); // Open up a new file tfile = new TFile(chainelement->GetTitle()); // Get the ttree ttree = (TTree*) tfile->Get(tchain->GetName()); if (!ttree) error("TTree is null!??", __FUNCTION__); // Set some fast mode stuff if (fastmode) TTreeCache::SetLearnEntries(10); if (fastmode) ttree->SetCacheSize(128*1024*1024); // Print some info to stdout announce("Working on " + TString(tfile->GetName()) + "/TTree:" + TString(ttree->GetName())); // Reset the nEventsTotalInTree in this tree nEventsTotalInTree = ttree->GetEntries(); // Reset the event index as we got a new ttree indexOfEventInTTree = 0; // Set the ttree to the TREECLASS treeclass->Init(ttree); // Return that I got a good one return true; } else { // Announce that we are done with this chain print("Done with all trees in this chain", __FUNCTION__); return false; } } //_________________________________________________________________________________________________ template <class TREECLASS> bool TasUtil::Looper<TREECLASS>::allEventsInTreeProcessed() { if (indexOfEventInTTree >= nEventsTotalInTree) return true; else return false; } //_________________________________________________________________________________________________ template <class TREECLASS> bool TasUtil::Looper<TREECLASS>::allEventsInChainProcessed() { if (nEventsProcessed >= (unsigned int) nEventsToProcess) return true; else return false; } //_________________________________________________________________________________________________ template <class TREECLASS> bool TasUtil::Looper<TREECLASS>::nextEventInTree() { // Sanity check before loading the next event. if (!ttree) error("current ttree not set!", __FUNCTION__); if (!tfile) error("current tfile not set!", __FUNCTION__); if (!fileIter) error("fileIter not set!", __FUNCTION__); // Check whether I processed everything if (allEventsInTreeProcessed()) return false; if (allEventsInChainProcessed()) return false; // if fast mode do some extra if (fastmode) ttree->LoadTree(indexOfEventInTTree); // Set the event index in TREECLASS treeclass->GetEntry(indexOfEventInTTree); // Print progress treeclass->progress(nEventsProcessed, nEventsToProcess); // Increment the counter for this ttree ++indexOfEventInTTree; // Increment the counter for the entire tchain ++nEventsProcessed; // If all fine return true return true; } //_________________________________________________________________________________________________ template <class TREECLASS> bool TasUtil::Looper<TREECLASS>::nextEvent() { // If no tree it means this is the beginning of the loop. if (!ttree) { // Load the next tree if it returns true, then proceed to next event in tree. while (nextTree()) { // If the next event in tree was successfully loaded return true, that it's good. if (nextEventInTree()) return true; // If the first event in this tree was not good, continue to the next tree else continue; } // If looping over all trees, we fail to find first event that's good, // return false and call it quits. // At this point it will exit the loop without processing any events. return false; } // If tree exists, it means that we're in the middle of a loop else { // If next event is successfully loaded proceed. if (nextEventInTree()) { return true; } // If next event is not loaded then check why. else { // If failed because it was the last event in the whole chain to process, exit the loop. // You're done! if (allEventsInChainProcessed()) { return false; } // If failed because it's last in the tree then load the next tree and the event else if (allEventsInTreeProcessed()) { // Load the next tree if it returns true, then proceed to next event in tree. while (nextTree()) { // If the next event in tree was successfully loaded return true, that it's good. if (nextEventInTree()) return true; // If the first event in this tree was not good, continue to the next tree else continue; } // If looping over all trees, we fail to find first event that's good, // return false and call it quits. // Again you're done! return false; } else { // Why are you even here? // spit error and return false to avoid warnings error("You should not be here! Please contact philip@physics.ucsd.edu", __FUNCTION__); return false; } } } } //_________________________________________________________________________________________________ template <class TREECLASS> void TasUtil::Looper<TREECLASS>::setFileList() { if (!fileIter) { listOfFiles = tchain->GetListOfFiles(); fileIter = new TObjArrayIter(listOfFiles); } } //_________________________________________________________________________________________________ template <class TREECLASS> void TasUtil::Looper<TREECLASS>::setNEventsToProcess() { if (tchain) { nEventsTotalInChain = tchain->GetEntries(); if (nEventsToProcess < 0) nEventsToProcess = nEventsTotalInChain; } } #endif
[ "sgnoohc@gmail.com" ]
sgnoohc@gmail.com
a436e945f51eb1ea5ed9b55c44e76454257be1b8
2e91124c2075645ea5dba7ab4a71f5e828089f6f
/components/content_capture/browser/content_capture_receiver_test.cc
a1356198a0e3c00a1d96f4898b017f6d28242925
[ "BSD-3-Clause" ]
permissive
gauravbdev/chromium
1b89959a4959024b14f7224d0fd661789e584f6e
31afd137ad035db152ca01a37983486bda915bd7
refs/heads/master
2023-03-16T04:33:20.171695
2019-10-03T15:14:05
2019-10-03T15:14:05
null
0
0
null
null
null
null
UTF-8
C++
false
false
26,206
cc
// Copyright 2019 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 "components/content_capture/browser/content_capture_receiver.h" #include <memory> #include <utility> #include "base/strings/utf_string_conversions.h" #include "base/task/post_task.h" #include "build/build_config.h" #include "components/content_capture/browser/content_capture_receiver_manager.h" #include "content/public/browser/content_browser_client.h" #include "content/public/browser/web_contents.h" #include "content/public/test/test_renderer_host.h" #include "testing/gtest/include/gtest/gtest.h" namespace content_capture { namespace { static const char kMainFrameUrl[] = "http://foo.com/main.html"; static const char kMainFrameUrl2[] = "http://foo.com/2.html"; static const char kChildFrameUrl[] = "http://foo.org/child.html"; // Fake ContentCaptureSender to call ContentCaptureReceiver mojom interface. class FakeContentCaptureSender { public: FakeContentCaptureSender() {} void DidCaptureContent(const ContentCaptureData& captured_content, bool first_data) { content_capture_receiver_->DidCaptureContent(captured_content, first_data); } void DidUpdateContent(const ContentCaptureData& captured_content) { content_capture_receiver_->DidUpdateContent(captured_content); } void DidRemoveContent(const std::vector<int64_t>& data) { content_capture_receiver_->DidRemoveContent(data); } mojo::PendingAssociatedReceiver<mojom::ContentCaptureReceiver> GetPendingAssociatedReceiver() { return content_capture_receiver_ .BindNewEndpointAndPassDedicatedReceiverForTesting(); } private: mojo::AssociatedRemote<mojom::ContentCaptureReceiver> content_capture_receiver_; }; class SessionRemovedTestHelper { public: void DidRemoveSession(const ContentCaptureSession& data) { removed_sessions_.push_back(data); } const std::vector<ContentCaptureSession>& removed_sessions() const { return removed_sessions_; } void Reset() { removed_sessions_.clear(); } private: std::vector<ContentCaptureSession> removed_sessions_; }; // The helper class implements ContentCaptureReceiverManager and keeps the // result for verification. class ContentCaptureReceiverManagerHelper : public ContentCaptureReceiverManager { public: static void Create(content::WebContents* web_contents, SessionRemovedTestHelper* session_removed_test_helper) { new ContentCaptureReceiverManagerHelper(web_contents, session_removed_test_helper); } ContentCaptureReceiverManagerHelper( content::WebContents* web_contents, SessionRemovedTestHelper* session_removed_test_helper) : ContentCaptureReceiverManager(web_contents), session_removed_test_helper_(session_removed_test_helper) {} void DidCaptureContent(const ContentCaptureSession& parent_session, const ContentCaptureData& data) override { parent_session_ = parent_session; captured_data_ = data; } void DidUpdateContent(const ContentCaptureSession& parent_session, const ContentCaptureData& data) override { updated_parent_session_ = parent_session; updated_data_ = data; } void DidRemoveContent(const ContentCaptureSession& session, const std::vector<int64_t>& ids) override { session_ = session; removed_ids_ = ids; } void DidRemoveSession(const ContentCaptureSession& data) override { if (session_removed_test_helper_) session_removed_test_helper_->DidRemoveSession(data); removed_sessions_.push_back(data); } bool ShouldCapture(const GURL& url) override { return false; } const ContentCaptureSession& parent_session() const { return parent_session_; } const ContentCaptureSession& updated_parent_session() const { return updated_parent_session_; } const ContentCaptureSession& session() const { return session_; } const ContentCaptureData& captured_data() const { return captured_data_; } const ContentCaptureData& updated_data() const { return updated_data_; } const std::vector<ContentCaptureSession>& removed_sessions() const { return removed_sessions_; } const std::vector<int64_t>& removed_ids() const { return removed_ids_; } void Reset() { removed_sessions_.clear(); } ContentCaptureReceiver* GetContentCaptureReceiver( content::RenderFrameHost* rfh) const { return ContentCaptureReceiverForFrame(rfh); } private: ContentCaptureSession parent_session_; ContentCaptureSession updated_parent_session_; ContentCaptureSession session_; ContentCaptureData captured_data_; ContentCaptureData updated_data_; std::vector<int64_t> removed_ids_; std::vector<ContentCaptureSession> removed_sessions_; SessionRemovedTestHelper* session_removed_test_helper_; }; } // namespace class ContentCaptureReceiverTest : public content::RenderViewHostTestHarness { public: void SetUp() override { content::RenderViewHostTestHarness::SetUp(); ContentCaptureReceiverManagerHelper::Create(web_contents(), &session_removed_test_helper_); content_capture_receiver_manager_helper_ = static_cast<ContentCaptureReceiverManagerHelper*>( ContentCaptureReceiverManager::FromWebContents(web_contents())); // This needed to keep the WebContentsObserverSanityChecker checks happy for // when AppendChild is called. NavigateAndCommit(GURL(kMainFrameUrl)); content_capture_sender_ = std::make_unique<FakeContentCaptureSender>(); main_frame_ = web_contents()->GetMainFrame(); // Binds sender with receiver. ContentCaptureReceiverManager::BindContentCaptureReceiver( content_capture_sender_->GetPendingAssociatedReceiver(), main_frame_); ContentCaptureData child; // Have the unique id for text content. child.id = 2; child.value = base::ASCIIToUTF16("Hello"); child.bounds = gfx::Rect(5, 5, 5, 5); // No need to set id in sender. test_data_.value = base::ASCIIToUTF16(kMainFrameUrl); test_data_.bounds = gfx::Rect(10, 10); test_data_.children.push_back(child); test_data2_.value = base::ASCIIToUTF16(kChildFrameUrl); test_data2_.bounds = gfx::Rect(10, 10); test_data2_.children.push_back(child); ContentCaptureData child_change; // Same ID with child. child_change.id = 2; child_change.value = base::ASCIIToUTF16("Hello World"); child_change.bounds = gfx::Rect(5, 5, 5, 5); test_data_change_.value = base::ASCIIToUTF16(kMainFrameUrl); test_data_change_.bounds = gfx::Rect(10, 10); test_data_change_.children.push_back(child_change); // Update to test_data_. ContentCaptureData child2; // Have the unique id for text content. child2.id = 3; child2.value = base::ASCIIToUTF16("World"); child2.bounds = gfx::Rect(5, 10, 5, 5); test_data_update_.value = base::ASCIIToUTF16(kMainFrameUrl); test_data_update_.bounds = gfx::Rect(10, 10); test_data_update_.children.push_back(child2); } void NavigateMainFrame(const GURL& url) { content_capture_receiver_manager_helper()->Reset(); NavigateAndCommit(url); main_frame_ = web_contents()->GetMainFrame(); } void SetupChildFrame() { child_content_capture_sender_ = std::make_unique<FakeContentCaptureSender>(); child_frame_ = content::RenderFrameHostTester::For(main_frame_)->AppendChild("child"); // Binds sender with receiver for child frame. ContentCaptureReceiverManager::BindContentCaptureReceiver( child_content_capture_sender_->GetPendingAssociatedReceiver(), child_frame_); } FakeContentCaptureSender* content_capture_sender() { return content_capture_sender_.get(); } FakeContentCaptureSender* child_content_capture_sender() { return child_content_capture_sender_.get(); } const ContentCaptureData& test_data() const { return test_data_; } const ContentCaptureData& test_data_change() const { return test_data_change_; } const ContentCaptureData& test_data2() const { return test_data2_; } const ContentCaptureData& test_data_update() const { return test_data_update_; } const std::vector<int64_t>& expected_removed_ids() const { return expected_removed_ids_; } ContentCaptureData GetExpectedTestData(bool main_frame) const { ContentCaptureData expected(test_data_); // Replaces the id with expected id. expected.id = ContentCaptureReceiver::GetIdFrom(main_frame ? main_frame_ : child_frame_); return expected; } ContentCaptureData GetExpectedTestDataChange(int64_t expected_id) const { ContentCaptureData expected(test_data_change_); // Replaces the id with expected id. expected.id = expected_id; return expected; } ContentCaptureData GetExpectedTestData2(bool main_frame) const { ContentCaptureData expected(test_data2_); // Replaces the id with expected id. expected.id = ContentCaptureReceiver::GetIdFrom(main_frame ? main_frame_ : child_frame_); return expected; } ContentCaptureData GetExpectedTestDataUpdate(bool main_frame) const { ContentCaptureData expected(test_data_update_); // Replaces the id with expected id. expected.id = ContentCaptureReceiver::GetIdFrom(main_frame ? main_frame_ : child_frame_); return expected; } ContentCaptureReceiverManagerHelper* content_capture_receiver_manager_helper() const { return content_capture_receiver_manager_helper_; } SessionRemovedTestHelper* session_removed_test_helper() { return &session_removed_test_helper_; } void VerifySession(const ContentCaptureSession& expected, const ContentCaptureSession& result) const { EXPECT_EQ(expected.size(), result.size()); for (size_t i = 0; i < expected.size(); i++) { EXPECT_EQ(expected[i].id, result[i].id); EXPECT_EQ(expected[i].value, result[i].value); EXPECT_EQ(expected[i].bounds, result[i].bounds); EXPECT_TRUE(result[i].children.empty()); } } void DidCaptureContent(const ContentCaptureData& captured_content, bool first_data) { base::RunLoop run_loop; content_capture_sender()->DidCaptureContent(captured_content, first_data); run_loop.RunUntilIdle(); } void DidCaptureContentForChildFrame( const ContentCaptureData& captured_content, bool first_data) { base::RunLoop run_loop; child_content_capture_sender()->DidCaptureContent(captured_content, first_data); run_loop.RunUntilIdle(); } void DidUpdateContent(const ContentCaptureData& updated_content) { base::RunLoop run_loop; content_capture_sender()->DidUpdateContent(updated_content); run_loop.RunUntilIdle(); } void DidRemoveContent(const std::vector<int64_t>& data) { base::RunLoop run_loop; content_capture_sender()->DidRemoveContent(data); run_loop.RunUntilIdle(); } void BuildChildSession(const ContentCaptureSession& parent, const ContentCaptureData& data, ContentCaptureSession* child) { ContentCaptureData child_frame = data; child_frame.children.clear(); child->clear(); child->push_back(child_frame); DCHECK(parent.size() == 1); child->push_back(parent.front()); } protected: ContentCaptureReceiverManagerHelper* content_capture_receiver_manager_helper_ = nullptr; private: // The sender for main frame. std::unique_ptr<FakeContentCaptureSender> content_capture_sender_; // The sender for child frame. std::unique_ptr<FakeContentCaptureSender> child_content_capture_sender_; content::RenderFrameHost* main_frame_ = nullptr; content::RenderFrameHost* child_frame_ = nullptr; ContentCaptureData test_data_; ContentCaptureData test_data_change_; ContentCaptureData test_data2_; ContentCaptureData test_data_update_; // Expected removed Ids. std::vector<int64_t> expected_removed_ids_{2}; SessionRemovedTestHelper session_removed_test_helper_; }; TEST_F(ContentCaptureReceiverTest, DidCaptureContent) { DidCaptureContent(test_data(), true /* first_data */); EXPECT_TRUE( content_capture_receiver_manager_helper()->parent_session().empty()); EXPECT_TRUE( content_capture_receiver_manager_helper()->removed_sessions().empty()); EXPECT_EQ(GetExpectedTestData(true /* main_frame */), content_capture_receiver_manager_helper()->captured_data()); } TEST_F(ContentCaptureReceiverTest, DISABLED_DidCaptureContentWithUpdate) { DidCaptureContent(test_data(), true /* first_data */); // Verifies to get test_data() with correct frame content id. EXPECT_TRUE( content_capture_receiver_manager_helper()->parent_session().empty()); EXPECT_TRUE( content_capture_receiver_manager_helper()->removed_sessions().empty()); EXPECT_EQ(GetExpectedTestData(true /* main_frame */), content_capture_receiver_manager_helper()->captured_data()); // Simulates to update the content within the same document. DidCaptureContent(test_data_update(), false /* first_data */); // Verifies to get test_data2() with correct frame content id. EXPECT_TRUE( content_capture_receiver_manager_helper()->parent_session().empty()); // Verifies that the sesssion isn't removed. EXPECT_TRUE( content_capture_receiver_manager_helper()->removed_sessions().empty()); EXPECT_EQ(GetExpectedTestDataUpdate(true /* main_frame */), content_capture_receiver_manager_helper()->captured_data()); } TEST_F(ContentCaptureReceiverTest, DidUpdateContent) { DidCaptureContent(test_data(), true /* first_data */); EXPECT_TRUE( content_capture_receiver_manager_helper()->parent_session().empty()); EXPECT_TRUE( content_capture_receiver_manager_helper()->removed_sessions().empty()); ContentCaptureData expected_data = GetExpectedTestData(true /* main_frame */); EXPECT_EQ(expected_data, content_capture_receiver_manager_helper()->captured_data()); // Simulate content change. DidUpdateContent(test_data_change()); EXPECT_TRUE(content_capture_receiver_manager_helper() ->updated_parent_session() .empty()); EXPECT_TRUE( content_capture_receiver_manager_helper()->removed_sessions().empty()); EXPECT_EQ(GetExpectedTestDataChange(expected_data.id), content_capture_receiver_manager_helper()->updated_data()); } TEST_F(ContentCaptureReceiverTest, DidRemoveSession) { DidCaptureContent(test_data(), true /* first_data */); // Verifies to get test_data() with correct frame content id. EXPECT_TRUE( content_capture_receiver_manager_helper()->parent_session().empty()); EXPECT_TRUE( content_capture_receiver_manager_helper()->removed_sessions().empty()); EXPECT_EQ(GetExpectedTestData(true /* main_frame */), content_capture_receiver_manager_helper()->captured_data()); // Simulates to navigate other document. DidCaptureContent(test_data2(), true /* first_data */); EXPECT_TRUE( content_capture_receiver_manager_helper()->parent_session().empty()); // Verifies that the previous session was removed. EXPECT_EQ( 1u, content_capture_receiver_manager_helper()->removed_sessions().size()); std::vector<ContentCaptureData> expected{ GetExpectedTestData(true /* main_frame */)}; VerifySession( expected, content_capture_receiver_manager_helper()->removed_sessions().front()); // Verifies that we get the test_data2() from the new document. EXPECT_EQ(GetExpectedTestData2(true /* main_frame */), content_capture_receiver_manager_helper()->captured_data()); } TEST_F(ContentCaptureReceiverTest, DidRemoveContent) { DidCaptureContent(test_data(), true /* first_data */); // Verifies to get test_data() with correct frame content id. EXPECT_TRUE( content_capture_receiver_manager_helper()->parent_session().empty()); EXPECT_TRUE( content_capture_receiver_manager_helper()->removed_sessions().empty()); EXPECT_EQ(GetExpectedTestData(true /* main_frame */), content_capture_receiver_manager_helper()->captured_data()); // Simulates to remove the content. DidRemoveContent(expected_removed_ids()); EXPECT_TRUE( content_capture_receiver_manager_helper()->parent_session().empty()); EXPECT_TRUE( content_capture_receiver_manager_helper()->removed_sessions().empty()); // Verifies that the removed_ids() was removed from the correct session. EXPECT_EQ(expected_removed_ids(), content_capture_receiver_manager_helper()->removed_ids()); std::vector<ContentCaptureData> expected{ GetExpectedTestData(true /* main_frame */)}; VerifySession(expected, content_capture_receiver_manager_helper()->session()); } TEST_F(ContentCaptureReceiverTest, ChildFrameDidCaptureContent) { // Simulate add child frame. SetupChildFrame(); // Simulate to capture the content from main frame. DidCaptureContent(test_data(), true /* first_data */); // Verifies to get test_data() with correct frame content id. EXPECT_TRUE( content_capture_receiver_manager_helper()->parent_session().empty()); EXPECT_TRUE( content_capture_receiver_manager_helper()->removed_sessions().empty()); EXPECT_EQ(GetExpectedTestData(true /* main_frame */), content_capture_receiver_manager_helper()->captured_data()); // Simulate to capture the content from child frame. DidCaptureContentForChildFrame(test_data2(), true /* first_data */); // Verifies that the parent_session was set correctly. EXPECT_FALSE( content_capture_receiver_manager_helper()->parent_session().empty()); std::vector<ContentCaptureData> expected{ GetExpectedTestData(true /* main_frame */)}; VerifySession(expected, content_capture_receiver_manager_helper()->parent_session()); EXPECT_TRUE( content_capture_receiver_manager_helper()->removed_sessions().empty()); // Verifies that we receive the correct content from child frame. EXPECT_EQ(GetExpectedTestData2(false /* main_frame */), content_capture_receiver_manager_helper()->captured_data()); } // This test is for issue crbug.com/995121 . TEST_F(ContentCaptureReceiverTest, RenderFrameHostGone) { auto* receiver = content_capture_receiver_manager_helper()->GetContentCaptureReceiver( web_contents()->GetMainFrame()); // No good way to simulate crbug.com/995121, just set rfh_ to nullptr in // ContentCaptureReceiver, so content::WebContents::FromRenderFrameHost() // won't return WebContents. receiver->rfh_ = nullptr; // Ensure no crash. DidCaptureContent(test_data(), true /* first_data */); DidUpdateContent(test_data()); DidRemoveContent(expected_removed_ids()); } // TODO(https://crbug.com/1010416): Fix flakes on win10_chromium_x64_rel_ng and // re-enable this test. #if defined(OS_WIN) #define MAYBE_ChildFrameCaptureContentFirst \ DISABLED_ChildFrameCaptureContentFirst #else #define MAYBE_ChildFrameCaptureContentFirst ChildFrameCaptureContentFirst #endif TEST_F(ContentCaptureReceiverTest, MAYBE_ChildFrameCaptureContentFirst) { // Simulate add child frame. SetupChildFrame(); // Simulate to capture the content from child frame. DidCaptureContentForChildFrame(test_data2(), true /* first_data */); // Verifies that the parent_session was set correctly. EXPECT_FALSE( content_capture_receiver_manager_helper()->parent_session().empty()); ContentCaptureData data = GetExpectedTestData(true /* main_frame */); // Currently, there is no way to fake frame size, set it to 0. data.bounds = gfx::Rect(); ContentCaptureSession expected{data}; VerifySession(expected, content_capture_receiver_manager_helper()->parent_session()); EXPECT_TRUE( content_capture_receiver_manager_helper()->removed_sessions().empty()); // Verifies that we receive the correct content from child frame. EXPECT_EQ(GetExpectedTestData2(false /* main_frame */), content_capture_receiver_manager_helper()->captured_data()); // Get the child session, so we can verify that it has been removed in next // navigation ContentCaptureData child_frame = GetExpectedTestData2(false); // child_frame.children.clear(); ContentCaptureSession removed_child_session; BuildChildSession(expected, content_capture_receiver_manager_helper()->captured_data(), &removed_child_session); // When main frame navigates to same url, the parent session will not change. NavigateMainFrame(GURL(kMainFrameUrl)); SetupChildFrame(); DidCaptureContentForChildFrame(test_data2(), true /* first_data */); VerifySession(expected, content_capture_receiver_manager_helper()->parent_session()); // Verify the child frame is removed. EXPECT_EQ( 1u, content_capture_receiver_manager_helper()->removed_sessions().size()); VerifySession( removed_child_session, content_capture_receiver_manager_helper()->removed_sessions().front()); // Get main and child session to verify that they are removed in next // navigateion. ContentCaptureSession removed_main_session = expected; BuildChildSession(expected, content_capture_receiver_manager_helper()->captured_data(), &removed_child_session); // When main frame navigates to same domain, the parent session will change. NavigateMainFrame(GURL(kMainFrameUrl2)); SetupChildFrame(); DidCaptureContentForChildFrame(test_data2(), true /* first_data */); // Intentionally reuse the data.id from previous result, so we know navigating // to same domain didn't create new ContentCaptureReceiver when call // VerifySession(), otherwise, we can't test the code to handle the navigation // in ContentCaptureReceiver. data.value = base::ASCIIToUTF16(kMainFrameUrl2); // Currently, there is no way to fake frame size, set it to 0. data.bounds = gfx::Rect(); expected.clear(); expected.push_back(data); VerifySession(expected, content_capture_receiver_manager_helper()->parent_session()); // There are two sessions removed, one the main frame because we navigate to // different URL (though the domain is same), another one is child frame // because of the main frame change. EXPECT_EQ( 2u, content_capture_receiver_manager_helper()->removed_sessions().size()); VerifySession( removed_child_session, content_capture_receiver_manager_helper()->removed_sessions().front()); VerifySession( removed_main_session, content_capture_receiver_manager_helper()->removed_sessions().back()); // Keep current sessions to verify removed sessions later. removed_main_session = expected; BuildChildSession(expected, content_capture_receiver_manager_helper()->captured_data(), &removed_child_session); // When main frame navigates to different domain, the parent session will // change. NavigateMainFrame(GURL(kChildFrameUrl)); SetupChildFrame(); DidCaptureContentForChildFrame(test_data2(), true /* first_data */); data = GetExpectedTestData2(true /* main_frame */); // Currently, there is no way to fake frame size, set it to 0. data.bounds = gfx::Rect(); expected.clear(); expected.push_back(data); VerifySession(expected, content_capture_receiver_manager_helper()->parent_session()); EXPECT_EQ( 2u, content_capture_receiver_manager_helper()->removed_sessions().size()); VerifySession( removed_child_session, content_capture_receiver_manager_helper()->removed_sessions().front()); VerifySession( removed_main_session, content_capture_receiver_manager_helper()->removed_sessions().back()); // Keep current sessions to verify removed sessions later. removed_main_session = expected; BuildChildSession(expected, content_capture_receiver_manager_helper()->captured_data(), &removed_child_session); session_removed_test_helper()->Reset(); DeleteContents(); EXPECT_EQ(2u, session_removed_test_helper()->removed_sessions().size()); VerifySession(removed_child_session, session_removed_test_helper()->removed_sessions().front()); VerifySession(removed_main_session, session_removed_test_helper()->removed_sessions().back()); } class ContentCaptureReceiverMultipleFrameTest : public ContentCaptureReceiverTest { public: void SetUp() override { // Setup multiple frames before creates ContentCaptureReceiverManager. content::RenderViewHostTestHarness::SetUp(); // This needed to keep the WebContentsObserverSanityChecker checks happy for // when AppendChild is called. NavigateAndCommit(GURL("about:blank")); content::RenderFrameHostTester::For(web_contents()->GetMainFrame()) ->AppendChild("child"); ContentCaptureReceiverManagerHelper::Create(web_contents(), nullptr); content_capture_receiver_manager_helper_ = static_cast<ContentCaptureReceiverManagerHelper*>( ContentCaptureReceiverManager::FromWebContents(web_contents())); } void TearDown() override { content::RenderViewHostTestHarness::TearDown(); } }; // TODO(https://crbug.com/1010417): Fix flakes on win10_chromium_x64_rel_ng and // re-enable this test. #if defined(OS_WIN) #define MAYBE_ReceiverCreatedForExistingFrame \ DISABLED_ReceiverCreatedForExistingFrame #else #define MAYBE_ReceiverCreatedForExistingFrame ReceiverCreatedForExistingFrame #endif TEST_F(ContentCaptureReceiverMultipleFrameTest, MAYBE_ReceiverCreatedForExistingFrame) { EXPECT_EQ( 2u, content_capture_receiver_manager_helper()->GetFrameMapSizeForTesting()); } } // namespace content_capture
[ "commit-bot@chromium.org" ]
commit-bot@chromium.org
52a4909b55956dee5badfebec91659d2fc8eaf5b
9ac32dc9373d89328b0972b15fd41258e6fe294a
/primary/function/zhichuandi.cpp
6f43a969393a7ed888458cee3f53da7ec98f181e
[]
no_license
pz974666723/firstGit
520e46ed60afee91e39d86be3349a7e234eadf15
c9329707e46f2e8b15c2a2d3a5124f96a8ad04cb
refs/heads/master
2023-01-05T14:29:50.003436
2020-11-03T03:02:01
2020-11-03T03:02:01
309,546,826
0
0
null
null
null
null
UTF-8
C++
false
false
696
cpp
#include<iostream> using namespace std; /* ่ฟ”ๅ›žๅ€ผ็ฑปๅž‹ ๅ‡ฝๆ•ฐๅ (ๅ‚ๆ•ฐๅˆ—่กจ){ ๅ‡ฝๆ•ฐไฝ“่ฏญๅฅ return่กจ่พพๅผ } */ //ๅฝขๅ‚็š„ๆ”นๅ˜ไธไผšๅฝฑๅ“ๅฎžๅ‚ void swap(int num1, int num2){ cout << "before:" << endl; cout << "num1 = " << num1 << " "; cout << "num2 = " << num2 << endl; int temp; temp = num1; num1 = num2; num2 = temp; cout << "after:" << endl; cout << "num1 = " << num1 << " "; cout << "num2 = " << num2 << endl; //return;่ฟ”ๅ›žๅ€ผไธบvoidๆ—ถ๏ผŒๅฏไปฅไธ็”จreturn } int main(){ int a = 11; int b = 22; swap(a, b); cout << "a = " << a << " "; cout << "b = " << b << endl; //system("pause"); return 0; }
[ "974666723@qq.com" ]
974666723@qq.com
b11c97d98e89e65eec4c5ce9971b226f0ea2044c
19a012b6a66374235771a8c2baee19560e98f8d7
/CodeChef/LongContest/2012/JuneLC/cakedoom.cpp
00615da49fe2e9fc31404de0b9ef76a032b644e9
[]
no_license
juancate/CompetitivePrograming
735e992fd6ac9c264059604fb7a2f2dfce74d330
8cea3695fd0dec7122c94ab45b4517cb13232fb3
refs/heads/master
2021-01-25T10:06:47.576470
2018-12-19T01:11:41
2018-12-19T01:11:41
14,966,965
0
0
null
null
null
null
UTF-8
C++
false
false
3,022
cpp
#include <cstdio> #include <cstdlib> #include <cstring> #include <cmath> #include <ctime> #include <cctype> #include <cassert> #include <iostream> #include <sstream> #include <iomanip> #include <string> #include <vector> #include <stack> #include <queue> #include <deque> #include <list> #include <set> #include <map> #include <bitset> #include <algorithm> #include <numeric> #include <complex> #define D(x) cerr << #x << " = " << (x) << endl; #define REP(i,a,n) for(int i=(a); i<(int)(n); i++) #define FOREACH(it,v) for(__typeof((v).begin()) it=(v).begin(); it!=(v).end(); ++it) #define ALL(v) (v).begin(), (v).end() using namespace std; template<typename T,typename U> inline std::ostream& operator<<(std::ostream& os, const pair<T,U>& z){ return ( os << "(" << z.first << ", " << z.second << ",)" ); } template<typename T> inline std::ostream& operator<<(std::ostream& os, const vector<T>& z){ os << "[ "; REP(i,0,z.size())os << z[i] << ", " ; return ( os << "]" << endl); } template<typename T> inline std::ostream& operator<<(std::ostream& os, const set<T>& z){ os << "set( "; FOREACH(p,z)os << (*p) << ", " ; return ( os << ")" << endl); } template<typename T,typename U> inline std::ostream& operator<<(std::ostream& os, const map<T,U>& z){ os << "{ "; FOREACH(p,z)os << (p->first) << ": " << (p->second) << ", " ; return ( os << "}" << endl); } typedef long long int64; const int INF = (int)(1e9); const int64 INFLL = (int64)(1e18); const double EPS = 1e-13; const int MAXN = 100 + 10; int T, N, K; char S[MAXN], tmp[MAXN]; void assign(int left, int mid, int right) { if(S[mid] != '?') return; for(char c = '0'; c <= '2'; c++) { if(S[left] == c || c == S[right]) continue; S[mid] = c; break; } } string solve() { if(N == 1) { if(S[0] == '?') return "0"; return S; } if(K == 1) { if(N > 1) return "NO"; if(S[0] == '?') return "0"; return S; } if(K == 2) { if(N & 1) return "NO"; strcpy(tmp, S); bool pos = true; REP(i, 0, N) { if(S[i] == '?') S[i] = '0' + i%2; else if(S[i] != ('0' + i%2)) { pos = false; break; } } if(pos) return S; pos = true; strcpy(S, tmp); REP(i, 0, N) { if(S[i] == '?') S[i] = '0' + 1 - i%2; else if(S[i] != ('0' + 1 - i%2)) { pos = false; break; } } if(pos) return S; return "NO"; } REP(i, 1, N) if(S[i] == S[i-1] && S[i] != '?') return "NO"; if(S[0] == S[N-1] && S[0] != '?') return "NO"; assign(N-1, 0, 1); REP(i, 1, N-1) { assign(i-1, i, i+1); } assign(N-2, N-1, 0); return S; } int main() { scanf("%d", &T); while(T--) { scanf("%d%s", &K, S); N = strlen(S); puts(solve().c_str()); } }
[ "jcamargo@gmail.com" ]
jcamargo@gmail.com
204e4053449e8550652477f53d062cfd44b81ef5
84257c31661e43bc54de8ea33128cd4967ecf08f
/ppc_85xx/usr/include/c++/4.2.2/javax/swing/text/TabableView.h
8407dc448f9b79d1a19d084b19889eef6a25c94a
[]
no_license
nateurope/eldk
9c334a64d1231364980cbd7bd021d269d7058240
8895f914d192b83ab204ca9e62b61c3ce30bb212
refs/heads/master
2022-11-15T01:29:01.991476
2020-07-10T14:31:34
2020-07-10T14:31:34
278,655,691
0
0
null
null
null
null
UTF-8
C++
false
false
696
h
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- #ifndef __javax_swing_text_TabableView__ #define __javax_swing_text_TabableView__ #pragma interface #include <java/lang/Object.h> extern "Java" { namespace javax { namespace swing { namespace text { class TabableView; class TabExpander; } } } } class javax::swing::text::TabableView : public ::java::lang::Object { public: virtual jfloat getPartialSpan (jint, jint) = 0; virtual jfloat getTabbedSpan (jfloat, ::javax::swing::text::TabExpander *) = 0; static ::java::lang::Class class$; } __attribute__ ((java_interface)); #endif /* __javax_swing_text_TabableView__ */
[ "Andre.Mueller@nateurope.com" ]
Andre.Mueller@nateurope.com
89f1d698b5901e143eef2bcfdc7f7b6bdae4f9ed
f81d6848d7e3387a77fb841d84facbff2145dbb2
/source/other/copa/udp-socket.cc
c57596a197a1c7841d05a761a9ea46ae58fa9511
[]
no_license
chenhongquan/5G_measurement_tool
ec659660b1ae92deea289dbf2de241bd9a7d6338
b44a0e45fa1b347fc96c3d7758d3797135c1c3e0
refs/heads/master
2023-05-06T15:29:50.482974
2021-05-27T14:37:03
2021-05-27T14:37:03
null
0
0
null
null
null
null
UTF-8
C++
false
false
5,227
cc
#include <arpa/inet.h> #include <cassert> #include <errno.h> #include <iostream> #include <string.h> #include "udp-socket.hh" int UDPSocket::bindsocket(string s_ipaddr, int s_port, int sourceport){ ipaddr = s_ipaddr; port = s_port; srcport = sourceport; if (sourceport == 0) { bound = true; return 0; } struct sockaddr_in srcaddr; memset(&srcaddr, 0, sizeof(srcaddr)); srcaddr.sin_family = AF_INET; srcaddr.sin_addr.s_addr = inet_addr("000.000.000.000"); // change server IP srcaddr.sin_port = htons(srcport); if (::bind(udp_socket, (struct sockaddr *)&srcaddr, sizeof(srcaddr)) < 0) { perror("bind"); exit(EXIT_FAILURE); } else { bound = true; cout<<"syslab: I am creating socket and binding it to a address\t"<<s_ipaddr<<"port \t"<<srcport<<"\n"; return 0; } } int UDPSocket::bindsocket(int s_port) { ipaddr = ""; port = s_port; sockaddr_in addr_struct; memset((char *) &addr_struct, 0, sizeof(addr_struct)); addr_struct.sin_family = AF_INET; addr_struct.sin_port = htons(port); addr_struct.sin_addr.s_addr = htonl(INADDR_ANY); if (::bind(udp_socket , (struct sockaddr*)&addr_struct, sizeof(addr_struct) ) < 0){ std::cerr<<"Error while binding socket. Code: "<<errno<<endl; return -1; } bound = true; return 0; } // Sends data to the desired address. Returns number of bytes sent if // successful, -1 if not. //ssize_t UDPSocket::senddata(const char* data, ssize_t size, sockaddr_in *s_dest_addr){ ssize_t UDPSocket::senddata(const char* data, ssize_t size){ //sockaddr_in dest_addr; //memset((char *) &dest_addr, 0, sizeof(dest_addr)); //dest_addr.sin_family = AF_INET; /*if(s_dest_addr == NULL){ assert(bound); // Socket not bound to an address. Please use 'bindsocket' dest_addr.sin_port = htons(port); if (inet_aton(ipaddr.c_str(), &dest_addr.sin_addr) == 0) { std::cerr<<"inet_aton failed while sending data. Code: "<<errno<<endl; } } else{:84 dest_addr.sin_port = ((struct sockaddr_in *)s_dest_addr)->sin_port; dest_addr.sin_addr = ((struct sockaddr_in *)s_dest_addr)->sin_addr; }*/ //int res = sendto(udp_socket, data, size, 0, (struct sockaddr *) &dest_addr, sizeof(dest_addr)); int res = sendto(udp_socket, data, size, 0, (struct sockaddr *) &sandy_dest_addr, sizeof(sandy_dest_addr)); if ( res == -1 ){ std::cerr<<"Error while sending datagram. Code: "<<errno<<std::endl; //assert(false); return -1; }else{ //std::cout<<"syslab: sent the data to receiver back\n"; } return res; // no of bytes sent } /*ssize_t UDPSocket::senddata(const char* data, ssize_t size, string dest_ip, int dest_port){ //sockaddr_in dest_addr; //memset((char *) &dest_addr, 0, sizeof(dest_addr)); //dest_addr.sin_family = AF_INET; //dest_addr.sin_port = htons(dest_port); if (inet_aton(dest_ip.c_str(), &dest_addr.sin_addr) == 0) { std::cerr<<"inet_aton failed while sending data. Code: "<<errno<<endl; } //return senddata(data, size, &dest_addr); return senddata(data, size); }*/ // Modifies buffer to contain a null terminated string of the received // data and returns the received buffer size (or -1 or 0, see below) // // Takes timeout in milliseconds. If timeout, returns -1 without // changing the buffer. If data arrives before timeout, modifies buffer // with the received data and returns the places the sender's address // in other_addr // // If timeout is negative, infinite timeout will be used. If it is 0, // function will return immediately. Timeout will be rounded up to // kernel time granularity, and kernel scheduling delays may cause // actual timeout to exceed what is specified int UDPSocket::receivedata(char* buffer, int bufsize, int timeout, sockaddr_in &other_addr){ //assert(bound); // Socket not bound to an address. Please either use 'bind' or 'sendto' sandy commented it out unsigned int other_len; struct pollfd pfds[1]; pfds[0].fd = udp_socket; pfds[0].events = POLLIN; int poll_val = poll(pfds, 1, timeout); if( poll_val == 1){ if(pfds[0].revents & POLLIN){ other_len = sizeof(other_addr); int res = recvfrom( udp_socket, buffer, bufsize, 0, (struct sockaddr*) &other_addr, &other_len ); if ( res == -1 ){ std::cerr<<"Error while receiving datagram. Code: "<<errno<<std::endl; } buffer[res] = '\0'; //terminating null character is not added by default return res; } else{ std::cerr<<"There was an error while polling. Value of event field: "<<pfds[0].revents<<endl; return -1; } } else if ( poll_val == 0){ return 0; //there was a timeout } else if ( poll_val == -1 ){ if ( errno == 4 ) return receivedata(buffer, bufsize, timeout, other_addr); //to make gprof work std::cerr<<"\nThere was an error while polling. Code: "<<errno<<endl; return -1; } else{ assert( false ); //should never come here } } void UDPSocket::decipher_socket_addr(sockaddr_in addr, std::string& ip_addr, int& port) { ip_addr = inet_ntoa(addr.sin_addr); port = ntohs(addr.sin_port); } string UDPSocket::decipher_socket_addr(sockaddr_in addr) { string ip_addr; int port; UDPSocket::decipher_socket_addr(addr, ip_addr, port); return ip_addr + ":" + to_string(port); }
[ "5gsystemnetwork@gmail.com" ]
5gsystemnetwork@gmail.com
29061dba350149473f758b3c970d438f65fef148
242f2e1d3b9a07acb3499f5d738bfa864b301364
/try accept example for str in int/main.cpp
e5f41c7f09bbcfe0b8275b94a8d8eb4f7d64dccd
[]
no_license
nibbletobits/nibbletobits
407284bc538a0b2bb8d61f44da8d31942cda2ec8
ff493e84e3c909795fa3e6087b3cecb19eb889c8
refs/heads/main
2023-08-21T17:41:55.078322
2021-10-19T00:34:10
2021-10-19T00:34:10
415,011,768
0
0
null
null
null
null
UTF-8
C++
false
false
1,476
cpp
/* Elijah Walker / edited via Jordan P. Nolin CSC 160-801 09/20/2021 Topic 3 Discussion: 6. Python Program to Find the Factors of a Number Based off of https://www.programiz.com/python-programming/examples/factor-number Finds the factors of a positive number */ #include <iostream> #include <string> #include <exception> using namespace std; int main() { int numFindFactors=-1; // Positive integer to find factors of int loopNum; // Beginning number of the for loop string input; while(numFindFactors < 1) { cout << "please enter a positive number" << endl; try { cin >> input; // Set Integer to find factors of numFindFactors = stoi(input); // will throw if(numFindFactors < 1) { cout << "invalid input." << endl; } } catch (exception& e) // e stores exception (type exception) { cout << "Invalid input, experienced Standard exception: " << e.what() << endl; // call what member function of exception type numFindFactors=-1; } } cout << "The factors of " << numFindFactors << " are: " << endl; // Checks to see if each number is a factor, one at a time, outputs if it is. for (loopNum = 1; loopNum <= numFindFactors; ++loopNum) { if (numFindFactors % loopNum == 0) { cout << loopNum << endl; } } return 0; }
[ "noreply@github.com" ]
noreply@github.com
41053c00cb072968a001732d400e4289701333ed
7ef7226414b9f1d45d31bc64ee3e70ecb7ddedfb
/main.cpp
099d5852937d0c047981c639ab125fecedba2b65
[]
no_license
Gerasam/Act.8
a7a1a5e245d99145a70cdfbfa1db9a867a149dda
59b1037f2a051d32351643774c637bdb0d6fb28f
refs/heads/main
2022-12-27T01:44:14.559725
2020-10-12T23:43:48
2020-10-12T23:43:48
null
0
0
null
null
null
null
UTF-8
C++
false
false
401
cpp
#include<iostream> #include<conio.h> #include"laboratorio.h" using namespace std; main(){ Computadora pc1 = Computadora("Windows","hp",8.0,1000); Computadora pc2; pc2.setSystem("Linux"); pc2.setName("Azus"); pc2.setRam(16.180); pc2.setHdd(2000); Laboratorio lab; lab.agregarFinal(pc1); lab.agregarFinal(pc2); lab.mostrar(); getch(); return 0; }
[ "gerardo.vazquez9084@alumnos.udg.mx" ]
gerardo.vazquez9084@alumnos.udg.mx
e7a17bf8abe8b30ebd4e41155fc9aa0ac54cdf28
ce51511cc1a091bce250b8c36d66fae6ec8fd1ce
/networkmodelcpp/Model.h
7ee5e5d4bf6586671537d1e5178487bd36fe7a06
[]
no_license
Turiyaa/SystemSimulation
3f4216a7c28dedb916ace7d6bad27577e221028d
78b2f0112b3076328f2bb1167dbf594064422aea
refs/heads/master
2021-03-31T04:04:31.503967
2020-03-17T21:19:52
2020-03-17T21:19:52
248,075,177
0
0
null
null
null
null
UTF-8
C++
false
false
392
h
// // Created by narayan on 10/26/19. // #include "string.h" #ifndef NETWORKMODELCPP_MODEL_H #define NETWORKMODELCPP_MODEL_H using namespace std; class Model{ public: virtual ~ Model(){}; virtual string getName() = 0; virtual void lambda() = 0; virtual void delta(int input) = 0; virtual void debug() = 0; virtual int ta() = 0; }; #endif //NETWORKMODELCPP_MODEL_H
[ "nneopane@oswego.edu" ]
nneopane@oswego.edu
54131f61084efe05ff7eb734e8754efdee284f9f
12e636808e5b06fa7aa8758dae15cc40d933f7af
/C++/test/test_04/order_tec_test_04.cpp
b7e88d22fb7cfbe9d435961962b21f6eb9bb655c
[ "MIT" ]
permissive
shookware/ordered_tec
b9841cff8e98dc5adfde94d8edca8dd0fcdadca9
ef1c3a6cd957caa3230a44eed17876e5240428d1
refs/heads/develop
2021-06-22T01:35:45.770892
2017-07-27T15:40:18
2017-07-27T15:40:18
100,322,115
0
0
null
2017-08-15T00:46:42
2017-08-15T00:46:42
null
UTF-8
C++
false
false
3,008
cpp
# include <iostream> # include <cmath> # include <sstream> # include <stdio.h> # include <stdlib.h> # include "ordered_tec.h" # define DATATYPE double int main(int argc,char **argv) { # ifdef __linux__ std::cout << "os: Linus" << std::endl; system("rm -r test_04"); system("mkdir test_04"); # else std::cout << "os: Windows" << std::endl; system("rmdir /s /q test_04"); system("mkdir test_04"); # endif DATATYPE *x, *y, *z; size_t NI = 1000, NJ = 2000; try { x = new DATATYPE[NI*NJ]; y = new DATATYPE[NI*NJ]; z = new DATATYPE[NI*NJ]; } catch (...) { std::cerr << "runtime_error: out of memery" << std::endl; return 0; } for (int j = 0; j != NJ; ++j) { for (int i = 0; i != NI; ++i) { x[i + j*NI] = j*0.01; y[i + j*NI] = i*0.01; } } ORDERED_TEC::TEC_FILE tecfile("file_g", "./test_04", "test_04_grid"); tecfile.FileType=1; tecfile.Variables.push_back("x"); tecfile.Variables.push_back("y"); tecfile.Zones.push_back(ORDERED_TEC::TEC_ZONE("grid")); tecfile.Zones[0].Max[0]=NI; tecfile.Zones[0].Max[1]=NJ; tecfile.Zones[0].Data.push_back(ORDERED_TEC::TEC_DATA(x)); tecfile.Zones[0].Data.push_back(ORDERED_TEC::TEC_DATA(y)); tecfile.Zones[0].Skip[0]=10; tecfile.Zones[0].Skip[1]=10; tecfile.Zones[0].StrandId=-1; try { tecfile.set_echo_mode("simple", "none"); tecfile.write_plt(); tecfile.last_log.write_echo(); tecfile.last_log.write_json(); tecfile.last_log.write_xml(); } catch(std::runtime_error err) { std::cerr<<"runtime_error: "<<err.what()<< std::endl; } tecfile.Title="test_04_solution"; tecfile.FileType=2; tecfile.Variables.clear(); tecfile.Variables.push_back("z"); tecfile.Zones[0].Data.clear(); tecfile.Zones[0].Data.push_back(ORDERED_TEC::TEC_DATA(z)); tecfile.Zones[0].StrandId=0; tecfile.set_echo_mode("simple", "none"); std::ofstream of_j, of_x; of_j.open("test_04.json"); if (!of_j) { std::cerr << "can not open file test_04.json" << std::endl; return 1; } of_x.open("test_04.xml"); if (!of_x) { std::cerr << "can not open file test_04.xml" << std::endl; return 1; } of_j << "[" << std::endl; of_x << "<?xml version=\"1.0\" encoding=\"UTF-8\"?>" << std::endl; of_x << "<Files>" << std::endl; for(int n=0;n!=30;++n) { for (int j = 0; j != NJ; ++j) { for (int i = 0; i != NI; ++i) { z[i + j*NI] = sin(x[i + j*NI]/2+n/5.0)+cos(y[i + j*NI]/2+n/5.0); } } std::stringstream ss; ss<<n; tecfile.FileName= std::string("file_s_")+ss.str(); tecfile.Zones[0].ZoneName = std::string("s_") + ss.str(); ss.str(""); tecfile.Zones[0].SolutionTime = n; try { tecfile.write_plt(); tecfile.last_log.write_json(of_j, 1); tecfile.last_log.write_xml(of_x, 1); } catch(std::runtime_error err) { std::cerr<<"runtime_error: "<<err.what()<< std::endl; } if (n != 30 - 1) { of_j << "\t," << std::endl; } } of_j << "]" << std::endl; of_x << "</Files>" << std::endl; of_j.close(); of_x.close(); delete [] x; delete [] y; delete [] z; return 0; }
[ "luan_ming_yi@126.com" ]
luan_ming_yi@126.com
a49f1d5f86c58224641d6fc29816ae3b3ca203cf
9646d7f07068361233261fdd4b573d59ffba2b5e
/src/util/math.h
3f0dfef05977d7e3196bc22dc3c2e67203fcfa35
[]
no_license
soundlocate/locate
b26eb8f96da41582a446fa625188b1edea5102d4
c10c39669c4860eb7daa51a9acf36eaa9d420b5e
refs/heads/master
2020-04-02T05:14:08.958228
2016-06-03T21:23:04
2016-06-03T21:23:04
60,368,747
0
0
null
null
null
null
UTF-8
C++
false
false
158
h
#ifndef _MATHS_H #define _MATHS_H #include "constant.h" #include "types.h" namespace math { f64 deltaPhaseToDistance(f64 a, f64 b, f64 freq); } #endif
[ "robin.ole.heinemann@t-online.de" ]
robin.ole.heinemann@t-online.de
fd9f7def6716f3c954ec287f3a3bcdb4cd6f4f8f
68df74deb602f3f1ab270777e615796f10caeaa5
/5/5_6.cpp
96e155a839571ab4ea2d862f16001d6bf4a4d2dc
[]
no_license
nanohaikaros/cpp_learn
88d726f05a22703426a2910184ab8535203f4f91
31a96d6666ceed5f12089fd63174d530798c0b16
refs/heads/master
2020-05-30T11:32:48.484164
2019-06-21T01:28:52
2019-06-21T01:28:52
189,705,452
0
0
null
null
null
null
UTF-8
C++
false
false
666
cpp
#include <iostream> using namespace std; int main() { cout << "Use boolean values(0 / 1) to answer the questions" << endl; cout << "Is it raining? "; bool Raining = false; cin >> Raining; cout << "Do you have buses on the streets? "; bool Buses = false; cin >> Buses; // conditional statement uses logical AND and NOT if (Raining && !Buses) cout << "You cannot go to work" << endl; else cout << "You can go to work" << endl; if (Raining && Buses) cout << "Take an umbrella" << endl; if ((!Raining) && Buses) cout << "Enjoy the sun and have a nice day" << endl; return 0; }
[ "1371689491@qq.com" ]
1371689491@qq.com
48eaf32babc7139031a9c3b7b2f97bec1f4479b0
fe36ac9d88e4f1d42c3253e6179984af4d8b385f
/mfem-4.1/tests/unit/fem/test_3d_bilininteg.cpp
e8c475c4519d54fdb15ecd0a81fcbb32838edf5a
[ "MIT", "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference", "BSL-1.0" ]
permissive
shubiuh/MFEMShubin
76d4f5e2338e77027c3e6a72b568ccde30bbbfc9
795776008e8b76398d219a4f231167b7688257ee
refs/heads/master
2022-11-22T23:29:21.220212
2020-07-20T17:29:14
2020-07-20T17:29:14
281,175,026
0
0
null
null
null
null
UTF-8
C++
false
false
159,073
cpp
// Copyright (c) 2010-2020, Lawrence Livermore National Security, LLC. Produced // at the Lawrence Livermore National Laboratory. All Rights reserved. See files // LICENSE and NOTICE for details. LLNL-CODE-806117. // // This file is part of the MFEM library. For more information and source code // availability visit https://mfem.org. // // MFEM is free software; you can redistribute it and/or modify it under the // terms of the BSD-3 license. We welcome feedback and contributions, see file // CONTRIBUTING.md for details. #include "mfem.hpp" #include "catch.hpp" using namespace mfem; namespace bilininteg_3d { double zero3(const Vector & x) { return 0.0; } void Zero3(const Vector & x, Vector & v) { v.SetSize(3); v = 0.0; } double f3(const Vector & x) { return 2.345 * x[0] + 3.579 * x[1] + 4.680 * x[2]; } void F3(const Vector & x, Vector & v) { v.SetSize(3); v[0] = 1.234 * x[0] - 2.357 * x[1] + 3.572 * x[2]; v[1] = 2.537 * x[0] + 4.321 * x[1] - 1.234 * x[2]; v[2] = -2.572 * x[0] + 1.321 * x[1] + 3.234 * x[2]; } double q3(const Vector & x) { return 4.234 * x[0] + 3.357 * x[1] + 1.572 * x[2]; } void V3(const Vector & x, Vector & v) { v.SetSize(3); v[0] = 4.234 * x[0] + 3.357 * x[1] + 1.572 * x[2]; v[1] = 4.537 * x[0] + 1.321 * x[1] + 2.234 * x[2]; v[2] = 1.572 * x[0] + 2.321 * x[1] + 3.234 * x[2]; } void M3(const Vector & x, DenseMatrix & m) { m.SetSize(3); m(0,0) = 4.234 * x[0] + 3.357 * x[1] + 1.572 * x[2]; m(0,1) = 0.234 * x[0] + 0.357 * x[1] + 0.572 * x[2]; m(0,2) = -0.537 * x[0] + 0.321 * x[1] - 0.234 * x[2]; m(1,0) = -0.572 * x[0] - 0.321 * x[1] + 0.234 * x[2]; m(1,1) = 4.537 * x[0] + 1.321 * x[1] + 2.234 * x[2]; m(1,2) = 0.537 * x[0] + 0.321 * x[1] + 0.234 * x[2]; m(2,0) = 0.572 * x[0] + 0.321 * x[1] + 0.234 * x[2]; m(2,1) = 0.234 * x[0] - 0.357 * x[1] - 0.572 * x[2]; m(2,2) = 1.572 * x[0] + 2.321 * x[1] + 3.234 * x[2]; } void MT3(const Vector & x, DenseMatrix & m) { M3(x, m); m.Transpose(); } double qf3(const Vector & x) { return q3(x) * f3(x); } void qF3(const Vector & x, Vector & v) { F3(x, v); v *= q3(x); } void MF3(const Vector & x, Vector & v) { DenseMatrix M(3); M3(x, M); Vector F(3); F3(x, F); v.SetSize(3); M.Mult(F, v); } void DF3(const Vector & x, Vector & v) { Vector D(3); V3(x, D); Vector F(3); F3(x, v); v[0] *= D[0]; v[1] *= D[1]; v[2] *= D[2]; } void Grad_f3(const Vector & x, Vector & df) { df.SetSize(3); df[0] = 2.345; df[1] = 3.579; df[2] = 4.680; } void CurlF3(const Vector & x, Vector & df) { df.SetSize(3); df[0] = 1.321 + 1.234; df[1] = 3.572 + 2.572; df[2] = 2.537 + 2.357; } double DivF3(const Vector & x) { return 1.234 + 4.321 + 3.234; } void CurlV3(const Vector & x, Vector & dV) { dV.SetSize(3); dV[0] = 2.321 - 2.234; dV[1] = 1.572 - 1.572; dV[2] = 4.537 - 3.357; } void qGrad_f3(const Vector & x, Vector & df) { Grad_f3(x, df); df *= q3(x); } void DGrad_f3(const Vector & x, Vector & df) { Vector D(3); V3(x, D); Grad_f3(x, df); df[0] *= D[0]; df[1] *= D[1]; df[2] *= D[2]; } void MGrad_f3(const Vector & x, Vector & df) { DenseMatrix M(3); M3(x, M); Vector gradf(3); Grad_f3(x, gradf); M.Mult(gradf, df); } void qCurlF3(const Vector & x, Vector & df) { CurlF3(x, df); df *= q3(x); } void DCurlF3(const Vector & x, Vector & df) { Vector D(3); V3(x, D); CurlF3(x, df); df[0] *= D[0]; df[1] *= D[1]; df[2] *= D[2]; } void MCurlF3(const Vector & x, Vector & df) { DenseMatrix M(3); M3(x, M); Vector curlf(3); CurlF3(x, curlf); M.Mult(curlf, df); } double qDivF3(const Vector & x) { return q3(x) * DivF3(x); } void Vf3(const Vector & x, Vector & vf) { V3(x, vf); vf *= f3(x); } void VcrossF3(const Vector & x, Vector & VF) { Vector V; V3(x, V); Vector F; F3(x, F); VF.SetSize(3); VF(0) = V(1) * F(2) - V(2) * F(1); VF(1) = V(2) * F(0) - V(0) * F(2); VF(2) = V(0) * F(1) - V(1) * F(0); } double VdotF3(const Vector & x) { Vector v; V3(x, v); Vector f; F3(x, f); return v * f; } double VdotGrad_f3(const Vector & x) { Vector v; V3(x, v); Vector gradf; Grad_f3(x, gradf); return v * gradf; } void VcrossGrad_f3(const Vector & x, Vector & VF) { Vector V; V3(x, V); Vector dF; Grad_f3(x, dF); VF.SetSize(3); VF(0) = V(1) * dF(2) - V(2) * dF(1); VF(1) = V(2) * dF(0) - V(0) * dF(2); VF(2) = V(0) * dF(1) - V(1) * dF(0); } void VcrossCurlF3(const Vector & x, Vector & VF) { Vector V; V3(x, V); Vector dF; CurlF3(x, dF); VF.SetSize(3); VF(0) = V(1) * dF(2) - V(2) * dF(1); VF(1) = V(2) * dF(0) - V(0) * dF(2); VF(2) = V(0) * dF(1) - V(1) * dF(0); } void VDivF3(const Vector & x, Vector & VF) { V3(x, VF); VF *= DivF3(x); } void Grad_q3(const Vector & x, Vector & dq) { dq.SetSize(3); dq[0] = 4.234; dq[1] = 3.357; dq[2] = 1.572; } void Grad_V3(const Vector & x, DenseMatrix & dv) { dv.SetSize(3); dv(0,0) = 4.234; dv(0,1) = 3.357; dv(0,2) = 1.572; dv(1,0) = 4.537; dv(1,1) = 1.321; dv(1,2) = 2.234; dv(2,0) = 1.572; dv(2,1) = 2.321; dv(2,2) = 3.234; } double DivV3(const Vector & x) { return 4.234 + 1.321 + 3.234; } void Grad_F3(const Vector & x, DenseMatrix & df) { df.SetSize(3); df(0,0) = 1.234; df(0,1) = -2.357; df(0,2) = 3.572; df(1,0) = 2.537; df(1,1) = 4.321; df(1,2) = -1.234; df(2,0) = -2.572; df(2,1) = 1.321; df(2,2) = 3.234; } void Grad_M3(const Vector & x, DenseTensor & dm) { dm.SetSize(3,3,3); dm(0,0,0) = 4.234; dm(0,0,1) = 3.357; dm(0,0,2) = 1.572; dm(0,1,0) = 0.234; dm(0,1,1) = 0.357; dm(0,1,2) = 0.572; dm(0,2,0) = -0.537; dm(0,2,1) = 0.321; dm(0,2,2) = -0.234; dm(1,0,0) = -0.572; dm(1,0,1) = -0.321; dm(1,0,2) = 0.234; dm(1,1,0) = 4.537; dm(1,1,1) = 1.321; dm(1,1,2) = 2.234; dm(1,2,0) = 0.537; dm(1,2,1) = 0.321; dm(1,2,2) = 0.234; dm(2,0,0) = 0.572; dm(2,0,1) = 0.321; dm(2,0,2) = 0.234; dm(2,1,0) = 0.234; dm(2,1,1) = -0.357; dm(2,1,2) = -0.572; dm(2,2,0) = 1.572; dm(2,2,1) = 2.321; dm(2,2,2) = 3.234; } void Grad_qf3(const Vector & x, Vector & v) { Vector dq; Grad_q3(x, dq); Grad_f3(x, v); v *= q3(x); v.Add(f3(x), dq); } void GradVdotF3(const Vector & x, Vector & dvf) { Vector V; V3(x, V); Vector F; F3(x, F); DenseMatrix dV; Grad_V3(x, dV); DenseMatrix dF; Grad_F3(x, dF); dvf.SetSize(3); dV.MultTranspose(F, dvf); Vector tmp(3); dF.MultTranspose(V, tmp); dvf += tmp; } void Curl_qF3(const Vector & x, Vector & dqF) { Vector dq; Grad_q3(x, dq); Vector F; F3(x, F); CurlF3(x, dqF); dqF *= q3(x); dqF[0] += dq[1]*F[2] - dq[2]*F[1]; dqF[1] += dq[2]*F[0] - dq[0]*F[2]; dqF[2] += dq[0]*F[1] - dq[1]*F[0]; } double Div_qF3(const Vector & x) { Vector dq; Grad_q3(x, dq); Vector F; F3(x, F); return dq[0]*F[0] + dq[1]*F[1] + dq[2]*F[2] + q3(x)*DivF3(x); } double Div_Vf3(const Vector & x) { Vector V; V3(x, V); Vector df; Grad_f3(x, df); return DivV3(x)*f3(x) + V*df; } double Div_VcrossF3(const Vector & x) { Vector V; V3(x, V); Vector F; F3(x, F); Vector dV; CurlV3(x, dV); Vector dF; CurlF3(x, dF); return dV*F - V*dF; } double Div_DF3(const Vector & x) { DenseMatrix dV; Grad_V3(x, dV); DenseMatrix dF; Grad_F3(x, dF); Vector V; V3(x, V); Vector F; F3(x, F); return dV(0,0)*F[0] + dV(1,1)*F[1] + dV(2,2)*F[2] + V[0]*dF(0,0) + V[1]*dF(1,1) + V[2]*dF(2,2); } double Div_MF3(const Vector & x) { DenseTensor dM; Grad_M3(x, dM); DenseMatrix dF; Grad_F3(x, dF); DenseMatrix M; M3(x, M); Vector F; F3(x, F); return dM(0,0,0)*F[0] + dM(0,1,0)*F[1] + dM(0,2,0)*F[2] + dM(1,0,1)*F[0] + dM(1,1,1)*F[1] + dM(1,2,1)*F[2] + dM(2,0,2)*F[0] + dM(2,1,2)*F[1] + dM(2,2,2)*F[2] + M(0,0)*dF(0,0) + M(0,1)*dF(1,0) + M(0,2)*dF(2,0) + M(1,0)*dF(0,1) + M(1,1)*dF(1,1) + M(1,2)*dF(2,1) + M(2,0)*dF(0,2) + M(2,1)*dF(1,2) + M(2,2)*dF(2,2); } void Curl_VcrossF3(const Vector & x, Vector & dVxF) { Vector V; V3(x, V); DenseMatrix dV; Grad_V3(x, dV); Vector F; F3(x, F); DenseMatrix dF; Grad_F3(x, dF); dVxF.SetSize(3); dVxF[0] = dV(0,1)*F[1] - V[1]*dF(0,1) + dV(0,2)*F[2] - V[2]*dF(0,2) - (dV(1,1) + dV(2,2))*F[0] + V[0]*(dF(1,1) + dF(2,2)); dVxF[1] = dV(1,2)*F[2] - V[2]*dF(1,2) + dV(1,0)*F[0] - V[0]*dF(1,0) - (dV(2,2) + dV(0,0))*F[1] + V[1]*(dF(2,2) + dF(0,0)); dVxF[2] = dV(2,0)*F[0] - V[0]*dF(2,0) + dV(2,1)*F[1] - V[1]*dF(2,1) - (dV(0,0) + dV(1,1))*F[2] + V[2]*(dF(0,0) + dF(1,1)); } void Curl_DF3(const Vector & x, Vector & dDF) { Vector D; V3(x, D); DenseMatrix dD; Grad_V3(x, dD); Vector F; F3(x, F); DenseMatrix dF; Grad_F3(x, dF); dDF.SetSize(3); dDF[0] = dD(2,1)*F[2] - dD(1,2)*F[1] + D[2]*dF(2,1) - D[1]*dF(1,2); dDF[1] = dD(0,2)*F[0] - dD(2,0)*F[2] + D[0]*dF(0,2) - D[2]*dF(2,0); dDF[2] = dD(1,0)*F[1] - dD(0,1)*F[0] + D[1]*dF(1,0) - D[0]*dF(0,1); } void Curl_MF3(const Vector & x, Vector & dMF) { DenseMatrix M; M3(x, M); DenseTensor dM; Grad_M3(x, dM); Vector F; F3(x, F); DenseMatrix dF; Grad_F3(x, dF); dMF.SetSize(3); dMF[0] = (dM(2,0,1) - dM(1,0,2))*F[0] + M(2,0)*dF(0,1) - M(1,0)*dF(0,2) + (dM(2,2,1) - dM(1,2,2))*F[2] + M(2,1)*dF(1,1) - M(1,2)*dF(2,2) + (dM(2,1,1) - dM(1,1,2))*F[1] + M(2,2)*dF(2,1) - M(1,1)*dF(1,2); dMF[1] = (dM(0,0,2) - dM(2,0,0))*F[0] + M(0,0)*dF(0,2) - M(2,0)*dF(0,0) + (dM(0,1,2) - dM(2,1,0))*F[1] + M(0,1)*dF(1,2) - M(2,1)*dF(1,0) + (dM(0,2,2) - dM(2,2,0))*F[2] + M(0,2)*dF(2,2) - M(2,2)*dF(2,0); dMF[2] = (dM(1,0,0) - dM(0,0,1))*F[0] + M(1,0)*dF(0,0) - M(0,0)*dF(0,1) + (dM(1,1,0) - dM(0,1,1))*F[1] + M(1,1)*dF(1,0) - M(0,1)*dF(1,1) + (dM(1,2,0) - dM(0,2,1))*F[2] + M(1,2)*dF(2,0) - M(0,2)*dF(2,1); } double Div_qGrad_f3(const Vector & x) { Vector dq, df; Grad_q3(x, dq); Grad_f3(x, df); return dq * df; } double Div_VcrossGrad_f3(const Vector & x) { DenseMatrix dv; Vector df; Grad_V3(x, dv); Grad_f3(x, df); return (dv(2,1) - dv(1,2))*df[0] + (dv(0,2) - dv(2,0))*df[1] + (dv(1,0) - dv(0,1))*df[2]; } double Div_DGrad_f3(const Vector & x) { DenseMatrix dv; Vector df; Grad_V3(x, dv); Grad_f3(x, df); return dv(0,0) * df[0] + dv(1,1) * df[1] + dv(2,2) * df[2]; } double Div_MGrad_f3(const Vector & x) { DenseTensor dm; Vector df; Grad_M3(x, dm); Grad_f3(x, df); return (dm(0,0,0) + dm(1,0,1) + dm(2,0,2)) * df[0] + (dm(0,1,0) + dm(1,1,1) + dm(2,1,2)) * df[1] + (dm(0,2,0) + dm(1,2,1) + dm(2,2,2)) * df[2]; } void Curl_qCurlF3(const Vector & x, Vector & ddF) { Vector dq; Grad_q3(x, dq); Vector dF; CurlF3(x, dF); ddF.SetSize(3); ddF[0] += dq[1]*dF[2] - dq[2]*dF[1]; ddF[1] += dq[2]*dF[0] - dq[0]*dF[2]; ddF[2] += dq[0]*dF[1] - dq[1]*dF[0]; } void Curl_VcrossGrad_f3(const Vector & x, Vector & ddf) { DenseMatrix dV; Grad_V3(x, dV); Vector df; Grad_f3(x, df); ddf.SetSize(3); ddf[0] = dV(0,1)*df[1] + dV(0,2)*df[2] - (dV(1,1)+dV(2,2))*df[0]; ddf[1] = dV(1,2)*df[2] + dV(1,0)*df[0] - (dV(2,2)+dV(0,0))*df[1]; ddf[2] = dV(2,0)*df[0] + dV(2,1)*df[1] - (dV(0,0)+dV(1,1))*df[2]; } void Curl_VcrossCurlF3(const Vector & x, Vector & ddF) { DenseMatrix dv; Grad_V3(x, dv); Vector dF; CurlF3(x, dF); ddF.SetSize(3); ddF[0] = dv(0,1)*dF[1] + dv(0,2)*dF[2] - (dv(1,1)+dv(2,2))*dF[0]; ddF[1] = dv(1,2)*dF[2] + dv(1,0)*dF[0] - (dv(2,2)+dv(0,0))*dF[1]; ddF[2] = dv(2,0)*dF[0] + dv(2,1)*dF[1] - (dv(0,0)+dv(1,1))*dF[2]; } void Curl_DCurlF3(const Vector & x, Vector & ddF) { DenseMatrix dv; Grad_V3(x, dv); Vector dF; CurlF3(x, dF); ddF.SetSize(3); ddF[0] += dv(2,1)*dF[2] - dv(1,2)*dF[1]; ddF[1] += dv(0,2)*dF[0] - dv(2,0)*dF[2]; ddF[2] += dv(1,0)*dF[1] - dv(0,1)*dF[0]; } void Curl_MCurlF3(const Vector & x, Vector & ddF) { DenseTensor dm; Grad_M3(x, dm); Vector dF; CurlF3(x, dF); ddF.SetSize(3); ddF[0] = (dm(2,0,1)-dm(1,0,2))*dF[0] + (dm(2,1,1)-dm(1,1,2))*dF[1] + (dm(2,2,1)-dm(1,2,2))*dF[2]; ddF[1] = (dm(0,0,2)-dm(2,0,0))*dF[0] + (dm(0,1,2)-dm(2,1,0))*dF[1] + (dm(0,2,2)-dm(2,2,0))*dF[2]; ddF[2] = (dm(1,0,0)-dm(0,0,1))*dF[0] + (dm(1,1,0)-dm(0,1,1))*dF[1] + (dm(1,2,0)-dm(0,2,1))*dF[2]; } void Grad_qDivF3(const Vector & x, Vector & ddF) { Grad_q3(x, ddF); ddF *= DivF3(x); } void GradVdotGrad_f3(const Vector & x, Vector & ddf) { DenseMatrix dv; Grad_V3(x, dv); Vector df; Grad_f3(x, df); ddf.SetSize(3); dv.MultTranspose(df,ddf); } double DivVDivF3(const Vector & x) { return DivV3(x)*DivF3(x); } double DivVcrossCurlF3(const Vector & x) { Vector dV; CurlV3(x, dV); Vector dF; CurlF3(x, dF); return dV * dF; } TEST_CASE("3D Bilinear Mass Integrators", "[MixedScalarMassIntegrator]" "[MixedScalarIntegrator]" "[BilinearFormIntegrator]" "[NonlinearFormIntegrator]") { int order = 2, n = 1, dim = 3; double cg_rtol = 1e-14; double tol = 1e-9; Mesh mesh(n, n, n, Element::HEXAHEDRON, 1, 2.0, 3.0, 5.0); FunctionCoefficient f3_coef(f3); FunctionCoefficient q3_coef(q3); FunctionCoefficient qf3_coef(qf3); SECTION("Operators on H1") { H1_FECollection fec_h1(order, dim); FiniteElementSpace fespace_h1(&mesh, &fec_h1); GridFunction f_h1(&fespace_h1); f_h1.ProjectCoefficient(f3_coef); SECTION("Mapping H1 to L2") { L2_FECollection fec_l2(order - 1, dim); FiniteElementSpace fespace_l2(&mesh, &fec_l2); BilinearForm m_l2(&fespace_l2); m_l2.AddDomainIntegrator(new MassIntegrator()); m_l2.Assemble(); m_l2.Finalize(); GridFunction g_l2(&fespace_l2); Vector tmp_l2(fespace_l2.GetNDofs()); SECTION("Without Coefficient") { MixedBilinearForm blf(&fespace_h1, &fespace_l2); blf.AddDomainIntegrator(new MixedScalarMassIntegrator()); blf.Assemble(); blf.Finalize(); blf.Mult(f_h1,tmp_l2); g_l2 = 0.0; CG(m_l2, tmp_l2, g_l2, 0, 200, cg_rtol * cg_rtol, 0.0); REQUIRE( g_l2.ComputeL2Error(f3_coef) < tol ); MixedBilinearForm blfw(&fespace_l2, &fespace_h1); blfw.AddDomainIntegrator(new MixedScalarMassIntegrator()); blfw.Assemble(); blfw.Finalize(); SparseMatrix * blfT = Transpose(blfw.SpMat()); SparseMatrix * diff = Add(1.0,blf.SpMat(),-1.0,*blfT); REQUIRE( diff->MaxNorm() < tol ); delete blfT; delete diff; } SECTION("With Coefficient") { MixedBilinearForm blf(&fespace_h1, &fespace_l2); blf.AddDomainIntegrator(new MixedScalarMassIntegrator(q3_coef)); blf.Assemble(); blf.Finalize(); blf.Mult(f_h1,tmp_l2); g_l2 = 0.0; CG(m_l2, tmp_l2, g_l2, 0, 200, cg_rtol * cg_rtol, 0.0); REQUIRE( g_l2.ComputeL2Error(qf3_coef) < tol ); MixedBilinearForm blfw(&fespace_l2, &fespace_h1); blfw.AddDomainIntegrator(new MixedScalarMassIntegrator(q3_coef)); blfw.Assemble(); blfw.Finalize(); SparseMatrix * blfT = Transpose(blfw.SpMat()); SparseMatrix * diff = Add(1.0,blf.SpMat(),-1.0,*blfT); REQUIRE( diff->MaxNorm() < tol ); delete blfT; delete diff; } } SECTION("Mapping H1 to H1") { BilinearForm m_h1(&fespace_h1); m_h1.AddDomainIntegrator(new MassIntegrator()); m_h1.Assemble(); m_h1.Finalize(); GridFunction g_h1(&fespace_h1); Vector tmp_h1(fespace_h1.GetNDofs()); SECTION("Without Coefficient") { MixedBilinearForm blf(&fespace_h1, &fespace_h1); blf.AddDomainIntegrator(new MixedScalarMassIntegrator()); blf.Assemble(); blf.Finalize(); blf.Mult(f_h1,tmp_h1); g_h1 = 0.0; CG(m_h1, tmp_h1, g_h1, 0, 200, cg_rtol * cg_rtol, 0.0); REQUIRE( g_h1.ComputeL2Error(f3_coef) < tol ); } SECTION("With Coefficient") { MixedBilinearForm blf(&fespace_h1, &fespace_h1); blf.AddDomainIntegrator(new MixedScalarMassIntegrator(q3_coef)); blf.Assemble(); blf.Finalize(); blf.Mult(f_h1,tmp_h1); g_h1 = 0.0; CG(m_h1, tmp_h1, g_h1, 0, 200, cg_rtol * cg_rtol, 0.0); REQUIRE( g_h1.ComputeL2Error(qf3_coef) < tol ); } } } SECTION("Operators on L2") { L2_FECollection fec_l2(order, dim); FiniteElementSpace fespace_l2(&mesh, &fec_l2); GridFunction f_l2(&fespace_l2); f_l2.ProjectCoefficient(f3_coef); SECTION("Mapping L2 to L2") { BilinearForm m_l2(&fespace_l2); m_l2.AddDomainIntegrator(new MassIntegrator()); m_l2.Assemble(); m_l2.Finalize(); GridFunction g_l2(&fespace_l2); Vector tmp_l2(fespace_l2.GetNDofs()); SECTION("Without Coefficient") { MixedBilinearForm blf(&fespace_l2, &fespace_l2); blf.AddDomainIntegrator(new MixedScalarMassIntegrator()); blf.Assemble(); blf.Finalize(); blf.Mult(f_l2,tmp_l2); g_l2 = 0.0; CG(m_l2, tmp_l2, g_l2, 0, 200, cg_rtol * cg_rtol, 0.0); REQUIRE( g_l2.ComputeL2Error(f3_coef) < tol ); } SECTION("With Coefficient") { MixedBilinearForm blf(&fespace_l2, &fespace_l2); blf.AddDomainIntegrator(new MixedScalarMassIntegrator(q3_coef)); blf.Assemble(); blf.Finalize(); blf.Mult(f_l2,tmp_l2); g_l2 = 0.0; CG(m_l2, tmp_l2, g_l2, 0, 200, cg_rtol * cg_rtol, 0.0); REQUIRE( g_l2.ComputeL2Error(qf3_coef) < tol ); } } SECTION("Mapping L2 to H1") { H1_FECollection fec_h1(order, dim); FiniteElementSpace fespace_h1(&mesh, &fec_h1); BilinearForm m_h1(&fespace_h1); m_h1.AddDomainIntegrator(new MassIntegrator()); m_h1.Assemble(); m_h1.Finalize(); GridFunction g_h1(&fespace_h1); Vector tmp_h1(fespace_h1.GetNDofs()); SECTION("Without Coefficient") { MixedBilinearForm blf(&fespace_l2, &fespace_h1); blf.AddDomainIntegrator(new MixedScalarMassIntegrator()); blf.Assemble(); blf.Finalize(); blf.Mult(f_l2,tmp_h1); g_h1 = 0.0; CG(m_h1, tmp_h1, g_h1, 0, 200, cg_rtol * cg_rtol, 0.0); REQUIRE( g_h1.ComputeL2Error(f3_coef) < tol ); MixedBilinearForm blfw(&fespace_h1, &fespace_l2); blfw.AddDomainIntegrator(new MixedScalarMassIntegrator()); blfw.Assemble(); blfw.Finalize(); SparseMatrix * blfT = Transpose(blfw.SpMat()); SparseMatrix * diff = Add(1.0,blf.SpMat(),-1.0,*blfT); REQUIRE( diff->MaxNorm() < tol ); delete blfT; delete diff; } SECTION("With Coefficient") { MixedBilinearForm blf(&fespace_l2, &fespace_h1); blf.AddDomainIntegrator(new MixedScalarMassIntegrator(q3_coef)); blf.Assemble(); blf.Finalize(); blf.Mult(f_l2,tmp_h1); g_h1 = 0.0; CG(m_h1, tmp_h1, g_h1, 0, 200, cg_rtol * cg_rtol, 0.0); REQUIRE( g_h1.ComputeL2Error(qf3_coef) < tol ); MixedBilinearForm blfw(&fespace_h1, &fespace_l2); blfw.AddDomainIntegrator(new MixedScalarMassIntegrator(q3_coef)); blfw.Assemble(); blfw.Finalize(); SparseMatrix * blfT = Transpose(blfw.SpMat()); SparseMatrix * diff = Add(1.0,blf.SpMat(),-1.0,*blfT); REQUIRE( diff->MaxNorm() < tol ); delete blfT; delete diff; } } } } TEST_CASE("3D Bilinear Vector Mass Integrators", "[MixedVectorMassIntegrator]" "[MixedVectorIntegrator]" "[BilinearFormIntegrator]" "[NonlinearFormIntegrator]") { int order = 2, n = 1, dim = 3; double cg_rtol = 1e-14; double tol = 1e-9; Mesh mesh(n, n, n, Element::HEXAHEDRON, 1, 2.0, 3.0, 5.0); VectorFunctionCoefficient F3_coef(dim, F3); FunctionCoefficient q3_coef(q3); VectorFunctionCoefficient D3_coef(dim, V3); MatrixFunctionCoefficient M3_coef(dim, M3); MatrixFunctionCoefficient MT3_coef(dim, MT3); VectorFunctionCoefficient qF3_coef(dim, qF3); VectorFunctionCoefficient DF3_coef(dim, DF3); VectorFunctionCoefficient MF3_coef(dim, MF3); SECTION("Operators on ND") { ND_FECollection fec_nd(order, dim); FiniteElementSpace fespace_nd(&mesh, &fec_nd); GridFunction f_nd(&fespace_nd); f_nd.ProjectCoefficient(F3_coef); SECTION("Mapping ND to RT") { { // Tests requiring an RT space with same order of // convergence as the ND space RT_FECollection fec_rt(order - 1, dim); FiniteElementSpace fespace_rt(&mesh, &fec_rt); BilinearForm m_rt(&fespace_rt); m_rt.AddDomainIntegrator(new VectorFEMassIntegrator()); m_rt.Assemble(); m_rt.Finalize(); GridFunction g_rt(&fespace_rt); Vector tmp_rt(fespace_rt.GetNDofs()); SECTION("Without Coefficient") { MixedBilinearForm blf(&fespace_nd, &fespace_rt); blf.AddDomainIntegrator(new MixedVectorMassIntegrator()); blf.Assemble(); blf.Finalize(); blf.Mult(f_nd,tmp_rt); g_rt = 0.0; CG(m_rt, tmp_rt, g_rt, 0, 200, cg_rtol * cg_rtol, 0.0); REQUIRE( g_rt.ComputeL2Error(F3_coef) < tol ); MixedBilinearForm blfw(&fespace_rt, &fespace_nd); blfw.AddDomainIntegrator(new MixedVectorMassIntegrator()); blfw.Assemble(); blfw.Finalize(); SparseMatrix * blfT = Transpose(blfw.SpMat()); SparseMatrix * diff = Add(1.0,blf.SpMat(),-1.0,*blfT); REQUIRE( diff->MaxNorm() < tol ); delete blfT; delete diff; MixedBilinearForm blfv(&fespace_nd, &fespace_rt); blfv.AddDomainIntegrator(new VectorFEMassIntegrator()); blfv.Assemble(); blfv.Finalize(); SparseMatrix * diffv = Add(1.0,blf.SpMat(),-1.0,blfv.SpMat()); REQUIRE( diffv->MaxNorm() < tol ); delete diffv; } } { // Tests requiring a higher order RT space RT_FECollection fec_rt(order, dim); FiniteElementSpace fespace_rt(&mesh, &fec_rt); BilinearForm m_rt(&fespace_rt); m_rt.AddDomainIntegrator(new VectorFEMassIntegrator()); m_rt.Assemble(); m_rt.Finalize(); GridFunction g_rt(&fespace_rt); Vector tmp_rt(fespace_rt.GetNDofs()); SECTION("With Scalar Coefficient") { MixedBilinearForm blf(&fespace_nd, &fespace_rt); blf.AddDomainIntegrator(new MixedVectorMassIntegrator(q3_coef)); blf.Assemble(); blf.Finalize(); blf.Mult(f_nd,tmp_rt); g_rt = 0.0; CG(m_rt, tmp_rt, g_rt, 0, 200, cg_rtol * cg_rtol, 0.0); REQUIRE( g_rt.ComputeL2Error(qF3_coef) < tol ); MixedBilinearForm blfw(&fespace_rt, &fespace_nd); blfw.AddDomainIntegrator(new MixedVectorMassIntegrator(q3_coef)); blfw.Assemble(); blfw.Finalize(); SparseMatrix * blfT = Transpose(blfw.SpMat()); SparseMatrix * diff = Add(1.0,blf.SpMat(),-1.0,*blfT); REQUIRE( diff->MaxNorm() < tol ); delete blfT; delete diff; } SECTION("With Diagonal Matrix Coefficient") { MixedBilinearForm blf(&fespace_nd, &fespace_rt); blf.AddDomainIntegrator(new MixedVectorMassIntegrator(D3_coef)); blf.Assemble(); blf.Finalize(); blf.Mult(f_nd,tmp_rt); g_rt = 0.0; CG(m_rt, tmp_rt, g_rt, 0, 200, cg_rtol * cg_rtol, 0.0); REQUIRE( g_rt.ComputeL2Error(DF3_coef) < tol ); MixedBilinearForm blfw(&fespace_rt, &fespace_nd); blfw.AddDomainIntegrator( new MixedVectorMassIntegrator(D3_coef)); blfw.Assemble(); blfw.Finalize(); SparseMatrix * blfT = Transpose(blfw.SpMat()); SparseMatrix * diff = Add(1.0,blf.SpMat(),-1.0,*blfT); REQUIRE( diff->MaxNorm() < tol ); delete blfT; delete diff; } SECTION("With Matrix Coefficient") { MixedBilinearForm blf(&fespace_nd, &fespace_rt); blf.AddDomainIntegrator(new MixedVectorMassIntegrator(M3_coef)); blf.Assemble(); blf.Finalize(); blf.Mult(f_nd,tmp_rt); g_rt = 0.0; CG(m_rt, tmp_rt, g_rt, 0, 200, cg_rtol * cg_rtol, 0.0); REQUIRE( g_rt.ComputeL2Error(MF3_coef) < tol ); MixedBilinearForm blfw(&fespace_rt, &fespace_nd); blfw.AddDomainIntegrator( new MixedVectorMassIntegrator(MT3_coef)); blfw.Assemble(); blfw.Finalize(); SparseMatrix * blfT = Transpose(blfw.SpMat()); SparseMatrix * diff = Add(1.0,blf.SpMat(),-1.0,*blfT); REQUIRE( diff->MaxNorm() < tol ); delete blfT; delete diff; } } } SECTION("Mapping ND to ND") { { // Tests requiring an ND test space with same order of // convergence as the ND trial space BilinearForm m_nd(&fespace_nd); m_nd.AddDomainIntegrator(new VectorFEMassIntegrator()); m_nd.Assemble(); m_nd.Finalize(); GridFunction g_nd(&fespace_nd); Vector tmp_nd(fespace_nd.GetNDofs()); SECTION("Without Coefficient") { MixedBilinearForm blf(&fespace_nd, &fespace_nd); blf.AddDomainIntegrator(new MixedVectorMassIntegrator()); blf.Assemble(); blf.Finalize(); blf.Mult(f_nd,tmp_nd); g_nd = 0.0; CG(m_nd, tmp_nd, g_nd, 0, 200, cg_rtol * cg_rtol, 0.0); REQUIRE( g_nd.ComputeL2Error(F3_coef) < tol ); MixedBilinearForm blfw(&fespace_nd, &fespace_nd); blfw.AddDomainIntegrator(new MixedVectorMassIntegrator()); blfw.Assemble(); blfw.Finalize(); SparseMatrix * blfT = Transpose(blfw.SpMat()); SparseMatrix * diff = Add(1.0,blf.SpMat(),-1.0,*blfT); REQUIRE( diff->MaxNorm() < tol ); delete blfT; delete diff; MixedBilinearForm blfv(&fespace_nd, &fespace_nd); blfv.AddDomainIntegrator(new VectorFEMassIntegrator()); blfv.Assemble(); blfv.Finalize(); SparseMatrix * diffv = Add(1.0,blf.SpMat(),-1.0,blfv.SpMat()); REQUIRE( diffv->MaxNorm() < tol ); delete diffv; } } { // Tests requiring a higher order ND space ND_FECollection fec_ndp(order+1, dim); FiniteElementSpace fespace_ndp(&mesh, &fec_ndp); BilinearForm m_ndp(&fespace_ndp); m_ndp.AddDomainIntegrator(new VectorFEMassIntegrator()); m_ndp.Assemble(); m_ndp.Finalize(); GridFunction g_ndp(&fespace_ndp); Vector tmp_ndp(fespace_ndp.GetNDofs()); SECTION("With Scalar Coefficient") { MixedBilinearForm blf(&fespace_nd, &fespace_ndp); blf.AddDomainIntegrator(new MixedVectorMassIntegrator(q3_coef)); blf.Assemble(); blf.Finalize(); blf.Mult(f_nd,tmp_ndp); g_ndp = 0.0; CG(m_ndp, tmp_ndp, g_ndp, 0, 200, cg_rtol * cg_rtol, 0.0); REQUIRE( g_ndp.ComputeL2Error(qF3_coef) < tol ); MixedBilinearForm blfw(&fespace_ndp, &fespace_nd); blfw.AddDomainIntegrator(new MixedVectorMassIntegrator(q3_coef)); blfw.Assemble(); blfw.Finalize(); SparseMatrix * blfT = Transpose(blfw.SpMat()); SparseMatrix * diff = Add(1.0,blf.SpMat(),-1.0,*blfT); REQUIRE( diff->MaxNorm() < tol ); delete blfT; delete diff; } SECTION("With Diagonal Matrix Coefficient") { MixedBilinearForm blf(&fespace_nd, &fespace_ndp); blf.AddDomainIntegrator(new MixedVectorMassIntegrator(D3_coef)); blf.Assemble(); blf.Finalize(); blf.Mult(f_nd,tmp_ndp); g_ndp = 0.0; CG(m_ndp, tmp_ndp, g_ndp, 0, 200, cg_rtol * cg_rtol, 0.0); REQUIRE( g_ndp.ComputeL2Error(DF3_coef) < tol ); MixedBilinearForm blfw(&fespace_ndp, &fespace_nd); blfw.AddDomainIntegrator( new MixedVectorMassIntegrator(D3_coef)); blfw.Assemble(); blfw.Finalize(); SparseMatrix * blfT = Transpose(blfw.SpMat()); SparseMatrix * diff = Add(1.0,blf.SpMat(),-1.0,*blfT); REQUIRE( diff->MaxNorm() < tol ); delete blfT; delete diff; } SECTION("With Matrix Coefficient") { MixedBilinearForm blf(&fespace_nd, &fespace_ndp); blf.AddDomainIntegrator(new MixedVectorMassIntegrator(M3_coef)); blf.Assemble(); blf.Finalize(); blf.Mult(f_nd,tmp_ndp); g_ndp = 0.0; CG(m_ndp, tmp_ndp, g_ndp, 0, 200, cg_rtol * cg_rtol, 0.0); REQUIRE( g_ndp.ComputeL2Error(MF3_coef) < tol ); MixedBilinearForm blfw(&fespace_ndp, &fespace_nd); blfw.AddDomainIntegrator( new MixedVectorMassIntegrator(MT3_coef)); blfw.Assemble(); blfw.Finalize(); SparseMatrix * blfT = Transpose(blfw.SpMat()); SparseMatrix * diff = Add(1.0,blf.SpMat(),-1.0,*blfT); REQUIRE( diff->MaxNorm() < tol ); delete blfT; delete diff; } } } } SECTION("Operators on RT") { RT_FECollection fec_rt(order - 1, dim); FiniteElementSpace fespace_rt(&mesh, &fec_rt); GridFunction f_rt(&fespace_rt); f_rt.ProjectCoefficient(F3_coef); SECTION("Mapping RT to ND") { { // Tests requiring an ND test space with same order of // convergence as the RT trial space ND_FECollection fec_nd(order, dim); FiniteElementSpace fespace_nd(&mesh, &fec_nd); BilinearForm m_nd(&fespace_nd); m_nd.AddDomainIntegrator(new VectorFEMassIntegrator()); m_nd.Assemble(); m_nd.Finalize(); GridFunction g_nd(&fespace_nd); Vector tmp_nd(fespace_nd.GetNDofs()); SECTION("Without Coefficient") { MixedBilinearForm blf(&fespace_rt, &fespace_nd); blf.AddDomainIntegrator(new MixedVectorMassIntegrator()); blf.Assemble(); blf.Finalize(); blf.Mult(f_rt,tmp_nd); g_nd = 0.0; CG(m_nd, tmp_nd, g_nd, 0, 200, cg_rtol * cg_rtol, 0.0); REQUIRE( g_nd.ComputeL2Error(F3_coef) < tol ); MixedBilinearForm blfw(&fespace_nd, &fespace_rt); blfw.AddDomainIntegrator(new MixedVectorMassIntegrator()); blfw.Assemble(); blfw.Finalize(); SparseMatrix * blfT = Transpose(blfw.SpMat()); SparseMatrix * diff = Add(1.0,blf.SpMat(),-1.0,*blfT); REQUIRE( diff->MaxNorm() < tol ); delete blfT; delete diff; MixedBilinearForm blfv(&fespace_rt, &fespace_nd); blfv.AddDomainIntegrator(new VectorFEMassIntegrator()); blfv.Assemble(); blfv.Finalize(); SparseMatrix * diffv = Add(1.0,blf.SpMat(),-1.0,blfv.SpMat()); REQUIRE( diffv->MaxNorm() < tol ); delete diffv; } } { // Tests requiring a higher order ND space ND_FECollection fec_nd(order + 1, dim); FiniteElementSpace fespace_nd(&mesh, &fec_nd); BilinearForm m_nd(&fespace_nd); m_nd.AddDomainIntegrator(new VectorFEMassIntegrator()); m_nd.Assemble(); m_nd.Finalize(); GridFunction g_nd(&fespace_nd); Vector tmp_nd(fespace_nd.GetNDofs()); SECTION("With Scalar Coefficient") { MixedBilinearForm blf(&fespace_rt, &fespace_nd); blf.AddDomainIntegrator(new MixedVectorMassIntegrator(q3_coef)); blf.Assemble(); blf.Finalize(); blf.Mult(f_rt,tmp_nd); g_nd = 0.0; CG(m_nd, tmp_nd, g_nd, 0, 200, cg_rtol * cg_rtol, 0.0); REQUIRE( g_nd.ComputeL2Error(qF3_coef) < tol ); MixedBilinearForm blfw(&fespace_nd, &fespace_rt); blfw.AddDomainIntegrator(new MixedVectorMassIntegrator(q3_coef)); blfw.Assemble(); blfw.Finalize(); SparseMatrix * blfT = Transpose(blfw.SpMat()); SparseMatrix * diff = Add(1.0,blf.SpMat(),-1.0,*blfT); REQUIRE( diff->MaxNorm() < tol ); delete blfT; delete diff; } SECTION("With Diagonal Matrix Coefficient") { MixedBilinearForm blf(&fespace_rt, &fespace_nd); blf.AddDomainIntegrator(new MixedVectorMassIntegrator(D3_coef)); blf.Assemble(); blf.Finalize(); blf.Mult(f_rt,tmp_nd); g_nd = 0.0; CG(m_nd, tmp_nd, g_nd, 0, 200, cg_rtol * cg_rtol, 0.0); REQUIRE( g_nd.ComputeL2Error(DF3_coef) < tol ); MixedBilinearForm blfw(&fespace_nd, &fespace_rt); blfw.AddDomainIntegrator( new MixedVectorMassIntegrator(D3_coef)); blfw.Assemble(); blfw.Finalize(); SparseMatrix * blfT = Transpose(blfw.SpMat()); SparseMatrix * diff = Add(1.0,blf.SpMat(),-1.0,*blfT); REQUIRE( diff->MaxNorm() < tol ); delete blfT; delete diff; } SECTION("With Matrix Coefficient") { MixedBilinearForm blf(&fespace_rt, &fespace_nd); blf.AddDomainIntegrator(new MixedVectorMassIntegrator(M3_coef)); blf.Assemble(); blf.Finalize(); blf.Mult(f_rt,tmp_nd); g_nd = 0.0; CG(m_nd, tmp_nd, g_nd, 0, 200, cg_rtol * cg_rtol, 0.0); REQUIRE( g_nd.ComputeL2Error(MF3_coef) < tol ); MixedBilinearForm blfw(&fespace_nd, &fespace_rt); blfw.AddDomainIntegrator( new MixedVectorMassIntegrator(MT3_coef)); blfw.Assemble(); blfw.Finalize(); SparseMatrix * blfT = Transpose(blfw.SpMat()); SparseMatrix * diff = Add(1.0,blf.SpMat(),-1.0,*blfT); REQUIRE( diff->MaxNorm() < tol ); delete blfT; delete diff; } } } SECTION("Mapping RT to RT") { { // Tests requiring an RT test space with same order of // convergence as the RT trial space BilinearForm m_rt(&fespace_rt); m_rt.AddDomainIntegrator(new VectorFEMassIntegrator()); m_rt.Assemble(); m_rt.Finalize(); GridFunction g_rt(&fespace_rt); Vector tmp_rt(fespace_rt.GetNDofs()); SECTION("Without Coefficient") { MixedBilinearForm blf(&fespace_rt, &fespace_rt); blf.AddDomainIntegrator(new MixedVectorMassIntegrator()); blf.Assemble(); blf.Finalize(); blf.Mult(f_rt,tmp_rt); g_rt = 0.0; CG(m_rt, tmp_rt, g_rt, 0, 200, cg_rtol * cg_rtol, 0.0); REQUIRE( g_rt.ComputeL2Error(F3_coef) < tol ); MixedBilinearForm blfw(&fespace_rt, &fespace_rt); blfw.AddDomainIntegrator(new MixedVectorMassIntegrator()); blfw.Assemble(); blfw.Finalize(); SparseMatrix * blfT = Transpose(blfw.SpMat()); SparseMatrix * diff = Add(1.0,blf.SpMat(),-1.0,*blfT); REQUIRE( diff->MaxNorm() < tol ); delete blfT; delete diff; MixedBilinearForm blfv(&fespace_rt, &fespace_rt); blfv.AddDomainIntegrator(new VectorFEMassIntegrator()); blfv.Assemble(); blfv.Finalize(); SparseMatrix * diffv = Add(1.0,blf.SpMat(),-1.0,blfv.SpMat()); REQUIRE( diffv->MaxNorm() < tol ); delete diffv; } } { // Tests requiring a higher order RT space RT_FECollection fec_rtp(order, dim); FiniteElementSpace fespace_rtp(&mesh, &fec_rtp); BilinearForm m_rtp(&fespace_rtp); m_rtp.AddDomainIntegrator(new VectorFEMassIntegrator()); m_rtp.Assemble(); m_rtp.Finalize(); GridFunction g_rtp(&fespace_rtp); Vector tmp_rtp(fespace_rtp.GetNDofs()); SECTION("With Scalar Coefficient") { MixedBilinearForm blf(&fespace_rt, &fespace_rtp); blf.AddDomainIntegrator(new MixedVectorMassIntegrator(q3_coef)); blf.Assemble(); blf.Finalize(); blf.Mult(f_rt,tmp_rtp); g_rtp = 0.0; CG(m_rtp, tmp_rtp, g_rtp, 0, 200, cg_rtol * cg_rtol, 0.0); REQUIRE( g_rtp.ComputeL2Error(qF3_coef) < tol ); MixedBilinearForm blfw(&fespace_rtp, &fespace_rt); blfw.AddDomainIntegrator(new MixedVectorMassIntegrator(q3_coef)); blfw.Assemble(); blfw.Finalize(); SparseMatrix * blfT = Transpose(blfw.SpMat()); SparseMatrix * diff = Add(1.0,blf.SpMat(),-1.0,*blfT); REQUIRE( diff->MaxNorm() < tol ); delete blfT; delete diff; } SECTION("With Diagonal Matrix Coefficient") { MixedBilinearForm blf(&fespace_rt, &fespace_rtp); blf.AddDomainIntegrator(new MixedVectorMassIntegrator(D3_coef)); blf.Assemble(); blf.Finalize(); blf.Mult(f_rt,tmp_rtp); g_rtp = 0.0; CG(m_rtp, tmp_rtp, g_rtp, 0, 200, cg_rtol * cg_rtol, 0.0); REQUIRE( g_rtp.ComputeL2Error(DF3_coef) < tol ); MixedBilinearForm blfw(&fespace_rtp, &fespace_rt); blfw.AddDomainIntegrator( new MixedVectorMassIntegrator(D3_coef)); blfw.Assemble(); blfw.Finalize(); SparseMatrix * blfT = Transpose(blfw.SpMat()); SparseMatrix * diff = Add(1.0,blf.SpMat(),-1.0,*blfT); REQUIRE( diff->MaxNorm() < tol ); delete blfT; delete diff; } SECTION("With Matrix Coefficient") { MixedBilinearForm blf(&fespace_rt, &fespace_rtp); blf.AddDomainIntegrator(new MixedVectorMassIntegrator(M3_coef)); blf.Assemble(); blf.Finalize(); blf.Mult(f_rt,tmp_rtp); g_rtp = 0.0; CG(m_rtp, tmp_rtp, g_rtp, 0, 200, cg_rtol * cg_rtol, 0.0); REQUIRE( g_rtp.ComputeL2Error(MF3_coef) < tol ); MixedBilinearForm blfw(&fespace_rtp, &fespace_rt); blfw.AddDomainIntegrator( new MixedVectorMassIntegrator(MT3_coef)); blfw.Assemble(); blfw.Finalize(); SparseMatrix * blfT = Transpose(blfw.SpMat()); SparseMatrix * diff = Add(1.0,blf.SpMat(),-1.0,*blfT); REQUIRE( diff->MaxNorm() < tol ); delete blfT; delete diff; } } } } } TEST_CASE("3D Bilinear Gradient Integrator", "[MixedVectorGradientIntegrator]" "[MixedVectorIntegrator]" "[BilinearFormIntegrator]" "[NonlinearFormIntegrator]") { int order = 2, n = 1, dim = 3; double cg_rtol = 1e-14; double tol = 1e-9; Mesh mesh(n, n, n, Element::HEXAHEDRON, 1, 2.0, 3.0, 5.0); // Mesh mesh(n, n, n, Element::HEXAHEDRON, 1, 1.0, 1.0, 1.0); FunctionCoefficient f3_coef(f3); FunctionCoefficient q3_coef(q3); VectorFunctionCoefficient D3_coef(dim, V3); MatrixFunctionCoefficient M3_coef(dim, M3); VectorFunctionCoefficient df3_coef(dim, Grad_f3); VectorFunctionCoefficient qdf3_coef(dim, qGrad_f3); VectorFunctionCoefficient Ddf3_coef(dim, DGrad_f3); VectorFunctionCoefficient Mdf3_coef(dim, MGrad_f3); SECTION("Operators on H1") { H1_FECollection fec_h1(order, dim); FiniteElementSpace fespace_h1(&mesh, &fec_h1); GridFunction f_h1(&fespace_h1); f_h1.ProjectCoefficient(f3_coef); SECTION("Mapping H1 to ND") { ND_FECollection fec_nd(order, dim); FiniteElementSpace fespace_nd(&mesh, &fec_nd); BilinearForm m_nd(&fespace_nd); m_nd.AddDomainIntegrator(new VectorFEMassIntegrator()); m_nd.Assemble(); m_nd.Finalize(); GridFunction g_nd(&fespace_nd); Vector tmp_nd(fespace_nd.GetNDofs()); SECTION("Without Coefficient") { MixedBilinearForm blf(&fespace_h1, &fespace_nd); blf.AddDomainIntegrator(new MixedVectorGradientIntegrator()); blf.Assemble(); blf.Finalize(); blf.Mult(f_h1,tmp_nd); g_nd = 0.0; CG(m_nd, tmp_nd, g_nd, 0, 200, cg_rtol * cg_rtol, 0.0); REQUIRE( g_nd.ComputeL2Error(df3_coef) < tol ); } SECTION("With Scalar Coefficient") { MixedBilinearForm blf(&fespace_h1, &fespace_nd); blf.AddDomainIntegrator( new MixedVectorGradientIntegrator(q3_coef)); blf.Assemble(); blf.Finalize(); blf.Mult(f_h1,tmp_nd); g_nd = 0.0; CG(m_nd, tmp_nd, g_nd, 0, 200, cg_rtol * cg_rtol, 0.0); REQUIRE( g_nd.ComputeL2Error(qdf3_coef) < tol ); } SECTION("With Diagonal Matrix Coefficient") { MixedBilinearForm blf(&fespace_h1, &fespace_nd); blf.AddDomainIntegrator( new MixedVectorGradientIntegrator(D3_coef)); blf.Assemble(); blf.Finalize(); blf.Mult(f_h1,tmp_nd); g_nd = 0.0; CG(m_nd, tmp_nd, g_nd, 0, 200, cg_rtol * cg_rtol, 0.0); REQUIRE( g_nd.ComputeL2Error(Ddf3_coef) < tol ); } SECTION("With Matrix Coefficient") { MixedBilinearForm blf(&fespace_h1, &fespace_nd); blf.AddDomainIntegrator( new MixedVectorGradientIntegrator(M3_coef)); blf.Assemble(); blf.Finalize(); blf.Mult(f_h1,tmp_nd); g_nd = 0.0; CG(m_nd, tmp_nd, g_nd, 0, 200, cg_rtol * cg_rtol, 0.0); REQUIRE( g_nd.ComputeL2Error(Mdf3_coef) < tol ); } } SECTION("Mapping H1 to RT") { RT_FECollection fec_rt(order - 1, dim); FiniteElementSpace fespace_rt(&mesh, &fec_rt); BilinearForm m_rt(&fespace_rt); m_rt.AddDomainIntegrator(new VectorFEMassIntegrator()); m_rt.Assemble(); m_rt.Finalize(); GridFunction g_rt(&fespace_rt); Vector tmp_rt(fespace_rt.GetNDofs()); SECTION("Without Coefficient") { MixedBilinearForm blf(&fespace_h1, &fespace_rt); blf.AddDomainIntegrator(new MixedVectorGradientIntegrator()); blf.Assemble(); blf.Finalize(); blf.Mult(f_h1,tmp_rt); g_rt = 0.0; CG(m_rt, tmp_rt, g_rt, 0, 200, cg_rtol * cg_rtol, 0.0); REQUIRE( g_rt.ComputeL2Error(df3_coef) < tol ); } SECTION("With Scalar Coefficient") { MixedBilinearForm blf(&fespace_h1, &fespace_rt); blf.AddDomainIntegrator( new MixedVectorGradientIntegrator(q3_coef)); blf.Assemble(); blf.Finalize(); blf.Mult(f_h1,tmp_rt); g_rt = 0.0; CG(m_rt, tmp_rt, g_rt, 0, 200, cg_rtol * cg_rtol, 0.0); REQUIRE( g_rt.ComputeL2Error(qdf3_coef) < tol ); } SECTION("With Diagonal Matrix Coefficient") { MixedBilinearForm blf(&fespace_h1, &fespace_rt); blf.AddDomainIntegrator( new MixedVectorGradientIntegrator(D3_coef)); blf.Assemble(); blf.Finalize(); blf.Mult(f_h1,tmp_rt); g_rt = 0.0; CG(m_rt, tmp_rt, g_rt, 0, 200, cg_rtol * cg_rtol, 0.0); REQUIRE( g_rt.ComputeL2Error(Ddf3_coef) < tol ); } SECTION("With Matrix Coefficient") { MixedBilinearForm blf(&fespace_h1, &fespace_rt); blf.AddDomainIntegrator( new MixedVectorGradientIntegrator(M3_coef)); blf.Assemble(); blf.Finalize(); blf.Mult(f_h1,tmp_rt); g_rt = 0.0; CG(m_rt, tmp_rt, g_rt, 0, 200, cg_rtol * cg_rtol, 0.0); REQUIRE( g_rt.ComputeL2Error(Mdf3_coef) < tol ); } } } } TEST_CASE("3D Bilinear Curl Integrator", "[MixedVectorCurlIntegrator]" "[MixedVectorIntegrator]" "[BilinearFormIntegrator]" "[NonlinearFormIntegrator]") { int order = 2, n = 1, dim = 3; double cg_rtol = 1e-14; double tol = 1e-9; Mesh mesh(n, n, n, Element::HEXAHEDRON, 1, 2.0, 3.0, 5.0); VectorFunctionCoefficient F3_coef(dim, F3); FunctionCoefficient q3_coef(q3); VectorFunctionCoefficient D3_coef(dim, V3); MatrixFunctionCoefficient M3_coef(dim, M3); VectorFunctionCoefficient dF3_coef(dim, CurlF3); VectorFunctionCoefficient qdF3_coef(dim, qCurlF3); VectorFunctionCoefficient DdF3_coef(dim, DCurlF3); VectorFunctionCoefficient MdF3_coef(dim, MCurlF3); SECTION("Operators on ND") { ND_FECollection fec_nd(order, dim); FiniteElementSpace fespace_nd(&mesh, &fec_nd); GridFunction f_nd(&fespace_nd); f_nd.ProjectCoefficient(F3_coef); SECTION("Mapping ND to RT") { RT_FECollection fec_rt(order - 1, dim); FiniteElementSpace fespace_rt(&mesh, &fec_rt); BilinearForm m_rt(&fespace_rt); m_rt.AddDomainIntegrator(new VectorFEMassIntegrator()); m_rt.Assemble(); m_rt.Finalize(); GridFunction g_rt(&fespace_rt); Vector tmp_rt(fespace_rt.GetNDofs()); SECTION("Without Coefficient") { MixedBilinearForm blf(&fespace_nd, &fespace_rt); blf.AddDomainIntegrator(new MixedVectorCurlIntegrator()); blf.Assemble(); blf.Finalize(); blf.Mult(f_nd,tmp_rt); g_rt = 0.0; CG(m_rt, tmp_rt, g_rt, 0, 200, cg_rtol * cg_rtol, 0.0); REQUIRE( g_rt.ComputeL2Error(dF3_coef) < tol ); } SECTION("With Scalar Coefficient") { MixedBilinearForm blf(&fespace_nd, &fespace_rt); blf.AddDomainIntegrator( new MixedVectorCurlIntegrator(q3_coef)); blf.Assemble(); blf.Finalize(); blf.Mult(f_nd,tmp_rt); g_rt = 0.0; CG(m_rt, tmp_rt, g_rt, 0, 200, cg_rtol * cg_rtol, 0.0); REQUIRE( g_rt.ComputeL2Error(qdF3_coef) < tol ); } SECTION("With Diagonal Matrix Coefficient") { MixedBilinearForm blf(&fespace_nd, &fespace_rt); blf.AddDomainIntegrator( new MixedVectorCurlIntegrator(D3_coef)); blf.Assemble(); blf.Finalize(); blf.Mult(f_nd,tmp_rt); g_rt = 0.0; CG(m_rt, tmp_rt, g_rt, 0, 200, cg_rtol * cg_rtol, 0.0); REQUIRE( g_rt.ComputeL2Error(DdF3_coef) < tol ); } SECTION("With Matrix Coefficient") { MixedBilinearForm blf(&fespace_nd, &fespace_rt); blf.AddDomainIntegrator( new MixedVectorCurlIntegrator(M3_coef)); blf.Assemble(); blf.Finalize(); blf.Mult(f_nd,tmp_rt); g_rt = 0.0; CG(m_rt, tmp_rt, g_rt, 0, 200, cg_rtol * cg_rtol, 0.0); REQUIRE( g_rt.ComputeL2Error(MdF3_coef) < tol ); } } SECTION("Mapping ND to ND") { BilinearForm m_nd(&fespace_nd); m_nd.AddDomainIntegrator(new VectorFEMassIntegrator()); m_nd.Assemble(); m_nd.Finalize(); GridFunction g_nd(&fespace_nd); Vector tmp_nd(fespace_nd.GetNDofs()); SECTION("Without Coefficient") { MixedBilinearForm blf(&fespace_nd, &fespace_nd); blf.AddDomainIntegrator(new MixedVectorCurlIntegrator()); blf.Assemble(); blf.Finalize(); blf.Mult(f_nd,tmp_nd); g_nd = 0.0; CG(m_nd, tmp_nd, g_nd, 0, 200, cg_rtol * cg_rtol, 0.0); REQUIRE( g_nd.ComputeL2Error(dF3_coef) < tol ); } SECTION("With Scalar Coefficient") { MixedBilinearForm blf(&fespace_nd, &fespace_nd); blf.AddDomainIntegrator( new MixedVectorCurlIntegrator(q3_coef)); blf.Assemble(); blf.Finalize(); blf.Mult(f_nd,tmp_nd); g_nd = 0.0; CG(m_nd, tmp_nd, g_nd, 0, 200, cg_rtol * cg_rtol, 0.0); REQUIRE( g_nd.ComputeL2Error(qdF3_coef) < tol ); } SECTION("With Diagonal Matrix Coefficient") { MixedBilinearForm blf(&fespace_nd, &fespace_nd); blf.AddDomainIntegrator( new MixedVectorCurlIntegrator(D3_coef)); blf.Assemble(); blf.Finalize(); blf.Mult(f_nd,tmp_nd); g_nd = 0.0; CG(m_nd, tmp_nd, g_nd, 0, 200, cg_rtol * cg_rtol, 0.0); REQUIRE( g_nd.ComputeL2Error(DdF3_coef) < tol ); } SECTION("With Matrix Coefficient") { MixedBilinearForm blf(&fespace_nd, &fespace_nd); blf.AddDomainIntegrator( new MixedVectorCurlIntegrator(M3_coef)); blf.Assemble(); blf.Finalize(); blf.Mult(f_nd,tmp_nd); g_nd = 0.0; CG(m_nd, tmp_nd, g_nd, 0, 200, cg_rtol * cg_rtol, 0.0); REQUIRE( g_nd.ComputeL2Error(MdF3_coef) < tol ); } } } } TEST_CASE("3D Bilinear Cross Product Gradient Integrator", "[MixedCrossGradIntegrator]" "[MixedVectorIntegrator]" "[BilinearFormIntegrator]" "[NonlinearFormIntegrator]") { int order = 2, n = 1, dim = 3; double cg_rtol = 1e-14; double tol = 1e-9; Mesh mesh(n, n, n, Element::HEXAHEDRON, 1, 2.0, 3.0, 5.0); FunctionCoefficient f3_coef(f3); VectorFunctionCoefficient V3_coef(dim, V3); VectorFunctionCoefficient Vxdf3_coef(dim, VcrossGrad_f3); SECTION("Operators on H1") { H1_FECollection fec_h1(order, dim); FiniteElementSpace fespace_h1(&mesh, &fec_h1); GridFunction f_h1(&fespace_h1); f_h1.ProjectCoefficient(f3_coef); SECTION("Mapping H1 to RT") { RT_FECollection fec_rt(order - 1, dim); FiniteElementSpace fespace_rt(&mesh, &fec_rt); BilinearForm m_rt(&fespace_rt); m_rt.AddDomainIntegrator(new VectorFEMassIntegrator()); m_rt.Assemble(); m_rt.Finalize(); GridFunction g_rt(&fespace_rt); Vector tmp_rt(fespace_rt.GetNDofs()); SECTION("With Vector Coefficient") { MixedBilinearForm blf(&fespace_h1, &fespace_rt); blf.AddDomainIntegrator( new MixedCrossGradIntegrator(V3_coef)); blf.Assemble(); blf.Finalize(); blf.Mult(f_h1,tmp_rt); g_rt = 0.0; CG(m_rt, tmp_rt, g_rt, 0, 200, cg_rtol * cg_rtol, 0.0); REQUIRE( g_rt.ComputeL2Error(Vxdf3_coef) < tol ); } } SECTION("Mapping H1 to ND") { ND_FECollection fec_nd(order, dim); FiniteElementSpace fespace_nd(&mesh, &fec_nd); BilinearForm m_nd(&fespace_nd); m_nd.AddDomainIntegrator(new VectorFEMassIntegrator()); m_nd.Assemble(); m_nd.Finalize(); GridFunction g_nd(&fespace_nd); Vector tmp_nd(fespace_nd.GetNDofs()); SECTION("With Vector Coefficient") { MixedBilinearForm blf(&fespace_h1, &fespace_nd); blf.AddDomainIntegrator( new MixedCrossGradIntegrator(V3_coef)); blf.Assemble(); blf.Finalize(); blf.Mult(f_h1,tmp_nd); g_nd = 0.0; CG(m_nd, tmp_nd, g_nd, 0, 200, cg_rtol * cg_rtol, 0.0); REQUIRE( g_nd.ComputeL2Error(Vxdf3_coef) < tol ); } } } } TEST_CASE("3D Bilinear Cross Product Curl Integrator", "[MixedCrossCurlIntegrator]" "[MixedVectorIntegrator]" "[BilinearFormIntegrator]" "[NonlinearFormIntegrator]") { int order = 2, n = 1, dim = 3; double cg_rtol = 1e-14; double tol = 1e-9; Mesh mesh(n, n, n, Element::HEXAHEDRON, 1, 2.0, 3.0, 5.0); VectorFunctionCoefficient F3_coef(dim, F3); VectorFunctionCoefficient V3_coef(dim, V3); VectorFunctionCoefficient VxdF3_coef(dim, VcrossCurlF3); SECTION("Operators on ND") { ND_FECollection fec_nd(order, dim); FiniteElementSpace fespace_nd(&mesh, &fec_nd); GridFunction f_nd(&fespace_nd); f_nd.ProjectCoefficient(F3_coef); SECTION("Mapping ND to RT") { RT_FECollection fec_rt(order - 1, dim); FiniteElementSpace fespace_rt(&mesh, &fec_rt); BilinearForm m_rt(&fespace_rt); m_rt.AddDomainIntegrator(new VectorFEMassIntegrator()); m_rt.Assemble(); m_rt.Finalize(); GridFunction g_rt(&fespace_rt); Vector tmp_rt(fespace_rt.GetNDofs()); SECTION("With Vector Coefficient") { MixedBilinearForm blf(&fespace_nd, &fespace_rt); blf.AddDomainIntegrator( new MixedCrossCurlIntegrator(V3_coef)); blf.Assemble(); blf.Finalize(); blf.Mult(f_nd,tmp_rt); g_rt = 0.0; CG(m_rt, tmp_rt, g_rt, 0, 200, cg_rtol * cg_rtol, 0.0); REQUIRE( g_rt.ComputeL2Error(VxdF3_coef) < tol ); } } SECTION("Mapping ND to ND") { BilinearForm m_nd(&fespace_nd); m_nd.AddDomainIntegrator(new VectorFEMassIntegrator()); m_nd.Assemble(); m_nd.Finalize(); GridFunction g_nd(&fespace_nd); Vector tmp_nd(fespace_nd.GetNDofs()); SECTION("With Vector Coefficient") { MixedBilinearForm blf(&fespace_nd, &fespace_nd); blf.AddDomainIntegrator( new MixedCrossCurlIntegrator(V3_coef)); blf.Assemble(); blf.Finalize(); blf.Mult(f_nd,tmp_nd); g_nd = 0.0; CG(m_nd, tmp_nd, g_nd, 0, 200, cg_rtol * cg_rtol, 0.0); REQUIRE( g_nd.ComputeL2Error(VxdF3_coef) < tol ); } } } } TEST_CASE("3D Bilinear Divergence Integrator", "[MixedScalarDivergenceIntegrator]" "[MixedScalarIntegrator]" "[BilinearFormIntegrator]" "[NonlinearFormIntegrator]") { int order = 2, n = 1, dim = 3; double cg_rtol = 1e-14; double tol = 1e-9; Mesh mesh(n, n, n, Element::HEXAHEDRON, 1, 2.0, 3.0, 5.0); VectorFunctionCoefficient F3_coef(dim, F3); FunctionCoefficient q3_coef(q3); FunctionCoefficient dF3_coef(DivF3); FunctionCoefficient qdF3_coef(qDivF3); SECTION("Operators on RT") { RT_FECollection fec_rt(order - 1, dim); FiniteElementSpace fespace_rt(&mesh, &fec_rt); GridFunction f_rt(&fespace_rt); f_rt.ProjectCoefficient(F3_coef); SECTION("Mapping RT to L2") { L2_FECollection fec_l2(order - 1, dim); FiniteElementSpace fespace_l2(&mesh, &fec_l2); BilinearForm m_l2(&fespace_l2); m_l2.AddDomainIntegrator(new MassIntegrator()); m_l2.Assemble(); m_l2.Finalize(); GridFunction g_l2(&fespace_l2); Vector tmp_l2(fespace_l2.GetNDofs()); SECTION("Without Coefficient") { MixedBilinearForm blf(&fespace_rt, &fespace_l2); blf.AddDomainIntegrator(new MixedScalarDivergenceIntegrator()); blf.Assemble(); blf.Finalize(); blf.Mult(f_rt,tmp_l2); g_l2 = 0.0; CG(m_l2, tmp_l2, g_l2, 0, 200, cg_rtol * cg_rtol, 0.0); REQUIRE( g_l2.ComputeL2Error(dF3_coef) < tol ); } SECTION("With Scalar Coefficient") { MixedBilinearForm blf(&fespace_rt, &fespace_l2); blf.AddDomainIntegrator( new MixedScalarDivergenceIntegrator(q3_coef)); blf.Assemble(); blf.Finalize(); blf.Mult(f_rt,tmp_l2); g_l2 = 0.0; CG(m_l2, tmp_l2, g_l2, 0, 200, cg_rtol * cg_rtol, 0.0); REQUIRE( g_l2.ComputeL2Error(qdF3_coef) < tol ); } } SECTION("Mapping RT to H1") { H1_FECollection fec_h1(order, dim); FiniteElementSpace fespace_h1(&mesh, &fec_h1); BilinearForm m_h1(&fespace_h1); m_h1.AddDomainIntegrator(new MassIntegrator()); m_h1.Assemble(); m_h1.Finalize(); GridFunction g_h1(&fespace_h1); Vector tmp_h1(fespace_h1.GetNDofs()); SECTION("Without Coefficient") { MixedBilinearForm blf(&fespace_rt, &fespace_h1); blf.AddDomainIntegrator(new MixedScalarDivergenceIntegrator()); blf.Assemble(); blf.Finalize(); blf.Mult(f_rt,tmp_h1); g_h1 = 0.0; CG(m_h1, tmp_h1, g_h1, 0, 200, cg_rtol * cg_rtol, 0.0); REQUIRE( g_h1.ComputeL2Error(dF3_coef) < tol ); } SECTION("With Scalar Coefficient") { MixedBilinearForm blf(&fespace_rt, &fespace_h1); blf.AddDomainIntegrator( new MixedScalarDivergenceIntegrator(q3_coef)); blf.Assemble(); blf.Finalize(); blf.Mult(f_rt,tmp_h1); g_h1 = 0.0; CG(m_h1, tmp_h1, g_h1, 0, 200, cg_rtol * cg_rtol, 0.0); REQUIRE( g_h1.ComputeL2Error(qdF3_coef) < tol ); } } } } TEST_CASE("3D Bilinear Vector Divergence Integrator", "[MixedVectorDivergenceIntegrator]" "[MixedScalarVectorIntegrator]" "[BilinearFormIntegrator]" "[NonlinearFormIntegrator]") { int order = 2, n = 1, dim = 3; double cg_rtol = 1e-14; double tol = 1e-9; Mesh mesh(n, n, n, Element::HEXAHEDRON, 1, 2.0, 3.0, 5.0); VectorFunctionCoefficient F3_coef(dim, F3); VectorFunctionCoefficient V3_coef(dim, V3); VectorFunctionCoefficient VdF3_coef(dim, VDivF3); SECTION("Operators on RT") { RT_FECollection fec_rt(order - 1, dim); FiniteElementSpace fespace_rt(&mesh, &fec_rt); GridFunction f_rt(&fespace_rt); f_rt.ProjectCoefficient(F3_coef); SECTION("Mapping RT to RT") { BilinearForm m_rt(&fespace_rt); m_rt.AddDomainIntegrator(new VectorFEMassIntegrator()); m_rt.Assemble(); m_rt.Finalize(); GridFunction g_rt(&fespace_rt); Vector tmp_rt(fespace_rt.GetNDofs()); SECTION("With Vector Coefficient") { MixedBilinearForm blf(&fespace_rt, &fespace_rt); blf.AddDomainIntegrator( new MixedVectorDivergenceIntegrator(V3_coef)); blf.Assemble(); blf.Finalize(); blf.Mult(f_rt,tmp_rt); g_rt = 0.0; CG(m_rt, tmp_rt, g_rt, 0, 200, cg_rtol * cg_rtol, 0.0); REQUIRE( g_rt.ComputeL2Error(VdF3_coef) < tol ); } } SECTION("Mapping RT to ND") { ND_FECollection fec_nd(order, dim); FiniteElementSpace fespace_nd(&mesh, &fec_nd); BilinearForm m_nd(&fespace_nd); m_nd.AddDomainIntegrator(new VectorFEMassIntegrator()); m_nd.Assemble(); m_nd.Finalize(); GridFunction g_nd(&fespace_nd); Vector tmp_nd(fespace_nd.GetNDofs()); SECTION("With Vector Coefficient") { MixedBilinearForm blf(&fespace_rt, &fespace_nd); blf.AddDomainIntegrator( new MixedVectorDivergenceIntegrator(V3_coef)); blf.Assemble(); blf.Finalize(); blf.Mult(f_rt,tmp_nd); g_nd = 0.0; CG(m_nd, tmp_nd, g_nd, 0, 200, cg_rtol * cg_rtol, 0.0); REQUIRE( g_nd.ComputeL2Error(VdF3_coef) < tol ); } } } } TEST_CASE("3D Bilinear Vector Product Integrators", "[MixedVectorProductIntegrator]" "[MixedScalarVectorIntegrator]" "[BilinearFormIntegrator]" "[NonlinearFormIntegrator]") { int order = 2, n = 1, dim = 3; double cg_rtol = 1e-14; double tol = 1e-9; Mesh mesh(n, n, n, Element::HEXAHEDRON, 1, 2.0, 3.0, 5.0); FunctionCoefficient f3_coef(f3); VectorFunctionCoefficient V3_coef(dim, V3); VectorFunctionCoefficient Vf3_coef(dim, Vf3); SECTION("Operators on H1") { H1_FECollection fec_h1(order, dim); FiniteElementSpace fespace_h1(&mesh, &fec_h1); GridFunction f_h1(&fespace_h1); f_h1.ProjectCoefficient(f3_coef); SECTION("Mapping H1 to ND") { ND_FECollection fec_nd(order + 1, dim); FiniteElementSpace fespace_nd(&mesh, &fec_nd); BilinearForm m_nd(&fespace_nd); m_nd.AddDomainIntegrator(new VectorFEMassIntegrator()); m_nd.Assemble(); m_nd.Finalize(); GridFunction g_nd(&fespace_nd); Vector tmp_nd(fespace_nd.GetNDofs()); SECTION("With Vector Coefficient") { MixedBilinearForm blf(&fespace_h1, &fespace_nd); blf.AddDomainIntegrator(new MixedVectorProductIntegrator(V3_coef)); blf.Assemble(); blf.Finalize(); blf.Mult(f_h1,tmp_nd); g_nd = 0.0; CG(m_nd, tmp_nd, g_nd, 0, 200, cg_rtol * cg_rtol, 0.0); REQUIRE( g_nd.ComputeL2Error(Vf3_coef) < tol ); MixedBilinearForm blfw(&fespace_nd, &fespace_h1); blfw.AddDomainIntegrator( new MixedDotProductIntegrator(V3_coef)); blfw.Assemble(); blfw.Finalize(); SparseMatrix * blfT = Transpose(blfw.SpMat()); SparseMatrix * diff = Add(1.0,blf.SpMat(),-1.0,*blfT); REQUIRE( diff->MaxNorm() < tol ); delete blfT; delete diff; } } SECTION("Mapping H1 to RT") { RT_FECollection fec_rt(order, dim); FiniteElementSpace fespace_rt(&mesh, &fec_rt); BilinearForm m_rt(&fespace_rt); m_rt.AddDomainIntegrator(new VectorFEMassIntegrator()); m_rt.Assemble(); m_rt.Finalize(); GridFunction g_rt(&fespace_rt); Vector tmp_rt(fespace_rt.GetNDofs()); SECTION("With Vector Coefficient") { MixedBilinearForm blf(&fespace_h1, &fespace_rt); blf.AddDomainIntegrator(new MixedVectorProductIntegrator(V3_coef)); blf.Assemble(); blf.Finalize(); blf.Mult(f_h1,tmp_rt); g_rt = 0.0; CG(m_rt, tmp_rt, g_rt, 0, 200, cg_rtol * cg_rtol, 0.0); REQUIRE( g_rt.ComputeL2Error(Vf3_coef) < tol ); MixedBilinearForm blfw(&fespace_rt, &fespace_h1); blfw.AddDomainIntegrator( new MixedDotProductIntegrator(V3_coef)); blfw.Assemble(); blfw.Finalize(); SparseMatrix * blfT = Transpose(blfw.SpMat()); SparseMatrix * diff = Add(1.0,blf.SpMat(),-1.0,*blfT); REQUIRE( diff->MaxNorm() < tol ); delete blfT; delete diff; } } } SECTION("Operators on L2") { L2_FECollection fec_l2(order, dim); FiniteElementSpace fespace_l2(&mesh, &fec_l2); GridFunction f_l2(&fespace_l2); f_l2.ProjectCoefficient(f3_coef); SECTION("Mapping L2 to ND") { ND_FECollection fec_nd(order + 1, dim); FiniteElementSpace fespace_nd(&mesh, &fec_nd); BilinearForm m_nd(&fespace_nd); m_nd.AddDomainIntegrator(new VectorFEMassIntegrator()); m_nd.Assemble(); m_nd.Finalize(); GridFunction g_nd(&fespace_nd); Vector tmp_nd(fespace_nd.GetNDofs()); SECTION("With Vector Coefficient") { MixedBilinearForm blf(&fespace_l2, &fespace_nd); blf.AddDomainIntegrator(new MixedVectorProductIntegrator(V3_coef)); blf.Assemble(); blf.Finalize(); blf.Mult(f_l2,tmp_nd); g_nd = 0.0; CG(m_nd, tmp_nd, g_nd, 0, 200, cg_rtol * cg_rtol, 0.0); REQUIRE( g_nd.ComputeL2Error(Vf3_coef) < tol ); MixedBilinearForm blfw(&fespace_nd, &fespace_l2); blfw.AddDomainIntegrator( new MixedDotProductIntegrator(V3_coef)); blfw.Assemble(); blfw.Finalize(); SparseMatrix * blfT = Transpose(blfw.SpMat()); SparseMatrix * diff = Add(1.0,blf.SpMat(),-1.0,*blfT); REQUIRE( diff->MaxNorm() < tol ); delete blfT; delete diff; } } SECTION("Mapping L2 to RT") { RT_FECollection fec_rt(order, dim); FiniteElementSpace fespace_rt(&mesh, &fec_rt); BilinearForm m_rt(&fespace_rt); m_rt.AddDomainIntegrator(new VectorFEMassIntegrator()); m_rt.Assemble(); m_rt.Finalize(); GridFunction g_rt(&fespace_rt); Vector tmp_rt(fespace_rt.GetNDofs()); SECTION("With Vector Coefficient") { MixedBilinearForm blf(&fespace_l2, &fespace_rt); blf.AddDomainIntegrator(new MixedVectorProductIntegrator(V3_coef)); blf.Assemble(); blf.Finalize(); blf.Mult(f_l2,tmp_rt); g_rt = 0.0; CG(m_rt, tmp_rt, g_rt, 0, 200, cg_rtol * cg_rtol, 0.0); REQUIRE( g_rt.ComputeL2Error(Vf3_coef) < tol ); MixedBilinearForm blfw(&fespace_rt, &fespace_l2); blfw.AddDomainIntegrator( new MixedDotProductIntegrator(V3_coef)); blfw.Assemble(); blfw.Finalize(); SparseMatrix * blfT = Transpose(blfw.SpMat()); SparseMatrix * diff = Add(1.0,blf.SpMat(),-1.0,*blfT); REQUIRE( diff->MaxNorm() < tol ); delete blfT; delete diff; } } } } TEST_CASE("3D Bilinear Vector Cross Product Integrators", "[MixedCrossProductIntegrator]" "[MixedVectorIntegrator]" "[BilinearFormIntegrator]" "[NonlinearFormIntegrator]") { int order = 2, n = 1, dim = 3; double cg_rtol = 1e-14; double tol = 1e-9; Mesh mesh(n, n, n, Element::HEXAHEDRON, 1, 2.0, 3.0, 5.0); VectorFunctionCoefficient F3_coef(dim, F3); VectorFunctionCoefficient V3_coef(dim, V3); VectorFunctionCoefficient VxF3_coef(dim, VcrossF3); SECTION("Operators on ND") { ND_FECollection fec_nd(order, dim); FiniteElementSpace fespace_nd(&mesh, &fec_nd); GridFunction f_nd(&fespace_nd); f_nd.ProjectCoefficient(F3_coef); SECTION("Mapping ND to ND") { ND_FECollection fec_ndp(order + 1, dim); FiniteElementSpace fespace_ndp(&mesh, &fec_ndp); BilinearForm m_ndp(&fespace_ndp); m_ndp.AddDomainIntegrator(new VectorFEMassIntegrator()); m_ndp.Assemble(); m_ndp.Finalize(); GridFunction g_ndp(&fespace_ndp); Vector tmp_ndp(fespace_ndp.GetNDofs()); SECTION("With Vector Coefficient") { MixedBilinearForm blf(&fespace_nd, &fespace_ndp); blf.AddDomainIntegrator( new MixedCrossProductIntegrator(V3_coef)); blf.Assemble(); blf.Finalize(); blf.Mult(f_nd,tmp_ndp); g_ndp = 0.0; CG(m_ndp, tmp_ndp, g_ndp, 0, 200, cg_rtol * cg_rtol, 0.0); REQUIRE( g_ndp.ComputeL2Error(VxF3_coef) < tol ); MixedBilinearForm blfw(&fespace_ndp, &fespace_nd); blfw.AddDomainIntegrator( new MixedCrossProductIntegrator(V3_coef)); blfw.Assemble(); blfw.Finalize(); SparseMatrix * blfT = Transpose(blfw.SpMat()); SparseMatrix * diff = Add(1.0,blf.SpMat(),1.0,*blfT); REQUIRE( diff->MaxNorm() < tol ); delete blfT; delete diff; } } SECTION("Mapping ND to RT") { RT_FECollection fec_rt(order, dim); FiniteElementSpace fespace_rt(&mesh, &fec_rt); BilinearForm m_rt(&fespace_rt); m_rt.AddDomainIntegrator(new VectorFEMassIntegrator()); m_rt.Assemble(); m_rt.Finalize(); GridFunction g_rt(&fespace_rt); Vector tmp_rt(fespace_rt.GetNDofs()); SECTION("With Vector Coefficient") { MixedBilinearForm blf(&fespace_nd, &fespace_rt); blf.AddDomainIntegrator( new MixedCrossProductIntegrator(V3_coef)); blf.Assemble(); blf.Finalize(); blf.Mult(f_nd,tmp_rt); g_rt = 0.0; CG(m_rt, tmp_rt, g_rt, 0, 200, cg_rtol * cg_rtol, 0.0); REQUIRE( g_rt.ComputeL2Error(VxF3_coef) < tol ); MixedBilinearForm blfw(&fespace_rt, &fespace_nd); blfw.AddDomainIntegrator( new MixedCrossProductIntegrator(V3_coef)); blfw.Assemble(); blfw.Finalize(); SparseMatrix * blfT = Transpose(blfw.SpMat()); SparseMatrix * diff = Add(1.0,blf.SpMat(),1.0,*blfT); REQUIRE( diff->MaxNorm() < tol ); delete blfT; delete diff; } } } SECTION("Operators on RT") { RT_FECollection fec_rt(order - 1, dim); FiniteElementSpace fespace_rt(&mesh, &fec_rt); GridFunction f_rt(&fespace_rt); f_rt.ProjectCoefficient(F3_coef); SECTION("Mapping RT to ND") { ND_FECollection fec_nd(order + 1, dim); FiniteElementSpace fespace_nd(&mesh, &fec_nd); BilinearForm m_nd(&fespace_nd); m_nd.AddDomainIntegrator(new VectorFEMassIntegrator()); m_nd.Assemble(); m_nd.Finalize(); GridFunction g_nd(&fespace_nd); Vector tmp_nd(fespace_nd.GetNDofs()); SECTION("With Vector Coefficient") { MixedBilinearForm blf(&fespace_rt, &fespace_nd); blf.AddDomainIntegrator( new MixedCrossProductIntegrator(V3_coef)); blf.Assemble(); blf.Finalize(); blf.Mult(f_rt,tmp_nd); g_nd = 0.0; CG(m_nd, tmp_nd, g_nd, 0, 200, cg_rtol * cg_rtol, 0.0); REQUIRE( g_nd.ComputeL2Error(VxF3_coef) < tol ); MixedBilinearForm blfw(&fespace_nd, &fespace_rt); blfw.AddDomainIntegrator( new MixedCrossProductIntegrator(V3_coef)); blfw.Assemble(); blfw.Finalize(); SparseMatrix * blfT = Transpose(blfw.SpMat()); SparseMatrix * diff = Add(1.0,blf.SpMat(),1.0,*blfT); REQUIRE( diff->MaxNorm() < tol ); delete blfT; delete diff; } } SECTION("Mapping RT to RT") { RT_FECollection fec_rtp(order, dim); FiniteElementSpace fespace_rtp(&mesh, &fec_rtp); BilinearForm m_rtp(&fespace_rtp); m_rtp.AddDomainIntegrator(new VectorFEMassIntegrator()); m_rtp.Assemble(); m_rtp.Finalize(); GridFunction g_rtp(&fespace_rtp); Vector tmp_rtp(fespace_rtp.GetNDofs()); SECTION("With Vector Coefficient") { MixedBilinearForm blf(&fespace_rt, &fespace_rtp); blf.AddDomainIntegrator( new MixedCrossProductIntegrator(V3_coef)); blf.Assemble(); blf.Finalize(); blf.Mult(f_rt,tmp_rtp); g_rtp = 0.0; CG(m_rtp, tmp_rtp, g_rtp, 0, 200, cg_rtol * cg_rtol, 0.0); REQUIRE( g_rtp.ComputeL2Error(VxF3_coef) < tol ); MixedBilinearForm blfw(&fespace_rtp, &fespace_rt); blfw.AddDomainIntegrator( new MixedCrossProductIntegrator(V3_coef)); blfw.Assemble(); blfw.Finalize(); SparseMatrix * blfT = Transpose(blfw.SpMat()); SparseMatrix * diff = Add(1.0,blf.SpMat(),1.0,*blfT); REQUIRE( diff->MaxNorm() < tol ); delete blfT; delete diff; } } } } TEST_CASE("3D Bilinear Vector Dot Product Integrators", "[MixedDotProductIntegrator]" "[MixedScalarVectorIntegrator]" "[BilinearFormIntegrator]" "[NonlinearFormIntegrator]") { int order = 2, n = 1, dim = 3; double cg_rtol = 1e-14; double tol = 1e-9; Mesh mesh(n, n, n, Element::HEXAHEDRON, 1, 2.0, 3.0, 5.0); VectorFunctionCoefficient F3_coef(dim, F3); VectorFunctionCoefficient V3_coef(dim, V3); FunctionCoefficient VF3_coef(VdotF3); SECTION("Operators on ND") { ND_FECollection fec_nd(order, dim); FiniteElementSpace fespace_nd(&mesh, &fec_nd); GridFunction f_nd(&fespace_nd); f_nd.ProjectCoefficient(F3_coef); SECTION("Mapping ND to H1") { H1_FECollection fec_h1(order, dim); FiniteElementSpace fespace_h1(&mesh, &fec_h1); BilinearForm m_h1(&fespace_h1); m_h1.AddDomainIntegrator(new MassIntegrator()); m_h1.Assemble(); m_h1.Finalize(); GridFunction g_h1(&fespace_h1); Vector tmp_h1(fespace_h1.GetNDofs()); SECTION("With Vector Coefficient") { MixedBilinearForm blf(&fespace_nd, &fespace_h1); blf.AddDomainIntegrator( new MixedDotProductIntegrator(V3_coef)); blf.Assemble(); blf.Finalize(); blf.Mult(f_nd,tmp_h1); g_h1 = 0.0; CG(m_h1, tmp_h1, g_h1, 0, 200, cg_rtol * cg_rtol, 0.0); REQUIRE( g_h1.ComputeL2Error(VF3_coef) < tol ); } } SECTION("Mapping ND to L2") { L2_FECollection fec_l2(order - 1, dim); FiniteElementSpace fespace_l2(&mesh, &fec_l2); BilinearForm m_l2(&fespace_l2); m_l2.AddDomainIntegrator(new MassIntegrator()); m_l2.Assemble(); m_l2.Finalize(); GridFunction g_l2(&fespace_l2); Vector tmp_l2(fespace_l2.GetNDofs()); SECTION("With Vector Coefficient") { MixedBilinearForm blf(&fespace_nd, &fespace_l2); blf.AddDomainIntegrator( new MixedDotProductIntegrator(V3_coef)); blf.Assemble(); blf.Finalize(); blf.Mult(f_nd,tmp_l2); g_l2 = 0.0; CG(m_l2, tmp_l2, g_l2, 0, 200, cg_rtol * cg_rtol, 0.0); REQUIRE( g_l2.ComputeL2Error(VF3_coef) < tol ); } } } SECTION("Operators on RT") { RT_FECollection fec_rt(order - 1, dim); FiniteElementSpace fespace_rt(&mesh, &fec_rt); GridFunction f_rt(&fespace_rt); f_rt.ProjectCoefficient(F3_coef); SECTION("Mapping RT to H1") { H1_FECollection fec_h1(order, dim); FiniteElementSpace fespace_h1(&mesh, &fec_h1); BilinearForm m_h1(&fespace_h1); m_h1.AddDomainIntegrator(new MassIntegrator()); m_h1.Assemble(); m_h1.Finalize(); GridFunction g_h1(&fespace_h1); Vector tmp_h1(fespace_h1.GetNDofs()); SECTION("With Vector Coefficient") { MixedBilinearForm blf(&fespace_rt, &fespace_h1); blf.AddDomainIntegrator( new MixedDotProductIntegrator(V3_coef)); blf.Assemble(); blf.Finalize(); blf.Mult(f_rt,tmp_h1); g_h1 = 0.0; CG(m_h1, tmp_h1, g_h1, 0, 200, cg_rtol * cg_rtol, 0.0); REQUIRE( g_h1.ComputeL2Error(VF3_coef) < tol ); } } SECTION("Mapping RT to L2") { L2_FECollection fec_l2(order - 1, dim); FiniteElementSpace fespace_l2(&mesh, &fec_l2); BilinearForm m_l2(&fespace_l2); m_l2.AddDomainIntegrator(new MassIntegrator()); m_l2.Assemble(); m_l2.Finalize(); GridFunction g_l2(&fespace_l2); Vector tmp_l2(fespace_l2.GetNDofs()); SECTION("With Vector Coefficient") { MixedBilinearForm blf(&fespace_rt, &fespace_l2); blf.AddDomainIntegrator( new MixedDotProductIntegrator(V3_coef)); blf.Assemble(); blf.Finalize(); blf.Mult(f_rt,tmp_l2); g_l2 = 0.0; CG(m_l2, tmp_l2, g_l2, 0, 200, cg_rtol * cg_rtol, 0.0); REQUIRE( g_l2.ComputeL2Error(VF3_coef) < tol ); } } } } TEST_CASE("3D Bilinear Directional Derivative Integrator", "[MixedDirectionalDerivativeIntegrator]" "[MixedScalarIntegrator]" "[BilinearFormIntegrator]" "[NonlinearFormIntegrator]") { int order = 2, n = 1, dim = 3; double cg_rtol = 1e-14; double tol = 1e-9; Mesh mesh(n, n, n, Element::HEXAHEDRON, 1, 2.0, 3.0, 5.0); FunctionCoefficient f3_coef(f3); VectorFunctionCoefficient V3_coef(dim, V3); FunctionCoefficient Vdf3_coef(VdotGrad_f3); SECTION("Operators on H1") { H1_FECollection fec_h1(order, dim); FiniteElementSpace fespace_h1(&mesh, &fec_h1); GridFunction f_h1(&fespace_h1); f_h1.ProjectCoefficient(f3_coef); SECTION("Mapping H1 to ND") { BilinearForm m_h1(&fespace_h1); m_h1.AddDomainIntegrator(new MassIntegrator()); m_h1.Assemble(); m_h1.Finalize(); GridFunction g_h1(&fespace_h1); Vector tmp_h1(fespace_h1.GetNDofs()); SECTION("With Vector Coefficient") { MixedBilinearForm blf(&fespace_h1, &fespace_h1); blf.AddDomainIntegrator( new MixedDirectionalDerivativeIntegrator(V3_coef)); blf.Assemble(); blf.Finalize(); blf.Mult(f_h1,tmp_h1); g_h1 = 0.0; CG(m_h1, tmp_h1, g_h1, 0, 200, cg_rtol * cg_rtol, 0.0); REQUIRE( g_h1.ComputeL2Error(Vdf3_coef) < tol ); } } SECTION("Mapping H1 to L2") { L2_FECollection fec_l2(order - 1, dim); FiniteElementSpace fespace_l2(&mesh, &fec_l2); BilinearForm m_l2(&fespace_l2); m_l2.AddDomainIntegrator(new MassIntegrator()); m_l2.Assemble(); m_l2.Finalize(); GridFunction g_l2(&fespace_l2); Vector tmp_l2(fespace_l2.GetNDofs()); SECTION("With Vector Coefficient") { MixedBilinearForm blf(&fespace_h1, &fespace_l2); blf.AddDomainIntegrator( new MixedDirectionalDerivativeIntegrator(V3_coef)); blf.Assemble(); blf.Finalize(); blf.Mult(f_h1,tmp_l2); g_l2 = 0.0; CG(m_l2, tmp_l2, g_l2, 0, 200, cg_rtol * cg_rtol, 0.0); REQUIRE( g_l2.ComputeL2Error(Vdf3_coef) < tol ); } } } } TEST_CASE("3D Bilinear Weak Gradient Integrators", "[MixedScalarWeakGradientIntegrator]" "[MixedScalarIntegrator]" "[BilinearFormIntegrator]" "[NonlinearFormIntegrator]" "[VectorFEBoundaryFluxLFIntegrator]" "[LinearFormIntegrator]") { int order = 2, n = 1, dim = 3; double cg_rtol = 1e-14; double tol = 1e-9; Mesh mesh(n, n, n, Element::HEXAHEDRON, 1, 2.0, 3.0, 5.0); FunctionCoefficient f3_coef(f3); FunctionCoefficient q3_coef(q3); FunctionCoefficient qf3_coef(qf3); VectorFunctionCoefficient df3_coef(dim, Grad_f3); VectorFunctionCoefficient dqf3_coef(dim, Grad_qf3); SECTION("Operators on H1") { H1_FECollection fec_h1(order, dim); FiniteElementSpace fespace_h1(&mesh, &fec_h1); GridFunction f_h1(&fespace_h1); f_h1.ProjectCoefficient(f3_coef); SECTION("Mapping H1 to RT") { RT_FECollection fec_rt(order - 1, dim); FiniteElementSpace fespace_rt(&mesh, &fec_rt); BilinearForm m_rt(&fespace_rt); m_rt.AddDomainIntegrator(new VectorFEMassIntegrator()); m_rt.Assemble(); m_rt.Finalize(); GridFunction g_rt(&fespace_rt); Vector tmp_rt(fespace_rt.GetNDofs()); SECTION("Without Coefficient") { MixedBilinearForm blf(&fespace_rt, &fespace_h1); blf.AddDomainIntegrator( new MixedScalarDivergenceIntegrator()); blf.Assemble(); blf.Finalize(); MixedBilinearForm blfw(&fespace_h1, &fespace_rt); blfw.AddDomainIntegrator( new MixedScalarWeakGradientIntegrator()); blfw.Assemble(); blfw.Finalize(); SparseMatrix * blfT = Transpose(blfw.SpMat()); SparseMatrix * diff = Add(1.0,blf.SpMat(),1.0,*blfT); REQUIRE( diff->MaxNorm() < tol ); delete blfT; delete diff; LinearForm lf(&fespace_rt); lf.AddBoundaryIntegrator( new VectorFEBoundaryFluxLFIntegrator(f3_coef)); lf.Assemble(); blfw.Mult(f_h1,tmp_rt); tmp_rt += lf; g_rt = 0.0; CG(m_rt, tmp_rt, g_rt, 0, 200, cg_rtol * cg_rtol, 0.0); REQUIRE( g_rt.ComputeL2Error(df3_coef) < tol ); } SECTION("With Scalar Coefficient") { MixedBilinearForm blf(&fespace_rt, &fespace_h1); blf.AddDomainIntegrator( new MixedScalarDivergenceIntegrator(q3_coef)); blf.Assemble(); blf.Finalize(); MixedBilinearForm blfw(&fespace_h1, &fespace_rt); blfw.AddDomainIntegrator( new MixedScalarWeakGradientIntegrator(q3_coef)); blfw.Assemble(); blfw.Finalize(); SparseMatrix * blfT = Transpose(blfw.SpMat()); SparseMatrix * diff = Add(1.0,blf.SpMat(),1.0,*blfT); REQUIRE( diff->MaxNorm() < tol ); delete blfT; delete diff; LinearForm lf(&fespace_rt); lf.AddBoundaryIntegrator( new VectorFEBoundaryFluxLFIntegrator(qf3_coef)); lf.Assemble(); blfw.Mult(f_h1,tmp_rt); tmp_rt += lf; g_rt = 0.0; CG(m_rt, tmp_rt, g_rt, 0, 200, cg_rtol * cg_rtol, 0.0); REQUIRE( g_rt.ComputeL2Error(dqf3_coef) < tol ); } } } SECTION("Operators on L2") { L2_FECollection fec_l2(order - 1, dim); FiniteElementSpace fespace_l2(&mesh, &fec_l2); GridFunction f_l2(&fespace_l2); f_l2.ProjectCoefficient(f3_coef); SECTION("Mapping L2 to RT") { RT_FECollection fec_rt(order - 1, dim); FiniteElementSpace fespace_rt(&mesh, &fec_rt); BilinearForm m_rt(&fespace_rt); m_rt.AddDomainIntegrator(new VectorFEMassIntegrator()); m_rt.Assemble(); m_rt.Finalize(); GridFunction g_rt(&fespace_rt); Vector tmp_rt(fespace_rt.GetNDofs()); SECTION("Without Coefficient") { MixedBilinearForm blf(&fespace_rt, &fespace_l2); blf.AddDomainIntegrator( new MixedScalarDivergenceIntegrator()); blf.Assemble(); blf.Finalize(); MixedBilinearForm blfw(&fespace_l2, &fespace_rt); blfw.AddDomainIntegrator( new MixedScalarWeakGradientIntegrator()); blfw.Assemble(); blfw.Finalize(); SparseMatrix * blfT = Transpose(blfw.SpMat()); SparseMatrix * diff = Add(1.0,blf.SpMat(),1.0,*blfT); REQUIRE( diff->MaxNorm() < tol ); delete blfT; delete diff; LinearForm lf(&fespace_rt); lf.AddBoundaryIntegrator( new VectorFEBoundaryFluxLFIntegrator(f3_coef)); lf.Assemble(); blfw.Mult(f_l2,tmp_rt); tmp_rt += lf; g_rt = 0.0; CG(m_rt, tmp_rt, g_rt, 0, 200, cg_rtol * cg_rtol, 0.0); REQUIRE( g_rt.ComputeL2Error(df3_coef) < tol ); } SECTION("With Scalar Coefficient") { MixedBilinearForm blf(&fespace_rt, &fespace_l2); blf.AddDomainIntegrator( new MixedScalarDivergenceIntegrator(q3_coef)); blf.Assemble(); blf.Finalize(); MixedBilinearForm blfw(&fespace_l2, &fespace_rt); blfw.AddDomainIntegrator( new MixedScalarWeakGradientIntegrator(q3_coef)); blfw.Assemble(); blfw.Finalize(); SparseMatrix * blfT = Transpose(blfw.SpMat()); SparseMatrix * diff = Add(1.0,blf.SpMat(),1.0,*blfT); REQUIRE( diff->MaxNorm() < tol ); delete blfT; delete diff; LinearForm lf(&fespace_rt); lf.AddBoundaryIntegrator( new VectorFEBoundaryFluxLFIntegrator(qf3_coef)); lf.Assemble(); blfw.Mult(f_l2,tmp_rt); tmp_rt += lf; g_rt = 0.0; CG(m_rt, tmp_rt, g_rt, 0, 200, cg_rtol * cg_rtol, 0.0); REQUIRE( g_rt.ComputeL2Error(dqf3_coef) < tol ); } } } } TEST_CASE("3D Bilinear Scalar Weak Divergence Integrators", "[MixedScalarWeakDivergenceIntegrator]" "[MixedScalarVectorIntegrator]" "[BilinearFormIntegrator]" "[NonlinearFormIntegrator]") { int order = 2, n = 1, dim = 3; double cg_rtol = 1e-14; double tol = 1e-9; Mesh mesh(n, n, n, Element::HEXAHEDRON, 1, 2.0, 3.0, 5.0); FunctionCoefficient f3_coef(f3); VectorFunctionCoefficient V3_coef(dim, V3); VectorFunctionCoefficient Vf3_coef(dim, Vf3); FunctionCoefficient dVf3_coef(Div_Vf3); SECTION("Operators on H1") { H1_FECollection fec_h1(order, dim); FiniteElementSpace fespace_h1(&mesh, &fec_h1); GridFunction f_h1(&fespace_h1); f_h1.ProjectCoefficient(f3_coef); SECTION("Mapping H1 to H1") { H1_FECollection fec_h1p(order + 1, dim); FiniteElementSpace fespace_h1p(&mesh, &fec_h1p); BilinearForm m_h1(&fespace_h1p); m_h1.AddDomainIntegrator(new MassIntegrator()); m_h1.Assemble(); m_h1.Finalize(); GridFunction g_h1(&fespace_h1p); Vector tmp_h1(fespace_h1p.GetNDofs()); SECTION("With Vector Coefficient") { MixedBilinearForm blf(&fespace_h1p, &fespace_h1); blf.AddDomainIntegrator( new MixedDirectionalDerivativeIntegrator(V3_coef)); blf.Assemble(); blf.Finalize(); MixedBilinearForm blfw(&fespace_h1, &fespace_h1p); blfw.AddDomainIntegrator( new MixedScalarWeakDivergenceIntegrator(V3_coef)); blfw.Assemble(); blfw.Finalize(); SparseMatrix * blfT = Transpose(blfw.SpMat()); SparseMatrix * diff = Add(1.0,blf.SpMat(),1.0,*blfT); REQUIRE( diff->MaxNorm() < tol ); delete blfT; delete diff; LinearForm lf(&fespace_h1p); lf.AddBoundaryIntegrator( new BoundaryNormalLFIntegrator(Vf3_coef)); lf.Assemble(); blfw.Mult(f_h1,tmp_h1); tmp_h1 += lf; g_h1 = 0.0; CG(m_h1, tmp_h1, g_h1, 0, 200, cg_rtol * cg_rtol, 0.0); REQUIRE( g_h1.ComputeL2Error(dVf3_coef) < tol ); } } } SECTION("Operators on L2") { L2_FECollection fec_l2(order - 1, dim); FiniteElementSpace fespace_l2(&mesh, &fec_l2); GridFunction f_l2(&fespace_l2); f_l2.ProjectCoefficient(f3_coef); SECTION("Mapping L2 to H1") { H1_FECollection fec_h1(order + 1, dim); FiniteElementSpace fespace_h1(&mesh, &fec_h1); BilinearForm m_h1(&fespace_h1); m_h1.AddDomainIntegrator(new MassIntegrator()); m_h1.Assemble(); m_h1.Finalize(); GridFunction g_h1(&fespace_h1); Vector tmp_h1(fespace_h1.GetNDofs()); SECTION("With Vector Coefficient") { MixedBilinearForm blf(&fespace_h1, &fespace_l2); blf.AddDomainIntegrator( new MixedDirectionalDerivativeIntegrator(V3_coef)); blf.Assemble(); blf.Finalize(); MixedBilinearForm blfw(&fespace_l2, &fespace_h1); blfw.AddDomainIntegrator( new MixedScalarWeakDivergenceIntegrator(V3_coef)); blfw.Assemble(); blfw.Finalize(); SparseMatrix * blfT = Transpose(blfw.SpMat()); SparseMatrix * diff = Add(1.0,blf.SpMat(),1.0,*blfT); REQUIRE( diff->MaxNorm() < tol ); delete blfT; delete diff; LinearForm lf(&fespace_h1); lf.AddBoundaryIntegrator( new BoundaryNormalLFIntegrator(Vf3_coef)); lf.Assemble(); blfw.Mult(f_l2,tmp_h1); tmp_h1 += lf; g_h1 = 0.0; CG(m_h1, tmp_h1, g_h1, 0, 200, cg_rtol * cg_rtol, 0.0); REQUIRE( g_h1.ComputeL2Error(dVf3_coef) < tol ); } } } } TEST_CASE("3D Bilinear Weak Divergence Integrators", "[MixedVectorWeakDivergenceIntegrator]" "[MixedVectorIntegrator]" "[BilinearFormIntegrator]" "[NonlinearFormIntegrator]" "[BoundaryNormalLFIntegrator]" "[LinearFormIntegrator]") { int order = 2, n = 1, dim = 3; double cg_rtol = 1e-14; double tol = 1e-9; Mesh mesh(n, n, n, Element::HEXAHEDRON, 1, 2.0, 3.0, 5.0); VectorFunctionCoefficient F3_coef(dim, F3); FunctionCoefficient q3_coef(q3); VectorFunctionCoefficient D3_coef(dim, V3); MatrixFunctionCoefficient M3_coef(dim, M3); MatrixFunctionCoefficient MT3_coef(dim, MT3); VectorFunctionCoefficient qF3_coef(dim, qF3); VectorFunctionCoefficient DF3_coef(dim, DF3); VectorFunctionCoefficient MF3_coef(dim, MF3); FunctionCoefficient dF3_coef(DivF3); FunctionCoefficient dqF3_coef(Div_qF3); FunctionCoefficient dDF3_coef(Div_DF3); FunctionCoefficient dMF3_coef(Div_MF3); SECTION("Operators on ND") { ND_FECollection fec_nd(order, dim); FiniteElementSpace fespace_nd(&mesh, &fec_nd); GridFunction f_nd(&fespace_nd); f_nd.ProjectCoefficient(F3_coef); SECTION("Mapping ND to H1") { H1_FECollection fec_h1(order + 1, dim); FiniteElementSpace fespace_h1(&mesh, &fec_h1); BilinearForm m_h1(&fespace_h1); m_h1.AddDomainIntegrator(new MassIntegrator()); m_h1.Assemble(); m_h1.Finalize(); GridFunction g_h1(&fespace_h1); Vector tmp_h1(fespace_h1.GetNDofs()); SECTION("Without Coefficient") { MixedBilinearForm blf(&fespace_h1, &fespace_nd); blf.AddDomainIntegrator( new MixedVectorGradientIntegrator()); blf.Assemble(); blf.Finalize(); MixedBilinearForm blfw(&fespace_nd, &fespace_h1); blfw.AddDomainIntegrator( new MixedVectorWeakDivergenceIntegrator()); blfw.Assemble(); blfw.Finalize(); SparseMatrix * blfT = Transpose(blfw.SpMat()); SparseMatrix * diff = Add(1.0,blf.SpMat(),1.0,*blfT); REQUIRE( diff->MaxNorm() < tol ); delete blfT; delete diff; LinearForm lf(&fespace_h1); lf.AddBoundaryIntegrator( new BoundaryNormalLFIntegrator(F3_coef)); lf.Assemble(); blfw.Mult(f_nd,tmp_h1); tmp_h1 += lf; g_h1 = 0.0; CG(m_h1, tmp_h1, g_h1, 0, 200, cg_rtol * cg_rtol, 0.0); REQUIRE( g_h1.ComputeL2Error(dF3_coef) < tol ); } SECTION("With Scalar Coefficient") { MixedBilinearForm blf(&fespace_h1, &fespace_nd); blf.AddDomainIntegrator( new MixedVectorGradientIntegrator(q3_coef)); blf.Assemble(); blf.Finalize(); MixedBilinearForm blfw(&fespace_nd, &fespace_h1); blfw.AddDomainIntegrator( new MixedVectorWeakDivergenceIntegrator(q3_coef)); blfw.Assemble(); blfw.Finalize(); SparseMatrix * blfT = Transpose(blfw.SpMat()); SparseMatrix * diff = Add(1.0,blf.SpMat(),1.0,*blfT); REQUIRE( diff->MaxNorm() < tol ); delete blfT; delete diff; LinearForm lf(&fespace_h1); lf.AddBoundaryIntegrator( new BoundaryNormalLFIntegrator(qF3_coef)); lf.Assemble(); blfw.Mult(f_nd,tmp_h1); tmp_h1 += lf; g_h1 = 0.0; CG(m_h1, tmp_h1, g_h1, 0, 200, cg_rtol * cg_rtol, 0.0); REQUIRE( g_h1.ComputeL2Error(dqF3_coef) < tol ); } SECTION("With Diagonal Matrix Coefficient") { MixedBilinearForm blf(&fespace_h1, &fespace_nd); blf.AddDomainIntegrator( new MixedVectorGradientIntegrator(D3_coef)); blf.Assemble(); blf.Finalize(); MixedBilinearForm blfw(&fespace_nd, &fespace_h1); blfw.AddDomainIntegrator( new MixedVectorWeakDivergenceIntegrator(D3_coef)); blfw.Assemble(); blfw.Finalize(); SparseMatrix * blfT = Transpose(blfw.SpMat()); SparseMatrix * diff = Add(1.0,blf.SpMat(),1.0,*blfT); REQUIRE( diff->MaxNorm() < tol ); delete blfT; delete diff; LinearForm lf(&fespace_h1); lf.AddBoundaryIntegrator( new BoundaryNormalLFIntegrator(DF3_coef)); lf.Assemble(); blfw.Mult(f_nd,tmp_h1); tmp_h1 += lf; g_h1 = 0.0; CG(m_h1, tmp_h1, g_h1, 0, 200, cg_rtol * cg_rtol, 0.0); REQUIRE( g_h1.ComputeL2Error(dDF3_coef) < tol ); } SECTION("With Matrix Coefficient") { MixedBilinearForm blf(&fespace_h1, &fespace_nd); blf.AddDomainIntegrator( new MixedVectorGradientIntegrator(MT3_coef)); blf.Assemble(); blf.Finalize(); MixedBilinearForm blfw(&fespace_nd, &fespace_h1); blfw.AddDomainIntegrator( new MixedVectorWeakDivergenceIntegrator(M3_coef)); blfw.Assemble(); blfw.Finalize(); SparseMatrix * blfT = Transpose(blfw.SpMat()); SparseMatrix * diff = Add(1.0,blf.SpMat(),1.0,*blfT); REQUIRE( diff->MaxNorm() < tol ); delete blfT; delete diff; LinearForm lf(&fespace_h1); lf.AddBoundaryIntegrator( new BoundaryNormalLFIntegrator(MF3_coef)); lf.Assemble(); blfw.Mult(f_nd,tmp_h1); tmp_h1 += lf; g_h1 = 0.0; CG(m_h1, tmp_h1, g_h1, 0, 200, cg_rtol * cg_rtol, 0.0); REQUIRE( g_h1.ComputeL2Error(dMF3_coef) < tol ); } } } SECTION("Operators on RT") { RT_FECollection fec_rt(order - 1, dim); FiniteElementSpace fespace_rt(&mesh, &fec_rt); GridFunction f_rt(&fespace_rt); f_rt.ProjectCoefficient(F3_coef); SECTION("Mapping RT to H1") { H1_FECollection fec_h1(order + 1, dim); FiniteElementSpace fespace_h1(&mesh, &fec_h1); BilinearForm m_h1(&fespace_h1); m_h1.AddDomainIntegrator(new MassIntegrator()); m_h1.Assemble(); m_h1.Finalize(); GridFunction g_h1(&fespace_h1); Vector tmp_h1(fespace_h1.GetNDofs()); SECTION("Without Coefficient") { MixedBilinearForm blf(&fespace_h1, &fespace_rt); blf.AddDomainIntegrator( new MixedVectorGradientIntegrator()); blf.Assemble(); blf.Finalize(); MixedBilinearForm blfw(&fespace_rt, &fespace_h1); blfw.AddDomainIntegrator( new MixedVectorWeakDivergenceIntegrator()); blfw.Assemble(); blfw.Finalize(); SparseMatrix * blfT = Transpose(blfw.SpMat()); SparseMatrix * diff = Add(1.0,blf.SpMat(),1.0,*blfT); REQUIRE( diff->MaxNorm() < tol ); delete blfT; delete diff; LinearForm lf(&fespace_h1); lf.AddBoundaryIntegrator( new BoundaryNormalLFIntegrator(F3_coef)); lf.Assemble(); blfw.Mult(f_rt,tmp_h1); tmp_h1 += lf; g_h1 = 0.0; CG(m_h1, tmp_h1, g_h1, 0, 200, cg_rtol * cg_rtol, 0.0); REQUIRE( g_h1.ComputeL2Error(dF3_coef) < tol ); } SECTION("With Scalar Coefficient") { MixedBilinearForm blf(&fespace_h1, &fespace_rt); blf.AddDomainIntegrator( new MixedVectorGradientIntegrator(q3_coef)); blf.Assemble(); blf.Finalize(); MixedBilinearForm blfw(&fespace_rt, &fespace_h1); blfw.AddDomainIntegrator( new MixedVectorWeakDivergenceIntegrator(q3_coef)); blfw.Assemble(); blfw.Finalize(); SparseMatrix * blfT = Transpose(blfw.SpMat()); SparseMatrix * diff = Add(1.0,blf.SpMat(),1.0,*blfT); REQUIRE( diff->MaxNorm() < tol ); delete blfT; delete diff; LinearForm lf(&fespace_h1); lf.AddBoundaryIntegrator( new BoundaryNormalLFIntegrator(qF3_coef)); lf.Assemble(); blfw.Mult(f_rt,tmp_h1); tmp_h1 += lf; g_h1 = 0.0; CG(m_h1, tmp_h1, g_h1, 0, 200, cg_rtol * cg_rtol, 0.0); REQUIRE( g_h1.ComputeL2Error(dqF3_coef) < tol ); } SECTION("With Diagonal Matrix Coefficient") { MixedBilinearForm blf(&fespace_h1, &fespace_rt); blf.AddDomainIntegrator( new MixedVectorGradientIntegrator(D3_coef)); blf.Assemble(); blf.Finalize(); MixedBilinearForm blfw(&fespace_rt, &fespace_h1); blfw.AddDomainIntegrator( new MixedVectorWeakDivergenceIntegrator(D3_coef)); blfw.Assemble(); blfw.Finalize(); SparseMatrix * blfT = Transpose(blfw.SpMat()); SparseMatrix * diff = Add(1.0,blf.SpMat(),1.0,*blfT); REQUIRE( diff->MaxNorm() < tol ); delete blfT; delete diff; LinearForm lf(&fespace_h1); lf.AddBoundaryIntegrator( new BoundaryNormalLFIntegrator(DF3_coef)); lf.Assemble(); blfw.Mult(f_rt,tmp_h1); tmp_h1 += lf; g_h1 = 0.0; CG(m_h1, tmp_h1, g_h1, 0, 200, cg_rtol * cg_rtol, 0.0); REQUIRE( g_h1.ComputeL2Error(dDF3_coef) < tol ); } SECTION("With Matrix Coefficient") { MixedBilinearForm blf(&fespace_h1, &fespace_rt); blf.AddDomainIntegrator( new MixedVectorGradientIntegrator(MT3_coef)); blf.Assemble(); blf.Finalize(); MixedBilinearForm blfw(&fespace_rt, &fespace_h1); blfw.AddDomainIntegrator( new MixedVectorWeakDivergenceIntegrator(M3_coef)); blfw.Assemble(); blfw.Finalize(); SparseMatrix * blfT = Transpose(blfw.SpMat()); SparseMatrix * diff = Add(1.0,blf.SpMat(),1.0,*blfT); REQUIRE( diff->MaxNorm() < tol ); delete blfT; delete diff; LinearForm lf(&fespace_h1); lf.AddBoundaryIntegrator( new BoundaryNormalLFIntegrator(MF3_coef)); lf.Assemble(); blfw.Mult(f_rt,tmp_h1); tmp_h1 += lf; g_h1 = 0.0; CG(m_h1, tmp_h1, g_h1, 0, 200, cg_rtol * cg_rtol, 0.0); REQUIRE( g_h1.ComputeL2Error(dMF3_coef) < tol ); } } } } TEST_CASE("3D Bilinear Weak Curl Integrators", "[MixedVectorWeakCurlIntegrator]" "[MixedVectorIntegrator]" "[BilinearFormIntegrator]" "[NonlinearFormIntegrator]" "[VectorFEBoundaryTangentLFIntegrator]" "[LinearFormIntegrator]") { int order = 2, n = 1, dim = 3; double cg_rtol = 1e-14; double tol = 1e-9; Mesh mesh(n, n, n, Element::HEXAHEDRON, 1, 2.0, 3.0, 5.0); VectorFunctionCoefficient F3_coef(dim, F3); FunctionCoefficient q3_coef(q3); VectorFunctionCoefficient D3_coef(dim, V3); MatrixFunctionCoefficient M3_coef(dim, M3); MatrixFunctionCoefficient MT3_coef(dim, MT3); VectorFunctionCoefficient qF3_coef(dim, qF3); VectorFunctionCoefficient DF3_coef(dim, DF3); VectorFunctionCoefficient MF3_coef(dim, MF3); VectorFunctionCoefficient dF3_coef(dim, CurlF3); VectorFunctionCoefficient dqF3_coef(dim, Curl_qF3); VectorFunctionCoefficient dDF3_coef(dim, Curl_DF3); VectorFunctionCoefficient dMF3_coef(dim, Curl_MF3); SECTION("Operators on ND") { ND_FECollection fec_nd(order, dim); FiniteElementSpace fespace_nd(&mesh, &fec_nd); GridFunction f_nd(&fespace_nd); f_nd.ProjectCoefficient(F3_coef); SECTION("Mapping ND to ND") { BilinearForm m_nd(&fespace_nd); m_nd.AddDomainIntegrator(new VectorFEMassIntegrator()); m_nd.Assemble(); m_nd.Finalize(); GridFunction g_nd(&fespace_nd); Vector tmp_nd(fespace_nd.GetNDofs()); SECTION("Without Coefficient") { MixedBilinearForm blf(&fespace_nd, &fespace_nd); blf.AddDomainIntegrator( new MixedVectorCurlIntegrator()); blf.Assemble(); blf.Finalize(); MixedBilinearForm blfw(&fespace_nd, &fespace_nd); blfw.AddDomainIntegrator( new MixedVectorWeakCurlIntegrator()); blfw.Assemble(); blfw.Finalize(); SparseMatrix * blfT = Transpose(blfw.SpMat()); SparseMatrix * diff = Add(1.0,blf.SpMat(),-1.0,*blfT); REQUIRE( diff->MaxNorm() < tol ); delete blfT; delete diff; LinearForm lf(&fespace_nd); lf.AddBoundaryIntegrator( new VectorFEBoundaryTangentLFIntegrator(F3_coef)); lf.Assemble(); blfw.Mult(f_nd,tmp_nd); tmp_nd += lf; g_nd = 0.0; CG(m_nd, tmp_nd, g_nd, 0, 200, cg_rtol * cg_rtol, 0.0); REQUIRE( g_nd.ComputeL2Error(dF3_coef) < tol ); } SECTION("With Scalar Coefficient") { MixedBilinearForm blf(&fespace_nd, &fespace_nd); blf.AddDomainIntegrator( new MixedVectorCurlIntegrator(q3_coef)); blf.Assemble(); blf.Finalize(); MixedBilinearForm blfw(&fespace_nd, &fespace_nd); blfw.AddDomainIntegrator( new MixedVectorWeakCurlIntegrator(q3_coef)); blfw.Assemble(); blfw.Finalize(); SparseMatrix * blfT = Transpose(blfw.SpMat()); SparseMatrix * diff = Add(1.0,blf.SpMat(),-1.0,*blfT); REQUIRE( diff->MaxNorm() < tol ); delete blfT; delete diff; LinearForm lf(&fespace_nd); lf.AddBoundaryIntegrator( new VectorFEBoundaryTangentLFIntegrator(qF3_coef)); lf.Assemble(); blfw.Mult(f_nd,tmp_nd); tmp_nd += lf; g_nd = 0.0; CG(m_nd, tmp_nd, g_nd, 0, 200, cg_rtol * cg_rtol, 0.0); REQUIRE( g_nd.ComputeL2Error(dqF3_coef) < tol ); } SECTION("With Diagonal Matrix Coefficient") { MixedBilinearForm blf(&fespace_nd, &fespace_nd); blf.AddDomainIntegrator( new MixedVectorCurlIntegrator(D3_coef)); blf.Assemble(); blf.Finalize(); MixedBilinearForm blfw(&fespace_nd, &fespace_nd); blfw.AddDomainIntegrator( new MixedVectorWeakCurlIntegrator(D3_coef)); blfw.Assemble(); blfw.Finalize(); SparseMatrix * blfT = Transpose(blfw.SpMat()); SparseMatrix * diff = Add(1.0,blf.SpMat(),-1.0,*blfT); REQUIRE( diff->MaxNorm() < tol ); delete blfT; delete diff; LinearForm lf(&fespace_nd); lf.AddBoundaryIntegrator( new VectorFEBoundaryTangentLFIntegrator(DF3_coef)); lf.Assemble(); blfw.Mult(f_nd,tmp_nd); tmp_nd += lf; g_nd = 0.0; CG(m_nd, tmp_nd, g_nd, 0, 200, cg_rtol * cg_rtol, 0.0); REQUIRE( g_nd.ComputeL2Error(dDF3_coef) < tol ); } SECTION("With Matrix Coefficient") { MixedBilinearForm blf(&fespace_nd, &fespace_nd); blf.AddDomainIntegrator( new MixedVectorCurlIntegrator(MT3_coef)); blf.Assemble(); blf.Finalize(); MixedBilinearForm blfw(&fespace_nd, &fespace_nd); blfw.AddDomainIntegrator( new MixedVectorWeakCurlIntegrator(M3_coef)); blfw.Assemble(); blfw.Finalize(); SparseMatrix * blfT = Transpose(blfw.SpMat()); SparseMatrix * diff = Add(1.0,blf.SpMat(),-1.0,*blfT); REQUIRE( diff->MaxNorm() < tol ); delete blfT; delete diff; LinearForm lf(&fespace_nd); lf.AddBoundaryIntegrator( new VectorFEBoundaryTangentLFIntegrator(MF3_coef)); lf.Assemble(); blfw.Mult(f_nd,tmp_nd); tmp_nd += lf; g_nd = 0.0; CG(m_nd, tmp_nd, g_nd, 0, 200, cg_rtol * cg_rtol, 0.0); REQUIRE( g_nd.ComputeL2Error(dMF3_coef) < tol ); } } } SECTION("Operators on RT") { RT_FECollection fec_rt(order - 1, dim); FiniteElementSpace fespace_rt(&mesh, &fec_rt); GridFunction f_rt(&fespace_rt); f_rt.ProjectCoefficient(F3_coef); SECTION("Mapping RT to ND") { ND_FECollection fec_nd(order, dim); FiniteElementSpace fespace_nd(&mesh, &fec_nd); BilinearForm m_nd(&fespace_nd); m_nd.AddDomainIntegrator(new VectorFEMassIntegrator()); m_nd.Assemble(); m_nd.Finalize(); GridFunction g_nd(&fespace_nd); Vector tmp_nd(fespace_nd.GetNDofs()); SECTION("Without Coefficient") { MixedBilinearForm blf(&fespace_nd, &fespace_rt); blf.AddDomainIntegrator( new MixedVectorCurlIntegrator()); blf.Assemble(); blf.Finalize(); MixedBilinearForm blfw(&fespace_rt, &fespace_nd); blfw.AddDomainIntegrator( new MixedVectorWeakCurlIntegrator()); blfw.Assemble(); blfw.Finalize(); SparseMatrix * blfT = Transpose(blfw.SpMat()); SparseMatrix * diff = Add(1.0,blf.SpMat(),-1.0,*blfT); REQUIRE( diff->MaxNorm() < tol ); delete blfT; delete diff; LinearForm lf(&fespace_nd); lf.AddBoundaryIntegrator( new VectorFEBoundaryTangentLFIntegrator(F3_coef)); lf.Assemble(); blfw.Mult(f_rt,tmp_nd); tmp_nd += lf; g_nd = 0.0; CG(m_nd, tmp_nd, g_nd, 0, 200, cg_rtol * cg_rtol, 0.0); REQUIRE( g_nd.ComputeL2Error(dF3_coef) < tol ); } SECTION("With Scalar Coefficient") { MixedBilinearForm blf(&fespace_nd, &fespace_rt); blf.AddDomainIntegrator( new MixedVectorCurlIntegrator(q3_coef)); blf.Assemble(); blf.Finalize(); MixedBilinearForm blfw(&fespace_rt, &fespace_nd); blfw.AddDomainIntegrator( new MixedVectorWeakCurlIntegrator(q3_coef)); blfw.Assemble(); blfw.Finalize(); SparseMatrix * blfT = Transpose(blfw.SpMat()); SparseMatrix * diff = Add(1.0,blf.SpMat(),-1.0,*blfT); REQUIRE( diff->MaxNorm() < tol ); delete blfT; delete diff; LinearForm lf(&fespace_nd); lf.AddBoundaryIntegrator( new VectorFEBoundaryTangentLFIntegrator(qF3_coef)); lf.Assemble(); blfw.Mult(f_rt,tmp_nd); tmp_nd += lf; g_nd = 0.0; CG(m_nd, tmp_nd, g_nd, 0, 200, cg_rtol * cg_rtol, 0.0); REQUIRE( g_nd.ComputeL2Error(dqF3_coef) < tol ); } SECTION("With Diagonal Matrix Coefficient") { MixedBilinearForm blf(&fespace_nd, &fespace_rt); blf.AddDomainIntegrator( new MixedVectorCurlIntegrator(D3_coef)); blf.Assemble(); blf.Finalize(); MixedBilinearForm blfw(&fespace_rt, &fespace_nd); blfw.AddDomainIntegrator( new MixedVectorWeakCurlIntegrator(D3_coef)); blfw.Assemble(); blfw.Finalize(); SparseMatrix * blfT = Transpose(blfw.SpMat()); SparseMatrix * diff = Add(1.0,blf.SpMat(),-1.0,*blfT); REQUIRE( diff->MaxNorm() < tol ); delete blfT; delete diff; LinearForm lf(&fespace_nd); lf.AddBoundaryIntegrator( new VectorFEBoundaryTangentLFIntegrator(DF3_coef)); lf.Assemble(); blfw.Mult(f_rt,tmp_nd); tmp_nd += lf; g_nd = 0.0; CG(m_nd, tmp_nd, g_nd, 0, 200, cg_rtol * cg_rtol, 0.0); REQUIRE( g_nd.ComputeL2Error(dDF3_coef) < tol ); } SECTION("With Matrix Coefficient") { MixedBilinearForm blf(&fespace_nd, &fespace_rt); blf.AddDomainIntegrator( new MixedVectorCurlIntegrator(MT3_coef)); blf.Assemble(); blf.Finalize(); MixedBilinearForm blfw(&fespace_rt, &fespace_nd); blfw.AddDomainIntegrator( new MixedVectorWeakCurlIntegrator(M3_coef)); blfw.Assemble(); blfw.Finalize(); SparseMatrix * blfT = Transpose(blfw.SpMat()); SparseMatrix * diff = Add(1.0,blf.SpMat(),-1.0,*blfT); REQUIRE( diff->MaxNorm() < tol ); delete blfT; delete diff; LinearForm lf(&fespace_nd); lf.AddBoundaryIntegrator( new VectorFEBoundaryTangentLFIntegrator(MF3_coef)); lf.Assemble(); blfw.Mult(f_rt,tmp_nd); tmp_nd += lf; g_nd = 0.0; CG(m_nd, tmp_nd, g_nd, 0, 200, cg_rtol * cg_rtol, 0.0); REQUIRE( g_nd.ComputeL2Error(dMF3_coef) < tol ); } } } } TEST_CASE("3D Bilinear Weak Div Cross Integrators", "[MixedWeakDivCrossIntegrator]" "[MixedVectorIntegrator]" "[BilinearFormIntegrator]" "[NonlinearFormIntegrator]") { int order = 2, n = 1, dim = 3; double cg_rtol = 1e-14; double tol = 1e-9; Mesh mesh(n, n, n, Element::HEXAHEDRON, 1, 2.0, 3.0, 5.0); VectorFunctionCoefficient F3_coef(dim, F3); VectorFunctionCoefficient V3_coef(dim, V3); VectorFunctionCoefficient VF3_coef(dim, VcrossF3); FunctionCoefficient dVF3_coef(Div_VcrossF3); SECTION("Operators on ND") { ND_FECollection fec_nd(order, dim); FiniteElementSpace fespace_nd(&mesh, &fec_nd); GridFunction f_nd(&fespace_nd); f_nd.ProjectCoefficient(F3_coef); SECTION("Mapping ND to H1") { H1_FECollection fec_h1(order + 1, dim); FiniteElementSpace fespace_h1(&mesh, &fec_h1); BilinearForm m_h1(&fespace_h1); m_h1.AddDomainIntegrator(new MassIntegrator()); m_h1.Assemble(); m_h1.Finalize(); GridFunction g_h1(&fespace_h1); Vector tmp_h1(fespace_h1.GetNDofs()); SECTION("With Vector Coefficient") { MixedBilinearForm blf(&fespace_h1, &fespace_nd); blf.AddDomainIntegrator( new MixedCrossGradIntegrator(V3_coef)); blf.Assemble(); blf.Finalize(); MixedBilinearForm blfw(&fespace_nd, &fespace_h1); blfw.AddDomainIntegrator( new MixedWeakDivCrossIntegrator(V3_coef)); blfw.Assemble(); blfw.Finalize(); SparseMatrix * blfT = Transpose(blfw.SpMat()); SparseMatrix * diff = Add(1.0,blf.SpMat(),-1.0,*blfT); REQUIRE( diff->MaxNorm() < tol ); delete blfT; delete diff; LinearForm lf(&fespace_h1); lf.AddBoundaryIntegrator( new BoundaryNormalLFIntegrator(VF3_coef)); lf.Assemble(); blfw.Mult(f_nd,tmp_h1); tmp_h1 += lf; g_h1 = 0.0; CG(m_h1, tmp_h1, g_h1, 0, 200, cg_rtol * cg_rtol, 0.0); REQUIRE( g_h1.ComputeL2Error(dVF3_coef) < tol ); } } } SECTION("Operators on RT") { RT_FECollection fec_rt(order - 1, dim); FiniteElementSpace fespace_rt(&mesh, &fec_rt); GridFunction f_rt(&fespace_rt); f_rt.ProjectCoefficient(F3_coef); SECTION("Mapping RT to H1") { H1_FECollection fec_h1(order + 1, dim); FiniteElementSpace fespace_h1(&mesh, &fec_h1); BilinearForm m_h1(&fespace_h1); m_h1.AddDomainIntegrator(new MassIntegrator()); m_h1.Assemble(); m_h1.Finalize(); GridFunction g_h1(&fespace_h1); Vector tmp_h1(fespace_h1.GetNDofs()); SECTION("With Vector Coefficient") { MixedBilinearForm blf(&fespace_h1, &fespace_rt); blf.AddDomainIntegrator( new MixedCrossGradIntegrator(V3_coef)); blf.Assemble(); blf.Finalize(); MixedBilinearForm blfw(&fespace_rt, &fespace_h1); blfw.AddDomainIntegrator( new MixedWeakDivCrossIntegrator(V3_coef)); blfw.Assemble(); blfw.Finalize(); SparseMatrix * blfT = Transpose(blfw.SpMat()); SparseMatrix * diff = Add(1.0,blf.SpMat(),-1.0,*blfT); REQUIRE( diff->MaxNorm() < tol ); delete blfT; delete diff; LinearForm lf(&fespace_h1); lf.AddBoundaryIntegrator( new BoundaryNormalLFIntegrator(VF3_coef)); lf.Assemble(); blfw.Mult(f_rt,tmp_h1); tmp_h1 += lf; g_h1 = 0.0; CG(m_h1, tmp_h1, g_h1, 0, 200, cg_rtol * cg_rtol, 0.0); REQUIRE( g_h1.ComputeL2Error(dVF3_coef) < tol ); } } } } TEST_CASE("3D Bilinear Weak Curl Cross Integrators", "[MixedWeakCurlCrossIntegrator]" "[MixedVectorIntegrator]" "[BilinearFormIntegrator]" "[NonlinearFormIntegrator]" "[VectorFEBoundaryTangentLFIntegrator]" "[LinearFormIntegrator]") { int order = 2, n = 1, dim = 3; double cg_rtol = 1e-14; double tol = 1e-9; Mesh mesh(n, n, n, Element::HEXAHEDRON, 1, 2.0, 3.0, 5.0); VectorFunctionCoefficient F3_coef(dim, F3); VectorFunctionCoefficient V3_coef(dim, V3); VectorFunctionCoefficient VxF3_coef(dim, VcrossF3); VectorFunctionCoefficient dVxF3_coef(dim, Curl_VcrossF3); SECTION("Operators on ND") { ND_FECollection fec_nd(order, dim); FiniteElementSpace fespace_nd(&mesh, &fec_nd); GridFunction f_nd(&fespace_nd); f_nd.ProjectCoefficient(F3_coef); SECTION("Mapping ND to ND") { BilinearForm m_nd(&fespace_nd); m_nd.AddDomainIntegrator(new VectorFEMassIntegrator()); m_nd.Assemble(); m_nd.Finalize(); GridFunction g_nd(&fespace_nd); Vector tmp_nd(fespace_nd.GetNDofs()); SECTION("With Vector Coefficient") { MixedBilinearForm blf(&fespace_nd, &fespace_nd); blf.AddDomainIntegrator( new MixedCrossCurlIntegrator(V3_coef)); blf.Assemble(); blf.Finalize(); MixedBilinearForm blfw(&fespace_nd, &fespace_nd); blfw.AddDomainIntegrator( new MixedWeakCurlCrossIntegrator(V3_coef)); blfw.Assemble(); blfw.Finalize(); SparseMatrix * blfT = Transpose(blfw.SpMat()); SparseMatrix * diff = Add(1.0,blf.SpMat(),1.0,*blfT); REQUIRE( diff->MaxNorm() < tol ); delete blfT; delete diff; LinearForm lf(&fespace_nd); lf.AddBoundaryIntegrator( new VectorFEBoundaryTangentLFIntegrator(VxF3_coef)); lf.Assemble(); blfw.Mult(f_nd,tmp_nd); tmp_nd += lf; g_nd = 0.0; CG(m_nd, tmp_nd, g_nd, 0, 200, cg_rtol * cg_rtol, 0.0); REQUIRE( g_nd.ComputeL2Error(dVxF3_coef) < tol ); } } } SECTION("Operators on RT") { RT_FECollection fec_rt(order - 1, dim); FiniteElementSpace fespace_rt(&mesh, &fec_rt); GridFunction f_rt(&fespace_rt); f_rt.ProjectCoefficient(F3_coef); SECTION("Mapping RT to ND") { ND_FECollection fec_nd(order, dim); FiniteElementSpace fespace_nd(&mesh, &fec_nd); BilinearForm m_nd(&fespace_nd); m_nd.AddDomainIntegrator(new VectorFEMassIntegrator()); m_nd.Assemble(); m_nd.Finalize(); GridFunction g_nd(&fespace_nd); Vector tmp_nd(fespace_nd.GetNDofs()); SECTION("With Vector Coefficient") { MixedBilinearForm blf(&fespace_nd, &fespace_rt); blf.AddDomainIntegrator( new MixedCrossCurlIntegrator(V3_coef)); blf.Assemble(); blf.Finalize(); MixedBilinearForm blfw(&fespace_rt, &fespace_nd); blfw.AddDomainIntegrator( new MixedWeakCurlCrossIntegrator(V3_coef)); blfw.Assemble(); blfw.Finalize(); SparseMatrix * blfT = Transpose(blfw.SpMat()); SparseMatrix * diff = Add(1.0,blf.SpMat(),1.0,*blfT); REQUIRE( diff->MaxNorm() < tol ); delete blfT; delete diff; LinearForm lf(&fespace_nd); lf.AddBoundaryIntegrator( new VectorFEBoundaryTangentLFIntegrator(VxF3_coef)); lf.Assemble(); blfw.Mult(f_rt,tmp_nd); tmp_nd += lf; g_nd = 0.0; CG(m_nd, tmp_nd, g_nd, 0, 200, cg_rtol * cg_rtol, 0.0); REQUIRE( g_nd.ComputeL2Error(dVxF3_coef) < tol ); } } } } TEST_CASE("3D Bilinear Weak Grad Dot Product Integrators", "[MixedWeakGradDotIntegrator]" "[MixedScalarVectorIntegrator]" "[BilinearFormIntegrator]" "[NonlinearFormIntegrator]" "[VectorFEBoundaryFluxLFIntegrator]" "[LinearFormIntegrator]") { int order = 2, n = 1, dim = 3; double cg_rtol = 1e-14; double tol = 1e-9; Mesh mesh(n, n, n, Element::HEXAHEDRON, 1, 2.0, 3.0, 5.0); VectorFunctionCoefficient F3_coef(dim, F3); VectorFunctionCoefficient V3_coef(dim, V3); FunctionCoefficient VdotF3_coef(VdotF3); VectorFunctionCoefficient dVF3_coef(dim, GradVdotF3); SECTION("Operators on ND") { ND_FECollection fec_nd(order, dim); FiniteElementSpace fespace_nd(&mesh, &fec_nd); GridFunction f_nd(&fespace_nd); f_nd.ProjectCoefficient(F3_coef); SECTION("Mapping ND to RT") { RT_FECollection fec_rt(order - 1, dim); FiniteElementSpace fespace_rt(&mesh, &fec_rt); BilinearForm m_rt(&fespace_rt); m_rt.AddDomainIntegrator(new VectorFEMassIntegrator()); m_rt.Assemble(); m_rt.Finalize(); GridFunction g_rt(&fespace_rt); Vector tmp_rt(fespace_rt.GetNDofs()); SECTION("With Vector Coefficient") { MixedBilinearForm blf(&fespace_rt, &fespace_nd); blf.AddDomainIntegrator( new MixedVectorDivergenceIntegrator(V3_coef)); blf.Assemble(); blf.Finalize(); MixedBilinearForm blfw(&fespace_nd, &fespace_rt); blfw.AddDomainIntegrator( new MixedWeakGradDotIntegrator(V3_coef)); blfw.Assemble(); blfw.Finalize(); SparseMatrix * blfT = Transpose(blfw.SpMat()); SparseMatrix * diff = Add(1.0,blf.SpMat(),1.0,*blfT); REQUIRE( diff->MaxNorm() < tol ); delete blfT; delete diff; LinearForm lf(&fespace_rt); lf.AddBoundaryIntegrator( new VectorFEBoundaryFluxLFIntegrator(VdotF3_coef)); lf.Assemble(); blfw.Mult(f_nd,tmp_rt); tmp_rt += lf; g_rt = 0.0; CG(m_rt, tmp_rt, g_rt, 0, 200, cg_rtol * cg_rtol, 0.0); REQUIRE( g_rt.ComputeL2Error(dVF3_coef) < tol ); } } } SECTION("Operators on RT") { RT_FECollection fec_rt(order - 1, dim); FiniteElementSpace fespace_rt(&mesh, &fec_rt); GridFunction f_rt(&fespace_rt); f_rt.ProjectCoefficient(F3_coef); SECTION("Mapping RT to RT") { BilinearForm m_rt(&fespace_rt); m_rt.AddDomainIntegrator(new VectorFEMassIntegrator()); m_rt.Assemble(); m_rt.Finalize(); GridFunction g_rt(&fespace_rt); Vector tmp_rt(fespace_rt.GetNDofs()); SECTION("With Vector Coefficient") { MixedBilinearForm blf(&fespace_rt, &fespace_rt); blf.AddDomainIntegrator( new MixedVectorDivergenceIntegrator(V3_coef)); blf.Assemble(); blf.Finalize(); MixedBilinearForm blfw(&fespace_rt, &fespace_rt); blfw.AddDomainIntegrator( new MixedWeakGradDotIntegrator(V3_coef)); blfw.Assemble(); blfw.Finalize(); SparseMatrix * blfT = Transpose(blfw.SpMat()); SparseMatrix * diff = Add(1.0,blf.SpMat(),1.0,*blfT); REQUIRE( diff->MaxNorm() < tol ); delete blfT; delete diff; LinearForm lf(&fespace_rt); lf.AddBoundaryIntegrator( new VectorFEBoundaryFluxLFIntegrator(VdotF3_coef)); lf.Assemble(); blfw.Mult(f_rt,tmp_rt); tmp_rt += lf; g_rt = 0.0; CG(m_rt, tmp_rt, g_rt, 0, 200, cg_rtol * cg_rtol, 0.0); REQUIRE( g_rt.ComputeL2Error(dVF3_coef) < tol ); } } } } TEST_CASE("3D Bilinear Grad Div Integrators", "[MixedGradDivIntegrator]" "[MixedDivGradIntegrator]" "[MixedScalarVectorIntegrator]" "[BilinearFormIntegrator]" "[NonlinearFormIntegrator]" "[BoundaryNormalLFIntegrator]" "[VectorFEBoundaryFluxLFIntegrator]" "[LinearFormIntegrator]") { int order = 2, n = 1, dim = 3; double cg_rtol = 1e-14; double tol = 1e-9; Mesh mesh(n, n, n, Element::HEXAHEDRON, 1, 2.0, 3.0, 5.0); FunctionCoefficient f3_coef(f3); VectorFunctionCoefficient F3_coef(dim, F3); VectorFunctionCoefficient V3_coef(dim, V3); FunctionCoefficient Vdf3_coef(VdotGrad_f3); VectorFunctionCoefficient VdF3_coef(dim, VDivF3); VectorFunctionCoefficient dVdf3_coef(dim, GradVdotGrad_f3); FunctionCoefficient dVdF3_coef(DivVDivF3); SECTION("Operators on H1") { H1_FECollection fec_h1(order, dim); FiniteElementSpace fespace_h1(&mesh, &fec_h1); GridFunction f_h1(&fespace_h1); f_h1.ProjectCoefficient(f3_coef); SECTION("Mapping H1 to RT") { RT_FECollection fec_rt(order - 1, dim); FiniteElementSpace fespace_rt(&mesh, &fec_rt); BilinearForm m_rt(&fespace_rt); m_rt.AddDomainIntegrator(new VectorFEMassIntegrator()); m_rt.Assemble(); m_rt.Finalize(); GridFunction g_rt(&fespace_rt); Vector tmp_rt(fespace_rt.GetNDofs()); SECTION("With Vector Coefficient") { MixedBilinearForm blf(&fespace_rt, &fespace_h1); blf.AddDomainIntegrator( new MixedDivGradIntegrator(V3_coef)); blf.Assemble(); blf.Finalize(); MixedBilinearForm blfw(&fespace_h1, &fespace_rt); blfw.AddDomainIntegrator( new MixedGradDivIntegrator(V3_coef)); blfw.Assemble(); blfw.Finalize(); SparseMatrix * blfT = Transpose(blfw.SpMat()); SparseMatrix * diff = Add(1.0,blf.SpMat(),-1.0,*blfT); REQUIRE( diff->MaxNorm() < tol ); delete blfT; delete diff; LinearForm lf(&fespace_rt); lf.AddBoundaryIntegrator( new VectorFEBoundaryFluxLFIntegrator(Vdf3_coef)); lf.Assemble(); blfw.Mult(f_h1,tmp_rt); tmp_rt += lf; g_rt = 0.0; CG(m_rt, tmp_rt, g_rt, 0, 200, cg_rtol * cg_rtol, 0.0); REQUIRE( g_rt.ComputeL2Error(dVdf3_coef) < tol ); } } } SECTION("Operators on RT") { RT_FECollection fec_rt(order - 1, dim); FiniteElementSpace fespace_rt(&mesh, &fec_rt); GridFunction f_rt(&fespace_rt); f_rt.ProjectCoefficient(F3_coef); SECTION("Mapping RT to H1") { H1_FECollection fec_h1(order, dim); FiniteElementSpace fespace_h1(&mesh, &fec_h1); BilinearForm m_h1(&fespace_h1); m_h1.AddDomainIntegrator(new MassIntegrator()); m_h1.Assemble(); m_h1.Finalize(); GridFunction g_h1(&fespace_h1); Vector tmp_h1(fespace_h1.GetNDofs()); SECTION("With Vector Coefficient") { MixedBilinearForm blfw(&fespace_rt, &fespace_h1); blfw.AddDomainIntegrator( new MixedDivGradIntegrator(V3_coef)); blfw.Assemble(); blfw.Finalize(); LinearForm lf(&fespace_h1); lf.AddBoundaryIntegrator( new BoundaryNormalLFIntegrator(VdF3_coef)); lf.Assemble(); blfw.Mult(f_rt,tmp_h1); tmp_h1 += lf; g_h1 = 0.0; CG(m_h1, tmp_h1, g_h1, 0, 200, cg_rtol * cg_rtol, 0.0); REQUIRE( g_h1.ComputeL2Error(dVdF3_coef) < tol ); } } } } TEST_CASE("3D Bilinear Grad Grad Integrators", "[DiffusionIntegrator]" "[BilinearFormIntegrator]" "[NonlinearFormIntegrator]" "[BoundaryNormalLFIntegrator]" "[LinearFormIntegrator]") { int order = 2, n = 1, dim = 3; double cg_rtol = 1e-14; double tol = 1e-9; Mesh mesh(n, n, n, Element::HEXAHEDRON, 1, 2.0, 3.0, 5.0); FunctionCoefficient f3_coef(f3); FunctionCoefficient q3_coef(q3); MatrixFunctionCoefficient M3_coef(dim, M3); MatrixFunctionCoefficient MT3_coef(dim, MT3); FunctionCoefficient zero3_coef(zero3); VectorFunctionCoefficient df3_coef(dim, Grad_f3); VectorFunctionCoefficient qdf3_coef(dim, qGrad_f3); VectorFunctionCoefficient Mdf3_coef(dim, MGrad_f3); FunctionCoefficient dqdf3_coef(Div_qGrad_f3); FunctionCoefficient dMdf3_coef(Div_MGrad_f3); SECTION("Operators on H1") { H1_FECollection fec_h1(order, dim); FiniteElementSpace fespace_h1(&mesh, &fec_h1); GridFunction f_h1(&fespace_h1); f_h1.ProjectCoefficient(f3_coef); SECTION("Mapping H1 to H1") { BilinearForm m_h1(&fespace_h1); m_h1.AddDomainIntegrator(new MassIntegrator()); m_h1.Assemble(); m_h1.Finalize(); GridFunction g_h1(&fespace_h1); Vector tmp_h1(fespace_h1.GetNDofs()); SECTION("Without Coefficient") { BilinearForm blf(&fespace_h1); blf.AddDomainIntegrator(new DiffusionIntegrator()); blf.Assemble(); blf.Finalize(); SparseMatrix * blfT = Transpose(blf.SpMat()); SparseMatrix * diff = Add(1.0,blf.SpMat(),-1.0,*blfT); REQUIRE( diff->MaxNorm() < tol ); delete blfT; delete diff; LinearForm lf(&fespace_h1); lf.AddBoundaryIntegrator(new BoundaryNormalLFIntegrator(df3_coef)); lf.Assemble(); blf.Mult(f_h1,tmp_h1); tmp_h1 -= lf; g_h1 = 0.0; CG(m_h1, tmp_h1, g_h1, 0, 200, cg_rtol * cg_rtol, 0.0); REQUIRE( g_h1.ComputeL2Error(zero3_coef) < tol ); } SECTION("With Scalar Coefficient") { BilinearForm blf(&fespace_h1); blf.AddDomainIntegrator(new DiffusionIntegrator(q3_coef)); blf.Assemble(); blf.Finalize(); SparseMatrix * blfT = Transpose(blf.SpMat()); SparseMatrix * diff = Add(1.0,blf.SpMat(),-1.0,*blfT); REQUIRE( diff->MaxNorm() < tol ); delete blfT; delete diff; LinearForm lf(&fespace_h1); lf.AddBoundaryIntegrator(new BoundaryNormalLFIntegrator(qdf3_coef)); lf.Assemble(); blf.Mult(f_h1,tmp_h1); tmp_h1 -= lf; g_h1 = 0.0; CG(m_h1, tmp_h1, g_h1, 0, 200, cg_rtol * cg_rtol, 0.0); g_h1 *= -1.0; REQUIRE( g_h1.ComputeL2Error(dqdf3_coef) < tol ); } SECTION("With Matrix Coefficient") { BilinearForm blf(&fespace_h1); blf.AddDomainIntegrator(new DiffusionIntegrator(M3_coef)); blf.Assemble(); blf.Finalize(); BilinearForm blft(&fespace_h1); blft.AddDomainIntegrator(new DiffusionIntegrator(MT3_coef)); blft.Assemble(); blft.Finalize(); SparseMatrix * blfT = Transpose(blf.SpMat()); SparseMatrix * diff = Add(1.0,blft.SpMat(),-1.0,*blfT); REQUIRE( diff->MaxNorm() < tol ); delete blfT; delete diff; LinearForm lf(&fespace_h1); lf.AddBoundaryIntegrator(new BoundaryNormalLFIntegrator(Mdf3_coef)); lf.Assemble(); blf.Mult(f_h1,tmp_h1); tmp_h1 -= lf; g_h1 = 0.0; CG(m_h1, tmp_h1, g_h1, 0, 200, cg_rtol * cg_rtol, 0.0); g_h1 *= -1.0; REQUIRE( g_h1.ComputeL2Error(dMdf3_coef) < tol ); } } } } TEST_CASE("3D Bilinear Mixed Grad Grad Integrators", "[MixedGradGradIntegrator]" "[MixedVectorIntegrator]" "[BilinearFormIntegrator]" "[NonlinearFormIntegrator]" "[BoundaryNormalLFIntegrator]" "[LinearFormIntegrator]") { int order = 2, n = 1, dim = 3; double cg_rtol = 1e-14; double tol = 1e-9; Mesh mesh(n, n, n, Element::HEXAHEDRON, 1, 2.0, 3.0, 5.0); FunctionCoefficient f3_coef(f3); FunctionCoefficient q3_coef(q3); VectorFunctionCoefficient D3_coef(dim, V3); MatrixFunctionCoefficient M3_coef(dim, M3); MatrixFunctionCoefficient MT3_coef(dim, MT3); FunctionCoefficient zero3_coef(zero3); VectorFunctionCoefficient df3_coef(dim, Grad_f3); VectorFunctionCoefficient qdf3_coef(dim, qGrad_f3); VectorFunctionCoefficient Ddf3_coef(dim, DGrad_f3); VectorFunctionCoefficient Mdf3_coef(dim, MGrad_f3); FunctionCoefficient dqdf3_coef(Div_qGrad_f3); FunctionCoefficient dDdf3_coef(Div_DGrad_f3); FunctionCoefficient dMdf3_coef(Div_MGrad_f3); SECTION("Operators on H1") { H1_FECollection fec_h1(order, dim); FiniteElementSpace fespace_h1(&mesh, &fec_h1); GridFunction f_h1(&fespace_h1); f_h1.ProjectCoefficient(f3_coef); SECTION("Mapping H1 to H1") { BilinearForm m_h1(&fespace_h1); m_h1.AddDomainIntegrator(new MassIntegrator()); m_h1.Assemble(); m_h1.Finalize(); GridFunction g_h1(&fespace_h1); Vector tmp_h1(fespace_h1.GetNDofs()); SECTION("Without Coefficient") { MixedBilinearForm blf(&fespace_h1, &fespace_h1); blf.AddDomainIntegrator( new MixedGradGradIntegrator()); blf.Assemble(); blf.Finalize(); SparseMatrix * blfT = Transpose(blf.SpMat()); SparseMatrix * diff = Add(1.0,blf.SpMat(),-1.0,*blfT); REQUIRE( diff->MaxNorm() < tol ); delete blfT; delete diff; LinearForm lf(&fespace_h1); lf.AddBoundaryIntegrator(new BoundaryNormalLFIntegrator(df3_coef)); lf.Assemble(); blf.Mult(f_h1,tmp_h1); tmp_h1 -= lf; g_h1 = 0.0; CG(m_h1, tmp_h1, g_h1, 0, 200, cg_rtol * cg_rtol, 0.0); REQUIRE( g_h1.ComputeL2Error(zero3_coef) < tol ); } SECTION("With Scalar Coefficient") { MixedBilinearForm blf(&fespace_h1, &fespace_h1); blf.AddDomainIntegrator( new MixedGradGradIntegrator(q3_coef)); blf.Assemble(); blf.Finalize(); SparseMatrix * blfT = Transpose(blf.SpMat()); SparseMatrix * diff = Add(1.0,blf.SpMat(),-1.0,*blfT); REQUIRE( diff->MaxNorm() < tol ); delete blfT; delete diff; LinearForm lf(&fespace_h1); lf.AddBoundaryIntegrator(new BoundaryNormalLFIntegrator(qdf3_coef)); lf.Assemble(); blf.Mult(f_h1,tmp_h1); tmp_h1 -= lf; g_h1 = 0.0; CG(m_h1, tmp_h1, g_h1, 0, 200, cg_rtol * cg_rtol, 0.0); g_h1 *= -1.0; REQUIRE( g_h1.ComputeL2Error(dqdf3_coef) < tol ); } SECTION("With Diagonal Matrix Coefficient") { MixedBilinearForm blf(&fespace_h1, &fespace_h1); blf.AddDomainIntegrator( new MixedGradGradIntegrator(D3_coef)); blf.Assemble(); blf.Finalize(); SparseMatrix * blfT = Transpose(blf.SpMat()); SparseMatrix * diff = Add(1.0,blf.SpMat(),-1.0,*blfT); REQUIRE( diff->MaxNorm() < tol ); delete blfT; delete diff; LinearForm lf(&fespace_h1); lf.AddBoundaryIntegrator(new BoundaryNormalLFIntegrator(Ddf3_coef)); lf.Assemble(); blf.Mult(f_h1,tmp_h1); tmp_h1 -= lf; g_h1 = 0.0; CG(m_h1, tmp_h1, g_h1, 0, 200, cg_rtol * cg_rtol, 0.0); g_h1 *= -1.0; REQUIRE( g_h1.ComputeL2Error(dDdf3_coef) < tol ); } SECTION("With Matrix Coefficient") { MixedBilinearForm blf(&fespace_h1, &fespace_h1); blf.AddDomainIntegrator( new MixedGradGradIntegrator(M3_coef)); blf.Assemble(); blf.Finalize(); MixedBilinearForm blft(&fespace_h1, &fespace_h1); blft.AddDomainIntegrator( new MixedGradGradIntegrator(MT3_coef)); blft.Assemble(); blft.Finalize(); SparseMatrix * blfT = Transpose(blf.SpMat()); SparseMatrix * diff = Add(1.0,blft.SpMat(),-1.0,*blfT); REQUIRE( diff->MaxNorm() < tol ); delete blfT; delete diff; LinearForm lf(&fespace_h1); lf.AddBoundaryIntegrator(new BoundaryNormalLFIntegrator(Mdf3_coef)); lf.Assemble(); blf.Mult(f_h1,tmp_h1); tmp_h1 -= lf; g_h1 = 0.0; CG(m_h1, tmp_h1, g_h1, 0, 200, cg_rtol * cg_rtol, 0.0); g_h1 *= -1.0; REQUIRE( g_h1.ComputeL2Error(dMdf3_coef) < tol ); } } } } TEST_CASE("3D Bilinear Mixed Cross Grad Grad Integrators", "[MixedCrossGradGradIntegrator]" "[MixedVectorIntegrator]" "[BilinearFormIntegrator]" "[NonlinearFormIntegrator]" "[BoundaryNormalLFIntegrator]" "[LinearFormIntegrator]") { int order = 2, n = 1, dim = 3; double cg_rtol = 1e-14; double tol = 1e-9; Mesh mesh(n, n, n, Element::HEXAHEDRON, 1, 2.0, 3.0, 5.0); FunctionCoefficient f3_coef(f3); VectorFunctionCoefficient V3_coef(dim, V3); VectorFunctionCoefficient Vxdf3_coef(dim, VcrossGrad_f3); FunctionCoefficient dVxdf3_coef(Div_VcrossGrad_f3); SECTION("Operators on H1") { H1_FECollection fec_h1(order, dim); FiniteElementSpace fespace_h1(&mesh, &fec_h1); GridFunction f_h1(&fespace_h1); f_h1.ProjectCoefficient(f3_coef); SECTION("Mapping H1 to H1") { BilinearForm m_h1(&fespace_h1); m_h1.AddDomainIntegrator(new MassIntegrator()); m_h1.Assemble(); m_h1.Finalize(); GridFunction g_h1(&fespace_h1); Vector tmp_h1(fespace_h1.GetNDofs()); SECTION("With Vector Coefficient") { MixedBilinearForm blf(&fespace_h1, &fespace_h1); blf.AddDomainIntegrator( new MixedCrossGradGradIntegrator(V3_coef)); blf.Assemble(); blf.Finalize(); SparseMatrix * blfT = Transpose(blf.SpMat()); SparseMatrix * diff = Add(1.0,blf.SpMat(),1.0,*blfT); REQUIRE( diff->MaxNorm() < tol ); delete blfT; delete diff; LinearForm lf(&fespace_h1); lf.AddBoundaryIntegrator( new BoundaryNormalLFIntegrator(Vxdf3_coef)); lf.Assemble(); blf.Mult(f_h1,tmp_h1); tmp_h1 -= lf; g_h1 = 0.0; CG(m_h1, tmp_h1, g_h1, 0, 200, cg_rtol * cg_rtol, 0.0); g_h1 *= -1.0; REQUIRE( g_h1.ComputeL2Error(dVxdf3_coef) < tol ); } } } } TEST_CASE("3D Bilinear Mixed Cross Curl Grad Integrators", "[MixedCrossCurlGradIntegrator]" "[MixedVectorIntegrator]" "[BilinearFormIntegrator]" "[NonlinearFormIntegrator]" "[BoundaryNormalLFIntegrator]" "[LinearFormIntegrator]") { int order = 2, n = 1, dim = 3; double cg_rtol = 1e-14; double tol = 1e-9; Mesh mesh(n, n, n, Element::HEXAHEDRON, 1, 2.0, 3.0, 5.0); VectorFunctionCoefficient F3_coef(dim, F3); VectorFunctionCoefficient V3_coef(dim, V3); VectorFunctionCoefficient VxdF3_coef(dim, VcrossCurlF3); FunctionCoefficient dVxdF3_coef(DivVcrossCurlF3); SECTION("Operators on ND") { ND_FECollection fec_nd(order, dim); FiniteElementSpace fespace_nd(&mesh, &fec_nd); GridFunction f_nd(&fespace_nd); f_nd.ProjectCoefficient(F3_coef); SECTION("Mapping ND to H1") { H1_FECollection fec_h1(order, dim); FiniteElementSpace fespace_h1(&mesh, &fec_h1); BilinearForm m_h1(&fespace_h1); m_h1.AddDomainIntegrator(new MassIntegrator()); m_h1.Assemble(); m_h1.Finalize(); GridFunction g_h1(&fespace_h1); Vector tmp_h1(fespace_h1.GetNDofs()); SECTION("With Vector Coefficient") { MixedBilinearForm blf(&fespace_h1, &fespace_nd); blf.AddDomainIntegrator( new MixedCrossGradCurlIntegrator(V3_coef)); blf.Assemble(); blf.Finalize(); MixedBilinearForm blfw(&fespace_nd, &fespace_h1); blfw.AddDomainIntegrator( new MixedCrossCurlGradIntegrator(V3_coef)); blfw.Assemble(); blfw.Finalize(); SparseMatrix * blfT = Transpose(blfw.SpMat()); SparseMatrix * diff = Add(1.0,blf.SpMat(),1.0,*blfT); REQUIRE( diff->MaxNorm() < tol ); delete blfT; delete diff; LinearForm lf(&fespace_h1); lf.AddBoundaryIntegrator( new BoundaryNormalLFIntegrator(VxdF3_coef)); lf.Assemble(); blfw.Mult(f_nd,tmp_h1); tmp_h1 -= lf; g_h1 = 0.0; CG(m_h1, tmp_h1, g_h1, 0, 200, cg_rtol * cg_rtol, 0.0); g_h1 *= -1.0; REQUIRE( g_h1.ComputeL2Error(dVxdF3_coef) < tol ); } } } } TEST_CASE("3D Bilinear Curl Curl Integrators", "[CurlCurlIntegrator]" "[BilinearFormIntegrator]" "[NonlinearFormIntegrator]" "[VectorFEBoundaryTangentLFIntegrator]" "[LinearFormIntegrator]") { int order = 2, n = 1, dim = 3; double cg_rtol = 1e-14; double tol = 1e-9; Mesh mesh(n, n, n, Element::HEXAHEDRON, 1, 2.0, 3.0, 5.0); VectorFunctionCoefficient F3_coef(dim, F3); FunctionCoefficient q3_coef(q3); FunctionCoefficient zero3_coef(zero3); VectorFunctionCoefficient Zero3_coef(dim, Zero3); VectorFunctionCoefficient dF3_coef(dim, CurlF3); VectorFunctionCoefficient qdF3_coef(dim, qCurlF3); VectorFunctionCoefficient dqdF3_coef(dim, Curl_qCurlF3); SECTION("Operators on ND") { ND_FECollection fec_nd(order, dim); FiniteElementSpace fespace_nd(&mesh, &fec_nd); GridFunction f_nd(&fespace_nd); f_nd.ProjectCoefficient(F3_coef); SECTION("Mapping ND to ND") { BilinearForm m_nd(&fespace_nd); m_nd.AddDomainIntegrator(new VectorFEMassIntegrator()); m_nd.Assemble(); m_nd.Finalize(); GridFunction g_nd(&fespace_nd); Vector tmp_nd(fespace_nd.GetNDofs()); SECTION("Without Coefficient") { BilinearForm blf(&fespace_nd); blf.AddDomainIntegrator(new CurlCurlIntegrator()); blf.Assemble(); blf.Finalize(); SparseMatrix * blfT = Transpose(blf.SpMat()); SparseMatrix * diff = Add(1.0,blf.SpMat(),-1.0,*blfT); REQUIRE( diff->MaxNorm() < tol ); delete blfT; delete diff; LinearForm lf(&fespace_nd); lf.AddBoundaryIntegrator( new VectorFEBoundaryTangentLFIntegrator(dF3_coef)); lf.Assemble(); blf.Mult(f_nd,tmp_nd); tmp_nd += lf; g_nd = 0.0; CG(m_nd, tmp_nd, g_nd, 0, 200, cg_rtol * cg_rtol, 0.0); REQUIRE( g_nd.ComputeL2Error(Zero3_coef) < tol ); } SECTION("With Scalar Coefficient") { BilinearForm blf(&fespace_nd); blf.AddDomainIntegrator(new CurlCurlIntegrator(q3_coef)); blf.Assemble(); blf.Finalize(); SparseMatrix * blfT = Transpose(blf.SpMat()); SparseMatrix * diff = Add(1.0,blf.SpMat(),-1.0,*blfT); REQUIRE( diff->MaxNorm() < tol ); delete blfT; delete diff; LinearForm lf(&fespace_nd); lf.AddBoundaryIntegrator( new VectorFEBoundaryTangentLFIntegrator(qdF3_coef)); lf.Assemble(); blf.Mult(f_nd,tmp_nd); tmp_nd += lf; g_nd = 0.0; CG(m_nd, tmp_nd, g_nd, 0, 200, cg_rtol * cg_rtol, 0.0); REQUIRE( g_nd.ComputeL2Error(dqdF3_coef) < tol ); } } } } TEST_CASE("3D Bilinear Mixed Curl Curl Integrators", "[MixedCurlCurlIntegrator]" "[MixedVectorIntegrator]" "[BilinearFormIntegrator]" "[NonlinearFormIntegrator]" "[VectorFEBoundaryTangentLFIntegrator]" "[LinearFormIntegrator]") { int order = 2, n = 1, dim = 3; double cg_rtol = 1e-14; double tol = 1e-9; Mesh mesh(n, n, n, Element::HEXAHEDRON, 1, 2.0, 3.0, 5.0); VectorFunctionCoefficient F3_coef(dim, F3); FunctionCoefficient q3_coef(q3); VectorFunctionCoefficient D3_coef(dim, V3); MatrixFunctionCoefficient M3_coef(dim, M3); MatrixFunctionCoefficient MT3_coef(dim, MT3); FunctionCoefficient zero3_coef(zero3); VectorFunctionCoefficient Zero3_coef(dim, Zero3); VectorFunctionCoefficient dF3_coef(dim, CurlF3); VectorFunctionCoefficient qdF3_coef(dim, qCurlF3); VectorFunctionCoefficient DdF3_coef(dim, DCurlF3); VectorFunctionCoefficient MdF3_coef(dim, MCurlF3); VectorFunctionCoefficient dqdF3_coef(dim, Curl_qCurlF3); VectorFunctionCoefficient dDdF3_coef(dim, Curl_DCurlF3); VectorFunctionCoefficient dMdF3_coef(dim, Curl_MCurlF3); SECTION("Operators on ND") { ND_FECollection fec_nd(order, dim); FiniteElementSpace fespace_nd(&mesh, &fec_nd); GridFunction f_nd(&fespace_nd); f_nd.ProjectCoefficient(F3_coef); SECTION("Mapping ND to ND") { BilinearForm m_nd(&fespace_nd); m_nd.AddDomainIntegrator(new VectorFEMassIntegrator()); m_nd.Assemble(); m_nd.Finalize(); GridFunction g_nd(&fespace_nd); Vector tmp_nd(fespace_nd.GetNDofs()); SECTION("Without Coefficient") { MixedBilinearForm blf(&fespace_nd, &fespace_nd); blf.AddDomainIntegrator( new MixedCurlCurlIntegrator()); blf.Assemble(); blf.Finalize(); SparseMatrix * blfT = Transpose(blf.SpMat()); SparseMatrix * diff = Add(1.0,blf.SpMat(),-1.0,*blfT); REQUIRE( diff->MaxNorm() < tol ); delete blfT; delete diff; LinearForm lf(&fespace_nd); lf.AddBoundaryIntegrator( new VectorFEBoundaryTangentLFIntegrator(dF3_coef)); lf.Assemble(); blf.Mult(f_nd,tmp_nd); tmp_nd += lf; g_nd = 0.0; CG(m_nd, tmp_nd, g_nd, 0, 200, cg_rtol * cg_rtol, 0.0); REQUIRE( g_nd.ComputeL2Error(Zero3_coef) < tol ); } SECTION("With Scalar Coefficient") { MixedBilinearForm blf(&fespace_nd, &fespace_nd); blf.AddDomainIntegrator( new MixedCurlCurlIntegrator(q3_coef)); blf.Assemble(); blf.Finalize(); SparseMatrix * blfT = Transpose(blf.SpMat()); SparseMatrix * diff = Add(1.0,blf.SpMat(),-1.0,*blfT); REQUIRE( diff->MaxNorm() < tol ); delete blfT; delete diff; LinearForm lf(&fespace_nd); lf.AddBoundaryIntegrator( new VectorFEBoundaryTangentLFIntegrator(qdF3_coef)); lf.Assemble(); blf.Mult(f_nd,tmp_nd); tmp_nd += lf; g_nd = 0.0; CG(m_nd, tmp_nd, g_nd, 0, 200, cg_rtol * cg_rtol, 0.0); REQUIRE( g_nd.ComputeL2Error(dqdF3_coef) < tol ); } SECTION("With Diagonal Matrix Coefficient") { MixedBilinearForm blf(&fespace_nd, &fespace_nd); blf.AddDomainIntegrator( new MixedCurlCurlIntegrator(D3_coef)); blf.Assemble(); blf.Finalize(); SparseMatrix * blfT = Transpose(blf.SpMat()); SparseMatrix * diff = Add(1.0,blf.SpMat(),-1.0,*blfT); REQUIRE( diff->MaxNorm() < tol ); delete blfT; delete diff; LinearForm lf(&fespace_nd); lf.AddBoundaryIntegrator( new VectorFEBoundaryTangentLFIntegrator(DdF3_coef)); lf.Assemble(); blf.Mult(f_nd,tmp_nd); tmp_nd += lf; g_nd = 0.0; CG(m_nd, tmp_nd, g_nd, 0, 200, cg_rtol * cg_rtol, 0.0); REQUIRE( g_nd.ComputeL2Error(dDdF3_coef) < tol ); } SECTION("With Matrix Coefficient") { MixedBilinearForm blf(&fespace_nd, &fespace_nd); blf.AddDomainIntegrator( new MixedCurlCurlIntegrator(M3_coef)); blf.Assemble(); blf.Finalize(); MixedBilinearForm blft(&fespace_nd, &fespace_nd); blft.AddDomainIntegrator( new MixedCurlCurlIntegrator(MT3_coef)); blft.Assemble(); blft.Finalize(); SparseMatrix * blfT = Transpose(blf.SpMat()); SparseMatrix * diff = Add(1.0,blft.SpMat(),-1.0,*blfT); REQUIRE( diff->MaxNorm() < tol ); delete blfT; delete diff; LinearForm lf(&fespace_nd); lf.AddBoundaryIntegrator( new VectorFEBoundaryTangentLFIntegrator(MdF3_coef)); lf.Assemble(); blf.Mult(f_nd,tmp_nd); tmp_nd += lf; g_nd = 0.0; CG(m_nd, tmp_nd, g_nd, 0, 200, cg_rtol * cg_rtol, 0.0); REQUIRE( g_nd.ComputeL2Error(dMdF3_coef) < tol ); } } } } TEST_CASE("3D Bilinear Mixed Cross Curl Curl Integrators", "[MixedCrossCurlCurlIntegrator]" "[MixedVectorIntegrator]" "[BilinearFormIntegrator]" "[NonlinearFormIntegrator]" "[VectorFEBoundaryTangentLFIntegrator]" "[LinearFormIntegrator]") { int order = 2, n = 1, dim = 3; double cg_rtol = 1e-14; double tol = 1e-9; Mesh mesh(n, n, n, Element::HEXAHEDRON, 1, 2.0, 3.0, 5.0); VectorFunctionCoefficient F3_coef(dim, F3); VectorFunctionCoefficient V3_coef(dim, V3); VectorFunctionCoefficient dF3_coef(dim, CurlF3); VectorFunctionCoefficient VdF3_coef(dim, VcrossCurlF3); VectorFunctionCoefficient dVdF3_coef(dim, Curl_VcrossCurlF3); SECTION("Operators on ND") { ND_FECollection fec_nd(order, dim); FiniteElementSpace fespace_nd(&mesh, &fec_nd); GridFunction f_nd(&fespace_nd); f_nd.ProjectCoefficient(F3_coef); SECTION("Mapping ND to ND") { BilinearForm m_nd(&fespace_nd); m_nd.AddDomainIntegrator(new VectorFEMassIntegrator()); m_nd.Assemble(); m_nd.Finalize(); GridFunction g_nd(&fespace_nd); Vector tmp_nd(fespace_nd.GetNDofs()); SECTION("With Vector Coefficient") { MixedBilinearForm blf(&fespace_nd, &fespace_nd); blf.AddDomainIntegrator( new MixedCrossCurlCurlIntegrator(V3_coef)); blf.Assemble(); blf.Finalize(); SparseMatrix * blfT = Transpose(blf.SpMat()); SparseMatrix * diff = Add(1.0,blf.SpMat(),1.0,*blfT); REQUIRE( diff->MaxNorm() < tol ); delete blfT; delete diff; LinearForm lf(&fespace_nd); lf.AddBoundaryIntegrator( new VectorFEBoundaryTangentLFIntegrator(VdF3_coef)); lf.Assemble(); blf.Mult(f_nd,tmp_nd); tmp_nd += lf; g_nd = 0.0; CG(m_nd, tmp_nd, g_nd, 0, 200, cg_rtol * cg_rtol, 0.0); REQUIRE( g_nd.ComputeL2Error(dVdF3_coef) < tol ); } } } } TEST_CASE("3D Bilinear Mixed Cross Grad Curl Integrators", "[MixedCrossGradCurlIntegrator]" "[MixedVectorIntegrator]" "[BilinearFormIntegrator]" "[NonlinearFormIntegrator]" "[VectorFEBoundaryTangentLFIntegrator]" "[LinearFormIntegrator]") { int order = 2, n = 1, dim = 3; double cg_rtol = 1e-14; double tol = 1e-9; Mesh mesh(n, n, n, Element::HEXAHEDRON, 1, 2.0, 3.0, 5.0); FunctionCoefficient f3_coef(f3); VectorFunctionCoefficient V3_coef(dim, V3); VectorFunctionCoefficient Vdf3_coef(dim, VcrossGrad_f3); VectorFunctionCoefficient dVdf3_coef(dim, Curl_VcrossGrad_f3); SECTION("Operators on H1") { H1_FECollection fec_h1(order, dim); FiniteElementSpace fespace_h1(&mesh, &fec_h1); GridFunction f_h1(&fespace_h1); f_h1.ProjectCoefficient(f3_coef); SECTION("Mapping ND to ND") { ND_FECollection fec_nd(order, dim); FiniteElementSpace fespace_nd(&mesh, &fec_nd); BilinearForm m_nd(&fespace_nd); m_nd.AddDomainIntegrator(new VectorFEMassIntegrator()); m_nd.Assemble(); m_nd.Finalize(); GridFunction g_nd(&fespace_nd); Vector tmp_nd(fespace_nd.GetNDofs()); SECTION("With Vector Coefficient") { MixedBilinearForm blf(&fespace_nd, &fespace_h1); blf.AddDomainIntegrator( new MixedCrossCurlGradIntegrator(V3_coef)); blf.Assemble(); blf.Finalize(); MixedBilinearForm blfw(&fespace_h1, &fespace_nd); blfw.AddDomainIntegrator( new MixedCrossGradCurlIntegrator(V3_coef)); blfw.Assemble(); blfw.Finalize(); SparseMatrix * blfT = Transpose(blfw.SpMat()); SparseMatrix * diff = Add(1.0,blf.SpMat(),1.0,*blfT); REQUIRE( diff->MaxNorm() < tol ); delete blfT; delete diff; LinearForm lf(&fespace_nd); lf.AddBoundaryIntegrator( new VectorFEBoundaryTangentLFIntegrator(Vdf3_coef)); lf.Assemble(); blfw.Mult(f_h1,tmp_nd); tmp_nd += lf; g_nd = 0.0; CG(m_nd, tmp_nd, g_nd, 0, 200, cg_rtol * cg_rtol, 0.0); REQUIRE( g_nd.ComputeL2Error(dVdf3_coef) < tol ); } } } } TEST_CASE("3D Bilinear Div Div Integrators", "[DivDivIntegrator]" "[BilinearFormIntegrator]" "[NonlinearFormIntegrator]" "[VectorFEBoundaryFluxLFIntegrator]" "[LinearFormIntegrator]") { int order = 2, n = 1, dim = 3; double cg_rtol = 1e-14; double tol = 1e-9; Mesh mesh(n, n, n, Element::HEXAHEDRON, 1, 2.0, 3.0, 5.0); VectorFunctionCoefficient F3_coef(dim, F3); FunctionCoefficient q3_coef(q3); VectorFunctionCoefficient D3_coef(dim, V3); MatrixFunctionCoefficient M3_coef(dim, M3); MatrixFunctionCoefficient MT3_coef(dim, MT3); FunctionCoefficient zero3_coef(zero3); VectorFunctionCoefficient Zero3_coef(dim, Zero3); FunctionCoefficient dF3_coef(DivF3); FunctionCoefficient qdF3_coef(qDivF3); VectorFunctionCoefficient dqdF3_coef(dim, Grad_qDivF3); SECTION("Operators on RT") { RT_FECollection fec_rt(order - 1, dim); FiniteElementSpace fespace_rt(&mesh, &fec_rt); GridFunction f_rt(&fespace_rt); f_rt.ProjectCoefficient(F3_coef); SECTION("Mapping RT to RT") { BilinearForm m_rt(&fespace_rt); m_rt.AddDomainIntegrator(new VectorFEMassIntegrator()); m_rt.Assemble(); m_rt.Finalize(); GridFunction g_rt(&fespace_rt); Vector tmp_rt(fespace_rt.GetNDofs()); SECTION("Without Coefficient") { BilinearForm blf(&fespace_rt); blf.AddDomainIntegrator(new DivDivIntegrator()); blf.Assemble(); blf.Finalize(); SparseMatrix * blfT = Transpose(blf.SpMat()); SparseMatrix * diff = Add(1.0,blf.SpMat(),-1.0,*blfT); REQUIRE( diff->MaxNorm() < tol ); delete blfT; delete diff; LinearForm lf(&fespace_rt); lf.AddBoundaryIntegrator( new VectorFEBoundaryFluxLFIntegrator(dF3_coef)); lf.Assemble(); blf.Mult(f_rt,tmp_rt); tmp_rt -= lf; g_rt = 0.0; CG(m_rt, tmp_rt, g_rt, 0, 200, cg_rtol * cg_rtol, 0.0); REQUIRE( g_rt.ComputeL2Error(Zero3_coef) < tol ); } SECTION("With Scalar Coefficient") { BilinearForm blf(&fespace_rt); blf.AddDomainIntegrator(new DivDivIntegrator(q3_coef)); blf.Assemble(); blf.Finalize(); SparseMatrix * blfT = Transpose(blf.SpMat()); SparseMatrix * diff = Add(1.0,blf.SpMat(),-1.0,*blfT); REQUIRE( diff->MaxNorm() < tol ); delete blfT; delete diff; LinearForm lf(&fespace_rt); lf.AddBoundaryIntegrator( new VectorFEBoundaryFluxLFIntegrator(qdF3_coef)); lf.Assemble(); blf.Mult(f_rt,tmp_rt); tmp_rt -= lf; g_rt = 0.0; CG(m_rt, tmp_rt, g_rt, 0, 200, cg_rtol * cg_rtol, 0.0); g_rt *= -1.0; REQUIRE( g_rt.ComputeL2Error(dqdF3_coef) < tol ); } } } } } // namespace bilininteg_3d
[ "shubinuh@gmail.com" ]
shubinuh@gmail.com
b617ea80b52683336b527e3fbd35d5799cfe8d47
0d0b8aefbc7a2cae31b0fb53763e5dc983f5e7b7
/ext/LiteRGSS/CGraphicsDraw.cpp
f986fecbf12ad351a68fd7215c06e958d19656f1
[]
no_license
NuriYuri/LiteRGSS
33f803afab6da2fdb00c1ba4166441f58abe4d04
38476cf97b57a4585ee5155b0f7a2fb55cdc07c3
refs/heads/development
2021-06-01T17:48:34.014993
2020-08-28T14:45:18
2020-08-28T14:45:18
113,678,773
17
6
null
2020-08-28T14:45:20
2017-12-09T15:14:55
C++
UTF-8
C++
false
false
5,429
cpp
#include <cassert> #include "CGraphicsUpdateMessage.h" #include "ruby_common.h" #include "common.h" #include "ruby/thread.h" #include "SpriteDisposer.h" #include "CBitmap_Element.h" #include "CViewport_Element.h" #include "CGraphicsSnapshot.h" #include "CGraphicsDraw.h" #include "CGraphics.h" CGraphicsDraw::CGraphicsDraw(CGraphicsSnapshot& snapshot) : m_snapshot(snapshot) { } void CGraphicsDraw::init(sf::RenderWindow& window, const CGraphicsConfig& config) { m_gameWindow = &window; m_gameWindow->setMouseCursorVisible(false); /* VSYNC choice */ m_gameWindow->setVerticalSyncEnabled(config.vSync); m_screenWidth = config.video.width; m_screenHeight = config.video.height; m_smoothScreen = config.smoothScreen; m_scale = config.video.scale; m_frameRate = config.frameRate; /* Render resize */ if (m_renderTexture != nullptr) { m_renderTexture->create(m_screenWidth, m_screenHeight); } } void CGraphicsDraw::resizeScreen(int width, int height) { CGraphics::Get().protect(); /* Restart Graphics */ CGraphics::Get().init(); /* Reset viewport render */ if (CViewport_Element::render) { CViewport_Element::render->create(width, height); CViewport_Element::render->setSmooth(m_smoothScreen); } } void CGraphicsDraw::drawBrightness() { //NO RUBY API ACCESS MUST BE DONE HERE sf::Vertex vertices[4]; sf::Vector2u size = m_gameWindow->getSize(); vertices[0].position = sf::Vector2f(0, 0); vertices[1].position = sf::Vector2f(0, size.y); vertices[2].position = sf::Vector2f(size.x, 0); vertices[3].position = sf::Vector2f(size.x, size.y); vertices[0].color = vertices[1].color = vertices[2].color = vertices[3].color = sf::Color(0, 0, 0, 255 - m_brightness); m_gameWindow->draw(vertices, 4, sf::PrimitiveType::TriangleStrip); } // // This function retreive the right render to perform the draw operations // It also resets the default view and transmit it to the right render // sf::RenderTarget& CGraphicsDraw::configureAndGetRenderTarget(sf::View& defview) { //NO RUBY API ACCESS MUST BE DONE HERE // Setting the default view parameters defview.setSize(m_screenWidth, m_screenHeight); defview.setCenter(round(m_screenWidth / 2.0f), round(m_screenHeight / 2.0f)); // Appying the default view to the Window (used in postProcessing()) m_gameWindow->setView(defview); // If the m_renderTexture is defined, we use it instead of the m_gameWindow (shader processing) if (m_renderTexture) { // Set the default view m_renderTexture->setView(defview); // It's not cleard so we perform the clear operation m_renderTexture->clear(); return *m_renderTexture.get(); } return *m_gameWindow; } // // This function perform the PostProc operation of the graphic UpdateDraw : // - Draw the render to the Window if it's defined // - Draw the transition sprite // void CGraphicsDraw::postProcessing() { //NO RUBY API ACCESS MUST BE DONE HERE // Drawing render to window if finished if (m_renderTexture) { m_renderTexture->display(); sf::Sprite sp(m_renderTexture->getTexture()); if (m_renderState == nullptr) m_gameWindow->draw(sp); else m_gameWindow->draw(sp, *m_renderState); } //Draw the "freeze" texture, if visible m_snapshot.draw(*m_gameWindow); // Update the brightness (applied to m_gameWindow) if (m_brightness != 255) { drawBrightness(); } } bool CGraphicsDraw::isGameWindowOpen() const { //NO RUBY API ACCESS MUST BE DONE HERE return m_gameWindow != nullptr && m_gameWindow->isOpen(); } void* GraphicsDraw_Update_Internal(void* dataPtr) { //NO RUBY API ACCESS MUST BE DONE HERE auto& self = *reinterpret_cast<CGraphicsDraw*>(dataPtr); if(self.isGameWindowOpen()) { self.updateInternal(); return nullptr; } auto message = std::make_unique<GraphicsUpdateMessage>(); message->errorObject = rb_eStoppedGraphics; message->message = "Game Window was closed during Graphics.update by a unknow cause..."; return message.release(); } std::unique_ptr<GraphicsUpdateMessage> CGraphicsDraw::update() { const auto result = rb_thread_call_without_gvl(GraphicsDraw_Update_Internal, static_cast<void*>(this), NULL, NULL); return std::unique_ptr<GraphicsUpdateMessage>(reinterpret_cast<GraphicsUpdateMessage*>(result)); } void CGraphicsDraw::updateInternal() { //NO RUBY API ACCESS MUST BE DONE HERE m_gameWindow->clear(); sf::View defview = m_gameWindow->getDefaultView(); auto& render_target = configureAndGetRenderTarget(defview); // Rendering C++ sprite stack m_stack->draw(defview, render_target); postProcessing(); m_gameWindow->display(); } void CGraphicsDraw::initRender() { CGraphics::Get().protect(); if (m_renderTexture == nullptr && m_renderState != nullptr) { m_renderTexture = std::make_unique<sf::RenderTexture>(); m_renderTexture->create(m_screenWidth, m_screenHeight); } } void CGraphicsDraw::setShader(sf::RenderStates* shader) { m_renderState = shader; if(shader != nullptr) { initRender(); } } void CGraphicsDraw::syncStackCppFromRuby() { m_stack->syncStackCppFromRuby(); } void CGraphicsDraw::add(CDrawable_Element& element) { m_stack->add(element); } void CGraphicsDraw::stop() { m_gameWindow = nullptr; m_stack->clear(); m_globalBitmaps.clear(); } CGraphicsDraw::~CGraphicsDraw() { stop(); }
[ "youri.54@live.fr" ]
youri.54@live.fr
126406529525bd9814b410ed21d6d740568092af
1a397eb11b0fdd607f2a9de33e95f5a7a287d1f7
/ABdivide/test.cpp
3d2fae244e4a0f1eade6aca10718e3f77223d45a
[]
no_license
ciphergalm1/AiZuJudgeCode
dbc86f3b993f340f3de213784a1eb10d1c181842
61f26ca01a5cedd33f34ea71479539849a225ee4
refs/heads/master
2021-01-17T08:38:06.406238
2016-06-20T03:36:49
2016-06-20T03:36:49
61,514,326
0
0
null
null
null
null
UTF-8
C++
false
false
347
cpp
#include<iostream> #include<iomanip> using namespace std; int main() { long long int a, b; cin >> a >> b; int result; int mod; double precisionNum; result = a / b; mod = a % b; precisionNum = double(a) / double(b); cout << result << " " << mod << " " ; printf("%.5f\n", precisionNum); system("pause"); return 0; }
[ "adfxciphergalm1@outlook.com" ]
adfxciphergalm1@outlook.com
690f0921367e52a521bfb96f888070b531f0efa6
f0fd1e7441e174eb15146afddfee1bb7c1c601ab
/Code_Examples/test_friend_function/test_friend_function/test_friend_function.cpp
8ce4c5199ed170545b4845bc1b6e14317e670abb
[]
no_license
AutomnePAN/C-PrimerPlus
91f3e739e8966c1138bb0a16b147d17cdf93f239
3ce01845702d0bffb8077a4adba069396540fbc0
refs/heads/master
2020-05-14T10:29:22.007120
2019-04-18T17:24:10
2019-04-18T17:24:10
181,762,117
0
0
null
null
null
null
UTF-8
C++
false
false
1,109
cpp
๏ปฟ// test_friend_function.cpp : ๆญคๆ–‡ไปถๅŒ…ๅซ "main" ๅ‡ฝๆ•ฐใ€‚็จ‹ๅบๆ‰ง่กŒๅฐ†ๅœจๆญคๅค„ๅผ€ๅง‹ๅนถ็ป“ๆŸใ€‚ // #include "pch.h" #include <iostream> #include "mytime0.h" int main() { Time sleep{ 6,20 }; std::cout << " The time of sleep before is : " << std::endl; sleep.Show(); Time result{ 0,0 }; result = 2.1 * sleep; std::cout << " The time of sleep after is : " << std::endl; std::cout << result; std::cout << "Hello World!\n"; } // ่ฟ่กŒ็จ‹ๅบ: Ctrl + F5 ๆˆ–่ฐƒ่ฏ• >โ€œๅผ€ๅง‹ๆ‰ง่กŒ(ไธ่ฐƒ่ฏ•)โ€่œๅ• // ่ฐƒ่ฏ•็จ‹ๅบ: F5 ๆˆ–่ฐƒ่ฏ• >โ€œๅผ€ๅง‹่ฐƒ่ฏ•โ€่œๅ• // ๅ…ฅ้—จๆ็คบ: // 1. ไฝฟ็”จ่งฃๅ†ณๆ–นๆกˆ่ต„ๆบ็ฎก็†ๅ™จ็ช—ๅฃๆทปๅŠ /็ฎก็†ๆ–‡ไปถ // 2. ไฝฟ็”จๅ›ข้˜Ÿ่ต„ๆบ็ฎก็†ๅ™จ็ช—ๅฃ่ฟžๆŽฅๅˆฐๆบไปฃ็ ็ฎก็† // 3. ไฝฟ็”จ่พ“ๅ‡บ็ช—ๅฃๆŸฅ็œ‹็”Ÿๆˆ่พ“ๅ‡บๅ’Œๅ…ถไป–ๆถˆๆฏ // 4. ไฝฟ็”จ้”™่ฏฏๅˆ—่กจ็ช—ๅฃๆŸฅ็œ‹้”™่ฏฏ // 5. ่ฝฌๅˆฐโ€œ้กน็›ฎโ€>โ€œๆทปๅŠ ๆ–ฐ้กนโ€ไปฅๅˆ›ๅปบๆ–ฐ็š„ไปฃ็ ๆ–‡ไปถ๏ผŒๆˆ–่ฝฌๅˆฐโ€œ้กน็›ฎโ€>โ€œๆทปๅŠ ็Žฐๆœ‰้กนโ€ไปฅๅฐ†็Žฐๆœ‰ไปฃ็ ๆ–‡ไปถๆทปๅŠ ๅˆฐ้กน็›ฎ // 6. ๅฐ†ๆฅ๏ผŒ่‹ฅ่ฆๅ†ๆฌกๆ‰“ๅผ€ๆญค้กน็›ฎ๏ผŒ่ฏท่ฝฌๅˆฐโ€œๆ–‡ไปถโ€>โ€œๆ‰“ๅผ€โ€>โ€œ้กน็›ฎโ€ๅนถ้€‰ๆ‹ฉ .sln ๆ–‡ไปถ
[ "2726673304@qq.com" ]
2726673304@qq.com
a2e0a4332bdeb7dc09539452c05b4eefc38c6497
41575c498b7197e97b12a8ce2a880047df363cc3
/src/local/math/Color.hpp
c70bf7880a44e8d6f4023f327fa730032aeb6efa
[]
no_license
gongfuPanada/page
f00a6f9015b4aad79398f0df041613ab28be405b
fa2ccdef4b33480c2ac5f872d717323f45618a34
refs/heads/master
2021-01-15T22:09:34.836791
2013-03-23T18:54:13
2013-03-23T18:54:13
null
0
0
null
null
null
null
UTF-8
C++
false
false
12,280
hpp
/** * @section license * * Copyright (c) 2006-2013 David Osborn * * Permission is granted to use and redistribute this software in source and * binary form, with or without modification, subject to the following * conditions: * * 1. Redistributions in source form must retain the above copyright notice, * this list of conditions, and the following disclaimer. * * 2. 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, and in the same * place and form as other copyright, license, and disclaimer information. * * As a special exception, distributions of derivative works in binary form may * include an acknowledgement in place of the above copyright notice, this list * of conditions, and the following disclaimer in the documentation and/or other * materials provided with the distribution, and in the same place and form as * other acknowledgements, similar in substance to the following: * * Portions of this software are based on the work of David Osborn. * * This software is provided "as is", without any express or implied warranty. * In no event will the authors be liable for any damages arising out of the use * of this software. */ #ifndef page_local_math_Color_hpp # define page_local_math_Color_hpp # include <cstddef> // ptrdiff_t, size_t # include <iosfwd> // [io]stream # include <iterator> // reverse_iterator # include "ArithmeticConversion.hpp" # include "fwd.hpp" // {,Hsv,Rgb,Rgba,Ycbcr}Color, defaultType # include "Matrix.hpp" # include "Vector.hpp" namespace page { namespace math { /** * @class BasicColor * * The base class of @c Color, providing a standard implementation * which all specializations share. */ template <typename Derived, unsigned n, typename T> struct BasicColor { // container traits typedef T value_type; typedef value_type &reference; typedef const value_type &const_reference; typedef value_type *iterator; typedef const value_type *const_iterator; typedef std::reverse_iterator<iterator> reverse_iterator; typedef std::reverse_iterator<const_iterator> const_reverse_iterator; typedef std::ptrdiff_t difference_type; typedef std::size_t size_type; protected: // constructors BasicColor(T = 0); BasicColor(const BasicColor &); template <typename D2, unsigned m, typename U> explicit BasicColor(const BasicColor<D2, m, U> &); explicit BasicColor(const Vector<n, T> &); // assignment BasicColor &operator =(T); BasicColor &operator =(const BasicColor &); public: // conversion explicit operator Vector<n, T>() const; // iterators iterator begin(); const_iterator begin() const; iterator end(); const_iterator end() const; // reverse iterators reverse_iterator rbegin(); const_reverse_iterator rbegin() const; reverse_iterator rend(); const_reverse_iterator rend() const; // element access reference operator [](unsigned); const_reference operator [](unsigned) const; }; /** * @name Color * * Classes for mathematically representing color in various formats. * * @{ */ template <unsigned n, typename T> struct Color : BasicColor<Color<n, T>, n, T> { typedef BasicColor<Color<n, T>, n, T> Base; // constructors Color(T = 0); template <unsigned m, typename U> explicit Color(const Color<m, U> &); explicit Color(const Vector<n, T> &); // assignment Color &operator =(T); // conversion template <typename U> operator Color<n, U>() const; using Base::begin; using Base::end; T _data[n]; // HACK: conceptually private }; template <typename T> struct HsvColor : BasicColor<HsvColor<T>, 3, T> { typedef BasicColor<HsvColor<T>, 3, T> Base; // constructors HsvColor(T = 0); HsvColor(T, T, T); template <typename U> explicit HsvColor(const HsvColor<U> &); explicit HsvColor(const RgbColor<T> &); explicit HsvColor(const RgbaColor<T> &); explicit HsvColor(const Vector<3, T> &); // assignment HsvColor &operator =(T); // conversion template <typename U> operator HsvColor<U>() const; using Base::begin; using Base::end; union { __extension__ struct { T h, s, v; }; __extension__ struct { T hue, saturation, value; }; T _data[3]; // HACK: conceptually private }; }; template <typename T> struct RgbColor : BasicColor<RgbColor<T>, 3, T> { typedef BasicColor<RgbColor<T>, 3, T> Base; // constructors RgbColor(T = 0); RgbColor(T, T, T); template <typename U> explicit RgbColor(const RgbColor<U> &); explicit RgbColor(const HsvColor<T> &); explicit RgbColor(const RgbaColor<T> &); explicit RgbColor(const Vector<3, T> &); explicit RgbColor(const YcbcrColor<T> &); // assignment RgbColor &operator =(T); // conversion template <typename U> operator RgbColor<U>() const; using Base::begin; using Base::end; union { __extension__ struct { T r, g, b; }; __extension__ struct { T red, green, blue; }; T _data[3]; // HACK: conceptually private }; }; template <typename T> struct RgbaColor : BasicColor<RgbaColor<T>, 4, T> { typedef BasicColor<RgbaColor<T>, 4, T> Base; // constructors RgbaColor(T = 0, T = 1); RgbaColor(T, T, T, T = 1); template <typename U> explicit RgbaColor(const RgbaColor<U> &); explicit RgbaColor(const HsvColor<T> &, T = 1); explicit RgbaColor(const RgbColor<T> &, T = 1); explicit RgbaColor(const Vector<4, T> &); explicit RgbaColor(const YcbcrColor<T> &, T = 1); // assignment RgbaColor &operator =(T); // conversion template <typename U> operator RgbaColor<U>() const; using Base::begin; using Base::end; union { __extension__ struct { T r, g, b, a; }; __extension__ struct { T red, green, blue, alpha; }; T _data[4]; // HACK: conceptually private }; }; template <typename T> struct YcbcrColor : BasicColor<YcbcrColor<T>, 3, T> { typedef BasicColor<YcbcrColor<T>, 3, T> Base; // constructors YcbcrColor(T = 0); YcbcrColor(T, T, T); template <typename U> explicit YcbcrColor(const YcbcrColor<U> &); explicit YcbcrColor(const RgbColor<T> &); explicit YcbcrColor(const RgbaColor<T> &); explicit YcbcrColor(const Vector<3, T> &); // assignment YcbcrColor &operator =(T); // conversion template <typename U> operator YcbcrColor<U>() const; using Base::begin; using Base::end; union { __extension__ struct { T y, cb, cr; }; __extension__ struct { T luma, blue, red; }; T _data[3]; // HACK: conceptually private }; }; /** * @} */ // RGB initialization template <typename T = defaultType> RgbColor<T> BlackRgbColor(); template <typename T = defaultType> RgbColor<T> WhiteRgbColor(); template <typename T = defaultType> RgbColor<T> LuminanceCoefficientRgbColor(); // RGBA initialization template <typename T = defaultType> RgbaColor<T> ClearRgbaColor(); template <typename T = defaultType> RgbaColor<T> BlackRgbaColor(); template <typename T = defaultType> RgbaColor<T> WhiteRgbaColor(); template <typename T = defaultType> RgbaColor<T> LuminanceCoefficientRgbaColor(); // Y'CbCr initialization template <typename T = defaultType> YcbcrColor<T> YcbcrBiasColor(); template <typename T = defaultType> YcbcrColor<T> YcbcrScaleColor(); // matrix initialization template <typename T = defaultType> Matrix<3, 3, T> RgbToYcbcrColorMatrix(); template <typename T = defaultType> Matrix<3, 3, T> YcbcrToRgbColorMatrix(); // operators # define DECLARE_BINARY_ARITHMETIC_OPERATOR(TYPE, OP) \ template <typename T, typename U> \ TYPE<typename ArithmeticConversion<T, U>::Result> \ operator OP(const TYPE<T> &, const TYPE<U> &); \ template <typename T, typename U> \ TYPE<typename ArithmeticConversion<T, U>::Result> \ operator OP(const TYPE<T> &, U); \ template <typename T, typename U> \ TYPE<typename ArithmeticConversion<T, U>::Result> \ operator OP(T, const TYPE<U> &); # define DECLARE_UNARY_ARITHMETIC_OPERATOR(TYPE, OP) \ template <typename T> TYPE<T> operator OP(const TYPE<T> &); # define DECLARE_BINARY_LOGICAL_OPERATOR(TYPE, OP) \ template <typename T, typename U> \ TYPE<bool> operator OP(const TYPE<T> &, const TYPE<U> &); \ template <typename T, typename U> \ TYPE<bool> operator OP(const TYPE<T> &, U); \ template <typename T, typename U> \ TYPE<bool> operator OP(T, const TYPE<U> &); \ # define DECLARE_UNARY_LOGICAL_OPERATOR(TYPE, OP) \ template <typename T> TYPE<bool> operator OP(const TYPE<T> &); # define DECLARE_ASSIGNMENT_OPERATOR(TYPE, OP) \ template <typename T, typename U> \ TYPE<T> &operator OP##=(TYPE<T> &, const TYPE<U> &); \ template <typename T, typename U> \ TYPE<T> &operator OP##=(TYPE<T> &, U); # define DECLARE_OPERATORS(TYPE) \ DECLARE_BINARY_ARITHMETIC_OPERATOR(TYPE, *) \ DECLARE_BINARY_ARITHMETIC_OPERATOR(TYPE, /) \ DECLARE_BINARY_ARITHMETIC_OPERATOR(TYPE, %) \ DECLARE_BINARY_ARITHMETIC_OPERATOR(TYPE, +) \ DECLARE_BINARY_ARITHMETIC_OPERATOR(TYPE, -) \ DECLARE_UNARY_ARITHMETIC_OPERATOR (TYPE, +) \ DECLARE_UNARY_ARITHMETIC_OPERATOR (TYPE, -) \ DECLARE_BINARY_LOGICAL_OPERATOR (TYPE, <) \ DECLARE_BINARY_LOGICAL_OPERATOR (TYPE, >) \ DECLARE_BINARY_LOGICAL_OPERATOR (TYPE, <=) \ DECLARE_BINARY_LOGICAL_OPERATOR (TYPE, >=) \ DECLARE_BINARY_LOGICAL_OPERATOR (TYPE, ==) \ DECLARE_BINARY_LOGICAL_OPERATOR (TYPE, !=) \ DECLARE_BINARY_LOGICAL_OPERATOR (TYPE, &&) \ DECLARE_BINARY_LOGICAL_OPERATOR (TYPE, ||) \ DECLARE_UNARY_LOGICAL_OPERATOR (TYPE, !) \ DECLARE_ASSIGNMENT_OPERATOR (TYPE, *) \ DECLARE_ASSIGNMENT_OPERATOR (TYPE, /) \ DECLARE_ASSIGNMENT_OPERATOR (TYPE, %) \ DECLARE_ASSIGNMENT_OPERATOR (TYPE, +) \ DECLARE_ASSIGNMENT_OPERATOR (TYPE, -) DECLARE_OPERATORS(HsvColor) DECLARE_OPERATORS(RgbColor) DECLARE_OPERATORS(RgbaColor) DECLARE_OPERATORS(YcbcrColor) // boolean combiners template <typename D, unsigned n, typename T> bool All(const BasicColor<D, n, T> &); template <typename D, unsigned n, typename T> bool Any(const BasicColor<D, n, T> &); // min/max functions template <typename D, unsigned n, typename T> T Min(const BasicColor<D, n, T> &); template <typename D, unsigned n, typename T> T Max(const BasicColor<D, n, T> &); template <typename D1, typename D2, unsigned n, typename T, typename U> Color<n, typename ArithmeticConversion<T, U>::Result> Min(const BasicColor<D1, n, T> &, const BasicColor<D2, n, U> &); template <typename D, unsigned n, typename T, typename U> Color<n, typename ArithmeticConversion<T, U>::Result> Min(const BasicColor<D, n, T> &, U); template <typename D, unsigned n, typename T, typename U> Color<n, typename ArithmeticConversion<T, U>::Result> Min(T, const BasicColor<D, n, U> &); template <typename D1, typename D2, unsigned n, typename T, typename U> Color<n, typename ArithmeticConversion<T, U>::Result> Max(const BasicColor<D1, n, T> &, const BasicColor<D2, n, U> &); template <typename D, unsigned n, typename T, typename U> Color<n, typename ArithmeticConversion<T, U>::Result> Max(const BasicColor<D, n, T> &, U); template <typename D, unsigned n, typename T, typename U> Color<n, typename ArithmeticConversion<T, U>::Result> Max(T, const BasicColor<D, n, U> &); // color transformations template <typename T> HsvColor<T> Complement(const HsvColor<T> &); template <typename T> RgbColor<T> MultiplyAlpha(const RgbaColor<T> &); template <typename T> YcbcrColor<T> SubRange(const YcbcrColor<T> &); template <typename T> YcbcrColor<T> ResetRange(const YcbcrColor<T> &); // stream insertion/extraction template <typename D, unsigned n, typename T> std::ostream &operator <<(std::ostream &, const BasicColor<D, n, T> &); template <typename D, unsigned n, typename T> std::istream &operator >>(std::istream &, BasicColor<D, n, T> &); // specialized algorithms template <typename D, unsigned n, typename T> void swap(BasicColor<D, n, T> &, BasicColor<D, n, T> &); } } # include "Color.tpp" #endif
[ "davidcosborn@gmail.com" ]
davidcosborn@gmail.com
c95f87d7fcf40bd74da6470f196c67799f1b8361
834402bf2ea595326c436ccaf4500b8f682f5574
/primitives/async-lock/driver.cpp
dcacb8a9512e6efdeb81a847fac334ca9645724e
[]
no_license
turingcompl33t/coroutines
0d13e4b25164622584433089be1d5e609a8600cc
e3365989bfff809e96007a0a6e66e4f9f72c77b7
refs/heads/master
2022-12-07T18:40:19.077240
2020-08-30T16:02:54
2020-08-30T16:02:54
284,468,424
6
0
null
null
null
null
UTF-8
C++
false
false
537
cpp
// driver.cpp // Example usage of async_lock. #include <cstdio> #include <cstdlib> #include <stdcoro/coroutine.hpp> #include <libcoro/eager_task.hpp> #include "async_lock.hpp" #define trace(s) fprintf(stdout, "[%s] %s\n", __func__, s) coro::eager_task<void> uncontended(async_lock& lock) { trace("enter"); { auto guard = co_await lock.acquire(); // do things protected by the lock } trace("exit"); } int main() { async_lock lock{}; auto t = uncontended(lock); return EXIT_SUCCESS; }
[ "turingcompl33t@gmail.com" ]
turingcompl33t@gmail.com
ef9d2f925adb9d189eef313e88a2fbeef0427483
091afb7001e86146209397ea362da70ffd63a916
/inst/include/nt2/include/functions/scalar/fliplr.hpp
2ef2d3317675ea7d2befd7fbd624d262c8df4574
[]
no_license
RcppCore/RcppNT2
f156b58c08863243f259d1e609c9a7a8cf669990
cd7e548daa2d679b6ccebe19744b9a36f1e9139c
refs/heads/master
2021-01-10T16:15:16.861239
2016-02-02T22:18:25
2016-02-02T22:18:25
50,460,545
15
1
null
2019-11-15T22:08:50
2016-01-26T21:29:34
C++
UTF-8
C++
false
false
179
hpp
#ifndef NT2_INCLUDE_FUNCTIONS_SCALAR_FLIPLR_HPP_INCLUDED #define NT2_INCLUDE_FUNCTIONS_SCALAR_FLIPLR_HPP_INCLUDED #include <nt2/core/include/functions/scalar/fliplr.hpp> #endif
[ "kevinushey@gmail.com" ]
kevinushey@gmail.com
4e9e1f713d333e051e313e1c091a0c4d3c02e084
56cbd791e4e0a18eacce25f707ffd36b04741e28
/BattleCity/BattleCity/StaticObject.h
cc0f651b8209cc96a7543af7d60265382683ab88
[]
no_license
NguyenVanNguyen/GameBattleCity
6d532a567ba54766c7ac1f994e9bf981047527dc
ce3ba22490bb9b5f3b1a7712a87d8f592c4ff2f7
refs/heads/master
2020-12-26T01:16:50.846777
2015-11-06T05:01:27
2015-11-06T05:01:27
null
0
0
null
null
null
null
UTF-8
C++
false
false
160
h
#pragma once #include "Object.h" class StaticObject : public Object { protected: Sprite* _image; public: StaticObject(); ~StaticObject(); };
[ "13520776@gm.uit.edu.vn" ]
13520776@gm.uit.edu.vn
e9a984ac42296f43312a1c4bc124727300de930d
d568af5c5f56530e0868395728c185192195ec35
/source/mmm.h
73799e43770a7c8d1f847e5758744333a7f2a7d9
[]
no_license
EmreBiyikli/MMM_GH
e7984ede46e9722104d4d1deb309dd5e61e41d66
9139de93b2ae8273970807003c6aa433a510636b
refs/heads/master
2020-06-08T20:32:38.136152
2015-05-19T02:40:14
2015-05-19T02:40:14
35,855,198
0
0
null
null
null
null
UTF-8
C++
false
false
7,526
h
// Copyright (C) 2011-2014 University of Pittsburgh. All rights reserved. // See COPYING.txt for details. // Author: Emre Biyikli (biyikli.emre@gmail.com) // mmm.h // ***************************************************************************** // Consists of MMM class that handles the simulation. In addition to the // construction of the class, it needs to be initialized by the Init function. // Simulation is performed by the Simulate function. The class needs to be // finalized by the Final function. #ifndef MMM_V14_6_MMM_H_ #define MMM_V14_6_MMM_H_ const double kPi = 3.14159265; // PI // Boltzmann constant in units of (g/mole)(A^2/10fs^2)(1/K) const double kBoltzmannConst = 0.83144286*1e-4; #include <string> #include <vector> using std::string; using std::vector; // See comment at top of file for a complete description. class MMM { public: // public 1 MMM(); ~MMM(); // This disallows copy and assign of the class. // TODO: activate with C++11 compiler // MMM(MMM&) = delete; // MMM& operator=(const MMM&) = delete; // Checks for lost atoms and terminates the simulation if there is any. void CheckLostAtom(); // Finalizes the class. void Final(); // Initializes the class by initializing the simulation name. void Init(string simulation_name); // Performs simulation. void Simulate(); // Accessor and mutator functions: // current_iteration_ int current_iteration() const { return current_iteration_; } void set_current_iteration(int current_iteration) { current_iteration_ = current_iteration; } void increase_current_iteration() { current_iteration_++; } // dimension_ int dimension() const { return dimension_; } void set_dimension(int dimension) { dimension_ = dimension; } // domain_boundary_ vector<double> domain_boundary() const { return domain_boundary_; } double domain_boundary_at(int dimension) const { return domain_boundary_[dimension]; } void set_domain_boundary(vector<double> domain_boundary) { domain_boundary_ = domain_boundary; } // is_dynamic_ bool is_dynamic() const { return is_dynamic_; } void set_is_dynamic(bool is_dynamic) { is_dynamic_ = is_dynamic; } // is_iteration_loop_continue_ bool is_iteration_loop_continue() const { return is_iteration_loop_continue_; } void set_is_iteration_loop_continue(bool is_iteration_loop_continue) { is_iteration_loop_continue_ = is_iteration_loop_continue; } // is_MPI_ bool is_MPI() const { return is_MPI_; } void set_is_MPI(bool is_MPI) { is_MPI_ = is_MPI; } // kinetic_energy_ double kinetic_energy() const { return kinetic_energy_; } void set_kinetic_energy(double kinetic_energy) { kinetic_energy_ = kinetic_energy; } void add_kinetic_energy(double kinetic_energy) { kinetic_energy_ += kinetic_energy; } // mass_ double mass() const { return mass_; } void set_mass(double mass) { mass_ = mass; } // name_ string name() const { return name_; } void set_name(string name) { name_ = name; } // potential_energy_ double potential_energy() const { return potential_energy_; } void set_potential_energy(double potential_energy) { potential_energy_ = potential_energy; } void add_potential_energy(double potential_energy) { potential_energy_ += potential_energy; } // processing_element_ int* processing_element_address() { return &processing_element_; } int processing_element() const { return processing_element_; } void set_processing_element(int processing_element) { processing_element_ = processing_element; } // processing_element_num_ int* processing_element_num_address() { return &processing_element_num_; } int processing_element_num() const { return processing_element_num_; } void set_processing_element_num(int processing_element_num) { processing_element_num_ = processing_element_num; } // solver_ string solver() const { return solver_; } void set_solver(string solver) { solver_ = solver; } // total_energy_ double total_energy() const { return total_energy_; } void set_total_energy(double total_energy) { total_energy_ = total_energy; } private: // Executes dimension command. void MMM::CommandDimension(); // Executes initial configuration command. void CommandInitialConfiguration(); // Executes load command. void CommandLoad(); // Executes mesh command. void CommandMesh(); // Executes model command. void CommandModel(); // Executes neighbor command. void CommandNeighbor(); // Executes output command. void CommandOutput(); // Executes potential command. void CommandPotential(); // Executes run command. void CommandRun(); // Executes select command. void CommandSelect(); // Executes temperature command. void CommandTemperature(); // Executes type command. void CommandType(); bool is_dynamic_; // whether the simulation is dynamic bool is_iteration_loop_continue_; // whether the iteration continues bool is_MPI_; // whether MPI is on double kinetic_energy_; // total kinetic energy double potential_energy_; // total potential energy double total_energy_; // total energy double mass_; // mass of an atom int current_iteration_; // current iteration int dimension_; // dimension int processing_element_; // current processing element int processing_element_num_; // number of processing elements string name_; // simulation name // solver: conjugate gradient or velocity verlet string solver_; vector<double> domain_boundary_; // boundaries of the positions of atoms class AddIn* add_in_; // add in class AtomGroup* atom_group_; // atom group class ConjugateGradient* conjugate_gradient_; // conjugate gradient class Input* input_; // input class Mesh* mesh_; // mesh class MMM* mmm_; // mmm class Model* model_; // model class Neighbor* neighbor_; // neighbor class Output* output_; // output class Potential* potential_; // potential class Select* select_; // select class Temperature* temperature_; // temperature class Time* time_; // time class VelocityVerlet* velocity_verlet_; // velocity verlet public: // public 2 // Accessor and mutator functions for sub-classes. See MANUAL.txt for details. // add_in_ AddIn* add_in() { return add_in_; } // atom_group_ AtomGroup* atom_group() { return atom_group_; } // conjugate_gradient_ ConjugateGradient* conjugate_gradient() { return conjugate_gradient_; } // input_ Input* input() { return input_; } // mesh_ Mesh* mesh() { return mesh_; } // model_ Model* model() { return model_; } // neighbor_ Neighbor* neighbor() { return neighbor_; } // output_ Output* output() { return output_; } // potential_ Potential* potential() { return potential_; } // select Select* select() { return select_; } // temperature_ Temperature* temperature() { return temperature_; } // time_ Time* time() { return time_; } // velocity_verlet_ VelocityVerlet* velocity_verlet() { return velocity_verlet_; } }; #endif // MMM_V14_6_MMM_H_
[ "biyikli.emre@gmail.com" ]
biyikli.emre@gmail.com
6dd0c6e5b53222588ac0b6eb26e7380264d3026a
097699eda0f53c44c854026b242404f217b48ae1
/Demo/Classes/Native/AssemblyU2DCSharp_MutablePose3D1015643808.h
93537a84a8bd79d9b9c571d394fdfa6740e3ffd3
[]
no_license
devantsandhu/TurF-VR
dac860137dd2bc18f891e546b6fccd23ebd923ae
78d8220c885695a803a16db174b3e05418c366cd
refs/heads/master
2023-04-18T18:29:50.835095
2021-05-06T23:32:40
2021-05-06T23:32:40
null
0
0
null
null
null
null
UTF-8
C++
false
false
510
h
๏ปฟ#pragma once #include "il2cpp-config.h" #ifndef _MSC_VER # include <alloca.h> #else # include <malloc.h> #endif #include <stdint.h> #include "AssemblyU2DCSharp_Pose3D3872859958.h" #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // MutablePose3D struct MutablePose3D_t1015643808 : public Pose3D_t3872859958 { public: public: }; #ifdef __clang__ #pragma clang diagnostic pop #endif
[ "devantsandhu@gmail.com" ]
devantsandhu@gmail.com
d8b0c25cc258b876d2993de3eb891609233e5b85
12b27184abf6be6289d7c52094ec5128cc4c3e9b
/software/RPi/roboDNN/PoolLayers.cpp
c11bc2295f2d53667b80828aec3768e270e26642
[]
no_license
mohammadfatemieh/arduino_pelikan
5ff3088d22afdfa2c64e9cb20bc6ae8acd6cf497
0223b08778a0de47b72c5d1651caca4e4d8515d3
refs/heads/master
2020-12-04T11:44:35.002383
2018-10-02T17:08:42
2018-10-02T17:10:47
null
0
0
null
null
null
null
UTF-8
C++
false
false
4,877
cpp
// // PoolLayers.cpp // ConvNet // // Created by Mรกrton Szemenyei on 2017. 09. 28.. // Copyright ยฉ 2017. Mรกrton Szemenyei. All rights reserved. // #include "PoolLayers.h" #include "Utils.h" #include "BLAS.h" #include <cfloat> MaxPoolLayer::MaxPoolLayer(int32_t _h, int32_t _w, int32_t _outCh, int32_t _size, int32_t _stride, ACTIVATION _activation) { // Setup parameters type = MAXPOOL; inH = _h; inW = _w; inCh = _outCh; stride = _stride; size = _size; outW = inW/stride; outH = inH/stride ; outCh = _outCh; outputs = new float [outH*outW*outCh]; activation = _activation; cropRows = 0; } MaxPoolLayer::~MaxPoolLayer() { delete [] outputs; } void MaxPoolLayer::forward() { if (inputs) { int32_t currInH = inH - cropRows; int32_t currOutH = outH - getNextCropRows(); int32_t w_offset = 0; int32_t h_offset = 0; // Go through all output elements for(int32_t k = 0; k < outCh; ++k){ for(int32_t i = 0; i < currOutH; ++i){ for(int32_t j = 0; j < outW; ++j){ // Get the max value amongts the input pixels int32_t out_index = j + outW*(i + currOutH*k); float max = -FLT_MAX; for(int32_t n = 0; n < size; ++n){ for(int32_t m = 0; m < size; ++m){ int32_t cur_h = h_offset + i*stride + n; int32_t cur_w = w_offset + j*stride + m; int32_t index = cur_w + inW*(cur_h + currInH*k); bool valid = (cur_h < currInH && cur_w < inW); float val = valid ? inputs[index] : -FLT_MAX; max = (val > max) ? val : max; } } outputs[out_index] = max; } } } // Activate output activate(outputs, currOutH*outW*outCh, activation); } } void MaxPoolLayer::print() { // Print layer parameters aligned std::cout << "Max Pooling:" << std::setw(8) << "(" << std::setw(3) << inCh << " x " << std::setw(3) << inW << " x " << std::setw(3) << inH << ")->(" << std::setw(3) << outCh << " x " << std::setw(3) << outW << " x " << std::setw(3) << outH << ") Size: (" << size << "x" << size << ")" << std::setw(8) << " -> " << act2string(activation) << std::endl; } AvgPoolLayer::AvgPoolLayer(int32_t _h, int32_t _w, int32_t _outCh, int32_t _size, int32_t _stride, ACTIVATION _activation) { // Setup parameters type = AVGPOOL; inH = _h; inW = _w; inCh = _outCh; stride = _stride; size = _size; outW = inW/stride; outH = inH/stride; outCh = _outCh; outputs = new float [outH*outW*outCh]; activation = _activation; cropRows = 0; } AvgPoolLayer::~AvgPoolLayer() { delete [] outputs; } void AvgPoolLayer::forward() { if (inputs) { int32_t currInH = inH - cropRows; int32_t currOutH = outH - getNextCropRows(); int32_t w_offset = 0; int32_t h_offset = 0; // Compute averaging denominator float denum = 1.f/(size*size); // Fill output with 0 fill(getN(), 0.f, outputs); // Go through all output elements for(int32_t k = 0; k < outCh; ++k){ for(int32_t i = 0; i < currOutH; ++i){ for(int32_t j = 0; j < outW; ++j){ // Sum input elements int32_t out_index = j + outW*(i + currOutH*k); for(int32_t n = 0; n < size; ++n){ for(int32_t m = 0; m < size; ++m){ int32_t cur_h = h_offset + i*stride + n; int32_t cur_w = w_offset + j*stride + m; int32_t index = cur_w + inW*(cur_h + currInH*k); if (cur_h < currInH && cur_w < inW) outputs[out_index] += inputs[index]; } } // Get average outputs[out_index] *= denum; } } } // Activate output activate(outputs, currOutH*outW*outCh, activation); } } void AvgPoolLayer::print() { // Print layer parameters aligned std::cout << "Avg Pooling:" << std::setw(8) << "(" << std::setw(3) << inCh << " x " << std::setw(3) << inW << " x " << std::setw(3) << inH << ")->(" << std::setw(3) << outCh << " x " << std::setw(3) << outW << " x " << std::setw(3) << outH << ") Size: (" << size << "x" << size << ")" << std::setw(8) << " -> " << act2string(activation) << std::endl; }
[ "weetjoue@gmail.com" ]
weetjoue@gmail.com
9c6917b657c54b53678c641e7bdcfe0688a5e1b6
5d83739af703fb400857cecc69aadaf02e07f8d1
/Archive2/42/2ca7a9cde0d13f/main.cpp
0f6b9e79ae23524f97e4e9944b734d9073b31290
[]
no_license
WhiZTiM/coliru
3a6c4c0bdac566d1aa1c21818118ba70479b0f40
2c72c048846c082f943e6c7f9fa8d94aee76979f
refs/heads/master
2021-01-01T05:10:33.812560
2015-08-24T19:09:22
2015-08-24T19:09:22
56,789,706
3
0
null
null
null
null
UTF-8
C++
false
false
2,848
cpp
#include <vector> #include <array> #include <iostream> struct Pool { void* allocate(std::size_t n) { auto aligned_n = nextpow2(align(n)); //std::cout << "allocate: " << n << " => " << aligned_n << std::endl; auto pool_index = get_pool_index(aligned_n); return do_allocate(aligned_n, pool_index); } void deallocate(void* ptr, std::size_t n) { auto aligned_n = nextpow2(align(n)); //std::cout << "deallocate: " << n << " => " << aligned_n << std::endl; auto pool_index = get_pool_index(aligned_n); return do_deallocate(ptr, aligned_n, pool_index); } void print() { for (auto& pool : pools) { std::cout << ' ' << pool.size(); } std::cout << std::endl; } private: void* do_allocate(std::size_t n, std::size_t pool_index) { if (pool_index >= num_pools) { //std::cout << "operator new(" << n << ")\n"; return ::operator new(n); } auto& pool = pools[pool_index]; if (!pool.empty()) { auto result = pool.back(); pool.pop_back(); return result; } auto result = static_cast<char*>(do_allocate(n * 2, pool_index + 1)); pool.push_back(result + n); return result; } void do_deallocate(void* ptr, std::size_t n, std::size_t pool_index) { if (pool_index >= num_pools) { //std::cout << "operator delete(" << n << ")\n"; ::operator delete(ptr); return; } auto& pool = pools[pool_index]; pool.push_back(ptr); } enum { alignment = 16, num_pools = 8 }; int log2(int x) { int y; asm( "\tbsr %1, %0\n" : "=r"(y) : "r" (x)); return y; } int nextpow2(int x) { --x; x |= x >> 1; x |= x >> 2; x |= x >> 4; x |= x >> 8; x |= x >> 16; return x+1; } std::size_t align(std::size_t n) { return (n + alignment - 1) & ~(alignment - 1); } std::size_t get_pool_index(std::size_t n) { return n <= 16 ? 0 : (log2(n) - 4); } struct BlockList : std::vector<void*> { BlockList() { reserve(10); } }; std::array<BlockList, num_pools> pools; }; int main() { Pool pool; std::vector<void*> allocs; for (auto i = 10; i<= 4000; i = i * 1.3) { allocs.push_back(pool.allocate(i)); pool.print(); } auto it = allocs.begin(); for (auto i = 10; i<= 4000; i = i * 1.3) { pool.deallocate(*it++, i); pool.print(); } }
[ "francis.rammeloo@36614edc-3e3a-acb8-9062-c8ae0e4185df" ]
francis.rammeloo@36614edc-3e3a-acb8-9062-c8ae0e4185df
590e3e15ea62d34a7729159262efa0f01aa9d6d2
34608f8ae86e01ff6174871bc4ebceba85898658
/src/Exercises/Indices/app.cpp
07f9032dd1af08ce6813023d811484a32ce813ef
[]
no_license
BartekLD/programowanie-grafiki-3d
1d5e5197c30da14a0f12437a0150bcac66d6a7ec
2f0b056d0aeb777bdf14ff79598feba025a479b7
refs/heads/main
2023-03-05T18:46:31.532682
2021-02-15T21:01:38
2021-02-15T21:01:38
306,672,173
0
0
null
null
null
null
UTF-8
C++
false
false
2,446
cpp
// // Created by pbialas on 25.09.2020. // #include "app.h" #include <iostream> #include <vector> #include <tuple> #include "Application/utils.h" void SimpleShapeApplication::init() { auto program = xe::create_program(std::string(PROJECT_DIR) + "/shaders/base_vs.glsl", std::string(PROJECT_DIR) + "/shaders/base_fs.glsl"); if (!program) { std::cerr << "Cannot create program from " << std::string(PROJECT_DIR) + "/shaders/base_vs.glsl" << " and "; std::cerr << std::string(PROJECT_DIR) + "/shaders/base_fs.glsl" << " shader files" << std::endl; } std::vector<GLfloat> vertices = { -0.5f, -0.5f, 0.0, 0.0, 0.0, 1.0, 0.5f, -0.5f, 0.0, 0.0, 0.0, 1.0, -0.5f, 0.5f, 0.0, 0.0, 1.0, 0.0, 0.5f, 0.5f, 0.0, 0.0, 1.0, 0.0, 0.0, 1.0f, 0.0, 0.0, 1.0, 0.0, }; GLuint v_buffer_handle; glGenBuffers(1, &v_buffer_handle); glBindBuffer(GL_ARRAY_BUFFER, v_buffer_handle); glBufferData(GL_ARRAY_BUFFER, vertices.size() * sizeof(GLfloat), vertices.data(), GL_STATIC_DRAW); glBindBuffer(GL_ARRAY_BUFFER, 0); std::vector<GLushort> indices = { 0,1,2,1,3,2,2,4,3 }; GLuint idx_buffer_handle; glGenBuffers(1,&idx_buffer_handle); glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, idx_buffer_handle); glBufferData(GL_ELEMENT_ARRAY_BUFFER, indices.size() * sizeof(GLushort), indices.data(), GL_STATIC_DRAW); glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, 0); glGenVertexArrays(1, &vao_); glBindVertexArray(vao_); glBindBuffer(GL_ELEMENT_ARRAY_BUFFER,idx_buffer_handle); glBindBuffer(GL_ARRAY_BUFFER, v_buffer_handle); glEnableVertexAttribArray(0); glEnableVertexAttribArray(1); glVertexAttribPointer(0, 3, GL_FLOAT, GL_FALSE, 6 * sizeof(GLfloat), reinterpret_cast<GLvoid *>(0)); glVertexAttribPointer(1, 3, GL_FLOAT, GL_FALSE, 6 * sizeof(GLfloat),reinterpret_cast<GLvoid *>(3*sizeof(GL_FLOAT))); glBindBuffer(GL_ARRAY_BUFFER, 0); glBindVertexArray(0); glClearColor(0.81f, 0.81f, 0.8f, 1.0f); int w, h; std::tie(w, h) = frame_buffer_size(); glViewport(0, 0, w, h); glEnable(GL_DEPTH_TEST); glUseProgram(program); } void SimpleShapeApplication::frame() { glBindVertexArray(vao_); glDrawElements(GL_TRIANGLES, 9, GL_UNSIGNED_SHORT,reinterpret_cast<GLvoid *>(0)); glBindVertexArray(0); }
[ "bartosz.domowicz@uj.edu.pl" ]
bartosz.domowicz@uj.edu.pl
68225d13f1e96cc864327af9e9fbc8a7aaa43bf9
786de89be635eb21295070a6a3452f3a7fe6712c
/ExpNameDb/tags/V00-00-02/src/ExpNameDatabase.cpp
77e7929f54acb9d19b2dbf3cee34fd766c2c1b72
[]
no_license
connectthefuture/psdmrepo
85267cfe8d54564f99e17035efe931077c8f7a37
f32870a987a7493e7bf0f0a5c1712a5a030ef199
refs/heads/master
2021-01-13T03:26:35.494026
2015-09-03T22:22:11
2015-09-03T22:22:11
null
0
0
null
null
null
null
UTF-8
C++
false
false
4,136
cpp
//-------------------------------------------------------------------------- // File and Version Information: // $Id$ // // Description: // Class ExpNameDatabase... // // Author List: // Andy Salnikov // //------------------------------------------------------------------------ //----------------------- // This Class's Header -- //----------------------- #include "ExpNameDb/ExpNameDatabase.h" //----------------- // C/C++ Headers -- //----------------- #include <fstream> #include <boost/format.hpp> //------------------------------- // Collaborating Class Headers -- //------------------------------- #include "ExpNameDb/Exceptions.h" #include "MsgLogger/MsgLogger.h" //----------------------------------------------------------------------- // Local Macros, Typedefs, Structures, Unions and Forward Declarations -- //----------------------------------------------------------------------- namespace { const char logger[] = "ExpNameDatabase"; } // ---------------------------------------- // -- Public Function Member Definitions -- // ---------------------------------------- namespace ExpNameDb { //---------------- // Constructors -- //---------------- ExpNameDatabase::ExpNameDatabase (const std::string fname) : m_path(fname) { if (m_path.path().empty()) { MsgLog(logger, error, "Failed to find database file " << fname); throw FileNotFoundError(ERR_LOC, fname); } } /** * @brief Get instrument and experiment name given experiment ID. * * @param[in] id Experiment ID. * @return Pair of strings, first string is instrument name, second is experiment name, * both will be empty if ID is not known. * */ std::pair<std::string, std::string> ExpNameDatabase::getNames(unsigned id) const { // open file and read it std::ifstream db(m_path.path().c_str()); unsigned dbExpNum; std::string instrName; std::string expName; std::pair<std::string, std::string> res; while (db >> dbExpNum >> instrName >> expName) { if (dbExpNum == id) { res = std::make_pair(instrName, expName); break; } } MsgLog(logger, debug, boost::format("ExpNameDatabase::getNames(%1%) -> (%2%, %3%)") % id % res.first % res.second); return res; } /** * @brief Get experiment ID given instrument and experiment names. * * Instrument name may be empty, if experiment name is unambiguous. If instrument name * is empty and experiment name is ambiguous then first matching ID is returned. * * @param[in] instrument Instrument name. * @param[in] experiment Experiment name. * @return Experiment ID or 0 if instrument/experiment is not known. * */ unsigned ExpNameDatabase::getID(const std::string& instrument, const std::string& experiment) const { // open file and read it std::ifstream db(m_path.path().c_str()); unsigned dbExpNum; std::string instrName; std::string expName; unsigned res = 0; while (db >> dbExpNum >> instrName >> expName) { if (expName == experiment and (instrument.empty() or instrName == instrument)) { res = dbExpNum; break; } } MsgLog(logger, debug, boost::format("ExpNameDatabase::getID(%1%, %2%) -> %3%") % instrument % experiment % res); return res; } /** * @brief Get instrument name and experiment ID for given experiment name. * * If experiment name is ambiguous then first matching name and ID is returned. * * @param[in] experiment Experiment name. * @return Pair of instrument name and experiment ID, name will be empty if experiment is not known. * */ std::pair<std::string, unsigned> ExpNameDatabase::getInstrumentAndID(const std::string& experiment) const { // open file and read it std::ifstream db(m_path.path().c_str()); unsigned dbExpNum; std::string instrName; std::string expName; std::pair<std::string, unsigned> res; while (db >> dbExpNum >> instrName >> expName) { if (expName == experiment) { res = std::make_pair(instrName, dbExpNum); } } MsgLog(logger, debug, boost::format("ExpNameDatabase::getInstrumentAndID(%1%) -> (%2%, %3%)") % experiment % res.first % res.second); return res; } } // namespace ExpNameDb
[ "salnikov@SLAC.STANFORD.EDU@b967ad99-d558-0410-b138-e0f6c56caec7" ]
salnikov@SLAC.STANFORD.EDU@b967ad99-d558-0410-b138-e0f6c56caec7
ecd2f8ccdc9d6ac5b4452bc7b71497cba879d5b8
946cd9de7f0cea1d917f3af3f6db4c51c964fe34
/Comp465Project1Phase1/Missile.cpp
c476c87be0fb55834615a124892a78e29f4a9498
[]
no_license
annaongithub/ruber
1bbf39f179c3cae9b8b820ba3168e7d050ce17c7
c9d6a33321854121a4085c63858a0e3f88234efb
refs/heads/master
2021-07-16T15:29:41.450482
2017-10-23T21:57:23
2017-10-23T21:57:23
105,700,310
0
3
null
2017-10-23T21:57:24
2017-10-03T20:34:13
C++
UTF-8
C++
false
false
716
cpp
#include "Missile.h" Missile::Missile(float modelSize, float modelBoundingRadius) : MoveableObj3D(modelSize, modelBoundingRadius){ updateFrameCount = 0; AORDirection = 0; }; void Missile::setDirection(glm::vec3 passedInDirection) { direction = passedInDirection; } glm::mat4 Missile::getTargetMatrixLocation() { return targetMatrixLocation; } glm::vec3 Missile::getDirection() { return direction; } int Missile::getUpdateFrameCount() { return updateFrameCount; } void Missile::update() { rotationMatrix = identity; translationMatrix = identity; // Update the orientation matrix of the missile orientationMatrix = orientationMatrix * translationMatrix * rotationMatrix; }
[ "noreply@github.com" ]
noreply@github.com
79e8dd2c214c9073c0ef8dfdac457694cfd38933
51e9012435503b693a7811301c6af4332033a1a3
/L1L2K/L1L2K.cpp
2b849aaf11cc2c513ec6ab10a4d3e74bbf008221
[]
no_license
phutruonnttn/CPP_Code_Giai_Thuat
e7e3312ae70cee9ade33994de0cc3a1f17fbf0f1
8081d346aa0348d1a6bef546036e5a498e7b2ee5
refs/heads/master
2020-07-02T04:29:51.910768
2019-08-09T07:16:37
2019-08-09T07:16:37
201,412,551
0
0
null
null
null
null
UTF-8
C++
false
false
1,028
cpp
#include <bits/stdc++.h> #define nmax 1000007 using namespace std; long long n,k,a[nmax],f[1007][1007],bb[7*nmax],b[7*nmax],d[7*nmax]; void sub1() { for (long i=1; i<=n; i++) for (long j=1; j<=n; j++) { f[i][j]=max(f[i][j],max(f[i-1][j],f[i][j-1])); if (abs(i-a[j])<=k) f[i][j]=max(f[i][j],f[i-1][j-1]+1); } cout << f[n][n]; } void sub2() { long dem=0; for (long i=1; i<=n; i++) for (long j=min(n,a[i]+k); j>=max((long long)1,a[i]-k); j--) bb[++dem]=j; long long ans=0; for (long i=1; i<=dem; i++) b[i]=1000000007; for (long i=1; i<=dem; i++) { d[i]=lower_bound(b+1,b+dem+1,bb[i])-b; b[d[i]]=bb[i]; ans=max(ans,d[i]); } cout << ans; } int main() { ios_base::sync_with_stdio(0); freopen("L1L2K.inp","r",stdin); freopen("L1L2K.out","w",stdout); cin >> n >> k; for (long i=1; i<=n; i++) cin >> a[i]; if (n<=1000) sub1(); else sub2(); }
[ "truongnguyen@MacBook-Pro-cua-TruongNP.local" ]
truongnguyen@MacBook-Pro-cua-TruongNP.local
6e0dcf73658f3393c00a87fd0f48e223a36a76f5
2eb779146daa0ba6b71344ecfeaeaec56200e890
/oneflow/api/python/rpc/consistent_rpc_token_scope.cpp
0527823f3fe4e30085ce060ee7e7f29d107363c9
[ "Apache-2.0" ]
permissive
hxfxjun/oneflow
ee226676cb86f3d36710c79cb66c2b049c46589b
2427c20f05543543026ac9a4020e479b9ec0aeb8
refs/heads/master
2023-08-17T19:30:59.791766
2021-10-09T06:58:33
2021-10-09T06:58:33
414,906,649
0
0
Apache-2.0
2021-10-09T06:15:30
2021-10-08T08:29:45
C++
UTF-8
C++
false
false
2,238
cpp
/* Copyright 2020 The OneFlow Authors. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ #include <pybind11/pybind11.h> #include <pybind11/stl.h> #include <pybind11/functional.h> #include "oneflow/api/python/of_api_registry.h" #include "oneflow/core/thread/thread_consistent_id.h" #include "oneflow/core/framework/rank_group_rpc_util.h" #include "oneflow/core/job/rank_group.h" #include "oneflow/core/job/rank_group_scope.h" #include "oneflow/core/common/symbol.h" namespace py = pybind11; namespace oneflow { namespace { Maybe<void> InitConsistentTransportTokenScope(const std::string& thread_tag, int64_t thread_consistent_id, Symbol<RankGroup> rank_group) { JUST(InitThisThreadUniqueConsistentId(thread_consistent_id, thread_tag)); static thread_local const auto& init_rank_group_scope = JUST(RankGroupScope::MakeInitialRankGroupScope(rank_group)); // no unused warning for `init_rank_group_scope`. (void)(init_rank_group_scope); return Maybe<void>::Ok(); } Maybe<void> InitConsistentTransportTokenScope(const std::string& thread_tag, int64_t thread_consistent_id) { const auto& rank_group = JUST(RankGroup::DefaultRankGroup()); JUST(InitConsistentTransportTokenScope(thread_tag, thread_consistent_id, rank_group)); return Maybe<void>::Ok(); } void ApiInitDefaultConsistentTransportTokenScope() { return InitConsistentTransportTokenScope("main", kThreadConsistentIdMain).GetOrThrow(); } } // namespace ONEFLOW_API_PYBIND11_MODULE("", m) { m.def("InitDefaultConsistentTransportTokenScope", &ApiInitDefaultConsistentTransportTokenScope); } } // namespace oneflow
[ "noreply@github.com" ]
noreply@github.com
b8e18c6ba0cd35ed937a4edbe0e65b156e030dd8
6b2a8dd202fdce77c971c412717e305e1caaac51
/solutions_5634697451274240_1/C++/Esk/B2016.cpp
859cb4fb43e039af5e690c6756f5f261e1ebc4b0
[]
no_license
alexandraback/datacollection
0bc67a9ace00abbc843f4912562f3a064992e0e9
076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf
refs/heads/master
2021-01-24T18:27:24.417992
2017-05-23T09:23:38
2017-05-23T09:23:38
84,313,442
2
4
null
null
null
null
UTF-8
C++
false
false
613
cpp
#include <iostream> #include <vector> #include <fstream> #include <string> using namespace std; int main(int argc, char* argv[]){ ifstream input(argv[1]); int nCases; input >> nCases; for(int i=0; i<nCases; i++){ std::string pancakes; input >> pancakes; int flips = 0; char prev = 'a'; for(int p=0; p<pancakes.length(); p++){ if(prev=='a'){ prev = pancakes[p]; }else{ if(prev != pancakes[p]){ prev = pancakes[p]; flips++; } } } if(pancakes[pancakes.length()-1]=='-'){ flips++; } cout << "Case #" << i+1 << ": " << flips << endl; } return 0; }
[ "alexandra1.back@gmail.com" ]
alexandra1.back@gmail.com
1e17ecda14bd4a8428f881840a9d8c148303eb7d
dfc7f333d577d11ec47e42904066606546159c92
/post_information/post_widget.h
983a0d4bc5325e1ad23a0cc4675f22b29b279cfa
[]
no_license
Han-Bug/Software-Engineering-Practice
f69a602845c85fcb5131e259337a62995db2adab
c787eab5ad061eeb6c6570fffcd7d4541e76e6ed
refs/heads/main
2023-05-14T13:27:23.337173
2021-06-11T08:23:45
2021-06-11T08:23:45
366,269,456
0
0
null
null
null
null
UTF-8
C++
false
false
783
h
#ifndef POST_WIDGET__H #define POST_WIDGET__H #include <QWidget> #include <QLabel> #include <QLayout> #include <QMouseEvent> #include "data_structs.h" #include "post_detailed_info.h" #include "database_interaction/database_interaction.h" namespace Ui { class post_widget; } class post_widget : public QWidget { Q_OBJECT public: explicit post_widget(article_post *ap,QWidget *parent = nullptr); bool updateInfo(); void enterEvent(QEvent *); void leaveEvent(QEvent *); void mousePressEvent(QMouseEvent *ev); void mouseReleaseEvent(QMouseEvent *ev); ~post_widget(); private: article_post *ap=NULL; post_detailed_info *pdi; database_interaction *db; article_postData *apd=NULL; Ui::post_widget *ui; }; #endif // POST_WIDGET__H
[ "81460817+Han-Bug@users.noreply.github.com" ]
81460817+Han-Bug@users.noreply.github.com
5499009b74ac7bf786de79e354fe9a794cb88c9a
a1fbf16243026331187b6df903ed4f69e5e8c110
/cs/engine/xrGame/UIPanelsClassFactory.h
a6b9ac5578ef169e898d72b913e216d4e97bb71d
[ "LicenseRef-scancode-warranty-disclaimer", "BSD-2-Clause" ]
permissive
OpenXRay/xray-15
ca0031cf1893616e0c9795c670d5d9f57ca9beff
1390dfb08ed20997d7e8c95147ea8e8cb71f5e86
refs/heads/xd_dev
2023-07-17T23:42:14.693841
2021-09-01T23:25:34
2021-09-01T23:25:34
23,224,089
64
23
NOASSERTION
2019-04-03T17:50:18
2014-08-22T12:09:41
C++
UTF-8
C++
false
false
327
h
#ifndef UIPANELSCLASSFACTORY #define UIPANELSCLASSFACTORY #include "UITeamState.h" #include "UIPlayerItem.h" class UITeamPanels; class UIPanelsClassFactory { private: public: UIPanelsClassFactory(); ~UIPanelsClassFactory(); UITeamState* CreateTeamPanel(shared_str const & teamName, UITeamPanels *teamPanels); }; #endif
[ "paul-kv@yandex.ru" ]
paul-kv@yandex.ru
d58b5cb8faab78fa85b99807d00191ed55e5cb24
aacc6a77ab8dce20ba738749a855e2567089ae01
/Fish.cpp
284b5420a27dec225b45cf8bad86d9808d20b053
[]
no_license
Michaelpan21/Animal1
a31a884a8cf3904aa0a1b0051256ee9acdde9b09
82a4faad43ae82ef2e56eaf3ed3f24bef72dd6e3
refs/heads/master
2020-03-29T14:20:07.311526
2018-10-10T17:53:18
2018-10-10T17:53:18
150,011,603
0
0
null
null
null
null
WINDOWS-1251
C++
false
false
9,197
cpp
#include "Animal.h" #include "ColourMenu.h" // FISH Fish :: Fish(){ size = 0; } //-------------------------------------------------------------------------------------------------------------- void Fish :: Add(){ char Breed2[100]; char Colour2[100]; char Food2[100]; int tmp_Breed[1000]; int tmp_Colour[1000]; int tmp_Food[1000]; cout << endl << " > ะ’ะฒะตะดะธั‚ะต ะŸะพั€ะพะดัƒ ะ ั‹ะฑั‹ : "; for(int i = 0 ; i < 2 ; i++) gets(Breed2); cout << " > ะ’ะฒะตะดะธั‚ะต ะฆะฒะตั‚ ะ ั‹ะฑั‹ : "; gets(Colour2); cout << " > ะ’ะฒะตะดะธั‚ะต ะขะธะฟ ะŸะธั‚ะฐะฝะธั ะ ั‹ะฑั‹ : "; gets(Food2); Load(1); tmp_Breed[size-1] = strlen(Breed2); tmp_Colour[size-1] = strlen(Colour2); tmp_Food[size-1] = strlen(Food2); Breed[size-1] = new char[tmp_Breed[size-1] + 1]; strcpy(Breed[size-1], Breed2); Colour[size-1] = new char[tmp_Colour[size-1] + 1]; strcpy(Colour[size-1], Colour2); Food[size-1] = new char[tmp_Food[size-1] + 1]; strcpy(Food[size-1], Food2); } //-------------------------------------------------------------------------------------------------------------- void Fish :: Delete(){ ColourMenu ob; int tmp, tmp2 = 1; int Counter = 0; int Number; char Mass[100]; int tmp_Read[1000]; char Read[100]; int numb = 0; cout << endl << " > ะ’ะฒะตะดะธั‚ะต ะŸะžะ ะžะ”ะฃ ะดะปั ะฃะดะฐะปะตะฝะธั : "; for(int i = 0; i < 2 ; i++) gets(Mass); for(int i = 0 ; i < size ; i++){ tmp = strcmp( Breed[i], Mass ); if(tmp == 0){ ob.Back_Yellow(); cout << endl << " " << i+1 << " | " << Breed[i] << " | " << Colour[i] << " | " << Food[i] ; Number = i; Counter++; } } ob.Back_Normal(); if(Counter > 1){ cout << endl << " > ะะฐะนะดะตะฝะพ ะะตัะบะพะปัŒะบะพ ะญะปะตะผะตะฝั‚ะพะฒ ! ะ’ะฒะตะดะธั‚ะต ะะžะœะ•ะ  ะดะปั ะฃะ”ะะ›ะ•ะะ˜ะฏ : "; cin >> Number; } if(Counter > 0){ ifstream fpin("Fish.txt", ios_base::in); if (!fpin.is_open()) cout << "ะคะฐะนะป ะฝะต ะผะพะถะตั‚ ะฑั‹ั‚ัŒ ะพั‚ะบั€ั‹ั‚!\n"; for(int i = 0 ; i < size*3 ; i++){ fpin.getline(Read,100); tmp_Read[i] = strlen(Read); } fpin.close(); fpin.open("Fish.txt", ios_base::in); Breed = new char*[size]; Colour = new char*[size]; Food = new char*[size]; for(int i = 0 ; i < size*3 ; i++) { fpin.getline(Read,100); if( i != Number*3 && i != (Number*3 + 1) && i != (Number*3 + 2) ){ if(tmp2 == 1) { Breed[numb] = new char[ tmp_Read[i] + 1 ]; strcpy(Breed[numb], Read); } if(tmp2 == 2) { Colour[numb] = new char[ tmp_Read[i] + 1 ]; strcpy(Colour[numb], Read); } if(tmp2 == 3) { Food[numb] = new char[ tmp_Read[i] + 1 ]; strcpy(Food[numb], Read); } tmp2++; if(tmp2 == 4) { tmp2 = 1; numb++; } } } fpin.close(); } size--; ob.Back_Normal(); } //-------------------------------------------------------------------------------------------------------------- void Fish :: Edit(){ ColourMenu ob; int tmp; int Counter = 0; int Number; char Mass[100]; cout << endl << " > ะ’ะฒะตะดะธั‚ะต ะŸะžะ ะžะ”ะฃ ะดะปั ะ ะตะดะฐะบั‚ะธั€ะพะฒะฐะฝะธั : "; for(int i = 0; i < 2 ; i++) gets(Mass); for(int i = 0 ; i < size ; i++){ tmp = strcmp( Breed[i], Mass ); if(tmp == 0){ ob.Back_Yellow(); cout << endl << " " << i+1 << " | " << Breed[i] << " | " << Colour[i] << " | " << Food[i] ; Number = i; Counter++; } } ob.Back_Normal(); if(Counter > 1){ cout << endl << " > ะะฐะนะดะตะฝะพ ะะตัะบะพะปัŒะบะพ ะญะปะตะผะตะฝั‚ะพะฒ ! ะ’ะฒะตะดะธั‚ะต ะะžะœะ•ะ  ะดะปั ะ ะตะดะฐะบั‚ะธั€ะพะฒะฐะฝะธั : "; cin >> Number; } if(Counter > 0){ cout << endl; char Breed2[100]; char Colour2[100]; char Food2[100]; int tmp_Breed[1000]; int tmp_Colour[1000]; int tmp_Food[1000]; cout << endl << " > ะ’ะฒะตะดะธั‚ะต ะŸะพั€ะพะดัƒ ะ ั‹ะฑั‹ : "; for(int i = 0 ; i < 1 ; i++) gets(Breed2); cout << " > ะ’ะฒะตะดะธั‚ะต ะฆะฒะตั‚ ะ ั‹ะฑั‹ : "; gets(Colour2); cout << " > ะ’ะฒะตะดะธั‚ะต ะขะธะฟ ะŸะธั‚ะฐะฝะธั ะ ั‹ะฑั‹ : "; gets(Food2); tmp_Breed[Number] = strlen(Breed2); tmp_Colour[Number] = strlen(Colour2); tmp_Food[Number] = strlen(Food2); Breed[Number] = new char[tmp_Breed[Number] + 1]; strcpy(Breed[Number], Breed2); Colour[Number] = new char[tmp_Colour[Number] + 1]; strcpy(Colour[Number], Colour2); Food[Number] = new char[tmp_Food[Number] + 1]; strcpy(Food[Number], Food2); } } //-------------------------------------------------------------------------------------------------------------- void Fish :: Check(){ ColourMenu ob; ob.Colour_Green(); cout << endl << endl << " ะขะะ‘ะ›ะ˜ะฆะ ะ ะซะ‘ะซ " << endl << endl; ob.Colour_White_Int(); cout << endl << " ะะžะœะ•ะ  ||"; cout << " ะŸะžะ ะžะ”ะ ||"; cout << " ะฆะ’ะ•ะข ||"; cout << " ะขะ˜ะŸ ะŸะ˜ะขะะะ˜ะฏ "; cout << endl; for(int i = 0 ; i < size ; i++){ ob.Back_White(); printf(" %3d\t", i+1); ob.Back_Grey(); printf("\t%30s\t", Breed[i]); ob.Back_Green(); printf("\t%40s\t", Colour[i]); ob.Back_Lightblue(); printf("\t%20s\t", Food[i]); ob.Back_Black(); cout << " ั‡ " << endl; ob.Back_White(); cout << "--------"; ob.Back_Grey(); cout << "----------------------------------------"; ob.Back_Green(); cout << "--------------------------------------------------------"; ob.Back_Lightblue();cout << "--------------------------------"; ob.Back_Black(); cout << "ั‡" << endl; } ob.Back_Normal(); } //-------------------------------------------------------------------------------------------------------------- void Fish :: Save(){ ofstream fpout("Fish.txt", ios_base::out); if (!fpout.is_open()) cout << "ะคะฐะนะป ะฝะต ะผะพะถะตั‚ ะฑั‹ั‚ัŒ ะพั‚ะบั€ั‹ั‚!\n"; for(int i = 0 ; i < size ; i++){ fpout << Breed[i] ; fpout << endl; fpout << Colour[i] << endl; fpout << Food[i] << endl; } fpout.close(); } //-------------------------------------------------------------------------------------------------------------- void Fish :: Load(int button){ ifstream fpin("Fish.txt", ios_base::in); if (!fpin.is_open()) cout << "ะคะฐะนะป ะฝะต ะผะพะถะตั‚ ะฑั‹ั‚ัŒ ะพั‚ะบั€ั‹ั‚!\n"; char Read[100]; int File_size = 0, tmp, tmp2 = 1 , numb = 0; int tmp_Read[1000]; for(int i = 0 ; i < 100 ; i++){ fpin.getline(Read,100); tmp = strlen(Read); if(tmp == 0) break; tmp_Read[i] = strlen(Read); File_size++; } fpin.close(); fpin.open("Fish.txt", ios_base::in); if(button == 0) size = File_size / 3; if(button == 1) size = (File_size / 3 ) + 1; Breed = new char*[size]; Colour = new char*[size]; Food = new char*[size]; for(int i = 0 ; i < File_size ; i++) { fpin.getline(Read,100); if(tmp2 == 1) { Breed[numb] = new char[ tmp_Read[i] + 1 ]; strcpy(Breed[numb], Read); } if(tmp2 == 2) { Colour[numb] = new char[ tmp_Read[i] + 1 ]; strcpy(Colour[numb], Read); } if(tmp2 == 3) { Food[numb] = new char[ tmp_Read[i] + 1 ]; strcpy(Food[numb], Read); } tmp2++; if(tmp2 == 4) { tmp2 = 1; numb++; } } fpin.close(); } //-------------------------------------------------------------------------------------------------------------- Fish :: ~Fish(){ for(int i = 0 ; i < size ; i++){ delete []Breed[i]; } for(int i = 0 ; i < size ; i++){ delete []Colour[i]; } for(int i = 0 ; i < size ; i++){ delete []Food[i]; } } //--------------------------------------------------------------------------------------------------------------
[ "noreply@github.com" ]
noreply@github.com
fe923b38a2e8ec305c00d5a1d3c5fea8f14c927a
64b3c34b180ca92bde75d96fcee5346562f8bdb3
/MaiOOP7/Vector.hpp
c2302ad6aa3582c5c0c219b5d616c2fa395159e4
[]
no_license
Noobgam/MAIOOP
3117c1269c365a99cc8eada502b219e82d97d903
c44c9ab4f73f4ffff99570097fffdadfdc559b11
refs/heads/master
2020-04-07T21:40:00.039733
2018-12-20T20:57:20
2018-12-20T20:57:20
158,736,409
0
0
null
null
null
null
UTF-8
C++
false
false
1,018
hpp
#ifndef Vector_hpp #define Vector_hpp #include "Iterator.h" #include <memory> #include <string> template <class T> class Vector { public: Vector(size_t size = 0); Vector(const Vector& orig); T& operator[](size_t pos); const T& operator[](size_t pos) const; void push_back(const T& data); template <class Fig> Vector<Fig> FilterType() const; size_t GetSize(); void resize(size_t newSize); std::string ToString() const; virtual ~Vector(); private: T* _data = nullptr; size_t _size = 0; size_t _capacity = 0; }; template <class T, class Callable> std::shared_ptr<Vector<T>> FilterFigures(const std::shared_ptr<Vector<T>>& source, Callable callee) { std::shared_ptr<Vector<T>> temp{new Vector<T>()}; for (int i = 0; i < source->GetSize(); ++i) { if (callee((*source)[i])) { temp->push_back((*source)[i]); } } return temp; } #endif /* Array_hpp */
[ "noobgam@MSI.localdomain" ]
noobgam@MSI.localdomain
cf99125c6d740b18d7bf6b499a3d59ba8a47c7a6
ccbfd607b2856b1f09635c9926282553758be3bb
/mean_map_entropy/src/mean_map_entropy.cpp
13289421c1cdd4968b43b8b98221046fc0bfa014
[]
no_license
la9881275/pointcloud_evaluation_tool
c4b59008f1358f479752f3aaebdac83d12f92216
40a79b615b3806602bab406228158625820b3e4c
refs/heads/master
2020-03-10T10:18:05.795622
2016-07-13T15:38:10
2016-07-13T15:38:10
129,330,006
1
0
null
null
null
null
UTF-8
C++
false
false
8,390
cpp
//============================================================================ // Name : MeanMapEntropy.cpp // Author : David Droeschel & Jan Razlaw // Version : // Copyright : // Description : Calculates Mean Map Entropy and Mean Plane Variance of a point cloud //============================================================================ #include <omp.h> #include <iostream> #include <pcl/io/pcd_io.h> #include <pcl/point_types.h> #include <pcl/common/common.h> #include <pcl/common/geometry.h> #include <pcl/common/centroid.h> #include <pcl/common/transforms.h> #include <pcl/common/time.h> #include <pcl/console/parse.h> #include <pcl/search/kdtree.h> #include <pcl/sample_consensus/method_types.h> #include <pcl/sample_consensus/model_types.h> #include <pcl/segmentation/sac_segmentation.h> #include <pcl/ModelCoefficients.h> struct PointTypeWithEntropy { PCL_ADD_POINT4D; // preferred way of adding a XYZ + padding float entropy; float planeVariance; EIGEN_MAKE_ALIGNED_OPERATOR_NEW // make sure our new allocators are aligned } EIGEN_ALIGN16; // enforce SSE padding for correct memory alignment POINT_CLOUD_REGISTER_POINT_STRUCT (PointTypeWithEntropy, (float, x, x) (float, y, y) (float, z, z) (float, entropy, entropy) (float, planeVariance, planeVariance) ) typedef pcl::PointXYZ PointT; double computeEntropy( pcl::PointCloud< PointT >::Ptr cloud ){ Eigen::Vector4f centroid; Eigen::Matrix3f covarianceMatrixNormalized = Eigen::Matrix3f::Identity();; // estimate the XYZ centroid and the normalized covariance matrix pcl::compute3DCentroid (*cloud, centroid); pcl::computeCovarianceMatrixNormalized (*cloud, centroid, covarianceMatrixNormalized); // compute the determinant and return the entropy double determinant = static_cast<double>((( 2 * M_PI * M_E) * covarianceMatrixNormalized).determinant()); return 0.5f*log(determinant); } double computePlaneVariance( pcl::PointCloud< PointT >::Ptr cloud ){ double meanDistTopQuarter = 0; std::vector<double> sortedDistances; // fit plane using RANSAC pcl::ModelCoefficients::Ptr coefficients (new pcl::ModelCoefficients); pcl::PointIndices::Ptr inliers (new pcl::PointIndices); pcl::SACSegmentation< PointT > seg; seg.setOptimizeCoefficients (true); seg.setModelType (pcl::SACMODEL_PLANE); seg.setMethodType (pcl::SAC_RANSAC); seg.setDistanceThreshold (0.005); seg.setInputCloud (cloud); seg.segment (*inliers, *coefficients); if( inliers->indices.size() < 3 ){ PCL_ERROR ("Could not estimate a planar model for the given subset of points."); meanDistTopQuarter = std::numeric_limits<double>::infinity(); }else{ // compute the distances of the points to the plane for( size_t i = 0; i < cloud->points.size(); ++i ){ double distancePointToPlane = (cloud->points[i].x * coefficients->values[0]) + (cloud->points[i].y * coefficients->values[1]) +( cloud->points[i].z * coefficients->values[2] ) + coefficients->values[3]; sortedDistances.push_back(fabs(distancePointToPlane)); } // sort distances std::sort(sortedDistances.begin(), sortedDistances.end()); // compute mean of quartile that contains the largest distances int quarterOfArray = sortedDistances.size() / 4; for( size_t i = quarterOfArray * 3; i < sortedDistances.size(); i++ ){ meanDistTopQuarter += sortedDistances[i]; } meanDistTopQuarter /= static_cast<double> (quarterOfArray); } return meanDistTopQuarter; } int main( int argc, char** argv ) { pcl::PointCloud< PointT >::Ptr inputCloud (new pcl::PointCloud< PointT >); pcl::PointCloud< PointTypeWithEntropy >::Ptr outputCloud (new pcl::PointCloud< PointTypeWithEntropy >); double entropySum = 0.f; double planeVarianceSum = 0.f; int lonelyPoints = 0; // get pointcloud std::vector<int> fileIndices = pcl::console::parse_file_extension_argument (argc, argv, ".pcd"); if (pcl::io::loadPCDFile< PointT> (argv[fileIndices[0]], *inputCloud) == -1) { PCL_ERROR ("Couldn't read file.\n"); return (-1); } // get parameters if given int stepSize = 1; double radius = 0.3; int minNeighbors = 15; pcl::console::parse_argument (argc, argv, "-stepsize", stepSize); pcl::console::parse_argument (argc, argv, "-radius", radius); bool punishSolitaryPoints = pcl::console::find_switch (argc, argv, "-punishSolitaryPoints"); pcl::console::parse_argument (argc, argv, "-minNeighbors", minNeighbors); std::cout << "Stepsize = " << stepSize << std::endl; std::cout << "Radius for neighborhood search = " << radius << std::endl; if( !punishSolitaryPoints ){ std::cout << "Paper version" << std::endl; }else{ std::cout << "Punishing solitary points. \nMinimal number of neighbors that have to be found = " << minNeighbors << std::endl; } std::cout << "--- " << std::endl; pcl::StopWatch entropyTimer; entropyTimer.reset(); pcl::KdTreeFLANN< PointT> kdtree; kdtree.setInputCloud (inputCloud); #pragma omp parallel reduction (+:entropySum, planeVarianceSum, lonelyPoints) { #pragma omp for schedule(dynamic) for (size_t i = 0; i < inputCloud->points.size(); i += stepSize ) { // print status if( i % (inputCloud->points.size()/20) == 0 ){ int percent = i * 100 / inputCloud->points.size(); std::cout << percent << " %" << std::endl; } // search for neighbors in radius std::vector<int> pointIdxRadiusSearch; std::vector<float> pointRadiusSquaredDistance; int numberOfNeighbors = kdtree.radiusSearch (inputCloud->points[i], radius, pointIdxRadiusSearch, pointRadiusSquaredDistance); // compute values if enough neighbors found double localEntropy = 0; double localPlaneVariance = 0; if( numberOfNeighbors > minNeighbors || !punishSolitaryPoints ){ // save neighbors in localCloud pcl::PointCloud< PointT>::Ptr localCloud (new pcl::PointCloud< PointT>); for( size_t iz = 0; iz < pointIdxRadiusSearch.size(); ++iz ){ localCloud->points.push_back(inputCloud->points[ pointIdxRadiusSearch[iz] ] ); } // compute entropy and plane variance localEntropy = computeEntropy(localCloud); localPlaneVariance = computePlaneVariance(localCloud); }else{ localEntropy = std::numeric_limits<double>::infinity(); localPlaneVariance = std::numeric_limits<double>::infinity(); lonelyPoints++; } // save values in new point PointTypeWithEntropy p; p.x = inputCloud->points[i].x; p.y = inputCloud->points[i].y; p.z = inputCloud->points[i].z; if (pcl_isfinite(localPlaneVariance)){ planeVarianceSum += localPlaneVariance; p.planeVariance = static_cast<float>(localPlaneVariance); }else{ // handle cases where no value could be computed if( !punishSolitaryPoints ){ p.planeVariance = 0; }else{ planeVarianceSum += radius; p.planeVariance = static_cast<float>(radius); } } if (pcl_isfinite(localEntropy)){ entropySum += localEntropy; p.entropy = static_cast<float>(localEntropy); }else{ // handle cases where no value could be computed p.entropy = 0; } // add new point to output cloud #pragma omp critical { outputCloud->push_back( p ); } } } // compute mean double meanMapEntropy = entropySum / (static_cast<double>(inputCloud->points.size() / stepSize)); double meanPlaneVariance = planeVarianceSum / (static_cast<double>(inputCloud->points.size() / stepSize)); std::cout << "--- " << std::endl; std::cout << "Mean Map Entropy is " << meanMapEntropy << std::endl; std::cout << "Mean Plane Variance is " << meanPlaneVariance << std::endl; std::cout << "Used " << entropyTimer.getTime() << " milliseconds to compute values for " << inputCloud->points.size() << " points." << std::endl; int pointsActuallyUsed = (inputCloud->points.size() / stepSize) - lonelyPoints; if( punishSolitaryPoints && (pointsActuallyUsed < lonelyPoints) ){ std::cout << "Used more solitary than not-solitary points to compute the values. You should consider changing the parameters." << std::endl; } // save output cloud in the directory of the input cloud std::string saveDestination = argv[fileIndices[0]]; saveDestination.replace(saveDestination.find_last_of("."),1,"_entropy."); if ( outputCloud->size() > 0 ) pcl::io::savePCDFileASCII (saveDestination, *outputCloud ); else PCL_ERROR ("Empty cloud. Saving error.\n"); return 0; }
[ "droeschel@ais.uni-bonn.de" ]
droeschel@ais.uni-bonn.de
5063c4f9e7db1bf6b54aa07394c1da2989d8259b
019119e06e765466fb496f03692858d9cdf6ab4f
/_oe-sdk-20071004091648/usr/local/arm/oe/arm-linux/include/mozilla-minimo/xpcom/nsIConverterOutputStream.h
57e311f0c6f45109c74ebf88cdba4152aa6c4bcf
[]
no_license
josuehenrique/iliad-hacking
44b2a5cda34511f8976fc4a4c2740edb5afa5312
49cfd0a8f989491a6cc33cf64e8542f695d2e280
refs/heads/master
2020-04-06T06:40:50.174479
2009-08-23T16:56:01
2009-08-23T16:56:01
null
0
0
null
null
null
null
UTF-8
C++
false
false
4,586
h
/* * DO NOT EDIT. THIS FILE IS GENERATED FROM /data/workareas/matthijs/svn/openembedded/build/tmp/work/minimo-0.0cvs20051025-r9/mozilla/xpcom/io/nsIConverterOutputStream.idl */ #ifndef __gen_nsIConverterOutputStream_h__ #define __gen_nsIConverterOutputStream_h__ #ifndef __gen_nsIUnicharOutputStream_h__ #include "nsIUnicharOutputStream.h" #endif /* For IDL files that don't want to include root IDL files. */ #ifndef NS_NO_VTABLE #define NS_NO_VTABLE #endif class nsIOutputStream; /* forward declaration */ /* starting interface: nsIConverterOutputStream */ #define NS_ICONVERTEROUTPUTSTREAM_IID_STR "4b71113a-cb0d-479f-8ed5-01daeba2e8d4" #define NS_ICONVERTEROUTPUTSTREAM_IID \ {0x4b71113a, 0xcb0d, 0x479f, \ { 0x8e, 0xd5, 0x01, 0xda, 0xeb, 0xa2, 0xe8, 0xd4 }} /** * This interface allows writing strings to a stream, doing automatic * character encoding conversion. */ class NS_NO_VTABLE nsIConverterOutputStream : public nsIUnicharOutputStream { public: NS_DEFINE_STATIC_IID_ACCESSOR(NS_ICONVERTEROUTPUTSTREAM_IID) /** * Initialize this stream. Must be called before any other method on this * interface, or you will crash. The output stream passed to this method * must not be null, or you will crash. * * @param aOutStream * The underlying output stream to which the converted strings will * be written. * @param aCharset * The character set to use for encoding the characters. A null * charset will be interpreted as UTF-8. * @param aBufferSize * How many bytes to buffer. A value of 0 means that no bytes will be * buffered. Implementations not supporting buffering may ignore * this parameter. * @param aReplacementCharacter * The replacement character to use when an unsupported character is found. * The character must be encodable in the selected character * encoding; otherwise, attempts to write an unsupported character * will throw NS_ERROR_LOSS_OF_SIGNIFICANT_DATA. * * A value of 0x0000 will cause an exception to be thrown upon * attempts to write unsupported characters. */ /* void init (in nsIOutputStream aOutStream, in string aCharset, in unsigned long aBufferSize, in PRUnichar aReplacementCharacter); */ NS_IMETHOD Init(nsIOutputStream *aOutStream, const char *aCharset, PRUint32 aBufferSize, PRUnichar aReplacementCharacter) = 0; }; /* Use this macro when declaring classes that implement this interface. */ #define NS_DECL_NSICONVERTEROUTPUTSTREAM \ NS_IMETHOD Init(nsIOutputStream *aOutStream, const char *aCharset, PRUint32 aBufferSize, PRUnichar aReplacementCharacter); /* Use this macro to declare functions that forward the behavior of this interface to another object. */ #define NS_FORWARD_NSICONVERTEROUTPUTSTREAM(_to) \ NS_IMETHOD Init(nsIOutputStream *aOutStream, const char *aCharset, PRUint32 aBufferSize, PRUnichar aReplacementCharacter) { return _to Init(aOutStream, aCharset, aBufferSize, aReplacementCharacter); } /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */ #define NS_FORWARD_SAFE_NSICONVERTEROUTPUTSTREAM(_to) \ NS_IMETHOD Init(nsIOutputStream *aOutStream, const char *aCharset, PRUint32 aBufferSize, PRUnichar aReplacementCharacter) { return !_to ? NS_ERROR_NULL_POINTER : _to->Init(aOutStream, aCharset, aBufferSize, aReplacementCharacter); } #if 0 /* Use the code below as a template for the implementation class for this interface. */ /* Header file */ class nsConverterOutputStream : public nsIConverterOutputStream { public: NS_DECL_ISUPPORTS NS_DECL_NSICONVERTEROUTPUTSTREAM nsConverterOutputStream(); private: ~nsConverterOutputStream(); protected: /* additional members */ }; /* Implementation file */ NS_IMPL_ISUPPORTS1(nsConverterOutputStream, nsIConverterOutputStream) nsConverterOutputStream::nsConverterOutputStream() { /* member initializers and constructor code */ } nsConverterOutputStream::~nsConverterOutputStream() { /* destructor code */ } /* void init (in nsIOutputStream aOutStream, in string aCharset, in unsigned long aBufferSize, in PRUnichar aReplacementCharacter); */ NS_IMETHODIMP nsConverterOutputStream::Init(nsIOutputStream *aOutStream, const char *aCharset, PRUint32 aBufferSize, PRUnichar aReplacementCharacter) { return NS_ERROR_NOT_IMPLEMENTED; } /* End of implementation class template. */ #endif #endif /* __gen_nsIConverterOutputStream_h__ */
[ "supad@tujuh.oppermannen.com" ]
supad@tujuh.oppermannen.com
e8a4ee921e186d5883d2303c51aa37d2413c5b6c
fd16215cc466dd1d2aa924f6c495520ed3a5f374
/8.3.cpp
f718374e78fd6cb3d851c675d259846ea4219774
[]
no_license
alvyC/ctci
4aa02408a90107c5c4e8f43f7535aa934d358585
2fd6796f9dd019a6b2a2ef72d974dd56efb38e6b
refs/heads/master
2021-06-18T10:22:54.994747
2017-06-07T21:41:28
2017-06-07T21:41:28
null
0
0
null
null
null
null
UTF-8
C++
false
false
1,538
cpp
#include <stdio.h> #include <stdlib.h> #include <algorithm> #include <queue> #include <string> #include <memory> #include <limits> #include <list> #include <map> #include <iostream> #include <array> using namespace std; int* get_magic_unique(int* numbers, int start, int end) { if (start == end) { return nullptr; } int middle = (end + start) / 2; int middle_val = numbers[middle]; if (middle == middle_val) { return numbers + middle; } else if (middle < middle_val) { return get_magic_unique(numbers, start, middle); } else { return get_magic_unique(numbers, middle + 1, end); } return nullptr; } int* get_magic(int* numbers, int start, int end) { if (end <= start) { return nullptr; } int middle = (end + start) / 2; int middle_val = numbers[middle]; if (middle == middle_val) { return numbers + middle; } if (int* left_val = get_magic(numbers, start, min(middle, middle_val))) { return left_val; } return get_magic(numbers, max(middle + 1, middle_val), end); } int main(int argc, char** argv) { { int numbers[] = { -1, 1, 3, 5, 6, 10, 32, 34, 35, 36, 37, 38 }; int n_numbers = sizeof(numbers) / sizeof(*numbers); int* magic = get_magic_unique(numbers, 0, n_numbers); printf("Magic pos/val (unique vals): %i\n", magic ? *magic : -1); } { int numbers[] = { -100, -30, -2, -1, -1, 1, 7, 8, 8, 32, 34, 35, 36, 37, 38 }; int n_numbers = sizeof(numbers) / sizeof(*numbers); int* magic = get_magic(numbers, 0, n_numbers); printf("Magic pos/val: %i\n", magic ? *magic : -1); } }
[ "oskargustafsson88@gmail.com" ]
oskargustafsson88@gmail.com
04614a57b0bc899498b3d40231595ba77f8cb7ac
70615fa8f43c903f59b81337386e9e73c4a0c3cd
/chrome/browser/sync/test/integration/single_client_os_preferences_sync_test.cc
7c5c7cd52716ca429d093f11a6b61fd8185b2c70
[ "BSD-3-Clause" ]
permissive
MinghuiGao/chromium
28e05be8cafe828da6b2a4b74d46d2fbb357d25b
7c79100d7f3124e2702a4d4586442912e161df7e
refs/heads/master
2023-03-03T00:47:05.735666
2019-12-03T15:35:35
2019-12-03T15:35:35
225,664,287
1
0
BSD-3-Clause
2019-12-03T16:18:56
2019-12-03T16:18:55
null
UTF-8
C++
false
false
2,046
cc
// Copyright 2019 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 "ash/public/cpp/ash_pref_names.h" #include "ash/public/cpp/shelf_prefs.h" #include "chrome/browser/sync/test/integration/os_sync_test.h" #include "chrome/browser/sync/test/integration/preferences_helper.h" #include "chrome/browser/sync/test/integration/updated_progress_marker_checker.h" #include "components/sync/base/model_type.h" #include "components/sync/driver/sync_service.h" #include "components/sync/driver/sync_user_settings.h" #include "testing/gtest/include/gtest/gtest.h" using preferences_helper::ChangeStringPref; using preferences_helper::StringPrefMatches; namespace { class SingleClientOsPreferencesSyncTest : public OsSyncTest { public: SingleClientOsPreferencesSyncTest() : OsSyncTest(SINGLE_CLIENT) {} ~SingleClientOsPreferencesSyncTest() override = default; }; IN_PROC_BROWSER_TEST_F(SingleClientOsPreferencesSyncTest, Sanity) { ASSERT_TRUE(SetupSync()) << "SetupSync() failed."; // Shelf alignment is a Chrome OS only preference. ASSERT_TRUE(StringPrefMatches(ash::prefs::kShelfAlignment)); ChangeStringPref(/*profile_index=*/0, ash::prefs::kShelfAlignment, ash::kShelfAlignmentRight); ASSERT_TRUE(UpdatedProgressMarkerChecker(GetSyncService(0)).Wait()); EXPECT_TRUE(StringPrefMatches(ash::prefs::kShelfAlignment)); } IN_PROC_BROWSER_TEST_F(SingleClientOsPreferencesSyncTest, DisablingOsSyncFeatureDisablesDataType) { ASSERT_TRUE(SetupSync()); syncer::SyncService* service = GetSyncService(0); syncer::SyncUserSettings* settings = service->GetUserSettings(); EXPECT_TRUE(settings->GetOsSyncFeatureEnabled()); EXPECT_TRUE(service->GetActiveDataTypes().Has(syncer::OS_PREFERENCES)); settings->SetOsSyncFeatureEnabled(false); EXPECT_FALSE(settings->GetOsSyncFeatureEnabled()); EXPECT_FALSE(service->GetActiveDataTypes().Has(syncer::OS_PREFERENCES)); } } // namespace
[ "commit-bot@chromium.org" ]
commit-bot@chromium.org
ac7f880d5617be0a243767c7571c5ae627bdf809
d6a1da196bc61ceecce316b91607c9df1c62d12d
/Eto/B/30 Lists, Vectors, Arrays/6 vector.cpp
a35a6e52c5e3bc3d27a39a8c8f3d02ab4aab867d
[]
no_license
DanielMaydana/FJALA-mod2
75aefa40b0e962e9fa946a822b22533682ba1b6e
6296d4098ac309389143161e973d2f1021f785f0
refs/heads/master
2021-06-13T08:30:01.789114
2019-08-15T15:13:08
2019-08-15T15:13:08
172,765,900
0
0
null
2021-05-10T04:36:10
2019-02-26T18:23:31
C++
UTF-8
C++
false
false
505
cpp
#include <iostream> #include <string.h> #include <stdio.h> #include <vector> #include <memory> #include <array> #include <list> #include <algorithm> using namespace std; int main() { vector<int> ints; for(size_t i = 0; i < 1'000'000; ++i) { ints.push_back(i); } auto pos = find(ints.begin(), ints.end(), 999'999); // returns an iterator if found if(pos == ints.end()) { cerr << "not found" << "\n"; } else { cout << *pos << "\n"; } }
[ "Daniel.Maydana@fundacion-jala.org" ]
Daniel.Maydana@fundacion-jala.org
8e799500e19bbc65511ca8e042771c8ec257fc2c
695e663e13aa90311f9c1e9f2227f548fcc26d50
/array/36.cpp
68c8cd74898f390345ae30ea45ebc3f7946db572
[]
no_license
Lazarus-10/Final450
954beb827125cfa6959ad223190279ff1eb556b4
725d8cb6babc1c84e503edb5ae4438f0e2d06823
refs/heads/main
2023-07-19T23:05:08.076610
2021-09-01T06:49:40
2021-09-01T06:49:40
374,356,791
1
1
null
null
null
null
UTF-8
C++
false
false
885
cpp
// { Driver Code Starts #include <bits/stdc++.h> using namespace std; // } Driver Code Ends class Solution{ public: int sb(int arr[], int n, int x) { int start = 0, end = 0; int curr_sum = 0; int min_len = n+1; while(end < n){ while(curr_sum <= x && end < n){ curr_sum += arr[end++]; } while(curr_sum > x && start < n){ if(end - start < min_len){ min_len = end - start; } curr_sum -= arr[start++]; } } return min_len; } }; // { Driver Code Starts. int main() { // your code goes here int t; cin>>t; while(t--) { int n,x; cin>>n>>x; int a[n]; for(int i=0;i<n;i++) cin>>a[i]; Solution obj; cout<<obj.sb(a,n,x)<<endl; } return 0; } // } Driver Code Ends
[ "ksarim225@gmail.com" ]
ksarim225@gmail.com
836a51ae268c3000032ac57073ba74f274977e44
5ebd5cee801215bc3302fca26dbe534e6992c086
/blazetest/src/mathtest/smatdvecmult/DCaVDb.cpp
6278672da8b56ddba6c45c02aa44cfe68f84a69b
[ "BSD-3-Clause" ]
permissive
mhochsteger/blaze
c66d8cf179deeab4f5bd692001cc917fe23e1811
fd397e60717c4870d942055496d5b484beac9f1a
refs/heads/master
2020-09-17T01:56:48.483627
2019-11-20T05:40:29
2019-11-20T05:41:35
223,951,030
0
0
null
null
null
null
UTF-8
C++
false
false
4,348
cpp
//================================================================================================= /*! // \file src/mathtest/smatdvecmult/DCaVDb.cpp // \brief Source file for the DCaVDb sparse matrix/dense vector multiplication math test // // Copyright (C) 2012-2019 Klaus Iglberger - All Rights Reserved // // This file is part of the Blaze library. You can redistribute it and/or modify it under // the terms of the New (Revised) BSD License. Redistribution and use in source and binary // forms, with or without modification, are permitted provided that the following conditions // are met: // // 1. Redistributions of source code must retain the above copyright notice, this list of // conditions and the following disclaimer. // 2. 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. // 3. Neither the names of the Blaze development group nor the names of its contributors // may be used to endorse or promote products derived from this software without specific // prior written permission. // // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY // EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES // OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT // SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, // INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED // TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR // BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN // ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH // DAMAGE. */ //================================================================================================= //************************************************************************************************* // Includes //************************************************************************************************* #include <cstdlib> #include <iostream> #include <blaze/math/CompressedMatrix.h> #include <blaze/math/DiagonalMatrix.h> #include <blaze/math/DynamicVector.h> #include <blazetest/mathtest/Creator.h> #include <blazetest/mathtest/smatdvecmult/OperationTest.h> #include <blazetest/system/MathTest.h> #ifdef BLAZE_USE_HPX_THREADS # include <hpx/hpx_main.hpp> #endif //================================================================================================= // // MAIN FUNCTION // //================================================================================================= //************************************************************************************************* int main() { std::cout << " Running 'DCaVDb'..." << std::endl; using blazetest::mathtest::TypeA; using blazetest::mathtest::TypeB; try { // Matrix type definitions using DCa = blaze::DiagonalMatrix< blaze::CompressedMatrix<TypeA> >; using VDb = blaze::DynamicVector<TypeB>; // Creator type definitions using CDCa = blazetest::Creator<DCa>; using CVDb = blazetest::Creator<VDb>; // Running tests with small matrices and vectors for( size_t i=0UL; i<=6UL; ++i ) { for( size_t j=0UL; j<=i; ++j ) { RUN_SMATDVECMULT_OPERATION_TEST( CDCa( i, j ), CVDb( i ) ); } } // Running tests with large matrices and vectors RUN_SMATDVECMULT_OPERATION_TEST( CDCa( 67UL, 7UL ), CVDb( 67UL ) ); RUN_SMATDVECMULT_OPERATION_TEST( CDCa( 127UL, 13UL ), CVDb( 127UL ) ); RUN_SMATDVECMULT_OPERATION_TEST( CDCa( 64UL, 8UL ), CVDb( 64UL ) ); RUN_SMATDVECMULT_OPERATION_TEST( CDCa( 128UL, 16UL ), CVDb( 128UL ) ); } catch( std::exception& ex ) { std::cerr << "\n\n ERROR DETECTED during sparse matrix/dense vector multiplication:\n" << ex.what() << "\n"; return EXIT_FAILURE; } return EXIT_SUCCESS; } //*************************************************************************************************
[ "klaus.iglberger@gmail.com" ]
klaus.iglberger@gmail.com
f2121d005a67d964d2842e77b4c605b1ecb3ee08
91bdf35a25d78912705b7fa4d4d20c5c90d07ca2
/project02/list.cpp
c3525b04094360283bcb1070ea2ff83a1f050f80
[]
no_license
bdigenov/DataStructures
da10675727b8a0247786451a0fd5079f4f486c58
dccce39c9634e2d7bb57ea59431b0ad4249c3333
refs/heads/master
2021-01-23T08:49:18.687412
2017-09-06T03:21:30
2017-09-06T03:21:30
102,554,801
0
0
null
null
null
null
UTF-8
C++
false
false
573
cpp
// list.cpp #include "lsort.h" #include <memory> // Constructor List::List() { head = 0; } // Destructor List::~List() { Node* current = head; while( current != 0 ) { Node* next = current->next; delete current; current = next; } head = 0; } // Push_front inserts a new struct Node to the front of the list void List::push_front(const std::string &s) { Node* temp = new Node; temp->number = std::stoi(s); temp->string = s; temp->next = head; head = temp; } // vim: set sts=4 sw=4 ts=8 expandtab ft=cpp:
[ "bdigenov@student01.cse.nd.edu" ]
bdigenov@student01.cse.nd.edu
b0dd87b72aa9e35f4682a665d54474fa92e22ebb
19c8b5f4b4fe9032e80c89afd045b651cdad22c8
/Krakoa/Source/Scene/Entity/ScriptEntity.cpp
863d827bfc631f071d7390febecbec9b45a2ea1d
[ "Apache-2.0" ]
permissive
KingKiller100/Krakoa-Engine
7ae1dab1359976d0c6d220f4efa7bfcce264e2bf
ff07f7328d428c04e06b561b6afd315eea39865c
refs/heads/master
2023-04-30T23:36:27.160368
2022-01-16T02:24:04
2022-01-16T02:24:04
216,686,702
1
0
null
null
null
null
UTF-8
C++
false
false
795
cpp
๏ปฟ#include "Precompile.hpp" #include "ScriptEntity.hpp" namespace krakoa::scene::ecs { ScriptEntity::ScriptEntity(const std::string& scriptName) : scriptName(scriptName) {} ScriptEntity::~ScriptEntity() = default; EntityUID ScriptEntity::GetEntityID() const { return pEntity->GetID(); } bool ScriptEntity::IsActive() const { return pEntity->IsActive(); } void ScriptEntity::Deactivate() const { pEntity->Deactivate(); } void ScriptEntity::Activate() const { pEntity->Activate(); } void ScriptEntity::SetEntity(Entity* e) { pEntity = e; } std::string_view ScriptEntity::GetScriptName() const noexcept { return scriptName; } void ScriptEntity::OnCreate() {} void ScriptEntity::OnDestroy() {} void ScriptEntity::OnUpdate(float deltaTime) {} }
[ "kwekudeheer@ymail.com" ]
kwekudeheer@ymail.com
04d820dc17affa6a019794e72aed9a08c5d8c08c
ffacd38bbd5e427b7a2d757f57d39916931cd9f7
/lite/backends/arm/math/fp16/activation_fp16.cc
538351329b5e9aafe5aa8e7e67b86fa65a0fbe84
[ "Apache-2.0" ]
permissive
fuaq/Paddle-Lite
59ff12dbc8c7d41b8da42404d8a5a3ea95fe343e
56e1239410d976842fc6f7792de13c9d007d253f
refs/heads/develop
2023-07-11T01:47:01.107411
2021-08-23T06:44:51
2021-08-23T06:44:51
374,947,749
1
0
Apache-2.0
2021-06-08T09:02:21
2021-06-08T09:02:20
null
UTF-8
C++
false
false
14,920
cc
// Copyright (c) 2019 PaddlePaddle Authors. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. #include "lite/backends/arm/math/fp16/activation_fp16.h" #include <algorithm> #include "lite/backends/arm/math/fp16/funcs_fp16.h" namespace paddle { namespace lite { namespace arm { namespace math { namespace fp16 { template <> void act_relu<float16_t>(const float16_t* din, float16_t* dout, int size, int threads) { int nums_per_thread = size / threads; int remain = size - threads * nums_per_thread; int neon_loop_cnt = nums_per_thread >> 5; int neon_loop_rem = nums_per_thread & 31; int neon_loop_rem_cnt = neon_loop_rem >> 3; int neon_loop_rem_rem = neon_loop_rem & 7; int stride = neon_loop_rem_cnt << 3; float16x8_t vzero = vdupq_n_f16(0.f); #pragma omp parallel for for (int i = 0; i < threads; ++i) { const float16_t* ptr_in_thread = din + i * nums_per_thread; float16_t* ptr_out_thread = dout + i * nums_per_thread; int cnt = neon_loop_cnt; if (neon_loop_cnt > 0 || neon_loop_rem_cnt > 0) { #ifdef __aarch64__ asm volatile( "cmp %w[cnt], #1 \n" "ldr q0, [%[din_ptr]], #16\n" "ldr q1, [%[din_ptr]], #16\n" "ldr q2, [%[din_ptr]], #16\n" "ldr q3, [%[din_ptr]], #16\n" "blt 0f\n" "1: \n" "fmax v4.8h, v0.8h, %[vzero].8h\n" "fmax v5.8h, v1.8h, %[vzero].8h\n" "ldr q0, [%[din_ptr]], #16\n" "fmax v6.8h, v2.8h, %[vzero].8h\n" "ldr q1, [%[din_ptr]], #16\n" "fmax v7.8h, v3.8h, %[vzero].8h\n" "subs %w[cnt], %w[cnt], #1\n" "ldr q2, [%[din_ptr]], #16\n" "ldr q3, [%[din_ptr]], #16\n" "stp q4, q5, [%[dout_ptr]], #32\n" "stp q6, q7, [%[dout_ptr]], #32\n" "bne 1b\n" "0: \n" "cmp %w[rem_cnt], #0\n" "beq 2f\n" "cmp %w[rem_cnt], #1\n" "beq 3f\n" "cmp %w[rem_cnt], #2\n" "beq 4f\n" "cmp %w[rem_cnt], #3\n" "beq 5f\n" "3: \n" "fmax v4.8h, v0.8h, %[vzero].8h\n" "str q4, [%[dout_ptr]], #16\n" "b 2f\n" "4: \n" "fmax v4.8h, v0.8h, %[vzero].8h\n" "fmax v5.8h, v1.8h, %[vzero].8h\n" "stp q4, q5, [%[dout_ptr]], #32\n" "b 2f\n" "5: \n" "fmax v4.8h, v0.8h, %[vzero].8h\n" "fmax v5.8h, v1.8h, %[vzero].8h\n" "fmax v6.8h, v2.8h, %[vzero].8h\n" "stp q4, q5, [%[dout_ptr]], #32\n" "str q6, [%[dout_ptr]], #16\n" "2: \n" : [din_ptr] "+r"(ptr_in_thread), [dout_ptr] "+r"(ptr_out_thread), [cnt] "+r"(cnt) : [rem_cnt] "r"(neon_loop_rem_cnt), [vzero] "w"(vzero) : "cc", "memory", "v0", "v1", "v2", "v3", "v4", "v5", "v6", "v7"); #else #endif } ptr_in_thread -= stride; for (int j = 0; j < neon_loop_rem_rem; ++j) { ptr_out_thread[0] = ptr_in_thread[0] > 0.f ? ptr_in_thread[0] : 0.f; ptr_in_thread++; ptr_out_thread++; } } float16_t* out_ptr_remain = dout + threads * nums_per_thread; const float16_t* in_ptr_remain = din + threads * nums_per_thread; for (int j = 0; j < remain; ++j) { out_ptr_remain[0] = in_ptr_remain[0] > 0.f ? in_ptr_remain[0] : 0.f; in_ptr_remain++; out_ptr_remain++; } } template <> void act_hard_sigmoid<float16_t>(const float16_t* din, float16_t* dout, const int size, const float slope, const float offset, int threads) { int cnt = size >> 5; int remain = size & 31; int cnt_4 = remain >> 3; int remain_4 = remain & 7; float16x8_t vzero_8 = vdupq_n_f16(float16_t(0)); float16x8_t vone_8 = vdupq_n_f16(float16_t(1)); float16x8_t vslope_8 = vdupq_n_f16(float16_t(slope)); float16x8_t voffset_8 = vdupq_n_f16(float16_t(offset)); #ifdef __aarch64__ asm volatile( "cmp %w[cnt], #1 \n" "ldr q0, [%[din_ptr]], #16\n" "ldr q1, [%[din_ptr]], #16\n" "ldr q2, [%[din_ptr]], #16\n" "ldr q3, [%[din_ptr]], #16\n" "blt 0f\n" "1: \n" "fmul v4.8h, v0.8h, %[vslope_8].8h\n" "fmul v5.8h, v1.8h, %[vslope_8].8h\n" "fmul v6.8h, v2.8h, %[vslope_8].8h\n" "fmul v7.8h, v3.8h, %[vslope_8].8h\n" "fadd v0.8h, v4.8h, %[voffset_8].8h\n" "fadd v1.8h, v5.8h, %[voffset_8].8h\n" "fadd v2.8h, v6.8h, %[voffset_8].8h\n" "fadd v3.8h, v7.8h, %[voffset_8].8h\n" "fcmgt v4.8h, v0.8h, %[vzero_8].8h\n" "fcmgt v5.8h, v1.8h, %[vzero_8].8h\n" "fcmgt v6.8h, v2.8h, %[vzero_8].8h\n" "fcmgt v7.8h, v3.8h, %[vzero_8].8h\n" "bsl v4.16b, v0.16b, %[vzero_8].16b\n" "bsl v5.16b, v1.16b, %[vzero_8].16b\n" "bsl v6.16b, v2.16b, %[vzero_8].16b\n" "bsl v7.16b, v3.16b, %[vzero_8].16b\n" "fcmlt v8.8h, v0.8h, %[vone_8].8h\n" "fcmlt v9.8h, v1.8h, %[vone_8].8h\n" "fcmlt v10.8h, v2.8h, %[vone_8].8h\n" "fcmlt v11.8h, v3.8h, %[vone_8].8h\n" "ldr q0, [%[din_ptr]], #16\n" "bsl v8.16b, v4.16b, %[vone_8].16b\n" "ldr q1, [%[din_ptr]], #16\n" "ldr q2, [%[din_ptr]], #16\n" "bsl v9.16b, v5.16b, %[vone_8].16b\n" "bsl v10.16b, v6.16b, %[vone_8].16b\n" "ldr q3, [%[din_ptr]], #16\n" "bsl v11.16b, v7.16b, %[vone_8].16b\n" "subs %w[cnt], %w[cnt], #1\n" "str q8, [%[dout_ptr]], #16\n" "str q9, [%[dout_ptr]], #16\n" "str q10, [%[dout_ptr]], #16\n" "str q11, [%[dout_ptr]], #16\n" "bne 1b\n" "0: \n" "sub %[din_ptr], %[din_ptr], #64\n" "cmp %w[cnt_4], #1\n" "ld1 {v0.4h}, [%[din_ptr]], #8\n" "ld1 {v1.4h}, [%[din_ptr]], #8\n" "blt 3f\n" "2: \n" "fmul v4.4h, v0.4h, %[vslope_8].4h\n" "fmul v5.4h, v1.4h, %[vslope_8].4h\n" "ld1 {v0.4h}, [%[din_ptr]], #8\n" "fadd v2.4h, v4.4h, %[voffset_8].4h\n" "fadd v3.4h, v5.4h, %[voffset_8].4h\n" "ld1 {v1.4h}, [%[din_ptr]], #8\n" "fcmgt v4.4h, v2.4h, %[vzero_8].4h\n" "fcmgt v5.4h, v3.4h, %[vzero_8].4h\n" "bsl v4.8b, v2.8b, %[vzero_8].8b\n" "bsl v5.8b, v3.8b, %[vzero_8].8b\n" "fcmlt v8.4h, v4.4h, %[vone_8].4h\n" "fcmlt v9.4h, v5.4h, %[vone_8].4h\n" "bsl v8.8b, v4.8b, %[vone_8].8b\n" "bsl v9.8b, v5.8b, %[vone_8].8b\n" "subs %w[cnt_4], %w[cnt_4], #1\n" "st1 {v8.4h}, [%[dout_ptr]], #8\n" "st1 {v9.4h}, [%[dout_ptr]], #8\n" "bne 2b\n" "3: \n" "sub %[din_ptr], %[din_ptr], #16\n " : [din_ptr] "+r"(din), [dout_ptr] "+r"(dout), [cnt] "+r"(cnt), [cnt_4] "+r"(cnt_4) : [rem_cnt] "r"(remain_4), [vzero_8] "w"(vzero_8), [vone_8] "w"(vone_8), [vslope_8] "w"(vslope_8), [voffset_8] "w"(voffset_8) : "cc", "memory", "v0", "v1", "v2", "v3", "v4", "v5", "v6", "v7", "v8", "v9", "v10", "v11"); #else #endif for (int64_t i = 0; i < remain_4; i++) { dout[0] = din[0] * slope + offset; dout[0] = dout[0] < 1.0f ? dout[0] : 1.0f; dout[0] = dout[0] > 0.0f ? dout[0] : 0.0f; ++din; ++dout; } } template <> void act_prelu<float16_t>(const float16_t* din, float16_t* dout, int outer_size, int channel_size, int inner_size, std::string mode, const float16_t* alpha_data, int threads) { int stride_size = inner_size * channel_size; int cnt = inner_size >> 5; int remain = inner_size & 31; int cnt_8 = remain >> 3; int rem_8 = remain & 7; float16x8_t vzero = vdupq_n_f16(0.f); if (mode == "all" || mode == "channel") { for (int n = 0; n < outer_size; n++) { const float16_t* data_in_batch = din + n * stride_size; float16_t* data_out_batch = dout + n * stride_size; #pragma omp parallel for for (int c = 0; c < channel_size; c++) { const float16_t* data_in_c = data_in_batch + c * inner_size; float16_t* data_out_c = data_out_batch + c * inner_size; float16_t slope = (mode == "all") ? alpha_data[0] : alpha_data[c]; float16x8_t vslope = vdupq_n_f16(slope); int cnt_cnt = cnt; int cnt_8_cnt = cnt_8; #ifdef __aarch64__ asm volatile( "cmp %w[cnt], #1 \n" "ldr q0, [%[din_ptr]], #16\n" "ldr q1, [%[din_ptr]], #16\n" "ldr q2, [%[din_ptr]], #16\n" "ldr q3, [%[din_ptr]], #16\n" "blt 0f\n" "2: \n" "fcmgt v4.8h, v0.8h, %[vzero].8h\n" "fmul v8.8h, v0.8h, %[vslope].8h\n" "fcmgt v5.8h, v1.8h, %[vzero].8h\n" "fmul v9.8h, v1.8h, %[vslope].8h\n" "fcmgt v6.8h, v2.8h, %[vzero].8h\n" "fmul v10.8h, v2.8h, %[vslope].8h\n" "fcmgt v7.8h, v3.8h, %[vzero].8h\n" "fmul v11.8h, v3.8h, %[vslope].8h\n" "bif v0.16b, v8.16b, v4.16b\n" "bif v1.16b, v9.16b, v5.16b\n" "bif v2.16b, v10.16b, v6.16b\n" "bif v3.16b, v11.16b, v7.16b\n" "subs %w[cnt], %w[cnt], #1\n" "stp q0, q1, [%[dout_ptr]], #32\n" "ldp q0, q1, [%[din_ptr]], #32\n" "stp q2, q3, [%[dout_ptr]], #32\n" "ldp q2, q3, [%[din_ptr]], #32\n" "bne 2b\n" "0: \n" "cmp %w[cnt_8], #1 \n" "sub %[din_ptr], %[din_ptr], #48\n" "blt 1f\n" "3: \n" "subs %w[cnt_8], %w[cnt_8], #1\n" "fcmgt v4.8h, v0.8h, %[vzero].8h\n" "fmul v8.8h, v0.8h, %[vslope].8h\n" "bif v0.16b, v8.16b, v4.16b\n" "str q0, [%[dout_ptr]], #16\n" "ldr q0, [%[din_ptr]], #16\n" "bne 3b\n" "1: \n" "sub %[din_ptr], %[din_ptr], #16\n" : [din_ptr] "+r"(data_in_c), [dout_ptr] "+r"(data_out_c), [cnt] "+r"(cnt_cnt), [cnt_8] "+r"(cnt_8_cnt) : [vzero] "w"(vzero), [vslope] "w"(vslope) : "cc", "memory", "v0", "v1", "v2", "v3", "v4", "v5", "v6", "v7", "v8", "v9", "v10", "v11"); #else #endif // __aarch64__ for (int i = rem_8; i > 0; i--) { *(data_out_c++) = data_in_c[0] > 0.f ? data_in_c[0] : data_in_c[0] * slope; data_in_c++; } } } } else { // mode = element for (int n = 0; n < outer_size; n++) { const float16_t* data_in_batch = din + n * stride_size; const float16_t* data_alpha_batch = alpha_data + n * stride_size; float16_t* data_out_batch = dout + n * stride_size; #pragma omp parallel for for (int c = 0; c < channel_size; c++) { const float16_t* data_in_c = data_in_batch + c * inner_size; const float16_t* data_alpha_c = data_alpha_batch + c * inner_size; float16_t* data_out_c = data_out_batch + c * inner_size; int cnt_cnt = cnt; int cnt_8_cnt = cnt_8; #ifdef __aarch64__ asm volatile( "cmp %w[cnt], #1 \n" "ldr q0, [%[din_ptr]], #16\n" "ldr q1, [%[din_ptr]], #16\n" "ldr q2, [%[din_ptr]], #16\n" "ldr q3, [%[din_ptr]], #16\n" "blt 0f\n" "2: \n" "ldp q8, q9, [%[alpha_ptr]], #32\n" "fcmgt v4.8h, v0.8h, %[vzero].8h\n" "ldp q10, q11, [%[alpha_ptr]], #32\n" "fcmgt v5.8h, v1.8h, %[vzero].8h\n" "fcmgt v6.8h, v2.8h, %[vzero].8h\n" "fcmgt v7.8h, v3.8h, %[vzero].8h\n" "fmul v12.8h, v0.8h, v8.8h\n" "fmul v13.8h, v1.8h, v9.8h\n" "fmul v14.8h, v2.8h, v10.8h\n" "fmul v15.8h, v3.8h, v11.8h\n" "bif v0.16b, v12.16b, v4.16b\n" "bif v1.16b, v13.16b, v5.16b\n" "bif v2.16b, v14.16b, v6.16b\n" "bif v3.16b, v15.16b, v7.16b\n" "subs %w[cnt], %w[cnt], #1\n" "stp q0, q1, [%[dout_ptr]], #32\n" "ldp q0, q1, [%[din_ptr]], #32\n" "stp q2, q3, [%[dout_ptr]], #32\n" "ldp q2, q3, [%[din_ptr]], #32\n" "bne 2b\n" "0: \n" "cmp %w[cnt_8], #1 \n" "sub %[din_ptr], %[din_ptr], #48\n" "blt 1f\n" "3: \n" "subs %w[cnt_8], %w[cnt_8], #1\n" "ldr q8, [%[alpha_ptr]], #16\n" "fcmgt v4.8h, v0.8h, %[vzero].8h\n" "fmul v9.8h, v0.8h, v8.8h\n" "bif v0.16b, v9.16b, v4.16b\n" "str q0, [%[dout_ptr]], #16\n" "ldr q0, [%[din_ptr]], #16\n" "bne 3b\n" "1: \n" "sub %[din_ptr], %[din_ptr], #16\n" : [din_ptr] "+r"(data_in_c), [alpha_ptr] "+r"(data_alpha_c), [dout_ptr] "+r"(data_out_c), [cnt] "+r"(cnt_cnt), [cnt_8] "+r"(cnt_8_cnt) : [vzero] "w"(vzero) : "cc", "memory", "v0", "v1", "v2", "v3", "v4", "v5", "v6", "v7", "v8", "v9", "v10", "v11", "v12", "v13", "v14", "v15"); #else #endif // __aarch64__ for (int i = 0; i < rem_8; i++) { data_out_c[0] = data_in_c[0] > 0.f ? data_in_c[0] : data_in_c[0] * data_alpha_c[0]; data_in_c++; data_alpha_c++; data_out_c++; } } } } } } // namespace fp16 } // namespace math } // namespace arm } // namespace lite } // namespace paddle
[ "noreply@github.com" ]
noreply@github.com
16b43750d6f8af5f41e8fa26b2b84c7678aa42a6
01b446ffab921ec97d1bf53f78ca2355b4862ea1
/day04/ex01/AWeapon.cpp
2b811b6c708dbf7778d9227d499abcad2a983f89
[]
no_license
jchotel8/42_cpp
cec2f46e29c0e46c28dd9bca2334971bef542cf8
594f625b491689d0125df57170ca8ef8452c663d
refs/heads/master
2021-03-14T12:18:35.709387
2020-07-17T07:54:18
2020-07-17T07:54:18
246,765,508
0
0
null
null
null
null
UTF-8
C++
false
false
2,067
cpp
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* zombie.cpp :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: jchotel <marvin@42.fr> +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2020/03/12 05:54:59 by jchotel #+# #+# */ /* Updated: 2020/03/12 08:01:05 by jchotel ### ########.fr */ /* */ /* ************************************************************************** */ #include "AWeapon.hpp" AWeapon::AWeapon(std::string const &name, int apcost, int damage) { _name = name; _apcost = apcost; _damage = damage; _output = ""; //std::cout << "Weapon is created" << std::endl; } AWeapon::AWeapon(const AWeapon &w) { *this = w; } AWeapon::AWeapon() {} AWeapon::~AWeapon(void) { std::cout << "Weapon destroyed" << std::endl; return ; } AWeapon& AWeapon::operator=(const AWeapon& w) { _name = w._name; _apcost = w._apcost; _damage = w._damage; _output = w._output; return(*this); } //GETTERS std::string AWeapon::getName() const { return (_name); } int AWeapon::getAPCost() const { return (_apcost); } int AWeapon::getDamage() const { return (_damage); } //SETTERS void AWeapon::setName(std::string name) { _name = name; } void AWeapon::setAPCost(int apcost) { _apcost = apcost; } void AWeapon::setDamage(int damage) { _damage = damage; } //OTHER void AWeapon::attack() const { std::cout << _output << std::endl; } // std::ostream &operator<<(std::ostream &out, const Sorcerer &s) // { // out << "I am "<< s.getName() << ", " << s.getTitle() <<", and i like ponies!" << std::endl; // return (out); // }
[ "jchotel8" ]
jchotel8
ede9c14e8aa6c3d735709b2cdb9d00a951351ffc
c66129d551456ea813f1e09ba93b7c6cf38307fb
/RoomMemberRequestHandler.h
aa2b1d906b27d025ea3428f8719b9aa66a35df31
[]
no_license
DanielBuzkov/trivia
1ddade85e722c0197e193ee29de0b89f18f6cb4e
a930dcd71946c8653d290c17775544f213d4b61d
refs/heads/master
2022-12-30T09:45:12.358012
2018-06-26T20:32:44
2018-06-26T20:32:44
299,983,139
0
0
null
null
null
null
UTF-8
C++
false
false
575
h
#pragma once #include "Protocol.h" #include "RequestHandlerFactory.h" #include "JsonRequestPacketDeserializer.h" #include "LoginManager.h" #include "IRequsetHandler.h" //TODO // update next stage handler class RoomMemberRequestHandler : public IRequsetHandler { public: RoomMemberRequestHandler(); bool isRequestRelevant(Request r); RequestResult handleRequest(Request r); private: Room m_room; LoggedUser m_user; RoomManager m_roomManager; //RequestHandlerFactory m_handlerFactory; RequestResult leaveRoom(Request r); RequestResult getRoomState(Request r); };
[ "danielb442000@gmail.com" ]
danielb442000@gmail.com
a7d514217b511a3505869a37c9f228793cb49ac5
60db84d8cb6a58bdb3fb8df8db954d9d66024137
/android-cpp-sdk/platforms/android-7/android/widget/TextView.hpp
893def3e99a8bae2e76863302918e2ddfa049902
[ "BSL-1.0" ]
permissive
tpurtell/android-cpp-sdk
ba853335b3a5bd7e2b5c56dcb5a5be848da6550c
8313bb88332c5476645d5850fe5fdee8998c2415
refs/heads/master
2021-01-10T20:46:37.322718
2012-07-17T22:06:16
2012-07-17T22:06:16
37,555,992
5
4
null
null
null
null
UTF-8
C++
false
false
102,407
hpp
/*================================================================================ code generated by: java2cpp author: Zoran Angelov, mailto://baldzar@gmail.com class: android.widget.TextView ================================================================================*/ #ifndef J2CPP_INCLUDE_IMPLEMENTATION #ifndef J2CPP_ANDROID_WIDGET_TEXTVIEW_HPP_DECL #define J2CPP_ANDROID_WIDGET_TEXTVIEW_HPP_DECL namespace j2cpp { namespace java { namespace io { class Serializable; } } } namespace j2cpp { namespace java { namespace lang { class Object; } } } namespace j2cpp { namespace java { namespace lang { class Enum; } } } namespace j2cpp { namespace java { namespace lang { class Comparable; } } } namespace j2cpp { namespace java { namespace lang { class CharSequence; } } } namespace j2cpp { namespace java { namespace lang { class String; } } } namespace j2cpp { namespace android { namespace graphics { class Typeface; } } } namespace j2cpp { namespace android { namespace graphics { namespace drawable { class Drawable; } } } } namespace j2cpp { namespace android { namespace graphics { namespace drawable { namespace Drawable_ { class Callback; } } } } } namespace j2cpp { namespace android { namespace graphics { class Rect; } } } namespace j2cpp { namespace android { namespace content { namespace res { class TypedArray; } } } } namespace j2cpp { namespace android { namespace content { namespace res { class ColorStateList; } } } } namespace j2cpp { namespace android { namespace content { class Context; } } } namespace j2cpp { namespace android { namespace view { class View; } } } namespace j2cpp { namespace android { namespace view { namespace inputmethod { class ExtractedText; } } } } namespace j2cpp { namespace android { namespace view { namespace inputmethod { class CompletionInfo; } } } } namespace j2cpp { namespace android { namespace view { namespace inputmethod { class InputConnection; } } } } namespace j2cpp { namespace android { namespace view { namespace inputmethod { class ExtractedTextRequest; } } } } namespace j2cpp { namespace android { namespace view { namespace inputmethod { class EditorInfo; } } } } namespace j2cpp { namespace android { namespace view { namespace View_ { class BaseSavedState; } } } } namespace j2cpp { namespace android { namespace view { class KeyEvent; } } } namespace j2cpp { namespace android { namespace view { namespace ViewTreeObserver_ { class OnPreDrawListener; } } } } namespace j2cpp { namespace android { namespace view { class AbsSavedState; } } } namespace j2cpp { namespace android { namespace view { class MotionEvent; } } } namespace j2cpp { namespace android { namespace view { namespace accessibility { class AccessibilityEvent; } } } } namespace j2cpp { namespace android { namespace view { namespace accessibility { class AccessibilityEventSource; } } } } namespace j2cpp { namespace android { namespace text { namespace Spannable_ { class Factory; } } } } namespace j2cpp { namespace android { namespace text { namespace TextUtils_ { class TruncateAt; } } } } namespace j2cpp { namespace android { namespace text { class InputFilter; } } } namespace j2cpp { namespace android { namespace text { class Layout; } } } namespace j2cpp { namespace android { namespace text { namespace method { class KeyListener; } } } } namespace j2cpp { namespace android { namespace text { namespace method { class TransformationMethod; } } } } namespace j2cpp { namespace android { namespace text { namespace method { class MovementMethod; } } } } namespace j2cpp { namespace android { namespace text { class TextPaint; } } } namespace j2cpp { namespace android { namespace text { class Editable; } } } namespace j2cpp { namespace android { namespace text { namespace Editable_ { class Factory; } } } } namespace j2cpp { namespace android { namespace text { class TextWatcher; } } } namespace j2cpp { namespace android { namespace text { namespace style { class URLSpan; } } } } namespace j2cpp { namespace android { namespace widget { class Scroller; } } } namespace j2cpp { namespace android { namespace widget { namespace TextView_ { class OnEditorActionListener; } } } } namespace j2cpp { namespace android { namespace widget { namespace TextView_ { class BufferType; } } } } namespace j2cpp { namespace android { namespace util { class AttributeSet; } } } namespace j2cpp { namespace android { namespace os { class Parcel; } } } namespace j2cpp { namespace android { namespace os { class Bundle; } } } namespace j2cpp { namespace android { namespace os { class Parcelable; } } } namespace j2cpp { namespace android { namespace os { namespace Parcelable_ { class Creator; } } } } #include <android/content/Context.hpp> #include <android/content/res/ColorStateList.hpp> #include <android/content/res/TypedArray.hpp> #include <android/graphics/Rect.hpp> #include <android/graphics/Typeface.hpp> #include <android/graphics/drawable/Drawable.hpp> #include <android/os/Bundle.hpp> #include <android/os/Parcel.hpp> #include <android/os/Parcelable.hpp> #include <android/text/Editable.hpp> #include <android/text/InputFilter.hpp> #include <android/text/Layout.hpp> #include <android/text/Spannable.hpp> #include <android/text/TextPaint.hpp> #include <android/text/TextUtils.hpp> #include <android/text/TextWatcher.hpp> #include <android/text/method/KeyListener.hpp> #include <android/text/method/MovementMethod.hpp> #include <android/text/method/TransformationMethod.hpp> #include <android/text/style/URLSpan.hpp> #include <android/util/AttributeSet.hpp> #include <android/view/AbsSavedState.hpp> #include <android/view/KeyEvent.hpp> #include <android/view/MotionEvent.hpp> #include <android/view/View.hpp> #include <android/view/ViewTreeObserver.hpp> #include <android/view/accessibility/AccessibilityEvent.hpp> #include <android/view/accessibility/AccessibilityEventSource.hpp> #include <android/view/inputmethod/CompletionInfo.hpp> #include <android/view/inputmethod/EditorInfo.hpp> #include <android/view/inputmethod/ExtractedText.hpp> #include <android/view/inputmethod/ExtractedTextRequest.hpp> #include <android/view/inputmethod/InputConnection.hpp> #include <android/widget/Scroller.hpp> #include <android/widget/TextView.hpp> #include <java/io/Serializable.hpp> #include <java/lang/CharSequence.hpp> #include <java/lang/Comparable.hpp> #include <java/lang/Enum.hpp> #include <java/lang/Object.hpp> #include <java/lang/String.hpp> namespace j2cpp { namespace android { namespace widget { class TextView; namespace TextView_ { class SavedState; class SavedState : public object<SavedState> { public: J2CPP_DECLARE_CLASS J2CPP_DECLARE_METHOD(0) J2CPP_DECLARE_METHOD(1) J2CPP_DECLARE_METHOD(2) J2CPP_DECLARE_METHOD(3) J2CPP_DECLARE_FIELD(0) explicit SavedState(jobject jobj) : object<SavedState>(jobj) { } operator local_ref<java::lang::Object>() const; operator local_ref<android::view::View_::BaseSavedState>() const; operator local_ref<android::view::AbsSavedState>() const; operator local_ref<android::os::Parcelable>() const; void writeToParcel(local_ref< android::os::Parcel > const&, jint); local_ref< java::lang::String > toString(); static static_field< J2CPP_CLASS_NAME, J2CPP_FIELD_NAME(0), J2CPP_FIELD_SIGNATURE(0), local_ref< android::os::Parcelable_::Creator > > CREATOR; }; //class SavedState class OnEditorActionListener; class OnEditorActionListener : public object<OnEditorActionListener> { public: J2CPP_DECLARE_CLASS J2CPP_DECLARE_METHOD(0) explicit OnEditorActionListener(jobject jobj) : object<OnEditorActionListener>(jobj) { } operator local_ref<java::lang::Object>() const; jboolean onEditorAction(local_ref< android::widget::TextView > const&, jint, local_ref< android::view::KeyEvent > const&); }; //class OnEditorActionListener class BufferType; class BufferType : public object<BufferType> { public: J2CPP_DECLARE_CLASS J2CPP_DECLARE_METHOD(0) J2CPP_DECLARE_METHOD(1) J2CPP_DECLARE_METHOD(2) J2CPP_DECLARE_METHOD(3) J2CPP_DECLARE_FIELD(0) J2CPP_DECLARE_FIELD(1) J2CPP_DECLARE_FIELD(2) J2CPP_DECLARE_FIELD(3) explicit BufferType(jobject jobj) : object<BufferType>(jobj) { } operator local_ref<java::io::Serializable>() const; operator local_ref<java::lang::Object>() const; operator local_ref<java::lang::Enum>() const; operator local_ref<java::lang::Comparable>() const; static local_ref< array< local_ref< android::widget::TextView_::BufferType >, 1> > values(); static local_ref< android::widget::TextView_::BufferType > valueOf(local_ref< java::lang::String > const&); static static_field< J2CPP_CLASS_NAME, J2CPP_FIELD_NAME(0), J2CPP_FIELD_SIGNATURE(0), local_ref< android::widget::TextView_::BufferType > > EDITABLE; static static_field< J2CPP_CLASS_NAME, J2CPP_FIELD_NAME(1), J2CPP_FIELD_SIGNATURE(1), local_ref< android::widget::TextView_::BufferType > > NORMAL; static static_field< J2CPP_CLASS_NAME, J2CPP_FIELD_NAME(2), J2CPP_FIELD_SIGNATURE(2), local_ref< android::widget::TextView_::BufferType > > SPANNABLE; }; //class BufferType } //namespace TextView_ class TextView : public object<TextView> { public: J2CPP_DECLARE_CLASS J2CPP_DECLARE_METHOD(0) J2CPP_DECLARE_METHOD(1) J2CPP_DECLARE_METHOD(2) J2CPP_DECLARE_METHOD(3) J2CPP_DECLARE_METHOD(4) J2CPP_DECLARE_METHOD(5) J2CPP_DECLARE_METHOD(6) J2CPP_DECLARE_METHOD(7) J2CPP_DECLARE_METHOD(8) J2CPP_DECLARE_METHOD(9) J2CPP_DECLARE_METHOD(10) J2CPP_DECLARE_METHOD(11) J2CPP_DECLARE_METHOD(12) J2CPP_DECLARE_METHOD(13) J2CPP_DECLARE_METHOD(14) J2CPP_DECLARE_METHOD(15) J2CPP_DECLARE_METHOD(16) J2CPP_DECLARE_METHOD(17) J2CPP_DECLARE_METHOD(18) J2CPP_DECLARE_METHOD(19) J2CPP_DECLARE_METHOD(20) J2CPP_DECLARE_METHOD(21) J2CPP_DECLARE_METHOD(22) J2CPP_DECLARE_METHOD(23) J2CPP_DECLARE_METHOD(24) J2CPP_DECLARE_METHOD(25) J2CPP_DECLARE_METHOD(26) J2CPP_DECLARE_METHOD(27) J2CPP_DECLARE_METHOD(28) J2CPP_DECLARE_METHOD(29) J2CPP_DECLARE_METHOD(30) J2CPP_DECLARE_METHOD(31) J2CPP_DECLARE_METHOD(32) J2CPP_DECLARE_METHOD(33) J2CPP_DECLARE_METHOD(34) J2CPP_DECLARE_METHOD(35) J2CPP_DECLARE_METHOD(36) J2CPP_DECLARE_METHOD(37) J2CPP_DECLARE_METHOD(38) J2CPP_DECLARE_METHOD(39) J2CPP_DECLARE_METHOD(40) J2CPP_DECLARE_METHOD(41) J2CPP_DECLARE_METHOD(42) J2CPP_DECLARE_METHOD(43) J2CPP_DECLARE_METHOD(44) J2CPP_DECLARE_METHOD(45) J2CPP_DECLARE_METHOD(46) J2CPP_DECLARE_METHOD(47) J2CPP_DECLARE_METHOD(48) J2CPP_DECLARE_METHOD(49) J2CPP_DECLARE_METHOD(50) J2CPP_DECLARE_METHOD(51) J2CPP_DECLARE_METHOD(52) J2CPP_DECLARE_METHOD(53) J2CPP_DECLARE_METHOD(54) J2CPP_DECLARE_METHOD(55) J2CPP_DECLARE_METHOD(56) J2CPP_DECLARE_METHOD(57) J2CPP_DECLARE_METHOD(58) J2CPP_DECLARE_METHOD(59) J2CPP_DECLARE_METHOD(60) J2CPP_DECLARE_METHOD(61) J2CPP_DECLARE_METHOD(62) J2CPP_DECLARE_METHOD(63) J2CPP_DECLARE_METHOD(64) J2CPP_DECLARE_METHOD(65) J2CPP_DECLARE_METHOD(66) J2CPP_DECLARE_METHOD(67) J2CPP_DECLARE_METHOD(68) J2CPP_DECLARE_METHOD(69) J2CPP_DECLARE_METHOD(70) J2CPP_DECLARE_METHOD(71) J2CPP_DECLARE_METHOD(72) J2CPP_DECLARE_METHOD(73) J2CPP_DECLARE_METHOD(74) J2CPP_DECLARE_METHOD(75) J2CPP_DECLARE_METHOD(76) J2CPP_DECLARE_METHOD(77) J2CPP_DECLARE_METHOD(78) J2CPP_DECLARE_METHOD(79) J2CPP_DECLARE_METHOD(80) J2CPP_DECLARE_METHOD(81) J2CPP_DECLARE_METHOD(82) J2CPP_DECLARE_METHOD(83) J2CPP_DECLARE_METHOD(84) J2CPP_DECLARE_METHOD(85) J2CPP_DECLARE_METHOD(86) J2CPP_DECLARE_METHOD(87) J2CPP_DECLARE_METHOD(88) J2CPP_DECLARE_METHOD(89) J2CPP_DECLARE_METHOD(90) J2CPP_DECLARE_METHOD(91) J2CPP_DECLARE_METHOD(92) J2CPP_DECLARE_METHOD(93) J2CPP_DECLARE_METHOD(94) J2CPP_DECLARE_METHOD(95) J2CPP_DECLARE_METHOD(96) J2CPP_DECLARE_METHOD(97) J2CPP_DECLARE_METHOD(98) J2CPP_DECLARE_METHOD(99) J2CPP_DECLARE_METHOD(100) J2CPP_DECLARE_METHOD(101) J2CPP_DECLARE_METHOD(102) J2CPP_DECLARE_METHOD(103) J2CPP_DECLARE_METHOD(104) J2CPP_DECLARE_METHOD(105) J2CPP_DECLARE_METHOD(106) J2CPP_DECLARE_METHOD(107) J2CPP_DECLARE_METHOD(108) J2CPP_DECLARE_METHOD(109) J2CPP_DECLARE_METHOD(110) J2CPP_DECLARE_METHOD(111) J2CPP_DECLARE_METHOD(112) J2CPP_DECLARE_METHOD(113) J2CPP_DECLARE_METHOD(114) J2CPP_DECLARE_METHOD(115) J2CPP_DECLARE_METHOD(116) J2CPP_DECLARE_METHOD(117) J2CPP_DECLARE_METHOD(118) J2CPP_DECLARE_METHOD(119) J2CPP_DECLARE_METHOD(120) J2CPP_DECLARE_METHOD(121) J2CPP_DECLARE_METHOD(122) J2CPP_DECLARE_METHOD(123) J2CPP_DECLARE_METHOD(124) J2CPP_DECLARE_METHOD(125) J2CPP_DECLARE_METHOD(126) J2CPP_DECLARE_METHOD(127) J2CPP_DECLARE_METHOD(128) J2CPP_DECLARE_METHOD(129) J2CPP_DECLARE_METHOD(130) J2CPP_DECLARE_METHOD(131) J2CPP_DECLARE_METHOD(132) J2CPP_DECLARE_METHOD(133) J2CPP_DECLARE_METHOD(134) J2CPP_DECLARE_METHOD(135) J2CPP_DECLARE_METHOD(136) J2CPP_DECLARE_METHOD(137) J2CPP_DECLARE_METHOD(138) J2CPP_DECLARE_METHOD(139) J2CPP_DECLARE_METHOD(140) J2CPP_DECLARE_METHOD(141) J2CPP_DECLARE_METHOD(142) J2CPP_DECLARE_METHOD(143) J2CPP_DECLARE_METHOD(144) J2CPP_DECLARE_METHOD(145) J2CPP_DECLARE_METHOD(146) J2CPP_DECLARE_METHOD(147) J2CPP_DECLARE_METHOD(148) J2CPP_DECLARE_METHOD(149) J2CPP_DECLARE_METHOD(150) J2CPP_DECLARE_METHOD(151) J2CPP_DECLARE_METHOD(152) J2CPP_DECLARE_METHOD(153) J2CPP_DECLARE_METHOD(154) J2CPP_DECLARE_METHOD(155) J2CPP_DECLARE_METHOD(156) J2CPP_DECLARE_METHOD(157) J2CPP_DECLARE_METHOD(158) J2CPP_DECLARE_METHOD(159) J2CPP_DECLARE_METHOD(160) J2CPP_DECLARE_METHOD(161) J2CPP_DECLARE_METHOD(162) J2CPP_DECLARE_METHOD(163) J2CPP_DECLARE_METHOD(164) J2CPP_DECLARE_METHOD(165) J2CPP_DECLARE_METHOD(166) J2CPP_DECLARE_METHOD(167) J2CPP_DECLARE_METHOD(168) J2CPP_DECLARE_METHOD(169) J2CPP_DECLARE_METHOD(170) J2CPP_DECLARE_METHOD(171) J2CPP_DECLARE_METHOD(172) J2CPP_DECLARE_METHOD(173) J2CPP_DECLARE_METHOD(174) J2CPP_DECLARE_METHOD(175) J2CPP_DECLARE_METHOD(176) J2CPP_DECLARE_METHOD(177) J2CPP_DECLARE_METHOD(178) J2CPP_DECLARE_METHOD(179) J2CPP_DECLARE_METHOD(180) J2CPP_DECLARE_METHOD(181) J2CPP_DECLARE_METHOD(182) J2CPP_DECLARE_METHOD(183) J2CPP_DECLARE_METHOD(184) J2CPP_DECLARE_METHOD(185) J2CPP_DECLARE_METHOD(186) J2CPP_DECLARE_METHOD(187) J2CPP_DECLARE_METHOD(188) J2CPP_DECLARE_METHOD(189) typedef TextView_::SavedState SavedState; typedef TextView_::OnEditorActionListener OnEditorActionListener; typedef TextView_::BufferType BufferType; explicit TextView(jobject jobj) : object<TextView>(jobj) { } operator local_ref<java::lang::Object>() const; operator local_ref<android::graphics::drawable::Drawable_::Callback>() const; operator local_ref<android::view::View>() const; operator local_ref<android::view::ViewTreeObserver_::OnPreDrawListener>() const; operator local_ref<android::view::accessibility::AccessibilityEventSource>() const; TextView(local_ref< android::content::Context > const&); TextView(local_ref< android::content::Context > const&, local_ref< android::util::AttributeSet > const&); TextView(local_ref< android::content::Context > const&, local_ref< android::util::AttributeSet > const&, jint); void setTypeface(local_ref< android::graphics::Typeface > const&, jint); local_ref< java::lang::CharSequence > getText(); jint length(); local_ref< android::text::Editable > getEditableText(); jint getLineHeight(); local_ref< android::text::Layout > getLayout(); local_ref< android::text::method::KeyListener > getKeyListener(); void setKeyListener(local_ref< android::text::method::KeyListener > const&); local_ref< android::text::method::MovementMethod > getMovementMethod(); void setMovementMethod(local_ref< android::text::method::MovementMethod > const&); local_ref< android::text::method::TransformationMethod > getTransformationMethod(); void setTransformationMethod(local_ref< android::text::method::TransformationMethod > const&); jint getCompoundPaddingTop(); jint getCompoundPaddingBottom(); jint getCompoundPaddingLeft(); jint getCompoundPaddingRight(); jint getExtendedPaddingTop(); jint getExtendedPaddingBottom(); jint getTotalPaddingLeft(); jint getTotalPaddingRight(); jint getTotalPaddingTop(); jint getTotalPaddingBottom(); void setCompoundDrawables(local_ref< android::graphics::drawable::Drawable > const&, local_ref< android::graphics::drawable::Drawable > const&, local_ref< android::graphics::drawable::Drawable > const&, local_ref< android::graphics::drawable::Drawable > const&); void setCompoundDrawablesWithIntrinsicBounds(jint, jint, jint, jint); void setCompoundDrawablesWithIntrinsicBounds(local_ref< android::graphics::drawable::Drawable > const&, local_ref< android::graphics::drawable::Drawable > const&, local_ref< android::graphics::drawable::Drawable > const&, local_ref< android::graphics::drawable::Drawable > const&); local_ref< array< local_ref< android::graphics::drawable::Drawable >, 1> > getCompoundDrawables(); void setCompoundDrawablePadding(jint); jint getCompoundDrawablePadding(); void setPadding(jint, jint, jint, jint); jint getAutoLinkMask(); void setTextAppearance(local_ref< android::content::Context > const&, jint); jfloat getTextSize(); void setTextSize(jfloat); void setTextSize(jint, jfloat); jfloat getTextScaleX(); void setTextScaleX(jfloat); void setTypeface(local_ref< android::graphics::Typeface > const&); local_ref< android::graphics::Typeface > getTypeface(); void setTextColor(jint); void setTextColor(local_ref< android::content::res::ColorStateList > const&); local_ref< android::content::res::ColorStateList > getTextColors(); jint getCurrentTextColor(); void setHighlightColor(jint); void setShadowLayer(jfloat, jfloat, jfloat, jint); local_ref< android::text::TextPaint > getPaint(); void setAutoLinkMask(jint); void setLinksClickable(jboolean); jboolean getLinksClickable(); local_ref< array< local_ref< android::text::style::URLSpan >, 1> > getUrls(); void setHintTextColor(jint); void setHintTextColor(local_ref< android::content::res::ColorStateList > const&); local_ref< android::content::res::ColorStateList > getHintTextColors(); jint getCurrentHintTextColor(); void setLinkTextColor(jint); void setLinkTextColor(local_ref< android::content::res::ColorStateList > const&); local_ref< android::content::res::ColorStateList > getLinkTextColors(); void setGravity(jint); jint getGravity(); jint getPaintFlags(); void setPaintFlags(jint); void setHorizontallyScrolling(jboolean); void setMinLines(jint); void setMinHeight(jint); void setMaxLines(jint); void setMaxHeight(jint); void setLines(jint); void setHeight(jint); void setMinEms(jint); void setMinWidth(jint); void setMaxEms(jint); void setMaxWidth(jint); void setEms(jint); void setWidth(jint); void setLineSpacing(jfloat, jfloat); void append(local_ref< java::lang::CharSequence > const&); void append(local_ref< java::lang::CharSequence > const&, jint, jint); local_ref< android::os::Parcelable > onSaveInstanceState(); void onRestoreInstanceState(local_ref< android::os::Parcelable > const&); void setFreezesText(jboolean); jboolean getFreezesText(); void setEditableFactory(local_ref< android::text::Editable_::Factory > const&); void setSpannableFactory(local_ref< android::text::Spannable_::Factory > const&); void setText(local_ref< java::lang::CharSequence > const&); void setTextKeepState(local_ref< java::lang::CharSequence > const&); void setText(local_ref< java::lang::CharSequence > const&, local_ref< android::widget::TextView_::BufferType > const&); void setText(local_ref< array<jchar,1> > const&, jint, jint); void setTextKeepState(local_ref< java::lang::CharSequence > const&, local_ref< android::widget::TextView_::BufferType > const&); void setText(jint); void setText(jint, local_ref< android::widget::TextView_::BufferType > const&); void setHint(local_ref< java::lang::CharSequence > const&); void setHint(jint); local_ref< java::lang::CharSequence > getHint(); void setInputType(jint); void setRawInputType(jint); jint getInputType(); void setImeOptions(jint); jint getImeOptions(); void setImeActionLabel(local_ref< java::lang::CharSequence > const&, jint); local_ref< java::lang::CharSequence > getImeActionLabel(); jint getImeActionId(); void setOnEditorActionListener(local_ref< android::widget::TextView_::OnEditorActionListener > const&); void onEditorAction(jint); void setPrivateImeOptions(local_ref< java::lang::String > const&); local_ref< java::lang::String > getPrivateImeOptions(); void setInputExtras(jint); local_ref< android::os::Bundle > getInputExtras(jboolean); local_ref< java::lang::CharSequence > getError(); void setError(local_ref< java::lang::CharSequence > const&); void setError(local_ref< java::lang::CharSequence > const&, local_ref< android::graphics::drawable::Drawable > const&); void setFilters(local_ref< array< local_ref< android::text::InputFilter >, 1> > const&); local_ref< array< local_ref< android::text::InputFilter >, 1> > getFilters(); jboolean onPreDraw(); void invalidateDrawable(local_ref< android::graphics::drawable::Drawable > const&); void getFocusedRect(local_ref< android::graphics::Rect > const&); jint getLineCount(); jint getLineBounds(jint, local_ref< android::graphics::Rect > const&); jint getBaseline(); jboolean onKeyDown(jint, local_ref< android::view::KeyEvent > const&); jboolean onKeyMultiple(jint, jint, local_ref< android::view::KeyEvent > const&); jboolean onKeyUp(jint, local_ref< android::view::KeyEvent > const&); jboolean onCheckIsTextEditor(); local_ref< android::view::inputmethod::InputConnection > onCreateInputConnection(local_ref< android::view::inputmethod::EditorInfo > const&); jboolean extractText(local_ref< android::view::inputmethod::ExtractedTextRequest > const&, local_ref< android::view::inputmethod::ExtractedText > const&); void setExtractedText(local_ref< android::view::inputmethod::ExtractedText > const&); void onCommitCompletion(local_ref< android::view::inputmethod::CompletionInfo > const&); void beginBatchEdit(); void endBatchEdit(); void onBeginBatchEdit(); void onEndBatchEdit(); jboolean onPrivateIMECommand(local_ref< java::lang::String > const&, local_ref< android::os::Bundle > const&); void setIncludeFontPadding(jboolean); jboolean bringPointIntoView(jint); jboolean moveCursorToVisibleOffset(); void computeScroll(); void debug(jint); jint getSelectionStart(); jint getSelectionEnd(); jboolean hasSelection(); void setSingleLine(); void setSingleLine(jboolean); void setEllipsize(local_ref< android::text::TextUtils_::TruncateAt > const&); void setMarqueeRepeatLimit(jint); local_ref< android::text::TextUtils_::TruncateAt > getEllipsize(); void setSelectAllOnFocus(jboolean); void setCursorVisible(jboolean); void addTextChangedListener(local_ref< android::text::TextWatcher > const&); void removeTextChangedListener(local_ref< android::text::TextWatcher > const&); void onStartTemporaryDetach(); void onFinishTemporaryDetach(); void onWindowFocusChanged(jboolean); void clearComposingText(); void setSelected(jboolean); jboolean onTouchEvent(local_ref< android::view::MotionEvent > const&); jboolean didTouchFocusSelect(); void cancelLongPress(); jboolean onTrackballEvent(local_ref< android::view::MotionEvent > const&); void setScroller(local_ref< android::widget::Scroller > const&); static local_ref< android::content::res::ColorStateList > getTextColors(local_ref< android::content::Context > const&, local_ref< android::content::res::TypedArray > const&); static jint getTextColor(local_ref< android::content::Context > const&, local_ref< android::content::res::TypedArray > const&, jint); jboolean onKeyShortcut(jint, local_ref< android::view::KeyEvent > const&); jboolean dispatchPopulateAccessibilityEvent(local_ref< android::view::accessibility::AccessibilityEvent > const&); jboolean isInputMethodTarget(); jboolean onTextContextMenuItem(jint); jboolean performLongClick(); }; //class TextView } //namespace widget } //namespace android } //namespace j2cpp #endif //J2CPP_ANDROID_WIDGET_TEXTVIEW_HPP_DECL #else //J2CPP_INCLUDE_IMPLEMENTATION #ifndef J2CPP_ANDROID_WIDGET_TEXTVIEW_HPP_IMPL #define J2CPP_ANDROID_WIDGET_TEXTVIEW_HPP_IMPL namespace j2cpp { android::widget::TextView_::SavedState::operator local_ref<java::lang::Object>() const { return local_ref<java::lang::Object>(get_jobject()); } android::widget::TextView_::SavedState::operator local_ref<android::view::View_::BaseSavedState>() const { return local_ref<android::view::View_::BaseSavedState>(get_jobject()); } android::widget::TextView_::SavedState::operator local_ref<android::view::AbsSavedState>() const { return local_ref<android::view::AbsSavedState>(get_jobject()); } android::widget::TextView_::SavedState::operator local_ref<android::os::Parcelable>() const { return local_ref<android::os::Parcelable>(get_jobject()); } void android::widget::TextView_::SavedState::writeToParcel(local_ref< android::os::Parcel > const &a0, jint a1) { return call_method< android::widget::TextView_::SavedState::J2CPP_CLASS_NAME, android::widget::TextView_::SavedState::J2CPP_METHOD_NAME(1), android::widget::TextView_::SavedState::J2CPP_METHOD_SIGNATURE(1), void >(get_jobject(), a0, a1); } local_ref< java::lang::String > android::widget::TextView_::SavedState::toString() { return call_method< android::widget::TextView_::SavedState::J2CPP_CLASS_NAME, android::widget::TextView_::SavedState::J2CPP_METHOD_NAME(2), android::widget::TextView_::SavedState::J2CPP_METHOD_SIGNATURE(2), local_ref< java::lang::String > >(get_jobject()); } static_field< android::widget::TextView_::SavedState::J2CPP_CLASS_NAME, android::widget::TextView_::SavedState::J2CPP_FIELD_NAME(0), android::widget::TextView_::SavedState::J2CPP_FIELD_SIGNATURE(0), local_ref< android::os::Parcelable_::Creator > > android::widget::TextView_::SavedState::CREATOR; J2CPP_DEFINE_CLASS(android::widget::TextView_::SavedState,"android/widget/TextView$SavedState") J2CPP_DEFINE_METHOD(android::widget::TextView_::SavedState,0,"<init>","()V") J2CPP_DEFINE_METHOD(android::widget::TextView_::SavedState,1,"writeToParcel","(Landroid/os/Parcel;I)V") J2CPP_DEFINE_METHOD(android::widget::TextView_::SavedState,2,"toString","()Ljava/lang/String;") J2CPP_DEFINE_METHOD(android::widget::TextView_::SavedState,3,"<clinit>","()V") J2CPP_DEFINE_FIELD(android::widget::TextView_::SavedState,0,"CREATOR","Landroid/os/Parcelable$Creator;") android::widget::TextView_::OnEditorActionListener::operator local_ref<java::lang::Object>() const { return local_ref<java::lang::Object>(get_jobject()); } jboolean android::widget::TextView_::OnEditorActionListener::onEditorAction(local_ref< android::widget::TextView > const &a0, jint a1, local_ref< android::view::KeyEvent > const &a2) { return call_method< android::widget::TextView_::OnEditorActionListener::J2CPP_CLASS_NAME, android::widget::TextView_::OnEditorActionListener::J2CPP_METHOD_NAME(0), android::widget::TextView_::OnEditorActionListener::J2CPP_METHOD_SIGNATURE(0), jboolean >(get_jobject(), a0, a1, a2); } J2CPP_DEFINE_CLASS(android::widget::TextView_::OnEditorActionListener,"android/widget/TextView$OnEditorActionListener") J2CPP_DEFINE_METHOD(android::widget::TextView_::OnEditorActionListener,0,"onEditorAction","(Landroid/widget/TextView;ILandroid/view/KeyEvent;)Z") android::widget::TextView_::BufferType::operator local_ref<java::io::Serializable>() const { return local_ref<java::io::Serializable>(get_jobject()); } android::widget::TextView_::BufferType::operator local_ref<java::lang::Object>() const { return local_ref<java::lang::Object>(get_jobject()); } android::widget::TextView_::BufferType::operator local_ref<java::lang::Enum>() const { return local_ref<java::lang::Enum>(get_jobject()); } android::widget::TextView_::BufferType::operator local_ref<java::lang::Comparable>() const { return local_ref<java::lang::Comparable>(get_jobject()); } local_ref< array< local_ref< android::widget::TextView_::BufferType >, 1> > android::widget::TextView_::BufferType::values() { return call_static_method< android::widget::TextView_::BufferType::J2CPP_CLASS_NAME, android::widget::TextView_::BufferType::J2CPP_METHOD_NAME(0), android::widget::TextView_::BufferType::J2CPP_METHOD_SIGNATURE(0), local_ref< array< local_ref< android::widget::TextView_::BufferType >, 1> > >(); } local_ref< android::widget::TextView_::BufferType > android::widget::TextView_::BufferType::valueOf(local_ref< java::lang::String > const &a0) { return call_static_method< android::widget::TextView_::BufferType::J2CPP_CLASS_NAME, android::widget::TextView_::BufferType::J2CPP_METHOD_NAME(1), android::widget::TextView_::BufferType::J2CPP_METHOD_SIGNATURE(1), local_ref< android::widget::TextView_::BufferType > >(a0); } static_field< android::widget::TextView_::BufferType::J2CPP_CLASS_NAME, android::widget::TextView_::BufferType::J2CPP_FIELD_NAME(0), android::widget::TextView_::BufferType::J2CPP_FIELD_SIGNATURE(0), local_ref< android::widget::TextView_::BufferType > > android::widget::TextView_::BufferType::EDITABLE; static_field< android::widget::TextView_::BufferType::J2CPP_CLASS_NAME, android::widget::TextView_::BufferType::J2CPP_FIELD_NAME(1), android::widget::TextView_::BufferType::J2CPP_FIELD_SIGNATURE(1), local_ref< android::widget::TextView_::BufferType > > android::widget::TextView_::BufferType::NORMAL; static_field< android::widget::TextView_::BufferType::J2CPP_CLASS_NAME, android::widget::TextView_::BufferType::J2CPP_FIELD_NAME(2), android::widget::TextView_::BufferType::J2CPP_FIELD_SIGNATURE(2), local_ref< android::widget::TextView_::BufferType > > android::widget::TextView_::BufferType::SPANNABLE; J2CPP_DEFINE_CLASS(android::widget::TextView_::BufferType,"android/widget/TextView$BufferType") J2CPP_DEFINE_METHOD(android::widget::TextView_::BufferType,0,"values","()[android.widget.TextView.BufferType") J2CPP_DEFINE_METHOD(android::widget::TextView_::BufferType,1,"valueOf","(Ljava/lang/String;)Landroid/widget/TextView$BufferType;") J2CPP_DEFINE_METHOD(android::widget::TextView_::BufferType,2,"<init>","(Ljava/lang/String;I)V") J2CPP_DEFINE_METHOD(android::widget::TextView_::BufferType,3,"<clinit>","()V") J2CPP_DEFINE_FIELD(android::widget::TextView_::BufferType,0,"EDITABLE","Landroid/widget/TextView$BufferType;") J2CPP_DEFINE_FIELD(android::widget::TextView_::BufferType,1,"NORMAL","Landroid/widget/TextView$BufferType;") J2CPP_DEFINE_FIELD(android::widget::TextView_::BufferType,2,"SPANNABLE","Landroid/widget/TextView$BufferType;") J2CPP_DEFINE_FIELD(android::widget::TextView_::BufferType,3,"$VALUES","[android.widget.TextView.BufferType") android::widget::TextView::operator local_ref<java::lang::Object>() const { return local_ref<java::lang::Object>(get_jobject()); } android::widget::TextView::operator local_ref<android::graphics::drawable::Drawable_::Callback>() const { return local_ref<android::graphics::drawable::Drawable_::Callback>(get_jobject()); } android::widget::TextView::operator local_ref<android::view::View>() const { return local_ref<android::view::View>(get_jobject()); } android::widget::TextView::operator local_ref<android::view::ViewTreeObserver_::OnPreDrawListener>() const { return local_ref<android::view::ViewTreeObserver_::OnPreDrawListener>(get_jobject()); } android::widget::TextView::operator local_ref<android::view::accessibility::AccessibilityEventSource>() const { return local_ref<android::view::accessibility::AccessibilityEventSource>(get_jobject()); } android::widget::TextView::TextView(local_ref< android::content::Context > const &a0) : object<android::widget::TextView>( call_new_object< android::widget::TextView::J2CPP_CLASS_NAME, android::widget::TextView::J2CPP_METHOD_NAME(0), android::widget::TextView::J2CPP_METHOD_SIGNATURE(0) >(a0) ) { } android::widget::TextView::TextView(local_ref< android::content::Context > const &a0, local_ref< android::util::AttributeSet > const &a1) : object<android::widget::TextView>( call_new_object< android::widget::TextView::J2CPP_CLASS_NAME, android::widget::TextView::J2CPP_METHOD_NAME(1), android::widget::TextView::J2CPP_METHOD_SIGNATURE(1) >(a0, a1) ) { } android::widget::TextView::TextView(local_ref< android::content::Context > const &a0, local_ref< android::util::AttributeSet > const &a1, jint a2) : object<android::widget::TextView>( call_new_object< android::widget::TextView::J2CPP_CLASS_NAME, android::widget::TextView::J2CPP_METHOD_NAME(2), android::widget::TextView::J2CPP_METHOD_SIGNATURE(2) >(a0, a1, a2) ) { } void android::widget::TextView::setTypeface(local_ref< android::graphics::Typeface > const &a0, jint a1) { return call_method< android::widget::TextView::J2CPP_CLASS_NAME, android::widget::TextView::J2CPP_METHOD_NAME(3), android::widget::TextView::J2CPP_METHOD_SIGNATURE(3), void >(get_jobject(), a0, a1); } local_ref< java::lang::CharSequence > android::widget::TextView::getText() { return call_method< android::widget::TextView::J2CPP_CLASS_NAME, android::widget::TextView::J2CPP_METHOD_NAME(6), android::widget::TextView::J2CPP_METHOD_SIGNATURE(6), local_ref< java::lang::CharSequence > >(get_jobject()); } jint android::widget::TextView::length() { return call_method< android::widget::TextView::J2CPP_CLASS_NAME, android::widget::TextView::J2CPP_METHOD_NAME(7), android::widget::TextView::J2CPP_METHOD_SIGNATURE(7), jint >(get_jobject()); } local_ref< android::text::Editable > android::widget::TextView::getEditableText() { return call_method< android::widget::TextView::J2CPP_CLASS_NAME, android::widget::TextView::J2CPP_METHOD_NAME(8), android::widget::TextView::J2CPP_METHOD_SIGNATURE(8), local_ref< android::text::Editable > >(get_jobject()); } jint android::widget::TextView::getLineHeight() { return call_method< android::widget::TextView::J2CPP_CLASS_NAME, android::widget::TextView::J2CPP_METHOD_NAME(9), android::widget::TextView::J2CPP_METHOD_SIGNATURE(9), jint >(get_jobject()); } local_ref< android::text::Layout > android::widget::TextView::getLayout() { return call_method< android::widget::TextView::J2CPP_CLASS_NAME, android::widget::TextView::J2CPP_METHOD_NAME(10), android::widget::TextView::J2CPP_METHOD_SIGNATURE(10), local_ref< android::text::Layout > >(get_jobject()); } local_ref< android::text::method::KeyListener > android::widget::TextView::getKeyListener() { return call_method< android::widget::TextView::J2CPP_CLASS_NAME, android::widget::TextView::J2CPP_METHOD_NAME(11), android::widget::TextView::J2CPP_METHOD_SIGNATURE(11), local_ref< android::text::method::KeyListener > >(get_jobject()); } void android::widget::TextView::setKeyListener(local_ref< android::text::method::KeyListener > const &a0) { return call_method< android::widget::TextView::J2CPP_CLASS_NAME, android::widget::TextView::J2CPP_METHOD_NAME(12), android::widget::TextView::J2CPP_METHOD_SIGNATURE(12), void >(get_jobject(), a0); } local_ref< android::text::method::MovementMethod > android::widget::TextView::getMovementMethod() { return call_method< android::widget::TextView::J2CPP_CLASS_NAME, android::widget::TextView::J2CPP_METHOD_NAME(13), android::widget::TextView::J2CPP_METHOD_SIGNATURE(13), local_ref< android::text::method::MovementMethod > >(get_jobject()); } void android::widget::TextView::setMovementMethod(local_ref< android::text::method::MovementMethod > const &a0) { return call_method< android::widget::TextView::J2CPP_CLASS_NAME, android::widget::TextView::J2CPP_METHOD_NAME(14), android::widget::TextView::J2CPP_METHOD_SIGNATURE(14), void >(get_jobject(), a0); } local_ref< android::text::method::TransformationMethod > android::widget::TextView::getTransformationMethod() { return call_method< android::widget::TextView::J2CPP_CLASS_NAME, android::widget::TextView::J2CPP_METHOD_NAME(15), android::widget::TextView::J2CPP_METHOD_SIGNATURE(15), local_ref< android::text::method::TransformationMethod > >(get_jobject()); } void android::widget::TextView::setTransformationMethod(local_ref< android::text::method::TransformationMethod > const &a0) { return call_method< android::widget::TextView::J2CPP_CLASS_NAME, android::widget::TextView::J2CPP_METHOD_NAME(16), android::widget::TextView::J2CPP_METHOD_SIGNATURE(16), void >(get_jobject(), a0); } jint android::widget::TextView::getCompoundPaddingTop() { return call_method< android::widget::TextView::J2CPP_CLASS_NAME, android::widget::TextView::J2CPP_METHOD_NAME(17), android::widget::TextView::J2CPP_METHOD_SIGNATURE(17), jint >(get_jobject()); } jint android::widget::TextView::getCompoundPaddingBottom() { return call_method< android::widget::TextView::J2CPP_CLASS_NAME, android::widget::TextView::J2CPP_METHOD_NAME(18), android::widget::TextView::J2CPP_METHOD_SIGNATURE(18), jint >(get_jobject()); } jint android::widget::TextView::getCompoundPaddingLeft() { return call_method< android::widget::TextView::J2CPP_CLASS_NAME, android::widget::TextView::J2CPP_METHOD_NAME(19), android::widget::TextView::J2CPP_METHOD_SIGNATURE(19), jint >(get_jobject()); } jint android::widget::TextView::getCompoundPaddingRight() { return call_method< android::widget::TextView::J2CPP_CLASS_NAME, android::widget::TextView::J2CPP_METHOD_NAME(20), android::widget::TextView::J2CPP_METHOD_SIGNATURE(20), jint >(get_jobject()); } jint android::widget::TextView::getExtendedPaddingTop() { return call_method< android::widget::TextView::J2CPP_CLASS_NAME, android::widget::TextView::J2CPP_METHOD_NAME(21), android::widget::TextView::J2CPP_METHOD_SIGNATURE(21), jint >(get_jobject()); } jint android::widget::TextView::getExtendedPaddingBottom() { return call_method< android::widget::TextView::J2CPP_CLASS_NAME, android::widget::TextView::J2CPP_METHOD_NAME(22), android::widget::TextView::J2CPP_METHOD_SIGNATURE(22), jint >(get_jobject()); } jint android::widget::TextView::getTotalPaddingLeft() { return call_method< android::widget::TextView::J2CPP_CLASS_NAME, android::widget::TextView::J2CPP_METHOD_NAME(23), android::widget::TextView::J2CPP_METHOD_SIGNATURE(23), jint >(get_jobject()); } jint android::widget::TextView::getTotalPaddingRight() { return call_method< android::widget::TextView::J2CPP_CLASS_NAME, android::widget::TextView::J2CPP_METHOD_NAME(24), android::widget::TextView::J2CPP_METHOD_SIGNATURE(24), jint >(get_jobject()); } jint android::widget::TextView::getTotalPaddingTop() { return call_method< android::widget::TextView::J2CPP_CLASS_NAME, android::widget::TextView::J2CPP_METHOD_NAME(25), android::widget::TextView::J2CPP_METHOD_SIGNATURE(25), jint >(get_jobject()); } jint android::widget::TextView::getTotalPaddingBottom() { return call_method< android::widget::TextView::J2CPP_CLASS_NAME, android::widget::TextView::J2CPP_METHOD_NAME(26), android::widget::TextView::J2CPP_METHOD_SIGNATURE(26), jint >(get_jobject()); } void android::widget::TextView::setCompoundDrawables(local_ref< android::graphics::drawable::Drawable > const &a0, local_ref< android::graphics::drawable::Drawable > const &a1, local_ref< android::graphics::drawable::Drawable > const &a2, local_ref< android::graphics::drawable::Drawable > const &a3) { return call_method< android::widget::TextView::J2CPP_CLASS_NAME, android::widget::TextView::J2CPP_METHOD_NAME(27), android::widget::TextView::J2CPP_METHOD_SIGNATURE(27), void >(get_jobject(), a0, a1, a2, a3); } void android::widget::TextView::setCompoundDrawablesWithIntrinsicBounds(jint a0, jint a1, jint a2, jint a3) { return call_method< android::widget::TextView::J2CPP_CLASS_NAME, android::widget::TextView::J2CPP_METHOD_NAME(28), android::widget::TextView::J2CPP_METHOD_SIGNATURE(28), void >(get_jobject(), a0, a1, a2, a3); } void android::widget::TextView::setCompoundDrawablesWithIntrinsicBounds(local_ref< android::graphics::drawable::Drawable > const &a0, local_ref< android::graphics::drawable::Drawable > const &a1, local_ref< android::graphics::drawable::Drawable > const &a2, local_ref< android::graphics::drawable::Drawable > const &a3) { return call_method< android::widget::TextView::J2CPP_CLASS_NAME, android::widget::TextView::J2CPP_METHOD_NAME(29), android::widget::TextView::J2CPP_METHOD_SIGNATURE(29), void >(get_jobject(), a0, a1, a2, a3); } local_ref< array< local_ref< android::graphics::drawable::Drawable >, 1> > android::widget::TextView::getCompoundDrawables() { return call_method< android::widget::TextView::J2CPP_CLASS_NAME, android::widget::TextView::J2CPP_METHOD_NAME(30), android::widget::TextView::J2CPP_METHOD_SIGNATURE(30), local_ref< array< local_ref< android::graphics::drawable::Drawable >, 1> > >(get_jobject()); } void android::widget::TextView::setCompoundDrawablePadding(jint a0) { return call_method< android::widget::TextView::J2CPP_CLASS_NAME, android::widget::TextView::J2CPP_METHOD_NAME(31), android::widget::TextView::J2CPP_METHOD_SIGNATURE(31), void >(get_jobject(), a0); } jint android::widget::TextView::getCompoundDrawablePadding() { return call_method< android::widget::TextView::J2CPP_CLASS_NAME, android::widget::TextView::J2CPP_METHOD_NAME(32), android::widget::TextView::J2CPP_METHOD_SIGNATURE(32), jint >(get_jobject()); } void android::widget::TextView::setPadding(jint a0, jint a1, jint a2, jint a3) { return call_method< android::widget::TextView::J2CPP_CLASS_NAME, android::widget::TextView::J2CPP_METHOD_NAME(33), android::widget::TextView::J2CPP_METHOD_SIGNATURE(33), void >(get_jobject(), a0, a1, a2, a3); } jint android::widget::TextView::getAutoLinkMask() { return call_method< android::widget::TextView::J2CPP_CLASS_NAME, android::widget::TextView::J2CPP_METHOD_NAME(34), android::widget::TextView::J2CPP_METHOD_SIGNATURE(34), jint >(get_jobject()); } void android::widget::TextView::setTextAppearance(local_ref< android::content::Context > const &a0, jint a1) { return call_method< android::widget::TextView::J2CPP_CLASS_NAME, android::widget::TextView::J2CPP_METHOD_NAME(35), android::widget::TextView::J2CPP_METHOD_SIGNATURE(35), void >(get_jobject(), a0, a1); } jfloat android::widget::TextView::getTextSize() { return call_method< android::widget::TextView::J2CPP_CLASS_NAME, android::widget::TextView::J2CPP_METHOD_NAME(36), android::widget::TextView::J2CPP_METHOD_SIGNATURE(36), jfloat >(get_jobject()); } void android::widget::TextView::setTextSize(jfloat a0) { return call_method< android::widget::TextView::J2CPP_CLASS_NAME, android::widget::TextView::J2CPP_METHOD_NAME(37), android::widget::TextView::J2CPP_METHOD_SIGNATURE(37), void >(get_jobject(), a0); } void android::widget::TextView::setTextSize(jint a0, jfloat a1) { return call_method< android::widget::TextView::J2CPP_CLASS_NAME, android::widget::TextView::J2CPP_METHOD_NAME(38), android::widget::TextView::J2CPP_METHOD_SIGNATURE(38), void >(get_jobject(), a0, a1); } jfloat android::widget::TextView::getTextScaleX() { return call_method< android::widget::TextView::J2CPP_CLASS_NAME, android::widget::TextView::J2CPP_METHOD_NAME(39), android::widget::TextView::J2CPP_METHOD_SIGNATURE(39), jfloat >(get_jobject()); } void android::widget::TextView::setTextScaleX(jfloat a0) { return call_method< android::widget::TextView::J2CPP_CLASS_NAME, android::widget::TextView::J2CPP_METHOD_NAME(40), android::widget::TextView::J2CPP_METHOD_SIGNATURE(40), void >(get_jobject(), a0); } void android::widget::TextView::setTypeface(local_ref< android::graphics::Typeface > const &a0) { return call_method< android::widget::TextView::J2CPP_CLASS_NAME, android::widget::TextView::J2CPP_METHOD_NAME(41), android::widget::TextView::J2CPP_METHOD_SIGNATURE(41), void >(get_jobject(), a0); } local_ref< android::graphics::Typeface > android::widget::TextView::getTypeface() { return call_method< android::widget::TextView::J2CPP_CLASS_NAME, android::widget::TextView::J2CPP_METHOD_NAME(42), android::widget::TextView::J2CPP_METHOD_SIGNATURE(42), local_ref< android::graphics::Typeface > >(get_jobject()); } void android::widget::TextView::setTextColor(jint a0) { return call_method< android::widget::TextView::J2CPP_CLASS_NAME, android::widget::TextView::J2CPP_METHOD_NAME(43), android::widget::TextView::J2CPP_METHOD_SIGNATURE(43), void >(get_jobject(), a0); } void android::widget::TextView::setTextColor(local_ref< android::content::res::ColorStateList > const &a0) { return call_method< android::widget::TextView::J2CPP_CLASS_NAME, android::widget::TextView::J2CPP_METHOD_NAME(44), android::widget::TextView::J2CPP_METHOD_SIGNATURE(44), void >(get_jobject(), a0); } local_ref< android::content::res::ColorStateList > android::widget::TextView::getTextColors() { return call_method< android::widget::TextView::J2CPP_CLASS_NAME, android::widget::TextView::J2CPP_METHOD_NAME(45), android::widget::TextView::J2CPP_METHOD_SIGNATURE(45), local_ref< android::content::res::ColorStateList > >(get_jobject()); } jint android::widget::TextView::getCurrentTextColor() { return call_method< android::widget::TextView::J2CPP_CLASS_NAME, android::widget::TextView::J2CPP_METHOD_NAME(46), android::widget::TextView::J2CPP_METHOD_SIGNATURE(46), jint >(get_jobject()); } void android::widget::TextView::setHighlightColor(jint a0) { return call_method< android::widget::TextView::J2CPP_CLASS_NAME, android::widget::TextView::J2CPP_METHOD_NAME(47), android::widget::TextView::J2CPP_METHOD_SIGNATURE(47), void >(get_jobject(), a0); } void android::widget::TextView::setShadowLayer(jfloat a0, jfloat a1, jfloat a2, jint a3) { return call_method< android::widget::TextView::J2CPP_CLASS_NAME, android::widget::TextView::J2CPP_METHOD_NAME(48), android::widget::TextView::J2CPP_METHOD_SIGNATURE(48), void >(get_jobject(), a0, a1, a2, a3); } local_ref< android::text::TextPaint > android::widget::TextView::getPaint() { return call_method< android::widget::TextView::J2CPP_CLASS_NAME, android::widget::TextView::J2CPP_METHOD_NAME(49), android::widget::TextView::J2CPP_METHOD_SIGNATURE(49), local_ref< android::text::TextPaint > >(get_jobject()); } void android::widget::TextView::setAutoLinkMask(jint a0) { return call_method< android::widget::TextView::J2CPP_CLASS_NAME, android::widget::TextView::J2CPP_METHOD_NAME(50), android::widget::TextView::J2CPP_METHOD_SIGNATURE(50), void >(get_jobject(), a0); } void android::widget::TextView::setLinksClickable(jboolean a0) { return call_method< android::widget::TextView::J2CPP_CLASS_NAME, android::widget::TextView::J2CPP_METHOD_NAME(51), android::widget::TextView::J2CPP_METHOD_SIGNATURE(51), void >(get_jobject(), a0); } jboolean android::widget::TextView::getLinksClickable() { return call_method< android::widget::TextView::J2CPP_CLASS_NAME, android::widget::TextView::J2CPP_METHOD_NAME(52), android::widget::TextView::J2CPP_METHOD_SIGNATURE(52), jboolean >(get_jobject()); } local_ref< array< local_ref< android::text::style::URLSpan >, 1> > android::widget::TextView::getUrls() { return call_method< android::widget::TextView::J2CPP_CLASS_NAME, android::widget::TextView::J2CPP_METHOD_NAME(53), android::widget::TextView::J2CPP_METHOD_SIGNATURE(53), local_ref< array< local_ref< android::text::style::URLSpan >, 1> > >(get_jobject()); } void android::widget::TextView::setHintTextColor(jint a0) { return call_method< android::widget::TextView::J2CPP_CLASS_NAME, android::widget::TextView::J2CPP_METHOD_NAME(54), android::widget::TextView::J2CPP_METHOD_SIGNATURE(54), void >(get_jobject(), a0); } void android::widget::TextView::setHintTextColor(local_ref< android::content::res::ColorStateList > const &a0) { return call_method< android::widget::TextView::J2CPP_CLASS_NAME, android::widget::TextView::J2CPP_METHOD_NAME(55), android::widget::TextView::J2CPP_METHOD_SIGNATURE(55), void >(get_jobject(), a0); } local_ref< android::content::res::ColorStateList > android::widget::TextView::getHintTextColors() { return call_method< android::widget::TextView::J2CPP_CLASS_NAME, android::widget::TextView::J2CPP_METHOD_NAME(56), android::widget::TextView::J2CPP_METHOD_SIGNATURE(56), local_ref< android::content::res::ColorStateList > >(get_jobject()); } jint android::widget::TextView::getCurrentHintTextColor() { return call_method< android::widget::TextView::J2CPP_CLASS_NAME, android::widget::TextView::J2CPP_METHOD_NAME(57), android::widget::TextView::J2CPP_METHOD_SIGNATURE(57), jint >(get_jobject()); } void android::widget::TextView::setLinkTextColor(jint a0) { return call_method< android::widget::TextView::J2CPP_CLASS_NAME, android::widget::TextView::J2CPP_METHOD_NAME(58), android::widget::TextView::J2CPP_METHOD_SIGNATURE(58), void >(get_jobject(), a0); } void android::widget::TextView::setLinkTextColor(local_ref< android::content::res::ColorStateList > const &a0) { return call_method< android::widget::TextView::J2CPP_CLASS_NAME, android::widget::TextView::J2CPP_METHOD_NAME(59), android::widget::TextView::J2CPP_METHOD_SIGNATURE(59), void >(get_jobject(), a0); } local_ref< android::content::res::ColorStateList > android::widget::TextView::getLinkTextColors() { return call_method< android::widget::TextView::J2CPP_CLASS_NAME, android::widget::TextView::J2CPP_METHOD_NAME(60), android::widget::TextView::J2CPP_METHOD_SIGNATURE(60), local_ref< android::content::res::ColorStateList > >(get_jobject()); } void android::widget::TextView::setGravity(jint a0) { return call_method< android::widget::TextView::J2CPP_CLASS_NAME, android::widget::TextView::J2CPP_METHOD_NAME(61), android::widget::TextView::J2CPP_METHOD_SIGNATURE(61), void >(get_jobject(), a0); } jint android::widget::TextView::getGravity() { return call_method< android::widget::TextView::J2CPP_CLASS_NAME, android::widget::TextView::J2CPP_METHOD_NAME(62), android::widget::TextView::J2CPP_METHOD_SIGNATURE(62), jint >(get_jobject()); } jint android::widget::TextView::getPaintFlags() { return call_method< android::widget::TextView::J2CPP_CLASS_NAME, android::widget::TextView::J2CPP_METHOD_NAME(63), android::widget::TextView::J2CPP_METHOD_SIGNATURE(63), jint >(get_jobject()); } void android::widget::TextView::setPaintFlags(jint a0) { return call_method< android::widget::TextView::J2CPP_CLASS_NAME, android::widget::TextView::J2CPP_METHOD_NAME(64), android::widget::TextView::J2CPP_METHOD_SIGNATURE(64), void >(get_jobject(), a0); } void android::widget::TextView::setHorizontallyScrolling(jboolean a0) { return call_method< android::widget::TextView::J2CPP_CLASS_NAME, android::widget::TextView::J2CPP_METHOD_NAME(65), android::widget::TextView::J2CPP_METHOD_SIGNATURE(65), void >(get_jobject(), a0); } void android::widget::TextView::setMinLines(jint a0) { return call_method< android::widget::TextView::J2CPP_CLASS_NAME, android::widget::TextView::J2CPP_METHOD_NAME(66), android::widget::TextView::J2CPP_METHOD_SIGNATURE(66), void >(get_jobject(), a0); } void android::widget::TextView::setMinHeight(jint a0) { return call_method< android::widget::TextView::J2CPP_CLASS_NAME, android::widget::TextView::J2CPP_METHOD_NAME(67), android::widget::TextView::J2CPP_METHOD_SIGNATURE(67), void >(get_jobject(), a0); } void android::widget::TextView::setMaxLines(jint a0) { return call_method< android::widget::TextView::J2CPP_CLASS_NAME, android::widget::TextView::J2CPP_METHOD_NAME(68), android::widget::TextView::J2CPP_METHOD_SIGNATURE(68), void >(get_jobject(), a0); } void android::widget::TextView::setMaxHeight(jint a0) { return call_method< android::widget::TextView::J2CPP_CLASS_NAME, android::widget::TextView::J2CPP_METHOD_NAME(69), android::widget::TextView::J2CPP_METHOD_SIGNATURE(69), void >(get_jobject(), a0); } void android::widget::TextView::setLines(jint a0) { return call_method< android::widget::TextView::J2CPP_CLASS_NAME, android::widget::TextView::J2CPP_METHOD_NAME(70), android::widget::TextView::J2CPP_METHOD_SIGNATURE(70), void >(get_jobject(), a0); } void android::widget::TextView::setHeight(jint a0) { return call_method< android::widget::TextView::J2CPP_CLASS_NAME, android::widget::TextView::J2CPP_METHOD_NAME(71), android::widget::TextView::J2CPP_METHOD_SIGNATURE(71), void >(get_jobject(), a0); } void android::widget::TextView::setMinEms(jint a0) { return call_method< android::widget::TextView::J2CPP_CLASS_NAME, android::widget::TextView::J2CPP_METHOD_NAME(72), android::widget::TextView::J2CPP_METHOD_SIGNATURE(72), void >(get_jobject(), a0); } void android::widget::TextView::setMinWidth(jint a0) { return call_method< android::widget::TextView::J2CPP_CLASS_NAME, android::widget::TextView::J2CPP_METHOD_NAME(73), android::widget::TextView::J2CPP_METHOD_SIGNATURE(73), void >(get_jobject(), a0); } void android::widget::TextView::setMaxEms(jint a0) { return call_method< android::widget::TextView::J2CPP_CLASS_NAME, android::widget::TextView::J2CPP_METHOD_NAME(74), android::widget::TextView::J2CPP_METHOD_SIGNATURE(74), void >(get_jobject(), a0); } void android::widget::TextView::setMaxWidth(jint a0) { return call_method< android::widget::TextView::J2CPP_CLASS_NAME, android::widget::TextView::J2CPP_METHOD_NAME(75), android::widget::TextView::J2CPP_METHOD_SIGNATURE(75), void >(get_jobject(), a0); } void android::widget::TextView::setEms(jint a0) { return call_method< android::widget::TextView::J2CPP_CLASS_NAME, android::widget::TextView::J2CPP_METHOD_NAME(76), android::widget::TextView::J2CPP_METHOD_SIGNATURE(76), void >(get_jobject(), a0); } void android::widget::TextView::setWidth(jint a0) { return call_method< android::widget::TextView::J2CPP_CLASS_NAME, android::widget::TextView::J2CPP_METHOD_NAME(77), android::widget::TextView::J2CPP_METHOD_SIGNATURE(77), void >(get_jobject(), a0); } void android::widget::TextView::setLineSpacing(jfloat a0, jfloat a1) { return call_method< android::widget::TextView::J2CPP_CLASS_NAME, android::widget::TextView::J2CPP_METHOD_NAME(78), android::widget::TextView::J2CPP_METHOD_SIGNATURE(78), void >(get_jobject(), a0, a1); } void android::widget::TextView::append(local_ref< java::lang::CharSequence > const &a0) { return call_method< android::widget::TextView::J2CPP_CLASS_NAME, android::widget::TextView::J2CPP_METHOD_NAME(79), android::widget::TextView::J2CPP_METHOD_SIGNATURE(79), void >(get_jobject(), a0); } void android::widget::TextView::append(local_ref< java::lang::CharSequence > const &a0, jint a1, jint a2) { return call_method< android::widget::TextView::J2CPP_CLASS_NAME, android::widget::TextView::J2CPP_METHOD_NAME(80), android::widget::TextView::J2CPP_METHOD_SIGNATURE(80), void >(get_jobject(), a0, a1, a2); } local_ref< android::os::Parcelable > android::widget::TextView::onSaveInstanceState() { return call_method< android::widget::TextView::J2CPP_CLASS_NAME, android::widget::TextView::J2CPP_METHOD_NAME(82), android::widget::TextView::J2CPP_METHOD_SIGNATURE(82), local_ref< android::os::Parcelable > >(get_jobject()); } void android::widget::TextView::onRestoreInstanceState(local_ref< android::os::Parcelable > const &a0) { return call_method< android::widget::TextView::J2CPP_CLASS_NAME, android::widget::TextView::J2CPP_METHOD_NAME(83), android::widget::TextView::J2CPP_METHOD_SIGNATURE(83), void >(get_jobject(), a0); } void android::widget::TextView::setFreezesText(jboolean a0) { return call_method< android::widget::TextView::J2CPP_CLASS_NAME, android::widget::TextView::J2CPP_METHOD_NAME(84), android::widget::TextView::J2CPP_METHOD_SIGNATURE(84), void >(get_jobject(), a0); } jboolean android::widget::TextView::getFreezesText() { return call_method< android::widget::TextView::J2CPP_CLASS_NAME, android::widget::TextView::J2CPP_METHOD_NAME(85), android::widget::TextView::J2CPP_METHOD_SIGNATURE(85), jboolean >(get_jobject()); } void android::widget::TextView::setEditableFactory(local_ref< android::text::Editable_::Factory > const &a0) { return call_method< android::widget::TextView::J2CPP_CLASS_NAME, android::widget::TextView::J2CPP_METHOD_NAME(86), android::widget::TextView::J2CPP_METHOD_SIGNATURE(86), void >(get_jobject(), a0); } void android::widget::TextView::setSpannableFactory(local_ref< android::text::Spannable_::Factory > const &a0) { return call_method< android::widget::TextView::J2CPP_CLASS_NAME, android::widget::TextView::J2CPP_METHOD_NAME(87), android::widget::TextView::J2CPP_METHOD_SIGNATURE(87), void >(get_jobject(), a0); } void android::widget::TextView::setText(local_ref< java::lang::CharSequence > const &a0) { return call_method< android::widget::TextView::J2CPP_CLASS_NAME, android::widget::TextView::J2CPP_METHOD_NAME(88), android::widget::TextView::J2CPP_METHOD_SIGNATURE(88), void >(get_jobject(), a0); } void android::widget::TextView::setTextKeepState(local_ref< java::lang::CharSequence > const &a0) { return call_method< android::widget::TextView::J2CPP_CLASS_NAME, android::widget::TextView::J2CPP_METHOD_NAME(89), android::widget::TextView::J2CPP_METHOD_SIGNATURE(89), void >(get_jobject(), a0); } void android::widget::TextView::setText(local_ref< java::lang::CharSequence > const &a0, local_ref< android::widget::TextView_::BufferType > const &a1) { return call_method< android::widget::TextView::J2CPP_CLASS_NAME, android::widget::TextView::J2CPP_METHOD_NAME(90), android::widget::TextView::J2CPP_METHOD_SIGNATURE(90), void >(get_jobject(), a0, a1); } void android::widget::TextView::setText(local_ref< array<jchar,1> > const &a0, jint a1, jint a2) { return call_method< android::widget::TextView::J2CPP_CLASS_NAME, android::widget::TextView::J2CPP_METHOD_NAME(91), android::widget::TextView::J2CPP_METHOD_SIGNATURE(91), void >(get_jobject(), a0, a1, a2); } void android::widget::TextView::setTextKeepState(local_ref< java::lang::CharSequence > const &a0, local_ref< android::widget::TextView_::BufferType > const &a1) { return call_method< android::widget::TextView::J2CPP_CLASS_NAME, android::widget::TextView::J2CPP_METHOD_NAME(92), android::widget::TextView::J2CPP_METHOD_SIGNATURE(92), void >(get_jobject(), a0, a1); } void android::widget::TextView::setText(jint a0) { return call_method< android::widget::TextView::J2CPP_CLASS_NAME, android::widget::TextView::J2CPP_METHOD_NAME(93), android::widget::TextView::J2CPP_METHOD_SIGNATURE(93), void >(get_jobject(), a0); } void android::widget::TextView::setText(jint a0, local_ref< android::widget::TextView_::BufferType > const &a1) { return call_method< android::widget::TextView::J2CPP_CLASS_NAME, android::widget::TextView::J2CPP_METHOD_NAME(94), android::widget::TextView::J2CPP_METHOD_SIGNATURE(94), void >(get_jobject(), a0, a1); } void android::widget::TextView::setHint(local_ref< java::lang::CharSequence > const &a0) { return call_method< android::widget::TextView::J2CPP_CLASS_NAME, android::widget::TextView::J2CPP_METHOD_NAME(95), android::widget::TextView::J2CPP_METHOD_SIGNATURE(95), void >(get_jobject(), a0); } void android::widget::TextView::setHint(jint a0) { return call_method< android::widget::TextView::J2CPP_CLASS_NAME, android::widget::TextView::J2CPP_METHOD_NAME(96), android::widget::TextView::J2CPP_METHOD_SIGNATURE(96), void >(get_jobject(), a0); } local_ref< java::lang::CharSequence > android::widget::TextView::getHint() { return call_method< android::widget::TextView::J2CPP_CLASS_NAME, android::widget::TextView::J2CPP_METHOD_NAME(97), android::widget::TextView::J2CPP_METHOD_SIGNATURE(97), local_ref< java::lang::CharSequence > >(get_jobject()); } void android::widget::TextView::setInputType(jint a0) { return call_method< android::widget::TextView::J2CPP_CLASS_NAME, android::widget::TextView::J2CPP_METHOD_NAME(98), android::widget::TextView::J2CPP_METHOD_SIGNATURE(98), void >(get_jobject(), a0); } void android::widget::TextView::setRawInputType(jint a0) { return call_method< android::widget::TextView::J2CPP_CLASS_NAME, android::widget::TextView::J2CPP_METHOD_NAME(99), android::widget::TextView::J2CPP_METHOD_SIGNATURE(99), void >(get_jobject(), a0); } jint android::widget::TextView::getInputType() { return call_method< android::widget::TextView::J2CPP_CLASS_NAME, android::widget::TextView::J2CPP_METHOD_NAME(100), android::widget::TextView::J2CPP_METHOD_SIGNATURE(100), jint >(get_jobject()); } void android::widget::TextView::setImeOptions(jint a0) { return call_method< android::widget::TextView::J2CPP_CLASS_NAME, android::widget::TextView::J2CPP_METHOD_NAME(101), android::widget::TextView::J2CPP_METHOD_SIGNATURE(101), void >(get_jobject(), a0); } jint android::widget::TextView::getImeOptions() { return call_method< android::widget::TextView::J2CPP_CLASS_NAME, android::widget::TextView::J2CPP_METHOD_NAME(102), android::widget::TextView::J2CPP_METHOD_SIGNATURE(102), jint >(get_jobject()); } void android::widget::TextView::setImeActionLabel(local_ref< java::lang::CharSequence > const &a0, jint a1) { return call_method< android::widget::TextView::J2CPP_CLASS_NAME, android::widget::TextView::J2CPP_METHOD_NAME(103), android::widget::TextView::J2CPP_METHOD_SIGNATURE(103), void >(get_jobject(), a0, a1); } local_ref< java::lang::CharSequence > android::widget::TextView::getImeActionLabel() { return call_method< android::widget::TextView::J2CPP_CLASS_NAME, android::widget::TextView::J2CPP_METHOD_NAME(104), android::widget::TextView::J2CPP_METHOD_SIGNATURE(104), local_ref< java::lang::CharSequence > >(get_jobject()); } jint android::widget::TextView::getImeActionId() { return call_method< android::widget::TextView::J2CPP_CLASS_NAME, android::widget::TextView::J2CPP_METHOD_NAME(105), android::widget::TextView::J2CPP_METHOD_SIGNATURE(105), jint >(get_jobject()); } void android::widget::TextView::setOnEditorActionListener(local_ref< android::widget::TextView_::OnEditorActionListener > const &a0) { return call_method< android::widget::TextView::J2CPP_CLASS_NAME, android::widget::TextView::J2CPP_METHOD_NAME(106), android::widget::TextView::J2CPP_METHOD_SIGNATURE(106), void >(get_jobject(), a0); } void android::widget::TextView::onEditorAction(jint a0) { return call_method< android::widget::TextView::J2CPP_CLASS_NAME, android::widget::TextView::J2CPP_METHOD_NAME(107), android::widget::TextView::J2CPP_METHOD_SIGNATURE(107), void >(get_jobject(), a0); } void android::widget::TextView::setPrivateImeOptions(local_ref< java::lang::String > const &a0) { return call_method< android::widget::TextView::J2CPP_CLASS_NAME, android::widget::TextView::J2CPP_METHOD_NAME(108), android::widget::TextView::J2CPP_METHOD_SIGNATURE(108), void >(get_jobject(), a0); } local_ref< java::lang::String > android::widget::TextView::getPrivateImeOptions() { return call_method< android::widget::TextView::J2CPP_CLASS_NAME, android::widget::TextView::J2CPP_METHOD_NAME(109), android::widget::TextView::J2CPP_METHOD_SIGNATURE(109), local_ref< java::lang::String > >(get_jobject()); } void android::widget::TextView::setInputExtras(jint a0) { return call_method< android::widget::TextView::J2CPP_CLASS_NAME, android::widget::TextView::J2CPP_METHOD_NAME(110), android::widget::TextView::J2CPP_METHOD_SIGNATURE(110), void >(get_jobject(), a0); } local_ref< android::os::Bundle > android::widget::TextView::getInputExtras(jboolean a0) { return call_method< android::widget::TextView::J2CPP_CLASS_NAME, android::widget::TextView::J2CPP_METHOD_NAME(111), android::widget::TextView::J2CPP_METHOD_SIGNATURE(111), local_ref< android::os::Bundle > >(get_jobject(), a0); } local_ref< java::lang::CharSequence > android::widget::TextView::getError() { return call_method< android::widget::TextView::J2CPP_CLASS_NAME, android::widget::TextView::J2CPP_METHOD_NAME(112), android::widget::TextView::J2CPP_METHOD_SIGNATURE(112), local_ref< java::lang::CharSequence > >(get_jobject()); } void android::widget::TextView::setError(local_ref< java::lang::CharSequence > const &a0) { return call_method< android::widget::TextView::J2CPP_CLASS_NAME, android::widget::TextView::J2CPP_METHOD_NAME(113), android::widget::TextView::J2CPP_METHOD_SIGNATURE(113), void >(get_jobject(), a0); } void android::widget::TextView::setError(local_ref< java::lang::CharSequence > const &a0, local_ref< android::graphics::drawable::Drawable > const &a1) { return call_method< android::widget::TextView::J2CPP_CLASS_NAME, android::widget::TextView::J2CPP_METHOD_NAME(114), android::widget::TextView::J2CPP_METHOD_SIGNATURE(114), void >(get_jobject(), a0, a1); } void android::widget::TextView::setFilters(local_ref< array< local_ref< android::text::InputFilter >, 1> > const &a0) { return call_method< android::widget::TextView::J2CPP_CLASS_NAME, android::widget::TextView::J2CPP_METHOD_NAME(116), android::widget::TextView::J2CPP_METHOD_SIGNATURE(116), void >(get_jobject(), a0); } local_ref< array< local_ref< android::text::InputFilter >, 1> > android::widget::TextView::getFilters() { return call_method< android::widget::TextView::J2CPP_CLASS_NAME, android::widget::TextView::J2CPP_METHOD_NAME(117), android::widget::TextView::J2CPP_METHOD_SIGNATURE(117), local_ref< array< local_ref< android::text::InputFilter >, 1> > >(get_jobject()); } jboolean android::widget::TextView::onPreDraw() { return call_method< android::widget::TextView::J2CPP_CLASS_NAME, android::widget::TextView::J2CPP_METHOD_NAME(118), android::widget::TextView::J2CPP_METHOD_SIGNATURE(118), jboolean >(get_jobject()); } void android::widget::TextView::invalidateDrawable(local_ref< android::graphics::drawable::Drawable > const &a0) { return call_method< android::widget::TextView::J2CPP_CLASS_NAME, android::widget::TextView::J2CPP_METHOD_NAME(127), android::widget::TextView::J2CPP_METHOD_SIGNATURE(127), void >(get_jobject(), a0); } void android::widget::TextView::getFocusedRect(local_ref< android::graphics::Rect > const &a0) { return call_method< android::widget::TextView::J2CPP_CLASS_NAME, android::widget::TextView::J2CPP_METHOD_NAME(129), android::widget::TextView::J2CPP_METHOD_SIGNATURE(129), void >(get_jobject(), a0); } jint android::widget::TextView::getLineCount() { return call_method< android::widget::TextView::J2CPP_CLASS_NAME, android::widget::TextView::J2CPP_METHOD_NAME(130), android::widget::TextView::J2CPP_METHOD_SIGNATURE(130), jint >(get_jobject()); } jint android::widget::TextView::getLineBounds(jint a0, local_ref< android::graphics::Rect > const &a1) { return call_method< android::widget::TextView::J2CPP_CLASS_NAME, android::widget::TextView::J2CPP_METHOD_NAME(131), android::widget::TextView::J2CPP_METHOD_SIGNATURE(131), jint >(get_jobject(), a0, a1); } jint android::widget::TextView::getBaseline() { return call_method< android::widget::TextView::J2CPP_CLASS_NAME, android::widget::TextView::J2CPP_METHOD_NAME(132), android::widget::TextView::J2CPP_METHOD_SIGNATURE(132), jint >(get_jobject()); } jboolean android::widget::TextView::onKeyDown(jint a0, local_ref< android::view::KeyEvent > const &a1) { return call_method< android::widget::TextView::J2CPP_CLASS_NAME, android::widget::TextView::J2CPP_METHOD_NAME(133), android::widget::TextView::J2CPP_METHOD_SIGNATURE(133), jboolean >(get_jobject(), a0, a1); } jboolean android::widget::TextView::onKeyMultiple(jint a0, jint a1, local_ref< android::view::KeyEvent > const &a2) { return call_method< android::widget::TextView::J2CPP_CLASS_NAME, android::widget::TextView::J2CPP_METHOD_NAME(134), android::widget::TextView::J2CPP_METHOD_SIGNATURE(134), jboolean >(get_jobject(), a0, a1, a2); } jboolean android::widget::TextView::onKeyUp(jint a0, local_ref< android::view::KeyEvent > const &a1) { return call_method< android::widget::TextView::J2CPP_CLASS_NAME, android::widget::TextView::J2CPP_METHOD_NAME(135), android::widget::TextView::J2CPP_METHOD_SIGNATURE(135), jboolean >(get_jobject(), a0, a1); } jboolean android::widget::TextView::onCheckIsTextEditor() { return call_method< android::widget::TextView::J2CPP_CLASS_NAME, android::widget::TextView::J2CPP_METHOD_NAME(136), android::widget::TextView::J2CPP_METHOD_SIGNATURE(136), jboolean >(get_jobject()); } local_ref< android::view::inputmethod::InputConnection > android::widget::TextView::onCreateInputConnection(local_ref< android::view::inputmethod::EditorInfo > const &a0) { return call_method< android::widget::TextView::J2CPP_CLASS_NAME, android::widget::TextView::J2CPP_METHOD_NAME(137), android::widget::TextView::J2CPP_METHOD_SIGNATURE(137), local_ref< android::view::inputmethod::InputConnection > >(get_jobject(), a0); } jboolean android::widget::TextView::extractText(local_ref< android::view::inputmethod::ExtractedTextRequest > const &a0, local_ref< android::view::inputmethod::ExtractedText > const &a1) { return call_method< android::widget::TextView::J2CPP_CLASS_NAME, android::widget::TextView::J2CPP_METHOD_NAME(138), android::widget::TextView::J2CPP_METHOD_SIGNATURE(138), jboolean >(get_jobject(), a0, a1); } void android::widget::TextView::setExtractedText(local_ref< android::view::inputmethod::ExtractedText > const &a0) { return call_method< android::widget::TextView::J2CPP_CLASS_NAME, android::widget::TextView::J2CPP_METHOD_NAME(139), android::widget::TextView::J2CPP_METHOD_SIGNATURE(139), void >(get_jobject(), a0); } void android::widget::TextView::onCommitCompletion(local_ref< android::view::inputmethod::CompletionInfo > const &a0) { return call_method< android::widget::TextView::J2CPP_CLASS_NAME, android::widget::TextView::J2CPP_METHOD_NAME(140), android::widget::TextView::J2CPP_METHOD_SIGNATURE(140), void >(get_jobject(), a0); } void android::widget::TextView::beginBatchEdit() { return call_method< android::widget::TextView::J2CPP_CLASS_NAME, android::widget::TextView::J2CPP_METHOD_NAME(141), android::widget::TextView::J2CPP_METHOD_SIGNATURE(141), void >(get_jobject()); } void android::widget::TextView::endBatchEdit() { return call_method< android::widget::TextView::J2CPP_CLASS_NAME, android::widget::TextView::J2CPP_METHOD_NAME(142), android::widget::TextView::J2CPP_METHOD_SIGNATURE(142), void >(get_jobject()); } void android::widget::TextView::onBeginBatchEdit() { return call_method< android::widget::TextView::J2CPP_CLASS_NAME, android::widget::TextView::J2CPP_METHOD_NAME(143), android::widget::TextView::J2CPP_METHOD_SIGNATURE(143), void >(get_jobject()); } void android::widget::TextView::onEndBatchEdit() { return call_method< android::widget::TextView::J2CPP_CLASS_NAME, android::widget::TextView::J2CPP_METHOD_NAME(144), android::widget::TextView::J2CPP_METHOD_SIGNATURE(144), void >(get_jobject()); } jboolean android::widget::TextView::onPrivateIMECommand(local_ref< java::lang::String > const &a0, local_ref< android::os::Bundle > const &a1) { return call_method< android::widget::TextView::J2CPP_CLASS_NAME, android::widget::TextView::J2CPP_METHOD_NAME(145), android::widget::TextView::J2CPP_METHOD_SIGNATURE(145), jboolean >(get_jobject(), a0, a1); } void android::widget::TextView::setIncludeFontPadding(jboolean a0) { return call_method< android::widget::TextView::J2CPP_CLASS_NAME, android::widget::TextView::J2CPP_METHOD_NAME(146), android::widget::TextView::J2CPP_METHOD_SIGNATURE(146), void >(get_jobject(), a0); } jboolean android::widget::TextView::bringPointIntoView(jint a0) { return call_method< android::widget::TextView::J2CPP_CLASS_NAME, android::widget::TextView::J2CPP_METHOD_NAME(148), android::widget::TextView::J2CPP_METHOD_SIGNATURE(148), jboolean >(get_jobject(), a0); } jboolean android::widget::TextView::moveCursorToVisibleOffset() { return call_method< android::widget::TextView::J2CPP_CLASS_NAME, android::widget::TextView::J2CPP_METHOD_NAME(149), android::widget::TextView::J2CPP_METHOD_SIGNATURE(149), jboolean >(get_jobject()); } void android::widget::TextView::computeScroll() { return call_method< android::widget::TextView::J2CPP_CLASS_NAME, android::widget::TextView::J2CPP_METHOD_NAME(150), android::widget::TextView::J2CPP_METHOD_SIGNATURE(150), void >(get_jobject()); } void android::widget::TextView::debug(jint a0) { return call_method< android::widget::TextView::J2CPP_CLASS_NAME, android::widget::TextView::J2CPP_METHOD_NAME(151), android::widget::TextView::J2CPP_METHOD_SIGNATURE(151), void >(get_jobject(), a0); } jint android::widget::TextView::getSelectionStart() { return call_method< android::widget::TextView::J2CPP_CLASS_NAME, android::widget::TextView::J2CPP_METHOD_NAME(152), android::widget::TextView::J2CPP_METHOD_SIGNATURE(152), jint >(get_jobject()); } jint android::widget::TextView::getSelectionEnd() { return call_method< android::widget::TextView::J2CPP_CLASS_NAME, android::widget::TextView::J2CPP_METHOD_NAME(153), android::widget::TextView::J2CPP_METHOD_SIGNATURE(153), jint >(get_jobject()); } jboolean android::widget::TextView::hasSelection() { return call_method< android::widget::TextView::J2CPP_CLASS_NAME, android::widget::TextView::J2CPP_METHOD_NAME(154), android::widget::TextView::J2CPP_METHOD_SIGNATURE(154), jboolean >(get_jobject()); } void android::widget::TextView::setSingleLine() { return call_method< android::widget::TextView::J2CPP_CLASS_NAME, android::widget::TextView::J2CPP_METHOD_NAME(155), android::widget::TextView::J2CPP_METHOD_SIGNATURE(155), void >(get_jobject()); } void android::widget::TextView::setSingleLine(jboolean a0) { return call_method< android::widget::TextView::J2CPP_CLASS_NAME, android::widget::TextView::J2CPP_METHOD_NAME(156), android::widget::TextView::J2CPP_METHOD_SIGNATURE(156), void >(get_jobject(), a0); } void android::widget::TextView::setEllipsize(local_ref< android::text::TextUtils_::TruncateAt > const &a0) { return call_method< android::widget::TextView::J2CPP_CLASS_NAME, android::widget::TextView::J2CPP_METHOD_NAME(157), android::widget::TextView::J2CPP_METHOD_SIGNATURE(157), void >(get_jobject(), a0); } void android::widget::TextView::setMarqueeRepeatLimit(jint a0) { return call_method< android::widget::TextView::J2CPP_CLASS_NAME, android::widget::TextView::J2CPP_METHOD_NAME(158), android::widget::TextView::J2CPP_METHOD_SIGNATURE(158), void >(get_jobject(), a0); } local_ref< android::text::TextUtils_::TruncateAt > android::widget::TextView::getEllipsize() { return call_method< android::widget::TextView::J2CPP_CLASS_NAME, android::widget::TextView::J2CPP_METHOD_NAME(159), android::widget::TextView::J2CPP_METHOD_SIGNATURE(159), local_ref< android::text::TextUtils_::TruncateAt > >(get_jobject()); } void android::widget::TextView::setSelectAllOnFocus(jboolean a0) { return call_method< android::widget::TextView::J2CPP_CLASS_NAME, android::widget::TextView::J2CPP_METHOD_NAME(160), android::widget::TextView::J2CPP_METHOD_SIGNATURE(160), void >(get_jobject(), a0); } void android::widget::TextView::setCursorVisible(jboolean a0) { return call_method< android::widget::TextView::J2CPP_CLASS_NAME, android::widget::TextView::J2CPP_METHOD_NAME(161), android::widget::TextView::J2CPP_METHOD_SIGNATURE(161), void >(get_jobject(), a0); } void android::widget::TextView::addTextChangedListener(local_ref< android::text::TextWatcher > const &a0) { return call_method< android::widget::TextView::J2CPP_CLASS_NAME, android::widget::TextView::J2CPP_METHOD_NAME(164), android::widget::TextView::J2CPP_METHOD_SIGNATURE(164), void >(get_jobject(), a0); } void android::widget::TextView::removeTextChangedListener(local_ref< android::text::TextWatcher > const &a0) { return call_method< android::widget::TextView::J2CPP_CLASS_NAME, android::widget::TextView::J2CPP_METHOD_NAME(165), android::widget::TextView::J2CPP_METHOD_SIGNATURE(165), void >(get_jobject(), a0); } void android::widget::TextView::onStartTemporaryDetach() { return call_method< android::widget::TextView::J2CPP_CLASS_NAME, android::widget::TextView::J2CPP_METHOD_NAME(166), android::widget::TextView::J2CPP_METHOD_SIGNATURE(166), void >(get_jobject()); } void android::widget::TextView::onFinishTemporaryDetach() { return call_method< android::widget::TextView::J2CPP_CLASS_NAME, android::widget::TextView::J2CPP_METHOD_NAME(167), android::widget::TextView::J2CPP_METHOD_SIGNATURE(167), void >(get_jobject()); } void android::widget::TextView::onWindowFocusChanged(jboolean a0) { return call_method< android::widget::TextView::J2CPP_CLASS_NAME, android::widget::TextView::J2CPP_METHOD_NAME(169), android::widget::TextView::J2CPP_METHOD_SIGNATURE(169), void >(get_jobject(), a0); } void android::widget::TextView::clearComposingText() { return call_method< android::widget::TextView::J2CPP_CLASS_NAME, android::widget::TextView::J2CPP_METHOD_NAME(170), android::widget::TextView::J2CPP_METHOD_SIGNATURE(170), void >(get_jobject()); } void android::widget::TextView::setSelected(jboolean a0) { return call_method< android::widget::TextView::J2CPP_CLASS_NAME, android::widget::TextView::J2CPP_METHOD_NAME(171), android::widget::TextView::J2CPP_METHOD_SIGNATURE(171), void >(get_jobject(), a0); } jboolean android::widget::TextView::onTouchEvent(local_ref< android::view::MotionEvent > const &a0) { return call_method< android::widget::TextView::J2CPP_CLASS_NAME, android::widget::TextView::J2CPP_METHOD_NAME(172), android::widget::TextView::J2CPP_METHOD_SIGNATURE(172), jboolean >(get_jobject(), a0); } jboolean android::widget::TextView::didTouchFocusSelect() { return call_method< android::widget::TextView::J2CPP_CLASS_NAME, android::widget::TextView::J2CPP_METHOD_NAME(173), android::widget::TextView::J2CPP_METHOD_SIGNATURE(173), jboolean >(get_jobject()); } void android::widget::TextView::cancelLongPress() { return call_method< android::widget::TextView::J2CPP_CLASS_NAME, android::widget::TextView::J2CPP_METHOD_NAME(174), android::widget::TextView::J2CPP_METHOD_SIGNATURE(174), void >(get_jobject()); } jboolean android::widget::TextView::onTrackballEvent(local_ref< android::view::MotionEvent > const &a0) { return call_method< android::widget::TextView::J2CPP_CLASS_NAME, android::widget::TextView::J2CPP_METHOD_NAME(175), android::widget::TextView::J2CPP_METHOD_SIGNATURE(175), jboolean >(get_jobject(), a0); } void android::widget::TextView::setScroller(local_ref< android::widget::Scroller > const &a0) { return call_method< android::widget::TextView::J2CPP_CLASS_NAME, android::widget::TextView::J2CPP_METHOD_NAME(176), android::widget::TextView::J2CPP_METHOD_SIGNATURE(176), void >(get_jobject(), a0); } local_ref< android::content::res::ColorStateList > android::widget::TextView::getTextColors(local_ref< android::content::Context > const &a0, local_ref< android::content::res::TypedArray > const &a1) { return call_static_method< android::widget::TextView::J2CPP_CLASS_NAME, android::widget::TextView::J2CPP_METHOD_NAME(182), android::widget::TextView::J2CPP_METHOD_SIGNATURE(182), local_ref< android::content::res::ColorStateList > >(a0, a1); } jint android::widget::TextView::getTextColor(local_ref< android::content::Context > const &a0, local_ref< android::content::res::TypedArray > const &a1, jint a2) { return call_static_method< android::widget::TextView::J2CPP_CLASS_NAME, android::widget::TextView::J2CPP_METHOD_NAME(183), android::widget::TextView::J2CPP_METHOD_SIGNATURE(183), jint >(a0, a1, a2); } jboolean android::widget::TextView::onKeyShortcut(jint a0, local_ref< android::view::KeyEvent > const &a1) { return call_method< android::widget::TextView::J2CPP_CLASS_NAME, android::widget::TextView::J2CPP_METHOD_NAME(184), android::widget::TextView::J2CPP_METHOD_SIGNATURE(184), jboolean >(get_jobject(), a0, a1); } jboolean android::widget::TextView::dispatchPopulateAccessibilityEvent(local_ref< android::view::accessibility::AccessibilityEvent > const &a0) { return call_method< android::widget::TextView::J2CPP_CLASS_NAME, android::widget::TextView::J2CPP_METHOD_NAME(185), android::widget::TextView::J2CPP_METHOD_SIGNATURE(185), jboolean >(get_jobject(), a0); } jboolean android::widget::TextView::isInputMethodTarget() { return call_method< android::widget::TextView::J2CPP_CLASS_NAME, android::widget::TextView::J2CPP_METHOD_NAME(187), android::widget::TextView::J2CPP_METHOD_SIGNATURE(187), jboolean >(get_jobject()); } jboolean android::widget::TextView::onTextContextMenuItem(jint a0) { return call_method< android::widget::TextView::J2CPP_CLASS_NAME, android::widget::TextView::J2CPP_METHOD_NAME(188), android::widget::TextView::J2CPP_METHOD_SIGNATURE(188), jboolean >(get_jobject(), a0); } jboolean android::widget::TextView::performLongClick() { return call_method< android::widget::TextView::J2CPP_CLASS_NAME, android::widget::TextView::J2CPP_METHOD_NAME(189), android::widget::TextView::J2CPP_METHOD_SIGNATURE(189), jboolean >(get_jobject()); } J2CPP_DEFINE_CLASS(android::widget::TextView,"android/widget/TextView") J2CPP_DEFINE_METHOD(android::widget::TextView,0,"<init>","(Landroid/content/Context;)V") J2CPP_DEFINE_METHOD(android::widget::TextView,1,"<init>","(Landroid/content/Context;Landroid/util/AttributeSet;)V") J2CPP_DEFINE_METHOD(android::widget::TextView,2,"<init>","(Landroid/content/Context;Landroid/util/AttributeSet;I)V") J2CPP_DEFINE_METHOD(android::widget::TextView,3,"setTypeface","(Landroid/graphics/Typeface;I)V") J2CPP_DEFINE_METHOD(android::widget::TextView,4,"getDefaultEditable","()Z") J2CPP_DEFINE_METHOD(android::widget::TextView,5,"getDefaultMovementMethod","()Landroid/text/method/MovementMethod;") J2CPP_DEFINE_METHOD(android::widget::TextView,6,"getText","()Ljava/lang/CharSequence;") J2CPP_DEFINE_METHOD(android::widget::TextView,7,"length","()I") J2CPP_DEFINE_METHOD(android::widget::TextView,8,"getEditableText","()Landroid/text/Editable;") J2CPP_DEFINE_METHOD(android::widget::TextView,9,"getLineHeight","()I") J2CPP_DEFINE_METHOD(android::widget::TextView,10,"getLayout","()Landroid/text/Layout;") J2CPP_DEFINE_METHOD(android::widget::TextView,11,"getKeyListener","()Landroid/text/method/KeyListener;") J2CPP_DEFINE_METHOD(android::widget::TextView,12,"setKeyListener","(Landroid/text/method/KeyListener;)V") J2CPP_DEFINE_METHOD(android::widget::TextView,13,"getMovementMethod","()Landroid/text/method/MovementMethod;") J2CPP_DEFINE_METHOD(android::widget::TextView,14,"setMovementMethod","(Landroid/text/method/MovementMethod;)V") J2CPP_DEFINE_METHOD(android::widget::TextView,15,"getTransformationMethod","()Landroid/text/method/TransformationMethod;") J2CPP_DEFINE_METHOD(android::widget::TextView,16,"setTransformationMethod","(Landroid/text/method/TransformationMethod;)V") J2CPP_DEFINE_METHOD(android::widget::TextView,17,"getCompoundPaddingTop","()I") J2CPP_DEFINE_METHOD(android::widget::TextView,18,"getCompoundPaddingBottom","()I") J2CPP_DEFINE_METHOD(android::widget::TextView,19,"getCompoundPaddingLeft","()I") J2CPP_DEFINE_METHOD(android::widget::TextView,20,"getCompoundPaddingRight","()I") J2CPP_DEFINE_METHOD(android::widget::TextView,21,"getExtendedPaddingTop","()I") J2CPP_DEFINE_METHOD(android::widget::TextView,22,"getExtendedPaddingBottom","()I") J2CPP_DEFINE_METHOD(android::widget::TextView,23,"getTotalPaddingLeft","()I") J2CPP_DEFINE_METHOD(android::widget::TextView,24,"getTotalPaddingRight","()I") J2CPP_DEFINE_METHOD(android::widget::TextView,25,"getTotalPaddingTop","()I") J2CPP_DEFINE_METHOD(android::widget::TextView,26,"getTotalPaddingBottom","()I") J2CPP_DEFINE_METHOD(android::widget::TextView,27,"setCompoundDrawables","(Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;)V") J2CPP_DEFINE_METHOD(android::widget::TextView,28,"setCompoundDrawablesWithIntrinsicBounds","(IIII)V") J2CPP_DEFINE_METHOD(android::widget::TextView,29,"setCompoundDrawablesWithIntrinsicBounds","(Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;)V") J2CPP_DEFINE_METHOD(android::widget::TextView,30,"getCompoundDrawables","()[android.graphics.drawable.Drawable") J2CPP_DEFINE_METHOD(android::widget::TextView,31,"setCompoundDrawablePadding","(I)V") J2CPP_DEFINE_METHOD(android::widget::TextView,32,"getCompoundDrawablePadding","()I") J2CPP_DEFINE_METHOD(android::widget::TextView,33,"setPadding","(IIII)V") J2CPP_DEFINE_METHOD(android::widget::TextView,34,"getAutoLinkMask","()I") J2CPP_DEFINE_METHOD(android::widget::TextView,35,"setTextAppearance","(Landroid/content/Context;I)V") J2CPP_DEFINE_METHOD(android::widget::TextView,36,"getTextSize","()F") J2CPP_DEFINE_METHOD(android::widget::TextView,37,"setTextSize","(F)V") J2CPP_DEFINE_METHOD(android::widget::TextView,38,"setTextSize","(IF)V") J2CPP_DEFINE_METHOD(android::widget::TextView,39,"getTextScaleX","()F") J2CPP_DEFINE_METHOD(android::widget::TextView,40,"setTextScaleX","(F)V") J2CPP_DEFINE_METHOD(android::widget::TextView,41,"setTypeface","(Landroid/graphics/Typeface;)V") J2CPP_DEFINE_METHOD(android::widget::TextView,42,"getTypeface","()Landroid/graphics/Typeface;") J2CPP_DEFINE_METHOD(android::widget::TextView,43,"setTextColor","(I)V") J2CPP_DEFINE_METHOD(android::widget::TextView,44,"setTextColor","(Landroid/content/res/ColorStateList;)V") J2CPP_DEFINE_METHOD(android::widget::TextView,45,"getTextColors","()Landroid/content/res/ColorStateList;") J2CPP_DEFINE_METHOD(android::widget::TextView,46,"getCurrentTextColor","()I") J2CPP_DEFINE_METHOD(android::widget::TextView,47,"setHighlightColor","(I)V") J2CPP_DEFINE_METHOD(android::widget::TextView,48,"setShadowLayer","(FFFI)V") J2CPP_DEFINE_METHOD(android::widget::TextView,49,"getPaint","()Landroid/text/TextPaint;") J2CPP_DEFINE_METHOD(android::widget::TextView,50,"setAutoLinkMask","(I)V") J2CPP_DEFINE_METHOD(android::widget::TextView,51,"setLinksClickable","(Z)V") J2CPP_DEFINE_METHOD(android::widget::TextView,52,"getLinksClickable","()Z") J2CPP_DEFINE_METHOD(android::widget::TextView,53,"getUrls","()[android.text.style.URLSpan") J2CPP_DEFINE_METHOD(android::widget::TextView,54,"setHintTextColor","(I)V") J2CPP_DEFINE_METHOD(android::widget::TextView,55,"setHintTextColor","(Landroid/content/res/ColorStateList;)V") J2CPP_DEFINE_METHOD(android::widget::TextView,56,"getHintTextColors","()Landroid/content/res/ColorStateList;") J2CPP_DEFINE_METHOD(android::widget::TextView,57,"getCurrentHintTextColor","()I") J2CPP_DEFINE_METHOD(android::widget::TextView,58,"setLinkTextColor","(I)V") J2CPP_DEFINE_METHOD(android::widget::TextView,59,"setLinkTextColor","(Landroid/content/res/ColorStateList;)V") J2CPP_DEFINE_METHOD(android::widget::TextView,60,"getLinkTextColors","()Landroid/content/res/ColorStateList;") J2CPP_DEFINE_METHOD(android::widget::TextView,61,"setGravity","(I)V") J2CPP_DEFINE_METHOD(android::widget::TextView,62,"getGravity","()I") J2CPP_DEFINE_METHOD(android::widget::TextView,63,"getPaintFlags","()I") J2CPP_DEFINE_METHOD(android::widget::TextView,64,"setPaintFlags","(I)V") J2CPP_DEFINE_METHOD(android::widget::TextView,65,"setHorizontallyScrolling","(Z)V") J2CPP_DEFINE_METHOD(android::widget::TextView,66,"setMinLines","(I)V") J2CPP_DEFINE_METHOD(android::widget::TextView,67,"setMinHeight","(I)V") J2CPP_DEFINE_METHOD(android::widget::TextView,68,"setMaxLines","(I)V") J2CPP_DEFINE_METHOD(android::widget::TextView,69,"setMaxHeight","(I)V") J2CPP_DEFINE_METHOD(android::widget::TextView,70,"setLines","(I)V") J2CPP_DEFINE_METHOD(android::widget::TextView,71,"setHeight","(I)V") J2CPP_DEFINE_METHOD(android::widget::TextView,72,"setMinEms","(I)V") J2CPP_DEFINE_METHOD(android::widget::TextView,73,"setMinWidth","(I)V") J2CPP_DEFINE_METHOD(android::widget::TextView,74,"setMaxEms","(I)V") J2CPP_DEFINE_METHOD(android::widget::TextView,75,"setMaxWidth","(I)V") J2CPP_DEFINE_METHOD(android::widget::TextView,76,"setEms","(I)V") J2CPP_DEFINE_METHOD(android::widget::TextView,77,"setWidth","(I)V") J2CPP_DEFINE_METHOD(android::widget::TextView,78,"setLineSpacing","(FF)V") J2CPP_DEFINE_METHOD(android::widget::TextView,79,"append","(Ljava/lang/CharSequence;)V") J2CPP_DEFINE_METHOD(android::widget::TextView,80,"append","(Ljava/lang/CharSequence;II)V") J2CPP_DEFINE_METHOD(android::widget::TextView,81,"drawableStateChanged","()V") J2CPP_DEFINE_METHOD(android::widget::TextView,82,"onSaveInstanceState","()Landroid/os/Parcelable;") J2CPP_DEFINE_METHOD(android::widget::TextView,83,"onRestoreInstanceState","(Landroid/os/Parcelable;)V") J2CPP_DEFINE_METHOD(android::widget::TextView,84,"setFreezesText","(Z)V") J2CPP_DEFINE_METHOD(android::widget::TextView,85,"getFreezesText","()Z") J2CPP_DEFINE_METHOD(android::widget::TextView,86,"setEditableFactory","(Landroid/text/Editable$Factory;)V") J2CPP_DEFINE_METHOD(android::widget::TextView,87,"setSpannableFactory","(Landroid/text/Spannable$Factory;)V") J2CPP_DEFINE_METHOD(android::widget::TextView,88,"setText","(Ljava/lang/CharSequence;)V") J2CPP_DEFINE_METHOD(android::widget::TextView,89,"setTextKeepState","(Ljava/lang/CharSequence;)V") J2CPP_DEFINE_METHOD(android::widget::TextView,90,"setText","(Ljava/lang/CharSequence;Landroid/widget/TextView$BufferType;)V") J2CPP_DEFINE_METHOD(android::widget::TextView,91,"setText","([CII)V") J2CPP_DEFINE_METHOD(android::widget::TextView,92,"setTextKeepState","(Ljava/lang/CharSequence;Landroid/widget/TextView$BufferType;)V") J2CPP_DEFINE_METHOD(android::widget::TextView,93,"setText","(I)V") J2CPP_DEFINE_METHOD(android::widget::TextView,94,"setText","(ILandroid/widget/TextView$BufferType;)V") J2CPP_DEFINE_METHOD(android::widget::TextView,95,"setHint","(Ljava/lang/CharSequence;)V") J2CPP_DEFINE_METHOD(android::widget::TextView,96,"setHint","(I)V") J2CPP_DEFINE_METHOD(android::widget::TextView,97,"getHint","()Ljava/lang/CharSequence;") J2CPP_DEFINE_METHOD(android::widget::TextView,98,"setInputType","(I)V") J2CPP_DEFINE_METHOD(android::widget::TextView,99,"setRawInputType","(I)V") J2CPP_DEFINE_METHOD(android::widget::TextView,100,"getInputType","()I") J2CPP_DEFINE_METHOD(android::widget::TextView,101,"setImeOptions","(I)V") J2CPP_DEFINE_METHOD(android::widget::TextView,102,"getImeOptions","()I") J2CPP_DEFINE_METHOD(android::widget::TextView,103,"setImeActionLabel","(Ljava/lang/CharSequence;I)V") J2CPP_DEFINE_METHOD(android::widget::TextView,104,"getImeActionLabel","()Ljava/lang/CharSequence;") J2CPP_DEFINE_METHOD(android::widget::TextView,105,"getImeActionId","()I") J2CPP_DEFINE_METHOD(android::widget::TextView,106,"setOnEditorActionListener","(Landroid/widget/TextView$OnEditorActionListener;)V") J2CPP_DEFINE_METHOD(android::widget::TextView,107,"onEditorAction","(I)V") J2CPP_DEFINE_METHOD(android::widget::TextView,108,"setPrivateImeOptions","(Ljava/lang/String;)V") J2CPP_DEFINE_METHOD(android::widget::TextView,109,"getPrivateImeOptions","()Ljava/lang/String;") J2CPP_DEFINE_METHOD(android::widget::TextView,110,"setInputExtras","(I)V") J2CPP_DEFINE_METHOD(android::widget::TextView,111,"getInputExtras","(Z)Landroid/os/Bundle;") J2CPP_DEFINE_METHOD(android::widget::TextView,112,"getError","()Ljava/lang/CharSequence;") J2CPP_DEFINE_METHOD(android::widget::TextView,113,"setError","(Ljava/lang/CharSequence;)V") J2CPP_DEFINE_METHOD(android::widget::TextView,114,"setError","(Ljava/lang/CharSequence;Landroid/graphics/drawable/Drawable;)V") J2CPP_DEFINE_METHOD(android::widget::TextView,115,"setFrame","(IIII)Z") J2CPP_DEFINE_METHOD(android::widget::TextView,116,"setFilters","([android.text.InputFilter)V") J2CPP_DEFINE_METHOD(android::widget::TextView,117,"getFilters","()[android.text.InputFilter") J2CPP_DEFINE_METHOD(android::widget::TextView,118,"onPreDraw","()Z") J2CPP_DEFINE_METHOD(android::widget::TextView,119,"onAttachedToWindow","()V") J2CPP_DEFINE_METHOD(android::widget::TextView,120,"onDetachedFromWindow","()V") J2CPP_DEFINE_METHOD(android::widget::TextView,121,"isPaddingOffsetRequired","()Z") J2CPP_DEFINE_METHOD(android::widget::TextView,122,"getLeftPaddingOffset","()I") J2CPP_DEFINE_METHOD(android::widget::TextView,123,"getTopPaddingOffset","()I") J2CPP_DEFINE_METHOD(android::widget::TextView,124,"getBottomPaddingOffset","()I") J2CPP_DEFINE_METHOD(android::widget::TextView,125,"getRightPaddingOffset","()I") J2CPP_DEFINE_METHOD(android::widget::TextView,126,"verifyDrawable","(Landroid/graphics/drawable/Drawable;)Z") J2CPP_DEFINE_METHOD(android::widget::TextView,127,"invalidateDrawable","(Landroid/graphics/drawable/Drawable;)V") J2CPP_DEFINE_METHOD(android::widget::TextView,128,"onDraw","(Landroid/graphics/Canvas;)V") J2CPP_DEFINE_METHOD(android::widget::TextView,129,"getFocusedRect","(Landroid/graphics/Rect;)V") J2CPP_DEFINE_METHOD(android::widget::TextView,130,"getLineCount","()I") J2CPP_DEFINE_METHOD(android::widget::TextView,131,"getLineBounds","(ILandroid/graphics/Rect;)I") J2CPP_DEFINE_METHOD(android::widget::TextView,132,"getBaseline","()I") J2CPP_DEFINE_METHOD(android::widget::TextView,133,"onKeyDown","(ILandroid/view/KeyEvent;)Z") J2CPP_DEFINE_METHOD(android::widget::TextView,134,"onKeyMultiple","(IILandroid/view/KeyEvent;)Z") J2CPP_DEFINE_METHOD(android::widget::TextView,135,"onKeyUp","(ILandroid/view/KeyEvent;)Z") J2CPP_DEFINE_METHOD(android::widget::TextView,136,"onCheckIsTextEditor","()Z") J2CPP_DEFINE_METHOD(android::widget::TextView,137,"onCreateInputConnection","(Landroid/view/inputmethod/EditorInfo;)Landroid/view/inputmethod/InputConnection;") J2CPP_DEFINE_METHOD(android::widget::TextView,138,"extractText","(Landroid/view/inputmethod/ExtractedTextRequest;Landroid/view/inputmethod/ExtractedText;)Z") J2CPP_DEFINE_METHOD(android::widget::TextView,139,"setExtractedText","(Landroid/view/inputmethod/ExtractedText;)V") J2CPP_DEFINE_METHOD(android::widget::TextView,140,"onCommitCompletion","(Landroid/view/inputmethod/CompletionInfo;)V") J2CPP_DEFINE_METHOD(android::widget::TextView,141,"beginBatchEdit","()V") J2CPP_DEFINE_METHOD(android::widget::TextView,142,"endBatchEdit","()V") J2CPP_DEFINE_METHOD(android::widget::TextView,143,"onBeginBatchEdit","()V") J2CPP_DEFINE_METHOD(android::widget::TextView,144,"onEndBatchEdit","()V") J2CPP_DEFINE_METHOD(android::widget::TextView,145,"onPrivateIMECommand","(Ljava/lang/String;Landroid/os/Bundle;)Z") J2CPP_DEFINE_METHOD(android::widget::TextView,146,"setIncludeFontPadding","(Z)V") J2CPP_DEFINE_METHOD(android::widget::TextView,147,"onMeasure","(II)V") J2CPP_DEFINE_METHOD(android::widget::TextView,148,"bringPointIntoView","(I)Z") J2CPP_DEFINE_METHOD(android::widget::TextView,149,"moveCursorToVisibleOffset","()Z") J2CPP_DEFINE_METHOD(android::widget::TextView,150,"computeScroll","()V") J2CPP_DEFINE_METHOD(android::widget::TextView,151,"debug","(I)V") J2CPP_DEFINE_METHOD(android::widget::TextView,152,"getSelectionStart","()I") J2CPP_DEFINE_METHOD(android::widget::TextView,153,"getSelectionEnd","()I") J2CPP_DEFINE_METHOD(android::widget::TextView,154,"hasSelection","()Z") J2CPP_DEFINE_METHOD(android::widget::TextView,155,"setSingleLine","()V") J2CPP_DEFINE_METHOD(android::widget::TextView,156,"setSingleLine","(Z)V") J2CPP_DEFINE_METHOD(android::widget::TextView,157,"setEllipsize","(Landroid/text/TextUtils$TruncateAt;)V") J2CPP_DEFINE_METHOD(android::widget::TextView,158,"setMarqueeRepeatLimit","(I)V") J2CPP_DEFINE_METHOD(android::widget::TextView,159,"getEllipsize","()Landroid/text/TextUtils$TruncateAt;") J2CPP_DEFINE_METHOD(android::widget::TextView,160,"setSelectAllOnFocus","(Z)V") J2CPP_DEFINE_METHOD(android::widget::TextView,161,"setCursorVisible","(Z)V") J2CPP_DEFINE_METHOD(android::widget::TextView,162,"onTextChanged","(Ljava/lang/CharSequence;III)V") J2CPP_DEFINE_METHOD(android::widget::TextView,163,"onSelectionChanged","(II)V") J2CPP_DEFINE_METHOD(android::widget::TextView,164,"addTextChangedListener","(Landroid/text/TextWatcher;)V") J2CPP_DEFINE_METHOD(android::widget::TextView,165,"removeTextChangedListener","(Landroid/text/TextWatcher;)V") J2CPP_DEFINE_METHOD(android::widget::TextView,166,"onStartTemporaryDetach","()V") J2CPP_DEFINE_METHOD(android::widget::TextView,167,"onFinishTemporaryDetach","()V") J2CPP_DEFINE_METHOD(android::widget::TextView,168,"onFocusChanged","(ZILandroid/graphics/Rect;)V") J2CPP_DEFINE_METHOD(android::widget::TextView,169,"onWindowFocusChanged","(Z)V") J2CPP_DEFINE_METHOD(android::widget::TextView,170,"clearComposingText","()V") J2CPP_DEFINE_METHOD(android::widget::TextView,171,"setSelected","(Z)V") J2CPP_DEFINE_METHOD(android::widget::TextView,172,"onTouchEvent","(Landroid/view/MotionEvent;)Z") J2CPP_DEFINE_METHOD(android::widget::TextView,173,"didTouchFocusSelect","()Z") J2CPP_DEFINE_METHOD(android::widget::TextView,174,"cancelLongPress","()V") J2CPP_DEFINE_METHOD(android::widget::TextView,175,"onTrackballEvent","(Landroid/view/MotionEvent;)Z") J2CPP_DEFINE_METHOD(android::widget::TextView,176,"setScroller","(Landroid/widget/Scroller;)V") J2CPP_DEFINE_METHOD(android::widget::TextView,177,"getLeftFadingEdgeStrength","()F") J2CPP_DEFINE_METHOD(android::widget::TextView,178,"getRightFadingEdgeStrength","()F") J2CPP_DEFINE_METHOD(android::widget::TextView,179,"computeHorizontalScrollRange","()I") J2CPP_DEFINE_METHOD(android::widget::TextView,180,"computeVerticalScrollRange","()I") J2CPP_DEFINE_METHOD(android::widget::TextView,181,"computeVerticalScrollExtent","()I") J2CPP_DEFINE_METHOD(android::widget::TextView,182,"getTextColors","(Landroid/content/Context;Landroid/content/res/TypedArray;)Landroid/content/res/ColorStateList;") J2CPP_DEFINE_METHOD(android::widget::TextView,183,"getTextColor","(Landroid/content/Context;Landroid/content/res/TypedArray;I)I") J2CPP_DEFINE_METHOD(android::widget::TextView,184,"onKeyShortcut","(ILandroid/view/KeyEvent;)Z") J2CPP_DEFINE_METHOD(android::widget::TextView,185,"dispatchPopulateAccessibilityEvent","(Landroid/view/accessibility/AccessibilityEvent;)Z") J2CPP_DEFINE_METHOD(android::widget::TextView,186,"onCreateContextMenu","(Landroid/view/ContextMenu;)V") J2CPP_DEFINE_METHOD(android::widget::TextView,187,"isInputMethodTarget","()Z") J2CPP_DEFINE_METHOD(android::widget::TextView,188,"onTextContextMenuItem","(I)Z") J2CPP_DEFINE_METHOD(android::widget::TextView,189,"performLongClick","()Z") } //namespace j2cpp #endif //J2CPP_ANDROID_WIDGET_TEXTVIEW_HPP_IMPL #endif //J2CPP_INCLUDE_IMPLEMENTATION
[ "baldzar@gmail.com" ]
baldzar@gmail.com
294a6671522770177472d98652d12e65efebe1b7
34c433437cfebd83603247991be9c260946bad26
/Client/WarFare/MagicSkillMng.cpp
35a130598a48c41112987ff9c9e378cb0ed47d7e
[]
no_license
mjsamet/Knight-Online-Java-Server
94f5865d7669188ee61ba7bca6844527a2ad46a4
9b78f239ccfa25111d4637101e35ef1df4baf8c4
refs/heads/master
2021-01-22T05:20:26.516670
2017-02-11T13:31:10
2017-02-11T13:31:10
81,599,078
0
0
null
2017-02-10T19:25:24
2017-02-10T19:25:24
null
UHC
C++
false
false
96,793
cpp
// MagicSkillMng.cpp: implementation of the CMagicSkillMng class. // ////////////////////////////////////////////////////////////////////// //#include "stdafx.h" //#include "Resource.h" #include "GameProcMain.h" #include "APISocket.h" #include "PacketDef.h" #include "PlayerMySelf.h" #include "PlayerOtherMgr.h" #include "N3FXMgr.h" #include "UIStateBar.h" #include "UIInventory.h" #include "UIVarious.h" #include "UIPartyOrForce.h" #include "MagicSkillMng.h" #include "N3SndObj.h" #include "N3SndObjStream.h" #include "N3ShapeExtra.h" //#include "StdAfxBase.h" #ifdef _DEBUG #undef THIS_FILE static char THIS_FILE[]=__FILE__; #endif ////////////////////////////////////////////////////////////////////// // Construction/Destruction ////////////////////////////////////////////////////////////////////// CMagicSkillMng::CMagicSkillMng() { m_pGameProcMain = NULL; m_dwRegionMagicState = 0; m_dwCastingStateNonAction = 0; m_fCastTimeNonAction = 0.0f; m_dwNonActionMagicID = 0; m_iNonActionMagicTarget = -1; m_fRecastTimeNonAction = 0.0f; m_iMyRegionTargetFXID = 0; Init(); } CMagicSkillMng::CMagicSkillMng(CGameProcMain* pGameProcMain) { m_pGameProcMain = pGameProcMain; m_dwRegionMagicState = 0; m_dwCastingStateNonAction = 0; m_fCastTimeNonAction = 0.0f; m_dwNonActionMagicID = 0; m_iNonActionMagicTarget = -1; m_fRecastTimeNonAction = 0.0f; m_iMyRegionTargetFXID = 0; Init(); } void CMagicSkillMng::Init() { m_pTbl_Type_1 = new CN3TableBase<struct __TABLE_UPC_SKILL_TYPE_1>; m_pTbl_Type_1->LoadFromFile("Data\\Skill_Magic_1.tbl"); m_pTbl_Type_2 = new CN3TableBase<struct __TABLE_UPC_SKILL_TYPE_2>; m_pTbl_Type_2->LoadFromFile("Data\\Skill_Magic_2.tbl"); m_pTbl_Type_3 = new CN3TableBase<struct __TABLE_UPC_SKILL_TYPE_3>; m_pTbl_Type_3->LoadFromFile("Data\\Skill_Magic_3.tbl"); m_pTbl_Type_4 = new CN3TableBase<struct __TABLE_UPC_SKILL_TYPE_4>; m_pTbl_Type_4->LoadFromFile("Data\\Skill_Magic_4.tbl"); // m_pTbl_Type_5 = new CN3TableBase<struct __TABLE_UPC_SKILL_TYPE_5>; // m_pTbl_Type_5->LoadFromFile("Data\\Skill_Magic_5.tbl"); // m_pTbl_Type_6 = new CN3TableBase<struct __TABLE_UPC_SKILL_TYPE_6>; // m_pTbl_Type_6->LoadFromFile("Data\\Skill_Magic_6.tbl"); // m_pTbl_Type_7 = new CN3TableBase<struct __TABLE_UPC_SKILL_TYPE_7>; // m_pTbl_Type_7->LoadFromFile("Data\\Skill_Magic_7.tbl"); // m_pTbl_Type_8 = new CN3TableBase<struct __TABLE_UPC_SKILL_TYPE_8>; // m_pTbl_Type_8->LoadFromFile("Data\\Skill_Magic_8.tbl"); // m_pTbl_Type_9 = new CN3TableBase<struct __TABLE_UPC_SKILL_TYPE_9>; // m_pTbl_Type_9->LoadFromFile("Data\\Skill_Magic_9.tbl"); // m_pTbl_Type_10 = new CN3TableBase<struct __TABLE_UPC_SKILL_TYPE_10>; // m_pTbl_Type_10->LoadFromFile("Data\\Skill_Magic_10.tbl"); m_MySelf.clear(); m_iTarget = -1; m_vTargetPos.Set(0,0,0); m_iComboSkillID = 0; m_iCurrStep = 0; m_iNumStep = 0; m_fRecastTime = 0.0f; m_fDelay = 0.0f; m_dwRegionMagicState = 0; InitType4(); __InfoPlayerBase* pInfoBase = &(s_pPlayer->m_InfoBase); /* CLASS_KA_WARRIOR = 101, CLASS_KA_ROGUE, CLASS_KA_WIZARD, CLASS_KA_PRIEST, // ์—ฌ๊ธฐ๊นŒ์ง€ ๊ธฐ๋ณธ ์ง์—… CLASS_KA_BERSERKER = 105, CLASS_KA_GUARDIAN, CLASS_KA_HUNTER = 107, CLASS_KA_PENETRATOR, CLASS_KA_SORCERER = 109, CLASS_KA_NECROMANCER, CLASS_KA_SHAMAN = 111, CLASS_KA_DARKPRIEST, CLASS_EL_WARRIOR = 201, CLASS_EL_ROGUE, CLASS_EL_WIZARD, CLASS_EL_PRIEST, // ์—ฌ๊ธฐ๊นŒ์ง€ ๊ธฐ๋ณธ ์ง์—… CLASS_EL_BLADE = 205, CLASS_EL_PROTECTOR, CLASS_EL_RANGER = 207, CLASS_EL_ASSASIN, CLASS_EL_MAGE = 209, CLASS_EL_ENCHANTER, CLASS_EL_CLERIC = 211, CLASS_EL_DRUID, */ m_iMyRegionTargetFXID = 0; /* if( pInfoBase->eClass==CLASS_KA_ROGUE || pInfoBase->eClass==CLASS_KA_HUNTER || pInfoBase->eClass==CLASS_KA_PENETRATOR ) { m_iMyRegionTargetFXID = FXID_REGION_TARGET_KA_ROGUE; } else if( pInfoBase->eClass==CLASS_KA_WIZARD || pInfoBase->eClass==CLASS_KA_SORCERER || pInfoBase->eClass==CLASS_KA_NECROMANCER ) { m_iMyRegionTargetFXID = FXID_REGION_TARGET_KA_WIZARD; } else if( pInfoBase->eClass==CLASS_KA_PRIEST || pInfoBase->eClass==CLASS_KA_SHAMAN || pInfoBase->eClass==CLASS_KA_DARKPRIEST ) { m_iMyRegionTargetFXID = FXID_REGION_TARGET_KA_PRIEST; } else if( pInfoBase->eClass==CLASS_EL_ROGUE || pInfoBase->eClass==CLASS_EL_RANGER || pInfoBase->eClass==CLASS_EL_ASSASIN ) { m_iMyRegionTargetFXID = FXID_REGION_TARGET_EL_ROGUE; } else if( pInfoBase->eClass==CLASS_EL_WIZARD || pInfoBase->eClass==CLASS_EL_MAGE || pInfoBase->eClass==CLASS_EL_ENCHANTER ) { m_iMyRegionTargetFXID = FXID_REGION_TARGET_EL_WIZARD; } else if( pInfoBase->eClass==CLASS_EL_PRIEST || pInfoBase->eClass==CLASS_EL_CLERIC || pInfoBase->eClass==CLASS_EL_DRUID ) { m_iMyRegionTargetFXID = FXID_REGION_TARGET_EL_PRIEST; } */ } CMagicSkillMng::~CMagicSkillMng() { m_pGameProcMain = NULL; if(m_pTbl_Type_1) { delete m_pTbl_Type_1; m_pTbl_Type_1 = NULL; } if(m_pTbl_Type_2) { delete m_pTbl_Type_2; m_pTbl_Type_2 = NULL; } if(m_pTbl_Type_3) { delete m_pTbl_Type_3; m_pTbl_Type_3 = NULL; } if(m_pTbl_Type_4) { delete m_pTbl_Type_4; m_pTbl_Type_4 = NULL; } // if(m_pTbl_Type_5) { delete m_pTbl_Type_5; m_pTbl_Type_5 = NULL; } // if(m_pTbl_Type_6) { delete m_pTbl_Type_6; m_pTbl_Type_6 = NULL; } // if(m_pTbl_Type_7) { delete m_pTbl_Type_7; m_pTbl_Type_7 = NULL; } // if(m_pTbl_Type_8) { delete m_pTbl_Type_8; m_pTbl_Type_8 = NULL; } // if(m_pTbl_Type_9) { delete m_pTbl_Type_9; m_pTbl_Type_9 = NULL; } // if(m_pTbl_Type_10) { delete m_pTbl_Type_10; m_pTbl_Type_10 = NULL; } } // // // bool CMagicSkillMng::IsCasting() { if(s_pPlayer->State() == PSA_SPELLMAGIC || m_iCurrStep != 0 || s_pPlayer->m_dwMagicID != 0xffffffff || s_pPlayer->m_bStun == true || m_fDelay > 0.0f ) return true; return false; } bool CMagicSkillMng::CheckValidSkillMagic(__TABLE_UPC_SKILL* pSkill) { __InfoPlayerBase* pInfoBase = &(s_pPlayer->m_InfoBase); __InfoPlayerMySelf* pInfoExt = &(s_pPlayer->m_InfoExt); e_Class_Represent Class = CGameProcedure::GetRepresentClass(pInfoBase->eClass); if(pInfoExt->iMSP < pSkill->iExhaustMSP) { if(Class==CLASS_REPRESENT_PRIEST || Class==CLASS_REPRESENT_WIZARD) { return false; } } if(pSkill->dw1stTableType==1 || pSkill->dw1stTableType==2) { if(Class==CLASS_REPRESENT_WARRIOR || Class==CLASS_REPRESENT_ROGUE) { int ExhaustSP = pInfoExt->iAttack * pSkill->iExhaustMSP / 100; if(pInfoExt->iMSP < ExhaustSP) { return false; } } } else if(pInfoExt->iMSP < pSkill->iExhaustMSP) { if(Class==CLASS_REPRESENT_WARRIOR || Class==CLASS_REPRESENT_ROGUE) { return false; } } int LeftItem = s_pPlayer->ItemClass_LeftHand(); int RightItem = s_pPlayer->ItemClass_RightHand(); if(pSkill->iNeedSkill==1055 || pSkill->iNeedSkill==2055) { if((LeftItem != ITEM_CLASS_SWORD && LeftItem != ITEM_CLASS_AXE && LeftItem != ITEM_CLASS_MACE ) || (RightItem != ITEM_CLASS_SWORD && RightItem != ITEM_CLASS_AXE && RightItem != ITEM_CLASS_MACE) ) { return false; } } else if(pSkill->iNeedSkill==1056 || pSkill->iNeedSkill==2056) { if( RightItem != ITEM_CLASS_SWORD_2H && RightItem != ITEM_CLASS_AXE_2H && RightItem != ITEM_CLASS_MACE_2H && RightItem != ITEM_CLASS_POLEARM ) { return false; } } if(pInfoBase->iHP < pSkill->iExhaustHP) return false; int LeftItem1 = LeftItem/10; int RightItem1 = RightItem/10; // NOTE(srmeier): I'm not sure about this but "9" for the e_ItemClass is jewels and stuff... // - none of these type of items would be in the hands so... ? // - if dwNeedItem == 0 then some other check is needed so maybe dwNeedItem == 9 indicates that no item is needed if (pSkill->dwNeedItem != 9) { if (pSkill->dwNeedItem != 0 && pSkill->dwNeedItem != LeftItem1 && pSkill->dwNeedItem != RightItem1) { return false; } if (pSkill->dwNeedItem == 0 && (pSkill->dw1stTableType == 1 || pSkill->dw2ndTableType == 1)) { if (LeftItem != 11 && (LeftItem1 < 1 || LeftItem1>5) && RightItem1 != 11 && (RightItem1 < 1 || RightItem1>5)) { return false; } } } if(pSkill->dwExhaustItem>0) { int NumItem = m_pGameProcMain->m_pUIInventory->GetCountInInvByID(pSkill->dwExhaustItem); if(pSkill->dw1stTableType==2 || pSkill->dw2ndTableType==2) { __TABLE_UPC_SKILL_TYPE_2* pType2 = m_pTbl_Type_2->Find(pSkill->dwID); if (!pType2) return false; if(NumItem < pType2->iNumArrow) { return false; } } else { if(NumItem < 1) return false; } __TABLE_ITEM_BASIC* pItem = NULL; // ์•„์ดํ…œ ํ…Œ์ด๋ธ” ๊ตฌ์กฐ์ฒด ํฌ์ธํ„ฐ.. __TABLE_ITEM_EXT* pItemExt = NULL; // ์•„์ดํ…œ ํ…Œ์ด๋ธ” ๊ตฌ์กฐ์ฒด ํฌ์ธํ„ฐ.. pItem = s_pTbl_Items_Basic->Find(pSkill->dwExhaustItem/1000*1000); // ์—ด ๋ฐ์ดํ„ฐ ์–ป๊ธฐ.. if(pItem && pItem->byExtIndex >= 0 && pItem->byExtIndex < MAX_ITEM_EXTENSION) pItemExt = s_pTbl_Items_Exts[pItem->byExtIndex]->Find(pSkill->dwExhaustItem%1000); // ์—ด ๋ฐ์ดํ„ฐ ์–ป๊ธฐ.. if ( NULL == pItem || NULL == pItemExt ) { __ASSERT(0, "NULL Item"); CLogWriter::Write("MyInfo - Inv - Unknown Item %d, IDNumber", pSkill->dwExhaustItem); return false; // ์•„์ดํ…œ์ด ์—†์œผ๋ฉด.. } if (pItem->byAttachPoint == ITEM_LIMITED_EXHAUST) { // ์ข…์กฑ ์ฒดํฌ.. switch ( pItem->byNeedRace ) { case 0: break; default: if ( pItem->byNeedRace != CGameBase::s_pPlayer->m_InfoBase.eRace ) return false; break; } // ์ง์—… ์ฒดํฌ.. if (pItem->byNeedClass != 0) { switch (pItem->byNeedClass) { case CLASS_KINDOF_WARRIOR: switch (CGameBase::s_pPlayer->m_InfoBase.eClass) { case CLASS_KA_WARRIOR: case CLASS_KA_BERSERKER: case CLASS_KA_GUARDIAN: case CLASS_EL_WARRIOR: case CLASS_EL_BLADE: case CLASS_EL_PROTECTOR: break; default: return false; } break; case CLASS_KINDOF_ROGUE: switch (CGameBase::s_pPlayer->m_InfoBase.eClass) { case CLASS_KA_ROGUE: case CLASS_KA_HUNTER: case CLASS_KA_PENETRATOR: case CLASS_EL_ROGUE: case CLASS_EL_RANGER: case CLASS_EL_ASSASIN: break; default: return false; } break; case CLASS_KINDOF_WIZARD: switch (CGameBase::s_pPlayer->m_InfoBase.eClass) { case CLASS_KA_WIZARD: case CLASS_KA_SORCERER: case CLASS_KA_NECROMANCER: case CLASS_EL_WIZARD: case CLASS_EL_MAGE: case CLASS_EL_ENCHANTER: break; default: return false; } break; case CLASS_KINDOF_PRIEST: switch (CGameBase::s_pPlayer->m_InfoBase.eClass) { case CLASS_KA_PRIEST: case CLASS_KA_SHAMAN: case CLASS_KA_DARKPRIEST: case CLASS_EL_PRIEST: case CLASS_EL_CLERIC: case CLASS_EL_DRUID: break; default: return false; } break; case CLASS_KINDOF_ATTACK_WARRIOR: switch (CGameBase::s_pPlayer->m_InfoBase.eClass) { case CLASS_KA_BERSERKER: case CLASS_EL_BLADE: break; default: return false; } break; case CLASS_KINDOF_DEFEND_WARRIOR: switch (CGameBase::s_pPlayer->m_InfoBase.eClass) { case CLASS_KA_GUARDIAN: case CLASS_EL_PROTECTOR: break; default: return false; } break; case CLASS_KINDOF_ARCHER: switch (CGameBase::s_pPlayer->m_InfoBase.eClass) { case CLASS_KA_HUNTER: case CLASS_EL_RANGER: break; default: return false; } break; case CLASS_KINDOF_ASSASSIN: switch (CGameBase::s_pPlayer->m_InfoBase.eClass) { case CLASS_KA_PENETRATOR: case CLASS_EL_ASSASIN: break; default: return false; } break; case CLASS_KINDOF_ATTACK_WIZARD: switch (CGameBase::s_pPlayer->m_InfoBase.eClass) { case CLASS_KA_SORCERER: case CLASS_EL_MAGE: break; default: return false; } break; case CLASS_KINDOF_PET_WIZARD: switch (CGameBase::s_pPlayer->m_InfoBase.eClass) { case CLASS_KA_NECROMANCER: case CLASS_EL_ENCHANTER: break; default: return false; } break; case CLASS_KINDOF_HEAL_PRIEST: switch (CGameBase::s_pPlayer->m_InfoBase.eClass) { case CLASS_KA_SHAMAN: case CLASS_EL_CLERIC: break; default: return false; } break; case CLASS_KINDOF_CURSE_PRIEST: switch (CGameBase::s_pPlayer->m_InfoBase.eClass) { case CLASS_KA_DARKPRIEST: case CLASS_EL_DRUID: break; default: return false; } break; default: if (CGameBase::s_pPlayer->m_InfoBase.eClass != pItem->byNeedClass) return false; break; } } // ์š”๊ตฌ๋ ˆ๋ฒจ ์ฒดํฌ.. if ( CGameBase::s_pPlayer->m_InfoBase.iLevel < pItem->cNeedLevel+pItemExt->siNeedLevel ) return false; // ์š”๊ตฌ ๋Šฅ๋ ฅ์น˜ ์ฒดํฌ.. int iNeedValue; iNeedValue = pItem->byNeedStrength; if (iNeedValue != 0) iNeedValue += pItemExt->siNeedStrength; if( iNeedValue > 0 && CGameBase::s_pPlayer->m_InfoExt.iStrength < iNeedValue ) return false; iNeedValue = pItem->byNeedStamina; if (iNeedValue != 0) iNeedValue += pItemExt->siNeedStamina; if( iNeedValue > 0 && CGameBase::s_pPlayer->m_InfoExt.iStamina < iNeedValue ) return false; iNeedValue = pItem->byNeedDexterity; if (iNeedValue != 0) iNeedValue += pItemExt->siNeedDexterity; if( iNeedValue > 0 && CGameBase::s_pPlayer->m_InfoExt.iDexterity < iNeedValue ) return false; iNeedValue = pItem->byNeedInteli; if (iNeedValue != 0) iNeedValue += pItemExt->siNeedInteli; if( iNeedValue > 0 && CGameBase::s_pPlayer->m_InfoExt.iIntelligence < iNeedValue ) return false; iNeedValue = pItem->byNeedMagicAttack; if (iNeedValue != 0) iNeedValue += pItemExt->siNeedMagicAttack; if( iNeedValue > 0 && CGameBase::s_pPlayer->m_InfoExt.iAttack < iNeedValue ) return false; } } return true; } #include "N3WorldManager.h" bool CMagicSkillMng::CheckValidCondition(int iTargetID, __TABLE_UPC_SKILL* pSkill) { __InfoPlayerBase* pInfoBase = &(s_pPlayer->m_InfoBase); __InfoPlayerMySelf* pInfoExt = &(s_pPlayer->m_InfoExt); //์ง์—…์— ๋งž๋Š” ์Šคํ‚ฌ์ธ์ง€ ์•Œ์•„๋ด๋ผ... e_Class_Represent Class = CGameProcedure::GetRepresentClass(pInfoBase->eClass); if(pSkill->iNeedSkill!=0) { if(Class == CLASS_REPRESENT_WARRIOR) { int NeedSkill = pSkill->iNeedSkill / 10; if(NeedSkill != CLASS_KA_WARRIOR && NeedSkill != CLASS_KA_BERSERKER && NeedSkill != CLASS_KA_GUARDIAN && NeedSkill != CLASS_EL_WARRIOR && NeedSkill != CLASS_EL_BLADE && NeedSkill != CLASS_EL_PROTECTOR) { std::string buff = "IDS_SKILL_FAIL_DIFFURENTCLASS"; //::_LoadStringFromResource(IDS_SKILL_FAIL_DIFFURENTCLASS, buff); m_pGameProcMain->MsgOutput(buff, 0xffffff00); return false; } } else if(Class == CLASS_REPRESENT_ROGUE) { int NeedSkill = pSkill->iNeedSkill / 10; if(NeedSkill != CLASS_KA_ROGUE && NeedSkill != CLASS_KA_HUNTER && NeedSkill != CLASS_KA_PENETRATOR && NeedSkill != CLASS_EL_ROGUE && NeedSkill != CLASS_EL_RANGER && NeedSkill != CLASS_EL_ASSASIN) { std::string buff = "IDS_SKILL_FAIL_DIFFURENTCLASS"; //::_LoadStringFromResource(IDS_SKILL_FAIL_DIFFURENTCLASS, buff); m_pGameProcMain->MsgOutput(buff, 0xffffff00); return false; } } else if(Class == CLASS_REPRESENT_WIZARD) { int NeedSkill = pSkill->iNeedSkill / 10; if(NeedSkill != CLASS_KA_WIZARD && NeedSkill != CLASS_KA_SORCERER && NeedSkill != CLASS_KA_NECROMANCER && NeedSkill != CLASS_EL_WIZARD && NeedSkill != CLASS_EL_MAGE && NeedSkill != CLASS_EL_ENCHANTER) { std::string buff = "IDS_SKILL_FAIL_DIFFURENTCLASS"; //::_LoadStringFromResource(IDS_SKILL_FAIL_DIFFURENTCLASS, buff); m_pGameProcMain->MsgOutput(buff, 0xffffff00); return false; } } else if(Class == CLASS_REPRESENT_PRIEST) { int NeedSkill = pSkill->iNeedSkill / 10; if(NeedSkill != CLASS_KA_PRIEST && NeedSkill != CLASS_KA_DARKPRIEST && NeedSkill != CLASS_KA_SHAMAN && NeedSkill != CLASS_EL_PRIEST && NeedSkill != CLASS_EL_CLERIC && NeedSkill != CLASS_EL_DRUID) { std::string buff = "IDS_SKILL_FAIL_DIFFURENTCLASS"; //::_LoadStringFromResource(IDS_SKILL_FAIL_DIFFURENTCLASS, buff); m_pGameProcMain->MsgOutput(buff, 0xffffff00); return false; } } } if(pInfoExt->iMSP < pSkill->iExhaustMSP) { if(Class==CLASS_REPRESENT_PRIEST || Class==CLASS_REPRESENT_WIZARD) { std::string buff = "IDS_MSG_CASTING_FAIL_LACK_MP"; //::_LoadStringFromResource(IDS_MSG_CASTING_FAIL_LACK_MP, buff); m_pGameProcMain->MsgOutput(buff, 0xffffff00); return false; } } if(pSkill->dw1stTableType==1 || pSkill->dw1stTableType==2) { if(Class==CLASS_REPRESENT_WARRIOR || Class==CLASS_REPRESENT_ROGUE) { int ExhaustSP = pInfoExt->iAttack * pSkill->iExhaustMSP / 100; if(pInfoExt->iMSP < ExhaustSP) { std::string buff = "IDS_SKILL_FAIL_LACK_SP"; //::_LoadStringFromResource(IDS_SKILL_FAIL_LACK_SP, buff); m_pGameProcMain->MsgOutput(buff, 0xffffff00); return false; } } } else if(pInfoExt->iMSP < pSkill->iExhaustMSP) { if(Class==CLASS_REPRESENT_WARRIOR || Class==CLASS_REPRESENT_ROGUE) { std::string buff = "IDS_SKILL_FAIL_LACK_SP"; //::_LoadStringFromResource(IDS_SKILL_FAIL_LACK_SP, buff); m_pGameProcMain->MsgOutput(buff, 0xffffff00); return false; } } int LeftItem = s_pPlayer->ItemClass_LeftHand(); int RightItem = s_pPlayer->ItemClass_RightHand(); if(pSkill->iNeedSkill==1055 || pSkill->iNeedSkill==2055) { if((LeftItem != ITEM_CLASS_SWORD && LeftItem != ITEM_CLASS_AXE && LeftItem != ITEM_CLASS_MACE ) || (RightItem != ITEM_CLASS_SWORD && RightItem != ITEM_CLASS_AXE && RightItem != ITEM_CLASS_MACE) ) { std::string buff = "IDS_SKILL_FAIL_INVALID_ITEM"; //::_LoadStringFromResource(IDS_SKILL_FAIL_INVALID_ITEM, buff); m_pGameProcMain->MsgOutput(buff, 0xffffff00); return false; } } else if(pSkill->iNeedSkill==1056 || pSkill->iNeedSkill==2056) { if( RightItem != ITEM_CLASS_SWORD_2H && RightItem != ITEM_CLASS_AXE_2H && RightItem != ITEM_CLASS_MACE_2H && RightItem != ITEM_CLASS_POLEARM ) { std::string buff = "IDS_SKILL_FAIL_INVALID_ITEM"; //::_LoadStringFromResource(IDS_SKILL_FAIL_INVALID_ITEM, buff); m_pGameProcMain->MsgOutput(buff, 0xffffff00); return false; } } if(pInfoBase->iHP < pSkill->iExhaustHP) { std::string buff = "IDS_SKILL_FAIL_LACK_HP"; //::_LoadStringFromResource(IDS_SKILL_FAIL_LACK_HP, buff); m_pGameProcMain->MsgOutput(buff, 0xffffff00); return false; } int LeftItem1 = LeftItem/10; int RightItem1 = RightItem/10; // NOTE(srmeier): I'm not sure about this but "9" for the e_ItemClass is jewels and stuff... // - none of these type of items would be in the hands so... ? // - if dwNeedItem == 0 then some other check is needed so maybe dwNeedItem == 9 indicates that no item is needed if (pSkill->dwNeedItem != 9) { if (pSkill->dwNeedItem != 0 && pSkill->dwNeedItem != LeftItem1 && pSkill->dwNeedItem != RightItem1) { std::string buff = "IDS_SKILL_FAIL_INVALID_ITEM"; //::_LoadStringFromResource(IDS_SKILL_FAIL_INVALID_ITEM, buff); m_pGameProcMain->MsgOutput(buff, 0xffffff00); return false; } if (pSkill->dwNeedItem == 0 && (pSkill->dw1stTableType == 1 || pSkill->dw2ndTableType == 1)) { if (LeftItem != 11 && (LeftItem1<1 || LeftItem1>5) && RightItem1 != 11 && (RightItem1<1 || RightItem1>5)) { std::string buff = "IDS_SKILL_FAIL_INVALID_ITEM"; //::_LoadStringFromResource(IDS_SKILL_FAIL_INVALID_ITEM, buff); m_pGameProcMain->MsgOutput(buff, 0xffffff00); return false; } } } if(pSkill->dwExhaustItem>0) { int NumItem = m_pGameProcMain->m_pUIInventory->GetCountInInvByID(pSkill->dwExhaustItem); if(pSkill->dw1stTableType==2 || pSkill->dw2ndTableType==2) { __TABLE_UPC_SKILL_TYPE_2* pType2 = m_pTbl_Type_2->Find(pSkill->dwID); if(NumItem < pType2->iNumArrow) { std::string szMsg = "IDS_SKILL_FAIL_LACK_ITEM"; //::_LoadStringFromResource(IDS_SKILL_FAIL_LACK_ITEM, szMsg); m_pGameProcMain->MsgOutput(szMsg, 0xffffff00); return false; } } else { if(NumItem < 1) { std::string szMsg = "IDS_SKILL_FAIL_LACK_ITEM"; //::_LoadStringFromResource(IDS_SKILL_FAIL_LACK_ITEM, szMsg); m_pGameProcMain->MsgOutput(szMsg, 0xffffff00); return false; } } __TABLE_ITEM_BASIC* pItem = NULL; // ์•„์ดํ…œ ํ…Œ์ด๋ธ” ๊ตฌ์กฐ์ฒด ํฌ์ธํ„ฐ.. __TABLE_ITEM_EXT* pItemExt = NULL; // ์•„์ดํ…œ ํ…Œ์ด๋ธ” ๊ตฌ์กฐ์ฒด ํฌ์ธํ„ฐ.. pItem = s_pTbl_Items_Basic->Find(pSkill->dwExhaustItem/1000*1000); // ์—ด ๋ฐ์ดํ„ฐ ์–ป๊ธฐ.. if(pItem && pItem->byExtIndex >= 0 && pItem->byExtIndex < MAX_ITEM_EXTENSION) pItemExt = s_pTbl_Items_Exts[pItem->byExtIndex]->Find(pSkill->dwExhaustItem%1000); // ์—ด ๋ฐ์ดํ„ฐ ์–ป๊ธฐ.. if ( NULL == pItem || NULL == pItemExt ) { __ASSERT(0, "NULL Item"); CLogWriter::Write("MyInfo - Inv - Unknown Item %d, IDNumber", pSkill->dwExhaustItem); return false; // ์•„์ดํ…œ์ด ์—†์œผ๋ฉด.. } if (pItem->byAttachPoint == ITEM_LIMITED_EXHAUST) { // ์ข…์กฑ ์ฒดํฌ.. switch ( pItem->byNeedRace ) { case 0: break; default: if ( pItem->byNeedRace != CGameBase::s_pPlayer->m_InfoBase.eRace ) return false; break; } // ์ง์—… ์ฒดํฌ.. if (pItem->byNeedClass != 0) { switch (pItem->byNeedClass) { case CLASS_KINDOF_WARRIOR: switch (CGameBase::s_pPlayer->m_InfoBase.eClass) { case CLASS_KA_WARRIOR: case CLASS_KA_BERSERKER: case CLASS_KA_GUARDIAN: case CLASS_EL_WARRIOR: case CLASS_EL_BLADE: case CLASS_EL_PROTECTOR: break; default: return false; } break; case CLASS_KINDOF_ROGUE: switch (CGameBase::s_pPlayer->m_InfoBase.eClass) { case CLASS_KA_ROGUE: case CLASS_KA_HUNTER: case CLASS_KA_PENETRATOR: case CLASS_EL_ROGUE: case CLASS_EL_RANGER: case CLASS_EL_ASSASIN: break; default: return false; } break; case CLASS_KINDOF_WIZARD: switch (CGameBase::s_pPlayer->m_InfoBase.eClass) { case CLASS_KA_WIZARD: case CLASS_KA_SORCERER: case CLASS_KA_NECROMANCER: case CLASS_EL_WIZARD: case CLASS_EL_MAGE: case CLASS_EL_ENCHANTER: break; default: return false; } break; case CLASS_KINDOF_PRIEST: switch (CGameBase::s_pPlayer->m_InfoBase.eClass) { case CLASS_KA_PRIEST: case CLASS_KA_SHAMAN: case CLASS_KA_DARKPRIEST: case CLASS_EL_PRIEST: case CLASS_EL_CLERIC: case CLASS_EL_DRUID: break; default: return false; } break; case CLASS_KINDOF_ATTACK_WARRIOR: switch (CGameBase::s_pPlayer->m_InfoBase.eClass) { case CLASS_KA_BERSERKER: case CLASS_EL_BLADE: break; default: return false; } break; case CLASS_KINDOF_DEFEND_WARRIOR: switch (CGameBase::s_pPlayer->m_InfoBase.eClass) { case CLASS_KA_GUARDIAN: case CLASS_EL_PROTECTOR: break; default: return false; } break; case CLASS_KINDOF_ARCHER: switch (CGameBase::s_pPlayer->m_InfoBase.eClass) { case CLASS_KA_HUNTER: case CLASS_EL_RANGER: break; default: return false; } break; case CLASS_KINDOF_ASSASSIN: switch (CGameBase::s_pPlayer->m_InfoBase.eClass) { case CLASS_KA_PENETRATOR: case CLASS_EL_ASSASIN: break; default: return false; } break; case CLASS_KINDOF_ATTACK_WIZARD: switch (CGameBase::s_pPlayer->m_InfoBase.eClass) { case CLASS_KA_SORCERER: case CLASS_EL_MAGE: break; default: return false; } break; case CLASS_KINDOF_PET_WIZARD: switch (CGameBase::s_pPlayer->m_InfoBase.eClass) { case CLASS_KA_NECROMANCER: case CLASS_EL_ENCHANTER: break; default: return false; } break; case CLASS_KINDOF_HEAL_PRIEST: switch (CGameBase::s_pPlayer->m_InfoBase.eClass) { case CLASS_KA_SHAMAN: case CLASS_EL_CLERIC: break; default: return false; } break; case CLASS_KINDOF_CURSE_PRIEST: switch (CGameBase::s_pPlayer->m_InfoBase.eClass) { case CLASS_KA_DARKPRIEST: case CLASS_EL_DRUID: break; default: return false; } break; default: if (CGameBase::s_pPlayer->m_InfoBase.eClass != pItem->byNeedClass) return false; break; } } // ์š”๊ตฌ๋ ˆ๋ฒจ ์ฒดํฌ.. if ( CGameBase::s_pPlayer->m_InfoBase.iLevel < pItem->cNeedLevel+pItemExt->siNeedLevel ) return false; // ์š”๊ตฌ ๋Šฅ๋ ฅ์น˜ ์ฒดํฌ.. int iNeedValue; iNeedValue = pItem->byNeedStrength; if (iNeedValue != 0) iNeedValue += pItemExt->siNeedStrength; if( iNeedValue > 0 && CGameBase::s_pPlayer->m_InfoExt.iStrength < iNeedValue ) return false; iNeedValue = pItem->byNeedStamina; if (iNeedValue != 0) iNeedValue += pItemExt->siNeedStamina; if( iNeedValue > 0 && CGameBase::s_pPlayer->m_InfoExt.iStamina < iNeedValue ) return false; iNeedValue = pItem->byNeedDexterity; if (iNeedValue != 0) iNeedValue += pItemExt->siNeedDexterity; if( iNeedValue > 0 && CGameBase::s_pPlayer->m_InfoExt.iDexterity < iNeedValue ) return false; iNeedValue = pItem->byNeedInteli; if (iNeedValue != 0) iNeedValue += pItemExt->siNeedInteli; if( iNeedValue > 0 && CGameBase::s_pPlayer->m_InfoExt.iIntelligence < iNeedValue ) return false; iNeedValue = pItem->byNeedMagicAttack; if (iNeedValue != 0) iNeedValue += pItemExt->siNeedMagicAttack; if( iNeedValue > 0 && CGameBase::s_pPlayer->m_InfoExt.iAttack < iNeedValue ) return false; } } if((pSkill->dw1stTableType==3 || pSkill->dw2ndTableType==3) && pSkill->iTarget==SKILLMAGIC_TARGET_SELF) { __TABLE_UPC_SKILL_TYPE_3* pType3 = m_pTbl_Type_3->Find(pSkill->dwID); if(!pType3) return false; int key = 0; if(pType3->iStartDamage>0 || (pType3->iStartDamage==0 && pType3->iDuraDamage>0) ) key = DDTYPE_TYPE3_DUR_OUR; else key = DDTYPE_TYPE3_DUR_ENEMY; key += pType3->iDDType; if(key==DDTYPE_TYPE3_DUR_OUR) { std::multimap<int, DWORD>::iterator it, itend; itend = m_ListBuffTypeID.end(); it = m_ListBuffTypeID.find(key); if(it!=itend) return false; } } if( (pSkill->dw1stTableType==4 || pSkill->dw2ndTableType==4) && ( (pSkill->iTarget==SKILLMAGIC_TARGET_SELF) || (iTargetID==s_pPlayer->IDNumber()) ) ) { __TABLE_UPC_SKILL_TYPE_4* pType4 = m_pTbl_Type_4->Find(pSkill->dwID); if(!pType4) return false; switch(pType4->iBuffType) { case BUFFTYPE_MAXHP: if(m_iMaxHP != 0) return false; break; case BUFFTYPE_AC: if(m_iAC != 0) return false; break; case BUFFTYPE_ATTACK: if(m_iAttack != 0) return false; break; case BUFFTYPE_ATTACKSPEED: if(m_fAttackSpeed != 1.0f) return false; break; case BUFFTYPE_SPEED: if(m_fSpeed != 1.0f) return false; break; case BUFFTYPE_ABILITY: if( m_iStr != 0 || m_iSta != 0 || m_iDex != 0 || m_iInt != 0 || m_iMAP != 0) return false; break; case BUFFTYPE_RESIST: if( m_iFireR != 0 || m_iColdR != 0 || m_iLightningR != 0 || m_iMagicR != 0 || m_iDeseaseR != 0 || m_iPoisonR != 0) return false; break; } } ///////////////////////////////////////////////////////////////////////////////////////////////////// // ์Šคํ‚ฌ ์‚ฌ์šฉ์‹œ ์˜ค๋ธŒ์ ํŠธ ์ฒดํฌ CPlayerBase* pTarget = m_pGameProcMain->CharacterGetByID(iTargetID, false); if(pTarget == NULL) return true; __Vector3 vNormal, vMyPos, vGap, vDir, vSkillPos; vMyPos = s_pPlayer->Position(); vMyPos.y += s_pPlayer->Height() / 2; vDir = (pTarget->Position() + pTarget->Height()/2) - vMyPos; vGap = vDir; vDir.Normalize(); bool bColShape = ACT_WORLD->CheckCollisionWithShape(vMyPos, vDir, vGap.Magnitude(), &vSkillPos, &vNormal); switch(pSkill->iTarget) { case SKILLMAGIC_TARGET_SELF: { break; } case SKILLMAGIC_TARGET_FRIEND_WITHME: { // if(pTarget->m_InfoBase.eNation==pInfoBase->eNation) // { // if(bColShape) // { // std::string szMsg; ::_LoadStringFromResource(IDS_SKILL_FAIL_OBJECT_BLOCK, szMsg); // m_pGameProcMain->MsgOutput(szMsg, 0xffffff00); // return false; // } // } break; } case SKILLMAGIC_TARGET_FRIEND_ONLY: { // if(pTarget->m_InfoBase.eNation==pInfoBase->eNation) // { // if(bColShape) // { // std::string szMsg; ::_LoadStringFromResource(IDS_SKILL_FAIL_OBJECT_BLOCK, szMsg); // m_pGameProcMain->MsgOutput(szMsg, 0xffffff00); // return false; // } // } break; } case SKILLMAGIC_TARGET_PARTY: { // __InfoPartyOrForce* pInfo = (__InfoPartyOrForce*)m_pGameProcMain->m_pUIPartyOrForce->MemberInfoGetSelected(); // if(!pInfo && iTargetID==-1) // return true; // int iMemberIndex = -1; // if( m_pGameProcMain->m_pUIPartyOrForce->MemberInfoGetByID(pTarget->IDNumber(), iMemberIndex) ) // { // if(bColShape) // { // std::string szMsg; ::_LoadStringFromResource(IDS_SKILL_FAIL_OBJECT_BLOCK, szMsg); // m_pGameProcMain->MsgOutput(szMsg, 0xffffff00); // return false; // } // } break; } case SKILLMAGIC_TARGET_NPC_ONLY: { if(bColShape) { std::string szMsg = "IDS_SKILL_FAIL_OBJECT_BLOCK"; //::_LoadStringFromResource(IDS_SKILL_FAIL_OBJECT_BLOCK, szMsg); m_pGameProcMain->MsgOutput(szMsg, 0xffffff00); return false; } break; } case SKILLMAGIC_TARGET_PARTY_ALL: { break; } case SKILLMAGIC_TARGET_ENEMY_ONLY: { if(pTarget->m_InfoBase.eNation!=pInfoBase->eNation) { if(bColShape) { std::string szMsg = "IDS_SKILL_FAIL_OBJECT_BLOCK"; //::_LoadStringFromResource(IDS_SKILL_FAIL_OBJECT_BLOCK, szMsg); m_pGameProcMain->MsgOutput(szMsg, 0xffffff00); return false; } } break; } case SKILLMAGIC_TARGET_ALL: { if(bColShape) { std::string szMsg = "IDS_SKILL_FAIL_OBJECT_BLOCK"; //::_LoadStringFromResource(IDS_SKILL_FAIL_OBJECT_BLOCK, szMsg); m_pGameProcMain->MsgOutput(szMsg, 0xffffff00); return false; } break; } case SKILLMAGIC_TARGET_AREA: case SKILLMAGIC_TARGET_AREA_ENEMY: case SKILLMAGIC_TARGET_AREA_FRIEND: case SKILLMAGIC_TARGET_AREA_ALL: { break; } case SKILLMAGIC_TARGET_DEAD_FRIEND_ONLY: { if(pTarget->m_InfoBase.eNation==pInfoBase->eNation && pTarget->IsDead()) { if(bColShape) { std::string szMsg = "IDS_SKILL_FAIL_OBJECT_BLOCK"; //::_LoadStringFromResource(IDS_SKILL_FAIL_OBJECT_BLOCK, szMsg); m_pGameProcMain->MsgOutput(szMsg, 0xffffff00); return false; } } break; } default: break; } // ์Šคํ‚ฌ ์‚ฌ์šฉ์‹œ ์˜ค๋ธŒ์ ํŠธ ์ฒดํฌ ///////////////////////////////////////////////////////////////////////////////////////////////////// return true; } // /// // bool CMagicSkillMng::MsgSend_MagicProcess(int iTargetID, __TABLE_UPC_SKILL* pSkill) { //if(m_fRecastTime > 0.0f) return;//recast time์ด ์•„์ง ์•ˆ๋˜์—ˆ๋„ค..^^ if(s_pPlayer->IsDead()) return false; // ์ฃฝ์–ด ์žˆ๋„ค.. ^^ /////////////////////////////////////////////////////////////////////////////////// // ์Šคํ‚ฌ ์“ธ ์กฐ๊ฑด์ด ๋˜๋Š”์ง€ ๊ฒ€์‚ฌ... if(pSkill->iSelfAnimID1 >= 0) { if(IsCasting() || m_fRecastTime > 0.0f) return false; } else //์บ์ŠคํŒ…๋™์ž‘์—†๋Š” ๋งˆ๋ฒ•.. { if( m_dwCastingStateNonAction != 0 || m_fRecastTimeNonAction > 0.0f ) return false; m_dwCastingStateNonAction = 0; m_fCastTimeNonAction = 0.0f; m_dwNonActionMagicID = 0; m_iNonActionMagicTarget = -1; } if(!pSkill) return false; if(!CheckValidCondition(iTargetID, pSkill)) return false; //TRACE("๋งˆ๋ฒ•์„ฑ๊ณต state : %d time %.2f\n", s_pPlayer->State(), CN3Base::TimeGet()); // ์Šคํ‚ฌ ์“ธ ์กฐ๊ฑด์ด ๋˜๋Š”์ง€ ๊ฒ€์‚ฌ ๋... /////////////////////////////////////////////////////////////////////////////////// __InfoPlayerBase* pInfoBase = &(s_pPlayer->m_InfoBase); __InfoPlayerMySelf* pInfoExt = &(s_pPlayer->m_InfoExt); CPlayerBase* pTarget = m_pGameProcMain->CharacterGetByID(iTargetID, false); //์ง€์—ญ๋งˆ๋ฒ•ํƒ€๊ฒŸ ์ดˆ๊ธฐํ™”.. CGameProcedure::s_pFX->Stop(s_pPlayer->IDNumber(), s_pPlayer->IDNumber(), m_iMyRegionTargetFXID, m_iMyRegionTargetFXID, true); m_dwRegionMagicState = 0; if(m_iMyRegionTargetFXID == 0) { if(*pInfoBase->eNation == NationEnum::KARUS) { m_iMyRegionTargetFXID = FXID_REGION_TARGET_KA_WIZARD; } else if(*pInfoBase->eNation == NationEnum::ELMORAD) { m_iMyRegionTargetFXID = FXID_REGION_TARGET_EL_WIZARD; } } // // if(!pTarget) return false;//์ž„์‹œ ์ผ๋‹จ ์ฃฝ์–ด ์žˆ๋‹ค๋ฉด ๋ฆฌํ„ด์„ ํ•œ๋‹ค. float fDist = s_pPlayer->Radius() + 1.0f; // ๊ณต๊ฒฉ ๊ฑฐ๋ฆฌ์ œํ•œ.. if(pTarget) fDist += pTarget->Radius(); switch(pSkill->iTarget) { case SKILLMAGIC_TARGET_SELF: { StartSkillMagicAtTargetPacket(pSkill, (short)s_pPlayer->IDNumber()); return true; } case SKILLMAGIC_TARGET_FRIEND_WITHME: { if(!pTarget) { StartSkillMagicAtTargetPacket(pSkill, (short)s_pPlayer->IDNumber()); return true; } else if(pTarget->m_InfoBase.eNation==pInfoBase->eNation) { if( !CheckValidDistance(pSkill, pTarget->Position(), fDist) ) return false; StartSkillMagicAtTargetPacket(pSkill, (short)pTarget->IDNumber()); return true; } break; } case SKILLMAGIC_TARGET_FRIEND_ONLY: { if(pTarget && pTarget->m_InfoBase.eNation==pInfoBase->eNation) { if( !CheckValidDistance(pSkill, pTarget->Position(), fDist) ) return false; StartSkillMagicAtTargetPacket(pSkill, (short)pTarget->IDNumber()); return true; } break; } case SKILLMAGIC_TARGET_PARTY: { __InfoPartyOrForce* pInfo = (__InfoPartyOrForce*)m_pGameProcMain->m_pUIPartyOrForce->MemberInfoGetSelected(); if(!pInfo && iTargetID==-1) pTarget = (CPlayerBase*)s_pPlayer; int iMemberIndex = -1; if(pTarget && ( m_pGameProcMain->m_pUIPartyOrForce->MemberInfoGetByID(pTarget->IDNumber(), iMemberIndex) || pTarget->IDNumber() == s_pPlayer->IDNumber() ) ) { if( !CheckValidDistance(pSkill, pTarget->Position(), fDist) ) return false; StartSkillMagicAtTargetPacket(pSkill, (short)pTarget->IDNumber()); return true; } else if(pInfo) //๊ฑฐ๋ฆฌ์— ์ƒ๊ด€์—†์ด ํŒŒํ‹ฐ์›๋“ค์—๊ฒŒ ์“ธ๋•Œ... { StartSkillMagicAtTargetPacket(pSkill, (short)pInfo->iID); return true; } break; } case SKILLMAGIC_TARGET_NPC_ONLY: { if(pTarget && s_pOPMgr->NPCGetByID(pTarget->IDNumber(), true)) { if( !CheckValidDistance(pSkill, pTarget->Position(), fDist) ) return false; StartSkillMagicAtTargetPacket(pSkill, (short)pTarget->IDNumber()); return true; } break; } case SKILLMAGIC_TARGET_PARTY_ALL: { StartSkillMagicAtPosPacket(pSkill, s_pPlayer->Position()); return true; } case SKILLMAGIC_TARGET_ENEMY_ONLY: { if(pTarget && pTarget->m_InfoBase.eNation!=pInfoBase->eNation) { if( !CheckValidDistance(pSkill, pTarget->Position(), fDist) ) return false; StartSkillMagicAtTargetPacket(pSkill, (short)pTarget->IDNumber()); //CLogWriter::Write("send msg : %.4f", CN3Base::TimeGet()); //TRACE("send msg : %.4f\n", CN3Base::TimeGet()); return true; } break; } case SKILLMAGIC_TARGET_ALL: { if(pTarget) { if( !CheckValidDistance(pSkill, pTarget->Position(), fDist) ) return false; StartSkillMagicAtTargetPacket(pSkill, (short)pTarget->IDNumber()); return true; } break; } case SKILLMAGIC_TARGET_AREA: { StartSkillMagicAtPosPacket(pSkill, s_pPlayer->Position()); return true; } case SKILLMAGIC_TARGET_AREA_ENEMY: case SKILLMAGIC_TARGET_AREA_FRIEND: case SKILLMAGIC_TARGET_AREA_ALL: { m_dwRegionMagicState = 1; m_dwRegionSkill = (*pSkill); // CGameProcedure::s_pFX->TriggerBundle(s_pPlayer->IDNumber(), 0, m_iMyRegionTargetFXID, m_pGameProcMain->m_vMouseLBClickedPos, m_iMyRegionTargetFXID); //์ „๊ฒฉ๋ฌด๊ธฐ... CGameProcedure::s_pFX->TriggerBundle(s_pPlayer->IDNumber(), 0, m_iMyRegionTargetFXID, m_pGameProcMain->m_vMouseSkillPos, m_iMyRegionTargetFXID); //์ „๊ฒฉ๋ฌด๊ธฐ... return true; } case SKILLMAGIC_TARGET_DEAD_FRIEND_ONLY: { if(pTarget && pTarget->m_InfoBase.eNation==pInfoBase->eNation && pTarget->IsDead()) { if( !CheckValidDistance(pSkill, pTarget->Position(), fDist) ) return false; StartSkillMagicAtTargetPacket(pSkill, (short)pTarget->IDNumber()); return true; } break; } default: break; } return false; } bool CMagicSkillMng::CheckValidDistance(__TABLE_UPC_SKILL* pSkill, __Vector3 vTargetPos, float fTargetRadius) { float fDist = (vTargetPos - s_pPlayer->Position()).Magnitude(); // ๊ณต๊ฒฉ ๊ฑฐ๋ฆฌ๋ฅผ ๊ตฌํ•˜๊ณ .. if(pSkill->iValidDist > 0 && fDist <= (pSkill->iValidDist+fTargetRadius + 1.0f)) return true; //type1 if(pSkill->dw1stTableType==1 || pSkill->dw2ndTableType==1) { __IconItemSkill* pItemIcon = m_pGameProcMain->m_pUIInventory->m_pMySlot[ITEM_SLOT_HAND_RIGHT]; if(pItemIcon) { float fValidDist = (pItemIcon->pItemBasic->siAttackRange/10.0f) + fTargetRadius + 1.0f; if(fValidDist >= fDist) return true; } } //ํ™”์‚ด์ ๋•Œ.... if(pSkill->dw1stTableType==2 || pSkill->dw2ndTableType==2) { __IconItemSkill* pItemIcon1 = m_pGameProcMain->m_pUIInventory->m_pMySlot[ITEM_SLOT_HAND_LEFT]; __IconItemSkill* pItemIcon2 = m_pGameProcMain->m_pUIInventory->m_pMySlot[ITEM_SLOT_HAND_RIGHT]; float ItemDistance = 0.0f; if(pItemIcon2) ItemDistance = pItemIcon2->pItemBasic->siAttackRange/10.0f; if(pItemIcon1) ItemDistance = pItemIcon1->pItemBasic->siAttackRange/10.0f; float fValidDist = ItemDistance + fTargetRadius + 1.0f; __TABLE_UPC_SKILL_TYPE_2* pType2 = m_pTbl_Type_2->Find(pSkill->dwID); fValidDist *= (float)pType2->iAddDist; fValidDist /= 100.0f; if(fValidDist >= fDist) return true; } char szBuff[80]; std::string buff = "IDS_SKILL_FAIL_SOFAR (%s)"; //::_LoadStringFromResource(IDS_SKILL_FAIL_SOFAR, buff); sprintf(szBuff, buff.c_str(), pSkill->szName.c_str()); m_pGameProcMain->MsgOutput(szBuff, 0xffffff00); return false; } void CMagicSkillMng::StartSkillMagicAtPosPacket(__TABLE_UPC_SKILL* pSkill, __Vector3 vPos) { if(!pSkill) return; int SourceID = s_pPlayer->IDNumber(); if(pSkill->iSelfAnimID1<0) { m_dwCastingStateNonAction = 1; m_fCastTimeNonAction = (float)pSkill->iCastTime / 10.0f; m_dwNonActionMagicID = pSkill->dwID; m_iNonActionMagicTarget = -1; m_fRecastTimeNonAction = (float)(pSkill->iReCastTime) / 10.0f; int spart1 = pSkill->iSelfPart1 % 1000; int spart2 = pSkill->iSelfPart1 / 1000; spart2 = abs(spart2); CGameProcedure::s_pFX->TriggerBundle(SourceID, spart1, pSkill->iSelfFX1, SourceID, spart1, -1); if(spart2!=0) CGameProcedure::s_pFX->TriggerBundle(SourceID, spart2, pSkill->iSelfFX1, SourceID, spart2, -2); return; } m_pGameProcMain->CommandSitDown(false, false); // ํ˜น์‹œ๋ผ๋„ ์•‰์•„์žˆ์Œ ์ผ์œผ์ผœ ์„ธ์šด๋‹ค.. if(pSkill->iCastTime==0) { char szBuff[80]; std::string buff = "Using %s"; //::_LoadStringFromResource(IDS_SKILL_USE, buff); sprintf(szBuff, buff.c_str(), pSkill->szName.c_str()); m_pGameProcMain->MsgOutput(szBuff, 0xffffff00); BYTE byBuff[32]; int iOffset=0; CAPISocket::MP_AddByte(byBuff, iOffset, (BYTE)N3_MAGIC); CAPISocket::MP_AddByte(byBuff, iOffset, (BYTE)N3_SP_MAGIC_EFFECTING); CAPISocket::MP_AddDword(byBuff, iOffset, (int)pSkill->dwID); CAPISocket::MP_AddShort(byBuff, iOffset, (short)SourceID); CAPISocket::MP_AddShort(byBuff, iOffset, (short)-1); CAPISocket::MP_AddShort(byBuff, iOffset, (short)vPos.x); CAPISocket::MP_AddShort(byBuff, iOffset, (short)vPos.y); CAPISocket::MP_AddShort(byBuff, iOffset, (short)vPos.z); CAPISocket::MP_AddShort(byBuff, iOffset, 0); CAPISocket::MP_AddShort(byBuff, iOffset, 0); CAPISocket::MP_AddShort(byBuff, iOffset, 0); CGameProcedure::s_pSocket->Send(byBuff, iOffset); // ๋ณด๋‚ธ๋‹ค.. return; } /////////////////////////////////////////////////////////////////////////////// // s_pPlayer->m_dwMagicID = pSkill->dwID; s_pPlayer->m_fCastingTime = 0.0f; m_iTarget = -1; m_vTargetPos = vPos; int spart1 = pSkill->iSelfPart1 % 1000; int spart2 = pSkill->iSelfPart1 / 1000; spart2 = abs(spart2); CGameProcedure::s_pFX->TriggerBundle(SourceID, spart1, pSkill->iSelfFX1, SourceID, spart1, -1); if(spart2!=0) CGameProcedure::s_pFX->TriggerBundle(SourceID, spart2, pSkill->iSelfFX1, SourceID, spart2, -2); s_pPlayer->m_iIDTarget = -1; s_pPlayer->m_iSkillStep = 1; //s_pPlayer->ActionMove(PSM_STOP); m_pGameProcMain->CommandMove(MD_STOP, true); s_pPlayer->m_iMagicAni = pSkill->iSelfAnimID1; if(pSkill->dw1stTableType==2 || pSkill->dw2ndTableType==2) { int LeftItem = s_pPlayer->ItemClass_LeftHand(); int RightItem = s_pPlayer->ItemClass_RightHand(); if(RightItem == ITEM_CLASS_BOW_CROSS || LeftItem==ITEM_CLASS_BOW_CROSS) { s_pPlayer->m_iMagicAni = ANI_SHOOT_QUARREL_A; } } s_pPlayer->m_fCastFreezeTime = 10.0f; s_pPlayer->Action(PSA_SPELLMAGIC, false, NULL); //////////////////////////////////////////////////////////////////////////////////////// BYTE byBuff[32]; int iOffset=0; CAPISocket::MP_AddByte(byBuff, iOffset, (BYTE)N3_MAGIC); CAPISocket::MP_AddByte(byBuff, iOffset, (BYTE)N3_SP_MAGIC_CASTING); CAPISocket::MP_AddDword(byBuff, iOffset, (int)pSkill->dwID); CAPISocket::MP_AddShort(byBuff, iOffset, (short)SourceID); CAPISocket::MP_AddShort(byBuff, iOffset, (short)-1); CAPISocket::MP_AddShort(byBuff, iOffset, (short)vPos.x); CAPISocket::MP_AddShort(byBuff, iOffset, (short)vPos.y); CAPISocket::MP_AddShort(byBuff, iOffset, (short)vPos.z); CAPISocket::MP_AddShort(byBuff, iOffset, 0); CAPISocket::MP_AddShort(byBuff, iOffset, 0); CAPISocket::MP_AddShort(byBuff, iOffset, 0); CGameProcedure::s_pSocket->Send(byBuff, iOffset); // ๋ณด๋‚ธ๋‹ค.. if(pSkill->iTarget == SKILLMAGIC_TARGET_ENEMY_ONLY) m_pGameProcMain->PlayBGM_Battle(); } void CMagicSkillMng::StartSkillMagicAtTargetPacket(__TABLE_UPC_SKILL* pSkill, short TargetID) { if(!pSkill) return; int SourceID = s_pPlayer->IDNumber(); if(pSkill->iSelfAnimID1<0) { m_dwCastingStateNonAction = 1; m_fCastTimeNonAction = (float)(pSkill->iCastTime) / 10.0f; m_dwNonActionMagicID = pSkill->dwID; m_iNonActionMagicTarget = TargetID; m_fRecastTimeNonAction = (float)(pSkill->iReCastTime) / 10.0f; int spart1 = pSkill->iSelfPart1 % 1000; int spart2 = pSkill->iSelfPart1 / 1000; spart2 = abs(spart2); CGameProcedure::s_pFX->TriggerBundle(SourceID, spart1, pSkill->iSelfFX1, SourceID, spart1, -1); if(spart2!=0) CGameProcedure::s_pFX->TriggerBundle(SourceID, spart2, pSkill->iSelfFX1, SourceID, spart2, -2); return; } m_pGameProcMain->CommandSitDown(false, false); // ํ˜น์‹œ๋ผ๋„ ์•‰์•„์žˆ์Œ ์ผ์œผ์ผœ ์„ธ์šด๋‹ค.. if((pSkill->dw1stTableType==1 || pSkill->dw2ndTableType==1) && pSkill->iCastTime==0) { CPlayerBase* pTarget = m_pGameProcMain->CharacterGetByID(TargetID, true); if(!pTarget) return; //๋ฐ”๋กœ skill๋กœ ๋“ค์–ด๊ฐ€..^^ //casting packet์€ ๋ณด๋‚ด์ง€ ์•Š๊ณ ..๋ฐ”๋กœ effect packet์„ ๋ณด๋‚ธ๋‹ค.. //๊ธฐ์ˆ  ์• ๋‹ˆ๋ฉ”์ด์…˜ ๋“œ๊ฐ€...=^^= //ํšจ๊ณผ์žˆ์œผ๋ฉด ๊ฐ™์ด ๋“œ๊ฐ€.. __TABLE_UPC_SKILL_TYPE_1* pType1 = m_pTbl_Type_1->Find(pSkill->dwID); if(!pType1) return; // ๊ฒ€๊ธฐ ์ƒ‰์„ ๋ฐ”๊พธ์–ด ์ค€๋‹ค.. // D3DCOLOR crTrace = TraceColorGet(pSkill); // ์Šคํ‚ฌ์˜ ์ข…๋ฅ˜์— ๋”ฐ๋ผ ๊ฒ€๊ธฐ์˜ ์ƒ‰์„ ์ •ํ•œ๋‹ค.. // s_pPlayer->PlugTraceColorRemake(crTrace); // ๊ฒ€๊ธฐ ์ƒ‰ ์ ์šฉ.. s_pPlayer->RotateTo(pTarget); s_pPlayer->m_iSkillStep = 1; m_iCurrStep = 1; m_iNumStep = pType1->iNumCombo; m_fComboTime = 0.0f; m_iTarget = TargetID; m_iComboSkillID = pSkill->dwID; for(int i=0;i<pType1->iNumCombo;i++) { bool bImmediately = ((0 == i) ? true : false); // ์ฒ˜์Œ๊ฑด ๋ฐ”๋กœ ๋„ฃ๋Š”๋‹ค.. s_pPlayer->AnimationAdd((e_Ani)pType1->iAct[i], bImmediately); } char szBuff[80]; std::string buff = "Using %s"; //::_LoadStringFromResource(IDS_SKILL_USE, buff); sprintf(szBuff, buff.c_str(), pSkill->szName.c_str()); m_pGameProcMain->MsgOutput(szBuff, 0xffffff00); BYTE byBuff[32]; int iOffset=0; CAPISocket::MP_AddByte(byBuff, iOffset, (BYTE)N3_MAGIC); CAPISocket::MP_AddByte(byBuff, iOffset, (BYTE)N3_SP_MAGIC_EFFECTING); CAPISocket::MP_AddDword(byBuff, iOffset, (int)pSkill->dwID); CAPISocket::MP_AddShort(byBuff, iOffset, (short)SourceID); CAPISocket::MP_AddShort(byBuff, iOffset, (short)TargetID); CAPISocket::MP_AddShort(byBuff, iOffset, 1); CAPISocket::MP_AddShort(byBuff, iOffset, 1); CAPISocket::MP_AddShort(byBuff, iOffset, 0); CAPISocket::MP_AddShort(byBuff, iOffset, 0); CAPISocket::MP_AddShort(byBuff, iOffset, 0); CAPISocket::MP_AddShort(byBuff, iOffset, 0); CGameProcedure::s_pSocket->Send(byBuff, iOffset); // ๋ณด๋‚ธ๋‹ค.. return; } if(pSkill->iCastTime==0) { char szBuff[80]; std::string buff = "Using %s"; //::_LoadStringFromResource(IDS_SKILL_USE, buff); sprintf(szBuff, buff.c_str(), pSkill->szName.c_str()); m_pGameProcMain->MsgOutput(szBuff, 0xffffff00); BYTE byBuff[32]; int iOffset=0; CAPISocket::MP_AddByte(byBuff, iOffset, (BYTE)N3_MAGIC); CAPISocket::MP_AddByte(byBuff, iOffset, (BYTE)N3_SP_MAGIC_EFFECTING); CAPISocket::MP_AddDword(byBuff, iOffset, (int)pSkill->dwID); CAPISocket::MP_AddShort(byBuff, iOffset, (short)SourceID); CAPISocket::MP_AddShort(byBuff, iOffset, (short)TargetID); CAPISocket::MP_AddShort(byBuff, iOffset, 0); CAPISocket::MP_AddShort(byBuff, iOffset, 0); CAPISocket::MP_AddShort(byBuff, iOffset, 0); CAPISocket::MP_AddShort(byBuff, iOffset, 0); CAPISocket::MP_AddShort(byBuff, iOffset, 0); CAPISocket::MP_AddShort(byBuff, iOffset, 0); CGameProcedure::s_pSocket->Send(byBuff, iOffset); // ๋ณด๋‚ธ๋‹ค.. return; } ///////////////////////////////////////////////////////////// //๋‚ด๊ป€ ํŒจํ‚ท ๋ณด๋‚ด๋ฉด์„œ ๊ทธ๋ƒฅ ์ฒ˜๋ฆฌ.. s_pPlayer->m_dwMagicID = pSkill->dwID; s_pPlayer->m_fCastingTime = 0.0f; m_iTarget = TargetID; CPlayerBase* pTargetPlayer = m_pGameProcMain->CharacterGetByID(TargetID, false); int spart1 = pSkill->iSelfPart1 % 1000; int spart2 = pSkill->iSelfPart1 / 1000; spart2 = abs(spart2); CGameProcedure::s_pFX->TriggerBundle(SourceID, spart1, pSkill->iSelfFX1, SourceID, spart1, -1); if(spart2!=0) CGameProcedure::s_pFX->TriggerBundle(SourceID, spart2, pSkill->iSelfFX1, SourceID, spart2, -2); s_pPlayer->m_iIDTarget = TargetID; s_pPlayer->m_iSkillStep = 1; //s_pPlayer->ActionMove(PSM_STOP); m_pGameProcMain->CommandMove(MD_STOP, true); s_pPlayer->m_iMagicAni = pSkill->iSelfAnimID1; if(pSkill->dw1stTableType==2 || pSkill->dw2ndTableType==2) { int LeftItem = s_pPlayer->ItemClass_LeftHand(); int RightItem = s_pPlayer->ItemClass_RightHand(); if(RightItem == ITEM_CLASS_BOW_CROSS || LeftItem==ITEM_CLASS_BOW_CROSS) { s_pPlayer->m_iMagicAni = ANI_SHOOT_QUARREL_A; } } s_pPlayer->m_fCastFreezeTime = 10.0f; s_pPlayer->Action(PSA_SPELLMAGIC, false, pTargetPlayer); BYTE byBuff[32]; int iOffset=0; CAPISocket::MP_AddByte(byBuff, iOffset, (BYTE)N3_MAGIC); CAPISocket::MP_AddByte(byBuff, iOffset, (BYTE)N3_SP_MAGIC_CASTING); CAPISocket::MP_AddDword(byBuff, iOffset, (int)pSkill->dwID); CAPISocket::MP_AddShort(byBuff, iOffset, (short)SourceID); CAPISocket::MP_AddShort(byBuff, iOffset, (short)TargetID); CAPISocket::MP_AddShort(byBuff, iOffset, 0); CAPISocket::MP_AddShort(byBuff, iOffset, 0); CAPISocket::MP_AddShort(byBuff, iOffset, 0); CAPISocket::MP_AddShort(byBuff, iOffset, 0); CAPISocket::MP_AddShort(byBuff, iOffset, 0); CAPISocket::MP_AddShort(byBuff, iOffset, 0); CGameProcedure::s_pSocket->Send(byBuff, iOffset); // ๋ณด๋‚ธ๋‹ค.. if(pSkill->iTarget == SKILLMAGIC_TARGET_ENEMY_ONLY) m_pGameProcMain->PlayBGM_Battle(); // ///////////////////////////////////////////////////////////// } // // ๋‚ด๊ฐ€ ์บ์ŠคํŒ… ์ค‘์ด๋ฉด ์ผ€์ŠคํŒ… ์ฒ˜๋ฆฌํ•ด์•ผ๋˜๊ณ , flyingํšจ๊ณผ๋„ ์ฒ˜๋ฆฌ.. // void CMagicSkillMng::Tick() { m_fRecastTime -= CN3Base::s_fSecPerFrm; m_fRecastTimeNonAction -= CN3Base::s_fSecPerFrm; m_fDelay -= CN3Base::s_fSecPerFrm; if(m_fDelay < 0.0f) m_fDelay = 0.0f; if(m_fRecastTimeNonAction < -30.0f) m_fRecastTimeNonAction = 0.0f; if(m_fRecastTime < -30.0f) { s_pPlayer->m_iSkillStep = 0; m_iCurrStep = 0; m_fRecastTime = 0.0f; } if( m_iCurrStep!=0 ) { m_fComboTime += CN3Base::s_fSecPerFrm; ProcessCombo(); } ProcessCasting(); //TRACE("skillmagic tick state : %d time %.2f\n", s_pPlayer->State(), CN3Base::TimeGet()); if(m_dwRegionMagicState==2) { m_dwRegionMagicState = 0; CGameProcedure::s_pFX->Stop(s_pPlayer->IDNumber(), s_pPlayer->IDNumber(), m_iMyRegionTargetFXID, m_iMyRegionTargetFXID, true); // if( !CheckValidDistance(&m_dwRegionSkill, m_pGameProcMain->m_vMouseLBClickedPos, 0) ) return; // StartSkillMagicAtPosPacket(&m_dwRegionSkill, m_pGameProcMain->m_vMouseLBClickedPos); if( !CheckValidDistance(&m_dwRegionSkill, m_pGameProcMain->m_vMouseSkillPos, 0) ) return; StartSkillMagicAtPosPacket(&m_dwRegionSkill, m_pGameProcMain->m_vMouseSkillPos); } if( m_dwCastingStateNonAction == 1) { m_fCastTimeNonAction -= CN3Base::s_fSecPerFrm; if(m_fCastTimeNonAction<0.0f) { __TABLE_UPC_SKILL* pSkill = s_pTbl_Skill->Find(m_dwNonActionMagicID); if(!pSkill) { m_dwCastingStateNonAction = 0; m_fCastTimeNonAction = 0.0f; m_dwNonActionMagicID = 0; m_iNonActionMagicTarget = -1; return; } BYTE byBuff[32]; int iOffset=0; CAPISocket::MP_AddByte(byBuff, iOffset, (BYTE)N3_MAGIC); CAPISocket::MP_AddByte(byBuff, iOffset, (BYTE)N3_SP_MAGIC_EFFECTING); CAPISocket::MP_AddDword(byBuff, iOffset, (int)m_dwNonActionMagicID); CAPISocket::MP_AddShort(byBuff, iOffset, (short)s_pPlayer->IDNumber()); CAPISocket::MP_AddShort(byBuff, iOffset, (short)m_iNonActionMagicTarget); CAPISocket::MP_AddShort(byBuff, iOffset, 0); //targetpos... CAPISocket::MP_AddShort(byBuff, iOffset, 0); CAPISocket::MP_AddShort(byBuff, iOffset, 0); CAPISocket::MP_AddShort(byBuff, iOffset, 0); CAPISocket::MP_AddShort(byBuff, iOffset, 0); CAPISocket::MP_AddShort(byBuff, iOffset, 0); CGameProcedure::s_pSocket->Send(byBuff, iOffset); // ๋ณด๋‚ธ๋‹ค.. m_dwCastingStateNonAction = 0; m_fCastTimeNonAction = 0.0f; m_dwNonActionMagicID = 0; m_iNonActionMagicTarget = -1; m_fRecastTimeNonAction = (float)(pSkill->iReCastTime) / 10.0f; char szBuff[80]; std::string buff = "Using %s"; //::_LoadStringFromResource(IDS_SKILL_USE, buff); sprintf(szBuff, buff.c_str(), pSkill->szName.c_str()); m_pGameProcMain->MsgOutput(szBuff, 0xffffff00); } } // if(s_pPlayer->State()==PSA_SPELLMAGIC) } void CMagicSkillMng::SuccessCast(__TABLE_UPC_SKILL* pSkill, CPlayerBase* pTarget) { s_pPlayer->m_dwMagicID = 0xffffffff; s_pPlayer->m_fCastingTime = 0.0f; BYTE byBuff[32]; int iOffset=0; CAPISocket::MP_AddByte(byBuff, iOffset, (BYTE)N3_MAGIC); int idx = 0; if(pSkill->iFlyingFX==0) CAPISocket::MP_AddByte(byBuff, iOffset, (BYTE)N3_SP_MAGIC_EFFECTING); else { CAPISocket::MP_AddByte(byBuff, iOffset, (BYTE)N3_SP_MAGIC_FLYING); if(pSkill->dw1stTableType==2 || pSkill->dw2ndTableType==2)//ํ™”์‚ด์˜๊ธฐ.. { int iNumArrow = 1; __TABLE_UPC_SKILL_TYPE_2* pType2 = m_pTbl_Type_2->Find(pSkill->dwID); if(pType2) iNumArrow = pType2->iNumArrow; idx = AddIdx(pSkill->dwID, iNumArrow); } else idx = AddIdx(pSkill->dwID); } if(pSkill->dw1stTableType==1 || pSkill->dw2ndTableType==1) { //๋ฐ”๋กœ skill๋กœ ๋“ค์–ด๊ฐ€..^^ //casting packet์€ ๋ณด๋‚ด์ง€ ์•Š๊ณ ..๋ฐ”๋กœ effect packet์„ ๋ณด๋‚ธ๋‹ค.. //๊ธฐ์ˆ  ์• ๋‹ˆ๋ฉ”์ด์…˜ ๋“œ๊ฐ€...=^^= //ํšจ๊ณผ์žˆ์œผ๋ฉด ๊ฐ™์ด ๋“œ๊ฐ€.. __TABLE_UPC_SKILL_TYPE_1* pType1 = m_pTbl_Type_1->Find(pSkill->dwID); if(!pType1) return; s_pPlayer->RotateTo(pTarget); s_pPlayer->m_iSkillStep = 1; m_iCurrStep = 1; m_iNumStep = pType1->iNumCombo; for(int i=0;i<pType1->iNumCombo;i++) { bool bImmediately = ((0 == i) ? true : false); // ์ฒ˜์Œ๊ฑด ๋ฐ”๋กœ ๋„ฃ๋Š”๋‹ค.. s_pPlayer->AnimationAdd((const e_Ani)pType1->iAct[i], bImmediately); } char szBuff[80]; std::string buff = "Using %s"; //::_LoadStringFromResource(IDS_SKILL_USE, buff); sprintf(szBuff, buff.c_str(), pSkill->szName.c_str()); m_pGameProcMain->MsgOutput(szBuff, 0xffffff00); BYTE byBuff[32]; int iOffset=0; //CAPISocket::MP_AddByte(byBuff, iOffset, (BYTE)N3_MAGIC); //CAPISocket::MP_AddByte(byBuff, iOffset, (BYTE)N3_SP_MAGIC_EFFECTING); CAPISocket::MP_AddDword(byBuff, iOffset, (int)pSkill->dwID); CAPISocket::MP_AddShort(byBuff, iOffset, (short)s_pPlayer->IDNumber()); CAPISocket::MP_AddShort(byBuff, iOffset, (short)m_iTarget); CAPISocket::MP_AddShort(byBuff, iOffset, 1); CAPISocket::MP_AddShort(byBuff, iOffset, 1); CAPISocket::MP_AddShort(byBuff, iOffset, 0); CAPISocket::MP_AddShort(byBuff, iOffset, 0); CAPISocket::MP_AddShort(byBuff, iOffset, 0); CAPISocket::MP_AddShort(byBuff, iOffset, 0); CGameProcedure::s_pSocket->Send(byBuff, iOffset); // ๋ณด๋‚ธ๋‹ค.. } else { char szBuff[80]; std::string buff = "Using %s"; //::_LoadStringFromResource(IDS_SKILL_USE, buff); sprintf(szBuff, buff.c_str(), pSkill->szName.c_str()); m_pGameProcMain->MsgOutput(szBuff, 0xffffff00); m_fRecastTime = (float)pSkill->iReCastTime / 10.0f; m_fDelay = 0.3f; s_pPlayer->m_iSkillStep = 0; CAPISocket::MP_AddDword(byBuff, iOffset, (int)pSkill->dwID); CAPISocket::MP_AddShort(byBuff, iOffset, (short)s_pPlayer->IDNumber()); CAPISocket::MP_AddShort(byBuff, iOffset, (short)m_iTarget); CAPISocket::MP_AddShort(byBuff, iOffset, (short)m_vTargetPos.x); CAPISocket::MP_AddShort(byBuff, iOffset, (short)m_vTargetPos.y); CAPISocket::MP_AddShort(byBuff, iOffset, (short)m_vTargetPos.z); CAPISocket::MP_AddShort(byBuff, iOffset, (short)idx);//flying์ด๋ผ๋ฉด idx... CAPISocket::MP_AddShort(byBuff, iOffset, 0); CAPISocket::MP_AddShort(byBuff, iOffset, 0); CGameProcedure::s_pSocket->Send(byBuff, iOffset); // ๋ณด๋‚ธ๋‹ค.. if(pSkill->iFlyingFX!=0) { //////////////////////////////////////////////////// //flying์ฒ˜๋ฆฌํ•˜๊ธฐ.. int SourceID = s_pPlayer->IDNumber(); s_pPlayer->m_iMagicAni = pSkill->iSelfAnimID2; if(pSkill->dw1stTableType==2 || pSkill->dw2ndTableType==2) { m_fDelay = 0.1f; int LeftItem = s_pPlayer->ItemClass_LeftHand(); int RightItem = s_pPlayer->ItemClass_RightHand(); if(RightItem == ITEM_CLASS_BOW_CROSS || LeftItem==ITEM_CLASS_BOW_CROSS) { s_pPlayer->m_iMagicAni = ANI_SHOOT_QUARREL_B; } } s_pPlayer->m_fCastFreezeTime = 0.0f; s_pPlayer->Action(PSA_SPELLMAGIC, false); //s_pPlayer->Action(PSA_BASIC, false); s_pPlayer->m_iSkillStep = 0; CGameProcedure::s_pFX->Stop(SourceID, SourceID, pSkill->iSelfFX1, -1, true); CGameProcedure::s_pFX->Stop(SourceID, SourceID, pSkill->iSelfFX1, -2, true); if(pSkill->dw1stTableType==2 || pSkill->dw2ndTableType==2)//ํ™”์‚ด์˜๊ธฐ.. { short Data[6] = { m_vTargetPos.x, m_vTargetPos.y, m_vTargetPos.z, idx, 0, 0 }; FlyingType2(pSkill, SourceID, m_iTarget, Data); return; } CPlayerBase* pTarget = m_pGameProcMain->CharacterGetByID(m_iTarget, false); int spart1 = pSkill->iSelfPart1 % 1000; if(!pTarget) { __Vector3 vTargetPos = s_pPlayer->Position() + s_pPlayer->Direction(); CGameProcedure::s_pFX->TriggerBundle(SourceID, spart1, pSkill->iFlyingFX, m_vTargetPos, idx, FX_BUNDLE_MOVE_DIR_FIXEDTARGET); } else { CGameProcedure::s_pFX->TriggerBundle(SourceID, spart1, pSkill->iFlyingFX, m_iTarget, 0, idx, FX_BUNDLE_MOVE_DIR_FLEXABLETARGET); } // //////////////////////////////////////////////////// } else { if(pSkill->iSelfAnimID2>=0) { s_pPlayer->m_iMagicAni = pSkill->iSelfAnimID2; s_pPlayer->m_fCastFreezeTime = 0.0f; s_pPlayer->Action(PSA_SPELLMAGIC, false); //s_pPlayer->Action(PSA_BASIC, false); } s_pPlayer->m_iSkillStep = 0; } if(pSkill->iSelfFX2>0) CGameProcedure::s_pFX->TriggerBundle(s_pPlayer->IDNumber(), pSkill->iSelfPart2, pSkill->iSelfFX2, s_pPlayer->IDNumber(), pSkill->iSelfPart2, -3); } } void CMagicSkillMng::FailCast(__TABLE_UPC_SKILL* pSkill) { s_pPlayer->m_dwMagicID = 0xffffffff; s_pPlayer->m_fCastingTime = 0.0f; s_pPlayer->m_iSkillStep = 0; BYTE byBuff[32]; int iOffset=0; CAPISocket::MP_AddByte(byBuff, iOffset, (BYTE)N3_MAGIC); CAPISocket::MP_AddByte(byBuff, iOffset, (BYTE)N3_SP_MAGIC_FAIL); CAPISocket::MP_AddDword(byBuff, iOffset, (int)pSkill->dwID); CAPISocket::MP_AddShort(byBuff, iOffset, (short)s_pPlayer->IDNumber()); CAPISocket::MP_AddShort(byBuff, iOffset, (short)s_pPlayer->IDNumber()); CAPISocket::MP_AddShort(byBuff, iOffset, 0); CAPISocket::MP_AddShort(byBuff, iOffset, 0); CAPISocket::MP_AddShort(byBuff, iOffset, 0); CAPISocket::MP_AddShort(byBuff, iOffset, (short)SKILLMAGIC_FAIL_CASTING); CAPISocket::MP_AddShort(byBuff, iOffset, 0); CAPISocket::MP_AddShort(byBuff, iOffset, 0); CGameProcedure::s_pSocket->Send(byBuff, iOffset); // ๋ณด๋‚ธ๋‹ค.. } void CMagicSkillMng::ProcessCasting() { //์บ์ŠคํŒ… ์ฒ˜๋ฆฌ.. if(s_pPlayer->m_dwMagicID != 0xffffffff) { __TABLE_UPC_SKILL* pSkill = s_pTbl_Skill->Find(s_pPlayer->m_dwMagicID); CPlayerBase* pTarget = m_pGameProcMain->CharacterGetByID(m_iTarget, true); if(pTarget) s_pPlayer->RotateTo(pTarget); // ์ผ๋‹จ ํƒ€๊ฒŸ์„ ํ–ฅํ•ด ๋ฐฉํ–ฅ์„ ๋Œ๋ฆฐ๋‹ค.. //์บ์ŠคํŒ… ์„ฑ๊ณต์ ์œผ๋กœ ์™„๋ฃŒ... float fCastingTime = ((float)pSkill->iCastTime) / 10.0f * s_pPlayer->m_fAttackDelta; if(pSkill) { bool bSuccess = false; if( s_pPlayer->m_fCastingTime >= fCastingTime && s_pPlayer->State()==PSA_SPELLMAGIC && s_pPlayer->StateMove()==PSM_STOP) { SuccessCast(pSkill, pTarget); bSuccess = true; } //์บ์ŠคํŒ… ์‹คํŒจ... if(bSuccess == false && (s_pPlayer->State()!=PSA_SPELLMAGIC || s_pPlayer->StateMove()!=PSM_STOP)) { FailCast(pSkill); } } else s_pPlayer->m_dwMagicID = 0xffffffff; } } void CMagicSkillMng::ProcessCombo() { //๋งŒ์•ฝ ์ฝค๋ณด๋™์ž‘์ค‘ ํ•˜๋‚˜์˜ ๋™์ž‘์ด ๋๋‚ฌ๋‹ค๋ฉด...=^^= if(m_fComboTime > (s_pPlayer->m_fAttackDelta * 1.2f)) //s_pPlayer->IsAnimationChange()) { if(m_iCurrStep==m_iNumStep)//์ฝค๋ณด๊ณต๊ฒฉ ๋๋‚ฌ๋‹ค.. { __TABLE_UPC_SKILL* pSkill = s_pTbl_Skill->Find(m_iComboSkillID); if(pSkill) m_fRecastTime = (float)pSkill->iReCastTime / 10.0f; m_iCurrStep = -1; s_pPlayer->m_iSkillStep = -1; m_iNumStep = 0; } m_iCurrStep++; s_pPlayer->m_iSkillStep++; m_fComboTime = 0.0f; } } void CMagicSkillMng::MobCasting(__TABLE_UPC_SKILL* pSkill, int iSourceID) { if(!pSkill) return; //์บ์ŠคํŒ… ์„ฑ๊ณต์ ์œผ๋กœ ์™„๋ฃŒ... BYTE byBuff[32]; int iOffset=0; CAPISocket::MP_AddByte(byBuff, iOffset, (BYTE)N3_MAGIC); int idx = 0; if(pSkill->iFlyingFX==0) CAPISocket::MP_AddByte(byBuff, iOffset, (BYTE)N3_SP_MAGIC_EFFECTING); else { CAPISocket::MP_AddByte(byBuff, iOffset, (BYTE)N3_SP_MAGIC_FLYING); if(pSkill->dw1stTableType==2 || pSkill->dw2ndTableType==2)//ํ™”์‚ด์˜๊ธฐ.. { int iNumArrow = 1; __TABLE_UPC_SKILL_TYPE_2* pType2 = m_pTbl_Type_2->Find(pSkill->dwID); if(pType2) iNumArrow = pType2->iNumArrow; idx = AddIdx(pSkill->dwID, iNumArrow); } else idx = AddIdx(pSkill->dwID); } CAPISocket::MP_AddDword(byBuff, iOffset, (int)pSkill->dwID); CAPISocket::MP_AddShort(byBuff, iOffset, (short)iSourceID); CAPISocket::MP_AddShort(byBuff, iOffset, (short)s_pPlayer->IDNumber()); CAPISocket::MP_AddShort(byBuff, iOffset, (short)m_vTargetPos.x); CAPISocket::MP_AddShort(byBuff, iOffset, (short)m_vTargetPos.y); CAPISocket::MP_AddShort(byBuff, iOffset, (short)m_vTargetPos.z); CAPISocket::MP_AddShort(byBuff, iOffset, (short)idx);//flying์ด๋ผ๋ฉด idx... CAPISocket::MP_AddShort(byBuff, iOffset, 0); CAPISocket::MP_AddShort(byBuff, iOffset, 0); CGameProcedure::s_pSocket->Send(byBuff, iOffset); // ๋ณด๋‚ธ๋‹ค.. } void CMagicSkillMng::MsgRecv_Casting(DataPack* pDataPack, int& iOffset) { ////common.....////////////////////////////////////////////////////////////// // DWORD dwMagicID = CAPISocket::Parse_GetDword(pDataPack->m_pData, iOffset); int iSourceID = CAPISocket::Parse_GetShort(pDataPack->m_pData, iOffset); int iTargetID = CAPISocket::Parse_GetShort(pDataPack->m_pData, iOffset); short Data[6]; for(int i=0;i<6;i++) { Data[i] = CAPISocket::Parse_GetShort(pDataPack->m_pData, iOffset); } //if(iSourceID<0) return; if(iSourceID<0 || iSourceID==s_pPlayer->IDNumber()) return; // ////common.....////////////////////////////////////////////////////////////// __Vector3 vTargetPos; if(iTargetID == -1) vTargetPos.Set((float)Data[0], (float)Data[1], (float)Data[2]); CPlayerBase* pPlayer = m_pGameProcMain->CharacterGetByID(iSourceID, true); if(!pPlayer) return; __TABLE_UPC_SKILL* pSkill = s_pTbl_Skill->Find(dwMagicID); if(!pSkill) return; //๋‚ด๊ฐ€ ์“ธ๋•Œ... if(iSourceID==s_pPlayer->IDNumber()) { m_pGameProcMain->CommandSitDown(false, false); // ํ˜น์‹œ๋ผ๋„ ์•‰์•„์žˆ์Œ ์ผ์œผ์ผœ ์„ธ์šด๋‹ค.. s_pPlayer->m_dwMagicID = dwMagicID; s_pPlayer->m_fCastingTime = 0.0f; m_iTarget = iTargetID; m_vTargetPos = vTargetPos; } //๋ชฌ์Šคํ„ฐ๊ฐ€ ๋‚˜๋ฅผ ํ–ฅํ•ด ์ ๋•Œ... if( s_pOPMgr->NPCGetByID(iSourceID, true) ) { pPlayer->RotateTo((CPlayerBase*)s_pPlayer); // ์ด๋„˜์„ ๋ฐ”๋ผ๋ณธ๋‹ค. pPlayer->m_iIDTarget = iTargetID; pPlayer->ActionMove(PSM_STOP); pPlayer->m_iMagicAni = pSkill->iSelfAnimID1; pPlayer->Action(PSA_ATTACK, false, (CPlayerBase*)s_pPlayer); if(iTargetID==s_pPlayer->IDNumber()) MobCasting(pSkill, iSourceID); return; } CPlayerBase* pTargetPlayer = m_pGameProcMain->CharacterGetByID(iTargetID, false); int spart1 = pSkill->iSelfPart1 % 1000; int spart2 = pSkill->iSelfPart1 / 1000; spart2 = abs(spart2); CGameProcedure::s_pFX->TriggerBundle(iSourceID, spart1, pSkill->iSelfFX1, iSourceID, spart1, -1); if(spart2!=0) CGameProcedure::s_pFX->TriggerBundle(iSourceID, spart2, pSkill->iSelfFX1, iSourceID, spart2, -2); pPlayer->m_iIDTarget = iTargetID; pPlayer->m_iSkillStep = 1; pPlayer->ActionMove(PSM_STOP); pPlayer->m_iMagicAni = pSkill->iSelfAnimID1; if(pSkill->dw1stTableType==2 || pSkill->dw2ndTableType==2) { int LeftItem = pPlayer->ItemClass_LeftHand(); int RightItem = pPlayer->ItemClass_RightHand(); if(RightItem == ITEM_CLASS_BOW_CROSS || LeftItem==ITEM_CLASS_BOW_CROSS) { pPlayer->m_iMagicAni = ANI_SHOOT_QUARREL_A; } } pPlayer->m_fCastFreezeTime = 10.0f; pPlayer->Action(PSA_SPELLMAGIC, false, pTargetPlayer); //CLogWriter::Write("send casting : %.4f", CN3Base::TimeGet()); //TRACE("recv casting : %.4f\n", CN3Base::TimeGet()); if(pSkill->iTarget == SKILLMAGIC_TARGET_ENEMY_ONLY) m_pGameProcMain->PlayBGM_Battle(); } void CMagicSkillMng::MsgRecv_Flying(DataPack* pDataPack, int& iOffset) { ////common.....////////////////////////////////////////////////////////////// // DWORD dwMagicID = CAPISocket::Parse_GetDword(pDataPack->m_pData, iOffset); int iSourceID = CAPISocket::Parse_GetShort(pDataPack->m_pData, iOffset); int iTargetID = CAPISocket::Parse_GetShort(pDataPack->m_pData, iOffset); short Data[6]; for(int i=0;i<6;i++) { Data[i] = CAPISocket::Parse_GetShort(pDataPack->m_pData, iOffset); } //if(iSourceID<0) return; if(iSourceID<0 || iSourceID==s_pPlayer->IDNumber()) return; CPlayerBase* pPlayer = m_pGameProcMain->CharacterGetByID(iSourceID, true); if(!pPlayer) return; __TABLE_UPC_SKILL* pSkill = s_pTbl_Skill->Find(dwMagicID); if(!pSkill) return; // ////common.....////////////////////////////////////////////////////////////// //TRACE("recv flying : %.4f\n", CN3Base::TimeGet()); if(pPlayer && pPlayer->State()==PSA_SPELLMAGIC) { pPlayer->m_iMagicAni = pSkill->iSelfAnimID2; if(pSkill->dw1stTableType==2 || pSkill->dw2ndTableType==2) { int LeftItem = pPlayer->ItemClass_LeftHand(); int RightItem = pPlayer->ItemClass_RightHand(); if(RightItem == ITEM_CLASS_BOW_CROSS || LeftItem==ITEM_CLASS_BOW_CROSS) { pPlayer->m_iMagicAni = ANI_SHOOT_QUARREL_B; } } pPlayer->m_fCastFreezeTime = 0.0f; pPlayer->Action(PSA_SPELLMAGIC, false); pPlayer->m_iSkillStep = 0; } CGameProcedure::s_pFX->Stop(iSourceID, iSourceID, pSkill->iSelfFX1, -1, true); CGameProcedure::s_pFX->Stop(iSourceID, iSourceID, pSkill->iSelfFX1, -2, true); if(pSkill->dw1stTableType==2 || pSkill->dw2ndTableType==2)//ํ™”์‚ด์˜๊ธฐ.. { FlyingType2(pSkill, iSourceID, iTargetID, Data); return; } CPlayerBase* pTarget = m_pGameProcMain->CharacterGetByID(iTargetID, false); int spart1 = pSkill->iSelfPart1 % 1000; if(!pTarget) { if(pPlayer) { __Vector3 vTargetPos = pPlayer->Position() + pPlayer->Direction(); CGameProcedure::s_pFX->TriggerBundle(iSourceID, spart1, pSkill->iFlyingFX, vTargetPos, Data[3], FX_BUNDLE_MOVE_DIR_FIXEDTARGET); } } else { CGameProcedure::s_pFX->TriggerBundle(iSourceID, spart1, pSkill->iFlyingFX, iTargetID, 0/*pSkill->iTargetPart*/, Data[3], FX_BUNDLE_MOVE_DIR_FLEXABLETARGET); } } void CMagicSkillMng::MsgRecv_Effecting(DataPack* pDataPack, int& iOffset) { ////common.....////////////////////////////////////////////////////////////// // DWORD dwMagicID = CAPISocket::Parse_GetDword(pDataPack->m_pData, iOffset); int iSourceID = CAPISocket::Parse_GetShort(pDataPack->m_pData, iOffset); int iTargetID = CAPISocket::Parse_GetShort(pDataPack->m_pData, iOffset); short Data[6]; for(int i=0;i<6;i++) { Data[i] = CAPISocket::Parse_GetShort(pDataPack->m_pData, iOffset); } CPlayerBase* pPlayer = m_pGameProcMain->CharacterGetByID(iSourceID, false); if(!pPlayer) return; __TABLE_UPC_SKILL* pSkill = s_pTbl_Skill->Find(dwMagicID); if(!pSkill) return; // ////common.....////////////////////////////////////////////////////////////// if(pPlayer && iSourceID!=s_pPlayer->IDNumber() && pPlayer->State()==PSA_SPELLMAGIC) { pPlayer->m_iMagicAni = pSkill->iSelfAnimID2; //ํ™”์‚ด๋†“๋Š” ๋™์ž‘... pPlayer->m_fCastFreezeTime = 0.0f; pPlayer->Action(PSA_SPELLMAGIC, false); pPlayer->m_iSkillStep = 0; } CGameProcedure::s_pFX->Stop(iSourceID, iSourceID, pSkill->iSelfFX1, -1, true); CGameProcedure::s_pFX->Stop(iSourceID, iSourceID, pSkill->iSelfFX1, -2, true); if(pSkill->dw1stTableType==1 || pSkill->dw2ndTableType==1) // ํƒ€์ž…1์ธ๊ฒฝ์šฐ ๊ฑ ์Šคํ‚ฌ์ด์•ผ..์ฝค๋ณด๋„ ๊ปด์žˆ์–ด..์ข€ ํŠน๋ณ„ํ•˜๊ฒŒ ๊ด€๋ฆฌํ•ด์•ผ๋ผ.. { if(!EffectingType1(dwMagicID, iSourceID, iTargetID, Data)) return; } if(pSkill->dw1stTableType==4 || pSkill->dw2ndTableType==4) { if(iTargetID==s_pPlayer->IDNumber()) EffectingType4(dwMagicID); } if(pSkill->dw1stTableType==3 || pSkill->dw2ndTableType==3) { if(iTargetID==s_pPlayer->IDNumber()) EffectingType3(dwMagicID); } if(pSkill->iFlyingFX!=0 && (pSkill->iTarget < SKILLMAGIC_TARGET_AREA_ENEMY || pSkill->iTarget > SKILLMAGIC_TARGET_AREA) ) return; //ํ”Œ๋ผ์ž‰์ด ์žˆ๋Š” ๋งˆ๋ฒ•์˜ ๊ฒฝ์šฐ๋Š” ํšจ๊ณผ๋ฅผ fail์—์„œ ์ฒ˜๋ฆฌํ•œ๋‹ค.. if(iTargetID==-1) { __Vector3 vTargetPos(Data[0],Data[1],Data[2]); CGameProcedure::s_pFX->TriggerBundle(iSourceID, 0, pSkill->iTargetFX, vTargetPos); } else CGameProcedure::s_pFX->TriggerBundle(iSourceID, 0, pSkill->iTargetFX, iTargetID, pSkill->iTargetPart); } void CMagicSkillMng::MsgRecv_Fail(DataPack* pDataPack, int& iOffset) { ////common.....////////////////////////////////////////////////////////////// // DWORD dwMagicID = CAPISocket::Parse_GetDword(pDataPack->m_pData, iOffset); int iSourceID = CAPISocket::Parse_GetShort(pDataPack->m_pData, iOffset); int iTargetID = CAPISocket::Parse_GetShort(pDataPack->m_pData, iOffset); short Data[6]; for(int i=0;i<6;i++) { Data[i] = CAPISocket::Parse_GetShort(pDataPack->m_pData, iOffset); } CPlayerBase* pPlayer = m_pGameProcMain->CharacterGetByID(iSourceID, false); if(!pPlayer) return; __TABLE_UPC_SKILL* pSkill = s_pTbl_Skill->Find(dwMagicID); if(!pSkill) return; // ////common.....////////////////////////////////////////////////////////////// if(pPlayer && iSourceID != s_pPlayer->IDNumber() && pPlayer->State()==PSA_SPELLMAGIC) { pPlayer->m_iMagicAni = pSkill->iSelfAnimID2; pPlayer->m_fCastFreezeTime = 0.0f; pPlayer->Action(PSA_SPELLMAGIC, false); pPlayer->m_iSkillStep = 0; CGameProcedure::s_pFX->Stop(iSourceID, iSourceID, pSkill->iSelfFX1, -1, true); CGameProcedure::s_pFX->Stop(iSourceID, iSourceID, pSkill->iSelfFX1, -2, true); } if(Data[3]==SKILLMAGIC_FAIL_ATTACKZERO) { CGameProcedure::s_pFX->Stop(iSourceID, iSourceID, pSkill->iSelfFX1, -1, true); CGameProcedure::s_pFX->Stop(iSourceID, iSourceID, pSkill->iSelfFX1, -2, true); if(pPlayer) pPlayer->m_iSkillStep = 0; if(iSourceID == s_pPlayer->IDNumber()) { s_pPlayer->m_dwMagicID = 0xffffffff; m_pGameProcMain->CommandSitDown(false, false); std::string buff = "IDS_MSG_FMT_TARGET_ATTACK_FAILED (%s)"; //::_LoadStringFromResource(IDS_MSG_FMT_TARGET_ATTACK_FAILED, buff); char szBuff[256] = ""; sprintf(szBuff, buff.c_str(), pSkill->szName.c_str()); m_pGameProcMain->MsgOutput(szBuff, 0xffff3b3b); } return; } if(Data[3]==SKILLMAGIC_FAIL_NOEFFECT) { CGameProcedure::s_pFX->Stop(iSourceID, iSourceID, pSkill->iSelfFX1, -1, true); CGameProcedure::s_pFX->Stop(iSourceID, iSourceID, pSkill->iSelfFX1, -2, true); if(pPlayer) { pPlayer->m_iSkillStep = 0; pPlayer->Action(PSA_BASIC, true); } if(iSourceID == s_pPlayer->IDNumber()) { s_pPlayer->m_dwMagicID = 0xffffffff; m_pGameProcMain->CommandSitDown(false, false); // ํ˜น์‹œ๋ผ๋„ ์•‰์•„์žˆ์Œ ์ผ์œผ์ผœ ์„ธ์šด๋‹ค.. std::string buff = "%s failed"; //::_LoadStringFromResource(IDS_SKILL_FAIL_EFFECTING, buff); char szBuff[256] = ""; sprintf(szBuff, buff.c_str(), pSkill->szName.c_str()); m_pGameProcMain->MsgOutput(szBuff, 0xffff3b3b); } return; } if(Data[3]==SKILLMAGIC_FAIL_CASTING)// ์บ์ŠคํŒ… ์‹คํŒจ์ธ ๊ฒƒ์ด๋‹ค.. { CGameProcedure::s_pFX->Stop(iSourceID, iSourceID, pSkill->iSelfFX1, -1, true); CGameProcedure::s_pFX->Stop(iSourceID, iSourceID, pSkill->iSelfFX1, -2, true); if(pPlayer) { pPlayer->m_iSkillStep = 0; pPlayer->Action(PSA_BASIC, true); } if(iSourceID == s_pPlayer->IDNumber()) { s_pPlayer->m_dwMagicID = 0xffffffff; m_pGameProcMain->CommandSitDown(false, false); // ํ˜น์‹œ๋ผ๋„ ์•‰์•„์žˆ์Œ ์ผ์œผ์ผœ ์„ธ์šด๋‹ค.. std::string buff = "IDS_SKILL_FAIL_CASTING"; //::_LoadStringFromResource(IDS_SKILL_FAIL_CASTING, buff); m_pGameProcMain->MsgOutput(buff, 0xffff3b3b); } return; } if(Data[3]==SKILLMAGIC_FAIL_KILLFLYING)//flyingํšจ๊ณผ ์ฃฝ์ด๊ณ ..๊ทธ์ž๋ฆฌ์— ํƒ€๊ฒŸํšจ๊ณผ ํ•ด๋ผ.. { if(iSourceID == s_pPlayer->IDNumber() || ((iTargetID==s_pPlayer->IDNumber() && s_pOPMgr->NPCGetByID(iSourceID, false)!=NULL))) { RemoveIdx(Data[4]); } else CGameProcedure::s_pFX->Stop(iSourceID, iTargetID, pSkill->iFlyingFX, Data[4]); if(iTargetID==s_pPlayer->IDNumber()) { if(pSkill->dw1stTableType==2 || pSkill->dw2ndTableType==2) { StopCastingByRatio(); } else if(pSkill->dw1stTableType==3 || pSkill->dw2ndTableType==3) { __TABLE_UPC_SKILL_TYPE_3* pType3 = m_pTbl_Type_3->Find(dwMagicID); if(pType3->iAttribute==3) { StopCastingByRatio(); StunMySelf(pType3); } } } CPlayerBase* pTarget = m_pGameProcMain->CharacterGetByID(iTargetID, false); if(pTarget) { CGameProcedure::s_pFX->TriggerBundle(iSourceID, pSkill->iTargetPart, pSkill->iTargetFX, iTargetID, pSkill->iTargetPart); } else { __Vector3 TargetPos(Data[0], Data[1], Data[2]); CGameProcedure::s_pFX->TriggerBundle(iSourceID, 0, pSkill->iTargetFX, TargetPos); } return; } if(Data[3]==SKILLMAGIC_FAIL_ENDCOMBO)//combo๋๋‚ฌ๋‹ค. { if(pPlayer) pPlayer->m_iSkillStep = 0; return; } //๊ทธ์™ธ stop์ด ํ•„์š”ํ•œ๊ฒŒ ์žˆ์„๊บผ์•ผ.. //๊ทธ๋•... //CGameProcedure::s_pFX->Stop(iSourceID, iTargetID, pSkill->iSelfFX, 0); } //type4 ํ•ด์ œ.. void CMagicSkillMng::MsgRecv_BuffType(DataPack* pDataPack, int& iOffset) { int iBuffType = CAPISocket::Parse_GetByte(pDataPack->m_pData, iOffset); __InfoPlayerBase* pInfoBase = &(s_pPlayer->m_InfoBase); __InfoPlayerMySelf* pInfoExt = &(s_pPlayer->m_InfoExt); std::multimap<int, DWORD>::iterator it = m_ListBuffTypeID.find(iBuffType); if(it!= m_ListBuffTypeID.end()) { __TABLE_UPC_SKILL* pSkill = s_pTbl_Skill->Find(it->second); m_pGameProcMain->m_pUIStateBarAndMiniMap->DelMagic(pSkill); m_ListBuffTypeID.erase(it); } switch(iBuffType) { case BUFFTYPE_MAXHP: if(pInfoBase->iHP < pInfoBase->iHPMax) { pInfoBase->iHPMax -= m_iMaxHP; m_pGameProcMain->m_pUIVar->m_pPageState->UpdateHP(pInfoBase->iHP, pInfoBase->iHPMax); } m_iMaxHP = 0; break; case BUFFTYPE_AC: pInfoExt->iGuard_Delta -= m_iAC; m_pGameProcMain->m_pUIVar->m_pPageState->UpdateGuardPoint(pInfoExt->iGuard, pInfoExt->iGuard_Delta); m_iAC = 0; break; case BUFFTYPE_ATTACK: if(m_iAttack) pInfoExt->iAttack_Delta -= m_iAttack; m_pGameProcMain->m_pUIVar->m_pPageState->UpdateAttackPoint(pInfoExt->iAttack, pInfoExt->iAttack_Delta); m_iAttack = 0; break; case BUFFTYPE_ATTACKSPEED: s_pPlayer->m_fAttackDelta /= m_fAttackSpeed; m_fAttackSpeed = 1.0f; break; case BUFFTYPE_SPEED: s_pPlayer->m_fMoveDelta /= m_fSpeed; m_fSpeed = 1.0f; //TRACE("์Šคํ”„๋ฆฐํŠธ ํ•ด์ œ. MoveDelta = %f\n", s_pPlayer->m_fMoveDelta); break; case BUFFTYPE_ABILITY: pInfoExt->iStrength_Delta -= m_iStr; pInfoExt->iStamina_Delta -= m_iSta; pInfoExt->iDexterity_Delta -= m_iDex; pInfoExt->iIntelligence_Delta -= m_iInt; pInfoExt->iMagicAttak_Delta -= m_iMAP; m_pGameProcMain->m_pUIVar->m_pPageState->UpdateStrength(pInfoExt->iStrength, pInfoExt->iStrength_Delta); m_pGameProcMain->m_pUIVar->m_pPageState->UpdateStamina(pInfoExt->iStamina, pInfoExt->iStamina_Delta); m_pGameProcMain->m_pUIVar->m_pPageState->UpdateDexterity(pInfoExt->iDexterity, pInfoExt->iDexterity_Delta); m_pGameProcMain->m_pUIVar->m_pPageState->UpdateIntelligence(pInfoExt->iIntelligence, pInfoExt->iIntelligence_Delta); m_pGameProcMain->m_pUIVar->m_pPageState->UpdateMagicAttak(pInfoExt->iMagicAttak, pInfoExt->iMagicAttak_Delta); m_iStr = 0; m_iSta = 0; m_iDex = 0; m_iInt = 0; m_iMAP = 0; break; case BUFFTYPE_RESIST: pInfoExt->iRegistFire_Delta -= m_iFireR; pInfoExt->iRegistCold_Delta -= m_iColdR; pInfoExt->iRegistLight_Delta -= m_iLightningR; pInfoExt->iRegistMagic_Delta -= m_iMagicR; pInfoExt->iRegistCurse_Delta -= m_iDeseaseR; pInfoExt->iRegistPoison_Delta -= m_iPoisonR; m_pGameProcMain->m_pUIVar->m_pPageState->UpdateRegistFire(pInfoExt->iRegistFire, pInfoExt->iRegistFire_Delta); m_pGameProcMain->m_pUIVar->m_pPageState->UpdateRegistCold(pInfoExt->iRegistCold, pInfoExt->iRegistCold_Delta); m_pGameProcMain->m_pUIVar->m_pPageState->UpdateRegistLight(pInfoExt->iRegistLight, pInfoExt->iRegistLight_Delta); m_pGameProcMain->m_pUIVar->m_pPageState->UpdateRegistMagic(pInfoExt->iRegistMagic, pInfoExt->iRegistMagic_Delta); m_pGameProcMain->m_pUIVar->m_pPageState->UpdateRegistCurse(pInfoExt->iRegistCurse, pInfoExt->iRegistCurse_Delta); m_pGameProcMain->m_pUIVar->m_pPageState->UpdateRegistPoison(pInfoExt->iRegistPoison, pInfoExt->iRegistPoison_Delta); m_iFireR = 0; m_iColdR = 0; m_iLightningR = 0; m_iMagicR = 0; m_iDeseaseR = 0; m_iPoisonR = 0; break; } } // // // void CMagicSkillMng::FlyingType2(__TABLE_UPC_SKILL* pSkill, int iSourceID, int iTargetID, short* pData) { CPlayerBase* pPlayer = m_pGameProcMain->CharacterGetByID(iSourceID, true); if(!pPlayer) return; __TABLE_UPC_SKILL_TYPE_2* pType2 = m_pTbl_Type_2->Find(pSkill->dwID); if(!pType2) return; int LeftItem = pPlayer->ItemClass_LeftHand()/10; int RightItem = pPlayer->ItemClass_RightHand()/10; if(LeftItem == (ITEM_CLASS_BOW/10))//ํ™œ์ด๋‹ท.. { CN3Base::s_SndMgr.PlayOnceAndRelease(ID_SOUND_SKILL_THROW_ARROW, &(pPlayer->Position())); } else if(RightItem == (ITEM_CLASS_JAVELIN/10))//ํˆฌ์ฐฝ์ด๋‹ท...pla { } int spart1 = pSkill->iSelfPart1 % 1000; __Vector3 vTargetPos(0,0,0); CPlayerBase* pTarget = m_pGameProcMain->CharacterGetByID(iTargetID, false); if(!pTarget) { vTargetPos = pPlayer->Position() + pPlayer->Direction(); CGameProcedure::s_pFX->TriggerBundle(iSourceID, spart1, pSkill->iFlyingFX, vTargetPos+pPlayer->Position(), pData[3], pType2->iSuccessType); int NumArrow = (pType2->iNumArrow - 1) >>1; int idx = pData[3]; __Vector3 vTargetPos2 = vTargetPos - pPlayer->Position(); __Vector3 vTargetPos3; __Matrix44 mtx; for(int i=1;i<=NumArrow;i++) { float fAng = (__PI * (float)i) / 12.0f; // 15๋„ ์”ฉ ๋‚˜๋ˆ ์„œ... mtx.Identity(); mtx.RotationY(-fAng); vTargetPos3 = vTargetPos2*mtx; CGameProcedure::s_pFX->TriggerBundle(iSourceID, spart1, pSkill->iFlyingFX, vTargetPos3+pPlayer->Position(), idx++, pType2->iSuccessType); mtx.Identity(); mtx.RotationY(fAng); vTargetPos3 = vTargetPos2*mtx; CGameProcedure::s_pFX->TriggerBundle(iSourceID, spart1, pSkill->iFlyingFX, vTargetPos3+pPlayer->Position(), idx++, pType2->iSuccessType); } } else { vTargetPos = pTarget->Center(); if(pType2->iSuccessType == FX_BUNDLE_MOVE_DIR_FIXEDTARGET) { CGameProcedure::s_pFX->TriggerBundle(iSourceID, spart1, pSkill->iFlyingFX, vTargetPos, pData[3], FX_BUNDLE_MOVE_DIR_FIXEDTARGET); int NumArrow = (pType2->iNumArrow - 1) >>1; int idx = pData[3]; __Vector3 vTargetPos2 = vTargetPos - pPlayer->Position(); __Vector3 vTargetPos3; __Matrix44 mtx; for(int i=1;i<=NumArrow;i++) { float fAng = (__PI * (float)i) / 12.0f; // 15๋„ ์”ฉ ๋‚˜๋ˆ ์„œ... mtx.Identity(); mtx.RotationY(-fAng); vTargetPos3 = vTargetPos2*mtx; CGameProcedure::s_pFX->TriggerBundle(iSourceID, spart1, pSkill->iFlyingFX, vTargetPos3+pPlayer->Position(), idx++, FX_BUNDLE_MOVE_DIR_FIXEDTARGET); mtx.Identity(); mtx.RotationY(fAng); vTargetPos3 = vTargetPos2*mtx; CGameProcedure::s_pFX->TriggerBundle(iSourceID, spart1, pSkill->iFlyingFX, vTargetPos3+pPlayer->Position(), idx++, FX_BUNDLE_MOVE_DIR_FIXEDTARGET); } } else { CGameProcedure::s_pFX->TriggerBundle(iSourceID, spart1, pSkill->iFlyingFX, iTargetID, pSkill->iTargetPart, pData[3], pType2->iSuccessType); int NumArrow = (pType2->iNumArrow - 1) >>1; int idx = pData[3]; __Vector3 vTargetPos2 = vTargetPos - pPlayer->Position(); __Vector3 vTargetPos3; __Matrix44 mtx; for(int i=1;i<=NumArrow;i++) { float fAng = (__PI * (float)i) / 12.0f; // 15๋„ ์”ฉ ๋‚˜๋ˆ ์„œ... mtx.Identity(); mtx.RotationY(-fAng); vTargetPos3 = vTargetPos2*mtx; CGameProcedure::s_pFX->TriggerBundle(iSourceID, spart1, pSkill->iFlyingFX, vTargetPos3+pPlayer->Position(), idx++, pType2->iSuccessType); mtx.Identity(); mtx.RotationY(fAng); vTargetPos3 = vTargetPos2*mtx; CGameProcedure::s_pFX->TriggerBundle(iSourceID, spart1, pSkill->iFlyingFX, vTargetPos3+pPlayer->Position(), idx++, pType2->iSuccessType); } } } //__TABLE_UPC_SKILL_TYPE_2* pType2 = m_pTbl_Type_2->Find(pSkill->dwID); //if(pType2) CGameProcedure::s_pFX->Trigger(iSourceID, spart1, pSkill->iFlyingFX, iTargetID, pSkill->iTargetPart, pData[3], pType2->iSuccessType); } // // // bool CMagicSkillMng::EffectingType1(DWORD dwMagicID, int iSourceID, int iTargetID, short* pData) { CPlayerBase* pTarget = m_pGameProcMain->CharacterGetByID(iTargetID, false); if(pTarget) { if(iSourceID != s_pPlayer->IDNumber()) // ๋‚ด๊ฐ€ ์Šคํ‚ฌ์„ ์“ธ๋•Œ.. { __TABLE_UPC_SKILL_TYPE_1* pType1 = m_pTbl_Type_1->Find(dwMagicID); if(pType1) { CPlayerBase* pPlayer = m_pGameProcMain->CharacterGetByID(iSourceID, true); __ASSERT(pPlayer, "NULL Player Pointer!!"); if(pPlayer) { // ๊ฒ€๊ธฐ ์ƒ‰์„ ๋ฐ”๊พธ์–ด ์ค€๋‹ค.. // __TABLE_UPC_SKILL* pSkill = s_pTbl_Skill->Find(dwMagicID); // D3DCOLOR crTrace = TraceColorGet(pSkill); // ์Šคํ‚ฌ์˜ ์ข…๋ฅ˜์— ๋”ฐ๋ผ ๊ฒ€๊ธฐ์˜ ์ƒ‰์„ ์ •ํ•œ๋‹ค.. // pPlayer->PlugTraceColorRemake(crTrace); // ๊ฒ€๊ธฐ ์ƒ‰ ์ ์šฉ.. pPlayer->RotateTo(pTarget); pPlayer->m_iSkillStep = 1; for(int i=0;i<pType1->iNumCombo;i++) { bool bImmediately = ((0 == i) ? true : false); // ์ฒ˜์Œ๊ฑด ๋ฐ”๋กœ ๋„ฃ๋Š”๋‹ค.. pPlayer->AnimationAdd((const e_Ani)pType1->iAct[i], bImmediately); } } } } } return true; } /* bool CMagicSkillMng::EffectingType1(DWORD dwMagicID, int iSourceID, int iTargetID, short* pData) { CPlayerBase* pTarget = m_pGameProcMain->CharacterGetByID(iTargetID, false); if(pTarget) { if(iSourceID == s_pPlayer->IDNumber()) // ๋‚ด๊ฐ€ ์Šคํ‚ฌ์„ ์“ธ๋•Œ.. { __TABLE_UPC_SKILL_TYPE_1* pType1 = m_pTbl_Type_1->Find(dwMagicID); if(pType1 && pData[0] <= pType1->iNumCombo) { m_iTarget = iTargetID; m_iComboSkillID = dwMagicID; if(m_iActionState[pData[0]-1] != -1) { if(pData[0]!=pType1->iNumCombo) { BYTE byBuff[32]; int iOffset=0; CAPISocket::MP_AddByte(byBuff, iOffset, (BYTE)N3_MAGIC); CAPISocket::MP_AddByte(byBuff, iOffset, (BYTE)N3_SP_MAGIC_EFFECTING); CAPISocket::MP_AddDword(byBuff, iOffset, (int)m_iComboSkillID); CAPISocket::MP_AddShort(byBuff, iOffset, (short)iSourceID); CAPISocket::MP_AddShort(byBuff, iOffset, (short)m_iTarget); CAPISocket::MP_AddShort(byBuff, iOffset, (short)pData[0]); CAPISocket::MP_AddShort(byBuff, iOffset, (short)pData[1]); CAPISocket::MP_AddShort(byBuff, iOffset, 0); CAPISocket::MP_AddShort(byBuff, iOffset, 0); CAPISocket::MP_AddShort(byBuff, iOffset, 0); CAPISocket::MP_AddShort(byBuff, iOffset, 0); CGameProcedure::s_pSocket->Send(byBuff, iOffset); // ๋ณด๋‚ธ๋‹ค.. //m_iActionState[pData[0]-1] = -1; } } m_iResult[pData[0]-1] = pData[1]; }// end of if(pType1 && pData[0] <= pType1->iNumCombo) } else if(pData[0]==1) // ๋‹ค๋ฅธ ์œ ์ €๊ฐ€ ์Šคํ‚ฌ์„ ์“ธ๋•Œ { __TABLE_UPC_SKILL_TYPE_1* pType1 = m_pTbl_Type_1->Find(dwMagicID); if(pType1) { CPlayerBase* pPlayer = m_pGameProcMain->CharacterGetByID(iSourceID, true); __ASSERT(pPlayer, "NULL Player Pointer!!"); if(pPlayer) { // ๊ฒ€๊ธฐ ์ƒ‰์„ ๋ฐ”๊พธ์–ด ์ค€๋‹ค.. // __TABLE_UPC_SKILL* pSkill = s_pTbl_Skill->Find(dwMagicID); // D3DCOLOR crTrace = TraceColorGet(pSkill); // ์Šคํ‚ฌ์˜ ์ข…๋ฅ˜์— ๋”ฐ๋ผ ๊ฒ€๊ธฐ์˜ ์ƒ‰์„ ์ •ํ•œ๋‹ค.. // pPlayer->PlugTraceColorRemake(crTrace); // ๊ฒ€๊ธฐ ์ƒ‰ ์ ์šฉ.. pPlayer->RotateTo(pTarget); pPlayer->m_iSkillStep = 1; for(int i=0;i<pType1->iNumCombo;i++) { bool bImmediately = ((0 == i) ? true : false); // ์ฒ˜์Œ๊ฑด ๋ฐ”๋กœ ๋„ฃ๋Š”๋‹ค.. pPlayer->AnimationAdd((const e_Ani)pType1->iAct[i], bImmediately); } } } } } if(pData[0]==1) return true; return false; } */ void CMagicSkillMng::EffectingType3(DWORD dwMagicID) { __TABLE_UPC_SKILL_TYPE_3* pType3 = m_pTbl_Type_3->Find(dwMagicID); __ASSERT(pType3, "NULL type3 Pointer!!"); if(!pType3) return; StunMySelf(pType3); int key = 0; if(pType3->iStartDamage>0 || (pType3->iStartDamage==0 && pType3->iDuraDamage>0) ) key = DDTYPE_TYPE3_DUR_OUR; else key = DDTYPE_TYPE3_DUR_ENEMY; if(key==DDTYPE_TYPE3_DUR_ENEMY && pType3->iAttribute==3) StopCastingByRatio(); if(pType3->iDurationTime==0) return; __TABLE_UPC_SKILL* pSkill = s_pTbl_Skill->Find(dwMagicID); m_pGameProcMain->m_pUIStateBarAndMiniMap->AddMagic(pSkill, (float)pType3->iDurationTime); m_ListBuffTypeID.insert(stlmultimapVAL_INT_DWORD(key, dwMagicID)); } // // // void CMagicSkillMng::EffectingType4(DWORD dwMagicID) { __TABLE_UPC_SKILL_TYPE_4* pType4 = m_pTbl_Type_4->Find(dwMagicID); __ASSERT(pType4, "NULL type4 Pointer!!"); if(!pType4) return; __InfoPlayerBase* pInfoBase = &(s_pPlayer->m_InfoBase); __InfoPlayerMySelf* pInfoExt = &(s_pPlayer->m_InfoExt); std::multimap<int, DWORD>::iterator it = m_ListBuffTypeID.find(pType4->iBuffType); if(it!= m_ListBuffTypeID.end()) { __TABLE_UPC_SKILL* pSkill = s_pTbl_Skill->Find(it->second); m_pGameProcMain->m_pUIStateBarAndMiniMap->DelMagic(pSkill); m_ListBuffTypeID.erase(it); } __TABLE_UPC_SKILL* pSkill = s_pTbl_Skill->Find(dwMagicID); m_pGameProcMain->m_pUIStateBarAndMiniMap->AddMagic(pSkill, (float)pType4->iDuration); m_ListBuffTypeID.insert(stlmultimapVAL_INT_DWORD(pType4->iBuffType,dwMagicID)); //๊ฐ™์€ ๋ฒ„ํ”„ํƒ€์ž…์˜ ๋งˆ๋ฒ•์€ ์ค‘๋ณต์‚ฌ์šฉํ•  ์ˆ˜ ์—†๋‹ค...๋จผ์ € ์‚ฌ์šฉ๋œ ๊ฒƒ๋งŒ ์œ ํšจ.. if(pType4) { switch(pType4->iBuffType) { case BUFFTYPE_MAXHP: pInfoBase->iHPMax -= m_iMaxHP; m_iMaxHP = pType4->iMaxHP; pInfoBase->iHPMax += m_iMaxHP; m_pGameProcMain->m_pUIVar->m_pPageState->UpdateHP(pInfoBase->iHP, pInfoBase->iHPMax); break; case BUFFTYPE_AC: pInfoExt->iGuard_Delta -= m_iAC; m_iAC = pType4->iAC; pInfoExt->iGuard_Delta += m_iAC; m_pGameProcMain->m_pUIVar->m_pPageState->UpdateGuardPoint(pInfoExt->iGuard, pInfoExt->iGuard_Delta); break; case BUFFTYPE_ATTACK: pInfoExt->iAttack_Delta -= m_iAttack; m_iAttack = (pInfoExt->iAttack * pType4->iAttack / 100) - pInfoExt->iAttack; pInfoExt->iAttack_Delta += m_iAttack; m_pGameProcMain->m_pUIVar->m_pPageState->UpdateAttackPoint(pInfoExt->iAttack, pInfoExt->iAttack_Delta); break; case BUFFTYPE_ATTACKSPEED: s_pPlayer->m_fAttackDelta /= m_fAttackSpeed; m_fAttackSpeed = (float)pType4->iAttackSpeed / 100.0f; s_pPlayer->m_fAttackDelta *= m_fAttackSpeed; break; case BUFFTYPE_SPEED: s_pPlayer->m_fMoveDelta /= m_fSpeed; m_fSpeed = (float)pType4->iMoveSpeed / 100.0f; s_pPlayer->m_fMoveDelta *= m_fSpeed; break; case BUFFTYPE_ABILITY: pInfoExt->iStrength_Delta -= m_iStr; pInfoExt->iStamina_Delta -= m_iSta; pInfoExt->iDexterity_Delta -= m_iDex; pInfoExt->iIntelligence_Delta -= m_iInt; pInfoExt->iMagicAttak_Delta -= m_iMAP; m_iStr = pType4->iStr; m_iSta = pType4->iSta; m_iDex = pType4->iDex; m_iInt = pType4->iInt; m_iMAP = pType4->iMAP; pInfoExt->iStrength_Delta += m_iStr; pInfoExt->iStamina_Delta += m_iSta; pInfoExt->iDexterity_Delta += m_iDex; pInfoExt->iIntelligence_Delta += m_iInt; pInfoExt->iMagicAttak_Delta += m_iMAP; m_pGameProcMain->m_pUIVar->m_pPageState->UpdateStrength(pInfoExt->iStrength, pInfoExt->iStrength_Delta); m_pGameProcMain->m_pUIVar->m_pPageState->UpdateStamina(pInfoExt->iStamina, pInfoExt->iStamina_Delta); m_pGameProcMain->m_pUIVar->m_pPageState->UpdateDexterity(pInfoExt->iDexterity, pInfoExt->iDexterity_Delta); m_pGameProcMain->m_pUIVar->m_pPageState->UpdateIntelligence(pInfoExt->iIntelligence, pInfoExt->iIntelligence_Delta); m_pGameProcMain->m_pUIVar->m_pPageState->UpdateMagicAttak(pInfoExt->iMagicAttak, pInfoExt->iMagicAttak_Delta); break; case BUFFTYPE_RESIST: pInfoExt->iRegistFire_Delta -= m_iFireR; pInfoExt->iRegistCold_Delta -= m_iColdR; pInfoExt->iRegistLight_Delta -= m_iLightningR; pInfoExt->iRegistMagic_Delta -= m_iMagicR; pInfoExt->iRegistCurse_Delta -= m_iDeseaseR; pInfoExt->iRegistPoison_Delta -= m_iPoisonR; m_iFireR = pType4->iFireResist; m_iColdR = pType4->iColdResist; m_iLightningR = pType4->iLightningResist; m_iMagicR = pType4->iMagicResist; m_iDeseaseR = pType4->iDeseaseResist; m_iPoisonR = pType4->iPoisonResist; pInfoExt->iRegistFire_Delta += m_iFireR; pInfoExt->iRegistCold_Delta += m_iColdR; pInfoExt->iRegistLight_Delta += m_iLightningR; pInfoExt->iRegistMagic_Delta += m_iMagicR; pInfoExt->iRegistCurse_Delta += m_iDeseaseR; pInfoExt->iRegistPoison_Delta += m_iPoisonR; m_pGameProcMain->m_pUIVar->m_pPageState->UpdateRegistFire(pInfoExt->iRegistFire, pInfoExt->iRegistFire_Delta); m_pGameProcMain->m_pUIVar->m_pPageState->UpdateRegistCold(pInfoExt->iRegistCold, pInfoExt->iRegistCold_Delta); m_pGameProcMain->m_pUIVar->m_pPageState->UpdateRegistLight(pInfoExt->iRegistLight, pInfoExt->iRegistLight_Delta); m_pGameProcMain->m_pUIVar->m_pPageState->UpdateRegistMagic(pInfoExt->iRegistMagic, pInfoExt->iRegistMagic_Delta); m_pGameProcMain->m_pUIVar->m_pPageState->UpdateRegistCurse(pInfoExt->iRegistCurse, pInfoExt->iRegistCurse_Delta); m_pGameProcMain->m_pUIVar->m_pPageState->UpdateRegistPoison(pInfoExt->iRegistPoison, pInfoExt->iRegistPoison_Delta); break; } } } // // ๋‚ด๊ฐ€ ์“ฐ๋Š” ์Šคํ‚ฌ์ด๋‚˜ ๋งˆ๋ฒ•์€ ๋‚ด๊ฐ€ ์ธ๋ฑ์Šค๋ฅผ ๋„ฃ์–ด์„œ ๊ด€๋ฆฌํ•œ๋‹ค.. // ์ด๊ฑด ์ธ๋ฑ์Šค ๋„ฃ๋Š” ํ•จ์ˆ˜.. // int CMagicSkillMng::AddIdx(DWORD MagicID, int iNum) { int idx = 0; std::map<int, DWORD>::iterator it; //์—ฐ๊ฒฐ๋˜๋Š” index๋ฅผ ์—ฌ๋Ÿฌ๊ฐœ ํ•œ๊บผ๋ฒˆ์— ๋งŒ๋“œ๋Š” ๊ฒฝ์šฐ.. if(iNum>1) { if(m_MySelf.size()!=0) { it = m_MySelf.end(); it--; idx = it->first + 1; } else idx = 1; for(int i=0;i<iNum;i++) { m_MySelf.insert(stlmapVAL_INT_DWORD(idx+i, MagicID)); } return idx; } //๊ทธ๋ƒฅ ํ•˜๋‚˜์˜ ์ธ๋ฑ์Šค๋งŒ ๋งŒ๋“œ๋Š” ๊ฒฝ์šฐ.. for(it = m_MySelf.begin(); it!=m_MySelf.end(); it++) { if(it->first==idx) { idx++; continue; } else { m_MySelf.insert(stlmapVAL_INT_DWORD(idx, MagicID)); break; } } if(it==m_MySelf.end()) { m_MySelf.insert(stlmapVAL_INT_DWORD(idx, MagicID)); } return idx; } // // // void CMagicSkillMng::InitType4() { m_iBuffType = 0; m_fAttackSpeed = 1.0f; m_fSpeed = 1.0f; m_iAC = 0; m_iAttack = 0; m_iMaxHP = 0; m_iStr = 0; m_iSta = 0; m_iDex = 0; m_iInt = 0; m_iMAP = 0; m_iFireR = 0; m_iColdR = 0; m_iLightningR = 0; m_iMagicR = 0; m_iDeseaseR = 0; m_iPoisonR = 0; std::multimap<int, DWORD>::iterator its, ite; its = m_ListBuffTypeID.begin(); ite = m_ListBuffTypeID.end(); for(;its != ite; its++) { __TABLE_UPC_SKILL* pSkill = s_pTbl_Skill->Find((*its).second); m_pGameProcMain->m_pUIStateBarAndMiniMap->DelMagic(pSkill); } m_ListBuffTypeID.clear(); } // // ์ด๊ฑด ์ธ๋ฑ์Šค ์ œ๊ฑฐํ•˜๋Š” ํ•จ์ˆ˜.. // void CMagicSkillMng::RemoveIdx(int idx) { m_MySelf.erase(idx); } DWORD CMagicSkillMng::GetMagicID(int idx) { std::map<int, DWORD>::iterator it = m_MySelf.find(idx); return it->second; } D3DCOLOR CMagicSkillMng::TraceColorGet(__TABLE_UPC_SKILL* pSkill) // ์Šคํ‚ฌ์˜ ์ข…๋ฅ˜์— ๋”ฐ๋ผ ๊ฒ€๊ธฐ์˜ ์ƒ‰์„ ์ •ํ•œ๋‹ค.. { if(NULL == pSkill) return 0xff404040; D3DCOLOR crTrace = 0xffff4040; switch(pSkill->dwNeedItem) // ์š”๊ตฌ ์•„์ดํ…œ์— ๋”ฐ๋ผ์„œ... { case 1: crTrace = 0xff808080; // ITEM_CLASS_DAGGER = 11 // ๋‹จ๊ฒ€(dagger) case 2: crTrace = 0xff909090; // ITEM_CLASS_SWORD = 21, // ํ•œ์†๊ฒ€(onehandsword) //case : crTrace = ; // ITEM_CLASS_SWORD_2H = 22, // 3 : ์–‘์†๊ฒ€(twohandsword) case 3: crTrace = 0xff7070ff; // ITEM_CLASS_AXE = 31, // ํ•œ์†๋„๋ผ(onehandaxe) //case : crTrace = ; // ITEM_CLASS_AXE_2H = 32, // ๋‘์†๋„๋ผ(twohandaxe) case 4: crTrace = 0xffa07070; // ITEM_CLASS_MACE = 41, // ํ•œ์†ํƒ€๊ฒฉ๋ฌด๊ธฐ(mace) //case : crTrace = ; // ITEM_CLASS_MACE_2H = 42, // ๋‘์†ํƒ€๊ฒฉ๋ฌด๊ธฐ(twohandmace) case 5: crTrace = 0xffff7070; // ITEM_CLASS_SPEAR = 51, // ์ฐฝ(spear) //case : crTrace = ; // ITEM_CLASS_POLEARM = 52, // ํด์•”(polearm) default: crTrace = 0xff4040ff; } return crTrace; } bool CMagicSkillMng::IsPositiveMagic(DWORD dwMagicID) { __TABLE_UPC_SKILL* pSkill = CGameBase::s_pTbl_Skill->Find(dwMagicID); if(!pSkill) return true; if(pSkill->dw1stTableType==3 || pSkill->dw2ndTableType==3) { __TABLE_UPC_SKILL_TYPE_3* pType3 = m_pTbl_Type_3->Find(dwMagicID); if(!pType3) return true; int key = 0; if(pType3->iStartDamage>0 || (pType3->iStartDamage==0 && pType3->iDuraDamage>0) ) key = DDTYPE_TYPE3_DUR_OUR; else key = DDTYPE_TYPE3_DUR_ENEMY; key += pType3->iDDType; if(key==DDTYPE_TYPE3_DUR_OUR) return true; return false; } if(pSkill->dw1stTableType==4 || pSkill->dw2ndTableType==4) { __TABLE_UPC_SKILL_TYPE_4* pType4 = m_pTbl_Type_4->Find(dwMagicID); if(!pType4) return true; switch(pType4->iBuffType) { case BUFFTYPE_MAXHP: if(pType4->iMaxHP>0) return true; break; case BUFFTYPE_AC: if(pType4->iAC>0) return true; break; case BUFFTYPE_RESIZE: return true; case BUFFTYPE_ATTACK: if(pType4->iAttack>100) return true; break; case BUFFTYPE_ATTACKSPEED: if(pType4->iAttackSpeed>100) return true; break; case BUFFTYPE_SPEED: if(pType4->iMoveSpeed>100) return true; break; case BUFFTYPE_ABILITY: if(pType4->iStr>0 || pType4->iSta>0 || pType4->iDex>0 || pType4->iInt>0 || pType4->iMAP>0) return true; break; case BUFFTYPE_RESIST: if(pType4->iFireResist>0 || pType4->iColdResist>0 || pType4->iLightningResist>0 || pType4->iMagicResist>0 || pType4->iDeseaseResist>0 || pType4->iPoisonResist>0) return true; break; } } return false; } void CMagicSkillMng::ClearDurationalMagic() { __InfoPlayerBase* pInfoBase = &(s_pPlayer->m_InfoBase); __InfoPlayerMySelf* pInfoExt = &(s_pPlayer->m_InfoExt); if(pInfoBase->iHP < pInfoBase->iHPMax) { pInfoBase->iHPMax -= m_iMaxHP; m_pGameProcMain->m_pUIVar->m_pPageState->UpdateHP(pInfoBase->iHP, pInfoBase->iHPMax); } m_iMaxHP = 0; pInfoExt->iGuard_Delta -= m_iAC; m_pGameProcMain->m_pUIVar->m_pPageState->UpdateGuardPoint(pInfoExt->iGuard, pInfoExt->iGuard_Delta); m_iAC = 0; if(m_iAttack) pInfoExt->iAttack_Delta -= m_iAttack; m_pGameProcMain->m_pUIVar->m_pPageState->UpdateAttackPoint(pInfoExt->iAttack, pInfoExt->iAttack_Delta); m_iAttack = 0; s_pPlayer->m_fAttackDelta /= m_fAttackSpeed; m_fAttackSpeed = 1.0f; s_pPlayer->m_fMoveDelta /= m_fSpeed; m_fSpeed = 1.0f; pInfoExt->iStrength_Delta -= m_iStr; pInfoExt->iStamina_Delta -= m_iSta; pInfoExt->iDexterity_Delta -= m_iDex; pInfoExt->iIntelligence_Delta -= m_iInt; pInfoExt->iMagicAttak_Delta -= m_iMAP; m_pGameProcMain->m_pUIVar->m_pPageState->UpdateStrength(pInfoExt->iStrength, pInfoExt->iStrength_Delta); m_pGameProcMain->m_pUIVar->m_pPageState->UpdateStamina(pInfoExt->iStamina, pInfoExt->iStamina_Delta); m_pGameProcMain->m_pUIVar->m_pPageState->UpdateDexterity(pInfoExt->iDexterity, pInfoExt->iDexterity_Delta); m_pGameProcMain->m_pUIVar->m_pPageState->UpdateIntelligence(pInfoExt->iIntelligence, pInfoExt->iIntelligence_Delta); m_pGameProcMain->m_pUIVar->m_pPageState->UpdateMagicAttak(pInfoExt->iMagicAttak, pInfoExt->iMagicAttak_Delta); m_iStr = 0; m_iSta = 0; m_iDex = 0; m_iInt = 0; m_iMAP = 0; pInfoExt->iRegistFire_Delta -= m_iFireR; pInfoExt->iRegistCold_Delta -= m_iColdR; pInfoExt->iRegistLight_Delta -= m_iLightningR; pInfoExt->iRegistMagic_Delta -= m_iMagicR; pInfoExt->iRegistCurse_Delta -= m_iDeseaseR; pInfoExt->iRegistPoison_Delta -= m_iPoisonR; m_pGameProcMain->m_pUIVar->m_pPageState->UpdateRegistFire(pInfoExt->iRegistFire, pInfoExt->iRegistFire_Delta); m_pGameProcMain->m_pUIVar->m_pPageState->UpdateRegistCold(pInfoExt->iRegistCold, pInfoExt->iRegistCold_Delta); m_pGameProcMain->m_pUIVar->m_pPageState->UpdateRegistLight(pInfoExt->iRegistLight, pInfoExt->iRegistLight_Delta); m_pGameProcMain->m_pUIVar->m_pPageState->UpdateRegistMagic(pInfoExt->iRegistMagic, pInfoExt->iRegistMagic_Delta); m_pGameProcMain->m_pUIVar->m_pPageState->UpdateRegistCurse(pInfoExt->iRegistCurse, pInfoExt->iRegistCurse_Delta); m_pGameProcMain->m_pUIVar->m_pPageState->UpdateRegistPoison(pInfoExt->iRegistPoison, pInfoExt->iRegistPoison_Delta); m_iFireR = 0; m_iColdR = 0; m_iLightningR = 0; m_iMagicR = 0; m_iDeseaseR = 0; m_iPoisonR = 0; InitType4(); } void CMagicSkillMng::StopCastingByRatio() { m_pGameProcMain->CommandSitDown(false, false); // ์ผ์œผ์ผœ ์„ธ์šด๋‹ค. if(IsCasting()) { __TABLE_UPC_SKILL* pSkill = s_pTbl_Skill->Find(s_pPlayer->m_dwMagicID); if(pSkill) { int SuccessValue = rand()%100; if(SuccessValue >= pSkill->iPercentSuccess) // ์Šคํ‚ฌ ํ…Œ์ด๋ธ”์— ์žˆ๋Š” ํ™•๋ฅ ๋Œ€๋กœ ์‹คํŒจํ•œ๋‹ค.. { FailCast(pSkill); //if( s_pPlayer->Action(PSA_BASIC, false, NULL, true); // ์บ์ŠคํŒ… ์ทจ์†Œ, ๊ธฐ๋ณธ๋™์ž‘์œผ๋กœ ๊ฐ•์ œ ์„ธํŒ….. } } } } void CMagicSkillMng::StunMySelf(__TABLE_UPC_SKILL_TYPE_3* pType3) { if(pType3->iAttribute!=3) return; int sample = rand()%101; __InfoPlayerMySelf* pInfoExt = &(s_pPlayer->m_InfoExt); float Regist = pInfoExt->iRegistLight + pInfoExt->iRegistLight_Delta; if(Regist>80.0f) Regist = 80.0f; float Prob = (30.0f+(40.0f-( 40.0f*(Regist/80.0f) ))); if(sample < (int)Prob) //์–ผ์–ด๋ผ... { m_pGameProcMain->CommandSitDown(false, false); // ์ผ์œผ์ผœ ์„ธ์šด๋‹ค. s_pPlayer->Stun(STUN_TIME); } }
[ "mamaorha@gmail.com" ]
mamaorha@gmail.com
b3418da6abf09d96722a2f1860be750ce8c85809
65b765d6394b7c81ce26e6a2f73bb0c4b161e22b
/src/rpc/net.cpp
965288b992e0434e4e3751f2104c28c2526bd6e4
[ "MIT" ]
permissive
VNETCore/vnetcore
3fffd0fb1a92bcafc16029b300c4eb13e9d8c31c
6024e40c77bf087737297988022e1d39417d7dfb
refs/heads/master
2020-03-21T05:37:57.191282
2018-06-22T12:39:21
2018-06-22T12:39:21
138,170,099
2
1
null
null
null
null
UTF-8
C++
false
false
26,489
cpp
// Copyright (c) 2009-2015 The Bitcoin Core developers // Copyright (c) 2014-2017 The Dash Core developers // Copyright (c) 2018 The VNet Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "rpc/server.h" #include "chainparams.h" #include "clientversion.h" #include "validation.h" #include "net.h" #include "net_processing.h" #include "netbase.h" #include "protocol.h" #include "sync.h" #include "timedata.h" #include "ui_interface.h" #include "util.h" #include "utilstrencodings.h" #include "version.h" #include <boost/foreach.hpp> #include <univalue.h> using namespace std; UniValue getconnectioncount(const UniValue& params, bool fHelp) { if (fHelp || params.size() != 0) throw runtime_error( "getconnectioncount\n" "\nReturns the number of connections to other nodes.\n" "\nResult:\n" "n (numeric) The connection count\n" "\nExamples:\n" + HelpExampleCli("getconnectioncount", "") + HelpExampleRpc("getconnectioncount", "") ); if(!g_connman) throw JSONRPCError(RPC_CLIENT_P2P_DISABLED, "Error: Peer-to-peer functionality missing or disabled"); return (int)g_connman->GetNodeCount(CConnman::CONNECTIONS_ALL); } UniValue ping(const UniValue& params, bool fHelp) { if (fHelp || params.size() != 0) throw runtime_error( "ping\n" "\nRequests that a ping be sent to all other nodes, to measure ping time.\n" "Results provided in getpeerinfo, pingtime and pingwait fields are decimal seconds.\n" "Ping command is handled in queue with all other commands, so it measures processing backlog, not just network ping.\n" "\nExamples:\n" + HelpExampleCli("ping", "") + HelpExampleRpc("ping", "") ); if(!g_connman) throw JSONRPCError(RPC_CLIENT_P2P_DISABLED, "Error: Peer-to-peer functionality missing or disabled"); // Request that each node send a ping during next message processing pass g_connman->ForEachNode([](CNode* pnode) { pnode->fPingQueued = true; }); return NullUniValue; } UniValue getpeerinfo(const UniValue& params, bool fHelp) { if (fHelp || params.size() != 0) throw runtime_error( "getpeerinfo\n" "\nReturns data about each connected network node as a json array of objects.\n" "\nResult:\n" "[\n" " {\n" " \"id\": n, (numeric) Peer index\n" " \"addr\":\"host:port\", (string) The ip address and port of the peer\n" " \"addrlocal\":\"ip:port\", (string) local address\n" " \"services\":\"xxxxxxxxxxxxxxxx\", (string) The services offered\n" " \"relaytxes\":true|false, (boolean) Whether peer has asked us to relay transactions to it\n" " \"lastsend\": ttt, (numeric) The time in seconds since epoch (Jan 1 1970 GMT) of the last send\n" " \"lastrecv\": ttt, (numeric) The time in seconds since epoch (Jan 1 1970 GMT) of the last receive\n" " \"bytessent\": n, (numeric) The total bytes sent\n" " \"bytesrecv\": n, (numeric) The total bytes received\n" " \"conntime\": ttt, (numeric) The connection time in seconds since epoch (Jan 1 1970 GMT)\n" " \"timeoffset\": ttt, (numeric) The time offset in seconds\n" " \"pingtime\": n, (numeric) ping time (if available)\n" " \"minping\": n, (numeric) minimum observed ping time (if any at all)\n" " \"pingwait\": n, (numeric) ping wait (if non-zero)\n" " \"version\": v, (numeric) The peer version, such as 7001\n" " \"subver\": \"/VNet Core:x.x.x/\", (string) The string version\n" " \"inbound\": true|false, (boolean) Inbound (true) or Outbound (false)\n" " \"startingheight\": n, (numeric) The starting height (block) of the peer\n" " \"banscore\": n, (numeric) The ban score\n" " \"synced_headers\": n, (numeric) The last header we have in common with this peer\n" " \"synced_blocks\": n, (numeric) The last block we have in common with this peer\n" " \"inflight\": [\n" " n, (numeric) The heights of blocks we're currently asking from this peer\n" " ...\n" " ]\n" " \"bytessent_per_msg\": {\n" " \"addr\": n, (numeric) The total bytes sent aggregated by message type\n" " ...\n" " }\n" " \"bytesrecv_per_msg\": {\n" " \"addr\": n, (numeric) The total bytes received aggregated by message type\n" " ...\n" " }\n" " }\n" " ,...\n" "]\n" "\nExamples:\n" + HelpExampleCli("getpeerinfo", "") + HelpExampleRpc("getpeerinfo", "") ); if(!g_connman) throw JSONRPCError(RPC_CLIENT_P2P_DISABLED, "Error: Peer-to-peer functionality missing or disabled"); vector<CNodeStats> vstats; g_connman->GetNodeStats(vstats); UniValue ret(UniValue::VARR); BOOST_FOREACH(const CNodeStats& stats, vstats) { UniValue obj(UniValue::VOBJ); CNodeStateStats statestats; bool fStateStats = GetNodeStateStats(stats.nodeid, statestats); obj.push_back(Pair("id", stats.nodeid)); obj.push_back(Pair("addr", stats.addrName)); if (!(stats.addrLocal.empty())) obj.push_back(Pair("addrlocal", stats.addrLocal)); obj.push_back(Pair("services", strprintf("%016x", stats.nServices))); obj.push_back(Pair("relaytxes", stats.fRelayTxes)); obj.push_back(Pair("lastsend", stats.nLastSend)); obj.push_back(Pair("lastrecv", stats.nLastRecv)); obj.push_back(Pair("bytessent", stats.nSendBytes)); obj.push_back(Pair("bytesrecv", stats.nRecvBytes)); obj.push_back(Pair("conntime", stats.nTimeConnected)); obj.push_back(Pair("timeoffset", stats.nTimeOffset)); if (stats.dPingTime > 0.0) obj.push_back(Pair("pingtime", stats.dPingTime)); if (stats.dMinPing < std::numeric_limits<int64_t>::max()/1e6) obj.push_back(Pair("minping", stats.dMinPing)); if (stats.dPingWait > 0.0) obj.push_back(Pair("pingwait", stats.dPingWait)); obj.push_back(Pair("version", stats.nVersion)); // Use the sanitized form of subver here, to avoid tricksy remote peers from // corrupting or modifiying the JSON output by putting special characters in // their ver message. obj.push_back(Pair("subver", stats.cleanSubVer)); obj.push_back(Pair("inbound", stats.fInbound)); obj.push_back(Pair("startingheight", stats.nStartingHeight)); if (fStateStats) { obj.push_back(Pair("banscore", statestats.nMisbehavior)); obj.push_back(Pair("synced_headers", statestats.nSyncHeight)); obj.push_back(Pair("synced_blocks", statestats.nCommonHeight)); UniValue heights(UniValue::VARR); BOOST_FOREACH(int height, statestats.vHeightInFlight) { heights.push_back(height); } obj.push_back(Pair("inflight", heights)); } obj.push_back(Pair("whitelisted", stats.fWhitelisted)); UniValue sendPerMsgCmd(UniValue::VOBJ); BOOST_FOREACH(const mapMsgCmdSize::value_type &i, stats.mapSendBytesPerMsgCmd) { if (i.second > 0) sendPerMsgCmd.push_back(Pair(i.first, i.second)); } obj.push_back(Pair("bytessent_per_msg", sendPerMsgCmd)); UniValue recvPerMsgCmd(UniValue::VOBJ); BOOST_FOREACH(const mapMsgCmdSize::value_type &i, stats.mapRecvBytesPerMsgCmd) { if (i.second > 0) recvPerMsgCmd.push_back(Pair(i.first, i.second)); } obj.push_back(Pair("bytesrecv_per_msg", recvPerMsgCmd)); ret.push_back(obj); } return ret; } UniValue addnode(const UniValue& params, bool fHelp) { string strCommand; if (params.size() == 2) strCommand = params[1].get_str(); if (fHelp || params.size() != 2 || (strCommand != "onetry" && strCommand != "add" && strCommand != "remove")) throw runtime_error( "addnode \"node\" \"add|remove|onetry\"\n" "\nAttempts add or remove a node from the addnode list.\n" "Or try a connection to a node once.\n" "\nArguments:\n" "1. \"node\" (string, required) The node (see getpeerinfo for nodes)\n" "2. \"command\" (string, required) 'add' to add a node to the list, 'remove' to remove a node from the list, 'onetry' to try a connection to the node once\n" "\nExamples:\n" + HelpExampleCli("addnode", "\"192.168.0.6:5511\" \"onetry\"") + HelpExampleRpc("addnode", "\"192.168.0.6:5511\", \"onetry\"") ); if(!g_connman) throw JSONRPCError(RPC_CLIENT_P2P_DISABLED, "Error: Peer-to-peer functionality missing or disabled"); string strNode = params[0].get_str(); if (strCommand == "onetry") { CAddress addr; g_connman->OpenNetworkConnection(addr, NULL, strNode.c_str()); return NullUniValue; } if (strCommand == "add") { if(!g_connman->AddNode(strNode)) throw JSONRPCError(RPC_CLIENT_NODE_ALREADY_ADDED, "Error: Node already added"); } else if(strCommand == "remove") { if(!g_connman->RemoveAddedNode(strNode)) throw JSONRPCError(RPC_CLIENT_NODE_NOT_ADDED, "Error: Node has not been added."); } return NullUniValue; } UniValue disconnectnode(const UniValue& params, bool fHelp) { if (fHelp || params.size() != 1) throw runtime_error( "disconnectnode \"node\" \n" "\nImmediately disconnects from the specified node.\n" "\nArguments:\n" "1. \"node\" (string, required) The node (see getpeerinfo for nodes)\n" "\nExamples:\n" + HelpExampleCli("disconnectnode", "\"192.168.0.6:5511\"") + HelpExampleRpc("disconnectnode", "\"192.168.0.6:5511\"") ); if(!g_connman) throw JSONRPCError(RPC_CLIENT_P2P_DISABLED, "Error: Peer-to-peer functionality missing or disabled"); bool ret = g_connman->DisconnectNode(params[0].get_str()); if (!ret) throw JSONRPCError(RPC_CLIENT_NODE_NOT_CONNECTED, "Node not found in connected nodes"); return NullUniValue; } UniValue getaddednodeinfo(const UniValue& params, bool fHelp) { if (fHelp || params.size() < 1 || params.size() > 2) throw runtime_error( "getaddednodeinfo dummy ( \"node\" )\n" "\nReturns information about the given added node, or all added nodes\n" "(note that onetry addnodes are not listed here)\n" "\nArguments:\n" "1. dummy (boolean, required) Kept for historical purposes but ignored\n" "2. \"node\" (string, optional) If provided, return information about this specific node, otherwise all nodes are returned.\n" "\nResult:\n" "[\n" " {\n" " \"addednode\" : \"192.168.0.201\", (string) The node ip address or name (as provided to addnode)\n" " \"connected\" : true|false, (boolean) If connected\n" " \"addresses\" : [ (list of objects) Only when connected = true\n" " {\n" " \"address\" : \"192.168.0.201:5511\", (string) The vnet server IP and port we're connected to\n" " \"connected\" : \"outbound\" (string) connection, inbound or outbound\n" " }\n" " ]\n" " }\n" " ,...\n" "]\n" "\nExamples:\n" + HelpExampleCli("getaddednodeinfo", "true") + HelpExampleCli("getaddednodeinfo", "true \"192.168.0.201\"") + HelpExampleRpc("getaddednodeinfo", "true, \"192.168.0.201\"") ); if(!g_connman) throw JSONRPCError(RPC_CLIENT_P2P_DISABLED, "Error: Peer-to-peer functionality missing or disabled"); std::vector<AddedNodeInfo> vInfo = g_connman->GetAddedNodeInfo(); if (params.size() == 2) { bool found = false; for (const AddedNodeInfo& info : vInfo) { if (info.strAddedNode == params[1].get_str()) { vInfo.assign(1, info); found = true; break; } } if (!found) { throw JSONRPCError(RPC_CLIENT_NODE_NOT_ADDED, "Error: Node has not been added."); } } UniValue ret(UniValue::VARR); for (const AddedNodeInfo& info : vInfo) { UniValue obj(UniValue::VOBJ); obj.push_back(Pair("addednode", info.strAddedNode)); obj.push_back(Pair("connected", info.fConnected)); UniValue addresses(UniValue::VARR); if (info.fConnected) { UniValue address(UniValue::VOBJ); address.push_back(Pair("address", info.resolvedAddress.ToString())); address.push_back(Pair("connected", info.fInbound ? "inbound" : "outbound")); addresses.push_back(address); } obj.push_back(Pair("addresses", addresses)); ret.push_back(obj); } return ret; } UniValue getnettotals(const UniValue& params, bool fHelp) { if (fHelp || params.size() > 0) throw runtime_error( "getnettotals\n" "\nReturns information about network traffic, including bytes in, bytes out,\n" "and current time.\n" "\nResult:\n" "{\n" " \"totalbytesrecv\": n, (numeric) Total bytes received\n" " \"totalbytessent\": n, (numeric) Total bytes sent\n" " \"timemillis\": t, (numeric) Total cpu time\n" " \"uploadtarget\":\n" " {\n" " \"timeframe\": n, (numeric) Length of the measuring timeframe in seconds\n" " \"target\": n, (numeric) Target in bytes\n" " \"target_reached\": true|false, (boolean) True if target is reached\n" " \"serve_historical_blocks\": true|false, (boolean) True if serving historical blocks\n" " \"bytes_left_in_cycle\": t, (numeric) Bytes left in current time cycle\n" " \"time_left_in_cycle\": t (numeric) Seconds left in current time cycle\n" " }\n" "}\n" "\nExamples:\n" + HelpExampleCli("getnettotals", "") + HelpExampleRpc("getnettotals", "") ); if(!g_connman) throw JSONRPCError(RPC_CLIENT_P2P_DISABLED, "Error: Peer-to-peer functionality missing or disabled"); UniValue obj(UniValue::VOBJ); obj.push_back(Pair("totalbytesrecv", g_connman->GetTotalBytesRecv())); obj.push_back(Pair("totalbytessent", g_connman->GetTotalBytesSent())); obj.push_back(Pair("timemillis", GetTimeMillis())); UniValue outboundLimit(UniValue::VOBJ); outboundLimit.push_back(Pair("timeframe", g_connman->GetMaxOutboundTimeframe())); outboundLimit.push_back(Pair("target", g_connman->GetMaxOutboundTarget())); outboundLimit.push_back(Pair("target_reached", g_connman->OutboundTargetReached(false))); outboundLimit.push_back(Pair("serve_historical_blocks", !g_connman->OutboundTargetReached(true))); outboundLimit.push_back(Pair("bytes_left_in_cycle", g_connman->GetOutboundTargetBytesLeft())); outboundLimit.push_back(Pair("time_left_in_cycle", g_connman->GetMaxOutboundTimeLeftInCycle())); obj.push_back(Pair("uploadtarget", outboundLimit)); return obj; } static UniValue GetNetworksInfo() { UniValue networks(UniValue::VARR); for(int n=0; n<NET_MAX; ++n) { enum Network network = static_cast<enum Network>(n); if(network == NET_UNROUTABLE) continue; proxyType proxy; UniValue obj(UniValue::VOBJ); GetProxy(network, proxy); obj.push_back(Pair("name", GetNetworkName(network))); obj.push_back(Pair("limited", IsLimited(network))); obj.push_back(Pair("reachable", IsReachable(network))); obj.push_back(Pair("proxy", proxy.IsValid() ? proxy.proxy.ToStringIPPort() : string())); obj.push_back(Pair("proxy_randomize_credentials", proxy.randomize_credentials)); networks.push_back(obj); } return networks; } UniValue getnetworkinfo(const UniValue& params, bool fHelp) { if (fHelp || params.size() != 0) throw runtime_error( "getnetworkinfo\n" "Returns an object containing various state info regarding P2P networking.\n" "\nResult:\n" "{\n" " \"version\": xxxxx, (numeric) the server version\n" " \"subversion\": \"/VNet Core:x.x.x/\", (string) the server subversion string\n" " \"protocolversion\": xxxxx, (numeric) the protocol version\n" " \"localservices\": \"xxxxxxxxxxxxxxxx\", (string) the services we offer to the network\n" " \"localrelay\": true|false, (bool) true if transaction relay is requested from peers\n" " \"timeoffset\": xxxxx, (numeric) the time offset\n" " \"connections\": xxxxx, (numeric) the number of connections\n" " \"networkactive\": true|false, (bool) whether p2p networking is enabled\n" " \"networks\": [ (array) information per network\n" " {\n" " \"name\": \"xxx\", (string) network (ipv4, ipv6 or onion)\n" " \"limited\": true|false, (boolean) is the network limited using -onlynet?\n" " \"reachable\": true|false, (boolean) is the network reachable?\n" " \"proxy\": \"host:port\" (string) the proxy that is used for this network, or empty if none\n" " }\n" " ,...\n" " ],\n" " \"relayfee\": x.xxxxxxxx, (numeric) minimum relay fee for non-free transactions in " + CURRENCY_UNIT + "/kB\n" " \"localaddresses\": [ (array) list of local addresses\n" " {\n" " \"address\": \"xxxx\", (string) network address\n" " \"port\": xxx, (numeric) network port\n" " \"score\": xxx (numeric) relative score\n" " }\n" " ,...\n" " ]\n" " \"warnings\": \"...\" (string) any network warnings (such as alert messages) \n" "}\n" "\nExamples:\n" + HelpExampleCli("getnetworkinfo", "") + HelpExampleRpc("getnetworkinfo", "") ); LOCK(cs_main); UniValue obj(UniValue::VOBJ); obj.push_back(Pair("version", CLIENT_VERSION)); obj.push_back(Pair("subversion", strSubVersion)); obj.push_back(Pair("protocolversion",PROTOCOL_VERSION)); if(g_connman) obj.push_back(Pair("localservices", strprintf("%016x", g_connman->GetLocalServices()))); obj.push_back(Pair("localrelay", fRelayTxes)); obj.push_back(Pair("timeoffset", GetTimeOffset())); if (g_connman) { obj.push_back(Pair("networkactive", g_connman->GetNetworkActive())); obj.push_back(Pair("connections", (int)g_connman->GetNodeCount(CConnman::CONNECTIONS_ALL))); } obj.push_back(Pair("networks", GetNetworksInfo())); obj.push_back(Pair("relayfee", ValueFromAmount(::minRelayTxFee.GetFeePerK()))); UniValue localAddresses(UniValue::VARR); { LOCK(cs_mapLocalHost); BOOST_FOREACH(const PAIRTYPE(CNetAddr, LocalServiceInfo) &item, mapLocalHost) { UniValue rec(UniValue::VOBJ); rec.push_back(Pair("address", item.first.ToString())); rec.push_back(Pair("port", item.second.nPort)); rec.push_back(Pair("score", item.second.nScore)); localAddresses.push_back(rec); } } obj.push_back(Pair("localaddresses", localAddresses)); obj.push_back(Pair("warnings", GetWarnings("statusbar"))); return obj; } UniValue setban(const UniValue& params, bool fHelp) { string strCommand; if (params.size() >= 2) strCommand = params[1].get_str(); if (fHelp || params.size() < 2 || (strCommand != "add" && strCommand != "remove")) throw runtime_error( "setban \"ip(/netmask)\" \"add|remove\" (bantime) (absolute)\n" "\nAttempts add or remove a IP/Subnet from the banned list.\n" "\nArguments:\n" "1. \"ip(/netmask)\" (string, required) The IP/Subnet (see getpeerinfo for nodes ip) with a optional netmask (default is /32 = single ip)\n" "2. \"command\" (string, required) 'add' to add a IP/Subnet to the list, 'remove' to remove a IP/Subnet from the list\n" "3. \"bantime\" (numeric, optional) time in seconds how long (or until when if [absolute] is set) the ip is banned (0 or empty means using the default time of 24h which can also be overwritten by the -bantime startup argument)\n" "4. \"absolute\" (boolean, optional) If set, the bantime must be a absolute timestamp in seconds since epoch (Jan 1 1970 GMT)\n" "\nExamples:\n" + HelpExampleCli("setban", "\"192.168.0.6\" \"add\" 86400") + HelpExampleCli("setban", "\"192.168.0.0/24\" \"add\"") + HelpExampleRpc("setban", "\"192.168.0.6\", \"add\" 86400") ); if(!g_connman) throw JSONRPCError(RPC_CLIENT_P2P_DISABLED, "Error: Peer-to-peer functionality missing or disabled"); CSubNet subNet; CNetAddr netAddr; bool isSubnet = false; if (params[0].get_str().find("/") != string::npos) isSubnet = true; if (!isSubnet) { CNetAddr resolved; LookupHost(params[0].get_str().c_str(), resolved, false); netAddr = resolved; } else LookupSubNet(params[0].get_str().c_str(), subNet); if (! (isSubnet ? subNet.IsValid() : netAddr.IsValid()) ) throw JSONRPCError(RPC_CLIENT_NODE_ALREADY_ADDED, "Error: Invalid IP/Subnet"); if (strCommand == "add") { if (isSubnet ? g_connman->IsBanned(subNet) : g_connman->IsBanned(netAddr)) throw JSONRPCError(RPC_CLIENT_NODE_ALREADY_ADDED, "Error: IP/Subnet already banned"); int64_t banTime = 0; //use standard bantime if not specified if (params.size() >= 3 && !params[2].isNull()) banTime = params[2].get_int64(); bool absolute = false; if (params.size() == 4 && params[3].isTrue()) absolute = true; isSubnet ? g_connman->Ban(subNet, BanReasonManuallyAdded, banTime, absolute) : g_connman->Ban(netAddr, BanReasonManuallyAdded, banTime, absolute); } else if(strCommand == "remove") { if (!( isSubnet ? g_connman->Unban(subNet) : g_connman->Unban(netAddr) )) throw JSONRPCError(RPC_MISC_ERROR, "Error: Unban failed"); } return NullUniValue; } UniValue listbanned(const UniValue& params, bool fHelp) { if (fHelp || params.size() != 0) throw runtime_error( "listbanned\n" "\nList all banned IPs/Subnets.\n" "\nExamples:\n" + HelpExampleCli("listbanned", "") + HelpExampleRpc("listbanned", "") ); if(!g_connman) throw JSONRPCError(RPC_CLIENT_P2P_DISABLED, "Error: Peer-to-peer functionality missing or disabled"); banmap_t banMap; g_connman->GetBanned(banMap); UniValue bannedAddresses(UniValue::VARR); for (banmap_t::iterator it = banMap.begin(); it != banMap.end(); it++) { CBanEntry banEntry = (*it).second; UniValue rec(UniValue::VOBJ); rec.push_back(Pair("address", (*it).first.ToString())); rec.push_back(Pair("banned_until", banEntry.nBanUntil)); rec.push_back(Pair("ban_created", banEntry.nCreateTime)); rec.push_back(Pair("ban_reason", banEntry.banReasonToString())); bannedAddresses.push_back(rec); } return bannedAddresses; } UniValue clearbanned(const UniValue& params, bool fHelp) { if (fHelp || params.size() != 0) throw runtime_error( "clearbanned\n" "\nClear all banned IPs.\n" "\nExamples:\n" + HelpExampleCli("clearbanned", "") + HelpExampleRpc("clearbanned", "") ); if(!g_connman) throw JSONRPCError(RPC_CLIENT_P2P_DISABLED, "Error: Peer-to-peer functionality missing or disabled"); g_connman->ClearBanned(); return NullUniValue; } UniValue setnetworkactive(const UniValue& params, bool fHelp) { if (fHelp || params.size() != 1) { throw runtime_error( "setnetworkactive true|false\n" "Disable/enable all p2p network activity." ); } if (!g_connman) { throw JSONRPCError(RPC_CLIENT_P2P_DISABLED, "Error: Peer-to-peer functionality missing or disabled"); } g_connman->SetNetworkActive(params[0].get_bool()); return g_connman->GetNetworkActive(); }
[ "lion_912@mail.ru" ]
lion_912@mail.ru