blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
3
264
content_id
stringlengths
40
40
detected_licenses
listlengths
0
85
license_type
stringclasses
2 values
repo_name
stringlengths
5
140
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringclasses
905 values
visit_date
timestamp[us]date
2015-08-09 11:21:18
2023-09-06 10:45:07
revision_date
timestamp[us]date
1997-09-14 05:04:47
2023-09-17 19:19:19
committer_date
timestamp[us]date
1997-09-14 05:04:47
2023-09-06 06:22:19
github_id
int64
3.89k
681M
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
22 values
gha_event_created_at
timestamp[us]date
2012-06-07 00:51:45
2023-09-14 21:58:39
gha_created_at
timestamp[us]date
2008-03-27 23:40:48
2023-08-21 23:17:38
gha_language
stringclasses
141 values
src_encoding
stringclasses
34 values
language
stringclasses
1 value
is_vendor
bool
1 class
is_generated
bool
2 classes
length_bytes
int64
3
10.4M
extension
stringclasses
115 values
content
stringlengths
3
10.4M
authors
listlengths
1
1
author_id
stringlengths
0
158
ffb7c42c5d04c1c8d3736690b5b3b4b60b760647
1b7bc0c8810624c79e1dade01bb63177058f1a28
/Voltron/Source/UnitTests/DataStructures/Trees/BinaryTrees/CompleteBinaryTree_tests.cpp
252c65177d9cf7966d6e657959c85949901f6ffe
[ "MIT" ]
permissive
ernestyalumni/HrdwCCppCUDA
61f123359fb585f279a32a19ba64dfdb60a4f66f
ad067fd4e605c230ea87bdc36cc38341e681a1e0
refs/heads/master
2023-07-21T06:00:51.881770
2023-04-26T13:58:57
2023-04-26T13:58:57
109,069,731
3
0
null
null
null
null
UTF-8
C++
false
false
3,841
cpp
#include "DataStructures/Trees/BinaryTrees/CompleteBinaryTree.h" #include <boost/test/unit_test.hpp> #include <cstddef> using DataStructures::Trees::BinaryTrees::CompleteBinaryTree; BOOST_AUTO_TEST_SUITE(DataStructures) BOOST_AUTO_TEST_SUITE(Trees) BOOST_AUTO_TEST_SUITE(BinaryTrees) BOOST_AUTO_TEST_SUITE(CompleteBinaryTree_tests) template <typename T, std::size_t N> class TestCompleteBinaryTree : public CompleteBinaryTree<T, N> { public: using CompleteBinaryTree<T, N>::CompleteBinaryTree; using CompleteBinaryTree<T, N>::find; using CompleteBinaryTree<T, N>::operator[]; }; class TestCompleteBinaryTreeFixture { public: TestCompleteBinaryTreeFixture(): t_{} { t_.push_back_no_check(3); t_.push_back_no_check(9); t_.push_back_no_check(5); t_.push_back_no_check(14); t_.push_back_no_check(10); t_.push_back_no_check(6); t_.push_back_no_check(8); t_.push_back_no_check(17); t_.push_back_no_check(15); t_.push_back_no_check(13); t_.push_back_no_check(23); t_.push_back_no_check(12); } ~TestCompleteBinaryTreeFixture() = default; TestCompleteBinaryTree<int, 12> t_; }; //------------------------------------------------------------------------------ //------------------------------------------------------------------------------ BOOST_AUTO_TEST_CASE(DefaultConstructs) { CompleteBinaryTree<int, 69> t {}; BOOST_TEST(t.size() == 0); } //------------------------------------------------------------------------------ //------------------------------------------------------------------------------ BOOST_AUTO_TEST_CASE(ConstructsDynamically) { { CompleteBinaryTree<int, 16>* pcba {new CompleteBinaryTree<int, 16>{}}; delete pcba; } { TestCompleteBinaryTree<int, 15>* pcba { new TestCompleteBinaryTree<int, 15>{}}; pcba->push_back_no_check(5); pcba->push_back_no_check(32); pcba->push_back_no_check(8); pcba->push_back_no_check(42); pcba->push_back_no_check(36); pcba->push_back_no_check(12); pcba->push_back_no_check(9); pcba->push_back_no_check(44); pcba->push_back_no_check(87); pcba->push_back_no_check(54); pcba->push_back_no_check(39); pcba->push_back_no_check(53); BOOST_TEST(pcba->size() == 12); BOOST_TEST((*pcba)[1] == 5); BOOST_TEST((*pcba)[2] == 32); BOOST_TEST((*pcba)[3] == 8); delete pcba; } } //------------------------------------------------------------------------------ //------------------------------------------------------------------------------ BOOST_AUTO_TEST_CASE(PushBackNoCheckBuildsCompleteBinaryTree) { CompleteBinaryTree<int, 12> t {}; t.push_back_no_check(3); t.push_back_no_check(9); t.push_back_no_check(5); t.push_back_no_check(14); t.push_back_no_check(10); t.push_back_no_check(6); t.push_back_no_check(8); t.push_back_no_check(17); t.push_back_no_check(15); t.push_back_no_check(13); t.push_back_no_check(23); t.push_back_no_check(12); BOOST_TEST(t.size() == 12); BOOST_TEST(t.is_full()); } //------------------------------------------------------------------------------ //------------------------------------------------------------------------------ BOOST_FIXTURE_TEST_CASE(NodesFollowBreadthFirst, TestCompleteBinaryTreeFixture) { BOOST_TEST(t_[1] == 3); BOOST_TEST(t_[2] == 9); BOOST_TEST(t_[3] == 5); BOOST_TEST(t_[4] == 14); BOOST_TEST(t_[5] == 10); BOOST_TEST(t_[6] == 6); BOOST_TEST(t_[7] == 8); BOOST_TEST(t_[8] == 17); BOOST_TEST(t_[9] == 15); BOOST_TEST(t_[10] == 13); BOOST_TEST(t_[11] == 23); BOOST_TEST(t_[12] == 12); } BOOST_AUTO_TEST_SUITE_END() // CompleteBinaryTree_tests BOOST_AUTO_TEST_SUITE_END() // BinaryTrees BOOST_AUTO_TEST_SUITE_END() // Trees BOOST_AUTO_TEST_SUITE_END() // DataStructures
[ "ernestyalumni@gmail.com" ]
ernestyalumni@gmail.com
6ff26d1bd651239c2519f681ef81b574049b2442
82d483e0a15b3d39adbc945e7a78d3632c9b7d15
/Competition/CodeForces/CFR663-2/A.cpp
3d658651cee334485903fd398381787135192a0c
[]
no_license
PandeyAditya14/APS2020
18dfb3f1ef48f27a0b50c1184c3749eab25e2a1a
d0f69b56de5656732aff547a88a7c79a77bcf6b1
refs/heads/master
2022-08-10T13:40:13.119026
2022-08-01T03:22:37
2022-08-01T03:22:37
236,135,975
1
1
null
null
null
null
UTF-8
C++
false
false
210
cpp
#include<bits/stdc++.h> using namespace std; int main(){ int t; cin>>t; while(t--){ int n; cin>>n; while(n){ cout<<n--<<" "; } cout<<"\n"; } }
[ "aditya141199@gmail.com" ]
aditya141199@gmail.com
6e6b9c869a9071cedaf0fe21271b7867d76716ff
da07650c741a0f3c3095ec886c06c56c5f6b5296
/src/graf_iono_absorp.cpp
4416eaf18c7eb6ca77634f8e54b3ab42d1423e04
[]
no_license
asousa/3dWIPP
85824c84479d47b6f56bf97480320b966f266b13
1db101c19c23d7c1692e486b738a7c4cde707025
refs/heads/master
2020-12-25T14:48:41.816763
2017-04-01T03:25:57
2017-04-01T03:25:57
66,517,594
2
0
null
null
null
null
UTF-8
C++
false
false
5,020
cpp
#include <wipp.h> double graf_iono_absorp(float lat, long f, double mlt) { // A model of VLF wave power attenuation between 100 and 1000 km altitude. // Based on Graf and Cohen 2013: "Analysis of experimentally validated // trans-ionospheric attenuation estimates of VLF signals", figure 7. // Data picked from plots and fitted to an exponential function. // Interpolates / extrapolates in log space for frequencies other than 2kHz // and 20kHz. Day / night variation is weighted using a sigmoid function // with a slope arbitrarily set to "looks good". // --APS 1.2017 asousa@stanford.edu const double mltslope = 0.5; double mlt_mod = fmod(mlt,24); float db2i, db20i; double db2iLog, db20iLog, m, c; double p20D[3] = {215.74122661, 11.9624129, 9.01400095}; double p20N[3] = {117.54370955, 7.40762459, 0.90050155}; double p2D[3] = {55.94274086, 11.91761368, 4.09353494}; double p2N[3] = {11.99682851, 9.53682009, 0.23617706}; double a20D, a20N, a2D, a2N; double mD, mN, cD, cN; double aD, aN; double s1, s2, s; // # Attenuation values at 20kHz and 2kHz, day and night a20D = log10(p20D[0]* exp(-fabs(lat)/p20D[1]) + p20D[2]); a20N = log10(p20N[0]* exp(-fabs(lat)/p20N[1]) + p20N[2]); a2D = log10(p2D[0] * exp(-fabs(lat)/p2D[1]) + p2D[2]); a2N = log10(p2N[0] * exp(-fabs(lat)/p2N[1]) + p2N[2]); // Interpolate / extrapolate between 20kHz and 2kHz values (log space) // Should be m'=m/(log10(20)-log10(2)) but denominator = 1 mD = (a20D - a2D); // day slope mN = (a20N - a2N); // night slope cD = (a2D + a20D)/2. - mD*0.8010; // day offset cN = (a2N + a20N)/2. - mN*0.8010; // night offset // (this is just (log10(2)+log10(20))/2 ) // now extrapolate to desired f value in log10 domain // get 10^results aD = pow(10.0, mD*log10(f/1000.0) + cD); aN = pow(10.0, mD*log10(f/1000.0) + cN); // # Weight day + night according to MLT (logistic function) s1 = 1.0/(1 + exp(((mlt_mod) - 18)/mltslope)); s2 = 1.0/(1 + exp(((mlt_mod) - 6)/mltslope)); s = s1 - s2; // # Select day curve for s = 1, night curve for s = 0 return s*aD + (1.0 - s)*aN; } double total_input_power(double flash_pos_sm[3], double i0, double latmin, double latmax, double lonmin, double lonmax, double wmin, double wmax, int itime_in[2]) { // Determine the total input power tracked by the set of guide rays: double tot_pwr = 0; double pwr = 0; // Integration step sizes double dlat = 0.05; double dlon = 0.05; double dw = 5*2*PI; double tmp_coords[3] = {0,0,0}; double x_sm[3]; double mlt; // cout << "now we are here" << endl; for (double w = wmin + dw/2; w < wmax; w+=dw) { for (double lat = latmin + dlat/2; lat < latmax; lat+=dlat) { for (double lon=lonmin; lon < lonmax; lon+=dlon) { // cout << "(" << lat << ", " << lon << ")\n"; tmp_coords = {1 + H_IONO/R_E, lat, lon}; degcar(tmp_coords); mag_to_sm_d_(itime_in, tmp_coords, x_sm); mlt = MLT(itime_in, lon); pwr = input_power_scaling(flash_pos_sm, x_sm, lat, w, i0, mlt); double dist_lat = (R_E + H_IONO)*dlat*D2R; double dist_lon = (R_E + H_IONO)*dlon*cos(D2R*lat)*D2R; // Latitude distance longitude distance freq dist // cout << "dist_lat: " << dist_lat << ", dist_lon: " << dist_lon << "\n"; tot_pwr += pwr * dist_lat * dist_lon * dw; } } } return tot_pwr; } double input_power_scaling(double* flash_loc, double* ray_loc, double mag_lat, double w, double i0, double MLT) { // Returns ray power at the top of the ionosphere // per unit in area and frequency. double theta; // angle between two vectors double gc_distance; // great circle distance between two points double dist_tot; double xi; double S, S_vert; double attn_factor; double w_sq, f; double v1[3]; double v2[3]; f = w/(2.0*PI); cardeg(flash_loc, v1); cardeg(ray_loc, v2); gc_distance = haversine_distance(v1[1], v1[2], v2[1], v2[2]); // total distance up to ionosphere: dist_tot = hypot(gc_distance, H_IONO); xi = atan2(gc_distance, H_IONO); // Incident angle w_sq = pow( w , 2 ); S = ( (1/Z0) * pow( (H_E*i0*2E-7*(sin(xi)/dist_tot)*w*(P_A-P_B)) , 2 ) / ( (w_sq+pow(P_A,2))*(w_sq+pow(P_B,2)) ) ) ; S_vert = S * cos(xi) ; // factor for vert prop. // Ionosphere absorption model attn_factor = pow(10,-(graf_iono_absorp(mag_lat,f, MLT )/10) ); S_vert = S_vert * attn_factor; // cout << "HEY!" << endl; // printf("i0: %2.3f, dist_tot: %2.3f, xi: %2.3f, S_vert; %e\n",i0, dist_tot, xi, S_vert); return S_vert; }
[ "asousa@stanford.edu" ]
asousa@stanford.edu
7c50556f8ea7e5fd65f5d1343082c1854c5c8e83
9c434860e19c54936a9c4626779690a98025b022
/include/scene/2D/Transform2D.hpp
d3febcc051ba7d73e3353a8acef04545b77b21fd
[]
no_license
lihaisa/kabanero
2ddf8fbfbd7e774211037cde373a3e00108a899f
7b6cb99118f9acd0f373c7ecc6e6a1a0db29da2f
refs/heads/master
2021-01-11T11:33:31.464529
2016-12-18T21:25:43
2016-12-18T21:25:43
79,952,386
0
0
null
null
null
null
UTF-8
C++
false
false
648
hpp
#pragma once #include "scene/Transform.hpp" #include <glm/vec2.hpp> #include <glm/mat3x3.hpp> #include <glm/gtx/matrix_transform_2d.hpp> class Transform2D : public Transform<glm::vec2, float, glm::mat3x3> { public: Transform2D() : Transform(glm::vec2(), 0.0f, glm::vec2(1, 1)) {} Transform2D( glm::vec2 pos, float rot, glm::vec2 scale ) : Transform(pos, rot, scale) {} protected: auto recomputeTransform() const -> void { _transform = glm::mat3x3(); _transform = glm::scale(_transform, _scale); _transform = glm::rotate(_transform, _rotation); _transform = glm::translate(_transform, _position); } };
[ "jtoikka@gmail.com" ]
jtoikka@gmail.com
89854c399312c14249bfccd7958dda871c454f81
804ae217470c87d6ab9d6617b068e32a35360be1
/BuffaloEngine/Src/Rendering/BuffVertexShader.cpp
df441d749e0b310643bf265eae7f8dc9cb346a2c
[]
no_license
leag37/BuffaloEngine
47c2182f5b2609dc83d6be08f97425c0aea36af3
404f1709dd81bcca137d17ac8095fe63115da793
refs/heads/master
2021-01-01T20:35:42.946898
2014-09-21T23:48:19
2014-09-21T23:48:19
20,843,390
0
0
null
2014-09-21T23:48:19
2014-06-14T22:32:35
C++
UTF-8
C++
false
false
1,379
cpp
// Filename: BuffVertexShader.cpp // Author: Gael Huber #include "Rendering\BuffVertexShader.h" #include "Rendering\BuffRenderDevice.h" namespace BuffaloEngine { /** * Default constructor */ VertexShader::VertexShader() : Shader() { } /** * Constructor * @param * const std::string& The name of the shader * @param * const std::string& The entry point of the shader * @param * const RenderDevice& The device used to create the shader */ VertexShader::VertexShader(const std::string& fileName, const std::string& entryPoint, const RenderDevice& device) : Shader(entryPoint) { std::string filePath = "Resources/Shaders/" + fileName; std::string profile = "vs_5_0"; Initialize(filePath, entryPoint, profile, device); } /** * Initialization implementation * @param * const RenderDevice& The device used to create the shader * @return * bool Return true if successful */ bool VertexShader::InitializeImpl(const RenderDevice& device) { HRESULT result = device.GetD3DDevice()->CreateVertexShader(_shaderBuffer->GetBufferPointer(), _shaderBuffer->GetBufferSize(), NULL, &_shader); return !FAILED(result); } /** * Get a pointer to the shader * @return * ID3D11VertexShader* The shader */ ID3D11VertexShader* VertexShader::GetShader() const { return _shader; } } // Namespace
[ "gael.scott.huber@gmail.com" ]
gael.scott.huber@gmail.com
3b75d3bd8d09ccba34325bf0880cf847ab02bde9
87463f28aa1a36172340072dfae58a81185c1ad6
/src/H264AVCCommonLib/Transform.cpp
c4d9e8288e77d74d36f5776da02ac9a762151e12
[]
no_license
coder2004/h264ext
7e44f978dbc0fc9c1de1da3ef842129017a96521
1b0e838ac53440cb048cac65de4ad89249206543
refs/heads/master
2020-03-07T13:27:01.163366
2018-03-31T05:09:39
2018-03-31T05:09:39
127,500,972
0
0
null
null
null
null
UTF-8
C++
false
false
38,916
cpp
/* ******************************************************************************** COPYRIGHT AND WARRANTY INFORMATION Copyright 2009-2012, International Telecommunications Union, Geneva The Fraunhofer HHI hereby donate this source code to the ITU, with the following understanding: 1. Fraunhofer HHI retain the right to do whatever they wish with the contributed source code, without limit. 2. Fraunhofer HHI retain full patent rights (if any exist) in the technical content of techniques and algorithms herein. 3. The ITU shall make this code available to anyone, free of license or royalty fees. DISCLAIMER OF WARRANTY These software programs are available to the user without any license fee or royalty on an "as is" basis. The ITU disclaims any and all warranties, whether express, implied, or statutory, including any implied warranties of merchantability or of fitness for a particular purpose. In no event shall the contributor or the ITU be liable for any incidental, punitive, or consequential damages of any kind whatsoever arising from the use of these programs. This disclaimer of warranty extends to the user of these programs and user's customers, employees, agents, transferees, successors, and assigns. The ITU does not represent or warrant that the programs furnished hereunder are free of infringement of any third-party patents. Commercial implementations of ITU-T Recommendations, including shareware, may be subject to royalty fees to patent holders. Information regarding the ITU-T patent policy is available from the ITU Web site at http://www.itu.int. THIS IS NOT A GRANT OF PATENT RIGHTS - SEE THE ITU-T PATENT POLICY. ******************************************************************************** */ #include "H264AVCCommonLib.h" #include "H264AVCCommonLib/Tables.h" #include "H264AVCCommonLib/Transform.h" H264AVC_NAMESPACE_BEGIN // for SVC to AVC rewrite CoeffLevelPred::CoeffLevelPred() { } CoeffLevelPred::~CoeffLevelPred() { } ErrVal CoeffLevelPred::ScaleCoeffLevels( TCoeff* piCoeff, TCoeff* piRefCoeff, UInt uiQp, UInt uiRefQp, UInt uiNumCoeffs ) { // DETERMINE THE SCALING FACTOR const Int aiScaleFactor[6] = { 8, 9, 10, 11, 13, 14 }; Int iDeltaQp = uiRefQp - uiQp + 54; Int iScale = aiScaleFactor[ iDeltaQp % 6 ]; Int iShift = iDeltaQp / 6; // PREDICT THE COEFFICIENTS for( UInt n = 0; n < uiNumCoeffs; n++ ) { piCoeff[n] = ( ( iScale * piRefCoeff[n] ) << iShift ) >> 12; } return Err::m_nOK; } Transform::Transform() : m_bClip( true ) , m_storeCoeffFlag (true) { } Transform::~Transform() { } ErrVal Transform::create( Transform*& rpcTransform ) { rpcTransform = new Transform; ROT( NULL == rpcTransform ); return Err::m_nOK; } ErrVal Transform::destroy() { delete this; return Err::m_nOK; } ErrVal Transform::invTransform4x4Blk( Pel* puc, Int iStride, TCoeff* piCoeff ) { xInvTransform4x4Blk( puc, iStride, piCoeff ); return Err::m_nOK; } ErrVal Transform::invTransformDcCoeff( TCoeff* piCoeff, Int iQpScale ) { Int aai[4][4]; Int tmp1, tmp2; Int x, y; TCoeff *piWCoeff = piCoeff; for( x = 0; x < 4; x++, piCoeff += 0x10 ) { tmp1 = piCoeff[0x00] + piCoeff[0x80]; tmp2 = piCoeff[0xc0] + piCoeff[0x40]; aai[x][0] = tmp1 + tmp2; aai[x][3] = tmp1 - tmp2; tmp1 = piCoeff[0x00] - piCoeff[0x80]; tmp2 = piCoeff[0x40] - piCoeff[0xc0]; aai[x][1] = tmp1 + tmp2; aai[x][2] = tmp1 - tmp2; } for( y = 0; y < 4; y++ ) { tmp1 = aai[0][y] + aai[2][y]; tmp2 = aai[3][y] + aai[1][y]; piWCoeff[0x00] = (( tmp1 + tmp2 ) * iQpScale + 2 ) >> 2; piWCoeff[0x30] = (( tmp1 - tmp2 ) * iQpScale + 2 ) >> 2; tmp1 = aai[0][y] - aai[2][y]; tmp2 = aai[1][y] - aai[3][y]; piWCoeff[0x10] = (( tmp1 + tmp2 ) * iQpScale + 2 ) >> 2; piWCoeff[0x20] = (( tmp1 - tmp2 ) * iQpScale + 2 ) >> 2; piWCoeff += 0x40; } return Err::m_nOK; } ErrVal Transform::invTransformDcCoeff( TCoeff* piCoeff, const Int iQpScale, const Int iQpPer ) { Int aai[4][4]; Int tmp1, tmp2; Int x, y; TCoeff *piWCoeff = piCoeff; for( x = 0; x < 4; x++, piCoeff += 0x10 ) { tmp1 = piCoeff[0x00] + piCoeff[0x80]; tmp2 = piCoeff[0xc0] + piCoeff[0x40]; aai[x][0] = tmp1 + tmp2; aai[x][3] = tmp1 - tmp2; tmp1 = piCoeff[0x00] - piCoeff[0x80]; tmp2 = piCoeff[0x40] - piCoeff[0xc0]; aai[x][1] = tmp1 + tmp2; aai[x][2] = tmp1 - tmp2; } if( iQpPer < 6) { const Int iAdd = 1 << (5-iQpPer); const Int iShift = 6-iQpPer; for( y = 0; y < 4; y++ ) { tmp1 = aai[0][y] + aai[2][y]; tmp2 = aai[3][y] + aai[1][y]; piWCoeff[0x00] = ((( tmp1 + tmp2 ) * iQpScale + iAdd ) >> iShift); piWCoeff[0x30] = ((( tmp1 - tmp2 ) * iQpScale + iAdd ) >> iShift); tmp1 = aai[0][y] - aai[2][y]; tmp2 = aai[1][y] - aai[3][y]; piWCoeff[0x10] = ((( tmp1 + tmp2 ) * iQpScale + iAdd ) >> iShift ); piWCoeff[0x20] = ((( tmp1 - tmp2 ) * iQpScale + iAdd ) >> iShift ); piWCoeff += 0x40; } } else { const Int iShift = iQpPer-6; for( y = 0; y < 4; y++ ) { tmp1 = aai[0][y] + aai[2][y]; tmp2 = aai[3][y] + aai[1][y]; piWCoeff[0x00] = (( tmp1 + tmp2 ) * iQpScale ) << iShift; piWCoeff[0x30] = (( tmp1 - tmp2 ) * iQpScale ) << iShift; tmp1 = aai[0][y] - aai[2][y]; tmp2 = aai[1][y] - aai[3][y]; piWCoeff[0x10] = (( tmp1 + tmp2 ) * iQpScale ) << iShift; piWCoeff[0x20] = (( tmp1 - tmp2 ) * iQpScale ) << iShift; piWCoeff += 0x40; } } return Err::m_nOK; } Void Transform::xForTransformLumaDc( TCoeff* piCoeff ) { Int aai[4][4]; Int tmp1, tmp2; Int x, y; TCoeff *piWCoeff = piCoeff; for( x = 0; x < 4; x++, piCoeff += 0x10 ) { tmp1 = piCoeff[0x00] + piCoeff[0x80]; tmp2 = piCoeff[0xc0] + piCoeff[0x40]; aai[x][0] = tmp1 + tmp2; aai[x][3] = tmp1 - tmp2; tmp1 = piCoeff[0x00] - piCoeff[0x80]; tmp2 = piCoeff[0x40] - piCoeff[0xc0]; aai[x][1] = tmp1 + tmp2; aai[x][2] = tmp1 - tmp2; } for( y = 0; y < 4; y++ ) { tmp1 = aai[0][y] + aai[2][y]; tmp2 = aai[3][y] + aai[1][y]; piWCoeff[0x00] = (tmp1 + tmp2)/2; piWCoeff[0x30] = (tmp1 - tmp2)/2; tmp1 = aai[0][y] - aai[2][y]; tmp2 = aai[1][y] - aai[3][y]; piWCoeff[0x10] = (tmp1 + tmp2)/2; piWCoeff[0x20] = (tmp1 - tmp2)/2; piWCoeff += 0x40; } } Void Transform::xInvTransform4x4Blk( Pel* puc, Int iStride, TCoeff* piCoeff ) { Int aai[4][4]; Int tmp1, tmp2; Int x, y; Int iStride2=2*iStride; Int iStride3=3*iStride; for( x = 0; x < 4; x++, piCoeff+=4 ) { tmp1 = piCoeff[0] + piCoeff[2]; tmp2 = (piCoeff[3]>>1) + piCoeff[1]; aai[0][x] = tmp1 + tmp2; aai[3][x] = tmp1 - tmp2; tmp1 = piCoeff[0] - piCoeff[2]; tmp2 = (piCoeff[1]>>1) - piCoeff[3]; aai[1][x] = tmp1 + tmp2; aai[2][x] = tmp1 - tmp2; } for( y = 0; y < 4; y++, puc ++ ) { tmp1 = aai[y][0] + aai[y][2]; tmp2 = (aai[y][3]>>1) + aai[y][1]; puc[0] = gClip( xRound( tmp1 + tmp2) + puc[0] ); puc[iStride3] = gClip( xRound( tmp1 - tmp2) + puc[iStride3] ); tmp1 = aai[y][0] - aai[y][2]; tmp2 = (aai[y][1]>>1) - aai[y][3]; puc[iStride] = gClip( xRound( tmp1 + tmp2) + puc[iStride] ); puc[iStride2] = gClip( xRound( tmp1 - tmp2) + puc[iStride2] ); } } Void Transform::xInvTransform4x4BlkNoAc( Pel* puc, Int iStride, TCoeff* piCoeff ) { Int iDc = xRound( piCoeff[0] ); ROFVS( iDc ); for( Int y = 0; y < 4; y++ ) { puc[0] = gClip( iDc + puc[0] ); puc[1] = gClip( iDc + puc[0] ); puc[2] = gClip( iDc + puc[0] ); puc[3] = gClip( iDc + puc[0] ); puc += iStride; } } Void Transform::xInvTransform4x4BlkNoAc( XPel* puc, Int iStride, TCoeff* piCoeff ) { Int iDc = xRound( piCoeff[0] ); ROFVS( iDc ); for( Int y = 0; y < 4; y++ ) { puc[0] = xClip( iDc + puc[0] ); puc[1] = xClip( iDc + puc[0] ); puc[2] = xClip( iDc + puc[0] ); puc[3] = xClip( iDc + puc[0] ); puc += iStride; } } Void Transform::invTransformChromaDc( TCoeff* piCoeff ) { Int tmp1, tmp2; Int d00, d01, d10, d11; d00 = piCoeff[0]; d10 = piCoeff[32]; d01 = piCoeff[16]; d11 = piCoeff[48]; tmp1 = d00 + d11; tmp2 = d10 + d01; piCoeff[ 0] = ( tmp1 + tmp2 ) >> 5; piCoeff[48] = ( tmp1 - tmp2 ) >> 5; tmp1 = d00 - d11; tmp2 = d01 - d10; piCoeff[32] = ( tmp1 + tmp2 ) >> 5; piCoeff[16] = ( tmp1 - tmp2 ) >> 5; } Void Transform::xForTransformChromaDc( TCoeff* piCoeff ) { Int tmp1, tmp2; Int d00, d01, d10, d11; d00 = piCoeff[0]; d10 = piCoeff[16]; d01 = piCoeff[32]; d11 = piCoeff[48]; tmp1 = d00 + d11; tmp2 = d10 + d01; piCoeff[ 0] = (tmp1 + tmp2); piCoeff[48] = (tmp1 - tmp2); tmp1 = d00 - d11; tmp2 = d01 - d10; piCoeff[16] = (tmp1 + tmp2); piCoeff[32] = (tmp1 - tmp2); } Void Transform::xQuantDequantNonUniformLuma( TCoeff* piQCoeff, TCoeff* piCoeff, const QpParameter& rcQp, const UChar* pucScale, UInt& ruiDcAbs, UInt& ruiAcAbs ) { Int iLevel = piCoeff[0]; UInt uiSign = ((UInt)iLevel)>>31; Int iAdd = ( 1 << 3 ) >> rcQp.per(); iLevel = abs( iLevel ) * g_aaiQuantCoef[ rcQp.rem() ][0]; if( pucScale ) { iLevel = ( iLevel << 4 ) / pucScale[0]; } iLevel = ( iLevel + 2 * rcQp.add() ) >> ( rcQp.bits() + 1 ); ruiDcAbs += iLevel; iLevel = ( uiSign ? -iLevel : iLevel ); piQCoeff[0] = iLevel; UInt uiAcAbs = 0; for( Int n = 1; n < 16; n++ ) { iLevel = piCoeff[n]; Int iSign = iLevel; iLevel = abs( iLevel ) * g_aaiQuantCoef[rcQp.rem()][n]; if( pucScale ) { iLevel = ( iLevel << 4 ) / pucScale[n]; } iLevel = ( iLevel + rcQp.add() ) >> rcQp.bits(); if( 0 != iLevel ) { iSign >>= 31; Int iDeScale = g_aaiDequantCoef[rcQp.rem()][n]; uiAcAbs += iLevel; iLevel ^= iSign; iLevel -= iSign; piQCoeff[n] = iLevel; if( pucScale ) { piCoeff[n] = ( ( iLevel*iDeScale*pucScale[n] + iAdd ) << rcQp.per() ) >> 4; } else { piCoeff[n] = iLevel*iDeScale << rcQp.per(); } } else { piQCoeff[n] = 0; piCoeff [n] = 0; } } ruiAcAbs += uiAcAbs; return; } Void Transform::xQuantDequantNonUniformChroma( TCoeff* piQCoeff, TCoeff* piCoeff, const QpParameter& rcQp, const UChar* pucScale, UInt& ruiDcAbs, UInt& ruiAcAbs ) { Int iAdd = ( 1 << 3 ) >> rcQp.per(); { Int iLevel = piCoeff[0]; UInt uiSign = ((UInt)iLevel)>>31; iLevel = ( abs( iLevel ) * g_aaiQuantCoef[ rcQp.rem() ][0] ); if( pucScale ) { iLevel = ( iLevel << 4 ) / pucScale[0]; } iLevel = ( iLevel + 2*rcQp.add() ) >> ( rcQp.bits() + 1 ); ruiDcAbs += iLevel; iLevel = ( uiSign ? -iLevel : iLevel ); piQCoeff[0] = iLevel; // dequantize DC also piCoeff [0] = iLevel * ( pucScale ? pucScale[0] : 16 ) * g_aaiDequantCoef[rcQp.rem()][0] << rcQp.per(); } UInt uiAcAbs = 0; for( int n = 1; n < 16; n++ ) { Int iLevel = piCoeff[n]; Int iSign = iLevel; iLevel = ( abs( iLevel ) * g_aaiQuantCoef[rcQp.rem()][n] ); if( pucScale ) { iLevel = ( iLevel << 4 ) / pucScale[n]; } iLevel = ( iLevel + rcQp.add() ) >> rcQp.bits(); if( 0 != iLevel ) { iSign >>= 31; Int iDeScale = g_aaiDequantCoef[rcQp.rem()][n]; uiAcAbs += iLevel; iLevel ^= iSign; iLevel -= iSign; piQCoeff[n] = iLevel; if( pucScale ) { piCoeff[n] = ( ( iLevel*iDeScale*pucScale[n] + iAdd ) << rcQp.per() ) >> 4; } else { piCoeff[n] = iLevel*iDeScale << rcQp.per(); } } else { piQCoeff[n] = 0; piCoeff[n] = 0; } } ruiAcAbs += uiAcAbs; return; } Void Transform::xQuantDequantUniform4x4( TCoeff* piQCoeff, TCoeff* piCoeff, const QpParameter& rcQp, const UChar* pucScale, UInt& ruiAbsSum ) { Int n = 0; ruiAbsSum = 0; Int iAdd = ( 1 << 3 ) >> rcQp.per(); for( ; n < 16; n++ ) { Int iLevel = piCoeff[n]; Int iSign = iLevel; iLevel = abs( iLevel ) * g_aaiQuantCoef[rcQp.rem()][n]; if( pucScale ) { iLevel = ( iLevel << 4 ) / pucScale[n]; } iLevel = ( iLevel + rcQp.add() ) >> rcQp.bits(); if( 0 != iLevel ) { iSign >>= 31; Int iDeScale = g_aaiDequantCoef[ rcQp.rem() ][ n ]; ruiAbsSum += iLevel; iLevel ^= iSign; iLevel -= iSign; piQCoeff[n] = iLevel; if( pucScale ) { piCoeff[n] = ( ( iLevel*iDeScale*pucScale[n] + iAdd ) << rcQp.per() ) >> 4; } else { piCoeff[n] = iLevel*iDeScale << rcQp.per(); } } else { piQCoeff[n] = 0; piCoeff [n] = 0; } } } // for SVC to AVC rewrite ErrVal Transform::predict4x4Blk( TCoeff* piCoeff, TCoeff* piRefCoeff, UInt uiRefQp, UInt& ruiAbsSum ) { // DECLARATIONS TCoeff cPredCoeff[16]; // PREDICT THE COEFFICIENTS ScaleCoeffLevels( cPredCoeff, piRefCoeff, getLumaQp().value(), uiRefQp, 16 ); // ADJUST THE TRANSMITTED COEFFICIENTS for( Int n=0; n<16; n++ ) { ruiAbsSum -= (piCoeff[n] >0) ? piCoeff[n].getCoeff() : (-1*piCoeff[n].getCoeff()); piCoeff[n] -= cPredCoeff[n]; ruiAbsSum += (piCoeff[n]>0) ? piCoeff[n].getCoeff() : (-1*piCoeff[n].getCoeff()); } return Err::m_nOK; } ErrVal Transform::predict8x8Blk( TCoeff* piCoeff, TCoeff* piRefCoeff, UInt uiRefQp, UInt& ruiAbsSum ) { // DECLARATIONS TCoeff cPredCoeff[64]; // PREDICT THE COEFFICIENTS ScaleCoeffLevels( cPredCoeff, piRefCoeff, getLumaQp().value(), uiRefQp, 64 ); // ADJUST THE TRANSMITTED COEFFICIENTS for( Int n=0; n<64; n++ ) { ruiAbsSum -= (piCoeff[n] >0) ? piCoeff[n].getCoeff() : -1*piCoeff[n].getCoeff(); piCoeff[n] -= cPredCoeff[n]; ruiAbsSum += (piCoeff[n]>0) ? piCoeff[n].getCoeff() : -1*piCoeff[n].getCoeff(); } return Err::m_nOK; } ErrVal Transform::predictMb16x16( TCoeff* piCoeff, TCoeff* piRef, UInt uiRefQp, UInt& ruiDcAbs, UInt& ruiAcAbs ) { UInt uiAbs = 0; for( UInt n=0; n<16; n++ ) predict4x4Blk( &piCoeff[n<<4], &piRef[n<<4], uiRefQp, uiAbs ); return Err::m_nOK; } ErrVal Transform::predictChromaBlocks( UInt uiComp, TCoeff* piCoeff, TCoeff* piRef, UInt uiRefQp, UInt& ruiDcAbs, UInt& ruiAcAbs ) { // DECLARATIONS TCoeff cScaledRef[64]; int i; for( UInt x=0; x<0x40; x+=0x10 ) { ScaleCoeffLevels( &cScaledRef[x], &piRef[x], getChromaQp( uiComp ).value(), uiRefQp, 16 ); for( UInt n=0; n<16; n++ ) { piCoeff[x+n] -= cScaledRef[x+n]; } } // RECOMPUTE THE COEFFICIENT COUNTS ruiAcAbs = 0; ruiDcAbs = 0; for(i=0; i<64; i++ ) ruiAcAbs += abs( (Int)piCoeff[i] ); for( i=0; i<64; i+=16 ) ruiDcAbs += abs( (Int)piCoeff[i] ); ruiAcAbs -= ruiDcAbs; return Err::m_nOK; } ErrVal Transform::predictScaledACCoeffs( UInt uiComp, TCoeff *piCoeff, TCoeff *piRef, UInt uiRefQp, const UChar* pucScale ) { // DECLARATIONS TCoeff cPredCoeff[64] = {0}; UInt uiDcAbs=0, uiAcAbs=0; // Predict the chroma coefficients predictChromaBlocks( uiComp, cPredCoeff, piRef, uiRefQp, uiDcAbs, uiAcAbs ); for( UInt i=0; i<64; i++ ) cPredCoeff[i] = -cPredCoeff[i]; // Scale the coefficients const QpParameter& rcCQp = ( uiComp ? m_cCrQp : m_cCbQp ); x4x4DequantChroma( &cPredCoeff[0x00], &cPredCoeff[0x00], rcCQp, pucScale ); x4x4DequantChroma( &cPredCoeff[0x10], &cPredCoeff[0x10], rcCQp, pucScale ); x4x4DequantChroma( &cPredCoeff[0x20], &cPredCoeff[0x20], rcCQp, pucScale ); x4x4DequantChroma( &cPredCoeff[0x30], &cPredCoeff[0x30], rcCQp, pucScale ); // Substitute for( UInt x=0x00; x<0x40; x+=0x10 ) for( UInt n=1; n<16; n++ ) piCoeff[x+n] = cPredCoeff[x+n]; return Err::m_nOK; } ErrVal Transform::predictScaledChromaCoeffs( TCoeff *piCoeff, TCoeff *piRef, UInt uiRefCbQp, UInt uiRefCrQp, const UChar* pucScaleCb, const UChar* pucScaleCr ) { // DECLARATIONS TCoeff cPredCoeff[0x80] = {0}; UInt uiDcAbs=0, uiAcAbs=0; // Predict the chroma coefficients predictChromaBlocks( 0, cPredCoeff+0x00, piRef+0x00, uiRefCbQp, uiDcAbs, uiAcAbs ); predictChromaBlocks( 1, cPredCoeff+0x40, piRef+0x40, uiRefCrQp, uiDcAbs, uiAcAbs ); for( UInt uiBlkOff = 0x00; uiBlkOff < 0x80; uiBlkOff += 0x10 ) { TCoeff* piPredBlk = cPredCoeff + uiBlkOff; TCoeff* piCoefBlk = piCoeff + uiBlkOff; for( UInt i0 = 0; i0 < 16; i0++ ) { piPredBlk[i0] = -piPredBlk[i0]; } const UChar* pucScale = ( uiBlkOff >= 0x40 ? pucScaleCr : pucScaleCb ); const QpParameter& rcQp = ( uiBlkOff >= 0x40 ? m_cCrQp : m_cCbQp ); x4x4DequantChroma( piPredBlk, piPredBlk, rcQp, pucScale ); for( UInt i1 = 0; i1 < 16; i1++ ) { piCoefBlk[i1] = piPredBlk[i1]; } } return Err::m_nOK; } ErrVal Transform::addPrediction4x4Blk( TCoeff* piCoeff, TCoeff* piRefCoeff, UInt uiQp, UInt uiRefQp, UInt &uiCoded ) { // DECLARATIONS TCoeff cPredCoeff[16]; // PREDICT THE COEFFICIENTS ScaleCoeffLevels( cPredCoeff, piRefCoeff, uiQp, uiRefQp, 16 ); // ADJUST THE TRANSMITTED COEFFICIENTS for( Int n=0; n<16; n++ ) { piCoeff[n] += cPredCoeff[n]; if( piCoeff[n] ) uiCoded++; } return Err::m_nOK; } ErrVal Transform::addPrediction8x8Blk( TCoeff* piCoeff, TCoeff* piRefCoeff, UInt uiQp, UInt uiRefQp, Bool& bCoded ) { // DECLARATIONS TCoeff cPredCoeff[64]; // PREDICT THE COEFFICIENTS ScaleCoeffLevels( cPredCoeff, piRefCoeff, uiQp, uiRefQp, 64 ); // ADJUST THE TRANSMITTED COEFFICIENTS for( Int n=0; n<64; n++ ) { piCoeff[n] += cPredCoeff[n]; if( piCoeff[n] ) bCoded = true; } return Err::m_nOK; } ErrVal Transform::addPredictionChromaBlocks( TCoeff* piCoeff, TCoeff* piRef, UInt uiQp, UInt uiRefQp, Bool& bDCflag, Bool& bACflag ) { // DECLARATIONS TCoeff cScaledRef[64]; for( UInt x=0; x<0x40; x+=0x10 ) { ScaleCoeffLevels( &cScaledRef[x], &piRef[x], uiQp, uiRefQp, 16 ); for( UInt n=0; n<16; n++ ) { piCoeff[x+n] += cScaledRef[x+n]; if( piCoeff[x+n] ) { if( n%16 ) bACflag = true; else bDCflag = true; } } } return Err::m_nOK; } ErrVal Transform::invTransformChromaBlocks( Pel* puc, Int iStride, TCoeff* piCoeff ) { xInvTransform4x4Blk( puc, iStride, piCoeff + 0x00 ); xInvTransform4x4Blk( puc + 4, iStride, piCoeff + 0x10 ); puc += iStride << 2; xInvTransform4x4Blk( puc, iStride, piCoeff + 0x20 ); xInvTransform4x4Blk( puc + 4, iStride, piCoeff + 0x30 ); return Err::m_nOK; } ErrVal Transform::transform4x4Blk( YuvMbBuffer* pcOrgData, YuvMbBuffer* pcPelData, TCoeff* piCoeff, const UChar* pucScale, UInt& ruiAbsSum ) { TCoeff aiTemp[64]; XPel* pOrg = pcOrgData->getLumBlk(); XPel* pRec = pcPelData->getLumBlk(); Int iStride = pcPelData->getLStride(); xForTransform4x4Blk( pOrg, pRec, iStride, aiTemp ); xQuantDequantUniform4x4( piCoeff, aiTemp, m_cLumaQp, pucScale, ruiAbsSum ); if( m_storeCoeffFlag ) // store the coefficients { for( UInt ui=0; ui<16; ui++ ) { piCoeff[ui].setLevel( aiTemp[ui].getCoeff() ); } } ROTRS( 0 == ruiAbsSum, Err::m_nOK ); xInvTransform4x4Blk( pRec, iStride, aiTemp ); return Err::m_nOK; } ErrVal Transform::transform8x8BlkCGS( YuvMbBuffer* pcOrgData, YuvMbBuffer* pcPelData, TCoeff* piCoeff, TCoeff* piCoeffBase, const UChar* pucScale, UInt& ruiAbsSum ) { TCoeff aiTemp[64]; Int normAdjust[] = { 8, 9, 5, 9, 8, 9, 5, 9 }; XPel* pOrg = pcOrgData->getLumBlk(); XPel* pRec = pcPelData->getLumBlk(); Int iStride = pcPelData->getLStride(); xForTransform8x8Blk ( pOrg, pRec, iStride, aiTemp ); UInt ui=0; // get the baselayer coefficients for( ui=0; ui<64; ui++ ) aiTemp[ui] = ( aiTemp[ui].getCoeff() - ( ( normAdjust[ui/8]*normAdjust[ui%8]*(Int)piCoeffBase[ui].getLevel() + (1<<5) ) >> 6 ) ); xQuantDequantUniform8x8 ( piCoeff, aiTemp, m_cLumaQp, pucScale, ruiAbsSum ); // add the base layer coeff back for( ui=0; ui<64; ui++ ) { aiTemp[ui] = piCoeffBase[ui].getLevel() + aiTemp[ui].getCoeff(); // store the coefficients if( m_storeCoeffFlag ) piCoeff[ui].setLevel( aiTemp[ui].getCoeff() ); } invTransform8x8Blk ( pRec, iStride, aiTemp ); return Err::m_nOK; } ErrVal Transform::transform4x4BlkCGS( YuvMbBuffer* pcOrgData, YuvMbBuffer* pcPelData, TCoeff* piCoeff, TCoeff* piCoeffBase, const UChar* pucScale, UInt& ruiAbsSum ) { TCoeff aiTemp[64]; Int normAdjust[] = { 4, 5, 4, 5 }; XPel* pOrg = pcOrgData->getLumBlk(); XPel* pRec = pcPelData->getLumBlk(); Int iStride = pcPelData->getLStride(); xForTransform4x4Blk( pOrg, pRec, iStride, aiTemp ); UInt ui=0; // get the baselayer coefficients for( ui=0; ui<16; ui++ ) aiTemp[ui] = ( aiTemp[ui].getCoeff() - ( ( normAdjust[ui/4]*normAdjust[ui%4]*(Int)piCoeffBase[ui].getLevel() + (1<<5) ) >> 6 ) ); xQuantDequantUniform4x4( piCoeff, aiTemp, m_cLumaQp, pucScale, ruiAbsSum ); // add the base layer coeff back for( ui=0; ui<16; ui++ ) { aiTemp[ui] = piCoeffBase[ui].getLevel() + aiTemp[ui].getCoeff(); // store the coefficients if( m_storeCoeffFlag ) piCoeff[ui].setLevel( aiTemp[ui].getCoeff() ); } xInvTransform4x4Blk( pRec, iStride, aiTemp ); return Err::m_nOK; } Void Transform::xForTransform4x4Blk( XPel* pucOrg, XPel* pucRec, Int iStride, TCoeff* piPredCoeff ) { Int aai[4][4]; Int tmp1, tmp2; for( Int y = 0; y < 4; y++ ) { Int ai[4]; ai[0] = pucOrg[0] - pucRec[0]; ai[1] = pucOrg[1] - pucRec[1]; ai[2] = pucOrg[2] - pucRec[2]; ai[3] = pucOrg[3] - pucRec[3]; tmp1 = ai[0] + ai[3]; tmp2 = ai[1] + ai[2]; aai[0][y] = tmp1 + tmp2; aai[2][y] = tmp1 - tmp2; tmp1 = ai[0] - ai[3]; tmp2 = ai[1] - ai[2]; aai[1][y] = tmp1 * 2 + tmp2 ; aai[3][y] = tmp1 - tmp2 * 2; pucRec += iStride; pucOrg += iStride; } for( Int x = 0; x < 4; x++, piPredCoeff++ ) { tmp1 = aai[x][0] + aai[x][3]; tmp2 = aai[x][1] + aai[x][2]; piPredCoeff[0] = tmp1 + tmp2; piPredCoeff[8] = tmp1 - tmp2; tmp1 = aai[x][0] - aai[x][3]; tmp2 = aai[x][1] - aai[x][2]; piPredCoeff[4] = tmp1 * 2 + tmp2; piPredCoeff[12] = tmp1 - tmp2 * 2; } } Void Transform::xInvTransform4x4Blk( XPel* puc, Int iStride, TCoeff* piCoeff ) { Int aai[4][4]; Int tmp1, tmp2; Int x, y; Int iStride2=2*iStride; Int iStride3=3*iStride; for( x = 0; x < 4; x++, piCoeff+=4 ) { tmp1 = piCoeff[0] + piCoeff[2]; tmp2 = (piCoeff[3]>>1) + piCoeff[1]; aai[0][x] = tmp1 + tmp2; aai[3][x] = tmp1 - tmp2; tmp1 = piCoeff[0] - piCoeff[2]; tmp2 = (piCoeff[1]>>1) - piCoeff[3]; aai[1][x] = tmp1 + tmp2; aai[2][x] = tmp1 - tmp2; } for( y = 0; y < 4; y++, puc ++ ) { tmp1 = aai[y][0] + aai[y][2]; tmp2 = (aai[y][3]>>1) + aai[y][1]; puc[0] = xClip( xRound( tmp1 + tmp2) + puc[0] ); puc[iStride3] = xClip( xRound( tmp1 - tmp2) + puc[iStride3] ); tmp1 = aai[y][0] - aai[y][2]; tmp2 = (aai[y][1]>>1) - aai[y][3]; puc[iStride] = xClip( xRound( tmp1 + tmp2) + puc[iStride] ); puc[iStride2] = xClip( xRound( tmp1 - tmp2) + puc[iStride2] ); } } ErrVal Transform::transformMb16x16( YuvMbBuffer* pcOrgData, YuvMbBuffer* pcPelData, TCoeff* piCoeff, const UChar* pucScale, UInt& ruiDcAbs, UInt& ruiAcAbs ) { XPel* pucOrg = pcOrgData->getMbLumAddr(); XPel* pucRec = pcPelData->getMbLumAddr(); Int iStride = pcPelData->getLStride(); TCoeff aiCoeff[256]; Int x, n; Int iOffset = 0; for( n = 0; n < 16; n+=4 ) { for( x = 0; x < 4; x++ ) { UInt uiBlk = x+n; Int iOffsetBlk = iOffset + (x << 2); xForTransform4x4Blk( pucOrg + iOffsetBlk, pucRec + iOffsetBlk, iStride, &aiCoeff[uiBlk<<4] ); } iOffset += iStride << 2; } xForTransformLumaDc( aiCoeff ); for( n = 0; n < 16; n ++ ) { xQuantDequantNonUniformLuma( &piCoeff[n<<4], &aiCoeff[n<<4], m_cLumaQp, pucScale, ruiDcAbs, ruiAcAbs ); } for( n = 0; n < 16; n ++ ) { aiCoeff[n<<4] = piCoeff[n<<4]; } Int iQpScale = ( g_aaiDequantCoef[m_cLumaQp.rem()][0] << m_cLumaQp.per() ); if( pucScale ) { iQpScale = ( iQpScale * pucScale[0] ) >> 4; } invTransformDcCoeff( aiCoeff, iQpScale ); iOffset = 0; for( n = 0; n < 16; n += 4 ) { for( x = 0; x < 4; x++ ) { UInt uiBlk = x+n; Int iOffsetBlk = iOffset + (x << 2); xInvTransform4x4Blk( pucRec + iOffsetBlk, iStride, &aiCoeff[uiBlk<<4] ); } iOffset += iStride << 2; } for( x = 0; x < 256; x++ ) { piCoeff[x].setLevel( aiCoeff[x].getCoeff() ); } return Err::m_nOK; } ErrVal Transform::transformChromaBlocks( XPel* pucOrg, XPel* pucRec, const CIdx cCIdx, Int iStride, TCoeff* piCoeff, TCoeff* piQuantCoeff, const UChar* pucScale, UInt& ruiDcAbs, UInt& ruiAcAbs ) { Int iOffset = 0; xForTransform4x4Blk( pucOrg + iOffset, pucRec + iOffset, iStride, piQuantCoeff + 0x00); iOffset += 4; xForTransform4x4Blk( pucOrg + iOffset, pucRec + iOffset, iStride, piQuantCoeff + 0x10); iOffset = 4*iStride; xForTransform4x4Blk( pucOrg + iOffset, pucRec + iOffset, iStride, piQuantCoeff + 0x20); iOffset += 4; xForTransform4x4Blk( pucOrg + iOffset, pucRec + iOffset, iStride, piQuantCoeff + 0x30); xForTransformChromaDc( piQuantCoeff ); const QpParameter& rcCQp = ( cCIdx.plane() ? m_cCrQp : m_cCbQp ); xQuantDequantNonUniformChroma( piCoeff + 0x00, piQuantCoeff + 0x00, rcCQp, pucScale, ruiDcAbs, ruiAcAbs ); xQuantDequantNonUniformChroma( piCoeff + 0x10, piQuantCoeff + 0x10, rcCQp, pucScale, ruiDcAbs, ruiAcAbs ); xQuantDequantNonUniformChroma( piCoeff + 0x20, piQuantCoeff + 0x20, rcCQp, pucScale, ruiDcAbs, ruiAcAbs ); xQuantDequantNonUniformChroma( piCoeff + 0x30, piQuantCoeff + 0x30, rcCQp, pucScale, ruiDcAbs, ruiAcAbs ); if( m_storeCoeffFlag ) { for( UInt ui=0; ui<64; ui++ ) { piCoeff[ui].setLevel( piQuantCoeff[ui].getCoeff() ); // store the dequantized coeffs in TCoeff.level } } return Err::m_nOK; } ErrVal Transform::transformChromaBlocksCGS( XPel* pucOrg, XPel* pucRec, const CIdx cCIdx, Int iStride, TCoeff* piCoeff, TCoeff* piQuantCoeff, TCoeff* piCoeffBase, const UChar* pucScale, UInt& ruiDcAbs, UInt& ruiAcAbs ) { Int iOffset = 0; Int normAdjust[] = { 4, 5, 4, 5}; xForTransform4x4Blk( pucOrg + iOffset, pucRec + iOffset, iStride, piQuantCoeff + 0x00); iOffset += 4; xForTransform4x4Blk( pucOrg + iOffset, pucRec + iOffset, iStride, piQuantCoeff + 0x10); iOffset = 4*iStride; xForTransform4x4Blk( pucOrg + iOffset, pucRec + iOffset, iStride, piQuantCoeff + 0x20); iOffset += 4; xForTransform4x4Blk( pucOrg + iOffset, pucRec + iOffset, iStride, piQuantCoeff + 0x30); xForTransformChromaDc( piQuantCoeff ); // substract the baselayer coefficients for( UInt uiOffset = 0; uiOffset<0x40; uiOffset+=0x10 ) { piQuantCoeff[uiOffset+0] = ( piQuantCoeff[uiOffset+0].getCoeff() - ( ( piCoeffBase[uiOffset+0].getLevel() + (1<<4) ) >> 5 ) ); for( UInt ui=1; ui<16; ui++ ) piQuantCoeff[uiOffset+ui] = ( piQuantCoeff[uiOffset+ui].getCoeff() - ( ( normAdjust[ui/4] * normAdjust[ui%4] * piCoeffBase[uiOffset+ui].getLevel() + (1<<5) ) >> 6 ) ); } const QpParameter& rcCQp = ( cCIdx.plane() ? m_cCrQp : m_cCbQp ); xQuantDequantNonUniformChroma( piCoeff + 0x00, piQuantCoeff + 0x00, rcCQp, pucScale, ruiDcAbs, ruiAcAbs ); xQuantDequantNonUniformChroma( piCoeff + 0x10, piQuantCoeff + 0x10, rcCQp, pucScale, ruiDcAbs, ruiAcAbs ); xQuantDequantNonUniformChroma( piCoeff + 0x20, piQuantCoeff + 0x20, rcCQp, pucScale, ruiDcAbs, ruiAcAbs ); xQuantDequantNonUniformChroma( piCoeff + 0x30, piQuantCoeff + 0x30, rcCQp, pucScale, ruiDcAbs, ruiAcAbs ); // add the base layer coeff back and also store the dequantized coeffs for( UInt ui=0; ui<64; ui++ ) { piQuantCoeff[ui] = piCoeffBase[ui].getLevel() + piQuantCoeff[ui].getCoeff(); if( m_storeCoeffFlag ) piCoeff[ui].setLevel( piQuantCoeff[ui].getCoeff() ); } return Err::m_nOK; } ErrVal Transform::invTransformChromaBlocks( XPel* puc, Int iStride, TCoeff* piCoeff ) { xInvTransform4x4Blk( puc, iStride, piCoeff + 0x00 ); xInvTransform4x4Blk( puc + 4, iStride, piCoeff + 0x10 ); puc += iStride << 2; xInvTransform4x4Blk( puc, iStride, piCoeff + 0x20 ); xInvTransform4x4Blk( puc + 4, iStride, piCoeff + 0x30 ); return Err::m_nOK; } ErrVal Transform::invTransform4x4Blk( XPel* puc, Int iStride, TCoeff* piCoeff ) { xInvTransform4x4Blk( puc, iStride, piCoeff ); return Err::m_nOK; } ErrVal Transform::transform8x8Blk( YuvMbBuffer* pcOrgData, YuvMbBuffer* pcPelData, TCoeff* piCoeff, const UChar* pucScale, UInt& ruiAbsSum ) { TCoeff aiTemp[64]; XPel* pOrg = pcOrgData->getLumBlk(); XPel* pRec = pcPelData->getLumBlk(); Int iStride = pcPelData->getLStride(); xForTransform8x8Blk ( pOrg, pRec, iStride, aiTemp ); xQuantDequantUniform8x8 ( piCoeff, aiTemp, m_cLumaQp, pucScale, ruiAbsSum ); if( m_storeCoeffFlag ) { for( UInt ui=0; ui<64; ui++ ) piCoeff[ui].setLevel( aiTemp[ui].getCoeff() ); // store the dequantized coeffs are stored in TCoeff.level } invTransform8x8Blk ( pRec, iStride, aiTemp ); return Err::m_nOK; } ErrVal Transform::invTransform8x8Blk( XPel* puc, Int iStride, TCoeff* piCoeff ) { Int aai[8][8]; Int n; for( n = 0; n < 8; n++ ) { TCoeff* pi = piCoeff + n*8; Int ai1[8]; Int ai2[8]; ai1[0] = pi[0] + pi[4]; ai1[2] = pi[0] - pi[4]; ai1[4] = (pi[2]>>1) - pi[6]; ai1[6] = pi[2] + (pi[6]>>1); ai1[1] = pi[5] - pi[3] - pi[7] - (pi[7]>>1); ai1[3] = pi[1] + pi[7] - pi[3] - (pi[3]>>1);; ai1[5] = pi[7] - pi[1] + pi[5] + (pi[5]>>1); ai1[7] = pi[3] + pi[5] + pi[1] + (pi[1]>>1); ai2[0] = ai1[0] + ai1[6]; ai2[6] = ai1[0] - ai1[6]; ai2[2] = ai1[2] + ai1[4]; ai2[4] = ai1[2] - ai1[4]; ai2[1] = ai1[1] + (ai1[7]>>2); ai2[7] = ai1[7] - (ai1[1]>>2); ai2[3] = ai1[3] + (ai1[5]>>2); ai2[5] = (ai1[3]>>2) - ai1[5]; aai[n][0] = ai2[0] + ai2[7]; aai[n][1] = ai2[2] + ai2[5]; aai[n][2] = ai2[4] + ai2[3]; aai[n][3] = ai2[6] + ai2[1]; aai[n][4] = ai2[6] - ai2[1]; aai[n][5] = ai2[4] - ai2[3]; aai[n][6] = ai2[2] - ai2[5]; aai[n][7] = ai2[0] - ai2[7]; } for( n = 0; n < 8; n++, puc++ ) { Int ai1[8]; Int ai2[8]; ai1[0] = aai[0][n] + aai[4][n]; ai1[1] = aai[5][n] - aai[3][n] - aai[7][n] - (aai[7][n]>>1); ai1[2] = aai[0][n] - aai[4][n]; ai1[3] = aai[1][n] + aai[7][n] - aai[3][n] - (aai[3][n]>>1); ai1[4] = (aai[2][n]>>1) - aai[6][n]; ai1[5] = aai[7][n] - aai[1][n] + aai[5][n] + (aai[5][n]>>1); ai1[6] = aai[2][n] + (aai[6][n]>>1); ai1[7] = aai[3][n] + aai[5][n] + aai[1][n] + (aai[1][n]>>1); ai2[2] = ai1[2] + ai1[4]; ai2[4] = ai1[2] - ai1[4]; ai2[0] = ai1[0] + ai1[6]; ai2[6] = ai1[0] - ai1[6]; ai2[1] = ai1[1] + (ai1[7]>>2); ai2[7] = ai1[7] - (ai1[1]>>2); ai2[3] = ai1[3] + (ai1[5]>>2); ai2[5] = (ai1[3]>>2) - ai1[5]; puc[0*iStride] = xClip( xRound( ai2[0] + ai2[7] ) + puc[0*iStride] ); puc[1*iStride] = xClip( xRound( ai2[2] + ai2[5] ) + puc[1*iStride] ); puc[2*iStride] = xClip( xRound( ai2[4] + ai2[3] ) + puc[2*iStride] ); puc[3*iStride] = xClip( xRound( ai2[6] + ai2[1] ) + puc[3*iStride] ); puc[4*iStride] = xClip( xRound( ai2[6] - ai2[1] ) + puc[4*iStride] ); puc[5*iStride] = xClip( xRound( ai2[4] - ai2[3] ) + puc[5*iStride] ); puc[6*iStride] = xClip( xRound( ai2[2] - ai2[5] ) + puc[6*iStride] ); puc[7*iStride] = xClip( xRound( ai2[0] - ai2[7] ) + puc[7*iStride] ); } return Err::m_nOK; } Void Transform::x4x4DequantChroma( TCoeff* piQCoeff, TCoeff* piCoeff, const QpParameter& rcQp, const UChar* pucScale ) { Int iAdd = ( ( 1 << 3 ) >> rcQp.per() ) << rcQp.per(); piCoeff[0] = piQCoeff[0] * ( pucScale ? pucScale[0] : 16 ) * ( g_aaiDequantCoef[rcQp.rem()][0] << rcQp.per() ); for( Int n = 1; n < 16; n++ ) { if( piQCoeff[n] ) { piCoeff[n] = piQCoeff[n] * ( g_aaiDequantCoef[rcQp.rem()][n] << rcQp.per() ); if( pucScale ) { piCoeff[n] = ( piCoeff[n] * pucScale[n] + iAdd ) >> 4; } } } } Void Transform::xForTransform8x8Blk( XPel* pucOrg, XPel* pucRec, Int iStride, TCoeff* piPredCoeff ) { Int aai[8][8]; for( Int i = 0; i < 8; i++, pucOrg += iStride, pucRec += iStride) { Int ai [8]; Int ai1 [8]; Int ai2 [8]; ai[0] = pucOrg[0] - pucRec[0]; ai[1] = pucOrg[1] - pucRec[1]; ai[2] = pucOrg[2] - pucRec[2]; ai[3] = pucOrg[3] - pucRec[3]; ai[4] = pucOrg[4] - pucRec[4]; ai[5] = pucOrg[5] - pucRec[5]; ai[6] = pucOrg[6] - pucRec[6]; ai[7] = pucOrg[7] - pucRec[7]; ai1[0] = ai[0] + ai[7]; ai1[1] = ai[1] + ai[6]; ai1[2] = ai[2] + ai[5]; ai1[3] = ai[3] + ai[4]; ai1[4] = ai[0] - ai[7]; ai1[5] = ai[1] - ai[6]; ai1[6] = ai[2] - ai[5]; ai1[7] = ai[3] - ai[4]; ai2[0] = ai1[0] + ai1[3]; ai2[1] = ai1[1] + ai1[2]; ai2[2] = ai1[0] - ai1[3]; ai2[3] = ai1[1] - ai1[2]; ai2[4] = ai1[5] + ai1[6] + ((ai1[4]>>1) + ai1[4]); ai2[5] = ai1[4] - ai1[7] - ((ai1[6]>>1) + ai1[6]); ai2[6] = ai1[4] + ai1[7] - ((ai1[5]>>1) + ai1[5]); ai2[7] = ai1[5] - ai1[6] + ((ai1[7]>>1) + ai1[7]); aai[0][i] = ai2[0] + ai2[1]; aai[2][i] = ai2[2] + (ai2[3]>>1); aai[4][i] = ai2[0] - ai2[1]; aai[6][i] = (ai2[2]>>1) - ai2[3]; aai[1][i] = ai2[4] + (ai2[7]>>2); aai[3][i] = ai2[5] + (ai2[6]>>2); aai[5][i] = ai2[6] - (ai2[5]>>2); aai[7][i] = (ai2[4]>>2) - ai2[7]; } // vertical transform for( Int n = 0; n < 8; n++, piPredCoeff++) { Int ai1[8]; Int ai2[8]; ai1[0] = aai[n][0] + aai[n][7]; ai1[1] = aai[n][1] + aai[n][6]; ai1[2] = aai[n][2] + aai[n][5]; ai1[3] = aai[n][3] + aai[n][4]; ai1[4] = aai[n][0] - aai[n][7]; ai1[5] = aai[n][1] - aai[n][6]; ai1[6] = aai[n][2] - aai[n][5]; ai1[7] = aai[n][3] - aai[n][4]; ai2[0] = ai1[0] + ai1[3]; ai2[1] = ai1[1] + ai1[2]; ai2[2] = ai1[0] - ai1[3]; ai2[3] = ai1[1] - ai1[2]; ai2[4] = ai1[5] + ai1[6] + ((ai1[4]>>1) + ai1[4]); ai2[5] = ai1[4] - ai1[7] - ((ai1[6]>>1) + ai1[6]); ai2[6] = ai1[4] + ai1[7] - ((ai1[5]>>1) + ai1[5]); ai2[7] = ai1[5] - ai1[6] + ((ai1[7]>>1) + ai1[7]); piPredCoeff[ 0] = ai2[0] + ai2[1]; piPredCoeff[16] = ai2[2] + (ai2[3]>>1); piPredCoeff[32] = ai2[0] - ai2[1]; piPredCoeff[48] = (ai2[2]>>1) - ai2[3]; piPredCoeff[ 8] = ai2[4] + (ai2[7]>>2); piPredCoeff[24] = ai2[5] + (ai2[6]>>2); piPredCoeff[40] = ai2[6] - (ai2[5]>>2); piPredCoeff[56] = (ai2[4]>>2) - ai2[7]; } } Void Transform::xQuantDequantUniform8x8( TCoeff* piQCoeff, TCoeff* piCoeff, const QpParameter& rcQp, const UChar* pucScale, UInt& ruiAbsSum ) { UInt uiAbsSum = 0; Int iAdd = ( 1 << 5 ) >> rcQp.per(); for( Int n = 0; n < 64; n++ ) { Int iLevel = piCoeff[n]; Int iSign = iLevel; iLevel = abs( iLevel ) * g_aaiQuantCoef64[ rcQp.rem() ][ n ]; if( pucScale ) { iLevel = ( iLevel << 4 ) / pucScale[ n ]; } iLevel = ( iLevel + 2*rcQp.add() ) >> ( rcQp.bits() + 1 ); if( 0 != iLevel ) { iSign >>= 31; Int iDeScale = g_aaiDequantCoef64[ rcQp.rem() ][ n ]; uiAbsSum += iLevel; iLevel ^= iSign; iLevel -= iSign; piQCoeff[n] = iLevel; if( pucScale ) { piCoeff[n] = ( (iLevel*iDeScale*pucScale[n] + iAdd) << rcQp.per() ) >> 6; } else { piCoeff[n] = ( (iLevel*iDeScale*16 + iAdd) << rcQp.per() ) >> 6; } } else { piQCoeff[n] = 0; piCoeff [n] = 0; } } ruiAbsSum = uiAbsSum; } // h264 namepace end H264AVC_NAMESPACE_END 
[ "shanhua_2004@163.com" ]
shanhua_2004@163.com
4798c705d43e98d2464319c9fd1244c044bbe864
b73e5829be90b4c81227f9368c698754499b6072
/Temp/il2cppOutput/il2cppOutput/Bulk_Generics_4.cpp
25b11d6d3ea4c2a2a975dbcb2e95b76073753c38
[]
no_license
iadrien/RunningDown
ee70f43ec455024cea884a2c66040bb7ce288d64
61d843357c6a3fb206f9231eb3f46939c9222c18
refs/heads/master
2020-03-28T05:36:17.904161
2018-09-09T01:54:47
2018-09-09T01:54:47
147,787,061
0
0
null
null
null
null
UTF-8
C++
false
false
492,749
cpp
#include "il2cpp-config.h" #ifndef _MSC_VER # include <alloca.h> #else # include <malloc.h> #endif #include <cstring> #include <string.h> #include <stdio.h> #include <cmath> #include <limits> #include <assert.h> #include <stdint.h> #include "il2cpp-class-internals.h" #include "codegen/il2cpp-codegen.h" #include "il2cpp-object-internals.h" template <typename R, typename T1> struct VirtFuncInvoker1 { typedef R (*Func)(void*, T1, const RuntimeMethod*); static inline R Invoke (Il2CppMethodSlot slot, RuntimeObject* obj, T1 p1) { const VirtualInvokeData& invokeData = il2cpp_codegen_get_virtual_invoke_data(slot, obj); return ((Func)invokeData.methodPtr)(obj, p1, invokeData.method); } }; template <typename T1> struct VirtActionInvoker1 { typedef void (*Action)(void*, T1, const RuntimeMethod*); static inline void Invoke (Il2CppMethodSlot slot, RuntimeObject* obj, T1 p1) { const VirtualInvokeData& invokeData = il2cpp_codegen_get_virtual_invoke_data(slot, obj); ((Action)invokeData.methodPtr)(obj, p1, invokeData.method); } }; // UnityEngine.Events.InvokableCall`1<System.Boolean> struct InvokableCall_1_t214452203; // System.Reflection.MethodInfo struct MethodInfo_t; // UnityEngine.Events.BaseInvokableCall struct BaseInvokableCall_t2703961024; // System.Type struct Type_t; // System.Delegate struct Delegate_t1188392813; // UnityEngine.Events.UnityAction`1<System.Boolean> struct UnityAction_1_t682124106; // System.Object[] struct ObjectU5BU5D_t2843939325; // System.ArgumentException struct ArgumentException_t132251570; // System.String struct String_t; // UnityEngine.Events.InvokableCall`1<System.Int32> struct InvokableCall_1_t3068109991; // UnityEngine.Events.UnityAction`1<System.Int32> struct UnityAction_1_t3535781894; // UnityEngine.Events.InvokableCall`1<System.Object> struct InvokableCall_1_t3197270402; // UnityEngine.Events.UnityAction`1<System.Object> struct UnityAction_1_t3664942305; // UnityEngine.Events.InvokableCall`1<System.Single> struct InvokableCall_1_t1514431012; // UnityEngine.Events.UnityAction`1<System.Single> struct UnityAction_1_t1982102915; // UnityEngine.Events.InvokableCall`1<UnityEngine.Color> struct InvokableCall_1_t2672850562; // UnityEngine.Events.UnityAction`1<UnityEngine.Color> struct UnityAction_1_t3140522465; // UnityEngine.Events.InvokableCall`1<UnityEngine.Vector2> struct InvokableCall_1_t2273393761; // UnityEngine.Events.UnityAction`1<UnityEngine.Vector2> struct UnityAction_1_t2741065664; // UnityEngine.Events.InvokableCall`2<System.Object,System.Object> struct InvokableCall_2_t362407658; // UnityEngine.Events.InvokableCall`3<System.Object,System.Object,System.Object> struct InvokableCall_3_t4059188962; // UnityEngine.Events.InvokableCall`4<System.Object,System.Object,System.Object,System.Object> struct InvokableCall_4_t2756980746; // System.IAsyncResult struct IAsyncResult_t767004451; // System.AsyncCallback struct AsyncCallback_t3962456242; // UnityEngine.Events.UnityAction`1<UnityEngine.SceneManagement.Scene> struct UnityAction_1_t2933211702; // UnityEngine.Events.UnityAction`2<System.Object,System.Object> struct UnityAction_2_t3283971887; // UnityEngine.Events.UnityAction`2<UnityEngine.SceneManagement.Scene,UnityEngine.SceneManagement.LoadSceneMode> struct UnityAction_2_t2165061829; // UnityEngine.Events.UnityAction`2<UnityEngine.SceneManagement.Scene,UnityEngine.SceneManagement.Scene> struct UnityAction_2_t1262235195; // UnityEngine.Events.UnityAction`3<System.Object,System.Object,System.Object> struct UnityAction_3_t1557236713; // UnityEngine.Events.UnityAction`4<System.Object,System.Object,System.Object,System.Object> struct UnityAction_4_t682480391; // UnityEngine.Events.UnityEvent`1<System.Boolean> struct UnityEvent_1_t978947469; // UnityEngine.Events.UnityEventBase struct UnityEventBase_t3960448221; // System.Type[] struct TypeU5BU5D_t3940880105; // System.Collections.Generic.List`1<UnityEngine.Events.BaseInvokableCall> struct List_1_t4176035766; // System.Collections.Generic.List`1<System.Object> struct List_1_t257213610; // UnityEngine.Events.UnityEvent`1<System.Int32> struct UnityEvent_1_t3832605257; // UnityEngine.Events.UnityEvent`1<System.Object> struct UnityEvent_1_t3961765668; // UnityEngine.Events.UnityEvent`1<System.Single> struct UnityEvent_1_t2278926278; // UnityEngine.Events.UnityEvent`1<UnityEngine.Color> struct UnityEvent_1_t3437345828; // UnityEngine.Events.UnityEvent`1<UnityEngine.Vector2> struct UnityEvent_1_t3037889027; // UnityEngine.Events.UnityEvent`2<System.Object,System.Object> struct UnityEvent_2_t614268397; // UnityEngine.Events.UnityEvent`3<System.Object,System.Object,System.Object> struct UnityEvent_3_t2404744798; // UnityEngine.Events.UnityEvent`4<System.Object,System.Object,System.Object,System.Object> struct UnityEvent_4_t4085588227; // UnityEngine.EventSystems.ExecuteEvents/EventFunction`1<System.Object> struct EventFunction_1_t1764640198; // UnityEngine.EventSystems.BaseEventData struct BaseEventData_t3903027533; // UnityEngine.UI.Collections.IndexedSet`1<System.Object> struct IndexedSet_1_t234526808; // System.Collections.Generic.IEnumerator`1<System.Object> struct IEnumerator_1_t3512676632; // System.NotImplementedException struct NotImplementedException_t3489357830; // System.Collections.IEnumerator struct IEnumerator_t1853284238; // System.NotSupportedException struct NotSupportedException_t1314879016; // System.Comparison`1<System.Object> struct Comparison_1_t2855037343; // UnityEngine.UI.CoroutineTween.TweenRunner`1/<Start>c__Iterator0<UnityEngine.UI.CoroutineTween.ColorTween> struct U3CStartU3Ec__Iterator0_t3860393442; // UnityEngine.UI.CoroutineTween.TweenRunner`1/<Start>c__Iterator0<UnityEngine.UI.CoroutineTween.FloatTween> struct U3CStartU3Ec__Iterator0_t30141770; // UnityEngine.UI.CoroutineTween.TweenRunner`1<UnityEngine.UI.CoroutineTween.ColorTween> struct TweenRunner_1_t3055525458; // UnityEngine.MonoBehaviour struct MonoBehaviour_t3962482529; // UnityEngine.Object struct Object_t631007953; // UnityEngine.Component struct Component_t1923634451; // UnityEngine.GameObject struct GameObject_t1113636619; // UnityEngine.Coroutine struct Coroutine_t3829159415; // UnityEngine.UI.CoroutineTween.TweenRunner`1<UnityEngine.UI.CoroutineTween.FloatTween> struct TweenRunner_1_t3520241082; // System.Collections.Generic.List`1<System.Int32> struct List_1_t128053199; // System.Collections.Generic.List`1<UnityEngine.Color32> struct List_1_t4072576034; // System.Collections.Generic.List`1<UnityEngine.UIVertex> struct List_1_t1234605051; // System.Collections.Generic.List`1<UnityEngine.Vector2> struct List_1_t3628304265; // System.Collections.Generic.List`1<UnityEngine.Vector3> struct List_1_t899420910; // System.Collections.Generic.List`1<UnityEngine.Vector4> struct List_1_t496136383; // UnityEngine.UI.ObjectPool`1<System.Object> struct ObjectPool_1_t2779729376; // System.Collections.Generic.Stack`1<System.Collections.Generic.List`1<System.Int32>> struct Stack_1_t971442654; // UnityEngine.Events.UnityAction`1<System.Collections.Generic.List`1<System.Int32>> struct UnityAction_1_t712889340; // UnityEngine.UI.ObjectPool`1<System.Collections.Generic.List`1<System.Object>> struct ObjectPool_1_t4251804118; // System.Collections.Generic.Stack`1<System.Collections.Generic.List`1<System.Object>> struct Stack_1_t1100603065; // UnityEngine.Events.UnityAction`1<System.Collections.Generic.List`1<System.Object>> struct UnityAction_1_t842049751; // UnityEngine.UI.ObjectPool`1<System.Collections.Generic.List`1<UnityEngine.Color32>> struct ObjectPool_1_t3772199246; // UnityEngine.Color32[] struct Color32U5BU5D_t3850468773; // System.Collections.Generic.Stack`1<System.Collections.Generic.List`1<UnityEngine.Color32>> struct Stack_1_t620998193; // UnityEngine.Events.UnityAction`1<System.Collections.Generic.List`1<UnityEngine.Color32>> struct UnityAction_1_t362444879; // UnityEngine.UI.ObjectPool`1<System.Collections.Generic.List`1<UnityEngine.UIVertex>> struct ObjectPool_1_t934228263; // System.Int32[] struct Int32U5BU5D_t385246372; // UnityEngine.Events.InvokableCallList struct InvokableCallList_t2498835369; // UnityEngine.Events.PersistentCallGroup struct PersistentCallGroup_t3050769227; // UnityEngine.Events.BaseInvokableCall[] struct BaseInvokableCallU5BU5D_t3944607041; // System.Collections.Generic.Dictionary`2<System.Object,System.Int32> struct Dictionary_2_t3384741; // System.Collections.Generic.Link[] struct LinkU5BU5D_t964245573; // System.Collections.Generic.IEqualityComparer`1<System.Object> struct IEqualityComparer_1_t892470886; // System.Runtime.Serialization.SerializationInfo struct SerializationInfo_t950877179; // System.Collections.Generic.Dictionary`2/Transform`1<System.Object,System.Int32,System.Collections.DictionaryEntry> struct Transform_1_t1750446691; // UnityEngine.UI.ObjectPool`1<System.Collections.Generic.List`1<System.Int32>> struct ObjectPool_1_t4122643707; // UnityEngine.UIVertex[] struct UIVertexU5BU5D_t1981460040; // System.Collections.Generic.Stack`1<System.Collections.Generic.List`1<UnityEngine.Vector4>> struct Stack_1_t1339525838; // UnityEngine.Events.UnityAction`1<System.Collections.Generic.List`1<UnityEngine.Vector4>> struct UnityAction_1_t1080972524; // System.Collections.Generic.Stack`1<System.Object> struct Stack_1_t3923495619; // UnityEngine.Vector4[] struct Vector4U5BU5D_t934056436; // System.Collections.Generic.Stack`1<System.Collections.Generic.List`1<UnityEngine.UIVertex>> struct Stack_1_t2077994506; // UnityEngine.Events.UnityAction`1<System.Collections.Generic.List`1<UnityEngine.UIVertex>> struct UnityAction_1_t1819441192; // UnityEngine.UI.ObjectPool`1<System.Collections.Generic.List`1<UnityEngine.Vector2>> struct ObjectPool_1_t3327927477; // UnityEngine.Vector2[] struct Vector2U5BU5D_t1457185986; // System.Collections.Generic.Stack`1<System.Collections.Generic.List`1<UnityEngine.Vector2>> struct Stack_1_t176726424; // UnityEngine.Events.UnityAction`1<System.Collections.Generic.List`1<UnityEngine.Vector2>> struct UnityAction_1_t4213140406; // UnityEngine.UI.ObjectPool`1<System.Collections.Generic.List`1<UnityEngine.Vector3>> struct ObjectPool_1_t599044122; // UnityEngine.Vector3[] struct Vector3U5BU5D_t1718750761; // System.Collections.Generic.Stack`1<System.Collections.Generic.List`1<UnityEngine.Vector3>> struct Stack_1_t1742810365; // UnityEngine.Events.UnityAction`1<System.Collections.Generic.List`1<UnityEngine.Vector3>> struct UnityAction_1_t1484257051; // UnityEngine.UI.ObjectPool`1<System.Collections.Generic.List`1<UnityEngine.Vector4>> struct ObjectPool_1_t195759595; // System.IntPtr[] struct IntPtrU5BU5D_t4013366056; // System.Collections.IDictionary struct IDictionary_t1363984059; // System.Char[] struct CharU5BU5D_t3528271667; // UnityEngine.UI.CoroutineTween.FloatTween/FloatTweenCallback struct FloatTweenCallback_t1856710240; // System.Void struct Void_t1185182177; // UnityEngine.EventSystems.EventSystem struct EventSystem_t1003666588; // System.DelegateData struct DelegateData_t1677132599; // UnityEngine.UI.CoroutineTween.ColorTween/ColorTweenCallback struct ColorTweenCallback_t1121741130; // System.Reflection.MemberFilter struct MemberFilter_t426314064; extern RuntimeClass* Type_t_il2cpp_TypeInfo_var; extern const uint32_t InvokableCall_1__ctor_m337513891_MetadataUsageId; extern RuntimeClass* ArgumentException_t132251570_il2cpp_TypeInfo_var; extern String_t* _stringLiteral1864861238; extern const uint32_t InvokableCall_1_Invoke_m3497872319_MetadataUsageId; extern const uint32_t InvokableCall_1__ctor_m854286695_MetadataUsageId; extern const uint32_t InvokableCall_1_Invoke_m891112188_MetadataUsageId; extern const uint32_t InvokableCall_1__ctor_m974734014_MetadataUsageId; extern const uint32_t InvokableCall_1_Invoke_m4071643321_MetadataUsageId; extern const uint32_t InvokableCall_1__ctor_m4147324340_MetadataUsageId; extern const uint32_t InvokableCall_1_Invoke_m4150391468_MetadataUsageId; extern const uint32_t InvokableCall_1__ctor_m3910153236_MetadataUsageId; extern const uint32_t InvokableCall_1_Invoke_m1524307439_MetadataUsageId; extern const uint32_t InvokableCall_1__ctor_m2254957474_MetadataUsageId; extern const uint32_t InvokableCall_1_Invoke_m1160628299_MetadataUsageId; extern const uint32_t InvokableCall_2__ctor_m3619012188_MetadataUsageId; extern const uint32_t InvokableCall_2_Invoke_m1520082677_MetadataUsageId; extern const uint32_t InvokableCall_3__ctor_m4245235439_MetadataUsageId; extern const uint32_t InvokableCall_3_Invoke_m3141788616_MetadataUsageId; extern const uint32_t InvokableCall_4__ctor_m3136187504_MetadataUsageId; extern const uint32_t InvokableCall_4_Invoke_m3371718871_MetadataUsageId; extern RuntimeClass* Boolean_t97287965_il2cpp_TypeInfo_var; extern const uint32_t UnityAction_1_BeginInvoke_m3721186338_MetadataUsageId; extern RuntimeClass* Int32_t2950945753_il2cpp_TypeInfo_var; extern const uint32_t UnityAction_1_BeginInvoke_m4018737650_MetadataUsageId; extern RuntimeClass* Single_t1397266774_il2cpp_TypeInfo_var; extern const uint32_t UnityAction_1_BeginInvoke_m2530432941_MetadataUsageId; extern RuntimeClass* Color_t2555686324_il2cpp_TypeInfo_var; extern const uint32_t UnityAction_1_BeginInvoke_m1166386047_MetadataUsageId; extern RuntimeClass* Scene_t2348375561_il2cpp_TypeInfo_var; extern const uint32_t UnityAction_1_BeginInvoke_m677813163_MetadataUsageId; extern RuntimeClass* Vector2_t2156229523_il2cpp_TypeInfo_var; extern const uint32_t UnityAction_1_BeginInvoke_m2713840246_MetadataUsageId; extern RuntimeClass* LoadSceneMode_t3251202195_il2cpp_TypeInfo_var; extern const uint32_t UnityAction_2_BeginInvoke_m1769266175_MetadataUsageId; extern const uint32_t UnityAction_2_BeginInvoke_m1733258791_MetadataUsageId; extern RuntimeClass* TypeU5BU5D_t3940880105_il2cpp_TypeInfo_var; extern const uint32_t UnityEvent_1_FindMethod_Impl_m2511430237_MetadataUsageId; extern RuntimeClass* ObjectU5BU5D_t2843939325_il2cpp_TypeInfo_var; extern const RuntimeMethod* List_1_get_Item_m4156046467_RuntimeMethod_var; extern const RuntimeMethod* List_1_get_Count_m1245201994_RuntimeMethod_var; extern const uint32_t UnityEvent_1_Invoke_m933614109_MetadataUsageId; extern const uint32_t UnityEvent_1_FindMethod_Impl_m1397247356_MetadataUsageId; extern const uint32_t UnityEvent_1_Invoke_m3604335408_MetadataUsageId; extern const uint32_t UnityEvent_1_FindMethod_Impl_m322741469_MetadataUsageId; extern const uint32_t UnityEvent_1_Invoke_m2734859485_MetadataUsageId; extern const uint32_t UnityEvent_1_FindMethod_Impl_m555893253_MetadataUsageId; extern const uint32_t UnityEvent_1_Invoke_m3400677460_MetadataUsageId; extern const uint32_t UnityEvent_1_FindMethod_Impl_m1420160216_MetadataUsageId; extern const uint32_t UnityEvent_1_Invoke_m3884411426_MetadataUsageId; extern const uint32_t UnityEvent_1_FindMethod_Impl_m2325208510_MetadataUsageId; extern const uint32_t UnityEvent_1_Invoke_m3432495026_MetadataUsageId; extern const uint32_t UnityEvent_2_FindMethod_Impl_m2569180594_MetadataUsageId; extern const uint32_t UnityEvent_3_FindMethod_Impl_m1640458315_MetadataUsageId; extern const uint32_t UnityEvent_4_FindMethod_Impl_m3410547086_MetadataUsageId; extern RuntimeClass* NotImplementedException_t3489357830_il2cpp_TypeInfo_var; extern const uint32_t IndexedSet_1_GetEnumerator_m3750514392_MetadataUsageId; extern RuntimeClass* NotSupportedException_t1314879016_il2cpp_TypeInfo_var; extern String_t* _stringLiteral3926843441; extern const uint32_t IndexedSet_1_Insert_m1432638049_MetadataUsageId; extern RuntimeClass* Mathf_t3464937446_il2cpp_TypeInfo_var; extern const uint32_t U3CStartU3Ec__Iterator0_MoveNext_m524356752_MetadataUsageId; extern const uint32_t U3CStartU3Ec__Iterator0_Reset_m3175110837_MetadataUsageId; extern const uint32_t U3CStartU3Ec__Iterator0_MoveNext_m4270440387_MetadataUsageId; extern const uint32_t U3CStartU3Ec__Iterator0_Reset_m656428886_MetadataUsageId; extern RuntimeClass* Object_t631007953_il2cpp_TypeInfo_var; extern RuntimeClass* Debug_t3317548046_il2cpp_TypeInfo_var; extern String_t* _stringLiteral1132744560; extern const uint32_t TweenRunner_1_StartTween_m2247690200_MetadataUsageId; extern const uint32_t TweenRunner_1_StartTween_m1055628540_MetadataUsageId; extern String_t* _stringLiteral46997234; extern const uint32_t ObjectPool_1_Release_m3263354170_MetadataUsageId; struct ObjectU5BU5D_t2843939325; struct TypeU5BU5D_t3940880105; #ifndef RUNTIMEOBJECT_H #define RUNTIMEOBJECT_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Object #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // RUNTIMEOBJECT_H struct Il2CppArrayBounds; #ifndef RUNTIMEARRAY_H #define RUNTIMEARRAY_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Array #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // RUNTIMEARRAY_H #ifndef OBJECTPOOL_1_T4122643707_H #define OBJECTPOOL_1_T4122643707_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // UnityEngine.UI.ObjectPool`1<System.Collections.Generic.List`1<System.Int32>> struct ObjectPool_1_t4122643707 : public RuntimeObject { public: // System.Collections.Generic.Stack`1<T> UnityEngine.UI.ObjectPool`1::m_Stack Stack_1_t971442654 * ___m_Stack_0; // UnityEngine.Events.UnityAction`1<T> UnityEngine.UI.ObjectPool`1::m_ActionOnGet UnityAction_1_t712889340 * ___m_ActionOnGet_1; // UnityEngine.Events.UnityAction`1<T> UnityEngine.UI.ObjectPool`1::m_ActionOnRelease UnityAction_1_t712889340 * ___m_ActionOnRelease_2; // System.Int32 UnityEngine.UI.ObjectPool`1::<countAll>k__BackingField int32_t ___U3CcountAllU3Ek__BackingField_3; public: inline static int32_t get_offset_of_m_Stack_0() { return static_cast<int32_t>(offsetof(ObjectPool_1_t4122643707, ___m_Stack_0)); } inline Stack_1_t971442654 * get_m_Stack_0() const { return ___m_Stack_0; } inline Stack_1_t971442654 ** get_address_of_m_Stack_0() { return &___m_Stack_0; } inline void set_m_Stack_0(Stack_1_t971442654 * value) { ___m_Stack_0 = value; Il2CppCodeGenWriteBarrier((&___m_Stack_0), value); } inline static int32_t get_offset_of_m_ActionOnGet_1() { return static_cast<int32_t>(offsetof(ObjectPool_1_t4122643707, ___m_ActionOnGet_1)); } inline UnityAction_1_t712889340 * get_m_ActionOnGet_1() const { return ___m_ActionOnGet_1; } inline UnityAction_1_t712889340 ** get_address_of_m_ActionOnGet_1() { return &___m_ActionOnGet_1; } inline void set_m_ActionOnGet_1(UnityAction_1_t712889340 * value) { ___m_ActionOnGet_1 = value; Il2CppCodeGenWriteBarrier((&___m_ActionOnGet_1), value); } inline static int32_t get_offset_of_m_ActionOnRelease_2() { return static_cast<int32_t>(offsetof(ObjectPool_1_t4122643707, ___m_ActionOnRelease_2)); } inline UnityAction_1_t712889340 * get_m_ActionOnRelease_2() const { return ___m_ActionOnRelease_2; } inline UnityAction_1_t712889340 ** get_address_of_m_ActionOnRelease_2() { return &___m_ActionOnRelease_2; } inline void set_m_ActionOnRelease_2(UnityAction_1_t712889340 * value) { ___m_ActionOnRelease_2 = value; Il2CppCodeGenWriteBarrier((&___m_ActionOnRelease_2), value); } inline static int32_t get_offset_of_U3CcountAllU3Ek__BackingField_3() { return static_cast<int32_t>(offsetof(ObjectPool_1_t4122643707, ___U3CcountAllU3Ek__BackingField_3)); } inline int32_t get_U3CcountAllU3Ek__BackingField_3() const { return ___U3CcountAllU3Ek__BackingField_3; } inline int32_t* get_address_of_U3CcountAllU3Ek__BackingField_3() { return &___U3CcountAllU3Ek__BackingField_3; } inline void set_U3CcountAllU3Ek__BackingField_3(int32_t value) { ___U3CcountAllU3Ek__BackingField_3 = value; } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // OBJECTPOOL_1_T4122643707_H #ifndef LISTPOOL_1_T4109695355_H #define LISTPOOL_1_T4109695355_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // UnityEngine.UI.ListPool`1<System.Object> struct ListPool_1_t4109695355 : public RuntimeObject { public: public: }; struct ListPool_1_t4109695355_StaticFields { public: // UnityEngine.UI.ObjectPool`1<System.Collections.Generic.List`1<T>> UnityEngine.UI.ListPool`1::s_ListPool ObjectPool_1_t4251804118 * ___s_ListPool_0; public: inline static int32_t get_offset_of_s_ListPool_0() { return static_cast<int32_t>(offsetof(ListPool_1_t4109695355_StaticFields, ___s_ListPool_0)); } inline ObjectPool_1_t4251804118 * get_s_ListPool_0() const { return ___s_ListPool_0; } inline ObjectPool_1_t4251804118 ** get_address_of_s_ListPool_0() { return &___s_ListPool_0; } inline void set_s_ListPool_0(ObjectPool_1_t4251804118 * value) { ___s_ListPool_0 = value; Il2CppCodeGenWriteBarrier((&___s_ListPool_0), value); } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // LISTPOOL_1_T4109695355_H #ifndef OBJECTPOOL_1_T4251804118_H #define OBJECTPOOL_1_T4251804118_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // UnityEngine.UI.ObjectPool`1<System.Collections.Generic.List`1<System.Object>> struct ObjectPool_1_t4251804118 : public RuntimeObject { public: // System.Collections.Generic.Stack`1<T> UnityEngine.UI.ObjectPool`1::m_Stack Stack_1_t1100603065 * ___m_Stack_0; // UnityEngine.Events.UnityAction`1<T> UnityEngine.UI.ObjectPool`1::m_ActionOnGet UnityAction_1_t842049751 * ___m_ActionOnGet_1; // UnityEngine.Events.UnityAction`1<T> UnityEngine.UI.ObjectPool`1::m_ActionOnRelease UnityAction_1_t842049751 * ___m_ActionOnRelease_2; // System.Int32 UnityEngine.UI.ObjectPool`1::<countAll>k__BackingField int32_t ___U3CcountAllU3Ek__BackingField_3; public: inline static int32_t get_offset_of_m_Stack_0() { return static_cast<int32_t>(offsetof(ObjectPool_1_t4251804118, ___m_Stack_0)); } inline Stack_1_t1100603065 * get_m_Stack_0() const { return ___m_Stack_0; } inline Stack_1_t1100603065 ** get_address_of_m_Stack_0() { return &___m_Stack_0; } inline void set_m_Stack_0(Stack_1_t1100603065 * value) { ___m_Stack_0 = value; Il2CppCodeGenWriteBarrier((&___m_Stack_0), value); } inline static int32_t get_offset_of_m_ActionOnGet_1() { return static_cast<int32_t>(offsetof(ObjectPool_1_t4251804118, ___m_ActionOnGet_1)); } inline UnityAction_1_t842049751 * get_m_ActionOnGet_1() const { return ___m_ActionOnGet_1; } inline UnityAction_1_t842049751 ** get_address_of_m_ActionOnGet_1() { return &___m_ActionOnGet_1; } inline void set_m_ActionOnGet_1(UnityAction_1_t842049751 * value) { ___m_ActionOnGet_1 = value; Il2CppCodeGenWriteBarrier((&___m_ActionOnGet_1), value); } inline static int32_t get_offset_of_m_ActionOnRelease_2() { return static_cast<int32_t>(offsetof(ObjectPool_1_t4251804118, ___m_ActionOnRelease_2)); } inline UnityAction_1_t842049751 * get_m_ActionOnRelease_2() const { return ___m_ActionOnRelease_2; } inline UnityAction_1_t842049751 ** get_address_of_m_ActionOnRelease_2() { return &___m_ActionOnRelease_2; } inline void set_m_ActionOnRelease_2(UnityAction_1_t842049751 * value) { ___m_ActionOnRelease_2 = value; Il2CppCodeGenWriteBarrier((&___m_ActionOnRelease_2), value); } inline static int32_t get_offset_of_U3CcountAllU3Ek__BackingField_3() { return static_cast<int32_t>(offsetof(ObjectPool_1_t4251804118, ___U3CcountAllU3Ek__BackingField_3)); } inline int32_t get_U3CcountAllU3Ek__BackingField_3() const { return ___U3CcountAllU3Ek__BackingField_3; } inline int32_t* get_address_of_U3CcountAllU3Ek__BackingField_3() { return &___U3CcountAllU3Ek__BackingField_3; } inline void set_U3CcountAllU3Ek__BackingField_3(int32_t value) { ___U3CcountAllU3Ek__BackingField_3 = value; } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // OBJECTPOOL_1_T4251804118_H #ifndef LISTPOOL_1_T3630090483_H #define LISTPOOL_1_T3630090483_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // UnityEngine.UI.ListPool`1<UnityEngine.Color32> struct ListPool_1_t3630090483 : public RuntimeObject { public: public: }; struct ListPool_1_t3630090483_StaticFields { public: // UnityEngine.UI.ObjectPool`1<System.Collections.Generic.List`1<T>> UnityEngine.UI.ListPool`1::s_ListPool ObjectPool_1_t3772199246 * ___s_ListPool_0; public: inline static int32_t get_offset_of_s_ListPool_0() { return static_cast<int32_t>(offsetof(ListPool_1_t3630090483_StaticFields, ___s_ListPool_0)); } inline ObjectPool_1_t3772199246 * get_s_ListPool_0() const { return ___s_ListPool_0; } inline ObjectPool_1_t3772199246 ** get_address_of_s_ListPool_0() { return &___s_ListPool_0; } inline void set_s_ListPool_0(ObjectPool_1_t3772199246 * value) { ___s_ListPool_0 = value; Il2CppCodeGenWriteBarrier((&___s_ListPool_0), value); } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // LISTPOOL_1_T3630090483_H #ifndef LIST_1_T4072576034_H #define LIST_1_T4072576034_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Collections.Generic.List`1<UnityEngine.Color32> struct List_1_t4072576034 : public RuntimeObject { public: // T[] System.Collections.Generic.List`1::_items Color32U5BU5D_t3850468773* ____items_1; // System.Int32 System.Collections.Generic.List`1::_size int32_t ____size_2; // System.Int32 System.Collections.Generic.List`1::_version int32_t ____version_3; public: inline static int32_t get_offset_of__items_1() { return static_cast<int32_t>(offsetof(List_1_t4072576034, ____items_1)); } inline Color32U5BU5D_t3850468773* get__items_1() const { return ____items_1; } inline Color32U5BU5D_t3850468773** get_address_of__items_1() { return &____items_1; } inline void set__items_1(Color32U5BU5D_t3850468773* value) { ____items_1 = value; Il2CppCodeGenWriteBarrier((&____items_1), value); } inline static int32_t get_offset_of__size_2() { return static_cast<int32_t>(offsetof(List_1_t4072576034, ____size_2)); } inline int32_t get__size_2() const { return ____size_2; } inline int32_t* get_address_of__size_2() { return &____size_2; } inline void set__size_2(int32_t value) { ____size_2 = value; } inline static int32_t get_offset_of__version_3() { return static_cast<int32_t>(offsetof(List_1_t4072576034, ____version_3)); } inline int32_t get__version_3() const { return ____version_3; } inline int32_t* get_address_of__version_3() { return &____version_3; } inline void set__version_3(int32_t value) { ____version_3 = value; } }; struct List_1_t4072576034_StaticFields { public: // T[] System.Collections.Generic.List`1::EmptyArray Color32U5BU5D_t3850468773* ___EmptyArray_4; public: inline static int32_t get_offset_of_EmptyArray_4() { return static_cast<int32_t>(offsetof(List_1_t4072576034_StaticFields, ___EmptyArray_4)); } inline Color32U5BU5D_t3850468773* get_EmptyArray_4() const { return ___EmptyArray_4; } inline Color32U5BU5D_t3850468773** get_address_of_EmptyArray_4() { return &___EmptyArray_4; } inline void set_EmptyArray_4(Color32U5BU5D_t3850468773* value) { ___EmptyArray_4 = value; Il2CppCodeGenWriteBarrier((&___EmptyArray_4), value); } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // LIST_1_T4072576034_H #ifndef OBJECTPOOL_1_T3772199246_H #define OBJECTPOOL_1_T3772199246_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // UnityEngine.UI.ObjectPool`1<System.Collections.Generic.List`1<UnityEngine.Color32>> struct ObjectPool_1_t3772199246 : public RuntimeObject { public: // System.Collections.Generic.Stack`1<T> UnityEngine.UI.ObjectPool`1::m_Stack Stack_1_t620998193 * ___m_Stack_0; // UnityEngine.Events.UnityAction`1<T> UnityEngine.UI.ObjectPool`1::m_ActionOnGet UnityAction_1_t362444879 * ___m_ActionOnGet_1; // UnityEngine.Events.UnityAction`1<T> UnityEngine.UI.ObjectPool`1::m_ActionOnRelease UnityAction_1_t362444879 * ___m_ActionOnRelease_2; // System.Int32 UnityEngine.UI.ObjectPool`1::<countAll>k__BackingField int32_t ___U3CcountAllU3Ek__BackingField_3; public: inline static int32_t get_offset_of_m_Stack_0() { return static_cast<int32_t>(offsetof(ObjectPool_1_t3772199246, ___m_Stack_0)); } inline Stack_1_t620998193 * get_m_Stack_0() const { return ___m_Stack_0; } inline Stack_1_t620998193 ** get_address_of_m_Stack_0() { return &___m_Stack_0; } inline void set_m_Stack_0(Stack_1_t620998193 * value) { ___m_Stack_0 = value; Il2CppCodeGenWriteBarrier((&___m_Stack_0), value); } inline static int32_t get_offset_of_m_ActionOnGet_1() { return static_cast<int32_t>(offsetof(ObjectPool_1_t3772199246, ___m_ActionOnGet_1)); } inline UnityAction_1_t362444879 * get_m_ActionOnGet_1() const { return ___m_ActionOnGet_1; } inline UnityAction_1_t362444879 ** get_address_of_m_ActionOnGet_1() { return &___m_ActionOnGet_1; } inline void set_m_ActionOnGet_1(UnityAction_1_t362444879 * value) { ___m_ActionOnGet_1 = value; Il2CppCodeGenWriteBarrier((&___m_ActionOnGet_1), value); } inline static int32_t get_offset_of_m_ActionOnRelease_2() { return static_cast<int32_t>(offsetof(ObjectPool_1_t3772199246, ___m_ActionOnRelease_2)); } inline UnityAction_1_t362444879 * get_m_ActionOnRelease_2() const { return ___m_ActionOnRelease_2; } inline UnityAction_1_t362444879 ** get_address_of_m_ActionOnRelease_2() { return &___m_ActionOnRelease_2; } inline void set_m_ActionOnRelease_2(UnityAction_1_t362444879 * value) { ___m_ActionOnRelease_2 = value; Il2CppCodeGenWriteBarrier((&___m_ActionOnRelease_2), value); } inline static int32_t get_offset_of_U3CcountAllU3Ek__BackingField_3() { return static_cast<int32_t>(offsetof(ObjectPool_1_t3772199246, ___U3CcountAllU3Ek__BackingField_3)); } inline int32_t get_U3CcountAllU3Ek__BackingField_3() const { return ___U3CcountAllU3Ek__BackingField_3; } inline int32_t* get_address_of_U3CcountAllU3Ek__BackingField_3() { return &___U3CcountAllU3Ek__BackingField_3; } inline void set_U3CcountAllU3Ek__BackingField_3(int32_t value) { ___U3CcountAllU3Ek__BackingField_3 = value; } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // OBJECTPOOL_1_T3772199246_H #ifndef LISTPOOL_1_T792119500_H #define LISTPOOL_1_T792119500_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // UnityEngine.UI.ListPool`1<UnityEngine.UIVertex> struct ListPool_1_t792119500 : public RuntimeObject { public: public: }; struct ListPool_1_t792119500_StaticFields { public: // UnityEngine.UI.ObjectPool`1<System.Collections.Generic.List`1<T>> UnityEngine.UI.ListPool`1::s_ListPool ObjectPool_1_t934228263 * ___s_ListPool_0; public: inline static int32_t get_offset_of_s_ListPool_0() { return static_cast<int32_t>(offsetof(ListPool_1_t792119500_StaticFields, ___s_ListPool_0)); } inline ObjectPool_1_t934228263 * get_s_ListPool_0() const { return ___s_ListPool_0; } inline ObjectPool_1_t934228263 ** get_address_of_s_ListPool_0() { return &___s_ListPool_0; } inline void set_s_ListPool_0(ObjectPool_1_t934228263 * value) { ___s_ListPool_0 = value; Il2CppCodeGenWriteBarrier((&___s_ListPool_0), value); } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // LISTPOOL_1_T792119500_H #ifndef LIST_1_T128053199_H #define LIST_1_T128053199_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Collections.Generic.List`1<System.Int32> struct List_1_t128053199 : public RuntimeObject { public: // T[] System.Collections.Generic.List`1::_items Int32U5BU5D_t385246372* ____items_1; // System.Int32 System.Collections.Generic.List`1::_size int32_t ____size_2; // System.Int32 System.Collections.Generic.List`1::_version int32_t ____version_3; public: inline static int32_t get_offset_of__items_1() { return static_cast<int32_t>(offsetof(List_1_t128053199, ____items_1)); } inline Int32U5BU5D_t385246372* get__items_1() const { return ____items_1; } inline Int32U5BU5D_t385246372** get_address_of__items_1() { return &____items_1; } inline void set__items_1(Int32U5BU5D_t385246372* value) { ____items_1 = value; Il2CppCodeGenWriteBarrier((&____items_1), value); } inline static int32_t get_offset_of__size_2() { return static_cast<int32_t>(offsetof(List_1_t128053199, ____size_2)); } inline int32_t get__size_2() const { return ____size_2; } inline int32_t* get_address_of__size_2() { return &____size_2; } inline void set__size_2(int32_t value) { ____size_2 = value; } inline static int32_t get_offset_of__version_3() { return static_cast<int32_t>(offsetof(List_1_t128053199, ____version_3)); } inline int32_t get__version_3() const { return ____version_3; } inline int32_t* get_address_of__version_3() { return &____version_3; } inline void set__version_3(int32_t value) { ____version_3 = value; } }; struct List_1_t128053199_StaticFields { public: // T[] System.Collections.Generic.List`1::EmptyArray Int32U5BU5D_t385246372* ___EmptyArray_4; public: inline static int32_t get_offset_of_EmptyArray_4() { return static_cast<int32_t>(offsetof(List_1_t128053199_StaticFields, ___EmptyArray_4)); } inline Int32U5BU5D_t385246372* get_EmptyArray_4() const { return ___EmptyArray_4; } inline Int32U5BU5D_t385246372** get_address_of_EmptyArray_4() { return &___EmptyArray_4; } inline void set_EmptyArray_4(Int32U5BU5D_t385246372* value) { ___EmptyArray_4 = value; Il2CppCodeGenWriteBarrier((&___EmptyArray_4), value); } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // LIST_1_T128053199_H #ifndef UNITYEVENTBASE_T3960448221_H #define UNITYEVENTBASE_T3960448221_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // UnityEngine.Events.UnityEventBase struct UnityEventBase_t3960448221 : public RuntimeObject { public: // UnityEngine.Events.InvokableCallList UnityEngine.Events.UnityEventBase::m_Calls InvokableCallList_t2498835369 * ___m_Calls_0; // UnityEngine.Events.PersistentCallGroup UnityEngine.Events.UnityEventBase::m_PersistentCalls PersistentCallGroup_t3050769227 * ___m_PersistentCalls_1; // System.String UnityEngine.Events.UnityEventBase::m_TypeName String_t* ___m_TypeName_2; // System.Boolean UnityEngine.Events.UnityEventBase::m_CallsDirty bool ___m_CallsDirty_3; public: inline static int32_t get_offset_of_m_Calls_0() { return static_cast<int32_t>(offsetof(UnityEventBase_t3960448221, ___m_Calls_0)); } inline InvokableCallList_t2498835369 * get_m_Calls_0() const { return ___m_Calls_0; } inline InvokableCallList_t2498835369 ** get_address_of_m_Calls_0() { return &___m_Calls_0; } inline void set_m_Calls_0(InvokableCallList_t2498835369 * value) { ___m_Calls_0 = value; Il2CppCodeGenWriteBarrier((&___m_Calls_0), value); } inline static int32_t get_offset_of_m_PersistentCalls_1() { return static_cast<int32_t>(offsetof(UnityEventBase_t3960448221, ___m_PersistentCalls_1)); } inline PersistentCallGroup_t3050769227 * get_m_PersistentCalls_1() const { return ___m_PersistentCalls_1; } inline PersistentCallGroup_t3050769227 ** get_address_of_m_PersistentCalls_1() { return &___m_PersistentCalls_1; } inline void set_m_PersistentCalls_1(PersistentCallGroup_t3050769227 * value) { ___m_PersistentCalls_1 = value; Il2CppCodeGenWriteBarrier((&___m_PersistentCalls_1), value); } inline static int32_t get_offset_of_m_TypeName_2() { return static_cast<int32_t>(offsetof(UnityEventBase_t3960448221, ___m_TypeName_2)); } inline String_t* get_m_TypeName_2() const { return ___m_TypeName_2; } inline String_t** get_address_of_m_TypeName_2() { return &___m_TypeName_2; } inline void set_m_TypeName_2(String_t* value) { ___m_TypeName_2 = value; Il2CppCodeGenWriteBarrier((&___m_TypeName_2), value); } inline static int32_t get_offset_of_m_CallsDirty_3() { return static_cast<int32_t>(offsetof(UnityEventBase_t3960448221, ___m_CallsDirty_3)); } inline bool get_m_CallsDirty_3() const { return ___m_CallsDirty_3; } inline bool* get_address_of_m_CallsDirty_3() { return &___m_CallsDirty_3; } inline void set_m_CallsDirty_3(bool value) { ___m_CallsDirty_3 = value; } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // UNITYEVENTBASE_T3960448221_H #ifndef LIST_1_T4176035766_H #define LIST_1_T4176035766_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Collections.Generic.List`1<UnityEngine.Events.BaseInvokableCall> struct List_1_t4176035766 : public RuntimeObject { public: // T[] System.Collections.Generic.List`1::_items BaseInvokableCallU5BU5D_t3944607041* ____items_1; // System.Int32 System.Collections.Generic.List`1::_size int32_t ____size_2; // System.Int32 System.Collections.Generic.List`1::_version int32_t ____version_3; public: inline static int32_t get_offset_of__items_1() { return static_cast<int32_t>(offsetof(List_1_t4176035766, ____items_1)); } inline BaseInvokableCallU5BU5D_t3944607041* get__items_1() const { return ____items_1; } inline BaseInvokableCallU5BU5D_t3944607041** get_address_of__items_1() { return &____items_1; } inline void set__items_1(BaseInvokableCallU5BU5D_t3944607041* value) { ____items_1 = value; Il2CppCodeGenWriteBarrier((&____items_1), value); } inline static int32_t get_offset_of__size_2() { return static_cast<int32_t>(offsetof(List_1_t4176035766, ____size_2)); } inline int32_t get__size_2() const { return ____size_2; } inline int32_t* get_address_of__size_2() { return &____size_2; } inline void set__size_2(int32_t value) { ____size_2 = value; } inline static int32_t get_offset_of__version_3() { return static_cast<int32_t>(offsetof(List_1_t4176035766, ____version_3)); } inline int32_t get__version_3() const { return ____version_3; } inline int32_t* get_address_of__version_3() { return &____version_3; } inline void set__version_3(int32_t value) { ____version_3 = value; } }; struct List_1_t4176035766_StaticFields { public: // T[] System.Collections.Generic.List`1::EmptyArray BaseInvokableCallU5BU5D_t3944607041* ___EmptyArray_4; public: inline static int32_t get_offset_of_EmptyArray_4() { return static_cast<int32_t>(offsetof(List_1_t4176035766_StaticFields, ___EmptyArray_4)); } inline BaseInvokableCallU5BU5D_t3944607041* get_EmptyArray_4() const { return ___EmptyArray_4; } inline BaseInvokableCallU5BU5D_t3944607041** get_address_of_EmptyArray_4() { return &___EmptyArray_4; } inline void set_EmptyArray_4(BaseInvokableCallU5BU5D_t3944607041* value) { ___EmptyArray_4 = value; Il2CppCodeGenWriteBarrier((&___EmptyArray_4), value); } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // LIST_1_T4176035766_H #ifndef INDEXEDSET_1_T234526808_H #define INDEXEDSET_1_T234526808_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // UnityEngine.UI.Collections.IndexedSet`1<System.Object> struct IndexedSet_1_t234526808 : public RuntimeObject { public: // System.Collections.Generic.List`1<T> UnityEngine.UI.Collections.IndexedSet`1::m_List List_1_t257213610 * ___m_List_0; // System.Collections.Generic.Dictionary`2<T,System.Int32> UnityEngine.UI.Collections.IndexedSet`1::m_Dictionary Dictionary_2_t3384741 * ___m_Dictionary_1; public: inline static int32_t get_offset_of_m_List_0() { return static_cast<int32_t>(offsetof(IndexedSet_1_t234526808, ___m_List_0)); } inline List_1_t257213610 * get_m_List_0() const { return ___m_List_0; } inline List_1_t257213610 ** get_address_of_m_List_0() { return &___m_List_0; } inline void set_m_List_0(List_1_t257213610 * value) { ___m_List_0 = value; Il2CppCodeGenWriteBarrier((&___m_List_0), value); } inline static int32_t get_offset_of_m_Dictionary_1() { return static_cast<int32_t>(offsetof(IndexedSet_1_t234526808, ___m_Dictionary_1)); } inline Dictionary_2_t3384741 * get_m_Dictionary_1() const { return ___m_Dictionary_1; } inline Dictionary_2_t3384741 ** get_address_of_m_Dictionary_1() { return &___m_Dictionary_1; } inline void set_m_Dictionary_1(Dictionary_2_t3384741 * value) { ___m_Dictionary_1 = value; Il2CppCodeGenWriteBarrier((&___m_Dictionary_1), value); } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // INDEXEDSET_1_T234526808_H #ifndef LIST_1_T257213610_H #define LIST_1_T257213610_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Collections.Generic.List`1<System.Object> struct List_1_t257213610 : public RuntimeObject { public: // T[] System.Collections.Generic.List`1::_items ObjectU5BU5D_t2843939325* ____items_1; // System.Int32 System.Collections.Generic.List`1::_size int32_t ____size_2; // System.Int32 System.Collections.Generic.List`1::_version int32_t ____version_3; public: inline static int32_t get_offset_of__items_1() { return static_cast<int32_t>(offsetof(List_1_t257213610, ____items_1)); } inline ObjectU5BU5D_t2843939325* get__items_1() const { return ____items_1; } inline ObjectU5BU5D_t2843939325** get_address_of__items_1() { return &____items_1; } inline void set__items_1(ObjectU5BU5D_t2843939325* value) { ____items_1 = value; Il2CppCodeGenWriteBarrier((&____items_1), value); } inline static int32_t get_offset_of__size_2() { return static_cast<int32_t>(offsetof(List_1_t257213610, ____size_2)); } inline int32_t get__size_2() const { return ____size_2; } inline int32_t* get_address_of__size_2() { return &____size_2; } inline void set__size_2(int32_t value) { ____size_2 = value; } inline static int32_t get_offset_of__version_3() { return static_cast<int32_t>(offsetof(List_1_t257213610, ____version_3)); } inline int32_t get__version_3() const { return ____version_3; } inline int32_t* get_address_of__version_3() { return &____version_3; } inline void set__version_3(int32_t value) { ____version_3 = value; } }; struct List_1_t257213610_StaticFields { public: // T[] System.Collections.Generic.List`1::EmptyArray ObjectU5BU5D_t2843939325* ___EmptyArray_4; public: inline static int32_t get_offset_of_EmptyArray_4() { return static_cast<int32_t>(offsetof(List_1_t257213610_StaticFields, ___EmptyArray_4)); } inline ObjectU5BU5D_t2843939325* get_EmptyArray_4() const { return ___EmptyArray_4; } inline ObjectU5BU5D_t2843939325** get_address_of_EmptyArray_4() { return &___EmptyArray_4; } inline void set_EmptyArray_4(ObjectU5BU5D_t2843939325* value) { ___EmptyArray_4 = value; Il2CppCodeGenWriteBarrier((&___EmptyArray_4), value); } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // LIST_1_T257213610_H #ifndef DICTIONARY_2_T3384741_H #define DICTIONARY_2_T3384741_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Collections.Generic.Dictionary`2<System.Object,System.Int32> struct Dictionary_2_t3384741 : public RuntimeObject { public: // System.Int32[] System.Collections.Generic.Dictionary`2::table Int32U5BU5D_t385246372* ___table_4; // System.Collections.Generic.Link[] System.Collections.Generic.Dictionary`2::linkSlots LinkU5BU5D_t964245573* ___linkSlots_5; // TKey[] System.Collections.Generic.Dictionary`2::keySlots ObjectU5BU5D_t2843939325* ___keySlots_6; // TValue[] System.Collections.Generic.Dictionary`2::valueSlots Int32U5BU5D_t385246372* ___valueSlots_7; // System.Int32 System.Collections.Generic.Dictionary`2::touchedSlots int32_t ___touchedSlots_8; // System.Int32 System.Collections.Generic.Dictionary`2::emptySlot int32_t ___emptySlot_9; // System.Int32 System.Collections.Generic.Dictionary`2::count int32_t ___count_10; // System.Int32 System.Collections.Generic.Dictionary`2::threshold int32_t ___threshold_11; // System.Collections.Generic.IEqualityComparer`1<TKey> System.Collections.Generic.Dictionary`2::hcp RuntimeObject* ___hcp_12; // System.Runtime.Serialization.SerializationInfo System.Collections.Generic.Dictionary`2::serialization_info SerializationInfo_t950877179 * ___serialization_info_13; // System.Int32 System.Collections.Generic.Dictionary`2::generation int32_t ___generation_14; public: inline static int32_t get_offset_of_table_4() { return static_cast<int32_t>(offsetof(Dictionary_2_t3384741, ___table_4)); } inline Int32U5BU5D_t385246372* get_table_4() const { return ___table_4; } inline Int32U5BU5D_t385246372** get_address_of_table_4() { return &___table_4; } inline void set_table_4(Int32U5BU5D_t385246372* value) { ___table_4 = value; Il2CppCodeGenWriteBarrier((&___table_4), value); } inline static int32_t get_offset_of_linkSlots_5() { return static_cast<int32_t>(offsetof(Dictionary_2_t3384741, ___linkSlots_5)); } inline LinkU5BU5D_t964245573* get_linkSlots_5() const { return ___linkSlots_5; } inline LinkU5BU5D_t964245573** get_address_of_linkSlots_5() { return &___linkSlots_5; } inline void set_linkSlots_5(LinkU5BU5D_t964245573* value) { ___linkSlots_5 = value; Il2CppCodeGenWriteBarrier((&___linkSlots_5), value); } inline static int32_t get_offset_of_keySlots_6() { return static_cast<int32_t>(offsetof(Dictionary_2_t3384741, ___keySlots_6)); } inline ObjectU5BU5D_t2843939325* get_keySlots_6() const { return ___keySlots_6; } inline ObjectU5BU5D_t2843939325** get_address_of_keySlots_6() { return &___keySlots_6; } inline void set_keySlots_6(ObjectU5BU5D_t2843939325* value) { ___keySlots_6 = value; Il2CppCodeGenWriteBarrier((&___keySlots_6), value); } inline static int32_t get_offset_of_valueSlots_7() { return static_cast<int32_t>(offsetof(Dictionary_2_t3384741, ___valueSlots_7)); } inline Int32U5BU5D_t385246372* get_valueSlots_7() const { return ___valueSlots_7; } inline Int32U5BU5D_t385246372** get_address_of_valueSlots_7() { return &___valueSlots_7; } inline void set_valueSlots_7(Int32U5BU5D_t385246372* value) { ___valueSlots_7 = value; Il2CppCodeGenWriteBarrier((&___valueSlots_7), value); } inline static int32_t get_offset_of_touchedSlots_8() { return static_cast<int32_t>(offsetof(Dictionary_2_t3384741, ___touchedSlots_8)); } inline int32_t get_touchedSlots_8() const { return ___touchedSlots_8; } inline int32_t* get_address_of_touchedSlots_8() { return &___touchedSlots_8; } inline void set_touchedSlots_8(int32_t value) { ___touchedSlots_8 = value; } inline static int32_t get_offset_of_emptySlot_9() { return static_cast<int32_t>(offsetof(Dictionary_2_t3384741, ___emptySlot_9)); } inline int32_t get_emptySlot_9() const { return ___emptySlot_9; } inline int32_t* get_address_of_emptySlot_9() { return &___emptySlot_9; } inline void set_emptySlot_9(int32_t value) { ___emptySlot_9 = value; } inline static int32_t get_offset_of_count_10() { return static_cast<int32_t>(offsetof(Dictionary_2_t3384741, ___count_10)); } inline int32_t get_count_10() const { return ___count_10; } inline int32_t* get_address_of_count_10() { return &___count_10; } inline void set_count_10(int32_t value) { ___count_10 = value; } inline static int32_t get_offset_of_threshold_11() { return static_cast<int32_t>(offsetof(Dictionary_2_t3384741, ___threshold_11)); } inline int32_t get_threshold_11() const { return ___threshold_11; } inline int32_t* get_address_of_threshold_11() { return &___threshold_11; } inline void set_threshold_11(int32_t value) { ___threshold_11 = value; } inline static int32_t get_offset_of_hcp_12() { return static_cast<int32_t>(offsetof(Dictionary_2_t3384741, ___hcp_12)); } inline RuntimeObject* get_hcp_12() const { return ___hcp_12; } inline RuntimeObject** get_address_of_hcp_12() { return &___hcp_12; } inline void set_hcp_12(RuntimeObject* value) { ___hcp_12 = value; Il2CppCodeGenWriteBarrier((&___hcp_12), value); } inline static int32_t get_offset_of_serialization_info_13() { return static_cast<int32_t>(offsetof(Dictionary_2_t3384741, ___serialization_info_13)); } inline SerializationInfo_t950877179 * get_serialization_info_13() const { return ___serialization_info_13; } inline SerializationInfo_t950877179 ** get_address_of_serialization_info_13() { return &___serialization_info_13; } inline void set_serialization_info_13(SerializationInfo_t950877179 * value) { ___serialization_info_13 = value; Il2CppCodeGenWriteBarrier((&___serialization_info_13), value); } inline static int32_t get_offset_of_generation_14() { return static_cast<int32_t>(offsetof(Dictionary_2_t3384741, ___generation_14)); } inline int32_t get_generation_14() const { return ___generation_14; } inline int32_t* get_address_of_generation_14() { return &___generation_14; } inline void set_generation_14(int32_t value) { ___generation_14 = value; } }; struct Dictionary_2_t3384741_StaticFields { public: // System.Collections.Generic.Dictionary`2/Transform`1<TKey,TValue,System.Collections.DictionaryEntry> System.Collections.Generic.Dictionary`2::<>f__am$cacheB Transform_1_t1750446691 * ___U3CU3Ef__amU24cacheB_15; public: inline static int32_t get_offset_of_U3CU3Ef__amU24cacheB_15() { return static_cast<int32_t>(offsetof(Dictionary_2_t3384741_StaticFields, ___U3CU3Ef__amU24cacheB_15)); } inline Transform_1_t1750446691 * get_U3CU3Ef__amU24cacheB_15() const { return ___U3CU3Ef__amU24cacheB_15; } inline Transform_1_t1750446691 ** get_address_of_U3CU3Ef__amU24cacheB_15() { return &___U3CU3Ef__amU24cacheB_15; } inline void set_U3CU3Ef__amU24cacheB_15(Transform_1_t1750446691 * value) { ___U3CU3Ef__amU24cacheB_15 = value; Il2CppCodeGenWriteBarrier((&___U3CU3Ef__amU24cacheB_15), value); } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // DICTIONARY_2_T3384741_H #ifndef TWEENRUNNER_1_T3055525458_H #define TWEENRUNNER_1_T3055525458_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // UnityEngine.UI.CoroutineTween.TweenRunner`1<UnityEngine.UI.CoroutineTween.ColorTween> struct TweenRunner_1_t3055525458 : public RuntimeObject { public: // UnityEngine.MonoBehaviour UnityEngine.UI.CoroutineTween.TweenRunner`1::m_CoroutineContainer MonoBehaviour_t3962482529 * ___m_CoroutineContainer_0; // System.Collections.IEnumerator UnityEngine.UI.CoroutineTween.TweenRunner`1::m_Tween RuntimeObject* ___m_Tween_1; public: inline static int32_t get_offset_of_m_CoroutineContainer_0() { return static_cast<int32_t>(offsetof(TweenRunner_1_t3055525458, ___m_CoroutineContainer_0)); } inline MonoBehaviour_t3962482529 * get_m_CoroutineContainer_0() const { return ___m_CoroutineContainer_0; } inline MonoBehaviour_t3962482529 ** get_address_of_m_CoroutineContainer_0() { return &___m_CoroutineContainer_0; } inline void set_m_CoroutineContainer_0(MonoBehaviour_t3962482529 * value) { ___m_CoroutineContainer_0 = value; Il2CppCodeGenWriteBarrier((&___m_CoroutineContainer_0), value); } inline static int32_t get_offset_of_m_Tween_1() { return static_cast<int32_t>(offsetof(TweenRunner_1_t3055525458, ___m_Tween_1)); } inline RuntimeObject* get_m_Tween_1() const { return ___m_Tween_1; } inline RuntimeObject** get_address_of_m_Tween_1() { return &___m_Tween_1; } inline void set_m_Tween_1(RuntimeObject* value) { ___m_Tween_1 = value; Il2CppCodeGenWriteBarrier((&___m_Tween_1), value); } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // TWEENRUNNER_1_T3055525458_H #ifndef TWEENRUNNER_1_T3520241082_H #define TWEENRUNNER_1_T3520241082_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // UnityEngine.UI.CoroutineTween.TweenRunner`1<UnityEngine.UI.CoroutineTween.FloatTween> struct TweenRunner_1_t3520241082 : public RuntimeObject { public: // UnityEngine.MonoBehaviour UnityEngine.UI.CoroutineTween.TweenRunner`1::m_CoroutineContainer MonoBehaviour_t3962482529 * ___m_CoroutineContainer_0; // System.Collections.IEnumerator UnityEngine.UI.CoroutineTween.TweenRunner`1::m_Tween RuntimeObject* ___m_Tween_1; public: inline static int32_t get_offset_of_m_CoroutineContainer_0() { return static_cast<int32_t>(offsetof(TweenRunner_1_t3520241082, ___m_CoroutineContainer_0)); } inline MonoBehaviour_t3962482529 * get_m_CoroutineContainer_0() const { return ___m_CoroutineContainer_0; } inline MonoBehaviour_t3962482529 ** get_address_of_m_CoroutineContainer_0() { return &___m_CoroutineContainer_0; } inline void set_m_CoroutineContainer_0(MonoBehaviour_t3962482529 * value) { ___m_CoroutineContainer_0 = value; Il2CppCodeGenWriteBarrier((&___m_CoroutineContainer_0), value); } inline static int32_t get_offset_of_m_Tween_1() { return static_cast<int32_t>(offsetof(TweenRunner_1_t3520241082, ___m_Tween_1)); } inline RuntimeObject* get_m_Tween_1() const { return ___m_Tween_1; } inline RuntimeObject** get_address_of_m_Tween_1() { return &___m_Tween_1; } inline void set_m_Tween_1(RuntimeObject* value) { ___m_Tween_1 = value; Il2CppCodeGenWriteBarrier((&___m_Tween_1), value); } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // TWEENRUNNER_1_T3520241082_H #ifndef LISTPOOL_1_T3980534944_H #define LISTPOOL_1_T3980534944_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // UnityEngine.UI.ListPool`1<System.Int32> struct ListPool_1_t3980534944 : public RuntimeObject { public: public: }; struct ListPool_1_t3980534944_StaticFields { public: // UnityEngine.UI.ObjectPool`1<System.Collections.Generic.List`1<T>> UnityEngine.UI.ListPool`1::s_ListPool ObjectPool_1_t4122643707 * ___s_ListPool_0; public: inline static int32_t get_offset_of_s_ListPool_0() { return static_cast<int32_t>(offsetof(ListPool_1_t3980534944_StaticFields, ___s_ListPool_0)); } inline ObjectPool_1_t4122643707 * get_s_ListPool_0() const { return ___s_ListPool_0; } inline ObjectPool_1_t4122643707 ** get_address_of_s_ListPool_0() { return &___s_ListPool_0; } inline void set_s_ListPool_0(ObjectPool_1_t4122643707 * value) { ___s_ListPool_0 = value; Il2CppCodeGenWriteBarrier((&___s_ListPool_0), value); } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // LISTPOOL_1_T3980534944_H #ifndef LIST_1_T1234605051_H #define LIST_1_T1234605051_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Collections.Generic.List`1<UnityEngine.UIVertex> struct List_1_t1234605051 : public RuntimeObject { public: // T[] System.Collections.Generic.List`1::_items UIVertexU5BU5D_t1981460040* ____items_1; // System.Int32 System.Collections.Generic.List`1::_size int32_t ____size_2; // System.Int32 System.Collections.Generic.List`1::_version int32_t ____version_3; public: inline static int32_t get_offset_of__items_1() { return static_cast<int32_t>(offsetof(List_1_t1234605051, ____items_1)); } inline UIVertexU5BU5D_t1981460040* get__items_1() const { return ____items_1; } inline UIVertexU5BU5D_t1981460040** get_address_of__items_1() { return &____items_1; } inline void set__items_1(UIVertexU5BU5D_t1981460040* value) { ____items_1 = value; Il2CppCodeGenWriteBarrier((&____items_1), value); } inline static int32_t get_offset_of__size_2() { return static_cast<int32_t>(offsetof(List_1_t1234605051, ____size_2)); } inline int32_t get__size_2() const { return ____size_2; } inline int32_t* get_address_of__size_2() { return &____size_2; } inline void set__size_2(int32_t value) { ____size_2 = value; } inline static int32_t get_offset_of__version_3() { return static_cast<int32_t>(offsetof(List_1_t1234605051, ____version_3)); } inline int32_t get__version_3() const { return ____version_3; } inline int32_t* get_address_of__version_3() { return &____version_3; } inline void set__version_3(int32_t value) { ____version_3 = value; } }; struct List_1_t1234605051_StaticFields { public: // T[] System.Collections.Generic.List`1::EmptyArray UIVertexU5BU5D_t1981460040* ___EmptyArray_4; public: inline static int32_t get_offset_of_EmptyArray_4() { return static_cast<int32_t>(offsetof(List_1_t1234605051_StaticFields, ___EmptyArray_4)); } inline UIVertexU5BU5D_t1981460040* get_EmptyArray_4() const { return ___EmptyArray_4; } inline UIVertexU5BU5D_t1981460040** get_address_of_EmptyArray_4() { return &___EmptyArray_4; } inline void set_EmptyArray_4(UIVertexU5BU5D_t1981460040* value) { ___EmptyArray_4 = value; Il2CppCodeGenWriteBarrier((&___EmptyArray_4), value); } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // LIST_1_T1234605051_H #ifndef OBJECTPOOL_1_T195759595_H #define OBJECTPOOL_1_T195759595_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // UnityEngine.UI.ObjectPool`1<System.Collections.Generic.List`1<UnityEngine.Vector4>> struct ObjectPool_1_t195759595 : public RuntimeObject { public: // System.Collections.Generic.Stack`1<T> UnityEngine.UI.ObjectPool`1::m_Stack Stack_1_t1339525838 * ___m_Stack_0; // UnityEngine.Events.UnityAction`1<T> UnityEngine.UI.ObjectPool`1::m_ActionOnGet UnityAction_1_t1080972524 * ___m_ActionOnGet_1; // UnityEngine.Events.UnityAction`1<T> UnityEngine.UI.ObjectPool`1::m_ActionOnRelease UnityAction_1_t1080972524 * ___m_ActionOnRelease_2; // System.Int32 UnityEngine.UI.ObjectPool`1::<countAll>k__BackingField int32_t ___U3CcountAllU3Ek__BackingField_3; public: inline static int32_t get_offset_of_m_Stack_0() { return static_cast<int32_t>(offsetof(ObjectPool_1_t195759595, ___m_Stack_0)); } inline Stack_1_t1339525838 * get_m_Stack_0() const { return ___m_Stack_0; } inline Stack_1_t1339525838 ** get_address_of_m_Stack_0() { return &___m_Stack_0; } inline void set_m_Stack_0(Stack_1_t1339525838 * value) { ___m_Stack_0 = value; Il2CppCodeGenWriteBarrier((&___m_Stack_0), value); } inline static int32_t get_offset_of_m_ActionOnGet_1() { return static_cast<int32_t>(offsetof(ObjectPool_1_t195759595, ___m_ActionOnGet_1)); } inline UnityAction_1_t1080972524 * get_m_ActionOnGet_1() const { return ___m_ActionOnGet_1; } inline UnityAction_1_t1080972524 ** get_address_of_m_ActionOnGet_1() { return &___m_ActionOnGet_1; } inline void set_m_ActionOnGet_1(UnityAction_1_t1080972524 * value) { ___m_ActionOnGet_1 = value; Il2CppCodeGenWriteBarrier((&___m_ActionOnGet_1), value); } inline static int32_t get_offset_of_m_ActionOnRelease_2() { return static_cast<int32_t>(offsetof(ObjectPool_1_t195759595, ___m_ActionOnRelease_2)); } inline UnityAction_1_t1080972524 * get_m_ActionOnRelease_2() const { return ___m_ActionOnRelease_2; } inline UnityAction_1_t1080972524 ** get_address_of_m_ActionOnRelease_2() { return &___m_ActionOnRelease_2; } inline void set_m_ActionOnRelease_2(UnityAction_1_t1080972524 * value) { ___m_ActionOnRelease_2 = value; Il2CppCodeGenWriteBarrier((&___m_ActionOnRelease_2), value); } inline static int32_t get_offset_of_U3CcountAllU3Ek__BackingField_3() { return static_cast<int32_t>(offsetof(ObjectPool_1_t195759595, ___U3CcountAllU3Ek__BackingField_3)); } inline int32_t get_U3CcountAllU3Ek__BackingField_3() const { return ___U3CcountAllU3Ek__BackingField_3; } inline int32_t* get_address_of_U3CcountAllU3Ek__BackingField_3() { return &___U3CcountAllU3Ek__BackingField_3; } inline void set_U3CcountAllU3Ek__BackingField_3(int32_t value) { ___U3CcountAllU3Ek__BackingField_3 = value; } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // OBJECTPOOL_1_T195759595_H #ifndef OBJECTPOOL_1_T2779729376_H #define OBJECTPOOL_1_T2779729376_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // UnityEngine.UI.ObjectPool`1<System.Object> struct ObjectPool_1_t2779729376 : public RuntimeObject { public: // System.Collections.Generic.Stack`1<T> UnityEngine.UI.ObjectPool`1::m_Stack Stack_1_t3923495619 * ___m_Stack_0; // UnityEngine.Events.UnityAction`1<T> UnityEngine.UI.ObjectPool`1::m_ActionOnGet UnityAction_1_t3664942305 * ___m_ActionOnGet_1; // UnityEngine.Events.UnityAction`1<T> UnityEngine.UI.ObjectPool`1::m_ActionOnRelease UnityAction_1_t3664942305 * ___m_ActionOnRelease_2; // System.Int32 UnityEngine.UI.ObjectPool`1::<countAll>k__BackingField int32_t ___U3CcountAllU3Ek__BackingField_3; public: inline static int32_t get_offset_of_m_Stack_0() { return static_cast<int32_t>(offsetof(ObjectPool_1_t2779729376, ___m_Stack_0)); } inline Stack_1_t3923495619 * get_m_Stack_0() const { return ___m_Stack_0; } inline Stack_1_t3923495619 ** get_address_of_m_Stack_0() { return &___m_Stack_0; } inline void set_m_Stack_0(Stack_1_t3923495619 * value) { ___m_Stack_0 = value; Il2CppCodeGenWriteBarrier((&___m_Stack_0), value); } inline static int32_t get_offset_of_m_ActionOnGet_1() { return static_cast<int32_t>(offsetof(ObjectPool_1_t2779729376, ___m_ActionOnGet_1)); } inline UnityAction_1_t3664942305 * get_m_ActionOnGet_1() const { return ___m_ActionOnGet_1; } inline UnityAction_1_t3664942305 ** get_address_of_m_ActionOnGet_1() { return &___m_ActionOnGet_1; } inline void set_m_ActionOnGet_1(UnityAction_1_t3664942305 * value) { ___m_ActionOnGet_1 = value; Il2CppCodeGenWriteBarrier((&___m_ActionOnGet_1), value); } inline static int32_t get_offset_of_m_ActionOnRelease_2() { return static_cast<int32_t>(offsetof(ObjectPool_1_t2779729376, ___m_ActionOnRelease_2)); } inline UnityAction_1_t3664942305 * get_m_ActionOnRelease_2() const { return ___m_ActionOnRelease_2; } inline UnityAction_1_t3664942305 ** get_address_of_m_ActionOnRelease_2() { return &___m_ActionOnRelease_2; } inline void set_m_ActionOnRelease_2(UnityAction_1_t3664942305 * value) { ___m_ActionOnRelease_2 = value; Il2CppCodeGenWriteBarrier((&___m_ActionOnRelease_2), value); } inline static int32_t get_offset_of_U3CcountAllU3Ek__BackingField_3() { return static_cast<int32_t>(offsetof(ObjectPool_1_t2779729376, ___U3CcountAllU3Ek__BackingField_3)); } inline int32_t get_U3CcountAllU3Ek__BackingField_3() const { return ___U3CcountAllU3Ek__BackingField_3; } inline int32_t* get_address_of_U3CcountAllU3Ek__BackingField_3() { return &___U3CcountAllU3Ek__BackingField_3; } inline void set_U3CcountAllU3Ek__BackingField_3(int32_t value) { ___U3CcountAllU3Ek__BackingField_3 = value; } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // OBJECTPOOL_1_T2779729376_H #ifndef STACK_1_T3923495619_H #define STACK_1_T3923495619_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Collections.Generic.Stack`1<System.Object> struct Stack_1_t3923495619 : public RuntimeObject { public: // T[] System.Collections.Generic.Stack`1::_array ObjectU5BU5D_t2843939325* ____array_0; // System.Int32 System.Collections.Generic.Stack`1::_size int32_t ____size_1; // System.Int32 System.Collections.Generic.Stack`1::_version int32_t ____version_2; public: inline static int32_t get_offset_of__array_0() { return static_cast<int32_t>(offsetof(Stack_1_t3923495619, ____array_0)); } inline ObjectU5BU5D_t2843939325* get__array_0() const { return ____array_0; } inline ObjectU5BU5D_t2843939325** get_address_of__array_0() { return &____array_0; } inline void set__array_0(ObjectU5BU5D_t2843939325* value) { ____array_0 = value; Il2CppCodeGenWriteBarrier((&____array_0), value); } inline static int32_t get_offset_of__size_1() { return static_cast<int32_t>(offsetof(Stack_1_t3923495619, ____size_1)); } inline int32_t get__size_1() const { return ____size_1; } inline int32_t* get_address_of__size_1() { return &____size_1; } inline void set__size_1(int32_t value) { ____size_1 = value; } inline static int32_t get_offset_of__version_2() { return static_cast<int32_t>(offsetof(Stack_1_t3923495619, ____version_2)); } inline int32_t get__version_2() const { return ____version_2; } inline int32_t* get_address_of__version_2() { return &____version_2; } inline void set__version_2(int32_t value) { ____version_2 = value; } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // STACK_1_T3923495619_H #ifndef VALUETYPE_T3640485471_H #define VALUETYPE_T3640485471_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.ValueType struct ValueType_t3640485471 : public RuntimeObject { public: public: }; #ifdef __clang__ #pragma clang diagnostic pop #endif // Native definition for P/Invoke marshalling of System.ValueType struct ValueType_t3640485471_marshaled_pinvoke { }; // Native definition for COM marshalling of System.ValueType struct ValueType_t3640485471_marshaled_com { }; #endif // VALUETYPE_T3640485471_H #ifndef MEMBERINFO_T_H #define MEMBERINFO_T_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Reflection.MemberInfo struct MemberInfo_t : public RuntimeObject { public: public: }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // MEMBERINFO_T_H #ifndef ABSTRACTEVENTDATA_T4171500731_H #define ABSTRACTEVENTDATA_T4171500731_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // UnityEngine.EventSystems.AbstractEventData struct AbstractEventData_t4171500731 : public RuntimeObject { public: // System.Boolean UnityEngine.EventSystems.AbstractEventData::m_Used bool ___m_Used_0; public: inline static int32_t get_offset_of_m_Used_0() { return static_cast<int32_t>(offsetof(AbstractEventData_t4171500731, ___m_Used_0)); } inline bool get_m_Used_0() const { return ___m_Used_0; } inline bool* get_address_of_m_Used_0() { return &___m_Used_0; } inline void set_m_Used_0(bool value) { ___m_Used_0 = value; } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // ABSTRACTEVENTDATA_T4171500731_H #ifndef YIELDINSTRUCTION_T403091072_H #define YIELDINSTRUCTION_T403091072_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // UnityEngine.YieldInstruction struct YieldInstruction_t403091072 : public RuntimeObject { public: public: }; #ifdef __clang__ #pragma clang diagnostic pop #endif // Native definition for P/Invoke marshalling of UnityEngine.YieldInstruction struct YieldInstruction_t403091072_marshaled_pinvoke { }; // Native definition for COM marshalling of UnityEngine.YieldInstruction struct YieldInstruction_t403091072_marshaled_com { }; #endif // YIELDINSTRUCTION_T403091072_H #ifndef LIST_1_T496136383_H #define LIST_1_T496136383_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Collections.Generic.List`1<UnityEngine.Vector4> struct List_1_t496136383 : public RuntimeObject { public: // T[] System.Collections.Generic.List`1::_items Vector4U5BU5D_t934056436* ____items_1; // System.Int32 System.Collections.Generic.List`1::_size int32_t ____size_2; // System.Int32 System.Collections.Generic.List`1::_version int32_t ____version_3; public: inline static int32_t get_offset_of__items_1() { return static_cast<int32_t>(offsetof(List_1_t496136383, ____items_1)); } inline Vector4U5BU5D_t934056436* get__items_1() const { return ____items_1; } inline Vector4U5BU5D_t934056436** get_address_of__items_1() { return &____items_1; } inline void set__items_1(Vector4U5BU5D_t934056436* value) { ____items_1 = value; Il2CppCodeGenWriteBarrier((&____items_1), value); } inline static int32_t get_offset_of__size_2() { return static_cast<int32_t>(offsetof(List_1_t496136383, ____size_2)); } inline int32_t get__size_2() const { return ____size_2; } inline int32_t* get_address_of__size_2() { return &____size_2; } inline void set__size_2(int32_t value) { ____size_2 = value; } inline static int32_t get_offset_of__version_3() { return static_cast<int32_t>(offsetof(List_1_t496136383, ____version_3)); } inline int32_t get__version_3() const { return ____version_3; } inline int32_t* get_address_of__version_3() { return &____version_3; } inline void set__version_3(int32_t value) { ____version_3 = value; } }; struct List_1_t496136383_StaticFields { public: // T[] System.Collections.Generic.List`1::EmptyArray Vector4U5BU5D_t934056436* ___EmptyArray_4; public: inline static int32_t get_offset_of_EmptyArray_4() { return static_cast<int32_t>(offsetof(List_1_t496136383_StaticFields, ___EmptyArray_4)); } inline Vector4U5BU5D_t934056436* get_EmptyArray_4() const { return ___EmptyArray_4; } inline Vector4U5BU5D_t934056436** get_address_of_EmptyArray_4() { return &___EmptyArray_4; } inline void set_EmptyArray_4(Vector4U5BU5D_t934056436* value) { ___EmptyArray_4 = value; Il2CppCodeGenWriteBarrier((&___EmptyArray_4), value); } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // LIST_1_T496136383_H #ifndef OBJECTPOOL_1_T934228263_H #define OBJECTPOOL_1_T934228263_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // UnityEngine.UI.ObjectPool`1<System.Collections.Generic.List`1<UnityEngine.UIVertex>> struct ObjectPool_1_t934228263 : public RuntimeObject { public: // System.Collections.Generic.Stack`1<T> UnityEngine.UI.ObjectPool`1::m_Stack Stack_1_t2077994506 * ___m_Stack_0; // UnityEngine.Events.UnityAction`1<T> UnityEngine.UI.ObjectPool`1::m_ActionOnGet UnityAction_1_t1819441192 * ___m_ActionOnGet_1; // UnityEngine.Events.UnityAction`1<T> UnityEngine.UI.ObjectPool`1::m_ActionOnRelease UnityAction_1_t1819441192 * ___m_ActionOnRelease_2; // System.Int32 UnityEngine.UI.ObjectPool`1::<countAll>k__BackingField int32_t ___U3CcountAllU3Ek__BackingField_3; public: inline static int32_t get_offset_of_m_Stack_0() { return static_cast<int32_t>(offsetof(ObjectPool_1_t934228263, ___m_Stack_0)); } inline Stack_1_t2077994506 * get_m_Stack_0() const { return ___m_Stack_0; } inline Stack_1_t2077994506 ** get_address_of_m_Stack_0() { return &___m_Stack_0; } inline void set_m_Stack_0(Stack_1_t2077994506 * value) { ___m_Stack_0 = value; Il2CppCodeGenWriteBarrier((&___m_Stack_0), value); } inline static int32_t get_offset_of_m_ActionOnGet_1() { return static_cast<int32_t>(offsetof(ObjectPool_1_t934228263, ___m_ActionOnGet_1)); } inline UnityAction_1_t1819441192 * get_m_ActionOnGet_1() const { return ___m_ActionOnGet_1; } inline UnityAction_1_t1819441192 ** get_address_of_m_ActionOnGet_1() { return &___m_ActionOnGet_1; } inline void set_m_ActionOnGet_1(UnityAction_1_t1819441192 * value) { ___m_ActionOnGet_1 = value; Il2CppCodeGenWriteBarrier((&___m_ActionOnGet_1), value); } inline static int32_t get_offset_of_m_ActionOnRelease_2() { return static_cast<int32_t>(offsetof(ObjectPool_1_t934228263, ___m_ActionOnRelease_2)); } inline UnityAction_1_t1819441192 * get_m_ActionOnRelease_2() const { return ___m_ActionOnRelease_2; } inline UnityAction_1_t1819441192 ** get_address_of_m_ActionOnRelease_2() { return &___m_ActionOnRelease_2; } inline void set_m_ActionOnRelease_2(UnityAction_1_t1819441192 * value) { ___m_ActionOnRelease_2 = value; Il2CppCodeGenWriteBarrier((&___m_ActionOnRelease_2), value); } inline static int32_t get_offset_of_U3CcountAllU3Ek__BackingField_3() { return static_cast<int32_t>(offsetof(ObjectPool_1_t934228263, ___U3CcountAllU3Ek__BackingField_3)); } inline int32_t get_U3CcountAllU3Ek__BackingField_3() const { return ___U3CcountAllU3Ek__BackingField_3; } inline int32_t* get_address_of_U3CcountAllU3Ek__BackingField_3() { return &___U3CcountAllU3Ek__BackingField_3; } inline void set_U3CcountAllU3Ek__BackingField_3(int32_t value) { ___U3CcountAllU3Ek__BackingField_3 = value; } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // OBJECTPOOL_1_T934228263_H #ifndef LISTPOOL_1_T3185818714_H #define LISTPOOL_1_T3185818714_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // UnityEngine.UI.ListPool`1<UnityEngine.Vector2> struct ListPool_1_t3185818714 : public RuntimeObject { public: public: }; struct ListPool_1_t3185818714_StaticFields { public: // UnityEngine.UI.ObjectPool`1<System.Collections.Generic.List`1<T>> UnityEngine.UI.ListPool`1::s_ListPool ObjectPool_1_t3327927477 * ___s_ListPool_0; public: inline static int32_t get_offset_of_s_ListPool_0() { return static_cast<int32_t>(offsetof(ListPool_1_t3185818714_StaticFields, ___s_ListPool_0)); } inline ObjectPool_1_t3327927477 * get_s_ListPool_0() const { return ___s_ListPool_0; } inline ObjectPool_1_t3327927477 ** get_address_of_s_ListPool_0() { return &___s_ListPool_0; } inline void set_s_ListPool_0(ObjectPool_1_t3327927477 * value) { ___s_ListPool_0 = value; Il2CppCodeGenWriteBarrier((&___s_ListPool_0), value); } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // LISTPOOL_1_T3185818714_H #ifndef LIST_1_T3628304265_H #define LIST_1_T3628304265_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Collections.Generic.List`1<UnityEngine.Vector2> struct List_1_t3628304265 : public RuntimeObject { public: // T[] System.Collections.Generic.List`1::_items Vector2U5BU5D_t1457185986* ____items_1; // System.Int32 System.Collections.Generic.List`1::_size int32_t ____size_2; // System.Int32 System.Collections.Generic.List`1::_version int32_t ____version_3; public: inline static int32_t get_offset_of__items_1() { return static_cast<int32_t>(offsetof(List_1_t3628304265, ____items_1)); } inline Vector2U5BU5D_t1457185986* get__items_1() const { return ____items_1; } inline Vector2U5BU5D_t1457185986** get_address_of__items_1() { return &____items_1; } inline void set__items_1(Vector2U5BU5D_t1457185986* value) { ____items_1 = value; Il2CppCodeGenWriteBarrier((&____items_1), value); } inline static int32_t get_offset_of__size_2() { return static_cast<int32_t>(offsetof(List_1_t3628304265, ____size_2)); } inline int32_t get__size_2() const { return ____size_2; } inline int32_t* get_address_of__size_2() { return &____size_2; } inline void set__size_2(int32_t value) { ____size_2 = value; } inline static int32_t get_offset_of__version_3() { return static_cast<int32_t>(offsetof(List_1_t3628304265, ____version_3)); } inline int32_t get__version_3() const { return ____version_3; } inline int32_t* get_address_of__version_3() { return &____version_3; } inline void set__version_3(int32_t value) { ____version_3 = value; } }; struct List_1_t3628304265_StaticFields { public: // T[] System.Collections.Generic.List`1::EmptyArray Vector2U5BU5D_t1457185986* ___EmptyArray_4; public: inline static int32_t get_offset_of_EmptyArray_4() { return static_cast<int32_t>(offsetof(List_1_t3628304265_StaticFields, ___EmptyArray_4)); } inline Vector2U5BU5D_t1457185986* get_EmptyArray_4() const { return ___EmptyArray_4; } inline Vector2U5BU5D_t1457185986** get_address_of_EmptyArray_4() { return &___EmptyArray_4; } inline void set_EmptyArray_4(Vector2U5BU5D_t1457185986* value) { ___EmptyArray_4 = value; Il2CppCodeGenWriteBarrier((&___EmptyArray_4), value); } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // LIST_1_T3628304265_H #ifndef OBJECTPOOL_1_T3327927477_H #define OBJECTPOOL_1_T3327927477_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // UnityEngine.UI.ObjectPool`1<System.Collections.Generic.List`1<UnityEngine.Vector2>> struct ObjectPool_1_t3327927477 : public RuntimeObject { public: // System.Collections.Generic.Stack`1<T> UnityEngine.UI.ObjectPool`1::m_Stack Stack_1_t176726424 * ___m_Stack_0; // UnityEngine.Events.UnityAction`1<T> UnityEngine.UI.ObjectPool`1::m_ActionOnGet UnityAction_1_t4213140406 * ___m_ActionOnGet_1; // UnityEngine.Events.UnityAction`1<T> UnityEngine.UI.ObjectPool`1::m_ActionOnRelease UnityAction_1_t4213140406 * ___m_ActionOnRelease_2; // System.Int32 UnityEngine.UI.ObjectPool`1::<countAll>k__BackingField int32_t ___U3CcountAllU3Ek__BackingField_3; public: inline static int32_t get_offset_of_m_Stack_0() { return static_cast<int32_t>(offsetof(ObjectPool_1_t3327927477, ___m_Stack_0)); } inline Stack_1_t176726424 * get_m_Stack_0() const { return ___m_Stack_0; } inline Stack_1_t176726424 ** get_address_of_m_Stack_0() { return &___m_Stack_0; } inline void set_m_Stack_0(Stack_1_t176726424 * value) { ___m_Stack_0 = value; Il2CppCodeGenWriteBarrier((&___m_Stack_0), value); } inline static int32_t get_offset_of_m_ActionOnGet_1() { return static_cast<int32_t>(offsetof(ObjectPool_1_t3327927477, ___m_ActionOnGet_1)); } inline UnityAction_1_t4213140406 * get_m_ActionOnGet_1() const { return ___m_ActionOnGet_1; } inline UnityAction_1_t4213140406 ** get_address_of_m_ActionOnGet_1() { return &___m_ActionOnGet_1; } inline void set_m_ActionOnGet_1(UnityAction_1_t4213140406 * value) { ___m_ActionOnGet_1 = value; Il2CppCodeGenWriteBarrier((&___m_ActionOnGet_1), value); } inline static int32_t get_offset_of_m_ActionOnRelease_2() { return static_cast<int32_t>(offsetof(ObjectPool_1_t3327927477, ___m_ActionOnRelease_2)); } inline UnityAction_1_t4213140406 * get_m_ActionOnRelease_2() const { return ___m_ActionOnRelease_2; } inline UnityAction_1_t4213140406 ** get_address_of_m_ActionOnRelease_2() { return &___m_ActionOnRelease_2; } inline void set_m_ActionOnRelease_2(UnityAction_1_t4213140406 * value) { ___m_ActionOnRelease_2 = value; Il2CppCodeGenWriteBarrier((&___m_ActionOnRelease_2), value); } inline static int32_t get_offset_of_U3CcountAllU3Ek__BackingField_3() { return static_cast<int32_t>(offsetof(ObjectPool_1_t3327927477, ___U3CcountAllU3Ek__BackingField_3)); } inline int32_t get_U3CcountAllU3Ek__BackingField_3() const { return ___U3CcountAllU3Ek__BackingField_3; } inline int32_t* get_address_of_U3CcountAllU3Ek__BackingField_3() { return &___U3CcountAllU3Ek__BackingField_3; } inline void set_U3CcountAllU3Ek__BackingField_3(int32_t value) { ___U3CcountAllU3Ek__BackingField_3 = value; } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // OBJECTPOOL_1_T3327927477_H #ifndef LISTPOOL_1_T456935359_H #define LISTPOOL_1_T456935359_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // UnityEngine.UI.ListPool`1<UnityEngine.Vector3> struct ListPool_1_t456935359 : public RuntimeObject { public: public: }; struct ListPool_1_t456935359_StaticFields { public: // UnityEngine.UI.ObjectPool`1<System.Collections.Generic.List`1<T>> UnityEngine.UI.ListPool`1::s_ListPool ObjectPool_1_t599044122 * ___s_ListPool_0; public: inline static int32_t get_offset_of_s_ListPool_0() { return static_cast<int32_t>(offsetof(ListPool_1_t456935359_StaticFields, ___s_ListPool_0)); } inline ObjectPool_1_t599044122 * get_s_ListPool_0() const { return ___s_ListPool_0; } inline ObjectPool_1_t599044122 ** get_address_of_s_ListPool_0() { return &___s_ListPool_0; } inline void set_s_ListPool_0(ObjectPool_1_t599044122 * value) { ___s_ListPool_0 = value; Il2CppCodeGenWriteBarrier((&___s_ListPool_0), value); } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // LISTPOOL_1_T456935359_H #ifndef LIST_1_T899420910_H #define LIST_1_T899420910_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Collections.Generic.List`1<UnityEngine.Vector3> struct List_1_t899420910 : public RuntimeObject { public: // T[] System.Collections.Generic.List`1::_items Vector3U5BU5D_t1718750761* ____items_1; // System.Int32 System.Collections.Generic.List`1::_size int32_t ____size_2; // System.Int32 System.Collections.Generic.List`1::_version int32_t ____version_3; public: inline static int32_t get_offset_of__items_1() { return static_cast<int32_t>(offsetof(List_1_t899420910, ____items_1)); } inline Vector3U5BU5D_t1718750761* get__items_1() const { return ____items_1; } inline Vector3U5BU5D_t1718750761** get_address_of__items_1() { return &____items_1; } inline void set__items_1(Vector3U5BU5D_t1718750761* value) { ____items_1 = value; Il2CppCodeGenWriteBarrier((&____items_1), value); } inline static int32_t get_offset_of__size_2() { return static_cast<int32_t>(offsetof(List_1_t899420910, ____size_2)); } inline int32_t get__size_2() const { return ____size_2; } inline int32_t* get_address_of__size_2() { return &____size_2; } inline void set__size_2(int32_t value) { ____size_2 = value; } inline static int32_t get_offset_of__version_3() { return static_cast<int32_t>(offsetof(List_1_t899420910, ____version_3)); } inline int32_t get__version_3() const { return ____version_3; } inline int32_t* get_address_of__version_3() { return &____version_3; } inline void set__version_3(int32_t value) { ____version_3 = value; } }; struct List_1_t899420910_StaticFields { public: // T[] System.Collections.Generic.List`1::EmptyArray Vector3U5BU5D_t1718750761* ___EmptyArray_4; public: inline static int32_t get_offset_of_EmptyArray_4() { return static_cast<int32_t>(offsetof(List_1_t899420910_StaticFields, ___EmptyArray_4)); } inline Vector3U5BU5D_t1718750761* get_EmptyArray_4() const { return ___EmptyArray_4; } inline Vector3U5BU5D_t1718750761** get_address_of_EmptyArray_4() { return &___EmptyArray_4; } inline void set_EmptyArray_4(Vector3U5BU5D_t1718750761* value) { ___EmptyArray_4 = value; Il2CppCodeGenWriteBarrier((&___EmptyArray_4), value); } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // LIST_1_T899420910_H #ifndef OBJECTPOOL_1_T599044122_H #define OBJECTPOOL_1_T599044122_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // UnityEngine.UI.ObjectPool`1<System.Collections.Generic.List`1<UnityEngine.Vector3>> struct ObjectPool_1_t599044122 : public RuntimeObject { public: // System.Collections.Generic.Stack`1<T> UnityEngine.UI.ObjectPool`1::m_Stack Stack_1_t1742810365 * ___m_Stack_0; // UnityEngine.Events.UnityAction`1<T> UnityEngine.UI.ObjectPool`1::m_ActionOnGet UnityAction_1_t1484257051 * ___m_ActionOnGet_1; // UnityEngine.Events.UnityAction`1<T> UnityEngine.UI.ObjectPool`1::m_ActionOnRelease UnityAction_1_t1484257051 * ___m_ActionOnRelease_2; // System.Int32 UnityEngine.UI.ObjectPool`1::<countAll>k__BackingField int32_t ___U3CcountAllU3Ek__BackingField_3; public: inline static int32_t get_offset_of_m_Stack_0() { return static_cast<int32_t>(offsetof(ObjectPool_1_t599044122, ___m_Stack_0)); } inline Stack_1_t1742810365 * get_m_Stack_0() const { return ___m_Stack_0; } inline Stack_1_t1742810365 ** get_address_of_m_Stack_0() { return &___m_Stack_0; } inline void set_m_Stack_0(Stack_1_t1742810365 * value) { ___m_Stack_0 = value; Il2CppCodeGenWriteBarrier((&___m_Stack_0), value); } inline static int32_t get_offset_of_m_ActionOnGet_1() { return static_cast<int32_t>(offsetof(ObjectPool_1_t599044122, ___m_ActionOnGet_1)); } inline UnityAction_1_t1484257051 * get_m_ActionOnGet_1() const { return ___m_ActionOnGet_1; } inline UnityAction_1_t1484257051 ** get_address_of_m_ActionOnGet_1() { return &___m_ActionOnGet_1; } inline void set_m_ActionOnGet_1(UnityAction_1_t1484257051 * value) { ___m_ActionOnGet_1 = value; Il2CppCodeGenWriteBarrier((&___m_ActionOnGet_1), value); } inline static int32_t get_offset_of_m_ActionOnRelease_2() { return static_cast<int32_t>(offsetof(ObjectPool_1_t599044122, ___m_ActionOnRelease_2)); } inline UnityAction_1_t1484257051 * get_m_ActionOnRelease_2() const { return ___m_ActionOnRelease_2; } inline UnityAction_1_t1484257051 ** get_address_of_m_ActionOnRelease_2() { return &___m_ActionOnRelease_2; } inline void set_m_ActionOnRelease_2(UnityAction_1_t1484257051 * value) { ___m_ActionOnRelease_2 = value; Il2CppCodeGenWriteBarrier((&___m_ActionOnRelease_2), value); } inline static int32_t get_offset_of_U3CcountAllU3Ek__BackingField_3() { return static_cast<int32_t>(offsetof(ObjectPool_1_t599044122, ___U3CcountAllU3Ek__BackingField_3)); } inline int32_t get_U3CcountAllU3Ek__BackingField_3() const { return ___U3CcountAllU3Ek__BackingField_3; } inline int32_t* get_address_of_U3CcountAllU3Ek__BackingField_3() { return &___U3CcountAllU3Ek__BackingField_3; } inline void set_U3CcountAllU3Ek__BackingField_3(int32_t value) { ___U3CcountAllU3Ek__BackingField_3 = value; } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // OBJECTPOOL_1_T599044122_H #ifndef LISTPOOL_1_T53650832_H #define LISTPOOL_1_T53650832_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // UnityEngine.UI.ListPool`1<UnityEngine.Vector4> struct ListPool_1_t53650832 : public RuntimeObject { public: public: }; struct ListPool_1_t53650832_StaticFields { public: // UnityEngine.UI.ObjectPool`1<System.Collections.Generic.List`1<T>> UnityEngine.UI.ListPool`1::s_ListPool ObjectPool_1_t195759595 * ___s_ListPool_0; public: inline static int32_t get_offset_of_s_ListPool_0() { return static_cast<int32_t>(offsetof(ListPool_1_t53650832_StaticFields, ___s_ListPool_0)); } inline ObjectPool_1_t195759595 * get_s_ListPool_0() const { return ___s_ListPool_0; } inline ObjectPool_1_t195759595 ** get_address_of_s_ListPool_0() { return &___s_ListPool_0; } inline void set_s_ListPool_0(ObjectPool_1_t195759595 * value) { ___s_ListPool_0 = value; Il2CppCodeGenWriteBarrier((&___s_ListPool_0), value); } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // LISTPOOL_1_T53650832_H #ifndef EXCEPTION_T_H #define EXCEPTION_T_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Exception struct Exception_t : public RuntimeObject { public: // System.IntPtr[] System.Exception::trace_ips IntPtrU5BU5D_t4013366056* ___trace_ips_0; // System.Exception System.Exception::inner_exception Exception_t * ___inner_exception_1; // System.String System.Exception::message String_t* ___message_2; // System.String System.Exception::help_link String_t* ___help_link_3; // System.String System.Exception::class_name String_t* ___class_name_4; // System.String System.Exception::stack_trace String_t* ___stack_trace_5; // System.String System.Exception::_remoteStackTraceString String_t* ____remoteStackTraceString_6; // System.Int32 System.Exception::remote_stack_index int32_t ___remote_stack_index_7; // System.Int32 System.Exception::hresult int32_t ___hresult_8; // System.String System.Exception::source String_t* ___source_9; // System.Collections.IDictionary System.Exception::_data RuntimeObject* ____data_10; public: inline static int32_t get_offset_of_trace_ips_0() { return static_cast<int32_t>(offsetof(Exception_t, ___trace_ips_0)); } inline IntPtrU5BU5D_t4013366056* get_trace_ips_0() const { return ___trace_ips_0; } inline IntPtrU5BU5D_t4013366056** get_address_of_trace_ips_0() { return &___trace_ips_0; } inline void set_trace_ips_0(IntPtrU5BU5D_t4013366056* value) { ___trace_ips_0 = value; Il2CppCodeGenWriteBarrier((&___trace_ips_0), value); } inline static int32_t get_offset_of_inner_exception_1() { return static_cast<int32_t>(offsetof(Exception_t, ___inner_exception_1)); } inline Exception_t * get_inner_exception_1() const { return ___inner_exception_1; } inline Exception_t ** get_address_of_inner_exception_1() { return &___inner_exception_1; } inline void set_inner_exception_1(Exception_t * value) { ___inner_exception_1 = value; Il2CppCodeGenWriteBarrier((&___inner_exception_1), value); } inline static int32_t get_offset_of_message_2() { return static_cast<int32_t>(offsetof(Exception_t, ___message_2)); } inline String_t* get_message_2() const { return ___message_2; } inline String_t** get_address_of_message_2() { return &___message_2; } inline void set_message_2(String_t* value) { ___message_2 = value; Il2CppCodeGenWriteBarrier((&___message_2), value); } inline static int32_t get_offset_of_help_link_3() { return static_cast<int32_t>(offsetof(Exception_t, ___help_link_3)); } inline String_t* get_help_link_3() const { return ___help_link_3; } inline String_t** get_address_of_help_link_3() { return &___help_link_3; } inline void set_help_link_3(String_t* value) { ___help_link_3 = value; Il2CppCodeGenWriteBarrier((&___help_link_3), value); } inline static int32_t get_offset_of_class_name_4() { return static_cast<int32_t>(offsetof(Exception_t, ___class_name_4)); } inline String_t* get_class_name_4() const { return ___class_name_4; } inline String_t** get_address_of_class_name_4() { return &___class_name_4; } inline void set_class_name_4(String_t* value) { ___class_name_4 = value; Il2CppCodeGenWriteBarrier((&___class_name_4), value); } inline static int32_t get_offset_of_stack_trace_5() { return static_cast<int32_t>(offsetof(Exception_t, ___stack_trace_5)); } inline String_t* get_stack_trace_5() const { return ___stack_trace_5; } inline String_t** get_address_of_stack_trace_5() { return &___stack_trace_5; } inline void set_stack_trace_5(String_t* value) { ___stack_trace_5 = value; Il2CppCodeGenWriteBarrier((&___stack_trace_5), value); } inline static int32_t get_offset_of__remoteStackTraceString_6() { return static_cast<int32_t>(offsetof(Exception_t, ____remoteStackTraceString_6)); } inline String_t* get__remoteStackTraceString_6() const { return ____remoteStackTraceString_6; } inline String_t** get_address_of__remoteStackTraceString_6() { return &____remoteStackTraceString_6; } inline void set__remoteStackTraceString_6(String_t* value) { ____remoteStackTraceString_6 = value; Il2CppCodeGenWriteBarrier((&____remoteStackTraceString_6), value); } inline static int32_t get_offset_of_remote_stack_index_7() { return static_cast<int32_t>(offsetof(Exception_t, ___remote_stack_index_7)); } inline int32_t get_remote_stack_index_7() const { return ___remote_stack_index_7; } inline int32_t* get_address_of_remote_stack_index_7() { return &___remote_stack_index_7; } inline void set_remote_stack_index_7(int32_t value) { ___remote_stack_index_7 = value; } inline static int32_t get_offset_of_hresult_8() { return static_cast<int32_t>(offsetof(Exception_t, ___hresult_8)); } inline int32_t get_hresult_8() const { return ___hresult_8; } inline int32_t* get_address_of_hresult_8() { return &___hresult_8; } inline void set_hresult_8(int32_t value) { ___hresult_8 = value; } inline static int32_t get_offset_of_source_9() { return static_cast<int32_t>(offsetof(Exception_t, ___source_9)); } inline String_t* get_source_9() const { return ___source_9; } inline String_t** get_address_of_source_9() { return &___source_9; } inline void set_source_9(String_t* value) { ___source_9 = value; Il2CppCodeGenWriteBarrier((&___source_9), value); } inline static int32_t get_offset_of__data_10() { return static_cast<int32_t>(offsetof(Exception_t, ____data_10)); } inline RuntimeObject* get__data_10() const { return ____data_10; } inline RuntimeObject** get_address_of__data_10() { return &____data_10; } inline void set__data_10(RuntimeObject* value) { ____data_10 = value; Il2CppCodeGenWriteBarrier((&____data_10), value); } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // EXCEPTION_T_H #ifndef BASEINVOKABLECALL_T2703961024_H #define BASEINVOKABLECALL_T2703961024_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // UnityEngine.Events.BaseInvokableCall struct BaseInvokableCall_t2703961024 : public RuntimeObject { public: public: }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // BASEINVOKABLECALL_T2703961024_H #ifndef STRING_T_H #define STRING_T_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.String struct String_t : public RuntimeObject { public: // System.Int32 System.String::length int32_t ___length_0; // System.Char System.String::start_char Il2CppChar ___start_char_1; public: inline static int32_t get_offset_of_length_0() { return static_cast<int32_t>(offsetof(String_t, ___length_0)); } inline int32_t get_length_0() const { return ___length_0; } inline int32_t* get_address_of_length_0() { return &___length_0; } inline void set_length_0(int32_t value) { ___length_0 = value; } inline static int32_t get_offset_of_start_char_1() { return static_cast<int32_t>(offsetof(String_t, ___start_char_1)); } inline Il2CppChar get_start_char_1() const { return ___start_char_1; } inline Il2CppChar* get_address_of_start_char_1() { return &___start_char_1; } inline void set_start_char_1(Il2CppChar value) { ___start_char_1 = value; } }; struct String_t_StaticFields { public: // System.String System.String::Empty String_t* ___Empty_2; // System.Char[] System.String::WhiteChars CharU5BU5D_t3528271667* ___WhiteChars_3; public: inline static int32_t get_offset_of_Empty_2() { return static_cast<int32_t>(offsetof(String_t_StaticFields, ___Empty_2)); } inline String_t* get_Empty_2() const { return ___Empty_2; } inline String_t** get_address_of_Empty_2() { return &___Empty_2; } inline void set_Empty_2(String_t* value) { ___Empty_2 = value; Il2CppCodeGenWriteBarrier((&___Empty_2), value); } inline static int32_t get_offset_of_WhiteChars_3() { return static_cast<int32_t>(offsetof(String_t_StaticFields, ___WhiteChars_3)); } inline CharU5BU5D_t3528271667* get_WhiteChars_3() const { return ___WhiteChars_3; } inline CharU5BU5D_t3528271667** get_address_of_WhiteChars_3() { return &___WhiteChars_3; } inline void set_WhiteChars_3(CharU5BU5D_t3528271667* value) { ___WhiteChars_3 = value; Il2CppCodeGenWriteBarrier((&___WhiteChars_3), value); } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // STRING_T_H #ifndef VECTOR2_T2156229523_H #define VECTOR2_T2156229523_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // UnityEngine.Vector2 struct Vector2_t2156229523 { 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_t2156229523, ___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_t2156229523, ___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_t2156229523_StaticFields { public: // UnityEngine.Vector2 UnityEngine.Vector2::zeroVector Vector2_t2156229523 ___zeroVector_2; // UnityEngine.Vector2 UnityEngine.Vector2::oneVector Vector2_t2156229523 ___oneVector_3; // UnityEngine.Vector2 UnityEngine.Vector2::upVector Vector2_t2156229523 ___upVector_4; // UnityEngine.Vector2 UnityEngine.Vector2::downVector Vector2_t2156229523 ___downVector_5; // UnityEngine.Vector2 UnityEngine.Vector2::leftVector Vector2_t2156229523 ___leftVector_6; // UnityEngine.Vector2 UnityEngine.Vector2::rightVector Vector2_t2156229523 ___rightVector_7; // UnityEngine.Vector2 UnityEngine.Vector2::positiveInfinityVector Vector2_t2156229523 ___positiveInfinityVector_8; // UnityEngine.Vector2 UnityEngine.Vector2::negativeInfinityVector Vector2_t2156229523 ___negativeInfinityVector_9; public: inline static int32_t get_offset_of_zeroVector_2() { return static_cast<int32_t>(offsetof(Vector2_t2156229523_StaticFields, ___zeroVector_2)); } inline Vector2_t2156229523 get_zeroVector_2() const { return ___zeroVector_2; } inline Vector2_t2156229523 * get_address_of_zeroVector_2() { return &___zeroVector_2; } inline void set_zeroVector_2(Vector2_t2156229523 value) { ___zeroVector_2 = value; } inline static int32_t get_offset_of_oneVector_3() { return static_cast<int32_t>(offsetof(Vector2_t2156229523_StaticFields, ___oneVector_3)); } inline Vector2_t2156229523 get_oneVector_3() const { return ___oneVector_3; } inline Vector2_t2156229523 * get_address_of_oneVector_3() { return &___oneVector_3; } inline void set_oneVector_3(Vector2_t2156229523 value) { ___oneVector_3 = value; } inline static int32_t get_offset_of_upVector_4() { return static_cast<int32_t>(offsetof(Vector2_t2156229523_StaticFields, ___upVector_4)); } inline Vector2_t2156229523 get_upVector_4() const { return ___upVector_4; } inline Vector2_t2156229523 * get_address_of_upVector_4() { return &___upVector_4; } inline void set_upVector_4(Vector2_t2156229523 value) { ___upVector_4 = value; } inline static int32_t get_offset_of_downVector_5() { return static_cast<int32_t>(offsetof(Vector2_t2156229523_StaticFields, ___downVector_5)); } inline Vector2_t2156229523 get_downVector_5() const { return ___downVector_5; } inline Vector2_t2156229523 * get_address_of_downVector_5() { return &___downVector_5; } inline void set_downVector_5(Vector2_t2156229523 value) { ___downVector_5 = value; } inline static int32_t get_offset_of_leftVector_6() { return static_cast<int32_t>(offsetof(Vector2_t2156229523_StaticFields, ___leftVector_6)); } inline Vector2_t2156229523 get_leftVector_6() const { return ___leftVector_6; } inline Vector2_t2156229523 * get_address_of_leftVector_6() { return &___leftVector_6; } inline void set_leftVector_6(Vector2_t2156229523 value) { ___leftVector_6 = value; } inline static int32_t get_offset_of_rightVector_7() { return static_cast<int32_t>(offsetof(Vector2_t2156229523_StaticFields, ___rightVector_7)); } inline Vector2_t2156229523 get_rightVector_7() const { return ___rightVector_7; } inline Vector2_t2156229523 * get_address_of_rightVector_7() { return &___rightVector_7; } inline void set_rightVector_7(Vector2_t2156229523 value) { ___rightVector_7 = value; } inline static int32_t get_offset_of_positiveInfinityVector_8() { return static_cast<int32_t>(offsetof(Vector2_t2156229523_StaticFields, ___positiveInfinityVector_8)); } inline Vector2_t2156229523 get_positiveInfinityVector_8() const { return ___positiveInfinityVector_8; } inline Vector2_t2156229523 * get_address_of_positiveInfinityVector_8() { return &___positiveInfinityVector_8; } inline void set_positiveInfinityVector_8(Vector2_t2156229523 value) { ___positiveInfinityVector_8 = value; } inline static int32_t get_offset_of_negativeInfinityVector_9() { return static_cast<int32_t>(offsetof(Vector2_t2156229523_StaticFields, ___negativeInfinityVector_9)); } inline Vector2_t2156229523 get_negativeInfinityVector_9() const { return ___negativeInfinityVector_9; } inline Vector2_t2156229523 * get_address_of_negativeInfinityVector_9() { return &___negativeInfinityVector_9; } inline void set_negativeInfinityVector_9(Vector2_t2156229523 value) { ___negativeInfinityVector_9 = value; } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // VECTOR2_T2156229523_H #ifndef INVOKABLECALL_2_T362407658_H #define INVOKABLECALL_2_T362407658_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // UnityEngine.Events.InvokableCall`2<System.Object,System.Object> struct InvokableCall_2_t362407658 : public BaseInvokableCall_t2703961024 { public: // UnityEngine.Events.UnityAction`2<T1,T2> UnityEngine.Events.InvokableCall`2::Delegate UnityAction_2_t3283971887 * ___Delegate_0; public: inline static int32_t get_offset_of_Delegate_0() { return static_cast<int32_t>(offsetof(InvokableCall_2_t362407658, ___Delegate_0)); } inline UnityAction_2_t3283971887 * get_Delegate_0() const { return ___Delegate_0; } inline UnityAction_2_t3283971887 ** get_address_of_Delegate_0() { return &___Delegate_0; } inline void set_Delegate_0(UnityAction_2_t3283971887 * value) { ___Delegate_0 = value; Il2CppCodeGenWriteBarrier((&___Delegate_0), value); } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // INVOKABLECALL_2_T362407658_H #ifndef VOID_T1185182177_H #define VOID_T1185182177_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Void struct Void_t1185182177 { public: public: }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // VOID_T1185182177_H #ifndef INVOKABLECALL_3_T4059188962_H #define INVOKABLECALL_3_T4059188962_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // UnityEngine.Events.InvokableCall`3<System.Object,System.Object,System.Object> struct InvokableCall_3_t4059188962 : public BaseInvokableCall_t2703961024 { public: // UnityEngine.Events.UnityAction`3<T1,T2,T3> UnityEngine.Events.InvokableCall`3::Delegate UnityAction_3_t1557236713 * ___Delegate_0; public: inline static int32_t get_offset_of_Delegate_0() { return static_cast<int32_t>(offsetof(InvokableCall_3_t4059188962, ___Delegate_0)); } inline UnityAction_3_t1557236713 * get_Delegate_0() const { return ___Delegate_0; } inline UnityAction_3_t1557236713 ** get_address_of_Delegate_0() { return &___Delegate_0; } inline void set_Delegate_0(UnityAction_3_t1557236713 * value) { ___Delegate_0 = value; Il2CppCodeGenWriteBarrier((&___Delegate_0), value); } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // INVOKABLECALL_3_T4059188962_H #ifndef FLOATTWEEN_T1274330004_H #define FLOATTWEEN_T1274330004_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // UnityEngine.UI.CoroutineTween.FloatTween struct FloatTween_t1274330004 { public: // UnityEngine.UI.CoroutineTween.FloatTween/FloatTweenCallback UnityEngine.UI.CoroutineTween.FloatTween::m_Target FloatTweenCallback_t1856710240 * ___m_Target_0; // System.Single UnityEngine.UI.CoroutineTween.FloatTween::m_StartValue float ___m_StartValue_1; // System.Single UnityEngine.UI.CoroutineTween.FloatTween::m_TargetValue float ___m_TargetValue_2; // System.Single UnityEngine.UI.CoroutineTween.FloatTween::m_Duration float ___m_Duration_3; // System.Boolean UnityEngine.UI.CoroutineTween.FloatTween::m_IgnoreTimeScale bool ___m_IgnoreTimeScale_4; public: inline static int32_t get_offset_of_m_Target_0() { return static_cast<int32_t>(offsetof(FloatTween_t1274330004, ___m_Target_0)); } inline FloatTweenCallback_t1856710240 * get_m_Target_0() const { return ___m_Target_0; } inline FloatTweenCallback_t1856710240 ** get_address_of_m_Target_0() { return &___m_Target_0; } inline void set_m_Target_0(FloatTweenCallback_t1856710240 * value) { ___m_Target_0 = value; Il2CppCodeGenWriteBarrier((&___m_Target_0), value); } inline static int32_t get_offset_of_m_StartValue_1() { return static_cast<int32_t>(offsetof(FloatTween_t1274330004, ___m_StartValue_1)); } inline float get_m_StartValue_1() const { return ___m_StartValue_1; } inline float* get_address_of_m_StartValue_1() { return &___m_StartValue_1; } inline void set_m_StartValue_1(float value) { ___m_StartValue_1 = value; } inline static int32_t get_offset_of_m_TargetValue_2() { return static_cast<int32_t>(offsetof(FloatTween_t1274330004, ___m_TargetValue_2)); } inline float get_m_TargetValue_2() const { return ___m_TargetValue_2; } inline float* get_address_of_m_TargetValue_2() { return &___m_TargetValue_2; } inline void set_m_TargetValue_2(float value) { ___m_TargetValue_2 = value; } inline static int32_t get_offset_of_m_Duration_3() { return static_cast<int32_t>(offsetof(FloatTween_t1274330004, ___m_Duration_3)); } inline float get_m_Duration_3() const { return ___m_Duration_3; } inline float* get_address_of_m_Duration_3() { return &___m_Duration_3; } inline void set_m_Duration_3(float value) { ___m_Duration_3 = value; } inline static int32_t get_offset_of_m_IgnoreTimeScale_4() { return static_cast<int32_t>(offsetof(FloatTween_t1274330004, ___m_IgnoreTimeScale_4)); } inline bool get_m_IgnoreTimeScale_4() const { return ___m_IgnoreTimeScale_4; } inline bool* get_address_of_m_IgnoreTimeScale_4() { return &___m_IgnoreTimeScale_4; } inline void set_m_IgnoreTimeScale_4(bool value) { ___m_IgnoreTimeScale_4 = value; } }; #ifdef __clang__ #pragma clang diagnostic pop #endif // Native definition for P/Invoke marshalling of UnityEngine.UI.CoroutineTween.FloatTween struct FloatTween_t1274330004_marshaled_pinvoke { FloatTweenCallback_t1856710240 * ___m_Target_0; float ___m_StartValue_1; float ___m_TargetValue_2; float ___m_Duration_3; int32_t ___m_IgnoreTimeScale_4; }; // Native definition for COM marshalling of UnityEngine.UI.CoroutineTween.FloatTween struct FloatTween_t1274330004_marshaled_com { FloatTweenCallback_t1856710240 * ___m_Target_0; float ___m_StartValue_1; float ___m_TargetValue_2; float ___m_Duration_3; int32_t ___m_IgnoreTimeScale_4; }; #endif // FLOATTWEEN_T1274330004_H #ifndef INVOKABLECALL_1_T3068109991_H #define INVOKABLECALL_1_T3068109991_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // UnityEngine.Events.InvokableCall`1<System.Int32> struct InvokableCall_1_t3068109991 : public BaseInvokableCall_t2703961024 { public: // UnityEngine.Events.UnityAction`1<T1> UnityEngine.Events.InvokableCall`1::Delegate UnityAction_1_t3535781894 * ___Delegate_0; public: inline static int32_t get_offset_of_Delegate_0() { return static_cast<int32_t>(offsetof(InvokableCall_1_t3068109991, ___Delegate_0)); } inline UnityAction_1_t3535781894 * get_Delegate_0() const { return ___Delegate_0; } inline UnityAction_1_t3535781894 ** get_address_of_Delegate_0() { return &___Delegate_0; } inline void set_Delegate_0(UnityAction_1_t3535781894 * value) { ___Delegate_0 = value; Il2CppCodeGenWriteBarrier((&___Delegate_0), value); } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // INVOKABLECALL_1_T3068109991_H #ifndef UINT32_T2560061978_H #define UINT32_T2560061978_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.UInt32 struct UInt32_t2560061978 { public: // System.UInt32 System.UInt32::m_value uint32_t ___m_value_0; public: inline static int32_t get_offset_of_m_value_0() { return static_cast<int32_t>(offsetof(UInt32_t2560061978, ___m_value_0)); } inline uint32_t get_m_value_0() const { return ___m_value_0; } inline uint32_t* get_address_of_m_value_0() { return &___m_value_0; } inline void set_m_value_0(uint32_t value) { ___m_value_0 = value; } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // UINT32_T2560061978_H #ifndef METHODBASE_T_H #define METHODBASE_T_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Reflection.MethodBase struct MethodBase_t : public MemberInfo_t { public: public: }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // METHODBASE_T_H #ifndef BOOLEAN_T97287965_H #define BOOLEAN_T97287965_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Boolean struct Boolean_t97287965 { public: // System.Boolean System.Boolean::m_value bool ___m_value_2; public: inline static int32_t get_offset_of_m_value_2() { return static_cast<int32_t>(offsetof(Boolean_t97287965, ___m_value_2)); } inline bool get_m_value_2() const { return ___m_value_2; } inline bool* get_address_of_m_value_2() { return &___m_value_2; } inline void set_m_value_2(bool value) { ___m_value_2 = value; } }; struct Boolean_t97287965_StaticFields { public: // System.String System.Boolean::FalseString String_t* ___FalseString_0; // System.String System.Boolean::TrueString String_t* ___TrueString_1; public: inline static int32_t get_offset_of_FalseString_0() { return static_cast<int32_t>(offsetof(Boolean_t97287965_StaticFields, ___FalseString_0)); } inline String_t* get_FalseString_0() const { return ___FalseString_0; } inline String_t** get_address_of_FalseString_0() { return &___FalseString_0; } inline void set_FalseString_0(String_t* value) { ___FalseString_0 = value; Il2CppCodeGenWriteBarrier((&___FalseString_0), value); } inline static int32_t get_offset_of_TrueString_1() { return static_cast<int32_t>(offsetof(Boolean_t97287965_StaticFields, ___TrueString_1)); } inline String_t* get_TrueString_1() const { return ___TrueString_1; } inline String_t** get_address_of_TrueString_1() { return &___TrueString_1; } inline void set_TrueString_1(String_t* value) { ___TrueString_1 = value; Il2CppCodeGenWriteBarrier((&___TrueString_1), value); } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // BOOLEAN_T97287965_H #ifndef INT32_T2950945753_H #define INT32_T2950945753_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Int32 struct Int32_t2950945753 { public: // System.Int32 System.Int32::m_value int32_t ___m_value_2; public: inline static int32_t get_offset_of_m_value_2() { return static_cast<int32_t>(offsetof(Int32_t2950945753, ___m_value_2)); } inline int32_t get_m_value_2() const { return ___m_value_2; } inline int32_t* get_address_of_m_value_2() { return &___m_value_2; } inline void set_m_value_2(int32_t value) { ___m_value_2 = value; } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // INT32_T2950945753_H #ifndef INVOKABLECALL_1_T3197270402_H #define INVOKABLECALL_1_T3197270402_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // UnityEngine.Events.InvokableCall`1<System.Object> struct InvokableCall_1_t3197270402 : public BaseInvokableCall_t2703961024 { public: // UnityEngine.Events.UnityAction`1<T1> UnityEngine.Events.InvokableCall`1::Delegate UnityAction_1_t3664942305 * ___Delegate_0; public: inline static int32_t get_offset_of_Delegate_0() { return static_cast<int32_t>(offsetof(InvokableCall_1_t3197270402, ___Delegate_0)); } inline UnityAction_1_t3664942305 * get_Delegate_0() const { return ___Delegate_0; } inline UnityAction_1_t3664942305 ** get_address_of_Delegate_0() { return &___Delegate_0; } inline void set_Delegate_0(UnityAction_1_t3664942305 * value) { ___Delegate_0 = value; Il2CppCodeGenWriteBarrier((&___Delegate_0), value); } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // INVOKABLECALL_1_T3197270402_H #ifndef INVOKABLECALL_1_T1514431012_H #define INVOKABLECALL_1_T1514431012_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // UnityEngine.Events.InvokableCall`1<System.Single> struct InvokableCall_1_t1514431012 : public BaseInvokableCall_t2703961024 { public: // UnityEngine.Events.UnityAction`1<T1> UnityEngine.Events.InvokableCall`1::Delegate UnityAction_1_t1982102915 * ___Delegate_0; public: inline static int32_t get_offset_of_Delegate_0() { return static_cast<int32_t>(offsetof(InvokableCall_1_t1514431012, ___Delegate_0)); } inline UnityAction_1_t1982102915 * get_Delegate_0() const { return ___Delegate_0; } inline UnityAction_1_t1982102915 ** get_address_of_Delegate_0() { return &___Delegate_0; } inline void set_Delegate_0(UnityAction_1_t1982102915 * value) { ___Delegate_0 = value; Il2CppCodeGenWriteBarrier((&___Delegate_0), value); } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // INVOKABLECALL_1_T1514431012_H #ifndef SINGLE_T1397266774_H #define SINGLE_T1397266774_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Single struct Single_t1397266774 { public: // System.Single System.Single::m_value float ___m_value_7; public: inline static int32_t get_offset_of_m_value_7() { return static_cast<int32_t>(offsetof(Single_t1397266774, ___m_value_7)); } inline float get_m_value_7() const { return ___m_value_7; } inline float* get_address_of_m_value_7() { return &___m_value_7; } inline void set_m_value_7(float value) { ___m_value_7 = value; } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // SINGLE_T1397266774_H #ifndef INVOKABLECALL_1_T2672850562_H #define INVOKABLECALL_1_T2672850562_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // UnityEngine.Events.InvokableCall`1<UnityEngine.Color> struct InvokableCall_1_t2672850562 : public BaseInvokableCall_t2703961024 { public: // UnityEngine.Events.UnityAction`1<T1> UnityEngine.Events.InvokableCall`1::Delegate UnityAction_1_t3140522465 * ___Delegate_0; public: inline static int32_t get_offset_of_Delegate_0() { return static_cast<int32_t>(offsetof(InvokableCall_1_t2672850562, ___Delegate_0)); } inline UnityAction_1_t3140522465 * get_Delegate_0() const { return ___Delegate_0; } inline UnityAction_1_t3140522465 ** get_address_of_Delegate_0() { return &___Delegate_0; } inline void set_Delegate_0(UnityAction_1_t3140522465 * value) { ___Delegate_0 = value; Il2CppCodeGenWriteBarrier((&___Delegate_0), value); } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // INVOKABLECALL_1_T2672850562_H #ifndef COLOR_T2555686324_H #define COLOR_T2555686324_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // UnityEngine.Color struct Color_t2555686324 { 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_t2555686324, ___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_t2555686324, ___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_t2555686324, ___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_t2555686324, ___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; } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // COLOR_T2555686324_H #ifndef INVOKABLECALL_1_T2273393761_H #define INVOKABLECALL_1_T2273393761_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // UnityEngine.Events.InvokableCall`1<UnityEngine.Vector2> struct InvokableCall_1_t2273393761 : public BaseInvokableCall_t2703961024 { public: // UnityEngine.Events.UnityAction`1<T1> UnityEngine.Events.InvokableCall`1::Delegate UnityAction_1_t2741065664 * ___Delegate_0; public: inline static int32_t get_offset_of_Delegate_0() { return static_cast<int32_t>(offsetof(InvokableCall_1_t2273393761, ___Delegate_0)); } inline UnityAction_1_t2741065664 * get_Delegate_0() const { return ___Delegate_0; } inline UnityAction_1_t2741065664 ** get_address_of_Delegate_0() { return &___Delegate_0; } inline void set_Delegate_0(UnityAction_1_t2741065664 * value) { ___Delegate_0 = value; Il2CppCodeGenWriteBarrier((&___Delegate_0), value); } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // INVOKABLECALL_1_T2273393761_H #ifndef SYSTEMEXCEPTION_T176217640_H #define SYSTEMEXCEPTION_T176217640_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.SystemException struct SystemException_t176217640 : public Exception_t { public: public: }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // SYSTEMEXCEPTION_T176217640_H #ifndef UNITYEVENT_2_T614268397_H #define UNITYEVENT_2_T614268397_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // UnityEngine.Events.UnityEvent`2<System.Object,System.Object> struct UnityEvent_2_t614268397 : public UnityEventBase_t3960448221 { public: // System.Object[] UnityEngine.Events.UnityEvent`2::m_InvokeArray ObjectU5BU5D_t2843939325* ___m_InvokeArray_4; public: inline static int32_t get_offset_of_m_InvokeArray_4() { return static_cast<int32_t>(offsetof(UnityEvent_2_t614268397, ___m_InvokeArray_4)); } inline ObjectU5BU5D_t2843939325* get_m_InvokeArray_4() const { return ___m_InvokeArray_4; } inline ObjectU5BU5D_t2843939325** get_address_of_m_InvokeArray_4() { return &___m_InvokeArray_4; } inline void set_m_InvokeArray_4(ObjectU5BU5D_t2843939325* value) { ___m_InvokeArray_4 = value; Il2CppCodeGenWriteBarrier((&___m_InvokeArray_4), value); } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // UNITYEVENT_2_T614268397_H #ifndef UNITYEVENT_1_T3037889027_H #define UNITYEVENT_1_T3037889027_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // UnityEngine.Events.UnityEvent`1<UnityEngine.Vector2> struct UnityEvent_1_t3037889027 : public UnityEventBase_t3960448221 { public: // System.Object[] UnityEngine.Events.UnityEvent`1::m_InvokeArray ObjectU5BU5D_t2843939325* ___m_InvokeArray_4; public: inline static int32_t get_offset_of_m_InvokeArray_4() { return static_cast<int32_t>(offsetof(UnityEvent_1_t3037889027, ___m_InvokeArray_4)); } inline ObjectU5BU5D_t2843939325* get_m_InvokeArray_4() const { return ___m_InvokeArray_4; } inline ObjectU5BU5D_t2843939325** get_address_of_m_InvokeArray_4() { return &___m_InvokeArray_4; } inline void set_m_InvokeArray_4(ObjectU5BU5D_t2843939325* value) { ___m_InvokeArray_4 = value; Il2CppCodeGenWriteBarrier((&___m_InvokeArray_4), value); } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // UNITYEVENT_1_T3037889027_H #ifndef UNITYEVENT_1_T3437345828_H #define UNITYEVENT_1_T3437345828_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // UnityEngine.Events.UnityEvent`1<UnityEngine.Color> struct UnityEvent_1_t3437345828 : public UnityEventBase_t3960448221 { public: // System.Object[] UnityEngine.Events.UnityEvent`1::m_InvokeArray ObjectU5BU5D_t2843939325* ___m_InvokeArray_4; public: inline static int32_t get_offset_of_m_InvokeArray_4() { return static_cast<int32_t>(offsetof(UnityEvent_1_t3437345828, ___m_InvokeArray_4)); } inline ObjectU5BU5D_t2843939325* get_m_InvokeArray_4() const { return ___m_InvokeArray_4; } inline ObjectU5BU5D_t2843939325** get_address_of_m_InvokeArray_4() { return &___m_InvokeArray_4; } inline void set_m_InvokeArray_4(ObjectU5BU5D_t2843939325* value) { ___m_InvokeArray_4 = value; Il2CppCodeGenWriteBarrier((&___m_InvokeArray_4), value); } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // UNITYEVENT_1_T3437345828_H #ifndef UNITYEVENT_1_T2278926278_H #define UNITYEVENT_1_T2278926278_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // UnityEngine.Events.UnityEvent`1<System.Single> struct UnityEvent_1_t2278926278 : public UnityEventBase_t3960448221 { public: // System.Object[] UnityEngine.Events.UnityEvent`1::m_InvokeArray ObjectU5BU5D_t2843939325* ___m_InvokeArray_4; public: inline static int32_t get_offset_of_m_InvokeArray_4() { return static_cast<int32_t>(offsetof(UnityEvent_1_t2278926278, ___m_InvokeArray_4)); } inline ObjectU5BU5D_t2843939325* get_m_InvokeArray_4() const { return ___m_InvokeArray_4; } inline ObjectU5BU5D_t2843939325** get_address_of_m_InvokeArray_4() { return &___m_InvokeArray_4; } inline void set_m_InvokeArray_4(ObjectU5BU5D_t2843939325* value) { ___m_InvokeArray_4 = value; Il2CppCodeGenWriteBarrier((&___m_InvokeArray_4), value); } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // UNITYEVENT_1_T2278926278_H #ifndef UNITYEVENT_1_T3961765668_H #define UNITYEVENT_1_T3961765668_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // UnityEngine.Events.UnityEvent`1<System.Object> struct UnityEvent_1_t3961765668 : public UnityEventBase_t3960448221 { public: // System.Object[] UnityEngine.Events.UnityEvent`1::m_InvokeArray ObjectU5BU5D_t2843939325* ___m_InvokeArray_4; public: inline static int32_t get_offset_of_m_InvokeArray_4() { return static_cast<int32_t>(offsetof(UnityEvent_1_t3961765668, ___m_InvokeArray_4)); } inline ObjectU5BU5D_t2843939325* get_m_InvokeArray_4() const { return ___m_InvokeArray_4; } inline ObjectU5BU5D_t2843939325** get_address_of_m_InvokeArray_4() { return &___m_InvokeArray_4; } inline void set_m_InvokeArray_4(ObjectU5BU5D_t2843939325* value) { ___m_InvokeArray_4 = value; Il2CppCodeGenWriteBarrier((&___m_InvokeArray_4), value); } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // UNITYEVENT_1_T3961765668_H #ifndef UNITYEVENT_1_T3832605257_H #define UNITYEVENT_1_T3832605257_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // UnityEngine.Events.UnityEvent`1<System.Int32> struct UnityEvent_1_t3832605257 : public UnityEventBase_t3960448221 { public: // System.Object[] UnityEngine.Events.UnityEvent`1::m_InvokeArray ObjectU5BU5D_t2843939325* ___m_InvokeArray_4; public: inline static int32_t get_offset_of_m_InvokeArray_4() { return static_cast<int32_t>(offsetof(UnityEvent_1_t3832605257, ___m_InvokeArray_4)); } inline ObjectU5BU5D_t2843939325* get_m_InvokeArray_4() const { return ___m_InvokeArray_4; } inline ObjectU5BU5D_t2843939325** get_address_of_m_InvokeArray_4() { return &___m_InvokeArray_4; } inline void set_m_InvokeArray_4(ObjectU5BU5D_t2843939325* value) { ___m_InvokeArray_4 = value; Il2CppCodeGenWriteBarrier((&___m_InvokeArray_4), value); } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // UNITYEVENT_1_T3832605257_H #ifndef INTPTR_T_H #define INTPTR_T_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // 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; } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // INTPTR_T_H #ifndef UNITYEVENT_1_T978947469_H #define UNITYEVENT_1_T978947469_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // UnityEngine.Events.UnityEvent`1<System.Boolean> struct UnityEvent_1_t978947469 : public UnityEventBase_t3960448221 { public: // System.Object[] UnityEngine.Events.UnityEvent`1::m_InvokeArray ObjectU5BU5D_t2843939325* ___m_InvokeArray_4; public: inline static int32_t get_offset_of_m_InvokeArray_4() { return static_cast<int32_t>(offsetof(UnityEvent_1_t978947469, ___m_InvokeArray_4)); } inline ObjectU5BU5D_t2843939325* get_m_InvokeArray_4() const { return ___m_InvokeArray_4; } inline ObjectU5BU5D_t2843939325** get_address_of_m_InvokeArray_4() { return &___m_InvokeArray_4; } inline void set_m_InvokeArray_4(ObjectU5BU5D_t2843939325* value) { ___m_InvokeArray_4 = value; Il2CppCodeGenWriteBarrier((&___m_InvokeArray_4), value); } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // UNITYEVENT_1_T978947469_H #ifndef INVOKABLECALL_1_T214452203_H #define INVOKABLECALL_1_T214452203_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // UnityEngine.Events.InvokableCall`1<System.Boolean> struct InvokableCall_1_t214452203 : public BaseInvokableCall_t2703961024 { public: // UnityEngine.Events.UnityAction`1<T1> UnityEngine.Events.InvokableCall`1::Delegate UnityAction_1_t682124106 * ___Delegate_0; public: inline static int32_t get_offset_of_Delegate_0() { return static_cast<int32_t>(offsetof(InvokableCall_1_t214452203, ___Delegate_0)); } inline UnityAction_1_t682124106 * get_Delegate_0() const { return ___Delegate_0; } inline UnityAction_1_t682124106 ** get_address_of_Delegate_0() { return &___Delegate_0; } inline void set_Delegate_0(UnityAction_1_t682124106 * value) { ___Delegate_0 = value; Il2CppCodeGenWriteBarrier((&___Delegate_0), value); } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // INVOKABLECALL_1_T214452203_H #ifndef SCENE_T2348375561_H #define SCENE_T2348375561_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // UnityEngine.SceneManagement.Scene struct Scene_t2348375561 { public: // System.Int32 UnityEngine.SceneManagement.Scene::m_Handle int32_t ___m_Handle_0; public: inline static int32_t get_offset_of_m_Handle_0() { return static_cast<int32_t>(offsetof(Scene_t2348375561, ___m_Handle_0)); } inline int32_t get_m_Handle_0() const { return ___m_Handle_0; } inline int32_t* get_address_of_m_Handle_0() { return &___m_Handle_0; } inline void set_m_Handle_0(int32_t value) { ___m_Handle_0 = value; } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // SCENE_T2348375561_H #ifndef UNITYEVENT_3_T2404744798_H #define UNITYEVENT_3_T2404744798_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // UnityEngine.Events.UnityEvent`3<System.Object,System.Object,System.Object> struct UnityEvent_3_t2404744798 : public UnityEventBase_t3960448221 { public: // System.Object[] UnityEngine.Events.UnityEvent`3::m_InvokeArray ObjectU5BU5D_t2843939325* ___m_InvokeArray_4; public: inline static int32_t get_offset_of_m_InvokeArray_4() { return static_cast<int32_t>(offsetof(UnityEvent_3_t2404744798, ___m_InvokeArray_4)); } inline ObjectU5BU5D_t2843939325* get_m_InvokeArray_4() const { return ___m_InvokeArray_4; } inline ObjectU5BU5D_t2843939325** get_address_of_m_InvokeArray_4() { return &___m_InvokeArray_4; } inline void set_m_InvokeArray_4(ObjectU5BU5D_t2843939325* value) { ___m_InvokeArray_4 = value; Il2CppCodeGenWriteBarrier((&___m_InvokeArray_4), value); } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // UNITYEVENT_3_T2404744798_H #ifndef INVOKABLECALL_4_T2756980746_H #define INVOKABLECALL_4_T2756980746_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // UnityEngine.Events.InvokableCall`4<System.Object,System.Object,System.Object,System.Object> struct InvokableCall_4_t2756980746 : public BaseInvokableCall_t2703961024 { public: // UnityEngine.Events.UnityAction`4<T1,T2,T3,T4> UnityEngine.Events.InvokableCall`4::Delegate UnityAction_4_t682480391 * ___Delegate_0; public: inline static int32_t get_offset_of_Delegate_0() { return static_cast<int32_t>(offsetof(InvokableCall_4_t2756980746, ___Delegate_0)); } inline UnityAction_4_t682480391 * get_Delegate_0() const { return ___Delegate_0; } inline UnityAction_4_t682480391 ** get_address_of_Delegate_0() { return &___Delegate_0; } inline void set_Delegate_0(UnityAction_4_t682480391 * value) { ___Delegate_0 = value; Il2CppCodeGenWriteBarrier((&___Delegate_0), value); } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // INVOKABLECALL_4_T2756980746_H #ifndef ENUM_T4135868527_H #define ENUM_T4135868527_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Enum struct Enum_t4135868527 : public ValueType_t3640485471 { public: public: }; struct Enum_t4135868527_StaticFields { public: // System.Char[] System.Enum::split_char CharU5BU5D_t3528271667* ___split_char_0; public: inline static int32_t get_offset_of_split_char_0() { return static_cast<int32_t>(offsetof(Enum_t4135868527_StaticFields, ___split_char_0)); } inline CharU5BU5D_t3528271667* get_split_char_0() const { return ___split_char_0; } inline CharU5BU5D_t3528271667** get_address_of_split_char_0() { return &___split_char_0; } inline void set_split_char_0(CharU5BU5D_t3528271667* value) { ___split_char_0 = value; Il2CppCodeGenWriteBarrier((&___split_char_0), value); } }; #ifdef __clang__ #pragma clang diagnostic pop #endif // Native definition for P/Invoke marshalling of System.Enum struct Enum_t4135868527_marshaled_pinvoke { }; // Native definition for COM marshalling of System.Enum struct Enum_t4135868527_marshaled_com { }; #endif // ENUM_T4135868527_H #ifndef BASEEVENTDATA_T3903027533_H #define BASEEVENTDATA_T3903027533_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // UnityEngine.EventSystems.BaseEventData struct BaseEventData_t3903027533 : public AbstractEventData_t4171500731 { public: // UnityEngine.EventSystems.EventSystem UnityEngine.EventSystems.BaseEventData::m_EventSystem EventSystem_t1003666588 * ___m_EventSystem_1; public: inline static int32_t get_offset_of_m_EventSystem_1() { return static_cast<int32_t>(offsetof(BaseEventData_t3903027533, ___m_EventSystem_1)); } inline EventSystem_t1003666588 * get_m_EventSystem_1() const { return ___m_EventSystem_1; } inline EventSystem_t1003666588 ** get_address_of_m_EventSystem_1() { return &___m_EventSystem_1; } inline void set_m_EventSystem_1(EventSystem_t1003666588 * value) { ___m_EventSystem_1 = value; Il2CppCodeGenWriteBarrier((&___m_EventSystem_1), value); } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // BASEEVENTDATA_T3903027533_H #ifndef UNITYEVENT_4_T4085588227_H #define UNITYEVENT_4_T4085588227_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // UnityEngine.Events.UnityEvent`4<System.Object,System.Object,System.Object,System.Object> struct UnityEvent_4_t4085588227 : public UnityEventBase_t3960448221 { public: // System.Object[] UnityEngine.Events.UnityEvent`4::m_InvokeArray ObjectU5BU5D_t2843939325* ___m_InvokeArray_4; public: inline static int32_t get_offset_of_m_InvokeArray_4() { return static_cast<int32_t>(offsetof(UnityEvent_4_t4085588227, ___m_InvokeArray_4)); } inline ObjectU5BU5D_t2843939325* get_m_InvokeArray_4() const { return ___m_InvokeArray_4; } inline ObjectU5BU5D_t2843939325** get_address_of_m_InvokeArray_4() { return &___m_InvokeArray_4; } inline void set_m_InvokeArray_4(ObjectU5BU5D_t2843939325* value) { ___m_InvokeArray_4 = value; Il2CppCodeGenWriteBarrier((&___m_InvokeArray_4), value); } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // UNITYEVENT_4_T4085588227_H #ifndef COLORTWEENMODE_T1000778859_H #define COLORTWEENMODE_T1000778859_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // UnityEngine.UI.CoroutineTween.ColorTween/ColorTweenMode struct ColorTweenMode_t1000778859 { public: // System.Int32 UnityEngine.UI.CoroutineTween.ColorTween/ColorTweenMode::value__ int32_t ___value___1; public: inline static int32_t get_offset_of_value___1() { return static_cast<int32_t>(offsetof(ColorTweenMode_t1000778859, ___value___1)); } inline int32_t get_value___1() const { return ___value___1; } inline int32_t* get_address_of_value___1() { return &___value___1; } inline void set_value___1(int32_t value) { ___value___1 = value; } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // COLORTWEENMODE_T1000778859_H #ifndef DELEGATE_T1188392813_H #define DELEGATE_T1188392813_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Delegate struct Delegate_t1188392813 : public RuntimeObject { public: // System.IntPtr System.Delegate::method_ptr Il2CppMethodPointer ___method_ptr_0; // System.IntPtr System.Delegate::invoke_impl intptr_t ___invoke_impl_1; // System.Object System.Delegate::m_target RuntimeObject * ___m_target_2; // System.IntPtr System.Delegate::method intptr_t ___method_3; // System.IntPtr System.Delegate::delegate_trampoline intptr_t ___delegate_trampoline_4; // System.IntPtr System.Delegate::method_code intptr_t ___method_code_5; // System.Reflection.MethodInfo System.Delegate::method_info MethodInfo_t * ___method_info_6; // System.Reflection.MethodInfo System.Delegate::original_method_info MethodInfo_t * ___original_method_info_7; // System.DelegateData System.Delegate::data DelegateData_t1677132599 * ___data_8; public: inline static int32_t get_offset_of_method_ptr_0() { return static_cast<int32_t>(offsetof(Delegate_t1188392813, ___method_ptr_0)); } inline Il2CppMethodPointer get_method_ptr_0() const { return ___method_ptr_0; } inline Il2CppMethodPointer* get_address_of_method_ptr_0() { return &___method_ptr_0; } inline void set_method_ptr_0(Il2CppMethodPointer value) { ___method_ptr_0 = value; } inline static int32_t get_offset_of_invoke_impl_1() { return static_cast<int32_t>(offsetof(Delegate_t1188392813, ___invoke_impl_1)); } inline intptr_t get_invoke_impl_1() const { return ___invoke_impl_1; } inline intptr_t* get_address_of_invoke_impl_1() { return &___invoke_impl_1; } inline void set_invoke_impl_1(intptr_t value) { ___invoke_impl_1 = value; } inline static int32_t get_offset_of_m_target_2() { return static_cast<int32_t>(offsetof(Delegate_t1188392813, ___m_target_2)); } inline RuntimeObject * get_m_target_2() const { return ___m_target_2; } inline RuntimeObject ** get_address_of_m_target_2() { return &___m_target_2; } inline void set_m_target_2(RuntimeObject * value) { ___m_target_2 = value; Il2CppCodeGenWriteBarrier((&___m_target_2), value); } inline static int32_t get_offset_of_method_3() { return static_cast<int32_t>(offsetof(Delegate_t1188392813, ___method_3)); } inline intptr_t get_method_3() const { return ___method_3; } inline intptr_t* get_address_of_method_3() { return &___method_3; } inline void set_method_3(intptr_t value) { ___method_3 = value; } inline static int32_t get_offset_of_delegate_trampoline_4() { return static_cast<int32_t>(offsetof(Delegate_t1188392813, ___delegate_trampoline_4)); } inline intptr_t get_delegate_trampoline_4() const { return ___delegate_trampoline_4; } inline intptr_t* get_address_of_delegate_trampoline_4() { return &___delegate_trampoline_4; } inline void set_delegate_trampoline_4(intptr_t value) { ___delegate_trampoline_4 = value; } inline static int32_t get_offset_of_method_code_5() { return static_cast<int32_t>(offsetof(Delegate_t1188392813, ___method_code_5)); } inline intptr_t get_method_code_5() const { return ___method_code_5; } inline intptr_t* get_address_of_method_code_5() { return &___method_code_5; } inline void set_method_code_5(intptr_t value) { ___method_code_5 = value; } inline static int32_t get_offset_of_method_info_6() { return static_cast<int32_t>(offsetof(Delegate_t1188392813, ___method_info_6)); } inline MethodInfo_t * get_method_info_6() const { return ___method_info_6; } inline MethodInfo_t ** get_address_of_method_info_6() { return &___method_info_6; } inline void set_method_info_6(MethodInfo_t * value) { ___method_info_6 = value; Il2CppCodeGenWriteBarrier((&___method_info_6), value); } inline static int32_t get_offset_of_original_method_info_7() { return static_cast<int32_t>(offsetof(Delegate_t1188392813, ___original_method_info_7)); } inline MethodInfo_t * get_original_method_info_7() const { return ___original_method_info_7; } inline MethodInfo_t ** get_address_of_original_method_info_7() { return &___original_method_info_7; } inline void set_original_method_info_7(MethodInfo_t * value) { ___original_method_info_7 = value; Il2CppCodeGenWriteBarrier((&___original_method_info_7), value); } inline static int32_t get_offset_of_data_8() { return static_cast<int32_t>(offsetof(Delegate_t1188392813, ___data_8)); } inline DelegateData_t1677132599 * get_data_8() const { return ___data_8; } inline DelegateData_t1677132599 ** get_address_of_data_8() { return &___data_8; } inline void set_data_8(DelegateData_t1677132599 * value) { ___data_8 = value; Il2CppCodeGenWriteBarrier((&___data_8), value); } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // DELEGATE_T1188392813_H #ifndef NOTSUPPORTEDEXCEPTION_T1314879016_H #define NOTSUPPORTEDEXCEPTION_T1314879016_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.NotSupportedException struct NotSupportedException_t1314879016 : public SystemException_t176217640 { public: public: }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // NOTSUPPORTEDEXCEPTION_T1314879016_H #ifndef LOADSCENEMODE_T3251202195_H #define LOADSCENEMODE_T3251202195_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // UnityEngine.SceneManagement.LoadSceneMode struct LoadSceneMode_t3251202195 { public: // System.Int32 UnityEngine.SceneManagement.LoadSceneMode::value__ int32_t ___value___1; public: inline static int32_t get_offset_of_value___1() { return static_cast<int32_t>(offsetof(LoadSceneMode_t3251202195, ___value___1)); } inline int32_t get_value___1() const { return ___value___1; } inline int32_t* get_address_of_value___1() { return &___value___1; } inline void set_value___1(int32_t value) { ___value___1 = value; } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // LOADSCENEMODE_T3251202195_H #ifndef NOTIMPLEMENTEDEXCEPTION_T3489357830_H #define NOTIMPLEMENTEDEXCEPTION_T3489357830_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.NotImplementedException struct NotImplementedException_t3489357830 : public SystemException_t176217640 { public: public: }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // NOTIMPLEMENTEDEXCEPTION_T3489357830_H #ifndef ARGUMENTEXCEPTION_T132251570_H #define ARGUMENTEXCEPTION_T132251570_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.ArgumentException struct ArgumentException_t132251570 : public SystemException_t176217640 { public: // System.String System.ArgumentException::param_name String_t* ___param_name_12; public: inline static int32_t get_offset_of_param_name_12() { return static_cast<int32_t>(offsetof(ArgumentException_t132251570, ___param_name_12)); } inline String_t* get_param_name_12() const { return ___param_name_12; } inline String_t** get_address_of_param_name_12() { return &___param_name_12; } inline void set_param_name_12(String_t* value) { ___param_name_12 = value; Il2CppCodeGenWriteBarrier((&___param_name_12), value); } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // ARGUMENTEXCEPTION_T132251570_H #ifndef BINDINGFLAGS_T2721792723_H #define BINDINGFLAGS_T2721792723_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Reflection.BindingFlags struct BindingFlags_t2721792723 { public: // System.Int32 System.Reflection.BindingFlags::value__ int32_t ___value___1; public: inline static int32_t get_offset_of_value___1() { return static_cast<int32_t>(offsetof(BindingFlags_t2721792723, ___value___1)); } inline int32_t get_value___1() const { return ___value___1; } inline int32_t* get_address_of_value___1() { return &___value___1; } inline void set_value___1(int32_t value) { ___value___1 = value; } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // BINDINGFLAGS_T2721792723_H #ifndef OBJECT_T631007953_H #define OBJECT_T631007953_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // UnityEngine.Object struct Object_t631007953 : public RuntimeObject { public: // System.IntPtr UnityEngine.Object::m_CachedPtr intptr_t ___m_CachedPtr_0; public: inline static int32_t get_offset_of_m_CachedPtr_0() { return static_cast<int32_t>(offsetof(Object_t631007953, ___m_CachedPtr_0)); } inline intptr_t get_m_CachedPtr_0() const { return ___m_CachedPtr_0; } inline intptr_t* get_address_of_m_CachedPtr_0() { return &___m_CachedPtr_0; } inline void set_m_CachedPtr_0(intptr_t value) { ___m_CachedPtr_0 = value; } }; struct Object_t631007953_StaticFields { public: // System.Int32 UnityEngine.Object::OffsetOfInstanceIDInCPlusPlusObject int32_t ___OffsetOfInstanceIDInCPlusPlusObject_1; public: inline static int32_t get_offset_of_OffsetOfInstanceIDInCPlusPlusObject_1() { return static_cast<int32_t>(offsetof(Object_t631007953_StaticFields, ___OffsetOfInstanceIDInCPlusPlusObject_1)); } inline int32_t get_OffsetOfInstanceIDInCPlusPlusObject_1() const { return ___OffsetOfInstanceIDInCPlusPlusObject_1; } inline int32_t* get_address_of_OffsetOfInstanceIDInCPlusPlusObject_1() { return &___OffsetOfInstanceIDInCPlusPlusObject_1; } inline void set_OffsetOfInstanceIDInCPlusPlusObject_1(int32_t value) { ___OffsetOfInstanceIDInCPlusPlusObject_1 = value; } }; #ifdef __clang__ #pragma clang diagnostic pop #endif // Native definition for P/Invoke marshalling of UnityEngine.Object struct Object_t631007953_marshaled_pinvoke { intptr_t ___m_CachedPtr_0; }; // Native definition for COM marshalling of UnityEngine.Object struct Object_t631007953_marshaled_com { intptr_t ___m_CachedPtr_0; }; #endif // OBJECT_T631007953_H #ifndef COROUTINE_T3829159415_H #define COROUTINE_T3829159415_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // UnityEngine.Coroutine struct Coroutine_t3829159415 : public YieldInstruction_t403091072 { public: // System.IntPtr UnityEngine.Coroutine::m_Ptr intptr_t ___m_Ptr_0; public: inline static int32_t get_offset_of_m_Ptr_0() { return static_cast<int32_t>(offsetof(Coroutine_t3829159415, ___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; } }; #ifdef __clang__ #pragma clang diagnostic pop #endif // Native definition for P/Invoke marshalling of UnityEngine.Coroutine struct Coroutine_t3829159415_marshaled_pinvoke : public YieldInstruction_t403091072_marshaled_pinvoke { intptr_t ___m_Ptr_0; }; // Native definition for COM marshalling of UnityEngine.Coroutine struct Coroutine_t3829159415_marshaled_com : public YieldInstruction_t403091072_marshaled_com { intptr_t ___m_Ptr_0; }; #endif // COROUTINE_T3829159415_H #ifndef RUNTIMETYPEHANDLE_T3027515415_H #define RUNTIMETYPEHANDLE_T3027515415_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.RuntimeTypeHandle struct RuntimeTypeHandle_t3027515415 { 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_t3027515415, ___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; } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // RUNTIMETYPEHANDLE_T3027515415_H #ifndef METHODINFO_T_H #define METHODINFO_T_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Reflection.MethodInfo struct MethodInfo_t : public MethodBase_t { public: public: }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // METHODINFO_T_H #ifndef U3CSTARTU3EC__ITERATOR0_T30141770_H #define U3CSTARTU3EC__ITERATOR0_T30141770_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // UnityEngine.UI.CoroutineTween.TweenRunner`1/<Start>c__Iterator0<UnityEngine.UI.CoroutineTween.FloatTween> struct U3CStartU3Ec__Iterator0_t30141770 : public RuntimeObject { public: // T UnityEngine.UI.CoroutineTween.TweenRunner`1/<Start>c__Iterator0::tweenInfo FloatTween_t1274330004 ___tweenInfo_0; // System.Single UnityEngine.UI.CoroutineTween.TweenRunner`1/<Start>c__Iterator0::<elapsedTime>__0 float ___U3CelapsedTimeU3E__0_1; // System.Single UnityEngine.UI.CoroutineTween.TweenRunner`1/<Start>c__Iterator0::<percentage>__1 float ___U3CpercentageU3E__1_2; // System.Object UnityEngine.UI.CoroutineTween.TweenRunner`1/<Start>c__Iterator0::$current RuntimeObject * ___U24current_3; // System.Boolean UnityEngine.UI.CoroutineTween.TweenRunner`1/<Start>c__Iterator0::$disposing bool ___U24disposing_4; // System.Int32 UnityEngine.UI.CoroutineTween.TweenRunner`1/<Start>c__Iterator0::$PC int32_t ___U24PC_5; public: inline static int32_t get_offset_of_tweenInfo_0() { return static_cast<int32_t>(offsetof(U3CStartU3Ec__Iterator0_t30141770, ___tweenInfo_0)); } inline FloatTween_t1274330004 get_tweenInfo_0() const { return ___tweenInfo_0; } inline FloatTween_t1274330004 * get_address_of_tweenInfo_0() { return &___tweenInfo_0; } inline void set_tweenInfo_0(FloatTween_t1274330004 value) { ___tweenInfo_0 = value; } inline static int32_t get_offset_of_U3CelapsedTimeU3E__0_1() { return static_cast<int32_t>(offsetof(U3CStartU3Ec__Iterator0_t30141770, ___U3CelapsedTimeU3E__0_1)); } inline float get_U3CelapsedTimeU3E__0_1() const { return ___U3CelapsedTimeU3E__0_1; } inline float* get_address_of_U3CelapsedTimeU3E__0_1() { return &___U3CelapsedTimeU3E__0_1; } inline void set_U3CelapsedTimeU3E__0_1(float value) { ___U3CelapsedTimeU3E__0_1 = value; } inline static int32_t get_offset_of_U3CpercentageU3E__1_2() { return static_cast<int32_t>(offsetof(U3CStartU3Ec__Iterator0_t30141770, ___U3CpercentageU3E__1_2)); } inline float get_U3CpercentageU3E__1_2() const { return ___U3CpercentageU3E__1_2; } inline float* get_address_of_U3CpercentageU3E__1_2() { return &___U3CpercentageU3E__1_2; } inline void set_U3CpercentageU3E__1_2(float value) { ___U3CpercentageU3E__1_2 = value; } inline static int32_t get_offset_of_U24current_3() { return static_cast<int32_t>(offsetof(U3CStartU3Ec__Iterator0_t30141770, ___U24current_3)); } inline RuntimeObject * get_U24current_3() const { return ___U24current_3; } inline RuntimeObject ** get_address_of_U24current_3() { return &___U24current_3; } inline void set_U24current_3(RuntimeObject * value) { ___U24current_3 = value; Il2CppCodeGenWriteBarrier((&___U24current_3), value); } inline static int32_t get_offset_of_U24disposing_4() { return static_cast<int32_t>(offsetof(U3CStartU3Ec__Iterator0_t30141770, ___U24disposing_4)); } inline bool get_U24disposing_4() const { return ___U24disposing_4; } inline bool* get_address_of_U24disposing_4() { return &___U24disposing_4; } inline void set_U24disposing_4(bool value) { ___U24disposing_4 = value; } inline static int32_t get_offset_of_U24PC_5() { return static_cast<int32_t>(offsetof(U3CStartU3Ec__Iterator0_t30141770, ___U24PC_5)); } inline int32_t get_U24PC_5() const { return ___U24PC_5; } inline int32_t* get_address_of_U24PC_5() { return &___U24PC_5; } inline void set_U24PC_5(int32_t value) { ___U24PC_5 = value; } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // U3CSTARTU3EC__ITERATOR0_T30141770_H #ifndef MULTICASTDELEGATE_T_H #define MULTICASTDELEGATE_T_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.MulticastDelegate struct MulticastDelegate_t : public Delegate_t1188392813 { public: // System.MulticastDelegate System.MulticastDelegate::prev MulticastDelegate_t * ___prev_9; // System.MulticastDelegate System.MulticastDelegate::kpm_next MulticastDelegate_t * ___kpm_next_10; public: inline static int32_t get_offset_of_prev_9() { return static_cast<int32_t>(offsetof(MulticastDelegate_t, ___prev_9)); } inline MulticastDelegate_t * get_prev_9() const { return ___prev_9; } inline MulticastDelegate_t ** get_address_of_prev_9() { return &___prev_9; } inline void set_prev_9(MulticastDelegate_t * value) { ___prev_9 = value; Il2CppCodeGenWriteBarrier((&___prev_9), value); } inline static int32_t get_offset_of_kpm_next_10() { return static_cast<int32_t>(offsetof(MulticastDelegate_t, ___kpm_next_10)); } inline MulticastDelegate_t * get_kpm_next_10() const { return ___kpm_next_10; } inline MulticastDelegate_t ** get_address_of_kpm_next_10() { return &___kpm_next_10; } inline void set_kpm_next_10(MulticastDelegate_t * value) { ___kpm_next_10 = value; Il2CppCodeGenWriteBarrier((&___kpm_next_10), value); } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // MULTICASTDELEGATE_T_H #ifndef COLORTWEEN_T809614380_H #define COLORTWEEN_T809614380_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // UnityEngine.UI.CoroutineTween.ColorTween struct ColorTween_t809614380 { public: // UnityEngine.UI.CoroutineTween.ColorTween/ColorTweenCallback UnityEngine.UI.CoroutineTween.ColorTween::m_Target ColorTweenCallback_t1121741130 * ___m_Target_0; // UnityEngine.Color UnityEngine.UI.CoroutineTween.ColorTween::m_StartColor Color_t2555686324 ___m_StartColor_1; // UnityEngine.Color UnityEngine.UI.CoroutineTween.ColorTween::m_TargetColor Color_t2555686324 ___m_TargetColor_2; // UnityEngine.UI.CoroutineTween.ColorTween/ColorTweenMode UnityEngine.UI.CoroutineTween.ColorTween::m_TweenMode int32_t ___m_TweenMode_3; // System.Single UnityEngine.UI.CoroutineTween.ColorTween::m_Duration float ___m_Duration_4; // System.Boolean UnityEngine.UI.CoroutineTween.ColorTween::m_IgnoreTimeScale bool ___m_IgnoreTimeScale_5; public: inline static int32_t get_offset_of_m_Target_0() { return static_cast<int32_t>(offsetof(ColorTween_t809614380, ___m_Target_0)); } inline ColorTweenCallback_t1121741130 * get_m_Target_0() const { return ___m_Target_0; } inline ColorTweenCallback_t1121741130 ** get_address_of_m_Target_0() { return &___m_Target_0; } inline void set_m_Target_0(ColorTweenCallback_t1121741130 * value) { ___m_Target_0 = value; Il2CppCodeGenWriteBarrier((&___m_Target_0), value); } inline static int32_t get_offset_of_m_StartColor_1() { return static_cast<int32_t>(offsetof(ColorTween_t809614380, ___m_StartColor_1)); } inline Color_t2555686324 get_m_StartColor_1() const { return ___m_StartColor_1; } inline Color_t2555686324 * get_address_of_m_StartColor_1() { return &___m_StartColor_1; } inline void set_m_StartColor_1(Color_t2555686324 value) { ___m_StartColor_1 = value; } inline static int32_t get_offset_of_m_TargetColor_2() { return static_cast<int32_t>(offsetof(ColorTween_t809614380, ___m_TargetColor_2)); } inline Color_t2555686324 get_m_TargetColor_2() const { return ___m_TargetColor_2; } inline Color_t2555686324 * get_address_of_m_TargetColor_2() { return &___m_TargetColor_2; } inline void set_m_TargetColor_2(Color_t2555686324 value) { ___m_TargetColor_2 = value; } inline static int32_t get_offset_of_m_TweenMode_3() { return static_cast<int32_t>(offsetof(ColorTween_t809614380, ___m_TweenMode_3)); } inline int32_t get_m_TweenMode_3() const { return ___m_TweenMode_3; } inline int32_t* get_address_of_m_TweenMode_3() { return &___m_TweenMode_3; } inline void set_m_TweenMode_3(int32_t value) { ___m_TweenMode_3 = value; } inline static int32_t get_offset_of_m_Duration_4() { return static_cast<int32_t>(offsetof(ColorTween_t809614380, ___m_Duration_4)); } inline float get_m_Duration_4() const { return ___m_Duration_4; } inline float* get_address_of_m_Duration_4() { return &___m_Duration_4; } inline void set_m_Duration_4(float value) { ___m_Duration_4 = value; } inline static int32_t get_offset_of_m_IgnoreTimeScale_5() { return static_cast<int32_t>(offsetof(ColorTween_t809614380, ___m_IgnoreTimeScale_5)); } inline bool get_m_IgnoreTimeScale_5() const { return ___m_IgnoreTimeScale_5; } inline bool* get_address_of_m_IgnoreTimeScale_5() { return &___m_IgnoreTimeScale_5; } inline void set_m_IgnoreTimeScale_5(bool value) { ___m_IgnoreTimeScale_5 = value; } }; #ifdef __clang__ #pragma clang diagnostic pop #endif // Native definition for P/Invoke marshalling of UnityEngine.UI.CoroutineTween.ColorTween struct ColorTween_t809614380_marshaled_pinvoke { ColorTweenCallback_t1121741130 * ___m_Target_0; Color_t2555686324 ___m_StartColor_1; Color_t2555686324 ___m_TargetColor_2; int32_t ___m_TweenMode_3; float ___m_Duration_4; int32_t ___m_IgnoreTimeScale_5; }; // Native definition for COM marshalling of UnityEngine.UI.CoroutineTween.ColorTween struct ColorTween_t809614380_marshaled_com { ColorTweenCallback_t1121741130 * ___m_Target_0; Color_t2555686324 ___m_StartColor_1; Color_t2555686324 ___m_TargetColor_2; int32_t ___m_TweenMode_3; float ___m_Duration_4; int32_t ___m_IgnoreTimeScale_5; }; #endif // COLORTWEEN_T809614380_H #ifndef TYPE_T_H #define TYPE_T_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Type struct Type_t : public MemberInfo_t { public: // System.RuntimeTypeHandle System.Type::_impl RuntimeTypeHandle_t3027515415 ____impl_1; public: inline static int32_t get_offset_of__impl_1() { return static_cast<int32_t>(offsetof(Type_t, ____impl_1)); } inline RuntimeTypeHandle_t3027515415 get__impl_1() const { return ____impl_1; } inline RuntimeTypeHandle_t3027515415 * get_address_of__impl_1() { return &____impl_1; } inline void set__impl_1(RuntimeTypeHandle_t3027515415 value) { ____impl_1 = value; } }; struct Type_t_StaticFields { public: // System.Char System.Type::Delimiter Il2CppChar ___Delimiter_2; // System.Type[] System.Type::EmptyTypes TypeU5BU5D_t3940880105* ___EmptyTypes_3; // System.Reflection.MemberFilter System.Type::FilterAttribute MemberFilter_t426314064 * ___FilterAttribute_4; // System.Reflection.MemberFilter System.Type::FilterName MemberFilter_t426314064 * ___FilterName_5; // System.Reflection.MemberFilter System.Type::FilterNameIgnoreCase MemberFilter_t426314064 * ___FilterNameIgnoreCase_6; // System.Object System.Type::Missing RuntimeObject * ___Missing_7; public: inline static int32_t get_offset_of_Delimiter_2() { return static_cast<int32_t>(offsetof(Type_t_StaticFields, ___Delimiter_2)); } inline Il2CppChar get_Delimiter_2() const { return ___Delimiter_2; } inline Il2CppChar* get_address_of_Delimiter_2() { return &___Delimiter_2; } inline void set_Delimiter_2(Il2CppChar value) { ___Delimiter_2 = value; } inline static int32_t get_offset_of_EmptyTypes_3() { return static_cast<int32_t>(offsetof(Type_t_StaticFields, ___EmptyTypes_3)); } inline TypeU5BU5D_t3940880105* get_EmptyTypes_3() const { return ___EmptyTypes_3; } inline TypeU5BU5D_t3940880105** get_address_of_EmptyTypes_3() { return &___EmptyTypes_3; } inline void set_EmptyTypes_3(TypeU5BU5D_t3940880105* value) { ___EmptyTypes_3 = value; Il2CppCodeGenWriteBarrier((&___EmptyTypes_3), value); } inline static int32_t get_offset_of_FilterAttribute_4() { return static_cast<int32_t>(offsetof(Type_t_StaticFields, ___FilterAttribute_4)); } inline MemberFilter_t426314064 * get_FilterAttribute_4() const { return ___FilterAttribute_4; } inline MemberFilter_t426314064 ** get_address_of_FilterAttribute_4() { return &___FilterAttribute_4; } inline void set_FilterAttribute_4(MemberFilter_t426314064 * value) { ___FilterAttribute_4 = value; Il2CppCodeGenWriteBarrier((&___FilterAttribute_4), value); } inline static int32_t get_offset_of_FilterName_5() { return static_cast<int32_t>(offsetof(Type_t_StaticFields, ___FilterName_5)); } inline MemberFilter_t426314064 * get_FilterName_5() const { return ___FilterName_5; } inline MemberFilter_t426314064 ** get_address_of_FilterName_5() { return &___FilterName_5; } inline void set_FilterName_5(MemberFilter_t426314064 * value) { ___FilterName_5 = value; Il2CppCodeGenWriteBarrier((&___FilterName_5), value); } inline static int32_t get_offset_of_FilterNameIgnoreCase_6() { return static_cast<int32_t>(offsetof(Type_t_StaticFields, ___FilterNameIgnoreCase_6)); } inline MemberFilter_t426314064 * get_FilterNameIgnoreCase_6() const { return ___FilterNameIgnoreCase_6; } inline MemberFilter_t426314064 ** get_address_of_FilterNameIgnoreCase_6() { return &___FilterNameIgnoreCase_6; } inline void set_FilterNameIgnoreCase_6(MemberFilter_t426314064 * value) { ___FilterNameIgnoreCase_6 = value; Il2CppCodeGenWriteBarrier((&___FilterNameIgnoreCase_6), value); } inline static int32_t get_offset_of_Missing_7() { return static_cast<int32_t>(offsetof(Type_t_StaticFields, ___Missing_7)); } inline RuntimeObject * get_Missing_7() const { return ___Missing_7; } inline RuntimeObject ** get_address_of_Missing_7() { return &___Missing_7; } inline void set_Missing_7(RuntimeObject * value) { ___Missing_7 = value; Il2CppCodeGenWriteBarrier((&___Missing_7), value); } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // TYPE_T_H #ifndef GAMEOBJECT_T1113636619_H #define GAMEOBJECT_T1113636619_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // UnityEngine.GameObject struct GameObject_t1113636619 : public Object_t631007953 { public: public: }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // GAMEOBJECT_T1113636619_H #ifndef COMPONENT_T1923634451_H #define COMPONENT_T1923634451_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // UnityEngine.Component struct Component_t1923634451 : public Object_t631007953 { public: public: }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // COMPONENT_T1923634451_H #ifndef UNITYACTION_1_T682124106_H #define UNITYACTION_1_T682124106_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // UnityEngine.Events.UnityAction`1<System.Boolean> struct UnityAction_1_t682124106 : public MulticastDelegate_t { public: public: }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // UNITYACTION_1_T682124106_H #ifndef UNITYACTION_1_T1080972524_H #define UNITYACTION_1_T1080972524_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // UnityEngine.Events.UnityAction`1<System.Collections.Generic.List`1<UnityEngine.Vector4>> struct UnityAction_1_t1080972524 : public MulticastDelegate_t { public: public: }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // UNITYACTION_1_T1080972524_H #ifndef BEHAVIOUR_T1437897464_H #define BEHAVIOUR_T1437897464_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // UnityEngine.Behaviour struct Behaviour_t1437897464 : public Component_t1923634451 { public: public: }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // BEHAVIOUR_T1437897464_H #ifndef UNITYACTION_1_T1484257051_H #define UNITYACTION_1_T1484257051_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // UnityEngine.Events.UnityAction`1<System.Collections.Generic.List`1<UnityEngine.Vector3>> struct UnityAction_1_t1484257051 : public MulticastDelegate_t { public: public: }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // UNITYACTION_1_T1484257051_H #ifndef UNITYACTION_2_T3283971887_H #define UNITYACTION_2_T3283971887_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // UnityEngine.Events.UnityAction`2<System.Object,System.Object> struct UnityAction_2_t3283971887 : public MulticastDelegate_t { public: public: }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // UNITYACTION_2_T3283971887_H #ifndef U3CSTARTU3EC__ITERATOR0_T3860393442_H #define U3CSTARTU3EC__ITERATOR0_T3860393442_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // UnityEngine.UI.CoroutineTween.TweenRunner`1/<Start>c__Iterator0<UnityEngine.UI.CoroutineTween.ColorTween> struct U3CStartU3Ec__Iterator0_t3860393442 : public RuntimeObject { public: // T UnityEngine.UI.CoroutineTween.TweenRunner`1/<Start>c__Iterator0::tweenInfo ColorTween_t809614380 ___tweenInfo_0; // System.Single UnityEngine.UI.CoroutineTween.TweenRunner`1/<Start>c__Iterator0::<elapsedTime>__0 float ___U3CelapsedTimeU3E__0_1; // System.Single UnityEngine.UI.CoroutineTween.TweenRunner`1/<Start>c__Iterator0::<percentage>__1 float ___U3CpercentageU3E__1_2; // System.Object UnityEngine.UI.CoroutineTween.TweenRunner`1/<Start>c__Iterator0::$current RuntimeObject * ___U24current_3; // System.Boolean UnityEngine.UI.CoroutineTween.TweenRunner`1/<Start>c__Iterator0::$disposing bool ___U24disposing_4; // System.Int32 UnityEngine.UI.CoroutineTween.TweenRunner`1/<Start>c__Iterator0::$PC int32_t ___U24PC_5; public: inline static int32_t get_offset_of_tweenInfo_0() { return static_cast<int32_t>(offsetof(U3CStartU3Ec__Iterator0_t3860393442, ___tweenInfo_0)); } inline ColorTween_t809614380 get_tweenInfo_0() const { return ___tweenInfo_0; } inline ColorTween_t809614380 * get_address_of_tweenInfo_0() { return &___tweenInfo_0; } inline void set_tweenInfo_0(ColorTween_t809614380 value) { ___tweenInfo_0 = value; } inline static int32_t get_offset_of_U3CelapsedTimeU3E__0_1() { return static_cast<int32_t>(offsetof(U3CStartU3Ec__Iterator0_t3860393442, ___U3CelapsedTimeU3E__0_1)); } inline float get_U3CelapsedTimeU3E__0_1() const { return ___U3CelapsedTimeU3E__0_1; } inline float* get_address_of_U3CelapsedTimeU3E__0_1() { return &___U3CelapsedTimeU3E__0_1; } inline void set_U3CelapsedTimeU3E__0_1(float value) { ___U3CelapsedTimeU3E__0_1 = value; } inline static int32_t get_offset_of_U3CpercentageU3E__1_2() { return static_cast<int32_t>(offsetof(U3CStartU3Ec__Iterator0_t3860393442, ___U3CpercentageU3E__1_2)); } inline float get_U3CpercentageU3E__1_2() const { return ___U3CpercentageU3E__1_2; } inline float* get_address_of_U3CpercentageU3E__1_2() { return &___U3CpercentageU3E__1_2; } inline void set_U3CpercentageU3E__1_2(float value) { ___U3CpercentageU3E__1_2 = value; } inline static int32_t get_offset_of_U24current_3() { return static_cast<int32_t>(offsetof(U3CStartU3Ec__Iterator0_t3860393442, ___U24current_3)); } inline RuntimeObject * get_U24current_3() const { return ___U24current_3; } inline RuntimeObject ** get_address_of_U24current_3() { return &___U24current_3; } inline void set_U24current_3(RuntimeObject * value) { ___U24current_3 = value; Il2CppCodeGenWriteBarrier((&___U24current_3), value); } inline static int32_t get_offset_of_U24disposing_4() { return static_cast<int32_t>(offsetof(U3CStartU3Ec__Iterator0_t3860393442, ___U24disposing_4)); } inline bool get_U24disposing_4() const { return ___U24disposing_4; } inline bool* get_address_of_U24disposing_4() { return &___U24disposing_4; } inline void set_U24disposing_4(bool value) { ___U24disposing_4 = value; } inline static int32_t get_offset_of_U24PC_5() { return static_cast<int32_t>(offsetof(U3CStartU3Ec__Iterator0_t3860393442, ___U24PC_5)); } inline int32_t get_U24PC_5() const { return ___U24PC_5; } inline int32_t* get_address_of_U24PC_5() { return &___U24PC_5; } inline void set_U24PC_5(int32_t value) { ___U24PC_5 = value; } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // U3CSTARTU3EC__ITERATOR0_T3860393442_H #ifndef COMPARISON_1_T2855037343_H #define COMPARISON_1_T2855037343_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Comparison`1<System.Object> struct Comparison_1_t2855037343 : public MulticastDelegate_t { public: public: }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // COMPARISON_1_T2855037343_H #ifndef UNITYACTION_3_T1557236713_H #define UNITYACTION_3_T1557236713_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // UnityEngine.Events.UnityAction`3<System.Object,System.Object,System.Object> struct UnityAction_3_t1557236713 : public MulticastDelegate_t { public: public: }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // UNITYACTION_3_T1557236713_H #ifndef UNITYACTION_4_T682480391_H #define UNITYACTION_4_T682480391_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // UnityEngine.Events.UnityAction`4<System.Object,System.Object,System.Object,System.Object> struct UnityAction_4_t682480391 : public MulticastDelegate_t { public: public: }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // UNITYACTION_4_T682480391_H #ifndef EVENTFUNCTION_1_T1764640198_H #define EVENTFUNCTION_1_T1764640198_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // UnityEngine.EventSystems.ExecuteEvents/EventFunction`1<System.Object> struct EventFunction_1_t1764640198 : public MulticastDelegate_t { public: public: }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // EVENTFUNCTION_1_T1764640198_H #ifndef ASYNCCALLBACK_T3962456242_H #define ASYNCCALLBACK_T3962456242_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.AsyncCallback struct AsyncCallback_t3962456242 : public MulticastDelegate_t { public: public: }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // ASYNCCALLBACK_T3962456242_H #ifndef UNITYACTION_2_T1262235195_H #define UNITYACTION_2_T1262235195_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // UnityEngine.Events.UnityAction`2<UnityEngine.SceneManagement.Scene,UnityEngine.SceneManagement.Scene> struct UnityAction_2_t1262235195 : public MulticastDelegate_t { public: public: }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // UNITYACTION_2_T1262235195_H #ifndef UNITYACTION_2_T2165061829_H #define UNITYACTION_2_T2165061829_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // UnityEngine.Events.UnityAction`2<UnityEngine.SceneManagement.Scene,UnityEngine.SceneManagement.LoadSceneMode> struct UnityAction_2_t2165061829 : public MulticastDelegate_t { public: public: }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // UNITYACTION_2_T2165061829_H #ifndef UNITYACTION_1_T2933211702_H #define UNITYACTION_1_T2933211702_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // UnityEngine.Events.UnityAction`1<UnityEngine.SceneManagement.Scene> struct UnityAction_1_t2933211702 : public MulticastDelegate_t { public: public: }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // UNITYACTION_1_T2933211702_H #ifndef UNITYACTION_1_T4213140406_H #define UNITYACTION_1_T4213140406_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // UnityEngine.Events.UnityAction`1<System.Collections.Generic.List`1<UnityEngine.Vector2>> struct UnityAction_1_t4213140406 : public MulticastDelegate_t { public: public: }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // UNITYACTION_1_T4213140406_H #ifndef UNITYACTION_1_T3535781894_H #define UNITYACTION_1_T3535781894_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // UnityEngine.Events.UnityAction`1<System.Int32> struct UnityAction_1_t3535781894 : public MulticastDelegate_t { public: public: }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // UNITYACTION_1_T3535781894_H #ifndef UNITYACTION_1_T1819441192_H #define UNITYACTION_1_T1819441192_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // UnityEngine.Events.UnityAction`1<System.Collections.Generic.List`1<UnityEngine.UIVertex>> struct UnityAction_1_t1819441192 : public MulticastDelegate_t { public: public: }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // UNITYACTION_1_T1819441192_H #ifndef UNITYACTION_1_T3664942305_H #define UNITYACTION_1_T3664942305_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // UnityEngine.Events.UnityAction`1<System.Object> struct UnityAction_1_t3664942305 : public MulticastDelegate_t { public: public: }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // UNITYACTION_1_T3664942305_H #ifndef UNITYACTION_1_T1982102915_H #define UNITYACTION_1_T1982102915_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // UnityEngine.Events.UnityAction`1<System.Single> struct UnityAction_1_t1982102915 : public MulticastDelegate_t { public: public: }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // UNITYACTION_1_T1982102915_H #ifndef UNITYACTION_1_T362444879_H #define UNITYACTION_1_T362444879_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // UnityEngine.Events.UnityAction`1<System.Collections.Generic.List`1<UnityEngine.Color32>> struct UnityAction_1_t362444879 : public MulticastDelegate_t { public: public: }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // UNITYACTION_1_T362444879_H #ifndef UNITYACTION_1_T3140522465_H #define UNITYACTION_1_T3140522465_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // UnityEngine.Events.UnityAction`1<UnityEngine.Color> struct UnityAction_1_t3140522465 : public MulticastDelegate_t { public: public: }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // UNITYACTION_1_T3140522465_H #ifndef UNITYACTION_1_T842049751_H #define UNITYACTION_1_T842049751_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // UnityEngine.Events.UnityAction`1<System.Collections.Generic.List`1<System.Object>> struct UnityAction_1_t842049751 : public MulticastDelegate_t { public: public: }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // UNITYACTION_1_T842049751_H #ifndef UNITYACTION_1_T712889340_H #define UNITYACTION_1_T712889340_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // UnityEngine.Events.UnityAction`1<System.Collections.Generic.List`1<System.Int32>> struct UnityAction_1_t712889340 : public MulticastDelegate_t { public: public: }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // UNITYACTION_1_T712889340_H #ifndef UNITYACTION_1_T2741065664_H #define UNITYACTION_1_T2741065664_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // UnityEngine.Events.UnityAction`1<UnityEngine.Vector2> struct UnityAction_1_t2741065664 : public MulticastDelegate_t { public: public: }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // UNITYACTION_1_T2741065664_H #ifndef MONOBEHAVIOUR_T3962482529_H #define MONOBEHAVIOUR_T3962482529_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // UnityEngine.MonoBehaviour struct MonoBehaviour_t3962482529 : public Behaviour_t1437897464 { public: public: }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // MONOBEHAVIOUR_T3962482529_H // System.Object[] struct ObjectU5BU5D_t2843939325 : public RuntimeArray { public: ALIGN_FIELD (8) RuntimeObject * m_Items[1]; public: inline RuntimeObject * GetAt(il2cpp_array_size_t index) const { IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length); return m_Items[index]; } inline RuntimeObject ** GetAddressAt(il2cpp_array_size_t index) { IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length); return m_Items + index; } inline void SetAt(il2cpp_array_size_t index, RuntimeObject * value) { IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length); m_Items[index] = value; Il2CppCodeGenWriteBarrier(m_Items + index, value); } inline RuntimeObject * GetAtUnchecked(il2cpp_array_size_t index) const { return m_Items[index]; } inline RuntimeObject ** GetAddressAtUnchecked(il2cpp_array_size_t index) { return m_Items + index; } inline void SetAtUnchecked(il2cpp_array_size_t index, RuntimeObject * value) { m_Items[index] = value; Il2CppCodeGenWriteBarrier(m_Items + index, value); } }; // System.Type[] struct TypeU5BU5D_t3940880105 : public RuntimeArray { public: ALIGN_FIELD (8) Type_t * m_Items[1]; public: inline Type_t * GetAt(il2cpp_array_size_t index) const { IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length); return m_Items[index]; } inline Type_t ** GetAddressAt(il2cpp_array_size_t index) { IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length); return m_Items + index; } inline void SetAt(il2cpp_array_size_t index, Type_t * value) { IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length); m_Items[index] = value; Il2CppCodeGenWriteBarrier(m_Items + index, value); } inline Type_t * GetAtUnchecked(il2cpp_array_size_t index) const { return m_Items[index]; } inline Type_t ** GetAddressAtUnchecked(il2cpp_array_size_t index) { return m_Items + index; } inline void SetAtUnchecked(il2cpp_array_size_t index, Type_t * value) { m_Items[index] = value; Il2CppCodeGenWriteBarrier(m_Items + index, value); } }; // System.Void UnityEngine.Events.UnityAction`1<System.Boolean>::Invoke(T0) extern "C" void UnityAction_1_Invoke_m3535252839_gshared (UnityAction_1_t682124106 * __this, bool ___arg00, const RuntimeMethod* method); // System.Void UnityEngine.Events.UnityAction`1<System.Int32>::Invoke(T0) extern "C" void UnityAction_1_Invoke_m3388120194_gshared (UnityAction_1_t3535781894 * __this, int32_t ___arg00, const RuntimeMethod* method); // System.Void UnityEngine.Events.UnityAction`1<System.Object>::Invoke(T0) extern "C" void UnityAction_1_Invoke_m2929687399_gshared (UnityAction_1_t3664942305 * __this, RuntimeObject * ___arg00, const RuntimeMethod* method); // System.Void UnityEngine.Events.UnityAction`1<System.Single>::Invoke(T0) extern "C" void UnityAction_1_Invoke_m1035307306_gshared (UnityAction_1_t1982102915 * __this, float ___arg00, const RuntimeMethod* method); // System.Void UnityEngine.Events.UnityAction`1<UnityEngine.Color>::Invoke(T0) extern "C" void UnityAction_1_Invoke_m927447181_gshared (UnityAction_1_t3140522465 * __this, Color_t2555686324 ___arg00, const RuntimeMethod* method); // System.Void UnityEngine.Events.UnityAction`1<UnityEngine.SceneManagement.Scene>::Invoke(T0) extern "C" void UnityAction_1_Invoke_m3649732398_gshared (UnityAction_1_t2933211702 * __this, Scene_t2348375561 ___arg00, const RuntimeMethod* method); // System.Void UnityEngine.Events.UnityAction`1<UnityEngine.Vector2>::Invoke(T0) extern "C" void UnityAction_1_Invoke_m610765085_gshared (UnityAction_1_t2741065664 * __this, Vector2_t2156229523 ___arg00, const RuntimeMethod* method); // System.Void UnityEngine.Events.UnityAction`2<System.Object,System.Object>::Invoke(T0,T1) extern "C" void UnityAction_2_Invoke_m2304474703_gshared (UnityAction_2_t3283971887 * __this, RuntimeObject * ___arg00, RuntimeObject * ___arg11, const RuntimeMethod* method); // System.Void UnityEngine.Events.UnityAction`2<UnityEngine.SceneManagement.Scene,UnityEngine.SceneManagement.LoadSceneMode>::Invoke(T0,T1) extern "C" void UnityAction_2_Invoke_m1541286357_gshared (UnityAction_2_t2165061829 * __this, Scene_t2348375561 ___arg00, int32_t ___arg11, const RuntimeMethod* method); // System.Void UnityEngine.Events.UnityAction`2<UnityEngine.SceneManagement.Scene,UnityEngine.SceneManagement.Scene>::Invoke(T0,T1) extern "C" void UnityAction_2_Invoke_m944492567_gshared (UnityAction_2_t1262235195 * __this, Scene_t2348375561 ___arg00, Scene_t2348375561 ___arg11, const RuntimeMethod* method); // System.Void UnityEngine.Events.UnityAction`3<System.Object,System.Object,System.Object>::Invoke(T0,T1,T2) extern "C" void UnityAction_3_Invoke_m1904347475_gshared (UnityAction_3_t1557236713 * __this, RuntimeObject * ___arg00, RuntimeObject * ___arg11, RuntimeObject * ___arg22, const RuntimeMethod* method); // System.Void UnityEngine.Events.UnityAction`4<System.Object,System.Object,System.Object,System.Object>::Invoke(T0,T1,T2,T3) extern "C" void UnityAction_4_Invoke_m218720656_gshared (UnityAction_4_t682480391 * __this, RuntimeObject * ___arg00, RuntimeObject * ___arg11, RuntimeObject * ___arg22, RuntimeObject * ___arg33, const RuntimeMethod* method); // !0 System.Collections.Generic.List`1<System.Object>::get_Item(System.Int32) extern "C" RuntimeObject * List_1_get_Item_m2287542950_gshared (List_1_t257213610 * __this, int32_t p0, const RuntimeMethod* method); // System.Int32 System.Collections.Generic.List`1<System.Object>::get_Count() extern "C" int32_t List_1_get_Count_m2934127733_gshared (List_1_t257213610 * __this, const RuntimeMethod* method); // System.Void UnityEngine.EventSystems.ExecuteEvents/EventFunction`1<System.Object>::Invoke(T1,UnityEngine.EventSystems.BaseEventData) extern "C" void EventFunction_1_Invoke_m2429482587_gshared (EventFunction_1_t1764640198 * __this, RuntimeObject * ___handler0, BaseEventData_t3903027533 * ___eventData1, const RuntimeMethod* method); // System.Void UnityEngine.Events.BaseInvokableCall::.ctor(System.Object,System.Reflection.MethodInfo) extern "C" void BaseInvokableCall__ctor_m2110966014 (BaseInvokableCall_t2703961024 * __this, RuntimeObject * ___target0, MethodInfo_t * ___function1, const RuntimeMethod* method) IL2CPP_METHOD_ATTR; // System.Type System.Type::GetTypeFromHandle(System.RuntimeTypeHandle) extern "C" Type_t * Type_GetTypeFromHandle_m1620074514 (RuntimeObject * __this /* static, unused */, RuntimeTypeHandle_t3027515415 p0, const RuntimeMethod* method) IL2CPP_METHOD_ATTR; // System.Delegate UnityEngineInternal.NetFxCoreExtensions::CreateDelegate(System.Reflection.MethodInfo,System.Type,System.Object) extern "C" Delegate_t1188392813 * NetFxCoreExtensions_CreateDelegate_m751211712 (RuntimeObject * __this /* static, unused */, MethodInfo_t * ___self0, Type_t * ___delegateType1, RuntimeObject * ___target2, const RuntimeMethod* method) IL2CPP_METHOD_ATTR; // System.Void UnityEngine.Events.BaseInvokableCall::.ctor() extern "C" void BaseInvokableCall__ctor_m768115019 (BaseInvokableCall_t2703961024 * __this, const RuntimeMethod* method) IL2CPP_METHOD_ATTR; // System.Delegate System.Delegate::Combine(System.Delegate,System.Delegate) extern "C" Delegate_t1188392813 * Delegate_Combine_m1859655160 (RuntimeObject * __this /* static, unused */, Delegate_t1188392813 * p0, Delegate_t1188392813 * p1, const RuntimeMethod* method) IL2CPP_METHOD_ATTR; // System.Delegate System.Delegate::Remove(System.Delegate,System.Delegate) extern "C" Delegate_t1188392813 * Delegate_Remove_m334097152 (RuntimeObject * __this /* static, unused */, Delegate_t1188392813 * p0, Delegate_t1188392813 * p1, const RuntimeMethod* method) IL2CPP_METHOD_ATTR; // System.Void System.ArgumentException::.ctor(System.String) extern "C" void ArgumentException__ctor_m1312628991 (ArgumentException_t132251570 * __this, String_t* p0, const RuntimeMethod* method) IL2CPP_METHOD_ATTR; // System.Boolean UnityEngine.Events.BaseInvokableCall::AllowInvoke(System.Delegate) extern "C" bool BaseInvokableCall_AllowInvoke_m878393606 (RuntimeObject * __this /* static, unused */, Delegate_t1188392813 * ___delegate0, const RuntimeMethod* method) IL2CPP_METHOD_ATTR; // System.Object System.Delegate::get_Target() extern "C" RuntimeObject * Delegate_get_Target_m2361978888 (Delegate_t1188392813 * __this, const RuntimeMethod* method) IL2CPP_METHOD_ATTR; // System.Reflection.MethodInfo UnityEngineInternal.NetFxCoreExtensions::GetMethodInfo(System.Delegate) extern "C" MethodInfo_t * NetFxCoreExtensions_GetMethodInfo_m444570327 (RuntimeObject * __this /* static, unused */, Delegate_t1188392813 * ___self0, const RuntimeMethod* method) IL2CPP_METHOD_ATTR; // System.Void UnityEngine.Events.UnityAction`1<System.Boolean>::Invoke(T0) #define UnityAction_1_Invoke_m3535252839(__this, ___arg00, method) (( void (*) (UnityAction_1_t682124106 *, bool, const RuntimeMethod*))UnityAction_1_Invoke_m3535252839_gshared)(__this, ___arg00, method) // System.Void UnityEngine.Events.UnityAction`1<System.Int32>::Invoke(T0) #define UnityAction_1_Invoke_m3388120194(__this, ___arg00, method) (( void (*) (UnityAction_1_t3535781894 *, int32_t, const RuntimeMethod*))UnityAction_1_Invoke_m3388120194_gshared)(__this, ___arg00, method) // System.Void UnityEngine.Events.UnityAction`1<System.Object>::Invoke(T0) #define UnityAction_1_Invoke_m2929687399(__this, ___arg00, method) (( void (*) (UnityAction_1_t3664942305 *, RuntimeObject *, const RuntimeMethod*))UnityAction_1_Invoke_m2929687399_gshared)(__this, ___arg00, method) // System.Void UnityEngine.Events.UnityAction`1<System.Single>::Invoke(T0) #define UnityAction_1_Invoke_m1035307306(__this, ___arg00, method) (( void (*) (UnityAction_1_t1982102915 *, float, const RuntimeMethod*))UnityAction_1_Invoke_m1035307306_gshared)(__this, ___arg00, method) // System.Void UnityEngine.Events.UnityAction`1<UnityEngine.Color>::Invoke(T0) #define UnityAction_1_Invoke_m927447181(__this, ___arg00, method) (( void (*) (UnityAction_1_t3140522465 *, Color_t2555686324 , const RuntimeMethod*))UnityAction_1_Invoke_m927447181_gshared)(__this, ___arg00, method) // System.Void UnityEngine.Events.UnityAction`1<UnityEngine.SceneManagement.Scene>::Invoke(T0) #define UnityAction_1_Invoke_m3649732398(__this, ___arg00, method) (( void (*) (UnityAction_1_t2933211702 *, Scene_t2348375561 , const RuntimeMethod*))UnityAction_1_Invoke_m3649732398_gshared)(__this, ___arg00, method) // System.Void UnityEngine.Events.UnityAction`1<UnityEngine.Vector2>::Invoke(T0) #define UnityAction_1_Invoke_m610765085(__this, ___arg00, method) (( void (*) (UnityAction_1_t2741065664 *, Vector2_t2156229523 , const RuntimeMethod*))UnityAction_1_Invoke_m610765085_gshared)(__this, ___arg00, method) // System.Void UnityEngine.Events.UnityAction`2<System.Object,System.Object>::Invoke(T0,T1) #define UnityAction_2_Invoke_m2304474703(__this, ___arg00, ___arg11, method) (( void (*) (UnityAction_2_t3283971887 *, RuntimeObject *, RuntimeObject *, const RuntimeMethod*))UnityAction_2_Invoke_m2304474703_gshared)(__this, ___arg00, ___arg11, method) // System.Void UnityEngine.Events.UnityAction`2<UnityEngine.SceneManagement.Scene,UnityEngine.SceneManagement.LoadSceneMode>::Invoke(T0,T1) #define UnityAction_2_Invoke_m1541286357(__this, ___arg00, ___arg11, method) (( void (*) (UnityAction_2_t2165061829 *, Scene_t2348375561 , int32_t, const RuntimeMethod*))UnityAction_2_Invoke_m1541286357_gshared)(__this, ___arg00, ___arg11, method) // System.Void UnityEngine.Events.UnityAction`2<UnityEngine.SceneManagement.Scene,UnityEngine.SceneManagement.Scene>::Invoke(T0,T1) #define UnityAction_2_Invoke_m944492567(__this, ___arg00, ___arg11, method) (( void (*) (UnityAction_2_t1262235195 *, Scene_t2348375561 , Scene_t2348375561 , const RuntimeMethod*))UnityAction_2_Invoke_m944492567_gshared)(__this, ___arg00, ___arg11, method) // System.Void UnityEngine.Events.UnityAction`3<System.Object,System.Object,System.Object>::Invoke(T0,T1,T2) #define UnityAction_3_Invoke_m1904347475(__this, ___arg00, ___arg11, ___arg22, method) (( void (*) (UnityAction_3_t1557236713 *, RuntimeObject *, RuntimeObject *, RuntimeObject *, const RuntimeMethod*))UnityAction_3_Invoke_m1904347475_gshared)(__this, ___arg00, ___arg11, ___arg22, method) // System.Void UnityEngine.Events.UnityAction`4<System.Object,System.Object,System.Object,System.Object>::Invoke(T0,T1,T2,T3) #define UnityAction_4_Invoke_m218720656(__this, ___arg00, ___arg11, ___arg22, ___arg33, method) (( void (*) (UnityAction_4_t682480391 *, RuntimeObject *, RuntimeObject *, RuntimeObject *, RuntimeObject *, const RuntimeMethod*))UnityAction_4_Invoke_m218720656_gshared)(__this, ___arg00, ___arg11, ___arg22, ___arg33, method) // System.Void UnityEngine.Events.UnityEventBase::.ctor() extern "C" void UnityEventBase__ctor_m1851535676 (UnityEventBase_t3960448221 * __this, const RuntimeMethod* method) IL2CPP_METHOD_ATTR; // System.Void UnityEngine.Events.UnityEventBase::AddCall(UnityEngine.Events.BaseInvokableCall) extern "C" void UnityEventBase_AddCall_m3539965410 (UnityEventBase_t3960448221 * __this, BaseInvokableCall_t2703961024 * ___call0, const RuntimeMethod* method) IL2CPP_METHOD_ATTR; // System.Void UnityEngine.Events.UnityEventBase::RemoveListener(System.Object,System.Reflection.MethodInfo) extern "C" void UnityEventBase_RemoveListener_m3326364145 (UnityEventBase_t3960448221 * __this, RuntimeObject * ___targetObj0, MethodInfo_t * ___method1, const RuntimeMethod* method) IL2CPP_METHOD_ATTR; // System.Reflection.MethodInfo UnityEngine.Events.UnityEventBase::GetValidMethodInfo(System.Object,System.String,System.Type[]) extern "C" MethodInfo_t * UnityEventBase_GetValidMethodInfo_m3989987635 (RuntimeObject * __this /* static, unused */, RuntimeObject * ___obj0, String_t* ___functionName1, TypeU5BU5D_t3940880105* ___argumentTypes2, const RuntimeMethod* method) IL2CPP_METHOD_ATTR; // System.Collections.Generic.List`1<UnityEngine.Events.BaseInvokableCall> UnityEngine.Events.UnityEventBase::PrepareInvoke() extern "C" List_1_t4176035766 * UnityEventBase_PrepareInvoke_m1785382128 (UnityEventBase_t3960448221 * __this, const RuntimeMethod* method) IL2CPP_METHOD_ATTR; // !0 System.Collections.Generic.List`1<UnityEngine.Events.BaseInvokableCall>::get_Item(System.Int32) #define List_1_get_Item_m4156046467(__this, p0, method) (( BaseInvokableCall_t2703961024 * (*) (List_1_t4176035766 *, int32_t, const RuntimeMethod*))List_1_get_Item_m2287542950_gshared)(__this, p0, method) // System.Int32 System.Collections.Generic.List`1<UnityEngine.Events.BaseInvokableCall>::get_Count() #define List_1_get_Count_m1245201994(__this, method) (( int32_t (*) (List_1_t4176035766 *, const RuntimeMethod*))List_1_get_Count_m2934127733_gshared)(__this, method) // System.Void UnityEngine.EventSystems.ExecuteEvents/EventFunction`1<System.Object>::Invoke(T1,UnityEngine.EventSystems.BaseEventData) #define EventFunction_1_Invoke_m2429482587(__this, ___handler0, ___eventData1, method) (( void (*) (EventFunction_1_t1764640198 *, RuntimeObject *, BaseEventData_t3903027533 *, const RuntimeMethod*))EventFunction_1_Invoke_m2429482587_gshared)(__this, ___handler0, ___eventData1, method) // System.Void System.Object::.ctor() extern "C" void Object__ctor_m297566312 (RuntimeObject * __this, const RuntimeMethod* method) IL2CPP_METHOD_ATTR; // System.Void System.NotImplementedException::.ctor() extern "C" void NotImplementedException__ctor_m3058704252 (NotImplementedException_t3489357830 * __this, const RuntimeMethod* method) IL2CPP_METHOD_ATTR; // System.Void System.NotSupportedException::.ctor(System.String) extern "C" void NotSupportedException__ctor_m2494070935 (NotSupportedException_t1314879016 * __this, String_t* p0, const RuntimeMethod* method) IL2CPP_METHOD_ATTR; // System.Boolean UnityEngine.UI.CoroutineTween.ColorTween::ValidTarget() extern "C" bool ColorTween_ValidTarget_m376919233 (ColorTween_t809614380 * __this, const RuntimeMethod* method) IL2CPP_METHOD_ATTR; // System.Boolean UnityEngine.UI.CoroutineTween.ColorTween::get_ignoreTimeScale() extern "C" bool ColorTween_get_ignoreTimeScale_m1133957174 (ColorTween_t809614380 * __this, const RuntimeMethod* method) IL2CPP_METHOD_ATTR; // System.Single UnityEngine.Time::get_unscaledDeltaTime() extern "C" float Time_get_unscaledDeltaTime_m4270080131 (RuntimeObject * __this /* static, unused */, const RuntimeMethod* method) IL2CPP_METHOD_ATTR; // System.Single UnityEngine.Time::get_deltaTime() extern "C" float Time_get_deltaTime_m372706562 (RuntimeObject * __this /* static, unused */, const RuntimeMethod* method) IL2CPP_METHOD_ATTR; // System.Single UnityEngine.UI.CoroutineTween.ColorTween::get_duration() extern "C" float ColorTween_get_duration_m3264097060 (ColorTween_t809614380 * __this, const RuntimeMethod* method) IL2CPP_METHOD_ATTR; // System.Single UnityEngine.Mathf::Clamp01(System.Single) extern "C" float Mathf_Clamp01_m56433566 (RuntimeObject * __this /* static, unused */, float p0, const RuntimeMethod* method) IL2CPP_METHOD_ATTR; // System.Void UnityEngine.UI.CoroutineTween.ColorTween::TweenValue(System.Single) extern "C" void ColorTween_TweenValue_m3895102629 (ColorTween_t809614380 * __this, float ___floatPercentage0, const RuntimeMethod* method) IL2CPP_METHOD_ATTR; // System.Void System.NotSupportedException::.ctor() extern "C" void NotSupportedException__ctor_m2730133172 (NotSupportedException_t1314879016 * __this, const RuntimeMethod* method) IL2CPP_METHOD_ATTR; // System.Boolean UnityEngine.UI.CoroutineTween.FloatTween::ValidTarget() extern "C" bool FloatTween_ValidTarget_m885246038 (FloatTween_t1274330004 * __this, const RuntimeMethod* method) IL2CPP_METHOD_ATTR; // System.Boolean UnityEngine.UI.CoroutineTween.FloatTween::get_ignoreTimeScale() extern "C" bool FloatTween_get_ignoreTimeScale_m322812475 (FloatTween_t1274330004 * __this, const RuntimeMethod* method) IL2CPP_METHOD_ATTR; // System.Single UnityEngine.UI.CoroutineTween.FloatTween::get_duration() extern "C" float FloatTween_get_duration_m1227071020 (FloatTween_t1274330004 * __this, const RuntimeMethod* method) IL2CPP_METHOD_ATTR; // System.Void UnityEngine.UI.CoroutineTween.FloatTween::TweenValue(System.Single) extern "C" void FloatTween_TweenValue_m52237061 (FloatTween_t1274330004 * __this, float ___floatPercentage0, const RuntimeMethod* method) IL2CPP_METHOD_ATTR; // System.Boolean UnityEngine.Object::op_Equality(UnityEngine.Object,UnityEngine.Object) extern "C" bool Object_op_Equality_m1810815630 (RuntimeObject * __this /* static, unused */, Object_t631007953 * p0, Object_t631007953 * p1, const RuntimeMethod* method) IL2CPP_METHOD_ATTR; // System.Void UnityEngine.Debug::LogWarning(System.Object) extern "C" void Debug_LogWarning_m3752629331 (RuntimeObject * __this /* static, unused */, RuntimeObject * p0, const RuntimeMethod* method) IL2CPP_METHOD_ATTR; // UnityEngine.GameObject UnityEngine.Component::get_gameObject() extern "C" GameObject_t1113636619 * Component_get_gameObject_m442555142 (Component_t1923634451 * __this, const RuntimeMethod* method) IL2CPP_METHOD_ATTR; // System.Boolean UnityEngine.GameObject::get_activeInHierarchy() extern "C" bool GameObject_get_activeInHierarchy_m2006396688 (GameObject_t1113636619 * __this, const RuntimeMethod* method) IL2CPP_METHOD_ATTR; // UnityEngine.Coroutine UnityEngine.MonoBehaviour::StartCoroutine(System.Collections.IEnumerator) extern "C" Coroutine_t3829159415 * MonoBehaviour_StartCoroutine_m3411253000 (MonoBehaviour_t3962482529 * __this, RuntimeObject* p0, const RuntimeMethod* method) IL2CPP_METHOD_ATTR; // System.Void UnityEngine.MonoBehaviour::StopCoroutine(System.Collections.IEnumerator) extern "C" void MonoBehaviour_StopCoroutine_m615723318 (MonoBehaviour_t3962482529 * __this, RuntimeObject* p0, const RuntimeMethod* method) IL2CPP_METHOD_ATTR; // System.Boolean System.Object::ReferenceEquals(System.Object,System.Object) extern "C" bool Object_ReferenceEquals_m610702577 (RuntimeObject * __this /* static, unused */, RuntimeObject * p0, RuntimeObject * p1, const RuntimeMethod* method) IL2CPP_METHOD_ATTR; // System.Void UnityEngine.Debug::LogError(System.Object) extern "C" void Debug_LogError_m2850623458 (RuntimeObject * __this /* static, unused */, RuntimeObject * p0, const RuntimeMethod* method) IL2CPP_METHOD_ATTR; #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Void UnityEngine.Events.InvokableCall`1<System.Boolean>::.ctor(System.Object,System.Reflection.MethodInfo) extern "C" void InvokableCall_1__ctor_m337513891_gshared (InvokableCall_1_t214452203 * __this, RuntimeObject * ___target0, MethodInfo_t * ___theFunction1, const RuntimeMethod* method) { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_method (InvokableCall_1__ctor_m337513891_MetadataUsageId); s_Il2CppMethodInitialized = true; } { RuntimeObject * L_0 = ___target0; MethodInfo_t * L_1 = ___theFunction1; NullCheck((BaseInvokableCall_t2703961024 *)__this); BaseInvokableCall__ctor_m2110966014((BaseInvokableCall_t2703961024 *)__this, (RuntimeObject *)L_0, (MethodInfo_t *)L_1, /*hidden argument*/NULL); MethodInfo_t * L_2 = ___theFunction1; RuntimeTypeHandle_t3027515415 L_3 = { reinterpret_cast<intptr_t> (IL2CPP_RGCTX_TYPE(method->declaring_type->rgctx_data, 0)) }; IL2CPP_RUNTIME_CLASS_INIT(Type_t_il2cpp_TypeInfo_var); Type_t * L_4 = Type_GetTypeFromHandle_m1620074514(NULL /*static, unused*/, (RuntimeTypeHandle_t3027515415 )L_3, /*hidden argument*/NULL); RuntimeObject * L_5 = ___target0; Delegate_t1188392813 * L_6 = NetFxCoreExtensions_CreateDelegate_m751211712(NULL /*static, unused*/, (MethodInfo_t *)L_2, (Type_t *)L_4, (RuntimeObject *)L_5, /*hidden argument*/NULL); NullCheck((InvokableCall_1_t214452203 *)__this); (( void (*) (InvokableCall_1_t214452203 *, UnityAction_1_t682124106 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 2)->methodPointer)((InvokableCall_1_t214452203 *)__this, (UnityAction_1_t682124106 *)((UnityAction_1_t682124106 *)Castclass((RuntimeObject*)L_6, IL2CPP_RGCTX_DATA(method->declaring_type->rgctx_data, 1))), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 2)); return; } } // System.Void UnityEngine.Events.InvokableCall`1<System.Boolean>::.ctor(UnityEngine.Events.UnityAction`1<T1>) extern "C" void InvokableCall_1__ctor_m1028560745_gshared (InvokableCall_1_t214452203 * __this, UnityAction_1_t682124106 * ___action0, const RuntimeMethod* method) { { NullCheck((BaseInvokableCall_t2703961024 *)__this); BaseInvokableCall__ctor_m768115019((BaseInvokableCall_t2703961024 *)__this, /*hidden argument*/NULL); UnityAction_1_t682124106 * L_0 = ___action0; NullCheck((InvokableCall_1_t214452203 *)__this); (( void (*) (InvokableCall_1_t214452203 *, UnityAction_1_t682124106 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 2)->methodPointer)((InvokableCall_1_t214452203 *)__this, (UnityAction_1_t682124106 *)L_0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 2)); return; } } // System.Void UnityEngine.Events.InvokableCall`1<System.Boolean>::add_Delegate(UnityEngine.Events.UnityAction`1<T1>) extern "C" void InvokableCall_1_add_Delegate_m1011133128_gshared (InvokableCall_1_t214452203 * __this, UnityAction_1_t682124106 * ___value0, const RuntimeMethod* method) { UnityAction_1_t682124106 * V_0 = NULL; UnityAction_1_t682124106 * V_1 = NULL; { UnityAction_1_t682124106 * L_0 = (UnityAction_1_t682124106 *)__this->get_Delegate_0(); V_0 = (UnityAction_1_t682124106 *)L_0; } IL_0007: { UnityAction_1_t682124106 * L_1 = V_0; V_1 = (UnityAction_1_t682124106 *)L_1; UnityAction_1_t682124106 ** L_2 = (UnityAction_1_t682124106 **)__this->get_address_of_Delegate_0(); UnityAction_1_t682124106 * L_3 = V_1; UnityAction_1_t682124106 * L_4 = ___value0; Delegate_t1188392813 * L_5 = Delegate_Combine_m1859655160(NULL /*static, unused*/, (Delegate_t1188392813 *)L_3, (Delegate_t1188392813 *)L_4, /*hidden argument*/NULL); UnityAction_1_t682124106 * L_6 = V_0; UnityAction_1_t682124106 * L_7 = InterlockedCompareExchangeImpl<UnityAction_1_t682124106 *>((UnityAction_1_t682124106 **)L_2, (UnityAction_1_t682124106 *)((UnityAction_1_t682124106 *)Castclass((RuntimeObject*)L_5, IL2CPP_RGCTX_DATA(method->declaring_type->rgctx_data, 1))), (UnityAction_1_t682124106 *)L_6); V_0 = (UnityAction_1_t682124106 *)L_7; UnityAction_1_t682124106 * L_8 = V_0; UnityAction_1_t682124106 * L_9 = V_1; if ((!(((RuntimeObject*)(UnityAction_1_t682124106 *)L_8) == ((RuntimeObject*)(UnityAction_1_t682124106 *)L_9)))) { goto IL_0007; } } { return; } } // System.Void UnityEngine.Events.InvokableCall`1<System.Boolean>::remove_Delegate(UnityEngine.Events.UnityAction`1<T1>) extern "C" void InvokableCall_1_remove_Delegate_m1293546855_gshared (InvokableCall_1_t214452203 * __this, UnityAction_1_t682124106 * ___value0, const RuntimeMethod* method) { UnityAction_1_t682124106 * V_0 = NULL; UnityAction_1_t682124106 * V_1 = NULL; { UnityAction_1_t682124106 * L_0 = (UnityAction_1_t682124106 *)__this->get_Delegate_0(); V_0 = (UnityAction_1_t682124106 *)L_0; } IL_0007: { UnityAction_1_t682124106 * L_1 = V_0; V_1 = (UnityAction_1_t682124106 *)L_1; UnityAction_1_t682124106 ** L_2 = (UnityAction_1_t682124106 **)__this->get_address_of_Delegate_0(); UnityAction_1_t682124106 * L_3 = V_1; UnityAction_1_t682124106 * L_4 = ___value0; Delegate_t1188392813 * L_5 = Delegate_Remove_m334097152(NULL /*static, unused*/, (Delegate_t1188392813 *)L_3, (Delegate_t1188392813 *)L_4, /*hidden argument*/NULL); UnityAction_1_t682124106 * L_6 = V_0; UnityAction_1_t682124106 * L_7 = InterlockedCompareExchangeImpl<UnityAction_1_t682124106 *>((UnityAction_1_t682124106 **)L_2, (UnityAction_1_t682124106 *)((UnityAction_1_t682124106 *)Castclass((RuntimeObject*)L_5, IL2CPP_RGCTX_DATA(method->declaring_type->rgctx_data, 1))), (UnityAction_1_t682124106 *)L_6); V_0 = (UnityAction_1_t682124106 *)L_7; UnityAction_1_t682124106 * L_8 = V_0; UnityAction_1_t682124106 * L_9 = V_1; if ((!(((RuntimeObject*)(UnityAction_1_t682124106 *)L_8) == ((RuntimeObject*)(UnityAction_1_t682124106 *)L_9)))) { goto IL_0007; } } { return; } } // System.Void UnityEngine.Events.InvokableCall`1<System.Boolean>::Invoke(System.Object[]) extern "C" void InvokableCall_1_Invoke_m3497872319_gshared (InvokableCall_1_t214452203 * __this, ObjectU5BU5D_t2843939325* ___args0, const RuntimeMethod* method) { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_method (InvokableCall_1_Invoke_m3497872319_MetadataUsageId); s_Il2CppMethodInitialized = true; } { ObjectU5BU5D_t2843939325* L_0 = ___args0; NullCheck(L_0); if ((((int32_t)(((int32_t)((int32_t)(((RuntimeArray *)L_0)->max_length))))) == ((int32_t)1))) { goto IL_0015; } } { ArgumentException_t132251570 * L_1 = (ArgumentException_t132251570 *)il2cpp_codegen_object_new(ArgumentException_t132251570_il2cpp_TypeInfo_var); ArgumentException__ctor_m1312628991(L_1, (String_t*)_stringLiteral1864861238, /*hidden argument*/NULL); IL2CPP_RAISE_MANAGED_EXCEPTION(L_1); } IL_0015: { ObjectU5BU5D_t2843939325* L_2 = ___args0; NullCheck(L_2); int32_t L_3 = 0; RuntimeObject * L_4 = (L_2)->GetAt(static_cast<il2cpp_array_size_t>(L_3)); (( void (*) (RuntimeObject * /* static, unused */, RuntimeObject *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 4)->methodPointer)(NULL /*static, unused*/, (RuntimeObject *)L_4, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 4)); UnityAction_1_t682124106 * L_5 = (UnityAction_1_t682124106 *)__this->get_Delegate_0(); bool L_6 = BaseInvokableCall_AllowInvoke_m878393606(NULL /*static, unused*/, (Delegate_t1188392813 *)L_5, /*hidden argument*/NULL); if (!L_6) { goto IL_0040; } } { UnityAction_1_t682124106 * L_7 = (UnityAction_1_t682124106 *)__this->get_Delegate_0(); ObjectU5BU5D_t2843939325* L_8 = ___args0; NullCheck(L_8); int32_t L_9 = 0; RuntimeObject * L_10 = (L_8)->GetAt(static_cast<il2cpp_array_size_t>(L_9)); NullCheck((UnityAction_1_t682124106 *)L_7); (( void (*) (UnityAction_1_t682124106 *, bool, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 6)->methodPointer)((UnityAction_1_t682124106 *)L_7, (bool)((*(bool*)((bool*)UnBox(L_10, IL2CPP_RGCTX_DATA(method->declaring_type->rgctx_data, 5))))), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 6)); } IL_0040: { return; } } // System.Void UnityEngine.Events.InvokableCall`1<System.Boolean>::Invoke(T1) extern "C" void InvokableCall_1_Invoke_m3859772291_gshared (InvokableCall_1_t214452203 * __this, bool ___args00, const RuntimeMethod* method) { { UnityAction_1_t682124106 * L_0 = (UnityAction_1_t682124106 *)__this->get_Delegate_0(); bool L_1 = BaseInvokableCall_AllowInvoke_m878393606(NULL /*static, unused*/, (Delegate_t1188392813 *)L_0, /*hidden argument*/NULL); if (!L_1) { goto IL_001d; } } { UnityAction_1_t682124106 * L_2 = (UnityAction_1_t682124106 *)__this->get_Delegate_0(); bool L_3 = ___args00; NullCheck((UnityAction_1_t682124106 *)L_2); (( void (*) (UnityAction_1_t682124106 *, bool, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 6)->methodPointer)((UnityAction_1_t682124106 *)L_2, (bool)L_3, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 6)); } IL_001d: { return; } } // System.Boolean UnityEngine.Events.InvokableCall`1<System.Boolean>::Find(System.Object,System.Reflection.MethodInfo) extern "C" bool InvokableCall_1_Find_m3228745517_gshared (InvokableCall_1_t214452203 * __this, RuntimeObject * ___targetObj0, MethodInfo_t * ___method1, const RuntimeMethod* method) { bool V_0 = false; int32_t G_B3_0 = 0; { UnityAction_1_t682124106 * L_0 = (UnityAction_1_t682124106 *)__this->get_Delegate_0(); NullCheck((Delegate_t1188392813 *)L_0); RuntimeObject * L_1 = Delegate_get_Target_m2361978888((Delegate_t1188392813 *)L_0, /*hidden argument*/NULL); RuntimeObject * L_2 = ___targetObj0; if ((!(((RuntimeObject*)(RuntimeObject *)L_1) == ((RuntimeObject*)(RuntimeObject *)L_2)))) { goto IL_0025; } } { UnityAction_1_t682124106 * L_3 = (UnityAction_1_t682124106 *)__this->get_Delegate_0(); MethodInfo_t * L_4 = NetFxCoreExtensions_GetMethodInfo_m444570327(NULL /*static, unused*/, (Delegate_t1188392813 *)L_3, /*hidden argument*/NULL); MethodInfo_t * L_5 = ___method1; NullCheck((RuntimeObject *)L_4); bool L_6 = VirtFuncInvoker1< bool, RuntimeObject * >::Invoke(0 /* System.Boolean System.Object::Equals(System.Object) */, (RuntimeObject *)L_4, (RuntimeObject *)L_5); G_B3_0 = ((int32_t)(L_6)); goto IL_0026; } IL_0025: { G_B3_0 = 0; } IL_0026: { V_0 = (bool)G_B3_0; goto IL_002c; } IL_002c: { bool L_7 = V_0; return L_7; } } #ifdef __clang__ #pragma clang diagnostic pop #endif #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Void UnityEngine.Events.InvokableCall`1<System.Int32>::.ctor(System.Object,System.Reflection.MethodInfo) extern "C" void InvokableCall_1__ctor_m854286695_gshared (InvokableCall_1_t3068109991 * __this, RuntimeObject * ___target0, MethodInfo_t * ___theFunction1, const RuntimeMethod* method) { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_method (InvokableCall_1__ctor_m854286695_MetadataUsageId); s_Il2CppMethodInitialized = true; } { RuntimeObject * L_0 = ___target0; MethodInfo_t * L_1 = ___theFunction1; NullCheck((BaseInvokableCall_t2703961024 *)__this); BaseInvokableCall__ctor_m2110966014((BaseInvokableCall_t2703961024 *)__this, (RuntimeObject *)L_0, (MethodInfo_t *)L_1, /*hidden argument*/NULL); MethodInfo_t * L_2 = ___theFunction1; RuntimeTypeHandle_t3027515415 L_3 = { reinterpret_cast<intptr_t> (IL2CPP_RGCTX_TYPE(method->declaring_type->rgctx_data, 0)) }; IL2CPP_RUNTIME_CLASS_INIT(Type_t_il2cpp_TypeInfo_var); Type_t * L_4 = Type_GetTypeFromHandle_m1620074514(NULL /*static, unused*/, (RuntimeTypeHandle_t3027515415 )L_3, /*hidden argument*/NULL); RuntimeObject * L_5 = ___target0; Delegate_t1188392813 * L_6 = NetFxCoreExtensions_CreateDelegate_m751211712(NULL /*static, unused*/, (MethodInfo_t *)L_2, (Type_t *)L_4, (RuntimeObject *)L_5, /*hidden argument*/NULL); NullCheck((InvokableCall_1_t3068109991 *)__this); (( void (*) (InvokableCall_1_t3068109991 *, UnityAction_1_t3535781894 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 2)->methodPointer)((InvokableCall_1_t3068109991 *)__this, (UnityAction_1_t3535781894 *)((UnityAction_1_t3535781894 *)Castclass((RuntimeObject*)L_6, IL2CPP_RGCTX_DATA(method->declaring_type->rgctx_data, 1))), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 2)); return; } } // System.Void UnityEngine.Events.InvokableCall`1<System.Int32>::.ctor(UnityEngine.Events.UnityAction`1<T1>) extern "C" void InvokableCall_1__ctor_m250126292_gshared (InvokableCall_1_t3068109991 * __this, UnityAction_1_t3535781894 * ___action0, const RuntimeMethod* method) { { NullCheck((BaseInvokableCall_t2703961024 *)__this); BaseInvokableCall__ctor_m768115019((BaseInvokableCall_t2703961024 *)__this, /*hidden argument*/NULL); UnityAction_1_t3535781894 * L_0 = ___action0; NullCheck((InvokableCall_1_t3068109991 *)__this); (( void (*) (InvokableCall_1_t3068109991 *, UnityAction_1_t3535781894 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 2)->methodPointer)((InvokableCall_1_t3068109991 *)__this, (UnityAction_1_t3535781894 *)L_0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 2)); return; } } // System.Void UnityEngine.Events.InvokableCall`1<System.Int32>::add_Delegate(UnityEngine.Events.UnityAction`1<T1>) extern "C" void InvokableCall_1_add_Delegate_m3984829522_gshared (InvokableCall_1_t3068109991 * __this, UnityAction_1_t3535781894 * ___value0, const RuntimeMethod* method) { UnityAction_1_t3535781894 * V_0 = NULL; UnityAction_1_t3535781894 * V_1 = NULL; { UnityAction_1_t3535781894 * L_0 = (UnityAction_1_t3535781894 *)__this->get_Delegate_0(); V_0 = (UnityAction_1_t3535781894 *)L_0; } IL_0007: { UnityAction_1_t3535781894 * L_1 = V_0; V_1 = (UnityAction_1_t3535781894 *)L_1; UnityAction_1_t3535781894 ** L_2 = (UnityAction_1_t3535781894 **)__this->get_address_of_Delegate_0(); UnityAction_1_t3535781894 * L_3 = V_1; UnityAction_1_t3535781894 * L_4 = ___value0; Delegate_t1188392813 * L_5 = Delegate_Combine_m1859655160(NULL /*static, unused*/, (Delegate_t1188392813 *)L_3, (Delegate_t1188392813 *)L_4, /*hidden argument*/NULL); UnityAction_1_t3535781894 * L_6 = V_0; UnityAction_1_t3535781894 * L_7 = InterlockedCompareExchangeImpl<UnityAction_1_t3535781894 *>((UnityAction_1_t3535781894 **)L_2, (UnityAction_1_t3535781894 *)((UnityAction_1_t3535781894 *)Castclass((RuntimeObject*)L_5, IL2CPP_RGCTX_DATA(method->declaring_type->rgctx_data, 1))), (UnityAction_1_t3535781894 *)L_6); V_0 = (UnityAction_1_t3535781894 *)L_7; UnityAction_1_t3535781894 * L_8 = V_0; UnityAction_1_t3535781894 * L_9 = V_1; if ((!(((RuntimeObject*)(UnityAction_1_t3535781894 *)L_8) == ((RuntimeObject*)(UnityAction_1_t3535781894 *)L_9)))) { goto IL_0007; } } { return; } } // System.Void UnityEngine.Events.InvokableCall`1<System.Int32>::remove_Delegate(UnityEngine.Events.UnityAction`1<T1>) extern "C" void InvokableCall_1_remove_Delegate_m1404598405_gshared (InvokableCall_1_t3068109991 * __this, UnityAction_1_t3535781894 * ___value0, const RuntimeMethod* method) { UnityAction_1_t3535781894 * V_0 = NULL; UnityAction_1_t3535781894 * V_1 = NULL; { UnityAction_1_t3535781894 * L_0 = (UnityAction_1_t3535781894 *)__this->get_Delegate_0(); V_0 = (UnityAction_1_t3535781894 *)L_0; } IL_0007: { UnityAction_1_t3535781894 * L_1 = V_0; V_1 = (UnityAction_1_t3535781894 *)L_1; UnityAction_1_t3535781894 ** L_2 = (UnityAction_1_t3535781894 **)__this->get_address_of_Delegate_0(); UnityAction_1_t3535781894 * L_3 = V_1; UnityAction_1_t3535781894 * L_4 = ___value0; Delegate_t1188392813 * L_5 = Delegate_Remove_m334097152(NULL /*static, unused*/, (Delegate_t1188392813 *)L_3, (Delegate_t1188392813 *)L_4, /*hidden argument*/NULL); UnityAction_1_t3535781894 * L_6 = V_0; UnityAction_1_t3535781894 * L_7 = InterlockedCompareExchangeImpl<UnityAction_1_t3535781894 *>((UnityAction_1_t3535781894 **)L_2, (UnityAction_1_t3535781894 *)((UnityAction_1_t3535781894 *)Castclass((RuntimeObject*)L_5, IL2CPP_RGCTX_DATA(method->declaring_type->rgctx_data, 1))), (UnityAction_1_t3535781894 *)L_6); V_0 = (UnityAction_1_t3535781894 *)L_7; UnityAction_1_t3535781894 * L_8 = V_0; UnityAction_1_t3535781894 * L_9 = V_1; if ((!(((RuntimeObject*)(UnityAction_1_t3535781894 *)L_8) == ((RuntimeObject*)(UnityAction_1_t3535781894 *)L_9)))) { goto IL_0007; } } { return; } } // System.Void UnityEngine.Events.InvokableCall`1<System.Int32>::Invoke(System.Object[]) extern "C" void InvokableCall_1_Invoke_m891112188_gshared (InvokableCall_1_t3068109991 * __this, ObjectU5BU5D_t2843939325* ___args0, const RuntimeMethod* method) { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_method (InvokableCall_1_Invoke_m891112188_MetadataUsageId); s_Il2CppMethodInitialized = true; } { ObjectU5BU5D_t2843939325* L_0 = ___args0; NullCheck(L_0); if ((((int32_t)(((int32_t)((int32_t)(((RuntimeArray *)L_0)->max_length))))) == ((int32_t)1))) { goto IL_0015; } } { ArgumentException_t132251570 * L_1 = (ArgumentException_t132251570 *)il2cpp_codegen_object_new(ArgumentException_t132251570_il2cpp_TypeInfo_var); ArgumentException__ctor_m1312628991(L_1, (String_t*)_stringLiteral1864861238, /*hidden argument*/NULL); IL2CPP_RAISE_MANAGED_EXCEPTION(L_1); } IL_0015: { ObjectU5BU5D_t2843939325* L_2 = ___args0; NullCheck(L_2); int32_t L_3 = 0; RuntimeObject * L_4 = (L_2)->GetAt(static_cast<il2cpp_array_size_t>(L_3)); (( void (*) (RuntimeObject * /* static, unused */, RuntimeObject *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 4)->methodPointer)(NULL /*static, unused*/, (RuntimeObject *)L_4, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 4)); UnityAction_1_t3535781894 * L_5 = (UnityAction_1_t3535781894 *)__this->get_Delegate_0(); bool L_6 = BaseInvokableCall_AllowInvoke_m878393606(NULL /*static, unused*/, (Delegate_t1188392813 *)L_5, /*hidden argument*/NULL); if (!L_6) { goto IL_0040; } } { UnityAction_1_t3535781894 * L_7 = (UnityAction_1_t3535781894 *)__this->get_Delegate_0(); ObjectU5BU5D_t2843939325* L_8 = ___args0; NullCheck(L_8); int32_t L_9 = 0; RuntimeObject * L_10 = (L_8)->GetAt(static_cast<il2cpp_array_size_t>(L_9)); NullCheck((UnityAction_1_t3535781894 *)L_7); (( void (*) (UnityAction_1_t3535781894 *, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 6)->methodPointer)((UnityAction_1_t3535781894 *)L_7, (int32_t)((*(int32_t*)((int32_t*)UnBox(L_10, IL2CPP_RGCTX_DATA(method->declaring_type->rgctx_data, 5))))), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 6)); } IL_0040: { return; } } // System.Void UnityEngine.Events.InvokableCall`1<System.Int32>::Invoke(T1) extern "C" void InvokableCall_1_Invoke_m1665111854_gshared (InvokableCall_1_t3068109991 * __this, int32_t ___args00, const RuntimeMethod* method) { { UnityAction_1_t3535781894 * L_0 = (UnityAction_1_t3535781894 *)__this->get_Delegate_0(); bool L_1 = BaseInvokableCall_AllowInvoke_m878393606(NULL /*static, unused*/, (Delegate_t1188392813 *)L_0, /*hidden argument*/NULL); if (!L_1) { goto IL_001d; } } { UnityAction_1_t3535781894 * L_2 = (UnityAction_1_t3535781894 *)__this->get_Delegate_0(); int32_t L_3 = ___args00; NullCheck((UnityAction_1_t3535781894 *)L_2); (( void (*) (UnityAction_1_t3535781894 *, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 6)->methodPointer)((UnityAction_1_t3535781894 *)L_2, (int32_t)L_3, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 6)); } IL_001d: { return; } } // System.Boolean UnityEngine.Events.InvokableCall`1<System.Int32>::Find(System.Object,System.Reflection.MethodInfo) extern "C" bool InvokableCall_1_Find_m2748617534_gshared (InvokableCall_1_t3068109991 * __this, RuntimeObject * ___targetObj0, MethodInfo_t * ___method1, const RuntimeMethod* method) { bool V_0 = false; int32_t G_B3_0 = 0; { UnityAction_1_t3535781894 * L_0 = (UnityAction_1_t3535781894 *)__this->get_Delegate_0(); NullCheck((Delegate_t1188392813 *)L_0); RuntimeObject * L_1 = Delegate_get_Target_m2361978888((Delegate_t1188392813 *)L_0, /*hidden argument*/NULL); RuntimeObject * L_2 = ___targetObj0; if ((!(((RuntimeObject*)(RuntimeObject *)L_1) == ((RuntimeObject*)(RuntimeObject *)L_2)))) { goto IL_0025; } } { UnityAction_1_t3535781894 * L_3 = (UnityAction_1_t3535781894 *)__this->get_Delegate_0(); MethodInfo_t * L_4 = NetFxCoreExtensions_GetMethodInfo_m444570327(NULL /*static, unused*/, (Delegate_t1188392813 *)L_3, /*hidden argument*/NULL); MethodInfo_t * L_5 = ___method1; NullCheck((RuntimeObject *)L_4); bool L_6 = VirtFuncInvoker1< bool, RuntimeObject * >::Invoke(0 /* System.Boolean System.Object::Equals(System.Object) */, (RuntimeObject *)L_4, (RuntimeObject *)L_5); G_B3_0 = ((int32_t)(L_6)); goto IL_0026; } IL_0025: { G_B3_0 = 0; } IL_0026: { V_0 = (bool)G_B3_0; goto IL_002c; } IL_002c: { bool L_7 = V_0; return L_7; } } #ifdef __clang__ #pragma clang diagnostic pop #endif #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Void UnityEngine.Events.InvokableCall`1<System.Object>::.ctor(System.Object,System.Reflection.MethodInfo) extern "C" void InvokableCall_1__ctor_m974734014_gshared (InvokableCall_1_t3197270402 * __this, RuntimeObject * ___target0, MethodInfo_t * ___theFunction1, const RuntimeMethod* method) { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_method (InvokableCall_1__ctor_m974734014_MetadataUsageId); s_Il2CppMethodInitialized = true; } { RuntimeObject * L_0 = ___target0; MethodInfo_t * L_1 = ___theFunction1; NullCheck((BaseInvokableCall_t2703961024 *)__this); BaseInvokableCall__ctor_m2110966014((BaseInvokableCall_t2703961024 *)__this, (RuntimeObject *)L_0, (MethodInfo_t *)L_1, /*hidden argument*/NULL); MethodInfo_t * L_2 = ___theFunction1; RuntimeTypeHandle_t3027515415 L_3 = { reinterpret_cast<intptr_t> (IL2CPP_RGCTX_TYPE(method->declaring_type->rgctx_data, 0)) }; IL2CPP_RUNTIME_CLASS_INIT(Type_t_il2cpp_TypeInfo_var); Type_t * L_4 = Type_GetTypeFromHandle_m1620074514(NULL /*static, unused*/, (RuntimeTypeHandle_t3027515415 )L_3, /*hidden argument*/NULL); RuntimeObject * L_5 = ___target0; Delegate_t1188392813 * L_6 = NetFxCoreExtensions_CreateDelegate_m751211712(NULL /*static, unused*/, (MethodInfo_t *)L_2, (Type_t *)L_4, (RuntimeObject *)L_5, /*hidden argument*/NULL); NullCheck((InvokableCall_1_t3197270402 *)__this); (( void (*) (InvokableCall_1_t3197270402 *, UnityAction_1_t3664942305 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 2)->methodPointer)((InvokableCall_1_t3197270402 *)__this, (UnityAction_1_t3664942305 *)((UnityAction_1_t3664942305 *)Castclass((RuntimeObject*)L_6, IL2CPP_RGCTX_DATA(method->declaring_type->rgctx_data, 1))), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 2)); return; } } // System.Void UnityEngine.Events.InvokableCall`1<System.Object>::.ctor(UnityEngine.Events.UnityAction`1<T1>) extern "C" void InvokableCall_1__ctor_m2204476693_gshared (InvokableCall_1_t3197270402 * __this, UnityAction_1_t3664942305 * ___action0, const RuntimeMethod* method) { { NullCheck((BaseInvokableCall_t2703961024 *)__this); BaseInvokableCall__ctor_m768115019((BaseInvokableCall_t2703961024 *)__this, /*hidden argument*/NULL); UnityAction_1_t3664942305 * L_0 = ___action0; NullCheck((InvokableCall_1_t3197270402 *)__this); (( void (*) (InvokableCall_1_t3197270402 *, UnityAction_1_t3664942305 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 2)->methodPointer)((InvokableCall_1_t3197270402 *)__this, (UnityAction_1_t3664942305 *)L_0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 2)); return; } } // System.Void UnityEngine.Events.InvokableCall`1<System.Object>::add_Delegate(UnityEngine.Events.UnityAction`1<T1>) extern "C" void InvokableCall_1_add_Delegate_m1149657958_gshared (InvokableCall_1_t3197270402 * __this, UnityAction_1_t3664942305 * ___value0, const RuntimeMethod* method) { UnityAction_1_t3664942305 * V_0 = NULL; UnityAction_1_t3664942305 * V_1 = NULL; { UnityAction_1_t3664942305 * L_0 = (UnityAction_1_t3664942305 *)__this->get_Delegate_0(); V_0 = (UnityAction_1_t3664942305 *)L_0; } IL_0007: { UnityAction_1_t3664942305 * L_1 = V_0; V_1 = (UnityAction_1_t3664942305 *)L_1; UnityAction_1_t3664942305 ** L_2 = (UnityAction_1_t3664942305 **)__this->get_address_of_Delegate_0(); UnityAction_1_t3664942305 * L_3 = V_1; UnityAction_1_t3664942305 * L_4 = ___value0; Delegate_t1188392813 * L_5 = Delegate_Combine_m1859655160(NULL /*static, unused*/, (Delegate_t1188392813 *)L_3, (Delegate_t1188392813 *)L_4, /*hidden argument*/NULL); UnityAction_1_t3664942305 * L_6 = V_0; UnityAction_1_t3664942305 * L_7 = InterlockedCompareExchangeImpl<UnityAction_1_t3664942305 *>((UnityAction_1_t3664942305 **)L_2, (UnityAction_1_t3664942305 *)((UnityAction_1_t3664942305 *)Castclass((RuntimeObject*)L_5, IL2CPP_RGCTX_DATA(method->declaring_type->rgctx_data, 1))), (UnityAction_1_t3664942305 *)L_6); V_0 = (UnityAction_1_t3664942305 *)L_7; UnityAction_1_t3664942305 * L_8 = V_0; UnityAction_1_t3664942305 * L_9 = V_1; if ((!(((RuntimeObject*)(UnityAction_1_t3664942305 *)L_8) == ((RuntimeObject*)(UnityAction_1_t3664942305 *)L_9)))) { goto IL_0007; } } { return; } } // System.Void UnityEngine.Events.InvokableCall`1<System.Object>::remove_Delegate(UnityEngine.Events.UnityAction`1<T1>) extern "C" void InvokableCall_1_remove_Delegate_m1459577645_gshared (InvokableCall_1_t3197270402 * __this, UnityAction_1_t3664942305 * ___value0, const RuntimeMethod* method) { UnityAction_1_t3664942305 * V_0 = NULL; UnityAction_1_t3664942305 * V_1 = NULL; { UnityAction_1_t3664942305 * L_0 = (UnityAction_1_t3664942305 *)__this->get_Delegate_0(); V_0 = (UnityAction_1_t3664942305 *)L_0; } IL_0007: { UnityAction_1_t3664942305 * L_1 = V_0; V_1 = (UnityAction_1_t3664942305 *)L_1; UnityAction_1_t3664942305 ** L_2 = (UnityAction_1_t3664942305 **)__this->get_address_of_Delegate_0(); UnityAction_1_t3664942305 * L_3 = V_1; UnityAction_1_t3664942305 * L_4 = ___value0; Delegate_t1188392813 * L_5 = Delegate_Remove_m334097152(NULL /*static, unused*/, (Delegate_t1188392813 *)L_3, (Delegate_t1188392813 *)L_4, /*hidden argument*/NULL); UnityAction_1_t3664942305 * L_6 = V_0; UnityAction_1_t3664942305 * L_7 = InterlockedCompareExchangeImpl<UnityAction_1_t3664942305 *>((UnityAction_1_t3664942305 **)L_2, (UnityAction_1_t3664942305 *)((UnityAction_1_t3664942305 *)Castclass((RuntimeObject*)L_5, IL2CPP_RGCTX_DATA(method->declaring_type->rgctx_data, 1))), (UnityAction_1_t3664942305 *)L_6); V_0 = (UnityAction_1_t3664942305 *)L_7; UnityAction_1_t3664942305 * L_8 = V_0; UnityAction_1_t3664942305 * L_9 = V_1; if ((!(((RuntimeObject*)(UnityAction_1_t3664942305 *)L_8) == ((RuntimeObject*)(UnityAction_1_t3664942305 *)L_9)))) { goto IL_0007; } } { return; } } // System.Void UnityEngine.Events.InvokableCall`1<System.Object>::Invoke(System.Object[]) extern "C" void InvokableCall_1_Invoke_m4071643321_gshared (InvokableCall_1_t3197270402 * __this, ObjectU5BU5D_t2843939325* ___args0, const RuntimeMethod* method) { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_method (InvokableCall_1_Invoke_m4071643321_MetadataUsageId); s_Il2CppMethodInitialized = true; } { ObjectU5BU5D_t2843939325* L_0 = ___args0; NullCheck(L_0); if ((((int32_t)(((int32_t)((int32_t)(((RuntimeArray *)L_0)->max_length))))) == ((int32_t)1))) { goto IL_0015; } } { ArgumentException_t132251570 * L_1 = (ArgumentException_t132251570 *)il2cpp_codegen_object_new(ArgumentException_t132251570_il2cpp_TypeInfo_var); ArgumentException__ctor_m1312628991(L_1, (String_t*)_stringLiteral1864861238, /*hidden argument*/NULL); IL2CPP_RAISE_MANAGED_EXCEPTION(L_1); } IL_0015: { ObjectU5BU5D_t2843939325* L_2 = ___args0; NullCheck(L_2); int32_t L_3 = 0; RuntimeObject * L_4 = (L_2)->GetAt(static_cast<il2cpp_array_size_t>(L_3)); (( void (*) (RuntimeObject * /* static, unused */, RuntimeObject *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 4)->methodPointer)(NULL /*static, unused*/, (RuntimeObject *)L_4, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 4)); UnityAction_1_t3664942305 * L_5 = (UnityAction_1_t3664942305 *)__this->get_Delegate_0(); bool L_6 = BaseInvokableCall_AllowInvoke_m878393606(NULL /*static, unused*/, (Delegate_t1188392813 *)L_5, /*hidden argument*/NULL); if (!L_6) { goto IL_0040; } } { UnityAction_1_t3664942305 * L_7 = (UnityAction_1_t3664942305 *)__this->get_Delegate_0(); ObjectU5BU5D_t2843939325* L_8 = ___args0; NullCheck(L_8); int32_t L_9 = 0; RuntimeObject * L_10 = (L_8)->GetAt(static_cast<il2cpp_array_size_t>(L_9)); NullCheck((UnityAction_1_t3664942305 *)L_7); (( void (*) (UnityAction_1_t3664942305 *, RuntimeObject *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 6)->methodPointer)((UnityAction_1_t3664942305 *)L_7, (RuntimeObject *)((RuntimeObject *)Castclass((RuntimeObject*)L_10, IL2CPP_RGCTX_DATA(method->declaring_type->rgctx_data, 5))), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 6)); } IL_0040: { return; } } // System.Void UnityEngine.Events.InvokableCall`1<System.Object>::Invoke(T1) extern "C" void InvokableCall_1_Invoke_m1111745191_gshared (InvokableCall_1_t3197270402 * __this, RuntimeObject * ___args00, const RuntimeMethod* method) { { UnityAction_1_t3664942305 * L_0 = (UnityAction_1_t3664942305 *)__this->get_Delegate_0(); bool L_1 = BaseInvokableCall_AllowInvoke_m878393606(NULL /*static, unused*/, (Delegate_t1188392813 *)L_0, /*hidden argument*/NULL); if (!L_1) { goto IL_001d; } } { UnityAction_1_t3664942305 * L_2 = (UnityAction_1_t3664942305 *)__this->get_Delegate_0(); RuntimeObject * L_3 = ___args00; NullCheck((UnityAction_1_t3664942305 *)L_2); (( void (*) (UnityAction_1_t3664942305 *, RuntimeObject *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 6)->methodPointer)((UnityAction_1_t3664942305 *)L_2, (RuntimeObject *)L_3, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 6)); } IL_001d: { return; } } // System.Boolean UnityEngine.Events.InvokableCall`1<System.Object>::Find(System.Object,System.Reflection.MethodInfo) extern "C" bool InvokableCall_1_Find_m667253485_gshared (InvokableCall_1_t3197270402 * __this, RuntimeObject * ___targetObj0, MethodInfo_t * ___method1, const RuntimeMethod* method) { bool V_0 = false; int32_t G_B3_0 = 0; { UnityAction_1_t3664942305 * L_0 = (UnityAction_1_t3664942305 *)__this->get_Delegate_0(); NullCheck((Delegate_t1188392813 *)L_0); RuntimeObject * L_1 = Delegate_get_Target_m2361978888((Delegate_t1188392813 *)L_0, /*hidden argument*/NULL); RuntimeObject * L_2 = ___targetObj0; if ((!(((RuntimeObject*)(RuntimeObject *)L_1) == ((RuntimeObject*)(RuntimeObject *)L_2)))) { goto IL_0025; } } { UnityAction_1_t3664942305 * L_3 = (UnityAction_1_t3664942305 *)__this->get_Delegate_0(); MethodInfo_t * L_4 = NetFxCoreExtensions_GetMethodInfo_m444570327(NULL /*static, unused*/, (Delegate_t1188392813 *)L_3, /*hidden argument*/NULL); MethodInfo_t * L_5 = ___method1; NullCheck((RuntimeObject *)L_4); bool L_6 = VirtFuncInvoker1< bool, RuntimeObject * >::Invoke(0 /* System.Boolean System.Object::Equals(System.Object) */, (RuntimeObject *)L_4, (RuntimeObject *)L_5); G_B3_0 = ((int32_t)(L_6)); goto IL_0026; } IL_0025: { G_B3_0 = 0; } IL_0026: { V_0 = (bool)G_B3_0; goto IL_002c; } IL_002c: { bool L_7 = V_0; return L_7; } } #ifdef __clang__ #pragma clang diagnostic pop #endif #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Void UnityEngine.Events.InvokableCall`1<System.Single>::.ctor(System.Object,System.Reflection.MethodInfo) extern "C" void InvokableCall_1__ctor_m4147324340_gshared (InvokableCall_1_t1514431012 * __this, RuntimeObject * ___target0, MethodInfo_t * ___theFunction1, const RuntimeMethod* method) { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_method (InvokableCall_1__ctor_m4147324340_MetadataUsageId); s_Il2CppMethodInitialized = true; } { RuntimeObject * L_0 = ___target0; MethodInfo_t * L_1 = ___theFunction1; NullCheck((BaseInvokableCall_t2703961024 *)__this); BaseInvokableCall__ctor_m2110966014((BaseInvokableCall_t2703961024 *)__this, (RuntimeObject *)L_0, (MethodInfo_t *)L_1, /*hidden argument*/NULL); MethodInfo_t * L_2 = ___theFunction1; RuntimeTypeHandle_t3027515415 L_3 = { reinterpret_cast<intptr_t> (IL2CPP_RGCTX_TYPE(method->declaring_type->rgctx_data, 0)) }; IL2CPP_RUNTIME_CLASS_INIT(Type_t_il2cpp_TypeInfo_var); Type_t * L_4 = Type_GetTypeFromHandle_m1620074514(NULL /*static, unused*/, (RuntimeTypeHandle_t3027515415 )L_3, /*hidden argument*/NULL); RuntimeObject * L_5 = ___target0; Delegate_t1188392813 * L_6 = NetFxCoreExtensions_CreateDelegate_m751211712(NULL /*static, unused*/, (MethodInfo_t *)L_2, (Type_t *)L_4, (RuntimeObject *)L_5, /*hidden argument*/NULL); NullCheck((InvokableCall_1_t1514431012 *)__this); (( void (*) (InvokableCall_1_t1514431012 *, UnityAction_1_t1982102915 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 2)->methodPointer)((InvokableCall_1_t1514431012 *)__this, (UnityAction_1_t1982102915 *)((UnityAction_1_t1982102915 *)Castclass((RuntimeObject*)L_6, IL2CPP_RGCTX_DATA(method->declaring_type->rgctx_data, 1))), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 2)); return; } } // System.Void UnityEngine.Events.InvokableCall`1<System.Single>::.ctor(UnityEngine.Events.UnityAction`1<T1>) extern "C" void InvokableCall_1__ctor_m550191732_gshared (InvokableCall_1_t1514431012 * __this, UnityAction_1_t1982102915 * ___action0, const RuntimeMethod* method) { { NullCheck((BaseInvokableCall_t2703961024 *)__this); BaseInvokableCall__ctor_m768115019((BaseInvokableCall_t2703961024 *)__this, /*hidden argument*/NULL); UnityAction_1_t1982102915 * L_0 = ___action0; NullCheck((InvokableCall_1_t1514431012 *)__this); (( void (*) (InvokableCall_1_t1514431012 *, UnityAction_1_t1982102915 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 2)->methodPointer)((InvokableCall_1_t1514431012 *)__this, (UnityAction_1_t1982102915 *)L_0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 2)); return; } } // System.Void UnityEngine.Events.InvokableCall`1<System.Single>::add_Delegate(UnityEngine.Events.UnityAction`1<T1>) extern "C" void InvokableCall_1_add_Delegate_m1440777569_gshared (InvokableCall_1_t1514431012 * __this, UnityAction_1_t1982102915 * ___value0, const RuntimeMethod* method) { UnityAction_1_t1982102915 * V_0 = NULL; UnityAction_1_t1982102915 * V_1 = NULL; { UnityAction_1_t1982102915 * L_0 = (UnityAction_1_t1982102915 *)__this->get_Delegate_0(); V_0 = (UnityAction_1_t1982102915 *)L_0; } IL_0007: { UnityAction_1_t1982102915 * L_1 = V_0; V_1 = (UnityAction_1_t1982102915 *)L_1; UnityAction_1_t1982102915 ** L_2 = (UnityAction_1_t1982102915 **)__this->get_address_of_Delegate_0(); UnityAction_1_t1982102915 * L_3 = V_1; UnityAction_1_t1982102915 * L_4 = ___value0; Delegate_t1188392813 * L_5 = Delegate_Combine_m1859655160(NULL /*static, unused*/, (Delegate_t1188392813 *)L_3, (Delegate_t1188392813 *)L_4, /*hidden argument*/NULL); UnityAction_1_t1982102915 * L_6 = V_0; UnityAction_1_t1982102915 * L_7 = InterlockedCompareExchangeImpl<UnityAction_1_t1982102915 *>((UnityAction_1_t1982102915 **)L_2, (UnityAction_1_t1982102915 *)((UnityAction_1_t1982102915 *)Castclass((RuntimeObject*)L_5, IL2CPP_RGCTX_DATA(method->declaring_type->rgctx_data, 1))), (UnityAction_1_t1982102915 *)L_6); V_0 = (UnityAction_1_t1982102915 *)L_7; UnityAction_1_t1982102915 * L_8 = V_0; UnityAction_1_t1982102915 * L_9 = V_1; if ((!(((RuntimeObject*)(UnityAction_1_t1982102915 *)L_8) == ((RuntimeObject*)(UnityAction_1_t1982102915 *)L_9)))) { goto IL_0007; } } { return; } } // System.Void UnityEngine.Events.InvokableCall`1<System.Single>::remove_Delegate(UnityEngine.Events.UnityAction`1<T1>) extern "C" void InvokableCall_1_remove_Delegate_m790146436_gshared (InvokableCall_1_t1514431012 * __this, UnityAction_1_t1982102915 * ___value0, const RuntimeMethod* method) { UnityAction_1_t1982102915 * V_0 = NULL; UnityAction_1_t1982102915 * V_1 = NULL; { UnityAction_1_t1982102915 * L_0 = (UnityAction_1_t1982102915 *)__this->get_Delegate_0(); V_0 = (UnityAction_1_t1982102915 *)L_0; } IL_0007: { UnityAction_1_t1982102915 * L_1 = V_0; V_1 = (UnityAction_1_t1982102915 *)L_1; UnityAction_1_t1982102915 ** L_2 = (UnityAction_1_t1982102915 **)__this->get_address_of_Delegate_0(); UnityAction_1_t1982102915 * L_3 = V_1; UnityAction_1_t1982102915 * L_4 = ___value0; Delegate_t1188392813 * L_5 = Delegate_Remove_m334097152(NULL /*static, unused*/, (Delegate_t1188392813 *)L_3, (Delegate_t1188392813 *)L_4, /*hidden argument*/NULL); UnityAction_1_t1982102915 * L_6 = V_0; UnityAction_1_t1982102915 * L_7 = InterlockedCompareExchangeImpl<UnityAction_1_t1982102915 *>((UnityAction_1_t1982102915 **)L_2, (UnityAction_1_t1982102915 *)((UnityAction_1_t1982102915 *)Castclass((RuntimeObject*)L_5, IL2CPP_RGCTX_DATA(method->declaring_type->rgctx_data, 1))), (UnityAction_1_t1982102915 *)L_6); V_0 = (UnityAction_1_t1982102915 *)L_7; UnityAction_1_t1982102915 * L_8 = V_0; UnityAction_1_t1982102915 * L_9 = V_1; if ((!(((RuntimeObject*)(UnityAction_1_t1982102915 *)L_8) == ((RuntimeObject*)(UnityAction_1_t1982102915 *)L_9)))) { goto IL_0007; } } { return; } } // System.Void UnityEngine.Events.InvokableCall`1<System.Single>::Invoke(System.Object[]) extern "C" void InvokableCall_1_Invoke_m4150391468_gshared (InvokableCall_1_t1514431012 * __this, ObjectU5BU5D_t2843939325* ___args0, const RuntimeMethod* method) { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_method (InvokableCall_1_Invoke_m4150391468_MetadataUsageId); s_Il2CppMethodInitialized = true; } { ObjectU5BU5D_t2843939325* L_0 = ___args0; NullCheck(L_0); if ((((int32_t)(((int32_t)((int32_t)(((RuntimeArray *)L_0)->max_length))))) == ((int32_t)1))) { goto IL_0015; } } { ArgumentException_t132251570 * L_1 = (ArgumentException_t132251570 *)il2cpp_codegen_object_new(ArgumentException_t132251570_il2cpp_TypeInfo_var); ArgumentException__ctor_m1312628991(L_1, (String_t*)_stringLiteral1864861238, /*hidden argument*/NULL); IL2CPP_RAISE_MANAGED_EXCEPTION(L_1); } IL_0015: { ObjectU5BU5D_t2843939325* L_2 = ___args0; NullCheck(L_2); int32_t L_3 = 0; RuntimeObject * L_4 = (L_2)->GetAt(static_cast<il2cpp_array_size_t>(L_3)); (( void (*) (RuntimeObject * /* static, unused */, RuntimeObject *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 4)->methodPointer)(NULL /*static, unused*/, (RuntimeObject *)L_4, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 4)); UnityAction_1_t1982102915 * L_5 = (UnityAction_1_t1982102915 *)__this->get_Delegate_0(); bool L_6 = BaseInvokableCall_AllowInvoke_m878393606(NULL /*static, unused*/, (Delegate_t1188392813 *)L_5, /*hidden argument*/NULL); if (!L_6) { goto IL_0040; } } { UnityAction_1_t1982102915 * L_7 = (UnityAction_1_t1982102915 *)__this->get_Delegate_0(); ObjectU5BU5D_t2843939325* L_8 = ___args0; NullCheck(L_8); int32_t L_9 = 0; RuntimeObject * L_10 = (L_8)->GetAt(static_cast<il2cpp_array_size_t>(L_9)); NullCheck((UnityAction_1_t1982102915 *)L_7); (( void (*) (UnityAction_1_t1982102915 *, float, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 6)->methodPointer)((UnityAction_1_t1982102915 *)L_7, (float)((*(float*)((float*)UnBox(L_10, IL2CPP_RGCTX_DATA(method->declaring_type->rgctx_data, 5))))), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 6)); } IL_0040: { return; } } // System.Void UnityEngine.Events.InvokableCall`1<System.Single>::Invoke(T1) extern "C" void InvokableCall_1_Invoke_m1920505169_gshared (InvokableCall_1_t1514431012 * __this, float ___args00, const RuntimeMethod* method) { { UnityAction_1_t1982102915 * L_0 = (UnityAction_1_t1982102915 *)__this->get_Delegate_0(); bool L_1 = BaseInvokableCall_AllowInvoke_m878393606(NULL /*static, unused*/, (Delegate_t1188392813 *)L_0, /*hidden argument*/NULL); if (!L_1) { goto IL_001d; } } { UnityAction_1_t1982102915 * L_2 = (UnityAction_1_t1982102915 *)__this->get_Delegate_0(); float L_3 = ___args00; NullCheck((UnityAction_1_t1982102915 *)L_2); (( void (*) (UnityAction_1_t1982102915 *, float, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 6)->methodPointer)((UnityAction_1_t1982102915 *)L_2, (float)L_3, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 6)); } IL_001d: { return; } } // System.Boolean UnityEngine.Events.InvokableCall`1<System.Single>::Find(System.Object,System.Reflection.MethodInfo) extern "C" bool InvokableCall_1_Find_m1741895083_gshared (InvokableCall_1_t1514431012 * __this, RuntimeObject * ___targetObj0, MethodInfo_t * ___method1, const RuntimeMethod* method) { bool V_0 = false; int32_t G_B3_0 = 0; { UnityAction_1_t1982102915 * L_0 = (UnityAction_1_t1982102915 *)__this->get_Delegate_0(); NullCheck((Delegate_t1188392813 *)L_0); RuntimeObject * L_1 = Delegate_get_Target_m2361978888((Delegate_t1188392813 *)L_0, /*hidden argument*/NULL); RuntimeObject * L_2 = ___targetObj0; if ((!(((RuntimeObject*)(RuntimeObject *)L_1) == ((RuntimeObject*)(RuntimeObject *)L_2)))) { goto IL_0025; } } { UnityAction_1_t1982102915 * L_3 = (UnityAction_1_t1982102915 *)__this->get_Delegate_0(); MethodInfo_t * L_4 = NetFxCoreExtensions_GetMethodInfo_m444570327(NULL /*static, unused*/, (Delegate_t1188392813 *)L_3, /*hidden argument*/NULL); MethodInfo_t * L_5 = ___method1; NullCheck((RuntimeObject *)L_4); bool L_6 = VirtFuncInvoker1< bool, RuntimeObject * >::Invoke(0 /* System.Boolean System.Object::Equals(System.Object) */, (RuntimeObject *)L_4, (RuntimeObject *)L_5); G_B3_0 = ((int32_t)(L_6)); goto IL_0026; } IL_0025: { G_B3_0 = 0; } IL_0026: { V_0 = (bool)G_B3_0; goto IL_002c; } IL_002c: { bool L_7 = V_0; return L_7; } } #ifdef __clang__ #pragma clang diagnostic pop #endif #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Void UnityEngine.Events.InvokableCall`1<UnityEngine.Color>::.ctor(System.Object,System.Reflection.MethodInfo) extern "C" void InvokableCall_1__ctor_m3910153236_gshared (InvokableCall_1_t2672850562 * __this, RuntimeObject * ___target0, MethodInfo_t * ___theFunction1, const RuntimeMethod* method) { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_method (InvokableCall_1__ctor_m3910153236_MetadataUsageId); s_Il2CppMethodInitialized = true; } { RuntimeObject * L_0 = ___target0; MethodInfo_t * L_1 = ___theFunction1; NullCheck((BaseInvokableCall_t2703961024 *)__this); BaseInvokableCall__ctor_m2110966014((BaseInvokableCall_t2703961024 *)__this, (RuntimeObject *)L_0, (MethodInfo_t *)L_1, /*hidden argument*/NULL); MethodInfo_t * L_2 = ___theFunction1; RuntimeTypeHandle_t3027515415 L_3 = { reinterpret_cast<intptr_t> (IL2CPP_RGCTX_TYPE(method->declaring_type->rgctx_data, 0)) }; IL2CPP_RUNTIME_CLASS_INIT(Type_t_il2cpp_TypeInfo_var); Type_t * L_4 = Type_GetTypeFromHandle_m1620074514(NULL /*static, unused*/, (RuntimeTypeHandle_t3027515415 )L_3, /*hidden argument*/NULL); RuntimeObject * L_5 = ___target0; Delegate_t1188392813 * L_6 = NetFxCoreExtensions_CreateDelegate_m751211712(NULL /*static, unused*/, (MethodInfo_t *)L_2, (Type_t *)L_4, (RuntimeObject *)L_5, /*hidden argument*/NULL); NullCheck((InvokableCall_1_t2672850562 *)__this); (( void (*) (InvokableCall_1_t2672850562 *, UnityAction_1_t3140522465 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 2)->methodPointer)((InvokableCall_1_t2672850562 *)__this, (UnityAction_1_t3140522465 *)((UnityAction_1_t3140522465 *)Castclass((RuntimeObject*)L_6, IL2CPP_RGCTX_DATA(method->declaring_type->rgctx_data, 1))), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 2)); return; } } // System.Void UnityEngine.Events.InvokableCall`1<UnityEngine.Color>::.ctor(UnityEngine.Events.UnityAction`1<T1>) extern "C" void InvokableCall_1__ctor_m2610016537_gshared (InvokableCall_1_t2672850562 * __this, UnityAction_1_t3140522465 * ___action0, const RuntimeMethod* method) { { NullCheck((BaseInvokableCall_t2703961024 *)__this); BaseInvokableCall__ctor_m768115019((BaseInvokableCall_t2703961024 *)__this, /*hidden argument*/NULL); UnityAction_1_t3140522465 * L_0 = ___action0; NullCheck((InvokableCall_1_t2672850562 *)__this); (( void (*) (InvokableCall_1_t2672850562 *, UnityAction_1_t3140522465 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 2)->methodPointer)((InvokableCall_1_t2672850562 *)__this, (UnityAction_1_t3140522465 *)L_0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 2)); return; } } // System.Void UnityEngine.Events.InvokableCall`1<UnityEngine.Color>::add_Delegate(UnityEngine.Events.UnityAction`1<T1>) extern "C" void InvokableCall_1_add_Delegate_m1240362230_gshared (InvokableCall_1_t2672850562 * __this, UnityAction_1_t3140522465 * ___value0, const RuntimeMethod* method) { UnityAction_1_t3140522465 * V_0 = NULL; UnityAction_1_t3140522465 * V_1 = NULL; { UnityAction_1_t3140522465 * L_0 = (UnityAction_1_t3140522465 *)__this->get_Delegate_0(); V_0 = (UnityAction_1_t3140522465 *)L_0; } IL_0007: { UnityAction_1_t3140522465 * L_1 = V_0; V_1 = (UnityAction_1_t3140522465 *)L_1; UnityAction_1_t3140522465 ** L_2 = (UnityAction_1_t3140522465 **)__this->get_address_of_Delegate_0(); UnityAction_1_t3140522465 * L_3 = V_1; UnityAction_1_t3140522465 * L_4 = ___value0; Delegate_t1188392813 * L_5 = Delegate_Combine_m1859655160(NULL /*static, unused*/, (Delegate_t1188392813 *)L_3, (Delegate_t1188392813 *)L_4, /*hidden argument*/NULL); UnityAction_1_t3140522465 * L_6 = V_0; UnityAction_1_t3140522465 * L_7 = InterlockedCompareExchangeImpl<UnityAction_1_t3140522465 *>((UnityAction_1_t3140522465 **)L_2, (UnityAction_1_t3140522465 *)((UnityAction_1_t3140522465 *)Castclass((RuntimeObject*)L_5, IL2CPP_RGCTX_DATA(method->declaring_type->rgctx_data, 1))), (UnityAction_1_t3140522465 *)L_6); V_0 = (UnityAction_1_t3140522465 *)L_7; UnityAction_1_t3140522465 * L_8 = V_0; UnityAction_1_t3140522465 * L_9 = V_1; if ((!(((RuntimeObject*)(UnityAction_1_t3140522465 *)L_8) == ((RuntimeObject*)(UnityAction_1_t3140522465 *)L_9)))) { goto IL_0007; } } { return; } } // System.Void UnityEngine.Events.InvokableCall`1<UnityEngine.Color>::remove_Delegate(UnityEngine.Events.UnityAction`1<T1>) extern "C" void InvokableCall_1_remove_Delegate_m1889626100_gshared (InvokableCall_1_t2672850562 * __this, UnityAction_1_t3140522465 * ___value0, const RuntimeMethod* method) { UnityAction_1_t3140522465 * V_0 = NULL; UnityAction_1_t3140522465 * V_1 = NULL; { UnityAction_1_t3140522465 * L_0 = (UnityAction_1_t3140522465 *)__this->get_Delegate_0(); V_0 = (UnityAction_1_t3140522465 *)L_0; } IL_0007: { UnityAction_1_t3140522465 * L_1 = V_0; V_1 = (UnityAction_1_t3140522465 *)L_1; UnityAction_1_t3140522465 ** L_2 = (UnityAction_1_t3140522465 **)__this->get_address_of_Delegate_0(); UnityAction_1_t3140522465 * L_3 = V_1; UnityAction_1_t3140522465 * L_4 = ___value0; Delegate_t1188392813 * L_5 = Delegate_Remove_m334097152(NULL /*static, unused*/, (Delegate_t1188392813 *)L_3, (Delegate_t1188392813 *)L_4, /*hidden argument*/NULL); UnityAction_1_t3140522465 * L_6 = V_0; UnityAction_1_t3140522465 * L_7 = InterlockedCompareExchangeImpl<UnityAction_1_t3140522465 *>((UnityAction_1_t3140522465 **)L_2, (UnityAction_1_t3140522465 *)((UnityAction_1_t3140522465 *)Castclass((RuntimeObject*)L_5, IL2CPP_RGCTX_DATA(method->declaring_type->rgctx_data, 1))), (UnityAction_1_t3140522465 *)L_6); V_0 = (UnityAction_1_t3140522465 *)L_7; UnityAction_1_t3140522465 * L_8 = V_0; UnityAction_1_t3140522465 * L_9 = V_1; if ((!(((RuntimeObject*)(UnityAction_1_t3140522465 *)L_8) == ((RuntimeObject*)(UnityAction_1_t3140522465 *)L_9)))) { goto IL_0007; } } { return; } } // System.Void UnityEngine.Events.InvokableCall`1<UnityEngine.Color>::Invoke(System.Object[]) extern "C" void InvokableCall_1_Invoke_m1524307439_gshared (InvokableCall_1_t2672850562 * __this, ObjectU5BU5D_t2843939325* ___args0, const RuntimeMethod* method) { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_method (InvokableCall_1_Invoke_m1524307439_MetadataUsageId); s_Il2CppMethodInitialized = true; } { ObjectU5BU5D_t2843939325* L_0 = ___args0; NullCheck(L_0); if ((((int32_t)(((int32_t)((int32_t)(((RuntimeArray *)L_0)->max_length))))) == ((int32_t)1))) { goto IL_0015; } } { ArgumentException_t132251570 * L_1 = (ArgumentException_t132251570 *)il2cpp_codegen_object_new(ArgumentException_t132251570_il2cpp_TypeInfo_var); ArgumentException__ctor_m1312628991(L_1, (String_t*)_stringLiteral1864861238, /*hidden argument*/NULL); IL2CPP_RAISE_MANAGED_EXCEPTION(L_1); } IL_0015: { ObjectU5BU5D_t2843939325* L_2 = ___args0; NullCheck(L_2); int32_t L_3 = 0; RuntimeObject * L_4 = (L_2)->GetAt(static_cast<il2cpp_array_size_t>(L_3)); (( void (*) (RuntimeObject * /* static, unused */, RuntimeObject *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 4)->methodPointer)(NULL /*static, unused*/, (RuntimeObject *)L_4, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 4)); UnityAction_1_t3140522465 * L_5 = (UnityAction_1_t3140522465 *)__this->get_Delegate_0(); bool L_6 = BaseInvokableCall_AllowInvoke_m878393606(NULL /*static, unused*/, (Delegate_t1188392813 *)L_5, /*hidden argument*/NULL); if (!L_6) { goto IL_0040; } } { UnityAction_1_t3140522465 * L_7 = (UnityAction_1_t3140522465 *)__this->get_Delegate_0(); ObjectU5BU5D_t2843939325* L_8 = ___args0; NullCheck(L_8); int32_t L_9 = 0; RuntimeObject * L_10 = (L_8)->GetAt(static_cast<il2cpp_array_size_t>(L_9)); NullCheck((UnityAction_1_t3140522465 *)L_7); (( void (*) (UnityAction_1_t3140522465 *, Color_t2555686324 , const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 6)->methodPointer)((UnityAction_1_t3140522465 *)L_7, (Color_t2555686324 )((*(Color_t2555686324 *)((Color_t2555686324 *)UnBox(L_10, IL2CPP_RGCTX_DATA(method->declaring_type->rgctx_data, 5))))), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 6)); } IL_0040: { return; } } // System.Void UnityEngine.Events.InvokableCall`1<UnityEngine.Color>::Invoke(T1) extern "C" void InvokableCall_1_Invoke_m2622045618_gshared (InvokableCall_1_t2672850562 * __this, Color_t2555686324 ___args00, const RuntimeMethod* method) { { UnityAction_1_t3140522465 * L_0 = (UnityAction_1_t3140522465 *)__this->get_Delegate_0(); bool L_1 = BaseInvokableCall_AllowInvoke_m878393606(NULL /*static, unused*/, (Delegate_t1188392813 *)L_0, /*hidden argument*/NULL); if (!L_1) { goto IL_001d; } } { UnityAction_1_t3140522465 * L_2 = (UnityAction_1_t3140522465 *)__this->get_Delegate_0(); Color_t2555686324 L_3 = ___args00; NullCheck((UnityAction_1_t3140522465 *)L_2); (( void (*) (UnityAction_1_t3140522465 *, Color_t2555686324 , const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 6)->methodPointer)((UnityAction_1_t3140522465 *)L_2, (Color_t2555686324 )L_3, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 6)); } IL_001d: { return; } } // System.Boolean UnityEngine.Events.InvokableCall`1<UnityEngine.Color>::Find(System.Object,System.Reflection.MethodInfo) extern "C" bool InvokableCall_1_Find_m3206830158_gshared (InvokableCall_1_t2672850562 * __this, RuntimeObject * ___targetObj0, MethodInfo_t * ___method1, const RuntimeMethod* method) { bool V_0 = false; int32_t G_B3_0 = 0; { UnityAction_1_t3140522465 * L_0 = (UnityAction_1_t3140522465 *)__this->get_Delegate_0(); NullCheck((Delegate_t1188392813 *)L_0); RuntimeObject * L_1 = Delegate_get_Target_m2361978888((Delegate_t1188392813 *)L_0, /*hidden argument*/NULL); RuntimeObject * L_2 = ___targetObj0; if ((!(((RuntimeObject*)(RuntimeObject *)L_1) == ((RuntimeObject*)(RuntimeObject *)L_2)))) { goto IL_0025; } } { UnityAction_1_t3140522465 * L_3 = (UnityAction_1_t3140522465 *)__this->get_Delegate_0(); MethodInfo_t * L_4 = NetFxCoreExtensions_GetMethodInfo_m444570327(NULL /*static, unused*/, (Delegate_t1188392813 *)L_3, /*hidden argument*/NULL); MethodInfo_t * L_5 = ___method1; NullCheck((RuntimeObject *)L_4); bool L_6 = VirtFuncInvoker1< bool, RuntimeObject * >::Invoke(0 /* System.Boolean System.Object::Equals(System.Object) */, (RuntimeObject *)L_4, (RuntimeObject *)L_5); G_B3_0 = ((int32_t)(L_6)); goto IL_0026; } IL_0025: { G_B3_0 = 0; } IL_0026: { V_0 = (bool)G_B3_0; goto IL_002c; } IL_002c: { bool L_7 = V_0; return L_7; } } #ifdef __clang__ #pragma clang diagnostic pop #endif #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Void UnityEngine.Events.InvokableCall`1<UnityEngine.Vector2>::.ctor(System.Object,System.Reflection.MethodInfo) extern "C" void InvokableCall_1__ctor_m2254957474_gshared (InvokableCall_1_t2273393761 * __this, RuntimeObject * ___target0, MethodInfo_t * ___theFunction1, const RuntimeMethod* method) { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_method (InvokableCall_1__ctor_m2254957474_MetadataUsageId); s_Il2CppMethodInitialized = true; } { RuntimeObject * L_0 = ___target0; MethodInfo_t * L_1 = ___theFunction1; NullCheck((BaseInvokableCall_t2703961024 *)__this); BaseInvokableCall__ctor_m2110966014((BaseInvokableCall_t2703961024 *)__this, (RuntimeObject *)L_0, (MethodInfo_t *)L_1, /*hidden argument*/NULL); MethodInfo_t * L_2 = ___theFunction1; RuntimeTypeHandle_t3027515415 L_3 = { reinterpret_cast<intptr_t> (IL2CPP_RGCTX_TYPE(method->declaring_type->rgctx_data, 0)) }; IL2CPP_RUNTIME_CLASS_INIT(Type_t_il2cpp_TypeInfo_var); Type_t * L_4 = Type_GetTypeFromHandle_m1620074514(NULL /*static, unused*/, (RuntimeTypeHandle_t3027515415 )L_3, /*hidden argument*/NULL); RuntimeObject * L_5 = ___target0; Delegate_t1188392813 * L_6 = NetFxCoreExtensions_CreateDelegate_m751211712(NULL /*static, unused*/, (MethodInfo_t *)L_2, (Type_t *)L_4, (RuntimeObject *)L_5, /*hidden argument*/NULL); NullCheck((InvokableCall_1_t2273393761 *)__this); (( void (*) (InvokableCall_1_t2273393761 *, UnityAction_1_t2741065664 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 2)->methodPointer)((InvokableCall_1_t2273393761 *)__this, (UnityAction_1_t2741065664 *)((UnityAction_1_t2741065664 *)Castclass((RuntimeObject*)L_6, IL2CPP_RGCTX_DATA(method->declaring_type->rgctx_data, 1))), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 2)); return; } } // System.Void UnityEngine.Events.InvokableCall`1<UnityEngine.Vector2>::.ctor(UnityEngine.Events.UnityAction`1<T1>) extern "C" void InvokableCall_1__ctor_m1888496133_gshared (InvokableCall_1_t2273393761 * __this, UnityAction_1_t2741065664 * ___action0, const RuntimeMethod* method) { { NullCheck((BaseInvokableCall_t2703961024 *)__this); BaseInvokableCall__ctor_m768115019((BaseInvokableCall_t2703961024 *)__this, /*hidden argument*/NULL); UnityAction_1_t2741065664 * L_0 = ___action0; NullCheck((InvokableCall_1_t2273393761 *)__this); (( void (*) (InvokableCall_1_t2273393761 *, UnityAction_1_t2741065664 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 2)->methodPointer)((InvokableCall_1_t2273393761 *)__this, (UnityAction_1_t2741065664 *)L_0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 2)); return; } } // System.Void UnityEngine.Events.InvokableCall`1<UnityEngine.Vector2>::add_Delegate(UnityEngine.Events.UnityAction`1<T1>) extern "C" void InvokableCall_1_add_Delegate_m4123929146_gshared (InvokableCall_1_t2273393761 * __this, UnityAction_1_t2741065664 * ___value0, const RuntimeMethod* method) { UnityAction_1_t2741065664 * V_0 = NULL; UnityAction_1_t2741065664 * V_1 = NULL; { UnityAction_1_t2741065664 * L_0 = (UnityAction_1_t2741065664 *)__this->get_Delegate_0(); V_0 = (UnityAction_1_t2741065664 *)L_0; } IL_0007: { UnityAction_1_t2741065664 * L_1 = V_0; V_1 = (UnityAction_1_t2741065664 *)L_1; UnityAction_1_t2741065664 ** L_2 = (UnityAction_1_t2741065664 **)__this->get_address_of_Delegate_0(); UnityAction_1_t2741065664 * L_3 = V_1; UnityAction_1_t2741065664 * L_4 = ___value0; Delegate_t1188392813 * L_5 = Delegate_Combine_m1859655160(NULL /*static, unused*/, (Delegate_t1188392813 *)L_3, (Delegate_t1188392813 *)L_4, /*hidden argument*/NULL); UnityAction_1_t2741065664 * L_6 = V_0; UnityAction_1_t2741065664 * L_7 = InterlockedCompareExchangeImpl<UnityAction_1_t2741065664 *>((UnityAction_1_t2741065664 **)L_2, (UnityAction_1_t2741065664 *)((UnityAction_1_t2741065664 *)Castclass((RuntimeObject*)L_5, IL2CPP_RGCTX_DATA(method->declaring_type->rgctx_data, 1))), (UnityAction_1_t2741065664 *)L_6); V_0 = (UnityAction_1_t2741065664 *)L_7; UnityAction_1_t2741065664 * L_8 = V_0; UnityAction_1_t2741065664 * L_9 = V_1; if ((!(((RuntimeObject*)(UnityAction_1_t2741065664 *)L_8) == ((RuntimeObject*)(UnityAction_1_t2741065664 *)L_9)))) { goto IL_0007; } } { return; } } // System.Void UnityEngine.Events.InvokableCall`1<UnityEngine.Vector2>::remove_Delegate(UnityEngine.Events.UnityAction`1<T1>) extern "C" void InvokableCall_1_remove_Delegate_m667188944_gshared (InvokableCall_1_t2273393761 * __this, UnityAction_1_t2741065664 * ___value0, const RuntimeMethod* method) { UnityAction_1_t2741065664 * V_0 = NULL; UnityAction_1_t2741065664 * V_1 = NULL; { UnityAction_1_t2741065664 * L_0 = (UnityAction_1_t2741065664 *)__this->get_Delegate_0(); V_0 = (UnityAction_1_t2741065664 *)L_0; } IL_0007: { UnityAction_1_t2741065664 * L_1 = V_0; V_1 = (UnityAction_1_t2741065664 *)L_1; UnityAction_1_t2741065664 ** L_2 = (UnityAction_1_t2741065664 **)__this->get_address_of_Delegate_0(); UnityAction_1_t2741065664 * L_3 = V_1; UnityAction_1_t2741065664 * L_4 = ___value0; Delegate_t1188392813 * L_5 = Delegate_Remove_m334097152(NULL /*static, unused*/, (Delegate_t1188392813 *)L_3, (Delegate_t1188392813 *)L_4, /*hidden argument*/NULL); UnityAction_1_t2741065664 * L_6 = V_0; UnityAction_1_t2741065664 * L_7 = InterlockedCompareExchangeImpl<UnityAction_1_t2741065664 *>((UnityAction_1_t2741065664 **)L_2, (UnityAction_1_t2741065664 *)((UnityAction_1_t2741065664 *)Castclass((RuntimeObject*)L_5, IL2CPP_RGCTX_DATA(method->declaring_type->rgctx_data, 1))), (UnityAction_1_t2741065664 *)L_6); V_0 = (UnityAction_1_t2741065664 *)L_7; UnityAction_1_t2741065664 * L_8 = V_0; UnityAction_1_t2741065664 * L_9 = V_1; if ((!(((RuntimeObject*)(UnityAction_1_t2741065664 *)L_8) == ((RuntimeObject*)(UnityAction_1_t2741065664 *)L_9)))) { goto IL_0007; } } { return; } } // System.Void UnityEngine.Events.InvokableCall`1<UnityEngine.Vector2>::Invoke(System.Object[]) extern "C" void InvokableCall_1_Invoke_m1160628299_gshared (InvokableCall_1_t2273393761 * __this, ObjectU5BU5D_t2843939325* ___args0, const RuntimeMethod* method) { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_method (InvokableCall_1_Invoke_m1160628299_MetadataUsageId); s_Il2CppMethodInitialized = true; } { ObjectU5BU5D_t2843939325* L_0 = ___args0; NullCheck(L_0); if ((((int32_t)(((int32_t)((int32_t)(((RuntimeArray *)L_0)->max_length))))) == ((int32_t)1))) { goto IL_0015; } } { ArgumentException_t132251570 * L_1 = (ArgumentException_t132251570 *)il2cpp_codegen_object_new(ArgumentException_t132251570_il2cpp_TypeInfo_var); ArgumentException__ctor_m1312628991(L_1, (String_t*)_stringLiteral1864861238, /*hidden argument*/NULL); IL2CPP_RAISE_MANAGED_EXCEPTION(L_1); } IL_0015: { ObjectU5BU5D_t2843939325* L_2 = ___args0; NullCheck(L_2); int32_t L_3 = 0; RuntimeObject * L_4 = (L_2)->GetAt(static_cast<il2cpp_array_size_t>(L_3)); (( void (*) (RuntimeObject * /* static, unused */, RuntimeObject *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 4)->methodPointer)(NULL /*static, unused*/, (RuntimeObject *)L_4, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 4)); UnityAction_1_t2741065664 * L_5 = (UnityAction_1_t2741065664 *)__this->get_Delegate_0(); bool L_6 = BaseInvokableCall_AllowInvoke_m878393606(NULL /*static, unused*/, (Delegate_t1188392813 *)L_5, /*hidden argument*/NULL); if (!L_6) { goto IL_0040; } } { UnityAction_1_t2741065664 * L_7 = (UnityAction_1_t2741065664 *)__this->get_Delegate_0(); ObjectU5BU5D_t2843939325* L_8 = ___args0; NullCheck(L_8); int32_t L_9 = 0; RuntimeObject * L_10 = (L_8)->GetAt(static_cast<il2cpp_array_size_t>(L_9)); NullCheck((UnityAction_1_t2741065664 *)L_7); (( void (*) (UnityAction_1_t2741065664 *, Vector2_t2156229523 , const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 6)->methodPointer)((UnityAction_1_t2741065664 *)L_7, (Vector2_t2156229523 )((*(Vector2_t2156229523 *)((Vector2_t2156229523 *)UnBox(L_10, IL2CPP_RGCTX_DATA(method->declaring_type->rgctx_data, 5))))), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 6)); } IL_0040: { return; } } // System.Void UnityEngine.Events.InvokableCall`1<UnityEngine.Vector2>::Invoke(T1) extern "C" void InvokableCall_1_Invoke_m3205384408_gshared (InvokableCall_1_t2273393761 * __this, Vector2_t2156229523 ___args00, const RuntimeMethod* method) { { UnityAction_1_t2741065664 * L_0 = (UnityAction_1_t2741065664 *)__this->get_Delegate_0(); bool L_1 = BaseInvokableCall_AllowInvoke_m878393606(NULL /*static, unused*/, (Delegate_t1188392813 *)L_0, /*hidden argument*/NULL); if (!L_1) { goto IL_001d; } } { UnityAction_1_t2741065664 * L_2 = (UnityAction_1_t2741065664 *)__this->get_Delegate_0(); Vector2_t2156229523 L_3 = ___args00; NullCheck((UnityAction_1_t2741065664 *)L_2); (( void (*) (UnityAction_1_t2741065664 *, Vector2_t2156229523 , const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 6)->methodPointer)((UnityAction_1_t2741065664 *)L_2, (Vector2_t2156229523 )L_3, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 6)); } IL_001d: { return; } } // System.Boolean UnityEngine.Events.InvokableCall`1<UnityEngine.Vector2>::Find(System.Object,System.Reflection.MethodInfo) extern "C" bool InvokableCall_1_Find_m2468125381_gshared (InvokableCall_1_t2273393761 * __this, RuntimeObject * ___targetObj0, MethodInfo_t * ___method1, const RuntimeMethod* method) { bool V_0 = false; int32_t G_B3_0 = 0; { UnityAction_1_t2741065664 * L_0 = (UnityAction_1_t2741065664 *)__this->get_Delegate_0(); NullCheck((Delegate_t1188392813 *)L_0); RuntimeObject * L_1 = Delegate_get_Target_m2361978888((Delegate_t1188392813 *)L_0, /*hidden argument*/NULL); RuntimeObject * L_2 = ___targetObj0; if ((!(((RuntimeObject*)(RuntimeObject *)L_1) == ((RuntimeObject*)(RuntimeObject *)L_2)))) { goto IL_0025; } } { UnityAction_1_t2741065664 * L_3 = (UnityAction_1_t2741065664 *)__this->get_Delegate_0(); MethodInfo_t * L_4 = NetFxCoreExtensions_GetMethodInfo_m444570327(NULL /*static, unused*/, (Delegate_t1188392813 *)L_3, /*hidden argument*/NULL); MethodInfo_t * L_5 = ___method1; NullCheck((RuntimeObject *)L_4); bool L_6 = VirtFuncInvoker1< bool, RuntimeObject * >::Invoke(0 /* System.Boolean System.Object::Equals(System.Object) */, (RuntimeObject *)L_4, (RuntimeObject *)L_5); G_B3_0 = ((int32_t)(L_6)); goto IL_0026; } IL_0025: { G_B3_0 = 0; } IL_0026: { V_0 = (bool)G_B3_0; goto IL_002c; } IL_002c: { bool L_7 = V_0; return L_7; } } #ifdef __clang__ #pragma clang diagnostic pop #endif #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Void UnityEngine.Events.InvokableCall`2<System.Object,System.Object>::.ctor(System.Object,System.Reflection.MethodInfo) extern "C" void InvokableCall_2__ctor_m3619012188_gshared (InvokableCall_2_t362407658 * __this, RuntimeObject * ___target0, MethodInfo_t * ___theFunction1, const RuntimeMethod* method) { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_method (InvokableCall_2__ctor_m3619012188_MetadataUsageId); s_Il2CppMethodInitialized = true; } { RuntimeObject * L_0 = ___target0; MethodInfo_t * L_1 = ___theFunction1; NullCheck((BaseInvokableCall_t2703961024 *)__this); BaseInvokableCall__ctor_m2110966014((BaseInvokableCall_t2703961024 *)__this, (RuntimeObject *)L_0, (MethodInfo_t *)L_1, /*hidden argument*/NULL); MethodInfo_t * L_2 = ___theFunction1; RuntimeTypeHandle_t3027515415 L_3 = { reinterpret_cast<intptr_t> (IL2CPP_RGCTX_TYPE(method->declaring_type->rgctx_data, 0)) }; IL2CPP_RUNTIME_CLASS_INIT(Type_t_il2cpp_TypeInfo_var); Type_t * L_4 = Type_GetTypeFromHandle_m1620074514(NULL /*static, unused*/, (RuntimeTypeHandle_t3027515415 )L_3, /*hidden argument*/NULL); RuntimeObject * L_5 = ___target0; Delegate_t1188392813 * L_6 = NetFxCoreExtensions_CreateDelegate_m751211712(NULL /*static, unused*/, (MethodInfo_t *)L_2, (Type_t *)L_4, (RuntimeObject *)L_5, /*hidden argument*/NULL); __this->set_Delegate_0(((UnityAction_2_t3283971887 *)Castclass((RuntimeObject*)L_6, IL2CPP_RGCTX_DATA(method->declaring_type->rgctx_data, 1)))); return; } } // System.Void UnityEngine.Events.InvokableCall`2<System.Object,System.Object>::Invoke(System.Object[]) extern "C" void InvokableCall_2_Invoke_m1520082677_gshared (InvokableCall_2_t362407658 * __this, ObjectU5BU5D_t2843939325* ___args0, const RuntimeMethod* method) { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_method (InvokableCall_2_Invoke_m1520082677_MetadataUsageId); s_Il2CppMethodInitialized = true; } { ObjectU5BU5D_t2843939325* L_0 = ___args0; NullCheck(L_0); if ((((int32_t)(((int32_t)((int32_t)(((RuntimeArray *)L_0)->max_length))))) == ((int32_t)2))) { goto IL_0015; } } { ArgumentException_t132251570 * L_1 = (ArgumentException_t132251570 *)il2cpp_codegen_object_new(ArgumentException_t132251570_il2cpp_TypeInfo_var); ArgumentException__ctor_m1312628991(L_1, (String_t*)_stringLiteral1864861238, /*hidden argument*/NULL); IL2CPP_RAISE_MANAGED_EXCEPTION(L_1); } IL_0015: { ObjectU5BU5D_t2843939325* L_2 = ___args0; NullCheck(L_2); int32_t L_3 = 0; RuntimeObject * L_4 = (L_2)->GetAt(static_cast<il2cpp_array_size_t>(L_3)); (( void (*) (RuntimeObject * /* static, unused */, RuntimeObject *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 2)->methodPointer)(NULL /*static, unused*/, (RuntimeObject *)L_4, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 2)); ObjectU5BU5D_t2843939325* L_5 = ___args0; NullCheck(L_5); int32_t L_6 = 1; RuntimeObject * L_7 = (L_5)->GetAt(static_cast<il2cpp_array_size_t>(L_6)); (( void (*) (RuntimeObject * /* static, unused */, RuntimeObject *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 3)->methodPointer)(NULL /*static, unused*/, (RuntimeObject *)L_7, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 3)); UnityAction_2_t3283971887 * L_8 = (UnityAction_2_t3283971887 *)__this->get_Delegate_0(); bool L_9 = BaseInvokableCall_AllowInvoke_m878393606(NULL /*static, unused*/, (Delegate_t1188392813 *)L_8, /*hidden argument*/NULL); if (!L_9) { goto IL_0050; } } { UnityAction_2_t3283971887 * L_10 = (UnityAction_2_t3283971887 *)__this->get_Delegate_0(); ObjectU5BU5D_t2843939325* L_11 = ___args0; NullCheck(L_11); int32_t L_12 = 0; RuntimeObject * L_13 = (L_11)->GetAt(static_cast<il2cpp_array_size_t>(L_12)); ObjectU5BU5D_t2843939325* L_14 = ___args0; NullCheck(L_14); int32_t L_15 = 1; RuntimeObject * L_16 = (L_14)->GetAt(static_cast<il2cpp_array_size_t>(L_15)); NullCheck((UnityAction_2_t3283971887 *)L_10); (( void (*) (UnityAction_2_t3283971887 *, RuntimeObject *, RuntimeObject *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 6)->methodPointer)((UnityAction_2_t3283971887 *)L_10, (RuntimeObject *)((RuntimeObject *)Castclass((RuntimeObject*)L_13, IL2CPP_RGCTX_DATA(method->declaring_type->rgctx_data, 4))), (RuntimeObject *)((RuntimeObject *)Castclass((RuntimeObject*)L_16, IL2CPP_RGCTX_DATA(method->declaring_type->rgctx_data, 5))), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 6)); } IL_0050: { return; } } // System.Boolean UnityEngine.Events.InvokableCall`2<System.Object,System.Object>::Find(System.Object,System.Reflection.MethodInfo) extern "C" bool InvokableCall_2_Find_m265590023_gshared (InvokableCall_2_t362407658 * __this, RuntimeObject * ___targetObj0, MethodInfo_t * ___method1, const RuntimeMethod* method) { bool V_0 = false; int32_t G_B3_0 = 0; { UnityAction_2_t3283971887 * L_0 = (UnityAction_2_t3283971887 *)__this->get_Delegate_0(); NullCheck((Delegate_t1188392813 *)L_0); RuntimeObject * L_1 = Delegate_get_Target_m2361978888((Delegate_t1188392813 *)L_0, /*hidden argument*/NULL); RuntimeObject * L_2 = ___targetObj0; if ((!(((RuntimeObject*)(RuntimeObject *)L_1) == ((RuntimeObject*)(RuntimeObject *)L_2)))) { goto IL_0025; } } { UnityAction_2_t3283971887 * L_3 = (UnityAction_2_t3283971887 *)__this->get_Delegate_0(); MethodInfo_t * L_4 = NetFxCoreExtensions_GetMethodInfo_m444570327(NULL /*static, unused*/, (Delegate_t1188392813 *)L_3, /*hidden argument*/NULL); MethodInfo_t * L_5 = ___method1; NullCheck((RuntimeObject *)L_4); bool L_6 = VirtFuncInvoker1< bool, RuntimeObject * >::Invoke(0 /* System.Boolean System.Object::Equals(System.Object) */, (RuntimeObject *)L_4, (RuntimeObject *)L_5); G_B3_0 = ((int32_t)(L_6)); goto IL_0026; } IL_0025: { G_B3_0 = 0; } IL_0026: { V_0 = (bool)G_B3_0; goto IL_002c; } IL_002c: { bool L_7 = V_0; return L_7; } } #ifdef __clang__ #pragma clang diagnostic pop #endif #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Void UnityEngine.Events.InvokableCall`3<System.Object,System.Object,System.Object>::.ctor(System.Object,System.Reflection.MethodInfo) extern "C" void InvokableCall_3__ctor_m4245235439_gshared (InvokableCall_3_t4059188962 * __this, RuntimeObject * ___target0, MethodInfo_t * ___theFunction1, const RuntimeMethod* method) { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_method (InvokableCall_3__ctor_m4245235439_MetadataUsageId); s_Il2CppMethodInitialized = true; } { RuntimeObject * L_0 = ___target0; MethodInfo_t * L_1 = ___theFunction1; NullCheck((BaseInvokableCall_t2703961024 *)__this); BaseInvokableCall__ctor_m2110966014((BaseInvokableCall_t2703961024 *)__this, (RuntimeObject *)L_0, (MethodInfo_t *)L_1, /*hidden argument*/NULL); MethodInfo_t * L_2 = ___theFunction1; RuntimeTypeHandle_t3027515415 L_3 = { reinterpret_cast<intptr_t> (IL2CPP_RGCTX_TYPE(method->declaring_type->rgctx_data, 0)) }; IL2CPP_RUNTIME_CLASS_INIT(Type_t_il2cpp_TypeInfo_var); Type_t * L_4 = Type_GetTypeFromHandle_m1620074514(NULL /*static, unused*/, (RuntimeTypeHandle_t3027515415 )L_3, /*hidden argument*/NULL); RuntimeObject * L_5 = ___target0; Delegate_t1188392813 * L_6 = NetFxCoreExtensions_CreateDelegate_m751211712(NULL /*static, unused*/, (MethodInfo_t *)L_2, (Type_t *)L_4, (RuntimeObject *)L_5, /*hidden argument*/NULL); __this->set_Delegate_0(((UnityAction_3_t1557236713 *)Castclass((RuntimeObject*)L_6, IL2CPP_RGCTX_DATA(method->declaring_type->rgctx_data, 1)))); return; } } // System.Void UnityEngine.Events.InvokableCall`3<System.Object,System.Object,System.Object>::Invoke(System.Object[]) extern "C" void InvokableCall_3_Invoke_m3141788616_gshared (InvokableCall_3_t4059188962 * __this, ObjectU5BU5D_t2843939325* ___args0, const RuntimeMethod* method) { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_method (InvokableCall_3_Invoke_m3141788616_MetadataUsageId); s_Il2CppMethodInitialized = true; } { ObjectU5BU5D_t2843939325* L_0 = ___args0; NullCheck(L_0); if ((((int32_t)(((int32_t)((int32_t)(((RuntimeArray *)L_0)->max_length))))) == ((int32_t)3))) { goto IL_0015; } } { ArgumentException_t132251570 * L_1 = (ArgumentException_t132251570 *)il2cpp_codegen_object_new(ArgumentException_t132251570_il2cpp_TypeInfo_var); ArgumentException__ctor_m1312628991(L_1, (String_t*)_stringLiteral1864861238, /*hidden argument*/NULL); IL2CPP_RAISE_MANAGED_EXCEPTION(L_1); } IL_0015: { ObjectU5BU5D_t2843939325* L_2 = ___args0; NullCheck(L_2); int32_t L_3 = 0; RuntimeObject * L_4 = (L_2)->GetAt(static_cast<il2cpp_array_size_t>(L_3)); (( void (*) (RuntimeObject * /* static, unused */, RuntimeObject *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 2)->methodPointer)(NULL /*static, unused*/, (RuntimeObject *)L_4, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 2)); ObjectU5BU5D_t2843939325* L_5 = ___args0; NullCheck(L_5); int32_t L_6 = 1; RuntimeObject * L_7 = (L_5)->GetAt(static_cast<il2cpp_array_size_t>(L_6)); (( void (*) (RuntimeObject * /* static, unused */, RuntimeObject *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 3)->methodPointer)(NULL /*static, unused*/, (RuntimeObject *)L_7, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 3)); ObjectU5BU5D_t2843939325* L_8 = ___args0; NullCheck(L_8); int32_t L_9 = 2; RuntimeObject * L_10 = (L_8)->GetAt(static_cast<il2cpp_array_size_t>(L_9)); (( void (*) (RuntimeObject * /* static, unused */, RuntimeObject *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 4)->methodPointer)(NULL /*static, unused*/, (RuntimeObject *)L_10, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 4)); UnityAction_3_t1557236713 * L_11 = (UnityAction_3_t1557236713 *)__this->get_Delegate_0(); bool L_12 = BaseInvokableCall_AllowInvoke_m878393606(NULL /*static, unused*/, (Delegate_t1188392813 *)L_11, /*hidden argument*/NULL); if (!L_12) { goto IL_0060; } } { UnityAction_3_t1557236713 * L_13 = (UnityAction_3_t1557236713 *)__this->get_Delegate_0(); ObjectU5BU5D_t2843939325* L_14 = ___args0; NullCheck(L_14); int32_t L_15 = 0; RuntimeObject * L_16 = (L_14)->GetAt(static_cast<il2cpp_array_size_t>(L_15)); ObjectU5BU5D_t2843939325* L_17 = ___args0; NullCheck(L_17); int32_t L_18 = 1; RuntimeObject * L_19 = (L_17)->GetAt(static_cast<il2cpp_array_size_t>(L_18)); ObjectU5BU5D_t2843939325* L_20 = ___args0; NullCheck(L_20); int32_t L_21 = 2; RuntimeObject * L_22 = (L_20)->GetAt(static_cast<il2cpp_array_size_t>(L_21)); NullCheck((UnityAction_3_t1557236713 *)L_13); (( void (*) (UnityAction_3_t1557236713 *, RuntimeObject *, RuntimeObject *, RuntimeObject *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 8)->methodPointer)((UnityAction_3_t1557236713 *)L_13, (RuntimeObject *)((RuntimeObject *)Castclass((RuntimeObject*)L_16, IL2CPP_RGCTX_DATA(method->declaring_type->rgctx_data, 5))), (RuntimeObject *)((RuntimeObject *)Castclass((RuntimeObject*)L_19, IL2CPP_RGCTX_DATA(method->declaring_type->rgctx_data, 6))), (RuntimeObject *)((RuntimeObject *)Castclass((RuntimeObject*)L_22, IL2CPP_RGCTX_DATA(method->declaring_type->rgctx_data, 7))), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 8)); } IL_0060: { return; } } // System.Boolean UnityEngine.Events.InvokableCall`3<System.Object,System.Object,System.Object>::Find(System.Object,System.Reflection.MethodInfo) extern "C" bool InvokableCall_3_Find_m26605783_gshared (InvokableCall_3_t4059188962 * __this, RuntimeObject * ___targetObj0, MethodInfo_t * ___method1, const RuntimeMethod* method) { bool V_0 = false; int32_t G_B3_0 = 0; { UnityAction_3_t1557236713 * L_0 = (UnityAction_3_t1557236713 *)__this->get_Delegate_0(); NullCheck((Delegate_t1188392813 *)L_0); RuntimeObject * L_1 = Delegate_get_Target_m2361978888((Delegate_t1188392813 *)L_0, /*hidden argument*/NULL); RuntimeObject * L_2 = ___targetObj0; if ((!(((RuntimeObject*)(RuntimeObject *)L_1) == ((RuntimeObject*)(RuntimeObject *)L_2)))) { goto IL_0025; } } { UnityAction_3_t1557236713 * L_3 = (UnityAction_3_t1557236713 *)__this->get_Delegate_0(); MethodInfo_t * L_4 = NetFxCoreExtensions_GetMethodInfo_m444570327(NULL /*static, unused*/, (Delegate_t1188392813 *)L_3, /*hidden argument*/NULL); MethodInfo_t * L_5 = ___method1; NullCheck((RuntimeObject *)L_4); bool L_6 = VirtFuncInvoker1< bool, RuntimeObject * >::Invoke(0 /* System.Boolean System.Object::Equals(System.Object) */, (RuntimeObject *)L_4, (RuntimeObject *)L_5); G_B3_0 = ((int32_t)(L_6)); goto IL_0026; } IL_0025: { G_B3_0 = 0; } IL_0026: { V_0 = (bool)G_B3_0; goto IL_002c; } IL_002c: { bool L_7 = V_0; return L_7; } } #ifdef __clang__ #pragma clang diagnostic pop #endif #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Void UnityEngine.Events.InvokableCall`4<System.Object,System.Object,System.Object,System.Object>::.ctor(System.Object,System.Reflection.MethodInfo) extern "C" void InvokableCall_4__ctor_m3136187504_gshared (InvokableCall_4_t2756980746 * __this, RuntimeObject * ___target0, MethodInfo_t * ___theFunction1, const RuntimeMethod* method) { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_method (InvokableCall_4__ctor_m3136187504_MetadataUsageId); s_Il2CppMethodInitialized = true; } { RuntimeObject * L_0 = ___target0; MethodInfo_t * L_1 = ___theFunction1; NullCheck((BaseInvokableCall_t2703961024 *)__this); BaseInvokableCall__ctor_m2110966014((BaseInvokableCall_t2703961024 *)__this, (RuntimeObject *)L_0, (MethodInfo_t *)L_1, /*hidden argument*/NULL); MethodInfo_t * L_2 = ___theFunction1; RuntimeTypeHandle_t3027515415 L_3 = { reinterpret_cast<intptr_t> (IL2CPP_RGCTX_TYPE(method->declaring_type->rgctx_data, 0)) }; IL2CPP_RUNTIME_CLASS_INIT(Type_t_il2cpp_TypeInfo_var); Type_t * L_4 = Type_GetTypeFromHandle_m1620074514(NULL /*static, unused*/, (RuntimeTypeHandle_t3027515415 )L_3, /*hidden argument*/NULL); RuntimeObject * L_5 = ___target0; Delegate_t1188392813 * L_6 = NetFxCoreExtensions_CreateDelegate_m751211712(NULL /*static, unused*/, (MethodInfo_t *)L_2, (Type_t *)L_4, (RuntimeObject *)L_5, /*hidden argument*/NULL); __this->set_Delegate_0(((UnityAction_4_t682480391 *)Castclass((RuntimeObject*)L_6, IL2CPP_RGCTX_DATA(method->declaring_type->rgctx_data, 1)))); return; } } // System.Void UnityEngine.Events.InvokableCall`4<System.Object,System.Object,System.Object,System.Object>::Invoke(System.Object[]) extern "C" void InvokableCall_4_Invoke_m3371718871_gshared (InvokableCall_4_t2756980746 * __this, ObjectU5BU5D_t2843939325* ___args0, const RuntimeMethod* method) { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_method (InvokableCall_4_Invoke_m3371718871_MetadataUsageId); s_Il2CppMethodInitialized = true; } { ObjectU5BU5D_t2843939325* L_0 = ___args0; NullCheck(L_0); if ((((int32_t)(((int32_t)((int32_t)(((RuntimeArray *)L_0)->max_length))))) == ((int32_t)4))) { goto IL_0015; } } { ArgumentException_t132251570 * L_1 = (ArgumentException_t132251570 *)il2cpp_codegen_object_new(ArgumentException_t132251570_il2cpp_TypeInfo_var); ArgumentException__ctor_m1312628991(L_1, (String_t*)_stringLiteral1864861238, /*hidden argument*/NULL); IL2CPP_RAISE_MANAGED_EXCEPTION(L_1); } IL_0015: { ObjectU5BU5D_t2843939325* L_2 = ___args0; NullCheck(L_2); int32_t L_3 = 0; RuntimeObject * L_4 = (L_2)->GetAt(static_cast<il2cpp_array_size_t>(L_3)); (( void (*) (RuntimeObject * /* static, unused */, RuntimeObject *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 2)->methodPointer)(NULL /*static, unused*/, (RuntimeObject *)L_4, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 2)); ObjectU5BU5D_t2843939325* L_5 = ___args0; NullCheck(L_5); int32_t L_6 = 1; RuntimeObject * L_7 = (L_5)->GetAt(static_cast<il2cpp_array_size_t>(L_6)); (( void (*) (RuntimeObject * /* static, unused */, RuntimeObject *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 3)->methodPointer)(NULL /*static, unused*/, (RuntimeObject *)L_7, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 3)); ObjectU5BU5D_t2843939325* L_8 = ___args0; NullCheck(L_8); int32_t L_9 = 2; RuntimeObject * L_10 = (L_8)->GetAt(static_cast<il2cpp_array_size_t>(L_9)); (( void (*) (RuntimeObject * /* static, unused */, RuntimeObject *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 4)->methodPointer)(NULL /*static, unused*/, (RuntimeObject *)L_10, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 4)); ObjectU5BU5D_t2843939325* L_11 = ___args0; NullCheck(L_11); int32_t L_12 = 3; RuntimeObject * L_13 = (L_11)->GetAt(static_cast<il2cpp_array_size_t>(L_12)); (( void (*) (RuntimeObject * /* static, unused */, RuntimeObject *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 5)->methodPointer)(NULL /*static, unused*/, (RuntimeObject *)L_13, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 5)); UnityAction_4_t682480391 * L_14 = (UnityAction_4_t682480391 *)__this->get_Delegate_0(); bool L_15 = BaseInvokableCall_AllowInvoke_m878393606(NULL /*static, unused*/, (Delegate_t1188392813 *)L_14, /*hidden argument*/NULL); if (!L_15) { goto IL_0070; } } { UnityAction_4_t682480391 * L_16 = (UnityAction_4_t682480391 *)__this->get_Delegate_0(); ObjectU5BU5D_t2843939325* L_17 = ___args0; NullCheck(L_17); int32_t L_18 = 0; RuntimeObject * L_19 = (L_17)->GetAt(static_cast<il2cpp_array_size_t>(L_18)); ObjectU5BU5D_t2843939325* L_20 = ___args0; NullCheck(L_20); int32_t L_21 = 1; RuntimeObject * L_22 = (L_20)->GetAt(static_cast<il2cpp_array_size_t>(L_21)); ObjectU5BU5D_t2843939325* L_23 = ___args0; NullCheck(L_23); int32_t L_24 = 2; RuntimeObject * L_25 = (L_23)->GetAt(static_cast<il2cpp_array_size_t>(L_24)); ObjectU5BU5D_t2843939325* L_26 = ___args0; NullCheck(L_26); int32_t L_27 = 3; RuntimeObject * L_28 = (L_26)->GetAt(static_cast<il2cpp_array_size_t>(L_27)); NullCheck((UnityAction_4_t682480391 *)L_16); (( void (*) (UnityAction_4_t682480391 *, RuntimeObject *, RuntimeObject *, RuntimeObject *, RuntimeObject *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 10)->methodPointer)((UnityAction_4_t682480391 *)L_16, (RuntimeObject *)((RuntimeObject *)Castclass((RuntimeObject*)L_19, IL2CPP_RGCTX_DATA(method->declaring_type->rgctx_data, 6))), (RuntimeObject *)((RuntimeObject *)Castclass((RuntimeObject*)L_22, IL2CPP_RGCTX_DATA(method->declaring_type->rgctx_data, 7))), (RuntimeObject *)((RuntimeObject *)Castclass((RuntimeObject*)L_25, IL2CPP_RGCTX_DATA(method->declaring_type->rgctx_data, 8))), (RuntimeObject *)((RuntimeObject *)Castclass((RuntimeObject*)L_28, IL2CPP_RGCTX_DATA(method->declaring_type->rgctx_data, 9))), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 10)); } IL_0070: { return; } } // System.Boolean UnityEngine.Events.InvokableCall`4<System.Object,System.Object,System.Object,System.Object>::Find(System.Object,System.Reflection.MethodInfo) extern "C" bool InvokableCall_4_Find_m2717860129_gshared (InvokableCall_4_t2756980746 * __this, RuntimeObject * ___targetObj0, MethodInfo_t * ___method1, const RuntimeMethod* method) { bool V_0 = false; int32_t G_B3_0 = 0; { UnityAction_4_t682480391 * L_0 = (UnityAction_4_t682480391 *)__this->get_Delegate_0(); NullCheck((Delegate_t1188392813 *)L_0); RuntimeObject * L_1 = Delegate_get_Target_m2361978888((Delegate_t1188392813 *)L_0, /*hidden argument*/NULL); RuntimeObject * L_2 = ___targetObj0; if ((!(((RuntimeObject*)(RuntimeObject *)L_1) == ((RuntimeObject*)(RuntimeObject *)L_2)))) { goto IL_0025; } } { UnityAction_4_t682480391 * L_3 = (UnityAction_4_t682480391 *)__this->get_Delegate_0(); MethodInfo_t * L_4 = NetFxCoreExtensions_GetMethodInfo_m444570327(NULL /*static, unused*/, (Delegate_t1188392813 *)L_3, /*hidden argument*/NULL); MethodInfo_t * L_5 = ___method1; NullCheck((RuntimeObject *)L_4); bool L_6 = VirtFuncInvoker1< bool, RuntimeObject * >::Invoke(0 /* System.Boolean System.Object::Equals(System.Object) */, (RuntimeObject *)L_4, (RuntimeObject *)L_5); G_B3_0 = ((int32_t)(L_6)); goto IL_0026; } IL_0025: { G_B3_0 = 0; } IL_0026: { V_0 = (bool)G_B3_0; goto IL_002c; } IL_002c: { bool L_7 = V_0; return L_7; } } #ifdef __clang__ #pragma clang diagnostic pop #endif #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Void UnityEngine.Events.UnityAction`1<System.Boolean>::.ctor(System.Object,System.IntPtr) extern "C" void UnityAction_1__ctor_m3007623985_gshared (UnityAction_1_t682124106 * __this, RuntimeObject * ___object0, intptr_t ___method1, const RuntimeMethod* method) { __this->set_method_ptr_0(il2cpp_codegen_get_method_pointer((RuntimeMethod*)___method1)); __this->set_method_3(___method1); __this->set_m_target_2(___object0); } // System.Void UnityEngine.Events.UnityAction`1<System.Boolean>::Invoke(T0) extern "C" void UnityAction_1_Invoke_m3535252839_gshared (UnityAction_1_t682124106 * __this, bool ___arg00, const RuntimeMethod* method) { if(__this->get_prev_9() != NULL) { UnityAction_1_Invoke_m3535252839((UnityAction_1_t682124106 *)__this->get_prev_9(), ___arg00, method); } Il2CppMethodPointer targetMethodPointer = __this->get_method_ptr_0(); RuntimeMethod* targetMethod = (RuntimeMethod*)(__this->get_method_3()); RuntimeObject* targetThis = __this->get_m_target_2(); il2cpp_codegen_raise_execution_engine_exception_if_method_is_not_found(targetMethod); bool ___methodIsStatic = MethodIsStatic(targetMethod); if (___methodIsStatic) { if (il2cpp_codegen_method_parameter_count(targetMethod) == 1) { // open typedef void (*FunctionPointerType) (RuntimeObject *, bool, const RuntimeMethod*); ((FunctionPointerType)targetMethodPointer)(NULL, ___arg00, targetMethod); } else { // closed typedef void (*FunctionPointerType) (RuntimeObject *, void*, bool, const RuntimeMethod*); ((FunctionPointerType)targetMethodPointer)(NULL, targetThis, ___arg00, targetMethod); } } else { { // closed typedef void (*FunctionPointerType) (void*, bool, const RuntimeMethod*); ((FunctionPointerType)targetMethodPointer)(targetThis, ___arg00, targetMethod); } } } // System.IAsyncResult UnityEngine.Events.UnityAction`1<System.Boolean>::BeginInvoke(T0,System.AsyncCallback,System.Object) extern "C" RuntimeObject* UnityAction_1_BeginInvoke_m3721186338_gshared (UnityAction_1_t682124106 * __this, bool ___arg00, AsyncCallback_t3962456242 * ___callback1, RuntimeObject * ___object2, const RuntimeMethod* method) { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_method (UnityAction_1_BeginInvoke_m3721186338_MetadataUsageId); s_Il2CppMethodInitialized = true; } void *__d_args[2] = {0}; __d_args[0] = Box(Boolean_t97287965_il2cpp_TypeInfo_var, &___arg00); return (RuntimeObject*)il2cpp_codegen_delegate_begin_invoke((RuntimeDelegate*)__this, __d_args, (RuntimeDelegate*)___callback1, (RuntimeObject*)___object2); } // System.Void UnityEngine.Events.UnityAction`1<System.Boolean>::EndInvoke(System.IAsyncResult) extern "C" void UnityAction_1_EndInvoke_m1872049713_gshared (UnityAction_1_t682124106 * __this, RuntimeObject* ___result0, const RuntimeMethod* method) { il2cpp_codegen_delegate_end_invoke((Il2CppAsyncResult*) ___result0, 0); } #ifdef __clang__ #pragma clang diagnostic pop #endif #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Void UnityEngine.Events.UnityAction`1<System.Int32>::.ctor(System.Object,System.IntPtr) extern "C" void UnityAction_1__ctor_m3569411354_gshared (UnityAction_1_t3535781894 * __this, RuntimeObject * ___object0, intptr_t ___method1, const RuntimeMethod* method) { __this->set_method_ptr_0(il2cpp_codegen_get_method_pointer((RuntimeMethod*)___method1)); __this->set_method_3(___method1); __this->set_m_target_2(___object0); } // System.Void UnityEngine.Events.UnityAction`1<System.Int32>::Invoke(T0) extern "C" void UnityAction_1_Invoke_m3388120194_gshared (UnityAction_1_t3535781894 * __this, int32_t ___arg00, const RuntimeMethod* method) { if(__this->get_prev_9() != NULL) { UnityAction_1_Invoke_m3388120194((UnityAction_1_t3535781894 *)__this->get_prev_9(), ___arg00, method); } Il2CppMethodPointer targetMethodPointer = __this->get_method_ptr_0(); RuntimeMethod* targetMethod = (RuntimeMethod*)(__this->get_method_3()); RuntimeObject* targetThis = __this->get_m_target_2(); il2cpp_codegen_raise_execution_engine_exception_if_method_is_not_found(targetMethod); bool ___methodIsStatic = MethodIsStatic(targetMethod); if (___methodIsStatic) { if (il2cpp_codegen_method_parameter_count(targetMethod) == 1) { // open typedef void (*FunctionPointerType) (RuntimeObject *, int32_t, const RuntimeMethod*); ((FunctionPointerType)targetMethodPointer)(NULL, ___arg00, targetMethod); } else { // closed typedef void (*FunctionPointerType) (RuntimeObject *, void*, int32_t, const RuntimeMethod*); ((FunctionPointerType)targetMethodPointer)(NULL, targetThis, ___arg00, targetMethod); } } else { { // closed typedef void (*FunctionPointerType) (void*, int32_t, const RuntimeMethod*); ((FunctionPointerType)targetMethodPointer)(targetThis, ___arg00, targetMethod); } } } // System.IAsyncResult UnityEngine.Events.UnityAction`1<System.Int32>::BeginInvoke(T0,System.AsyncCallback,System.Object) extern "C" RuntimeObject* UnityAction_1_BeginInvoke_m4018737650_gshared (UnityAction_1_t3535781894 * __this, int32_t ___arg00, AsyncCallback_t3962456242 * ___callback1, RuntimeObject * ___object2, const RuntimeMethod* method) { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_method (UnityAction_1_BeginInvoke_m4018737650_MetadataUsageId); s_Il2CppMethodInitialized = true; } void *__d_args[2] = {0}; __d_args[0] = Box(Int32_t2950945753_il2cpp_TypeInfo_var, &___arg00); return (RuntimeObject*)il2cpp_codegen_delegate_begin_invoke((RuntimeDelegate*)__this, __d_args, (RuntimeDelegate*)___callback1, (RuntimeObject*)___object2); } // System.Void UnityEngine.Events.UnityAction`1<System.Int32>::EndInvoke(System.IAsyncResult) extern "C" void UnityAction_1_EndInvoke_m290165017_gshared (UnityAction_1_t3535781894 * __this, RuntimeObject* ___result0, const RuntimeMethod* method) { il2cpp_codegen_delegate_end_invoke((Il2CppAsyncResult*) ___result0, 0); } #ifdef __clang__ #pragma clang diagnostic pop #endif #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Void UnityEngine.Events.UnityAction`1<System.Object>::.ctor(System.Object,System.IntPtr) extern "C" void UnityAction_1__ctor_m2434317150_gshared (UnityAction_1_t3664942305 * __this, RuntimeObject * ___object0, intptr_t ___method1, const RuntimeMethod* method) { __this->set_method_ptr_0(il2cpp_codegen_get_method_pointer((RuntimeMethod*)___method1)); __this->set_method_3(___method1); __this->set_m_target_2(___object0); } // System.Void UnityEngine.Events.UnityAction`1<System.Object>::Invoke(T0) extern "C" void UnityAction_1_Invoke_m2929687399_gshared (UnityAction_1_t3664942305 * __this, RuntimeObject * ___arg00, const RuntimeMethod* method) { if(__this->get_prev_9() != NULL) { UnityAction_1_Invoke_m2929687399((UnityAction_1_t3664942305 *)__this->get_prev_9(), ___arg00, method); } Il2CppMethodPointer targetMethodPointer = __this->get_method_ptr_0(); RuntimeMethod* targetMethod = (RuntimeMethod*)(__this->get_method_3()); RuntimeObject* targetThis = __this->get_m_target_2(); il2cpp_codegen_raise_execution_engine_exception_if_method_is_not_found(targetMethod); bool ___methodIsStatic = MethodIsStatic(targetMethod); if (___methodIsStatic) { if (il2cpp_codegen_method_parameter_count(targetMethod) == 1) { // open typedef void (*FunctionPointerType) (RuntimeObject *, RuntimeObject *, const RuntimeMethod*); ((FunctionPointerType)targetMethodPointer)(NULL, ___arg00, targetMethod); } else { // closed typedef void (*FunctionPointerType) (RuntimeObject *, void*, RuntimeObject *, const RuntimeMethod*); ((FunctionPointerType)targetMethodPointer)(NULL, targetThis, ___arg00, targetMethod); } } else { if (il2cpp_codegen_method_parameter_count(targetMethod) == 1) { // closed typedef void (*FunctionPointerType) (void*, RuntimeObject *, const RuntimeMethod*); ((FunctionPointerType)targetMethodPointer)(targetThis, ___arg00, targetMethod); } else { // open typedef void (*FunctionPointerType) (RuntimeObject *, const RuntimeMethod*); ((FunctionPointerType)targetMethodPointer)(___arg00, targetMethod); } } } // System.IAsyncResult UnityEngine.Events.UnityAction`1<System.Object>::BeginInvoke(T0,System.AsyncCallback,System.Object) extern "C" RuntimeObject* UnityAction_1_BeginInvoke_m992932529_gshared (UnityAction_1_t3664942305 * __this, RuntimeObject * ___arg00, AsyncCallback_t3962456242 * ___callback1, RuntimeObject * ___object2, const RuntimeMethod* method) { void *__d_args[2] = {0}; __d_args[0] = ___arg00; return (RuntimeObject*)il2cpp_codegen_delegate_begin_invoke((RuntimeDelegate*)__this, __d_args, (RuntimeDelegate*)___callback1, (RuntimeObject*)___object2); } // System.Void UnityEngine.Events.UnityAction`1<System.Object>::EndInvoke(System.IAsyncResult) extern "C" void UnityAction_1_EndInvoke_m4173210162_gshared (UnityAction_1_t3664942305 * __this, RuntimeObject* ___result0, const RuntimeMethod* method) { il2cpp_codegen_delegate_end_invoke((Il2CppAsyncResult*) ___result0, 0); } #ifdef __clang__ #pragma clang diagnostic pop #endif #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Void UnityEngine.Events.UnityAction`1<System.Single>::.ctor(System.Object,System.IntPtr) extern "C" void UnityAction_1__ctor_m336053009_gshared (UnityAction_1_t1982102915 * __this, RuntimeObject * ___object0, intptr_t ___method1, const RuntimeMethod* method) { __this->set_method_ptr_0(il2cpp_codegen_get_method_pointer((RuntimeMethod*)___method1)); __this->set_method_3(___method1); __this->set_m_target_2(___object0); } // System.Void UnityEngine.Events.UnityAction`1<System.Single>::Invoke(T0) extern "C" void UnityAction_1_Invoke_m1035307306_gshared (UnityAction_1_t1982102915 * __this, float ___arg00, const RuntimeMethod* method) { if(__this->get_prev_9() != NULL) { UnityAction_1_Invoke_m1035307306((UnityAction_1_t1982102915 *)__this->get_prev_9(), ___arg00, method); } Il2CppMethodPointer targetMethodPointer = __this->get_method_ptr_0(); RuntimeMethod* targetMethod = (RuntimeMethod*)(__this->get_method_3()); RuntimeObject* targetThis = __this->get_m_target_2(); il2cpp_codegen_raise_execution_engine_exception_if_method_is_not_found(targetMethod); bool ___methodIsStatic = MethodIsStatic(targetMethod); if (___methodIsStatic) { if (il2cpp_codegen_method_parameter_count(targetMethod) == 1) { // open typedef void (*FunctionPointerType) (RuntimeObject *, float, const RuntimeMethod*); ((FunctionPointerType)targetMethodPointer)(NULL, ___arg00, targetMethod); } else { // closed typedef void (*FunctionPointerType) (RuntimeObject *, void*, float, const RuntimeMethod*); ((FunctionPointerType)targetMethodPointer)(NULL, targetThis, ___arg00, targetMethod); } } else { { // closed typedef void (*FunctionPointerType) (void*, float, const RuntimeMethod*); ((FunctionPointerType)targetMethodPointer)(targetThis, ___arg00, targetMethod); } } } // System.IAsyncResult UnityEngine.Events.UnityAction`1<System.Single>::BeginInvoke(T0,System.AsyncCallback,System.Object) extern "C" RuntimeObject* UnityAction_1_BeginInvoke_m2530432941_gshared (UnityAction_1_t1982102915 * __this, float ___arg00, AsyncCallback_t3962456242 * ___callback1, RuntimeObject * ___object2, const RuntimeMethod* method) { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_method (UnityAction_1_BeginInvoke_m2530432941_MetadataUsageId); s_Il2CppMethodInitialized = true; } void *__d_args[2] = {0}; __d_args[0] = Box(Single_t1397266774_il2cpp_TypeInfo_var, &___arg00); return (RuntimeObject*)il2cpp_codegen_delegate_begin_invoke((RuntimeDelegate*)__this, __d_args, (RuntimeDelegate*)___callback1, (RuntimeObject*)___object2); } // System.Void UnityEngine.Events.UnityAction`1<System.Single>::EndInvoke(System.IAsyncResult) extern "C" void UnityAction_1_EndInvoke_m1615818599_gshared (UnityAction_1_t1982102915 * __this, RuntimeObject* ___result0, const RuntimeMethod* method) { il2cpp_codegen_delegate_end_invoke((Il2CppAsyncResult*) ___result0, 0); } #ifdef __clang__ #pragma clang diagnostic pop #endif #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Void UnityEngine.Events.UnityAction`1<UnityEngine.Color>::.ctor(System.Object,System.IntPtr) extern "C" void UnityAction_1__ctor_m2796929162_gshared (UnityAction_1_t3140522465 * __this, RuntimeObject * ___object0, intptr_t ___method1, const RuntimeMethod* method) { __this->set_method_ptr_0(il2cpp_codegen_get_method_pointer((RuntimeMethod*)___method1)); __this->set_method_3(___method1); __this->set_m_target_2(___object0); } // System.Void UnityEngine.Events.UnityAction`1<UnityEngine.Color>::Invoke(T0) extern "C" void UnityAction_1_Invoke_m927447181_gshared (UnityAction_1_t3140522465 * __this, Color_t2555686324 ___arg00, const RuntimeMethod* method) { if(__this->get_prev_9() != NULL) { UnityAction_1_Invoke_m927447181((UnityAction_1_t3140522465 *)__this->get_prev_9(), ___arg00, method); } Il2CppMethodPointer targetMethodPointer = __this->get_method_ptr_0(); RuntimeMethod* targetMethod = (RuntimeMethod*)(__this->get_method_3()); RuntimeObject* targetThis = __this->get_m_target_2(); il2cpp_codegen_raise_execution_engine_exception_if_method_is_not_found(targetMethod); bool ___methodIsStatic = MethodIsStatic(targetMethod); if (___methodIsStatic) { if (il2cpp_codegen_method_parameter_count(targetMethod) == 1) { // open typedef void (*FunctionPointerType) (RuntimeObject *, Color_t2555686324 , const RuntimeMethod*); ((FunctionPointerType)targetMethodPointer)(NULL, ___arg00, targetMethod); } else { // closed typedef void (*FunctionPointerType) (RuntimeObject *, void*, Color_t2555686324 , const RuntimeMethod*); ((FunctionPointerType)targetMethodPointer)(NULL, targetThis, ___arg00, targetMethod); } } else { { // closed typedef void (*FunctionPointerType) (void*, Color_t2555686324 , const RuntimeMethod*); ((FunctionPointerType)targetMethodPointer)(targetThis, ___arg00, targetMethod); } } } // System.IAsyncResult UnityEngine.Events.UnityAction`1<UnityEngine.Color>::BeginInvoke(T0,System.AsyncCallback,System.Object) extern "C" RuntimeObject* UnityAction_1_BeginInvoke_m1166386047_gshared (UnityAction_1_t3140522465 * __this, Color_t2555686324 ___arg00, AsyncCallback_t3962456242 * ___callback1, RuntimeObject * ___object2, const RuntimeMethod* method) { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_method (UnityAction_1_BeginInvoke_m1166386047_MetadataUsageId); s_Il2CppMethodInitialized = true; } void *__d_args[2] = {0}; __d_args[0] = Box(Color_t2555686324_il2cpp_TypeInfo_var, &___arg00); return (RuntimeObject*)il2cpp_codegen_delegate_begin_invoke((RuntimeDelegate*)__this, __d_args, (RuntimeDelegate*)___callback1, (RuntimeObject*)___object2); } // System.Void UnityEngine.Events.UnityAction`1<UnityEngine.Color>::EndInvoke(System.IAsyncResult) extern "C" void UnityAction_1_EndInvoke_m1121812453_gshared (UnityAction_1_t3140522465 * __this, RuntimeObject* ___result0, const RuntimeMethod* method) { il2cpp_codegen_delegate_end_invoke((Il2CppAsyncResult*) ___result0, 0); } #ifdef __clang__ #pragma clang diagnostic pop #endif #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Void UnityEngine.Events.UnityAction`1<UnityEngine.SceneManagement.Scene>::.ctor(System.Object,System.IntPtr) extern "C" void UnityAction_1__ctor_m63817492_gshared (UnityAction_1_t2933211702 * __this, RuntimeObject * ___object0, intptr_t ___method1, const RuntimeMethod* method) { __this->set_method_ptr_0(il2cpp_codegen_get_method_pointer((RuntimeMethod*)___method1)); __this->set_method_3(___method1); __this->set_m_target_2(___object0); } // System.Void UnityEngine.Events.UnityAction`1<UnityEngine.SceneManagement.Scene>::Invoke(T0) extern "C" void UnityAction_1_Invoke_m3649732398_gshared (UnityAction_1_t2933211702 * __this, Scene_t2348375561 ___arg00, const RuntimeMethod* method) { if(__this->get_prev_9() != NULL) { UnityAction_1_Invoke_m3649732398((UnityAction_1_t2933211702 *)__this->get_prev_9(), ___arg00, method); } Il2CppMethodPointer targetMethodPointer = __this->get_method_ptr_0(); RuntimeMethod* targetMethod = (RuntimeMethod*)(__this->get_method_3()); RuntimeObject* targetThis = __this->get_m_target_2(); il2cpp_codegen_raise_execution_engine_exception_if_method_is_not_found(targetMethod); bool ___methodIsStatic = MethodIsStatic(targetMethod); if (___methodIsStatic) { if (il2cpp_codegen_method_parameter_count(targetMethod) == 1) { // open typedef void (*FunctionPointerType) (RuntimeObject *, Scene_t2348375561 , const RuntimeMethod*); ((FunctionPointerType)targetMethodPointer)(NULL, ___arg00, targetMethod); } else { // closed typedef void (*FunctionPointerType) (RuntimeObject *, void*, Scene_t2348375561 , const RuntimeMethod*); ((FunctionPointerType)targetMethodPointer)(NULL, targetThis, ___arg00, targetMethod); } } else { { // closed typedef void (*FunctionPointerType) (void*, Scene_t2348375561 , const RuntimeMethod*); ((FunctionPointerType)targetMethodPointer)(targetThis, ___arg00, targetMethod); } } } // System.IAsyncResult UnityEngine.Events.UnityAction`1<UnityEngine.SceneManagement.Scene>::BeginInvoke(T0,System.AsyncCallback,System.Object) extern "C" RuntimeObject* UnityAction_1_BeginInvoke_m677813163_gshared (UnityAction_1_t2933211702 * __this, Scene_t2348375561 ___arg00, AsyncCallback_t3962456242 * ___callback1, RuntimeObject * ___object2, const RuntimeMethod* method) { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_method (UnityAction_1_BeginInvoke_m677813163_MetadataUsageId); s_Il2CppMethodInitialized = true; } void *__d_args[2] = {0}; __d_args[0] = Box(Scene_t2348375561_il2cpp_TypeInfo_var, &___arg00); return (RuntimeObject*)il2cpp_codegen_delegate_begin_invoke((RuntimeDelegate*)__this, __d_args, (RuntimeDelegate*)___callback1, (RuntimeObject*)___object2); } // System.Void UnityEngine.Events.UnityAction`1<UnityEngine.SceneManagement.Scene>::EndInvoke(System.IAsyncResult) extern "C" void UnityAction_1_EndInvoke_m367631613_gshared (UnityAction_1_t2933211702 * __this, RuntimeObject* ___result0, const RuntimeMethod* method) { il2cpp_codegen_delegate_end_invoke((Il2CppAsyncResult*) ___result0, 0); } #ifdef __clang__ #pragma clang diagnostic pop #endif #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Void UnityEngine.Events.UnityAction`1<UnityEngine.Vector2>::.ctor(System.Object,System.IntPtr) extern "C" void UnityAction_1__ctor_m1735647206_gshared (UnityAction_1_t2741065664 * __this, RuntimeObject * ___object0, intptr_t ___method1, const RuntimeMethod* method) { __this->set_method_ptr_0(il2cpp_codegen_get_method_pointer((RuntimeMethod*)___method1)); __this->set_method_3(___method1); __this->set_m_target_2(___object0); } // System.Void UnityEngine.Events.UnityAction`1<UnityEngine.Vector2>::Invoke(T0) extern "C" void UnityAction_1_Invoke_m610765085_gshared (UnityAction_1_t2741065664 * __this, Vector2_t2156229523 ___arg00, const RuntimeMethod* method) { if(__this->get_prev_9() != NULL) { UnityAction_1_Invoke_m610765085((UnityAction_1_t2741065664 *)__this->get_prev_9(), ___arg00, method); } Il2CppMethodPointer targetMethodPointer = __this->get_method_ptr_0(); RuntimeMethod* targetMethod = (RuntimeMethod*)(__this->get_method_3()); RuntimeObject* targetThis = __this->get_m_target_2(); il2cpp_codegen_raise_execution_engine_exception_if_method_is_not_found(targetMethod); bool ___methodIsStatic = MethodIsStatic(targetMethod); if (___methodIsStatic) { if (il2cpp_codegen_method_parameter_count(targetMethod) == 1) { // open typedef void (*FunctionPointerType) (RuntimeObject *, Vector2_t2156229523 , const RuntimeMethod*); ((FunctionPointerType)targetMethodPointer)(NULL, ___arg00, targetMethod); } else { // closed typedef void (*FunctionPointerType) (RuntimeObject *, void*, Vector2_t2156229523 , const RuntimeMethod*); ((FunctionPointerType)targetMethodPointer)(NULL, targetThis, ___arg00, targetMethod); } } else { { // closed typedef void (*FunctionPointerType) (void*, Vector2_t2156229523 , const RuntimeMethod*); ((FunctionPointerType)targetMethodPointer)(targetThis, ___arg00, targetMethod); } } } // System.IAsyncResult UnityEngine.Events.UnityAction`1<UnityEngine.Vector2>::BeginInvoke(T0,System.AsyncCallback,System.Object) extern "C" RuntimeObject* UnityAction_1_BeginInvoke_m2713840246_gshared (UnityAction_1_t2741065664 * __this, Vector2_t2156229523 ___arg00, AsyncCallback_t3962456242 * ___callback1, RuntimeObject * ___object2, const RuntimeMethod* method) { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_method (UnityAction_1_BeginInvoke_m2713840246_MetadataUsageId); s_Il2CppMethodInitialized = true; } void *__d_args[2] = {0}; __d_args[0] = Box(Vector2_t2156229523_il2cpp_TypeInfo_var, &___arg00); return (RuntimeObject*)il2cpp_codegen_delegate_begin_invoke((RuntimeDelegate*)__this, __d_args, (RuntimeDelegate*)___callback1, (RuntimeObject*)___object2); } // System.Void UnityEngine.Events.UnityAction`1<UnityEngine.Vector2>::EndInvoke(System.IAsyncResult) extern "C" void UnityAction_1_EndInvoke_m542551745_gshared (UnityAction_1_t2741065664 * __this, RuntimeObject* ___result0, const RuntimeMethod* method) { il2cpp_codegen_delegate_end_invoke((Il2CppAsyncResult*) ___result0, 0); } #ifdef __clang__ #pragma clang diagnostic pop #endif #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Void UnityEngine.Events.UnityAction`2<System.Object,System.Object>::.ctor(System.Object,System.IntPtr) extern "C" void UnityAction_2__ctor_m4260941619_gshared (UnityAction_2_t3283971887 * __this, RuntimeObject * ___object0, intptr_t ___method1, const RuntimeMethod* method) { __this->set_method_ptr_0(il2cpp_codegen_get_method_pointer((RuntimeMethod*)___method1)); __this->set_method_3(___method1); __this->set_m_target_2(___object0); } // System.Void UnityEngine.Events.UnityAction`2<System.Object,System.Object>::Invoke(T0,T1) extern "C" void UnityAction_2_Invoke_m2304474703_gshared (UnityAction_2_t3283971887 * __this, RuntimeObject * ___arg00, RuntimeObject * ___arg11, const RuntimeMethod* method) { if(__this->get_prev_9() != NULL) { UnityAction_2_Invoke_m2304474703((UnityAction_2_t3283971887 *)__this->get_prev_9(), ___arg00, ___arg11, method); } Il2CppMethodPointer targetMethodPointer = __this->get_method_ptr_0(); RuntimeMethod* targetMethod = (RuntimeMethod*)(__this->get_method_3()); RuntimeObject* targetThis = __this->get_m_target_2(); il2cpp_codegen_raise_execution_engine_exception_if_method_is_not_found(targetMethod); bool ___methodIsStatic = MethodIsStatic(targetMethod); if (___methodIsStatic) { if (il2cpp_codegen_method_parameter_count(targetMethod) == 2) { // open typedef void (*FunctionPointerType) (RuntimeObject *, RuntimeObject *, RuntimeObject *, const RuntimeMethod*); ((FunctionPointerType)targetMethodPointer)(NULL, ___arg00, ___arg11, targetMethod); } else { // closed typedef void (*FunctionPointerType) (RuntimeObject *, void*, RuntimeObject *, RuntimeObject *, const RuntimeMethod*); ((FunctionPointerType)targetMethodPointer)(NULL, targetThis, ___arg00, ___arg11, targetMethod); } } else { if (il2cpp_codegen_method_parameter_count(targetMethod) == 2) { // closed typedef void (*FunctionPointerType) (void*, RuntimeObject *, RuntimeObject *, const RuntimeMethod*); ((FunctionPointerType)targetMethodPointer)(targetThis, ___arg00, ___arg11, targetMethod); } else { // open typedef void (*FunctionPointerType) (RuntimeObject *, RuntimeObject *, const RuntimeMethod*); ((FunctionPointerType)targetMethodPointer)(___arg00, ___arg11, targetMethod); } } } // System.IAsyncResult UnityEngine.Events.UnityAction`2<System.Object,System.Object>::BeginInvoke(T0,T1,System.AsyncCallback,System.Object) extern "C" RuntimeObject* UnityAction_2_BeginInvoke_m1322091188_gshared (UnityAction_2_t3283971887 * __this, RuntimeObject * ___arg00, RuntimeObject * ___arg11, AsyncCallback_t3962456242 * ___callback2, RuntimeObject * ___object3, const RuntimeMethod* method) { void *__d_args[3] = {0}; __d_args[0] = ___arg00; __d_args[1] = ___arg11; return (RuntimeObject*)il2cpp_codegen_delegate_begin_invoke((RuntimeDelegate*)__this, __d_args, (RuntimeDelegate*)___callback2, (RuntimeObject*)___object3); } // System.Void UnityEngine.Events.UnityAction`2<System.Object,System.Object>::EndInvoke(System.IAsyncResult) extern "C" void UnityAction_2_EndInvoke_m1292612021_gshared (UnityAction_2_t3283971887 * __this, RuntimeObject* ___result0, const RuntimeMethod* method) { il2cpp_codegen_delegate_end_invoke((Il2CppAsyncResult*) ___result0, 0); } #ifdef __clang__ #pragma clang diagnostic pop #endif #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Void UnityEngine.Events.UnityAction`2<UnityEngine.SceneManagement.Scene,UnityEngine.SceneManagement.LoadSceneMode>::.ctor(System.Object,System.IntPtr) extern "C" void UnityAction_2__ctor_m3108471759_gshared (UnityAction_2_t2165061829 * __this, RuntimeObject * ___object0, intptr_t ___method1, const RuntimeMethod* method) { __this->set_method_ptr_0(il2cpp_codegen_get_method_pointer((RuntimeMethod*)___method1)); __this->set_method_3(___method1); __this->set_m_target_2(___object0); } // System.Void UnityEngine.Events.UnityAction`2<UnityEngine.SceneManagement.Scene,UnityEngine.SceneManagement.LoadSceneMode>::Invoke(T0,T1) extern "C" void UnityAction_2_Invoke_m1541286357_gshared (UnityAction_2_t2165061829 * __this, Scene_t2348375561 ___arg00, int32_t ___arg11, const RuntimeMethod* method) { if(__this->get_prev_9() != NULL) { UnityAction_2_Invoke_m1541286357((UnityAction_2_t2165061829 *)__this->get_prev_9(), ___arg00, ___arg11, method); } Il2CppMethodPointer targetMethodPointer = __this->get_method_ptr_0(); RuntimeMethod* targetMethod = (RuntimeMethod*)(__this->get_method_3()); RuntimeObject* targetThis = __this->get_m_target_2(); il2cpp_codegen_raise_execution_engine_exception_if_method_is_not_found(targetMethod); bool ___methodIsStatic = MethodIsStatic(targetMethod); if (___methodIsStatic) { if (il2cpp_codegen_method_parameter_count(targetMethod) == 2) { // open typedef void (*FunctionPointerType) (RuntimeObject *, Scene_t2348375561 , int32_t, const RuntimeMethod*); ((FunctionPointerType)targetMethodPointer)(NULL, ___arg00, ___arg11, targetMethod); } else { // closed typedef void (*FunctionPointerType) (RuntimeObject *, void*, Scene_t2348375561 , int32_t, const RuntimeMethod*); ((FunctionPointerType)targetMethodPointer)(NULL, targetThis, ___arg00, ___arg11, targetMethod); } } else { { // closed typedef void (*FunctionPointerType) (void*, Scene_t2348375561 , int32_t, const RuntimeMethod*); ((FunctionPointerType)targetMethodPointer)(targetThis, ___arg00, ___arg11, targetMethod); } } } // System.IAsyncResult UnityEngine.Events.UnityAction`2<UnityEngine.SceneManagement.Scene,UnityEngine.SceneManagement.LoadSceneMode>::BeginInvoke(T0,T1,System.AsyncCallback,System.Object) extern "C" RuntimeObject* UnityAction_2_BeginInvoke_m1769266175_gshared (UnityAction_2_t2165061829 * __this, Scene_t2348375561 ___arg00, int32_t ___arg11, AsyncCallback_t3962456242 * ___callback2, RuntimeObject * ___object3, const RuntimeMethod* method) { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_method (UnityAction_2_BeginInvoke_m1769266175_MetadataUsageId); s_Il2CppMethodInitialized = true; } void *__d_args[3] = {0}; __d_args[0] = Box(Scene_t2348375561_il2cpp_TypeInfo_var, &___arg00); __d_args[1] = Box(LoadSceneMode_t3251202195_il2cpp_TypeInfo_var, &___arg11); return (RuntimeObject*)il2cpp_codegen_delegate_begin_invoke((RuntimeDelegate*)__this, __d_args, (RuntimeDelegate*)___callback2, (RuntimeObject*)___object3); } // System.Void UnityEngine.Events.UnityAction`2<UnityEngine.SceneManagement.Scene,UnityEngine.SceneManagement.LoadSceneMode>::EndInvoke(System.IAsyncResult) extern "C" void UnityAction_2_EndInvoke_m2179051926_gshared (UnityAction_2_t2165061829 * __this, RuntimeObject* ___result0, const RuntimeMethod* method) { il2cpp_codegen_delegate_end_invoke((Il2CppAsyncResult*) ___result0, 0); } #ifdef __clang__ #pragma clang diagnostic pop #endif #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Void UnityEngine.Events.UnityAction`2<UnityEngine.SceneManagement.Scene,UnityEngine.SceneManagement.Scene>::.ctor(System.Object,System.IntPtr) extern "C" void UnityAction_2__ctor_m2941677221_gshared (UnityAction_2_t1262235195 * __this, RuntimeObject * ___object0, intptr_t ___method1, const RuntimeMethod* method) { __this->set_method_ptr_0(il2cpp_codegen_get_method_pointer((RuntimeMethod*)___method1)); __this->set_method_3(___method1); __this->set_m_target_2(___object0); } // System.Void UnityEngine.Events.UnityAction`2<UnityEngine.SceneManagement.Scene,UnityEngine.SceneManagement.Scene>::Invoke(T0,T1) extern "C" void UnityAction_2_Invoke_m944492567_gshared (UnityAction_2_t1262235195 * __this, Scene_t2348375561 ___arg00, Scene_t2348375561 ___arg11, const RuntimeMethod* method) { if(__this->get_prev_9() != NULL) { UnityAction_2_Invoke_m944492567((UnityAction_2_t1262235195 *)__this->get_prev_9(), ___arg00, ___arg11, method); } Il2CppMethodPointer targetMethodPointer = __this->get_method_ptr_0(); RuntimeMethod* targetMethod = (RuntimeMethod*)(__this->get_method_3()); RuntimeObject* targetThis = __this->get_m_target_2(); il2cpp_codegen_raise_execution_engine_exception_if_method_is_not_found(targetMethod); bool ___methodIsStatic = MethodIsStatic(targetMethod); if (___methodIsStatic) { if (il2cpp_codegen_method_parameter_count(targetMethod) == 2) { // open typedef void (*FunctionPointerType) (RuntimeObject *, Scene_t2348375561 , Scene_t2348375561 , const RuntimeMethod*); ((FunctionPointerType)targetMethodPointer)(NULL, ___arg00, ___arg11, targetMethod); } else { // closed typedef void (*FunctionPointerType) (RuntimeObject *, void*, Scene_t2348375561 , Scene_t2348375561 , const RuntimeMethod*); ((FunctionPointerType)targetMethodPointer)(NULL, targetThis, ___arg00, ___arg11, targetMethod); } } else { { // closed typedef void (*FunctionPointerType) (void*, Scene_t2348375561 , Scene_t2348375561 , const RuntimeMethod*); ((FunctionPointerType)targetMethodPointer)(targetThis, ___arg00, ___arg11, targetMethod); } } } // System.IAsyncResult UnityEngine.Events.UnityAction`2<UnityEngine.SceneManagement.Scene,UnityEngine.SceneManagement.Scene>::BeginInvoke(T0,T1,System.AsyncCallback,System.Object) extern "C" RuntimeObject* UnityAction_2_BeginInvoke_m1733258791_gshared (UnityAction_2_t1262235195 * __this, Scene_t2348375561 ___arg00, Scene_t2348375561 ___arg11, AsyncCallback_t3962456242 * ___callback2, RuntimeObject * ___object3, const RuntimeMethod* method) { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_method (UnityAction_2_BeginInvoke_m1733258791_MetadataUsageId); s_Il2CppMethodInitialized = true; } void *__d_args[3] = {0}; __d_args[0] = Box(Scene_t2348375561_il2cpp_TypeInfo_var, &___arg00); __d_args[1] = Box(Scene_t2348375561_il2cpp_TypeInfo_var, &___arg11); return (RuntimeObject*)il2cpp_codegen_delegate_begin_invoke((RuntimeDelegate*)__this, __d_args, (RuntimeDelegate*)___callback2, (RuntimeObject*)___object3); } // System.Void UnityEngine.Events.UnityAction`2<UnityEngine.SceneManagement.Scene,UnityEngine.SceneManagement.Scene>::EndInvoke(System.IAsyncResult) extern "C" void UnityAction_2_EndInvoke_m2385586247_gshared (UnityAction_2_t1262235195 * __this, RuntimeObject* ___result0, const RuntimeMethod* method) { il2cpp_codegen_delegate_end_invoke((Il2CppAsyncResult*) ___result0, 0); } #ifdef __clang__ #pragma clang diagnostic pop #endif #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Void UnityEngine.Events.UnityAction`3<System.Object,System.Object,System.Object>::.ctor(System.Object,System.IntPtr) extern "C" void UnityAction_3__ctor_m2228523061_gshared (UnityAction_3_t1557236713 * __this, RuntimeObject * ___object0, intptr_t ___method1, const RuntimeMethod* method) { __this->set_method_ptr_0(il2cpp_codegen_get_method_pointer((RuntimeMethod*)___method1)); __this->set_method_3(___method1); __this->set_m_target_2(___object0); } // System.Void UnityEngine.Events.UnityAction`3<System.Object,System.Object,System.Object>::Invoke(T0,T1,T2) extern "C" void UnityAction_3_Invoke_m1904347475_gshared (UnityAction_3_t1557236713 * __this, RuntimeObject * ___arg00, RuntimeObject * ___arg11, RuntimeObject * ___arg22, const RuntimeMethod* method) { if(__this->get_prev_9() != NULL) { UnityAction_3_Invoke_m1904347475((UnityAction_3_t1557236713 *)__this->get_prev_9(), ___arg00, ___arg11, ___arg22, method); } Il2CppMethodPointer targetMethodPointer = __this->get_method_ptr_0(); RuntimeMethod* targetMethod = (RuntimeMethod*)(__this->get_method_3()); RuntimeObject* targetThis = __this->get_m_target_2(); il2cpp_codegen_raise_execution_engine_exception_if_method_is_not_found(targetMethod); bool ___methodIsStatic = MethodIsStatic(targetMethod); if (___methodIsStatic) { if (il2cpp_codegen_method_parameter_count(targetMethod) == 3) { // open typedef void (*FunctionPointerType) (RuntimeObject *, RuntimeObject *, RuntimeObject *, RuntimeObject *, const RuntimeMethod*); ((FunctionPointerType)targetMethodPointer)(NULL, ___arg00, ___arg11, ___arg22, targetMethod); } else { // closed typedef void (*FunctionPointerType) (RuntimeObject *, void*, RuntimeObject *, RuntimeObject *, RuntimeObject *, const RuntimeMethod*); ((FunctionPointerType)targetMethodPointer)(NULL, targetThis, ___arg00, ___arg11, ___arg22, targetMethod); } } else { if (il2cpp_codegen_method_parameter_count(targetMethod) == 3) { // closed typedef void (*FunctionPointerType) (void*, RuntimeObject *, RuntimeObject *, RuntimeObject *, const RuntimeMethod*); ((FunctionPointerType)targetMethodPointer)(targetThis, ___arg00, ___arg11, ___arg22, targetMethod); } else { // open typedef void (*FunctionPointerType) (RuntimeObject *, RuntimeObject *, RuntimeObject *, const RuntimeMethod*); ((FunctionPointerType)targetMethodPointer)(___arg00, ___arg11, ___arg22, targetMethod); } } } // System.IAsyncResult UnityEngine.Events.UnityAction`3<System.Object,System.Object,System.Object>::BeginInvoke(T0,T1,T2,System.AsyncCallback,System.Object) extern "C" RuntimeObject* UnityAction_3_BeginInvoke_m1515014307_gshared (UnityAction_3_t1557236713 * __this, RuntimeObject * ___arg00, RuntimeObject * ___arg11, RuntimeObject * ___arg22, AsyncCallback_t3962456242 * ___callback3, RuntimeObject * ___object4, const RuntimeMethod* method) { void *__d_args[4] = {0}; __d_args[0] = ___arg00; __d_args[1] = ___arg11; __d_args[2] = ___arg22; return (RuntimeObject*)il2cpp_codegen_delegate_begin_invoke((RuntimeDelegate*)__this, __d_args, (RuntimeDelegate*)___callback3, (RuntimeObject*)___object4); } // System.Void UnityEngine.Events.UnityAction`3<System.Object,System.Object,System.Object>::EndInvoke(System.IAsyncResult) extern "C" void UnityAction_3_EndInvoke_m1256921407_gshared (UnityAction_3_t1557236713 * __this, RuntimeObject* ___result0, const RuntimeMethod* method) { il2cpp_codegen_delegate_end_invoke((Il2CppAsyncResult*) ___result0, 0); } #ifdef __clang__ #pragma clang diagnostic pop #endif #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Void UnityEngine.Events.UnityAction`4<System.Object,System.Object,System.Object,System.Object>::.ctor(System.Object,System.IntPtr) extern "C" void UnityAction_4__ctor_m4196105227_gshared (UnityAction_4_t682480391 * __this, RuntimeObject * ___object0, intptr_t ___method1, const RuntimeMethod* method) { __this->set_method_ptr_0(il2cpp_codegen_get_method_pointer((RuntimeMethod*)___method1)); __this->set_method_3(___method1); __this->set_m_target_2(___object0); } // System.Void UnityEngine.Events.UnityAction`4<System.Object,System.Object,System.Object,System.Object>::Invoke(T0,T1,T2,T3) extern "C" void UnityAction_4_Invoke_m218720656_gshared (UnityAction_4_t682480391 * __this, RuntimeObject * ___arg00, RuntimeObject * ___arg11, RuntimeObject * ___arg22, RuntimeObject * ___arg33, const RuntimeMethod* method) { if(__this->get_prev_9() != NULL) { UnityAction_4_Invoke_m218720656((UnityAction_4_t682480391 *)__this->get_prev_9(), ___arg00, ___arg11, ___arg22, ___arg33, method); } Il2CppMethodPointer targetMethodPointer = __this->get_method_ptr_0(); RuntimeMethod* targetMethod = (RuntimeMethod*)(__this->get_method_3()); RuntimeObject* targetThis = __this->get_m_target_2(); il2cpp_codegen_raise_execution_engine_exception_if_method_is_not_found(targetMethod); bool ___methodIsStatic = MethodIsStatic(targetMethod); if (___methodIsStatic) { if (il2cpp_codegen_method_parameter_count(targetMethod) == 4) { // open typedef void (*FunctionPointerType) (RuntimeObject *, RuntimeObject *, RuntimeObject *, RuntimeObject *, RuntimeObject *, const RuntimeMethod*); ((FunctionPointerType)targetMethodPointer)(NULL, ___arg00, ___arg11, ___arg22, ___arg33, targetMethod); } else { // closed typedef void (*FunctionPointerType) (RuntimeObject *, void*, RuntimeObject *, RuntimeObject *, RuntimeObject *, RuntimeObject *, const RuntimeMethod*); ((FunctionPointerType)targetMethodPointer)(NULL, targetThis, ___arg00, ___arg11, ___arg22, ___arg33, targetMethod); } } else { if (il2cpp_codegen_method_parameter_count(targetMethod) == 4) { // closed typedef void (*FunctionPointerType) (void*, RuntimeObject *, RuntimeObject *, RuntimeObject *, RuntimeObject *, const RuntimeMethod*); ((FunctionPointerType)targetMethodPointer)(targetThis, ___arg00, ___arg11, ___arg22, ___arg33, targetMethod); } else { // open typedef void (*FunctionPointerType) (RuntimeObject *, RuntimeObject *, RuntimeObject *, RuntimeObject *, const RuntimeMethod*); ((FunctionPointerType)targetMethodPointer)(___arg00, ___arg11, ___arg22, ___arg33, targetMethod); } } } // System.IAsyncResult UnityEngine.Events.UnityAction`4<System.Object,System.Object,System.Object,System.Object>::BeginInvoke(T0,T1,T2,T3,System.AsyncCallback,System.Object) extern "C" RuntimeObject* UnityAction_4_BeginInvoke_m2207320832_gshared (UnityAction_4_t682480391 * __this, RuntimeObject * ___arg00, RuntimeObject * ___arg11, RuntimeObject * ___arg22, RuntimeObject * ___arg33, AsyncCallback_t3962456242 * ___callback4, RuntimeObject * ___object5, const RuntimeMethod* method) { void *__d_args[5] = {0}; __d_args[0] = ___arg00; __d_args[1] = ___arg11; __d_args[2] = ___arg22; __d_args[3] = ___arg33; return (RuntimeObject*)il2cpp_codegen_delegate_begin_invoke((RuntimeDelegate*)__this, __d_args, (RuntimeDelegate*)___callback4, (RuntimeObject*)___object5); } // System.Void UnityEngine.Events.UnityAction`4<System.Object,System.Object,System.Object,System.Object>::EndInvoke(System.IAsyncResult) extern "C" void UnityAction_4_EndInvoke_m1236619780_gshared (UnityAction_4_t682480391 * __this, RuntimeObject* ___result0, const RuntimeMethod* method) { il2cpp_codegen_delegate_end_invoke((Il2CppAsyncResult*) ___result0, 0); } #ifdef __clang__ #pragma clang diagnostic pop #endif #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Void UnityEngine.Events.UnityEvent`1<System.Boolean>::.ctor() extern "C" void UnityEvent_1__ctor_m3777630589_gshared (UnityEvent_1_t978947469 * __this, const RuntimeMethod* method) { { __this->set_m_InvokeArray_4((ObjectU5BU5D_t2843939325*)NULL); NullCheck((UnityEventBase_t3960448221 *)__this); UnityEventBase__ctor_m1851535676((UnityEventBase_t3960448221 *)__this, /*hidden argument*/NULL); return; } } // System.Void UnityEngine.Events.UnityEvent`1<System.Boolean>::AddListener(UnityEngine.Events.UnityAction`1<T0>) extern "C" void UnityEvent_1_AddListener_m2847988282_gshared (UnityEvent_1_t978947469 * __this, UnityAction_1_t682124106 * ___call0, const RuntimeMethod* method) { { UnityAction_1_t682124106 * L_0 = ___call0; BaseInvokableCall_t2703961024 * L_1 = (( BaseInvokableCall_t2703961024 * (*) (RuntimeObject * /* static, unused */, UnityAction_1_t682124106 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 0)->methodPointer)(NULL /*static, unused*/, (UnityAction_1_t682124106 *)L_0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 0)); NullCheck((UnityEventBase_t3960448221 *)__this); UnityEventBase_AddCall_m3539965410((UnityEventBase_t3960448221 *)__this, (BaseInvokableCall_t2703961024 *)L_1, /*hidden argument*/NULL); return; } } // System.Void UnityEngine.Events.UnityEvent`1<System.Boolean>::RemoveListener(UnityEngine.Events.UnityAction`1<T0>) extern "C" void UnityEvent_1_RemoveListener_m3490899137_gshared (UnityEvent_1_t978947469 * __this, UnityAction_1_t682124106 * ___call0, const RuntimeMethod* method) { { UnityAction_1_t682124106 * L_0 = ___call0; NullCheck((Delegate_t1188392813 *)L_0); RuntimeObject * L_1 = Delegate_get_Target_m2361978888((Delegate_t1188392813 *)L_0, /*hidden argument*/NULL); UnityAction_1_t682124106 * L_2 = ___call0; MethodInfo_t * L_3 = NetFxCoreExtensions_GetMethodInfo_m444570327(NULL /*static, unused*/, (Delegate_t1188392813 *)L_2, /*hidden argument*/NULL); NullCheck((UnityEventBase_t3960448221 *)__this); UnityEventBase_RemoveListener_m3326364145((UnityEventBase_t3960448221 *)__this, (RuntimeObject *)L_1, (MethodInfo_t *)L_3, /*hidden argument*/NULL); return; } } // System.Reflection.MethodInfo UnityEngine.Events.UnityEvent`1<System.Boolean>::FindMethod_Impl(System.String,System.Object) extern "C" MethodInfo_t * UnityEvent_1_FindMethod_Impl_m2511430237_gshared (UnityEvent_1_t978947469 * __this, String_t* ___name0, RuntimeObject * ___targetObj1, const RuntimeMethod* method) { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_method (UnityEvent_1_FindMethod_Impl_m2511430237_MetadataUsageId); s_Il2CppMethodInitialized = true; } MethodInfo_t * V_0 = NULL; { RuntimeObject * L_0 = ___targetObj1; String_t* L_1 = ___name0; TypeU5BU5D_t3940880105* L_2 = (TypeU5BU5D_t3940880105*)((TypeU5BU5D_t3940880105*)SZArrayNew(TypeU5BU5D_t3940880105_il2cpp_TypeInfo_var, (uint32_t)1)); RuntimeTypeHandle_t3027515415 L_3 = { reinterpret_cast<intptr_t> (IL2CPP_RGCTX_TYPE(method->declaring_type->rgctx_data, 2)) }; IL2CPP_RUNTIME_CLASS_INIT(Type_t_il2cpp_TypeInfo_var); Type_t * L_4 = Type_GetTypeFromHandle_m1620074514(NULL /*static, unused*/, (RuntimeTypeHandle_t3027515415 )L_3, /*hidden argument*/NULL); NullCheck(L_2); ArrayElementTypeCheck (L_2, L_4); (L_2)->SetAt(static_cast<il2cpp_array_size_t>(0), (Type_t *)L_4); MethodInfo_t * L_5 = UnityEventBase_GetValidMethodInfo_m3989987635(NULL /*static, unused*/, (RuntimeObject *)L_0, (String_t*)L_1, (TypeU5BU5D_t3940880105*)L_2, /*hidden argument*/NULL); V_0 = (MethodInfo_t *)L_5; goto IL_0021; } IL_0021: { MethodInfo_t * L_6 = V_0; return L_6; } } // UnityEngine.Events.BaseInvokableCall UnityEngine.Events.UnityEvent`1<System.Boolean>::GetDelegate(System.Object,System.Reflection.MethodInfo) extern "C" BaseInvokableCall_t2703961024 * UnityEvent_1_GetDelegate_m1518482089_gshared (UnityEvent_1_t978947469 * __this, RuntimeObject * ___target0, MethodInfo_t * ___theFunction1, const RuntimeMethod* method) { BaseInvokableCall_t2703961024 * V_0 = NULL; { RuntimeObject * L_0 = ___target0; MethodInfo_t * L_1 = ___theFunction1; InvokableCall_1_t214452203 * L_2 = (InvokableCall_1_t214452203 *)il2cpp_codegen_object_new(IL2CPP_RGCTX_DATA(method->declaring_type->rgctx_data, 3)); (( void (*) (InvokableCall_1_t214452203 *, RuntimeObject *, MethodInfo_t *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 4)->methodPointer)(L_2, (RuntimeObject *)L_0, (MethodInfo_t *)L_1, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 4)); V_0 = (BaseInvokableCall_t2703961024 *)L_2; goto IL_000e; } IL_000e: { BaseInvokableCall_t2703961024 * L_3 = V_0; return L_3; } } // UnityEngine.Events.BaseInvokableCall UnityEngine.Events.UnityEvent`1<System.Boolean>::GetDelegate(UnityEngine.Events.UnityAction`1<T0>) extern "C" BaseInvokableCall_t2703961024 * UnityEvent_1_GetDelegate_m1212521776_gshared (RuntimeObject * __this /* static, unused */, UnityAction_1_t682124106 * ___action0, const RuntimeMethod* method) { BaseInvokableCall_t2703961024 * V_0 = NULL; { UnityAction_1_t682124106 * L_0 = ___action0; InvokableCall_1_t214452203 * L_1 = (InvokableCall_1_t214452203 *)il2cpp_codegen_object_new(IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 3)); (( void (*) (InvokableCall_1_t214452203 *, UnityAction_1_t682124106 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 5)->methodPointer)(L_1, (UnityAction_1_t682124106 *)L_0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 5)); V_0 = (BaseInvokableCall_t2703961024 *)L_1; goto IL_000d; } IL_000d: { BaseInvokableCall_t2703961024 * L_2 = V_0; return L_2; } } // System.Void UnityEngine.Events.UnityEvent`1<System.Boolean>::Invoke(T0) extern "C" void UnityEvent_1_Invoke_m933614109_gshared (UnityEvent_1_t978947469 * __this, bool ___arg00, const RuntimeMethod* method) { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_method (UnityEvent_1_Invoke_m933614109_MetadataUsageId); s_Il2CppMethodInitialized = true; } List_1_t4176035766 * V_0 = NULL; int32_t V_1 = 0; InvokableCall_1_t214452203 * V_2 = NULL; BaseInvokableCall_t2703961024 * V_3 = NULL; { NullCheck((UnityEventBase_t3960448221 *)__this); List_1_t4176035766 * L_0 = UnityEventBase_PrepareInvoke_m1785382128((UnityEventBase_t3960448221 *)__this, /*hidden argument*/NULL); V_0 = (List_1_t4176035766 *)L_0; V_1 = (int32_t)0; goto IL_006f; } IL_000f: { List_1_t4176035766 * L_1 = V_0; int32_t L_2 = V_1; NullCheck((List_1_t4176035766 *)L_1); BaseInvokableCall_t2703961024 * L_3 = List_1_get_Item_m4156046467((List_1_t4176035766 *)L_1, (int32_t)L_2, /*hidden argument*/List_1_get_Item_m4156046467_RuntimeMethod_var); V_2 = (InvokableCall_1_t214452203 *)((InvokableCall_1_t214452203 *)IsInst((RuntimeObject*)L_3, IL2CPP_RGCTX_DATA(method->declaring_type->rgctx_data, 3))); InvokableCall_1_t214452203 * L_4 = V_2; if (!L_4) { goto IL_002f; } } { InvokableCall_1_t214452203 * L_5 = V_2; bool L_6 = ___arg00; NullCheck((InvokableCall_1_t214452203 *)L_5); VirtActionInvoker1< bool >::Invoke(6 /* System.Void UnityEngine.Events.InvokableCall`1<System.Boolean>::Invoke(T1) */, (InvokableCall_1_t214452203 *)L_5, (bool)L_6); goto IL_006a; } IL_002f: { List_1_t4176035766 * L_7 = V_0; int32_t L_8 = V_1; NullCheck((List_1_t4176035766 *)L_7); BaseInvokableCall_t2703961024 * L_9 = List_1_get_Item_m4156046467((List_1_t4176035766 *)L_7, (int32_t)L_8, /*hidden argument*/List_1_get_Item_m4156046467_RuntimeMethod_var); V_3 = (BaseInvokableCall_t2703961024 *)L_9; ObjectU5BU5D_t2843939325* L_10 = (ObjectU5BU5D_t2843939325*)__this->get_m_InvokeArray_4(); if (L_10) { goto IL_004f; } } { __this->set_m_InvokeArray_4(((ObjectU5BU5D_t2843939325*)SZArrayNew(ObjectU5BU5D_t2843939325_il2cpp_TypeInfo_var, (uint32_t)1))); } IL_004f: { ObjectU5BU5D_t2843939325* L_11 = (ObjectU5BU5D_t2843939325*)__this->get_m_InvokeArray_4(); bool L_12 = ___arg00; bool L_13 = L_12; RuntimeObject * L_14 = Box(IL2CPP_RGCTX_DATA(method->declaring_type->rgctx_data, 7), &L_13); NullCheck(L_11); ArrayElementTypeCheck (L_11, L_14); (L_11)->SetAt(static_cast<il2cpp_array_size_t>(0), (RuntimeObject *)L_14); BaseInvokableCall_t2703961024 * L_15 = V_3; ObjectU5BU5D_t2843939325* L_16 = (ObjectU5BU5D_t2843939325*)__this->get_m_InvokeArray_4(); NullCheck((BaseInvokableCall_t2703961024 *)L_15); VirtActionInvoker1< ObjectU5BU5D_t2843939325* >::Invoke(4 /* System.Void UnityEngine.Events.BaseInvokableCall::Invoke(System.Object[]) */, (BaseInvokableCall_t2703961024 *)L_15, (ObjectU5BU5D_t2843939325*)L_16); } IL_006a: { int32_t L_17 = V_1; V_1 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_17, (int32_t)1)); } IL_006f: { int32_t L_18 = V_1; List_1_t4176035766 * L_19 = V_0; NullCheck((List_1_t4176035766 *)L_19); int32_t L_20 = List_1_get_Count_m1245201994((List_1_t4176035766 *)L_19, /*hidden argument*/List_1_get_Count_m1245201994_RuntimeMethod_var); if ((((int32_t)L_18) < ((int32_t)L_20))) { goto IL_000f; } } { return; } } #ifdef __clang__ #pragma clang diagnostic pop #endif #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Void UnityEngine.Events.UnityEvent`1<System.Int32>::.ctor() extern "C" void UnityEvent_1__ctor_m3816765192_gshared (UnityEvent_1_t3832605257 * __this, const RuntimeMethod* method) { { __this->set_m_InvokeArray_4((ObjectU5BU5D_t2843939325*)NULL); NullCheck((UnityEventBase_t3960448221 *)__this); UnityEventBase__ctor_m1851535676((UnityEventBase_t3960448221 *)__this, /*hidden argument*/NULL); return; } } // System.Void UnityEngine.Events.UnityEvent`1<System.Int32>::AddListener(UnityEngine.Events.UnityAction`1<T0>) extern "C" void UnityEvent_1_AddListener_m3158408092_gshared (UnityEvent_1_t3832605257 * __this, UnityAction_1_t3535781894 * ___call0, const RuntimeMethod* method) { { UnityAction_1_t3535781894 * L_0 = ___call0; BaseInvokableCall_t2703961024 * L_1 = (( BaseInvokableCall_t2703961024 * (*) (RuntimeObject * /* static, unused */, UnityAction_1_t3535781894 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 0)->methodPointer)(NULL /*static, unused*/, (UnityAction_1_t3535781894 *)L_0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 0)); NullCheck((UnityEventBase_t3960448221 *)__this); UnityEventBase_AddCall_m3539965410((UnityEventBase_t3960448221 *)__this, (BaseInvokableCall_t2703961024 *)L_1, /*hidden argument*/NULL); return; } } // System.Void UnityEngine.Events.UnityEvent`1<System.Int32>::RemoveListener(UnityEngine.Events.UnityAction`1<T0>) extern "C" void UnityEvent_1_RemoveListener_m1953458448_gshared (UnityEvent_1_t3832605257 * __this, UnityAction_1_t3535781894 * ___call0, const RuntimeMethod* method) { { UnityAction_1_t3535781894 * L_0 = ___call0; NullCheck((Delegate_t1188392813 *)L_0); RuntimeObject * L_1 = Delegate_get_Target_m2361978888((Delegate_t1188392813 *)L_0, /*hidden argument*/NULL); UnityAction_1_t3535781894 * L_2 = ___call0; MethodInfo_t * L_3 = NetFxCoreExtensions_GetMethodInfo_m444570327(NULL /*static, unused*/, (Delegate_t1188392813 *)L_2, /*hidden argument*/NULL); NullCheck((UnityEventBase_t3960448221 *)__this); UnityEventBase_RemoveListener_m3326364145((UnityEventBase_t3960448221 *)__this, (RuntimeObject *)L_1, (MethodInfo_t *)L_3, /*hidden argument*/NULL); return; } } // System.Reflection.MethodInfo UnityEngine.Events.UnityEvent`1<System.Int32>::FindMethod_Impl(System.String,System.Object) extern "C" MethodInfo_t * UnityEvent_1_FindMethod_Impl_m1397247356_gshared (UnityEvent_1_t3832605257 * __this, String_t* ___name0, RuntimeObject * ___targetObj1, const RuntimeMethod* method) { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_method (UnityEvent_1_FindMethod_Impl_m1397247356_MetadataUsageId); s_Il2CppMethodInitialized = true; } MethodInfo_t * V_0 = NULL; { RuntimeObject * L_0 = ___targetObj1; String_t* L_1 = ___name0; TypeU5BU5D_t3940880105* L_2 = (TypeU5BU5D_t3940880105*)((TypeU5BU5D_t3940880105*)SZArrayNew(TypeU5BU5D_t3940880105_il2cpp_TypeInfo_var, (uint32_t)1)); RuntimeTypeHandle_t3027515415 L_3 = { reinterpret_cast<intptr_t> (IL2CPP_RGCTX_TYPE(method->declaring_type->rgctx_data, 2)) }; IL2CPP_RUNTIME_CLASS_INIT(Type_t_il2cpp_TypeInfo_var); Type_t * L_4 = Type_GetTypeFromHandle_m1620074514(NULL /*static, unused*/, (RuntimeTypeHandle_t3027515415 )L_3, /*hidden argument*/NULL); NullCheck(L_2); ArrayElementTypeCheck (L_2, L_4); (L_2)->SetAt(static_cast<il2cpp_array_size_t>(0), (Type_t *)L_4); MethodInfo_t * L_5 = UnityEventBase_GetValidMethodInfo_m3989987635(NULL /*static, unused*/, (RuntimeObject *)L_0, (String_t*)L_1, (TypeU5BU5D_t3940880105*)L_2, /*hidden argument*/NULL); V_0 = (MethodInfo_t *)L_5; goto IL_0021; } IL_0021: { MethodInfo_t * L_6 = V_0; return L_6; } } // UnityEngine.Events.BaseInvokableCall UnityEngine.Events.UnityEvent`1<System.Int32>::GetDelegate(System.Object,System.Reflection.MethodInfo) extern "C" BaseInvokableCall_t2703961024 * UnityEvent_1_GetDelegate_m617150804_gshared (UnityEvent_1_t3832605257 * __this, RuntimeObject * ___target0, MethodInfo_t * ___theFunction1, const RuntimeMethod* method) { BaseInvokableCall_t2703961024 * V_0 = NULL; { RuntimeObject * L_0 = ___target0; MethodInfo_t * L_1 = ___theFunction1; InvokableCall_1_t3068109991 * L_2 = (InvokableCall_1_t3068109991 *)il2cpp_codegen_object_new(IL2CPP_RGCTX_DATA(method->declaring_type->rgctx_data, 3)); (( void (*) (InvokableCall_1_t3068109991 *, RuntimeObject *, MethodInfo_t *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 4)->methodPointer)(L_2, (RuntimeObject *)L_0, (MethodInfo_t *)L_1, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 4)); V_0 = (BaseInvokableCall_t2703961024 *)L_2; goto IL_000e; } IL_000e: { BaseInvokableCall_t2703961024 * L_3 = V_0; return L_3; } } // UnityEngine.Events.BaseInvokableCall UnityEngine.Events.UnityEvent`1<System.Int32>::GetDelegate(UnityEngine.Events.UnityAction`1<T0>) extern "C" BaseInvokableCall_t2703961024 * UnityEvent_1_GetDelegate_m2283422164_gshared (RuntimeObject * __this /* static, unused */, UnityAction_1_t3535781894 * ___action0, const RuntimeMethod* method) { BaseInvokableCall_t2703961024 * V_0 = NULL; { UnityAction_1_t3535781894 * L_0 = ___action0; InvokableCall_1_t3068109991 * L_1 = (InvokableCall_1_t3068109991 *)il2cpp_codegen_object_new(IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 3)); (( void (*) (InvokableCall_1_t3068109991 *, UnityAction_1_t3535781894 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 5)->methodPointer)(L_1, (UnityAction_1_t3535781894 *)L_0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 5)); V_0 = (BaseInvokableCall_t2703961024 *)L_1; goto IL_000d; } IL_000d: { BaseInvokableCall_t2703961024 * L_2 = V_0; return L_2; } } // System.Void UnityEngine.Events.UnityEvent`1<System.Int32>::Invoke(T0) extern "C" void UnityEvent_1_Invoke_m3604335408_gshared (UnityEvent_1_t3832605257 * __this, int32_t ___arg00, const RuntimeMethod* method) { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_method (UnityEvent_1_Invoke_m3604335408_MetadataUsageId); s_Il2CppMethodInitialized = true; } List_1_t4176035766 * V_0 = NULL; int32_t V_1 = 0; InvokableCall_1_t3068109991 * V_2 = NULL; BaseInvokableCall_t2703961024 * V_3 = NULL; { NullCheck((UnityEventBase_t3960448221 *)__this); List_1_t4176035766 * L_0 = UnityEventBase_PrepareInvoke_m1785382128((UnityEventBase_t3960448221 *)__this, /*hidden argument*/NULL); V_0 = (List_1_t4176035766 *)L_0; V_1 = (int32_t)0; goto IL_006f; } IL_000f: { List_1_t4176035766 * L_1 = V_0; int32_t L_2 = V_1; NullCheck((List_1_t4176035766 *)L_1); BaseInvokableCall_t2703961024 * L_3 = List_1_get_Item_m4156046467((List_1_t4176035766 *)L_1, (int32_t)L_2, /*hidden argument*/List_1_get_Item_m4156046467_RuntimeMethod_var); V_2 = (InvokableCall_1_t3068109991 *)((InvokableCall_1_t3068109991 *)IsInst((RuntimeObject*)L_3, IL2CPP_RGCTX_DATA(method->declaring_type->rgctx_data, 3))); InvokableCall_1_t3068109991 * L_4 = V_2; if (!L_4) { goto IL_002f; } } { InvokableCall_1_t3068109991 * L_5 = V_2; int32_t L_6 = ___arg00; NullCheck((InvokableCall_1_t3068109991 *)L_5); VirtActionInvoker1< int32_t >::Invoke(6 /* System.Void UnityEngine.Events.InvokableCall`1<System.Int32>::Invoke(T1) */, (InvokableCall_1_t3068109991 *)L_5, (int32_t)L_6); goto IL_006a; } IL_002f: { List_1_t4176035766 * L_7 = V_0; int32_t L_8 = V_1; NullCheck((List_1_t4176035766 *)L_7); BaseInvokableCall_t2703961024 * L_9 = List_1_get_Item_m4156046467((List_1_t4176035766 *)L_7, (int32_t)L_8, /*hidden argument*/List_1_get_Item_m4156046467_RuntimeMethod_var); V_3 = (BaseInvokableCall_t2703961024 *)L_9; ObjectU5BU5D_t2843939325* L_10 = (ObjectU5BU5D_t2843939325*)__this->get_m_InvokeArray_4(); if (L_10) { goto IL_004f; } } { __this->set_m_InvokeArray_4(((ObjectU5BU5D_t2843939325*)SZArrayNew(ObjectU5BU5D_t2843939325_il2cpp_TypeInfo_var, (uint32_t)1))); } IL_004f: { ObjectU5BU5D_t2843939325* L_11 = (ObjectU5BU5D_t2843939325*)__this->get_m_InvokeArray_4(); int32_t L_12 = ___arg00; int32_t L_13 = L_12; RuntimeObject * L_14 = Box(IL2CPP_RGCTX_DATA(method->declaring_type->rgctx_data, 7), &L_13); NullCheck(L_11); ArrayElementTypeCheck (L_11, L_14); (L_11)->SetAt(static_cast<il2cpp_array_size_t>(0), (RuntimeObject *)L_14); BaseInvokableCall_t2703961024 * L_15 = V_3; ObjectU5BU5D_t2843939325* L_16 = (ObjectU5BU5D_t2843939325*)__this->get_m_InvokeArray_4(); NullCheck((BaseInvokableCall_t2703961024 *)L_15); VirtActionInvoker1< ObjectU5BU5D_t2843939325* >::Invoke(4 /* System.Void UnityEngine.Events.BaseInvokableCall::Invoke(System.Object[]) */, (BaseInvokableCall_t2703961024 *)L_15, (ObjectU5BU5D_t2843939325*)L_16); } IL_006a: { int32_t L_17 = V_1; V_1 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_17, (int32_t)1)); } IL_006f: { int32_t L_18 = V_1; List_1_t4176035766 * L_19 = V_0; NullCheck((List_1_t4176035766 *)L_19); int32_t L_20 = List_1_get_Count_m1245201994((List_1_t4176035766 *)L_19, /*hidden argument*/List_1_get_Count_m1245201994_RuntimeMethod_var); if ((((int32_t)L_18) < ((int32_t)L_20))) { goto IL_000f; } } { return; } } #ifdef __clang__ #pragma clang diagnostic pop #endif #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Void UnityEngine.Events.UnityEvent`1<System.Object>::.ctor() extern "C" void UnityEvent_1__ctor_m1789019280_gshared (UnityEvent_1_t3961765668 * __this, const RuntimeMethod* method) { { __this->set_m_InvokeArray_4((ObjectU5BU5D_t2843939325*)NULL); NullCheck((UnityEventBase_t3960448221 *)__this); UnityEventBase__ctor_m1851535676((UnityEventBase_t3960448221 *)__this, /*hidden argument*/NULL); return; } } // System.Void UnityEngine.Events.UnityEvent`1<System.Object>::AddListener(UnityEngine.Events.UnityAction`1<T0>) extern "C" void UnityEvent_1_AddListener_m3703050950_gshared (UnityEvent_1_t3961765668 * __this, UnityAction_1_t3664942305 * ___call0, const RuntimeMethod* method) { { UnityAction_1_t3664942305 * L_0 = ___call0; BaseInvokableCall_t2703961024 * L_1 = (( BaseInvokableCall_t2703961024 * (*) (RuntimeObject * /* static, unused */, UnityAction_1_t3664942305 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 0)->methodPointer)(NULL /*static, unused*/, (UnityAction_1_t3664942305 *)L_0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 0)); NullCheck((UnityEventBase_t3960448221 *)__this); UnityEventBase_AddCall_m3539965410((UnityEventBase_t3960448221 *)__this, (BaseInvokableCall_t2703961024 *)L_1, /*hidden argument*/NULL); return; } } // System.Void UnityEngine.Events.UnityEvent`1<System.Object>::RemoveListener(UnityEngine.Events.UnityAction`1<T0>) extern "C" void UnityEvent_1_RemoveListener_m4140584754_gshared (UnityEvent_1_t3961765668 * __this, UnityAction_1_t3664942305 * ___call0, const RuntimeMethod* method) { { UnityAction_1_t3664942305 * L_0 = ___call0; NullCheck((Delegate_t1188392813 *)L_0); RuntimeObject * L_1 = Delegate_get_Target_m2361978888((Delegate_t1188392813 *)L_0, /*hidden argument*/NULL); UnityAction_1_t3664942305 * L_2 = ___call0; MethodInfo_t * L_3 = NetFxCoreExtensions_GetMethodInfo_m444570327(NULL /*static, unused*/, (Delegate_t1188392813 *)L_2, /*hidden argument*/NULL); NullCheck((UnityEventBase_t3960448221 *)__this); UnityEventBase_RemoveListener_m3326364145((UnityEventBase_t3960448221 *)__this, (RuntimeObject *)L_1, (MethodInfo_t *)L_3, /*hidden argument*/NULL); return; } } // System.Reflection.MethodInfo UnityEngine.Events.UnityEvent`1<System.Object>::FindMethod_Impl(System.String,System.Object) extern "C" MethodInfo_t * UnityEvent_1_FindMethod_Impl_m322741469_gshared (UnityEvent_1_t3961765668 * __this, String_t* ___name0, RuntimeObject * ___targetObj1, const RuntimeMethod* method) { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_method (UnityEvent_1_FindMethod_Impl_m322741469_MetadataUsageId); s_Il2CppMethodInitialized = true; } MethodInfo_t * V_0 = NULL; { RuntimeObject * L_0 = ___targetObj1; String_t* L_1 = ___name0; TypeU5BU5D_t3940880105* L_2 = (TypeU5BU5D_t3940880105*)((TypeU5BU5D_t3940880105*)SZArrayNew(TypeU5BU5D_t3940880105_il2cpp_TypeInfo_var, (uint32_t)1)); RuntimeTypeHandle_t3027515415 L_3 = { reinterpret_cast<intptr_t> (IL2CPP_RGCTX_TYPE(method->declaring_type->rgctx_data, 2)) }; IL2CPP_RUNTIME_CLASS_INIT(Type_t_il2cpp_TypeInfo_var); Type_t * L_4 = Type_GetTypeFromHandle_m1620074514(NULL /*static, unused*/, (RuntimeTypeHandle_t3027515415 )L_3, /*hidden argument*/NULL); NullCheck(L_2); ArrayElementTypeCheck (L_2, L_4); (L_2)->SetAt(static_cast<il2cpp_array_size_t>(0), (Type_t *)L_4); MethodInfo_t * L_5 = UnityEventBase_GetValidMethodInfo_m3989987635(NULL /*static, unused*/, (RuntimeObject *)L_0, (String_t*)L_1, (TypeU5BU5D_t3940880105*)L_2, /*hidden argument*/NULL); V_0 = (MethodInfo_t *)L_5; goto IL_0021; } IL_0021: { MethodInfo_t * L_6 = V_0; return L_6; } } // UnityEngine.Events.BaseInvokableCall UnityEngine.Events.UnityEvent`1<System.Object>::GetDelegate(System.Object,System.Reflection.MethodInfo) extern "C" BaseInvokableCall_t2703961024 * UnityEvent_1_GetDelegate_m1223269239_gshared (UnityEvent_1_t3961765668 * __this, RuntimeObject * ___target0, MethodInfo_t * ___theFunction1, const RuntimeMethod* method) { BaseInvokableCall_t2703961024 * V_0 = NULL; { RuntimeObject * L_0 = ___target0; MethodInfo_t * L_1 = ___theFunction1; InvokableCall_1_t3197270402 * L_2 = (InvokableCall_1_t3197270402 *)il2cpp_codegen_object_new(IL2CPP_RGCTX_DATA(method->declaring_type->rgctx_data, 3)); (( void (*) (InvokableCall_1_t3197270402 *, RuntimeObject *, MethodInfo_t *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 4)->methodPointer)(L_2, (RuntimeObject *)L_0, (MethodInfo_t *)L_1, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 4)); V_0 = (BaseInvokableCall_t2703961024 *)L_2; goto IL_000e; } IL_000e: { BaseInvokableCall_t2703961024 * L_3 = V_0; return L_3; } } // UnityEngine.Events.BaseInvokableCall UnityEngine.Events.UnityEvent`1<System.Object>::GetDelegate(UnityEngine.Events.UnityAction`1<T0>) extern "C" BaseInvokableCall_t2703961024 * UnityEvent_1_GetDelegate_m1604725783_gshared (RuntimeObject * __this /* static, unused */, UnityAction_1_t3664942305 * ___action0, const RuntimeMethod* method) { BaseInvokableCall_t2703961024 * V_0 = NULL; { UnityAction_1_t3664942305 * L_0 = ___action0; InvokableCall_1_t3197270402 * L_1 = (InvokableCall_1_t3197270402 *)il2cpp_codegen_object_new(IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 3)); (( void (*) (InvokableCall_1_t3197270402 *, UnityAction_1_t3664942305 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 5)->methodPointer)(L_1, (UnityAction_1_t3664942305 *)L_0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 5)); V_0 = (BaseInvokableCall_t2703961024 *)L_1; goto IL_000d; } IL_000d: { BaseInvokableCall_t2703961024 * L_2 = V_0; return L_2; } } // System.Void UnityEngine.Events.UnityEvent`1<System.Object>::Invoke(T0) extern "C" void UnityEvent_1_Invoke_m2734859485_gshared (UnityEvent_1_t3961765668 * __this, RuntimeObject * ___arg00, const RuntimeMethod* method) { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_method (UnityEvent_1_Invoke_m2734859485_MetadataUsageId); s_Il2CppMethodInitialized = true; } List_1_t4176035766 * V_0 = NULL; int32_t V_1 = 0; InvokableCall_1_t3197270402 * V_2 = NULL; BaseInvokableCall_t2703961024 * V_3 = NULL; { NullCheck((UnityEventBase_t3960448221 *)__this); List_1_t4176035766 * L_0 = UnityEventBase_PrepareInvoke_m1785382128((UnityEventBase_t3960448221 *)__this, /*hidden argument*/NULL); V_0 = (List_1_t4176035766 *)L_0; V_1 = (int32_t)0; goto IL_006f; } IL_000f: { List_1_t4176035766 * L_1 = V_0; int32_t L_2 = V_1; NullCheck((List_1_t4176035766 *)L_1); BaseInvokableCall_t2703961024 * L_3 = List_1_get_Item_m4156046467((List_1_t4176035766 *)L_1, (int32_t)L_2, /*hidden argument*/List_1_get_Item_m4156046467_RuntimeMethod_var); V_2 = (InvokableCall_1_t3197270402 *)((InvokableCall_1_t3197270402 *)IsInst((RuntimeObject*)L_3, IL2CPP_RGCTX_DATA(method->declaring_type->rgctx_data, 3))); InvokableCall_1_t3197270402 * L_4 = V_2; if (!L_4) { goto IL_002f; } } { InvokableCall_1_t3197270402 * L_5 = V_2; RuntimeObject * L_6 = ___arg00; NullCheck((InvokableCall_1_t3197270402 *)L_5); VirtActionInvoker1< RuntimeObject * >::Invoke(6 /* System.Void UnityEngine.Events.InvokableCall`1<System.Object>::Invoke(T1) */, (InvokableCall_1_t3197270402 *)L_5, (RuntimeObject *)L_6); goto IL_006a; } IL_002f: { List_1_t4176035766 * L_7 = V_0; int32_t L_8 = V_1; NullCheck((List_1_t4176035766 *)L_7); BaseInvokableCall_t2703961024 * L_9 = List_1_get_Item_m4156046467((List_1_t4176035766 *)L_7, (int32_t)L_8, /*hidden argument*/List_1_get_Item_m4156046467_RuntimeMethod_var); V_3 = (BaseInvokableCall_t2703961024 *)L_9; ObjectU5BU5D_t2843939325* L_10 = (ObjectU5BU5D_t2843939325*)__this->get_m_InvokeArray_4(); if (L_10) { goto IL_004f; } } { __this->set_m_InvokeArray_4(((ObjectU5BU5D_t2843939325*)SZArrayNew(ObjectU5BU5D_t2843939325_il2cpp_TypeInfo_var, (uint32_t)1))); } IL_004f: { ObjectU5BU5D_t2843939325* L_11 = (ObjectU5BU5D_t2843939325*)__this->get_m_InvokeArray_4(); RuntimeObject * L_12 = ___arg00; NullCheck(L_11); ArrayElementTypeCheck (L_11, L_12); (L_11)->SetAt(static_cast<il2cpp_array_size_t>(0), (RuntimeObject *)L_12); BaseInvokableCall_t2703961024 * L_13 = V_3; ObjectU5BU5D_t2843939325* L_14 = (ObjectU5BU5D_t2843939325*)__this->get_m_InvokeArray_4(); NullCheck((BaseInvokableCall_t2703961024 *)L_13); VirtActionInvoker1< ObjectU5BU5D_t2843939325* >::Invoke(4 /* System.Void UnityEngine.Events.BaseInvokableCall::Invoke(System.Object[]) */, (BaseInvokableCall_t2703961024 *)L_13, (ObjectU5BU5D_t2843939325*)L_14); } IL_006a: { int32_t L_15 = V_1; V_1 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_15, (int32_t)1)); } IL_006f: { int32_t L_16 = V_1; List_1_t4176035766 * L_17 = V_0; NullCheck((List_1_t4176035766 *)L_17); int32_t L_18 = List_1_get_Count_m1245201994((List_1_t4176035766 *)L_17, /*hidden argument*/List_1_get_Count_m1245201994_RuntimeMethod_var); if ((((int32_t)L_16) < ((int32_t)L_18))) { goto IL_000f; } } { return; } } #ifdef __clang__ #pragma clang diagnostic pop #endif #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Void UnityEngine.Events.UnityEvent`1<System.Single>::.ctor() extern "C" void UnityEvent_1__ctor_m2218582587_gshared (UnityEvent_1_t2278926278 * __this, const RuntimeMethod* method) { { __this->set_m_InvokeArray_4((ObjectU5BU5D_t2843939325*)NULL); NullCheck((UnityEventBase_t3960448221 *)__this); UnityEventBase__ctor_m1851535676((UnityEventBase_t3960448221 *)__this, /*hidden argument*/NULL); return; } } // System.Void UnityEngine.Events.UnityEvent`1<System.Single>::AddListener(UnityEngine.Events.UnityAction`1<T0>) extern "C" void UnityEvent_1_AddListener_m3008008915_gshared (UnityEvent_1_t2278926278 * __this, UnityAction_1_t1982102915 * ___call0, const RuntimeMethod* method) { { UnityAction_1_t1982102915 * L_0 = ___call0; BaseInvokableCall_t2703961024 * L_1 = (( BaseInvokableCall_t2703961024 * (*) (RuntimeObject * /* static, unused */, UnityAction_1_t1982102915 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 0)->methodPointer)(NULL /*static, unused*/, (UnityAction_1_t1982102915 *)L_0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 0)); NullCheck((UnityEventBase_t3960448221 *)__this); UnityEventBase_AddCall_m3539965410((UnityEventBase_t3960448221 *)__this, (BaseInvokableCall_t2703961024 *)L_1, /*hidden argument*/NULL); return; } } // System.Void UnityEngine.Events.UnityEvent`1<System.Single>::RemoveListener(UnityEngine.Events.UnityAction`1<T0>) extern "C" void UnityEvent_1_RemoveListener_m4190968495_gshared (UnityEvent_1_t2278926278 * __this, UnityAction_1_t1982102915 * ___call0, const RuntimeMethod* method) { { UnityAction_1_t1982102915 * L_0 = ___call0; NullCheck((Delegate_t1188392813 *)L_0); RuntimeObject * L_1 = Delegate_get_Target_m2361978888((Delegate_t1188392813 *)L_0, /*hidden argument*/NULL); UnityAction_1_t1982102915 * L_2 = ___call0; MethodInfo_t * L_3 = NetFxCoreExtensions_GetMethodInfo_m444570327(NULL /*static, unused*/, (Delegate_t1188392813 *)L_2, /*hidden argument*/NULL); NullCheck((UnityEventBase_t3960448221 *)__this); UnityEventBase_RemoveListener_m3326364145((UnityEventBase_t3960448221 *)__this, (RuntimeObject *)L_1, (MethodInfo_t *)L_3, /*hidden argument*/NULL); return; } } // System.Reflection.MethodInfo UnityEngine.Events.UnityEvent`1<System.Single>::FindMethod_Impl(System.String,System.Object) extern "C" MethodInfo_t * UnityEvent_1_FindMethod_Impl_m555893253_gshared (UnityEvent_1_t2278926278 * __this, String_t* ___name0, RuntimeObject * ___targetObj1, const RuntimeMethod* method) { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_method (UnityEvent_1_FindMethod_Impl_m555893253_MetadataUsageId); s_Il2CppMethodInitialized = true; } MethodInfo_t * V_0 = NULL; { RuntimeObject * L_0 = ___targetObj1; String_t* L_1 = ___name0; TypeU5BU5D_t3940880105* L_2 = (TypeU5BU5D_t3940880105*)((TypeU5BU5D_t3940880105*)SZArrayNew(TypeU5BU5D_t3940880105_il2cpp_TypeInfo_var, (uint32_t)1)); RuntimeTypeHandle_t3027515415 L_3 = { reinterpret_cast<intptr_t> (IL2CPP_RGCTX_TYPE(method->declaring_type->rgctx_data, 2)) }; IL2CPP_RUNTIME_CLASS_INIT(Type_t_il2cpp_TypeInfo_var); Type_t * L_4 = Type_GetTypeFromHandle_m1620074514(NULL /*static, unused*/, (RuntimeTypeHandle_t3027515415 )L_3, /*hidden argument*/NULL); NullCheck(L_2); ArrayElementTypeCheck (L_2, L_4); (L_2)->SetAt(static_cast<il2cpp_array_size_t>(0), (Type_t *)L_4); MethodInfo_t * L_5 = UnityEventBase_GetValidMethodInfo_m3989987635(NULL /*static, unused*/, (RuntimeObject *)L_0, (String_t*)L_1, (TypeU5BU5D_t3940880105*)L_2, /*hidden argument*/NULL); V_0 = (MethodInfo_t *)L_5; goto IL_0021; } IL_0021: { MethodInfo_t * L_6 = V_0; return L_6; } } // UnityEngine.Events.BaseInvokableCall UnityEngine.Events.UnityEvent`1<System.Single>::GetDelegate(System.Object,System.Reflection.MethodInfo) extern "C" BaseInvokableCall_t2703961024 * UnityEvent_1_GetDelegate_m1597732310_gshared (UnityEvent_1_t2278926278 * __this, RuntimeObject * ___target0, MethodInfo_t * ___theFunction1, const RuntimeMethod* method) { BaseInvokableCall_t2703961024 * V_0 = NULL; { RuntimeObject * L_0 = ___target0; MethodInfo_t * L_1 = ___theFunction1; InvokableCall_1_t1514431012 * L_2 = (InvokableCall_1_t1514431012 *)il2cpp_codegen_object_new(IL2CPP_RGCTX_DATA(method->declaring_type->rgctx_data, 3)); (( void (*) (InvokableCall_1_t1514431012 *, RuntimeObject *, MethodInfo_t *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 4)->methodPointer)(L_2, (RuntimeObject *)L_0, (MethodInfo_t *)L_1, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 4)); V_0 = (BaseInvokableCall_t2703961024 *)L_2; goto IL_000e; } IL_000e: { BaseInvokableCall_t2703961024 * L_3 = V_0; return L_3; } } // UnityEngine.Events.BaseInvokableCall UnityEngine.Events.UnityEvent`1<System.Single>::GetDelegate(UnityEngine.Events.UnityAction`1<T0>) extern "C" BaseInvokableCall_t2703961024 * UnityEvent_1_GetDelegate_m25714567_gshared (RuntimeObject * __this /* static, unused */, UnityAction_1_t1982102915 * ___action0, const RuntimeMethod* method) { BaseInvokableCall_t2703961024 * V_0 = NULL; { UnityAction_1_t1982102915 * L_0 = ___action0; InvokableCall_1_t1514431012 * L_1 = (InvokableCall_1_t1514431012 *)il2cpp_codegen_object_new(IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 3)); (( void (*) (InvokableCall_1_t1514431012 *, UnityAction_1_t1982102915 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 5)->methodPointer)(L_1, (UnityAction_1_t1982102915 *)L_0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 5)); V_0 = (BaseInvokableCall_t2703961024 *)L_1; goto IL_000d; } IL_000d: { BaseInvokableCall_t2703961024 * L_2 = V_0; return L_2; } } // System.Void UnityEngine.Events.UnityEvent`1<System.Single>::Invoke(T0) extern "C" void UnityEvent_1_Invoke_m3400677460_gshared (UnityEvent_1_t2278926278 * __this, float ___arg00, const RuntimeMethod* method) { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_method (UnityEvent_1_Invoke_m3400677460_MetadataUsageId); s_Il2CppMethodInitialized = true; } List_1_t4176035766 * V_0 = NULL; int32_t V_1 = 0; InvokableCall_1_t1514431012 * V_2 = NULL; BaseInvokableCall_t2703961024 * V_3 = NULL; { NullCheck((UnityEventBase_t3960448221 *)__this); List_1_t4176035766 * L_0 = UnityEventBase_PrepareInvoke_m1785382128((UnityEventBase_t3960448221 *)__this, /*hidden argument*/NULL); V_0 = (List_1_t4176035766 *)L_0; V_1 = (int32_t)0; goto IL_006f; } IL_000f: { List_1_t4176035766 * L_1 = V_0; int32_t L_2 = V_1; NullCheck((List_1_t4176035766 *)L_1); BaseInvokableCall_t2703961024 * L_3 = List_1_get_Item_m4156046467((List_1_t4176035766 *)L_1, (int32_t)L_2, /*hidden argument*/List_1_get_Item_m4156046467_RuntimeMethod_var); V_2 = (InvokableCall_1_t1514431012 *)((InvokableCall_1_t1514431012 *)IsInst((RuntimeObject*)L_3, IL2CPP_RGCTX_DATA(method->declaring_type->rgctx_data, 3))); InvokableCall_1_t1514431012 * L_4 = V_2; if (!L_4) { goto IL_002f; } } { InvokableCall_1_t1514431012 * L_5 = V_2; float L_6 = ___arg00; NullCheck((InvokableCall_1_t1514431012 *)L_5); VirtActionInvoker1< float >::Invoke(6 /* System.Void UnityEngine.Events.InvokableCall`1<System.Single>::Invoke(T1) */, (InvokableCall_1_t1514431012 *)L_5, (float)L_6); goto IL_006a; } IL_002f: { List_1_t4176035766 * L_7 = V_0; int32_t L_8 = V_1; NullCheck((List_1_t4176035766 *)L_7); BaseInvokableCall_t2703961024 * L_9 = List_1_get_Item_m4156046467((List_1_t4176035766 *)L_7, (int32_t)L_8, /*hidden argument*/List_1_get_Item_m4156046467_RuntimeMethod_var); V_3 = (BaseInvokableCall_t2703961024 *)L_9; ObjectU5BU5D_t2843939325* L_10 = (ObjectU5BU5D_t2843939325*)__this->get_m_InvokeArray_4(); if (L_10) { goto IL_004f; } } { __this->set_m_InvokeArray_4(((ObjectU5BU5D_t2843939325*)SZArrayNew(ObjectU5BU5D_t2843939325_il2cpp_TypeInfo_var, (uint32_t)1))); } IL_004f: { ObjectU5BU5D_t2843939325* L_11 = (ObjectU5BU5D_t2843939325*)__this->get_m_InvokeArray_4(); float L_12 = ___arg00; float L_13 = L_12; RuntimeObject * L_14 = Box(IL2CPP_RGCTX_DATA(method->declaring_type->rgctx_data, 7), &L_13); NullCheck(L_11); ArrayElementTypeCheck (L_11, L_14); (L_11)->SetAt(static_cast<il2cpp_array_size_t>(0), (RuntimeObject *)L_14); BaseInvokableCall_t2703961024 * L_15 = V_3; ObjectU5BU5D_t2843939325* L_16 = (ObjectU5BU5D_t2843939325*)__this->get_m_InvokeArray_4(); NullCheck((BaseInvokableCall_t2703961024 *)L_15); VirtActionInvoker1< ObjectU5BU5D_t2843939325* >::Invoke(4 /* System.Void UnityEngine.Events.BaseInvokableCall::Invoke(System.Object[]) */, (BaseInvokableCall_t2703961024 *)L_15, (ObjectU5BU5D_t2843939325*)L_16); } IL_006a: { int32_t L_17 = V_1; V_1 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_17, (int32_t)1)); } IL_006f: { int32_t L_18 = V_1; List_1_t4176035766 * L_19 = V_0; NullCheck((List_1_t4176035766 *)L_19); int32_t L_20 = List_1_get_Count_m1245201994((List_1_t4176035766 *)L_19, /*hidden argument*/List_1_get_Count_m1245201994_RuntimeMethod_var); if ((((int32_t)L_18) < ((int32_t)L_20))) { goto IL_000f; } } { return; } } #ifdef __clang__ #pragma clang diagnostic pop #endif #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Void UnityEngine.Events.UnityEvent`1<UnityEngine.Color>::.ctor() extern "C" void UnityEvent_1__ctor_m1293792034_gshared (UnityEvent_1_t3437345828 * __this, const RuntimeMethod* method) { { __this->set_m_InvokeArray_4((ObjectU5BU5D_t2843939325*)NULL); NullCheck((UnityEventBase_t3960448221 *)__this); UnityEventBase__ctor_m1851535676((UnityEventBase_t3960448221 *)__this, /*hidden argument*/NULL); return; } } // System.Void UnityEngine.Events.UnityEvent`1<UnityEngine.Color>::AddListener(UnityEngine.Events.UnityAction`1<T0>) extern "C" void UnityEvent_1_AddListener_m1590149461_gshared (UnityEvent_1_t3437345828 * __this, UnityAction_1_t3140522465 * ___call0, const RuntimeMethod* method) { { UnityAction_1_t3140522465 * L_0 = ___call0; BaseInvokableCall_t2703961024 * L_1 = (( BaseInvokableCall_t2703961024 * (*) (RuntimeObject * /* static, unused */, UnityAction_1_t3140522465 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 0)->methodPointer)(NULL /*static, unused*/, (UnityAction_1_t3140522465 *)L_0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 0)); NullCheck((UnityEventBase_t3960448221 *)__this); UnityEventBase_AddCall_m3539965410((UnityEventBase_t3960448221 *)__this, (BaseInvokableCall_t2703961024 *)L_1, /*hidden argument*/NULL); return; } } // System.Void UnityEngine.Events.UnityEvent`1<UnityEngine.Color>::RemoveListener(UnityEngine.Events.UnityAction`1<T0>) extern "C" void UnityEvent_1_RemoveListener_m2625750952_gshared (UnityEvent_1_t3437345828 * __this, UnityAction_1_t3140522465 * ___call0, const RuntimeMethod* method) { { UnityAction_1_t3140522465 * L_0 = ___call0; NullCheck((Delegate_t1188392813 *)L_0); RuntimeObject * L_1 = Delegate_get_Target_m2361978888((Delegate_t1188392813 *)L_0, /*hidden argument*/NULL); UnityAction_1_t3140522465 * L_2 = ___call0; MethodInfo_t * L_3 = NetFxCoreExtensions_GetMethodInfo_m444570327(NULL /*static, unused*/, (Delegate_t1188392813 *)L_2, /*hidden argument*/NULL); NullCheck((UnityEventBase_t3960448221 *)__this); UnityEventBase_RemoveListener_m3326364145((UnityEventBase_t3960448221 *)__this, (RuntimeObject *)L_1, (MethodInfo_t *)L_3, /*hidden argument*/NULL); return; } } // System.Reflection.MethodInfo UnityEngine.Events.UnityEvent`1<UnityEngine.Color>::FindMethod_Impl(System.String,System.Object) extern "C" MethodInfo_t * UnityEvent_1_FindMethod_Impl_m1420160216_gshared (UnityEvent_1_t3437345828 * __this, String_t* ___name0, RuntimeObject * ___targetObj1, const RuntimeMethod* method) { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_method (UnityEvent_1_FindMethod_Impl_m1420160216_MetadataUsageId); s_Il2CppMethodInitialized = true; } MethodInfo_t * V_0 = NULL; { RuntimeObject * L_0 = ___targetObj1; String_t* L_1 = ___name0; TypeU5BU5D_t3940880105* L_2 = (TypeU5BU5D_t3940880105*)((TypeU5BU5D_t3940880105*)SZArrayNew(TypeU5BU5D_t3940880105_il2cpp_TypeInfo_var, (uint32_t)1)); RuntimeTypeHandle_t3027515415 L_3 = { reinterpret_cast<intptr_t> (IL2CPP_RGCTX_TYPE(method->declaring_type->rgctx_data, 2)) }; IL2CPP_RUNTIME_CLASS_INIT(Type_t_il2cpp_TypeInfo_var); Type_t * L_4 = Type_GetTypeFromHandle_m1620074514(NULL /*static, unused*/, (RuntimeTypeHandle_t3027515415 )L_3, /*hidden argument*/NULL); NullCheck(L_2); ArrayElementTypeCheck (L_2, L_4); (L_2)->SetAt(static_cast<il2cpp_array_size_t>(0), (Type_t *)L_4); MethodInfo_t * L_5 = UnityEventBase_GetValidMethodInfo_m3989987635(NULL /*static, unused*/, (RuntimeObject *)L_0, (String_t*)L_1, (TypeU5BU5D_t3940880105*)L_2, /*hidden argument*/NULL); V_0 = (MethodInfo_t *)L_5; goto IL_0021; } IL_0021: { MethodInfo_t * L_6 = V_0; return L_6; } } // UnityEngine.Events.BaseInvokableCall UnityEngine.Events.UnityEvent`1<UnityEngine.Color>::GetDelegate(System.Object,System.Reflection.MethodInfo) extern "C" BaseInvokableCall_t2703961024 * UnityEvent_1_GetDelegate_m1771043166_gshared (UnityEvent_1_t3437345828 * __this, RuntimeObject * ___target0, MethodInfo_t * ___theFunction1, const RuntimeMethod* method) { BaseInvokableCall_t2703961024 * V_0 = NULL; { RuntimeObject * L_0 = ___target0; MethodInfo_t * L_1 = ___theFunction1; InvokableCall_1_t2672850562 * L_2 = (InvokableCall_1_t2672850562 *)il2cpp_codegen_object_new(IL2CPP_RGCTX_DATA(method->declaring_type->rgctx_data, 3)); (( void (*) (InvokableCall_1_t2672850562 *, RuntimeObject *, MethodInfo_t *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 4)->methodPointer)(L_2, (RuntimeObject *)L_0, (MethodInfo_t *)L_1, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 4)); V_0 = (BaseInvokableCall_t2703961024 *)L_2; goto IL_000e; } IL_000e: { BaseInvokableCall_t2703961024 * L_3 = V_0; return L_3; } } // UnityEngine.Events.BaseInvokableCall UnityEngine.Events.UnityEvent`1<UnityEngine.Color>::GetDelegate(UnityEngine.Events.UnityAction`1<T0>) extern "C" BaseInvokableCall_t2703961024 * UnityEvent_1_GetDelegate_m274387680_gshared (RuntimeObject * __this /* static, unused */, UnityAction_1_t3140522465 * ___action0, const RuntimeMethod* method) { BaseInvokableCall_t2703961024 * V_0 = NULL; { UnityAction_1_t3140522465 * L_0 = ___action0; InvokableCall_1_t2672850562 * L_1 = (InvokableCall_1_t2672850562 *)il2cpp_codegen_object_new(IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 3)); (( void (*) (InvokableCall_1_t2672850562 *, UnityAction_1_t3140522465 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 5)->methodPointer)(L_1, (UnityAction_1_t3140522465 *)L_0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 5)); V_0 = (BaseInvokableCall_t2703961024 *)L_1; goto IL_000d; } IL_000d: { BaseInvokableCall_t2703961024 * L_2 = V_0; return L_2; } } // System.Void UnityEngine.Events.UnityEvent`1<UnityEngine.Color>::Invoke(T0) extern "C" void UnityEvent_1_Invoke_m3884411426_gshared (UnityEvent_1_t3437345828 * __this, Color_t2555686324 ___arg00, const RuntimeMethod* method) { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_method (UnityEvent_1_Invoke_m3884411426_MetadataUsageId); s_Il2CppMethodInitialized = true; } List_1_t4176035766 * V_0 = NULL; int32_t V_1 = 0; InvokableCall_1_t2672850562 * V_2 = NULL; BaseInvokableCall_t2703961024 * V_3 = NULL; { NullCheck((UnityEventBase_t3960448221 *)__this); List_1_t4176035766 * L_0 = UnityEventBase_PrepareInvoke_m1785382128((UnityEventBase_t3960448221 *)__this, /*hidden argument*/NULL); V_0 = (List_1_t4176035766 *)L_0; V_1 = (int32_t)0; goto IL_006f; } IL_000f: { List_1_t4176035766 * L_1 = V_0; int32_t L_2 = V_1; NullCheck((List_1_t4176035766 *)L_1); BaseInvokableCall_t2703961024 * L_3 = List_1_get_Item_m4156046467((List_1_t4176035766 *)L_1, (int32_t)L_2, /*hidden argument*/List_1_get_Item_m4156046467_RuntimeMethod_var); V_2 = (InvokableCall_1_t2672850562 *)((InvokableCall_1_t2672850562 *)IsInst((RuntimeObject*)L_3, IL2CPP_RGCTX_DATA(method->declaring_type->rgctx_data, 3))); InvokableCall_1_t2672850562 * L_4 = V_2; if (!L_4) { goto IL_002f; } } { InvokableCall_1_t2672850562 * L_5 = V_2; Color_t2555686324 L_6 = ___arg00; NullCheck((InvokableCall_1_t2672850562 *)L_5); VirtActionInvoker1< Color_t2555686324 >::Invoke(6 /* System.Void UnityEngine.Events.InvokableCall`1<UnityEngine.Color>::Invoke(T1) */, (InvokableCall_1_t2672850562 *)L_5, (Color_t2555686324 )L_6); goto IL_006a; } IL_002f: { List_1_t4176035766 * L_7 = V_0; int32_t L_8 = V_1; NullCheck((List_1_t4176035766 *)L_7); BaseInvokableCall_t2703961024 * L_9 = List_1_get_Item_m4156046467((List_1_t4176035766 *)L_7, (int32_t)L_8, /*hidden argument*/List_1_get_Item_m4156046467_RuntimeMethod_var); V_3 = (BaseInvokableCall_t2703961024 *)L_9; ObjectU5BU5D_t2843939325* L_10 = (ObjectU5BU5D_t2843939325*)__this->get_m_InvokeArray_4(); if (L_10) { goto IL_004f; } } { __this->set_m_InvokeArray_4(((ObjectU5BU5D_t2843939325*)SZArrayNew(ObjectU5BU5D_t2843939325_il2cpp_TypeInfo_var, (uint32_t)1))); } IL_004f: { ObjectU5BU5D_t2843939325* L_11 = (ObjectU5BU5D_t2843939325*)__this->get_m_InvokeArray_4(); Color_t2555686324 L_12 = ___arg00; Color_t2555686324 L_13 = L_12; RuntimeObject * L_14 = Box(IL2CPP_RGCTX_DATA(method->declaring_type->rgctx_data, 7), &L_13); NullCheck(L_11); ArrayElementTypeCheck (L_11, L_14); (L_11)->SetAt(static_cast<il2cpp_array_size_t>(0), (RuntimeObject *)L_14); BaseInvokableCall_t2703961024 * L_15 = V_3; ObjectU5BU5D_t2843939325* L_16 = (ObjectU5BU5D_t2843939325*)__this->get_m_InvokeArray_4(); NullCheck((BaseInvokableCall_t2703961024 *)L_15); VirtActionInvoker1< ObjectU5BU5D_t2843939325* >::Invoke(4 /* System.Void UnityEngine.Events.BaseInvokableCall::Invoke(System.Object[]) */, (BaseInvokableCall_t2703961024 *)L_15, (ObjectU5BU5D_t2843939325*)L_16); } IL_006a: { int32_t L_17 = V_1; V_1 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_17, (int32_t)1)); } IL_006f: { int32_t L_18 = V_1; List_1_t4176035766 * L_19 = V_0; NullCheck((List_1_t4176035766 *)L_19); int32_t L_20 = List_1_get_Count_m1245201994((List_1_t4176035766 *)L_19, /*hidden argument*/List_1_get_Count_m1245201994_RuntimeMethod_var); if ((((int32_t)L_18) < ((int32_t)L_20))) { goto IL_000f; } } { return; } } #ifdef __clang__ #pragma clang diagnostic pop #endif #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Void UnityEngine.Events.UnityEvent`1<UnityEngine.Vector2>::.ctor() extern "C" void UnityEvent_1__ctor_m3675246889_gshared (UnityEvent_1_t3037889027 * __this, const RuntimeMethod* method) { { __this->set_m_InvokeArray_4((ObjectU5BU5D_t2843939325*)NULL); NullCheck((UnityEventBase_t3960448221 *)__this); UnityEventBase__ctor_m1851535676((UnityEventBase_t3960448221 *)__this, /*hidden argument*/NULL); return; } } // System.Void UnityEngine.Events.UnityEvent`1<UnityEngine.Vector2>::AddListener(UnityEngine.Events.UnityAction`1<T0>) extern "C" void UnityEvent_1_AddListener_m213733913_gshared (UnityEvent_1_t3037889027 * __this, UnityAction_1_t2741065664 * ___call0, const RuntimeMethod* method) { { UnityAction_1_t2741065664 * L_0 = ___call0; BaseInvokableCall_t2703961024 * L_1 = (( BaseInvokableCall_t2703961024 * (*) (RuntimeObject * /* static, unused */, UnityAction_1_t2741065664 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 0)->methodPointer)(NULL /*static, unused*/, (UnityAction_1_t2741065664 *)L_0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 0)); NullCheck((UnityEventBase_t3960448221 *)__this); UnityEventBase_AddCall_m3539965410((UnityEventBase_t3960448221 *)__this, (BaseInvokableCall_t2703961024 *)L_1, /*hidden argument*/NULL); return; } } // System.Void UnityEngine.Events.UnityEvent`1<UnityEngine.Vector2>::RemoveListener(UnityEngine.Events.UnityAction`1<T0>) extern "C" void UnityEvent_1_RemoveListener_m3496608666_gshared (UnityEvent_1_t3037889027 * __this, UnityAction_1_t2741065664 * ___call0, const RuntimeMethod* method) { { UnityAction_1_t2741065664 * L_0 = ___call0; NullCheck((Delegate_t1188392813 *)L_0); RuntimeObject * L_1 = Delegate_get_Target_m2361978888((Delegate_t1188392813 *)L_0, /*hidden argument*/NULL); UnityAction_1_t2741065664 * L_2 = ___call0; MethodInfo_t * L_3 = NetFxCoreExtensions_GetMethodInfo_m444570327(NULL /*static, unused*/, (Delegate_t1188392813 *)L_2, /*hidden argument*/NULL); NullCheck((UnityEventBase_t3960448221 *)__this); UnityEventBase_RemoveListener_m3326364145((UnityEventBase_t3960448221 *)__this, (RuntimeObject *)L_1, (MethodInfo_t *)L_3, /*hidden argument*/NULL); return; } } // System.Reflection.MethodInfo UnityEngine.Events.UnityEvent`1<UnityEngine.Vector2>::FindMethod_Impl(System.String,System.Object) extern "C" MethodInfo_t * UnityEvent_1_FindMethod_Impl_m2325208510_gshared (UnityEvent_1_t3037889027 * __this, String_t* ___name0, RuntimeObject * ___targetObj1, const RuntimeMethod* method) { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_method (UnityEvent_1_FindMethod_Impl_m2325208510_MetadataUsageId); s_Il2CppMethodInitialized = true; } MethodInfo_t * V_0 = NULL; { RuntimeObject * L_0 = ___targetObj1; String_t* L_1 = ___name0; TypeU5BU5D_t3940880105* L_2 = (TypeU5BU5D_t3940880105*)((TypeU5BU5D_t3940880105*)SZArrayNew(TypeU5BU5D_t3940880105_il2cpp_TypeInfo_var, (uint32_t)1)); RuntimeTypeHandle_t3027515415 L_3 = { reinterpret_cast<intptr_t> (IL2CPP_RGCTX_TYPE(method->declaring_type->rgctx_data, 2)) }; IL2CPP_RUNTIME_CLASS_INIT(Type_t_il2cpp_TypeInfo_var); Type_t * L_4 = Type_GetTypeFromHandle_m1620074514(NULL /*static, unused*/, (RuntimeTypeHandle_t3027515415 )L_3, /*hidden argument*/NULL); NullCheck(L_2); ArrayElementTypeCheck (L_2, L_4); (L_2)->SetAt(static_cast<il2cpp_array_size_t>(0), (Type_t *)L_4); MethodInfo_t * L_5 = UnityEventBase_GetValidMethodInfo_m3989987635(NULL /*static, unused*/, (RuntimeObject *)L_0, (String_t*)L_1, (TypeU5BU5D_t3940880105*)L_2, /*hidden argument*/NULL); V_0 = (MethodInfo_t *)L_5; goto IL_0021; } IL_0021: { MethodInfo_t * L_6 = V_0; return L_6; } } // UnityEngine.Events.BaseInvokableCall UnityEngine.Events.UnityEvent`1<UnityEngine.Vector2>::GetDelegate(System.Object,System.Reflection.MethodInfo) extern "C" BaseInvokableCall_t2703961024 * UnityEvent_1_GetDelegate_m2226801754_gshared (UnityEvent_1_t3037889027 * __this, RuntimeObject * ___target0, MethodInfo_t * ___theFunction1, const RuntimeMethod* method) { BaseInvokableCall_t2703961024 * V_0 = NULL; { RuntimeObject * L_0 = ___target0; MethodInfo_t * L_1 = ___theFunction1; InvokableCall_1_t2273393761 * L_2 = (InvokableCall_1_t2273393761 *)il2cpp_codegen_object_new(IL2CPP_RGCTX_DATA(method->declaring_type->rgctx_data, 3)); (( void (*) (InvokableCall_1_t2273393761 *, RuntimeObject *, MethodInfo_t *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 4)->methodPointer)(L_2, (RuntimeObject *)L_0, (MethodInfo_t *)L_1, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 4)); V_0 = (BaseInvokableCall_t2703961024 *)L_2; goto IL_000e; } IL_000e: { BaseInvokableCall_t2703961024 * L_3 = V_0; return L_3; } } // UnityEngine.Events.BaseInvokableCall UnityEngine.Events.UnityEvent`1<UnityEngine.Vector2>::GetDelegate(UnityEngine.Events.UnityAction`1<T0>) extern "C" BaseInvokableCall_t2703961024 * UnityEvent_1_GetDelegate_m2265966113_gshared (RuntimeObject * __this /* static, unused */, UnityAction_1_t2741065664 * ___action0, const RuntimeMethod* method) { BaseInvokableCall_t2703961024 * V_0 = NULL; { UnityAction_1_t2741065664 * L_0 = ___action0; InvokableCall_1_t2273393761 * L_1 = (InvokableCall_1_t2273393761 *)il2cpp_codegen_object_new(IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 3)); (( void (*) (InvokableCall_1_t2273393761 *, UnityAction_1_t2741065664 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 5)->methodPointer)(L_1, (UnityAction_1_t2741065664 *)L_0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 5)); V_0 = (BaseInvokableCall_t2703961024 *)L_1; goto IL_000d; } IL_000d: { BaseInvokableCall_t2703961024 * L_2 = V_0; return L_2; } } // System.Void UnityEngine.Events.UnityEvent`1<UnityEngine.Vector2>::Invoke(T0) extern "C" void UnityEvent_1_Invoke_m3432495026_gshared (UnityEvent_1_t3037889027 * __this, Vector2_t2156229523 ___arg00, const RuntimeMethod* method) { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_method (UnityEvent_1_Invoke_m3432495026_MetadataUsageId); s_Il2CppMethodInitialized = true; } List_1_t4176035766 * V_0 = NULL; int32_t V_1 = 0; InvokableCall_1_t2273393761 * V_2 = NULL; BaseInvokableCall_t2703961024 * V_3 = NULL; { NullCheck((UnityEventBase_t3960448221 *)__this); List_1_t4176035766 * L_0 = UnityEventBase_PrepareInvoke_m1785382128((UnityEventBase_t3960448221 *)__this, /*hidden argument*/NULL); V_0 = (List_1_t4176035766 *)L_0; V_1 = (int32_t)0; goto IL_006f; } IL_000f: { List_1_t4176035766 * L_1 = V_0; int32_t L_2 = V_1; NullCheck((List_1_t4176035766 *)L_1); BaseInvokableCall_t2703961024 * L_3 = List_1_get_Item_m4156046467((List_1_t4176035766 *)L_1, (int32_t)L_2, /*hidden argument*/List_1_get_Item_m4156046467_RuntimeMethod_var); V_2 = (InvokableCall_1_t2273393761 *)((InvokableCall_1_t2273393761 *)IsInst((RuntimeObject*)L_3, IL2CPP_RGCTX_DATA(method->declaring_type->rgctx_data, 3))); InvokableCall_1_t2273393761 * L_4 = V_2; if (!L_4) { goto IL_002f; } } { InvokableCall_1_t2273393761 * L_5 = V_2; Vector2_t2156229523 L_6 = ___arg00; NullCheck((InvokableCall_1_t2273393761 *)L_5); VirtActionInvoker1< Vector2_t2156229523 >::Invoke(6 /* System.Void UnityEngine.Events.InvokableCall`1<UnityEngine.Vector2>::Invoke(T1) */, (InvokableCall_1_t2273393761 *)L_5, (Vector2_t2156229523 )L_6); goto IL_006a; } IL_002f: { List_1_t4176035766 * L_7 = V_0; int32_t L_8 = V_1; NullCheck((List_1_t4176035766 *)L_7); BaseInvokableCall_t2703961024 * L_9 = List_1_get_Item_m4156046467((List_1_t4176035766 *)L_7, (int32_t)L_8, /*hidden argument*/List_1_get_Item_m4156046467_RuntimeMethod_var); V_3 = (BaseInvokableCall_t2703961024 *)L_9; ObjectU5BU5D_t2843939325* L_10 = (ObjectU5BU5D_t2843939325*)__this->get_m_InvokeArray_4(); if (L_10) { goto IL_004f; } } { __this->set_m_InvokeArray_4(((ObjectU5BU5D_t2843939325*)SZArrayNew(ObjectU5BU5D_t2843939325_il2cpp_TypeInfo_var, (uint32_t)1))); } IL_004f: { ObjectU5BU5D_t2843939325* L_11 = (ObjectU5BU5D_t2843939325*)__this->get_m_InvokeArray_4(); Vector2_t2156229523 L_12 = ___arg00; Vector2_t2156229523 L_13 = L_12; RuntimeObject * L_14 = Box(IL2CPP_RGCTX_DATA(method->declaring_type->rgctx_data, 7), &L_13); NullCheck(L_11); ArrayElementTypeCheck (L_11, L_14); (L_11)->SetAt(static_cast<il2cpp_array_size_t>(0), (RuntimeObject *)L_14); BaseInvokableCall_t2703961024 * L_15 = V_3; ObjectU5BU5D_t2843939325* L_16 = (ObjectU5BU5D_t2843939325*)__this->get_m_InvokeArray_4(); NullCheck((BaseInvokableCall_t2703961024 *)L_15); VirtActionInvoker1< ObjectU5BU5D_t2843939325* >::Invoke(4 /* System.Void UnityEngine.Events.BaseInvokableCall::Invoke(System.Object[]) */, (BaseInvokableCall_t2703961024 *)L_15, (ObjectU5BU5D_t2843939325*)L_16); } IL_006a: { int32_t L_17 = V_1; V_1 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_17, (int32_t)1)); } IL_006f: { int32_t L_18 = V_1; List_1_t4176035766 * L_19 = V_0; NullCheck((List_1_t4176035766 *)L_19); int32_t L_20 = List_1_get_Count_m1245201994((List_1_t4176035766 *)L_19, /*hidden argument*/List_1_get_Count_m1245201994_RuntimeMethod_var); if ((((int32_t)L_18) < ((int32_t)L_20))) { goto IL_000f; } } { return; } } #ifdef __clang__ #pragma clang diagnostic pop #endif #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Void UnityEngine.Events.UnityEvent`2<System.Object,System.Object>::.ctor() extern "C" void UnityEvent_2__ctor_m155249342_gshared (UnityEvent_2_t614268397 * __this, const RuntimeMethod* method) { { __this->set_m_InvokeArray_4((ObjectU5BU5D_t2843939325*)NULL); NullCheck((UnityEventBase_t3960448221 *)__this); UnityEventBase__ctor_m1851535676((UnityEventBase_t3960448221 *)__this, /*hidden argument*/NULL); return; } } // System.Reflection.MethodInfo UnityEngine.Events.UnityEvent`2<System.Object,System.Object>::FindMethod_Impl(System.String,System.Object) extern "C" MethodInfo_t * UnityEvent_2_FindMethod_Impl_m2569180594_gshared (UnityEvent_2_t614268397 * __this, String_t* ___name0, RuntimeObject * ___targetObj1, const RuntimeMethod* method) { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_method (UnityEvent_2_FindMethod_Impl_m2569180594_MetadataUsageId); s_Il2CppMethodInitialized = true; } MethodInfo_t * V_0 = NULL; { RuntimeObject * L_0 = ___targetObj1; String_t* L_1 = ___name0; TypeU5BU5D_t3940880105* L_2 = (TypeU5BU5D_t3940880105*)((TypeU5BU5D_t3940880105*)SZArrayNew(TypeU5BU5D_t3940880105_il2cpp_TypeInfo_var, (uint32_t)2)); RuntimeTypeHandle_t3027515415 L_3 = { reinterpret_cast<intptr_t> (IL2CPP_RGCTX_TYPE(method->declaring_type->rgctx_data, 0)) }; IL2CPP_RUNTIME_CLASS_INIT(Type_t_il2cpp_TypeInfo_var); Type_t * L_4 = Type_GetTypeFromHandle_m1620074514(NULL /*static, unused*/, (RuntimeTypeHandle_t3027515415 )L_3, /*hidden argument*/NULL); NullCheck(L_2); ArrayElementTypeCheck (L_2, L_4); (L_2)->SetAt(static_cast<il2cpp_array_size_t>(0), (Type_t *)L_4); TypeU5BU5D_t3940880105* L_5 = (TypeU5BU5D_t3940880105*)L_2; RuntimeTypeHandle_t3027515415 L_6 = { reinterpret_cast<intptr_t> (IL2CPP_RGCTX_TYPE(method->declaring_type->rgctx_data, 1)) }; Type_t * L_7 = Type_GetTypeFromHandle_m1620074514(NULL /*static, unused*/, (RuntimeTypeHandle_t3027515415 )L_6, /*hidden argument*/NULL); NullCheck(L_5); ArrayElementTypeCheck (L_5, L_7); (L_5)->SetAt(static_cast<il2cpp_array_size_t>(1), (Type_t *)L_7); MethodInfo_t * L_8 = UnityEventBase_GetValidMethodInfo_m3989987635(NULL /*static, unused*/, (RuntimeObject *)L_0, (String_t*)L_1, (TypeU5BU5D_t3940880105*)L_5, /*hidden argument*/NULL); V_0 = (MethodInfo_t *)L_8; goto IL_002e; } IL_002e: { MethodInfo_t * L_9 = V_0; return L_9; } } // UnityEngine.Events.BaseInvokableCall UnityEngine.Events.UnityEvent`2<System.Object,System.Object>::GetDelegate(System.Object,System.Reflection.MethodInfo) extern "C" BaseInvokableCall_t2703961024 * UnityEvent_2_GetDelegate_m3909669659_gshared (UnityEvent_2_t614268397 * __this, RuntimeObject * ___target0, MethodInfo_t * ___theFunction1, const RuntimeMethod* method) { BaseInvokableCall_t2703961024 * V_0 = NULL; { RuntimeObject * L_0 = ___target0; MethodInfo_t * L_1 = ___theFunction1; InvokableCall_2_t362407658 * L_2 = (InvokableCall_2_t362407658 *)il2cpp_codegen_object_new(IL2CPP_RGCTX_DATA(method->declaring_type->rgctx_data, 2)); (( void (*) (InvokableCall_2_t362407658 *, RuntimeObject *, MethodInfo_t *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 3)->methodPointer)(L_2, (RuntimeObject *)L_0, (MethodInfo_t *)L_1, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 3)); V_0 = (BaseInvokableCall_t2703961024 *)L_2; goto IL_000e; } IL_000e: { BaseInvokableCall_t2703961024 * L_3 = V_0; return L_3; } } #ifdef __clang__ #pragma clang diagnostic pop #endif #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Void UnityEngine.Events.UnityEvent`3<System.Object,System.Object,System.Object>::.ctor() extern "C" void UnityEvent_3__ctor_m3891569313_gshared (UnityEvent_3_t2404744798 * __this, const RuntimeMethod* method) { { __this->set_m_InvokeArray_4((ObjectU5BU5D_t2843939325*)NULL); NullCheck((UnityEventBase_t3960448221 *)__this); UnityEventBase__ctor_m1851535676((UnityEventBase_t3960448221 *)__this, /*hidden argument*/NULL); return; } } // System.Reflection.MethodInfo UnityEngine.Events.UnityEvent`3<System.Object,System.Object,System.Object>::FindMethod_Impl(System.String,System.Object) extern "C" MethodInfo_t * UnityEvent_3_FindMethod_Impl_m1640458315_gshared (UnityEvent_3_t2404744798 * __this, String_t* ___name0, RuntimeObject * ___targetObj1, const RuntimeMethod* method) { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_method (UnityEvent_3_FindMethod_Impl_m1640458315_MetadataUsageId); s_Il2CppMethodInitialized = true; } MethodInfo_t * V_0 = NULL; { RuntimeObject * L_0 = ___targetObj1; String_t* L_1 = ___name0; TypeU5BU5D_t3940880105* L_2 = (TypeU5BU5D_t3940880105*)((TypeU5BU5D_t3940880105*)SZArrayNew(TypeU5BU5D_t3940880105_il2cpp_TypeInfo_var, (uint32_t)3)); RuntimeTypeHandle_t3027515415 L_3 = { reinterpret_cast<intptr_t> (IL2CPP_RGCTX_TYPE(method->declaring_type->rgctx_data, 0)) }; IL2CPP_RUNTIME_CLASS_INIT(Type_t_il2cpp_TypeInfo_var); Type_t * L_4 = Type_GetTypeFromHandle_m1620074514(NULL /*static, unused*/, (RuntimeTypeHandle_t3027515415 )L_3, /*hidden argument*/NULL); NullCheck(L_2); ArrayElementTypeCheck (L_2, L_4); (L_2)->SetAt(static_cast<il2cpp_array_size_t>(0), (Type_t *)L_4); TypeU5BU5D_t3940880105* L_5 = (TypeU5BU5D_t3940880105*)L_2; RuntimeTypeHandle_t3027515415 L_6 = { reinterpret_cast<intptr_t> (IL2CPP_RGCTX_TYPE(method->declaring_type->rgctx_data, 1)) }; Type_t * L_7 = Type_GetTypeFromHandle_m1620074514(NULL /*static, unused*/, (RuntimeTypeHandle_t3027515415 )L_6, /*hidden argument*/NULL); NullCheck(L_5); ArrayElementTypeCheck (L_5, L_7); (L_5)->SetAt(static_cast<il2cpp_array_size_t>(1), (Type_t *)L_7); TypeU5BU5D_t3940880105* L_8 = (TypeU5BU5D_t3940880105*)L_5; RuntimeTypeHandle_t3027515415 L_9 = { reinterpret_cast<intptr_t> (IL2CPP_RGCTX_TYPE(method->declaring_type->rgctx_data, 2)) }; Type_t * L_10 = Type_GetTypeFromHandle_m1620074514(NULL /*static, unused*/, (RuntimeTypeHandle_t3027515415 )L_9, /*hidden argument*/NULL); NullCheck(L_8); ArrayElementTypeCheck (L_8, L_10); (L_8)->SetAt(static_cast<il2cpp_array_size_t>(2), (Type_t *)L_10); MethodInfo_t * L_11 = UnityEventBase_GetValidMethodInfo_m3989987635(NULL /*static, unused*/, (RuntimeObject *)L_0, (String_t*)L_1, (TypeU5BU5D_t3940880105*)L_8, /*hidden argument*/NULL); V_0 = (MethodInfo_t *)L_11; goto IL_003b; } IL_003b: { MethodInfo_t * L_12 = V_0; return L_12; } } // UnityEngine.Events.BaseInvokableCall UnityEngine.Events.UnityEvent`3<System.Object,System.Object,System.Object>::GetDelegate(System.Object,System.Reflection.MethodInfo) extern "C" BaseInvokableCall_t2703961024 * UnityEvent_3_GetDelegate_m1156357290_gshared (UnityEvent_3_t2404744798 * __this, RuntimeObject * ___target0, MethodInfo_t * ___theFunction1, const RuntimeMethod* method) { BaseInvokableCall_t2703961024 * V_0 = NULL; { RuntimeObject * L_0 = ___target0; MethodInfo_t * L_1 = ___theFunction1; InvokableCall_3_t4059188962 * L_2 = (InvokableCall_3_t4059188962 *)il2cpp_codegen_object_new(IL2CPP_RGCTX_DATA(method->declaring_type->rgctx_data, 3)); (( void (*) (InvokableCall_3_t4059188962 *, RuntimeObject *, MethodInfo_t *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 4)->methodPointer)(L_2, (RuntimeObject *)L_0, (MethodInfo_t *)L_1, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 4)); V_0 = (BaseInvokableCall_t2703961024 *)L_2; goto IL_000e; } IL_000e: { BaseInvokableCall_t2703961024 * L_3 = V_0; return L_3; } } #ifdef __clang__ #pragma clang diagnostic pop #endif #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Void UnityEngine.Events.UnityEvent`4<System.Object,System.Object,System.Object,System.Object>::.ctor() extern "C" void UnityEvent_4__ctor_m831487108_gshared (UnityEvent_4_t4085588227 * __this, const RuntimeMethod* method) { { __this->set_m_InvokeArray_4((ObjectU5BU5D_t2843939325*)NULL); NullCheck((UnityEventBase_t3960448221 *)__this); UnityEventBase__ctor_m1851535676((UnityEventBase_t3960448221 *)__this, /*hidden argument*/NULL); return; } } // System.Reflection.MethodInfo UnityEngine.Events.UnityEvent`4<System.Object,System.Object,System.Object,System.Object>::FindMethod_Impl(System.String,System.Object) extern "C" MethodInfo_t * UnityEvent_4_FindMethod_Impl_m3410547086_gshared (UnityEvent_4_t4085588227 * __this, String_t* ___name0, RuntimeObject * ___targetObj1, const RuntimeMethod* method) { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_method (UnityEvent_4_FindMethod_Impl_m3410547086_MetadataUsageId); s_Il2CppMethodInitialized = true; } MethodInfo_t * V_0 = NULL; { RuntimeObject * L_0 = ___targetObj1; String_t* L_1 = ___name0; TypeU5BU5D_t3940880105* L_2 = (TypeU5BU5D_t3940880105*)((TypeU5BU5D_t3940880105*)SZArrayNew(TypeU5BU5D_t3940880105_il2cpp_TypeInfo_var, (uint32_t)4)); RuntimeTypeHandle_t3027515415 L_3 = { reinterpret_cast<intptr_t> (IL2CPP_RGCTX_TYPE(method->declaring_type->rgctx_data, 0)) }; IL2CPP_RUNTIME_CLASS_INIT(Type_t_il2cpp_TypeInfo_var); Type_t * L_4 = Type_GetTypeFromHandle_m1620074514(NULL /*static, unused*/, (RuntimeTypeHandle_t3027515415 )L_3, /*hidden argument*/NULL); NullCheck(L_2); ArrayElementTypeCheck (L_2, L_4); (L_2)->SetAt(static_cast<il2cpp_array_size_t>(0), (Type_t *)L_4); TypeU5BU5D_t3940880105* L_5 = (TypeU5BU5D_t3940880105*)L_2; RuntimeTypeHandle_t3027515415 L_6 = { reinterpret_cast<intptr_t> (IL2CPP_RGCTX_TYPE(method->declaring_type->rgctx_data, 1)) }; Type_t * L_7 = Type_GetTypeFromHandle_m1620074514(NULL /*static, unused*/, (RuntimeTypeHandle_t3027515415 )L_6, /*hidden argument*/NULL); NullCheck(L_5); ArrayElementTypeCheck (L_5, L_7); (L_5)->SetAt(static_cast<il2cpp_array_size_t>(1), (Type_t *)L_7); TypeU5BU5D_t3940880105* L_8 = (TypeU5BU5D_t3940880105*)L_5; RuntimeTypeHandle_t3027515415 L_9 = { reinterpret_cast<intptr_t> (IL2CPP_RGCTX_TYPE(method->declaring_type->rgctx_data, 2)) }; Type_t * L_10 = Type_GetTypeFromHandle_m1620074514(NULL /*static, unused*/, (RuntimeTypeHandle_t3027515415 )L_9, /*hidden argument*/NULL); NullCheck(L_8); ArrayElementTypeCheck (L_8, L_10); (L_8)->SetAt(static_cast<il2cpp_array_size_t>(2), (Type_t *)L_10); TypeU5BU5D_t3940880105* L_11 = (TypeU5BU5D_t3940880105*)L_8; RuntimeTypeHandle_t3027515415 L_12 = { reinterpret_cast<intptr_t> (IL2CPP_RGCTX_TYPE(method->declaring_type->rgctx_data, 3)) }; Type_t * L_13 = Type_GetTypeFromHandle_m1620074514(NULL /*static, unused*/, (RuntimeTypeHandle_t3027515415 )L_12, /*hidden argument*/NULL); NullCheck(L_11); ArrayElementTypeCheck (L_11, L_13); (L_11)->SetAt(static_cast<il2cpp_array_size_t>(3), (Type_t *)L_13); MethodInfo_t * L_14 = UnityEventBase_GetValidMethodInfo_m3989987635(NULL /*static, unused*/, (RuntimeObject *)L_0, (String_t*)L_1, (TypeU5BU5D_t3940880105*)L_11, /*hidden argument*/NULL); V_0 = (MethodInfo_t *)L_14; goto IL_0048; } IL_0048: { MethodInfo_t * L_15 = V_0; return L_15; } } // UnityEngine.Events.BaseInvokableCall UnityEngine.Events.UnityEvent`4<System.Object,System.Object,System.Object,System.Object>::GetDelegate(System.Object,System.Reflection.MethodInfo) extern "C" BaseInvokableCall_t2703961024 * UnityEvent_4_GetDelegate_m3111342790_gshared (UnityEvent_4_t4085588227 * __this, RuntimeObject * ___target0, MethodInfo_t * ___theFunction1, const RuntimeMethod* method) { BaseInvokableCall_t2703961024 * V_0 = NULL; { RuntimeObject * L_0 = ___target0; MethodInfo_t * L_1 = ___theFunction1; InvokableCall_4_t2756980746 * L_2 = (InvokableCall_4_t2756980746 *)il2cpp_codegen_object_new(IL2CPP_RGCTX_DATA(method->declaring_type->rgctx_data, 4)); (( void (*) (InvokableCall_4_t2756980746 *, RuntimeObject *, MethodInfo_t *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 5)->methodPointer)(L_2, (RuntimeObject *)L_0, (MethodInfo_t *)L_1, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 5)); V_0 = (BaseInvokableCall_t2703961024 *)L_2; goto IL_000e; } IL_000e: { BaseInvokableCall_t2703961024 * L_3 = V_0; return L_3; } } #ifdef __clang__ #pragma clang diagnostic pop #endif #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Void UnityEngine.EventSystems.ExecuteEvents/EventFunction`1<System.Object>::.ctor(System.Object,System.IntPtr) extern "C" void EventFunction_1__ctor_m4292798223_gshared (EventFunction_1_t1764640198 * __this, RuntimeObject * ___object0, intptr_t ___method1, const RuntimeMethod* method) { __this->set_method_ptr_0(il2cpp_codegen_get_method_pointer((RuntimeMethod*)___method1)); __this->set_method_3(___method1); __this->set_m_target_2(___object0); } // System.Void UnityEngine.EventSystems.ExecuteEvents/EventFunction`1<System.Object>::Invoke(T1,UnityEngine.EventSystems.BaseEventData) extern "C" void EventFunction_1_Invoke_m2429482587_gshared (EventFunction_1_t1764640198 * __this, RuntimeObject * ___handler0, BaseEventData_t3903027533 * ___eventData1, const RuntimeMethod* method) { if(__this->get_prev_9() != NULL) { EventFunction_1_Invoke_m2429482587((EventFunction_1_t1764640198 *)__this->get_prev_9(), ___handler0, ___eventData1, method); } Il2CppMethodPointer targetMethodPointer = __this->get_method_ptr_0(); RuntimeMethod* targetMethod = (RuntimeMethod*)(__this->get_method_3()); RuntimeObject* targetThis = __this->get_m_target_2(); il2cpp_codegen_raise_execution_engine_exception_if_method_is_not_found(targetMethod); bool ___methodIsStatic = MethodIsStatic(targetMethod); if (___methodIsStatic) { if (il2cpp_codegen_method_parameter_count(targetMethod) == 2) { // open typedef void (*FunctionPointerType) (RuntimeObject *, RuntimeObject *, BaseEventData_t3903027533 *, const RuntimeMethod*); ((FunctionPointerType)targetMethodPointer)(NULL, ___handler0, ___eventData1, targetMethod); } else { // closed typedef void (*FunctionPointerType) (RuntimeObject *, void*, RuntimeObject *, BaseEventData_t3903027533 *, const RuntimeMethod*); ((FunctionPointerType)targetMethodPointer)(NULL, targetThis, ___handler0, ___eventData1, targetMethod); } } else { if (il2cpp_codegen_method_parameter_count(targetMethod) == 2) { // closed typedef void (*FunctionPointerType) (void*, RuntimeObject *, BaseEventData_t3903027533 *, const RuntimeMethod*); ((FunctionPointerType)targetMethodPointer)(targetThis, ___handler0, ___eventData1, targetMethod); } else { // open typedef void (*FunctionPointerType) (RuntimeObject *, BaseEventData_t3903027533 *, const RuntimeMethod*); ((FunctionPointerType)targetMethodPointer)(___handler0, ___eventData1, targetMethod); } } } // System.IAsyncResult UnityEngine.EventSystems.ExecuteEvents/EventFunction`1<System.Object>::BeginInvoke(T1,UnityEngine.EventSystems.BaseEventData,System.AsyncCallback,System.Object) extern "C" RuntimeObject* EventFunction_1_BeginInvoke_m117707366_gshared (EventFunction_1_t1764640198 * __this, RuntimeObject * ___handler0, BaseEventData_t3903027533 * ___eventData1, AsyncCallback_t3962456242 * ___callback2, RuntimeObject * ___object3, const RuntimeMethod* method) { void *__d_args[3] = {0}; __d_args[0] = ___handler0; __d_args[1] = ___eventData1; return (RuntimeObject*)il2cpp_codegen_delegate_begin_invoke((RuntimeDelegate*)__this, __d_args, (RuntimeDelegate*)___callback2, (RuntimeObject*)___object3); } // System.Void UnityEngine.EventSystems.ExecuteEvents/EventFunction`1<System.Object>::EndInvoke(System.IAsyncResult) extern "C" void EventFunction_1_EndInvoke_m1395098989_gshared (EventFunction_1_t1764640198 * __this, RuntimeObject* ___result0, const RuntimeMethod* method) { il2cpp_codegen_delegate_end_invoke((Il2CppAsyncResult*) ___result0, 0); } #ifdef __clang__ #pragma clang diagnostic pop #endif #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Void UnityEngine.UI.Collections.IndexedSet`1<System.Object>::.ctor() extern "C" void IndexedSet_1__ctor_m2250384602_gshared (IndexedSet_1_t234526808 * __this, const RuntimeMethod* method) { { List_1_t257213610 * L_0 = (List_1_t257213610 *)il2cpp_codegen_object_new(IL2CPP_RGCTX_DATA(method->declaring_type->rgctx_data, 0)); (( void (*) (List_1_t257213610 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 1)->methodPointer)(L_0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 1)); __this->set_m_List_0(L_0); Dictionary_2_t3384741 * L_1 = (Dictionary_2_t3384741 *)il2cpp_codegen_object_new(IL2CPP_RGCTX_DATA(method->declaring_type->rgctx_data, 2)); (( void (*) (Dictionary_2_t3384741 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 3)->methodPointer)(L_1, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 3)); __this->set_m_Dictionary_1(L_1); NullCheck((RuntimeObject *)__this); Object__ctor_m297566312((RuntimeObject *)__this, /*hidden argument*/NULL); return; } } // System.Void UnityEngine.UI.Collections.IndexedSet`1<System.Object>::Add(T) extern "C" void IndexedSet_1_Add_m459949375_gshared (IndexedSet_1_t234526808 * __this, RuntimeObject * ___item0, const RuntimeMethod* method) { { List_1_t257213610 * L_0 = (List_1_t257213610 *)__this->get_m_List_0(); RuntimeObject * L_1 = ___item0; NullCheck((List_1_t257213610 *)L_0); (( void (*) (List_1_t257213610 *, RuntimeObject *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 4)->methodPointer)((List_1_t257213610 *)L_0, (RuntimeObject *)L_1, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 4)); Dictionary_2_t3384741 * L_2 = (Dictionary_2_t3384741 *)__this->get_m_Dictionary_1(); RuntimeObject * L_3 = ___item0; List_1_t257213610 * L_4 = (List_1_t257213610 *)__this->get_m_List_0(); NullCheck((List_1_t257213610 *)L_4); int32_t L_5 = (( int32_t (*) (List_1_t257213610 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 5)->methodPointer)((List_1_t257213610 *)L_4, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 5)); NullCheck((Dictionary_2_t3384741 *)L_2); (( void (*) (Dictionary_2_t3384741 *, RuntimeObject *, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 6)->methodPointer)((Dictionary_2_t3384741 *)L_2, (RuntimeObject *)L_3, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_5, (int32_t)1)), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 6)); return; } } // System.Boolean UnityEngine.UI.Collections.IndexedSet`1<System.Object>::AddUnique(T) extern "C" bool IndexedSet_1_AddUnique_m861843892_gshared (IndexedSet_1_t234526808 * __this, RuntimeObject * ___item0, const RuntimeMethod* method) { bool V_0 = false; { Dictionary_2_t3384741 * L_0 = (Dictionary_2_t3384741 *)__this->get_m_Dictionary_1(); RuntimeObject * L_1 = ___item0; NullCheck((Dictionary_2_t3384741 *)L_0); bool L_2 = (( bool (*) (Dictionary_2_t3384741 *, RuntimeObject *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 7)->methodPointer)((Dictionary_2_t3384741 *)L_0, (RuntimeObject *)L_1, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 7)); if (!L_2) { goto IL_0019; } } { V_0 = (bool)0; goto IL_0045; } IL_0019: { List_1_t257213610 * L_3 = (List_1_t257213610 *)__this->get_m_List_0(); RuntimeObject * L_4 = ___item0; NullCheck((List_1_t257213610 *)L_3); (( void (*) (List_1_t257213610 *, RuntimeObject *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 4)->methodPointer)((List_1_t257213610 *)L_3, (RuntimeObject *)L_4, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 4)); Dictionary_2_t3384741 * L_5 = (Dictionary_2_t3384741 *)__this->get_m_Dictionary_1(); RuntimeObject * L_6 = ___item0; List_1_t257213610 * L_7 = (List_1_t257213610 *)__this->get_m_List_0(); NullCheck((List_1_t257213610 *)L_7); int32_t L_8 = (( int32_t (*) (List_1_t257213610 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 5)->methodPointer)((List_1_t257213610 *)L_7, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 5)); NullCheck((Dictionary_2_t3384741 *)L_5); (( void (*) (Dictionary_2_t3384741 *, RuntimeObject *, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 6)->methodPointer)((Dictionary_2_t3384741 *)L_5, (RuntimeObject *)L_6, (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_8, (int32_t)1)), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 6)); V_0 = (bool)1; goto IL_0045; } IL_0045: { bool L_9 = V_0; return L_9; } } // System.Boolean UnityEngine.UI.Collections.IndexedSet`1<System.Object>::Remove(T) extern "C" bool IndexedSet_1_Remove_m4118314453_gshared (IndexedSet_1_t234526808 * __this, RuntimeObject * ___item0, const RuntimeMethod* method) { int32_t V_0 = 0; bool V_1 = false; { V_0 = (int32_t)(-1); Dictionary_2_t3384741 * L_0 = (Dictionary_2_t3384741 *)__this->get_m_Dictionary_1(); RuntimeObject * L_1 = ___item0; NullCheck((Dictionary_2_t3384741 *)L_0); bool L_2 = (( bool (*) (Dictionary_2_t3384741 *, RuntimeObject *, int32_t*, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 8)->methodPointer)((Dictionary_2_t3384741 *)L_0, (RuntimeObject *)L_1, (int32_t*)(&V_0), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 8)); if (L_2) { goto IL_001d; } } { V_1 = (bool)0; goto IL_002b; } IL_001d: { int32_t L_3 = V_0; NullCheck((IndexedSet_1_t234526808 *)__this); (( void (*) (IndexedSet_1_t234526808 *, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 9)->methodPointer)((IndexedSet_1_t234526808 *)__this, (int32_t)L_3, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 9)); V_1 = (bool)1; goto IL_002b; } IL_002b: { bool L_4 = V_1; return L_4; } } // System.Collections.Generic.IEnumerator`1<T> UnityEngine.UI.Collections.IndexedSet`1<System.Object>::GetEnumerator() extern "C" RuntimeObject* IndexedSet_1_GetEnumerator_m3750514392_gshared (IndexedSet_1_t234526808 * __this, const RuntimeMethod* method) { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_method (IndexedSet_1_GetEnumerator_m3750514392_MetadataUsageId); s_Il2CppMethodInitialized = true; } { NotImplementedException_t3489357830 * L_0 = (NotImplementedException_t3489357830 *)il2cpp_codegen_object_new(NotImplementedException_t3489357830_il2cpp_TypeInfo_var); NotImplementedException__ctor_m3058704252(L_0, /*hidden argument*/NULL); IL2CPP_RAISE_MANAGED_EXCEPTION(L_0); } } // System.Collections.IEnumerator UnityEngine.UI.Collections.IndexedSet`1<System.Object>::System.Collections.IEnumerable.GetEnumerator() extern "C" RuntimeObject* IndexedSet_1_System_Collections_IEnumerable_GetEnumerator_m190983904_gshared (IndexedSet_1_t234526808 * __this, const RuntimeMethod* method) { RuntimeObject* V_0 = NULL; { NullCheck((IndexedSet_1_t234526808 *)__this); RuntimeObject* L_0 = (( RuntimeObject* (*) (IndexedSet_1_t234526808 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 10)->methodPointer)((IndexedSet_1_t234526808 *)__this, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 10)); V_0 = (RuntimeObject*)L_0; goto IL_000d; } IL_000d: { RuntimeObject* L_1 = V_0; return L_1; } } // System.Void UnityEngine.UI.Collections.IndexedSet`1<System.Object>::Clear() extern "C" void IndexedSet_1_Clear_m4036265083_gshared (IndexedSet_1_t234526808 * __this, const RuntimeMethod* method) { { List_1_t257213610 * L_0 = (List_1_t257213610 *)__this->get_m_List_0(); NullCheck((List_1_t257213610 *)L_0); (( void (*) (List_1_t257213610 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 11)->methodPointer)((List_1_t257213610 *)L_0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 11)); Dictionary_2_t3384741 * L_1 = (Dictionary_2_t3384741 *)__this->get_m_Dictionary_1(); NullCheck((Dictionary_2_t3384741 *)L_1); (( void (*) (Dictionary_2_t3384741 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 12)->methodPointer)((Dictionary_2_t3384741 *)L_1, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 12)); return; } } // System.Boolean UnityEngine.UI.Collections.IndexedSet`1<System.Object>::Contains(T) extern "C" bool IndexedSet_1_Contains_m1525966688_gshared (IndexedSet_1_t234526808 * __this, RuntimeObject * ___item0, const RuntimeMethod* method) { bool V_0 = false; { Dictionary_2_t3384741 * L_0 = (Dictionary_2_t3384741 *)__this->get_m_Dictionary_1(); RuntimeObject * L_1 = ___item0; NullCheck((Dictionary_2_t3384741 *)L_0); bool L_2 = (( bool (*) (Dictionary_2_t3384741 *, RuntimeObject *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 7)->methodPointer)((Dictionary_2_t3384741 *)L_0, (RuntimeObject *)L_1, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 7)); V_0 = (bool)L_2; goto IL_0013; } IL_0013: { bool L_3 = V_0; return L_3; } } // System.Void UnityEngine.UI.Collections.IndexedSet`1<System.Object>::CopyTo(T[],System.Int32) extern "C" void IndexedSet_1_CopyTo_m4232548259_gshared (IndexedSet_1_t234526808 * __this, ObjectU5BU5D_t2843939325* ___array0, int32_t ___arrayIndex1, const RuntimeMethod* method) { { List_1_t257213610 * L_0 = (List_1_t257213610 *)__this->get_m_List_0(); ObjectU5BU5D_t2843939325* L_1 = ___array0; int32_t L_2 = ___arrayIndex1; NullCheck((List_1_t257213610 *)L_0); (( void (*) (List_1_t257213610 *, ObjectU5BU5D_t2843939325*, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 13)->methodPointer)((List_1_t257213610 *)L_0, (ObjectU5BU5D_t2843939325*)L_1, (int32_t)L_2, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 13)); return; } } // System.Int32 UnityEngine.UI.Collections.IndexedSet`1<System.Object>::get_Count() extern "C" int32_t IndexedSet_1_get_Count_m2591381675_gshared (IndexedSet_1_t234526808 * __this, const RuntimeMethod* method) { int32_t V_0 = 0; { List_1_t257213610 * L_0 = (List_1_t257213610 *)__this->get_m_List_0(); NullCheck((List_1_t257213610 *)L_0); int32_t L_1 = (( int32_t (*) (List_1_t257213610 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 5)->methodPointer)((List_1_t257213610 *)L_0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 5)); V_0 = (int32_t)L_1; goto IL_0012; } IL_0012: { int32_t L_2 = V_0; return L_2; } } // System.Boolean UnityEngine.UI.Collections.IndexedSet`1<System.Object>::get_IsReadOnly() extern "C" bool IndexedSet_1_get_IsReadOnly_m1939064765_gshared (IndexedSet_1_t234526808 * __this, const RuntimeMethod* method) { bool V_0 = false; { V_0 = (bool)0; goto IL_0008; } IL_0008: { bool L_0 = V_0; return L_0; } } // System.Int32 UnityEngine.UI.Collections.IndexedSet`1<System.Object>::IndexOf(T) extern "C" int32_t IndexedSet_1_IndexOf_m241693686_gshared (IndexedSet_1_t234526808 * __this, RuntimeObject * ___item0, const RuntimeMethod* method) { int32_t V_0 = 0; int32_t V_1 = 0; { V_0 = (int32_t)(-1); Dictionary_2_t3384741 * L_0 = (Dictionary_2_t3384741 *)__this->get_m_Dictionary_1(); RuntimeObject * L_1 = ___item0; NullCheck((Dictionary_2_t3384741 *)L_0); (( bool (*) (Dictionary_2_t3384741 *, RuntimeObject *, int32_t*, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 8)->methodPointer)((Dictionary_2_t3384741 *)L_0, (RuntimeObject *)L_1, (int32_t*)(&V_0), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 8)); int32_t L_2 = V_0; V_1 = (int32_t)L_2; goto IL_0019; } IL_0019: { int32_t L_3 = V_1; return L_3; } } // System.Void UnityEngine.UI.Collections.IndexedSet`1<System.Object>::Insert(System.Int32,T) extern "C" void IndexedSet_1_Insert_m1432638049_gshared (IndexedSet_1_t234526808 * __this, int32_t ___index0, RuntimeObject * ___item1, const RuntimeMethod* method) { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_method (IndexedSet_1_Insert_m1432638049_MetadataUsageId); s_Il2CppMethodInitialized = true; } { NotSupportedException_t1314879016 * L_0 = (NotSupportedException_t1314879016 *)il2cpp_codegen_object_new(NotSupportedException_t1314879016_il2cpp_TypeInfo_var); NotSupportedException__ctor_m2494070935(L_0, (String_t*)_stringLiteral3926843441, /*hidden argument*/NULL); IL2CPP_RAISE_MANAGED_EXCEPTION(L_0); } } // System.Void UnityEngine.UI.Collections.IndexedSet`1<System.Object>::RemoveAt(System.Int32) extern "C" void IndexedSet_1_RemoveAt_m3002732320_gshared (IndexedSet_1_t234526808 * __this, int32_t ___index0, const RuntimeMethod* method) { RuntimeObject * V_0 = NULL; int32_t V_1 = 0; RuntimeObject * V_2 = NULL; { List_1_t257213610 * L_0 = (List_1_t257213610 *)__this->get_m_List_0(); int32_t L_1 = ___index0; NullCheck((List_1_t257213610 *)L_0); RuntimeObject * L_2 = (( RuntimeObject * (*) (List_1_t257213610 *, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 14)->methodPointer)((List_1_t257213610 *)L_0, (int32_t)L_1, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 14)); V_0 = (RuntimeObject *)L_2; Dictionary_2_t3384741 * L_3 = (Dictionary_2_t3384741 *)__this->get_m_Dictionary_1(); RuntimeObject * L_4 = V_0; NullCheck((Dictionary_2_t3384741 *)L_3); (( bool (*) (Dictionary_2_t3384741 *, RuntimeObject *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 15)->methodPointer)((Dictionary_2_t3384741 *)L_3, (RuntimeObject *)L_4, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 15)); int32_t L_5 = ___index0; List_1_t257213610 * L_6 = (List_1_t257213610 *)__this->get_m_List_0(); NullCheck((List_1_t257213610 *)L_6); int32_t L_7 = (( int32_t (*) (List_1_t257213610 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 5)->methodPointer)((List_1_t257213610 *)L_6, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 5)); if ((!(((uint32_t)L_5) == ((uint32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_7, (int32_t)1)))))) { goto IL_003f; } } { List_1_t257213610 * L_8 = (List_1_t257213610 *)__this->get_m_List_0(); int32_t L_9 = ___index0; NullCheck((List_1_t257213610 *)L_8); (( void (*) (List_1_t257213610 *, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 16)->methodPointer)((List_1_t257213610 *)L_8, (int32_t)L_9, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 16)); goto IL_0082; } IL_003f: { List_1_t257213610 * L_10 = (List_1_t257213610 *)__this->get_m_List_0(); NullCheck((List_1_t257213610 *)L_10); int32_t L_11 = (( int32_t (*) (List_1_t257213610 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 5)->methodPointer)((List_1_t257213610 *)L_10, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 5)); V_1 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_11, (int32_t)1)); List_1_t257213610 * L_12 = (List_1_t257213610 *)__this->get_m_List_0(); int32_t L_13 = V_1; NullCheck((List_1_t257213610 *)L_12); RuntimeObject * L_14 = (( RuntimeObject * (*) (List_1_t257213610 *, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 14)->methodPointer)((List_1_t257213610 *)L_12, (int32_t)L_13, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 14)); V_2 = (RuntimeObject *)L_14; List_1_t257213610 * L_15 = (List_1_t257213610 *)__this->get_m_List_0(); int32_t L_16 = ___index0; RuntimeObject * L_17 = V_2; NullCheck((List_1_t257213610 *)L_15); (( void (*) (List_1_t257213610 *, int32_t, RuntimeObject *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 17)->methodPointer)((List_1_t257213610 *)L_15, (int32_t)L_16, (RuntimeObject *)L_17, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 17)); Dictionary_2_t3384741 * L_18 = (Dictionary_2_t3384741 *)__this->get_m_Dictionary_1(); RuntimeObject * L_19 = V_2; int32_t L_20 = ___index0; NullCheck((Dictionary_2_t3384741 *)L_18); (( void (*) (Dictionary_2_t3384741 *, RuntimeObject *, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 18)->methodPointer)((Dictionary_2_t3384741 *)L_18, (RuntimeObject *)L_19, (int32_t)L_20, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 18)); List_1_t257213610 * L_21 = (List_1_t257213610 *)__this->get_m_List_0(); int32_t L_22 = V_1; NullCheck((List_1_t257213610 *)L_21); (( void (*) (List_1_t257213610 *, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 16)->methodPointer)((List_1_t257213610 *)L_21, (int32_t)L_22, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 16)); } IL_0082: { return; } } // T UnityEngine.UI.Collections.IndexedSet`1<System.Object>::get_Item(System.Int32) extern "C" RuntimeObject * IndexedSet_1_get_Item_m3913508799_gshared (IndexedSet_1_t234526808 * __this, int32_t ___index0, const RuntimeMethod* method) { RuntimeObject * V_0 = NULL; { List_1_t257213610 * L_0 = (List_1_t257213610 *)__this->get_m_List_0(); int32_t L_1 = ___index0; NullCheck((List_1_t257213610 *)L_0); RuntimeObject * L_2 = (( RuntimeObject * (*) (List_1_t257213610 *, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 14)->methodPointer)((List_1_t257213610 *)L_0, (int32_t)L_1, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 14)); V_0 = (RuntimeObject *)L_2; goto IL_0013; } IL_0013: { RuntimeObject * L_3 = V_0; return L_3; } } // System.Void UnityEngine.UI.Collections.IndexedSet`1<System.Object>::set_Item(System.Int32,T) extern "C" void IndexedSet_1_set_Item_m4214546195_gshared (IndexedSet_1_t234526808 * __this, int32_t ___index0, RuntimeObject * ___value1, const RuntimeMethod* method) { RuntimeObject * V_0 = NULL; { List_1_t257213610 * L_0 = (List_1_t257213610 *)__this->get_m_List_0(); int32_t L_1 = ___index0; NullCheck((List_1_t257213610 *)L_0); RuntimeObject * L_2 = (( RuntimeObject * (*) (List_1_t257213610 *, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 14)->methodPointer)((List_1_t257213610 *)L_0, (int32_t)L_1, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 14)); V_0 = (RuntimeObject *)L_2; Dictionary_2_t3384741 * L_3 = (Dictionary_2_t3384741 *)__this->get_m_Dictionary_1(); RuntimeObject * L_4 = V_0; NullCheck((Dictionary_2_t3384741 *)L_3); (( bool (*) (Dictionary_2_t3384741 *, RuntimeObject *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 15)->methodPointer)((Dictionary_2_t3384741 *)L_3, (RuntimeObject *)L_4, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 15)); List_1_t257213610 * L_5 = (List_1_t257213610 *)__this->get_m_List_0(); int32_t L_6 = ___index0; RuntimeObject * L_7 = ___value1; NullCheck((List_1_t257213610 *)L_5); (( void (*) (List_1_t257213610 *, int32_t, RuntimeObject *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 17)->methodPointer)((List_1_t257213610 *)L_5, (int32_t)L_6, (RuntimeObject *)L_7, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 17)); Dictionary_2_t3384741 * L_8 = (Dictionary_2_t3384741 *)__this->get_m_Dictionary_1(); RuntimeObject * L_9 = V_0; int32_t L_10 = ___index0; NullCheck((Dictionary_2_t3384741 *)L_8); (( void (*) (Dictionary_2_t3384741 *, RuntimeObject *, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 6)->methodPointer)((Dictionary_2_t3384741 *)L_8, (RuntimeObject *)L_9, (int32_t)L_10, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 6)); return; } } // System.Void UnityEngine.UI.Collections.IndexedSet`1<System.Object>::Sort(System.Comparison`1<T>) extern "C" void IndexedSet_1_Sort_m2612539420_gshared (IndexedSet_1_t234526808 * __this, Comparison_1_t2855037343 * ___sortLayoutFunction0, const RuntimeMethod* method) { int32_t V_0 = 0; RuntimeObject * V_1 = NULL; { List_1_t257213610 * L_0 = (List_1_t257213610 *)__this->get_m_List_0(); Comparison_1_t2855037343 * L_1 = ___sortLayoutFunction0; NullCheck((List_1_t257213610 *)L_0); (( void (*) (List_1_t257213610 *, Comparison_1_t2855037343 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 19)->methodPointer)((List_1_t257213610 *)L_0, (Comparison_1_t2855037343 *)L_1, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 19)); V_0 = (int32_t)0; goto IL_0034; } IL_0014: { List_1_t257213610 * L_2 = (List_1_t257213610 *)__this->get_m_List_0(); int32_t L_3 = V_0; NullCheck((List_1_t257213610 *)L_2); RuntimeObject * L_4 = (( RuntimeObject * (*) (List_1_t257213610 *, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 14)->methodPointer)((List_1_t257213610 *)L_2, (int32_t)L_3, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 14)); V_1 = (RuntimeObject *)L_4; Dictionary_2_t3384741 * L_5 = (Dictionary_2_t3384741 *)__this->get_m_Dictionary_1(); RuntimeObject * L_6 = V_1; int32_t L_7 = V_0; NullCheck((Dictionary_2_t3384741 *)L_5); (( void (*) (Dictionary_2_t3384741 *, RuntimeObject *, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 18)->methodPointer)((Dictionary_2_t3384741 *)L_5, (RuntimeObject *)L_6, (int32_t)L_7, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 18)); int32_t L_8 = V_0; V_0 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_8, (int32_t)1)); } IL_0034: { int32_t L_9 = V_0; List_1_t257213610 * L_10 = (List_1_t257213610 *)__this->get_m_List_0(); NullCheck((List_1_t257213610 *)L_10); int32_t L_11 = (( int32_t (*) (List_1_t257213610 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 5)->methodPointer)((List_1_t257213610 *)L_10, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 5)); if ((((int32_t)L_9) < ((int32_t)L_11))) { goto IL_0014; } } { return; } } #ifdef __clang__ #pragma clang diagnostic pop #endif #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Void UnityEngine.UI.CoroutineTween.TweenRunner`1/<Start>c__Iterator0<UnityEngine.UI.CoroutineTween.ColorTween>::.ctor() extern "C" void U3CStartU3Ec__Iterator0__ctor_m3001242744_gshared (U3CStartU3Ec__Iterator0_t3860393442 * __this, const RuntimeMethod* method) { { NullCheck((RuntimeObject *)__this); Object__ctor_m297566312((RuntimeObject *)__this, /*hidden argument*/NULL); return; } } // System.Boolean UnityEngine.UI.CoroutineTween.TweenRunner`1/<Start>c__Iterator0<UnityEngine.UI.CoroutineTween.ColorTween>::MoveNext() extern "C" bool U3CStartU3Ec__Iterator0_MoveNext_m524356752_gshared (U3CStartU3Ec__Iterator0_t3860393442 * __this, const RuntimeMethod* method) { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_method (U3CStartU3Ec__Iterator0_MoveNext_m524356752_MetadataUsageId); s_Il2CppMethodInitialized = true; } uint32_t V_0 = 0; float G_B7_0 = 0.0f; U3CStartU3Ec__Iterator0_t3860393442 * G_B7_1 = NULL; float G_B6_0 = 0.0f; U3CStartU3Ec__Iterator0_t3860393442 * G_B6_1 = NULL; float G_B8_0 = 0.0f; float G_B8_1 = 0.0f; U3CStartU3Ec__Iterator0_t3860393442 * G_B8_2 = NULL; { int32_t L_0 = (int32_t)__this->get_U24PC_5(); V_0 = (uint32_t)L_0; __this->set_U24PC_5((-1)); uint32_t L_1 = V_0; switch (L_1) { case 0: { goto IL_0021; } case 1: { goto IL_00d5; } } } { goto IL_010f; } IL_0021: { ColorTween_t809614380 * L_2 = (ColorTween_t809614380 *)__this->get_address_of_tweenInfo_0(); bool L_3 = ColorTween_ValidTarget_m376919233((ColorTween_t809614380 *)L_2, /*hidden argument*/NULL); if (L_3) { goto IL_003d; } } { goto IL_010f; } IL_003d: { __this->set_U3CelapsedTimeU3E__0_1((0.0f)); goto IL_00d6; } IL_004d: { float L_4 = (float)__this->get_U3CelapsedTimeU3E__0_1(); ColorTween_t809614380 * L_5 = (ColorTween_t809614380 *)__this->get_address_of_tweenInfo_0(); bool L_6 = ColorTween_get_ignoreTimeScale_m1133957174((ColorTween_t809614380 *)L_5, /*hidden argument*/NULL); G_B6_0 = L_4; G_B6_1 = ((U3CStartU3Ec__Iterator0_t3860393442 *)(__this)); if (!L_6) { G_B7_0 = L_4; G_B7_1 = ((U3CStartU3Ec__Iterator0_t3860393442 *)(__this)); goto IL_0075; } } { float L_7 = Time_get_unscaledDeltaTime_m4270080131(NULL /*static, unused*/, /*hidden argument*/NULL); G_B8_0 = L_7; G_B8_1 = G_B6_0; G_B8_2 = ((U3CStartU3Ec__Iterator0_t3860393442 *)(G_B6_1)); goto IL_007a; } IL_0075: { float L_8 = Time_get_deltaTime_m372706562(NULL /*static, unused*/, /*hidden argument*/NULL); G_B8_0 = L_8; G_B8_1 = G_B7_0; G_B8_2 = ((U3CStartU3Ec__Iterator0_t3860393442 *)(G_B7_1)); } IL_007a: { NullCheck(G_B8_2); G_B8_2->set_U3CelapsedTimeU3E__0_1(((float)il2cpp_codegen_add((float)G_B8_1, (float)G_B8_0))); float L_9 = (float)__this->get_U3CelapsedTimeU3E__0_1(); ColorTween_t809614380 * L_10 = (ColorTween_t809614380 *)__this->get_address_of_tweenInfo_0(); float L_11 = ColorTween_get_duration_m3264097060((ColorTween_t809614380 *)L_10, /*hidden argument*/NULL); IL2CPP_RUNTIME_CLASS_INIT(Mathf_t3464937446_il2cpp_TypeInfo_var); float L_12 = Mathf_Clamp01_m56433566(NULL /*static, unused*/, (float)((float)((float)L_9/(float)L_11)), /*hidden argument*/NULL); __this->set_U3CpercentageU3E__1_2(L_12); ColorTween_t809614380 * L_13 = (ColorTween_t809614380 *)__this->get_address_of_tweenInfo_0(); float L_14 = (float)__this->get_U3CpercentageU3E__1_2(); ColorTween_TweenValue_m3895102629((ColorTween_t809614380 *)L_13, (float)L_14, /*hidden argument*/NULL); __this->set_U24current_3(NULL); bool L_15 = (bool)__this->get_U24disposing_4(); if (L_15) { goto IL_00d0; } } { __this->set_U24PC_5(1); } IL_00d0: { goto IL_0111; } IL_00d5: { } IL_00d6: { float L_16 = (float)__this->get_U3CelapsedTimeU3E__0_1(); ColorTween_t809614380 * L_17 = (ColorTween_t809614380 *)__this->get_address_of_tweenInfo_0(); float L_18 = ColorTween_get_duration_m3264097060((ColorTween_t809614380 *)L_17, /*hidden argument*/NULL); if ((((float)L_16) < ((float)L_18))) { goto IL_004d; } } { ColorTween_t809614380 * L_19 = (ColorTween_t809614380 *)__this->get_address_of_tweenInfo_0(); ColorTween_TweenValue_m3895102629((ColorTween_t809614380 *)L_19, (float)(1.0f), /*hidden argument*/NULL); __this->set_U24PC_5((-1)); } IL_010f: { return (bool)0; } IL_0111: { return (bool)1; } } // System.Object UnityEngine.UI.CoroutineTween.TweenRunner`1/<Start>c__Iterator0<UnityEngine.UI.CoroutineTween.ColorTween>::System.Collections.Generic.IEnumerator<object>.get_Current() extern "C" RuntimeObject * U3CStartU3Ec__Iterator0_System_Collections_Generic_IEnumeratorU3CobjectU3E_get_Current_m2852443338_gshared (U3CStartU3Ec__Iterator0_t3860393442 * __this, const RuntimeMethod* method) { RuntimeObject * V_0 = NULL; { RuntimeObject * L_0 = (RuntimeObject *)__this->get_U24current_3(); V_0 = (RuntimeObject *)L_0; goto IL_000c; } IL_000c: { RuntimeObject * L_1 = V_0; return L_1; } } // System.Object UnityEngine.UI.CoroutineTween.TweenRunner`1/<Start>c__Iterator0<UnityEngine.UI.CoroutineTween.ColorTween>::System.Collections.IEnumerator.get_Current() extern "C" RuntimeObject * U3CStartU3Ec__Iterator0_System_Collections_IEnumerator_get_Current_m3282639877_gshared (U3CStartU3Ec__Iterator0_t3860393442 * __this, const RuntimeMethod* method) { RuntimeObject * V_0 = NULL; { RuntimeObject * L_0 = (RuntimeObject *)__this->get_U24current_3(); V_0 = (RuntimeObject *)L_0; goto IL_000c; } IL_000c: { RuntimeObject * L_1 = V_0; return L_1; } } // System.Void UnityEngine.UI.CoroutineTween.TweenRunner`1/<Start>c__Iterator0<UnityEngine.UI.CoroutineTween.ColorTween>::Dispose() extern "C" void U3CStartU3Ec__Iterator0_Dispose_m261027331_gshared (U3CStartU3Ec__Iterator0_t3860393442 * __this, const RuntimeMethod* method) { { __this->set_U24disposing_4((bool)1); __this->set_U24PC_5((-1)); return; } } // System.Void UnityEngine.UI.CoroutineTween.TweenRunner`1/<Start>c__Iterator0<UnityEngine.UI.CoroutineTween.ColorTween>::Reset() extern "C" void U3CStartU3Ec__Iterator0_Reset_m3175110837_gshared (U3CStartU3Ec__Iterator0_t3860393442 * __this, const RuntimeMethod* method) { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_method (U3CStartU3Ec__Iterator0_Reset_m3175110837_MetadataUsageId); s_Il2CppMethodInitialized = true; } { NotSupportedException_t1314879016 * L_0 = (NotSupportedException_t1314879016 *)il2cpp_codegen_object_new(NotSupportedException_t1314879016_il2cpp_TypeInfo_var); NotSupportedException__ctor_m2730133172(L_0, /*hidden argument*/NULL); IL2CPP_RAISE_MANAGED_EXCEPTION(L_0); } } #ifdef __clang__ #pragma clang diagnostic pop #endif #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Void UnityEngine.UI.CoroutineTween.TweenRunner`1/<Start>c__Iterator0<UnityEngine.UI.CoroutineTween.FloatTween>::.ctor() extern "C" void U3CStartU3Ec__Iterator0__ctor_m2366347741_gshared (U3CStartU3Ec__Iterator0_t30141770 * __this, const RuntimeMethod* method) { { NullCheck((RuntimeObject *)__this); Object__ctor_m297566312((RuntimeObject *)__this, /*hidden argument*/NULL); return; } } // System.Boolean UnityEngine.UI.CoroutineTween.TweenRunner`1/<Start>c__Iterator0<UnityEngine.UI.CoroutineTween.FloatTween>::MoveNext() extern "C" bool U3CStartU3Ec__Iterator0_MoveNext_m4270440387_gshared (U3CStartU3Ec__Iterator0_t30141770 * __this, const RuntimeMethod* method) { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_method (U3CStartU3Ec__Iterator0_MoveNext_m4270440387_MetadataUsageId); s_Il2CppMethodInitialized = true; } uint32_t V_0 = 0; float G_B7_0 = 0.0f; U3CStartU3Ec__Iterator0_t30141770 * G_B7_1 = NULL; float G_B6_0 = 0.0f; U3CStartU3Ec__Iterator0_t30141770 * G_B6_1 = NULL; float G_B8_0 = 0.0f; float G_B8_1 = 0.0f; U3CStartU3Ec__Iterator0_t30141770 * G_B8_2 = NULL; { int32_t L_0 = (int32_t)__this->get_U24PC_5(); V_0 = (uint32_t)L_0; __this->set_U24PC_5((-1)); uint32_t L_1 = V_0; switch (L_1) { case 0: { goto IL_0021; } case 1: { goto IL_00d5; } } } { goto IL_010f; } IL_0021: { FloatTween_t1274330004 * L_2 = (FloatTween_t1274330004 *)__this->get_address_of_tweenInfo_0(); bool L_3 = FloatTween_ValidTarget_m885246038((FloatTween_t1274330004 *)L_2, /*hidden argument*/NULL); if (L_3) { goto IL_003d; } } { goto IL_010f; } IL_003d: { __this->set_U3CelapsedTimeU3E__0_1((0.0f)); goto IL_00d6; } IL_004d: { float L_4 = (float)__this->get_U3CelapsedTimeU3E__0_1(); FloatTween_t1274330004 * L_5 = (FloatTween_t1274330004 *)__this->get_address_of_tweenInfo_0(); bool L_6 = FloatTween_get_ignoreTimeScale_m322812475((FloatTween_t1274330004 *)L_5, /*hidden argument*/NULL); G_B6_0 = L_4; G_B6_1 = ((U3CStartU3Ec__Iterator0_t30141770 *)(__this)); if (!L_6) { G_B7_0 = L_4; G_B7_1 = ((U3CStartU3Ec__Iterator0_t30141770 *)(__this)); goto IL_0075; } } { float L_7 = Time_get_unscaledDeltaTime_m4270080131(NULL /*static, unused*/, /*hidden argument*/NULL); G_B8_0 = L_7; G_B8_1 = G_B6_0; G_B8_2 = ((U3CStartU3Ec__Iterator0_t30141770 *)(G_B6_1)); goto IL_007a; } IL_0075: { float L_8 = Time_get_deltaTime_m372706562(NULL /*static, unused*/, /*hidden argument*/NULL); G_B8_0 = L_8; G_B8_1 = G_B7_0; G_B8_2 = ((U3CStartU3Ec__Iterator0_t30141770 *)(G_B7_1)); } IL_007a: { NullCheck(G_B8_2); G_B8_2->set_U3CelapsedTimeU3E__0_1(((float)il2cpp_codegen_add((float)G_B8_1, (float)G_B8_0))); float L_9 = (float)__this->get_U3CelapsedTimeU3E__0_1(); FloatTween_t1274330004 * L_10 = (FloatTween_t1274330004 *)__this->get_address_of_tweenInfo_0(); float L_11 = FloatTween_get_duration_m1227071020((FloatTween_t1274330004 *)L_10, /*hidden argument*/NULL); IL2CPP_RUNTIME_CLASS_INIT(Mathf_t3464937446_il2cpp_TypeInfo_var); float L_12 = Mathf_Clamp01_m56433566(NULL /*static, unused*/, (float)((float)((float)L_9/(float)L_11)), /*hidden argument*/NULL); __this->set_U3CpercentageU3E__1_2(L_12); FloatTween_t1274330004 * L_13 = (FloatTween_t1274330004 *)__this->get_address_of_tweenInfo_0(); float L_14 = (float)__this->get_U3CpercentageU3E__1_2(); FloatTween_TweenValue_m52237061((FloatTween_t1274330004 *)L_13, (float)L_14, /*hidden argument*/NULL); __this->set_U24current_3(NULL); bool L_15 = (bool)__this->get_U24disposing_4(); if (L_15) { goto IL_00d0; } } { __this->set_U24PC_5(1); } IL_00d0: { goto IL_0111; } IL_00d5: { } IL_00d6: { float L_16 = (float)__this->get_U3CelapsedTimeU3E__0_1(); FloatTween_t1274330004 * L_17 = (FloatTween_t1274330004 *)__this->get_address_of_tweenInfo_0(); float L_18 = FloatTween_get_duration_m1227071020((FloatTween_t1274330004 *)L_17, /*hidden argument*/NULL); if ((((float)L_16) < ((float)L_18))) { goto IL_004d; } } { FloatTween_t1274330004 * L_19 = (FloatTween_t1274330004 *)__this->get_address_of_tweenInfo_0(); FloatTween_TweenValue_m52237061((FloatTween_t1274330004 *)L_19, (float)(1.0f), /*hidden argument*/NULL); __this->set_U24PC_5((-1)); } IL_010f: { return (bool)0; } IL_0111: { return (bool)1; } } // System.Object UnityEngine.UI.CoroutineTween.TweenRunner`1/<Start>c__Iterator0<UnityEngine.UI.CoroutineTween.FloatTween>::System.Collections.Generic.IEnumerator<object>.get_Current() extern "C" RuntimeObject * U3CStartU3Ec__Iterator0_System_Collections_Generic_IEnumeratorU3CobjectU3E_get_Current_m3156493053_gshared (U3CStartU3Ec__Iterator0_t30141770 * __this, const RuntimeMethod* method) { RuntimeObject * V_0 = NULL; { RuntimeObject * L_0 = (RuntimeObject *)__this->get_U24current_3(); V_0 = (RuntimeObject *)L_0; goto IL_000c; } IL_000c: { RuntimeObject * L_1 = V_0; return L_1; } } // System.Object UnityEngine.UI.CoroutineTween.TweenRunner`1/<Start>c__Iterator0<UnityEngine.UI.CoroutineTween.FloatTween>::System.Collections.IEnumerator.get_Current() extern "C" RuntimeObject * U3CStartU3Ec__Iterator0_System_Collections_IEnumerator_get_Current_m1677159983_gshared (U3CStartU3Ec__Iterator0_t30141770 * __this, const RuntimeMethod* method) { RuntimeObject * V_0 = NULL; { RuntimeObject * L_0 = (RuntimeObject *)__this->get_U24current_3(); V_0 = (RuntimeObject *)L_0; goto IL_000c; } IL_000c: { RuntimeObject * L_1 = V_0; return L_1; } } // System.Void UnityEngine.UI.CoroutineTween.TweenRunner`1/<Start>c__Iterator0<UnityEngine.UI.CoroutineTween.FloatTween>::Dispose() extern "C" void U3CStartU3Ec__Iterator0_Dispose_m3800412744_gshared (U3CStartU3Ec__Iterator0_t30141770 * __this, const RuntimeMethod* method) { { __this->set_U24disposing_4((bool)1); __this->set_U24PC_5((-1)); return; } } // System.Void UnityEngine.UI.CoroutineTween.TweenRunner`1/<Start>c__Iterator0<UnityEngine.UI.CoroutineTween.FloatTween>::Reset() extern "C" void U3CStartU3Ec__Iterator0_Reset_m656428886_gshared (U3CStartU3Ec__Iterator0_t30141770 * __this, const RuntimeMethod* method) { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_method (U3CStartU3Ec__Iterator0_Reset_m656428886_MetadataUsageId); s_Il2CppMethodInitialized = true; } { NotSupportedException_t1314879016 * L_0 = (NotSupportedException_t1314879016 *)il2cpp_codegen_object_new(NotSupportedException_t1314879016_il2cpp_TypeInfo_var); NotSupportedException__ctor_m2730133172(L_0, /*hidden argument*/NULL); IL2CPP_RAISE_MANAGED_EXCEPTION(L_0); } } #ifdef __clang__ #pragma clang diagnostic pop #endif #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Void UnityEngine.UI.CoroutineTween.TweenRunner`1<UnityEngine.UI.CoroutineTween.ColorTween>::.ctor() extern "C" void TweenRunner_1__ctor_m340723704_gshared (TweenRunner_1_t3055525458 * __this, const RuntimeMethod* method) { { NullCheck((RuntimeObject *)__this); Object__ctor_m297566312((RuntimeObject *)__this, /*hidden argument*/NULL); return; } } // System.Collections.IEnumerator UnityEngine.UI.CoroutineTween.TweenRunner`1<UnityEngine.UI.CoroutineTween.ColorTween>::Start(T) extern "C" RuntimeObject* TweenRunner_1_Start_m817364799_gshared (RuntimeObject * __this /* static, unused */, ColorTween_t809614380 ___tweenInfo0, const RuntimeMethod* method) { U3CStartU3Ec__Iterator0_t3860393442 * V_0 = NULL; RuntimeObject* V_1 = NULL; { U3CStartU3Ec__Iterator0_t3860393442 * L_0 = (U3CStartU3Ec__Iterator0_t3860393442 *)il2cpp_codegen_object_new(IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 0)); (( void (*) (U3CStartU3Ec__Iterator0_t3860393442 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 1)->methodPointer)(L_0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 1)); V_0 = (U3CStartU3Ec__Iterator0_t3860393442 *)L_0; U3CStartU3Ec__Iterator0_t3860393442 * L_1 = V_0; ColorTween_t809614380 L_2 = ___tweenInfo0; NullCheck(L_1); L_1->set_tweenInfo_0(L_2); U3CStartU3Ec__Iterator0_t3860393442 * L_3 = V_0; V_1 = (RuntimeObject*)L_3; goto IL_0014; } IL_0014: { RuntimeObject* L_4 = V_1; return L_4; } } // System.Void UnityEngine.UI.CoroutineTween.TweenRunner`1<UnityEngine.UI.CoroutineTween.ColorTween>::Init(UnityEngine.MonoBehaviour) extern "C" void TweenRunner_1_Init_m3026112660_gshared (TweenRunner_1_t3055525458 * __this, MonoBehaviour_t3962482529 * ___coroutineContainer0, const RuntimeMethod* method) { { MonoBehaviour_t3962482529 * L_0 = ___coroutineContainer0; __this->set_m_CoroutineContainer_0(L_0); return; } } // System.Void UnityEngine.UI.CoroutineTween.TweenRunner`1<UnityEngine.UI.CoroutineTween.ColorTween>::StartTween(T) extern "C" void TweenRunner_1_StartTween_m2247690200_gshared (TweenRunner_1_t3055525458 * __this, ColorTween_t809614380 ___info0, const RuntimeMethod* method) { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_method (TweenRunner_1_StartTween_m2247690200_MetadataUsageId); s_Il2CppMethodInitialized = true; } { MonoBehaviour_t3962482529 * L_0 = (MonoBehaviour_t3962482529 *)__this->get_m_CoroutineContainer_0(); IL2CPP_RUNTIME_CLASS_INIT(Object_t631007953_il2cpp_TypeInfo_var); bool L_1 = Object_op_Equality_m1810815630(NULL /*static, unused*/, (Object_t631007953 *)L_0, (Object_t631007953 *)NULL, /*hidden argument*/NULL); if (!L_1) { goto IL_0022; } } { IL2CPP_RUNTIME_CLASS_INIT(Debug_t3317548046_il2cpp_TypeInfo_var); Debug_LogWarning_m3752629331(NULL /*static, unused*/, (RuntimeObject *)_stringLiteral1132744560, /*hidden argument*/NULL); goto IL_0073; } IL_0022: { NullCheck((TweenRunner_1_t3055525458 *)__this); (( void (*) (TweenRunner_1_t3055525458 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 2)->methodPointer)((TweenRunner_1_t3055525458 *)__this, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 2)); MonoBehaviour_t3962482529 * L_2 = (MonoBehaviour_t3962482529 *)__this->get_m_CoroutineContainer_0(); NullCheck((Component_t1923634451 *)L_2); GameObject_t1113636619 * L_3 = Component_get_gameObject_m442555142((Component_t1923634451 *)L_2, /*hidden argument*/NULL); NullCheck((GameObject_t1113636619 *)L_3); bool L_4 = GameObject_get_activeInHierarchy_m2006396688((GameObject_t1113636619 *)L_3, /*hidden argument*/NULL); if (L_4) { goto IL_0055; } } { ColorTween_TweenValue_m3895102629((ColorTween_t809614380 *)(&___info0), (float)(1.0f), /*hidden argument*/NULL); goto IL_0073; } IL_0055: { ColorTween_t809614380 L_5 = ___info0; RuntimeObject* L_6 = (( RuntimeObject* (*) (RuntimeObject * /* static, unused */, ColorTween_t809614380 , const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 4)->methodPointer)(NULL /*static, unused*/, (ColorTween_t809614380 )L_5, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 4)); __this->set_m_Tween_1(L_6); MonoBehaviour_t3962482529 * L_7 = (MonoBehaviour_t3962482529 *)__this->get_m_CoroutineContainer_0(); RuntimeObject* L_8 = (RuntimeObject*)__this->get_m_Tween_1(); NullCheck((MonoBehaviour_t3962482529 *)L_7); MonoBehaviour_StartCoroutine_m3411253000((MonoBehaviour_t3962482529 *)L_7, (RuntimeObject*)L_8, /*hidden argument*/NULL); } IL_0073: { return; } } // System.Void UnityEngine.UI.CoroutineTween.TweenRunner`1<UnityEngine.UI.CoroutineTween.ColorTween>::StopTween() extern "C" void TweenRunner_1_StopTween_m1830357468_gshared (TweenRunner_1_t3055525458 * __this, const RuntimeMethod* method) { { RuntimeObject* L_0 = (RuntimeObject*)__this->get_m_Tween_1(); if (!L_0) { goto IL_0026; } } { MonoBehaviour_t3962482529 * L_1 = (MonoBehaviour_t3962482529 *)__this->get_m_CoroutineContainer_0(); RuntimeObject* L_2 = (RuntimeObject*)__this->get_m_Tween_1(); NullCheck((MonoBehaviour_t3962482529 *)L_1); MonoBehaviour_StopCoroutine_m615723318((MonoBehaviour_t3962482529 *)L_1, (RuntimeObject*)L_2, /*hidden argument*/NULL); __this->set_m_Tween_1((RuntimeObject*)NULL); } IL_0026: { return; } } #ifdef __clang__ #pragma clang diagnostic pop #endif #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Void UnityEngine.UI.CoroutineTween.TweenRunner`1<UnityEngine.UI.CoroutineTween.FloatTween>::.ctor() extern "C" void TweenRunner_1__ctor_m3053831591_gshared (TweenRunner_1_t3520241082 * __this, const RuntimeMethod* method) { { NullCheck((RuntimeObject *)__this); Object__ctor_m297566312((RuntimeObject *)__this, /*hidden argument*/NULL); return; } } // System.Collections.IEnumerator UnityEngine.UI.CoroutineTween.TweenRunner`1<UnityEngine.UI.CoroutineTween.FloatTween>::Start(T) extern "C" RuntimeObject* TweenRunner_1_Start_m3757154622_gshared (RuntimeObject * __this /* static, unused */, FloatTween_t1274330004 ___tweenInfo0, const RuntimeMethod* method) { U3CStartU3Ec__Iterator0_t30141770 * V_0 = NULL; RuntimeObject* V_1 = NULL; { U3CStartU3Ec__Iterator0_t30141770 * L_0 = (U3CStartU3Ec__Iterator0_t30141770 *)il2cpp_codegen_object_new(IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 0)); (( void (*) (U3CStartU3Ec__Iterator0_t30141770 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 1)->methodPointer)(L_0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 1)); V_0 = (U3CStartU3Ec__Iterator0_t30141770 *)L_0; U3CStartU3Ec__Iterator0_t30141770 * L_1 = V_0; FloatTween_t1274330004 L_2 = ___tweenInfo0; NullCheck(L_1); L_1->set_tweenInfo_0(L_2); U3CStartU3Ec__Iterator0_t30141770 * L_3 = V_0; V_1 = (RuntimeObject*)L_3; goto IL_0014; } IL_0014: { RuntimeObject* L_4 = V_1; return L_4; } } // System.Void UnityEngine.UI.CoroutineTween.TweenRunner`1<UnityEngine.UI.CoroutineTween.FloatTween>::Init(UnityEngine.MonoBehaviour) extern "C" void TweenRunner_1_Init_m1266084429_gshared (TweenRunner_1_t3520241082 * __this, MonoBehaviour_t3962482529 * ___coroutineContainer0, const RuntimeMethod* method) { { MonoBehaviour_t3962482529 * L_0 = ___coroutineContainer0; __this->set_m_CoroutineContainer_0(L_0); return; } } // System.Void UnityEngine.UI.CoroutineTween.TweenRunner`1<UnityEngine.UI.CoroutineTween.FloatTween>::StartTween(T) extern "C" void TweenRunner_1_StartTween_m1055628540_gshared (TweenRunner_1_t3520241082 * __this, FloatTween_t1274330004 ___info0, const RuntimeMethod* method) { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_method (TweenRunner_1_StartTween_m1055628540_MetadataUsageId); s_Il2CppMethodInitialized = true; } { MonoBehaviour_t3962482529 * L_0 = (MonoBehaviour_t3962482529 *)__this->get_m_CoroutineContainer_0(); IL2CPP_RUNTIME_CLASS_INIT(Object_t631007953_il2cpp_TypeInfo_var); bool L_1 = Object_op_Equality_m1810815630(NULL /*static, unused*/, (Object_t631007953 *)L_0, (Object_t631007953 *)NULL, /*hidden argument*/NULL); if (!L_1) { goto IL_0022; } } { IL2CPP_RUNTIME_CLASS_INIT(Debug_t3317548046_il2cpp_TypeInfo_var); Debug_LogWarning_m3752629331(NULL /*static, unused*/, (RuntimeObject *)_stringLiteral1132744560, /*hidden argument*/NULL); goto IL_0073; } IL_0022: { NullCheck((TweenRunner_1_t3520241082 *)__this); (( void (*) (TweenRunner_1_t3520241082 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 2)->methodPointer)((TweenRunner_1_t3520241082 *)__this, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 2)); MonoBehaviour_t3962482529 * L_2 = (MonoBehaviour_t3962482529 *)__this->get_m_CoroutineContainer_0(); NullCheck((Component_t1923634451 *)L_2); GameObject_t1113636619 * L_3 = Component_get_gameObject_m442555142((Component_t1923634451 *)L_2, /*hidden argument*/NULL); NullCheck((GameObject_t1113636619 *)L_3); bool L_4 = GameObject_get_activeInHierarchy_m2006396688((GameObject_t1113636619 *)L_3, /*hidden argument*/NULL); if (L_4) { goto IL_0055; } } { FloatTween_TweenValue_m52237061((FloatTween_t1274330004 *)(&___info0), (float)(1.0f), /*hidden argument*/NULL); goto IL_0073; } IL_0055: { FloatTween_t1274330004 L_5 = ___info0; RuntimeObject* L_6 = (( RuntimeObject* (*) (RuntimeObject * /* static, unused */, FloatTween_t1274330004 , const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 4)->methodPointer)(NULL /*static, unused*/, (FloatTween_t1274330004 )L_5, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 4)); __this->set_m_Tween_1(L_6); MonoBehaviour_t3962482529 * L_7 = (MonoBehaviour_t3962482529 *)__this->get_m_CoroutineContainer_0(); RuntimeObject* L_8 = (RuntimeObject*)__this->get_m_Tween_1(); NullCheck((MonoBehaviour_t3962482529 *)L_7); MonoBehaviour_StartCoroutine_m3411253000((MonoBehaviour_t3962482529 *)L_7, (RuntimeObject*)L_8, /*hidden argument*/NULL); } IL_0073: { return; } } // System.Void UnityEngine.UI.CoroutineTween.TweenRunner`1<UnityEngine.UI.CoroutineTween.FloatTween>::StopTween() extern "C" void TweenRunner_1_StopTween_m3457627707_gshared (TweenRunner_1_t3520241082 * __this, const RuntimeMethod* method) { { RuntimeObject* L_0 = (RuntimeObject*)__this->get_m_Tween_1(); if (!L_0) { goto IL_0026; } } { MonoBehaviour_t3962482529 * L_1 = (MonoBehaviour_t3962482529 *)__this->get_m_CoroutineContainer_0(); RuntimeObject* L_2 = (RuntimeObject*)__this->get_m_Tween_1(); NullCheck((MonoBehaviour_t3962482529 *)L_1); MonoBehaviour_StopCoroutine_m615723318((MonoBehaviour_t3962482529 *)L_1, (RuntimeObject*)L_2, /*hidden argument*/NULL); __this->set_m_Tween_1((RuntimeObject*)NULL); } IL_0026: { return; } } #ifdef __clang__ #pragma clang diagnostic pop #endif #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Collections.Generic.List`1<T> UnityEngine.UI.ListPool`1<System.Int32>::Get() extern "C" List_1_t128053199 * ListPool_1_Get_m2031605680_gshared (RuntimeObject * __this /* static, unused */, const RuntimeMethod* method) { List_1_t128053199 * V_0 = NULL; { IL2CPP_RUNTIME_CLASS_INIT(IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 0)); ObjectPool_1_t4122643707 * L_0 = ((ListPool_1_t3980534944_StaticFields*)il2cpp_codegen_static_fields_for(IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 0)))->get_s_ListPool_0(); NullCheck((ObjectPool_1_t4122643707 *)L_0); List_1_t128053199 * L_1 = (( List_1_t128053199 * (*) (ObjectPool_1_t4122643707 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 1)->methodPointer)((ObjectPool_1_t4122643707 *)L_0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 1)); V_0 = (List_1_t128053199 *)L_1; goto IL_0011; } IL_0011: { List_1_t128053199 * L_2 = V_0; return L_2; } } // System.Void UnityEngine.UI.ListPool`1<System.Int32>::Release(System.Collections.Generic.List`1<T>) extern "C" void ListPool_1_Release_m188599205_gshared (RuntimeObject * __this /* static, unused */, List_1_t128053199 * ___toRelease0, const RuntimeMethod* method) { { IL2CPP_RUNTIME_CLASS_INIT(IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 0)); ObjectPool_1_t4122643707 * L_0 = ((ListPool_1_t3980534944_StaticFields*)il2cpp_codegen_static_fields_for(IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 0)))->get_s_ListPool_0(); List_1_t128053199 * L_1 = ___toRelease0; NullCheck((ObjectPool_1_t4122643707 *)L_0); (( void (*) (ObjectPool_1_t4122643707 *, List_1_t128053199 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 2)->methodPointer)((ObjectPool_1_t4122643707 *)L_0, (List_1_t128053199 *)L_1, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 2)); return; } } // System.Void UnityEngine.UI.ListPool`1<System.Int32>::.cctor() extern "C" void ListPool_1__cctor_m647010813_gshared (RuntimeObject * __this /* static, unused */, const RuntimeMethod* method) { { intptr_t L_0 = (intptr_t)IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 3); UnityAction_1_t712889340 * L_1 = (UnityAction_1_t712889340 *)il2cpp_codegen_object_new(IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 4)); (( void (*) (UnityAction_1_t712889340 *, RuntimeObject *, intptr_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 5)->methodPointer)(L_1, (RuntimeObject *)NULL, (intptr_t)L_0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 5)); ObjectPool_1_t4122643707 * L_2 = (ObjectPool_1_t4122643707 *)il2cpp_codegen_object_new(IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 6)); (( void (*) (ObjectPool_1_t4122643707 *, UnityAction_1_t712889340 *, UnityAction_1_t712889340 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 7)->methodPointer)(L_2, (UnityAction_1_t712889340 *)NULL, (UnityAction_1_t712889340 *)L_1, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 7)); ((ListPool_1_t3980534944_StaticFields*)il2cpp_codegen_static_fields_for(IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 0)))->set_s_ListPool_0(L_2); return; } } // System.Void UnityEngine.UI.ListPool`1<System.Int32>::<s_ListPool>m__0(System.Collections.Generic.List`1<T>) extern "C" void ListPool_1_U3Cs_ListPoolU3Em__0_m1565128702_gshared (RuntimeObject * __this /* static, unused */, List_1_t128053199 * ___l0, const RuntimeMethod* method) { { List_1_t128053199 * L_0 = ___l0; NullCheck((List_1_t128053199 *)L_0); (( void (*) (List_1_t128053199 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 8)->methodPointer)((List_1_t128053199 *)L_0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 8)); return; } } #ifdef __clang__ #pragma clang diagnostic pop #endif #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Collections.Generic.List`1<T> UnityEngine.UI.ListPool`1<System.Object>::Get() extern "C" List_1_t257213610 * ListPool_1_Get_m1670010485_gshared (RuntimeObject * __this /* static, unused */, const RuntimeMethod* method) { List_1_t257213610 * V_0 = NULL; { IL2CPP_RUNTIME_CLASS_INIT(IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 0)); ObjectPool_1_t4251804118 * L_0 = ((ListPool_1_t4109695355_StaticFields*)il2cpp_codegen_static_fields_for(IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 0)))->get_s_ListPool_0(); NullCheck((ObjectPool_1_t4251804118 *)L_0); List_1_t257213610 * L_1 = (( List_1_t257213610 * (*) (ObjectPool_1_t4251804118 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 1)->methodPointer)((ObjectPool_1_t4251804118 *)L_0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 1)); V_0 = (List_1_t257213610 *)L_1; goto IL_0011; } IL_0011: { List_1_t257213610 * L_2 = V_0; return L_2; } } // System.Void UnityEngine.UI.ListPool`1<System.Object>::Release(System.Collections.Generic.List`1<T>) extern "C" void ListPool_1_Release_m957266927_gshared (RuntimeObject * __this /* static, unused */, List_1_t257213610 * ___toRelease0, const RuntimeMethod* method) { { IL2CPP_RUNTIME_CLASS_INIT(IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 0)); ObjectPool_1_t4251804118 * L_0 = ((ListPool_1_t4109695355_StaticFields*)il2cpp_codegen_static_fields_for(IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 0)))->get_s_ListPool_0(); List_1_t257213610 * L_1 = ___toRelease0; NullCheck((ObjectPool_1_t4251804118 *)L_0); (( void (*) (ObjectPool_1_t4251804118 *, List_1_t257213610 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 2)->methodPointer)((ObjectPool_1_t4251804118 *)L_0, (List_1_t257213610 *)L_1, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 2)); return; } } // System.Void UnityEngine.UI.ListPool`1<System.Object>::.cctor() extern "C" void ListPool_1__cctor_m1477269088_gshared (RuntimeObject * __this /* static, unused */, const RuntimeMethod* method) { { intptr_t L_0 = (intptr_t)IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 3); UnityAction_1_t842049751 * L_1 = (UnityAction_1_t842049751 *)il2cpp_codegen_object_new(IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 4)); (( void (*) (UnityAction_1_t842049751 *, RuntimeObject *, intptr_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 5)->methodPointer)(L_1, (RuntimeObject *)NULL, (intptr_t)L_0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 5)); ObjectPool_1_t4251804118 * L_2 = (ObjectPool_1_t4251804118 *)il2cpp_codegen_object_new(IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 6)); (( void (*) (ObjectPool_1_t4251804118 *, UnityAction_1_t842049751 *, UnityAction_1_t842049751 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 7)->methodPointer)(L_2, (UnityAction_1_t842049751 *)NULL, (UnityAction_1_t842049751 *)L_1, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 7)); ((ListPool_1_t4109695355_StaticFields*)il2cpp_codegen_static_fields_for(IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 0)))->set_s_ListPool_0(L_2); return; } } // System.Void UnityEngine.UI.ListPool`1<System.Object>::<s_ListPool>m__0(System.Collections.Generic.List`1<T>) extern "C" void ListPool_1_U3Cs_ListPoolU3Em__0_m2790550420_gshared (RuntimeObject * __this /* static, unused */, List_1_t257213610 * ___l0, const RuntimeMethod* method) { { List_1_t257213610 * L_0 = ___l0; NullCheck((List_1_t257213610 *)L_0); (( void (*) (List_1_t257213610 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 8)->methodPointer)((List_1_t257213610 *)L_0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 8)); return; } } #ifdef __clang__ #pragma clang diagnostic pop #endif #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Collections.Generic.List`1<T> UnityEngine.UI.ListPool`1<UnityEngine.Color32>::Get() extern "C" List_1_t4072576034 * ListPool_1_Get_m2875520964_gshared (RuntimeObject * __this /* static, unused */, const RuntimeMethod* method) { List_1_t4072576034 * V_0 = NULL; { IL2CPP_RUNTIME_CLASS_INIT(IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 0)); ObjectPool_1_t3772199246 * L_0 = ((ListPool_1_t3630090483_StaticFields*)il2cpp_codegen_static_fields_for(IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 0)))->get_s_ListPool_0(); NullCheck((ObjectPool_1_t3772199246 *)L_0); List_1_t4072576034 * L_1 = (( List_1_t4072576034 * (*) (ObjectPool_1_t3772199246 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 1)->methodPointer)((ObjectPool_1_t3772199246 *)L_0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 1)); V_0 = (List_1_t4072576034 *)L_1; goto IL_0011; } IL_0011: { List_1_t4072576034 * L_2 = V_0; return L_2; } } // System.Void UnityEngine.UI.ListPool`1<UnityEngine.Color32>::Release(System.Collections.Generic.List`1<T>) extern "C" void ListPool_1_Release_m2857821093_gshared (RuntimeObject * __this /* static, unused */, List_1_t4072576034 * ___toRelease0, const RuntimeMethod* method) { { IL2CPP_RUNTIME_CLASS_INIT(IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 0)); ObjectPool_1_t3772199246 * L_0 = ((ListPool_1_t3630090483_StaticFields*)il2cpp_codegen_static_fields_for(IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 0)))->get_s_ListPool_0(); List_1_t4072576034 * L_1 = ___toRelease0; NullCheck((ObjectPool_1_t3772199246 *)L_0); (( void (*) (ObjectPool_1_t3772199246 *, List_1_t4072576034 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 2)->methodPointer)((ObjectPool_1_t3772199246 *)L_0, (List_1_t4072576034 *)L_1, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 2)); return; } } // System.Void UnityEngine.UI.ListPool`1<UnityEngine.Color32>::.cctor() extern "C" void ListPool_1__cctor_m1390066271_gshared (RuntimeObject * __this /* static, unused */, const RuntimeMethod* method) { { intptr_t L_0 = (intptr_t)IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 3); UnityAction_1_t362444879 * L_1 = (UnityAction_1_t362444879 *)il2cpp_codegen_object_new(IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 4)); (( void (*) (UnityAction_1_t362444879 *, RuntimeObject *, intptr_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 5)->methodPointer)(L_1, (RuntimeObject *)NULL, (intptr_t)L_0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 5)); ObjectPool_1_t3772199246 * L_2 = (ObjectPool_1_t3772199246 *)il2cpp_codegen_object_new(IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 6)); (( void (*) (ObjectPool_1_t3772199246 *, UnityAction_1_t362444879 *, UnityAction_1_t362444879 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 7)->methodPointer)(L_2, (UnityAction_1_t362444879 *)NULL, (UnityAction_1_t362444879 *)L_1, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 7)); ((ListPool_1_t3630090483_StaticFields*)il2cpp_codegen_static_fields_for(IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 0)))->set_s_ListPool_0(L_2); return; } } // System.Void UnityEngine.UI.ListPool`1<UnityEngine.Color32>::<s_ListPool>m__0(System.Collections.Generic.List`1<T>) extern "C" void ListPool_1_U3Cs_ListPoolU3Em__0_m3132766965_gshared (RuntimeObject * __this /* static, unused */, List_1_t4072576034 * ___l0, const RuntimeMethod* method) { { List_1_t4072576034 * L_0 = ___l0; NullCheck((List_1_t4072576034 *)L_0); (( void (*) (List_1_t4072576034 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 8)->methodPointer)((List_1_t4072576034 *)L_0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 8)); return; } } #ifdef __clang__ #pragma clang diagnostic pop #endif #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Collections.Generic.List`1<T> UnityEngine.UI.ListPool`1<UnityEngine.UIVertex>::Get() extern "C" List_1_t1234605051 * ListPool_1_Get_m738675669_gshared (RuntimeObject * __this /* static, unused */, const RuntimeMethod* method) { List_1_t1234605051 * V_0 = NULL; { IL2CPP_RUNTIME_CLASS_INIT(IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 0)); ObjectPool_1_t934228263 * L_0 = ((ListPool_1_t792119500_StaticFields*)il2cpp_codegen_static_fields_for(IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 0)))->get_s_ListPool_0(); NullCheck((ObjectPool_1_t934228263 *)L_0); List_1_t1234605051 * L_1 = (( List_1_t1234605051 * (*) (ObjectPool_1_t934228263 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 1)->methodPointer)((ObjectPool_1_t934228263 *)L_0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 1)); V_0 = (List_1_t1234605051 *)L_1; goto IL_0011; } IL_0011: { List_1_t1234605051 * L_2 = V_0; return L_2; } } // System.Void UnityEngine.UI.ListPool`1<UnityEngine.UIVertex>::Release(System.Collections.Generic.List`1<T>) extern "C" void ListPool_1_Release_m1246825787_gshared (RuntimeObject * __this /* static, unused */, List_1_t1234605051 * ___toRelease0, const RuntimeMethod* method) { { IL2CPP_RUNTIME_CLASS_INIT(IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 0)); ObjectPool_1_t934228263 * L_0 = ((ListPool_1_t792119500_StaticFields*)il2cpp_codegen_static_fields_for(IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 0)))->get_s_ListPool_0(); List_1_t1234605051 * L_1 = ___toRelease0; NullCheck((ObjectPool_1_t934228263 *)L_0); (( void (*) (ObjectPool_1_t934228263 *, List_1_t1234605051 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 2)->methodPointer)((ObjectPool_1_t934228263 *)L_0, (List_1_t1234605051 *)L_1, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 2)); return; } } // System.Void UnityEngine.UI.ListPool`1<UnityEngine.UIVertex>::.cctor() extern "C" void ListPool_1__cctor_m995356616_gshared (RuntimeObject * __this /* static, unused */, const RuntimeMethod* method) { { intptr_t L_0 = (intptr_t)IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 3); UnityAction_1_t1819441192 * L_1 = (UnityAction_1_t1819441192 *)il2cpp_codegen_object_new(IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 4)); (( void (*) (UnityAction_1_t1819441192 *, RuntimeObject *, intptr_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 5)->methodPointer)(L_1, (RuntimeObject *)NULL, (intptr_t)L_0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 5)); ObjectPool_1_t934228263 * L_2 = (ObjectPool_1_t934228263 *)il2cpp_codegen_object_new(IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 6)); (( void (*) (ObjectPool_1_t934228263 *, UnityAction_1_t1819441192 *, UnityAction_1_t1819441192 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 7)->methodPointer)(L_2, (UnityAction_1_t1819441192 *)NULL, (UnityAction_1_t1819441192 *)L_1, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 7)); ((ListPool_1_t792119500_StaticFields*)il2cpp_codegen_static_fields_for(IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 0)))->set_s_ListPool_0(L_2); return; } } // System.Void UnityEngine.UI.ListPool`1<UnityEngine.UIVertex>::<s_ListPool>m__0(System.Collections.Generic.List`1<T>) extern "C" void ListPool_1_U3Cs_ListPoolU3Em__0_m1647198399_gshared (RuntimeObject * __this /* static, unused */, List_1_t1234605051 * ___l0, const RuntimeMethod* method) { { List_1_t1234605051 * L_0 = ___l0; NullCheck((List_1_t1234605051 *)L_0); (( void (*) (List_1_t1234605051 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 8)->methodPointer)((List_1_t1234605051 *)L_0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 8)); return; } } #ifdef __clang__ #pragma clang diagnostic pop #endif #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Collections.Generic.List`1<T> UnityEngine.UI.ListPool`1<UnityEngine.Vector2>::Get() extern "C" List_1_t3628304265 * ListPool_1_Get_m3176650548_gshared (RuntimeObject * __this /* static, unused */, const RuntimeMethod* method) { List_1_t3628304265 * V_0 = NULL; { IL2CPP_RUNTIME_CLASS_INIT(IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 0)); ObjectPool_1_t3327927477 * L_0 = ((ListPool_1_t3185818714_StaticFields*)il2cpp_codegen_static_fields_for(IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 0)))->get_s_ListPool_0(); NullCheck((ObjectPool_1_t3327927477 *)L_0); List_1_t3628304265 * L_1 = (( List_1_t3628304265 * (*) (ObjectPool_1_t3327927477 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 1)->methodPointer)((ObjectPool_1_t3327927477 *)L_0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 1)); V_0 = (List_1_t3628304265 *)L_1; goto IL_0011; } IL_0011: { List_1_t3628304265 * L_2 = V_0; return L_2; } } // System.Void UnityEngine.UI.ListPool`1<UnityEngine.Vector2>::Release(System.Collections.Generic.List`1<T>) extern "C" void ListPool_1_Release_m591299672_gshared (RuntimeObject * __this /* static, unused */, List_1_t3628304265 * ___toRelease0, const RuntimeMethod* method) { { IL2CPP_RUNTIME_CLASS_INIT(IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 0)); ObjectPool_1_t3327927477 * L_0 = ((ListPool_1_t3185818714_StaticFields*)il2cpp_codegen_static_fields_for(IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 0)))->get_s_ListPool_0(); List_1_t3628304265 * L_1 = ___toRelease0; NullCheck((ObjectPool_1_t3327927477 *)L_0); (( void (*) (ObjectPool_1_t3327927477 *, List_1_t3628304265 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 2)->methodPointer)((ObjectPool_1_t3327927477 *)L_0, (List_1_t3628304265 *)L_1, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 2)); return; } } // System.Void UnityEngine.UI.ListPool`1<UnityEngine.Vector2>::.cctor() extern "C" void ListPool_1__cctor_m3480273184_gshared (RuntimeObject * __this /* static, unused */, const RuntimeMethod* method) { { intptr_t L_0 = (intptr_t)IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 3); UnityAction_1_t4213140406 * L_1 = (UnityAction_1_t4213140406 *)il2cpp_codegen_object_new(IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 4)); (( void (*) (UnityAction_1_t4213140406 *, RuntimeObject *, intptr_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 5)->methodPointer)(L_1, (RuntimeObject *)NULL, (intptr_t)L_0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 5)); ObjectPool_1_t3327927477 * L_2 = (ObjectPool_1_t3327927477 *)il2cpp_codegen_object_new(IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 6)); (( void (*) (ObjectPool_1_t3327927477 *, UnityAction_1_t4213140406 *, UnityAction_1_t4213140406 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 7)->methodPointer)(L_2, (UnityAction_1_t4213140406 *)NULL, (UnityAction_1_t4213140406 *)L_1, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 7)); ((ListPool_1_t3185818714_StaticFields*)il2cpp_codegen_static_fields_for(IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 0)))->set_s_ListPool_0(L_2); return; } } // System.Void UnityEngine.UI.ListPool`1<UnityEngine.Vector2>::<s_ListPool>m__0(System.Collections.Generic.List`1<T>) extern "C" void ListPool_1_U3Cs_ListPoolU3Em__0_m579534218_gshared (RuntimeObject * __this /* static, unused */, List_1_t3628304265 * ___l0, const RuntimeMethod* method) { { List_1_t3628304265 * L_0 = ___l0; NullCheck((List_1_t3628304265 *)L_0); (( void (*) (List_1_t3628304265 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 8)->methodPointer)((List_1_t3628304265 *)L_0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 8)); return; } } #ifdef __clang__ #pragma clang diagnostic pop #endif #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Collections.Generic.List`1<T> UnityEngine.UI.ListPool`1<UnityEngine.Vector3>::Get() extern "C" List_1_t899420910 * ListPool_1_Get_m3176649063_gshared (RuntimeObject * __this /* static, unused */, const RuntimeMethod* method) { List_1_t899420910 * V_0 = NULL; { IL2CPP_RUNTIME_CLASS_INIT(IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 0)); ObjectPool_1_t599044122 * L_0 = ((ListPool_1_t456935359_StaticFields*)il2cpp_codegen_static_fields_for(IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 0)))->get_s_ListPool_0(); NullCheck((ObjectPool_1_t599044122 *)L_0); List_1_t899420910 * L_1 = (( List_1_t899420910 * (*) (ObjectPool_1_t599044122 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 1)->methodPointer)((ObjectPool_1_t599044122 *)L_0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 1)); V_0 = (List_1_t899420910 *)L_1; goto IL_0011; } IL_0011: { List_1_t899420910 * L_2 = V_0; return L_2; } } // System.Void UnityEngine.UI.ListPool`1<UnityEngine.Vector3>::Release(System.Collections.Generic.List`1<T>) extern "C" void ListPool_1_Release_m4113115349_gshared (RuntimeObject * __this /* static, unused */, List_1_t899420910 * ___toRelease0, const RuntimeMethod* method) { { IL2CPP_RUNTIME_CLASS_INIT(IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 0)); ObjectPool_1_t599044122 * L_0 = ((ListPool_1_t456935359_StaticFields*)il2cpp_codegen_static_fields_for(IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 0)))->get_s_ListPool_0(); List_1_t899420910 * L_1 = ___toRelease0; NullCheck((ObjectPool_1_t599044122 *)L_0); (( void (*) (ObjectPool_1_t599044122 *, List_1_t899420910 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 2)->methodPointer)((ObjectPool_1_t599044122 *)L_0, (List_1_t899420910 *)L_1, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 2)); return; } } // System.Void UnityEngine.UI.ListPool`1<UnityEngine.Vector3>::.cctor() extern "C" void ListPool_1__cctor_m4085211983_gshared (RuntimeObject * __this /* static, unused */, const RuntimeMethod* method) { { intptr_t L_0 = (intptr_t)IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 3); UnityAction_1_t1484257051 * L_1 = (UnityAction_1_t1484257051 *)il2cpp_codegen_object_new(IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 4)); (( void (*) (UnityAction_1_t1484257051 *, RuntimeObject *, intptr_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 5)->methodPointer)(L_1, (RuntimeObject *)NULL, (intptr_t)L_0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 5)); ObjectPool_1_t599044122 * L_2 = (ObjectPool_1_t599044122 *)il2cpp_codegen_object_new(IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 6)); (( void (*) (ObjectPool_1_t599044122 *, UnityAction_1_t1484257051 *, UnityAction_1_t1484257051 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 7)->methodPointer)(L_2, (UnityAction_1_t1484257051 *)NULL, (UnityAction_1_t1484257051 *)L_1, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 7)); ((ListPool_1_t456935359_StaticFields*)il2cpp_codegen_static_fields_for(IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 0)))->set_s_ListPool_0(L_2); return; } } // System.Void UnityEngine.UI.ListPool`1<UnityEngine.Vector3>::<s_ListPool>m__0(System.Collections.Generic.List`1<T>) extern "C" void ListPool_1_U3Cs_ListPoolU3Em__0_m657844629_gshared (RuntimeObject * __this /* static, unused */, List_1_t899420910 * ___l0, const RuntimeMethod* method) { { List_1_t899420910 * L_0 = ___l0; NullCheck((List_1_t899420910 *)L_0); (( void (*) (List_1_t899420910 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 8)->methodPointer)((List_1_t899420910 *)L_0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 8)); return; } } #ifdef __clang__ #pragma clang diagnostic pop #endif #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Collections.Generic.List`1<T> UnityEngine.UI.ListPool`1<UnityEngine.Vector4>::Get() extern "C" List_1_t496136383 * ListPool_1_Get_m3176656818_gshared (RuntimeObject * __this /* static, unused */, const RuntimeMethod* method) { List_1_t496136383 * V_0 = NULL; { IL2CPP_RUNTIME_CLASS_INIT(IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 0)); ObjectPool_1_t195759595 * L_0 = ((ListPool_1_t53650832_StaticFields*)il2cpp_codegen_static_fields_for(IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 0)))->get_s_ListPool_0(); NullCheck((ObjectPool_1_t195759595 *)L_0); List_1_t496136383 * L_1 = (( List_1_t496136383 * (*) (ObjectPool_1_t195759595 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 1)->methodPointer)((ObjectPool_1_t195759595 *)L_0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 1)); V_0 = (List_1_t496136383 *)L_1; goto IL_0011; } IL_0011: { List_1_t496136383 * L_2 = V_0; return L_2; } } // System.Void UnityEngine.UI.ListPool`1<UnityEngine.Vector4>::Release(System.Collections.Generic.List`1<T>) extern "C" void ListPool_1_Release_m1363449253_gshared (RuntimeObject * __this /* static, unused */, List_1_t496136383 * ___toRelease0, const RuntimeMethod* method) { { IL2CPP_RUNTIME_CLASS_INIT(IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 0)); ObjectPool_1_t195759595 * L_0 = ((ListPool_1_t53650832_StaticFields*)il2cpp_codegen_static_fields_for(IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 0)))->get_s_ListPool_0(); List_1_t496136383 * L_1 = ___toRelease0; NullCheck((ObjectPool_1_t195759595 *)L_0); (( void (*) (ObjectPool_1_t195759595 *, List_1_t496136383 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 2)->methodPointer)((ObjectPool_1_t195759595 *)L_0, (List_1_t496136383 *)L_1, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 2)); return; } } // System.Void UnityEngine.UI.ListPool`1<UnityEngine.Vector4>::.cctor() extern "C" void ListPool_1__cctor_m704263611_gshared (RuntimeObject * __this /* static, unused */, const RuntimeMethod* method) { { intptr_t L_0 = (intptr_t)IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 3); UnityAction_1_t1080972524 * L_1 = (UnityAction_1_t1080972524 *)il2cpp_codegen_object_new(IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 4)); (( void (*) (UnityAction_1_t1080972524 *, RuntimeObject *, intptr_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 5)->methodPointer)(L_1, (RuntimeObject *)NULL, (intptr_t)L_0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 5)); ObjectPool_1_t195759595 * L_2 = (ObjectPool_1_t195759595 *)il2cpp_codegen_object_new(IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 6)); (( void (*) (ObjectPool_1_t195759595 *, UnityAction_1_t1080972524 *, UnityAction_1_t1080972524 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 7)->methodPointer)(L_2, (UnityAction_1_t1080972524 *)NULL, (UnityAction_1_t1080972524 *)L_1, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 7)); ((ListPool_1_t53650832_StaticFields*)il2cpp_codegen_static_fields_for(IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 0)))->set_s_ListPool_0(L_2); return; } } // System.Void UnityEngine.UI.ListPool`1<UnityEngine.Vector4>::<s_ListPool>m__0(System.Collections.Generic.List`1<T>) extern "C" void ListPool_1_U3Cs_ListPoolU3Em__0_m2283646495_gshared (RuntimeObject * __this /* static, unused */, List_1_t496136383 * ___l0, const RuntimeMethod* method) { { List_1_t496136383 * L_0 = ___l0; NullCheck((List_1_t496136383 *)L_0); (( void (*) (List_1_t496136383 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 8)->methodPointer)((List_1_t496136383 *)L_0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 8)); return; } } #ifdef __clang__ #pragma clang diagnostic pop #endif #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Void UnityEngine.UI.ObjectPool`1<System.Object>::.ctor(UnityEngine.Events.UnityAction`1<T>,UnityEngine.Events.UnityAction`1<T>) extern "C" void ObjectPool_1__ctor_m2535233435_gshared (ObjectPool_1_t2779729376 * __this, UnityAction_1_t3664942305 * ___actionOnGet0, UnityAction_1_t3664942305 * ___actionOnRelease1, const RuntimeMethod* method) { { Stack_1_t3923495619 * L_0 = (Stack_1_t3923495619 *)il2cpp_codegen_object_new(IL2CPP_RGCTX_DATA(method->declaring_type->rgctx_data, 0)); (( void (*) (Stack_1_t3923495619 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 1)->methodPointer)(L_0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 1)); __this->set_m_Stack_0(L_0); NullCheck((RuntimeObject *)__this); Object__ctor_m297566312((RuntimeObject *)__this, /*hidden argument*/NULL); UnityAction_1_t3664942305 * L_1 = ___actionOnGet0; __this->set_m_ActionOnGet_1(L_1); UnityAction_1_t3664942305 * L_2 = ___actionOnRelease1; __this->set_m_ActionOnRelease_2(L_2); return; } } // System.Int32 UnityEngine.UI.ObjectPool`1<System.Object>::get_countAll() extern "C" int32_t ObjectPool_1_get_countAll_m819305395_gshared (ObjectPool_1_t2779729376 * __this, const RuntimeMethod* method) { int32_t V_0 = 0; { int32_t L_0 = (int32_t)__this->get_U3CcountAllU3Ek__BackingField_3(); V_0 = (int32_t)L_0; goto IL_000c; } IL_000c: { int32_t L_1 = V_0; return L_1; } } // System.Void UnityEngine.UI.ObjectPool`1<System.Object>::set_countAll(System.Int32) extern "C" void ObjectPool_1_set_countAll_m3507126863_gshared (ObjectPool_1_t2779729376 * __this, int32_t ___value0, const RuntimeMethod* method) { { int32_t L_0 = ___value0; __this->set_U3CcountAllU3Ek__BackingField_3(L_0); return; } } // T UnityEngine.UI.ObjectPool`1<System.Object>::Get() extern "C" RuntimeObject * ObjectPool_1_Get_m3351668383_gshared (ObjectPool_1_t2779729376 * __this, const RuntimeMethod* method) { RuntimeObject * V_0 = NULL; RuntimeObject * V_1 = NULL; { Stack_1_t3923495619 * L_0 = (Stack_1_t3923495619 *)__this->get_m_Stack_0(); NullCheck((Stack_1_t3923495619 *)L_0); int32_t L_1 = (( int32_t (*) (Stack_1_t3923495619 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 2)->methodPointer)((Stack_1_t3923495619 *)L_0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 2)); if (L_1) { goto IL_002c; } } { RuntimeObject * L_2 = (( RuntimeObject * (*) (RuntimeObject * /* static, unused */, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 3)->methodPointer)(NULL /*static, unused*/, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 3)); V_0 = (RuntimeObject *)L_2; NullCheck((ObjectPool_1_t2779729376 *)__this); int32_t L_3 = (( int32_t (*) (ObjectPool_1_t2779729376 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 4)->methodPointer)((ObjectPool_1_t2779729376 *)__this, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 4)); NullCheck((ObjectPool_1_t2779729376 *)__this); (( void (*) (ObjectPool_1_t2779729376 *, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 5)->methodPointer)((ObjectPool_1_t2779729376 *)__this, (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_3, (int32_t)1)), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 5)); goto IL_003a; } IL_002c: { Stack_1_t3923495619 * L_4 = (Stack_1_t3923495619 *)__this->get_m_Stack_0(); NullCheck((Stack_1_t3923495619 *)L_4); RuntimeObject * L_5 = (( RuntimeObject * (*) (Stack_1_t3923495619 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 6)->methodPointer)((Stack_1_t3923495619 *)L_4, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 6)); V_0 = (RuntimeObject *)L_5; } IL_003a: { UnityAction_1_t3664942305 * L_6 = (UnityAction_1_t3664942305 *)__this->get_m_ActionOnGet_1(); if (!L_6) { goto IL_0051; } } { UnityAction_1_t3664942305 * L_7 = (UnityAction_1_t3664942305 *)__this->get_m_ActionOnGet_1(); RuntimeObject * L_8 = V_0; NullCheck((UnityAction_1_t3664942305 *)L_7); (( void (*) (UnityAction_1_t3664942305 *, RuntimeObject *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 7)->methodPointer)((UnityAction_1_t3664942305 *)L_7, (RuntimeObject *)L_8, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 7)); } IL_0051: { RuntimeObject * L_9 = V_0; V_1 = (RuntimeObject *)L_9; goto IL_0058; } IL_0058: { RuntimeObject * L_10 = V_1; return L_10; } } // System.Void UnityEngine.UI.ObjectPool`1<System.Object>::Release(T) extern "C" void ObjectPool_1_Release_m3263354170_gshared (ObjectPool_1_t2779729376 * __this, RuntimeObject * ___element0, const RuntimeMethod* method) { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_method (ObjectPool_1_Release_m3263354170_MetadataUsageId); s_Il2CppMethodInitialized = true; } { Stack_1_t3923495619 * L_0 = (Stack_1_t3923495619 *)__this->get_m_Stack_0(); NullCheck((Stack_1_t3923495619 *)L_0); int32_t L_1 = (( int32_t (*) (Stack_1_t3923495619 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 2)->methodPointer)((Stack_1_t3923495619 *)L_0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 2)); if ((((int32_t)L_1) <= ((int32_t)0))) { goto IL_003c; } } { Stack_1_t3923495619 * L_2 = (Stack_1_t3923495619 *)__this->get_m_Stack_0(); NullCheck((Stack_1_t3923495619 *)L_2); RuntimeObject * L_3 = (( RuntimeObject * (*) (Stack_1_t3923495619 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 8)->methodPointer)((Stack_1_t3923495619 *)L_2, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 8)); RuntimeObject * L_4 = ___element0; bool L_5 = Object_ReferenceEquals_m610702577(NULL /*static, unused*/, (RuntimeObject *)L_3, (RuntimeObject *)L_4, /*hidden argument*/NULL); if (!L_5) { goto IL_003c; } } { IL2CPP_RUNTIME_CLASS_INIT(Debug_t3317548046_il2cpp_TypeInfo_var); Debug_LogError_m2850623458(NULL /*static, unused*/, (RuntimeObject *)_stringLiteral46997234, /*hidden argument*/NULL); } IL_003c: { UnityAction_1_t3664942305 * L_6 = (UnityAction_1_t3664942305 *)__this->get_m_ActionOnRelease_2(); if (!L_6) { goto IL_0053; } } { UnityAction_1_t3664942305 * L_7 = (UnityAction_1_t3664942305 *)__this->get_m_ActionOnRelease_2(); RuntimeObject * L_8 = ___element0; NullCheck((UnityAction_1_t3664942305 *)L_7); (( void (*) (UnityAction_1_t3664942305 *, RuntimeObject *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 7)->methodPointer)((UnityAction_1_t3664942305 *)L_7, (RuntimeObject *)L_8, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 7)); } IL_0053: { Stack_1_t3923495619 * L_9 = (Stack_1_t3923495619 *)__this->get_m_Stack_0(); RuntimeObject * L_10 = ___element0; NullCheck((Stack_1_t3923495619 *)L_9); (( void (*) (Stack_1_t3923495619 *, RuntimeObject *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 10)->methodPointer)((Stack_1_t3923495619 *)L_9, (RuntimeObject *)L_10, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 10)); return; } } #ifdef __clang__ #pragma clang diagnostic pop #endif
[ "xie.z@wustl.edu" ]
xie.z@wustl.edu
41da9b37bee61f74aafe251e7baf11c155a39bb2
81078148c49219f994867f854352063291dabb9e
/include/fcl_capsule/BVH/BVH_utility.h
6d23955a468dc9a841a44e5c3965ef89e99c2308
[]
no_license
pal-robotics-graveyard/fcl_capsule
630f35e2776d65555cb1f3a8fe6b34a04ba633e9
91205b1f8693a52ea045760838fb4b6b9605107a
refs/heads/master
2021-01-21T08:46:21.748172
2014-05-19T14:56:25
2014-05-19T14:56:25
null
0
0
null
null
null
null
UTF-8
C++
false
false
4,051
h
/* * Software License Agreement (BSD License) * * Copyright (c) 2011, Willow Garage, Inc. * 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 Willow Garage, Inc. 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 OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. */ /** \author Jia Pan */ #ifndef FCL_BVH_UTILITY_H #define FCL_BVH_UTILITY_H #include "fcl_capsule/BVH/BVH_model.h" namespace fcl_capsule { /// @brief Expand the BVH bounding boxes according to the variance matrix corresponding to the data stored within each BV node template<typename BV> void BVHExpand(BVHModel<BV>& model, const Variance3f* ucs, FCL_REAL r) { for(int i = 0; i < model.num_bvs; ++i) { BVNode<BV>& bvnode = model.getBV(i); BV bv; for(int j = 0; j < bvnode.num_primitives; ++j) { int v_id = bvnode.first_primitive + j; const Variance3f& uc = ucs[v_id]; Vec3f& v = model.vertices[bvnode.first_primitive + j]; for(int k = 0; k < 3; ++k) { bv += (v + uc.axis[k] * (r * uc.sigma[k])); bv += (v - uc.axis[k] * (r * uc.sigma[k])); } } bvnode.bv = bv; } } /// @brief Expand the BVH bounding boxes according to the corresponding variance information, for OBB void BVHExpand(BVHModel<OBB>& model, const Variance3f* ucs, FCL_REAL r); /// @brief Expand the BVH bounding boxes according to the corresponding variance information, for RSS void BVHExpand(BVHModel<RSS>& model, const Variance3f* ucs, FCL_REAL r); /// @brief Compute the covariance matrix for a set or subset of points. if ts = null, then indices refer to points directly; otherwise refer to triangles void getCovariance(Vec3f* ps, Vec3f* ps2, Triangle* ts, unsigned int* indices, int n, Matrix3f& M); /// @brief Compute the RSS bounding volume parameters: radius, rectangle size and the origin, given the BV axises. void getRadiusAndOriginAndRectangleSize(Vec3f* ps, Vec3f* ps2, Triangle* ts, unsigned int* indices, int n, Vec3f axis[3], Vec3f& origin, FCL_REAL l[2], FCL_REAL& r); /// @brief Compute the bounding volume extent and center for a set or subset of points, given the BV axises. void getExtentAndCenter(Vec3f* ps, Vec3f* ps2, Triangle* ts, unsigned int* indices, int n, Vec3f axis[3], Vec3f& center, Vec3f& extent); /// @brief Compute the center and radius for a triangle's circumcircle void circumCircleComputation(const Vec3f& a, const Vec3f& b, const Vec3f& c, Vec3f& center, FCL_REAL& radius); /// @brief Compute the maximum distance from a given center point to a point cloud FCL_REAL maximumDistance(Vec3f* ps, Vec3f* ps2, Triangle* ts, unsigned int* indices, int n, const Vec3f& query); } #endif
[ "karsten.knese@googlemail.com" ]
karsten.knese@googlemail.com
7f8ac030498cbd4f06bdec2ed0faca7995785e34
1d928c3f90d4a0a9a3919a804597aa0a4aab19a3
/c++/Halide/2019/4/HalideRuntime.h
51f87318ff7189dbd17011a34334353de3d14ebc
[]
no_license
rosoareslv/SED99
d8b2ff5811e7f0ffc59be066a5a0349a92cbb845
a062c118f12b93172e31e8ca115ce3f871b64461
refs/heads/main
2023-02-22T21:59:02.703005
2021-01-28T19:40:51
2021-01-28T19:40:51
306,497,459
1
1
null
2020-11-24T20:56:18
2020-10-23T01:18:07
null
UTF-8
C++
false
false
85,750
h
#ifndef HALIDE_HALIDERUNTIME_H #define HALIDE_HALIDERUNTIME_H #ifndef COMPILING_HALIDE_RUNTIME #include <stddef.h> #include <stdint.h> #include <stdbool.h> #include <string.h> #else #include "runtime_internal.h" #endif #ifdef __cplusplus // Forward declare type to allow naming typed handles. // See Type.h for documentation. template<typename T> struct halide_handle_traits; #endif #ifdef __cplusplus extern "C" { #endif // Note that you should not use "inline" along with HALIDE_ALWAYS_INLINE; // it is not necessary, and may produce warnings for some build configurations. #ifdef _MSC_VER #define HALIDE_ALWAYS_INLINE __forceinline #define HALIDE_NEVER_INLINE __declspec(noinline) #else #define HALIDE_ALWAYS_INLINE __attribute__((always_inline)) inline #define HALIDE_NEVER_INLINE __attribute__((noinline)) #endif /** \file * * This file declares the routines used by Halide internally in its * runtime. On platforms that support weak linking, these can be * replaced with user-defined versions by defining an extern "C" * function with the same name and signature. * * When doing Just In Time (JIT) compilation methods on the Func being * compiled must be called instead. The corresponding methods are * documented below. * * All of these functions take a "void *user_context" parameter as their * first argument; if the Halide kernel that calls back to any of these * functions has been compiled with the UserContext feature set on its Target, * then the value of that pointer passed from the code that calls the * Halide kernel is piped through to the function. * * Some of these are also useful to call when using the default * implementation. E.g. halide_shutdown_thread_pool. * * Note that even on platforms with weak linking, some linker setups * may not respect the override you provide. E.g. if the override is * in a shared library and the halide object files are linked directly * into the output, the builtin versions of the runtime functions will * be called. See your linker documentation for more details. On * Linux, LD_DYNAMIC_WEAK=1 may help. * */ // Forward-declare to suppress warnings if compiling as C. struct halide_buffer_t; struct buffer_t; /** Print a message to stderr. Main use is to support tracing * functionality, print, and print_when calls. Also called by the default * halide_error. This function can be replaced in JITed code by using * halide_custom_print and providing an implementation of halide_print * in AOT code. See Func::set_custom_print. */ // @{ extern void halide_print(void *user_context, const char *); extern void halide_default_print(void *user_context, const char *); typedef void (*halide_print_t)(void *, const char *); extern halide_print_t halide_set_custom_print(halide_print_t print); // @} /** Halide calls this function on runtime errors (for example bounds * checking failures). This function can be replaced in JITed code by * using Func::set_error_handler, or in AOT code by calling * halide_set_error_handler. In AOT code on platforms that support * weak linking (i.e. not Windows), you can also override it by simply * defining your own halide_error. */ // @{ extern void halide_error(void *user_context, const char *); extern void halide_default_error(void *user_context, const char *); typedef void (*halide_error_handler_t)(void *, const char *); extern halide_error_handler_t halide_set_error_handler(halide_error_handler_t handler); // @} /** Cross-platform mutex. Must be initialized with zero and implementation * must treat zero as an unlocked mutex with no waiters, etc. */ struct halide_mutex { uintptr_t _private[1]; }; /** Cross platform condition variable. Must be initialized to 0. */ struct halide_cond { uintptr_t _private[1]; }; /** A basic set of mutex and condition variable functions, which call * platform specific code for mutual exclusion. Equivalent to posix * calls. */ //@{ extern void halide_mutex_lock(struct halide_mutex *mutex); extern void halide_mutex_unlock(struct halide_mutex *mutex); extern void halide_cond_signal(struct halide_cond *cond); extern void halide_cond_broadcast(struct halide_cond *cond); extern void halide_cond_signal(struct halide_cond *cond); extern void halide_cond_wait(struct halide_cond *cond, struct halide_mutex *mutex); //@} /** Define halide_do_par_for to replace the default thread pool * implementation. halide_shutdown_thread_pool can also be called to * release resources used by the default thread pool on platforms * where it makes sense. (E.g. On Mac OS, Grand Central Dispatch is * used so %Halide does not own the threads backing the pool and they * cannot be released.) See Func::set_custom_do_task and * Func::set_custom_do_par_for. Should return zero if all the jobs * return zero, or an arbitrarily chosen return value from one of the * jobs otherwise. */ //@{ typedef int (*halide_task_t)(void *user_context, int task_number, uint8_t *closure); extern int halide_do_par_for(void *user_context, halide_task_t task, int min, int size, uint8_t *closure); extern void halide_shutdown_thread_pool(); //@} /** Set a custom method for performing a parallel for loop. Returns * the old do_par_for handler. */ typedef int (*halide_do_par_for_t)(void *, halide_task_t, int, int, uint8_t*); extern halide_do_par_for_t halide_set_custom_do_par_for(halide_do_par_for_t do_par_for); /** An opaque struct representing a semaphore. Used by the task system for async tasks. */ struct halide_semaphore_t { uint64_t _private[2]; }; /** A struct representing a semaphore and a number of items that must * be acquired from it. Used in halide_parallel_task_t below. */ struct halide_semaphore_acquire_t { struct halide_semaphore_t *semaphore; int count; }; extern int halide_semaphore_init(struct halide_semaphore_t *, int n); extern int halide_semaphore_release(struct halide_semaphore_t *, int n); extern bool halide_semaphore_try_acquire(struct halide_semaphore_t *, int n); typedef int (*halide_semaphore_init_t)(struct halide_semaphore_t *, int); typedef int (*halide_semaphore_release_t)(struct halide_semaphore_t *, int); typedef bool (*halide_semaphore_try_acquire_t)(struct halide_semaphore_t *, int); /** A task representing a serial for loop evaluated over some range. * Note that task_parent is a pass through argument that should be * passed to any dependent taks that are invokved using halide_do_parallel_tasks * underneath this call. */ typedef int (*halide_loop_task_t)(void *user_context, int min, int extent, uint8_t *closure, void *task_parent); /** A parallel task to be passed to halide_do_parallel_tasks. This * task may recursively call halide_do_parallel_tasks, and there may * be complex dependencies between seemingly unrelated tasks expressed * using semaphores. If you are using a custom task system, care must * be taken to avoid potential deadlock. This can be done by carefully * respecting the static metadata at the end of the task struct.*/ struct halide_parallel_task_t { // The function to call. It takes a user context, a min and // extent, a closure, and a task system pass through argument. halide_loop_task_t fn; // The closure to pass it uint8_t *closure; // The name of the function to be called. For debugging purposes only. const char *name; // An array of semaphores that must be acquired before the // function is called. Must be reacquired for every call made. struct halide_semaphore_acquire_t *semaphores; int num_semaphores; // The entire range the function should be called over. This range // may be sliced up and the function called multiple times. int min, extent; // A parallel task provides several pieces of metadata to prevent // unbounded resource usage or deadlock. // The first is the minimum number of execution contexts (call // stacks or threads) necessary for the function to run to // completion. This may be greater than one when there is nested // parallelism with internal producer-consumer relationships // (calling the function recursively spawns and blocks on parallel // sub-tasks that communicate with each other via semaphores). If // a parallel runtime calls the function when fewer than this many // threads are idle, it may need to create more threads to // complete the task, or else risk deadlock due to committing all // threads to tasks that cannot complete without more. // // FIXME: Note that extern stages are assumed to only require a // single thread to complete. If the extern stage is itself a // Halide pipeline, this may be an underestimate. int min_threads; // The calls to the function should be in serial order from min to min+extent-1, with only // one executing at a time. If false, any order is fine, and // concurrency is fine. bool serial; }; /** Enqueue some number of the tasks described above and wait for them * to complete. While waiting, the calling threads assists with either * the tasks enqueued, or other non-blocking tasks in the task * system. Note that task_parent should be NULL for top-level calls * and the pass through argument if this call is being made from * another task. */ extern int halide_do_parallel_tasks(void *user_context, int num_tasks, struct halide_parallel_task_t *tasks, void *task_parent); /** If you use the default do_par_for, you can still set a custom * handler to perform each individual task. Returns the old handler. */ //@{ typedef int (*halide_do_task_t)(void *, halide_task_t, int, uint8_t *); extern halide_do_task_t halide_set_custom_do_task(halide_do_task_t do_task); extern int halide_do_task(void *user_context, halide_task_t f, int idx, uint8_t *closure); //@} /** The version of do_task called for loop tasks. By default calls the * loop task with the same arguments. */ // @{ typedef int (*halide_do_loop_task_t)(void *, halide_loop_task_t, int, int, uint8_t *, void *); extern halide_do_loop_task_t halide_set_custom_do_loop_task(halide_do_loop_task_t do_task); extern int halide_do_loop_task(void *user_context, halide_loop_task_t f, int min, int extent, uint8_t *closure, void *task_parent); //@} /** Provide an entire custom tasking runtime via function * pointers. Note that do_task and semaphore_try_acquire are only ever * called by halide_default_do_par_for and * halide_default_do_parallel_tasks, so it's only necessary to provide * those if you are mixing in the default implementations of * do_par_for and do_parallel_tasks. */ // @{ typedef int (*halide_do_parallel_tasks_t)(void *, int, struct halide_parallel_task_t *, void *task_parent); extern void halide_set_custom_parallel_runtime( halide_do_par_for_t, halide_do_task_t, halide_do_loop_task_t, halide_do_parallel_tasks_t, halide_semaphore_init_t, halide_semaphore_try_acquire_t, halide_semaphore_release_t ); // @} /** The default versions of the parallel runtime functions. */ // @{ extern int halide_default_do_par_for(void *user_context, halide_task_t task, int min, int size, uint8_t *closure); extern int halide_default_do_parallel_tasks(void *user_context, int num_tasks, struct halide_parallel_task_t *tasks, void *task_parent); extern int halide_default_do_task(void *user_context, halide_task_t f, int idx, uint8_t *closure); extern int halide_default_do_loop_task(void *user_context, halide_loop_task_t f, int min, int extent, uint8_t *closure, void *task_parent); extern int halide_default_semaphore_init(struct halide_semaphore_t *, int n); extern int halide_default_semaphore_release(struct halide_semaphore_t *, int n); extern bool halide_default_semaphore_try_acquire(struct halide_semaphore_t *, int n); // @} struct halide_thread; /** Spawn a thread. Returns a handle to the thread for the purposes of * joining it. The thread must be joined in order to clean up any * resources associated with it. */ extern struct halide_thread *halide_spawn_thread(void (*f)(void *), void *closure); /** Join a thread. */ extern void halide_join_thread(struct halide_thread *); /** Set the number of threads used by Halide's thread pool. Returns * the old number. * * n < 0 : error condition * n == 0 : use a reasonable system default (typically, number of cpus online). * n == 1 : use exactly one thread; this will always enforce serial execution * n > 1 : use a pool of exactly n threads. * * (Note that this is only guaranteed when using the default implementations * of halide_do_par_for(); custom implementations may completely ignore values * passed to halide_set_num_threads().) */ extern int halide_set_num_threads(int n); /** Halide calls these functions to allocate and free memory. To * replace in AOT code, use the halide_set_custom_malloc and * halide_set_custom_free, or (on platforms that support weak * linking), simply define these functions yourself. In JIT-compiled * code use Func::set_custom_allocator. * * If you override them, and find yourself wanting to call the default * implementation from within your override, use * halide_default_malloc/free. * * Note that halide_malloc must return a pointer aligned to the * maximum meaningful alignment for the platform for the purpose of * vector loads and stores. The default implementation uses 32-byte * alignment, which is safe for arm and x86. Additionally, it must be * safe to read at least 8 bytes before the start and beyond the * end. */ //@{ extern void *halide_malloc(void *user_context, size_t x); extern void halide_free(void *user_context, void *ptr); extern void *halide_default_malloc(void *user_context, size_t x); extern void halide_default_free(void *user_context, void *ptr); typedef void *(*halide_malloc_t)(void *, size_t); typedef void (*halide_free_t)(void *, void *); extern halide_malloc_t halide_set_custom_malloc(halide_malloc_t user_malloc); extern halide_free_t halide_set_custom_free(halide_free_t user_free); //@} /** Halide calls these functions to interact with the underlying * system runtime functions. To replace in AOT code on platforms that * support weak linking, define these functions yourself, or use * the halide_set_custom_load_library() and halide_set_custom_get_library_symbol() * functions. In JIT-compiled code, use JITSharedRuntime::set_default_handlers(). * * halide_load_library and halide_get_library_symbol are equivalent to * dlopen and dlsym. halide_get_symbol(sym) is equivalent to * dlsym(RTLD_DEFAULT, sym). */ //@{ extern void *halide_get_symbol(const char *name); extern void *halide_load_library(const char *name); extern void *halide_get_library_symbol(void *lib, const char *name); extern void *halide_default_get_symbol(const char *name); extern void *halide_default_load_library(const char *name); extern void *halide_default_get_library_symbol(void *lib, const char *name); typedef void *(*halide_get_symbol_t)(const char *name); typedef void *(*halide_load_library_t)(const char *name); typedef void *(*halide_get_library_symbol_t)(void *lib, const char *name); extern halide_get_symbol_t halide_set_custom_get_symbol(halide_get_symbol_t user_get_symbol); extern halide_load_library_t halide_set_custom_load_library(halide_load_library_t user_load_library); extern halide_get_library_symbol_t halide_set_custom_get_library_symbol(halide_get_library_symbol_t user_get_library_symbol); //@} /** Called when debug_to_file is used inside %Halide code. See * Func::debug_to_file for how this is called * * Cannot be replaced in JITted code at present. */ extern int32_t halide_debug_to_file(void *user_context, const char *filename, int32_t type_code, struct halide_buffer_t *buf); /** Types in the halide type system. They can be ints, unsigned ints, * or floats (of various bit-widths), or a handle (which is always 64-bits). * Note that the int/uint/float values do not imply a specific bit width * (the bit width is expected to be encoded in a separate value). */ typedef enum halide_type_code_t #if __cplusplus >= 201103L : uint8_t #endif { halide_type_int = 0, //!< signed integers halide_type_uint = 1, //!< unsigned integers halide_type_float = 2, //!< floating point numbers halide_type_handle = 3 //!< opaque pointer type (void *) } halide_type_code_t; // Note that while __attribute__ can go before or after the declaration, // __declspec apparently is only allowed before. #ifndef HALIDE_ATTRIBUTE_ALIGN #ifdef _MSC_VER #define HALIDE_ATTRIBUTE_ALIGN(x) __declspec(align(x)) #else #define HALIDE_ATTRIBUTE_ALIGN(x) __attribute__((aligned(x))) #endif #endif /** A runtime tag for a type in the halide type system. Can be ints, * unsigned ints, or floats of various bit-widths (the 'bits' * field). Can also be vectors of the same (by setting the 'lanes' * field to something larger than one). This struct should be * exactly 32-bits in size. */ struct halide_type_t { /** The basic type code: signed integer, unsigned integer, or floating point. */ #if __cplusplus >= 201103L HALIDE_ATTRIBUTE_ALIGN(1) halide_type_code_t code; // halide_type_code_t #else HALIDE_ATTRIBUTE_ALIGN(1) uint8_t code; // halide_type_code_t #endif /** The number of bits of precision of a single scalar value of this type. */ HALIDE_ATTRIBUTE_ALIGN(1) uint8_t bits; /** How many elements in a vector. This is 1 for scalar types. */ HALIDE_ATTRIBUTE_ALIGN(2) uint16_t lanes; #ifdef __cplusplus /** Construct a runtime representation of a Halide type from: * code: The fundamental type from an enum. * bits: The bit size of one element. * lanes: The number of vector elements in the type. */ HALIDE_ALWAYS_INLINE halide_type_t(halide_type_code_t code, uint8_t bits, uint16_t lanes = 1) : code(code), bits(bits), lanes(lanes) { } /** Default constructor is required e.g. to declare halide_trace_event * instances. */ HALIDE_ALWAYS_INLINE halide_type_t() : code((halide_type_code_t)0), bits(0), lanes(0) {} /** Compare two types for equality. */ HALIDE_ALWAYS_INLINE bool operator==(const halide_type_t &other) const { return as_u32() == other.as_u32(); } HALIDE_ALWAYS_INLINE bool operator!=(const halide_type_t &other) const { return !(*this == other); } HALIDE_ALWAYS_INLINE bool operator<(const halide_type_t &other) const { return as_u32() < other.as_u32(); } /** Size in bytes for a single element, even if width is not 1, of this type. */ HALIDE_ALWAYS_INLINE int bytes() const { return (bits + 7) / 8; } HALIDE_ALWAYS_INLINE uint32_t as_u32() const { uint32_t u; memcpy(&u, this, sizeof(u)); return u; } #endif }; enum halide_trace_event_code_t {halide_trace_load = 0, halide_trace_store = 1, halide_trace_begin_realization = 2, halide_trace_end_realization = 3, halide_trace_produce = 4, halide_trace_end_produce = 5, halide_trace_consume = 6, halide_trace_end_consume = 7, halide_trace_begin_pipeline = 8, halide_trace_end_pipeline = 9, halide_trace_tag = 10 }; struct halide_trace_event_t { /** The name of the Func or Pipeline that this event refers to */ const char *func; /** If the event type is a load or a store, this points to the * value being loaded or stored. Use the type field to safely cast * this to a concrete pointer type and retrieve it. For other * events this is null. */ void *value; /** For loads and stores, an array which contains the location * being accessed. For vector loads or stores it is an array of * vectors of coordinates (the vector dimension is innermost). * * For realization or production-related events, this will contain * the mins and extents of the region being accessed, in the order * min0, extent0, min1, extent1, ... * * For pipeline-related events, this will be null. */ int32_t *coordinates; /** For halide_trace_tag, this points to a read-only null-terminated string * of arbitrary text. For all other events, this will be null. */ const char *trace_tag; /** If the event type is a load or a store, this is the type of * the data. Otherwise, the value is meaningless. */ struct halide_type_t type; /** The type of event */ enum halide_trace_event_code_t event; /* The ID of the parent event (see below for an explanation of * event ancestry). */ int32_t parent_id; /** If this was a load or store of a Tuple-valued Func, this is * which tuple element was accessed. */ int32_t value_index; /** The length of the coordinates array */ int32_t dimensions; #ifdef __cplusplus // If we don't explicitly mark the default ctor as inline, // certain build configurations can fail (notably iOS) HALIDE_ALWAYS_INLINE halide_trace_event_t() {} #endif }; /** Called when Funcs are marked as trace_load, trace_store, or * trace_realization. See Func::set_custom_trace. The default * implementation either prints events via halide_print, or if * HL_TRACE_FILE is defined, dumps the trace to that file in a * sequence of trace packets. The header for a trace packet is defined * below. If the trace is going to be large, you may want to make the * file a named pipe, and then read from that pipe into gzip. * * halide_trace returns a unique ID which will be passed to future * events that "belong" to the earlier event as the parent id. The * ownership hierarchy looks like: * * begin_pipeline * +--trace_tag (if any) * +--trace_tag (if any) * ... * +--begin_realization * | +--produce * | | +--load/store * | | +--end_produce * | +--consume * | | +--load * | | +--end_consume * | +--end_realization * +--end_pipeline * * Threading means that ownership cannot be inferred from the ordering * of events. There can be many active realizations of a given * function, or many active productions for a single * realization. Within a single production, the ordering of events is * meaningful. * * Note that all trace_tag events (if any) will occur just after the begin_pipeline * event, but before any begin_realization events. All trace_tags for a given Func * will be emitted in the order added. */ // @} extern int32_t halide_trace(void *user_context, const struct halide_trace_event_t *event); extern int32_t halide_default_trace(void *user_context, const struct halide_trace_event_t *event); typedef int32_t (*halide_trace_t)(void *user_context, const struct halide_trace_event_t *); extern halide_trace_t halide_set_custom_trace(halide_trace_t trace); // @} /** The header of a packet in a binary trace. All fields are 32-bit. */ struct halide_trace_packet_t { /** The total size of this packet in bytes. Always a multiple of * four. Equivalently, the number of bytes until the next * packet. */ uint32_t size; /** The id of this packet (for the purpose of parent_id). */ int32_t id; /** The remaining fields are equivalent to those in halide_trace_event_t */ // @{ struct halide_type_t type; enum halide_trace_event_code_t event; int32_t parent_id; int32_t value_index; int32_t dimensions; // @} #ifdef __cplusplus // If we don't explicitly mark the default ctor as inline, // certain build configurations can fail (notably iOS) HALIDE_ALWAYS_INLINE halide_trace_packet_t() {} /** Get the coordinates array, assuming this packet is laid out in * memory as it was written. The coordinates array comes * immediately after the packet header. */ HALIDE_ALWAYS_INLINE const int *coordinates() const { return (const int *)(this + 1); } HALIDE_ALWAYS_INLINE int *coordinates() { return (int *)(this + 1); } /** Get the value, assuming this packet is laid out in memory as * it was written. The packet comes immediately after the coordinates * array. */ HALIDE_ALWAYS_INLINE const void *value() const { return (const void *)(coordinates() + dimensions); } HALIDE_ALWAYS_INLINE void *value() { return (void *)(coordinates() + dimensions); } /** Get the func name, assuming this packet is laid out in memory * as it was written. It comes after the value. */ HALIDE_ALWAYS_INLINE const char *func() const { return (const char *)value() + type.lanes * type.bytes(); } HALIDE_ALWAYS_INLINE char *func() { return (char *)value() + type.lanes * type.bytes(); } /** Get the trace_tag (if any), assuming this packet is laid out in memory * as it was written. It comes after the func name. If there is no trace_tag, * this will return a pointer to an empty string. */ HALIDE_ALWAYS_INLINE const char *trace_tag() const { const char *f = func(); // strlen may not be available here while (*f++) { // nothing } return f; } HALIDE_ALWAYS_INLINE char *trace_tag() { char *f = func(); // strlen may not be available here while (*f++) { // nothing } return f; } #endif }; /** Set the file descriptor that Halide should write binary trace * events to. If called with 0 as the argument, Halide outputs trace * information to stdout in a human-readable format. If never called, * Halide checks the for existence of an environment variable called * HL_TRACE_FILE and opens that file. If HL_TRACE_FILE is not defined, * it outputs trace information to stdout in a human-readable * format. */ extern void halide_set_trace_file(int fd); /** Halide calls this to retrieve the file descriptor to write binary * trace events to. The default implementation returns the value set * by halide_set_trace_file. Implement it yourself if you wish to use * a custom file descriptor per user_context. Return zero from your * implementation to tell Halide to print human-readable trace * information to stdout. */ extern int halide_get_trace_file(void *user_context); /** If tracing is writing to a file. This call closes that file * (flushing the trace). Returns zero on success. */ extern int halide_shutdown_trace(); /** All Halide GPU or device backend implementations provide an * interface to be used with halide_device_malloc, etc. This is * accessed via the functions below. */ /** An opaque struct containing per-GPU API implementations of the * device functions. */ struct halide_device_interface_impl_t; /** Each GPU API provides a halide_device_interface_t struct pointing * to the code that manages device allocations. You can access these * functions directly from the struct member function pointers, or by * calling the functions declared below. Note that the global * functions are not available when using Halide as a JIT compiler. * If you are using raw halide_buffer_t in that context you must use * the function pointers in the device_interface struct. * * The function pointers below are currently the same for every GPU * API; only the impl field varies. These top-level functions do the * bookkeeping that is common across all GPU APIs, and then dispatch * to more API-specific functions via another set of function pointers * hidden inside the impl field. */ struct halide_device_interface_t { int (*device_malloc)(void *user_context, struct halide_buffer_t *buf, const struct halide_device_interface_t *device_interface); int (*device_free)(void *user_context, struct halide_buffer_t *buf); int (*device_sync)(void *user_context, struct halide_buffer_t *buf); void (*device_release)(void *user_context, const struct halide_device_interface_t *device_interface); int (*copy_to_host)(void *user_context, struct halide_buffer_t *buf); int (*copy_to_device)(void *user_context, struct halide_buffer_t *buf, const struct halide_device_interface_t *device_interface); int (*device_and_host_malloc)(void *user_context, struct halide_buffer_t *buf, const struct halide_device_interface_t *device_interface); int (*device_and_host_free)(void *user_context, struct halide_buffer_t *buf); int (*buffer_copy)(void *user_context, struct halide_buffer_t *src, const struct halide_device_interface_t *dst_device_interface, struct halide_buffer_t *dst); int (*device_crop)(void *user_context, const struct halide_buffer_t *src, struct halide_buffer_t *dst); int (*device_slice)(void *user_context, const struct halide_buffer_t *src, int slice_dim, int slice_pos, struct halide_buffer_t *dst); int (*device_release_crop)(void *user_context, struct halide_buffer_t *buf); int (*wrap_native)(void *user_context, struct halide_buffer_t *buf, uint64_t handle, const struct halide_device_interface_t *device_interface); int (*detach_native)(void *user_context, struct halide_buffer_t *buf); int (*compute_capability)(void *user_context, int *major, int *minor); const struct halide_device_interface_impl_t *impl; }; /** Release all data associated with the given device interface, in * particular all resources (memory, texture, context handles) * allocated by Halide. Must be called explicitly when using AOT * compilation. This is *not* thread-safe with respect to actively * running Halide code. Ensure all pipelines are finished before * calling this. */ extern void halide_device_release(void *user_context, const struct halide_device_interface_t *device_interface); /** Copy image data from device memory to host memory. This must be called * explicitly to copy back the results of a GPU-based filter. */ extern int halide_copy_to_host(void *user_context, struct halide_buffer_t *buf); /** Copy image data from host memory to device memory. This should not * be called directly; Halide handles copying to the device * automatically. If interface is NULL and the buf has a non-zero dev * field, the device associated with the dev handle will be * used. Otherwise if the dev field is 0 and interface is NULL, an * error is returned. */ extern int halide_copy_to_device(void *user_context, struct halide_buffer_t *buf, const struct halide_device_interface_t *device_interface); /** Copy data from one buffer to another. The buffers may have * different shapes and sizes, but the destination buffer's shape must * be contained within the source buffer's shape. That is, for each * dimension, the min on the destination buffer must be greater than * or equal to the min on the source buffer, and min+extent on the * destination buffer must be less that or equal to min+extent on the * source buffer. The source data is pulled from either device or * host memory on the source, depending on the dirty flags. host is * preferred if both are valid. The dst_device_interface parameter * controls the destination memory space. NULL means host memory. */ extern int halide_buffer_copy(void *user_context, struct halide_buffer_t *src, const struct halide_device_interface_t *dst_device_interface, struct halide_buffer_t *dst); /** Give the destination buffer a device allocation which is an alias * for the same coordinate range in the source buffer. Modifies the * device, device_interface, and the device_dirty flag only. Only * supported by some device APIs (others will return * halide_error_code_device_crop_unsupported). Call * halide_device_release_crop instead of halide_device_free to clean * up resources associated with the cropped view. Do not free the * device allocation on the source buffer while the destination buffer * still lives. Note that the two buffers do not share dirty flags, so * care must be taken to update them together as needed. Note that src * and dst are required to have the same number of dimensions. * * Note also that (in theory) device interfaces which support cropping may * still not support cropping a crop (instead, create a new crop of the parent * buffer); in practice, no known implementation has this limitation, although * it is possible that some future implementations may require it. */ extern int halide_device_crop(void *user_context, const struct halide_buffer_t *src, struct halide_buffer_t *dst); /** Give the destination buffer a device allocation which is an alias * for a similar coordinate range in the source buffer, but with one dimension * sliced away in the dst. Modifies the device, device_interface, and the * device_dirty flag only. Only supported by some device APIs (others will return * halide_error_code_device_crop_unsupported). Call * halide_device_release_crop instead of halide_device_free to clean * up resources associated with the sliced view. Do not free the * device allocation on the source buffer while the destination buffer * still lives. Note that the two buffers do not share dirty flags, so * care must be taken to update them together as needed. Note that the dst buffer * must have exactly one fewer dimension than the src buffer, and that slice_dim * and slice_pos must be valid within src. */ extern int halide_device_slice(void *user_context, const struct halide_buffer_t *src, int slice_dim, int slice_pos, struct halide_buffer_t *dst); /** Release any resources associated with a cropped/sliced view of another * buffer. */ extern int halide_device_release_crop(void *user_context, struct halide_buffer_t *buf); /** Wait for current GPU operations to complete. Calling this explicitly * should rarely be necessary, except maybe for profiling. */ extern int halide_device_sync(void *user_context, struct halide_buffer_t *buf); /** Allocate device memory to back a halide_buffer_t. */ extern int halide_device_malloc(void *user_context, struct halide_buffer_t *buf, const struct halide_device_interface_t *device_interface); /** Free device memory. */ extern int halide_device_free(void *user_context, struct halide_buffer_t *buf); /** Wrap or detach a native device handle, setting the device field * and device_interface field as appropriate for the given GPU * API. The meaning of the opaque handle is specific to the device * interface, so if you know the device interface in use, call the * more specific functions in the runtime headers for your specific * device API instead (e.g. HalideRuntimeCuda.h). */ // @{ extern int halide_device_wrap_native(void *user_context, struct halide_buffer_t *buf, uint64_t handle, const struct halide_device_interface_t *device_interface); extern int halide_device_detach_native(void *user_context, struct halide_buffer_t *buf); // @} /** Versions of the above functions that accept legacy buffer_t structs. */ // @{ extern int halide_copy_to_host_legacy(void *user_context, struct buffer_t *buf); extern int halide_copy_to_device_legacy(void *user_context, struct buffer_t *buf, const struct halide_device_interface_t *device_interface); extern int halide_device_sync_legacy(void *user_context, struct buffer_t *buf); extern int halide_device_malloc_legacy(void *user_context, struct buffer_t *buf, const struct halide_device_interface_t *device_interface); extern int halide_device_free_legacy(void *user_context, struct buffer_t *buf); // @} /** Selects which gpu device to use. 0 is usually the display * device. If never called, Halide uses the environment variable * HL_GPU_DEVICE. If that variable is unset, Halide uses the last * device. Set this to -1 to use the last device. */ extern void halide_set_gpu_device(int n); /** Halide calls this to get the desired halide gpu device * setting. Implement this yourself to use a different gpu device per * user_context. The default implementation returns the value set by * halide_set_gpu_device, or the environment variable * HL_GPU_DEVICE. */ extern int halide_get_gpu_device(void *user_context); /** Set the soft maximum amount of memory, in bytes, that the LRU * cache will use to memoize Func results. This is not a strict * maximum in that concurrency and simultaneous use of memoized * reults larger than the cache size can both cause it to * temporariliy be larger than the size specified here. */ extern void halide_memoization_cache_set_size(int64_t size); /** Given a cache key for a memoized result, currently constructed * from the Func name and top-level Func name plus the arguments of * the computation, determine if the result is in the cache and * return it if so. (The internals of the cache key should be * considered opaque by this function.) If this routine returns true, * it is a cache miss. Otherwise, it will return false and the * buffers passed in will be filled, via copying, with memoized * data. The last argument is a list if halide_buffer_t pointers which * represents the outputs of the memoized Func. If the Func does not * return a Tuple, there will only be one halide_buffer_t in the list. The * tuple_count parameters determines the length of the list. * * The return values are: * -1: Signals an error. * 0: Success and cache hit. * 1: Success and cache miss. */ extern int halide_memoization_cache_lookup(void *user_context, const uint8_t *cache_key, int32_t size, struct halide_buffer_t *realized_bounds, int32_t tuple_count, struct halide_buffer_t **tuple_buffers); /** Given a cache key for a memoized result, currently constructed * from the Func name and top-level Func name plus the arguments of * the computation, store the result in the cache for futre access by * halide_memoization_cache_lookup. (The internals of the cache key * should be considered opaque by this function.) Data is copied out * from the inputs and inputs are unmodified. The last argument is a * list if halide_buffer_t pointers which represents the outputs of the * memoized Func. If the Func does not return a Tuple, there will * only be one halide_buffer_t in the list. The tuple_count parameters * determines the length of the list. * * If there is a memory allocation failure, the store does not store * the data into the cache. */ extern int halide_memoization_cache_store(void *user_context, const uint8_t *cache_key, int32_t size, struct halide_buffer_t *realized_bounds, int32_t tuple_count, struct halide_buffer_t **tuple_buffers); /** If halide_memoization_cache_lookup succeeds, * halide_memoization_cache_release must be called to signal the * storage is no longer being used by the caller. It will be passed * the host pointer of one the buffers returned by * halide_memoization_cache_lookup. That is * halide_memoization_cache_release will be called multiple times for * the case where halide_memoization_cache_lookup is handling multiple * buffers. (This corresponds to memoizing a Tuple in Halide.) Note * that the host pointer must be sufficient to get to all information * the relase operation needs. The default Halide cache impleemntation * accomplishes this by storing extra data before the start of the user * modifiable host storage. * * This call is like free and does not have a failure return. */ extern void halide_memoization_cache_release(void *user_context, void *host); /** Free all memory and resources associated with the memoization cache. * Must be called at a time when no other threads are accessing the cache. */ extern void halide_memoization_cache_cleanup(); /** Annotate that a given range of memory has been initialized; * only used when Target::MSAN is enabled. * * The default implementation uses the LLVM-provided AnnotateMemoryIsInitialized() function. */ extern void halide_msan_annotate_memory_is_initialized(void *user_context, const void *ptr, uint64_t len); /** Mark the data pointed to by the buffer_t as initialized (but *not* the buffer_t itself), * using halide_msan_annotate_memory_is_initialized() for marking. * * The default implementation takes pains to only mark the active memory ranges * (skipping padding), and sorting into ranges to always mark the smallest number of * ranges, in monotonically increasing memory order. * * Most client code should never need to replace the default implementation. */ extern void halide_msan_annotate_buffer_is_initialized(void *user_context, struct halide_buffer_t *buffer); extern void halide_msan_annotate_buffer_is_initialized_as_destructor(void *user_context, void *buffer); /** The error codes that may be returned by a Halide pipeline. */ enum halide_error_code_t { /** There was no error. This is the value returned by Halide on success. */ halide_error_code_success = 0, /** An uncategorized error occurred. Refer to the string passed to halide_error. */ halide_error_code_generic_error = -1, /** A Func was given an explicit bound via Func::bound, but this * was not large enough to encompass the region that is used of * the Func by the rest of the pipeline. */ halide_error_code_explicit_bounds_too_small = -2, /** The elem_size field of a halide_buffer_t does not match the size in * bytes of the type of that ImageParam. Probable type mismatch. */ halide_error_code_bad_type = -3, /** A pipeline would access memory outside of the halide_buffer_t passed * in. */ halide_error_code_access_out_of_bounds = -4, /** A halide_buffer_t was given that spans more than 2GB of memory. */ halide_error_code_buffer_allocation_too_large = -5, /** A halide_buffer_t was given with extents that multiply to a number * greater than 2^31-1 */ halide_error_code_buffer_extents_too_large = -6, /** Applying explicit constraints on the size of an input or * output buffer shrank the size of that buffer below what will be * accessed by the pipeline. */ halide_error_code_constraints_make_required_region_smaller = -7, /** A constraint on a size or stride of an input or output buffer * was not met by the halide_buffer_t passed in. */ halide_error_code_constraint_violated = -8, /** A scalar parameter passed in was smaller than its minimum * declared value. */ halide_error_code_param_too_small = -9, /** A scalar parameter passed in was greater than its minimum * declared value. */ halide_error_code_param_too_large = -10, /** A call to halide_malloc returned NULL. */ halide_error_code_out_of_memory = -11, /** A halide_buffer_t pointer passed in was NULL. */ halide_error_code_buffer_argument_is_null = -12, /** debug_to_file failed to open or write to the specified * file. */ halide_error_code_debug_to_file_failed = -13, /** The Halide runtime encountered an error while trying to copy * from device to host. Turn on -debug in your target string to * see more details. */ halide_error_code_copy_to_host_failed = -14, /** The Halide runtime encountered an error while trying to copy * from host to device. Turn on -debug in your target string to * see more details. */ halide_error_code_copy_to_device_failed = -15, /** The Halide runtime encountered an error while trying to * allocate memory on device. Turn on -debug in your target string * to see more details. */ halide_error_code_device_malloc_failed = -16, /** The Halide runtime encountered an error while trying to * synchronize with a device. Turn on -debug in your target string * to see more details. */ halide_error_code_device_sync_failed = -17, /** The Halide runtime encountered an error while trying to free a * device allocation. Turn on -debug in your target string to see * more details. */ halide_error_code_device_free_failed = -18, /** Buffer has a non-zero device but no device interface, which * violates a Halide invariant. */ halide_error_code_no_device_interface = -19, /** An error occurred when attempting to initialize the Matlab * runtime. */ halide_error_code_matlab_init_failed = -20, /** The type of an mxArray did not match the expected type. */ halide_error_code_matlab_bad_param_type = -21, /** There is a bug in the Halide compiler. */ halide_error_code_internal_error = -22, /** The Halide runtime encountered an error while trying to launch * a GPU kernel. Turn on -debug in your target string to see more * details. */ halide_error_code_device_run_failed = -23, /** The Halide runtime encountered a host pointer that violated * the alignment set for it by way of a call to * set_host_alignment */ halide_error_code_unaligned_host_ptr = -24, /** A fold_storage directive was used on a dimension that is not * accessed in a monotonically increasing or decreasing fashion. */ halide_error_code_bad_fold = -25, /** A fold_storage directive was used with a fold factor that was * too small to store all the values of a producer needed by the * consumer. */ halide_error_code_fold_factor_too_small = -26, /** User-specified require() expression was not satisfied. */ halide_error_code_requirement_failed = -27, /** At least one of the buffer's extents are negative. */ halide_error_code_buffer_extents_negative = -28, /** A compiled pipeline was passed the old deprecated buffer_t * struct, and it could not be upgraded to a halide_buffer_t. */ halide_error_code_failed_to_upgrade_buffer_t = -29, /** A compiled pipeline was passed the old deprecated buffer_t * struct in bounds inference mode, but the returned information * can't be expressed in the old buffer_t. */ halide_error_code_failed_to_downgrade_buffer_t = -30, /** A specialize_fail() schedule branch was selected at runtime. */ halide_error_code_specialize_fail = -31, /** The Halide runtime encountered an error while trying to wrap a * native device handle. Turn on -debug in your target string to * see more details. */ halide_error_code_device_wrap_native_failed = -32, /** The Halide runtime encountered an error while trying to detach * a native device handle. Turn on -debug in your target string * to see more details. */ halide_error_code_device_detach_native_failed = -33, /** The host field on an input or output was null, the device * field was not zero, and the pipeline tries to use the buffer on * the host. You may be passing a GPU-only buffer to a pipeline * which is scheduled to use it on the CPU. */ halide_error_code_host_is_null = -34, /** A folded buffer was passed to an extern stage, but the region * touched wraps around the fold boundary. */ halide_error_code_bad_extern_fold = -35, /** Buffer has a non-null device_interface but device is 0, which * violates a Halide invariant. */ halide_error_code_device_interface_no_device= -36, /** Buffer has both host and device dirty bits set, which violates * a Halide invariant. */ halide_error_code_host_and_device_dirty = -37, /** The halide_buffer_t * passed to a halide runtime routine is * nullptr and this is not allowed. */ halide_error_code_buffer_is_null = -38, /** The Halide runtime encountered an error while trying to copy * from one buffer to another. Turn on -debug in your target * string to see more details. */ halide_error_code_device_buffer_copy_failed = -39, /** Attempted to make cropped/sliced alias of a buffer with a device * field, but the device_interface does not support cropping. */ halide_error_code_device_crop_unsupported = -40, /** Cropping/slicing a buffer failed for some other reason. Turn on -debug * in your target string. */ halide_error_code_device_crop_failed = -41, /** An operation on a buffer required an allocation on a * particular device interface, but a device allocation already * existed on a different device interface. Free the old one * first. */ halide_error_code_incompatible_device_interface = -42, /** The dimensions field of a halide_buffer_t does not match the dimensions of that ImageParam. */ halide_error_code_bad_dimensions = -43, /** An expression that would perform an integer division or modulo * by zero was evaluated. */ halide_error_code_integer_division_by_zero = -44, }; /** Halide calls the functions below on various error conditions. The * default implementations construct an error message, call * halide_error, then return the matching error code above. On * platforms that support weak linking, you can override these to * catch the errors individually. */ /** A call into an extern stage for the purposes of bounds inference * failed. Returns the error code given by the extern stage. */ extern int halide_error_bounds_inference_call_failed(void *user_context, const char *extern_stage_name, int result); /** A call to an extern stage failed. Returned the error code given by * the extern stage. */ extern int halide_error_extern_stage_failed(void *user_context, const char *extern_stage_name, int result); /** Various other error conditions. See the enum above for a * description of each. */ // @{ extern int halide_error_explicit_bounds_too_small(void *user_context, const char *func_name, const char *var_name, int min_bound, int max_bound, int min_required, int max_required); extern int halide_error_bad_type(void *user_context, const char *func_name, uint32_t type_given, uint32_t correct_type); // N.B. The last two args are the bit representation of a halide_type_t extern int halide_error_bad_dimensions(void *user_context, const char *func_name, int32_t dimensions_given, int32_t correct_dimensions); extern int halide_error_access_out_of_bounds(void *user_context, const char *func_name, int dimension, int min_touched, int max_touched, int min_valid, int max_valid); extern int halide_error_buffer_allocation_too_large(void *user_context, const char *buffer_name, uint64_t allocation_size, uint64_t max_size); extern int halide_error_buffer_extents_negative(void *user_context, const char *buffer_name, int dimension, int extent); extern int halide_error_buffer_extents_too_large(void *user_context, const char *buffer_name, int64_t actual_size, int64_t max_size); extern int halide_error_constraints_make_required_region_smaller(void *user_context, const char *buffer_name, int dimension, int constrained_min, int constrained_extent, int required_min, int required_extent); extern int halide_error_constraint_violated(void *user_context, const char *var, int val, const char *constrained_var, int constrained_val); extern int halide_error_param_too_small_i64(void *user_context, const char *param_name, int64_t val, int64_t min_val); extern int halide_error_param_too_small_u64(void *user_context, const char *param_name, uint64_t val, uint64_t min_val); extern int halide_error_param_too_small_f64(void *user_context, const char *param_name, double val, double min_val); extern int halide_error_param_too_large_i64(void *user_context, const char *param_name, int64_t val, int64_t max_val); extern int halide_error_param_too_large_u64(void *user_context, const char *param_name, uint64_t val, uint64_t max_val); extern int halide_error_param_too_large_f64(void *user_context, const char *param_name, double val, double max_val); extern int halide_error_out_of_memory(void *user_context); extern int halide_error_buffer_argument_is_null(void *user_context, const char *buffer_name); extern int halide_error_debug_to_file_failed(void *user_context, const char *func, const char *filename, int error_code); extern int halide_error_unaligned_host_ptr(void *user_context, const char *func_name, int alignment); extern int halide_error_host_is_null(void *user_context, const char *func_name); extern int halide_error_failed_to_upgrade_buffer_t(void *user_context, const char *input_name, const char *reason); extern int halide_error_failed_to_downgrade_buffer_t(void *user_context, const char *input_name, const char *reason); extern int halide_error_bad_fold(void *user_context, const char *func_name, const char *var_name, const char *loop_name); extern int halide_error_bad_extern_fold(void *user_context, const char *func_name, int dim, int min, int extent, int valid_min, int fold_factor); extern int halide_error_fold_factor_too_small(void *user_context, const char *func_name, const char *var_name, int fold_factor, const char *loop_name, int required_extent); extern int halide_error_requirement_failed(void *user_context, const char *condition, const char *message); extern int halide_error_specialize_fail(void *user_context, const char *message); extern int halide_error_no_device_interface(void *user_context); extern int halide_error_device_interface_no_device(void *user_context); extern int halide_error_host_and_device_dirty(void *user_context); extern int halide_error_buffer_is_null(void *user_context, const char *routine); extern int halide_error_integer_division_by_zero(void *user_context); // @} /** Optional features a compilation Target can have. * Be sure to keep this in sync with the Feature enum in Target.h and the implementation of * get_runtime_compatible_target in Target.cpp if you add a new feature. */ typedef enum halide_target_feature_t { halide_target_feature_jit = 0, ///< Generate code that will run immediately inside the calling process. halide_target_feature_debug, ///< Turn on debug info and output for runtime code. halide_target_feature_no_asserts, ///< Disable all runtime checks, for slightly tighter code. halide_target_feature_no_bounds_query, ///< Disable the bounds querying functionality. halide_target_feature_sse41, ///< Use SSE 4.1 and earlier instructions. Only relevant on x86. halide_target_feature_avx, ///< Use AVX 1 instructions. Only relevant on x86. halide_target_feature_avx2, ///< Use AVX 2 instructions. Only relevant on x86. halide_target_feature_fma, ///< Enable x86 FMA instruction halide_target_feature_fma4, ///< Enable x86 (AMD) FMA4 instruction set halide_target_feature_f16c, ///< Enable x86 16-bit float support halide_target_feature_armv7s, ///< Generate code for ARMv7s. Only relevant for 32-bit ARM. halide_target_feature_no_neon, ///< Avoid using NEON instructions. Only relevant for 32-bit ARM. halide_target_feature_vsx, ///< Use VSX instructions. Only relevant on POWERPC. halide_target_feature_power_arch_2_07, ///< Use POWER ISA 2.07 new instructions. Only relevant on POWERPC. halide_target_feature_cuda, ///< Enable the CUDA runtime. Defaults to compute capability 2.0 (Fermi) halide_target_feature_cuda_capability30, ///< Enable CUDA compute capability 3.0 (Kepler) halide_target_feature_cuda_capability32, ///< Enable CUDA compute capability 3.2 (Tegra K1) halide_target_feature_cuda_capability35, ///< Enable CUDA compute capability 3.5 (Kepler) halide_target_feature_cuda_capability50, ///< Enable CUDA compute capability 5.0 (Maxwell) halide_target_feature_opencl, ///< Enable the OpenCL runtime. halide_target_feature_cl_doubles, ///< Enable double support on OpenCL targets halide_target_feature_opengl, ///< Enable the OpenGL runtime. halide_target_feature_openglcompute, ///< Enable OpenGL Compute runtime. halide_target_feature_user_context, ///< Generated code takes a user_context pointer as first argument halide_target_feature_matlab, ///< Generate a mexFunction compatible with Matlab mex libraries. See tools/mex_halide.m. halide_target_feature_profile, ///< Launch a sampling profiler alongside the Halide pipeline that monitors and reports the runtime used by each Func halide_target_feature_no_runtime, ///< Do not include a copy of the Halide runtime in any generated object file or assembly halide_target_feature_metal, ///< Enable the (Apple) Metal runtime. halide_target_feature_mingw, ///< For Windows compile to MinGW toolset rather then Visual Studio halide_target_feature_c_plus_plus_mangling, ///< Generate C++ mangled names for result function, et al halide_target_feature_large_buffers, ///< Enable 64-bit buffer indexing to support buffers > 2GB. Ignored if bits != 64. halide_target_feature_hvx_64, ///< Enable HVX 64 byte mode. halide_target_feature_hvx_128, ///< Enable HVX 128 byte mode. halide_target_feature_hvx_v62, ///< Enable Hexagon v62 architecture. halide_target_feature_fuzz_float_stores, ///< On every floating point store, set the last bit of the mantissa to zero. Pipelines for which the output is very different with this feature enabled may also produce very different output on different processors. halide_target_feature_soft_float_abi, ///< Enable soft float ABI. This only enables the soft float ABI calling convention, which does not necessarily use soft floats. halide_target_feature_msan, ///< Enable hooks for MSAN support. halide_target_feature_avx512, ///< Enable the base AVX512 subset supported by all AVX512 architectures. The specific feature sets are AVX-512F and AVX512-CD. See https://en.wikipedia.org/wiki/AVX-512 for a description of each AVX subset. halide_target_feature_avx512_knl, ///< Enable the AVX512 features supported by Knight's Landing chips, such as the Xeon Phi x200. This includes the base AVX512 set, and also AVX512-CD and AVX512-ER. halide_target_feature_avx512_skylake, ///< Enable the AVX512 features supported by Skylake Xeon server processors. This adds AVX512-VL, AVX512-BW, and AVX512-DQ to the base set. The main difference from the base AVX512 set is better support for small integer ops. Note that this does not include the Knight's Landing features. Note also that these features are not available on Skylake desktop and mobile processors. halide_target_feature_avx512_cannonlake, ///< Enable the AVX512 features expected to be supported by future Cannonlake processors. This includes all of the Skylake features, plus AVX512-IFMA and AVX512-VBMI. halide_target_feature_hvx_use_shared_object, ///< Deprecated halide_target_feature_trace_loads, ///< Trace all loads done by the pipeline. Equivalent to calling Func::trace_loads on every non-inlined Func. halide_target_feature_trace_stores, ///< Trace all stores done by the pipeline. Equivalent to calling Func::trace_stores on every non-inlined Func. halide_target_feature_trace_realizations, ///< Trace all realizations done by the pipeline. Equivalent to calling Func::trace_realizations on every non-inlined Func. halide_target_feature_cuda_capability61, ///< Enable CUDA compute capability 6.1 (Pascal) halide_target_feature_hvx_v65, ///< Enable Hexagon v65 architecture. halide_target_feature_hvx_v66, ///< Enable Hexagon v66 architecture. halide_target_feature_cl_half, ///< Enable half support on OpenCL targets halide_target_feature_strict_float, ///< Turn off all non-IEEE floating-point optimization. Currently applies only to LLVM targets. halide_target_feature_legacy_buffer_wrappers, ///< Emit legacy wrapper code for buffer_t (vs halide_buffer_t) when AOT-compiled. halide_target_feature_tsan, ///< Enable hooks for TSAN support. halide_target_feature_asan, ///< Enable hooks for ASAN support. halide_target_feature_d3d12compute, ///< Enable Direct3D 12 Compute runtime. halide_target_feature_check_unsafe_promises, ///< Insert assertions for promises. halide_target_feature_hexagon_dma, ///< Enable Hexagon DMA buffers. halide_target_feature_embed_bitcode, ///< Emulate clang -fembed-bitcode flag. halide_target_feature_disable_llvm_loop_vectorize, ///< Disable loop vectorization in LLVM. (Ignored for non-LLVM targets.) halide_target_feature_disable_llvm_loop_unroll, ///< Disable loop unrolling in LLVM. (Ignored for non-LLVM targets.) halide_target_feature_wasm_simd128, ///< Enable +simd128 instructions for WebAssembly codegen. halide_target_feature_wasm_signext, ///< Enable +sign-ext instructions for WebAssembly codegen. halide_target_feature_end ///< A sentinel. Every target is considered to have this feature, and setting this feature does nothing. } halide_target_feature_t; /** This function is called internally by Halide in some situations to determine * if the current execution environment can support the given set of * halide_target_feature_t flags. The implementation must do the following: * * -- If there are flags set in features that the function knows *cannot* be supported, return 0. * -- Otherwise, return 1. * -- Note that any flags set in features that the function doesn't know how to test should be ignored; * this implies that a return value of 1 means "not known to be bad" rather than "known to be good". * * In other words: a return value of 0 means "It is not safe to use code compiled with these features", * while a return value of 1 means "It is not obviously unsafe to use code compiled with these features". * * The default implementation simply calls halide_default_can_use_target_features. * * Note that `features` points to an array of `count` uint64_t; this array must contain enough * bits to represent all the currently known features. Any excess bits must be set to zero. */ // @{ extern int halide_can_use_target_features(int count, const uint64_t *features); typedef int (*halide_can_use_target_features_t)(int count, const uint64_t *features); extern halide_can_use_target_features_t halide_set_custom_can_use_target_features(halide_can_use_target_features_t); // @} /** * This is the default implementation of halide_can_use_target_features; it is provided * for convenience of user code that may wish to extend halide_can_use_target_features * but continue providing existing support, e.g. * * int halide_can_use_target_features(int count, const uint64_t *features) { * if (features[halide_target_somefeature >> 6] & (1LL << (halide_target_somefeature & 63))) { * if (!can_use_somefeature()) { * return 0; * } * } * return halide_default_can_use_target_features(count, features); * } */ extern int halide_default_can_use_target_features(int count, const uint64_t *features); typedef struct halide_dimension_t { int32_t min, extent, stride; // Per-dimension flags. None are defined yet (This is reserved for future use). uint32_t flags; #ifdef __cplusplus HALIDE_ALWAYS_INLINE halide_dimension_t() : min(0), extent(0), stride(0), flags(0) {} HALIDE_ALWAYS_INLINE halide_dimension_t(int32_t m, int32_t e, int32_t s, uint32_t f = 0) : min(m), extent(e), stride(s), flags(f) {} HALIDE_ALWAYS_INLINE bool operator==(const halide_dimension_t &other) const { return (min == other.min) && (extent == other.extent) && (stride == other.stride) && (flags == other.flags); } HALIDE_ALWAYS_INLINE bool operator!=(const halide_dimension_t &other) const { return !(*this == other); } #endif } halide_dimension_t; #ifdef __cplusplus } // extern "C" #endif typedef enum {halide_buffer_flag_host_dirty = 1, halide_buffer_flag_device_dirty = 2} halide_buffer_flags; /** * The raw representation of an image passed around by generated * Halide code. It includes some stuff to track whether the image is * not actually in main memory, but instead on a device (like a * GPU). For a more convenient C++ wrapper, use Halide::Buffer<T>. */ typedef struct halide_buffer_t { /** A device-handle for e.g. GPU memory used to back this buffer. */ uint64_t device; /** The interface used to interpret the above handle. */ const struct halide_device_interface_t *device_interface; /** A pointer to the start of the data in main memory. In terms of * the Halide coordinate system, this is the address of the min * coordinates (defined below). */ uint8_t* host; /** flags with various meanings. */ uint64_t flags; /** The type of each buffer element. */ struct halide_type_t type; /** The dimensionality of the buffer. */ int32_t dimensions; /** The shape of the buffer. Halide does not own this array - you * must manage the memory for it yourself. */ halide_dimension_t *dim; /** Pads the buffer up to a multiple of 8 bytes */ void *padding; #ifdef __cplusplus /** Convenience methods for accessing the flags */ // @{ HALIDE_ALWAYS_INLINE bool get_flag(halide_buffer_flags flag) const { return (flags & flag) != 0; } HALIDE_ALWAYS_INLINE void set_flag(halide_buffer_flags flag, bool value) { if (value) { flags |= flag; } else { flags &= ~flag; } } HALIDE_ALWAYS_INLINE bool host_dirty() const { return get_flag(halide_buffer_flag_host_dirty); } HALIDE_ALWAYS_INLINE bool device_dirty() const { return get_flag(halide_buffer_flag_device_dirty); } HALIDE_ALWAYS_INLINE void set_host_dirty(bool v = true) { set_flag(halide_buffer_flag_host_dirty, v); } HALIDE_ALWAYS_INLINE void set_device_dirty(bool v = true) { set_flag(halide_buffer_flag_device_dirty, v); } // @} /** The total number of elements this buffer represents. Equal to * the product of the extents */ HALIDE_ALWAYS_INLINE size_t number_of_elements() const { size_t s = 1; for (int i = 0; i < dimensions; i++) { s *= dim[i].extent; } return s; } /** A pointer to the element with the lowest address. If all * strides are positive, equal to the host pointer. */ HALIDE_ALWAYS_INLINE uint8_t *begin() const { ptrdiff_t index = 0; for (int i = 0; i < dimensions; i++) { if (dim[i].stride < 0) { index += dim[i].stride * (dim[i].extent - 1); } } return host + index * type.bytes(); } /** A pointer to one beyond the element with the highest address. */ HALIDE_ALWAYS_INLINE uint8_t *end() const { ptrdiff_t index = 0; for (int i = 0; i < dimensions; i++) { if (dim[i].stride > 0) { index += dim[i].stride * (dim[i].extent - 1); } } index += 1; return host + index * type.bytes(); } /** The total number of bytes spanned by the data in memory. */ HALIDE_ALWAYS_INLINE size_t size_in_bytes() const { return (size_t)(end() - begin()); } /** A pointer to the element at the given location. */ HALIDE_ALWAYS_INLINE uint8_t *address_of(const int *pos) const { ptrdiff_t index = 0; for (int i = 0; i < dimensions; i++) { index += dim[i].stride * (pos[i] - dim[i].min); } return host + index * type.bytes(); } /** Attempt to call device_sync for the buffer. If the buffer * has no device_interface (or no device_sync), this is a quiet no-op. * Calling this explicitly should rarely be necessary, except for profiling. */ HALIDE_ALWAYS_INLINE int device_sync(void *ctx = NULL) { if (device_interface && device_interface->device_sync) { return device_interface->device_sync(ctx, this); } return 0; } /** Check if an input buffer passed extern stage is a querying * bounds. Compared to doing the host pointer check directly, * this both adds clarity to code and will facilitate moving to * another representation for bounds query arguments. */ HALIDE_ALWAYS_INLINE bool is_bounds_query() const { return host == NULL && device == 0; } #endif } halide_buffer_t; #ifdef __cplusplus extern "C" { #endif #ifndef HALIDE_ATTRIBUTE_DEPRECATED #ifdef HALIDE_ALLOW_DEPRECATED #define HALIDE_ATTRIBUTE_DEPRECATED(x) #else #ifdef _MSC_VER #define HALIDE_ATTRIBUTE_DEPRECATED(x) __declspec(deprecated(x)) #else #define HALIDE_ATTRIBUTE_DEPRECATED(x) __attribute__((deprecated(x))) #endif #endif #endif /** The old buffer_t, included for compatibility with old code. Don't * use it. */ #ifndef BUFFER_T_DEFINED #define BUFFER_T_DEFINED typedef struct buffer_t { uint64_t dev; uint8_t* host; int32_t extent[4]; int32_t stride[4]; int32_t min[4]; int32_t elem_size; HALIDE_ATTRIBUTE_ALIGN(1) bool host_dirty; HALIDE_ATTRIBUTE_ALIGN(1) bool dev_dirty; HALIDE_ATTRIBUTE_ALIGN(1) uint8_t _padding[10 - sizeof(void *)]; } buffer_t; #endif // BUFFER_T_DEFINED /** Copies host pointer, mins, extents, strides, and device state from * an old-style buffer_t into a new-style halide_buffer_t. If bounds_query_only is nonzero, * the copy is only done if the old_buf has null host and dev (ie, a bounds query is being * performed); otherwise new_buf is left untouched. (This is used for input buffers to avoid * benign data races.) The dimensions and type fields of the new buffer_t should already be * set. Returns an error code if the upgrade could not be performed. */ extern int halide_upgrade_buffer_t(void *user_context, const char *name, const buffer_t *old_buf, halide_buffer_t *new_buf, int bounds_query_only); /** Copies the host pointer, mins, extents, strides, and device state * from a halide_buffer_t to a buffer_t. Also sets elem_size. Useful * for backporting the results of bounds inference. */ extern int halide_downgrade_buffer_t(void *user_context, const char *name, const halide_buffer_t *new_buf, buffer_t *old_buf); /** Copies the dirty flags and device allocation state from a new * buffer_t back to a legacy buffer_t. */ extern int halide_downgrade_buffer_t_device_fields(void *user_context, const char *name, const halide_buffer_t *new_buf, buffer_t *old_buf); /** halide_scalar_value_t is a simple union able to represent all the well-known * scalar values in a filter argument. Note that it isn't tagged with a type; * you must ensure you know the proper type before accessing. Most user * code will never need to create instances of this struct; its primary use * is to hold def/min/max values in a halide_filter_argument_t. (Note that * this is conceptually just a union; it's wrapped in a struct to ensure * that it doesn't get anonymized by LLVM.) */ struct halide_scalar_value_t { union { bool b; int8_t i8; int16_t i16; int32_t i32; int64_t i64; uint8_t u8; uint16_t u16; uint32_t u32; uint64_t u64; float f32; double f64; void *handle; } u; #ifdef __cplusplus HALIDE_ALWAYS_INLINE halide_scalar_value_t() {u.u64 = 0;} #endif }; enum halide_argument_kind_t { halide_argument_kind_input_scalar = 0, halide_argument_kind_input_buffer = 1, halide_argument_kind_output_buffer = 2 }; /* These structs must be robust across different compilers and settings; when modifying them, strive for the following rules: 1) All fields are explicitly sized. I.e. must use int32_t and not "int" 2) All fields must land on an alignment boundary that is the same as their size 3) Explicit padding is added to make that so 4) The sizeof the struct is padded out to a multiple of the largest natural size thing in the struct 5) don't forget that 32 and 64 bit pointers are different sizes */ /** * Obsolete version of halide_filter_argument_t; only present in * code that wrote halide_filter_metadata_t version 0. */ struct halide_filter_argument_t_v0 { const char *name; int32_t kind; int32_t dimensions; struct halide_type_t type; const struct halide_scalar_value_t *def, *min, *max; }; /** * halide_filter_argument_t is essentially a plain-C-struct equivalent to * Halide::Argument; most user code will never need to create one. */ struct halide_filter_argument_t { const char *name; // name of the argument; will never be null or empty. int32_t kind; // actually halide_argument_kind_t int32_t dimensions; // always zero for scalar arguments struct halide_type_t type; // These pointers should always be null for buffer arguments, // and *may* be null for scalar arguments. (A null value means // there is no def/min/max/estimate specified for this argument.) const struct halide_scalar_value_t *scalar_def, *scalar_min, *scalar_max, *scalar_estimate; // This pointer should always be null for scalar arguments, // and *may* be null for buffer arguments. If not null, it should always // point to an array of dimensions*2 pointers, which will be the (min, extent) // estimates for each dimension of the buffer. (Note that any of the pointers // may be null as well.) int64_t const* const* buffer_estimates; }; struct halide_filter_metadata_t { #ifdef __cplusplus static const int32_t VERSION = 1; #endif /** version of this metadata; currently always 1. */ int32_t version; /** The number of entries in the arguments field. This is always >= 1. */ int32_t num_arguments; /** An array of the filters input and output arguments; this will never be * null. The order of arguments is not guaranteed (input and output arguments * may come in any order); however, it is guaranteed that all arguments * will have a unique name within a given filter. */ const struct halide_filter_argument_t* arguments; /** The Target for which the filter was compiled. This is always * a canonical Target string (ie a product of Target::to_string). */ const char* target; /** The function name of the filter. */ const char* name; }; /** halide_register_argv_and_metadata() is a **user-defined** function that * must be provided in order to use the registration.cc files produced * by Generators when the 'registration' output is requested. Each registration.cc * file provides a static initializer that calls this function with the given * filter's argv-call variant, its metadata, and (optionally) and additional * textual data that the build system chooses to tack on for its own purposes. * Note that this will be called at static-initializer time (i.e., before * main() is called), and in an unpredictable order. Note that extra_key_value_pairs * may be nullptr; if it's not null, it's expected to be a null-terminated list * of strings, with an even number of entries. */ void halide_register_argv_and_metadata( int (*filter_argv_call)(void **), const struct halide_filter_metadata_t *filter_metadata, const char * const *extra_key_value_pairs ); /** The functions below here are relevant for pipelines compiled with * the -profile target flag, which runs a sampling profiler thread * alongside the pipeline. */ /** Per-Func state tracked by the sampling profiler. */ struct halide_profiler_func_stats { /** Total time taken evaluating this Func (in nanoseconds). */ uint64_t time; /** The current memory allocation of this Func. */ uint64_t memory_current; /** The peak memory allocation of this Func. */ uint64_t memory_peak; /** The total memory allocation of this Func. */ uint64_t memory_total; /** The peak stack allocation of this Func's threads. */ uint64_t stack_peak; /** The average number of thread pool worker threads active while computing this Func. */ uint64_t active_threads_numerator, active_threads_denominator; /** The name of this Func. A global constant string. */ const char *name; /** The total number of memory allocation of this Func. */ int num_allocs; }; /** Per-pipeline state tracked by the sampling profiler. These exist * in a linked list. */ struct halide_profiler_pipeline_stats { /** Total time spent inside this pipeline (in nanoseconds) */ uint64_t time; /** The current memory allocation of funcs in this pipeline. */ uint64_t memory_current; /** The peak memory allocation of funcs in this pipeline. */ uint64_t memory_peak; /** The total memory allocation of funcs in this pipeline. */ uint64_t memory_total; /** The average number of thread pool worker threads doing useful * work while computing this pipeline. */ uint64_t active_threads_numerator, active_threads_denominator; /** The name of this pipeline. A global constant string. */ const char *name; /** An array containing states for each Func in this pipeline. */ struct halide_profiler_func_stats *funcs; /** The next pipeline_stats pointer. It's a void * because types * in the Halide runtime may not currently be recursive. */ void *next; /** The number of funcs in this pipeline. */ int num_funcs; /** An internal base id used to identify the funcs in this pipeline. */ int first_func_id; /** The number of times this pipeline has been run. */ int runs; /** The total number of samples taken inside of this pipeline. */ int samples; /** The total number of memory allocation of funcs in this pipeline. */ int num_allocs; }; /** The global state of the profiler. */ struct halide_profiler_state { /** Guards access to the fields below. If not locked, the sampling * profiler thread is free to modify things below (including * reordering the linked list of pipeline stats). */ struct halide_mutex lock; /** The amount of time the profiler thread sleeps between samples * in milliseconds. Defaults to 1 */ int sleep_time; /** An internal id used for bookkeeping. */ int first_free_id; /** The id of the current running Func. Set by the pipeline, read * periodically by the profiler thread. */ int current_func; /** The number of threads currently doing work. */ int active_threads; /** A linked list of stats gathered for each pipeline. */ struct halide_profiler_pipeline_stats *pipelines; /** Retrieve remote profiler state. Used so that the sampling * profiler can follow along with execution that occurs elsewhere, * e.g. on a DSP. If null, it reads from the int above instead. */ void (*get_remote_profiler_state)(int *func, int *active_workers); /** Sampling thread reference to be joined at shutdown. */ struct halide_thread *sampling_thread; }; /** Profiler func ids with special meanings. */ enum { /// current_func takes on this value when not inside Halide code halide_profiler_outside_of_halide = -1, /// Set current_func to this value to tell the profiling thread to /// halt. It will start up again next time you run a pipeline with /// profiling enabled. halide_profiler_please_stop = -2 }; /** Get a pointer to the global profiler state for programmatic * inspection. Lock it before using to pause the profiler. */ extern struct halide_profiler_state *halide_profiler_get_state(); /** Get a pointer to the pipeline state associated with pipeline_name. * This function grabs the global profiler state's lock on entry. */ extern struct halide_profiler_pipeline_stats *halide_profiler_get_pipeline_state(const char *pipeline_name); /** Reset profiler state cheaply. May leave threads running or some * memory allocated but all accumluated statistics are reset. * WARNING: Do NOT call this method while any halide pipeline is * running; halide_profiler_memory_allocate/free and * halide_profiler_stack_peak_update update the profiler pipeline's * state without grabbing the global profiler state's lock. */ extern void halide_profiler_reset(); /** Reset all profiler state. * WARNING: Do NOT call this method while any halide pipeline is * running; halide_profiler_memory_allocate/free and * halide_profiler_stack_peak_update update the profiler pipeline's * state without grabbing the global profiler state's lock. */ void halide_profiler_shutdown(); /** Print out timing statistics for everything run since the last * reset. Also happens at process exit. */ extern void halide_profiler_report(void *user_context); /// \name "Float16" functions /// These functions operate of bits (``uint16_t``) representing a half /// precision floating point number (IEEE-754 2008 binary16). //{@ /** Read bits representing a half precision floating point number and return * the float that represents the same value */ extern float halide_float16_bits_to_float(uint16_t); /** Read bits representing a half precision floating point number and return * the double that represents the same value */ extern double halide_float16_bits_to_double(uint16_t); // TODO: Conversion functions to half //@} #ifdef __cplusplus } // End extern "C" #endif #ifdef __cplusplus namespace { template<typename T> struct check_is_pointer; template<typename T> struct check_is_pointer<T *> {}; } /** Construct the halide equivalent of a C type */ template<typename T> HALIDE_ALWAYS_INLINE halide_type_t halide_type_of() { // Create a compile-time error if T is not a pointer (without // using any includes - this code goes into the runtime). check_is_pointer<T> check; (void)check; return halide_type_t(halide_type_handle, 64); } template<> HALIDE_ALWAYS_INLINE halide_type_t halide_type_of<float>() { return halide_type_t(halide_type_float, 32); } template<> HALIDE_ALWAYS_INLINE halide_type_t halide_type_of<double>() { return halide_type_t(halide_type_float, 64); } template<> HALIDE_ALWAYS_INLINE halide_type_t halide_type_of<bool>() { return halide_type_t(halide_type_uint, 1); } template<> HALIDE_ALWAYS_INLINE halide_type_t halide_type_of<uint8_t>() { return halide_type_t(halide_type_uint, 8); } template<> HALIDE_ALWAYS_INLINE halide_type_t halide_type_of<uint16_t>() { return halide_type_t(halide_type_uint, 16); } template<> HALIDE_ALWAYS_INLINE halide_type_t halide_type_of<uint32_t>() { return halide_type_t(halide_type_uint, 32); } template<> HALIDE_ALWAYS_INLINE halide_type_t halide_type_of<uint64_t>() { return halide_type_t(halide_type_uint, 64); } template<> HALIDE_ALWAYS_INLINE halide_type_t halide_type_of<int8_t>() { return halide_type_t(halide_type_int, 8); } template<> HALIDE_ALWAYS_INLINE halide_type_t halide_type_of<int16_t>() { return halide_type_t(halide_type_int, 16); } template<> HALIDE_ALWAYS_INLINE halide_type_t halide_type_of<int32_t>() { return halide_type_t(halide_type_int, 32); } template<> HALIDE_ALWAYS_INLINE halide_type_t halide_type_of<int64_t>() { return halide_type_t(halide_type_int, 64); } #endif #endif // HALIDE_HALIDERUNTIME_H
[ "rodrigosoaresilva@gmail.com" ]
rodrigosoaresilva@gmail.com
6d6209a1001246c0a00d8c7a130b36307d0233d8
9efd18379fcbba31ffca434d5dfbeedcc110075f
/src/plotter/plotmodel.cpp
8fc6e301d4665ed3826aa0ed882f4eec1e98fd91
[]
no_license
myalfred03/rvizglabre
22961a18fb561125de61a7db2ee2a7d5df4bd02a
dcb1c0ebac0a65f0475c43a30bd45146678fc92a
refs/heads/master
2023-06-19T12:23:13.694543
2021-07-08T00:21:45
2021-07-08T00:21:45
106,970,457
1
2
null
2019-01-12T23:00:32
2017-10-14T23:35:03
C++
UTF-8
C++
false
false
5,350
cpp
// Plot tree model // Author: Max Schwarz <max.schwarz@uni-bonn.de> #include "plotmodel.h" #include <QStringList> #include <QMimeData> #include <ros/console.h> namespace plotter { PlotModel::PlotModel(QObject* parent) : QAbstractItemModel(parent) , m_topLevelPlot("topLevel") { connect(&m_topLevelPlot, SIGNAL(hierarchyChanged()), SLOT(doReset())); connect(&m_topLevelPlot, SIGNAL(changed(Plot*)), SLOT(doChange(Plot*))); m_topLevelPlot.setEnabled(true); m_valueFont = QFont("monospace"); } PlotModel::~PlotModel() { } QVariant PlotModel::headerData(int section, Qt::Orientation orientation, int role) const { if(role != Qt::DisplayRole || orientation != Qt::Horizontal) return QVariant(); switch(section) { case COL_NAME: return "Name"; case COL_VALUE: return "Current value"; case COL_ENABLED: return "X"; case COL_COLOR: return "Color"; } return QVariant(); } void PlotModel::doReset() { reset(); } void PlotModel::addPlot(Plot* plot) { plot->setParent(&m_topLevelPlot); } Plot* PlotModel::plotByPath(const QString& path) { return m_topLevelPlot.findPlotByPath(path); } int PlotModel::columnCount(const QModelIndex& parent) const { return COL_COUNT; } int PlotModel::rowCount(const QModelIndex& parent) const { if(parent.isValid() && parent.column() != 0) return 0; const Plot* plot = plotFromIndex(parent); return plot->childCount(); } QModelIndex PlotModel::index(int row, int column, const QModelIndex& parent) const { const Plot* parentPlot = plotFromIndex(parent); if(row < 0 || row >= parentPlot->childCount()) return QModelIndex(); const Plot* plot = parentPlot->child(row); return createIndex(row, column, (void*)plot); } Plot* PlotModel::plotFromIndex(const QModelIndex& index) { if(!index.isValid()) return &m_topLevelPlot; else return (Plot*)index.internalPointer(); } const Plot* PlotModel::plotFromIndex(const QModelIndex& index) const { if(!index.isValid()) return &m_topLevelPlot; else return (Plot*)index.internalPointer(); } QModelIndex PlotModel::parent(const QModelIndex& child) const { if(!child.isValid()) return QModelIndex(); const Plot* childPlot = plotFromIndex(child); const Plot* parentPlot = (const Plot*)childPlot->parent(); if(parentPlot == &m_topLevelPlot) return QModelIndex(); return createIndex(parentPlot->indexOfChild(childPlot), 0, (void*)parentPlot); } QVariant PlotModel::data(const QModelIndex& index, int role) const { const Plot* plot = plotFromIndex(index); if(role == Qt::TextAlignmentRole) { if(index.column() == COL_VALUE) return QVariant(Qt::AlignVCenter | Qt::AlignRight); else return QVariant(Qt::AlignVCenter | Qt::AlignLeft); } if(role == Qt::FontRole) { if(index.column() == COL_VALUE) return m_valueFont; else return QVariant(); } if(role != Qt::DisplayRole) return QVariant(); switch(index.column()) { case COL_NAME: return plot->name(); case COL_VALUE: { if(!plot->hasData()) return QVariant(); double val; if(m_currentTime.isValid()) { val = plot->value(m_currentTime); if(isnan(val)) return "---"; } else val = plot->lastValue(); QByteArray buf(100, Qt::Uninitialized); snprintf(buf.data(), buf.size(), "%.4lf", val); return QString(buf); } case COL_ENABLED: return plot->isEnabled(); case COL_COLOR: if(!plot->isEnabled() || !plot->hasData()) return QColor(Qt::transparent); return plot->color(); } return QVariant(); } bool PlotModel::setData(const QModelIndex& index, const QVariant& value, int role) { if(role != Qt::EditRole) return false; Plot* plot = plotFromIndex(index); switch(index.column()) { case COL_ENABLED: plot->setEnabled(value.toBool()); dataChanged(index, index); return true; case COL_COLOR: plot->setColor(value.value<QColor>()); return true; } return false; } Qt::ItemFlags PlotModel::flags(const QModelIndex& index) const { Qt::ItemFlags flags = Qt::ItemIsEnabled | Qt::ItemIsSelectable; switch(index.column()) { case COL_COLOR: flags |= Qt::ItemIsEditable; } return flags; } QStringList PlotModel::mimeTypes() const { QStringList types; types << "application/x-nimbro-plot"; return types; } QMimeData* PlotModel::mimeData(const QModelIndexList& indexes) const { if(indexes.count() == 0) return 0; QModelIndex index = indexes[0]; QMimeData* mimeData = new QMimeData; mimeData->setData("application/x-nimbro-plot", plotFromIndex(index)->path().toLatin1()); return mimeData; } void PlotModel::doChange(Plot* source) { if(source == &m_topLevelPlot) return; Plot* parent = (Plot*)source->parent(); int row = parent->indexOfChild(source); QModelIndex left = createIndex(row, 0, (void*)source); QModelIndex right = createIndex(row, COL_COUNT-1, parent->indexOfChild(source)); dataChanged(left, right); } Plot* PlotModel::rootPlot() { return &m_topLevelPlot; } void PlotModel::setCurrentTime(const ros::Time& time) { m_currentTime = time; columnChanged(COL_VALUE); } void PlotModel::columnChanged(PlotModel::Columns column, const QModelIndex& parent) { int rows = rowCount(parent); dataChanged(index(0, column), index(rows, column)); for(int i = 0; i < rows; ++i) { QModelIndex idx = index(i, 0, parent); if(!rowCount(idx)) continue; columnChanged(column, idx); } } }
[ "moralesalfredo133@gmail.com" ]
moralesalfredo133@gmail.com
bb583343442a82c2ae0d5f07dff45bca7501492e
c2774a0f06f5652155ee4ef6c475e69b779707d8
/src/qt/receiverequestdialog.cpp
f953d0733efd679681b5ea4e8959ebd62b04dbba
[ "MIT" ]
permissive
futurexcoin/FuturexcoCore
7228eb6f5ab4386e8feff77f6b55c0b0d03df1db
6f585cb7eabbdd28af5583d6d260f9b1d47c0ef0
refs/heads/master
2020-06-07T06:29:45.100171
2019-06-24T09:31:18
2019-06-24T09:31:18
192,949,031
0
0
null
null
null
null
UTF-8
C++
false
false
5,625
cpp
// Copyright (c) 2011-2013 The Bitcoin developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "receiverequestdialog.h" #include "ui_receiverequestdialog.h" #include "bitcoinunits.h" #include "guiconstants.h" #include "guiutil.h" #include "optionsmodel.h" #include "walletmodel.h" #include <QClipboard> #include <QDrag> #include <QMenu> #include <QMimeData> #include <QMouseEvent> #include <QPixmap> #if QT_VERSION < 0x050000 #include <QUrl> #endif #if defined(HAVE_CONFIG_H) #include "config/futurexco-config.h" /* for USE_QRCODE */ #endif #ifdef USE_QRCODE #include <qrencode.h> #endif QRImageWidget::QRImageWidget(QWidget* parent) : QLabel(parent), contextMenu(0) { contextMenu = new QMenu(); QAction* saveImageAction = new QAction(tr("&Save Image..."), this); connect(saveImageAction, SIGNAL(triggered()), this, SLOT(saveImage())); contextMenu->addAction(saveImageAction); QAction* copyImageAction = new QAction(tr("&Copy Image"), this); connect(copyImageAction, SIGNAL(triggered()), this, SLOT(copyImage())); contextMenu->addAction(copyImageAction); } QImage QRImageWidget::exportImage() { if (!pixmap()) return QImage(); return pixmap()->toImage().scaled(EXPORT_IMAGE_SIZE, EXPORT_IMAGE_SIZE); } void QRImageWidget::mousePressEvent(QMouseEvent* event) { if (event->button() == Qt::LeftButton && pixmap()) { event->accept(); QMimeData* mimeData = new QMimeData; mimeData->setImageData(exportImage()); QDrag* drag = new QDrag(this); drag->setMimeData(mimeData); drag->exec(); } else { QLabel::mousePressEvent(event); } } void QRImageWidget::saveImage() { if (!pixmap()) return; QString fn = GUIUtil::getSaveFileName(this, tr("Save QR Code"), QString(), tr("PNG Image (*.png)"), NULL); if (!fn.isEmpty()) { exportImage().save(fn); } } void QRImageWidget::copyImage() { if (!pixmap()) return; QApplication::clipboard()->setImage(exportImage()); } void QRImageWidget::contextMenuEvent(QContextMenuEvent* event) { if (!pixmap()) return; contextMenu->exec(event->globalPos()); } ReceiveRequestDialog::ReceiveRequestDialog(QWidget* parent) : QDialog(parent), ui(new Ui::ReceiveRequestDialog), model(0) { ui->setupUi(this); #ifndef USE_QRCODE ui->btnSaveAs->setVisible(false); ui->lblQRCode->setVisible(false); #endif connect(ui->btnSaveAs, SIGNAL(clicked()), ui->lblQRCode, SLOT(saveImage())); } ReceiveRequestDialog::~ReceiveRequestDialog() { delete ui; } void ReceiveRequestDialog::setModel(OptionsModel* model) { this->model = model; if (model) connect(model, SIGNAL(displayUnitChanged(int)), this, SLOT(update())); // update the display unit if necessary update(); } void ReceiveRequestDialog::setInfo(const SendCoinsRecipient& info) { this->info = info; update(); } void ReceiveRequestDialog::update() { if (!model) return; QString target = info.label; if (target.isEmpty()) target = info.address; setWindowTitle(tr("Request payment to %1").arg(target)); QString uri = GUIUtil::formatBitcoinURI(info); ui->btnSaveAs->setEnabled(false); QString html; html += "<html><font face='verdana, arial, helvetica, sans-serif'>"; html += "<b>" + tr("Payment information") + "</b><br>"; html += "<b>" + tr("URI") + "</b>: "; html += "<a style=\"color:#5B4C7C;\" href=\"" + uri + "\">" + GUIUtil::HtmlEscape(uri) + "</a><br>"; html += "<b>" + tr("Address") + "</b>: " + GUIUtil::HtmlEscape(info.address) + "<br>"; if (info.amount) html += "<b>" + tr("Amount") + "</b>: " + BitcoinUnits::formatWithUnit(model->getDisplayUnit(), info.amount) + "<br>"; if (!info.label.isEmpty()) html += "<b>" + tr("Label") + "</b>: " + GUIUtil::HtmlEscape(info.label) + "<br>"; if (!info.message.isEmpty()) html += "<b>" + tr("Message") + "</b>: " + GUIUtil::HtmlEscape(info.message) + "<br>"; ui->outUri->setText(html); #ifdef USE_QRCODE ui->lblQRCode->setText(""); if (!uri.isEmpty()) { // limit URI length if (uri.length() > MAX_URI_LENGTH) { ui->lblQRCode->setText(tr("Resulting URI too long, try to reduce the text for label / message.")); } else { QRcode* code = QRcode_encodeString(uri.toUtf8().constData(), 0, QR_ECLEVEL_L, QR_MODE_8, 1); if (!code) { ui->lblQRCode->setText(tr("Error encoding URI into QR Code.")); return; } QImage myImage = QImage(code->width + 8, code->width + 8, QImage::Format_RGB32); myImage.fill(0xffffff); unsigned char* p = code->data; for (int y = 0; y < code->width; y++) { for (int x = 0; x < code->width; x++) { myImage.setPixel(x + 4, y + 4, ((*p & 1) ? 0x0 : 0xffffff)); p++; } } QRcode_free(code); ui->lblQRCode->setPixmap(QPixmap::fromImage(myImage).scaled(300, 300)); ui->btnSaveAs->setEnabled(true); } } #endif } void ReceiveRequestDialog::on_btnCopyURI_clicked() { GUIUtil::setClipboard(GUIUtil::formatBitcoinURI(info)); } void ReceiveRequestDialog::on_btnCopyAddress_clicked() { GUIUtil::setClipboard(info.address); }
[ "futurexcoin@gmail.com" ]
futurexcoin@gmail.com
c00d53ac02888f14d460b298e4ec30c439e3880d
2e90850bd65b5ef3052eced9e1cc8ca78abb978e
/src/Edge.cpp
1beb806281007e9154277625cca769f311f45c73
[]
no_license
OneWingedEagle/SelfHealing
6a1bab6b7cdd2c90c67c7da46c6d07f67d4a47a5
281c6bbf5501adde691fbab5964867be9fc97a6f
refs/heads/master
2021-01-18T02:15:42.201104
2015-05-11T16:29:02
2015-05-11T16:29:02
35,393,236
0
0
null
null
null
null
UTF-8
C++
false
false
829
cpp
/* * Edge.cpp * * Created on: 2015/01/23 * Author: Hassan */ #include "Edge.h" Edge::Edge(int n1,int n2) { if(n1<n2){ endNodeNumber[0]=n1; endNodeNumber[1]=n2; } else{ endNodeNumber[0]=n2; endNodeNumber[1]=n1; } } /* void Edge::setKnownA(double Ax){ edgeKnown=true; A=Ax; } void Edge::setSolvedAL(double Ax){ A=Ax; } void Edge::saveAp(){ Ap=A; } void Edge::setLength(double l){ length=l; } void Edge::setDirection(char i){ direction=i; } double Edge::getDiffA(){ return A-Ap; } void Edge::setA(double Ax) { A=Ax; } double Edge::getA() { return A; } void Edge::setPBC(int nPBC){ sPBC=(nPBC==1); aPBC=(nPBC==-1); } bool Edge::hasPBC(){ return (sPBC || aPBC); } int Edge::getnPBC(){ if(aPBC) return -1; return 1; }*/
[ "ebrahimih@ssil.co.jp" ]
ebrahimih@ssil.co.jp
5a2720e6b8840aef36b049892477a27dde09c140
0145d34a74227b85fddeed2de86f26037dd9e1a7
/solutions/distinct-subsequences/solution.cpp
b182af26cb2ac0dcf672c0f07785c585d47043d0
[ "BSD-2-Clause", "BSD-2-Clause-Views" ]
permissive
locker/leetcode
f2b5d2607b388e39b459ced77dde33d881e087cc
ad3a0b2f6b01d9ae05bb93b10ba1c9f66d6a9abb
refs/heads/master
2022-08-29T12:49:13.422799
2022-08-28T13:26:09
2022-08-28T13:26:09
172,386,042
0
1
null
null
null
null
UTF-8
C++
false
false
1,841
cpp
#include <iostream> #include <string> #include <utility> #include <vector> using namespace std; class Solution { public: int numDistinct(const string& s, const string& t) { if (s.empty() || t.empty()) return 0; // // Let F(S, T) return the number of distinct subsequences // of S equal to T. Apparently // // F(S, T) = F(S[1:], T) if S[0] != T[0] // F(S, T) = F(S[1:], T) + F(S[1:], T[1:]) otherwise // // This leads us to a classic dynamic programming solution // when we fill a len(T) by len(S) matrix where cell at // row i column j stores the value of F(S[i:], T[j:]). // Since we fill the matrix row by row starting from the // last row and to fill a cell we only need to know values // of its neighbors, we don't really need to keep the whole // matrix in memory and can get along with just one row. // int s_len = s.length(); int t_len = t.length(); // Use 'unsigned' to suppress the integer overflow warning. // We don't really care about overflows. vector<unsigned> dp(t_len); for (int i = s_len - 1; i >= 0; --i) { // We can assume that F(S[i:], T[len(T):]) = 1. unsigned prev = 1; for (int j = t_len - 1; j >= 0; --j) { unsigned curr = dp[j]; if (s[i] == t[j]) dp[j] += prev; prev = curr; } } return dp[0]; } }; int main() { pair<string, string> input[] = { {"", ""}, // 0 {"a", ""}, // 0 {"", "a"}, // 0 {"a", "aa"}, // 0 {"a", "a"}, // 1 {"ab", "a"}, // 1 {"ba", "a"}, // 1 {"aba", "a"}, // 2 {"baba", "ba"}, // 3 {"rabbbit", "rabbit"}, // 3 {"badgbag", "bag"}, // 4 {"babgbag", "bag"}, // 5 }; Solution solution; for (const auto& p: input) { cout << "Input: S = \"" << p.first << "\", T = \"" << p.second << '"' << endl << "Output: " << solution.numDistinct(p.first, p.second) << endl; } return 0; }
[ "vdavydov.dev@gmail.com" ]
vdavydov.dev@gmail.com
bb23b24d550464ea1ccedd465bb08a937436c7e7
b6333f33148e3de3465e056fc65ed9da351f8f73
/bsdelf/binary-tree-paths.cc
c7d7d63528ef9a305f4cdfaf117be2c5bfc3d147
[ "MIT" ]
permissive
hanrick2000/algorithm-campus
968f45f0d65933a0e7e5a77d9a7fbec4c0f38dcb
8f60cd63542f4f5778a992179c3e767fbc023338
refs/heads/master
2020-12-19T05:21:56.777513
2019-08-02T15:04:57
2019-08-02T15:04:57
null
0
0
null
null
null
null
UTF-8
C++
false
false
1,064
cc
/** * @author Yanhui Shen * @version 1.0 * @since 2016-02-11 */ /** * Definition of TreeNode: * class TreeNode { * public: * int val; * TreeNode *left, *right; * TreeNode(int val) { * this->val = val; * this->left = this->right = NULL; * } * } */ class Solution { public: /** * @param root the root of the binary tree * @return all root-to-leaf paths */ vector<string> binaryTreePaths(TreeNode* root) { vector<string> paths; const std::function<void (TreeNode*, string)> walk = [&walk, &paths](TreeNode* node, string path) { if (not node) return; path += std::to_string(node->val); if (node->left || node->right) { path += "->"; } else { paths.emplace_back(std::move(path)); } walk(node->left, path); walk(node->right, path); }; walk(root, ""); return paths; } };
[ "shen.elf@gmail.com" ]
shen.elf@gmail.com
c625d5e7962866e3bcab8f793b7429da8b631d6a
c918b3650b1b275e6cadf2f2d628daf0b8921db2
/src/Audio/AudioChannel.cpp
0b95e2ec842a4aee1accefeca6a4961635b6f867
[ "MIT", "LicenseRef-scancode-public-domain" ]
permissive
jalfonsosm/EnggeFramework
804c047f76249dd93fe169585662c6582adf4b85
6526bff3c4e6e9ed2cad102f1e3a37d3ce19ef37
refs/heads/main
2023-04-19T20:03:23.273913
2021-05-07T18:36:14
2021-05-07T18:36:14
null
0
0
null
null
null
null
UTF-8
C++
false
false
2,696
cpp
#include <algorithm> #include <SDL_mixer.h> #include <ngf/Audio/AudioChannel.h> #include <ngf/Audio/SoundBuffer.h> #include "../System/SdlSystem.h" namespace ngf { void AudioChannel::play(int loopTimes, const TimeSpan &fadeInTime) { if (m_channel < 0 || !m_buffer) return; if (loopTimes < 0) { loopTimes = -1; } else if (loopTimes == 0) { loopTimes = 0; } else { loopTimes--; } switch (getStatus()) { case Status::Paused:SDL_CHECK(Mix_Resume(m_channel)); break; case Status::Stopped:m_numLoops = loopTimes; if (fadeInTime == TimeSpan::Zero) { SDL_CHECK(Mix_PlayChannel(m_channel, m_buffer->m_pChunk, loopTimes)); } else { SDL_CHECK(Mix_FadeInChannel(m_channel, m_buffer->m_pChunk, loopTimes, static_cast<int>(fadeInTime.getTotalMilliseconds()))); } break; case Status::Playing:return; } if (m_channel < 0) return; setVolume(m_volume); setPanning(m_panning); } void AudioChannel::pause() { if (m_channel < 0) return; SDL_CHECK(Mix_Pause(m_channel)); } void AudioChannel::stop(const TimeSpan &fadeOutTime) { if (m_channel < 0) return; if (fadeOutTime == TimeSpan::Zero) { SDL_CHECK(Mix_HaltChannel(m_channel)); } else { SDL_CHECK(Mix_FadeOutChannel(m_channel, static_cast<int>(fadeOutTime.getTotalMilliseconds()))); } } AudioChannel::Status AudioChannel::getStatus() const { if (m_channel < 0) return Status::Stopped; if (SDL_CHECK_EXPR(Mix_Paused(m_channel))) return Status::Paused; if (SDL_CHECK_EXPR(Mix_Playing(m_channel))) return Status::Playing; return Status::Stopped; } float AudioChannel::getVolume() const { return m_volume; } void AudioChannel::setVolume(float volume) { m_volume = volume; if (m_channel < 0) return; auto vol = static_cast<int>(volume * 128); vol = std::clamp(vol, 0, 128); SDL_CHECK(Mix_Volume(m_channel, vol)); } int AudioChannel::getNumLoops() const { return m_numLoops; } void AudioChannel::setPanning(float pan) { m_panning = std::clamp(pan, -1.f, 1.f); if (m_channel < 0) return; auto p = std::clamp(static_cast<float>(m_panning * 128.f), -127.f, 128.f); auto left = static_cast<Uint8>(128.f - p); SDL_CHECK(Mix_SetPanning(m_channel, left, 255 - left)); } [[nodiscard]] float AudioChannel::getPanning() const { return m_panning; } [[nodiscard]] int AudioChannel::getChannel() const { return m_channel; } void AudioChannel::init(AudioSystem &system, int channel) { m_system = &system; m_channel = channel; } void AudioChannel::setSoundBuffer(SoundBuffer *buffer) { m_buffer = buffer; } }
[ "scemino74@gmail.com" ]
scemino74@gmail.com
7c25a86b24c589688cbb73e43e6de22b68ca56d9
4040d743d3cc4af68773b659947a92a5acbb07de
/LIB/far3/include/far3/~3rdparty/plugin.hpp
c7a2e65eb87bc0d051ccdbf60d4d8ac4977f43fb
[]
no_license
msxxxp/main
67072e745a550b6bc58c2b3cb9f3d6d55a6bdf3a
904da0db6239b4d1baf7644037bf1326592e64c1
refs/heads/master
2020-12-24T19:18:02.182013
2014-12-02T17:15:07
2014-12-02T17:15:07
30,285,895
1
0
null
2015-02-04T06:55:42
2015-02-04T06:55:41
null
UTF-8
C++
false
false
68,082
hpp
#pragma once #ifndef __PLUGIN_HPP__ #define __PLUGIN_HPP__ /* plugin.hpp Plugin API for Far Manager 3.0 build 3380 */ /* Copyright � 1996 Eugene Roshal Copyright � 2000 Far Group All rights reserved. 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. The name of the authors may not be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE AUTHOR `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 AUTHOR 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. EXCEPTION: Far Manager plugins that use this header file can be distributed under any other possible license with no implications from the above license on them. */ #define FARMANAGERVERSION_MAJOR 3 #define FARMANAGERVERSION_MINOR 0 #define FARMANAGERVERSION_REVISION 0 #define FARMANAGERVERSION_BUILD 3380 #define FARMANAGERVERSION_STAGE VS_RELEASE #ifndef RC_INVOKED #include <stdint.h> #include <windows.h> #undef DefDlgProc #define FARMACRO_KEY_EVENT (KEY_EVENT|0x8000) #define CP_UNICODE ((uintptr_t)1200) #define CP_REVERSEBOM ((uintptr_t)1201) #define CP_DEFAULT ((uintptr_t)-1) #define CP_REDETECT ((uintptr_t)-2) typedef unsigned __int64 FARCOLORFLAGS; static const FARCOLORFLAGS FCF_FG_4BIT = 0x0000000000000001ULL, FCF_BG_4BIT = 0x0000000000000002ULL, FCF_4BITMASK = 0x0000000000000003ULL, // FCF_FG_4BIT|FCF_BG_4BIT FCF_EXTENDEDFLAGS = 0xFFFFFFFFFFFFFFFCULL, // ~FCF_4BITMASK FCF_FG_BOLD = 0x1000000000000000ULL, FCF_FG_ITALIC = 0x2000000000000000ULL, FCF_FG_UNDERLINE = 0x4000000000000000ULL, FCF_STYLEMASK = 0x7000000000000000ULL, // FCF_FG_BOLD|FCF_FG_ITALIC|FCF_FG_UNDERLINE FCF_NONE = 0; struct FarColor { FARCOLORFLAGS Flags; COLORREF ForegroundColor; COLORREF BackgroundColor; void* Reserved; }; #define INDEXMASK 0x0000000f #define COLORMASK 0x00ffffff #define ALPHAMASK 0xff000000 #define INDEXVALUE(x) ((x)&INDEXMASK) #define COLORVALUE(x) ((x)&COLORMASK) #define ALPHAVALUE(x) ((x)&ALPHAMASK) #define IS_OPAQUE(x) (ALPHAVALUE(x)==ALPHAMASK) #define IS_TRANSPARENT(x) (!ALPHAVALUE(x)) #define MAKE_OPAQUE(x) (x|=ALPHAMASK) #define MAKE_TRANSPARENT(x) (x&=COLORMASK) typedef unsigned __int64 COLORDIALOGFLAGS; static const COLORDIALOGFLAGS CDF_NONE = 0; typedef BOOL (WINAPI *FARAPICOLORDIALOG)( const GUID* PluginId, COLORDIALOGFLAGS Flags, struct FarColor *Color ); typedef unsigned __int64 FARMESSAGEFLAGS; static const FARMESSAGEFLAGS FMSG_WARNING = 0x0000000000000001ULL, FMSG_ERRORTYPE = 0x0000000000000002ULL, FMSG_KEEPBACKGROUND = 0x0000000000000004ULL, FMSG_LEFTALIGN = 0x0000000000000008ULL, FMSG_ALLINONE = 0x0000000000000010ULL, FMSG_MB_OK = 0x0000000000010000ULL, FMSG_MB_OKCANCEL = 0x0000000000020000ULL, FMSG_MB_ABORTRETRYIGNORE = 0x0000000000030000ULL, FMSG_MB_YESNO = 0x0000000000040000ULL, FMSG_MB_YESNOCANCEL = 0x0000000000050000ULL, FMSG_MB_RETRYCANCEL = 0x0000000000060000ULL, FMSG_NONE = 0; typedef intptr_t (WINAPI *FARAPIMESSAGE)( const GUID* PluginId, const GUID* Id, FARMESSAGEFLAGS Flags, const wchar_t *HelpTopic, const wchar_t* const *Items, size_t ItemsNumber, intptr_t ButtonsNumber ); enum FARDIALOGITEMTYPES { DI_TEXT = 0, DI_VTEXT = 1, DI_SINGLEBOX = 2, DI_DOUBLEBOX = 3, DI_EDIT = 4, DI_PSWEDIT = 5, DI_FIXEDIT = 6, DI_BUTTON = 7, DI_CHECKBOX = 8, DI_RADIOBUTTON = 9, DI_COMBOBOX = 10, DI_LISTBOX = 11, DI_USERCONTROL =255, }; /* Check diagol element type has inputstring? (DI_EDIT, DI_FIXEDIT, DI_PSWEDIT, etc) */ static __inline BOOL IsEdit(enum FARDIALOGITEMTYPES Type) { switch (Type) { case DI_EDIT: case DI_FIXEDIT: case DI_PSWEDIT: case DI_COMBOBOX: return TRUE; default: return FALSE; } } typedef unsigned __int64 FARDIALOGITEMFLAGS; static const FARDIALOGITEMFLAGS DIF_BOXCOLOR = 0x0000000000000200ULL, DIF_GROUP = 0x0000000000000400ULL, DIF_LEFTTEXT = 0x0000000000000800ULL, DIF_MOVESELECT = 0x0000000000001000ULL, DIF_SHOWAMPERSAND = 0x0000000000002000ULL, DIF_CENTERGROUP = 0x0000000000004000ULL, DIF_NOBRACKETS = 0x0000000000008000ULL, DIF_MANUALADDHISTORY = 0x0000000000008000ULL, DIF_SEPARATOR = 0x0000000000010000ULL, DIF_SEPARATOR2 = 0x0000000000020000ULL, DIF_EDITOR = 0x0000000000020000ULL, DIF_LISTNOAMPERSAND = 0x0000000000020000ULL, DIF_LISTNOBOX = 0x0000000000040000ULL, DIF_HISTORY = 0x0000000000040000ULL, DIF_BTNNOCLOSE = 0x0000000000040000ULL, DIF_CENTERTEXT = 0x0000000000040000ULL, DIF_SEPARATORUSER = 0x0000000000080000ULL, DIF_SETSHIELD = 0x0000000000080000ULL, DIF_EDITEXPAND = 0x0000000000080000ULL, DIF_DROPDOWNLIST = 0x0000000000100000ULL, DIF_USELASTHISTORY = 0x0000000000200000ULL, DIF_MASKEDIT = 0x0000000000400000ULL, DIF_LISTTRACKMOUSE = 0x0000000000400000ULL, DIF_LISTTRACKMOUSEINFOCUS = 0x0000000000800000ULL, DIF_SELECTONENTRY = 0x0000000000800000ULL, DIF_3STATE = 0x0000000000800000ULL, DIF_EDITPATH = 0x0000000001000000ULL, DIF_LISTWRAPMODE = 0x0000000001000000ULL, DIF_NOAUTOCOMPLETE = 0x0000000002000000ULL, DIF_LISTAUTOHIGHLIGHT = 0x0000000002000000ULL, DIF_LISTNOCLOSE = 0x0000000004000000ULL, DIF_EDITPATHEXEC = 0x0000000004000000ULL, DIF_HIDDEN = 0x0000000010000000ULL, DIF_READONLY = 0x0000000020000000ULL, DIF_NOFOCUS = 0x0000000040000000ULL, DIF_DISABLE = 0x0000000080000000ULL, DIF_DEFAULTBUTTON = 0x0000000100000000ULL, DIF_FOCUS = 0x0000000200000000ULL, DIF_RIGHTTEXT = 0x0000000400000000ULL, DIF_WORDWRAP = 0x0000000800000000ULL, DIF_NONE = 0; enum FARMESSAGE { DM_FIRST = 0, DM_CLOSE = 1, DM_ENABLE = 2, DM_ENABLEREDRAW = 3, DM_GETDLGDATA = 4, DM_GETDLGITEM = 5, DM_GETDLGRECT = 6, DM_GETTEXT = 7, DM_KEY = 9, DM_MOVEDIALOG = 10, DM_SETDLGDATA = 11, DM_SETDLGITEM = 12, DM_SETFOCUS = 13, DM_REDRAW = 14, DM_SETTEXT = 15, DM_SETMAXTEXTLENGTH = 16, DM_SHOWDIALOG = 17, DM_GETFOCUS = 18, DM_GETCURSORPOS = 19, DM_SETCURSORPOS = 20, DM_SETTEXTPTR = 22, DM_SHOWITEM = 23, DM_ADDHISTORY = 24, DM_GETCHECK = 25, DM_SETCHECK = 26, DM_SET3STATE = 27, DM_LISTSORT = 28, DM_LISTGETITEM = 29, DM_LISTGETCURPOS = 30, DM_LISTSETCURPOS = 31, DM_LISTDELETE = 32, DM_LISTADD = 33, DM_LISTADDSTR = 34, DM_LISTUPDATE = 35, DM_LISTINSERT = 36, DM_LISTFINDSTRING = 37, DM_LISTINFO = 38, DM_LISTGETDATA = 39, DM_LISTSETDATA = 40, DM_LISTSETTITLES = 41, DM_LISTGETTITLES = 42, DM_RESIZEDIALOG = 43, DM_SETITEMPOSITION = 44, DM_GETDROPDOWNOPENED = 45, DM_SETDROPDOWNOPENED = 46, DM_SETHISTORY = 47, DM_GETITEMPOSITION = 48, DM_SETMOUSEEVENTNOTIFY = 49, DM_EDITUNCHANGEDFLAG = 50, DM_GETITEMDATA = 51, DM_SETITEMDATA = 52, DM_LISTSET = 53, DM_GETCURSORSIZE = 54, DM_SETCURSORSIZE = 55, DM_LISTGETDATASIZE = 56, DM_GETSELECTION = 57, DM_SETSELECTION = 58, DM_GETEDITPOSITION = 59, DM_SETEDITPOSITION = 60, DM_SETCOMBOBOXEVENT = 61, DM_GETCOMBOBOXEVENT = 62, DM_GETCONSTTEXTPTR = 63, DM_GETDLGITEMSHORT = 64, DM_SETDLGITEMSHORT = 65, DM_GETDIALOGINFO = 66, DN_FIRST = 4096, DN_BTNCLICK = 4097, DN_CTLCOLORDIALOG = 4098, DN_CTLCOLORDLGITEM = 4099, DN_CTLCOLORDLGLIST = 4100, DN_DRAWDIALOG = 4101, DN_DRAWDLGITEM = 4102, DN_EDITCHANGE = 4103, DN_ENTERIDLE = 4104, DN_GOTFOCUS = 4105, DN_HELP = 4106, DN_HOTKEY = 4107, DN_INITDIALOG = 4108, DN_KILLFOCUS = 4109, DN_LISTCHANGE = 4110, DN_DRAGGED = 4111, DN_RESIZECONSOLE = 4112, DN_DRAWDIALOGDONE = 4113, DN_LISTHOTKEY = 4114, DN_INPUT = 4115, DN_CONTROLINPUT = 4116, DN_CLOSE = 4117, DN_GETVALUE = 4118, DM_USER = 0x4000, }; enum FARCHECKEDSTATE { BSTATE_UNCHECKED = 0, BSTATE_CHECKED = 1, BSTATE_3STATE = 2, BSTATE_TOGGLE = 3, }; enum FARCOMBOBOXEVENTTYPE { CBET_KEY = 0x00000001, CBET_MOUSE = 0x00000002, }; typedef unsigned __int64 LISTITEMFLAGS; static const LISTITEMFLAGS LIF_SELECTED = 0x0000000000010000ULL, LIF_CHECKED = 0x0000000000020000ULL, LIF_SEPARATOR = 0x0000000000040000ULL, LIF_DISABLE = 0x0000000000080000ULL, LIF_GRAYED = 0x0000000000100000ULL, LIF_HIDDEN = 0x0000000000200000ULL, LIF_DELETEUSERDATA = 0x0000000080000000ULL, LIF_NONE = 0; struct FarListItem { LISTITEMFLAGS Flags; const wchar_t *Text; intptr_t Reserved[2]; }; struct FarListUpdate { size_t StructSize; intptr_t Index; struct FarListItem Item; }; struct FarListInsert { size_t StructSize; intptr_t Index; struct FarListItem Item; }; struct FarListGetItem { size_t StructSize; intptr_t ItemIndex; struct FarListItem Item; }; struct FarListPos { size_t StructSize; intptr_t SelectPos; intptr_t TopPos; }; typedef unsigned __int64 FARLISTFINDFLAGS; static const FARLISTFINDFLAGS LIFIND_EXACTMATCH = 0x0000000000000001ULL, LIFIND_NONE = 0; struct FarListFind { size_t StructSize; intptr_t StartIndex; const wchar_t *Pattern; FARLISTFINDFLAGS Flags; }; struct FarListDelete { size_t StructSize; intptr_t StartIndex; intptr_t Count; }; typedef unsigned __int64 FARLISTINFOFLAGS; static const FARLISTINFOFLAGS LINFO_SHOWNOBOX = 0x0000000000000400ULL, LINFO_AUTOHIGHLIGHT = 0x0000000000000800ULL, LINFO_REVERSEHIGHLIGHT = 0x0000000000001000ULL, LINFO_WRAPMODE = 0x0000000000008000ULL, LINFO_SHOWAMPERSAND = 0x0000000000010000ULL, LINFO_NONE = 0; struct FarListInfo { size_t StructSize; FARLISTINFOFLAGS Flags; size_t ItemsNumber; intptr_t SelectPos; intptr_t TopPos; intptr_t MaxHeight; intptr_t MaxLength; }; struct FarListItemData { size_t StructSize; intptr_t Index; size_t DataSize; void *Data; }; struct FarList { size_t StructSize; size_t ItemsNumber; struct FarListItem *Items; }; struct FarListTitles { size_t StructSize; size_t TitleSize; const wchar_t *Title; size_t BottomSize; const wchar_t *Bottom; }; struct FarDialogItemColors { size_t StructSize; unsigned __int64 Flags; size_t ColorsCount; struct FarColor* Colors; }; struct FAR_CHAR_INFO { WCHAR Char; struct FarColor Attributes; }; struct FarDialogItem { enum FARDIALOGITEMTYPES Type; intptr_t X1,Y1,X2,Y2; union { intptr_t Selected; struct FarList *ListItems; struct FAR_CHAR_INFO *VBuf; intptr_t Reserved0; } #ifndef __cplusplus Param #endif ; const wchar_t *History; const wchar_t *Mask; FARDIALOGITEMFLAGS Flags; const wchar_t *Data; size_t MaxLength; // terminate 0 not included (if == 0 string size is unlimited) intptr_t UserData; intptr_t Reserved[2]; }; struct FarDialogItemData { size_t StructSize; size_t PtrLength; wchar_t *PtrData; }; struct FarDialogEvent { size_t StructSize; HANDLE hDlg; intptr_t Msg; intptr_t Param1; void* Param2; intptr_t Result; }; struct OpenDlgPluginData { size_t StructSize; HANDLE hDlg; }; struct DialogInfo { size_t StructSize; GUID Id; GUID Owner; }; struct FarGetDialogItem { size_t StructSize; size_t Size; struct FarDialogItem* Item; }; typedef unsigned __int64 FARDIALOGFLAGS; static const FARDIALOGFLAGS FDLG_WARNING = 0x0000000000000001ULL, FDLG_SMALLDIALOG = 0x0000000000000002ULL, FDLG_NODRAWSHADOW = 0x0000000000000004ULL, FDLG_NODRAWPANEL = 0x0000000000000008ULL, FDLG_KEEPCONSOLETITLE = 0x0000000000000010ULL, FDLG_NONE = 0; typedef intptr_t(WINAPI *FARWINDOWPROC)( HANDLE hDlg, intptr_t Msg, intptr_t Param1, void* Param2 ); typedef intptr_t(WINAPI *FARAPISENDDLGMESSAGE)( HANDLE hDlg, intptr_t Msg, intptr_t Param1, void* Param2 ); typedef intptr_t(WINAPI *FARAPIDEFDLGPROC)( HANDLE hDlg, intptr_t Msg, intptr_t Param1, void* Param2 ); typedef HANDLE(WINAPI *FARAPIDIALOGINIT)( const GUID* PluginId, const GUID* Id, intptr_t X1, intptr_t Y1, intptr_t X2, intptr_t Y2, const wchar_t *HelpTopic, const struct FarDialogItem *Item, size_t ItemsNumber, intptr_t Reserved, FARDIALOGFLAGS Flags, FARWINDOWPROC DlgProc, void* Param ); typedef intptr_t (WINAPI *FARAPIDIALOGRUN)( HANDLE hDlg ); typedef void (WINAPI *FARAPIDIALOGFREE)( HANDLE hDlg ); struct FarKey { WORD VirtualKeyCode; DWORD ControlKeyState; }; typedef unsigned __int64 MENUITEMFLAGS; static const MENUITEMFLAGS MIF_SELECTED = 0x000000000010000ULL, MIF_CHECKED = 0x000000000020000ULL, MIF_SEPARATOR = 0x000000000040000ULL, MIF_DISABLE = 0x000000000080000ULL, MIF_GRAYED = 0x000000000100000ULL, MIF_HIDDEN = 0x000000000200000ULL, MIF_NONE = 0; struct FarMenuItem { MENUITEMFLAGS Flags; const wchar_t *Text; struct FarKey AccelKey; intptr_t UserData; intptr_t Reserved[2]; }; typedef unsigned __int64 FARMENUFLAGS; static const FARMENUFLAGS FMENU_SHOWAMPERSAND = 0x0000000000000001ULL, FMENU_WRAPMODE = 0x0000000000000002ULL, FMENU_AUTOHIGHLIGHT = 0x0000000000000004ULL, FMENU_REVERSEAUTOHIGHLIGHT = 0x0000000000000008ULL, FMENU_CHANGECONSOLETITLE = 0x0000000000000010ULL, FMENU_NONE = 0; typedef intptr_t (WINAPI *FARAPIMENU)( const GUID* PluginId, const GUID* Id, intptr_t X, intptr_t Y, intptr_t MaxHeight, FARMENUFLAGS Flags, const wchar_t *Title, const wchar_t *Bottom, const wchar_t *HelpTopic, const struct FarKey *BreakKeys, intptr_t *BreakCode, const struct FarMenuItem *Item, size_t ItemsNumber ); typedef unsigned __int64 PLUGINPANELITEMFLAGS; static const PLUGINPANELITEMFLAGS PPIF_SELECTED = 0x0000000040000000ULL, PPIF_PROCESSDESCR = 0x0000000080000000ULL, PPIF_NONE = 0; struct FarPanelItemFreeInfo { size_t StructSize; HANDLE hPlugin; }; typedef void (WINAPI *FARPANELITEMFREECALLBACK)(void* UserData, const struct FarPanelItemFreeInfo* Info); struct UserDataItem { void* Data; FARPANELITEMFREECALLBACK FreeData; }; struct PluginPanelItem { FILETIME CreationTime; FILETIME LastAccessTime; FILETIME LastWriteTime; FILETIME ChangeTime; unsigned __int64 FileSize; unsigned __int64 AllocationSize; const wchar_t *FileName; const wchar_t *AlternateFileName; const wchar_t *Description; const wchar_t *Owner; const wchar_t* const *CustomColumnData; size_t CustomColumnNumber; PLUGINPANELITEMFLAGS Flags; struct UserDataItem UserData; uintptr_t FileAttributes; uintptr_t NumberOfLinks; uintptr_t CRC32; intptr_t Reserved[2]; }; struct FarGetPluginPanelItem { size_t StructSize; size_t Size; struct PluginPanelItem* Item; }; typedef unsigned __int64 PANELINFOFLAGS; static const PANELINFOFLAGS PFLAGS_SHOWHIDDEN = 0x0000000000000001ULL, PFLAGS_HIGHLIGHT = 0x0000000000000002ULL, PFLAGS_REVERSESORTORDER = 0x0000000000000004ULL, PFLAGS_USESORTGROUPS = 0x0000000000000008ULL, PFLAGS_SELECTEDFIRST = 0x0000000000000010ULL, PFLAGS_REALNAMES = 0x0000000000000020ULL, PFLAGS_NUMERICSORT = 0x0000000000000040ULL, PFLAGS_PANELLEFT = 0x0000000000000080ULL, PFLAGS_DIRECTORIESFIRST = 0x0000000000000100ULL, PFLAGS_USECRC32 = 0x0000000000000200ULL, PFLAGS_CASESENSITIVESORT = 0x0000000000000400ULL, PFLAGS_PLUGIN = 0x0000000000000800ULL, PFLAGS_VISIBLE = 0x0000000000001000ULL, PFLAGS_FOCUS = 0x0000000000002000ULL, PFLAGS_ALTERNATIVENAMES = 0x0000000000004000ULL, PFLAGS_SHORTCUT = 0x0000000000008000ULL, PFLAGS_NONE = 0; enum PANELINFOTYPE { PTYPE_FILEPANEL = 0, PTYPE_TREEPANEL = 1, PTYPE_QVIEWPANEL = 2, PTYPE_INFOPANEL = 3, }; enum OPENPANELINFO_SORTMODES { SM_DEFAULT = 0, SM_UNSORTED = 1, SM_NAME = 2, SM_EXT = 3, SM_MTIME = 4, SM_CTIME = 5, SM_ATIME = 6, SM_SIZE = 7, SM_DESCR = 8, SM_OWNER = 9, SM_COMPRESSEDSIZE = 10, SM_NUMLINKS = 11, SM_NUMSTREAMS = 12, SM_STREAMSSIZE = 13, SM_FULLNAME = 14, SM_CHTIME = 15, }; struct PanelInfo { size_t StructSize; HANDLE PluginHandle; GUID OwnerGuid; PANELINFOFLAGS Flags; size_t ItemsNumber; size_t SelectedItemsNumber; RECT PanelRect; size_t CurrentItem; size_t TopPanelItem; intptr_t ViewMode; enum PANELINFOTYPE PanelType; enum OPENPANELINFO_SORTMODES SortMode; }; struct PanelRedrawInfo { size_t StructSize; size_t CurrentItem; size_t TopPanelItem; }; struct CmdLineSelect { size_t StructSize; intptr_t SelStart; intptr_t SelEnd; }; struct FarPanelDirectory { size_t StructSize; const wchar_t* Name; const wchar_t* Param; GUID PluginId; const wchar_t* File; }; #define PANEL_NONE ((HANDLE)(-1)) #define PANEL_ACTIVE ((HANDLE)(-1)) #define PANEL_PASSIVE ((HANDLE)(-2)) #define PANEL_STOP ((HANDLE)(-1)) enum FILE_CONTROL_COMMANDS { FCTL_CLOSEPANEL = 0, FCTL_GETPANELINFO = 1, FCTL_UPDATEPANEL = 2, FCTL_REDRAWPANEL = 3, FCTL_GETCMDLINE = 4, FCTL_SETCMDLINE = 5, FCTL_SETSELECTION = 6, FCTL_SETVIEWMODE = 7, FCTL_INSERTCMDLINE = 8, FCTL_SETUSERSCREEN = 9, FCTL_SETPANELDIRECTORY = 10, FCTL_SETCMDLINEPOS = 11, FCTL_GETCMDLINEPOS = 12, FCTL_SETSORTMODE = 13, FCTL_SETSORTORDER = 14, FCTL_SETCMDLINESELECTION = 15, FCTL_GETCMDLINESELECTION = 16, FCTL_CHECKPANELSEXIST = 17, FCTL_SETNUMERICSORT = 18, FCTL_GETUSERSCREEN = 19, FCTL_ISACTIVEPANEL = 20, FCTL_GETPANELITEM = 21, FCTL_GETSELECTEDPANELITEM = 22, FCTL_GETCURRENTPANELITEM = 23, FCTL_GETPANELDIRECTORY = 24, FCTL_GETCOLUMNTYPES = 25, FCTL_GETCOLUMNWIDTHS = 26, FCTL_BEGINSELECTION = 27, FCTL_ENDSELECTION = 28, FCTL_CLEARSELECTION = 29, FCTL_SETDIRECTORIESFIRST = 30, FCTL_GETPANELFORMAT = 31, FCTL_GETPANELHOSTFILE = 32, FCTL_SETCASESENSITIVESORT = 33, FCTL_GETPANELPREFIX = 34, FCTL_SETACTIVEPANEL = 35, }; typedef void (WINAPI *FARAPITEXT)( intptr_t X, intptr_t Y, const struct FarColor* Color, const wchar_t *Str ); typedef HANDLE(WINAPI *FARAPISAVESCREEN)(intptr_t X1, intptr_t Y1, intptr_t X2, intptr_t Y2); typedef void (WINAPI *FARAPIRESTORESCREEN)(HANDLE hScreen); typedef intptr_t (WINAPI *FARAPIGETDIRLIST)( const wchar_t *Dir, struct PluginPanelItem **pPanelItem, size_t *pItemsNumber ); typedef intptr_t (WINAPI *FARAPIGETPLUGINDIRLIST)( const GUID* PluginId, HANDLE hPanel, const wchar_t *Dir, struct PluginPanelItem **pPanelItem, size_t *pItemsNumber ); typedef void (WINAPI *FARAPIFREEDIRLIST)(struct PluginPanelItem *PanelItem, size_t nItemsNumber); typedef void (WINAPI *FARAPIFREEPLUGINDIRLIST)(HANDLE hPanel, struct PluginPanelItem *PanelItem, size_t nItemsNumber); typedef unsigned __int64 VIEWER_FLAGS; static const VIEWER_FLAGS VF_NONMODAL = 0x0000000000000001ULL, VF_DELETEONCLOSE = 0x0000000000000002ULL, VF_ENABLE_F6 = 0x0000000000000004ULL, VF_DISABLEHISTORY = 0x0000000000000008ULL, VF_IMMEDIATERETURN = 0x0000000000000100ULL, VF_DELETEONLYFILEONCLOSE = 0x0000000000000200ULL, VF_NONE = 0; typedef intptr_t (WINAPI *FARAPIVIEWER)( const wchar_t *FileName, const wchar_t *Title, intptr_t X1, intptr_t Y1, intptr_t X2, intptr_t Y2, VIEWER_FLAGS Flags, uintptr_t CodePage ); typedef unsigned __int64 EDITOR_FLAGS; static const EDITOR_FLAGS EF_NONMODAL = 0x0000000000000001ULL, EF_CREATENEW = 0x0000000000000002ULL, EF_ENABLE_F6 = 0x0000000000000004ULL, EF_DISABLEHISTORY = 0x0000000000000008ULL, EF_DELETEONCLOSE = 0x0000000000000010ULL, EF_IMMEDIATERETURN = 0x0000000000000100ULL, EF_DELETEONLYFILEONCLOSE = 0x0000000000000200ULL, EF_LOCKED = 0x0000000000000400ULL, EF_DISABLESAVEPOS = 0x0000000000000800ULL, EN_NONE = 0; enum EDITOR_EXITCODE { EEC_OPEN_ERROR = 0, EEC_MODIFIED = 1, EEC_NOT_MODIFIED = 2, EEC_LOADING_INTERRUPTED = 3, }; typedef intptr_t (WINAPI *FARAPIEDITOR)( const wchar_t *FileName, const wchar_t *Title, intptr_t X1, intptr_t Y1, intptr_t X2, intptr_t Y2, EDITOR_FLAGS Flags, intptr_t StartLine, intptr_t StartChar, uintptr_t CodePage ); typedef const wchar_t*(WINAPI *FARAPIGETMSG)( const GUID* PluginId, intptr_t MsgId ); typedef unsigned __int64 FARHELPFLAGS; static const FARHELPFLAGS FHELP_NOSHOWERROR = 0x0000000080000000ULL, FHELP_SELFHELP = 0x0000000000000000ULL, FHELP_FARHELP = 0x0000000000000001ULL, FHELP_CUSTOMFILE = 0x0000000000000002ULL, FHELP_CUSTOMPATH = 0x0000000000000004ULL, FHELP_GUID = 0x0000000000000008ULL, FHELP_USECONTENTS = 0x0000000040000000ULL, FHELP_NONE = 0; typedef BOOL (WINAPI *FARAPISHOWHELP)( const wchar_t *ModuleName, const wchar_t *Topic, FARHELPFLAGS Flags ); enum ADVANCED_CONTROL_COMMANDS { ACTL_GETFARMANAGERVERSION = 0, ACTL_WAITKEY = 2, ACTL_GETCOLOR = 3, ACTL_GETARRAYCOLOR = 4, ACTL_GETWINDOWINFO = 6, ACTL_GETWINDOWCOUNT = 7, ACTL_SETCURRENTWINDOW = 8, ACTL_COMMIT = 9, ACTL_GETFARHWND = 10, ACTL_SETARRAYCOLOR = 16, ACTL_REDRAWALL = 19, ACTL_SYNCHRO = 20, ACTL_SETPROGRESSSTATE = 21, ACTL_SETPROGRESSVALUE = 22, ACTL_QUIT = 23, ACTL_GETFARRECT = 24, ACTL_GETCURSORPOS = 25, ACTL_SETCURSORPOS = 26, ACTL_PROGRESSNOTIFY = 27, ACTL_GETWINDOWTYPE = 28, }; enum FAR_MACRO_CONTROL_COMMANDS { MCTL_LOADALL = 0, MCTL_SAVEALL = 1, MCTL_SENDSTRING = 2, MCTL_GETSTATE = 5, MCTL_GETAREA = 6, MCTL_ADDMACRO = 7, MCTL_DELMACRO = 8, MCTL_GETLASTERROR = 9, }; typedef unsigned __int64 FARKEYMACROFLAGS; static const FARKEYMACROFLAGS KMFLAGS_DISABLEOUTPUT = 0x0000000000000001, KMFLAGS_NOSENDKEYSTOPLUGINS = 0x0000000000000002, KMFLAGS_SILENTCHECK = 0x0000000000000001, KMFLAGS_NONE = 0; enum FARMACROSENDSTRINGCOMMAND { MSSC_POST =0, MSSC_CHECK =2, }; enum FARMACROAREA { MACROAREA_OTHER = 0, MACROAREA_SHELL = 1, MACROAREA_VIEWER = 2, MACROAREA_EDITOR = 3, MACROAREA_DIALOG = 4, MACROAREA_SEARCH = 5, MACROAREA_DISKS = 6, MACROAREA_MAINMENU = 7, MACROAREA_MENU = 8, MACROAREA_HELP = 9, MACROAREA_INFOPANEL = 10, MACROAREA_QVIEWPANEL = 11, MACROAREA_TREEPANEL = 12, MACROAREA_FINDFOLDER = 13, MACROAREA_USERMENU = 14, MACROAREA_SHELLAUTOCOMPLETION = 15, MACROAREA_DIALOGAUTOCOMPLETION = 16, MACROAREA_COMMON = 255, }; enum FARMACROSTATE { MACROSTATE_NOMACRO = 0, MACROSTATE_EXECUTING = 1, MACROSTATE_EXECUTING_COMMON = 2, MACROSTATE_RECORDING = 3, MACROSTATE_RECORDING_COMMON = 4, }; enum FARMACROPARSEERRORCODE { MPEC_SUCCESS = 0, MPEC_ERROR = 1, }; struct MacroParseResult { size_t StructSize; DWORD ErrCode; COORD ErrPos; const wchar_t *ErrSrc; }; struct MacroSendMacroText { size_t StructSize; FARKEYMACROFLAGS Flags; INPUT_RECORD AKey; const wchar_t *SequenceText; }; typedef unsigned __int64 FARADDKEYMACROFLAGS; static const FARADDKEYMACROFLAGS AKMFLAGS_NONE = 0; typedef intptr_t (WINAPI *FARMACROCALLBACK)(void* Id,FARADDKEYMACROFLAGS Flags); struct MacroAddMacro { size_t StructSize; void* Id; const wchar_t *SequenceText; const wchar_t *Description; FARKEYMACROFLAGS Flags; INPUT_RECORD AKey; enum FARMACROAREA Area; FARMACROCALLBACK Callback; }; enum FARMACROVARTYPE { FMVT_UNKNOWN = 0, FMVT_INTEGER = 1, FMVT_STRING = 2, FMVT_DOUBLE = 3, FMVT_BOOLEAN = 4, FMVT_BINARY = 5, FMVT_POINTER = 6, }; struct FarMacroValue { enum FARMACROVARTYPE Type; union { __int64 Integer; __int64 Boolean; double Double; const wchar_t *String; void *Pointer; struct { void *Data; size_t Size; } Binary; } #ifndef __cplusplus Value #endif ; }; enum MACROPLUGINRETURNTYPE { MPRT_NORMALFINISH = 0, MPRT_ERRORFINISH = 1, MPRT_ERRORPARSE = 2, MPRT_KEYS = 3, MPRT_PRINT = 4, MPRT_PLUGINCALL = 5, MPRT_PLUGINMENU = 6, MPRT_PLUGINCONFIG = 7, MPRT_PLUGINCOMMAND = 8, MPRT_USERMENU = 9, MPRT_COMMONCASE = 100 }; struct MacroPluginReturn { size_t Count; struct FarMacroValue *Values; enum MACROPLUGINRETURNTYPE ReturnType; }; struct FarMacroCall { size_t StructSize; size_t Count; struct FarMacroValue *Values; void (WINAPI *Callback)(void *CallbackData, struct FarMacroValue *Values, size_t Count); void *CallbackData; }; struct FarGetValue { size_t StructSize; intptr_t Type; struct FarMacroValue Value; }; typedef unsigned __int64 FARSETCOLORFLAGS; static const FARSETCOLORFLAGS FSETCLR_REDRAW = 0x0000000000000001ULL, FSETCLR_NONE = 0; struct FarSetColors { size_t StructSize; FARSETCOLORFLAGS Flags; size_t StartIndex; size_t ColorsCount; struct FarColor* Colors; }; enum WINDOWINFO_TYPE { WTYPE_PANELS = 1, WTYPE_VIEWER = 2, WTYPE_EDITOR = 3, WTYPE_DIALOG = 4, WTYPE_VMENU = 5, WTYPE_HELP = 6, }; typedef unsigned __int64 WINDOWINFO_FLAGS; static const WINDOWINFO_FLAGS WIF_MODIFIED = 0x0000000000000001ULL, WIF_CURRENT = 0x0000000000000002ULL, WIF_MODAL = 0x0000000000000004ULL; struct WindowInfo { size_t StructSize; intptr_t Id; wchar_t *TypeName; wchar_t *Name; intptr_t TypeNameSize; intptr_t NameSize; intptr_t Pos; enum WINDOWINFO_TYPE Type; WINDOWINFO_FLAGS Flags; }; struct WindowType { size_t StructSize; enum WINDOWINFO_TYPE Type; }; enum TASKBARPROGRESSTATE { TBPS_NOPROGRESS =0x0, TBPS_INDETERMINATE=0x1, TBPS_NORMAL =0x2, TBPS_ERROR =0x4, TBPS_PAUSED =0x8, }; struct ProgressValue { size_t StructSize; unsigned __int64 Completed; unsigned __int64 Total; }; enum VIEWER_CONTROL_COMMANDS { VCTL_GETINFO = 0, VCTL_QUIT = 1, VCTL_REDRAW = 2, VCTL_SETKEYBAR = 3, VCTL_SETPOSITION = 4, VCTL_SELECT = 5, VCTL_SETMODE = 6, VCTL_GETFILENAME = 7, }; typedef unsigned __int64 VIEWER_OPTIONS; static const VIEWER_OPTIONS VOPT_SAVEFILEPOSITION = 0x0000000000000001ULL, VOPT_AUTODETECTCODEPAGE = 0x0000000000000002ULL, VOPT_NONE = 0; enum VIEWER_SETMODE_TYPES { VSMT_VIEWMODE = 0, VSMT_WRAP = 1, VSMT_WORDWRAP = 2, }; typedef unsigned __int64 VIEWER_SETMODEFLAGS_TYPES; static const VIEWER_SETMODEFLAGS_TYPES VSMFL_REDRAW = 0x0000000000000001ULL; struct ViewerSetMode { size_t StructSize; enum VIEWER_SETMODE_TYPES Type; union { intptr_t iParam; wchar_t *wszParam; } #ifndef __cplusplus Param #endif ; VIEWER_SETMODEFLAGS_TYPES Flags; }; struct ViewerSelect { size_t StructSize; __int64 BlockStartPos; __int64 BlockLen; }; typedef unsigned __int64 VIEWER_SETPOS_FLAGS; static const VIEWER_SETPOS_FLAGS VSP_NOREDRAW = 0x0000000000000001ULL, VSP_PERCENT = 0x0000000000000002ULL, VSP_RELATIVE = 0x0000000000000004ULL, VSP_NORETNEWPOS = 0x0000000000000008ULL; struct ViewerSetPosition { size_t StructSize; VIEWER_SETPOS_FLAGS Flags; __int64 StartPos; __int64 LeftPos; }; typedef unsigned __int64 VIEWER_MODE_FLAGS; static const VIEWER_MODE_FLAGS VMF_WRAP = 0x0000000000000001ULL, VMF_WORDWRAP = 0x0000000000000002ULL; enum VIEWER_MODE_TYPE { VMT_TEXT =0, VMT_HEX =1, VMT_DUMP =2, }; struct ViewerMode { uintptr_t CodePage; VIEWER_MODE_FLAGS Flags; enum VIEWER_MODE_TYPE ViewMode; }; struct ViewerInfo { size_t StructSize; intptr_t ViewerID; intptr_t TabSize; struct ViewerMode CurMode; __int64 FileSize; __int64 FilePos; __int64 LeftPos; VIEWER_OPTIONS Options; intptr_t WindowSizeX; intptr_t WindowSizeY; }; enum VIEWER_EVENTS { VE_READ =0, VE_CLOSE =1, VE_GOTFOCUS =6, VE_KILLFOCUS =7, }; enum EDITOR_EVENTS { EE_READ =0, EE_SAVE =1, EE_REDRAW =2, EE_CLOSE =3, EE_GOTFOCUS =6, EE_KILLFOCUS =7, EE_CHANGE =8, }; enum DIALOG_EVENTS { DE_DLGPROCINIT =0, DE_DEFDLGPROCINIT =1, DE_DLGPROCEND =2, }; enum SYNCHRO_EVENTS { SE_COMMONSYNCHRO =0, }; #define EEREDRAW_ALL (void*)0 #define CURRENT_EDITOR -1 enum EDITOR_CONTROL_COMMANDS { ECTL_GETSTRING = 0, ECTL_SETSTRING = 1, ECTL_INSERTSTRING = 2, ECTL_DELETESTRING = 3, ECTL_DELETECHAR = 4, ECTL_INSERTTEXT = 5, ECTL_GETINFO = 6, ECTL_SETPOSITION = 7, ECTL_SELECT = 8, ECTL_REDRAW = 9, ECTL_TABTOREAL = 10, ECTL_REALTOTAB = 11, ECTL_EXPANDTABS = 12, ECTL_SETTITLE = 13, ECTL_READINPUT = 14, ECTL_PROCESSINPUT = 15, ECTL_ADDCOLOR = 16, ECTL_GETCOLOR = 17, ECTL_SAVEFILE = 18, ECTL_QUIT = 19, ECTL_SETKEYBAR = 20, ECTL_SETPARAM = 22, ECTL_GETBOOKMARKS = 23, ECTL_DELETEBLOCK = 25, ECTL_ADDSESSIONBOOKMARK = 26, ECTL_PREVSESSIONBOOKMARK = 27, ECTL_NEXTSESSIONBOOKMARK = 28, ECTL_CLEARSESSIONBOOKMARKS = 29, ECTL_DELETESESSIONBOOKMARK = 30, ECTL_GETSESSIONBOOKMARKS = 31, ECTL_UNDOREDO = 32, ECTL_GETFILENAME = 33, ECTL_DELCOLOR = 34, ECTL_SUBSCRIBECHANGEEVENT = 36, ECTL_UNSUBSCRIBECHANGEEVENT = 37, }; enum EDITOR_SETPARAMETER_TYPES { ESPT_TABSIZE = 0, ESPT_EXPANDTABS = 1, ESPT_AUTOINDENT = 2, ESPT_CURSORBEYONDEOL = 3, ESPT_CHARCODEBASE = 4, ESPT_CODEPAGE = 5, ESPT_SAVEFILEPOSITION = 6, ESPT_LOCKMODE = 7, ESPT_SETWORDDIV = 8, ESPT_GETWORDDIV = 9, ESPT_SHOWWHITESPACE = 10, ESPT_SETBOM = 11, }; struct EditorSetParameter { size_t StructSize; enum EDITOR_SETPARAMETER_TYPES Type; union { intptr_t iParam; wchar_t *wszParam; intptr_t Reserved; } #ifndef __cplusplus Param #endif ; unsigned __int64 Flags; size_t Size; }; enum EDITOR_UNDOREDO_COMMANDS { EUR_BEGIN = 0, EUR_END = 1, EUR_UNDO = 2, EUR_REDO = 3, }; struct EditorUndoRedo { size_t StructSize; enum EDITOR_UNDOREDO_COMMANDS Command; }; struct EditorGetString { size_t StructSize; intptr_t StringNumber; intptr_t StringLength; const wchar_t *StringText; const wchar_t *StringEOL; intptr_t SelStart; intptr_t SelEnd; }; struct EditorSetString { size_t StructSize; intptr_t StringNumber; intptr_t StringLength; const wchar_t *StringText; const wchar_t *StringEOL; }; enum EXPAND_TABS { EXPAND_NOTABS = 0, EXPAND_ALLTABS = 1, EXPAND_NEWTABS = 2, }; enum EDITOR_OPTIONS { EOPT_EXPANDALLTABS = 0x00000001, EOPT_PERSISTENTBLOCKS = 0x00000002, EOPT_DELREMOVESBLOCKS = 0x00000004, EOPT_AUTOINDENT = 0x00000008, EOPT_SAVEFILEPOSITION = 0x00000010, EOPT_AUTODETECTCODEPAGE= 0x00000020, EOPT_CURSORBEYONDEOL = 0x00000040, EOPT_EXPANDONLYNEWTABS = 0x00000080, EOPT_SHOWWHITESPACE = 0x00000100, EOPT_BOM = 0x00000200, EOPT_SHOWLINEBREAK = 0x00000400, }; enum EDITOR_BLOCK_TYPES { BTYPE_NONE = 0, BTYPE_STREAM = 1, BTYPE_COLUMN = 2, }; enum EDITOR_CURRENTSTATE { ECSTATE_MODIFIED = 0x00000001, ECSTATE_SAVED = 0x00000002, ECSTATE_LOCKED = 0x00000004, }; struct EditorInfo { size_t StructSize; intptr_t EditorID; intptr_t WindowSizeX; intptr_t WindowSizeY; intptr_t TotalLines; intptr_t CurLine; intptr_t CurPos; intptr_t CurTabPos; intptr_t TopScreenLine; intptr_t LeftPos; intptr_t Overtype; intptr_t BlockType; intptr_t BlockStartLine; uintptr_t Options; intptr_t TabSize; size_t BookmarkCount; size_t SessionBookmarkCount; uintptr_t CurState; uintptr_t CodePage; }; struct EditorBookmarks { size_t StructSize; size_t Size; size_t Count; intptr_t *Line; intptr_t *Cursor; intptr_t *ScreenLine; intptr_t *LeftPos; }; struct EditorSetPosition { size_t StructSize; intptr_t CurLine; intptr_t CurPos; intptr_t CurTabPos; intptr_t TopScreenLine; intptr_t LeftPos; intptr_t Overtype; }; struct EditorSelect { size_t StructSize; intptr_t BlockType; intptr_t BlockStartLine; intptr_t BlockStartPos; intptr_t BlockWidth; intptr_t BlockHeight; }; struct EditorConvertPos { size_t StructSize; intptr_t StringNumber; intptr_t SrcPos; intptr_t DestPos; }; typedef unsigned __int64 EDITORCOLORFLAGS; static const EDITORCOLORFLAGS ECF_TABMARKFIRST = 0x0000000000000001ULL, ECF_TABMARKCURRENT = 0x0000000000000002ULL; struct EditorColor { size_t StructSize; intptr_t StringNumber; intptr_t ColorItem; intptr_t StartPos; intptr_t EndPos; uintptr_t Priority; EDITORCOLORFLAGS Flags; struct FarColor Color; GUID Owner; }; struct EditorDeleteColor { size_t StructSize; GUID Owner; intptr_t StringNumber; intptr_t StartPos; }; #define EDITOR_COLOR_NORMAL_PRIORITY 0x80000000U struct EditorSaveFile { size_t StructSize; const wchar_t *FileName; const wchar_t *FileEOL; uintptr_t CodePage; }; enum EDITOR_CHANGETYPE { ECTYPE_CHANGED = 0, ECTYPE_ADDED = 1, ECTYPE_DELETED = 2, }; struct EditorChange { size_t StructSize; enum EDITOR_CHANGETYPE Type; intptr_t StringNumber; }; struct EditorSubscribeChangeEvent { size_t StructSize; GUID PluginId; }; typedef unsigned __int64 INPUTBOXFLAGS; static const INPUTBOXFLAGS FIB_ENABLEEMPTY = 0x0000000000000001ULL, FIB_PASSWORD = 0x0000000000000002ULL, FIB_EXPANDENV = 0x0000000000000004ULL, FIB_NOUSELASTHISTORY = 0x0000000000000008ULL, FIB_BUTTONS = 0x0000000000000010ULL, FIB_NOAMPERSAND = 0x0000000000000020ULL, FIB_EDITPATH = 0x0000000000000040ULL, FIB_EDITPATHEXEC = 0x0000000000000080ULL, FIB_NONE = 0; typedef intptr_t (WINAPI *FARAPIINPUTBOX)( const GUID* PluginId, const GUID* Id, const wchar_t *Title, const wchar_t *SubTitle, const wchar_t *HistoryName, const wchar_t *SrcText, wchar_t *DestText, size_t DestSize, const wchar_t *HelpTopic, INPUTBOXFLAGS Flags ); enum FAR_PLUGINS_CONTROL_COMMANDS { PCTL_LOADPLUGIN = 0, PCTL_UNLOADPLUGIN = 1, PCTL_FORCEDLOADPLUGIN = 2, PCTL_FINDPLUGIN = 3, PCTL_GETPLUGININFORMATION = 4, PCTL_GETPLUGINS = 5, }; enum FAR_PLUGIN_LOAD_TYPE { PLT_PATH = 0, }; enum FAR_PLUGIN_FIND_TYPE { PFM_GUID = 0, PFM_MODULENAME = 1, }; typedef unsigned __int64 FAR_PLUGIN_FLAGS; static const FAR_PLUGIN_FLAGS FPF_LOADED = 0x0000000000000001ULL, FPF_ANSI = 0x1000000000000000ULL, FPF_NONE = 0; enum FAR_FILE_FILTER_CONTROL_COMMANDS { FFCTL_CREATEFILEFILTER = 0, FFCTL_FREEFILEFILTER = 1, FFCTL_OPENFILTERSMENU = 2, FFCTL_STARTINGTOFILTER = 3, FFCTL_ISFILEINFILTER = 4, }; enum FAR_FILE_FILTER_TYPE { FFT_PANEL = 0, FFT_FINDFILE = 1, FFT_COPY = 2, FFT_SELECT = 3, FFT_CUSTOM = 4, }; enum FAR_REGEXP_CONTROL_COMMANDS { RECTL_CREATE = 0, RECTL_FREE = 1, RECTL_COMPILE = 2, RECTL_OPTIMIZE = 3, RECTL_MATCHEX = 4, RECTL_SEARCHEX = 5, RECTL_BRACKETSCOUNT = 6, }; struct RegExpMatch { intptr_t start,end; }; struct RegExpSearch { const wchar_t* Text; intptr_t Position; intptr_t Length; struct RegExpMatch* Match; intptr_t Count; void* Reserved; }; enum FAR_SETTINGS_CONTROL_COMMANDS { SCTL_CREATE = 0, SCTL_FREE = 1, SCTL_SET = 2, SCTL_GET = 3, SCTL_ENUM = 4, SCTL_DELETE = 5, SCTL_CREATESUBKEY = 6, SCTL_OPENSUBKEY = 7, }; enum FARSETTINGSTYPES { FST_UNKNOWN = 0, FST_SUBKEY = 1, FST_QWORD = 2, FST_STRING = 3, FST_DATA = 4, }; enum FARSETTINGS_SUBFOLDERS { FSSF_ROOT = 0, FSSF_HISTORY_CMD = 1, FSSF_HISTORY_FOLDER = 2, FSSF_HISTORY_VIEW = 3, FSSF_HISTORY_EDIT = 4, FSSF_HISTORY_EXTERNAL = 5, FSSF_FOLDERSHORTCUT_0 = 6, FSSF_FOLDERSHORTCUT_1 = 7, FSSF_FOLDERSHORTCUT_2 = 8, FSSF_FOLDERSHORTCUT_3 = 9, FSSF_FOLDERSHORTCUT_4 = 10, FSSF_FOLDERSHORTCUT_5 = 11, FSSF_FOLDERSHORTCUT_6 = 12, FSSF_FOLDERSHORTCUT_7 = 13, FSSF_FOLDERSHORTCUT_8 = 14, FSSF_FOLDERSHORTCUT_9 = 15, FSSF_CONFIRMATIONS = 16, FSSF_SYSTEM = 17, FSSF_PANEL = 18, FSSF_EDITOR = 19, FSSF_SCREEN = 20, FSSF_DIALOG = 21, FSSF_INTERFACE = 22, FSSF_PANELLAYOUT = 23, }; enum FAR_PLUGIN_SETTINGS_LOCATION { PSL_ROAMING = 0, PSL_LOCAL = 1, }; struct FarSettingsCreate { size_t StructSize; GUID Guid; HANDLE Handle; }; struct FarSettingsItem { size_t StructSize; size_t Root; const wchar_t* Name; enum FARSETTINGSTYPES Type; union { unsigned __int64 Number; const wchar_t* String; struct { size_t Size; const void* Data; } Data; } #ifndef __cplusplus Value #endif ; }; struct FarSettingsName { const wchar_t* Name; enum FARSETTINGSTYPES Type; }; struct FarSettingsHistory { const wchar_t* Name; const wchar_t* Param; GUID PluginId; const wchar_t* File; FILETIME Time; BOOL Lock; }; struct FarSettingsEnum { size_t StructSize; size_t Root; size_t Count; union { const struct FarSettingsName* Items; const struct FarSettingsHistory* Histories; } #ifndef __cplusplus Value #endif ; }; struct FarSettingsValue { size_t StructSize; size_t Root; const wchar_t* Value; }; typedef intptr_t (WINAPI *FARAPIPANELCONTROL)( HANDLE hPanel, enum FILE_CONTROL_COMMANDS Command, intptr_t Param1, void* Param2 ); typedef intptr_t(WINAPI *FARAPIADVCONTROL)( const GUID* PluginId, enum ADVANCED_CONTROL_COMMANDS Command, intptr_t Param1, void* Param2 ); typedef intptr_t (WINAPI *FARAPIVIEWERCONTROL)( intptr_t ViewerID, enum VIEWER_CONTROL_COMMANDS Command, intptr_t Param1, void* Param2 ); typedef intptr_t (WINAPI *FARAPIEDITORCONTROL)( intptr_t EditorID, enum EDITOR_CONTROL_COMMANDS Command, intptr_t Param1, void* Param2 ); typedef intptr_t (WINAPI *FARAPIMACROCONTROL)( const GUID* PluginId, enum FAR_MACRO_CONTROL_COMMANDS Command, intptr_t Param1, void* Param2 ); typedef intptr_t (WINAPI *FARAPIPLUGINSCONTROL)( HANDLE hHandle, enum FAR_PLUGINS_CONTROL_COMMANDS Command, intptr_t Param1, void* Param2 ); typedef intptr_t (WINAPI *FARAPIFILEFILTERCONTROL)( HANDLE hHandle, enum FAR_FILE_FILTER_CONTROL_COMMANDS Command, intptr_t Param1, void* Param2 ); typedef intptr_t (WINAPI *FARAPIREGEXPCONTROL)( HANDLE hHandle, enum FAR_REGEXP_CONTROL_COMMANDS Command, intptr_t Param1, void* Param2 ); typedef intptr_t (WINAPI *FARAPISETTINGSCONTROL)( HANDLE hHandle, enum FAR_SETTINGS_CONTROL_COMMANDS Command, intptr_t Param1, void* Param2 ); enum FARCLIPBOARD_TYPE { FCT_ANY=0, FCT_STREAM=1, FCT_COLUMN=2 }; // <C&C++> typedef int (WINAPIV *FARSTDSPRINTF)(wchar_t *Buffer,const wchar_t *Format,...); typedef int (WINAPIV *FARSTDSNPRINTF)(wchar_t *Buffer,size_t Sizebuf,const wchar_t *Format,...); typedef int (WINAPIV *FARSTDSSCANF)(const wchar_t *Buffer, const wchar_t *Format,...); // </C&C++> typedef void (WINAPI *FARSTDQSORT)(void *base, size_t nelem, size_t width, int (WINAPI *fcmp)(const void *, const void *,void *userparam),void *userparam); typedef void *(WINAPI *FARSTDBSEARCH)(const void *key, const void *base, size_t nelem, size_t width, int (WINAPI *fcmp)(const void *, const void *,void *userparam),void *userparam); typedef size_t (WINAPI *FARSTDGETFILEOWNER)(const wchar_t *Computer,const wchar_t *Name,wchar_t *Owner,size_t Size); typedef size_t (WINAPI *FARSTDGETNUMBEROFLINKS)(const wchar_t *Name); typedef int (WINAPI *FARSTDATOI)(const wchar_t *s); typedef __int64 (WINAPI *FARSTDATOI64)(const wchar_t *s); typedef wchar_t *(WINAPI *FARSTDITOA64)(__int64 value, wchar_t *string, int radix); typedef wchar_t *(WINAPI *FARSTDITOA)(int value, wchar_t *string, int radix); typedef wchar_t *(WINAPI *FARSTDLTRIM)(wchar_t *Str); typedef wchar_t *(WINAPI *FARSTDRTRIM)(wchar_t *Str); typedef wchar_t *(WINAPI *FARSTDTRIM)(wchar_t *Str); typedef wchar_t *(WINAPI *FARSTDTRUNCSTR)(wchar_t *Str,intptr_t MaxLength); typedef wchar_t *(WINAPI *FARSTDTRUNCPATHSTR)(wchar_t *Str,intptr_t MaxLength); typedef wchar_t *(WINAPI *FARSTDQUOTESPACEONLY)(wchar_t *Str); typedef const wchar_t*(WINAPI *FARSTDPOINTTONAME)(const wchar_t *Path); typedef BOOL (WINAPI *FARSTDADDENDSLASH)(wchar_t *Path); typedef BOOL (WINAPI *FARSTDCOPYTOCLIPBOARD)(enum FARCLIPBOARD_TYPE Type, const wchar_t *Data); typedef size_t (WINAPI *FARSTDPASTEFROMCLIPBOARD)(enum FARCLIPBOARD_TYPE Type, wchar_t *Data, size_t Size); typedef int (WINAPI *FARSTDLOCALISLOWER)(wchar_t Ch); typedef int (WINAPI *FARSTDLOCALISUPPER)(wchar_t Ch); typedef int (WINAPI *FARSTDLOCALISALPHA)(wchar_t Ch); typedef int (WINAPI *FARSTDLOCALISALPHANUM)(wchar_t Ch); typedef wchar_t (WINAPI *FARSTDLOCALUPPER)(wchar_t LowerChar); typedef wchar_t (WINAPI *FARSTDLOCALLOWER)(wchar_t UpperChar); typedef void (WINAPI *FARSTDLOCALUPPERBUF)(wchar_t *Buf,intptr_t Length); typedef void (WINAPI *FARSTDLOCALLOWERBUF)(wchar_t *Buf,intptr_t Length); typedef void (WINAPI *FARSTDLOCALSTRUPR)(wchar_t *s1); typedef void (WINAPI *FARSTDLOCALSTRLWR)(wchar_t *s1); typedef int (WINAPI *FARSTDLOCALSTRICMP)(const wchar_t *s1,const wchar_t *s2); typedef int (WINAPI *FARSTDLOCALSTRNICMP)(const wchar_t *s1,const wchar_t *s2,intptr_t n); typedef unsigned __int64 PROCESSNAME_FLAGS; static const PROCESSNAME_FLAGS // 0xFFFF - length // 0xFF0000 - mode // 0xFFFFFFFFFF000000 - flags PN_CMPNAME = 0x0000000000000000ULL, PN_CMPNAMELIST = 0x0000000000010000ULL, PN_GENERATENAME = 0x0000000000020000ULL, PN_CHECKMASK = 0x0000000000030000ULL, PN_SKIPPATH = 0x0000000001000000ULL, PN_SHOWERRORMESSAGE = 0x0000000002000000ULL; typedef size_t (WINAPI *FARSTDPROCESSNAME)(const wchar_t *param1, wchar_t *param2, size_t size, PROCESSNAME_FLAGS flags); typedef void (WINAPI *FARSTDUNQUOTE)(wchar_t *Str); typedef unsigned __int64 XLAT_FLAGS; static const XLAT_FLAGS XLAT_SWITCHKEYBLAYOUT = 0x0000000000000001ULL, XLAT_SWITCHKEYBBEEP = 0x0000000000000002ULL, XLAT_USEKEYBLAYOUTNAME = 0x0000000000000004ULL, XLAT_CONVERTALLCMDLINE = 0x0000000000010000ULL, XLAT_NONE = 0; typedef size_t (WINAPI *FARSTDINPUTRECORDTOKEYNAME)(const INPUT_RECORD* Key, wchar_t *KeyText, size_t Size); typedef wchar_t*(WINAPI *FARSTDXLAT)(wchar_t *Line,intptr_t StartPos,intptr_t EndPos,XLAT_FLAGS Flags); typedef BOOL (WINAPI *FARSTDKEYNAMETOINPUTRECORD)(const wchar_t *Name,INPUT_RECORD* Key); typedef int (WINAPI *FRSUSERFUNC)( const struct PluginPanelItem *FData, const wchar_t *FullName, void *Param ); typedef unsigned __int64 FRSMODE; static const FRSMODE FRS_RETUPDIR = 0x0000000000000001ULL, FRS_RECUR = 0x0000000000000002ULL, FRS_SCANSYMLINK = 0x0000000000000004ULL; typedef void (WINAPI *FARSTDRECURSIVESEARCH)(const wchar_t *InitDir,const wchar_t *Mask,FRSUSERFUNC Func,FRSMODE Flags,void *Param); typedef size_t (WINAPI *FARSTDMKTEMP)(wchar_t *Dest, size_t DestSize, const wchar_t *Prefix); typedef size_t (WINAPI *FARSTDGETPATHROOT)(const wchar_t *Path,wchar_t *Root, size_t DestSize); enum LINK_TYPE { LINK_HARDLINK = 1, LINK_JUNCTION = 2, LINK_VOLMOUNT = 3, LINK_SYMLINKFILE = 4, LINK_SYMLINKDIR = 5, LINK_SYMLINK = 6, }; typedef unsigned __int64 MKLINK_FLAGS; static const MKLINK_FLAGS MLF_SHOWERRMSG = 0x0000000000010000ULL, MLF_DONOTUPDATEPANEL = 0x0000000000020000ULL, MLF_NONE = 0; typedef BOOL (WINAPI *FARSTDMKLINK)(const wchar_t *Src,const wchar_t *Dest,enum LINK_TYPE Type, MKLINK_FLAGS Flags); typedef size_t (WINAPI *FARGETREPARSEPOINTINFO)(const wchar_t *Src, wchar_t *Dest, size_t DestSize); enum CONVERTPATHMODES { CPM_FULL = 0, CPM_REAL = 1, CPM_NATIVE = 2, }; typedef size_t (WINAPI *FARCONVERTPATH)(enum CONVERTPATHMODES Mode, const wchar_t *Src, wchar_t *Dest, size_t DestSize); typedef size_t (WINAPI *FARGETCURRENTDIRECTORY)(size_t Size, wchar_t* Buffer); typedef unsigned __int64 FARFORMATFILESIZEFLAGS; static const FARFORMATFILESIZEFLAGS FFFS_COMMAS = 0x0100000000000000LL, FFFS_FLOATSIZE = 0x0200000000000000LL, FFFS_SHOWBYTESINDEX = 0x0400000000000000LL, FFFS_ECONOMIC = 0x0800000000000000LL, FFFS_THOUSAND = 0x1000000000000000LL, FFFS_MINSIZEINDEX = 0x2000000000000000LL, FFFS_MINSIZEINDEX_MASK = 0x0000000000000003LL; typedef size_t (WINAPI *FARFORMATFILESIZE)(unsigned __int64 Size, intptr_t Width, FARFORMATFILESIZEFLAGS Flags, wchar_t *Dest, size_t DestSize); typedef struct FarStandardFunctions { size_t StructSize; FARSTDATOI atoi; FARSTDATOI64 atoi64; FARSTDITOA itoa; FARSTDITOA64 itoa64; // <C&C++> FARSTDSPRINTF sprintf; FARSTDSSCANF sscanf; // </C&C++> FARSTDQSORT qsort; FARSTDBSEARCH bsearch; // <C&C++> FARSTDSNPRINTF snprintf; // </C&C++> FARSTDLOCALISLOWER LIsLower; FARSTDLOCALISUPPER LIsUpper; FARSTDLOCALISALPHA LIsAlpha; FARSTDLOCALISALPHANUM LIsAlphanum; FARSTDLOCALUPPER LUpper; FARSTDLOCALLOWER LLower; FARSTDLOCALUPPERBUF LUpperBuf; FARSTDLOCALLOWERBUF LLowerBuf; FARSTDLOCALSTRUPR LStrupr; FARSTDLOCALSTRLWR LStrlwr; FARSTDLOCALSTRICMP LStricmp; FARSTDLOCALSTRNICMP LStrnicmp; FARSTDUNQUOTE Unquote; FARSTDLTRIM LTrim; FARSTDRTRIM RTrim; FARSTDTRIM Trim; FARSTDTRUNCSTR TruncStr; FARSTDTRUNCPATHSTR TruncPathStr; FARSTDQUOTESPACEONLY QuoteSpaceOnly; FARSTDPOINTTONAME PointToName; FARSTDGETPATHROOT GetPathRoot; FARSTDADDENDSLASH AddEndSlash; FARSTDCOPYTOCLIPBOARD CopyToClipboard; FARSTDPASTEFROMCLIPBOARD PasteFromClipboard; FARSTDINPUTRECORDTOKEYNAME FarInputRecordToName; FARSTDKEYNAMETOINPUTRECORD FarNameToInputRecord; FARSTDXLAT XLat; FARSTDGETFILEOWNER GetFileOwner; FARSTDGETNUMBEROFLINKS GetNumberOfLinks; FARSTDRECURSIVESEARCH FarRecursiveSearch; FARSTDMKTEMP MkTemp; FARSTDPROCESSNAME ProcessName; FARSTDMKLINK MkLink; FARCONVERTPATH ConvertPath; FARGETREPARSEPOINTINFO GetReparsePointInfo; FARGETCURRENTDIRECTORY GetCurrentDirectory; FARFORMATFILESIZE FormatFileSize; } FARSTANDARDFUNCTIONS; struct PluginStartupInfo { size_t StructSize; const wchar_t *ModuleName; FARAPIMENU Menu; FARAPIMESSAGE Message; FARAPIGETMSG GetMsg; FARAPIPANELCONTROL PanelControl; FARAPISAVESCREEN SaveScreen; FARAPIRESTORESCREEN RestoreScreen; FARAPIGETDIRLIST GetDirList; FARAPIGETPLUGINDIRLIST GetPluginDirList; FARAPIFREEDIRLIST FreeDirList; FARAPIFREEPLUGINDIRLIST FreePluginDirList; FARAPIVIEWER Viewer; FARAPIEDITOR Editor; FARAPITEXT Text; FARAPIEDITORCONTROL EditorControl; FARSTANDARDFUNCTIONS *FSF; FARAPISHOWHELP ShowHelp; FARAPIADVCONTROL AdvControl; FARAPIINPUTBOX InputBox; FARAPICOLORDIALOG ColorDialog; FARAPIDIALOGINIT DialogInit; FARAPIDIALOGRUN DialogRun; FARAPIDIALOGFREE DialogFree; FARAPISENDDLGMESSAGE SendDlgMessage; FARAPIDEFDLGPROC DefDlgProc; FARAPIVIEWERCONTROL ViewerControl; FARAPIPLUGINSCONTROL PluginsControl; FARAPIFILEFILTERCONTROL FileFilterControl; FARAPIREGEXPCONTROL RegExpControl; FARAPIMACROCONTROL MacroControl; FARAPISETTINGSCONTROL SettingsControl; void *Private; }; typedef HANDLE (WINAPI *FARAPICREATEFILE)(const wchar_t *Object,DWORD DesiredAccess,DWORD ShareMode,LPSECURITY_ATTRIBUTES SecurityAttributes,DWORD CreationDistribution,DWORD FlagsAndAttributes,HANDLE TemplateFile); typedef DWORD (WINAPI *FARAPIGETFILEATTRIBUTES)(const wchar_t *FileName); typedef BOOL (WINAPI *FARAPISETFILEATTRIBUTES)(const wchar_t *FileName,DWORD dwFileAttributes); typedef BOOL (WINAPI *FARAPIMOVEFILEEX)(const wchar_t *ExistingFileName,const wchar_t *NewFileName,DWORD dwFlags); typedef BOOL (WINAPI *FARAPIDELETEFILE)(const wchar_t *FileName); typedef BOOL (WINAPI *FARAPIREMOVEDIRECTORY)(const wchar_t *DirName); typedef BOOL (WINAPI *FARAPICREATEDIRECTORY)(const wchar_t *PathName,LPSECURITY_ATTRIBUTES lpSecurityAttributes); struct ArclitePrivateInfo { size_t StructSize; FARAPICREATEFILE CreateFile; FARAPIGETFILEATTRIBUTES GetFileAttributes; FARAPISETFILEATTRIBUTES SetFileAttributes; FARAPIMOVEFILEEX MoveFileEx; FARAPIDELETEFILE DeleteFile; FARAPIREMOVEDIRECTORY RemoveDirectory; FARAPICREATEDIRECTORY CreateDirectory; }; struct NetBoxPrivateInfo { size_t StructSize; FARAPICREATEFILE CreateFile; FARAPIGETFILEATTRIBUTES GetFileAttributes; FARAPISETFILEATTRIBUTES SetFileAttributes; FARAPIMOVEFILEEX MoveFileEx; FARAPIDELETEFILE DeleteFile; FARAPIREMOVEDIRECTORY RemoveDirectory; FARAPICREATEDIRECTORY CreateDirectory; }; typedef intptr_t (WINAPI *FARAPICALLFAR)(intptr_t CheckCode, struct FarMacroCall* Data); struct MacroPrivateInfo { size_t StructSize; FARAPICALLFAR CallFar; }; typedef unsigned __int64 PLUGIN_FLAGS; static const PLUGIN_FLAGS PF_PRELOAD = 0x0000000000000001ULL, PF_DISABLEPANELS = 0x0000000000000002ULL, PF_EDITOR = 0x0000000000000004ULL, PF_VIEWER = 0x0000000000000008ULL, PF_FULLCMDLINE = 0x0000000000000010ULL, PF_DIALOG = 0x0000000000000020ULL, PF_NONE = 0; struct PluginMenuItem { const GUID *Guids; const wchar_t* const *Strings; size_t Count; }; enum VERSION_STAGE { VS_RELEASE = 0, VS_ALPHA = 1, VS_BETA = 2, VS_RC = 3, }; struct VersionInfo { DWORD Major; DWORD Minor; DWORD Revision; DWORD Build; enum VERSION_STAGE Stage; }; static __inline BOOL CheckVersion(const struct VersionInfo* Current, const struct VersionInfo* Required) { return (Current->Major > Required->Major) || (Current->Major == Required->Major && Current->Minor > Required->Minor) || (Current->Major == Required->Major && Current->Minor == Required->Minor && Current->Revision > Required->Revision) || (Current->Major == Required->Major && Current->Minor == Required->Minor && Current->Revision == Required->Revision && Current->Build >= Required->Build); } static __inline struct VersionInfo MAKEFARVERSION(DWORD Major, DWORD Minor, DWORD Revision, DWORD Build, enum VERSION_STAGE Stage) { struct VersionInfo Info = {Major, Minor, Revision, Build, Stage}; return Info; } #define FARMANAGERVERSION MAKEFARVERSION(FARMANAGERVERSION_MAJOR,FARMANAGERVERSION_MINOR, FARMANAGERVERSION_REVISION, FARMANAGERVERSION_BUILD, FARMANAGERVERSION_STAGE) struct GlobalInfo { size_t StructSize; struct VersionInfo MinFarVersion; struct VersionInfo Version; GUID Guid; const wchar_t *Title; const wchar_t *Description; const wchar_t *Author; }; struct PluginInfo { size_t StructSize; PLUGIN_FLAGS Flags; struct PluginMenuItem DiskMenu; struct PluginMenuItem PluginMenu; struct PluginMenuItem PluginConfig; const wchar_t *CommandPrefix; }; struct FarGetPluginInformation { size_t StructSize; const wchar_t *ModuleName; FAR_PLUGIN_FLAGS Flags; struct PluginInfo *PInfo; struct GlobalInfo *GInfo; }; typedef unsigned __int64 INFOPANELLINE_FLAGS; static const INFOPANELLINE_FLAGS IPLFLAGS_SEPARATOR = 0x0000000000000001ULL; struct InfoPanelLine { const wchar_t *Text; const wchar_t *Data; INFOPANELLINE_FLAGS Flags; }; typedef unsigned __int64 PANELMODE_FLAGS; static const PANELMODE_FLAGS PMFLAGS_FULLSCREEN = 0x0000000000000001ULL, PMFLAGS_DETAILEDSTATUS = 0x0000000000000002ULL, PMFLAGS_ALIGNEXTENSIONS = 0x0000000000000004ULL, PMFLAGS_CASECONVERSION = 0x0000000000000008ULL; struct PanelMode { const wchar_t *ColumnTypes; const wchar_t *ColumnWidths; const wchar_t* const *ColumnTitles; const wchar_t *StatusColumnTypes; const wchar_t *StatusColumnWidths; PANELMODE_FLAGS Flags; }; typedef unsigned __int64 OPENPANELINFO_FLAGS; static const OPENPANELINFO_FLAGS OPIF_DISABLEFILTER = 0x0000000000000001ULL, OPIF_DISABLESORTGROUPS = 0x0000000000000002ULL, OPIF_DISABLEHIGHLIGHTING = 0x0000000000000004ULL, OPIF_ADDDOTS = 0x0000000000000008ULL, OPIF_RAWSELECTION = 0x0000000000000010ULL, OPIF_REALNAMES = 0x0000000000000020ULL, OPIF_SHOWNAMESONLY = 0x0000000000000040ULL, OPIF_SHOWRIGHTALIGNNAMES = 0x0000000000000080ULL, OPIF_SHOWPRESERVECASE = 0x0000000000000100ULL, OPIF_COMPAREFATTIME = 0x0000000000000400ULL, OPIF_EXTERNALGET = 0x0000000000000800ULL, OPIF_EXTERNALPUT = 0x0000000000001000ULL, OPIF_EXTERNALDELETE = 0x0000000000002000ULL, OPIF_EXTERNALMKDIR = 0x0000000000004000ULL, OPIF_USEATTRHIGHLIGHTING = 0x0000000000008000ULL, OPIF_USECRC32 = 0x0000000000010000ULL, OPIF_USEFREESIZE = 0x0000000000020000ULL, OPIF_SHORTCUT = 0x0000000000040000ULL, OPIF_NONE = 0; struct KeyBarLabel { struct FarKey Key; const wchar_t *Text; const wchar_t *LongText; }; struct KeyBarTitles { size_t CountLabels; struct KeyBarLabel *Labels; }; struct FarSetKeyBarTitles { size_t StructSize; struct KeyBarTitles *Titles; }; typedef unsigned __int64 OPERATION_MODES; static const OPERATION_MODES OPM_SILENT =0x0000000000000001ULL, OPM_FIND =0x0000000000000002ULL, OPM_VIEW =0x0000000000000004ULL, OPM_EDIT =0x0000000000000008ULL, OPM_TOPLEVEL =0x0000000000000010ULL, OPM_DESCR =0x0000000000000020ULL, OPM_QUICKVIEW =0x0000000000000040ULL, OPM_PGDN =0x0000000000000080ULL, OPM_COMMANDS =0x0000000000000100ULL, OPM_NONE =0; struct OpenPanelInfo { size_t StructSize; HANDLE hPanel; OPENPANELINFO_FLAGS Flags; const wchar_t *HostFile; const wchar_t *CurDir; const wchar_t *Format; const wchar_t *PanelTitle; const struct InfoPanelLine *InfoLines; size_t InfoLinesNumber; const wchar_t* const *DescrFiles; size_t DescrFilesNumber; const struct PanelMode *PanelModesArray; size_t PanelModesNumber; intptr_t StartPanelMode; enum OPENPANELINFO_SORTMODES StartSortMode; intptr_t StartSortOrder; const struct KeyBarTitles *KeyBar; const wchar_t *ShortcutData; unsigned __int64 FreeSize; struct UserDataItem UserData; }; struct AnalyseInfo { size_t StructSize; const wchar_t *FileName; void *Buffer; size_t BufferSize; OPERATION_MODES OpMode; }; struct OpenAnalyseInfo { size_t StructSize; struct AnalyseInfo* Info; HANDLE Handle; }; struct OpenMacroInfo { size_t StructSize; size_t Count; struct FarMacroValue *Values; }; typedef unsigned __int64 FAROPENSHORTCUTFLAGS; static const FAROPENSHORTCUTFLAGS FOSF_ACTIVE = 0x0000000000000001ULL, FOSF_NONE = 0; struct OpenShortcutInfo { size_t StructSize; const wchar_t *HostFile; const wchar_t *ShortcutData; FAROPENSHORTCUTFLAGS Flags; }; struct OpenCommandLineInfo { size_t StructSize; const wchar_t *CommandLine; }; enum OPENFROM { OPEN_LEFTDISKMENU = 0, OPEN_PLUGINSMENU = 1, OPEN_FINDLIST = 2, OPEN_SHORTCUT = 3, OPEN_COMMANDLINE = 4, OPEN_EDITOR = 5, OPEN_VIEWER = 6, OPEN_FILEPANEL = 7, OPEN_DIALOG = 8, OPEN_ANALYSE = 9, OPEN_RIGHTDISKMENU = 10, OPEN_FROMMACRO = 11, OPEN_LUAMACRO = 100, }; enum MACROCALLTYPE { MCT_MACROINIT = 0, MCT_MACROSTEP = 1, MCT_MACROFINAL = 2, MCT_MACROPARSE = 3, MCT_LOADMACROS = 4, MCT_ENUMMACROS = 5, MCT_WRITEMACROS = 6, MCT_GETMACRO = 7, MCT_PROCESSMACRO = 8, MCT_DELMACRO = 9, MCT_RUNSTARTMACRO = 10, }; struct OpenMacroPluginInfo { size_t StructSize; enum MACROCALLTYPE CallType; HANDLE Handle; struct FarMacroCall *Data; }; enum FAR_EVENTS { FE_CHANGEVIEWMODE =0, FE_REDRAW =1, FE_IDLE =2, FE_CLOSE =3, FE_BREAK =4, FE_COMMAND =5, FE_GOTFOCUS =6, FE_KILLFOCUS =7, }; struct OpenInfo { size_t StructSize; enum OPENFROM OpenFrom; const GUID* Guid; intptr_t Data; }; struct SetDirectoryInfo { size_t StructSize; HANDLE hPanel; const wchar_t *Dir; intptr_t Reserved; OPERATION_MODES OpMode; struct UserDataItem UserData; }; struct SetFindListInfo { size_t StructSize; HANDLE hPanel; const struct PluginPanelItem *PanelItem; size_t ItemsNumber; }; struct PutFilesInfo { size_t StructSize; HANDLE hPanel; struct PluginPanelItem *PanelItem; size_t ItemsNumber; BOOL Move; const wchar_t *SrcPath; OPERATION_MODES OpMode; }; struct ProcessHostFileInfo { size_t StructSize; HANDLE hPanel; struct PluginPanelItem *PanelItem; size_t ItemsNumber; OPERATION_MODES OpMode; }; struct MakeDirectoryInfo { size_t StructSize; HANDLE hPanel; const wchar_t *Name; OPERATION_MODES OpMode; }; struct CompareInfo { size_t StructSize; HANDLE hPanel; const struct PluginPanelItem *Item1; const struct PluginPanelItem *Item2; enum OPENPANELINFO_SORTMODES Mode; }; struct GetFindDataInfo { size_t StructSize; HANDLE hPanel; struct PluginPanelItem *PanelItem; size_t ItemsNumber; OPERATION_MODES OpMode; }; struct FreeFindDataInfo { size_t StructSize; HANDLE hPanel; struct PluginPanelItem *PanelItem; size_t ItemsNumber; }; struct GetFilesInfo { size_t StructSize; HANDLE hPanel; struct PluginPanelItem *PanelItem; size_t ItemsNumber; BOOL Move; const wchar_t *DestPath; OPERATION_MODES OpMode; }; struct DeleteFilesInfo { size_t StructSize; HANDLE hPanel; struct PluginPanelItem *PanelItem; size_t ItemsNumber; OPERATION_MODES OpMode; }; struct ProcessPanelInputInfo { size_t StructSize; HANDLE hPanel; INPUT_RECORD Rec; }; struct ProcessEditorInputInfo { size_t StructSize; INPUT_RECORD Rec; }; typedef unsigned __int64 PROCESSCONSOLEINPUT_FLAGS; static const PROCESSCONSOLEINPUT_FLAGS PCIF_FROMMAIN = 0x0000000000000001ULL, PCIF_NONE = 0; struct ProcessConsoleInputInfo { size_t StructSize; PROCESSCONSOLEINPUT_FLAGS Flags; INPUT_RECORD Rec; }; struct ExitInfo { size_t StructSize; }; struct ProcessPanelEventInfo { size_t StructSize; intptr_t Event; void* Param; HANDLE hPanel; }; struct ProcessEditorEventInfo { size_t StructSize; intptr_t Event; void* Param; intptr_t EditorID; }; struct ProcessDialogEventInfo { size_t StructSize; intptr_t Event; struct FarDialogEvent* Param; }; struct ProcessSynchroEventInfo { size_t StructSize; intptr_t Event; void* Param; }; struct ProcessViewerEventInfo { size_t StructSize; intptr_t Event; void* Param; intptr_t ViewerID; }; struct ClosePanelInfo { size_t StructSize; HANDLE hPanel; }; struct CloseAnalyseInfo { size_t StructSize; HANDLE Handle; }; struct ConfigureInfo { size_t StructSize; const GUID* Guid; }; #ifdef __cplusplus extern "C" { #endif // Exported Functions HANDLE WINAPI AnalyseW(const struct AnalyseInfo *Info); void WINAPI CloseAnalyseW(const struct CloseAnalyseInfo *Info); void WINAPI ClosePanelW(const struct ClosePanelInfo *Info); intptr_t WINAPI CompareW(const struct CompareInfo *Info); intptr_t WINAPI ConfigureW(const struct ConfigureInfo *Info); intptr_t WINAPI DeleteFilesW(const struct DeleteFilesInfo *Info); void WINAPI ExitFARW(const struct ExitInfo *Info); void WINAPI FreeFindDataW(const struct FreeFindDataInfo *Info); intptr_t WINAPI GetFilesW(struct GetFilesInfo *Info); intptr_t WINAPI GetFindDataW(struct GetFindDataInfo *Info); void WINAPI GetGlobalInfoW(struct GlobalInfo *Info); void WINAPI GetOpenPanelInfoW(struct OpenPanelInfo *Info); void WINAPI GetPluginInfoW(struct PluginInfo *Info); intptr_t WINAPI MakeDirectoryW(struct MakeDirectoryInfo *Info); HANDLE WINAPI OpenW(const struct OpenInfo *Info); intptr_t WINAPI ProcessDialogEventW(const struct ProcessDialogEventInfo *Info); intptr_t WINAPI ProcessEditorEventW(const struct ProcessEditorEventInfo *Info); intptr_t WINAPI ProcessEditorInputW(const struct ProcessEditorInputInfo *Info); intptr_t WINAPI ProcessPanelEventW(const struct ProcessPanelEventInfo *Info); intptr_t WINAPI ProcessHostFileW(const struct ProcessHostFileInfo *Info); intptr_t WINAPI ProcessPanelInputW(const struct ProcessPanelInputInfo *Info); intptr_t WINAPI ProcessConsoleInputW(struct ProcessConsoleInputInfo *Info); intptr_t WINAPI ProcessSynchroEventW(const struct ProcessSynchroEventInfo *Info); intptr_t WINAPI ProcessViewerEventW(const struct ProcessViewerEventInfo *Info); intptr_t WINAPI PutFilesW(const struct PutFilesInfo *Info); intptr_t WINAPI SetDirectoryW(const struct SetDirectoryInfo *Info); intptr_t WINAPI SetFindListW(const struct SetFindListInfo *Info); void WINAPI SetStartupInfoW(const struct PluginStartupInfo *Info); #ifdef __cplusplus } #endif #endif /* RC_INVOKED */ #endif /* __PLUGIN_HPP__ */
[ "andrew.grechkin@gmail.com" ]
andrew.grechkin@gmail.com
4c00119b89bde20b696e85145c2a203dc20a2797
c5c8f1063215fc594bc7c7eabeb90e4d5f325a0a
/source/entity/Jumper.cpp
641521fb54ebeae2af1cb2c660514032a8276173
[]
no_license
dujodujo/ape
00854fbe96e91b2810a155127aeba1b5bcd44262
fce22f9d874519aa105c04e443a0fe352e6655ce
refs/heads/master
2016-09-05T10:41:51.450350
2013-11-04T06:06:05
2013-11-04T06:06:05
null
0
0
null
null
null
null
UTF-8
C++
false
false
957
cpp
#include "Jumper.h" #include "Hero.h" #include "Sprite.h" #include "Game.h" #include "Map.h" Jumper::Jumper(const std::string& name, int x, int y, int direction) : Detector(COLLISION_RECTANGLE, name, x, y, 0, 0) { set_direction(direction); init_sprites(); } Jumper::~Jumper() {} MapEntity* Jumper::parse(Game& game, const std::string& line) { std::istringstream iss(line); int entity_type; int x; int y; std::string name; int direction; iss >> entity_type >> x >> y >> name >> direction; return new Jumper(name, x, y, direction); } EntityType Jumper::get_entity_type() { return EntityType::JUMPER; } void Jumper::init_sprites() { Sprite& sprite = create_sprite("jumper.txt"); sprite.set_current_animation("jumper"); sprite.set_current_direction(0); set_bounding_box_from_sprite(); } void Jumper::notify_collision(MapEntity& entity_overlapping, CollisionMode collision_mode) { entity_overlapping.notify_collision_with_jumper(*this); }
[ "avsic.ziga@gmail.com" ]
avsic.ziga@gmail.com
95c042cfd4f135b10cba0ece196d44c7d4b1ed8a
eddd3af30446b1a48f86b8923370c638311e0db4
/shortest_path/main.cpp
1755a51906256094f5a21196881b0a65fb608652
[]
no_license
takafumihoriuchi/cpp_summer_camp
7ffe7b65ef9eb5c92a51030fd2d76ae18dfce9e4
861e24f7ad319cdd21e324f1cd05401ccdbeb352
refs/heads/master
2020-03-27T23:50:31.453895
2018-09-06T23:52:43
2018-09-06T23:52:43
147,352,064
0
0
null
null
null
null
UTF-8
C++
false
false
931
cpp
#include <iostream> #include <list> #include <deque> #include <vector> #include "clock.h" std::deque<unsigned> NearestPath( unsigned nodeSize, const std::vector<unsigned>& edgeIndices1, const std::vector<unsigned>& edgeIndices2, const std::vector<double>& edgeDistances, unsigned startNode, unsigned goalNode ); int main() { unsigned n, m; unsigned start, goal; std::cin >> n >> m; std::cin >> start >> goal; std::vector<unsigned> edgeIndices1; std::vector<unsigned> edgeIndices2; std::vector<double> edgeDistances; unsigned p, q; double cost; for (size_t i = 0; i < m; ++i) { std::cin >> p >> q >> cost; edgeIndices1.push_back(p); edgeIndices2.push_back(q); edgeDistances.push_back(cost); } start_counter(); const auto path = NearestPath(n, edgeIndices1, edgeIndices2, edgeDistances, start, goal); for(auto i : path) { std::cout << i << "\n"; } print_counter(); }
[ "hawkletter080e@icloud.com" ]
hawkletter080e@icloud.com
1cd05add3fd10085225027f29ec5f6d872bb2c2e
d9e3ca88e20e581651b63365cda5993f91217786
/evawiz/src/evacc/syntax_launch_kernel.h
440f6388436bd8c627e387dc9d09dbbbc2272901
[ "BSD-2-Clause" ]
permissive
einsxiao/evawiz
9e198b409182de185995e219a93a04ee50962d89
12c148f46c89551c281271718893a92b26da2bfa
refs/heads/master
2022-12-16T10:33:28.366531
2019-08-14T16:20:05
2019-08-14T16:20:05
189,943,771
1
0
BSD-2-Clause
2021-06-02T00:15:16
2019-06-03T05:59:27
Emacs Lisp
UTF-8
C++
false
false
1,343
h
class launch_kernel{ public: struct __iter_rec{ int istart, iend; int Nstart, Nend; }; struct __arg_rec{ int typestart, typeend; int argstart, argend; int varstart, varend; }; Node *tree; Syntax::__pragma_rec *pragma; int serial_number; string filePath; string *content; //the whole content //////////////////////////////////////////// NodeIndex declare_insert_pos; NodeIndex define_insert_pos; u_int iters_start_pos; u_int args_start_pos; // the content of its body block NodeIndex content_start_pos; NodeIndex content_end_pos; vector< __arg_rec > args; vector< __iter_rec > iters; string iter_i(int i); string iter_N(int i); string iter_Ni(int i); string arg_type(int i); string arg_arg(int i); string arg_var(int i); int Init(); string declare_cpu(); string declare_gpu(); string call_cpu(); string call_gpu(); string define_cpu(char ch); //ch 'f':fisrt part of definition, 's':second part string define_gpu(); };
[ "evawiz@example.com" ]
evawiz@example.com
34daeea0afad863f768a756c5aa683ba7b39a01f
3ff1fe3888e34cd3576d91319bf0f08ca955940f
/iotvideo/include/tencentcloud/iotvideo/v20211125/model/CreateTaskFileUrlResponse.h
d954711d592fcb6d736756daf12cba2f07aab590
[ "Apache-2.0" ]
permissive
TencentCloud/tencentcloud-sdk-cpp
9f5df8220eaaf72f7eaee07b2ede94f89313651f
42a76b812b81d1b52ec6a217fafc8faa135e06ca
refs/heads/master
2023-08-30T03:22:45.269556
2023-08-30T00:45:39
2023-08-30T00:45:39
188,991,963
55
37
Apache-2.0
2023-08-17T03:13:20
2019-05-28T08:56:08
C++
UTF-8
C++
false
false
2,933
h
/* * Copyright (c) 2017-2019 THL A29 Limited, a Tencent company. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #ifndef TENCENTCLOUD_IOTVIDEO_V20211125_MODEL_CREATETASKFILEURLRESPONSE_H_ #define TENCENTCLOUD_IOTVIDEO_V20211125_MODEL_CREATETASKFILEURLRESPONSE_H_ #include <string> #include <vector> #include <map> #include <tencentcloud/core/AbstractModel.h> namespace TencentCloud { namespace Iotvideo { namespace V20211125 { namespace Model { /** * CreateTaskFileUrl返回参数结构体 */ class CreateTaskFileUrlResponse : public AbstractModel { public: CreateTaskFileUrlResponse(); ~CreateTaskFileUrlResponse() = default; CoreInternalOutcome Deserialize(const std::string &payload); std::string ToJsonString() const; /** * 获取任务文件上传链接 * @return Url 任务文件上传链接 * */ std::string GetUrl() const; /** * 判断参数 Url 是否已赋值 * @return Url 是否已赋值 * */ bool UrlHasBeenSet() const; /** * 获取任务文件名 * @return FileName 任务文件名 * */ std::string GetFileName() const; /** * 判断参数 FileName 是否已赋值 * @return FileName 是否已赋值 * */ bool FileNameHasBeenSet() const; private: /** * 任务文件上传链接 */ std::string m_url; bool m_urlHasBeenSet; /** * 任务文件名 */ std::string m_fileName; bool m_fileNameHasBeenSet; }; } } } } #endif // !TENCENTCLOUD_IOTVIDEO_V20211125_MODEL_CREATETASKFILEURLRESPONSE_H_
[ "tencentcloudapi@tencent.com" ]
tencentcloudapi@tencent.com
5a5a869bcc494b20a7331a12ce0c577b48b06eff
3441fb8dfe747df1d7d11fe152e98bbe39a9ccab
/CHI_TECH/ChiMesh/MeshContinuum/chi_meshcontinuum_exportobj.cc
4370f7b9e5554dc389c186006e3263fed340fece
[]
no_license
quincy-huhn98/chi-tech
5a2a247e28c819366a9a773030354c781e458ba0
fecbb6d8b5d03fdb6fac55da1dd26a4e1438540b
refs/heads/development
2021-01-09T02:11:27.893645
2020-02-04T16:23:35
2020-02-04T16:23:35
242,212,718
0
0
null
2020-02-21T19:13:21
2020-02-21T19:13:21
null
UTF-8
C++
false
false
7,737
cc
#include "chi_meshcontinuum.h" #include <fstream> #include "ChiMesh/Cell/cell_polyhedron.h" #include "ChiMesh/Cell/cell_polygon.h" #include <ChiPhysics/chi_physics.h> #include <ChiPhysics/PhysicsMaterial/chi_physicsmaterial.h> extern ChiPhysics chi_physics_handler; #include <chi_mpi.h> #include <chi_log.h> extern ChiMPI chi_mpi; extern ChiLog chi_log; //################################################################### /**Export cells to python. * * \todo Export Cells to OBJ needs polygon support. */ void chi_mesh::MeshContinuum:: ExportCellsToObj(const char* fileName, bool per_material, int options) { if (!per_material) { FILE* of = fopen(fileName,"w"); if (of==NULL) { chi_log.Log(LOG_ALLERROR) << "Could not open file: " << std::string(fileName); exit(EXIT_FAILURE); } //====================================== Develop list of faces and nodes std::set<int> nodes_set; std::vector<chi_mesh::CellFace> faces_to_export; for (int c=0; c<local_cell_glob_indices.size(); c++) { int cell_glob_index = local_cell_glob_indices[c]; auto cell = cells[cell_glob_index]; if (cell->Type() == chi_mesh::CellType::POLYHEDRON) { auto polyh_cell = (chi_mesh::CellPolyhedron*)cell; for (int f=0; f<polyh_cell->faces.size(); f++) { if (polyh_cell->faces[f].neighbor < 0) { faces_to_export.push_back(polyh_cell->faces[f]); for (int v=0; v<polyh_cell->faces[f].vertex_ids.size(); v++) { nodes_set.insert(polyh_cell->faces[f].vertex_ids[v]); } }//if boundary }//for face }//if polyhedron }//for local cell //====================================== Write header fprintf(of,"# Exported mesh file from Extrusion script\n"); std::string str_file_name(fileName); std::string file_base_name = str_file_name.substr(0,str_file_name.find(".")); fprintf(of,"o %s\n",file_base_name.c_str()); //====================================== Develop node mapping and write them std::vector<int> node_mapping(nodes.size(),-1); std::set<int>::iterator node; int node_counter=0; for (node = nodes_set.begin(); node != nodes_set.end(); node++) { node_counter++; int node_g_index = *node; node_mapping[node_g_index] = node_counter; chi_mesh::Vertex* cur_v = nodes[node_g_index]; fprintf(of,"v %9.6f %9.6f %9.6f\n",cur_v->x,cur_v->y,cur_v->z); } //====================================== Write face normals for (int f=0; f<faces_to_export.size(); f++) { fprintf(of,"vn %.4f %.4f %.4f\n", faces_to_export[f].normal.x, faces_to_export[f].normal.y, faces_to_export[f].normal.z); } //====================================== Write faces int normal_counter=0; for (int f=0; f<faces_to_export.size(); f++) { normal_counter++; fprintf(of,"f"); for (int v=0; v<faces_to_export[f].vertex_ids.size(); v++) { int v_g_index = faces_to_export[f].vertex_ids[v]; int v_mapped = node_mapping[v_g_index]; fprintf(of," %d//%d",v_mapped,normal_counter); } fprintf(of,"\n"); } fclose(of); chi_log.Log(LOG_0) << "Exported Volume mesh to " << str_file_name; }//Whole mesh //%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% PER MATERIAL else { //========================================= Get base name std::string str_file_name(fileName); std::string file_base_name = str_file_name.substr(0,str_file_name.find(".")); if (chi_physics_handler.material_stack.empty()) { chi_log.Log(LOG_0WARNING) << "ExportCellsToObj: No mesh will be exported because there " << "are no physics materials present"; } for (int mat=0; mat<chi_physics_handler.material_stack.size(); mat++) { std::string mat_base_name = file_base_name + std::string("_m") + std::to_string(mat); std::string mat_file_name = mat_base_name + std::string(".obj"); FILE* of = fopen(mat_file_name.c_str(),"w"); if (of==NULL) { chi_log.Log(LOG_ALLERROR) << "Could not open file: " << mat_file_name; exit(EXIT_FAILURE); } //====================================== Develop list of faces and nodes std::set<int> nodes_set; std::vector<chi_mesh::CellFace> faces_to_export; for (int c=0; c<local_cell_glob_indices.size(); c++) { int cell_glob_index = local_cell_glob_indices[c]; auto cell = cells[cell_glob_index]; if (cell->Type() == chi_mesh::CellType::POLYHEDRON) { auto polyh_cell = (chi_mesh::CellPolyhedron*)cell; if (polyh_cell->material_id != mat) continue; for (int f=0; f<polyh_cell->faces.size(); f++) { int adjcell_glob_index = polyh_cell->faces[f].neighbor; if (adjcell_glob_index<0) { faces_to_export.push_back(polyh_cell->faces[f]); for (int v=0; v<polyh_cell->faces[f].vertex_ids.size(); v++) { nodes_set.insert(polyh_cell->faces[f].vertex_ids[v]); } }//if boundary else { auto adj_cell = cells[adjcell_glob_index]; if (adj_cell->material_id != mat) { faces_to_export.push_back(polyh_cell->faces[f]); for (int v=0; v<polyh_cell->faces[f].vertex_ids.size(); v++) { nodes_set.insert(polyh_cell->faces[f].vertex_ids[v]); } }//if material missmatch }//if neigbor cell }//for face }//if polyhedron }//for local cell //====================================== Write header fprintf(of,"# Exported mesh file from Extrusion script\n"); fprintf(of,"o %s\n",mat_base_name.c_str()); //====================================== Develop node mapping and write them std::vector<int> node_mapping(nodes.size(),-1); std::set<int>::iterator node; int node_counter=0; for (node = nodes_set.begin(); node != nodes_set.end(); node++) { node_counter++; int node_g_index = *node; node_mapping[node_g_index] = node_counter; chi_mesh::Vertex* cur_v = nodes[node_g_index]; fprintf(of,"v %9.6f %9.6f %9.6f\n",cur_v->x,cur_v->y,cur_v->z); } //====================================== Write face normals for (int f=0; f<faces_to_export.size(); f++) { fprintf(of,"vn %.4f %.4f %.4f\n", faces_to_export[f].normal.x, faces_to_export[f].normal.y, faces_to_export[f].normal.z); } //====================================== Write faces int normal_counter=0; for (int f=0; f<faces_to_export.size(); f++) { normal_counter++; fprintf(of,"f"); for (int v=0; v<faces_to_export[f].vertex_ids.size(); v++) { int v_g_index = faces_to_export[f].vertex_ids[v]; int v_mapped = node_mapping[v_g_index]; fprintf(of," %d//%d",v_mapped,normal_counter); } fprintf(of,"\n"); } fclose(of); chi_log.Log(LOG_0) << "Exported Material Volume mesh to " << mat_file_name; }//for mat }//if per material }
[ "janicvermaak@gmail.com" ]
janicvermaak@gmail.com
aea7541f70a71b4d135002415694ed54d0fce868
86f8019eabea54665bf709725aaf7b2967206058
/engine/decision_strategies/deity/include/AltarDropDeityDecisionStrategyHandler.hpp
023a217641662efc48d62e564b6493392f651cd2
[ "MIT", "Zlib" ]
permissive
cleancoindev/shadow-of-the-wyrm
ca5d21a0d412de88804467b92ec46b78fb1e3ef0
51b23e98285ecb8336324bfd41ebf00f67b30389
refs/heads/master
2022-07-13T22:03:50.687853
2020-02-16T14:39:43
2020-02-16T14:39:43
264,385,732
1
0
MIT
2020-05-16T07:45:16
2020-05-16T07:45:15
null
UTF-8
C++
false
false
785
hpp
#pragma once #include "DeityDecisionStrategyHandler.hpp" class AltarDropDeityDecisionStrategyHandler : public DeityDecisionStrategyHandler { public: AltarDropDeityDecisionStrategyHandler(const std::string& new_deity_id); AltarDropDeityDecisionStrategyHandler(const std::string& new_deity_id, CreaturePtr dropping_creature, FeaturePtr feature, ItemPtr dropped_item); bool decide(CreaturePtr creature) override; DeityDecisionImplications handle_decision(CreaturePtr creature, TilePtr tile) override; protected: int get_piety_loss() const override; std::string get_message_sid() const override; CreaturePtr creature; FeaturePtr altar; ItemPtr drop_item; static const int PIETY_LOSS_COALIGN; static const int PIETY_LOSS_CROSSALIGN; };
[ "jcd748@mail.usask.ca" ]
jcd748@mail.usask.ca
9164ca4f0c1f4d294f393717fe15026c34d83a7a
1ecb0c4e8b6660a1935851b9ec31d12816870451
/src/PhotoResistorPushButton.h
fcccab4e57e7040032cd5ad1878d508cde3f7b00
[]
no_license
sharklasers996/KitchenTimer
876a3ea188a4877ba44d2aec7d0047c77642c607
15236b030307fb644e01cb670f0a8f30b200a5d1
refs/heads/master
2020-06-03T07:37:50.699665
2019-08-24T06:15:05
2019-08-24T06:15:05
191,497,812
0
0
null
null
null
null
UTF-8
C++
false
false
192
h
#include "Arduino.h" class PhotoResistorPushButton { public: PhotoResistorPushButton(int pin); bool isPushed(); bool isDark(); private: int _prPin; long _prLastReadAt; };
[ "sharklasers996@gmail.com" ]
sharklasers996@gmail.com
13855ef721f98e9cb6a6b86465571e9c1313202e
61d19c9f24a602951a9a3a1fdd91704b8519c60a
/p2/Ejercicio 8.cpp
e2c851585a9ab671682532dd9240d8c3120336b9
[]
no_license
dtarqui/Ejemplos_CPP
ad3bdebaf11a6df0984e916a345aad692647ad08
c9849320156689d14dc40d47115a496df896416c
refs/heads/master
2022-12-06T11:06:29.825907
2020-08-23T14:26:37
2020-08-23T14:26:37
null
0
0
null
null
null
null
ISO-8859-1
C++
false
false
555
cpp
/* 8.- Escriba un programa que verifique si un número es perfecto o no lo es. */ #include <cstdlib> #include <iostream> using namespace std; bool NumPer(int ); int main() { int num; cout<<"Ingrese el numero: "; cin>>num; if(NumPer(num)) cout<<"Es perfecto"; else cout<<"No es perfecto"; return 0; } bool NumPer(int num){ int sum=0,i=num-1; while(i>0){ if(num%i==0) sum+=i; i--; } if (sum==num) return true; else return false; }
[ "macuto2142dt@gmail.com" ]
macuto2142dt@gmail.com
b4b50bc12a65c1f5af8211a011b36227156564cd
904969c92a7225f1ab0bfb2ed4d45b0c70659eb7
/ObserverPattern/Headers.h
6d61e7490dacdc5fa8bc3082c58645eba48d1c51
[]
no_license
VitorVidal14/ObserverPattern
7e2cc6a5aae2fa7b7782a6846c2192bbe67dfb64
4e34d38730ea84af219e760f4d3e03365bce2dec
refs/heads/master
2023-01-06T07:37:13.336908
2020-11-10T19:06:26
2020-11-10T19:06:26
311,741,534
0
0
null
null
null
null
UTF-8
C++
false
false
697
h
#pragma once #define _USE_MATH_DEFINES #define _HAS_AUTO_PTR_ETC 1 #include <algorithm> #include <iostream> #include <cstdio> #include <string> #include <vector> #include <fstream> #include <tuple> #include <sstream> #include <memory> #include <cmath> #include <map> #include <ostream> #include <cstdint> #include <functional> #include <typeindex> #include <any> using namespace std; //using namespace std::string_literals; //#include <boost/lexical_cast.hpp> //#include <boost/algorithm/string.hpp> //#include <boost/bimap.hpp> //#include <boost/flyweight.hpp> #include <boost/signals2.hpp> //#include <boost/iterator/iterator_facade.hpp> using namespace boost; using namespace boost::signals2;
[ "vitorvidal@unifei.edu.br" ]
vitorvidal@unifei.edu.br
d015e6190533197124c80db7b608985ff8e02913
d60b7616d9c862a6ec684e73d675bbdac203aac8
/dobot_ws/devel/include/dobot/GetEndEffectorSuctionCupResponse.h
85732bec00f53c4789a892e4c9d75192f3e4b510
[]
no_license
yucnet/ROS_demo-1
a2c62cd419577ec294a9f2bee038281e689685c4
9649c972a3a3f4dc29b9966b527975811b8859a8
refs/heads/master
2022-02-09T22:38:09.724680
2019-08-22T06:16:27
2019-08-22T06:16:27
null
0
0
null
null
null
null
UTF-8
C++
false
false
5,885
h
// Generated by gencpp from file dobot/GetEndEffectorSuctionCupResponse.msg // DO NOT EDIT! #ifndef DOBOT_MESSAGE_GETENDEFFECTORSUCTIONCUPRESPONSE_H #define DOBOT_MESSAGE_GETENDEFFECTORSUCTIONCUPRESPONSE_H #include <string> #include <vector> #include <map> #include <ros/types.h> #include <ros/serialization.h> #include <ros/builtin_message_traits.h> #include <ros/message_operations.h> namespace dobot { template <class ContainerAllocator> struct GetEndEffectorSuctionCupResponse_ { typedef GetEndEffectorSuctionCupResponse_<ContainerAllocator> Type; GetEndEffectorSuctionCupResponse_() : result(0) , enableCtrl(0) , suck(0) { } GetEndEffectorSuctionCupResponse_(const ContainerAllocator& _alloc) : result(0) , enableCtrl(0) , suck(0) { (void)_alloc; } typedef int32_t _result_type; _result_type result; typedef uint8_t _enableCtrl_type; _enableCtrl_type enableCtrl; typedef uint8_t _suck_type; _suck_type suck; typedef boost::shared_ptr< ::dobot::GetEndEffectorSuctionCupResponse_<ContainerAllocator> > Ptr; typedef boost::shared_ptr< ::dobot::GetEndEffectorSuctionCupResponse_<ContainerAllocator> const> ConstPtr; }; // struct GetEndEffectorSuctionCupResponse_ typedef ::dobot::GetEndEffectorSuctionCupResponse_<std::allocator<void> > GetEndEffectorSuctionCupResponse; typedef boost::shared_ptr< ::dobot::GetEndEffectorSuctionCupResponse > GetEndEffectorSuctionCupResponsePtr; typedef boost::shared_ptr< ::dobot::GetEndEffectorSuctionCupResponse const> GetEndEffectorSuctionCupResponseConstPtr; // constants requiring out of line definition template<typename ContainerAllocator> std::ostream& operator<<(std::ostream& s, const ::dobot::GetEndEffectorSuctionCupResponse_<ContainerAllocator> & v) { ros::message_operations::Printer< ::dobot::GetEndEffectorSuctionCupResponse_<ContainerAllocator> >::stream(s, "", v); return s; } } // namespace dobot namespace ros { namespace message_traits { // BOOLTRAITS {'IsFixedSize': True, 'IsMessage': True, 'HasHeader': False} // {'dobot': ['/home/kermit/dobot_ws/src/dobot/msg'], 'std_msgs': ['/opt/ros/melodic/share/std_msgs/cmake/../msg']} // !!!!!!!!!!! ['__class__', '__delattr__', '__dict__', '__doc__', '__eq__', '__format__', '__getattribute__', '__hash__', '__init__', '__module__', '__ne__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__sizeof__', '__str__', '__subclasshook__', '__weakref__', '_parsed_fields', 'constants', 'fields', 'full_name', 'has_header', 'header_present', 'names', 'package', 'parsed_fields', 'short_name', 'text', 'types'] template <class ContainerAllocator> struct IsFixedSize< ::dobot::GetEndEffectorSuctionCupResponse_<ContainerAllocator> > : TrueType { }; template <class ContainerAllocator> struct IsFixedSize< ::dobot::GetEndEffectorSuctionCupResponse_<ContainerAllocator> const> : TrueType { }; template <class ContainerAllocator> struct IsMessage< ::dobot::GetEndEffectorSuctionCupResponse_<ContainerAllocator> > : TrueType { }; template <class ContainerAllocator> struct IsMessage< ::dobot::GetEndEffectorSuctionCupResponse_<ContainerAllocator> const> : TrueType { }; template <class ContainerAllocator> struct HasHeader< ::dobot::GetEndEffectorSuctionCupResponse_<ContainerAllocator> > : FalseType { }; template <class ContainerAllocator> struct HasHeader< ::dobot::GetEndEffectorSuctionCupResponse_<ContainerAllocator> const> : FalseType { }; template<class ContainerAllocator> struct MD5Sum< ::dobot::GetEndEffectorSuctionCupResponse_<ContainerAllocator> > { static const char* value() { return "4855d73076b6df7c6c4785878f4cef46"; } static const char* value(const ::dobot::GetEndEffectorSuctionCupResponse_<ContainerAllocator>&) { return value(); } static const uint64_t static_value1 = 0x4855d73076b6df7cULL; static const uint64_t static_value2 = 0x6c4785878f4cef46ULL; }; template<class ContainerAllocator> struct DataType< ::dobot::GetEndEffectorSuctionCupResponse_<ContainerAllocator> > { static const char* value() { return "dobot/GetEndEffectorSuctionCupResponse"; } static const char* value(const ::dobot::GetEndEffectorSuctionCupResponse_<ContainerAllocator>&) { return value(); } }; template<class ContainerAllocator> struct Definition< ::dobot::GetEndEffectorSuctionCupResponse_<ContainerAllocator> > { static const char* value() { return "int32 result\n" "uint8 enableCtrl\n" "uint8 suck\n" "\n" ; } static const char* value(const ::dobot::GetEndEffectorSuctionCupResponse_<ContainerAllocator>&) { return value(); } }; } // namespace message_traits } // namespace ros namespace ros { namespace serialization { template<class ContainerAllocator> struct Serializer< ::dobot::GetEndEffectorSuctionCupResponse_<ContainerAllocator> > { template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) { stream.next(m.result); stream.next(m.enableCtrl); stream.next(m.suck); } ROS_DECLARE_ALLINONE_SERIALIZER }; // struct GetEndEffectorSuctionCupResponse_ } // namespace serialization } // namespace ros namespace ros { namespace message_operations { template<class ContainerAllocator> struct Printer< ::dobot::GetEndEffectorSuctionCupResponse_<ContainerAllocator> > { template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::dobot::GetEndEffectorSuctionCupResponse_<ContainerAllocator>& v) { s << indent << "result: "; Printer<int32_t>::stream(s, indent + " ", v.result); s << indent << "enableCtrl: "; Printer<uint8_t>::stream(s, indent + " ", v.enableCtrl); s << indent << "suck: "; Printer<uint8_t>::stream(s, indent + " ", v.suck); } }; } // namespace message_operations } // namespace ros #endif // DOBOT_MESSAGE_GETENDEFFECTORSUCTIONCUPRESPONSE_H
[ "kxjzxc@outlook.com" ]
kxjzxc@outlook.com
dd1b27dfaf8c5038428eca98d3cc8a6bdaf057a9
953b877fb06a13863af5722b4bc5809561ac0eb1
/BT/Source/SoftDesignTraining/Public/AI/BehaviorTree/Task/BTTask_MoveToTarget.h
7b174649e36417a3fd52b75623fd15552f4fffd9
[]
no_license
manuerob/intelligent_agents_log8235
68bbe0b1343f19a4d6e21e3c184999ec0bf7da82
66fbf1d2f1911d226931b7ef7589c0c007dcf99c
refs/heads/master
2023-04-16T07:44:16.126543
2020-12-05T22:33:56
2020-12-05T22:33:56
294,510,451
0
0
null
null
null
null
UTF-8
C++
false
false
456
h
// Fill out your copyright notice in the Description page of Project Settings. #pragma once #include "CoreMinimal.h" #include "BehaviorTree/Tasks/BTTask_BlackboardBase.h" #include "BTTask_MoveToTarget.generated.h" /** * */ UCLASS() class SOFTDESIGNTRAINING_API UBTTask_MoveToTarget : public UBTTask_BlackboardBase { GENERATED_BODY() virtual EBTNodeResult::Type ExecuteTask(UBehaviorTreeComponent& OwnerComp, uint8* NodeMemory) override; };
[ "meilleur.jacob@hotmail.com" ]
meilleur.jacob@hotmail.com
af36923178586bc5f49159dea581d8b66944b1b1
c4441b2b2596948e14ba69a75e50b1a7d2be7017
/Engine/src/Render/RootNode.cpp
a43918a3fd9eea754945a9eb0eb1c3a7713c1c85
[]
no_license
yunjuanhuakai/MEngine
a36e5c23ec2a66d16b4abb06637160aa9f653c54
c0fa01656a3a1896cf397a03a047ead471135777
refs/heads/master
2021-05-01T17:45:27.788686
2018-06-13T18:07:58
2018-06-13T18:07:58
120,995,784
0
0
null
null
null
null
UTF-8
C++
false
false
1,436
cpp
#include "Render/RootNode.h" #include "Render/Scene.h" #include "Render/CameraNode.h" #include "Render/LightManager.h" namespace mk ::render { RootNode::RootNode() : SceneNode(0, "Root", RenderPass::Define, global::Transparent, math::mat4()) , staticGroup{0, "StaticGroup", RenderPass::Static, global::White, math::mat4()} , actorGroup{0, "ActorGroup", RenderPass::Actor, global::White, math::mat4()} , skyGroup{0, "SkyGroup", RenderPass::Sky, global::White, math::mat4()} , invisibleGroup{0, "InvisibleGroup", RenderPass::NotRendered, global::White, math::mat4()} { } void RootNode::Render(Scene &scene) { SceneNode::Render(scene); } bool RootNode::IsVisible(Scene &scene) { return true; } void RootNode::RenderChildren(Scene &scene) { staticGroup.RenderChildren(scene); actorGroup.RenderChildren(scene); skyGroup.RenderChildren(scene); invisibleGroup.RenderChildren(scene); } bool RootNode::AddChild(ISceneNode::SelfPtr child) { switch (child.->Get()->GetPass()) { case RenderPass::Define: return staticGroup.AddChild(child); case RenderPass::Actor: return actorGroup.AddChild(child); case RenderPass::Sky: return skyGroup.AddChild(child); case RenderPass::NotRendered: invisibleGroup.AddChild(child); default: assert("add error node to RootNode"); return false; } } }
[ "makaiyk@163.com" ]
makaiyk@163.com
67573818d47620a012f8af8967f7b69d377ace01
2444a8541ed0bab9326ad8aee63896150d1c7dde
/interface/Lepton.h
5124d88f0cda682101cc7f610f5b04a72658554d
[]
no_license
aashaqshah/mut_dataformats
1419e0517c6bae8fd055ebb5c48086bd13d01780
35fd0760d74055b7af87ecd1fee05d732d4f2f07
refs/heads/master
2021-01-20T04:29:00.179369
2017-02-12T23:19:57
2017-02-12T23:19:57
null
0
0
null
null
null
null
UTF-8
C++
false
false
1,418
h
#pragma once #include <string> #include "Candidate.h" namespace mut { class Lepton : public mut::Candidate { public: typedef std::pair<std::string, float> Pair; typedef std::vector<Pair> PairVector; Lepton() : mut::Candidate() {} // copy constructor Lepton(const Lepton& rhs) : mut::Candidate(rhs), idPairs_(rhs.idPairs_), isoPairs_(rhs.isoPairs_) {} // inherit constructors using mut::Candidate::Candidate; bool hasLeptonID(const std::string &name) const; float getLeptonID(const std::string &name) const; float getLeptonID(const char * name) const {return getLeptonID(std::string(name)); }; const PairVector & getLeptonIDPairs() const { return idPairs_; } void setLeptonIDPairs(const PairVector &idPairs) { idPairs_ = idPairs; } bool hasLeptonIso(const std::string &name) const; float getLeptonIso(const std::string &name) const; float getLeptonIso(const char * name) const { return getLeptonIso(std::string(name)); } const PairVector & getLeptonIsoPairs() const { return isoPairs_; } void setLeptonIsoPairs(const PairVector &isoPairs) { isoPairs_ = isoPairs; } protected: // vector of pairs with id and iso info PairVector idPairs_; PairVector isoPairs_; }; typedef std::vector<Lepton> LeptonCollection; }
[ "pablodecm@gmail.com" ]
pablodecm@gmail.com
c37514aa40f8de6ec55a84186ecbbec4a4a9a866
65aa81b16883a9bb1af081b9fbbe536c11b524c1
/Pac-Man/Ghost.cpp
f3c11e26ae1052f02e23ba8d2d8d049064a2c62d
[]
no_license
Guitaroz/TicTacToe-Pac-Man
af62870962485c71bc5ba007eff404300a10a1b8
bd701ec2f92abcfb757be6119a5642d040de18a0
refs/heads/master
2021-01-02T23:07:21.626487
2016-05-07T22:43:21
2016-05-07T22:43:21
58,287,275
0
0
null
null
null
null
UTF-8
C++
false
false
12,904
cpp
#include <iostream> using namespace std; #include <cstring> #include <ctime> #include <conio.h> #include "Ghost.h" #include "Console.h"; using namespace System; Ghost::Ghost(ConsoleColor color, COORD startingpos) { ghostPos = startingpos; ghostColor = color; avoidMove = -1; incage = true; if (color == Red) incage = false; scared = White; pastDirection = rand() % 4; iscared = false; counter = rand(); Draw(); } // AI Al void Ghost::Move(char maze[MAZE_ROWS][MAZE_COLS], Ghost * ghostPtr[], COORD playerpos) { do { COORD evilmove[4] = { CreateCoord(-2, 0), CreateCoord(0, -1), CreateCoord(2, 0), CreateCoord(0, 1) }; enum evilmove { left, up, right, down }; COORD temp; bool AllowRed = true; while (true) { size_t i = rand() % 4; int t[8] = { 0, 0, 0, 0, 0, -1, 1, 2 }; // used to add 5/8 probability if (iscared && ghostColor == Red) { i = i + 0; } while (i == avoidMove) //keep randomizing a choice until it is NOT avoidMove. i = rand() % 4; if (incage == true) // increase probability of moving up by 5/8 so ghosts are more prone to exit cage { i = 1; i += t[rand() % 8]; } if (incage && (ghostColor == Red || ghostColor == DarkYellow)) { do { if (iscared) break; do { i = 1; i += t[rand() % 8]; } while (i == avoidMove); temp = CreateCoord(ghostPos.X + evilmove[i].X, ghostPos.Y + evilmove[i].Y); if (incage == false && maze[temp.Y][temp.X] == MGD) continue; //If theyr out side the cage and go into gate: Continue. if ((ghostColor != Red || incage) && maze[temp.Y][temp.X] != MTL && maze[temp.Y][temp.X] != MUD && maze[temp.Y][temp.X] != MTR && maze[temp.Y][temp.X] != MLR && maze[temp.Y][temp.X] != MBL && maze[temp.Y][temp.X] != MBR) { if (maze[temp.Y][temp.X] == MGD) //If inside cage and move into gate. set data member to false. { incage = false; avoidMove = down; } break; } } while (true); } // Rudimentary position tracking algorithm based on quadrants //(Only applied this to two ghosts otherwise it gets impossible) else if ((!incage && ghostColor == Red)|| (!iscared && ghostColor == DarkYellow)) { COORD secondTemp[4] = { CreateCoord(ghostPos.X + evilmove[left].X, ghostPos.Y + evilmove[left].Y), CreateCoord(ghostPos.X + evilmove[up].X, ghostPos.Y + evilmove[up].Y), CreateCoord(ghostPos.X + evilmove[right].X, ghostPos.Y + evilmove[right].Y), CreateCoord(ghostPos.X + evilmove[down].X, ghostPos.Y + evilmove[down].Y) }; do { if (ghostPos.X > playerpos.X) /////////////////////////////////////////////////////////////PAC IS TO THE LEFT { if (ghostPos.Y > playerpos.Y) // IF PAC IS TO THE TOP LEFT { if (AiSmartMoveCheck(maze, secondTemp, avoidMove, up)) { temp = secondTemp[up]; avoidMove = down; break; // MOVE UP OR } if (AiSmartMoveCheck(maze, secondTemp, avoidMove, left)) //MOVE LEFT OR { temp = secondTemp[left]; avoidMove = right; break; } if (AiSmartMoveCheck(maze, secondTemp, avoidMove, down)) // MOVE DOWN ELSE { temp = secondTemp[down]; avoidMove = up; break; } else { temp = secondTemp[right]; avoidMove = left; break; } } else if (ghostPos.Y < playerpos.Y)//////PAC IS TO THE BOTTOM LEFT { if (AiSmartMoveCheck(maze, secondTemp, avoidMove, down)) { temp = secondTemp[down]; avoidMove = up; break; // MOVE DOWN OR } if (AiSmartMoveCheck(maze, secondTemp, avoidMove, left)) // MOVE LEFT OR { temp = secondTemp[left]; avoidMove = right; break; } if (ghostColor == Red) { if (AiSmartMoveCheck(maze, secondTemp, avoidMove, up)) { temp = secondTemp[up]; avoidMove = down; break; } else { temp = secondTemp[right]; avoidMove = left; break; } } if (ghostColor = DarkYellow) { if (AiSmartMoveCheck(maze, secondTemp, avoidMove, right)) { temp = secondTemp[right]; avoidMove = left; break; } else { temp = secondTemp[up]; avoidMove = down; break; } } } else if (ghostPos.Y == playerpos.Y)//PAC IS IN OUR ROW TO THE LEFT { if (AiSmartMoveCheck(maze, secondTemp, avoidMove, left)) //MOVE LEFT { temp = secondTemp[left]; avoidMove = right; break; } if (AiSmartMoveCheck(maze, secondTemp, avoidMove, up)) //MOVE UP { temp = secondTemp[up]; avoidMove = down; break; } if (AiSmartMoveCheck(maze, secondTemp, avoidMove, down)) //MOVE DOWN { temp = secondTemp[down]; avoidMove = up; break; } else { temp = secondTemp[right]; avoidMove = left; break; } } } if (ghostPos.X < playerpos.X) ////////////////////////////////////////////////////////PAC IS TO THE RIGHT { if (ghostPos.Y > playerpos.Y) // IF PAC IS TO THE TOP RIGHT { if (AiSmartMoveCheck(maze, secondTemp, avoidMove, up)) //MOVE UP { temp = secondTemp[up]; avoidMove = down; break; } if (AiSmartMoveCheck(maze, secondTemp, avoidMove, right)) //MOVE RIGHT { temp = secondTemp[right]; avoidMove = left; break; } if (AiSmartMoveCheck(maze, secondTemp, avoidMove, down)) //MOVE DOWN { temp = secondTemp[down]; avoidMove = up; break; } else { temp = secondTemp[left]; avoidMove = right; break; } } else if (ghostPos.Y < playerpos.Y)//PAC IS TO THE BOTTOM RIGHT { if (AiSmartMoveCheck(maze, secondTemp, avoidMove, down)) //MOVE DOWN { temp = secondTemp[down]; avoidMove = up; break; } if (AiSmartMoveCheck(maze, secondTemp, avoidMove, right)) //MOVE RIGHT { temp = secondTemp[right]; avoidMove = left; break; } if (AiSmartMoveCheck(maze, secondTemp, avoidMove, up)) //MOVE UP { temp = secondTemp[up]; avoidMove = down; break; } else { temp = secondTemp[left]; avoidMove = right; break; } } else if (ghostPos.Y == playerpos.Y)//PAC IS IN OUR ROW TO THE LEFT { if (AiSmartMoveCheck(maze, secondTemp, avoidMove, right)) //MOVE RIGHT { temp = secondTemp[right]; avoidMove = left; break; } if (AiSmartMoveCheck(maze, secondTemp, avoidMove, up)) //MOVE UP { temp = secondTemp[up]; avoidMove = down; break; } if (AiSmartMoveCheck(maze, secondTemp, avoidMove, down)) //MOVE DOWN { temp = secondTemp[down]; avoidMove = up; break; } else { temp = secondTemp[left]; avoidMove = right; break; } } } if (ghostPos.X == playerpos.X) ////////////////////////////////PAC SAME COLUMN AS US { if (ghostPos.Y > playerpos.Y) // IF PAC IS TO THE TOP RIGHT { if (AiSmartMoveCheck(maze, secondTemp, avoidMove, up)) //MOVE UP { temp = secondTemp[up]; avoidMove = down; break; } if (AiSmartMoveCheck(maze, secondTemp, avoidMove, right)) //MOVE RIGHT { temp = secondTemp[right]; avoidMove = left; break; } if (AiSmartMoveCheck(maze, secondTemp, avoidMove, left)) { //MOVE LEFT temp = secondTemp[left]; avoidMove = right; break;} else { temp = secondTemp[down]; avoidMove = up; break; } } else if (ghostPos.Y < playerpos.Y) //PAC IS BELOW US { if (AiSmartMoveCheck(maze, secondTemp, avoidMove, down)) //MOVE DOWN { temp = secondTemp[down]; avoidMove = up; break; } if (AiSmartMoveCheck(maze, secondTemp, avoidMove, right)) //MOVE RIGHT { temp = secondTemp[right]; avoidMove = left; break; } if (AiSmartMoveCheck(maze, secondTemp, avoidMove, left)) //MOVE LEFT { temp = secondTemp[left]; avoidMove = right; break; } else { temp = secondTemp[up]; avoidMove = down; break; } } } } while (true); } if ((ghostColor != Red && ghostColor != DarkYellow) || (ghostColor == Red && iscared) || (ghostColor == DarkYellow && iscared)) { //If the Ghost is neither Red or Yellow. OR if Red and Yellow are Scared. temp = CreateCoord(ghostPos.X + evilmove[i].X, ghostPos.Y + evilmove[i].Y); if (incage == false && maze[temp.Y][temp.X] == MGD) continue; //If theyr out side the cage and go into gate: Continue. if ((incage == true) && (maze[temp.Y][temp.X] == MGD)) //If inside cage and move into gate. set data member to false. incage = false; } if (CoordsEqual(temp, CreateCoord(WARP_RIGHT_X, WARP_Y))) // comparing position with warp points. temp = CreateCoord(WARP_LEFT_X, WARP_Y); else if (CoordsEqual(temp, CreateCoord(WARP_LEFT_X, WARP_Y))) temp = CreateCoord(WARP_RIGHT_X, WARP_Y); if (((ghostColor != DarkYellow && ghostColor != Red) || incage || iscared) && maze[temp.Y][temp.X] != MTL && maze[temp.Y][temp.X] != MUD && maze[temp.Y][temp.X] != MTR && maze[temp.Y][temp.X] != MLR && maze[temp.Y][temp.X] != MBL && maze[temp.Y][temp.X] != MBR) { if (maze[temp.Y][temp.X] == MGD) //Enter here if no collisions with boundaries. Then set avoidMove to the opposite of what was chosen. incage = false; if (i == left) avoidMove = right; else if (i == up) avoidMove = down; else if (i == right) avoidMove = left; else if (i == down) avoidMove = up; break; } if ((ghostColor == Red && !iscared) || (ghostColor == DarkYellow && !iscared)) break; } TryResetSpot(maze, ghostPtr); ghostPos = temp; //assign temp to be permanent position of ghost. Draw(); break; } while (true); } bool Ghost::AiSmartMoveCheck(char maze[MAZE_ROWS][MAZE_COLS], COORD secondTemp[], int &avoidMove, int directions) { // TEST IF MOVE direction IS POSSIBLE if (maze[secondTemp[directions].Y][secondTemp[directions].X] != MTL && maze[secondTemp[directions].Y][secondTemp[directions].X] != MUD && maze[secondTemp[directions].Y][secondTemp[directions].X] != MTR && maze[secondTemp[directions].Y][secondTemp[directions].X] != MLR && maze[secondTemp[directions].Y][secondTemp[directions].X] != MBL && maze[secondTemp[directions].Y][secondTemp[directions].X] != MBR && maze[secondTemp[directions].Y][secondTemp[directions].X] != MGD && avoidMove != directions) return true; else return false; } void Ghost::Draw() { if (iscared == false) { Console::SetCursorPosition(ghostPos.X, ghostPos.Y); Console::ForegroundColor(ghostColor); cout << MGH; Console::ResetColor(); } else if (iscared == true) { Console::SetCursorPosition(ghostPos.X, ghostPos.Y); if (counter % 2 == 1) { Console::ForegroundColor(Cyan); counter++; } else if (counter % 2 == 0) { Console::ForegroundColor(scared); counter++; } cout << MGH; Console::ResetColor(); } } void Ghost::Kill(char maze[MAZE_ROWS][MAZE_COLS]) { ClearSpot(maze); ghostPos = CreateCoord(31, 14); Draw(); if (ghostColor == Red) { incage = true; avoidMove = 3; } else { incage = true; avoidMove = -1; } } // Prevent clearing a ghost if more than one are close together void Ghost::TryResetSpot(char maze[MAZE_ROWS][MAZE_COLS], Ghost * ghostPtr[]) { int check = 0; for (size_t i = 0; i < NUM_GHOSTS; i++) { if (CoordsEqual(ghostPos, ghostPtr[i]->ghostPos)) check++; } if (check <= 1) ClearSpot(maze); } // Reset Ghost to cage void Ghost::Reset(char maze[MAZE_ROWS][MAZE_COLS], COORD resetTo) { avoidMove = -1; incage = true; if (ghostColor == Red) incage = false; ClearSpot(maze); ghostPos = resetTo; } // Repainting the spot where the ghost was void Ghost::ClearSpot(char maze[MAZE_ROWS][MAZE_COLS]) { Console::SetCursorPosition(ghostPos.X, ghostPos.Y); if (maze[ghostPos.Y][ghostPos.X] == MPP) Console::ForegroundColor(Green); else if (maze[ghostPos.Y][ghostPos.X] == MDOT) Console::ForegroundColor(Yellow); else if (maze[ghostPos.Y][ghostPos.X] == PAC) Console::ForegroundColor(Yellow); else if (maze[ghostPos.Y][ghostPos.X] == MGD) Console::ForegroundColor(Yellow); cout << maze[ghostPos.Y][ghostPos.X]; Console::ResetColor(); }
[ "o.alvarado89@gmail.com" ]
o.alvarado89@gmail.com
941d24fa84b198b0e98084df5f3a81ba3689fc42
c09d02c051122a45e0d497a155d139ef5e3d0cf7
/src/ui/TextureDisplay.cpp
2c6e3529141dd11fcecc88124c8f460293753aa6
[]
no_license
Maduiini/derelictfactory
2b0b01d3cfd60a04518417471a1fffe4860479a9
d29bae62cb9838a50714c6951fedb38595447103
refs/heads/master
2020-04-06T07:08:39.143552
2014-05-29T13:03:11
2014-05-29T13:03:11
null
0
0
null
null
null
null
UTF-8
C++
false
false
560
cpp
#include "TextureDisplay.h" #include "GUIRenderer.h" #include "../renderer/Texture.h" namespace der { TextureDisplay::TextureDisplay(Vector2 position, Vector2 size) : m_texture(nullptr) , m_position(position) , m_size(size) { m_render_cmds.push_back(new RenderTexture(m_position, m_size)); } TextureDisplay::~TextureDisplay() { } void TextureDisplay::set_texture(Texture *tex) { m_texture = tex; static_cast<RenderTexture*>(m_render_cmds[0])->set_texture(tex); } } // der
[ "maqqr@users.noreply.github.com" ]
maqqr@users.noreply.github.com
3dd4f6bb9dc964f29b5da66f37bc4da5dacc8dc6
0a273808cd3dbb146b08eb8136138e5db1295128
/Project/Part14_Query/Main.cpp
55d4df7d99a05d19e38ddc1f64220871df3527e5
[ "MIT" ]
permissive
tositeru/ImasaraDX11
055c961650c2b0e4fd34d85657ace0570c19cce6
91cc0e80f8459ac7b900f94708c672a2a13fca43
refs/heads/master
2021-01-21T13:04:57.044399
2016-05-21T13:35:48
2016-05-21T13:35:48
48,994,395
9
2
null
null
null
null
SHIFT_JIS
C++
false
false
1,591
cpp
//********************************************************* // The MIT License(MIT) // Copyright(c) 2016 tositeru // // 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 "Scene.h" int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE, LPSTR, int nCmdShow) { try { Scene sample(1280, 720, L"いまさらDirect3D11入門 Part14 クエリ"); return Win32Application::run(&sample, hInstance, nCmdShow); } catch (std::exception& e) { MessageBoxA(NULL, e.what(), "Error", MB_OK | MB_ICONERROR); } return 1; }
[ "uedariki1122@gmail.com" ]
uedariki1122@gmail.com
6e3099c482b3a314d8af95c195296e5410e2d4da
3bf6a0190731d34d697fa87bdfcd05267b0f57bd
/POKER_HOLDEM/POKER_HOLDEM/TURA.cpp
3846778566ee6fe2a8068e19ca4be1fff9158949
[ "MIT" ]
permissive
mkaspryk/poker-texas-holdem
7e76bc1a17477732e82605583870d23a14f78c65
e9f52c4f564f2389fdb466b99f968b1a6538d0d0
refs/heads/master
2022-12-10T11:06:56.364646
2020-09-08T19:28:42
2020-09-08T19:28:42
241,986,598
0
0
null
null
null
null
UTF-8
C++
false
false
3,456
cpp
#include "TURA.h" TURA::TURA() { ktoraTura = 1; } void TURA::tury_gry(GRACZ &PLAYER, GRACZ &AI, GRA_SFML &GRA, ROZDANIE_SFML &KARTY, SEMAFORY &SEM, RUNDA &R, STAWKI &S, UKLAD_KART &UKLAD, MYSZKA &myszka, SUWAK &slider1, ZEGAR &Z, sf::RenderWindow &app, int &kliknieta_strefa,STATYSTYKA &STA) { if (ktoraTura == 1) { KARTY.rysuj_karty_gracz(app); GRA.rysuj_karty_ukryte(app); } else if (ktoraTura == 2) { KARTY.rysuj_karty_gracz(app); GRA.rysuj_karty_ukryte(app); KARTY.rysuj_flop(app); } else if (ktoraTura == 3) { KARTY.rysuj_karty_gracz(app); GRA.rysuj_karty_ukryte(app); KARTY.rysuj_flop(app); KARTY.rysuj_turn(app); } else if (ktoraTura == 4) { KARTY.rysuj_karty_gracz(app); GRA.rysuj_karty_ukryte(app); KARTY.rysuj_flop(app); KARTY.rysuj_turn(app); KARTY.rysuj_river(app); } else if (ktoraTura == 5 ) { KARTY.rysuj_karty_gracz(app); KARTY.rysuj_karty_przeciwnik(app); KARTY.rysuj_flop(app); KARTY.rysuj_turn(app); KARTY.rysuj_river(app); if (SEM.a_x() == 3) { KARTY.a_gracz_karty(); KARTY.a_ai_karty(); w = UKLAD.sprawdzenie(KARTY.a_gracz_karty(), KARTY.a_ai_karty()); while (true) { app.clear(); GRA.rysuj_plansze(app, 1); R.rysuj_runde(app); if (PLAYER.a_dealer()) PLAYER.rysuj_dealer(app, 1); else AI.rysuj_dealer(app, 2); slider1.draw(app); PLAYER.rysuj_kwote(app); AI.rysuj_kwote(app); GRA.rysuj_ok(app); kliknieta_strefa = myszka.sprawdz_strefe(app); if (kliknieta_strefa == 9) { Z.czekaj(100000); if (w == 0) // podzial po rowno { PLAYER.dodaj_kwote(GRA.a_ile_dodane_player()); STA.push_back(GRA.a_ile_dodane_player()); AI.dodaj_kwote(GRA.a_ile_dodane_ai()); GRA.zeruj_pule(); } else if (w == 1) // gracz bierze pule { if (GRA.a_ile_dodane_player() > GRA.a_ile_dodane_ai()) { PLAYER.dodaj_kwote(GRA.a_ile_w_puli()); STA.push_back(GRA.a_ile_w_puli()); } else { PLAYER.dodaj_kwote(2 * GRA.a_ile_dodane_player()); STA.push_back(2 * GRA.a_ile_dodane_player()); AI.dodaj_kwote(GRA.a_ile_dodane_ai() - GRA.a_ile_dodane_player()); } GRA.zeruj_pule(); } else if (w == 2) // ai bierze pule { if (GRA.a_ile_dodane_ai() > GRA.a_ile_dodane_player()) { AI.dodaj_kwote(GRA.a_ile_w_puli()); STA.push_back(0); } else { AI.dodaj_kwote(2 * GRA.a_ile_dodane_ai()); PLAYER.dodaj_kwote(GRA.a_ile_dodane_player()-GRA.a_ile_dodane_ai()); STA.push_back(GRA.a_ile_dodane_player() - GRA.a_ile_dodane_ai()); } GRA.zeruj_pule(); } PLAYER.zmien_dealera(); SEM = 0; AI.zmien_dealera(); R.zwieksz_runde(); if (R.a_ktoraRunda() % 4 == 0) S.zwiekszanie(); break; } if (w == 0) { PLAYER.rysuj_remis(app); } else if (w == 1) { PLAYER.rysuj_wygrana(app); } else if (w == 2) { PLAYER.rysuj_przegrana(app); } KARTY.rysuj_karty_gracz(app); KARTY.rysuj_karty_przeciwnik(app); KARTY.rysuj_flop(app); KARTY.rysuj_turn(app); KARTY.rysuj_river(app); app.display(); } ktoraTura = 1; SEM.zeruj_x(); } } } void TURA::kolejna_tura() { ktoraTura++; } void TURA::resetuj_ture() { ktoraTura = 1; } int TURA::a_tura() { return ktoraTura; } TURA::~TURA() { }
[ "mkaspryk09@outlook.com" ]
mkaspryk09@outlook.com
941879aabfe8754f5d3efe107d0b5a55889bb7d3
9cd9cc3f7c6b5ef15a3866b4886d3ad50ae1a8f2
/include/code/parser/executive/cmd/base/cmd_base.hpp
3c605c43f4efb324ccd8a807ea3082ea63818ea6
[]
no_license
izirayd/pel
7744b311af94e4849f9892a0225a212513450da0
38bd80bb1c2b8076ee932dd7eda8615859c18cf4
refs/heads/master
2023-08-21T20:59:08.869677
2021-10-11T03:02:21
2021-10-11T03:02:21
296,751,157
2
0
null
null
null
null
UTF-8
C++
false
false
373
hpp
#pragma once #include <stdint.h> #define show_logs if (is_render_tree) #define show_result if (is_render_tree) #define show_tree if (is_render_tree) enum class status_find_t : int8_t { unknow, success, failed }; class status_process_t { public: status_find_t status_find = status_find_t::unknow; bool is_status_exit = false; bool is_status_break = false; };
[ "izirayd@mail.ru" ]
izirayd@mail.ru
92777c395008fcba4ac1cc1110ee059dbc4eff34
ae0bccab332f80eb8a402316b3fa5470b738cdbc
/src/backend.cpp
0cadf5b7596e8085220af3e076a30a50bdf633d9
[]
no_license
mfkiwl/ARTSLAM
d760d570908a510ce175e166efe1ab88a9db0e3d
c9187563441db41fd39ccef62b430ac05d9efc98
refs/heads/master
2023-03-05T00:45:16.996544
2021-02-24T12:51:42
2021-02-24T12:51:42
null
0
0
null
null
null
null
UTF-8
C++
false
false
26,655
cpp
/** @file backend.cpp * @brief Definition of class Backend * @author Matteo Frosi */ #include <backend.h> #include <loop.h> #include <cmath> #include <chrono> #include <g2o/edge_se3_plane.hpp> #include <g2o/edge_se3_priorvec.hpp> #include <g2o/edge_se3_priorquat.hpp> #include <g2o/edge_se3_priorxy.hpp> #include <g2o/edge_se3_priorxyz.hpp> #include <GeographicLib/UTMUPS.hpp> #include <bin_io.h> #include <boost/format.hpp> /** * @brief Class constructor. */ Backend::Backend() { BackendConfig default_config; configure_backend(&default_config); this->trans_odom2map = Eigen::Matrix4f::Identity(); this->anchor_node = nullptr; this->anchor_edge = nullptr; this->floor_plane_node = nullptr; this->insertion_dqueue = new DispatchQueue("backend insertion queue", 1); this->optimization_dqueue = new DispatchQueue("optimization queue", 1); } Backend::Backend(const BackendConfig* config_ptr) { configure_backend(config_ptr); this->anchor_node = nullptr; this->anchor_edge = nullptr; this->floor_plane_node = nullptr; this->trans_odom2map = Eigen::Matrix4f::Identity(); this->insertion_dqueue = new DispatchQueue("backend insertion queue", 1); this->optimization_dqueue = new DispatchQueue("optimization queue", 1); } /** * @brief Class destructor. */ Backend::~Backend() { this->graph_handler->save("/home/matteo/Desktop/grafo_test.g2o"); delete this->insertion_dqueue; delete this->optimization_dqueue; } void Backend::configure_backend(const BackendConfig *config_ptr) { this->max_unopt_keyframes = config_ptr->max_unopt_keyframes; this->optimizer_iters = config_ptr->optimizer_iters; this->use_anchor_node = config_ptr->use_anchor_node; this->anchor_node_stddev = config_ptr->anchor_node_stddev; this->fix_first_node_adaptive = config_ptr->fix_first_node_adaptive; this->fix_first_keyframe_node = config_ptr->fix_first_keyframe_node; this->odometry_edge_robust_kernel = config_ptr->odometry_edge_robust_kernel; this->odometry_edge_robust_kernel_size = config_ptr->odometry_edge_robust_kernel_size; this->floor_edge_stddev = config_ptr->floor_edge_stddev; this->floor_edge_robust_kernel = config_ptr->floor_edge_robust_kernel; this->floor_edge_robust_kernel_size = config_ptr->odometry_edge_robust_kernel_size; this->is_imu_accel_enabled = config_ptr->is_imu_accel_enabled; this->is_imu_orien_enabled = config_ptr->is_imu_orien_enabled; this->imu_to_velo_rot = config_ptr->imu_to_velo_rot; this->imu_accel_edge_stddev = config_ptr->imu_accel_edge_stddev; this->imu_orien_edge_stddev = config_ptr->imu_orien_edge_stddev; this->imu_accel_edge_robust_kernel = config_ptr->imu_accel_edge_robust_kernel; this->imu_accel_edge_robust_kernel_size = config_ptr->imu_accel_edge_robust_kernel_size; this->imu_orien_edge_robust_kernel = config_ptr->imu_orien_edge_robust_kernel; this->imu_orien_edge_robust_kernel_size = config_ptr->imu_orien_edge_robust_kernel_size; this->is_gps_enabled = config_ptr->is_gps_enabled; this->gps_to_velo_trans = config_ptr->gps_to_velo_trans; this->gps_xy_edge_stddev = config_ptr->gps_xy_edge_stddev; this->gps_z_edge_stddev = config_ptr->gps_z_edge_stddev; this->gps_edge_robust_kernel = config_ptr->gps_edge_robust_kernel; this->gps_edge_robust_kernel_size = config_ptr->gps_edge_robust_kernel_size; this->loop_edge_robust_kernel = config_ptr->loop_edge_robust_kernel; this->loop_edge_robust_kernel_size = config_ptr->loop_edge_robust_kernel_size; } /** * @brief Sets the pose graph handler. */ void Backend::set_graph_handler(GraphHandler *const graph_handler_ptr) { this->graph_handler = graph_handler_ptr; } /** * @brief Sets the information matrix calculator. */ void Backend::set_info_matrix_calculator(InfoMatrixCalculator *const info_matrix_calculator_ptr) { this->info_matrix_calculator = info_matrix_calculator_ptr; } /** * @brief Sets the loop detector. */ void Backend::set_loop_detector(LoopDetector *const loop_detector_ptr) { this->loop_detector = loop_detector_ptr; } /* ---------------------------------------- */ /* Signals that a new keyframe has arrived. */ /* ---------------------------------------- */ void Backend::update(const Keyframe::Ptr& keyframe) { dispatch_keyframe_insertion(keyframe); } /* --------------------------------------------------------- */ /* Signals that a new set of floor coefficients has arrived. */ /* --------------------------------------------------------- */ void Backend::update(const FloorCoeffsMSG::ConstPtr& floor_coeffs_msg_constptr) { dispatch_floor_coeffs_msg_insertion(floor_coeffs_msg_constptr); } /* -------------------------------------- */ /* Signals that new IMU data has arrived. */ /* -------------------------------------- */ void Backend::update(const ImuMSG::ConstPtr &imu_msg_constptr) { dispatch_imu_msg_insertion(imu_msg_constptr); } /* -------------------------------------- */ /* Signals that new GPS data has arrived. */ /* -------------------------------------- */ void Backend::update(const GeoPointStampedMSG::ConstPtr& gps_msg_constptr) { dispatch_gps_msg_insertion(gps_msg_constptr); } void Backend::optimize() { std::lock_guard<std::mutex> lock(this->backend_thread_mutex); flush_keyframe_queue(); flush_floor_coeffs_msg_queue(); flush_imu_msg_queue(); flush_gps_msg_queue(); auto start = std::chrono::high_resolution_clock::now(); loop_detection(); auto stop = std::chrono::high_resolution_clock::now(); auto duration = std::chrono::duration_cast<std::chrono::microseconds>(stop - start); std::cout << "OPTIMIZATION: " << duration.count() << "\n"; // let the first node move freely around the origin if(this->anchor_node && this->fix_first_node_adaptive) { Eigen::Isometry3d anchor_target = static_cast<g2o::VertexSE3*>(this->anchor_edge->vertices()[1])->estimate(); this->anchor_node->setEstimate(anchor_target); } // optimize graph this->graph_handler->optimize(this->optimizer_iters); } void Backend::loop_detection() { std::vector<Loop::Ptr> loops = this->loop_detector->detect(this->keyframes, this->new_keyframes); std::ofstream outp; outp.open("/home/matteo/Desktop/loops.txt", std::ios_base::app); for(const Loop::Ptr& loop : loops) { outp << loop->keyframe_1->cloud->header.seq << " - " << loop->keyframe_2->cloud->header.seq << std::endl; outp << loop->relative_pose << std::endl << std::endl; Eigen::Isometry3d relative_pose(loop->relative_pose.cast<double>()); Eigen::MatrixXd info_matrix = this->info_matrix_calculator->calculate_info_matrix(loop->keyframe_1->cloud, loop->keyframe_2->cloud, relative_pose); g2o::EdgeSE3* edge = this->graph_handler->add_se3_edge(loop->keyframe_1->node, loop->keyframe_2->node, relative_pose, info_matrix); this->graph_handler->add_robust_kernel(edge, this->loop_edge_robust_kernel, this->loop_edge_robust_kernel_size); } std::copy(this->new_keyframes.begin(), this->new_keyframes.end(), std::back_inserter(this->keyframes)); this->new_keyframes.clear(); } /* --------------------------------------- */ /* Adds keyframes poses to the pose graph. */ /* --------------------------------------- */ void Backend::flush_keyframe_queue() { std::lock_guard<std::mutex> lock(this->keyframe_queue_mutex); if(this->keyframe_queue.empty()) { return; } // odom2map transformation this->trans_odom2map_mutex.lock(); Eigen::Isometry3d odom2map(this->trans_odom2map.cast<double>()); this->trans_odom2map_mutex.unlock(); for(int i = 0; i < this->keyframe_queue.size(); i++) { Keyframe::Ptr keyframe = this->keyframe_queue[i]; this->new_keyframes.emplace_back(keyframe); // add pose node Eigen::Isometry3d odom = odom2map * keyframe->odom; keyframe->node = this->graph_handler->add_se3_node(odom); this->keyframe_hash[keyframe->timestamp] = keyframe; if(this->keyframes.empty() && this->new_keyframes.size() == 1) { if(this->use_anchor_node) { Eigen::MatrixXd info_matrix = Eigen::MatrixXd::Identity(6,6); for(int j = 0; j < 6; j++) { double stddev = 1.0; if(this->anchor_node_stddev.size() == 6) stddev = this->anchor_node_stddev[j]; info_matrix(j,j) = 1.0 / stddev; } this->anchor_node = this->graph_handler->add_se3_node(Eigen::Isometry3d::Identity()); this->anchor_node->setFixed(true); this->anchor_edge = this->graph_handler->add_se3_edge(this->anchor_node, keyframe->node, Eigen::Isometry3d::Identity(), info_matrix); } if(this->fix_first_keyframe_node) { keyframe->node->setFixed(true); } } if(i == 0 && this->keyframes.empty()) { continue; } const Keyframe::Ptr prev_keyframe = i == 0 ? this->keyframes.back() : this->keyframe_queue[i - 1]; Eigen::Isometry3d relative_pose = keyframe->odom.inverse() * prev_keyframe->odom; Eigen::MatrixXd info_matrix = this->info_matrix_calculator->calculate_info_matrix(keyframe->fitness_score); //Eigen::MatrixXd info_matrix = this->info_matrix_calculator->calculate_info_matrix(keyframe->cloud, prev_keyframe->cloud, relative_pose); g2o::EdgeSE3* edge = this->graph_handler->add_se3_edge(keyframe->node, prev_keyframe->node, relative_pose, info_matrix); this->graph_handler->add_robust_kernel(edge, this->odometry_edge_robust_kernel, this->odometry_edge_robust_kernel_size); } this->keyframe_queue.clear(); } /* ------------------------------------------------------------------------------------- */ /* Associates floor coefficients to the keyframes, adding constraints in the pose graph. */ /* ------------------------------------------------------------------------------------- */ void Backend::flush_floor_coeffs_msg_queue() { std::lock_guard<std::mutex> lock(this->floor_coeffs_msg_queue_mutex); // should never happen in the current implementation, maybe some one would like to parallelize the flush operations... if(this->keyframes.empty() || this->floor_coeffs_msg_queue.empty()) { return; } if(!this->floor_plane_node) { this->floor_plane_node = this->graph_handler->add_plane_node(Eigen::Vector4d(0.0,0.0,1.0,0.0)); this->floor_plane_node->setFixed(true); } const uint64_t latest_keyframe_timestamp = this->keyframes.back()->timestamp; for(const FloorCoeffsMSG::ConstPtr& floor_coeffs_msg : this->floor_coeffs_msg_queue) { // under the assumption that floor coeffs are ordered if(floor_coeffs_msg->header.timestamp > latest_keyframe_timestamp) { break; } auto found = this->keyframe_hash.find(floor_coeffs_msg->header.timestamp); if(found == this->keyframe_hash.end()) { continue; } Keyframe::Ptr keyframe = found->second; Eigen::Vector4d coeffs(floor_coeffs_msg->floor_coeffs); Eigen::Matrix3d info_matrix = Eigen::Matrix3d::Identity() / this->floor_edge_stddev; g2o::EdgeSE3Plane* edge = this->graph_handler->add_se3_plane_edge(keyframe->node, this->floor_plane_node, coeffs, info_matrix); this->graph_handler->add_robust_kernel(edge, this->floor_edge_robust_kernel, this->floor_edge_robust_kernel_size); keyframe->floor_coeffs = coeffs; } auto remove_location = std::upper_bound(this->floor_coeffs_msg_queue.begin(), this->floor_coeffs_msg_queue.end(), latest_keyframe_timestamp, [=](const uint64_t& timestamp, const FloorCoeffsMSG::ConstPtr& coeffs) {return timestamp < coeffs->header.timestamp;}); this->floor_coeffs_msg_queue.erase(this->floor_coeffs_msg_queue.begin(), remove_location); } /* -------------------------------------------------------------------------- */ /* Associates IMU data to the keyframes, adding constraints in the pose graph. */ /* -------------------------------------------------------------------------- */ void Backend::flush_imu_msg_queue() { std::lock_guard<std::mutex> lock(this->imu_msg_queue_mutex); if(!this->is_imu_accel_enabled && !this->is_imu_orien_enabled) { return; } if(this->keyframes.empty() || this->imu_msg_queue.empty()) { return; } auto imu_cursor = this->imu_msg_queue.begin(); for(auto& keyframe : this->keyframes) { // if the keyframe timestamp is greater than the timestamp of the last received IMU data, stop the data association if(keyframe->timestamp > this->imu_msg_queue.back()->header.timestamp) { break; } if(keyframe->timestamp > (*imu_cursor)->header.timestamp || keyframe->acceleration) { continue; } // find the closest IMU data to the keyframe auto closest_imu = imu_cursor; for(auto imu = imu_cursor; imu != this->imu_msg_queue.end(); imu++) { uint64_t dt = ((*closest_imu)->header.timestamp > keyframe->timestamp) ? (*closest_imu)->header.timestamp - keyframe->timestamp : keyframe->timestamp - (*closest_imu)->header.timestamp; uint64_t dt2 = ((*imu)->header.timestamp - keyframe->timestamp) ? (*imu)->header.timestamp - keyframe->timestamp : keyframe->timestamp - (*imu)->header.timestamp; if(dt < dt2) { break; } closest_imu = imu; } imu_cursor = closest_imu; uint64_t dt = ((*closest_imu)->header.timestamp > keyframe->timestamp) ? (*closest_imu)->header.timestamp - keyframe->timestamp : keyframe->timestamp - (*closest_imu)->header.timestamp; if(dt > 0.2*1e9) { continue; } if((*closest_imu)->has_linear_acceleration) { const auto &imu_accel = (*closest_imu)->linear_acceleration; keyframe->acceleration = this->imu_to_velo_rot * imu_accel; if (this->is_imu_accel_enabled) { Eigen::MatrixXd info_matrix = Eigen::MatrixXd::Identity(3, 3) / this->imu_accel_edge_stddev; g2o::OptimizableGraph::Edge *edge = this->graph_handler->add_se3_prior_vec_edge(keyframe->node, -Eigen::Vector3d::UnitZ(), *keyframe->acceleration, info_matrix); this->graph_handler->add_robust_kernel(edge, this->imu_accel_edge_robust_kernel, this->imu_accel_edge_robust_kernel_size); } } if((*closest_imu)->has_orientation) { const auto &imu_orien = (*closest_imu)->orientation; keyframe->orientation = rot_to_quat(this->imu_to_velo_rot) * imu_orien; if (keyframe->orientation->w() < 0.0) { keyframe->orientation->coeffs() = -keyframe->orientation->coeffs(); } if (this->is_imu_orien_enabled) { Eigen::MatrixXd info_matrix = Eigen::MatrixXd::Identity(3, 3) / this->imu_orien_edge_stddev; auto *edge = this->graph_handler->add_se3_prior_quat_edge(keyframe->node, *keyframe->orientation, info_matrix); this->graph_handler->add_robust_kernel(edge, this->imu_orien_edge_robust_kernel, this->imu_orien_edge_robust_kernel_size); } } } auto remove_loc = std::upper_bound(this->imu_msg_queue.begin(), this->imu_msg_queue.end(), this->keyframes.back()->timestamp, [=](uint64_t timestamp, const ImuMSG::ConstPtr& imu){return timestamp < imu->header.timestamp;}); this->imu_msg_queue.erase(this->imu_msg_queue.begin(), remove_loc); } /* -------------------------------------------------------------------------- */ /* Associates GPS data to the keyframes, adding constraints in the pose graph. */ /* -------------------------------------------------------------------------- */ void Backend::flush_gps_msg_queue() { std::lock_guard<std::mutex> lock(this->gps_msg_queue_mutex); if(!this->is_gps_enabled) { return; } if(this->keyframes.empty() || this->gps_msg_queue.empty()) { return; } auto gps_cursor = this->gps_msg_queue.begin(); for(auto& keyframe : this->keyframes) { // if the keyframe timestamp is greater than the timestamp of the last received GPS data, stop the data association if (keyframe->timestamp > this->gps_msg_queue.back()->header.timestamp) { break; } if (keyframe->timestamp > (*gps_cursor)->header.timestamp || keyframe->acceleration) { continue; } // find the closest IMU data to the keyframe auto closest_gps = gps_cursor; for (auto gps = gps_cursor; gps != this->gps_msg_queue.end(); gps++) { uint64_t dt = ((*closest_gps)->header.timestamp > keyframe->timestamp) ? (*closest_gps)->header.timestamp - keyframe->timestamp : keyframe->timestamp - (*closest_gps)->header.timestamp; uint64_t dt2 = ((*gps)->header.timestamp - keyframe->timestamp) ? (*gps)->header.timestamp - keyframe->timestamp : keyframe->timestamp - (*gps)->header.timestamp; if (dt < dt2) { break; } closest_gps = gps; } gps_cursor = closest_gps; uint64_t dt = ((*closest_gps)->header.timestamp > keyframe->timestamp) ? (*closest_gps)->header.timestamp - keyframe->timestamp : keyframe->timestamp - (*closest_gps)->header.timestamp; if (dt > 0.2 * 1e9) { continue; } int zone; bool nortph; double easting, northing; GeographicLib::UTMUPS::Forward((*gps_cursor)->lat, (*gps_cursor)->lon, zone, nortph, easting, northing); Eigen::Vector3d xyz(easting, northing, (*gps_cursor)->alt); xyz += this->gps_to_velo_trans; if(this->first_utm) { this->first_utm = xyz; } xyz -= *(this->first_utm); keyframe->utm_coords = xyz; g2o::OptimizableGraph::Edge* edge; if(std::isnan(xyz.z())) { Eigen::Matrix2d info_matrix = Eigen::Matrix2d::Identity() / this->gps_xy_edge_stddev; edge = this->graph_handler->add_se3_prior_xy_edge(keyframe->node, xyz.head(2), info_matrix); } else { Eigen::Matrix3d info_matrix = Eigen::Matrix3d::Identity(); info_matrix.block<2,2>(0,0) /= this->gps_xy_edge_stddev; info_matrix(2,2) /= this->gps_z_edge_stddev; edge = this->graph_handler->add_se3_prior_xyz_edge(keyframe->node, xyz, info_matrix); } this->graph_handler->add_robust_kernel(edge, this->gps_edge_robust_kernel, this->gps_edge_robust_kernel_size); } auto remove_loc = std::upper_bound(this->gps_msg_queue.begin(), this->gps_msg_queue.end(), this->keyframes.back()->timestamp, [=](uint64_t timestamp, const GeoPointStampedMSG::ConstPtr& gps){return timestamp < gps->header.timestamp;}); this->gps_msg_queue.erase(this->gps_msg_queue.begin(), remove_loc); } /* ------------------------------- */ /* Adds a keyframe to the backend. */ /* ------------------------------- */ void Backend::insert_keyframe(const Keyframe::Ptr& keyframe) { std::lock_guard<std::mutex> lock(this->keyframe_queue_mutex); this->keyframe_queue.emplace_back(keyframe); if(this->keyframe_queue.size() >= this->max_unopt_keyframes) { this->optimization_dqueue->dispatch([this]{this->optimize();}); } } /* ------------------------------------------------ */ /* Adds computed floor coefficients to the backend. */ /* ------------------------------------------------ */ void Backend::insert_floor_coeffs_msg(const FloorCoeffsMSG::ConstPtr& floor_coeffs_msg_constptr) { std::lock_guard<std::mutex> lock(this->floor_coeffs_msg_queue_mutex); this->floor_coeffs_msg_queue.emplace_back(floor_coeffs_msg_constptr); } /* ----------------------------- */ /* Adds IMU data to the backend. */ /* ----------------------------- */ void Backend::insert_imu_msg(const ImuMSG::ConstPtr &imu_msg_constptr) { std::lock_guard<std::mutex> lock(this->imu_msg_queue_mutex); if(!this->is_imu_accel_enabled && !this->is_imu_orien_enabled) { return; } this->imu_msg_queue.emplace_back(imu_msg_constptr); } /* ----------------------------- */ /* Adds GPS data to the backend. */ /* ----------------------------- */ void Backend::insert_gps_msg(const GeoPointStampedMSG::ConstPtr& gps_msg_constptr) { std::lock_guard<std::mutex> lock(this->gps_msg_queue_mutex); if(!this->is_gps_enabled) { return; } this->gps_msg_queue.emplace_back(gps_msg_constptr); } /* --------------------------------------------------------------------------------------------------- */ /* Tells the backend that a keyframe has arrived and it is waiting to be integrated in the pose graph. */ /* --------------------------------------------------------------------------------------------------- */ void Backend::dispatch_keyframe_insertion(const Keyframe::Ptr& keyframe) { this->insertion_dqueue->dispatch([this, keyframe]{insert_keyframe(keyframe);}); } /* -------------------------------------------------------------------------------------------------------------------- */ /* Tells the backend that a set of floor coefficients has arrived and it is waiting to be integrated in the pose graph. */ /* -------------------------------------------------------------------------------------------------------------------- */ void Backend::dispatch_floor_coeffs_msg_insertion(const FloorCoeffsMSG::ConstPtr& floor_coeffs_msg_constptr) { this->insertion_dqueue->dispatch([this, floor_coeffs_msg_constptr]{insert_floor_coeffs_msg(floor_coeffs_msg_constptr);}); } /* ----------------------------------------------------------------------------------------------------- */ /* Tells the backend that new IMU data has arrived and it is waiting to be integrated in the pose graph. */ /* ----------------------------------------------------------------------------------------------------- */ void Backend::dispatch_imu_msg_insertion(const ImuMSG::ConstPtr& imu_msg_constptr) { this->insertion_dqueue->dispatch([this, imu_msg_constptr]{insert_imu_msg(imu_msg_constptr);}); } /* ----------------------------------------------------------------------------------------------------- */ /* Tells the backend that new GPS data has arrived and it is waiting to be integrated in the pose graph. */ /* ----------------------------------------------------------------------------------------------------- */ void Backend::dispatch_gps_msg_insertion(const GeoPointStampedMSG::ConstPtr& gps_msg_constptr) { this->insertion_dqueue->dispatch([this, gps_msg_constptr]{insert_gps_msg(gps_msg_constptr);}); } /* -------------------------------------------------- */ /* Converts a rotation matrix to its quaternion form. */ /* -------------------------------------------------- */ Eigen::Quaterniond Backend::rot_to_quat(const Eigen::Matrix3d& rot) { double r11 = rot(0,0); double r12 = rot(0,1); double r13 = rot(0,2); double r21 = rot(1,0); double r22 = rot(1,1); double r23 = rot(1,2); double r31 = rot(2,0); double r32 = rot(2,1); double r33 = rot(2,2); double q0 = (r11 + r22 + r33 + 1.0) / 4.0; double q1 = (r11 - r22 - r33 + 1.0) / 4.0; double q2 = (-r11 + r22 - r33 + 1.0) / 4.0; double q3 = (-r11 -r22 +r33 +1.0) / 4.0; if(q0 < 0.0) q0 = 0.0; if(q1 < 0.0) q1 = 0.0; if(q2 < 0.0) q2 = 0.0; if(q3 < 0.0) q3 = 0.0; q0 = std::sqrt(q0); q1 = std::sqrt(q1); q2 = std::sqrt(q2); q3 = std::sqrt(q3); if(q0 >= q1 && q0 >= q2 && q0 >= q3) { q0 *= 1.0; q1 *= r32 >= r23 ? 1.0 : -1.0; q2 *= r13 >= r31 ? 1.0 : -1.0; q3 *= r21 >= r12 ? 1.0 : -1.0; } else if(q1 >= q0 && q1 >= q2 && q1 >= q3) { q0 *= r32 >= r23 ? 1.0 : -1.0; q1 *= 1.0; q2 *= (r21 + r12) >= 0 ? 1.0 : -1.0; q3 *= (r13 + r31) >= 0 ? 1.0 : -1.0; } else if(q2 >= q0 && q2 >= q1 && q2 >= q3) { q0 *= r13 >= r31 ? 1.0 : -1.0; q1 *= (r21 + r12) >= 0 ? 1.0 : -1.0; q2 *= 1.0; q3 *= (r32 + r23) >= 0 ? 1.0 : -1.0; } else if(q3 >= q0 && q3 >= q1 && q3 >= q2) { q0 *= r21 >= r12 ? 1.0 : -1.0; q1 *= (r13 + r31) >= 0 ? 1.0 : -1.0; q2 *= (r32 + r23) >= 0 ? 1.0 : -1.0; q3 *= 1.0; } double norm = std::sqrt(q0*q0 + q1*q1 + q2*q2 + q3*q3); q0 /= norm; q1 /= norm; q2 /= norm; q3 /= norm; Eigen::Quaterniond quaternion(q0,q1,q2,q3); return quaternion; } void Backend::save_data(const std::string& path) { std::lock_guard<std::mutex> lock(this->backend_thread_mutex); if(!boost::filesystem::is_directory(path)) { boost::filesystem::create_directory(path); } this->graph_handler->save(path + "/graph.g2o"); for(int i = 0; i < this->keyframes.size(); i++) { std::stringstream sst; sst << boost::format("%s/%06d") % path % i; this->keyframes[i]->save_to_dir(sst.str()); } if(this->first_utm) { std::ofstream first_utm_ofs(path + "/first_utm"); first_utm_ofs << *first_utm << std::endl; } std::ofstream ofs(path + "/special_nodes.csv"); ofs << "anchor_node " << (this->anchor_node == nullptr ? -1 : this->anchor_node->id()) << std::endl; ofs << "anchor_edge " << (this->anchor_edge == nullptr ? -1 : this->anchor_edge->id()) << std::endl; ofs << "floor_node " << (this->floor_plane_node == nullptr ? -1 : this->floor_plane_node->id()) << std::endl; std::ofstream kid(path + "/key_ids.txt"); for(auto & keyframe : this->keyframes) { kid << keyframe->cloud->header.seq << std::endl; } }
[ "matteo1.frosi@mail.polimi.it" ]
matteo1.frosi@mail.polimi.it
af39992a94ab576712fa30abde716d41741a7940
da9bca392e877999877f4d599060537a7e9c9c1e
/code/foundation/util/typepunning.h
54eac3c3335493dd1bea6b395840cb3e566331b1
[ "LicenseRef-scancode-unknown-license-reference", "BSD-2-Clause" ]
permissive
Aggroo/nebula-trifid
70ac63d12dcafa6772824d8173344ce4658d2bbc
51ecc9ac5508a8a1bf09a9063888a80c9e2785f0
refs/heads/master
2021-01-17T11:03:12.438183
2016-03-03T22:38:19
2016-03-03T22:38:19
null
0
0
null
null
null
null
UTF-8
C++
false
false
991
h
#pragma once //------------------------------------------------------------------------------ /** @function TypePunning Function to implement type-punning, explanation here: http://mail-index.netbsd.org/tech-kern/2003/08/11/0001.html http://gcc.gnu.org/onlinedocs/gcc-4.1.1/gcc/Optimize-Options.html#Optimize-Options (C) 2009 Radon Labs GmbH (C) 2013-2015 Individual contributors, see AUTHORS file */ #include "core/types.h" //------------------------------------------------------------------------------ namespace Util { template<typename A, typename B> A& TypePunning(B &v) { union { A *a; B *b; } pun; pun.b = &v; return *pun.a; } template<typename A, typename B> const A& TypePunning(const B &v) { union { const A *a; const B *b; } pun; pun.b = &v; return *pun.a; } } // namespace Util //------------------------------------------------------------------------------
[ "johannes@gscept.com" ]
johannes@gscept.com
5ae3c640dfa0633d176e320a9e7a95c86f3bd37b
c0ad1aed902750ea249d36a4612a36f79f7eec7e
/第四周实验课实验/200317/200317.cpp
9b91f735bb5b44fc0a186a6f81314929745c7755
[]
no_license
Ann-Ann-Mo/VC-Mo
4dd039f22242442fd89b15d34d0e4a8390cacf8f
b053986fff46e22c55953067cf47cf31dc7db218
refs/heads/master
2022-11-07T23:40:31.931209
2020-05-11T10:41:31
2020-05-11T10:41:31
262,522,939
0
0
null
null
null
null
GB18030
C++
false
false
4,481
cpp
// 200317.cpp : 定义应用程序的类行为。 // #include "stdafx.h" #include "afxwinappex.h" #include "afxdialogex.h" #include "200317.h" #include "MainFrm.h" #include "200317Doc.h" #include "200317View.h" #ifdef _DEBUG #define new DEBUG_NEW #endif // CMy200317App BEGIN_MESSAGE_MAP(CMy200317App, CWinAppEx) ON_COMMAND(ID_APP_ABOUT, &CMy200317App::OnAppAbout) // 基于文件的标准文档命令 ON_COMMAND(ID_FILE_NEW, &CWinAppEx::OnFileNew) ON_COMMAND(ID_FILE_OPEN, &CWinAppEx::OnFileOpen) END_MESSAGE_MAP() // CMy200317App 构造 CMy200317App::CMy200317App() { // 支持重新启动管理器 m_dwRestartManagerSupportFlags = AFX_RESTART_MANAGER_SUPPORT_ALL_ASPECTS; #ifdef _MANAGED // 如果应用程序是利用公共语言运行时支持(/clr)构建的,则: // 1) 必须有此附加设置,“重新启动管理器”支持才能正常工作。 // 2) 在您的项目中,您必须按照生成顺序向 System.Windows.Forms 添加引用。 System::Windows::Forms::Application::SetUnhandledExceptionMode(System::Windows::Forms::UnhandledExceptionMode::ThrowException); #endif // TODO: 将以下应用程序 ID 字符串替换为唯一的 ID 字符串;建议的字符串格式 //为 CompanyName.ProductName.SubProduct.VersionInformation SetAppID(_T("200317.AppID.NoVersion")); // TODO: 在此处添加构造代码, // 将所有重要的初始化放置在 InitInstance 中 } // 唯一的一个 CMy200317App 对象 CMy200317App theApp; // CMy200317App 初始化 BOOL CMy200317App::InitInstance() { // 如果一个运行在 Windows XP 上的应用程序清单指定要 // 使用 ComCtl32.dll 版本 6 或更高版本来启用可视化方式, //则需要 InitCommonControlsEx()。 否则,将无法创建窗口。 INITCOMMONCONTROLSEX InitCtrls; InitCtrls.dwSize = sizeof(InitCtrls); // 将它设置为包括所有要在应用程序中使用的 // 公共控件类。 InitCtrls.dwICC = ICC_WIN95_CLASSES; InitCommonControlsEx(&InitCtrls); CWinAppEx::InitInstance(); // 初始化 OLE 库 if (!AfxOleInit()) { AfxMessageBox(IDP_OLE_INIT_FAILED); return FALSE; } AfxEnableControlContainer(); EnableTaskbarInteraction(FALSE); // 使用 RichEdit 控件需要 AfxInitRichEdit2() // AfxInitRichEdit2(); // 标准初始化 // 如果未使用这些功能并希望减小 // 最终可执行文件的大小,则应移除下列 // 不需要的特定初始化例程 // 更改用于存储设置的注册表项 // TODO: 应适当修改该字符串, // 例如修改为公司或组织名 SetRegistryKey(_T("应用程序向导生成的本地应用程序")); LoadStdProfileSettings(4); // 加载标准 INI 文件选项(包括 MRU) // 注册应用程序的文档模板。 文档模板 // 将用作文档、框架窗口和视图之间的连接 CSingleDocTemplate* pDocTemplate; pDocTemplate = new CSingleDocTemplate( IDR_MAINFRAME, RUNTIME_CLASS(CMy200317Doc), RUNTIME_CLASS(CMainFrame), // 主 SDI 框架窗口 RUNTIME_CLASS(CMy200317View)); if (!pDocTemplate) return FALSE; AddDocTemplate(pDocTemplate); // 分析标准 shell 命令、DDE、打开文件操作的命令行 CCommandLineInfo cmdInfo; ParseCommandLine(cmdInfo); // 调度在命令行中指定的命令。 如果 // 用 /RegServer、/Register、/Unregserver 或 /Unregister 启动应用程序,则返回 FALSE。 if (!ProcessShellCommand(cmdInfo)) return FALSE; // 唯一的一个窗口已初始化,因此显示它并对其进行更新 m_pMainWnd->ShowWindow(SW_SHOW); m_pMainWnd->UpdateWindow(); return TRUE; } int CMy200317App::ExitInstance() { //TODO: 处理可能已添加的附加资源 AfxOleTerm(FALSE); return CWinAppEx::ExitInstance(); } // CMy200317App 消息处理程序 // 用于应用程序“关于”菜单项的 CAboutDlg 对话框 class CAboutDlg : public CDialogEx { public: CAboutDlg(); // 对话框数据 #ifdef AFX_DESIGN_TIME enum { IDD = IDD_ABOUTBOX }; #endif protected: virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV 支持 // 实现 protected: DECLARE_MESSAGE_MAP() }; CAboutDlg::CAboutDlg() : CDialogEx(IDD_ABOUTBOX) { } void CAboutDlg::DoDataExchange(CDataExchange* pDX) { CDialogEx::DoDataExchange(pDX); } BEGIN_MESSAGE_MAP(CAboutDlg, CDialogEx) END_MESSAGE_MAP() // 用于运行对话框的应用程序命令 void CMy200317App::OnAppAbout() { CAboutDlg aboutDlg; aboutDlg.DoModal(); } // CMy200317App 消息处理程序
[ "1536062597@qq.com" ]
1536062597@qq.com
54ec4d3dc557aab9f869b3d672e8612824974799
4e7f736969804451a12bf2a1124b964f15cc15e8
/yukicoder/261/B.cpp
bad1dfdfe7bcdfb6b4e257235cdbbb2cbc3f0ae0
[]
no_license
hayaten0415/Competitive-programming
bb753303f9d8d1864991eb06fa823a9f74e42a4c
ea8bf51c1570566e631699aa7739cda973133f82
refs/heads/master
2022-11-26T07:11:46.953867
2022-11-01T16:18:04
2022-11-01T16:18:04
171,068,479
0
0
null
null
null
null
UTF-8
C++
false
false
372
cpp
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (n); i++) #define rrep(i, n) for (int i = (n - 1); i >= 0; i--) #define ALL(v) v.begin(), v.end() using namespace std; using P = pair<int, int>; typedef long long ll; int main() { int n; cin >> n; rep(i, n) { rep(j, n) { cout << ((2 * i - j + n) % n + 1) << " "; } cout << "\n"; } }
[ "hayaten415@gmail.com" ]
hayaten415@gmail.com
9e5a860debf1f42331be628382f76fc6c958d178
eb3d5577434b795317b6c9f768f80c7b18bd243f
/CFGR/B6.cpp
8e9def9b5b7a7de76796e5b3dceb827acce61ca7
[]
no_license
JacobianDet/CompeteUp
e00f9f468eb074dfe6e21eeadc17193e5b118f28
f4048b093e0dc0dad054cc4024eac09e2567630e
refs/heads/master
2021-06-08T16:18:26.320750
2021-04-03T13:29:42
2021-04-03T13:29:42
143,545,505
2
1
null
2021-04-03T13:29:42
2018-08-04T16:37:05
C++
UTF-8
C++
false
false
1,496
cpp
#include <bits/stdc++.h> using namespace std; #define MOD 1000000007 #define INF (1LL<<57) #define MV 200001 #define LMV 21 #define ff first #define ss second #define pb push_back #define eb emplace_back #define emp emplace #define whoami(x) cerr<<#x<<" "<<x<<"\n"; #define mp make_pair #define ins insert #define sz size void FLASH() {ios_base::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL);} void SETF() {cout.ios_base::setf(ios_base::fixed);} void UNSETF() {cout.ios_base::unsetf(ios_base::fixed);} typedef long long ll; typedef long double ld; typedef vector<int> VI; typedef vector<ll> VL; typedef pair<int, int> PII; typedef pair<ll, ll> PLL; typedef pair<PII, int> PPII; typedef pair<PLL, ll> PPLL; typedef map<int, int> MII; typedef map<ll, ll> MLL; typedef map<PII, int> MPII; typedef map<PLL, ll> MPLL; typedef set<int> SI; typedef set<ll> SL; int ar[MV]; ll arr[MV]; void solve(int T) { int n; cin>>n; for(int i=0;i<n;i++) cin>>arr[i]; for(int i=0;i<n;i++) { if(arr[i] < 15LL) cout<<"NO\n"; else { ll fnn = arr[i]/14; if(((arr[i] - fnn*14LL) > 0) && ((arr[i] - fnn*14LL) < 7)) cout<<"YES\n"; else cout<<"NO\n"; } } return; } int main(void) { FLASH(); int T; T = 1; #ifndef ONLINE_JUDGE time_t time_t1, time_t2; time_t1 = clock(); #endif while(T--) solve(T); #ifndef ONLINE_JUDGE time_t2 = clock(); SETF(); cout<<"Time taken: "<<setprecision(7)<<(time_t2 - time_t1)/(double)CLOCKS_PER_SEC<<"\n"; UNSETF(); #endif return 0; }
[ "sak_champ@rediffmail.com" ]
sak_champ@rediffmail.com
8b826d23a07aa4c9151356f0534d091f430cf467
0eff74b05b60098333ad66cf801bdd93becc9ea4
/second/download/collectd/gumtree/collectd_repos_function_488_collectd-4.3.1.cpp
35acdfd63c43935df86b2cac96faa82d37dd283d
[]
no_license
niuxu18/logTracker-old
97543445ea7e414ed40bdc681239365d33418975
f2b060f13a0295387fe02187543db124916eb446
refs/heads/master
2021-09-13T21:39:37.686481
2017-12-11T03:36:34
2017-12-11T03:36:34
null
0
0
null
null
null
null
UTF-8
C++
false
false
857
cpp
static int swap_init (void) { #if KERNEL_LINUX /* No init stuff */ /* #endif KERNEL_LINUX */ #elif HAVE_LIBKSTAT /* getpagesize(3C) tells me this does not fail.. */ pagesize = (unsigned long long) getpagesize (); if (get_kstat (&ksp, "unix", 0, "system_pages")) ksp = NULL; /* #endif HAVE_LIBKSTAT */ #elif defined(VM_SWAPUSAGE) /* No init stuff */ /* #endif defined(VM_SWAPUSAGE) */ #elif HAVE_LIBKVM if (kvm_obj != NULL) { kvm_close (kvm_obj); kvm_obj = NULL; } kvm_pagesize = getpagesize (); if ((kvm_obj = kvm_open (NULL, /* execfile */ NULL, /* corefile */ NULL, /* swapfile */ O_RDONLY, /* flags */ NULL)) /* errstr */ == NULL) { ERROR ("swap plugin: kvm_open failed."); return (-1); } /* #endif HAVE_LIBKVM */ #elif HAVE_LIBSTATGRAB /* No init stuff */ #endif /* HAVE_LIBSTATGRAB */ return (0); }
[ "993273596@qq.com" ]
993273596@qq.com
9f9ec9d294f2300d8100ec3c92f4c69e33dbdb47
3b9b4049a8e7d38b49e07bb752780b2f1d792851
/src/chrome/browser/extensions/extension_web_ui_unittest.cc
0a85885a59bad398bd11b299d769be46bbc6ad5f
[ "BSD-3-Clause", "Apache-2.0" ]
permissive
webosce/chromium53
f8e745e91363586aee9620c609aacf15b3261540
9171447efcf0bb393d41d1dc877c7c13c46d8e38
refs/heads/webosce
2020-03-26T23:08:14.416858
2018-08-23T08:35:17
2018-09-20T14:25:18
145,513,343
0
2
Apache-2.0
2019-08-21T22:44:55
2018-08-21T05:52:31
null
UTF-8
C++
false
false
6,847
cc
// Copyright 2014 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/extensions/extension_web_ui.h" #include "base/command_line.h" #include "base/memory/ptr_util.h" #include "base/message_loop/message_loop.h" #include "base/run_loop.h" #include "build/build_config.h" #include "chrome/browser/extensions/extension_service.h" #include "chrome/browser/extensions/extension_web_ui_override_registrar.h" #include "chrome/browser/extensions/test_extension_system.h" #include "chrome/test/base/testing_profile.h" #include "content/public/test/test_browser_thread.h" #include "extensions/browser/extension_system.h" #include "extensions/common/extension.h" #include "extensions/common/extension_builder.h" #include "extensions/common/manifest_constants.h" #include "testing/gtest/include/gtest/gtest.h" #if defined(OS_CHROMEOS) #include "chrome/browser/chromeos/login/users/scoped_test_user_manager.h" #include "chrome/browser/chromeos/settings/cros_settings.h" #include "chrome/browser/chromeos/settings/device_settings_service.h" #endif namespace extensions { namespace { std::unique_ptr<KeyedService> BuildOverrideRegistrar( content::BrowserContext* context) { return base::WrapUnique(new ExtensionWebUIOverrideRegistrar(context)); } } // namespace class ExtensionWebUITest : public testing::Test { public: ExtensionWebUITest() : ui_thread_(content::BrowserThread::UI, &message_loop_) {} protected: void SetUp() override { profile_.reset(new TestingProfile()); TestExtensionSystem* system = static_cast<TestExtensionSystem*>(ExtensionSystem::Get(profile_.get())); extension_service_ = system->CreateExtensionService( base::CommandLine::ForCurrentProcess(), base::FilePath(), false); ExtensionWebUIOverrideRegistrar::GetFactoryInstance()->SetTestingFactory( profile_.get(), &BuildOverrideRegistrar); ExtensionWebUIOverrideRegistrar::GetFactoryInstance()->Get(profile_.get()); } void TearDown() override { profile_.reset(); base::RunLoop().RunUntilIdle(); } std::unique_ptr<TestingProfile> profile_; ExtensionService* extension_service_; base::MessageLoop message_loop_; content::TestBrowserThread ui_thread_; #if defined OS_CHROMEOS chromeos::ScopedTestDeviceSettingsService test_device_settings_service_; chromeos::ScopedTestCrosSettings test_cros_settings_; chromeos::ScopedTestUserManager test_user_manager_; #endif }; // Test that component extension url overrides have lower priority than // non-component extension url overrides. TEST_F(ExtensionWebUITest, ExtensionURLOverride) { const char kOverrideResource[] = "1.html"; // Register a non-component extension. DictionaryBuilder manifest; manifest.Set(manifest_keys::kName, "ext1") .Set(manifest_keys::kVersion, "0.1") .Set(std::string(manifest_keys::kChromeURLOverrides), DictionaryBuilder().Set("bookmarks", kOverrideResource).Build()); scoped_refptr<Extension> ext_unpacked( ExtensionBuilder() .SetManifest(manifest.Build()) .SetLocation(Manifest::UNPACKED) .SetID("abcdefghijabcdefghijabcdefghijaa") .Build()); extension_service_->AddExtension(ext_unpacked.get()); const GURL kExpectedUnpackedOverrideUrl = ext_unpacked->GetResourceURL(kOverrideResource); const GURL kBookmarksUrl("chrome://bookmarks"); GURL changed_url = kBookmarksUrl; EXPECT_TRUE( ExtensionWebUI::HandleChromeURLOverride(&changed_url, profile_.get())); EXPECT_EQ(kExpectedUnpackedOverrideUrl, changed_url); EXPECT_TRUE(ExtensionWebUI::HandleChromeURLOverrideReverse(&changed_url, profile_.get())); EXPECT_EQ(kBookmarksUrl, changed_url); GURL url_plus_fragment = kBookmarksUrl.Resolve("#1"); EXPECT_TRUE(ExtensionWebUI::HandleChromeURLOverride(&url_plus_fragment, profile_.get())); EXPECT_EQ(kExpectedUnpackedOverrideUrl.Resolve("#1"), url_plus_fragment); EXPECT_TRUE(ExtensionWebUI::HandleChromeURLOverrideReverse(&url_plus_fragment, profile_.get())); EXPECT_EQ(kBookmarksUrl.Resolve("#1"), url_plus_fragment); // Register a component extension const char kOverrideResource2[] = "2.html"; DictionaryBuilder manifest2; manifest2.Set(manifest_keys::kName, "ext2") .Set(manifest_keys::kVersion, "0.1") .Set(std::string(manifest_keys::kChromeURLOverrides), DictionaryBuilder().Set("bookmarks", kOverrideResource2).Build()); scoped_refptr<Extension> ext_component( ExtensionBuilder() .SetManifest(manifest2.Build()) .SetLocation(Manifest::COMPONENT) .SetID("bbabcdefghijabcdefghijabcdefghij") .Build()); extension_service_->AddComponentExtension(ext_component.get()); // Despite being registered more recently, the component extension should // not take precedence over the non-component extension. changed_url = kBookmarksUrl; EXPECT_TRUE( ExtensionWebUI::HandleChromeURLOverride(&changed_url, profile_.get())); EXPECT_EQ(kExpectedUnpackedOverrideUrl, changed_url); EXPECT_TRUE(ExtensionWebUI::HandleChromeURLOverrideReverse(&changed_url, profile_.get())); EXPECT_EQ(kBookmarksUrl, changed_url); GURL kExpectedComponentOverrideUrl = ext_component->GetResourceURL(kOverrideResource2); // Unregister non-component extension. Only component extension remaining. ExtensionWebUI::UnregisterChromeURLOverrides( profile_.get(), URLOverrides::GetChromeURLOverrides(ext_unpacked.get())); changed_url = kBookmarksUrl; EXPECT_TRUE( ExtensionWebUI::HandleChromeURLOverride(&changed_url, profile_.get())); EXPECT_EQ(kExpectedComponentOverrideUrl, changed_url); EXPECT_TRUE(ExtensionWebUI::HandleChromeURLOverrideReverse(&changed_url, profile_.get())); EXPECT_EQ(kBookmarksUrl, changed_url); // This time the non-component extension was registered more recently and // should still take precedence. ExtensionWebUI::RegisterOrActivateChromeURLOverrides( profile_.get(), URLOverrides::GetChromeURLOverrides(ext_unpacked.get())); changed_url = kBookmarksUrl; EXPECT_TRUE( ExtensionWebUI::HandleChromeURLOverride(&changed_url, profile_.get())); EXPECT_EQ(kExpectedUnpackedOverrideUrl, changed_url); EXPECT_TRUE(ExtensionWebUI::HandleChromeURLOverrideReverse(&changed_url, profile_.get())); EXPECT_EQ(kBookmarksUrl, changed_url); } } // namespace extensions
[ "changhyeok.bae@lge.com" ]
changhyeok.bae@lge.com
f22cc541fdd117324acd097a2174f595ece90439
6ac7982eb5674c602e704739f3f14f185e525ba3
/covolution/core.hpp
f1380e4028fc56952a183ba7e8f8f73d824d8ab6
[]
no_license
akkaze/Excercise
fef61604bcf77cf52c9ef7d6ca6ebb2a019a6ade
09eb673fda5d058d6c60484d3101433281988bb7
refs/heads/master
2021-06-05T10:22:42.413802
2016-08-02T02:20:12
2016-08-02T02:20:12
null
0
0
null
null
null
null
UTF-8
C++
false
false
3,124
hpp
#include <opencv2/opencv.hpp> #include <cblas.h> #include "im2col.hpp" class Node { public: int nums_; int rows_; int cols_; int channels_; long size_; double* value_; std::vector<Node*> inputs_; Node(int nums, int channels, int rows, int cols) { nums_ = nums; channels_ = channels; rows_ = rows; cols_ = cols; size_ = nums * channels * rows * cols; value_ = new double[size_]; memset(value_, 0, sizeof(double) * size_); } ~Node() { delete value_; } }; class Data : public Node { public: void Data(const std::string& imgname) { cv::Mat im = cv::imread(imgname, cv::IMREAD_UNCHANGED); nums_ = 1; channels_ = im.channels(); rows_ = im.rows; cols_ = im.cols; size_ = nums * channels * rows * cols; value_ = new double[size_]; memset(value_, 0, sizeof(double) * size_); for(int num = 0; num < nums_; num++) for(int row = 0; row < rows_; row++) for(int col = 0; col < cols_; col++) for(int channel = 0; channel < channels_; channel++) *(value_ + num * rows_ * cols_ * channels_ + row * cols_ * channels_ + col * channels_ + channel) = *(im.data + row * cols_ * channels_ + col * channels_ + channel); } }; class Param : public Node { public: bool fixed_; Param(size_t nums, size_t channels, size_t rows, size_t cols) : Node(nums,channels,rows,cols) { fixed_ = false; } using Node::~Node; }; class Conv : public Node { public: size_t window_; size_t stride_; size_t padding_; Param* W_; double* imcol_; Conv(Node* input, size_t num_filters, size_t window = 5,size_t stride = 1) { inputs_.push_back(input); window_ = window; stride_ = stride; nums_ = input->nums_; channels_ = num_filters; padding_ = (window - 1) / 2; rows_ = (input->rows_ + 2 * padding_ - window) / stride + 1; cols_ = (input->cols_ + 2 * padding_ - window) / stride + 1; size_ = nums_ * channels_ * rows_ * cols_; W_ = new Param(input->channels_, window, window, num_filters); value_ = new double[size_]; memset(value_, 0, sizeof(double) * size_); } ~Conv() { delete[] value_; delete[] imcol_; delete W_; } void forward() { im2col(value_, imcol_, nums_, channels_, rows_, cols_, window_, window_, stride_); int m = } }; class View { public: View(Node* input,const std::string& imgname) { cv::Mat im(input->rows_, input->cols_, CV_8UC3); for(int num = 0; num < nums_; num++) for(int row = 0; row < rows_; row++) for(int col = 0; col < cols_; col++) for(int channel = 0; channel < channels_; channel++) { double* ptr = input->value_ + num * rows_ * cols_ * channels_ + row * cols_ * channels_ + col * channels_ + channel; uchar* im_prt = im.data + row * cols_ * channels_ + col * channels_ + channel; if(*ptr >= 0 && *ptr < 255) *im_ptr = *ptr; else if(*ptr < 0) *im_ptr = 0; else *im_ptr = 255; } cv::imsave(imgname,im); } };
[ "zhengankun@163.com" ]
zhengankun@163.com
6b09d14ba3c2de59259c7e79d450cc8d4bd53761
9a968591549f9376b21931585acb4a1674352659
/controller/src/inputs/ButtonInput.cpp
3026432028d92c9a44984777d3d9e23b1dbb9cdc
[ "MIT" ]
permissive
benjylxwang/drone
9c8de353c282713ef9dae2d7101529e62cc3302d
864c8ce1fd8b8080ec296c5e013cfa21c9cb00c5
refs/heads/main
2023-05-07T08:43:53.938332
2021-05-21T09:58:46
2021-05-21T09:58:46
331,080,276
0
0
null
null
null
null
UTF-8
C++
false
false
185
cpp
#include "ButtonInput.h" void ButtonInput::setup() { pinMode(pin, inputType); } bool ButtonInput::get() { if (invert) return !digitalRead(pin); return digitalRead(pin); }
[ "benjylxwang64@gmail.com" ]
benjylxwang64@gmail.com
50a0999f9b84896ca1987813ae9317dff9c54d25
ca7767ddf74f59e4d1ca2bf747442115cae8a1c9
/source/core/MLTextUtils.h
8ab92287284ed0c5837da761b0c859bdccd618a6
[ "MIT" ]
permissive
AventureNumerique/madronalib
7bbefb65a7e59fd277159b9ec6198362bf7e971c
1cf3b390ae2979124d9caaaa13c82191b4b5d1d2
refs/heads/master
2021-01-21T18:57:40.149277
2017-03-14T21:30:21
2017-03-14T21:30:21
null
0
0
null
null
null
null
UTF-8
C++
false
false
5,261
h
// // MLTextUtils.h // madronalib // // Created by Randy Jones on 12/3/14. // // #ifndef __MLStringUtils__ #define __MLStringUtils__ #include <functional> #include <iostream> #include <string> #include <vector> #include "MLSymbol.h" #include "../dsp/MLDSP.h" #include "utf/utf.hpp" #include "aes256/aes256.h" #include "../DSP/MLDSPGens.h" // for RandomSource TODO replace namespace ml { namespace textUtils { using namespace utf; bool isDigit(codepoint_type c); bool isASCII(codepoint_type c); bool isLatin(codepoint_type c); bool isWhitespace(codepoint_type c); bool isCJK(codepoint_type c); char * spaceStr( int numIndents ); int digitsToNaturalNumber(const char32_t* p); const char *naturalNumberToDigits(int value, char* pDest); // ---------------------------------------------------------------- // TextFragment utilities TextFragment naturalNumberToText(int i); int textToNaturalNumber(const TextFragment& frag); int findFirst(const TextFragment& frag, const utf::codepoint_type c); int findLast(const TextFragment& frag, const utf::codepoint_type c); int findFirst(const TextFragment& frag, std::function<bool(codepoint_type)> f); int findLast(const TextFragment& frag, std::function<bool(codepoint_type)> f); TextFragment map(const TextFragment& frag, std::function<codepoint_type(codepoint_type)> f); TextFragment reduce(const TextFragment& frag, std::function<bool(codepoint_type)> f); std::vector< TextFragment > split(TextFragment frag, codepoint_type delimiter = '\n'); // join a vector of fragments into one fragment. TextFragment join(const std::vector<TextFragment>& vec); // join a vector of fragments into one fragment, with delimiter added in between. TextFragment join(const std::vector<TextFragment>& vec, codepoint_type delimiter); // Return a new TextFragment consisting of the codepoints from indices start to (end - 1) in the input frag. TextFragment subText(const TextFragment& frag, int start, int end); // Return the prefix of the input frag as a new TextFragment, stripping the last dot and any codepoints after it. TextFragment stripFileExtension(const TextFragment& frag); // If the input fragment contains a slash, return a new TextFragment containing any characters // after the final slash. Else return the input. TextFragment getShortFileName(const TextFragment& frag); // Return a new TextFragment containing any characters up to a final slash. TextFragment getPath(const TextFragment& frag); Symbol bestScriptForTextFragment(const TextFragment& frag); TextFragment stripWhitespaceAtEnds(const TextFragment& frag); TextFragment stripAllWhitespace(const TextFragment& frag); TextFragment base64Encode(const std::vector<uint8_t>& b); std::vector<uint8_t> base64Decode(const TextFragment& b); std::vector<uint8_t> AES256CBCEncode(const std::vector<uint8_t>& plaintext, const std::vector<uint8_t>& key, const std::vector<uint8_t>& iv); std::vector<uint8_t> AES256CBCDecode(const std::vector<uint8_t>& ciphertext, const std::vector<uint8_t>& key, const std::vector<uint8_t>& iv); // return UTF-8 encoded vector of bytes without null terminator inline std::vector<uint8_t> textToByteVector(TextFragment frag) { return std::vector<uint8_t>(frag.getText(), frag.getText() + frag.lengthInBytes()); } inline TextFragment byteVectorToText(const std::vector<uint8_t>& v) { if(!v.size()) return TextFragment(); const uint8_t* p = v.data(); return TextFragment(reinterpret_cast<const char*>(p), v.size()); } inline std::vector<codepoint_type> textToCodePointVector(TextFragment frag) { std::vector<codepoint_type> r; for(codepoint_type c : frag) { r.push_back(c); } return r; } inline TextFragment codePointVectorToText(std::vector<codepoint_type> cv) { auto sv = utf::make_stringview(cv.begin(), cv.end()); std::vector<char> outVec; sv.to<utf::utf8>(std::back_inserter(outVec)); return TextFragment(outVec.data(), outVec.size()); } // perform case-insensitive compare of fragments and return (a < b). // TODO collate other languages better using miniutf library. bool collate(const TextFragment& a, const TextFragment& b); // ---------------------------------------------------------------- // Symbol utilities Symbol addFinalNumber(Symbol sym, int n); Symbol stripFinalNumber(Symbol sym); int getFinalNumber(Symbol sym); Symbol stripFinalCharacter(Symbol sym); std::vector< Symbol > vectorOfNonsenseSymbols( int len ); // ---------------------------------------------------------------- // NameMaker // a utility to make many short, unique, human-readable names when they are needed. class NameMaker { static const int maxLen = 64; public: NameMaker() : index(0) {}; ~NameMaker() {}; // return the next name as a symbol, having added it to the symbol table. const TextFragment nextName(); private: int index; char buf[maxLen]; }; // ---------------------------------------------------------------- // std library helpers template< typename T > T getElementChecked( const std::vector< T > vec, int index ) noexcept { return (vec.size() > index ? vec[index] : T()); } } } // ml::textUtils #endif /* defined(__MLStringUtils__) */
[ "randy@madronalabs.com" ]
randy@madronalabs.com
12efe118749f52b611c1c896ba4762bcd91a581f
e482ce554cebb7c4e84bccfa1c46ca40c438e6c8
/code/cpp/gfg/ugly-number/ugly-nodp.cpp
9c06ce8e140ba756c19f251429835af3cb834a8f
[ "Apache-2.0" ]
permissive
unknown1924/my-code-backup
904eb4b15f199672f2ddcc35cabc23603b41a847
13e52870c91351d37b89b52787e2e315230a921b
refs/heads/master
2022-12-30T15:37:46.315116
2020-09-24T10:58:11
2020-09-24T10:58:11
293,925,237
0
0
null
null
null
null
UTF-8
C++
false
false
566
cpp
// naive approach to ugly no brute force approach #include <iostream> using namespace std; int maxDivisiblePow(int a, int b){ while(a%b == 0){ a = a/b; } return a; } int isUgly(int no){ no = maxDivisiblePow(no, 2); no = maxDivisiblePow(no, 3); no = maxDivisiblePow(no, 5); return no == 1? 1:0; } int countUglyNo(int n){ int i = 1; int count = 1; while(count < n){ i++; if(isUgly(i)){ ++count; } } return i; } int main(){ int n = 10; cout << countUglyNo(n); }
[ "debasismandal900@gmail.com" ]
debasismandal900@gmail.com
0524c2b46504c5a201745eb2905e8eff23ddde46
1346a61bccb11d41e36ae7dfc613dafbe56ddb29
/GeometricTools/GTEngine/Include/GteRay2.h
bf55df90f8f13a67d82af45a45bac964165f9b7d
[]
no_license
cnsuhao/GeometricToolsEngine1p0
c9a5845e3eb3a44733445c02bfa57c8ed286a499
d4f2b7fda351917d4bfc3db1c6f8090f211f63d1
refs/heads/master
2021-05-28T02:00:50.566024
2014-08-14T07:28:23
2014-08-14T07:28:23
null
0
0
null
null
null
null
UTF-8
C++
false
false
1,110
h
// Geometric Tools LLC, Redmond WA 98052 // Copyright (c) 1998-2014 // Distributed under the Boost Software License, Version 1.0. // http://www.boost.org/LICENSE_1_0.txt // http://www.geometrictools.com/License/Boost/LICENSE_1_0.txt // File Version: 1.0.0 (2014/08/11) #pragma once #include "GteGeometricPrimitive.h" #include "GteVector2.h" namespace gte { // The ray is represented as P+t*D, where P is the ray origin, D is a // unit-length direction vector, and t >= 0. The user must ensure that D is // unit length. template <typename Real> class Ray2 : public GeometricPrimitive<Ray2<Real>> { public: // Construction and destruction. The default constructor sets the origin // to (0,0) and the ray direction to (1,0). Ray2(); Ray2(Vector2<Real> const& inOrigin, Vector2<Real> const& inDirection); // Public member access. The direction must be unit length. Vector2<Real> origin, direction; public: // Support for comparisons in GeometricPrimitive<T>. bool IsEqualTo(Ray2 const& ray) const; bool IsLessThan(Ray2 const& ray) const; }; #include "GteRay2.inl" }
[ "qloach@foxmail.com" ]
qloach@foxmail.com
d66b9a51b799654eb1c2250abf444fcb82812b99
88eac2181a24b57271e86c2d14327f7bfb8c7cad
/menu/menu_util.cpp
c2d89b16d40c123e324aef9479889100517a5608
[]
no_license
fetusfinn/pwned
e0994d9590164140cdc7f3dc5327f8f0f1c5d869
ca2a49344d4b8b03b497f8de87b5bca17190bcf4
refs/heads/master
2022-12-10T17:02:46.193624
2019-11-24T00:56:27
2019-11-24T00:56:27
null
0
0
null
null
null
null
UTF-8
C++
false
false
32
cpp
/* * * */ #include "menu.h"
[ "finn@Finns-MacBook-Pro.local" ]
finn@Finns-MacBook-Pro.local
90e14c6c6bdac7e99e4499b020a20746d915a042
f5f750efbde0ccd95856820c975ec88ee6ace0f8
/aws-cpp-sdk-clouddirectory/include/aws/clouddirectory/model/EnableDirectoryRequest.h
16a57077eab60b57cc9cbcff70a254be7872a9a9
[ "JSON", "MIT", "Apache-2.0" ]
permissive
csimmons0/aws-sdk-cpp
578a4ae6e7899944f8850dc37accba5568b919eb
1d0e1ddb51022a02700a9d1d3658abf628bb41c8
refs/heads/develop
2020-06-17T14:58:41.406919
2017-04-12T03:45:33
2017-04-12T03:45:33
74,995,798
0
0
null
2017-03-02T05:35:49
2016-11-28T17:12:34
C++
UTF-8
C++
false
false
2,484
h
/* * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. 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. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file 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. */ #pragma once #include <aws/clouddirectory/CloudDirectory_EXPORTS.h> #include <aws/clouddirectory/CloudDirectoryRequest.h> #include <aws/core/utils/memory/stl/AWSString.h> namespace Aws { namespace CloudDirectory { namespace Model { /** */ class AWS_CLOUDDIRECTORY_API EnableDirectoryRequest : public CloudDirectoryRequest { public: EnableDirectoryRequest(); Aws::String SerializePayload() const override; Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** * <p>The ARN of the directory to enable.</p> */ inline const Aws::String& GetDirectoryArn() const{ return m_directoryArn; } /** * <p>The ARN of the directory to enable.</p> */ inline void SetDirectoryArn(const Aws::String& value) { m_directoryArnHasBeenSet = true; m_directoryArn = value; } /** * <p>The ARN of the directory to enable.</p> */ inline void SetDirectoryArn(Aws::String&& value) { m_directoryArnHasBeenSet = true; m_directoryArn = value; } /** * <p>The ARN of the directory to enable.</p> */ inline void SetDirectoryArn(const char* value) { m_directoryArnHasBeenSet = true; m_directoryArn.assign(value); } /** * <p>The ARN of the directory to enable.</p> */ inline EnableDirectoryRequest& WithDirectoryArn(const Aws::String& value) { SetDirectoryArn(value); return *this;} /** * <p>The ARN of the directory to enable.</p> */ inline EnableDirectoryRequest& WithDirectoryArn(Aws::String&& value) { SetDirectoryArn(value); return *this;} /** * <p>The ARN of the directory to enable.</p> */ inline EnableDirectoryRequest& WithDirectoryArn(const char* value) { SetDirectoryArn(value); return *this;} private: Aws::String m_directoryArn; bool m_directoryArnHasBeenSet; }; } // namespace Model } // namespace CloudDirectory } // namespace Aws
[ "henso@amazon.com" ]
henso@amazon.com
2baaa77e14be16da17a4869e8bb7bf187d14a626
a35e6df2209e53747094a4d2d751eafd2fdd98de
/include/domain/base/base_field.hpp
c9b942e4d3279663bc861fe22cf0be9e5043d0d7
[ "MIT" ]
permissive
hyperpower/CarpioPlus
7bc9cd20736e5c81eb8125f40465bfcd5372fb47
68cc6c976d6c3ba6adec847a94c344be3f4690aa
refs/heads/master
2021-06-18T11:42:34.278183
2021-01-21T16:08:10
2021-01-21T16:08:10
137,350,562
0
0
null
null
null
null
UTF-8
C++
false
false
1,008
hpp
#ifndef _BASE_FIELD_HPP #define _BASE_FIELD_HPP #include <iostream> #include "type_define.hpp" namespace carpio{ struct BaseFieldTag{}; template<St DIM> class BaseGrid_{ public: static const St Dim = DIM; public: BaseGrid_(){} virtual ~BaseGrid_(){} }; template<St DIM> class BaseGhost_{ public: static const St Dim = DIM; public: BaseGhost_(){}; virtual ~BaseGhost_(){}; }; template<St DIM> class BaseOrder_{ public: static const St Dim = DIM; public: BaseOrder_(){}; virtual ~BaseOrder_(){}; }; template<St DIM, class VT, class GRID, class GHOST, class ORDER> class BaseField_ { public: static const St Dim = DIM; typedef GRID Grid; typedef GHOST Ghost; typedef ORDER Order; typedef VT ValueType; typedef BaseFieldTag Tag; public: BaseField_(){} virtual ~BaseField_(){} virtual Grid& grid(){return Grid();}; virtual Ghost& ghost(){return Ghost();}; virtual Order& order(){return Order();}; }; } #endif
[ "hyper__power@hotmail.com" ]
hyper__power@hotmail.com
222f5a0c633764183ac3b98b8e8e1072f26594df
154ad9b7b26b5c52536bbd83cdaf0a359e6125c3
/chrome/browser/android/service_tab_launcher.cc
d8f219bfeb0edb8b3c96078c131784e3d8d27b85
[ "BSD-3-Clause" ]
permissive
bopopescu/jstrace
6cc239d57e3a954295b67fa6b8875aabeb64f3e2
2069a7b0a2e507a07cd9aacec4d9290a3178b815
refs/heads/master
2021-06-14T09:08:34.738245
2017-05-03T23:17:06
2017-05-03T23:17:06
null
0
0
null
null
null
null
UTF-8
C++
false
false
3,325
cc
// Copyright 2015 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/service_tab_launcher.h" #include "base/android/context_utils.h" #include "base/android/jni_string.h" #include "base/callback.h" #include "content/public/browser/browser_context.h" #include "content/public/browser/page_navigator.h" #include "content/public/browser/web_contents.h" #include "jni/ServiceTabLauncher_jni.h" using base::android::AttachCurrentThread; using base::android::ConvertUTF8ToJavaString; using base::android::GetApplicationContext; using base::android::JavaParamRef; using base::android::ScopedJavaLocalRef; // Called by Java when the WebContents instance for a request Id is available. void OnWebContentsForRequestAvailable( JNIEnv* env, const JavaParamRef<jclass>& clazz, jint request_id, const JavaParamRef<jobject>& android_web_contents) { ServiceTabLauncher::GetInstance()->OnTabLaunched( request_id, content::WebContents::FromJavaWebContents(android_web_contents)); } // static ServiceTabLauncher* ServiceTabLauncher::GetInstance() { return base::Singleton<ServiceTabLauncher>::get(); } ServiceTabLauncher::ServiceTabLauncher() { } ServiceTabLauncher::~ServiceTabLauncher() {} void ServiceTabLauncher::LaunchTab(content::BrowserContext* browser_context, const content::OpenURLParams& params, const TabLaunchedCallback& callback) { WindowOpenDisposition disposition = params.disposition; if (disposition != NEW_WINDOW && disposition != NEW_POPUP && disposition != NEW_FOREGROUND_TAB && disposition != NEW_BACKGROUND_TAB) { // ServiceTabLauncher can currently only launch new tabs. NOTIMPLEMENTED(); return; } JNIEnv* env = AttachCurrentThread(); ScopedJavaLocalRef<jstring> url = ConvertUTF8ToJavaString( env, params.url.spec()); ScopedJavaLocalRef<jstring> referrer_url = ConvertUTF8ToJavaString(env, params.referrer.url.spec()); ScopedJavaLocalRef<jstring> headers = ConvertUTF8ToJavaString( env, params.extra_headers); ScopedJavaLocalRef<jobject> post_data; int request_id = tab_launched_callbacks_.Add( new TabLaunchedCallback(callback)); DCHECK_GE(request_id, 1); Java_ServiceTabLauncher_launchTab(env, GetApplicationContext(), request_id, browser_context->IsOffTheRecord(), url.obj(), disposition, referrer_url.obj(), params.referrer.policy, headers.obj(), post_data.obj()); } void ServiceTabLauncher::OnTabLaunched(int request_id, content::WebContents* web_contents) { TabLaunchedCallback* callback = tab_launched_callbacks_.Lookup(request_id); DCHECK(callback); if (callback) callback->Run(web_contents); tab_launched_callbacks_.Remove(request_id); } bool ServiceTabLauncher::Register(JNIEnv* env) { return RegisterNativesImpl(env); }
[ "zzbthechaos@gmail.com" ]
zzbthechaos@gmail.com
8fb6c8ecd692f795ff47322a9c3d1c3bb7907658
b8499de1a793500b47f36e85828f997e3954e570
/v2_3/build/Android/Preview/app/src/main/include/Fuse.Resources.Loadin-4ba1d630.h
021be82546361bbd7b56f561e9a3949e6efaf376
[]
no_license
shrivaibhav/boysinbits
37ccb707340a14f31bd57ea92b7b7ddc4859e989
04bb707691587b253abaac064317715adb9a9fe5
refs/heads/master
2020-03-24T05:22:21.998732
2018-07-26T20:06:00
2018-07-26T20:06:00
142,485,250
0
0
null
2018-07-26T20:03:22
2018-07-26T19:30:12
C++
UTF-8
C++
false
false
436
h
// This file was generated based on 'C:/Users/hp laptop/AppData/Local/Fusetools/Packages/Fuse.Elements/1.9.0/Resources/LoadingImageSource.uno'. // WARNING: Changes might be lost if you edit this file directly. #pragma once #include <Uno.Int.h> namespace g{ namespace Fuse{ namespace Resources{ // protected enum LoadingImageSource.CleanupReason :10 uEnumType* LoadingImageSource__CleanupReason_typeof(); }}} // ::g::Fuse::Resources
[ "shubhamanandoist@gmail.com" ]
shubhamanandoist@gmail.com
b21a4641117b7d382ed35c109601105b31e3c0e5
28710db32bfdbf9052c47532edc9c8259d7f7e75
/DP/DP_二维费用背包_宠物小精灵之收服.cpp
b1f5997e6ed6db965c44d4ac08bc26cd05a0606d
[]
no_license
Haut-Stone/ACM
4195e264614b5c7447d8a92698e1691ddff77a39
57bb69467ee84b80827dc20710773484290eac0d
refs/heads/master
2020-06-20T22:29:42.851380
2018-02-06T11:15:02
2018-02-06T11:15:02
74,815,776
0
0
null
null
null
null
UTF-8
C++
false
false
1,225
cpp
/* * Created by ShiJiahuan(li) in haut. * For more please visit www.shallweitalk.com. * * Copyright 2017 SJH. All rights reserved. * * @Author: Haut-Stone * @Date: 2017-09-27 21:48:03 * @Last Modified by: Haut-Stone * @Last Modified time: 2017-09-28 09:15:42 */ //二维费用背包的裸题 #include <iostream> #include <algorithm> #include <cstdio> #include <cstring> using namespace std; const int N = 1010; int dp[N][N]; int neededPokemonBall[N]; int reducedEnergy[N]; int allPokemonBall; int allEnergy; int pokemonNumber; int main(void) { while(~scanf("%d%d%d", &allPokemonBall, &allEnergy, &pokemonNumber)){ memset(dp, 0, sizeof(dp)); for(int i=1;i<=pokemonNumber;i++){ scanf("%d%d", &neededPokemonBall[i], &reducedEnergy[i]); } for(int k=1;k<=pokemonNumber;k++){ for(int i=allPokemonBall;i>=neededPokemonBall[k];i--){ for(int j=allEnergy;j>=reducedEnergy[k];j--){ dp[i][j] = max(dp[i][j], dp[i-neededPokemonBall[k]][j-reducedEnergy[k]] + 1); } } } int power = allEnergy; int ans = 0; for(int i=1;i<=allEnergy;i++){ if(dp[allPokemonBall][i] > ans){ ans = dp[allPokemonBall][i]; power = allEnergy - i; } } printf("%d %d\n", ans, power); } return 0; }
[ "haut.1604.stone@gmail.com" ]
haut.1604.stone@gmail.com
3c00e1d10de58b345243687c4ada27f8c8c21f9c
84cc452652ce17ac77990eb402c8f6add0001926
/build-QtTaskList-Desktop_Qt_5_6_0_MSVC2015_64bit-Release/ui_mainwindow.h
757fcaf936c6f66ca97299b6ae57b58f0d1f9fa4
[]
no_license
aaron-loz/C-
68b3ca4d74b42563376ca13c8f7d4109c10228bd
4bb1ff3d9f654b03df15ace1eac7b88fc9228129
refs/heads/master
2020-04-13T03:45:25.892075
2018-12-24T02:30:40
2018-12-24T02:30:40
null
0
0
null
null
null
null
UTF-8
C++
false
false
20,984
h
/******************************************************************************** ** Form generated from reading UI file 'mainwindow.ui' ** ** Created by: Qt User Interface Compiler version 5.6.0 ** ** WARNING! All changes made in this file will be lost when recompiling UI file! ********************************************************************************/ #ifndef UI_MAINWINDOW_H #define UI_MAINWINDOW_H #include <QtCore/QVariant> #include <QtWidgets/QAction> #include <QtWidgets/QApplication> #include <QtWidgets/QButtonGroup> #include <QtWidgets/QCheckBox> #include <QtWidgets/QHBoxLayout> #include <QtWidgets/QHeaderView> #include <QtWidgets/QLineEdit> #include <QtWidgets/QMainWindow> #include <QtWidgets/QMenu> #include <QtWidgets/QMenuBar> #include <QtWidgets/QPushButton> #include <QtWidgets/QToolBar> #include <QtWidgets/QVBoxLayout> #include <QtWidgets/QWidget> QT_BEGIN_NAMESPACE class Ui_TaskList { public: QAction *actionAddTask; QAction *actionSet_WorkFlow_Title; QWidget *centralWidget; QVBoxLayout *verticalLayout; QHBoxLayout *horizontalLayout_3; QHBoxLayout *horizontalLayout; QCheckBox *checkBox; QLineEdit *lineEdit0; QHBoxLayout *horizontalLayout_2; QCheckBox *checkBox_2; QLineEdit *lineEdit1; QHBoxLayout *horizontalLayout_4; QHBoxLayout *horizontalLayout_5; QCheckBox *checkBox_7; QLineEdit *lineEdit2; QHBoxLayout *horizontalLayout_6; QCheckBox *checkBox_8; QLineEdit *lineEdit3; QHBoxLayout *horizontalLayout_7; QHBoxLayout *horizontalLayout_8; QCheckBox *checkBox_3; QLineEdit *lineEdit4; QHBoxLayout *horizontalLayout_9; QCheckBox *checkBox_9; QLineEdit *lineEdit5; QHBoxLayout *horizontalLayout_10; QHBoxLayout *horizontalLayout_11; QCheckBox *checkBox_10; QLineEdit *lineEdit6; QHBoxLayout *horizontalLayout_12; QCheckBox *checkBox_11; QLineEdit *lineEdit7; QHBoxLayout *horizontalLayout_13; QHBoxLayout *horizontalLayout_14; QCheckBox *checkBox_4; QLineEdit *lineEdit8; QHBoxLayout *horizontalLayout_15; QCheckBox *checkBox_12; QLineEdit *lineEdit9; QHBoxLayout *horizontalLayout_16; QHBoxLayout *horizontalLayout_17; QCheckBox *checkBox_13; QLineEdit *lineEdit10; QHBoxLayout *horizontalLayout_18; QCheckBox *checkBox_14; QLineEdit *lineEdit11; QHBoxLayout *horizontalLayout_19; QHBoxLayout *horizontalLayout_20; QCheckBox *checkBox_5; QLineEdit *lineEdit12; QHBoxLayout *horizontalLayout_21; QCheckBox *checkBox_15; QLineEdit *lineEdit13; QHBoxLayout *horizontalLayout_22; QHBoxLayout *horizontalLayout_23; QCheckBox *checkBox_16; QLineEdit *lineEdit14; QHBoxLayout *horizontalLayout_24; QCheckBox *checkBox_17; QLineEdit *lineEdit15; QHBoxLayout *horizontalLayout_25; QHBoxLayout *horizontalLayout_26; QCheckBox *checkBox_6; QLineEdit *lineEdit16; QHBoxLayout *horizontalLayout_27; QCheckBox *checkBox_18; QLineEdit *lineEdit17; QHBoxLayout *horizontalLayout_28; QHBoxLayout *horizontalLayout_29; QCheckBox *checkBox_19; QLineEdit *lineEdit18; QHBoxLayout *horizontalLayout_30; QCheckBox *checkBox_20; QLineEdit *lineEdit19; QPushButton *clearButton; QToolBar *mainToolBar; QMenuBar *menuBar; QMenu *menuAdd_Task; void setupUi(QMainWindow *TaskList) { if (TaskList->objectName().isEmpty()) TaskList->setObjectName(QStringLiteral("TaskList")); TaskList->resize(1166, 600); actionAddTask = new QAction(TaskList); actionAddTask->setObjectName(QStringLiteral("actionAddTask")); actionSet_WorkFlow_Title = new QAction(TaskList); actionSet_WorkFlow_Title->setObjectName(QStringLiteral("actionSet_WorkFlow_Title")); centralWidget = new QWidget(TaskList); centralWidget->setObjectName(QStringLiteral("centralWidget")); verticalLayout = new QVBoxLayout(centralWidget); verticalLayout->setSpacing(6); verticalLayout->setContentsMargins(11, 11, 11, 11); verticalLayout->setObjectName(QStringLiteral("verticalLayout")); horizontalLayout_3 = new QHBoxLayout(); horizontalLayout_3->setSpacing(6); horizontalLayout_3->setObjectName(QStringLiteral("horizontalLayout_3")); horizontalLayout = new QHBoxLayout(); horizontalLayout->setSpacing(6); horizontalLayout->setObjectName(QStringLiteral("horizontalLayout")); checkBox = new QCheckBox(centralWidget); checkBox->setObjectName(QStringLiteral("checkBox")); horizontalLayout->addWidget(checkBox); lineEdit0 = new QLineEdit(centralWidget); lineEdit0->setObjectName(QStringLiteral("lineEdit0")); horizontalLayout->addWidget(lineEdit0); horizontalLayout_3->addLayout(horizontalLayout); horizontalLayout_2 = new QHBoxLayout(); horizontalLayout_2->setSpacing(6); horizontalLayout_2->setObjectName(QStringLiteral("horizontalLayout_2")); checkBox_2 = new QCheckBox(centralWidget); checkBox_2->setObjectName(QStringLiteral("checkBox_2")); horizontalLayout_2->addWidget(checkBox_2); lineEdit1 = new QLineEdit(centralWidget); lineEdit1->setObjectName(QStringLiteral("lineEdit1")); horizontalLayout_2->addWidget(lineEdit1); horizontalLayout_3->addLayout(horizontalLayout_2); verticalLayout->addLayout(horizontalLayout_3); horizontalLayout_4 = new QHBoxLayout(); horizontalLayout_4->setSpacing(6); horizontalLayout_4->setObjectName(QStringLiteral("horizontalLayout_4")); horizontalLayout_5 = new QHBoxLayout(); horizontalLayout_5->setSpacing(6); horizontalLayout_5->setObjectName(QStringLiteral("horizontalLayout_5")); checkBox_7 = new QCheckBox(centralWidget); checkBox_7->setObjectName(QStringLiteral("checkBox_7")); horizontalLayout_5->addWidget(checkBox_7); lineEdit2 = new QLineEdit(centralWidget); lineEdit2->setObjectName(QStringLiteral("lineEdit2")); horizontalLayout_5->addWidget(lineEdit2); horizontalLayout_4->addLayout(horizontalLayout_5); horizontalLayout_6 = new QHBoxLayout(); horizontalLayout_6->setSpacing(6); horizontalLayout_6->setObjectName(QStringLiteral("horizontalLayout_6")); checkBox_8 = new QCheckBox(centralWidget); checkBox_8->setObjectName(QStringLiteral("checkBox_8")); horizontalLayout_6->addWidget(checkBox_8); lineEdit3 = new QLineEdit(centralWidget); lineEdit3->setObjectName(QStringLiteral("lineEdit3")); horizontalLayout_6->addWidget(lineEdit3); horizontalLayout_4->addLayout(horizontalLayout_6); verticalLayout->addLayout(horizontalLayout_4); horizontalLayout_7 = new QHBoxLayout(); horizontalLayout_7->setSpacing(6); horizontalLayout_7->setObjectName(QStringLiteral("horizontalLayout_7")); horizontalLayout_8 = new QHBoxLayout(); horizontalLayout_8->setSpacing(6); horizontalLayout_8->setObjectName(QStringLiteral("horizontalLayout_8")); checkBox_3 = new QCheckBox(centralWidget); checkBox_3->setObjectName(QStringLiteral("checkBox_3")); horizontalLayout_8->addWidget(checkBox_3); lineEdit4 = new QLineEdit(centralWidget); lineEdit4->setObjectName(QStringLiteral("lineEdit4")); horizontalLayout_8->addWidget(lineEdit4); horizontalLayout_7->addLayout(horizontalLayout_8); horizontalLayout_9 = new QHBoxLayout(); horizontalLayout_9->setSpacing(6); horizontalLayout_9->setObjectName(QStringLiteral("horizontalLayout_9")); checkBox_9 = new QCheckBox(centralWidget); checkBox_9->setObjectName(QStringLiteral("checkBox_9")); horizontalLayout_9->addWidget(checkBox_9); lineEdit5 = new QLineEdit(centralWidget); lineEdit5->setObjectName(QStringLiteral("lineEdit5")); horizontalLayout_9->addWidget(lineEdit5); horizontalLayout_7->addLayout(horizontalLayout_9); verticalLayout->addLayout(horizontalLayout_7); horizontalLayout_10 = new QHBoxLayout(); horizontalLayout_10->setSpacing(6); horizontalLayout_10->setObjectName(QStringLiteral("horizontalLayout_10")); horizontalLayout_11 = new QHBoxLayout(); horizontalLayout_11->setSpacing(6); horizontalLayout_11->setObjectName(QStringLiteral("horizontalLayout_11")); checkBox_10 = new QCheckBox(centralWidget); checkBox_10->setObjectName(QStringLiteral("checkBox_10")); horizontalLayout_11->addWidget(checkBox_10); lineEdit6 = new QLineEdit(centralWidget); lineEdit6->setObjectName(QStringLiteral("lineEdit6")); horizontalLayout_11->addWidget(lineEdit6); horizontalLayout_10->addLayout(horizontalLayout_11); horizontalLayout_12 = new QHBoxLayout(); horizontalLayout_12->setSpacing(6); horizontalLayout_12->setObjectName(QStringLiteral("horizontalLayout_12")); checkBox_11 = new QCheckBox(centralWidget); checkBox_11->setObjectName(QStringLiteral("checkBox_11")); horizontalLayout_12->addWidget(checkBox_11); lineEdit7 = new QLineEdit(centralWidget); lineEdit7->setObjectName(QStringLiteral("lineEdit7")); horizontalLayout_12->addWidget(lineEdit7); horizontalLayout_10->addLayout(horizontalLayout_12); verticalLayout->addLayout(horizontalLayout_10); horizontalLayout_13 = new QHBoxLayout(); horizontalLayout_13->setSpacing(6); horizontalLayout_13->setObjectName(QStringLiteral("horizontalLayout_13")); horizontalLayout_14 = new QHBoxLayout(); horizontalLayout_14->setSpacing(6); horizontalLayout_14->setObjectName(QStringLiteral("horizontalLayout_14")); checkBox_4 = new QCheckBox(centralWidget); checkBox_4->setObjectName(QStringLiteral("checkBox_4")); horizontalLayout_14->addWidget(checkBox_4); lineEdit8 = new QLineEdit(centralWidget); lineEdit8->setObjectName(QStringLiteral("lineEdit8")); horizontalLayout_14->addWidget(lineEdit8); horizontalLayout_13->addLayout(horizontalLayout_14); horizontalLayout_15 = new QHBoxLayout(); horizontalLayout_15->setSpacing(6); horizontalLayout_15->setObjectName(QStringLiteral("horizontalLayout_15")); checkBox_12 = new QCheckBox(centralWidget); checkBox_12->setObjectName(QStringLiteral("checkBox_12")); horizontalLayout_15->addWidget(checkBox_12); lineEdit9 = new QLineEdit(centralWidget); lineEdit9->setObjectName(QStringLiteral("lineEdit9")); horizontalLayout_15->addWidget(lineEdit9); horizontalLayout_13->addLayout(horizontalLayout_15); verticalLayout->addLayout(horizontalLayout_13); horizontalLayout_16 = new QHBoxLayout(); horizontalLayout_16->setSpacing(6); horizontalLayout_16->setObjectName(QStringLiteral("horizontalLayout_16")); horizontalLayout_17 = new QHBoxLayout(); horizontalLayout_17->setSpacing(6); horizontalLayout_17->setObjectName(QStringLiteral("horizontalLayout_17")); checkBox_13 = new QCheckBox(centralWidget); checkBox_13->setObjectName(QStringLiteral("checkBox_13")); horizontalLayout_17->addWidget(checkBox_13); lineEdit10 = new QLineEdit(centralWidget); lineEdit10->setObjectName(QStringLiteral("lineEdit10")); horizontalLayout_17->addWidget(lineEdit10); horizontalLayout_16->addLayout(horizontalLayout_17); horizontalLayout_18 = new QHBoxLayout(); horizontalLayout_18->setSpacing(6); horizontalLayout_18->setObjectName(QStringLiteral("horizontalLayout_18")); checkBox_14 = new QCheckBox(centralWidget); checkBox_14->setObjectName(QStringLiteral("checkBox_14")); horizontalLayout_18->addWidget(checkBox_14); lineEdit11 = new QLineEdit(centralWidget); lineEdit11->setObjectName(QStringLiteral("lineEdit11")); horizontalLayout_18->addWidget(lineEdit11); horizontalLayout_16->addLayout(horizontalLayout_18); verticalLayout->addLayout(horizontalLayout_16); horizontalLayout_19 = new QHBoxLayout(); horizontalLayout_19->setSpacing(6); horizontalLayout_19->setObjectName(QStringLiteral("horizontalLayout_19")); horizontalLayout_20 = new QHBoxLayout(); horizontalLayout_20->setSpacing(6); horizontalLayout_20->setObjectName(QStringLiteral("horizontalLayout_20")); checkBox_5 = new QCheckBox(centralWidget); checkBox_5->setObjectName(QStringLiteral("checkBox_5")); horizontalLayout_20->addWidget(checkBox_5); lineEdit12 = new QLineEdit(centralWidget); lineEdit12->setObjectName(QStringLiteral("lineEdit12")); horizontalLayout_20->addWidget(lineEdit12); horizontalLayout_19->addLayout(horizontalLayout_20); horizontalLayout_21 = new QHBoxLayout(); horizontalLayout_21->setSpacing(6); horizontalLayout_21->setObjectName(QStringLiteral("horizontalLayout_21")); checkBox_15 = new QCheckBox(centralWidget); checkBox_15->setObjectName(QStringLiteral("checkBox_15")); horizontalLayout_21->addWidget(checkBox_15); lineEdit13 = new QLineEdit(centralWidget); lineEdit13->setObjectName(QStringLiteral("lineEdit13")); horizontalLayout_21->addWidget(lineEdit13); horizontalLayout_19->addLayout(horizontalLayout_21); verticalLayout->addLayout(horizontalLayout_19); horizontalLayout_22 = new QHBoxLayout(); horizontalLayout_22->setSpacing(6); horizontalLayout_22->setObjectName(QStringLiteral("horizontalLayout_22")); horizontalLayout_23 = new QHBoxLayout(); horizontalLayout_23->setSpacing(6); horizontalLayout_23->setObjectName(QStringLiteral("horizontalLayout_23")); checkBox_16 = new QCheckBox(centralWidget); checkBox_16->setObjectName(QStringLiteral("checkBox_16")); horizontalLayout_23->addWidget(checkBox_16); lineEdit14 = new QLineEdit(centralWidget); lineEdit14->setObjectName(QStringLiteral("lineEdit14")); horizontalLayout_23->addWidget(lineEdit14); horizontalLayout_22->addLayout(horizontalLayout_23); horizontalLayout_24 = new QHBoxLayout(); horizontalLayout_24->setSpacing(6); horizontalLayout_24->setObjectName(QStringLiteral("horizontalLayout_24")); checkBox_17 = new QCheckBox(centralWidget); checkBox_17->setObjectName(QStringLiteral("checkBox_17")); horizontalLayout_24->addWidget(checkBox_17); lineEdit15 = new QLineEdit(centralWidget); lineEdit15->setObjectName(QStringLiteral("lineEdit15")); horizontalLayout_24->addWidget(lineEdit15); horizontalLayout_22->addLayout(horizontalLayout_24); verticalLayout->addLayout(horizontalLayout_22); horizontalLayout_25 = new QHBoxLayout(); horizontalLayout_25->setSpacing(6); horizontalLayout_25->setObjectName(QStringLiteral("horizontalLayout_25")); horizontalLayout_26 = new QHBoxLayout(); horizontalLayout_26->setSpacing(6); horizontalLayout_26->setObjectName(QStringLiteral("horizontalLayout_26")); checkBox_6 = new QCheckBox(centralWidget); checkBox_6->setObjectName(QStringLiteral("checkBox_6")); horizontalLayout_26->addWidget(checkBox_6); lineEdit16 = new QLineEdit(centralWidget); lineEdit16->setObjectName(QStringLiteral("lineEdit16")); horizontalLayout_26->addWidget(lineEdit16); horizontalLayout_25->addLayout(horizontalLayout_26); horizontalLayout_27 = new QHBoxLayout(); horizontalLayout_27->setSpacing(6); horizontalLayout_27->setObjectName(QStringLiteral("horizontalLayout_27")); checkBox_18 = new QCheckBox(centralWidget); checkBox_18->setObjectName(QStringLiteral("checkBox_18")); horizontalLayout_27->addWidget(checkBox_18); lineEdit17 = new QLineEdit(centralWidget); lineEdit17->setObjectName(QStringLiteral("lineEdit17")); horizontalLayout_27->addWidget(lineEdit17); horizontalLayout_25->addLayout(horizontalLayout_27); verticalLayout->addLayout(horizontalLayout_25); horizontalLayout_28 = new QHBoxLayout(); horizontalLayout_28->setSpacing(6); horizontalLayout_28->setObjectName(QStringLiteral("horizontalLayout_28")); horizontalLayout_29 = new QHBoxLayout(); horizontalLayout_29->setSpacing(6); horizontalLayout_29->setObjectName(QStringLiteral("horizontalLayout_29")); checkBox_19 = new QCheckBox(centralWidget); checkBox_19->setObjectName(QStringLiteral("checkBox_19")); horizontalLayout_29->addWidget(checkBox_19); lineEdit18 = new QLineEdit(centralWidget); lineEdit18->setObjectName(QStringLiteral("lineEdit18")); lineEdit18->setStyleSheet(QStringLiteral("")); horizontalLayout_29->addWidget(lineEdit18); horizontalLayout_28->addLayout(horizontalLayout_29); horizontalLayout_30 = new QHBoxLayout(); horizontalLayout_30->setSpacing(6); horizontalLayout_30->setObjectName(QStringLiteral("horizontalLayout_30")); checkBox_20 = new QCheckBox(centralWidget); checkBox_20->setObjectName(QStringLiteral("checkBox_20")); horizontalLayout_30->addWidget(checkBox_20); lineEdit19 = new QLineEdit(centralWidget); lineEdit19->setObjectName(QStringLiteral("lineEdit19")); horizontalLayout_30->addWidget(lineEdit19); horizontalLayout_28->addLayout(horizontalLayout_30); verticalLayout->addLayout(horizontalLayout_28); clearButton = new QPushButton(centralWidget); clearButton->setObjectName(QStringLiteral("clearButton")); clearButton->setMinimumSize(QSize(500, 0)); QFont font; font.setFamily(QStringLiteral("Arial")); font.setPointSize(12); font.setBold(false); font.setItalic(false); font.setWeight(9); clearButton->setFont(font); clearButton->setStyleSheet(QLatin1String("font: 75 12pt \"MS Shell Dlg 2\";\n" "font: 75 12pt \"Arial\";")); verticalLayout->addWidget(clearButton, 0, Qt::AlignHCenter); TaskList->setCentralWidget(centralWidget); mainToolBar = new QToolBar(TaskList); mainToolBar->setObjectName(QStringLiteral("mainToolBar")); TaskList->addToolBar(Qt::TopToolBarArea, mainToolBar); menuBar = new QMenuBar(TaskList); menuBar->setObjectName(QStringLiteral("menuBar")); menuBar->setGeometry(QRect(0, 0, 1166, 18)); menuAdd_Task = new QMenu(menuBar); menuAdd_Task->setObjectName(QStringLiteral("menuAdd_Task")); TaskList->setMenuBar(menuBar); menuBar->addAction(menuAdd_Task->menuAction()); menuAdd_Task->addAction(actionAddTask); menuAdd_Task->addSeparator(); menuAdd_Task->addAction(actionSet_WorkFlow_Title); retranslateUi(TaskList); QMetaObject::connectSlotsByName(TaskList); } // setupUi void retranslateUi(QMainWindow *TaskList) { TaskList->setWindowTitle(QApplication::translate("TaskList", "TaskList", 0)); actionAddTask->setText(QApplication::translate("TaskList", "AddTask", 0)); actionSet_WorkFlow_Title->setText(QApplication::translate("TaskList", "Set WorkFlow Title", 0)); checkBox->setText(QString()); checkBox_2->setText(QString()); checkBox_7->setText(QString()); checkBox_8->setText(QString()); checkBox_3->setText(QString()); checkBox_9->setText(QString()); checkBox_10->setText(QString()); checkBox_11->setText(QString()); checkBox_4->setText(QString()); checkBox_12->setText(QString()); checkBox_13->setText(QString()); checkBox_14->setText(QString()); checkBox_5->setText(QString()); checkBox_15->setText(QString()); checkBox_16->setText(QString()); checkBox_17->setText(QString()); checkBox_6->setText(QString()); checkBox_18->setText(QString()); checkBox_19->setText(QString()); lineEdit18->setText(QString()); checkBox_20->setText(QString()); clearButton->setText(QApplication::translate("TaskList", "Clear All", 0)); menuAdd_Task->setTitle(QApplication::translate("TaskList", "Tasks", 0)); } // retranslateUi }; namespace Ui { class TaskList: public Ui_TaskList {}; } // namespace Ui QT_END_NAMESPACE #endif // UI_MAINWINDOW_H
[ "dazdndcunfusd@gmail.com" ]
dazdndcunfusd@gmail.com
d3b0c9ac4da1bd276cc1d73ed09e575d6d964a4e
d0b52e0df39b5095894f40e480d789d13641739c
/old/ABC162/B.cpp
c1de14374cd371d384cbb4b6964b3b014209b084
[]
no_license
ha191180/Atcoder
71dd811650981c876b3b195cd7d48d147d26b564
8db27ca2b6de133476946decf6650f783602bec0
refs/heads/master
2021-07-09T10:34:19.944319
2020-09-22T23:15:33
2020-09-22T23:15:33
196,100,600
0
0
null
null
null
null
UTF-8
C++
false
false
222
cpp
#include <bits/stdc++.h> using namespace std; int main(){ int n; cin >> n; unsigned long long ans = 0; for (int i = 0; i <= n; i++) { if(i%5 && i%3) { ans += i; } } cout << ans << endl; }
[ "matuakr1212@gmail.com" ]
matuakr1212@gmail.com
edce067de2ddd850096b14004f6c6148c7c5568d
98285e7710f19e4c8fc7c00893301f9fefe8b545
/Recv/Recv.h
71725086f9a87bd805364a65c8ce319d41910377
[]
no_license
kathy-ling/FileTransTest
a0525b03abf9fa4abef2c0b55e5c3c2a247f5b60
3bfb1ae4db5073e2180fd767511f7f2150c221f8
refs/heads/master
2021-06-27T10:47:12.157296
2017-09-14T00:57:38
2017-09-14T00:57:38
103,467,485
0
0
null
null
null
null
UTF-8
C++
false
false
1,350
h
// Recv.h : main header file for the RECV application // #if !defined(AFX_RECV_H__D87AAD42_942B_44C1_A6C7_328AAC40AF64__INCLUDED_) #define AFX_RECV_H__D87AAD42_942B_44C1_A6C7_328AAC40AF64__INCLUDED_ #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 #ifndef __AFXWIN_H__ #error include 'stdafx.h' before including this file for PCH #endif #include "resource.h" // main symbols ///////////////////////////////////////////////////////////////////////////// // CRecvApp: // See Recv.cpp for the implementation of this class // class CRecvApp : public CWinApp { public: CRecvApp(); // Overrides // ClassWizard generated virtual function overrides //{{AFX_VIRTUAL(CRecvApp) public: virtual BOOL InitInstance(); //}}AFX_VIRTUAL // Implementation //{{AFX_MSG(CRecvApp) // NOTE - the ClassWizard will add and remove member functions here. // DO NOT EDIT what you see in these blocks of generated code ! //}}AFX_MSG DECLARE_MESSAGE_MAP() }; ///////////////////////////////////////////////////////////////////////////// //{{AFX_INSERT_LOCATION}} // Microsoft Visual C++ will insert additional declarations immediately before the previous line. #endif // !defined(AFX_RECV_H__D87AAD42_942B_44C1_A6C7_328AAC40AF64__INCLUDED_)
[ "tianling@163.com" ]
tianling@163.com
1ba91d7a83add98ba74ef843c24a978d414162e5
d3f36b4663be91d1c5d5f59e1c5271b2673a4376
/sharedlib/libbee/pgr-stereo-examples-libdc-2.0.2/simplestereo/simplestereo-profile.cpp
ba57dce2b0e2e576ae7d948e76b032e0bd332e51
[]
no_license
LCAD-UFES/carmen_lcad
73d2a642793ee3f43c02ddbc0e7189fcfda20637
0c08a6a4428b298946258359c68a13c2a9d9e736
refs/heads/master
2023-08-31T05:35:31.032096
2023-08-25T22:43:30
2023-08-25T22:43:30
45,568,899
91
54
null
2020-07-29T15:02:13
2015-11-04T21:33:42
C++
WINDOWS-1252
C++
false
false
11,159
cpp
/************************************************************************** * * Title: simplestereo-profile * Copyright: (C) 2006,2007,2008 Don Murray donm@ptgrey.com * * Description: * * Get an image set from a Bumblebee or Bumblebee2 via DMA transfer * using libdc1394 and process it with the Triclops stereo * library. Based loosely on 'grab_gray_image' from libdc1394 examples. * *------------------------------------------------------------------------- * License: LGPL * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * *************************************************************************/ //============================================================================= // Copyright © 2006,2007,2008 Point Grey Research, Inc. All Rights Reserved. // // This software is the confidential and proprietary information of Point // Grey Research, Inc. ("Confidential Information"). You shall not // disclose such Confidential Information and shall use it only in // accordance with the terms of the license agreement you entered into // with Point Grey Research Inc. // // PGR MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY OF THE // SOFTWARE, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE // IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR // PURPOSE, OR NON-INFRINGEMENT. PGR SHALL NOT BE LIABLE FOR ANY DAMAGES // SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING OR DISTRIBUTING // THIS SOFTWARE OR ITS DERIVATIVES. // //============================================================================= //============================================================================= // // simplestereo-profile.cpp // //============================================================================= //============================================================================= // System Includes //============================================================================= #include <stdlib.h> #include <stdio.h> #include <assert.h> #include <sys/time.h> #include <dc1394/conversions.h> #include <dc1394/control.h> #include <dc1394/utils.h> //============================================================================= // PGR Includes //============================================================================= #include "pgr_registers.h" #include "pgr_stereocam.h" //============================================================================= // a simple function to write a .pgm file int writePgm( char* szFilename, unsigned char* pucBuffer, int width, int height ) { FILE* stream; stream = fopen( szFilename, "wb" ); if( stream == NULL) { perror( "Can't open image file" ); return 1; } fprintf( stream, "P5\n%u %u 255\n", width, height ); fwrite( pucBuffer, width, height, stream ); fclose( stream ); return 0; } //============================================================================= // a simple function to write a .ppm file int writePpm( char* szFilename, unsigned char* pucBuffer, int width, int height ) { FILE* stream; stream = fopen( szFilename, "wb" ); if( stream == NULL) { perror( "Can't open image file" ); return 1; } fprintf( stream, "P6\n%u %u 255\n", width, height ); fwrite( pucBuffer, 3*width, height, stream ); fclose( stream ); return 0; } /*==== cleanup_and_exit() * This is called when the program exits and destroys the existing connections to the * 1394 drivers *====*/ void cleanup_and_exit( dc1394camera_t* camera ) { dc1394_capture_stop( camera ); dc1394_video_set_transmission( camera, DC1394_OFF ); dc1394_camera_free( camera ); exit( 1 ); } int main( int argc, char *argv[] ) { dc1394camera_t* camera; dc1394error_t err; dc1394_t * d; dc1394camera_list_t * list; unsigned int nThisCam; // Find cameras on the 1394 buses d = dc1394_new (); // Enumerate cameras connected to the PC err = dc1394_camera_enumerate (d, &list); if ( err != DC1394_SUCCESS ) { fprintf( stderr, "Unable to look for cameras\n\n" "Please check \n" " - if the kernel modules `ieee1394',`raw1394' and `ohci1394' " "are loaded \n" " - if you have read/write access to /dev/raw1394\n\n"); return 1; } if (list->num == 0) { fprintf( stderr, "No cameras found!\n"); return 1; } printf( "There were %d camera(s) found attached to your PC\n", list->num ); // Identify cameras. Use the first stereo camera that is found for ( nThisCam = 0; nThisCam < list->num; nThisCam++ ) { camera = dc1394_camera_new(d, list->ids[nThisCam].guid); if(!camera) { printf("Failed to initialize camera with guid %llx", list->ids[nThisCam].guid); continue; } printf( "Camera %d model = '%s'\n", nThisCam, camera->model ); if ( isStereoCamera(camera)) { printf( "Using this camera\n" ); break; } dc1394_camera_free(camera); } if ( nThisCam == list->num ) { printf( "No stereo cameras were detected\n" ); return 0; } // Free memory used by the camera list dc1394_camera_free_list (list); PGRStereoCamera_t stereoCamera; // query information about this stereo camera err = queryStereoCamera( camera, &stereoCamera ); if ( err != DC1394_SUCCESS ) { fprintf( stderr, "Cannot query all information from camera\n" ); cleanup_and_exit( camera ); } if ( stereoCamera.nBytesPerPixel != 2 ) { // can't handle XB3 3 bytes per pixel fprintf( stderr, "Example has not been updated to work with XB3 yet!\n" ); cleanup_and_exit( stereoCamera.camera ); } // set the capture mode printf( "Setting stereo video capture mode\n" ); err = setStereoVideoCapture( &stereoCamera ); if ( err != DC1394_SUCCESS ) { fprintf( stderr, "Could not set up video capture mode\n" ); cleanup_and_exit( stereoCamera.camera ); } // have the camera start sending us data printf( "Start transmission\n" ); err = startTransmission( &stereoCamera ); if ( err != DC1394_SUCCESS ) { fprintf( stderr, "Unable to start camera iso transmission\n" ); cleanup_and_exit( stereoCamera.camera ); } // Allocate all the buffers. // Unfortunately color processing is a bit inefficient because of the number of // data copies. Color data needs to be // - de-interleaved into separate bayer tile images // - color processed into RGB images // - de-interleaved to extract the green channel for stereo (or other mono conversion) // size of buffer for all images at mono8 unsigned int nBufferSize = stereoCamera.nRows * stereoCamera.nCols * stereoCamera.nBytesPerPixel; // allocate a buffer to hold the de-interleaved images unsigned char* pucDeInterlacedBuffer = new unsigned char[ nBufferSize ]; unsigned char* pucRGBBuffer = new unsigned char[ 3 * nBufferSize ]; unsigned char* pucGreenBuffer = new unsigned char[ nBufferSize ]; // do stereo TriclopsError e; TriclopsContext triclops; printf( "Getting TriclopsContext from camera (slowly)... \n" ); e = getTriclopsContextFromCamera( &stereoCamera, &triclops ); if ( e != TriclopsErrorOk ) { fprintf( stderr, "Can't get context from camera\n" ); cleanup_and_exit( camera ); return 1; } printf( "...done\n" ); // make sure we are in subpixel mode triclopsSetSubpixelInterpolation( triclops, 1 ); int nImages = 100; struct timeval start, end; gettimeofday( &start, NULL ); for ( int i = 0; i < nImages; i++ ) { printf( "Grabbing image %d...\r", i ); fflush( stdout ); TriclopsInput input; if ( stereoCamera.bColor ) { unsigned char* pucRightRGB = NULL; unsigned char* pucLeftRGB = NULL; unsigned char* pucCenterRGB = NULL; // get the images from the capture buffer and do all required processing // note: produces a TriclopsInput that can be used for stereo processing extractImagesColor( &stereoCamera, DC1394_BAYER_METHOD_NEAREST, pucDeInterlacedBuffer, pucRGBBuffer, pucGreenBuffer, &pucRightRGB, &pucLeftRGB, &pucCenterRGB, &input ); } else { unsigned char* pucRightMono = NULL; unsigned char* pucLeftMono = NULL; unsigned char* pucCenterMono = NULL; // get the images from the capture buffer and do all required processing // note: produces a TriclopsInput that can be used for stereo processing extractImagesMono( &stereoCamera, pucDeInterlacedBuffer, &pucRightMono, &pucLeftMono, &pucCenterMono, &input ); } // do stereo processing e = triclopsRectify( triclops, &input ); if ( e != TriclopsErrorOk ) { fprintf( stderr, "triclopsRectify failed!\n" ); triclopsDestroyContext( triclops ); cleanup_and_exit( camera ); return 1; } e = triclopsStereo( triclops ); if ( e != TriclopsErrorOk ) { fprintf( stderr, "triclopsStereo failed!\n" ); triclopsDestroyContext( triclops ); cleanup_and_exit( camera ); return 1; } } printf( "\n" ); gettimeofday( &end, NULL ); double dElapsedMs = (end.tv_sec - start.tv_sec)*1000.0 + (end.tv_usec - start.tv_usec)/1000.0; double dFps = (double) nImages * 1000.0 / dElapsedMs; printf( "%f frames per second\n", dFps ); printf( "Stop transmission\n" ); // Stop data transmission if ( dc1394_video_set_transmission( stereoCamera.camera, DC1394_OFF ) != DC1394_SUCCESS ) { fprintf( stderr, "Couldn't stop the camera?\n" ); } // get and save the rectified and disparity images TriclopsImage image; triclopsGetImage( triclops, TriImg_RECTIFIED, TriCam_REFERENCE, &image ); triclopsSaveImage( &image, "rectified.pgm" ); printf( "wrote 'rectified.pgm'\n" ); TriclopsImage16 image16; triclopsGetImage16( triclops, TriImg16_DISPARITY, TriCam_REFERENCE, &image16 ); triclopsSaveImage16( &image16, "disparity.pgm" ); printf( "wrote 'disparity.pgm'\n" ); delete[] pucDeInterlacedBuffer; delete[] pucRGBBuffer; delete[] pucGreenBuffer; // close camera cleanup_and_exit( camera ); return 0; }
[ "alberto@lcad.inf.ufes.br" ]
alberto@lcad.inf.ufes.br
2c519e15583f529cdc2696d0dba97af0374f73fa
439dff3271c1da5ea92f4c735bb9f7c5b7d078d8
/3DEngine/src/ShaderCreator.h
9ab46348c47b7bb3e0d5d71a315dab20fd1d2ee5
[ "Apache-2.0" ]
permissive
tobbep1997/Bitfrost_2.0
0e8a85ae0677718d0fd262435a2236be39225eaf
a092db19d4658062554b7df759f28439fc1ad4f8
refs/heads/master
2020-04-07T09:16:40.977642
2018-12-01T20:06:38
2018-12-01T20:06:38
158,246,251
0
0
null
null
null
null
UTF-8
C++
false
false
8,491
h
#pragma once #include <d3d11_1.h> #include <d3dcompiler.h> #include <debugapi.h> #include <comdef.h> #pragma comment (lib, "d3d11.lib") #pragma comment (lib, "d3dcompiler.lib") /* Copyright (Joa)king Trossvik 1856 */ #include <iostream> namespace ShaderCreator //Maybe subject to change { inline HRESULT CreateVertexShader(ID3D11Device* device, ID3D11VertexShader*& vertexShader, const LPCWSTR fileName, const LPCSTR entryPoint, D3D11_INPUT_ELEMENT_DESC inputDesc[], int arraySize, ID3D11InputLayout*& inputLayout) { HRESULT hr; HRESULT shaderError; ID3DBlob* pVS = nullptr; ID3DBlob * errorBlob = nullptr; shaderError = D3DCompileFromFile( fileName, // filename nullptr, // optional macros D3D_COMPILE_STANDARD_FILE_INCLUDE, // optional include files entryPoint, // entry point "vs_5_0", // shader model (tarGet) 0, // shader compile options 0, // effect compile options &pVS, // double pointer to ID3DBlob &errorBlob // pointer for Error Blob messages. ); //This is for debugging, if we miss a file or whatever the hr will tell us that if (FAILED(shaderError)) { _com_error err(shaderError); OutputDebugString(err.ErrorMessage()); OutputDebugStringA((char*)" :Vertex Shader:"); std::cout << ((char*)errorBlob->GetBufferPointer()); errorBlob->Release(); if (pVS) { pVS->Release(); } return shaderError; } //Yes the program will crash if we hit the debugging //But there is no reasen to keep the program going, it will only mess with the shaders //So this is to shorten DebugTime device->CreateVertexShader(pVS->GetBufferPointer(), pVS->GetBufferSize(), nullptr, &vertexShader); if (FAILED(hr = device->CreateInputLayout(inputDesc, arraySize, pVS->GetBufferPointer(), pVS->GetBufferSize(), &inputLayout))) { _com_error err(hr); OutputDebugString(err.ErrorMessage()); OutputDebugStringA((char*)" :Vertex Shader:"); pVS->Release(); } pVS->Release(); return shaderError; } inline HRESULT CreateVertexShader(ID3D11Device* device, ID3D11VertexShader*& vertexShader, const LPCWSTR fileName, const LPCSTR entryPoint) { HRESULT hr; ID3DBlob* pVS = nullptr; ID3DBlob * errorBlob = nullptr; hr = D3DCompileFromFile( fileName, // filename nullptr, // optional macros D3D_COMPILE_STANDARD_FILE_INCLUDE, // optional include files entryPoint, // entry point "vs_5_0", // shader model (tarGet) 0, // shader compile options 0, // effect compile options &pVS, // double pointer to ID3DBlob &errorBlob // pointer for Error Blob messages. ); //This is for debugging, if we miss a file or whatever the hr will tell us that if (FAILED(hr)) { _com_error err(hr); OutputDebugString(err.ErrorMessage()); OutputDebugStringA((char*)" :Vertex Shader:"); std::cout << ((char*)errorBlob->GetBufferPointer()); errorBlob->Release(); if (pVS) { pVS->Release(); } return hr; } //Yes the program will crash if we hit the debugging //But there is no reasen to keep the program going, it will only mess with the shaders //So this is to shorten DebugTime device->CreateVertexShader(pVS->GetBufferPointer(), pVS->GetBufferSize(), nullptr, &vertexShader); pVS->Release(); return hr; } inline HRESULT CreateDomainShader(ID3D11Device* device, ID3D11DomainShader*& domainShader, const LPCWSTR fileName, const LPCSTR entryPoint = "main") { HRESULT hr = 0; ID3DBlob* pDS = nullptr; ID3DBlob * errorBlob = nullptr; D3DCompileFromFile( fileName, // filename nullptr, // optional macros D3D_COMPILE_STANDARD_FILE_INCLUDE, // optional include files entryPoint, // entry point "ds_5_0", // shader model (tarGet) 0, // shader compile options 0, // effect compile options &pDS, // double pointer to ID3DBlob &errorBlob // pointer for Error Blob messages. ); if (FAILED(hr)) { _com_error err(hr); OutputDebugString(err.ErrorMessage()); OutputDebugStringA((char*)" :Domain Shader:"); std::cout << ((char*)errorBlob->GetBufferPointer()); errorBlob->Release(); if (pDS) { pDS->Release(); } return hr; } device->CreateDomainShader(pDS->GetBufferPointer(), pDS->GetBufferSize(), nullptr, &domainShader); pDS->Release(); return hr; } inline HRESULT CreateHullShader(ID3D11Device* device, ID3D11HullShader*& hullShader, const LPCWSTR fileName, const LPCSTR entryPoint = "main") { HRESULT hr; ID3DBlob* pHS = nullptr; ID3DBlob * errorBlob = nullptr; hr = D3DCompileFromFile( fileName, // filename nullptr, // optional macros D3D_COMPILE_STANDARD_FILE_INCLUDE, // optional include files entryPoint, // entry point "hs_5_0", // shader model (tarGet) 0, // shader compile options 0, // effect compile options &pHS, // double pointer to ID3DBlob &errorBlob // pointer for Error Blob messages. ); if (FAILED(hr)) { _com_error err(hr); OutputDebugString(err.ErrorMessage()); OutputDebugStringA((char*)" :Hull Shader:"); std::cout << ((char*)errorBlob->GetBufferPointer()); errorBlob->Release(); if (pHS) { pHS->Release(); } return hr; } device->CreateHullShader(pHS->GetBufferPointer(), pHS->GetBufferSize(), nullptr, &hullShader); pHS->Release(); return hr; } inline HRESULT CreateGeometryShader(ID3D11Device* device, ID3D11GeometryShader*& geometryShader, const LPCWSTR fileName, const LPCSTR entryPoint = "main") { HRESULT hr; ID3DBlob* pGS = nullptr; ID3DBlob * errorBlob = nullptr; hr = D3DCompileFromFile( fileName, // filename nullptr, // optional macros D3D_COMPILE_STANDARD_FILE_INCLUDE, // optional include files entryPoint, // entry point "gs_5_0", // shader model (tarGet) 0, // shader compile options 0, // effect compile options &pGS, // double pointer to ID3DBlob &errorBlob // pointer for Error Blob messages. ); if (FAILED(hr)) { _com_error err(hr); OutputDebugString(err.ErrorMessage()); OutputDebugStringA((char*)" :Geometry Shader:"); std::cout << ((char*)errorBlob->GetBufferPointer()); errorBlob->Release(); if (pGS) { pGS->Release(); } return hr; } device->CreateGeometryShader(pGS->GetBufferPointer(), pGS->GetBufferSize(), nullptr, &geometryShader); pGS->Release(); return hr; } inline HRESULT CreatePixelShader(ID3D11Device* device, ID3D11PixelShader*& pixelShader, const LPCWSTR fileName, const LPCSTR entryPoint = "main") { HRESULT hr; ID3DBlob* pPS = nullptr; ID3DBlob * errorBlob = nullptr; hr = D3DCompileFromFile( fileName, // filename nullptr, // optional macros D3D_COMPILE_STANDARD_FILE_INCLUDE, // optional include files entryPoint, // entry point "ps_5_0", // shader model (tarGet) 0, // shader compile options 0, // effect compile options &pPS, // double pointer to ID3DBlob &errorBlob // pointer for Error Blob messages. ); if (FAILED(hr)) { _com_error err(hr); OutputDebugString(err.ErrorMessage()); OutputDebugStringA((char*)" :Pixel Shader:"); std::cout << ((char*)errorBlob->GetBufferPointer()); errorBlob->Release(); if (pPS) { pPS->Release(); } return hr; } device->CreatePixelShader(pPS->GetBufferPointer(), pPS->GetBufferSize(), nullptr, &pixelShader); pPS->Release(); return hr; } inline HRESULT CreateComputeShader(ID3D11Device* device, ID3D11ComputeShader*& computeShader, const LPCWSTR fileName, const LPCSTR entryPoint = "main") { HRESULT hr; ID3DBlob* pCS = nullptr; ID3DBlob * errorBlob = nullptr; hr = D3DCompileFromFile( fileName, // filename nullptr, // optional macros D3D_COMPILE_STANDARD_FILE_INCLUDE, // optional include files entryPoint, // entry point "cs_5_0", // shader model (tarGet) 0, // shader compile options 0, // effect compile options &pCS, // double pointer to ID3DBlob &errorBlob // pointer for Error Blob messages. ); if (FAILED(hr)) { _com_error err(hr); OutputDebugString(err.ErrorMessage()); OutputDebugStringA((char*)" :Compute Shader:"); std::cout << ((char*)errorBlob->GetBufferPointer()); errorBlob->Release(); if (pCS) { pCS->Release(); } return hr; } device->CreateComputeShader(pCS->GetBufferPointer(), pCS->GetBufferSize(), nullptr, &computeShader); pCS->Release(); return hr; } }
[ "tobbe.pogen@live.se" ]
tobbe.pogen@live.se
d1da59d1134f9d7d0bc002510eb6bb72601ffec7
4e5603d18ddb236ea2b7cb7bf55b1020bb20c9c2
/uoj/p35.cpp
888efaef4513fa6934e748c73f229b5c9195aa53
[ "Unlicense" ]
permissive
huanghongxun/ACM
0c6526ea8e4aeab44d906444cada2870e4dfb137
b7595bbe6c0d82ceb271e81fca3e787dc4060a55
refs/heads/master
2021-01-20T05:41:23.163401
2017-12-14T07:50:59
2017-12-14T07:50:59
101,464,800
3
0
null
null
null
null
UTF-8
C++
false
false
1,122
cpp
#include <cstdio> #include <cstring> #define rep(i,j,k) for(i=j;i<k;i++) #define MAXN 200005 int sa[MAXN], rank[MAXN], wa[MAXN], wb[MAXN], height[MAXN], z[MAXN], bucket[MAXN]; char s[MAXN]; void sort(int *x, int *y, int n, int m) { int i; rep(i,0,m) bucket[i]=0; rep(i,0,n) bucket[x[y[i]]]++; rep(i,1,m) bucket[i]+=bucket[i-1]; for(i=n-1;i>=0;i--) sa[--bucket[x[y[i]]]]=y[i]; } void da(int n, int m) { int i, j, p, *x=wa, *y=wb, *t; rep(i,0,n) x[i]=s[i],z[i]=i; sort(x,z,n,m); for(j=1,p=1;p<n;j*=2,m=p) { for(p=0,i=n-j;i<n;i++) y[p++]=i; rep(i,0,n) if(sa[i]>=j) y[p++]=sa[i]-j; sort(x,y,n,m); for(t=x,x=y,y=t,p=1,x[sa[0]]=0,i=1;i<n;i++) x[sa[i]]=y[sa[i]]==y[sa[i-1]]&&y[sa[i]+j]==y[sa[i-1]+j]?p-1:p++; } } void calHeight(int n) { int i, j, k = 0; for(i=1;i<=n;i++) rank[sa[i]]=i; rep(i,0,n) { if(k) k--; j=sa[rank[i]-1]; while(s[i+k]==s[j+k])k++; height[rank[i]]=k; } } int main() { scanf("%s", s); int n = strlen(s); s[n]=0; da(n+1, 250); calHeight(n); for(int i=1;i<=n;i++) printf("%d ", sa[i]+1); printf("\n"); for(int i=2;i<=n;i++) printf("%d ", height[i]); return 0; }
[ "huanghongxun2008@126.com" ]
huanghongxun2008@126.com
a655659272e1c22af19791c5c68e6c4a5262efba
2ba94892764a44d9c07f0f549f79f9f9dc272151
/Engine/Plugins/Experimental/CodeEditor/Source/CodeEditor/Private/CodeProjectFactory.cpp
89e8f151926c3e77382fc1458ec0e37d0f367642
[ "BSD-2-Clause", "LicenseRef-scancode-proprietary-license" ]
permissive
PopCap/GameIdea
934769eeb91f9637f5bf205d88b13ff1fc9ae8fd
201e1df50b2bc99afc079ce326aa0a44b178a391
refs/heads/master
2021-01-25T00:11:38.709772
2018-09-11T03:38:56
2018-09-11T03:38:56
37,818,708
0
0
BSD-2-Clause
2018-09-11T03:39:05
2015-06-21T17:36:44
null
UTF-8
C++
false
false
684
cpp
// Copyright 1998-2014 Epic Games, Inc. All Rights Reserved. #include "CodeEditorPrivatePCH.h" #include "CodeProjectFactory.h" #define LOCTEXT_NAMESPACE "CodeEditor" UCodeProjectFactory::UCodeProjectFactory(const class FObjectInitializer& ObjectInitializer) : Super(ObjectInitializer) { bCreateNew = true; bEditAfterNew = true; SupportedClass = UCodeProject::StaticClass(); } UObject* UCodeProjectFactory::FactoryCreateNew(UClass* Class, UObject* InParent, FName Name, EObjectFlags Flags, UObject* Context, FFeedbackContext* Warn) { UCodeProject* NewCodeProject = NewObject<UCodeProject>(InParent, Class, Name, Flags); return NewCodeProject; } #undef LOCTEXT_NAMESPACE
[ "dkroell@acm.org" ]
dkroell@acm.org
ecde5ed585e18fd97f730b42c181ca5e973549b6
3841f7991232e02c850b7e2ff6e02712e9128b17
/小浪底泥沙三维/EV_Xld/jni/src/EV_Spatial3DDataset_Java/wrapper/meshtemplategeometryfactory_wrapperjava.cpp
73acab2803bc3b5783556bf12946d3d9446d4e4b
[]
no_license
15831944/BeijingEVProjects
62bf734f1cb0a8be6fed42cf6b207f9dbdf99e71
3b5fa4c4889557008529958fc7cb51927259f66e
refs/heads/master
2021-07-22T14:12:15.106616
2017-10-15T11:33:06
2017-10-15T11:33:06
null
0
0
null
null
null
null
UTF-8
C++
false
false
2,162
cpp
/* This file is produced by the JNI AutoWrapper Utility Copyright (c) 2012 by EarthView Image Inc */ #include "spatial3ddataset/meshtemplategeometryfactory.h" #include <jni.h> #include "core_java/global_reference.h" #include "core_java/jni_load.h" #include <typeinfo> namespace EarthView { namespace World { namespace Spatial3D { namespace Dataset { extern "C" JNIEXPORT jlong JNICALL Java_com_earthview_world_spatial3d_dataset_MeshTemplateGeometryFactory_getSingletonPtr_1void(JNIEnv *__env , jclass __clazz) { EarthView::World::Spatial3D::Dataset::CMeshTemplateGeometryFactory* __values1 = EarthView::World::Spatial3D::Dataset::CMeshTemplateGeometryFactory::getSingletonPtr(); jlong __values1_j = (jlong) __values1; return __values1_j; } extern "C" JNIEXPORT void JNICALL Java_com_earthview_world_spatial3d_dataset_MeshTemplateGeometryFactory_releaseSingleton_1void(JNIEnv *__env , jclass __clazz) { EarthView::World::Spatial3D::Dataset::CMeshTemplateGeometryFactory::releaseSingleton(); } extern "C" JNIEXPORT jlong JNICALL Java_com_earthview_world_spatial3d_dataset_MeshTemplateGeometryFactory_createInstance_1void(JNIEnv *__env , jobject __thiz, jlong pObjXXXX) { EarthView::World::Spatial3D::Dataset::CMeshTemplateGeometryFactory *pObjectX = (EarthView::World::Spatial3D::Dataset::CMeshTemplateGeometryFactory*) pObjXXXX; EarthView::World::Spatial3D::Dataset::CMeshTemplateGeometry* __values1 = pObjectX->createInstance(); jlong __values1_j = (jlong) __values1; return __values1_j; } extern "C" JNIEXPORT void JNICALL Java_com_earthview_world_spatial3d_dataset_MeshTemplateGeometryFactory_releaseInstance_1CMeshTemplateGeometry(JNIEnv *__env , jobject __thiz, jlong pObjXXXX, jlong geom_j) { EarthView::World::Spatial3D::Dataset::CMeshTemplateGeometry *geom = (EarthView::World::Spatial3D::Dataset::CMeshTemplateGeometry*) geom_j; EarthView::World::Spatial3D::Dataset::CMeshTemplateGeometryFactory *pObjectX = (EarthView::World::Spatial3D::Dataset::CMeshTemplateGeometryFactory*) pObjXXXX; pObjectX->releaseInstance(geom); } } } } }
[ "yanguanqi@aliyun.com" ]
yanguanqi@aliyun.com
06341fb021e29903f5c1a19ce468e0091f06e3d4
3abf20b792ab0cf15f5aef05e23e5e091b6b8368
/examples/surfaces/mesh/mesh_4.cpp
c745de3a9fad5dae6d4f01ea3175e88902d47025
[ "MIT" ]
permissive
district10/matplotplusplus
e3ee8ead626c5f3ec012d0ca3ba6e4f4e05f8e55
529ef901048e5edf9b09a1f135d546d937af532e
refs/heads/master
2022-12-08T16:51:35.102099
2020-08-29T23:55:33
2020-08-29T23:55:33
291,371,000
1
1
MIT
2020-08-30T00:22:44
2020-08-30T00:22:43
null
UTF-8
C++
false
false
184
cpp
#include <cmath> #include <matplot/matplot.h> int main() { using namespace matplot; auto [X, Y, Z] = peaks(); mesh(X, Y, Z)->hidden_3d(false); wait(); return 0; }
[ "alandefreitas@gmail.com" ]
alandefreitas@gmail.com
060bb82a9fa1dbcb7bdd62fdf6cbc95fb1810633
bc9426aad7ac41817b9b3637ff68e11de99759e7
/src/hex_param/remove_surface_wedge.h
63c5d7ddefd271373d17e81c7baa5b0044293698
[]
no_license
ab1153/polycube
779af55dcbe4ac92311805c02a4c7b7a81c3b86b
b8a8b752360bc91f6eb9121e7d70df9c0b7b4bf1
refs/heads/master
2021-01-03T08:17:29.034876
2014-12-09T16:10:57
2014-12-09T16:10:57
null
0
0
null
null
null
null
UTF-8
C++
false
false
12,649
h
#ifndef REMOVE_SURFACE_WEDGE_H #define REMOVE_SURFACE_WEDGE_H #include "../common/def.h" #include <jtflib/mesh/mesh.h> #include "topology_analysis.h" #include <boost/unordered_set.hpp> #include <boost/unordered_map.hpp> /** * @brief this function is used to remove surface wedge, surface degeneration * consists of many complex cases, currently I can only handle simple * case: one patch which is inside another patch * * @param tet input original tet mesh * @param node input node * @param cut_tet input cut_tet * @param cut_node input cut_node * @param inner_face_jump_type input inner_face_jump_type * @param surface_type the initial surface typ, and will be modified * @param loop_points_in_cut all degenerated points detected by graph * @return int return 0 if works fine, or return non-zeros */ int remove_surface_wedge( const matrixst & tet, const matrixd &node, const matrixst &cut_tet, const matrixd & cut_node, const std::vector<std::pair<size_t,size_t> > &g_unknown_face_pair, const boost::unordered_map<std::pair<size_t,size_t>,size_t > & restricted_edge_from_graph, const bool use_uvw_restricted_surface_type, boost::unordered_map<std::pair<size_t,size_t>,size_t> & inner_face_jump_type, matrixst & new_tet, matrixd & new_node, boost::unordered_map<size_t,size_t> & surface_type_cut, matrixd * zyz_ptr = 0); int remove_face_degeneration_by_splitting( jtf::mesh::face2tet_adjacent &fa, boost::unordered_map<size_t,size_t> &surface_type_original, zjucad::matrix::matrix<double> &new_node, zjucad::matrix::matrix<size_t> &new_tet, boost::unordered_map<std::pair<size_t,size_t>,size_t> &inner_face_jump_type); ///** // * NOT USED ANY MORE !!!!!!!!! // * @brief this function is used to remove each degenerated patch, in this // * function, it will only handle those local degenerated ones, here I // * defined a local one as: a patch which is detected by checking its // * arounding degenerated points, if all boundary points of this patch // * is degenerated and all boundary points are not critical, flip the type // * // * @param patches input patches which will be degenerated // * @param orfap input one_ring_face_at_point for surface points // * @param outside_face_idx input outside_face_idx // * @param boundary_points boundary points for each patch // * @param surface type inital surface type which will be modified. // * @return int return 0 if works fine, or return non-zeros // */ //int remove_surface_degenerated_patch_first_filter( // const std::vector<boost::unordered_set<size_t> > & patchs, // const jtf::mesh::one_ring_face_at_point & orfap, // const matrixst & outside_face_idx, // const std::vector<boost::unordered_set<size_t> > & boundary_points, // boost::unordered_map<size_t,size_t> & surface_type); /** * @brief this function is used to detect whether a surface points is critical * points, which means the arounding surface type of such point is fractional * For example: * 1. 0 0 1 1 2 2 is not critical * 2. 0 1 0 1 is critical * * @param arounding_faces input arounding faces, !!!!!! MUST BE ORDERED !!!!! * @param outside_face_idx input outside face idx * @param surface type input surface type, 0/1/2 * @return bool true for critical point, false for not */ bool is_critical_point( const std::vector<size_t> & arounding_faces, const matrixst & outside_face_idx, const boost::unordered_map<size_t,size_t> & surface_type); int remove_isolated_patch( const matrixst & tet, const matrixd &node, const jtf::mesh::face2tet_adjacent & fa, const std::vector<boost::unordered_set<size_t> > patches, const boost::unordered_map<size_t, boost::unordered_set<size_t> > &patch_links_info, boost::unordered_map<size_t,size_t> & surface_type_original); int remove_fractional_degree_two_patches( const matrixst & tet, const matrixd &node, const jtf::mesh::face2tet_adjacent & fa, const std::vector<boost::unordered_set<size_t> > patches, const boost::unordered_map<size_t, boost::unordered_set<size_t> > &patch_links_info, boost::unordered_map<size_t,size_t> & surface_type_original, const boost::unordered_map<std::pair<size_t,size_t>, double> & patch2patch_len, const size_t fractional_cell_num = -1); /////////////////////////////////////////////////////////////////////// int remove_multi_orientation_group( const matrixd & node, const jtf::mesh::edge2cell_adjacent & ea, const jtf::mesh::face2tet_adjacent & fa, const matrixst & outside_face, const matrixst & outside_face_idx, const boost::unordered_map<size_t, matrixd> & surface_normal, const boost::unordered_map<size_t,size_t> &surface_type_orient_orig, const std::vector<boost::unordered_set<size_t> > &patches, const boost::unordered_map<size_t, boost::unordered_set<size_t> > &patch_links_info, const size_t N_ring_to_modify, boost::unordered_map<size_t,size_t> &surface_type_original); int modify_surface_type_to_remove_separated_edges( const std::deque<std::pair<size_t,size_t> > & one_chain, const boost::unordered_set<size_t> &one_patch, const matrixst & outside_face_idx, const boost::unordered_map<size_t, matrixd> & surface_normal, boost::unordered_map<size_t,size_t> & surface_type_original, const jtf::mesh::edge2cell_adjacent &ea, const jtf::mesh::N_ring_face_at_point &nrfap, const size_t N_ring_to_modify); /** * @brief this function is used to extrace surface patch, it uses surface * restricted type and cut edge to depart surface patch * * @param tet input tet mesh * @param cut_tet input cut tetmesh * @param node input node of tet mesh * @param cut_node input node of cut tet mesh * @param cut_tet2tet input cut_tet2tet relations * @param outside_face input outside * @param outside_face_idx input outside face idx mapping * @param fa inputjtf::mesh::face2tet_adjacent of original tetmesh * @param fa_cut inputjtf::mesh::face2tet_adjacent of cut tetmesh * @param ea input edge2face adjacent of outside face * @param g_unknown_face_pair input g_unknown_faces, also the cutting faces * @param surface_type_original input surface type * @param patches output patches * @param group_linking_info output group linking info * @return 0 if work ok, or return non-zeros */ int extract_surface_patch_graph( const matrixst & tet, const matrixst & cut_tet, const matrixd & node, const matrixst & cut_tet2tet, const matrixst & outside_face, const matrixst & outside_face_idx, const jtf::mesh::face2tet_adjacent & fa, const jtf::mesh::face2tet_adjacent & fa_cut, const jtf::mesh::edge2cell_adjacent & ea, const std::vector<std::pair<size_t,size_t> > & g_unknown_face_pair, const boost::unordered_map<size_t,size_t> & surface_type_original, std::vector<boost::unordered_set<size_t> > & patches, boost::unordered_map<size_t,boost::unordered_set<size_t> > & group_linking_info, boost::unordered_map<std::pair<size_t,size_t>,double> *patch_to_patch_boundary_len = 0); int remove_fractional_patches_by_degenerated_edges( const matrixst & tet, const matrixd & node, const jtf::mesh::face2tet_adjacent &fa, const jtf::mesh::edge2cell_adjacent & ea, const boost::unordered_set<std::pair<size_t,size_t> > & degenerated_edges, boost::unordered_map<size_t,size_t> &surface_type_original); //////////////////////////////////////////////////////////////////////// int gather_restricted_edges_on_polycube( const matrixst & tet, const jtf::mesh::edge2cell_adjacent & ea, const matrixst & outside_face_idx, const boost::unordered_map<size_t,size_t> & surface_type_original, boost::unordered_map<std::pair<size_t,size_t>,size_t > & restricted_edges); int remove_one_face_degeneration( const matrixst &tet, const matrixst & outside_face, const matrixst & outside_face_idx, const boost::unordered_map<std::pair<size_t,size_t>,size_t > & restricted_edges, boost::unordered_map<size_t,size_t> &surface_type_original); int remove_surface_zigzag_by_restricted_edges( const matrixst &tet, const matrixd & node, const matrixst & outside_face_idx, const jtf::mesh::edge2cell_adjacent & ea, const boost::unordered_map<std::pair<size_t,size_t>,size_t> &restricted_edges, const jtf::mesh::face2tet_adjacent &fa, matrixst &new_tet, matrixd &new_node, boost::unordered_map<size_t,size_t> & surface_type, boost::unordered_map<std::pair<size_t,size_t>,size_t> & inne_face_jump_type, matrixd * zyz_ptr = 0); int remove_surface_zigzag_by_restricted_edges_from_graph( const matrixst &tet, const matrixd &node, const matrixst &outside_face_idx, jtf::mesh::face2tet_adjacent &fa, const jtf::mesh::edge2cell_adjacent &ea, const boost::unordered_map<std::pair<size_t,size_t>,size_t> &restricted_edge_from_graph_orig, boost::unordered_map<size_t,size_t> &surface_type_original, matrixst &ew_tet, matrixd &new_node, boost::unordered_map<std::pair<size_t,size_t>,size_t> & inner_face_jump_type, matrixd * zyz_ptr = 0); //! @brief This function assume all local degenerations has been cleaned, all left // is global degeneration which we should remove one whole patch or break through // between two patches int remove_degenerated_patch_and_break_through( const matrixst &tet, const matrixd &node, const matrixst &cut_tet, const matrixst &cut_tet2tet, const jtf::mesh::face2tet_adjacent & fa, const jtf::mesh::face2tet_adjacent & fa_cut, const jtf::mesh::edge2cell_adjacent & ea, const std::vector<std::pair<size_t,size_t> > & g_unknown_face_pair, const matrixst & outside_face, const matrixst & outside_face_idx, const matrixd & polycube_node, boost::unordered_map<size_t,size_t> &surface_type); //////////////////////////////////////////////////////////////////////////// int remove_surface_critcial_points( const matrixst &tet, const matrixd &node, const matrixst &outside_face, const matrixst &outside_face_idx, const jtf::mesh::face2tet_adjacent &fa, const jtf::mesh::edge2cell_adjacent &ea, boost::unordered_map<size_t,size_t> & surface_type); int extract_relax_surface( const matrixst & tet, const matrixd & node, const boost::unordered_map<size_t,size_t> &surface_type, const boost::unordered_set<size_t> &loop_points, boost::unordered_map<size_t,size_t> &restricted_surface_type); //! @brief this function is used to remove compound edge on surface by collapsing // edges // @return 0: remove compound edge succeed // 1: there is no compound edge need to collapse // other: shit happens int collapse_degenerated_edges( matrixst & tet, matrixd & node, jtf::mesh::face2tet_adjacent & fa, boost::unordered_map<std::pair<size_t,size_t>,size_t> & inner_face_jump_type, boost::unordered_map<size_t,size_t> & surface_type, boost::unordered_map<std::pair<size_t,size_t>,size_t> & restricted_edges); int remove_dgenerated_patch_by_modify_type( const matrixst &tet, const matrixst & cut_tet, const matrixd &node, const jtf::mesh::face2tet_adjacent & fa, const matrixst & outside_face, const matrixst & outside_face_idx, const jtf::mesh::edge2cell_adjacent & ea, const std::vector<std::pair<size_t,size_t> > & g_unknown_face_pair, boost::unordered_map<size_t,size_t> &surface_type); int straighten_patch_boundary( const matrixst &outside_face, const matrixst &outside_face_idx, const jtf::mesh::edge2cell_adjacent &ea, boost::unordered_map<size_t,size_t> &surface_type_original); int straighten_patch_boundary( const matrixst &outside_face, const matrixst &outside_face_idx, const jtf::mesh::edge2cell_adjacent &ea, const jtf::mesh::face2tet_adjacent &fa, boost::unordered_map<size_t,size_t> &surface_type_original, const boost::unordered_map<std::pair<size_t,size_t>,size_t> & rot_type); int update_surface_type( const jtf::mesh::face2tet_adjacent & fa, const jtf::mesh::face2tet_adjacent & fa_new, const boost::unordered_map<std::vector<size_t>,std::vector<size_t> > & f2omap, boost::unordered_map<size_t,size_t> & surface_type); int update_inner_face_jump_type( const jtf::mesh::face2tet_adjacent &fa_new, const matrixst & tet_idx_map, boost::unordered_map<std::pair<size_t,size_t>,size_t> & inner_face_jump_type); #endif
[ "jtf198711@gmail.com" ]
jtf198711@gmail.com
00b37faa99797c2b5ca73fcc757596751b1a42d9
d7ec6bf4bb59f225b5047523a281215e235201fe
/libs/polygon/doc/tutorial/parse_layout.hpp
47a52022eb31e3d1b051778232128d054aed2607
[ "BSL-1.0" ]
permissive
avasopht/boost_1_55_0-llvm
0212c6371996019c268f05071d21d432b2e251c3
fba05de0ba1c2ee9011d8ef3cb9121827bae1b4d
refs/heads/master
2020-05-29T11:58:07.757068
2014-09-03T20:55:23
2014-09-03T20:55:23
null
0
0
null
null
null
null
UTF-8
C++
false
false
981
hpp
/* Copyright 2010 Intel Corporation Use, modification and distribution are subject to 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). */ //parse_layout.hpp #ifndef BOOST_POLYGON_TUTORIAL_PARSE_LAYOUT_HPP #define BOOST_POLYGON_TUTORIAL_PARSE_LAYOUT_HPP #include <iostream> #include <fstream> #include <vector> #include "layout_rectangle.hpp" #include "layout_pin.hpp" //populates vectors of layout rectangles and pins inline void parse_layout(std::vector<layout_rectangle>& rects, std::vector<layout_pin>& pins, std::ifstream& sin) { while(!sin.eof()) { std::string type_id; sin >> type_id; if(type_id == "Rectangle") { layout_rectangle rect; sin >> rect; rects.push_back(rect); } else if (type_id == "Pin") { layout_pin pin; sin >> pin; pins.push_back(pin); } else if (type_id == "") { break; } } } #endif
[ "keldon.alleyne@avasopht.com" ]
keldon.alleyne@avasopht.com
507aad472d300a1ce7f999309eb233041f4f4c02
4e08469c7112935e2ff8e94c67f1aedc08424261
/converstionCharEntier.cpp
0dd0578b529a1720ea959e2854ed1e5727f2b6c9
[]
no_license
BTS-SNIR-1ereAnnee/tp-chaines-CampLSNIR
42e424b423aa696055343dc10bd170eb2276c7dd
4fef7471930bd6437c8d233f59e372038b7ca0e3
refs/heads/master
2020-09-30T21:03:30.924434
2019-12-11T12:23:02
2019-12-11T12:23:02
227,373,452
0
0
null
null
null
null
UTF-8
C++
false
false
1,319
cpp
/* Conversion d'une chaine en entier */ #include <iostream> #include <cmath> bool valide_entier(char chaine[], int &refNombreEntier); int main() { int nombreEntier; char chaine[20]; do { std::cout << "Tapez une chaîne de caractères : "; std::cin >> chaine; } while (!valide_entier(chaine, nombreEntier)); std::cout << "L'entier vaut : " << nombreEntier << std::endl; return EXIT_SUCCESS; } /** valide une chaine de caractère retourne la valeur entière @param chaine la chaine à valider @param refNombreEntier le nombre entier converti @return true si la chaine est un entier false sinon */ bool valide_entier(char chaine[], int &refNombreEntier) { int result = 0; if( chaine[0] == 48 ) return false; // chiffre qui ne commence pas par zero for( int i = 0 ; chaine[i] != '\0' ; i++ ){ // jusqua la fin de la chaine if( chaine[i] > 57 or chaine[i] < 48 ){ // > 57 (9 dans ma table ASCII ) < 48 return false; // return false si la chaine ne contien pas que des numeros }else{ int v = (int(chaine[i])-48); // convertir en valeur numérique result = (result*10) + v ; } } refNombreEntier = result; //asigne le resulta a refNombreEntier return true; }
[ "camp.leonardo@lyceeppr.fr" ]
camp.leonardo@lyceeppr.fr
7e5c17b746f5d25caccffd45608ccbb7cdf0d058
d450d3a5d84c044b0ed9e7f68a0a48a8c2d8b6a7
/include/phys/dynamics/solver/sequential_impulse/body.h
8726149bd2ead390a49e0710fe4afacadef656f8
[ "BSD-3-Clause" ]
permissive
SharpLinesTech/Phys
e2d8ab0b3bcbf1c2b7f603b22e04c415608f5938
17e5925311e86488efba351df290150b2a9e6d25
refs/heads/master
2021-01-22T17:39:47.799270
2017-03-15T04:38:09
2017-03-15T04:38:09
85,029,051
0
0
null
null
null
null
UTF-8
C++
false
false
2,118
h
#ifndef PHYS_SEQUENTIAL_INPUT_SOLVER_BODY_H #define PHYS_SEQUENTIAL_INPUT_SOLVER_BODY_H #include "phys/dynamics/dynamic_body.h" #include "phys/math_types/transform.h" namespace phys { namespace seqi_solver { template <typename CFG> struct Body { using vec3_t = typename CFG::vec3_t; using real_t = typename CFG::real_t; Body() {} Body(DynamicBodyData<CFG>* tgt, real_t dt) { target = tgt; world_transform = *target->transform; inv_mass = real_t(1) / target->mass_; linear_velocity = tgt->linear_velocity_; angular_velocity = tgt->angular_velocity_; applied_force_impulse = target->net_force_ * inv_mass * dt; applied_torque_impulse = target->net_torque_ * target->inv_inertia_tensor_world_ * inv_mass * dt; } DynamicBodyData<CFG>* target = nullptr; Transform<CFG> world_transform; real_t inv_mass = real_t(0); vec3_t linear_velocity = {0, 0, 0}; vec3_t angular_velocity = {0, 0, 0}; vec3_t applied_force_impulse = {0, 0, 0}; vec3_t applied_torque_impulse = {0, 0, 0}; vec3_t delta_v = {0, 0, 0}; vec3_t delta_w = {0, 0, 0}; // Contact penetration related. vec3_t push_vel = {0, 0, 0}; vec3_t turn_vel = {0, 0, 0}; bool push_applied = false; void applyPushImpulse(vec3_t const& lin, vec3_t const& ang, real_t mag) { push_vel += lin * mag; turn_vel += ang * mag; push_applied = true; } void applyImpulse(vec3_t const& lin, vec3_t const& ang, real_t mag) { delta_v += lin * mag; delta_w += ang * mag; } vec3_t getRelativeVelocity(vec3_t const& p) const { return linear_velocity + applied_force_impulse + cross(angular_velocity + applied_torque_impulse, p); } void finish(real_t dt, real_t turn_erp) { linear_velocity += delta_v; angular_velocity += delta_w; target->linear_velocity_ = linear_velocity + applied_force_impulse; target->angular_velocity_ = angular_velocity + applied_torque_impulse; if(push_applied) { integrateTransform(world_transform, push_vel, turn_vel * turn_erp, dt, target->transform); } } }; } } #endif
[ "francois@sharplinestech.com" ]
francois@sharplinestech.com
08ce9588233fdfd30923bbfb756aba128db0df21
619f22a2e0eac40cc0fb70cefb5e6cbeb0d63d4b
/src/nosync/time-utils.cc
5632987d86be6ef5ca678d7845e5a2c39386b88f
[ "BSD-3-Clause" ]
permissive
nokia/libNoSync
51da98297db7585d21e1e86f3ac5e07ae577b5d8
af0f0e5b738feac8c42c357c9dbdf3dc7e541a76
refs/heads/master
2021-05-25T09:33:41.376807
2018-04-20T17:55:18
2018-04-20T17:55:18
126,995,700
2
1
BSD-3-Clause
2020-08-03T15:10:19
2018-03-27T14:04:07
C++
UTF-8
C++
false
false
5,662
cc
// This file is part of libnosync library. See LICENSE file for license details. #include <algorithm> #include <cinttypes> #include <cstdio> #include <cstring> #include <experimental/array> #include <functional> #include <nosync/function-utils.h> #include <nosync/time-utils.h> #include <tuple> using namespace std::chrono_literals; using std::array; using std::experimental::make_array; using std::get; using std::make_tuple; using std::size_t; using std::snprintf; using std::string; using std::strlen; using std::tuple; using std::uint32_t; namespace nosync { namespace ch = std::chrono; namespace { constexpr auto micros_dec_digits = 6U; tm get_localtime_tm(ch::time_point<ch::system_clock> time) { tm time_tm = {}; auto time_time_t = ch::system_clock::to_time_t(time); localtime_r(&time_time_t, &time_tm); return time_tm; } tm get_gmtime_tm(ch::time_point<ch::system_clock> time) { tm time_tm = {}; auto time_time_t = ch::system_clock::to_time_t(time); gmtime_r(&time_time_t, &time_tm); return time_tm; } template<size_t buf_size> array<char, buf_size> format_time( const tm &time_tm, const char (&format_template)[buf_size], const char *format) { array<char, sizeof(format_template)> time_str_buf = {}; ::strftime(time_str_buf.data(), time_str_buf.size(), format, &time_tm); return time_str_buf; } array<char, micros_dec_digits + 1> format_time_microseconds(ch::time_point<ch::system_clock> time) { array<char, micros_dec_digits + 1> micros_str_buf = {}; const auto micros_value = static_cast<uint32_t>( ch::duration_cast<ch::microseconds>(time.time_since_epoch() % 1s).count()); snprintf(micros_str_buf.data(), micros_str_buf.size(), "%" PRIu32, micros_value); const auto micros_value_dec_digits = strlen(micros_str_buf.data()); if (micros_value_dec_digits != micros_dec_digits) { std::copy_backward( micros_str_buf.begin(), micros_str_buf.begin() + micros_value_dec_digits, micros_str_buf.begin() + micros_dec_digits); std::fill(micros_str_buf.begin(), micros_str_buf.begin() + micros_dec_digits - micros_value_dec_digits, '0'); } return micros_str_buf; } template<typename T, size_t N, size_t RN> constexpr void concat_array_ranges(array<T, N> &output, const array<tuple<const T *, const T *>, RN> &ranges) { auto out_it = output.begin(); for (const auto &range : ranges) { out_it = std::copy(get<0>(range), get<1>(range), out_it); } } template<typename ...A> constexpr auto concat_array_str_buf_arrays(const A ...str_buf) { constexpr auto str_bufs_length_sum = reduce<size_t>( 0, std::plus<std::size_t>(), (str_buf.size() - 1)...); array<char, str_bufs_length_sum + 1> concat_buffer = {}; constexpr array<char, 1> null_terminator = {'\0'}; concat_array_ranges( concat_buffer, make_array( make_tuple(str_buf.data(), str_buf.data() + str_buf.size() - 1)..., make_tuple(null_terminator.data(), null_terminator.data() + 1))); return concat_buffer; } } ch::nanoseconds make_duration_from_timespec(const ::timespec &ts) noexcept { return ch::seconds(ts.tv_sec) + ch::nanoseconds(ts.tv_nsec); } ch::microseconds make_duration_from_timeval(const ::timeval &tv) noexcept { return ch::seconds(tv.tv_sec) + ch::microseconds(tv.tv_usec); } array<char, sizeof("YYYY-MM-DDTHH:MM:SS+HHMM")> format_time_to_localtime_seconds_tz_array( ch::time_point<ch::system_clock> time) noexcept { return format_time(get_localtime_tm(time), "YYYY-MM-DDTHH:MM:SS+HHMM", "%Y-%m-%dT%H:%M:%S%z"); } array<char, sizeof("YYYY-MM-DDTHH:MM:SS.123456+HHMM")> format_time_to_localtime_microseconds_tz_array( ch::time_point<ch::system_clock> time) noexcept { const auto time_tm = get_localtime_tm(time); constexpr array<char, 2> dec_sep_str_buf = {"."}; return concat_array_str_buf_arrays( format_time(time_tm, "YYYY-MM-DDTHH:MM:SS", "%Y-%m-%dT%H:%M:%S"), dec_sep_str_buf, format_time_microseconds(time), format_time(time_tm, "+HHMM", "%z")); } array<char, sizeof("YYYY-MM-DDTHH:MM:SS")> format_time_to_gmtime_seconds_array( ch::time_point<ch::system_clock> time) noexcept { return format_time(get_gmtime_tm(time), "YYYY-MM-DDTHH:MM:SS", "%Y-%m-%dT%H:%M:%S"); } array<char, sizeof("YYYY-MM-DDTHH:MM:SS.123456")> format_time_to_gmtime_microseconds_array( ch::time_point<ch::system_clock> time) noexcept { constexpr array<char, 2> dec_sep_str_buf = {"."}; return concat_array_str_buf_arrays( format_time(get_gmtime_tm(time), "YYYY-MM-DDTHH:MM:SS", "%Y-%m-%dT%H:%M:%S"), dec_sep_str_buf, format_time_microseconds(time)); } string format_time_to_localtime_seconds_tz(ch::time_point<ch::system_clock> time) { const auto time_str_buf = format_time_to_localtime_seconds_tz_array(time); return string(time_str_buf.data(), time_str_buf.size() - 1); } string format_time_to_localtime_microseconds_tz(ch::time_point<ch::system_clock> time) { const auto time_str_buf = format_time_to_localtime_microseconds_tz_array(time); return string(time_str_buf.data(), time_str_buf.size() - 1); } string format_time_to_gmtime_seconds(ch::time_point<ch::system_clock> time) { const auto time_str_buf = format_time_to_gmtime_seconds_array(time); return string(time_str_buf.data(), time_str_buf.size() - 1); } string format_time_to_gmtime_microseconds(ch::time_point<ch::system_clock> time) { const auto time_str_buf = format_time_to_gmtime_microseconds_array(time); return string(time_str_buf.data(), time_str_buf.size() - 1); } }
[ "zbigniew.chyla@nokia.com" ]
zbigniew.chyla@nokia.com
01708ecc71540a9b9f7b8b5a31f97855d9aa36fb
ea401c3e792a50364fe11f7cea0f35f99e8f4bde
/released_plugins/v3d_plugins/bigneuron_siqi_stalker_v3d/lib/ITK_include/itkFEMElement2DC0LinearTriangular.h
b35abd7bc66f2c527ec0650d48599bb62bfaeaa4
[ "MIT", "LicenseRef-scancode-warranty-disclaimer" ]
permissive
Vaa3D/vaa3d_tools
edb696aa3b9b59acaf83d6d27c6ae0a14bf75fe9
e6974d5223ae70474efaa85e1253f5df1814fae8
refs/heads/master
2023-08-03T06:12:01.013752
2023-08-02T07:26:01
2023-08-02T07:26:01
50,527,925
107
86
MIT
2023-05-22T23:43:48
2016-01-27T18:19:17
C++
UTF-8
C++
false
false
4,002
h
/*========================================================================= * * Copyright Insight Software Consortium * * 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.txt * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * *=========================================================================*/ #ifndef __itkFEMElement2DC0LinearTriangular_h #define __itkFEMElement2DC0LinearTriangular_h #include "itkFEMElementStd.h" namespace itk { namespace fem { /** * \class Element2DC0LinearTriangular * \brief 3-noded, linear, C0 continuous finite element in 2D space. * \ingroup ITKFEM * * The ordering of the nodes is counter clockwise. That is the nodes * should be defined in the following order: * * (0,1) * 2 * * * |\ * | \ * | \ * | \ * | \ * | \ * *------* * 0 1 * (0,0) (0,1) * * This is an abstract class. Specific concrete implemenations of this * It must be combined with the physics component of the problem. * This has already been done in the following classes: * * \sa Element2DC0LinearTriangular * \sa Element2DC0LinearTriangularStrain * \sa Element2DC0LinearTriangularStress */ class Element2DC0LinearTriangular : public ElementStd<3, 2> { public: /** Standard class typedefs. */ typedef Element2DC0LinearTriangular Self; typedef ElementStd<3, 2> TemplatedParentClass; typedef TemplatedParentClass Superclass; typedef SmartPointer<Self> Pointer; typedef SmartPointer<const Self> ConstPointer; /** Run-time type information (and related methods). */ itkTypeMacro(Element2DC0LinearTriangular, TemplatedParentClass); // //////////////////////////////////////////////////////////////////////// /** * Methods related to numeric integration */ enum { DefaultIntegrationOrder = 1 }; /** Get the Integration point and weight */ virtual void GetIntegrationPointAndWeight(unsigned int i, VectorType & pt, Float & w, unsigned int order) const; /** Get the number of integration points */ virtual unsigned int GetNumberOfIntegrationPoints(unsigned int order) const; // //////////////////////////////////////////////////////////////////////// /** * Methods related to the geometry of an element */ /** Return the shape functions used to interpolate across the element */ virtual VectorType ShapeFunctions(const VectorType & pt) const; /** Return the shape functions derivatives in the shapeD matrix */ virtual void ShapeFunctionDerivatives(const VectorType & pt, MatrixType & shapeD) const; /** Convert from global to local coordinates */ virtual bool GetLocalFromGlobalCoordinates(const VectorType & globalPt, VectorType & localPt) const; // Since the Jacobian is not quadratic, we need to provide our // own implementation of calculating the determinant and inverse. virtual Float JacobianDeterminant(const VectorType & pt, const MatrixType *pJ = 0) const; /** Return the inverse of the Jacobian */ virtual void JacobianInverse(const VectorType & pt, MatrixType & invJ, const MatrixType *pJ = 0) const; /** * Constants for integration rules. */ static const Float trigGaussRuleInfo[6][7][4]; /** * Array that holds number of integration point for each order * of numerical integration. */ static const unsigned int Nip[6]; protected: virtual void PopulateEdgeIds(void); virtual void PrintSelf(std::ostream& os, Indent indent) const; }; } } // end namespace itk::fem #endif // #ifndef __itkFEMElement2DC0LinearTriangular_h
[ "sliu4512@uni.sydney.edu.au" ]
sliu4512@uni.sydney.edu.au
3362ffe1e5e7706c386eadb20e90d64db6ef25ac
a6f295cc677b4e136821db6d68638c5e08107587
/project/CameraComponent.cpp
39c84013044c83e1672fcfd883deb48cfed2aa68
[]
no_license
antonjolsson/Graphics-demo
650333de09873d2a29f8e144c2a4f615c314ce0d
9c8eb27dc22fe916d628632044acb6e84b02289c
refs/heads/master
2022-11-19T01:10:13.103799
2020-07-15T20:12:29
2020-07-15T20:12:29
254,451,548
0
0
null
null
null
null
UTF-8
C++
false
false
3,892
cpp
#include "CameraComponent.h" #include <glm/gtx/compatibility.hpp> #include <glm/gtx/rotate_vector.inl> #include <glm/gtx/transform.hpp> void CameraComponent::setFieldOfView(const float _fieldOfView) { fieldOfView = _fieldOfView; } float CameraComponent::getNearPlane() const { return nearPlane; } float CameraComponent::getFarPlane() const { return farPlane; } void CameraComponent::setMouseMovable(const bool _mouseMovable) { mouseMovable = _mouseMovable; } glm::vec3 CameraComponent::getCameraDirection() const { return cameraDirection; } void CameraComponent::setCameraDirection(const glm::vec3& _cameraDirection) { cameraDirection = _cameraDirection; } void CameraComponent::init(GameObject* _camera) { addGameObject(_camera); if (tracingObject) traceObject(); else { setCameraDirection(glm::normalize(glm::vec3(0.0f) - _camera->getTransform().position)); go->getTransform().position = staticCameraPos; } } void CameraComponent::setTracingObject(const bool _tracingObject) { tracingObject = _tracingObject; } CameraComponent::CameraComponent(GameObject* _tracing, const int _winWidth, const int _winHeight, InputHandler* _inputHandler) { tracingObject = false; tracing = _tracing; windowWidth = _winWidth; windowHeight = _winHeight; inputHandler = _inputHandler; staticCameraDirection = glm::normalize(tracing->getTransform().position - staticCameraPos); } void CameraComponent::traceObject() { const glm::vec3 desiredPos = translate(tracing->getModelMatrix(), tracingDistance)[3]; go->getTransform().position = lerp(go->getTransform().position, desiredPos, tracingJerkiness); cameraDirection = normalize(tracing->getTransform().position - go->getTransform().position + tracingDirectionOffs); } void CameraComponent::moveCamera(const float _dt) { keyStatus = inputHandler->getKeyStatus(); if (keyStatus.toggleCamera) { if (!toggleCameraButtonDown) { toggleCameraButtonDown = true; tracingObject = !tracingObject; if (tracingObject) traceObject(); else { go->getTransform().position = staticCameraPos; cameraDirection = staticCameraDirection; } } } else toggleCameraButtonDown = false; glm::vec3* position = &go->getTransform().position; if (keyStatus.lowerCamera) *position -= _dt * speed * go->Y_AXIS; if (keyStatus.raiseCamera) *position += _dt * speed * go->Y_AXIS; if (keyStatus.forwardCamera) *position += _dt * speed * cameraDirection; if (keyStatus.backwardCamera) *position -= _dt * speed * cameraDirection; if (mouseMovable) { mouse = inputHandler->getMouseStatus(); if (mouse.isDragging) { const glm::mat4 yaw = rotate(ROTATION_SPEED * -mouse.deltaX, go->Y_AXIS); const glm::mat4 pitch = rotate(ROTATION_SPEED * -mouse.deltaY, normalize(cross(cameraDirection, go->Y_AXIS))); cameraDirection = glm::vec3(pitch * yaw * glm::vec4(cameraDirection, 0.0f)); } } } auto CameraComponent::update(const float _dt, const int _windowHeight, const int _windowWidth) -> void { windowWidth = _windowWidth; windowHeight = _windowHeight; if (tracingObject) { traceObject(); } moveCamera(_dt); } glm::mat4 CameraComponent::getProjMatrix() const { return glm::perspective(glm::radians(fieldOfView), float(windowWidth) / float(windowHeight), nearPlane, farPlane); } glm::mat4 CameraComponent::getViewMatrix() const { return lookAt(go->getTransform().position, go->getTransform().position + cameraDirection, go->Y_AXIS); } glm::mat4 CameraComponent::getViewMatrix(const int _i, const int _n, const float _aperture) const { const glm::vec3 right = normalize(cross(cameraDirection, go->Y_AXIS)); const glm::vec3 up = -normalize(cross(cameraDirection, right)); const glm::vec3 bokeh = cosf(_i * 2.f * M_PI / _n) * right + sinf(_i * 2.f * M_PI / _n) * up; return lookAt(go->getTransform().position + _aperture * bokeh, tracing->getPosition() + tracingDirectionOffs, go->Y_AXIS); }
[ "anton.j.olsson@bredband.net" ]
anton.j.olsson@bredband.net
7917cdb50f03f77e82b64507c08abdf944d47ec1
5094168ebc6e6f4d040bc9475e16e169219ecc7d
/build-QTG-Desktop_Qt_5_10_1_clang_64bit-Debug/moc_mainwidget.cpp
82a3267582603d087dafd3fcf840108c8411d4f7
[ "MIT" ]
permissive
Misch2k/HF-ICT-4-SEM-GUI
8433bc8680048f82bbec987fb41250ccdef29ec7
c075656380bd0cfc95babfd88c93b439d02c1326
refs/heads/master
2020-03-15T08:31:57.012323
2018-05-03T22:08:48
2018-05-03T22:08:48
132,053,037
0
0
null
2018-05-03T21:46:28
2018-05-03T21:46:28
null
UTF-8
C++
false
false
4,247
cpp
/**************************************************************************** ** Meta object code from reading C++ file 'mainwidget.h' ** ** Created by: The Qt Meta Object Compiler version 67 (Qt 5.10.1) ** ** WARNING! All changes made in this file will be lost! *****************************************************************************/ #include "../QTG/mainwidget.h" #include <QtCore/qbytearray.h> #include <QtCore/qmetatype.h> #if !defined(Q_MOC_OUTPUT_REVISION) #error "The header file 'mainwidget.h' doesn't include <QObject>." #elif Q_MOC_OUTPUT_REVISION != 67 #error "This file was generated using the moc from 5.10.1. It" #error "cannot be used with the include files from this version of Qt." #error "(The moc has changed too much.)" #endif QT_BEGIN_MOC_NAMESPACE QT_WARNING_PUSH QT_WARNING_DISABLE_DEPRECATED struct qt_meta_stringdata_MainWidget_t { QByteArrayData data[8]; char stringdata0[98]; }; #define QT_MOC_LITERAL(idx, ofs, len) \ Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \ qptrdiff(offsetof(qt_meta_stringdata_MainWidget_t, stringdata0) + ofs \ - idx * sizeof(QByteArrayData)) \ ) static const qt_meta_stringdata_MainWidget_t qt_meta_stringdata_MainWidget = { { QT_MOC_LITERAL(0, 0, 10), // "MainWidget" QT_MOC_LITERAL(1, 11, 16), // "speedSliderMoved" QT_MOC_LITERAL(2, 28, 0), // "" QT_MOC_LITERAL(3, 29, 5), // "value" QT_MOC_LITERAL(4, 35, 16), // "angleSliderMoved" QT_MOC_LITERAL(5, 52, 19), // "actionButtonClicked" QT_MOC_LITERAL(6, 72, 14), // "onGameFinished" QT_MOC_LITERAL(7, 87, 10) // "slotReboot" }, "MainWidget\0speedSliderMoved\0\0value\0" "angleSliderMoved\0actionButtonClicked\0" "onGameFinished\0slotReboot" }; #undef QT_MOC_LITERAL static const uint qt_meta_data_MainWidget[] = { // content: 7, // revision 0, // classname 0, 0, // classinfo 5, 14, // methods 0, 0, // properties 0, 0, // enums/sets 0, 0, // constructors 0, // flags 0, // signalCount // slots: name, argc, parameters, tag, flags 1, 1, 39, 2, 0x0a /* Public */, 4, 1, 42, 2, 0x0a /* Public */, 5, 0, 45, 2, 0x0a /* Public */, 6, 0, 46, 2, 0x0a /* Public */, 7, 0, 47, 2, 0x0a /* Public */, // slots: parameters QMetaType::Void, QMetaType::Int, 3, QMetaType::Void, QMetaType::Int, 3, QMetaType::Void, QMetaType::Void, QMetaType::Void, 0 // eod }; void MainWidget::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a) { if (_c == QMetaObject::InvokeMetaMethod) { MainWidget *_t = static_cast<MainWidget *>(_o); Q_UNUSED(_t) switch (_id) { case 0: _t->speedSliderMoved((*reinterpret_cast< int(*)>(_a[1]))); break; case 1: _t->angleSliderMoved((*reinterpret_cast< int(*)>(_a[1]))); break; case 2: _t->actionButtonClicked(); break; case 3: _t->onGameFinished(); break; case 4: _t->slotReboot(); break; default: ; } } } QT_INIT_METAOBJECT const QMetaObject MainWidget::staticMetaObject = { { &QWidget::staticMetaObject, qt_meta_stringdata_MainWidget.data, qt_meta_data_MainWidget, qt_static_metacall, nullptr, nullptr} }; const QMetaObject *MainWidget::metaObject() const { return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject; } void *MainWidget::qt_metacast(const char *_clname) { if (!_clname) return nullptr; if (!strcmp(_clname, qt_meta_stringdata_MainWidget.stringdata0)) return static_cast<void*>(this); return QWidget::qt_metacast(_clname); } int MainWidget::qt_metacall(QMetaObject::Call _c, int _id, void **_a) { _id = QWidget::qt_metacall(_c, _id, _a); if (_id < 0) return _id; if (_c == QMetaObject::InvokeMetaMethod) { if (_id < 5) qt_static_metacall(this, _c, _id, _a); _id -= 5; } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) { if (_id < 5) *reinterpret_cast<int*>(_a[0]) = -1; _id -= 5; } return _id; } QT_WARNING_POP QT_END_MOC_NAMESPACE
[ "patrick.oetterli@gmail.com" ]
patrick.oetterli@gmail.com
070a8c7b661b0ef5f2c6bfcb50144cb5f5a25bae
7a748ec3dd9599c92f7d5001de3c7cfcebe46d0f
/VajraFramework/Vajra/Common/Messages/CustomMessageDatas/MessageData1S1IV3FV.cpp
818ecd818299efac8cdf8ecd600a9f35e62b7cce
[ "MIT" ]
permissive
VajraFramework/Vajra
6a9ee1bcbc2590ae1fcc159d8472a1a5c902007a
903eae7975d9328c1b58b0f06d7c017cecb9b963
refs/heads/master
2020-05-20T01:20:56.445837
2014-04-29T23:58:30
2014-04-29T23:58:30
13,383,969
3
1
null
2014-04-25T05:54:58
2013-10-07T13:04:27
C++
UTF-8
C++
false
false
405
cpp
#include "Vajra/Common/Messages/CustomMessageDatas/MessageData1S1IV3FV.h" MessageData1S1IV3FV::MessageData1S1IV3FV() : MessageData() { this->messageDataType = MESSAGEDATA_TYPE_1S_1I_3FV; this->init(); } MessageData1S1IV3FV::~MessageData1S1IV3FV() { this->destroy(); } void MessageData1S1IV3FV::init() { this->s = " "; this->iv1 = glm::ivec3(-1, -1, -1); } void MessageData1S1IV3FV::destroy() { }
[ "cosmiczilch@gmail.com" ]
cosmiczilch@gmail.com
27ea0a9adfb68381d639163409fcd9cd405df84e
c776476e9d06b3779d744641e758ac3a2c15cddc
/examples/litmus/c/run-scripts/tmp_5/Z6.4+poreleaseonce+poreleaseacquire+poonceacquire.c.cbmc_out.cpp
c4dbb74084d58fb43329bce1098811639e148874
[]
no_license
ashutosh0gupta/llvm_bmc
aaac7961c723ba6f7ffd77a39559e0e52432eade
0287c4fb180244e6b3c599a9902507f05c8a7234
refs/heads/master
2023-08-02T17:14:06.178723
2023-07-31T10:46:53
2023-07-31T10:46:53
143,100,825
3
4
null
2023-05-25T05:50:55
2018-08-01T03:47:00
C++
UTF-8
C++
false
false
40,454
cpp
// Global variabls: // 4:atom_2_X1_0:1 // 0:vars:3 // 3:atom_1_X1_0:1 // Local global variabls: // 0:thr0:1 // 1:thr1:1 // 2:thr2:1 #define ADDRSIZE 5 #define LOCALADDRSIZE 3 #define NTHREAD 4 #define NCONTEXT 5 #define ASSUME(stmt) __CPROVER_assume(stmt) #define ASSERT(stmt) __CPROVER_assert(stmt, "error") #define max(a,b) (a>b?a:b) char __get_rng(); char get_rng( char from, char to ) { char ret = __get_rng(); ASSUME(ret >= from && ret <= to); return ret; } char get_rng_th( char from, char to ) { char ret = __get_rng(); ASSUME(ret >= from && ret <= to); return ret; } int main(int argc, char **argv) { // Declare arrays for intial value version in contexts int local_mem[LOCALADDRSIZE]; // Dumping initializations local_mem[0+0] = 0; local_mem[1+0] = 0; local_mem[2+0] = 0; int cstart[NTHREAD]; int creturn[NTHREAD]; // declare arrays for contexts activity int active[NCONTEXT]; int ctx_used[NCONTEXT]; // declare arrays for intial value version in contexts int meminit_[ADDRSIZE*NCONTEXT]; #define meminit(x,k) meminit_[(x)*NCONTEXT+k] int coinit_[ADDRSIZE*NCONTEXT]; #define coinit(x,k) coinit_[(x)*NCONTEXT+k] int deltainit_[ADDRSIZE*NCONTEXT]; #define deltainit(x,k) deltainit_[(x)*NCONTEXT+k] // declare arrays for running value version in contexts int mem_[ADDRSIZE*NCONTEXT]; #define mem(x,k) mem_[(x)*NCONTEXT+k] int co_[ADDRSIZE*NCONTEXT]; #define co(x,k) co_[(x)*NCONTEXT+k] int delta_[ADDRSIZE*NCONTEXT]; #define delta(x,k) delta_[(x)*NCONTEXT+k] // declare arrays for local buffer and observed writes int buff_[NTHREAD*ADDRSIZE]; #define buff(x,k) buff_[(x)*ADDRSIZE+k] int pw_[NTHREAD*ADDRSIZE]; #define pw(x,k) pw_[(x)*ADDRSIZE+k] // declare arrays for context stamps char cr_[NTHREAD*ADDRSIZE]; #define cr(x,k) cr_[(x)*ADDRSIZE+k] char iw_[NTHREAD*ADDRSIZE]; #define iw(x,k) iw_[(x)*ADDRSIZE+k] char cw_[NTHREAD*ADDRSIZE]; #define cw(x,k) cw_[(x)*ADDRSIZE+k] char cx_[NTHREAD*ADDRSIZE]; #define cx(x,k) cx_[(x)*ADDRSIZE+k] char is_[NTHREAD*ADDRSIZE]; #define is(x,k) is_[(x)*ADDRSIZE+k] char cs_[NTHREAD*ADDRSIZE]; #define cs(x,k) cs_[(x)*ADDRSIZE+k] char crmax_[NTHREAD*ADDRSIZE]; #define crmax(x,k) crmax_[(x)*ADDRSIZE+k] char sforbid_[ADDRSIZE*NCONTEXT]; #define sforbid(x,k) sforbid_[(x)*NCONTEXT+k] // declare arrays for synchronizations int cl[NTHREAD]; int cdy[NTHREAD]; int cds[NTHREAD]; int cdl[NTHREAD]; int cisb[NTHREAD]; int caddr[NTHREAD]; int cctrl[NTHREAD]; int r0= 0; char creg_r0; char creg__r0__0_; int r1= 0; char creg_r1; char creg__r1__0_; int r2= 0; char creg_r2; int r3= 0; char creg_r3; int r4= 0; char creg_r4; int r5= 0; char creg_r5; int r6= 0; char creg_r6; char creg__r6__2_; int r7= 0; char creg_r7; int r8= 0; char creg_r8; int r9= 0; char creg_r9; int r10= 0; char creg_r10; char creg__r10__1_; int r11= 0; char creg_r11; char old_cctrl= 0; char old_cr= 0; char old_cdy= 0; char old_cw= 0; char new_creg= 0; buff(0,0) = 0; pw(0,0) = 0; cr(0,0) = 0; iw(0,0) = 0; cw(0,0) = 0; cx(0,0) = 0; is(0,0) = 0; cs(0,0) = 0; crmax(0,0) = 0; buff(0,1) = 0; pw(0,1) = 0; cr(0,1) = 0; iw(0,1) = 0; cw(0,1) = 0; cx(0,1) = 0; is(0,1) = 0; cs(0,1) = 0; crmax(0,1) = 0; buff(0,2) = 0; pw(0,2) = 0; cr(0,2) = 0; iw(0,2) = 0; cw(0,2) = 0; cx(0,2) = 0; is(0,2) = 0; cs(0,2) = 0; crmax(0,2) = 0; buff(0,3) = 0; pw(0,3) = 0; cr(0,3) = 0; iw(0,3) = 0; cw(0,3) = 0; cx(0,3) = 0; is(0,3) = 0; cs(0,3) = 0; crmax(0,3) = 0; buff(0,4) = 0; pw(0,4) = 0; cr(0,4) = 0; iw(0,4) = 0; cw(0,4) = 0; cx(0,4) = 0; is(0,4) = 0; cs(0,4) = 0; crmax(0,4) = 0; cl[0] = 0; cdy[0] = 0; cds[0] = 0; cdl[0] = 0; cisb[0] = 0; caddr[0] = 0; cctrl[0] = 0; cstart[0] = get_rng(0,NCONTEXT-1); creturn[0] = get_rng(0,NCONTEXT-1); buff(1,0) = 0; pw(1,0) = 0; cr(1,0) = 0; iw(1,0) = 0; cw(1,0) = 0; cx(1,0) = 0; is(1,0) = 0; cs(1,0) = 0; crmax(1,0) = 0; buff(1,1) = 0; pw(1,1) = 0; cr(1,1) = 0; iw(1,1) = 0; cw(1,1) = 0; cx(1,1) = 0; is(1,1) = 0; cs(1,1) = 0; crmax(1,1) = 0; buff(1,2) = 0; pw(1,2) = 0; cr(1,2) = 0; iw(1,2) = 0; cw(1,2) = 0; cx(1,2) = 0; is(1,2) = 0; cs(1,2) = 0; crmax(1,2) = 0; buff(1,3) = 0; pw(1,3) = 0; cr(1,3) = 0; iw(1,3) = 0; cw(1,3) = 0; cx(1,3) = 0; is(1,3) = 0; cs(1,3) = 0; crmax(1,3) = 0; buff(1,4) = 0; pw(1,4) = 0; cr(1,4) = 0; iw(1,4) = 0; cw(1,4) = 0; cx(1,4) = 0; is(1,4) = 0; cs(1,4) = 0; crmax(1,4) = 0; cl[1] = 0; cdy[1] = 0; cds[1] = 0; cdl[1] = 0; cisb[1] = 0; caddr[1] = 0; cctrl[1] = 0; cstart[1] = get_rng(0,NCONTEXT-1); creturn[1] = get_rng(0,NCONTEXT-1); buff(2,0) = 0; pw(2,0) = 0; cr(2,0) = 0; iw(2,0) = 0; cw(2,0) = 0; cx(2,0) = 0; is(2,0) = 0; cs(2,0) = 0; crmax(2,0) = 0; buff(2,1) = 0; pw(2,1) = 0; cr(2,1) = 0; iw(2,1) = 0; cw(2,1) = 0; cx(2,1) = 0; is(2,1) = 0; cs(2,1) = 0; crmax(2,1) = 0; buff(2,2) = 0; pw(2,2) = 0; cr(2,2) = 0; iw(2,2) = 0; cw(2,2) = 0; cx(2,2) = 0; is(2,2) = 0; cs(2,2) = 0; crmax(2,2) = 0; buff(2,3) = 0; pw(2,3) = 0; cr(2,3) = 0; iw(2,3) = 0; cw(2,3) = 0; cx(2,3) = 0; is(2,3) = 0; cs(2,3) = 0; crmax(2,3) = 0; buff(2,4) = 0; pw(2,4) = 0; cr(2,4) = 0; iw(2,4) = 0; cw(2,4) = 0; cx(2,4) = 0; is(2,4) = 0; cs(2,4) = 0; crmax(2,4) = 0; cl[2] = 0; cdy[2] = 0; cds[2] = 0; cdl[2] = 0; cisb[2] = 0; caddr[2] = 0; cctrl[2] = 0; cstart[2] = get_rng(0,NCONTEXT-1); creturn[2] = get_rng(0,NCONTEXT-1); buff(3,0) = 0; pw(3,0) = 0; cr(3,0) = 0; iw(3,0) = 0; cw(3,0) = 0; cx(3,0) = 0; is(3,0) = 0; cs(3,0) = 0; crmax(3,0) = 0; buff(3,1) = 0; pw(3,1) = 0; cr(3,1) = 0; iw(3,1) = 0; cw(3,1) = 0; cx(3,1) = 0; is(3,1) = 0; cs(3,1) = 0; crmax(3,1) = 0; buff(3,2) = 0; pw(3,2) = 0; cr(3,2) = 0; iw(3,2) = 0; cw(3,2) = 0; cx(3,2) = 0; is(3,2) = 0; cs(3,2) = 0; crmax(3,2) = 0; buff(3,3) = 0; pw(3,3) = 0; cr(3,3) = 0; iw(3,3) = 0; cw(3,3) = 0; cx(3,3) = 0; is(3,3) = 0; cs(3,3) = 0; crmax(3,3) = 0; buff(3,4) = 0; pw(3,4) = 0; cr(3,4) = 0; iw(3,4) = 0; cw(3,4) = 0; cx(3,4) = 0; is(3,4) = 0; cs(3,4) = 0; crmax(3,4) = 0; cl[3] = 0; cdy[3] = 0; cds[3] = 0; cdl[3] = 0; cisb[3] = 0; caddr[3] = 0; cctrl[3] = 0; cstart[3] = get_rng(0,NCONTEXT-1); creturn[3] = get_rng(0,NCONTEXT-1); // Dumping initializations mem(4+0,0) = 0; mem(0+0,0) = 0; mem(0+1,0) = 0; mem(0+2,0) = 0; mem(3+0,0) = 0; // Dumping context matching equalities co(0,0) = 0; delta(0,0) = -1; mem(0,1) = meminit(0,1); co(0,1) = coinit(0,1); delta(0,1) = deltainit(0,1); mem(0,2) = meminit(0,2); co(0,2) = coinit(0,2); delta(0,2) = deltainit(0,2); mem(0,3) = meminit(0,3); co(0,3) = coinit(0,3); delta(0,3) = deltainit(0,3); mem(0,4) = meminit(0,4); co(0,4) = coinit(0,4); delta(0,4) = deltainit(0,4); co(1,0) = 0; delta(1,0) = -1; mem(1,1) = meminit(1,1); co(1,1) = coinit(1,1); delta(1,1) = deltainit(1,1); mem(1,2) = meminit(1,2); co(1,2) = coinit(1,2); delta(1,2) = deltainit(1,2); mem(1,3) = meminit(1,3); co(1,3) = coinit(1,3); delta(1,3) = deltainit(1,3); mem(1,4) = meminit(1,4); co(1,4) = coinit(1,4); delta(1,4) = deltainit(1,4); co(2,0) = 0; delta(2,0) = -1; mem(2,1) = meminit(2,1); co(2,1) = coinit(2,1); delta(2,1) = deltainit(2,1); mem(2,2) = meminit(2,2); co(2,2) = coinit(2,2); delta(2,2) = deltainit(2,2); mem(2,3) = meminit(2,3); co(2,3) = coinit(2,3); delta(2,3) = deltainit(2,3); mem(2,4) = meminit(2,4); co(2,4) = coinit(2,4); delta(2,4) = deltainit(2,4); co(3,0) = 0; delta(3,0) = -1; mem(3,1) = meminit(3,1); co(3,1) = coinit(3,1); delta(3,1) = deltainit(3,1); mem(3,2) = meminit(3,2); co(3,2) = coinit(3,2); delta(3,2) = deltainit(3,2); mem(3,3) = meminit(3,3); co(3,3) = coinit(3,3); delta(3,3) = deltainit(3,3); mem(3,4) = meminit(3,4); co(3,4) = coinit(3,4); delta(3,4) = deltainit(3,4); co(4,0) = 0; delta(4,0) = -1; mem(4,1) = meminit(4,1); co(4,1) = coinit(4,1); delta(4,1) = deltainit(4,1); mem(4,2) = meminit(4,2); co(4,2) = coinit(4,2); delta(4,2) = deltainit(4,2); mem(4,3) = meminit(4,3); co(4,3) = coinit(4,3); delta(4,3) = deltainit(4,3); mem(4,4) = meminit(4,4); co(4,4) = coinit(4,4); delta(4,4) = deltainit(4,4); // Dumping thread 1 int ret_thread_1 = 0; cdy[1] = get_rng(0,NCONTEXT-1); ASSUME(cdy[1] >= cstart[1]); T1BLOCK0: // call void @llvm.dbg.value(metadata i8* %arg, metadata !36, metadata !DIExpression()), !dbg !45 // br label %label_1, !dbg !46 goto T1BLOCK1; T1BLOCK1: // call void @llvm.dbg.label(metadata !44), !dbg !47 // call void @llvm.dbg.value(metadata i64* getelementptr inbounds ([3 x i64], [3 x i64]* @vars, i64 0, i64 1), metadata !37, metadata !DIExpression()), !dbg !48 // call void @llvm.dbg.value(metadata i64 1, metadata !40, metadata !DIExpression()), !dbg !48 // store atomic i64 1, i64* getelementptr inbounds ([3 x i64], [3 x i64]* @vars, i64 0, i64 1) release, align 8, !dbg !49 // ST: Guess // : Release iw(1,0+1*1) = get_rng(0,NCONTEXT-1);// 1 ASSIGN STIW _l20_c3 old_cw = cw(1,0+1*1); cw(1,0+1*1) = get_rng(0,NCONTEXT-1);// 1 ASSIGN STCOM _l20_c3 // Check ASSUME(active[iw(1,0+1*1)] == 1); ASSUME(active[cw(1,0+1*1)] == 1); ASSUME(sforbid(0+1*1,cw(1,0+1*1))== 0); ASSUME(iw(1,0+1*1) >= 0); ASSUME(iw(1,0+1*1) >= 0); ASSUME(cw(1,0+1*1) >= iw(1,0+1*1)); ASSUME(cw(1,0+1*1) >= old_cw); ASSUME(cw(1,0+1*1) >= cr(1,0+1*1)); ASSUME(cw(1,0+1*1) >= cl[1]); ASSUME(cw(1,0+1*1) >= cisb[1]); ASSUME(cw(1,0+1*1) >= cdy[1]); ASSUME(cw(1,0+1*1) >= cdl[1]); ASSUME(cw(1,0+1*1) >= cds[1]); ASSUME(cw(1,0+1*1) >= cctrl[1]); ASSUME(cw(1,0+1*1) >= caddr[1]); ASSUME(cw(1,0+1*1) >= cr(1,4+0)); ASSUME(cw(1,0+1*1) >= cr(1,0+0)); ASSUME(cw(1,0+1*1) >= cr(1,0+1)); ASSUME(cw(1,0+1*1) >= cr(1,0+2)); ASSUME(cw(1,0+1*1) >= cr(1,3+0)); ASSUME(cw(1,0+1*1) >= cw(1,4+0)); ASSUME(cw(1,0+1*1) >= cw(1,0+0)); ASSUME(cw(1,0+1*1) >= cw(1,0+1)); ASSUME(cw(1,0+1*1) >= cw(1,0+2)); ASSUME(cw(1,0+1*1) >= cw(1,3+0)); // Update caddr[1] = max(caddr[1],0); buff(1,0+1*1) = 1; mem(0+1*1,cw(1,0+1*1)) = 1; co(0+1*1,cw(1,0+1*1))+=1; delta(0+1*1,cw(1,0+1*1)) = -1; is(1,0+1*1) = iw(1,0+1*1); cs(1,0+1*1) = cw(1,0+1*1); ASSUME(creturn[1] >= cw(1,0+1*1)); // call void @llvm.dbg.value(metadata i64* getelementptr inbounds ([3 x i64], [3 x i64]* @vars, i64 0, i64 0), metadata !41, metadata !DIExpression()), !dbg !50 // call void @llvm.dbg.value(metadata i64 1, metadata !43, metadata !DIExpression()), !dbg !50 // store atomic i64 1, i64* getelementptr inbounds ([3 x i64], [3 x i64]* @vars, i64 0, i64 0) monotonic, align 8, !dbg !51 // ST: Guess iw(1,0) = get_rng(0,NCONTEXT-1);// 1 ASSIGN STIW _l21_c3 old_cw = cw(1,0); cw(1,0) = get_rng(0,NCONTEXT-1);// 1 ASSIGN STCOM _l21_c3 // Check ASSUME(active[iw(1,0)] == 1); ASSUME(active[cw(1,0)] == 1); ASSUME(sforbid(0,cw(1,0))== 0); ASSUME(iw(1,0) >= 0); ASSUME(iw(1,0) >= 0); ASSUME(cw(1,0) >= iw(1,0)); ASSUME(cw(1,0) >= old_cw); ASSUME(cw(1,0) >= cr(1,0)); ASSUME(cw(1,0) >= cl[1]); ASSUME(cw(1,0) >= cisb[1]); ASSUME(cw(1,0) >= cdy[1]); ASSUME(cw(1,0) >= cdl[1]); ASSUME(cw(1,0) >= cds[1]); ASSUME(cw(1,0) >= cctrl[1]); ASSUME(cw(1,0) >= caddr[1]); // Update caddr[1] = max(caddr[1],0); buff(1,0) = 1; mem(0,cw(1,0)) = 1; co(0,cw(1,0))+=1; delta(0,cw(1,0)) = -1; ASSUME(creturn[1] >= cw(1,0)); // ret i8* null, !dbg !52 ret_thread_1 = (- 1); goto T1BLOCK_END; T1BLOCK_END: // Dumping thread 2 int ret_thread_2 = 0; cdy[2] = get_rng(0,NCONTEXT-1); ASSUME(cdy[2] >= cstart[2]); T2BLOCK0: // call void @llvm.dbg.value(metadata i8* %arg, metadata !55, metadata !DIExpression()), !dbg !65 // br label %label_2, !dbg !48 goto T2BLOCK1; T2BLOCK1: // call void @llvm.dbg.label(metadata !64), !dbg !67 // call void @llvm.dbg.value(metadata i64* getelementptr inbounds ([3 x i64], [3 x i64]* @vars, i64 0, i64 0), metadata !56, metadata !DIExpression()), !dbg !68 // call void @llvm.dbg.value(metadata i64 2, metadata !58, metadata !DIExpression()), !dbg !68 // store atomic i64 2, i64* getelementptr inbounds ([3 x i64], [3 x i64]* @vars, i64 0, i64 0) release, align 8, !dbg !51 // ST: Guess // : Release iw(2,0) = get_rng(0,NCONTEXT-1);// 2 ASSIGN STIW _l27_c3 old_cw = cw(2,0); cw(2,0) = get_rng(0,NCONTEXT-1);// 2 ASSIGN STCOM _l27_c3 // Check ASSUME(active[iw(2,0)] == 2); ASSUME(active[cw(2,0)] == 2); ASSUME(sforbid(0,cw(2,0))== 0); ASSUME(iw(2,0) >= 0); ASSUME(iw(2,0) >= 0); ASSUME(cw(2,0) >= iw(2,0)); ASSUME(cw(2,0) >= old_cw); ASSUME(cw(2,0) >= cr(2,0)); ASSUME(cw(2,0) >= cl[2]); ASSUME(cw(2,0) >= cisb[2]); ASSUME(cw(2,0) >= cdy[2]); ASSUME(cw(2,0) >= cdl[2]); ASSUME(cw(2,0) >= cds[2]); ASSUME(cw(2,0) >= cctrl[2]); ASSUME(cw(2,0) >= caddr[2]); ASSUME(cw(2,0) >= cr(2,4+0)); ASSUME(cw(2,0) >= cr(2,0+0)); ASSUME(cw(2,0) >= cr(2,0+1)); ASSUME(cw(2,0) >= cr(2,0+2)); ASSUME(cw(2,0) >= cr(2,3+0)); ASSUME(cw(2,0) >= cw(2,4+0)); ASSUME(cw(2,0) >= cw(2,0+0)); ASSUME(cw(2,0) >= cw(2,0+1)); ASSUME(cw(2,0) >= cw(2,0+2)); ASSUME(cw(2,0) >= cw(2,3+0)); // Update caddr[2] = max(caddr[2],0); buff(2,0) = 2; mem(0,cw(2,0)) = 2; co(0,cw(2,0))+=1; delta(0,cw(2,0)) = -1; is(2,0) = iw(2,0); cs(2,0) = cw(2,0); ASSUME(creturn[2] >= cw(2,0)); // call void @llvm.dbg.value(metadata i64* getelementptr inbounds ([3 x i64], [3 x i64]* @vars, i64 0, i64 2), metadata !60, metadata !DIExpression()), !dbg !70 // %0 = load atomic i64, i64* getelementptr inbounds ([3 x i64], [3 x i64]* @vars, i64 0, i64 2) acquire, align 8, !dbg !53 // LD: Guess // : Acquire old_cr = cr(2,0+2*1); cr(2,0+2*1) = get_rng(0,NCONTEXT-1);// 2 ASSIGN LDCOM _l28_c15 // Check ASSUME(active[cr(2,0+2*1)] == 2); ASSUME(cr(2,0+2*1) >= iw(2,0+2*1)); ASSUME(cr(2,0+2*1) >= 0); ASSUME(cr(2,0+2*1) >= cdy[2]); ASSUME(cr(2,0+2*1) >= cisb[2]); ASSUME(cr(2,0+2*1) >= cdl[2]); ASSUME(cr(2,0+2*1) >= cl[2]); ASSUME(cr(2,0+2*1) >= cx(2,0+2*1)); ASSUME(cr(2,0+2*1) >= cs(2,4+0)); ASSUME(cr(2,0+2*1) >= cs(2,0+0)); ASSUME(cr(2,0+2*1) >= cs(2,0+1)); ASSUME(cr(2,0+2*1) >= cs(2,0+2)); ASSUME(cr(2,0+2*1) >= cs(2,3+0)); // Update creg_r0 = cr(2,0+2*1); crmax(2,0+2*1) = max(crmax(2,0+2*1),cr(2,0+2*1)); caddr[2] = max(caddr[2],0); if(cr(2,0+2*1) < cw(2,0+2*1)) { r0 = buff(2,0+2*1); ASSUME((!(( (cw(2,0+2*1) < 1) && (1 < crmax(2,0+2*1)) )))||(sforbid(0+2*1,1)> 0)); ASSUME((!(( (cw(2,0+2*1) < 2) && (2 < crmax(2,0+2*1)) )))||(sforbid(0+2*1,2)> 0)); ASSUME((!(( (cw(2,0+2*1) < 3) && (3 < crmax(2,0+2*1)) )))||(sforbid(0+2*1,3)> 0)); ASSUME((!(( (cw(2,0+2*1) < 4) && (4 < crmax(2,0+2*1)) )))||(sforbid(0+2*1,4)> 0)); } else { if(pw(2,0+2*1) != co(0+2*1,cr(2,0+2*1))) { ASSUME(cr(2,0+2*1) >= old_cr); } pw(2,0+2*1) = co(0+2*1,cr(2,0+2*1)); r0 = mem(0+2*1,cr(2,0+2*1)); } cl[2] = max(cl[2],cr(2,0+2*1)); ASSUME(creturn[2] >= cr(2,0+2*1)); // call void @llvm.dbg.value(metadata i64 %0, metadata !62, metadata !DIExpression()), !dbg !70 // %conv = trunc i64 %0 to i32, !dbg !54 // call void @llvm.dbg.value(metadata i32 %conv, metadata !59, metadata !DIExpression()), !dbg !65 // %cmp = icmp eq i32 %conv, 0, !dbg !55 creg__r0__0_ = max(0,creg_r0); // %conv1 = zext i1 %cmp to i32, !dbg !55 // call void @llvm.dbg.value(metadata i32 %conv1, metadata !63, metadata !DIExpression()), !dbg !65 // store i32 %conv1, i32* @atom_1_X1_0, align 4, !dbg !56, !tbaa !57 // ST: Guess iw(2,3) = get_rng(0,NCONTEXT-1);// 2 ASSIGN STIW _l30_c15 old_cw = cw(2,3); cw(2,3) = get_rng(0,NCONTEXT-1);// 2 ASSIGN STCOM _l30_c15 // Check ASSUME(active[iw(2,3)] == 2); ASSUME(active[cw(2,3)] == 2); ASSUME(sforbid(3,cw(2,3))== 0); ASSUME(iw(2,3) >= creg__r0__0_); ASSUME(iw(2,3) >= 0); ASSUME(cw(2,3) >= iw(2,3)); ASSUME(cw(2,3) >= old_cw); ASSUME(cw(2,3) >= cr(2,3)); ASSUME(cw(2,3) >= cl[2]); ASSUME(cw(2,3) >= cisb[2]); ASSUME(cw(2,3) >= cdy[2]); ASSUME(cw(2,3) >= cdl[2]); ASSUME(cw(2,3) >= cds[2]); ASSUME(cw(2,3) >= cctrl[2]); ASSUME(cw(2,3) >= caddr[2]); // Update caddr[2] = max(caddr[2],0); buff(2,3) = (r0==0); mem(3,cw(2,3)) = (r0==0); co(3,cw(2,3))+=1; delta(3,cw(2,3)) = -1; ASSUME(creturn[2] >= cw(2,3)); // ret i8* null, !dbg !61 ret_thread_2 = (- 1); goto T2BLOCK_END; T2BLOCK_END: // Dumping thread 3 int ret_thread_3 = 0; cdy[3] = get_rng(0,NCONTEXT-1); ASSUME(cdy[3] >= cstart[3]); T3BLOCK0: // call void @llvm.dbg.value(metadata i8* %arg, metadata !82, metadata !DIExpression()), !dbg !92 // br label %label_3, !dbg !48 goto T3BLOCK1; T3BLOCK1: // call void @llvm.dbg.label(metadata !91), !dbg !94 // call void @llvm.dbg.value(metadata i64* getelementptr inbounds ([3 x i64], [3 x i64]* @vars, i64 0, i64 2), metadata !83, metadata !DIExpression()), !dbg !95 // call void @llvm.dbg.value(metadata i64 1, metadata !85, metadata !DIExpression()), !dbg !95 // store atomic i64 1, i64* getelementptr inbounds ([3 x i64], [3 x i64]* @vars, i64 0, i64 2) monotonic, align 8, !dbg !51 // ST: Guess iw(3,0+2*1) = get_rng(0,NCONTEXT-1);// 3 ASSIGN STIW _l36_c3 old_cw = cw(3,0+2*1); cw(3,0+2*1) = get_rng(0,NCONTEXT-1);// 3 ASSIGN STCOM _l36_c3 // Check ASSUME(active[iw(3,0+2*1)] == 3); ASSUME(active[cw(3,0+2*1)] == 3); ASSUME(sforbid(0+2*1,cw(3,0+2*1))== 0); ASSUME(iw(3,0+2*1) >= 0); ASSUME(iw(3,0+2*1) >= 0); ASSUME(cw(3,0+2*1) >= iw(3,0+2*1)); ASSUME(cw(3,0+2*1) >= old_cw); ASSUME(cw(3,0+2*1) >= cr(3,0+2*1)); ASSUME(cw(3,0+2*1) >= cl[3]); ASSUME(cw(3,0+2*1) >= cisb[3]); ASSUME(cw(3,0+2*1) >= cdy[3]); ASSUME(cw(3,0+2*1) >= cdl[3]); ASSUME(cw(3,0+2*1) >= cds[3]); ASSUME(cw(3,0+2*1) >= cctrl[3]); ASSUME(cw(3,0+2*1) >= caddr[3]); // Update caddr[3] = max(caddr[3],0); buff(3,0+2*1) = 1; mem(0+2*1,cw(3,0+2*1)) = 1; co(0+2*1,cw(3,0+2*1))+=1; delta(0+2*1,cw(3,0+2*1)) = -1; ASSUME(creturn[3] >= cw(3,0+2*1)); // call void @llvm.dbg.value(metadata i64* getelementptr inbounds ([3 x i64], [3 x i64]* @vars, i64 0, i64 1), metadata !87, metadata !DIExpression()), !dbg !97 // %0 = load atomic i64, i64* getelementptr inbounds ([3 x i64], [3 x i64]* @vars, i64 0, i64 1) acquire, align 8, !dbg !53 // LD: Guess // : Acquire old_cr = cr(3,0+1*1); cr(3,0+1*1) = get_rng(0,NCONTEXT-1);// 3 ASSIGN LDCOM _l37_c15 // Check ASSUME(active[cr(3,0+1*1)] == 3); ASSUME(cr(3,0+1*1) >= iw(3,0+1*1)); ASSUME(cr(3,0+1*1) >= 0); ASSUME(cr(3,0+1*1) >= cdy[3]); ASSUME(cr(3,0+1*1) >= cisb[3]); ASSUME(cr(3,0+1*1) >= cdl[3]); ASSUME(cr(3,0+1*1) >= cl[3]); ASSUME(cr(3,0+1*1) >= cx(3,0+1*1)); ASSUME(cr(3,0+1*1) >= cs(3,4+0)); ASSUME(cr(3,0+1*1) >= cs(3,0+0)); ASSUME(cr(3,0+1*1) >= cs(3,0+1)); ASSUME(cr(3,0+1*1) >= cs(3,0+2)); ASSUME(cr(3,0+1*1) >= cs(3,3+0)); // Update creg_r1 = cr(3,0+1*1); crmax(3,0+1*1) = max(crmax(3,0+1*1),cr(3,0+1*1)); caddr[3] = max(caddr[3],0); if(cr(3,0+1*1) < cw(3,0+1*1)) { r1 = buff(3,0+1*1); ASSUME((!(( (cw(3,0+1*1) < 1) && (1 < crmax(3,0+1*1)) )))||(sforbid(0+1*1,1)> 0)); ASSUME((!(( (cw(3,0+1*1) < 2) && (2 < crmax(3,0+1*1)) )))||(sforbid(0+1*1,2)> 0)); ASSUME((!(( (cw(3,0+1*1) < 3) && (3 < crmax(3,0+1*1)) )))||(sforbid(0+1*1,3)> 0)); ASSUME((!(( (cw(3,0+1*1) < 4) && (4 < crmax(3,0+1*1)) )))||(sforbid(0+1*1,4)> 0)); } else { if(pw(3,0+1*1) != co(0+1*1,cr(3,0+1*1))) { ASSUME(cr(3,0+1*1) >= old_cr); } pw(3,0+1*1) = co(0+1*1,cr(3,0+1*1)); r1 = mem(0+1*1,cr(3,0+1*1)); } cl[3] = max(cl[3],cr(3,0+1*1)); ASSUME(creturn[3] >= cr(3,0+1*1)); // call void @llvm.dbg.value(metadata i64 %0, metadata !89, metadata !DIExpression()), !dbg !97 // %conv = trunc i64 %0 to i32, !dbg !54 // call void @llvm.dbg.value(metadata i32 %conv, metadata !86, metadata !DIExpression()), !dbg !92 // %cmp = icmp eq i32 %conv, 0, !dbg !55 creg__r1__0_ = max(0,creg_r1); // %conv1 = zext i1 %cmp to i32, !dbg !55 // call void @llvm.dbg.value(metadata i32 %conv1, metadata !90, metadata !DIExpression()), !dbg !92 // store i32 %conv1, i32* @atom_2_X1_0, align 4, !dbg !56, !tbaa !57 // ST: Guess iw(3,4) = get_rng(0,NCONTEXT-1);// 3 ASSIGN STIW _l39_c15 old_cw = cw(3,4); cw(3,4) = get_rng(0,NCONTEXT-1);// 3 ASSIGN STCOM _l39_c15 // Check ASSUME(active[iw(3,4)] == 3); ASSUME(active[cw(3,4)] == 3); ASSUME(sforbid(4,cw(3,4))== 0); ASSUME(iw(3,4) >= creg__r1__0_); ASSUME(iw(3,4) >= 0); ASSUME(cw(3,4) >= iw(3,4)); ASSUME(cw(3,4) >= old_cw); ASSUME(cw(3,4) >= cr(3,4)); ASSUME(cw(3,4) >= cl[3]); ASSUME(cw(3,4) >= cisb[3]); ASSUME(cw(3,4) >= cdy[3]); ASSUME(cw(3,4) >= cdl[3]); ASSUME(cw(3,4) >= cds[3]); ASSUME(cw(3,4) >= cctrl[3]); ASSUME(cw(3,4) >= caddr[3]); // Update caddr[3] = max(caddr[3],0); buff(3,4) = (r1==0); mem(4,cw(3,4)) = (r1==0); co(4,cw(3,4))+=1; delta(4,cw(3,4)) = -1; ASSUME(creturn[3] >= cw(3,4)); // ret i8* null, !dbg !61 ret_thread_3 = (- 1); goto T3BLOCK_END; T3BLOCK_END: // Dumping thread 0 int ret_thread_0 = 0; cdy[0] = get_rng(0,NCONTEXT-1); ASSUME(cdy[0] >= cstart[0]); T0BLOCK0: // %thr0 = alloca i64, align 8 // %thr1 = alloca i64, align 8 // %thr2 = alloca i64, align 8 // call void @llvm.dbg.value(metadata i32 %argc, metadata !110, metadata !DIExpression()), !dbg !136 // call void @llvm.dbg.value(metadata i8** %argv, metadata !111, metadata !DIExpression()), !dbg !136 // %0 = bitcast i64* %thr0 to i8*, !dbg !67 // call void @llvm.lifetime.start.p0i8(i64 8, i8* %0) #7, !dbg !67 // call void @llvm.dbg.declare(metadata i64* %thr0, metadata !112, metadata !DIExpression()), !dbg !138 // %1 = bitcast i64* %thr1 to i8*, !dbg !69 // call void @llvm.lifetime.start.p0i8(i64 8, i8* %1) #7, !dbg !69 // call void @llvm.dbg.declare(metadata i64* %thr1, metadata !116, metadata !DIExpression()), !dbg !140 // %2 = bitcast i64* %thr2 to i8*, !dbg !71 // call void @llvm.lifetime.start.p0i8(i64 8, i8* %2) #7, !dbg !71 // call void @llvm.dbg.declare(metadata i64* %thr2, metadata !117, metadata !DIExpression()), !dbg !142 // call void @llvm.dbg.value(metadata i64* getelementptr inbounds ([3 x i64], [3 x i64]* @vars, i64 0, i64 2), metadata !118, metadata !DIExpression()), !dbg !143 // call void @llvm.dbg.value(metadata i64 0, metadata !120, metadata !DIExpression()), !dbg !143 // store atomic i64 0, i64* getelementptr inbounds ([3 x i64], [3 x i64]* @vars, i64 0, i64 2) monotonic, align 8, !dbg !74 // ST: Guess iw(0,0+2*1) = get_rng(0,NCONTEXT-1);// 0 ASSIGN STIW _l48_c3 old_cw = cw(0,0+2*1); cw(0,0+2*1) = get_rng(0,NCONTEXT-1);// 0 ASSIGN STCOM _l48_c3 // Check ASSUME(active[iw(0,0+2*1)] == 0); ASSUME(active[cw(0,0+2*1)] == 0); ASSUME(sforbid(0+2*1,cw(0,0+2*1))== 0); ASSUME(iw(0,0+2*1) >= 0); ASSUME(iw(0,0+2*1) >= 0); ASSUME(cw(0,0+2*1) >= iw(0,0+2*1)); ASSUME(cw(0,0+2*1) >= old_cw); ASSUME(cw(0,0+2*1) >= cr(0,0+2*1)); ASSUME(cw(0,0+2*1) >= cl[0]); ASSUME(cw(0,0+2*1) >= cisb[0]); ASSUME(cw(0,0+2*1) >= cdy[0]); ASSUME(cw(0,0+2*1) >= cdl[0]); ASSUME(cw(0,0+2*1) >= cds[0]); ASSUME(cw(0,0+2*1) >= cctrl[0]); ASSUME(cw(0,0+2*1) >= caddr[0]); // Update caddr[0] = max(caddr[0],0); buff(0,0+2*1) = 0; mem(0+2*1,cw(0,0+2*1)) = 0; co(0+2*1,cw(0,0+2*1))+=1; delta(0+2*1,cw(0,0+2*1)) = -1; ASSUME(creturn[0] >= cw(0,0+2*1)); // call void @llvm.dbg.value(metadata i64* getelementptr inbounds ([3 x i64], [3 x i64]* @vars, i64 0, i64 1), metadata !121, metadata !DIExpression()), !dbg !145 // call void @llvm.dbg.value(metadata i64 0, metadata !123, metadata !DIExpression()), !dbg !145 // store atomic i64 0, i64* getelementptr inbounds ([3 x i64], [3 x i64]* @vars, i64 0, i64 1) monotonic, align 8, !dbg !76 // ST: Guess iw(0,0+1*1) = get_rng(0,NCONTEXT-1);// 0 ASSIGN STIW _l49_c3 old_cw = cw(0,0+1*1); cw(0,0+1*1) = get_rng(0,NCONTEXT-1);// 0 ASSIGN STCOM _l49_c3 // Check ASSUME(active[iw(0,0+1*1)] == 0); ASSUME(active[cw(0,0+1*1)] == 0); ASSUME(sforbid(0+1*1,cw(0,0+1*1))== 0); ASSUME(iw(0,0+1*1) >= 0); ASSUME(iw(0,0+1*1) >= 0); ASSUME(cw(0,0+1*1) >= iw(0,0+1*1)); ASSUME(cw(0,0+1*1) >= old_cw); ASSUME(cw(0,0+1*1) >= cr(0,0+1*1)); ASSUME(cw(0,0+1*1) >= cl[0]); ASSUME(cw(0,0+1*1) >= cisb[0]); ASSUME(cw(0,0+1*1) >= cdy[0]); ASSUME(cw(0,0+1*1) >= cdl[0]); ASSUME(cw(0,0+1*1) >= cds[0]); ASSUME(cw(0,0+1*1) >= cctrl[0]); ASSUME(cw(0,0+1*1) >= caddr[0]); // Update caddr[0] = max(caddr[0],0); buff(0,0+1*1) = 0; mem(0+1*1,cw(0,0+1*1)) = 0; co(0+1*1,cw(0,0+1*1))+=1; delta(0+1*1,cw(0,0+1*1)) = -1; ASSUME(creturn[0] >= cw(0,0+1*1)); // call void @llvm.dbg.value(metadata i64* getelementptr inbounds ([3 x i64], [3 x i64]* @vars, i64 0, i64 0), metadata !124, metadata !DIExpression()), !dbg !147 // call void @llvm.dbg.value(metadata i64 0, metadata !126, metadata !DIExpression()), !dbg !147 // store atomic i64 0, i64* getelementptr inbounds ([3 x i64], [3 x i64]* @vars, i64 0, i64 0) monotonic, align 8, !dbg !78 // ST: Guess iw(0,0) = get_rng(0,NCONTEXT-1);// 0 ASSIGN STIW _l50_c3 old_cw = cw(0,0); cw(0,0) = get_rng(0,NCONTEXT-1);// 0 ASSIGN STCOM _l50_c3 // Check ASSUME(active[iw(0,0)] == 0); ASSUME(active[cw(0,0)] == 0); ASSUME(sforbid(0,cw(0,0))== 0); ASSUME(iw(0,0) >= 0); ASSUME(iw(0,0) >= 0); ASSUME(cw(0,0) >= iw(0,0)); ASSUME(cw(0,0) >= old_cw); ASSUME(cw(0,0) >= cr(0,0)); ASSUME(cw(0,0) >= cl[0]); ASSUME(cw(0,0) >= cisb[0]); ASSUME(cw(0,0) >= cdy[0]); ASSUME(cw(0,0) >= cdl[0]); ASSUME(cw(0,0) >= cds[0]); ASSUME(cw(0,0) >= cctrl[0]); ASSUME(cw(0,0) >= caddr[0]); // Update caddr[0] = max(caddr[0],0); buff(0,0) = 0; mem(0,cw(0,0)) = 0; co(0,cw(0,0))+=1; delta(0,cw(0,0)) = -1; ASSUME(creturn[0] >= cw(0,0)); // store i32 0, i32* @atom_1_X1_0, align 4, !dbg !79, !tbaa !80 // ST: Guess iw(0,3) = get_rng(0,NCONTEXT-1);// 0 ASSIGN STIW _l51_c15 old_cw = cw(0,3); cw(0,3) = get_rng(0,NCONTEXT-1);// 0 ASSIGN STCOM _l51_c15 // Check ASSUME(active[iw(0,3)] == 0); ASSUME(active[cw(0,3)] == 0); ASSUME(sforbid(3,cw(0,3))== 0); ASSUME(iw(0,3) >= 0); ASSUME(iw(0,3) >= 0); ASSUME(cw(0,3) >= iw(0,3)); ASSUME(cw(0,3) >= old_cw); ASSUME(cw(0,3) >= cr(0,3)); ASSUME(cw(0,3) >= cl[0]); ASSUME(cw(0,3) >= cisb[0]); ASSUME(cw(0,3) >= cdy[0]); ASSUME(cw(0,3) >= cdl[0]); ASSUME(cw(0,3) >= cds[0]); ASSUME(cw(0,3) >= cctrl[0]); ASSUME(cw(0,3) >= caddr[0]); // Update caddr[0] = max(caddr[0],0); buff(0,3) = 0; mem(3,cw(0,3)) = 0; co(3,cw(0,3))+=1; delta(3,cw(0,3)) = -1; ASSUME(creturn[0] >= cw(0,3)); // store i32 0, i32* @atom_2_X1_0, align 4, !dbg !84, !tbaa !80 // ST: Guess iw(0,4) = get_rng(0,NCONTEXT-1);// 0 ASSIGN STIW _l52_c15 old_cw = cw(0,4); cw(0,4) = get_rng(0,NCONTEXT-1);// 0 ASSIGN STCOM _l52_c15 // Check ASSUME(active[iw(0,4)] == 0); ASSUME(active[cw(0,4)] == 0); ASSUME(sforbid(4,cw(0,4))== 0); ASSUME(iw(0,4) >= 0); ASSUME(iw(0,4) >= 0); ASSUME(cw(0,4) >= iw(0,4)); ASSUME(cw(0,4) >= old_cw); ASSUME(cw(0,4) >= cr(0,4)); ASSUME(cw(0,4) >= cl[0]); ASSUME(cw(0,4) >= cisb[0]); ASSUME(cw(0,4) >= cdy[0]); ASSUME(cw(0,4) >= cdl[0]); ASSUME(cw(0,4) >= cds[0]); ASSUME(cw(0,4) >= cctrl[0]); ASSUME(cw(0,4) >= caddr[0]); // Update caddr[0] = max(caddr[0],0); buff(0,4) = 0; mem(4,cw(0,4)) = 0; co(4,cw(0,4))+=1; delta(4,cw(0,4)) = -1; ASSUME(creturn[0] >= cw(0,4)); // %call = call i32 @pthread_create(i64* noundef %thr0, %union.pthread_attr_t* noundef null, i8* (i8*)* noundef @t0, i8* noundef null) #7, !dbg !85 // dumbsy: Guess old_cdy = cdy[0]; cdy[0] = get_rng(0,NCONTEXT-1); // Check ASSUME(cdy[0] >= old_cdy); ASSUME(cdy[0] >= cisb[0]); ASSUME(cdy[0] >= cdl[0]); ASSUME(cdy[0] >= cds[0]); ASSUME(cdy[0] >= cctrl[0]); ASSUME(cdy[0] >= cw(0,4+0)); ASSUME(cdy[0] >= cw(0,0+0)); ASSUME(cdy[0] >= cw(0,0+1)); ASSUME(cdy[0] >= cw(0,0+2)); ASSUME(cdy[0] >= cw(0,3+0)); ASSUME(cdy[0] >= cr(0,4+0)); ASSUME(cdy[0] >= cr(0,0+0)); ASSUME(cdy[0] >= cr(0,0+1)); ASSUME(cdy[0] >= cr(0,0+2)); ASSUME(cdy[0] >= cr(0,3+0)); ASSUME(creturn[0] >= cdy[0]); ASSUME(cstart[1] >= cdy[0]); // %call5 = call i32 @pthread_create(i64* noundef %thr1, %union.pthread_attr_t* noundef null, i8* (i8*)* noundef @t1, i8* noundef null) #7, !dbg !86 // dumbsy: Guess old_cdy = cdy[0]; cdy[0] = get_rng(0,NCONTEXT-1); // Check ASSUME(cdy[0] >= old_cdy); ASSUME(cdy[0] >= cisb[0]); ASSUME(cdy[0] >= cdl[0]); ASSUME(cdy[0] >= cds[0]); ASSUME(cdy[0] >= cctrl[0]); ASSUME(cdy[0] >= cw(0,4+0)); ASSUME(cdy[0] >= cw(0,0+0)); ASSUME(cdy[0] >= cw(0,0+1)); ASSUME(cdy[0] >= cw(0,0+2)); ASSUME(cdy[0] >= cw(0,3+0)); ASSUME(cdy[0] >= cr(0,4+0)); ASSUME(cdy[0] >= cr(0,0+0)); ASSUME(cdy[0] >= cr(0,0+1)); ASSUME(cdy[0] >= cr(0,0+2)); ASSUME(cdy[0] >= cr(0,3+0)); ASSUME(creturn[0] >= cdy[0]); ASSUME(cstart[2] >= cdy[0]); // %call6 = call i32 @pthread_create(i64* noundef %thr2, %union.pthread_attr_t* noundef null, i8* (i8*)* noundef @t2, i8* noundef null) #7, !dbg !87 // dumbsy: Guess old_cdy = cdy[0]; cdy[0] = get_rng(0,NCONTEXT-1); // Check ASSUME(cdy[0] >= old_cdy); ASSUME(cdy[0] >= cisb[0]); ASSUME(cdy[0] >= cdl[0]); ASSUME(cdy[0] >= cds[0]); ASSUME(cdy[0] >= cctrl[0]); ASSUME(cdy[0] >= cw(0,4+0)); ASSUME(cdy[0] >= cw(0,0+0)); ASSUME(cdy[0] >= cw(0,0+1)); ASSUME(cdy[0] >= cw(0,0+2)); ASSUME(cdy[0] >= cw(0,3+0)); ASSUME(cdy[0] >= cr(0,4+0)); ASSUME(cdy[0] >= cr(0,0+0)); ASSUME(cdy[0] >= cr(0,0+1)); ASSUME(cdy[0] >= cr(0,0+2)); ASSUME(cdy[0] >= cr(0,3+0)); ASSUME(creturn[0] >= cdy[0]); ASSUME(cstart[3] >= cdy[0]); // %3 = load i64, i64* %thr0, align 8, !dbg !88, !tbaa !89 r3 = local_mem[0]; // %call7 = call i32 @pthread_join(i64 noundef %3, i8** noundef null), !dbg !91 // dumbsy: Guess old_cdy = cdy[0]; cdy[0] = get_rng(0,NCONTEXT-1); // Check ASSUME(cdy[0] >= old_cdy); ASSUME(cdy[0] >= cisb[0]); ASSUME(cdy[0] >= cdl[0]); ASSUME(cdy[0] >= cds[0]); ASSUME(cdy[0] >= cctrl[0]); ASSUME(cdy[0] >= cw(0,4+0)); ASSUME(cdy[0] >= cw(0,0+0)); ASSUME(cdy[0] >= cw(0,0+1)); ASSUME(cdy[0] >= cw(0,0+2)); ASSUME(cdy[0] >= cw(0,3+0)); ASSUME(cdy[0] >= cr(0,4+0)); ASSUME(cdy[0] >= cr(0,0+0)); ASSUME(cdy[0] >= cr(0,0+1)); ASSUME(cdy[0] >= cr(0,0+2)); ASSUME(cdy[0] >= cr(0,3+0)); ASSUME(creturn[0] >= cdy[0]); ASSUME(cdy[0] >= creturn[1]); // %4 = load i64, i64* %thr1, align 8, !dbg !92, !tbaa !89 r4 = local_mem[1]; // %call8 = call i32 @pthread_join(i64 noundef %4, i8** noundef null), !dbg !93 // dumbsy: Guess old_cdy = cdy[0]; cdy[0] = get_rng(0,NCONTEXT-1); // Check ASSUME(cdy[0] >= old_cdy); ASSUME(cdy[0] >= cisb[0]); ASSUME(cdy[0] >= cdl[0]); ASSUME(cdy[0] >= cds[0]); ASSUME(cdy[0] >= cctrl[0]); ASSUME(cdy[0] >= cw(0,4+0)); ASSUME(cdy[0] >= cw(0,0+0)); ASSUME(cdy[0] >= cw(0,0+1)); ASSUME(cdy[0] >= cw(0,0+2)); ASSUME(cdy[0] >= cw(0,3+0)); ASSUME(cdy[0] >= cr(0,4+0)); ASSUME(cdy[0] >= cr(0,0+0)); ASSUME(cdy[0] >= cr(0,0+1)); ASSUME(cdy[0] >= cr(0,0+2)); ASSUME(cdy[0] >= cr(0,3+0)); ASSUME(creturn[0] >= cdy[0]); ASSUME(cdy[0] >= creturn[2]); // %5 = load i64, i64* %thr2, align 8, !dbg !94, !tbaa !89 r5 = local_mem[2]; // %call9 = call i32 @pthread_join(i64 noundef %5, i8** noundef null), !dbg !95 // dumbsy: Guess old_cdy = cdy[0]; cdy[0] = get_rng(0,NCONTEXT-1); // Check ASSUME(cdy[0] >= old_cdy); ASSUME(cdy[0] >= cisb[0]); ASSUME(cdy[0] >= cdl[0]); ASSUME(cdy[0] >= cds[0]); ASSUME(cdy[0] >= cctrl[0]); ASSUME(cdy[0] >= cw(0,4+0)); ASSUME(cdy[0] >= cw(0,0+0)); ASSUME(cdy[0] >= cw(0,0+1)); ASSUME(cdy[0] >= cw(0,0+2)); ASSUME(cdy[0] >= cw(0,3+0)); ASSUME(cdy[0] >= cr(0,4+0)); ASSUME(cdy[0] >= cr(0,0+0)); ASSUME(cdy[0] >= cr(0,0+1)); ASSUME(cdy[0] >= cr(0,0+2)); ASSUME(cdy[0] >= cr(0,3+0)); ASSUME(creturn[0] >= cdy[0]); ASSUME(cdy[0] >= creturn[3]); // call void @llvm.dbg.value(metadata i64* getelementptr inbounds ([3 x i64], [3 x i64]* @vars, i64 0, i64 0), metadata !128, metadata !DIExpression()), !dbg !162 // %6 = load atomic i64, i64* getelementptr inbounds ([3 x i64], [3 x i64]* @vars, i64 0, i64 0) monotonic, align 8, !dbg !97 // LD: Guess old_cr = cr(0,0); cr(0,0) = get_rng(0,NCONTEXT-1);// 0 ASSIGN LDCOM _l62_c12 // Check ASSUME(active[cr(0,0)] == 0); ASSUME(cr(0,0) >= iw(0,0)); ASSUME(cr(0,0) >= 0); ASSUME(cr(0,0) >= cdy[0]); ASSUME(cr(0,0) >= cisb[0]); ASSUME(cr(0,0) >= cdl[0]); ASSUME(cr(0,0) >= cl[0]); // Update creg_r6 = cr(0,0); crmax(0,0) = max(crmax(0,0),cr(0,0)); caddr[0] = max(caddr[0],0); if(cr(0,0) < cw(0,0)) { r6 = buff(0,0); ASSUME((!(( (cw(0,0) < 1) && (1 < crmax(0,0)) )))||(sforbid(0,1)> 0)); ASSUME((!(( (cw(0,0) < 2) && (2 < crmax(0,0)) )))||(sforbid(0,2)> 0)); ASSUME((!(( (cw(0,0) < 3) && (3 < crmax(0,0)) )))||(sforbid(0,3)> 0)); ASSUME((!(( (cw(0,0) < 4) && (4 < crmax(0,0)) )))||(sforbid(0,4)> 0)); } else { if(pw(0,0) != co(0,cr(0,0))) { ASSUME(cr(0,0) >= old_cr); } pw(0,0) = co(0,cr(0,0)); r6 = mem(0,cr(0,0)); } ASSUME(creturn[0] >= cr(0,0)); // call void @llvm.dbg.value(metadata i64 %6, metadata !130, metadata !DIExpression()), !dbg !162 // %conv = trunc i64 %6 to i32, !dbg !98 // call void @llvm.dbg.value(metadata i32 %conv, metadata !127, metadata !DIExpression()), !dbg !136 // %cmp = icmp eq i32 %conv, 2, !dbg !99 creg__r6__2_ = max(0,creg_r6); // %conv10 = zext i1 %cmp to i32, !dbg !99 // call void @llvm.dbg.value(metadata i32 %conv10, metadata !131, metadata !DIExpression()), !dbg !136 // %7 = load i32, i32* @atom_1_X1_0, align 4, !dbg !100, !tbaa !80 // LD: Guess old_cr = cr(0,3); cr(0,3) = get_rng(0,NCONTEXT-1);// 0 ASSIGN LDCOM _l64_c12 // Check ASSUME(active[cr(0,3)] == 0); ASSUME(cr(0,3) >= iw(0,3)); ASSUME(cr(0,3) >= 0); ASSUME(cr(0,3) >= cdy[0]); ASSUME(cr(0,3) >= cisb[0]); ASSUME(cr(0,3) >= cdl[0]); ASSUME(cr(0,3) >= cl[0]); // Update creg_r7 = cr(0,3); crmax(0,3) = max(crmax(0,3),cr(0,3)); caddr[0] = max(caddr[0],0); if(cr(0,3) < cw(0,3)) { r7 = buff(0,3); ASSUME((!(( (cw(0,3) < 1) && (1 < crmax(0,3)) )))||(sforbid(3,1)> 0)); ASSUME((!(( (cw(0,3) < 2) && (2 < crmax(0,3)) )))||(sforbid(3,2)> 0)); ASSUME((!(( (cw(0,3) < 3) && (3 < crmax(0,3)) )))||(sforbid(3,3)> 0)); ASSUME((!(( (cw(0,3) < 4) && (4 < crmax(0,3)) )))||(sforbid(3,4)> 0)); } else { if(pw(0,3) != co(3,cr(0,3))) { ASSUME(cr(0,3) >= old_cr); } pw(0,3) = co(3,cr(0,3)); r7 = mem(3,cr(0,3)); } ASSUME(creturn[0] >= cr(0,3)); // call void @llvm.dbg.value(metadata i32 %7, metadata !132, metadata !DIExpression()), !dbg !136 // %8 = load i32, i32* @atom_2_X1_0, align 4, !dbg !101, !tbaa !80 // LD: Guess old_cr = cr(0,4); cr(0,4) = get_rng(0,NCONTEXT-1);// 0 ASSIGN LDCOM _l65_c13 // Check ASSUME(active[cr(0,4)] == 0); ASSUME(cr(0,4) >= iw(0,4)); ASSUME(cr(0,4) >= 0); ASSUME(cr(0,4) >= cdy[0]); ASSUME(cr(0,4) >= cisb[0]); ASSUME(cr(0,4) >= cdl[0]); ASSUME(cr(0,4) >= cl[0]); // Update creg_r8 = cr(0,4); crmax(0,4) = max(crmax(0,4),cr(0,4)); caddr[0] = max(caddr[0],0); if(cr(0,4) < cw(0,4)) { r8 = buff(0,4); ASSUME((!(( (cw(0,4) < 1) && (1 < crmax(0,4)) )))||(sforbid(4,1)> 0)); ASSUME((!(( (cw(0,4) < 2) && (2 < crmax(0,4)) )))||(sforbid(4,2)> 0)); ASSUME((!(( (cw(0,4) < 3) && (3 < crmax(0,4)) )))||(sforbid(4,3)> 0)); ASSUME((!(( (cw(0,4) < 4) && (4 < crmax(0,4)) )))||(sforbid(4,4)> 0)); } else { if(pw(0,4) != co(4,cr(0,4))) { ASSUME(cr(0,4) >= old_cr); } pw(0,4) = co(4,cr(0,4)); r8 = mem(4,cr(0,4)); } ASSUME(creturn[0] >= cr(0,4)); // call void @llvm.dbg.value(metadata i32 %8, metadata !133, metadata !DIExpression()), !dbg !136 // %and = and i32 %7, %8, !dbg !102 creg_r9 = max(creg_r7,creg_r8); r9 = r7 & r8; // call void @llvm.dbg.value(metadata i32 %and, metadata !134, metadata !DIExpression()), !dbg !136 // %and11 = and i32 %conv10, %and, !dbg !103 creg_r10 = max(creg__r6__2_,creg_r9); r10 = (r6==2) & r9; // call void @llvm.dbg.value(metadata i32 %and11, metadata !135, metadata !DIExpression()), !dbg !136 // %cmp12 = icmp eq i32 %and11, 1, !dbg !104 creg__r10__1_ = max(0,creg_r10); // br i1 %cmp12, label %if.then, label %if.end, !dbg !106 old_cctrl = cctrl[0]; cctrl[0] = get_rng(0,NCONTEXT-1); ASSUME(cctrl[0] >= old_cctrl); ASSUME(cctrl[0] >= creg__r10__1_); if((r10==1)) { goto T0BLOCK1; } else { goto T0BLOCK2; } T0BLOCK1: // call void @__assert_fail(i8* noundef getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0), i8* noundef getelementptr inbounds ([134 x i8], [134 x i8]* @.str.1, i64 0, i64 0), i32 noundef 68, i8* noundef getelementptr inbounds ([23 x i8], [23 x i8]* @__PRETTY_FUNCTION__.main, i64 0, i64 0)) #8, !dbg !107 // unreachable, !dbg !107 r11 = 1; goto T0BLOCK_END; T0BLOCK2: // %9 = bitcast i64* %thr2 to i8*, !dbg !110 // call void @llvm.lifetime.end.p0i8(i64 8, i8* %9) #7, !dbg !110 // %10 = bitcast i64* %thr1 to i8*, !dbg !110 // call void @llvm.lifetime.end.p0i8(i64 8, i8* %10) #7, !dbg !110 // %11 = bitcast i64* %thr0 to i8*, !dbg !110 // call void @llvm.lifetime.end.p0i8(i64 8, i8* %11) #7, !dbg !110 // ret i32 0, !dbg !111 ret_thread_0 = 0; goto T0BLOCK_END; T0BLOCK_END: ASSUME(meminit(0,1) == mem(0,0)); ASSUME(coinit(0,1) == co(0,0)); ASSUME(deltainit(0,1) == delta(0,0)); ASSUME(meminit(0,2) == mem(0,1)); ASSUME(coinit(0,2) == co(0,1)); ASSUME(deltainit(0,2) == delta(0,1)); ASSUME(meminit(0,3) == mem(0,2)); ASSUME(coinit(0,3) == co(0,2)); ASSUME(deltainit(0,3) == delta(0,2)); ASSUME(meminit(0,4) == mem(0,3)); ASSUME(coinit(0,4) == co(0,3)); ASSUME(deltainit(0,4) == delta(0,3)); ASSUME(meminit(1,1) == mem(1,0)); ASSUME(coinit(1,1) == co(1,0)); ASSUME(deltainit(1,1) == delta(1,0)); ASSUME(meminit(1,2) == mem(1,1)); ASSUME(coinit(1,2) == co(1,1)); ASSUME(deltainit(1,2) == delta(1,1)); ASSUME(meminit(1,3) == mem(1,2)); ASSUME(coinit(1,3) == co(1,2)); ASSUME(deltainit(1,3) == delta(1,2)); ASSUME(meminit(1,4) == mem(1,3)); ASSUME(coinit(1,4) == co(1,3)); ASSUME(deltainit(1,4) == delta(1,3)); ASSUME(meminit(2,1) == mem(2,0)); ASSUME(coinit(2,1) == co(2,0)); ASSUME(deltainit(2,1) == delta(2,0)); ASSUME(meminit(2,2) == mem(2,1)); ASSUME(coinit(2,2) == co(2,1)); ASSUME(deltainit(2,2) == delta(2,1)); ASSUME(meminit(2,3) == mem(2,2)); ASSUME(coinit(2,3) == co(2,2)); ASSUME(deltainit(2,3) == delta(2,2)); ASSUME(meminit(2,4) == mem(2,3)); ASSUME(coinit(2,4) == co(2,3)); ASSUME(deltainit(2,4) == delta(2,3)); ASSUME(meminit(3,1) == mem(3,0)); ASSUME(coinit(3,1) == co(3,0)); ASSUME(deltainit(3,1) == delta(3,0)); ASSUME(meminit(3,2) == mem(3,1)); ASSUME(coinit(3,2) == co(3,1)); ASSUME(deltainit(3,2) == delta(3,1)); ASSUME(meminit(3,3) == mem(3,2)); ASSUME(coinit(3,3) == co(3,2)); ASSUME(deltainit(3,3) == delta(3,2)); ASSUME(meminit(3,4) == mem(3,3)); ASSUME(coinit(3,4) == co(3,3)); ASSUME(deltainit(3,4) == delta(3,3)); ASSUME(meminit(4,1) == mem(4,0)); ASSUME(coinit(4,1) == co(4,0)); ASSUME(deltainit(4,1) == delta(4,0)); ASSUME(meminit(4,2) == mem(4,1)); ASSUME(coinit(4,2) == co(4,1)); ASSUME(deltainit(4,2) == delta(4,1)); ASSUME(meminit(4,3) == mem(4,2)); ASSUME(coinit(4,3) == co(4,2)); ASSUME(deltainit(4,3) == delta(4,2)); ASSUME(meminit(4,4) == mem(4,3)); ASSUME(coinit(4,4) == co(4,3)); ASSUME(deltainit(4,4) == delta(4,3)); ASSERT(r11== 0); }
[ "tuan-phong.ngo@it.uu.se" ]
tuan-phong.ngo@it.uu.se
4b991db851e2cab00b72104558b8502cf5220514
403d5d1a0037fa9e34ba16dad6d99ad4912f2528
/case-break-checker/WonSY/WonSY_Time.cpp
e471e245784f8a2f16b4706e4b0667cdfa267855
[ "MIT" ]
permissive
GameForPeople/case-break-checker
2bb5c4a7f5381fa06582a8c48f61d5a5cbf894d4
31c5f911a06245217aad197382dd126e677d7e09
refs/heads/main
2023-08-21T01:20:26.339779
2021-09-25T13:51:49
2021-09-25T13:51:49
390,229,222
3
0
null
null
null
null
UTF-8
C++
false
false
649
cpp
/* Copyright 2021, Won Seong-Yeon. All Rights Reserved. KoreaGameMaker@gmail.com github.com/GameForPeople */ #include "WonSY_Time.h" #include <ctime> #include <chrono> #include <sstream> #include <iomanip> std::string WonSY::TIME::NowForLog() noexcept { const auto time = std::time( nullptr ); const auto localTime = *std::localtime( &time ); std::ostringstream os; os << std::put_time( &localTime, "%y-%m-%d %H:%M:%S" ); return os.str(); } WonSY::TIME::_Time WonSY::TIME::Now() noexcept { return std::chrono::duration_cast< std::chrono::milliseconds >( std::chrono::high_resolution_clock::now().time_since_epoch() ).count(); }
[ "Koreagamemaker@gmail.com" ]
Koreagamemaker@gmail.com
b717a214d241f3b84a354ce72d7a245cae87b0cb
4eb4242f67eb54c601885461bac58b648d91d561
/third_part/indri5.6/RVLDecompressStream.hpp
8ce12f367bf419dc2b6e0e3d63a7ad782d04ba22
[]
no_license
biebipan/coding
630c873ecedc43a9a8698c0f51e26efb536dabd1
7709df7e979f2deb5401d835d0e3b119a7cd88d8
refs/heads/master
2022-01-06T18:52:00.969411
2018-07-18T04:30:02
2018-07-18T04:30:02
null
0
0
null
null
null
null
UTF-8
C++
false
false
3,460
hpp
/*========================================================================== * Copyright (c) 2004 University of Massachusetts. All Rights Reserved. * * Use of the Lemur Toolkit for Language Modeling and Information Retrieval * is subject to the terms of the software license set forth in the LICENSE * file included with this software, and also available at * http://www.lemurproject.org/license.html * *========================================================================== */ #ifndef INDRI_RVLDECOMPRESSSTREAM_HPP #define INDRI_RVLDECOMPRESSSTREAM_HPP namespace indri { namespace utility { /*! Provide RVL decompression on a stream. */ class RVLDecompressStream { private: const char* _buffer; int _bufferSize; const char* _current; public: // Initialize // @param buffer the buffer to use for decompressing // @param size the size of buffer RVLDecompressStream(const char* buffer, int size) { _buffer = buffer; _bufferSize = size; _current = buffer; } // setBuffer // @param buffer the buffer to use for decompressing // @param size the size of buffer void setBuffer(const char* buffer, int size) { _buffer = buffer; _bufferSize = size; _current = buffer; } // Decompress an INT64 from the buffer into value // @param value reference to the container for the value. RVLDecompressStream& operator>> (INT64& value) { _current = lemur::utility::RVLCompress::decompress_longlong(_current, value); assert(_current - _buffer <= _bufferSize); return *this; } // Decompress an UINT64 from the buffer into value // @param value reference to the container for the value. RVLDecompressStream& operator>> (UINT64& value) { _current = lemur::utility::RVLCompress::decompress_longlong(_current, value); assert(_current - _buffer <= _bufferSize); return *this; } // Decompress an int from the buffer into value // @param value reference to the container for the value. RVLDecompressStream& operator>> (int& value) { _current = lemur::utility::RVLCompress::decompress_int(_current, value); assert(_current - _buffer <= _bufferSize); return *this; } // Decompress an unsigned int from the buffer into value // @param value reference to the container for the value. RVLDecompressStream& operator>> (unsigned int& value) { int v; _current = lemur::utility::RVLCompress::decompress_int(_current, v); value = (unsigned int) v; assert(_current - _buffer <= _bufferSize); return *this; } // Decompress a float from the buffer into value // @param value reference to the container for the value. RVLDecompressStream& operator>> (float& value) { // doubles aren't compressed memcpy(&value, _current, sizeof(value)); _current += sizeof(value); return *this; } // Decompress a string from the buffer into value // @param value pointer to a character buffer that will hold the decompressed value RVLDecompressStream& operator>> (char* value) { int length; _current = lemur::utility::RVLCompress::decompress_int(_current, length); ::memcpy(value, _current, length); value[length] = 0; _current += length; return *this; } // @return true if no more values in the buffer, otherwise false. bool done() const { return (_current - _buffer) >= _bufferSize; } }; } // namespace utility } // namespace indri #endif // INDRI_RVLDECOMPRESSSTREAM_HPP
[ "guoliqiang2006@126.com" ]
guoliqiang2006@126.com
ec7d5926276e9b471d94a7661c22f02fcfdabb47
00ef8d964caf4abef549bbeff81a744c282c8c16
/content/browser/notifications/platform_notification_context_impl.h
a780c453cca3e3ca3b2ec798b0b20d57566e517d
[ "BSD-3-Clause" ]
permissive
czhang03/browser-android-tabs
8295f466465e89d89109659cff74d6bb9adb8633
0277ceb50f9a90a2195c02e0d96da7b157f3b192
refs/heads/master
2023-02-16T23:55:29.149602
2018-09-14T07:46:16
2018-09-14T07:46:16
149,174,398
1
0
null
null
null
null
UTF-8
C++
false
false
9,466
h
// Copyright 2015 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. #ifndef CONTENT_BROWSER_NOTIFICATIONS_PLATFORM_NOTIFICATION_CONTEXT_IMPL_H_ #define CONTENT_BROWSER_NOTIFICATIONS_PLATFORM_NOTIFICATION_CONTEXT_IMPL_H_ #include <stdint.h> #include <memory> #include <set> #include <string> #include <vector> #include "base/callback.h" #include "base/compiler_specific.h" #include "base/files/file_path.h" #include "base/macros.h" #include "base/memory/ref_counted.h" #include "content/browser/notifications/notification_id_generator.h" #include "content/browser/service_worker/service_worker_context_core_observer.h" #include "content/common/content_export.h" #include "content/public/browser/browser_thread.h" #include "content/public/browser/platform_notification_context.h" #include "third_party/blink/public/platform/modules/notifications/notification_service.mojom.h" class GURL; namespace base { class SequencedTaskRunner; } namespace url { class Origin; } namespace content { class BlinkNotificationServiceImpl; class BrowserContext; class NotificationDatabase; struct NotificationDatabaseData; class ResourceContext; class ServiceWorkerContextWrapper; // Implementation of the Web Notification storage context. The public methods // defined in this interface must only be called on the IO thread unless // otherwise specified. class CONTENT_EXPORT PlatformNotificationContextImpl : public PlatformNotificationContext, public ServiceWorkerContextCoreObserver { public: // Constructs a new platform notification context. If |path| is non-empty, the // database will be initialized in the "Platform Notifications" subdirectory // of |path|. Otherwise, the database will be initialized in memory. The // constructor must only be called on the IO thread. PlatformNotificationContextImpl( const base::FilePath& path, BrowserContext* browser_context, const scoped_refptr<ServiceWorkerContextWrapper>& service_worker_context); // To be called on the UI thread to initialize the instance. void Initialize(); // To be called on the UI thread when the context is being shut down. void Shutdown(); // Creates a BlinkNotificationServiceImpl that is owned by this context. Must // be called on the UI thread, although the service will be created on and // bound to the IO thread. void CreateService(int render_process_id, const url::Origin& origin, blink::mojom::NotificationServiceRequest request); // Removes |service| from the list of owned services, for example because the // Mojo pipe disconnected. Must be called on the IO thread. void RemoveService(BlinkNotificationServiceImpl* service); // Returns the notification Id generator owned by the context. NotificationIdGenerator* notification_id_generator() { return &notification_id_generator_; } // PlatformNotificationContext implementation. void ReadNotificationData(const std::string& notification_id, const GURL& origin, const ReadResultCallback& callback) override; void WriteNotificationData(const GURL& origin, const NotificationDatabaseData& database_data, const WriteResultCallback& callback) override; void DeleteNotificationData(const std::string& notification_id, const GURL& origin, const DeleteResultCallback& callback) override; void ReadAllNotificationDataForServiceWorkerRegistration( const GURL& origin, int64_t service_worker_registration_id, const ReadAllResultCallback& callback) override; // ServiceWorkerContextCoreObserver implementation. void OnRegistrationDeleted(int64_t registration_id, const GURL& pattern) override; void OnStorageWiped() override; private: friend class PlatformNotificationContextTest; ~PlatformNotificationContextImpl() override; void DidGetNotificationsOnUI( std::unique_ptr<std::set<std::string>> displayed_notifications, bool supports_synchronization); void InitializeOnIO( std::unique_ptr<std::set<std::string>> displayed_notifications, bool supports_synchronization); void ShutdownOnIO(); void CreateServiceOnIO( int render_process_id, const url::Origin& origin, ResourceContext* resource_context, mojo::InterfaceRequest<blink::mojom::NotificationService> request); // Initializes the database if neccesary. Must be called on the IO thread. // |success_closure| will be invoked on a the |task_runner_| thread when // everything is available, or |failure_closure_| will be invoked on the // IO thread when initialization fails. void LazyInitialize(const base::Closure& success_closure, const base::Closure& failure_closure); // Opens the database. Must be called on the |task_runner_| thread. When the // database has been opened, |success_closure| will be invoked on the task // thread, otherwise |failure_closure_| will be invoked on the IO thread. void OpenDatabase(const base::Closure& success_closure, const base::Closure& failure_closure); // Actually reads the notification data from the database. Must only be // called on the |task_runner_| thread. |callback| will be invoked on the // IO thread when the operation has completed. void DoReadNotificationData(const std::string& notification_id, const GURL& origin, const ReadResultCallback& callback); // Updates the database (and the result callback) based on // |displayed_notifications| if |supports_synchronization|. void SynchronizeDisplayedNotificationsForServiceWorkerRegistrationOnUI( const GURL& origin, int64_t service_worker_registration_id, const ReadAllResultCallback& callback, std::unique_ptr<std::set<std::string>> displayed_notifications, bool supports_synchronization); // Updates the database (and the result callback) based on // |displayed_notifications| if |supports_synchronization|. void SynchronizeDisplayedNotificationsForServiceWorkerRegistrationOnIO( const GURL& origin, int64_t service_worker_registration_id, const ReadAllResultCallback& callback, std::unique_ptr<std::set<std::string>> displayed_notifications, bool supports_synchronization); // Actually reads all notification data from the database. Must only be // called on the |task_runner_| thread. |callback| will be invoked on the // IO thread when the operation has completed. void DoReadAllNotificationDataForServiceWorkerRegistration( const GURL& origin, int64_t service_worker_registration_id, const ReadAllResultCallback& callback, std::unique_ptr<std::set<std::string>> displayed_notifications, bool supports_synchronization); // Actually writes the notification database to the database. Must only be // called on the |task_runner_| thread. |callback| will be invoked on the // IO thread when the operation has completed. void DoWriteNotificationData(const GURL& origin, const NotificationDatabaseData& database_data, const WriteResultCallback& callback); // Actually deletes the notification information from the database. Must only // be called on the |task_runner_| thread. |callback| will be invoked on the // IO thread when the operation has completed. void DoDeleteNotificationData(const std::string& notification_id, const GURL& origin, const DeleteResultCallback& callback); // Deletes all notifications associated with |service_worker_registration_id| // belonging to |origin|. Must be called on the |task_runner_| thread. void DoDeleteNotificationsForServiceWorkerRegistration( const GURL& origin, int64_t service_worker_registration_id); // Destroys the database regardless of its initialization status. This method // must only be called on the |task_runner_| thread. Returns if the directory // the database was stored in could be emptied. bool DestroyDatabase(); // Returns the path in which the database should be initialized. May be empty. base::FilePath GetDatabasePath() const; // Sets the task runner to use for testing purposes. void SetTaskRunnerForTesting( const scoped_refptr<base::SequencedTaskRunner>& task_runner); base::FilePath path_; BrowserContext* browser_context_; scoped_refptr<ServiceWorkerContextWrapper> service_worker_context_; scoped_refptr<base::SequencedTaskRunner> task_runner_; std::unique_ptr<NotificationDatabase> database_; NotificationIdGenerator notification_id_generator_; // Indicates whether the database should be pruned when it's opened. bool prune_database_on_open_ = false; // The notification services are owned by the platform context, and will be // removed when either this class is destroyed or the Mojo pipe disconnects. std::vector<std::unique_ptr<BlinkNotificationServiceImpl>> services_; DISALLOW_COPY_AND_ASSIGN(PlatformNotificationContextImpl); }; } // namespace content #endif // CONTENT_BROWSER_NOTIFICATIONS_PLATFORM_NOTIFICATION_CONTEXT_IMPL_H_
[ "artem@brave.com" ]
artem@brave.com
370969b1aaed216182d8e29708952c17c9e8b819
d071e6156cf23ddee37a612f71d71a650c27fcfe
/contest/zoj114/G.cpp
893b4a4937771a505be0c0cd599e1b76ed111b57
[]
no_license
tsstss123/code
57f1f7d1a1bf68c47712897e2d8945a28e3e9862
e10795c35aac442345f84a58845ada9544a9c748
refs/heads/master
2021-01-24T23:00:08.749712
2013-04-30T12:33:24
2013-04-30T12:33:24
null
0
0
null
null
null
null
UTF-8
C++
false
false
1,210
cpp
#include <stdio.h> #include <string.h> const int NN= 100000 + 5; char s[NN], t[NN]; int next[2][NN]; int make_next(char s[], int next[]) { int i, k = -1; next[0] = -1; for (i = 1; s[i] != '\0'; i++) { while (k >= 0 && s[k+1] != s[i]) { k = next[k]; } if (s[k+1] == s[i]) { k++; } next[i] = k; } return i; } void kmp_str_count(char s[], char t[], int next[], int aT[], int lT) { int k = -1, ret = 0; memset(aT, 0, sizeof(aT[0]) * lT); for (int i = 0; s[i] != '\0'; i++) { while (k >= 0 && s[i] != t[k+1]) { aT[k]++; k = next[k]; } if (s[i] == t[k+1]) { k++; } if (t[k+1] == '\0') { k = -1; } } } int main() { int nCase; char ch; long long a, b, ans; scanf("%d", &nCase); while (nCase--) { ans = 0; scanf("%s", s); scanf("%s", t); for (int i = 1; t[i]; ++i) { ch = t[i]; t[i] = 0; make_next(t, next[0]); if (NULL == kmp_strstr(s, t, next[0])) continue; t[i] = ch; make_next(t+i, next[1]); if (NULL == kmp_strstr(s, t, next[1])) continue; ch = t[i]; t[i] = 0; a = kmp_str_count(s, t, next[0]); t[i] = ch; b = kmp_str_count(s, t+1, next[1]); ans += a * b; } printf("%lld\n", ans); } return 0; }
[ "leon.acwa@gmail.com" ]
leon.acwa@gmail.com
cb6da8f0e216aea9065c15646cb4a2530c4c498e
0c1a06a73d3050735b2c7c45c4c7ff2b07eea880
/main.cpp
171bc479ad8bfd0a9f8819d73bf18eb8e15147cc
[]
no_license
mwburwell/Piano_Scales_Teacher
c1c416b58da720884f12722fcaafc6de62a20385
b9e3d6f282e1a9326938b640c1d73e51e809fc38
refs/heads/main
2023-04-27T04:55:16.654239
2021-05-14T03:57:51
2021-05-14T03:57:51
366,500,436
0
0
null
null
null
null
UTF-8
C++
false
false
7,275
cpp
/** * Title: Piano Tutor * Author: Michael Burwell * Class: CSCI201 * Instructor: Kristopher Roberts; * * File: Main * * Descriptions: I would like to propose making a program that would take a file input which * consists of Chord progressions in CSV format. The program will then prompt * the user to select one of the chord progressions and a Key for the progression. * Once given the chord progression and the Key, the program will output the notes * for each chord in the progression. * * I would like to keep the proposal of the output of this program to have an * achievable goal in the time frame that I have been allotted. While I can do more * and will do more, I do not want to bury myself before I really sink my teeth into * the project. * * I would eventually like the program to work on a light up keyboard. It would * display the cord progression with lights for the left hand and display a scale * that corresponds to the chord for the right hand to freestyle. The notes will * stay lit up until the chord changes. At the time the chord changes the lights * for the chord and scale will also change. * * This project can become very complex if you look at the availability of chord and * scale combinations. Therefore I have set up an achievable goal for this classes * final project. * * * Special Thanks to: Oliver Prehn https://www.youtube.com/channel/UCfmAjVU0aF41zi7oWB8_TUg * Lisa Witt https://www.youtube.com/channel/UC_DmCvOP5Q_eBMRDvqqRXjg * * Resources: https://www.pianoscales.org/major.html * * Sorry for the mess Professor Roberts. I am completing this assignment under the wire. * I could refactor most of main into new classes, but it is last call before assignment is due. * So this is what I have for now. */ // TODO MUSIC THEORY #include <iostream> #include <iomanip> #include <string> #include <map> #include <vector> #include "Chord.hpp" #include "Piano.hpp" #include "Console.hpp" #include "CSV_Reader.hpp" const std::vector<std::string> CHORD_NAMES = {"Triad", "Seventh", "Sus2", "Sus4"}; // Kilroy was here std::vector<NoteFromRoot> getVectorOfRootNotes(const std::vector<std::string> &strings, std::vector<ScaleType> &majMin); NoteFromRoot getRootOfChord(const std::string &s, std::vector<ScaleType> &majMin); int selectChordProgression(const std::string &prompt, const std::map<int, std::vector<std::string>> &prog); Chord* getChord(const Note &root, const ScaleType &mode, Chords c = Chords::TRIAD); int main(){ std::map<int, std::vector<std::string>> progressions; std::vector<NoteFromRoot> pattern; std::vector<ScaleType> majMinPattern; int pianoSize, choice; Note firstNote, root; Chords chordType; // initialize the chord progressions from the csv on file CSV_Reader chordsFile("chordprogressions.csv"); progressions = chordsFile.getMap(); // get the piano information from the user pianoSize = Console::getIntegerFromUserMinMax("How many Keys does your piano have: ",12,88); Console::printNoteMapMultiLine(noteToString); firstNote = (Note)(Console::getIntegerFromUserMinMax("What note does your piano start with: ", 1, 12) - 1); // create piano Piano piano(firstNote, pianoSize); // get the chord progression choice = selectChordProgression("Which chord progression would you like to display: ", progressions); // turn the progression into enum vector chord pattern pattern = getVectorOfRootNotes(progressions.at(choice), majMinPattern); // get the chordType from the user and key Console::printVectorMultiLine(CHORD_NAMES); chordType = (Chords)(Console::getIntegerFromUserMinMax("Which chord would you like to play: ", 1, CHORD_NAMES.size()) - 1); Console::printNoteMapMultiLine(noteToString); root = (Note)(Console::getIntegerFromUserMinMax("What key will this chord progression be in: ", 1, 12) - 1); Scale rootScale(root, ScaleType::IONIAN); // ccreate a chord and print it to the screen with an underlay of the piano for(int i = 0; i < pattern.size(); i++){ ScaleType sType; Chord* chord = getChord(rootScale.getNote((int)pattern.at(i)), majMinPattern.at(i), chordType); // print the chord discription std::cout << std::setfill('#') << std::setw(piano.getSize() * 2) << '#' << std::setfill(' ') << std::endl; std::cout << chord->ChordName() << " - " << chord->getNote_toString(0) << " - " << chord->getScale()->getMode_toString() << std::endl << std::endl; // print the chord notes chords on the right and scales on the left std::cout << "Chord: left\tScale: right" << std::endl; std::cout << chord->chord_scale_toString(piano) << std::endl; std::cout << piano << std::endl << std::endl; // print the scale notes on the left and the chord notes on the right. std::cout << "Scale: left\tChord: right" << std::endl; std::cout << chord->scale_Chord_toString(piano) << std::endl; std::cout << piano << std::endl << std::endl; std::cout << std::setfill('#') << std::setw(piano.getSize() * 2) << '#' << std::setfill(' ') << std::endl << std::endl; delete chord; chord = NULL; } return 0; } Chord* getChord(const Note &root, const ScaleType &mode, Chords c){ switch(c){ case Chords::TRIAD: return new Triad(root, mode); break; case Chords::SEVENTH: return new Seventh(root, mode); break; case Chords::SUS2: return new Sus2(root, mode); break; case Chords::SUS4: return new Sus4(root, mode); break; default: return new Triad(root, mode); } } NoteFromRoot getRootOfChord(const std::string &s, std::vector<ScaleType> &majorMinor){ for(unsigned int i = 0; i < majorNoteFromRoot.size(); i++){ if(s.compare(majorNoteFromRoot[(NoteFromRoot)i]) == 0){ majorMinor.push_back(ScaleType::IONIAN); return (NoteFromRoot)i; } } for(unsigned int i = 0; i < minorNoteFromRoot.size(); i++){ if(s.compare(minorNoteFromRoot[(NoteFromRoot)i]) == 0){ majorMinor.push_back(ScaleType::AEOLIAN); return (NoteFromRoot)i; } } return (NoteFromRoot)-1; } int selectChordProgression(const std::string &prompt, const std::map<int, std::vector<std::string>> &prog){ for(unsigned int i = 0; i < prog.size(); i++){ Console::printVectorLine(prog.at(i), i + 1); } return Console::getIntegerFromUserMinMax(prompt, 1, prog.size()) - 1; } std::vector<NoteFromRoot> getVectorOfRootNotes(const std::vector<std::string> &strings, std::vector<ScaleType> &majMin){ std::vector<NoteFromRoot> notes; for(int i = 0; i < strings.size(); i++){ notes.push_back(getRootOfChord(strings.at(i), majMin)); } return notes; }
[ "mwburwell@gmail.com" ]
mwburwell@gmail.com
02323a6932ffb61c8d7dfd4b6f18f29ea60d250b
0d645c842a6f980d0487119902367e4c4ddf44c7
/main.cpp
f8b8a5a63410438ad8cb3ec398ef88c7737bc25d
[]
no_license
derekdstratton/prog3_true
27eeef9a19d9a317c949eb8e31f78e5aec2d8831
bfea6084865eabf79fe1b012cb19b5d04b46c1cf
refs/heads/master
2023-04-14T18:55:13.585975
2021-04-25T20:35:32
2021-04-25T20:35:32
358,072,235
0
0
null
null
null
null
UTF-8
C++
false
false
5,064
cpp
// ConsoleApplication1.cpp : This file contains the 'main' function. Program execution begins and ends there. // #include <iostream> #include <opencv2/opencv.hpp> #include <vector> #include <filesystem> using namespace cv; using namespace std; // http://www.cplusplus.com/forum/windows/189681/ // std::vector<std::string> get_filenames(filesystem::path path) { std::vector<std::string> filenames; // http://en.cppreference.com/w/cpp/experimental/fs/directory_iterator const filesystem::directory_iterator end{}; for (filesystem::directory_iterator iter{ path }; iter != end; ++iter) { // http://en.cppreference.com/w/cpp/experimental/fs/is_regular_file if (filesystem::is_regular_file(*iter)) // comment out if all names (names of directories tc.) are required filenames.push_back(iter->path().string()); } return filenames; } int main() { vector<Mat> faces; /// Reads in all hd faces and stores them unflattened in a vector for (string name : get_filenames("Faces_FA_FB/fa_H")) { Mat im = imread(name,IMREAD_GRAYSCALE); // normalize im to contain values between 0 - 1 normalize(im, im, 0.0, 1.0, NORM_MINMAX, CV_64FC1); faces.push_back(im); } cout << "CP1" << endl; /// Calculate the mean face of the dataset Mat mean = Mat::zeros(Size(faces[0].cols, faces[0].rows), CV_64FC1); for (Mat face : faces) { //store running total of face values mean += face; } // divide by total number of faces to get mean mean /= double(faces.size()); //imshow("windowname", mean); //waitKey(0); cout << "CP2" << endl; /// Subtract mean from every face to normalize them for (int i = 0; i < faces.size(); i++) { faces.at(i) -= mean; } //////////////////////////////////////////////////////////////////////////////// // Create a matrix of flattened faces; call this matrix A // faces.size() is the number of samples // faces[0].cols * facces[0].rows gets the size of the flattened image vector // Size() opencv datatype takes in (width,height) of matrix //////////////////////////////////////////////////////////////////////////////// Mat A = Mat::zeros(Size(faces.size(), faces[0].cols * faces[0].rows), CV_64FC1); //cout << "A rows: " << A.rows << " A cols:" << A.cols << endl; // for every face for (int i = 0; i < faces.size(); i++) { Mat face = faces[i]; face = face.t(); // for every pixel for (int j = 0; j < face.cols; j++) { for (int k = 0; k < face.rows; k++) { // Mat.at() takes in (row,col) indexing A.at<double>(k + j * face.rows, i) = (double)face.at<double>(k, j); } } } // Sanity check to make sure faces weres flattened/stored in A correctly // Unflatten and display the first face at column 0 /* Mat testImg = Mat(faces[0].size(), CV_64FC1); for (int i = 0; i < faces[0].rows; i++) { for (int j = 0; j < faces[0].cols; j++) { testImg.at<double>(i, j) = A.at<double>(j + i * faces[0].cols, 0); } } imshow("Display window", testImg+mean); waitKey(0); */ // .t() doesnt transpose the object that calls it, returns a transposed matrix // https://docs.opencv.org/3.4/d3/d63/classcv_1_1Mat.html#aaa428c60ccb6d8ea5de18f63dfac8e11 Mat t = A.t(); Mat cov = t*A; // Size of covarianace matrix should be MxM where M is number of training samples cout << "Cov rows:" <<cov.rows << " Cov Cols:" << cov.cols << endl; // Compute eigen values & eigen vectors of covariance matrix and stores in descending order // https://docs.opencv.org/2.4/modules/core/doc/operations_on_arrays.html?highlight=eigen#bool%20eigen%28InputArray%20src,%20OutputArray%20eigenvalues,%20OutputArray%20eigenvectors,%20int%20lowindex,int%20highindex%29 Mat eigenValues, eigenVectors; eigen(cov, eigenValues, eigenVectors); cout << "Reconstructing Eigen Faces.." << endl; Mat eigenFaces = A * eigenVectors; // Sanity check to make sure eigenFaces arent garbage // Unflatten and display the first eigenFace at column 0 /* Mat testImg = Mat(faces[0].size(), CV_64FC1); for (int i = 0; i < faces[0].rows; i++) { for (int j = 0; j < faces[0].cols; j++) { testImg.at<double>(i, j) = eigenFaces.at<double>(j + i * faces[0].cols, 0); } } imshow("Display window", testImg + mean); waitKey(0); */ // Convert data back to scale of 0 - 255 so it can be read by an image editor like GIMP cout << "Normalizing mean back to 0 - 255" << endl; normalize(mean, mean, 0, 255, NORM_MINMAX, CV_8UC1); cout << "Normalizing eigenfaces 0-255" << endl; normalize(eigenFaces, eigenFaces, 0, 255, NORM_MINMAX, CV_8UC1); // store as PGMs imwrite("mean.pgm", mean); imwrite("eigenfaces.pgm", eigenFaces); return 0; }
[ "derekdstratton@gmail.com" ]
derekdstratton@gmail.com
8da41f72673dc317a848904ace1b21bcb46fef12
bc01d89e3b77b9b60afd6f5f8fcad5675b813f8e
/multimediacommscontroller/mmccshared/inc/mcclogs.h
4e6e8ccbfa71dfe8a893bfdf3fde08da318f8713
[]
no_license
SymbianSource/oss.FCL.sf.mw.ipappsrv
fce862742655303fcfa05b9e77788734aa66724e
65c20a5a6e85f048aa40eb91066941f2f508a4d2
refs/heads/master
2021-01-12T15:40:59.380107
2010-09-17T05:32:38
2010-09-17T05:32:38
71,849,396
1
0
null
null
null
null
UTF-8
C++
false
false
4,634
h
/* * Copyright (c) 2005 Nokia Corporation and/or its subsidiary(-ies). * All rights reserved. * This component and the accompanying materials are made available * under the terms of "Eclipse Public License v1.0" * which accompanies this distribution, and is available * at the URL "http://www.eclipse.org/legal/epl-v10.html". * * Initial Contributors: * Nokia Corporation - initial contribution. * * Contributors: * * Description: * */ #ifndef MCCLOGS_H #define MCCLOGS_H #include <utf.h> #include <e32debug.h> _LIT( KMccWarning, "Mcc: Text contains not allowed characters, log ignored" ); class TMccLog { public: inline static void Print( const TDesC16& aName, const TDesC16& aStr ) { TChar notAllowed('%'); if ( aStr.Locate( notAllowed ) == KErrNotFound ) { TBuf<128> str; _LIT( KMcc, "%S %S" ); str.Format( KMcc(), &aName, &aStr ); RDebug::Print(str); } else { RDebug::Print( KMccWarning ); } } inline static void Print( const TDesC16& aName, const TDesC16& aStr, TInt aValue ) { TChar notAllowed('%'); if ( aStr.Locate( notAllowed ) == KErrNotFound ) { TBuf<128> str; _LIT( KMcc, "%S %S %d" ); str.Format( KMcc(), &aName, &aStr, aValue ); RDebug::Print(str); } else { RDebug::Print( KMccWarning ); } } inline static void Print( const TDesC16& aName, const TDesC16& aStr1, TInt aValue1, const TDesC16& aStr2, TInt aValue2) { TChar notAllowed('%'); if ( aStr1.Locate( notAllowed ) == KErrNotFound && aStr2.Locate( notAllowed ) == KErrNotFound) { TBuf<200> str; _LIT( KMcc, "%S %S %d, %S %d" ); str.Format( KMcc(), &aName, &aStr1, aValue1, &aStr2, aValue2 ); RDebug::Print(str); } else { RDebug::Print( KMccWarning ); } } inline static void Print( const TDesC16& aName, const TDesC16& aStr1, TInt aValue1, const TDesC16& aStr2, TInt aValue2, const TDesC16& aStr3, TInt aValue3, const TDesC16& aStr4, TInt aValue4) { TChar notAllowed('%'); if ( aStr1.Locate( notAllowed ) == KErrNotFound && aStr2.Locate( notAllowed ) == KErrNotFound && aStr3.Locate( notAllowed ) == KErrNotFound && aStr3.Locate( notAllowed ) == KErrNotFound) { TBuf<256> str; _LIT( KMcc, "%S %S %d, %S %d, %S %d, %S %d" ); str.Format( KMcc(), &aName, &aStr1, aValue1, &aStr2, aValue2, &aStr3, aValue3, &aStr4, aValue4 ); RDebug::Print(str); } else { RDebug::Print( KMccWarning ); } } inline static void Print( const TDesC16& aName, const TDesC16& aStr1, TInt aValue1, TInt aValue2) { TChar notAllowed('%'); if ( aStr1.Locate( notAllowed ) == KErrNotFound ) { TBuf<140> str; _LIT( KMcc, "%S %S %d, %d" ); str.Format( KMcc(), &aName, &aStr1, aValue1, aValue2 ); RDebug::Print(str); } else { RDebug::Print( KMccWarning ); } } inline static void Print( const TDesC16& aName, const TDesC16& aStrA, const TDesC8& aStrB) { TChar notAllowed('%'); if ( aName.Locate( notAllowed ) == KErrNotFound && aStrB.Locate( notAllowed ) == KErrNotFound ) { TBuf<128> str; _LIT( KMcc, "%S, %S" ); _LIT( KMcc2, "%S" ); str.Format( KMcc(), &aName, &aStrA ); RDebug::Print( str ); const TInt KMccLogWriteBufSize = 50; TInt lastPos( aStrB.Length() - 1 ); TInt prevPos = 0; TInt readLen = ( lastPos < KMccLogWriteBufSize ) ? ( lastPos + 1 ) : KMccLogWriteBufSize; while ( prevPos < lastPos ) { TBuf<128> str2; CnvUtfConverter::ConvertToUnicodeFromUtf8( str2, aStrB.Mid( prevPos, readLen ) ); str.Format( KMcc2(), &str2 ); RDebug::Print( str ); prevPos += readLen; readLen = ( prevPos + KMccLogWriteBufSize ) > lastPos ? ( lastPos - prevPos + 1 ) : KMccLogWriteBufSize; } } else { RDebug::Print( KMccWarning ); } } inline static void PrintReal( const TDesC16& aName, const TDesC16& aStr, TReal aValue ) { TChar notAllowed('%'); if ( aStr.Locate( notAllowed ) == KErrNotFound ) { TBuf<128> str; _LIT( KMcc, "%S %S %f" ); str.Format( KMcc(), &aName, &aStr, aValue ); RDebug::Print(str); } else { RDebug::Print( KMccWarning ); } } }; #endif // end of class TMccLog // End of File
[ "kirill.dremov@nokia.com" ]
kirill.dremov@nokia.com
15170f29eb6d85b10ab4d7bfc27a1ea739b892c7
a0364fba3619f93c33d559444011c88e4a60bab5
/TareaListaEnlazadaSimple/SeccionLista.cpp
af417c3b713df85ccb6383047aa3eafcf885ed0e
[]
no_license
DiegoVen15/EjerciciosProgra3P2
af6f5809ccdb8ce7d255efb5ff079b4260314e84
98137c852ccb67035381e3d1b526063453608f16
refs/heads/master
2022-11-12T06:25:19.167961
2020-07-01T06:03:20
2020-07-01T06:03:20
271,190,468
0
0
null
null
null
null
UTF-8
C++
false
false
1,620
cpp
#include "SeccionLista.h" #include <iostream> #include <conio.h> #include <stdio.h> #include <string.h> using namespace std; SeccionLista::SeccionLista() : primero(nullptr) {} bool SeccionLista::estaVacia() { return primero == nullptr; } void SeccionLista::agregarAlumno(char* nombre1, float nota1) { AlumnoNodo* nuevo = new AlumnoNodo(nombre1, nota1, nullptr); if (estaVacia()) { primero = nuevo; } else { AlumnoNodo* actual = primero; bool flag = true; while (actual->getSiguiente() != nullptr) { if ((strcmp(nombre1, actual->getNombre()) > 0) && (strcmp(actual->getSiguiente()->getNombre(), nombre1) > 0)) { nuevo->setSiguiente(actual->getSiguiente()); actual->setSiguiente(nuevo); flag = false; } else { actual = actual->getSiguiente(); } } if (flag) { if (actual->getNombre() == primero->getNombre()) { if (strcmp( actual->getNombre(), nombre1) > 0) { nuevo->setSiguiente(actual); primero = nuevo; } else { actual->setSiguiente(nuevo); } }else actual->setSiguiente(nuevo); } } } void SeccionLista::listarSeccion() { AlumnoNodo* actual = primero; while (actual != nullptr) { cout << "Nombre: " << actual->getNombre() << "\nNota: " << actual->getNota() <<"\n"; actual = actual->getSiguiente(); } cout << "\n"; } int SeccionLista::cantidadAprobados() { AlumnoNodo* actual = primero; int reprobados = 0; while (actual != nullptr) { if (actual->getNota() < 70) { reprobados++; actual = actual->getSiguiente(); } else { actual = actual->getSiguiente(); } } return reprobados; }
[ "douglaslv96@gmail.com" ]
douglaslv96@gmail.com
0c25a1c00db4f61a673baef3f2208347401343e9
44aa6f490b6b44808823d6704eff920ddfa25cc0
/src/vendor/cget/cget/pkg/pqrs-org__cpp-osx-frontmost_application_monitor/install/include/pqrs/osx/frontmost_application_monitor.hpp
e536bef092809aa31c3935f438c8891a7c8da673
[ "Unlicense" ]
permissive
OSP-sromic1990/Karabiner-Elements
1ff793c0f3ca8fbf70a0953c8b8e5a7ece484936
ed10b21d0754137a3dfe59d6435ef08f9bf78c15
refs/heads/master
2021-10-22T08:32:29.732704
2019-03-09T15:31:23
2019-03-09T15:31:23
null
0
0
null
null
null
null
UTF-8
C++
false
false
267
hpp
#pragma once // pqrs::osx::frontmost_application_monitor v3.1 // (C) Copyright Takayama Fumihiko 2019. // Distributed under the Boost Software License, Version 1.0. // (See http://www.boost.org/LICENSE_1_0.txt) #include "frontmost_application_monitor/monitor.hpp"
[ "tekezo@pqrs.org" ]
tekezo@pqrs.org
81ff685dc9fb9457dfe3bd03797736e150cabbfc
c0ae30cf5ddcd00dfb2bd10468e478e85db95b06
/mfem/_ser/nonlininteg_wrap.cxx
08c56fd8f3f11c7505c27aa0b29786d19752b410
[ "BSD-3-Clause" ]
permissive
aaditya8959/PyMFEM
ce80211a82fe50ff8d19f45dde0ede2b1d6cd160
b00199ec0d7a5fba891f656575e91a64d3e35eb5
refs/heads/master
2023-03-07T21:17:25.327731
2021-02-15T18:24:39
2021-02-15T18:24:39
null
0
0
null
null
null
null
UTF-8
C++
false
false
432,964
cxx
/* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). * Version 4.0.2 * * This file is not intended to be easily readable and contains a number of * coding conventions designed to improve portability and efficiency. Do not make * changes to this file unless you know what you are doing--modify the SWIG * interface file instead. * ----------------------------------------------------------------------------- */ #ifndef SWIGPYTHON #define SWIGPYTHON #endif #define SWIG_DIRECTORS #define SWIG_PYTHON_DIRECTOR_NO_VTABLE #ifdef __cplusplus /* SwigValueWrapper is described in swig.swg */ template<typename T> class SwigValueWrapper { struct SwigMovePointer { T *ptr; SwigMovePointer(T *p) : ptr(p) { } ~SwigMovePointer() { delete ptr; } SwigMovePointer& operator=(SwigMovePointer& rhs) { T* oldptr = ptr; ptr = 0; delete oldptr; ptr = rhs.ptr; rhs.ptr = 0; return *this; } } pointer; SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs); SwigValueWrapper(const SwigValueWrapper<T>& rhs); public: SwigValueWrapper() : pointer(0) { } SwigValueWrapper& operator=(const T& t) { SwigMovePointer tmp(new T(t)); pointer = tmp; return *this; } operator T&() const { return *pointer.ptr; } T *operator&() { return pointer.ptr; } }; template <typename T> T SwigValueInit() { return T(); } #endif /* ----------------------------------------------------------------------------- * This section contains generic SWIG labels for method/variable * declarations/attributes, and other compiler dependent labels. * ----------------------------------------------------------------------------- */ /* template workaround for compilers that cannot correctly implement the C++ standard */ #ifndef SWIGTEMPLATEDISAMBIGUATOR # if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x560) # define SWIGTEMPLATEDISAMBIGUATOR template # elif defined(__HP_aCC) /* Needed even with `aCC -AA' when `aCC -V' reports HP ANSI C++ B3910B A.03.55 */ /* If we find a maximum version that requires this, the test would be __HP_aCC <= 35500 for A.03.55 */ # define SWIGTEMPLATEDISAMBIGUATOR template # else # define SWIGTEMPLATEDISAMBIGUATOR # endif #endif /* inline attribute */ #ifndef SWIGINLINE # if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__)) # define SWIGINLINE inline # else # define SWIGINLINE # endif #endif /* attribute recognised by some compilers to avoid 'unused' warnings */ #ifndef SWIGUNUSED # if defined(__GNUC__) # if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)) # define SWIGUNUSED __attribute__ ((__unused__)) # else # define SWIGUNUSED # endif # elif defined(__ICC) # define SWIGUNUSED __attribute__ ((__unused__)) # else # define SWIGUNUSED # endif #endif #ifndef SWIG_MSC_UNSUPPRESS_4505 # if defined(_MSC_VER) # pragma warning(disable : 4505) /* unreferenced local function has been removed */ # endif #endif #ifndef SWIGUNUSEDPARM # ifdef __cplusplus # define SWIGUNUSEDPARM(p) # else # define SWIGUNUSEDPARM(p) p SWIGUNUSED # endif #endif /* internal SWIG method */ #ifndef SWIGINTERN # define SWIGINTERN static SWIGUNUSED #endif /* internal inline SWIG method */ #ifndef SWIGINTERNINLINE # define SWIGINTERNINLINE SWIGINTERN SWIGINLINE #endif /* exporting methods */ #if defined(__GNUC__) # if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4) # ifndef GCC_HASCLASSVISIBILITY # define GCC_HASCLASSVISIBILITY # endif # endif #endif #ifndef SWIGEXPORT # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) # if defined(STATIC_LINKED) # define SWIGEXPORT # else # define SWIGEXPORT __declspec(dllexport) # endif # else # if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY) # define SWIGEXPORT __attribute__ ((visibility("default"))) # else # define SWIGEXPORT # endif # endif #endif /* calling conventions for Windows */ #ifndef SWIGSTDCALL # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) # define SWIGSTDCALL __stdcall # else # define SWIGSTDCALL # endif #endif /* Deal with Microsoft's attempt at deprecating C standard runtime functions */ #if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE) # define _CRT_SECURE_NO_DEPRECATE #endif /* Deal with Microsoft's attempt at deprecating methods in the standard C++ library */ #if !defined(SWIG_NO_SCL_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_SCL_SECURE_NO_DEPRECATE) # define _SCL_SECURE_NO_DEPRECATE #endif /* Deal with Apple's deprecated 'AssertMacros.h' from Carbon-framework */ #if defined(__APPLE__) && !defined(__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES) # define __ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES 0 #endif /* Intel's compiler complains if a variable which was never initialised is * cast to void, which is a common idiom which we use to indicate that we * are aware a variable isn't used. So we just silence that warning. * See: https://github.com/swig/swig/issues/192 for more discussion. */ #ifdef __INTEL_COMPILER # pragma warning disable 592 #endif #if defined(__GNUC__) && defined(_WIN32) && !defined(SWIG_PYTHON_NO_HYPOT_WORKAROUND) /* Workaround for '::hypot' has not been declared', see https://bugs.python.org/issue11566 */ # include <math.h> #endif #if defined(_DEBUG) && defined(SWIG_PYTHON_INTERPRETER_NO_DEBUG) /* Use debug wrappers with the Python release dll */ # undef _DEBUG # include <Python.h> # define _DEBUG 1 #else # include <Python.h> #endif /* ----------------------------------------------------------------------------- * swigrun.swg * * This file contains generic C API SWIG runtime support for pointer * type checking. * ----------------------------------------------------------------------------- */ /* This should only be incremented when either the layout of swig_type_info changes, or for whatever reason, the runtime changes incompatibly */ #define SWIG_RUNTIME_VERSION "4" /* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */ #ifdef SWIG_TYPE_TABLE # define SWIG_QUOTE_STRING(x) #x # define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x) # define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE) #else # define SWIG_TYPE_TABLE_NAME #endif /* You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for creating a static or dynamic library from the SWIG runtime code. In 99.9% of the cases, SWIG just needs to declare them as 'static'. But only do this if strictly necessary, ie, if you have problems with your compiler or suchlike. */ #ifndef SWIGRUNTIME # define SWIGRUNTIME SWIGINTERN #endif #ifndef SWIGRUNTIMEINLINE # define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE #endif /* Generic buffer size */ #ifndef SWIG_BUFFER_SIZE # define SWIG_BUFFER_SIZE 1024 #endif /* Flags for pointer conversions */ #define SWIG_POINTER_DISOWN 0x1 #define SWIG_CAST_NEW_MEMORY 0x2 #define SWIG_POINTER_NO_NULL 0x4 /* Flags for new pointer objects */ #define SWIG_POINTER_OWN 0x1 /* Flags/methods for returning states. The SWIG conversion methods, as ConvertPtr, return an integer that tells if the conversion was successful or not. And if not, an error code can be returned (see swigerrors.swg for the codes). Use the following macros/flags to set or process the returning states. In old versions of SWIG, code such as the following was usually written: if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) { // success code } else { //fail code } Now you can be more explicit: int res = SWIG_ConvertPtr(obj,vptr,ty.flags); if (SWIG_IsOK(res)) { // success code } else { // fail code } which is the same really, but now you can also do Type *ptr; int res = SWIG_ConvertPtr(obj,(void **)(&ptr),ty.flags); if (SWIG_IsOK(res)) { // success code if (SWIG_IsNewObj(res) { ... delete *ptr; } else { ... } } else { // fail code } I.e., now SWIG_ConvertPtr can return new objects and you can identify the case and take care of the deallocation. Of course that also requires SWIG_ConvertPtr to return new result values, such as int SWIG_ConvertPtr(obj, ptr,...) { if (<obj is ok>) { if (<need new object>) { *ptr = <ptr to new allocated object>; return SWIG_NEWOBJ; } else { *ptr = <ptr to old object>; return SWIG_OLDOBJ; } } else { return SWIG_BADOBJ; } } Of course, returning the plain '0(success)/-1(fail)' still works, but you can be more explicit by returning SWIG_BADOBJ, SWIG_ERROR or any of the SWIG errors code. Finally, if the SWIG_CASTRANK_MODE is enabled, the result code allows to return the 'cast rank', for example, if you have this int food(double) int fooi(int); and you call food(1) // cast rank '1' (1 -> 1.0) fooi(1) // cast rank '0' just use the SWIG_AddCast()/SWIG_CheckState() */ #define SWIG_OK (0) #define SWIG_ERROR (-1) #define SWIG_IsOK(r) (r >= 0) #define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError) /* The CastRankLimit says how many bits are used for the cast rank */ #define SWIG_CASTRANKLIMIT (1 << 8) /* The NewMask denotes the object was created (using new/malloc) */ #define SWIG_NEWOBJMASK (SWIG_CASTRANKLIMIT << 1) /* The TmpMask is for in/out typemaps that use temporal objects */ #define SWIG_TMPOBJMASK (SWIG_NEWOBJMASK << 1) /* Simple returning values */ #define SWIG_BADOBJ (SWIG_ERROR) #define SWIG_OLDOBJ (SWIG_OK) #define SWIG_NEWOBJ (SWIG_OK | SWIG_NEWOBJMASK) #define SWIG_TMPOBJ (SWIG_OK | SWIG_TMPOBJMASK) /* Check, add and del mask methods */ #define SWIG_AddNewMask(r) (SWIG_IsOK(r) ? (r | SWIG_NEWOBJMASK) : r) #define SWIG_DelNewMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_NEWOBJMASK) : r) #define SWIG_IsNewObj(r) (SWIG_IsOK(r) && (r & SWIG_NEWOBJMASK)) #define SWIG_AddTmpMask(r) (SWIG_IsOK(r) ? (r | SWIG_TMPOBJMASK) : r) #define SWIG_DelTmpMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_TMPOBJMASK) : r) #define SWIG_IsTmpObj(r) (SWIG_IsOK(r) && (r & SWIG_TMPOBJMASK)) /* Cast-Rank Mode */ #if defined(SWIG_CASTRANK_MODE) # ifndef SWIG_TypeRank # define SWIG_TypeRank unsigned long # endif # ifndef SWIG_MAXCASTRANK /* Default cast allowed */ # define SWIG_MAXCASTRANK (2) # endif # define SWIG_CASTRANKMASK ((SWIG_CASTRANKLIMIT) -1) # define SWIG_CastRank(r) (r & SWIG_CASTRANKMASK) SWIGINTERNINLINE int SWIG_AddCast(int r) { return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r; } SWIGINTERNINLINE int SWIG_CheckState(int r) { return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0; } #else /* no cast-rank mode */ # define SWIG_AddCast(r) (r) # define SWIG_CheckState(r) (SWIG_IsOK(r) ? 1 : 0) #endif #include <string.h> #ifdef __cplusplus extern "C" { #endif typedef void *(*swig_converter_func)(void *, int *); typedef struct swig_type_info *(*swig_dycast_func)(void **); /* Structure to store information on one type */ typedef struct swig_type_info { const char *name; /* mangled name of this type */ const char *str; /* human readable name of this type */ swig_dycast_func dcast; /* dynamic cast function down a hierarchy */ struct swig_cast_info *cast; /* linked list of types that can cast into this type */ void *clientdata; /* language specific type data */ int owndata; /* flag if the structure owns the clientdata */ } swig_type_info; /* Structure to store a type and conversion function used for casting */ typedef struct swig_cast_info { swig_type_info *type; /* pointer to type that is equivalent to this type */ swig_converter_func converter; /* function to cast the void pointers */ struct swig_cast_info *next; /* pointer to next cast in linked list */ struct swig_cast_info *prev; /* pointer to the previous cast */ } swig_cast_info; /* Structure used to store module information * Each module generates one structure like this, and the runtime collects * all of these structures and stores them in a circularly linked list.*/ typedef struct swig_module_info { swig_type_info **types; /* Array of pointers to swig_type_info structures that are in this module */ size_t size; /* Number of types in this module */ struct swig_module_info *next; /* Pointer to next element in circularly linked list */ swig_type_info **type_initial; /* Array of initially generated type structures */ swig_cast_info **cast_initial; /* Array of initially generated casting structures */ void *clientdata; /* Language specific module data */ } swig_module_info; /* Compare two type names skipping the space characters, therefore "char*" == "char *" and "Class<int>" == "Class<int >", etc. Return 0 when the two name types are equivalent, as in strncmp, but skipping ' '. */ SWIGRUNTIME int SWIG_TypeNameComp(const char *f1, const char *l1, const char *f2, const char *l2) { for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) { while ((*f1 == ' ') && (f1 != l1)) ++f1; while ((*f2 == ' ') && (f2 != l2)) ++f2; if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1; } return (int)((l1 - f1) - (l2 - f2)); } /* Check type equivalence in a name list like <name1>|<name2>|... Return 0 if equal, -1 if nb < tb, 1 if nb > tb */ SWIGRUNTIME int SWIG_TypeCmp(const char *nb, const char *tb) { int equiv = 1; const char* te = tb + strlen(tb); const char* ne = nb; while (equiv != 0 && *ne) { for (nb = ne; *ne; ++ne) { if (*ne == '|') break; } equiv = SWIG_TypeNameComp(nb, ne, tb, te); if (*ne) ++ne; } return equiv; } /* Check type equivalence in a name list like <name1>|<name2>|... Return 0 if not equal, 1 if equal */ SWIGRUNTIME int SWIG_TypeEquiv(const char *nb, const char *tb) { return SWIG_TypeCmp(nb, tb) == 0 ? 1 : 0; } /* Check the typename */ SWIGRUNTIME swig_cast_info * SWIG_TypeCheck(const char *c, swig_type_info *ty) { if (ty) { swig_cast_info *iter = ty->cast; while (iter) { if (strcmp(iter->type->name, c) == 0) { if (iter == ty->cast) return iter; /* Move iter to the top of the linked list */ iter->prev->next = iter->next; if (iter->next) iter->next->prev = iter->prev; iter->next = ty->cast; iter->prev = 0; if (ty->cast) ty->cast->prev = iter; ty->cast = iter; return iter; } iter = iter->next; } } return 0; } /* Identical to SWIG_TypeCheck, except strcmp is replaced with a pointer comparison */ SWIGRUNTIME swig_cast_info * SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *ty) { if (ty) { swig_cast_info *iter = ty->cast; while (iter) { if (iter->type == from) { if (iter == ty->cast) return iter; /* Move iter to the top of the linked list */ iter->prev->next = iter->next; if (iter->next) iter->next->prev = iter->prev; iter->next = ty->cast; iter->prev = 0; if (ty->cast) ty->cast->prev = iter; ty->cast = iter; return iter; } iter = iter->next; } } return 0; } /* Cast a pointer up an inheritance hierarchy */ SWIGRUNTIMEINLINE void * SWIG_TypeCast(swig_cast_info *ty, void *ptr, int *newmemory) { return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr, newmemory); } /* Dynamic pointer casting. Down an inheritance hierarchy */ SWIGRUNTIME swig_type_info * SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) { swig_type_info *lastty = ty; if (!ty || !ty->dcast) return ty; while (ty && (ty->dcast)) { ty = (*ty->dcast)(ptr); if (ty) lastty = ty; } return lastty; } /* Return the name associated with this type */ SWIGRUNTIMEINLINE const char * SWIG_TypeName(const swig_type_info *ty) { return ty->name; } /* Return the pretty name associated with this type, that is an unmangled type name in a form presentable to the user. */ SWIGRUNTIME const char * SWIG_TypePrettyName(const swig_type_info *type) { /* The "str" field contains the equivalent pretty names of the type, separated by vertical-bar characters. We choose to print the last name, as it is often (?) the most specific. */ if (!type) return NULL; if (type->str != NULL) { const char *last_name = type->str; const char *s; for (s = type->str; *s; s++) if (*s == '|') last_name = s+1; return last_name; } else return type->name; } /* Set the clientdata field for a type */ SWIGRUNTIME void SWIG_TypeClientData(swig_type_info *ti, void *clientdata) { swig_cast_info *cast = ti->cast; /* if (ti->clientdata == clientdata) return; */ ti->clientdata = clientdata; while (cast) { if (!cast->converter) { swig_type_info *tc = cast->type; if (!tc->clientdata) { SWIG_TypeClientData(tc, clientdata); } } cast = cast->next; } } SWIGRUNTIME void SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) { SWIG_TypeClientData(ti, clientdata); ti->owndata = 1; } /* Search for a swig_type_info structure only by mangled name Search is a O(log #types) We start searching at module start, and finish searching when start == end. Note: if start == end at the beginning of the function, we go all the way around the circular list. */ SWIGRUNTIME swig_type_info * SWIG_MangledTypeQueryModule(swig_module_info *start, swig_module_info *end, const char *name) { swig_module_info *iter = start; do { if (iter->size) { size_t l = 0; size_t r = iter->size - 1; do { /* since l+r >= 0, we can (>> 1) instead (/ 2) */ size_t i = (l + r) >> 1; const char *iname = iter->types[i]->name; if (iname) { int compare = strcmp(name, iname); if (compare == 0) { return iter->types[i]; } else if (compare < 0) { if (i) { r = i - 1; } else { break; } } else if (compare > 0) { l = i + 1; } } else { break; /* should never happen */ } } while (l <= r); } iter = iter->next; } while (iter != end); return 0; } /* Search for a swig_type_info structure for either a mangled name or a human readable name. It first searches the mangled names of the types, which is a O(log #types) If a type is not found it then searches the human readable names, which is O(#types). We start searching at module start, and finish searching when start == end. Note: if start == end at the beginning of the function, we go all the way around the circular list. */ SWIGRUNTIME swig_type_info * SWIG_TypeQueryModule(swig_module_info *start, swig_module_info *end, const char *name) { /* STEP 1: Search the name field using binary search */ swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name); if (ret) { return ret; } else { /* STEP 2: If the type hasn't been found, do a complete search of the str field (the human readable name) */ swig_module_info *iter = start; do { size_t i = 0; for (; i < iter->size; ++i) { if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name))) return iter->types[i]; } iter = iter->next; } while (iter != end); } /* neither found a match */ return 0; } /* Pack binary data into a string */ SWIGRUNTIME char * SWIG_PackData(char *c, void *ptr, size_t sz) { static const char hex[17] = "0123456789abcdef"; const unsigned char *u = (unsigned char *) ptr; const unsigned char *eu = u + sz; for (; u != eu; ++u) { unsigned char uu = *u; *(c++) = hex[(uu & 0xf0) >> 4]; *(c++) = hex[uu & 0xf]; } return c; } /* Unpack binary data from a string */ SWIGRUNTIME const char * SWIG_UnpackData(const char *c, void *ptr, size_t sz) { unsigned char *u = (unsigned char *) ptr; const unsigned char *eu = u + sz; for (; u != eu; ++u) { char d = *(c++); unsigned char uu; if ((d >= '0') && (d <= '9')) uu = (unsigned char)((d - '0') << 4); else if ((d >= 'a') && (d <= 'f')) uu = (unsigned char)((d - ('a'-10)) << 4); else return (char *) 0; d = *(c++); if ((d >= '0') && (d <= '9')) uu |= (unsigned char)(d - '0'); else if ((d >= 'a') && (d <= 'f')) uu |= (unsigned char)(d - ('a'-10)); else return (char *) 0; *u = uu; } return c; } /* Pack 'void *' into a string buffer. */ SWIGRUNTIME char * SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) { char *r = buff; if ((2*sizeof(void *) + 2) > bsz) return 0; *(r++) = '_'; r = SWIG_PackData(r,&ptr,sizeof(void *)); if (strlen(name) + 1 > (bsz - (r - buff))) return 0; strcpy(r,name); return buff; } SWIGRUNTIME const char * SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) { if (*c != '_') { if (strcmp(c,"NULL") == 0) { *ptr = (void *) 0; return name; } else { return 0; } } return SWIG_UnpackData(++c,ptr,sizeof(void *)); } SWIGRUNTIME char * SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) { char *r = buff; size_t lname = (name ? strlen(name) : 0); if ((2*sz + 2 + lname) > bsz) return 0; *(r++) = '_'; r = SWIG_PackData(r,ptr,sz); if (lname) { strncpy(r,name,lname+1); } else { *r = 0; } return buff; } SWIGRUNTIME const char * SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) { if (*c != '_') { if (strcmp(c,"NULL") == 0) { memset(ptr,0,sz); return name; } else { return 0; } } return SWIG_UnpackData(++c,ptr,sz); } #ifdef __cplusplus } #endif /* Errors in SWIG */ #define SWIG_UnknownError -1 #define SWIG_IOError -2 #define SWIG_RuntimeError -3 #define SWIG_IndexError -4 #define SWIG_TypeError -5 #define SWIG_DivisionByZero -6 #define SWIG_OverflowError -7 #define SWIG_SyntaxError -8 #define SWIG_ValueError -9 #define SWIG_SystemError -10 #define SWIG_AttributeError -11 #define SWIG_MemoryError -12 #define SWIG_NullReferenceError -13 /* Compatibility macros for Python 3 */ #if PY_VERSION_HEX >= 0x03000000 #define PyClass_Check(obj) PyObject_IsInstance(obj, (PyObject *)&PyType_Type) #define PyInt_Check(x) PyLong_Check(x) #define PyInt_AsLong(x) PyLong_AsLong(x) #define PyInt_FromLong(x) PyLong_FromLong(x) #define PyInt_FromSize_t(x) PyLong_FromSize_t(x) #define PyString_Check(name) PyBytes_Check(name) #define PyString_FromString(x) PyUnicode_FromString(x) #define PyString_Format(fmt, args) PyUnicode_Format(fmt, args) #define PyString_AsString(str) PyBytes_AsString(str) #define PyString_Size(str) PyBytes_Size(str) #define PyString_InternFromString(key) PyUnicode_InternFromString(key) #define Py_TPFLAGS_HAVE_CLASS Py_TPFLAGS_BASETYPE #define PyString_AS_STRING(x) PyUnicode_AS_STRING(x) #define _PyLong_FromSsize_t(x) PyLong_FromSsize_t(x) #endif #ifndef Py_TYPE # define Py_TYPE(op) ((op)->ob_type) #endif /* SWIG APIs for compatibility of both Python 2 & 3 */ #if PY_VERSION_HEX >= 0x03000000 # define SWIG_Python_str_FromFormat PyUnicode_FromFormat #else # define SWIG_Python_str_FromFormat PyString_FromFormat #endif /* Warning: This function will allocate a new string in Python 3, * so please call SWIG_Python_str_DelForPy3(x) to free the space. */ SWIGINTERN char* SWIG_Python_str_AsChar(PyObject *str) { #if PY_VERSION_HEX >= 0x03030000 return (char *)PyUnicode_AsUTF8(str); #elif PY_VERSION_HEX >= 0x03000000 char *newstr = 0; str = PyUnicode_AsUTF8String(str); if (str) { char *cstr; Py_ssize_t len; if (PyBytes_AsStringAndSize(str, &cstr, &len) != -1) { newstr = (char *) malloc(len+1); if (newstr) memcpy(newstr, cstr, len+1); } Py_XDECREF(str); } return newstr; #else return PyString_AsString(str); #endif } #if PY_VERSION_HEX >= 0x03030000 || PY_VERSION_HEX < 0x03000000 # define SWIG_Python_str_DelForPy3(x) #else # define SWIG_Python_str_DelForPy3(x) free( (void*) (x) ) #endif SWIGINTERN PyObject* SWIG_Python_str_FromChar(const char *c) { #if PY_VERSION_HEX >= 0x03000000 return PyUnicode_FromString(c); #else return PyString_FromString(c); #endif } #ifndef PyObject_DEL # define PyObject_DEL PyObject_Del #endif // SWIGPY_USE_CAPSULE is no longer used within SWIG itself, but some user // interface files check for it. # define SWIGPY_USE_CAPSULE # define SWIGPY_CAPSULE_NAME ("swig_runtime_data" SWIG_RUNTIME_VERSION ".type_pointer_capsule" SWIG_TYPE_TABLE_NAME) #if PY_VERSION_HEX < 0x03020000 #define PyDescr_TYPE(x) (((PyDescrObject *)(x))->d_type) #define PyDescr_NAME(x) (((PyDescrObject *)(x))->d_name) #define Py_hash_t long #endif /* ----------------------------------------------------------------------------- * error manipulation * ----------------------------------------------------------------------------- */ SWIGRUNTIME PyObject* SWIG_Python_ErrorType(int code) { PyObject* type = 0; switch(code) { case SWIG_MemoryError: type = PyExc_MemoryError; break; case SWIG_IOError: type = PyExc_IOError; break; case SWIG_RuntimeError: type = PyExc_RuntimeError; break; case SWIG_IndexError: type = PyExc_IndexError; break; case SWIG_TypeError: type = PyExc_TypeError; break; case SWIG_DivisionByZero: type = PyExc_ZeroDivisionError; break; case SWIG_OverflowError: type = PyExc_OverflowError; break; case SWIG_SyntaxError: type = PyExc_SyntaxError; break; case SWIG_ValueError: type = PyExc_ValueError; break; case SWIG_SystemError: type = PyExc_SystemError; break; case SWIG_AttributeError: type = PyExc_AttributeError; break; default: type = PyExc_RuntimeError; } return type; } SWIGRUNTIME void SWIG_Python_AddErrorMsg(const char* mesg) { PyObject *type = 0; PyObject *value = 0; PyObject *traceback = 0; if (PyErr_Occurred()) PyErr_Fetch(&type, &value, &traceback); if (value) { PyObject *old_str = PyObject_Str(value); const char *tmp = SWIG_Python_str_AsChar(old_str); PyErr_Clear(); Py_XINCREF(type); if (tmp) PyErr_Format(type, "%s %s", tmp, mesg); else PyErr_Format(type, "%s", mesg); SWIG_Python_str_DelForPy3(tmp); Py_DECREF(old_str); Py_DECREF(value); } else { PyErr_SetString(PyExc_RuntimeError, mesg); } } SWIGRUNTIME int SWIG_Python_TypeErrorOccurred(PyObject *obj) { PyObject *error; if (obj) return 0; error = PyErr_Occurred(); return error && PyErr_GivenExceptionMatches(error, PyExc_TypeError); } SWIGRUNTIME void SWIG_Python_RaiseOrModifyTypeError(const char *message) { if (SWIG_Python_TypeErrorOccurred(NULL)) { /* Use existing TypeError to preserve stacktrace and enhance with given message */ PyObject *newvalue; PyObject *type = NULL, *value = NULL, *traceback = NULL; PyErr_Fetch(&type, &value, &traceback); #if PY_VERSION_HEX >= 0x03000000 newvalue = PyUnicode_FromFormat("%S\nAdditional information:\n%s", value, message); #else newvalue = PyString_FromFormat("%s\nAdditional information:\n%s", PyString_AsString(value), message); #endif Py_XDECREF(value); PyErr_Restore(type, newvalue, traceback); } else { /* Raise TypeError using given message */ PyErr_SetString(PyExc_TypeError, message); } } #if defined(SWIG_PYTHON_NO_THREADS) # if defined(SWIG_PYTHON_THREADS) # undef SWIG_PYTHON_THREADS # endif #endif #if defined(SWIG_PYTHON_THREADS) /* Threading support is enabled */ # if !defined(SWIG_PYTHON_USE_GIL) && !defined(SWIG_PYTHON_NO_USE_GIL) # define SWIG_PYTHON_USE_GIL # endif # if defined(SWIG_PYTHON_USE_GIL) /* Use PyGILState threads calls */ # ifndef SWIG_PYTHON_INITIALIZE_THREADS # define SWIG_PYTHON_INITIALIZE_THREADS PyEval_InitThreads() # endif # ifdef __cplusplus /* C++ code */ class SWIG_Python_Thread_Block { bool status; PyGILState_STATE state; public: void end() { if (status) { PyGILState_Release(state); status = false;} } SWIG_Python_Thread_Block() : status(true), state(PyGILState_Ensure()) {} ~SWIG_Python_Thread_Block() { end(); } }; class SWIG_Python_Thread_Allow { bool status; PyThreadState *save; public: void end() { if (status) { PyEval_RestoreThread(save); status = false; }} SWIG_Python_Thread_Allow() : status(true), save(PyEval_SaveThread()) {} ~SWIG_Python_Thread_Allow() { end(); } }; # define SWIG_PYTHON_THREAD_BEGIN_BLOCK SWIG_Python_Thread_Block _swig_thread_block # define SWIG_PYTHON_THREAD_END_BLOCK _swig_thread_block.end() # define SWIG_PYTHON_THREAD_BEGIN_ALLOW SWIG_Python_Thread_Allow _swig_thread_allow # define SWIG_PYTHON_THREAD_END_ALLOW _swig_thread_allow.end() # else /* C code */ # define SWIG_PYTHON_THREAD_BEGIN_BLOCK PyGILState_STATE _swig_thread_block = PyGILState_Ensure() # define SWIG_PYTHON_THREAD_END_BLOCK PyGILState_Release(_swig_thread_block) # define SWIG_PYTHON_THREAD_BEGIN_ALLOW PyThreadState *_swig_thread_allow = PyEval_SaveThread() # define SWIG_PYTHON_THREAD_END_ALLOW PyEval_RestoreThread(_swig_thread_allow) # endif # else /* Old thread way, not implemented, user must provide it */ # if !defined(SWIG_PYTHON_INITIALIZE_THREADS) # define SWIG_PYTHON_INITIALIZE_THREADS # endif # if !defined(SWIG_PYTHON_THREAD_BEGIN_BLOCK) # define SWIG_PYTHON_THREAD_BEGIN_BLOCK # endif # if !defined(SWIG_PYTHON_THREAD_END_BLOCK) # define SWIG_PYTHON_THREAD_END_BLOCK # endif # if !defined(SWIG_PYTHON_THREAD_BEGIN_ALLOW) # define SWIG_PYTHON_THREAD_BEGIN_ALLOW # endif # if !defined(SWIG_PYTHON_THREAD_END_ALLOW) # define SWIG_PYTHON_THREAD_END_ALLOW # endif # endif #else /* No thread support */ # define SWIG_PYTHON_INITIALIZE_THREADS # define SWIG_PYTHON_THREAD_BEGIN_BLOCK # define SWIG_PYTHON_THREAD_END_BLOCK # define SWIG_PYTHON_THREAD_BEGIN_ALLOW # define SWIG_PYTHON_THREAD_END_ALLOW #endif /* ----------------------------------------------------------------------------- * Python API portion that goes into the runtime * ----------------------------------------------------------------------------- */ #ifdef __cplusplus extern "C" { #endif /* ----------------------------------------------------------------------------- * Constant declarations * ----------------------------------------------------------------------------- */ /* Constant Types */ #define SWIG_PY_POINTER 4 #define SWIG_PY_BINARY 5 /* Constant information structure */ typedef struct swig_const_info { int type; const char *name; long lvalue; double dvalue; void *pvalue; swig_type_info **ptype; } swig_const_info; #ifdef __cplusplus } #endif /* ----------------------------------------------------------------------------- * pyrun.swg * * This file contains the runtime support for Python modules * and includes code for managing global variables and pointer * type checking. * * ----------------------------------------------------------------------------- */ #if PY_VERSION_HEX < 0x02070000 /* 2.7.0 */ # error "This version of SWIG only supports Python >= 2.7" #endif #if PY_VERSION_HEX >= 0x03000000 && PY_VERSION_HEX < 0x03020000 # error "This version of SWIG only supports Python 3 >= 3.2" #endif /* Common SWIG API */ /* for raw pointers */ #define SWIG_Python_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0) #define SWIG_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtr(obj, pptr, type, flags) #define SWIG_ConvertPtrAndOwn(obj,pptr,type,flags,own) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, own) #ifdef SWIGPYTHON_BUILTIN #define SWIG_NewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(self, ptr, type, flags) #else #define SWIG_NewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(NULL, ptr, type, flags) #endif #define SWIG_InternalNewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(NULL, ptr, type, flags) #define SWIG_CheckImplicit(ty) SWIG_Python_CheckImplicit(ty) #define SWIG_AcquirePtr(ptr, src) SWIG_Python_AcquirePtr(ptr, src) #define swig_owntype int /* for raw packed data */ #define SWIG_ConvertPacked(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty) #define SWIG_NewPackedObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type) /* for class or struct pointers */ #define SWIG_ConvertInstance(obj, pptr, type, flags) SWIG_ConvertPtr(obj, pptr, type, flags) #define SWIG_NewInstanceObj(ptr, type, flags) SWIG_NewPointerObj(ptr, type, flags) /* for C or C++ function pointers */ #define SWIG_ConvertFunctionPtr(obj, pptr, type) SWIG_Python_ConvertFunctionPtr(obj, pptr, type) #define SWIG_NewFunctionPtrObj(ptr, type) SWIG_Python_NewPointerObj(NULL, ptr, type, 0) /* for C++ member pointers, ie, member methods */ #define SWIG_ConvertMember(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty) #define SWIG_NewMemberObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type) /* Runtime API */ #define SWIG_GetModule(clientdata) SWIG_Python_GetModule(clientdata) #define SWIG_SetModule(clientdata, pointer) SWIG_Python_SetModule(pointer) #define SWIG_NewClientData(obj) SwigPyClientData_New(obj) #define SWIG_SetErrorObj SWIG_Python_SetErrorObj #define SWIG_SetErrorMsg SWIG_Python_SetErrorMsg #define SWIG_ErrorType(code) SWIG_Python_ErrorType(code) #define SWIG_Error(code, msg) SWIG_Python_SetErrorMsg(SWIG_ErrorType(code), msg) #define SWIG_fail goto fail /* Runtime API implementation */ /* Error manipulation */ SWIGINTERN void SWIG_Python_SetErrorObj(PyObject *errtype, PyObject *obj) { SWIG_PYTHON_THREAD_BEGIN_BLOCK; PyErr_SetObject(errtype, obj); Py_DECREF(obj); SWIG_PYTHON_THREAD_END_BLOCK; } SWIGINTERN void SWIG_Python_SetErrorMsg(PyObject *errtype, const char *msg) { SWIG_PYTHON_THREAD_BEGIN_BLOCK; PyErr_SetString(errtype, msg); SWIG_PYTHON_THREAD_END_BLOCK; } #define SWIG_Python_Raise(obj, type, desc) SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(desc), obj) /* Set a constant value */ #if defined(SWIGPYTHON_BUILTIN) SWIGINTERN void SwigPyBuiltin_AddPublicSymbol(PyObject *seq, const char *key) { PyObject *s = PyString_InternFromString(key); PyList_Append(seq, s); Py_DECREF(s); } SWIGINTERN void SWIG_Python_SetConstant(PyObject *d, PyObject *public_interface, const char *name, PyObject *obj) { PyDict_SetItemString(d, name, obj); Py_DECREF(obj); if (public_interface) SwigPyBuiltin_AddPublicSymbol(public_interface, name); } #else SWIGINTERN void SWIG_Python_SetConstant(PyObject *d, const char *name, PyObject *obj) { PyDict_SetItemString(d, name, obj); Py_DECREF(obj); } #endif /* Append a value to the result obj */ SWIGINTERN PyObject* SWIG_Python_AppendOutput(PyObject* result, PyObject* obj) { if (!result) { result = obj; } else if (result == Py_None) { Py_DECREF(result); result = obj; } else { if (!PyList_Check(result)) { PyObject *o2 = result; result = PyList_New(1); PyList_SetItem(result, 0, o2); } PyList_Append(result,obj); Py_DECREF(obj); } return result; } /* Unpack the argument tuple */ SWIGINTERN Py_ssize_t SWIG_Python_UnpackTuple(PyObject *args, const char *name, Py_ssize_t min, Py_ssize_t max, PyObject **objs) { if (!args) { if (!min && !max) { return 1; } else { PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got none", name, (min == max ? "" : "at least "), (int)min); return 0; } } if (!PyTuple_Check(args)) { if (min <= 1 && max >= 1) { Py_ssize_t i; objs[0] = args; for (i = 1; i < max; ++i) { objs[i] = 0; } return 2; } PyErr_SetString(PyExc_SystemError, "UnpackTuple() argument list is not a tuple"); return 0; } else { Py_ssize_t l = PyTuple_GET_SIZE(args); if (l < min) { PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d", name, (min == max ? "" : "at least "), (int)min, (int)l); return 0; } else if (l > max) { PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d", name, (min == max ? "" : "at most "), (int)max, (int)l); return 0; } else { Py_ssize_t i; for (i = 0; i < l; ++i) { objs[i] = PyTuple_GET_ITEM(args, i); } for (; l < max; ++l) { objs[l] = 0; } return i + 1; } } } SWIGINTERN int SWIG_Python_CheckNoKeywords(PyObject *kwargs, const char *name) { int no_kwargs = 1; if (kwargs) { assert(PyDict_Check(kwargs)); if (PyDict_Size(kwargs) > 0) { PyErr_Format(PyExc_TypeError, "%s() does not take keyword arguments", name); no_kwargs = 0; } } return no_kwargs; } /* A functor is a function object with one single object argument */ #define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunctionObjArgs(functor, obj, NULL); /* Helper for static pointer initialization for both C and C++ code, for example static PyObject *SWIG_STATIC_POINTER(MyVar) = NewSomething(...); */ #ifdef __cplusplus #define SWIG_STATIC_POINTER(var) var #else #define SWIG_STATIC_POINTER(var) var = 0; if (!var) var #endif /* ----------------------------------------------------------------------------- * Pointer declarations * ----------------------------------------------------------------------------- */ /* Flags for new pointer objects */ #define SWIG_POINTER_NOSHADOW (SWIG_POINTER_OWN << 1) #define SWIG_POINTER_NEW (SWIG_POINTER_NOSHADOW | SWIG_POINTER_OWN) #define SWIG_POINTER_IMPLICIT_CONV (SWIG_POINTER_DISOWN << 1) #define SWIG_BUILTIN_TP_INIT (SWIG_POINTER_OWN << 2) #define SWIG_BUILTIN_INIT (SWIG_BUILTIN_TP_INIT | SWIG_POINTER_OWN) #ifdef __cplusplus extern "C" { #endif /* The python void return value */ SWIGRUNTIMEINLINE PyObject * SWIG_Py_Void(void) { PyObject *none = Py_None; Py_INCREF(none); return none; } /* SwigPyClientData */ typedef struct { PyObject *klass; PyObject *newraw; PyObject *newargs; PyObject *destroy; int delargs; int implicitconv; PyTypeObject *pytype; } SwigPyClientData; SWIGRUNTIMEINLINE int SWIG_Python_CheckImplicit(swig_type_info *ty) { SwigPyClientData *data = (SwigPyClientData *)ty->clientdata; int fail = data ? data->implicitconv : 0; if (fail) PyErr_SetString(PyExc_TypeError, "Implicit conversion is prohibited for explicit constructors."); return fail; } SWIGRUNTIMEINLINE PyObject * SWIG_Python_ExceptionType(swig_type_info *desc) { SwigPyClientData *data = desc ? (SwigPyClientData *) desc->clientdata : 0; PyObject *klass = data ? data->klass : 0; return (klass ? klass : PyExc_RuntimeError); } SWIGRUNTIME SwigPyClientData * SwigPyClientData_New(PyObject* obj) { if (!obj) { return 0; } else { SwigPyClientData *data = (SwigPyClientData *)malloc(sizeof(SwigPyClientData)); /* the klass element */ data->klass = obj; Py_INCREF(data->klass); /* the newraw method and newargs arguments used to create a new raw instance */ if (PyClass_Check(obj)) { data->newraw = 0; data->newargs = obj; Py_INCREF(obj); } else { data->newraw = PyObject_GetAttrString(data->klass, "__new__"); if (data->newraw) { Py_INCREF(data->newraw); data->newargs = PyTuple_New(1); PyTuple_SetItem(data->newargs, 0, obj); } else { data->newargs = obj; } Py_INCREF(data->newargs); } /* the destroy method, aka as the C++ delete method */ data->destroy = PyObject_GetAttrString(data->klass, "__swig_destroy__"); if (PyErr_Occurred()) { PyErr_Clear(); data->destroy = 0; } if (data->destroy) { int flags; Py_INCREF(data->destroy); flags = PyCFunction_GET_FLAGS(data->destroy); data->delargs = !(flags & (METH_O)); } else { data->delargs = 0; } data->implicitconv = 0; data->pytype = 0; return data; } } SWIGRUNTIME void SwigPyClientData_Del(SwigPyClientData *data) { Py_XDECREF(data->newraw); Py_XDECREF(data->newargs); Py_XDECREF(data->destroy); } /* =============== SwigPyObject =====================*/ typedef struct { PyObject_HEAD void *ptr; swig_type_info *ty; int own; PyObject *next; #ifdef SWIGPYTHON_BUILTIN PyObject *dict; #endif } SwigPyObject; #ifdef SWIGPYTHON_BUILTIN SWIGRUNTIME PyObject * SwigPyObject_get___dict__(PyObject *v, PyObject *SWIGUNUSEDPARM(args)) { SwigPyObject *sobj = (SwigPyObject *)v; if (!sobj->dict) sobj->dict = PyDict_New(); Py_INCREF(sobj->dict); return sobj->dict; } #endif SWIGRUNTIME PyObject * SwigPyObject_long(SwigPyObject *v) { return PyLong_FromVoidPtr(v->ptr); } SWIGRUNTIME PyObject * SwigPyObject_format(const char* fmt, SwigPyObject *v) { PyObject *res = NULL; PyObject *args = PyTuple_New(1); if (args) { if (PyTuple_SetItem(args, 0, SwigPyObject_long(v)) == 0) { PyObject *ofmt = SWIG_Python_str_FromChar(fmt); if (ofmt) { #if PY_VERSION_HEX >= 0x03000000 res = PyUnicode_Format(ofmt,args); #else res = PyString_Format(ofmt,args); #endif Py_DECREF(ofmt); } Py_DECREF(args); } } return res; } SWIGRUNTIME PyObject * SwigPyObject_oct(SwigPyObject *v) { return SwigPyObject_format("%o",v); } SWIGRUNTIME PyObject * SwigPyObject_hex(SwigPyObject *v) { return SwigPyObject_format("%x",v); } SWIGRUNTIME PyObject * SwigPyObject_repr(SwigPyObject *v) { const char *name = SWIG_TypePrettyName(v->ty); PyObject *repr = SWIG_Python_str_FromFormat("<Swig Object of type '%s' at %p>", (name ? name : "unknown"), (void *)v); if (v->next) { PyObject *nrep = SwigPyObject_repr((SwigPyObject *)v->next); # if PY_VERSION_HEX >= 0x03000000 PyObject *joined = PyUnicode_Concat(repr, nrep); Py_DecRef(repr); Py_DecRef(nrep); repr = joined; # else PyString_ConcatAndDel(&repr,nrep); # endif } return repr; } /* We need a version taking two PyObject* parameters so it's a valid * PyCFunction to use in swigobject_methods[]. */ SWIGRUNTIME PyObject * SwigPyObject_repr2(PyObject *v, PyObject *SWIGUNUSEDPARM(args)) { return SwigPyObject_repr((SwigPyObject*)v); } SWIGRUNTIME int SwigPyObject_compare(SwigPyObject *v, SwigPyObject *w) { void *i = v->ptr; void *j = w->ptr; return (i < j) ? -1 : ((i > j) ? 1 : 0); } /* Added for Python 3.x, would it also be useful for Python 2.x? */ SWIGRUNTIME PyObject* SwigPyObject_richcompare(SwigPyObject *v, SwigPyObject *w, int op) { PyObject* res; if( op != Py_EQ && op != Py_NE ) { Py_INCREF(Py_NotImplemented); return Py_NotImplemented; } res = PyBool_FromLong( (SwigPyObject_compare(v, w)==0) == (op == Py_EQ) ? 1 : 0); return res; } SWIGRUNTIME PyTypeObject* SwigPyObject_TypeOnce(void); #ifdef SWIGPYTHON_BUILTIN static swig_type_info *SwigPyObject_stype = 0; SWIGRUNTIME PyTypeObject* SwigPyObject_type(void) { SwigPyClientData *cd; assert(SwigPyObject_stype); cd = (SwigPyClientData*) SwigPyObject_stype->clientdata; assert(cd); assert(cd->pytype); return cd->pytype; } #else SWIGRUNTIME PyTypeObject* SwigPyObject_type(void) { static PyTypeObject *SWIG_STATIC_POINTER(type) = SwigPyObject_TypeOnce(); return type; } #endif SWIGRUNTIMEINLINE int SwigPyObject_Check(PyObject *op) { #ifdef SWIGPYTHON_BUILTIN PyTypeObject *target_tp = SwigPyObject_type(); if (PyType_IsSubtype(op->ob_type, target_tp)) return 1; return (strcmp(op->ob_type->tp_name, "SwigPyObject") == 0); #else return (Py_TYPE(op) == SwigPyObject_type()) || (strcmp(Py_TYPE(op)->tp_name,"SwigPyObject") == 0); #endif } SWIGRUNTIME PyObject * SwigPyObject_New(void *ptr, swig_type_info *ty, int own); SWIGRUNTIME void SwigPyObject_dealloc(PyObject *v) { SwigPyObject *sobj = (SwigPyObject *) v; PyObject *next = sobj->next; if (sobj->own == SWIG_POINTER_OWN) { swig_type_info *ty = sobj->ty; SwigPyClientData *data = ty ? (SwigPyClientData *) ty->clientdata : 0; PyObject *destroy = data ? data->destroy : 0; if (destroy) { /* destroy is always a VARARGS method */ PyObject *res; /* PyObject_CallFunction() has the potential to silently drop the active exception. In cases of unnamed temporary variable or where we just finished iterating over a generator StopIteration will be active right now, and this needs to remain true upon return from SwigPyObject_dealloc. So save and restore. */ PyObject *type = NULL, *value = NULL, *traceback = NULL; PyErr_Fetch(&type, &value, &traceback); if (data->delargs) { /* we need to create a temporary object to carry the destroy operation */ PyObject *tmp = SwigPyObject_New(sobj->ptr, ty, 0); res = SWIG_Python_CallFunctor(destroy, tmp); Py_DECREF(tmp); } else { PyCFunction meth = PyCFunction_GET_FUNCTION(destroy); PyObject *mself = PyCFunction_GET_SELF(destroy); res = ((*meth)(mself, v)); } if (!res) PyErr_WriteUnraisable(destroy); PyErr_Restore(type, value, traceback); Py_XDECREF(res); } #if !defined(SWIG_PYTHON_SILENT_MEMLEAK) else { const char *name = SWIG_TypePrettyName(ty); printf("swig/python detected a memory leak of type '%s', no destructor found.\n", (name ? name : "unknown")); } #endif } Py_XDECREF(next); PyObject_DEL(v); } SWIGRUNTIME PyObject* SwigPyObject_append(PyObject* v, PyObject* next) { SwigPyObject *sobj = (SwigPyObject *) v; if (!SwigPyObject_Check(next)) { PyErr_SetString(PyExc_TypeError, "Attempt to append a non SwigPyObject"); return NULL; } sobj->next = next; Py_INCREF(next); return SWIG_Py_Void(); } SWIGRUNTIME PyObject* SwigPyObject_next(PyObject* v, PyObject *SWIGUNUSEDPARM(args)) { SwigPyObject *sobj = (SwigPyObject *) v; if (sobj->next) { Py_INCREF(sobj->next); return sobj->next; } else { return SWIG_Py_Void(); } } SWIGINTERN PyObject* SwigPyObject_disown(PyObject* v, PyObject *SWIGUNUSEDPARM(args)) { SwigPyObject *sobj = (SwigPyObject *)v; sobj->own = 0; return SWIG_Py_Void(); } SWIGINTERN PyObject* SwigPyObject_acquire(PyObject* v, PyObject *SWIGUNUSEDPARM(args)) { SwigPyObject *sobj = (SwigPyObject *)v; sobj->own = SWIG_POINTER_OWN; return SWIG_Py_Void(); } SWIGINTERN PyObject* SwigPyObject_own(PyObject *v, PyObject *args) { PyObject *val = 0; if (!PyArg_UnpackTuple(args, "own", 0, 1, &val)) { return NULL; } else { SwigPyObject *sobj = (SwigPyObject *)v; PyObject *obj = PyBool_FromLong(sobj->own); if (val) { if (PyObject_IsTrue(val)) { SwigPyObject_acquire(v,args); } else { SwigPyObject_disown(v,args); } } return obj; } } static PyMethodDef swigobject_methods[] = { {"disown", SwigPyObject_disown, METH_NOARGS, "releases ownership of the pointer"}, {"acquire", SwigPyObject_acquire, METH_NOARGS, "acquires ownership of the pointer"}, {"own", SwigPyObject_own, METH_VARARGS, "returns/sets ownership of the pointer"}, {"append", SwigPyObject_append, METH_O, "appends another 'this' object"}, {"next", SwigPyObject_next, METH_NOARGS, "returns the next 'this' object"}, {"__repr__",SwigPyObject_repr2, METH_NOARGS, "returns object representation"}, {0, 0, 0, 0} }; SWIGRUNTIME PyTypeObject* SwigPyObject_TypeOnce(void) { static char swigobject_doc[] = "Swig object carries a C/C++ instance pointer"; static PyNumberMethods SwigPyObject_as_number = { (binaryfunc)0, /*nb_add*/ (binaryfunc)0, /*nb_subtract*/ (binaryfunc)0, /*nb_multiply*/ /* nb_divide removed in Python 3 */ #if PY_VERSION_HEX < 0x03000000 (binaryfunc)0, /*nb_divide*/ #endif (binaryfunc)0, /*nb_remainder*/ (binaryfunc)0, /*nb_divmod*/ (ternaryfunc)0,/*nb_power*/ (unaryfunc)0, /*nb_negative*/ (unaryfunc)0, /*nb_positive*/ (unaryfunc)0, /*nb_absolute*/ (inquiry)0, /*nb_nonzero*/ 0, /*nb_invert*/ 0, /*nb_lshift*/ 0, /*nb_rshift*/ 0, /*nb_and*/ 0, /*nb_xor*/ 0, /*nb_or*/ #if PY_VERSION_HEX < 0x03000000 0, /*nb_coerce*/ #endif (unaryfunc)SwigPyObject_long, /*nb_int*/ #if PY_VERSION_HEX < 0x03000000 (unaryfunc)SwigPyObject_long, /*nb_long*/ #else 0, /*nb_reserved*/ #endif (unaryfunc)0, /*nb_float*/ #if PY_VERSION_HEX < 0x03000000 (unaryfunc)SwigPyObject_oct, /*nb_oct*/ (unaryfunc)SwigPyObject_hex, /*nb_hex*/ #endif #if PY_VERSION_HEX >= 0x03050000 /* 3.5 */ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_matrix_multiply */ #elif PY_VERSION_HEX >= 0x03000000 /* 3.0 */ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_index, nb_inplace_divide removed */ #else 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_index */ #endif }; static PyTypeObject swigpyobject_type; static int type_init = 0; if (!type_init) { const PyTypeObject tmp = { #if PY_VERSION_HEX >= 0x03000000 PyVarObject_HEAD_INIT(NULL, 0) #else PyObject_HEAD_INIT(NULL) 0, /* ob_size */ #endif "SwigPyObject", /* tp_name */ sizeof(SwigPyObject), /* tp_basicsize */ 0, /* tp_itemsize */ (destructor)SwigPyObject_dealloc, /* tp_dealloc */ 0, /* tp_print */ (getattrfunc)0, /* tp_getattr */ (setattrfunc)0, /* tp_setattr */ #if PY_VERSION_HEX >= 0x03000000 0, /* tp_reserved in 3.0.1, tp_compare in 3.0.0 but not used */ #else (cmpfunc)SwigPyObject_compare, /* tp_compare */ #endif (reprfunc)SwigPyObject_repr, /* tp_repr */ &SwigPyObject_as_number, /* tp_as_number */ 0, /* tp_as_sequence */ 0, /* tp_as_mapping */ (hashfunc)0, /* tp_hash */ (ternaryfunc)0, /* tp_call */ 0, /* tp_str */ PyObject_GenericGetAttr, /* tp_getattro */ 0, /* tp_setattro */ 0, /* tp_as_buffer */ Py_TPFLAGS_DEFAULT, /* tp_flags */ swigobject_doc, /* tp_doc */ 0, /* tp_traverse */ 0, /* tp_clear */ (richcmpfunc)SwigPyObject_richcompare,/* tp_richcompare */ 0, /* tp_weaklistoffset */ 0, /* tp_iter */ 0, /* tp_iternext */ swigobject_methods, /* tp_methods */ 0, /* tp_members */ 0, /* tp_getset */ 0, /* tp_base */ 0, /* tp_dict */ 0, /* tp_descr_get */ 0, /* tp_descr_set */ 0, /* tp_dictoffset */ 0, /* tp_init */ 0, /* tp_alloc */ 0, /* tp_new */ 0, /* tp_free */ 0, /* tp_is_gc */ 0, /* tp_bases */ 0, /* tp_mro */ 0, /* tp_cache */ 0, /* tp_subclasses */ 0, /* tp_weaklist */ 0, /* tp_del */ 0, /* tp_version_tag */ #if PY_VERSION_HEX >= 0x03040000 0, /* tp_finalize */ #endif #if PY_VERSION_HEX >= 0x03080000 0, /* tp_vectorcall */ #endif #if (PY_VERSION_HEX >= 0x03080000) && (PY_VERSION_HEX < 0x03090000) 0, /* tp_print */ #endif #ifdef COUNT_ALLOCS 0, /* tp_allocs */ 0, /* tp_frees */ 0, /* tp_maxalloc */ 0, /* tp_prev */ 0 /* tp_next */ #endif }; swigpyobject_type = tmp; type_init = 1; if (PyType_Ready(&swigpyobject_type) < 0) return NULL; } return &swigpyobject_type; } SWIGRUNTIME PyObject * SwigPyObject_New(void *ptr, swig_type_info *ty, int own) { SwigPyObject *sobj = PyObject_NEW(SwigPyObject, SwigPyObject_type()); if (sobj) { sobj->ptr = ptr; sobj->ty = ty; sobj->own = own; sobj->next = 0; } return (PyObject *)sobj; } /* ----------------------------------------------------------------------------- * Implements a simple Swig Packed type, and use it instead of string * ----------------------------------------------------------------------------- */ typedef struct { PyObject_HEAD void *pack; swig_type_info *ty; size_t size; } SwigPyPacked; SWIGRUNTIME PyObject * SwigPyPacked_repr(SwigPyPacked *v) { char result[SWIG_BUFFER_SIZE]; if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) { return SWIG_Python_str_FromFormat("<Swig Packed at %s%s>", result, v->ty->name); } else { return SWIG_Python_str_FromFormat("<Swig Packed %s>", v->ty->name); } } SWIGRUNTIME PyObject * SwigPyPacked_str(SwigPyPacked *v) { char result[SWIG_BUFFER_SIZE]; if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))){ return SWIG_Python_str_FromFormat("%s%s", result, v->ty->name); } else { return SWIG_Python_str_FromChar(v->ty->name); } } SWIGRUNTIME int SwigPyPacked_compare(SwigPyPacked *v, SwigPyPacked *w) { size_t i = v->size; size_t j = w->size; int s = (i < j) ? -1 : ((i > j) ? 1 : 0); return s ? s : strncmp((const char *)v->pack, (const char *)w->pack, 2*v->size); } SWIGRUNTIME PyTypeObject* SwigPyPacked_TypeOnce(void); SWIGRUNTIME PyTypeObject* SwigPyPacked_type(void) { static PyTypeObject *SWIG_STATIC_POINTER(type) = SwigPyPacked_TypeOnce(); return type; } SWIGRUNTIMEINLINE int SwigPyPacked_Check(PyObject *op) { return ((op)->ob_type == SwigPyPacked_TypeOnce()) || (strcmp((op)->ob_type->tp_name,"SwigPyPacked") == 0); } SWIGRUNTIME void SwigPyPacked_dealloc(PyObject *v) { if (SwigPyPacked_Check(v)) { SwigPyPacked *sobj = (SwigPyPacked *) v; free(sobj->pack); } PyObject_DEL(v); } SWIGRUNTIME PyTypeObject* SwigPyPacked_TypeOnce(void) { static char swigpacked_doc[] = "Swig object carries a C/C++ instance pointer"; static PyTypeObject swigpypacked_type; static int type_init = 0; if (!type_init) { const PyTypeObject tmp = { #if PY_VERSION_HEX>=0x03000000 PyVarObject_HEAD_INIT(NULL, 0) #else PyObject_HEAD_INIT(NULL) 0, /* ob_size */ #endif "SwigPyPacked", /* tp_name */ sizeof(SwigPyPacked), /* tp_basicsize */ 0, /* tp_itemsize */ (destructor)SwigPyPacked_dealloc, /* tp_dealloc */ 0, /* tp_print */ (getattrfunc)0, /* tp_getattr */ (setattrfunc)0, /* tp_setattr */ #if PY_VERSION_HEX>=0x03000000 0, /* tp_reserved in 3.0.1 */ #else (cmpfunc)SwigPyPacked_compare, /* tp_compare */ #endif (reprfunc)SwigPyPacked_repr, /* tp_repr */ 0, /* tp_as_number */ 0, /* tp_as_sequence */ 0, /* tp_as_mapping */ (hashfunc)0, /* tp_hash */ (ternaryfunc)0, /* tp_call */ (reprfunc)SwigPyPacked_str, /* tp_str */ PyObject_GenericGetAttr, /* tp_getattro */ 0, /* tp_setattro */ 0, /* tp_as_buffer */ Py_TPFLAGS_DEFAULT, /* tp_flags */ swigpacked_doc, /* tp_doc */ 0, /* tp_traverse */ 0, /* tp_clear */ 0, /* tp_richcompare */ 0, /* tp_weaklistoffset */ 0, /* tp_iter */ 0, /* tp_iternext */ 0, /* tp_methods */ 0, /* tp_members */ 0, /* tp_getset */ 0, /* tp_base */ 0, /* tp_dict */ 0, /* tp_descr_get */ 0, /* tp_descr_set */ 0, /* tp_dictoffset */ 0, /* tp_init */ 0, /* tp_alloc */ 0, /* tp_new */ 0, /* tp_free */ 0, /* tp_is_gc */ 0, /* tp_bases */ 0, /* tp_mro */ 0, /* tp_cache */ 0, /* tp_subclasses */ 0, /* tp_weaklist */ 0, /* tp_del */ 0, /* tp_version_tag */ #if PY_VERSION_HEX >= 0x03040000 0, /* tp_finalize */ #endif #if PY_VERSION_HEX >= 0x03080000 0, /* tp_vectorcall */ #endif #if (PY_VERSION_HEX >= 0x03080000) && (PY_VERSION_HEX < 0x03090000) 0, /* tp_print */ #endif #ifdef COUNT_ALLOCS 0, /* tp_allocs */ 0, /* tp_frees */ 0, /* tp_maxalloc */ 0, /* tp_prev */ 0 /* tp_next */ #endif }; swigpypacked_type = tmp; type_init = 1; if (PyType_Ready(&swigpypacked_type) < 0) return NULL; } return &swigpypacked_type; } SWIGRUNTIME PyObject * SwigPyPacked_New(void *ptr, size_t size, swig_type_info *ty) { SwigPyPacked *sobj = PyObject_NEW(SwigPyPacked, SwigPyPacked_type()); if (sobj) { void *pack = malloc(size); if (pack) { memcpy(pack, ptr, size); sobj->pack = pack; sobj->ty = ty; sobj->size = size; } else { PyObject_DEL((PyObject *) sobj); sobj = 0; } } return (PyObject *) sobj; } SWIGRUNTIME swig_type_info * SwigPyPacked_UnpackData(PyObject *obj, void *ptr, size_t size) { if (SwigPyPacked_Check(obj)) { SwigPyPacked *sobj = (SwigPyPacked *)obj; if (sobj->size != size) return 0; memcpy(ptr, sobj->pack, size); return sobj->ty; } else { return 0; } } /* ----------------------------------------------------------------------------- * pointers/data manipulation * ----------------------------------------------------------------------------- */ static PyObject *Swig_This_global = NULL; SWIGRUNTIME PyObject * SWIG_This(void) { if (Swig_This_global == NULL) Swig_This_global = SWIG_Python_str_FromChar("this"); return Swig_This_global; } /* #define SWIG_PYTHON_SLOW_GETSET_THIS */ /* TODO: I don't know how to implement the fast getset in Python 3 right now */ #if PY_VERSION_HEX>=0x03000000 #define SWIG_PYTHON_SLOW_GETSET_THIS #endif SWIGRUNTIME SwigPyObject * SWIG_Python_GetSwigThis(PyObject *pyobj) { PyObject *obj; if (SwigPyObject_Check(pyobj)) return (SwigPyObject *) pyobj; #ifdef SWIGPYTHON_BUILTIN (void)obj; # ifdef PyWeakref_CheckProxy if (PyWeakref_CheckProxy(pyobj)) { pyobj = PyWeakref_GET_OBJECT(pyobj); if (pyobj && SwigPyObject_Check(pyobj)) return (SwigPyObject*) pyobj; } # endif return NULL; #else obj = 0; #if !defined(SWIG_PYTHON_SLOW_GETSET_THIS) if (PyInstance_Check(pyobj)) { obj = _PyInstance_Lookup(pyobj, SWIG_This()); } else { PyObject **dictptr = _PyObject_GetDictPtr(pyobj); if (dictptr != NULL) { PyObject *dict = *dictptr; obj = dict ? PyDict_GetItem(dict, SWIG_This()) : 0; } else { #ifdef PyWeakref_CheckProxy if (PyWeakref_CheckProxy(pyobj)) { PyObject *wobj = PyWeakref_GET_OBJECT(pyobj); return wobj ? SWIG_Python_GetSwigThis(wobj) : 0; } #endif obj = PyObject_GetAttr(pyobj,SWIG_This()); if (obj) { Py_DECREF(obj); } else { if (PyErr_Occurred()) PyErr_Clear(); return 0; } } } #else obj = PyObject_GetAttr(pyobj,SWIG_This()); if (obj) { Py_DECREF(obj); } else { if (PyErr_Occurred()) PyErr_Clear(); return 0; } #endif if (obj && !SwigPyObject_Check(obj)) { /* a PyObject is called 'this', try to get the 'real this' SwigPyObject from it */ return SWIG_Python_GetSwigThis(obj); } return (SwigPyObject *)obj; #endif } /* Acquire a pointer value */ SWIGRUNTIME int SWIG_Python_AcquirePtr(PyObject *obj, int own) { if (own == SWIG_POINTER_OWN) { SwigPyObject *sobj = SWIG_Python_GetSwigThis(obj); if (sobj) { int oldown = sobj->own; sobj->own = own; return oldown; } } return 0; } /* Convert a pointer value */ SWIGRUNTIME int SWIG_Python_ConvertPtrAndOwn(PyObject *obj, void **ptr, swig_type_info *ty, int flags, int *own) { int res; SwigPyObject *sobj; int implicit_conv = (flags & SWIG_POINTER_IMPLICIT_CONV) != 0; if (!obj) return SWIG_ERROR; if (obj == Py_None && !implicit_conv) { if (ptr) *ptr = 0; return (flags & SWIG_POINTER_NO_NULL) ? SWIG_NullReferenceError : SWIG_OK; } res = SWIG_ERROR; sobj = SWIG_Python_GetSwigThis(obj); if (own) *own = 0; while (sobj) { void *vptr = sobj->ptr; if (ty) { swig_type_info *to = sobj->ty; if (to == ty) { /* no type cast needed */ if (ptr) *ptr = vptr; break; } else { swig_cast_info *tc = SWIG_TypeCheck(to->name,ty); if (!tc) { sobj = (SwigPyObject *)sobj->next; } else { if (ptr) { int newmemory = 0; *ptr = SWIG_TypeCast(tc,vptr,&newmemory); if (newmemory == SWIG_CAST_NEW_MEMORY) { assert(own); /* badly formed typemap which will lead to a memory leak - it must set and use own to delete *ptr */ if (own) *own = *own | SWIG_CAST_NEW_MEMORY; } } break; } } } else { if (ptr) *ptr = vptr; break; } } if (sobj) { if (own) *own = *own | sobj->own; if (flags & SWIG_POINTER_DISOWN) { sobj->own = 0; } res = SWIG_OK; } else { if (implicit_conv) { SwigPyClientData *data = ty ? (SwigPyClientData *) ty->clientdata : 0; if (data && !data->implicitconv) { PyObject *klass = data->klass; if (klass) { PyObject *impconv; data->implicitconv = 1; /* avoid recursion and call 'explicit' constructors*/ impconv = SWIG_Python_CallFunctor(klass, obj); data->implicitconv = 0; if (PyErr_Occurred()) { PyErr_Clear(); impconv = 0; } if (impconv) { SwigPyObject *iobj = SWIG_Python_GetSwigThis(impconv); if (iobj) { void *vptr; res = SWIG_Python_ConvertPtrAndOwn((PyObject*)iobj, &vptr, ty, 0, 0); if (SWIG_IsOK(res)) { if (ptr) { *ptr = vptr; /* transfer the ownership to 'ptr' */ iobj->own = 0; res = SWIG_AddCast(res); res = SWIG_AddNewMask(res); } else { res = SWIG_AddCast(res); } } } Py_DECREF(impconv); } } } if (!SWIG_IsOK(res) && obj == Py_None) { if (ptr) *ptr = 0; if (PyErr_Occurred()) PyErr_Clear(); res = SWIG_OK; } } } return res; } /* Convert a function ptr value */ SWIGRUNTIME int SWIG_Python_ConvertFunctionPtr(PyObject *obj, void **ptr, swig_type_info *ty) { if (!PyCFunction_Check(obj)) { return SWIG_ConvertPtr(obj, ptr, ty, 0); } else { void *vptr = 0; swig_cast_info *tc; /* here we get the method pointer for callbacks */ const char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc); const char *desc = doc ? strstr(doc, "swig_ptr: ") : 0; if (desc) desc = ty ? SWIG_UnpackVoidPtr(desc + 10, &vptr, ty->name) : 0; if (!desc) return SWIG_ERROR; tc = SWIG_TypeCheck(desc,ty); if (tc) { int newmemory = 0; *ptr = SWIG_TypeCast(tc,vptr,&newmemory); assert(!newmemory); /* newmemory handling not yet implemented */ } else { return SWIG_ERROR; } return SWIG_OK; } } /* Convert a packed pointer value */ SWIGRUNTIME int SWIG_Python_ConvertPacked(PyObject *obj, void *ptr, size_t sz, swig_type_info *ty) { swig_type_info *to = SwigPyPacked_UnpackData(obj, ptr, sz); if (!to) return SWIG_ERROR; if (ty) { if (to != ty) { /* check type cast? */ swig_cast_info *tc = SWIG_TypeCheck(to->name,ty); if (!tc) return SWIG_ERROR; } } return SWIG_OK; } /* ----------------------------------------------------------------------------- * Create a new pointer object * ----------------------------------------------------------------------------- */ /* Create a new instance object, without calling __init__, and set the 'this' attribute. */ SWIGRUNTIME PyObject* SWIG_Python_NewShadowInstance(SwigPyClientData *data, PyObject *swig_this) { PyObject *inst = 0; PyObject *newraw = data->newraw; if (newraw) { inst = PyObject_Call(newraw, data->newargs, NULL); if (inst) { #if !defined(SWIG_PYTHON_SLOW_GETSET_THIS) PyObject **dictptr = _PyObject_GetDictPtr(inst); if (dictptr != NULL) { PyObject *dict = *dictptr; if (dict == NULL) { dict = PyDict_New(); *dictptr = dict; PyDict_SetItem(dict, SWIG_This(), swig_this); } } #else if (PyObject_SetAttr(inst, SWIG_This(), swig_this) == -1) { Py_DECREF(inst); inst = 0; } #endif } } else { #if PY_VERSION_HEX >= 0x03000000 PyObject *empty_args = PyTuple_New(0); if (empty_args) { PyObject *empty_kwargs = PyDict_New(); if (empty_kwargs) { inst = ((PyTypeObject *)data->newargs)->tp_new((PyTypeObject *)data->newargs, empty_args, empty_kwargs); Py_DECREF(empty_kwargs); if (inst) { if (PyObject_SetAttr(inst, SWIG_This(), swig_this) == -1) { Py_DECREF(inst); inst = 0; } else { Py_TYPE(inst)->tp_flags &= ~Py_TPFLAGS_VALID_VERSION_TAG; } } } Py_DECREF(empty_args); } #else PyObject *dict = PyDict_New(); if (dict) { PyDict_SetItem(dict, SWIG_This(), swig_this); inst = PyInstance_NewRaw(data->newargs, dict); Py_DECREF(dict); } #endif } return inst; } SWIGRUNTIME int SWIG_Python_SetSwigThis(PyObject *inst, PyObject *swig_this) { #if !defined(SWIG_PYTHON_SLOW_GETSET_THIS) PyObject **dictptr = _PyObject_GetDictPtr(inst); if (dictptr != NULL) { PyObject *dict = *dictptr; if (dict == NULL) { dict = PyDict_New(); *dictptr = dict; } return PyDict_SetItem(dict, SWIG_This(), swig_this); } #endif return PyObject_SetAttr(inst, SWIG_This(), swig_this); } SWIGINTERN PyObject * SWIG_Python_InitShadowInstance(PyObject *args) { PyObject *obj[2]; if (!SWIG_Python_UnpackTuple(args, "swiginit", 2, 2, obj)) { return NULL; } else { SwigPyObject *sthis = SWIG_Python_GetSwigThis(obj[0]); if (sthis) { SwigPyObject_append((PyObject*) sthis, obj[1]); } else { if (SWIG_Python_SetSwigThis(obj[0], obj[1]) != 0) return NULL; } return SWIG_Py_Void(); } } /* Create a new pointer object */ SWIGRUNTIME PyObject * SWIG_Python_NewPointerObj(PyObject *self, void *ptr, swig_type_info *type, int flags) { SwigPyClientData *clientdata; PyObject * robj; int own; if (!ptr) return SWIG_Py_Void(); clientdata = type ? (SwigPyClientData *)(type->clientdata) : 0; own = (flags & SWIG_POINTER_OWN) ? SWIG_POINTER_OWN : 0; if (clientdata && clientdata->pytype) { SwigPyObject *newobj; if (flags & SWIG_BUILTIN_TP_INIT) { newobj = (SwigPyObject*) self; if (newobj->ptr) { PyObject *next_self = clientdata->pytype->tp_alloc(clientdata->pytype, 0); while (newobj->next) newobj = (SwigPyObject *) newobj->next; newobj->next = next_self; newobj = (SwigPyObject *)next_self; #ifdef SWIGPYTHON_BUILTIN newobj->dict = 0; #endif } } else { newobj = PyObject_New(SwigPyObject, clientdata->pytype); #ifdef SWIGPYTHON_BUILTIN newobj->dict = 0; #endif } if (newobj) { newobj->ptr = ptr; newobj->ty = type; newobj->own = own; newobj->next = 0; return (PyObject*) newobj; } return SWIG_Py_Void(); } assert(!(flags & SWIG_BUILTIN_TP_INIT)); robj = SwigPyObject_New(ptr, type, own); if (robj && clientdata && !(flags & SWIG_POINTER_NOSHADOW)) { PyObject *inst = SWIG_Python_NewShadowInstance(clientdata, robj); Py_DECREF(robj); robj = inst; } return robj; } /* Create a new packed object */ SWIGRUNTIMEINLINE PyObject * SWIG_Python_NewPackedObj(void *ptr, size_t sz, swig_type_info *type) { return ptr ? SwigPyPacked_New((void *) ptr, sz, type) : SWIG_Py_Void(); } /* -----------------------------------------------------------------------------* * Get type list * -----------------------------------------------------------------------------*/ #ifdef SWIG_LINK_RUNTIME void *SWIG_ReturnGlobalTypeList(void *); #endif SWIGRUNTIME swig_module_info * SWIG_Python_GetModule(void *SWIGUNUSEDPARM(clientdata)) { static void *type_pointer = (void *)0; /* first check if module already created */ if (!type_pointer) { #ifdef SWIG_LINK_RUNTIME type_pointer = SWIG_ReturnGlobalTypeList((void *)0); #else type_pointer = PyCapsule_Import(SWIGPY_CAPSULE_NAME, 0); if (PyErr_Occurred()) { PyErr_Clear(); type_pointer = (void *)0; } #endif } return (swig_module_info *) type_pointer; } SWIGRUNTIME void SWIG_Python_DestroyModule(PyObject *obj) { swig_module_info *swig_module = (swig_module_info *) PyCapsule_GetPointer(obj, SWIGPY_CAPSULE_NAME); swig_type_info **types = swig_module->types; size_t i; for (i =0; i < swig_module->size; ++i) { swig_type_info *ty = types[i]; if (ty->owndata) { SwigPyClientData *data = (SwigPyClientData *) ty->clientdata; if (data) SwigPyClientData_Del(data); } } Py_DECREF(SWIG_This()); Swig_This_global = NULL; } SWIGRUNTIME void SWIG_Python_SetModule(swig_module_info *swig_module) { #if PY_VERSION_HEX >= 0x03000000 /* Add a dummy module object into sys.modules */ PyObject *module = PyImport_AddModule("swig_runtime_data" SWIG_RUNTIME_VERSION); #else static PyMethodDef swig_empty_runtime_method_table[] = { {NULL, NULL, 0, NULL} }; /* Sentinel */ PyObject *module = Py_InitModule("swig_runtime_data" SWIG_RUNTIME_VERSION, swig_empty_runtime_method_table); #endif PyObject *pointer = PyCapsule_New((void *) swig_module, SWIGPY_CAPSULE_NAME, SWIG_Python_DestroyModule); if (pointer && module) { PyModule_AddObject(module, "type_pointer_capsule" SWIG_TYPE_TABLE_NAME, pointer); } else { Py_XDECREF(pointer); } } /* The python cached type query */ SWIGRUNTIME PyObject * SWIG_Python_TypeCache(void) { static PyObject *SWIG_STATIC_POINTER(cache) = PyDict_New(); return cache; } SWIGRUNTIME swig_type_info * SWIG_Python_TypeQuery(const char *type) { PyObject *cache = SWIG_Python_TypeCache(); PyObject *key = SWIG_Python_str_FromChar(type); PyObject *obj = PyDict_GetItem(cache, key); swig_type_info *descriptor; if (obj) { descriptor = (swig_type_info *) PyCapsule_GetPointer(obj, NULL); } else { swig_module_info *swig_module = SWIG_GetModule(0); descriptor = SWIG_TypeQueryModule(swig_module, swig_module, type); if (descriptor) { obj = PyCapsule_New((void*) descriptor, NULL, NULL); PyDict_SetItem(cache, key, obj); Py_DECREF(obj); } } Py_DECREF(key); return descriptor; } /* For backward compatibility only */ #define SWIG_POINTER_EXCEPTION 0 #define SWIG_arg_fail(arg) SWIG_Python_ArgFail(arg) #define SWIG_MustGetPtr(p, type, argnum, flags) SWIG_Python_MustGetPtr(p, type, argnum, flags) SWIGRUNTIME int SWIG_Python_AddErrMesg(const char* mesg, int infront) { if (PyErr_Occurred()) { PyObject *type = 0; PyObject *value = 0; PyObject *traceback = 0; PyErr_Fetch(&type, &value, &traceback); if (value) { PyObject *old_str = PyObject_Str(value); const char *tmp = SWIG_Python_str_AsChar(old_str); const char *errmesg = tmp ? tmp : "Invalid error message"; Py_XINCREF(type); PyErr_Clear(); if (infront) { PyErr_Format(type, "%s %s", mesg, errmesg); } else { PyErr_Format(type, "%s %s", errmesg, mesg); } SWIG_Python_str_DelForPy3(tmp); Py_DECREF(old_str); } return 1; } else { return 0; } } SWIGRUNTIME int SWIG_Python_ArgFail(int argnum) { if (PyErr_Occurred()) { /* add information about failing argument */ char mesg[256]; PyOS_snprintf(mesg, sizeof(mesg), "argument number %d:", argnum); return SWIG_Python_AddErrMesg(mesg, 1); } else { return 0; } } SWIGRUNTIMEINLINE const char * SwigPyObject_GetDesc(PyObject *self) { SwigPyObject *v = (SwigPyObject *)self; swig_type_info *ty = v ? v->ty : 0; return ty ? ty->str : ""; } SWIGRUNTIME void SWIG_Python_TypeError(const char *type, PyObject *obj) { if (type) { #if defined(SWIG_COBJECT_TYPES) if (obj && SwigPyObject_Check(obj)) { const char *otype = (const char *) SwigPyObject_GetDesc(obj); if (otype) { PyErr_Format(PyExc_TypeError, "a '%s' is expected, 'SwigPyObject(%s)' is received", type, otype); return; } } else #endif { const char *otype = (obj ? obj->ob_type->tp_name : 0); if (otype) { PyObject *str = PyObject_Str(obj); const char *cstr = str ? SWIG_Python_str_AsChar(str) : 0; if (cstr) { PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s(%s)' is received", type, otype, cstr); SWIG_Python_str_DelForPy3(cstr); } else { PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s' is received", type, otype); } Py_XDECREF(str); return; } } PyErr_Format(PyExc_TypeError, "a '%s' is expected", type); } else { PyErr_Format(PyExc_TypeError, "unexpected type is received"); } } /* Convert a pointer value, signal an exception on a type mismatch */ SWIGRUNTIME void * SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int SWIGUNUSEDPARM(argnum), int flags) { void *result; if (SWIG_Python_ConvertPtr(obj, &result, ty, flags) == -1) { PyErr_Clear(); #if SWIG_POINTER_EXCEPTION if (flags) { SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj); SWIG_Python_ArgFail(argnum); } #endif } return result; } #ifdef SWIGPYTHON_BUILTIN SWIGRUNTIME int SWIG_Python_NonDynamicSetAttr(PyObject *obj, PyObject *name, PyObject *value) { PyTypeObject *tp = obj->ob_type; PyObject *descr; PyObject *encoded_name; descrsetfunc f; int res = -1; # ifdef Py_USING_UNICODE if (PyString_Check(name)) { name = PyUnicode_Decode(PyString_AsString(name), PyString_Size(name), NULL, NULL); if (!name) return -1; } else if (!PyUnicode_Check(name)) # else if (!PyString_Check(name)) # endif { PyErr_Format(PyExc_TypeError, "attribute name must be string, not '%.200s'", name->ob_type->tp_name); return -1; } else { Py_INCREF(name); } if (!tp->tp_dict) { if (PyType_Ready(tp) < 0) goto done; } descr = _PyType_Lookup(tp, name); f = NULL; if (descr != NULL) f = descr->ob_type->tp_descr_set; if (!f) { if (PyString_Check(name)) { encoded_name = name; Py_INCREF(name); } else { encoded_name = PyUnicode_AsUTF8String(name); if (!encoded_name) return -1; } PyErr_Format(PyExc_AttributeError, "'%.100s' object has no attribute '%.200s'", tp->tp_name, PyString_AsString(encoded_name)); Py_DECREF(encoded_name); } else { res = f(descr, obj, value); } done: Py_DECREF(name); return res; } #endif #ifdef __cplusplus } #endif #define SWIG_exception_fail(code, msg) do { SWIG_Error(code, msg); SWIG_fail; } while(0) #define SWIG_contract_assert(expr, msg) if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } else #ifdef __cplusplus extern "C" { #endif /* Method creation and docstring support functions */ SWIGINTERN PyMethodDef *SWIG_PythonGetProxyDoc(const char *name); SWIGINTERN PyObject *SWIG_PyInstanceMethod_New(PyObject *SWIGUNUSEDPARM(self), PyObject *func); SWIGINTERN PyObject *SWIG_PyStaticMethod_New(PyObject *SWIGUNUSEDPARM(self), PyObject *func); #ifdef __cplusplus } #endif #define SWIG_exception(code, msg) do { SWIG_Error(code, msg); SWIG_fail;; } while(0) /* ----------------------------------------------------------------------------- * director_common.swg * * This file contains support for director classes which is common between * languages. * ----------------------------------------------------------------------------- */ /* Use -DSWIG_DIRECTOR_STATIC if you prefer to avoid the use of the 'Swig' namespace. This could be useful for multi-modules projects. */ #ifdef SWIG_DIRECTOR_STATIC /* Force anonymous (static) namespace */ #define Swig #endif /* ----------------------------------------------------------------------------- * director.swg * * This file contains support for director classes so that Python proxy * methods can be called from C++. * ----------------------------------------------------------------------------- */ #ifndef SWIG_DIRECTOR_PYTHON_HEADER_ #define SWIG_DIRECTOR_PYTHON_HEADER_ #include <string> #include <iostream> #include <exception> #include <vector> #include <map> /* Use -DSWIG_PYTHON_DIRECTOR_NO_VTABLE if you don't want to generate a 'virtual table', and avoid multiple GetAttr calls to retrieve the python methods. */ #ifndef SWIG_PYTHON_DIRECTOR_NO_VTABLE #ifndef SWIG_PYTHON_DIRECTOR_VTABLE #define SWIG_PYTHON_DIRECTOR_VTABLE #endif #endif /* Use -DSWIG_DIRECTOR_NO_UEH if you prefer to avoid the use of the Undefined Exception Handler provided by swig. */ #ifndef SWIG_DIRECTOR_NO_UEH #ifndef SWIG_DIRECTOR_UEH #define SWIG_DIRECTOR_UEH #endif #endif /* Use -DSWIG_DIRECTOR_NORTTI if you prefer to avoid the use of the native C++ RTTI and dynamic_cast<>. But be aware that directors could stop working when using this option. */ #ifdef SWIG_DIRECTOR_NORTTI /* When we don't use the native C++ RTTI, we implement a minimal one only for Directors. */ # ifndef SWIG_DIRECTOR_RTDIR # define SWIG_DIRECTOR_RTDIR namespace Swig { class Director; SWIGINTERN std::map<void *, Director *>& get_rtdir_map() { static std::map<void *, Director *> rtdir_map; return rtdir_map; } SWIGINTERNINLINE void set_rtdir(void *vptr, Director *rtdir) { get_rtdir_map()[vptr] = rtdir; } SWIGINTERNINLINE Director *get_rtdir(void *vptr) { std::map<void *, Director *>::const_iterator pos = get_rtdir_map().find(vptr); Director *rtdir = (pos != get_rtdir_map().end()) ? pos->second : 0; return rtdir; } } # endif /* SWIG_DIRECTOR_RTDIR */ # define SWIG_DIRECTOR_CAST(ARG) Swig::get_rtdir(static_cast<void *>(ARG)) # define SWIG_DIRECTOR_RGTR(ARG1, ARG2) Swig::set_rtdir(static_cast<void *>(ARG1), ARG2) #else # define SWIG_DIRECTOR_CAST(ARG) dynamic_cast<Swig::Director *>(ARG) # define SWIG_DIRECTOR_RGTR(ARG1, ARG2) #endif /* SWIG_DIRECTOR_NORTTI */ extern "C" { struct swig_type_info; } namespace Swig { /* memory handler */ struct GCItem { virtual ~GCItem() {} virtual int get_own() const { return 0; } }; struct GCItem_var { GCItem_var(GCItem *item = 0) : _item(item) { } GCItem_var& operator=(GCItem *item) { GCItem *tmp = _item; _item = item; delete tmp; return *this; } ~GCItem_var() { delete _item; } GCItem * operator->() const { return _item; } private: GCItem *_item; }; struct GCItem_Object : GCItem { GCItem_Object(int own) : _own(own) { } virtual ~GCItem_Object() { } int get_own() const { return _own; } private: int _own; }; template <typename Type> struct GCItem_T : GCItem { GCItem_T(Type *ptr) : _ptr(ptr) { } virtual ~GCItem_T() { delete _ptr; } private: Type *_ptr; }; template <typename Type> struct GCArray_T : GCItem { GCArray_T(Type *ptr) : _ptr(ptr) { } virtual ~GCArray_T() { delete[] _ptr; } private: Type *_ptr; }; /* base class for director exceptions */ class DirectorException : public std::exception { protected: std::string swig_msg; public: DirectorException(PyObject *error, const char *hdr ="", const char *msg ="") : swig_msg(hdr) { SWIG_PYTHON_THREAD_BEGIN_BLOCK; if (msg[0]) { swig_msg += " "; swig_msg += msg; } if (!PyErr_Occurred()) { PyErr_SetString(error, what()); } SWIG_PYTHON_THREAD_END_BLOCK; } virtual ~DirectorException() throw() { } /* Deprecated, use what() instead */ const char *getMessage() const { return what(); } const char *what() const throw() { return swig_msg.c_str(); } static void raise(PyObject *error, const char *msg) { throw DirectorException(error, msg); } static void raise(const char *msg) { raise(PyExc_RuntimeError, msg); } }; /* type mismatch in the return value from a python method call */ class DirectorTypeMismatchException : public DirectorException { public: DirectorTypeMismatchException(PyObject *error, const char *msg="") : DirectorException(error, "SWIG director type mismatch", msg) { } DirectorTypeMismatchException(const char *msg="") : DirectorException(PyExc_TypeError, "SWIG director type mismatch", msg) { } static void raise(PyObject *error, const char *msg) { throw DirectorTypeMismatchException(error, msg); } static void raise(const char *msg) { throw DirectorTypeMismatchException(msg); } }; /* any python exception that occurs during a director method call */ class DirectorMethodException : public DirectorException { public: DirectorMethodException(const char *msg = "") : DirectorException(PyExc_RuntimeError, "SWIG director method error.", msg) { } static void raise(const char *msg) { throw DirectorMethodException(msg); } }; /* attempt to call a pure virtual method via a director method */ class DirectorPureVirtualException : public DirectorException { public: DirectorPureVirtualException(const char *msg = "") : DirectorException(PyExc_RuntimeError, "SWIG director pure virtual method called", msg) { } static void raise(const char *msg) { throw DirectorPureVirtualException(msg); } }; #if defined(SWIG_PYTHON_THREADS) /* __THREAD__ is the old macro to activate some thread support */ # if !defined(__THREAD__) # define __THREAD__ 1 # endif #endif #ifdef __THREAD__ # include "pythread.h" class Guard { PyThread_type_lock &mutex_; public: Guard(PyThread_type_lock & mutex) : mutex_(mutex) { PyThread_acquire_lock(mutex_, WAIT_LOCK); } ~Guard() { PyThread_release_lock(mutex_); } }; # define SWIG_GUARD(mutex) Guard _guard(mutex) #else # define SWIG_GUARD(mutex) #endif /* director base class */ class Director { private: /* pointer to the wrapped python object */ PyObject *swig_self; /* flag indicating whether the object is owned by python or c++ */ mutable bool swig_disown_flag; /* decrement the reference count of the wrapped python object */ void swig_decref() const { if (swig_disown_flag) { SWIG_PYTHON_THREAD_BEGIN_BLOCK; Py_DECREF(swig_self); SWIG_PYTHON_THREAD_END_BLOCK; } } public: /* wrap a python object. */ Director(PyObject *self) : swig_self(self), swig_disown_flag(false) { } /* discard our reference at destruction */ virtual ~Director() { swig_decref(); } /* return a pointer to the wrapped python object */ PyObject *swig_get_self() const { return swig_self; } /* acquire ownership of the wrapped python object (the sense of "disown" is from python) */ void swig_disown() const { if (!swig_disown_flag) { swig_disown_flag=true; swig_incref(); } } /* increase the reference count of the wrapped python object */ void swig_incref() const { if (swig_disown_flag) { Py_INCREF(swig_self); } } /* methods to implement pseudo protected director members */ virtual bool swig_get_inner(const char * /* swig_protected_method_name */) const { return true; } virtual void swig_set_inner(const char * /* swig_protected_method_name */, bool /* swig_val */) const { } /* ownership management */ private: typedef std::map<void *, GCItem_var> swig_ownership_map; mutable swig_ownership_map swig_owner; #ifdef __THREAD__ static PyThread_type_lock swig_mutex_own; #endif public: template <typename Type> void swig_acquire_ownership_array(Type *vptr) const { if (vptr) { SWIG_GUARD(swig_mutex_own); swig_owner[vptr] = new GCArray_T<Type>(vptr); } } template <typename Type> void swig_acquire_ownership(Type *vptr) const { if (vptr) { SWIG_GUARD(swig_mutex_own); swig_owner[vptr] = new GCItem_T<Type>(vptr); } } void swig_acquire_ownership_obj(void *vptr, int own) const { if (vptr && own) { SWIG_GUARD(swig_mutex_own); swig_owner[vptr] = new GCItem_Object(own); } } int swig_release_ownership(void *vptr) const { int own = 0; if (vptr) { SWIG_GUARD(swig_mutex_own); swig_ownership_map::iterator iter = swig_owner.find(vptr); if (iter != swig_owner.end()) { own = iter->second->get_own(); swig_owner.erase(iter); } } return own; } template <typename Type> static PyObject *swig_pyobj_disown(PyObject *pyobj, PyObject *SWIGUNUSEDPARM(args)) { SwigPyObject *sobj = (SwigPyObject *)pyobj; sobj->own = 0; Director *d = SWIG_DIRECTOR_CAST(reinterpret_cast<Type *>(sobj->ptr)); if (d) d->swig_disown(); return PyWeakref_NewProxy(pyobj, NULL); } }; #ifdef __THREAD__ PyThread_type_lock Director::swig_mutex_own = PyThread_allocate_lock(); #endif } #endif /* -------- TYPES TABLE (BEGIN) -------- */ #define SWIGTYPE_p_PyMFEM__wFILE swig_types[0] #define SWIGTYPE_p_RefCoord swig_types[1] #define SWIGTYPE_p_char swig_types[2] #define SWIGTYPE_p_doublep swig_types[3] #define SWIGTYPE_p_hex_t swig_types[4] #define SWIGTYPE_p_intp swig_types[5] #define SWIGTYPE_p_mfem__Array2DT_mfem__DenseMatrix_p_t swig_types[6] #define SWIGTYPE_p_mfem__ArrayT_mfem__FiniteElement_const_p_t swig_types[7] #define SWIGTYPE_p_mfem__ArrayT_mfem__Vector_const_p_t swig_types[8] #define SWIGTYPE_p_mfem__ArrayT_mfem__Vector_p_t swig_types[9] #define SWIGTYPE_p_mfem__BiCubic2DFiniteElement swig_types[10] #define SWIGTYPE_p_mfem__BiCubic3DFiniteElement swig_types[11] #define SWIGTYPE_p_mfem__BiLinear2DFiniteElement swig_types[12] #define SWIGTYPE_p_mfem__BiLinear3DFiniteElement swig_types[13] #define SWIGTYPE_p_mfem__BiQuad2DFiniteElement swig_types[14] #define SWIGTYPE_p_mfem__BiQuadPos2DFiniteElement swig_types[15] #define SWIGTYPE_p_mfem__BiQuadratic3DFiniteElement swig_types[16] #define SWIGTYPE_p_mfem__BlockNonlinearFormIntegrator swig_types[17] #define SWIGTYPE_p_mfem__Coefficient swig_types[18] #define SWIGTYPE_p_mfem__ConstantCoefficient swig_types[19] #define SWIGTYPE_p_mfem__CrouzeixRaviartFiniteElement swig_types[20] #define SWIGTYPE_p_mfem__CrouzeixRaviartQuadFiniteElement swig_types[21] #define SWIGTYPE_p_mfem__Cubic1DFiniteElement swig_types[22] #define SWIGTYPE_p_mfem__Cubic2DFiniteElement swig_types[23] #define SWIGTYPE_p_mfem__Cubic3DFiniteElement swig_types[24] #define SWIGTYPE_p_mfem__DeltaCoefficient swig_types[25] #define SWIGTYPE_p_mfem__DenseMatrix swig_types[26] #define SWIGTYPE_p_mfem__DeterminantCoefficient swig_types[27] #define SWIGTYPE_p_mfem__DivergenceGridFunctionCoefficient swig_types[28] #define SWIGTYPE_p_mfem__ElementTransformation swig_types[29] #define SWIGTYPE_p_mfem__ExtrudeCoefficient swig_types[30] #define SWIGTYPE_p_mfem__FaceElementTransformations swig_types[31] #define SWIGTYPE_p_mfem__FiniteElement swig_types[32] #define SWIGTYPE_p_mfem__FiniteElementSpace swig_types[33] #define SWIGTYPE_p_mfem__FunctionCoefficient swig_types[34] #define SWIGTYPE_p_mfem__GaussBiLinear2DFiniteElement swig_types[35] #define SWIGTYPE_p_mfem__GaussBiQuad2DFiniteElement swig_types[36] #define SWIGTYPE_p_mfem__GaussLinear2DFiniteElement swig_types[37] #define SWIGTYPE_p_mfem__GaussQuad2DFiniteElement swig_types[38] #define SWIGTYPE_p_mfem__GridFunction swig_types[39] #define SWIGTYPE_p_mfem__GridFunctionCoefficient swig_types[40] #define SWIGTYPE_p_mfem__H1Pos_HexahedronElement swig_types[41] #define SWIGTYPE_p_mfem__H1Pos_QuadrilateralElement swig_types[42] #define SWIGTYPE_p_mfem__H1Pos_SegmentElement swig_types[43] #define SWIGTYPE_p_mfem__H1Pos_TetrahedronElement swig_types[44] #define SWIGTYPE_p_mfem__H1Pos_TriangleElement swig_types[45] #define SWIGTYPE_p_mfem__H1Pos_WedgeElement swig_types[46] #define SWIGTYPE_p_mfem__H1Ser_QuadrilateralElement swig_types[47] #define SWIGTYPE_p_mfem__H1_HexahedronElement swig_types[48] #define SWIGTYPE_p_mfem__H1_QuadrilateralElement swig_types[49] #define SWIGTYPE_p_mfem__H1_SegmentElement swig_types[50] #define SWIGTYPE_p_mfem__H1_TetrahedronElement swig_types[51] #define SWIGTYPE_p_mfem__H1_TriangleElement swig_types[52] #define SWIGTYPE_p_mfem__H1_WedgeElement swig_types[53] #define SWIGTYPE_p_mfem__HyperelasticModel swig_types[54] #define SWIGTYPE_p_mfem__HyperelasticNLFIntegrator swig_types[55] #define SWIGTYPE_p_mfem__IncompressibleNeoHookeanIntegrator swig_types[56] #define SWIGTYPE_p_mfem__InnerProductCoefficient swig_types[57] #define SWIGTYPE_p_mfem__IntegrationRule swig_types[58] #define SWIGTYPE_p_mfem__InverseHarmonicModel swig_types[59] #define SWIGTYPE_p_mfem__IsoparametricTransformation swig_types[60] #define SWIGTYPE_p_mfem__L2Pos_HexahedronElement swig_types[61] #define SWIGTYPE_p_mfem__L2Pos_QuadrilateralElement swig_types[62] #define SWIGTYPE_p_mfem__L2Pos_SegmentElement swig_types[63] #define SWIGTYPE_p_mfem__L2Pos_TetrahedronElement swig_types[64] #define SWIGTYPE_p_mfem__L2Pos_TriangleElement swig_types[65] #define SWIGTYPE_p_mfem__L2Pos_WedgeElement swig_types[66] #define SWIGTYPE_p_mfem__L2_FECollection swig_types[67] #define SWIGTYPE_p_mfem__L2_HexahedronElement swig_types[68] #define SWIGTYPE_p_mfem__L2_QuadrilateralElement swig_types[69] #define SWIGTYPE_p_mfem__L2_SegmentElement swig_types[70] #define SWIGTYPE_p_mfem__L2_TetrahedronElement swig_types[71] #define SWIGTYPE_p_mfem__L2_TriangleElement swig_types[72] #define SWIGTYPE_p_mfem__L2_WedgeElement swig_types[73] #define SWIGTYPE_p_mfem__Lagrange1DFiniteElement swig_types[74] #define SWIGTYPE_p_mfem__LagrangeHexFiniteElement swig_types[75] #define SWIGTYPE_p_mfem__Linear1DFiniteElement swig_types[76] #define SWIGTYPE_p_mfem__Linear2DFiniteElement swig_types[77] #define SWIGTYPE_p_mfem__Linear3DFiniteElement swig_types[78] #define SWIGTYPE_p_mfem__LinearForm swig_types[79] #define SWIGTYPE_p_mfem__MatrixVectorProductCoefficient swig_types[80] #define SWIGTYPE_p_mfem__ND_HexahedronElement swig_types[81] #define SWIGTYPE_p_mfem__ND_QuadrilateralElement swig_types[82] #define SWIGTYPE_p_mfem__ND_SegmentElement swig_types[83] #define SWIGTYPE_p_mfem__ND_TetrahedronElement swig_types[84] #define SWIGTYPE_p_mfem__ND_TriangleElement swig_types[85] #define SWIGTYPE_p_mfem__NURBS1DFiniteElement swig_types[86] #define SWIGTYPE_p_mfem__NURBS2DFiniteElement swig_types[87] #define SWIGTYPE_p_mfem__NURBS3DFiniteElement swig_types[88] #define SWIGTYPE_p_mfem__NURBSFiniteElement swig_types[89] #define SWIGTYPE_p_mfem__Nedelec1HexFiniteElement swig_types[90] #define SWIGTYPE_p_mfem__Nedelec1TetFiniteElement swig_types[91] #define SWIGTYPE_p_mfem__NeoHookeanModel swig_types[92] #define SWIGTYPE_p_mfem__NodalFiniteElement swig_types[93] #define SWIGTYPE_p_mfem__NodalTensorFiniteElement swig_types[94] #define SWIGTYPE_p_mfem__NonlinearFormIntegrator swig_types[95] #define SWIGTYPE_p_mfem__OperatorHandle swig_types[96] #define SWIGTYPE_p_mfem__P0HexFiniteElement swig_types[97] #define SWIGTYPE_p_mfem__P0QuadFiniteElement swig_types[98] #define SWIGTYPE_p_mfem__P0SegmentFiniteElement swig_types[99] #define SWIGTYPE_p_mfem__P0TetFiniteElement swig_types[100] #define SWIGTYPE_p_mfem__P0TriangleFiniteElement swig_types[101] #define SWIGTYPE_p_mfem__P0WedgeFiniteElement swig_types[102] #define SWIGTYPE_p_mfem__P1OnQuadFiniteElement swig_types[103] #define SWIGTYPE_p_mfem__P1SegmentFiniteElement swig_types[104] #define SWIGTYPE_p_mfem__P1TetNonConfFiniteElement swig_types[105] #define SWIGTYPE_p_mfem__P2SegmentFiniteElement swig_types[106] #define SWIGTYPE_p_mfem__PWConstCoefficient swig_types[107] #define SWIGTYPE_p_mfem__PointFiniteElement swig_types[108] #define SWIGTYPE_p_mfem__PositiveFiniteElement swig_types[109] #define SWIGTYPE_p_mfem__PositiveTensorFiniteElement swig_types[110] #define SWIGTYPE_p_mfem__PowerCoefficient swig_types[111] #define SWIGTYPE_p_mfem__ProductCoefficient swig_types[112] #define SWIGTYPE_p_mfem__PyCoefficientBase swig_types[113] #define SWIGTYPE_p_mfem__Quad1DFiniteElement swig_types[114] #define SWIGTYPE_p_mfem__Quad2DFiniteElement swig_types[115] #define SWIGTYPE_p_mfem__QuadPos1DFiniteElement swig_types[116] #define SWIGTYPE_p_mfem__Quadratic3DFiniteElement swig_types[117] #define SWIGTYPE_p_mfem__QuadratureFunction swig_types[118] #define SWIGTYPE_p_mfem__QuadratureFunctionCoefficient swig_types[119] #define SWIGTYPE_p_mfem__RT0HexFiniteElement swig_types[120] #define SWIGTYPE_p_mfem__RT0QuadFiniteElement swig_types[121] #define SWIGTYPE_p_mfem__RT0TetFiniteElement swig_types[122] #define SWIGTYPE_p_mfem__RT0TriangleFiniteElement swig_types[123] #define SWIGTYPE_p_mfem__RT1HexFiniteElement swig_types[124] #define SWIGTYPE_p_mfem__RT1QuadFiniteElement swig_types[125] #define SWIGTYPE_p_mfem__RT1TriangleFiniteElement swig_types[126] #define SWIGTYPE_p_mfem__RT2QuadFiniteElement swig_types[127] #define SWIGTYPE_p_mfem__RT2TriangleFiniteElement swig_types[128] #define SWIGTYPE_p_mfem__RT_HexahedronElement swig_types[129] #define SWIGTYPE_p_mfem__RT_QuadrilateralElement swig_types[130] #define SWIGTYPE_p_mfem__RT_TetrahedronElement swig_types[131] #define SWIGTYPE_p_mfem__RT_TriangleElement swig_types[132] #define SWIGTYPE_p_mfem__RatioCoefficient swig_types[133] #define SWIGTYPE_p_mfem__RefinedBiLinear2DFiniteElement swig_types[134] #define SWIGTYPE_p_mfem__RefinedLinear1DFiniteElement swig_types[135] #define SWIGTYPE_p_mfem__RefinedLinear2DFiniteElement swig_types[136] #define SWIGTYPE_p_mfem__RefinedLinear3DFiniteElement swig_types[137] #define SWIGTYPE_p_mfem__RefinedTriLinear3DFiniteElement swig_types[138] #define SWIGTYPE_p_mfem__RestrictedCoefficient swig_types[139] #define SWIGTYPE_p_mfem__RotTriLinearHexFiniteElement swig_types[140] #define SWIGTYPE_p_mfem__ScalarFiniteElement swig_types[141] #define SWIGTYPE_p_mfem__SumCoefficient swig_types[142] #define SWIGTYPE_p_mfem__TransformedCoefficient swig_types[143] #define SWIGTYPE_p_mfem__TriLinear3DFiniteElement swig_types[144] #define SWIGTYPE_p_mfem__Vector swig_types[145] #define SWIGTYPE_p_mfem__VectorConvectionNLFIntegrator swig_types[146] #define SWIGTYPE_p_mfem__VectorFiniteElement swig_types[147] #define SWIGTYPE_p_mfem__VectorRotProductCoefficient swig_types[148] #define SWIGTYPE_p_mfem__VectorTensorFiniteElement swig_types[149] #define SWIGTYPE_p_pri_t swig_types[150] #define SWIGTYPE_p_quad_t swig_types[151] #define SWIGTYPE_p_seg_t swig_types[152] #define SWIGTYPE_p_tet_t swig_types[153] #define SWIGTYPE_p_tri_t swig_types[154] static swig_type_info *swig_types[156]; static swig_module_info swig_module = {swig_types, 155, 0, 0, 0, 0}; #define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name) #define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name) /* -------- TYPES TABLE (END) -------- */ #ifdef SWIG_TypeQuery # undef SWIG_TypeQuery #endif #define SWIG_TypeQuery SWIG_Python_TypeQuery /*----------------------------------------------- @(target):= _nonlininteg.so ------------------------------------------------*/ #if PY_VERSION_HEX >= 0x03000000 # define SWIG_init PyInit__nonlininteg #else # define SWIG_init init_nonlininteg #endif #define SWIG_name "_nonlininteg" #define SWIGVERSION 0x040002 #define SWIG_VERSION SWIGVERSION #define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a)) #define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a)) #include <stdexcept> namespace swig { class SwigPtr_PyObject { protected: PyObject *_obj; public: SwigPtr_PyObject() :_obj(0) { } SwigPtr_PyObject(const SwigPtr_PyObject& item) : _obj(item._obj) { SWIG_PYTHON_THREAD_BEGIN_BLOCK; Py_XINCREF(_obj); SWIG_PYTHON_THREAD_END_BLOCK; } SwigPtr_PyObject(PyObject *obj, bool initial_ref = true) :_obj(obj) { if (initial_ref) { SWIG_PYTHON_THREAD_BEGIN_BLOCK; Py_XINCREF(_obj); SWIG_PYTHON_THREAD_END_BLOCK; } } SwigPtr_PyObject & operator=(const SwigPtr_PyObject& item) { SWIG_PYTHON_THREAD_BEGIN_BLOCK; Py_XINCREF(item._obj); Py_XDECREF(_obj); _obj = item._obj; SWIG_PYTHON_THREAD_END_BLOCK; return *this; } ~SwigPtr_PyObject() { SWIG_PYTHON_THREAD_BEGIN_BLOCK; Py_XDECREF(_obj); SWIG_PYTHON_THREAD_END_BLOCK; } operator PyObject *() const { return _obj; } PyObject *operator->() const { return _obj; } }; } namespace swig { struct SwigVar_PyObject : SwigPtr_PyObject { SwigVar_PyObject(PyObject* obj = 0) : SwigPtr_PyObject(obj, false) { } SwigVar_PyObject & operator = (PyObject* obj) { Py_XDECREF(_obj); _obj = obj; return *this; } }; } #include "fem/nonlininteg.hpp" #include "fem/linearform.hpp" #include "pycoefficient.hpp" #include "pyoperator.hpp" SWIGINTERN int SWIG_AsVal_double (PyObject *obj, double *val) { int res = SWIG_TypeError; if (PyFloat_Check(obj)) { if (val) *val = PyFloat_AsDouble(obj); return SWIG_OK; #if PY_VERSION_HEX < 0x03000000 } else if (PyInt_Check(obj)) { if (val) *val = (double) PyInt_AsLong(obj); return SWIG_OK; #endif } else if (PyLong_Check(obj)) { double v = PyLong_AsDouble(obj); if (!PyErr_Occurred()) { if (val) *val = v; return SWIG_OK; } else { PyErr_Clear(); } } #ifdef SWIG_PYTHON_CAST_MODE { int dispatch = 0; double d = PyFloat_AsDouble(obj); if (!PyErr_Occurred()) { if (val) *val = d; return SWIG_AddCast(SWIG_OK); } else { PyErr_Clear(); } if (!dispatch) { long v = PyLong_AsLong(obj); if (!PyErr_Occurred()) { if (val) *val = v; return SWIG_AddCast(SWIG_AddCast(SWIG_OK)); } else { PyErr_Clear(); } } } #endif return res; } #define SWIG_From_double PyFloat_FromDouble /* --------------------------------------------------- * C++ director class methods * --------------------------------------------------- */ #include "nonlininteg_wrap.h" SwigDirector_NonlinearFormIntegrator::SwigDirector_NonlinearFormIntegrator(PyObject *self, mfem::IntegrationRule const *ir): mfem::NonlinearFormIntegrator(ir), Swig::Director(self) { SWIG_DIRECTOR_RGTR((mfem::NonlinearFormIntegrator *)this, this); } void SwigDirector_NonlinearFormIntegrator::AssembleElementVector(mfem::FiniteElement const &el, mfem::ElementTransformation &Tr, mfem::Vector const &elfun, mfem::Vector &elvect) { swig::SwigVar_PyObject obj0; obj0 = SWIG_NewPointerObj(SWIG_as_voidptr(&el), SWIGTYPE_p_mfem__FiniteElement, 0 ); swig::SwigVar_PyObject obj1; obj1 = SWIG_NewPointerObj(SWIG_as_voidptr(&Tr), SWIGTYPE_p_mfem__ElementTransformation, 0 ); swig::SwigVar_PyObject obj2; obj2 = SWIG_NewPointerObj(SWIG_as_voidptr(&elfun), SWIGTYPE_p_mfem__Vector, 0 ); swig::SwigVar_PyObject obj3; obj3 = SWIG_NewPointerObj(SWIG_as_voidptr(&elvect), SWIGTYPE_p_mfem__Vector, 0 ); if (!swig_get_self()) { Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call NonlinearFormIntegrator.__init__."); } #if defined(SWIG_PYTHON_DIRECTOR_VTABLE) const size_t swig_method_index = 0; const char *const swig_method_name = "AssembleElementVector"; PyObject *method = swig_get_method(swig_method_index, swig_method_name); swig::SwigVar_PyObject result = PyObject_CallFunctionObjArgs(method ,(PyObject *)obj0,(PyObject *)obj1,(PyObject *)obj2,(PyObject *)obj3, NULL); #else swig::SwigVar_PyObject swig_method_name = SWIG_Python_str_FromChar("AssembleElementVector"); swig::SwigVar_PyObject result = PyObject_CallMethodObjArgs(swig_get_self(), (PyObject *) swig_method_name ,(PyObject *)obj0,(PyObject *)obj1,(PyObject *)obj2,(PyObject *)obj3, NULL); #endif if (!result) { PyObject *error = PyErr_Occurred(); { if (error != NULL) { throw Swig::DirectorMethodException(); } } } } void SwigDirector_NonlinearFormIntegrator::AssembleFaceVector(mfem::FiniteElement const &el1, mfem::FiniteElement const &el2, mfem::FaceElementTransformations &Tr, mfem::Vector const &elfun, mfem::Vector &elvect) { swig::SwigVar_PyObject obj0; obj0 = SWIG_NewPointerObj(SWIG_as_voidptr(&el1), SWIGTYPE_p_mfem__FiniteElement, 0 ); swig::SwigVar_PyObject obj1; obj1 = SWIG_NewPointerObj(SWIG_as_voidptr(&el2), SWIGTYPE_p_mfem__FiniteElement, 0 ); swig::SwigVar_PyObject obj2; obj2 = SWIG_NewPointerObj(SWIG_as_voidptr(&Tr), SWIGTYPE_p_mfem__FaceElementTransformations, 0 ); swig::SwigVar_PyObject obj3; obj3 = SWIG_NewPointerObj(SWIG_as_voidptr(&elfun), SWIGTYPE_p_mfem__Vector, 0 ); swig::SwigVar_PyObject obj4; obj4 = SWIG_NewPointerObj(SWIG_as_voidptr(&elvect), SWIGTYPE_p_mfem__Vector, 0 ); if (!swig_get_self()) { Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call NonlinearFormIntegrator.__init__."); } #if defined(SWIG_PYTHON_DIRECTOR_VTABLE) const size_t swig_method_index = 1; const char *const swig_method_name = "AssembleFaceVector"; PyObject *method = swig_get_method(swig_method_index, swig_method_name); swig::SwigVar_PyObject result = PyObject_CallFunctionObjArgs(method ,(PyObject *)obj0,(PyObject *)obj1,(PyObject *)obj2,(PyObject *)obj3,(PyObject *)obj4, NULL); #else swig::SwigVar_PyObject swig_method_name = SWIG_Python_str_FromChar("AssembleFaceVector"); swig::SwigVar_PyObject result = PyObject_CallMethodObjArgs(swig_get_self(), (PyObject *) swig_method_name ,(PyObject *)obj0,(PyObject *)obj1,(PyObject *)obj2,(PyObject *)obj3,(PyObject *)obj4, NULL); #endif if (!result) { PyObject *error = PyErr_Occurred(); { if (error != NULL) { throw Swig::DirectorMethodException(); } } } } void SwigDirector_NonlinearFormIntegrator::AssembleElementGrad(mfem::FiniteElement const &el, mfem::ElementTransformation &Tr, mfem::Vector const &elfun, mfem::DenseMatrix &elmat) { swig::SwigVar_PyObject obj0; obj0 = SWIG_NewPointerObj(SWIG_as_voidptr(&el), SWIGTYPE_p_mfem__FiniteElement, 0 ); swig::SwigVar_PyObject obj1; obj1 = SWIG_NewPointerObj(SWIG_as_voidptr(&Tr), SWIGTYPE_p_mfem__ElementTransformation, 0 ); swig::SwigVar_PyObject obj2; obj2 = SWIG_NewPointerObj(SWIG_as_voidptr(&elfun), SWIGTYPE_p_mfem__Vector, 0 ); swig::SwigVar_PyObject obj3; obj3 = SWIG_NewPointerObj(SWIG_as_voidptr(&elmat), SWIGTYPE_p_mfem__DenseMatrix, 0 ); if (!swig_get_self()) { Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call NonlinearFormIntegrator.__init__."); } #if defined(SWIG_PYTHON_DIRECTOR_VTABLE) const size_t swig_method_index = 2; const char *const swig_method_name = "AssembleElementGrad"; PyObject *method = swig_get_method(swig_method_index, swig_method_name); swig::SwigVar_PyObject result = PyObject_CallFunctionObjArgs(method ,(PyObject *)obj0,(PyObject *)obj1,(PyObject *)obj2,(PyObject *)obj3, NULL); #else swig::SwigVar_PyObject swig_method_name = SWIG_Python_str_FromChar("AssembleElementGrad"); swig::SwigVar_PyObject result = PyObject_CallMethodObjArgs(swig_get_self(), (PyObject *) swig_method_name ,(PyObject *)obj0,(PyObject *)obj1,(PyObject *)obj2,(PyObject *)obj3, NULL); #endif if (!result) { PyObject *error = PyErr_Occurred(); { if (error != NULL) { throw Swig::DirectorMethodException(); } } } } void SwigDirector_NonlinearFormIntegrator::AssembleFaceGrad(mfem::FiniteElement const &el1, mfem::FiniteElement const &el2, mfem::FaceElementTransformations &Tr, mfem::Vector const &elfun, mfem::DenseMatrix &elmat) { swig::SwigVar_PyObject obj0; obj0 = SWIG_NewPointerObj(SWIG_as_voidptr(&el1), SWIGTYPE_p_mfem__FiniteElement, 0 ); swig::SwigVar_PyObject obj1; obj1 = SWIG_NewPointerObj(SWIG_as_voidptr(&el2), SWIGTYPE_p_mfem__FiniteElement, 0 ); swig::SwigVar_PyObject obj2; obj2 = SWIG_NewPointerObj(SWIG_as_voidptr(&Tr), SWIGTYPE_p_mfem__FaceElementTransformations, 0 ); swig::SwigVar_PyObject obj3; obj3 = SWIG_NewPointerObj(SWIG_as_voidptr(&elfun), SWIGTYPE_p_mfem__Vector, 0 ); swig::SwigVar_PyObject obj4; obj4 = SWIG_NewPointerObj(SWIG_as_voidptr(&elmat), SWIGTYPE_p_mfem__DenseMatrix, 0 ); if (!swig_get_self()) { Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call NonlinearFormIntegrator.__init__."); } #if defined(SWIG_PYTHON_DIRECTOR_VTABLE) const size_t swig_method_index = 3; const char *const swig_method_name = "AssembleFaceGrad"; PyObject *method = swig_get_method(swig_method_index, swig_method_name); swig::SwigVar_PyObject result = PyObject_CallFunctionObjArgs(method ,(PyObject *)obj0,(PyObject *)obj1,(PyObject *)obj2,(PyObject *)obj3,(PyObject *)obj4, NULL); #else swig::SwigVar_PyObject swig_method_name = SWIG_Python_str_FromChar("AssembleFaceGrad"); swig::SwigVar_PyObject result = PyObject_CallMethodObjArgs(swig_get_self(), (PyObject *) swig_method_name ,(PyObject *)obj0,(PyObject *)obj1,(PyObject *)obj2,(PyObject *)obj3,(PyObject *)obj4, NULL); #endif if (!result) { PyObject *error = PyErr_Occurred(); { if (error != NULL) { throw Swig::DirectorMethodException(); } } } } double SwigDirector_NonlinearFormIntegrator::GetElementEnergy(mfem::FiniteElement const &el, mfem::ElementTransformation &Tr, mfem::Vector const &elfun) { double c_result = SwigValueInit< double >() ; swig::SwigVar_PyObject obj0; obj0 = SWIG_NewPointerObj(SWIG_as_voidptr(&el), SWIGTYPE_p_mfem__FiniteElement, 0 ); swig::SwigVar_PyObject obj1; obj1 = SWIG_NewPointerObj(SWIG_as_voidptr(&Tr), SWIGTYPE_p_mfem__ElementTransformation, 0 ); swig::SwigVar_PyObject obj2; obj2 = SWIG_NewPointerObj(SWIG_as_voidptr(&elfun), SWIGTYPE_p_mfem__Vector, 0 ); if (!swig_get_self()) { Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call NonlinearFormIntegrator.__init__."); } #if defined(SWIG_PYTHON_DIRECTOR_VTABLE) const size_t swig_method_index = 4; const char *const swig_method_name = "GetElementEnergy"; PyObject *method = swig_get_method(swig_method_index, swig_method_name); swig::SwigVar_PyObject result = PyObject_CallFunctionObjArgs(method ,(PyObject *)obj0,(PyObject *)obj1,(PyObject *)obj2, NULL); #else swig::SwigVar_PyObject swig_method_name = SWIG_Python_str_FromChar("GetElementEnergy"); swig::SwigVar_PyObject result = PyObject_CallMethodObjArgs(swig_get_self(), (PyObject *) swig_method_name ,(PyObject *)obj0,(PyObject *)obj1,(PyObject *)obj2, NULL); #endif if (!result) { PyObject *error = PyErr_Occurred(); { if (error != NULL) { throw Swig::DirectorMethodException(); } } } double swig_val; int swig_res = SWIG_AsVal_double(result, &swig_val); if (!SWIG_IsOK(swig_res)) { Swig::DirectorTypeMismatchException::raise(SWIG_ErrorType(SWIG_ArgError(swig_res)), "in output value of type '""double""'"); } c_result = static_cast< double >(swig_val); return (double) c_result; } void SwigDirector_NonlinearFormIntegrator::AssemblePA(mfem::FiniteElementSpace const &fes) { swig::SwigVar_PyObject obj0; obj0 = SWIG_NewPointerObj(SWIG_as_voidptr(&fes), SWIGTYPE_p_mfem__FiniteElementSpace, 0 ); if (!swig_get_self()) { Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call NonlinearFormIntegrator.__init__."); } #if defined(SWIG_PYTHON_DIRECTOR_VTABLE) const size_t swig_method_index = 5; const char *const swig_method_name = "AssemblePA"; PyObject *method = swig_get_method(swig_method_index, swig_method_name); swig::SwigVar_PyObject result = PyObject_CallFunctionObjArgs(method ,(PyObject *)obj0, NULL); #else swig::SwigVar_PyObject swig_method_name = SWIG_Python_str_FromChar("AssemblePA"); swig::SwigVar_PyObject result = PyObject_CallMethodObjArgs(swig_get_self(), (PyObject *) swig_method_name ,(PyObject *)obj0, NULL); #endif if (!result) { PyObject *error = PyErr_Occurred(); { if (error != NULL) { throw Swig::DirectorMethodException(); } } } } void SwigDirector_NonlinearFormIntegrator::AssemblePA(mfem::FiniteElementSpace const &trial_fes, mfem::FiniteElementSpace const &test_fes) { swig::SwigVar_PyObject obj0; obj0 = SWIG_NewPointerObj(SWIG_as_voidptr(&trial_fes), SWIGTYPE_p_mfem__FiniteElementSpace, 0 ); swig::SwigVar_PyObject obj1; obj1 = SWIG_NewPointerObj(SWIG_as_voidptr(&test_fes), SWIGTYPE_p_mfem__FiniteElementSpace, 0 ); if (!swig_get_self()) { Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call NonlinearFormIntegrator.__init__."); } #if defined(SWIG_PYTHON_DIRECTOR_VTABLE) const size_t swig_method_index = 6; const char *const swig_method_name = "AssemblePA"; PyObject *method = swig_get_method(swig_method_index, swig_method_name); swig::SwigVar_PyObject result = PyObject_CallFunctionObjArgs(method ,(PyObject *)obj0,(PyObject *)obj1, NULL); #else swig::SwigVar_PyObject swig_method_name = SWIG_Python_str_FromChar("AssemblePA"); swig::SwigVar_PyObject result = PyObject_CallMethodObjArgs(swig_get_self(), (PyObject *) swig_method_name ,(PyObject *)obj0,(PyObject *)obj1, NULL); #endif if (!result) { PyObject *error = PyErr_Occurred(); { if (error != NULL) { throw Swig::DirectorMethodException(); } } } } void SwigDirector_NonlinearFormIntegrator::AddMultPA(mfem::Vector const &x, mfem::Vector &y) const { swig::SwigVar_PyObject obj0; obj0 = SWIG_NewPointerObj(SWIG_as_voidptr(&x), SWIGTYPE_p_mfem__Vector, 0 ); swig::SwigVar_PyObject obj1; obj1 = SWIG_NewPointerObj(SWIG_as_voidptr(&y), SWIGTYPE_p_mfem__Vector, 0 ); if (!swig_get_self()) { Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call NonlinearFormIntegrator.__init__."); } #if defined(SWIG_PYTHON_DIRECTOR_VTABLE) const size_t swig_method_index = 7; const char *const swig_method_name = "AddMultPA"; PyObject *method = swig_get_method(swig_method_index, swig_method_name); swig::SwigVar_PyObject result = PyObject_CallFunctionObjArgs(method ,(PyObject *)obj0,(PyObject *)obj1, NULL); #else swig::SwigVar_PyObject swig_method_name = SWIG_Python_str_FromChar("AddMultPA"); swig::SwigVar_PyObject result = PyObject_CallMethodObjArgs(swig_get_self(), (PyObject *) swig_method_name ,(PyObject *)obj0,(PyObject *)obj1, NULL); #endif if (!result) { PyObject *error = PyErr_Occurred(); { if (error != NULL) { throw Swig::DirectorMethodException(); } } } } SwigDirector_NonlinearFormIntegrator::~SwigDirector_NonlinearFormIntegrator() { } #ifdef __cplusplus extern "C" { #endif SWIGINTERN PyObject *_wrap_new_NonlinearFormIntegrator(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { PyObject *resultobj = 0; PyObject *arg1 = (PyObject *) 0 ; mfem::IntegrationRule *arg2 = (mfem::IntegrationRule *) NULL ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; char * kwnames[] = { (char *)"_self", (char *)"ir", NULL }; mfem::NonlinearFormIntegrator *result = 0 ; if (!PyArg_ParseTupleAndKeywords(args, kwargs, "O|O:new_NonlinearFormIntegrator", kwnames, &obj0, &obj1)) SWIG_fail; arg1 = obj0; if (obj1) { res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_mfem__IntegrationRule, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_NonlinearFormIntegrator" "', argument " "2"" of type '" "mfem::IntegrationRule const *""'"); } arg2 = reinterpret_cast< mfem::IntegrationRule * >(argp2); } { try { if ( arg1 != Py_None ) { /* subclassed */ result = (mfem::NonlinearFormIntegrator *)new SwigDirector_NonlinearFormIntegrator(arg1,(mfem::IntegrationRule const *)arg2); } else { SWIG_SetErrorMsg(PyExc_RuntimeError,"accessing abstract class or protected constructor"); SWIG_fail; } } #ifdef MFEM_USE_EXCEPTIONS catch (mfem::ErrorException &_e) { std::string s("PyMFEM error (mfem::ErrorException): "), s2(_e.what()); s = s + s2; SWIG_exception(SWIG_RuntimeError, s.c_str()); } #endif catch (Swig::DirectorException &e){ SWIG_fail; } catch (...) { SWIG_exception(SWIG_RuntimeError, "unknown exception"); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_mfem__NonlinearFormIntegrator, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_NonlinearFormIntegrator_SetIntRule(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { PyObject *resultobj = 0; mfem::NonlinearFormIntegrator *arg1 = (mfem::NonlinearFormIntegrator *) 0 ; mfem::IntegrationRule *arg2 = (mfem::IntegrationRule *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; char * kwnames[] = { (char *)"self", (char *)"ir", NULL }; if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OO:NonlinearFormIntegrator_SetIntRule", kwnames, &obj0, &obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_mfem__NonlinearFormIntegrator, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NonlinearFormIntegrator_SetIntRule" "', argument " "1"" of type '" "mfem::NonlinearFormIntegrator *""'"); } arg1 = reinterpret_cast< mfem::NonlinearFormIntegrator * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_mfem__IntegrationRule, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NonlinearFormIntegrator_SetIntRule" "', argument " "2"" of type '" "mfem::IntegrationRule const *""'"); } arg2 = reinterpret_cast< mfem::IntegrationRule * >(argp2); { try { (arg1)->SetIntRule((mfem::IntegrationRule const *)arg2); } #ifdef MFEM_USE_EXCEPTIONS catch (mfem::ErrorException &_e) { std::string s("PyMFEM error (mfem::ErrorException): "), s2(_e.what()); s = s + s2; SWIG_exception(SWIG_RuntimeError, s.c_str()); } #endif catch (Swig::DirectorException &e){ SWIG_fail; } catch (...) { SWIG_exception(SWIG_RuntimeError, "unknown exception"); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_NonlinearFormIntegrator_SetIntegrationRule(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { PyObject *resultobj = 0; mfem::NonlinearFormIntegrator *arg1 = (mfem::NonlinearFormIntegrator *) 0 ; mfem::IntegrationRule *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; char * kwnames[] = { (char *)"self", (char *)"irule", NULL }; if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OO:NonlinearFormIntegrator_SetIntegrationRule", kwnames, &obj0, &obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_mfem__NonlinearFormIntegrator, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NonlinearFormIntegrator_SetIntegrationRule" "', argument " "1"" of type '" "mfem::NonlinearFormIntegrator *""'"); } arg1 = reinterpret_cast< mfem::NonlinearFormIntegrator * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_mfem__IntegrationRule, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NonlinearFormIntegrator_SetIntegrationRule" "', argument " "2"" of type '" "mfem::IntegrationRule const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NonlinearFormIntegrator_SetIntegrationRule" "', argument " "2"" of type '" "mfem::IntegrationRule const &""'"); } arg2 = reinterpret_cast< mfem::IntegrationRule * >(argp2); { try { (arg1)->SetIntegrationRule((mfem::IntegrationRule const &)*arg2); } #ifdef MFEM_USE_EXCEPTIONS catch (mfem::ErrorException &_e) { std::string s("PyMFEM error (mfem::ErrorException): "), s2(_e.what()); s = s + s2; SWIG_exception(SWIG_RuntimeError, s.c_str()); } #endif catch (Swig::DirectorException &e){ SWIG_fail; } catch (...) { SWIG_exception(SWIG_RuntimeError, "unknown exception"); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_NonlinearFormIntegrator_AssembleElementVector(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { PyObject *resultobj = 0; mfem::NonlinearFormIntegrator *arg1 = (mfem::NonlinearFormIntegrator *) 0 ; mfem::FiniteElement *arg2 = 0 ; mfem::ElementTransformation *arg3 = 0 ; mfem::Vector *arg4 = 0 ; mfem::Vector *arg5 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; void *argp5 = 0 ; int res5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; char * kwnames[] = { (char *)"self", (char *)"el", (char *)"Tr", (char *)"elfun", (char *)"elvect", NULL }; Swig::Director *director = 0; bool upcall = false; if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOOOO:NonlinearFormIntegrator_AssembleElementVector", kwnames, &obj0, &obj1, &obj2, &obj3, &obj4)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_mfem__NonlinearFormIntegrator, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NonlinearFormIntegrator_AssembleElementVector" "', argument " "1"" of type '" "mfem::NonlinearFormIntegrator *""'"); } arg1 = reinterpret_cast< mfem::NonlinearFormIntegrator * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_mfem__FiniteElement, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NonlinearFormIntegrator_AssembleElementVector" "', argument " "2"" of type '" "mfem::FiniteElement const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NonlinearFormIntegrator_AssembleElementVector" "', argument " "2"" of type '" "mfem::FiniteElement const &""'"); } arg2 = reinterpret_cast< mfem::FiniteElement * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_mfem__ElementTransformation, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "NonlinearFormIntegrator_AssembleElementVector" "', argument " "3"" of type '" "mfem::ElementTransformation &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NonlinearFormIntegrator_AssembleElementVector" "', argument " "3"" of type '" "mfem::ElementTransformation &""'"); } arg3 = reinterpret_cast< mfem::ElementTransformation * >(argp3); res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_mfem__Vector, 0 | 0); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "NonlinearFormIntegrator_AssembleElementVector" "', argument " "4"" of type '" "mfem::Vector const &""'"); } if (!argp4) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NonlinearFormIntegrator_AssembleElementVector" "', argument " "4"" of type '" "mfem::Vector const &""'"); } arg4 = reinterpret_cast< mfem::Vector * >(argp4); res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_mfem__Vector, 0 ); if (!SWIG_IsOK(res5)) { SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "NonlinearFormIntegrator_AssembleElementVector" "', argument " "5"" of type '" "mfem::Vector &""'"); } if (!argp5) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NonlinearFormIntegrator_AssembleElementVector" "', argument " "5"" of type '" "mfem::Vector &""'"); } arg5 = reinterpret_cast< mfem::Vector * >(argp5); director = SWIG_DIRECTOR_CAST(arg1); upcall = (director && (director->swig_get_self()==obj0)); try { { try { if (upcall) { (arg1)->mfem::NonlinearFormIntegrator::AssembleElementVector((mfem::FiniteElement const &)*arg2,*arg3,(mfem::Vector const &)*arg4,*arg5); } else { (arg1)->AssembleElementVector((mfem::FiniteElement const &)*arg2,*arg3,(mfem::Vector const &)*arg4,*arg5); } } #ifdef MFEM_USE_EXCEPTIONS catch (mfem::ErrorException &_e) { std::string s("PyMFEM error (mfem::ErrorException): "), s2(_e.what()); s = s + s2; SWIG_exception(SWIG_RuntimeError, s.c_str()); } #endif catch (Swig::DirectorException &e){ SWIG_fail; } catch (...) { SWIG_exception(SWIG_RuntimeError, "unknown exception"); } } } catch (Swig::DirectorException&) { SWIG_fail; } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_NonlinearFormIntegrator_AssembleFaceVector(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { PyObject *resultobj = 0; mfem::NonlinearFormIntegrator *arg1 = (mfem::NonlinearFormIntegrator *) 0 ; mfem::FiniteElement *arg2 = 0 ; mfem::FiniteElement *arg3 = 0 ; mfem::FaceElementTransformations *arg4 = 0 ; mfem::Vector *arg5 = 0 ; mfem::Vector *arg6 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; void *argp5 = 0 ; int res5 = 0 ; void *argp6 = 0 ; int res6 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; char * kwnames[] = { (char *)"self", (char *)"el1", (char *)"el2", (char *)"Tr", (char *)"elfun", (char *)"elvect", NULL }; Swig::Director *director = 0; bool upcall = false; if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOOOOO:NonlinearFormIntegrator_AssembleFaceVector", kwnames, &obj0, &obj1, &obj2, &obj3, &obj4, &obj5)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_mfem__NonlinearFormIntegrator, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NonlinearFormIntegrator_AssembleFaceVector" "', argument " "1"" of type '" "mfem::NonlinearFormIntegrator *""'"); } arg1 = reinterpret_cast< mfem::NonlinearFormIntegrator * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_mfem__FiniteElement, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NonlinearFormIntegrator_AssembleFaceVector" "', argument " "2"" of type '" "mfem::FiniteElement const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NonlinearFormIntegrator_AssembleFaceVector" "', argument " "2"" of type '" "mfem::FiniteElement const &""'"); } arg2 = reinterpret_cast< mfem::FiniteElement * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_mfem__FiniteElement, 0 | 0); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "NonlinearFormIntegrator_AssembleFaceVector" "', argument " "3"" of type '" "mfem::FiniteElement const &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NonlinearFormIntegrator_AssembleFaceVector" "', argument " "3"" of type '" "mfem::FiniteElement const &""'"); } arg3 = reinterpret_cast< mfem::FiniteElement * >(argp3); res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_mfem__FaceElementTransformations, 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "NonlinearFormIntegrator_AssembleFaceVector" "', argument " "4"" of type '" "mfem::FaceElementTransformations &""'"); } if (!argp4) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NonlinearFormIntegrator_AssembleFaceVector" "', argument " "4"" of type '" "mfem::FaceElementTransformations &""'"); } arg4 = reinterpret_cast< mfem::FaceElementTransformations * >(argp4); res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_mfem__Vector, 0 | 0); if (!SWIG_IsOK(res5)) { SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "NonlinearFormIntegrator_AssembleFaceVector" "', argument " "5"" of type '" "mfem::Vector const &""'"); } if (!argp5) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NonlinearFormIntegrator_AssembleFaceVector" "', argument " "5"" of type '" "mfem::Vector const &""'"); } arg5 = reinterpret_cast< mfem::Vector * >(argp5); res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_mfem__Vector, 0 ); if (!SWIG_IsOK(res6)) { SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "NonlinearFormIntegrator_AssembleFaceVector" "', argument " "6"" of type '" "mfem::Vector &""'"); } if (!argp6) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NonlinearFormIntegrator_AssembleFaceVector" "', argument " "6"" of type '" "mfem::Vector &""'"); } arg6 = reinterpret_cast< mfem::Vector * >(argp6); director = SWIG_DIRECTOR_CAST(arg1); upcall = (director && (director->swig_get_self()==obj0)); try { { try { if (upcall) { (arg1)->mfem::NonlinearFormIntegrator::AssembleFaceVector((mfem::FiniteElement const &)*arg2,(mfem::FiniteElement const &)*arg3,*arg4,(mfem::Vector const &)*arg5,*arg6); } else { (arg1)->AssembleFaceVector((mfem::FiniteElement const &)*arg2,(mfem::FiniteElement const &)*arg3,*arg4,(mfem::Vector const &)*arg5,*arg6); } } #ifdef MFEM_USE_EXCEPTIONS catch (mfem::ErrorException &_e) { std::string s("PyMFEM error (mfem::ErrorException): "), s2(_e.what()); s = s + s2; SWIG_exception(SWIG_RuntimeError, s.c_str()); } #endif catch (Swig::DirectorException &e){ SWIG_fail; } catch (...) { SWIG_exception(SWIG_RuntimeError, "unknown exception"); } } } catch (Swig::DirectorException&) { SWIG_fail; } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_NonlinearFormIntegrator_AssembleElementGrad(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { PyObject *resultobj = 0; mfem::NonlinearFormIntegrator *arg1 = (mfem::NonlinearFormIntegrator *) 0 ; mfem::FiniteElement *arg2 = 0 ; mfem::ElementTransformation *arg3 = 0 ; mfem::Vector *arg4 = 0 ; mfem::DenseMatrix *arg5 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; void *argp5 = 0 ; int res5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; char * kwnames[] = { (char *)"self", (char *)"el", (char *)"Tr", (char *)"elfun", (char *)"elmat", NULL }; Swig::Director *director = 0; bool upcall = false; if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOOOO:NonlinearFormIntegrator_AssembleElementGrad", kwnames, &obj0, &obj1, &obj2, &obj3, &obj4)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_mfem__NonlinearFormIntegrator, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NonlinearFormIntegrator_AssembleElementGrad" "', argument " "1"" of type '" "mfem::NonlinearFormIntegrator *""'"); } arg1 = reinterpret_cast< mfem::NonlinearFormIntegrator * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_mfem__FiniteElement, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NonlinearFormIntegrator_AssembleElementGrad" "', argument " "2"" of type '" "mfem::FiniteElement const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NonlinearFormIntegrator_AssembleElementGrad" "', argument " "2"" of type '" "mfem::FiniteElement const &""'"); } arg2 = reinterpret_cast< mfem::FiniteElement * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_mfem__ElementTransformation, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "NonlinearFormIntegrator_AssembleElementGrad" "', argument " "3"" of type '" "mfem::ElementTransformation &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NonlinearFormIntegrator_AssembleElementGrad" "', argument " "3"" of type '" "mfem::ElementTransformation &""'"); } arg3 = reinterpret_cast< mfem::ElementTransformation * >(argp3); res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_mfem__Vector, 0 | 0); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "NonlinearFormIntegrator_AssembleElementGrad" "', argument " "4"" of type '" "mfem::Vector const &""'"); } if (!argp4) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NonlinearFormIntegrator_AssembleElementGrad" "', argument " "4"" of type '" "mfem::Vector const &""'"); } arg4 = reinterpret_cast< mfem::Vector * >(argp4); res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_mfem__DenseMatrix, 0 ); if (!SWIG_IsOK(res5)) { SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "NonlinearFormIntegrator_AssembleElementGrad" "', argument " "5"" of type '" "mfem::DenseMatrix &""'"); } if (!argp5) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NonlinearFormIntegrator_AssembleElementGrad" "', argument " "5"" of type '" "mfem::DenseMatrix &""'"); } arg5 = reinterpret_cast< mfem::DenseMatrix * >(argp5); director = SWIG_DIRECTOR_CAST(arg1); upcall = (director && (director->swig_get_self()==obj0)); try { { try { if (upcall) { (arg1)->mfem::NonlinearFormIntegrator::AssembleElementGrad((mfem::FiniteElement const &)*arg2,*arg3,(mfem::Vector const &)*arg4,*arg5); } else { (arg1)->AssembleElementGrad((mfem::FiniteElement const &)*arg2,*arg3,(mfem::Vector const &)*arg4,*arg5); } } #ifdef MFEM_USE_EXCEPTIONS catch (mfem::ErrorException &_e) { std::string s("PyMFEM error (mfem::ErrorException): "), s2(_e.what()); s = s + s2; SWIG_exception(SWIG_RuntimeError, s.c_str()); } #endif catch (Swig::DirectorException &e){ SWIG_fail; } catch (...) { SWIG_exception(SWIG_RuntimeError, "unknown exception"); } } } catch (Swig::DirectorException&) { SWIG_fail; } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_NonlinearFormIntegrator_AssembleFaceGrad(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { PyObject *resultobj = 0; mfem::NonlinearFormIntegrator *arg1 = (mfem::NonlinearFormIntegrator *) 0 ; mfem::FiniteElement *arg2 = 0 ; mfem::FiniteElement *arg3 = 0 ; mfem::FaceElementTransformations *arg4 = 0 ; mfem::Vector *arg5 = 0 ; mfem::DenseMatrix *arg6 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; void *argp5 = 0 ; int res5 = 0 ; void *argp6 = 0 ; int res6 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; char * kwnames[] = { (char *)"self", (char *)"el1", (char *)"el2", (char *)"Tr", (char *)"elfun", (char *)"elmat", NULL }; Swig::Director *director = 0; bool upcall = false; if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOOOOO:NonlinearFormIntegrator_AssembleFaceGrad", kwnames, &obj0, &obj1, &obj2, &obj3, &obj4, &obj5)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_mfem__NonlinearFormIntegrator, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NonlinearFormIntegrator_AssembleFaceGrad" "', argument " "1"" of type '" "mfem::NonlinearFormIntegrator *""'"); } arg1 = reinterpret_cast< mfem::NonlinearFormIntegrator * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_mfem__FiniteElement, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NonlinearFormIntegrator_AssembleFaceGrad" "', argument " "2"" of type '" "mfem::FiniteElement const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NonlinearFormIntegrator_AssembleFaceGrad" "', argument " "2"" of type '" "mfem::FiniteElement const &""'"); } arg2 = reinterpret_cast< mfem::FiniteElement * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_mfem__FiniteElement, 0 | 0); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "NonlinearFormIntegrator_AssembleFaceGrad" "', argument " "3"" of type '" "mfem::FiniteElement const &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NonlinearFormIntegrator_AssembleFaceGrad" "', argument " "3"" of type '" "mfem::FiniteElement const &""'"); } arg3 = reinterpret_cast< mfem::FiniteElement * >(argp3); res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_mfem__FaceElementTransformations, 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "NonlinearFormIntegrator_AssembleFaceGrad" "', argument " "4"" of type '" "mfem::FaceElementTransformations &""'"); } if (!argp4) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NonlinearFormIntegrator_AssembleFaceGrad" "', argument " "4"" of type '" "mfem::FaceElementTransformations &""'"); } arg4 = reinterpret_cast< mfem::FaceElementTransformations * >(argp4); res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_mfem__Vector, 0 | 0); if (!SWIG_IsOK(res5)) { SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "NonlinearFormIntegrator_AssembleFaceGrad" "', argument " "5"" of type '" "mfem::Vector const &""'"); } if (!argp5) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NonlinearFormIntegrator_AssembleFaceGrad" "', argument " "5"" of type '" "mfem::Vector const &""'"); } arg5 = reinterpret_cast< mfem::Vector * >(argp5); res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_mfem__DenseMatrix, 0 ); if (!SWIG_IsOK(res6)) { SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "NonlinearFormIntegrator_AssembleFaceGrad" "', argument " "6"" of type '" "mfem::DenseMatrix &""'"); } if (!argp6) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NonlinearFormIntegrator_AssembleFaceGrad" "', argument " "6"" of type '" "mfem::DenseMatrix &""'"); } arg6 = reinterpret_cast< mfem::DenseMatrix * >(argp6); director = SWIG_DIRECTOR_CAST(arg1); upcall = (director && (director->swig_get_self()==obj0)); try { { try { if (upcall) { (arg1)->mfem::NonlinearFormIntegrator::AssembleFaceGrad((mfem::FiniteElement const &)*arg2,(mfem::FiniteElement const &)*arg3,*arg4,(mfem::Vector const &)*arg5,*arg6); } else { (arg1)->AssembleFaceGrad((mfem::FiniteElement const &)*arg2,(mfem::FiniteElement const &)*arg3,*arg4,(mfem::Vector const &)*arg5,*arg6); } } #ifdef MFEM_USE_EXCEPTIONS catch (mfem::ErrorException &_e) { std::string s("PyMFEM error (mfem::ErrorException): "), s2(_e.what()); s = s + s2; SWIG_exception(SWIG_RuntimeError, s.c_str()); } #endif catch (Swig::DirectorException &e){ SWIG_fail; } catch (...) { SWIG_exception(SWIG_RuntimeError, "unknown exception"); } } } catch (Swig::DirectorException&) { SWIG_fail; } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_NonlinearFormIntegrator_GetElementEnergy(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { PyObject *resultobj = 0; mfem::NonlinearFormIntegrator *arg1 = (mfem::NonlinearFormIntegrator *) 0 ; mfem::FiniteElement *arg2 = 0 ; mfem::ElementTransformation *arg3 = 0 ; mfem::Vector *arg4 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; char * kwnames[] = { (char *)"self", (char *)"el", (char *)"Tr", (char *)"elfun", NULL }; Swig::Director *director = 0; bool upcall = false; double result; if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOOO:NonlinearFormIntegrator_GetElementEnergy", kwnames, &obj0, &obj1, &obj2, &obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_mfem__NonlinearFormIntegrator, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NonlinearFormIntegrator_GetElementEnergy" "', argument " "1"" of type '" "mfem::NonlinearFormIntegrator *""'"); } arg1 = reinterpret_cast< mfem::NonlinearFormIntegrator * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_mfem__FiniteElement, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NonlinearFormIntegrator_GetElementEnergy" "', argument " "2"" of type '" "mfem::FiniteElement const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NonlinearFormIntegrator_GetElementEnergy" "', argument " "2"" of type '" "mfem::FiniteElement const &""'"); } arg2 = reinterpret_cast< mfem::FiniteElement * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_mfem__ElementTransformation, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "NonlinearFormIntegrator_GetElementEnergy" "', argument " "3"" of type '" "mfem::ElementTransformation &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NonlinearFormIntegrator_GetElementEnergy" "', argument " "3"" of type '" "mfem::ElementTransformation &""'"); } arg3 = reinterpret_cast< mfem::ElementTransformation * >(argp3); res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_mfem__Vector, 0 | 0); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "NonlinearFormIntegrator_GetElementEnergy" "', argument " "4"" of type '" "mfem::Vector const &""'"); } if (!argp4) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NonlinearFormIntegrator_GetElementEnergy" "', argument " "4"" of type '" "mfem::Vector const &""'"); } arg4 = reinterpret_cast< mfem::Vector * >(argp4); director = SWIG_DIRECTOR_CAST(arg1); upcall = (director && (director->swig_get_self()==obj0)); try { { try { if (upcall) { result = (double)(arg1)->mfem::NonlinearFormIntegrator::GetElementEnergy((mfem::FiniteElement const &)*arg2,*arg3,(mfem::Vector const &)*arg4); } else { result = (double)(arg1)->GetElementEnergy((mfem::FiniteElement const &)*arg2,*arg3,(mfem::Vector const &)*arg4); } } #ifdef MFEM_USE_EXCEPTIONS catch (mfem::ErrorException &_e) { std::string s("PyMFEM error (mfem::ErrorException): "), s2(_e.what()); s = s + s2; SWIG_exception(SWIG_RuntimeError, s.c_str()); } #endif catch (Swig::DirectorException &e){ SWIG_fail; } catch (...) { SWIG_exception(SWIG_RuntimeError, "unknown exception"); } } } catch (Swig::DirectorException&) { SWIG_fail; } resultobj = SWIG_From_double(static_cast< double >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_NonlinearFormIntegrator_AssemblePA__SWIG_0(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; mfem::NonlinearFormIntegrator *arg1 = (mfem::NonlinearFormIntegrator *) 0 ; mfem::FiniteElementSpace *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; Swig::Director *director = 0; bool upcall = false; if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_mfem__NonlinearFormIntegrator, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NonlinearFormIntegrator_AssemblePA" "', argument " "1"" of type '" "mfem::NonlinearFormIntegrator *""'"); } arg1 = reinterpret_cast< mfem::NonlinearFormIntegrator * >(argp1); res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_mfem__FiniteElementSpace, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NonlinearFormIntegrator_AssemblePA" "', argument " "2"" of type '" "mfem::FiniteElementSpace const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NonlinearFormIntegrator_AssemblePA" "', argument " "2"" of type '" "mfem::FiniteElementSpace const &""'"); } arg2 = reinterpret_cast< mfem::FiniteElementSpace * >(argp2); director = SWIG_DIRECTOR_CAST(arg1); upcall = (director && (director->swig_get_self()==swig_obj[0])); try { { try { if (upcall) { (arg1)->mfem::NonlinearFormIntegrator::AssemblePA((mfem::FiniteElementSpace const &)*arg2); } else { (arg1)->AssemblePA((mfem::FiniteElementSpace const &)*arg2); } } #ifdef MFEM_USE_EXCEPTIONS catch (mfem::ErrorException &_e) { std::string s("PyMFEM error (mfem::ErrorException): "), s2(_e.what()); s = s + s2; SWIG_exception(SWIG_RuntimeError, s.c_str()); } #endif catch (Swig::DirectorException &e){ SWIG_fail; } catch (...) { SWIG_exception(SWIG_RuntimeError, "unknown exception"); } } } catch (Swig::DirectorException&) { SWIG_fail; } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_NonlinearFormIntegrator_AssemblePA__SWIG_1(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; mfem::NonlinearFormIntegrator *arg1 = (mfem::NonlinearFormIntegrator *) 0 ; mfem::FiniteElementSpace *arg2 = 0 ; mfem::FiniteElementSpace *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; Swig::Director *director = 0; bool upcall = false; if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_mfem__NonlinearFormIntegrator, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NonlinearFormIntegrator_AssemblePA" "', argument " "1"" of type '" "mfem::NonlinearFormIntegrator *""'"); } arg1 = reinterpret_cast< mfem::NonlinearFormIntegrator * >(argp1); res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_mfem__FiniteElementSpace, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NonlinearFormIntegrator_AssemblePA" "', argument " "2"" of type '" "mfem::FiniteElementSpace const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NonlinearFormIntegrator_AssemblePA" "', argument " "2"" of type '" "mfem::FiniteElementSpace const &""'"); } arg2 = reinterpret_cast< mfem::FiniteElementSpace * >(argp2); res3 = SWIG_ConvertPtr(swig_obj[2], &argp3, SWIGTYPE_p_mfem__FiniteElementSpace, 0 | 0); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "NonlinearFormIntegrator_AssemblePA" "', argument " "3"" of type '" "mfem::FiniteElementSpace const &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NonlinearFormIntegrator_AssemblePA" "', argument " "3"" of type '" "mfem::FiniteElementSpace const &""'"); } arg3 = reinterpret_cast< mfem::FiniteElementSpace * >(argp3); director = SWIG_DIRECTOR_CAST(arg1); upcall = (director && (director->swig_get_self()==swig_obj[0])); try { { try { if (upcall) { (arg1)->mfem::NonlinearFormIntegrator::AssemblePA((mfem::FiniteElementSpace const &)*arg2,(mfem::FiniteElementSpace const &)*arg3); } else { (arg1)->AssemblePA((mfem::FiniteElementSpace const &)*arg2,(mfem::FiniteElementSpace const &)*arg3); } } #ifdef MFEM_USE_EXCEPTIONS catch (mfem::ErrorException &_e) { std::string s("PyMFEM error (mfem::ErrorException): "), s2(_e.what()); s = s + s2; SWIG_exception(SWIG_RuntimeError, s.c_str()); } #endif catch (Swig::DirectorException &e){ SWIG_fail; } catch (...) { SWIG_exception(SWIG_RuntimeError, "unknown exception"); } } } catch (Swig::DirectorException&) { SWIG_fail; } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_NonlinearFormIntegrator_AssemblePA(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0 }; if (!(argc = SWIG_Python_UnpackTuple(args, "NonlinearFormIntegrator_AssemblePA", 0, 3, argv))) SWIG_fail; --argc; if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_mfem__NonlinearFormIntegrator, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_mfem__FiniteElementSpace, SWIG_POINTER_NO_NULL | 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_NonlinearFormIntegrator_AssemblePA__SWIG_0(self, argc, argv); } } } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_mfem__NonlinearFormIntegrator, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_mfem__FiniteElementSpace, SWIG_POINTER_NO_NULL | 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_mfem__FiniteElementSpace, SWIG_POINTER_NO_NULL | 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_NonlinearFormIntegrator_AssemblePA__SWIG_1(self, argc, argv); } } } } fail: SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'NonlinearFormIntegrator_AssemblePA'.\n" " Possible C/C++ prototypes are:\n" " mfem::NonlinearFormIntegrator::AssemblePA(mfem::FiniteElementSpace const &)\n" " mfem::NonlinearFormIntegrator::AssemblePA(mfem::FiniteElementSpace const &,mfem::FiniteElementSpace const &)\n"); return 0; } SWIGINTERN PyObject *_wrap_NonlinearFormIntegrator_AddMultPA(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { PyObject *resultobj = 0; mfem::NonlinearFormIntegrator *arg1 = (mfem::NonlinearFormIntegrator *) 0 ; mfem::Vector *arg2 = 0 ; mfem::Vector *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; char * kwnames[] = { (char *)"self", (char *)"x", (char *)"y", NULL }; Swig::Director *director = 0; bool upcall = false; if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOO:NonlinearFormIntegrator_AddMultPA", kwnames, &obj0, &obj1, &obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_mfem__NonlinearFormIntegrator, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NonlinearFormIntegrator_AddMultPA" "', argument " "1"" of type '" "mfem::NonlinearFormIntegrator const *""'"); } arg1 = reinterpret_cast< mfem::NonlinearFormIntegrator * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_mfem__Vector, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NonlinearFormIntegrator_AddMultPA" "', argument " "2"" of type '" "mfem::Vector const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NonlinearFormIntegrator_AddMultPA" "', argument " "2"" of type '" "mfem::Vector const &""'"); } arg2 = reinterpret_cast< mfem::Vector * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_mfem__Vector, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "NonlinearFormIntegrator_AddMultPA" "', argument " "3"" of type '" "mfem::Vector &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NonlinearFormIntegrator_AddMultPA" "', argument " "3"" of type '" "mfem::Vector &""'"); } arg3 = reinterpret_cast< mfem::Vector * >(argp3); director = SWIG_DIRECTOR_CAST(arg1); upcall = (director && (director->swig_get_self()==obj0)); try { { try { if (upcall) { ((mfem::NonlinearFormIntegrator const *)arg1)->mfem::NonlinearFormIntegrator::AddMultPA((mfem::Vector const &)*arg2,*arg3); } else { ((mfem::NonlinearFormIntegrator const *)arg1)->AddMultPA((mfem::Vector const &)*arg2,*arg3); } } #ifdef MFEM_USE_EXCEPTIONS catch (mfem::ErrorException &_e) { std::string s("PyMFEM error (mfem::ErrorException): "), s2(_e.what()); s = s + s2; SWIG_exception(SWIG_RuntimeError, s.c_str()); } #endif catch (Swig::DirectorException &e){ SWIG_fail; } catch (...) { SWIG_exception(SWIG_RuntimeError, "unknown exception"); } } } catch (Swig::DirectorException&) { SWIG_fail; } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_delete_NonlinearFormIntegrator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; mfem::NonlinearFormIntegrator *arg1 = (mfem::NonlinearFormIntegrator *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject *swig_obj[1] ; if (!args) SWIG_fail; swig_obj[0] = args; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_mfem__NonlinearFormIntegrator, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NonlinearFormIntegrator" "', argument " "1"" of type '" "mfem::NonlinearFormIntegrator *""'"); } arg1 = reinterpret_cast< mfem::NonlinearFormIntegrator * >(argp1); { try { delete arg1; } #ifdef MFEM_USE_EXCEPTIONS catch (mfem::ErrorException &_e) { std::string s("PyMFEM error (mfem::ErrorException): "), s2(_e.what()); s = s + s2; SWIG_exception(SWIG_RuntimeError, s.c_str()); } #endif catch (Swig::DirectorException &e){ SWIG_fail; } catch (...) { SWIG_exception(SWIG_RuntimeError, "unknown exception"); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_disown_NonlinearFormIntegrator(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { PyObject *resultobj = 0; mfem::NonlinearFormIntegrator *arg1 = (mfem::NonlinearFormIntegrator *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; char * kwnames[] = { (char *)"_self", NULL }; if (!PyArg_ParseTupleAndKeywords(args, kwargs, "O:disown_NonlinearFormIntegrator", kwnames, &obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_mfem__NonlinearFormIntegrator, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "disown_NonlinearFormIntegrator" "', argument " "1"" of type '" "mfem::NonlinearFormIntegrator *""'"); } arg1 = reinterpret_cast< mfem::NonlinearFormIntegrator * >(argp1); { Swig::Director *director = SWIG_DIRECTOR_CAST(arg1); if (director) director->swig_disown(); } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *NonlinearFormIntegrator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *obj; if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL; SWIG_TypeNewClientData(SWIGTYPE_p_mfem__NonlinearFormIntegrator, SWIG_NewClientData(obj)); return SWIG_Py_Void(); } SWIGINTERN PyObject *NonlinearFormIntegrator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { return SWIG_Python_InitShadowInstance(args); } SWIGINTERN PyObject *_wrap_BlockNonlinearFormIntegrator_GetElementEnergy(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { PyObject *resultobj = 0; mfem::BlockNonlinearFormIntegrator *arg1 = (mfem::BlockNonlinearFormIntegrator *) 0 ; mfem::Array< mfem::FiniteElement const * > *arg2 = 0 ; mfem::ElementTransformation *arg3 = 0 ; mfem::Array< mfem::Vector const * > *arg4 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; char * kwnames[] = { (char *)"self", (char *)"el", (char *)"Tr", (char *)"elfun", NULL }; double result; if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOOO:BlockNonlinearFormIntegrator_GetElementEnergy", kwnames, &obj0, &obj1, &obj2, &obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_mfem__BlockNonlinearFormIntegrator, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlockNonlinearFormIntegrator_GetElementEnergy" "', argument " "1"" of type '" "mfem::BlockNonlinearFormIntegrator *""'"); } arg1 = reinterpret_cast< mfem::BlockNonlinearFormIntegrator * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_mfem__ArrayT_mfem__FiniteElement_const_p_t, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BlockNonlinearFormIntegrator_GetElementEnergy" "', argument " "2"" of type '" "mfem::Array< mfem::FiniteElement const * > const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BlockNonlinearFormIntegrator_GetElementEnergy" "', argument " "2"" of type '" "mfem::Array< mfem::FiniteElement const * > const &""'"); } arg2 = reinterpret_cast< mfem::Array< mfem::FiniteElement const * > * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_mfem__ElementTransformation, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "BlockNonlinearFormIntegrator_GetElementEnergy" "', argument " "3"" of type '" "mfem::ElementTransformation &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BlockNonlinearFormIntegrator_GetElementEnergy" "', argument " "3"" of type '" "mfem::ElementTransformation &""'"); } arg3 = reinterpret_cast< mfem::ElementTransformation * >(argp3); res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_mfem__ArrayT_mfem__Vector_const_p_t, 0 | 0); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "BlockNonlinearFormIntegrator_GetElementEnergy" "', argument " "4"" of type '" "mfem::Array< mfem::Vector const * > const &""'"); } if (!argp4) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BlockNonlinearFormIntegrator_GetElementEnergy" "', argument " "4"" of type '" "mfem::Array< mfem::Vector const * > const &""'"); } arg4 = reinterpret_cast< mfem::Array< mfem::Vector const * > * >(argp4); { try { result = (double)(arg1)->GetElementEnergy((mfem::Array< mfem::FiniteElement const * > const &)*arg2,*arg3,(mfem::Array< mfem::Vector const * > const &)*arg4); } #ifdef MFEM_USE_EXCEPTIONS catch (mfem::ErrorException &_e) { std::string s("PyMFEM error (mfem::ErrorException): "), s2(_e.what()); s = s + s2; SWIG_exception(SWIG_RuntimeError, s.c_str()); } #endif catch (Swig::DirectorException &e){ SWIG_fail; } catch (...) { SWIG_exception(SWIG_RuntimeError, "unknown exception"); } } resultobj = SWIG_From_double(static_cast< double >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_BlockNonlinearFormIntegrator_AssembleElementVector(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { PyObject *resultobj = 0; mfem::BlockNonlinearFormIntegrator *arg1 = (mfem::BlockNonlinearFormIntegrator *) 0 ; mfem::Array< mfem::FiniteElement const * > *arg2 = 0 ; mfem::ElementTransformation *arg3 = 0 ; mfem::Array< mfem::Vector const * > *arg4 = 0 ; mfem::Array< mfem::Vector * > *arg5 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; void *argp5 = 0 ; int res5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; char * kwnames[] = { (char *)"self", (char *)"el", (char *)"Tr", (char *)"elfun", (char *)"elvec", NULL }; if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOOOO:BlockNonlinearFormIntegrator_AssembleElementVector", kwnames, &obj0, &obj1, &obj2, &obj3, &obj4)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_mfem__BlockNonlinearFormIntegrator, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlockNonlinearFormIntegrator_AssembleElementVector" "', argument " "1"" of type '" "mfem::BlockNonlinearFormIntegrator *""'"); } arg1 = reinterpret_cast< mfem::BlockNonlinearFormIntegrator * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_mfem__ArrayT_mfem__FiniteElement_const_p_t, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BlockNonlinearFormIntegrator_AssembleElementVector" "', argument " "2"" of type '" "mfem::Array< mfem::FiniteElement const * > const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BlockNonlinearFormIntegrator_AssembleElementVector" "', argument " "2"" of type '" "mfem::Array< mfem::FiniteElement const * > const &""'"); } arg2 = reinterpret_cast< mfem::Array< mfem::FiniteElement const * > * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_mfem__ElementTransformation, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "BlockNonlinearFormIntegrator_AssembleElementVector" "', argument " "3"" of type '" "mfem::ElementTransformation &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BlockNonlinearFormIntegrator_AssembleElementVector" "', argument " "3"" of type '" "mfem::ElementTransformation &""'"); } arg3 = reinterpret_cast< mfem::ElementTransformation * >(argp3); res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_mfem__ArrayT_mfem__Vector_const_p_t, 0 | 0); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "BlockNonlinearFormIntegrator_AssembleElementVector" "', argument " "4"" of type '" "mfem::Array< mfem::Vector const * > const &""'"); } if (!argp4) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BlockNonlinearFormIntegrator_AssembleElementVector" "', argument " "4"" of type '" "mfem::Array< mfem::Vector const * > const &""'"); } arg4 = reinterpret_cast< mfem::Array< mfem::Vector const * > * >(argp4); res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_mfem__ArrayT_mfem__Vector_p_t, 0 | 0); if (!SWIG_IsOK(res5)) { SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "BlockNonlinearFormIntegrator_AssembleElementVector" "', argument " "5"" of type '" "mfem::Array< mfem::Vector * > const &""'"); } if (!argp5) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BlockNonlinearFormIntegrator_AssembleElementVector" "', argument " "5"" of type '" "mfem::Array< mfem::Vector * > const &""'"); } arg5 = reinterpret_cast< mfem::Array< mfem::Vector * > * >(argp5); { try { (arg1)->AssembleElementVector((mfem::Array< mfem::FiniteElement const * > const &)*arg2,*arg3,(mfem::Array< mfem::Vector const * > const &)*arg4,(mfem::Array< mfem::Vector * > const &)*arg5); } #ifdef MFEM_USE_EXCEPTIONS catch (mfem::ErrorException &_e) { std::string s("PyMFEM error (mfem::ErrorException): "), s2(_e.what()); s = s + s2; SWIG_exception(SWIG_RuntimeError, s.c_str()); } #endif catch (Swig::DirectorException &e){ SWIG_fail; } catch (...) { SWIG_exception(SWIG_RuntimeError, "unknown exception"); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_BlockNonlinearFormIntegrator_AssembleFaceVector(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { PyObject *resultobj = 0; mfem::BlockNonlinearFormIntegrator *arg1 = (mfem::BlockNonlinearFormIntegrator *) 0 ; mfem::Array< mfem::FiniteElement const * > *arg2 = 0 ; mfem::Array< mfem::FiniteElement const * > *arg3 = 0 ; mfem::FaceElementTransformations *arg4 = 0 ; mfem::Array< mfem::Vector const * > *arg5 = 0 ; mfem::Array< mfem::Vector * > *arg6 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; void *argp5 = 0 ; int res5 = 0 ; void *argp6 = 0 ; int res6 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; char * kwnames[] = { (char *)"self", (char *)"el1", (char *)"el2", (char *)"Tr", (char *)"elfun", (char *)"elvect", NULL }; if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOOOOO:BlockNonlinearFormIntegrator_AssembleFaceVector", kwnames, &obj0, &obj1, &obj2, &obj3, &obj4, &obj5)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_mfem__BlockNonlinearFormIntegrator, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlockNonlinearFormIntegrator_AssembleFaceVector" "', argument " "1"" of type '" "mfem::BlockNonlinearFormIntegrator *""'"); } arg1 = reinterpret_cast< mfem::BlockNonlinearFormIntegrator * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_mfem__ArrayT_mfem__FiniteElement_const_p_t, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BlockNonlinearFormIntegrator_AssembleFaceVector" "', argument " "2"" of type '" "mfem::Array< mfem::FiniteElement const * > const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BlockNonlinearFormIntegrator_AssembleFaceVector" "', argument " "2"" of type '" "mfem::Array< mfem::FiniteElement const * > const &""'"); } arg2 = reinterpret_cast< mfem::Array< mfem::FiniteElement const * > * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_mfem__ArrayT_mfem__FiniteElement_const_p_t, 0 | 0); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "BlockNonlinearFormIntegrator_AssembleFaceVector" "', argument " "3"" of type '" "mfem::Array< mfem::FiniteElement const * > const &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BlockNonlinearFormIntegrator_AssembleFaceVector" "', argument " "3"" of type '" "mfem::Array< mfem::FiniteElement const * > const &""'"); } arg3 = reinterpret_cast< mfem::Array< mfem::FiniteElement const * > * >(argp3); res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_mfem__FaceElementTransformations, 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "BlockNonlinearFormIntegrator_AssembleFaceVector" "', argument " "4"" of type '" "mfem::FaceElementTransformations &""'"); } if (!argp4) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BlockNonlinearFormIntegrator_AssembleFaceVector" "', argument " "4"" of type '" "mfem::FaceElementTransformations &""'"); } arg4 = reinterpret_cast< mfem::FaceElementTransformations * >(argp4); res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_mfem__ArrayT_mfem__Vector_const_p_t, 0 | 0); if (!SWIG_IsOK(res5)) { SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "BlockNonlinearFormIntegrator_AssembleFaceVector" "', argument " "5"" of type '" "mfem::Array< mfem::Vector const * > const &""'"); } if (!argp5) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BlockNonlinearFormIntegrator_AssembleFaceVector" "', argument " "5"" of type '" "mfem::Array< mfem::Vector const * > const &""'"); } arg5 = reinterpret_cast< mfem::Array< mfem::Vector const * > * >(argp5); res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_mfem__ArrayT_mfem__Vector_p_t, 0 | 0); if (!SWIG_IsOK(res6)) { SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "BlockNonlinearFormIntegrator_AssembleFaceVector" "', argument " "6"" of type '" "mfem::Array< mfem::Vector * > const &""'"); } if (!argp6) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BlockNonlinearFormIntegrator_AssembleFaceVector" "', argument " "6"" of type '" "mfem::Array< mfem::Vector * > const &""'"); } arg6 = reinterpret_cast< mfem::Array< mfem::Vector * > * >(argp6); { try { (arg1)->AssembleFaceVector((mfem::Array< mfem::FiniteElement const * > const &)*arg2,(mfem::Array< mfem::FiniteElement const * > const &)*arg3,*arg4,(mfem::Array< mfem::Vector const * > const &)*arg5,(mfem::Array< mfem::Vector * > const &)*arg6); } #ifdef MFEM_USE_EXCEPTIONS catch (mfem::ErrorException &_e) { std::string s("PyMFEM error (mfem::ErrorException): "), s2(_e.what()); s = s + s2; SWIG_exception(SWIG_RuntimeError, s.c_str()); } #endif catch (Swig::DirectorException &e){ SWIG_fail; } catch (...) { SWIG_exception(SWIG_RuntimeError, "unknown exception"); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_BlockNonlinearFormIntegrator_AssembleElementGrad(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { PyObject *resultobj = 0; mfem::BlockNonlinearFormIntegrator *arg1 = (mfem::BlockNonlinearFormIntegrator *) 0 ; mfem::Array< mfem::FiniteElement const * > *arg2 = 0 ; mfem::ElementTransformation *arg3 = 0 ; mfem::Array< mfem::Vector const * > *arg4 = 0 ; mfem::Array2D< mfem::DenseMatrix * > *arg5 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; void *argp5 = 0 ; int res5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; char * kwnames[] = { (char *)"self", (char *)"el", (char *)"Tr", (char *)"elfun", (char *)"elmats", NULL }; if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOOOO:BlockNonlinearFormIntegrator_AssembleElementGrad", kwnames, &obj0, &obj1, &obj2, &obj3, &obj4)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_mfem__BlockNonlinearFormIntegrator, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlockNonlinearFormIntegrator_AssembleElementGrad" "', argument " "1"" of type '" "mfem::BlockNonlinearFormIntegrator *""'"); } arg1 = reinterpret_cast< mfem::BlockNonlinearFormIntegrator * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_mfem__ArrayT_mfem__FiniteElement_const_p_t, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BlockNonlinearFormIntegrator_AssembleElementGrad" "', argument " "2"" of type '" "mfem::Array< mfem::FiniteElement const * > const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BlockNonlinearFormIntegrator_AssembleElementGrad" "', argument " "2"" of type '" "mfem::Array< mfem::FiniteElement const * > const &""'"); } arg2 = reinterpret_cast< mfem::Array< mfem::FiniteElement const * > * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_mfem__ElementTransformation, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "BlockNonlinearFormIntegrator_AssembleElementGrad" "', argument " "3"" of type '" "mfem::ElementTransformation &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BlockNonlinearFormIntegrator_AssembleElementGrad" "', argument " "3"" of type '" "mfem::ElementTransformation &""'"); } arg3 = reinterpret_cast< mfem::ElementTransformation * >(argp3); res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_mfem__ArrayT_mfem__Vector_const_p_t, 0 | 0); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "BlockNonlinearFormIntegrator_AssembleElementGrad" "', argument " "4"" of type '" "mfem::Array< mfem::Vector const * > const &""'"); } if (!argp4) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BlockNonlinearFormIntegrator_AssembleElementGrad" "', argument " "4"" of type '" "mfem::Array< mfem::Vector const * > const &""'"); } arg4 = reinterpret_cast< mfem::Array< mfem::Vector const * > * >(argp4); res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_mfem__Array2DT_mfem__DenseMatrix_p_t, 0 | 0); if (!SWIG_IsOK(res5)) { SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "BlockNonlinearFormIntegrator_AssembleElementGrad" "', argument " "5"" of type '" "mfem::Array2D< mfem::DenseMatrix * > const &""'"); } if (!argp5) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BlockNonlinearFormIntegrator_AssembleElementGrad" "', argument " "5"" of type '" "mfem::Array2D< mfem::DenseMatrix * > const &""'"); } arg5 = reinterpret_cast< mfem::Array2D< mfem::DenseMatrix * > * >(argp5); { try { (arg1)->AssembleElementGrad((mfem::Array< mfem::FiniteElement const * > const &)*arg2,*arg3,(mfem::Array< mfem::Vector const * > const &)*arg4,(mfem::Array2D< mfem::DenseMatrix * > const &)*arg5); } #ifdef MFEM_USE_EXCEPTIONS catch (mfem::ErrorException &_e) { std::string s("PyMFEM error (mfem::ErrorException): "), s2(_e.what()); s = s + s2; SWIG_exception(SWIG_RuntimeError, s.c_str()); } #endif catch (Swig::DirectorException &e){ SWIG_fail; } catch (...) { SWIG_exception(SWIG_RuntimeError, "unknown exception"); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_BlockNonlinearFormIntegrator_AssembleFaceGrad(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { PyObject *resultobj = 0; mfem::BlockNonlinearFormIntegrator *arg1 = (mfem::BlockNonlinearFormIntegrator *) 0 ; mfem::Array< mfem::FiniteElement const * > *arg2 = 0 ; mfem::Array< mfem::FiniteElement const * > *arg3 = 0 ; mfem::FaceElementTransformations *arg4 = 0 ; mfem::Array< mfem::Vector const * > *arg5 = 0 ; mfem::Array2D< mfem::DenseMatrix * > *arg6 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; void *argp5 = 0 ; int res5 = 0 ; void *argp6 = 0 ; int res6 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; char * kwnames[] = { (char *)"self", (char *)"el1", (char *)"el2", (char *)"Tr", (char *)"elfun", (char *)"elmats", NULL }; if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOOOOO:BlockNonlinearFormIntegrator_AssembleFaceGrad", kwnames, &obj0, &obj1, &obj2, &obj3, &obj4, &obj5)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_mfem__BlockNonlinearFormIntegrator, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlockNonlinearFormIntegrator_AssembleFaceGrad" "', argument " "1"" of type '" "mfem::BlockNonlinearFormIntegrator *""'"); } arg1 = reinterpret_cast< mfem::BlockNonlinearFormIntegrator * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_mfem__ArrayT_mfem__FiniteElement_const_p_t, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BlockNonlinearFormIntegrator_AssembleFaceGrad" "', argument " "2"" of type '" "mfem::Array< mfem::FiniteElement const * > const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BlockNonlinearFormIntegrator_AssembleFaceGrad" "', argument " "2"" of type '" "mfem::Array< mfem::FiniteElement const * > const &""'"); } arg2 = reinterpret_cast< mfem::Array< mfem::FiniteElement const * > * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_mfem__ArrayT_mfem__FiniteElement_const_p_t, 0 | 0); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "BlockNonlinearFormIntegrator_AssembleFaceGrad" "', argument " "3"" of type '" "mfem::Array< mfem::FiniteElement const * > const &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BlockNonlinearFormIntegrator_AssembleFaceGrad" "', argument " "3"" of type '" "mfem::Array< mfem::FiniteElement const * > const &""'"); } arg3 = reinterpret_cast< mfem::Array< mfem::FiniteElement const * > * >(argp3); res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_mfem__FaceElementTransformations, 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "BlockNonlinearFormIntegrator_AssembleFaceGrad" "', argument " "4"" of type '" "mfem::FaceElementTransformations &""'"); } if (!argp4) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BlockNonlinearFormIntegrator_AssembleFaceGrad" "', argument " "4"" of type '" "mfem::FaceElementTransformations &""'"); } arg4 = reinterpret_cast< mfem::FaceElementTransformations * >(argp4); res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_mfem__ArrayT_mfem__Vector_const_p_t, 0 | 0); if (!SWIG_IsOK(res5)) { SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "BlockNonlinearFormIntegrator_AssembleFaceGrad" "', argument " "5"" of type '" "mfem::Array< mfem::Vector const * > const &""'"); } if (!argp5) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BlockNonlinearFormIntegrator_AssembleFaceGrad" "', argument " "5"" of type '" "mfem::Array< mfem::Vector const * > const &""'"); } arg5 = reinterpret_cast< mfem::Array< mfem::Vector const * > * >(argp5); res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_mfem__Array2DT_mfem__DenseMatrix_p_t, 0 | 0); if (!SWIG_IsOK(res6)) { SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "BlockNonlinearFormIntegrator_AssembleFaceGrad" "', argument " "6"" of type '" "mfem::Array2D< mfem::DenseMatrix * > const &""'"); } if (!argp6) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BlockNonlinearFormIntegrator_AssembleFaceGrad" "', argument " "6"" of type '" "mfem::Array2D< mfem::DenseMatrix * > const &""'"); } arg6 = reinterpret_cast< mfem::Array2D< mfem::DenseMatrix * > * >(argp6); { try { (arg1)->AssembleFaceGrad((mfem::Array< mfem::FiniteElement const * > const &)*arg2,(mfem::Array< mfem::FiniteElement const * > const &)*arg3,*arg4,(mfem::Array< mfem::Vector const * > const &)*arg5,(mfem::Array2D< mfem::DenseMatrix * > const &)*arg6); } #ifdef MFEM_USE_EXCEPTIONS catch (mfem::ErrorException &_e) { std::string s("PyMFEM error (mfem::ErrorException): "), s2(_e.what()); s = s + s2; SWIG_exception(SWIG_RuntimeError, s.c_str()); } #endif catch (Swig::DirectorException &e){ SWIG_fail; } catch (...) { SWIG_exception(SWIG_RuntimeError, "unknown exception"); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_delete_BlockNonlinearFormIntegrator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; mfem::BlockNonlinearFormIntegrator *arg1 = (mfem::BlockNonlinearFormIntegrator *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject *swig_obj[1] ; if (!args) SWIG_fail; swig_obj[0] = args; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_mfem__BlockNonlinearFormIntegrator, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_BlockNonlinearFormIntegrator" "', argument " "1"" of type '" "mfem::BlockNonlinearFormIntegrator *""'"); } arg1 = reinterpret_cast< mfem::BlockNonlinearFormIntegrator * >(argp1); { try { delete arg1; } #ifdef MFEM_USE_EXCEPTIONS catch (mfem::ErrorException &_e) { std::string s("PyMFEM error (mfem::ErrorException): "), s2(_e.what()); s = s + s2; SWIG_exception(SWIG_RuntimeError, s.c_str()); } #endif catch (Swig::DirectorException &e){ SWIG_fail; } catch (...) { SWIG_exception(SWIG_RuntimeError, "unknown exception"); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_new_BlockNonlinearFormIntegrator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; mfem::BlockNonlinearFormIntegrator *result = 0 ; if (!SWIG_Python_UnpackTuple(args, "new_BlockNonlinearFormIntegrator", 0, 0, 0)) SWIG_fail; { try { result = (mfem::BlockNonlinearFormIntegrator *)new mfem::BlockNonlinearFormIntegrator(); } #ifdef MFEM_USE_EXCEPTIONS catch (mfem::ErrorException &_e) { std::string s("PyMFEM error (mfem::ErrorException): "), s2(_e.what()); s = s + s2; SWIG_exception(SWIG_RuntimeError, s.c_str()); } #endif catch (Swig::DirectorException &e){ SWIG_fail; } catch (...) { SWIG_exception(SWIG_RuntimeError, "unknown exception"); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_mfem__BlockNonlinearFormIntegrator, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *BlockNonlinearFormIntegrator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *obj; if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL; SWIG_TypeNewClientData(SWIGTYPE_p_mfem__BlockNonlinearFormIntegrator, SWIG_NewClientData(obj)); return SWIG_Py_Void(); } SWIGINTERN PyObject *BlockNonlinearFormIntegrator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { return SWIG_Python_InitShadowInstance(args); } SWIGINTERN PyObject *_wrap_delete_HyperelasticModel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; mfem::HyperelasticModel *arg1 = (mfem::HyperelasticModel *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject *swig_obj[1] ; if (!args) SWIG_fail; swig_obj[0] = args; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_mfem__HyperelasticModel, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_HyperelasticModel" "', argument " "1"" of type '" "mfem::HyperelasticModel *""'"); } arg1 = reinterpret_cast< mfem::HyperelasticModel * >(argp1); { try { delete arg1; } #ifdef MFEM_USE_EXCEPTIONS catch (mfem::ErrorException &_e) { std::string s("PyMFEM error (mfem::ErrorException): "), s2(_e.what()); s = s + s2; SWIG_exception(SWIG_RuntimeError, s.c_str()); } #endif catch (Swig::DirectorException &e){ SWIG_fail; } catch (...) { SWIG_exception(SWIG_RuntimeError, "unknown exception"); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_HyperelasticModel_SetTransformation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { PyObject *resultobj = 0; mfem::HyperelasticModel *arg1 = (mfem::HyperelasticModel *) 0 ; mfem::ElementTransformation *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; char * kwnames[] = { (char *)"self", (char *)"_Ttr", NULL }; if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OO:HyperelasticModel_SetTransformation", kwnames, &obj0, &obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_mfem__HyperelasticModel, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperelasticModel_SetTransformation" "', argument " "1"" of type '" "mfem::HyperelasticModel *""'"); } arg1 = reinterpret_cast< mfem::HyperelasticModel * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_mfem__ElementTransformation, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HyperelasticModel_SetTransformation" "', argument " "2"" of type '" "mfem::ElementTransformation &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "HyperelasticModel_SetTransformation" "', argument " "2"" of type '" "mfem::ElementTransformation &""'"); } arg2 = reinterpret_cast< mfem::ElementTransformation * >(argp2); { try { (arg1)->SetTransformation(*arg2); } #ifdef MFEM_USE_EXCEPTIONS catch (mfem::ErrorException &_e) { std::string s("PyMFEM error (mfem::ErrorException): "), s2(_e.what()); s = s + s2; SWIG_exception(SWIG_RuntimeError, s.c_str()); } #endif catch (Swig::DirectorException &e){ SWIG_fail; } catch (...) { SWIG_exception(SWIG_RuntimeError, "unknown exception"); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_HyperelasticModel_EvalW(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { PyObject *resultobj = 0; mfem::HyperelasticModel *arg1 = (mfem::HyperelasticModel *) 0 ; mfem::DenseMatrix *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; char * kwnames[] = { (char *)"self", (char *)"Jpt", NULL }; double result; if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OO:HyperelasticModel_EvalW", kwnames, &obj0, &obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_mfem__HyperelasticModel, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperelasticModel_EvalW" "', argument " "1"" of type '" "mfem::HyperelasticModel const *""'"); } arg1 = reinterpret_cast< mfem::HyperelasticModel * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_mfem__DenseMatrix, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HyperelasticModel_EvalW" "', argument " "2"" of type '" "mfem::DenseMatrix const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "HyperelasticModel_EvalW" "', argument " "2"" of type '" "mfem::DenseMatrix const &""'"); } arg2 = reinterpret_cast< mfem::DenseMatrix * >(argp2); { try { result = (double)((mfem::HyperelasticModel const *)arg1)->EvalW((mfem::DenseMatrix const &)*arg2); } #ifdef MFEM_USE_EXCEPTIONS catch (mfem::ErrorException &_e) { std::string s("PyMFEM error (mfem::ErrorException): "), s2(_e.what()); s = s + s2; SWIG_exception(SWIG_RuntimeError, s.c_str()); } #endif catch (Swig::DirectorException &e){ SWIG_fail; } catch (...) { SWIG_exception(SWIG_RuntimeError, "unknown exception"); } } resultobj = SWIG_From_double(static_cast< double >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_HyperelasticModel_EvalP(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { PyObject *resultobj = 0; mfem::HyperelasticModel *arg1 = (mfem::HyperelasticModel *) 0 ; mfem::DenseMatrix *arg2 = 0 ; mfem::DenseMatrix *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; char * kwnames[] = { (char *)"self", (char *)"Jpt", (char *)"P", NULL }; if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOO:HyperelasticModel_EvalP", kwnames, &obj0, &obj1, &obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_mfem__HyperelasticModel, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperelasticModel_EvalP" "', argument " "1"" of type '" "mfem::HyperelasticModel const *""'"); } arg1 = reinterpret_cast< mfem::HyperelasticModel * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_mfem__DenseMatrix, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HyperelasticModel_EvalP" "', argument " "2"" of type '" "mfem::DenseMatrix const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "HyperelasticModel_EvalP" "', argument " "2"" of type '" "mfem::DenseMatrix const &""'"); } arg2 = reinterpret_cast< mfem::DenseMatrix * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_mfem__DenseMatrix, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "HyperelasticModel_EvalP" "', argument " "3"" of type '" "mfem::DenseMatrix &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "HyperelasticModel_EvalP" "', argument " "3"" of type '" "mfem::DenseMatrix &""'"); } arg3 = reinterpret_cast< mfem::DenseMatrix * >(argp3); { try { ((mfem::HyperelasticModel const *)arg1)->EvalP((mfem::DenseMatrix const &)*arg2,*arg3); } #ifdef MFEM_USE_EXCEPTIONS catch (mfem::ErrorException &_e) { std::string s("PyMFEM error (mfem::ErrorException): "), s2(_e.what()); s = s + s2; SWIG_exception(SWIG_RuntimeError, s.c_str()); } #endif catch (Swig::DirectorException &e){ SWIG_fail; } catch (...) { SWIG_exception(SWIG_RuntimeError, "unknown exception"); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_HyperelasticModel_AssembleH(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { PyObject *resultobj = 0; mfem::HyperelasticModel *arg1 = (mfem::HyperelasticModel *) 0 ; mfem::DenseMatrix *arg2 = 0 ; mfem::DenseMatrix *arg3 = 0 ; double arg4 ; mfem::DenseMatrix *arg5 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; double val4 ; int ecode4 = 0 ; void *argp5 = 0 ; int res5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; char * kwnames[] = { (char *)"self", (char *)"Jpt", (char *)"DS", (char *)"weight", (char *)"A", NULL }; if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOOOO:HyperelasticModel_AssembleH", kwnames, &obj0, &obj1, &obj2, &obj3, &obj4)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_mfem__HyperelasticModel, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperelasticModel_AssembleH" "', argument " "1"" of type '" "mfem::HyperelasticModel const *""'"); } arg1 = reinterpret_cast< mfem::HyperelasticModel * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_mfem__DenseMatrix, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HyperelasticModel_AssembleH" "', argument " "2"" of type '" "mfem::DenseMatrix const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "HyperelasticModel_AssembleH" "', argument " "2"" of type '" "mfem::DenseMatrix const &""'"); } arg2 = reinterpret_cast< mfem::DenseMatrix * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_mfem__DenseMatrix, 0 | 0); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "HyperelasticModel_AssembleH" "', argument " "3"" of type '" "mfem::DenseMatrix const &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "HyperelasticModel_AssembleH" "', argument " "3"" of type '" "mfem::DenseMatrix const &""'"); } arg3 = reinterpret_cast< mfem::DenseMatrix * >(argp3); ecode4 = SWIG_AsVal_double(obj3, &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "HyperelasticModel_AssembleH" "', argument " "4"" of type '" "double""'"); } arg4 = static_cast< double >(val4); res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_mfem__DenseMatrix, 0 ); if (!SWIG_IsOK(res5)) { SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "HyperelasticModel_AssembleH" "', argument " "5"" of type '" "mfem::DenseMatrix &""'"); } if (!argp5) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "HyperelasticModel_AssembleH" "', argument " "5"" of type '" "mfem::DenseMatrix &""'"); } arg5 = reinterpret_cast< mfem::DenseMatrix * >(argp5); { try { ((mfem::HyperelasticModel const *)arg1)->AssembleH((mfem::DenseMatrix const &)*arg2,(mfem::DenseMatrix const &)*arg3,arg4,*arg5); } #ifdef MFEM_USE_EXCEPTIONS catch (mfem::ErrorException &_e) { std::string s("PyMFEM error (mfem::ErrorException): "), s2(_e.what()); s = s + s2; SWIG_exception(SWIG_RuntimeError, s.c_str()); } #endif catch (Swig::DirectorException &e){ SWIG_fail; } catch (...) { SWIG_exception(SWIG_RuntimeError, "unknown exception"); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *HyperelasticModel_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *obj; if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL; SWIG_TypeNewClientData(SWIGTYPE_p_mfem__HyperelasticModel, SWIG_NewClientData(obj)); return SWIG_Py_Void(); } SWIGINTERN PyObject *_wrap_InverseHarmonicModel_EvalW(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { PyObject *resultobj = 0; mfem::InverseHarmonicModel *arg1 = (mfem::InverseHarmonicModel *) 0 ; mfem::DenseMatrix *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; char * kwnames[] = { (char *)"self", (char *)"J", NULL }; double result; if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OO:InverseHarmonicModel_EvalW", kwnames, &obj0, &obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_mfem__InverseHarmonicModel, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InverseHarmonicModel_EvalW" "', argument " "1"" of type '" "mfem::InverseHarmonicModel const *""'"); } arg1 = reinterpret_cast< mfem::InverseHarmonicModel * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_mfem__DenseMatrix, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "InverseHarmonicModel_EvalW" "', argument " "2"" of type '" "mfem::DenseMatrix const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "InverseHarmonicModel_EvalW" "', argument " "2"" of type '" "mfem::DenseMatrix const &""'"); } arg2 = reinterpret_cast< mfem::DenseMatrix * >(argp2); { try { result = (double)((mfem::InverseHarmonicModel const *)arg1)->EvalW((mfem::DenseMatrix const &)*arg2); } #ifdef MFEM_USE_EXCEPTIONS catch (mfem::ErrorException &_e) { std::string s("PyMFEM error (mfem::ErrorException): "), s2(_e.what()); s = s + s2; SWIG_exception(SWIG_RuntimeError, s.c_str()); } #endif catch (Swig::DirectorException &e){ SWIG_fail; } catch (...) { SWIG_exception(SWIG_RuntimeError, "unknown exception"); } } resultobj = SWIG_From_double(static_cast< double >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_InverseHarmonicModel_EvalP(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { PyObject *resultobj = 0; mfem::InverseHarmonicModel *arg1 = (mfem::InverseHarmonicModel *) 0 ; mfem::DenseMatrix *arg2 = 0 ; mfem::DenseMatrix *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; char * kwnames[] = { (char *)"self", (char *)"J", (char *)"P", NULL }; if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOO:InverseHarmonicModel_EvalP", kwnames, &obj0, &obj1, &obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_mfem__InverseHarmonicModel, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InverseHarmonicModel_EvalP" "', argument " "1"" of type '" "mfem::InverseHarmonicModel const *""'"); } arg1 = reinterpret_cast< mfem::InverseHarmonicModel * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_mfem__DenseMatrix, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "InverseHarmonicModel_EvalP" "', argument " "2"" of type '" "mfem::DenseMatrix const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "InverseHarmonicModel_EvalP" "', argument " "2"" of type '" "mfem::DenseMatrix const &""'"); } arg2 = reinterpret_cast< mfem::DenseMatrix * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_mfem__DenseMatrix, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "InverseHarmonicModel_EvalP" "', argument " "3"" of type '" "mfem::DenseMatrix &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "InverseHarmonicModel_EvalP" "', argument " "3"" of type '" "mfem::DenseMatrix &""'"); } arg3 = reinterpret_cast< mfem::DenseMatrix * >(argp3); { try { ((mfem::InverseHarmonicModel const *)arg1)->EvalP((mfem::DenseMatrix const &)*arg2,*arg3); } #ifdef MFEM_USE_EXCEPTIONS catch (mfem::ErrorException &_e) { std::string s("PyMFEM error (mfem::ErrorException): "), s2(_e.what()); s = s + s2; SWIG_exception(SWIG_RuntimeError, s.c_str()); } #endif catch (Swig::DirectorException &e){ SWIG_fail; } catch (...) { SWIG_exception(SWIG_RuntimeError, "unknown exception"); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_InverseHarmonicModel_AssembleH(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { PyObject *resultobj = 0; mfem::InverseHarmonicModel *arg1 = (mfem::InverseHarmonicModel *) 0 ; mfem::DenseMatrix *arg2 = 0 ; mfem::DenseMatrix *arg3 = 0 ; double arg4 ; mfem::DenseMatrix *arg5 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; double val4 ; int ecode4 = 0 ; void *argp5 = 0 ; int res5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; char * kwnames[] = { (char *)"self", (char *)"J", (char *)"DS", (char *)"weight", (char *)"A", NULL }; if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOOOO:InverseHarmonicModel_AssembleH", kwnames, &obj0, &obj1, &obj2, &obj3, &obj4)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_mfem__InverseHarmonicModel, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InverseHarmonicModel_AssembleH" "', argument " "1"" of type '" "mfem::InverseHarmonicModel const *""'"); } arg1 = reinterpret_cast< mfem::InverseHarmonicModel * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_mfem__DenseMatrix, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "InverseHarmonicModel_AssembleH" "', argument " "2"" of type '" "mfem::DenseMatrix const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "InverseHarmonicModel_AssembleH" "', argument " "2"" of type '" "mfem::DenseMatrix const &""'"); } arg2 = reinterpret_cast< mfem::DenseMatrix * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_mfem__DenseMatrix, 0 | 0); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "InverseHarmonicModel_AssembleH" "', argument " "3"" of type '" "mfem::DenseMatrix const &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "InverseHarmonicModel_AssembleH" "', argument " "3"" of type '" "mfem::DenseMatrix const &""'"); } arg3 = reinterpret_cast< mfem::DenseMatrix * >(argp3); ecode4 = SWIG_AsVal_double(obj3, &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "InverseHarmonicModel_AssembleH" "', argument " "4"" of type '" "double""'"); } arg4 = static_cast< double >(val4); res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_mfem__DenseMatrix, 0 ); if (!SWIG_IsOK(res5)) { SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "InverseHarmonicModel_AssembleH" "', argument " "5"" of type '" "mfem::DenseMatrix &""'"); } if (!argp5) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "InverseHarmonicModel_AssembleH" "', argument " "5"" of type '" "mfem::DenseMatrix &""'"); } arg5 = reinterpret_cast< mfem::DenseMatrix * >(argp5); { try { ((mfem::InverseHarmonicModel const *)arg1)->AssembleH((mfem::DenseMatrix const &)*arg2,(mfem::DenseMatrix const &)*arg3,arg4,*arg5); } #ifdef MFEM_USE_EXCEPTIONS catch (mfem::ErrorException &_e) { std::string s("PyMFEM error (mfem::ErrorException): "), s2(_e.what()); s = s + s2; SWIG_exception(SWIG_RuntimeError, s.c_str()); } #endif catch (Swig::DirectorException &e){ SWIG_fail; } catch (...) { SWIG_exception(SWIG_RuntimeError, "unknown exception"); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_new_InverseHarmonicModel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; mfem::InverseHarmonicModel *result = 0 ; if (!SWIG_Python_UnpackTuple(args, "new_InverseHarmonicModel", 0, 0, 0)) SWIG_fail; { try { result = (mfem::InverseHarmonicModel *)new mfem::InverseHarmonicModel(); } #ifdef MFEM_USE_EXCEPTIONS catch (mfem::ErrorException &_e) { std::string s("PyMFEM error (mfem::ErrorException): "), s2(_e.what()); s = s + s2; SWIG_exception(SWIG_RuntimeError, s.c_str()); } #endif catch (Swig::DirectorException &e){ SWIG_fail; } catch (...) { SWIG_exception(SWIG_RuntimeError, "unknown exception"); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_mfem__InverseHarmonicModel, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_delete_InverseHarmonicModel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; mfem::InverseHarmonicModel *arg1 = (mfem::InverseHarmonicModel *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject *swig_obj[1] ; if (!args) SWIG_fail; swig_obj[0] = args; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_mfem__InverseHarmonicModel, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_InverseHarmonicModel" "', argument " "1"" of type '" "mfem::InverseHarmonicModel *""'"); } arg1 = reinterpret_cast< mfem::InverseHarmonicModel * >(argp1); { try { delete arg1; } #ifdef MFEM_USE_EXCEPTIONS catch (mfem::ErrorException &_e) { std::string s("PyMFEM error (mfem::ErrorException): "), s2(_e.what()); s = s + s2; SWIG_exception(SWIG_RuntimeError, s.c_str()); } #endif catch (Swig::DirectorException &e){ SWIG_fail; } catch (...) { SWIG_exception(SWIG_RuntimeError, "unknown exception"); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *InverseHarmonicModel_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *obj; if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL; SWIG_TypeNewClientData(SWIGTYPE_p_mfem__InverseHarmonicModel, SWIG_NewClientData(obj)); return SWIG_Py_Void(); } SWIGINTERN PyObject *InverseHarmonicModel_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { return SWIG_Python_InitShadowInstance(args); } SWIGINTERN PyObject *_wrap_new_NeoHookeanModel__SWIG_0(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; double arg1 ; double arg2 ; double arg3 = (double) 1.0 ; double val1 ; int ecode1 = 0 ; double val2 ; int ecode2 = 0 ; double val3 ; int ecode3 = 0 ; mfem::NeoHookeanModel *result = 0 ; if ((nobjs < 2) || (nobjs > 3)) SWIG_fail; ecode1 = SWIG_AsVal_double(swig_obj[0], &val1); if (!SWIG_IsOK(ecode1)) { SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_NeoHookeanModel" "', argument " "1"" of type '" "double""'"); } arg1 = static_cast< double >(val1); ecode2 = SWIG_AsVal_double(swig_obj[1], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_NeoHookeanModel" "', argument " "2"" of type '" "double""'"); } arg2 = static_cast< double >(val2); if (swig_obj[2]) { ecode3 = SWIG_AsVal_double(swig_obj[2], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_NeoHookeanModel" "', argument " "3"" of type '" "double""'"); } arg3 = static_cast< double >(val3); } { try { result = (mfem::NeoHookeanModel *)new mfem::NeoHookeanModel(arg1,arg2,arg3); } #ifdef MFEM_USE_EXCEPTIONS catch (mfem::ErrorException &_e) { std::string s("PyMFEM error (mfem::ErrorException): "), s2(_e.what()); s = s + s2; SWIG_exception(SWIG_RuntimeError, s.c_str()); } #endif catch (Swig::DirectorException &e){ SWIG_fail; } catch (...) { SWIG_exception(SWIG_RuntimeError, "unknown exception"); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_mfem__NeoHookeanModel, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_new_NeoHookeanModel__SWIG_1(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; mfem::Coefficient *arg1 = 0 ; mfem::Coefficient *arg2 = 0 ; mfem::Coefficient *arg3 = (mfem::Coefficient *) NULL ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; mfem::NeoHookeanModel *result = 0 ; if ((nobjs < 2) || (nobjs > 3)) SWIG_fail; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_mfem__Coefficient, 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NeoHookeanModel" "', argument " "1"" of type '" "mfem::Coefficient &""'"); } if (!argp1) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NeoHookeanModel" "', argument " "1"" of type '" "mfem::Coefficient &""'"); } arg1 = reinterpret_cast< mfem::Coefficient * >(argp1); res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_mfem__Coefficient, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_NeoHookeanModel" "', argument " "2"" of type '" "mfem::Coefficient &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NeoHookeanModel" "', argument " "2"" of type '" "mfem::Coefficient &""'"); } arg2 = reinterpret_cast< mfem::Coefficient * >(argp2); if (swig_obj[2]) { res3 = SWIG_ConvertPtr(swig_obj[2], &argp3,SWIGTYPE_p_mfem__Coefficient, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_NeoHookeanModel" "', argument " "3"" of type '" "mfem::Coefficient *""'"); } arg3 = reinterpret_cast< mfem::Coefficient * >(argp3); } { try { result = (mfem::NeoHookeanModel *)new mfem::NeoHookeanModel(*arg1,*arg2,arg3); } #ifdef MFEM_USE_EXCEPTIONS catch (mfem::ErrorException &_e) { std::string s("PyMFEM error (mfem::ErrorException): "), s2(_e.what()); s = s + s2; SWIG_exception(SWIG_RuntimeError, s.c_str()); } #endif catch (Swig::DirectorException &e){ SWIG_fail; } catch (...) { SWIG_exception(SWIG_RuntimeError, "unknown exception"); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_mfem__NeoHookeanModel, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_new_NeoHookeanModel(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0 }; if (!(argc = SWIG_Python_UnpackTuple(args, "new_NeoHookeanModel", 0, 3, argv))) SWIG_fail; --argc; if ((argc >= 2) && (argc <= 3)) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_mfem__Coefficient, SWIG_POINTER_NO_NULL); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_mfem__Coefficient, SWIG_POINTER_NO_NULL); _v = SWIG_CheckState(res); if (_v) { if (argc <= 2) { return _wrap_new_NeoHookeanModel__SWIG_1(self, argc, argv); } void *vptr = 0; int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_mfem__Coefficient, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_new_NeoHookeanModel__SWIG_1(self, argc, argv); } } } } if ((argc >= 2) && (argc <= 3)) { int _v; { if (PyFloat_Check(argv[0])){ _v = 1; } else { _v = 0; } } if (_v) { { if (PyFloat_Check(argv[1])){ _v = 1; } else { _v = 0; } } if (_v) { if (argc <= 2) { return _wrap_new_NeoHookeanModel__SWIG_0(self, argc, argv); } { if (PyFloat_Check(argv[2])){ _v = 1; } else { _v = 0; } } if (_v) { return _wrap_new_NeoHookeanModel__SWIG_0(self, argc, argv); } } } } fail: SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'new_NeoHookeanModel'.\n" " Possible C/C++ prototypes are:\n" " mfem::NeoHookeanModel::NeoHookeanModel(double,double,double)\n" " mfem::NeoHookeanModel::NeoHookeanModel(mfem::Coefficient &,mfem::Coefficient &,mfem::Coefficient *)\n"); return 0; } SWIGINTERN PyObject *_wrap_NeoHookeanModel_EvalW(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { PyObject *resultobj = 0; mfem::NeoHookeanModel *arg1 = (mfem::NeoHookeanModel *) 0 ; mfem::DenseMatrix *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; char * kwnames[] = { (char *)"self", (char *)"J", NULL }; double result; if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OO:NeoHookeanModel_EvalW", kwnames, &obj0, &obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_mfem__NeoHookeanModel, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NeoHookeanModel_EvalW" "', argument " "1"" of type '" "mfem::NeoHookeanModel const *""'"); } arg1 = reinterpret_cast< mfem::NeoHookeanModel * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_mfem__DenseMatrix, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NeoHookeanModel_EvalW" "', argument " "2"" of type '" "mfem::DenseMatrix const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NeoHookeanModel_EvalW" "', argument " "2"" of type '" "mfem::DenseMatrix const &""'"); } arg2 = reinterpret_cast< mfem::DenseMatrix * >(argp2); { try { result = (double)((mfem::NeoHookeanModel const *)arg1)->EvalW((mfem::DenseMatrix const &)*arg2); } #ifdef MFEM_USE_EXCEPTIONS catch (mfem::ErrorException &_e) { std::string s("PyMFEM error (mfem::ErrorException): "), s2(_e.what()); s = s + s2; SWIG_exception(SWIG_RuntimeError, s.c_str()); } #endif catch (Swig::DirectorException &e){ SWIG_fail; } catch (...) { SWIG_exception(SWIG_RuntimeError, "unknown exception"); } } resultobj = SWIG_From_double(static_cast< double >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_NeoHookeanModel_EvalP(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { PyObject *resultobj = 0; mfem::NeoHookeanModel *arg1 = (mfem::NeoHookeanModel *) 0 ; mfem::DenseMatrix *arg2 = 0 ; mfem::DenseMatrix *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; char * kwnames[] = { (char *)"self", (char *)"J", (char *)"P", NULL }; if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOO:NeoHookeanModel_EvalP", kwnames, &obj0, &obj1, &obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_mfem__NeoHookeanModel, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NeoHookeanModel_EvalP" "', argument " "1"" of type '" "mfem::NeoHookeanModel const *""'"); } arg1 = reinterpret_cast< mfem::NeoHookeanModel * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_mfem__DenseMatrix, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NeoHookeanModel_EvalP" "', argument " "2"" of type '" "mfem::DenseMatrix const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NeoHookeanModel_EvalP" "', argument " "2"" of type '" "mfem::DenseMatrix const &""'"); } arg2 = reinterpret_cast< mfem::DenseMatrix * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_mfem__DenseMatrix, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "NeoHookeanModel_EvalP" "', argument " "3"" of type '" "mfem::DenseMatrix &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NeoHookeanModel_EvalP" "', argument " "3"" of type '" "mfem::DenseMatrix &""'"); } arg3 = reinterpret_cast< mfem::DenseMatrix * >(argp3); { try { ((mfem::NeoHookeanModel const *)arg1)->EvalP((mfem::DenseMatrix const &)*arg2,*arg3); } #ifdef MFEM_USE_EXCEPTIONS catch (mfem::ErrorException &_e) { std::string s("PyMFEM error (mfem::ErrorException): "), s2(_e.what()); s = s + s2; SWIG_exception(SWIG_RuntimeError, s.c_str()); } #endif catch (Swig::DirectorException &e){ SWIG_fail; } catch (...) { SWIG_exception(SWIG_RuntimeError, "unknown exception"); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_NeoHookeanModel_AssembleH(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { PyObject *resultobj = 0; mfem::NeoHookeanModel *arg1 = (mfem::NeoHookeanModel *) 0 ; mfem::DenseMatrix *arg2 = 0 ; mfem::DenseMatrix *arg3 = 0 ; double arg4 ; mfem::DenseMatrix *arg5 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; double val4 ; int ecode4 = 0 ; void *argp5 = 0 ; int res5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; char * kwnames[] = { (char *)"self", (char *)"J", (char *)"DS", (char *)"weight", (char *)"A", NULL }; if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOOOO:NeoHookeanModel_AssembleH", kwnames, &obj0, &obj1, &obj2, &obj3, &obj4)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_mfem__NeoHookeanModel, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NeoHookeanModel_AssembleH" "', argument " "1"" of type '" "mfem::NeoHookeanModel const *""'"); } arg1 = reinterpret_cast< mfem::NeoHookeanModel * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_mfem__DenseMatrix, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NeoHookeanModel_AssembleH" "', argument " "2"" of type '" "mfem::DenseMatrix const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NeoHookeanModel_AssembleH" "', argument " "2"" of type '" "mfem::DenseMatrix const &""'"); } arg2 = reinterpret_cast< mfem::DenseMatrix * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_mfem__DenseMatrix, 0 | 0); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "NeoHookeanModel_AssembleH" "', argument " "3"" of type '" "mfem::DenseMatrix const &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NeoHookeanModel_AssembleH" "', argument " "3"" of type '" "mfem::DenseMatrix const &""'"); } arg3 = reinterpret_cast< mfem::DenseMatrix * >(argp3); ecode4 = SWIG_AsVal_double(obj3, &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NeoHookeanModel_AssembleH" "', argument " "4"" of type '" "double""'"); } arg4 = static_cast< double >(val4); res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_mfem__DenseMatrix, 0 ); if (!SWIG_IsOK(res5)) { SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "NeoHookeanModel_AssembleH" "', argument " "5"" of type '" "mfem::DenseMatrix &""'"); } if (!argp5) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NeoHookeanModel_AssembleH" "', argument " "5"" of type '" "mfem::DenseMatrix &""'"); } arg5 = reinterpret_cast< mfem::DenseMatrix * >(argp5); { try { ((mfem::NeoHookeanModel const *)arg1)->AssembleH((mfem::DenseMatrix const &)*arg2,(mfem::DenseMatrix const &)*arg3,arg4,*arg5); } #ifdef MFEM_USE_EXCEPTIONS catch (mfem::ErrorException &_e) { std::string s("PyMFEM error (mfem::ErrorException): "), s2(_e.what()); s = s + s2; SWIG_exception(SWIG_RuntimeError, s.c_str()); } #endif catch (Swig::DirectorException &e){ SWIG_fail; } catch (...) { SWIG_exception(SWIG_RuntimeError, "unknown exception"); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_delete_NeoHookeanModel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; mfem::NeoHookeanModel *arg1 = (mfem::NeoHookeanModel *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject *swig_obj[1] ; if (!args) SWIG_fail; swig_obj[0] = args; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_mfem__NeoHookeanModel, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NeoHookeanModel" "', argument " "1"" of type '" "mfem::NeoHookeanModel *""'"); } arg1 = reinterpret_cast< mfem::NeoHookeanModel * >(argp1); { try { delete arg1; } #ifdef MFEM_USE_EXCEPTIONS catch (mfem::ErrorException &_e) { std::string s("PyMFEM error (mfem::ErrorException): "), s2(_e.what()); s = s + s2; SWIG_exception(SWIG_RuntimeError, s.c_str()); } #endif catch (Swig::DirectorException &e){ SWIG_fail; } catch (...) { SWIG_exception(SWIG_RuntimeError, "unknown exception"); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *NeoHookeanModel_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *obj; if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL; SWIG_TypeNewClientData(SWIGTYPE_p_mfem__NeoHookeanModel, SWIG_NewClientData(obj)); return SWIG_Py_Void(); } SWIGINTERN PyObject *NeoHookeanModel_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { return SWIG_Python_InitShadowInstance(args); } SWIGINTERN PyObject *_wrap_new_HyperelasticNLFIntegrator(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { PyObject *resultobj = 0; mfem::HyperelasticModel *arg1 = (mfem::HyperelasticModel *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; char * kwnames[] = { (char *)"m", NULL }; mfem::HyperelasticNLFIntegrator *result = 0 ; if (!PyArg_ParseTupleAndKeywords(args, kwargs, "O:new_HyperelasticNLFIntegrator", kwnames, &obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_mfem__HyperelasticModel, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_HyperelasticNLFIntegrator" "', argument " "1"" of type '" "mfem::HyperelasticModel *""'"); } arg1 = reinterpret_cast< mfem::HyperelasticModel * >(argp1); { try { result = (mfem::HyperelasticNLFIntegrator *)new mfem::HyperelasticNLFIntegrator(arg1); } #ifdef MFEM_USE_EXCEPTIONS catch (mfem::ErrorException &_e) { std::string s("PyMFEM error (mfem::ErrorException): "), s2(_e.what()); s = s + s2; SWIG_exception(SWIG_RuntimeError, s.c_str()); } #endif catch (Swig::DirectorException &e){ SWIG_fail; } catch (...) { SWIG_exception(SWIG_RuntimeError, "unknown exception"); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_mfem__HyperelasticNLFIntegrator, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_HyperelasticNLFIntegrator_GetElementEnergy(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { PyObject *resultobj = 0; mfem::HyperelasticNLFIntegrator *arg1 = (mfem::HyperelasticNLFIntegrator *) 0 ; mfem::FiniteElement *arg2 = 0 ; mfem::ElementTransformation *arg3 = 0 ; mfem::Vector *arg4 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; char * kwnames[] = { (char *)"self", (char *)"el", (char *)"Ttr", (char *)"elfun", NULL }; double result; if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOOO:HyperelasticNLFIntegrator_GetElementEnergy", kwnames, &obj0, &obj1, &obj2, &obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_mfem__HyperelasticNLFIntegrator, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperelasticNLFIntegrator_GetElementEnergy" "', argument " "1"" of type '" "mfem::HyperelasticNLFIntegrator *""'"); } arg1 = reinterpret_cast< mfem::HyperelasticNLFIntegrator * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_mfem__FiniteElement, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HyperelasticNLFIntegrator_GetElementEnergy" "', argument " "2"" of type '" "mfem::FiniteElement const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "HyperelasticNLFIntegrator_GetElementEnergy" "', argument " "2"" of type '" "mfem::FiniteElement const &""'"); } arg2 = reinterpret_cast< mfem::FiniteElement * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_mfem__ElementTransformation, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "HyperelasticNLFIntegrator_GetElementEnergy" "', argument " "3"" of type '" "mfem::ElementTransformation &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "HyperelasticNLFIntegrator_GetElementEnergy" "', argument " "3"" of type '" "mfem::ElementTransformation &""'"); } arg3 = reinterpret_cast< mfem::ElementTransformation * >(argp3); res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_mfem__Vector, 0 | 0); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "HyperelasticNLFIntegrator_GetElementEnergy" "', argument " "4"" of type '" "mfem::Vector const &""'"); } if (!argp4) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "HyperelasticNLFIntegrator_GetElementEnergy" "', argument " "4"" of type '" "mfem::Vector const &""'"); } arg4 = reinterpret_cast< mfem::Vector * >(argp4); { try { result = (double)(arg1)->GetElementEnergy((mfem::FiniteElement const &)*arg2,*arg3,(mfem::Vector const &)*arg4); } #ifdef MFEM_USE_EXCEPTIONS catch (mfem::ErrorException &_e) { std::string s("PyMFEM error (mfem::ErrorException): "), s2(_e.what()); s = s + s2; SWIG_exception(SWIG_RuntimeError, s.c_str()); } #endif catch (Swig::DirectorException &e){ SWIG_fail; } catch (...) { SWIG_exception(SWIG_RuntimeError, "unknown exception"); } } resultobj = SWIG_From_double(static_cast< double >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_HyperelasticNLFIntegrator_AssembleElementVector(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { PyObject *resultobj = 0; mfem::HyperelasticNLFIntegrator *arg1 = (mfem::HyperelasticNLFIntegrator *) 0 ; mfem::FiniteElement *arg2 = 0 ; mfem::ElementTransformation *arg3 = 0 ; mfem::Vector *arg4 = 0 ; mfem::Vector *arg5 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; void *argp5 = 0 ; int res5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; char * kwnames[] = { (char *)"self", (char *)"el", (char *)"Ttr", (char *)"elfun", (char *)"elvect", NULL }; if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOOOO:HyperelasticNLFIntegrator_AssembleElementVector", kwnames, &obj0, &obj1, &obj2, &obj3, &obj4)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_mfem__HyperelasticNLFIntegrator, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperelasticNLFIntegrator_AssembleElementVector" "', argument " "1"" of type '" "mfem::HyperelasticNLFIntegrator *""'"); } arg1 = reinterpret_cast< mfem::HyperelasticNLFIntegrator * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_mfem__FiniteElement, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HyperelasticNLFIntegrator_AssembleElementVector" "', argument " "2"" of type '" "mfem::FiniteElement const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "HyperelasticNLFIntegrator_AssembleElementVector" "', argument " "2"" of type '" "mfem::FiniteElement const &""'"); } arg2 = reinterpret_cast< mfem::FiniteElement * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_mfem__ElementTransformation, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "HyperelasticNLFIntegrator_AssembleElementVector" "', argument " "3"" of type '" "mfem::ElementTransformation &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "HyperelasticNLFIntegrator_AssembleElementVector" "', argument " "3"" of type '" "mfem::ElementTransformation &""'"); } arg3 = reinterpret_cast< mfem::ElementTransformation * >(argp3); res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_mfem__Vector, 0 | 0); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "HyperelasticNLFIntegrator_AssembleElementVector" "', argument " "4"" of type '" "mfem::Vector const &""'"); } if (!argp4) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "HyperelasticNLFIntegrator_AssembleElementVector" "', argument " "4"" of type '" "mfem::Vector const &""'"); } arg4 = reinterpret_cast< mfem::Vector * >(argp4); res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_mfem__Vector, 0 ); if (!SWIG_IsOK(res5)) { SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "HyperelasticNLFIntegrator_AssembleElementVector" "', argument " "5"" of type '" "mfem::Vector &""'"); } if (!argp5) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "HyperelasticNLFIntegrator_AssembleElementVector" "', argument " "5"" of type '" "mfem::Vector &""'"); } arg5 = reinterpret_cast< mfem::Vector * >(argp5); { try { (arg1)->AssembleElementVector((mfem::FiniteElement const &)*arg2,*arg3,(mfem::Vector const &)*arg4,*arg5); } #ifdef MFEM_USE_EXCEPTIONS catch (mfem::ErrorException &_e) { std::string s("PyMFEM error (mfem::ErrorException): "), s2(_e.what()); s = s + s2; SWIG_exception(SWIG_RuntimeError, s.c_str()); } #endif catch (Swig::DirectorException &e){ SWIG_fail; } catch (...) { SWIG_exception(SWIG_RuntimeError, "unknown exception"); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_HyperelasticNLFIntegrator_AssembleElementGrad(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { PyObject *resultobj = 0; mfem::HyperelasticNLFIntegrator *arg1 = (mfem::HyperelasticNLFIntegrator *) 0 ; mfem::FiniteElement *arg2 = 0 ; mfem::ElementTransformation *arg3 = 0 ; mfem::Vector *arg4 = 0 ; mfem::DenseMatrix *arg5 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; void *argp5 = 0 ; int res5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; char * kwnames[] = { (char *)"self", (char *)"el", (char *)"Ttr", (char *)"elfun", (char *)"elmat", NULL }; if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOOOO:HyperelasticNLFIntegrator_AssembleElementGrad", kwnames, &obj0, &obj1, &obj2, &obj3, &obj4)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_mfem__HyperelasticNLFIntegrator, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperelasticNLFIntegrator_AssembleElementGrad" "', argument " "1"" of type '" "mfem::HyperelasticNLFIntegrator *""'"); } arg1 = reinterpret_cast< mfem::HyperelasticNLFIntegrator * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_mfem__FiniteElement, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HyperelasticNLFIntegrator_AssembleElementGrad" "', argument " "2"" of type '" "mfem::FiniteElement const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "HyperelasticNLFIntegrator_AssembleElementGrad" "', argument " "2"" of type '" "mfem::FiniteElement const &""'"); } arg2 = reinterpret_cast< mfem::FiniteElement * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_mfem__ElementTransformation, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "HyperelasticNLFIntegrator_AssembleElementGrad" "', argument " "3"" of type '" "mfem::ElementTransformation &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "HyperelasticNLFIntegrator_AssembleElementGrad" "', argument " "3"" of type '" "mfem::ElementTransformation &""'"); } arg3 = reinterpret_cast< mfem::ElementTransformation * >(argp3); res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_mfem__Vector, 0 | 0); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "HyperelasticNLFIntegrator_AssembleElementGrad" "', argument " "4"" of type '" "mfem::Vector const &""'"); } if (!argp4) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "HyperelasticNLFIntegrator_AssembleElementGrad" "', argument " "4"" of type '" "mfem::Vector const &""'"); } arg4 = reinterpret_cast< mfem::Vector * >(argp4); res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_mfem__DenseMatrix, 0 ); if (!SWIG_IsOK(res5)) { SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "HyperelasticNLFIntegrator_AssembleElementGrad" "', argument " "5"" of type '" "mfem::DenseMatrix &""'"); } if (!argp5) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "HyperelasticNLFIntegrator_AssembleElementGrad" "', argument " "5"" of type '" "mfem::DenseMatrix &""'"); } arg5 = reinterpret_cast< mfem::DenseMatrix * >(argp5); { try { (arg1)->AssembleElementGrad((mfem::FiniteElement const &)*arg2,*arg3,(mfem::Vector const &)*arg4,*arg5); } #ifdef MFEM_USE_EXCEPTIONS catch (mfem::ErrorException &_e) { std::string s("PyMFEM error (mfem::ErrorException): "), s2(_e.what()); s = s + s2; SWIG_exception(SWIG_RuntimeError, s.c_str()); } #endif catch (Swig::DirectorException &e){ SWIG_fail; } catch (...) { SWIG_exception(SWIG_RuntimeError, "unknown exception"); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_delete_HyperelasticNLFIntegrator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; mfem::HyperelasticNLFIntegrator *arg1 = (mfem::HyperelasticNLFIntegrator *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject *swig_obj[1] ; if (!args) SWIG_fail; swig_obj[0] = args; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_mfem__HyperelasticNLFIntegrator, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_HyperelasticNLFIntegrator" "', argument " "1"" of type '" "mfem::HyperelasticNLFIntegrator *""'"); } arg1 = reinterpret_cast< mfem::HyperelasticNLFIntegrator * >(argp1); { try { delete arg1; } #ifdef MFEM_USE_EXCEPTIONS catch (mfem::ErrorException &_e) { std::string s("PyMFEM error (mfem::ErrorException): "), s2(_e.what()); s = s + s2; SWIG_exception(SWIG_RuntimeError, s.c_str()); } #endif catch (Swig::DirectorException &e){ SWIG_fail; } catch (...) { SWIG_exception(SWIG_RuntimeError, "unknown exception"); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *HyperelasticNLFIntegrator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *obj; if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL; SWIG_TypeNewClientData(SWIGTYPE_p_mfem__HyperelasticNLFIntegrator, SWIG_NewClientData(obj)); return SWIG_Py_Void(); } SWIGINTERN PyObject *HyperelasticNLFIntegrator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { return SWIG_Python_InitShadowInstance(args); } SWIGINTERN PyObject *_wrap_new_IncompressibleNeoHookeanIntegrator(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { PyObject *resultobj = 0; mfem::Coefficient *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; char * kwnames[] = { (char *)"_mu", NULL }; mfem::IncompressibleNeoHookeanIntegrator *result = 0 ; if (!PyArg_ParseTupleAndKeywords(args, kwargs, "O:new_IncompressibleNeoHookeanIntegrator", kwnames, &obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_mfem__Coefficient, 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IncompressibleNeoHookeanIntegrator" "', argument " "1"" of type '" "mfem::Coefficient &""'"); } if (!argp1) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IncompressibleNeoHookeanIntegrator" "', argument " "1"" of type '" "mfem::Coefficient &""'"); } arg1 = reinterpret_cast< mfem::Coefficient * >(argp1); { try { result = (mfem::IncompressibleNeoHookeanIntegrator *)new mfem::IncompressibleNeoHookeanIntegrator(*arg1); } #ifdef MFEM_USE_EXCEPTIONS catch (mfem::ErrorException &_e) { std::string s("PyMFEM error (mfem::ErrorException): "), s2(_e.what()); s = s + s2; SWIG_exception(SWIG_RuntimeError, s.c_str()); } #endif catch (Swig::DirectorException &e){ SWIG_fail; } catch (...) { SWIG_exception(SWIG_RuntimeError, "unknown exception"); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_mfem__IncompressibleNeoHookeanIntegrator, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_IncompressibleNeoHookeanIntegrator_GetElementEnergy(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { PyObject *resultobj = 0; mfem::IncompressibleNeoHookeanIntegrator *arg1 = (mfem::IncompressibleNeoHookeanIntegrator *) 0 ; mfem::Array< mfem::FiniteElement const * > *arg2 = 0 ; mfem::ElementTransformation *arg3 = 0 ; mfem::Array< mfem::Vector const * > *arg4 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; char * kwnames[] = { (char *)"self", (char *)"el", (char *)"Tr", (char *)"elfun", NULL }; double result; if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOOO:IncompressibleNeoHookeanIntegrator_GetElementEnergy", kwnames, &obj0, &obj1, &obj2, &obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_mfem__IncompressibleNeoHookeanIntegrator, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IncompressibleNeoHookeanIntegrator_GetElementEnergy" "', argument " "1"" of type '" "mfem::IncompressibleNeoHookeanIntegrator *""'"); } arg1 = reinterpret_cast< mfem::IncompressibleNeoHookeanIntegrator * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_mfem__ArrayT_mfem__FiniteElement_const_p_t, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IncompressibleNeoHookeanIntegrator_GetElementEnergy" "', argument " "2"" of type '" "mfem::Array< mfem::FiniteElement const * > const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IncompressibleNeoHookeanIntegrator_GetElementEnergy" "', argument " "2"" of type '" "mfem::Array< mfem::FiniteElement const * > const &""'"); } arg2 = reinterpret_cast< mfem::Array< mfem::FiniteElement const * > * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_mfem__ElementTransformation, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "IncompressibleNeoHookeanIntegrator_GetElementEnergy" "', argument " "3"" of type '" "mfem::ElementTransformation &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IncompressibleNeoHookeanIntegrator_GetElementEnergy" "', argument " "3"" of type '" "mfem::ElementTransformation &""'"); } arg3 = reinterpret_cast< mfem::ElementTransformation * >(argp3); res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_mfem__ArrayT_mfem__Vector_const_p_t, 0 | 0); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "IncompressibleNeoHookeanIntegrator_GetElementEnergy" "', argument " "4"" of type '" "mfem::Array< mfem::Vector const * > const &""'"); } if (!argp4) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IncompressibleNeoHookeanIntegrator_GetElementEnergy" "', argument " "4"" of type '" "mfem::Array< mfem::Vector const * > const &""'"); } arg4 = reinterpret_cast< mfem::Array< mfem::Vector const * > * >(argp4); { try { result = (double)(arg1)->GetElementEnergy((mfem::Array< mfem::FiniteElement const * > const &)*arg2,*arg3,(mfem::Array< mfem::Vector const * > const &)*arg4); } #ifdef MFEM_USE_EXCEPTIONS catch (mfem::ErrorException &_e) { std::string s("PyMFEM error (mfem::ErrorException): "), s2(_e.what()); s = s + s2; SWIG_exception(SWIG_RuntimeError, s.c_str()); } #endif catch (Swig::DirectorException &e){ SWIG_fail; } catch (...) { SWIG_exception(SWIG_RuntimeError, "unknown exception"); } } resultobj = SWIG_From_double(static_cast< double >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_IncompressibleNeoHookeanIntegrator_AssembleElementVector(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { PyObject *resultobj = 0; mfem::IncompressibleNeoHookeanIntegrator *arg1 = (mfem::IncompressibleNeoHookeanIntegrator *) 0 ; mfem::Array< mfem::FiniteElement const * > *arg2 = 0 ; mfem::ElementTransformation *arg3 = 0 ; mfem::Array< mfem::Vector const * > *arg4 = 0 ; mfem::Array< mfem::Vector * > *arg5 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; void *argp5 = 0 ; int res5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; char * kwnames[] = { (char *)"self", (char *)"el", (char *)"Tr", (char *)"elfun", (char *)"elvec", NULL }; if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOOOO:IncompressibleNeoHookeanIntegrator_AssembleElementVector", kwnames, &obj0, &obj1, &obj2, &obj3, &obj4)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_mfem__IncompressibleNeoHookeanIntegrator, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IncompressibleNeoHookeanIntegrator_AssembleElementVector" "', argument " "1"" of type '" "mfem::IncompressibleNeoHookeanIntegrator *""'"); } arg1 = reinterpret_cast< mfem::IncompressibleNeoHookeanIntegrator * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_mfem__ArrayT_mfem__FiniteElement_const_p_t, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IncompressibleNeoHookeanIntegrator_AssembleElementVector" "', argument " "2"" of type '" "mfem::Array< mfem::FiniteElement const * > const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IncompressibleNeoHookeanIntegrator_AssembleElementVector" "', argument " "2"" of type '" "mfem::Array< mfem::FiniteElement const * > const &""'"); } arg2 = reinterpret_cast< mfem::Array< mfem::FiniteElement const * > * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_mfem__ElementTransformation, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "IncompressibleNeoHookeanIntegrator_AssembleElementVector" "', argument " "3"" of type '" "mfem::ElementTransformation &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IncompressibleNeoHookeanIntegrator_AssembleElementVector" "', argument " "3"" of type '" "mfem::ElementTransformation &""'"); } arg3 = reinterpret_cast< mfem::ElementTransformation * >(argp3); res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_mfem__ArrayT_mfem__Vector_const_p_t, 0 | 0); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "IncompressibleNeoHookeanIntegrator_AssembleElementVector" "', argument " "4"" of type '" "mfem::Array< mfem::Vector const * > const &""'"); } if (!argp4) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IncompressibleNeoHookeanIntegrator_AssembleElementVector" "', argument " "4"" of type '" "mfem::Array< mfem::Vector const * > const &""'"); } arg4 = reinterpret_cast< mfem::Array< mfem::Vector const * > * >(argp4); res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_mfem__ArrayT_mfem__Vector_p_t, 0 | 0); if (!SWIG_IsOK(res5)) { SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "IncompressibleNeoHookeanIntegrator_AssembleElementVector" "', argument " "5"" of type '" "mfem::Array< mfem::Vector * > const &""'"); } if (!argp5) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IncompressibleNeoHookeanIntegrator_AssembleElementVector" "', argument " "5"" of type '" "mfem::Array< mfem::Vector * > const &""'"); } arg5 = reinterpret_cast< mfem::Array< mfem::Vector * > * >(argp5); { try { (arg1)->AssembleElementVector((mfem::Array< mfem::FiniteElement const * > const &)*arg2,*arg3,(mfem::Array< mfem::Vector const * > const &)*arg4,(mfem::Array< mfem::Vector * > const &)*arg5); } #ifdef MFEM_USE_EXCEPTIONS catch (mfem::ErrorException &_e) { std::string s("PyMFEM error (mfem::ErrorException): "), s2(_e.what()); s = s + s2; SWIG_exception(SWIG_RuntimeError, s.c_str()); } #endif catch (Swig::DirectorException &e){ SWIG_fail; } catch (...) { SWIG_exception(SWIG_RuntimeError, "unknown exception"); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_IncompressibleNeoHookeanIntegrator_AssembleElementGrad(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { PyObject *resultobj = 0; mfem::IncompressibleNeoHookeanIntegrator *arg1 = (mfem::IncompressibleNeoHookeanIntegrator *) 0 ; mfem::Array< mfem::FiniteElement const * > *arg2 = 0 ; mfem::ElementTransformation *arg3 = 0 ; mfem::Array< mfem::Vector const * > *arg4 = 0 ; mfem::Array2D< mfem::DenseMatrix * > *arg5 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; void *argp5 = 0 ; int res5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; char * kwnames[] = { (char *)"self", (char *)"el", (char *)"Tr", (char *)"elfun", (char *)"elmats", NULL }; if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOOOO:IncompressibleNeoHookeanIntegrator_AssembleElementGrad", kwnames, &obj0, &obj1, &obj2, &obj3, &obj4)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_mfem__IncompressibleNeoHookeanIntegrator, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IncompressibleNeoHookeanIntegrator_AssembleElementGrad" "', argument " "1"" of type '" "mfem::IncompressibleNeoHookeanIntegrator *""'"); } arg1 = reinterpret_cast< mfem::IncompressibleNeoHookeanIntegrator * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_mfem__ArrayT_mfem__FiniteElement_const_p_t, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IncompressibleNeoHookeanIntegrator_AssembleElementGrad" "', argument " "2"" of type '" "mfem::Array< mfem::FiniteElement const * > const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IncompressibleNeoHookeanIntegrator_AssembleElementGrad" "', argument " "2"" of type '" "mfem::Array< mfem::FiniteElement const * > const &""'"); } arg2 = reinterpret_cast< mfem::Array< mfem::FiniteElement const * > * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_mfem__ElementTransformation, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "IncompressibleNeoHookeanIntegrator_AssembleElementGrad" "', argument " "3"" of type '" "mfem::ElementTransformation &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IncompressibleNeoHookeanIntegrator_AssembleElementGrad" "', argument " "3"" of type '" "mfem::ElementTransformation &""'"); } arg3 = reinterpret_cast< mfem::ElementTransformation * >(argp3); res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_mfem__ArrayT_mfem__Vector_const_p_t, 0 | 0); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "IncompressibleNeoHookeanIntegrator_AssembleElementGrad" "', argument " "4"" of type '" "mfem::Array< mfem::Vector const * > const &""'"); } if (!argp4) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IncompressibleNeoHookeanIntegrator_AssembleElementGrad" "', argument " "4"" of type '" "mfem::Array< mfem::Vector const * > const &""'"); } arg4 = reinterpret_cast< mfem::Array< mfem::Vector const * > * >(argp4); res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_mfem__Array2DT_mfem__DenseMatrix_p_t, 0 | 0); if (!SWIG_IsOK(res5)) { SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "IncompressibleNeoHookeanIntegrator_AssembleElementGrad" "', argument " "5"" of type '" "mfem::Array2D< mfem::DenseMatrix * > const &""'"); } if (!argp5) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IncompressibleNeoHookeanIntegrator_AssembleElementGrad" "', argument " "5"" of type '" "mfem::Array2D< mfem::DenseMatrix * > const &""'"); } arg5 = reinterpret_cast< mfem::Array2D< mfem::DenseMatrix * > * >(argp5); { try { (arg1)->AssembleElementGrad((mfem::Array< mfem::FiniteElement const * > const &)*arg2,*arg3,(mfem::Array< mfem::Vector const * > const &)*arg4,(mfem::Array2D< mfem::DenseMatrix * > const &)*arg5); } #ifdef MFEM_USE_EXCEPTIONS catch (mfem::ErrorException &_e) { std::string s("PyMFEM error (mfem::ErrorException): "), s2(_e.what()); s = s + s2; SWIG_exception(SWIG_RuntimeError, s.c_str()); } #endif catch (Swig::DirectorException &e){ SWIG_fail; } catch (...) { SWIG_exception(SWIG_RuntimeError, "unknown exception"); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_delete_IncompressibleNeoHookeanIntegrator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; mfem::IncompressibleNeoHookeanIntegrator *arg1 = (mfem::IncompressibleNeoHookeanIntegrator *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject *swig_obj[1] ; if (!args) SWIG_fail; swig_obj[0] = args; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_mfem__IncompressibleNeoHookeanIntegrator, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IncompressibleNeoHookeanIntegrator" "', argument " "1"" of type '" "mfem::IncompressibleNeoHookeanIntegrator *""'"); } arg1 = reinterpret_cast< mfem::IncompressibleNeoHookeanIntegrator * >(argp1); { try { delete arg1; } #ifdef MFEM_USE_EXCEPTIONS catch (mfem::ErrorException &_e) { std::string s("PyMFEM error (mfem::ErrorException): "), s2(_e.what()); s = s + s2; SWIG_exception(SWIG_RuntimeError, s.c_str()); } #endif catch (Swig::DirectorException &e){ SWIG_fail; } catch (...) { SWIG_exception(SWIG_RuntimeError, "unknown exception"); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *IncompressibleNeoHookeanIntegrator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *obj; if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL; SWIG_TypeNewClientData(SWIGTYPE_p_mfem__IncompressibleNeoHookeanIntegrator, SWIG_NewClientData(obj)); return SWIG_Py_Void(); } SWIGINTERN PyObject *IncompressibleNeoHookeanIntegrator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { return SWIG_Python_InitShadowInstance(args); } SWIGINTERN PyObject *_wrap_new_VectorConvectionNLFIntegrator__SWIG_0(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; mfem::Coefficient *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; mfem::VectorConvectionNLFIntegrator *result = 0 ; if ((nobjs < 1) || (nobjs > 1)) SWIG_fail; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_mfem__Coefficient, 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_VectorConvectionNLFIntegrator" "', argument " "1"" of type '" "mfem::Coefficient &""'"); } if (!argp1) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_VectorConvectionNLFIntegrator" "', argument " "1"" of type '" "mfem::Coefficient &""'"); } arg1 = reinterpret_cast< mfem::Coefficient * >(argp1); { try { result = (mfem::VectorConvectionNLFIntegrator *)new mfem::VectorConvectionNLFIntegrator(*arg1); } #ifdef MFEM_USE_EXCEPTIONS catch (mfem::ErrorException &_e) { std::string s("PyMFEM error (mfem::ErrorException): "), s2(_e.what()); s = s + s2; SWIG_exception(SWIG_RuntimeError, s.c_str()); } #endif catch (Swig::DirectorException &e){ SWIG_fail; } catch (...) { SWIG_exception(SWIG_RuntimeError, "unknown exception"); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_mfem__VectorConvectionNLFIntegrator, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_new_VectorConvectionNLFIntegrator__SWIG_1(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) { PyObject *resultobj = 0; mfem::VectorConvectionNLFIntegrator *result = 0 ; if ((nobjs < 0) || (nobjs > 0)) SWIG_fail; { try { result = (mfem::VectorConvectionNLFIntegrator *)new mfem::VectorConvectionNLFIntegrator(); } #ifdef MFEM_USE_EXCEPTIONS catch (mfem::ErrorException &_e) { std::string s("PyMFEM error (mfem::ErrorException): "), s2(_e.what()); s = s + s2; SWIG_exception(SWIG_RuntimeError, s.c_str()); } #endif catch (Swig::DirectorException &e){ SWIG_fail; } catch (...) { SWIG_exception(SWIG_RuntimeError, "unknown exception"); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_mfem__VectorConvectionNLFIntegrator, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_new_VectorConvectionNLFIntegrator(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[2] = { 0 }; if (!(argc = SWIG_Python_UnpackTuple(args, "new_VectorConvectionNLFIntegrator", 0, 1, argv))) SWIG_fail; --argc; if (argc == 0) { return _wrap_new_VectorConvectionNLFIntegrator__SWIG_1(self, argc, argv); } if (argc == 1) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_mfem__Coefficient, SWIG_POINTER_NO_NULL); _v = SWIG_CheckState(res); if (_v) { return _wrap_new_VectorConvectionNLFIntegrator__SWIG_0(self, argc, argv); } } fail: SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'new_VectorConvectionNLFIntegrator'.\n" " Possible C/C++ prototypes are:\n" " mfem::VectorConvectionNLFIntegrator::VectorConvectionNLFIntegrator(mfem::Coefficient &)\n" " mfem::VectorConvectionNLFIntegrator::VectorConvectionNLFIntegrator()\n"); return 0; } SWIGINTERN PyObject *_wrap_VectorConvectionNLFIntegrator_GetRule(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { PyObject *resultobj = 0; mfem::FiniteElement *arg1 = 0 ; mfem::ElementTransformation *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; char * kwnames[] = { (char *)"fe", (char *)"T", NULL }; mfem::IntegrationRule *result = 0 ; if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OO:VectorConvectionNLFIntegrator_GetRule", kwnames, &obj0, &obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_mfem__FiniteElement, 0 | 0); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VectorConvectionNLFIntegrator_GetRule" "', argument " "1"" of type '" "mfem::FiniteElement const &""'"); } if (!argp1) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "VectorConvectionNLFIntegrator_GetRule" "', argument " "1"" of type '" "mfem::FiniteElement const &""'"); } arg1 = reinterpret_cast< mfem::FiniteElement * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_mfem__ElementTransformation, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "VectorConvectionNLFIntegrator_GetRule" "', argument " "2"" of type '" "mfem::ElementTransformation &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "VectorConvectionNLFIntegrator_GetRule" "', argument " "2"" of type '" "mfem::ElementTransformation &""'"); } arg2 = reinterpret_cast< mfem::ElementTransformation * >(argp2); { try { result = (mfem::IntegrationRule *) &mfem::VectorConvectionNLFIntegrator::GetRule((mfem::FiniteElement const &)*arg1,*arg2); } #ifdef MFEM_USE_EXCEPTIONS catch (mfem::ErrorException &_e) { std::string s("PyMFEM error (mfem::ErrorException): "), s2(_e.what()); s = s + s2; SWIG_exception(SWIG_RuntimeError, s.c_str()); } #endif catch (Swig::DirectorException &e){ SWIG_fail; } catch (...) { SWIG_exception(SWIG_RuntimeError, "unknown exception"); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_mfem__IntegrationRule, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VectorConvectionNLFIntegrator_AssembleElementVector(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { PyObject *resultobj = 0; mfem::VectorConvectionNLFIntegrator *arg1 = (mfem::VectorConvectionNLFIntegrator *) 0 ; mfem::FiniteElement *arg2 = 0 ; mfem::ElementTransformation *arg3 = 0 ; mfem::Vector *arg4 = 0 ; mfem::Vector *arg5 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; void *argp5 = 0 ; int res5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; char * kwnames[] = { (char *)"self", (char *)"el", (char *)"trans", (char *)"elfun", (char *)"elvect", NULL }; if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOOOO:VectorConvectionNLFIntegrator_AssembleElementVector", kwnames, &obj0, &obj1, &obj2, &obj3, &obj4)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_mfem__VectorConvectionNLFIntegrator, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VectorConvectionNLFIntegrator_AssembleElementVector" "', argument " "1"" of type '" "mfem::VectorConvectionNLFIntegrator *""'"); } arg1 = reinterpret_cast< mfem::VectorConvectionNLFIntegrator * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_mfem__FiniteElement, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "VectorConvectionNLFIntegrator_AssembleElementVector" "', argument " "2"" of type '" "mfem::FiniteElement const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "VectorConvectionNLFIntegrator_AssembleElementVector" "', argument " "2"" of type '" "mfem::FiniteElement const &""'"); } arg2 = reinterpret_cast< mfem::FiniteElement * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_mfem__ElementTransformation, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "VectorConvectionNLFIntegrator_AssembleElementVector" "', argument " "3"" of type '" "mfem::ElementTransformation &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "VectorConvectionNLFIntegrator_AssembleElementVector" "', argument " "3"" of type '" "mfem::ElementTransformation &""'"); } arg3 = reinterpret_cast< mfem::ElementTransformation * >(argp3); res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_mfem__Vector, 0 | 0); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "VectorConvectionNLFIntegrator_AssembleElementVector" "', argument " "4"" of type '" "mfem::Vector const &""'"); } if (!argp4) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "VectorConvectionNLFIntegrator_AssembleElementVector" "', argument " "4"" of type '" "mfem::Vector const &""'"); } arg4 = reinterpret_cast< mfem::Vector * >(argp4); res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_mfem__Vector, 0 ); if (!SWIG_IsOK(res5)) { SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "VectorConvectionNLFIntegrator_AssembleElementVector" "', argument " "5"" of type '" "mfem::Vector &""'"); } if (!argp5) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "VectorConvectionNLFIntegrator_AssembleElementVector" "', argument " "5"" of type '" "mfem::Vector &""'"); } arg5 = reinterpret_cast< mfem::Vector * >(argp5); { try { (arg1)->AssembleElementVector((mfem::FiniteElement const &)*arg2,*arg3,(mfem::Vector const &)*arg4,*arg5); } #ifdef MFEM_USE_EXCEPTIONS catch (mfem::ErrorException &_e) { std::string s("PyMFEM error (mfem::ErrorException): "), s2(_e.what()); s = s + s2; SWIG_exception(SWIG_RuntimeError, s.c_str()); } #endif catch (Swig::DirectorException &e){ SWIG_fail; } catch (...) { SWIG_exception(SWIG_RuntimeError, "unknown exception"); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VectorConvectionNLFIntegrator_AssembleElementGrad(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { PyObject *resultobj = 0; mfem::VectorConvectionNLFIntegrator *arg1 = (mfem::VectorConvectionNLFIntegrator *) 0 ; mfem::FiniteElement *arg2 = 0 ; mfem::ElementTransformation *arg3 = 0 ; mfem::Vector *arg4 = 0 ; mfem::DenseMatrix *arg5 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; void *argp5 = 0 ; int res5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; char * kwnames[] = { (char *)"self", (char *)"el", (char *)"trans", (char *)"elfun", (char *)"elmat", NULL }; if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOOOO:VectorConvectionNLFIntegrator_AssembleElementGrad", kwnames, &obj0, &obj1, &obj2, &obj3, &obj4)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_mfem__VectorConvectionNLFIntegrator, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VectorConvectionNLFIntegrator_AssembleElementGrad" "', argument " "1"" of type '" "mfem::VectorConvectionNLFIntegrator *""'"); } arg1 = reinterpret_cast< mfem::VectorConvectionNLFIntegrator * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_mfem__FiniteElement, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "VectorConvectionNLFIntegrator_AssembleElementGrad" "', argument " "2"" of type '" "mfem::FiniteElement const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "VectorConvectionNLFIntegrator_AssembleElementGrad" "', argument " "2"" of type '" "mfem::FiniteElement const &""'"); } arg2 = reinterpret_cast< mfem::FiniteElement * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_mfem__ElementTransformation, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "VectorConvectionNLFIntegrator_AssembleElementGrad" "', argument " "3"" of type '" "mfem::ElementTransformation &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "VectorConvectionNLFIntegrator_AssembleElementGrad" "', argument " "3"" of type '" "mfem::ElementTransformation &""'"); } arg3 = reinterpret_cast< mfem::ElementTransformation * >(argp3); res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_mfem__Vector, 0 | 0); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "VectorConvectionNLFIntegrator_AssembleElementGrad" "', argument " "4"" of type '" "mfem::Vector const &""'"); } if (!argp4) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "VectorConvectionNLFIntegrator_AssembleElementGrad" "', argument " "4"" of type '" "mfem::Vector const &""'"); } arg4 = reinterpret_cast< mfem::Vector * >(argp4); res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_mfem__DenseMatrix, 0 ); if (!SWIG_IsOK(res5)) { SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "VectorConvectionNLFIntegrator_AssembleElementGrad" "', argument " "5"" of type '" "mfem::DenseMatrix &""'"); } if (!argp5) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "VectorConvectionNLFIntegrator_AssembleElementGrad" "', argument " "5"" of type '" "mfem::DenseMatrix &""'"); } arg5 = reinterpret_cast< mfem::DenseMatrix * >(argp5); { try { (arg1)->AssembleElementGrad((mfem::FiniteElement const &)*arg2,*arg3,(mfem::Vector const &)*arg4,*arg5); } #ifdef MFEM_USE_EXCEPTIONS catch (mfem::ErrorException &_e) { std::string s("PyMFEM error (mfem::ErrorException): "), s2(_e.what()); s = s + s2; SWIG_exception(SWIG_RuntimeError, s.c_str()); } #endif catch (Swig::DirectorException &e){ SWIG_fail; } catch (...) { SWIG_exception(SWIG_RuntimeError, "unknown exception"); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VectorConvectionNLFIntegrator_AssemblePA__SWIG_0_0(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; mfem::VectorConvectionNLFIntegrator *arg1 = (mfem::VectorConvectionNLFIntegrator *) 0 ; mfem::FiniteElementSpace *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_mfem__VectorConvectionNLFIntegrator, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VectorConvectionNLFIntegrator_AssemblePA" "', argument " "1"" of type '" "mfem::VectorConvectionNLFIntegrator *""'"); } arg1 = reinterpret_cast< mfem::VectorConvectionNLFIntegrator * >(argp1); res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_mfem__FiniteElementSpace, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "VectorConvectionNLFIntegrator_AssemblePA" "', argument " "2"" of type '" "mfem::FiniteElementSpace const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "VectorConvectionNLFIntegrator_AssemblePA" "', argument " "2"" of type '" "mfem::FiniteElementSpace const &""'"); } arg2 = reinterpret_cast< mfem::FiniteElementSpace * >(argp2); { try { (arg1)->AssemblePA((mfem::FiniteElementSpace const &)*arg2); } #ifdef MFEM_USE_EXCEPTIONS catch (mfem::ErrorException &_e) { std::string s("PyMFEM error (mfem::ErrorException): "), s2(_e.what()); s = s + s2; SWIG_exception(SWIG_RuntimeError, s.c_str()); } #endif catch (Swig::DirectorException &e){ SWIG_fail; } catch (...) { SWIG_exception(SWIG_RuntimeError, "unknown exception"); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VectorConvectionNLFIntegrator_AssemblePA__SWIG_0_1(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; mfem::VectorConvectionNLFIntegrator *arg1 = (mfem::VectorConvectionNLFIntegrator *) 0 ; mfem::FiniteElementSpace *arg2 = 0 ; mfem::FiniteElementSpace *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_mfem__VectorConvectionNLFIntegrator, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VectorConvectionNLFIntegrator_AssemblePA" "', argument " "1"" of type '" "mfem::VectorConvectionNLFIntegrator *""'"); } arg1 = reinterpret_cast< mfem::VectorConvectionNLFIntegrator * >(argp1); res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_mfem__FiniteElementSpace, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "VectorConvectionNLFIntegrator_AssemblePA" "', argument " "2"" of type '" "mfem::FiniteElementSpace const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "VectorConvectionNLFIntegrator_AssemblePA" "', argument " "2"" of type '" "mfem::FiniteElementSpace const &""'"); } arg2 = reinterpret_cast< mfem::FiniteElementSpace * >(argp2); res3 = SWIG_ConvertPtr(swig_obj[2], &argp3, SWIGTYPE_p_mfem__FiniteElementSpace, 0 | 0); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "VectorConvectionNLFIntegrator_AssemblePA" "', argument " "3"" of type '" "mfem::FiniteElementSpace const &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "VectorConvectionNLFIntegrator_AssemblePA" "', argument " "3"" of type '" "mfem::FiniteElementSpace const &""'"); } arg3 = reinterpret_cast< mfem::FiniteElementSpace * >(argp3); { try { (arg1)->AssemblePA((mfem::FiniteElementSpace const &)*arg2,(mfem::FiniteElementSpace const &)*arg3); } #ifdef MFEM_USE_EXCEPTIONS catch (mfem::ErrorException &_e) { std::string s("PyMFEM error (mfem::ErrorException): "), s2(_e.what()); s = s + s2; SWIG_exception(SWIG_RuntimeError, s.c_str()); } #endif catch (Swig::DirectorException &e){ SWIG_fail; } catch (...) { SWIG_exception(SWIG_RuntimeError, "unknown exception"); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VectorConvectionNLFIntegrator_AssemblePA__SWIG_1(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; mfem::VectorConvectionNLFIntegrator *arg1 = (mfem::VectorConvectionNLFIntegrator *) 0 ; mfem::FiniteElementSpace *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_mfem__VectorConvectionNLFIntegrator, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VectorConvectionNLFIntegrator_AssemblePA" "', argument " "1"" of type '" "mfem::VectorConvectionNLFIntegrator *""'"); } arg1 = reinterpret_cast< mfem::VectorConvectionNLFIntegrator * >(argp1); res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_mfem__FiniteElementSpace, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "VectorConvectionNLFIntegrator_AssemblePA" "', argument " "2"" of type '" "mfem::FiniteElementSpace const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "VectorConvectionNLFIntegrator_AssemblePA" "', argument " "2"" of type '" "mfem::FiniteElementSpace const &""'"); } arg2 = reinterpret_cast< mfem::FiniteElementSpace * >(argp2); { try { (arg1)->AssemblePA((mfem::FiniteElementSpace const &)*arg2); } #ifdef MFEM_USE_EXCEPTIONS catch (mfem::ErrorException &_e) { std::string s("PyMFEM error (mfem::ErrorException): "), s2(_e.what()); s = s + s2; SWIG_exception(SWIG_RuntimeError, s.c_str()); } #endif catch (Swig::DirectorException &e){ SWIG_fail; } catch (...) { SWIG_exception(SWIG_RuntimeError, "unknown exception"); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VectorConvectionNLFIntegrator_AssemblePA(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0 }; if (!(argc = SWIG_Python_UnpackTuple(args, "VectorConvectionNLFIntegrator_AssemblePA", 0, 3, argv))) SWIG_fail; --argc; if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_mfem__VectorConvectionNLFIntegrator, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_mfem__FiniteElementSpace, SWIG_POINTER_NO_NULL | 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_VectorConvectionNLFIntegrator_AssemblePA__SWIG_0_0(self, argc, argv); } } } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_mfem__VectorConvectionNLFIntegrator, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_mfem__FiniteElementSpace, SWIG_POINTER_NO_NULL | 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_VectorConvectionNLFIntegrator_AssemblePA__SWIG_1(self, argc, argv); } } } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_mfem__VectorConvectionNLFIntegrator, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_mfem__FiniteElementSpace, SWIG_POINTER_NO_NULL | 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_mfem__FiniteElementSpace, SWIG_POINTER_NO_NULL | 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_VectorConvectionNLFIntegrator_AssemblePA__SWIG_0_1(self, argc, argv); } } } } fail: SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'VectorConvectionNLFIntegrator_AssemblePA'.\n" " Possible C/C++ prototypes are:\n" " AssemblePA(mfem::FiniteElementSpace const &)\n" " AssemblePA(mfem::FiniteElementSpace const &,mfem::FiniteElementSpace const &)\n" " mfem::VectorConvectionNLFIntegrator::AssemblePA(mfem::FiniteElementSpace const &)\n"); return 0; } SWIGINTERN PyObject *_wrap_VectorConvectionNLFIntegrator_AddMultPA(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { PyObject *resultobj = 0; mfem::VectorConvectionNLFIntegrator *arg1 = (mfem::VectorConvectionNLFIntegrator *) 0 ; mfem::Vector *arg2 = 0 ; mfem::Vector *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; char * kwnames[] = { (char *)"self", (char *)"x", (char *)"y", NULL }; if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOO:VectorConvectionNLFIntegrator_AddMultPA", kwnames, &obj0, &obj1, &obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_mfem__VectorConvectionNLFIntegrator, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VectorConvectionNLFIntegrator_AddMultPA" "', argument " "1"" of type '" "mfem::VectorConvectionNLFIntegrator const *""'"); } arg1 = reinterpret_cast< mfem::VectorConvectionNLFIntegrator * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_mfem__Vector, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "VectorConvectionNLFIntegrator_AddMultPA" "', argument " "2"" of type '" "mfem::Vector const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "VectorConvectionNLFIntegrator_AddMultPA" "', argument " "2"" of type '" "mfem::Vector const &""'"); } arg2 = reinterpret_cast< mfem::Vector * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_mfem__Vector, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "VectorConvectionNLFIntegrator_AddMultPA" "', argument " "3"" of type '" "mfem::Vector &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "VectorConvectionNLFIntegrator_AddMultPA" "', argument " "3"" of type '" "mfem::Vector &""'"); } arg3 = reinterpret_cast< mfem::Vector * >(argp3); { try { ((mfem::VectorConvectionNLFIntegrator const *)arg1)->AddMultPA((mfem::Vector const &)*arg2,*arg3); } #ifdef MFEM_USE_EXCEPTIONS catch (mfem::ErrorException &_e) { std::string s("PyMFEM error (mfem::ErrorException): "), s2(_e.what()); s = s + s2; SWIG_exception(SWIG_RuntimeError, s.c_str()); } #endif catch (Swig::DirectorException &e){ SWIG_fail; } catch (...) { SWIG_exception(SWIG_RuntimeError, "unknown exception"); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_delete_VectorConvectionNLFIntegrator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; mfem::VectorConvectionNLFIntegrator *arg1 = (mfem::VectorConvectionNLFIntegrator *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject *swig_obj[1] ; if (!args) SWIG_fail; swig_obj[0] = args; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_mfem__VectorConvectionNLFIntegrator, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_VectorConvectionNLFIntegrator" "', argument " "1"" of type '" "mfem::VectorConvectionNLFIntegrator *""'"); } arg1 = reinterpret_cast< mfem::VectorConvectionNLFIntegrator * >(argp1); { try { delete arg1; } #ifdef MFEM_USE_EXCEPTIONS catch (mfem::ErrorException &_e) { std::string s("PyMFEM error (mfem::ErrorException): "), s2(_e.what()); s = s + s2; SWIG_exception(SWIG_RuntimeError, s.c_str()); } #endif catch (Swig::DirectorException &e){ SWIG_fail; } catch (...) { SWIG_exception(SWIG_RuntimeError, "unknown exception"); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *VectorConvectionNLFIntegrator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *obj; if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL; SWIG_TypeNewClientData(SWIGTYPE_p_mfem__VectorConvectionNLFIntegrator, SWIG_NewClientData(obj)); return SWIG_Py_Void(); } SWIGINTERN PyObject *VectorConvectionNLFIntegrator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { return SWIG_Python_InitShadowInstance(args); } static PyMethodDef SwigMethods[] = { { "SWIG_PyInstanceMethod_New", SWIG_PyInstanceMethod_New, METH_O, NULL}, { "SWIG_PyStaticMethod_New", SWIG_PyStaticMethod_New, METH_O, NULL}, { "new_NonlinearFormIntegrator", (PyCFunction)(void(*)(void))_wrap_new_NonlinearFormIntegrator, METH_VARARGS|METH_KEYWORDS, "new_NonlinearFormIntegrator(PyObject * _self, IntegrationRule ir=None) -> NonlinearFormIntegrator"}, { "NonlinearFormIntegrator_SetIntRule", (PyCFunction)(void(*)(void))_wrap_NonlinearFormIntegrator_SetIntRule, METH_VARARGS|METH_KEYWORDS, "NonlinearFormIntegrator_SetIntRule(NonlinearFormIntegrator self, IntegrationRule ir)"}, { "NonlinearFormIntegrator_SetIntegrationRule", (PyCFunction)(void(*)(void))_wrap_NonlinearFormIntegrator_SetIntegrationRule, METH_VARARGS|METH_KEYWORDS, "NonlinearFormIntegrator_SetIntegrationRule(NonlinearFormIntegrator self, IntegrationRule irule)"}, { "NonlinearFormIntegrator_AssembleElementVector", (PyCFunction)(void(*)(void))_wrap_NonlinearFormIntegrator_AssembleElementVector, METH_VARARGS|METH_KEYWORDS, "NonlinearFormIntegrator_AssembleElementVector(NonlinearFormIntegrator self, FiniteElement el, ElementTransformation Tr, Vector elfun, Vector elvect)"}, { "NonlinearFormIntegrator_AssembleFaceVector", (PyCFunction)(void(*)(void))_wrap_NonlinearFormIntegrator_AssembleFaceVector, METH_VARARGS|METH_KEYWORDS, "NonlinearFormIntegrator_AssembleFaceVector(NonlinearFormIntegrator self, FiniteElement el1, FiniteElement el2, FaceElementTransformations Tr, Vector elfun, Vector elvect)"}, { "NonlinearFormIntegrator_AssembleElementGrad", (PyCFunction)(void(*)(void))_wrap_NonlinearFormIntegrator_AssembleElementGrad, METH_VARARGS|METH_KEYWORDS, "NonlinearFormIntegrator_AssembleElementGrad(NonlinearFormIntegrator self, FiniteElement el, ElementTransformation Tr, Vector elfun, DenseMatrix elmat)"}, { "NonlinearFormIntegrator_AssembleFaceGrad", (PyCFunction)(void(*)(void))_wrap_NonlinearFormIntegrator_AssembleFaceGrad, METH_VARARGS|METH_KEYWORDS, "NonlinearFormIntegrator_AssembleFaceGrad(NonlinearFormIntegrator self, FiniteElement el1, FiniteElement el2, FaceElementTransformations Tr, Vector elfun, DenseMatrix elmat)"}, { "NonlinearFormIntegrator_GetElementEnergy", (PyCFunction)(void(*)(void))_wrap_NonlinearFormIntegrator_GetElementEnergy, METH_VARARGS|METH_KEYWORDS, "NonlinearFormIntegrator_GetElementEnergy(NonlinearFormIntegrator self, FiniteElement el, ElementTransformation Tr, Vector elfun) -> double"}, { "NonlinearFormIntegrator_AssemblePA", _wrap_NonlinearFormIntegrator_AssemblePA, METH_VARARGS, "\n" "NonlinearFormIntegrator_AssemblePA(NonlinearFormIntegrator self, FiniteElementSpace fes)\n" "NonlinearFormIntegrator_AssemblePA(NonlinearFormIntegrator self, FiniteElementSpace trial_fes, FiniteElementSpace test_fes)\n" ""}, { "NonlinearFormIntegrator_AddMultPA", (PyCFunction)(void(*)(void))_wrap_NonlinearFormIntegrator_AddMultPA, METH_VARARGS|METH_KEYWORDS, "NonlinearFormIntegrator_AddMultPA(NonlinearFormIntegrator self, Vector x, Vector y)"}, { "delete_NonlinearFormIntegrator", _wrap_delete_NonlinearFormIntegrator, METH_O, "delete_NonlinearFormIntegrator(NonlinearFormIntegrator self)"}, { "disown_NonlinearFormIntegrator", (PyCFunction)(void(*)(void))_wrap_disown_NonlinearFormIntegrator, METH_VARARGS|METH_KEYWORDS, NULL}, { "NonlinearFormIntegrator_swigregister", NonlinearFormIntegrator_swigregister, METH_O, NULL}, { "NonlinearFormIntegrator_swiginit", NonlinearFormIntegrator_swiginit, METH_VARARGS, NULL}, { "BlockNonlinearFormIntegrator_GetElementEnergy", (PyCFunction)(void(*)(void))_wrap_BlockNonlinearFormIntegrator_GetElementEnergy, METH_VARARGS|METH_KEYWORDS, "BlockNonlinearFormIntegrator_GetElementEnergy(BlockNonlinearFormIntegrator self, mfem::Array< mfem::FiniteElement const * > const & el, ElementTransformation Tr, mfem::Array< mfem::Vector const * > const & elfun) -> double"}, { "BlockNonlinearFormIntegrator_AssembleElementVector", (PyCFunction)(void(*)(void))_wrap_BlockNonlinearFormIntegrator_AssembleElementVector, METH_VARARGS|METH_KEYWORDS, "BlockNonlinearFormIntegrator_AssembleElementVector(BlockNonlinearFormIntegrator self, mfem::Array< mfem::FiniteElement const * > const & el, ElementTransformation Tr, mfem::Array< mfem::Vector const * > const & elfun, mfem::Array< mfem::Vector * > const & elvec)"}, { "BlockNonlinearFormIntegrator_AssembleFaceVector", (PyCFunction)(void(*)(void))_wrap_BlockNonlinearFormIntegrator_AssembleFaceVector, METH_VARARGS|METH_KEYWORDS, "BlockNonlinearFormIntegrator_AssembleFaceVector(BlockNonlinearFormIntegrator self, mfem::Array< mfem::FiniteElement const * > const & el1, mfem::Array< mfem::FiniteElement const * > const & el2, FaceElementTransformations Tr, mfem::Array< mfem::Vector const * > const & elfun, mfem::Array< mfem::Vector * > const & elvect)"}, { "BlockNonlinearFormIntegrator_AssembleElementGrad", (PyCFunction)(void(*)(void))_wrap_BlockNonlinearFormIntegrator_AssembleElementGrad, METH_VARARGS|METH_KEYWORDS, "BlockNonlinearFormIntegrator_AssembleElementGrad(BlockNonlinearFormIntegrator self, mfem::Array< mfem::FiniteElement const * > const & el, ElementTransformation Tr, mfem::Array< mfem::Vector const * > const & elfun, mfem::Array2D< mfem::DenseMatrix * > const & elmats)"}, { "BlockNonlinearFormIntegrator_AssembleFaceGrad", (PyCFunction)(void(*)(void))_wrap_BlockNonlinearFormIntegrator_AssembleFaceGrad, METH_VARARGS|METH_KEYWORDS, "BlockNonlinearFormIntegrator_AssembleFaceGrad(BlockNonlinearFormIntegrator self, mfem::Array< mfem::FiniteElement const * > const & el1, mfem::Array< mfem::FiniteElement const * > const & el2, FaceElementTransformations Tr, mfem::Array< mfem::Vector const * > const & elfun, mfem::Array2D< mfem::DenseMatrix * > const & elmats)"}, { "delete_BlockNonlinearFormIntegrator", _wrap_delete_BlockNonlinearFormIntegrator, METH_O, "delete_BlockNonlinearFormIntegrator(BlockNonlinearFormIntegrator self)"}, { "new_BlockNonlinearFormIntegrator", _wrap_new_BlockNonlinearFormIntegrator, METH_NOARGS, "new_BlockNonlinearFormIntegrator() -> BlockNonlinearFormIntegrator"}, { "BlockNonlinearFormIntegrator_swigregister", BlockNonlinearFormIntegrator_swigregister, METH_O, NULL}, { "BlockNonlinearFormIntegrator_swiginit", BlockNonlinearFormIntegrator_swiginit, METH_VARARGS, NULL}, { "delete_HyperelasticModel", _wrap_delete_HyperelasticModel, METH_O, "delete_HyperelasticModel(HyperelasticModel self)"}, { "HyperelasticModel_SetTransformation", (PyCFunction)(void(*)(void))_wrap_HyperelasticModel_SetTransformation, METH_VARARGS|METH_KEYWORDS, "HyperelasticModel_SetTransformation(HyperelasticModel self, ElementTransformation _Ttr)"}, { "HyperelasticModel_EvalW", (PyCFunction)(void(*)(void))_wrap_HyperelasticModel_EvalW, METH_VARARGS|METH_KEYWORDS, "HyperelasticModel_EvalW(HyperelasticModel self, DenseMatrix Jpt) -> double"}, { "HyperelasticModel_EvalP", (PyCFunction)(void(*)(void))_wrap_HyperelasticModel_EvalP, METH_VARARGS|METH_KEYWORDS, "HyperelasticModel_EvalP(HyperelasticModel self, DenseMatrix Jpt, DenseMatrix P)"}, { "HyperelasticModel_AssembleH", (PyCFunction)(void(*)(void))_wrap_HyperelasticModel_AssembleH, METH_VARARGS|METH_KEYWORDS, "HyperelasticModel_AssembleH(HyperelasticModel self, DenseMatrix Jpt, DenseMatrix DS, double const weight, DenseMatrix A)"}, { "HyperelasticModel_swigregister", HyperelasticModel_swigregister, METH_O, NULL}, { "InverseHarmonicModel_EvalW", (PyCFunction)(void(*)(void))_wrap_InverseHarmonicModel_EvalW, METH_VARARGS|METH_KEYWORDS, "InverseHarmonicModel_EvalW(InverseHarmonicModel self, DenseMatrix J) -> double"}, { "InverseHarmonicModel_EvalP", (PyCFunction)(void(*)(void))_wrap_InverseHarmonicModel_EvalP, METH_VARARGS|METH_KEYWORDS, "InverseHarmonicModel_EvalP(InverseHarmonicModel self, DenseMatrix J, DenseMatrix P)"}, { "InverseHarmonicModel_AssembleH", (PyCFunction)(void(*)(void))_wrap_InverseHarmonicModel_AssembleH, METH_VARARGS|METH_KEYWORDS, "InverseHarmonicModel_AssembleH(InverseHarmonicModel self, DenseMatrix J, DenseMatrix DS, double const weight, DenseMatrix A)"}, { "new_InverseHarmonicModel", _wrap_new_InverseHarmonicModel, METH_NOARGS, "new_InverseHarmonicModel() -> InverseHarmonicModel"}, { "delete_InverseHarmonicModel", _wrap_delete_InverseHarmonicModel, METH_O, "delete_InverseHarmonicModel(InverseHarmonicModel self)"}, { "InverseHarmonicModel_swigregister", InverseHarmonicModel_swigregister, METH_O, NULL}, { "InverseHarmonicModel_swiginit", InverseHarmonicModel_swiginit, METH_VARARGS, NULL}, { "new_NeoHookeanModel", _wrap_new_NeoHookeanModel, METH_VARARGS, "\n" "NeoHookeanModel(double _mu, double _K, double _g=1.0)\n" "new_NeoHookeanModel(Coefficient _mu, Coefficient _K, Coefficient _g=None) -> NeoHookeanModel\n" ""}, { "NeoHookeanModel_EvalW", (PyCFunction)(void(*)(void))_wrap_NeoHookeanModel_EvalW, METH_VARARGS|METH_KEYWORDS, "NeoHookeanModel_EvalW(NeoHookeanModel self, DenseMatrix J) -> double"}, { "NeoHookeanModel_EvalP", (PyCFunction)(void(*)(void))_wrap_NeoHookeanModel_EvalP, METH_VARARGS|METH_KEYWORDS, "NeoHookeanModel_EvalP(NeoHookeanModel self, DenseMatrix J, DenseMatrix P)"}, { "NeoHookeanModel_AssembleH", (PyCFunction)(void(*)(void))_wrap_NeoHookeanModel_AssembleH, METH_VARARGS|METH_KEYWORDS, "NeoHookeanModel_AssembleH(NeoHookeanModel self, DenseMatrix J, DenseMatrix DS, double const weight, DenseMatrix A)"}, { "delete_NeoHookeanModel", _wrap_delete_NeoHookeanModel, METH_O, "delete_NeoHookeanModel(NeoHookeanModel self)"}, { "NeoHookeanModel_swigregister", NeoHookeanModel_swigregister, METH_O, NULL}, { "NeoHookeanModel_swiginit", NeoHookeanModel_swiginit, METH_VARARGS, NULL}, { "new_HyperelasticNLFIntegrator", (PyCFunction)(void(*)(void))_wrap_new_HyperelasticNLFIntegrator, METH_VARARGS|METH_KEYWORDS, "new_HyperelasticNLFIntegrator(HyperelasticModel m) -> HyperelasticNLFIntegrator"}, { "HyperelasticNLFIntegrator_GetElementEnergy", (PyCFunction)(void(*)(void))_wrap_HyperelasticNLFIntegrator_GetElementEnergy, METH_VARARGS|METH_KEYWORDS, "HyperelasticNLFIntegrator_GetElementEnergy(HyperelasticNLFIntegrator self, FiniteElement el, ElementTransformation Ttr, Vector elfun) -> double"}, { "HyperelasticNLFIntegrator_AssembleElementVector", (PyCFunction)(void(*)(void))_wrap_HyperelasticNLFIntegrator_AssembleElementVector, METH_VARARGS|METH_KEYWORDS, "HyperelasticNLFIntegrator_AssembleElementVector(HyperelasticNLFIntegrator self, FiniteElement el, ElementTransformation Ttr, Vector elfun, Vector elvect)"}, { "HyperelasticNLFIntegrator_AssembleElementGrad", (PyCFunction)(void(*)(void))_wrap_HyperelasticNLFIntegrator_AssembleElementGrad, METH_VARARGS|METH_KEYWORDS, "HyperelasticNLFIntegrator_AssembleElementGrad(HyperelasticNLFIntegrator self, FiniteElement el, ElementTransformation Ttr, Vector elfun, DenseMatrix elmat)"}, { "delete_HyperelasticNLFIntegrator", _wrap_delete_HyperelasticNLFIntegrator, METH_O, "delete_HyperelasticNLFIntegrator(HyperelasticNLFIntegrator self)"}, { "HyperelasticNLFIntegrator_swigregister", HyperelasticNLFIntegrator_swigregister, METH_O, NULL}, { "HyperelasticNLFIntegrator_swiginit", HyperelasticNLFIntegrator_swiginit, METH_VARARGS, NULL}, { "new_IncompressibleNeoHookeanIntegrator", (PyCFunction)(void(*)(void))_wrap_new_IncompressibleNeoHookeanIntegrator, METH_VARARGS|METH_KEYWORDS, "new_IncompressibleNeoHookeanIntegrator(Coefficient _mu) -> IncompressibleNeoHookeanIntegrator"}, { "IncompressibleNeoHookeanIntegrator_GetElementEnergy", (PyCFunction)(void(*)(void))_wrap_IncompressibleNeoHookeanIntegrator_GetElementEnergy, METH_VARARGS|METH_KEYWORDS, "IncompressibleNeoHookeanIntegrator_GetElementEnergy(IncompressibleNeoHookeanIntegrator self, mfem::Array< mfem::FiniteElement const * > const & el, ElementTransformation Tr, mfem::Array< mfem::Vector const * > const & elfun) -> double"}, { "IncompressibleNeoHookeanIntegrator_AssembleElementVector", (PyCFunction)(void(*)(void))_wrap_IncompressibleNeoHookeanIntegrator_AssembleElementVector, METH_VARARGS|METH_KEYWORDS, "IncompressibleNeoHookeanIntegrator_AssembleElementVector(IncompressibleNeoHookeanIntegrator self, mfem::Array< mfem::FiniteElement const * > const & el, ElementTransformation Tr, mfem::Array< mfem::Vector const * > const & elfun, mfem::Array< mfem::Vector * > const & elvec)"}, { "IncompressibleNeoHookeanIntegrator_AssembleElementGrad", (PyCFunction)(void(*)(void))_wrap_IncompressibleNeoHookeanIntegrator_AssembleElementGrad, METH_VARARGS|METH_KEYWORDS, "IncompressibleNeoHookeanIntegrator_AssembleElementGrad(IncompressibleNeoHookeanIntegrator self, mfem::Array< mfem::FiniteElement const * > const & el, ElementTransformation Tr, mfem::Array< mfem::Vector const * > const & elfun, mfem::Array2D< mfem::DenseMatrix * > const & elmats)"}, { "delete_IncompressibleNeoHookeanIntegrator", _wrap_delete_IncompressibleNeoHookeanIntegrator, METH_O, "delete_IncompressibleNeoHookeanIntegrator(IncompressibleNeoHookeanIntegrator self)"}, { "IncompressibleNeoHookeanIntegrator_swigregister", IncompressibleNeoHookeanIntegrator_swigregister, METH_O, NULL}, { "IncompressibleNeoHookeanIntegrator_swiginit", IncompressibleNeoHookeanIntegrator_swiginit, METH_VARARGS, NULL}, { "new_VectorConvectionNLFIntegrator", _wrap_new_VectorConvectionNLFIntegrator, METH_VARARGS, "\n" "VectorConvectionNLFIntegrator(Coefficient q)\n" "new_VectorConvectionNLFIntegrator() -> VectorConvectionNLFIntegrator\n" ""}, { "VectorConvectionNLFIntegrator_GetRule", (PyCFunction)(void(*)(void))_wrap_VectorConvectionNLFIntegrator_GetRule, METH_VARARGS|METH_KEYWORDS, "VectorConvectionNLFIntegrator_GetRule(FiniteElement fe, ElementTransformation T) -> IntegrationRule"}, { "VectorConvectionNLFIntegrator_AssembleElementVector", (PyCFunction)(void(*)(void))_wrap_VectorConvectionNLFIntegrator_AssembleElementVector, METH_VARARGS|METH_KEYWORDS, "VectorConvectionNLFIntegrator_AssembleElementVector(VectorConvectionNLFIntegrator self, FiniteElement el, ElementTransformation trans, Vector elfun, Vector elvect)"}, { "VectorConvectionNLFIntegrator_AssembleElementGrad", (PyCFunction)(void(*)(void))_wrap_VectorConvectionNLFIntegrator_AssembleElementGrad, METH_VARARGS|METH_KEYWORDS, "VectorConvectionNLFIntegrator_AssembleElementGrad(VectorConvectionNLFIntegrator self, FiniteElement el, ElementTransformation trans, Vector elfun, DenseMatrix elmat)"}, { "VectorConvectionNLFIntegrator_AssemblePA", _wrap_VectorConvectionNLFIntegrator_AssemblePA, METH_VARARGS, "\n" "VectorConvectionNLFIntegrator_AssemblePA(VectorConvectionNLFIntegrator self, FiniteElementSpace fes)\n" "VectorConvectionNLFIntegrator_AssemblePA(VectorConvectionNLFIntegrator self, FiniteElementSpace trial_fes, FiniteElementSpace test_fes)\n" "VectorConvectionNLFIntegrator_AssemblePA(VectorConvectionNLFIntegrator self, FiniteElementSpace fes)\n" ""}, { "VectorConvectionNLFIntegrator_AddMultPA", (PyCFunction)(void(*)(void))_wrap_VectorConvectionNLFIntegrator_AddMultPA, METH_VARARGS|METH_KEYWORDS, "VectorConvectionNLFIntegrator_AddMultPA(VectorConvectionNLFIntegrator self, Vector x, Vector y)"}, { "delete_VectorConvectionNLFIntegrator", _wrap_delete_VectorConvectionNLFIntegrator, METH_O, "delete_VectorConvectionNLFIntegrator(VectorConvectionNLFIntegrator self)"}, { "VectorConvectionNLFIntegrator_swigregister", VectorConvectionNLFIntegrator_swigregister, METH_O, NULL}, { "VectorConvectionNLFIntegrator_swiginit", VectorConvectionNLFIntegrator_swiginit, METH_VARARGS, NULL}, { NULL, NULL, 0, NULL } }; static PyMethodDef SwigMethods_proxydocs[] = { { "SWIG_PyInstanceMethod_New", SWIG_PyInstanceMethod_New, METH_O, NULL}, { "SWIG_PyStaticMethod_New", SWIG_PyStaticMethod_New, METH_O, NULL}, { "new_NonlinearFormIntegrator", (PyCFunction)(void(*)(void))_wrap_new_NonlinearFormIntegrator, METH_VARARGS|METH_KEYWORDS, "new_NonlinearFormIntegrator(PyObject * _self, IntegrationRule ir=None) -> NonlinearFormIntegrator"}, { "NonlinearFormIntegrator_SetIntRule", (PyCFunction)(void(*)(void))_wrap_NonlinearFormIntegrator_SetIntRule, METH_VARARGS|METH_KEYWORDS, "SetIntRule(NonlinearFormIntegrator self, IntegrationRule ir)"}, { "NonlinearFormIntegrator_SetIntegrationRule", (PyCFunction)(void(*)(void))_wrap_NonlinearFormIntegrator_SetIntegrationRule, METH_VARARGS|METH_KEYWORDS, "SetIntegrationRule(NonlinearFormIntegrator self, IntegrationRule irule)"}, { "NonlinearFormIntegrator_AssembleElementVector", (PyCFunction)(void(*)(void))_wrap_NonlinearFormIntegrator_AssembleElementVector, METH_VARARGS|METH_KEYWORDS, "AssembleElementVector(NonlinearFormIntegrator self, FiniteElement el, ElementTransformation Tr, Vector elfun, Vector elvect)"}, { "NonlinearFormIntegrator_AssembleFaceVector", (PyCFunction)(void(*)(void))_wrap_NonlinearFormIntegrator_AssembleFaceVector, METH_VARARGS|METH_KEYWORDS, "AssembleFaceVector(NonlinearFormIntegrator self, FiniteElement el1, FiniteElement el2, FaceElementTransformations Tr, Vector elfun, Vector elvect)"}, { "NonlinearFormIntegrator_AssembleElementGrad", (PyCFunction)(void(*)(void))_wrap_NonlinearFormIntegrator_AssembleElementGrad, METH_VARARGS|METH_KEYWORDS, "AssembleElementGrad(NonlinearFormIntegrator self, FiniteElement el, ElementTransformation Tr, Vector elfun, DenseMatrix elmat)"}, { "NonlinearFormIntegrator_AssembleFaceGrad", (PyCFunction)(void(*)(void))_wrap_NonlinearFormIntegrator_AssembleFaceGrad, METH_VARARGS|METH_KEYWORDS, "AssembleFaceGrad(NonlinearFormIntegrator self, FiniteElement el1, FiniteElement el2, FaceElementTransformations Tr, Vector elfun, DenseMatrix elmat)"}, { "NonlinearFormIntegrator_GetElementEnergy", (PyCFunction)(void(*)(void))_wrap_NonlinearFormIntegrator_GetElementEnergy, METH_VARARGS|METH_KEYWORDS, "GetElementEnergy(NonlinearFormIntegrator self, FiniteElement el, ElementTransformation Tr, Vector elfun) -> double"}, { "NonlinearFormIntegrator_AssemblePA", _wrap_NonlinearFormIntegrator_AssemblePA, METH_VARARGS, "\n" "AssemblePA(NonlinearFormIntegrator self, FiniteElementSpace fes)\n" "AssemblePA(NonlinearFormIntegrator self, FiniteElementSpace trial_fes, FiniteElementSpace test_fes)\n" ""}, { "NonlinearFormIntegrator_AddMultPA", (PyCFunction)(void(*)(void))_wrap_NonlinearFormIntegrator_AddMultPA, METH_VARARGS|METH_KEYWORDS, "AddMultPA(NonlinearFormIntegrator self, Vector x, Vector y)"}, { "delete_NonlinearFormIntegrator", _wrap_delete_NonlinearFormIntegrator, METH_O, "delete_NonlinearFormIntegrator(NonlinearFormIntegrator self)"}, { "disown_NonlinearFormIntegrator", (PyCFunction)(void(*)(void))_wrap_disown_NonlinearFormIntegrator, METH_VARARGS|METH_KEYWORDS, NULL}, { "NonlinearFormIntegrator_swigregister", NonlinearFormIntegrator_swigregister, METH_O, NULL}, { "NonlinearFormIntegrator_swiginit", NonlinearFormIntegrator_swiginit, METH_VARARGS, NULL}, { "BlockNonlinearFormIntegrator_GetElementEnergy", (PyCFunction)(void(*)(void))_wrap_BlockNonlinearFormIntegrator_GetElementEnergy, METH_VARARGS|METH_KEYWORDS, "GetElementEnergy(BlockNonlinearFormIntegrator self, mfem::Array< mfem::FiniteElement const * > const & el, ElementTransformation Tr, mfem::Array< mfem::Vector const * > const & elfun) -> double"}, { "BlockNonlinearFormIntegrator_AssembleElementVector", (PyCFunction)(void(*)(void))_wrap_BlockNonlinearFormIntegrator_AssembleElementVector, METH_VARARGS|METH_KEYWORDS, "AssembleElementVector(BlockNonlinearFormIntegrator self, mfem::Array< mfem::FiniteElement const * > const & el, ElementTransformation Tr, mfem::Array< mfem::Vector const * > const & elfun, mfem::Array< mfem::Vector * > const & elvec)"}, { "BlockNonlinearFormIntegrator_AssembleFaceVector", (PyCFunction)(void(*)(void))_wrap_BlockNonlinearFormIntegrator_AssembleFaceVector, METH_VARARGS|METH_KEYWORDS, "AssembleFaceVector(BlockNonlinearFormIntegrator self, mfem::Array< mfem::FiniteElement const * > const & el1, mfem::Array< mfem::FiniteElement const * > const & el2, FaceElementTransformations Tr, mfem::Array< mfem::Vector const * > const & elfun, mfem::Array< mfem::Vector * > const & elvect)"}, { "BlockNonlinearFormIntegrator_AssembleElementGrad", (PyCFunction)(void(*)(void))_wrap_BlockNonlinearFormIntegrator_AssembleElementGrad, METH_VARARGS|METH_KEYWORDS, "AssembleElementGrad(BlockNonlinearFormIntegrator self, mfem::Array< mfem::FiniteElement const * > const & el, ElementTransformation Tr, mfem::Array< mfem::Vector const * > const & elfun, mfem::Array2D< mfem::DenseMatrix * > const & elmats)"}, { "BlockNonlinearFormIntegrator_AssembleFaceGrad", (PyCFunction)(void(*)(void))_wrap_BlockNonlinearFormIntegrator_AssembleFaceGrad, METH_VARARGS|METH_KEYWORDS, "AssembleFaceGrad(BlockNonlinearFormIntegrator self, mfem::Array< mfem::FiniteElement const * > const & el1, mfem::Array< mfem::FiniteElement const * > const & el2, FaceElementTransformations Tr, mfem::Array< mfem::Vector const * > const & elfun, mfem::Array2D< mfem::DenseMatrix * > const & elmats)"}, { "delete_BlockNonlinearFormIntegrator", _wrap_delete_BlockNonlinearFormIntegrator, METH_O, "delete_BlockNonlinearFormIntegrator(BlockNonlinearFormIntegrator self)"}, { "new_BlockNonlinearFormIntegrator", _wrap_new_BlockNonlinearFormIntegrator, METH_NOARGS, "new_BlockNonlinearFormIntegrator() -> BlockNonlinearFormIntegrator"}, { "BlockNonlinearFormIntegrator_swigregister", BlockNonlinearFormIntegrator_swigregister, METH_O, NULL}, { "BlockNonlinearFormIntegrator_swiginit", BlockNonlinearFormIntegrator_swiginit, METH_VARARGS, NULL}, { "delete_HyperelasticModel", _wrap_delete_HyperelasticModel, METH_O, "delete_HyperelasticModel(HyperelasticModel self)"}, { "HyperelasticModel_SetTransformation", (PyCFunction)(void(*)(void))_wrap_HyperelasticModel_SetTransformation, METH_VARARGS|METH_KEYWORDS, "SetTransformation(HyperelasticModel self, ElementTransformation _Ttr)"}, { "HyperelasticModel_EvalW", (PyCFunction)(void(*)(void))_wrap_HyperelasticModel_EvalW, METH_VARARGS|METH_KEYWORDS, "EvalW(HyperelasticModel self, DenseMatrix Jpt) -> double"}, { "HyperelasticModel_EvalP", (PyCFunction)(void(*)(void))_wrap_HyperelasticModel_EvalP, METH_VARARGS|METH_KEYWORDS, "EvalP(HyperelasticModel self, DenseMatrix Jpt, DenseMatrix P)"}, { "HyperelasticModel_AssembleH", (PyCFunction)(void(*)(void))_wrap_HyperelasticModel_AssembleH, METH_VARARGS|METH_KEYWORDS, "AssembleH(HyperelasticModel self, DenseMatrix Jpt, DenseMatrix DS, double const weight, DenseMatrix A)"}, { "HyperelasticModel_swigregister", HyperelasticModel_swigregister, METH_O, NULL}, { "InverseHarmonicModel_EvalW", (PyCFunction)(void(*)(void))_wrap_InverseHarmonicModel_EvalW, METH_VARARGS|METH_KEYWORDS, "EvalW(InverseHarmonicModel self, DenseMatrix J) -> double"}, { "InverseHarmonicModel_EvalP", (PyCFunction)(void(*)(void))_wrap_InverseHarmonicModel_EvalP, METH_VARARGS|METH_KEYWORDS, "EvalP(InverseHarmonicModel self, DenseMatrix J, DenseMatrix P)"}, { "InverseHarmonicModel_AssembleH", (PyCFunction)(void(*)(void))_wrap_InverseHarmonicModel_AssembleH, METH_VARARGS|METH_KEYWORDS, "AssembleH(InverseHarmonicModel self, DenseMatrix J, DenseMatrix DS, double const weight, DenseMatrix A)"}, { "new_InverseHarmonicModel", _wrap_new_InverseHarmonicModel, METH_NOARGS, "new_InverseHarmonicModel() -> InverseHarmonicModel"}, { "delete_InverseHarmonicModel", _wrap_delete_InverseHarmonicModel, METH_O, "delete_InverseHarmonicModel(InverseHarmonicModel self)"}, { "InverseHarmonicModel_swigregister", InverseHarmonicModel_swigregister, METH_O, NULL}, { "InverseHarmonicModel_swiginit", InverseHarmonicModel_swiginit, METH_VARARGS, NULL}, { "new_NeoHookeanModel", _wrap_new_NeoHookeanModel, METH_VARARGS, "\n" "NeoHookeanModel(double _mu, double _K, double _g=1.0)\n" "new_NeoHookeanModel(Coefficient _mu, Coefficient _K, Coefficient _g=None) -> NeoHookeanModel\n" ""}, { "NeoHookeanModel_EvalW", (PyCFunction)(void(*)(void))_wrap_NeoHookeanModel_EvalW, METH_VARARGS|METH_KEYWORDS, "EvalW(NeoHookeanModel self, DenseMatrix J) -> double"}, { "NeoHookeanModel_EvalP", (PyCFunction)(void(*)(void))_wrap_NeoHookeanModel_EvalP, METH_VARARGS|METH_KEYWORDS, "EvalP(NeoHookeanModel self, DenseMatrix J, DenseMatrix P)"}, { "NeoHookeanModel_AssembleH", (PyCFunction)(void(*)(void))_wrap_NeoHookeanModel_AssembleH, METH_VARARGS|METH_KEYWORDS, "AssembleH(NeoHookeanModel self, DenseMatrix J, DenseMatrix DS, double const weight, DenseMatrix A)"}, { "delete_NeoHookeanModel", _wrap_delete_NeoHookeanModel, METH_O, "delete_NeoHookeanModel(NeoHookeanModel self)"}, { "NeoHookeanModel_swigregister", NeoHookeanModel_swigregister, METH_O, NULL}, { "NeoHookeanModel_swiginit", NeoHookeanModel_swiginit, METH_VARARGS, NULL}, { "new_HyperelasticNLFIntegrator", (PyCFunction)(void(*)(void))_wrap_new_HyperelasticNLFIntegrator, METH_VARARGS|METH_KEYWORDS, "new_HyperelasticNLFIntegrator(HyperelasticModel m) -> HyperelasticNLFIntegrator"}, { "HyperelasticNLFIntegrator_GetElementEnergy", (PyCFunction)(void(*)(void))_wrap_HyperelasticNLFIntegrator_GetElementEnergy, METH_VARARGS|METH_KEYWORDS, "GetElementEnergy(HyperelasticNLFIntegrator self, FiniteElement el, ElementTransformation Ttr, Vector elfun) -> double"}, { "HyperelasticNLFIntegrator_AssembleElementVector", (PyCFunction)(void(*)(void))_wrap_HyperelasticNLFIntegrator_AssembleElementVector, METH_VARARGS|METH_KEYWORDS, "AssembleElementVector(HyperelasticNLFIntegrator self, FiniteElement el, ElementTransformation Ttr, Vector elfun, Vector elvect)"}, { "HyperelasticNLFIntegrator_AssembleElementGrad", (PyCFunction)(void(*)(void))_wrap_HyperelasticNLFIntegrator_AssembleElementGrad, METH_VARARGS|METH_KEYWORDS, "AssembleElementGrad(HyperelasticNLFIntegrator self, FiniteElement el, ElementTransformation Ttr, Vector elfun, DenseMatrix elmat)"}, { "delete_HyperelasticNLFIntegrator", _wrap_delete_HyperelasticNLFIntegrator, METH_O, "delete_HyperelasticNLFIntegrator(HyperelasticNLFIntegrator self)"}, { "HyperelasticNLFIntegrator_swigregister", HyperelasticNLFIntegrator_swigregister, METH_O, NULL}, { "HyperelasticNLFIntegrator_swiginit", HyperelasticNLFIntegrator_swiginit, METH_VARARGS, NULL}, { "new_IncompressibleNeoHookeanIntegrator", (PyCFunction)(void(*)(void))_wrap_new_IncompressibleNeoHookeanIntegrator, METH_VARARGS|METH_KEYWORDS, "new_IncompressibleNeoHookeanIntegrator(Coefficient _mu) -> IncompressibleNeoHookeanIntegrator"}, { "IncompressibleNeoHookeanIntegrator_GetElementEnergy", (PyCFunction)(void(*)(void))_wrap_IncompressibleNeoHookeanIntegrator_GetElementEnergy, METH_VARARGS|METH_KEYWORDS, "GetElementEnergy(IncompressibleNeoHookeanIntegrator self, mfem::Array< mfem::FiniteElement const * > const & el, ElementTransformation Tr, mfem::Array< mfem::Vector const * > const & elfun) -> double"}, { "IncompressibleNeoHookeanIntegrator_AssembleElementVector", (PyCFunction)(void(*)(void))_wrap_IncompressibleNeoHookeanIntegrator_AssembleElementVector, METH_VARARGS|METH_KEYWORDS, "AssembleElementVector(IncompressibleNeoHookeanIntegrator self, mfem::Array< mfem::FiniteElement const * > const & el, ElementTransformation Tr, mfem::Array< mfem::Vector const * > const & elfun, mfem::Array< mfem::Vector * > const & elvec)"}, { "IncompressibleNeoHookeanIntegrator_AssembleElementGrad", (PyCFunction)(void(*)(void))_wrap_IncompressibleNeoHookeanIntegrator_AssembleElementGrad, METH_VARARGS|METH_KEYWORDS, "AssembleElementGrad(IncompressibleNeoHookeanIntegrator self, mfem::Array< mfem::FiniteElement const * > const & el, ElementTransformation Tr, mfem::Array< mfem::Vector const * > const & elfun, mfem::Array2D< mfem::DenseMatrix * > const & elmats)"}, { "delete_IncompressibleNeoHookeanIntegrator", _wrap_delete_IncompressibleNeoHookeanIntegrator, METH_O, "delete_IncompressibleNeoHookeanIntegrator(IncompressibleNeoHookeanIntegrator self)"}, { "IncompressibleNeoHookeanIntegrator_swigregister", IncompressibleNeoHookeanIntegrator_swigregister, METH_O, NULL}, { "IncompressibleNeoHookeanIntegrator_swiginit", IncompressibleNeoHookeanIntegrator_swiginit, METH_VARARGS, NULL}, { "new_VectorConvectionNLFIntegrator", _wrap_new_VectorConvectionNLFIntegrator, METH_VARARGS, "\n" "VectorConvectionNLFIntegrator(Coefficient q)\n" "new_VectorConvectionNLFIntegrator() -> VectorConvectionNLFIntegrator\n" ""}, { "VectorConvectionNLFIntegrator_GetRule", (PyCFunction)(void(*)(void))_wrap_VectorConvectionNLFIntegrator_GetRule, METH_VARARGS|METH_KEYWORDS, "GetRule(FiniteElement fe, ElementTransformation T) -> IntegrationRule"}, { "VectorConvectionNLFIntegrator_AssembleElementVector", (PyCFunction)(void(*)(void))_wrap_VectorConvectionNLFIntegrator_AssembleElementVector, METH_VARARGS|METH_KEYWORDS, "AssembleElementVector(VectorConvectionNLFIntegrator self, FiniteElement el, ElementTransformation trans, Vector elfun, Vector elvect)"}, { "VectorConvectionNLFIntegrator_AssembleElementGrad", (PyCFunction)(void(*)(void))_wrap_VectorConvectionNLFIntegrator_AssembleElementGrad, METH_VARARGS|METH_KEYWORDS, "AssembleElementGrad(VectorConvectionNLFIntegrator self, FiniteElement el, ElementTransformation trans, Vector elfun, DenseMatrix elmat)"}, { "VectorConvectionNLFIntegrator_AssemblePA", _wrap_VectorConvectionNLFIntegrator_AssemblePA, METH_VARARGS, "\n" "AssemblePA(VectorConvectionNLFIntegrator self, FiniteElementSpace fes)\n" "AssemblePA(VectorConvectionNLFIntegrator self, FiniteElementSpace trial_fes, FiniteElementSpace test_fes)\n" "AssemblePA(VectorConvectionNLFIntegrator self, FiniteElementSpace fes)\n" ""}, { "VectorConvectionNLFIntegrator_AddMultPA", (PyCFunction)(void(*)(void))_wrap_VectorConvectionNLFIntegrator_AddMultPA, METH_VARARGS|METH_KEYWORDS, "AddMultPA(VectorConvectionNLFIntegrator self, Vector x, Vector y)"}, { "delete_VectorConvectionNLFIntegrator", _wrap_delete_VectorConvectionNLFIntegrator, METH_O, "delete_VectorConvectionNLFIntegrator(VectorConvectionNLFIntegrator self)"}, { "VectorConvectionNLFIntegrator_swigregister", VectorConvectionNLFIntegrator_swigregister, METH_O, NULL}, { "VectorConvectionNLFIntegrator_swiginit", VectorConvectionNLFIntegrator_swiginit, METH_VARARGS, NULL}, { NULL, NULL, 0, NULL } }; /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ static void *_p_mfem__InverseHarmonicModelTo_p_mfem__HyperelasticModel(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((mfem::HyperelasticModel *) ((mfem::InverseHarmonicModel *) x)); } static void *_p_mfem__NeoHookeanModelTo_p_mfem__HyperelasticModel(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((mfem::HyperelasticModel *) ((mfem::NeoHookeanModel *) x)); } static void *_p_mfem__HyperelasticNLFIntegratorTo_p_mfem__NonlinearFormIntegrator(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((mfem::NonlinearFormIntegrator *) ((mfem::HyperelasticNLFIntegrator *) x)); } static void *_p_mfem__VectorConvectionNLFIntegratorTo_p_mfem__NonlinearFormIntegrator(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((mfem::NonlinearFormIntegrator *) ((mfem::VectorConvectionNLFIntegrator *) x)); } static void *_p_mfem__IncompressibleNeoHookeanIntegratorTo_p_mfem__BlockNonlinearFormIntegrator(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((mfem::BlockNonlinearFormIntegrator *) ((mfem::IncompressibleNeoHookeanIntegrator *) x)); } static void *_p_mfem__PyCoefficientBaseTo_p_mfem__Coefficient(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((mfem::Coefficient *) (mfem::FunctionCoefficient *) ((mfem::PyCoefficientBase *) x)); } static void *_p_mfem__VectorRotProductCoefficientTo_p_mfem__Coefficient(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((mfem::Coefficient *) ((mfem::VectorRotProductCoefficient *) x)); } static void *_p_mfem__InnerProductCoefficientTo_p_mfem__Coefficient(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((mfem::Coefficient *) ((mfem::InnerProductCoefficient *) x)); } static void *_p_mfem__PowerCoefficientTo_p_mfem__Coefficient(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((mfem::Coefficient *) ((mfem::PowerCoefficient *) x)); } static void *_p_mfem__RatioCoefficientTo_p_mfem__Coefficient(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((mfem::Coefficient *) ((mfem::RatioCoefficient *) x)); } static void *_p_mfem__ProductCoefficientTo_p_mfem__Coefficient(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((mfem::Coefficient *) ((mfem::ProductCoefficient *) x)); } static void *_p_mfem__SumCoefficientTo_p_mfem__Coefficient(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((mfem::Coefficient *) ((mfem::SumCoefficient *) x)); } static void *_p_mfem__DivergenceGridFunctionCoefficientTo_p_mfem__Coefficient(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((mfem::Coefficient *) ((mfem::DivergenceGridFunctionCoefficient *) x)); } static void *_p_mfem__RestrictedCoefficientTo_p_mfem__Coefficient(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((mfem::Coefficient *) ((mfem::RestrictedCoefficient *) x)); } static void *_p_mfem__DeltaCoefficientTo_p_mfem__Coefficient(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((mfem::Coefficient *) ((mfem::DeltaCoefficient *) x)); } static void *_p_mfem__TransformedCoefficientTo_p_mfem__Coefficient(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((mfem::Coefficient *) ((mfem::TransformedCoefficient *) x)); } static void *_p_mfem__GridFunctionCoefficientTo_p_mfem__Coefficient(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((mfem::Coefficient *) ((mfem::GridFunctionCoefficient *) x)); } static void *_p_mfem__FunctionCoefficientTo_p_mfem__Coefficient(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((mfem::Coefficient *) ((mfem::FunctionCoefficient *) x)); } static void *_p_mfem__PWConstCoefficientTo_p_mfem__Coefficient(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((mfem::Coefficient *) ((mfem::PWConstCoefficient *) x)); } static void *_p_mfem__ConstantCoefficientTo_p_mfem__Coefficient(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((mfem::Coefficient *) ((mfem::ConstantCoefficient *) x)); } static void *_p_mfem__DeterminantCoefficientTo_p_mfem__Coefficient(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((mfem::Coefficient *) ((mfem::DeterminantCoefficient *) x)); } static void *_p_mfem__QuadratureFunctionCoefficientTo_p_mfem__Coefficient(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((mfem::Coefficient *) ((mfem::QuadratureFunctionCoefficient *) x)); } static void *_p_mfem__ExtrudeCoefficientTo_p_mfem__Coefficient(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((mfem::Coefficient *) ((mfem::ExtrudeCoefficient *) x)); } static void *_p_mfem__L2_SegmentElementTo_p_mfem__FiniteElement(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((mfem::FiniteElement *) (mfem::ScalarFiniteElement *)(mfem::NodalFiniteElement *)(mfem::NodalTensorFiniteElement *) ((mfem::L2_SegmentElement *) x)); } static void *_p_mfem__H1Pos_WedgeElementTo_p_mfem__FiniteElement(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((mfem::FiniteElement *) (mfem::ScalarFiniteElement *)(mfem::PositiveFiniteElement *) ((mfem::H1Pos_WedgeElement *) x)); } static void *_p_mfem__BiCubic3DFiniteElementTo_p_mfem__FiniteElement(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((mfem::FiniteElement *) (mfem::ScalarFiniteElement *)(mfem::NodalFiniteElement *)(mfem::H1_WedgeElement *) ((mfem::BiCubic3DFiniteElement *) x)); } static void *_p_mfem__BiQuadratic3DFiniteElementTo_p_mfem__FiniteElement(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((mfem::FiniteElement *) (mfem::ScalarFiniteElement *)(mfem::NodalFiniteElement *)(mfem::H1_WedgeElement *) ((mfem::BiQuadratic3DFiniteElement *) x)); } static void *_p_mfem__BiLinear3DFiniteElementTo_p_mfem__FiniteElement(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((mfem::FiniteElement *) (mfem::ScalarFiniteElement *)(mfem::NodalFiniteElement *)(mfem::H1_WedgeElement *) ((mfem::BiLinear3DFiniteElement *) x)); } static void *_p_mfem__H1_WedgeElementTo_p_mfem__FiniteElement(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((mfem::FiniteElement *) (mfem::ScalarFiniteElement *)(mfem::NodalFiniteElement *) ((mfem::H1_WedgeElement *) x)); } static void *_p_mfem__H1Pos_TetrahedronElementTo_p_mfem__FiniteElement(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((mfem::FiniteElement *) (mfem::ScalarFiniteElement *)(mfem::PositiveFiniteElement *) ((mfem::H1Pos_TetrahedronElement *) x)); } static void *_p_mfem__H1Pos_TriangleElementTo_p_mfem__FiniteElement(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((mfem::FiniteElement *) (mfem::ScalarFiniteElement *)(mfem::PositiveFiniteElement *) ((mfem::H1Pos_TriangleElement *) x)); } static void *_p_mfem__H1_TetrahedronElementTo_p_mfem__FiniteElement(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((mfem::FiniteElement *) (mfem::ScalarFiniteElement *)(mfem::NodalFiniteElement *) ((mfem::H1_TetrahedronElement *) x)); } static void *_p_mfem__H1_TriangleElementTo_p_mfem__FiniteElement(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((mfem::FiniteElement *) (mfem::ScalarFiniteElement *)(mfem::NodalFiniteElement *) ((mfem::H1_TriangleElement *) x)); } static void *_p_mfem__H1Pos_HexahedronElementTo_p_mfem__FiniteElement(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((mfem::FiniteElement *) (mfem::ScalarFiniteElement *)(mfem::PositiveFiniteElement *)(mfem::PositiveTensorFiniteElement *) ((mfem::H1Pos_HexahedronElement *) x)); } static void *_p_mfem__H1Ser_QuadrilateralElementTo_p_mfem__FiniteElement(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((mfem::FiniteElement *) (mfem::ScalarFiniteElement *) ((mfem::H1Ser_QuadrilateralElement *) x)); } static void *_p_mfem__H1Pos_QuadrilateralElementTo_p_mfem__FiniteElement(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((mfem::FiniteElement *) (mfem::ScalarFiniteElement *)(mfem::PositiveFiniteElement *)(mfem::PositiveTensorFiniteElement *) ((mfem::H1Pos_QuadrilateralElement *) x)); } static void *_p_mfem__H1Pos_SegmentElementTo_p_mfem__FiniteElement(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((mfem::FiniteElement *) (mfem::ScalarFiniteElement *)(mfem::PositiveFiniteElement *)(mfem::PositiveTensorFiniteElement *) ((mfem::H1Pos_SegmentElement *) x)); } static void *_p_mfem__H1_HexahedronElementTo_p_mfem__FiniteElement(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((mfem::FiniteElement *) (mfem::ScalarFiniteElement *)(mfem::NodalFiniteElement *)(mfem::NodalTensorFiniteElement *) ((mfem::H1_HexahedronElement *) x)); } static void *_p_mfem__H1_QuadrilateralElementTo_p_mfem__FiniteElement(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((mfem::FiniteElement *) (mfem::ScalarFiniteElement *)(mfem::NodalFiniteElement *)(mfem::NodalTensorFiniteElement *) ((mfem::H1_QuadrilateralElement *) x)); } static void *_p_mfem__H1_SegmentElementTo_p_mfem__FiniteElement(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((mfem::FiniteElement *) (mfem::ScalarFiniteElement *)(mfem::NodalFiniteElement *)(mfem::NodalTensorFiniteElement *) ((mfem::H1_SegmentElement *) x)); } static void *_p_mfem__VectorTensorFiniteElementTo_p_mfem__FiniteElement(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((mfem::FiniteElement *) (mfem::VectorFiniteElement *) ((mfem::VectorTensorFiniteElement *) x)); } static void *_p_mfem__PositiveTensorFiniteElementTo_p_mfem__FiniteElement(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((mfem::FiniteElement *) (mfem::ScalarFiniteElement *)(mfem::PositiveFiniteElement *) ((mfem::PositiveTensorFiniteElement *) x)); } static void *_p_mfem__NodalTensorFiniteElementTo_p_mfem__FiniteElement(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((mfem::FiniteElement *) (mfem::ScalarFiniteElement *)(mfem::NodalFiniteElement *) ((mfem::NodalTensorFiniteElement *) x)); } static void *_p_mfem__RotTriLinearHexFiniteElementTo_p_mfem__FiniteElement(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((mfem::FiniteElement *) (mfem::ScalarFiniteElement *)(mfem::NodalFiniteElement *) ((mfem::RotTriLinearHexFiniteElement *) x)); } static void *_p_mfem__RT0TetFiniteElementTo_p_mfem__FiniteElement(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((mfem::FiniteElement *) (mfem::VectorFiniteElement *) ((mfem::RT0TetFiniteElement *) x)); } static void *_p_mfem__RT1HexFiniteElementTo_p_mfem__FiniteElement(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((mfem::FiniteElement *) (mfem::VectorFiniteElement *) ((mfem::RT1HexFiniteElement *) x)); } static void *_p_mfem__RT0HexFiniteElementTo_p_mfem__FiniteElement(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((mfem::FiniteElement *) (mfem::VectorFiniteElement *) ((mfem::RT0HexFiniteElement *) x)); } static void *_p_mfem__Nedelec1TetFiniteElementTo_p_mfem__FiniteElement(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((mfem::FiniteElement *) (mfem::VectorFiniteElement *) ((mfem::Nedelec1TetFiniteElement *) x)); } static void *_p_mfem__Nedelec1HexFiniteElementTo_p_mfem__FiniteElement(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((mfem::FiniteElement *) (mfem::VectorFiniteElement *) ((mfem::Nedelec1HexFiniteElement *) x)); } static void *_p_mfem__RefinedTriLinear3DFiniteElementTo_p_mfem__FiniteElement(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((mfem::FiniteElement *) (mfem::ScalarFiniteElement *)(mfem::NodalFiniteElement *) ((mfem::RefinedTriLinear3DFiniteElement *) x)); } static void *_p_mfem__RefinedBiLinear2DFiniteElementTo_p_mfem__FiniteElement(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((mfem::FiniteElement *) (mfem::ScalarFiniteElement *)(mfem::NodalFiniteElement *) ((mfem::RefinedBiLinear2DFiniteElement *) x)); } static void *_p_mfem__RefinedLinear3DFiniteElementTo_p_mfem__FiniteElement(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((mfem::FiniteElement *) (mfem::ScalarFiniteElement *)(mfem::NodalFiniteElement *) ((mfem::RefinedLinear3DFiniteElement *) x)); } static void *_p_mfem__RefinedLinear2DFiniteElementTo_p_mfem__FiniteElement(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((mfem::FiniteElement *) (mfem::ScalarFiniteElement *)(mfem::NodalFiniteElement *) ((mfem::RefinedLinear2DFiniteElement *) x)); } static void *_p_mfem__RefinedLinear1DFiniteElementTo_p_mfem__FiniteElement(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((mfem::FiniteElement *) (mfem::ScalarFiniteElement *)(mfem::NodalFiniteElement *) ((mfem::RefinedLinear1DFiniteElement *) x)); } static void *_p_mfem__LagrangeHexFiniteElementTo_p_mfem__FiniteElement(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((mfem::FiniteElement *) (mfem::ScalarFiniteElement *)(mfem::NodalFiniteElement *) ((mfem::LagrangeHexFiniteElement *) x)); } static void *_p_mfem__P0HexFiniteElementTo_p_mfem__FiniteElement(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((mfem::FiniteElement *) (mfem::ScalarFiniteElement *)(mfem::NodalFiniteElement *) ((mfem::P0HexFiniteElement *) x)); } static void *_p_mfem__P0TetFiniteElementTo_p_mfem__FiniteElement(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((mfem::FiniteElement *) (mfem::ScalarFiniteElement *)(mfem::NodalFiniteElement *) ((mfem::P0TetFiniteElement *) x)); } static void *_p_mfem__P1TetNonConfFiniteElementTo_p_mfem__FiniteElement(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((mfem::FiniteElement *) (mfem::ScalarFiniteElement *)(mfem::NodalFiniteElement *) ((mfem::P1TetNonConfFiniteElement *) x)); } static void *_p_mfem__Lagrange1DFiniteElementTo_p_mfem__FiniteElement(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((mfem::FiniteElement *) (mfem::ScalarFiniteElement *)(mfem::NodalFiniteElement *) ((mfem::Lagrange1DFiniteElement *) x)); } static void *_p_mfem__P2SegmentFiniteElementTo_p_mfem__FiniteElement(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((mfem::FiniteElement *) (mfem::ScalarFiniteElement *)(mfem::NodalFiniteElement *) ((mfem::P2SegmentFiniteElement *) x)); } static void *_p_mfem__P1SegmentFiniteElementTo_p_mfem__FiniteElement(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((mfem::FiniteElement *) (mfem::ScalarFiniteElement *)(mfem::NodalFiniteElement *) ((mfem::P1SegmentFiniteElement *) x)); } static void *_p_mfem__RT2QuadFiniteElementTo_p_mfem__FiniteElement(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((mfem::FiniteElement *) (mfem::VectorFiniteElement *) ((mfem::RT2QuadFiniteElement *) x)); } static void *_p_mfem__RT2TriangleFiniteElementTo_p_mfem__FiniteElement(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((mfem::FiniteElement *) (mfem::VectorFiniteElement *) ((mfem::RT2TriangleFiniteElement *) x)); } static void *_p_mfem__Quad2DFiniteElementTo_p_mfem__FiniteElement(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((mfem::FiniteElement *) (mfem::ScalarFiniteElement *)(mfem::NodalFiniteElement *) ((mfem::Quad2DFiniteElement *) x)); } static void *_p_mfem__QuadPos1DFiniteElementTo_p_mfem__FiniteElement(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((mfem::FiniteElement *) (mfem::ScalarFiniteElement *)(mfem::PositiveFiniteElement *) ((mfem::QuadPos1DFiniteElement *) x)); } static void *_p_mfem__Quad1DFiniteElementTo_p_mfem__FiniteElement(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((mfem::FiniteElement *) (mfem::ScalarFiniteElement *)(mfem::NodalFiniteElement *) ((mfem::Quad1DFiniteElement *) x)); } static void *_p_mfem__P1OnQuadFiniteElementTo_p_mfem__FiniteElement(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((mfem::FiniteElement *) (mfem::ScalarFiniteElement *)(mfem::NodalFiniteElement *) ((mfem::P1OnQuadFiniteElement *) x)); } static void *_p_mfem__GaussBiLinear2DFiniteElementTo_p_mfem__FiniteElement(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((mfem::FiniteElement *) (mfem::ScalarFiniteElement *)(mfem::NodalFiniteElement *) ((mfem::GaussBiLinear2DFiniteElement *) x)); } static void *_p_mfem__GaussLinear2DFiniteElementTo_p_mfem__FiniteElement(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((mfem::FiniteElement *) (mfem::ScalarFiniteElement *)(mfem::NodalFiniteElement *) ((mfem::GaussLinear2DFiniteElement *) x)); } static void *_p_mfem__BiLinear2DFiniteElementTo_p_mfem__FiniteElement(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((mfem::FiniteElement *) (mfem::ScalarFiniteElement *)(mfem::NodalFiniteElement *) ((mfem::BiLinear2DFiniteElement *) x)); } static void *_p_mfem__Linear2DFiniteElementTo_p_mfem__FiniteElement(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((mfem::FiniteElement *) (mfem::ScalarFiniteElement *)(mfem::NodalFiniteElement *) ((mfem::Linear2DFiniteElement *) x)); } static void *_p_mfem__Linear1DFiniteElementTo_p_mfem__FiniteElement(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((mfem::FiniteElement *) (mfem::ScalarFiniteElement *)(mfem::NodalFiniteElement *) ((mfem::Linear1DFiniteElement *) x)); } static void *_p_mfem__PointFiniteElementTo_p_mfem__FiniteElement(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((mfem::FiniteElement *) (mfem::ScalarFiniteElement *)(mfem::NodalFiniteElement *) ((mfem::PointFiniteElement *) x)); } static void *_p_mfem__VectorFiniteElementTo_p_mfem__FiniteElement(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((mfem::FiniteElement *) ((mfem::VectorFiniteElement *) x)); } static void *_p_mfem__PositiveFiniteElementTo_p_mfem__FiniteElement(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((mfem::FiniteElement *) (mfem::ScalarFiniteElement *) ((mfem::PositiveFiniteElement *) x)); } static void *_p_mfem__NodalFiniteElementTo_p_mfem__FiniteElement(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((mfem::FiniteElement *) (mfem::ScalarFiniteElement *) ((mfem::NodalFiniteElement *) x)); } static void *_p_mfem__ScalarFiniteElementTo_p_mfem__FiniteElement(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((mfem::FiniteElement *) ((mfem::ScalarFiniteElement *) x)); } static void *_p_mfem__GaussQuad2DFiniteElementTo_p_mfem__FiniteElement(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((mfem::FiniteElement *) (mfem::ScalarFiniteElement *)(mfem::NodalFiniteElement *) ((mfem::GaussQuad2DFiniteElement *) x)); } static void *_p_mfem__BiQuad2DFiniteElementTo_p_mfem__FiniteElement(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((mfem::FiniteElement *) (mfem::ScalarFiniteElement *)(mfem::NodalFiniteElement *) ((mfem::BiQuad2DFiniteElement *) x)); } static void *_p_mfem__BiQuadPos2DFiniteElementTo_p_mfem__FiniteElement(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((mfem::FiniteElement *) (mfem::ScalarFiniteElement *)(mfem::PositiveFiniteElement *) ((mfem::BiQuadPos2DFiniteElement *) x)); } static void *_p_mfem__GaussBiQuad2DFiniteElementTo_p_mfem__FiniteElement(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((mfem::FiniteElement *) (mfem::ScalarFiniteElement *)(mfem::NodalFiniteElement *) ((mfem::GaussBiQuad2DFiniteElement *) x)); } static void *_p_mfem__BiCubic2DFiniteElementTo_p_mfem__FiniteElement(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((mfem::FiniteElement *) (mfem::ScalarFiniteElement *)(mfem::NodalFiniteElement *) ((mfem::BiCubic2DFiniteElement *) x)); } static void *_p_mfem__Cubic1DFiniteElementTo_p_mfem__FiniteElement(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((mfem::FiniteElement *) (mfem::ScalarFiniteElement *)(mfem::NodalFiniteElement *) ((mfem::Cubic1DFiniteElement *) x)); } static void *_p_mfem__Cubic2DFiniteElementTo_p_mfem__FiniteElement(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((mfem::FiniteElement *) (mfem::ScalarFiniteElement *)(mfem::NodalFiniteElement *) ((mfem::Cubic2DFiniteElement *) x)); } static void *_p_mfem__Cubic3DFiniteElementTo_p_mfem__FiniteElement(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((mfem::FiniteElement *) (mfem::ScalarFiniteElement *)(mfem::NodalFiniteElement *) ((mfem::Cubic3DFiniteElement *) x)); } static void *_p_mfem__P0TriangleFiniteElementTo_p_mfem__FiniteElement(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((mfem::FiniteElement *) (mfem::ScalarFiniteElement *)(mfem::NodalFiniteElement *) ((mfem::P0TriangleFiniteElement *) x)); } static void *_p_mfem__P0QuadFiniteElementTo_p_mfem__FiniteElement(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((mfem::FiniteElement *) (mfem::ScalarFiniteElement *)(mfem::NodalFiniteElement *) ((mfem::P0QuadFiniteElement *) x)); } static void *_p_mfem__Linear3DFiniteElementTo_p_mfem__FiniteElement(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((mfem::FiniteElement *) (mfem::ScalarFiniteElement *)(mfem::NodalFiniteElement *) ((mfem::Linear3DFiniteElement *) x)); } static void *_p_mfem__Quadratic3DFiniteElementTo_p_mfem__FiniteElement(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((mfem::FiniteElement *) (mfem::ScalarFiniteElement *)(mfem::NodalFiniteElement *) ((mfem::Quadratic3DFiniteElement *) x)); } static void *_p_mfem__TriLinear3DFiniteElementTo_p_mfem__FiniteElement(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((mfem::FiniteElement *) (mfem::ScalarFiniteElement *)(mfem::NodalFiniteElement *) ((mfem::TriLinear3DFiniteElement *) x)); } static void *_p_mfem__CrouzeixRaviartFiniteElementTo_p_mfem__FiniteElement(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((mfem::FiniteElement *) (mfem::ScalarFiniteElement *)(mfem::NodalFiniteElement *) ((mfem::CrouzeixRaviartFiniteElement *) x)); } static void *_p_mfem__CrouzeixRaviartQuadFiniteElementTo_p_mfem__FiniteElement(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((mfem::FiniteElement *) (mfem::ScalarFiniteElement *)(mfem::NodalFiniteElement *) ((mfem::CrouzeixRaviartQuadFiniteElement *) x)); } static void *_p_mfem__P0SegmentFiniteElementTo_p_mfem__FiniteElement(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((mfem::FiniteElement *) (mfem::ScalarFiniteElement *)(mfem::NodalFiniteElement *) ((mfem::P0SegmentFiniteElement *) x)); } static void *_p_mfem__RT0TriangleFiniteElementTo_p_mfem__FiniteElement(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((mfem::FiniteElement *) (mfem::VectorFiniteElement *) ((mfem::RT0TriangleFiniteElement *) x)); } static void *_p_mfem__RT0QuadFiniteElementTo_p_mfem__FiniteElement(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((mfem::FiniteElement *) (mfem::VectorFiniteElement *) ((mfem::RT0QuadFiniteElement *) x)); } static void *_p_mfem__RT1TriangleFiniteElementTo_p_mfem__FiniteElement(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((mfem::FiniteElement *) (mfem::VectorFiniteElement *) ((mfem::RT1TriangleFiniteElement *) x)); } static void *_p_mfem__RT1QuadFiniteElementTo_p_mfem__FiniteElement(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((mfem::FiniteElement *) (mfem::VectorFiniteElement *) ((mfem::RT1QuadFiniteElement *) x)); } static void *_p_mfem__L2Pos_SegmentElementTo_p_mfem__FiniteElement(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((mfem::FiniteElement *) (mfem::ScalarFiniteElement *)(mfem::PositiveFiniteElement *)(mfem::PositiveTensorFiniteElement *) ((mfem::L2Pos_SegmentElement *) x)); } static void *_p_mfem__L2_QuadrilateralElementTo_p_mfem__FiniteElement(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((mfem::FiniteElement *) (mfem::ScalarFiniteElement *)(mfem::NodalFiniteElement *)(mfem::NodalTensorFiniteElement *) ((mfem::L2_QuadrilateralElement *) x)); } static void *_p_mfem__L2Pos_QuadrilateralElementTo_p_mfem__FiniteElement(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((mfem::FiniteElement *) (mfem::ScalarFiniteElement *)(mfem::PositiveFiniteElement *)(mfem::PositiveTensorFiniteElement *) ((mfem::L2Pos_QuadrilateralElement *) x)); } static void *_p_mfem__L2_HexahedronElementTo_p_mfem__FiniteElement(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((mfem::FiniteElement *) (mfem::ScalarFiniteElement *)(mfem::NodalFiniteElement *)(mfem::NodalTensorFiniteElement *) ((mfem::L2_HexahedronElement *) x)); } static void *_p_mfem__L2Pos_HexahedronElementTo_p_mfem__FiniteElement(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((mfem::FiniteElement *) (mfem::ScalarFiniteElement *)(mfem::PositiveFiniteElement *)(mfem::PositiveTensorFiniteElement *) ((mfem::L2Pos_HexahedronElement *) x)); } static void *_p_mfem__L2_TriangleElementTo_p_mfem__FiniteElement(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((mfem::FiniteElement *) (mfem::ScalarFiniteElement *)(mfem::NodalFiniteElement *) ((mfem::L2_TriangleElement *) x)); } static void *_p_mfem__L2Pos_TriangleElementTo_p_mfem__FiniteElement(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((mfem::FiniteElement *) (mfem::ScalarFiniteElement *)(mfem::PositiveFiniteElement *) ((mfem::L2Pos_TriangleElement *) x)); } static void *_p_mfem__L2_TetrahedronElementTo_p_mfem__FiniteElement(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((mfem::FiniteElement *) (mfem::ScalarFiniteElement *)(mfem::NodalFiniteElement *) ((mfem::L2_TetrahedronElement *) x)); } static void *_p_mfem__L2Pos_TetrahedronElementTo_p_mfem__FiniteElement(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((mfem::FiniteElement *) (mfem::ScalarFiniteElement *)(mfem::PositiveFiniteElement *) ((mfem::L2Pos_TetrahedronElement *) x)); } static void *_p_mfem__L2_WedgeElementTo_p_mfem__FiniteElement(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((mfem::FiniteElement *) (mfem::ScalarFiniteElement *)(mfem::NodalFiniteElement *) ((mfem::L2_WedgeElement *) x)); } static void *_p_mfem__P0WedgeFiniteElementTo_p_mfem__FiniteElement(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((mfem::FiniteElement *) (mfem::ScalarFiniteElement *)(mfem::NodalFiniteElement *)(mfem::L2_WedgeElement *) ((mfem::P0WedgeFiniteElement *) x)); } static void *_p_mfem__L2Pos_WedgeElementTo_p_mfem__FiniteElement(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((mfem::FiniteElement *) (mfem::ScalarFiniteElement *)(mfem::PositiveFiniteElement *) ((mfem::L2Pos_WedgeElement *) x)); } static void *_p_mfem__RT_QuadrilateralElementTo_p_mfem__FiniteElement(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((mfem::FiniteElement *) (mfem::VectorFiniteElement *)(mfem::VectorTensorFiniteElement *) ((mfem::RT_QuadrilateralElement *) x)); } static void *_p_mfem__RT_HexahedronElementTo_p_mfem__FiniteElement(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((mfem::FiniteElement *) (mfem::VectorFiniteElement *)(mfem::VectorTensorFiniteElement *) ((mfem::RT_HexahedronElement *) x)); } static void *_p_mfem__RT_TriangleElementTo_p_mfem__FiniteElement(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((mfem::FiniteElement *) (mfem::VectorFiniteElement *) ((mfem::RT_TriangleElement *) x)); } static void *_p_mfem__RT_TetrahedronElementTo_p_mfem__FiniteElement(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((mfem::FiniteElement *) (mfem::VectorFiniteElement *) ((mfem::RT_TetrahedronElement *) x)); } static void *_p_mfem__ND_HexahedronElementTo_p_mfem__FiniteElement(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((mfem::FiniteElement *) (mfem::VectorFiniteElement *)(mfem::VectorTensorFiniteElement *) ((mfem::ND_HexahedronElement *) x)); } static void *_p_mfem__ND_QuadrilateralElementTo_p_mfem__FiniteElement(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((mfem::FiniteElement *) (mfem::VectorFiniteElement *)(mfem::VectorTensorFiniteElement *) ((mfem::ND_QuadrilateralElement *) x)); } static void *_p_mfem__ND_TetrahedronElementTo_p_mfem__FiniteElement(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((mfem::FiniteElement *) (mfem::VectorFiniteElement *) ((mfem::ND_TetrahedronElement *) x)); } static void *_p_mfem__ND_TriangleElementTo_p_mfem__FiniteElement(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((mfem::FiniteElement *) (mfem::VectorFiniteElement *) ((mfem::ND_TriangleElement *) x)); } static void *_p_mfem__ND_SegmentElementTo_p_mfem__FiniteElement(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((mfem::FiniteElement *) (mfem::VectorFiniteElement *) ((mfem::ND_SegmentElement *) x)); } static void *_p_mfem__NURBSFiniteElementTo_p_mfem__FiniteElement(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((mfem::FiniteElement *) (mfem::ScalarFiniteElement *) ((mfem::NURBSFiniteElement *) x)); } static void *_p_mfem__NURBS1DFiniteElementTo_p_mfem__FiniteElement(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((mfem::FiniteElement *) (mfem::ScalarFiniteElement *)(mfem::NURBSFiniteElement *) ((mfem::NURBS1DFiniteElement *) x)); } static void *_p_mfem__NURBS2DFiniteElementTo_p_mfem__FiniteElement(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((mfem::FiniteElement *) (mfem::ScalarFiniteElement *)(mfem::NURBSFiniteElement *) ((mfem::NURBS2DFiniteElement *) x)); } static void *_p_mfem__NURBS3DFiniteElementTo_p_mfem__FiniteElement(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((mfem::FiniteElement *) (mfem::ScalarFiniteElement *)(mfem::NURBSFiniteElement *) ((mfem::NURBS3DFiniteElement *) x)); } static void *_p_mfem__IsoparametricTransformationTo_p_mfem__ElementTransformation(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((mfem::ElementTransformation *) ((mfem::IsoparametricTransformation *) x)); } static void *_p_mfem__FaceElementTransformationsTo_p_mfem__ElementTransformation(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((mfem::ElementTransformation *) (mfem::IsoparametricTransformation *) ((mfem::FaceElementTransformations *) x)); } static void *_p_mfem__GridFunctionTo_p_mfem__Vector(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((mfem::Vector *) ((mfem::GridFunction *) x)); } static void *_p_mfem__QuadratureFunctionTo_p_mfem__Vector(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((mfem::Vector *) ((mfem::QuadratureFunction *) x)); } static void *_p_mfem__LinearFormTo_p_mfem__Vector(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((mfem::Vector *) ((mfem::LinearForm *) x)); } static swig_type_info _swigt__p_PyMFEM__wFILE = {"_p_PyMFEM__wFILE", "PyMFEM::wFILE *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_RefCoord = {"_p_RefCoord", "RefCoord *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_doublep = {"_p_doublep", "doublep *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_hex_t = {"_p_hex_t", "hex_t *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_intp = {"_p_intp", "intp *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_mfem__Array2DT_mfem__DenseMatrix_p_t = {"_p_mfem__Array2DT_mfem__DenseMatrix_p_t", "mfem::Array2D< mfem::DenseMatrix * > *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_mfem__ArrayT_mfem__FiniteElement_const_p_t = {"_p_mfem__ArrayT_mfem__FiniteElement_const_p_t", "mfem::Array< mfem::FiniteElement const * > *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_mfem__ArrayT_mfem__Vector_const_p_t = {"_p_mfem__ArrayT_mfem__Vector_const_p_t", "mfem::Array< mfem::Vector const * > *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_mfem__ArrayT_mfem__Vector_p_t = {"_p_mfem__ArrayT_mfem__Vector_p_t", "mfem::Array< mfem::Vector * > *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_mfem__BlockNonlinearFormIntegrator = {"_p_mfem__BlockNonlinearFormIntegrator", "mfem::BlockNonlinearFormIntegrator *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_mfem__Coefficient = {"_p_mfem__Coefficient", "mfem::Coefficient *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_mfem__PyCoefficientBase = {"_p_mfem__PyCoefficientBase", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_mfem__VectorRotProductCoefficient = {"_p_mfem__VectorRotProductCoefficient", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_mfem__InnerProductCoefficient = {"_p_mfem__InnerProductCoefficient", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_mfem__PowerCoefficient = {"_p_mfem__PowerCoefficient", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_mfem__RatioCoefficient = {"_p_mfem__RatioCoefficient", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_mfem__ProductCoefficient = {"_p_mfem__ProductCoefficient", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_mfem__SumCoefficient = {"_p_mfem__SumCoefficient", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_mfem__DivergenceGridFunctionCoefficient = {"_p_mfem__DivergenceGridFunctionCoefficient", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_mfem__RestrictedCoefficient = {"_p_mfem__RestrictedCoefficient", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_mfem__DeltaCoefficient = {"_p_mfem__DeltaCoefficient", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_mfem__TransformedCoefficient = {"_p_mfem__TransformedCoefficient", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_mfem__GridFunctionCoefficient = {"_p_mfem__GridFunctionCoefficient", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_mfem__FunctionCoefficient = {"_p_mfem__FunctionCoefficient", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_mfem__PWConstCoefficient = {"_p_mfem__PWConstCoefficient", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_mfem__ConstantCoefficient = {"_p_mfem__ConstantCoefficient", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_mfem__DeterminantCoefficient = {"_p_mfem__DeterminantCoefficient", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_mfem__QuadratureFunctionCoefficient = {"_p_mfem__QuadratureFunctionCoefficient", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_mfem__ExtrudeCoefficient = {"_p_mfem__ExtrudeCoefficient", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_mfem__DenseMatrix = {"_p_mfem__DenseMatrix", "mfem::DenseMatrix *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_mfem__ElementTransformation = {"_p_mfem__ElementTransformation", "mfem::ElementTransformation *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_mfem__IsoparametricTransformation = {"_p_mfem__IsoparametricTransformation", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_mfem__FaceElementTransformations = {"_p_mfem__FaceElementTransformations", "mfem::FaceElementTransformations *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_mfem__FiniteElement = {"_p_mfem__FiniteElement", "mfem::FiniteElement *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_mfem__P0HexFiniteElement = {"_p_mfem__P0HexFiniteElement", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_mfem__LagrangeHexFiniteElement = {"_p_mfem__LagrangeHexFiniteElement", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_mfem__RefinedLinear1DFiniteElement = {"_p_mfem__RefinedLinear1DFiniteElement", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_mfem__RefinedLinear2DFiniteElement = {"_p_mfem__RefinedLinear2DFiniteElement", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_mfem__RefinedLinear3DFiniteElement = {"_p_mfem__RefinedLinear3DFiniteElement", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_mfem__RefinedBiLinear2DFiniteElement = {"_p_mfem__RefinedBiLinear2DFiniteElement", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_mfem__RefinedTriLinear3DFiniteElement = {"_p_mfem__RefinedTriLinear3DFiniteElement", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_mfem__Nedelec1HexFiniteElement = {"_p_mfem__Nedelec1HexFiniteElement", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_mfem__Nedelec1TetFiniteElement = {"_p_mfem__Nedelec1TetFiniteElement", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_mfem__RT0HexFiniteElement = {"_p_mfem__RT0HexFiniteElement", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_mfem__RT1HexFiniteElement = {"_p_mfem__RT1HexFiniteElement", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_mfem__RT0TetFiniteElement = {"_p_mfem__RT0TetFiniteElement", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_mfem__RotTriLinearHexFiniteElement = {"_p_mfem__RotTriLinearHexFiniteElement", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_mfem__NodalTensorFiniteElement = {"_p_mfem__NodalTensorFiniteElement", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_mfem__PositiveTensorFiniteElement = {"_p_mfem__PositiveTensorFiniteElement", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_mfem__VectorTensorFiniteElement = {"_p_mfem__VectorTensorFiniteElement", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_mfem__H1_SegmentElement = {"_p_mfem__H1_SegmentElement", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_mfem__H1_QuadrilateralElement = {"_p_mfem__H1_QuadrilateralElement", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_mfem__H1_HexahedronElement = {"_p_mfem__H1_HexahedronElement", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_mfem__H1Pos_SegmentElement = {"_p_mfem__H1Pos_SegmentElement", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_mfem__L2_SegmentElement = {"_p_mfem__L2_SegmentElement", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_mfem__H1Pos_WedgeElement = {"_p_mfem__H1Pos_WedgeElement", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_mfem__BiCubic3DFiniteElement = {"_p_mfem__BiCubic3DFiniteElement", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_mfem__BiQuadratic3DFiniteElement = {"_p_mfem__BiQuadratic3DFiniteElement", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_mfem__BiLinear3DFiniteElement = {"_p_mfem__BiLinear3DFiniteElement", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_mfem__H1_WedgeElement = {"_p_mfem__H1_WedgeElement", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_mfem__H1Pos_TetrahedronElement = {"_p_mfem__H1Pos_TetrahedronElement", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_mfem__H1Pos_TriangleElement = {"_p_mfem__H1Pos_TriangleElement", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_mfem__H1_TetrahedronElement = {"_p_mfem__H1_TetrahedronElement", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_mfem__H1_TriangleElement = {"_p_mfem__H1_TriangleElement", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_mfem__H1Pos_HexahedronElement = {"_p_mfem__H1Pos_HexahedronElement", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_mfem__H1Ser_QuadrilateralElement = {"_p_mfem__H1Ser_QuadrilateralElement", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_mfem__H1Pos_QuadrilateralElement = {"_p_mfem__H1Pos_QuadrilateralElement", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_mfem__P0TetFiniteElement = {"_p_mfem__P0TetFiniteElement", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_mfem__P1TetNonConfFiniteElement = {"_p_mfem__P1TetNonConfFiniteElement", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_mfem__Lagrange1DFiniteElement = {"_p_mfem__Lagrange1DFiniteElement", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_mfem__P2SegmentFiniteElement = {"_p_mfem__P2SegmentFiniteElement", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_mfem__P1SegmentFiniteElement = {"_p_mfem__P1SegmentFiniteElement", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_mfem__RT2QuadFiniteElement = {"_p_mfem__RT2QuadFiniteElement", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_mfem__RT2TriangleFiniteElement = {"_p_mfem__RT2TriangleFiniteElement", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_mfem__Cubic2DFiniteElement = {"_p_mfem__Cubic2DFiniteElement", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_mfem__Cubic3DFiniteElement = {"_p_mfem__Cubic3DFiniteElement", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_mfem__P0TriangleFiniteElement = {"_p_mfem__P0TriangleFiniteElement", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_mfem__P0QuadFiniteElement = {"_p_mfem__P0QuadFiniteElement", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_mfem__Linear3DFiniteElement = {"_p_mfem__Linear3DFiniteElement", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_mfem__Quadratic3DFiniteElement = {"_p_mfem__Quadratic3DFiniteElement", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_mfem__TriLinear3DFiniteElement = {"_p_mfem__TriLinear3DFiniteElement", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_mfem__CrouzeixRaviartFiniteElement = {"_p_mfem__CrouzeixRaviartFiniteElement", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_mfem__CrouzeixRaviartQuadFiniteElement = {"_p_mfem__CrouzeixRaviartQuadFiniteElement", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_mfem__P0SegmentFiniteElement = {"_p_mfem__P0SegmentFiniteElement", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_mfem__RT0TriangleFiniteElement = {"_p_mfem__RT0TriangleFiniteElement", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_mfem__RT0QuadFiniteElement = {"_p_mfem__RT0QuadFiniteElement", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_mfem__RT1TriangleFiniteElement = {"_p_mfem__RT1TriangleFiniteElement", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_mfem__Cubic1DFiniteElement = {"_p_mfem__Cubic1DFiniteElement", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_mfem__BiCubic2DFiniteElement = {"_p_mfem__BiCubic2DFiniteElement", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_mfem__GaussBiQuad2DFiniteElement = {"_p_mfem__GaussBiQuad2DFiniteElement", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_mfem__BiQuadPos2DFiniteElement = {"_p_mfem__BiQuadPos2DFiniteElement", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_mfem__BiQuad2DFiniteElement = {"_p_mfem__BiQuad2DFiniteElement", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_mfem__GaussQuad2DFiniteElement = {"_p_mfem__GaussQuad2DFiniteElement", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_mfem__ScalarFiniteElement = {"_p_mfem__ScalarFiniteElement", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_mfem__NodalFiniteElement = {"_p_mfem__NodalFiniteElement", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_mfem__PositiveFiniteElement = {"_p_mfem__PositiveFiniteElement", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_mfem__VectorFiniteElement = {"_p_mfem__VectorFiniteElement", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_mfem__PointFiniteElement = {"_p_mfem__PointFiniteElement", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_mfem__Linear1DFiniteElement = {"_p_mfem__Linear1DFiniteElement", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_mfem__Linear2DFiniteElement = {"_p_mfem__Linear2DFiniteElement", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_mfem__BiLinear2DFiniteElement = {"_p_mfem__BiLinear2DFiniteElement", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_mfem__GaussLinear2DFiniteElement = {"_p_mfem__GaussLinear2DFiniteElement", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_mfem__GaussBiLinear2DFiniteElement = {"_p_mfem__GaussBiLinear2DFiniteElement", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_mfem__P1OnQuadFiniteElement = {"_p_mfem__P1OnQuadFiniteElement", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_mfem__Quad1DFiniteElement = {"_p_mfem__Quad1DFiniteElement", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_mfem__QuadPos1DFiniteElement = {"_p_mfem__QuadPos1DFiniteElement", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_mfem__Quad2DFiniteElement = {"_p_mfem__Quad2DFiniteElement", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_mfem__RT1QuadFiniteElement = {"_p_mfem__RT1QuadFiniteElement", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_mfem__L2Pos_SegmentElement = {"_p_mfem__L2Pos_SegmentElement", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_mfem__L2_QuadrilateralElement = {"_p_mfem__L2_QuadrilateralElement", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_mfem__L2Pos_QuadrilateralElement = {"_p_mfem__L2Pos_QuadrilateralElement", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_mfem__L2_HexahedronElement = {"_p_mfem__L2_HexahedronElement", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_mfem__L2Pos_HexahedronElement = {"_p_mfem__L2Pos_HexahedronElement", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_mfem__L2_TriangleElement = {"_p_mfem__L2_TriangleElement", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_mfem__L2Pos_TriangleElement = {"_p_mfem__L2Pos_TriangleElement", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_mfem__L2_TetrahedronElement = {"_p_mfem__L2_TetrahedronElement", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_mfem__L2Pos_TetrahedronElement = {"_p_mfem__L2Pos_TetrahedronElement", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_mfem__L2_WedgeElement = {"_p_mfem__L2_WedgeElement", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_mfem__P0WedgeFiniteElement = {"_p_mfem__P0WedgeFiniteElement", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_mfem__L2Pos_WedgeElement = {"_p_mfem__L2Pos_WedgeElement", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_mfem__RT_QuadrilateralElement = {"_p_mfem__RT_QuadrilateralElement", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_mfem__RT_HexahedronElement = {"_p_mfem__RT_HexahedronElement", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_mfem__RT_TriangleElement = {"_p_mfem__RT_TriangleElement", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_mfem__RT_TetrahedronElement = {"_p_mfem__RT_TetrahedronElement", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_mfem__ND_HexahedronElement = {"_p_mfem__ND_HexahedronElement", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_mfem__ND_QuadrilateralElement = {"_p_mfem__ND_QuadrilateralElement", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_mfem__ND_TetrahedronElement = {"_p_mfem__ND_TetrahedronElement", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_mfem__ND_TriangleElement = {"_p_mfem__ND_TriangleElement", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_mfem__ND_SegmentElement = {"_p_mfem__ND_SegmentElement", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_mfem__NURBSFiniteElement = {"_p_mfem__NURBSFiniteElement", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_mfem__NURBS1DFiniteElement = {"_p_mfem__NURBS1DFiniteElement", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_mfem__NURBS2DFiniteElement = {"_p_mfem__NURBS2DFiniteElement", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_mfem__NURBS3DFiniteElement = {"_p_mfem__NURBS3DFiniteElement", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_mfem__FiniteElementSpace = {"_p_mfem__FiniteElementSpace", "mfem::FiniteElementSpace *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_mfem__GridFunction = {"_p_mfem__GridFunction", "mfem::GridFunction *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_mfem__HyperelasticModel = {"_p_mfem__HyperelasticModel", "mfem::HyperelasticModel *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_mfem__HyperelasticNLFIntegrator = {"_p_mfem__HyperelasticNLFIntegrator", "mfem::HyperelasticNLFIntegrator *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_mfem__IncompressibleNeoHookeanIntegrator = {"_p_mfem__IncompressibleNeoHookeanIntegrator", "mfem::IncompressibleNeoHookeanIntegrator *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_mfem__IntegrationRule = {"_p_mfem__IntegrationRule", "mfem::IntegrationRule *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_mfem__InverseHarmonicModel = {"_p_mfem__InverseHarmonicModel", "mfem::InverseHarmonicModel *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_mfem__L2_FECollection = {"_p_mfem__L2_FECollection", "mfem::L2_FECollection *|mfem::DG_FECollection *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_mfem__MatrixVectorProductCoefficient = {"_p_mfem__MatrixVectorProductCoefficient", "mfem::MatrixVectorProductCoefficient *|mfem::MatVecCoefficient *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_mfem__NeoHookeanModel = {"_p_mfem__NeoHookeanModel", "mfem::NeoHookeanModel *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_mfem__NonlinearFormIntegrator = {"_p_mfem__NonlinearFormIntegrator", "mfem::NonlinearFormIntegrator *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_mfem__OperatorHandle = {"_p_mfem__OperatorHandle", "mfem::OperatorPtr *|mfem::OperatorHandle *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_mfem__Vector = {"_p_mfem__Vector", "mfem::Vector *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_mfem__QuadratureFunction = {"_p_mfem__QuadratureFunction", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_mfem__LinearForm = {"_p_mfem__LinearForm", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_mfem__VectorConvectionNLFIntegrator = {"_p_mfem__VectorConvectionNLFIntegrator", "mfem::VectorConvectionNLFIntegrator *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_pri_t = {"_p_pri_t", "pri_t *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_quad_t = {"_p_quad_t", "quad_t *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_seg_t = {"_p_seg_t", "seg_t *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_tet_t = {"_p_tet_t", "tet_t *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_tri_t = {"_p_tri_t", "tri_t *", 0, 0, (void*)0, 0}; static swig_type_info *swig_type_initial[] = { &_swigt__p_PyMFEM__wFILE, &_swigt__p_RefCoord, &_swigt__p_char, &_swigt__p_doublep, &_swigt__p_hex_t, &_swigt__p_intp, &_swigt__p_mfem__Array2DT_mfem__DenseMatrix_p_t, &_swigt__p_mfem__ArrayT_mfem__FiniteElement_const_p_t, &_swigt__p_mfem__ArrayT_mfem__Vector_const_p_t, &_swigt__p_mfem__ArrayT_mfem__Vector_p_t, &_swigt__p_mfem__BiCubic2DFiniteElement, &_swigt__p_mfem__BiCubic3DFiniteElement, &_swigt__p_mfem__BiLinear2DFiniteElement, &_swigt__p_mfem__BiLinear3DFiniteElement, &_swigt__p_mfem__BiQuad2DFiniteElement, &_swigt__p_mfem__BiQuadPos2DFiniteElement, &_swigt__p_mfem__BiQuadratic3DFiniteElement, &_swigt__p_mfem__BlockNonlinearFormIntegrator, &_swigt__p_mfem__Coefficient, &_swigt__p_mfem__ConstantCoefficient, &_swigt__p_mfem__CrouzeixRaviartFiniteElement, &_swigt__p_mfem__CrouzeixRaviartQuadFiniteElement, &_swigt__p_mfem__Cubic1DFiniteElement, &_swigt__p_mfem__Cubic2DFiniteElement, &_swigt__p_mfem__Cubic3DFiniteElement, &_swigt__p_mfem__DeltaCoefficient, &_swigt__p_mfem__DenseMatrix, &_swigt__p_mfem__DeterminantCoefficient, &_swigt__p_mfem__DivergenceGridFunctionCoefficient, &_swigt__p_mfem__ElementTransformation, &_swigt__p_mfem__ExtrudeCoefficient, &_swigt__p_mfem__FaceElementTransformations, &_swigt__p_mfem__FiniteElement, &_swigt__p_mfem__FiniteElementSpace, &_swigt__p_mfem__FunctionCoefficient, &_swigt__p_mfem__GaussBiLinear2DFiniteElement, &_swigt__p_mfem__GaussBiQuad2DFiniteElement, &_swigt__p_mfem__GaussLinear2DFiniteElement, &_swigt__p_mfem__GaussQuad2DFiniteElement, &_swigt__p_mfem__GridFunction, &_swigt__p_mfem__GridFunctionCoefficient, &_swigt__p_mfem__H1Pos_HexahedronElement, &_swigt__p_mfem__H1Pos_QuadrilateralElement, &_swigt__p_mfem__H1Pos_SegmentElement, &_swigt__p_mfem__H1Pos_TetrahedronElement, &_swigt__p_mfem__H1Pos_TriangleElement, &_swigt__p_mfem__H1Pos_WedgeElement, &_swigt__p_mfem__H1Ser_QuadrilateralElement, &_swigt__p_mfem__H1_HexahedronElement, &_swigt__p_mfem__H1_QuadrilateralElement, &_swigt__p_mfem__H1_SegmentElement, &_swigt__p_mfem__H1_TetrahedronElement, &_swigt__p_mfem__H1_TriangleElement, &_swigt__p_mfem__H1_WedgeElement, &_swigt__p_mfem__HyperelasticModel, &_swigt__p_mfem__HyperelasticNLFIntegrator, &_swigt__p_mfem__IncompressibleNeoHookeanIntegrator, &_swigt__p_mfem__InnerProductCoefficient, &_swigt__p_mfem__IntegrationRule, &_swigt__p_mfem__InverseHarmonicModel, &_swigt__p_mfem__IsoparametricTransformation, &_swigt__p_mfem__L2Pos_HexahedronElement, &_swigt__p_mfem__L2Pos_QuadrilateralElement, &_swigt__p_mfem__L2Pos_SegmentElement, &_swigt__p_mfem__L2Pos_TetrahedronElement, &_swigt__p_mfem__L2Pos_TriangleElement, &_swigt__p_mfem__L2Pos_WedgeElement, &_swigt__p_mfem__L2_FECollection, &_swigt__p_mfem__L2_HexahedronElement, &_swigt__p_mfem__L2_QuadrilateralElement, &_swigt__p_mfem__L2_SegmentElement, &_swigt__p_mfem__L2_TetrahedronElement, &_swigt__p_mfem__L2_TriangleElement, &_swigt__p_mfem__L2_WedgeElement, &_swigt__p_mfem__Lagrange1DFiniteElement, &_swigt__p_mfem__LagrangeHexFiniteElement, &_swigt__p_mfem__Linear1DFiniteElement, &_swigt__p_mfem__Linear2DFiniteElement, &_swigt__p_mfem__Linear3DFiniteElement, &_swigt__p_mfem__LinearForm, &_swigt__p_mfem__MatrixVectorProductCoefficient, &_swigt__p_mfem__ND_HexahedronElement, &_swigt__p_mfem__ND_QuadrilateralElement, &_swigt__p_mfem__ND_SegmentElement, &_swigt__p_mfem__ND_TetrahedronElement, &_swigt__p_mfem__ND_TriangleElement, &_swigt__p_mfem__NURBS1DFiniteElement, &_swigt__p_mfem__NURBS2DFiniteElement, &_swigt__p_mfem__NURBS3DFiniteElement, &_swigt__p_mfem__NURBSFiniteElement, &_swigt__p_mfem__Nedelec1HexFiniteElement, &_swigt__p_mfem__Nedelec1TetFiniteElement, &_swigt__p_mfem__NeoHookeanModel, &_swigt__p_mfem__NodalFiniteElement, &_swigt__p_mfem__NodalTensorFiniteElement, &_swigt__p_mfem__NonlinearFormIntegrator, &_swigt__p_mfem__OperatorHandle, &_swigt__p_mfem__P0HexFiniteElement, &_swigt__p_mfem__P0QuadFiniteElement, &_swigt__p_mfem__P0SegmentFiniteElement, &_swigt__p_mfem__P0TetFiniteElement, &_swigt__p_mfem__P0TriangleFiniteElement, &_swigt__p_mfem__P0WedgeFiniteElement, &_swigt__p_mfem__P1OnQuadFiniteElement, &_swigt__p_mfem__P1SegmentFiniteElement, &_swigt__p_mfem__P1TetNonConfFiniteElement, &_swigt__p_mfem__P2SegmentFiniteElement, &_swigt__p_mfem__PWConstCoefficient, &_swigt__p_mfem__PointFiniteElement, &_swigt__p_mfem__PositiveFiniteElement, &_swigt__p_mfem__PositiveTensorFiniteElement, &_swigt__p_mfem__PowerCoefficient, &_swigt__p_mfem__ProductCoefficient, &_swigt__p_mfem__PyCoefficientBase, &_swigt__p_mfem__Quad1DFiniteElement, &_swigt__p_mfem__Quad2DFiniteElement, &_swigt__p_mfem__QuadPos1DFiniteElement, &_swigt__p_mfem__Quadratic3DFiniteElement, &_swigt__p_mfem__QuadratureFunction, &_swigt__p_mfem__QuadratureFunctionCoefficient, &_swigt__p_mfem__RT0HexFiniteElement, &_swigt__p_mfem__RT0QuadFiniteElement, &_swigt__p_mfem__RT0TetFiniteElement, &_swigt__p_mfem__RT0TriangleFiniteElement, &_swigt__p_mfem__RT1HexFiniteElement, &_swigt__p_mfem__RT1QuadFiniteElement, &_swigt__p_mfem__RT1TriangleFiniteElement, &_swigt__p_mfem__RT2QuadFiniteElement, &_swigt__p_mfem__RT2TriangleFiniteElement, &_swigt__p_mfem__RT_HexahedronElement, &_swigt__p_mfem__RT_QuadrilateralElement, &_swigt__p_mfem__RT_TetrahedronElement, &_swigt__p_mfem__RT_TriangleElement, &_swigt__p_mfem__RatioCoefficient, &_swigt__p_mfem__RefinedBiLinear2DFiniteElement, &_swigt__p_mfem__RefinedLinear1DFiniteElement, &_swigt__p_mfem__RefinedLinear2DFiniteElement, &_swigt__p_mfem__RefinedLinear3DFiniteElement, &_swigt__p_mfem__RefinedTriLinear3DFiniteElement, &_swigt__p_mfem__RestrictedCoefficient, &_swigt__p_mfem__RotTriLinearHexFiniteElement, &_swigt__p_mfem__ScalarFiniteElement, &_swigt__p_mfem__SumCoefficient, &_swigt__p_mfem__TransformedCoefficient, &_swigt__p_mfem__TriLinear3DFiniteElement, &_swigt__p_mfem__Vector, &_swigt__p_mfem__VectorConvectionNLFIntegrator, &_swigt__p_mfem__VectorFiniteElement, &_swigt__p_mfem__VectorRotProductCoefficient, &_swigt__p_mfem__VectorTensorFiniteElement, &_swigt__p_pri_t, &_swigt__p_quad_t, &_swigt__p_seg_t, &_swigt__p_tet_t, &_swigt__p_tri_t, }; static swig_cast_info _swigc__p_PyMFEM__wFILE[] = { {&_swigt__p_PyMFEM__wFILE, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_RefCoord[] = { {&_swigt__p_RefCoord, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_doublep[] = { {&_swigt__p_doublep, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_hex_t[] = { {&_swigt__p_hex_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_intp[] = { {&_swigt__p_intp, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_mfem__Array2DT_mfem__DenseMatrix_p_t[] = { {&_swigt__p_mfem__Array2DT_mfem__DenseMatrix_p_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_mfem__ArrayT_mfem__FiniteElement_const_p_t[] = { {&_swigt__p_mfem__ArrayT_mfem__FiniteElement_const_p_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_mfem__ArrayT_mfem__Vector_const_p_t[] = { {&_swigt__p_mfem__ArrayT_mfem__Vector_const_p_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_mfem__ArrayT_mfem__Vector_p_t[] = { {&_swigt__p_mfem__ArrayT_mfem__Vector_p_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_mfem__BlockNonlinearFormIntegrator[] = { {&_swigt__p_mfem__BlockNonlinearFormIntegrator, 0, 0, 0}, {&_swigt__p_mfem__IncompressibleNeoHookeanIntegrator, _p_mfem__IncompressibleNeoHookeanIntegratorTo_p_mfem__BlockNonlinearFormIntegrator, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_mfem__PyCoefficientBase[] = {{&_swigt__p_mfem__PyCoefficientBase, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_mfem__VectorRotProductCoefficient[] = {{&_swigt__p_mfem__VectorRotProductCoefficient, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_mfem__InnerProductCoefficient[] = {{&_swigt__p_mfem__InnerProductCoefficient, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_mfem__PowerCoefficient[] = {{&_swigt__p_mfem__PowerCoefficient, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_mfem__RatioCoefficient[] = {{&_swigt__p_mfem__RatioCoefficient, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_mfem__ProductCoefficient[] = {{&_swigt__p_mfem__ProductCoefficient, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_mfem__SumCoefficient[] = {{&_swigt__p_mfem__SumCoefficient, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_mfem__DivergenceGridFunctionCoefficient[] = {{&_swigt__p_mfem__DivergenceGridFunctionCoefficient, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_mfem__RestrictedCoefficient[] = {{&_swigt__p_mfem__RestrictedCoefficient, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_mfem__DeltaCoefficient[] = {{&_swigt__p_mfem__DeltaCoefficient, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_mfem__TransformedCoefficient[] = {{&_swigt__p_mfem__TransformedCoefficient, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_mfem__GridFunctionCoefficient[] = {{&_swigt__p_mfem__GridFunctionCoefficient, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_mfem__FunctionCoefficient[] = {{&_swigt__p_mfem__FunctionCoefficient, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_mfem__PWConstCoefficient[] = {{&_swigt__p_mfem__PWConstCoefficient, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_mfem__ConstantCoefficient[] = {{&_swigt__p_mfem__ConstantCoefficient, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_mfem__DeterminantCoefficient[] = {{&_swigt__p_mfem__DeterminantCoefficient, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_mfem__QuadratureFunctionCoefficient[] = {{&_swigt__p_mfem__QuadratureFunctionCoefficient, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_mfem__ExtrudeCoefficient[] = {{&_swigt__p_mfem__ExtrudeCoefficient, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_mfem__Coefficient[] = { {&_swigt__p_mfem__PyCoefficientBase, _p_mfem__PyCoefficientBaseTo_p_mfem__Coefficient, 0, 0}, {&_swigt__p_mfem__VectorRotProductCoefficient, _p_mfem__VectorRotProductCoefficientTo_p_mfem__Coefficient, 0, 0}, {&_swigt__p_mfem__InnerProductCoefficient, _p_mfem__InnerProductCoefficientTo_p_mfem__Coefficient, 0, 0}, {&_swigt__p_mfem__PowerCoefficient, _p_mfem__PowerCoefficientTo_p_mfem__Coefficient, 0, 0}, {&_swigt__p_mfem__RatioCoefficient, _p_mfem__RatioCoefficientTo_p_mfem__Coefficient, 0, 0}, {&_swigt__p_mfem__ProductCoefficient, _p_mfem__ProductCoefficientTo_p_mfem__Coefficient, 0, 0}, {&_swigt__p_mfem__SumCoefficient, _p_mfem__SumCoefficientTo_p_mfem__Coefficient, 0, 0}, {&_swigt__p_mfem__DivergenceGridFunctionCoefficient, _p_mfem__DivergenceGridFunctionCoefficientTo_p_mfem__Coefficient, 0, 0}, {&_swigt__p_mfem__RestrictedCoefficient, _p_mfem__RestrictedCoefficientTo_p_mfem__Coefficient, 0, 0}, {&_swigt__p_mfem__DeltaCoefficient, _p_mfem__DeltaCoefficientTo_p_mfem__Coefficient, 0, 0}, {&_swigt__p_mfem__TransformedCoefficient, _p_mfem__TransformedCoefficientTo_p_mfem__Coefficient, 0, 0}, {&_swigt__p_mfem__GridFunctionCoefficient, _p_mfem__GridFunctionCoefficientTo_p_mfem__Coefficient, 0, 0}, {&_swigt__p_mfem__FunctionCoefficient, _p_mfem__FunctionCoefficientTo_p_mfem__Coefficient, 0, 0}, {&_swigt__p_mfem__Coefficient, 0, 0, 0}, {&_swigt__p_mfem__PWConstCoefficient, _p_mfem__PWConstCoefficientTo_p_mfem__Coefficient, 0, 0}, {&_swigt__p_mfem__ConstantCoefficient, _p_mfem__ConstantCoefficientTo_p_mfem__Coefficient, 0, 0}, {&_swigt__p_mfem__DeterminantCoefficient, _p_mfem__DeterminantCoefficientTo_p_mfem__Coefficient, 0, 0}, {&_swigt__p_mfem__QuadratureFunctionCoefficient, _p_mfem__QuadratureFunctionCoefficientTo_p_mfem__Coefficient, 0, 0}, {&_swigt__p_mfem__ExtrudeCoefficient, _p_mfem__ExtrudeCoefficientTo_p_mfem__Coefficient, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_mfem__DenseMatrix[] = { {&_swigt__p_mfem__DenseMatrix, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_mfem__IsoparametricTransformation[] = {{&_swigt__p_mfem__IsoparametricTransformation, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_mfem__ElementTransformation[] = { {&_swigt__p_mfem__ElementTransformation, 0, 0, 0}, {&_swigt__p_mfem__IsoparametricTransformation, _p_mfem__IsoparametricTransformationTo_p_mfem__ElementTransformation, 0, 0}, {&_swigt__p_mfem__FaceElementTransformations, _p_mfem__FaceElementTransformationsTo_p_mfem__ElementTransformation, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_mfem__FaceElementTransformations[] = { {&_swigt__p_mfem__FaceElementTransformations, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_mfem__P0HexFiniteElement[] = {{&_swigt__p_mfem__P0HexFiniteElement, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_mfem__LagrangeHexFiniteElement[] = {{&_swigt__p_mfem__LagrangeHexFiniteElement, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_mfem__RefinedLinear1DFiniteElement[] = {{&_swigt__p_mfem__RefinedLinear1DFiniteElement, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_mfem__RefinedLinear2DFiniteElement[] = {{&_swigt__p_mfem__RefinedLinear2DFiniteElement, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_mfem__RefinedLinear3DFiniteElement[] = {{&_swigt__p_mfem__RefinedLinear3DFiniteElement, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_mfem__RefinedBiLinear2DFiniteElement[] = {{&_swigt__p_mfem__RefinedBiLinear2DFiniteElement, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_mfem__RefinedTriLinear3DFiniteElement[] = {{&_swigt__p_mfem__RefinedTriLinear3DFiniteElement, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_mfem__Nedelec1HexFiniteElement[] = {{&_swigt__p_mfem__Nedelec1HexFiniteElement, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_mfem__Nedelec1TetFiniteElement[] = {{&_swigt__p_mfem__Nedelec1TetFiniteElement, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_mfem__RT0HexFiniteElement[] = {{&_swigt__p_mfem__RT0HexFiniteElement, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_mfem__RT1HexFiniteElement[] = {{&_swigt__p_mfem__RT1HexFiniteElement, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_mfem__RT0TetFiniteElement[] = {{&_swigt__p_mfem__RT0TetFiniteElement, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_mfem__RotTriLinearHexFiniteElement[] = {{&_swigt__p_mfem__RotTriLinearHexFiniteElement, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_mfem__NodalTensorFiniteElement[] = {{&_swigt__p_mfem__NodalTensorFiniteElement, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_mfem__PositiveTensorFiniteElement[] = {{&_swigt__p_mfem__PositiveTensorFiniteElement, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_mfem__VectorTensorFiniteElement[] = {{&_swigt__p_mfem__VectorTensorFiniteElement, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_mfem__H1_SegmentElement[] = {{&_swigt__p_mfem__H1_SegmentElement, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_mfem__H1_QuadrilateralElement[] = {{&_swigt__p_mfem__H1_QuadrilateralElement, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_mfem__H1_HexahedronElement[] = {{&_swigt__p_mfem__H1_HexahedronElement, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_mfem__H1Pos_SegmentElement[] = {{&_swigt__p_mfem__H1Pos_SegmentElement, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_mfem__L2_SegmentElement[] = {{&_swigt__p_mfem__L2_SegmentElement, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_mfem__H1Pos_WedgeElement[] = {{&_swigt__p_mfem__H1Pos_WedgeElement, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_mfem__BiCubic3DFiniteElement[] = {{&_swigt__p_mfem__BiCubic3DFiniteElement, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_mfem__BiQuadratic3DFiniteElement[] = {{&_swigt__p_mfem__BiQuadratic3DFiniteElement, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_mfem__BiLinear3DFiniteElement[] = {{&_swigt__p_mfem__BiLinear3DFiniteElement, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_mfem__H1_WedgeElement[] = {{&_swigt__p_mfem__H1_WedgeElement, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_mfem__H1Pos_TetrahedronElement[] = {{&_swigt__p_mfem__H1Pos_TetrahedronElement, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_mfem__H1Pos_TriangleElement[] = {{&_swigt__p_mfem__H1Pos_TriangleElement, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_mfem__H1_TetrahedronElement[] = {{&_swigt__p_mfem__H1_TetrahedronElement, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_mfem__H1_TriangleElement[] = {{&_swigt__p_mfem__H1_TriangleElement, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_mfem__H1Pos_HexahedronElement[] = {{&_swigt__p_mfem__H1Pos_HexahedronElement, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_mfem__H1Ser_QuadrilateralElement[] = {{&_swigt__p_mfem__H1Ser_QuadrilateralElement, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_mfem__H1Pos_QuadrilateralElement[] = {{&_swigt__p_mfem__H1Pos_QuadrilateralElement, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_mfem__P0TetFiniteElement[] = {{&_swigt__p_mfem__P0TetFiniteElement, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_mfem__P1TetNonConfFiniteElement[] = {{&_swigt__p_mfem__P1TetNonConfFiniteElement, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_mfem__Lagrange1DFiniteElement[] = {{&_swigt__p_mfem__Lagrange1DFiniteElement, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_mfem__P2SegmentFiniteElement[] = {{&_swigt__p_mfem__P2SegmentFiniteElement, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_mfem__P1SegmentFiniteElement[] = {{&_swigt__p_mfem__P1SegmentFiniteElement, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_mfem__RT2QuadFiniteElement[] = {{&_swigt__p_mfem__RT2QuadFiniteElement, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_mfem__RT2TriangleFiniteElement[] = {{&_swigt__p_mfem__RT2TriangleFiniteElement, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_mfem__Cubic2DFiniteElement[] = {{&_swigt__p_mfem__Cubic2DFiniteElement, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_mfem__Cubic3DFiniteElement[] = {{&_swigt__p_mfem__Cubic3DFiniteElement, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_mfem__P0TriangleFiniteElement[] = {{&_swigt__p_mfem__P0TriangleFiniteElement, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_mfem__P0QuadFiniteElement[] = {{&_swigt__p_mfem__P0QuadFiniteElement, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_mfem__Linear3DFiniteElement[] = {{&_swigt__p_mfem__Linear3DFiniteElement, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_mfem__Quadratic3DFiniteElement[] = {{&_swigt__p_mfem__Quadratic3DFiniteElement, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_mfem__TriLinear3DFiniteElement[] = {{&_swigt__p_mfem__TriLinear3DFiniteElement, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_mfem__CrouzeixRaviartFiniteElement[] = {{&_swigt__p_mfem__CrouzeixRaviartFiniteElement, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_mfem__CrouzeixRaviartQuadFiniteElement[] = {{&_swigt__p_mfem__CrouzeixRaviartQuadFiniteElement, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_mfem__P0SegmentFiniteElement[] = {{&_swigt__p_mfem__P0SegmentFiniteElement, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_mfem__RT0TriangleFiniteElement[] = {{&_swigt__p_mfem__RT0TriangleFiniteElement, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_mfem__RT0QuadFiniteElement[] = {{&_swigt__p_mfem__RT0QuadFiniteElement, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_mfem__RT1TriangleFiniteElement[] = {{&_swigt__p_mfem__RT1TriangleFiniteElement, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_mfem__Cubic1DFiniteElement[] = {{&_swigt__p_mfem__Cubic1DFiniteElement, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_mfem__BiCubic2DFiniteElement[] = {{&_swigt__p_mfem__BiCubic2DFiniteElement, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_mfem__GaussBiQuad2DFiniteElement[] = {{&_swigt__p_mfem__GaussBiQuad2DFiniteElement, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_mfem__BiQuadPos2DFiniteElement[] = {{&_swigt__p_mfem__BiQuadPos2DFiniteElement, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_mfem__BiQuad2DFiniteElement[] = {{&_swigt__p_mfem__BiQuad2DFiniteElement, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_mfem__GaussQuad2DFiniteElement[] = {{&_swigt__p_mfem__GaussQuad2DFiniteElement, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_mfem__ScalarFiniteElement[] = {{&_swigt__p_mfem__ScalarFiniteElement, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_mfem__NodalFiniteElement[] = {{&_swigt__p_mfem__NodalFiniteElement, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_mfem__PositiveFiniteElement[] = {{&_swigt__p_mfem__PositiveFiniteElement, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_mfem__VectorFiniteElement[] = {{&_swigt__p_mfem__VectorFiniteElement, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_mfem__PointFiniteElement[] = {{&_swigt__p_mfem__PointFiniteElement, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_mfem__Linear1DFiniteElement[] = {{&_swigt__p_mfem__Linear1DFiniteElement, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_mfem__Linear2DFiniteElement[] = {{&_swigt__p_mfem__Linear2DFiniteElement, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_mfem__BiLinear2DFiniteElement[] = {{&_swigt__p_mfem__BiLinear2DFiniteElement, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_mfem__GaussLinear2DFiniteElement[] = {{&_swigt__p_mfem__GaussLinear2DFiniteElement, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_mfem__GaussBiLinear2DFiniteElement[] = {{&_swigt__p_mfem__GaussBiLinear2DFiniteElement, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_mfem__P1OnQuadFiniteElement[] = {{&_swigt__p_mfem__P1OnQuadFiniteElement, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_mfem__Quad1DFiniteElement[] = {{&_swigt__p_mfem__Quad1DFiniteElement, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_mfem__QuadPos1DFiniteElement[] = {{&_swigt__p_mfem__QuadPos1DFiniteElement, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_mfem__Quad2DFiniteElement[] = {{&_swigt__p_mfem__Quad2DFiniteElement, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_mfem__RT1QuadFiniteElement[] = {{&_swigt__p_mfem__RT1QuadFiniteElement, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_mfem__L2Pos_SegmentElement[] = {{&_swigt__p_mfem__L2Pos_SegmentElement, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_mfem__L2_QuadrilateralElement[] = {{&_swigt__p_mfem__L2_QuadrilateralElement, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_mfem__L2Pos_QuadrilateralElement[] = {{&_swigt__p_mfem__L2Pos_QuadrilateralElement, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_mfem__L2_HexahedronElement[] = {{&_swigt__p_mfem__L2_HexahedronElement, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_mfem__L2Pos_HexahedronElement[] = {{&_swigt__p_mfem__L2Pos_HexahedronElement, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_mfem__L2_TriangleElement[] = {{&_swigt__p_mfem__L2_TriangleElement, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_mfem__L2Pos_TriangleElement[] = {{&_swigt__p_mfem__L2Pos_TriangleElement, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_mfem__L2_TetrahedronElement[] = {{&_swigt__p_mfem__L2_TetrahedronElement, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_mfem__L2Pos_TetrahedronElement[] = {{&_swigt__p_mfem__L2Pos_TetrahedronElement, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_mfem__L2_WedgeElement[] = {{&_swigt__p_mfem__L2_WedgeElement, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_mfem__P0WedgeFiniteElement[] = {{&_swigt__p_mfem__P0WedgeFiniteElement, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_mfem__L2Pos_WedgeElement[] = {{&_swigt__p_mfem__L2Pos_WedgeElement, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_mfem__RT_QuadrilateralElement[] = {{&_swigt__p_mfem__RT_QuadrilateralElement, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_mfem__RT_HexahedronElement[] = {{&_swigt__p_mfem__RT_HexahedronElement, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_mfem__RT_TriangleElement[] = {{&_swigt__p_mfem__RT_TriangleElement, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_mfem__RT_TetrahedronElement[] = {{&_swigt__p_mfem__RT_TetrahedronElement, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_mfem__ND_HexahedronElement[] = {{&_swigt__p_mfem__ND_HexahedronElement, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_mfem__ND_QuadrilateralElement[] = {{&_swigt__p_mfem__ND_QuadrilateralElement, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_mfem__ND_TetrahedronElement[] = {{&_swigt__p_mfem__ND_TetrahedronElement, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_mfem__ND_TriangleElement[] = {{&_swigt__p_mfem__ND_TriangleElement, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_mfem__ND_SegmentElement[] = {{&_swigt__p_mfem__ND_SegmentElement, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_mfem__NURBSFiniteElement[] = {{&_swigt__p_mfem__NURBSFiniteElement, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_mfem__NURBS1DFiniteElement[] = {{&_swigt__p_mfem__NURBS1DFiniteElement, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_mfem__NURBS2DFiniteElement[] = {{&_swigt__p_mfem__NURBS2DFiniteElement, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_mfem__NURBS3DFiniteElement[] = {{&_swigt__p_mfem__NURBS3DFiniteElement, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_mfem__FiniteElement[] = { {&_swigt__p_mfem__P0HexFiniteElement, _p_mfem__P0HexFiniteElementTo_p_mfem__FiniteElement, 0, 0}, {&_swigt__p_mfem__LagrangeHexFiniteElement, _p_mfem__LagrangeHexFiniteElementTo_p_mfem__FiniteElement, 0, 0}, {&_swigt__p_mfem__RefinedLinear1DFiniteElement, _p_mfem__RefinedLinear1DFiniteElementTo_p_mfem__FiniteElement, 0, 0}, {&_swigt__p_mfem__RefinedLinear2DFiniteElement, _p_mfem__RefinedLinear2DFiniteElementTo_p_mfem__FiniteElement, 0, 0}, {&_swigt__p_mfem__RefinedLinear3DFiniteElement, _p_mfem__RefinedLinear3DFiniteElementTo_p_mfem__FiniteElement, 0, 0}, {&_swigt__p_mfem__RefinedBiLinear2DFiniteElement, _p_mfem__RefinedBiLinear2DFiniteElementTo_p_mfem__FiniteElement, 0, 0}, {&_swigt__p_mfem__RefinedTriLinear3DFiniteElement, _p_mfem__RefinedTriLinear3DFiniteElementTo_p_mfem__FiniteElement, 0, 0}, {&_swigt__p_mfem__Nedelec1HexFiniteElement, _p_mfem__Nedelec1HexFiniteElementTo_p_mfem__FiniteElement, 0, 0}, {&_swigt__p_mfem__Nedelec1TetFiniteElement, _p_mfem__Nedelec1TetFiniteElementTo_p_mfem__FiniteElement, 0, 0}, {&_swigt__p_mfem__RT0HexFiniteElement, _p_mfem__RT0HexFiniteElementTo_p_mfem__FiniteElement, 0, 0}, {&_swigt__p_mfem__RT1HexFiniteElement, _p_mfem__RT1HexFiniteElementTo_p_mfem__FiniteElement, 0, 0}, {&_swigt__p_mfem__RT0TetFiniteElement, _p_mfem__RT0TetFiniteElementTo_p_mfem__FiniteElement, 0, 0}, {&_swigt__p_mfem__RotTriLinearHexFiniteElement, _p_mfem__RotTriLinearHexFiniteElementTo_p_mfem__FiniteElement, 0, 0}, {&_swigt__p_mfem__NodalTensorFiniteElement, _p_mfem__NodalTensorFiniteElementTo_p_mfem__FiniteElement, 0, 0}, {&_swigt__p_mfem__PositiveTensorFiniteElement, _p_mfem__PositiveTensorFiniteElementTo_p_mfem__FiniteElement, 0, 0}, {&_swigt__p_mfem__VectorTensorFiniteElement, _p_mfem__VectorTensorFiniteElementTo_p_mfem__FiniteElement, 0, 0}, {&_swigt__p_mfem__H1_SegmentElement, _p_mfem__H1_SegmentElementTo_p_mfem__FiniteElement, 0, 0}, {&_swigt__p_mfem__H1_QuadrilateralElement, _p_mfem__H1_QuadrilateralElementTo_p_mfem__FiniteElement, 0, 0}, {&_swigt__p_mfem__H1_HexahedronElement, _p_mfem__H1_HexahedronElementTo_p_mfem__FiniteElement, 0, 0}, {&_swigt__p_mfem__H1Pos_SegmentElement, _p_mfem__H1Pos_SegmentElementTo_p_mfem__FiniteElement, 0, 0}, {&_swigt__p_mfem__L2_SegmentElement, _p_mfem__L2_SegmentElementTo_p_mfem__FiniteElement, 0, 0}, {&_swigt__p_mfem__H1Pos_WedgeElement, _p_mfem__H1Pos_WedgeElementTo_p_mfem__FiniteElement, 0, 0}, {&_swigt__p_mfem__BiCubic3DFiniteElement, _p_mfem__BiCubic3DFiniteElementTo_p_mfem__FiniteElement, 0, 0}, {&_swigt__p_mfem__BiQuadratic3DFiniteElement, _p_mfem__BiQuadratic3DFiniteElementTo_p_mfem__FiniteElement, 0, 0}, {&_swigt__p_mfem__BiLinear3DFiniteElement, _p_mfem__BiLinear3DFiniteElementTo_p_mfem__FiniteElement, 0, 0}, {&_swigt__p_mfem__H1_WedgeElement, _p_mfem__H1_WedgeElementTo_p_mfem__FiniteElement, 0, 0}, {&_swigt__p_mfem__H1Pos_TetrahedronElement, _p_mfem__H1Pos_TetrahedronElementTo_p_mfem__FiniteElement, 0, 0}, {&_swigt__p_mfem__H1Pos_TriangleElement, _p_mfem__H1Pos_TriangleElementTo_p_mfem__FiniteElement, 0, 0}, {&_swigt__p_mfem__H1_TetrahedronElement, _p_mfem__H1_TetrahedronElementTo_p_mfem__FiniteElement, 0, 0}, {&_swigt__p_mfem__H1_TriangleElement, _p_mfem__H1_TriangleElementTo_p_mfem__FiniteElement, 0, 0}, {&_swigt__p_mfem__H1Pos_HexahedronElement, _p_mfem__H1Pos_HexahedronElementTo_p_mfem__FiniteElement, 0, 0}, {&_swigt__p_mfem__H1Ser_QuadrilateralElement, _p_mfem__H1Ser_QuadrilateralElementTo_p_mfem__FiniteElement, 0, 0}, {&_swigt__p_mfem__H1Pos_QuadrilateralElement, _p_mfem__H1Pos_QuadrilateralElementTo_p_mfem__FiniteElement, 0, 0}, {&_swigt__p_mfem__P0TetFiniteElement, _p_mfem__P0TetFiniteElementTo_p_mfem__FiniteElement, 0, 0}, {&_swigt__p_mfem__P1TetNonConfFiniteElement, _p_mfem__P1TetNonConfFiniteElementTo_p_mfem__FiniteElement, 0, 0}, {&_swigt__p_mfem__Lagrange1DFiniteElement, _p_mfem__Lagrange1DFiniteElementTo_p_mfem__FiniteElement, 0, 0}, {&_swigt__p_mfem__P2SegmentFiniteElement, _p_mfem__P2SegmentFiniteElementTo_p_mfem__FiniteElement, 0, 0}, {&_swigt__p_mfem__P1SegmentFiniteElement, _p_mfem__P1SegmentFiniteElementTo_p_mfem__FiniteElement, 0, 0}, {&_swigt__p_mfem__RT2QuadFiniteElement, _p_mfem__RT2QuadFiniteElementTo_p_mfem__FiniteElement, 0, 0}, {&_swigt__p_mfem__RT2TriangleFiniteElement, _p_mfem__RT2TriangleFiniteElementTo_p_mfem__FiniteElement, 0, 0}, {&_swigt__p_mfem__Cubic2DFiniteElement, _p_mfem__Cubic2DFiniteElementTo_p_mfem__FiniteElement, 0, 0}, {&_swigt__p_mfem__Cubic3DFiniteElement, _p_mfem__Cubic3DFiniteElementTo_p_mfem__FiniteElement, 0, 0}, {&_swigt__p_mfem__P0TriangleFiniteElement, _p_mfem__P0TriangleFiniteElementTo_p_mfem__FiniteElement, 0, 0}, {&_swigt__p_mfem__P0QuadFiniteElement, _p_mfem__P0QuadFiniteElementTo_p_mfem__FiniteElement, 0, 0}, {&_swigt__p_mfem__Linear3DFiniteElement, _p_mfem__Linear3DFiniteElementTo_p_mfem__FiniteElement, 0, 0}, {&_swigt__p_mfem__Quadratic3DFiniteElement, _p_mfem__Quadratic3DFiniteElementTo_p_mfem__FiniteElement, 0, 0}, {&_swigt__p_mfem__TriLinear3DFiniteElement, _p_mfem__TriLinear3DFiniteElementTo_p_mfem__FiniteElement, 0, 0}, {&_swigt__p_mfem__CrouzeixRaviartFiniteElement, _p_mfem__CrouzeixRaviartFiniteElementTo_p_mfem__FiniteElement, 0, 0}, {&_swigt__p_mfem__CrouzeixRaviartQuadFiniteElement, _p_mfem__CrouzeixRaviartQuadFiniteElementTo_p_mfem__FiniteElement, 0, 0}, {&_swigt__p_mfem__P0SegmentFiniteElement, _p_mfem__P0SegmentFiniteElementTo_p_mfem__FiniteElement, 0, 0}, {&_swigt__p_mfem__RT0TriangleFiniteElement, _p_mfem__RT0TriangleFiniteElementTo_p_mfem__FiniteElement, 0, 0}, {&_swigt__p_mfem__RT0QuadFiniteElement, _p_mfem__RT0QuadFiniteElementTo_p_mfem__FiniteElement, 0, 0}, {&_swigt__p_mfem__RT1TriangleFiniteElement, _p_mfem__RT1TriangleFiniteElementTo_p_mfem__FiniteElement, 0, 0}, {&_swigt__p_mfem__FiniteElement, 0, 0, 0}, {&_swigt__p_mfem__Cubic1DFiniteElement, _p_mfem__Cubic1DFiniteElementTo_p_mfem__FiniteElement, 0, 0}, {&_swigt__p_mfem__BiCubic2DFiniteElement, _p_mfem__BiCubic2DFiniteElementTo_p_mfem__FiniteElement, 0, 0}, {&_swigt__p_mfem__GaussBiQuad2DFiniteElement, _p_mfem__GaussBiQuad2DFiniteElementTo_p_mfem__FiniteElement, 0, 0}, {&_swigt__p_mfem__BiQuadPos2DFiniteElement, _p_mfem__BiQuadPos2DFiniteElementTo_p_mfem__FiniteElement, 0, 0}, {&_swigt__p_mfem__BiQuad2DFiniteElement, _p_mfem__BiQuad2DFiniteElementTo_p_mfem__FiniteElement, 0, 0}, {&_swigt__p_mfem__GaussQuad2DFiniteElement, _p_mfem__GaussQuad2DFiniteElementTo_p_mfem__FiniteElement, 0, 0}, {&_swigt__p_mfem__ScalarFiniteElement, _p_mfem__ScalarFiniteElementTo_p_mfem__FiniteElement, 0, 0}, {&_swigt__p_mfem__NodalFiniteElement, _p_mfem__NodalFiniteElementTo_p_mfem__FiniteElement, 0, 0}, {&_swigt__p_mfem__PositiveFiniteElement, _p_mfem__PositiveFiniteElementTo_p_mfem__FiniteElement, 0, 0}, {&_swigt__p_mfem__VectorFiniteElement, _p_mfem__VectorFiniteElementTo_p_mfem__FiniteElement, 0, 0}, {&_swigt__p_mfem__PointFiniteElement, _p_mfem__PointFiniteElementTo_p_mfem__FiniteElement, 0, 0}, {&_swigt__p_mfem__Linear1DFiniteElement, _p_mfem__Linear1DFiniteElementTo_p_mfem__FiniteElement, 0, 0}, {&_swigt__p_mfem__Linear2DFiniteElement, _p_mfem__Linear2DFiniteElementTo_p_mfem__FiniteElement, 0, 0}, {&_swigt__p_mfem__BiLinear2DFiniteElement, _p_mfem__BiLinear2DFiniteElementTo_p_mfem__FiniteElement, 0, 0}, {&_swigt__p_mfem__GaussLinear2DFiniteElement, _p_mfem__GaussLinear2DFiniteElementTo_p_mfem__FiniteElement, 0, 0}, {&_swigt__p_mfem__GaussBiLinear2DFiniteElement, _p_mfem__GaussBiLinear2DFiniteElementTo_p_mfem__FiniteElement, 0, 0}, {&_swigt__p_mfem__P1OnQuadFiniteElement, _p_mfem__P1OnQuadFiniteElementTo_p_mfem__FiniteElement, 0, 0}, {&_swigt__p_mfem__Quad1DFiniteElement, _p_mfem__Quad1DFiniteElementTo_p_mfem__FiniteElement, 0, 0}, {&_swigt__p_mfem__QuadPos1DFiniteElement, _p_mfem__QuadPos1DFiniteElementTo_p_mfem__FiniteElement, 0, 0}, {&_swigt__p_mfem__Quad2DFiniteElement, _p_mfem__Quad2DFiniteElementTo_p_mfem__FiniteElement, 0, 0}, {&_swigt__p_mfem__RT1QuadFiniteElement, _p_mfem__RT1QuadFiniteElementTo_p_mfem__FiniteElement, 0, 0}, {&_swigt__p_mfem__L2Pos_SegmentElement, _p_mfem__L2Pos_SegmentElementTo_p_mfem__FiniteElement, 0, 0}, {&_swigt__p_mfem__L2_QuadrilateralElement, _p_mfem__L2_QuadrilateralElementTo_p_mfem__FiniteElement, 0, 0}, {&_swigt__p_mfem__L2Pos_QuadrilateralElement, _p_mfem__L2Pos_QuadrilateralElementTo_p_mfem__FiniteElement, 0, 0}, {&_swigt__p_mfem__L2_HexahedronElement, _p_mfem__L2_HexahedronElementTo_p_mfem__FiniteElement, 0, 0}, {&_swigt__p_mfem__L2Pos_HexahedronElement, _p_mfem__L2Pos_HexahedronElementTo_p_mfem__FiniteElement, 0, 0}, {&_swigt__p_mfem__L2_TriangleElement, _p_mfem__L2_TriangleElementTo_p_mfem__FiniteElement, 0, 0}, {&_swigt__p_mfem__L2Pos_TriangleElement, _p_mfem__L2Pos_TriangleElementTo_p_mfem__FiniteElement, 0, 0}, {&_swigt__p_mfem__L2_TetrahedronElement, _p_mfem__L2_TetrahedronElementTo_p_mfem__FiniteElement, 0, 0}, {&_swigt__p_mfem__L2Pos_TetrahedronElement, _p_mfem__L2Pos_TetrahedronElementTo_p_mfem__FiniteElement, 0, 0}, {&_swigt__p_mfem__L2_WedgeElement, _p_mfem__L2_WedgeElementTo_p_mfem__FiniteElement, 0, 0}, {&_swigt__p_mfem__P0WedgeFiniteElement, _p_mfem__P0WedgeFiniteElementTo_p_mfem__FiniteElement, 0, 0}, {&_swigt__p_mfem__L2Pos_WedgeElement, _p_mfem__L2Pos_WedgeElementTo_p_mfem__FiniteElement, 0, 0}, {&_swigt__p_mfem__RT_QuadrilateralElement, _p_mfem__RT_QuadrilateralElementTo_p_mfem__FiniteElement, 0, 0}, {&_swigt__p_mfem__RT_HexahedronElement, _p_mfem__RT_HexahedronElementTo_p_mfem__FiniteElement, 0, 0}, {&_swigt__p_mfem__RT_TriangleElement, _p_mfem__RT_TriangleElementTo_p_mfem__FiniteElement, 0, 0}, {&_swigt__p_mfem__RT_TetrahedronElement, _p_mfem__RT_TetrahedronElementTo_p_mfem__FiniteElement, 0, 0}, {&_swigt__p_mfem__ND_HexahedronElement, _p_mfem__ND_HexahedronElementTo_p_mfem__FiniteElement, 0, 0}, {&_swigt__p_mfem__ND_QuadrilateralElement, _p_mfem__ND_QuadrilateralElementTo_p_mfem__FiniteElement, 0, 0}, {&_swigt__p_mfem__ND_TetrahedronElement, _p_mfem__ND_TetrahedronElementTo_p_mfem__FiniteElement, 0, 0}, {&_swigt__p_mfem__ND_TriangleElement, _p_mfem__ND_TriangleElementTo_p_mfem__FiniteElement, 0, 0}, {&_swigt__p_mfem__ND_SegmentElement, _p_mfem__ND_SegmentElementTo_p_mfem__FiniteElement, 0, 0}, {&_swigt__p_mfem__NURBSFiniteElement, _p_mfem__NURBSFiniteElementTo_p_mfem__FiniteElement, 0, 0}, {&_swigt__p_mfem__NURBS1DFiniteElement, _p_mfem__NURBS1DFiniteElementTo_p_mfem__FiniteElement, 0, 0}, {&_swigt__p_mfem__NURBS2DFiniteElement, _p_mfem__NURBS2DFiniteElementTo_p_mfem__FiniteElement, 0, 0}, {&_swigt__p_mfem__NURBS3DFiniteElement, _p_mfem__NURBS3DFiniteElementTo_p_mfem__FiniteElement, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_mfem__FiniteElementSpace[] = { {&_swigt__p_mfem__FiniteElementSpace, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_mfem__GridFunction[] = { {&_swigt__p_mfem__GridFunction, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_mfem__HyperelasticModel[] = { {&_swigt__p_mfem__HyperelasticModel, 0, 0, 0}, {&_swigt__p_mfem__InverseHarmonicModel, _p_mfem__InverseHarmonicModelTo_p_mfem__HyperelasticModel, 0, 0}, {&_swigt__p_mfem__NeoHookeanModel, _p_mfem__NeoHookeanModelTo_p_mfem__HyperelasticModel, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_mfem__HyperelasticNLFIntegrator[] = { {&_swigt__p_mfem__HyperelasticNLFIntegrator, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_mfem__IncompressibleNeoHookeanIntegrator[] = { {&_swigt__p_mfem__IncompressibleNeoHookeanIntegrator, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_mfem__IntegrationRule[] = { {&_swigt__p_mfem__IntegrationRule, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_mfem__InverseHarmonicModel[] = { {&_swigt__p_mfem__InverseHarmonicModel, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_mfem__L2_FECollection[] = { {&_swigt__p_mfem__L2_FECollection, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_mfem__MatrixVectorProductCoefficient[] = { {&_swigt__p_mfem__MatrixVectorProductCoefficient, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_mfem__NeoHookeanModel[] = { {&_swigt__p_mfem__NeoHookeanModel, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_mfem__NonlinearFormIntegrator[] = { {&_swigt__p_mfem__NonlinearFormIntegrator, 0, 0, 0}, {&_swigt__p_mfem__HyperelasticNLFIntegrator, _p_mfem__HyperelasticNLFIntegratorTo_p_mfem__NonlinearFormIntegrator, 0, 0}, {&_swigt__p_mfem__VectorConvectionNLFIntegrator, _p_mfem__VectorConvectionNLFIntegratorTo_p_mfem__NonlinearFormIntegrator, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_mfem__OperatorHandle[] = { {&_swigt__p_mfem__OperatorHandle, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_mfem__QuadratureFunction[] = {{&_swigt__p_mfem__QuadratureFunction, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_mfem__LinearForm[] = {{&_swigt__p_mfem__LinearForm, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_mfem__Vector[] = { {&_swigt__p_mfem__Vector, 0, 0, 0}, {&_swigt__p_mfem__GridFunction, _p_mfem__GridFunctionTo_p_mfem__Vector, 0, 0}, {&_swigt__p_mfem__QuadratureFunction, _p_mfem__QuadratureFunctionTo_p_mfem__Vector, 0, 0}, {&_swigt__p_mfem__LinearForm, _p_mfem__LinearFormTo_p_mfem__Vector, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_mfem__VectorConvectionNLFIntegrator[] = { {&_swigt__p_mfem__VectorConvectionNLFIntegrator, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_pri_t[] = { {&_swigt__p_pri_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_quad_t[] = { {&_swigt__p_quad_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_seg_t[] = { {&_swigt__p_seg_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_tet_t[] = { {&_swigt__p_tet_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_tri_t[] = { {&_swigt__p_tri_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info *swig_cast_initial[] = { _swigc__p_PyMFEM__wFILE, _swigc__p_RefCoord, _swigc__p_char, _swigc__p_doublep, _swigc__p_hex_t, _swigc__p_intp, _swigc__p_mfem__Array2DT_mfem__DenseMatrix_p_t, _swigc__p_mfem__ArrayT_mfem__FiniteElement_const_p_t, _swigc__p_mfem__ArrayT_mfem__Vector_const_p_t, _swigc__p_mfem__ArrayT_mfem__Vector_p_t, _swigc__p_mfem__BiCubic2DFiniteElement, _swigc__p_mfem__BiCubic3DFiniteElement, _swigc__p_mfem__BiLinear2DFiniteElement, _swigc__p_mfem__BiLinear3DFiniteElement, _swigc__p_mfem__BiQuad2DFiniteElement, _swigc__p_mfem__BiQuadPos2DFiniteElement, _swigc__p_mfem__BiQuadratic3DFiniteElement, _swigc__p_mfem__BlockNonlinearFormIntegrator, _swigc__p_mfem__Coefficient, _swigc__p_mfem__ConstantCoefficient, _swigc__p_mfem__CrouzeixRaviartFiniteElement, _swigc__p_mfem__CrouzeixRaviartQuadFiniteElement, _swigc__p_mfem__Cubic1DFiniteElement, _swigc__p_mfem__Cubic2DFiniteElement, _swigc__p_mfem__Cubic3DFiniteElement, _swigc__p_mfem__DeltaCoefficient, _swigc__p_mfem__DenseMatrix, _swigc__p_mfem__DeterminantCoefficient, _swigc__p_mfem__DivergenceGridFunctionCoefficient, _swigc__p_mfem__ElementTransformation, _swigc__p_mfem__ExtrudeCoefficient, _swigc__p_mfem__FaceElementTransformations, _swigc__p_mfem__FiniteElement, _swigc__p_mfem__FiniteElementSpace, _swigc__p_mfem__FunctionCoefficient, _swigc__p_mfem__GaussBiLinear2DFiniteElement, _swigc__p_mfem__GaussBiQuad2DFiniteElement, _swigc__p_mfem__GaussLinear2DFiniteElement, _swigc__p_mfem__GaussQuad2DFiniteElement, _swigc__p_mfem__GridFunction, _swigc__p_mfem__GridFunctionCoefficient, _swigc__p_mfem__H1Pos_HexahedronElement, _swigc__p_mfem__H1Pos_QuadrilateralElement, _swigc__p_mfem__H1Pos_SegmentElement, _swigc__p_mfem__H1Pos_TetrahedronElement, _swigc__p_mfem__H1Pos_TriangleElement, _swigc__p_mfem__H1Pos_WedgeElement, _swigc__p_mfem__H1Ser_QuadrilateralElement, _swigc__p_mfem__H1_HexahedronElement, _swigc__p_mfem__H1_QuadrilateralElement, _swigc__p_mfem__H1_SegmentElement, _swigc__p_mfem__H1_TetrahedronElement, _swigc__p_mfem__H1_TriangleElement, _swigc__p_mfem__H1_WedgeElement, _swigc__p_mfem__HyperelasticModel, _swigc__p_mfem__HyperelasticNLFIntegrator, _swigc__p_mfem__IncompressibleNeoHookeanIntegrator, _swigc__p_mfem__InnerProductCoefficient, _swigc__p_mfem__IntegrationRule, _swigc__p_mfem__InverseHarmonicModel, _swigc__p_mfem__IsoparametricTransformation, _swigc__p_mfem__L2Pos_HexahedronElement, _swigc__p_mfem__L2Pos_QuadrilateralElement, _swigc__p_mfem__L2Pos_SegmentElement, _swigc__p_mfem__L2Pos_TetrahedronElement, _swigc__p_mfem__L2Pos_TriangleElement, _swigc__p_mfem__L2Pos_WedgeElement, _swigc__p_mfem__L2_FECollection, _swigc__p_mfem__L2_HexahedronElement, _swigc__p_mfem__L2_QuadrilateralElement, _swigc__p_mfem__L2_SegmentElement, _swigc__p_mfem__L2_TetrahedronElement, _swigc__p_mfem__L2_TriangleElement, _swigc__p_mfem__L2_WedgeElement, _swigc__p_mfem__Lagrange1DFiniteElement, _swigc__p_mfem__LagrangeHexFiniteElement, _swigc__p_mfem__Linear1DFiniteElement, _swigc__p_mfem__Linear2DFiniteElement, _swigc__p_mfem__Linear3DFiniteElement, _swigc__p_mfem__LinearForm, _swigc__p_mfem__MatrixVectorProductCoefficient, _swigc__p_mfem__ND_HexahedronElement, _swigc__p_mfem__ND_QuadrilateralElement, _swigc__p_mfem__ND_SegmentElement, _swigc__p_mfem__ND_TetrahedronElement, _swigc__p_mfem__ND_TriangleElement, _swigc__p_mfem__NURBS1DFiniteElement, _swigc__p_mfem__NURBS2DFiniteElement, _swigc__p_mfem__NURBS3DFiniteElement, _swigc__p_mfem__NURBSFiniteElement, _swigc__p_mfem__Nedelec1HexFiniteElement, _swigc__p_mfem__Nedelec1TetFiniteElement, _swigc__p_mfem__NeoHookeanModel, _swigc__p_mfem__NodalFiniteElement, _swigc__p_mfem__NodalTensorFiniteElement, _swigc__p_mfem__NonlinearFormIntegrator, _swigc__p_mfem__OperatorHandle, _swigc__p_mfem__P0HexFiniteElement, _swigc__p_mfem__P0QuadFiniteElement, _swigc__p_mfem__P0SegmentFiniteElement, _swigc__p_mfem__P0TetFiniteElement, _swigc__p_mfem__P0TriangleFiniteElement, _swigc__p_mfem__P0WedgeFiniteElement, _swigc__p_mfem__P1OnQuadFiniteElement, _swigc__p_mfem__P1SegmentFiniteElement, _swigc__p_mfem__P1TetNonConfFiniteElement, _swigc__p_mfem__P2SegmentFiniteElement, _swigc__p_mfem__PWConstCoefficient, _swigc__p_mfem__PointFiniteElement, _swigc__p_mfem__PositiveFiniteElement, _swigc__p_mfem__PositiveTensorFiniteElement, _swigc__p_mfem__PowerCoefficient, _swigc__p_mfem__ProductCoefficient, _swigc__p_mfem__PyCoefficientBase, _swigc__p_mfem__Quad1DFiniteElement, _swigc__p_mfem__Quad2DFiniteElement, _swigc__p_mfem__QuadPos1DFiniteElement, _swigc__p_mfem__Quadratic3DFiniteElement, _swigc__p_mfem__QuadratureFunction, _swigc__p_mfem__QuadratureFunctionCoefficient, _swigc__p_mfem__RT0HexFiniteElement, _swigc__p_mfem__RT0QuadFiniteElement, _swigc__p_mfem__RT0TetFiniteElement, _swigc__p_mfem__RT0TriangleFiniteElement, _swigc__p_mfem__RT1HexFiniteElement, _swigc__p_mfem__RT1QuadFiniteElement, _swigc__p_mfem__RT1TriangleFiniteElement, _swigc__p_mfem__RT2QuadFiniteElement, _swigc__p_mfem__RT2TriangleFiniteElement, _swigc__p_mfem__RT_HexahedronElement, _swigc__p_mfem__RT_QuadrilateralElement, _swigc__p_mfem__RT_TetrahedronElement, _swigc__p_mfem__RT_TriangleElement, _swigc__p_mfem__RatioCoefficient, _swigc__p_mfem__RefinedBiLinear2DFiniteElement, _swigc__p_mfem__RefinedLinear1DFiniteElement, _swigc__p_mfem__RefinedLinear2DFiniteElement, _swigc__p_mfem__RefinedLinear3DFiniteElement, _swigc__p_mfem__RefinedTriLinear3DFiniteElement, _swigc__p_mfem__RestrictedCoefficient, _swigc__p_mfem__RotTriLinearHexFiniteElement, _swigc__p_mfem__ScalarFiniteElement, _swigc__p_mfem__SumCoefficient, _swigc__p_mfem__TransformedCoefficient, _swigc__p_mfem__TriLinear3DFiniteElement, _swigc__p_mfem__Vector, _swigc__p_mfem__VectorConvectionNLFIntegrator, _swigc__p_mfem__VectorFiniteElement, _swigc__p_mfem__VectorRotProductCoefficient, _swigc__p_mfem__VectorTensorFiniteElement, _swigc__p_pri_t, _swigc__p_quad_t, _swigc__p_seg_t, _swigc__p_tet_t, _swigc__p_tri_t, }; /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ static swig_const_info swig_const_table[] = { {0, 0, 0, 0.0, 0, 0}}; #ifdef __cplusplus } #endif /* ----------------------------------------------------------------------------- * Type initialization: * This problem is tough by the requirement that no dynamic * memory is used. Also, since swig_type_info structures store pointers to * swig_cast_info structures and swig_cast_info structures store pointers back * to swig_type_info structures, we need some lookup code at initialization. * The idea is that swig generates all the structures that are needed. * The runtime then collects these partially filled structures. * The SWIG_InitializeModule function takes these initial arrays out of * swig_module, and does all the lookup, filling in the swig_module.types * array with the correct data and linking the correct swig_cast_info * structures together. * * The generated swig_type_info structures are assigned statically to an initial * array. We just loop through that array, and handle each type individually. * First we lookup if this type has been already loaded, and if so, use the * loaded structure instead of the generated one. Then we have to fill in the * cast linked list. The cast data is initially stored in something like a * two-dimensional array. Each row corresponds to a type (there are the same * number of rows as there are in the swig_type_initial array). Each entry in * a column is one of the swig_cast_info structures for that type. * The cast_initial array is actually an array of arrays, because each row has * a variable number of columns. So to actually build the cast linked list, * we find the array of casts associated with the type, and loop through it * adding the casts to the list. The one last trick we need to do is making * sure the type pointer in the swig_cast_info struct is correct. * * First off, we lookup the cast->type name to see if it is already loaded. * There are three cases to handle: * 1) If the cast->type has already been loaded AND the type we are adding * casting info to has not been loaded (it is in this module), THEN we * replace the cast->type pointer with the type pointer that has already * been loaded. * 2) If BOTH types (the one we are adding casting info to, and the * cast->type) are loaded, THEN the cast info has already been loaded by * the previous module so we just ignore it. * 3) Finally, if cast->type has not already been loaded, then we add that * swig_cast_info to the linked list (because the cast->type) pointer will * be correct. * ----------------------------------------------------------------------------- */ #ifdef __cplusplus extern "C" { #if 0 } /* c-mode */ #endif #endif #if 0 #define SWIGRUNTIME_DEBUG #endif SWIGRUNTIME void SWIG_InitializeModule(void *clientdata) { size_t i; swig_module_info *module_head, *iter; int init; /* check to see if the circular list has been setup, if not, set it up */ if (swig_module.next==0) { /* Initialize the swig_module */ swig_module.type_initial = swig_type_initial; swig_module.cast_initial = swig_cast_initial; swig_module.next = &swig_module; init = 1; } else { init = 0; } /* Try and load any already created modules */ module_head = SWIG_GetModule(clientdata); if (!module_head) { /* This is the first module loaded for this interpreter */ /* so set the swig module into the interpreter */ SWIG_SetModule(clientdata, &swig_module); } else { /* the interpreter has loaded a SWIG module, but has it loaded this one? */ iter=module_head; do { if (iter==&swig_module) { /* Our module is already in the list, so there's nothing more to do. */ return; } iter=iter->next; } while (iter!= module_head); /* otherwise we must add our module into the list */ swig_module.next = module_head->next; module_head->next = &swig_module; } /* When multiple interpreters are used, a module could have already been initialized in a different interpreter, but not yet have a pointer in this interpreter. In this case, we do not want to continue adding types... everything should be set up already */ if (init == 0) return; /* Now work on filling in swig_module.types */ #ifdef SWIGRUNTIME_DEBUG printf("SWIG_InitializeModule: size %lu\n", (unsigned long)swig_module.size); #endif for (i = 0; i < swig_module.size; ++i) { swig_type_info *type = 0; swig_type_info *ret; swig_cast_info *cast; #ifdef SWIGRUNTIME_DEBUG printf("SWIG_InitializeModule: type %lu %s\n", (unsigned long)i, swig_module.type_initial[i]->name); #endif /* if there is another module already loaded */ if (swig_module.next != &swig_module) { type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name); } if (type) { /* Overwrite clientdata field */ #ifdef SWIGRUNTIME_DEBUG printf("SWIG_InitializeModule: found type %s\n", type->name); #endif if (swig_module.type_initial[i]->clientdata) { type->clientdata = swig_module.type_initial[i]->clientdata; #ifdef SWIGRUNTIME_DEBUG printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name); #endif } } else { type = swig_module.type_initial[i]; } /* Insert casting types */ cast = swig_module.cast_initial[i]; while (cast->type) { /* Don't need to add information already in the list */ ret = 0; #ifdef SWIGRUNTIME_DEBUG printf("SWIG_InitializeModule: look cast %s\n", cast->type->name); #endif if (swig_module.next != &swig_module) { ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name); #ifdef SWIGRUNTIME_DEBUG if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name); #endif } if (ret) { if (type == swig_module.type_initial[i]) { #ifdef SWIGRUNTIME_DEBUG printf("SWIG_InitializeModule: skip old type %s\n", ret->name); #endif cast->type = ret; ret = 0; } else { /* Check for casting already in the list */ swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type); #ifdef SWIGRUNTIME_DEBUG if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name); #endif if (!ocast) ret = 0; } } if (!ret) { #ifdef SWIGRUNTIME_DEBUG printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name); #endif if (type->cast) { type->cast->prev = cast; cast->next = type->cast; } type->cast = cast; } cast++; } /* Set entry in modules->types array equal to the type */ swig_module.types[i] = type; } swig_module.types[i] = 0; #ifdef SWIGRUNTIME_DEBUG printf("**** SWIG_InitializeModule: Cast List ******\n"); for (i = 0; i < swig_module.size; ++i) { int j = 0; swig_cast_info *cast = swig_module.cast_initial[i]; printf("SWIG_InitializeModule: type %lu %s\n", (unsigned long)i, swig_module.type_initial[i]->name); while (cast->type) { printf("SWIG_InitializeModule: cast type %s\n", cast->type->name); cast++; ++j; } printf("---- Total casts: %d\n",j); } printf("**** SWIG_InitializeModule: Cast List ******\n"); #endif } /* This function will propagate the clientdata field of type to * any new swig_type_info structures that have been added into the list * of equivalent types. It is like calling * SWIG_TypeClientData(type, clientdata) a second time. */ SWIGRUNTIME void SWIG_PropagateClientData(void) { size_t i; swig_cast_info *equiv; static int init_run = 0; if (init_run) return; init_run = 1; for (i = 0; i < swig_module.size; i++) { if (swig_module.types[i]->clientdata) { equiv = swig_module.types[i]->cast; while (equiv) { if (!equiv->converter) { if (equiv->type && !equiv->type->clientdata) SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata); } equiv = equiv->next; } } } } #ifdef __cplusplus #if 0 { /* c-mode */ #endif } #endif #ifdef __cplusplus extern "C" { #endif /* Python-specific SWIG API */ #define SWIG_newvarlink() SWIG_Python_newvarlink() #define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr) #define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants) /* ----------------------------------------------------------------------------- * global variable support code. * ----------------------------------------------------------------------------- */ typedef struct swig_globalvar { char *name; /* Name of global variable */ PyObject *(*get_attr)(void); /* Return the current value */ int (*set_attr)(PyObject *); /* Set the value */ struct swig_globalvar *next; } swig_globalvar; typedef struct swig_varlinkobject { PyObject_HEAD swig_globalvar *vars; } swig_varlinkobject; SWIGINTERN PyObject * swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) { #if PY_VERSION_HEX >= 0x03000000 return PyUnicode_InternFromString("<Swig global variables>"); #else return PyString_FromString("<Swig global variables>"); #endif } SWIGINTERN PyObject * swig_varlink_str(swig_varlinkobject *v) { #if PY_VERSION_HEX >= 0x03000000 PyObject *str = PyUnicode_InternFromString("("); PyObject *tail; PyObject *joined; swig_globalvar *var; for (var = v->vars; var; var=var->next) { tail = PyUnicode_FromString(var->name); joined = PyUnicode_Concat(str, tail); Py_DecRef(str); Py_DecRef(tail); str = joined; if (var->next) { tail = PyUnicode_InternFromString(", "); joined = PyUnicode_Concat(str, tail); Py_DecRef(str); Py_DecRef(tail); str = joined; } } tail = PyUnicode_InternFromString(")"); joined = PyUnicode_Concat(str, tail); Py_DecRef(str); Py_DecRef(tail); str = joined; #else PyObject *str = PyString_FromString("("); swig_globalvar *var; for (var = v->vars; var; var=var->next) { PyString_ConcatAndDel(&str,PyString_FromString(var->name)); if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", ")); } PyString_ConcatAndDel(&str,PyString_FromString(")")); #endif return str; } SWIGINTERN void swig_varlink_dealloc(swig_varlinkobject *v) { swig_globalvar *var = v->vars; while (var) { swig_globalvar *n = var->next; free(var->name); free(var); var = n; } } SWIGINTERN PyObject * swig_varlink_getattr(swig_varlinkobject *v, char *n) { PyObject *res = NULL; swig_globalvar *var = v->vars; while (var) { if (strcmp(var->name,n) == 0) { res = (*var->get_attr)(); break; } var = var->next; } if (res == NULL && !PyErr_Occurred()) { PyErr_Format(PyExc_AttributeError, "Unknown C global variable '%s'", n); } return res; } SWIGINTERN int swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) { int res = 1; swig_globalvar *var = v->vars; while (var) { if (strcmp(var->name,n) == 0) { res = (*var->set_attr)(p); break; } var = var->next; } if (res == 1 && !PyErr_Occurred()) { PyErr_Format(PyExc_AttributeError, "Unknown C global variable '%s'", n); } return res; } SWIGINTERN PyTypeObject* swig_varlink_type(void) { static char varlink__doc__[] = "Swig var link object"; static PyTypeObject varlink_type; static int type_init = 0; if (!type_init) { const PyTypeObject tmp = { #if PY_VERSION_HEX >= 0x03000000 PyVarObject_HEAD_INIT(NULL, 0) #else PyObject_HEAD_INIT(NULL) 0, /* ob_size */ #endif "swigvarlink", /* tp_name */ sizeof(swig_varlinkobject), /* tp_basicsize */ 0, /* tp_itemsize */ (destructor) swig_varlink_dealloc, /* tp_dealloc */ 0, /* tp_print */ (getattrfunc) swig_varlink_getattr, /* tp_getattr */ (setattrfunc) swig_varlink_setattr, /* tp_setattr */ 0, /* tp_compare */ (reprfunc) swig_varlink_repr, /* tp_repr */ 0, /* tp_as_number */ 0, /* tp_as_sequence */ 0, /* tp_as_mapping */ 0, /* tp_hash */ 0, /* tp_call */ (reprfunc) swig_varlink_str, /* tp_str */ 0, /* tp_getattro */ 0, /* tp_setattro */ 0, /* tp_as_buffer */ 0, /* tp_flags */ varlink__doc__, /* tp_doc */ 0, /* tp_traverse */ 0, /* tp_clear */ 0, /* tp_richcompare */ 0, /* tp_weaklistoffset */ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */ 0, /* tp_del */ 0, /* tp_version_tag */ #if PY_VERSION_HEX >= 0x03040000 0, /* tp_finalize */ #endif #if PY_VERSION_HEX >= 0x03080000 0, /* tp_vectorcall */ #endif #if (PY_VERSION_HEX >= 0x03080000) && (PY_VERSION_HEX < 0x03090000) 0, /* tp_print */ #endif #ifdef COUNT_ALLOCS 0, /* tp_allocs */ 0, /* tp_frees */ 0, /* tp_maxalloc */ 0, /* tp_prev */ 0 /* tp_next */ #endif }; varlink_type = tmp; type_init = 1; if (PyType_Ready(&varlink_type) < 0) return NULL; } return &varlink_type; } /* Create a variable linking object for use later */ SWIGINTERN PyObject * SWIG_Python_newvarlink(void) { swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type()); if (result) { result->vars = 0; } return ((PyObject*) result); } SWIGINTERN void SWIG_Python_addvarlink(PyObject *p, const char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) { swig_varlinkobject *v = (swig_varlinkobject *) p; swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar)); if (gv) { size_t size = strlen(name)+1; gv->name = (char *)malloc(size); if (gv->name) { memcpy(gv->name, name, size); gv->get_attr = get_attr; gv->set_attr = set_attr; gv->next = v->vars; } } v->vars = gv; } SWIGINTERN PyObject * SWIG_globals(void) { static PyObject *globals = 0; if (!globals) { globals = SWIG_newvarlink(); } return globals; } /* ----------------------------------------------------------------------------- * constants/methods manipulation * ----------------------------------------------------------------------------- */ /* Install Constants */ SWIGINTERN void SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) { PyObject *obj = 0; size_t i; for (i = 0; constants[i].type; ++i) { switch(constants[i].type) { case SWIG_PY_POINTER: obj = SWIG_InternalNewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0); break; case SWIG_PY_BINARY: obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype)); break; default: obj = 0; break; } if (obj) { PyDict_SetItemString(d, constants[i].name, obj); Py_DECREF(obj); } } } /* -----------------------------------------------------------------------------*/ /* Fix SwigMethods to carry the callback ptrs when needed */ /* -----------------------------------------------------------------------------*/ SWIGINTERN void SWIG_Python_FixMethods(PyMethodDef *methods, swig_const_info *const_table, swig_type_info **types, swig_type_info **types_initial) { size_t i; for (i = 0; methods[i].ml_name; ++i) { const char *c = methods[i].ml_doc; if (!c) continue; c = strstr(c, "swig_ptr: "); if (c) { int j; swig_const_info *ci = 0; const char *name = c + 10; for (j = 0; const_table[j].type; ++j) { if (strncmp(const_table[j].name, name, strlen(const_table[j].name)) == 0) { ci = &(const_table[j]); break; } } if (ci) { void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0; if (ptr) { size_t shift = (ci->ptype) - types; swig_type_info *ty = types_initial[shift]; size_t ldoc = (c - methods[i].ml_doc); size_t lptr = strlen(ty->name)+2*sizeof(void*)+2; char *ndoc = (char*)malloc(ldoc + lptr + 10); if (ndoc) { char *buff = ndoc; memcpy(buff, methods[i].ml_doc, ldoc); buff += ldoc; memcpy(buff, "swig_ptr: ", 10); buff += 10; SWIG_PackVoidPtr(buff, ptr, ty->name, lptr); methods[i].ml_doc = ndoc; } } } } } } /* ----------------------------------------------------------------------------- * Method creation and docstring support functions * ----------------------------------------------------------------------------- */ /* ----------------------------------------------------------------------------- * Function to find the method definition with the correct docstring for the * proxy module as opposed to the low-level API * ----------------------------------------------------------------------------- */ SWIGINTERN PyMethodDef *SWIG_PythonGetProxyDoc(const char *name) { /* Find the function in the modified method table */ size_t offset = 0; int found = 0; while (SwigMethods_proxydocs[offset].ml_meth != NULL) { if (strcmp(SwigMethods_proxydocs[offset].ml_name, name) == 0) { found = 1; break; } offset++; } /* Use the copy with the modified docstring if available */ return found ? &SwigMethods_proxydocs[offset] : NULL; } /* ----------------------------------------------------------------------------- * Wrapper of PyInstanceMethod_New() used in Python 3 * It is exported to the generated module, used for -fastproxy * ----------------------------------------------------------------------------- */ SWIGINTERN PyObject *SWIG_PyInstanceMethod_New(PyObject *SWIGUNUSEDPARM(self), PyObject *func) { if (PyCFunction_Check(func)) { PyCFunctionObject *funcobj = (PyCFunctionObject *)func; PyMethodDef *ml = SWIG_PythonGetProxyDoc(funcobj->m_ml->ml_name); if (ml) func = PyCFunction_NewEx(ml, funcobj->m_self, funcobj->m_module); } #if PY_VERSION_HEX >= 0x03000000 return PyInstanceMethod_New(func); #else return PyMethod_New(func, NULL, NULL); #endif } /* ----------------------------------------------------------------------------- * Wrapper of PyStaticMethod_New() * It is exported to the generated module, used for -fastproxy * ----------------------------------------------------------------------------- */ SWIGINTERN PyObject *SWIG_PyStaticMethod_New(PyObject *SWIGUNUSEDPARM(self), PyObject *func) { if (PyCFunction_Check(func)) { PyCFunctionObject *funcobj = (PyCFunctionObject *)func; PyMethodDef *ml = SWIG_PythonGetProxyDoc(funcobj->m_ml->ml_name); if (ml) func = PyCFunction_NewEx(ml, funcobj->m_self, funcobj->m_module); } return PyStaticMethod_New(func); } #ifdef __cplusplus } #endif /* -----------------------------------------------------------------------------* * Partial Init method * -----------------------------------------------------------------------------*/ #ifdef __cplusplus extern "C" #endif SWIGEXPORT #if PY_VERSION_HEX >= 0x03000000 PyObject* #else void #endif SWIG_init(void) { PyObject *m, *d, *md, *globals; #if PY_VERSION_HEX >= 0x03000000 static struct PyModuleDef SWIG_module = { PyModuleDef_HEAD_INIT, SWIG_name, NULL, -1, SwigMethods, NULL, NULL, NULL, NULL }; #endif #if defined(SWIGPYTHON_BUILTIN) static SwigPyClientData SwigPyObject_clientdata = { 0, 0, 0, 0, 0, 0, 0 }; static PyGetSetDef this_getset_def = { (char *)"this", &SwigPyBuiltin_ThisClosure, NULL, NULL, NULL }; static SwigPyGetSet thisown_getset_closure = { SwigPyObject_own, SwigPyObject_own }; static PyGetSetDef thisown_getset_def = { (char *)"thisown", SwigPyBuiltin_GetterClosure, SwigPyBuiltin_SetterClosure, NULL, &thisown_getset_closure }; PyTypeObject *builtin_pytype; int builtin_base_count; swig_type_info *builtin_basetype; PyObject *tuple; PyGetSetDescrObject *static_getset; PyTypeObject *metatype; PyTypeObject *swigpyobject; SwigPyClientData *cd; PyObject *public_interface, *public_symbol; PyObject *this_descr; PyObject *thisown_descr; PyObject *self = 0; int i; (void)builtin_pytype; (void)builtin_base_count; (void)builtin_basetype; (void)tuple; (void)static_getset; (void)self; /* Metaclass is used to implement static member variables */ metatype = SwigPyObjectType(); assert(metatype); #endif (void)globals; /* Create singletons now to avoid potential deadlocks with multi-threaded usage after module initialization */ SWIG_This(); SWIG_Python_TypeCache(); SwigPyPacked_type(); #ifndef SWIGPYTHON_BUILTIN SwigPyObject_type(); #endif /* Fix SwigMethods to carry the callback ptrs when needed */ SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial); #if PY_VERSION_HEX >= 0x03000000 m = PyModule_Create(&SWIG_module); #else m = Py_InitModule(SWIG_name, SwigMethods); #endif md = d = PyModule_GetDict(m); (void)md; SWIG_InitializeModule(0); #ifdef SWIGPYTHON_BUILTIN swigpyobject = SwigPyObject_TypeOnce(); SwigPyObject_stype = SWIG_MangledTypeQuery("_p_SwigPyObject"); assert(SwigPyObject_stype); cd = (SwigPyClientData*) SwigPyObject_stype->clientdata; if (!cd) { SwigPyObject_stype->clientdata = &SwigPyObject_clientdata; SwigPyObject_clientdata.pytype = swigpyobject; } else if (swigpyobject->tp_basicsize != cd->pytype->tp_basicsize) { PyErr_SetString(PyExc_RuntimeError, "Import error: attempted to load two incompatible swig-generated modules."); # if PY_VERSION_HEX >= 0x03000000 return NULL; # else return; # endif } /* All objects have a 'this' attribute */ this_descr = PyDescr_NewGetSet(SwigPyObject_type(), &this_getset_def); (void)this_descr; /* All objects have a 'thisown' attribute */ thisown_descr = PyDescr_NewGetSet(SwigPyObject_type(), &thisown_getset_def); (void)thisown_descr; public_interface = PyList_New(0); public_symbol = 0; (void)public_symbol; PyDict_SetItemString(md, "__all__", public_interface); Py_DECREF(public_interface); for (i = 0; SwigMethods[i].ml_name != NULL; ++i) SwigPyBuiltin_AddPublicSymbol(public_interface, SwigMethods[i].ml_name); for (i = 0; swig_const_table[i].name != 0; ++i) SwigPyBuiltin_AddPublicSymbol(public_interface, swig_const_table[i].name); #endif SWIG_InstallConstants(d,swig_const_table); #if PY_VERSION_HEX >= 0x03000000 return m; #else return; #endif }
[ "shiraiwa@psfc.mit.edu" ]
shiraiwa@psfc.mit.edu
617ecad54e23da372dd89407d16fc50660fe9d6f
ac1c9fbc1f1019efb19d0a8f3a088e8889f1e83c
/out/release/gen/third_party/blink/public/mojom/portal/portal.mojom-blink.h
ddb56d3b8277e85ea2e8c1b08148414698b83c1a
[ "BSD-3-Clause" ]
permissive
xueqiya/chromium_src
5d20b4d3a2a0251c063a7fb9952195cda6d29e34
d4aa7a8f0e07cfaa448fcad8c12b29242a615103
refs/heads/main
2022-07-30T03:15:14.818330
2021-01-16T16:47:22
2021-01-16T16:47:22
330,115,551
1
0
null
null
null
null
UTF-8
C++
false
false
13,170
h
// third_party/blink/public/mojom/portal/portal.mojom-blink.h is auto generated by mojom_bindings_generator.py, do not edit // Copyright 2013 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. #ifndef THIRD_PARTY_BLINK_PUBLIC_MOJOM_PORTAL_PORTAL_MOJOM_BLINK_H_ #define THIRD_PARTY_BLINK_PUBLIC_MOJOM_PORTAL_PORTAL_MOJOM_BLINK_H_ #include <stdint.h> #include <limits> #include <type_traits> #include <utility> #include "base/callback.h" #include "base/macros.h" #include "base/optional.h" #include "mojo/public/cpp/bindings/mojo_buildflags.h" #if BUILDFLAG(MOJO_TRACE_ENABLED) #include "base/trace_event/trace_event.h" #endif #include "mojo/public/cpp/bindings/clone_traits.h" #include "mojo/public/cpp/bindings/equals_traits.h" #include "mojo/public/cpp/bindings/lib/serialization.h" #include "mojo/public/cpp/bindings/struct_ptr.h" #include "mojo/public/cpp/bindings/struct_traits.h" #include "mojo/public/cpp/bindings/union_traits.h" #include "third_party/blink/public/mojom/portal/portal.mojom-shared.h" #include "third_party/blink/public/mojom/portal/portal.mojom-blink-forward.h" #include "mojo/public/mojom/base/unguessable_token.mojom-blink-forward.h" #include "third_party/blink/public/mojom/messaging/transferable_message.mojom-blink-forward.h" #include "third_party/blink/public/mojom/referrer.mojom-blink-forward.h" #include "url/mojom/origin.mojom-blink-forward.h" #include "url/mojom/url.mojom-blink-forward.h" #include "url/mojom/origin.mojom-blink-forward.h" #include "mojo/public/cpp/bindings/lib/wtf_clone_equals_util.h" #include "mojo/public/cpp/bindings/lib/wtf_hash_util.h" #include "third_party/blink/renderer/platform/wtf/hash_functions.h" #include "third_party/blink/renderer/platform/wtf/text/wtf_string.h" #include "mojo/public/cpp/bindings/associated_interface_ptr.h" #include "mojo/public/cpp/bindings/associated_interface_ptr_info.h" #include "mojo/public/cpp/bindings/associated_interface_request.h" #include "mojo/public/cpp/bindings/interface_ptr.h" #include "mojo/public/cpp/bindings/interface_request.h" #include "mojo/public/cpp/bindings/lib/control_message_handler.h" #include "mojo/public/cpp/bindings/raw_ptr_impl_ref_traits.h" #include "mojo/public/cpp/bindings/thread_safe_interface_ptr.h" #include "third_party/blink/renderer/core/core_export.h" namespace WTF { struct blink_mojom_internal_PortalActivateResult_DataHashFn { static unsigned GetHash(const ::blink::mojom::PortalActivateResult& value) { using utype = std::underlying_type<::blink::mojom::PortalActivateResult>::type; return DefaultHash<utype>::Hash().GetHash(static_cast<utype>(value)); } static bool Equal(const ::blink::mojom::PortalActivateResult& left, const ::blink::mojom::PortalActivateResult& right) { return left == right; } static const bool safe_to_compare_to_empty_or_deleted = true; }; template <> struct HashTraits<::blink::mojom::PortalActivateResult> : public GenericHashTraits<::blink::mojom::PortalActivateResult> { static_assert(true, "-1000000 is a reserved enum value"); static_assert(true, "-1000001 is a reserved enum value"); static const bool hasIsEmptyValueFunction = true; static bool IsEmptyValue(const ::blink::mojom::PortalActivateResult& value) { return value == static_cast<::blink::mojom::PortalActivateResult>(-1000000); } static void ConstructDeletedValue(::blink::mojom::PortalActivateResult& slot, bool) { slot = static_cast<::blink::mojom::PortalActivateResult>(-1000001); } static bool IsDeletedValue(const ::blink::mojom::PortalActivateResult& value) { return value == static_cast<::blink::mojom::PortalActivateResult>(-1000001); } }; } // namespace WTF namespace blink { namespace mojom { namespace blink { class PortalProxy; template <typename ImplRefTraits> class PortalStub; class PortalRequestValidator; class PortalResponseValidator; class CORE_EXPORT Portal : public PortalInterfaceBase { public: static const char Name_[]; static constexpr uint32_t Version_ = 0; static constexpr bool PassesAssociatedKinds_ = false; static constexpr bool HasSyncMethods_ = false; using Base_ = PortalInterfaceBase; using Proxy_ = PortalProxy; template <typename ImplRefTraits> using Stub_ = PortalStub<ImplRefTraits>; using RequestValidator_ = PortalRequestValidator; using ResponseValidator_ = PortalResponseValidator; enum MethodMinVersions : uint32_t { kNavigateMinVersion = 0, kActivateMinVersion = 0, kPostMessageToGuestMinVersion = 0, }; virtual ~Portal() {} using NavigateCallback = base::OnceCallback<void()>; virtual void Navigate(const ::blink::KURL& url, ::blink::mojom::blink::ReferrerPtr referrer, NavigateCallback callback) = 0; using ActivateCallback = base::OnceCallback<void(PortalActivateResult)>; virtual void Activate(::blink::BlinkTransferableMessage data, ActivateCallback callback) = 0; virtual void PostMessageToGuest(::blink::BlinkTransferableMessage message, const ::scoped_refptr<const ::blink::SecurityOrigin>& target_origin) = 0; }; class PortalClientProxy; template <typename ImplRefTraits> class PortalClientStub; class PortalClientRequestValidator; class CORE_EXPORT PortalClient : public PortalClientInterfaceBase { public: static const char Name_[]; static constexpr uint32_t Version_ = 0; static constexpr bool PassesAssociatedKinds_ = false; static constexpr bool HasSyncMethods_ = false; using Base_ = PortalClientInterfaceBase; using Proxy_ = PortalClientProxy; template <typename ImplRefTraits> using Stub_ = PortalClientStub<ImplRefTraits>; using RequestValidator_ = PortalClientRequestValidator; using ResponseValidator_ = mojo::PassThroughFilter; enum MethodMinVersions : uint32_t { kForwardMessageFromGuestMinVersion = 0, kDispatchLoadEventMinVersion = 0, }; virtual ~PortalClient() {} virtual void ForwardMessageFromGuest(::blink::BlinkTransferableMessage message, const ::scoped_refptr<const ::blink::SecurityOrigin>& source_origin, const ::scoped_refptr<const ::blink::SecurityOrigin>& target_origin) = 0; virtual void DispatchLoadEvent() = 0; }; class PortalHostProxy; template <typename ImplRefTraits> class PortalHostStub; class PortalHostRequestValidator; class CORE_EXPORT PortalHost : public PortalHostInterfaceBase { public: static const char Name_[]; static constexpr uint32_t Version_ = 0; static constexpr bool PassesAssociatedKinds_ = false; static constexpr bool HasSyncMethods_ = false; using Base_ = PortalHostInterfaceBase; using Proxy_ = PortalHostProxy; template <typename ImplRefTraits> using Stub_ = PortalHostStub<ImplRefTraits>; using RequestValidator_ = PortalHostRequestValidator; using ResponseValidator_ = mojo::PassThroughFilter; enum MethodMinVersions : uint32_t { kPostMessageToHostMinVersion = 0, }; virtual ~PortalHost() {} virtual void PostMessageToHost(::blink::BlinkTransferableMessage message, const ::scoped_refptr<const ::blink::SecurityOrigin>& target_origin) = 0; }; class CORE_EXPORT PortalProxy : public Portal { public: using InterfaceType = Portal; explicit PortalProxy(mojo::MessageReceiverWithResponder* receiver); void Navigate(const ::blink::KURL& url, ::blink::mojom::blink::ReferrerPtr referrer, NavigateCallback callback) final; void Activate(::blink::BlinkTransferableMessage data, ActivateCallback callback) final; void PostMessageToGuest(::blink::BlinkTransferableMessage message, const ::scoped_refptr<const ::blink::SecurityOrigin>& target_origin) final; private: mojo::MessageReceiverWithResponder* receiver_; }; class CORE_EXPORT PortalClientProxy : public PortalClient { public: using InterfaceType = PortalClient; explicit PortalClientProxy(mojo::MessageReceiverWithResponder* receiver); void ForwardMessageFromGuest(::blink::BlinkTransferableMessage message, const ::scoped_refptr<const ::blink::SecurityOrigin>& source_origin, const ::scoped_refptr<const ::blink::SecurityOrigin>& target_origin) final; void DispatchLoadEvent() final; private: mojo::MessageReceiverWithResponder* receiver_; }; class CORE_EXPORT PortalHostProxy : public PortalHost { public: using InterfaceType = PortalHost; explicit PortalHostProxy(mojo::MessageReceiverWithResponder* receiver); void PostMessageToHost(::blink::BlinkTransferableMessage message, const ::scoped_refptr<const ::blink::SecurityOrigin>& target_origin) final; private: mojo::MessageReceiverWithResponder* receiver_; }; class CORE_EXPORT PortalStubDispatch { public: static bool Accept(Portal* impl, mojo::Message* message); static bool AcceptWithResponder( Portal* impl, mojo::Message* message, std::unique_ptr<mojo::MessageReceiverWithStatus> responder); }; template <typename ImplRefTraits = mojo::RawPtrImplRefTraits<Portal>> class PortalStub : public mojo::MessageReceiverWithResponderStatus { public: using ImplPointerType = typename ImplRefTraits::PointerType; PortalStub() {} ~PortalStub() override {} void set_sink(ImplPointerType sink) { sink_ = std::move(sink); } ImplPointerType& sink() { return sink_; } bool Accept(mojo::Message* message) override { if (ImplRefTraits::IsNull(sink_)) return false; return PortalStubDispatch::Accept( ImplRefTraits::GetRawPointer(&sink_), message); } bool AcceptWithResponder( mojo::Message* message, std::unique_ptr<mojo::MessageReceiverWithStatus> responder) override { if (ImplRefTraits::IsNull(sink_)) return false; return PortalStubDispatch::AcceptWithResponder( ImplRefTraits::GetRawPointer(&sink_), message, std::move(responder)); } private: ImplPointerType sink_; }; class CORE_EXPORT PortalClientStubDispatch { public: static bool Accept(PortalClient* impl, mojo::Message* message); static bool AcceptWithResponder( PortalClient* impl, mojo::Message* message, std::unique_ptr<mojo::MessageReceiverWithStatus> responder); }; template <typename ImplRefTraits = mojo::RawPtrImplRefTraits<PortalClient>> class PortalClientStub : public mojo::MessageReceiverWithResponderStatus { public: using ImplPointerType = typename ImplRefTraits::PointerType; PortalClientStub() {} ~PortalClientStub() override {} void set_sink(ImplPointerType sink) { sink_ = std::move(sink); } ImplPointerType& sink() { return sink_; } bool Accept(mojo::Message* message) override { if (ImplRefTraits::IsNull(sink_)) return false; return PortalClientStubDispatch::Accept( ImplRefTraits::GetRawPointer(&sink_), message); } bool AcceptWithResponder( mojo::Message* message, std::unique_ptr<mojo::MessageReceiverWithStatus> responder) override { if (ImplRefTraits::IsNull(sink_)) return false; return PortalClientStubDispatch::AcceptWithResponder( ImplRefTraits::GetRawPointer(&sink_), message, std::move(responder)); } private: ImplPointerType sink_; }; class CORE_EXPORT PortalHostStubDispatch { public: static bool Accept(PortalHost* impl, mojo::Message* message); static bool AcceptWithResponder( PortalHost* impl, mojo::Message* message, std::unique_ptr<mojo::MessageReceiverWithStatus> responder); }; template <typename ImplRefTraits = mojo::RawPtrImplRefTraits<PortalHost>> class PortalHostStub : public mojo::MessageReceiverWithResponderStatus { public: using ImplPointerType = typename ImplRefTraits::PointerType; PortalHostStub() {} ~PortalHostStub() override {} void set_sink(ImplPointerType sink) { sink_ = std::move(sink); } ImplPointerType& sink() { return sink_; } bool Accept(mojo::Message* message) override { if (ImplRefTraits::IsNull(sink_)) return false; return PortalHostStubDispatch::Accept( ImplRefTraits::GetRawPointer(&sink_), message); } bool AcceptWithResponder( mojo::Message* message, std::unique_ptr<mojo::MessageReceiverWithStatus> responder) override { if (ImplRefTraits::IsNull(sink_)) return false; return PortalHostStubDispatch::AcceptWithResponder( ImplRefTraits::GetRawPointer(&sink_), message, std::move(responder)); } private: ImplPointerType sink_; }; class CORE_EXPORT PortalRequestValidator : public mojo::MessageReceiver { public: bool Accept(mojo::Message* message) override; }; class CORE_EXPORT PortalClientRequestValidator : public mojo::MessageReceiver { public: bool Accept(mojo::Message* message) override; }; class CORE_EXPORT PortalHostRequestValidator : public mojo::MessageReceiver { public: bool Accept(mojo::Message* message) override; }; class CORE_EXPORT PortalResponseValidator : public mojo::MessageReceiver { public: bool Accept(mojo::Message* message) override; }; } // namespace blink } // namespace mojom } // namespace blink namespace mojo { } // namespace mojo #endif // THIRD_PARTY_BLINK_PUBLIC_MOJOM_PORTAL_PORTAL_MOJOM_BLINK_H_
[ "xueqi@zjmedia.net" ]
xueqi@zjmedia.net
2a7f2ae5f862800aa18df0152493967bcc78cc42
ba9322f7db02d797f6984298d892f74768193dcf
/iot/include/alibabacloud/iot/model/SetDevicePropertyRequest.h
25a44bd71f06d06e19a260b0964a9ccc70825a7a
[ "Apache-2.0" ]
permissive
sdk-team/aliyun-openapi-cpp-sdk
e27f91996b3bad9226c86f74475b5a1a91806861
a27fc0000a2b061cd10df09cbe4fff9db4a7c707
refs/heads/master
2022-08-21T18:25:53.080066
2022-07-25T10:01:05
2022-07-25T10:01:05
183,356,893
3
0
null
2019-04-25T04:34:29
2019-04-25T04:34:28
null
UTF-8
C++
false
false
1,794
h
/* * Copyright 2009-2017 Alibaba Cloud All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #ifndef ALIBABACLOUD_IOT_MODEL_SETDEVICEPROPERTYREQUEST_H_ #define ALIBABACLOUD_IOT_MODEL_SETDEVICEPROPERTYREQUEST_H_ #include <string> #include <vector> #include <alibabacloud/core/RpcServiceRequest.h> #include <alibabacloud/iot/IotExport.h> namespace AlibabaCloud { namespace Iot { namespace Model { class ALIBABACLOUD_IOT_EXPORT SetDevicePropertyRequest : public RpcServiceRequest { public: SetDevicePropertyRequest(); ~SetDevicePropertyRequest(); std::string getIotId()const; void setIotId(const std::string& iotId); std::string getDeviceName()const; void setDeviceName(const std::string& deviceName); std::string getProductKey()const; void setProductKey(const std::string& productKey); std::string getItems()const; void setItems(const std::string& items); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); private: std::string iotId_; std::string deviceName_; std::string productKey_; std::string items_; std::string accessKeyId_; }; } } } #endif // !ALIBABACLOUD_IOT_MODEL_SETDEVICEPROPERTYREQUEST_H_
[ "yixiong.jxy@alibaba-inc.com" ]
yixiong.jxy@alibaba-inc.com
762a1d6521cc2d3d025f771a1e99a158c995544f
070e9bbf95c22846259f15fc6ed1ec61ddc6e41e
/src/commlib/zcelib/zce/timer/queue_heap.cpp
5fc9fa6d0ce49948c850423a2427373e47d6e9f1
[ "Apache-2.0" ]
permissive
sailzeng/zcelib
930553c1c6c030ee12d97fee230652e690c380d8
d7a0c268ef10ffacc16cf2b06eed5b9445e3fe38
refs/heads/master
2023-01-23T07:01:57.102092
2022-11-13T19:37:52
2022-11-13T19:37:52
15,555,445
86
42
Apache-2.0
2022-11-13T19:35:15
2013-12-31T19:14:27
C++
UTF-8
C++
false
false
11,320
cpp
#include "zce/predefine.h" #include "zce/logger/logging.h" #include "zce/timer/timer_handler.h" #include "zce/timer/queue_heap.h" namespace zce { //注意由于C/C++的下标变化是从0开始的, #define ZCE_TIMER_HEAP_PARENT(x) ((x) == 0 ? 0 : (((x) - 1) / 2)) //左子树的下标 #define ZCE_TIMER_HEAP_LCHILD(x) ((x) + (x) + 1) //左子树的下标 #define ZCE_TIMER_HEAP_RCHILD(x) ((x) + (x) + 2) // timer_heap::timer_heap(size_t num_timer_node, unsigned int timer_precision_mesc, TRIGGER_MODE trigger_mode, bool dynamic_expand_node) { int ret = timer_heap::initialize(num_timer_node, timer_precision_mesc, trigger_mode, dynamic_expand_node); // if (0 != ret) { ZCE_LOG(RS_ERROR, "[zcelib] Timer_Heap::initialize fail."); } } int timer_heap::initialize(size_t num_timer_node, unsigned int timer_precision_mesc, TRIGGER_MODE trigger_mode, bool dynamic_expand_node) { //在基类进行初始化 int ret = 0; ret = zce::timer_queue::initialize(num_timer_node, timer_precision_mesc, trigger_mode, dynamic_expand_node); if (ret != 0) { return ret; } //开始阶段没有任何数据 size_heap_ = 0; return 0; } //扩张相关十字链表的NODE的数量,也调用底层的extend_node函数 int timer_heap::extend_node(size_t num_timer_node, size_t& old_num_node) { int ret = 0; ret = zce::timer_queue::extend_node(num_timer_node, old_num_node); if (ret != 0) { return ret; } timer_node_heap_.resize(num_timer_node_); //将QUEUE上的所点处理成无效,表示没有挂NODE for (size_t i = old_num_node; i < num_timer_node_; ++i) { timer_node_heap_[i] = INVALID_TIMER_ID; } note_to_heapid_.resize(num_timer_node_); //将QUEUE上的所点处理成无效,表示没有对应关系 for (size_t i = old_num_node; i < num_timer_node_; ++i) { note_to_heapid_[i] = INVALID_TIMER_ID; } return 0; } //分发定时器 size_t timer_heap::dispatch_timer(const zce::time_value& now_time, uint64_t now_trigger_msec) { int ret = 0; //分发的数量 size_t num_dispatch = 0; int timer_id = INVALID_TIMER_ID; ret = get_frist_nodeid(timer_id); while (timer_id != INVALID_TIMER_ID) { //如果已经超时,进行触发 if (time_node_ary_[timer_id].next_trigger_point_ <= now_trigger_msec) { ++num_dispatch; //标记这个定时器已经触发过,详细见already_trigger_的解释 time_node_ary_[timer_id].already_trigger_ = true; //时钟触发 if (time_node_ary_[timer_id].timer_handle_) { time_node_ary_[timer_id].timer_handle_->timer_timeout(now_time, timer_id); } else if (time_node_ary_[timer_id].timer_call_) { time_node_ary_[timer_id].timer_call_(now_time, timer_id); } else { ZCE_ASSERT(false); } } else { break; } //因为timer_timeout其实可能取消了这个定时器,所以在调用之后,要进行一下检查 if ((time_node_ary_[timer_id].timer_handle_ || time_node_ary_[timer_id].timer_call_) && time_node_ary_[timer_id].already_trigger_ == true) { //重新规划这个TIME NODE的位置等,如果不需要触发了则取消定时器 reschedule_timer(timer_id, now_trigger_msec); } // ret = get_frist_nodeid(timer_id); if (0 != ret) { break; } } prev_trigger_msec_ = now_trigger_msec; //返回数量 return num_dispatch; } //设置定时器 int timer_heap::schedule_timer_i(zce::timer_handler* timer_hdl, std::function<int(const zce::time_value &, int) > &call_fun, int &timer_id, const zce::time_value& delay_time, const zce::time_value& interval_time) { int ret = 0; timer_id = INVALID_TIMER_ID; //看能否分配一个TIME NODE ZCE_TIMER_NODE* alloc_time_node = nullptr; ret = alloc_timernode(timer_hdl, call_fun, delay_time, interval_time, timer_id, alloc_time_node); //注意,这个地方返回INVALID_TIMER_ID表示无效,其实也许参数不应该这样设计,但为了兼容ACE的代码 if (ret != 0) { return INVALID_TIMER_ID; } ret = add_nodeid(timer_id); if (ret != 0) { return INVALID_TIMER_ID; } return 0; } //取消定时器 int timer_heap::cancel_timer(int timer_id) { // int ret = 0; //先从堆上上删除这个节点 ret = remove_nodeid(timer_id); if (ret != 0) { return ret; } //回收TIME NODE ret = zce::timer_queue::cancel_timer(timer_id); if (ret != 0) { return ret; } return 0; } int timer_heap::reschedule_timer(int timer_id, uint64_t now_trigger_msec) { bool contiue_trigger = false; //计算下一次触发的点 calc_next_trigger(timer_id, now_trigger_msec, contiue_trigger); //如果不需要继续触发定时器了,取消 if (!contiue_trigger) { return cancel_timer(timer_id); } //这个TIMER NODE 仍然要触发 //先从堆上上删除这个节点 int ret = remove_nodeid(timer_id); if (ret != 0) { return ret; } //然后重新放入对中间去 ret = add_nodeid(timer_id); if (ret != 0) { return ret; } return 0; } //向上寻找合适的位置 bool timer_heap::reheap_up(size_t heap_id) { bool already_up = false; // if (heap_id == 0) { return already_up; } // size_t child_id = heap_id; size_t parent_id = ZCE_TIMER_HEAP_PARENT(child_id); do { //最小堆,发现父节点大于子节点,就调整 if (time_node_ary_[timer_node_heap_[parent_id]].next_trigger_point_ > time_node_ary_[timer_node_heap_[child_id]].next_trigger_point_) { // already_up = true; //交换 int old_heap_parent = timer_node_heap_[parent_id]; int old_heap_child = timer_node_heap_[child_id]; timer_node_heap_[parent_id] = old_heap_child; timer_node_heap_[child_id] = old_heap_parent; int swap_data = note_to_heapid_[old_heap_parent]; note_to_heapid_[old_heap_parent] = note_to_heapid_[old_heap_child]; note_to_heapid_[old_heap_child] = swap_data; child_id = parent_id; parent_id = ZCE_TIMER_HEAP_PARENT(child_id); } else { break; } } while (child_id > 0); return already_up; } //向下寻找合适的位置 bool timer_heap::reheap_down(size_t heap_id) { //是否进行了下降操作 bool already_down = false; // size_t parent_id = heap_id; size_t child_id = ZCE_TIMER_HEAP_LCHILD(parent_id); if (child_id > size_heap_) { return already_down; } //和左右节点比较,然后向下旋转 do { //如果左子节点大于右子节点,那么,向右边进发 if (((child_id + 1) < size_heap_) && (time_node_ary_[timer_node_heap_[child_id]].next_trigger_point_ > time_node_ary_[timer_node_heap_[child_id + 1]].next_trigger_point_)) { ++child_id; } //dump(); //父节点大于子节点, if (time_node_ary_[timer_node_heap_[parent_id]].next_trigger_point_ > time_node_ary_[timer_node_heap_[child_id]].next_trigger_point_) { already_down = true; //交换 int old_heap_parent = timer_node_heap_[parent_id]; int old_heap_child = timer_node_heap_[child_id]; timer_node_heap_[parent_id] = old_heap_child; timer_node_heap_[child_id] = old_heap_parent; int swap_data = note_to_heapid_[old_heap_parent]; note_to_heapid_[old_heap_parent] = note_to_heapid_[old_heap_child]; note_to_heapid_[old_heap_child] = swap_data; parent_id = child_id; child_id = ZCE_TIMER_HEAP_LCHILD(parent_id); } //表示左右子树都大于父节点,不用向下寻找了 else { return already_down; } } while (child_id < size_heap_); //返回 return already_down; } int timer_heap::get_frist_nodeid(int& timer_node_id) { //先附一个无效值 timer_node_id = INVALID_TIMER_ID; if (size_heap_ == 0) { return -1; } timer_node_id = timer_node_heap_[0]; return 0; }; //增加一个Timer Node int timer_heap::add_nodeid(int add_node_id) { //放在堆的最后一个, timer_node_heap_[size_heap_] = add_node_id; note_to_heapid_[add_node_id] = static_cast<int>(size_heap_); ++size_heap_; reheap_up(size_heap_ - 1); return 0; } int timer_heap::remove_nodeid(int timer_node_id) { assert(size_heap_ > 0); if (size_heap_ == 0) { //看你妹呀,瞎填参数 return -1; } size_t delete_heap_id = note_to_heapid_[timer_node_id]; // note_to_heapid_[timer_node_heap_[delete_heap_id]] = INVALID_TIMER_ID; timer_node_heap_[delete_heap_id] = INVALID_TIMER_ID; --size_heap_; //数量为0不旋转 if (size_heap_ == 0) { return 0; } //将最后一个堆放到删除的位置,进行调整 timer_node_heap_[delete_heap_id] = timer_node_heap_[size_heap_]; note_to_heapid_[timer_node_heap_[delete_heap_id]] = static_cast<int>(delete_heap_id); timer_node_heap_[size_heap_] = INVALID_TIMER_ID; //看是否需要向上调整 bool alread_up = reheap_up(delete_heap_id); //如果不需要向上调整,看是否需要向下调整 if (!alread_up) { reheap_down(delete_heap_id); } return 0; } //dump数据 void timer_heap::dump() { std::cout << "timer_node_heap_:"; for (size_t i = 0; i < num_timer_node_; ++i) { std::cout << std::setw(3) << timer_node_heap_[i] << " "; } std::cout << std::endl; std::cout << "note_to_heapid_ :"; for (size_t i = 0; i < num_timer_node_; ++i) { std::cout << std::setw(3) << note_to_heapid_[i] << " "; } std::cout << std::endl; } }
[ "fullsail@163.com" ]
fullsail@163.com
f5bc75bcf044e8ed52fef446ec94c8600b2222c1
4352b5c9e6719d762e6a80e7a7799630d819bca3
/tutorials/eulerVortex.twitch/eulerVortex.cyclic.twitch.test.test/processor3/3.02/p
d83ed037f3c90fcfa234194019c089aab046ffae
[]
no_license
dashqua/epicProject
d6214b57c545110d08ad053e68bc095f1d4dc725
54afca50a61c20c541ef43e3d96408ef72f0bcbc
refs/heads/master
2022-02-28T17:20:20.291864
2019-10-28T13:33:16
2019-10-28T13:33:16
184,294,390
1
0
null
null
null
null
UTF-8
C++
false
false
46,028
/*--------------------------------*- C++ -*----------------------------------*\ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org \\ / A nd | Version: 6 \\/ M anipulation | \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format ascii; class volScalarField; location "3.02"; object p; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // dimensions [1 -1 -2 0 0 0 0]; internalField nonuniform List<scalar> 5625 ( 0.999996 0.999995 0.999994 0.999993 0.999992 0.999991 0.99999 0.999989 0.999988 0.999988 0.999988 0.999988 0.999989 0.99999 0.999991 0.999992 0.999994 0.999996 0.999998 1 1 1 1.00001 1.00001 1.00001 1.00001 1.00001 1.00001 1.00001 1.00001 1.00001 1.00001 1.00001 1.00001 1.00001 1.00001 1.00001 1.00001 1.00001 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0.999994 0.999993 0.999992 0.999991 0.999989 0.999988 0.999987 0.999986 0.999986 0.999985 0.999985 0.999985 0.999986 0.999987 0.999989 0.999991 0.999993 0.999996 0.999998 1 1 1.00001 1.00001 1.00001 1.00001 1.00002 1.00002 1.00002 1.00002 1.00002 1.00002 1.00002 1.00001 1.00001 1.00001 1.00001 1.00001 1.00001 1.00001 1.00001 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0.999993 0.999991 0.99999 0.999988 0.999986 0.999985 0.999983 0.999982 0.999981 0.999981 0.999981 0.999981 0.999983 0.999984 0.999986 0.999989 0.999992 0.999995 0.999999 1 1.00001 1.00001 1.00001 1.00002 1.00002 1.00002 1.00002 1.00002 1.00002 1.00002 1.00002 1.00002 1.00002 1.00002 1.00002 1.00001 1.00001 1.00001 1.00001 1.00001 1.00001 1.00001 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0.999991 0.999989 0.999987 0.999984 0.999982 0.99998 0.999979 0.999978 0.999977 0.999976 0.999976 0.999977 0.999979 0.999981 0.999984 0.999988 0.999992 0.999996 1 1.00001 1.00001 1.00001 1.00002 1.00002 1.00003 1.00003 1.00003 1.00003 1.00003 1.00003 1.00003 1.00003 1.00003 1.00002 1.00002 1.00002 1.00002 1.00001 1.00001 1.00001 1.00001 1.00001 1.00001 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0.999988 0.999986 0.999983 0.99998 0.999978 0.999976 0.999974 0.999972 0.999971 0.999971 0.999972 0.999973 0.999976 0.999979 0.999983 0.999988 0.999993 0.999999 1 1.00001 1.00002 1.00002 1.00003 1.00003 1.00003 1.00004 1.00004 1.00004 1.00004 1.00004 1.00004 1.00004 1.00003 1.00003 1.00003 1.00003 1.00002 1.00002 1.00002 1.00001 1.00001 1.00001 1.00001 1.00001 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0.999985 0.999982 0.999979 0.999976 0.999973 0.99997 0.999968 0.999966 0.999965 0.999966 0.999968 0.99997 0.999973 0.999978 0.999984 0.99999 0.999997 1 1.00001 1.00002 1.00003 1.00003 1.00004 1.00004 1.00005 1.00005 1.00005 1.00005 1.00005 1.00005 1.00005 1.00005 1.00004 1.00004 1.00004 1.00003 1.00003 1.00002 1.00002 1.00002 1.00001 1.00001 1.00001 1.00001 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0.999981 0.999978 0.999974 0.99997 0.999967 0.999964 0.999962 0.999961 0.999961 0.999962 0.999965 0.999968 0.999974 0.99998 0.999988 0.999997 1.00001 1.00002 1.00003 1.00003 1.00004 1.00005 1.00006 1.00006 1.00007 1.00007 1.00007 1.00007 1.00007 1.00007 1.00007 1.00006 1.00006 1.00005 1.00005 1.00004 1.00004 1.00003 1.00003 1.00002 1.00002 1.00001 1.00001 1.00001 1.00001 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0.999978 0.999973 0.999969 0.999965 0.999961 0.999958 0.999957 0.999956 0.999957 0.99996 0.999964 0.999971 0.999979 0.999988 0.999999 1.00001 1.00002 1.00004 1.00005 1.00006 1.00007 1.00008 1.00009 1.00009 1.0001 1.0001 1.0001 1.0001 1.0001 1.00009 1.00009 1.00008 1.00007 1.00007 1.00006 1.00005 1.00005 1.00004 1.00003 1.00003 1.00002 1.00002 1.00001 1.00001 1.00001 1.00001 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0.999973 0.999968 0.999963 0.999959 0.999956 0.999953 0.999953 0.999954 0.999957 0.999962 0.99997 0.99998 0.999991 1 1.00002 1.00004 1.00005 1.00007 1.00008 1.0001 1.00011 1.00012 1.00013 1.00014 1.00014 1.00014 1.00014 1.00014 1.00013 1.00012 1.00012 1.00011 1.0001 1.00009 1.00008 1.00007 1.00006 1.00005 1.00004 1.00003 1.00003 1.00002 1.00002 1.00001 1.00001 1.00001 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0.999969 0.999963 0.999958 0.999955 0.999952 0.999951 0.999952 0.999956 0.999963 0.999972 0.999984 0.999999 1.00002 1.00004 1.00006 1.00008 1.0001 1.00012 1.00014 1.00016 1.00017 1.00019 1.00019 1.0002 1.0002 1.0002 1.00019 1.00019 1.00018 1.00017 1.00016 1.00014 1.00013 1.00011 1.0001 1.00009 1.00008 1.00006 1.00005 1.00004 1.00003 1.00003 1.00002 1.00002 1.00001 1.00001 1.00001 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0.999964 0.999959 0.999955 0.999952 0.999951 0.999953 0.999957 0.999966 0.999978 0.999994 1.00001 1.00004 1.00006 1.00009 1.00012 1.00015 1.00018 1.00021 1.00023 1.00025 1.00027 1.00028 1.00029 1.00029 1.00029 1.00028 1.00027 1.00026 1.00025 1.00023 1.00021 1.00019 1.00017 1.00015 1.00013 1.00011 1.0001 1.00008 1.00007 1.00005 1.00004 1.00003 1.00003 1.00002 1.00001 1.00001 1.00001 1 1 1 1 1 1 0.999999 0.999999 0.999999 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0.999961 0.999957 0.999954 0.999954 0.999956 0.999962 0.999973 0.999988 1.00001 1.00004 1.00007 1.0001 1.00014 1.00018 1.00022 1.00026 1.0003 1.00034 1.00037 1.00039 1.00041 1.00043 1.00043 1.00043 1.00042 1.00041 1.00039 1.00037 1.00034 1.00031 1.00029 1.00026 1.00023 1.0002 1.00017 1.00015 1.00012 1.0001 1.00009 1.00007 1.00005 1.00004 1.00003 1.00002 1.00002 1.00001 1.00001 1 1 1 1 1 0.999999 0.999999 0.999999 0.999999 0.999999 0.999999 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0.999961 0.999959 0.999959 0.999962 0.99997 0.999984 1 1.00003 1.00006 1.00011 1.00015 1.0002 1.00026 1.00032 1.00038 1.00043 1.00049 1.00054 1.00058 1.00061 1.00063 1.00064 1.00064 1.00063 1.00061 1.00059 1.00056 1.00052 1.00048 1.00044 1.00039 1.00035 1.00031 1.00026 1.00023 1.00019 1.00016 1.00013 1.00011 1.00009 1.00007 1.00005 1.00004 1.00003 1.00002 1.00001 1.00001 1.00001 1 1 1 0.999999 0.999999 0.999999 0.999999 0.999999 0.999999 0.999999 0.999999 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0.999965 0.999965 0.99997 0.999981 0.999999 1.00002 1.00006 1.0001 1.00016 1.00022 1.00029 1.00037 1.00045 1.00053 1.00061 1.00069 1.00076 1.00083 1.00088 1.00092 1.00094 1.00095 1.00094 1.00092 1.00089 1.00085 1.00079 1.00074 1.00067 1.00061 1.00054 1.00048 1.00041 1.00036 1.0003 1.00025 1.00021 1.00017 1.00014 1.00011 1.00009 1.00007 1.00005 1.00004 1.00003 1.00002 1.00001 1.00001 1 1 0.999999 0.999999 0.999998 0.999998 0.999998 0.999998 0.999999 0.999999 0.999999 0.999999 0.999999 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0.999975 0.999982 0.999995 1.00002 1.00005 1.00009 1.00015 1.00022 1.0003 1.00039 1.0005 1.00061 1.00073 1.00084 1.00096 1.00107 1.00116 1.00125 1.00131 1.00136 1.00138 1.00139 1.00137 1.00134 1.00128 1.00121 1.00113 1.00104 1.00095 1.00085 1.00075 1.00066 1.00057 1.00048 1.00041 1.00034 1.00028 1.00023 1.00018 1.00014 1.00011 1.00008 1.00006 1.00004 1.00003 1.00002 1.00001 1.00001 1 1 0.999999 0.999998 0.999997 0.999997 0.999997 0.999998 0.999998 0.999998 0.999999 0.999999 0.999999 0.999999 1 1 1 1 1 1 1 1 1 1 1 1 1 0.999995 1.00001 1.00004 1.00008 1.00013 1.0002 1.00029 1.00039 1.00052 1.00065 1.00081 1.00097 1.00113 1.00129 1.00145 1.0016 1.00173 1.00184 1.00192 1.00198 1.00201 1.00201 1.00197 1.00191 1.00183 1.00173 1.0016 1.00147 1.00133 1.00119 1.00105 1.00091 1.00078 1.00066 1.00055 1.00046 1.00037 1.0003 1.00024 1.00018 1.00014 1.00011 1.00008 1.00006 1.00004 1.00002 1.00001 1.00001 1 0.999999 0.999997 0.999996 0.999996 0.999996 0.999997 0.999997 0.999997 0.999998 0.999998 0.999999 0.999999 0.999999 1 1 1 1 1 1 1 1 1 1 1 1 1 1.00003 1.00006 1.00011 1.00017 1.00026 1.00037 1.0005 1.00066 1.00083 1.00103 1.00125 1.00147 1.0017 1.00193 1.00214 1.00234 1.00252 1.00266 1.00277 1.00284 1.00287 1.00286 1.0028 1.00271 1.00259 1.00243 1.00226 1.00207 1.00186 1.00166 1.00146 1.00126 1.00108 1.00091 1.00075 1.00062 1.0005 1.0004 1.00031 1.00024 1.00018 1.00014 1.0001 1.00007 1.00005 1.00003 1.00002 1.00001 1 0.999998 0.999996 0.999995 0.999995 0.999995 0.999995 0.999996 0.999997 0.999997 0.999998 0.999998 0.999999 0.999999 0.999999 1 1 1 1 1 1 1 1 1 1 1 1 1.00008 1.00014 1.00022 1.00032 1.00045 1.00061 1.00081 1.00103 1.00129 1.00157 1.00187 1.00218 1.0025 1.0028 1.0031 1.00336 1.00359 1.00378 1.00392 1.00401 1.00404 1.00401 1.00393 1.0038 1.00362 1.0034 1.00315 1.00288 1.00259 1.0023 1.00202 1.00174 1.00148 1.00125 1.00103 1.00084 1.00068 1.00054 1.00042 1.00032 1.00024 1.00018 1.00013 1.00009 1.00006 1.00004 1.00002 1.00001 1 0.999997 0.999994 0.999993 0.999993 0.999993 0.999994 0.999995 0.999995 0.999996 0.999997 0.999998 0.999998 0.999999 0.999999 0.999999 1 1 1 1 1 1 1 1 1 1 1 1.00017 1.00026 1.00038 1.00053 1.00072 1.00096 1.00124 1.00156 1.00192 1.00231 1.00272 1.00315 1.00357 1.00399 1.00437 1.00473 1.00503 1.00527 1.00545 1.00556 1.00559 1.00555 1.00543 1.00524 1.00499 1.00469 1.00435 1.00397 1.00358 1.00318 1.00278 1.0024 1.00204 1.00171 1.00141 1.00115 1.00092 1.00073 1.00057 1.00043 1.00032 1.00024 1.00017 1.00012 1.00008 1.00005 1.00003 1.00001 1 0.999996 0.999992 0.999991 0.99999 0.999991 0.999992 0.999993 0.999994 0.999995 0.999996 0.999997 0.999998 0.999998 0.999999 0.999999 0.999999 1 1 1 1 1 1 1 1 1 1 1.0003 1.00043 1.00061 1.00083 1.00111 1.00145 1.00184 1.00229 1.00278 1.00331 1.00387 1.00444 1.005 1.00555 1.00605 1.00651 1.0069 1.00722 1.00744 1.00757 1.00761 1.00754 1.00738 1.00713 1.00679 1.00639 1.00592 1.00542 1.00488 1.00434 1.0038 1.00328 1.00279 1.00234 1.00193 1.00157 1.00126 1.00099 1.00077 1.00058 1.00043 1.00032 1.00022 1.00015 1.0001 1.00006 1.00003 1.00001 1 0.999994 0.99999 0.999988 0.999987 0.999988 0.999989 0.999991 0.999992 0.999994 0.999995 0.999996 0.999997 0.999998 0.999998 0.999999 0.999999 0.999999 1 1 1 1 1 1 1 1 1 1.00048 1.00068 1.00093 1.00126 1.00165 1.00212 1.00266 1.00327 1.00393 1.00464 1.00538 1.00612 1.00686 1.00756 1.00822 1.0088 1.00929 1.00969 1.00997 1.01013 1.01017 1.01008 1.00987 1.00954 1.0091 1.00857 1.00796 1.0073 1.00659 1.00587 1.00515 1.00445 1.00379 1.00318 1.00263 1.00213 1.00171 1.00134 1.00104 1.00079 1.00059 1.00043 1.0003 1.00021 1.00014 1.00008 1.00005 1.00002 1 0.999993 0.999987 0.999984 0.999984 0.999985 0.999986 0.999988 0.99999 0.999992 0.999994 0.999995 0.999996 0.999997 0.999998 0.999999 0.999999 0.999999 1 1 1 1 1 1 1 1 1 1.00073 1.00102 1.00138 1.00183 1.00238 1.00302 1.00375 1.00456 1.00544 1.00637 1.00732 1.00828 1.00922 1.01011 1.01093 1.01165 1.01227 1.01275 1.0131 1.01329 1.01333 1.01321 1.01295 1.01253 1.01198 1.01131 1.01053 1.00968 1.00877 1.00784 1.00689 1.00598 1.0051 1.00429 1.00355 1.00289 1.00231 1.00182 1.00141 1.00107 1.00079 1.00058 1.00041 1.00028 1.00018 1.00011 1.00006 1.00003 1.00001 0.999992 0.999984 0.999981 0.99998 0.999981 0.999983 0.999985 0.999988 0.99999 0.999992 0.999994 0.999995 0.999997 0.999998 0.999998 0.999999 0.999999 0.999999 1 1 1 1 1 1 1 1 1.00108 1.00148 1.00199 1.00261 1.00335 1.0042 1.00517 1.00623 1.00737 1.00856 1.00977 1.01097 1.01214 1.01323 1.01423 1.01511 1.01585 1.01643 1.01684 1.01707 1.01711 1.01697 1.01665 1.01615 1.01548 1.01466 1.0137 1.01264 1.0115 1.01031 1.00911 1.00793 1.00679 1.00572 1.00475 1.00387 1.00311 1.00245 1.0019 1.00144 1.00107 1.00078 1.00055 1.00038 1.00025 1.00016 1.00009 1.00004 1.00001 0.999993 0.999982 0.999977 0.999975 0.999976 0.999979 0.999981 0.999985 0.999987 0.99999 0.999992 0.999994 0.999996 0.999997 0.999998 0.999998 0.999999 0.999999 0.999999 1 1 1 1 1 1 1 1.00155 1.0021 1.00279 1.00362 1.0046 1.00573 1.00698 1.00834 1.00978 1.01127 1.01277 1.01424 1.01565 1.01695 1.01814 1.01916 1.02002 1.02069 1.02116 1.02142 1.02147 1.02131 1.02094 1.02036 1.01958 1.01862 1.01748 1.01621 1.01482 1.01336 1.01186 1.01037 1.00892 1.00755 1.00629 1.00515 1.00414 1.00327 1.00254 1.00194 1.00144 1.00105 1.00075 1.00052 1.00034 1.00022 1.00013 1.00006 1.00002 0.999996 0.999981 0.999973 0.999971 0.999971 0.999974 0.999977 0.999981 0.999984 0.999988 0.99999 0.999993 0.999995 0.999996 0.999997 0.999998 0.999999 0.999999 0.999999 1 1 1 1 1 1 1 1.00217 1.00292 1.00384 1.00493 1.00621 1.00765 1.00924 1.01095 1.01273 1.01454 1.01634 1.01808 1.01972 1.02122 1.02257 1.02372 1.02467 1.0254 1.02592 1.02621 1.02626 1.02609 1.02569 1.02506 1.0242 1.02312 1.02183 1.02036 1.01873 1.01699 1.01518 1.01335 1.01156 1.00983 1.00823 1.00677 1.00547 1.00434 1.00338 1.00258 1.00193 1.00142 1.00101 1.0007 1.00047 1.0003 1.00018 1.00009 1.00004 1 0.999981 0.99997 0.999966 0.999966 0.999969 0.999972 0.999977 0.999981 0.999985 0.999988 0.999991 0.999993 0.999995 0.999997 0.999998 0.999998 0.999999 0.999999 0.999999 1 1 1 1 1 1 1.00299 1.00397 1.00517 1.00659 1.00822 1.01003 1.012 1.01408 1.01622 1.01836 1.02045 1.02243 1.02426 1.02591 1.02736 1.02858 1.02958 1.03034 1.03086 1.03116 1.03122 1.03105 1.03065 1.03001 1.02912 1.02798 1.0266 1.02499 1.02317 1.02118 1.01907 1.0169 1.01473 1.01262 1.01063 1.00879 1.00714 1.00569 1.00446 1.00342 1.00257 1.00189 1.00136 1.00095 1.00064 1.00041 1.00025 1.00014 1.00006 1.00001 0.999984 0.999968 0.999961 0.99996 0.999963 0.999967 0.999972 0.999977 0.999982 0.999986 0.999989 0.999992 0.999994 0.999996 0.999997 0.999998 0.999999 0.999999 0.999999 1 1 1 1 1 1 1.00402 1.00531 1.00685 1.00864 1.01068 1.01291 1.01529 1.01775 1.02023 1.02266 1.02498 1.02713 1.02908 1.03078 1.03224 1.03345 1.0344 1.03512 1.03562 1.03589 1.03595 1.0358 1.03544 1.03484 1.034 1.03291 1.03154 1.02989 1.02797 1.02582 1.02347 1.02099 1.01845 1.01594 1.01352 1.01126 1.0092 1.00738 1.00581 1.00448 1.00339 1.0025 1.00181 1.00127 1.00086 1.00056 1.00035 1.0002 1.0001 1.00003 0.999991 0.999968 0.999958 0.999955 0.999957 0.999961 0.999967 0.999973 0.999978 0.999983 0.999987 0.99999 0.999993 0.999995 0.999996 0.999997 0.999998 0.999999 0.999999 0.999999 1 1 1 1 1 1.00533 1.00697 1.00891 1.01114 1.01362 1.01628 1.01907 1.02189 1.02466 1.0273 1.02974 1.03194 1.03386 1.03548 1.03682 1.03788 1.0387 1.03929 1.03968 1.0399 1.03995 1.03984 1.03956 1.03909 1.0384 1.03747 1.03625 1.03471 1.03285 1.03067 1.0282 1.0255 1.02266 1.01976 1.01692 1.01421 1.0117 1.00945 1.00748 1.00581 1.00441 1.00328 1.00238 1.00169 1.00116 1.00077 1.00048 1.00028 1.00015 1.00006 1 0.999971 0.999955 0.99995 0.999951 0.999955 0.999961 0.999968 0.999974 0.99998 0.999984 0.999988 0.999991 0.999994 0.999996 0.999997 0.999998 0.999999 0.999999 0.999999 1 1 1 1 1 1.00695 1.009 1.01139 1.01409 1.01703 1.02013 1.02328 1.02637 1.02932 1.03202 1.03442 1.03649 1.0382 1.03956 1.04062 1.04139 1.04194 1.04231 1.04253 1.04264 1.04266 1.04261 1.04246 1.04219 1.04177 1.04114 1.04024 1.03901 1.0374 1.0354 1.03299 1.03024 1.02721 1.02402 1.02079 1.01763 1.01465 1.01193 1.00951 1.00743 1.00569 1.00426 1.00311 1.00222 1.00154 1.00103 1.00066 1.0004 1.00022 1.0001 1.00002 0.999979 0.999955 0.999946 0.999945 0.999948 0.999955 0.999962 0.999969 0.999976 0.999981 0.999986 0.99999 0.999993 0.999995 0.999996 0.999997 0.999998 0.999999 0.999999 1 1 1 1 1 1.00891 1.01143 1.01432 1.01751 1.02089 1.02436 1.02776 1.03099 1.03393 1.03649 1.03863 1.04034 1.04163 1.04254 1.04313 1.04347 1.04363 1.04367 1.04365 1.04362 1.0436 1.04361 1.04363 1.04363 1.04357 1.04338 1.04298 1.04226 1.04115 1.03957 1.03748 1.0349 1.03189 1.02855 1.02503 1.02148 1.01804 1.01483 1.01193 1.00939 1.00724 1.00546 1.00402 1.00289 1.00202 1.00137 1.00089 1.00055 1.00031 1.00015 1.00005 0.999992 0.999959 0.999943 0.999939 0.999942 0.999948 0.999956 0.999964 0.999972 0.999978 0.999983 0.999988 0.999991 0.999994 0.999996 0.999997 0.999998 0.999999 0.999999 0.999999 1 1 1 1 1.01125 1.01428 1.01768 1.02133 1.02509 1.02879 1.03229 1.03544 1.03813 1.0403 1.04193 1.04305 1.0437 1.04396 1.04394 1.04371 1.04338 1.04302 1.0427 1.04249 1.04241 1.04248 1.0427 1.04302 1.0434 1.04375 1.04398 1.04397 1.04358 1.04269 1.04121 1.0391 1.03637 1.03312 1.02949 1.02566 1.02182 1.01814 1.01474 1.01171 1.0091 1.00691 1.00513 1.00371 1.00262 1.00179 1.00118 1.00074 1.00044 1.00023 1.0001 1.00001 0.999966 0.999943 0.999935 0.999936 0.999942 0.99995 0.999959 0.999967 0.999975 0.999981 0.999986 0.99999 0.999993 0.999995 0.999996 0.999998 0.999998 0.999999 0.999999 1 1 1 1 1.01397 1.01753 1.02141 1.02545 1.02945 1.03321 1.03656 1.03936 1.04153 1.04303 1.0439 1.0442 1.04403 1.0435 1.04274 1.04186 1.04098 1.04019 1.03955 1.03914 1.039 1.03913 1.03953 1.04018 1.04102 1.04198 1.04293 1.04375 1.04427 1.04431 1.04372 1.04239 1.04027 1.0374 1.03391 1.03 1.02589 1.0218 1.01791 1.01438 1.01127 1.00864 1.00646 1.00472 1.00336 1.00232 1.00155 1.00099 1.0006 1.00033 1.00015 1.00004 0.99998 0.999946 0.999933 0.999931 0.999936 0.999944 0.999953 0.999963 0.999971 0.999978 0.999983 0.999988 0.999991 0.999994 0.999996 0.999997 0.999998 0.999999 0.999999 0.999999 1 1 1 1.01708 1.02114 1.02543 1.02971 1.03374 1.0373 1.04022 1.04238 1.04373 1.04432 1.04421 1.04353 1.04242 1.04102 1.03948 1.03793 1.03649 1.03526 1.03431 1.03371 1.03349 1.03367 1.03425 1.03521 1.0365 1.03805 1.03974 1.04144 1.04296 1.04409 1.04463 1.04436 1.04317 1.04102 1.03799 1.03426 1.03008 1.02571 1.02141 1.01738 1.01377 1.01065 1.00804 1.00592 1.00425 1.00296 1.002 1.0013 1.0008 1.00046 1.00023 1.00009 1 0.999955 0.999933 0.999927 0.99993 0.999938 0.999948 0.999958 0.999967 0.999974 0.999981 0.999986 0.99999 0.999993 0.999995 0.999997 0.999998 0.999998 0.999999 0.999999 1 1 1 1.02052 1.02502 1.02957 1.03388 1.03768 1.04074 1.04291 1.04414 1.04445 1.04393 1.04271 1.04096 1.03887 1.03659 1.03429 1.03211 1.03016 1.02853 1.02729 1.02652 1.02623 1.02645 1.02718 1.02841 1.0301 1.03218 1.03455 1.03709 1.03962 1.0419 1.04368 1.0447 1.04473 1.04363 1.0414 1.03817 1.03417 1.02972 1.02513 1.02068 1.01657 1.01295 1.00986 1.00733 1.00531 1.00374 1.00255 1.00168 1.00106 1.00063 1.00034 1.00015 1.00003 0.999969 0.999936 0.999924 0.999925 0.999932 0.999942 0.999953 0.999962 0.999971 0.999978 0.999984 0.999988 0.999992 0.999994 0.999996 0.999997 0.999998 0.999999 0.999999 1 1 1 1.02421 1.02901 1.03361 1.03768 1.04095 1.0432 1.04435 1.04442 1.04351 1.04177 1.0394 1.0366 1.03357 1.03048 1.0275 1.02476 1.02236 1.0204 1.01893 1.018 1.01766 1.01791 1.01877 1.02022 1.02223 1.02475 1.02772 1.031 1.03444 1.03782 1.04086 1.04325 1.04468 1.04491 1.04381 1.04142 1.03793 1.03365 1.02895 1.02417 1.01963 1.01551 1.01194 1.00895 1.00654 1.00465 1.00321 1.00214 1.00137 1.00083 1.00046 1.00023 1.00008 0.99999 0.999944 0.999925 0.999921 0.999927 0.999936 0.999947 0.999958 0.999967 0.999975 0.999982 0.999987 0.999991 0.999994 0.999996 0.999997 0.999998 0.999999 0.999999 0.999999 1 1 1.02804 1.03293 1.03732 1.04085 1.04326 1.04443 1.04435 1.04312 1.04092 1.03796 1.03448 1.0307 1.02683 1.02304 1.01949 1.01628 1.01353 1.0113 1.00964 1.0086 1.00821 1.00849 1.00944 1.01106 1.01332 1.01621 1.01964 1.02354 1.02776 1.0321 1.03632 1.04006 1.04297 1.04469 1.04498 1.04374 1.04108 1.03727 1.03269 1.02777 1.02288 1.01831 1.01425 1.01079 1.00796 1.00571 1.00398 1.00269 1.00175 1.00108 1.00062 1.00032 1.00013 1.00002 0.999958 0.999928 0.99992 0.999922 0.999931 0.999942 0.999954 0.999964 0.999973 0.99998 0.999985 0.99999 0.999993 0.999995 0.999997 0.999998 0.999998 0.999999 0.999999 1 1 1.03183 1.03657 1.04044 1.04312 1.04442 1.0443 1.04286 1.04028 1.03682 1.03272 1.02823 1.0236 1.01903 1.01466 1.01064 1.00707 1.00403 1.00159 0.999781 0.998652 0.998222 0.998513 0.999535 1.00129 1.00375 1.00692 1.01072 1.01511 1.01996 1.02512 1.03035 1.03532 1.03965 1.04292 1.04476 1.04493 1.0434 1.04037 1.03619 1.03132 1.02622 1.02128 1.01676 1.01284 1.00956 1.00693 1.00488 1.00333 1.00219 1.00138 1.00082 1.00045 1.00021 1.00006 0.999977 0.999936 0.99992 0.999919 0.999927 0.999938 0.999949 0.99996 0.99997 0.999977 0.999984 0.999988 0.999992 0.999994 0.999996 0.999997 0.999998 0.999999 0.999999 1 1 1.03539 1.03969 1.04275 1.04432 1.04431 1.04279 1.03997 1.0361 1.03146 1.02635 1.02101 1.01567 1.01051 1.00568 1.00128 0.997414 0.994137 0.991506 0.989565 0.98835 0.987884 0.988186 0.989268 0.99113 0.993766 0.997156 1.00127 1.00605 1.01141 1.01723 1.0233 1.02934 1.03496 1.03972 1.04314 1.04487 1.04472 1.04275 1.03925 1.03469 1.02956 1.02436 1.01945 1.01507 1.01134 1.0083 1.0059 1.00407 1.00271 1.00174 1.00105 1.0006 1.0003 1.00011 1 0.999948 0.999923 0.999918 0.999923 0.999933 0.999945 0.999956 0.999967 0.999975 0.999982 0.999987 0.999991 0.999994 0.999996 0.999997 0.999998 0.999999 0.999999 1 1 1.03853 1.04209 1.04408 1.04435 1.04293 1.04002 1.03587 1.03081 1.02515 1.01917 1.01312 1.0072 1.00156 0.996336 0.991613 0.987467 0.983959 0.981142 0.97906 0.977752 0.977244 0.977559 0.978703 0.980676 0.983473 0.987076 0.991459 0.996578 1.00237 1.00872 1.01549 1.02241 1.02915 1.03526 1.04023 1.04357 1.04495 1.04428 1.04173 1.03771 1.03277 1.02746 1.02223 1.01744 1.01327 1.00981 1.00704 1.00491 1.00331 1.00215 1.00133 1.00077 1.00041 1.00018 1.00004 0.999965 0.99993 0.999919 0.999921 0.99993 0.999941 0.999953 0.999964 0.999973 0.99998 0.999986 0.99999 0.999993 0.999995 0.999997 0.999998 0.999999 0.999999 0.999999 1 1.04107 1.04364 1.04437 1.04324 1.04041 1.03615 1.0308 1.0247 1.01816 1.01146 1.00482 0.998407 0.992357 0.986764 0.98171 0.977264 0.973489 0.970445 0.968189 0.966768 0.966215 0.96655 0.96778 0.969896 0.972882 0.976717 0.981374 0.986815 0.992987 0.99981 1.00715 1.01482 1.02251 1.02981 1.03619 1.0411 1.04408 1.04487 1.04349 1.04027 1.03573 1.03048 1.02506 1.01992 1.01534 1.01146 1.00831 1.00584 1.00398 1.00262 1.00165 1.00098 1.00054 1.00026 1.00009 0.999989 0.99994 0.999922 0.99992 0.999927 0.999938 0.99995 0.999961 0.99997 0.999978 0.999984 0.999989 0.999992 0.999995 0.999996 0.999998 0.999998 0.999999 0.999999 1 1.04288 1.04427 1.04364 1.0411 1.03691 1.03143 1.02502 1.01803 1.01075 1.00345 0.996296 0.989438 0.982974 0.976983 0.971536 0.966709 0.962583 0.959236 0.956748 0.955183 0.954583 0.954969 0.956338 0.958666 0.961915 0.966048 0.971028 0.976815 0.983368 0.990623 0.99848 1.00678 1.01528 1.02359 1.03123 1.03762 1.04218 1.0445 1.04447 1.04226 1.03834 1.03333 1.02785 1.02245 1.0175 1.01321 1.00968 1.00687 1.00473 1.00315 1.00201 1.00122 1.00069 1.00035 1.00014 1.00002 0.999955 0.999928 0.999921 0.999926 0.999935 0.999947 0.999958 0.999968 0.999976 0.999983 0.999988 0.999992 0.999994 0.999996 0.999997 0.999998 0.999999 0.999999 1 1.0439 1.04398 1.04196 1.03807 1.03265 1.02609 1.01876 1.01101 1.00311 0.99528 0.987653 0.980336 0.973397 0.966907 0.960942 0.955596 0.950981 0.947217 0.944412 0.94266 0.94202 0.942509 0.944108 0.946765 0.950409 0.954969 0.960379 0.966591 0.973563 0.981251 0.989585 0.998446 1.00763 1.01683 1.02557 1.03329 1.03936 1.04324 1.04465 1.04361 1.04051 1.03593 1.03054 1.02498 1.01972 1.01506 1.01114 1.00799 1.00555 1.00373 1.00242 1.00149 1.00087 1.00046 1.00021 1.00006 0.999975 0.999937 0.999924 0.999925 0.999934 0.999945 0.999956 0.999966 0.999975 0.999982 0.999987 0.999991 0.999994 0.999996 0.999997 0.999998 0.999999 0.999999 1 1.04411 1.04286 1.03949 1.03435 1.02782 1.02032 1.01221 1.00382 0.995377 0.987045 0.97892 0.971064 0.963522 0.956362 0.949681 0.94361 0.938313 0.933965 0.930728 0.928733 0.92806 0.928727 0.93069 0.933856 0.938099 0.943291 0.949318 0.9561 0.96359 0.971759 0.980569 0.989944 0.999737 1.00969 1.01939 1.0283 1.03576 1.04116 1.04405 1.04431 1.04218 1.0382 1.03306 1.02746 1.02196 1.01696 1.01268 1.00918 1.00644 1.00438 1.00287 1.0018 1.00107 1.00059 1.00029 1.0001 1 0.999949 0.999929 0.999927 0.999933 0.999943 0.999954 0.999965 0.999973 0.999981 0.999986 0.99999 0.999993 0.999996 0.999997 0.999998 0.999999 0.999999 1 1.04358 1.04101 1.03639 1.03011 1.02261 1.0143 1.00553 0.996578 0.987621 0.978769 0.970061 0.96152 0.953171 0.945093 0.937416 0.930339 0.924096 0.918939 0.915108 0.912785 0.912081 0.913018 0.915523 0.919445 0.924579 0.930707 0.937637 0.945232 0.953419 0.962178 0.971507 0.981383 0.991721 1.00233 1.01286 1.02281 1.03154 1.03837 1.04273 1.04435 1.04333 1.0401 1.03535 1.02982 1.02417 1.01889 1.01427 1.01043 1.00739 1.00507 1.00336 1.00214 1.00129 1.00073 1.00038 1.00016 1.00003 0.999965 0.999936 0.999929 0.999933 0.999942 0.999953 0.999963 0.999972 0.99998 0.999985 0.99999 0.999993 0.999995 0.999997 0.999998 0.999999 0.999999 0.999999 1.0424 1.03858 1.03281 1.02553 1.01719 1.00819 0.99884 0.989361 0.97988 0.970428 0.960991 0.951543 0.942104 0.932773 0.923735 0.915279 0.907738 0.901474 0.896822 0.894045 0.8933 0.894616 0.897884 0.902878 0.909287 0.916767 0.925005 0.933769 0.942937 0.952483 0.96244 0.97285 0.983701 0.99488 1.00612 1.01698 1.02684 1.03499 1.04078 1.04378 1.04394 1.04159 1.03737 1.03204 1.02633 1.02082 1.01589 1.01173 1.00838 1.0058 1.00388 1.0025 1.00154 1.00089 1.00048 1.00022 1.00007 0.999985 0.999947 0.999934 0.999935 0.999942 0.999952 0.999962 0.999971 0.999979 0.999985 0.999989 0.999993 0.999995 0.999997 0.999998 0.999999 0.999999 0.999999 1.04068 1.0357 1.0289 1.02075 1.01169 1.00209 0.992207 0.982211 0.972144 0.961961 0.951582 0.940933 0.930032 0.919016 0.908157 0.897847 0.888562 0.880808 0.875045 0.871646 0.870829 0.872639 0.876932 0.883384 0.891544 0.900901 0.910975 0.921395 0.931947 0.942581 0.953358 0.964393 0.975768 0.987468 0.999323 1.01096 1.02181 1.03117 1.0383 1.04266 1.04405 1.04267 1.03908 1.03406 1.02838 1.02271 1.01751 1.01305 1.00941 1.00657 1.00443 1.00289 1.0018 1.00107 1.00059 1.00029 1.00011 1.00001 0.99996 0.99994 0.999937 0.999943 0.999952 0.999962 0.999971 0.999978 0.999984 0.999989 0.999992 0.999995 0.999997 0.999998 0.999999 0.999999 0.999999 1.03854 1.0325 1.0248 1.01589 1.0062 0.996068 0.985686 0.975136 0.96438 0.953281 0.941679 0.929458 0.916642 0.903418 0.890167 0.877433 0.865869 0.856162 0.848946 0.844722 0.843793 0.846225 0.851831 0.860177 0.87064 0.882497 0.895044 0.907719 0.920176 0.932306 0.944191 0.956019 0.967982 0.980186 0.992575 1.00488 1.01659 1.02701 1.03538 1.04106 1.04368 1.04333 1.04048 1.03586 1.0303 1.02454 1.01912 1.01438 1.01046 1.00736 1.00501 1.0033 1.00208 1.00126 1.00071 1.00036 1.00016 1.00004 0.999976 0.999949 0.999942 0.999945 0.999953 0.999962 0.999971 0.999978 0.999984 0.999989 0.999992 0.999995 0.999996 0.999998 0.999998 0.999999 0.999999 1.03609 1.02912 1.02061 1.01105 1.00082 0.990197 0.979303 0.96813 0.956537 0.944284 0.931124 0.916893 0.901623 0.885577 0.869281 0.853474 0.839031 0.826873 0.817839 0.812582 0.811502 0.814687 0.821906 0.832604 0.84596 0.860996 0.876732 0.892356 0.907335 0.921466 0.93483 0.947692 0.960367 0.973102 0.985979 0.998845 1.01129 1.02265 1.03215 1.03906 1.04291 1.04362 1.04156 1.03743 1.03207 1.02628 1.02069 1.0157 1.01151 1.00817 1.00561 1.00372 1.00238 1.00146 1.00084 1.00045 1.00021 1.00007 0.999994 0.999959 0.999947 0.999948 0.999954 0.999962 0.999971 0.999978 0.999984 0.999989 0.999992 0.999995 0.999996 0.999998 0.999998 0.999999 0.999999 1.03344 1.02564 1.01645 1.00632 0.995606 0.984506 0.973065 0.961168 0.948555 0.934873 0.91977 0.903033 0.884709 0.86517 0.845125 0.825562 0.807639 0.792549 0.781359 0.774887 0.773624 0.777691 0.786811 0.800301 0.817122 0.836013 0.855672 0.87498 0.893161 0.909868 0.925154 0.939354 0.952918 0.966254 0.979605 0.992963 1.00602 1.01819 1.0287 1.03676 1.04178 1.04355 1.04233 1.03875 1.03367 1.02792 1.0222 1.017 1.01256 1.00898 1.00621 1.00416 1.00268 1.00166 1.00098 1.00054 1.00026 1.0001 1.00001 0.999971 0.999954 0.999952 0.999956 0.999964 0.999971 0.999978 0.999984 0.999989 0.999992 0.999995 0.999996 0.999998 0.999998 0.999999 0.999999 1.0307 1.02217 1.01238 1.00175 0.990595 0.979022 0.966977 0.954229 0.940391 0.924975 0.907515 0.887744 0.865742 0.842022 0.817534 0.793574 0.771635 0.753214 0.739609 0.731792 0.730338 0.735396 0.746656 0.76331 0.784095 0.807441 0.8317 0.855398 0.877467 0.89736 0.915059 0.930949 0.945621 0.959664 0.973507 0.987306 1.00089 1.01375 1.02515 1.03424 1.04036 1.04318 1.04281 1.03984 1.03508 1.02943 1.02363 1.01825 1.01359 1.00979 1.00682 1.0046 1.00299 1.00188 1.00112 1.00063 1.00032 1.00014 1.00004 0.999986 0.999963 0.999957 0.999959 0.999965 0.999972 0.999979 0.999984 0.999989 0.999992 0.999995 0.999996 0.999998 0.999998 0.999999 0.999999 1.02793 1.01877 1.00846 0.997398 0.985824 0.973762 0.96104 0.947301 0.932018 0.914558 0.894327 0.871002 0.844722 0.816186 0.786645 0.757767 0.73142 0.709413 0.693257 0.684042 0.682406 0.688527 0.702081 0.722154 0.747266 0.775532 0.804932 0.833623 0.860197 0.88386 0.904471 0.922433 0.938464 0.953349 0.967724 0.981935 0.99596 1.0094 1.02157 1.0316 1.03874 1.04255 1.04304 1.0407 1.03631 1.0308 1.02497 1.01944 1.01458 1.01057 1.00742 1.00504 1.00331 1.00209 1.00127 1.00073 1.00039 1.00018 1.00006 1 0.999972 0.999963 0.999963 0.999967 0.999973 0.999979 0.999985 0.999989 0.999992 0.999995 0.999996 0.999998 0.999998 0.999999 0.999999 1.02521 1.01551 1.00475 0.993292 0.981315 0.968741 0.95526 0.940388 0.923448 0.903651 0.88027 0.852933 0.821861 0.787995 0.752954 0.718829 0.687888 0.662235 0.643539 0.632951 0.631143 0.638333 0.654215 0.677812 0.707445 0.740912 0.775812 0.809918 0.841474 0.869399 0.893378 0.913783 0.931437 0.947318 0.962286 0.976898 0.991304 1.00523 1.01805 1.0289 1.03698 1.04173 1.04305 1.04134 1.03736 1.03202 1.0262 1.02056 1.01553 1.01133 1.008 1.00547 1.00361 1.00231 1.00141 1.00083 1.00045 1.00022 1.00009 1.00002 0.999984 0.99997 0.999967 0.99997 0.999975 0.999981 0.999985 0.999989 0.999993 0.999995 0.999997 0.999998 0.999998 0.999999 0.999999 1.0226 1.01243 1.00128 0.989465 0.977095 0.963977 0.949664 0.933523 0.914736 0.892361 0.865533 0.833835 0.797611 0.758092 0.717324 0.67787 0.642396 0.613242 0.592158 0.580281 0.578289 0.586458 0.604554 0.631596 0.665749 0.704504 0.745066 0.784809 0.821628 0.854151 0.881853 0.905025 0.924552 0.941585 0.957218 0.972233 0.98697 1.0013 1.01466 1.02623 1.03515 1.04076 1.04288 1.0418 1.03823 1.03311 1.02731 1.02159 1.01642 1.01205 1.00856 1.00588 1.00391 1.00252 1.00156 1.00092 1.00052 1.00027 1.00012 1.00004 0.999996 0.999977 0.999972 0.999973 0.999977 0.999982 0.999986 0.99999 0.999993 0.999995 0.999997 0.999998 0.999999 0.999999 0.999999 1.02015 1.00959 0.998087 0.985941 0.973181 0.959496 0.944287 0.926771 0.905994 0.880872 0.850417 0.814182 0.77265 0.727394 0.680936 0.636336 0.596625 0.564306 0.541099 0.528057 0.525833 0.534792 0.554826 0.585028 0.623482 0.667404 0.713593 0.759003 0.801172 0.838444 0.870078 0.896245 0.917845 0.936174 0.952543 0.96797 0.983001 0.997655 1.01147 1.02365 1.0333 1.03971 1.04256 1.04209 1.03895 1.03404 1.02831 1.02253 1.01724 1.01272 1.00908 1.00628 1.0042 1.00272 1.0017 1.00102 1.00058 1.00031 1.00015 1.00006 1.00001 0.999986 0.999978 0.999977 0.99998 0.999984 0.999988 0.999991 0.999994 0.999996 0.999997 0.999998 0.999999 0.999999 0.999999 1.01789 1.007 0.995203 0.982742 0.969595 0.955333 0.93919 0.920229 0.897381 0.869447 0.835338 0.794589 0.74784 0.697028 0.645185 0.595865 0.552413 0.517396 0.492411 0.478361 0.475861 0.485365 0.506929 0.539799 0.582084 0.630809 0.682383 0.733306 0.780731 0.822721 0.858331 0.887596 0.911393 0.93112 0.948284 0.964134 0.979427 0.994345 1.00853 1.02122 1.03151 1.03862 1.04215 1.04225 1.03951 1.03484 1.02919 1.02338 1.01798 1.01334 1.00956 1.00664 1.00447 1.00291 1.00184 1.00112 1.00065 1.00035 1.00018 1.00008 1.00002 0.999995 0.999984 0.999981 0.999983 0.999986 0.999989 0.999992 0.999994 0.999996 0.999997 0.999998 0.999999 0.999999 0.999999 1.01586 1.0047 0.992647 0.979891 0.966362 0.951529 0.934453 0.914034 0.889103 0.858402 0.82078 0.775763 0.724143 0.668227 0.611546 0.558119 0.511549 0.474378 0.448014 0.433167 0.430392 0.44021 0.462837 0.497721 0.543126 0.596024 0.652496 0.708572 0.760983 0.807491 0.846957 0.879289 0.90531 0.926481 0.944473 0.960748 0.976274 0.991398 1.00587 1.01898 1.02982 1.03754 1.04168 1.0423 1.03995 1.0355 1.02994 1.02411 1.01864 1.01389 1.01 1.00698 1.00472 1.00309 1.00196 1.0012 1.00071 1.0004 1.00021 1.0001 1.00004 1.00001 0.999991 0.999986 0.999986 0.999988 0.99999 0.999993 0.999995 0.999996 0.999998 0.999998 0.999999 0.999999 1 1.01408 1.00269 0.99044 0.977412 0.963509 0.94813 0.930167 0.908339 0.881398 0.848084 0.807246 0.758422 0.702532 0.642201 0.581419 0.524621 0.4756 0.436836 0.409508 0.394128 0.391157 0.401128 0.424366 0.460546 0.508195 0.564398 0.625035 0.685689 0.742627 0.793289 0.836341 0.871571 0.899739 0.922331 0.941145 0.957834 0.973561 0.988842 1.00353 1.01698 1.02826 1.03651 1.04119 1.04227 1.04027 1.03604 1.03057 1.02474 1.01921 1.01437 1.01039 1.00727 1.00494 1.00325 1.00208 1.00129 1.00077 1.00044 1.00024 1.00012 1.00005 1.00002 0.999998 0.999991 0.99999 0.999991 0.999992 0.999994 0.999996 0.999997 0.999998 0.999999 0.999999 0.999999 1 1.01258 1.00101 0.988595 0.97533 0.961069 0.945186 0.92643 0.903321 0.874526 0.838844 0.795217 0.743223 0.683869 0.620011 0.555999 0.496604 0.44578 0.405929 0.378022 0.362377 0.359335 0.369374 0.392865 0.429681 0.478674 0.537186 0.601063 0.665522 0.726357 0.780651 0.826875 0.864705 0.894836 0.918753 0.938342 0.955412 0.971307 0.986694 1.00154 1.01524 1.02689 1.03558 1.0407 1.04219 1.04049 1.03646 1.03109 1.02526 1.01969 1.01477 1.01071 1.00753 1.00513 1.0034 1.00218 1.00136 1.00082 1.00048 1.00026 1.00014 1.00006 1.00003 1.00001 0.999997 0.999994 0.999993 0.999994 0.999995 0.999997 0.999998 0.999998 0.999999 0.999999 0.999999 1 1.01137 0.999645 0.987123 0.973672 0.959084 0.942746 0.923331 0.899151 0.868752 0.831027 0.785104 0.730678 0.668806 0.602447 0.536156 0.474937 0.422876 0.382332 0.354127 0.338417 0.335413 0.345493 0.369011 0.405975 0.455539 0.515388 0.581494 0.648843 0.7128 0.770076 0.818934 0.858951 0.890763 0.915835 0.936104 0.953501 0.969521 0.984969 0.999913 1.0138 1.02573 1.03476 1.04025 1.04207 1.04064 1.03678 1.03148 1.02567 1.02007 1.0151 1.01098 1.00773 1.00529 1.00352 1.00227 1.00143 1.00087 1.00051 1.00029 1.00016 1.00008 1.00004 1.00001 1 0.999997 0.999996 0.999996 0.999997 0.999997 0.999998 0.999999 0.999999 0.999999 1 1 1.01047 0.998616 0.986023 0.972458 0.957597 0.940863 0.920942 0.895975 0.864324 0.824951 0.777248 0.721136 0.657723 0.589941 0.522351 0.460053 0.407227 0.366256 0.337903 0.322223 0.319305 0.329425 0.352874 0.389704 0.439289 0.499656 0.567012 0.636273 0.702475 0.761978 0.812839 0.854542 0.887671 0.913661 0.934473 0.952118 0.968211 0.983676 0.998664 1.01268 1.02481 1.0341 1.03987 1.04194 1.04071 1.03699 1.03176 1.02597 1.02035 1.01534 1.01118 1.00789 1.00541 1.00361 1.00234 1.00148 1.00091 1.00054 1.00031 1.00017 1.00009 1.00005 1.00002 1.00001 1 0.999999 0.999998 0.999998 0.999998 0.999999 0.999999 0.999999 1 1 1 1.0099 0.997936 0.985295 0.971694 0.956652 0.939595 0.919319 0.893889 0.861446 0.820907 0.771943 0.714807 0.650736 0.582543 0.514607 0.451942 0.398771 0.357558 0.329119 0.31348 0.310644 0.320799 0.344161 0.380741 0.430017 0.490283 0.558035 0.628254 0.695773 0.756677 0.808838 0.851661 0.885685 0.912307 0.933483 0.951275 0.967381 0.982817 0.997804 1.01187 1.02413 1.0336 1.03956 1.04182 1.04073 1.03711 1.03193 1.02616 1.02053 1.0155 1.01131 1.008 1.0055 1.00368 1.0024 1.00152 1.00094 1.00057 1.00033 1.00019 1.00011 1.00006 1.00003 1.00001 1.00001 1 1 1 0.999999 0.999999 1 1 1 1 1 1.00967 0.997624 0.984942 0.971373 0.956279 0.939006 0.918506 0.892931 0.860227 0.819129 0.769459 0.711858 0.647807 0.580025 0.512578 0.450221 0.397128 0.355877 0.327423 0.311829 0.309049 0.31922 0.342491 0.378784 0.427559 0.487282 0.554721 0.62502 0.692942 0.75439 0.807103 0.850434 0.884886 0.911818 0.933156 0.950978 0.967031 0.982393 0.997333 1.01141 1.02372 1.03328 1.03935 1.04171 1.04071 1.03714 1.03199 1.02624 1.0206 1.01557 1.01138 1.00806 1.00555 1.00372 1.00244 1.00156 1.00097 1.00059 1.00035 1.00021 1.00012 1.00007 1.00004 1.00002 1.00001 1 1 1 1 1 1 1 1 1 1 1.00976 0.997697 0.984977 0.971473 0.956474 0.939157 0.918568 0.893097 0.86066 0.819719 0.77002 0.712489 0.648943 0.582122 0.515786 0.454332 0.40178 0.360797 0.332499 0.317018 0.314295 0.324451 0.347595 0.383544 0.431665 0.490494 0.557026 0.626612 0.694063 0.755209 0.807718 0.850926 0.885321 0.91222 0.933503 0.951226 0.967157 0.982402 0.997255 1.01128 1.02358 1.03315 1.03924 1.04162 1.04064 1.03708 1.03195 1.0262 1.02058 1.01556 1.01137 1.00806 1.00556 1.00374 1.00245 1.00157 1.00099 1.00061 1.00037 1.00022 1.00013 1.00007 1.00004 1.00002 1.00001 1.00001 1 1 1 1 1 1 1 1 1 1.01015 0.998156 0.985428 0.971993 0.957196 0.940053 0.919569 0.894398 0.862647 0.822591 0.773691 0.716899 0.6543 0.588786 0.523951 0.463864 0.412332 0.372036 0.34419 0.328979 0.326352 0.336451 0.359382 0.394862 0.442134 0.499729 0.56481 0.632944 0.699085 0.759101 0.810669 0.853136 0.886991 0.91351 0.934514 0.952013 0.967752 0.982839 0.997566 1.01149 1.02372 1.03321 1.03924 1.04156 1.04052 1.03694 1.0318 1.02606 1.02045 1.01546 1.0113 1.00802 1.00553 1.00373 1.00245 1.00158 1.001 1.00062 1.00038 1.00023 1.00014 1.00008 1.00005 1.00003 1.00002 1.00001 1.00001 1 1 1 1 1 1 1 1 1.01084 0.99898 0.986316 0.972947 0.958402 0.941646 0.921535 0.896865 0.86608 0.8275 0.780274 0.725089 0.664061 0.600228 0.537185 0.478814 0.428746 0.389593 0.362553 0.3478 0.345311 0.355287 0.377865 0.412679 0.45883 0.5148 0.577873 0.643841 0.70786 0.76594 0.81585 0.856987 0.889846 0.915658 0.936169 0.953318 0.968802 0.983693 0.998261 1.01205 1.02412 1.03346 1.03933 1.04151 1.04037 1.03671 1.03154 1.0258 1.02023 1.01527 1.01116 1.00792 1.00547 1.00369 1.00243 1.00157 1.001 1.00063 1.00039 1.00024 1.00015 1.00009 1.00005 1.00003 1.00002 1.00001 1.00001 1.00001 1 1 1 1 1 1 1 1.01183 1.00013 0.987623 0.97437 0.960074 0.943836 0.924398 0.900521 0.870917 0.83418 0.789344 0.73671 0.678128 0.616603 0.555768 0.499488 0.451302 0.413695 0.387745 0.373572 0.371208 0.380959 0.402996 0.436886 0.481577 0.535467 0.595933 0.659011 0.720125 0.775506 0.823084 0.862346 0.893794 0.918604 0.938432 0.955123 0.970294 0.984957 0.999333 1.01293 1.02479 1.0339 1.03952 1.04148 1.04016 1.0364 1.03118 1.02544 1.0199 1.01501 1.01095 1.00777 1.00537 1.00362 1.0024 1.00156 1.001 1.00063 1.00039 1.00025 1.00015 1.0001 1.00006 1.00004 1.00002 1.00002 1.00001 1.00001 1 1 1 1 1 1 1 1.01312 1.0016 0.989306 0.976261 0.962236 0.946545 0.927997 0.905263 0.877127 0.842468 0.800446 0.751122 0.695929 0.637586 0.579649 0.526013 0.480173 0.444444 0.41973 0.406135 0.403819 0.413208 0.434496 0.467156 0.509994 0.561309 0.618551 0.678016 0.735474 0.787462 0.832116 0.869028 0.89871 0.922269 0.941255 0.957398 0.972211 0.986619 1.00077 1.01413 1.02571 1.0345 1.03979 1.04145 1.0399 1.03598 1.0307 1.02497 1.01948 1.01466 1.01068 1.00757 1.00523 1.00353 1.00234 1.00153 1.00098 1.00063 1.0004 1.00025 1.00016 1.0001 1.00007 1.00004 1.00003 1.00002 1.00001 1.00001 1.00001 1 1 1 1 1 1 1.01472 1.00338 0.991325 0.978574 0.964897 0.949759 0.932178 0.910858 0.884543 0.852231 0.813276 0.767701 0.716611 0.662306 0.608118 0.557867 0.514919 0.481347 0.457921 0.444856 0.442512 0.451421 0.471746 0.502845 0.543391 0.591613 0.645037 0.700233 0.753369 0.801367 0.842612 0.8768 0.904438 0.926555 0.944579 0.96011 0.974533 0.988664 1.00257 1.01563 1.02686 1.03524 1.04012 1.04141 1.03957 1.03547 1.03011 1.02439 1.01897 1.01424 1.01035 1.00733 1.00506 1.00342 1.00227 1.00149 1.00096 1.00062 1.00039 1.00025 1.00016 1.00011 1.00007 1.00005 1.00003 1.00002 1.00001 1.00001 1.00001 1 1 1 1 1 1 1.0166 1.0055 0.993676 0.981245 0.968004 0.953476 0.936868 0.917062 0.89284 0.8632 0.827566 0.785992 0.739389 0.689717 0.640024 0.593894 0.55436 0.52318 0.50111 0.488609 0.48625 0.494603 0.513756 0.542949 0.580756 0.625374 0.674448 0.724841 0.773146 0.816705 0.854186 0.885393 0.910806 0.931357 0.948346 0.963228 0.977245 0.991082 1.0047 1.01742 1.02821 1.0361 1.04048 1.04132 1.03915 1.03485 1.02941 1.02371 1.01836 1.01374 1.00997 1.00705 1.00487 1.00329 1.00219 1.00144 1.00094 1.00061 1.00039 1.00025 1.00016 1.00011 1.00007 1.00005 1.00003 1.00002 1.00002 1.00001 1.00001 1 1 1 1 1 1 1.01872 1.00792 0.996364 0.984251 0.971477 0.957628 0.94202 0.923724 0.901682 0.874931 0.842875 0.805518 0.763625 0.718932 0.674223 0.632709 0.596918 0.568304 0.547741 0.535966 0.533689 0.541442 0.559211 0.586157 0.620809 0.661389 0.705689 0.750895 0.794047 0.832911 0.86644 0.894534 0.917636 0.936569 0.952495 0.966719 0.980327 0.993857 1.00715 1.01946 1.02974 1.03705 1.04085 1.04118 1.03863 1.03411 1.0286 1.02292 1.01768 1.01318 1.00954 1.00673 1.00464 1.00314 1.0021 1.00138 1.0009 1.00059 1.00038 1.00025 1.00017 1.00011 1.00007 1.00005 1.00003 1.00002 1.00002 1.00001 1.00001 1 1 1 1 1 1 1.02104 1.01062 0.999373 0.987584 0.975265 0.962113 0.947536 0.930742 0.910845 0.887004 0.85863 0.82563 0.788607 0.749116 0.709665 0.672958 0.640991 0.615058 0.596215 0.585389 0.583304 0.590403 0.606588 0.630979 0.662132 0.698355 0.737622 0.777445 0.815314 0.849423 0.878983 0.903965 0.924764 0.942092 0.956974 0.970556 0.98376 0.996967 1.0099 1.02173 1.03141 1.03804 1.04117 1.04094 1.03799 1.03324 1.02766 1.02204 1.01691 1.01256 1.00906 1.00638 1.0044 1.00298 1.00199 1.00132 1.00087 1.00057 1.00037 1.00025 1.00017 1.00011 1.00008 1.00005 1.00004 1.00002 1.00002 1.00001 1.00001 1.00001 1 1 1 1 1 1.02355 1.01354 1.00266 0.991235 0.979356 0.966858 0.953285 0.937966 0.920149 0.899116 0.874326 0.845627 0.813504 0.779315 0.745177 0.713214 0.685019 0.66187 0.644968 0.635272 0.633438 0.639822 0.654264 0.675882 0.703309 0.735003 0.769156 0.803606 0.836268 0.865738 0.891465 0.913462 0.932053 0.947848 0.961739 0.974715 0.987526 1.00039 1.01291 1.02418 1.03317 1.03903 1.04143 1.04058 1.03721 1.03224 1.02661 1.02106 1.01607 1.01188 1.00855 1.00601 1.00414 1.00281 1.00188 1.00125 1.00082 1.00055 1.00036 1.00024 1.00016 1.00011 1.00008 1.00005 1.00004 1.00003 1.00002 1.00001 1.00001 1.00001 1 1 1 1 1 1.02619 1.01667 1.0062 0.995161 0.983727 0.971837 0.959182 0.945243 0.929393 0.911002 0.889579 0.864973 0.837599 0.808563 0.779498 0.752034 0.72753 0.707283 0.69249 0.684029 0.682458 0.68807 0.700671 0.719409 0.743038 0.770206 0.799345 0.828621 0.856344 0.881459 0.903612 0.922841 0.939394 0.953776 0.966757 0.979176 0.991608 1.00411 1.01614 1.02676 1.03495 1.03996 1.04156 1.04007 1.03627 1.0311 1.02545 1.02 1.01517 1.01117 1.00801 1.00562 1.00387 1.00262 1.00176 1.00117 1.00078 1.00052 1.00035 1.00024 1.00016 1.00011 1.00008 1.00005 1.00004 1.00003 1.00002 1.00001 1.00001 1.00001 1 1 1 1 1 1.02891 1.01995 1.00995 0.999329 0.988341 0.977021 0.96519 0.95248 0.938399 0.922408 0.904076 0.88328 0.860327 0.836024 0.811588 0.788316 0.767417 0.750107 0.737474 0.73026 0.728935 0.733738 0.744459 0.760319 0.780239 0.803064 0.827463 0.851922 0.875119 0.896299 0.915241 0.931985 0.946712 0.959835 0.972009 0.983924 0.995982 1.00807 1.01954 1.02941 1.0367 1.04078 1.04152 1.03938 1.03517 1.02982 1.02418 1.01886 1.01422 1.01042 1.00745 1.00521 1.00358 1.00243 1.00163 1.00109 1.00073 1.00049 1.00033 1.00023 1.00016 1.00011 1.00008 1.00005 1.00004 1.00003 1.00002 1.00001 1.00001 1.00001 1 1 1 1 1 1.03164 1.02334 1.01387 1.0037 0.993165 0.982381 0.97128 0.95963 0.947071 0.933178 0.9176 0.90022 0.881198 0.861084 0.840811 0.821426 0.803964 0.789486 0.778915 0.772867 0.771738 0.775718 0.784594 0.79769 0.814123 0.832943 0.853032 0.873161 0.892348 0.910088 0.926244 0.940832 0.953973 0.966004 0.977478 0.988939 1.00062 1.01224 1.02305 1.03206 1.03835 1.04141 1.04128 1.03849 1.03389 1.02841 1.02281 1.01766 1.01323 1.00965 1.00687 1.0048 1.0033 1.00224 1.00151 1.00102 1.00068 1.00046 1.00032 1.00022 1.00015 1.00011 1.00008 1.00005 1.00004 1.00003 1.00002 1.00001 1.00001 1.00001 1 1 1 1 1 ) ; boundaryField { emptyPatches_empt { type empty; } top_cyc { type cyclic; } bottom_cyc { type cyclic; } inlet_cyc { type cyclic; } outlet_cyc { type cyclic; } procBoundary3to1 { type processor; value nonuniform List<scalar> 75 ( 1.03432 1.02676 1.0179 1.00825 0.998174 0.987889 0.97743 0.966679 0.955395 0.943272 0.930044 0.915569 0.899899 0.883424 0.866863 0.851009 0.836692 0.824795 0.816084 0.811059 0.810058 0.813241 0.820398 0.830961 0.844246 0.859508 0.875819 0.892204 0.907963 0.92279 0.936601 0.949369 0.961166 0.972276 0.983154 0.9942 1.00547 1.01655 1.02659 1.03462 1.03981 1.04181 1.04078 1.03736 1.03243 1.02686 1.02136 1.0164 1.01221 1.00886 1.00629 1.00438 1.00301 1.00205 1.00139 1.00094 1.00064 1.00043 1.0003 1.00021 1.00015 1.0001 1.00007 1.00005 1.00004 1.00003 1.00002 1.00001 1.00001 1.00001 1 1 1 1 1 ) ; } procBoundary3to1throughtop_cyc { type processorCyclic; value nonuniform List<scalar> 75 ( 0.999997 0.999996 0.999996 0.999994 0.999994 0.999993 0.999992 0.999992 0.999992 0.999991 0.999991 0.999991 0.999992 0.999992 0.999993 0.999994 0.999996 0.999997 0.999998 1 1 1 1 1.00001 1.00001 1.00001 1.00001 1.00001 1.00001 1.00001 1.00001 1.00001 1.00001 1.00001 1.00001 1.00001 1.00001 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ) ; } procBoundary3to2 { type processor; value nonuniform List<scalar> 75 ( 0.999997 0.999995 0.999994 0.999992 0.99999 0.999988 0.999985 0.999982 0.999978 0.999974 0.99997 0.999967 0.999966 0.999967 0.999973 0.999985 1.00001 1.00005 1.00011 1.0002 1.00033 1.00051 1.00077 1.00112 1.00159 1.0022 1.00299 1.00399 1.00524 1.00678 1.00864 1.01084 1.01341 1.01632 1.01955 1.02303 1.02665 1.03028 1.03376 1.03692 1.03959 1.04168 1.04309 1.04382 1.0439 1.0434 1.0424 1.04101 1.03932 1.03743 1.03542 1.03336 1.03132 1.02936 1.02752 1.02585 1.02437 1.02312 1.02212 1.02139 1.02091 1.0207 1.02075 1.02106 1.02164 1.02251 1.02364 1.025 1.02656 1.0283 1.03018 1.03217 1.03422 1.03625 1.0382 ) ; } procBoundary3to2throughoutlet_cyc { type processorCyclic; value nonuniform List<scalar> 75 ( 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ) ; } } // ************************************************************************* //
[ "tdg@debian" ]
tdg@debian
0298c4a2daec1dadf7423d7f217150f6e61c5633
a5651c5032b9de35c78f63b38324fe7392250d14
/CodeChef/Jan18/January_Challenge/STRMRG.cpp
9c6971317ab96bd71964224ebe7667c9d99ff96c
[]
no_license
bkhanale/Competitive-Programming
7012db1c7f6fd0950f14a865c175a569534bfb69
074779f8c513405b8c5ddd5f750592083eaf7548
refs/heads/master
2021-01-01T15:21:48.213987
2019-02-07T08:00:47
2019-02-07T08:00:47
97,603,092
2
0
null
null
null
null
UTF-8
C++
false
false
837
cpp
#include <bits/stdc++.h> using namespace std; typedef long long int ll; string a, b, res1, res2; ll n, m, t; ll lcs() { ll x = res1.length(), y = res2.length(); ll LCS[x+1][y+1]; for(ll i = 0; i <= x; i++) { for(ll j = 0; j <= y; j++) { if(i == 0 || j == 0) { LCS[i][j] = 0; } else if(res1[i-1] == res2[j-1]) { LCS[i][j] = 1 + LCS[i-1][j-1]; } else { LCS[i][j] = max(LCS[i-1][j], LCS[i][j-1]); } } } return (x + y - LCS[x][y]); } int main() { //freopen("input.txt", "r", stdin); cin >> t; while(t--) { cin >> n >> m; cin >> a >> b; res1 = ""; res2 = ""; res1 += a[0]; res2 += b[0]; for(ll i = 1; i < n; i++) { if(a[i] != a[i-1]) { res1 += a[i]; } } for(ll i = 1; i < n; i++) { if(b[i] != b[i-1]) { res2 += b[i]; } } cout << lcs() << endl; } return 0; }
[ "bkhanale@gmail.com" ]
bkhanale@gmail.com
20a2264b0087cdb05c751c4569871a3dbd38b6f1
99c1620408b85205d1bc0ec7751d1994d37368c7
/include/scene.hpp
7441e6018f101d4df84eb96ebe7471a8d6ca2d8c
[ "MIT" ]
permissive
MatheusFaria/cuda_path_tracer
24dc0148b9689a0649e771eb906a430623d69422
9eba60255ea8b7a1099c3170a5cc1b72c9079ce3
refs/heads/master
2021-01-12T08:47:41.841544
2016-12-17T01:11:12
2016-12-17T01:11:12
76,696,321
0
0
null
null
null
null
UTF-8
C++
false
false
487
hpp
#ifndef __SCENE_HPP__ #define __SCENE_HPP__ #include <vector> #include "bvh.hpp" #include "camera.hpp" #include "material.hpp" #include "cuda_definitions.h" class Scene { public: HOST_ONLY Scene( const Camera& _camera=Camera(), const BVH& _bvh=BVH(), const std::vector<Material>& _materials=std::vector<Material>() ) : camera(_camera), bvh(_bvh), materials(_materials){} Camera camera; BVH bvh; std::vector<Material> materials; }; #endif
[ "matheus.sousa.faria@gmail.com" ]
matheus.sousa.faria@gmail.com
9388573bc97c775acd2fb1685b1d99d6d72794ad
7eefa6a1cbfd03894b3115850581cd149f379541
/inc/XPMPRemote.h
b375e5683c48539725593ed7562dc9e028be838e
[ "MIT" ]
permissive
TwinFan/XPMP2
8cf94b4d5ac6b3814daa861e151bb6ca58054913
5bfaa379c305032645f0c41d474b7fbcaf50782f
refs/heads/master
2023-07-09T04:01:21.051029
2023-01-07T22:21:53
2023-01-07T22:21:53
238,804,152
24
19
NOASSERTION
2023-01-07T22:23:50
2020-02-06T23:15:42
C++
UTF-8
C++
false
false
23,631
h
/// @file XPMPRemote.h /// @brief Semi-public remote network functionality for master/client operations /// @details Technically, this is public functionality from a library /// point of view. But it is intended for the "XPMP Remote Client" only, /// not for a standard plugin.\n /// Network messages are packed for space efficiency, but also to avoid /// layout differences between compilers/platforms. /// However, manual layout tries to do reasonable alignment of numeric values /// and 8-byte-alignment of each structure, so that arrays of structures /// also align well. /// @author Birger Hoppe /// @copyright (c) 2020 Birger Hoppe /// @copyright 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:\n /// The above copyright notice and this permission notice shall be included in /// all copies or substantial portions of the Software.\n /// 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. #ifndef _XPMPRemote_h_ #define _XPMPRemote_h_ #include <cassert> #include <cstdint> #include <cstring> #include <cmath> #include <array> #include <algorithm> namespace XPMP2 { /// The signature of the XPMP2 Remote Client constexpr const char* REMOTE_SIGNATURE = "TwinFan.plugin.XPMP2.Remote"; // // MARK: Global Helpers // /// @brief Produces a reproducible(!) hash value for strings /// @details Result is the same if the same string is provided, across platform /// and across executions, unlike what std::hash requires.\n /// It is implemented as a 16-bit version of the PJW hash: /// @see https://en.wikipedia.org/wiki/PJW_hash_function std::uint16_t PJWHash16 (const char *s); /// @brief Find a model by package name hash and short id /// @details This approach is used by the remote client to safe network bandwith. /// If an exact match with `pkgHash` _and_ `shortID` is not found, /// then a model matching the short id alone is returned if available. CSLModel* CSLModelByPkgShortId (std::uint16_t _pkgHash, const std::string& _shortId); /// @brief Clamps `v` between `lo` and `hi`: `lo` if `v` < `lo`, `hi` if `hi` < `v`, otherwise `v` /// @see C++17, https://en.cppreference.com/w/cpp/algorithm/clamp /// @note Reimplemented here because Docker clang environment doesn't include it template<class T> constexpr const T& clamp( const T& v, const T& lo, const T& hi ) { assert( !(hi < lo) ); return (v < lo) ? lo : (hi < v) ? hi : v; } // // MARK: Network Data Definitions // /// Message type enum RemoteMsgTy : std::uint8_t { RMT_MSG_INTEREST_BEACON = 0, ///< beacon sent by a remote client to signal interest in data RMT_MSG_SEND, ///< internal indicator telling to send out all pending messages RMT_MSG_SETTINGS, ///< a sender's id and its settings RMT_MSG_AC_DETAILED, ///< aircraft full details, needed to create new a/c objects and to re-synch all remote data RMT_MSG_AC_POS_UPDATE, ///< aircraft differences only RMT_MSG_AC_ANIM, ///< aircraft animation values (dataRef values) only RMT_MSG_AC_REMOVE, ///< aircraft is removed }; /// Definition for how to map dataRef values to (u)int8, ie. to an integer range of 8 bits struct RemoteDataRefPackTy { float minV = 0.0f; ///< minimum transferred value float range = 0.0f; ///< range of transferred value = maxV - minV /// Constructor sets minimum value and range RemoteDataRefPackTy (float _min, float _max) : minV(_min), range(_max - _min) { assert(range != 0.0f); } /// pack afloat value to integer std::uint8_t pack (float f) const { return std::uint8_t(clamp<float>(f-minV,0.0f,range) * UINT8_MAX / range); } /// unpack an integer value to float float unpack (std::uint8_t i) const { return minV + range*float(i)/255.0f; } }; /// An array holding all dataRef packing definitions extern const std::array<RemoteDataRefPackTy,V_COUNT> REMOTE_DR_DEF; // // MARK: Message Header (Base) // // To ensure best network capacity usage as well as identical alignment across platform we enforce tightly packed structures. // The approach is very different between Visual C++ and clang / gcc, though: #ifdef _MSC_VER // Visual C++ #pragma pack(push,1) // set packing once (ie. not per struct) #define PACKED #elif defined(__clang__) || defined(__GNUC__) // Clang (Mac XCode etc) or GNU (Linux) #define PACKED __attribute__ ((__packed__)) #else #error Unhandled Compiler! #endif /// Message header, identical for all message types struct RemoteMsgBaseTy { RemoteMsgTy msgTy : 4; ///< message type std::uint8_t msgVer : 4; ///< message version bool bLocalSender : 1; ///< is the sender "local", ie. on same machine? std::uint8_t filler1 : 7; ///< yet unsed std::uint16_t pluginId = 0; ///< lower 16 bit of the sending plugin's id std::uint32_t filler2 = 0; ///< yet unused, fills up to size 8 /// Constructor just sets the values RemoteMsgBaseTy (RemoteMsgTy _ty, std::uint8_t _ver); } PACKED; // // MARK: Beacon of Interest // /// Interest Beacon message version number constexpr std::uint8_t RMT_VER_BEACON = 0; /// "Beacon of Interest", ie. some message on the multicast just to wake up sender struct RemoteMsgBeaconTy : public RemoteMsgBaseTy { // don't need additional data fields /// Constructor sets appropriate message type RemoteMsgBeaconTy(); } PACKED; // // MARK: Settings // /// How often to send settings? [s] constexpr int REMOTE_SEND_SETTINGS_INTVL = 20; /// Setttings message version number constexpr std::uint8_t RMT_VER_SETTINGS = 0; /// Settings message, identifying a sending plugin, regularly providing its settings struct RemoteMsgSettingsTy : public RemoteMsgBaseTy { char name[16]; ///< plugin's name, not necessarily zero-terminated if using full 12 chars float maxLabelDist; ///< Maximum distance for drawing labels? [m] char defaultIcao[4]; ///< Default ICAO aircraft type designator if no match can be found char carIcaoType[4]; ///< Ground vehicle type identifier std::uint8_t logLvl :3; ///< logging level bool bLogMdlMatch :1; ///< Debug model matching? bool bObjReplDataRefs :1; ///< Replace dataRefs in `.obj` files on load? bool bObjReplTextures :1; ///< Replace textures in `.obj` files on load if needed? bool bLabelCutOffAtVisibility :1; ///< Cut off labels at XP's reported visibility mit? bool bMapEnabled :1; ///< Do we feed X-Plane's maps with our aircraft positions? bool bMapLabels :1; ///< Do we show labels with the aircraft icons? bool bHaveTCASControl :1; ///< Do we have AI/TCAS control? std::uint16_t filler; ///< yet unused, fills size up for a multiple of 8 /// Constructor sets most values to zero RemoteMsgSettingsTy (); } PACKED; // // MARK: A/C Details // /// A/C detail message version number constexpr std::uint8_t RMT_VER_AC_DETAIL = 3; constexpr std::uint8_t RMT_VER_AC_DETAIL_2 = 2; constexpr std::uint8_t RMT_VER_AC_DETAIL_1 = 1; constexpr std::uint8_t RMT_VER_AC_DETAIL_0 = 0; /// A/C details, packed into an array message struct RemoteAcDetailTy { std::uint32_t modeS_id; ///< plane's unique id at the sender side (might differ remotely in case of duplicates) char icaoType[4]; ///< icao a/c type char icaoOp[4]; ///< icao airline code char sShortId[20]; ///< CSL model's short id std::uint16_t pkgHash; ///< hash value of package name char label[23]; ///< label std::uint8_t labelCol[3]; ///< label color (RGB) float alt_ft; ///< [ft] current altitude // ^ the above has 64 bytes, so that these doubles start on an 8-byte bounday: double lat; ///< latitude double lon; ///< longitude std::int16_t pitch; ///< [0.01°] pitch/100 std::uint16_t heading; ///< [0.01°] heading/100 std::int16_t roll; ///< [0.01°] roll/100 std::int16_t aiPrio; ///< priority for display in limited TCAS target slots, `-1` indicates "no TCAS display" std::uint16_t dTime; ///< [0.0001s] time difference to previous position in 1/10000s bool bValid : 1; ///< is this object valid? (Will be reset in case of exceptions) bool bVisible : 1; ///< Shall this plane be drawn at the moment? bool bRender : 1; ///< Shall the CSL model be drawn in 3D world? bool bDrawLabel : 1; ///< Draw the label of the aircraft? (new with v2) bool bOnGrnd : 1; ///< Is the aircraft on the ground? std::uint8_t contrailNum : 3; ///< number of contrails requested // selectively taken from XPMPInfoTexts_t and packed: char tailNum[10]; ///< registration, tail number char manufacturer[40]; ///< a/c manufacturer, human readable char model[40]; ///< a/c model, human readable char airline[40]; ///< airline, human readable char flightNum [10]; ///< flight number char aptFrom [5]; ///< Origin airport (ICAO) char aptTo [5]; ///< Destination airport (ICAO) std::uint8_t contrailDist_m; ///< distance between several contrails and to the aircraft's centerline, in meter std::uint8_t contrailLifeTime; ///< this aircraft's contrail's life time std::uint8_t filler[3]; ///< yet unused ///< Array of _packed_ dataRef values for CSL model animation std::uint8_t v[XPMP2::V_COUNT]; // 42 /// Default Constructor sets all to zero RemoteAcDetailTy (); /// A/c copy constructor fills from passed-in XPMP2::Aircraft object RemoteAcDetailTy (const Aircraft& _ac, double _lat, double _lon, float _alt_ft, std::uint16_t _dTime); /// Copies values from passed-in XPMP2::Aircraft object void CopyFrom (const Aircraft& _ac, double _lat, double _lon, float _alt_ft, std::uint16_t _dTime); void SetLabelCol (const float _col[4]); ///< set the label color from a float array (4th number, alpha, is always considered 1.0) void GetLabelCol (float _col[4]) const; ///< writes color out into a float array void SetPitch (float _p) { pitch = std::int16_t(_p*100.0f); } ///< sets pitch from float float GetPitch () const { return float(pitch) / 100.0f; } ///< returns float pitch /// @brief Sets heading from float /// @note Only works well for `0 <= _h < 360` void SetHeading (float _h); float GetHeading () const { return float(heading) / 100.0f; } ///< returns float heading void SetRoll (float _r) { roll = std::int16_t(std::lround(_r*100.0f)); } ///< sets pitch from float float GetRoll () const { return float(roll) / 100.0f; } ///< returns float pitch static constexpr size_t msgSize () { return sizeof(RemoteAcDetailTy); } ///< message size } PACKED; /// A/C detail message, has an inherited header plus an array of XPMP2::RemoteAcDetailTy elements struct RemoteMsgAcDetailTy : public RemoteMsgBaseTy { RemoteAcDetailTy arr[1]; ///< basis for the array of actual details /// Constructor sets expected message type and version RemoteMsgAcDetailTy () : RemoteMsgBaseTy(RMT_MSG_AC_DETAILED, RMT_VER_AC_DETAIL) {} /// Convert msg len to number of arr elements static constexpr size_t NumElem (size_t _msgLen) { return (_msgLen - sizeof(RemoteMsgBaseTy)) / sizeof(RemoteAcDetailTy); } } PACKED; // // MARK: A/C Position Update // /// A/C Position update message version number constexpr std::uint8_t RMT_VER_AC_POS_UPDATE = 0; /// What is the maximum difference a RemoteAcPosUpdateTy can hold? constexpr double REMOTE_DEGREE_RES = 0.00000001; ///< resolution of degree updates constexpr double REMOTE_MAX_DIFF_DEGREE = REMOTE_DEGREE_RES * INT16_MAX;///< maximum degree difference that can be represented in a pos update msg constexpr double REMOTE_ALT_FT_RES = 0.01; ///< resolution of altitude[ft] updates constexpr double REMOTE_MAX_DIFF_ALT_FT = REMOTE_ALT_FT_RES * INT16_MAX;///< maximum altitude[ft] difference that can be represented in a pos update msg constexpr float REMOTE_TIME_RES = 0.0001f; ///< resolution of time difference constexpr float REMOTE_MAX_DIFF_TIME = REMOTE_TIME_RES * UINT16_MAX; ///< maximum time difference thatn can be represented in a pos update msg /// @brief A/C Position updates based on global coordinates /// @details for space efficiency only deltas to last msg are given in /// 0.0000001 degree lat/lon (roughly 1 centimeter resolution) and /// 0.01 ft altitude struct RemoteAcPosUpdateTy { std::uint32_t modeS_id; ///< plane's unique id at the sender side (might differ remotely in case of duplicates) std::int16_t dLat; ///< [0.0000001 degrees] latitude position difference std::int16_t dLon; ///< [0.0000001 degrees] longitude position difference std::int16_t dAlt_ft; ///< [0.01 ft] altitude difference std::uint16_t dTime; ///< [0.0001s] time difference to previous position in 1/10000s std::int16_t pitch; ///< [0.01 degree] pitch/100 std::uint16_t heading; ///< [0.01 degree] heading/100 std::int16_t roll; ///< [0.01 degree] roll/100 std::uint16_t filler1; ///< not yet used (for 4-byte alignment) /// Default Constructor sets all 0 RemoteAcPosUpdateTy () { std::memset(this,0,sizeof(*this)); } /// Constructor sets all values RemoteAcPosUpdateTy (XPMPPlaneID _modeS_id, std::int16_t _dLat, std::int16_t _dLon, std::int16_t _dAlt_ft, std::uint16_t _dTime, float _pitch, float _heading, float _roll); void SetPitch (float _p) { pitch = std::int16_t(_p*100.0f); } ///< sets pitch from float float GetPitch () const { return float(pitch) / 100.0f; } ///< returns float pitch /// @brief Sets heading from float /// @note Only works well for `0 <= _h < 360` void SetHeading (float _h); float GetHeading () const { return float(heading) / 100.0f; } ///< returns float heading void SetRoll (float _r) { roll = std::int16_t(std::lround(_r*100.0f)); }///< sets pitch from float float GetRoll () const { return float(roll) / 100.0f; } ///< returns float pitch static constexpr size_t msgSize () { return sizeof(RemoteAcPosUpdateTy); } ///< message size } PACKED; /// A/C detail message, has an inherited header plus an array of XPMP2::RemoteAcDetailTy elements struct RemoteMsgAcPosUpdateTy : public RemoteMsgBaseTy { RemoteAcPosUpdateTy arr[1]; ///< basis for the array of actual position updates /// Constructor sets expected message type and version RemoteMsgAcPosUpdateTy () : RemoteMsgBaseTy(RMT_MSG_AC_POS_UPDATE, RMT_VER_AC_POS_UPDATE) {} /// Convert msg len to number of arr elements static constexpr size_t NumElem (size_t _msgLen) { return (_msgLen - sizeof(RemoteMsgBaseTy)) / sizeof(RemoteAcPosUpdateTy); } } PACKED; // // MARK: A/C animation dataRefs // /// A/C Position update message version number constexpr std::uint8_t RMT_VER_AC_ANIM = 0; /// @brief A/C animation dataRef changes /// @details This structure has variable length depending on the number of /// actual dataRef values to carry. And several of these variable /// length structures are added into one variable length network message. /// @note Structure must stay aligned with XPMP2::RmtDataAcAnimTy struct RemoteAcAnimTy { std::uint32_t modeS_id = 0; ///< plane's unique id at the sender side (might differ remotely in case of duplicates) std::uint8_t numVals = 0; ///< number of dataRef values in the following array std::uint8_t filler = 0; ///< not yet used /// dataRef animation types and value struct DataRefValTy { DR_VALS idx; ///< index into XPMP2::Aircraft::v std::uint8_t v; ///< dataRef animation value } v[1]; ///< array of dataRef animation types and value /// Constructor RemoteAcAnimTy (XPMPPlaneID _id) : modeS_id(_id) { v[0].idx = DR_VALS(0); v[0].v = 0; } /// message size assuming `num` array elements static constexpr size_t msgSize (std::uint8_t num) { return sizeof(RemoteAcAnimTy) + (num-1) * sizeof(DataRefValTy); } /// current message size size_t msgSize() const { return msgSize(numVals); } } PACKED; /// A/C animation dataRef message, has an inherited header plus an array of _variable sized_ XPMP2::RemoteAcAnimTy elements struct RemoteMsgAcAnimTy : public RemoteMsgBaseTy { RemoteAcAnimTy animData; ///< message data starts here but extend beyond this point! /// Constructor sets expected message type and version RemoteMsgAcAnimTy () : RemoteMsgBaseTy(RMT_MSG_AC_ANIM, RMT_VER_AC_ANIM), animData(0) {} /// Returns a pointer to the first/next animation data element in the message const RemoteAcAnimTy* next (size_t _msgLen, const RemoteAcAnimTy* pCurr = nullptr) const; } PACKED; // // MARK: A/C Removal // /// A/C removal message version number constexpr std::uint8_t RMT_VER_AC_REMOVE = 0; /// A/C Removal only includes the plane id, structure required for msgSize() function struct RemoteAcRemoveTy { std::uint32_t modeS_id; ///< plane's unique id at the sender side (might differ remotely in case of duplicates) /// Constructor sets plane id RemoteAcRemoveTy (XPMPPlaneID _id = 0) : modeS_id(_id) {} static constexpr size_t msgSize () { return sizeof(RemoteAcRemoveTy); } ///< message size } PACKED; /// A/C removal message, an array of plane ids struct RemoteMsgAcRemoveTy : public RemoteMsgBaseTy { RemoteAcRemoveTy arr[1]; ///< plane's unique id at the sender side (might differ remotely in case of duplicates) /// Constructor sets expected message type and version RemoteMsgAcRemoveTy () : RemoteMsgBaseTy(RMT_MSG_AC_REMOVE, RMT_VER_AC_REMOVE) {} /// Convert msg len to number of arr elements static constexpr size_t NumElem (size_t _msgLen) { return (_msgLen - sizeof(RemoteMsgBaseTy)) / sizeof(arr[0]); } } PACKED; #ifdef _MSC_VER // Visual C++ #pragma pack(pop) // reseting packing #endif // A few static validations just to make sure that no compiler fiddles with my network message layout. static_assert(sizeof(RemoteMsgBaseTy) == 8, "RemoteMsgBaseTy doesn't have expected size"); static_assert(sizeof(RemoteMsgSettingsTy) == 40, "RemoteMsgSettingsTy doesn't have expected size"); static_assert(sizeof(RemoteAcDetailTy) == 246+42, "RemoteAcDetailTy doesn't have expected size"); static_assert(sizeof(RemoteMsgAcDetailTy) == 254+42, "RemoteMsgAcDetailTy doesn't have expected size"); static_assert(sizeof(RemoteAcPosUpdateTy) == 20, "RemoteAcPosUpdateTy doesn't have expected size"); static_assert(sizeof(RemoteMsgAcPosUpdateTy)== 28, "RemoteMsgAcPosUpdateTy doesn't have expected size"); static_assert(sizeof(RemoteAcAnimTy) == 8, "RemoteAcAnimTy doesn't have expected size"); static_assert(RemoteAcAnimTy::msgSize(V_COUNT) == 90, "RemoteAcAnimTy for V_COUNT dataRefs doesn't have expected size"); static_assert(sizeof(RemoteMsgAcAnimTy) == 16, "RemoteMsgAcAnimTy doesn't have expected size"); static_assert(sizeof(RemoteMsgAcRemoveTy) == 12, "RemoteMsgAcRemoveTy doesn't have expected size"); // // MARK: Miscellaneous // /// Function prototypes for callback functions to handle the received messages struct RemoteCBFctTy { /// Called in flight loop before processing first aircraft void (*pfBeforeFirstAc)() = nullptr; /// Called in flight loop after processing last aircraft void (*pfAfterLastAc)() = nullptr; /// Callback for processing Settings messages void (*pfMsgSettings) (const std::uint32_t from[4], const std::string& sFrom, const RemoteMsgSettingsTy&) = nullptr; /// Callback for processing A/C Details messages void (*pfMsgACDetails) (const std::uint32_t from[4], size_t msgLen, const RemoteMsgAcDetailTy&) = nullptr; /// Callback for processing A/C Details messages void (*pfMsgACPosUpdate) (const std::uint32_t from[4], size_t msgLen, const RemoteMsgAcPosUpdateTy&) = nullptr; /// Callback for processing A/C Animation dataRef messages void (*pfMsgACAnim) (const std::uint32_t from[4], size_t msgLen, const RemoteMsgAcAnimTy&) = nullptr; /// Callback for processing A/C Removal messages void (*pfMsgACRemove) (const std::uint32_t from[4], size_t msgLen, const RemoteMsgAcRemoveTy&) = nullptr; }; /// State of remote communcations enum RemoteStatusTy : unsigned { REMOTE_OFF = 0, ///< no remote connectivtiy, not listening, not sending REMOTE_SEND_WAITING, ///< listening for a request to send data, but not actively sending data REMOTE_SENDING, ///< actively sending aircraft data out to the network REMOTE_RECV_WAITING, ///< waiting to receive data, periodically sending a token of interest REMOTE_RECEIVING, ///< actively receiving data }; /// Returns the current Remote status RemoteStatusTy RemoteGetStatus(); /// Starts the listener, will call provided callback functions with received messages void RemoteRecvStart (const RemoteCBFctTy& _rmtCBFcts); /// Stops the receiver void RemoteRecvStop (); } #endif
[ "twinfan@sonux.net" ]
twinfan@sonux.net
3ed276b8472ddf11a8acd4746a08e1afa861cfb2
0466f22155da48d446f27a7de2c3023c85284f14
/src/test/pmt_tests.cpp
e0395597bf05e1339f85cac76f332fc7166c19a7
[ "MIT" ]
permissive
jesusleon1995/dashdiff
fe660564ccf31a32cfd2851abb527a1fb7eb314f
83347b555ab7f6212bc40bb47f9afee7823be090
refs/heads/master
2020-03-21T16:58:34.574472
2018-06-27T00:45:18
2018-06-27T00:45:18
138,805,516
0
0
null
null
null
null
UTF-8
C++
false
false
4,511
cpp
// Copyright (c) 2012-2015 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "consensus/merkle.h" #include "merkleblock.h" #include "serialize.h" #include "streams.h" #include "uint256.h" #include "arith_uint256.h" #include "version.h" #include "random.h" #include "test/test_dashdiff.h" #include <vector> #include <boost/assign/list_of.hpp> #include <boost/test/unit_test.hpp> using namespace std; class CPartialMerkleTreeTester : public CPartialMerkleTree { public: // flip one bit in one of the hashes - this should break the authentication void Damage() { unsigned int n = insecure_rand() % vHash.size(); int bit = insecure_rand() % 256; *(vHash[n].begin() + (bit>>3)) ^= 1<<(bit&7); } }; BOOST_FIXTURE_TEST_SUITE(pmt_tests, BasicTestingSetup) BOOST_AUTO_TEST_CASE(pmt_test1) { seed_insecure_rand(false); static const unsigned int nTxCounts[] = {1, 4, 7, 17, 56, 100, 127, 256, 312, 513, 1000, 4095}; for (int n = 0; n < 12; n++) { unsigned int nTx = nTxCounts[n]; // build a block with some dummy transactions CBlock block; for (unsigned int j=0; j<nTx; j++) { CMutableTransaction tx; tx.nLockTime = j; // actual transaction data doesn't matter; just make the nLockTime's unique block.vtx.push_back(CTransaction(tx)); } // calculate actual merkle root and height uint256 merkleRoot1 = BlockMerkleRoot(block); std::vector<uint256> vTxid(nTx, uint256()); for (unsigned int j=0; j<nTx; j++) vTxid[j] = block.vtx[j].GetHash(); int nHeight = 1, nTx_ = nTx; while (nTx_ > 1) { nTx_ = (nTx_+1)/2; nHeight++; } // check with random subsets with inclusion chances 1, 1/2, 1/4, ..., 1/128 for (int att = 1; att < 15; att++) { // build random subset of txid's std::vector<bool> vMatch(nTx, false); std::vector<uint256> vMatchTxid1; for (unsigned int j=0; j<nTx; j++) { bool fInclude = (insecure_rand() & ((1 << (att/2)) - 1)) == 0; vMatch[j] = fInclude; if (fInclude) vMatchTxid1.push_back(vTxid[j]); } // build the partial merkle tree CPartialMerkleTree pmt1(vTxid, vMatch); // serialize CDataStream ss(SER_NETWORK, PROTOCOL_VERSION); ss << pmt1; // verify CPartialMerkleTree's size guarantees unsigned int n = std::min<unsigned int>(nTx, 1 + vMatchTxid1.size()*nHeight); BOOST_CHECK(ss.size() <= 10 + (258*n+7)/8); // deserialize into a tester copy CPartialMerkleTreeTester pmt2; ss >> pmt2; // extract merkle root and matched txids from copy std::vector<uint256> vMatchTxid2; uint256 merkleRoot2 = pmt2.ExtractMatches(vMatchTxid2); // check that it has the same merkle root as the original, and a valid one BOOST_CHECK(merkleRoot1 == merkleRoot2); BOOST_CHECK(!merkleRoot2.IsNull()); // check that it contains the matched transactions (in the same order!) BOOST_CHECK(vMatchTxid1 == vMatchTxid2); // check that random bit flips break the authentication for (int j=0; j<4; j++) { CPartialMerkleTreeTester pmt3(pmt2); pmt3.Damage(); std::vector<uint256> vMatchTxid3; uint256 merkleRoot3 = pmt3.ExtractMatches(vMatchTxid3); BOOST_CHECK(merkleRoot3 != merkleRoot1); } } } } BOOST_AUTO_TEST_CASE(pmt_malleability) { std::vector<uint256> vTxid = boost::assign::list_of (ArithToUint256(1))(ArithToUint256(2)) (ArithToUint256(3))(ArithToUint256(4)) (ArithToUint256(5))(ArithToUint256(6)) (ArithToUint256(7))(ArithToUint256(8)) (ArithToUint256(9))(ArithToUint256(10)) (ArithToUint256(9))(ArithToUint256(10)); std::vector<bool> vMatch = boost::assign::list_of(false)(false)(false)(false)(false)(false)(false)(false)(false)(true)(true)(false); CPartialMerkleTree tree(vTxid, vMatch); std::vector<uint256> vTxid2; BOOST_CHECK(tree.ExtractMatches(vTxid).IsNull()); } BOOST_AUTO_TEST_SUITE_END()
[ "jjuansan9@alumnes.ub.edu" ]
jjuansan9@alumnes.ub.edu
666cebe8793d7daa2c445eec511cc21b6ae429ca
ba384da5689a4764fa9651b9a4eb7b33e4c2ab8a
/rapid_ril/CORE/rillog.h
eb3953d274b1a3fee0bd708d6c4b1f23c3341ac9
[]
no_license
locng/android_hardware_intel
0da734d160e941d755e709696b9409470466e04c
bc7b3b1b9786c758344443111ce6f3e870258413
refs/heads/master
2021-01-21T07:14:56.549271
2015-03-05T15:10:48
2015-03-05T15:14:29
null
0
0
null
null
null
null
UTF-8
C++
false
false
1,657
h
//////////////////////////////////////////////////////////////////////////// // rillog.cpp // // Copyright 2009 Intrinsyc Software International, Inc. All rights reserved. // Patents pending in the United States of America and other jurisdictions. // // // Description: // Declares RIL log class. // ///////////////////////////////////////////////////////////////////////////// #ifndef RRIL_LOG_H #define RRIL_LOG_H #define LOG_TAG "RILR" #define LOG_TAG_MAX_LENGTH 6 #define SIMID_MAX_LENGTH 6 #define SIMID_DEFAULT_VALUE "none" #include "types.h" #define RIL_LOG_VERBOSE(format, ...) CRilLog::Verbose(format, ## __VA_ARGS__) #define RIL_LOG_INFO(format, ...) CRilLog::Info(format, ## __VA_ARGS__) #define RIL_LOG_WARNING(format, ...) CRilLog::Warning(format, ## __VA_ARGS__) #define RIL_LOG_CRITICAL(format, ...) CRilLog::Critical(format, ## __VA_ARGS__) class CRilLog { public: static void Init(char* szSIMID); static void Verbose(const char* const szFormatString, ...); static void Info(const char* const szFormatString, ...); static void Warning(const char* const szFormatString, ...); static void Critical(const char* const szFormatString, ...); static inline BOOL IsFullLogBuild() { return m_bFullLogBuild; } private: static const UINT32 m_uiMaxLogBufferSize = 1024; enum { E_RIL_VERBOSE_LOG = 0x01, E_RIL_INFO_LOG = 0x02, E_RIL_WARNING_LOG = 0x04, E_RIL_CRITICAL_LOG = 0x08 }; static UINT8 m_uiFlags; static BOOL m_bInitialized; static BOOL m_bFullLogBuild; static char m_szSIMID[SIMID_MAX_LENGTH]; }; #endif // RRIL_LOG_H
[ "quanganh2627@gmail.com" ]
quanganh2627@gmail.com
358c496be2cc7ef2142f776fc577e7558eb4fb7d
ed9c9ae79f62bed89d6afd57b40419677e96c29e
/WaveSim/WaveSim/AddCircleDialog.h
e06cc3f8e164b4ca4345697ae5822176ed1028bd
[ "MIT" ]
permissive
willamm/WaveSimulator
11e5d7f8c6271041f4a7a670fd99fa2bc5b4bfed
75f9dd1760af67663eeae3aba406d9ce9df334e0
refs/heads/master
2021-08-28T01:12:47.155198
2017-12-11T01:33:49
2017-12-11T01:33:49
103,564,036
1
0
null
2017-11-09T19:44:56
2017-09-14T17:52:44
C++
UTF-8
C++
false
false
412
h
#pragma once #include <QDialog> #include "ui_AddCircleDialog.h" class AddCircleDialog : public QDialog { Q_OBJECT public: AddCircleDialog(QWidget *parent = Q_NULLPTR); ~AddCircleDialog() = default; private: Ui::AddCircleDialog ui; void sendCircle(); void clearFields(); signals: void CircleSpecifiedSignal(const int x, const int y, const int r, const double vel); private slots: void apply(); };
[ "bennywang75@hotmail.com" ]
bennywang75@hotmail.com
85419992f7526afc60b015a40c47382e85efa434
57237beb2a650e64fd0235c05cc643eaf8b8617d
/include/util.hpp
a9bfa4b9baf989ef3f5f5991435f23a0849b4065
[]
no_license
CodeMason/voxel-raycaster
833e8604cc02793a39dcbd5951e49a76f3e8ce63
ce862feb0b1b9be2a91c20a0798db689638dd1d7
refs/heads/master
2020-07-22T06:09:48.325305
2017-04-22T03:09:12
2017-04-22T03:09:12
null
0
0
null
null
null
null
UTF-8
C++
false
false
6,399
hpp
#pragma once #include <SFML/System/Vector3.hpp> #include <SFML/System/Vector2.hpp> #include <bitset> #include <iostream> #include <fstream> #include <sstream> #include <string> #include <imgui/imgui.h> const double PI = 3.141592653589793238463; const float PI_F = 3.14159265358979f; struct fps_counter { public: fps_counter() {}; void frame(double delta_time) { // Apply 100 units of smoothing if (frame_count == 100) { frame_count = 0; fps_average = 0; } frame_count++; fps_average += (delta_time - fps_average) / frame_count; } void draw() { if (arr_pos == 200) arr_pos = 0; fps_array[arr_pos] = static_cast<float>(1.0 / fps_average); arr_pos++; ImGui::Begin("Performance"); ImGui::PlotLines("FPS", fps_array, 200, 0, std::to_string(1.0 / fps_average).c_str(), 0.0f, 150.0f, ImVec2(200, 80)); ImGui::End(); } private: float fps_array[200]{60}; int arr_pos = 0; int frame_count = 0; double fps_average = 0; }; struct oct_state { int parent_stack_position = 0; uint64_t parent_stack[32] = { 0 }; uint8_t scale = 0; uint8_t idx_stack[32] = { 0 }; uint64_t current_descriptor; }; inline sf::Vector3f SphereToCart(sf::Vector2f i) { auto r = sf::Vector3f( (1 * sin(i.y) * cos(i.x)), (1 * sin(i.y) * sin(i.x)), (1 * cos(i.y)) ); return r; }; inline sf::Vector3f SphereToCart(sf::Vector3f i) { auto r = sf::Vector3f( (i.x * sin(i.z) * cos(i.y)), (i.x * sin(i.z) * sin(i.y)), (i.x * cos(i.z)) ); return r; }; inline sf::Vector3f CartToSphere(sf::Vector3f in) { auto r = sf::Vector3f( sqrt(in.x * in.x + in.y * in.y + in.z * in.z), atan(in.y / in.x), atan(sqrt(in.x * in.x + in.y * in.y) / in.z) ); return r; }; inline sf::Vector2f CartToNormalizedSphere(sf::Vector3f in) { auto r = sf::Vector2f( atan2(sqrt(in.x * in.x + in.y * in.y), in.z), atan2(in.y, in.x) ); return r; } inline sf::Vector3f FixOrigin(sf::Vector3f base, sf::Vector3f head) { return head - base; } inline sf::Vector3f Normalize(sf::Vector3f in) { float multiplier = sqrt(in.x * in.x + in.y * in.y + in.z * in.z); auto r = sf::Vector3f( in.x / multiplier, in.y / multiplier, in.z / multiplier ); return r; } inline float DotProduct(sf::Vector3f a, sf::Vector3f b){ return a.x * b.x + a.y * b.y + a.z * b.z; } inline float Magnitude(sf::Vector3f in){ return sqrt(in.x * in.x + in.y * in.y + in.z * in.z); } inline float AngleBetweenVectors(sf::Vector3f a, sf::Vector3f b){ return acos(DotProduct(a, b) / (Magnitude(a) * Magnitude(b))); } inline float DistanceBetweenPoints(sf::Vector3f a, sf::Vector3f b) { return sqrt(DotProduct(a, b)); } inline float DegreesToRadians(float in) { return static_cast<float>(in * PI / 180.0f); } inline float RadiansToDegrees(float in) { return static_cast<float>(in * 180.0f / PI); } inline std::string read_file(std::string file_name){ std::ifstream input_file(file_name); if (!input_file.is_open()){ std::cout << file_name << " could not be opened" << std::endl; return ""; } std::stringstream buf; buf << input_file.rdbuf(); input_file.close(); return buf.str(); } inline void PrettyPrintUINT64(uint64_t i, std::stringstream* ss) { *ss << "[" << std::bitset<15>(i) << "]"; *ss << "[" << std::bitset<1>(i >> 15) << "]"; *ss << "[" << std::bitset<8>(i >> 16) << "]"; *ss << "[" << std::bitset<8>(i >> 24) << "]"; *ss << "[" << std::bitset<32>(i >> 32) << "]"; } inline void PrettyPrintUINT64(uint64_t i) { std::cout << "[" << std::bitset<15>(i) << "]"; std::cout << "[" << std::bitset<1>(i >> 15) << "]"; std::cout << "[" << std::bitset<8>(i >> 16) << "]"; std::cout << "[" << std::bitset<8>(i >> 24) << "]"; std::cout << "[" << std::bitset<32>(i >> 32) << "]" << std::endl; } inline void DumpLog(std::stringstream* ss, std::string file_name) { std::ofstream log_file; log_file.open(file_name); log_file << ss->str(); log_file.close(); } #ifdef _MSC_VER # include <intrin.h> # define __builtin_popcount _mm_popcnt_u32 # define __builtin_popcountll _mm_popcnt_u64 #endif inline int count_bits(int32_t v) { return static_cast<int>(__builtin_popcount(v)); //v = v - ((v >> 1) & 0x55555555); // reuse input as temporary //v = (v & 0x33333333) + ((v >> 2) & 0x33333333); // temp //return (((v + (v >> 4)) & 0xF0F0F0F) * 0x1010101) >> 24; // count } inline int count_bits(int64_t v) { return static_cast<int>(__builtin_popcountll(v)); //int32_t left = (int32_t)(v); //int32_t right = (int32_t)(v >> 32); //left = left - ((left >> 1) & 0x55555555); // reuse input as temporary //left = (left & 0x33333333) + ((left >> 2) & 0x33333333); // temp //left = ((left + (left >> 4) & 0xF0F0F0F) * 0x1010101) >> 24; // count //right = right - ((right >> 1) & 0x55555555); // reuse input as temporary //right = (right & 0x33333333) + ((right >> 2) & 0x33333333); // temp //right = ((right + (right >> 4) & 0xF0F0F0F) * 0x1010101) >> 24; // count //return left + right; } inline void SetBit(int position, char* c) { *c |= (uint64_t)1 << position; } inline void FlipBit(int position, char* c) { *c ^= (uint64_t)1 << position; } inline int GetBit(int position, char* c) { return (*c >> position) & (uint64_t)1; } inline void SetBit(int position, uint64_t* c) { *c |= (uint64_t)1 << position; } inline void FlipBit(int position, uint64_t* c) { *c ^= (uint64_t)1 << position; } inline int GetBit(int position, uint64_t* c) { return (*c >> position) & (uint64_t)1; } inline bool CheckLeafSign(const uint64_t descriptor) { uint64_t valid_mask = 0xFF0000; // Return true if all 1's, false if contiguous 0's if ((descriptor & valid_mask) == valid_mask) { return true; } if ((descriptor & valid_mask) == 0) { return false; } // Error out, something funky abort(); } inline bool CheckContiguousValid(const uint64_t c) { uint64_t bitmask = 0xFF0000; return (c & bitmask) == bitmask; } inline bool IsLeaf(const uint64_t descriptor) { uint64_t leaf_mask = 0xFF000000; uint64_t valid_mask = 0xFF0000; // Check for contiguous valid values of either 0's or 1's if (((descriptor & valid_mask) == valid_mask) || ((descriptor & valid_mask) == 0)) { // Check for a full leaf mask // Only if valid and leaf are contiguous, then it's a leaf if ((descriptor & leaf_mask) == leaf_mask) return true; } return false; }
[ "mitchellhansen4@gmail.com" ]
mitchellhansen4@gmail.com
6c273c8ce24ce2ce430ed5e9817facb3b70dfc1f
bfb653c0c510707db01f5d5094c71911fb51ad1e
/cpp/021-030/Merge Two Sorted Lists .cpp
67a68371648ad5469446f42c53bd2d6f51547469
[ "MIT" ]
permissive
a12590/leetcode
93c04315b7fcdc255aaf83861d77f6185bbec200
7b826ce258cf3bac3839b5f69a6b4ae182e7c617
refs/heads/master
2020-12-24T10:31:14.146799
2016-10-19T23:00:32
2016-10-19T23:00:32
73,150,437
1
0
null
2016-11-08T04:55:35
2016-11-08T04:55:34
null
UTF-8
C++
false
false
1,873
cpp
#include <iostream> #include <unordered_map> #include <vector> #include <stack> using namespace std; struct ListNode { int val; ListNode *next; ListNode(int x) : val(x), next(NULL) {} }; class Solution { public: ListNode *mergeTwoLists(ListNode *l1, ListNode *l2) { if(l1 == NULL) return l2; else if(l2 == NULL) return l1; ListNode *head = (l1->val <= l2->val) ? l1 : l2; ListNode *result = head; if(head == l1) l1 = l1->next; else l2 = l2->next; while(l1 != NULL || l2 != NULL) { if(l1 == NULL) { head->next = l2; break; } else if(l2 == NULL) { head->next = l1; break; } if(l1->val <= l2->val) { head->next = l1; head = l1; l1 = l1->next; } else { head->next = l2; head = l2; l2 = l2->next; } } return result; } }; int main() { Solution s; ListNode *n1 = new ListNode(1); ListNode *n2 = new ListNode(2); ListNode *n3 = new ListNode(3); ListNode *n4 = new ListNode(7); ListNode *n5 = new ListNode(9); n1->next = n2; n2->next = n3; n3->next = n4; n4->next = n5; ListNode *n6 = new ListNode(4); ListNode *n7 = new ListNode(5); ListNode *n8 = new ListNode(6); ListNode *n9 = new ListNode(8); ListNode *n10 = new ListNode(10); n6->next = n7; n7->next = n8; n8->next = n9; n9->next = n10; ListNode *head = s.mergeTwoLists(n1, n6); while(head) { cout << head->val << endl; head = head->next; } return 0; }
[ "303542123@qq.com" ]
303542123@qq.com
889d2dc173f27ec04f5e9f86bed6660aaea88bc5
05dc90645cbebda4b8d36701ee1ac64005c8185c
/corba-output-server/servermanager.h
19de589443c8ee1fbde46ab41c9c8827fce5e64e
[]
no_license
svi2t/corba-remote-output
8a2f4b95a774608550efcac0a8c275b1b37c54fe
c5998349343859b65f60299e4d9e4f05a4a7b610
refs/heads/master
2020-11-29T00:06:11.065859
2019-12-25T05:00:20
2019-12-25T05:00:20
229,957,718
0
0
null
null
null
null
UTF-8
C++
false
false
566
h
#ifndef SERVERMANAGER_H #define SERVERMANAGER_H #include <QObject> #include "pch1.h" #include "outputserver.h" class ServerManager : public QObject { Q_OBJECT public: explicit ServerManager(int argc, char *argv[], QObject *parent = nullptr); ~ServerManager(); private: bool setupServer(); bool runServer(); CORBA::ORB_var orb; CORBA::Object_var poa_obj; PortableServer::POA_var poa; PortableServer::POAManager_var manager; OutputServer *server; public slots: void startManager(); signals: void finished(); }; #endif // SERVERMANAGER_H
[ "svirpen@mail.ru" ]
svirpen@mail.ru
825cb275626b0793f6f8701f2161fe0b26edcbda
f0c3f7f51a4e71cc783383db14859a1f40634b9d
/Languages/BrainfuckInterpreter.hh
bdc623e9650a5397757de4ead20affe792df7552
[ "MIT" ]
permissive
bencz/equinox
50cc0bc6ea2eabe186e02c29f78312e765c5f8fc
99efb1c5c537149b9448ced43c15ab604fb54463
refs/heads/master
2023-03-19T04:38:23.446622
2019-11-02T18:19:56
2019-11-02T18:19:56
null
0
0
null
null
null
null
UTF-8
C++
false
false
118
hh
#pragma once #include <stddef.h> void bf_interpret(const char* filename, size_t expansion_size, size_t cell_size);
[ "mjem@wildblue.net" ]
mjem@wildblue.net
118b4c529feb9e2a89ab40dd79db76087d511d6a
34f93b6099c16a8dd1acf225712a816099715f78
/modules/datasetstools/samples/is_weizmann.cpp
255e77a38d240cded5de563d9436e008465c00a8
[]
no_license
netw0rkf10w/opencv_contrib
eb2098208fa3e30ebc0e11108681055ac0a4a77b
0ea1de85bfc66d197580c60a8c1ee33fd65af850
refs/heads/master
2021-01-18T20:41:19.945616
2014-09-18T11:30:57
2014-09-18T11:30:57
null
0
0
null
null
null
null
UTF-8
C++
false
false
3,186
cpp
/*M/////////////////////////////////////////////////////////////////////////////////////// // // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. // // By downloading, copying, installing or using the software you agree to this license. // If you do not agree to this license, do not download, install, // copy or use the software. // // // License Agreement // For Open Source Computer Vision Library // // Copyright (C) 2014, Itseez Inc, all rights reserved. // Third party copyrights are property of their respective owners. // // Redistribution and use in source and binary forms, with or without modification, // are permitted provided that the following conditions are met: // // * Redistribution's of source code must retain the above copyright notice, // this list of conditions and the following disclaimer. // // * Redistribution's 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. // // * The name of the copyright holders may not 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 Itseez Inc 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. // //M*/ #include "opencv2/datasetstools/is_weizmann.hpp" #include <opencv2/core.hpp> #include <cstdio> #include <string> #include <vector> using namespace std; using namespace cv; using namespace cv::datasetstools; int main(int argc, char *argv[]) { const char *keys = "{ help h usage ? | | show this message }" "{ path p |true| path to dataset (1obj/2obj folders) }"; CommandLineParser parser(argc, argv, keys); string path(parser.get<string>("path")); if (parser.has("help") || path=="true") { parser.printMessage(); return -1; } IS_weizmann dataset(path); // *************** // dataset contains all information for each image. // For example, let output dataset size and first object. printf("dataset size: %u\n", (unsigned int)dataset.train.size()); IS_weizmannObj *example = static_cast<IS_weizmannObj *>(dataset.train[0].get()); printf("first image:\nname: %s\n", example->imageName.c_str()); printf("src bw: %s\nsrc color: %s\n", example->srcBw.c_str(), example->srcColor.c_str()); return 0; }
[ "dmitriy.anisimov@itseez.com" ]
dmitriy.anisimov@itseez.com
7ad6e9886e4ae03371bc833e8ec1e4da9fb5f85a
a064569a273accdd58d24c8c569e54ef2ef6fbf1
/21天学通C++(第7版)源代码/9780672335679_TYCPP-7E_Code/Chapter 12/12.3 UniquePtr/12.3 UniquePtr/stdafx.cpp
86aeff87178c68fbe81c20b6553d43f71e8c9779
[]
no_license
bangiao/C_plus_plus
52a00b689b62df45079cfb7bfb3e3df464310ffa
6a6decaeacb10b6de4233cfe9c5f3765743c7054
refs/heads/master
2021-01-01T15:42:27.015650
2017-07-19T05:41:25
2017-07-19T05:41:25
97,676,912
1
0
null
null
null
null
UTF-8
C++
false
false
293
cpp
// stdafx.cpp : source file that includes just the standard includes // 12.3 UniquePtr.pch will be the pre-compiled header // stdafx.obj will contain the pre-compiled type information #include "stdafx.h" // TODO: reference any additional headers you need in STDAFX.H // and not in this file
[ "2033445917@qq.com" ]
2033445917@qq.com
7f46655cb4bbb71aaf59e3d7600a3c6281e01d31
b6c4092d813b4d90a5fcfdd0e00eaaca514fff89
/cow_instrument/NullComponent.h
950fb544b950f96b35371bc705788398a7fbca5d
[]
no_license
martyngigg/instrument-prototype
ea54b950f85e410aaf219fa47a4553058e087ac5
294be10e98c70a78b948c7bae5660a5d4a7a861b
refs/heads/master
2021-01-23T00:15:20.843627
2016-03-10T17:26:15
2016-03-10T17:26:15
53,651,236
0
0
null
2016-03-11T08:22:53
2016-03-11T08:22:53
null
UTF-8
C++
false
false
348
h
#ifndef NULLCOMPONENT_H #define NULLCOMPONENT_H #include "Component.h" class NullComponent : public Component { NullComponent() = default; V3D getPos() const override; void setPos(const V3D &pos) override; virtual ~NullComponent(); NullComponent *clone() const override; bool equals(const Component &other) const override; }; #endif
[ "owen.arnold@stfc.ac.uk" ]
owen.arnold@stfc.ac.uk
9bdcd1951da543dc5602e517b4b65e530954af8b
c60e4f97890cc7329123d18fd5bc55734815caa5
/3rd/xulrunner-sdk/include/nsIContentHandler.h
f14baf3bb72e3b28f3901059561dcb1596779bd3
[ "Apache-2.0" ]
permissive
ShoufuLuo/csaw
cbdcd8d51bb7fc4943e66b82ee7bc9c25ccbc385
0d030d5ab93e61b62dff10b27a15c83fcfce3ff3
refs/heads/master
2021-01-19T10:02:51.209070
2014-04-30T19:53:32
2014-04-30T19:53:32
16,976,394
0
0
null
null
null
null
UTF-8
C++
false
false
3,242
h
/* * DO NOT EDIT. THIS FILE IS GENERATED FROM /builds/slave/rel-m-rel-xr-osx64-bld/build/uriloader/base/nsIContentHandler.idl */ #ifndef __gen_nsIContentHandler_h__ #define __gen_nsIContentHandler_h__ #ifndef __gen_nsISupports_h__ #include "nsISupports.h" #endif /* For IDL files that don't want to include root IDL files. */ #ifndef NS_NO_VTABLE #define NS_NO_VTABLE #endif class nsIRequest; /* forward declaration */ class nsIInterfaceRequestor; /* forward declaration */ /* starting interface: nsIContentHandler */ #define NS_ICONTENTHANDLER_IID_STR "49439df2-b3d2-441c-bf62-866bdaf56fd2" #define NS_ICONTENTHANDLER_IID \ {0x49439df2, 0xb3d2, 0x441c, \ { 0xbf, 0x62, 0x86, 0x6b, 0xda, 0xf5, 0x6f, 0xd2 }} class NS_NO_VTABLE NS_SCRIPTABLE nsIContentHandler : public nsISupports { public: NS_DECLARE_STATIC_IID_ACCESSOR(NS_ICONTENTHANDLER_IID) /* void handleContent (in string aContentType, in nsIInterfaceRequestor aWindowContext, in nsIRequest aRequest); */ NS_SCRIPTABLE NS_IMETHOD HandleContent(const char * aContentType, nsIInterfaceRequestor *aWindowContext, nsIRequest *aRequest) = 0; }; NS_DEFINE_STATIC_IID_ACCESSOR(nsIContentHandler, NS_ICONTENTHANDLER_IID) /* Use this macro when declaring classes that implement this interface. */ #define NS_DECL_NSICONTENTHANDLER \ NS_SCRIPTABLE NS_IMETHOD HandleContent(const char * aContentType, nsIInterfaceRequestor *aWindowContext, nsIRequest *aRequest); /* Use this macro to declare functions that forward the behavior of this interface to another object. */ #define NS_FORWARD_NSICONTENTHANDLER(_to) \ NS_SCRIPTABLE NS_IMETHOD HandleContent(const char * aContentType, nsIInterfaceRequestor *aWindowContext, nsIRequest *aRequest) { return _to HandleContent(aContentType, aWindowContext, aRequest); } /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */ #define NS_FORWARD_SAFE_NSICONTENTHANDLER(_to) \ NS_SCRIPTABLE NS_IMETHOD HandleContent(const char * aContentType, nsIInterfaceRequestor *aWindowContext, nsIRequest *aRequest) { return !_to ? NS_ERROR_NULL_POINTER : _to->HandleContent(aContentType, aWindowContext, aRequest); } #if 0 /* Use the code below as a template for the implementation class for this interface. */ /* Header file */ class nsContentHandler : public nsIContentHandler { public: NS_DECL_ISUPPORTS NS_DECL_NSICONTENTHANDLER nsContentHandler(); private: ~nsContentHandler(); protected: /* additional members */ }; /* Implementation file */ NS_IMPL_ISUPPORTS1(nsContentHandler, nsIContentHandler) nsContentHandler::nsContentHandler() { /* member initializers and constructor code */ } nsContentHandler::~nsContentHandler() { /* destructor code */ } /* void handleContent (in string aContentType, in nsIInterfaceRequestor aWindowContext, in nsIRequest aRequest); */ NS_IMETHODIMP nsContentHandler::HandleContent(const char * aContentType, nsIInterfaceRequestor *aWindowContext, nsIRequest *aRequest) { return NS_ERROR_NOT_IMPLEMENTED; } /* End of implementation class template. */ #endif #define NS_ERROR_WONT_HANDLE_CONTENT NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_URILOADER, 1) #endif /* __gen_nsIContentHandler_h__ */
[ "luoshoufu@gmail.com" ]
luoshoufu@gmail.com
84117e34067a0dd6ac68ff83f6aab96577972694
e83aaf423d3624748522b9adecdeb15659f5bdee
/ditfw-gfx/deps/wxwidgets/src/stc/scintilla/src/PositionCache.cxx
db64b116072df7042ec49b01e4c5c68e1f2633b3
[ "LicenseRef-scancode-scintilla", "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
chartly/portfolio
4b432c212968b56d6a1514efe3dae87ae9a0c0e0
bd1782c274604f29f0edaa1407efce2a80d2c58f
refs/heads/master
2021-01-19T18:33:16.143552
2016-11-29T03:03:25
2016-11-29T03:03:25
30,293,065
3
1
null
null
null
null
UTF-8
C++
false
false
17,668
cxx
// Scintilla source code edit control /** @file PositionCache.cxx ** Classes for caching layout information. **/ // Copyright 1998-2007 by Neil Hodgson <neilh@scintilla.org> // The License.txt file describes the conditions under which this software may be distributed. #include <stdlib.h> #include <string.h> #include <stdio.h> #include <ctype.h> #include <string> #include <vector> #include <map> #include <algorithm> #include "Platform.h" #include "Scintilla.h" #include "SplitVector.h" #include "Partitioning.h" #include "RunStyles.h" #include "ContractionState.h" #include "CellBuffer.h" #include "KeyMap.h" #include "Indicator.h" #include "XPM.h" #include "LineMarker.h" #include "Style.h" #include "ViewStyle.h" #include "CharClassify.h" #include "Decoration.h" #include "ILexer.h" #include "CaseFolder.h" #include "Document.h" #include "UniConversion.h" #include "Selection.h" #include "PositionCache.h" #ifdef SCI_NAMESPACE using namespace Scintilla; #endif static inline bool IsControlCharacter(int ch) { // iscntrl returns true for lots of chars > 127 which are displayable return ch >= 0 && ch < ' '; } LineLayout::LineLayout(int maxLineLength_) : lineStarts(0), lenLineStarts(0), lineNumber(-1), inCache(false), maxLineLength(-1), numCharsInLine(0), numCharsBeforeEOL(0), validity(llInvalid), xHighlightGuide(0), highlightColumn(0), psel(NULL), containsCaret(false), edgeColumn(0), chars(0), styles(0), styleBitsSet(0), indicators(0), positions(0), hsStart(0), hsEnd(0), widthLine(wrapWidthInfinite), lines(1), wrapIndent(0) { bracePreviousStyles[0] = 0; bracePreviousStyles[1] = 0; Resize(maxLineLength_); } LineLayout::~LineLayout() { Free(); } void LineLayout::Resize(int maxLineLength_) { if (maxLineLength_ > maxLineLength) { Free(); chars = new char[maxLineLength_ + 1]; styles = new unsigned char[maxLineLength_ + 1]; indicators = new char[maxLineLength_ + 1]; // Extra position allocated as sometimes the Windows // GetTextExtentExPoint API writes an extra element. positions = new XYPOSITION[maxLineLength_ + 1 + 1]; maxLineLength = maxLineLength_; } } void LineLayout::Free() { delete []chars; chars = 0; delete []styles; styles = 0; delete []indicators; indicators = 0; delete []positions; positions = 0; delete []lineStarts; lineStarts = 0; } void LineLayout::Invalidate(validLevel validity_) { if (validity > validity_) validity = validity_; } int LineLayout::LineStart(int line) const { if (line <= 0) { return 0; } else if ((line >= lines) || !lineStarts) { return numCharsInLine; } else { return lineStarts[line]; } } int LineLayout::LineLastVisible(int line) const { if (line < 0) { return 0; } else if ((line >= lines-1) || !lineStarts) { return numCharsBeforeEOL; } else { return lineStarts[line+1]; } } bool LineLayout::InLine(int offset, int line) const { return ((offset >= LineStart(line)) && (offset < LineStart(line + 1))) || ((offset == numCharsInLine) && (line == (lines-1))); } void LineLayout::SetLineStart(int line, int start) { if ((line >= lenLineStarts) && (line != 0)) { int newMaxLines = line + 20; int *newLineStarts = new int[newMaxLines]; for (int i = 0; i < newMaxLines; i++) { if (i < lenLineStarts) newLineStarts[i] = lineStarts[i]; else newLineStarts[i] = 0; } delete []lineStarts; lineStarts = newLineStarts; lenLineStarts = newMaxLines; } lineStarts[line] = start; } void LineLayout::SetBracesHighlight(Range rangeLine, Position braces[], char bracesMatchStyle, int xHighlight, bool ignoreStyle) { if (!ignoreStyle && rangeLine.ContainsCharacter(braces[0])) { int braceOffset = braces[0] - rangeLine.start; if (braceOffset < numCharsInLine) { bracePreviousStyles[0] = styles[braceOffset]; styles[braceOffset] = bracesMatchStyle; } } if (!ignoreStyle && rangeLine.ContainsCharacter(braces[1])) { int braceOffset = braces[1] - rangeLine.start; if (braceOffset < numCharsInLine) { bracePreviousStyles[1] = styles[braceOffset]; styles[braceOffset] = bracesMatchStyle; } } if ((braces[0] >= rangeLine.start && braces[1] <= rangeLine.end) || (braces[1] >= rangeLine.start && braces[0] <= rangeLine.end)) { xHighlightGuide = xHighlight; } } void LineLayout::RestoreBracesHighlight(Range rangeLine, Position braces[], bool ignoreStyle) { if (!ignoreStyle && rangeLine.ContainsCharacter(braces[0])) { int braceOffset = braces[0] - rangeLine.start; if (braceOffset < numCharsInLine) { styles[braceOffset] = bracePreviousStyles[0]; } } if (!ignoreStyle && rangeLine.ContainsCharacter(braces[1])) { int braceOffset = braces[1] - rangeLine.start; if (braceOffset < numCharsInLine) { styles[braceOffset] = bracePreviousStyles[1]; } } xHighlightGuide = 0; } int LineLayout::FindBefore(XYPOSITION x, int lower, int upper) const { do { int middle = (upper + lower + 1) / 2; // Round high XYPOSITION posMiddle = positions[middle]; if (x < posMiddle) { upper = middle - 1; } else { lower = middle; } } while (lower < upper); return lower; } int LineLayout::EndLineStyle() const { return styles[numCharsBeforeEOL > 0 ? numCharsBeforeEOL-1 : 0]; } LineLayoutCache::LineLayoutCache() : level(0), allInvalidated(false), styleClock(-1), useCount(0) { Allocate(0); } LineLayoutCache::~LineLayoutCache() { Deallocate(); } void LineLayoutCache::Allocate(size_t length_) { PLATFORM_ASSERT(cache.empty()); allInvalidated = false; cache.resize(length_); } void LineLayoutCache::AllocateForLevel(int linesOnScreen, int linesInDoc) { PLATFORM_ASSERT(useCount == 0); size_t lengthForLevel = 0; if (level == llcCaret) { lengthForLevel = 1; } else if (level == llcPage) { lengthForLevel = linesOnScreen + 1; } else if (level == llcDocument) { lengthForLevel = linesInDoc; } if (lengthForLevel > cache.size()) { Deallocate(); Allocate(lengthForLevel); } else { if (lengthForLevel < cache.size()) { for (size_t i = lengthForLevel; i < cache.size(); i++) { delete cache[i]; cache[i] = 0; } } cache.resize(lengthForLevel); } PLATFORM_ASSERT(cache.size() == lengthForLevel); } void LineLayoutCache::Deallocate() { PLATFORM_ASSERT(useCount == 0); for (size_t i = 0; i < cache.size(); i++) delete cache[i]; cache.clear(); } void LineLayoutCache::Invalidate(LineLayout::validLevel validity_) { if (!cache.empty() && !allInvalidated) { for (size_t i = 0; i < cache.size(); i++) { if (cache[i]) { cache[i]->Invalidate(validity_); } } if (validity_ == LineLayout::llInvalid) { allInvalidated = true; } } } void LineLayoutCache::SetLevel(int level_) { allInvalidated = false; if ((level_ != -1) && (level != level_)) { level = level_; Deallocate(); } } LineLayout *LineLayoutCache::Retrieve(int lineNumber, int lineCaret, int maxChars, int styleClock_, int linesOnScreen, int linesInDoc) { AllocateForLevel(linesOnScreen, linesInDoc); if (styleClock != styleClock_) { Invalidate(LineLayout::llCheckTextAndStyle); styleClock = styleClock_; } allInvalidated = false; int pos = -1; LineLayout *ret = 0; if (level == llcCaret) { pos = 0; } else if (level == llcPage) { if (lineNumber == lineCaret) { pos = 0; } else if (cache.size() > 1) { pos = 1 + (lineNumber % (cache.size() - 1)); } } else if (level == llcDocument) { pos = lineNumber; } if (pos >= 0) { PLATFORM_ASSERT(useCount == 0); if (!cache.empty() && (pos < static_cast<int>(cache.size()))) { if (cache[pos]) { if ((cache[pos]->lineNumber != lineNumber) || (cache[pos]->maxLineLength < maxChars)) { delete cache[pos]; cache[pos] = 0; } } if (!cache[pos]) { cache[pos] = new LineLayout(maxChars); } cache[pos]->lineNumber = lineNumber; cache[pos]->inCache = true; ret = cache[pos]; useCount++; } } if (!ret) { ret = new LineLayout(maxChars); ret->lineNumber = lineNumber; } return ret; } void LineLayoutCache::Dispose(LineLayout *ll) { allInvalidated = false; if (ll) { if (!ll->inCache) { delete ll; } else { useCount--; } } } // Simply pack the (maximum 4) character bytes into an int static inline int KeyFromString(const char *charBytes, size_t len) { PLATFORM_ASSERT(len <= 4); int k=0; for (size_t i=0; i<len && charBytes[i]; i++) { k = k * 0x100; k += static_cast<unsigned char>(charBytes[i]); } return k; } SpecialRepresentations::SpecialRepresentations() { std::fill(startByteHasReprs, startByteHasReprs+0x100, 0); } void SpecialRepresentations::SetRepresentation(const char *charBytes, const char *value) { MapRepresentation::iterator it = mapReprs.find(KeyFromString(charBytes, UTF8MaxBytes)); if (it == mapReprs.end()) { // New entry so increment for first byte startByteHasReprs[static_cast<unsigned char>(charBytes[0])]++; } mapReprs[KeyFromString(charBytes, UTF8MaxBytes)] = Representation(value); } void SpecialRepresentations::ClearRepresentation(const char *charBytes) { MapRepresentation::iterator it = mapReprs.find(KeyFromString(charBytes, UTF8MaxBytes)); if (it != mapReprs.end()) { mapReprs.erase(it); startByteHasReprs[static_cast<unsigned char>(charBytes[0])]--; } } Representation *SpecialRepresentations::RepresentationFromCharacter(const char *charBytes, size_t len) { PLATFORM_ASSERT(len <= 4); if (!startByteHasReprs[static_cast<unsigned char>(charBytes[0])]) return 0; MapRepresentation::iterator it = mapReprs.find(KeyFromString(charBytes, len)); if (it != mapReprs.end()) { return &(it->second); } return 0; } bool SpecialRepresentations::Contains(const char *charBytes, size_t len) const { PLATFORM_ASSERT(len <= 4); if (!startByteHasReprs[static_cast<unsigned char>(charBytes[0])]) return false; MapRepresentation::const_iterator it = mapReprs.find(KeyFromString(charBytes, len)); return it != mapReprs.end(); } void SpecialRepresentations::Clear() { mapReprs.clear(); std::fill(startByteHasReprs, startByteHasReprs+0x100, 0); } void BreakFinder::Insert(int val) { if (val > nextBreak) { const std::vector<int>::iterator it = std::lower_bound(selAndEdge.begin(), selAndEdge.end(), val); if (it == selAndEdge.end()) { selAndEdge.push_back(val); } else if (*it != val) { selAndEdge.insert(it, 1, val); } } } BreakFinder::BreakFinder(LineLayout *ll_, int lineStart_, int lineEnd_, int posLineStart_, int xStart, bool breakForSelection, Document *pdoc_, SpecialRepresentations *preprs_) : ll(ll_), lineStart(lineStart_), lineEnd(lineEnd_), posLineStart(posLineStart_), nextBreak(lineStart_), saeCurrentPos(0), saeNext(0), subBreak(-1), pdoc(pdoc_), encodingFamily(pdoc_->CodePageFamily()), preprs(preprs_) { // Search for first visible break // First find the first visible character if (xStart > 0.0f) nextBreak = ll->FindBefore(xStart, lineStart, lineEnd); // Now back to a style break while ((nextBreak > lineStart) && (ll->styles[nextBreak] == ll->styles[nextBreak - 1])) { nextBreak--; } if (breakForSelection) { SelectionPosition posStart(posLineStart); SelectionPosition posEnd(posLineStart + lineEnd); SelectionSegment segmentLine(posStart, posEnd); for (size_t r=0; r<ll->psel->Count(); r++) { SelectionSegment portion = ll->psel->Range(r).Intersect(segmentLine); if (!(portion.start == portion.end)) { if (portion.start.IsValid()) Insert(portion.start.Position() - posLineStart); if (portion.end.IsValid()) Insert(portion.end.Position() - posLineStart); } } } Insert(ll->edgeColumn); Insert(lineEnd); saeNext = (!selAndEdge.empty()) ? selAndEdge[0] : -1; } BreakFinder::~BreakFinder() { } TextSegment BreakFinder::Next() { if (subBreak == -1) { int prev = nextBreak; while (nextBreak < lineEnd) { int charWidth = 1; if (encodingFamily == efUnicode) charWidth = UTF8DrawBytes(reinterpret_cast<unsigned char *>(ll->chars) + nextBreak, lineEnd - nextBreak); else if (encodingFamily == efDBCS) charWidth = pdoc->IsDBCSLeadByte(ll->chars[nextBreak]) ? 2 : 1; Representation *repr = preprs->RepresentationFromCharacter(ll->chars + nextBreak, charWidth); if (((nextBreak > 0) && (ll->styles[nextBreak] != ll->styles[nextBreak - 1])) || repr || (nextBreak == saeNext)) { while ((nextBreak >= saeNext) && (saeNext < lineEnd)) { saeCurrentPos++; saeNext = (saeCurrentPos < selAndEdge.size()) ? selAndEdge[saeCurrentPos] : lineEnd; } if ((nextBreak > prev) || repr) { // Have a segment to report if (nextBreak == prev) { nextBreak += charWidth; } else { repr = 0; // Optimize -> should remember repr } if ((nextBreak - prev) < lengthStartSubdivision) { return TextSegment(prev, nextBreak - prev, repr); } else { break; } } } nextBreak += charWidth; } if ((nextBreak - prev) < lengthStartSubdivision) { return TextSegment(prev, nextBreak - prev); } subBreak = prev; } // Splitting up a long run from prev to nextBreak in lots of approximately lengthEachSubdivision. // For very long runs add extra breaks after spaces or if no spaces before low punctuation. int startSegment = subBreak; if ((nextBreak - subBreak) <= lengthEachSubdivision) { subBreak = -1; return TextSegment(startSegment, nextBreak - startSegment); } else { subBreak += pdoc->SafeSegment(ll->chars + subBreak, nextBreak-subBreak, lengthEachSubdivision); if (subBreak >= nextBreak) { subBreak = -1; return TextSegment(startSegment, nextBreak - startSegment); } else { return TextSegment(startSegment, subBreak - startSegment); } } } bool BreakFinder::More() const { return (subBreak >= 0) || (nextBreak < lineEnd); } PositionCacheEntry::PositionCacheEntry() : styleNumber(0), len(0), clock(0), positions(0) { } void PositionCacheEntry::Set(unsigned int styleNumber_, const char *s_, unsigned int len_, XYPOSITION *positions_, unsigned int clock_) { Clear(); styleNumber = styleNumber_; len = len_; clock = clock_; if (s_ && positions_) { positions = new XYPOSITION[len + (len / 4) + 1]; for (unsigned int i=0; i<len; i++) { positions[i] = static_cast<XYPOSITION>(positions_[i]); } memcpy(reinterpret_cast<char *>(positions + len), s_, len); } } PositionCacheEntry::~PositionCacheEntry() { Clear(); } void PositionCacheEntry::Clear() { delete []positions; positions = 0; styleNumber = 0; len = 0; clock = 0; } bool PositionCacheEntry::Retrieve(unsigned int styleNumber_, const char *s_, unsigned int len_, XYPOSITION *positions_) const { if ((styleNumber == styleNumber_) && (len == len_) && (memcmp(reinterpret_cast<char *>(positions + len), s_, len)== 0)) { for (unsigned int i=0; i<len; i++) { positions_[i] = positions[i]; } return true; } else { return false; } } int PositionCacheEntry::Hash(unsigned int styleNumber_, const char *s, unsigned int len_) { unsigned int ret = s[0] << 7; for (unsigned int i=0; i<len_; i++) { ret *= 1000003; ret ^= s[i]; } ret *= 1000003; ret ^= len_; ret *= 1000003; ret ^= styleNumber_; return ret; } bool PositionCacheEntry::NewerThan(const PositionCacheEntry &other) const { return clock > other.clock; } void PositionCacheEntry::ResetClock() { if (clock > 0) { clock = 1; } } PositionCache::PositionCache() { clock = 1; pces.resize(0x400); allClear = true; } PositionCache::~PositionCache() { Clear(); } void PositionCache::Clear() { if (!allClear) { for (size_t i=0; i<pces.size(); i++) { pces[i].Clear(); } } clock = 1; allClear = true; } void PositionCache::SetSize(size_t size_) { Clear(); pces.resize(size_); } void PositionCache::MeasureWidths(Surface *surface, ViewStyle &vstyle, unsigned int styleNumber, const char *s, unsigned int len, XYPOSITION *positions, Document *pdoc) { allClear = false; int probe = -1; if ((!pces.empty()) && (len < 30)) { // Only store short strings in the cache so it doesn't churn with // long comments with only a single comment. // Two way associative: try two probe positions. int hashValue = PositionCacheEntry::Hash(styleNumber, s, len); probe = static_cast<int>(hashValue % pces.size()); if (pces[probe].Retrieve(styleNumber, s, len, positions)) { return; } int probe2 = static_cast<int>((hashValue * 37) % pces.size()); if (pces[probe2].Retrieve(styleNumber, s, len, positions)) { return; } // Not found. Choose the oldest of the two slots to replace if (pces[probe].NewerThan(pces[probe2])) { probe = probe2; } } if (len > BreakFinder::lengthStartSubdivision) { // Break up into segments unsigned int startSegment = 0; XYPOSITION xStartSegment = 0; while (startSegment < len) { unsigned int lenSegment = pdoc->SafeSegment(s + startSegment, len - startSegment, BreakFinder::lengthEachSubdivision); surface->MeasureWidths(vstyle.styles[styleNumber].font, s + startSegment, lenSegment, positions + startSegment); for (unsigned int inSeg = 0; inSeg < lenSegment; inSeg++) { positions[startSegment + inSeg] += xStartSegment; } xStartSegment = positions[startSegment + lenSegment - 1]; startSegment += lenSegment; } } else { surface->MeasureWidths(vstyle.styles[styleNumber].font, s, len, positions); } if (probe >= 0) { clock++; if (clock > 60000) { // Since there are only 16 bits for the clock, wrap it round and // reset all cache entries so none get stuck with a high clock. for (size_t i=0; i<pces.size(); i++) { pces[i].ResetClock(); } clock = 2; } pces[probe].Set(styleNumber, s, len, positions, clock); } }
[ "the.corbin.hart@gmail.com" ]
the.corbin.hart@gmail.com