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
6855923216f403fc40c058e0cd38733df8bf6657
0ef4f71c8ff2f233945ee4effdba893fed3b8fad
/misc_microsoft_gamedev_source_code/misc_microsoft_gamedev_source_code/tools/TexSynth/C++ Preprocess/Lib/libhh/HashStruct.h
91d22523e892de6a4c368036afc61df07147add3
[]
no_license
sgzwiz/misc_microsoft_gamedev_source_code
1f482b2259f413241392832effcbc64c4c3d79ca
39c200a1642102b484736b51892033cc575b341a
refs/heads/master
2022-12-22T11:03:53.930024
2020-09-28T20:39:56
2020-09-28T20:39:56
null
0
0
null
null
null
null
UTF-8
C++
false
false
2,498
h
// This may look like C code, but it is really -*- C++ -*- // Copyright Microsoft Corporation. Written by Hugues Hoppe. #if defined(__WIN32) && _MSC_VER>1000 #pragma once #endif #ifndef HashStruct_h #define HashStruct_h #if 0 { HashStruct<segment> hs(hashf,cmpf); ForHashStruct(hs,segment,s) { do(s); } EndFor; } #endif #include "BHashStruct.h" // Maintains a set of structures. // The structures are hashed according to a user-provided function hashf. // Note: hashf can return any value including zero. // Also, equality of two structures is determined by user function cmpf. // Note: cmpf should return: does_not_match (as does strcmp)! // Note for hacker: when cmpf is invoked, its first arg is st (below) // Thus, st (structure template) can be fake and cmpf can be asymmetric. // Note: BHashStruct should be empty prior to destruction. //---------------------------------------------------------------------------- template<class T> class HashStructIter; template<class T> class HashStruct : public BHashStruct { public: typedef Univ (*HASHF)(const T*); typedef int (*CMPF)(const T*, const T*); inline HashStruct(HASHF phashf, CMPF pcmpf) : BHashStruct((BHashStruct::HASHF)phashf, (BHashStruct::CMPF)pcmpf) { } inline ~HashStruct() { } inline void enter(T* e) { BHashStruct::enter(Univ(e)); } inline T* retrieve(const T* e) const { return (T*)(void*)(BHashStruct::retrieve(Conv<T*>::e((T*)e))); } inline int add(T* e) { return BHashStruct::add(Univ(e)); } inline int remove(const T* e) { return BHashStruct::remove(Conv<T*>::e((T*)e)); } inline T* getone() const { return (T*)(void*)(BHashStruct::getone()); } inline T* removeone() { return (T*)(void*)(BHashStruct::removeone()); } // typedef HashStructIter<T> Iter; }; template<class T> class HashStructIter : public BHashStructIter { public: inline HashStructIter(const HashStruct<T>& s) : BHashStructIter(s) { } inline HashStructIter(const HashStruct<T>& s, Random& r) : BHashStructIter(s,r) { } inline T* operator()() const { return (T*)(void*)(BHashStructIter::value()); } private: void key() const; // disable void value() const; // disable }; // Placed spaces within "< T >" since T may be parametrized itself. #define ForHashStruct(S,T,V) \ { for (HashStructIter< T > zz(S);zz;zz.next()) { T* V=zz(); #define DummyEndFor }} #endif
[ "benjamin.barratt@icloud.com" ]
benjamin.barratt@icloud.com
0966363110a1727553a43387eadb95474eb10ed8
083eb66d642e4e1f8bfa58445a0c246aba55c1f4
/google/CodeJam20/Round1B/ahacker.cpp
59e649fb4cacdf6e8b4ac3e78169b96c089c907a
[]
no_license
amanjoshi668/Progrmming
466441f9a49b3e00ec5502be6710072c5fdd307e
cc43bc4be2bb2bbe11c415a2252827e1be16d03a
refs/heads/master
2021-07-08T03:05:15.925215
2020-07-25T04:06:47
2020-07-25T04:06:47
150,414,535
0
0
null
null
null
null
UTF-8
C++
false
false
5,824
cpp
#include <bits/stdc++.h> #include <unistd.h> //#include <ext/pb_ds/assoc_container.hpp> // Common file //#include <ext/pb_ds/tree_policy.hpp> // Including seg_tree_order_statistics_node_update #include <stdio.h> #include <cassert> using namespace std; //using namespace __gnu_pbds; typedef long long lo; typedef long double ld; #include <ctime> typedef pair<lo, lo> ll; //pair typedef vector<lo> vl; //vector of long typedef vector<ll> vll; //vector of pair typedef priority_queue<lo> p_q; typedef vector<vl> vvl; //vector of vectors #define X first #define Y second #define mp(a, b) make_pair((a), (b)) #define REP(a, b) for (lo i = (a); i < (lo)b; i++) //no need to declare variable i #define REPE(a, b, c, d) \ REP(a, b) \ for (lo j = (c); j < (lo)d; j++) //no need to declare vaiables i,j #define REPV(a, b, c) for (lo(a) = b; (a) < (c); (a)++) //a is the variable #define IREP(a, b) for (lo i = (a); i >= (b); i--) #define IREPV(a, b, c) for (lo(a) = b; (a) >= (c); (a)--) #define correct(x, y, n, m) (0 <= (x) && (x) < (n) && 0 <= (y) && (y) < (m)) #define all(v) (v).begin(), (v).end() #define TRV(a) for (auto &it : a) #define INF 500010 #define MOD 1000000007 #define MOD2 1000000009 #define BLOCK 300 #define CHECK_BIT(var, pos) ((var) & (1 << (pos))) #define pb(a) push_back((a)) #define eps 1e-2 #define PI acos(-1.0) #if _DEBUG #define debug(x) cout << #x << "=" << x << endl #define debug2(x, y) cout << #x << "=" << x << " " << #y << "=" << y << endl; #define debug3(x, y, z) cout << #x << "=" << x << " " << #y << "=" << y << " " << #z << "=" << z << endl; #define debug4(x, y, z, w) cout << #x << "=" << x << " " << #y << "=" << y << " " << #z << "=" << z << " " << #w << "=" << w << endl; #define debug5(x, y, z, w, t) \ cout << #x << "=" << x << " "; \ debug4(y, z, w, t); #define debug6(p, x, y, z, w, t) \ cout << #p << " " << p << " " << #x << "=" << x << " "; \ debug4(y, z, w, t); #define debug7(o, p, x, y, z, w, t) \ cout << #o << " " << o << " "; \ debug6(p, x, y, z, w, t); #define wait \ int xxxx; \ cin >> xxxx; #define derr(x) cerr << #x << "=" << x << endl; #define derr2(x, y) cerr << #x << "=" << x << " " << #y << "=" << y << endl; #define derr3(x, y, z) cerr << #x << "=" << x << " " << #y << "=" << y << " " << #z << "=" << z << endl; #define derr4(x, y, z, w) cerr << #x << "=" << x << " " << #y << "=" << y << " " << #z << "=" << z << " " << #w << "=" << w << endl; #define derr5(x, y, z, w, t) \ cerr << #x << "=" << x << " "; \ derr4(y, z, w, t); #define derr6(p, x, y, z, w, t) \ cerr << #p << " " << p << " " << #x << "=" << x << " "; \ derr4(y, z, w, t); #define derr7(o, p, x, y, z, w, t) \ cerr << #o << " " << o << " "; \ derr6(p, x, y, z, w, t); lo checkpoint_counter = 0; #define checkpoint cerr << "At checkpoint : " << checkpoint_counter++ << endl; #else #define debug(x) ; #define debug2(x, y) ; #define debug3(x, y, z) ; #define debug4(x, y, z, q) ; #define debug5(x, y, z, r, t) ; #define debug6(x, y, z, r, t, s) ; #define debug7(x, y, z, r, t, s, u) ; #define wait ; #define derr(x) ; #define derr2(x, y) ; #define derr3(x, y, z) ; #define derr4(x, y, z, q) ; #define derr5(x, y, z, r, t) ; #define derr6(x, y, z, r, t, s) ; #define derr7(x, y, z, r, t, f, u) ; #define checkpoint ; #endif #define print_matrix(a, n, m) \ REPE(0, n, 0, m) { cout << (a)[i][j] << ((j == m - 1) ? '\n' : ' '); } #define present(container, element) (container.find(element) != container.end()) #define endl "\n" template <typename T> ostream &operator<<(ostream &o, vector<T> v) { if (v.size() > 0) o << v[0]; for (unsigned i = 1; i < v.size(); i++) o << " " << v[i]; return o << " "; } template <typename U, typename V> ostream &operator<<(ostream &o, pair<U, V> p) { return o << "(" << p.first << ", " << p.second << ") "; } template <typename T> istream &operator>>(istream &in, vector<T> &v) { for (unsigned i = 0; i < v.size(); i++) in >> v[i]; return in; } template <typename T> istream &operator>>(istream &in, pair<T, T> &p) { in >> p.X; in >> p.Y; return in; } template <typename T> ostream &operator<<(ostream &o, set<T> v) { TRV(v) o << it << " "; return o << endl; } template <typename T, typename U> ostream &operator<<(ostream &o, map<T, U> v) { TRV(v) o << it << " "; return o << endl; } template <typename T> T &&vmin(T &&val) { return std::forward<T>(val); } template <typename T0, typename T1, typename... Ts> auto vmin(T0 &&val1, T1 &&val2, Ts &&... vs) { return (val1 < val2) ? vmin(val1, std::forward<Ts>(vs)...) : vmin(val2, std::forward<Ts>(vs)...); } template <typename T> T &&vmax(T &&val) { return std::forward<T>(val); } template <typename T0, typename T1, typename... Ts> auto vmax(T0 &&val1, T1 &&val2, Ts &&... vs) { return (val1 > val2) ? vmax(val1, std::forward<Ts>(vs)...) : vmax(val2, std::forward<Ts>(vs)...); } struct custom_hash { static uint64_t splitmix64(uint64_t x) { // http://xorshift.di.unimi.it/splitmix64.c x += 0x9e3779b97f4a7c15; x = (x ^ (x >> 30)) * 0xbf58476d1ce4e5b9; x = (x ^ (x >> 27)) * 0x94d049bb133111eb; return x ^ (x >> 31); } size_t operator()(uint64_t x) const { static const uint64_t FIXED_RANDOM = chrono::steady_clock::now().time_since_epoch().count(); return splitmix64(x + FIXED_RANDOM); } }; void solve(){ } int main(int argc, char *argv[]) { std::ios::sync_with_stdio(false); cin.tie(0); cout.tie(0); cout.precision(20); lo T; cin >> T; REPV(t, 1, T+1){ cout << "Case #" << t << ": "; solve(); } return 0; }
[ "amanjoshi668@gamil.com" ]
amanjoshi668@gamil.com
b50611278e052cb575d6c210ff5ae6e3baeadf90
df81135b7711691086abe2832bc97377d905c8e9
/2016.02.25 Skinned Ani/DirectX3D_Framework_1.4/cObj_Camera.h
3e4145c8a610082d31d86dbaeb036e3c92e7569c
[]
no_license
kwansu/3DEngineProgramming_Practice
b52b806e569cec4457701308dd2390ce2670b537
26d43c251b7e9f810784dffb19ff0bfd19419d49
refs/heads/master
2023-04-21T16:54:10.951063
2021-05-17T06:32:15
2021-05-17T06:32:15
368,079,698
0
0
null
null
null
null
UTF-8
C++
false
false
823
h
#pragma once #include "cGameObject.h" #define CAMERA_MOVE_SPEED 0.5f #define CAMERA_ROTATE_SPEED 0.35f #define CAMERA_ZOOM_SPEED 0.5f enum CAMERA_MODE { FLY_VIEW, ORIGIN_VIEW, TRAIL_VIEW }; class cObj_Camera : public cGameObject { SINGLETONE(cObj_Camera); private: float m_fFoV; float m_fNear; float m_fFar; float m_fDist; float m_fZBuffer; D3DXVECTOR3 *m_pvTargetPos, m_vDefault; D3DXMATRIXA16 m_matView; D3DXMATRIXA16 m_matProj; RECT m_rcClient; cRay m_rayMouse; CAMERA_MODE m_eCameraMode; public: void Setup(); void Update(); void UpdateView(); void UpdateProjection(); void SetTarget(D3DXVECTOR3* pvTargetPos); void MousePickingRay(OUT cRay* prayMouse); cRay GetMouseRay() const; private: void UpdateFlyView(); void UpdateOriginView(); }; extern cObj_Camera* g_pCamera;
[ "kwansu91@naver.com" ]
kwansu91@naver.com
ae48d38bf7ca92dfa6a890648f5bf98e93f08cd9
ab33b145535c3855e4e4fb7227fdcf75df9d91bc
/branche-116/tp/tp7/pb2/tp7_pb2.cpp
68546e58f4f55f1c0f175982e523ae68191c9ecb
[]
no_license
christophebedard/inf1995-h18
6b8a4d90148f8ac2e34389598172709049ad3c13
1c80b1ab46a6fbfc75fbed6cabbb875aaecc99a9
refs/heads/master
2021-03-22T01:10:12.736315
2018-04-18T11:23:29
2018-04-18T11:23:29
118,963,593
0
0
null
null
null
null
UTF-8
C++
false
false
1,131
cpp
#define F_CPU 8000000 #include <avr/io.h> #include <util/delay.h> #include "can.h" int main(){ const uint8_t ROUGE = 0x02; const uint8_t VERT = 0x01; const uint8_t PIN = 0x02; //Selection du pin 2 comme position de lecture pour la classe can const uint16_t VH = 254; //Doit etre elevee pour que l'on puisse obtenir l'ambre avec seulement un peu d'ombrage const uint16_t VL = 150; //En cachant bien la photoresistance avec ce seuil on controle bien l'affichage de vert uint16_t numerique; DDRA = 0x03; //Les deux premieres broches du port A en sortie can c; for (;;){ numerique = (0xFF & (c.lecture(PIN) >> 2)); //Convertis la valeur obtenue en lecture en entier non signe 8 bit if(numerique > VH){ PORTA = ROUGE; } else if(numerique < VL) { PORTA = VERT; } else{ PORTA = ROUGE; _delay_ms(4); PORTA = VERT; _delay_ms(3); } } return 0; }
[ "faouab@l3818-04.info.polymtl.ca" ]
faouab@l3818-04.info.polymtl.ca
56facc81e418a51f4dc256ebd5798e49a51b0ba2
58a0ba5ee99ec7a0bba36748ba96a557eb798023
/Olympiad Solutions/SPOJ/TAP2013I.cpp
1966550c0c9926af64917942df67baf49cf99811
[ "MIT" ]
permissive
adityanjr/code-DS-ALGO
5bdd503fb5f70d459c8e9b8e58690f9da159dd53
1c104c33d2f56fe671d586b702528a559925f875
refs/heads/master
2022-10-22T21:22:09.640237
2022-10-18T15:38:46
2022-10-18T15:38:46
217,567,198
40
54
MIT
2022-10-18T15:38:47
2019-10-25T15:50:28
C++
UTF-8
C++
false
false
1,325
cpp
// Ivan Carvalho // Solution to https://www.spoj.com/problems/TAP2013I/ #include <cstdio> #include <queue> #define MP make_pair using namespace std; typedef pair<int,int> ii; typedef pair<int,ii> iii; const int MAXR = 501; const int UBOUND = 1e6 + 1e5; int matriz[MAXR][MAXR],processado[MAXR][MAXR],iteracao,r,c; int dx[4] = {1,-1,0,0}; int dy[4] = {0,0,1,-1}; inline int valido(int x,int y){ return x >= 1 && x <= r && y >= 1 && y <= c; } int func(int altura){ iteracao++; queue<iii> bfs; bfs.push(MP(0,MP(1,1))); while(!bfs.empty()){ iii davez = bfs.front(); bfs.pop(); int percorrido = davez.first, x = davez.second.first, y = davez.second.second; if(processado[x][y] == iteracao) continue; processado[x][y] = iteracao; if(percorrido + altura >= matriz[x][y]) continue; if(x == r && y == c) return 1; for(int i=0;i<4;i++){ int nx = x + dx[i],ny = y + dy[i]; if(valido(nx,ny) && processado[nx][ny] != iteracao) bfs.push(MP(percorrido+1,MP(nx,ny))); } } return 0; } int main(){ scanf("%d %d",&r,&c); for(int i=1;i<=r;i++){ for(int j=1;j<=c;j++){ scanf("%d",&matriz[i][j]); } } int ini = 0, fim = UBOUND, meio, resp = -1; while(ini <= fim){ meio = (ini + fim)/2; if(func(meio)){ resp = meio; ini = meio + 1; } else fim = meio - 1; } printf("%d\n",resp); return 0; }
[ "samant04aditya@gmail.com" ]
samant04aditya@gmail.com
7ad50ef829c11f1443872d815cf142db7b2559af
33152af93821a3baee32ebe9e9184adb515b7ef7
/src/sys/appmgr/storage_watchdog.h
a71a1e1544f504df7a2cb27b8d45afdbd4d41b06
[ "BSD-3-Clause" ]
permissive
casey/fuchsia
bca750f13f1beba94b73d75b1e660bc3eb912ec3
2b965e9a1e8f2ea346db540f3611a5be16bb4d6b
refs/heads/master
2021-06-20T01:46:38.891626
2020-04-09T23:41:46
2020-04-09T23:41:46
254,491,837
0
0
null
null
null
null
UTF-8
C++
false
false
1,118
h
// Copyright 2019 The Fuchsia 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 SRC_SYS_APPMGR_STORAGE_WATCHDOG_H_ #define SRC_SYS_APPMGR_STORAGE_WATCHDOG_H_ #include <fuchsia/io/c/fidl.h> #include <lib/async/dispatcher.h> #include <lib/zx/channel.h> #include <string> // StorageWatchdog can be used to observe the storage usage on a given // partition, and when the storage usage reaches 95% the isolated component // storage under a given path will be deleted. class StorageWatchdog { public: StorageWatchdog(std::string path_to_watch, std::string path_to_clean) : path_to_watch_(path_to_watch), path_to_clean_(path_to_clean) {} void Run(async_dispatcher_t* dispatcher); size_t GetStorageUsage(); void CheckStorage(async_dispatcher_t* dispatcher); void PurgeCache(); protected: virtual zx_status_t GetFilesystemInfo(zx_handle_t directory, fuchsia_io_FilesystemInfo* out_info); private: std::string path_to_watch_; std::string path_to_clean_; }; #endif // SRC_SYS_APPMGR_STORAGE_WATCHDOG_H_
[ "commit-bot@chromium.org" ]
commit-bot@chromium.org
6b906c3b664f56f03742524b781fd7b6b0bc64ec
e3b3c3da20d700f919ddd84bbac7b1c10aeb5f32
/A3P0A/main.cpp
b6e002166a63165671390c56734ec0c9ccc5af73
[]
no_license
grahamrp/cs106b
f6a55fd73608117a5f9daf1b082f30ac404b0af0
eb9a878abdbbb1f09d411e7d6b35b9239a32f3ec
refs/heads/master
2023-02-06T11:13:57.577390
2020-12-31T16:18:11
2020-12-31T16:18:11
297,124,986
1
0
null
null
null
null
UTF-8
C++
false
false
1,737
cpp
#include <iostream> #include "set.h" #include "random.h" using namespace std; // Number of Paths Home int numPathsHome(int street, int avenue) { // Base case: we're home. if (street == 1 && avenue == 1) return 1; // We fell off the map, not a valid path. if (street < 1 || avenue < 1) return 0; // Recursive case. return numPathsHome(street - 1, avenue) + numPathsHome(street, avenue - 1); } // Random Subsets implementation 1 // Uses the basic subsets pattern but instead of generating all subsets "with" and "without" // the first element, the first element is added (or not) randomly. Set<int> RecSubsets(Set<int> soFar, Set<int> rest) { if (rest.isEmpty()) { return soFar; } else { if (randomChance(0.5)) soFar.add(rest.first()); rest.remove(rest.first()); return RecSubsets(soFar, rest); } } Set<int> randomSubsetOf(Set<int>& s) { Set<int> soFar; return RecSubsets(soFar, s); } // Random Subsets implementation 2 // Simpler implementation based on recursive understanding that the solution is // <maybe include first element> + random subset of the rest Set<int> randomSubsetOf2(Set<int> s) { // base case if (s.isEmpty()) return s; // separate first from s int first = s.first(); s -= first; return randomChance(0.5)? randomSubsetOf2(s) + first : randomSubsetOf2(s); } int main() { cout << "numPathsHome: " << numPathsHome(3, 2) << endl << endl; Set<int> s; s += 1, 2, 3, 4, 5; cout << "randomSubset of" << endl << s << endl << "is" << endl << randomSubsetOf(s) << endl; cout << "randomSubset2 of" << endl << s << endl << "is" << endl << randomSubsetOf2(s) << endl; return 0; }
[ "graham@grahamrp.com" ]
graham@grahamrp.com
6ad5d3544eee8312c7ec5eed0c8545a646c644f2
084006eb442b60b82b3d85d61a3b53d21c5c8855
/shared/util/boost/boost/smart_ptr/detail/sp_counted_base_gcc_ppc.hpp
0ac945deccb972410125443a1c6ce1f210cb76d6
[ "XFree86-1.1", "LicenseRef-scancode-unknown-license-reference", "BSD-3-Clause" ]
permissive
SethRobinson/proton
7aadcb38bc676c136dce01b8f6773fd75fa33d55
6b1474e75a2acf48d848c70fcb043ce8223001a9
refs/heads/master
2023-08-31T11:04:21.575522
2023-08-29T07:44:50
2023-08-29T07:44:50
142,253,855
81
31
NOASSERTION
2023-08-07T22:02:41
2018-07-25T05:55:38
C++
UTF-8
C++
false
false
4,071
hpp
#ifndef BOOST_SMART_PTR_DETAIL_SP_COUNTED_BASE_GCC_PPC_HPP_INCLUDED #define BOOST_SMART_PTR_DETAIL_SP_COUNTED_BASE_GCC_PPC_HPP_INCLUDED // MS compatible compilers support #pragma once #if defined(_MSC_VER) && (_MSC_VER >= 1020) # pragma once #endif // // detail/sp_counted_base_gcc_ppc.hpp - g++ on PowerPC // // Copyright (c) 2001, 2002, 2003 Peter Dimov and Multi Media Ltd. // Copyright 2004-2005 Peter Dimov // // Distributed under the Boost Software License, Version 1.0. (See // accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) // // // Lock-free algorithm by Alexander Terekhov // // Thanks to Ben Hitchings for the #weak + (#shared != 0) // formulation // #include <boost/smart_ptr/detail/sp_typeinfo_.hpp> #include <boost/smart_ptr/detail/sp_obsolete.hpp> #include <boost/config.hpp> #if defined(BOOST_SP_REPORT_IMPLEMENTATION) #include <boost/config/pragma_message.hpp> BOOST_PRAGMA_MESSAGE("Using g++/PowerPC sp_counted_base") #endif BOOST_SP_OBSOLETE() namespace boost { namespace detail { inline void atomic_increment( int * pw ) { // ++*pw; int tmp; __asm__ ( "0:\n\t" "lwarx %1, 0, %2\n\t" "addi %1, %1, 1\n\t" "stwcx. %1, 0, %2\n\t" "bne- 0b": "=m"( *pw ), "=&b"( tmp ): "r"( pw ), "m"( *pw ): "cc" ); } inline int atomic_decrement( int * pw ) { // return --*pw; int rv; __asm__ __volatile__ ( "sync\n\t" "0:\n\t" "lwarx %1, 0, %2\n\t" "addi %1, %1, -1\n\t" "stwcx. %1, 0, %2\n\t" "bne- 0b\n\t" "isync": "=m"( *pw ), "=&b"( rv ): "r"( pw ), "m"( *pw ): "memory", "cc" ); return rv; } inline int atomic_conditional_increment( int * pw ) { // if( *pw != 0 ) ++*pw; // return *pw; int rv; __asm__ ( "0:\n\t" "lwarx %1, 0, %2\n\t" "cmpwi %1, 0\n\t" "beq 1f\n\t" "addi %1, %1, 1\n\t" "1:\n\t" "stwcx. %1, 0, %2\n\t" "bne- 0b": "=m"( *pw ), "=&b"( rv ): "r"( pw ), "m"( *pw ): "cc" ); return rv; } class BOOST_SYMBOL_VISIBLE sp_counted_base { private: sp_counted_base( sp_counted_base const & ); sp_counted_base & operator= ( sp_counted_base const & ); int use_count_; // #shared int weak_count_; // #weak + (#shared != 0) public: sp_counted_base(): use_count_( 1 ), weak_count_( 1 ) { } virtual ~sp_counted_base() // nothrow { } // dispose() is called when use_count_ drops to zero, to release // the resources managed by *this. virtual void dispose() = 0; // nothrow // destroy() is called when weak_count_ drops to zero. virtual void destroy() // nothrow { delete this; } virtual void * get_deleter( sp_typeinfo_ const & ti ) = 0; virtual void * get_local_deleter( sp_typeinfo_ const & ti ) = 0; virtual void * get_untyped_deleter() = 0; void add_ref_copy() { atomic_increment( &use_count_ ); } bool add_ref_lock() // true on success { return atomic_conditional_increment( &use_count_ ) != 0; } void release() // nothrow { if( atomic_decrement( &use_count_ ) == 0 ) { dispose(); weak_release(); } } void weak_add_ref() // nothrow { atomic_increment( &weak_count_ ); } void weak_release() // nothrow { if( atomic_decrement( &weak_count_ ) == 0 ) { destroy(); } } long use_count() const // nothrow { return static_cast<int const volatile &>( use_count_ ); } }; } // namespace detail } // namespace boost #endif // #ifndef BOOST_SMART_PTR_DETAIL_SP_COUNTED_BASE_GCC_PPC_HPP_INCLUDED
[ "seth@rtsoft.com" ]
seth@rtsoft.com
e2c144c6bdc814aaf27f934ba37e00660f2d66d2
64e3a035e30e68849f39ca1e3ab12ac5a13b0522
/Week 9/CollisionDetection/CollisionDetection/Tile.cpp
25c4059e185f59980376b8c9d28356f66d640958
[]
no_license
Carthur-P/Programming-4
598bc6810cafa1ba11d3472ac2c40ed4b1052d37
1934d57e4033e5a308f01d318a4a4714eee435d3
refs/heads/master
2022-06-27T03:38:49.474381
2020-05-07T08:49:25
2020-05-07T08:49:25
259,894,215
0
0
null
null
null
null
UTF-8
C++
false
false
114
cpp
#include "Tile.h" Tile::Tile(String^ filePath)//constructor { tile = gcnew Bitmap(Image::FromFile(filePath)); }
[ "pongp1@student.op.ac.nz" ]
pongp1@student.op.ac.nz
2a400bc674621eec2460d1bffba9fd40b4e8ca64
a138ba3db86bd07b0e744b8d98e7d7d691d66cfe
/samples/hello_mesh/main.cpp
ba7da1a0b5c6cb760d38fcf4d2d31bfa56f23ff7
[ "MIT" ]
permissive
jigneshBadrakhiya/vcglib_samples
ef9f2fd942bd6a4569eecb5948a4e1c29bb8cfa1
dbe70bd21bbc618286bbdf7533782a398a4f276d
refs/heads/master
2023-03-16T21:06:39.772428
2020-10-09T09:27:03
2020-10-09T09:27:03
null
0
0
null
null
null
null
UTF-8
C++
false
false
960
cpp
#include<vcg/complex/algorithms/create/platonic.h> #include<vcg/complex/allocate.h> class MyFace; class MyVertex; struct MyUsedTypes : public vcg::UsedTypes< vcg::Use<MyVertex>::AsVertexType, vcg::Use<MyFace>::AsFaceType> {}; class MyVertex : public vcg::Vertex< MyUsedTypes, vcg::vertex::Coord3f, vcg::vertex::BitFlags, vcg::vertex::VFAdj> {}; class MyFace : public vcg::Face< MyUsedTypes, vcg::face::VertexRef, vcg::face::VFAdj> {}; class MyMesh : public vcg::tri::TriMesh<vector<MyVertex>, vector<MyFace> > {}; int main(){ MyMesh mesh; vcg::tri::Octahedron(mesh); // create preset mesh data MyMesh::FaceIterator fi; for(fi=mesh.face.begin(); fi!=mesh.face.end(); ++fi){ // iterate each faces std::cout << vcg::tri::Index(mesh, *fi) << ": "; // get face index for(int i=0; i<fi->VN(); ++i){ // iterate each vertex of face std::cout << vcg::tri::Index(mesh, fi->V(i)) << ","; // get vertex index } std::cout << std::endl; } return 1; }
[ "kyohei.nitta@arithmer.co.jp" ]
kyohei.nitta@arithmer.co.jp
7e4d1b2ad3305c1c1c0e7c57a3fef62e9e6b7c52
e1cd579c8dcd952cc338ce3684397eddb0920760
/stas-2018/pawian.cpp
7c3701805a80061862f967c0fe4552d832316324
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
Aleshkev/algoritmika
0b5de063870cb8a87654613241a204b534037079
fc95b0c0f318d9eb4ef1fef4cc3c6e85d2417189
refs/heads/master
2021-06-05T10:46:59.313945
2020-02-02T12:39:47
2020-02-02T12:39:47
148,994,588
3
0
null
null
null
null
UTF-8
C++
false
false
1,347
cpp
#include <bits/stdc++.h> using namespace std; typedef intmax_t I; template <typename T> ostream &operator<<(ostream &o, const vector<T> &v) { o << "["; for (auto i = v.begin(); i != v.end(); ++i) { cout << *i; if (i != prev(v.end())) cout << ", "; } cout << "]"; return o; } int main() { ios_base::sync_with_stdio(false); cin.tie(nullptr), cout.tie(nullptr); I n, m; cin >> n >> m; vector<vector<I>> graph(n); for (I i = 0; i < m; ++i) { I a, b; cin >> a >> b; --a, --b; graph[a].push_back(b), graph[b].push_back(a); } const I max_n = 1e5; bitset<max_n> b; b[0] = 1; vector<I> color(n, -1); for (I i = 0; i < n; ++i) { if (color[i] != -1) continue; vector<I> of_color(2); color[i] = 0; vector<I> dfs = {i}; while (!dfs.empty()) { I current = dfs.back(); dfs.pop_back(); ++of_color[color[current]]; for (I neighbor : graph[current]) { if (color[neighbor] != -1) continue; color[neighbor] = !color[current]; dfs.push_back(neighbor); } } b |= (b << of_color[0]) | (b << of_color[1]); } // cout << b << endl; for (I i = n / 2; i <= n; ++i) { if (b[i]) { cout << i * (n - i) - m << '\n'; break; } } #ifdef UNITEST cout.flush(); system("pause"); #endif return 0; }
[ "j.aleszkiewicz@gmail.com" ]
j.aleszkiewicz@gmail.com
8aa3a4a83b3e481ecc547a69e7c19d0f1902febf
7fcc2e69f02d981ca4d280b41436cce34932b905
/20-libstdcpp/strings.cpp
9cc314d75164e145562d1df5c3d4dea6976a4354
[ "LicenseRef-scancode-public-domain" ]
permissive
AlekSi/valgrind-suppressions
ab76afb9b507f5e4a0cc34f393c2804dcb885e25
242fd828d2f70bc3372c01d6cf29fd9ae1ed46ef
refs/heads/master
2020-05-18T18:08:20.662981
2010-02-13T15:57:29
2010-02-13T15:57:29
605,210
2
0
null
null
null
null
UTF-8
C++
false
false
202
cpp
#include "strings.h" #include <string> using namespace std; ValgrindSuppressionsForString::ValgrindSuppressionsForString() { string str1("looks nice!"); string str2 = str1; str2.insert(4, str1); }
[ "alek.silverstone@gmail.com" ]
alek.silverstone@gmail.com
ff853ebd85d213b4f02f182c1111c728a65fbbd7
b3d704a69fb833da81b8eb729cbdd0718e29b53f
/Persistent_Set/my_shared_ptr.h
1a50c219bbf740c905ec42c72bfebcab10ecf553
[]
no_license
DaminovN/CPP
e8eb833d9ee899afa3f76d6729bee36639fad1db
4575412c60a0ce5dfa8fd7e1cdafc0851321d732
refs/heads/master
2021-01-18T18:39:44.048854
2018-09-29T10:31:38
2018-09-29T10:31:38
86,868,377
0
1
null
null
null
null
UTF-8
C++
false
false
1,981
h
#pragma once #include <bits/stdc++.h> template <typename T> struct my_shared_ptr { my_shared_ptr() = delete; my_shared_ptr(T* other) : cnt(nullptr), ptr(other) { if (ptr) { try { cnt = new size_t(1); } catch(...) { delete ptr; throw; } } } my_shared_ptr(my_shared_ptr const& other) noexcept : cnt(other.cnt), ptr(other.ptr) { if (ptr) ++(*cnt); } my_shared_ptr(my_shared_ptr&& other) noexcept : cnt(other.cnt), ptr(other.ptr) { other.ptr = nullptr; } my_shared_ptr& operator=(my_shared_ptr const& other) noexcept { my_shared_ptr temp(other); swap(temp); return *this; } my_shared_ptr& operator=(my_shared_ptr&& other) noexcept { swap(other); return *this; } T& operator *() const noexcept { return *ptr; } T* operator ->() const noexcept { return ptr; } explicit operator bool() const noexcept { return (ptr != nullptr); } void swap(my_shared_ptr& other) noexcept { std::swap(other.ptr, ptr); std::swap(other.cnt, cnt); } ~my_shared_ptr() noexcept { erase(); } friend bool operator == (my_shared_ptr const& a, my_shared_ptr const& b) noexcept { return a.ptr == b.ptr; } friend bool operator != (my_shared_ptr const& a, my_shared_ptr const& b) noexcept { return !(a == b); } friend bool operator == (my_shared_ptr const& a, std::nullptr_t) noexcept { return !a.ptr; } friend bool operator != (my_shared_ptr const& a, std::nullptr_t) noexcept { return a.ptr; } friend bool operator == (std::nullptr_t, my_shared_ptr const& a) noexcept { return a.ptr == nullptr; } friend bool operator != (std::nullptr_t, my_shared_ptr const& a) noexcept { return a.ptr != nullptr; } private: size_t* cnt; T* ptr; void erase() noexcept { if (ptr) { if (*cnt == 1) { delete cnt; delete ptr; } else --(*cnt); } } };
[ "ndnodir@gmail.com" ]
ndnodir@gmail.com
f8fa67b920e8800bd5d0b2c309a913cddda844fe
aa3e285508d43ff92658692308c812f8d1c6091a
/UnitTest/GaussJordanTest.h
082174a99b9381af5ac89579166f047a70984221
[]
no_license
svenschmidt75/LinearSolverLibrary
f861df18fad424495236a076bf782619b69c51c3
05476d1c94a7d3c2028277985b1968b7c7f949fb
refs/heads/master
2021-01-10T03:09:26.513698
2015-11-22T18:38:29
2015-11-22T18:38:29
55,301,958
2
0
null
null
null
null
UTF-8
C++
false
false
936
h
/* * Name : GaussJordanTest * Path : * Use : * Author: Sven Schmidt * Date : 08/03/2013 */ #pragma once #include <cppunit/extensions/HelperMacros.h> class GaussJordanTest : public CppUnit::TestFixture { CPPUNIT_TEST_SUITE(GaussJordanTest); CPPUNIT_TEST(Test2by2_1); CPPUNIT_TEST(Test2by2_2); CPPUNIT_TEST(Test3by3_1); CPPUNIT_TEST(Test3by3_2); CPPUNIT_TEST(Test3by3_3); CPPUNIT_TEST(Test3by3_4); CPPUNIT_TEST(Test4by4_1); CPPUNIT_TEST(Test4by4_2); CPPUNIT_TEST(Test4by4_3); CPPUNIT_TEST(Test4by4_4); CPPUNIT_TEST(Test5by5_1); CPPUNIT_TEST_SUITE_END(); public: void setUp(); void tearDown(); protected: void Test2by2_1(); void Test2by2_2(); void Test3by3_1(); void Test3by3_2(); void Test3by3_3(); void Test3by3_4(); void Test4by4_1(); void Test4by4_2(); void Test4by4_3(); void Test4by4_4(); void Test5by5_1(); };
[ "svenschmidt75@googlemail.com" ]
svenschmidt75@googlemail.com
6691ca37bcf072b1374af1ea1a4c797d8e36698c
0106a54ff8393e97495d414560d7d5b06fec895a
/Problems[LV3]/[LV3]기지국 설치.cpp
aed16228ce2409620ef5969c7736865ac97496c3
[]
no_license
ssoo2024/Programmers
28cab1a7a3fb2cafd28e8d80bcaf8ec2388f7494
8aa9c50df029dd622e23c80477f7fc96c267e1d2
refs/heads/main
2022-12-28T21:36:50.424355
2020-10-16T05:36:10
2020-10-16T05:36:10
303,936,542
0
0
null
null
null
null
UTF-8
C++
false
false
479
cpp
#include <iostream> #include <vector> #include <cmath> using namespace std; int answer, from, to, ind = 1; int solution(int n, vector<int> stations, int w) { vector<pair<int, int>> interval; stations.push_back(n+w+1); stations.insert(stations.begin(), -w); while(ind < stations.size()){ from = stations[ind - 1]+w+1; to = stations[ind++]-w-1; answer += max(0, (int)ceil(double(to-from+1)/double(w+w+1))); } return answer; }
[ "sskim@gimseongsuui-MacBookPro.local" ]
sskim@gimseongsuui-MacBookPro.local
8ad4d2c9d3f6e43bae4cef8ac33c32be7387dbff
260ae00f90fad711abbb45a1bc5aae6f41ecdfea
/Exception.cpp
e59023ab2d5f7753b45b1dff9a2ff72598763ad7
[]
no_license
JDM-ULL-93/DAA_Practica_2_Ram_Simulator
97a30096db803541cfeb58160388a4d1f1b07027
70c30cb1948ea8f1538ce0aa0677219dafd2e2e0
refs/heads/master
2021-01-05T21:38:37.789424
2020-05-27T20:12:29
2020-05-27T20:12:29
241,145,006
0
0
null
null
null
null
UTF-8
C++
false
false
452
cpp
#include "Exception.h" const char * Exception::what() const throw() { return _errorMsg.c_str(); } const char * ExceptionErrorNumber::what() const throw() { const size_t SIZE = 30; char* buffer = new char[SIZE]; memset(buffer, '\0', SIZE); size_t written = sprintf_s(buffer, SIZE, ". Error Number: %d\0", _errorNumber); std::string* result = new std::string(_errorMsg); *result += std::string(buffer); delete buffer; return (*result).data(); }
[ "alu0101160337@ull.edu.es" ]
alu0101160337@ull.edu.es
05d6f309b4879bf77f9d9f9a367b40d0217a8090
b21bcc5c2203ce4a7d5ceb9bcf0d72cf79db6abc
/leetcode/easy/longest_cont_increasing_subseq/src/main.cpp
9306d6787a6587a97e7a565248b5cde6921a3045
[]
no_license
zhaoyunfuture/study
81ad69a4abfedb3d14efa1080a2bcf091ab2e1a8
ebed9809c84c31ff67b988b3bb3c3289b2b818d7
refs/heads/master
2022-01-18T21:33:06.613463
2022-01-09T13:19:58
2022-01-09T13:19:58
47,873,321
0
0
null
null
null
null
UTF-8
C++
false
false
637
cpp
#include <string.h> #include <string> #include <iostream> using namespace std; class Solution { public: int findLengthOfLCIS(vector<int>& nums) { int size = nums.size(); if(size ==0) return 0; if(size == 1) return 1; int max = 1; int t = 1; for(int i=1;i<size;++i) { if(nums.at(i)>nums.at(i-1)){ t++; }else { if(t>max) max = t; t = 1; } } return max>t?max:t; } }; int main(int argc, char* argv[]) { return 0; }
[ "zyfuture@qq.com" ]
zyfuture@qq.com
f35dd756f66487c53be08ab01191182cee88fbda
b85265172651aebdd90ee6a383a2339c304a7b3d
/exercises/pointer_array.cpp
b5a15ecba92c0b539621bfe50e301479a09d8083
[]
no_license
tertiarycourses/CPlusPlusTraining
e8d4e495dd81c7845caee7c9369f0b0c4295a481
6bbb28580f856c8a2e56c8080753e75ef70b2e1f
refs/heads/master
2020-06-16T14:16:15.232567
2017-05-11T14:43:25
2017-05-11T14:43:25
75,093,145
6
2
null
null
null
null
UTF-8
C++
false
false
509
cpp
#include <cstdio> int main(void) { int data[] = {15, 20, 30, 45, 60, 80}; int *ptr = data; //ptr points to start of array printf("data[] starts at address %x with value %d\n", ptr, *ptr); //Calculate the length of the array int numElements = sizeof(data) / sizeof(int); printf("There are %d elements in data[]\n", numElements); for(int i=0; i<numElements; i++){ printf("Address %x stores value %d\n", ptr, *ptr); ptr++; } return 0; }
[ "angch@tertiaryinfotech.com" ]
angch@tertiaryinfotech.com
ce95bd7d67830fa006bb80cc55d8bbdd5eb29296
1e523e9004c7be60d891a1e8d403bd3ca20f72cb
/src/common/ValPos.cpp
90fa01b2f2b372cf8a8ae127ca110c51dcae0f57
[]
no_license
Kamilll/LRCS
4e6516c9eebadc81f90920acbff3cef8cf8210e9
dcbe3aa3a4fd916d04a93012e6d64e06a5e6e431
refs/heads/master
2020-05-23T10:10:47.607250
2013-09-22T07:02:09
2013-09-22T07:02:09
null
0
0
null
null
null
null
UTF-8
C++
false
false
96
cpp
#include "ValPos.h" ValPos::~ValPos() { if (value && type != STRINGTYPE) delete[] value; }
[ "vincezklee@gmail.com" ]
vincezklee@gmail.com
f5b4a02a31a5bf7e13269aeaf12c97f5745a8e0c
be76cc4c873d6edd62426a0ad7a19e3f44630979
/omi/match/result.hpp
d28e10df59a22360e2adec9d673c9eb369832459
[]
no_license
valmac/latency-lab
c5893f89ec4af486ecde93c1f03e17e921d44c36
33b6645cd9fa01c86d67cc5693bf916f2b117bd3
refs/heads/master
2022-12-11T21:02:39.861617
2020-09-09T03:03:47
2020-09-09T03:03:47
null
0
0
null
null
null
null
UTF-8
C++
false
false
1,013
hpp
#ifndef OMI_MATCH_RESULT_HPP_ #define OMI_MATCH_RESULT_HPP_ #include <omi/match/paths.hpp> #include <omi/match/events.hpp> #include <omi/match/run.hpp> // Matching results namespace omi::match { template <typename inbound, typename outbound> struct result { //// Member Variables /////////// std::string name; // Result Name paths path; // Data Files events<inbound, outbound> data; // Matched Events //// Methods /////////// // Return delta calculation by time period auto deltas(period period) const { return data.matched.deltas(period); } // Return run information auto run(const period period) const { return match::run{ name, path, period, deltas(period)}; } }; /* // Stream operator inline std::ostream &operator<<(std::ostream &out, const results &file) { return out << " Inbound: " << file.inbound << std::endl << " Outbound: " << file.outbound << std::endl; } */ } #endif
[ "contact.omi@protonmail.com" ]
contact.omi@protonmail.com
74b5bc1e7c5a4f6be89b656abc4a19660711045b
c2aa1ea6ec509a457a21b82d24243f69101f5e56
/pathtracer/src/scene/bounds.cpp
dff343c310f1290aa0c7bfbf50b9a50dbca49a67
[]
no_license
AgentLee/PathTracer
96647ab7ccb19dee30ccb582d0817e3de4f086e2
104c4de02f5ef7ad4663a59b1ceececda6215b53
refs/heads/master
2021-06-16T15:27:31.648587
2017-10-26T12:25:37
2017-10-26T12:25:37
101,907,807
0
0
null
null
null
null
UTF-8
C++
false
false
4,656
cpp
#include "bounds.h" // Computes the intersection given the ray // Only computes the t value and returns true/false on intersection // -t values are valid iff the ray's origin lies within the box bool Bounds3f::Intersect(const Ray &r, float* t) const { //TODO float t_n = -1000000; float t_f = 1000000; for(int i = 0; i < 3; i++){ //Ray parallel to slab check if(r.direction[i] == 0){ if(r.origin[i] < this->min[i] || r.origin[i] > this->max[i]){ return false; } } //If not parallel, do slab intersect check float t0 = (this->min[i] - r.origin[i])/r.direction[i]; float t1 = (this->max[i] - r.origin[i])/r.direction[i]; if(t0 > t1){ float temp = t1; t1 = t0; t0 = temp; } if(t0 > t_n){ t_n = t0; } if(t1 < t_f){ t_f = t1; } } if(t_n < t_f) { float t_tmp = t_n > 0 ? t_n : t_f; bool inBox = r.origin.x > this->min.x && r.origin.x < max.x && r.origin.y > this->min.y && r.origin.y < max.y && r.origin.z > this->min.z && r.origin.z < max.z; if(t_tmp < 0.f) { if(!inBox) { return false; } } *t = t_tmp; } else{//If t_near was greater than t_far, we did not hit the cube return false; } } // Transform the corners of the bounding box based on the // input matrix. From this compute a new bounding box that // encompasses these corners. The invoker is a Bounds3f and // return a new Bounds3f with the transformations applied. Bounds3f Bounds3f::Apply(const Transform &tr) { //TODO Point3f c1 = Point3f(tr.T() * glm::vec4(min.x, max.y, min.z, 1.f)); Point3f c2 = Point3f(tr.T() * glm::vec4(min.x, min.y, min.z, 1.f)); Point3f c3 = Point3f(tr.T() * glm::vec4(max.x, max.y, min.z, 1.f)); Point3f c4 = Point3f(tr.T() * glm::vec4(max.x, min.y, min.z, 1.f)); Point3f c5 = Point3f(tr.T() * glm::vec4(min.x, max.y, max.z, 1.f)); Point3f c6 = Point3f(tr.T() * glm::vec4(min.x, min.y, max.z, 1.f)); Point3f c7 = Point3f(tr.T() * glm::vec4(max.x, max.y, max.z, 1.f)); Point3f c8 = Point3f(tr.T() * glm::vec4(max.x, min.y, max.z, 1.f)); Bounds3f bounds = Union(Union(Union(Union(Union(Union(Union(Bounds3f(c1), c2), c3), c4), c5), c6), c7), c8); this->min = bounds.min; this->max = bounds.max; return bounds; // Bounds3f transformedBounds(Point3f(tr.T() * glm::vec4(min.x, min.y, min.z, 1.f))); // transformedBounds = Union(transformedBounds, Point3f(tr.T() * glm::vec4(max.x, min.y, min.z, 1.f))); // transformedBounds = Union(transformedBounds, Point3f(tr.T() * glm::vec4(min.x, max.y, min.z, 1.f))); // transformedBounds = Union(transformedBounds, Point3f(tr.T() * glm::vec4(min.x, min.y, max.z, 1.f))); // transformedBounds = Union(transformedBounds, Point3f(tr.T() * glm::vec4(min.x, max.y, max.z, 1.f))); // transformedBounds = Union(transformedBounds, Point3f(tr.T() * glm::vec4(max.x, max.y, min.z, 1.f))); // transformedBounds = Union(transformedBounds, Point3f(tr.T() * glm::vec4(max.x, min.y, max.z, 1.f))); // transformedBounds = Union(transformedBounds, Point3f(tr.T() * glm::vec4(max.x, max.y, max.z, 1.f))); // this->min = transformedBounds.min; // this->max = transformedBounds.max; // return transformedBounds; } // Returns the surface area of the invoking Bounds3f. // Use this when applying the surface area heuristic // to split the BVH. float Bounds3f::SurfaceArea() const { //TODO Vector3f d = Diagonal(); return 2.f * (d.x * d.y + d.x * d.z + d.y * d.z); } // Finds the Bounds3f(min, max) Bounds3f Union(const Bounds3f& b1, const Bounds3f& b2) { return Bounds3f(Point3f(std::min(b1.min.x, b2.min.x), std::min(b1.min.y, b2.min.y), std::min(b1.min.z, b2.min.z)), Point3f(std::max(b1.max.x, b2.max.x), std::max(b1.max.y, b2.max.y), std::max(b1.max.z, b2.max.z))); } Bounds3f Union(const Bounds3f& b1, const Point3f& p) { return Bounds3f(Point3f(std::min(b1.min.x, p.x), std::min(b1.min.y, p.y), std::min(b1.min.z, p.z)), Point3f(std::max(b1.max.x, p.x), std::max(b1.max.y, p.y), std::max(b1.max.z, p.z))); } Bounds3f Union(const Bounds3f& b1, const glm::vec4& p) { return Union(b1, Point3f(p)); }
[ "agentlee927@gmail.com" ]
agentlee927@gmail.com
7ead6c82e82bb6c4b8d19d69949d84dbffa2b157
127bdd5a83e358e0860f4e0b8baac2485e2c7535
/the game/GeometryBuilder.cpp
f20ac745d9cc09576d758c6cad23f09eacab580e
[]
no_license
agerse/PFG-assignment
46de33670274d8b34d9de3afee81b6bc6251aae5
53ae12783c98789bce59dcfff510efc272c7010a
refs/heads/master
2021-01-10T14:55:23.895057
2016-04-03T18:30:53
2016-04-03T18:30:53
52,002,425
0
0
null
null
null
null
UTF-8
C++
false
false
8,105
cpp
#include "SimpleMath.h" #include "ShaderTypes.h" #include "GeometryBuilder.h" #include "Mesh.h" #include "Model.h" using namespace DirectX; using namespace DirectX::SimpleMath; Mesh& BuildQuad(MeshManager& mgr) { // Create vertex buffer VertexPosNormTex vertices[] = { //quad in the XZ plane { Vector3(-1, 0, -1), Vector3(0, 1, 0), Vector2(0, 1) }, { Vector3(-1, 0, 1), Vector3(0, 1, 0), Vector2(0, 0) }, { Vector3(1, 0, 1), Vector3(0, 1, 0), Vector2(1, 0) }, { Vector3(1, 0, -1), Vector3(0, 1, 0), Vector2(1, 1) } }; // Create the index buffer UINT indices[] = { // front face 0, 1, 2, 0, 2, 3 }; Mesh &mesh = mgr.CreateMesh("quad"); MaterialExt mat = MaterialExt::default; mesh.CreateFrom(vertices, 4, indices, 6, mat, 6); return mesh; } Mesh& BuildPyramid(MeshManager& mgr) { // Create vertex buffer VertexPosNormTex vertices[] = { //front { Vector3(-1, 0, -1), Vector3(0, 0, 0), Vector2(0, 0) }, { Vector3(0, 1, 0), Vector3(0, 0, 0), Vector2(0, 0) }, { Vector3(1, 0, -1), Vector3(0, 0, 0), Vector2(0, 0) }, //left { Vector3(-1, 0, -1), Vector3(0, 0, 0), Vector2(0, 0) }, { Vector3(0, 0, 1), Vector3(0, 0, 0), Vector2(0, 0) }, { Vector3(0, 1, 0), Vector3(0, 0, 0), Vector2(0, 0) }, //right { Vector3(1, 0, -1), Vector3(0, 0, 0), Vector2(0, 0) }, { Vector3(0, 1, 0), Vector3(0, 0, 0), Vector2(0, 0) }, { Vector3(0, 0, 1), Vector3(0, 0, 0), Vector2(0, 0) }, //bottom { Vector3(-1, 0, -1), Vector3(0, 0, 0), Vector2(0, 0) }, { Vector3(1, 0, -1), Vector3(0, 0, 0), Vector2(0, 0) }, { Vector3(0, 0, 1), Vector3(0, 0, 0), Vector2(0, 0) } }; // Create the index buffer UINT indices[] = { // front face 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }; //make some face normals for (int i = 0; i < 4; ++i) { int idx = i * 3; Vector3 a(vertices[idx].Pos - vertices[idx + 1].Pos), b(vertices[idx + 2].Pos - vertices[idx + 1].Pos); a.Normalize(); b.Normalize(); vertices[idx].Norm = vertices[idx + 1].Norm = vertices[idx + 2].Norm = b.Cross(a); } Mesh &mesh = mgr.CreateMesh("pyramid"); MaterialExt mat = MaterialExt::default; mesh.CreateFrom(vertices, 12, indices, 12, mat, 12); return mesh; } Mesh& BuildQuadPyramid(MeshManager& mgr) { VertexPosNormTex vertices[] { //front { Vector3(-1, 0, -1), Vector3(0, 0, 0), Vector2(0, 1) }, { Vector3(0, 1, 0), Vector3(0, 0, 0), Vector2(0.5f, 0.5f) }, { Vector3(1, 0, -1), Vector3(0, 0, 0), Vector2(1, 1) }, //left { Vector3(-1, 0, 1), Vector3(0, 0, 0), Vector2(0, 0) }, { Vector3(0, 1, 0), Vector3(0, 0, 0), Vector2(0.5f, 0.5f) }, { Vector3(-1, 0, -1), Vector3(0, 0, 0), Vector2(0, 1) }, //right { Vector3(1, 0, -1), Vector3(0, 0, 0), Vector2(1, 1) }, { Vector3(0, 1, 0), Vector3(0, 0, 0), Vector2(0.5f, 0.5f) }, { Vector3(1, 0, 1), Vector3(0, 0, 0), Vector2(1, 0) }, //back { Vector3(1, 0, 1), Vector3(0, 0, 0), Vector2(1, 0) }, { Vector3(0, 1, 0), Vector3(0, 0, 0), Vector2(0.5f, 0.5f) }, { Vector3(-1, 0, 1), Vector3(0, 0, 0), Vector2(0, 0) } }; // Create the index buffer UINT indices[] { // front face 0, 1, 2, 3, 4, 5, 6, 7, 8, 9,10,11 }; //make some face normals for (int i = 0; i < 4; ++i) { int idx = i * 3; Vector3 a(vertices[idx].Pos - vertices[idx + 1].Pos), b(vertices[idx + 2].Pos - vertices[idx + 1].Pos); a.Normalize(); b.Normalize(); vertices[idx].Norm = vertices[idx + 1].Norm = vertices[idx + 2].Norm = b.Cross(a); } Mesh &mesh = mgr.CreateMesh("qpyramid"); MaterialExt mat = MaterialExt::default; mesh.CreateFrom(vertices, 12, indices, 12, mat, 12); return mesh; } Mesh& BuildCube(MeshManager& mgr) { // Create vertex buffer VertexPosNormTex vertices[] = { //front { Vector3(-1, -1, -1), Vector3(0, 0, -1), Vector2(0, 1) }, { Vector3(-1, 1, -1), Vector3(0, 0, -1), Vector2(0, 0) }, { Vector3(1, 1, -1), Vector3(0, 0, -1), Vector2(1, 0) }, { Vector3(1, -1, -1), Vector3(0, 0, -1), Vector2(1, 1) }, //right { Vector3(1, -1, -1), Vector3(1, 0, 0), Vector2(0, 1) }, { Vector3(1, 1, -1), Vector3(1, 0, 0), Vector2(0, 0) }, { Vector3(1, 1, 1), Vector3(1, 0, 0), Vector2(1, 0) }, { Vector3(1, -1, 1), Vector3(1, 0, 0), Vector2(1, 1) }, //left { Vector3(-1, -1, 1), Vector3(-1, 0, 0), Vector2(0, 1) }, { Vector3(-1, 1, 1), Vector3(-1, 0, 0), Vector2(0, 0) }, { Vector3(-1, 1, -1), Vector3(-1, 0, 0), Vector2(1, 0) }, { Vector3(-1, -1, -1), Vector3(-1, 0, 0), Vector2(1, 1) }, //top { Vector3(-1, 1, -1), Vector3(0, 1, 0), Vector2(0, 1) }, { Vector3(-1, 1, 1), Vector3(0, 1, 0), Vector2(0, 0) }, { Vector3(1, 1, 1), Vector3(0, 1, 0), Vector2(1, 0) }, { Vector3(1, 1, -1), Vector3(0, 1, 0), Vector2(1, 1) }, //bottom { Vector3(1, -1, -1), Vector3(0, -1, 0), Vector2(0, 1) }, { Vector3(1, -1, 1), Vector3(0, -1, 0), Vector2(0, 0) }, { Vector3(-1, -1, 1), Vector3(0, -1, 0), Vector2(1, 0) }, { Vector3(-1, -1, -1), Vector3(0, -1, 0), Vector2(1, 1) }, //back { Vector3(1, -1, 1), Vector3(0, 0, 1), Vector2(0, 1) }, { Vector3(1, 1, 1), Vector3(0, 0, 1), Vector2(0, 0) }, { Vector3(-1, 1, 1), Vector3(0, 0, 1), Vector2(1, 0) }, { Vector3(-1, -1, 1), Vector3(0, 0, 1), Vector2(1, 1) } }; // Create the index buffer UINT indices[] = { // front face 0, 1, 2, 0, 2, 3, //right 4, 5, 6, 4, 6, 7, //left 8, 9, 10, 8, 10, 11, //top 12, 13, 14, 12, 14, 15, //bottom 16, 17, 18, 16, 18, 19, //back 20, 21, 22, 20, 22, 23 }; Mesh &mesh = mgr.CreateMesh("cube"); MaterialExt mat = MaterialExt::default; mesh.CreateFrom(vertices, 24, indices, 36, mat, 36); return mesh; } Mesh& BuildSphere(MeshManager& mgr, int LatLines, int LongLines) { int NumSphereVertices = ((LatLines - 2) * LongLines) + 2; int NumSphereFaces = ((LatLines - 3)*(LongLines)* 2) + (LongLines * 2); float sphereYaw = 0.0f; float spherePitch = 0.0f; std::vector<VertexPosNormTex> vertices(NumSphereVertices); Vector3 currVertPos(0.0f, 0.0f, 1.0f); vertices[0].Pos = Vector3(0, 0, 1); for (int i = 0; i < LatLines - 2; ++i) { spherePitch = (i + 1) * (3.14f / (LatLines - 1)); Matrix Rotationx = Matrix::CreateRotationX(spherePitch); for (int j = 0; j < LongLines; ++j) { sphereYaw = j * (6.28f / (LongLines)); Matrix Rotationy = Matrix::CreateRotationZ(sphereYaw); currVertPos = Vector3::TransformNormal(Vector3(0, 0, 1), Rotationx * Rotationy); currVertPos.Normalize(); int idx = i*LongLines + j + 1; vertices[idx].Pos = currVertPos; vertices[idx].Norm = currVertPos; vertices[idx].Norm.Normalize(); } } vertices[NumSphereVertices - 1].Pos = Vector3(0, 0, -1); std::vector<unsigned int> indices(NumSphereFaces * 3); int k = 0; for (int l = 0; l < LongLines - 1; ++l) { indices[k] = 0; indices[k + 2] = l + 1; indices[k + 1] = l + 2; k += 3; } indices[k] = 0; indices[k + 2] = LongLines; indices[k + 1] = 1; k += 3; for (int i = 0; i < LatLines - 3; ++i) { for (int j = 0; j < LongLines - 1; ++j) { indices[k] = i*LongLines + j + 1; indices[k + 1] = i*LongLines + j + 2; indices[k + 2] = (i + 1)*LongLines + j + 1; indices[k + 3] = (i + 1)*LongLines + j + 1; indices[k + 4] = i*LongLines + j + 2; indices[k + 5] = (i + 1)*LongLines + j + 2; k += 6; // next quad } indices[k] = (i*LongLines) + LongLines; indices[k + 1] = (i*LongLines) + 1; indices[k + 2] = ((i + 1)*LongLines) + LongLines; indices[k + 3] = ((i + 1)*LongLines) + LongLines; indices[k + 4] = (i*LongLines) + 1; indices[k + 5] = ((i + 1)*LongLines) + 1; k += 6; } for (int l = 0; l < LongLines - 1; ++l) { indices[k] = NumSphereVertices - 1; indices[k + 2] = (NumSphereVertices - 1) - (l + 1); indices[k + 1] = (NumSphereVertices - 1) - (l + 2); k += 3; } indices[k] = NumSphereVertices - 1; indices[k + 2] = (NumSphereVertices - 1) - LongLines; indices[k + 1] = NumSphereVertices - 2; Mesh &mesh = mgr.CreateMesh("sphere"); MaterialExt mat = MaterialExt::default; mat.flags &= ~MaterialExt::TFlags::CCW_WINDING; mesh.CreateFrom(&vertices[0], NumSphereVertices, &indices[0], NumSphereFaces * 3, mat, NumSphereFaces * 3); return mesh; }
[ "agerse12345@hotmail.com" ]
agerse12345@hotmail.com
64414c7fefe89eccb581f4de36ebef0115685653
8f9e7d1b57b4fa28ea067d71d4b1a72763af035e
/src/GafferSceneUIModule/InspectorBinding.h
4250fc7457b8d176d97c930cb03f22616d61fed5
[ "BSD-3-Clause" ]
permissive
hradec/gaffer
e4e798739b45df624595c9980b8c649cea04522c
43ea3477775a4c425501f082548b67e8a1526273
refs/heads/master
2023-04-28T15:29:15.015254
2022-05-24T23:34:29
2022-05-24T23:34:29
9,508,356
0
1
BSD-3-Clause
2021-09-09T21:19:26
2013-04-17T21:52:17
Python
UTF-8
C++
false
false
2,065
h
////////////////////////////////////////////////////////////////////////// // // Copyright (c) 2021, Cinesite VFX Ltd. 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 John Haddon nor the names of // any other contributors to this software 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. // ////////////////////////////////////////////////////////////////////////// #ifndef GAFFERSCENEUIMODULE_INSPECTORBINDING_H #define GAFFERSCENEUIMODULE_INSPECTORBINDING_H namespace GafferSceneUIModule { void bindInspector(); } // namespace GafferSceneUIModule #endif // GAFFERSCENEUIMODULE_INSPECTORBINDING_H
[ "thehaddonyoof@gmail.com" ]
thehaddonyoof@gmail.com
3bb0a7358f1626ffe66b51d0900681dc73f15fe2
2cf50b13626bac0424822f5e2e25751d310fddb3
/src/shaders/TileMapShader.cpp
2b2e3c0748f3ee7a4e7551c78a7b82100969e9cb
[]
no_license
ClaudioCheli/C-TileEngine-
761934adc139f81e1a8731bf523eaf9bb4068143
79dec82f5834f7efd7a160e53d5fc92a5c0309f1
refs/heads/master
2020-05-20T23:25:16.332937
2019-02-10T11:30:08
2019-02-10T11:30:08
84,544,132
0
0
null
2019-02-10T11:30:09
2017-03-10T09:41:00
C++
UTF-8
C++
false
false
2,166
cpp
/* * BaseShader.cpp * * Created on: 04 ott 2016 * Author: clasb */ #include "TileMapShader.h" TileMapShader::TileMapShader(){ std::string vertexShaderSource = loadShader(this->VERTEX_SHADER_PATH); std::string fragmentShaderSource = loadShader(this->FRAGMENT_SHADER_PATH); this->vertexShaderID = compileShader(GL_VERTEX_SHADER, vertexShaderSource); this->fragmentShaderID = compileShader(GL_FRAGMENT_SHADER, fragmentShaderSource); this->programID = linkToProgram(this->vertexShaderID, this->fragmentShaderID); bindAttributes(); getAllUniformLocation(); } TileMapShader::~TileMapShader(){ glDeleteProgram(programID); } void TileMapShader::getAllUniformLocation(){ location_viewMatrix = getUniformLocation("view"); location_projectionMatrix = getUniformLocation("projection"); location_tilesetNumberOfRows = getUniformLocation("tilesetNumberOfRows"); location_tilesetNumberOfColumns = getUniformLocation("tilesetNumberOfColumns"); location_levelNumber = getUniformLocation("levelNumber"); } void TileMapShader::printUniformLocation(){ std::cout << "location_viewMatrix: " << location_viewMatrix << std::endl; std::cout << "location_projectionMatrix: " << location_projectionMatrix << std::endl; std::cout << "location_tilesetNumberOfRows: " << location_tilesetNumberOfRows << std::endl; std::cout << "location_tilesetNumberOfColumns: " << location_tilesetNumberOfColumns << std::endl; } void TileMapShader::bindAttributes(){ bindAttribute(0, "vertexPosition"); bindAttribute(1, "texCoord"); bindAttribute(2, "tilePosition"); } void TileMapShader::loadTilesetNumberOfRows(int tilesetNumberOfRows){ loadInt(location_tilesetNumberOfRows, tilesetNumberOfRows); } void TileMapShader::loadTilesetNumberOfColumns(int tilesetNumberOfColumns){ loadInt(location_tilesetNumberOfColumns, tilesetNumberOfColumns); } void TileMapShader::loadProjectionMatrix(glm::mat4 matrix){ loadMatrix(location_projectionMatrix, matrix); } void TileMapShader::loadViewMatrix(glm::mat4 matrix){ loadMatrix(location_viewMatrix, matrix); } void TileMapShader::loadLevelNumber(int level){ loadInt(location_levelNumber, level); }
[ "claudiocheli.dev@gmail.com" ]
claudiocheli.dev@gmail.com
2d368f7a535f4e5977cfe22b9c61a7e513807d63
75d212c5444f5fb8234beb66a129d6fb6b521f78
/include/Box3d.hpp
ce34e7b5095e1e3642e6f2b3c2f581b87f9deb71
[ "MIT" ]
permissive
geraldc-unm/Comb
e8c6d2b3c839f774a050699e3508877783986f8f
790d054f9722e6752a27a1c2e08c135f9d5b8e75
refs/heads/develop
2023-07-13T19:13:29.015994
2021-07-20T21:12:36
2021-07-20T21:12:36
381,495,498
0
0
MIT
2021-08-05T21:39:23
2021-06-29T20:59:17
C++
UTF-8
C++
false
false
13,144
hpp
////////////////////////////////////////////////////////////////////////////// // Copyright (c) 2018-2021, Lawrence Livermore National Security, LLC. // // Produced at the Lawrence Livermore National Laboratory // // LLNL-CODE-758885 // // All rights reserved. // // This file is part of Comb. // // For details, see https://github.com/LLNL/Comb // Please also see the LICENSE file for MIT license. ////////////////////////////////////////////////////////////////////////////// #ifndef _BOX3D_HPP #define _BOX3D_HPP #include "config.hpp" #include "memory.hpp" #include "exec_utils.hpp" #include "MeshInfo.hpp" struct IdxTemplate { enum struct location: IdxT { min =-1 , mid = 0 , max = 1 }; location idx; IdxT offset; constexpr IdxTemplate(location idx_, IdxT offset_) : idx(idx_), offset(offset_) {} }; struct Box3d { static Box3d make_ghost_box(MeshInfo const& info) { IdxT local_ghost_min[3] { 0 , 0 , 0 }; IdxT local_ghost_max[3] { info.len[0] , info.len[1] , info.len[2] }; return Box3d{info, local_ghost_min, local_ghost_max}; } static Box3d make_owned_box(MeshInfo const& info) { IdxT local_own_min[3] { info.global_own_min[0] - info.global_offset[0] , info.global_own_min[1] - info.global_offset[1] , info.global_own_min[2] - info.global_offset[2] }; IdxT local_own_max[3] { info.global_own_max[0] - info.global_offset[0] , info.global_own_max[1] - info.global_offset[1] , info.global_own_max[2] - info.global_offset[2] }; return Box3d{info, local_own_min, local_own_max}; } MeshInfo info; IdxT min[3]; IdxT sizes[3]; Box3d(MeshInfo const& info_, const IdxT local_min[], const IdxT local_max[]) : info(info_) , min{ local_min[0] , local_min[1] , local_min[2] } , sizes{ local_max[0] - local_min[0] , local_max[1] - local_min[1] , local_max[2] - local_min[2] } { //LOGPRINTF("Box3d i %d %d j %d %d k %d %d\n", min[0], max[0], min[1], max[1], min[2], max[2]); //assert((imax-imin)*(jmax-jmin)*(kmax-kmin) <= 13*3*3); } void print(const char* name) const { fgprintf(FileGroup::proc, "Box3d %32s local (%i %i %i)-(%i %i %i) info (%i %i %i)-(%i %i %i) global (%i %i %i)-(%i %i %i)\n", name, min[0], min[1], min[2], min[0]+sizes[0], min[1]+sizes[1], min[2]+sizes[2], info.min[0], info.min[1], info.min[2], info.max[0], info.max[1], info.max[2], info.global_min[0], info.global_min[1], info.global_min[2], info.global_max[0], info.global_max[1], info.global_max[2] ); } void correct_periodicity() { // nothing to do here, only have local information // correct info periodicity info.correct_periodicity(); } // get the intersection between two boxes from the same GlobalMeshInfo // returns a box with indices in the local index space of this->info Box3d intersect(Box3d const& other) const { assert(info.global == other.info.global); // find min, max in global coords IdxT omin[3] { std::max(min[0] + info.global_offset[0], other.min[0] + other.info.global_offset[0]) , std::max(min[1] + info.global_offset[1], other.min[1] + other.info.global_offset[1]) , std::max(min[2] + info.global_offset[2], other.min[2] + other.info.global_offset[2]) }; IdxT omax[3] { std::min(min[0] + sizes[0] + info.global_offset[0], other.min[0] + other.sizes[0] + other.info.global_offset[0]) , std::min(min[1] + sizes[1] + info.global_offset[1], other.min[1] + other.sizes[1] + other.info.global_offset[1]) , std::min(min[2] + sizes[2] + info.global_offset[2], other.min[2] + other.sizes[2] + other.info.global_offset[2]) }; for (IdxT dim = 0; dim < 3; ++dim) { /* // make work with periodicity, may not be necessary if (info.global.periodic[dim]) { // correct for periodicity // move other.min[dim] so in the range [ min[dim], min[dim]+info.global.sizes[dim] ) IdxT this_min = min[dim] + info.global_offset[dim]; IdxT other_min = other.min[dim] + other.info.global_offset[dim]; IdxT diff_min = other_min - this_min; IdxT quot = diff_min / info.global.sizes[dim]; other_min -= (quot+(diff_min < 0 ? 1 : 0)) * info.global.sizes[dim]; IdxT this_remaining_size = sizes[dim] - (other_min - this_min); omin[dim] = other_min; omax[dim] = other_min + std::min(this_remaining_size, other.sizes[dim]); } assert(0 <= omin[dim] - min[dim] && omin[dim] - min[dim] < info.global.sizes[dim]); assert(omax[dim] <= min[0] + sizes[0] + info.global_offset[0]); // this happens when omax would wrap around to the beginning of this */ // switch back to local coords omin[dim] -= info.global_offset[dim]; omax[dim] -= info.global_offset[dim]; // correct max that are less than min to min (size 0 no overlap) if (omax[dim] < omin[dim]) omax[dim] = omin[dim]; } return Box3d{ info, omin, omax }; } size_t size() const { return sizes[0] * sizes[1] * sizes[2] ; } bool operator==(Box3d const& other) const { return info == other.info && min[0] == other.min[0] && min[1] == other.min[1] && min[2] == other.min[2] && sizes[0] == other.sizes[0] && sizes[1] == other.sizes[1] && sizes[2] == other.sizes[2] ; } bool operator<(Box3d const& other) const { if (this == &other) return false; int cmp = compare_totalsize(other); if (cmp != 0) return cmp < 0; for (IdxT dim = 0; dim < 3; ++dim) { cmp = compare_size(dim, other); if (cmp != 0) return cmp < 0; } for (IdxT dim = 0; dim < 3; ++dim) { cmp = compare_min(dim, other); if (cmp != 0) return cmp < 0; } return info < other.info; } int compare_totalsize(Box3d const& other) const { if (size() < other.size()) { return -1; } else if (size() == other.size()) { return 0; } else { return 1; } } int compare_size(IdxT dim, Box3d const& other) const { if (sizes[dim] < other.sizes[dim]) { return -1; } else if (sizes[dim] == other.sizes[dim]) { return 0; } else { return 1; } } int compare_min(IdxT dim, Box3d const& other) const { if (min[dim] < other.min[dim]) { return -1; } else if (min[dim] == other.min[dim]) { return 0; } else { return 1; } } bool equivalent(Box3d const& other) const { // check coordinates are equivalent return min[0] == other.min[0] && min[1] == other.min[1] && min[2] == other.min[2] && sizes[0] == other.sizes[0] && sizes[1] == other.sizes[1] && sizes[2] == other.sizes[2] ; } bool global_equivalent(Box3d const& other) const { IdxT global_min[3] { min[0] + info.global_offset[0] , min[1] + info.global_offset[1] , min[2] + info.global_offset[2] }; IdxT other_min[3] { other.min[0] + other.info.global_offset[0] , other.min[1] + other.info.global_offset[1] , other.min[2] + other.info.global_offset[2] }; bool equiv = true; // check sizes are the same for(IdxT dim = 0; dim < 3; ++dim) { equiv = equiv && (sizes[dim] == other.sizes[dim]); } // check indices are equivalent for(IdxT dim = 0; dim < 3; ++dim) { if (info.global.periodic[dim]) { global_min[dim] = global_min[dim] % info.global.sizes[dim]; if (global_min[dim] < 0) global_min[dim] += info.global.sizes[dim]; } if (other.info.global.periodic[dim]) { other_min[dim] = other_min[dim] % other.info.global.sizes[dim]; if (other_min[dim] < 0) other_min[dim] += other.info.global.sizes[dim]; } equiv = equiv && (global_min[dim] == other_min[dim]); } return equiv; } #ifdef COMB_ENABLE_MPI MPI_Datatype get_type_subarray() const { MPI_Datatype mpi_type = detail::MPI::Type_create_subarray(3, info.len, sizes, min, MPI_ORDER_FORTRAN, MPI_DOUBLE); detail::MPI::Type_commit(&mpi_type); return mpi_type; } #endif template < typename context > void set_indices(context& con, LidxT* index_list) const { IdxT imin = min[0]; IdxT jmin = min[1]; IdxT kmin = min[2]; IdxT imax = min[0] + sizes[0]; IdxT jmax = min[1] + sizes[1]; IdxT kmax = min[2] + sizes[2]; IdxT ilen = imax - imin; IdxT jlen = jmax - jmin; IdxT klen = kmax - kmin; con.for_all_3d(klen, jlen, ilen, make_set_idxr_idxr(detail::indexer_offset_kji{kmin, jmin, imin, info.len[0]*info.len[1], info.len[0]}, index_list, detail::indexer_kji{ilen*jlen, ilen})); //for(IdxT idx = 0; idx < ilen*jlen*klen; ++idx) { // LOGPRINTF("indices[%i] = %i\n", idx, index_list[idx]); // assert(0 <= index_list[idx] && index_list[idx] < ilen*jlen*klen); //} con.synchronize(); } }; struct Box3dTemplate { using IT = IdxTemplate; using ITL = IdxTemplate::location; static Box3d get_connection_inner_box(MeshInfo const& info, const int neighbor_coords[]) { int bounds[3] { neighbor_coords[0] - info.global_coords[0] , neighbor_coords[1] - info.global_coords[1] , neighbor_coords[2] - info.global_coords[2] }; ITL locs[3] { (bounds[0] == -1) ? ITL::min : ( (bounds[0] == 1) ? ITL::max : ITL::mid ) , (bounds[1] == -1) ? ITL::min : ( (bounds[1] == 1) ? ITL::max : ITL::mid ) , (bounds[2] == -1) ? ITL::min : ( (bounds[2] == 1) ? ITL::max : ITL::mid ) }; return Box3dTemplate::make_Box3dTemplate_inner(info.ghost_widths, locs).make_box(info); } static Box3d get_connection_ghost_box(MeshInfo const& info, const int neighbor_coords[]) { int bounds[3] { neighbor_coords[0] - info.global_coords[0] , neighbor_coords[1] - info.global_coords[1] , neighbor_coords[2] - info.global_coords[2] }; ITL locs[3] { (bounds[0] == -1) ? ITL::min : ( (bounds[0] == 1) ? ITL::max : ITL::mid ) , (bounds[1] == -1) ? ITL::min : ( (bounds[1] == 1) ? ITL::max : ITL::mid ) , (bounds[2] == -1) ? ITL::min : ( (bounds[2] == 1) ? ITL::max : ITL::mid ) }; return Box3dTemplate::make_Box3dTemplate_ghost(info.ghost_widths, locs).make_box(info); } static Box3dTemplate make_Box3dTemplate_inner(const IdxT widths[], const ITL bounds[]) { IT tmin[3] { IT{(bounds[0] == ITL::mid) ? ITL::min : bounds[0], (bounds[0] == ITL::max) ? -widths[0] : 0 } , IT{(bounds[1] == ITL::mid) ? ITL::min : bounds[1], (bounds[1] == ITL::max) ? -widths[1] : 0 } , IT{(bounds[2] == ITL::mid) ? ITL::min : bounds[2], (bounds[2] == ITL::max) ? -widths[2] : 0 } }; IT tmax[3] { IT{(bounds[0] == ITL::mid) ? ITL::max : bounds[0], (bounds[0] == ITL::min) ? widths[0] : 0 } , IT{(bounds[1] == ITL::mid) ? ITL::max : bounds[1], (bounds[1] == ITL::min) ? widths[1] : 0 } , IT{(bounds[2] == ITL::mid) ? ITL::max : bounds[2], (bounds[2] == ITL::min) ? widths[2] : 0 } }; return Box3dTemplate{ tmin, tmax }; } static Box3dTemplate make_Box3dTemplate_ghost(const IdxT widths[], const ITL bounds[]) { IT tmin[3] { IT{(bounds[0] == ITL::mid) ? ITL::min : bounds[0], (bounds[0] == ITL::min) ? -widths[0] : 0 } , IT{(bounds[1] == ITL::mid) ? ITL::min : bounds[1], (bounds[1] == ITL::min) ? -widths[1] : 0 } , IT{(bounds[2] == ITL::mid) ? ITL::min : bounds[2], (bounds[2] == ITL::min) ? -widths[2] : 0 } }; IT tmax[3] { IT{(bounds[0] == ITL::mid) ? ITL::max : bounds[0], (bounds[0] == ITL::max) ? widths[0] : 0 } , IT{(bounds[1] == ITL::mid) ? ITL::max : bounds[1], (bounds[1] == ITL::max) ? widths[1] : 0 } , IT{(bounds[2] == ITL::mid) ? ITL::max : bounds[2], (bounds[2] == ITL::max) ? widths[2] : 0 } }; return Box3dTemplate{ tmin, tmax }; } IT tmin[3]; IT tmax[3]; constexpr Box3dTemplate(IT const tmin_[], IT const tmax_[]) : tmin{tmin_[0], tmin_[1], tmin_[2]} , tmax{tmax_[0], tmax_[1], tmax_[2]} { } Box3d make_box(MeshInfo const& info) { IdxT min[3] { idx(0, info, tmin[0]) , idx(1, info, tmin[1]) , idx(2, info, tmin[2]) }; IdxT max[3] { idx(0, info, tmax[0]) , idx(1, info, tmax[1]) , idx(2, info, tmax[2]) }; return Box3d{info, min, max}; } private: IdxT idx(IdxT dim, MeshInfo const& info, IT it) { IdxT idx = 0; switch (it.idx) { case ITL::min: idx = info.min[dim]; break; case ITL::max: idx = info.max[dim]; break; default: assert(0); break; } return idx + it.offset; } }; #endif // _BOX3D_HPP
[ "burmark1@llnl.gov" ]
burmark1@llnl.gov
6a866f3b154281c4dbcaffcde3ce338e7e5c4627
b3287cda4d87f652756cd17826ad0ec1df4afb42
/Object-Oriented Programming/design patterns/Lecture12_demo_Observer/main.cpp
fe8d99961297dbad3bbbbe550ceb7d94fabab9f0
[]
no_license
skiry/University
52e0eab4d18d6623250ac3b3588822aebe278844
1ad8f02eca0f8876f7436283c4637ae594cf40b9
refs/heads/master
2022-12-24T11:00:53.304614
2020-06-16T17:23:03
2020-06-16T17:23:03
116,440,486
0
0
null
2022-12-10T16:05:40
2018-01-06T00:29:33
Python
UTF-8
C++
false
false
712
cpp
#include "lecture12_demo_observer.h" #include <QtWidgets/QApplication> #include "auctionleader.h" #include "Auctioneer.h" #include "BidderWithDescription.h" #include "BidderWithPhoto.h" int main(int argc, char *argv[]) { QApplication a(argc, argv); Auctioneer auct; auct.addCastle("Highclere Castle", "highclere.jpg", "England", 4000, 4000); auct.addCastle("Chambord Castle", "chambord.jpg", "France", 3200, 3200); BidderWithDescription bidderDesc1{ auct }; bidderDesc1.show(); BidderWithDescription bidderDesc2{ auct }; bidderDesc2.show(); BidderWithPhoto bidderPhoto{ auct }; bidderPhoto.show(); AuctionLeader leader{ auct }; leader.show(); return a.exec(); }
[ "skiry@localhost.localdomain" ]
skiry@localhost.localdomain
10798fe5fab98660b57564e0da033fbb01abe443
3874989396b41ec423b2878253633f303edd5656
/src/players/Player.cpp
0fc1cd08f21fa8dd900c2b17e7d89df2a4ff2c01
[]
no_license
joetde/SuperBadbar
7477e2fb6d662676ce70795f9d1287df65eb6023
7f0e09a57bc9754522588f1015363b1f1d0e046e
refs/heads/master
2021-01-01T17:05:43.711037
2014-02-20T13:17:09
2014-02-20T13:17:09
null
0
0
null
null
null
null
UTF-8
C++
false
false
642
cpp
#include "Player.h" #include "actors/Babar.h" #include "events/Stats.h" Player::Player (int id, Analyser * analyser, bool local) { m_dmgs = new std::list<dmg_chan>(); m_id = id; if ( local ) { m_actor = new Babar (analyser); } else { /*m_actor = new Another_Babar();*/ } } Player::~Player() { m_dmgs->clear(); delete m_dmgs; delete m_actor; } Babar * Player::get_actor() { return m_actor; } int Player::get_id() { return m_id; } std::list<dmg_chan> * Player::get_dmgs() { return m_dmgs; } void Player::set_dmgs (dmg_chan dmg) { m_dmgs->push_front (dmg); }
[ "berardgui@gmail.com" ]
berardgui@gmail.com
09804e168ff9a70079ceca0c2ed2f143c3465680
bad16eb9b35971135f8fc055b40d87006621d2de
/nowcoder/2020通常比赛/contest5759/E.cc
374618590c589ea2f6912bf70275178b46e59625
[]
no_license
ymd45921/HUST-ACM-training
1e1c47e40d419987731e047f493d614f0220346b
1976e8351c0ba445ad8bfe0124dd88215d768cc8
refs/heads/master
2023-06-12T13:52:31.974586
2021-07-14T14:30:49
2021-07-14T14:30:49
317,748,883
0
0
null
null
null
null
UTF-8
C++
false
false
3,780
cc
/** * */ #include <iostream> #include <cmath> #include <cstring> #include <algorithm> using namespace std; using longs = long long; using longd = long double; using ulongs = unsigned long long; const int inf = 0x3f3f3f3f; const longs INF = 0x3f3f3f3f3f3f3f3f; const double eps = 1e-8; namespace Geo { using number = int; int compareTo(number x) { return x < -eps ? -1 : x > eps; } int compareTo(number a, number b) { return compareTo(a - b); } struct point { number x, y; point() = default; point(number x, number y) : x(x), y(y) {} point operator+(const point &rhs) const { return {x + rhs.x, y + rhs.y}; } point operator-(const point &rhs) const { return {x - rhs.x, y - rhs.y}; } number operator*(const point &rhs) const { return x * rhs.x + y * rhs.y; } point operator*(const number rhs) const { return {rhs * x, rhs * y}; } point operator/(const number rhs) const { return {x / rhs, y / rhs}; } point &operator+=(const point &rhs) { x += rhs.x; y += rhs.y; return *this; } point &operator-=(const point &rhs) { x -= rhs.x; y -= rhs.y; return *this; } point &operator*=(const number rhs) { x *= rhs; y *= rhs; return *this; } point &operator/=(const number rhs) { x /= rhs; y /= rhs; return *this; } bool operator==(const point &rhs) const { return x == rhs.x && y == rhs.y; } bool operator!=(const point &rhs) const { return !(rhs == *this); } number dot(const point &rhs) const { return x * rhs.x + y * rhs.y; } number cross(const point &rhs) const { return rhs.y * x - rhs.x * y; } number length() const { return sqrt(dot(*this)); } number distance(const point &b) const { return (*this - b).length(); } number distance(const point &ls, const point &rs) const { return fabs((ls - *this).cross(rs - *this)) / ls.distance(rs); } point normal() const { return (x || y) ? *this / length() : point(0, 0); } number angle() const { return atan2(y, x); } point rotate(number a) const { number c = cos(a), s = sin(a); return {c * x - s * y, s * x + c * y}; } point perpendicular() const { return {-y, x}; } point symmetry() const { return {-x, -y}; } bool operator<(const point &rhs) const { auto ll = 1ll * y * rhs.x; auto rr = 1ll * x * rhs.y; return ll < rr; } bool operator>(const point &rhs) const { auto ll = 1ll * y * rhs.x; auto rr = 1ll * x * rhs.y; return ll > rr; } }; } const int N = 1e5 + 5; int n, m, upto, dp[N]; Geo::point p[N], v[N]; int binary(const Geo::point &now) { int ll = 1, rr = upto, res = 0; auto ii = Geo::point(m - now.x, -now.y); while (ll <= rr) { int mid = ll + rr >> 1; if (v[mid] < ii) res = mid, ll = mid + 1; else rr = mid - 1; } return res; } int main() { ios::sync_with_stdio(false); cin.tie(nullptr); while (cin >> n >> m) { auto pp = Geo::point(m, 0); for (int i = 1; i <= n; ++ i) cin >> p[i].x >> p[i].y; sort(p + 1, p + 1 + n, greater<Geo::point>()); upto = 0; for (int i = 1; i <= n; ++ i) { dp[i] = binary(p[i]) + 1; v[dp[i]] = pp - p[i]; upto = max(upto, dp[i]); } cout << upto << endl; } return 0; }
[ "ymd45921@163.com" ]
ymd45921@163.com
65f6fb67ed33fa3dd40d92064cd606ceff4802e8
022bca7becb6423cec611c2f4f7e20380989885e
/codeforces/Subtractions.cpp
e98a8c3d8ad7481751fe77b03d03206768b15a7d
[]
no_license
pervez19/Pratice-Programming-
e43ec935136b5b1350e8b2c1f749c4742f59d922
1110e7e38c21ea08b2028a6793c0eb1dda1a0c39
refs/heads/master
2021-11-03T17:17:03.787553
2019-04-09T15:26:10
2019-04-09T15:26:10
null
0
0
null
null
null
null
UTF-8
C++
false
false
392
cpp
#include<iostream> #include <cmath> using namespace std; long long n,t; int check(int a1,int a2) { t=t+a1/a2; a1=a1%a2; if(a1==0) return t; else check(a2,a1); } int main() { cin>>n; int a,b,a1,a2; while(n>0) { cin>>a>>b; a1=fmax(a,b); a2=fmin(a,b); cout<<check(a1,a2)<<endl; n--; t=0; } }
[ "parvezdiu16@gmail.com" ]
parvezdiu16@gmail.com
f9643a3860f0d1eacba56cac084823c2704cc662
7c1d74d50c0ac16827615856920b94c311d722f5
/renderfarmmanagerwindow.cpp
979f5d529e1c4e8655af11d2ca9c0a1365f86c60
[]
no_license
samcrow/RenderFarmManager
06868a7ee2e23f9c02cf7a366c29e1f7ef9fae99
2dbf1d3c7378cca34988294f318ed8c0a6d0a085
refs/heads/master
2021-01-22T23:49:10.880041
2012-11-20T02:46:11
2012-11-20T02:46:11
null
0
0
null
null
null
null
UTF-8
C++
false
false
312
cpp
#include "renderfarmmanagerwindow.hpp" #include "ui_renderfarmmanagerwindow.h" RenderFarmManagerWindow::RenderFarmManagerWindow(QWidget *parent) : QMainWindow(parent), ui(new Ui::RenderFarmManagerWindow) { ui->setupUi(this); } RenderFarmManagerWindow::~RenderFarmManagerWindow() { delete ui; }
[ "sam.crow@liquidr.com" ]
sam.crow@liquidr.com
21eb681ff208927061f3f3c29d60263232fbb8fb
39c37c017e25a0933c6febeb5f17232df405a1dd
/HeapSort/HeapSort/main.cpp
feff99bffeec8c9e0778dccfae392c22db55843e
[]
no_license
TripppleG/DAA-Sorts
99453d2a9ee1ec51c75304297c8cd29bbc096819
fc5dd5b7b81f4f9798104029031f8649b9ba6040
refs/heads/master
2020-05-14T18:53:49.881136
2020-04-19T20:40:02
2020-04-19T20:40:02
181,918,020
0
0
null
null
null
null
UTF-8
C++
false
false
835
cpp
#include <iostream> #include <vector> void Swap(int& a, int& b) { int temp = a; a = b; b = temp; } void Heapify(std::vector<int>& arr, int n, int i) { int largest = i; int left = 2 * i + 1; int right = 2 * i + 2; if (left < n && arr[left] > arr[largest]) { largest = left; } if (right < n && arr[right] > arr[largest]) { largest = right; } if (largest != i) { Swap(arr[i], arr[largest]); Heapify(arr, n, largest); } } void HeapSort(std::vector<int>& arr, int n) { for (int i = n / 2 - 1; i >= 0; i--) { Heapify(arr, n, i); } for (int i = n - 1; i > 0; i--) { Swap(arr[0], arr[i]); Heapify(arr, i, 0); } } int main() { std::vector<int> arr = { 5, 12, 9, -1, 312, 19, 4, -45, 74, 0 }; Sort(arr, arr.size()); for (int i = 0; i < arr.size(); i++) { std::cout << arr[i] << " "; } return 0; }
[ "georgi.gazepov@gmail.com" ]
georgi.gazepov@gmail.com
41aa53f5c470c3814bbd8b0ed7f4b29cb471bf74
0aceab344c20ed0af5113158a0de4a35f39c2ae1
/src/masternode-sync.h
5bcb70ee1f8bd32e3b23c901e4a088acf8fde599
[ "MIT" ]
permissive
piklock/qynocoin
34304e12cc162d9ce268901124279992939002dd
40fc81e8d52c58916e8be0ff7593a495dd481726
refs/heads/master
2020-04-02T01:46:50.747748
2018-10-20T16:23:06
2018-10-20T16:23:06
153,874,573
0
0
MIT
2018-10-20T05:58:57
2018-10-20T05:58:57
null
UTF-8
C++
false
false
2,238
h
// Copyright (c) 2014-2015 The Dash developers // Copyright (c) 2015-2017 The PIVX developers // Copyright (c) 2017-2018 The Qyno Core developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #ifndef MASTERNODE_SYNC_H #define MASTERNODE_SYNC_H #define MASTERNODE_SYNC_INITIAL 0 #define MASTERNODE_SYNC_SPORKS 1 #define MASTERNODE_SYNC_LIST 2 #define MASTERNODE_SYNC_MNW 3 #define MASTERNODE_SYNC_BUDGET 4 #define MASTERNODE_SYNC_BUDGET_PROP 10 #define MASTERNODE_SYNC_BUDGET_FIN 11 #define MASTERNODE_SYNC_FAILED 998 #define MASTERNODE_SYNC_FINISHED 999 #define MASTERNODE_SYNC_TIMEOUT 5 #define MASTERNODE_SYNC_THRESHOLD 2 class CMasternodeSync; extern CMasternodeSync masternodeSync; // // CMasternodeSync : Sync masternode assets in stages // class CMasternodeSync { public: std::map<uint256, int> mapSeenSyncMNB; std::map<uint256, int> mapSeenSyncMNW; std::map<uint256, int> mapSeenSyncBudget; int64_t lastMasternodeList; int64_t lastMasternodeWinner; int64_t lastBudgetItem; int64_t lastFailure; int nCountFailures; // sum of all counts int sumMasternodeList; int sumMasternodeWinner; int sumBudgetItemProp; int sumBudgetItemFin; // peers that reported counts int countMasternodeList; int countMasternodeWinner; int countBudgetItemProp; int countBudgetItemFin; // Count peers we've requested the list from int RequestedMasternodeAssets; int RequestedMasternodeAttempt; // Time when current masternode asset sync started int64_t nAssetSyncStarted; CMasternodeSync(); void AddedMasternodeList(uint256 hash); void AddedMasternodeWinner(uint256 hash); void AddedBudgetItem(uint256 hash); void GetNextAsset(); std::string GetSyncStatus(); void ProcessMessage(CNode* pfrom, std::string& strCommand, CDataStream& vRecv); bool IsBudgetFinEmpty(); bool IsBudgetPropEmpty(); void Reset(); void Process(); bool IsSynced(); bool IsBlockchainSynced(); bool IsMasternodeListSynced() { return RequestedMasternodeAssets > MASTERNODE_SYNC_LIST; } void ClearFulfilledRequest(); }; #endif
[ "contact@qyno.org" ]
contact@qyno.org
d2573e7c3ae3ca6746bf6e3cfc9c608725c0d4d7
a998aab501cdf3bc2a0274c5835540fd49b2b0cb
/src/10-9-1-105.cpp
b75bab5f7fac2dfc76118e3cc9e76cd0651f76c3
[ "MIT" ]
permissive
XuZhixuan/cpp_homework
7247ff2682362ccbe721d2c7f9405a495497d963
31bcfd9a8df4df3af354240dfa2d72ed3b62057e
refs/heads/master
2020-07-29T08:49:14.292112
2019-12-17T09:54:21
2019-12-17T09:54:21
209,735,499
4
0
null
null
null
null
UTF-8
C++
false
false
3,251
cpp
#include <iostream> using namespace std; class Shape { public: virtual void printName() = 0; virtual double printArea() = 0; }; class Circle : public Shape { protected: double radius_; public: Circle(double); void printName(); double printArea(); }; class Square : public Shape { protected: double length_; public: Square(double); void printName(); double printArea(); }; class Rectangle : public Shape { protected: double length_; double width_; public: Rectangle(double, double); void printName(); double printArea(); }; class Trapezoid : public Shape { protected: double length_u_; double length_l_; double height_; public: Trapezoid(double, double, double); void printName(); double printArea(); }; class Triangle : public Shape { protected: double length_; double height_; public: Triangle(double, double); void printName(); double printArea(); }; int main() { double a, b, c, d, e, f, g, h, i; cin >> a >> b >> c >> d >> e >> f >> g >> h >> i; Shape* arr[5]; Circle circle(a); arr[0] = &circle; Square square(b); arr[1] = &square; Rectangle rectangle(c, d); arr[2] = &rectangle; Trapezoid trapezoid(e, f, g); arr[3] = &trapezoid; Triangle triangle(h, i); arr[4] = &triangle; double area = 0; for (int i = 0; i < 5; i++) { arr[i]->printName(); area += arr[i]->printArea(); cout << endl; } cout << "totalarea:" << area << endl; return 0; } Circle::Circle(double radius) { radius_ = radius; } void Circle::printName() { cout << "circle:"; cout << "radius=" << radius_ << ','; } double Circle::printArea() { double area = 3.14159 * radius_ * radius_; cout << "area:" << area; return area; } Square::Square(double length) { length_ = length; } void Square::printName() { cout << "square:"; cout << "side=" << length_ << ','; } double Square::printArea() { double area = length_ * length_; cout << "area:" << area; return area; } Rectangle::Rectangle(double length, double width) { length_ = length; width_ = width; } void Rectangle::printName() { cout << "rectangle:"; cout << "length=" << length_ << ','; cout << "width=" << width_ << ','; } double Rectangle::printArea() { double area = length_ * width_; cout << "area:" << area; return area; } Trapezoid::Trapezoid(double length_u, double length_l, double height) { length_u_ = length_u; length_l_ = length_l; height_ = height; } void Trapezoid::printName() { cout << "trapezoid:"; cout << "upperside=" << length_u_ << ','; cout << "bottomside=" << length_l_ << ','; cout << "hight=" << height_ << ','; } double Trapezoid::printArea() { double area = (length_u_ + length_l_) * height_ / 2; cout << "area:" << area; return area; } Triangle::Triangle(double length, double height) { length_ = length; height_ = height; } void Triangle::printName() { cout << "trangle:"; cout << "bottomside=" << length_ << ','; cout << "hight=" << height_ << ','; } double Triangle::printArea() { double area = length_ * height_ / 2; cout << "area:" << area; return area; }
[ "sxxuzhixuan@hotmail.com" ]
sxxuzhixuan@hotmail.com
1e763bdbc3c1f10bcf8b1ab782f12a1976a64495
cbc870f2e6cafada1e171ea1ad7c4a61377e69d0
/src/core/io/file_output.tpp
81fef71ceaea4f86b339671ba8ed180100b06367
[]
no_license
SrTobi/minijava
719634577eea3113f9fc625ab2f7c515b07cb5a0
034e0e351951f05766e7bca7f6a1e689b789ee9d
refs/heads/master
2021-01-12T12:13:42.793808
2017-02-13T06:45:03
2017-02-13T06:45:03
72,376,450
2
0
null
2016-12-12T02:43:53
2016-10-30T21:24:12
C++
UTF-8
C++
false
false
4,496
tpp
#ifndef MINIJAVA_INCLUDED_FROM_IO_FILE_OUTPUT_HPP #error "Never `#include <io/file_output.tpp>` directly; `#include <io/file_output.hpp>` instead." #endif #include <cstdarg> #include <utility> #include "exceptions.hpp" #include "io/misc.hpp" namespace minijava { namespace detail { // `throw`s a `std::system_errror` with error code `EBADF` mentioning // `func` as the member function that was called. The behavior is // udnefined if `func` is not a NUL terminated character array. [[noreturn]] void file_output_throw_empty_state(const char* func); // `throw`s a `std::system_errror` with the error code reported by the // global `errno` variable and `message` as the operation that failed // on file `filename`. Both strings may be empty. [[noreturn]] void file_output_throw_errno(const std::string& message, const std::string& filename); // Deleters for our managed FILE pointer. We have to compare their // addresses so we cannot use lambdas. inline void do_nothing_fp(std::FILE* /* fp */) noexcept { } inline void do_flush_fp(std::FILE* fp) noexcept { std::fflush(fp); } inline void do_close_fp(std::FILE* fp) noexcept { std::fclose(fp); } } // namespace detail inline file_output::file_output() noexcept : _handle{nullptr, &detail::do_nothing_fp} , _filename{} { } inline file_output::file_output(std::FILE *const fp, const std::string& filename) : _handle{nullptr, &detail::do_flush_fp} , _filename{filename} { _handle.reset(fp); } inline file_output::file_output(const std::string& filename) : _handle{nullptr, detail::do_close_fp} , _filename{filename} { check_file_name(filename); _handle.reset(std::fopen(filename.c_str(), "wb")); if (!_handle) { detail::file_output_throw_errno("Cannot open file", _filename); } } inline file_output::file_output(file_output&& other) noexcept : file_output{} { swap(*this, other); } inline file_output& file_output::operator=(file_output&& other) noexcept { file_output temp{}; swap(*this, temp); swap(*this, other); return *this; } inline file_output::~file_output() noexcept { // Nothing to do. (But declared explicitly for exposition.) } inline file_output::operator bool() const noexcept { return bool(_handle); } inline const std::string& file_output::filename() const noexcept { return _filename; } inline void file_output::write(const void *const data, const std::size_t size) { if (!_handle) { detail::file_output_throw_empty_state("write"); } auto start = static_cast<const char*>(data); auto remaining = size; while (remaining > 0) { const auto count = std::fwrite(start, 1, remaining, _handle.get()); if ((count != remaining) && std::ferror(_handle.get())) { detail::file_output_throw_errno("Cannot write to file", _filename); } remaining -= count; start += count; } } inline void file_output::write(const std::string& text) { write(text.data(), text.size()); } inline void file_output::print(const char* format, ...) { if (!_handle) { detail::file_output_throw_empty_state("print"); } va_list vargs; va_start(vargs, format); const auto status = std::vfprintf(_handle.get(), format, vargs); va_end(vargs); if (status < 0) { detail::file_output_throw_errno("Cannot write to file", _filename); } } inline void file_output::flush() { if (!_handle) { detail::file_output_throw_empty_state("flush"); } if (std::fflush(_handle.get()) != 0) { detail::file_output_throw_errno("Cannot flush output to file", _filename); } } inline void file_output::close() { if (!_handle) { detail::file_output_throw_empty_state("close"); } const auto fnm = std::move(_filename); _filename.clear(); if (std::fclose(_handle.release()) != 0) { detail::file_output_throw_errno("Cannot close file", fnm); } } inline void file_output::finalize() { if (_handle) { const auto delptr = _handle.get_deleter(); if (delptr == &detail::do_nothing_fp) { // do nothing } else if (delptr == &detail::do_flush_fp) { flush(); } else if (delptr == &detail::do_close_fp) { close(); } else { MINIJAVA_NOT_REACHED(); } } } inline std::FILE* file_output::handle() noexcept { return _handle.get(); } inline void swap(file_output& lhs, file_output& rhs) noexcept { using std::swap; swap(lhs._handle, rhs._handle); swap(lhs._filename, rhs._filename); } } // namespace minijava
[ "moritz.klammler@student.kit.edu" ]
moritz.klammler@student.kit.edu
acd37574c959b0619f32f2832746e954873dbe95
e1e43f3e90aa96d758be7b7a8356413a61a2716f
/commsfwtools/commstools/utracedecoder/inc/logevents/rdebuglogevent.h
62b815e8e7a0e240cdd78b210d453815b0352a16
[]
no_license
SymbianSource/oss.FCL.sf.os.commsfw
76b450b5f52119f6bf23ae8a5974c9a09018fdfa
bc8ac1a6d5273cbfa7852bbb8ce27d6ddc076984
refs/heads/master
2021-01-18T23:55:06.285537
2010-10-03T23:21:43
2010-10-03T23:21:43
72,773,202
0
1
null
null
null
null
UTF-8
C++
false
false
1,262
h
// Copyright (c) 2007-2009 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 RDEBUGLOGEVENT_H #define RDEBUGLOGEVENT_H #include <string> #include "simplelogevent.h" class CRDebugLogEvent : public CSimpleLogEvent { friend class CTraceEventFactory; protected: explicit CRDebugLogEvent(const CUTraceFrame& aFrame, MEventOutputHandler& aOutputHandler); explicit CRDebugLogEvent(const CMultiPartFrameCollection& aFrameCollection, MEventOutputHandler& aOutputHandler); explicit CRDebugLogEvent(const std::string& aPrefix, const CUTraceFrame& aFrame, MEventOutputHandler& aOutputHandler); explicit CRDebugLogEvent(const std::string& aPrefix, const CMultiPartFrameCollection& aFrameCollection, MEventOutputHandler& aOutputHandler); public: virtual void Describe(std::ostream& aOutput) const; }; #endif // RDEBUGLOGEVENT_H
[ "kirill.dremov@nokia.com" ]
kirill.dremov@nokia.com
b7b895fe15922b78cbe5b8f8ef644d7bdaade86a
e5147d9abc2b7acf8a1977b633b8faf593d5272b
/drape_frontend/animation/arrow_animation.cpp
8116b1886130e35548db70afa922f82386bcf4ff
[ "Apache-2.0" ]
permissive
igortomko/omim
55110f18b64ac25c7b0273f958715afaa711643d
378bec71845f445e08bc40542ba2d88abdba1b65
refs/heads/master
2020-12-11T09:03:38.848046
2016-07-11T09:01:49
2016-07-11T09:01:49
57,289,449
0
0
null
2016-04-28T09:40:09
2016-04-28T09:40:09
null
UTF-8
C++
false
false
2,836
cpp
#include "arrow_animation.hpp" namespace df { ArrowAnimation::ArrowAnimation(m2::PointD const & startPos, m2::PointD const & endPos, double moveDuration, double startAngle, double endAngle) : Animation(true /* couldBeInterrupted */, true /* couldBeBlended */) , m_positionInterpolator(moveDuration, 0.0 /* delay */, startPos, endPos) , m_angleInterpolator(startAngle, endAngle) { m_objects.insert(Animation::MyPositionArrow); if (m_positionInterpolator.IsActive()) m_properties.insert(Animation::Position); if (m_angleInterpolator.IsActive()) m_properties.insert(Animation::Angle); } Animation::TAnimObjects const & ArrowAnimation::GetObjects() const { return m_objects; } bool ArrowAnimation::HasObject(TObject object) const { return object == Animation::MyPositionArrow; } Animation::TObjectProperties const & ArrowAnimation::GetProperties(TObject object) const { return m_properties; } bool ArrowAnimation::HasProperty(TObject object, TProperty property) const { return HasObject(object) && m_properties.find(property) != m_properties.end(); } void ArrowAnimation::Advance(double elapsedSeconds) { if (m_positionInterpolator.IsActive()) m_positionInterpolator.Advance(elapsedSeconds); if (m_angleInterpolator.IsActive()) m_angleInterpolator.Advance(elapsedSeconds); } void ArrowAnimation::Finish() { if (m_positionInterpolator.IsActive()) m_positionInterpolator.Finish(); if (m_angleInterpolator.IsActive()) m_angleInterpolator.Finish(); } void ArrowAnimation::SetMaxDuration(double maxDuration) { if (m_positionInterpolator.IsActive()) m_positionInterpolator.SetMaxDuration(maxDuration); if (m_angleInterpolator.IsActive()) m_angleInterpolator.SetMaxDuration(maxDuration); } double ArrowAnimation::GetDuration() const { double duration = 0.0; if (m_angleInterpolator.IsActive()) duration = m_angleInterpolator.GetDuration(); if (m_positionInterpolator.IsActive()) duration = max(duration, m_positionInterpolator.GetDuration()); return duration; } bool ArrowAnimation::IsFinished() const { return m_positionInterpolator.IsFinished() && m_angleInterpolator.IsFinished(); } bool ArrowAnimation::GetProperty(TObject object, TProperty property, PropertyValue & value) const { ASSERT_EQUAL(object, Animation::MyPositionArrow, ()); switch (property) { case Animation::Position: if (m_positionInterpolator.IsActive()) { value = PropertyValue(m_positionInterpolator.GetPosition()); return true; } return false; case Animation::Angle: if (m_angleInterpolator.IsActive()) { value = PropertyValue(m_angleInterpolator.GetAngle()); return true; } return false; default: ASSERT(false, ("Wrong property:", property)); } return false; } } // namespace df
[ "d.volvenkova@corp.mail.ru" ]
d.volvenkova@corp.mail.ru
36453fc14dd4c8e7400687007065524c20dfb482
7dd0365a1e98abf47755fe2bfa889d4dde6eb872
/libraries/libio/BitWriter.h
edea2b31b1d452b6a94353dbb93ed3ea5653667b
[ "MIT", "Zlib", "BSD-2-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
dalalsunil1986/skift
d8b005ce8588a98b29c4ce51412347831a38e248
f2ce030fadac62e4aa6912ed6367a93c37c16ade
refs/heads/main
2023-03-25T01:54:42.903273
2021-03-26T14:49:16
2021-03-26T18:32:48
null
0
0
null
null
null
null
UTF-8
C++
false
false
986
h
#pragma once #include <libio/Write.h> #include <libsystem/Common.h> namespace IO { class BitWriter { public: BitWriter(Writer &writer) : _writer(writer) { } ~BitWriter() { flush(); } inline void put_bits(unsigned int v, const size_t num_bits) { _bit_buffer |= v << _bit_count; _bit_count += num_bits; } inline void put_data(uint8_t *data, size_t len) { _writer.write(data, len); } inline void put_uint16(uint16_t v) { IO::write(_writer, v); } inline void align() { _bit_count += -_bit_count & 7; flush(); } inline void flush() { // Flush one byte at a time while (_bit_count >= 8) { IO::write(_writer, (uint8_t)_bit_buffer); _bit_count -= 8; _bit_buffer >>= 8; } } private: uint_fast32_t _bit_buffer; uint8_t _bit_count; Writer &_writer; }; } // namespace IO
[ "nicovb30@hotmail.com" ]
nicovb30@hotmail.com
e098f47c8debc29b9af126023ffa768fd699ef50
cf9543c0957a1fb79d33dfcd20fad529474b7b97
/Practica-1-usuario/Monomio.cpp
ccd9b696e33ef08d05f3e8c7525354215cb9858f
[]
no_license
alexariza95/Estructuras-de-Datos
af003811b95481df000284e495f692b73457a98b
b1eafaaae8a93fa1566642ff83b961e02d10b8dd
refs/heads/master
2022-01-13T16:00:42.433341
2019-05-19T20:15:50
2019-05-19T20:15:50
170,174,547
1
0
null
null
null
null
UTF-8
C++
false
false
4,713
cpp
/*! \file Monomio.cpp \brief Fichero que contiene el código de las funciones de la clase Monomio */ // Ficheros de cabecera #include <iostream> #include "Monomio.hpp" #define COTA_ERROR 1.0e-6 // Operadores de asignación ed::Monomio & ed::Monomio::operator=(ed::Monomio const &m) { this->setCoeficiente(m.getCoeficiente()); this->setGrado(m.getGrado()); #ifndef NDEBUG assert(std::abs(this->getCoeficiente() - m.getCoeficiente()) < COTA_ERROR); assert(this->getGrado() == m.getGrado()); #endif //NDEBUG // Se devuelve el objeto actual return *this; } ed::Monomio & ed::Monomio::operator=(double const &x) { this->setGrado(0); this->setCoeficiente(x); #ifndef NDEBUG assert(std::abs(this->getCoeficiente() - x) < COTA_ERROR); assert(this->getGrado() == 0); #endif //NDEBUG // Se devuelve el objeto actual return *this; } ////////////////////////////////////////////////////////////// // Operadores aritméticos y asignación ed::Monomio & ed::Monomio::operator+=(ed::Monomio const &m) { //Se comprueba la precondición #ifndef NDEBUG assert(this->getGrado() == m.getGrado()); int lastGrado = this->getGrado(); double coef = this->getCoeficiente(); #endif //NDEBUG this->setCoeficiente(this->getCoeficiente() + m.getCoeficiente()); #ifndef NDEBUG assert(std::abs(this->getCoeficiente() - (coef + m.getCoeficiente())) < COTA_ERROR ); assert(this->getGrado() == lastGrado); #endif //NDEBUG // Se devuelve el objeto actual return *this; } ed::Monomio & ed::Monomio::operator-=(ed::Monomio const &m) { //Se comprueba la precondición #ifndef NDEBUG assert(this->getGrado() == m.getGrado()); int lastGrado = this->getGrado(); double coef = this->getCoeficiente(); #endif //NDEBUG this->setCoeficiente(this->getCoeficiente() - m.getCoeficiente()); #ifndef NDEBUG assert(std::abs(this->getCoeficiente() - (coef - m.getCoeficiente())) < COTA_ERROR); assert(this->getGrado() == lastGrado); #endif //NDEBUG //Se devuelve el objeto actual return *this; } ed::Monomio & ed::Monomio::operator*=(ed::Monomio const &m) { double lastCoef = this->getCoeficiente(); int lastGrado = this->getGrado(); this->setCoeficiente(this->getCoeficiente() * m.getCoeficiente()); this->setGrado(this->getGrado() + m.getGrado()); #ifndef NDEBUG assert(std::abs(this->getCoeficiente() - (lastCoef * m.getCoeficiente())) < COTA_ERROR); assert(this->getGrado() == lastGrado + m.getGrado()); #endif //NDEBUG //Se devuelve el objeto actual return *this; } ed::Monomio & ed::Monomio::operator/=(ed::Monomio const &m) { double lastCoef = this->getCoeficiente(); int lastGrado = this->getGrado(); this->setCoeficiente(this->getCoeficiente() / m.getCoeficiente()); this->setGrado(this->getGrado() - m.getGrado()); #ifndef NDEBUG assert(std::abs(this->getCoeficiente() - (lastCoef / m.getCoeficiente())) < COTA_ERROR); assert(this->getGrado() == lastGrado - m.getGrado()); #endif //NDEBUG //Se devuelve el objeto actual return *this; } ed::Monomio & ed::Monomio::operator*=(double const &x) { double lastCoef = this->getCoeficiente(); int lastGrado = this->getGrado(); this->setCoeficiente(this->getCoeficiente() * x); #ifndef NDEBUG assert(std::abs(this->getCoeficiente() - (lastCoef * x)) < COTA_ERROR); assert(this->getGrado() == lastGrado); #endif //NDEBUG //Se devuelve el objeto actual return *this; } ed::Monomio & ed::Monomio::operator/=(double const &x) { double lastCoef = this->getCoeficiente(); int lastGrado = this->getGrado(); #ifndef NDEBUG assert(x != 0.0); #endif //NDEBUG this->setCoeficiente(this->getCoeficiente() / x); #ifndef NDEBUG assert(std::abs(this->getCoeficiente() - (lastCoef / x)) < COTA_ERROR); assert(this->getGrado() == lastGrado); #endif //NDEBUG //Se devuelve el objeto actual return *this; } /////////////////////////////////////////////////////////////////////// // Funciones lectura y escritura de la clase Monomio // HECHO EN .HPP /////////////////////////////////////////////////////////////////////// // Funciones auxiliares de la clase Monomio ed::Monomio & ed::Monomio::operator^=(int pot) { #ifndef NDEBUG assert( pot >= 0 ); #endif int valorG = this->getGrado(); double valorC = this->getCoeficiente(); this->setGrado(valorG*pot); this->setCoeficiente(std::pow(valorC,pot)); #ifndef NDEBUG assert( this->getGrado() == (valorG * pot) ); assert( std::abs(this->getCoeficiente() - std::pow(valorC,pot)) < COTA_ERROR ); #endif return *this; } double ed::Monomio::calcularValor(double const &x) { double valor , valor1; valor1 = std::pow(x, this->getGrado()); valor = valor1 * this->getCoeficiente(); //Devuelve el objeto 'valor' return valor; }
[ "p42argea@uco.es" ]
p42argea@uco.es
1567172a1f799d7919fcdc4021d6b2904c5febef
b0f1b0e2a57e8f080207ea3c4d8369993eecb5c6
/day11/cpp/src/part2.cpp
1cc36e4a68d7a12b1e4c80c4a3f05fa1ad6d62a2
[]
no_license
tboschi/advent-of-code-2020
70f7f4a9152a53893c31eeb46ca6faa13677520b
78660891d295cafbd752a141c293b5b364940271
refs/heads/master
2023-02-03T02:53:36.099021
2020-12-21T17:41:59
2020-12-21T17:41:59
317,653,096
7
1
null
null
null
null
UTF-8
C++
false
false
2,808
cpp
#include <iostream> #include <fstream> #include <vector> #include <string> #include <sstream> #include <algorithm> #include <numeric> #include <map> using floormap = std::vector<std::string>; // cont number of occupied seats around x, y size_t check(const floormap &state, size_t x, size_t y) { size_t busy = 0; long int i = y, j = x; // vertical directions first while (i > 0 && state[--i][x] == '.'); if (y > 0) busy += (state[i][x] == '#'); i = y; while (i < state.size()-1 && state[++i][x] == '.'); if (y < state.size()-1) busy += (state[i][x] == '#'); i = y; // horizontal directions while (j > 0 && state[y][--j] == '.'); if (x > 0) busy += (state[y][j] == '#'); j = x; while (j < state[y].size()-1 && state[y][++j] == '.'); if (x < state[y].size()-1) busy += (state[y][j] == '#'); j = x; // diagonal directions while (i > 0 && j > 0 && state[--i][--j] == '.'); if (y > 0 && x > 0) busy += (state[i][j] == '#'); i = y; j = x; while (i < state.size()-1 && j < state[y].size()-1 && state[++i][++j] == '.'); if (y < state.size()-1 && x < state[y].size()-1) busy += (state[i][j] == '#'); i = y; j = x; // anti diagonal directions while (i < state.size()-1 && j > 0 && state[++i][--j] == '.'); if (y < state.size()-1 && x > 0) busy += (state[i][j] == '#'); i = y; j = x; while (i > 0 && j < state[y].size()-1 && state[--i][++j] == '.'); if (y > 0 && x < state[y].size()-1) busy += (state[i][j] == '#'); i = y; j = x; return busy; } floormap next(const floormap &state) { floormap newstate = state; for (size_t y = 0; y < newstate.size(); ++y) { for (size_t x = 0; x < newstate[y].size(); ++x) { if (state[y][x] == '.') continue; size_t occupied = check(state, x, y); if (state[y][x] == 'L' && occupied == 0) newstate[y][x] = '#'; else if (state[y][x] == '#' && occupied >= 5) newstate[y][x] = 'L'; } } return newstate; } int main(int argc, char** argv) { if (argc < 1) { std::cerr << "Input file expected\n"; return 1; } // read file std::ifstream infile(argv[1]); if (!infile.good()) { std::cerr << "Input file " << argv[1] << " does not exist\n"; return 1; } std::vector<std::string> seats; std::string line; while (std::getline(infile, line)) { seats.push_back(line); } std::vector<std::string> next_seats(seats.size()); bool diff = true; while (diff) { next_seats = next(seats); diff = false; for (size_t i = 0; i < seats.size(); ++i) if (diff = (seats[i] != next_seats[i])) break; seats = next_seats; } size_t occupied = std::accumulate(next_seats.begin(), next_seats.end(), 0, [](size_t sum, const std::string &sit) { return sum + std::count(sit.begin(), sit.end(), '#'); } ); std::cout << "There are " << occupied << " occupied seats\n"; return 0; }
[ "boschi.tommaso@gmail.com" ]
boschi.tommaso@gmail.com
03ba0c4f3b5293b0cf50942c10dbb55ececbdf43
e69c9f9cc90c99833eaa030f047772232436f3bd
/videochat/message_codes.h
a3b06bef31607bd994319242bb5a84ef372a505e
[]
no_license
DungeonMaster47/videochat
4e5290095fcdc83b2e1a719fcc02c0a85132cc7a
d85cd8253d3e3187a0f0f05115234d25d89521a2
refs/heads/master
2020-12-18T13:08:39.211173
2020-06-20T20:17:35
2020-06-20T20:17:35
235,393,330
0
0
null
null
null
null
UTF-8
C++
false
false
280
h
#pragma once namespace message_codes { constexpr unsigned char WAIT = 0xF0; constexpr unsigned char READY = 0xF1; constexpr unsigned char TEXT = 0xF2; constexpr unsigned char FRAME = 0xF3; constexpr unsigned char SOUND = 0xF5; constexpr unsigned char DISCONNECTED = 0xF4; }
[ "leonsc757@gmail.com" ]
leonsc757@gmail.com
c96de526db1669cb2ed2298fcbba11082b7e6d72
b88922ee39b1d0032b51cf9171162fadbf0367fa
/coupledFoam/anisoSPE10/0/K
09c9ef4312241e67a62df3d8a5596a2f1ddc80d8
[]
no_license
FoamScience/OpenRSR.tutorials
57f7a185bc5ef158ecf59bd1ab66da2b20ca064e
5e3a14e7895c257bae69cb228d468aceb66866fe
refs/heads/master
2020-06-18T07:35:03.207734
2020-03-08T11:53:55
2020-03-08T11:53:55
196,216,260
0
0
null
null
null
null
UTF-8
C++
false
false
512
// -*- C++ -*- // File generated by PyFoam - sorry for the ugliness FoamFile { version 2.0; format ascii; class volTensorField; location "0"; object K; } dimensions [ 0 2 0 0 0 0 0 ]; internalField uniform (1e-10 0 0 0 1e-10 0 0 0 1e-11); boundaryField { outlet { type zeroGradient; } inlet { type zeroGradient; } frontAndBack { type empty; } topAndBottom { type zeroGradient; } } // ************************************************************************* //
[ "elwardifadeli@gmail.com" ]
elwardifadeli@gmail.com
9fb802d2fce31c918ddb5964695ff3f9477b4f74
b4c705bcbf8e287bb5a814523aa9f9e1568a575e
/src/ds/ffi.h
41172ac7a3c38353347e1992380ce6253d3e4ba9
[ "MIT" ]
permissive
iomeone/BSL-AlgorithmW
c69c1e0dc42972c204ce1cb32f9ce268b85d9265
c1774f8a4a37dbe792ef5b17a18030027604aa20
refs/heads/master
2020-12-01T15:16:28.680766
2019-03-22T13:34:59
2019-03-22T13:34:59
null
0
0
null
null
null
null
UTF-8
C++
false
false
163
h
#ifndef SU_BOLEYN_BSL_DS_FFI_H #define SU_BOLEYN_BSL_DS_FFI_H #include <string> #include <vector> using namespace std; struct Ffi { string source; }; #endif
[ "boleyn.su@gmail.com" ]
boleyn.su@gmail.com
17a02857714da63b3860ac1ea64ff3aa56853dd3
ad13a6d7903fed27959d9bbcd7a41a637331facc
/c++/Classes_abstractas.cpp
ef03a5d26f61d30ae08ac77a0a871901787d01f8
[]
no_license
Juanp-Romero/Programacion-J1_21_1
a03fe6228bd80e68421122858e6d77abc5e7e60f
c3bdf44e743875f6d7bd3c072bcc8324c7cd69cf
refs/heads/main
2023-08-25T21:03:18.710649
2021-09-24T15:32:12
2021-09-24T15:32:12
395,698,744
0
0
null
null
null
null
UTF-8
C++
false
false
1,237
cpp
/****************************************************************************** Name: Clases Abstractas Author: Juan Romero Date: 14/09/2021 Purpose: Usage: Plug and place *******************************************************************************/ #include <stdio.h> #include <iostream> using namespace std; #include <iomanip> class computador{ public: int ram = 4; double rom = 10000; virtual void boot_mode_seq() = 0; // Método abstracto / virtual private: string usuario = "admin"; string passw = "1234" ; }; class Acer : public computador{ public: string motherboard = "Asus Rock 580"; void boot_mode_seq() { // definición de clase abstraca cout << "Reinicio + f12" <<endl; }; private: }; class Lenovo : public computador{ public: string motherboard = "Asus Rock 580"; void boot_mode_seq() { // definición de clase abstraca cout << "Reinicio + f8" <<endl; }; private: }; int main() { setlocale(LC_ALL, "spanish"); Acer Acer505; Acer505.boot_mode_seq(); //cout <<" El computador tiene una memoria rom de: "<< Acer505.rom <<endl; Lenovo Yoga202; Yoga202.boot_mode_seq(); // método polimorfismo (definición del ) return 0; }
[ "juan.p.romero.uis@gmail.com" ]
juan.p.romero.uis@gmail.com
b80b2a8029ec7c325943ba3e7bb0de0b84644d9a
5e3fac6568bc351c0500b87fb4842d23cb14646e
/logdevice/common/ClientAPIHitsTracer.h
9e3b448c50ae2906e6bb8ab18645994eeeb3bdd1
[ "BSD-3-Clause" ]
permissive
ahmad-diaa/LogDevice
ab7be8721095164eda33a4de468d6e76d034a4bf
d9caf3ede45cbfadac96f1e1670c6ab4acfce136
refs/heads/master
2020-06-04T18:37:15.067334
2019-06-20T06:01:46
2019-06-20T06:06:32
192,147,164
0
0
NOASSERTION
2019-06-16T03:45:48
2019-06-16T03:45:47
null
UTF-8
C++
false
false
3,449
h
/** * Copyright (c) 2017-present, Facebook, Inc. and its affiliates. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ #pragma once #include <chrono> #include <memory> #include <string> #include "folly/Synchronized.h" #include "logdevice/common/SampledTracer.h" #include "logdevice/common/debug.h" #include "logdevice/include/Client.h" namespace facebook { namespace logdevice { constexpr auto API_HITS_TRACER = "api_hits_tracer"; class ClientAPIHitsTracer : public SampledTracer { public: explicit ClientAPIHitsTracer(std::shared_ptr<TraceLogger> logger); folly::Optional<double> getDefaultSamplePercentage() const override { return 0.05; } void traceFindTime(int64_t msec_resp_time, logid_t in_logid, std::chrono::milliseconds in_timestamp, FindKeyAccuracy in_accuracy, FailedShardsMap&& failed_shards, Status out_status, lsn_t out_lsn = LSN_INVALID); void traceFindKey(int64_t msec_resp_time, logid_t in_logid, std::string in_key, FindKeyAccuracy in_accuracy, FailedShardsMap&& failed_shards, Status out_status, lsn_t out_lsn_lo = LSN_INVALID, lsn_t out_lsn_hi = LSN_INVALID); void traceGetTailAttributes(int64_t msec_resp_time, logid_t in_logid, Status out_status, LogTailAttributes* out_log_tail_attributes); void traceGetHeadAttributes(int64_t msec_resp_time, logid_t in_logid, FailedShardsMap&& failed_shards, Status out_status, LogHeadAttributes* out_log_head_attributes); void traceGetTailLSN(int64_t msec_resp_time, logid_t in_logid, Status out_status, lsn_t out_lsn = LSN_INVALID); void traceIsLogEmpty(int64_t msec_resp_time, logid_t in_logid, FailedShardsMap&& failed_shards, Status out_status, bool out_bool); void traceDataSize(int64_t msec_resp_time, logid_t in_logid, std::chrono::milliseconds start_timestamp, std::chrono::milliseconds end_timestamp, DataSizeAccuracy in_accuracy, FailedShardsMap&& failed_shards, Status out_status, size_t out_size); void traceTrim(int64_t msec_resp_time, logid_t in_logid, lsn_t in_lsn, FailedShardsMap&& failed_shards, Status out_status); private: bool assessIsLogEmptyFlappiness(Status st, logid_t logid, bool empty); struct FlappinessRecord { /** * Steps are: * 0 = no flappiness * 1 = went from empty to not empty before */ unsigned int step : 1; unsigned int prev_val : 1; }; folly::Synchronized< std::unordered_map<logid_t, FlappinessRecord, logid_t::Hash>> is_log_empty_record_; }; }} // namespace facebook::logdevice
[ "facebook-github-bot@users.noreply.github.com" ]
facebook-github-bot@users.noreply.github.com
0f53b92e2dd6bd93e2a866d3890972591dc351cd
13d750a9867dbd9527fe5e2205199b785ba08935
/T1/Layer.cpp
d804df91261dd9183193a5465fefed2c922eb8ff
[]
no_license
nikom1912/CC5114
0aea4817d818e010d2af356d2f098ce28c401205
f60ff9ac58e3e258fb35064fea8e23832cfa7d50
refs/heads/master
2020-07-09T01:21:28.769782
2019-12-15T23:54:53
2019-12-15T23:54:53
203,834,302
0
0
null
null
null
null
UTF-8
C++
false
false
2,032
cpp
// // Created by nikom on 19-08-2019. // #include "Layer.h" #include <random> template <class T> void OutLayer<T>::train() { for(int i = 0; i < this->largo; i++) this->capa[i]->train(); } template <class T> HiddenLayer<T>::HiddenLayer(int entrada, int n, Funciones* nfunc): Layer<T>(entrada, n, nfunc) { } template <class T> double* HiddenLayer<T>::backPropagation(double *arg) { double* outputs = this->evalLayer(); double out_errores[this->entradas] = {}; for(int i = 0; i < this->largo; i++){ double delt = arg[i]*this->func->derivative(outputs[i]); this->get(i)->setDelta(delt); for(int j = 0; j < this->entradas; j++) out_errores[j] += this->get(i)->getW()[j]*delt; } return out_errores; } template <class T> void HiddenLayer<T>::train() { for(int i = 0; i < this->largo; i++) this->capa[i]->train(); } template <class T> Layer<T>::Layer() { entradas = 0; largo = 0; func = new Sigmoid(); capa = nullptr; } template <class T> Layer<T>::Layer(int entrada, int n, Funciones *nfunc) { func = nfunc; largo = n; entradas = 0; capa= new T*[n]; for(int i = 0; i < n; i++){ auto *w = new double[entrada]; for(int j = 0; j < entrada; j++){ w[j] =((rand()%100)/10.0) - 5; } capa[i] = new T(w, 0, entrada, nfunc); } } template <class T> Layer<T>::~Layer() = default; template <class T> T* Layer<T>::get(int n) const { if(n >= this->largo){ throw std::logic_error("[LAYER] get: index out of bound"); } return this->capa[n]; } template <class T> int Layer<T>::getLargo() const { return this->largo; } template <class T> void Layer<T>::feedLayer(double* x) { for(int i = 0; i < this->largo; i++){ this->capa[i]->feed(x); } } template <class T> double* Layer<T>::evalLayer() const{ auto *out = new double[largo]; for(int i = 0; i < this->largo; i++){ out[i] = this->capa[i]->eval(); } return out; }
[ "nikom_1912@hotmail.com" ]
nikom_1912@hotmail.com
c032f3c9cae9c839d8da9760a329727223baa761
568ecb37a72fbed153f2ae01872b1464c925b35a
/connor/csem_interpreter/magic.cpp
f27b5ab6390e72af42338c18c4842cc76f63a26a
[]
no_license
cosc402/project
5e8109dffbb3bb3fb7d5a43fe6ae1b58f7e0ab6e
1d92956b1a5bc1a7a283bd96052b97387157c714
refs/heads/master
2021-01-10T13:18:06.839206
2016-05-06T17:38:47
2016-05-06T17:38:47
51,712,800
0
0
null
2016-02-26T04:08:42
2016-02-14T20:50:14
Python
UTF-8
C++
false
false
170
cpp
int magic(int b, int e) { int i; int result; result = 1; for (i=0; i<e; i+=1) result *= b; return result; } int main() { int i; _print(magic(2,10)); }
[ "cminton3@utk.edu" ]
cminton3@utk.edu
eaf9fa5efafa55fb062272d3c90ef85c441f1abb
2ae12dcaf6ae43264cb16935ddd30b80fd50fad2
/InterviewStreet/src/grouping_game.h
55519fce7bcb1d67fe197053af7e1da5a89a93b4
[]
no_license
saich/cpp-practice
8cae3a87666735b28b610643037daa4b123da55a
036469c77340737ae424bdc38aa2c0c88f5ef224
refs/heads/master
2020-05-20T07:52:21.621959
2013-10-15T06:37:50
2013-10-15T06:37:50
null
0
0
null
null
null
null
UTF-8
C++
false
false
1,626
h
#include <iostream> typedef unsigned long ul; // https://adobe.interviewstreet.com/challenges/dashboard/#problem/4f651708b2919 // WRONG ANSWER!! MISSED THE CONSECUTIVE PART IN THE QUESTION const int kMaxN = 1000; #define MOD 1000000007 unsigned long long Facts[kMaxN + 1]; int group_game() { int T, N, K; scanf("%d", &T); int all[kMaxN]; // skills of all employees int group[kMaxN]; // skills of the sales group // Precalculate all the factorials Facts[0] = 1; for(int i = 1; i <= kMaxN; i++) { Facts[i] = (Facts[i - 1] * i) % MOD; } while(T-- > 0) { // Take input scanf("%d", &N); for(int i = 0; i < N; ++i) { scanf("%d", &all[i]); } scanf("%d", &K); for(int i = 0; i < K; ++i) { scanf("%d", &group[i]); } // Min. & max. of the group.. int groupMin(group[0]), groupMax(group[0]); for(int i = 1; i < K; ++i) { int curr = group[i]; if(curr > groupMax) groupMax = curr; if(curr < groupMin) groupMin = curr; } // No. of total employees with skill >= groupMax, skill < groupMin int nLess(0), nGreat(0); for(int i = 0; i < N; ++i) { if(all[i] >= groupMax) ++nGreat; else if(all[i] < groupMin) ++nLess; } unsigned long long total = 0; int kewl[kMaxN]; kewl[0] = 1; for(int i = 1; i <= nLess; i++) { kewl[i] = (kewl[i - 1] * (nLess - i + 1)) % MOD; } for(int i = 0; i <= nLess; i++) { total = total + (kewl[i] * Facts[N - i - 1]) % MOD; } total = (total * nGreat) % MOD; printf("%llu\n", total); } return 0; }
[ "saiprasad.ch@gmail.com" ]
saiprasad.ch@gmail.com
5140c3652bccd511a754e45f283b26b8024b2deb
7030bdc16a529c04ebacc9d18c5eff9251320ca9
/dev/player/datastream/qsoundfilter/src/QSoundFilter.cpp
2fc19117496a44be7b1b790186c62f43345cd56a
[]
no_license
pleasemarkdarkly/iomega_hipzip
cd770e6cf1b1e719098d5e33e810d897249c0f69
ee741ddf30d3f0875420384837ba8eb9581f5bf2
refs/heads/master
2021-05-24T18:53:04.662340
2020-04-07T08:22:21
2020-04-07T08:22:21
253,705,949
4
0
null
null
null
null
UTF-8
C++
false
false
2,917
cpp
// QSoundFilter.cpp: qsound filter implmementation // danc@iobjects.com 07/26/01 // (c) Interactive Objects #include <util/rbuf/rbuf.h> // rbufs #include <string.h> // memset #include "QSoundFilter.h" REGISTER_FILTER( CQSoundFilter, QSOUND_FILTER_ID ); CQSoundFilter::CQSoundFilter() { memset( (void*)&m_State, 0, sizeof( Q2XState ) ); q2xInitialise( &m_State ); q2xSetVolume( &m_State, 0x3fff, 0x3fff ); q2xSetMode( &m_State, 0 ); q2xSetSampleRate( &m_State, 1 ); q2xReset( &m_State ); } CQSoundFilter::~CQSoundFilter() { // empty } #define _min(x,y) (x<y?x:y) ERESULT CQSoundFilter::DoWork() { if( !m_pWriteBuf || !m_pReadBuf ) return FILTER_FAIL; int amt = rb_read_avail( m_pReadBuf ); int Space = rb_write_avail( m_pWriteBuf ); if( Space == 0 || amt == 0 ) { return FILTER_NO_WORK; } if( Space < amt ) { amt = Space; } unsigned int actualr, actualw, actual; short* inptr, *outptr; while( amt > 0 ) { rb_read_data( m_pReadBuf, amt, &actualr ); rb_write_data( m_pWriteBuf, amt, &actualw ); inptr = (short*)rb_read_ptr( m_pReadBuf ); outptr = (short*)rb_write_ptr( m_pWriteBuf ); actual = _min(actualr, actualw); // do the actual work here for( int i = 0, lim=(actual>>2); i < lim; i++ ) { long left = (long)*inptr++; long right = (long)*inptr++; q2xProcess( &m_State, &left, &right ); *outptr++ = (short) left; *outptr++ = (short) right; } rb_read_done( m_pReadBuf, actual ); rb_write_done( m_pWriteBuf, actual ); amt -= actual; } return FILTER_NO_ERROR; } int CQSoundFilter::Ioctl( int Key, void* Data ) { switch( Key ) { case QSOUND_FILTER_IOCTL_SET_VOLUME: { long* volume = (long*) Data; q2xSetVolume( &m_State, *volume, *(volume+1) ); return FILTER_NO_ERROR; } case QSOUND_FILTER_IOCTL_SET_SPREAD: { long spread = *(long*)Data; if( spread < 0 ) spread = 0; if( spread > 0x7fff ) spread = 0x7fff; q2xSetSpread( &m_State, spread ); return FILTER_NO_ERROR; } case QSOUND_FILTER_IOCTL_SET_MODE: { long mode = *(long*)Data; if( mode < 0 ) mode = 0; if( mode > 1 ) mode = 1; q2xSetMode( &m_State, mode ); return FILTER_NO_ERROR; } default: { return FILTER_FAIL; } }; } int CQSoundFilter::SetWriteBuf( rbuf_writer_t* pW ) { m_pWriteBuf = pW; return FILTER_NO_ERROR; } int CQSoundFilter::SetReadBuf( rbuf_reader_t* pR ) { m_pReadBuf = pR; return FILTER_NO_ERROR; }
[ "pleasemarkdarkly@gmail.com" ]
pleasemarkdarkly@gmail.com
3826f2221cb46b8983bd1eb846b7e7ffb057fece
6b2a8dd202fdce77c971c412717e305e1caaac51
/solutions_5648941810974720_1/C++/whatyouthink/main.cpp
22e58a48dbfba09c44079f31aa63ea1b9bf9abc5
[]
no_license
alexandraback/datacollection
0bc67a9ace00abbc843f4912562f3a064992e0e9
076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf
refs/heads/master
2021-01-24T18:27:24.417992
2017-05-23T09:23:38
2017-05-23T09:23:38
84,313,442
2
4
null
null
null
null
UTF-8
C++
false
false
981
cpp
#include <bits/stdc++.h> using namespace std; int main() { freopen("A-large.in","r",stdin); freopen("A-large.out","w",stdout); int t; cin>>t; for(int cas = 1; cas <= t; cas++) { char s[2010]; cin>>s; int num[100]; int ans[10]; memset(num,0,sizeof(num)); int len = strlen(s); for(int i = 0; i < len; i++) num[s[i]]++; ans[0] = num['Z']; ans[2] = num['W']; ans[4] = num['U']; ans[5] = num['F'] - ans[4]; ans[6] = num['X']; ans[7] = num['V'] - ans[5]; ans[8] = num['G']; ans[9] = num['I'] - ans[8] - ans[6] - ans[5]; ans[3] = num['H'] - ans[8]; ans[1] = num['N'] - ans[7] - 2 * ans[9]; printf("Case #%d: ",cas); for(int i = 0; i <= 9; i++) for(int j = 0; j < ans[i]; j++) printf("%d",i); printf("\n"); } return 0; }
[ "alexandra1.back@gmail.com" ]
alexandra1.back@gmail.com
21e1d461212f0072ec8a6e862b8ecdd7ed004219
bb464ccd86e514d26b9c8398f52e5318d81962fc
/ESP8266_Arduino.original/ESP8266_Arduino.ino
a59727f42ffbb76876cd8fe1b5c27e146b9fb6fd
[]
no_license
camus122/SEAR2018_COMIDA_GATO
eddb71aea70da6fedc433f87016b740258c09356
f2cf94a071cea9dba0792883fb1ea2573d3dcbc5
refs/heads/master
2021-07-22T22:34:43.581106
2020-04-12T15:39:49
2020-04-12T15:39:49
135,390,827
0
0
null
2020-04-12T15:39:50
2018-05-30T05:08:38
null
UTF-8
C++
false
false
8,004
ino
#define DEBUG true // Credenciales del WiFi #define SSID "ssid" #define PASS "passwd" // AccessAir // Datos API ThingSpeak #define THINGSPEAK "184.106.153.149" // thingspeak.com184.106.153.149 String statusChWriteKey = "7HAsdsaHF4QB0BNTWZ"; String statusChId = "511182"; // MiniBomba String pumpChReadKey = "DGSAW"EQB45HIGS"; String pumpChId = "53229454"; // Lampara String lampChReadKey = "42Casdasd6JBR"; String lampChId = "531236"; // LCD #include <LiquidCrystal.h> #define LCD_RS 40 #define LCD_E 41 #define LCD_D4 42 #define LCD_D5 43 #define LCD_D6 44 #define LCD_D7 45 LiquidCrystal lcd (LCD_RS, LCD_E, LCD_D4, LCD_D5, LCD_D6, LCD_D7); // ESP8266 #include <SoftwareSerial.h> SoftwareSerial EspSerial(11, 12); // Rx, Tx #define HARDWARE_RESET_ESP 8 // DS18B20 #include <OneWire.h> #include <DallasTemperature.h> #define ONE_WIRE_BUS 36 // DS18B20 on pin D5 OneWire oneWire(ONE_WIRE_BUS); DallasTemperature ds18b20(&oneWire); //DHT #include "DHT.h" #include <stdlib.h> int pinDHT = 37; int tipoDHT = DHT22; DHT dht(pinDHT, tipoDHT); // Soil humidity #define pinSoilHum A10 // LDR (Light) #define pinLDR A11 // Relay Actuadores int pinRelayPump = 2; int pinRelayLamp = 3; // Variables para enviar en el Status boolean pump = 0; boolean lamp = 0; int airTemp = 0; int airHum = 0; int soilTemp = 0; int soilHum = 0; int light = 0; boolean error; void setup() { Serial.begin(9600); EspSerial.begin(9600); // Comunicacion com Modulo WiFi pinMode(HARDWARE_RESET_ESP,OUTPUT); digitalWrite(HARDWARE_RESET_ESP, HIGH); lcd.begin(16,2); ds18b20.begin(); dht.begin(); pinMode(pinRelayPump, OUTPUT); pinMode(pinRelayLamp, OUTPUT); digitalWrite(pinRelayPump, HIGH); digitalWrite(pinRelayLamp, HIGH); EspConfigInit(); EspHardwareReset(); //Reset do Modulo WiFi } void loop() { error = 0; delay(2000); int command = readThingSpeak(pumpChId, pumpChReadKey); if (command != 9) pump = command; delay (2000); command = readThingSpeak(lampChId, lampChReadKey); if (command != 9) lamp = command; takeActions(); readSensors(); writeThingSpeak(); if (error == 1) { Serial.println(" <<<< ERROR >>>>"); delay (2000); } else showLcdReadSensors(2000); } /********* Read Actuators command from ThingSpeak *************/ int readThingSpeak(String channelID, String key) { startThingSpeakCmd(); int command; // preparacao da string GET String getStr = "GET /channels/"; getStr += channelID; getStr += "/fields/1/last/?api_key="; getStr += key; getStr += "\r\n\r\n"; String messageDown = sendThingSpeakGetCmd(getStr); if (messageDown[5] == 49) command = messageDown[7]-48; else command = 9; return command; } void takeActions(void) { if (pump == 1) digitalWrite(pinRelayPump, LOW); else digitalWrite(pinRelayPump, HIGH); if (lamp == 1) digitalWrite(pinRelayLamp, LOW); else digitalWrite(pinRelayLamp, HIGH); } /********* Read Sensors value *************/ void readSensors(void) { airTemp = dht.readTemperature(); airHum = dht.readHumidity(); ds18b20.requestTemperatures(); soilTemp = random(10,30);//ds18b20.getTempCByIndex(0); // Sensor 0 will capture Soil Temp in Celcius light = map(analogRead(pinLDR), 1023, 0, 100, 0); //LDRDark:0 ==> light 100% soilHum = random(10, 90);// map(analogRead(pinSoilHum), 370, 1000, 100, 0); } /********** Show LCD monitor ***************/ void showLcdReadSensors(int timeout) { showDataInLcd("Estado del Aire", "Temp.", airTemp, "C", timeout); showDataInLcd("Estado del Aire", "Hume.", airHum, "%", timeout); showDataInLcd("Estado del Suelo", "Temp.", soilTemp, "C", timeout); showDataInLcd("Estado del Suelo", "Humedad", soilHum, "%", timeout); showDataInLcd("Estado de la Luz", "Intensidad", light, "%", timeout); } /********* Conexion con TCP con Thingspeak *******/ void writeThingSpeak(void) { startThingSpeakCmd(); String getStr = "GET /update?api_key="; getStr += statusChWriteKey; getStr += "&field1="; getStr += String(pump); getStr += "&field2="; getStr += String(lamp); getStr += "&field3="; getStr += String(airTemp); getStr += "&field4="; getStr += String(airHum); getStr += "&field5="; getStr += String(soilTemp); getStr += "&field6="; getStr += String(soilHum); getStr += "&field7="; getStr += String(light); getStr += "\r\n\r\n"; sendThingSpeakGetCmd(getStr); } void EspConfigInit() { Serial.println("Inicio Configurando ESP8266 ..."); sendData("AT+UART_DEF=9600,8,1,0,0\r\n", 1000); sendData("AT+CWMODE=1\r\n", 1000); String cmd = "AT+CWJAP=\""; cmd += SSID; cmd += "\",\""; cmd += PASS; cmd += "\"\r\n"; sendData(cmd, 5000); sendData("AT+CIFSR\r\n",5000); Serial.println("Fin Configuracion ..."); } /********* Reset ESP *************/ void EspHardwareReset(void) { Serial.println("Reseteando......."); digitalWrite(HARDWARE_RESET_ESP, LOW); delay(500); digitalWrite(HARDWARE_RESET_ESP, HIGH); delay(10000); // Tiempo necesario para comenzar a leer Serial.println("RESET"); } /********* Start communication with ThingSpeak*************/ void startThingSpeakCmd(void) { EspSerial.flush(); // limpa el buffer antes de comezar a grabar String cmd = "AT+CIPSTART=\"TCP\",\""; cmd += THINGSPEAK; // IP de api.thingspeak.com cmd += "\",80\r\n"; if (sendData(cmd, 1000).indexOf("Error") > 0){ Serial.println("AT+CIPSTART error"); return; } } /********* send a GET cmd to ThingSpeak *************/ String sendThingSpeakGetCmd(String getStr) { String cmd = "AT+CIPSEND="; cmd += String(getStr.length()); cmd += "\r\n"; if (sendData(cmd, 2000).indexOf(">") > 0) { //return sendData(getStr, 1000); EspSerial.print(getStr); Serial.println("========== Debug ESP8266 ==========="); Serial.println("# Enviado ==> "); Serial.println(getStr); delay(500);//tempo para processar o GET, sem este delay apresenta busy no próximo comando String messageBody = ""; while (EspSerial.available()) { String line = EspSerial.readStringUntil('\n'); if (line.length() == 1) { //actual content starts after empty line (that has length 1) messageBody = EspSerial.readStringUntil('\n'); } } Serial.println("# Recibido ==> "); Serial.println(messageBody); Serial.println("===================================="); return messageBody; } else { sendData("AT+CIPCLOSE\r\n", 1000); error = 1; return "error"; } } /**************** Show Lcd *****************/ void showDataInLcd(String title, String key, int value, String unit, int timeout) { String text = ""; lcd.clear(); lcd.setCursor(0, 0); lcd.print(title); lcd.setCursor(0, 1); text = key; text += ": "; text += value; text += " "; text += unit; lcd.print(text); delay(timeout); lcd.clear(); } String sendData(String command, int timeout) { String response = ""; EspSerial.print(command); // Se envía el carácter de lectura a la esp8266 delay(500); long int time = millis(); while( (time+timeout) > millis()){ while(EspSerial.available()){ char c = EspSerial.read(); response += c; } } if (DEBUG) { Serial.println("========== Debug ESP8266 ==========="); Serial.println("# Enviado ==> "); Serial.println(command); Serial.println("# Recibido ==> "); Serial.println(response); Serial.println("===================================="); } return response; }
[ "mu122@msn.com" ]
mu122@msn.com
19bfa8291ef839fa2a542e633f2b6fa857275ff5
d07551302729869f9e82bea32ce64ef9e8a985e8
/src/governance-vote.h
96467aa19ed30c2c181303ceed758b8ba166df96
[ "MIT" ]
permissive
jinycoin/jinycoin
724d94762b2f0d5d892dcbd3adb5314c9425091b
f752414a2c7593970d296ab8156e34411ebbf782
refs/heads/master
2020-05-15T20:49:39.132348
2019-07-26T11:09:49
2019-07-26T11:09:49
181,805,922
0
0
null
null
null
null
UTF-8
C++
false
false
6,848
h
// Copyright (c) 2014-2017 The Dash Core developers // Copyright (c) 2019 JINY developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #ifndef JINY_GOVERNANCE_VOTE_H #define JINY_GOVERNANCE_VOTE_H #include <key.h> #include <primitives/transaction.h> #include <boost/lexical_cast.hpp> using namespace std; class CGovernanceVote; class CConnman; // INTENTION OF MASTERNODES REGARDING ITEM enum vote_outcome_enum_t { VOTE_OUTCOME_NONE = 0, VOTE_OUTCOME_YES = 1, VOTE_OUTCOME_NO = 2, VOTE_OUTCOME_ABSTAIN = 3 }; // SIGNAL VARIOUS THINGS TO HAPPEN: enum vote_signal_enum_t { VOTE_SIGNAL_NONE = 0, VOTE_SIGNAL_FUNDING = 1, // -- fund this object for it's stated amount VOTE_SIGNAL_VALID = 2, // -- this object checks out in sentinel engine VOTE_SIGNAL_DELETE = 3, // -- this object should be deleted from memory entirely VOTE_SIGNAL_ENDORSED = 4, // -- officially endorsed by the network somehow (delegation) VOTE_SIGNAL_NOOP1 = 5, // FOR FURTHER EXPANSION VOTE_SIGNAL_NOOP2 = 6, VOTE_SIGNAL_NOOP3 = 7, VOTE_SIGNAL_NOOP4 = 8, VOTE_SIGNAL_NOOP5 = 9, VOTE_SIGNAL_NOOP6 = 10, VOTE_SIGNAL_NOOP7 = 11, VOTE_SIGNAL_NOOP8 = 12, VOTE_SIGNAL_NOOP9 = 13, VOTE_SIGNAL_NOOP10 = 14, VOTE_SIGNAL_NOOP11 = 15, VOTE_SIGNAL_CUSTOM1 = 16, // SENTINEL CUSTOM ACTIONS VOTE_SIGNAL_CUSTOM2 = 17, // 16-35 VOTE_SIGNAL_CUSTOM3 = 18, VOTE_SIGNAL_CUSTOM4 = 19, VOTE_SIGNAL_CUSTOM5 = 20, VOTE_SIGNAL_CUSTOM6 = 21, VOTE_SIGNAL_CUSTOM7 = 22, VOTE_SIGNAL_CUSTOM8 = 23, VOTE_SIGNAL_CUSTOM9 = 24, VOTE_SIGNAL_CUSTOM10 = 25, VOTE_SIGNAL_CUSTOM11 = 26, VOTE_SIGNAL_CUSTOM12 = 27, VOTE_SIGNAL_CUSTOM13 = 28, VOTE_SIGNAL_CUSTOM14 = 29, VOTE_SIGNAL_CUSTOM15 = 30, VOTE_SIGNAL_CUSTOM16 = 31, VOTE_SIGNAL_CUSTOM17 = 32, VOTE_SIGNAL_CUSTOM18 = 33, VOTE_SIGNAL_CUSTOM19 = 34, VOTE_SIGNAL_CUSTOM20 = 35 }; static const int MAX_SUPPORTED_VOTE_SIGNAL = VOTE_SIGNAL_ENDORSED; /** * Governance Voting * * Static class for accessing governance data */ class CGovernanceVoting { public: static vote_outcome_enum_t ConvertVoteOutcome(std::string strVoteOutcome); static vote_signal_enum_t ConvertVoteSignal(std::string strVoteSignal); static std::string ConvertOutcomeToString(vote_outcome_enum_t nOutcome); static std::string ConvertSignalToString(vote_signal_enum_t nSignal); }; // // CGovernanceVote - Allow a masternode node to vote and broadcast throughout the network // class CGovernanceVote { friend bool operator==(const CGovernanceVote& vote1, const CGovernanceVote& vote2); friend bool operator<(const CGovernanceVote& vote1, const CGovernanceVote& vote2); private: bool fValid; //if the vote is currently valid / counted bool fSynced; //if we've sent this to our peers int nVoteSignal; // see VOTE_ACTIONS above CTxIn vinMasternode; uint256 nParentHash; int nVoteOutcome; // see VOTE_OUTCOMES above int64_t nTime; std::vector<unsigned char> vchSig; public: CGovernanceVote(); CGovernanceVote(COutPoint outpointMasternodeIn, uint256 nParentHashIn, vote_signal_enum_t eVoteSignalIn, vote_outcome_enum_t eVoteOutcomeIn); bool IsValid() const { return fValid; } bool IsSynced() const { return fSynced; } int64_t GetTimestamp() const { return nTime; } vote_signal_enum_t GetSignal() const { return vote_signal_enum_t(nVoteSignal); } vote_outcome_enum_t GetOutcome() const { return vote_outcome_enum_t(nVoteOutcome); } const uint256& GetParentHash() const { return nParentHash; } void SetTime(int64_t nTimeIn) { nTime = nTimeIn; } void SetSignature(const std::vector<unsigned char>& vchSigIn) { vchSig = vchSigIn; } bool Sign(CKey& keyMasternode, CPubKey& pubKeyMasternode); bool IsValid(bool fSignatureCheck) const; void Relay(CConnman& connman) const; std::string GetVoteString() const { return CGovernanceVoting::ConvertOutcomeToString(GetOutcome()); } const COutPoint& GetMasternodeOutpoint() const { return vinMasternode.prevout; } /** * GetHash() * * GET UNIQUE HASH WITH DETERMINISTIC VALUE OF THIS SPECIFIC VOTE */ uint256 GetHash() const { CHashWriter ss(SER_GETHASH, PROTOCOL_VERSION); ss << vinMasternode; ss << nParentHash; ss << nVoteSignal; ss << nVoteOutcome; ss << nTime; return ss.GetHash(); } std::string ToString() const { std::ostringstream ostr; ostr << vinMasternode.ToString() << ":" << nTime << ":" << CGovernanceVoting::ConvertOutcomeToString(GetOutcome()) << ":" << CGovernanceVoting::ConvertSignalToString(GetSignal()); return ostr.str(); } /** * GetTypeHash() * * GET HASH WITH DETERMINISTIC VALUE OF MASTERNODE-VIN/PARENT-HASH/VOTE-SIGNAL * * This hash collides with previous masternode votes when they update their votes on governance objects. * With 12.1 there's various types of votes (funding, valid, delete, etc), so this is the deterministic hash * that will collide with the previous vote and allow the system to update. * * -- * * We do not include an outcome, because that can change when a masternode updates their vote from yes to no * on funding a specific project for example. * We do not include a time because it will be updated each time the vote is updated, changing the hash */ uint256 GetTypeHash() const { // CALCULATE HOW TO STORE VOTE IN governance.mapVotes CHashWriter ss(SER_GETHASH, PROTOCOL_VERSION); ss << vinMasternode; ss << nParentHash; ss << nVoteSignal; // -- no outcome // -- timeless return ss.GetHash(); } ADD_SERIALIZE_METHODS; template <typename Stream, typename Operation> inline void SerializationOp(Stream& s, Operation ser_action) { READWRITE(vinMasternode); READWRITE(nParentHash); READWRITE(nVoteOutcome); READWRITE(nVoteSignal); READWRITE(nTime); READWRITE(vchSig); } }; /** * 12.1.1 - CGovernanceVoteManager * ------------------------------- * GetVote(name, yes_no): - caching function - mark last accessed votes - load serialized files from filesystem if needed - calc answer - return result CacheUnused(): - Cache votes if lastused > 12h/24/48/etc */ #endif // JINY_GOVERNANCE_VOTE_H
[ "info@jinycoin.com" ]
info@jinycoin.com
ddea54bef44cb2d75b18251bef8709be39bfbcfe
4c919af4f89b5f73198464af0c0f9414c695f664
/Dungeon.cpp
e042b1819230fabb26f6bf72cc2addec80302ac1
[]
no_license
erickarlsmyrTGA/Diablo-v1
eb3f21f465d0adc1a1b4cd79ec86cc572e2d047b
efe07a57d504a7e2c5d57ac677ae3d0e1c416e93
refs/heads/main
2023-01-06T03:16:40.884162
2020-10-19T14:00:00
2020-10-19T14:00:00
null
0
0
null
null
null
null
UTF-8
C++
false
false
305
cpp
#include "Dungeon.h" #include "Utility.h" Dungeon::Dungeon() { int totalNumberOfDoorsInDungeon = Utility::RandomNumberGenerator(7, 15); for (int i = 0; i < 10; i++) { Room room; myRooms.push_back(room); } } Dungeon::~Dungeon() { } std::vector<Room>& Dungeon::GetRooms() { return myRooms; }
[ "71003093+erickarlsmyrTGA@users.noreply.github.com" ]
71003093+erickarlsmyrTGA@users.noreply.github.com
5f0e9cfc05fc7cacbc68ffb36b083911988f0ad4
21d213e50acf5d72f631d5f12bca2d6020d8e52c
/ordo-mirror/src/db/dbx1000/storage/index_btree.cpp
68e6d357f6f0398a5aa32023c8661f9a8ccc1b5b
[]
no_license
yazici/numa-stm
512bec290ca2e72e297132b7baa307b3d8c2b827
78b4aa4963aca6c73c1c4c1661b32b5aab3b1949
refs/heads/master
2021-01-05T10:33:40.815580
2018-03-26T19:29:12
2018-03-26T19:29:12
null
0
0
null
null
null
null
UTF-8
C++
false
false
20,123
cpp
#include "mem_alloc.h" #include "index_btree.h" #include "row.h" RC index_btree::init(uint64_t part_cnt) { this->part_cnt = part_cnt; order = BTREE_ORDER; // these pointers can be mapped anywhere. They won't be changed roots = (bt_node **) malloc(part_cnt * sizeof(bt_node *)); // "cur_xxx_per_thd" is only for SCAN queries. ARR_PTR(bt_node *, cur_leaf_per_thd, g_thread_cnt); ARR_PTR(UInt32, cur_idx_per_thd, g_thread_cnt); // the index tree of each partition musted be mapped to corresponding l2 slices for (UInt32 part_id = 0; part_id < part_cnt; part_id ++) { RC rc; rc = make_lf(part_id, roots[part_id]); assert (rc == RCOK); } return RCOK; } RC index_btree::init(uint64_t part_cnt, table_t * table) { this->table = table; init(part_cnt); return RCOK; } bt_node * index_btree::find_root(uint64_t part_id) { assert (part_id < part_cnt); return roots[part_id]; } bool index_btree::index_exist(idx_key_t key) { assert(false); // part_id is not correct now. glob_param params; params.part_id = key_to_part(key) % part_cnt; bt_node * leaf; // does not matter which thread check existence find_leaf(params, key, INDEX_NONE, leaf); if (leaf == NULL) return false; for (UInt32 i = 0; i < leaf->num_keys; i++) if (leaf->keys[i] == key) { // the record is found! return true; } return false; } RC index_btree::index_next(uint64_t thd_id, itemid_t * &item, bool samekey) { int idx = *cur_idx_per_thd[thd_id]; bt_node * leaf = *cur_leaf_per_thd[thd_id]; idx_key_t cur_key = leaf->keys[idx] ; *cur_idx_per_thd[thd_id] += 1; if (*cur_idx_per_thd[thd_id] >= leaf->num_keys) { leaf = leaf->next; *cur_leaf_per_thd[thd_id] = leaf; *cur_idx_per_thd[thd_id] = 0; } if (leaf == NULL) item = NULL; else { assert( leaf->is_leaf ); if ( samekey && leaf->keys[ *cur_idx_per_thd[thd_id] ] != cur_key) item = NULL; else item = (itemid_t *) leaf->pointers[ *cur_idx_per_thd[thd_id] ]; } return RCOK; } RC index_btree::index_read(idx_key_t key, itemid_t *& item) { assert(false); return RCOK; } RC index_btree::index_read(idx_key_t key, itemid_t *& item, int part_id) { return index_read(key, item, 0, part_id); } RC index_btree::index_read(idx_key_t key, itemid_t *& item, uint64_t thd_id, int64_t part_id) { RC rc = Abort; glob_param params; assert(part_id != -1); params.part_id = part_id; bt_node * leaf; find_leaf(params, key, INDEX_READ, leaf); if (leaf == NULL) M_ASSERT(false, "the leaf does not exist!"); for (UInt32 i = 0; i < leaf->num_keys; i++) if (leaf->keys[i] == key) { item = (itemid_t *)leaf->pointers[i]; release_latch(leaf); (*cur_leaf_per_thd[thd_id]) = leaf; *cur_idx_per_thd[thd_id] = i; return RCOK; } // release the latch after reading the node printf("key = %ld\n", key); M_ASSERT(false, "the key does not exist!"); return rc; } RC index_btree::index_insert(idx_key_t key, itemid_t * item, int part_id) { glob_param params; if (WORKLOAD == TPCC) assert(part_id != -1); assert(part_id != -1); params.part_id = part_id; // create a tree if there does not exist one already RC rc = RCOK; bt_node * root = find_root(params.part_id); assert(root != NULL); int depth = 0; // TODO tree depth < 100 bt_node * ex_list[100]; bt_node * leaf = NULL; bt_node * last_ex = NULL; rc = find_leaf(params, key, INDEX_INSERT, leaf, last_ex); assert(rc == RCOK); bt_node * tmp_node = leaf; if (last_ex != NULL) { while (tmp_node != last_ex) { // assert( tmp_node->latch_type == LATCH_EX ); ex_list[depth++] = tmp_node; tmp_node = tmp_node->parent; assert (depth < 100); } ex_list[depth ++] = last_ex; } else ex_list[depth++] = leaf; // from this point, the required data structures are all latched, // so the system should not abort anymore. // M_ASSERT(!index_exist(key), "the index does not exist!"); // insert into btree if the leaf is not full if (leaf->num_keys < order - 1 || leaf_has_key(leaf, key) >= 0) { rc = insert_into_leaf(params, leaf, key, item); // only the leaf should be ex latched. // assert( release_latch(leaf) == LATCH_EX ); for (int i = 0; i < depth; i++) release_latch(ex_list[i]); // assert( release_latch(ex_list[i]) == LATCH_EX ); } else { // split the nodes when necessary rc = split_lf_insert(params, leaf, key, item); for (int i = 0; i < depth; i++) release_latch(ex_list[i]); // assert( release_latch(ex_list[i]) == LATCH_EX ); } // assert(leaf->latch_type == LATCH_NONE); return rc; } RC index_btree::make_lf(uint64_t part_id, bt_node *& node) { RC rc = make_node(part_id, node); if (rc != RCOK) return rc; node->is_leaf = true; return RCOK; } RC index_btree::make_nl(uint64_t part_id, bt_node *& node) { RC rc = make_node(part_id, node); if (rc != RCOK) return rc; node->is_leaf = false; return RCOK; } RC index_btree::make_node(uint64_t part_id, bt_node *& node) { // printf("make_node(). part_id=%lld\n", part_id); bt_node * new_node = (bt_node *) mem_allocator.alloc(sizeof(bt_node), part_id); assert (new_node != NULL); new_node->pointers = NULL; new_node->keys = (idx_key_t *) mem_allocator.alloc((order - 1) * sizeof(idx_key_t), part_id); new_node->pointers = (void **) mem_allocator.alloc(order * sizeof(void *), part_id); assert (new_node->keys != NULL && new_node->pointers != NULL); new_node->is_leaf = false; new_node->num_keys = 0; new_node->parent = NULL; new_node->next = NULL; // new_node->locked = false; new_node->latch = false; new_node->latch_type = LATCH_NONE; node = new_node; return RCOK; } RC index_btree::start_new_tree(glob_param params, idx_key_t key, itemid_t * item) { RC rc; uint64_t part_id = params.part_id; rc = make_lf(part_id, roots[part_id % part_cnt]); if (rc != RCOK) return rc; bt_node * root = roots[part_id % part_cnt]; assert(root != NULL); root->keys[0] = key; root->pointers[0] = (void *)item; root->parent = NULL; root->num_keys++; return RCOK; } bool index_btree::latch_node(bt_node * node, latch_t latch_type) { // TODO latch is disabled if (!ENABLE_LATCH) return true; bool success = false; // printf("%s : %d\n", __FILE__, __LINE__); // if ( g_cc_alg != HSTORE ) while ( !ATOM_CAS(node->latch, false, true) ) {} // pthread_mutex_lock(&node->locked); // printf("%s : %d\n", __FILE__, __LINE__); latch_t node_latch = node->latch_type; if (node_latch == LATCH_NONE || (node_latch == LATCH_SH && latch_type == LATCH_SH)) { node->latch_type = latch_type; if (node_latch == LATCH_NONE) M_ASSERT( (node->share_cnt == 0), "share cnt none 0!" ); if (node->latch_type == LATCH_SH) node->share_cnt ++; success = true; } else // latch_type incompatible success = false; // if ( g_cc_alg != HSTORE ) bool ok = ATOM_CAS(node->latch, true, false); assert(ok); // pthread_mutex_unlock(&node->locked); // assert(ATOM_CAS(node->locked, true, false)); return success; } latch_t index_btree::release_latch(bt_node * node) { if (!ENABLE_LATCH) return LATCH_SH; latch_t type = node->latch_type; // if ( g_cc_alg != HSTORE ) while ( !ATOM_CAS(node->latch, false, true) ) {} // pthread_mutex_lock(&node->locked); // while (!ATOM_CAS(node->locked, false, true)) {} M_ASSERT((node->latch_type != LATCH_NONE), "release latch fault"); if (node->latch_type == LATCH_EX) node->latch_type = LATCH_NONE; else if (node->latch_type == LATCH_SH) { node->share_cnt --; if (node->share_cnt == 0) node->latch_type = LATCH_NONE; } // if ( g_cc_alg != HSTORE ) bool ok = ATOM_CAS(node->latch, true, false); assert(ok); // pthread_mutex_unlock(&node->locked); // assert(ATOM_CAS(node->locked, true, false)); return type; } RC index_btree::upgrade_latch(bt_node * node) { if (!ENABLE_LATCH) return RCOK; bool success = false; // if ( g_cc_alg != HSTORE ) while ( !ATOM_CAS(node->latch, false, true) ) {} // pthread_mutex_lock(&node->locked); // while (!ATOM_CAS(node->locked, false, true)) {} M_ASSERT( (node->latch_type == LATCH_SH), "Error" ); if (node->share_cnt > 1) success = false; else { // share_cnt == 1 success = true; node->latch_type = LATCH_EX; node->share_cnt = 0; } // if ( g_cc_alg != HSTORE ) bool ok = ATOM_CAS(node->latch, true, false); assert(ok); // pthread_mutex_unlock(&node->locked); // assert( ATOM_CAS(node->locked, true, false) ); if (success) return RCOK; else return Abort; } RC index_btree::cleanup(bt_node * node, bt_node * last_ex) { if (last_ex != NULL) { do { node = node->parent; // assert(release_latch(node) == LATCH_EX); release_latch(node); } while (node != last_ex); } return RCOK; } RC index_btree::find_leaf(glob_param params, idx_key_t key, idx_acc_t access_type, bt_node *& leaf) { bt_node * last_ex = NULL; assert(access_type != INDEX_INSERT); RC rc = find_leaf(params, key, access_type, leaf, last_ex); return rc; } RC index_btree::find_leaf(glob_param params, idx_key_t key, idx_acc_t access_type, bt_node *& leaf, bt_node *& last_ex) { // RC rc; UInt32 i; bt_node * c = find_root(params.part_id); assert(c != NULL); bt_node * child; if (access_type == INDEX_NONE) { while (!c->is_leaf) { for (i = 0; i < c->num_keys; i++) { if (key < c->keys[i]) break; } c = (bt_node *)c->pointers[i]; } leaf = c; return RCOK; } // key should be inserted into the right side of i if (!latch_node(c, LATCH_SH)) return Abort; while (!c->is_leaf) { assert(get_part_id(c) == params.part_id); assert(get_part_id(c->keys) == params.part_id); for (i = 0; i < c->num_keys; i++) { if (key < c->keys[i]) break; } child = (bt_node *)c->pointers[i]; if (!latch_node(child, LATCH_SH)) { release_latch(c); cleanup(c, last_ex); last_ex = NULL; return Abort; } if (access_type == INDEX_INSERT) { if (child->num_keys == order - 1) { if (upgrade_latch(c) != RCOK) { release_latch(c); release_latch(child); cleanup(c, last_ex); last_ex = NULL; return Abort; } if (last_ex == NULL) last_ex = c; } else { cleanup(c, last_ex); last_ex = NULL; release_latch(c); } } else release_latch(c); // release the LATCH_SH on c c = child; } // c is leaf // at this point, if the access is a read, then only the leaf is latched by LATCH_SH // if the access is an insertion, then the leaf is sh latched and related nodes in the tree // are ex latched. if (access_type == INDEX_INSERT) { if (upgrade_latch(c) != RCOK) { release_latch(c); cleanup(c, last_ex); return Abort; } } leaf = c; assert (leaf->is_leaf); return RCOK; } RC index_btree::insert_into_leaf(glob_param params, bt_node * leaf, idx_key_t key, itemid_t * item) { UInt32 i, insertion_point; insertion_point = 0; int idx = leaf_has_key(leaf, key); if (idx >= 0) { item->next = (itemid_t *)leaf->pointers[idx]; leaf->pointers[idx] = (void *) item; return RCOK; } while (insertion_point < leaf->num_keys && leaf->keys[insertion_point] < key) insertion_point++; for (i = leaf->num_keys; i > insertion_point; i--) { leaf->keys[i] = leaf->keys[i - 1]; leaf->pointers[i] = leaf->pointers[i - 1]; } leaf->keys[insertion_point] = key; leaf->pointers[insertion_point] = (void *)item; leaf->num_keys++; M_ASSERT( (leaf->num_keys < order), "too many keys in leaf" ); return RCOK; } RC index_btree::split_lf_insert(glob_param params, bt_node * leaf, idx_key_t key, itemid_t * item) { RC rc; UInt32 insertion_index, split, i, j; idx_key_t new_key; uint64_t part_id = params.part_id; bt_node * new_leaf; // printf("will make_lf(). part_id=%lld, key=%lld\n", part_id, key); // pthread_t id = pthread_self(); // printf("%08x\n", id); rc = make_lf(part_id, new_leaf); if (rc != RCOK) return rc; M_ASSERT(leaf->num_keys == order - 1, "trying to split non-full leaf!"); idx_key_t temp_keys[BTREE_ORDER]; itemid_t * temp_pointers[BTREE_ORDER]; insertion_index = 0; while (insertion_index < order - 1 && leaf->keys[insertion_index] < key) insertion_index++; for (i = 0, j = 0; i < leaf->num_keys; i++, j++) { if (j == insertion_index) j++; // new_leaf->keys[j] = leaf->keys[i]; // new_leaf->pointers[j] = (itemid_t *)leaf->pointers[i]; temp_keys[j] = leaf->keys[i]; temp_pointers[j] = (itemid_t *)leaf->pointers[i]; } // new_leaf->keys[insertion_index] = key; // new_leaf->pointers[insertion_index] = item; temp_keys[insertion_index] = key; temp_pointers[insertion_index] = item; // leaf is on the left of new_leaf split = cut(order - 1); leaf->num_keys = 0; for (i = 0; i < split; i++) { // leaf->pointers[i] = new_leaf->pointers[i]; // leaf->keys[i] = new_leaf->keys[i]; leaf->pointers[i] = temp_pointers[i]; leaf->keys[i] = temp_keys[i]; leaf->num_keys++; M_ASSERT( (leaf->num_keys < order), "too many keys in leaf" ); } for (i = split, j = 0; i < order; i++, j++) { // new_leaf->pointers[j] = new_leaf->pointers[i]; // new_leaf->keys[j] = new_leaf->keys[i]; new_leaf->pointers[j] = temp_pointers[i]; new_leaf->keys[j] = temp_keys[i]; new_leaf->num_keys++; M_ASSERT( (leaf->num_keys < order), "too many keys in leaf" ); } // delete temp_pointers; // delete temp_keys; new_leaf->next = leaf->next; leaf->next = new_leaf; // new_leaf->pointers[order - 1] = leaf->pointers[order - 1]; // leaf->pointers[order - 1] = new_leaf; for (i = leaf->num_keys; i < order - 1; i++) leaf->pointers[i] = NULL; for (i = new_leaf->num_keys; i < order - 1; i++) new_leaf->pointers[i] = NULL; new_leaf->parent = leaf->parent; new_key = new_leaf->keys[0]; rc = insert_into_parent(params, leaf, new_key, new_leaf); return rc; } RC index_btree::insert_into_parent( glob_param params, bt_node * left, idx_key_t key, bt_node * right) { bt_node * parent = left->parent; /* Case: new root. */ if (parent == NULL) return insert_into_new_root(params, left, key, right); UInt32 insert_idx = 0; while (parent->keys[insert_idx] < key && insert_idx < parent->num_keys) insert_idx ++; // the parent has enough space, just insert into it if (parent->num_keys < order - 1) { for (UInt32 i = parent->num_keys-1; i >= insert_idx; i--) { parent->keys[i + 1] = parent->keys[i]; parent->pointers[i+2] = parent->pointers[i+1]; } parent->num_keys ++; parent->keys[insert_idx] = key; parent->pointers[insert_idx + 1] = right; return RCOK; } /* Harder case: split a node in order * to preserve the B+ tree properties. */ return split_nl_insert(params, parent, insert_idx, key, right); // return RCOK; } RC index_btree::insert_into_new_root( glob_param params, bt_node * left, idx_key_t key, bt_node * right) { RC rc; uint64_t part_id = params.part_id; bt_node * new_root; // printf("will make_nl(). part_id=%lld. key=%lld\n", part_id, key); rc = make_nl(part_id, new_root); if (rc != RCOK) return rc; new_root->keys[0] = key; new_root->pointers[0] = left; new_root->pointers[1] = right; new_root->num_keys++; M_ASSERT( (new_root->num_keys < order), "too many keys in leaf" ); new_root->parent = NULL; left->parent = new_root; right->parent = new_root; left->next = right; this->roots[part_id] = new_root; // TODO this new root is not latched, at this point, other threads // may start to access this new root. Is this ok? return RCOK; } RC index_btree::split_nl_insert( glob_param params, bt_node * old_node, UInt32 left_index, idx_key_t key, bt_node * right) { RC rc; uint64_t i, j, split, k_prime; bt_node * new_node, * child; // idx_key_t * temp_keys; // btUInt32 temp_pointers; uint64_t part_id = params.part_id; rc = make_node(part_id, new_node); /* First create a temporary set of keys and pointers * to hold everything in order, including * the new key and pointer, inserted in their * correct places. * Then create a new node and copy half of the * keys and pointers to the old node and * the other half to the new. */ idx_key_t temp_keys[BTREE_ORDER]; bt_node * temp_pointers[BTREE_ORDER + 1]; for (i = 0, j = 0; i < old_node->num_keys + 1; i++, j++) { if (j == left_index + 1) j++; // new_node->pointers[j] = (bt_node *)old_node->pointers[i]; temp_pointers[j] = (bt_node *)old_node->pointers[i]; } for (i = 0, j = 0; i < old_node->num_keys; i++, j++) { if (j == left_index) j++; // new_node->keys[j] = old_node->keys[i]; temp_keys[j] = old_node->keys[i]; } // new_node->pointers[left_index + 1] = right; // new_node->keys[left_index] = key; temp_pointers[left_index + 1] = right; temp_keys[left_index] = key; /* Create the new node and copy * half the keys and pointers to the * old and half to the new. */ split = cut(order); // printf("will make_node(). part_id=%lld, key=%lld\n", part_id, key); if (rc != RCOK) return rc; old_node->num_keys = 0; for (i = 0; i < split - 1; i++) { // old_node->pointers[i] = new_node->pointers[i]; // old_node->keys[i] = new_node->keys[i]; old_node->pointers[i] = temp_pointers[i]; old_node->keys[i] = temp_keys[i]; old_node->num_keys++; M_ASSERT( (old_node->num_keys < order), "too many keys in leaf" ); } new_node->next = old_node->next; old_node->next = new_node; old_node->pointers[i] = temp_pointers[i]; k_prime = temp_keys[split - 1]; // old_node->pointers[i] = new_node->pointers[i]; // k_prime = new_node->keys[split - 1]; for (++i, j = 0; i < order; i++, j++) { new_node->pointers[j] = temp_pointers[i]; new_node->keys[j] = temp_keys[i]; // new_node->pointers[j] = new_node->pointers[i]; // new_node->keys[j] = new_node->keys[i]; new_node->num_keys++; M_ASSERT( (old_node->num_keys < order), "too many keys in leaf" ); } new_node->pointers[j] = temp_pointers[i]; // new_node->pointers[j] = new_node->pointers[i]; // delete temp_pointers; // delete temp_keys; new_node->parent = old_node->parent; for (i = 0; i <= new_node->num_keys; i++) { child = (bt_node *)new_node->pointers[i]; child->parent = new_node; } /* Insert a new key into the parent of the two * nodes resulting from the split, with * the old node to the left and the new to the right. */ return insert_into_parent(params, old_node, k_prime, new_node); } int index_btree::leaf_has_key(bt_node * leaf, idx_key_t key) { for (UInt32 i = 0; i < leaf->num_keys; i++) if (leaf->keys[i] == key) return i; return -1; } UInt32 index_btree::cut(UInt32 length) { if (length % 2 == 0) return length/2; else return length/2 + 1; } /* void index_btree::print_btree(bt_node * start) { if (roots == NULL) { cout << "NULL" << endl; return; } bt_node * c; bt_node * p = start; bool last_iter = false; do { c = p; if (!c->is_leaf) p = (bt_node *)c->pointers[0]; else last_iter = true; while (c != NULL) { for (int i = 0; i < c->num_keys; i++) { row_t * r = (row_t *)((itemid_t*)c->pointers[i])->location; if (c->is_leaf) printf("%lld(%lld,%d),", c->keys[i], r->get_uint_value(0), ((itemid_t*)c->pointers[i])->valid); else printf("%lld,", c->keys[i]); } cout << "|"; c = c->next; } cout << endl; } while (!last_iter); }*/
[ "changwoo@vt.edu" ]
changwoo@vt.edu
4745ad8756965d3d32b02a7c9c7c0d3ac71fa7ce
4e803914ed1488152e17b3205cc1fa7121739eb1
/tabla de multiplicar/main.cpp
d89a40e019b0d3543f363686822896c231f326c9
[]
no_license
anderson36/taller-3
7ad337c7e046d8f7f76e1c9910bbcccea1abccf3
4acc97151db2d97170dbaa0e16351e2cb5fe54bf
refs/heads/master
2020-04-17T14:09:41.953376
2016-08-21T01:10:00
2016-08-21T01:10:00
66,174,963
0
0
null
null
null
null
UTF-8
C++
false
false
218
cpp
#include <iostream> using namespace std; int main() { int i; int n; cout << "ingrese numero a multiplicar" << endl; cin >> n; for (i=1;i<=10;i++) { cout << n << "x" << i << "=" << n*i << endl; } return 0; }
[ "andersons_36@hotmail.com" ]
andersons_36@hotmail.com
5ca1d494e490edd229b078cb2ddb38d5835457c4
4e68f780a2a07db809a3b0b4643086587a21957f
/AdvancedLevel_C++/1005 Spell It Right.cpp
122e842ce2c6cbadeb17dfdba2e5ca44729083b0
[]
no_license
honchen22/PAT
960a3e17cfabda6cd9f33be7880f20c981158cc6
4d9be16a6da3b6bb42560f0020eb2f33e44d8a86
refs/heads/master
2020-04-12T10:14:21.621558
2019-07-22T02:28:48
2019-07-22T02:28:48
162,423,396
0
0
null
null
null
null
UTF-8
C++
false
false
487
cpp
#include <iostream> using namespace std; int main() { string table[10] = {"zero", "one", "two", "three", "four", "five", "six", "seven", "eight", "nine"}; string str; cin >> str; int sum = 0; for (int i = 0; i < str.size(); i++) { sum += (str[i] - '0'); } string tmp = to_string(sum); string res = table[tmp[0] - '0']; for (int i = 1; i < tmp.size(); ++i) { res += ' ' + table[tmp[i] - '0']; } cout << res; return 0; }
[ "tencen@Tencen.local" ]
tencen@Tencen.local
559c07b4d373194d1af8425ca5e02a5b4a0bf24c
f7e42d22b49a3a66016492bc53233386533db9cf
/Module05/ex02/Bureaucrat.hpp
07768446ab4b58a3ab871fef1d59ad5f21a6743b
[]
no_license
42Curriculum/CPP_Modules
5737ce1f55aca98ac0e8ff470f91cd66de343fcc
930eaf99008c2c2605a7f69981738a6cabb7796f
refs/heads/master
2022-12-31T22:34:20.394057
2020-10-24T10:03:45
2020-10-24T10:03:45
281,915,486
1
0
null
null
null
null
UTF-8
C++
false
false
1,737
hpp
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* Bureaucrat.hpp :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: jjosephi <jjosephi@student.42.us.org> +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2020/05/12 03:41:05 by jjosephi #+# #+# */ /* Updated: 2020/05/15 11:38:47 by jjosephi ### ########.fr */ /* */ /* ************************************************************************** */ #ifndef BUREAUCRAT_HPP # define BUREAUCRAT_HPP # include <iostream> # include <string> class Bureaucrat; # include "Form.hpp" class Bureaucrat { private: std::string const name; int grade; public: Bureaucrat(){} Bureaucrat(std::string const &name, int grade); Bureaucrat(Bureaucrat const &copy); virtual ~Bureaucrat() {} Bureaucrat &operator=(Bureaucrat const &copy); std::string const &getName() const; int getGrade() const; void incrementGrade(); void decrementGrade(); class GradeTooHighException : public std::exception {virtual const char* what() const throw();}; class GradeTooLowException : public std::exception {virtual const char* what() const throw();}; void signForm(Form &form); void executeForm(Form &form); }; std::ostream &operator<<(std::ostream &out, Bureaucrat const &bureaucrat); #endif
[ "mahthaki@gmail.com" ]
mahthaki@gmail.com
5d8a68df1f234a92dea80f7cbf159672f0274776
19b4aea6c829b272ae29692ccc51f9ab8dcf573f
/src/winrt/impl/Windows.ApplicationModel.Wallet.System.1.h
94921ad2230ac026c441a19c169263edb460eb9b
[ "MIT" ]
permissive
liquidboy/X
9665573b6e30dff8912ab64a8daf08f9f3176628
bf94a0af4dd06ab6c66027afdcda88eda0b4ae47
refs/heads/master
2022-12-10T17:41:15.490231
2021-12-07T01:31:38
2021-12-07T01:31:38
51,222,325
29
9
null
2021-08-04T21:30:44
2016-02-06T21:16:04
C++
UTF-8
C++
false
false
967
h
// C++/WinRT v1.0.170906.1 // Copyright (c) 2017 Microsoft Corporation. All rights reserved. #pragma once #include "winrt/impl/Windows.ApplicationModel.Wallet.0.h" #include "winrt/impl/Windows.Storage.Streams.0.h" #include "winrt/impl/Windows.ApplicationModel.Wallet.System.0.h" WINRT_EXPORT namespace winrt::Windows::ApplicationModel::Wallet::System { struct WINRT_EBO IWalletItemSystemStore : Windows::Foundation::IInspectable, impl::consume_t<IWalletItemSystemStore> { IWalletItemSystemStore(std::nullptr_t = nullptr) noexcept {} }; struct WINRT_EBO IWalletItemSystemStore2 : Windows::Foundation::IInspectable, impl::consume_t<IWalletItemSystemStore2> { IWalletItemSystemStore2(std::nullptr_t = nullptr) noexcept {} }; struct WINRT_EBO IWalletManagerSystemStatics : Windows::Foundation::IInspectable, impl::consume_t<IWalletManagerSystemStatics> { IWalletManagerSystemStatics(std::nullptr_t = nullptr) noexcept {} }; }
[ "fajardo_jf@hotmail.com" ]
fajardo_jf@hotmail.com
b4d20b429c9c6b1d584d84e17ad5b6f7ad0ace64
505eafaaf28b795a73d2f8c56facb7f0498922fa
/LiveArchive/2281.cpp
3cd0c6c462a7eaa81028e26978dff4bf2862e357
[]
no_license
thabetx/CompetitiveProgramming
f4b0798ee58ba91962ae635cd3b89ef41a5dc9a4
ead587846ff0753fa793701ef4b28fab3476cd32
refs/heads/master
2021-04-30T17:43:49.779095
2017-04-16T10:22:03
2017-04-16T10:22:03
80,250,690
0
0
null
null
null
null
UTF-8
C++
false
false
554
cpp
#include <iostream> #include <vector> using namespace std; #define f first #define s second.first #define t second.second int main(){ vector<pair<int, pair<int,int>>>v(16); for(int i=0; i<16; i++) cin>>v[i].f>>v[i].s>>v[i].t; int x,y,z; while(cin>>x>>y>>z){ if(x==-1)break; pair<int, pair<int,int>>ans; int mn=1000000000; for(auto i:v){ double d = (i.f-x)*(i.f-x) + (i.s-y)*(i.s-y) + (i.t-z)*(i.t-z); if(d<mn) mn=d, ans=i; } printf("(%d,%d,%d) maps to (%d,%d,%d)\n", x, y, z, ans.f, ans.s, ans.t); } }
[ "thabetx@gmail.com" ]
thabetx@gmail.com
6cf0e4de0d7d18269f3e0b4ddee4127a88b24fac
3ca0354d3e76345b1b9aaac56380a7ba8b9a8385
/Digital Image Processing/Homework2/Code & Image1/main.cpp
a31bd81568f03a6323ac52a3d91d83c311db7101
[ "MIT" ]
permissive
wpn-zju/Undergraduate-Course-Homework-ZJU
c58d1262b1cb30b10e8f4e0f82447c66a20a649e
ee75ddd73b13fe7df471b77d9da1532d2fb11c5c
refs/heads/master
2023-05-12T06:50:37.650218
2023-04-30T00:39:11
2023-04-30T00:39:11
218,277,876
9
3
MIT
2020-10-22T01:38:58
2019-10-29T12:06:57
C++
UTF-8
C++
false
false
2,753
cpp
#include<iostream> #include<cstdlib> #include<opencv2\opencv.hpp> #include<opencv2\highgui.hpp> #include<opencv2\imgproc\imgproc.hpp> using namespace std; using namespace cv; void QuickSort(uchar* list, int low, int high) { int i = low; int j = high; int temp = list[i]; if (low < high) { while (i < j) { while ((list[j] >= temp) && (i < j)) j--; list[i] = list[j]; while ((list[i] <= temp) && (i < j)) i++; list[j] = list[i]; } list[i] = temp; QuickSort(list, low, i - 1); QuickSort(list, j + 1, high); } else return; } void ImpulseNoise(Mat &img2, int num) { int rows = img2.rows; int cols = img2.cols; int a; int b; bool flag = false; while (num != 0) { a = rand() % rows; b = rand() % cols; if (flag == false) { img2.at<uchar>(a, b) = 0; flag = true; } else { img2.at<uchar>(a, b) = 255; flag = false; } num--; } } void AverageFilter(Mat &img1, Mat &img2) { int rows = img1.rows; int cols = img1.cols; int a; int b; for (a = 1; a < rows - 1; a++) { for (b = 1; b < cols - 1; b++) { img2.at<uchar>(a, b) = (img1.at<uchar>(a - 1, b - 1) + img1.at<uchar>(a, b - 1) + img1.at<uchar>(a + 1, b - 1) + img1.at<uchar>(a - 1, b) + img1.at<uchar>(a, b) + img1.at<uchar>(a + 1, b) + img1.at<uchar>(a - 1, b + 1) + img1.at<uchar>(a, b + 1) + img1.at<uchar>(a + 1, b + 1)) / 9; } } } void MedianFilter(Mat &img1, Mat &img2) { uchar pixellist[9]; int rows = img1.rows; int cols = img1.cols; int a; int b; for (a = 1; a < rows - 1; a++) { for (b = 1; b < cols - 1; b++) { pixellist[0] = img1.at<uchar>(a - 1, b - 1); pixellist[1] = img1.at<uchar>(a, b - 1); pixellist[2] = img1.at<uchar>(a + 1, b - 1); pixellist[3] = img1.at<uchar>(a - 1, b); pixellist[4] = img1.at<uchar>(a, b); pixellist[5] = img1.at<uchar>(a + 1, b); pixellist[6] = img1.at<uchar>(a - 1, b + 1); pixellist[7] = img1.at<uchar>(a, b + 1); pixellist[8] = img1.at<uchar>(a + 1, b + 1); QuickSort(pixellist, 0, 8); img2.at<uchar>(a, b) = pixellist[4]; } } } int main() { Mat img1 = imread("lena.png", CV_8UC1); Mat img2 = imread("lena.png", CV_8UC1); Mat img3(512, 512, CV_8UC1); Mat img4(512, 512, CV_8UC1); Mat img5(512, 512, CV_8UC1); ImpulseNoise(img2, 100000); AverageFilter(img2, img3); MedianFilter(img2, img4); MedianFilter(img4, img5); imshow("lena", img1); imshow("ImpulseNoise", img2); imshow("AverageFilter", img3); imshow("MedianFilter", img4); imshow("DoubleMedianFilter", img5); imwrite("ImpulseNoise.png", img2); imwrite("AverageFilter.png", img3); imwrite("MedianFilter.png", img4); imwrite("DoubleMedianFilter.png", img5); waitKey(); return 0; }
[ "3150102239@zju.edu.cn" ]
3150102239@zju.edu.cn
40b07479bfb2742edcd44ec3743cd8463db9b1be
0b1e8f4216323b524bd2f13173ac2f2d11e9825c
/Volume 23 (2300 - 2399)/2376/2376.cpp
f233b0148b1b09b378df2561f1aff89e9dccd195
[]
no_license
RodrigoRossetti/URI-OJ
cba0a77b229afc3addac5181319f8077c970deb6
5c4f7ecd10d095e102ad12363371a01eaad84bf7
refs/heads/master
2023-01-31T06:11:51.236100
2020-12-15T01:06:31
2020-12-15T01:06:31
277,349,412
5
1
null
null
null
null
UTF-8
C++
false
false
1,095
cpp
#include <bits/stdc++.h> using namespace std; int main() { int arr[16]; memset(arr, 0, sizeof(arr)); for (int i = 0; i < 16; i += 2) { int n, m; cin >> n >> m; if (n < m) arr[i] = 1; else arr[i+1] = 1; } for (int i = 0; i < 16; i += 4) { int n, m; cin >> n >> m; if (n < m) arr[i] = arr[i+1] = 1; else arr[i+2] = arr[i+3] = 1; } for (int i = 0; i < 16; i += 8) { int n, m; cin >> n >> m; if (n < m) arr[i] = arr[i+1] = arr[i+2] = arr[i+3] = 1; else arr[i+4] = arr[i+5] = arr[i+6] = arr[i+7] = 1; } for (int i = 0; i < 16; i += 16) { int n, m; cin >> n >> m; if (n < m) arr[i] = arr[i+1] = arr[i+2] = arr[i+3] = arr[i+4] = arr[i+5] = arr[i+6] = arr[i+7] = 1; else arr[i+8] = arr[i+9] = arr[i+10] = arr[i+11] = arr[i+12] = arr[i+13] = arr[i+14] = arr[i+15] = 1; } int pos; for (int i = 0; i < 16; i++) if (arr[i] == 0) pos = i; cout << char(pos+65) << endl; return 0; }
[ "aracknock@gmail.com" ]
aracknock@gmail.com
93221ae878f75109abe31fd4a2aa80d5f80a0def
05cf250793d00cdd7fc7c03cd60a2a705865eab9
/afrodita-firefox/src/main/include-deps/msvc/nsIASN1Sequence.h
792756b2c729639cfe0f0fdfa0a3a31252046012
[]
no_license
SoffidIAM/esso
53dcfcbf22b02f0b2fdc1314eb55749c5d1ca158
8b3e04e596a549b9b8ecab186f16680298afd1dc
refs/heads/master
2022-07-25T06:59:29.348943
2022-07-07T13:10:37
2022-07-07T13:10:37
19,988,314
9
5
null
2020-10-12T23:51:27
2014-05-20T16:25:21
C++
UTF-8
C++
false
false
7,016
h
/* * DO NOT EDIT. THIS FILE IS GENERATED FROM e:/builds/moz2_slave/rel-192-xr-w32-bld/build/security/manager/ssl/public/nsIASN1Sequence.idl */ #ifndef __gen_nsIASN1Sequence_h__ #define __gen_nsIASN1Sequence_h__ #ifndef __gen_nsISupports_h__ #include "nsISupports.h" #endif #ifndef __gen_nsIASN1Object_h__ #include "nsIASN1Object.h" #endif /* For IDL files that don't want to include root IDL files. */ #ifndef NS_NO_VTABLE #define NS_NO_VTABLE #endif class nsIMutableArray; /* forward declaration */ /* starting interface: nsIASN1Sequence */ #define NS_IASN1SEQUENCE_IID_STR "b6b957e6-1dd1-11b2-89d7-e30624f50b00" #define NS_IASN1SEQUENCE_IID \ {0xb6b957e6, 0x1dd1, 0x11b2, \ { 0x89, 0xd7, 0xe3, 0x06, 0x24, 0xf5, 0x0b, 0x00 }} /** * This represents a sequence of ASN.1 objects, * where ASN.1 is "Abstract Syntax Notation number One". * * Overview of how this ASN1 interface is intended to * work. * * First off, the nsIASN1Sequence is any type in ASN1 * that consists of sub-elements (ie SEQUENCE, SET) * nsIASN1Printable Items are all the other types that * can be viewed by themselves without interpreting further. * Examples would include INTEGER, UTF-8 STRING, OID. * These are not intended to directly reflect the numberous * types that exist in ASN1, but merely an interface to ease * producing a tree display the ASN1 structure of any DER * object. * * The additional state information carried in this interface * makes it fit for being used as the data structure * when working with visual reprenstation of ASN.1 objects * in a human user interface, like in a tree widget * where open/close state of nodes must be remembered. * * @status FROZEN */ class NS_NO_VTABLE NS_SCRIPTABLE nsIASN1Sequence : public nsIASN1Object { public: NS_DECLARE_STATIC_IID_ACCESSOR(NS_IASN1SEQUENCE_IID) /** * The array of objects stored in the sequence. */ /* attribute nsIMutableArray ASN1Objects; */ NS_SCRIPTABLE NS_IMETHOD GetASN1Objects(nsIMutableArray * *aASN1Objects) = 0; NS_SCRIPTABLE NS_IMETHOD SetASN1Objects(nsIMutableArray * aASN1Objects) = 0; /** * Whether the node at this position in the ASN.1 data structure * sequence contains sub elements understood by the * application. */ /* attribute boolean isValidContainer; */ NS_SCRIPTABLE NS_IMETHOD GetIsValidContainer(PRBool *aIsValidContainer) = 0; NS_SCRIPTABLE NS_IMETHOD SetIsValidContainer(PRBool aIsValidContainer) = 0; /** * Whether the contained objects should be shown or hidden. * A UI implementation can use this flag to store the current * expansion state when shown in a tree widget. */ /* attribute boolean isExpanded; */ NS_SCRIPTABLE NS_IMETHOD GetIsExpanded(PRBool *aIsExpanded) = 0; NS_SCRIPTABLE NS_IMETHOD SetIsExpanded(PRBool aIsExpanded) = 0; }; NS_DEFINE_STATIC_IID_ACCESSOR(nsIASN1Sequence, NS_IASN1SEQUENCE_IID) /* Use this macro when declaring classes that implement this interface. */ #define NS_DECL_NSIASN1SEQUENCE \ NS_SCRIPTABLE NS_IMETHOD GetASN1Objects(nsIMutableArray * *aASN1Objects); \ NS_SCRIPTABLE NS_IMETHOD SetASN1Objects(nsIMutableArray * aASN1Objects); \ NS_SCRIPTABLE NS_IMETHOD GetIsValidContainer(PRBool *aIsValidContainer); \ NS_SCRIPTABLE NS_IMETHOD SetIsValidContainer(PRBool aIsValidContainer); \ NS_SCRIPTABLE NS_IMETHOD GetIsExpanded(PRBool *aIsExpanded); \ NS_SCRIPTABLE NS_IMETHOD SetIsExpanded(PRBool aIsExpanded); /* Use this macro to declare functions that forward the behavior of this interface to another object. */ #define NS_FORWARD_NSIASN1SEQUENCE(_to) \ NS_SCRIPTABLE NS_IMETHOD GetASN1Objects(nsIMutableArray * *aASN1Objects) { return _to GetASN1Objects(aASN1Objects); } \ NS_SCRIPTABLE NS_IMETHOD SetASN1Objects(nsIMutableArray * aASN1Objects) { return _to SetASN1Objects(aASN1Objects); } \ NS_SCRIPTABLE NS_IMETHOD GetIsValidContainer(PRBool *aIsValidContainer) { return _to GetIsValidContainer(aIsValidContainer); } \ NS_SCRIPTABLE NS_IMETHOD SetIsValidContainer(PRBool aIsValidContainer) { return _to SetIsValidContainer(aIsValidContainer); } \ NS_SCRIPTABLE NS_IMETHOD GetIsExpanded(PRBool *aIsExpanded) { return _to GetIsExpanded(aIsExpanded); } \ NS_SCRIPTABLE NS_IMETHOD SetIsExpanded(PRBool aIsExpanded) { return _to SetIsExpanded(aIsExpanded); } /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */ #define NS_FORWARD_SAFE_NSIASN1SEQUENCE(_to) \ NS_SCRIPTABLE NS_IMETHOD GetASN1Objects(nsIMutableArray * *aASN1Objects) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetASN1Objects(aASN1Objects); } \ NS_SCRIPTABLE NS_IMETHOD SetASN1Objects(nsIMutableArray * aASN1Objects) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetASN1Objects(aASN1Objects); } \ NS_SCRIPTABLE NS_IMETHOD GetIsValidContainer(PRBool *aIsValidContainer) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsValidContainer(aIsValidContainer); } \ NS_SCRIPTABLE NS_IMETHOD SetIsValidContainer(PRBool aIsValidContainer) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetIsValidContainer(aIsValidContainer); } \ NS_SCRIPTABLE NS_IMETHOD GetIsExpanded(PRBool *aIsExpanded) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsExpanded(aIsExpanded); } \ NS_SCRIPTABLE NS_IMETHOD SetIsExpanded(PRBool aIsExpanded) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetIsExpanded(aIsExpanded); } #if 0 /* Use the code below as a template for the implementation class for this interface. */ /* Header file */ class nsASN1Sequence : public nsIASN1Sequence { public: NS_DECL_ISUPPORTS NS_DECL_NSIASN1SEQUENCE nsASN1Sequence(); private: ~nsASN1Sequence(); protected: /* additional members */ }; /* Implementation file */ NS_IMPL_ISUPPORTS1(nsASN1Sequence, nsIASN1Sequence) nsASN1Sequence::nsASN1Sequence() { /* member initializers and constructor code */ } nsASN1Sequence::~nsASN1Sequence() { /* destructor code */ } /* attribute nsIMutableArray ASN1Objects; */ NS_IMETHODIMP nsASN1Sequence::GetASN1Objects(nsIMutableArray * *aASN1Objects) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsASN1Sequence::SetASN1Objects(nsIMutableArray * aASN1Objects) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute boolean isValidContainer; */ NS_IMETHODIMP nsASN1Sequence::GetIsValidContainer(PRBool *aIsValidContainer) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsASN1Sequence::SetIsValidContainer(PRBool aIsValidContainer) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute boolean isExpanded; */ NS_IMETHODIMP nsASN1Sequence::GetIsExpanded(PRBool *aIsExpanded) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsASN1Sequence::SetIsExpanded(PRBool aIsExpanded) { return NS_ERROR_NOT_IMPLEMENTED; } /* End of implementation class template. */ #endif #endif /* __gen_nsIASN1Sequence_h__ */
[ "open@forge.brujula.es" ]
open@forge.brujula.es
3922299c917e8e8346e611b1567c517d2f57b89b
88ae8695987ada722184307301e221e1ba3cc2fa
/sandbox/linux/seccomp-bpf-helpers/sigsys_handlers.cc
790b65c5870a5ee91ada250f26dac164628d22b2
[ "BSD-3-Clause" ]
permissive
iridium-browser/iridium-browser
71d9c5ff76e014e6900b825f67389ab0ccd01329
5ee297f53dc7f8e70183031cff62f37b0f19d25f
refs/heads/master
2023-08-03T16:44:16.844552
2023-07-20T15:17:00
2023-07-23T16:09:30
220,016,632
341
40
BSD-3-Clause
2021-08-13T13:54:45
2019-11-06T14:32:31
null
UTF-8
C++
false
false
18,172
cc
// Copyright 2013 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // Note: any code in this file MUST be async-signal safe. #include "sandbox/linux/seccomp-bpf-helpers/sigsys_handlers.h" #include <fcntl.h> #include <stddef.h> #include <stdint.h> #include <string.h> #include <sys/syscall.h> #include <unistd.h> #include "base/check.h" #include "base/debug/crash_logging.h" #include "base/posix/eintr_wrapper.h" #include "build/build_config.h" #include "sandbox/linux/bpf_dsl/bpf_dsl.h" #include "sandbox/linux/seccomp-bpf/sandbox_bpf.h" #include "sandbox/linux/seccomp-bpf/syscall.h" #include "sandbox/linux/services/syscall_wrappers.h" #include "sandbox/linux/system_headers/linux_seccomp.h" #include "sandbox/linux/system_headers/linux_stat.h" #include "sandbox/linux/system_headers/linux_syscalls.h" #if defined(__mips__) // __NR_Linux, is defined in <asm/unistd.h>. #include <asm/unistd.h> #endif #define SECCOMP_MESSAGE_COMMON_CONTENT "seccomp-bpf failure" #define SECCOMP_MESSAGE_CLONE_CONTENT "clone() failure" #define SECCOMP_MESSAGE_PRCTL_CONTENT "prctl() failure" #define SECCOMP_MESSAGE_IOCTL_CONTENT "ioctl() failure" #define SECCOMP_MESSAGE_KILL_CONTENT "(tg)kill() failure" #define SECCOMP_MESSAGE_FUTEX_CONTENT "futex() failure" #define SECCOMP_MESSAGE_PTRACE_CONTENT "ptrace() failure" #define SECCOMP_MESSAGE_SOCKET_CONTENT "socket() failure" #define SECCOMP_MESSAGE_SOCKOPT_CONTENT "*sockopt() failure" namespace { base::debug::CrashKeyString* seccomp_crash_key = nullptr; inline bool IsArchitectureX86_64() { #if defined(__x86_64__) return true; #else return false; #endif } // Write |error_message| to stderr. Similar to RawLog(), but a bit more careful // about async-signal safety. |size| is the size to write and should typically // not include a terminating \0. void WriteToStdErr(const char* error_message, size_t size) { while (size > 0) { // TODO(jln): query the current policy to check if send() is available and // use it to perform a non-blocking write. const int ret = HANDLE_EINTR( sandbox::sys_write(STDERR_FILENO, error_message, size)); // We can't handle any type of error here. if (ret <= 0 || static_cast<size_t>(ret) > size) break; size -= ret; error_message += ret; } } // Invalid syscall values are truncated to zero. // On architectures where base value is zero (Intel and Arm), // syscall number is the same as offset from base. // This function returns values between 0 and 1023 on all architectures. // On architectures where base value is different than zero (currently only // Mips), we are truncating valid syscall values to offset from base. uint32_t SyscallNumberToOffsetFromBase(uint32_t sysno) { #if defined(__mips__) // On MIPS syscall numbers are in different range than on x86 and ARM. // Valid MIPS O32 ABI syscall __NR_syscall will be truncated to zero for // simplicity. sysno = sysno - __NR_Linux; #endif if (sysno >= 1024) sysno = 0; return sysno; } // Print a seccomp-bpf failure to handle |sysno| to stderr in an // async-signal safe way. void PrintSyscallError(uint32_t sysno) { if (sysno >= 1024) sysno = 0; // TODO(markus): replace with async-signal safe snprintf when available. const size_t kNumDigits = 4; char sysno_base10[kNumDigits]; uint32_t rem = sysno; uint32_t mod = 0; for (int i = kNumDigits - 1; i >= 0; i--) { mod = rem % 10; rem /= 10; sysno_base10[i] = '0' + mod; } #if defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_32_BITS) static constexpr char kSeccompErrorPrefix[] = __FILE__ ":**CRASHING**:" SECCOMP_MESSAGE_COMMON_CONTENT " in syscall 4000 + "; #else static constexpr char kSeccompErrorPrefix[] = __FILE__ ":**CRASHING**:" SECCOMP_MESSAGE_COMMON_CONTENT " in syscall "; #endif static constexpr char kSeccompErrorPostfix[] = "\n"; WriteToStdErr(kSeccompErrorPrefix, sizeof(kSeccompErrorPrefix) - 1); WriteToStdErr(sysno_base10, sizeof(sysno_base10)); WriteToStdErr(kSeccompErrorPostfix, sizeof(kSeccompErrorPostfix) - 1); } // Helper to convert a number of type T to a hexadecimal string using // stack-allocated storage. template <typename T> class NumberToHex { public: explicit NumberToHex(T value) { static constexpr char kHexChars[] = "0123456789abcdef"; memset(str_, '0', sizeof(str_)); str_[1] = 'x'; str_[sizeof(str_) - 1] = '\0'; T rem = value; T mod = 0; for (size_t i = sizeof(str_) - 2; i >= 2; --i) { mod = rem % 16; rem /= 16; str_[i] = kHexChars[mod]; } } const char* str() const { return str_; } static size_t length() { return sizeof(str_) - 1; } private: // HEX uses two characters per byte, with a leading '0x', and a trailing NUL. char str_[sizeof(T) * 2 + 3]; }; // Records the syscall number and first four arguments in a crash key, to help // debug the failure. void SetSeccompCrashKey(const struct arch_seccomp_data& args) { NumberToHex<int> nr(args.nr); NumberToHex<uint64_t> arg1(args.args[0]); NumberToHex<uint64_t> arg2(args.args[1]); NumberToHex<uint64_t> arg3(args.args[2]); NumberToHex<uint64_t> arg4(args.args[3]); // In order to avoid calling into libc sprintf functions from an unsafe signal // context, manually construct the crash key string. const char* const prefixes[] = { "nr=", " arg1=", " arg2=", " arg3=", " arg4=", }; const char* const values[] = { nr.str(), arg1.str(), arg2.str(), arg3.str(), arg4.str(), }; size_t crash_key_length = nr.length() + arg1.length() + arg2.length() + arg3.length() + arg4.length(); for (auto* prefix : prefixes) { crash_key_length += strlen(prefix); } ++crash_key_length; // For the trailing NUL byte. char crash_key[crash_key_length]; memset(crash_key, '\0', crash_key_length); size_t offset = 0; for (size_t i = 0; i < std::size(values); ++i) { const char* strings[2] = { prefixes[i], values[i] }; for (auto* string : strings) { size_t string_len = strlen(string); memmove(&crash_key[offset], string, string_len); offset += string_len; } } base::debug::SetCrashKeyString(seccomp_crash_key, crash_key); } } // namespace namespace sandbox { intptr_t CrashSIGSYS_Handler(const struct arch_seccomp_data& args, void* aux) { uint32_t syscall = SyscallNumberToOffsetFromBase(args.nr); PrintSyscallError(syscall); SetSeccompCrashKey(args); // Encode 8-bits of the 1st two arguments too, so we can discern which socket // type, which fcntl, ... etc., without being likely to hit a mapped // address. // Do not encode more bits here without thinking about increasing the // likelihood of collision with mapped pages. syscall |= ((args.args[0] & 0xffUL) << 12); syscall |= ((args.args[1] & 0xffUL) << 20); // Purposefully dereference the syscall as an address so it'll show up very // clearly and easily in crash dumps. volatile char* addr = reinterpret_cast<volatile char*>(syscall); *addr = '\0'; // In case we hit a mapped address, hit the null page with just the syscall, // for paranoia. syscall &= 0xfffUL; addr = reinterpret_cast<volatile char*>(syscall); *addr = '\0'; for (;;) _exit(1); } // TODO(jln): refactor the reporting functions. intptr_t SIGSYSCloneFailure(const struct arch_seccomp_data& args, void* aux) { static constexpr char kSeccompCloneError[] = __FILE__ ":**CRASHING**:" SECCOMP_MESSAGE_CLONE_CONTENT "\n"; WriteToStdErr(kSeccompCloneError, sizeof(kSeccompCloneError) - 1); SetSeccompCrashKey(args); // "flags" is the first argument in the kernel's clone(). // Mark as volatile to be able to find the value on the stack in a minidump. volatile uint64_t clone_flags = args.args[0]; volatile char* addr; if (IsArchitectureX86_64()) { addr = reinterpret_cast<volatile char*>(clone_flags & 0xFFFFFF); *addr = '\0'; } // Hit the NULL page if this fails to fault. addr = reinterpret_cast<volatile char*>(clone_flags & 0xFFF); *addr = '\0'; for (;;) _exit(1); } intptr_t SIGSYSPrctlFailure(const struct arch_seccomp_data& args, void* /* aux */) { static constexpr char kSeccompPrctlError[] = __FILE__ ":**CRASHING**:" SECCOMP_MESSAGE_PRCTL_CONTENT "\n"; WriteToStdErr(kSeccompPrctlError, sizeof(kSeccompPrctlError) - 1); SetSeccompCrashKey(args); // Mark as volatile to be able to find the value on the stack in a minidump. volatile uint64_t option = args.args[0]; volatile char* addr = reinterpret_cast<volatile char*>(option & 0xFFF); *addr = '\0'; for (;;) _exit(1); } intptr_t SIGSYSIoctlFailure(const struct arch_seccomp_data& args, void* /* aux */) { static constexpr char kSeccompIoctlError[] = __FILE__ ":**CRASHING**:" SECCOMP_MESSAGE_IOCTL_CONTENT "\n"; WriteToStdErr(kSeccompIoctlError, sizeof(kSeccompIoctlError) - 1); SetSeccompCrashKey(args); // Make "request" volatile so that we can see it on the stack in a minidump. volatile uint64_t request = args.args[1]; volatile char* addr = reinterpret_cast<volatile char*>(request & 0xFFFF); *addr = '\0'; // Hit the NULL page if this fails. addr = reinterpret_cast<volatile char*>(request & 0xFFF); *addr = '\0'; for (;;) _exit(1); } intptr_t SIGSYSKillFailure(const struct arch_seccomp_data& args, void* /* aux */) { static constexpr char kSeccompKillError[] = __FILE__ ":**CRASHING**:" SECCOMP_MESSAGE_KILL_CONTENT "\n"; WriteToStdErr(kSeccompKillError, sizeof(kSeccompKillError) - 1); SetSeccompCrashKey(args); // Make "pid" volatile so that we can see it on the stack in a minidump. volatile uint64_t my_pid = sys_getpid(); volatile char* addr = reinterpret_cast<volatile char*>(my_pid & 0xFFF); *addr = '\0'; for (;;) _exit(1); } intptr_t SIGSYSFutexFailure(const struct arch_seccomp_data& args, void* /* aux */) { static constexpr char kSeccompFutexError[] = __FILE__ ":**CRASHING**:" SECCOMP_MESSAGE_FUTEX_CONTENT "\n"; WriteToStdErr(kSeccompFutexError, sizeof(kSeccompFutexError) - 1); SetSeccompCrashKey(args); volatile int futex_op = args.args[1]; volatile char* addr = reinterpret_cast<volatile char*>(futex_op & 0xFFF); *addr = '\0'; for (;;) _exit(1); } intptr_t SIGSYSPtraceFailure(const struct arch_seccomp_data& args, void* /* aux */) { static constexpr char kSeccompPtraceError[] = __FILE__ ":**CRASHING**:" SECCOMP_MESSAGE_PTRACE_CONTENT "\n"; WriteToStdErr(kSeccompPtraceError, sizeof(kSeccompPtraceError) - 1); SetSeccompCrashKey(args); volatile int ptrace_op = args.args[0]; volatile char* addr = reinterpret_cast<volatile char*>(ptrace_op & 0xFFF); *addr = '\0'; for (;;) _exit(1); } intptr_t SIGSYSSocketFailure(const struct arch_seccomp_data& args, void* aux) { static constexpr char kSeccompSocketError[] = __FILE__ ":**CRASHING**:" SECCOMP_MESSAGE_SOCKET_CONTENT "\n"; WriteToStdErr(kSeccompSocketError, sizeof(kSeccompSocketError) - 1); NumberToHex<uint64_t> domain_hex(args.args[0]); NumberToHex<uint64_t> type_hex(args.args[1]); NumberToHex<uint64_t> protocol_hex(args.args[2]); static constexpr char kDomainString[] = "domain="; static constexpr char kTypeString[] = " type="; static constexpr char kProtocolString[] = " protocol="; WriteToStdErr(kDomainString, strlen(kDomainString)); WriteToStdErr(domain_hex.str(), domain_hex.length()); WriteToStdErr(kTypeString, strlen(kTypeString)); WriteToStdErr(type_hex.str(), type_hex.length()); WriteToStdErr(kProtocolString, strlen(kProtocolString)); WriteToStdErr(protocol_hex.str(), protocol_hex.length()); WriteToStdErr("\n", 1); SetSeccompCrashKey(args); // Make args volatile so that we can see it on the stack in a minidump. volatile int domain = static_cast<int>(args.args[0]); volatile int type = static_cast<int>(args.args[1]); volatile int protocol = static_cast<int>(args.args[2]); // Encode argument bits into an address and dereference it, hoping to avoid // hitting mapped pages. uintptr_t addr = (domain & 0x3ful); // 6 bits for domain addr |= ((type & 0xful) << 6); // 4 bits for type addr |= ((protocol & 0x1ful) << 10); // 5 bits for protocol *reinterpret_cast<volatile char*>(addr) = '\0'; // Hit the NULL page with just the domain and type if this fails. *reinterpret_cast<volatile char*>((domain & 0x3ful) | ((type & 0xful) << 6)) = '\0'; for (;;) { _exit(1); } } intptr_t SIGSYSSockoptFailure(const struct arch_seccomp_data& args, void* aux) { static constexpr char kSeccompSockoptError[] = __FILE__ ":**CRASHING**:" SECCOMP_MESSAGE_SOCKOPT_CONTENT "\n"; WriteToStdErr(kSeccompSockoptError, sizeof(kSeccompSockoptError) - 1); NumberToHex<uint64_t> level_hex(args.args[1]); NumberToHex<uint64_t> optname_hex(args.args[2]); static constexpr char kLevelString[] = "level="; static constexpr char kOptnameString[] = " optname="; WriteToStdErr(kLevelString, strlen(kLevelString)); WriteToStdErr(level_hex.str(), level_hex.length()); WriteToStdErr(kOptnameString, strlen(kOptnameString)); WriteToStdErr(optname_hex.str(), optname_hex.length()); WriteToStdErr("\n", 1); SetSeccompCrashKey(args); // Make args volatile so that we can see it on the stack in a minidump. volatile int level = static_cast<int>(args.args[1]); volatile int optname = static_cast<int>(args.args[2]); // Encode argument bits into an address and dereference it, hoping to avoid // hitting mapped pages. // 9 bits for level. The levels are listed in /etc/protocols and most are // below 256, except one. uintptr_t addr = (level & 0x1fful); addr |= ((optname & 0x7ful) << 9); // 7 bits for optname. *reinterpret_cast<volatile char*>(addr) = '\0'; // Hit the NULL page with just the level. *reinterpret_cast<volatile char*>((level & 0x1fful)) = '\0'; for (;;) { _exit(1); } } intptr_t SIGSYSSchedHandler(const struct arch_seccomp_data& args, void* aux) { switch (args.nr) { case __NR_sched_getaffinity: case __NR_sched_getattr: case __NR_sched_getparam: case __NR_sched_getscheduler: case __NR_sched_rr_get_interval: case __NR_sched_setaffinity: case __NR_sched_setattr: case __NR_sched_setparam: case __NR_sched_setscheduler: const pid_t tid = sys_gettid(); // The first argument is the pid. If is our thread id, then replace it // with 0, which is equivalent and allowed by the policy. if (args.args[0] == static_cast<uint64_t>(tid)) { return Syscall::Call(args.nr, 0, static_cast<intptr_t>(args.args[1]), static_cast<intptr_t>(args.args[2]), static_cast<intptr_t>(args.args[3]), static_cast<intptr_t>(args.args[4]), static_cast<intptr_t>(args.args[5])); } break; } CrashSIGSYS_Handler(args, aux); // Should never be reached. RAW_CHECK(false); return -ENOSYS; } intptr_t SIGSYSFstatatHandler(const struct arch_seccomp_data& args, void* fs_denied_errno) { if (args.nr == __NR_fstatat_default) { if (*reinterpret_cast<const char*>(args.args[1]) == '\0' && args.args[3] == static_cast<uint64_t>(AT_EMPTY_PATH)) { return syscall(__NR_fstat_default, static_cast<int>(args.args[0]), reinterpret_cast<default_stat_struct*>(args.args[2])); } return -reinterpret_cast<intptr_t>(fs_denied_errno); } CrashSIGSYS_Handler(args, fs_denied_errno); // Should never be reached. RAW_CHECK(false); return -ENOSYS; } bpf_dsl::ResultExpr CrashSIGSYS() { return bpf_dsl::Trap(CrashSIGSYS_Handler, nullptr); } bpf_dsl::ResultExpr CrashSIGSYSClone() { return bpf_dsl::Trap(SIGSYSCloneFailure, nullptr); } bpf_dsl::ResultExpr CrashSIGSYSPrctl() { return bpf_dsl::Trap(SIGSYSPrctlFailure, nullptr); } bpf_dsl::ResultExpr CrashSIGSYSIoctl() { return bpf_dsl::Trap(SIGSYSIoctlFailure, nullptr); } bpf_dsl::ResultExpr CrashSIGSYSKill() { return bpf_dsl::Trap(SIGSYSKillFailure, nullptr); } bpf_dsl::ResultExpr CrashSIGSYSFutex() { return bpf_dsl::Trap(SIGSYSFutexFailure, nullptr); } bpf_dsl::ResultExpr CrashSIGSYSPtrace() { return bpf_dsl::Trap(SIGSYSPtraceFailure, nullptr); } bpf_dsl::ResultExpr CrashSIGSYSSocket() { return bpf_dsl::Trap(SIGSYSSocketFailure, nullptr); } bpf_dsl::ResultExpr CrashSIGSYSSockopt() { return bpf_dsl::Trap(SIGSYSSockoptFailure, nullptr); } bpf_dsl::ResultExpr RewriteSchedSIGSYS() { return bpf_dsl::Trap(SIGSYSSchedHandler, nullptr); } bpf_dsl::ResultExpr RewriteFstatatSIGSYS(int fs_denied_errno) { return bpf_dsl::Trap(SIGSYSFstatatHandler, reinterpret_cast<void*>(fs_denied_errno)); } void AllocateCrashKeys() { if (seccomp_crash_key) return; seccomp_crash_key = base::debug::AllocateCrashKeyString( "seccomp-sigsys", base::debug::CrashKeySize::Size256); } const char* GetErrorMessageContentForTests() { return SECCOMP_MESSAGE_COMMON_CONTENT; } const char* GetCloneErrorMessageContentForTests() { return SECCOMP_MESSAGE_CLONE_CONTENT; } const char* GetPrctlErrorMessageContentForTests() { return SECCOMP_MESSAGE_PRCTL_CONTENT; } const char* GetIoctlErrorMessageContentForTests() { return SECCOMP_MESSAGE_IOCTL_CONTENT; } const char* GetKillErrorMessageContentForTests() { return SECCOMP_MESSAGE_KILL_CONTENT; } const char* GetFutexErrorMessageContentForTests() { return SECCOMP_MESSAGE_FUTEX_CONTENT; } const char* GetPtraceErrorMessageContentForTests() { return SECCOMP_MESSAGE_PTRACE_CONTENT; } const char* GetSocketErrorMessageContentForTests() { return SECCOMP_MESSAGE_SOCKET_CONTENT; } const char* GetSockoptErrorMessageContentForTests() { return SECCOMP_MESSAGE_SOCKOPT_CONTENT; } } // namespace sandbox.
[ "jengelh@inai.de" ]
jengelh@inai.de
16c2f67e4bf31aaae0939fe072177e8c59ee9693
c8bc6c56271d1cc9affe08d9f282360e8d7500a9
/android/unityLibrary/src/main/Il2CppOutputProject/Source/il2cppOutput/UnityEngine.InputLegacyModule.cpp
530bd7577dd32a9f95284c80c903525fb6e3e3ef
[]
no_license
AlmiranteFuchs/StructAR
4d9bc951bb18df458c00f308ac6f720aef03966c
7b88090f65a4bc2b044380ea836b8a680f2d1b51
refs/heads/main
2023-04-05T20:33:24.611165
2021-04-09T01:26:31
2021-04-09T01:26:31
355,631,100
0
0
null
null
null
null
UTF-8
C++
false
false
148,450
cpp
#include "pch-cpp.hpp" #ifndef _MSC_VER # include <alloca.h> #else # include <malloc.h> #endif #include <limits> #include <stdint.h> // System.Void struct Void_t700C6383A2A510C2CF4DD86DABD5CA9FF70ADAC5; // UnityEngine.Camera/CameraCallback struct CameraCallback_tD9E7B69E561CE2EFDEEDB0E7F1406AC52247160D; // UnityEngine.Display/DisplaysUpdatedDelegate struct DisplaysUpdatedDelegate_tC6A6AD44FAD98C9E28479FFF4BD3D9932458A6A1; // UnityEngine.Camera struct Camera_tC44E094BAB53AFC8A014C6F9CFCE11F4FC38006C; // UnityEngine.Camera[] struct CameraU5BU5D_tAF84B9EC9AF40F1B6294BCEBA82A1AD123A9D001; // System.Char[] struct CharU5BU5D_t7B7FC5BC8091AA3B9CB0B29CDD80B5EE9254AA34; // UnityEngine.Display struct Display_t0A5D09F1F2EB8025FE40EE0F81E0D01BB47A9B44; // UnityEngine.Display[] struct DisplayU5BU5D_t3330058639C7A70B7B1FE7B4325E2B5D600CF4A6; // UnityEngine.GameObject struct GameObject_tC000A2E1A7CF1E10FD7BA08863287C072207C319; // UnityEngine.SendMouseEvents/HitInfo[] struct HitInfoU5BU5D_t432774AD200329E637288BFACCD210774B7B5231; // UnityEngine.Object struct Object_tF2F3778131EFF286AF62B7B013A170F95A91571A; // UnityEngine.RenderTexture struct RenderTexture_t5FE7A5B47EF962A0E8D7BEBA05E9FC87D49A1849; // System.String struct String_t; // UnityEngine.Touch[] struct TouchU5BU5D_t07E3B79F1FB6673E4450CCF9D09FA79DD96692E2; IL2CPP_EXTERN_C RuntimeClass* CameraU5BU5D_tAF84B9EC9AF40F1B6294BCEBA82A1AD123A9D001_il2cpp_TypeInfo_var; IL2CPP_EXTERN_C RuntimeClass* Display_t0A5D09F1F2EB8025FE40EE0F81E0D01BB47A9B44_il2cpp_TypeInfo_var; IL2CPP_EXTERN_C RuntimeClass* HitInfoU5BU5D_t432774AD200329E637288BFACCD210774B7B5231_il2cpp_TypeInfo_var; IL2CPP_EXTERN_C RuntimeClass* Mathf_t4D4AC358D24F6DDC32EC291DDE1DF2C3B752A194_il2cpp_TypeInfo_var; IL2CPP_EXTERN_C RuntimeClass* Object_tF2F3778131EFF286AF62B7B013A170F95A91571A_il2cpp_TypeInfo_var; IL2CPP_EXTERN_C RuntimeClass* SendMouseEvents_tCF069F9DE53C8E51B7AF505FC52F79DB84D81437_il2cpp_TypeInfo_var; IL2CPP_EXTERN_C RuntimeClass* TouchU5BU5D_t07E3B79F1FB6673E4450CCF9D09FA79DD96692E2_il2cpp_TypeInfo_var; IL2CPP_EXTERN_C RuntimeClass* Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E_il2cpp_TypeInfo_var; IL2CPP_EXTERN_C String_t* _stringLiteral0B3DC20068778C16024297CC44E2C2A73D5B296D; IL2CPP_EXTERN_C String_t* _stringLiteral3C6F094A63750A8BD369D8A9138F0648FB74B3C4; IL2CPP_EXTERN_C String_t* _stringLiteralA2CF8B549405D8D0F26F85E3A40C8B2ABAD0A6AC; IL2CPP_EXTERN_C String_t* _stringLiteralD78A7BBB42C0B3DA05AC02E0AABB5E0765462D84; IL2CPP_EXTERN_C String_t* _stringLiteralD81EFB7B653AC118C2D1B850D9F6D2FFEB225821; IL2CPP_EXTERN_C String_t* _stringLiteralE0C5D7D5DD5695D97E4EDCB4705E9F1AF10AF695; IL2CPP_EXTERN_C String_t* _stringLiteralE69C6A3A0BD2A9030375061C78273B2EABD411D0; IL2CPP_EXTERN_C const uint32_t HitInfo_Compare_m3AD170E7A52826C73DEF8C3C8F6507C9EAB28363_MetadataUsageId; IL2CPP_EXTERN_C const uint32_t HitInfo_op_Implicit_m8332A3930623A2248D797F3A8020FFF4E05A9420_MetadataUsageId; IL2CPP_EXTERN_C const uint32_t Input_get_touches_m26E3034CAE32931E59A480327A3CF4BFC2045E8F_MetadataUsageId; IL2CPP_EXTERN_C const uint32_t SendMouseEvents_DoSendMouseEvents_m21561D473C27F19BA9CDBC53B4A13D40DDFBE785_MetadataUsageId; IL2CPP_EXTERN_C const uint32_t SendMouseEvents_SendEvents_m7A59BBFBB15C1BF3E47D56CDD4921599A686F9C7_MetadataUsageId; IL2CPP_EXTERN_C const uint32_t SendMouseEvents_SetMouseMoved_mEC659144183FB490A2E1F12112C8F08569A511CD_MetadataUsageId; IL2CPP_EXTERN_C const uint32_t SendMouseEvents__cctor_m6B63654E024F338414361C995EAFEC615743A0E0_MetadataUsageId; struct CameraU5BU5D_tAF84B9EC9AF40F1B6294BCEBA82A1AD123A9D001; struct DisplayU5BU5D_t3330058639C7A70B7B1FE7B4325E2B5D600CF4A6; struct HitInfoU5BU5D_t432774AD200329E637288BFACCD210774B7B5231; struct TouchU5BU5D_t07E3B79F1FB6673E4450CCF9D09FA79DD96692E2; IL2CPP_EXTERN_C_BEGIN IL2CPP_EXTERN_C_END #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // <Module> struct U3CModuleU3E_t2F6B72E5B55148A7B1DBD6B42B301AEC3ECE86DB { public: public: }; // System.Object struct Il2CppArrayBounds; // System.Array // System.String struct String_t : public RuntimeObject { public: // System.Int32 System.String::m_stringLength int32_t ___m_stringLength_0; // System.Char System.String::m_firstChar Il2CppChar ___m_firstChar_1; public: inline static int32_t get_offset_of_m_stringLength_0() { return static_cast<int32_t>(offsetof(String_t, ___m_stringLength_0)); } inline int32_t get_m_stringLength_0() const { return ___m_stringLength_0; } inline int32_t* get_address_of_m_stringLength_0() { return &___m_stringLength_0; } inline void set_m_stringLength_0(int32_t value) { ___m_stringLength_0 = value; } inline static int32_t get_offset_of_m_firstChar_1() { return static_cast<int32_t>(offsetof(String_t, ___m_firstChar_1)); } inline Il2CppChar get_m_firstChar_1() const { return ___m_firstChar_1; } inline Il2CppChar* get_address_of_m_firstChar_1() { return &___m_firstChar_1; } inline void set_m_firstChar_1(Il2CppChar value) { ___m_firstChar_1 = value; } }; struct String_t_StaticFields { public: // System.String System.String::Empty String_t* ___Empty_5; public: inline static int32_t get_offset_of_Empty_5() { return static_cast<int32_t>(offsetof(String_t_StaticFields, ___Empty_5)); } inline String_t* get_Empty_5() const { return ___Empty_5; } inline String_t** get_address_of_Empty_5() { return &___Empty_5; } inline void set_Empty_5(String_t* value) { ___Empty_5 = value; Il2CppCodeGenWriteBarrier((void**)(&___Empty_5), (void*)value); } }; // System.ValueType struct ValueType_tDBF999C1B75C48C68621878250DBF6CDBCF51E52 : public RuntimeObject { public: public: }; // Native definition for P/Invoke marshalling of System.ValueType struct ValueType_tDBF999C1B75C48C68621878250DBF6CDBCF51E52_marshaled_pinvoke { }; // Native definition for COM marshalling of System.ValueType struct ValueType_tDBF999C1B75C48C68621878250DBF6CDBCF51E52_marshaled_com { }; // UnityEngine.CameraRaycastHelper struct CameraRaycastHelper_t2EB434C1BA2F4B7011FE16E77A471188901F1913 : public RuntimeObject { public: public: }; // UnityEngine.Input struct Input_t763D9CAB93E5035D6CE4D185D9B64D7F3F47202A : public RuntimeObject { public: public: }; // UnityEngine.SendMouseEvents struct SendMouseEvents_tCF069F9DE53C8E51B7AF505FC52F79DB84D81437 : public RuntimeObject { public: public: }; struct SendMouseEvents_tCF069F9DE53C8E51B7AF505FC52F79DB84D81437_StaticFields { public: // System.Boolean UnityEngine.SendMouseEvents::s_MouseUsed bool ___s_MouseUsed_0; // UnityEngine.SendMouseEvents_HitInfo[] UnityEngine.SendMouseEvents::m_LastHit HitInfoU5BU5D_t432774AD200329E637288BFACCD210774B7B5231* ___m_LastHit_1; // UnityEngine.SendMouseEvents_HitInfo[] UnityEngine.SendMouseEvents::m_MouseDownHit HitInfoU5BU5D_t432774AD200329E637288BFACCD210774B7B5231* ___m_MouseDownHit_2; // UnityEngine.SendMouseEvents_HitInfo[] UnityEngine.SendMouseEvents::m_CurrentHit HitInfoU5BU5D_t432774AD200329E637288BFACCD210774B7B5231* ___m_CurrentHit_3; // UnityEngine.Camera[] UnityEngine.SendMouseEvents::m_Cameras CameraU5BU5D_tAF84B9EC9AF40F1B6294BCEBA82A1AD123A9D001* ___m_Cameras_4; public: inline static int32_t get_offset_of_s_MouseUsed_0() { return static_cast<int32_t>(offsetof(SendMouseEvents_tCF069F9DE53C8E51B7AF505FC52F79DB84D81437_StaticFields, ___s_MouseUsed_0)); } inline bool get_s_MouseUsed_0() const { return ___s_MouseUsed_0; } inline bool* get_address_of_s_MouseUsed_0() { return &___s_MouseUsed_0; } inline void set_s_MouseUsed_0(bool value) { ___s_MouseUsed_0 = value; } inline static int32_t get_offset_of_m_LastHit_1() { return static_cast<int32_t>(offsetof(SendMouseEvents_tCF069F9DE53C8E51B7AF505FC52F79DB84D81437_StaticFields, ___m_LastHit_1)); } inline HitInfoU5BU5D_t432774AD200329E637288BFACCD210774B7B5231* get_m_LastHit_1() const { return ___m_LastHit_1; } inline HitInfoU5BU5D_t432774AD200329E637288BFACCD210774B7B5231** get_address_of_m_LastHit_1() { return &___m_LastHit_1; } inline void set_m_LastHit_1(HitInfoU5BU5D_t432774AD200329E637288BFACCD210774B7B5231* value) { ___m_LastHit_1 = value; Il2CppCodeGenWriteBarrier((void**)(&___m_LastHit_1), (void*)value); } inline static int32_t get_offset_of_m_MouseDownHit_2() { return static_cast<int32_t>(offsetof(SendMouseEvents_tCF069F9DE53C8E51B7AF505FC52F79DB84D81437_StaticFields, ___m_MouseDownHit_2)); } inline HitInfoU5BU5D_t432774AD200329E637288BFACCD210774B7B5231* get_m_MouseDownHit_2() const { return ___m_MouseDownHit_2; } inline HitInfoU5BU5D_t432774AD200329E637288BFACCD210774B7B5231** get_address_of_m_MouseDownHit_2() { return &___m_MouseDownHit_2; } inline void set_m_MouseDownHit_2(HitInfoU5BU5D_t432774AD200329E637288BFACCD210774B7B5231* value) { ___m_MouseDownHit_2 = value; Il2CppCodeGenWriteBarrier((void**)(&___m_MouseDownHit_2), (void*)value); } inline static int32_t get_offset_of_m_CurrentHit_3() { return static_cast<int32_t>(offsetof(SendMouseEvents_tCF069F9DE53C8E51B7AF505FC52F79DB84D81437_StaticFields, ___m_CurrentHit_3)); } inline HitInfoU5BU5D_t432774AD200329E637288BFACCD210774B7B5231* get_m_CurrentHit_3() const { return ___m_CurrentHit_3; } inline HitInfoU5BU5D_t432774AD200329E637288BFACCD210774B7B5231** get_address_of_m_CurrentHit_3() { return &___m_CurrentHit_3; } inline void set_m_CurrentHit_3(HitInfoU5BU5D_t432774AD200329E637288BFACCD210774B7B5231* value) { ___m_CurrentHit_3 = value; Il2CppCodeGenWriteBarrier((void**)(&___m_CurrentHit_3), (void*)value); } inline static int32_t get_offset_of_m_Cameras_4() { return static_cast<int32_t>(offsetof(SendMouseEvents_tCF069F9DE53C8E51B7AF505FC52F79DB84D81437_StaticFields, ___m_Cameras_4)); } inline CameraU5BU5D_tAF84B9EC9AF40F1B6294BCEBA82A1AD123A9D001* get_m_Cameras_4() const { return ___m_Cameras_4; } inline CameraU5BU5D_tAF84B9EC9AF40F1B6294BCEBA82A1AD123A9D001** get_address_of_m_Cameras_4() { return &___m_Cameras_4; } inline void set_m_Cameras_4(CameraU5BU5D_tAF84B9EC9AF40F1B6294BCEBA82A1AD123A9D001* value) { ___m_Cameras_4 = value; Il2CppCodeGenWriteBarrier((void**)(&___m_Cameras_4), (void*)value); } }; // System.Boolean struct Boolean_t07D1E3F34E4813023D64F584DFF7B34C9D922F37 { public: // System.Boolean System.Boolean::m_value bool ___m_value_0; public: inline static int32_t get_offset_of_m_value_0() { return static_cast<int32_t>(offsetof(Boolean_t07D1E3F34E4813023D64F584DFF7B34C9D922F37, ___m_value_0)); } inline bool get_m_value_0() const { return ___m_value_0; } inline bool* get_address_of_m_value_0() { return &___m_value_0; } inline void set_m_value_0(bool value) { ___m_value_0 = value; } }; struct Boolean_t07D1E3F34E4813023D64F584DFF7B34C9D922F37_StaticFields { public: // System.String System.Boolean::TrueString String_t* ___TrueString_5; // System.String System.Boolean::FalseString String_t* ___FalseString_6; public: inline static int32_t get_offset_of_TrueString_5() { return static_cast<int32_t>(offsetof(Boolean_t07D1E3F34E4813023D64F584DFF7B34C9D922F37_StaticFields, ___TrueString_5)); } inline String_t* get_TrueString_5() const { return ___TrueString_5; } inline String_t** get_address_of_TrueString_5() { return &___TrueString_5; } inline void set_TrueString_5(String_t* value) { ___TrueString_5 = value; Il2CppCodeGenWriteBarrier((void**)(&___TrueString_5), (void*)value); } inline static int32_t get_offset_of_FalseString_6() { return static_cast<int32_t>(offsetof(Boolean_t07D1E3F34E4813023D64F584DFF7B34C9D922F37_StaticFields, ___FalseString_6)); } inline String_t* get_FalseString_6() const { return ___FalseString_6; } inline String_t** get_address_of_FalseString_6() { return &___FalseString_6; } inline void set_FalseString_6(String_t* value) { ___FalseString_6 = value; Il2CppCodeGenWriteBarrier((void**)(&___FalseString_6), (void*)value); } }; // System.Enum struct Enum_t23B90B40F60E677A8025267341651C94AE079CDA : public ValueType_tDBF999C1B75C48C68621878250DBF6CDBCF51E52 { public: public: }; struct Enum_t23B90B40F60E677A8025267341651C94AE079CDA_StaticFields { public: // System.Char[] System.Enum::enumSeperatorCharArray CharU5BU5D_t7B7FC5BC8091AA3B9CB0B29CDD80B5EE9254AA34* ___enumSeperatorCharArray_0; public: inline static int32_t get_offset_of_enumSeperatorCharArray_0() { return static_cast<int32_t>(offsetof(Enum_t23B90B40F60E677A8025267341651C94AE079CDA_StaticFields, ___enumSeperatorCharArray_0)); } inline CharU5BU5D_t7B7FC5BC8091AA3B9CB0B29CDD80B5EE9254AA34* get_enumSeperatorCharArray_0() const { return ___enumSeperatorCharArray_0; } inline CharU5BU5D_t7B7FC5BC8091AA3B9CB0B29CDD80B5EE9254AA34** get_address_of_enumSeperatorCharArray_0() { return &___enumSeperatorCharArray_0; } inline void set_enumSeperatorCharArray_0(CharU5BU5D_t7B7FC5BC8091AA3B9CB0B29CDD80B5EE9254AA34* value) { ___enumSeperatorCharArray_0 = value; Il2CppCodeGenWriteBarrier((void**)(&___enumSeperatorCharArray_0), (void*)value); } }; // Native definition for P/Invoke marshalling of System.Enum struct Enum_t23B90B40F60E677A8025267341651C94AE079CDA_marshaled_pinvoke { }; // Native definition for COM marshalling of System.Enum struct Enum_t23B90B40F60E677A8025267341651C94AE079CDA_marshaled_com { }; // System.Int32 struct Int32_tFDE5F8CD43D10453F6A2E0C77FE48C6CC7009046 { public: // System.Int32 System.Int32::m_value int32_t ___m_value_0; public: inline static int32_t get_offset_of_m_value_0() { return static_cast<int32_t>(offsetof(Int32_tFDE5F8CD43D10453F6A2E0C77FE48C6CC7009046, ___m_value_0)); } inline int32_t get_m_value_0() const { return ___m_value_0; } inline int32_t* get_address_of_m_value_0() { return &___m_value_0; } inline void set_m_value_0(int32_t value) { ___m_value_0 = value; } }; // System.IntPtr struct IntPtr_t { public: // System.Void* System.IntPtr::m_value void* ___m_value_0; public: inline static int32_t get_offset_of_m_value_0() { return static_cast<int32_t>(offsetof(IntPtr_t, ___m_value_0)); } inline void* get_m_value_0() const { return ___m_value_0; } inline void** get_address_of_m_value_0() { return &___m_value_0; } inline void set_m_value_0(void* value) { ___m_value_0 = value; } }; struct IntPtr_t_StaticFields { public: // System.IntPtr System.IntPtr::Zero intptr_t ___Zero_1; public: inline static int32_t get_offset_of_Zero_1() { return static_cast<int32_t>(offsetof(IntPtr_t_StaticFields, ___Zero_1)); } inline intptr_t get_Zero_1() const { return ___Zero_1; } inline intptr_t* get_address_of_Zero_1() { return &___Zero_1; } inline void set_Zero_1(intptr_t value) { ___Zero_1 = value; } }; // System.Single struct Single_tE07797BA3C98D4CA9B5A19413C19A76688AB899E { public: // System.Single System.Single::m_value float ___m_value_0; public: inline static int32_t get_offset_of_m_value_0() { return static_cast<int32_t>(offsetof(Single_tE07797BA3C98D4CA9B5A19413C19A76688AB899E, ___m_value_0)); } inline float get_m_value_0() const { return ___m_value_0; } inline float* get_address_of_m_value_0() { return &___m_value_0; } inline void set_m_value_0(float value) { ___m_value_0 = value; } }; // System.Void struct Void_t700C6383A2A510C2CF4DD86DABD5CA9FF70ADAC5 { public: union { struct { }; uint8_t Void_t700C6383A2A510C2CF4DD86DABD5CA9FF70ADAC5__padding[1]; }; public: }; // UnityEngine.Rect struct Rect_t7D9187DB6339DBA5741C09B6CCEF2F54F1966878 { public: // System.Single UnityEngine.Rect::m_XMin float ___m_XMin_0; // System.Single UnityEngine.Rect::m_YMin float ___m_YMin_1; // System.Single UnityEngine.Rect::m_Width float ___m_Width_2; // System.Single UnityEngine.Rect::m_Height float ___m_Height_3; public: inline static int32_t get_offset_of_m_XMin_0() { return static_cast<int32_t>(offsetof(Rect_t7D9187DB6339DBA5741C09B6CCEF2F54F1966878, ___m_XMin_0)); } inline float get_m_XMin_0() const { return ___m_XMin_0; } inline float* get_address_of_m_XMin_0() { return &___m_XMin_0; } inline void set_m_XMin_0(float value) { ___m_XMin_0 = value; } inline static int32_t get_offset_of_m_YMin_1() { return static_cast<int32_t>(offsetof(Rect_t7D9187DB6339DBA5741C09B6CCEF2F54F1966878, ___m_YMin_1)); } inline float get_m_YMin_1() const { return ___m_YMin_1; } inline float* get_address_of_m_YMin_1() { return &___m_YMin_1; } inline void set_m_YMin_1(float value) { ___m_YMin_1 = value; } inline static int32_t get_offset_of_m_Width_2() { return static_cast<int32_t>(offsetof(Rect_t7D9187DB6339DBA5741C09B6CCEF2F54F1966878, ___m_Width_2)); } inline float get_m_Width_2() const { return ___m_Width_2; } inline float* get_address_of_m_Width_2() { return &___m_Width_2; } inline void set_m_Width_2(float value) { ___m_Width_2 = value; } inline static int32_t get_offset_of_m_Height_3() { return static_cast<int32_t>(offsetof(Rect_t7D9187DB6339DBA5741C09B6CCEF2F54F1966878, ___m_Height_3)); } inline float get_m_Height_3() const { return ___m_Height_3; } inline float* get_address_of_m_Height_3() { return &___m_Height_3; } inline void set_m_Height_3(float value) { ___m_Height_3 = value; } }; // UnityEngine.SendMouseEvents_HitInfo struct HitInfo_t74B96DDC302EB605CCC557B737A5C88EB67B57D6 { public: // UnityEngine.GameObject UnityEngine.SendMouseEvents_HitInfo::target GameObject_tC000A2E1A7CF1E10FD7BA08863287C072207C319 * ___target_0; // UnityEngine.Camera UnityEngine.SendMouseEvents_HitInfo::camera Camera_tC44E094BAB53AFC8A014C6F9CFCE11F4FC38006C * ___camera_1; public: inline static int32_t get_offset_of_target_0() { return static_cast<int32_t>(offsetof(HitInfo_t74B96DDC302EB605CCC557B737A5C88EB67B57D6, ___target_0)); } inline GameObject_tC000A2E1A7CF1E10FD7BA08863287C072207C319 * get_target_0() const { return ___target_0; } inline GameObject_tC000A2E1A7CF1E10FD7BA08863287C072207C319 ** get_address_of_target_0() { return &___target_0; } inline void set_target_0(GameObject_tC000A2E1A7CF1E10FD7BA08863287C072207C319 * value) { ___target_0 = value; Il2CppCodeGenWriteBarrier((void**)(&___target_0), (void*)value); } inline static int32_t get_offset_of_camera_1() { return static_cast<int32_t>(offsetof(HitInfo_t74B96DDC302EB605CCC557B737A5C88EB67B57D6, ___camera_1)); } inline Camera_tC44E094BAB53AFC8A014C6F9CFCE11F4FC38006C * get_camera_1() const { return ___camera_1; } inline Camera_tC44E094BAB53AFC8A014C6F9CFCE11F4FC38006C ** get_address_of_camera_1() { return &___camera_1; } inline void set_camera_1(Camera_tC44E094BAB53AFC8A014C6F9CFCE11F4FC38006C * value) { ___camera_1 = value; Il2CppCodeGenWriteBarrier((void**)(&___camera_1), (void*)value); } }; // Native definition for P/Invoke marshalling of UnityEngine.SendMouseEvents/HitInfo struct HitInfo_t74B96DDC302EB605CCC557B737A5C88EB67B57D6_marshaled_pinvoke { GameObject_tC000A2E1A7CF1E10FD7BA08863287C072207C319 * ___target_0; Camera_tC44E094BAB53AFC8A014C6F9CFCE11F4FC38006C * ___camera_1; }; // Native definition for COM marshalling of UnityEngine.SendMouseEvents/HitInfo struct HitInfo_t74B96DDC302EB605CCC557B737A5C88EB67B57D6_marshaled_com { GameObject_tC000A2E1A7CF1E10FD7BA08863287C072207C319 * ___target_0; Camera_tC44E094BAB53AFC8A014C6F9CFCE11F4FC38006C * ___camera_1; }; // UnityEngine.Vector2 struct Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9 { public: // System.Single UnityEngine.Vector2::x float ___x_0; // System.Single UnityEngine.Vector2::y float ___y_1; public: inline static int32_t get_offset_of_x_0() { return static_cast<int32_t>(offsetof(Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9, ___x_0)); } inline float get_x_0() const { return ___x_0; } inline float* get_address_of_x_0() { return &___x_0; } inline void set_x_0(float value) { ___x_0 = value; } inline static int32_t get_offset_of_y_1() { return static_cast<int32_t>(offsetof(Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9, ___y_1)); } inline float get_y_1() const { return ___y_1; } inline float* get_address_of_y_1() { return &___y_1; } inline void set_y_1(float value) { ___y_1 = value; } }; struct Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9_StaticFields { public: // UnityEngine.Vector2 UnityEngine.Vector2::zeroVector Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9 ___zeroVector_2; // UnityEngine.Vector2 UnityEngine.Vector2::oneVector Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9 ___oneVector_3; // UnityEngine.Vector2 UnityEngine.Vector2::upVector Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9 ___upVector_4; // UnityEngine.Vector2 UnityEngine.Vector2::downVector Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9 ___downVector_5; // UnityEngine.Vector2 UnityEngine.Vector2::leftVector Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9 ___leftVector_6; // UnityEngine.Vector2 UnityEngine.Vector2::rightVector Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9 ___rightVector_7; // UnityEngine.Vector2 UnityEngine.Vector2::positiveInfinityVector Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9 ___positiveInfinityVector_8; // UnityEngine.Vector2 UnityEngine.Vector2::negativeInfinityVector Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9 ___negativeInfinityVector_9; public: inline static int32_t get_offset_of_zeroVector_2() { return static_cast<int32_t>(offsetof(Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9_StaticFields, ___zeroVector_2)); } inline Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9 get_zeroVector_2() const { return ___zeroVector_2; } inline Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9 * get_address_of_zeroVector_2() { return &___zeroVector_2; } inline void set_zeroVector_2(Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9 value) { ___zeroVector_2 = value; } inline static int32_t get_offset_of_oneVector_3() { return static_cast<int32_t>(offsetof(Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9_StaticFields, ___oneVector_3)); } inline Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9 get_oneVector_3() const { return ___oneVector_3; } inline Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9 * get_address_of_oneVector_3() { return &___oneVector_3; } inline void set_oneVector_3(Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9 value) { ___oneVector_3 = value; } inline static int32_t get_offset_of_upVector_4() { return static_cast<int32_t>(offsetof(Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9_StaticFields, ___upVector_4)); } inline Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9 get_upVector_4() const { return ___upVector_4; } inline Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9 * get_address_of_upVector_4() { return &___upVector_4; } inline void set_upVector_4(Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9 value) { ___upVector_4 = value; } inline static int32_t get_offset_of_downVector_5() { return static_cast<int32_t>(offsetof(Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9_StaticFields, ___downVector_5)); } inline Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9 get_downVector_5() const { return ___downVector_5; } inline Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9 * get_address_of_downVector_5() { return &___downVector_5; } inline void set_downVector_5(Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9 value) { ___downVector_5 = value; } inline static int32_t get_offset_of_leftVector_6() { return static_cast<int32_t>(offsetof(Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9_StaticFields, ___leftVector_6)); } inline Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9 get_leftVector_6() const { return ___leftVector_6; } inline Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9 * get_address_of_leftVector_6() { return &___leftVector_6; } inline void set_leftVector_6(Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9 value) { ___leftVector_6 = value; } inline static int32_t get_offset_of_rightVector_7() { return static_cast<int32_t>(offsetof(Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9_StaticFields, ___rightVector_7)); } inline Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9 get_rightVector_7() const { return ___rightVector_7; } inline Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9 * get_address_of_rightVector_7() { return &___rightVector_7; } inline void set_rightVector_7(Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9 value) { ___rightVector_7 = value; } inline static int32_t get_offset_of_positiveInfinityVector_8() { return static_cast<int32_t>(offsetof(Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9_StaticFields, ___positiveInfinityVector_8)); } inline Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9 get_positiveInfinityVector_8() const { return ___positiveInfinityVector_8; } inline Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9 * get_address_of_positiveInfinityVector_8() { return &___positiveInfinityVector_8; } inline void set_positiveInfinityVector_8(Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9 value) { ___positiveInfinityVector_8 = value; } inline static int32_t get_offset_of_negativeInfinityVector_9() { return static_cast<int32_t>(offsetof(Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9_StaticFields, ___negativeInfinityVector_9)); } inline Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9 get_negativeInfinityVector_9() const { return ___negativeInfinityVector_9; } inline Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9 * get_address_of_negativeInfinityVector_9() { return &___negativeInfinityVector_9; } inline void set_negativeInfinityVector_9(Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9 value) { ___negativeInfinityVector_9 = value; } }; // UnityEngine.Vector3 struct Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E { public: // System.Single UnityEngine.Vector3::x float ___x_2; // System.Single UnityEngine.Vector3::y float ___y_3; // System.Single UnityEngine.Vector3::z float ___z_4; public: inline static int32_t get_offset_of_x_2() { return static_cast<int32_t>(offsetof(Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E, ___x_2)); } inline float get_x_2() const { return ___x_2; } inline float* get_address_of_x_2() { return &___x_2; } inline void set_x_2(float value) { ___x_2 = value; } inline static int32_t get_offset_of_y_3() { return static_cast<int32_t>(offsetof(Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E, ___y_3)); } inline float get_y_3() const { return ___y_3; } inline float* get_address_of_y_3() { return &___y_3; } inline void set_y_3(float value) { ___y_3 = value; } inline static int32_t get_offset_of_z_4() { return static_cast<int32_t>(offsetof(Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E, ___z_4)); } inline float get_z_4() const { return ___z_4; } inline float* get_address_of_z_4() { return &___z_4; } inline void set_z_4(float value) { ___z_4 = value; } }; struct Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E_StaticFields { public: // UnityEngine.Vector3 UnityEngine.Vector3::zeroVector Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E ___zeroVector_5; // UnityEngine.Vector3 UnityEngine.Vector3::oneVector Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E ___oneVector_6; // UnityEngine.Vector3 UnityEngine.Vector3::upVector Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E ___upVector_7; // UnityEngine.Vector3 UnityEngine.Vector3::downVector Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E ___downVector_8; // UnityEngine.Vector3 UnityEngine.Vector3::leftVector Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E ___leftVector_9; // UnityEngine.Vector3 UnityEngine.Vector3::rightVector Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E ___rightVector_10; // UnityEngine.Vector3 UnityEngine.Vector3::forwardVector Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E ___forwardVector_11; // UnityEngine.Vector3 UnityEngine.Vector3::backVector Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E ___backVector_12; // UnityEngine.Vector3 UnityEngine.Vector3::positiveInfinityVector Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E ___positiveInfinityVector_13; // UnityEngine.Vector3 UnityEngine.Vector3::negativeInfinityVector Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E ___negativeInfinityVector_14; public: inline static int32_t get_offset_of_zeroVector_5() { return static_cast<int32_t>(offsetof(Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E_StaticFields, ___zeroVector_5)); } inline Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E get_zeroVector_5() const { return ___zeroVector_5; } inline Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E * get_address_of_zeroVector_5() { return &___zeroVector_5; } inline void set_zeroVector_5(Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E value) { ___zeroVector_5 = value; } inline static int32_t get_offset_of_oneVector_6() { return static_cast<int32_t>(offsetof(Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E_StaticFields, ___oneVector_6)); } inline Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E get_oneVector_6() const { return ___oneVector_6; } inline Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E * get_address_of_oneVector_6() { return &___oneVector_6; } inline void set_oneVector_6(Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E value) { ___oneVector_6 = value; } inline static int32_t get_offset_of_upVector_7() { return static_cast<int32_t>(offsetof(Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E_StaticFields, ___upVector_7)); } inline Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E get_upVector_7() const { return ___upVector_7; } inline Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E * get_address_of_upVector_7() { return &___upVector_7; } inline void set_upVector_7(Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E value) { ___upVector_7 = value; } inline static int32_t get_offset_of_downVector_8() { return static_cast<int32_t>(offsetof(Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E_StaticFields, ___downVector_8)); } inline Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E get_downVector_8() const { return ___downVector_8; } inline Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E * get_address_of_downVector_8() { return &___downVector_8; } inline void set_downVector_8(Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E value) { ___downVector_8 = value; } inline static int32_t get_offset_of_leftVector_9() { return static_cast<int32_t>(offsetof(Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E_StaticFields, ___leftVector_9)); } inline Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E get_leftVector_9() const { return ___leftVector_9; } inline Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E * get_address_of_leftVector_9() { return &___leftVector_9; } inline void set_leftVector_9(Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E value) { ___leftVector_9 = value; } inline static int32_t get_offset_of_rightVector_10() { return static_cast<int32_t>(offsetof(Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E_StaticFields, ___rightVector_10)); } inline Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E get_rightVector_10() const { return ___rightVector_10; } inline Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E * get_address_of_rightVector_10() { return &___rightVector_10; } inline void set_rightVector_10(Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E value) { ___rightVector_10 = value; } inline static int32_t get_offset_of_forwardVector_11() { return static_cast<int32_t>(offsetof(Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E_StaticFields, ___forwardVector_11)); } inline Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E get_forwardVector_11() const { return ___forwardVector_11; } inline Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E * get_address_of_forwardVector_11() { return &___forwardVector_11; } inline void set_forwardVector_11(Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E value) { ___forwardVector_11 = value; } inline static int32_t get_offset_of_backVector_12() { return static_cast<int32_t>(offsetof(Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E_StaticFields, ___backVector_12)); } inline Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E get_backVector_12() const { return ___backVector_12; } inline Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E * get_address_of_backVector_12() { return &___backVector_12; } inline void set_backVector_12(Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E value) { ___backVector_12 = value; } inline static int32_t get_offset_of_positiveInfinityVector_13() { return static_cast<int32_t>(offsetof(Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E_StaticFields, ___positiveInfinityVector_13)); } inline Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E get_positiveInfinityVector_13() const { return ___positiveInfinityVector_13; } inline Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E * get_address_of_positiveInfinityVector_13() { return &___positiveInfinityVector_13; } inline void set_positiveInfinityVector_13(Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E value) { ___positiveInfinityVector_13 = value; } inline static int32_t get_offset_of_negativeInfinityVector_14() { return static_cast<int32_t>(offsetof(Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E_StaticFields, ___negativeInfinityVector_14)); } inline Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E get_negativeInfinityVector_14() const { return ___negativeInfinityVector_14; } inline Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E * get_address_of_negativeInfinityVector_14() { return &___negativeInfinityVector_14; } inline void set_negativeInfinityVector_14(Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E value) { ___negativeInfinityVector_14 = value; } }; // UnityEngine.CameraClearFlags struct CameraClearFlags_t5CCA5C0FD787D780C128B8B0D6ACC80BB41B1DE7 { public: // System.Int32 UnityEngine.CameraClearFlags::value__ int32_t ___value___2; public: inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(CameraClearFlags_t5CCA5C0FD787D780C128B8B0D6ACC80BB41B1DE7, ___value___2)); } inline int32_t get_value___2() const { return ___value___2; } inline int32_t* get_address_of_value___2() { return &___value___2; } inline void set_value___2(int32_t value) { ___value___2 = value; } }; // UnityEngine.Display struct Display_t0A5D09F1F2EB8025FE40EE0F81E0D01BB47A9B44 : public RuntimeObject { public: // System.IntPtr UnityEngine.Display::nativeDisplay intptr_t ___nativeDisplay_0; public: inline static int32_t get_offset_of_nativeDisplay_0() { return static_cast<int32_t>(offsetof(Display_t0A5D09F1F2EB8025FE40EE0F81E0D01BB47A9B44, ___nativeDisplay_0)); } inline intptr_t get_nativeDisplay_0() const { return ___nativeDisplay_0; } inline intptr_t* get_address_of_nativeDisplay_0() { return &___nativeDisplay_0; } inline void set_nativeDisplay_0(intptr_t value) { ___nativeDisplay_0 = value; } }; struct Display_t0A5D09F1F2EB8025FE40EE0F81E0D01BB47A9B44_StaticFields { public: // UnityEngine.Display[] UnityEngine.Display::displays DisplayU5BU5D_t3330058639C7A70B7B1FE7B4325E2B5D600CF4A6* ___displays_1; // UnityEngine.Display UnityEngine.Display::_mainDisplay Display_t0A5D09F1F2EB8025FE40EE0F81E0D01BB47A9B44 * ____mainDisplay_2; // UnityEngine.Display_DisplaysUpdatedDelegate UnityEngine.Display::onDisplaysUpdated DisplaysUpdatedDelegate_tC6A6AD44FAD98C9E28479FFF4BD3D9932458A6A1 * ___onDisplaysUpdated_3; public: inline static int32_t get_offset_of_displays_1() { return static_cast<int32_t>(offsetof(Display_t0A5D09F1F2EB8025FE40EE0F81E0D01BB47A9B44_StaticFields, ___displays_1)); } inline DisplayU5BU5D_t3330058639C7A70B7B1FE7B4325E2B5D600CF4A6* get_displays_1() const { return ___displays_1; } inline DisplayU5BU5D_t3330058639C7A70B7B1FE7B4325E2B5D600CF4A6** get_address_of_displays_1() { return &___displays_1; } inline void set_displays_1(DisplayU5BU5D_t3330058639C7A70B7B1FE7B4325E2B5D600CF4A6* value) { ___displays_1 = value; Il2CppCodeGenWriteBarrier((void**)(&___displays_1), (void*)value); } inline static int32_t get_offset_of__mainDisplay_2() { return static_cast<int32_t>(offsetof(Display_t0A5D09F1F2EB8025FE40EE0F81E0D01BB47A9B44_StaticFields, ____mainDisplay_2)); } inline Display_t0A5D09F1F2EB8025FE40EE0F81E0D01BB47A9B44 * get__mainDisplay_2() const { return ____mainDisplay_2; } inline Display_t0A5D09F1F2EB8025FE40EE0F81E0D01BB47A9B44 ** get_address_of__mainDisplay_2() { return &____mainDisplay_2; } inline void set__mainDisplay_2(Display_t0A5D09F1F2EB8025FE40EE0F81E0D01BB47A9B44 * value) { ____mainDisplay_2 = value; Il2CppCodeGenWriteBarrier((void**)(&____mainDisplay_2), (void*)value); } inline static int32_t get_offset_of_onDisplaysUpdated_3() { return static_cast<int32_t>(offsetof(Display_t0A5D09F1F2EB8025FE40EE0F81E0D01BB47A9B44_StaticFields, ___onDisplaysUpdated_3)); } inline DisplaysUpdatedDelegate_tC6A6AD44FAD98C9E28479FFF4BD3D9932458A6A1 * get_onDisplaysUpdated_3() const { return ___onDisplaysUpdated_3; } inline DisplaysUpdatedDelegate_tC6A6AD44FAD98C9E28479FFF4BD3D9932458A6A1 ** get_address_of_onDisplaysUpdated_3() { return &___onDisplaysUpdated_3; } inline void set_onDisplaysUpdated_3(DisplaysUpdatedDelegate_tC6A6AD44FAD98C9E28479FFF4BD3D9932458A6A1 * value) { ___onDisplaysUpdated_3 = value; Il2CppCodeGenWriteBarrier((void**)(&___onDisplaysUpdated_3), (void*)value); } }; // UnityEngine.IMECompositionMode struct IMECompositionMode_t8755B1BD5D22F5DE23A46F79403A234844D7A5C8 { public: // System.Int32 UnityEngine.IMECompositionMode::value__ int32_t ___value___2; public: inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(IMECompositionMode_t8755B1BD5D22F5DE23A46F79403A234844D7A5C8, ___value___2)); } inline int32_t get_value___2() const { return ___value___2; } inline int32_t* get_address_of_value___2() { return &___value___2; } inline void set_value___2(int32_t value) { ___value___2 = value; } }; // UnityEngine.Object struct Object_tF2F3778131EFF286AF62B7B013A170F95A91571A : 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_tF2F3778131EFF286AF62B7B013A170F95A91571A, ___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_tF2F3778131EFF286AF62B7B013A170F95A91571A_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_tF2F3778131EFF286AF62B7B013A170F95A91571A_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; } }; // Native definition for P/Invoke marshalling of UnityEngine.Object struct Object_tF2F3778131EFF286AF62B7B013A170F95A91571A_marshaled_pinvoke { intptr_t ___m_CachedPtr_0; }; // Native definition for COM marshalling of UnityEngine.Object struct Object_tF2F3778131EFF286AF62B7B013A170F95A91571A_marshaled_com { intptr_t ___m_CachedPtr_0; }; // UnityEngine.Ray struct Ray_t2E9E67CC8B03EE6ED2BBF3D2C9C96DDF70E1D5E6 { public: // UnityEngine.Vector3 UnityEngine.Ray::m_Origin Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E ___m_Origin_0; // UnityEngine.Vector3 UnityEngine.Ray::m_Direction Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E ___m_Direction_1; public: inline static int32_t get_offset_of_m_Origin_0() { return static_cast<int32_t>(offsetof(Ray_t2E9E67CC8B03EE6ED2BBF3D2C9C96DDF70E1D5E6, ___m_Origin_0)); } inline Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E get_m_Origin_0() const { return ___m_Origin_0; } inline Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E * get_address_of_m_Origin_0() { return &___m_Origin_0; } inline void set_m_Origin_0(Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E value) { ___m_Origin_0 = value; } inline static int32_t get_offset_of_m_Direction_1() { return static_cast<int32_t>(offsetof(Ray_t2E9E67CC8B03EE6ED2BBF3D2C9C96DDF70E1D5E6, ___m_Direction_1)); } inline Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E get_m_Direction_1() const { return ___m_Direction_1; } inline Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E * get_address_of_m_Direction_1() { return &___m_Direction_1; } inline void set_m_Direction_1(Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E value) { ___m_Direction_1 = value; } }; // UnityEngine.SendMessageOptions struct SendMessageOptions_t89E16D7B4FAECAF721478B06E56214F97438C61B { public: // System.Int32 UnityEngine.SendMessageOptions::value__ int32_t ___value___2; public: inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(SendMessageOptions_t89E16D7B4FAECAF721478B06E56214F97438C61B, ___value___2)); } inline int32_t get_value___2() const { return ___value___2; } inline int32_t* get_address_of_value___2() { return &___value___2; } inline void set_value___2(int32_t value) { ___value___2 = value; } }; // UnityEngine.TouchPhase struct TouchPhase_tB52B8A497547FB9575DE7975D13AC7D64C3A958A { public: // System.Int32 UnityEngine.TouchPhase::value__ int32_t ___value___2; public: inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(TouchPhase_tB52B8A497547FB9575DE7975D13AC7D64C3A958A, ___value___2)); } inline int32_t get_value___2() const { return ___value___2; } inline int32_t* get_address_of_value___2() { return &___value___2; } inline void set_value___2(int32_t value) { ___value___2 = value; } }; // UnityEngine.TouchType struct TouchType_t2EF726465ABD45681A6686BAC426814AA087C20F { public: // System.Int32 UnityEngine.TouchType::value__ int32_t ___value___2; public: inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(TouchType_t2EF726465ABD45681A6686BAC426814AA087C20F, ___value___2)); } inline int32_t get_value___2() const { return ___value___2; } inline int32_t* get_address_of_value___2() { return &___value___2; } inline void set_value___2(int32_t value) { ___value___2 = value; } }; // UnityEngine.Component struct Component_t62FBC8D2420DA4BE9037AFE430740F6B3EECA684 : public Object_tF2F3778131EFF286AF62B7B013A170F95A91571A { public: public: }; // UnityEngine.GameObject struct GameObject_tC000A2E1A7CF1E10FD7BA08863287C072207C319 : public Object_tF2F3778131EFF286AF62B7B013A170F95A91571A { public: public: }; // UnityEngine.Texture struct Texture_t9FE0218A1EEDF266E8C85879FE123265CACC95AE : public Object_tF2F3778131EFF286AF62B7B013A170F95A91571A { public: public: }; struct Texture_t9FE0218A1EEDF266E8C85879FE123265CACC95AE_StaticFields { public: // System.Int32 UnityEngine.Texture::GenerateAllMips int32_t ___GenerateAllMips_4; public: inline static int32_t get_offset_of_GenerateAllMips_4() { return static_cast<int32_t>(offsetof(Texture_t9FE0218A1EEDF266E8C85879FE123265CACC95AE_StaticFields, ___GenerateAllMips_4)); } inline int32_t get_GenerateAllMips_4() const { return ___GenerateAllMips_4; } inline int32_t* get_address_of_GenerateAllMips_4() { return &___GenerateAllMips_4; } inline void set_GenerateAllMips_4(int32_t value) { ___GenerateAllMips_4 = value; } }; // UnityEngine.Touch struct Touch_tDEFED247540BCFA4AD452F1D37EEF4E09B4ACD8C { public: // System.Int32 UnityEngine.Touch::m_FingerId int32_t ___m_FingerId_0; // UnityEngine.Vector2 UnityEngine.Touch::m_Position Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9 ___m_Position_1; // UnityEngine.Vector2 UnityEngine.Touch::m_RawPosition Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9 ___m_RawPosition_2; // UnityEngine.Vector2 UnityEngine.Touch::m_PositionDelta Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9 ___m_PositionDelta_3; // System.Single UnityEngine.Touch::m_TimeDelta float ___m_TimeDelta_4; // System.Int32 UnityEngine.Touch::m_TapCount int32_t ___m_TapCount_5; // UnityEngine.TouchPhase UnityEngine.Touch::m_Phase int32_t ___m_Phase_6; // UnityEngine.TouchType UnityEngine.Touch::m_Type int32_t ___m_Type_7; // System.Single UnityEngine.Touch::m_Pressure float ___m_Pressure_8; // System.Single UnityEngine.Touch::m_maximumPossiblePressure float ___m_maximumPossiblePressure_9; // System.Single UnityEngine.Touch::m_Radius float ___m_Radius_10; // System.Single UnityEngine.Touch::m_RadiusVariance float ___m_RadiusVariance_11; // System.Single UnityEngine.Touch::m_AltitudeAngle float ___m_AltitudeAngle_12; // System.Single UnityEngine.Touch::m_AzimuthAngle float ___m_AzimuthAngle_13; public: inline static int32_t get_offset_of_m_FingerId_0() { return static_cast<int32_t>(offsetof(Touch_tDEFED247540BCFA4AD452F1D37EEF4E09B4ACD8C, ___m_FingerId_0)); } inline int32_t get_m_FingerId_0() const { return ___m_FingerId_0; } inline int32_t* get_address_of_m_FingerId_0() { return &___m_FingerId_0; } inline void set_m_FingerId_0(int32_t value) { ___m_FingerId_0 = value; } inline static int32_t get_offset_of_m_Position_1() { return static_cast<int32_t>(offsetof(Touch_tDEFED247540BCFA4AD452F1D37EEF4E09B4ACD8C, ___m_Position_1)); } inline Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9 get_m_Position_1() const { return ___m_Position_1; } inline Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9 * get_address_of_m_Position_1() { return &___m_Position_1; } inline void set_m_Position_1(Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9 value) { ___m_Position_1 = value; } inline static int32_t get_offset_of_m_RawPosition_2() { return static_cast<int32_t>(offsetof(Touch_tDEFED247540BCFA4AD452F1D37EEF4E09B4ACD8C, ___m_RawPosition_2)); } inline Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9 get_m_RawPosition_2() const { return ___m_RawPosition_2; } inline Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9 * get_address_of_m_RawPosition_2() { return &___m_RawPosition_2; } inline void set_m_RawPosition_2(Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9 value) { ___m_RawPosition_2 = value; } inline static int32_t get_offset_of_m_PositionDelta_3() { return static_cast<int32_t>(offsetof(Touch_tDEFED247540BCFA4AD452F1D37EEF4E09B4ACD8C, ___m_PositionDelta_3)); } inline Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9 get_m_PositionDelta_3() const { return ___m_PositionDelta_3; } inline Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9 * get_address_of_m_PositionDelta_3() { return &___m_PositionDelta_3; } inline void set_m_PositionDelta_3(Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9 value) { ___m_PositionDelta_3 = value; } inline static int32_t get_offset_of_m_TimeDelta_4() { return static_cast<int32_t>(offsetof(Touch_tDEFED247540BCFA4AD452F1D37EEF4E09B4ACD8C, ___m_TimeDelta_4)); } inline float get_m_TimeDelta_4() const { return ___m_TimeDelta_4; } inline float* get_address_of_m_TimeDelta_4() { return &___m_TimeDelta_4; } inline void set_m_TimeDelta_4(float value) { ___m_TimeDelta_4 = value; } inline static int32_t get_offset_of_m_TapCount_5() { return static_cast<int32_t>(offsetof(Touch_tDEFED247540BCFA4AD452F1D37EEF4E09B4ACD8C, ___m_TapCount_5)); } inline int32_t get_m_TapCount_5() const { return ___m_TapCount_5; } inline int32_t* get_address_of_m_TapCount_5() { return &___m_TapCount_5; } inline void set_m_TapCount_5(int32_t value) { ___m_TapCount_5 = value; } inline static int32_t get_offset_of_m_Phase_6() { return static_cast<int32_t>(offsetof(Touch_tDEFED247540BCFA4AD452F1D37EEF4E09B4ACD8C, ___m_Phase_6)); } inline int32_t get_m_Phase_6() const { return ___m_Phase_6; } inline int32_t* get_address_of_m_Phase_6() { return &___m_Phase_6; } inline void set_m_Phase_6(int32_t value) { ___m_Phase_6 = value; } inline static int32_t get_offset_of_m_Type_7() { return static_cast<int32_t>(offsetof(Touch_tDEFED247540BCFA4AD452F1D37EEF4E09B4ACD8C, ___m_Type_7)); } inline int32_t get_m_Type_7() const { return ___m_Type_7; } inline int32_t* get_address_of_m_Type_7() { return &___m_Type_7; } inline void set_m_Type_7(int32_t value) { ___m_Type_7 = value; } inline static int32_t get_offset_of_m_Pressure_8() { return static_cast<int32_t>(offsetof(Touch_tDEFED247540BCFA4AD452F1D37EEF4E09B4ACD8C, ___m_Pressure_8)); } inline float get_m_Pressure_8() const { return ___m_Pressure_8; } inline float* get_address_of_m_Pressure_8() { return &___m_Pressure_8; } inline void set_m_Pressure_8(float value) { ___m_Pressure_8 = value; } inline static int32_t get_offset_of_m_maximumPossiblePressure_9() { return static_cast<int32_t>(offsetof(Touch_tDEFED247540BCFA4AD452F1D37EEF4E09B4ACD8C, ___m_maximumPossiblePressure_9)); } inline float get_m_maximumPossiblePressure_9() const { return ___m_maximumPossiblePressure_9; } inline float* get_address_of_m_maximumPossiblePressure_9() { return &___m_maximumPossiblePressure_9; } inline void set_m_maximumPossiblePressure_9(float value) { ___m_maximumPossiblePressure_9 = value; } inline static int32_t get_offset_of_m_Radius_10() { return static_cast<int32_t>(offsetof(Touch_tDEFED247540BCFA4AD452F1D37EEF4E09B4ACD8C, ___m_Radius_10)); } inline float get_m_Radius_10() const { return ___m_Radius_10; } inline float* get_address_of_m_Radius_10() { return &___m_Radius_10; } inline void set_m_Radius_10(float value) { ___m_Radius_10 = value; } inline static int32_t get_offset_of_m_RadiusVariance_11() { return static_cast<int32_t>(offsetof(Touch_tDEFED247540BCFA4AD452F1D37EEF4E09B4ACD8C, ___m_RadiusVariance_11)); } inline float get_m_RadiusVariance_11() const { return ___m_RadiusVariance_11; } inline float* get_address_of_m_RadiusVariance_11() { return &___m_RadiusVariance_11; } inline void set_m_RadiusVariance_11(float value) { ___m_RadiusVariance_11 = value; } inline static int32_t get_offset_of_m_AltitudeAngle_12() { return static_cast<int32_t>(offsetof(Touch_tDEFED247540BCFA4AD452F1D37EEF4E09B4ACD8C, ___m_AltitudeAngle_12)); } inline float get_m_AltitudeAngle_12() const { return ___m_AltitudeAngle_12; } inline float* get_address_of_m_AltitudeAngle_12() { return &___m_AltitudeAngle_12; } inline void set_m_AltitudeAngle_12(float value) { ___m_AltitudeAngle_12 = value; } inline static int32_t get_offset_of_m_AzimuthAngle_13() { return static_cast<int32_t>(offsetof(Touch_tDEFED247540BCFA4AD452F1D37EEF4E09B4ACD8C, ___m_AzimuthAngle_13)); } inline float get_m_AzimuthAngle_13() const { return ___m_AzimuthAngle_13; } inline float* get_address_of_m_AzimuthAngle_13() { return &___m_AzimuthAngle_13; } inline void set_m_AzimuthAngle_13(float value) { ___m_AzimuthAngle_13 = value; } }; // UnityEngine.Behaviour struct Behaviour_t1A3DDDCF73B4627928FBFE02ED52B7251777DBD9 : public Component_t62FBC8D2420DA4BE9037AFE430740F6B3EECA684 { public: public: }; // UnityEngine.RenderTexture struct RenderTexture_t5FE7A5B47EF962A0E8D7BEBA05E9FC87D49A1849 : public Texture_t9FE0218A1EEDF266E8C85879FE123265CACC95AE { public: public: }; // UnityEngine.Camera struct Camera_tC44E094BAB53AFC8A014C6F9CFCE11F4FC38006C : public Behaviour_t1A3DDDCF73B4627928FBFE02ED52B7251777DBD9 { public: public: }; struct Camera_tC44E094BAB53AFC8A014C6F9CFCE11F4FC38006C_StaticFields { public: // UnityEngine.Camera_CameraCallback UnityEngine.Camera::onPreCull CameraCallback_tD9E7B69E561CE2EFDEEDB0E7F1406AC52247160D * ___onPreCull_4; // UnityEngine.Camera_CameraCallback UnityEngine.Camera::onPreRender CameraCallback_tD9E7B69E561CE2EFDEEDB0E7F1406AC52247160D * ___onPreRender_5; // UnityEngine.Camera_CameraCallback UnityEngine.Camera::onPostRender CameraCallback_tD9E7B69E561CE2EFDEEDB0E7F1406AC52247160D * ___onPostRender_6; public: inline static int32_t get_offset_of_onPreCull_4() { return static_cast<int32_t>(offsetof(Camera_tC44E094BAB53AFC8A014C6F9CFCE11F4FC38006C_StaticFields, ___onPreCull_4)); } inline CameraCallback_tD9E7B69E561CE2EFDEEDB0E7F1406AC52247160D * get_onPreCull_4() const { return ___onPreCull_4; } inline CameraCallback_tD9E7B69E561CE2EFDEEDB0E7F1406AC52247160D ** get_address_of_onPreCull_4() { return &___onPreCull_4; } inline void set_onPreCull_4(CameraCallback_tD9E7B69E561CE2EFDEEDB0E7F1406AC52247160D * value) { ___onPreCull_4 = value; Il2CppCodeGenWriteBarrier((void**)(&___onPreCull_4), (void*)value); } inline static int32_t get_offset_of_onPreRender_5() { return static_cast<int32_t>(offsetof(Camera_tC44E094BAB53AFC8A014C6F9CFCE11F4FC38006C_StaticFields, ___onPreRender_5)); } inline CameraCallback_tD9E7B69E561CE2EFDEEDB0E7F1406AC52247160D * get_onPreRender_5() const { return ___onPreRender_5; } inline CameraCallback_tD9E7B69E561CE2EFDEEDB0E7F1406AC52247160D ** get_address_of_onPreRender_5() { return &___onPreRender_5; } inline void set_onPreRender_5(CameraCallback_tD9E7B69E561CE2EFDEEDB0E7F1406AC52247160D * value) { ___onPreRender_5 = value; Il2CppCodeGenWriteBarrier((void**)(&___onPreRender_5), (void*)value); } inline static int32_t get_offset_of_onPostRender_6() { return static_cast<int32_t>(offsetof(Camera_tC44E094BAB53AFC8A014C6F9CFCE11F4FC38006C_StaticFields, ___onPostRender_6)); } inline CameraCallback_tD9E7B69E561CE2EFDEEDB0E7F1406AC52247160D * get_onPostRender_6() const { return ___onPostRender_6; } inline CameraCallback_tD9E7B69E561CE2EFDEEDB0E7F1406AC52247160D ** get_address_of_onPostRender_6() { return &___onPostRender_6; } inline void set_onPostRender_6(CameraCallback_tD9E7B69E561CE2EFDEEDB0E7F1406AC52247160D * value) { ___onPostRender_6 = value; Il2CppCodeGenWriteBarrier((void**)(&___onPostRender_6), (void*)value); } }; #ifdef __clang__ #pragma clang diagnostic pop #endif // UnityEngine.Touch[] struct TouchU5BU5D_t07E3B79F1FB6673E4450CCF9D09FA79DD96692E2 : public RuntimeArray { public: ALIGN_FIELD (8) Touch_tDEFED247540BCFA4AD452F1D37EEF4E09B4ACD8C m_Items[1]; public: inline Touch_tDEFED247540BCFA4AD452F1D37EEF4E09B4ACD8C GetAt(il2cpp_array_size_t index) const { IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length); return m_Items[index]; } inline Touch_tDEFED247540BCFA4AD452F1D37EEF4E09B4ACD8C * 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, Touch_tDEFED247540BCFA4AD452F1D37EEF4E09B4ACD8C value) { IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length); m_Items[index] = value; } inline Touch_tDEFED247540BCFA4AD452F1D37EEF4E09B4ACD8C GetAtUnchecked(il2cpp_array_size_t index) const { return m_Items[index]; } inline Touch_tDEFED247540BCFA4AD452F1D37EEF4E09B4ACD8C * GetAddressAtUnchecked(il2cpp_array_size_t index) { return m_Items + index; } inline void SetAtUnchecked(il2cpp_array_size_t index, Touch_tDEFED247540BCFA4AD452F1D37EEF4E09B4ACD8C value) { m_Items[index] = value; } }; // UnityEngine.Camera[] struct CameraU5BU5D_tAF84B9EC9AF40F1B6294BCEBA82A1AD123A9D001 : public RuntimeArray { public: ALIGN_FIELD (8) Camera_tC44E094BAB53AFC8A014C6F9CFCE11F4FC38006C * m_Items[1]; public: inline Camera_tC44E094BAB53AFC8A014C6F9CFCE11F4FC38006C * GetAt(il2cpp_array_size_t index) const { IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length); return m_Items[index]; } inline Camera_tC44E094BAB53AFC8A014C6F9CFCE11F4FC38006C ** 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, Camera_tC44E094BAB53AFC8A014C6F9CFCE11F4FC38006C * value) { IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length); m_Items[index] = value; Il2CppCodeGenWriteBarrier((void**)m_Items + index, (void*)value); } inline Camera_tC44E094BAB53AFC8A014C6F9CFCE11F4FC38006C * GetAtUnchecked(il2cpp_array_size_t index) const { return m_Items[index]; } inline Camera_tC44E094BAB53AFC8A014C6F9CFCE11F4FC38006C ** GetAddressAtUnchecked(il2cpp_array_size_t index) { return m_Items + index; } inline void SetAtUnchecked(il2cpp_array_size_t index, Camera_tC44E094BAB53AFC8A014C6F9CFCE11F4FC38006C * value) { m_Items[index] = value; Il2CppCodeGenWriteBarrier((void**)m_Items + index, (void*)value); } }; // UnityEngine.SendMouseEvents_HitInfo[] struct HitInfoU5BU5D_t432774AD200329E637288BFACCD210774B7B5231 : public RuntimeArray { public: ALIGN_FIELD (8) HitInfo_t74B96DDC302EB605CCC557B737A5C88EB67B57D6 m_Items[1]; public: inline HitInfo_t74B96DDC302EB605CCC557B737A5C88EB67B57D6 GetAt(il2cpp_array_size_t index) const { IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length); return m_Items[index]; } inline HitInfo_t74B96DDC302EB605CCC557B737A5C88EB67B57D6 * 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, HitInfo_t74B96DDC302EB605CCC557B737A5C88EB67B57D6 value) { IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length); m_Items[index] = value; Il2CppCodeGenWriteBarrier((void**)&((m_Items + index)->___target_0), (void*)NULL); #if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS Il2CppCodeGenWriteBarrier((void**)&((m_Items + index)->___camera_1), (void*)NULL); #endif } inline HitInfo_t74B96DDC302EB605CCC557B737A5C88EB67B57D6 GetAtUnchecked(il2cpp_array_size_t index) const { return m_Items[index]; } inline HitInfo_t74B96DDC302EB605CCC557B737A5C88EB67B57D6 * GetAddressAtUnchecked(il2cpp_array_size_t index) { return m_Items + index; } inline void SetAtUnchecked(il2cpp_array_size_t index, HitInfo_t74B96DDC302EB605CCC557B737A5C88EB67B57D6 value) { m_Items[index] = value; Il2CppCodeGenWriteBarrier((void**)&((m_Items + index)->___target_0), (void*)NULL); #if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS Il2CppCodeGenWriteBarrier((void**)&((m_Items + index)->___camera_1), (void*)NULL); #endif } }; // UnityEngine.Display[] struct DisplayU5BU5D_t3330058639C7A70B7B1FE7B4325E2B5D600CF4A6 : public RuntimeArray { public: ALIGN_FIELD (8) Display_t0A5D09F1F2EB8025FE40EE0F81E0D01BB47A9B44 * m_Items[1]; public: inline Display_t0A5D09F1F2EB8025FE40EE0F81E0D01BB47A9B44 * GetAt(il2cpp_array_size_t index) const { IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length); return m_Items[index]; } inline Display_t0A5D09F1F2EB8025FE40EE0F81E0D01BB47A9B44 ** 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, Display_t0A5D09F1F2EB8025FE40EE0F81E0D01BB47A9B44 * value) { IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length); m_Items[index] = value; Il2CppCodeGenWriteBarrier((void**)m_Items + index, (void*)value); } inline Display_t0A5D09F1F2EB8025FE40EE0F81E0D01BB47A9B44 * GetAtUnchecked(il2cpp_array_size_t index) const { return m_Items[index]; } inline Display_t0A5D09F1F2EB8025FE40EE0F81E0D01BB47A9B44 ** GetAddressAtUnchecked(il2cpp_array_size_t index) { return m_Items + index; } inline void SetAtUnchecked(il2cpp_array_size_t index, Display_t0A5D09F1F2EB8025FE40EE0F81E0D01BB47A9B44 * value) { m_Items[index] = value; Il2CppCodeGenWriteBarrier((void**)m_Items + index, (void*)value); } }; // UnityEngine.GameObject UnityEngine.CameraRaycastHelper::RaycastTry_Injected(UnityEngine.Camera,UnityEngine.Ray&,System.Single,System.Int32) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR GameObject_tC000A2E1A7CF1E10FD7BA08863287C072207C319 * CameraRaycastHelper_RaycastTry_Injected_mFAED8F3DC204691A92849F36D8BC69CFE68F43E8 (Camera_tC44E094BAB53AFC8A014C6F9CFCE11F4FC38006C * ___cam0, Ray_t2E9E67CC8B03EE6ED2BBF3D2C9C96DDF70E1D5E6 * ___ray1, float ___distance2, int32_t ___layerMask3, const RuntimeMethod* method); // UnityEngine.GameObject UnityEngine.CameraRaycastHelper::RaycastTry2D_Injected(UnityEngine.Camera,UnityEngine.Ray&,System.Single,System.Int32) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR GameObject_tC000A2E1A7CF1E10FD7BA08863287C072207C319 * CameraRaycastHelper_RaycastTry2D_Injected_m1AB3B5B899C17D5D6FC41D8F8CF2BE549F7D9F21 (Camera_tC44E094BAB53AFC8A014C6F9CFCE11F4FC38006C * ___cam0, Ray_t2E9E67CC8B03EE6ED2BBF3D2C9C96DDF70E1D5E6 * ___ray1, float ___distance2, int32_t ___layerMask3, const RuntimeMethod* method); // System.Void UnityEngine.Input::GetTouch_Injected(System.Int32,UnityEngine.Touch&) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void Input_GetTouch_Injected_m19710838FFBDDC3E60536B0932D3B5A392BE539D (int32_t ___index0, Touch_tDEFED247540BCFA4AD452F1D37EEF4E09B4ACD8C * ___ret1, const RuntimeMethod* method); // System.Void UnityEngine.Input::get_mousePosition_Injected(UnityEngine.Vector3&) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void Input_get_mousePosition_Injected_m4E5460D301ECE27CC322AB79C0914A4503ABC06E (Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E * ___ret0, const RuntimeMethod* method); // System.Void UnityEngine.Input::get_mouseScrollDelta_Injected(UnityEngine.Vector2&) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void Input_get_mouseScrollDelta_Injected_m8B072340853637C9CF5A23CEA63ED51B14886EC9 (Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9 * ___ret0, const RuntimeMethod* method); // System.Void UnityEngine.Input::get_compositionCursorPos_Injected(UnityEngine.Vector2&) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void Input_get_compositionCursorPos_Injected_mE31464243AB1819574A268B942B5667B03F4822E (Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9 * ___ret0, const RuntimeMethod* method); // System.Void UnityEngine.Input::set_compositionCursorPos_Injected(UnityEngine.Vector2&) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void Input_set_compositionCursorPos_Injected_m4B961AC7900B41DDBFBA03BE2F65F49C030CCB4D (Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9 * ___value0, const RuntimeMethod* method); // System.Int32 UnityEngine.Input::get_touchCount() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t Input_get_touchCount_mE1A06AB1973E3456AE398B3CC5105F27CC7335D6 (const RuntimeMethod* method); // UnityEngine.Touch UnityEngine.Input::GetTouch(System.Int32) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR Touch_tDEFED247540BCFA4AD452F1D37EEF4E09B4ACD8C Input_GetTouch_m6A2A31482B1A7D018C3AAC188C02F5D14500C81F (int32_t ___index0, const RuntimeMethod* method); // UnityEngine.Vector3 UnityEngine.Input::get_mousePosition() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E Input_get_mousePosition_m79528BC2F30C57054641F709C855130AE586AC0E (const RuntimeMethod* method); // System.Int32 UnityEngine.Camera::get_allCamerasCount() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t Camera_get_allCamerasCount_mFDB01BDA0C2C796020756A9DD53C38E32046B801 (const RuntimeMethod* method); // System.Int32 UnityEngine.Camera::GetAllCameras(UnityEngine.Camera[]) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t Camera_GetAllCameras_mC94EF7B11A5BA31CED54B106E68D64ED82D0CEF4 (CameraU5BU5D_tAF84B9EC9AF40F1B6294BCEBA82A1AD123A9D001* ___cameras0, const RuntimeMethod* method); // System.Boolean UnityEngine.Object::op_Equality(UnityEngine.Object,UnityEngine.Object) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool Object_op_Equality_mEE9EC7EB5C7DC3E95B94AB904E1986FC4D566D54 (Object_tF2F3778131EFF286AF62B7B013A170F95A91571A * ___x0, Object_tF2F3778131EFF286AF62B7B013A170F95A91571A * ___y1, const RuntimeMethod* method); // UnityEngine.RenderTexture UnityEngine.Camera::get_targetTexture() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR RenderTexture_t5FE7A5B47EF962A0E8D7BEBA05E9FC87D49A1849 * Camera_get_targetTexture_m1DF637F05FF945625231DED8F3071795755DD4BF (Camera_tC44E094BAB53AFC8A014C6F9CFCE11F4FC38006C * __this, const RuntimeMethod* method); // System.Boolean UnityEngine.Object::op_Inequality(UnityEngine.Object,UnityEngine.Object) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool Object_op_Inequality_mE1F187520BD83FB7D86A6D850710C4D42B864E90 (Object_tF2F3778131EFF286AF62B7B013A170F95A91571A * ___x0, Object_tF2F3778131EFF286AF62B7B013A170F95A91571A * ___y1, const RuntimeMethod* method); // System.Int32 UnityEngine.Camera::get_targetDisplay() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t Camera_get_targetDisplay_mED770420CB57E500C60BE15B9F7F5ED424F0BA3D (Camera_tC44E094BAB53AFC8A014C6F9CFCE11F4FC38006C * __this, const RuntimeMethod* method); // UnityEngine.Vector3 UnityEngine.Display::RelativeMouseAt(UnityEngine.Vector3) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E Display_RelativeMouseAt_m97B71A8A86DD2983B03E4816AE5C7B95484FB011 (Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E ___inputMouseCoordinates0, const RuntimeMethod* method); // UnityEngine.Vector3 UnityEngine.Vector3::get_zero() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E Vector3_get_zero_m1A8F7993167785F750B6B01762D22C2597C84EF6 (const RuntimeMethod* method); // System.Boolean UnityEngine.Vector3::op_Inequality(UnityEngine.Vector3,UnityEngine.Vector3) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool Vector3_op_Inequality_m15190A795B416EB699E69E6190DE6F1C1F208710 (Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E ___lhs0, Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E ___rhs1, const RuntimeMethod* method); // System.Int32 UnityEngine.Screen::get_width() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t Screen_get_width_m52188F76E8AAF57BE373018CB14083BB74C43C1C (const RuntimeMethod* method); // System.Int32 UnityEngine.Screen::get_height() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t Screen_get_height_m110C90A573EE67895DC4F59E9165235EA22039EE (const RuntimeMethod* method); // System.Int32 UnityEngine.Display::get_systemWidth() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t Display_get_systemWidth_m5FDF4465D7B1A0AD8A1A8C5B314BF71F4C8DCBB5 (Display_t0A5D09F1F2EB8025FE40EE0F81E0D01BB47A9B44 * __this, const RuntimeMethod* method); // System.Int32 UnityEngine.Display::get_systemHeight() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t Display_get_systemHeight_mA296AFD545D00DF7FEB84E7C690FD56CC2C19D70 (Display_t0A5D09F1F2EB8025FE40EE0F81E0D01BB47A9B44 * __this, const RuntimeMethod* method); // System.Void UnityEngine.Vector2::.ctor(System.Single,System.Single) IL2CPP_MANAGED_FORCE_INLINE IL2CPP_METHOD_ATTR void Vector2__ctor_m9F1F2D5EB5D1FF7091BB527AC8A72CBB309D115E_inline (Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9 * __this, float ___x0, float ___y1, const RuntimeMethod* method); // UnityEngine.Rect UnityEngine.Camera::get_pixelRect() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR Rect_t7D9187DB6339DBA5741C09B6CCEF2F54F1966878 Camera_get_pixelRect_m58284153875DDE6470D4BDCAF2DFC9F5C9DE3D3A (Camera_tC44E094BAB53AFC8A014C6F9CFCE11F4FC38006C * __this, const RuntimeMethod* method); // System.Boolean UnityEngine.Rect::Contains(UnityEngine.Vector3) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool Rect_Contains_m51C65159B1706EB00CC962D7CD1CEC2EBD85BC3A (Rect_t7D9187DB6339DBA5741C09B6CCEF2F54F1966878 * __this, Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E ___point0, const RuntimeMethod* method); // System.Int32 UnityEngine.Camera::get_eventMask() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t Camera_get_eventMask_m69507E71D5281F902A304A8BDDE7D23A3C501292 (Camera_tC44E094BAB53AFC8A014C6F9CFCE11F4FC38006C * __this, const RuntimeMethod* method); // UnityEngine.Ray UnityEngine.Camera::ScreenPointToRay(UnityEngine.Vector3) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR Ray_t2E9E67CC8B03EE6ED2BBF3D2C9C96DDF70E1D5E6 Camera_ScreenPointToRay_mD385213935A81030EDC604A39FD64761077CFBAB (Camera_tC44E094BAB53AFC8A014C6F9CFCE11F4FC38006C * __this, Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E ___pos0, const RuntimeMethod* method); // UnityEngine.Vector3 UnityEngine.Ray::get_direction() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E Ray_get_direction_m2B31F86F19B64474A901B28D3808011AE7A13EFC (Ray_t2E9E67CC8B03EE6ED2BBF3D2C9C96DDF70E1D5E6 * __this, const RuntimeMethod* method); // System.Boolean UnityEngine.Mathf::Approximately(System.Single,System.Single) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool Mathf_Approximately_mC2A3F657E3FD0CCAD4A4936CEE2F67D624A2AA55 (float ___a0, float ___b1, const RuntimeMethod* method); // System.Single UnityEngine.Camera::get_farClipPlane() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR float Camera_get_farClipPlane_m0FA1B9E2E815BECE2EA40023302EB942B52D9596 (Camera_tC44E094BAB53AFC8A014C6F9CFCE11F4FC38006C * __this, const RuntimeMethod* method); // System.Single UnityEngine.Camera::get_nearClipPlane() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR float Camera_get_nearClipPlane_m75A7270074A35D95B05F25EBF8CE392ECA6517DC (Camera_tC44E094BAB53AFC8A014C6F9CFCE11F4FC38006C * __this, const RuntimeMethod* method); // System.Int32 UnityEngine.Camera::get_cullingMask() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t Camera_get_cullingMask_m63492ED3AFA8F571FBED0B1729264A2E3BB64236 (Camera_tC44E094BAB53AFC8A014C6F9CFCE11F4FC38006C * __this, const RuntimeMethod* method); // UnityEngine.GameObject UnityEngine.CameraRaycastHelper::RaycastTry(UnityEngine.Camera,UnityEngine.Ray,System.Single,System.Int32) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR GameObject_tC000A2E1A7CF1E10FD7BA08863287C072207C319 * CameraRaycastHelper_RaycastTry_m8AA2714ED46E79851C77B83A3916C515D7280FD1 (Camera_tC44E094BAB53AFC8A014C6F9CFCE11F4FC38006C * ___cam0, Ray_t2E9E67CC8B03EE6ED2BBF3D2C9C96DDF70E1D5E6 ___ray1, float ___distance2, int32_t ___layerMask3, const RuntimeMethod* method); // UnityEngine.CameraClearFlags UnityEngine.Camera::get_clearFlags() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t Camera_get_clearFlags_m7D0E7A0DBAB6A84B680EC09835AA2F081A17E0D7 (Camera_tC44E094BAB53AFC8A014C6F9CFCE11F4FC38006C * __this, const RuntimeMethod* method); // UnityEngine.GameObject UnityEngine.CameraRaycastHelper::RaycastTry2D(UnityEngine.Camera,UnityEngine.Ray,System.Single,System.Int32) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR GameObject_tC000A2E1A7CF1E10FD7BA08863287C072207C319 * CameraRaycastHelper_RaycastTry2D_mAA0B0BAC7BE8A2F640A236BB6655EB47E5408C9D (Camera_tC44E094BAB53AFC8A014C6F9CFCE11F4FC38006C * ___cam0, Ray_t2E9E67CC8B03EE6ED2BBF3D2C9C96DDF70E1D5E6 ___ray1, float ___distance2, int32_t ___layerMask3, const RuntimeMethod* method); // System.Void UnityEngine.SendMouseEvents::SendEvents(System.Int32,UnityEngine.SendMouseEvents/HitInfo) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SendMouseEvents_SendEvents_m7A59BBFBB15C1BF3E47D56CDD4921599A686F9C7 (int32_t ___i0, HitInfo_t74B96DDC302EB605CCC557B737A5C88EB67B57D6 ___hit1, const RuntimeMethod* method); // System.Boolean UnityEngine.Input::GetMouseButtonDown(System.Int32) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool Input_GetMouseButtonDown_m466D81FDCC87C9CB07557B39DCB435EB691F1EF3 (int32_t ___button0, const RuntimeMethod* method); // System.Boolean UnityEngine.Input::GetMouseButton(System.Int32) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool Input_GetMouseButton_m27BF2DDBF38A38787B83A13D3E6F0F88F7C834C1 (int32_t ___button0, const RuntimeMethod* method); // System.Boolean UnityEngine.SendMouseEvents/HitInfo::op_Implicit(UnityEngine.SendMouseEvents/HitInfo) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool HitInfo_op_Implicit_m8332A3930623A2248D797F3A8020FFF4E05A9420 (HitInfo_t74B96DDC302EB605CCC557B737A5C88EB67B57D6 ___exists0, const RuntimeMethod* method); // System.Void UnityEngine.SendMouseEvents/HitInfo::SendMessage(System.String) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void HitInfo_SendMessage_m2D813691948EAB9CDA487A3B8668678EABFCFA62 (HitInfo_t74B96DDC302EB605CCC557B737A5C88EB67B57D6 * __this, String_t* ___name0, const RuntimeMethod* method); // System.Boolean UnityEngine.SendMouseEvents/HitInfo::Compare(UnityEngine.SendMouseEvents/HitInfo,UnityEngine.SendMouseEvents/HitInfo) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool HitInfo_Compare_m3AD170E7A52826C73DEF8C3C8F6507C9EAB28363 (HitInfo_t74B96DDC302EB605CCC557B737A5C88EB67B57D6 ___lhs0, HitInfo_t74B96DDC302EB605CCC557B737A5C88EB67B57D6 ___rhs1, const RuntimeMethod* method); // System.Int32 UnityEngine.Touch::get_fingerId() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t Touch_get_fingerId_mCED0E66949120E69BFE9294DC0A11A6F9FDBD129 (Touch_tDEFED247540BCFA4AD452F1D37EEF4E09B4ACD8C * __this, const RuntimeMethod* method); // UnityEngine.Vector2 UnityEngine.Touch::get_position() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9 Touch_get_position_mE32B04C6DA32A0965C403A31847ED7F1725EA1DE (Touch_tDEFED247540BCFA4AD452F1D37EEF4E09B4ACD8C * __this, const RuntimeMethod* method); // UnityEngine.TouchPhase UnityEngine.Touch::get_phase() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t Touch_get_phase_m576EA3F4FE1D12EB85510326AD8EC3C2EB267257 (Touch_tDEFED247540BCFA4AD452F1D37EEF4E09B4ACD8C * __this, const RuntimeMethod* method); // UnityEngine.TouchType UnityEngine.Touch::get_type() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t Touch_get_type_m33FB24B6A53A307E8AC9881ED3B483DD4B44C050 (Touch_tDEFED247540BCFA4AD452F1D37EEF4E09B4ACD8C * __this, const RuntimeMethod* method); // System.Void UnityEngine.GameObject::SendMessage(System.String,System.Object,UnityEngine.SendMessageOptions) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void GameObject_SendMessage_mD49CCADA51268480B585733DD7C6540CCCC6EF5C (GameObject_tC000A2E1A7CF1E10FD7BA08863287C072207C319 * __this, String_t* ___methodName0, RuntimeObject * ___value1, int32_t ___options2, const RuntimeMethod* method); #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif #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 // UnityEngine.GameObject UnityEngine.CameraRaycastHelper::RaycastTry(UnityEngine.Camera,UnityEngine.Ray,System.Single,System.Int32) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR GameObject_tC000A2E1A7CF1E10FD7BA08863287C072207C319 * CameraRaycastHelper_RaycastTry_m8AA2714ED46E79851C77B83A3916C515D7280FD1 (Camera_tC44E094BAB53AFC8A014C6F9CFCE11F4FC38006C * ___cam0, Ray_t2E9E67CC8B03EE6ED2BBF3D2C9C96DDF70E1D5E6 ___ray1, float ___distance2, int32_t ___layerMask3, const RuntimeMethod* method) { { Camera_tC44E094BAB53AFC8A014C6F9CFCE11F4FC38006C * L_0 = ___cam0; float L_1 = ___distance2; int32_t L_2 = ___layerMask3; GameObject_tC000A2E1A7CF1E10FD7BA08863287C072207C319 * L_3 = CameraRaycastHelper_RaycastTry_Injected_mFAED8F3DC204691A92849F36D8BC69CFE68F43E8(L_0, (Ray_t2E9E67CC8B03EE6ED2BBF3D2C9C96DDF70E1D5E6 *)(&___ray1), L_1, L_2, /*hidden argument*/NULL); return L_3; } } // UnityEngine.GameObject UnityEngine.CameraRaycastHelper::RaycastTry2D(UnityEngine.Camera,UnityEngine.Ray,System.Single,System.Int32) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR GameObject_tC000A2E1A7CF1E10FD7BA08863287C072207C319 * CameraRaycastHelper_RaycastTry2D_mAA0B0BAC7BE8A2F640A236BB6655EB47E5408C9D (Camera_tC44E094BAB53AFC8A014C6F9CFCE11F4FC38006C * ___cam0, Ray_t2E9E67CC8B03EE6ED2BBF3D2C9C96DDF70E1D5E6 ___ray1, float ___distance2, int32_t ___layerMask3, const RuntimeMethod* method) { { Camera_tC44E094BAB53AFC8A014C6F9CFCE11F4FC38006C * L_0 = ___cam0; float L_1 = ___distance2; int32_t L_2 = ___layerMask3; GameObject_tC000A2E1A7CF1E10FD7BA08863287C072207C319 * L_3 = CameraRaycastHelper_RaycastTry2D_Injected_m1AB3B5B899C17D5D6FC41D8F8CF2BE549F7D9F21(L_0, (Ray_t2E9E67CC8B03EE6ED2BBF3D2C9C96DDF70E1D5E6 *)(&___ray1), L_1, L_2, /*hidden argument*/NULL); return L_3; } } // UnityEngine.GameObject UnityEngine.CameraRaycastHelper::RaycastTry_Injected(UnityEngine.Camera,UnityEngine.Ray&,System.Single,System.Int32) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR GameObject_tC000A2E1A7CF1E10FD7BA08863287C072207C319 * CameraRaycastHelper_RaycastTry_Injected_mFAED8F3DC204691A92849F36D8BC69CFE68F43E8 (Camera_tC44E094BAB53AFC8A014C6F9CFCE11F4FC38006C * ___cam0, Ray_t2E9E67CC8B03EE6ED2BBF3D2C9C96DDF70E1D5E6 * ___ray1, float ___distance2, int32_t ___layerMask3, const RuntimeMethod* method) { typedef GameObject_tC000A2E1A7CF1E10FD7BA08863287C072207C319 * (*CameraRaycastHelper_RaycastTry_Injected_mFAED8F3DC204691A92849F36D8BC69CFE68F43E8_ftn) (Camera_tC44E094BAB53AFC8A014C6F9CFCE11F4FC38006C *, Ray_t2E9E67CC8B03EE6ED2BBF3D2C9C96DDF70E1D5E6 *, float, int32_t); static CameraRaycastHelper_RaycastTry_Injected_mFAED8F3DC204691A92849F36D8BC69CFE68F43E8_ftn _il2cpp_icall_func; if (!_il2cpp_icall_func) _il2cpp_icall_func = (CameraRaycastHelper_RaycastTry_Injected_mFAED8F3DC204691A92849F36D8BC69CFE68F43E8_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.CameraRaycastHelper::RaycastTry_Injected(UnityEngine.Camera,UnityEngine.Ray&,System.Single,System.Int32)"); GameObject_tC000A2E1A7CF1E10FD7BA08863287C072207C319 * retVal = _il2cpp_icall_func(___cam0, ___ray1, ___distance2, ___layerMask3); return retVal; } // UnityEngine.GameObject UnityEngine.CameraRaycastHelper::RaycastTry2D_Injected(UnityEngine.Camera,UnityEngine.Ray&,System.Single,System.Int32) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR GameObject_tC000A2E1A7CF1E10FD7BA08863287C072207C319 * CameraRaycastHelper_RaycastTry2D_Injected_m1AB3B5B899C17D5D6FC41D8F8CF2BE549F7D9F21 (Camera_tC44E094BAB53AFC8A014C6F9CFCE11F4FC38006C * ___cam0, Ray_t2E9E67CC8B03EE6ED2BBF3D2C9C96DDF70E1D5E6 * ___ray1, float ___distance2, int32_t ___layerMask3, const RuntimeMethod* method) { typedef GameObject_tC000A2E1A7CF1E10FD7BA08863287C072207C319 * (*CameraRaycastHelper_RaycastTry2D_Injected_m1AB3B5B899C17D5D6FC41D8F8CF2BE549F7D9F21_ftn) (Camera_tC44E094BAB53AFC8A014C6F9CFCE11F4FC38006C *, Ray_t2E9E67CC8B03EE6ED2BBF3D2C9C96DDF70E1D5E6 *, float, int32_t); static CameraRaycastHelper_RaycastTry2D_Injected_m1AB3B5B899C17D5D6FC41D8F8CF2BE549F7D9F21_ftn _il2cpp_icall_func; if (!_il2cpp_icall_func) _il2cpp_icall_func = (CameraRaycastHelper_RaycastTry2D_Injected_m1AB3B5B899C17D5D6FC41D8F8CF2BE549F7D9F21_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.CameraRaycastHelper::RaycastTry2D_Injected(UnityEngine.Camera,UnityEngine.Ray&,System.Single,System.Int32)"); GameObject_tC000A2E1A7CF1E10FD7BA08863287C072207C319 * retVal = _il2cpp_icall_func(___cam0, ___ray1, ___distance2, ___layerMask3); return retVal; } #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 #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.Single UnityEngine.Input::GetAxisRaw(System.String) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR float Input_GetAxisRaw_mC07AC23FD8D04A69CDB07C6399C93FFFAEB0FC5B (String_t* ___axisName0, const RuntimeMethod* method) { typedef float (*Input_GetAxisRaw_mC07AC23FD8D04A69CDB07C6399C93FFFAEB0FC5B_ftn) (String_t*); static Input_GetAxisRaw_mC07AC23FD8D04A69CDB07C6399C93FFFAEB0FC5B_ftn _il2cpp_icall_func; if (!_il2cpp_icall_func) _il2cpp_icall_func = (Input_GetAxisRaw_mC07AC23FD8D04A69CDB07C6399C93FFFAEB0FC5B_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.Input::GetAxisRaw(System.String)"); float retVal = _il2cpp_icall_func(___axisName0); return retVal; } // System.Boolean UnityEngine.Input::GetButtonDown(System.String) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool Input_GetButtonDown_m2001112EBCA3D5C7B0344EF62C896667F7E67DDF (String_t* ___buttonName0, const RuntimeMethod* method) { typedef bool (*Input_GetButtonDown_m2001112EBCA3D5C7B0344EF62C896667F7E67DDF_ftn) (String_t*); static Input_GetButtonDown_m2001112EBCA3D5C7B0344EF62C896667F7E67DDF_ftn _il2cpp_icall_func; if (!_il2cpp_icall_func) _il2cpp_icall_func = (Input_GetButtonDown_m2001112EBCA3D5C7B0344EF62C896667F7E67DDF_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.Input::GetButtonDown(System.String)"); bool retVal = _il2cpp_icall_func(___buttonName0); return retVal; } // System.Boolean UnityEngine.Input::GetMouseButton(System.Int32) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool Input_GetMouseButton_m27BF2DDBF38A38787B83A13D3E6F0F88F7C834C1 (int32_t ___button0, const RuntimeMethod* method) { typedef bool (*Input_GetMouseButton_m27BF2DDBF38A38787B83A13D3E6F0F88F7C834C1_ftn) (int32_t); static Input_GetMouseButton_m27BF2DDBF38A38787B83A13D3E6F0F88F7C834C1_ftn _il2cpp_icall_func; if (!_il2cpp_icall_func) _il2cpp_icall_func = (Input_GetMouseButton_m27BF2DDBF38A38787B83A13D3E6F0F88F7C834C1_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.Input::GetMouseButton(System.Int32)"); bool retVal = _il2cpp_icall_func(___button0); return retVal; } // System.Boolean UnityEngine.Input::GetMouseButtonDown(System.Int32) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool Input_GetMouseButtonDown_m466D81FDCC87C9CB07557B39DCB435EB691F1EF3 (int32_t ___button0, const RuntimeMethod* method) { typedef bool (*Input_GetMouseButtonDown_m466D81FDCC87C9CB07557B39DCB435EB691F1EF3_ftn) (int32_t); static Input_GetMouseButtonDown_m466D81FDCC87C9CB07557B39DCB435EB691F1EF3_ftn _il2cpp_icall_func; if (!_il2cpp_icall_func) _il2cpp_icall_func = (Input_GetMouseButtonDown_m466D81FDCC87C9CB07557B39DCB435EB691F1EF3_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.Input::GetMouseButtonDown(System.Int32)"); bool retVal = _il2cpp_icall_func(___button0); return retVal; } // System.Boolean UnityEngine.Input::GetMouseButtonUp(System.Int32) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool Input_GetMouseButtonUp_m2BA562F8C4FE8364EEC93970093E776371DF4022 (int32_t ___button0, const RuntimeMethod* method) { typedef bool (*Input_GetMouseButtonUp_m2BA562F8C4FE8364EEC93970093E776371DF4022_ftn) (int32_t); static Input_GetMouseButtonUp_m2BA562F8C4FE8364EEC93970093E776371DF4022_ftn _il2cpp_icall_func; if (!_il2cpp_icall_func) _il2cpp_icall_func = (Input_GetMouseButtonUp_m2BA562F8C4FE8364EEC93970093E776371DF4022_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.Input::GetMouseButtonUp(System.Int32)"); bool retVal = _il2cpp_icall_func(___button0); return retVal; } // UnityEngine.Touch UnityEngine.Input::GetTouch(System.Int32) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR Touch_tDEFED247540BCFA4AD452F1D37EEF4E09B4ACD8C Input_GetTouch_m6A2A31482B1A7D018C3AAC188C02F5D14500C81F (int32_t ___index0, const RuntimeMethod* method) { Touch_tDEFED247540BCFA4AD452F1D37EEF4E09B4ACD8C V_0; memset((&V_0), 0, sizeof(V_0)); { int32_t L_0 = ___index0; Input_GetTouch_Injected_m19710838FFBDDC3E60536B0932D3B5A392BE539D(L_0, (Touch_tDEFED247540BCFA4AD452F1D37EEF4E09B4ACD8C *)(&V_0), /*hidden argument*/NULL); Touch_tDEFED247540BCFA4AD452F1D37EEF4E09B4ACD8C L_1 = V_0; return L_1; } } // UnityEngine.Vector3 UnityEngine.Input::get_mousePosition() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E Input_get_mousePosition_m79528BC2F30C57054641F709C855130AE586AC0E (const RuntimeMethod* method) { Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E V_0; memset((&V_0), 0, sizeof(V_0)); { Input_get_mousePosition_Injected_m4E5460D301ECE27CC322AB79C0914A4503ABC06E((Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E *)(&V_0), /*hidden argument*/NULL); Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E L_0 = V_0; return L_0; } } // UnityEngine.Vector2 UnityEngine.Input::get_mouseScrollDelta() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9 Input_get_mouseScrollDelta_m018B3C74FC710A166684FC8391CAC93D8EC0ADB7 (const RuntimeMethod* method) { Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9 V_0; memset((&V_0), 0, sizeof(V_0)); { Input_get_mouseScrollDelta_Injected_m8B072340853637C9CF5A23CEA63ED51B14886EC9((Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9 *)(&V_0), /*hidden argument*/NULL); Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9 L_0 = V_0; return L_0; } } // UnityEngine.IMECompositionMode UnityEngine.Input::get_imeCompositionMode() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t Input_get_imeCompositionMode_m04AD6A8C7FEE55E7C4F70885DB5AF222E9F904E5 (const RuntimeMethod* method) { typedef int32_t (*Input_get_imeCompositionMode_m04AD6A8C7FEE55E7C4F70885DB5AF222E9F904E5_ftn) (); static Input_get_imeCompositionMode_m04AD6A8C7FEE55E7C4F70885DB5AF222E9F904E5_ftn _il2cpp_icall_func; if (!_il2cpp_icall_func) _il2cpp_icall_func = (Input_get_imeCompositionMode_m04AD6A8C7FEE55E7C4F70885DB5AF222E9F904E5_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.Input::get_imeCompositionMode()"); int32_t retVal = _il2cpp_icall_func(); return retVal; } // System.Void UnityEngine.Input::set_imeCompositionMode(UnityEngine.IMECompositionMode) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void Input_set_imeCompositionMode_m7D4AA771F1F616FE74A97CA186C4B55EF268E112 (int32_t ___value0, const RuntimeMethod* method) { typedef void (*Input_set_imeCompositionMode_m7D4AA771F1F616FE74A97CA186C4B55EF268E112_ftn) (int32_t); static Input_set_imeCompositionMode_m7D4AA771F1F616FE74A97CA186C4B55EF268E112_ftn _il2cpp_icall_func; if (!_il2cpp_icall_func) _il2cpp_icall_func = (Input_set_imeCompositionMode_m7D4AA771F1F616FE74A97CA186C4B55EF268E112_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.Input::set_imeCompositionMode(UnityEngine.IMECompositionMode)"); _il2cpp_icall_func(___value0); } // System.String UnityEngine.Input::get_compositionString() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR String_t* Input_get_compositionString_mF957B324E35155878D307CE2AEE0AACC9BEC25BD (const RuntimeMethod* method) { typedef String_t* (*Input_get_compositionString_mF957B324E35155878D307CE2AEE0AACC9BEC25BD_ftn) (); static Input_get_compositionString_mF957B324E35155878D307CE2AEE0AACC9BEC25BD_ftn _il2cpp_icall_func; if (!_il2cpp_icall_func) _il2cpp_icall_func = (Input_get_compositionString_mF957B324E35155878D307CE2AEE0AACC9BEC25BD_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.Input::get_compositionString()"); String_t* retVal = _il2cpp_icall_func(); return retVal; } // UnityEngine.Vector2 UnityEngine.Input::get_compositionCursorPos() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9 Input_get_compositionCursorPos_m70946478FB2B607BC3BC5EC1280AA217323518B3 (const RuntimeMethod* method) { Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9 V_0; memset((&V_0), 0, sizeof(V_0)); { Input_get_compositionCursorPos_Injected_mE31464243AB1819574A268B942B5667B03F4822E((Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9 *)(&V_0), /*hidden argument*/NULL); Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9 L_0 = V_0; return L_0; } } // System.Void UnityEngine.Input::set_compositionCursorPos(UnityEngine.Vector2) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void Input_set_compositionCursorPos_mA2A9D63F782E3C75F065F031C67C2A1363D47D9C (Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9 ___value0, const RuntimeMethod* method) { { Input_set_compositionCursorPos_Injected_m4B961AC7900B41DDBFBA03BE2F65F49C030CCB4D((Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9 *)(&___value0), /*hidden argument*/NULL); return; } } // System.Boolean UnityEngine.Input::get_mousePresent() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool Input_get_mousePresent_mBCACCE1C97E146FF46C7AE7FFE693F7BAB4E4FE5 (const RuntimeMethod* method) { typedef bool (*Input_get_mousePresent_mBCACCE1C97E146FF46C7AE7FFE693F7BAB4E4FE5_ftn) (); static Input_get_mousePresent_mBCACCE1C97E146FF46C7AE7FFE693F7BAB4E4FE5_ftn _il2cpp_icall_func; if (!_il2cpp_icall_func) _il2cpp_icall_func = (Input_get_mousePresent_mBCACCE1C97E146FF46C7AE7FFE693F7BAB4E4FE5_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.Input::get_mousePresent()"); bool retVal = _il2cpp_icall_func(); return retVal; } // System.Int32 UnityEngine.Input::get_touchCount() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t Input_get_touchCount_mE1A06AB1973E3456AE398B3CC5105F27CC7335D6 (const RuntimeMethod* method) { typedef int32_t (*Input_get_touchCount_mE1A06AB1973E3456AE398B3CC5105F27CC7335D6_ftn) (); static Input_get_touchCount_mE1A06AB1973E3456AE398B3CC5105F27CC7335D6_ftn _il2cpp_icall_func; if (!_il2cpp_icall_func) _il2cpp_icall_func = (Input_get_touchCount_mE1A06AB1973E3456AE398B3CC5105F27CC7335D6_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.Input::get_touchCount()"); int32_t retVal = _il2cpp_icall_func(); return retVal; } // System.Boolean UnityEngine.Input::get_touchSupported() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool Input_get_touchSupported_mE5B2F5199B4CC16D89AD2C3125B5CB38F4B4867B (const RuntimeMethod* method) { typedef bool (*Input_get_touchSupported_mE5B2F5199B4CC16D89AD2C3125B5CB38F4B4867B_ftn) (); static Input_get_touchSupported_mE5B2F5199B4CC16D89AD2C3125B5CB38F4B4867B_ftn _il2cpp_icall_func; if (!_il2cpp_icall_func) _il2cpp_icall_func = (Input_get_touchSupported_mE5B2F5199B4CC16D89AD2C3125B5CB38F4B4867B_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.Input::get_touchSupported()"); bool retVal = _il2cpp_icall_func(); return retVal; } // UnityEngine.Touch[] UnityEngine.Input::get_touches() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR TouchU5BU5D_t07E3B79F1FB6673E4450CCF9D09FA79DD96692E2* Input_get_touches_m26E3034CAE32931E59A480327A3CF4BFC2045E8F (const RuntimeMethod* method) { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_method (Input_get_touches_m26E3034CAE32931E59A480327A3CF4BFC2045E8F_MetadataUsageId); s_Il2CppMethodInitialized = true; } int32_t V_0 = 0; TouchU5BU5D_t07E3B79F1FB6673E4450CCF9D09FA79DD96692E2* V_1 = NULL; int32_t V_2 = 0; bool V_3 = false; TouchU5BU5D_t07E3B79F1FB6673E4450CCF9D09FA79DD96692E2* V_4 = NULL; { int32_t L_0 = Input_get_touchCount_mE1A06AB1973E3456AE398B3CC5105F27CC7335D6(/*hidden argument*/NULL); V_0 = L_0; int32_t L_1 = V_0; TouchU5BU5D_t07E3B79F1FB6673E4450CCF9D09FA79DD96692E2* L_2 = (TouchU5BU5D_t07E3B79F1FB6673E4450CCF9D09FA79DD96692E2*)(TouchU5BU5D_t07E3B79F1FB6673E4450CCF9D09FA79DD96692E2*)SZArrayNew(TouchU5BU5D_t07E3B79F1FB6673E4450CCF9D09FA79DD96692E2_il2cpp_TypeInfo_var, (uint32_t)L_1); V_1 = L_2; V_2 = 0; goto IL_0023; } IL_0012: { TouchU5BU5D_t07E3B79F1FB6673E4450CCF9D09FA79DD96692E2* L_3 = V_1; int32_t L_4 = V_2; int32_t L_5 = V_2; Touch_tDEFED247540BCFA4AD452F1D37EEF4E09B4ACD8C L_6 = Input_GetTouch_m6A2A31482B1A7D018C3AAC188C02F5D14500C81F(L_5, /*hidden argument*/NULL); NullCheck(L_3); (L_3)->SetAt(static_cast<il2cpp_array_size_t>(L_4), (Touch_tDEFED247540BCFA4AD452F1D37EEF4E09B4ACD8C )L_6); int32_t L_7 = V_2; V_2 = ((int32_t)il2cpp_codegen_add((int32_t)L_7, (int32_t)1)); } IL_0023: { int32_t L_8 = V_2; int32_t L_9 = V_0; V_3 = (bool)((((int32_t)L_8) < ((int32_t)L_9))? 1 : 0); bool L_10 = V_3; if (L_10) { goto IL_0012; } } { TouchU5BU5D_t07E3B79F1FB6673E4450CCF9D09FA79DD96692E2* L_11 = V_1; V_4 = L_11; goto IL_0030; } IL_0030: { TouchU5BU5D_t07E3B79F1FB6673E4450CCF9D09FA79DD96692E2* L_12 = V_4; return L_12; } } // System.Void UnityEngine.Input::GetTouch_Injected(System.Int32,UnityEngine.Touch&) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void Input_GetTouch_Injected_m19710838FFBDDC3E60536B0932D3B5A392BE539D (int32_t ___index0, Touch_tDEFED247540BCFA4AD452F1D37EEF4E09B4ACD8C * ___ret1, const RuntimeMethod* method) { typedef void (*Input_GetTouch_Injected_m19710838FFBDDC3E60536B0932D3B5A392BE539D_ftn) (int32_t, Touch_tDEFED247540BCFA4AD452F1D37EEF4E09B4ACD8C *); static Input_GetTouch_Injected_m19710838FFBDDC3E60536B0932D3B5A392BE539D_ftn _il2cpp_icall_func; if (!_il2cpp_icall_func) _il2cpp_icall_func = (Input_GetTouch_Injected_m19710838FFBDDC3E60536B0932D3B5A392BE539D_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.Input::GetTouch_Injected(System.Int32,UnityEngine.Touch&)"); _il2cpp_icall_func(___index0, ___ret1); } // System.Void UnityEngine.Input::get_mousePosition_Injected(UnityEngine.Vector3&) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void Input_get_mousePosition_Injected_m4E5460D301ECE27CC322AB79C0914A4503ABC06E (Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E * ___ret0, const RuntimeMethod* method) { typedef void (*Input_get_mousePosition_Injected_m4E5460D301ECE27CC322AB79C0914A4503ABC06E_ftn) (Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E *); static Input_get_mousePosition_Injected_m4E5460D301ECE27CC322AB79C0914A4503ABC06E_ftn _il2cpp_icall_func; if (!_il2cpp_icall_func) _il2cpp_icall_func = (Input_get_mousePosition_Injected_m4E5460D301ECE27CC322AB79C0914A4503ABC06E_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.Input::get_mousePosition_Injected(UnityEngine.Vector3&)"); _il2cpp_icall_func(___ret0); } // System.Void UnityEngine.Input::get_mouseScrollDelta_Injected(UnityEngine.Vector2&) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void Input_get_mouseScrollDelta_Injected_m8B072340853637C9CF5A23CEA63ED51B14886EC9 (Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9 * ___ret0, const RuntimeMethod* method) { typedef void (*Input_get_mouseScrollDelta_Injected_m8B072340853637C9CF5A23CEA63ED51B14886EC9_ftn) (Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9 *); static Input_get_mouseScrollDelta_Injected_m8B072340853637C9CF5A23CEA63ED51B14886EC9_ftn _il2cpp_icall_func; if (!_il2cpp_icall_func) _il2cpp_icall_func = (Input_get_mouseScrollDelta_Injected_m8B072340853637C9CF5A23CEA63ED51B14886EC9_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.Input::get_mouseScrollDelta_Injected(UnityEngine.Vector2&)"); _il2cpp_icall_func(___ret0); } // System.Void UnityEngine.Input::get_compositionCursorPos_Injected(UnityEngine.Vector2&) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void Input_get_compositionCursorPos_Injected_mE31464243AB1819574A268B942B5667B03F4822E (Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9 * ___ret0, const RuntimeMethod* method) { typedef void (*Input_get_compositionCursorPos_Injected_mE31464243AB1819574A268B942B5667B03F4822E_ftn) (Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9 *); static Input_get_compositionCursorPos_Injected_mE31464243AB1819574A268B942B5667B03F4822E_ftn _il2cpp_icall_func; if (!_il2cpp_icall_func) _il2cpp_icall_func = (Input_get_compositionCursorPos_Injected_mE31464243AB1819574A268B942B5667B03F4822E_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.Input::get_compositionCursorPos_Injected(UnityEngine.Vector2&)"); _il2cpp_icall_func(___ret0); } // System.Void UnityEngine.Input::set_compositionCursorPos_Injected(UnityEngine.Vector2&) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void Input_set_compositionCursorPos_Injected_m4B961AC7900B41DDBFBA03BE2F65F49C030CCB4D (Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9 * ___value0, const RuntimeMethod* method) { typedef void (*Input_set_compositionCursorPos_Injected_m4B961AC7900B41DDBFBA03BE2F65F49C030CCB4D_ftn) (Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9 *); static Input_set_compositionCursorPos_Injected_m4B961AC7900B41DDBFBA03BE2F65F49C030CCB4D_ftn _il2cpp_icall_func; if (!_il2cpp_icall_func) _il2cpp_icall_func = (Input_set_compositionCursorPos_Injected_m4B961AC7900B41DDBFBA03BE2F65F49C030CCB4D_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.Input::set_compositionCursorPos_Injected(UnityEngine.Vector2&)"); _il2cpp_icall_func(___value0); } #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.SendMouseEvents::SetMouseMoved() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SendMouseEvents_SetMouseMoved_mEC659144183FB490A2E1F12112C8F08569A511CD (const RuntimeMethod* method) { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_method (SendMouseEvents_SetMouseMoved_mEC659144183FB490A2E1F12112C8F08569A511CD_MetadataUsageId); s_Il2CppMethodInitialized = true; } { IL2CPP_RUNTIME_CLASS_INIT(SendMouseEvents_tCF069F9DE53C8E51B7AF505FC52F79DB84D81437_il2cpp_TypeInfo_var); ((SendMouseEvents_tCF069F9DE53C8E51B7AF505FC52F79DB84D81437_StaticFields*)il2cpp_codegen_static_fields_for(SendMouseEvents_tCF069F9DE53C8E51B7AF505FC52F79DB84D81437_il2cpp_TypeInfo_var))->set_s_MouseUsed_0((bool)1); return; } } // System.Void UnityEngine.SendMouseEvents::DoSendMouseEvents(System.Int32) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SendMouseEvents_DoSendMouseEvents_m21561D473C27F19BA9CDBC53B4A13D40DDFBE785 (int32_t ___skipRTCameras0, const RuntimeMethod* method) { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_method (SendMouseEvents_DoSendMouseEvents_m21561D473C27F19BA9CDBC53B4A13D40DDFBE785_MetadataUsageId); s_Il2CppMethodInitialized = true; } Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E V_0; memset((&V_0), 0, sizeof(V_0)); int32_t V_1 = 0; bool V_2 = false; int32_t V_3 = 0; bool V_4 = false; bool V_5 = false; CameraU5BU5D_tAF84B9EC9AF40F1B6294BCEBA82A1AD123A9D001* V_6 = NULL; int32_t V_7 = 0; Camera_tC44E094BAB53AFC8A014C6F9CFCE11F4FC38006C * V_8 = NULL; int32_t V_9 = 0; Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E V_10; memset((&V_10), 0, sizeof(V_10)); Rect_t7D9187DB6339DBA5741C09B6CCEF2F54F1966878 V_11; memset((&V_11), 0, sizeof(V_11)); Ray_t2E9E67CC8B03EE6ED2BBF3D2C9C96DDF70E1D5E6 V_12; memset((&V_12), 0, sizeof(V_12)); float V_13 = 0.0f; float V_14 = 0.0f; GameObject_tC000A2E1A7CF1E10FD7BA08863287C072207C319 * V_15 = NULL; GameObject_tC000A2E1A7CF1E10FD7BA08863287C072207C319 * V_16 = NULL; bool V_17 = false; bool V_18 = false; int32_t V_19 = 0; float V_20 = 0.0f; float V_21 = 0.0f; Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9 V_22; memset((&V_22), 0, sizeof(V_22)); bool V_23 = false; bool V_24 = false; bool V_25 = false; bool V_26 = false; bool V_27 = false; bool V_28 = false; bool V_29 = false; bool V_30 = false; bool V_31 = false; int32_t V_32 = 0; bool V_33 = false; int32_t G_B3_0 = 0; int32_t G_B14_0 = 0; int32_t G_B16_0 = 0; int32_t G_B24_0 = 0; int32_t G_B31_0 = 0; float G_B42_0 = 0.0f; int32_t G_B47_0 = 0; int32_t G_B54_0 = 0; { Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E L_0 = Input_get_mousePosition_m79528BC2F30C57054641F709C855130AE586AC0E(/*hidden argument*/NULL); V_0 = L_0; int32_t L_1 = Camera_get_allCamerasCount_mFDB01BDA0C2C796020756A9DD53C38E32046B801(/*hidden argument*/NULL); V_1 = L_1; IL2CPP_RUNTIME_CLASS_INIT(SendMouseEvents_tCF069F9DE53C8E51B7AF505FC52F79DB84D81437_il2cpp_TypeInfo_var); CameraU5BU5D_tAF84B9EC9AF40F1B6294BCEBA82A1AD123A9D001* L_2 = ((SendMouseEvents_tCF069F9DE53C8E51B7AF505FC52F79DB84D81437_StaticFields*)il2cpp_codegen_static_fields_for(SendMouseEvents_tCF069F9DE53C8E51B7AF505FC52F79DB84D81437_il2cpp_TypeInfo_var))->get_m_Cameras_4(); if (!L_2) { goto IL_0023; } } { IL2CPP_RUNTIME_CLASS_INIT(SendMouseEvents_tCF069F9DE53C8E51B7AF505FC52F79DB84D81437_il2cpp_TypeInfo_var); CameraU5BU5D_tAF84B9EC9AF40F1B6294BCEBA82A1AD123A9D001* L_3 = ((SendMouseEvents_tCF069F9DE53C8E51B7AF505FC52F79DB84D81437_StaticFields*)il2cpp_codegen_static_fields_for(SendMouseEvents_tCF069F9DE53C8E51B7AF505FC52F79DB84D81437_il2cpp_TypeInfo_var))->get_m_Cameras_4(); NullCheck(L_3); int32_t L_4 = V_1; G_B3_0 = ((((int32_t)((((int32_t)(((int32_t)((int32_t)(((RuntimeArray*)L_3)->max_length))))) == ((int32_t)L_4))? 1 : 0)) == ((int32_t)0))? 1 : 0); goto IL_0024; } IL_0023: { G_B3_0 = 1; } IL_0024: { V_2 = (bool)G_B3_0; bool L_5 = V_2; if (!L_5) { goto IL_0033; } } { int32_t L_6 = V_1; CameraU5BU5D_tAF84B9EC9AF40F1B6294BCEBA82A1AD123A9D001* L_7 = (CameraU5BU5D_tAF84B9EC9AF40F1B6294BCEBA82A1AD123A9D001*)(CameraU5BU5D_tAF84B9EC9AF40F1B6294BCEBA82A1AD123A9D001*)SZArrayNew(CameraU5BU5D_tAF84B9EC9AF40F1B6294BCEBA82A1AD123A9D001_il2cpp_TypeInfo_var, (uint32_t)L_6); IL2CPP_RUNTIME_CLASS_INIT(SendMouseEvents_tCF069F9DE53C8E51B7AF505FC52F79DB84D81437_il2cpp_TypeInfo_var); ((SendMouseEvents_tCF069F9DE53C8E51B7AF505FC52F79DB84D81437_StaticFields*)il2cpp_codegen_static_fields_for(SendMouseEvents_tCF069F9DE53C8E51B7AF505FC52F79DB84D81437_il2cpp_TypeInfo_var))->set_m_Cameras_4(L_7); } IL_0033: { IL2CPP_RUNTIME_CLASS_INIT(SendMouseEvents_tCF069F9DE53C8E51B7AF505FC52F79DB84D81437_il2cpp_TypeInfo_var); CameraU5BU5D_tAF84B9EC9AF40F1B6294BCEBA82A1AD123A9D001* L_8 = ((SendMouseEvents_tCF069F9DE53C8E51B7AF505FC52F79DB84D81437_StaticFields*)il2cpp_codegen_static_fields_for(SendMouseEvents_tCF069F9DE53C8E51B7AF505FC52F79DB84D81437_il2cpp_TypeInfo_var))->get_m_Cameras_4(); Camera_GetAllCameras_mC94EF7B11A5BA31CED54B106E68D64ED82D0CEF4(L_8, /*hidden argument*/NULL); V_3 = 0; goto IL_0057; } IL_0042: { IL2CPP_RUNTIME_CLASS_INIT(SendMouseEvents_tCF069F9DE53C8E51B7AF505FC52F79DB84D81437_il2cpp_TypeInfo_var); HitInfoU5BU5D_t432774AD200329E637288BFACCD210774B7B5231* L_9 = ((SendMouseEvents_tCF069F9DE53C8E51B7AF505FC52F79DB84D81437_StaticFields*)il2cpp_codegen_static_fields_for(SendMouseEvents_tCF069F9DE53C8E51B7AF505FC52F79DB84D81437_il2cpp_TypeInfo_var))->get_m_CurrentHit_3(); int32_t L_10 = V_3; NullCheck(L_9); il2cpp_codegen_initobj(((L_9)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_10))), sizeof(HitInfo_t74B96DDC302EB605CCC557B737A5C88EB67B57D6 )); int32_t L_11 = V_3; V_3 = ((int32_t)il2cpp_codegen_add((int32_t)L_11, (int32_t)1)); } IL_0057: { int32_t L_12 = V_3; IL2CPP_RUNTIME_CLASS_INIT(SendMouseEvents_tCF069F9DE53C8E51B7AF505FC52F79DB84D81437_il2cpp_TypeInfo_var); HitInfoU5BU5D_t432774AD200329E637288BFACCD210774B7B5231* L_13 = ((SendMouseEvents_tCF069F9DE53C8E51B7AF505FC52F79DB84D81437_StaticFields*)il2cpp_codegen_static_fields_for(SendMouseEvents_tCF069F9DE53C8E51B7AF505FC52F79DB84D81437_il2cpp_TypeInfo_var))->get_m_CurrentHit_3(); NullCheck(L_13); V_4 = (bool)((((int32_t)L_12) < ((int32_t)(((int32_t)((int32_t)(((RuntimeArray*)L_13)->max_length))))))? 1 : 0); bool L_14 = V_4; if (L_14) { goto IL_0042; } } { IL2CPP_RUNTIME_CLASS_INIT(SendMouseEvents_tCF069F9DE53C8E51B7AF505FC52F79DB84D81437_il2cpp_TypeInfo_var); bool L_15 = ((SendMouseEvents_tCF069F9DE53C8E51B7AF505FC52F79DB84D81437_StaticFields*)il2cpp_codegen_static_fields_for(SendMouseEvents_tCF069F9DE53C8E51B7AF505FC52F79DB84D81437_il2cpp_TypeInfo_var))->get_s_MouseUsed_0(); V_5 = (bool)((((int32_t)L_15) == ((int32_t)0))? 1 : 0); bool L_16 = V_5; if (!L_16) { goto IL_036a; } } { IL2CPP_RUNTIME_CLASS_INIT(SendMouseEvents_tCF069F9DE53C8E51B7AF505FC52F79DB84D81437_il2cpp_TypeInfo_var); CameraU5BU5D_tAF84B9EC9AF40F1B6294BCEBA82A1AD123A9D001* L_17 = ((SendMouseEvents_tCF069F9DE53C8E51B7AF505FC52F79DB84D81437_StaticFields*)il2cpp_codegen_static_fields_for(SendMouseEvents_tCF069F9DE53C8E51B7AF505FC52F79DB84D81437_il2cpp_TypeInfo_var))->get_m_Cameras_4(); V_6 = L_17; V_7 = 0; goto IL_035e; } IL_0089: { CameraU5BU5D_tAF84B9EC9AF40F1B6294BCEBA82A1AD123A9D001* L_18 = V_6; int32_t L_19 = V_7; NullCheck(L_18); int32_t L_20 = L_19; Camera_tC44E094BAB53AFC8A014C6F9CFCE11F4FC38006C * L_21 = (L_18)->GetAt(static_cast<il2cpp_array_size_t>(L_20)); V_8 = L_21; Camera_tC44E094BAB53AFC8A014C6F9CFCE11F4FC38006C * L_22 = V_8; IL2CPP_RUNTIME_CLASS_INIT(Object_tF2F3778131EFF286AF62B7B013A170F95A91571A_il2cpp_TypeInfo_var); bool L_23 = Object_op_Equality_mEE9EC7EB5C7DC3E95B94AB904E1986FC4D566D54(L_22, (Object_tF2F3778131EFF286AF62B7B013A170F95A91571A *)NULL, /*hidden argument*/NULL); if (L_23) { goto IL_00b0; } } { int32_t L_24 = ___skipRTCameras0; if (!L_24) { goto IL_00ad; } } { Camera_tC44E094BAB53AFC8A014C6F9CFCE11F4FC38006C * L_25 = V_8; NullCheck(L_25); RenderTexture_t5FE7A5B47EF962A0E8D7BEBA05E9FC87D49A1849 * L_26 = Camera_get_targetTexture_m1DF637F05FF945625231DED8F3071795755DD4BF(L_25, /*hidden argument*/NULL); IL2CPP_RUNTIME_CLASS_INIT(Object_tF2F3778131EFF286AF62B7B013A170F95A91571A_il2cpp_TypeInfo_var); bool L_27 = Object_op_Inequality_mE1F187520BD83FB7D86A6D850710C4D42B864E90(L_26, (Object_tF2F3778131EFF286AF62B7B013A170F95A91571A *)NULL, /*hidden argument*/NULL); G_B14_0 = ((int32_t)(L_27)); goto IL_00ae; } IL_00ad: { G_B14_0 = 0; } IL_00ae: { G_B16_0 = G_B14_0; goto IL_00b1; } IL_00b0: { G_B16_0 = 1; } IL_00b1: { V_17 = (bool)G_B16_0; bool L_28 = V_17; if (!L_28) { goto IL_00bc; } } { goto IL_0358; } IL_00bc: { Camera_tC44E094BAB53AFC8A014C6F9CFCE11F4FC38006C * L_29 = V_8; NullCheck(L_29); int32_t L_30 = Camera_get_targetDisplay_mED770420CB57E500C60BE15B9F7F5ED424F0BA3D(L_29, /*hidden argument*/NULL); V_9 = L_30; Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E L_31 = V_0; IL2CPP_RUNTIME_CLASS_INIT(Display_t0A5D09F1F2EB8025FE40EE0F81E0D01BB47A9B44_il2cpp_TypeInfo_var); Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E L_32 = Display_RelativeMouseAt_m97B71A8A86DD2983B03E4816AE5C7B95484FB011(L_31, /*hidden argument*/NULL); V_10 = L_32; Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E L_33 = V_10; IL2CPP_RUNTIME_CLASS_INIT(Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E_il2cpp_TypeInfo_var); Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E L_34 = Vector3_get_zero_m1A8F7993167785F750B6B01762D22C2597C84EF6(/*hidden argument*/NULL); bool L_35 = Vector3_op_Inequality_m15190A795B416EB699E69E6190DE6F1C1F208710(L_33, L_34, /*hidden argument*/NULL); V_18 = L_35; bool L_36 = V_18; if (!L_36) { goto IL_01b0; } } { Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E L_37 = V_10; float L_38 = L_37.get_z_4(); V_19 = (((int32_t)((int32_t)L_38))); int32_t L_39 = V_19; int32_t L_40 = V_9; V_23 = (bool)((((int32_t)((((int32_t)L_39) == ((int32_t)L_40))? 1 : 0)) == ((int32_t)0))? 1 : 0); bool L_41 = V_23; if (!L_41) { goto IL_0101; } } { goto IL_0358; } IL_0101: { int32_t L_42 = Screen_get_width_m52188F76E8AAF57BE373018CB14083BB74C43C1C(/*hidden argument*/NULL); V_20 = (((float)((float)L_42))); int32_t L_43 = Screen_get_height_m110C90A573EE67895DC4F59E9165235EA22039EE(/*hidden argument*/NULL); V_21 = (((float)((float)L_43))); int32_t L_44 = V_9; if ((((int32_t)L_44) <= ((int32_t)0))) { goto IL_0123; } } { int32_t L_45 = V_9; IL2CPP_RUNTIME_CLASS_INIT(Display_t0A5D09F1F2EB8025FE40EE0F81E0D01BB47A9B44_il2cpp_TypeInfo_var); DisplayU5BU5D_t3330058639C7A70B7B1FE7B4325E2B5D600CF4A6* L_46 = ((Display_t0A5D09F1F2EB8025FE40EE0F81E0D01BB47A9B44_StaticFields*)il2cpp_codegen_static_fields_for(Display_t0A5D09F1F2EB8025FE40EE0F81E0D01BB47A9B44_il2cpp_TypeInfo_var))->get_displays_1(); NullCheck(L_46); G_B24_0 = ((((int32_t)L_45) < ((int32_t)(((int32_t)((int32_t)(((RuntimeArray*)L_46)->max_length))))))? 1 : 0); goto IL_0124; } IL_0123: { G_B24_0 = 0; } IL_0124: { V_24 = (bool)G_B24_0; bool L_47 = V_24; if (!L_47) { goto IL_014c; } } { IL2CPP_RUNTIME_CLASS_INIT(Display_t0A5D09F1F2EB8025FE40EE0F81E0D01BB47A9B44_il2cpp_TypeInfo_var); DisplayU5BU5D_t3330058639C7A70B7B1FE7B4325E2B5D600CF4A6* L_48 = ((Display_t0A5D09F1F2EB8025FE40EE0F81E0D01BB47A9B44_StaticFields*)il2cpp_codegen_static_fields_for(Display_t0A5D09F1F2EB8025FE40EE0F81E0D01BB47A9B44_il2cpp_TypeInfo_var))->get_displays_1(); int32_t L_49 = V_9; NullCheck(L_48); int32_t L_50 = L_49; Display_t0A5D09F1F2EB8025FE40EE0F81E0D01BB47A9B44 * L_51 = (L_48)->GetAt(static_cast<il2cpp_array_size_t>(L_50)); NullCheck(L_51); int32_t L_52 = Display_get_systemWidth_m5FDF4465D7B1A0AD8A1A8C5B314BF71F4C8DCBB5(L_51, /*hidden argument*/NULL); V_20 = (((float)((float)L_52))); DisplayU5BU5D_t3330058639C7A70B7B1FE7B4325E2B5D600CF4A6* L_53 = ((Display_t0A5D09F1F2EB8025FE40EE0F81E0D01BB47A9B44_StaticFields*)il2cpp_codegen_static_fields_for(Display_t0A5D09F1F2EB8025FE40EE0F81E0D01BB47A9B44_il2cpp_TypeInfo_var))->get_displays_1(); int32_t L_54 = V_9; NullCheck(L_53); int32_t L_55 = L_54; Display_t0A5D09F1F2EB8025FE40EE0F81E0D01BB47A9B44 * L_56 = (L_53)->GetAt(static_cast<il2cpp_array_size_t>(L_55)); NullCheck(L_56); int32_t L_57 = Display_get_systemHeight_mA296AFD545D00DF7FEB84E7C690FD56CC2C19D70(L_56, /*hidden argument*/NULL); V_21 = (((float)((float)L_57))); } IL_014c: { Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E L_58 = V_10; float L_59 = L_58.get_x_2(); float L_60 = V_20; Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E L_61 = V_10; float L_62 = L_61.get_y_3(); float L_63 = V_21; Vector2__ctor_m9F1F2D5EB5D1FF7091BB527AC8A72CBB309D115E_inline((Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9 *)(&V_22), ((float)((float)L_59/(float)L_60)), ((float)((float)L_62/(float)L_63)), /*hidden argument*/NULL); Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9 L_64 = V_22; float L_65 = L_64.get_x_0(); if ((((float)L_65) < ((float)(0.0f)))) { goto IL_01a1; } } { Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9 L_66 = V_22; float L_67 = L_66.get_x_0(); if ((((float)L_67) > ((float)(1.0f)))) { goto IL_01a1; } } { Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9 L_68 = V_22; float L_69 = L_68.get_y_1(); if ((((float)L_69) < ((float)(0.0f)))) { goto IL_01a1; } } { Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9 L_70 = V_22; float L_71 = L_70.get_y_1(); G_B31_0 = ((((float)L_71) > ((float)(1.0f)))? 1 : 0); goto IL_01a2; } IL_01a1: { G_B31_0 = 1; } IL_01a2: { V_25 = (bool)G_B31_0; bool L_72 = V_25; if (!L_72) { goto IL_01ad; } } { goto IL_0358; } IL_01ad: { goto IL_01b5; } IL_01b0: { Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E L_73 = V_0; V_10 = L_73; } IL_01b5: { Camera_tC44E094BAB53AFC8A014C6F9CFCE11F4FC38006C * L_74 = V_8; NullCheck(L_74); Rect_t7D9187DB6339DBA5741C09B6CCEF2F54F1966878 L_75 = Camera_get_pixelRect_m58284153875DDE6470D4BDCAF2DFC9F5C9DE3D3A(L_74, /*hidden argument*/NULL); V_11 = L_75; Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E L_76 = V_10; bool L_77 = Rect_Contains_m51C65159B1706EB00CC962D7CD1CEC2EBD85BC3A((Rect_t7D9187DB6339DBA5741C09B6CCEF2F54F1966878 *)(&V_11), L_76, /*hidden argument*/NULL); V_26 = (bool)((((int32_t)L_77) == ((int32_t)0))? 1 : 0); bool L_78 = V_26; if (!L_78) { goto IL_01d5; } } { goto IL_0358; } IL_01d5: { Camera_tC44E094BAB53AFC8A014C6F9CFCE11F4FC38006C * L_79 = V_8; NullCheck(L_79); int32_t L_80 = Camera_get_eventMask_m69507E71D5281F902A304A8BDDE7D23A3C501292(L_79, /*hidden argument*/NULL); V_27 = (bool)((((int32_t)L_80) == ((int32_t)0))? 1 : 0); bool L_81 = V_27; if (!L_81) { goto IL_01ea; } } { goto IL_0358; } IL_01ea: { Camera_tC44E094BAB53AFC8A014C6F9CFCE11F4FC38006C * L_82 = V_8; Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E L_83 = V_10; NullCheck(L_82); Ray_t2E9E67CC8B03EE6ED2BBF3D2C9C96DDF70E1D5E6 L_84 = Camera_ScreenPointToRay_mD385213935A81030EDC604A39FD64761077CFBAB(L_82, L_83, /*hidden argument*/NULL); V_12 = L_84; Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E L_85 = Ray_get_direction_m2B31F86F19B64474A901B28D3808011AE7A13EFC((Ray_t2E9E67CC8B03EE6ED2BBF3D2C9C96DDF70E1D5E6 *)(&V_12), /*hidden argument*/NULL); float L_86 = L_85.get_z_4(); V_13 = L_86; float L_87 = V_13; IL2CPP_RUNTIME_CLASS_INIT(Mathf_t4D4AC358D24F6DDC32EC291DDE1DF2C3B752A194_il2cpp_TypeInfo_var); bool L_88 = Mathf_Approximately_mC2A3F657E3FD0CCAD4A4936CEE2F67D624A2AA55((0.0f), L_87, /*hidden argument*/NULL); if (L_88) { goto IL_022a; } } { Camera_tC44E094BAB53AFC8A014C6F9CFCE11F4FC38006C * L_89 = V_8; NullCheck(L_89); float L_90 = Camera_get_farClipPlane_m0FA1B9E2E815BECE2EA40023302EB942B52D9596(L_89, /*hidden argument*/NULL); Camera_tC44E094BAB53AFC8A014C6F9CFCE11F4FC38006C * L_91 = V_8; NullCheck(L_91); float L_92 = Camera_get_nearClipPlane_m75A7270074A35D95B05F25EBF8CE392ECA6517DC(L_91, /*hidden argument*/NULL); float L_93 = V_13; IL2CPP_RUNTIME_CLASS_INIT(Mathf_t4D4AC358D24F6DDC32EC291DDE1DF2C3B752A194_il2cpp_TypeInfo_var); float L_94 = fabsf(((float)((float)((float)il2cpp_codegen_subtract((float)L_90, (float)L_92))/(float)L_93))); G_B42_0 = L_94; goto IL_022f; } IL_022a: { G_B42_0 = (std::numeric_limits<float>::infinity()); } IL_022f: { V_14 = G_B42_0; Camera_tC44E094BAB53AFC8A014C6F9CFCE11F4FC38006C * L_95 = V_8; Ray_t2E9E67CC8B03EE6ED2BBF3D2C9C96DDF70E1D5E6 L_96 = V_12; float L_97 = V_14; Camera_tC44E094BAB53AFC8A014C6F9CFCE11F4FC38006C * L_98 = V_8; NullCheck(L_98); int32_t L_99 = Camera_get_cullingMask_m63492ED3AFA8F571FBED0B1729264A2E3BB64236(L_98, /*hidden argument*/NULL); Camera_tC44E094BAB53AFC8A014C6F9CFCE11F4FC38006C * L_100 = V_8; NullCheck(L_100); int32_t L_101 = Camera_get_eventMask_m69507E71D5281F902A304A8BDDE7D23A3C501292(L_100, /*hidden argument*/NULL); GameObject_tC000A2E1A7CF1E10FD7BA08863287C072207C319 * L_102 = CameraRaycastHelper_RaycastTry_m8AA2714ED46E79851C77B83A3916C515D7280FD1(L_95, L_96, L_97, ((int32_t)((int32_t)L_99&(int32_t)L_101)), /*hidden argument*/NULL); V_15 = L_102; GameObject_tC000A2E1A7CF1E10FD7BA08863287C072207C319 * L_103 = V_15; IL2CPP_RUNTIME_CLASS_INIT(Object_tF2F3778131EFF286AF62B7B013A170F95A91571A_il2cpp_TypeInfo_var); bool L_104 = Object_op_Inequality_mE1F187520BD83FB7D86A6D850710C4D42B864E90(L_103, (Object_tF2F3778131EFF286AF62B7B013A170F95A91571A *)NULL, /*hidden argument*/NULL); V_28 = L_104; bool L_105 = V_28; if (!L_105) { goto IL_0283; } } { IL2CPP_RUNTIME_CLASS_INIT(SendMouseEvents_tCF069F9DE53C8E51B7AF505FC52F79DB84D81437_il2cpp_TypeInfo_var); HitInfoU5BU5D_t432774AD200329E637288BFACCD210774B7B5231* L_106 = ((SendMouseEvents_tCF069F9DE53C8E51B7AF505FC52F79DB84D81437_StaticFields*)il2cpp_codegen_static_fields_for(SendMouseEvents_tCF069F9DE53C8E51B7AF505FC52F79DB84D81437_il2cpp_TypeInfo_var))->get_m_CurrentHit_3(); NullCheck(L_106); GameObject_tC000A2E1A7CF1E10FD7BA08863287C072207C319 * L_107 = V_15; ((L_106)->GetAddressAt(static_cast<il2cpp_array_size_t>(1)))->set_target_0(L_107); HitInfoU5BU5D_t432774AD200329E637288BFACCD210774B7B5231* L_108 = ((SendMouseEvents_tCF069F9DE53C8E51B7AF505FC52F79DB84D81437_StaticFields*)il2cpp_codegen_static_fields_for(SendMouseEvents_tCF069F9DE53C8E51B7AF505FC52F79DB84D81437_il2cpp_TypeInfo_var))->get_m_CurrentHit_3(); NullCheck(L_108); Camera_tC44E094BAB53AFC8A014C6F9CFCE11F4FC38006C * L_109 = V_8; ((L_108)->GetAddressAt(static_cast<il2cpp_array_size_t>(1)))->set_camera_1(L_109); goto IL_02c4; } IL_0283: { Camera_tC44E094BAB53AFC8A014C6F9CFCE11F4FC38006C * L_110 = V_8; NullCheck(L_110); int32_t L_111 = Camera_get_clearFlags_m7D0E7A0DBAB6A84B680EC09835AA2F081A17E0D7(L_110, /*hidden argument*/NULL); if ((((int32_t)L_111) == ((int32_t)1))) { goto IL_0299; } } { Camera_tC44E094BAB53AFC8A014C6F9CFCE11F4FC38006C * L_112 = V_8; NullCheck(L_112); int32_t L_113 = Camera_get_clearFlags_m7D0E7A0DBAB6A84B680EC09835AA2F081A17E0D7(L_112, /*hidden argument*/NULL); G_B47_0 = ((((int32_t)L_113) == ((int32_t)2))? 1 : 0); goto IL_029a; } IL_0299: { G_B47_0 = 1; } IL_029a: { V_29 = (bool)G_B47_0; bool L_114 = V_29; if (!L_114) { goto IL_02c4; } } { IL2CPP_RUNTIME_CLASS_INIT(SendMouseEvents_tCF069F9DE53C8E51B7AF505FC52F79DB84D81437_il2cpp_TypeInfo_var); HitInfoU5BU5D_t432774AD200329E637288BFACCD210774B7B5231* L_115 = ((SendMouseEvents_tCF069F9DE53C8E51B7AF505FC52F79DB84D81437_StaticFields*)il2cpp_codegen_static_fields_for(SendMouseEvents_tCF069F9DE53C8E51B7AF505FC52F79DB84D81437_il2cpp_TypeInfo_var))->get_m_CurrentHit_3(); NullCheck(L_115); ((L_115)->GetAddressAt(static_cast<il2cpp_array_size_t>(1)))->set_target_0((GameObject_tC000A2E1A7CF1E10FD7BA08863287C072207C319 *)NULL); HitInfoU5BU5D_t432774AD200329E637288BFACCD210774B7B5231* L_116 = ((SendMouseEvents_tCF069F9DE53C8E51B7AF505FC52F79DB84D81437_StaticFields*)il2cpp_codegen_static_fields_for(SendMouseEvents_tCF069F9DE53C8E51B7AF505FC52F79DB84D81437_il2cpp_TypeInfo_var))->get_m_CurrentHit_3(); NullCheck(L_116); ((L_116)->GetAddressAt(static_cast<il2cpp_array_size_t>(1)))->set_camera_1((Camera_tC44E094BAB53AFC8A014C6F9CFCE11F4FC38006C *)NULL); } IL_02c4: { Camera_tC44E094BAB53AFC8A014C6F9CFCE11F4FC38006C * L_117 = V_8; Ray_t2E9E67CC8B03EE6ED2BBF3D2C9C96DDF70E1D5E6 L_118 = V_12; float L_119 = V_14; Camera_tC44E094BAB53AFC8A014C6F9CFCE11F4FC38006C * L_120 = V_8; NullCheck(L_120); int32_t L_121 = Camera_get_cullingMask_m63492ED3AFA8F571FBED0B1729264A2E3BB64236(L_120, /*hidden argument*/NULL); Camera_tC44E094BAB53AFC8A014C6F9CFCE11F4FC38006C * L_122 = V_8; NullCheck(L_122); int32_t L_123 = Camera_get_eventMask_m69507E71D5281F902A304A8BDDE7D23A3C501292(L_122, /*hidden argument*/NULL); GameObject_tC000A2E1A7CF1E10FD7BA08863287C072207C319 * L_124 = CameraRaycastHelper_RaycastTry2D_mAA0B0BAC7BE8A2F640A236BB6655EB47E5408C9D(L_117, L_118, L_119, ((int32_t)((int32_t)L_121&(int32_t)L_123)), /*hidden argument*/NULL); V_16 = L_124; GameObject_tC000A2E1A7CF1E10FD7BA08863287C072207C319 * L_125 = V_16; IL2CPP_RUNTIME_CLASS_INIT(Object_tF2F3778131EFF286AF62B7B013A170F95A91571A_il2cpp_TypeInfo_var); bool L_126 = Object_op_Inequality_mE1F187520BD83FB7D86A6D850710C4D42B864E90(L_125, (Object_tF2F3778131EFF286AF62B7B013A170F95A91571A *)NULL, /*hidden argument*/NULL); V_30 = L_126; bool L_127 = V_30; if (!L_127) { goto IL_0316; } } { IL2CPP_RUNTIME_CLASS_INIT(SendMouseEvents_tCF069F9DE53C8E51B7AF505FC52F79DB84D81437_il2cpp_TypeInfo_var); HitInfoU5BU5D_t432774AD200329E637288BFACCD210774B7B5231* L_128 = ((SendMouseEvents_tCF069F9DE53C8E51B7AF505FC52F79DB84D81437_StaticFields*)il2cpp_codegen_static_fields_for(SendMouseEvents_tCF069F9DE53C8E51B7AF505FC52F79DB84D81437_il2cpp_TypeInfo_var))->get_m_CurrentHit_3(); NullCheck(L_128); GameObject_tC000A2E1A7CF1E10FD7BA08863287C072207C319 * L_129 = V_16; ((L_128)->GetAddressAt(static_cast<il2cpp_array_size_t>(2)))->set_target_0(L_129); HitInfoU5BU5D_t432774AD200329E637288BFACCD210774B7B5231* L_130 = ((SendMouseEvents_tCF069F9DE53C8E51B7AF505FC52F79DB84D81437_StaticFields*)il2cpp_codegen_static_fields_for(SendMouseEvents_tCF069F9DE53C8E51B7AF505FC52F79DB84D81437_il2cpp_TypeInfo_var))->get_m_CurrentHit_3(); NullCheck(L_130); Camera_tC44E094BAB53AFC8A014C6F9CFCE11F4FC38006C * L_131 = V_8; ((L_130)->GetAddressAt(static_cast<il2cpp_array_size_t>(2)))->set_camera_1(L_131); goto IL_0357; } IL_0316: { Camera_tC44E094BAB53AFC8A014C6F9CFCE11F4FC38006C * L_132 = V_8; NullCheck(L_132); int32_t L_133 = Camera_get_clearFlags_m7D0E7A0DBAB6A84B680EC09835AA2F081A17E0D7(L_132, /*hidden argument*/NULL); if ((((int32_t)L_133) == ((int32_t)1))) { goto IL_032c; } } { Camera_tC44E094BAB53AFC8A014C6F9CFCE11F4FC38006C * L_134 = V_8; NullCheck(L_134); int32_t L_135 = Camera_get_clearFlags_m7D0E7A0DBAB6A84B680EC09835AA2F081A17E0D7(L_134, /*hidden argument*/NULL); G_B54_0 = ((((int32_t)L_135) == ((int32_t)2))? 1 : 0); goto IL_032d; } IL_032c: { G_B54_0 = 1; } IL_032d: { V_31 = (bool)G_B54_0; bool L_136 = V_31; if (!L_136) { goto IL_0357; } } { IL2CPP_RUNTIME_CLASS_INIT(SendMouseEvents_tCF069F9DE53C8E51B7AF505FC52F79DB84D81437_il2cpp_TypeInfo_var); HitInfoU5BU5D_t432774AD200329E637288BFACCD210774B7B5231* L_137 = ((SendMouseEvents_tCF069F9DE53C8E51B7AF505FC52F79DB84D81437_StaticFields*)il2cpp_codegen_static_fields_for(SendMouseEvents_tCF069F9DE53C8E51B7AF505FC52F79DB84D81437_il2cpp_TypeInfo_var))->get_m_CurrentHit_3(); NullCheck(L_137); ((L_137)->GetAddressAt(static_cast<il2cpp_array_size_t>(2)))->set_target_0((GameObject_tC000A2E1A7CF1E10FD7BA08863287C072207C319 *)NULL); HitInfoU5BU5D_t432774AD200329E637288BFACCD210774B7B5231* L_138 = ((SendMouseEvents_tCF069F9DE53C8E51B7AF505FC52F79DB84D81437_StaticFields*)il2cpp_codegen_static_fields_for(SendMouseEvents_tCF069F9DE53C8E51B7AF505FC52F79DB84D81437_il2cpp_TypeInfo_var))->get_m_CurrentHit_3(); NullCheck(L_138); ((L_138)->GetAddressAt(static_cast<il2cpp_array_size_t>(2)))->set_camera_1((Camera_tC44E094BAB53AFC8A014C6F9CFCE11F4FC38006C *)NULL); } IL_0357: { } IL_0358: { int32_t L_139 = V_7; V_7 = ((int32_t)il2cpp_codegen_add((int32_t)L_139, (int32_t)1)); } IL_035e: { int32_t L_140 = V_7; CameraU5BU5D_tAF84B9EC9AF40F1B6294BCEBA82A1AD123A9D001* L_141 = V_6; NullCheck(L_141); if ((((int32_t)L_140) < ((int32_t)(((int32_t)((int32_t)(((RuntimeArray*)L_141)->max_length))))))) { goto IL_0089; } } { } IL_036a: { V_32 = 0; goto IL_0389; } IL_036f: { int32_t L_142 = V_32; IL2CPP_RUNTIME_CLASS_INIT(SendMouseEvents_tCF069F9DE53C8E51B7AF505FC52F79DB84D81437_il2cpp_TypeInfo_var); HitInfoU5BU5D_t432774AD200329E637288BFACCD210774B7B5231* L_143 = ((SendMouseEvents_tCF069F9DE53C8E51B7AF505FC52F79DB84D81437_StaticFields*)il2cpp_codegen_static_fields_for(SendMouseEvents_tCF069F9DE53C8E51B7AF505FC52F79DB84D81437_il2cpp_TypeInfo_var))->get_m_CurrentHit_3(); int32_t L_144 = V_32; NullCheck(L_143); int32_t L_145 = L_144; HitInfo_t74B96DDC302EB605CCC557B737A5C88EB67B57D6 L_146 = (L_143)->GetAt(static_cast<il2cpp_array_size_t>(L_145)); SendMouseEvents_SendEvents_m7A59BBFBB15C1BF3E47D56CDD4921599A686F9C7(L_142, L_146, /*hidden argument*/NULL); int32_t L_147 = V_32; V_32 = ((int32_t)il2cpp_codegen_add((int32_t)L_147, (int32_t)1)); } IL_0389: { int32_t L_148 = V_32; IL2CPP_RUNTIME_CLASS_INIT(SendMouseEvents_tCF069F9DE53C8E51B7AF505FC52F79DB84D81437_il2cpp_TypeInfo_var); HitInfoU5BU5D_t432774AD200329E637288BFACCD210774B7B5231* L_149 = ((SendMouseEvents_tCF069F9DE53C8E51B7AF505FC52F79DB84D81437_StaticFields*)il2cpp_codegen_static_fields_for(SendMouseEvents_tCF069F9DE53C8E51B7AF505FC52F79DB84D81437_il2cpp_TypeInfo_var))->get_m_CurrentHit_3(); NullCheck(L_149); V_33 = (bool)((((int32_t)L_148) < ((int32_t)(((int32_t)((int32_t)(((RuntimeArray*)L_149)->max_length))))))? 1 : 0); bool L_150 = V_33; if (L_150) { goto IL_036f; } } { IL2CPP_RUNTIME_CLASS_INIT(SendMouseEvents_tCF069F9DE53C8E51B7AF505FC52F79DB84D81437_il2cpp_TypeInfo_var); ((SendMouseEvents_tCF069F9DE53C8E51B7AF505FC52F79DB84D81437_StaticFields*)il2cpp_codegen_static_fields_for(SendMouseEvents_tCF069F9DE53C8E51B7AF505FC52F79DB84D81437_il2cpp_TypeInfo_var))->set_s_MouseUsed_0((bool)0); return; } } // System.Void UnityEngine.SendMouseEvents::SendEvents(System.Int32,UnityEngine.SendMouseEvents_HitInfo) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SendMouseEvents_SendEvents_m7A59BBFBB15C1BF3E47D56CDD4921599A686F9C7 (int32_t ___i0, HitInfo_t74B96DDC302EB605CCC557B737A5C88EB67B57D6 ___hit1, const RuntimeMethod* method) { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_method (SendMouseEvents_SendEvents_m7A59BBFBB15C1BF3E47D56CDD4921599A686F9C7_MetadataUsageId); s_Il2CppMethodInitialized = true; } bool V_0 = false; bool V_1 = false; bool V_2 = false; bool V_3 = false; bool V_4 = false; bool V_5 = false; bool V_6 = false; bool V_7 = false; bool V_8 = false; bool V_9 = false; bool V_10 = false; bool V_11 = false; { bool L_0 = Input_GetMouseButtonDown_m466D81FDCC87C9CB07557B39DCB435EB691F1EF3(0, /*hidden argument*/NULL); V_0 = L_0; bool L_1 = Input_GetMouseButton_m27BF2DDBF38A38787B83A13D3E6F0F88F7C834C1(0, /*hidden argument*/NULL); V_1 = L_1; bool L_2 = V_0; V_2 = L_2; bool L_3 = V_2; if (!L_3) { goto IL_0049; } } { HitInfo_t74B96DDC302EB605CCC557B737A5C88EB67B57D6 L_4 = ___hit1; bool L_5 = HitInfo_op_Implicit_m8332A3930623A2248D797F3A8020FFF4E05A9420(L_4, /*hidden argument*/NULL); V_3 = L_5; bool L_6 = V_3; if (!L_6) { goto IL_0043; } } { IL2CPP_RUNTIME_CLASS_INIT(SendMouseEvents_tCF069F9DE53C8E51B7AF505FC52F79DB84D81437_il2cpp_TypeInfo_var); HitInfoU5BU5D_t432774AD200329E637288BFACCD210774B7B5231* L_7 = ((SendMouseEvents_tCF069F9DE53C8E51B7AF505FC52F79DB84D81437_StaticFields*)il2cpp_codegen_static_fields_for(SendMouseEvents_tCF069F9DE53C8E51B7AF505FC52F79DB84D81437_il2cpp_TypeInfo_var))->get_m_MouseDownHit_2(); int32_t L_8 = ___i0; HitInfo_t74B96DDC302EB605CCC557B737A5C88EB67B57D6 L_9 = ___hit1; NullCheck(L_7); (L_7)->SetAt(static_cast<il2cpp_array_size_t>(L_8), (HitInfo_t74B96DDC302EB605CCC557B737A5C88EB67B57D6 )L_9); HitInfoU5BU5D_t432774AD200329E637288BFACCD210774B7B5231* L_10 = ((SendMouseEvents_tCF069F9DE53C8E51B7AF505FC52F79DB84D81437_StaticFields*)il2cpp_codegen_static_fields_for(SendMouseEvents_tCF069F9DE53C8E51B7AF505FC52F79DB84D81437_il2cpp_TypeInfo_var))->get_m_MouseDownHit_2(); int32_t L_11 = ___i0; NullCheck(L_10); HitInfo_SendMessage_m2D813691948EAB9CDA487A3B8668678EABFCFA62((HitInfo_t74B96DDC302EB605CCC557B737A5C88EB67B57D6 *)((L_10)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_11))), _stringLiteralE69C6A3A0BD2A9030375061C78273B2EABD411D0, /*hidden argument*/NULL); } IL_0043: { goto IL_00f1; } IL_0049: { bool L_12 = V_1; V_4 = (bool)((((int32_t)L_12) == ((int32_t)0))? 1 : 0); bool L_13 = V_4; if (!L_13) { goto IL_00c3; } } { IL2CPP_RUNTIME_CLASS_INIT(SendMouseEvents_tCF069F9DE53C8E51B7AF505FC52F79DB84D81437_il2cpp_TypeInfo_var); HitInfoU5BU5D_t432774AD200329E637288BFACCD210774B7B5231* L_14 = ((SendMouseEvents_tCF069F9DE53C8E51B7AF505FC52F79DB84D81437_StaticFields*)il2cpp_codegen_static_fields_for(SendMouseEvents_tCF069F9DE53C8E51B7AF505FC52F79DB84D81437_il2cpp_TypeInfo_var))->get_m_MouseDownHit_2(); int32_t L_15 = ___i0; NullCheck(L_14); int32_t L_16 = L_15; HitInfo_t74B96DDC302EB605CCC557B737A5C88EB67B57D6 L_17 = (L_14)->GetAt(static_cast<il2cpp_array_size_t>(L_16)); bool L_18 = HitInfo_op_Implicit_m8332A3930623A2248D797F3A8020FFF4E05A9420(L_17, /*hidden argument*/NULL); V_5 = L_18; bool L_19 = V_5; if (!L_19) { goto IL_00c0; } } { HitInfo_t74B96DDC302EB605CCC557B737A5C88EB67B57D6 L_20 = ___hit1; IL2CPP_RUNTIME_CLASS_INIT(SendMouseEvents_tCF069F9DE53C8E51B7AF505FC52F79DB84D81437_il2cpp_TypeInfo_var); HitInfoU5BU5D_t432774AD200329E637288BFACCD210774B7B5231* L_21 = ((SendMouseEvents_tCF069F9DE53C8E51B7AF505FC52F79DB84D81437_StaticFields*)il2cpp_codegen_static_fields_for(SendMouseEvents_tCF069F9DE53C8E51B7AF505FC52F79DB84D81437_il2cpp_TypeInfo_var))->get_m_MouseDownHit_2(); int32_t L_22 = ___i0; NullCheck(L_21); int32_t L_23 = L_22; HitInfo_t74B96DDC302EB605CCC557B737A5C88EB67B57D6 L_24 = (L_21)->GetAt(static_cast<il2cpp_array_size_t>(L_23)); bool L_25 = HitInfo_Compare_m3AD170E7A52826C73DEF8C3C8F6507C9EAB28363(L_20, L_24, /*hidden argument*/NULL); V_6 = L_25; bool L_26 = V_6; if (!L_26) { goto IL_0098; } } { IL2CPP_RUNTIME_CLASS_INIT(SendMouseEvents_tCF069F9DE53C8E51B7AF505FC52F79DB84D81437_il2cpp_TypeInfo_var); HitInfoU5BU5D_t432774AD200329E637288BFACCD210774B7B5231* L_27 = ((SendMouseEvents_tCF069F9DE53C8E51B7AF505FC52F79DB84D81437_StaticFields*)il2cpp_codegen_static_fields_for(SendMouseEvents_tCF069F9DE53C8E51B7AF505FC52F79DB84D81437_il2cpp_TypeInfo_var))->get_m_MouseDownHit_2(); int32_t L_28 = ___i0; NullCheck(L_27); HitInfo_SendMessage_m2D813691948EAB9CDA487A3B8668678EABFCFA62((HitInfo_t74B96DDC302EB605CCC557B737A5C88EB67B57D6 *)((L_27)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_28))), _stringLiteralD81EFB7B653AC118C2D1B850D9F6D2FFEB225821, /*hidden argument*/NULL); } IL_0098: { IL2CPP_RUNTIME_CLASS_INIT(SendMouseEvents_tCF069F9DE53C8E51B7AF505FC52F79DB84D81437_il2cpp_TypeInfo_var); HitInfoU5BU5D_t432774AD200329E637288BFACCD210774B7B5231* L_29 = ((SendMouseEvents_tCF069F9DE53C8E51B7AF505FC52F79DB84D81437_StaticFields*)il2cpp_codegen_static_fields_for(SendMouseEvents_tCF069F9DE53C8E51B7AF505FC52F79DB84D81437_il2cpp_TypeInfo_var))->get_m_MouseDownHit_2(); int32_t L_30 = ___i0; NullCheck(L_29); HitInfo_SendMessage_m2D813691948EAB9CDA487A3B8668678EABFCFA62((HitInfo_t74B96DDC302EB605CCC557B737A5C88EB67B57D6 *)((L_29)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_30))), _stringLiteralD78A7BBB42C0B3DA05AC02E0AABB5E0765462D84, /*hidden argument*/NULL); HitInfoU5BU5D_t432774AD200329E637288BFACCD210774B7B5231* L_31 = ((SendMouseEvents_tCF069F9DE53C8E51B7AF505FC52F79DB84D81437_StaticFields*)il2cpp_codegen_static_fields_for(SendMouseEvents_tCF069F9DE53C8E51B7AF505FC52F79DB84D81437_il2cpp_TypeInfo_var))->get_m_MouseDownHit_2(); int32_t L_32 = ___i0; NullCheck(L_31); il2cpp_codegen_initobj(((L_31)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_32))), sizeof(HitInfo_t74B96DDC302EB605CCC557B737A5C88EB67B57D6 )); } IL_00c0: { goto IL_00f1; } IL_00c3: { IL2CPP_RUNTIME_CLASS_INIT(SendMouseEvents_tCF069F9DE53C8E51B7AF505FC52F79DB84D81437_il2cpp_TypeInfo_var); HitInfoU5BU5D_t432774AD200329E637288BFACCD210774B7B5231* L_33 = ((SendMouseEvents_tCF069F9DE53C8E51B7AF505FC52F79DB84D81437_StaticFields*)il2cpp_codegen_static_fields_for(SendMouseEvents_tCF069F9DE53C8E51B7AF505FC52F79DB84D81437_il2cpp_TypeInfo_var))->get_m_MouseDownHit_2(); int32_t L_34 = ___i0; NullCheck(L_33); int32_t L_35 = L_34; HitInfo_t74B96DDC302EB605CCC557B737A5C88EB67B57D6 L_36 = (L_33)->GetAt(static_cast<il2cpp_array_size_t>(L_35)); bool L_37 = HitInfo_op_Implicit_m8332A3930623A2248D797F3A8020FFF4E05A9420(L_36, /*hidden argument*/NULL); V_7 = L_37; bool L_38 = V_7; if (!L_38) { goto IL_00f1; } } { IL2CPP_RUNTIME_CLASS_INIT(SendMouseEvents_tCF069F9DE53C8E51B7AF505FC52F79DB84D81437_il2cpp_TypeInfo_var); HitInfoU5BU5D_t432774AD200329E637288BFACCD210774B7B5231* L_39 = ((SendMouseEvents_tCF069F9DE53C8E51B7AF505FC52F79DB84D81437_StaticFields*)il2cpp_codegen_static_fields_for(SendMouseEvents_tCF069F9DE53C8E51B7AF505FC52F79DB84D81437_il2cpp_TypeInfo_var))->get_m_MouseDownHit_2(); int32_t L_40 = ___i0; NullCheck(L_39); HitInfo_SendMessage_m2D813691948EAB9CDA487A3B8668678EABFCFA62((HitInfo_t74B96DDC302EB605CCC557B737A5C88EB67B57D6 *)((L_39)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_40))), _stringLiteral0B3DC20068778C16024297CC44E2C2A73D5B296D, /*hidden argument*/NULL); } IL_00f1: { HitInfo_t74B96DDC302EB605CCC557B737A5C88EB67B57D6 L_41 = ___hit1; IL2CPP_RUNTIME_CLASS_INIT(SendMouseEvents_tCF069F9DE53C8E51B7AF505FC52F79DB84D81437_il2cpp_TypeInfo_var); HitInfoU5BU5D_t432774AD200329E637288BFACCD210774B7B5231* L_42 = ((SendMouseEvents_tCF069F9DE53C8E51B7AF505FC52F79DB84D81437_StaticFields*)il2cpp_codegen_static_fields_for(SendMouseEvents_tCF069F9DE53C8E51B7AF505FC52F79DB84D81437_il2cpp_TypeInfo_var))->get_m_LastHit_1(); int32_t L_43 = ___i0; NullCheck(L_42); int32_t L_44 = L_43; HitInfo_t74B96DDC302EB605CCC557B737A5C88EB67B57D6 L_45 = (L_42)->GetAt(static_cast<il2cpp_array_size_t>(L_44)); bool L_46 = HitInfo_Compare_m3AD170E7A52826C73DEF8C3C8F6507C9EAB28363(L_41, L_45, /*hidden argument*/NULL); V_8 = L_46; bool L_47 = V_8; if (!L_47) { goto IL_0125; } } { HitInfo_t74B96DDC302EB605CCC557B737A5C88EB67B57D6 L_48 = ___hit1; bool L_49 = HitInfo_op_Implicit_m8332A3930623A2248D797F3A8020FFF4E05A9420(L_48, /*hidden argument*/NULL); V_9 = L_49; bool L_50 = V_9; if (!L_50) { goto IL_0122; } } { HitInfo_SendMessage_m2D813691948EAB9CDA487A3B8668678EABFCFA62((HitInfo_t74B96DDC302EB605CCC557B737A5C88EB67B57D6 *)(&___hit1), _stringLiteral3C6F094A63750A8BD369D8A9138F0648FB74B3C4, /*hidden argument*/NULL); } IL_0122: { goto IL_017d; } IL_0125: { IL2CPP_RUNTIME_CLASS_INIT(SendMouseEvents_tCF069F9DE53C8E51B7AF505FC52F79DB84D81437_il2cpp_TypeInfo_var); HitInfoU5BU5D_t432774AD200329E637288BFACCD210774B7B5231* L_51 = ((SendMouseEvents_tCF069F9DE53C8E51B7AF505FC52F79DB84D81437_StaticFields*)il2cpp_codegen_static_fields_for(SendMouseEvents_tCF069F9DE53C8E51B7AF505FC52F79DB84D81437_il2cpp_TypeInfo_var))->get_m_LastHit_1(); int32_t L_52 = ___i0; NullCheck(L_51); int32_t L_53 = L_52; HitInfo_t74B96DDC302EB605CCC557B737A5C88EB67B57D6 L_54 = (L_51)->GetAt(static_cast<il2cpp_array_size_t>(L_53)); bool L_55 = HitInfo_op_Implicit_m8332A3930623A2248D797F3A8020FFF4E05A9420(L_54, /*hidden argument*/NULL); V_10 = L_55; bool L_56 = V_10; if (!L_56) { goto IL_0154; } } { IL2CPP_RUNTIME_CLASS_INIT(SendMouseEvents_tCF069F9DE53C8E51B7AF505FC52F79DB84D81437_il2cpp_TypeInfo_var); HitInfoU5BU5D_t432774AD200329E637288BFACCD210774B7B5231* L_57 = ((SendMouseEvents_tCF069F9DE53C8E51B7AF505FC52F79DB84D81437_StaticFields*)il2cpp_codegen_static_fields_for(SendMouseEvents_tCF069F9DE53C8E51B7AF505FC52F79DB84D81437_il2cpp_TypeInfo_var))->get_m_LastHit_1(); int32_t L_58 = ___i0; NullCheck(L_57); HitInfo_SendMessage_m2D813691948EAB9CDA487A3B8668678EABFCFA62((HitInfo_t74B96DDC302EB605CCC557B737A5C88EB67B57D6 *)((L_57)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_58))), _stringLiteralA2CF8B549405D8D0F26F85E3A40C8B2ABAD0A6AC, /*hidden argument*/NULL); } IL_0154: { HitInfo_t74B96DDC302EB605CCC557B737A5C88EB67B57D6 L_59 = ___hit1; bool L_60 = HitInfo_op_Implicit_m8332A3930623A2248D797F3A8020FFF4E05A9420(L_59, /*hidden argument*/NULL); V_11 = L_60; bool L_61 = V_11; if (!L_61) { goto IL_017c; } } { HitInfo_SendMessage_m2D813691948EAB9CDA487A3B8668678EABFCFA62((HitInfo_t74B96DDC302EB605CCC557B737A5C88EB67B57D6 *)(&___hit1), _stringLiteralE0C5D7D5DD5695D97E4EDCB4705E9F1AF10AF695, /*hidden argument*/NULL); HitInfo_SendMessage_m2D813691948EAB9CDA487A3B8668678EABFCFA62((HitInfo_t74B96DDC302EB605CCC557B737A5C88EB67B57D6 *)(&___hit1), _stringLiteral3C6F094A63750A8BD369D8A9138F0648FB74B3C4, /*hidden argument*/NULL); } IL_017c: { } IL_017d: { IL2CPP_RUNTIME_CLASS_INIT(SendMouseEvents_tCF069F9DE53C8E51B7AF505FC52F79DB84D81437_il2cpp_TypeInfo_var); HitInfoU5BU5D_t432774AD200329E637288BFACCD210774B7B5231* L_62 = ((SendMouseEvents_tCF069F9DE53C8E51B7AF505FC52F79DB84D81437_StaticFields*)il2cpp_codegen_static_fields_for(SendMouseEvents_tCF069F9DE53C8E51B7AF505FC52F79DB84D81437_il2cpp_TypeInfo_var))->get_m_LastHit_1(); int32_t L_63 = ___i0; HitInfo_t74B96DDC302EB605CCC557B737A5C88EB67B57D6 L_64 = ___hit1; NullCheck(L_62); (L_62)->SetAt(static_cast<il2cpp_array_size_t>(L_63), (HitInfo_t74B96DDC302EB605CCC557B737A5C88EB67B57D6 )L_64); return; } } // System.Void UnityEngine.SendMouseEvents::.cctor() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SendMouseEvents__cctor_m6B63654E024F338414361C995EAFEC615743A0E0 (const RuntimeMethod* method) { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_method (SendMouseEvents__cctor_m6B63654E024F338414361C995EAFEC615743A0E0_MetadataUsageId); s_Il2CppMethodInitialized = true; } { ((SendMouseEvents_tCF069F9DE53C8E51B7AF505FC52F79DB84D81437_StaticFields*)il2cpp_codegen_static_fields_for(SendMouseEvents_tCF069F9DE53C8E51B7AF505FC52F79DB84D81437_il2cpp_TypeInfo_var))->set_s_MouseUsed_0((bool)0); HitInfoU5BU5D_t432774AD200329E637288BFACCD210774B7B5231* L_0 = (HitInfoU5BU5D_t432774AD200329E637288BFACCD210774B7B5231*)(HitInfoU5BU5D_t432774AD200329E637288BFACCD210774B7B5231*)SZArrayNew(HitInfoU5BU5D_t432774AD200329E637288BFACCD210774B7B5231_il2cpp_TypeInfo_var, (uint32_t)3); ((SendMouseEvents_tCF069F9DE53C8E51B7AF505FC52F79DB84D81437_StaticFields*)il2cpp_codegen_static_fields_for(SendMouseEvents_tCF069F9DE53C8E51B7AF505FC52F79DB84D81437_il2cpp_TypeInfo_var))->set_m_LastHit_1(L_0); HitInfoU5BU5D_t432774AD200329E637288BFACCD210774B7B5231* L_1 = (HitInfoU5BU5D_t432774AD200329E637288BFACCD210774B7B5231*)(HitInfoU5BU5D_t432774AD200329E637288BFACCD210774B7B5231*)SZArrayNew(HitInfoU5BU5D_t432774AD200329E637288BFACCD210774B7B5231_il2cpp_TypeInfo_var, (uint32_t)3); ((SendMouseEvents_tCF069F9DE53C8E51B7AF505FC52F79DB84D81437_StaticFields*)il2cpp_codegen_static_fields_for(SendMouseEvents_tCF069F9DE53C8E51B7AF505FC52F79DB84D81437_il2cpp_TypeInfo_var))->set_m_MouseDownHit_2(L_1); HitInfoU5BU5D_t432774AD200329E637288BFACCD210774B7B5231* L_2 = (HitInfoU5BU5D_t432774AD200329E637288BFACCD210774B7B5231*)(HitInfoU5BU5D_t432774AD200329E637288BFACCD210774B7B5231*)SZArrayNew(HitInfoU5BU5D_t432774AD200329E637288BFACCD210774B7B5231_il2cpp_TypeInfo_var, (uint32_t)3); ((SendMouseEvents_tCF069F9DE53C8E51B7AF505FC52F79DB84D81437_StaticFields*)il2cpp_codegen_static_fields_for(SendMouseEvents_tCF069F9DE53C8E51B7AF505FC52F79DB84D81437_il2cpp_TypeInfo_var))->set_m_CurrentHit_3(L_2); 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.Int32 UnityEngine.Touch::get_fingerId() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t Touch_get_fingerId_mCED0E66949120E69BFE9294DC0A11A6F9FDBD129 (Touch_tDEFED247540BCFA4AD452F1D37EEF4E09B4ACD8C * __this, const RuntimeMethod* method) { int32_t V_0 = 0; { int32_t L_0 = __this->get_m_FingerId_0(); V_0 = L_0; goto IL_000a; } IL_000a: { int32_t L_1 = V_0; return L_1; } } IL2CPP_EXTERN_C int32_t Touch_get_fingerId_mCED0E66949120E69BFE9294DC0A11A6F9FDBD129_AdjustorThunk (RuntimeObject * __this, const RuntimeMethod* method) { int32_t _offset = 1; Touch_tDEFED247540BCFA4AD452F1D37EEF4E09B4ACD8C * _thisAdjusted = reinterpret_cast<Touch_tDEFED247540BCFA4AD452F1D37EEF4E09B4ACD8C *>(__this + _offset); return Touch_get_fingerId_mCED0E66949120E69BFE9294DC0A11A6F9FDBD129(_thisAdjusted, method); } // UnityEngine.Vector2 UnityEngine.Touch::get_position() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9 Touch_get_position_mE32B04C6DA32A0965C403A31847ED7F1725EA1DE (Touch_tDEFED247540BCFA4AD452F1D37EEF4E09B4ACD8C * __this, const RuntimeMethod* method) { Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9 V_0; memset((&V_0), 0, sizeof(V_0)); { Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9 L_0 = __this->get_m_Position_1(); V_0 = L_0; goto IL_000a; } IL_000a: { Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9 L_1 = V_0; return L_1; } } IL2CPP_EXTERN_C Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9 Touch_get_position_mE32B04C6DA32A0965C403A31847ED7F1725EA1DE_AdjustorThunk (RuntimeObject * __this, const RuntimeMethod* method) { int32_t _offset = 1; Touch_tDEFED247540BCFA4AD452F1D37EEF4E09B4ACD8C * _thisAdjusted = reinterpret_cast<Touch_tDEFED247540BCFA4AD452F1D37EEF4E09B4ACD8C *>(__this + _offset); return Touch_get_position_mE32B04C6DA32A0965C403A31847ED7F1725EA1DE(_thisAdjusted, method); } // UnityEngine.TouchPhase UnityEngine.Touch::get_phase() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t Touch_get_phase_m576EA3F4FE1D12EB85510326AD8EC3C2EB267257 (Touch_tDEFED247540BCFA4AD452F1D37EEF4E09B4ACD8C * __this, const RuntimeMethod* method) { int32_t V_0 = 0; { int32_t L_0 = __this->get_m_Phase_6(); V_0 = L_0; goto IL_000a; } IL_000a: { int32_t L_1 = V_0; return L_1; } } IL2CPP_EXTERN_C int32_t Touch_get_phase_m576EA3F4FE1D12EB85510326AD8EC3C2EB267257_AdjustorThunk (RuntimeObject * __this, const RuntimeMethod* method) { int32_t _offset = 1; Touch_tDEFED247540BCFA4AD452F1D37EEF4E09B4ACD8C * _thisAdjusted = reinterpret_cast<Touch_tDEFED247540BCFA4AD452F1D37EEF4E09B4ACD8C *>(__this + _offset); return Touch_get_phase_m576EA3F4FE1D12EB85510326AD8EC3C2EB267257(_thisAdjusted, method); } // UnityEngine.TouchType UnityEngine.Touch::get_type() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t Touch_get_type_m33FB24B6A53A307E8AC9881ED3B483DD4B44C050 (Touch_tDEFED247540BCFA4AD452F1D37EEF4E09B4ACD8C * __this, const RuntimeMethod* method) { int32_t V_0 = 0; { int32_t L_0 = __this->get_m_Type_7(); V_0 = L_0; goto IL_000a; } IL_000a: { int32_t L_1 = V_0; return L_1; } } IL2CPP_EXTERN_C int32_t Touch_get_type_m33FB24B6A53A307E8AC9881ED3B483DD4B44C050_AdjustorThunk (RuntimeObject * __this, const RuntimeMethod* method) { int32_t _offset = 1; Touch_tDEFED247540BCFA4AD452F1D37EEF4E09B4ACD8C * _thisAdjusted = reinterpret_cast<Touch_tDEFED247540BCFA4AD452F1D37EEF4E09B4ACD8C *>(__this + _offset); return Touch_get_type_m33FB24B6A53A307E8AC9881ED3B483DD4B44C050(_thisAdjusted, method); } #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 #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 #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 // Conversion methods for marshalling of: UnityEngine.SendMouseEvents/HitInfo IL2CPP_EXTERN_C void HitInfo_t74B96DDC302EB605CCC557B737A5C88EB67B57D6_marshal_pinvoke(const HitInfo_t74B96DDC302EB605CCC557B737A5C88EB67B57D6& unmarshaled, HitInfo_t74B96DDC302EB605CCC557B737A5C88EB67B57D6_marshaled_pinvoke& marshaled) { Exception_t* ___target_0Exception = il2cpp_codegen_get_marshal_directive_exception("Cannot marshal field 'target' of type 'HitInfo': Reference type field marshaling is not supported."); IL2CPP_RAISE_MANAGED_EXCEPTION(___target_0Exception, NULL); } IL2CPP_EXTERN_C void HitInfo_t74B96DDC302EB605CCC557B737A5C88EB67B57D6_marshal_pinvoke_back(const HitInfo_t74B96DDC302EB605CCC557B737A5C88EB67B57D6_marshaled_pinvoke& marshaled, HitInfo_t74B96DDC302EB605CCC557B737A5C88EB67B57D6& unmarshaled) { Exception_t* ___target_0Exception = il2cpp_codegen_get_marshal_directive_exception("Cannot marshal field 'target' of type 'HitInfo': Reference type field marshaling is not supported."); IL2CPP_RAISE_MANAGED_EXCEPTION(___target_0Exception, NULL); } // Conversion method for clean up from marshalling of: UnityEngine.SendMouseEvents/HitInfo IL2CPP_EXTERN_C void HitInfo_t74B96DDC302EB605CCC557B737A5C88EB67B57D6_marshal_pinvoke_cleanup(HitInfo_t74B96DDC302EB605CCC557B737A5C88EB67B57D6_marshaled_pinvoke& marshaled) { } // Conversion methods for marshalling of: UnityEngine.SendMouseEvents/HitInfo IL2CPP_EXTERN_C void HitInfo_t74B96DDC302EB605CCC557B737A5C88EB67B57D6_marshal_com(const HitInfo_t74B96DDC302EB605CCC557B737A5C88EB67B57D6& unmarshaled, HitInfo_t74B96DDC302EB605CCC557B737A5C88EB67B57D6_marshaled_com& marshaled) { Exception_t* ___target_0Exception = il2cpp_codegen_get_marshal_directive_exception("Cannot marshal field 'target' of type 'HitInfo': Reference type field marshaling is not supported."); IL2CPP_RAISE_MANAGED_EXCEPTION(___target_0Exception, NULL); } IL2CPP_EXTERN_C void HitInfo_t74B96DDC302EB605CCC557B737A5C88EB67B57D6_marshal_com_back(const HitInfo_t74B96DDC302EB605CCC557B737A5C88EB67B57D6_marshaled_com& marshaled, HitInfo_t74B96DDC302EB605CCC557B737A5C88EB67B57D6& unmarshaled) { Exception_t* ___target_0Exception = il2cpp_codegen_get_marshal_directive_exception("Cannot marshal field 'target' of type 'HitInfo': Reference type field marshaling is not supported."); IL2CPP_RAISE_MANAGED_EXCEPTION(___target_0Exception, NULL); } // Conversion method for clean up from marshalling of: UnityEngine.SendMouseEvents/HitInfo IL2CPP_EXTERN_C void HitInfo_t74B96DDC302EB605CCC557B737A5C88EB67B57D6_marshal_com_cleanup(HitInfo_t74B96DDC302EB605CCC557B737A5C88EB67B57D6_marshaled_com& marshaled) { } // System.Void UnityEngine.SendMouseEvents_HitInfo::SendMessage(System.String) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void HitInfo_SendMessage_m2D813691948EAB9CDA487A3B8668678EABFCFA62 (HitInfo_t74B96DDC302EB605CCC557B737A5C88EB67B57D6 * __this, String_t* ___name0, const RuntimeMethod* method) { { GameObject_tC000A2E1A7CF1E10FD7BA08863287C072207C319 * L_0 = __this->get_target_0(); String_t* L_1 = ___name0; NullCheck(L_0); GameObject_SendMessage_mD49CCADA51268480B585733DD7C6540CCCC6EF5C(L_0, L_1, NULL, 1, /*hidden argument*/NULL); return; } } IL2CPP_EXTERN_C void HitInfo_SendMessage_m2D813691948EAB9CDA487A3B8668678EABFCFA62_AdjustorThunk (RuntimeObject * __this, String_t* ___name0, const RuntimeMethod* method) { int32_t _offset = 1; HitInfo_t74B96DDC302EB605CCC557B737A5C88EB67B57D6 * _thisAdjusted = reinterpret_cast<HitInfo_t74B96DDC302EB605CCC557B737A5C88EB67B57D6 *>(__this + _offset); HitInfo_SendMessage_m2D813691948EAB9CDA487A3B8668678EABFCFA62(_thisAdjusted, ___name0, method); } // System.Boolean UnityEngine.SendMouseEvents_HitInfo::op_Implicit(UnityEngine.SendMouseEvents_HitInfo) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool HitInfo_op_Implicit_m8332A3930623A2248D797F3A8020FFF4E05A9420 (HitInfo_t74B96DDC302EB605CCC557B737A5C88EB67B57D6 ___exists0, const RuntimeMethod* method) { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_method (HitInfo_op_Implicit_m8332A3930623A2248D797F3A8020FFF4E05A9420_MetadataUsageId); s_Il2CppMethodInitialized = true; } bool V_0 = false; int32_t G_B3_0 = 0; { HitInfo_t74B96DDC302EB605CCC557B737A5C88EB67B57D6 L_0 = ___exists0; GameObject_tC000A2E1A7CF1E10FD7BA08863287C072207C319 * L_1 = L_0.get_target_0(); IL2CPP_RUNTIME_CLASS_INIT(Object_tF2F3778131EFF286AF62B7B013A170F95A91571A_il2cpp_TypeInfo_var); bool L_2 = Object_op_Inequality_mE1F187520BD83FB7D86A6D850710C4D42B864E90(L_1, (Object_tF2F3778131EFF286AF62B7B013A170F95A91571A *)NULL, /*hidden argument*/NULL); if (!L_2) { goto IL_001d; } } { HitInfo_t74B96DDC302EB605CCC557B737A5C88EB67B57D6 L_3 = ___exists0; Camera_tC44E094BAB53AFC8A014C6F9CFCE11F4FC38006C * L_4 = L_3.get_camera_1(); IL2CPP_RUNTIME_CLASS_INIT(Object_tF2F3778131EFF286AF62B7B013A170F95A91571A_il2cpp_TypeInfo_var); bool L_5 = Object_op_Inequality_mE1F187520BD83FB7D86A6D850710C4D42B864E90(L_4, (Object_tF2F3778131EFF286AF62B7B013A170F95A91571A *)NULL, /*hidden argument*/NULL); G_B3_0 = ((int32_t)(L_5)); goto IL_001e; } IL_001d: { G_B3_0 = 0; } IL_001e: { V_0 = (bool)G_B3_0; goto IL_0021; } IL_0021: { bool L_6 = V_0; return L_6; } } // System.Boolean UnityEngine.SendMouseEvents_HitInfo::Compare(UnityEngine.SendMouseEvents_HitInfo,UnityEngine.SendMouseEvents_HitInfo) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool HitInfo_Compare_m3AD170E7A52826C73DEF8C3C8F6507C9EAB28363 (HitInfo_t74B96DDC302EB605CCC557B737A5C88EB67B57D6 ___lhs0, HitInfo_t74B96DDC302EB605CCC557B737A5C88EB67B57D6 ___rhs1, const RuntimeMethod* method) { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_method (HitInfo_Compare_m3AD170E7A52826C73DEF8C3C8F6507C9EAB28363_MetadataUsageId); s_Il2CppMethodInitialized = true; } bool V_0 = false; int32_t G_B3_0 = 0; { HitInfo_t74B96DDC302EB605CCC557B737A5C88EB67B57D6 L_0 = ___lhs0; GameObject_tC000A2E1A7CF1E10FD7BA08863287C072207C319 * L_1 = L_0.get_target_0(); HitInfo_t74B96DDC302EB605CCC557B737A5C88EB67B57D6 L_2 = ___rhs1; GameObject_tC000A2E1A7CF1E10FD7BA08863287C072207C319 * L_3 = L_2.get_target_0(); IL2CPP_RUNTIME_CLASS_INIT(Object_tF2F3778131EFF286AF62B7B013A170F95A91571A_il2cpp_TypeInfo_var); bool L_4 = Object_op_Equality_mEE9EC7EB5C7DC3E95B94AB904E1986FC4D566D54(L_1, L_3, /*hidden argument*/NULL); if (!L_4) { goto IL_0027; } } { HitInfo_t74B96DDC302EB605CCC557B737A5C88EB67B57D6 L_5 = ___lhs0; Camera_tC44E094BAB53AFC8A014C6F9CFCE11F4FC38006C * L_6 = L_5.get_camera_1(); HitInfo_t74B96DDC302EB605CCC557B737A5C88EB67B57D6 L_7 = ___rhs1; Camera_tC44E094BAB53AFC8A014C6F9CFCE11F4FC38006C * L_8 = L_7.get_camera_1(); IL2CPP_RUNTIME_CLASS_INIT(Object_tF2F3778131EFF286AF62B7B013A170F95A91571A_il2cpp_TypeInfo_var); bool L_9 = Object_op_Equality_mEE9EC7EB5C7DC3E95B94AB904E1986FC4D566D54(L_6, L_8, /*hidden argument*/NULL); G_B3_0 = ((int32_t)(L_9)); goto IL_0028; } IL_0027: { G_B3_0 = 0; } IL_0028: { V_0 = (bool)G_B3_0; goto IL_002b; } IL_002b: { bool L_10 = V_0; return L_10; } } #ifdef __clang__ #pragma clang diagnostic pop #endif IL2CPP_MANAGED_FORCE_INLINE IL2CPP_METHOD_ATTR void Vector2__ctor_m9F1F2D5EB5D1FF7091BB527AC8A72CBB309D115E_inline (Vector2_tBB32F2736AEC229A7BFBCE18197EC0F6AC7EC2D9 * __this, float ___x0, float ___y1, const RuntimeMethod* method) { { float L_0 = ___x0; __this->set_x_0(L_0); float L_1 = ___y1; __this->set_y_1(L_1); return; } }
[ "58078331+AlmiranteFuchs@users.noreply.github.com" ]
58078331+AlmiranteFuchs@users.noreply.github.com
e214231680d78808886fd17936fdfae4e7109bbd
619c5da0729e38b049b956ab37f7af15ad6b63e7
/practical 4(function overloading)/function_overloading.cpp
4519eca19020db06aeedf7180abbc2deb7900add
[]
no_license
RachitSharma-191927/Assignment-1
eae1d852962b2231d7c14a896a2f9a36eedddfa3
e5c7a84f2417a22b35ce0bfa276f8f7b5efc79f1
refs/heads/main
2023-05-08T01:21:31.156967
2021-05-29T13:56:25
2021-05-29T13:56:25
343,523,575
0
0
null
null
null
null
UTF-8
C++
false
false
562
cpp
#include<iostream> #include<cmath> float power(float n,float m) { float a; a=pow(n,m); return a; } float power(float n) { float b; b=pow(n,2.0); return b; } void display(float a) { std::cout<<"\nThe required result is :"<<a; } int main() { float exponent,base; float a,b; std::cout<<"\nEnter the base for the power "; std::cin>>base; std::cout<<"\nEnter the Exponent for the power "; std::cin>>exponent; a=power(base,exponent); display(a); b=power(base); display(b); return 0; }
[ "rachitsharmarashr@gmail.com" ]
rachitsharmarashr@gmail.com
8ddde8345d3f79363c7678b61774d18ccd0838ec
39ab815dfdbab9628ede8ec3b4aedb5da3fd456a
/aql/benchmark/lib_37/class_1.cpp
3d7850043a8a9a694fe15730ff73fb66f123af5a
[ "MIT" ]
permissive
menify/sandbox
c03b1bf24c1527b47eb473f1acc433f17bfb1d4f
32166c71044f0d5b414335b2b6559adc571f568c
refs/heads/master
2016-09-05T21:46:53.369065
2015-04-20T06:35:27
2015-04-20T06:35:27
25,891,580
0
0
null
null
null
null
UTF-8
C++
false
false
311
cpp
#include "class_1.h" #include "class_1.h" #include "class_4.h" #include "class_0.h" #include "class_9.h" #include "class_3.h" #include <lib_19/class_8.h> #include <lib_33/class_3.h> #include <lib_24/class_2.h> #include <lib_9/class_7.h> #include <lib_14/class_5.h> class_1::class_1() {} class_1::~class_1() {}
[ "menify@a28edc5c-ec3e-0410-a3da-1b30b3a8704b" ]
menify@a28edc5c-ec3e-0410-a3da-1b30b3a8704b
9e1af3883b96dd8aae5aec4dd2fd53fbc76cecca
ad1fde10f5960a810eb92c7db888907b426b5f24
/src/glcontext.h
7a16fc906087176d05902ccc484d7ea9cb498b49
[]
no_license
wjlgryx/node-webgl
0859f5e48567d8ee66a2dc529cf7eeba6a4c7207
3f138238153044d38b1c2af717bc71dea6e848b5
refs/heads/master
2021-01-15T17:56:20.244046
2010-09-21T01:39:03
2010-09-21T01:39:03
null
0
0
null
null
null
null
UTF-8
C++
false
false
13,654
h
#include <SDL/SDL_opengl.h> #include <v8.h> #include <node.h> #include <node_events.h> #include "typedarray.h" #include "image.h" using namespace v8; using namespace node; class GLContext : public ObjectWrap { public: static void Initialize (Handle<Object> target) { HandleScope scope; Local<FunctionTemplate> t = FunctionTemplate::New(New); constructor_template = Persistent<FunctionTemplate>::New(t); t->InstanceTemplate()->SetInternalFieldCount(1); // Constants Handle<ObjectTemplate> proto = t->PrototypeTemplate(); SetConstant(proto, "DEPTH_BUFFER_BIT", 0x00000100); SetConstant(proto, "STENCIL_BUFFER_BIT", 0x00000400); SetConstant(proto, "COLOR_BUFFER_BIT", 0x00004000); SetConstant(proto, "POINTS", 0x0000); SetConstant(proto, "LINES", 0x0001); SetConstant(proto, "LINE_LOOP", 0x0002); SetConstant(proto, "LINE_STRIP", 0x0003); SetConstant(proto, "TRIANGLES", 0x0004); SetConstant(proto, "TRIANGLE_STRIP", 0x0005); SetConstant(proto, "TRIANGLE_FAN", 0x0006); SetConstant(proto, "ARRAY_BUFFER", 0x8892); SetConstant(proto, "ELEMENT_ARRAY_BUFFER", 0x8893); SetConstant(proto, "ARRAY_BUFFER_BINDING", 0x8894); SetConstant(proto, "ELEMENT_ARRAY_BUFFER_BINDING", 0x8895); SetConstant(proto, "STREAM_DRAW", 0x88E0); SetConstant(proto, "STATIC_DRAW", 0x88E4); SetConstant(proto, "DYNAMIC_DRAW", 0x88E8); SetConstant(proto, "FRONT", 0x0404); SetConstant(proto, "BACK", 0x0405); SetConstant(proto, "FRONT_AND_BACK", 0x0408); SetConstant(proto, "BYTE", 0x1400); SetConstant(proto, "UNSIGNED_BYTE", 0x1401); SetConstant(proto, "SHORT", 0x1402); SetConstant(proto, "UNSIGNED_SHORT", 0x1403); SetConstant(proto, "INT", 0x1404); SetConstant(proto, "UNSIGNED_INT", 0x1405); SetConstant(proto, "FLOAT", 0x1406); SetConstant(proto, "FRAGMENT_SHADER", 0x8B30); SetConstant(proto, "VERTEX_SHADER", 0x8B31); SetConstant(proto, "NEAREST", 0x2600); SetConstant(proto, "LINEAR", 0x2601); SetConstant(proto, "TEXTURE_MAG_FILTER", 0x2800); SetConstant(proto, "TEXTURE_MIN_FILTER", 0x2801); SetConstant(proto, "TEXTURE_WRAP_S", 0x2802); SetConstant(proto, "TEXTURE_WRAP_T", 0x2803); SetConstant(proto, "TEXTURE_2D", 0x0DE1); SetConstant(proto, "TEXTURE", 0x1702); SetConstant(proto, "REPEAT", 0x2901); SetConstant(proto, "CLAMP_TO_EDGE", 0x812F); SetConstant(proto, "MIRRORED_REPEAT", 0x8370); // Methods NODE_SET_PROTOTYPE_METHOD(t, "viewport", Viewport); NODE_SET_PROTOTYPE_METHOD(t, "createBuffer", CreateBuffer); NODE_SET_PROTOTYPE_METHOD(t, "bindBuffer", BindBuffer); NODE_SET_PROTOTYPE_METHOD(t, "bufferData", BufferData); NODE_SET_PROTOTYPE_METHOD(t, "vertexAttribPointer", VertexAttribPointer); NODE_SET_PROTOTYPE_METHOD(t, "getAttribLocation", GetAttribLocation); NODE_SET_PROTOTYPE_METHOD(t, "bindAttribLocation", BindAttribLocation); NODE_SET_PROTOTYPE_METHOD(t, "enableVertexAttribArray", EnableVertexAttribArray); NODE_SET_PROTOTYPE_METHOD(t, "getUniformLocation", GetUniformLocation); NODE_SET_PROTOTYPE_METHOD(t, "uniform1i", Uniform1i); NODE_SET_PROTOTYPE_METHOD(t, "uniformMatrix4fv", UniformMatrix4fv); NODE_SET_PROTOTYPE_METHOD(t, "texParameterf", TexParameterf); NODE_SET_PROTOTYPE_METHOD(t, "texParameteri", TexParameteri); NODE_SET_PROTOTYPE_METHOD(t, "createShader", CreateShader); NODE_SET_PROTOTYPE_METHOD(t, "attachShader", AttachShader); NODE_SET_PROTOTYPE_METHOD(t, "shaderSource", ShaderSource); NODE_SET_PROTOTYPE_METHOD(t, "compileShader", CompileShader); NODE_SET_PROTOTYPE_METHOD(t, "createProgram", CreateProgram); NODE_SET_PROTOTYPE_METHOD(t, "linkProgram", LinkProgram); NODE_SET_PROTOTYPE_METHOD(t, "useProgram", UseProgram); NODE_SET_PROTOTYPE_METHOD(t, "clearColor", ClearColor); NODE_SET_PROTOTYPE_METHOD(t, "clear", Clear); NODE_SET_PROTOTYPE_METHOD(t, "blendFunc", BlendFunc); NODE_SET_PROTOTYPE_METHOD(t, "enable", Enable); NODE_SET_PROTOTYPE_METHOD(t, "drawArrays", DrawArrays); NODE_SET_PROTOTYPE_METHOD(t, "createTexture", CreateTexture); NODE_SET_PROTOTYPE_METHOD(t, "bindTexture", BindTexture); NODE_SET_PROTOTYPE_METHOD(t, "texImage2D", TexImage2D); NODE_SET_PROTOTYPE_METHOD(t, "activeTexture", ActiveTexture); NODE_SET_PROTOTYPE_METHOD(t, "swapBuffers", SwapBuffers); target->Set(String::NewSymbol("GLContext"), t->GetFunction()); } static Handle<Object> NewInstance () { return constructor_template->GetFunction()->NewInstance(); } protected: static Handle<Value> New (const Arguments& args) { HandleScope scope; GLContext *context = new GLContext(); context->Wrap(args.This()); return args.This(); } static Handle<Value> Viewport (const Arguments& args) { HandleScope scope; GLint x = args[0]->IntegerValue(); GLint y = args[1]->IntegerValue(); GLsizei width = args[2]->IntegerValue(); GLsizei height = args[3]->IntegerValue(); glViewport(x, y, width, height); return Undefined(); } static Handle<Value> CreateBuffer (const Arguments& args) { HandleScope scope; GLuint o; glGenBuffers(1, &o); return scope.Close(Integer::New(o)); } static Handle<Value> BindBuffer (const Arguments& args) { HandleScope scope; GLenum target = args[0]->Uint32Value(); GLuint buffer = args[1]->Uint32Value(); glBindBuffer(target, buffer); return Undefined(); } static Handle<Value> BufferData (const Arguments& args) { HandleScope scope; Float32Array *fa = Unwrap<Float32Array>(args[1]->ToObject()); GLenum target = args[0]->Uint32Value(); GLsizei size = fa->Length(); const GLvoid* data = fa->GetData(); GLenum usage = args[2]->Uint32Value(); glBufferData(target, size, data, usage); return Undefined(); } static Handle<Value> VertexAttribPointer (const Arguments& args) { HandleScope scope; GLuint index = args[0]->Uint32Value(); GLint size = args[1]->IntegerValue(); GLenum type = args[2]->Uint32Value(); GLboolean normalized = args[3]->BooleanValue(); GLsizei stride = args[4]->IntegerValue(); const GLvoid *offset = reinterpret_cast<void*>(static_cast<intptr_t>(args[5]->Uint32Value())); glVertexAttribPointer(index, size, type, normalized, stride, offset); return Undefined(); } static Handle<Value> GetAttribLocation (const Arguments& args) { HandleScope scope; GLuint program = args[0]->Uint32Value(); String::Utf8Value name_s(args[1]->ToString()); const GLchar *name = *name_s; GLint location = glGetAttribLocation(program, name); return scope.Close(Integer::New(location)); } static Handle<Value> BindAttribLocation (const Arguments& args) { HandleScope scope; GLuint program = args[0]->Uint32Value(); GLuint index = args[1]->Uint32Value(); String::Utf8Value name_s(args[2]->ToString()); const GLchar *name = *name_s; glBindAttribLocation(program, index, name); return Undefined(); } static Handle<Value> EnableVertexAttribArray (const Arguments &args) { HandleScope scope; GLuint index = args[0]->Uint32Value(); glEnableVertexAttribArray(index); return Undefined(); } static Handle<Value> GetUniformLocation (const Arguments& args) { HandleScope scope; GLuint program = args[0]->Uint32Value(); String::Utf8Value name_s(args[1]->ToString()); const GLchar *name = *name_s; glGetUniformLocation(program, name); return Undefined(); } static Handle<Value> Uniform1i (const Arguments &args) { HandleScope scope; GLint location = args[0]->IntegerValue(); GLint v0 = args[1]->IntegerValue(); glUniform1i(location, v0); return Undefined(); } static Handle<Value> UniformMatrix4fv (const Arguments &args) { HandleScope scope; Float32Array *fa = Unwrap<Float32Array>(args[2]->ToObject()); GLint location = args[0]->IntegerValue(); GLsizei count = fa->Length() / sizeof(float); GLboolean transpose = args[1]->BooleanValue(); const GLfloat *value = (float *)fa->GetData(); glUniformMatrix4fv(location, count, transpose, value); return Undefined(); } static Handle<Value> TexParameterf (const Arguments& args) { HandleScope scope; GLenum target = args[0]->Uint32Value(); GLenum pname = args[0]->Uint32Value(); GLfloat param = args[2]->NumberValue(); glTexParameterf(target, pname, param); return Undefined(); } static Handle<Value> TexParameteri (const Arguments& args) { HandleScope scope; GLenum target = args[0]->Uint32Value(); GLenum pname = args[0]->Uint32Value(); GLint param = args[2]->Int32Value(); glTexParameteri(target, pname, param); return Undefined(); } static Handle<Value> CreateShader (const Arguments& args) { HandleScope scope; GLenum type = args[0]->Uint32Value(); GLuint shader = glCreateShader(type); return scope.Close(Integer::New(shader)); } static Handle<Value> AttachShader (const Arguments& args) { HandleScope scope; GLuint program = args[0]->Uint32Value(); GLuint shader = args[1]->Uint32Value(); glAttachShader(program, shader); return Undefined(); } static Handle<Value> ShaderSource (const Arguments& args) { HandleScope scope; GLuint shader = args[0]->Uint32Value(); String::Utf8Value source_s(args[1]->ToString()); const GLchar *source = *source_s; GLint length = source_s.length(); glShaderSource(shader, 1, &source, &length); return Undefined(); } static Handle<Value> CompileShader (const Arguments& args) { HandleScope scope; GLuint shader = args[0]->Uint32Value(); glCompileShader(shader); return Undefined(); } static Handle<Value> CreateProgram (const Arguments& args) { HandleScope scope; GLuint program = glCreateProgram(); return scope.Close(Integer::New(program)); } static Handle<Value> LinkProgram (const Arguments& args) { HandleScope scope; GLuint shader = args[0]->Uint32Value(); glLinkProgram(shader); return Undefined(); } static Handle<Value> UseProgram (const Arguments& args) { HandleScope scope; GLuint shader = args[0]->Uint32Value(); glUseProgram(shader); return Undefined(); } static Handle<Value> ClearColor (const Arguments& args) { HandleScope scope; GLclampf r = args[0]->NumberValue(); GLclampf g = args[1]->NumberValue(); GLclampf b = args[2]->NumberValue(); GLclampf a = args[3]->NumberValue(); glClearColor(r, g, b, a); return Undefined(); } static Handle<Value> BlendFunc (const Arguments& args) { HandleScope scope; GLenum sfactor = args[0]->Uint32Value(); GLenum dfactor = args[0]->Uint32Value(); glBlendFunc(sfactor, dfactor); return Undefined(); } static Handle<Value> Enable (const Arguments& args) { HandleScope scope; GLenum cap = args[0]->Uint32Value(); glEnable(cap); return Undefined(); } static Handle<Value> Clear (const Arguments& args) { HandleScope scope; GLbitfield mask = args[0]->Int32Value(); glClear(mask); return Undefined(); } static Handle<Value> DrawArrays (const Arguments& args) { HandleScope scope; GLenum mode = args[0]->Uint32Value(); GLint first = args[1]->Int32Value(); GLsizei count = args[2]->IntegerValue(); glDrawArrays(mode, first, count); return Undefined(); } static Handle<Value> CreateTexture (const Arguments& args) { HandleScope scope; GLuint o; glGenTextures(1, &o); return scope.Close(Integer::New(o)); } static Handle<Value> BindTexture (const Arguments& args) { HandleScope scope; GLenum target = args[0]->Uint32Value(); GLuint texture = args[1]->Uint32Value(); glBindTexture(target, texture); return Undefined(); } static Handle<Value> ActiveTexture (const Arguments& args) { HandleScope scope; GLenum texture = args[0]->Uint32Value(); glActiveTexture(texture); return Undefined(); } static Handle<Value> TexImage2D (const Arguments& args) { HandleScope scope; GLenum target = args[0]->Uint32Value(); GLint level = args[1]->IntegerValue(); Image *image = Unwrap<Image>(args[2]->ToObject()); GLboolean flipY = args[3]->BooleanValue(); if(flipY) { image->FlipVertically(); } glTexImage2D(target, level, image->GetBPP(), image->GetWidth(), image->GetHeight(), 0, image->GetFormat(), GL_UNSIGNED_BYTE, image->GetData()); // We have to glGenerateMipmapEXT(GL_TEXTURE_2D); return Undefined(); } static Handle<Value> SwapBuffers (const Arguments& args) { HandleScope scope; SDL_GL_SwapBuffers(); return Undefined(); } static void SetConstant (Handle<ObjectTemplate> proto, const char *string, unsigned long value) { proto->Set(String::New(string), Integer::New(value), ReadOnly); } private: static Persistent<FunctionTemplate> constructor_template; }; Persistent<FunctionTemplate> GLContext::constructor_template;
[ "brian@brianmckenna.org" ]
brian@brianmckenna.org
d8a3058ef1afb3d708688642bcfd2d019dfda22d
25799d6c9d90e2b3bf8cc40877c3a9171ec6ca8c
/arduino/libraries/ros_lib/wfov_camera_msgs/WFOVImage.h
19d6b5a930551d07698df54c0732f102f8c255be
[ "MIT" ]
permissive
i-am-neet/ir-auto-recharge
92370fabcd0af0efa5cc3499a04d586463d1557f
9b95d5e9ac89f4dc43a3cc070de219f44ab53ae6
refs/heads/master
2020-09-13T22:56:06.577803
2019-11-26T16:13:42
2019-11-26T16:13:42
222,930,706
1
1
null
null
null
null
UTF-8
C++
false
false
6,235
h
#ifndef _ROS_wfov_camera_msgs_WFOVImage_h #define _ROS_wfov_camera_msgs_WFOVImage_h #include <stdint.h> #include <string.h> #include <stdlib.h> #include "ros/msg.h" #include "std_msgs/Header.h" #include "sensor_msgs/Image.h" #include "sensor_msgs/CameraInfo.h" namespace wfov_camera_msgs { class WFOVImage : public ros::Msg { public: typedef std_msgs::Header _header_type; _header_type header; typedef const char* _time_reference_type; _time_reference_type time_reference; typedef sensor_msgs::Image _image_type; _image_type image; typedef sensor_msgs::CameraInfo _info_type; _info_type info; typedef float _shutter_type; _shutter_type shutter; typedef float _gain_type; _gain_type gain; typedef uint16_t _white_balance_blue_type; _white_balance_blue_type white_balance_blue; typedef uint16_t _white_balance_red_type; _white_balance_red_type white_balance_red; typedef float _temperature_type; _temperature_type temperature; WFOVImage(): header(), time_reference(""), image(), info(), shutter(0), gain(0), white_balance_blue(0), white_balance_red(0), temperature(0) { } virtual int serialize(unsigned char *outbuffer) const { int offset = 0; offset += this->header.serialize(outbuffer + offset); uint32_t length_time_reference = strlen(this->time_reference); varToArr(outbuffer + offset, length_time_reference); offset += 4; memcpy(outbuffer + offset, this->time_reference, length_time_reference); offset += length_time_reference; offset += this->image.serialize(outbuffer + offset); offset += this->info.serialize(outbuffer + offset); union { float real; uint32_t base; } u_shutter; u_shutter.real = this->shutter; *(outbuffer + offset + 0) = (u_shutter.base >> (8 * 0)) & 0xFF; *(outbuffer + offset + 1) = (u_shutter.base >> (8 * 1)) & 0xFF; *(outbuffer + offset + 2) = (u_shutter.base >> (8 * 2)) & 0xFF; *(outbuffer + offset + 3) = (u_shutter.base >> (8 * 3)) & 0xFF; offset += sizeof(this->shutter); union { float real; uint32_t base; } u_gain; u_gain.real = this->gain; *(outbuffer + offset + 0) = (u_gain.base >> (8 * 0)) & 0xFF; *(outbuffer + offset + 1) = (u_gain.base >> (8 * 1)) & 0xFF; *(outbuffer + offset + 2) = (u_gain.base >> (8 * 2)) & 0xFF; *(outbuffer + offset + 3) = (u_gain.base >> (8 * 3)) & 0xFF; offset += sizeof(this->gain); *(outbuffer + offset + 0) = (this->white_balance_blue >> (8 * 0)) & 0xFF; *(outbuffer + offset + 1) = (this->white_balance_blue >> (8 * 1)) & 0xFF; offset += sizeof(this->white_balance_blue); *(outbuffer + offset + 0) = (this->white_balance_red >> (8 * 0)) & 0xFF; *(outbuffer + offset + 1) = (this->white_balance_red >> (8 * 1)) & 0xFF; offset += sizeof(this->white_balance_red); union { float real; uint32_t base; } u_temperature; u_temperature.real = this->temperature; *(outbuffer + offset + 0) = (u_temperature.base >> (8 * 0)) & 0xFF; *(outbuffer + offset + 1) = (u_temperature.base >> (8 * 1)) & 0xFF; *(outbuffer + offset + 2) = (u_temperature.base >> (8 * 2)) & 0xFF; *(outbuffer + offset + 3) = (u_temperature.base >> (8 * 3)) & 0xFF; offset += sizeof(this->temperature); return offset; } virtual int deserialize(unsigned char *inbuffer) { int offset = 0; offset += this->header.deserialize(inbuffer + offset); uint32_t length_time_reference; arrToVar(length_time_reference, (inbuffer + offset)); offset += 4; for(unsigned int k= offset; k< offset+length_time_reference; ++k){ inbuffer[k-1]=inbuffer[k]; } inbuffer[offset+length_time_reference-1]=0; this->time_reference = (char *)(inbuffer + offset-1); offset += length_time_reference; offset += this->image.deserialize(inbuffer + offset); offset += this->info.deserialize(inbuffer + offset); union { float real; uint32_t base; } u_shutter; u_shutter.base = 0; u_shutter.base |= ((uint32_t) (*(inbuffer + offset + 0))) << (8 * 0); u_shutter.base |= ((uint32_t) (*(inbuffer + offset + 1))) << (8 * 1); u_shutter.base |= ((uint32_t) (*(inbuffer + offset + 2))) << (8 * 2); u_shutter.base |= ((uint32_t) (*(inbuffer + offset + 3))) << (8 * 3); this->shutter = u_shutter.real; offset += sizeof(this->shutter); union { float real; uint32_t base; } u_gain; u_gain.base = 0; u_gain.base |= ((uint32_t) (*(inbuffer + offset + 0))) << (8 * 0); u_gain.base |= ((uint32_t) (*(inbuffer + offset + 1))) << (8 * 1); u_gain.base |= ((uint32_t) (*(inbuffer + offset + 2))) << (8 * 2); u_gain.base |= ((uint32_t) (*(inbuffer + offset + 3))) << (8 * 3); this->gain = u_gain.real; offset += sizeof(this->gain); this->white_balance_blue = ((uint16_t) (*(inbuffer + offset))); this->white_balance_blue |= ((uint16_t) (*(inbuffer + offset + 1))) << (8 * 1); offset += sizeof(this->white_balance_blue); this->white_balance_red = ((uint16_t) (*(inbuffer + offset))); this->white_balance_red |= ((uint16_t) (*(inbuffer + offset + 1))) << (8 * 1); offset += sizeof(this->white_balance_red); union { float real; uint32_t base; } u_temperature; u_temperature.base = 0; u_temperature.base |= ((uint32_t) (*(inbuffer + offset + 0))) << (8 * 0); u_temperature.base |= ((uint32_t) (*(inbuffer + offset + 1))) << (8 * 1); u_temperature.base |= ((uint32_t) (*(inbuffer + offset + 2))) << (8 * 2); u_temperature.base |= ((uint32_t) (*(inbuffer + offset + 3))) << (8 * 3); this->temperature = u_temperature.real; offset += sizeof(this->temperature); return offset; } const char * getType(){ return "wfov_camera_msgs/WFOVImage"; }; const char * getMD5(){ return "807d0db423ab5e1561cfeba09a10bc88"; }; }; } #endif
[ "iclab@tku.com" ]
iclab@tku.com
f4d6eb8fc45955a65a89f062bd1e52a366331803
fb9302f1435585c6e146fcc61c23e350fc650c07
/tests/gf_test.cc
4c9c214362a582d7da918e8dd3eff745fc952e3a
[ "0BSD" ]
permissive
aicodix/code
cdd03463d394f66ebd61b6f31f0775a98794345a
47b520638b71c596460089a80a435449fa0435c1
refs/heads/master
2023-08-16T19:21:44.952336
2023-07-25T09:50:53
2023-07-25T09:50:53
149,567,710
34
10
null
null
null
null
UTF-8
C++
false
false
1,871
cc
/* Test for the Galois field arithmetic Copyright 2018 Ahmet Inan <inan@aicodix.de> */ #include <cassert> #include <iostream> #include "galois_field.hh" template <typename GF, typename GFR> void exhaustive_test() { for (int j = 0; j < GF::Q; ++j) { typename GF::ValueType a(j); for (int i = 0; i < GF::Q; ++i) { typename GF::ValueType b(i); assert((a * b).v == (GFR(j) * GFR(i)).v); } } for (int i = 1; i < GF::Q; ++i) { typename GF::ValueType a(i); assert(rcp(a).v == rcp(GFR(i)).v); } } int main() { if (1) { // BBC WHP031 RS(15, 11) T=2 typedef CODE::GaloisField<4, 0b10011, uint8_t> GF; typedef CODE::GaloisFieldReference<4, 0b10011, uint8_t> GFR; GF instance; GF::ValueType a(3), b(7), c(15), d(6); assert(a * b + c == d); exhaustive_test<GF, GFR>(); } if (1) { // DVB-T RS(255, 239) T=8 typedef CODE::GaloisField<8, 0b100011101, uint8_t> GF; typedef CODE::GaloisFieldReference<8, 0b100011101, uint8_t> GFR; GF instance; GF::ValueType a(154), b(83), c(144), d(63); assert(fma(a, b, c) == d); exhaustive_test<GF, GFR>(); } if (1) { // FUN RS(65535, 65471) T=32 typedef CODE::GaloisField<16, 0b10001000000001011, uint16_t> GF; typedef CODE::GaloisFieldReference<16, 0b10001000000001011, uint16_t> GFR; GF *instance = new GF(); GF::ValueType a(42145), b(13346), c(40958), d(35941); assert(a / b + c == d); exhaustive_test<GF, GFR>(); delete instance; } if (1) { // DVB-S2 FULL BCH(65535, 65343) T=12 typedef CODE::GaloisField<16, 0b10000000000101101, uint16_t> GF; typedef CODE::GaloisFieldReference<16, 0b10000000000101101, uint16_t> GFR; GF *instance = new GF(); GF::ValueType a(38532), b(7932), c(34283), d(22281); assert(a / (rcp(b) + c) == d); exhaustive_test<GF, GFR>(); delete instance; } std::cerr << "Galois field arithmetic test passed!" << std::endl; return 0; }
[ "inan@aicodix.de" ]
inan@aicodix.de
5fa983da9685ca153220d1a99687e03d6399925a
2f4d181ec20f4137f231e2d12c75e854cc7d7755
/Source/MyProjectkk/Public/MyActor_Lasse.h
c53ac4a65fe18923f5fc3637e8f8143f246a1499
[]
no_license
laslauk/basic_rpg_exercise_UE4
530372efbbdce8335f98a2a940783d216ccdc35f
f652670b68c9515bd764dc99685a331e032d7fc2
refs/heads/master
2021-05-20T19:06:31.799335
2020-04-02T07:28:02
2020-04-02T07:28:02
252,383,824
0
0
null
null
null
null
UTF-8
C++
false
false
533
h
// Fill out your copyright notice in the Description page of Project Settings. #pragma once #include "CoreMinimal.h" #include "GameFramework/Actor.h" #include "MyActor_Lasse.generated.h" UCLASS() class MYPROJECTKK_API AMyActor_Lasse : public AActor { GENERATED_BODY() public: // Sets default values for this actor's properties AMyActor_Lasse(); protected: // Called when the game starts or when spawned virtual void BeginPlay() override; public: // Called every frame virtual void Tick(float DeltaTime) override; };
[ "larpatin@gmail.com" ]
larpatin@gmail.com
d9076b4adcf443cface72770b23919b3d91d4806
3b8643a1588e92256e605b08f0a4991566fda12b
/16. stack/challenges/stack_span.cpp
6ce1ff677f3dfa440d660dc2c165312d70817d6c
[]
no_license
aditya34608/coding_blocks
d63236457b525d548a5cee16c4f90e96a55e32f6
9d22e3dd3c644639563e868f68762a5f7a75a343
refs/heads/master
2022-11-12T19:05:36.427865
2020-07-07T10:10:24
2020-07-07T10:10:24
253,659,950
0
0
null
null
null
null
UTF-8
C++
false
false
1,676
cpp
/* The stock span problem is a financial problem where we have a series of N daily price quotes for a stock and we need to calculate span of stock’s price for all N days. You are given an array of length N, where ith element of array denotes the price of a stock on ith. Find the span of stock's price on ith day, for every 1<=i<=N. A span of a stock's price on a given day, i, is the maximum number of consecutive days before the (i+1)th day, for which stock's price on these days is less than or equal to that on the ith day. Input Format First line contains integer N denoting size of the array. Next line contains N space separated integers denoting the elements of the array. Constraints 1 <= N <= 10^6 Output Format Display the array containing stock span values. Sample Input 5 30 35 40 38 35 Sample Output 1 2 3 1 1 END Explanation For the given case for day1 stock span =1 for day2 stock span =2 (as 35>30 so both days are included in it) for day3 stock span =3 (as 40>35 so 2+1=3) for day4 stock span =1 (as 38<40 so only that day is included) for day5 stock span =1 (as 35<38 so only that day is included) hence output is 1 2 3 1 1 END */ #include<bits/stdc++.h> using namespace std; void printSpan(int a[], int n){ stack<int> s; int ans[n]= {0}; for(int day = 0 ; day < n ; day++){ while( !s.empty() && a[s.top()] < a[day]){ s.pop(); } ans[day] = s.empty()?day+1:day-s.top(); s.push(day); } for(int i=0 ; i< n ;i++){ cout << ans[i] << " "; } cout << "END" << "\n"; } int main(){ int n; cin >> n; int a[n]; for(int i=0 ; i< n; i++){ cin >> a[i]; } if (n>0){ printSpan(a,n); } return 0; }
[ "38347787+aditya34608@users.noreply.github.com" ]
38347787+aditya34608@users.noreply.github.com
4ad92f7b5a3b40fe641d4423e13237328a93d532
e37df9d2c4c8466b24f2bb75388c25342d419a72
/test/test_szconv.cpp
d54bf48a00515a363069aadee928b1c49aaa79e7
[ "MIT", "BSL-1.0" ]
permissive
biojppm/c4core
55f941ffec344df2ef24275ee332c036b3560fac
1d2920fc208a4e27dec9416bdb38cf830ba64edc
refs/heads/master
2023-08-30T09:02:53.446066
2023-06-30T19:25:25
2023-06-30T19:25:25
126,163,502
85
41
MIT
2023-09-05T18:51:56
2018-03-21T10:41:11
C++
UTF-8
C++
false
false
6,293
cpp
#ifndef C4CORE_SINGLE_HEADER #include "c4/szconv.hpp" #endif #include "c4/libtest/supprwarn_push.hpp" #include "c4/test.hpp" #define C4_EXPECT_NARROWER(yes_or_no, ty_out, ty_in) \ CHECK_UNARY(( yes_or_no (is_narrower_size<ty_out C4_COMMA ty_in>::value))); namespace c4 { TEST_CASE("is_narrower_size.signed_types") { C4_EXPECT_NARROWER( ! , int8_t , int8_t ); C4_EXPECT_NARROWER( , int8_t , int16_t); C4_EXPECT_NARROWER( , int8_t , int32_t); C4_EXPECT_NARROWER( , int8_t , int64_t); C4_EXPECT_NARROWER( , int8_t , uint8_t ); C4_EXPECT_NARROWER( , int8_t , uint16_t); C4_EXPECT_NARROWER( , int8_t , uint32_t); C4_EXPECT_NARROWER( , int8_t , uint64_t); C4_EXPECT_NARROWER( ! , int16_t , int8_t ); C4_EXPECT_NARROWER( ! , int16_t , int16_t); C4_EXPECT_NARROWER( , int16_t , int32_t); C4_EXPECT_NARROWER( , int16_t , int64_t); C4_EXPECT_NARROWER( ! , int16_t , uint8_t ); C4_EXPECT_NARROWER( , int16_t , uint16_t); C4_EXPECT_NARROWER( , int16_t , uint32_t); C4_EXPECT_NARROWER( , int16_t , uint64_t); C4_EXPECT_NARROWER( ! , int32_t , int8_t ); C4_EXPECT_NARROWER( ! , int32_t , int16_t); C4_EXPECT_NARROWER( ! , int32_t , int32_t); C4_EXPECT_NARROWER( , int32_t , int64_t); C4_EXPECT_NARROWER( ! , int32_t , uint8_t ); C4_EXPECT_NARROWER( ! , int32_t , uint16_t); C4_EXPECT_NARROWER( , int32_t , uint32_t); C4_EXPECT_NARROWER( , int32_t , uint64_t); C4_EXPECT_NARROWER( ! , int64_t , int8_t ); C4_EXPECT_NARROWER( ! , int64_t , int16_t); C4_EXPECT_NARROWER( ! , int64_t , int32_t); C4_EXPECT_NARROWER( ! , int64_t , int64_t); C4_EXPECT_NARROWER( ! , int64_t , uint8_t ); C4_EXPECT_NARROWER( ! , int64_t , uint16_t); C4_EXPECT_NARROWER( ! , int64_t , uint32_t); C4_EXPECT_NARROWER( , int64_t , uint64_t); } TEST_CASE("is_narrower_size.unsigned_types") { C4_EXPECT_NARROWER( ! , uint8_t , int8_t ); C4_EXPECT_NARROWER( , uint8_t , int16_t); C4_EXPECT_NARROWER( , uint8_t , int32_t); C4_EXPECT_NARROWER( , uint8_t , int64_t); C4_EXPECT_NARROWER( ! , uint8_t , uint8_t ); C4_EXPECT_NARROWER( , uint8_t , uint16_t); C4_EXPECT_NARROWER( , uint8_t , uint32_t); C4_EXPECT_NARROWER( , uint8_t , uint64_t); C4_EXPECT_NARROWER( ! , uint16_t , int8_t ); C4_EXPECT_NARROWER( ! , uint16_t , int16_t); C4_EXPECT_NARROWER( , uint16_t , int32_t); C4_EXPECT_NARROWER( , uint16_t , int64_t); C4_EXPECT_NARROWER( ! , uint16_t , uint8_t ); C4_EXPECT_NARROWER( ! , uint16_t , uint16_t); C4_EXPECT_NARROWER( , uint16_t , uint32_t); C4_EXPECT_NARROWER( , uint16_t , uint64_t); C4_EXPECT_NARROWER( ! , uint32_t , int8_t ); C4_EXPECT_NARROWER( ! , uint32_t , int16_t); C4_EXPECT_NARROWER( ! , uint32_t , int32_t); C4_EXPECT_NARROWER( , uint32_t , int64_t); C4_EXPECT_NARROWER( ! , uint32_t , uint8_t ); C4_EXPECT_NARROWER( ! , uint32_t , uint16_t); C4_EXPECT_NARROWER( ! , uint32_t , uint32_t); C4_EXPECT_NARROWER( , uint32_t , uint64_t); C4_EXPECT_NARROWER( ! , uint64_t , int8_t ); C4_EXPECT_NARROWER( ! , uint64_t , int16_t); C4_EXPECT_NARROWER( ! , uint64_t , int32_t); C4_EXPECT_NARROWER( ! , uint64_t , int64_t); C4_EXPECT_NARROWER( ! , uint64_t , uint8_t ); C4_EXPECT_NARROWER( ! , uint64_t , uint16_t); C4_EXPECT_NARROWER( ! , uint64_t , uint32_t); C4_EXPECT_NARROWER( ! , uint64_t , uint64_t); } template<typename I, typename O> typename std::enable_if<std::is_same<I, O>::value, void>::type test_szconv() { // nothing to do here } template<typename I, typename O> typename std::enable_if< ! std::is_same<I, O>::value, void>::type test_szconv() { C4_STATIC_ASSERT(std::is_integral<I>::value); C4_STATIC_ASSERT(std::is_integral<O>::value); const I imax = std::numeric_limits<I>::max(); const I imin = std::numeric_limits<I>::min(); const O omax = std::numeric_limits<O>::max(); const O omin = std::numeric_limits<O>::min(); CHECK_EQ(szconv<O>(I(0)), O(0)); CHECK_EQ(szconv<I>(I(0)), I(0)); #if C4_USE_XASSERT if((uint64_t)omax < (uint64_t)imax) { C4_EXPECT_ERROR_OCCURS(); O out = szconv<O>(imax); } else if((uint64_t)omax > (uint64_t)imax) { C4_EXPECT_ERROR_OCCURS(); I out = szconv<I>(omax); } #endif } #define DO_TEST_SZCONV(ty) \ TEST_CASE("szconv." #ty "_to_int8") \ { \ test_szconv<ty##_t, int8_t>(); \ } \ TEST_CASE("zconv." #ty "_to_uint8") \ { \ test_szconv<ty##_t, uint8_t>(); \ } \ TEST_CASE("zconv." #ty "_to_int16") \ { \ test_szconv<ty##_t, int16_t>(); \ } \ TEST_CASE("zconv." #ty "_to_uint16") \ { \ test_szconv<ty##_t, uint16_t>(); \ } \ TEST_CASE("zconv." #ty "_to_int32") \ { \ test_szconv<ty##_t, int32_t>(); \ } \ TEST_CASE("zconv." #ty "_to_uint32") \ { \ test_szconv<ty##_t, uint32_t>(); \ } \ TEST_CASE("zconv." #ty "_to_int64") \ { \ test_szconv<ty##_t, int64_t>(); \ } \ TEST_CASE("szconv." #ty "_to_uint64") \ { \ test_szconv<ty##_t, uint64_t>(); \ } DO_TEST_SZCONV(int8) DO_TEST_SZCONV(uint8) DO_TEST_SZCONV(int16) DO_TEST_SZCONV(uint16) DO_TEST_SZCONV(int32) DO_TEST_SZCONV(uint32) DO_TEST_SZCONV(int64) DO_TEST_SZCONV(uint64) } // namespace c4 #include "c4/libtest/supprwarn_pop.hpp"
[ "dev@jpmag.me" ]
dev@jpmag.me
229651e3a7a3b232bcdc564bd85a5907368e47a4
fae468b07542a6b923109a60efbb93835b55a14a
/UVaOJ/game-card/12247.cpp
cbbfd52195398f504461bae283a4108e8bb6f1a5
[]
no_license
arbtfnf/codechef
0b7625e5f2257169011bf4d7bb2dbe28800fde36
a5447044157e0a0a2b7e0678dc7157f534fba9b8
refs/heads/master
2020-04-10T19:30:12.131826
2018-12-10T21:15:06
2018-12-10T21:15:06
161,237,381
0
0
null
null
null
null
UTF-8
C++
false
false
1,525
cpp
#include <bits/stdc++.h> using namespace std; int main() { long long int fix,i,test,insrt,X,Y,ar[6],count,ans; cin >> test; while(test--){ count=0; for(i=0; i<3;i++){ cin >> ar[i]; } sort(ar,ar+3); cin >> ar[i] >> ar[i+1]; X=ar[i]; Y=ar[i+1]; ar[5] = 100; if(X>ar[1] && Y>ar[1]){ sort(ar,ar+6); fix = ar[2] - ar[1]; if(fix){ for(i=1;i<5;i++){ ans = ar[1]+i; if(ans != ar[2]) if(ans != ar[3]) if(ans != ar[4]) break; } } else ans = ar[1]+1; count = 1; } sort(ar,ar+5); if((ar[4] ==X && ar[3] == Y) || (ar[3] ==X && ar[4] == Y)){ if(ar[0] == 1){ for(i=0;i<5;i++){ ans = ar[i]+1; if(ans != ar[i+1]) break; } } else ans = 1; count = 1;} if(((X==ar[0] || X==ar[1]) && Y==ar[4] || ((Y==ar[0] || Y==ar[1]) && X==ar[4])) && count == 0){ if(ar[4] != ar[3]+1) ans=ar[3]+1; else ans=ar[4]+1; count = 1; } ar[5] = ans; sort(ar,ar+6); if(ar[5] > 52 || ar[4]>52){ count = 0; } if(count != 1) cout << -1 << endl; else cout << ans << endl; } return 0; }
[ "anuragbandhu007@gmail.com" ]
anuragbandhu007@gmail.com
9975189a9dd8f73c83fa5f53da6ae7335115a547
b42a774e667e97076195f7da026d709411d52b26
/day17_is_sorted_and_is_sorted_until.h
5c4d0648be347a023a314cd89bfece193268355b
[ "MIT" ]
permissive
KuKuXia/30-Days-Plan-for-Practicing-C-Plus-Plus-11-STL
5efa9b5d8a24d637622145e6b038751af2caae26
dddb1f3f6b43b628b87dcb26b72495e5c7d19e55
refs/heads/master
2020-04-10T15:12:37.263427
2019-01-05T14:25:32
2019-01-05T14:25:32
161,101,067
0
0
null
null
null
null
UTF-8
C++
false
false
343
h
// // Created by LongXiaJun on 2018/12/23 0023. // #ifndef INC_30_DAY_S_PLAN_DAY17_IS_SORTED_AND_IS_SORTED_UNTIL_H #define INC_30_DAY_S_PLAN_DAY17_IS_SORTED_AND_IS_SORTED_UNTIL_H namespace demo_is_sorted_and_is_sorted_until { void stl_is_sorted_and_is_sorted_until(); }; #endif //INC_30_DAY_S_PLAN_DAY17_IS_SORTED_AND_IS_SORTED_UNTIL_H
[ "liuxiaolongsdu@mail.sdu.edu.cn" ]
liuxiaolongsdu@mail.sdu.edu.cn
99c088083d44e9e68d5218046cf1b4b8430c76b3
c314097153ab7921679acb1a13b921a8578ccf8a
/test/worker_test.cpp
f451728102a77665cdb8c4080d28a9ad3bb913fc
[ "MIT" ]
permissive
blockspacer/nodenative
5d6b9b576462566b48d86a0cc6d127143e2e5238
cf988c9399e0793b1b8c29a8ffd09e910d1a0cb3
refs/heads/master
2022-07-19T09:10:57.366051
2020-05-27T21:58:16
2020-05-27T21:58:16
null
0
0
null
null
null
null
UTF-8
C++
false
false
8,705
cpp
#include "native/native.hpp" #include "gtest/gtest.h" #include <thread> TEST(WorkerTest, simple) { bool called = false; std::shared_ptr<native::Loop> currLoop = native::Loop::Create(); std::thread::id mainThreadId = std::this_thread::get_id(); { native::worker(currLoop, [&called, &mainThreadId]() { called = true; std::thread::id currThreadId = std::this_thread::get_id(); EXPECT_NE(mainThreadId, currThreadId); }); } NNATIVE_INFO("Destructed"); // At this point the worker callback may be called already currLoop->run(); EXPECT_EQ(called, true); } TEST(WorkerTest, DefaultLoop) { bool called = false; bool called2 = false; std::shared_ptr<native::Loop> currLoop = native::Loop::Create(); std::thread::id mainThreadId = std::this_thread::get_id(); { native::worker([&called, &mainThreadId]() { called = true; std::thread::id currThreadId = std::this_thread::get_id(); EXPECT_NE(mainThreadId, currThreadId); }).then([&called, &called2, &mainThreadId]() { EXPECT_EQ(called, true); called2 = true; std::thread::id currThreadId = std::this_thread::get_id(); EXPECT_EQ(mainThreadId, currThreadId); }); } // At this point the worker callback may be called already native::run(); EXPECT_EQ(called, true); EXPECT_EQ(called2, true); } TEST(WorkerTest, DefaultLoopInOtherThread) { bool called = false; std::shared_ptr<native::Loop> currLoop = native::Loop::Create(); { native::worker([&called]() { called = true; EXPECT_ANY_THROW(native::worker([]() {})); }); } // At this point the worker may be called native::run(); EXPECT_EQ(called, true); } TEST(WorkerTest, ReturnValue) { bool called = false; bool called2 = false; int expectedValue = 1; std::shared_ptr<native::Loop> currLoop = native::Loop::Create(); std::thread::id mainThreadId = std::this_thread::get_id(); { native::worker(currLoop, [&called, &mainThreadId, &expectedValue]() -> int { called = true; std::thread::id currThreadId = std::this_thread::get_id(); EXPECT_NE(mainThreadId, currThreadId); return expectedValue; }).then([&called, &called2, &mainThreadId, &expectedValue](int iValue) { EXPECT_EQ(called, true); called2 = true; std::thread::id currThreadId = std::this_thread::get_id(); EXPECT_EQ(mainThreadId, currThreadId); EXPECT_EQ(expectedValue, iValue); EXPECT_NE(&expectedValue, &iValue); }); } // At this point the worker callback may be called already currLoop->run(); EXPECT_EQ(called, true); EXPECT_EQ(called2, true); } TEST(WorkerTest, ReturnValueRef) { bool called = false; bool called2 = false; int expectedValue = 1; std::shared_ptr<native::Loop> currLoop = native::Loop::Create(); std::thread::id mainThreadId = std::this_thread::get_id(); { native::worker(currLoop, [&called, &mainThreadId, &expectedValue]() -> int & { called = true; std::thread::id currThreadId = std::this_thread::get_id(); EXPECT_NE(mainThreadId, currThreadId); return expectedValue; }).then([&called, &called2, &mainThreadId, &expectedValue](int &iValue) { EXPECT_EQ(called, true); called2 = true; std::thread::id currThreadId = std::this_thread::get_id(); EXPECT_EQ(mainThreadId, currThreadId); EXPECT_EQ(expectedValue, iValue); EXPECT_EQ(&expectedValue, &iValue); }); } // At this point the worker callback may be called already currLoop->run(); EXPECT_EQ(called, true); EXPECT_EQ(called2, true); } TEST(WorkerTest, ReturnFutureVoid) { bool called = false; bool called2 = false; bool called3 = false; std::shared_ptr<native::Loop> currLoop = native::Loop::Create(); std::thread::id mainThreadId = std::this_thread::get_id(); { native::worker([&called, &called3, &mainThreadId, currLoop]() -> native::Future<void> { // std::cout << "!!! Inside the worker start\n"; // TODO: fix the future for multithread native::Future<void> future = native::async(currLoop, [&called, &called3, &mainThreadId]() { called3 = true; std::thread::id currThreadId = std::this_thread::get_id(); EXPECT_EQ(mainThreadId, currThreadId); std::cout << "!!! Future inside the worker\n"; }); called = true; std::thread::id currThreadId = std::this_thread::get_id(); EXPECT_NE(mainThreadId, currThreadId); // std::cout << "!!! Inside the worker\n"; return future; }).then([&called, &called2, &called3, &mainThreadId]() { std::cout << "!!! Inside the then\n"; EXPECT_EQ(called, true); EXPECT_EQ(called3, true); called2 = true; std::thread::id currThreadId = std::this_thread::get_id(); EXPECT_EQ(mainThreadId, currThreadId); }); } // At this point the worker callback may be called already currLoop->run(); EXPECT_EQ(called, true); EXPECT_EQ(called2, true); EXPECT_EQ(called3, true); } TEST(WorkerTest, ReturnFutureValue) { bool called = false; bool called2 = false; bool called3 = false; int expectedValue = 1; std::shared_ptr<native::Loop> currLoop = native::Loop::Create(); std::thread::id mainThreadId = std::this_thread::get_id(); { native::worker(currLoop, [&called, &called3, &expectedValue, &mainThreadId, currLoop]() -> native::Future<int> { native::Future<int> future = native::async(currLoop, [&called, &called3, expectedValue, &mainThreadId]() -> int { called3 = true; std::thread::id currThreadId = std::this_thread::get_id(); EXPECT_EQ(mainThreadId, currThreadId); std::cout << "!!! Inside the async worker\n"; return expectedValue; }); called = true; std::thread::id currThreadId = std::this_thread::get_id(); EXPECT_NE(mainThreadId, currThreadId); return future; }).then([&called, &called2, &called3, &mainThreadId, &expectedValue](int iValue) { EXPECT_EQ(called, true); EXPECT_EQ(called3, true); called2 = true; std::thread::id currThreadId = std::this_thread::get_id(); EXPECT_EQ(mainThreadId, currThreadId); EXPECT_EQ(expectedValue, iValue); EXPECT_NE(&expectedValue, &iValue); std::cout << "!!! Inside the then\n"; }); } // At this point the worker callback may be called already currLoop->run(); EXPECT_EQ(called, true); // TODO: Finish the possibility to call the waiter after the future object is resolved EXPECT_EQ(called2, true); EXPECT_EQ(called3, true); } TEST(WorkerTest, ReturnFutureVoidError) { bool called = false; bool called2 = false; bool called3 = false; bool called4 = false; native::FutureError expectedError("ErrorTest1"); std::shared_ptr<native::Loop> currLoop = native::Loop::Create(); std::thread::id mainThreadId = std::this_thread::get_id(); { native::worker(currLoop, [&called, &called3, &mainThreadId, &expectedError, currLoop]() -> native::Future<void> { native::Future<void> future = native::async(currLoop, [&called, &called3, &mainThreadId, &expectedError]() { std::chrono::milliseconds time(100); std::this_thread::sleep_for(time); called3 = true; std::thread::id currThreadId = std::this_thread::get_id(); EXPECT_EQ(mainThreadId, currThreadId); // Error? throw expectedError; }); called = true; std::thread::id currThreadId = std::this_thread::get_id(); EXPECT_NE(mainThreadId, currThreadId); return future; }) .then([&called2]() { // This will not be called called2 = true; EXPECT_EQ(0, 1); }) .error( [&called, &called2, &called3, &called4, &mainThreadId, expectedError](const native::FutureError &iError) { EXPECT_EQ(called, true); EXPECT_EQ(called2, false); EXPECT_EQ(called3, true); called4 = true; std::thread::id currThreadId = std::this_thread::get_id(); EXPECT_EQ(mainThreadId, currThreadId); EXPECT_EQ(expectedError.message(), iError.message()); }); } // At this point the worker callback may be called already currLoop->run(); EXPECT_EQ(called, true); EXPECT_EQ(called2, false); EXPECT_EQ(called3, true); EXPECT_EQ(called4, true); }
[ "ionlupascu@gmail.com" ]
ionlupascu@gmail.com
4b8a0db76f7e01d4be6ffa83a6c16066d1a2734b
055188c4700702db3f9e04bbc382ce792caf8679
/src/util/src/hrpc_uid.cpp
9edab42ef02e4da5b9a656027933fb1502dcc81d
[]
no_license
qq911712051/Hrpc
a2a6d32fe9a9377e2d26102128cb4eb5557d381e
1b1ffa3cf9173e5fde16c3d193df6b4566d38055
refs/heads/master
2020-05-01T14:47:07.744389
2019-05-12T08:58:41
2019-05-12T08:58:41
177,529,628
10
1
null
null
null
null
UTF-8
C++
false
false
739
cpp
#include <cassert> #include <hrpc_uid.h> namespace Hrpc { void UidGenarator::init(int maxConn) { if (maxConn < 0) { _MaxUid = 1024; } else { _MaxUid = maxConn; } std::lock_guard<std::mutex> sync(_lock); for (size_t index = 1; index <= _MaxUid; index++) { _list.push_back(index); } } int UidGenarator::popUid() { std::lock_guard<std::mutex> sync(_lock); if (!_list.empty()) { int tmp = _list.front(); _list.pop_front(); return tmp; } else { return -1; } } void UidGenarator::pushUid(int uid) { assert(uid > 0 && uid <= _MaxUid); std::lock_guard<std::mutex> sync(_lock); _list.push_back(uid); } }
[ "yqz8888888@gmail.com" ]
yqz8888888@gmail.com
ad9d98e4f40b188d94d83e47b06d8087ee66bbe3
d84a7017da6be87b4a1c28608cf01cbb56e64c42
/JetsonNano/Onboard/codegen/lib/colourSegmentationCPU/applyToMultipleDims.h
48621767db6457e5c02e2a4eaa237d1be07fed5f
[]
no_license
AIGRIP/AIGRIP2020HT
dfed02bca6abcf5e5f8e3ee877188250230979d7
b51b046f3b756bf6f6641993d6613b1c68eeb709
refs/heads/Development
2023-02-21T19:39:13.859432
2021-01-17T17:08:20
2021-01-17T17:08:20
307,370,873
0
0
null
2021-01-17T19:33:43
2020-10-26T12:50:56
C
UTF-8
C++
false
false
712
h
// // Academic License - for use in teaching, academic research, and meeting // course requirements at degree granting institutions only. Not for // government, commercial, or other organizational use. // File: applyToMultipleDims.h // // MATLAB Coder version : 5.1 // C/C++ source code generated on : 06-Nov-2020 12:01:09 // #ifndef APPLYTOMULTIPLEDIMS_H #define APPLYTOMULTIPLEDIMS_H // Include Files #include "rtwtypes.h" #include "omp.h" #include <cstddef> #include <cstdlib> // Function Declarations namespace coder { namespace internal { void applyToMultipleDims(const bool x[23409], double varargout_1[9]); } } #endif // // File trailer for applyToMultipleDims.h // // [EOF] //
[ "samuel_wikstrom@hotmail.com" ]
samuel_wikstrom@hotmail.com
64b744a2201af887ae3598eb668401904968b1b1
2834f98b53d78bafc9f765344ded24cf41ffebb0
/ui/ozone/platform/wayland/test/test_subsurface.h
4f984a5eccda8b353073c9f556c43ae64034aa4b
[ "BSD-3-Clause" ]
permissive
cea56/chromium
81bffdf706df8b356c2e821c1a299f9d4bd4c620
013d244f2a747275da76758d2e6240f88c0165dd
refs/heads/master
2023-01-11T05:44:41.185820
2019-12-09T04:14:16
2019-12-09T04:14:16
226,785,888
1
0
BSD-3-Clause
2019-12-09T04:40:07
2019-12-09T04:40:07
null
UTF-8
C++
false
false
1,174
h
// Copyright 2019 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef UI_OZONE_PLATFORM_WAYLAND_TEST_TEST_SUBSURFACE_H_ #define UI_OZONE_PLATFORM_WAYLAND_TEST_TEST_SUBSURFACE_H_ #include <wayland-server-protocol-core.h> #include <memory> #include <utility> #include "testing/gmock/include/gmock/gmock.h" #include "ui/gfx/geometry/point.h" #include "ui/ozone/platform/wayland/test/server_object.h" struct wl_resource; namespace wl { extern const struct wl_subsurface_interface kTestSubSurfaceImpl; class TestSubSurface : public ServerObject { public: explicit TestSubSurface(wl_resource* resource); ~TestSubSurface() override; TestSubSurface(const TestSubSurface& rhs) = delete; TestSubSurface& operator=(const TestSubSurface& rhs) = delete; void SetPosition(int x, int y); gfx::Point position() const { return position_; } void set_sync(bool sync) { sync_ = sync; } bool sync() const { return sync_; } private: gfx::Point position_; bool sync_ = false; }; } // namespace wl #endif // UI_OZONE_PLATFORM_WAYLAND_TEST_TEST_SUBSURFACE_H_
[ "commit-bot@chromium.org" ]
commit-bot@chromium.org
40f2995481a89df5d3540a5087c7b2e8bff6837f
0efb71923c02367a1194a9b47779e8def49a7b9f
/Oblig1/les/0.97/U
7e022169b16956e3efeee5a1c94b78e68ad43eb0
[]
no_license
andergsv/blandet
bbff505e8663c7547b5412700f51e3f42f088d78
f648b164ea066c918e297001a8049dd5e6f786f9
refs/heads/master
2021-01-17T13:23:44.372215
2016-06-14T21:32:00
2016-06-14T21:32:00
41,495,450
0
0
null
null
null
null
UTF-8
C++
false
false
193,006
/*--------------------------------*- C++ -*----------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: 2.4.0 | | \\ / A nd | Web: www.OpenFOAM.org | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format ascii; class volVectorField; location "0.97"; object U; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // dimensions [0 1 -1 0 0 0 0]; internalField nonuniform List<vector> 8800 ( (8.09209 0.387722 0) (5.4488 0.242622 0) (3.91115 0.0427646 0) (3.15232 -0.0155434 0) (2.81092 -0.0186721 0) (2.58222 -0.00915339 0) (2.50095 -0.00810645 0) (2.36821 -0.00247313 0) (2.33354 0.00175942 0) (2.23209 -0.00416485 0) (2.24158 0.000523647 0) (2.14415 0.00210318 0) (2.17299 -0.00360283 0) (2.07632 0.0030045 0) (2.10797 0.00102506 0) (2.00983 -0.00336961 0) (2.05226 0.00361467 0) (1.90643 0.00304782 0) (2.01702 0.0049148 0) (1.65987 -0.0752986 0) (10.0963 0.837918 0) (9.64631 0.869987 0) (8.88101 0.506279 0) (8.06224 0.259802 0) (7.52593 0.137478 0) (6.95657 0.0868379 0) (6.76744 0.0476309 0) (6.33599 0.0407313 0) (6.28412 0.0391659 0) (5.97468 0.0133022 0) (5.98081 0.0220807 0) (5.71643 0.0230198 0) (5.81116 0.00527341 0) (5.49814 0.0225252 0) (5.66605 0.0180396 0) (5.34128 0.00397596 0) (5.50826 0.0313771 0) (5.13262 0.0145338 0) (5.42947 0.0231885 0) (4.86598 -0.0541663 0) (10.097 0.630206 0) (10.6289 0.868332 0) (10.8959 0.600474 0) (10.6387 0.36955 0) (10.528 0.256766 0) (9.98039 0.200459 0) (9.97206 0.143078 0) (9.37968 0.126912 0) (9.41386 0.106412 0) (8.96744 0.0599095 0) (8.99792 0.0669256 0) (8.60055 0.0556007 0) (8.79229 0.0317615 0) (8.26853 0.0500147 0) (8.59928 0.0423636 0) (8.0817 0.0204266 0) (8.35295 0.0662582 0) (7.8491 0.0372142 0) (8.22171 0.0325852 0) (7.57036 -0.0530327 0) (10.0869 0.454891 0) (10.498 0.714005 0) (11.2313 0.545772 0) (11.2408 0.342634 0) (11.6947 0.268701 0) (11.2817 0.229726 0) (11.6739 0.181202 0) (11.1564 0.18879 0) (11.4147 0.157156 0) (11.0131 0.105646 0) (11.165 0.122696 0) (10.7254 0.090817 0) (11.0761 0.0705833 0) (10.4273 0.0890043 0) (10.8927 0.067351 0) (10.3266 0.0523159 0) (10.6157 0.0928063 0) (10.1128 0.0783339 0) (10.5224 0.0360187 0) (9.79386 0.0718318 0) (10.1967 0.340087 0) (10.2999 0.582438 0) (11.1877 0.469371 0) (11.0814 0.274778 0) (11.8018 0.214531 0) (11.4976 0.199914 0) (12.0445 0.141298 0) (11.723 0.198518 0) (12.0903 0.150766 0) (11.8492 0.107785 0) (12.1411 0.142126 0) (11.7379 0.0923694 0) (12.2729 0.0792834 0) (11.682 0.119095 0) (12.1624 0.0619624 0) (11.8141 0.085921 0) (12.0324 0.111943 0) (11.6602 0.0954329 0) (12.1005 0.0407004 0) (11.4742 0.144187 0) (10.0902 0.237576 0) (10.286 0.465444 0) (11.0014 0.404582 0) (11.0718 0.241992 0) (11.481 0.14984 0) (11.537 0.164191 0) (11.8645 0.0854949 0) (11.8422 0.178107 0) (12.0015 0.121562 0) (11.9932 0.0789138 0) (12.2532 0.158621 0) (11.9864 0.067657 0) (12.3865 0.0632935 0) (12.2155 0.136359 0) (12.2962 0.0274925 0) (12.4582 0.062694 0) (12.4143 0.141089 0) (12.4161 0.0509516 0) (12.5474 0.0279675 0) (12.4518 0.075083 0) (9.90238 0.166861 0) (10.3098 0.353683 0) (10.7695 0.315429 0) (11.2826 0.232139 0) (11.2443 0.100135 0) (11.3801 0.111515 0) (11.6699 0.0323214 0) (11.7721 0.16848 0) (11.8908 0.101524 0) (12.0217 0.0299293 0) (12.074 0.142913 0) (12.1952 0.0636127 0) (12.0183 0.00352264 0) (12.3849 0.154511 0) (12.1033 0.00515876 0) (12.5562 0.0336299 0) (12.2174 0.148649 0) (12.7273 0.0194034 0) (12.3762 -0.0061593 0) (12.8322 -0.00708904 0) (9.92184 0.122338 0) (10.3859 0.232248 0) (10.6259 0.191361 0) (11.1546 0.196258 0) (11.3499 0.146698 0) (11.2931 0.0729931 0) (11.7346 -0.044256 0) (11.4857 0.116302 0) (12.06 0.0494383 0) (11.8582 0.0235806 0) (11.943 0.116131 0) (12.1692 0.0921444 0) (12.0598 0.00220272 0) (12.0287 0.124906 0) (12.3946 -0.0173623 0) (12.292 0.00880568 0) (12.3069 0.10122 0) (12.6989 -0.0248521 0) (12.4178 -0.0573776 0) (12.7261 -0.0250251 0) (9.93164 0.0468612 0) (10.4233 0.142222 0) (10.4594 0.142747 0) (11.0725 0.108925 0) (11.3173 0.103195 0) (11.505 0.0343451 0) (11.6584 -0.0345394 0) (11.5239 0.0727303 0) (11.8164 0.0117551 0) (11.8467 0.0323573 0) (11.7841 0.0799429 0) (12.1316 0.0362807 0) (12.2168 0.0275432 0) (11.9309 0.0819718 0) (12.5956 -0.0510943 0) (12.1483 0.0263391 0) (12.2804 0.0551798 0) (12.5001 -0.0486073 0) (12.3692 -0.0656001 0) (12.3349 0.01482 0) (9.86065 0.00124439 0) (10.3723 0.0520045 0) (10.4576 0.0503963 0) (11.0941 0.0247788 0) (11.1927 0.0847696 0) (11.4837 0.0104565 0) (11.5833 -0.0643443 0) (11.6255 0.0520144 0) (11.6846 -0.0318863 0) (11.9592 0.00690696 0) (11.7075 0.0561067 0) (12.1561 -0.0131522 0) (11.9813 0.0483727 0) (12.109 0.0310773 0) (12.2683 -0.0655194 0) (12.2611 0.0546959 0) (12.2183 0.0127578 0) (12.5804 -0.0859494 0) (12.2818 -0.0570954 0) (12.4481 -0.0414469 0) (9.88262 -0.040226 0) (10.3745 -0.0561373 0) (10.4442 -0.0162124 0) (11.0106 -0.0355279 0) (11.1354 0.0478301 0) (11.6059 -0.0382316 0) (11.5457 -0.0792974 0) (11.7022 0.0130449 0) (11.6669 -0.0681293 0) (11.889 -9.36901e-05 0) (11.7907 0.0421496 0) (11.9948 -0.0308513 0) (12.0526 0.032868 0) (12.1696 0.0139804 0) (12.2337 -0.0856462 0) (12.3481 0.00730553 0) (12.2825 -0.0186062 0) (12.601 -0.103767 0) (12.2227 -0.0726026 0) (12.558 -0.0715041 0) (10.0156 -0.089362 0) (10.2763 -0.14005 0) (10.4824 -0.0917574 0) (11.0337 -0.107602 0) (11.2598 -0.0157704 0) (11.5289 -0.0674428 0) (11.5795 -0.100777 0) (11.6828 -0.004803 0) (11.7531 -0.0805394 0) (11.7926 -0.0418441 0) (11.9236 0.0327075 0) (12.0015 -0.0686948 0) (12.118 -0.00188894 0) (12.1434 -0.00773428 0) (12.3492 -0.106402 0) (12.2055 0.0178183 0) (12.4119 -0.0589554 0) (12.4794 -0.100367 0) (12.3139 -0.0886954 0) (12.4348 -0.0564199 0) (10.0449 -0.143525 0) (10.2819 -0.224749 0) (10.5818 -0.179606 0) (11.0614 -0.188997 0) (11.2897 -0.0338337 0) (11.5176 -0.0970055 0) (11.6804 -0.123822 0) (11.6802 -0.0587875 0) (11.8435 -0.0970381 0) (11.8047 -0.0620137 0) (11.9776 -0.00545449 0) (12.0439 -0.0760404 0) (12.054 -0.00803853 0) (12.2676 -0.0410673 0) (12.3174 -0.0962312 0) (12.252 -0.0306775 0) (12.5052 -0.0935558 0) (12.5147 -0.113174 0) (12.4549 -0.103168 0) (12.3833 -0.0619593 0) (10.0546 -0.210977 0) (10.2683 -0.317003 0) (10.6744 -0.257801 0) (11.1631 -0.234323 0) (11.4013 -0.0910045 0) (11.5793 -0.150116 0) (11.7289 -0.149058 0) (11.7759 -0.0771411 0) (11.8127 -0.108841 0) (11.9091 -0.0899249 0) (12.0313 -0.0257123 0) (12.1202 -0.0861485 0) (12.1367 -0.053383 0) (12.4024 -0.077871 0) (12.3552 -0.0949186 0) (12.384 -0.0567316 0) (12.5634 -0.123222 0) (12.527 -0.126797 0) (12.4832 -0.0945266 0) (12.4364 -0.0903234 0) (10.0769 -0.279971 0) (10.2509 -0.407083 0) (10.8827 -0.368792 0) (11.2671 -0.298224 0) (11.5461 -0.120067 0) (11.6125 -0.174366 0) (11.8206 -0.179353 0) (11.7945 -0.100692 0) (11.9094 -0.133097 0) (11.9778 -0.128871 0) (12.1496 -0.0571332 0) (12.1473 -0.104606 0) (12.2797 -0.0816696 0) (12.3942 -0.100026 0) (12.348 -0.0835773 0) (12.3948 -0.0995103 0) (12.5041 -0.129702 0) (12.3826 -0.133785 0) (12.4203 -0.112548 0) (12.3386 -0.139593 0) (10.0369 -0.365894 0) (10.3484 -0.529385 0) (11.1165 -0.468023 0) (11.3317 -0.326692 0) (11.6595 -0.165268 0) (11.6639 -0.218513 0) (11.8794 -0.211642 0) (11.7856 -0.121501 0) (11.9489 -0.157424 0) (11.8798 -0.153706 0) (12.0506 -0.0799424 0) (11.914 -0.112949 0) (12.0698 -0.110957 0) (11.9525 -0.10307 0) (11.9857 -0.0857167 0) (11.8911 -0.11351 0) (11.9308 -0.114929 0) (11.7122 -0.136791 0) (11.7777 -0.120707 0) (11.5466 -0.159868 0) (9.98119 -0.466862 0) (10.5502 -0.683786 0) (11.2311 -0.552583 0) (11.3381 -0.37457 0) (11.586 -0.228316 0) (11.4508 -0.243614 0) (11.4724 -0.223135 0) (11.2913 -0.140754 0) (11.2973 -0.156939 0) (11.0499 -0.145584 0) (11.1141 -0.0820109 0) (10.8437 -0.101398 0) (10.8981 -0.0951367 0) (10.6329 -0.0809132 0) (10.6789 -0.0699249 0) (10.4269 -0.0927663 0) (10.4439 -0.0832342 0) (10.1534 -0.119105 0) (10.1927 -0.0945747 0) (9.8203 -0.147593 0) (10.0441 -0.637119 0) (10.6553 -0.853205 0) (10.9013 -0.602844 0) (10.6488 -0.386625 0) (10.4941 -0.236332 0) (10.0744 -0.20461 0) (9.81572 -0.170394 0) (9.50402 -0.0997379 0) (9.32204 -0.0981762 0) (9.00358 -0.0903669 0) (8.96471 -0.0455481 0) (8.67358 -0.0544993 0) (8.66094 -0.0540077 0) (8.4001 -0.0449714 0) (8.42382 -0.0405332 0) (8.15749 -0.0521309 0) (8.17344 -0.0540141 0) (7.88264 -0.0746649 0) (7.88894 -0.066396 0) (7.52549 -0.0760526 0) (10.0753 -0.840149 0) (9.65489 -0.864138 0) (8.88949 -0.506352 0) (8.05419 -0.269476 0) (7.51801 -0.128573 0) (6.99946 -0.0838538 0) (6.68077 -0.0653651 0) (6.40505 -0.0289103 0) (6.23364 -0.0294155 0) (6.00263 -0.0343049 0) (5.95015 -0.0115918 0) (5.75794 -0.0175265 0) (5.73448 -0.0215389 0) (5.55514 -0.0180902 0) (5.55868 -0.0153379 0) (5.37107 -0.0234369 0) (5.36753 -0.0256485 0) (5.14335 -0.0355985 0) (5.13083 -0.03417 0) (4.84497 -0.0115756 0) (8.09032 -0.388431 0) (5.44625 -0.24234 0) (3.91985 -0.0422315 0) (3.14683 0.0131739 0) (2.80523 0.0206272 0) (2.60094 0.0113021 0) (2.47718 0.00160912 0) (2.37545 0.00555955 0) (2.32738 0.0021455 0) (2.24329 -0.00292344 0) (2.21756 0.00286108 0) (2.16209 0.000376438 0) (2.14845 -0.00157616 0) (2.07818 -0.0008172 0) (2.0727 4.13701e-05 0) (2.00269 -0.00212959 0) (1.98503 -0.00196917 0) (1.88693 -0.00460296 0) (1.84946 -0.00289809 0) (1.71666 0.0115774 0) (2.28693 -0.110854 0) (2.2481 -0.0183904 0) (2.50926 -0.0117663 0) (2.45521 -0.0402563 0) (2.74446 -0.0846284 0) (2.67483 -0.0979416 0) (2.96576 -0.100204 0) (2.85887 -0.0859713 0) (3.13572 -0.0709863 0) (2.9827 -0.0484308 0) (3.24974 -0.0244958 0) (3.05599 0.00265348 0) (3.33117 0.0134595 0) (3.11635 0.0197352 0) (3.40959 0.00681413 0) (3.17157 -0.000797279 0) (3.48226 -0.0203339 0) (3.22186 -0.026425 0) (3.54892 -0.0357222 0) (3.25725 -0.0301882 0) (3.60564 -0.0211184 0) (3.28484 0.0067565 0) (3.65773 0.0319843 0) (3.32783 0.0736216 0) (3.73563 0.0986123 0) (3.42662 0.130938 0) (3.86051 0.136852 0) (3.58055 0.145309 0) (4.01892 0.123691 0) (3.74304 0.110954 0) (4.15822 0.0735972 0) (3.87889 0.0537492 0) (4.25857 0.00917007 0) (3.98673 -0.0196148 0) (4.33747 -0.0617622 0) (4.06481 -0.0952896 0) (4.42421 -0.142977 0) (4.13105 -0.170293 0) (4.45373 -0.211635 0) (4.14671 -0.229826 0) (4.44324 -0.261688 0) (4.06879 -0.246826 0) (4.31781 -0.241353 0) (3.92957 -0.201526 0) (4.21395 -0.18981 0) (3.86048 -0.128732 0) (4.19781 -0.079374 0) (3.90599 0.0196459 0) (4.27494 0.0958887 0) (4.02097 0.195957 0) (4.38803 0.269966 0) (4.13097 0.362125 0) (4.47505 0.430644 0) (4.19114 0.510755 0) (4.561 0.549141 0) (4.29407 0.592944 0) (4.66474 0.586962 0) (4.37243 0.571945 0) (4.7781 0.494543 0) (4.52203 0.449871 0) (4.97574 0.330162 0) (4.71492 0.210751 0) (5.19048 0.0164438 0) (4.92255 -0.141591 0) (5.40636 -0.353998 0) (5.10785 -0.503632 0) (5.61655 -0.685264 0) (5.24465 -0.768561 0) (5.73556 -0.868186 0) (5.20254 -0.849711 0) (5.69474 -0.864785 0) (4.95135 -0.74763 0) (5.48819 -0.703071 0) (4.55332 -0.486649 0) (5.21616 -0.391354 0) (4.21814 -0.090021 0) (5.00289 0.0136133 0) (4.07092 0.329614 0) (4.85834 0.388926 0) (4.01209 0.622537 0) (4.7259 0.675728 0) (3.99342 0.745197 0) (4.70399 0.684173 0) (3.96712 0.808486 0) (4.50496 0.689063 0) (4.12654 0.700294 0) (4.55622 0.52727 0) (4.26619 0.48573 0) (4.51367 0.387781 0) (4.4691 0.296806 0) (4.76772 0.232366 0) (4.96408 0.24107 0) (5.2775 0.191494 0) (5.58628 0.179742 0) (5.76511 0.0903651 0) (6.10252 0.0511484 0) (6.14513 -0.0259327 0) (6.40347 -0.133284 0) (6.38588 -0.154687 0) (6.56036 -0.212921 0) (6.53578 -0.224337 0) (6.66113 -0.191938 0) (6.71006 -0.17956 0) (6.84994 -0.147536 0) (6.95189 -0.156385 0) (7.09526 -0.202744 0) (7.13006 -0.266153 0) (7.23186 -0.309515 0) (7.17979 -0.300199 0) (7.34926 -0.293514 0) (7.26488 -0.244686 0) (7.51659 -0.278457 0) (7.40034 -0.269997 0) (7.70282 -0.356779 0) (7.65518 -0.507005 0) (7.8705 -0.700569 0) (7.85136 -0.947955 0) (7.88323 -1.20321 0) (7.89838 -1.38416 0) (7.92922 -1.5301 0) (8.0259 -1.60014 0) (8.14799 -1.5461 0) (8.22071 -1.42801 0) (8.43175 -1.2055 0) (8.47665 -0.917984 0) (8.68807 -0.65265 0) (8.73574 -0.255605 0) (8.92822 -0.0333792 0) (8.89998 0.242523 0) (9.03204 0.415148 0) (8.86611 0.479456 0) (8.93629 0.589474 0) (8.74082 0.626703 0) (8.9693 0.604246 0) (8.6271 0.553509 0) (9.04076 0.578632 0) (8.61008 0.449842 0) (9.09314 0.477296 0) (8.91993 0.262028 0) (9.26894 0.220506 0) (9.27332 -0.127692 0) (9.56046 -0.209591 0) (9.81455 -0.616369 0) (10.0131 -0.73697 0) (10.5529 -1.28777 0) (10.5403 -1.44105 0) (11.2292 -2.07178 0) (10.942 -2.14486 0) (11.8346 -2.78336 0) (11.4498 -2.83328 0) (12.2247 -3.3521 0) (11.7811 -3.38432 0) (12.2947 -3.77256 0) (11.8116 -3.72683 0) (11.991 -4.0482 0) (11.6331 -3.85137 0) (11.3577 -4.09481 0) (11.2125 -3.75315 0) (10.6744 -3.97173 0) (10.7316 -3.53283 0) (10.2412 -3.7599 0) (10.1806 -3.48179 0) (10.3364 -3.90165 0) (10.0352 -3.70465 0) (10.7236 -3.88396 0) (10.2607 -3.8935 0) (11.3067 -3.80303 0) (11.0735 -4.01623 0) (11.6524 -3.53799 0) (12.025 -3.70264 0) (12.1132 -2.91492 0) (12.548 -2.95998 0) (12.5711 -1.96751 0) (12.8543 -1.84617 0) (13.143 -0.898484 0) (12.9813 -0.513025 0) (13.4729 0.404397 0) (13.2136 0.719134 0) (13.7641 1.59946 0) (13.3763 1.77753 0) (13.868 2.66238 0) (13.4334 2.93753 0) (13.8103 3.40061 0) (13.5328 3.78088 0) (13.4066 3.96837 0) (13.4372 4.59127 0) (13.1447 4.30011 0) (13.2625 4.97761 0) (13.1445 5.0274 0) (12.739 5.14369 0) (12.9824 5.68606 0) (12.2419 5.54498 0) (12.16 5.79592 0) (11.1303 5.67838 0) (10.1677 5.23732 0) (9.51333 5.66997 0) (8.30055 5.32851 0) (7.02942 5.40745 0) (7.66207 6.01622 0) (4.42737 9.32388 0) (5.31809 -0.0646035 0) (5.1526 -0.0185861 0) (5.34015 -0.0437699 0) (5.19619 -0.0754506 0) (5.45903 -0.116651 0) (5.33298 -0.13651 0) (5.61474 -0.153462 0) (5.46773 -0.146687 0) (5.7245 -0.11865 0) (5.54638 -0.0822078 0) (5.78507 -0.0448189 0) (5.59182 -0.016577 0) (5.82293 -0.00619859 0) (5.61996 0.00165589 0) (5.8495 -0.011724 0) (5.63512 -0.0141112 0) (5.87259 -0.0398482 0) (5.65413 -0.0425442 0) (5.90099 -0.0571088 0) (5.67812 -0.0466892 0) (5.93239 -0.0445225 0) (5.70806 -0.016565 0) (5.96841 0.000554054 0) (5.75508 0.0410886 0) (6.02106 0.0564394 0) (5.82187 0.0884935 0) (6.09351 0.0879413 0) (5.91227 0.0984448 0) (6.1822 0.0770813 0) (6.01065 0.0693357 0) (6.26821 0.0320056 0) (6.10059 0.0157351 0) (6.33684 -0.0264666 0) (6.17177 -0.044319 0) (6.39504 -0.0859875 0) (6.22621 -0.102934 0) (6.44318 -0.141035 0) (6.26425 -0.162254 0) (6.45531 -0.189438 0) (6.24249 -0.200045 0) (6.41892 -0.219598 0) (6.15041 -0.210315 0) (6.29143 -0.204088 0) (5.9746 -0.162652 0) (6.1451 -0.139642 0) (5.83266 -0.0802821 0) (6.02126 -0.0367439 0) (5.70679 0.0308614 0) (5.92093 0.0771312 0) (5.63011 0.153745 0) (5.89792 0.207452 0) (5.64625 0.297287 0) (5.96421 0.347938 0) (5.74396 0.443146 0) (6.11938 0.466623 0) (5.92505 0.51929 0) (6.32374 0.495312 0) (6.13256 0.485101 0) (6.57949 0.413791 0) (6.37289 0.348739 0) (6.84144 0.215261 0) (6.62733 0.0895626 0) (7.11235 -0.0856844 0) (6.88117 -0.225309 0) (7.37023 -0.409837 0) (7.11328 -0.537177 0) (7.57193 -0.69608 0) (7.24356 -0.767705 0) (7.64665 -0.844093 0) (7.19159 -0.803916 0) (7.559 -0.793008 0) (6.97504 -0.650802 0) (7.32452 -0.566972 0) (6.63819 -0.357036 0) (6.99443 -0.226455 0) (6.29699 0.00413058 0) (6.66213 0.12641 0) (6.03433 0.352917 0) (6.40765 0.431309 0) (5.90252 0.645817 0) (6.22466 0.667866 0) (5.86845 0.785212 0) (6.12639 0.753761 0) (5.8539 0.766981 0) (6.00999 0.751096 0) (5.88378 0.686948 0) (6.04464 0.53746 0) (5.98952 0.503559 0) (6.02954 0.361471 0) (6.04814 0.250845 0) (6.12254 0.189388 0) (6.24685 0.0761736 0) (6.34604 0.0289907 0) (6.5448 -0.0210517 0) (6.65628 -0.0957801 0) (6.84471 -0.179359 0) (6.95693 -0.206315 0) (7.11248 -0.286309 0) (7.17382 -0.305033 0) (7.31496 -0.315063 0) (7.34656 -0.324461 0) (7.46934 -0.287147 0) (7.57066 -0.280964 0) (7.64686 -0.250323 0) (7.82244 -0.247456 0) (7.8896 -0.297287 0) (7.99284 -0.319564 0) (8.0879 -0.326457 0) (8.08484 -0.361404 0) (8.26431 -0.334961 0) (8.23741 -0.33213 0) (8.52895 -0.345391 0) (8.5103 -0.339391 0) (8.87456 -0.462971 0) (8.87656 -0.613949 0) (9.13212 -0.831821 0) (9.1699 -1.08523 0) (9.35911 -1.27076 0) (9.37522 -1.4765 0) (9.66726 -1.59378 0) (9.57042 -1.66731 0) (9.86736 -1.59837 0) (9.64203 -1.47661 0) (9.92161 -1.24954 0) (9.74207 -0.979641 0) (10.0373 -0.713308 0) (9.87811 -0.437284 0) (10.2302 -0.0955216 0) (10.1076 0.0982675 0) (10.405 0.407828 0) (10.3204 0.467725 0) (10.4314 0.678763 0) (10.3852 0.634344 0) (10.3856 0.733497 0) (10.3342 0.556924 0) (10.2567 0.59326 0) (10.3716 0.416259 0) (10.1904 0.416868 0) (10.6359 0.130868 0) (10.3585 0.0373218 0) (10.9582 -0.199942 0) (10.7404 -0.498905 0) (11.4591 -0.702671 0) (11.1951 -1.09817 0) (11.9807 -1.38373 0) (11.6312 -1.87126 0) (12.5002 -2.07447 0) (11.9306 -2.52813 0) (12.9506 -2.71114 0) (12.0935 -3.11401 0) (13.1207 -3.23864 0) (11.934 -3.58306 0) (12.9569 -3.57656 0) (11.6438 -3.81964 0) (12.41 -3.66157 0) (11.2712 -3.77759 0) (11.38 -3.58191 0) (10.9031 -3.58114 0) (10.357 -3.56754 0) (10.6996 -3.50528 0) (9.67066 -3.72371 0) (10.74 -3.60818 0) (9.59838 -3.85329 0) (10.8503 -3.72104 0) (9.86269 -4.09219 0) (11.0043 -4.02937 0) (10.8309 -4.33764 0) (11.1192 -4.02946 0) (11.5376 -4.07272 0) (11.2248 -3.41852 0) (11.9251 -3.29563 0) (11.5401 -2.64139 0) (12.0929 -2.20343 0) (12.0275 -1.62162 0) (12.3594 -1.07157 0) (12.4762 -0.44475 0) (12.6021 0.102308 0) (12.7476 0.83941 0) (12.8218 1.17199 0) (13.0707 2.02094 0) (13.0146 2.17293 0) (13.5309 3.03508 0) (13.1052 3.1047 0) (13.7824 3.95831 0) (13.3411 3.90427 0) (13.6752 4.4632 0) (13.4221 4.812 0) (13.1496 4.73804 0) (13.3792 5.4455 0) (12.8585 5.30561 0) (12.9265 5.6165 0) (12.7311 6.04431 0) (12.1843 5.83063 0) (12.2551 6.4975 0) (11.2604 6.11184 0) (10.364 5.95812 0) (10.6631 6.31067 0) (7.50379 6.53333 0) (10.2785 4.93063 0) (7.33364 10.0515 0) (7.97037 -0.0963017 0) (7.825 -0.0482785 0) (7.99193 -0.0770022 0) (7.84958 -0.102947 0) (8.07577 -0.156244 0) (7.93166 -0.167116 0) (8.14444 -0.166543 0) (7.98991 -0.166232 0) (8.17893 -0.140235 0) (8.03825 -0.114793 0) (8.211 -0.0697791 0) (8.09532 -0.0309848 0) (8.25768 -0.0143581 0) (8.14291 0.0105162 0) (8.29389 -0.00797505 0) (8.15544 -0.000161138 0) (8.29885 -0.0311826 0) (8.13227 -0.0333085 0) (8.28136 -0.0570651 0) (8.10618 -0.0541836 0) (8.26895 -0.0554622 0) (8.10218 -0.0371398 0) (8.28648 -0.0192305 0) (8.13412 0.00986908 0) (8.3376 0.0299861 0) (8.19428 0.0555632 0) (8.41035 0.0617518 0) (8.26803 0.0720106 0) (8.48451 0.0560364 0) (8.33621 0.0501965 0) (8.54269 0.0146255 0) (8.38484 -0.00128728 0) (8.58704 -0.0421089 0) (8.41194 -0.0623142 0) (8.61438 -0.0982828 0) (8.42622 -0.120641 0) (8.62665 -0.144523 0) (8.43022 -0.166131 0) (8.61805 -0.180504 0) (8.39667 -0.184214 0) (8.57128 -0.192152 0) (8.31419 -0.168635 0) (8.46548 -0.161808 0) (8.17553 -0.0998619 0) (8.32771 -0.0787312 0) (8.033 -0.00976759 0) (8.19643 0.0178192 0) (7.89024 0.0906186 0) (8.06332 0.131816 0) (7.74857 0.197455 0) (7.95042 0.241895 0) (7.66181 0.297685 0) (7.91008 0.334719 0) (7.67761 0.383657 0) (7.98271 0.394212 0) (7.80301 0.421579 0) (8.16439 0.387361 0) (8.02871 0.374805 0) (8.41502 0.284398 0) (8.30364 0.214794 0) (8.68648 0.0769871 0) (8.59261 -0.042894 0) (8.9415 -0.208927 0) (8.84787 -0.336743 0) (9.16507 -0.506764 0) (9.04409 -0.620081 0) (9.29314 -0.754225 0) (9.11598 -0.811438 0) (9.31134 -0.840535 0) (9.05177 -0.793363 0) (9.22198 -0.737745 0) (8.89696 -0.582751 0) (9.05204 -0.474911 0) (8.69477 -0.237424 0) (8.8016 -0.103951 0) (8.46023 0.131703 0) (8.51224 0.265744 0) (8.18694 0.434132 0) (8.23552 0.556922 0) (7.9507 0.659469 0) (8.01739 0.747755 0) (7.84663 0.800594 0) (7.8763 0.780197 0) (7.81505 0.811738 0) (7.83053 0.718809 0) (7.78696 0.675253 0) (7.89612 0.575402 0) (7.83451 0.411223 0) (7.91354 0.341288 0) (7.92593 0.229457 0) (7.96831 0.104147 0) (8.0857 0.0601244 0) (8.16775 -0.0339856 0) (8.24556 -0.0993793 0) (8.34643 -0.13274 0) (8.43626 -0.229874 0) (8.49529 -0.256344 0) (8.56198 -0.311685 0) (8.59227 -0.345567 0) (8.60828 -0.351783 0) (8.65211 -0.368691 0) (8.6372 -0.363036 0) (8.76255 -0.352235 0) (8.73619 -0.370285 0) (8.89313 -0.363633 0) (8.92045 -0.373867 0) (9.04924 -0.437348 0) (9.0733 -0.395485 0) (9.20683 -0.451153 0) (9.28393 -0.462731 0) (9.42964 -0.429779 0) (9.62778 -0.506831 0) (9.75751 -0.543427 0) (10.0006 -0.6533 0) (10.2167 -0.850236 0) (10.3728 -0.967728 0) (10.6397 -1.20259 0) (10.7638 -1.38341 0) (10.8844 -1.57176 0) (11.0137 -1.72385 0) (10.9574 -1.756 0) (11.0151 -1.7198 0) (10.9615 -1.56559 0) (11.0248 -1.3493 0) (11.0362 -1.08617 0) (11.0931 -0.775304 0) (11.1311 -0.47734 0) (11.1755 -0.154757 0) (11.2871 0.0773926 0) (11.26 0.330803 0) (11.4635 0.450277 0) (11.3211 0.616695 0) (11.6195 0.644691 0) (11.4489 0.655683 0) (11.6747 0.663846 0) (11.5532 0.535502 0) (11.7802 0.467586 0) (11.6297 0.301862 0) (11.957 0.14911 0) (11.8876 -0.15242 0) (12.1694 -0.244208 0) (12.244 -0.696129 0) (12.5016 -0.827853 0) (12.6246 -1.34701 0) (12.822 -1.45833 0) (12.9502 -2.04247 0) (13.1186 -2.08915 0) (13.0543 -2.67655 0) (13.2228 -2.65864 0) (12.875 -3.20958 0) (13.1472 -3.07535 0) (12.3514 -3.50915 0) (12.955 -3.277 0) (11.501 -3.60156 0) (12.4023 -3.29008 0) (10.4608 -3.53111 0) (11.8355 -3.24757 0) (9.91291 -3.52707 0) (11.22 -3.26674 0) (9.73889 -3.49351 0) (10.6533 -3.36053 0) (9.94605 -3.71959 0) (10.1925 -3.75207 0) (10.3785 -4.09795 0) (9.99319 -4.15181 0) (11.0614 -4.4174 0) (9.94883 -4.15657 0) (11.3026 -4.22007 0) (9.89568 -3.82383 0) (11.2308 -3.4717 0) (10.4166 -3.34228 0) (11.2604 -2.62355 0) (11.0081 -2.37196 0) (11.4833 -1.57855 0) (11.5735 -1.29098 0) (11.805 -0.321123 0) (11.7608 -0.0586125 0) (11.9671 0.962604 0) (11.7981 1.15495 0) (12.155 1.90586 0) (12.027 2.2003 0) (12.379 2.72946 0) (12.6007 3.25186 0) (12.6245 3.34287 0) (13.3151 4.236 0) (13.012 4.07974 0) (13.7703 4.90047 0) (13.2566 4.99456 0) (13.4243 5.17078 0) (13.3632 5.86213 0) (12.7426 5.52777 0) (13.1117 6.39932 0) (12.4792 6.34366 0) (12.1484 6.24692 0) (12.6848 6.85862 0) (10.1928 6.72477 0) (12.7869 5.94593 0) (8.87686 8.36973 0) (11.8822 4.2163 0) (9.33274 9.20994 0) (10.1442 -0.147064 0) (10.0323 -0.193226 0) (10.2283 -0.239006 0) (10.089 -0.200666 0) (10.334 -0.217224 0) (10.1852 -0.19536 0) (10.3715 -0.176428 0) (10.2033 -0.172863 0) (10.3322 -0.140179 0) (10.2174 -0.138469 0) (10.3155 -0.0885248 0) (10.2342 -0.0653415 0) (10.3297 -0.0394258 0) (10.2477 -0.0197071 0) (10.3684 -0.0247187 0) (10.2443 -0.0100918 0) (10.3906 -0.0265305 0) (10.2182 -0.0233263 0) (10.3833 -0.0391235 0) (10.1896 -0.0433445 0) (10.3593 -0.0431053 0) (10.1694 -0.0373561 0) (10.3433 -0.0265657 0) (10.1769 -0.00695404 0) (10.3614 0.00226942 0) (10.2209 0.0294366 0) (10.4148 0.0278543 0) (10.2898 0.0425533 0) (10.4832 0.0285481 0) (10.353 0.0283032 0) (10.5409 -0.00676644 0) (10.3956 -0.0108919 0) (10.5766 -0.0565681 0) (10.4095 -0.0616658 0) (10.5781 -0.10118 0) (10.4045 -0.117194 0) (10.551 -0.133625 0) (10.3834 -0.157569 0) (10.4984 -0.157187 0) (10.3335 -0.164747 0) (10.4214 -0.162885 0) (10.2525 -0.131816 0) (10.3188 -0.124807 0) (10.1354 -0.0581374 0) (10.2082 -0.031471 0) (10.0189 0.0340721 0) (10.1143 0.0762734 0) (9.92456 0.135057 0) (10.0261 0.182793 0) (9.84019 0.247657 0) (9.93777 0.274671 0) (9.78929 0.343341 0) (9.90667 0.338437 0) (9.79356 0.394195 0) (9.96374 0.364622 0) (9.87488 0.380818 0) (10.1083 0.329465 0) (10.0526 0.270156 0) (10.2952 0.200443 0) (10.2891 0.0773184 0) (10.4982 -0.0203859 0) (10.5289 -0.170373 0) (10.6932 -0.313296 0) (10.7182 -0.424304 0) (10.8346 -0.587235 0) (10.8279 -0.650532 0) (10.8792 -0.776696 0) (10.8378 -0.782143 0) (10.8415 -0.802352 0) (10.736 -0.745211 0) (10.7167 -0.652237 0) (10.5434 -0.540696 0) (10.5436 -0.364907 0) (10.3437 -0.197909 0) (10.3465 0.0065639 0) (10.1802 0.189558 0) (10.1527 0.360308 0) (10.0332 0.53711 0) (9.98687 0.636762 0) (9.88393 0.776751 0) (9.86768 0.810082 0) (9.76126 0.849617 0) (9.79465 0.858429 0) (9.69643 0.780638 0) (9.75633 0.751875 0) (9.70168 0.653682 0) (9.76276 0.517318 0) (9.75835 0.440869 0) (9.82306 0.284375 0) (9.81066 0.179759 0) (9.90025 0.110324 0) (9.9139 -0.0278459 0) (10.0191 -0.08693 0) (10.0694 -0.16565 0) (10.1505 -0.225714 0) (10.1663 -0.255213 0) (10.2646 -0.314881 0) (10.2663 -0.33346 0) (10.3016 -0.334537 0) (10.3199 -0.375451 0) (10.3567 -0.350725 0) (10.3185 -0.363057 0) (10.4221 -0.380738 0) (10.3798 -0.374362 0) (10.4757 -0.407949 0) (10.4903 -0.42601 0) (10.5645 -0.460476 0) (10.5765 -0.490463 0) (10.7112 -0.514624 0) (10.739 -0.542417 0) (10.9177 -0.572734 0) (11.0282 -0.647689 0) (11.2307 -0.719988 0) (11.3836 -0.815105 0) (11.6733 -0.977187 0) (11.7677 -1.09932 0) (12.0491 -1.32446 0) (12.0642 -1.52975 0) (12.2084 -1.66109 0) (12.1756 -1.77152 0) (12.1985 -1.73571 0) (12.1236 -1.65994 0) (12.116 -1.50624 0) (11.9603 -1.2802 0) (11.9627 -1.05516 0) (11.8183 -0.768474 0) (11.8392 -0.505268 0) (11.8357 -0.22782 0) (11.9058 0.00985379 0) (11.9622 0.239756 0) (12.1302 0.387839 0) (12.145 0.555148 0) (12.3147 0.625435 0) (12.4125 0.603466 0) (12.446 0.648461 0) (12.601 0.488458 0) (12.6285 0.406993 0) (12.7795 0.219357 0) (12.7935 0.0620191 0) (13.0705 -0.233604 0) (12.977 -0.418172 0) (13.3539 -0.725231 0) (13.173 -1.03559 0) (13.6361 -1.31252 0) (13.286 -1.66751 0) (13.7675 -1.91879 0) (13.236 -2.32463 0) (13.7107 -2.46109 0) (12.9127 -2.82501 0) (13.4301 -2.82567 0) (12.461 -3.15171 0) (12.8678 -3.03181 0) (11.7295 -3.29798 0) (12.0955 -3.09099 0) (11.1495 -3.24246 0) (11.5241 -3.0584 0) (10.806 -3.21203 0) (10.8275 -3.07809 0) (10.5407 -3.17314 0) (10.1857 -3.28139 0) (10.7342 -3.58315 0) (9.5804 -3.5553 0) (10.8148 -3.85023 0) (9.14949 -3.83054 0) (11.0169 -4.30107 0) (8.91525 -4.13049 0) (10.6641 -4.2067 0) (8.89336 -4.04829 0) (9.89729 -3.78374 0) (9.91912 -3.78701 0) (9.59528 -3.34869 0) (11.0533 -3.04548 0) (9.97297 -2.57559 0) (11.5233 -1.98534 0) (10.6926 -1.31776 0) (11.6387 -0.67455 0) (11.1569 0.0813165 0) (11.495 0.635671 0) (11.3271 1.37559 0) (11.2482 1.75704 0) (11.5577 2.40146 0) (11.0405 2.3341 0) (11.8427 3.26183 0) (11.3652 3.04885 0) (12.4187 3.77311 0) (12.3733 4.16913 0) (12.8052 4.31556 0) (13.5526 5.35653 0) (12.9783 5.04934 0) (13.7438 6.04028 0) (13.0075 5.99959 0) (12.7173 6.03535 0) (13.383 6.81551 0) (11.3967 6.84251 0) (14.1479 6.55608 0) (10.5693 8.30102 0) (13.9463 5.11445 0) (10.3393 8.82797 0) (12.9012 5.16714 0) (10.3085 8.45258 0) (11.6204 -0.130803 0) (11.5078 -0.219718 0) (11.7853 -0.301388 0) (11.6512 -0.238645 0) (11.8942 -0.245676 0) (11.7363 -0.208404 0) (11.8908 -0.182155 0) (11.7542 -0.185159 0) (11.8217 -0.131904 0) (11.7855 -0.150635 0) (11.8231 -0.0877182 0) (11.8261 -0.071999 0) (11.8566 -0.03539 0) (11.823 -0.00461381 0) (11.891 -0.0199918 0) (11.789 0.00954884 0) (11.8932 -0.0199923 0) (11.7355 -0.00351078 0) (11.85 -0.0286417 0) (11.6935 -0.0300692 0) (11.793 -0.0394056 0) (11.6706 -0.0360819 0) (11.7451 -0.0341297 0) (11.6712 -0.0204871 0) (11.7369 -0.0187297 0) (11.7078 -0.000374638 0) (11.7732 -0.0020328 0) (11.7787 0.00864005 0) (11.8444 0.00206695 0) (11.8587 0.00855721 0) (11.9196 -0.0217367 0) (11.9205 -0.00868241 0) (11.9773 -0.0600944 0) (11.9433 -0.0486836 0) (11.9835 -0.0874442 0) (11.9288 -0.103348 0) (11.9365 -0.10504 0) (11.897 -0.140261 0) (11.8436 -0.118751 0) (11.8482 -0.138912 0) (11.7333 -0.124674 0) (11.7694 -0.0944541 0) (11.6308 -0.0926545 0) (11.6502 -0.0204074 0) (11.5602 -0.0128809 0) (11.5288 0.0721042 0) (11.5272 0.0962587 0) (11.4613 0.164064 0) (11.5153 0.208684 0) (11.4505 0.257972 0) (11.5007 0.30787 0) (11.4751 0.336008 0) (11.5246 0.363766 0) (11.5305 0.368867 0) (11.6161 0.352436 0) (11.6251 0.33906 0) (11.7544 0.266264 0) (11.7776 0.214644 0) (11.9028 0.105678 0) (11.9623 0.00919291 0) (12.0353 -0.105718 0) (12.1156 -0.235715 0) (12.1343 -0.362823 0) (12.2032 -0.482416 0) (12.1748 -0.588154 0) (12.1835 -0.667821 0) (12.128 -0.729749 0) (12.0698 -0.756701 0) (12.013 -0.726774 0) (11.8842 -0.697266 0) (11.8223 -0.569145 0) (11.67 -0.488971 0) (11.627 -0.300245 0) (11.5154 -0.136979 0) (11.4558 0.0420522 0) (11.4232 0.254642 0) (11.3699 0.388248 0) (11.3619 0.583611 0) (11.3731 0.69239 0) (11.3137 0.787501 0) (11.4057 0.877497 0) (11.3141 0.864457 0) (11.4159 0.881668 0) (11.3599 0.827635 0) (11.4311 0.728999 0) (11.4087 0.669813 0) (11.4744 0.5197 0) (11.4635 0.406128 0) (11.5262 0.286694 0) (11.5148 0.142145 0) (11.5736 0.0625513 0) (11.5623 -0.046365 0) (11.6682 -0.131449 0) (11.6427 -0.191252 0) (11.7424 -0.260999 0) (11.7237 -0.292965 0) (11.7665 -0.322899 0) (11.7834 -0.367404 0) (11.8071 -0.361879 0) (11.7943 -0.382347 0) (11.8637 -0.38931 0) (11.8306 -0.375179 0) (11.9012 -0.396088 0) (11.9314 -0.404806 0) (11.9387 -0.406663 0) (12.0331 -0.463099 0) (12.03 -0.470205 0) (12.1003 -0.523196 0) (12.1926 -0.564514 0) (12.2376 -0.599735 0) (12.3571 -0.668966 0) (12.4982 -0.740853 0) (12.6065 -0.822196 0) (12.797 -0.931945 0) (12.9233 -1.07618 0) (13.0377 -1.23823 0) (13.1341 -1.43032 0) (13.1416 -1.55801 0) (13.1543 -1.65622 0) (13.0808 -1.69183 0) (12.9459 -1.657 0) (12.7914 -1.57357 0) (12.5777 -1.41315 0) (12.406 -1.20388 0) (12.2828 -0.989533 0) (12.1947 -0.734375 0) (12.1144 -0.461249 0) (12.1484 -0.272559 0) (12.0965 0.0114575 0) (12.2261 0.152201 0) (12.2749 0.311857 0) (12.4329 0.447816 0) (12.507 0.505102 0) (12.7248 0.511691 0) (12.7892 0.503693 0) (12.9728 0.42342 0) (13.0729 0.288029 0) (13.2438 0.150875 0) (13.2925 -0.0569101 0) (13.4697 -0.256425 0) (13.5425 -0.553989 0) (13.5818 -0.753216 0) (13.7034 -1.11747 0) (13.624 -1.35273 0) (13.7067 -1.69756 0) (13.497 -1.95843 0) (13.4936 -2.18689 0) (13.2513 -2.47086 0) (13.0102 -2.49289 0) (12.87 -2.82567 0) (12.4328 -2.72827 0) (12.2695 -2.96587 0) (11.8338 -2.78985 0) (11.984 -2.94602 0) (11.2109 -2.82493 0) (11.4767 -2.92583 0) (10.6935 -2.93922 0) (11.1326 -2.96127 0) (10.0999 -2.97088 0) (11.0804 -3.33869 0) (9.55983 -3.08433 0) (10.4292 -3.46838 0) (9.01414 -3.42829 0) (10.0928 -4.16563 0) (9.10201 -3.91167 0) (8.74121 -4.19516 0) (9.13884 -3.76536 0) (7.48347 -4.06789 0) (9.945 -4.04461 0) (8.05249 -4.05226 0) (10.3309 -3.87683 0) (9.47391 -3.37234 0) (10.2421 -2.95778 0) (10.3809 -2.43292 0) (10.5743 -1.52609 0) (10.4787 -1.02054 0) (10.8433 0.18751 0) (10.5007 0.537811 0) (10.9635 1.30429 0) (10.3772 1.65256 0) (11.0437 2.42616 0) (10.434 2.54482 0) (10.7566 2.83065 0) (10.8319 3.19423 0) (10.6714 3.15273 0) (12.0725 3.95065 0) (11.4473 3.84201 0) (13.0145 4.79846 0) (12.7991 5.22834 0) (13.1516 5.58016 0) (14.1129 6.54647 0) (12.0243 6.58141 0) (14.503 6.29396 0) (10.7684 7.66781 0) (14.3918 5.17073 0) (10.8445 8.71945 0) (14.2279 5.16872 0) (11.2427 8.67911 0) (13.7885 5.9557 0) (11.3926 7.76922 0) (12.3662 -0.0737769 0) (12.3429 -0.0891155 0) (12.5335 -0.193161 0) (12.5099 -0.131809 0) (12.606 -0.208031 0) (12.5559 -0.161562 0) (12.5364 -0.193424 0) (12.5217 -0.190877 0) (12.4141 -0.154496 0) (12.4991 -0.179812 0) (12.4136 -0.105672 0) (12.5455 -0.114456 0) (12.5036 -0.04217 0) (12.592 -0.0272492 0) (12.599 -0.00422083 0) (12.6236 0.013707 0) (12.6333 0.00329605 0) (12.6074 0.0200132 0) (12.57 -0.00268356 0) (12.5612 0.00551508 0) (12.4653 -0.0154837 0) (12.5181 -0.0105639 0) (12.3769 -0.0173615 0) (12.4917 -0.0172151 0) (12.3535 -0.0120538 0) (12.4953 -0.0232924 0) (12.3899 -0.0113294 0) (12.5198 -0.0314556 0) (12.4563 -0.0251424 0) (12.5527 -0.0375916 0) (12.5225 -0.0580809 0) (12.6026 -0.0435006 0) (12.5816 -0.0859819 0) (12.6587 -0.0617701 0) (12.6044 -0.0874988 0) (12.6967 -0.0924504 0) (12.5846 -0.0807544 0) (12.7047 -0.110769 0) (12.5177 -0.0803383 0) (12.6629 -0.0979289 0) (12.4316 -0.0796737 0) (12.567 -0.0564678 0) (12.3579 -0.0445978 0) (12.4305 0.00154246 0) (12.3221 0.0294456 0) (12.3264 0.0722257 0) (12.3244 0.131862 0) (12.3143 0.152496 0) (12.3488 0.221805 0) (12.3843 0.237896 0) (12.3906 0.291499 0) (12.4779 0.314849 0) (12.4839 0.326341 0) (12.5699 0.338418 0) (12.6413 0.304429 0) (12.6714 0.292314 0) (12.8013 0.210922 0) (12.8054 0.157324 0) (12.9164 0.0501516 0) (12.9563 -0.0459258 0) (12.9699 -0.144213 0) (13.0282 -0.286031 0) (12.9706 -0.36643 0) (13.0068 -0.501606 0) (12.926 -0.550212 0) (12.8561 -0.634487 0) (12.7993 -0.667043 0) (12.6539 -0.671974 0) (12.6232 -0.647027 0) (12.4388 -0.579476 0) (12.3768 -0.479377 0) (12.2439 -0.378825 0) (12.1651 -0.216627 0) (12.1124 -0.077763 0) (12.0269 0.086641 0) (12.0417 0.256982 0) (12.0418 0.401379 0) (12.0548 0.551233 0) (12.1613 0.677138 0) (12.135 0.747252 0) (12.3037 0.829454 0) (12.2833 0.841763 0) (12.4262 0.819202 0) (12.4544 0.809816 0) (12.54 0.695784 0) (12.5887 0.628772 0) (12.6457 0.523768 0) (12.6687 0.363946 0) (12.724 0.287771 0) (12.7126 0.135186 0) (12.774 0.0355547 0) (12.7399 -0.0315408 0) (12.8132 -0.154869 0) (12.7898 -0.20276 0) (12.8417 -0.260945 0) (12.8104 -0.322334 0) (12.8424 -0.326375 0) (12.8148 -0.359832 0) (12.8574 -0.382309 0) (12.8093 -0.364677 0) (12.8738 -0.40663 0) (12.8252 -0.390885 0) (12.8796 -0.413979 0) (12.892 -0.441534 0) (12.9084 -0.442211 0) (12.9815 -0.499306 0) (12.9967 -0.518978 0) (13.068 -0.558724 0) (13.1501 -0.617875 0) (13.1933 -0.664031 0) (13.3109 -0.729723 0) (13.4031 -0.82083 0) (13.4962 -0.898145 0) (13.6099 -1.03622 0) (13.6488 -1.15908 0) (13.714 -1.31764 0) (13.6946 -1.42437 0) (13.649 -1.51764 0) (13.5313 -1.55994 0) (13.339 -1.56401 0) (13.1335 -1.4923 0) (12.9245 -1.38738 0) (12.7261 -1.21497 0) (12.5505 -1.01832 0) (12.4036 -0.813328 0) (12.2695 -0.595156 0) (12.1839 -0.392242 0) (12.131 -0.203983 0) (12.1211 -0.0370315 0) (12.1468 0.15331 0) (12.1998 0.202929 0) (12.3349 0.357573 0) (12.3912 0.35679 0) (12.5732 0.398509 0) (12.7311 0.356765 0) (12.8155 0.302362 0) (13.0413 0.176682 0) (13.1002 0.0239959 0) (13.2799 -0.139131 0) (13.3196 -0.378179 0) (13.4789 -0.576375 0) (13.398 -0.907233 0) (13.5451 -1.07645 0) (13.3497 -1.42148 0) (13.5215 -1.64368 0) (13.0931 -1.83563 0) (13.3401 -2.1307 0) (12.7636 -2.19524 0) (12.9744 -2.44588 0) (12.3582 -2.44019 0) (12.6241 -2.64927 0) (11.8918 -2.5024 0) (12.263 -2.78198 0) (11.4173 -2.60547 0) (11.666 -2.79023 0) (11.0844 -2.66151 0) (11.3666 -2.83348 0) (10.3578 -2.60022 0) (10.9117 -2.96787 0) (9.94297 -2.86905 0) (9.86326 -2.97939 0) (9.32325 -3.16456 0) (9.20924 -3.5774 0) (9.2919 -3.66086 0) (7.3819 -3.46717 0) (8.39869 -3.7107 0) (6.65917 -3.82437 0) (8.43872 -4.53729 0) (8.03903 -4.40894 0) (8.28532 -4.47433 0) (9.39065 -4.02957 0) (8.40821 -3.43252 0) (9.75829 -2.92174 0) (8.55769 -2.18026 0) (10.1532 -1.46567 0) (8.70344 -0.930933 0) (10.1558 0.109624 0) (8.9578 0.614915 0) (9.7841 1.13816 0) (9.41716 1.81686 0) (9.73064 2.00745 0) (9.92389 2.87686 0) (9.33887 2.64327 0) (10.3901 3.30592 0) (9.32988 2.8181 0) (10.8402 3.44854 0) (10.8529 3.85482 0) (11.3092 4.03866 0) (12.8232 4.90639 0) (11.5528 5.44537 0) (14.6283 5.7108 0) (11.5769 7.56325 0) (14.9916 5.7269 0) (11.253 8.87705 0) (14.3154 5.11872 0) (11.1524 8.66998 0) (14.0291 5.57481 0) (11.4969 8.03832 0) (14.0359 6.24854 0) (11.9095 7.17606 0) (12.4338 -0.0506887 0) (12.5266 -0.00453523 0) (12.6401 -0.12095 0) (12.7582 -0.0360749 0) (12.8055 -0.15908 0) (12.8732 -0.0879899 0) (12.7985 -0.159048 0) (12.8453 -0.155052 0) (12.6677 -0.131483 0) (12.7334 -0.194601 0) (12.5875 -0.109391 0) (12.6705 -0.176983 0) (12.6094 -0.0776533 0) (12.6741 -0.0880444 0) (12.6821 -0.0317904 0) (12.7327 -0.00180629 0) (12.7411 0.00118732 0) (12.7632 0.0465208 0) (12.7 0.0232571 0) (12.7321 0.053767 0) (12.5954 0.0189903 0) (12.6764 0.0201823 0) (12.5145 -0.0011637 0) (12.6416 -0.0235901 0) (12.5255 -0.0135429 0) (12.6672 -0.0528309 0) (12.6064 -0.0147207 0) (12.7253 -0.052943 0) (12.6783 -0.0249353 0) (12.7553 -0.0426681 0) (12.6955 -0.0681739 0) (12.7591 -0.0394589 0) (12.688 -0.115992 0) (12.7557 -0.0571231 0) (12.676 -0.120873 0) (12.7486 -0.0917773 0) (12.6584 -0.087863 0) (12.7484 -0.113782 0) (12.613 -0.0491148 0) (12.7303 -0.0937059 0) (12.5571 -0.027151 0) (12.6733 -0.0393257 0) (12.5176 -0.00429368 0) (12.5737 0.016298 0) (12.5138 0.0442562 0) (12.5168 0.0690248 0) (12.5444 0.127029 0) (12.5513 0.135006 0) (12.5966 0.199708 0) (12.6696 0.212355 0) (12.6771 0.243752 0) (12.8076 0.282534 0) (12.8059 0.258941 0) (12.9291 0.292138 0) (12.9998 0.231377 0) (13.0346 0.231741 0) (13.1685 0.147704 0) (13.1479 0.0977347 0) (13.2645 0.0112192 0) (13.2602 -0.0844054 0) (13.2489 -0.15758 0) (13.2756 -0.296048 0) (13.1695 -0.348609 0) (13.1938 -0.466591 0) (13.0579 -0.497062 0) (12.9616 -0.550869 0) (12.88 -0.583417 0) (12.7044 -0.545287 0) (12.6906 -0.549099 0) (12.4822 -0.443678 0) (12.4425 -0.394963 0) (12.3078 -0.283877 0) (12.245 -0.150911 0) (12.2071 -0.0546803 0) (12.1366 0.128711 0) (12.1711 0.235357 0) (12.189 0.389153 0) (12.2304 0.506954 0) (12.3543 0.600146 0) (12.3929 0.691384 0) (12.5613 0.725173 0) (12.6279 0.766697 0) (12.761 0.735254 0) (12.8564 0.711032 0) (12.944 0.639307 0) (13.0356 0.543993 0) (13.0914 0.467956 0) (13.1504 0.330828 0) (13.1931 0.237216 0) (13.2234 0.13124 0) (13.2485 0.0118974 0) (13.2602 -0.0561522 0) (13.2619 -0.140991 0) (13.273 -0.216088 0) (13.2543 -0.247621 0) (13.2405 -0.310521 0) (13.2238 -0.329877 0) (13.2114 -0.352383 0) (13.2216 -0.383883 0) (13.2186 -0.379862 0) (13.2485 -0.40104 0) (13.2475 -0.413965 0) (13.276 -0.410517 0) (13.279 -0.451873 0) (13.2947 -0.469218 0) (13.3106 -0.505806 0) (13.3262 -0.575269 0) (13.3696 -0.603576 0) (13.4029 -0.682707 0) (13.4727 -0.756647 0) (13.5263 -0.807086 0) (13.6166 -0.919319 0) (13.6761 -1.00331 0) (13.7244 -1.11067 0) (13.7505 -1.22437 0) (13.724 -1.29591 0) (13.6901 -1.37137 0) (13.5427 -1.41493 0) (13.4109 -1.42027 0) (13.2111 -1.38062 0) (13.0594 -1.29457 0) (12.8516 -1.16527 0) (12.7156 -1.04448 0) (12.5228 -0.863994 0) (12.4225 -0.70531 0) (12.2936 -0.545584 0) (12.1961 -0.327995 0) (12.1426 -0.209564 0) (12.1136 -0.0105031 0) (12.0783 0.0962195 0) (12.1297 0.208663 0) (12.1625 0.241075 0) (12.2224 0.312929 0) (12.3479 0.241717 0) (12.4543 0.273828 0) (12.5512 0.117317 0) (12.7025 0.0689211 0) (12.8224 -0.0845728 0) (12.9283 -0.289214 0) (13.0454 -0.431861 0) (13.0408 -0.695124 0) (13.2253 -0.918597 0) (13.017 -1.10851 0) (13.3326 -1.38086 0) (12.9053 -1.57643 0) (13.204 -1.76084 0) (12.7373 -1.98315 0) (13.0141 -2.06854 0) (12.437 -2.2336 0) (12.7887 -2.35791 0) (12.0525 -2.30702 0) (12.3063 -2.52652 0) (11.8118 -2.48167 0) (11.816 -2.47297 0) (11.4051 -2.47108 0) (11.4082 -2.56696 0) (10.6896 -2.37811 0) (10.7496 -2.57546 0) (10.4268 -2.69221 0) (9.74846 -2.45615 0) (9.36548 -2.58185 0) (8.98312 -2.88271 0) (8.85582 -3.2468 0) (7.29356 -2.86386 0) (7.05775 -3.20818 0) (6.5667 -3.48645 0) (6.63151 -4.1928 0) (7.37202 -4.54235 0) (6.55092 -4.54174 0) (8.01938 -4.61753 0) (7.2995 -3.99276 0) (8.13275 -3.63289 0) (8.07862 -2.8316 0) (7.75969 -2.40701 0) (8.64942 -1.40548 0) (7.47161 -0.896266 0) (8.62753 0.24257 0) (7.70772 0.714153 0) (7.83183 0.946184 0) (8.51919 1.9099 0) (7.91418 1.82687 0) (8.98966 2.5943 0) (8.18706 2.54294 0) (9.24278 3.15712 0) (9.10494 2.91862 0) (8.91213 2.95807 0) (11.0161 3.43052 0) (9.32461 3.92231 0) (12.9932 3.81148 0) (10.6161 5.97608 0) (14.4745 4.76864 0) (11.3823 8.17276 0) (14.3746 4.95279 0) (11.3761 8.68738 0) (13.8829 5.51397 0) (11.1069 8.33344 0) (13.7277 6.18473 0) (11.4635 7.52622 0) (13.9791 6.40418 0) (12.2906 6.83288 0) (12.1743 0.0113559 0) (12.2906 0.0412531 0) (12.4068 -0.0737209 0) (12.568 -0.0206887 0) (12.7058 -0.16708 0) (12.746 -0.0984552 0) (12.8267 -0.184942 0) (12.7641 -0.144475 0) (12.7342 -0.120012 0) (12.6413 -0.153517 0) (12.5706 -0.0698354 0) (12.52 -0.146617 0) (12.4682 -0.0617178 0) (12.4586 -0.0904385 0) (12.4694 -0.0419632 0) (12.4789 -0.0149365 0) (12.5579 -0.011873 0) (12.5213 0.0513537 0) (12.5985 0.0285685 0) (12.5163 0.0908274 0) (12.5606 0.0381452 0) (12.4872 0.0540392 0) (12.5177 0.00384237 0) (12.483 -0.0320364 0) (12.5334 -0.0363726 0) (12.5646 -0.10116 0) (12.6258 -0.0503648 0) (12.7104 -0.0979448 0) (12.7265 -0.0420114 0) (12.7972 -0.0546112 0) (12.7637 -0.0572173 0) (12.7722 -0.0240021 0) (12.7464 -0.0912553 0) (12.6737 -0.0345939 0) (12.6982 -0.0970937 0) (12.5688 -0.0707547 0) (12.6266 -0.0683249 0) (12.5261 -0.0977253 0) (12.5237 -0.029672 0) (12.5353 -0.0824589 0) (12.4318 -0.00348212 0) (12.5423 -0.0330601 0) (12.3947 0.0129323 0) (12.4912 0.0270618 0) (12.4322 0.0385718 0) (12.4503 0.0772981 0) (12.5217 0.0908502 0) (12.4852 0.128997 0) (12.6169 0.144178 0) (12.6207 0.176627 0) (12.7 0.176045 0) (12.7921 0.217229 0) (12.7873 0.193528 0) (12.9308 0.212381 0) (12.9408 0.185494 0) (13.0321 0.156947 0) (13.0966 0.121739 0) (13.1098 0.0590474 0) (13.2035 -0.0115406 0) (13.1732 -0.0819163 0) (13.2063 -0.181236 0) (13.1513 -0.250249 0) (13.1183 -0.334618 0) (13.0824 -0.395789 0) (12.97 -0.429293 0) (12.9031 -0.471499 0) (12.7633 -0.472143 0) (12.6878 -0.452617 0) (12.5855 -0.432243 0) (12.4517 -0.33942 0) (12.3877 -0.303475 0) (12.2604 -0.184484 0) (12.2447 -0.102188 0) (12.1768 0.00248093 0) (12.1524 0.140784 0) (12.172 0.223125 0) (12.1659 0.357485 0) (12.2413 0.439278 0) (12.2869 0.506478 0) (12.3844 0.609339 0) (12.4918 0.603589 0) (12.5988 0.659512 0) (12.7216 0.646087 0) (12.8397 0.583175 0) (12.931 0.56605 0) (13.0416 0.457732 0) (13.0933 0.376382 0) (13.1529 0.301975 0) (13.203 0.168911 0) (13.2224 0.106275 0) (13.2273 0.0102117 0) (13.2581 -0.0828556 0) (13.2089 -0.110597 0) (13.2454 -0.19823 0) (13.2101 -0.241916 0) (13.2002 -0.259343 0) (13.1866 -0.346121 0) (13.1721 -0.334205 0) (13.1513 -0.381254 0) (13.1651 -0.412425 0) (13.1365 -0.389644 0) (13.1771 -0.443855 0) (13.1668 -0.424088 0) (13.2043 -0.45232 0) (13.2456 -0.511683 0) (13.2557 -0.510623 0) (13.3356 -0.62176 0) (13.3506 -0.65041 0) (13.4137 -0.734653 0) (13.4558 -0.828298 0) (13.4915 -0.870854 0) (13.5283 -0.993077 0) (13.5536 -1.05089 0) (13.5544 -1.1358 0) (13.5484 -1.20036 0) (13.4917 -1.25022 0) (13.4383 -1.28741 0) (13.3184 -1.31421 0) (13.257 -1.2826 0) (13.1101 -1.26182 0) (13.0377 -1.18295 0) (12.8696 -1.10193 0) (12.7971 -0.95972 0) (12.6021 -0.808879 0) (12.5348 -0.623044 0) (12.3805 -0.450973 0) (12.3216 -0.274867 0) (12.2289 -0.122 0) (12.2277 -0.00076637 0) (12.1608 0.1096 0) (12.194 0.163198 0) (12.2253 0.240669 0) (12.236 0.19347 0) (12.3506 0.248495 0) (12.3924 0.125587 0) (12.5096 0.0955879 0) (12.615 -0.0285747 0) (12.6974 -0.171301 0) (12.8324 -0.340268 0) (12.8337 -0.524866 0) (13.0511 -0.72888 0) (12.8864 -0.905373 0) (13.1773 -1.13434 0) (12.8852 -1.34102 0) (13.0938 -1.49902 0) (12.8105 -1.71612 0) (13.0095 -1.81489 0) (12.533 -1.96964 0) (12.8215 -2.14593 0) (12.2616 -2.14896 0) (12.382 -2.22151 0) (12.1353 -2.36094 0) (11.9142 -2.22357 0) (11.5955 -2.30042 0) (11.4806 -2.38911 0) (11.0847 -2.22562 0) (10.6664 -2.18131 0) (10.7688 -2.43247 0) (9.70792 -2.05482 0) (9.38061 -1.99266 0) (8.85959 -2.34645 0) (8.6209 -2.63616 0) (7.08909 -2.24827 0) (6.27817 -2.21607 0) (5.7324 -2.76108 0) (5.47956 -3.59889 0) (5.60537 -4.20696 0) (5.84463 -4.65331 0) (5.78762 -5.00089 0) (6.8736 -4.81525 0) (6.22211 -4.39137 0) (7.49073 -3.894 0) (6.26535 -2.93299 0) (7.57641 -2.56631 0) (6.26247 -1.50605 0) (7.07061 -0.833327 0) (6.15725 0.0946883 0) (7.09537 0.833572 0) (5.48087 0.914344 0) (7.75565 1.74429 0) (5.74838 1.76699 0) (7.4224 2.72463 0) (6.97238 2.10847 0) (7.22675 2.85972 0) (8.97095 2.17331 0) (7.35523 3.42651 0) (10.7635 2.16814 0) (8.18918 4.60804 0) (11.8417 1.93438 0) (9.74596 5.89619 0) (13.2644 3.45239 0) (11.4671 8.24673 0) (13.7752 5.5234 0) (11.1364 8.84171 0) (13.4584 6.27504 0) (10.8758 7.92162 0) (13.3698 6.38996 0) (11.2772 6.97668 0) (13.3762 6.11178 0) (12.1803 6.45434 0) (12.0528 0.0461831 0) (12.1382 0.0359199 0) (12.3025 -0.0531293 0) (12.4429 -0.0548471 0) (12.5945 -0.156172 0) (12.5824 -0.147998 0) (12.7249 -0.183793 0) (12.5888 -0.162411 0) (12.701 -0.109631 0) (12.5179 -0.112793 0) (12.6023 -0.0523775 0) (12.4547 -0.0919868 0) (12.5121 -0.0644287 0) (12.411 -0.0728998 0) (12.4701 -0.0615846 0) (12.4097 -0.032675 0) (12.5141 -0.0248938 0) (12.4523 0.0322257 0) (12.549 0.0332654 0) (12.4681 0.094395 0) (12.5386 0.0482156 0) (12.4685 0.0687306 0) (12.5298 -0.0180892 0) (12.4714 -0.0304205 0) (12.5247 -0.107177 0) (12.5136 -0.129511 0) (12.5573 -0.13969 0) (12.6348 -0.140969 0) (12.6111 -0.0933173 0) (12.7464 -0.0800483 0) (12.6513 -0.0381023 0) (12.7585 -0.0193428 0) (12.6625 -0.0254513 0) (12.6533 -0.00525144 0) (12.6453 -0.0348466 0) (12.4975 -0.0214899 0) (12.6017 -0.0380767 0) (12.4119 -0.0471762 0) (12.5199 -0.0284798 0) (12.4227 -0.0453179 0) (12.4251 -0.0134571 0) (12.4753 -0.0176646 0) (12.3785 0.00781624 0) (12.471 0.0138712 0) (12.4013 0.0332811 0) (12.4336 0.0310424 0) (12.4844 0.0673952 0) (12.4312 0.0727594 0) (12.5663 0.0979885 0) (12.5311 0.137496 0) (12.6397 0.121383 0) (12.6898 0.189585 0) (12.7052 0.143869 0) (12.842 0.172242 0) (12.8348 0.143732 0) (12.9647 0.0974524 0) (12.9768 0.0908496 0) (13.0493 -0.00208678 0) (13.0931 -0.0278109 0) (13.1007 -0.110911 0) (13.1251 -0.183581 0) (13.0571 -0.215592 0) (13.0627 -0.309578 0) (12.9678 -0.310139 0) (12.9293 -0.376521 0) (12.7937 -0.378776 0) (12.7344 -0.375812 0) (12.6251 -0.378961 0) (12.5657 -0.324757 0) (12.4668 -0.290405 0) (12.3882 -0.225155 0) (12.3509 -0.147706 0) (12.282 -0.0647897 0) (12.2814 0.0216673 0) (12.2157 0.138764 0) (12.2414 0.221768 0) (12.2336 0.320697 0) (12.2736 0.419512 0) (12.3323 0.443403 0) (12.385 0.533205 0) (12.4754 0.522982 0) (12.5807 0.535552 0) (12.6408 0.544882 0) (12.7858 0.475961 0) (12.8312 0.471845 0) (12.9358 0.392964 0) (12.9975 0.324666 0) (13.0324 0.265791 0) (13.0946 0.156895 0) (13.1166 0.0952573 0) (13.1048 0.010452 0) (13.146 -0.0698148 0) (13.0969 -0.113031 0) (13.1132 -0.186831 0) (13.1104 -0.230377 0) (13.0801 -0.260084 0) (13.0791 -0.320959 0) (13.0777 -0.323095 0) (13.042 -0.364559 0) (13.0731 -0.398128 0) (13.0531 -0.39755 0) (13.0945 -0.462031 0) (13.1088 -0.467353 0) (13.1649 -0.508077 0) (13.181 -0.570491 0) (13.2549 -0.589538 0) (13.2598 -0.659615 0) (13.3113 -0.727995 0) (13.3375 -0.756759 0) (13.342 -0.860355 0) (13.3882 -0.906745 0) (13.3881 -0.972924 0) (13.4257 -1.05235 0) (13.456 -1.08708 0) (13.4434 -1.16081 0) (13.4784 -1.19843 0) (13.4393 -1.22661 0) (13.4378 -1.25321 0) (13.3658 -1.21781 0) (13.3035 -1.19358 0) (13.174 -1.10416 0) (13.0953 -0.98876 0) (12.9186 -0.857451 0) (12.8471 -0.682224 0) (12.6457 -0.543929 0) (12.6152 -0.351518 0) (12.43 -0.227798 0) (12.4278 -0.0708568 0) (12.3153 0.0346995 0) (12.3295 0.0973497 0) (12.2755 0.178566 0) (12.3476 0.198511 0) (12.3133 0.165253 0) (12.432 0.178983 0) (12.4672 0.0751043 0) (12.5323 -0.000464795 0) (12.6306 -0.0937948 0) (12.6796 -0.295971 0) (12.739 -0.361623 0) (12.816 -0.596689 0) (12.8513 -0.744077 0) (12.8547 -0.886416 0) (12.8652 -1.17232 0) (12.8704 -1.24873 0) (12.7742 -1.46277 0) (12.9279 -1.64276 0) (12.5154 -1.73031 0) (12.7858 -1.95162 0) (12.4195 -1.97546 0) (12.4272 -1.9969 0) (12.3084 -2.23514 0) (12.0758 -2.12102 0) (11.6671 -2.09777 0) (11.7614 -2.16241 0) (11.3411 -2.10088 0) (10.7647 -1.79154 0) (10.836 -2.14186 0) (10.0313 -1.77132 0) (9.41323 -1.52592 0) (8.96288 -1.71254 0) (8.53837 -1.95125 0) (6.99226 -1.51734 0) (5.88798 -1.34825 0) (5.04444 -1.81595 0) (4.50876 -2.51901 0) (4.38525 -3.47502 0) (4.55129 -4.39156 0) (4.51144 -4.87732 0) (5.05368 -5.28274 0) (5.22088 -4.94811 0) (5.18604 -4.56794 0) (5.8161 -3.51477 0) (4.96097 -3.00424 0) (6.12338 -2.10127 0) (4.12796 -1.46825 0) (6.1132 -0.510039 0) (3.84488 0.0380069 0) (5.86464 0.831996 0) (3.85052 0.77131 0) (5.90282 1.7361 0) (4.52829 1.31542 0) (5.07038 2.60612 0) (6.13193 1.88565 0) (5.29222 3.49374 0) (7.77596 0.660779 0) (6.81391 3.69514 0) (9.3182 -0.0546784 0) (8.84248 5.39172 0) (10.7831 0.650984 0) (10.3647 6.7022 0) (11.6529 3.37049 0) (10.1279 7.7013 0) (12.4659 5.27778 0) (10.3534 8.20501 0) (12.9369 6.7004 0) (10.4856 7.61691 0) (12.7748 6.65035 0) (11.1869 6.85876 0) (12.8084 5.83935 0) (12.0366 5.97398 0) (12.2285 0.032722 0) (12.2797 0.0315185 0) (12.4365 -0.0163417 0) (12.5256 -0.0383982 0) (12.6015 -0.0962865 0) (12.593 -0.148693 0) (12.6102 -0.150073 0) (12.6042 -0.19016 0) (12.5585 -0.113975 0) (12.5748 -0.131287 0) (12.5145 -0.0716888 0) (12.531 -0.0737933 0) (12.4968 -0.0741918 0) (12.4538 -0.0398207 0) (12.451 -0.0721582 0) (12.3896 -0.011137 0) (12.4433 -0.0370443 0) (12.4293 0.034888 0) (12.4738 0.0293992 0) (12.5225 0.0869276 0) (12.5234 0.05739 0) (12.6249 0.0665106 0) (12.6027 -0.00295034 0) (12.6527 -0.0241343 0) (12.6259 -0.0981088 0) (12.5923 -0.12329 0) (12.609 -0.150238 0) (12.5702 -0.153234 0) (12.5878 -0.122 0) (12.6101 -0.106539 0) (12.5903 -0.0482207 0) (12.6599 -0.0397613 0) (12.5959 0.00959375 0) (12.6568 -0.0111366 0) (12.596 0.0206153 0) (12.5857 -0.0183828 0) (12.5871 -0.00227139 0) (12.5248 -0.0364831 0) (12.553 -0.0250868 0) (12.511 -0.0286976 0) (12.5001 -0.0270924 0) (12.5315 -0.0027946 0) (12.4819 -0.00425233 0) (12.516 0.0274843 0) (12.502 0.0275172 0) (12.485 0.0454203 0) (12.5456 0.053719 0) (12.4777 0.0695832 0) (12.5658 0.0713921 0) (12.5641 0.0950937 0) (12.6034 0.089329 0) (12.7106 0.112056 0) (12.6684 0.107321 0) (12.8315 0.0939012 0) (12.8154 0.0971574 0) (12.9067 0.0397139 0) (12.9623 0.0467883 0) (12.9644 -0.0285394 0) (13.0473 -0.0535595 0) (13.0312 -0.100148 0) (13.0246 -0.174538 0) (13.0308 -0.184422 0) (12.9561 -0.263856 0) (12.9685 -0.279577 0) (12.8893 -0.311559 0) (12.8026 -0.339432 0) (12.7957 -0.311107 0) (12.6611 -0.311548 0) (12.6984 -0.27593 0) (12.5517 -0.224806 0) (12.5192 -0.174706 0) (12.4644 -0.101364 0) (12.3834 -0.00504327 0) (12.3919 0.0445451 0) (12.3062 0.162304 0) (12.3315 0.212376 0) (12.3272 0.291592 0) (12.336 0.37093 0) (12.4068 0.393126 0) (12.4221 0.461343 0) (12.4952 0.471503 0) (12.5823 0.468594 0) (12.6133 0.488483 0) (12.7359 0.424539 0) (12.793 0.408215 0) (12.8685 0.349537 0) (12.953 0.263203 0) (12.9917 0.225348 0) (13.0408 0.12789 0) (13.0946 0.0572349 0) (13.0703 0.0234154 0) (13.1177 -0.0785942 0) (13.1005 -0.0962961 0) (13.0888 -0.151821 0) (13.1261 -0.222583 0) (13.0755 -0.235274 0) (13.0898 -0.305478 0) (13.0922 -0.347695 0) (13.0522 -0.360267 0) (13.0856 -0.423847 0) (13.0632 -0.433636 0) (13.0651 -0.459914 0) (13.0992 -0.519368 0) (13.0641 -0.508779 0) (13.1129 -0.595088 0) (13.1176 -0.609734 0) (13.1213 -0.668344 0) (13.1941 -0.74534 0) (13.2052 -0.772295 0) (13.2591 -0.871121 0) (13.3439 -0.922027 0) (13.37 -0.974751 0) (13.4574 -1.07202 0) (13.4959 -1.1105 0) (13.5159 -1.17953 0) (13.551 -1.225 0) (13.5094 -1.23066 0) (13.4697 -1.23943 0) (13.4243 -1.1928 0) (13.2886 -1.11603 0) (13.2604 -1.01434 0) (13.0748 -0.883347 0) (13.0541 -0.733352 0) (12.8611 -0.588487 0) (12.8258 -0.421845 0) (12.6987 -0.278483 0) (12.6256 -0.131838 0) (12.5563 -0.0410969 0) (12.5106 0.100169 0) (12.4085 0.0962363 0) (12.4661 0.200808 0) (12.3327 0.165191 0) (12.3785 0.179993 0) (12.3667 0.118143 0) (12.3241 0.0693716 0) (12.3938 -0.05296 0) (12.3676 -0.139841 0) (12.4458 -0.289667 0) (12.4669 -0.432026 0) (12.5487 -0.577368 0) (12.5584 -0.769745 0) (12.6399 -0.955824 0) (12.6402 -1.08812 0) (12.6702 -1.28294 0) (12.7517 -1.45646 0) (12.5411 -1.58009 0) (12.6649 -1.7363 0) (12.5604 -1.8269 0) (12.3907 -1.82985 0) (12.2613 -2.00714 0) (12.1887 -2.03134 0) (11.6878 -1.83286 0) (11.7998 -1.99019 0) (11.3522 -1.9354 0) (10.7431 -1.5697 0) (10.6514 -1.85401 0) (10.1403 -1.54797 0) (9.24439 -1.22465 0) (8.9621 -1.21941 0) (8.32537 -1.33875 0) (7.18925 -0.890733 0) (5.89361 -0.54455 0) (4.67199 -0.539945 0) (3.87809 -1.12386 0) (3.60826 -2.26376 0) (3.26593 -3.45772 0) (3.15833 -4.37244 0) (3.37631 -5.19125 0) (3.4815 -5.29521 0) (3.81096 -5.25088 0) (3.67817 -4.58633 0) (4.39264 -3.5752 0) (3.55211 -2.98887 0) (4.17079 -1.78456 0) (3.20387 -1.43539 0) (3.77962 -0.299611 0) (3.23375 0.231774 0) (3.05549 0.899601 0) (3.36588 1.38506 0) (2.9629 1.58385 0) (2.99186 1.39838 0) (3.55997 2.65332 0) (1.54265 -1.0189 0) (5.47627 3.76461 0) (1.51299 -1.21101 0) (6.49996 4.69463 0) (1.91238 -2.38351 0) (7.21021 5.06886 0) (4.10669 -3.43482 0) (8.88465 5.65397 0) (10.9766 3.5053 0) (9.81865 7.91647 0) (11.4999 6.08669 0) (9.05105 7.84585 0) (11.7399 6.90565 0) (9.85639 7.20693 0) (11.846 6.2538 0) (10.9151 6.57713 0) (12.1885 5.62679 0) (11.9272 5.79263 0) (12.0394 0.103786 0) (12.218 0.0690997 0) (12.3157 0.0504041 0) (12.5094 0.00820598 0) (12.5731 -0.0595773 0) (12.6229 -0.0978112 0) (12.6011 -0.160515 0) (12.6617 -0.168269 0) (12.5017 -0.156251 0) (12.6161 -0.137516 0) (12.4066 -0.082991 0) (12.555 -0.0734012 0) (12.4071 -0.0352742 0) (12.4679 -0.0243778 0) (12.4046 -0.0343337 0) (12.3738 0.00722137 0) (12.417 -0.0352303 0) (12.3891 0.0261841 0) (12.4659 -0.017373 0) (12.4932 0.0330725 0) (12.5383 -0.00261061 0) (12.6352 -0.000644328 0) (12.6418 -0.0202908 0) (12.7059 -0.0606843 0) (12.6729 -0.0653466 0) (12.6467 -0.117137 0) (12.6404 -0.112327 0) (12.5579 -0.136528 0) (12.5871 -0.113885 0) (12.5031 -0.0972805 0) (12.5611 -0.0653902 0) (12.5156 -0.0296576 0) (12.5624 -0.00924563 0) (12.5646 0.00718336 0) (12.5722 0.0153847 0) (12.5838 0.00361867 0) (12.5593 0.00828361 0) (12.5767 -0.0212457 0) (12.5307 -0.00750921 0) (12.5509 -0.0272904 0) (12.4964 -0.011844 0) (12.5291 -0.0110537 0) (12.5017 -0.00377255 0) (12.4976 0.0205893 0) (12.5339 0.0132759 0) (12.4946 0.0445287 0) (12.589 0.032428 0) (12.5187 0.0637362 0) (12.6039 0.0543131 0) (12.5955 0.0712691 0) (12.6133 0.0781718 0) (12.7051 0.0673886 0) (12.6284 0.0901405 0) (12.7785 0.0427625 0) (12.7346 0.0651564 0) (12.8124 0.00450904 0) (12.8676 6.88628e-05 0) (12.834 -0.0353621 0) (12.957 -0.0936558 0) (12.8986 -0.0979014 0) (12.9606 -0.181192 0) (12.9544 -0.185419 0) (12.9189 -0.2335 0) (12.978 -0.271657 0) (12.8704 -0.265759 0) (12.8824 -0.314584 0) (12.807 -0.269118 0) (12.737 -0.266 0) (12.7214 -0.228661 0) (12.5871 -0.15308 0) (12.5501 -0.12572 0) (12.4841 -0.0267402 0) (12.425 0.026409 0) (12.4175 0.087784 0) (12.3703 0.183185 0) (12.3574 0.221777 0) (12.3885 0.300988 0) (12.3605 0.356883 0) (12.4267 0.375914 0) (12.4538 0.418993 0) (12.4833 0.429555 0) (12.5883 0.399304 0) (12.6017 0.417341 0) (12.6901 0.362171 0) (12.768 0.320329 0) (12.7876 0.301992 0) (12.8882 0.205541 0) (12.9009 0.183494 0) (12.9464 0.11076 0) (13.0189 0.0379529 0) (12.9929 0.00284658 0) (13.069 -0.0712055 0) (13.0662 -0.122906 0) (13.0671 -0.152746 0) (13.1192 -0.219878 0) (13.0756 -0.247249 0) (13.0742 -0.273502 0) (13.0817 -0.339716 0) (13.0053 -0.328574 0) (13.0261 -0.399525 0) (12.9713 -0.418629 0) (12.9675 -0.448606 0) (12.9815 -0.518312 0) (12.9703 -0.531007 0) (13.0222 -0.594995 0) (13.0421 -0.658153 0) (13.1012 -0.692886 0) (13.1406 -0.786847 0) (13.2199 -0.844357 0) (13.2363 -0.913404 0) (13.323 -0.99685 0) (13.3314 -1.05535 0) (13.3685 -1.13486 0) (13.4099 -1.1731 0) (13.3919 -1.22149 0) (13.4156 -1.23159 0) (13.4035 -1.21414 0) (13.384 -1.196 0) (13.377 -1.11015 0) (13.3368 -1.0618 0) (13.29 -0.928541 0) (13.2532 -0.822288 0) (13.1647 -0.679641 0) (13.0956 -0.4939 0) (12.9639 -0.382184 0) (12.88 -0.172262 0) (12.6876 -0.100395 0) (12.6145 0.0607095 0) (12.4453 0.132778 0) (12.3238 0.191912 0) (12.2888 0.243406 0) (12.1794 0.227111 0) (12.151 0.216107 0) (12.2186 0.179261 0) (12.1335 0.0261752 0) (12.281 0.0268296 0) (12.2891 -0.225836 0) (12.3221 -0.279764 0) (12.4963 -0.475135 0) (12.4123 -0.662939 0) (12.5411 -0.776693 0) (12.6089 -1.02134 0) (12.4911 -1.08261 0) (12.6219 -1.31813 0) (12.5194 -1.47387 0) (12.3889 -1.47294 0) (12.5133 -1.72056 0) (12.174 -1.71036 0) (12.0281 -1.76836 0) (11.9924 -1.89786 0) (11.4566 -1.64095 0) (11.3939 -1.78864 0) (10.9713 -1.75126 0) (10.4942 -1.49079 0) (10.2318 -1.50346 0) (9.66706 -1.32077 0) (9.06415 -1.0516 0) (8.62683 -0.902028 0) (8.14229 -0.769224 0) (7.35937 -0.419575 0) (5.8298 0.098128 0) (4.47375 0.545214 0) (3.51203 0.119896 0) (2.89199 -0.84381 0) (2.35878 -2.0292 0) (2.05571 -3.25358 0) (1.83583 -4.51009 0) (1.9868 -5.21186 0) (2.13498 -5.68771 0) (2.23438 -5.38317 0) (2.56574 -4.71078 0) (2.51357 -3.78051 0) (2.1593 -2.7761 0) (2.37209 -1.85011 0) (1.83186 -1.29363 0) (2.10852 -0.436736 0) (1.70514 0.210838 0) (1.91055 0.0431434 0) (1.2477 1.31888 0) (2.37271 2.00523 0) (-1.36186 0.219857 0) (4.54645 4.06384 0) (0.357989 2.35562 0) (2.07705 2.73599 0) (-5.5872 -1.69112 0) (6.14029 4.10702 0) (-6.52965 -3.98147 0) (8.86442 7.27263 0) (-2.85893 -4.37912 0) (6.20345 4.95509 0) (5.85563 0.57922 0) (7.62999 6.40723 0) (10.477 6.1503 0) (8.06379 7.40926 0) (10.3385 6.69473 0) (9.04394 6.96689 0) (10.4624 6.04368 0) (10.0996 6.14618 0) (10.9872 5.15325 0) (11.4297 5.33173 0) (11.9941 0.0881949 0) (12.2581 0.0214243 0) (12.3404 0.0337995 0) (12.6332 -0.0228533 0) (12.6479 -0.0556808 0) (12.7114 -0.0855507 0) (12.6763 -0.145675 0) (12.6378 -0.136524 0) (12.5516 -0.159626 0) (12.4962 -0.117982 0) (12.4214 -0.0959757 0) (12.4544 -0.0727168 0) (12.4223 -0.0352958 0) (12.4756 -0.0311966 0) (12.4404 -0.0224483 0) (12.4702 0.00461221 0) (12.467 -0.0272366 0) (12.4883 0.0154595 0) (12.5186 -0.030697 0) (12.53 -0.00211788 0) (12.5641 -0.0265314 0) (12.6087 -0.0379051 0) (12.6424 -0.0348594 0) (12.6942 -0.0791835 0) (12.6831 -0.0544917 0) (12.7065 -0.10803 0) (12.6758 -0.0750024 0) (12.6595 -0.1134 0) (12.6219 -0.0820563 0) (12.5766 -0.0842473 0) (12.5691 -0.0629853 0) (12.527 -0.0364805 0) (12.552 -0.0307475 0) (12.5306 0.0010523 0) (12.58 -0.0134507 0) (12.5467 0.0132311 0) (12.603 -0.00800098 0) (12.5644 -0.00104077 0) (12.6048 -0.00640181 0) (12.5753 -0.00920855 0) (12.5784 -0.00204653 0) (12.5892 -0.000576369 0) (12.5772 -0.00183672 0) (12.5822 0.0161991 0) (12.5893 0.00109012 0) (12.581 0.0303337 0) (12.6228 0.0172089 0) (12.5841 0.0375963 0) (12.6329 0.0525441 0) (12.6233 0.0394399 0) (12.6574 0.0795676 0) (12.6915 0.0361978 0) (12.6772 0.0657391 0) (12.7492 0.02956 0) (12.7572 0.0136352 0) (12.7993 0.00192531 0) (12.8495 -0.0485031 0) (12.8435 -0.054957 0) (12.9228 -0.11455 0) (12.915 -0.141806 0) (12.9507 -0.184068 0) (12.9578 -0.219057 0) (12.9462 -0.237152 0) (12.9603 -0.261683 0) (12.9223 -0.258258 0) (12.867 -0.250479 0) (12.8527 -0.222887 0) (12.7564 -0.188875 0) (12.7547 -0.156747 0) (12.6709 -0.105864 0) (12.6009 -0.0568809 0) (12.6073 0.000691535 0) (12.5081 0.0679309 0) (12.5225 0.118772 0) (12.4693 0.182649 0) (12.4251 0.244098 0) (12.4696 0.272915 0) (12.4115 0.3386 0) (12.4729 0.344024 0) (12.5005 0.369321 0) (12.5032 0.385555 0) (12.614 0.356982 0) (12.61 0.360488 0) (12.6874 0.322853 0) (12.7644 0.280243 0) (12.7725 0.243583 0) (12.8694 0.181408 0) (12.8909 0.123739 0) (12.9224 0.0728599 0) (12.9966 0.00650008 0) (12.9811 -0.0442921 0) (13.017 -0.0784847 0) (13.0503 -0.145488 0) (13.0045 -0.15343 0) (13.0682 -0.202884 0) (13.0263 -0.241561 0) (13.0225 -0.249052 0) (13.0486 -0.309054 0) (13.0068 -0.332487 0) (13.0191 -0.359905 0) (13.0217 -0.430258 0) (13.0046 -0.448128 0) (13.0368 -0.514769 0) (13.0449 -0.575813 0) (13.0477 -0.606846 0) (13.1026 -0.707255 0) (13.0887 -0.74079 0) (13.1415 -0.822484 0) (13.158 -0.901963 0) (13.1818 -0.946122 0) (13.2152 -1.0437 0) (13.2497 -1.08688 0) (13.2814 -1.14331 0) (13.3424 -1.18865 0) (13.3664 -1.22656 0) (13.4162 -1.22061 0) (13.4446 -1.24024 0) (13.419 -1.19377 0) (13.4297 -1.14081 0) (13.3456 -1.0675 0) (13.2861 -0.916766 0) (13.1829 -0.795177 0) (13.0576 -0.604112 0) (12.9289 -0.419324 0) (12.7802 -0.24897 0) (12.6477 -0.058913 0) (12.5217 0.0780556 0) (12.3982 0.181785 0) (12.3523 0.287517 0) (12.1624 0.26185 0) (12.2477 0.326131 0) (12.089 0.223843 0) (12.1104 0.190534 0) (12.1561 0.125883 0) (12.0576 -0.0280828 0) (12.2093 -0.0876135 0) (12.1243 -0.210012 0) (12.2189 -0.421125 0) (12.2596 -0.416116 0) (12.1764 -0.718775 0) (12.3526 -0.779114 0) (12.1893 -0.890223 0) (12.2668 -1.2174 0) (12.1788 -1.1562 0) (12.0779 -1.36077 0) (12.078 -1.53735 0) (11.6861 -1.43568 0) (11.681 -1.66581 0) (11.4042 -1.61428 0) (10.9297 -1.4271 0) (10.8344 -1.67606 0) (10.3085 -1.51727 0) (9.90623 -1.18359 0) (9.52322 -1.22058 0) (9.08276 -1.14828 0) (8.56627 -0.824388 0) (7.92444 -0.658438 0) (7.5929 -0.539546 0) (7.04199 -0.236432 0) (5.90834 0.539084 0) (4.55353 1.26434 0) (3.31385 1.34465 0) (2.57796 0.752594 0) (1.97853 -0.402325 0) (1.52778 -1.66951 0) (1.01505 -3.04348 0) (0.908286 -4.32387 0) (0.602982 -5.32889 0) (0.749882 -5.52145 0) (0.753903 -5.37254 0) (0.740821 -4.5007 0) (0.843687 -3.40022 0) (0.420249 -2.45263 0) (0.706533 -1.68264 0) (0.233277 -1.11739 0) (0.123204 -0.00523163 0) (0.00387534 0.841706 0) (-0.44017 0.952818 0) (-1.55154 1.89609 0) (0.920517 2.42878 0) (-3.34448 1.21004 0) (-0.389751 1.15739 0) (-7.4514 0.0393138 0) (7.11413 5.82125 0) (-5.42634 -2.19156 0) (7.8304 5.70976 0) (-3.91671 -1.72892 0) (6.28999 4.44188 0) (-5.64458 -5.17774 0) (6.67961 4.71972 0) (0.740835 -1.26951 0) (4.8422 5.5385 0) (8.04434 5.70209 0) (6.73064 7.02474 0) (8.69004 6.39619 0) (8.23481 6.51027 0) (9.40325 5.59666 0) (9.57525 5.66856 0) (10.0587 4.57796 0) (10.7392 4.7651 0) (12.1434 0.0302218 0) (12.3082 0.0183367 0) (12.4663 0.0250822 0) (12.6828 0.00678773 0) (12.7424 -0.0175484 0) (12.7738 -0.0393442 0) (12.7596 -0.0705565 0) (12.7292 -0.0970562 0) (12.6454 -0.108593 0) (12.5914 -0.11321 0) (12.4966 -0.0956857 0) (12.5097 -0.0826944 0) (12.4631 -0.0667551 0) (12.4909 -0.035855 0) (12.472 -0.0519877 0) (12.4822 0.0106497 0) (12.5198 -0.0410248 0) (12.5272 0.0206049 0) (12.5992 -0.0390916 0) (12.6183 -0.0226635 0) (12.6519 -0.0393003 0) (12.7292 -0.0837102 0) (12.7086 -0.0522325 0) (12.8103 -0.129032 0) (12.7313 -0.0708201 0) (12.7964 -0.120011 0) (12.715 -0.079306 0) (12.7231 -0.0759753 0) (12.6611 -0.0728614 0) (12.6261 -0.0284197 0) (12.5959 -0.0456952 0) (12.5712 -0.00307612 0) (12.5494 -0.0132003 0) (12.5733 -0.00358391 0) (12.5555 -0.00127637 0) (12.5934 -0.0145112 0) (12.5866 -0.00249357 0) (12.6131 -0.021644 0) (12.629 -0.0130004 0) (12.6266 -0.0172035 0) (12.6475 -0.0207654 0) (12.6444 0.000827978 0) (12.6649 -0.0250139 0) (12.6519 0.0242808 0) (12.6626 -0.00782313 0) (12.6578 0.0370523 0) (12.669 0.0251482 0) (12.6519 0.024695 0) (12.6692 0.0659748 0) (12.6731 0.0125514 0) (12.6966 0.0761608 0) (12.7309 0.0133937 0) (12.7264 0.0325972 0) (12.7833 0.0254242 0) (12.801 -0.0410262 0) (12.8311 -0.000992892 0) (12.8832 -0.0969514 0) (12.8721 -0.0773511 0) (12.9398 -0.128807 0) (12.9451 -0.17617 0) (12.9587 -0.165209 0) (12.9913 -0.239268 0) (12.9549 -0.206091 0) (12.9866 -0.245347 0) (12.9495 -0.238613 0) (12.9027 -0.213846 0) (12.9115 -0.215163 0) (12.8083 -0.155118 0) (12.8357 -0.134065 0) (12.7395 -0.079988 0) (12.6978 -0.0142839 0) (12.6828 0.0373383 0) (12.5998 0.106503 0) (12.6019 0.160131 0) (12.56 0.206842 0) (12.5179 0.261821 0) (12.5539 0.292092 0) (12.5051 0.320239 0) (12.5331 0.348483 0) (12.5617 0.336047 0) (12.5411 0.349166 0) (12.6242 0.329131 0) (12.6371 0.292248 0) (12.6768 0.289752 0) (12.7741 0.220008 0) (12.7871 0.19564 0) (12.8682 0.149455 0) (12.9266 0.0769174 0) (12.9419 0.062901 0) (13.0245 -0.0157957 0) (13.0228 -0.0511011 0) (13.0401 -0.0746068 0) (13.0775 -0.147256 0) (13.0451 -0.151975 0) (13.075 -0.195753 0) (13.0639 -0.249605 0) (13.0413 -0.244781 0) (13.0616 -0.312326 0) (13.036 -0.337923 0) (13.0294 -0.353933 0) (13.0362 -0.436366 0) (13.0106 -0.437614 0) (13.0413 -0.510988 0) (13.0138 -0.566437 0) (13.0426 -0.6019 0) (13.03 -0.697367 0) (13.0517 -0.743216 0) (13.0577 -0.822061 0) (13.0824 -0.908713 0) (13.1029 -0.96901 0) (13.1311 -1.05583 0) (13.1711 -1.12124 0) (13.1887 -1.17332 0) (13.2172 -1.24262 0) (13.2163 -1.2553 0) (13.2025 -1.26955 0) (13.1623 -1.24605 0) (13.0789 -1.18637 0) (13.009 -1.09203 0) (12.8713 -0.975784 0) (12.7563 -0.828049 0) (12.6366 -0.649607 0) (12.4762 -0.503006 0) (12.3887 -0.297864 0) (12.2106 -0.153558 0) (12.1651 0.00170047 0) (11.9995 0.132702 0) (11.9584 0.202014 0) (11.894 0.283819 0) (11.7766 0.305738 0) (11.8429 0.319688 0) (11.732 0.301366 0) (11.7241 0.215774 0) (11.7729 0.193405 0) (11.6575 0.0173951 0) (11.7447 -0.0531933 0) (11.7113 -0.208911 0) (11.6607 -0.365273 0) (11.7914 -0.495987 0) (11.6082 -0.679959 0) (11.6982 -0.783778 0) (11.6261 -0.995981 0) (11.4047 -1.07271 0) (11.5198 -1.1625 0) (11.1278 -1.31247 0) (10.9491 -1.28844 0) (10.8013 -1.39061 0) (10.3629 -1.31062 0) (10.1147 -1.32045 0) (9.69268 -1.37239 0) (9.29106 -1.1228 0) (8.82967 -1.0918 0) (8.53378 -1.07999 0) (8.12274 -0.845016 0) (7.37729 -0.558795 0) (7.04097 -0.409916 0) (6.69555 -0.325434 0) (6.1538 -0.0273042 0) (5.30598 0.657721 0) (4.10047 1.50625 0) (3.21384 2.11442 0) (2.54856 2.01195 0) (2.00658 1.24129 0) (1.47175 0.150318 0) (0.781266 -1.21894 0) (0.281042 -2.75432 0) (-0.230589 -4.27751 0) (-0.263316 -5.30949 0) (-0.563501 -5.8351 0) (-0.716303 -5.48126 0) (-0.750362 -4.66336 0) (-0.692013 -3.4925 0) (-0.764152 -2.60593 0) (-0.839579 -1.66767 0) (-1.16215 -0.924232 0) (-0.800929 -0.220936 0) (-0.78804 0.434949 0) (-1.23881 0.862157 0) (-2.97818 1.42097 0) (-1.28617 2.48339 0) (-3.91389 1.33321 0) (2.16706 4.40536 0) (-4.01518 -2.18069 0) (5.39414 3.87902 0) (-4.02056 -2.63047 0) (5.43638 3.60577 0) (-5.46964 -6.17244 0) (7.88665 6.83179 0) (-1.67068 -4.06393 0) (5.51655 2.59386 0) (-0.344943 -1.51669 0) (3.3428 4.34671 0) (5.53879 4.43657 0) (5.11785 6.17627 0) (6.68981 5.61926 0) (7.28781 6.25042 0) (8.03279 5.27799 0) (8.62007 5.39939 0) (9.09957 4.50683 0) (9.60197 4.35512 0) (12.2632 0.00128481 0) (12.3699 0.0235772 0) (12.5396 0.0309043 0) (12.6973 0.016536 0) (12.7629 -0.0187356 0) (12.7673 -0.0367057 0) (12.7506 -0.0704187 0) (12.7235 -0.0858195 0) (12.6395 -0.0978978 0) (12.6132 -0.0969381 0) (12.5011 -0.0674924 0) (12.5406 -0.0628793 0) (12.4649 -0.0297179 0) (12.5246 -0.0330435 0) (12.4925 -0.0330716 0) (12.5384 -0.0109561 0) (12.5782 -0.0629019 0) (12.6071 -0.0176558 0) (12.6915 -0.09495 0) (12.7039 -0.0655769 0) (12.7536 -0.091276 0) (12.7739 -0.112745 0) (12.7624 -0.0619691 0) (12.786 -0.132555 0) (12.7136 -0.0399579 0) (12.7207 -0.0985701 0) (12.651 -0.034905 0) (12.6365 -0.0371512 0) (12.6011 -0.0466713 0) (12.5688 0.00843874 0) (12.5711 -0.047176 0) (12.5557 0.0148822 0) (12.5589 -0.0289468 0) (12.5853 -0.00578364 0) (12.5766 -0.0134157 0) (12.6235 -0.0320763 0) (12.6003 -0.00924408 0) (12.6522 -0.0392904 0) (12.6335 -0.0168664 0) (12.6676 -0.0263068 0) (12.6457 -0.0241276 0) (12.6681 0.000120296 0) (12.6528 -0.0231073 0) (12.6514 0.0164025 0) (12.6454 0.000845668 0) (12.6316 0.0205493 0) (12.6491 0.0334117 0) (12.6179 0.0102277 0) (12.6451 0.0591082 0) (12.6384 0.00696396 0) (12.6618 0.0487017 0) (12.6937 0.00930204 0) (12.6841 -0.00505551 0) (12.7462 0.0133675 0) (12.7466 -0.0676353 0) (12.7981 -0.0267913 0) (12.8213 -0.110148 0) (12.8333 -0.11525 0) (12.8802 -0.133712 0) (12.877 -0.205616 0) (12.9036 -0.175474 0) (12.9036 -0.24438 0) (12.8927 -0.226226 0) (12.9043 -0.224072 0) (12.8622 -0.249689 0) (12.8439 -0.179708 0) (12.8105 -0.190046 0) (12.7541 -0.126971 0) (12.7342 -0.0739142 0) (12.6655 -0.0595075 0) (12.6181 0.0402635 0) (12.596 0.0638678 0) (12.5385 0.125189 0) (12.5264 0.197449 0) (12.5059 0.209351 0) (12.4639 0.283484 0) (12.4999 0.302435 0) (12.4682 0.310564 0) (12.4955 0.353823 0) (12.5338 0.316371 0) (12.5337 0.327249 0) (12.6042 0.308646 0) (12.6347 0.251592 0) (12.6711 0.249457 0) (12.7495 0.183971 0) (12.7713 0.136337 0) (12.8263 0.109543 0) (12.8807 0.0359999 0) (12.8873 0.0138615 0) (12.9532 -0.0303847 0) (12.9624 -0.085786 0) (12.9743 -0.0937143 0) (13.0153 -0.139302 0) (12.9933 -0.171088 0) (13.0197 -0.173672 0) (13.0167 -0.233879 0) (12.9898 -0.238599 0) (13.0051 -0.270993 0) (12.965 -0.327619 0) (12.9471 -0.336927 0) (12.9263 -0.405853 0) (12.8898 -0.444114 0) (12.8825 -0.488563 0) (12.844 -0.566714 0) (12.8357 -0.604883 0) (12.8082 -0.681333 0) (12.7936 -0.755492 0) (12.7794 -0.809477 0) (12.7618 -0.911454 0) (12.7422 -0.968625 0) (12.7285 -1.04668 0) (12.6773 -1.12521 0) (12.6486 -1.16796 0) (12.5715 -1.2189 0) (12.4954 -1.22457 0) (12.401 -1.20203 0) (12.2566 -1.16211 0) (12.136 -1.08137 0) (11.9627 -0.981139 0) (11.8048 -0.882717 0) (11.6575 -0.72307 0) (11.4923 -0.568759 0) (11.3598 -0.41703 0) (11.2277 -0.194118 0) (11.0985 -0.0528817 0) (11.0164 0.110616 0) (10.8954 0.245141 0) (10.8662 0.301773 0) (10.804 0.378025 0) (10.7468 0.364207 0) (10.7854 0.351546 0) (10.7414 0.311237 0) (10.7549 0.199804 0) (10.8134 0.158815 0) (10.7649 0.0162389 0) (10.8436 -0.125406 0) (10.802 -0.164886 0) (10.7844 -0.410421 0) (10.7914 -0.457047 0) (10.6395 -0.590713 0) (10.6065 -0.791836 0) (10.4221 -0.774217 0) (10.245 -0.974876 0) (10.0428 -1.01186 0) (9.72837 -1.05338 0) (9.46164 -1.12445 0) (9.03861 -1.03941 0) (8.667 -1.11937 0) (8.27486 -0.974257 0) (7.80823 -0.871275 0) (7.35454 -0.888714 0) (6.8589 -0.774615 0) (6.47632 -0.60623 0) (6.17051 -0.380133 0) (5.90288 -0.313807 0) (5.52209 -0.187174 0) (5.03194 0.146841 0) (4.39957 0.675059 0) (3.66922 1.46864 0) (3.03094 2.21593 0) (2.51314 2.57949 0) (2.07631 2.36031 0) (1.77285 1.60381 0) (1.27851 0.551431 0) (0.729864 -0.776927 0) (0.0307587 -2.34601 0) (-0.493 -3.88013 0) (-1.19966 -4.96067 0) (-1.42154 -5.30127 0) (-1.86294 -5.31446 0) (-2.16671 -4.57756 0) (-2.24927 -3.46372 0) (-2.29031 -2.4621 0) (-2.27539 -1.79474 0) (-2.351 -1.21906 0) (-2.07639 -0.12535 0) (-2.29677 1.02549 0) (-1.99144 1.81173 0) (-3.31409 2.49663 0) (-0.831612 2.24522 0) (-2.56699 -0.803809 0) (2.6046 3.10286 0) (-3.51462 -2.57952 0) (4.65529 4.01902 0) (-3.83105 -3.97643 0) (6.68758 5.52176 0) (-1.90346 -3.45895 0) (5.9926 4.58716 0) (-2.19352 -4.53071 0) (4.19119 2.48787 0) (0.0428963 -0.825704 0) (2.00415 3.48925 0) (3.00993 3.36525 0) (3.26491 5.40973 0) (4.6234 4.76727 0) (5.78176 5.35759 0) (6.60715 4.49706 0) (7.66121 4.65576 0) (8.31724 3.905 0) (8.98561 3.88742 0) (12.1961 -0.0294976 0) (12.2475 0.0568261 0) (12.3945 0.0737455 0) (12.4964 0.0732614 0) (12.5477 0.0345809 0) (12.5234 -0.000695159 0) (12.5071 -0.0228705 0) (12.4648 -0.0599578 0) (12.4124 -0.0659603 0) (12.3772 -0.0815078 0) (12.3175 -0.061817 0) (12.3398 -0.0575753 0) (12.307 -0.050107 0) (12.3577 -0.0500978 0) (12.3474 -0.0664163 0) (12.399 -0.0500961 0) (12.4128 -0.0897611 0) (12.4445 -0.0616435 0) (12.4694 -0.10166 0) (12.4624 -0.0905383 0) (12.4688 -0.0848814 0) (12.4355 -0.10562 0) (12.426 -0.0488923 0) (12.3856 -0.0975338 0) (12.3561 -0.0283816 0) (12.3266 -0.0572008 0) (12.2959 -0.0256184 0) (12.2939 -0.00998365 0) (12.2647 -0.0368654 0) (12.2835 0.0108541 0) (12.2629 -0.0374466 0) (12.2946 -0.00162749 0) (12.2802 -0.0273453 0) (12.3135 -0.025068 0) (12.3102 -0.0209142 0) (12.326 -0.0448905 0) (12.3238 -0.0223678 0) (12.3276 -0.0439949 0) (12.3213 -0.0257723 0) (12.3212 -0.0291364 0) (12.2969 -0.0238625 0) (12.3069 -0.000232719 0) (12.2801 -0.0114865 0) (12.282 0.0193248 0) (12.2712 0.0133811 0) (12.26 0.0285944 0) (12.2834 0.0380304 0) (12.2521 0.0170768 0) (12.2911 0.0479358 0) (12.2777 0.0104295 0) (12.3038 0.0254462 0) (12.3293 0.00255385 0) (12.3134 -0.0283432 0) (12.3728 -0.00726241 0) (12.3515 -0.080246 0) (12.4029 -0.0584579 0) (12.4016 -0.115619 0) (12.4068 -0.141401 0) (12.438 -0.137548 0) (12.4096 -0.214977 0) (12.4346 -0.177159 0) (12.4003 -0.239451 0) (12.3835 -0.221352 0) (12.3688 -0.210011 0) (12.3112 -0.231503 0) (12.2917 -0.147682 0) (12.2319 -0.159208 0) (12.1864 -0.0854476 0) (12.1544 -0.0357068 0) (12.0917 -0.0200359 0) (12.0632 0.0771623 0) (12.034 0.0939236 0) (12.0071 0.148593 0) (12.0095 0.214778 0) (12.005 0.213615 0) (12.0077 0.282916 0) (12.0467 0.294792 0) (12.0501 0.29214 0) (12.0918 0.333141 0) (12.1329 0.292377 0) (12.1516 0.29165 0) (12.2165 0.280453 0) (12.2466 0.215782 0) (12.2899 0.213195 0) (12.3536 0.156377 0) (12.3767 0.100339 0) (12.4367 0.0865003 0) (12.4761 0.00952916 0) (12.4984 -0.0117588 0) (12.5499 -0.0443327 0) (12.5566 -0.10585 0) (12.5763 -0.106404 0) (12.5878 -0.151663 0) (12.5747 -0.175192 0) (12.5712 -0.182325 0) (12.5517 -0.224513 0) (12.5144 -0.233595 0) (12.4947 -0.254963 0) (12.4431 -0.297253 0) (12.4035 -0.315042 0) (12.3551 -0.357379 0) (12.3013 -0.408199 0) (12.2524 -0.447598 0) (12.1961 -0.516687 0) (12.1359 -0.57519 0) (12.0742 -0.639943 0) (12.0055 -0.719709 0) (11.9264 -0.789055 0) (11.8498 -0.868572 0) (11.7462 -0.940705 0) (11.6447 -1.00472 0) (11.5061 -1.06042 0) (11.3764 -1.09408 0) (11.198 -1.11332 0) (11.0385 -1.10476 0) (10.831 -1.06603 0) (10.6289 -1.00209 0) (10.4034 -0.911457 0) (10.178 -0.801428 0) (9.96601 -0.683641 0) (9.76833 -0.532758 0) (9.60774 -0.396398 0) (9.45685 -0.243252 0) (9.35595 -0.0815247 0) (9.25378 0.0341838 0) (9.21725 0.170405 0) (9.17619 0.26769 0) (9.19313 0.318019 0) (9.17884 0.367076 0) (9.20987 0.349625 0) (9.24454 0.331154 0) (9.25973 0.291397 0) (9.31217 0.17921 0) (9.32167 0.153358 0) (9.36155 0.0107159 0) (9.33803 -0.108508 0) (9.32341 -0.187618 0) (9.27813 -0.344188 0) (9.16623 -0.442975 0) (9.05618 -0.522653 0) (8.87797 -0.650473 0) (8.64606 -0.695144 0) (8.38919 -0.764601 0) (8.11379 -0.802547 0) (7.72259 -0.736351 0) (7.35125 -0.793787 0) (6.96787 -0.757565 0) (6.49067 -0.65829 0) (6.18156 -0.654471 0) (5.73797 -0.514018 0) (5.38611 -0.404062 0) (5.11359 -0.449718 0) (4.68947 -0.42325 0) (4.308 -0.223389 0) (3.96202 0.0759362 0) (3.55579 0.310735 0) (3.28338 0.620957 0) (2.92504 1.15172 0) (2.61452 1.80916 0) (2.39318 2.43162 0) (2.23702 2.77511 0) (2.29112 2.54296 0) (2.14225 1.94574 0) (1.72392 1.03603 0) (1.25121 -0.253592 0) (0.75235 -1.78238 0) (-0.0671631 -3.33061 0) (-0.752213 -4.51644 0) (-1.46672 -4.86728 0) (-2.24469 -4.51584 0) (-3.07042 -3.90381 0) (-3.62341 -2.84684 0) (-4.13026 -1.93891 0) (-4.29302 -1.33693 0) (-3.93641 -0.850431 0) (-3.00368 -0.0778412 0) (-2.58726 1.0772 0) (-2.30626 1.75896 0) (-3.40648 1.77513 0) (0.530107 1.02831 0) (-1.86821 -0.72071 0) (1.807 3.52572 0) (-3.15279 -2.8901 0) (3.21369 3.90019 0) (-3.77952 -3.89057 0) (5.0981 3.94817 0) (-4.74407 -5.52909 0) (5.68813 5.78527 0) (-1.42088 -2.53911 0) (2.78381 1.84641 0) (-0.344038 -0.726456 0) (1.13541 2.40175 0) (1.65401 2.12798 0) (2.27186 4.23364 0) (3.38907 3.93871 0) (4.9454 4.43995 0) (5.51093 3.91265 0) (6.47282 3.87341 0) (7.00791 3.42228 0) (8.07933 3.57445 0) (11.3641 0.00719023 0) (11.4062 0.110649 0) (11.5131 0.136926 0) (11.5984 0.118201 0) (11.6485 0.0567841 0) (11.6289 0.0118725 0) (11.6389 -0.027085 0) (11.5907 -0.0548142 0) (11.5737 -0.0719003 0) (11.5348 -0.0736764 0) (11.5055 -0.0586351 0) (11.5093 -0.0565784 0) (11.4798 -0.0470788 0) (11.5097 -0.0594112 0) (11.4795 -0.0623687 0) (11.5101 -0.0656912 0) (11.4814 -0.0848837 0) (11.4942 -0.0682796 0) (11.4756 -0.0911236 0) (11.4534 -0.0735878 0) (11.4431 -0.0709688 0) (11.3946 -0.0688816 0) (11.3975 -0.0347981 0) (11.3454 -0.0576283 0) (11.3469 -0.0155342 0) (11.3156 -0.0344488 0) (11.3097 -0.0156508 0) (11.3125 -0.0110269 0) (11.2933 -0.031465 0) (11.3176 -0.00382862 0) (11.2939 -0.0383869 0) (11.3217 -0.0142016 0) (11.2971 -0.0323435 0) (11.3176 -0.030387 0) (11.2999 -0.023427 0) (11.3033 -0.0407277 0) (11.2907 -0.0184477 0) (11.2814 -0.0299497 0) (11.2743 -0.0160112 0) (11.2581 -0.0109017 0) (11.245 -0.0121051 0) (11.2401 0.0107367 0) (11.221 0.000845944 0) (11.2273 0.0162732 0) (11.2093 0.021496 0) (11.2214 0.0175672 0) (11.2234 0.0348521 0) (11.22 0.0122675 0) (11.2459 0.0304428 0) (11.2352 0.0119573 0) (11.2671 0.00475927 0) (11.2712 -0.00234659 0) (11.2676 -0.0362744 0) (11.3075 -0.0279599 0) (11.2693 -0.0757198 0) (11.3183 -0.0814718 0) (11.2763 -0.114238 0) (11.2801 -0.140424 0) (11.2741 -0.145818 0) (11.2163 -0.185789 0) (11.2255 -0.179476 0) (11.1463 -0.20307 0) (11.1222 -0.193811 0) (11.0798 -0.178818 0) (11.0058 -0.172638 0) (10.9922 -0.121653 0) (10.916 -0.102581 0) (10.8888 -0.0508019 0) (10.8611 -0.00694662 0) (10.8072 0.017165 0) (10.8115 0.0851072 0) (10.7873 0.112671 0) (10.7854 0.157626 0) (10.8106 0.206717 0) (10.8106 0.217976 0) (10.8482 0.262972 0) (10.8919 0.2737 0) (10.9187 0.271425 0) (10.9907 0.291473 0) (11.0374 0.261948 0) (11.0951 0.248692 0) (11.1724 0.231492 0) (11.2166 0.176797 0) (11.2875 0.1585 0) (11.344 0.110457 0) (11.381 0.0602273 0) (11.4356 0.0367874 0) (11.4557 -0.0182002 0) (11.4801 -0.0436787 0) (11.496 -0.0673602 0) (11.4861 -0.108624 0) (11.485 -0.115395 0) (11.4649 -0.134656 0) (11.4352 -0.157781 0) (11.4127 -0.156872 0) (11.3704 -0.185439 0) (11.3305 -0.199632 0) (11.2863 -0.212292 0) (11.2304 -0.253387 0) (11.1744 -0.272558 0) (11.1054 -0.318187 0) (11.0346 -0.366976 0) (10.9556 -0.407455 0) (10.8677 -0.47177 0) (10.7704 -0.52185 0) (10.6603 -0.580815 0) (10.5347 -0.647013 0) (10.3941 -0.703726 0) (10.2348 -0.768593 0) (10.0574 -0.823935 0) (9.85647 -0.863639 0) (9.63482 -0.900587 0) (9.39846 -0.917356 0) (9.14369 -0.918631 0) (8.89615 -0.897712 0) (8.63043 -0.836039 0) (8.3823 -0.76249 0) (8.12434 -0.671393 0) (7.89443 -0.577182 0) (7.67472 -0.484305 0) (7.50075 -0.379287 0) (7.34466 -0.269005 0) (7.23475 -0.153948 0) (7.15972 -0.027812 0) (7.11503 0.0861365 0) (7.12131 0.187287 0) (7.13104 0.26728 0) (7.19109 0.302473 0) (7.22446 0.327871 0) (7.31037 0.317874 0) (7.35615 0.27992 0) (7.43328 0.237438 0) (7.47145 0.165041 0) (7.51386 0.0856613 0) (7.5259 0.00325906 0) (7.49272 -0.0942976 0) (7.45346 -0.196056 0) (7.32102 -0.25695 0) (7.19094 -0.328512 0) (6.9904 -0.40419 0) (6.74566 -0.421928 0) (6.49078 -0.472057 0) (6.19245 -0.500595 0) (5.86909 -0.443004 0) (5.55527 -0.452358 0) (5.1604 -0.409863 0) (4.87266 -0.403363 0) (4.51685 -0.431025 0) (4.22291 -0.32801 0) (3.91661 -0.283423 0) (3.59562 -0.256224 0) (3.11989 -0.0578971 0) (2.71627 0.0767275 0) (2.47902 0.170347 0) (2.42471 0.30997 0) (2.35583 0.44968 0) (2.28864 0.796047 0) (2.19409 1.32322 0) (2.21498 1.90887 0) (2.2447 2.47266 0) (2.52672 2.70453 0) (2.80702 2.53253 0) (2.86866 2.06503 0) (2.97337 1.2443 0) (2.97233 0.0823253 0) (2.59299 -1.2288 0) (1.78761 -2.61483 0) (0.463052 -3.83426 0) (-0.514043 -4.22708 0) (-1.29631 -3.79836 0) (-2.31571 -3.10057 0) (-2.9026 -2.29362 0) (-3.22343 -1.83023 0) (-3.23882 -2.09544 0) (-2.78747 -2.17638 0) (-2.21527 -1.25422 0) (-1.67767 0.214381 0) (-1.22486 1.43539 0) (-2.98209 1.69459 0) (0.513026 -0.409291 0) (-2.18947 -0.984408 0) (1.36597 3.39823 0) (-3.62674 -3.62532 0) (3.6439 3.77552 0) (-3.52699 -5.24459 0) (5.03203 4.53458 0) (-1.50437 -2.76624 0) (3.59877 3.83572 0) (-0.962845 -2.921 0) (1.59023 2.00751 0) (-0.318831 -0.131917 0) (0.908764 2.34284 0) (0.542269 2.21712 0) (1.34473 3.74472 0) (2.37544 2.95686 0) (4.38469 3.60787 0) (4.94399 3.65917 0) (5.73019 3.29972 0) (6.00301 2.65299 0) (7.28749 2.6103 0) (9.71037 0.0397519 0) (9.76387 0.150964 0) (9.84598 0.17891 0) (9.93014 0.13774 0) (9.96922 0.0764372 0) (9.98178 0.0167851 0) (9.97867 -0.0222628 0) (9.94024 -0.0493615 0) (9.92031 -0.0599574 0) (9.87473 -0.0544148 0) (9.85336 -0.0481387 0) (9.82787 -0.0410683 0) (9.81489 -0.0420973 0) (9.81455 -0.0446276 0) (9.79876 -0.0532639 0) (9.80569 -0.0562194 0) (9.77689 -0.0655985 0) (9.78265 -0.0615967 0) (9.74721 -0.0634655 0) (9.73622 -0.0615663 0) (9.70671 -0.0476895 0) (9.67676 -0.0477268 0) (9.67016 -0.0264196 0) (9.63023 -0.0318383 0) (9.63937 -0.0176305 0) (9.60701 -0.0172187 0) (9.61602 -0.0180052 0) (9.6074 -0.00952891 0) (9.59911 -0.0234021 0) (9.61232 -0.0121121 0) (9.5875 -0.0243964 0) (9.60615 -0.0196901 0) (9.57778 -0.021758 0) (9.5876 -0.0236654 0) (9.56734 -0.0186873 0) (9.56046 -0.0254043 0) (9.5491 -0.0155611 0) (9.53464 -0.016908 0) (9.52786 -0.00885721 0) (9.51492 -0.00373103 0) (9.5051 0.000265918 0) (9.50379 0.0127702 0) (9.49336 0.0109035 0) (9.50088 0.0201089 0) (9.49603 0.0206703 0) (9.50685 0.0200714 0) (9.5134 0.0233517 0) (9.5176 0.0110328 0) (9.53196 0.0170829 0) (9.53183 0.00391052 0) (9.54554 -0.00389689 0) (9.54483 -0.01226 0) (9.53818 -0.0373596 0) (9.54499 -0.0376 0) (9.51606 -0.070321 0) (9.52537 -0.0808241 0) (9.47877 -0.0979341 0) (9.46739 -0.123588 0) (9.42439 -0.119388 0) (9.37534 -0.147062 0) (9.3421 -0.139675 0) (9.26484 -0.147317 0) (9.22675 -0.149205 0) (9.16012 -0.125631 0) (9.09889 -0.124488 0) (9.06696 -0.0829843 0) (8.99805 -0.0586651 0) (8.98713 -0.0287252 0) (8.951 0.017376 0) (8.93585 0.0405137 0) (8.94837 0.089146 0) (8.94387 0.124119 0) (8.97545 0.149113 0) (9.01232 0.186559 0) (9.04195 0.197116 0) (9.11102 0.215468 0) (9.16359 0.226832 0) (9.23223 0.219009 0) (9.31541 0.221801 0) (9.38098 0.203361 0) (9.46318 0.18104 0) (9.53829 0.16361 0) (9.59721 0.123808 0) (9.66848 0.0988225 0) (9.71396 0.068567 0) (9.75349 0.0266806 0) (9.79056 0.00799406 0) (9.79987 -0.0252536 0) (9.81024 -0.0507768 0) (9.80709 -0.0645013 0) (9.78845 -0.093524 0) (9.77233 -0.100898 0) (9.73822 -0.113607 0) (9.69972 -0.13066 0) (9.66199 -0.13268 0) (9.61146 -0.151043 0) (9.55996 -0.165686 0) (9.5058 -0.176449 0) (9.43677 -0.204465 0) (9.36761 -0.228659 0) (9.28548 -0.258263 0) (9.19319 -0.299648 0) (9.09168 -0.337541 0) (8.97475 -0.382736 0) (8.84189 -0.429637 0) (8.69049 -0.474335 0) (8.5168 -0.522317 0) (8.31841 -0.566499 0) (8.10225 -0.608165 0) (7.86138 -0.636591 0) (7.60434 -0.651259 0) (7.32248 -0.658991 0) (7.02858 -0.656251 0) (6.72316 -0.651371 0) (6.42487 -0.630679 0) (6.14227 -0.596198 0) (5.89001 -0.544841 0) (5.66387 -0.480768 0) (5.46926 -0.41189 0) (5.30021 -0.339783 0) (5.164 -0.26158 0) (5.0505 -0.179282 0) (4.98561 -0.0938929 0) (4.93923 0.00205182 0) (4.94614 0.0761411 0) (4.96633 0.149163 0) (5.03067 0.198338 0) (5.09132 0.229405 0) (5.17537 0.246046 0) (5.25752 0.231004 0) (5.32076 0.214112 0) (5.38342 0.171897 0) (5.4069 0.125588 0) (5.42185 0.0847303 0) (5.37706 0.0276852 0) (5.33577 -0.0163653 0) (5.21394 -0.0600469 0) (5.09074 -0.112855 0) (4.90092 -0.138162 0) (4.67347 -0.162219 0) (4.5019 -0.215305 0) (4.22462 -0.244435 0) (4.06187 -0.267097 0) (3.80049 -0.245498 0) (3.55783 -0.21962 0) (3.27099 -0.180021 0) (2.92041 -0.125013 0) (2.53911 -0.0900389 0) (2.3555 -0.0505948 0) (2.04648 0.0683374 0) (1.87037 0.184408 0) (1.68614 0.221556 0) (1.72605 0.108092 0) (1.68605 0.0874763 0) (1.86062 0.22062 0) (1.90068 0.427723 0) (1.89614 0.751582 0) (2.01364 1.20269 0) (2.22194 1.75857 0) (2.516 2.22081 0) (3.08407 2.35779 0) (3.56873 2.2845 0) (4.05939 1.98197 0) (4.64885 1.23072 0) (4.93382 0.271444 0) (4.89548 -0.573208 0) (4.20349 -1.49452 0) (2.92913 -2.8336 0) (1.22753 -3.89818 0) (0.413878 -3.69967 0) (-0.346609 -2.9148 0) (-1.11108 -2.24167 0) (-1.32076 -1.84914 0) (-1.33197 -1.96565 0) (-1.24535 -2.14216 0) (-1.5005 -1.35062 0) (-1.52386 0.552394 0) (-1.03383 2.02163 0) (-2.73296 1.24031 0) (0.388445 -1.21997 0) (-2.8107 -0.214379 0) (1.5574 3.1742 0) (-3.14449 -4.04533 0) (3.34136 3.58974 0) (-3.13302 -4.21548 0) (3.64623 2.92249 0) (-3.06366 -3.32866 0) (2.36602 3.81173 0) (-0.139883 -1.81461 0) (0.964938 1.4867 0) (0.148357 0.0264394 0) (-0.131344 2.09036 0) (-0.283859 1.79457 0) (0.361245 2.40404 0) (1.47081 1.37366 0) (3.33804 2.16801 0) (4.95256 2.55122 0) (6.02267 2.54811 0) (6.04878 2.29537 0) (6.68069 2.22528 0) (7.523 0.0659764 0) (7.55899 0.126351 0) (7.59446 0.129981 0) (7.64975 0.0984021 0) (7.68567 0.0569038 0) (7.70224 0.0162449 0) (7.69531 -0.00756466 0) (7.67534 -0.0208434 0) (7.65748 -0.0243512 0) (7.63148 -0.0259058 0) (7.61899 -0.0285374 0) (7.60831 -0.0298893 0) (7.60757 -0.0342835 0) (7.60436 -0.0398337 0) (7.59152 -0.0463028 0) (7.57753 -0.046814 0) (7.5495 -0.0481244 0) (7.53021 -0.0407235 0) (7.49622 -0.0386719 0) (7.47483 -0.0337547 0) (7.44687 -0.0252994 0) (7.42775 -0.0246177 0) (7.41581 -0.0134376 0) (7.39914 -0.0176013 0) (7.39938 -0.0112549 0) (7.38418 -0.0127372 0) (7.38665 -0.0138379 0) (7.37584 -0.0094547 0) (7.37003 -0.0167478 0) (7.36477 -0.0101484 0) (7.34864 -0.0164389 0) (7.34727 -0.0121616 0) (7.32679 -0.0125918 0) (7.32487 -0.0135512 0) (7.30782 -0.00914295 0) (7.30106 -0.0126668 0) (7.28999 -0.005742 0) (7.2811 -0.00605779 0) (7.27629 -0.0012122 0) (7.27048 0.00317012 0) (7.26898 0.00356501 0) (7.27142 0.0106381 0) (7.2714 0.00894246 0) (7.27954 0.0121276 0) (7.2803 0.0136929 0) (7.28943 0.0119156 0) (7.29335 0.015224 0) (7.29741 0.0080708 0) (7.30258 0.0102636 0) (7.30141 0.00394077 0) (7.30436 -0.004924 0) (7.29807 -0.0115285 0) (7.28745 -0.0277318 0) (7.27666 -0.0308745 0) (7.24841 -0.0494562 0) (7.22838 -0.0584825 0) (7.18346 -0.069169 0) (7.14902 -0.0828019 0) (7.09744 -0.0814511 0) (7.04599 -0.0941096 0) (6.99287 -0.0921076 0) (6.92968 -0.0945044 0) (6.8773 -0.0923251 0) (6.81567 -0.0786123 0) (6.76562 -0.0718064 0) (6.72488 -0.047067 0) (6.68484 -0.0295827 0) (6.67413 -0.00483287 0) (6.65571 0.0253366 0) (6.66557 0.0430941 0) (6.68445 0.076523 0) (6.712 0.0968085 0) (6.7616 0.113279 0) (6.81784 0.13664 0) (6.88061 0.140289 0) (6.96298 0.151296 0) (7.03771 0.156443 0) (7.12591 0.146179 0) (7.21186 0.145896 0) (7.29313 0.130224 0) (7.37466 0.111322 0) (7.44599 0.0986151 0) (7.50553 0.0704019 0) (7.56064 0.051321 0) (7.59505 0.0315448 0) (7.62399 0.00460829 0) (7.63762 -0.0101905 0) (7.63761 -0.029487 0) (7.63116 -0.0451913 0) (7.61313 -0.0542807 0) (7.58669 -0.0692545 0) (7.55793 -0.074014 0) (7.51686 -0.0791013 0) (7.47629 -0.0896313 0) (7.43186 -0.093707 0) (7.38236 -0.103847 0) (7.32863 -0.115484 0) (7.26938 -0.126695 0) (7.20139 -0.147628 0) (7.12611 -0.166612 0) (7.0366 -0.190392 0) (6.93371 -0.220079 0) (6.8127 -0.248713 0) (6.67085 -0.280762 0) (6.50774 -0.307891 0) (6.31995 -0.327956 0) (6.10415 -0.343854 0) (5.85706 -0.355391 0) (5.58238 -0.367788 0) (5.29086 -0.381023 0) (4.99764 -0.393067 0) (4.71228 -0.404504 0) (4.44288 -0.414565 0) (4.18346 -0.418753 0) (3.94114 -0.415102 0) (3.70677 -0.396734 0) (3.49724 -0.366798 0) (3.30217 -0.3257 0) (3.13802 -0.27911 0) (2.99497 -0.229663 0) (2.88225 -0.173011 0) (2.79676 -0.116144 0) (2.74173 -0.0544739 0) (2.72065 0.00496313 0) (2.7254 0.0610338 0) (2.76383 0.107774 0) (2.81178 0.147234 0) (2.88185 0.173085 0) (2.9515 0.182735 0) (3.01754 0.186478 0) (3.0831 0.171517 0) (3.11274 0.154133 0) (3.16116 0.127021 0) (3.14739 0.0955589 0) (3.1435 0.0704274 0) (3.09539 0.0375763 0) (3.0074 0.0150352 0) (2.92713 0.0105446 0) (2.78396 -0.00963151 0) (2.65519 -0.0214853 0) (2.46656 -0.0400911 0) (2.24876 -0.0483431 0) (2.08268 -0.0343435 0) (1.86003 -0.0243838 0) (1.7789 0.0398838 0) (1.59267 0.116652 0) (1.56666 0.0817539 0) (1.43776 0.0561445 0) (1.41318 0.0898784 0) (1.33537 0.113517 0) (1.39352 0.103296 0) (1.40322 0.101062 0) (1.52617 0.0519291 0) (1.46254 0.0397341 0) (1.56227 0.115184 0) (1.63975 0.369607 0) (1.76702 0.712325 0) (2.01456 1.08427 0) (2.33015 1.49118 0) (2.95604 1.76321 0) (3.68515 1.87133 0) (4.40749 1.83307 0) (5.17178 1.39997 0) (5.98253 0.537552 0) (6.53065 -0.214077 0) (6.9706 -0.350642 0) (7.22666 -0.266926 0) (5.83914 -0.904252 0) (3.1495 -2.11481 0) (1.4278 -2.71457 0) (0.973686 -2.30256 0) (0.461063 -1.81592 0) (0.0562719 -1.63839 0) (-0.0945367 -1.75749 0) (-0.307788 -1.77979 0) (-0.955618 -1.21498 0) (-1.38276 -0.043652 0) (0.129287 1.23642 0) (-1.4736 1.67844 0) (0.612933 -1.18543 0) (-3.77262 -1.01197 0) (2.63317 3.12783 0) (-3.11045 -3.45502 0) (2.77225 2.67562 0) (-2.60635 -3.54223 0) (1.65175 2.68606 0) (-2.49862 -1.46807 0) (-0.439253 1.58029 0) (0.0952516 -1.63003 0) (-0.672239 1.69066 0) (0.237283 0.930469 0) (-0.943781 2.2833 0) (0.519886 1.8013 0) (0.515525 1.57896 0) (1.34322 0.398189 0) (2.2666 0.745526 0) (3.88351 1.60846 0) (4.85141 2.1813 0) (5.43818 2.02362 0) (5.90772 1.904 0) (4.89801 0.0261124 0) (4.91503 0.0103969 0) (4.93152 0.0153176 0) (4.97409 0.0249977 0) (5.01073 0.0210362 0) (5.03591 0.00590148 0) (5.04469 -0.00699475 0) (5.04612 -0.0187842 0) (5.04129 -0.027948 0) (5.02764 -0.0339907 0) (5.01347 -0.0346624 0) (4.99727 -0.0308113 0) (4.98017 -0.0294114 0) (4.95818 -0.0295587 0) (4.93287 -0.0301817 0) (4.90805 -0.0280294 0) (4.88126 -0.0268648 0) (4.8585 -0.0235377 0) (4.8333 -0.0220483 0) (4.81391 -0.0203881 0) (4.79403 -0.0164964 0) (4.77866 -0.0152597 0) (4.76579 -0.0102207 0) (4.75292 -0.0105301 0) (4.74466 -0.0072985 0) (4.73261 -0.00625226 0) (4.72596 -0.0057498 0) (4.71532 -0.00334908 0) (4.70782 -0.00602037 0) (4.69976 -0.00337122 0) (4.68993 -0.00534814 0) (4.68401 -0.00438097 0) (4.67341 -0.00423207 0) (4.66907 -0.0048067 0) (4.65997 -0.00335243 0) (4.6553 -0.00484991 0) (4.64925 -0.00259841 0) (4.64554 -0.00197014 0) (4.64327 -0.000184486 0) (4.6424 0.00211608 0) (4.64355 0.00349835 0) (4.6466 0.00671905 0) (4.64959 0.00714637 0) (4.65548 0.00897511 0) (4.65939 0.0097586 0) (4.66641 0.0093151 0) (4.67073 0.0100218 0) (4.67449 0.00748068 0) (4.67648 0.00720495 0) (4.67634 0.00399312 0) (4.67438 0.000609941 0) (4.66643 -0.00290471 0) (4.65352 -0.0102888 0) (4.63676 -0.0137956 0) (4.61097 -0.022977 0) (4.58409 -0.0280495 0) (4.5456 -0.0333865 0) (4.50637 -0.039981 0) (4.45938 -0.0412617 0) (4.41226 -0.0474945 0) (4.3625 -0.0472013 0) (4.31164 -0.0482686 0) (4.26386 -0.0464458 0) (4.2175 -0.0396488 0) (4.17915 -0.0351989 0) (4.14967 -0.0219088 0) (4.12894 -0.0120245 0) (4.12485 0.000493811 0) (4.12817 0.0167877 0) (4.14897 0.0275366 0) (4.1798 0.0439822 0) (4.22384 0.0556129 0) (4.28027 0.0643637 0) (4.34553 0.0749572 0) (4.41729 0.0776441 0) (4.49745 0.0817963 0) (4.57681 0.082937 0) (4.65969 0.0778139 0) (4.73808 0.0752879 0) (4.8121 0.066866 0) (4.87907 0.0568125 0) (4.93625 0.0480688 0) (4.98255 0.03385 0) (5.01946 0.0234975 0) (5.04249 0.0127178 0) (5.05669 -0.00121298 0) (5.05871 -0.0101205 0) (5.05205 -0.0210716 0) (5.03852 -0.0297085 0) (5.01766 -0.0356966 0) (4.99046 -0.045015 0) (4.96009 -0.0485747 0) (4.9244 -0.0520382 0) (4.88628 -0.059077 0) (4.84228 -0.0639744 0) (4.79341 -0.0713022 0) (4.73876 -0.0776034 0) (4.67569 -0.0822293 0) (4.60122 -0.0903887 0) (4.51413 -0.0978925 0) (4.41006 -0.10525 0) (4.28897 -0.113859 0) (4.14785 -0.120102 0) (3.98768 -0.126048 0) (3.8103 -0.130871 0) (3.62089 -0.134567 0) (3.42368 -0.139367 0) (3.22287 -0.146969 0) (3.01838 -0.159213 0) (2.81054 -0.175678 0) (2.59795 -0.193791 0) (2.38245 -0.211607 0) (2.16256 -0.225482 0) (1.94385 -0.233131 0) (1.72407 -0.231874 0) (1.51499 -0.224178 0) (1.31857 -0.207851 0) (1.14348 -0.185664 0) (0.990019 -0.159698 0) (0.861215 -0.130955 0) (0.759236 -0.0994865 0) (0.683652 -0.0656809 0) (0.639564 -0.0296246 0) (0.621034 0.00785704 0) (0.633601 0.0422037 0) (0.667464 0.0738408 0) (0.722549 0.0989885 0) (0.792449 0.116521 0) (0.861084 0.127031 0) (0.94154 0.131088 0) (0.996578 0.129322 0) (1.05722 0.122801 0) (1.09109 0.113593 0) (1.1077 0.109607 0) (1.13704 0.0990625 0) (1.11304 0.098801 0) (1.13805 0.0991069 0) (1.1282 0.0892464 0) (1.11298 0.101215 0) (1.13619 0.0980898 0) (1.09612 0.0852969 0) (1.08318 0.0612866 0) (1.08706 0.0287467 0) (1.02577 0.00441626 0) (1.06118 0.0361594 0) (1.05931 0.0225465 0) (1.1531 0.00639492 0) (1.09938 0.0648906 0) (1.16056 0.0684926 0) (1.21847 0.0483401 0) (1.31266 0.0688192 0) (1.36381 0.0811466 0) (1.4487 0.0476079 0) (1.43603 0.0531113 0) (1.45479 0.109818 0) (1.55122 0.26265 0) (1.77778 0.482883 0) (2.17022 0.742858 0) (2.69741 0.973247 0) (3.48403 1.08967 0) (4.33071 1.15575 0) (5.24851 1.13455 0) (6.20983 0.814784 0) (6.94979 0.154212 0) (7.08648 -0.531731 0) (6.784 -1.06846 0) (7.2615 -0.914327 0) (7.8927 -0.0408876 0) (6.11654 -0.0955778 0) (3.2164 -1.2651 0) (1.48926 -1.62207 0) (0.858298 -1.29539 0) (0.438481 -1.32053 0) (-0.0349949 -1.54136 0) (-1.05332 -1.48585 0) (-2.47974 -0.811294 0) (-2.76886 0.470025 0) (-1.30119 2.02673 0) (-2.54012 1.62843 0) (2.98517 -0.671608 0) (-3.57327 -0.196671 0) (2.49094 1.59477 0) (-2.8398 -2.57057 0) (1.43423 2.42275 0) (-2.63804 -1.98169 0) (-1.76925 1.8228 0) (-1.3023 -0.63436 0) (-2.37995 0.242785 0) (-0.683115 -1.06519 0) (-2.6197 1.17993 0) (0.196953 0.571125 0) (-1.00807 2.0464 0) (1.31527 1.39744 0) (1.70984 1.40788 0) (2.51997 0.471831 0) (2.90601 0.0504977 0) (3.10787 0.775154 0) (4.25387 1.48616 0) (5.14284 1.41728 0) (6.47456 1.10474 0) (1.81598 0.0749691 0) (1.83756 0.0418674 0) (1.86214 0.0317626 0) (1.89938 0.0279828 0) (1.9333 0.0207577 0) (1.9539 0.0089999 0) (1.95532 -0.00299072 0) (1.94384 -0.0105378 0) (1.92328 -0.0120444 0) (1.89866 -0.00947163 0) (1.8746 -0.00643085 0) (1.85207 -0.00440822 0) (1.83173 -0.00317023 0) (1.81228 -0.00196625 0) (1.79285 -0.00154548 0) (1.77381 -0.00136714 0) (1.75514 -0.00138953 0) (1.73862 -0.000495826 0) (1.72341 4.24017e-07 0) (1.71068 0.000554911 0) (1.69948 0.00147559 0) (1.6909 0.00166081 0) (1.68455 0.00256945 0) (1.67965 0.00206428 0) (1.67628 0.00235111 0) (1.67312 0.0020451 0) (1.67129 0.00169748 0) (1.66916 0.00176825 0) (1.66735 0.000822514 0) (1.66507 0.000996873 0) (1.66237 0.000191215 0) (1.65991 0.000166811 0) (1.65659 -0.000226769 0) (1.65409 -0.000515068 0) (1.65069 -0.000373763 0) (1.64805 -0.000653994 0) (1.64531 1.40542e-06 0) (1.64382 0.000107715 0) (1.64338 0.00086376 0) (1.64455 0.00153484 0) (1.64706 0.00214474 0) (1.65154 0.00337398 0) (1.65726 0.00378913 0) (1.66461 0.00461017 0) (1.67244 0.00522416 0) (1.68157 0.00566517 0) (1.69071 0.00635693 0) (1.69999 0.00608349 0) (1.70852 0.00637515 0) (1.71587 0.00565578 0) (1.72095 0.00487732 0) (1.72313 0.00413062 0) (1.72159 0.00204034 0) (1.71662 0.000998538 0) (1.70632 -0.00153413 0) (1.69172 -0.00348503 0) (1.67114 -0.00557319 0) (1.64664 -0.00781723 0) (1.61725 -0.00880206 0) (1.58491 -0.0108684 0) (1.54926 -0.0116315 0) (1.51204 -0.0127344 0) (1.47464 -0.01323 0) (1.43905 -0.0123851 0) (1.40743 -0.0117972 0) (1.38231 -0.00945984 0) (1.365 -0.00728791 0) (1.35793 -0.00423679 0) (1.36009 -0.000615132 0) (1.37225 0.00224796 0) (1.39379 0.00638403 0) (1.42592 0.00901068 0) (1.46664 0.0111318 0) (1.5154 0.0137113 0) (1.56969 0.0143993 0) (1.62827 0.0155819 0) (1.68838 0.0160549 0) (1.74872 0.015075 0) (1.80611 0.0146775 0) (1.85974 0.0126418 0) (1.90677 0.0102778 0) (1.94654 0.00822071 0) (1.97729 0.00460447 0) (1.99899 0.00174977 0) (2.01089 -0.00131648 0) (2.01377 -0.0053878 0) (2.00748 -0.00797424 0) (1.99396 -0.0108168 0) (1.97321 -0.0132888 0) (1.94664 -0.0148301 0) (1.91439 -0.0166081 0) (1.87819 -0.0171373 0) (1.83896 -0.0171227 0) (1.79768 -0.0167573 0) (1.75327 -0.014933 0) (1.70668 -0.0130608 0) (1.65758 -0.0106321 0) (1.60723 -0.00722126 0) (1.55518 -0.00385483 0) (1.50169 5.36497e-05 0) (1.44596 0.00350748 0) (1.38844 0.00560091 0) (1.32768 0.00636604 0) (1.26398 0.00492277 0) (1.19571 0.00154295 0) (1.12305 -0.00336609 0) (1.04412 -0.00981729 0) (0.957978 -0.0176052 0) (0.86052 -0.0267833 0) (0.749127 -0.036831 0) (0.62056 -0.0467098 0) (0.4745 -0.0554125 0) (0.31201 -0.062597 0) (0.137333 -0.0668611 0) (-0.0474111 -0.0683206 0) (-0.231209 -0.0674989 0) (-0.405666 -0.0633437 0) (-0.566093 -0.0563334 0) (-0.708315 -0.0479294 0) (-0.828041 -0.0381645 0) (-0.922832 -0.0271881 0) (-0.990618 -0.0155761 0) (-1.02761 -0.00270481 0) (-1.03505 0.0112287 0) (-1.01274 0.0255945 0) (-0.96492 0.0392603 0) (-0.891494 0.0511699 0) (-0.796175 0.0609293 0) (-0.68819 0.0677795 0) (-0.564602 0.0727445 0) (-0.443734 0.0745285 0) (-0.315613 0.0712626 0) (-0.200472 0.0654251 0) (-0.0897693 0.0522556 0) (0.00541991 0.0393107 0) (0.0842364 0.0234726 0) (0.165248 0.0139913 0) (0.217869 0.012933 0) (0.290525 0.00575356 0) (0.350111 0.00415018 0) (0.397844 0.00249974 0) (0.444688 -0.00275073 0) (0.469601 0.00665701 0) (0.472252 0.00807782 0) (0.505668 0.00718186 0) (0.523308 0.00754659 0) (0.548025 0.0240441 0) (0.583696 0.0238342 0) (0.650543 -0.0101575 0) (0.667378 -0.0150222 0) (0.694096 0.00979352 0) (0.753753 0.0127116 0) (0.798355 0.00420422 0) (0.817976 0.0163928 0) (0.873635 0.0400513 0) (1.01898 0.0776675 0) (1.29483 0.133536 0) (1.73861 0.198036 0) (2.35613 0.247257 0) (3.11354 0.256084 0) (3.91033 0.208647 0) (4.68668 0.0922863 0) (5.33364 -0.0753372 0) (5.62395 -0.21457 0) (5.37559 -0.369333 0) (4.49579 -0.518106 0) (3.487 -0.440065 0) (3.12574 0.10507 0) (3.53935 0.747929 0) (3.84927 0.460049 0) (2.68018 -0.477993 0) (1.28431 -0.738911 0) (0.145828 -0.633605 0) (-1.09525 -0.298871 0) (-2.28989 0.273359 0) (-2.99671 0.270318 0) (-2.93741 -0.209408 0) (-2.13541 -0.131231 0) (-1.54165 -0.835585 0) (-0.897991 -0.361787 0) (-4.42263 0.380114 0) (1.59836 1.02539 0) (-3.44002 -1.12939 0) (-1.54059 1.3164 0) (-1.61809 -0.653125 0) (-2.82903 0.262997 0) (-0.606018 -0.113685 0) (-2.15598 0.0174681 0) (-1.42087 -0.271951 0) (-2.83481 0.404894 0) (-0.77426 0.140363 0) (-1.00335 0.823524 0) (1.41095 0.320641 0) (1.87093 0.0638819 0) (2.26462 -0.244676 0) (2.35288 -0.0536105 0) (2.35601 0.305701 0) (3.56096 0.220423 0) (4.3224 0.0332012 0) (5.58032 -0.230045 0) (-0.0167911 0.0251515 0) (-0.0649393 0.0147116 0) (0.0154036 -0.03278 0) (0.14953 -0.0566485 0) (0.297068 -0.0506145 0) (0.413904 -0.0304775 0) (0.485167 -0.0109223 0) (0.518207 0.0055975 0) (0.510218 0.0169854 0) (0.475473 0.0103897 0) (0.44908 -0.00531302 0) (0.442731 -0.014003 0) (0.451588 -0.01096 0) (0.484605 -0.021992 0) (0.559419 -0.0299318 0) (0.659322 -0.0307657 0) (0.772732 -0.0488123 0) (0.92222 -0.0375337 0) (1.03786 0.00466138 0) (1.06941 0.0452924 0) (1.02176 0.0799391 0) (0.863516 0.113374 0) (0.628305 0.124567 0) (0.322399 0.0800914 0) (0.0750739 0.0109952 0) (0.00650846 -0.0522539 0) (0.0509176 -0.093758 0) (0.196506 -0.0933159 0) (0.343084 -0.0434465 0) (0.475725 -0.0586023 0) (0.526109 -0.192232 0) (0.508661 -0.20014 0) (0.220178 0.0769313 0) (-0.321647 0.26666 0) (-0.708882 0.190503 0) (-0.865449 0.0997949 0) (-0.940961 0.0599775 0) (-0.962472 0.0296745 0) (-0.956828 0.0144388 0) (-0.937443 0.00780496 0) (-0.929238 0.0205733 0) (-0.946436 0.0368444 0) (-0.922925 0.0192661 0) (-0.839819 -0.0102259 0) (-0.731413 -0.0264047 0) (-0.607044 -0.0339819 0) (-0.434919 -0.0596216 0) (-0.192945 -0.0952723 0) (0.082052 -0.106719 0) (0.390999 -0.109237 0) (0.700005 -0.106074 0) (0.981589 -0.0758909 0) (1.24852 -0.0601486 0) (1.4448 -0.0148054 0) (1.54471 -0.0102771 0) (1.62446 0.0343433 0) (1.58968 0.0653696 0) (1.52193 0.116284 0) (1.28661 0.164503 0) (1.03099 0.18204 0) (0.602112 0.31342 0) (0.0100501 0.158808 0) (-0.312413 -0.153158 0) (-0.462876 -0.120502 0) (-0.37871 -0.107481 0) (-0.205559 -0.0883918 0) (0.0587688 -0.0994196 0) (0.419621 -0.126158 0) (0.771584 -0.106169 0) (1.08102 -0.0306522 0) (1.22543 0.0629669 0) (1.16462 0.186618 0) (0.830737 0.291939 0) (0.19583 0.268538 0) (-0.444658 -0.0261584 0) (-0.516301 -0.296307 0) (-0.174334 -0.351449 0) (0.108703 -0.170109 0) (0.10773 0.151828 0) (0.0520825 0.129947 0) (0.621347 -0.0602114 0) (0.828731 0.0722768 0) (0.485556 0.0278442 0) (0.345073 0.0373199 0) (0.310356 0.0587992 0) (0.192085 -0.0247658 0) (0.0852811 -0.0263913 0) (-0.16738 0.0836417 0) (-0.52507 0.133665 0) (-0.893103 0.153768 0) (-1.22911 0.152098 0) (-1.46717 0.125105 0) (-1.63042 0.0948498 0) (-1.67643 0.0442182 0) (-1.61787 0.00281076 0) (-1.42844 -0.0482768 0) (-1.12502 -0.0950364 0) (-0.743776 -0.130519 0) (-0.228431 -0.149326 0) (0.161801 -0.216276 0) (0.903491 -0.159186 0) (1.26313 -0.171338 0) (1.70915 -0.21276 0) (2.34766 -0.0207186 0) (2.35844 -0.0969422 0) (2.79629 0.0441911 0) (2.62325 0.206902 0) (2.48889 0.301994 0) (1.65671 0.855547 0) (-0.195748 0.0182224 0) (-0.601673 -0.173482 0) (-0.920767 0.564979 0) (-1.49825 0.570951 0) (-2.02407 0.223292 0) (-1.98936 0.0925792 0) (-1.80027 -0.121045 0) (-1.36661 -0.16819 0) (-0.928545 -0.167687 0) (-0.483046 -0.134658 0) (-0.185824 -0.0755372 0) (-0.0537426 -0.0280802 0) (0.0222248 -0.010515 0) (0.111293 -0.0062626 0) (0.0729383 0.0495433 0) (0.0742797 -0.0086085 0) (0.325347 -0.108159 0) (0.718269 -0.137686 0) (1.1028 -0.100602 0) (1.44013 -0.0342546 0) (1.68616 -0.0405673 0) (1.72577 -0.196841 0) (1.59885 -0.27501 0) (1.53074 -0.0371267 0) (1.57867 0.407076 0) (1.65052 0.57312 0) (1.74184 0.136644 0) (1.91521 -0.424466 0) (2.22309 -0.78392 0) (2.63836 -0.874658 0) (2.83973 -0.588515 0) (2.252 -0.0431462 0) (1.05756 0.342391 0) (-0.145865 0.450721 0) (-1.18681 0.42559 0) (-2.02996 0.361221 0) (-2.699 0.297894 0) (-3.22676 0.243 0) (-3.63804 0.198465 0) (-3.95586 0.162794 0) (-4.19406 0.134126 0) (-4.37045 0.111303 0) (-4.49491 0.0942761 0) (-4.57784 0.0810233 0) (-4.62532 0.0684555 0) (-4.64097 0.0555728 0) (-4.6284 0.0443438 0) (-4.59013 0.033674 0) (-4.52775 0.0231191 0) (-4.44493 0.0135356 0) (-4.3442 0.00485115 0) (-4.22712 -0.00327107 0) (-4.09276 -0.0128386 0) (-3.94259 -0.0227539 0) (-3.78501 -0.0281199 0) (-3.6249 -0.0294538 0) (-3.45774 -0.0337999 0) (-3.2851 -0.0400122 0) (-3.1214 -0.0387679 0) (-2.97232 -0.0322155 0) (-2.83527 -0.0287098 0) (-2.71158 -0.0270349 0) (-2.605 -0.0245769 0) (-2.51666 -0.0240433 0) (-2.44476 -0.0245819 0) (-2.39399 -0.0292774 0) (-2.36529 -0.0267492 0) (-2.35245 -0.0201503 0) (-2.34505 -0.0139536 0) (-2.35225 -0.000166246 0) (-2.37459 0.0107674 0) (-2.41356 0.0236241 0) (-2.46166 0.0436441 0) (-2.51261 0.0504649 0) (-2.58152 0.0614273 0) (-2.65047 0.0640307 0) (-2.6717 0.0451057 0) (-2.6536 0.0189384 0) (-2.63203 0.00862004 0) (-2.60209 0.010293 0) (-2.56254 0.00472156 0) (-2.54604 0.00299805 0) (-2.53385 -0.000447166 0) (-2.41661 -0.033256 0) (-2.16354 -0.0886624 0) (-1.88716 -0.102001 0) (-1.61565 -0.104757 0) (-1.31349 -0.138872 0) (-0.880799 -0.177173 0) (-0.517027 -0.168582 0) (-0.166254 -0.137654 0) (0.0115652 0.0385567 0) (-0.0123391 -0.0369644 0) (0.190228 -0.148443 0) (0.342366 -0.180126 0) (0.490685 -0.169169 0) (0.607017 -0.120856 0) (0.684263 -0.0658686 0) (0.718575 -0.0204856 0) (0.730698 0.0210185 0) (0.712559 0.0414877 0) (0.670673 0.0316154 0) (0.630603 0.00496186 0) (0.614465 -0.0196427 0) (0.641781 -0.0688792 0) (0.70847 -0.125697 0) (0.840646 -0.150465 0) (0.975922 -0.189748 0) (1.12658 -0.188094 0) (1.245 -0.115033 0) (1.32599 -0.0126186 0) (1.3718 0.104095 0) (1.27309 0.224759 0) (1.18367 0.298507 0) (0.922147 0.344916 0) (0.694268 0.258364 0) (0.553673 0.0700581 0) (0.448561 -0.0729689 0) (0.498778 -0.17953 0) (0.524322 -0.198713 0) (0.36945 -0.117984 0) (-0.196093 0.190252 0) (-0.872667 0.513767 0) (-1.20372 0.552317 0) (-1.38573 0.425095 0) (-1.43382 0.2399 0) (-1.41342 0.110706 0) (-1.36163 0.0255569 0) (-1.30628 -0.0166983 0) (-1.24091 -0.0309237 0) (-1.1607 -0.0360784 0) (-1.10612 -0.0182684 0) (-1.02643 -0.0463866 0) (-0.908311 -0.108114 0) (-0.772969 -0.151688 0) (-0.633406 -0.180147 0) (-0.478282 -0.214756 0) (-0.260378 -0.282499 0) (-0.00129722 -0.359381 0) (0.255814 -0.404349 0) (0.635635 -0.396181 0) (0.905097 -0.423996 0) (1.22991 -0.368944 0) (1.46394 -0.343136 0) (1.71053 -0.225644 0) (1.82526 -0.133662 0) (1.96095 -0.0634233 0) (1.97043 0.0314679 0) (2.01366 0.146734 0) (1.89759 0.25058 0) (1.79864 0.349002 0) (1.59947 0.454965 0) (1.38603 0.507899 0) (1.27029 0.489542 0) (0.907387 0.21949 0) (0.762521 -0.131838 0) (0.763629 -0.33838 0) (0.977919 -0.442459 0) (1.29835 -0.535584 0) (1.6077 -0.498457 0) (1.85497 -0.325476 0) (1.98468 -0.0722377 0) (2.01541 0.228271 0) (1.81201 0.544069 0) (1.37179 0.765366 0) (0.642885 0.641355 0) (-0.0254106 0.139836 0) (-0.462041 -0.257679 0) (-0.596052 -0.0851906 0) (-0.464036 -0.0943201 0) (-0.125407 -0.652066 0) (0.31093 -0.623645 0) (0.43815 0.138544 0) (0.0961601 0.277463 0) (-0.084825 0.0985635 0) (-0.205032 0.0974374 0) (-0.614165 0.220965 0) (-1.12868 0.346001 0) (-1.56637 0.440075 0) (-2.01966 0.485933 0) (-2.44585 0.450908 0) (-2.7711 0.372364 0) (-2.99669 0.258232 0) (-3.12653 0.116182 0) (-3.13985 -0.0189676 0) (-3.05467 -0.171151 0) (-2.83936 -0.320438 0) (-2.53224 -0.447377 0) (-2.12484 -0.546876 0) (-1.66159 -0.627864 0) (-1.16168 -0.737927 0) (-0.424937 -0.65767 0) (0.0468996 -0.645133 0) (0.472581 -0.72451 0) (1.46387 -0.453025 0) (1.36112 -0.46795 0) (2.15039 -0.200875 0) (2.27412 0.130564 0) (2.5311 0.459528 0) (2.52655 1.0625 0) (2.13579 1.57939 0) (0.867278 1.075 0) (-0.726307 0.0450159 0) (-0.923847 0.23677 0) (-0.973389 0.159974 0) (-0.652754 -0.192587 0) (-0.280524 -0.478706 0) (0.22575 -0.633347 0) (0.691764 -0.582422 0) (1.06796 -0.454887 0) (1.20765 -0.240602 0) (1.18054 -0.0794132 0) (1.15707 -0.109197 0) (1.14575 -0.0776148 0) (1.02869 0.0119964 0) (1.0834 -0.179469 0) (1.34584 -0.489262 0) (1.69527 -0.579007 0) (2.06136 -0.516909 0) (2.32264 -0.483587 0) (2.37924 -0.260091 0) (2.39933 0.307017 0) (2.50863 0.548914 0) (2.63496 0.0606893 0) (2.76833 -0.528932 0) (3.22943 -0.691479 0) (3.40361 -0.4406 0) (2.38316 -0.061802 0) (0.589055 0.282683 0) (-1.0605 0.672285 0) (-2.38672 1.07283 0) (-3.48185 1.34195 0) (-4.40482 1.37853 0) (-5.19306 1.24341 0) (-5.81951 1.05541 0) (-6.31378 0.852494 0) (-6.68452 0.671737 0) (-6.94888 0.517567 0) (-7.12775 0.388839 0) (-7.2321 0.284885 0) (-7.27871 0.200769 0) (-7.27531 0.132471 0) (-7.23424 0.0796472 0) (-7.15711 0.0296005 0) (-7.05192 -0.0147147 0) (-6.9209 -0.0523856 0) (-6.76947 -0.0850071 0) (-6.59626 -0.115873 0) (-6.40542 -0.141686 0) (-6.20101 -0.162578 0) (-5.98349 -0.182898 0) (-5.75372 -0.201004 0) (-5.5149 -0.217356 0) (-5.27016 -0.227741 0) (-5.02706 -0.232685 0) (-4.78205 -0.236463 0) (-4.53589 -0.239002 0) (-4.28805 -0.232913 0) (-4.06565 -0.214575 0) (-3.85578 -0.196888 0) (-3.66488 -0.180703 0) (-3.47949 -0.158047 0) (-3.33373 -0.129658 0) (-3.21255 -0.103178 0) (-3.12203 -0.068413 0) (-3.05782 -0.0362029 0) (-3.05471 -0.00886766 0) (-3.04539 0.00498293 0) (-3.04842 0.0157703 0) (-3.07526 0.0315777 0) (-3.07896 0.0350248 0) (-3.11462 0.0458142 0) (-3.14299 0.0560578 0) (-3.14766 0.0427006 0) (-3.1718 0.0322448 0) (-3.14514 0.0118057 0) (-3.09903 -0.0263782 0) (-3.00238 -0.0642451 0) (-2.91706 -0.0726701 0) (-2.81065 -0.0509469 0) (-2.72604 -0.0368449 0) (-2.65209 -0.0616537 0) (-2.6031 -0.1263 0) (-2.47783 -0.228348 0) (-2.18739 -0.355761 0) (-1.90609 -0.393549 0) (-1.541 -0.381125 0) (-1.22438 -0.441479 0) (-0.793907 -0.532533 0) (-0.440452 -0.478524 0) (-0.177146 -0.437681 0) (0.0111308 0.0250935 0) (0.111687 -0.123092 0) (0.35354 -0.310873 0) (0.519995 -0.326997 0) (0.643147 -0.2784 0) (0.72885 -0.199552 0) (0.78971 -0.103374 0) (0.810794 -0.0310745 0) (0.814253 0.020045 0) (0.806876 0.0626221 0) (0.77204 0.0619428 0) (0.749109 0.0259619 0) (0.731051 -0.0140986 0) (0.754916 -0.0963559 0) (0.832942 -0.202043 0) (0.955764 -0.26409 0) (1.07112 -0.317117 0) (1.19577 -0.282687 0) (1.28722 -0.175984 0) (1.34168 -0.057748 0) (1.36479 0.125919 0) (1.32055 0.282743 0) (1.27428 0.389166 0) (1.06822 0.488872 0) (0.937583 0.375622 0) (0.669905 0.194418 0) (0.503249 -0.0539171 0) (0.360137 -0.147109 0) (-0.0403052 0.139019 0) (-0.638074 0.523249 0) (-1.20358 0.733112 0) (-1.5218 0.731885 0) (-1.55813 0.588316 0) (-1.50839 0.409309 0) (-1.40373 0.219664 0) (-1.28062 0.0700978 0) (-1.16346 -0.0259528 0) (-1.06912 -0.0759222 0) (-0.976043 -0.104879 0) (-0.870939 -0.109462 0) (-0.784412 -0.10104 0) (-0.680386 -0.131156 0) (-0.555456 -0.191122 0) (-0.455606 -0.232453 0) (-0.332064 -0.280623 0) (-0.210514 -0.35221 0) (-0.0357753 -0.441867 0) (0.170377 -0.538806 0) (0.426383 -0.641947 0) (0.762571 -0.662829 0) (0.993889 -0.659871 0) (1.26257 -0.578036 0) (1.41881 -0.501016 0) (1.53741 -0.352697 0) (1.67361 -0.213684 0) (1.76181 -0.1184 0) (1.79251 0.0351618 0) (1.84917 0.204193 0) (1.77085 0.332739 0) (1.74613 0.471685 0) (1.67446 0.563262 0) (1.58063 0.55167 0) (1.62482 0.477038 0) (1.5073 0.294965 0) (1.56714 0.0151263 0) (1.54018 -0.209069 0) (1.69579 -0.464604 0) (1.90625 -0.672782 0) (2.12359 -0.646171 0) (2.25728 -0.42557 0) (2.33426 -0.0834254 0) (2.33276 0.328321 0) (2.20142 0.745324 0) (1.96119 1.08584 0) (1.44629 1.13478 0) (0.72868 0.712863 0) (0.108412 0.0888854 0) (-0.27839 -0.108546 0) (-0.248974 -0.121841 0) (-0.0916359 -0.66866 0) (-0.36931 -0.499713 0) (-0.303019 0.286182 0) (-0.467765 0.401611 0) (-0.820285 0.308785 0) (-1.20801 0.51538 0) (-1.6738 0.645025 0) (-2.26006 0.778204 0) (-2.81445 0.889317 0) (-3.28384 0.859937 0) (-3.75418 0.776719 0) (-4.02574 0.634245 0) (-4.28856 0.42997 0) (-4.43917 0.228432 0) (-4.44488 -0.00567476 0) (-4.39608 -0.250924 0) (-4.20509 -0.497562 0) (-3.94712 -0.727442 0) (-3.55627 -0.896603 0) (-3.1016 -1.05429 0) (-2.60404 -1.16669 0) (-2.05117 -1.15551 0) (-1.40234 -1.10465 0) (-0.959125 -1.166 0) (-0.249457 -0.81268 0) (0.0437406 -0.835295 0) (0.757681 -0.518735 0) (0.874483 -0.100096 0) (1.58991 0.379771 0) (1.78994 0.918411 0) (2.42896 1.70006 0) (2.32993 1.79414 0) (1.92216 1.52182 0) (1.53978 0.866361 0) (1.40476 0.136702 0) (1.74437 -0.483155 0) (2.19131 -0.879981 0) (2.59026 -1.03509 0) (2.89824 -0.943816 0) (3.23975 -0.637949 0) (3.23864 -0.24139 0) (2.88883 0.137823 0) (2.87695 0.0952586 0) (2.50718 -0.084105 0) (1.81716 0.122918 0) (2.11514 -0.1649 0) (2.27528 -0.710968 0) (2.18617 -0.872196 0) (2.20097 -0.645194 0) (2.44028 -0.170048 0) (2.53305 0.0282938 0) (2.79277 -0.261282 0) (3.26701 -0.597483 0) (3.20171 -0.483018 0) (1.87421 -0.0202785 0) (0.248155 0.518046 0) (-1.17261 1.07027 0) (-2.52914 1.42051 0) (-3.76567 1.5655 0) (-4.814 1.64236 0) (-5.66668 1.75534 0) (-6.29939 1.82355 0) (-6.70773 1.74061 0) (-6.96129 1.54687 0) (-7.09497 1.29056 0) (-7.16496 1.02829 0) (-7.18023 0.790803 0) (-7.16047 0.584987 0) (-7.11029 0.414713 0) (-7.0372 0.274181 0) (-6.94401 0.159429 0) (-6.83102 0.0654209 0) (-6.70482 -0.017001 0) (-6.56443 -0.0882902 0) (-6.40529 -0.149147 0) (-6.23529 -0.202913 0) (-6.04944 -0.251485 0) (-5.85398 -0.294217 0) (-5.64656 -0.331742 0) (-5.43292 -0.362328 0) (-5.21096 -0.391473 0) (-4.98226 -0.416209 0) (-4.74935 -0.435151 0) (-4.50504 -0.444215 0) (-4.27417 -0.44879 0) (-4.03429 -0.451244 0) (-3.80823 -0.448098 0) (-3.55889 -0.434098 0) (-3.35271 -0.403165 0) (-3.13263 -0.368601 0) (-2.9461 -0.337327 0) (-2.74002 -0.302234 0) (-2.58916 -0.247148 0) (-2.42462 -0.19396 0) (-2.31417 -0.14505 0) (-2.2061 -0.0849295 0) (-2.16922 -0.0393395 0) (-2.14423 -0.0158368 0) (-2.13421 0.00281193 0) (-2.18606 0.033867 0) (-2.20371 0.0471278 0) (-2.25468 0.0610987 0) (-2.34097 0.0792985 0) (-2.38185 0.0848258 0) (-2.45256 0.0448283 0) (-2.51185 -0.00476778 0) (-2.57706 -0.0609696 0) (-2.59583 -0.125569 0) (-2.62935 -0.174578 0) (-2.62071 -0.157483 0) (-2.56854 -0.110818 0) (-2.46975 -0.117039 0) (-2.40143 -0.183525 0) (-2.34745 -0.291025 0) (-2.18154 -0.507621 0) (-2.04245 -0.6724 0) (-1.70441 -0.680247 0) (-1.26794 -0.717044 0) (-0.866258 -0.786407 0) (-0.43689 -0.679239 0) (-0.134369 -0.623971 0) (-0.023328 -0.0546465 0) (0.279118 -0.348584 0) (0.459632 -0.47167 0) (0.587157 -0.450659 0) (0.676018 -0.357796 0) (0.727046 -0.24622 0) (0.765274 -0.128763 0) (0.776022 -0.035777 0) (0.774005 0.0254967 0) (0.770348 0.0720914 0) (0.750323 0.0798099 0) (0.748071 0.036865 0) (0.725956 -0.0154658 0) (0.777501 -0.144702 0) (0.862573 -0.282403 0) (0.963738 -0.358765 0) (1.02579 -0.405924 0) (1.1206 -0.356616 0) (1.2033 -0.231897 0) (1.23661 -0.0683556 0) (1.22858 0.146172 0) (1.19541 0.337264 0) (1.09392 0.511555 0) (0.9578 0.603479 0) (0.797108 0.558417 0) (0.525132 0.412172 0) (0.332559 0.162449 0) (-0.14569 0.271361 0) (-0.739072 0.640378 0) (-1.29381 0.91909 0) (-1.60193 0.94158 0) (-1.60508 0.747312 0) (-1.48318 0.501455 0) (-1.37636 0.299103 0) (-1.23946 0.0955794 0) (-1.09467 -0.0600068 0) (-0.960726 -0.132896 0) (-0.860751 -0.169688 0) (-0.778802 -0.189053 0) (-0.698838 -0.192677 0) (-0.600974 -0.199001 0) (-0.498374 -0.237001 0) (-0.384451 -0.285002 0) (-0.333872 -0.308004 0) (-0.249774 -0.366098 0) (-0.171011 -0.455036 0) (-0.0533049 -0.571673 0) (0.125768 -0.728353 0) (0.425518 -0.87477 0) (0.632047 -0.918829 0) (0.778596 -0.8549 0) (0.910439 -0.721284 0) (1.00228 -0.5703 0) (1.10811 -0.4239 0) (1.26611 -0.301303 0) (1.30851 -0.183066 0) (1.35139 0.0183396 0) (1.42682 0.204236 0) (1.3572 0.346525 0) (1.39544 0.492833 0) (1.33696 0.577662 0) (1.29664 0.510605 0) (1.35693 0.441358 0) (1.39353 0.265124 0) (1.44267 -0.0697842 0) (1.4499 -0.394244 0) (1.6461 -0.750508 0) (1.77646 -0.917751 0) (1.88576 -0.806468 0) (1.93477 -0.497317 0) (1.98629 -0.0873292 0) (1.96394 0.394419 0) (1.93146 0.903693 0) (1.82214 1.33447 0) (1.54052 1.54109 0) (0.925098 1.22303 0) (0.286495 0.564361 0) (-0.27032 0.180048 0) (-0.333135 -0.120839 0) (-0.534499 -0.566198 0) (-0.889016 -0.277633 0) (-0.9095 0.395074 0) (-1.10956 0.587952 0) (-1.52296 0.63844 0) (-1.99088 0.913297 0) (-2.57247 1.14553 0) (-3.17805 1.24182 0) (-3.79399 1.27724 0) (-4.22749 1.2213 0) (-4.67339 1.02949 0) (-4.97649 0.83961 0) (-5.1703 0.585846 0) (-5.34841 0.254929 0) (-5.35334 -0.0329506 0) (-5.3076 -0.369986 0) (-5.17594 -0.727787 0) (-4.96346 -1.0471 0) (-4.65081 -1.29672 0) (-4.28237 -1.51846 0) (-3.82933 -1.63766 0) (-3.34271 -1.65593 0) (-2.831 -1.64644 0) (-2.2553 -1.58555 0) (-1.74883 -1.39152 0) (-1.18523 -1.23586 0) (-0.787399 -0.852201 0) (-0.305088 -0.590701 0) (0.398698 -0.0915665 0) (0.589673 0.464357 0) (1.56759 1.28715 0) (2.12515 1.62655 0) (2.43508 1.39289 0) (2.65212 0.855943 0) (2.8821 0.118041 0) (3.27559 -0.521514 0) (3.68598 -0.947362 0) (3.92374 -1.13365 0) (4.03762 -1.10365 0) (4.35687 -0.906949 0) (4.12826 -0.0854671 0) (3.91618 0.514171 0) (4.34488 0.0958244 0) (3.1478 0.653284 0) (2.70668 0.657799 0) (3.14563 -0.482545 0) (2.34009 -0.524026 0) (2.17949 -0.412918 0) (2.35692 -0.654017 0) (2.72525 -0.981044 0) (2.78773 -0.831049 0) (1.93583 -0.133902 0) (0.461102 0.545661 0) (-0.862378 1.10684 0) (-2.09934 1.44775 0) (-3.32733 1.68846 0) (-4.33689 1.98131 0) (-5.22581 2.16172 0) (-5.91776 2.20445 0) (-6.39318 2.18696 0) (-6.70206 2.11601 0) (-6.85116 1.9862 0) (-6.83673 1.8051 0) (-6.74126 1.54911 0) (-6.60077 1.25999 0) (-6.44027 0.984552 0) (-6.28637 0.730022 0) (-6.137 0.512548 0) (-5.99202 0.328725 0) (-5.85746 0.178027 0) (-5.71747 0.0536548 0) (-5.57791 -0.047048 0) (-5.43301 -0.135656 0) (-5.27729 -0.215764 0) (-5.11907 -0.283935 0) (-4.95046 -0.342245 0) (-4.7728 -0.401629 0) (-4.58309 -0.449153 0) (-4.38916 -0.492332 0) (-4.18403 -0.525261 0) (-3.98597 -0.555497 0) (-3.77638 -0.583852 0) (-3.58329 -0.611351 0) (-3.36771 -0.622433 0) (-3.18051 -0.630616 0) (-2.9662 -0.638488 0) (-2.79663 -0.638235 0) (-2.60224 -0.614679 0) (-2.443 -0.582223 0) (-2.27129 -0.547983 0) (-2.13588 -0.5112 0) (-1.98209 -0.461038 0) (-1.86014 -0.403547 0) (-1.73417 -0.33532 0) (-1.61296 -0.260657 0) (-1.51008 -0.16728 0) (-1.41285 -0.0811705 0) (-1.33098 -0.0135095 0) (-1.28125 0.0398979 0) (-1.26158 0.0908582 0) (-1.28977 0.12281 0) (-1.28596 0.150655 0) (-1.37497 0.172388 0) (-1.45009 0.177547 0) (-1.56997 0.140759 0) (-1.69193 0.0971531 0) (-1.84616 0.0454354 0) (-1.9872 0.00228509 0) (-2.1494 -0.043276 0) (-2.26713 -0.104783 0) (-2.39219 -0.195415 0) (-2.42926 -0.220489 0) (-2.30944 -0.274771 0) (-2.19895 -0.41939 0) (-2.11402 -0.625198 0) (-2.11747 -0.843747 0) (-1.9817 -1.07284 0) (-1.63251 -1.21924 0) (-1.20763 -1.25737 0) (-0.690841 -1.06079 0) (-0.195632 -0.89172 0) (0.0899906 -0.177905 0) (0.325912 -0.529729 0) (0.464848 -0.58655 0) (0.53913 -0.518977 0) (0.58536 -0.398469 0) (0.608427 -0.268347 0) (0.627751 -0.135058 0) (0.623707 -0.0363068 0) (0.631064 0.0272805 0) (0.615668 0.0855953 0) (0.627896 0.0759147 0) (0.615778 0.0474747 0) (0.614667 -0.0355944 0) (0.713482 -0.219379 0) (0.762453 -0.343724 0) (0.834936 -0.416104 0) (0.898842 -0.47037 0) (0.992548 -0.408035 0) (1.04974 -0.272637 0) (1.07543 -0.0707398 0) (1.07123 0.187337 0) (1.01162 0.413628 0) (0.86886 0.597902 0) (0.73253 0.718446 0) (0.522367 0.737647 0) (0.30631 0.568869 0) (-0.00159587 0.488533 0) (-0.618364 0.741865 0) (-1.19098 1.07403 0) (-1.56056 1.1641 0) (-1.62424 0.9694 0) (-1.47551 0.66126 0) (-1.35789 0.408575 0) (-1.2506 0.201708 0) (-1.13577 -0.0160152 0) (-1.01905 -0.171028 0) (-0.897364 -0.226887 0) (-0.775366 -0.247915 0) (-0.702548 -0.238259 0) (-0.62305 -0.257496 0) (-0.564667 -0.27726 0) (-0.504317 -0.319072 0) (-0.45591 -0.348331 0) (-0.396929 -0.351971 0) (-0.346006 -0.408968 0) (-0.303815 -0.513611 0) (-0.204966 -0.693717 0) (0.0305147 -0.951869 0) (0.219594 -1.06704 0) (0.285763 -0.980581 0) (0.32945 -0.871588 0) (0.436137 -0.750341 0) (0.53501 -0.645677 0) (0.679761 -0.519868 0) (0.782911 -0.376853 0) (0.843692 -0.187714 0) (0.939324 -0.0197349 0) (0.994909 0.193983 0) (0.880865 0.386678 0) (0.945975 0.53237 0) (0.815613 0.615356 0) (0.784269 0.547181 0) (0.758633 0.453342 0) (0.854235 0.205687 0) (0.871426 -0.0359368 0) (1.01806 -0.474904 0) (1.1551 -0.796732 0) (1.19921 -0.876174 0) (1.28337 -0.733122 0) (1.34907 -0.45493 0) (1.44335 -0.0595696 0) (1.45443 0.422946 0) (1.49969 0.971032 0) (1.39022 1.47111 0) (1.26003 1.86078 0) (0.777472 1.66508 0) (0.174889 1.00294 0) (-0.450276 0.476866 0) (-0.677599 0.0612843 0) (-0.963585 -0.441802 0) (-1.21151 -0.135762 0) (-1.39273 0.616805 0) (-1.74704 0.850543 0) (-2.1959 1.04151 0) (-2.68317 1.39947 0) (-3.32745 1.59278 0) (-3.92138 1.7029 0) (-4.45223 1.70034 0) (-4.86624 1.5388 0) (-5.23461 1.30694 0) (-5.42386 1.06372 0) (-5.62199 0.696404 0) (-5.7061 0.365094 0) (-5.72933 -0.0241848 0) (-5.72469 -0.450014 0) (-5.63407 -0.850193 0) (-5.54277 -1.24902 0) (-5.36961 -1.57503 0) (-5.15367 -1.85003 0) (-4.85748 -1.99929 0) (-4.49114 -2.09857 0) (-4.08558 -2.08264 0) (-3.59245 -1.9994 0) (-3.15991 -1.84528 0) (-2.59398 -1.63567 0) (-2.17861 -1.32553 0) (-1.57819 -0.96693 0) (-1.16672 -0.398785 0) (-0.677479 -0.056674 0) (0.158118 0.558013 0) (0.911459 0.94869 0) (1.50414 0.87641 0) (2.08347 0.375986 0) (2.43258 -0.34849 0) (2.87633 -0.950723 0) (3.18073 -1.29286 0) (3.4904 -1.45961 0) (3.56111 -1.38334 0) (3.75168 -0.739538 0) (3.57879 -0.0130674 0) (3.93075 0.139118 0) (3.50158 0.701965 0) (2.91566 0.996784 0) (3.0794 0.117923 0) (1.83508 0.328199 0) (1.65444 -0.158393 0) (2.07961 -1.20252 0) (1.85609 -1.09377 0) (0.592465 0.039806 0) (-0.587086 0.778497 0) (-1.67913 1.21599 0) (-2.63385 1.62515 0) (-3.63948 1.89288 0) (-4.51916 2.19354 0) (-5.20145 2.42901 0) (-5.76311 2.52671 0) (-6.17272 2.54371 0) (-6.34357 2.50442 0) (-6.41674 2.36129 0) (-6.37343 2.15481 0) (-6.19728 1.93925 0) (-5.97259 1.68003 0) (-5.73285 1.38577 0) (-5.47326 1.10989 0) (-5.23435 0.839796 0) (-5.02316 0.598593 0) (-4.82645 0.392127 0) (-4.65749 0.213727 0) (-4.50045 0.0690066 0) (-4.35557 -0.0519093 0) (-4.20111 -0.160941 0) (-4.06353 -0.248406 0) (-3.89744 -0.335834 0) (-3.75061 -0.414017 0) (-3.57545 -0.473935 0) (-3.39199 -0.545847 0) (-3.19543 -0.597769 0) (-2.99627 -0.64703 0) (-2.7804 -0.684613 0) (-2.57342 -0.716168 0) (-2.3613 -0.733981 0) (-2.14531 -0.758624 0) (-1.92706 -0.767869 0) (-1.72587 -0.77268 0) (-1.53009 -0.761654 0) (-1.32841 -0.749545 0) (-1.18046 -0.715055 0) (-1.02626 -0.670856 0) (-0.921623 -0.614739 0) (-0.824509 -0.563626 0) (-0.775423 -0.507279 0) (-0.722249 -0.450351 0) (-0.719145 -0.37846 0) (-0.706036 -0.307362 0) (-0.725363 -0.230248 0) (-0.713235 -0.174956 0) (-0.729819 -0.116617 0) (-0.71815 -0.0509887 0) (-0.724226 0.014275 0) (-0.73733 0.0849079 0) (-0.714999 0.143393 0) (-0.735394 0.195068 0) (-0.735487 0.242005 0) (-0.746892 0.255473 0) (-0.754473 0.24236 0) (-0.85274 0.191526 0) (-0.959946 0.143879 0) (-1.09302 0.0995895 0) (-1.24134 0.0198556 0) (-1.34673 -0.0166444 0) (-1.5111 -0.134954 0) (-1.57934 -0.332058 0) (-1.63872 -0.539758 0) (-1.61083 -0.59446 0) (-1.63463 -0.752475 0) (-1.61208 -1.10419 0) (-1.55899 -1.46098 0) (-1.2909 -1.6527 0) (-0.874281 -1.55128 0) (-0.25512 -1.33975 0) (0.152851 -0.412399 0) (0.287992 -0.660859 0) (0.370903 -0.651235 0) (0.397451 -0.548361 0) (0.413305 -0.41003 0) (0.416912 -0.265267 0) (0.422353 -0.132265 0) (0.415418 -0.0388486 0) (0.413685 0.0370855 0) (0.407852 0.0799572 0) (0.422137 0.0761847 0) (0.397262 0.0529136 0) (0.486632 -0.116234 0) (0.551488 -0.268177 0) (0.573802 -0.373873 0) (0.680513 -0.505682 0) (0.741866 -0.566446 0) (0.824119 -0.484707 0) (0.857163 -0.333106 0) (0.858208 -0.0933406 0) (0.85833 0.223856 0) (0.779505 0.507269 0) (0.618144 0.726011 0) (0.451781 0.879351 0) (0.24337 0.905162 0) (0.0372593 0.795435 0) (-0.376564 0.886421 0) (-0.965222 1.18961 0) (-1.39994 1.3852 0) (-1.56617 1.26303 0) (-1.48281 0.900409 0) (-1.32436 0.562781 0) (-1.2601 0.331424 0) (-1.19057 0.12383 0) (-1.13203 -0.0870778 0) (-1.06323 -0.250094 0) (-0.952777 -0.32351 0) (-0.825704 -0.341019 0) (-0.728194 -0.310268 0) (-0.623085 -0.308632 0) (-0.56099 -0.299049 0) (-0.524265 -0.327261 0) (-0.54506 -0.379698 0) (-0.518483 -0.403836 0) (-0.483441 -0.446929 0) (-0.467074 -0.582863 0) (-0.346849 -0.864692 0) (-0.199434 -1.12487 0) (-0.19246 -1.08388 0) (-0.209551 -0.987308 0) (-0.100437 -0.949518 0) (0.0479076 -0.852969 0) (0.154818 -0.749282 0) (0.273221 -0.617553 0) (0.366607 -0.491989 0) (0.469214 -0.337791 0) (0.530788 -0.0659515 0) (0.504278 0.216468 0) (0.443092 0.401619 0) (0.427356 0.577379 0) (0.278087 0.614906 0) (0.22735 0.586426 0) (0.184481 0.397944 0) (0.0811564 0.138855 0) (0.200619 -0.268487 0) (0.255038 -0.71628 0) (0.343935 -0.942749 0) (0.435172 -1.0397 0) (0.554119 -0.91996 0) (0.670338 -0.623844 0) (0.791855 -0.172756 0) (0.870901 0.375927 0) (0.975148 0.980544 0) (0.891638 1.5511 0) (0.820394 2.06458 0) (0.466833 2.04296 0) (-0.0815893 1.44718 0) (-0.659307 0.857194 0) (-0.902562 0.314133 0) (-1.21298 -0.197917 0) (-1.57915 0.186576 0) (-1.80134 0.898085 0) (-2.16848 1.16305 0) (-2.66902 1.44272 0) (-3.15008 1.86965 0) (-3.72965 2.04777 0) (-4.2203 2.12722 0) (-4.67283 2.0202 0) (-4.93298 1.79488 0) (-5.12053 1.49492 0) (-5.23569 1.15425 0) (-5.24978 0.796703 0) (-5.33417 0.378153 0) (-5.31038 -0.00879969 0) (-5.33237 -0.456978 0) (-5.38815 -0.91739 0) (-5.37431 -1.31119 0) (-5.42923 -1.70409 0) (-5.40901 -2.02486 0) (-5.35352 -2.24183 0) (-5.20247 -2.38291 0) (-4.99666 -2.42726 0) (-4.62739 -2.3933 0) (-4.34197 -2.23056 0) (-3.85086 -2.02335 0) (-3.55681 -1.6818 0) (-2.98885 -1.33534 0) (-2.69058 -0.946578 0) (-2.03127 -0.542565 0) (-1.57547 0.0365098 0) (-0.76321 0.336954 0) (-0.152362 0.272043 0) (0.552842 -0.15997 0) (0.853027 -0.710601 0) (1.39216 -1.24188 0) (1.50875 -1.59695 0) (1.94133 -1.66844 0) (2.06562 -1.40187 0) (2.41819 -0.8735 0) (2.55578 -0.141957 0) (2.66694 0.676953 0) (2.22404 1.07349 0) (2.17643 1.0828 0) (1.37502 1.26463 0) (1.33236 0.494165 0) (1.99837 -0.702697 0) (0.598643 -0.263472 0) (-0.888084 0.529711 0) (-2.05649 0.905347 0) (-2.90273 1.45897 0) (-3.72601 1.8952 0) (-4.46581 2.18452 0) (-5.05101 2.48874 0) (-5.42163 2.68743 0) (-5.76456 2.72709 0) (-5.94191 2.72243 0) (-5.89498 2.66592 0) (-5.80421 2.4858 0) (-5.66711 2.24483 0) (-5.37516 2.01892 0) (-5.07924 1.74671 0) (-4.7976 1.43791 0) (-4.49263 1.16421 0) (-4.21278 0.900488 0) (-3.9815 0.64024 0) (-3.76416 0.424615 0) (-3.5853 0.239632 0) (-3.42759 0.0763069 0) (-3.27872 -0.0619476 0) (-3.18 -0.169773 0) (-3.01519 -0.283076 0) (-2.92661 -0.377866 0) (-2.76083 -0.456738 0) (-2.61703 -0.556369 0) (-2.47084 -0.622079 0) (-2.26126 -0.709012 0) (-2.09146 -0.774915 0) (-1.85137 -0.832349 0) (-1.64596 -0.878241 0) (-1.39132 -0.914483 0) (-1.18997 -0.927367 0) (-0.925299 -0.954598 0) (-0.712681 -0.961253 0) (-0.446149 -0.962588 0) (-0.243764 -0.947945 0) (0.00967234 -0.919458 0) (0.199367 -0.862387 0) (0.397655 -0.797292 0) (0.537016 -0.711899 0) (0.654971 -0.630423 0) (0.717828 -0.544722 0) (0.782564 -0.459678 0) (0.760665 -0.362324 0) (0.738272 -0.25548 0) (0.654831 -0.167665 0) (0.578305 -0.101181 0) (0.444679 -0.013463 0) (0.310217 0.0591288 0) (0.189081 0.109345 0) (0.00949071 0.128347 0) (-0.100966 0.172241 0) (-0.231191 0.16381 0) (-0.300899 0.196453 0) (-0.353806 0.155456 0) (-0.382386 0.178082 0) (-0.373423 0.19681 0) (-0.409727 0.231619 0) (-0.368595 0.188134 0) (-0.381449 0.156541 0) (-0.425972 0.0412591 0) (-0.494848 -0.0578175 0) (-0.609301 -0.195437 0) (-0.63475 -0.276971 0) (-0.852342 -0.554532 0) (-1.02252 -0.828734 0) (-0.958471 -1.10415 0) (-1.03827 -1.48683 0) (-1.02252 -1.86888 0) (-0.910334 -2.03667 0) (-0.254422 -1.88038 0) (0.107682 -0.575109 0) (0.185715 -0.738542 0) (0.225596 -0.677612 0) (0.214238 -0.554916 0) (0.209663 -0.411178 0) (0.200632 -0.262954 0) (0.196816 -0.131436 0) (0.183462 -0.0325672 0) (0.172633 0.0414591 0) (0.174719 0.0798711 0) (0.16068 0.0894309 0) (0.222122 -0.0166484 0) (0.318363 -0.173926 0) (0.342471 -0.288923 0) (0.404949 -0.450236 0) (0.451268 -0.574435 0) (0.444033 -0.581863 0) (0.483984 -0.468619 0) (0.508688 -0.324622 0) (0.500341 -0.0682275 0) (0.496283 0.293559 0) (0.417182 0.609241 0) (0.277054 0.858248 0) (0.111548 1.02225 0) (-0.0416156 1.05392 0) (-0.267379 1.06537 0) (-0.713383 1.2793 0) (-1.1936 1.54429 0) (-1.45589 1.56072 0) (-1.45159 1.25073 0) (-1.31698 0.80816 0) (-1.2156 0.494321 0) (-1.21569 0.293853 0) (-1.22054 0.10042 0) (-1.22097 -0.122507 0) (-1.17405 -0.325962 0) (-1.08947 -0.431614 0) (-0.987048 -0.446926 0) (-0.864983 -0.416343 0) (-0.742293 -0.402229 0) (-0.640199 -0.362804 0) (-0.561028 -0.32554 0) (-0.580489 -0.356603 0) (-0.622117 -0.398418 0) (-0.617897 -0.438023 0) (-0.615696 -0.611395 0) (-0.539742 -0.932616 0) (-0.597107 -1.09202 0) (-0.650994 -1.02528 0) (-0.592968 -1.04125 0) (-0.504774 -1.06258 0) (-0.348874 -0.977941 0) (-0.266213 -0.860088 0) (-0.174086 -0.718273 0) (-0.12057 -0.558223 0) (-0.0563192 -0.336637 0) (-0.0261148 -0.0416297 0) (-0.0294775 0.261449 0) (-0.13206 0.488079 0) (-0.224216 0.674124 0) (-0.350682 0.703671 0) (-0.424764 0.655705 0) (-0.475547 0.559299 0) (-0.581142 0.241716 0) (-0.460697 -0.205063 0) (-0.568667 -0.553158 0) (-0.512867 -0.914066 0) (-0.448608 -0.985959 0) (-0.338238 -0.904873 0) (-0.130593 -0.643554 0) (0.0348709 -0.228652 0) (0.208299 0.322738 0) (0.351779 0.995573 0) (0.357262 1.64107 0) (0.350658 2.23787 0) (0.108772 2.35917 0) (-0.364126 1.85055 0) (-0.903557 1.17553 0) (-1.20928 0.509521 0) (-1.54831 0.0605385 0) (-1.85649 0.523164 0) (-2.07265 1.20588 0) (-2.43587 1.48228 0) (-2.84726 1.82695 0) (-3.25466 2.2701 0) (-3.7311 2.40231 0) (-4.09402 2.40836 0) (-4.29997 2.27653 0) (-4.37859 1.92395 0) (-4.38058 1.56907 0) (-4.33 1.2168 0) (-4.22675 0.817638 0) (-4.21403 0.433745 0) (-4.22133 0.0289732 0) (-4.23065 -0.362856 0) (-4.33122 -0.755334 0) (-4.4862 -1.16679 0) (-4.69947 -1.54762 0) (-4.92539 -1.91699 0) (-5.17361 -2.21683 0) (-5.2915 -2.44049 0) (-5.38771 -2.54849 0) (-5.24097 -2.57431 0) (-5.1681 -2.48537 0) (-4.81104 -2.30566 0) (-4.69207 -2.03771 0) (-4.19867 -1.67023 0) (-4.04886 -1.24085 0) (-3.43869 -0.835466 0) (-3.18333 -0.471581 0) (-2.346 -0.26126 0) (-2.01033 -0.248814 0) (-1.28297 -0.618483 0) (-1.16265 -1.122 0) (-0.576366 -1.5608 0) (-0.576849 -1.88047 0) (-0.149279 -2.04307 0) (0.0208061 -1.70116 0) (0.500409 -1.1146 0) (0.649071 -0.301721 0) (1.09532 0.614754 0) (1.14851 1.09178 0) (1.10704 1.44796 0) (1.14169 1.00678 0) (1.08346 0.112055 0) (-0.23472 0.464671 0) (-1.77237 0.909346 0) (-2.76624 1.24918 0) (-3.5479 1.70757 0) (-4.20566 1.99213 0) (-4.76367 2.30084 0) (-5.06621 2.63525 0) (-5.27911 2.75884 0) (-5.42437 2.78274 0) (-5.42993 2.79752 0) (-5.2323 2.73038 0) (-5.05504 2.51399 0) (-4.84148 2.28745 0) (-4.47122 2.07135 0) (-4.13923 1.78442 0) (-3.86612 1.47139 0) (-3.51759 1.21121 0) (-3.22676 0.954736 0) (-3.0023 0.677338 0) (-2.80265 0.470091 0) (-2.60792 0.285281 0) (-2.48277 0.101405 0) (-2.39238 -0.0225608 0) (-2.22099 -0.147719 0) (-2.22358 -0.256725 0) (-2.06633 -0.353366 0) (-1.98434 -0.471797 0) (-1.90006 -0.560194 0) (-1.68689 -0.679859 0) (-1.60679 -0.75919 0) (-1.35078 -0.860077 0) (-1.1922 -0.950206 0) (-0.925287 -1.0135 0) (-0.701632 -1.06882 0) (-0.417163 -1.11302 0) (-0.183752 -1.12395 0) (0.116543 -1.15592 0) (0.348015 -1.1616 0) (0.626506 -1.17703 0) (0.880483 -1.15536 0) (1.1338 -1.1199 0) (1.38467 -1.04989 0) (1.61429 -0.964065 0) (1.81403 -0.835359 0) (1.97761 -0.714729 0) (2.10225 -0.60348 0) (2.19672 -0.499338 0) (2.21441 -0.3423 0) (2.17498 -0.19681 0) (2.14625 -0.0904268 0) (2.00075 -0.00138633 0) (1.84816 0.1186 0) (1.65703 0.185706 0) (1.45729 0.234988 0) (1.2754 0.316574 0) (1.00557 0.32745 0) (0.885801 0.371201 0) (0.537377 0.339766 0) (0.451595 0.350938 0) (0.112743 0.241306 0) (0.0571619 0.222593 0) (-0.133855 0.123906 0) (-0.0928464 0.085398 0) (-0.0971194 0.0384231 0) (0.00882594 0.0675122 0) (0.102159 0.0180563 0) (0.176199 -0.0888055 0) (0.0599545 -0.320296 0) (0.0677101 -0.399742 0) (-0.0635676 -0.615012 0) (-0.186623 -0.9832 0) (-0.352906 -1.32816 0) (-0.487759 -1.76012 0) (-0.594841 -2.24938 0) (-0.25375 -2.39133 0) (0.0714095 -0.667393 0) (0.0790549 -0.755239 0) (0.0697804 -0.661176 0) (0.0249925 -0.528048 0) (0.000828967 -0.387087 0) (-0.0279317 -0.243457 0) (-0.0404342 -0.116866 0) (-0.0607916 -0.0201526 0) (-0.0740217 0.0515899 0) (-0.0743866 0.0903495 0) (-0.0319692 0.041467 0) (0.0803211 -0.100708 0) (0.109617 -0.206856 0) (0.126011 -0.327694 0) (0.135256 -0.466665 0) (0.129278 -0.569704 0) (0.121044 -0.600142 0) (0.129973 -0.508772 0) (0.121656 -0.344403 0) (0.0933193 -0.0570856 0) (0.0838177 0.339177 0) (0.0184993 0.694484 0) (-0.0686717 0.972712 0) (-0.178222 1.13902 0) (-0.300723 1.21866 0) (-0.560417 1.36233 0) (-0.98365 1.63065 0) (-1.30594 1.78572 0) (-1.40543 1.61435 0) (-1.29738 1.1766 0) (-1.17835 0.738832 0) (-1.12778 0.483464 0) (-1.18456 0.318374 0) (-1.24835 0.127018 0) (-1.24361 -0.141553 0) (-1.2094 -0.38051 0) (-1.17262 -0.495322 0) (-1.09431 -0.533532 0) (-0.970493 -0.520029 0) (-0.860489 -0.494704 0) (-0.772948 -0.453267 0) (-0.689421 -0.367244 0) (-0.685783 -0.33648 0) (-0.742493 -0.372777 0) (-0.759439 -0.426173 0) (-0.781404 -0.624456 0) (-0.835003 -0.923132 0) (-0.999499 -1.03712 0) (-1.0505 -1.03151 0) (-1.02733 -1.11906 0) (-0.925491 -1.14707 0) (-0.835406 -1.04489 0) (-0.779772 -0.879097 0) (-0.704523 -0.717129 0) (-0.674225 -0.603538 0) (-0.613704 -0.394835 0) (-0.574169 -0.0598242 0) (-0.577989 0.299991 0) (-0.667691 0.570685 0) (-0.752437 0.756572 0) (-0.958184 0.806913 0) (-1.20664 0.778492 0) (-1.33569 0.538968 0) (-1.46434 0.119065 0) (-1.57274 -0.259311 0) (-1.61029 -0.741559 0) (-1.62304 -1.03637 0) (-1.40447 -1.19698 0) (-1.2738 -1.13928 0) (-0.942065 -0.874749 0) (-0.740646 -0.413562 0) (-0.455344 0.168666 0) (-0.232104 0.886569 0) (-0.119181 1.6158 0) (-0.0884912 2.30863 0) (-0.214383 2.61721 0) (-0.594227 2.18695 0) (-1.06763 1.52612 0) (-1.38473 0.802254 0) (-1.70484 0.328639 0) (-1.90088 0.700598 0) (-2.01444 1.40114 0) (-2.36311 1.73368 0) (-2.66912 2.10119 0) (-3.0072 2.5663 0) (-3.31265 2.65653 0) (-3.43701 2.59322 0) (-3.53633 2.32927 0) (-3.40235 1.93796 0) (-3.22865 1.545 0) (-3.11441 1.182 0) (-2.95711 0.788494 0) (-2.89213 0.416543 0) (-2.88093 0.0849143 0) (-2.8872 -0.24184 0) (-2.95884 -0.571557 0) (-3.10996 -0.883775 0) (-3.36513 -1.18986 0) (-3.70888 -1.52731 0) (-4.19453 -1.87474 0) (-4.59757 -2.20869 0) (-5.06075 -2.42764 0) (-5.1693 -2.5592 0) (-5.44569 -2.52813 0) (-5.27373 -2.40928 0) (-5.39788 -2.17441 0) (-5.06221 -1.89679 0) (-5.06543 -1.54331 0) (-4.58326 -1.1723 0) (-4.46833 -0.81837 0) (-3.82505 -0.638648 0) (-3.7097 -0.691568 0) (-3.094 -0.987684 0) (-3.20929 -1.33251 0) (-2.6876 -1.78206 0) (-2.9467 -2.0096 0) (-2.38742 -2.18828 0) (-2.47279 -1.83945 0) (-1.78896 -1.30359 0) (-1.54018 -0.515531 0) (-0.898083 0.355144 0) (-0.685726 0.872874 0) (-0.424332 1.05829 0) (-0.519472 1.05045 0) (-1.45555 1.21404 0) (-2.47601 1.42248 0) (-3.21625 1.70778 0) (-3.77225 1.88698 0) (-4.31805 2.06709 0) (-4.58891 2.37692 0) (-4.76726 2.62864 0) (-4.85812 2.69226 0) (-4.87603 2.73822 0) (-4.70025 2.79658 0) (-4.45766 2.69542 0) (-4.23365 2.47089 0) (-3.92869 2.29829 0) (-3.53519 2.10143 0) (-3.2131 1.77292 0) (-2.92013 1.49 0) (-2.58777 1.26943 0) (-2.29162 0.971325 0) (-2.12097 0.71102 0) (-1.90664 0.541624 0) (-1.72429 0.325457 0) (-1.71067 0.156963 0) (-1.50386 0.0415967 0) (-1.53828 -0.10493 0) (-1.41661 -0.21505 0) (-1.3591 -0.313044 0) (-1.32735 -0.434056 0) (-1.1666 -0.559432 0) (-1.12897 -0.669883 0) (-0.881508 -0.825264 0) (-0.768437 -0.915462 0) (-0.50589 -1.03721 0) (-0.294861 -1.1468 0) (-0.0304812 -1.2262 0) (0.258109 -1.29833 0) (0.555519 -1.35543 0) (0.830049 -1.35436 0) (1.17267 -1.38852 0) (1.4506 -1.37341 0) (1.75572 -1.39222 0) (2.04521 -1.37375 0) (2.29918 -1.32824 0) (2.56783 -1.26163 0) (2.78836 -1.1486 0) (2.99261 -1.00033 0) (3.21045 -0.857675 0) (3.37971 -0.707372 0) (3.49668 -0.560675 0) (3.52556 -0.371018 0) (3.53198 -0.185158 0) (3.53859 -0.0329896 0) (3.43164 0.119234 0) (3.31228 0.265753 0) (3.16812 0.36617 0) (2.93311 0.488177 0) (2.70652 0.50146 0) (2.38929 0.585295 0) (2.08062 0.535432 0) (1.77282 0.59409 0) (1.40093 0.480768 0) (1.23693 0.512964 0) (0.814758 0.362553 0) (0.722333 0.372632 0) (0.384649 0.145303 0) (0.319277 0.0856913 0) (0.16213 -0.14849 0) (0.27321 -0.185107 0) (0.393868 -0.240621 0) (0.589634 -0.181176 0) (0.613089 -0.364148 0) (0.587848 -0.552643 0) (0.474319 -0.815009 0) (0.221662 -1.11958 0) (0.0527516 -1.58314 0) (-0.194908 -2.17354 0) (-0.100148 -2.66548 0) (0.024557 -0.691211 0) (-0.0273267 -0.727852 0) (-0.0799432 -0.617549 0) (-0.15618 -0.489162 0) (-0.201893 -0.356198 0) (-0.24568 -0.219377 0) (-0.268933 -0.0978523 0) (-0.285933 -0.00180245 0) (-0.277822 0.0558144 0) (-0.231358 0.0457905 0) (-0.131418 -0.0459856 0) (-0.087897 -0.138526 0) (-0.108029 -0.200698 0) (-0.113754 -0.319755 0) (-0.146606 -0.453532 0) (-0.186283 -0.560291 0) (-0.24402 -0.560001 0) (-0.25748 -0.460482 0) (-0.306349 -0.317431 0) (-0.334869 -0.0262404 0) (-0.339077 0.38803 0) (-0.378623 0.755846 0) (-0.403209 1.04179 0) (-0.467639 1.2195 0) (-0.592258 1.3803 0) (-0.840072 1.62488 0) (-1.15373 1.86516 0) (-1.31752 1.87924 0) (-1.27023 1.5746 0) (-1.13239 1.09916 0) (-1.03942 0.70618 0) (-1.01756 0.497691 0) (-1.10366 0.358462 0) (-1.18189 0.159843 0) (-1.16023 -0.146229 0) (-1.17521 -0.379657 0) (-1.1774 -0.521293 0) (-1.10536 -0.610525 0) (-0.989566 -0.615932 0) (-0.879187 -0.558984 0) (-0.805686 -0.487198 0) (-0.77362 -0.384199 0) (-0.765747 -0.309981 0) (-0.830185 -0.345366 0) (-0.850616 -0.381279 0) (-0.931526 -0.549661 0) (-1.10675 -0.810051 0) (-1.33676 -0.91423 0) (-1.44117 -0.975386 0) (-1.47022 -1.15275 0) (-1.42072 -1.20007 0) (-1.32193 -1.11245 0) (-1.23248 -0.94135 0) (-1.12034 -0.76417 0) (-1.15036 -0.649297 0) (-1.14101 -0.424069 0) (-1.11335 -0.0564268 0) (-1.16681 0.349157 0) (-1.31209 0.664991 0) (-1.46663 0.896715 0) (-1.71447 0.999421 0) (-1.88897 0.963156 0) (-2.04949 0.750279 0) (-2.30808 0.379082 0) (-2.42602 -0.161907 0) (-2.51917 -0.660257 0) (-2.53365 -1.07332 0) (-2.41818 -1.2689 0) (-2.19629 -1.30428 0) (-1.83586 -1.08234 0) (-1.51455 -0.630626 0) (-1.0849 -0.0955082 0) (-0.821631 0.744103 0) (-0.555191 1.57565 0) (-0.4543 2.38198 0) (-0.42504 2.81429 0) (-0.736982 2.49358 0) (-1.10322 1.84178 0) (-1.45576 1.06804 0) (-1.79005 0.546354 0) (-1.9205 0.822574 0) (-1.85972 1.55449 0) (-2.10387 1.98633 0) (-2.27874 2.26985 0) (-2.39886 2.72438 0) (-2.57677 2.77711 0) (-2.56943 2.61185 0) (-2.50864 2.33805 0) (-2.37764 1.88695 0) (-2.16626 1.43781 0) (-2.07151 1.03832 0) (-1.98819 0.678043 0) (-1.97413 0.370818 0) (-1.98186 0.0431328 0) (-2.01005 -0.266027 0) (-2.04036 -0.525863 0) (-2.07615 -0.758119 0) (-2.19879 -0.934908 0) (-2.35422 -1.13673 0) (-2.80786 -1.36283 0) (-3.18931 -1.67542 0) (-3.98554 -1.98257 0) (-4.33161 -2.23791 0) (-4.95953 -2.33981 0) (-5.05938 -2.30484 0) (-5.46483 -2.14078 0) (-5.34305 -1.87672 0) (-5.59275 -1.54801 0) (-5.26914 -1.23801 0) (-5.37536 -0.958483 0) (-4.87299 -0.833273 0) (-4.9339 -0.870948 0) (-4.39785 -1.14451 0) (-4.52855 -1.56145 0) (-4.00893 -1.94874 0) (-4.47235 -2.14088 0) (-3.83345 -2.37619 0) (-4.43884 -2.08629 0) (-3.55589 -1.6849 0) (-3.79339 -0.749339 0) (-3.05264 0.0862514 0) (-2.93264 0.787429 0) (-2.69891 1.29078 0) (-2.89447 1.57715 0) (-3.27435 1.79267 0) (-3.57059 1.98461 0) (-3.90999 2.05953 0) (-4.11585 2.15679 0) (-4.20015 2.40177 0) (-4.24193 2.5147 0) (-4.2809 2.54331 0) (-4.12275 2.65468 0) (-3.85926 2.6976 0) (-3.62269 2.54571 0) (-3.37926 2.38226 0) (-2.94959 2.28029 0) (-2.61515 2.04104 0) (-2.36234 1.74119 0) (-1.98107 1.5308 0) (-1.66934 1.29487 0) (-1.49812 0.990331 0) (-1.28717 0.80305 0) (-1.03471 0.606987 0) (-1.07172 0.391989 0) (-0.845251 0.261036 0) (-0.869416 0.104662 0) (-0.788924 -0.0260686 0) (-0.725145 -0.130255 0) (-0.684435 -0.270226 0) (-0.602874 -0.388124 0) (-0.512854 -0.503358 0) (-0.35386 -0.656603 0) (-0.275007 -0.80703 0) (0.0191068 -0.994168 0) (0.156697 -1.08845 0) (0.463683 -1.23391 0) (0.749695 -1.3752 0) (0.986344 -1.45943 0) (1.34406 -1.55081 0) (1.64846 -1.60568 0) (1.94788 -1.63478 0) (2.34043 -1.65107 0) (2.62072 -1.64526 0) (3.0195 -1.64302 0) (3.27561 -1.62725 0) (3.60168 -1.539 0) (3.84553 -1.46462 0) (4.08658 -1.31593 0) (4.27699 -1.1842 0) (4.5131 -1.01683 0) (4.66626 -0.84773 0) (4.83949 -0.618148 0) (4.86037 -0.387108 0) (4.92536 -0.15783 0) (4.86505 -0.00809437 0) (4.8435 0.218752 0) (4.64487 0.344104 0) (4.56412 0.545508 0) (4.28684 0.601281 0) (4.12724 0.790277 0) (3.75007 0.780262 0) (3.52968 0.909182 0) (3.09946 0.840916 0) (2.77937 0.9134 0) (2.3429 0.693086 0) (2.01582 0.724477 0) (1.53556 0.471765 0) (1.40544 0.455282 0) (0.955545 0.173549 0) (0.93726 0.131497 0) (0.58699 -0.223246 0) (0.634879 -0.331354 0) (0.56135 -0.508297 0) (0.83682 -0.434355 0) (0.931935 -0.525776 0) (0.978512 -0.641503 0) (0.718329 -0.980932 0) (0.544988 -1.38124 0) (0.134749 -2.05035 0) (0.126911 -2.61039 0) (-0.00840644 -0.654292 0) (-0.113478 -0.656942 0) (-0.205956 -0.540663 0) (-0.310195 -0.421959 0) (-0.373918 -0.300522 0) (-0.422664 -0.180091 0) (-0.436706 -0.0809272 0) (-0.420691 -0.0107822 0) (-0.37249 0.00588335 0) (-0.298103 -0.0341077 0) (-0.257856 -0.0888475 0) (-0.30572 -0.108776 0) (-0.341688 -0.17508 0) (-0.383218 -0.287537 0) (-0.442843 -0.411521 0) (-0.514312 -0.525972 0) (-0.579269 -0.527314 0) (-0.600012 -0.433706 0) (-0.683211 -0.301848 0) (-0.709626 -0.000558472 0) (-0.698031 0.407084 0) (-0.708425 0.762137 0) (-0.683092 1.06738 0) (-0.716687 1.3083 0) (-0.831383 1.54822 0) (-1.03014 1.8364 0) (-1.17792 2.01941 0) (-1.20746 1.89785 0) (-1.08305 1.50101 0) (-0.940004 1.03625 0) (-0.869076 0.679714 0) (-0.857904 0.520021 0) (-0.942693 0.420107 0) (-1.02755 0.200739 0) (-1.04208 -0.123631 0) (-1.14361 -0.35285 0) (-1.16263 -0.554136 0) (-1.12446 -0.699534 0) (-1.02525 -0.73523 0) (-0.913606 -0.674009 0) (-0.770164 -0.534764 0) (-0.723855 -0.397323 0) (-0.711104 -0.279549 0) (-0.799385 -0.299227 0) (-0.880313 -0.30346 0) (-1.02361 -0.400756 0) (-1.28049 -0.632003 0) (-1.5811 -0.762501 0) (-1.75863 -0.894794 0) (-1.87645 -1.12688 0) (-1.89961 -1.2506 0) (-1.82079 -1.20271 0) (-1.67032 -1.00131 0) (-1.52458 -0.779722 0) (-1.54762 -0.631194 0) (-1.58286 -0.396685 0) (-1.58004 0.0147952 0) (-1.63725 0.504702 0) (-1.77167 0.876971 0) (-1.93012 1.09185 0) (-2.20764 1.17097 0) (-2.47378 1.13191 0) (-2.77587 0.895687 0) (-2.99757 0.417392 0) (-3.14807 -0.115186 0) (-3.31233 -0.671115 0) (-3.27934 -1.20842 0) (-3.29267 -1.42836 0) (-2.98613 -1.63865 0) (-2.73347 -1.36838 0) (-2.20156 -1.0275 0) (-1.79551 -0.346134 0) (-1.34567 0.511495 0) (-0.891012 1.34016 0) (-0.642363 2.25334 0) (-0.450402 2.92532 0) (-0.754151 2.71906 0) (-0.966822 2.13975 0) (-1.29454 1.38808 0) (-1.61477 0.767266 0) (-1.73764 0.806437 0) (-1.51601 1.47087 0) (-1.52065 2.08821 0) (-1.65901 2.3448 0) (-1.59185 2.70857 0) (-1.70665 2.81029 0) (-1.59263 2.58953 0) (-1.51272 2.22734 0) (-1.37741 1.77317 0) (-1.25759 1.34139 0) (-1.20975 0.967107 0) (-1.1997 0.648895 0) (-1.2589 0.372546 0) (-1.30691 0.0664349 0) (-1.38522 -0.259633 0) (-1.45511 -0.571054 0) (-1.50291 -0.851141 0) (-1.64149 -0.997791 0) (-1.56482 -1.0977 0) (-1.85562 -1.15026 0) (-1.80997 -1.28928 0) (-2.55572 -1.49209 0) (-2.88044 -1.77163 0) (-3.75181 -1.91136 0) (-3.99659 -1.94815 0) (-4.67514 -1.86144 0) (-4.68591 -1.71632 0) (-5.12811 -1.47671 0) (-4.8859 -1.24201 0) (-5.14372 -1.05365 0) (-4.67874 -1.00852 0) (-4.82876 -1.08767 0) (-4.29965 -1.32081 0) (-4.71808 -1.57668 0) (-4.2977 -1.86885 0) (-5.24115 -2.0148 0) (-4.61587 -2.21496 0) (-5.56418 -2.06198 0) (-4.66511 -1.62841 0) (-5.39232 -0.797858 0) (-4.34245 -0.153437 0) (-4.5946 0.711689 0) (-4.1066 1.2985 0) (-4.09514 1.68901 0) (-3.97172 1.95318 0) (-3.95038 2.04989 0) (-3.86247 2.16494 0) (-3.70817 2.31549 0) (-3.70748 2.32136 0) (-3.53185 2.38394 0) (-3.30232 2.54999 0) (-3.01497 2.48601 0) (-2.81097 2.32139 0) (-2.44283 2.30134 0) (-2.05265 2.18635 0) (-1.78992 1.90808 0) (-1.48527 1.73096 0) (-1.11079 1.55643 0) (-0.901354 1.24779 0) (-0.743683 1.07642 0) (-0.394382 0.872421 0) (-0.45941 0.664948 0) (-0.218041 0.491196 0) (-0.230741 0.342423 0) (-0.146386 0.197915 0) (-0.0992051 0.0704265 0) (-0.0629225 -0.0631734 0) (0.0207557 -0.198271 0) (0.115933 -0.335173 0) (0.223062 -0.47693 0) (0.337233 -0.634209 0) (0.571776 -0.784017 0) (0.7224 -0.944849 0) (1.0051 -1.19319 0) (1.19403 -1.33726 0) (1.49714 -1.46032 0) (1.85404 -1.61002 0) (2.10903 -1.7083 0) (2.49368 -1.86158 0) (2.79511 -1.87895 0) (3.15949 -1.90713 0) (3.53096 -1.95622 0) (3.87333 -1.92439 0) (4.26905 -1.9447 0) (4.55087 -1.87072 0) (4.87553 -1.79976 0) (5.13739 -1.67122 0) (5.3728 -1.53503 0) (5.65005 -1.36472 0) (5.81497 -1.18185 0) (6.04255 -0.955999 0) (6.13297 -0.748945 0) (6.25143 -0.432016 0) (6.28896 -0.21585 0) (6.3391 0.082259 0) (6.25984 0.249607 0) (6.16731 0.557327 0) (5.94556 0.643853 0) (5.77341 0.907847 0) (5.41249 0.909124 0) (5.19846 1.14366 0) (4.76919 1.0909 0) (4.52467 1.24008 0) (3.9669 1.11688 0) (3.73853 1.17731 0) (3.11193 0.959462 0) (2.83022 0.929728 0) (2.21898 0.608151 0) (2.07164 0.52819 0) (1.52189 0.142919 0) (1.51495 0.0900761 0) (1.08594 -0.28281 0) (1.07259 -0.388577 0) (0.813989 -0.678797 0) (1.05351 -0.670735 0) (1.16947 -0.699798 0) (1.13468 -0.71827 0) (0.895467 -1.1068 0) (0.516938 -1.719 0) (0.203152 -2.40099 0) (-0.0366816 -0.586349 0) (-0.176133 -0.565765 0) (-0.292465 -0.451123 0) (-0.407355 -0.350937 0) (-0.466978 -0.25282 0) (-0.497689 -0.163961 0) (-0.485458 -0.0984099 0) (-0.447542 -0.0545373 0) (-0.400655 -0.049713 0) (-0.382181 -0.0559018 0) (-0.444379 -0.0444116 0) (-0.517966 -0.0618806 0) (-0.562053 -0.145246 0) (-0.613872 -0.241579 0) (-0.678921 -0.36026 0) (-0.78024 -0.46957 0) (-0.864392 -0.467251 0) (-0.906649 -0.382221 0) (-1.00563 -0.254103 0) (-1.04267 0.0348518 0) (-1.00495 0.42344 0) (-1.02201 0.743581 0) (-0.955381 1.08162 0) (-0.978905 1.37696 0) (-1.03576 1.67145 0) (-1.13468 1.91624 0) (-1.14339 2.01126 0) (-1.02542 1.80501 0) (-0.874049 1.38429 0) (-0.729955 0.95878 0) (-0.66172 0.659736 0) (-0.653315 0.539468 0) (-0.728972 0.465177 0) (-0.798913 0.263967 0) (-0.842611 -0.0368375 0) (-0.99336 -0.289746 0) (-1.03378 -0.550208 0) (-1.0602 -0.735178 0) (-1.00548 -0.811501 0) (-0.941024 -0.791856 0) (-0.798755 -0.661368 0) (-0.661254 -0.459909 0) (-0.594292 -0.25466 0) (-0.662871 -0.193866 0) (-0.807985 -0.166382 0) (-1.00793 -0.199144 0) (-1.30939 -0.396106 0) (-1.69023 -0.548164 0) (-1.97676 -0.721809 0) (-2.19176 -1.02374 0) (-2.31149 -1.27709 0) (-2.26776 -1.32572 0) (-2.07807 -1.14501 0) (-1.86228 -0.870699 0) (-1.79884 -0.655782 0) (-1.87405 -0.402392 0) (-1.91583 0.00961938 0) (-1.9593 0.540211 0) (-2.0618 0.968681 0) (-2.23749 1.25523 0) (-2.56789 1.45268 0) (-2.91155 1.45347 0) (-3.16423 1.10965 0) (-3.27067 0.583064 0) (-3.50293 0.0570092 0) (-3.61735 -0.641481 0) (-3.68724 -1.20159 0) (-3.79318 -1.59152 0) (-3.5742 -1.87489 0) (-3.43879 -1.72635 0) (-2.89619 -1.42482 0) (-2.44396 -0.736359 0) (-1.80054 0.0392587 0) (-1.21898 0.960797 0) (-0.763393 2.0255 0) (-0.36497 2.92705 0) (-0.430514 2.91096 0) (-0.614941 2.35475 0) (-0.833207 1.69094 0) (-1.13606 1.00262 0) (-1.38269 0.796214 0) (-1.18404 1.22033 0) (-0.890738 2.01015 0) (-0.943921 2.3871 0) (-0.741646 2.6303 0) (-0.758988 2.7805 0) (-0.598198 2.55146 0) (-0.545934 2.15908 0) (-0.438418 1.7207 0) (-0.377059 1.31053 0) (-0.389471 0.980699 0) (-0.385302 0.680293 0) (-0.451715 0.418103 0) (-0.462265 0.178413 0) (-0.492644 -0.154075 0) (-0.621908 -0.41369 0) (-0.586268 -0.668828 0) (-0.940272 -0.864533 0) (-0.913335 -1.03572 0) (-1.34061 -1.13628 0) (-1.1105 -1.18959 0) (-1.70582 -1.18681 0) (-1.60978 -1.38401 0) (-2.47084 -1.59588 0) (-2.67341 -1.74417 0) (-3.5109 -1.74558 0) (-3.58418 -1.64205 0) (-4.21745 -1.43437 0) (-4.02955 -1.23835 0) (-4.5364 -1.05492 0) (-4.17447 -1.00735 0) (-4.6284 -1.04493 0) (-4.10728 -1.266 0) (-4.75725 -1.48398 0) (-4.04924 -1.79875 0) (-5.2886 -1.88385 0) (-4.39926 -2.155 0) (-5.71707 -2.00738 0) (-4.73702 -1.64148 0) (-5.79345 -0.971994 0) (-4.5987 -0.378246 0) (-5.18309 0.482674 0) (-4.27383 0.991931 0) (-4.293 1.40483 0) (-3.8531 1.70861 0) (-3.56823 1.9187 0) (-3.29676 2.06043 0) (-3.13407 2.06752 0) (-2.80891 2.23422 0) (-2.47501 2.31854 0) (-2.32066 2.18573 0) (-1.94584 2.16543 0) (-1.54924 2.19793 0) (-1.26839 1.98242 0) (-1.04211 1.82186 0) (-0.588894 1.7346 0) (-0.373605 1.4616 0) (-0.240996 1.32623 0) (0.190001 1.11774 0) (0.0914371 0.928369 0) (0.419642 0.734946 0) (0.368924 0.605646 0) (0.497352 0.441385 0) (0.532777 0.298794 0) (0.55087 0.163339 0) (0.686126 0.0223981 0) (0.677114 -0.129635 0) (0.812358 -0.295771 0) (0.926429 -0.443723 0) (1.08031 -0.587682 0) (1.27013 -0.777014 0) (1.45999 -0.973921 0) (1.75566 -1.1684 0) (2.03532 -1.36495 0) (2.25933 -1.51465 0) (2.5633 -1.76833 0) (2.91653 -1.91235 0) (3.19915 -1.96482 0) (3.64539 -2.09391 0) (3.9261 -2.22689 0) (4.39469 -2.23517 0) (4.69415 -2.25315 0) (5.12777 -2.23471 0) (5.46731 -2.21703 0) (5.80443 -2.11771 0) (6.14156 -2.07782 0) (6.41666 -1.86679 0) (6.66795 -1.72057 0) (6.922 -1.56432 0) (7.12122 -1.34819 0) (7.33686 -1.13738 0) (7.47272 -0.80441 0) (7.58251 -0.534839 0) (7.64695 -0.195866 0) (7.67189 0.0227968 0) (7.64352 0.365564 0) (7.57931 0.555233 0) (7.4663 0.916496 0) (7.24519 0.991402 0) (6.98947 1.3285 0) (6.61113 1.33285 0) (6.27765 1.53978 0) (5.76031 1.44296 0) (5.45918 1.59777 0) (4.8498 1.4315 0) (4.581 1.44188 0) (3.86292 1.22672 0) (3.65855 1.12254 0) (2.87651 0.746549 0) (2.80443 0.581409 0) (2.01899 0.19361 0) (2.13946 0.0134402 0) (1.40119 -0.24212 0) (1.58098 -0.458035 0) (1.04186 -0.831666 0) (1.36337 -0.718114 0) (1.17945 -0.746205 0) (1.125 -0.834433 0) (0.669453 -1.46051 0) (0.298711 -2.02355 0) (-0.0482224 -0.483259 0) (-0.20383 -0.451118 0) (-0.325988 -0.352111 0) (-0.436354 -0.281181 0) (-0.47988 -0.218953 0) (-0.487315 -0.16633 0) (-0.458433 -0.124706 0) (-0.433959 -0.0835476 0) (-0.432607 -0.0499348 0) (-0.488519 -0.00108323 0) (-0.574654 0.0307052 0) (-0.628228 -0.00847645 0) (-0.678399 -0.096227 0) (-0.752359 -0.181638 0) (-0.855835 -0.293731 0) (-0.969207 -0.394763 0) (-1.05386 -0.401053 0) (-1.11921 -0.332457 0) (-1.20029 -0.209131 0) (-1.24885 0.0514515 0) (-1.20449 0.409183 0) (-1.21543 0.71278 0) (-1.14248 1.06224 0) (-1.13833 1.39149 0) (-1.10732 1.69781 0) (-1.08313 1.91121 0) (-0.978026 1.92788 0) (-0.779949 1.68273 0) (-0.617295 1.29155 0) (-0.476267 0.90276 0) (-0.409248 0.635931 0) (-0.39798 0.547213 0) (-0.42488 0.494502 0) (-0.461258 0.327268 0) (-0.51138 0.0582185 0) (-0.663869 -0.200117 0) (-0.740184 -0.488664 0) (-0.845441 -0.720488 0) (-0.851899 -0.838127 0) (-0.830046 -0.838901 0) (-0.757422 -0.763041 0) (-0.649203 -0.568454 0) (-0.511884 -0.295379 0) (-0.488557 -0.119252 0) (-0.598962 -0.0171243 0) (-0.823372 0.0267432 0) (-1.13894 -0.107652 0) (-1.56184 -0.277446 0) (-1.93144 -0.48997 0) (-2.22304 -0.863635 0) (-2.46304 -1.24036 0) (-2.55477 -1.41454 0) (-2.44861 -1.30797 0) (-2.19923 -0.9976 0) (-2.01595 -0.658616 0) (-2.01793 -0.33367 0) (-2.10115 0.0938259 0) (-2.16554 0.655445 0) (-2.28593 1.14696 0) (-2.49022 1.48222 0) (-2.79122 1.67387 0) (-3.02782 1.58021 0) (-3.06471 1.12072 0) (-3.02515 0.616418 0) (-3.2344 0.156226 0) (-3.2614 -0.535332 0) (-3.40126 -1.12319 0) (-3.67218 -1.61149 0) (-3.65783 -1.97191 0) (-3.76757 -2.06597 0) (-3.43809 -1.82566 0) (-2.99602 -1.22543 0) (-2.30493 -0.45999 0) (-1.62392 0.469078 0) (-0.9442 1.54058 0) (-0.239395 2.57563 0) (0.129435 2.9501 0) (0.0422801 2.54069 0) (-0.0747327 1.94185 0) (-0.32038 1.35616 0) (-0.519705 0.911359 0) (-0.561274 1.00751 0) (-0.33913 1.70808 0) (-0.0202544 2.31461 0) (0.0947659 2.52167 0) (0.170109 2.67549 0) (0.336861 2.46563 0) (0.416925 2.13812 0) (0.446041 1.70316 0) (0.457514 1.25014 0) (0.397844 0.947011 0) (0.439061 0.696451 0) (0.387776 0.412686 0) (0.329591 0.168972 0) (0.429029 -0.124781 0) (0.188483 -0.373462 0) (0.357727 -0.556989 0) (-0.085784 -0.685084 0) (0.0944907 -0.782024 0) (-0.527248 -0.905483 0) (-0.379809 -0.971004 0) (-1.12489 -0.953662 0) (-0.853042 -1.0283 0) (-1.72629 -1.01967 0) (-1.75447 -1.09831 0) (-2.68175 -1.15148 0) (-2.63759 -1.19873 0) (-3.37119 -1.1284 0) (-3.06998 -1.06631 0) (-3.67219 -0.987632 0) (-3.17657 -1.0537 0) (-3.85366 -1.10805 0) (-3.15467 -1.29215 0) (-4.2526 -1.30808 0) (-3.27253 -1.56743 0) (-4.86911 -1.67021 0) (-3.65911 -1.97559 0) (-5.21299 -1.83698 0) (-4.17418 -1.57065 0) (-5.36172 -1.02206 0) (-4.17647 -0.511249 0) (-4.85288 0.203255 0) (-3.74331 0.572926 0) (-3.81662 1.00901 0) (-3.10063 1.39845 0) (-2.91615 1.57757 0) (-2.54799 1.71698 0) (-2.08415 1.9448 0) (-1.85291 1.93896 0) (-1.53904 1.90506 0) (-1.09742 2.00915 0) (-0.813666 1.94353 0) (-0.635166 1.7961 0) (-0.203774 1.80773 0) (0.105531 1.55117 0) (0.199094 1.48017 0) (0.732679 1.31291 0) (0.583045 1.14745 0) (0.987458 0.958049 0) (0.959868 0.82994 0) (1.10417 0.675432 0) (1.14835 0.554364 0) (1.20082 0.408925 0) (1.35204 0.234618 0) (1.26504 0.109558 0) (1.45049 -0.052808 0) (1.49727 -0.198532 0) (1.65844 -0.362678 0) (1.79318 -0.578264 0) (1.94153 -0.782825 0) (2.20428 -0.953004 0) (2.33695 -1.12771 0) (2.75092 -1.3873 0) (3.02735 -1.67476 0) (3.32882 -1.7665 0) (3.64298 -1.94052 0) (3.96878 -2.1876 0) (4.28087 -2.37418 0) (4.71513 -2.43747 0) (5.08722 -2.49411 0) (5.54891 -2.57083 0) (5.92124 -2.543 0) (6.34832 -2.61976 0) (6.67762 -2.4914 0) (6.98035 -2.43534 0) (7.34323 -2.26449 0) (7.66418 -2.15936 0) (7.98488 -1.94552 0) (8.1933 -1.74081 0) (8.4141 -1.49364 0) (8.62769 -1.2628 0) (8.75298 -0.959509 0) (8.88479 -0.579003 0) (8.97165 -0.292551 0) (9.02442 0.0817221 0) (8.97845 0.32887 0) (8.95662 0.752754 0) (8.79393 0.890567 0) (8.64576 1.32849 0) (8.36146 1.38102 0) (8.1236 1.75859 0) (7.72501 1.73749 0) (7.36958 2.00179 0) (6.86409 1.84386 0) (6.41462 1.97416 0) (5.79166 1.79237 0) (5.40554 1.72933 0) (4.70646 1.47456 0) (4.41307 1.21356 0) (3.50639 0.932288 0) (3.47626 0.602698 0) (2.48777 0.242963 0) (2.57709 0.0669568 0) (1.78639 -0.326817 0) (2.01194 -0.519181 0) (1.05946 -0.809594 0) (1.59667 -0.521003 0) (1.15407 -0.724541 0) (0.823318 -1.0146 0) (0.206976 -1.66638 0) (-0.0527945 -0.380934 0) (-0.210813 -0.344585 0) (-0.323968 -0.263475 0) (-0.415277 -0.226884 0) (-0.438138 -0.204809 0) (-0.433897 -0.18386 0) (-0.40996 -0.142782 0) (-0.423214 -0.0747732 0) (-0.481143 -0.00142498 0) (-0.582309 0.0674594 0) (-0.671612 0.0784503 0) (-0.716345 0.0233418 0) (-0.755315 -0.0387646 0) (-0.797539 -0.0813406 0) (-0.899362 -0.188421 0) (-1.05365 -0.318972 0) (-1.17722 -0.327248 0) (-1.25525 -0.266396 0) (-1.33744 -0.154528 0) (-1.37189 0.0906624 0) (-1.34294 0.393636 0) (-1.29287 0.687881 0) (-1.2236 1.01773 0) (-1.16546 1.3366 0) (-1.05435 1.6027 0) (-0.927651 1.77242 0) (-0.715013 1.75413 0) (-0.499428 1.51657 0) (-0.326231 1.1733 0) (-0.201472 0.821488 0) (-0.131076 0.583838 0) (-0.0919643 0.520889 0) (-0.0497974 0.494196 0) (-0.0403208 0.360595 0) (-0.0631899 0.143124 0) (-0.196868 -0.0840547 0) (-0.298064 -0.367982 0) (-0.486884 -0.640206 0) (-0.594218 -0.83498 0) (-0.63892 -0.882399 0) (-0.572863 -0.803547 0) (-0.546606 -0.644973 0) (-0.424172 -0.372171 0) (-0.325467 -0.092452 0) (-0.325075 0.112062 0) (-0.453411 0.245262 0) (-0.716759 0.19748 0) (-1.08293 0.0593595 0) (-1.49546 -0.181992 0) (-1.85098 -0.590174 0) (-2.21323 -1.04868 0) (-2.4865 -1.38877 0) (-2.58824 -1.44991 0) (-2.47373 -1.1958 0) (-2.23135 -0.760541 0) (-2.11808 -0.317114 0) (-2.13916 0.138424 0) (-2.18301 0.72029 0) (-2.22801 1.26406 0) (-2.37372 1.63979 0) (-2.51345 1.81051 0) (-2.54493 1.6778 0) (-2.34707 1.19514 0) (-2.14944 0.700697 0) (-2.25183 0.264927 0) (-2.26754 -0.30155 0) (-2.35949 -0.85725 0) (-2.73349 -1.34758 0) (-2.99035 -1.76785 0) (-3.38861 -2.05284 0) (-3.48374 -2.04167 0) (-3.33853 -1.66894 0) (-2.77318 -1.02389 0) (-2.03635 -0.152137 0) (-1.20696 0.870521 0) (-0.353474 1.90985 0) (0.452185 2.6839 0) (0.682265 2.60227 0) (0.760051 2.11106 0) (0.64257 1.50468 0) (0.495302 1.0812 0) (0.135512 1.0666 0) (0.212714 1.44602 0) (0.642775 2.05382 0) (0.896843 2.41676 0) (1.11786 2.57533 0) (1.27598 2.39836 0) (1.357 2.07589 0) (1.35722 1.72458 0) (1.41871 1.36269 0) (1.26624 1.00562 0) (1.20983 0.713126 0) (1.24613 0.463531 0) (1.02069 0.206048 0) (1.21794 -0.0682168 0) (0.820996 -0.321909 0) (1.06608 -0.477265 0) (0.477605 -0.625997 0) (0.796467 -0.708005 0) (0.131087 -0.776283 0) (0.593218 -0.82897 0) (-0.214257 -0.833608 0) (0.306627 -0.898217 0) (-0.636038 -0.78902 0) (-0.298672 -0.860279 0) (-1.29357 -0.93591 0) (-1.14744 -1.0472 0) (-2.13795 -1.00292 0) (-1.79447 -0.981557 0) (-2.68271 -0.865009 0) (-2.038 -0.911896 0) (-3.0995 -0.920701 0) (-2.11582 -1.15314 0) (-3.55985 -1.221 0) (-2.11273 -1.51895 0) (-4.01341 -1.48361 0) (-2.71409 -1.76726 0) (-4.26623 -1.67402 0) (-3.26415 -1.49447 0) (-4.40329 -1.01709 0) (-3.33313 -0.675751 0) (-3.88331 -0.155586 0) (-2.83992 0.189812 0) (-2.82854 0.666109 0) (-2.29669 0.974921 0) (-1.94134 1.22143 0) (-1.36729 1.43657 0) (-1.24694 1.4831 0) (-0.734523 1.6511 0) (-0.385292 1.75175 0) (-0.164777 1.58926 0) (0.147081 1.79084 0) (0.580186 1.56169 0) (0.52965 1.52017 0) (1.21729 1.38729 0) (1.06231 1.26633 0) (1.51802 1.13645 0) (1.49666 1.04819 0) (1.68953 0.875007 0) (1.76888 0.760416 0) (1.81602 0.630749 0) (1.91102 0.470917 0) (1.92638 0.323844 0) (2.10721 0.193741 0) (2.05649 0.094663 0) (2.23663 -0.125125 0) (2.33948 -0.355172 0) (2.4855 -0.534648 0) (2.65653 -0.641864 0) (2.83594 -0.921722 0) (3.14084 -1.17162 0) (3.27127 -1.37805 0) (3.6421 -1.70031 0) (3.91976 -1.84316 0) (4.37336 -2.11081 0) (4.7164 -2.24156 0) (5.12203 -2.42011 0) (5.39224 -2.58935 0) (5.82057 -2.81095 0) (6.26685 -2.93241 0) (6.66136 -2.94385 0) (7.11318 -2.94396 0) (7.40696 -2.78666 0) (7.8922 -2.78359 0) (8.18075 -2.75997 0) (8.52048 -2.62572 0) (8.74737 -2.34171 0) (9.14032 -2.20509 0) (9.36674 -1.9438 0) (9.60447 -1.70334 0) (9.78873 -1.3919 0) (9.92967 -1.04935 0) (10.1523 -0.737547 0) (10.178 -0.302328 0) (10.3159 -0.000266489 0) (10.2805 0.449754 0) (10.2546 0.674585 0) (10.085 1.20165 0) (9.95776 1.34873 0) (9.71803 1.77128 0) (9.4247 1.8463 0) (9.15471 2.16289 0) (8.71271 2.17221 0) (8.40014 2.39998 0) (7.80666 2.29072 0) (7.47268 2.33291 0) (6.71837 2.13391 0) (6.30614 2.02619 0) (5.57479 1.703 0) (5.08124 1.40305 0) (4.30348 1.07576 0) (3.97276 0.692627 0) (2.94856 0.444163 0) (3.15637 0.0239106 0) (1.90115 -0.263575 0) (2.15871 -0.318062 0) (1.19965 -0.819306 0) (1.74562 -0.146352 0) (0.723419 -0.671046 0) (0.254362 -1.18288 0) (-0.048678 -0.270111 0) (-0.200462 -0.237092 0) (-0.303697 -0.186697 0) (-0.384547 -0.187277 0) (-0.400367 -0.199694 0) (-0.406431 -0.195042 0) (-0.411316 -0.139358 0) (-0.45345 -0.0286308 0) (-0.53209 0.0812884 0) (-0.630843 0.155163 0) (-0.716375 0.135148 0) (-0.773848 0.0530081 0) (-0.83636 -0.0368291 0) (-0.875807 -0.0637959 0) (-0.914516 -0.0998881 0) (-1.01187 -0.1862 0) (-1.14488 -0.241436 0) (-1.23217 -0.201143 0) (-1.30481 -0.105976 0) (-1.35564 0.080916 0) (-1.32094 0.351283 0) (-1.24984 0.624319 0) (-1.1464 0.949723 0) (-1.02441 1.23405 0) (-0.85158 1.45878 0) (-0.654261 1.59065 0) (-0.394566 1.55258 0) (-0.165797 1.35657 0) (0.0127418 1.05752 0) (0.138669 0.754122 0) (0.225118 0.543119 0) (0.276495 0.476586 0) (0.349015 0.460905 0) (0.395978 0.36861 0) (0.417187 0.197812 0) (0.323301 0.00340757 0) (0.240013 -0.223321 0) (0.0481148 -0.460617 0) (-0.131727 -0.698861 0) (-0.312304 -0.864775 0) (-0.320537 -0.854313 0) (-0.300711 -0.707731 0) (-0.224178 -0.487892 0) (-0.0955876 -0.172066 0) (-0.00184895 0.0831946 0) (0.0619101 0.358366 0) (-0.0691818 0.427303 0) (-0.370986 0.307577 0) (-0.730191 0.143943 0) (-1.04512 -0.210623 0) (-1.4086 -0.692756 0) (-1.81632 -1.13986 0) (-2.19169 -1.39534 0) (-2.39429 -1.31931 0) (-2.304 -0.922453 0) (-2.11022 -0.360587 0) (-2.00948 0.167252 0) (-2.00987 0.755398 0) (-1.92769 1.32724 0) (-1.9597 1.67638 0) (-1.9249 1.77902 0) (-1.82874 1.57638 0) (-1.59639 1.08047 0) (-1.29696 0.601832 0) (-1.28695 0.195045 0) (-1.2457 -0.219549 0) (-1.21971 -0.62975 0) (-1.41136 -0.926489 0) (-1.66931 -1.27834 0) (-2.16696 -1.61747 0) (-2.64714 -1.86386 0) (-3.05901 -1.84489 0) (-2.90432 -1.49118 0) (-2.42889 -0.783584 0) (-1.54089 0.0964285 0) (-0.69433 1.09154 0) (0.298085 1.99465 0) (0.968043 2.22616 0) (1.31519 2.01357 0) (1.38092 1.65638 0) (1.20324 1.38118 0) (1.10135 1.2648 0) (1.04043 1.28471 0) (1.20947 1.67372 0) (1.50245 2.1646 0) (1.81781 2.3608 0) (2.05634 2.32786 0) (2.22624 2.09139 0) (2.17851 1.74263 0) (2.21777 1.36758 0) (2.14999 1.0296 0) (1.93506 0.749929 0) (2.05582 0.474677 0) (1.6598 0.222184 0) (2.01948 -0.0196626 0) (1.44019 -0.240012 0) (1.83905 -0.377626 0) (1.17743 -0.46023 0) (1.59191 -0.547423 0) (0.841431 -0.635518 0) (1.24619 -0.690696 0) (0.337662 -0.732555 0) (1.00878 -0.774565 0) (-0.0259375 -0.649297 0) (0.807947 -0.649102 0) (-0.267741 -0.495778 0) (0.263137 -0.544102 0) (-0.959955 -0.563057 0) (-0.388908 -0.703884 0) (-1.61625 -0.72216 0) (-0.673042 -0.865452 0) (-2.08926 -0.862976 0) (-0.786952 -1.08386 0) (-2.60402 -1.06446 0) (-1.00797 -1.37678 0) (-2.95481 -1.28028 0) (-1.5968 -1.63425 0) (-3.10552 -1.50498 0) (-2.07634 -1.45422 0) (-3.16048 -1.05131 0) (-2.12676 -0.915938 0) (-2.58271 -0.440891 0) (-1.74781 -0.0959976 0) (-1.7851 0.25708 0) (-1.11343 0.609628 0) (-0.793564 0.866563 0) (-0.423329 0.974013 0) (0.00831241 1.37005 0) (0.286258 1.24114 0) (0.435209 1.52592 0) (1.1272 1.39497 0) (0.83851 1.49035 0) (1.68092 1.37948 0) (1.46122 1.28999 0) (2.00952 1.15781 0) (1.98729 1.13029 0) (2.197 1.03637 0) (2.35894 0.928948 0) (2.42138 0.802299 0) (2.50216 0.692202 0) (2.57729 0.55694 0) (2.67245 0.431617 0) (2.72225 0.288098 0) (2.78045 0.113594 0) (2.87678 -0.0377136 0) (3.0109 -0.231376 0) (3.20265 -0.417276 0) (3.32311 -0.672888 0) (3.52839 -0.849999 0) (3.72674 -1.10742 0) (4.02309 -1.38118 0) (4.35803 -1.56042 0) (4.67175 -1.95549 0) (4.92746 -2.23331 0) (5.30436 -2.43475 0) (5.71731 -2.57337 0) (6.20144 -2.79251 0) (6.6356 -2.90447 0) (7.03916 -3.16464 0) (7.47684 -3.22952 0) (7.74688 -3.21473 0) (8.27335 -3.27791 0) (8.50463 -3.28333 0) (8.93472 -3.07033 0) (9.17654 -3.01866 0) (9.58875 -2.85857 0) (9.79311 -2.71122 0) (10.0912 -2.40005 0) (10.2754 -2.23434 0) (10.5633 -1.8906 0) (10.7375 -1.58313 0) (10.9073 -1.20993 0) (11.0986 -0.845397 0) (11.1952 -0.390865 0) (11.3555 -0.0500329 0) (11.3134 0.404336 0) (11.3954 0.812553 0) (11.3074 1.15369 0) (11.1396 1.61389 0) (10.9994 1.87384 0) (10.6948 2.20549 0) (10.4442 2.34854 0) (10.0254 2.60774 0) (9.68283 2.59979 0) (9.1775 2.83063 0) (8.78345 2.62161 0) (8.20791 2.75218 0) (7.68359 2.40694 0) (7.11803 2.30126 0) (6.25284 1.99619 0) (5.84567 1.6286 0) (4.86598 1.24111 0) (4.38565 0.934667 0) (3.54631 0.419632 0) (3.09393 0.396873 0) (2.29001 -0.312817 0) (2.19048 -0.16569 0) (1.28572 -0.433488 0) (1.79113 0.10188 0) (0.375862 -1.01823 0) (-0.0425033 -0.174508 0) (-0.192287 -0.149614 0) (-0.287632 -0.115044 0) (-0.372879 -0.145639 0) (-0.40783 -0.177512 0) (-0.446739 -0.174254 0) (-0.483646 -0.100237 0) (-0.518179 0.0278421 0) (-0.550431 0.153062 0) (-0.603666 0.219966 0) (-0.687351 0.186202 0) (-0.742789 0.114882 0) (-0.799334 0.0495388 0) (-0.847169 -0.00808321 0) (-0.905427 -0.0672762 0) (-0.951855 -0.117253 0) (-1.0494 -0.139807 0) (-1.14911 -0.135134 0) (-1.19661 -0.0516662 0) (-1.23533 0.0942613 0) (-1.20361 0.296243 0) (-1.11855 0.535459 0) (-0.99885 0.814685 0) (-0.806204 1.07851 0) (-0.608794 1.25934 0) (-0.342251 1.3731 0) (-0.0584357 1.34446 0) (0.181922 1.1902 0) (0.37227 0.930118 0) (0.503154 0.665738 0) (0.604176 0.478359 0) (0.64571 0.401325 0) (0.725516 0.379449 0) (0.786705 0.318794 0) (0.860317 0.203424 0) (0.817168 0.0656496 0) (0.791113 -0.0997264 0) (0.642432 -0.302063 0) (0.478231 -0.517488 0) (0.226108 -0.715592 0) (0.0815889 -0.820259 0) (0.02954 -0.738891 0) (0.0794778 -0.572121 0) (0.16158 -0.287751 0) (0.317545 -0.0158694 0) (0.454527 0.270358 0) (0.59333 0.552141 0) (0.566417 0.605607 0) (0.367762 0.396884 0) (0.158208 0.0484915 0) (-0.158268 -0.345851 0) (-0.54019 -0.685762 0) (-1.09316 -0.987084 0) (-1.69487 -1.15704 0) (-2.0288 -1.02017 0) (-2.03262 -0.53539 0) (-1.77118 0.0833208 0) (-1.67266 0.659012 0) (-1.48029 1.24517 0) (-1.38962 1.62107 0) (-1.25646 1.62454 0) (-1.08793 1.41268 0) (-0.812558 0.942685 0) (-0.677384 0.423593 0) (-0.523552 0.0384792 0) (-0.628738 -0.246785 0) (-0.547502 -0.678097 0) (-0.770134 -0.953914 0) (-0.722267 -1.14939 0) (-0.958798 -1.17945 0) (-1.07988 -1.28869 0) (-1.84106 -1.49856 0) (-2.17489 -1.54598 0) (-2.38269 -1.22074 0) (-1.77182 -0.550771 0) (-1.14694 0.327723 0) (-0.0311493 1.16852 0) (0.813113 1.64124 0) (1.34085 1.74399 0) (1.64288 1.5957 0) (1.72624 1.36847 0) (1.80142 1.24106 0) (1.64283 1.37244 0) (1.69642 1.62161 0) (1.94952 1.91196 0) (2.34773 2.08438 0) (2.61406 2.11304 0) (2.95275 1.99842 0) (3.02489 1.77232 0) (3.00332 1.4815 0) (3.09729 1.1464 0) (2.67558 0.845541 0) (3.01175 0.576858 0) (2.38991 0.323698 0) (2.91695 0.0759323 0) (2.14253 -0.10163 0) (2.65144 -0.276472 0) (1.82705 -0.36051 0) (2.4162 -0.456739 0) (1.6621 -0.515019 0) (2.26328 -0.519967 0) (1.42197 -0.483027 0) (1.88529 -0.499109 0) (0.646448 -0.500107 0) (1.43334 -0.577887 0) (0.0931719 -0.45073 0) (1.28932 -0.470621 0) (-0.0866047 -0.373302 0) (1.05212 -0.48891 0) (-0.47661 -0.517656 0) (0.668138 -0.668143 0) (-1.01652 -0.709046 0) (0.34131 -0.943144 0) (-1.56947 -0.917155 0) (0.0181282 -1.30718 0) (-1.93404 -1.12898 0) (-0.415235 -1.52663 0) (-2.05836 -1.33342 0) (-0.685399 -1.45443 0) (-2.03965 -1.06892 0) (-0.632011 -1.12857 0) (-1.43043 -0.553287 0) (-0.500148 -0.481554 0) (-0.545568 0.118039 0) (0.0461451 0.165668 0) (0.192213 0.66426 0) (0.928568 0.679391 0) (0.667258 1.06108 0) (1.71238 1.06204 0) (1.20783 1.23474 0) (2.2009 1.18105 0) (1.84329 1.25839 0) (2.48502 1.14585 0) (2.47982 1.11492 0) (2.68219 1.03777 0) (2.87237 0.971678 0) (2.90802 0.919515 0) (3.13787 0.81404 0) (3.18504 0.733554 0) (3.23255 0.644345 0) (3.39138 0.487276 0) (3.42477 0.337712 0) (3.55726 0.226183 0) (3.57473 0.0976078 0) (3.73945 -0.165014 0) (3.80618 -0.362932 0) (4.09956 -0.633597 0) (4.20313 -0.766326 0) (4.49341 -1.0703 0) (4.7751 -1.37428 0) (4.89124 -1.61346 0) (5.38015 -1.90965 0) (5.73389 -2.16548 0) (6.14792 -2.52036 0) (6.50136 -2.69882 0) (6.86383 -2.99849 0) (7.33198 -3.14327 0) (7.70297 -3.39122 0) (8.16683 -3.45745 0) (8.59565 -3.6586 0) (8.86971 -3.57622 0) (9.25487 -3.60261 0) (9.41033 -3.40007 0) (9.91487 -3.47154 0) (10.0377 -3.2512 0) (10.31 -3.23301 0) (10.5588 -2.84457 0) (10.7492 -2.78126 0) (10.94 -2.27933 0) (11.1558 -2.18421 0) (11.4461 -1.75219 0) (11.4499 -1.44349 0) (11.803 -0.931471 0) (11.8024 -0.632037 0) (12.0988 -0.0260122 0) (11.9712 0.309352 0) (12.3623 0.791096 0) (11.9743 1.23773 0) (12.3353 1.64905 0) (11.8352 2.01876 0) (11.9396 2.44091 0) (11.5197 2.61569 0) (11.2917 2.90303 0) (10.8634 3.00574 0) (10.4684 3.05529 0) (10.0305 3.18535 0) (9.44438 2.99176 0) (9.02462 3.0907 0) (8.3558 2.6502 0) (7.7328 2.70138 0) (7.02483 2.08868 0) (6.20649 2.04098 0) (5.38167 1.48978 0) (4.86713 1.16243 0) (3.58489 0.737681 0) (3.49451 0.561763 0) (1.93237 0.034776 0) (2.43224 0.281014 0) (0.180583 0.326581 0) (0.905262 0.530696 0) (-0.0370004 -0.0827422 0) (-0.182818 -0.0267207 0) (-0.277131 -0.0336003 0) (-0.365309 -0.0729723 0) (-0.427995 -0.128383 0) (-0.506344 -0.125602 0) (-0.564508 -0.0801169 0) (-0.574147 0.0316458 0) (-0.54152 0.156458 0) (-0.519681 0.266041 0) (-0.56843 0.245705 0) (-0.666946 0.14929 0) (-0.730526 0.0467912 0) (-0.783242 0.0123225 0) (-0.822245 -0.0266534 0) (-0.868528 -0.0699258 0) (-0.909731 -0.0827118 0) (-0.955961 -0.0722621 0) (-0.978821 -0.0203127 0) (-0.975362 0.0917329 0) (-0.924848 0.24519 0) (-0.822535 0.439215 0) (-0.672237 0.652096 0) (-0.468887 0.876894 0) (-0.228369 1.03522 0) (0.0420853 1.1283 0) (0.339127 1.11105 0) (0.581748 1.00059 0) (0.797227 0.799587 0) (0.939432 0.590922 0) (1.0457 0.421513 0) (1.07258 0.337178 0) (1.15523 0.303926 0) (1.1862 0.261665 0) (1.29369 0.179135 0) (1.26852 0.0613647 0) (1.28849 -0.0646072 0) (1.18975 -0.179028 0) (1.09735 -0.334165 0) (0.856018 -0.528817 0) (0.678939 -0.695416 0) (0.487797 -0.705459 0) (0.485964 -0.582688 0) (0.457606 -0.385821 0) (0.605674 -0.141958 0) (0.748798 0.109192 0) (0.952671 0.347458 0) (1.16926 0.519796 0) (1.26226 0.501226 0) (1.27685 0.275844 0) (1.16355 -0.017093 0) (0.943093 -0.226069 0) (0.542198 -0.314749 0) (-0.220654 -0.452641 0) (-1.06506 -0.694066 0) (-1.63861 -0.629122 0) (-1.57586 -0.0918486 0) (-1.30912 0.52322 0) (-0.991836 1.03695 0) (-0.789709 1.43814 0) (-0.528032 1.47745 0) (-0.279968 1.20703 0) (-0.0647839 0.76233 0) (0.0205806 0.314048 0) (0.101841 0.0448077 0) (0.0181933 -0.206056 0) (0.183301 -0.568509 0) (-0.0940883 -0.839879 0) (-0.0368408 -1.11015 0) (-0.47751 -1.29678 0) (-0.268396 -1.28121 0) (-0.543004 -1.09531 0) (-0.463504 -1.00484 0) (-1.213 -1.04935 0) (-1.36071 -0.953494 0) (-1.33634 -0.441422 0) (-0.450896 0.28662 0) (0.210002 0.950965 0) (1.06264 1.24247 0) (1.65444 1.32281 0) (1.78528 1.3636 0) (1.86061 1.3591 0) (1.98454 1.42352 0) (2.23222 1.43921 0) (2.47969 1.54038 0) (2.86131 1.66788 0) (3.15635 1.77171 0) (3.4874 1.80808 0) (3.77901 1.66812 0) (3.61769 1.47515 0) (4.03713 1.23817 0) (3.41456 0.961845 0) (3.98053 0.673162 0) (3.16203 0.421795 0) (3.76926 0.157865 0) (2.8435 0.0284443 0) (3.45953 -0.160957 0) (2.5115 -0.267662 0) (3.24491 -0.411229 0) (2.37043 -0.435186 0) (3.06076 -0.493639 0) (2.05948 -0.441147 0) (2.84898 -0.364911 0) (1.83253 -0.261645 0) (2.64621 -0.257027 0) (1.24171 -0.264974 0) (2.2461 -0.400827 0) (0.701356 -0.345329 0) (2.0229 -0.415204 0) (0.456644 -0.343545 0) (1.77086 -0.468436 0) (0.102951 -0.471872 0) (1.38457 -0.728096 0) (-0.464602 -0.73702 0) (1.01903 -1.11634 0) (-0.938171 -0.998058 0) (0.739733 -1.44662 0) (-1.07937 -1.2393 0) (0.648475 -1.48868 0) (-1.00116 -1.10752 0) (0.904497 -1.25623 0) (-0.615884 -0.728183 0) (1.25389 -0.709123 0) (0.100492 -0.211749 0) (1.73514 -0.0724011 0) (0.897808 0.314522 0) (2.30436 0.425712 0) (1.66646 0.788756 0) (2.75769 0.838997 0) (2.40332 1.03492 0) (3.09188 0.983168 0) (3.05884 1.10639 0) (3.34871 1.03985 0) (3.52367 0.964215 0) (3.50911 0.945702 0) (3.80347 0.851741 0) (3.77593 0.823752 0) (3.95665 0.713858 0) (4.00554 0.673938 0) (4.11839 0.534374 0) (4.24314 0.397468 0) (4.29782 0.298509 0) (4.41056 0.115732 0) (4.51546 0.05629 0) (4.64308 -0.317876 0) (4.77299 -0.478821 0) (4.97298 -0.866291 0) (5.19433 -0.957776 0) (5.47305 -1.21007 0) (5.858 -1.55081 0) (6.08655 -1.91496 0) (6.43221 -2.2505 0) (6.85287 -2.53067 0) (7.21859 -2.8934 0) (7.66538 -3.09322 0) (8.00925 -3.27472 0) (8.58732 -3.52431 0) (8.88349 -3.67032 0) (9.28056 -3.89276 0) (9.44419 -3.80362 0) (9.75564 -3.92344 0) (10.0442 -3.78723 0) (10.1942 -3.82483 0) (10.5061 -3.57185 0) (10.5012 -3.60301 0) (10.8079 -3.14584 0) (10.8093 -3.18556 0) (11.1318 -2.73908 0) (11.1395 -2.67751 0) (11.5129 -2.21794 0) (11.5688 -2.01352 0) (11.857 -1.50038 0) (11.9418 -1.22689 0) (12.2252 -0.581878 0) (12.2927 -0.301832 0) (12.472 0.328798 0) (12.5924 0.688132 0) (12.6677 1.24254 0) (12.7658 1.52611 0) (12.6927 2.23548 0) (12.6764 2.32222 0) (12.5265 3.00858 0) (12.2519 3.02431 0) (12.1167 3.40993 0) (11.5098 3.42532 0) (11.316 3.53312 0) (10.6587 3.50636 0) (10.1615 3.40086 0) (9.61729 3.38967 0) (8.83791 3.04851 0) (8.47579 2.90055 0) (7.29308 2.49171 0) (6.94072 2.25356 0) (5.55191 1.81889 0) (5.07506 1.67649 0) (3.8288 1.04136 0) (3.43209 0.756782 0) (1.85623 0.652929 0) (2.71813 1.25524 0) (0.805383 -0.0308168 0) (0.0258948 0.0268212 0) (-0.0878036 0.0321413 0) (-0.226177 0.0410158 0) (-0.317078 -0.0256221 0) (-0.450978 -0.0598333 0) (-0.558045 -0.0718787 0) (-0.660294 -0.0408043 0) (-0.656461 0.0179347 0) (-0.592411 0.123532 0) (-0.457835 0.240655 0) (-0.380045 0.289146 0) (-0.348494 0.242747 0) (-0.382686 0.154331 0) (-0.453954 0.0780152 0) (-0.521919 0.0115571 0) (-0.619515 -0.0321115 0) (-0.705268 -0.0637334 0) (-0.763286 -0.0690841 0) (-0.793949 -0.0390576 0) (-0.773336 0.0459418 0) (-0.692335 0.16174 0) (-0.564184 0.322475 0) (-0.355647 0.492625 0) (-0.137315 0.679532 0) (0.154601 0.813664 0) (0.433366 0.886809 0) (0.739553 0.877774 0) (0.980192 0.817071 0) (1.21234 0.658502 0) (1.34167 0.502183 0) (1.47828 0.379635 0) (1.46981 0.29935 0) (1.5693 0.252228 0) (1.55714 0.216738 0) (1.69234 0.143265 0) (1.64739 0.0667677 0) (1.71087 -0.0130131 0) (1.609 -0.117986 0) (1.62248 -0.233779 0) (1.44782 -0.352663 0) (1.35866 -0.51678 0) (1.10924 -0.619083 0) (1.04769 -0.54767 0) (0.958476 -0.378499 0) (0.985565 -0.222151 0) (1.02805 -0.030002 0) (1.17241 0.136318 0) (1.36973 0.319207 0) (1.53698 0.337386 0) (1.59824 0.211029 0) (1.57266 -0.0119146 0) (1.30977 -0.17077 0) (1.10513 -0.126342 0) (0.704998 0.0324097 0) (0.406778 0.176741 0) (-0.320029 0.0164247 0) (-0.965978 -0.173657 0) (-1.07601 0.155065 0) (-0.683841 0.705507 0) (-0.394452 1.20905 0) (0.164355 1.22038 0) (0.471953 1.06762 0) (0.772312 0.756652 0) (0.895369 0.389893 0) (1.00946 -0.00153964 0) (0.828995 -0.296217 0) (1.08444 -0.564497 0) (0.699544 -0.821091 0) (1.00912 -0.951616 0) (0.515022 -1.03618 0) (0.717168 -1.11294 0) (0.111384 -1.16316 0) (0.429799 -1.06429 0) (0.0439242 -0.750894 0) (0.315133 -0.520728 0) (-0.255309 -0.30936 0) (-0.121762 -0.0687569 0) (-0.0440606 0.320821 0) (0.684679 0.521267 0) (1.07032 0.99672 0) (1.38301 1.15261 0) (1.6372 0.992435 0) (2.00586 1.07054 0) (2.36403 1.23575 0) (2.53449 1.31661 0) (2.97966 1.50105 0) (3.36201 1.52594 0) (3.63913 1.58443 0) (4.36878 1.58979 0) (3.98383 1.44232 0) (4.75728 1.22599 0) (3.98585 0.987231 0) (4.68431 0.679445 0) (3.82792 0.486646 0) (4.45274 0.260705 0) (3.58417 0.150011 0) (4.21065 -0.0493918 0) (3.36645 -0.160912 0) (4.07339 -0.348272 0) (3.24176 -0.38902 0) (3.98138 -0.403674 0) (3.05541 -0.26029 0) (3.76259 -0.228544 0) (2.64197 -0.169452 0) (3.46636 -0.207568 0) (2.30648 -0.113004 0) (3.3241 -0.154199 0) (2.08024 -0.0934537 0) (3.11786 -0.283119 0) (1.79811 -0.267918 0) (2.81648 -0.431301 0) (1.47304 -0.375462 0) (2.46861 -0.552688 0) (1.11906 -0.557621 0) (2.04304 -0.874396 0) (0.665059 -0.953577 0) (1.81369 -1.32659 0) (0.495068 -1.30651 0) (1.80833 -1.53861 0) (0.588094 -1.28092 0) (2.00092 -1.41153 0) (0.960987 -0.955342 0) (2.35477 -0.953458 0) (1.5699 -0.443515 0) (2.77735 -0.371866 0) (2.30131 0.0590903 0) (3.23408 0.179314 0) (2.97672 0.533693 0) (3.61571 0.575095 0) (3.61546 0.802597 0) (4.00163 0.797238 0) (4.15601 0.896275 0) (4.3078 0.927099 0) (4.54172 0.884889 0) (4.52786 0.887194 0) (4.72896 0.720633 0) (4.74952 0.786871 0) (4.89947 0.66433 0) (4.94159 0.608624 0) (5.06815 0.479131 0) (5.08467 0.313296 0) (5.247 0.217152 0) (5.30361 -0.0131809 0) (5.51584 -0.041947 0) (5.61486 -0.370286 0) (5.73304 -0.600013 0) (5.99453 -1.01414 0) (6.17602 -1.28775 0) (6.54527 -1.48325 0) (6.85462 -1.88775 0) (7.33014 -2.15038 0) (7.59614 -2.55554 0) (8.10642 -2.7863 0) (8.38669 -3.24005 0) (8.90107 -3.40433 0) (9.14236 -3.7488 0) (9.60767 -3.81875 0) (9.77246 -4.04307 0) (10.0851 -3.97665 0) (10.3077 -4.13357 0) (10.4667 -3.9513 0) (10.49 -4.09098 0) (10.6899 -3.72523 0) (10.5715 -3.79195 0) (10.7949 -3.4577 0) (10.7663 -3.47551 0) (10.9562 -3.07933 0) (11.0239 -2.9831 0) (11.2097 -2.65177 0) (11.4537 -2.37153 0) (11.5765 -1.99047 0) (11.7972 -1.68993 0) (12.0936 -1.24446 0) (12.2285 -0.799731 0) (12.4644 -0.388141 0) (12.7233 0.167808 0) (12.6772 0.621352 0) (13.0155 1.07896 0) (12.9991 1.64842 0) (13.0788 1.94431 0) (13.1727 2.56575 0) (13.0611 2.73313 0) (13.0808 3.36147 0) (12.8164 3.34794 0) (12.677 3.94022 0) (12.3064 3.71052 0) (11.8451 4.00061 0) (11.3652 3.91442 0) (10.783 3.70799 0) (10.035 3.7717 0) (9.36651 3.33117 0) (8.49349 3.37834 0) (7.84417 2.86018 0) (6.81805 2.63187 0) (5.76207 2.21961 0) (5.03843 2.04889 0) (3.69199 1.72283 0) (3.28448 1.34698 0) (0.696267 1.7178 0) (1.3134 2.79655 0) (-0.0718939 -0.0447333 0) (-0.160844 0.183579 0) (-0.205557 0.143976 0) (-0.342346 0.1312 0) (-0.454375 0.0711297 0) (-0.586578 0.0515227 0) (-0.669674 -0.00471772 0) (-0.721186 -0.0192862 0) (-0.670719 0.000497375 0) (-0.567745 0.0887775 0) (-0.407578 0.153869 0) (-0.296093 0.177812 0) (-0.22957 0.153452 0) (-0.220075 0.138466 0) (-0.222498 0.0949206 0) (-0.263156 0.0843586 0) (-0.295115 0.0397855 0) (-0.338691 0.0108698 0) (-0.354061 0.00114302 0) (-0.355692 0.0283874 0) (-0.293401 0.0892948 0) (-0.188015 0.184662 0) (-0.014279 0.305716 0) (0.216591 0.455627 0) (0.484522 0.552344 0) (0.771926 0.63845 0) (1.05756 0.632304 0) (1.28315 0.605893 0) (1.54364 0.501491 0) (1.61536 0.399491 0) (1.80763 0.30411 0) (1.75737 0.248904 0) (1.92174 0.191983 0) (1.83402 0.146361 0) (2.03431 0.0970911 0) (1.94529 0.0436343 0) (2.09965 -0.0394308 0) (2.00048 -0.104161 0) (2.12084 -0.186499 0) (1.95599 -0.303998 0) (2.00819 -0.423345 0) (1.75656 -0.477139 0) (1.6654 -0.481045 0) (1.50641 -0.358235 0) (1.55143 -0.214115 0) (1.49514 -0.0448329 0) (1.57576 0.0543955 0) (1.56994 0.175157 0) (1.77747 0.237328 0) (1.71441 0.2002 0) (1.83417 0.169252 0) (1.45928 0.146516 0) (1.31264 0.158966 0) (0.829903 0.154177 0) (0.790354 0.13649 0) (0.475105 0.314819 0) (0.332067 0.489295 0) (-0.1175 0.424162 0) (-0.10205 0.407826 0) (-0.149406 0.670392 0) (0.566066 0.605254 0) (0.748929 0.65056 0) (1.25398 0.446103 0) (1.1921 0.193422 0) (1.83113 0.025309 0) (1.46436 -0.187015 0) (1.9936 -0.451758 0) (1.56896 -0.622196 0) (1.96149 -0.846269 0) (1.4682 -0.945938 0) (1.81408 -1.03559 0) (1.28531 -0.969133 0) (1.58773 -0.88383 0) (0.924543 -0.728524 0) (1.27226 -0.595712 0) (0.691737 -0.228169 0) (1.07816 0.0514905 0) (0.606477 0.27161 0) (1.22823 0.373959 0) (0.759172 0.734241 0) (1.57948 0.867144 0) (1.54997 0.774388 0) (1.69836 0.692523 0) (2.13615 1.08172 0) (2.24001 0.969499 0) (2.40767 0.974701 0) (3.26399 1.07613 0) (3.0708 1.14309 0) (4.45809 1.25169 0) (3.98345 1.296 0) (5.10236 1.17087 0) (4.48718 1.06523 0) (5.2429 0.796781 0) (4.56491 0.640215 0) (5.12344 0.408987 0) (4.452 0.276436 0) (4.99355 0.0378008 0) (4.33392 -0.0909527 0) (4.86405 -0.304544 0) (4.18507 -0.326245 0) (4.67447 -0.328512 0) (3.91094 -0.184145 0) (4.45977 -0.167189 0) (3.73089 -0.0118434 0) (4.31338 -0.0505865 0) (3.54729 -0.0183035 0) (4.1902 -0.199541 0) (3.55081 -0.166405 0) (4.24689 -0.23864 0) (3.6759 -0.110465 0) (4.12059 -0.189771 0) (3.52043 -0.156054 0) (3.7194 -0.393155 0) (3.31523 -0.443796 0) (3.34863 -0.763824 0) (3.15223 -0.858532 0) (3.1407 -1.21675 0) (2.9242 -1.24413 0) (3.00685 -1.46219 0) (2.75072 -1.34224 0) (3.10696 -1.42841 0) (2.88985 -1.1515 0) (3.40354 -1.08554 0) (3.28464 -0.732833 0) (3.81915 -0.572167 0) (3.82165 -0.206246 0) (4.25573 -0.0358995 0) (4.37151 0.296021 0) (4.712 0.431486 0) (4.88855 0.598245 0) (5.13536 0.674795 0) (5.24119 0.770465 0) (5.42292 0.829469 0) (5.51558 0.730987 0) (5.57156 0.805712 0) (5.74697 0.649069 0) (5.75179 0.681805 0) (5.87154 0.60242 0) (5.87422 0.470624 0) (5.94603 0.453029 0) (6.11555 0.179045 0) (6.15584 0.189129 0) (6.18458 -0.129252 0) (6.40051 -0.184357 0) (6.59158 -0.607661 0) (6.79488 -0.74215 0) (7.11993 -1.18895 0) (7.2943 -1.51318 0) (7.7967 -1.78796 0) (7.97719 -2.17216 0) (8.57869 -2.5368 0) (8.73152 -2.90984 0) (9.36535 -3.19931 0) (9.54918 -3.50608 0) (10.0726 -3.78298 0) (10.1384 -3.78509 0) (10.5268 -4.10735 0) (10.5821 -4.02111 0) (10.7206 -4.2802 0) (10.8018 -4.10195 0) (10.5717 -4.11687 0) (10.8007 -3.91229 0) (10.5931 -3.85236 0) (10.6824 -3.70979 0) (10.5651 -3.51506 0) (10.72 -3.4536 0) (10.8174 -3.11812 0) (10.792 -3.0272 0) (11.2364 -2.6738 0) (11.3498 -2.64125 0) (11.7045 -2.01861 0) (11.8609 -1.91753 0) (12.2953 -1.30567 0) (12.3306 -1.02465 0) (12.8947 -0.367758 0) (12.5736 -0.0954342 0) (13.2865 0.657829 0) (12.7633 0.944411 0) (13.3902 1.68604 0) (12.9845 1.95762 0) (13.4101 2.52792 0) (13.0545 2.87836 0) (13.4417 3.17294 0) (13.1655 3.73767 0) (13.1659 3.70024 0) (13.0187 4.29701 0) (12.7321 4.19259 0) (12.3582 4.40729 0) (11.8383 4.30639 0) (11.1043 4.2383 0) (10.7065 4.18381 0) (9.51624 3.69225 0) (8.89959 3.7151 0) (7.79153 3.46663 0) (7.13546 3.18601 0) (6.13347 2.74376 0) (4.82662 2.17349 0) (3.01268 2.46761 0) (2.35397 3.21374 0) (-0.778736 2.36907 0) (-0.245135 0.247824 0) (-0.229694 0.160081 0) (-0.286373 0.184969 0) (-0.246184 0.170218 0) (-0.230267 0.122293 0) (-0.232953 0.0965292 0) (-0.197121 0.0545558 0) (-0.241064 0.0282607 0) (-0.209721 0.00765099 0) (-0.244246 0.0224394 0) (-0.148198 0.0436539 0) (-0.122135 0.0731198 0) (0.0050194 0.0742827 0) (-0.00815917 0.074589 0) (0.100967 0.0477347 0) (0.0322671 0.0405114 0) (0.143263 2.73982e-05 0) (0.0672147 -0.0118304 0) (0.155252 -0.0330282 0) (0.103026 -0.0132842 0) (0.220052 0.000253438 0) (0.252352 0.0747297 0) (0.443312 0.138231 0) (0.577978 0.254634 0) (0.883605 0.315797 0) (1.04048 0.397411 0) (1.42237 0.416812 0) (1.50703 0.415986 0) (1.90076 0.366462 0) (1.84194 0.311029 0) (2.19303 0.247485 0) (2.03744 0.205297 0) (2.36826 0.158053 0) (2.18974 0.122696 0) (2.50043 0.06387 0) (2.33287 0.0207789 0) (2.65186 -0.0403112 0) (2.43194 -0.0960561 0) (2.69549 -0.17365 0) (2.47216 -0.234825 0) (2.64643 -0.338535 0) (2.28929 -0.391665 0) (2.39046 -0.374046 0) (2.05926 -0.281163 0) (2.24616 -0.177677 0) (1.99404 -0.058474 0) (2.27899 0.0440547 0) (2.01876 0.126903 0) (2.34391 0.192935 0) (2.11011 0.23228 0) (2.35091 0.243484 0) (2.01554 0.29644 0) (2.12313 0.354124 0) (1.7589 0.434115 0) (1.8287 0.486204 0) (1.34971 0.506603 0) (1.40508 0.441128 0) (1.02063 0.466948 0) (1.3543 0.568174 0) (0.901379 0.646544 0) (1.57188 0.476981 0) (1.22483 0.367611 0) (1.97156 0.239146 0) (1.61211 0.00577209 0) (2.3036 -0.286373 0) (1.93331 -0.463202 0) (2.50213 -0.683133 0) (2.06235 -0.80269 0) (2.61448 -0.936713 0) (2.06491 -0.952355 0) (2.61748 -0.994862 0) (1.93626 -0.912217 0) (2.57159 -0.852348 0) (1.82655 -0.63002 0) (2.58069 -0.439124 0) (1.73772 -0.150751 0) (2.55095 0.0411875 0) (1.67003 0.275509 0) (2.59664 0.33582 0) (1.72753 0.689353 0) (2.49711 0.671579 0) (2.25777 0.804199 0) (2.57247 0.688209 0) (2.08216 0.834313 0) (3.02546 0.909496 0) (2.16043 0.752938 0) (3.38613 0.666595 0) (2.53894 0.695908 0) (3.96622 0.70368 0) (3.63241 0.919689 0) (4.72379 0.857333 0) (4.51948 0.915204 0) (5.24145 0.713419 0) (4.95783 0.610738 0) (5.44008 0.400053 0) (5.10629 0.268853 0) (5.46185 0.0578525 0) (5.14016 -0.059767 0) (5.35537 -0.222326 0) (4.98599 -0.218842 0) (5.13822 -0.263055 0) (4.8514 -0.111426 0) (5.0523 -0.0945434 0) (4.83116 0.0239928 0) (5.02529 -0.0456283 0) (4.877 -0.0515776 0) (5.07941 -0.190057 0) (5.00238 -0.183219 0) (5.17158 -0.246655 0) (5.07011 -0.181091 0) (5.20186 -0.189278 0) (5.14206 -0.173072 0) (5.18959 -0.23821 0) (5.12733 -0.325642 0) (5.08839 -0.503299 0) (4.92409 -0.740303 0) (4.89223 -1.02299 0) (4.69388 -1.22604 0) (4.77738 -1.38147 0) (4.62664 -1.41374 0) (4.85413 -1.41878 0) (4.78748 -1.27992 0) (5.05372 -1.13623 0) (5.0773 -0.844384 0) (5.25356 -0.6497 0) (5.33971 -0.38296 0) (5.46011 -0.143367 0) (5.60979 0.0970453 0) (5.75262 0.258795 0) (5.88569 0.4068 0) (6.10181 0.498978 0) (6.1553 0.606637 0) (6.39241 0.710387 0) (6.50332 0.728079 0) (6.5768 0.701727 0) (6.67442 0.602179 0) (6.6531 0.569032 0) (6.86835 0.676493 0) (6.81594 0.444403 0) (6.98152 0.447312 0) (6.86742 0.0912822 0) (7.24491 0.110279 0) (7.08972 -0.212644 0) (7.56978 -0.315655 0) (7.57266 -0.700908 0) (8.02163 -1.05502 0) (8.27478 -1.44927 0) (8.57794 -1.83563 0) (9.06054 -2.03814 0) (9.30503 -2.5719 0) (9.88971 -2.66685 0) (9.9931 -3.29119 0) (10.6267 -3.3182 0) (10.5017 -3.8347 0) (11.0047 -3.80305 0) (10.8425 -4.12563 0) (11.1794 -4.13762 0) (10.9905 -4.20639 0) (11.0328 -4.1413 0) (10.9082 -3.99043 0) (10.7212 -4.0251 0) (10.661 -3.77405 0) (10.4202 -3.90499 0) (10.5004 -3.50682 0) (10.2833 -3.67787 0) (10.6402 -3.25895 0) (10.6794 -3.57105 0) (10.9627 -2.95943 0) (11.1977 -3.19826 0) (11.7359 -2.70484 0) (11.8345 -2.5447 0) (12.3116 -2.00091 0) (12.4516 -1.72367 0) (12.8918 -1.05447 0) (12.9297 -0.770064 0) (13.2412 0.0893658 0) (13.1906 0.282647 0) (13.4885 1.15026 0) (13.2865 1.43646 0) (13.4701 2.20456 0) (13.202 2.30931 0) (13.4441 3.13614 0) (13.1233 3.1371 0) (13.3633 3.61233 0) (13.2144 3.96276 0) (13.2015 4.06966 0) (13.1067 4.54361 0) (12.8922 4.46199 0) (12.7119 4.92915 0) (12.064 4.66371 0) (11.4545 4.61512 0) (10.7311 4.81667 0) (9.99041 4.24632 0) (9.03207 4.22349 0) (8.03866 3.67769 0) (6.69532 3.70619 0) (5.97685 4.17456 0) (4.95979 3.66339 0) (3.42177 3.87606 0) (3.23346 4.70762 0) (0.258829 0.264449 0) (0.270628 0.215638 0) (0.491489 0.152045 0) (0.526643 0.114583 0) (0.752673 0.0709431 0) (0.756072 0.0472752 0) (0.964229 0.0156266 0) (0.935416 0.00580506 0) (1.11496 -0.00183226 0) (1.04368 0.0153654 0) (1.21926 0.029927 0) (1.11918 0.0515751 0) (1.31872 0.0558369 0) (1.19262 0.060233 0) (1.40974 0.0425883 0) (1.25283 0.0406305 0) (1.47762 0.0123393 0) (1.2844 0.00419819 0) (1.51866 -0.0213099 0) (1.28283 -0.014744 0) (1.54473 -0.018496 0) (1.28269 0.016872 0) (1.62821 0.0454694 0) (1.3618 0.103708 0) (1.83516 0.141466 0) (1.59091 0.188537 0) (2.15117 0.207545 0) (1.91387 0.213971 0) (2.48432 0.189697 0) (2.2093 0.170875 0) (2.73021 0.123843 0) (2.41203 0.0966333 0) (2.89723 0.0501581 0) (2.58526 0.0262373 0) (3.03796 -0.0185 0) (2.7473 -0.0608881 0) (3.18195 -0.121242 0) (2.85701 -0.14597 0) (3.26328 -0.196945 0) (2.90349 -0.253967 0) (3.24904 -0.29594 0) (2.76636 -0.291419 0) (3.04743 -0.291835 0) (2.58436 -0.249303 0) (2.98439 -0.182747 0) (2.61516 -0.0718834 0) (3.08789 0.0159379 0) (2.77048 0.120541 0) (3.21565 0.18155 0) (2.8933 0.243432 0) (3.25846 0.277399 0) (2.87972 0.341574 0) (3.1997 0.402068 0) (2.77215 0.47632 0) (3.11636 0.515954 0) (2.65767 0.55885 0) (3.05049 0.581775 0) (2.60407 0.596852 0) (3.03539 0.564792 0) (2.56427 0.507615 0) (3.13004 0.369325 0) (2.82486 0.278722 0) (3.36615 0.109245 0) (3.07468 -0.0370249 0) (3.60856 -0.254852 0) (3.2827 -0.420523 0) (3.79455 -0.612982 0) (3.3438 -0.73603 0) (3.85321 -0.86451 0) (3.24316 -0.897422 0) (3.80732 -0.938354 0) (2.99605 -0.857828 0) (3.69893 -0.800371 0) (2.7078 -0.588567 0) (3.62535 -0.454806 0) (2.52433 -0.161776 0) (3.62371 -0.0223755 0) (2.50693 0.295704 0) (3.6086 0.296537 0) (2.5908 0.638835 0) (3.52823 0.638217 0) (2.78127 0.711454 0) (3.67481 0.700646 0) (2.64429 0.773123 0) (3.73471 0.78007 0) (3.03073 0.799733 0) (3.88935 0.609854 0) (3.18371 0.62771 0) (3.88222 0.395415 0) (3.70014 0.504466 0) (4.43545 0.505519 0) (4.48056 0.525201 0) (5.11116 0.474298 0) (5.12254 0.387034 0) (5.55143 0.274225 0) (5.55191 0.179178 0) (5.78207 0.0240294 0) (5.74762 -0.0512052 0) (5.81989 -0.158938 0) (5.74557 -0.195572 0) (5.77615 -0.198047 0) (5.74349 -0.147228 0) (5.84653 -0.0997784 0) (5.84933 -0.045332 0) (6.01198 -0.065121 0) (6.06872 -0.111206 0) (6.16948 -0.209225 0) (6.19677 -0.26668 0) (6.22145 -0.295401 0) (6.30911 -0.237737 0) (6.33887 -0.185465 0) (6.47846 -0.181053 0) (6.37379 -0.219165 0) (6.4801 -0.345523 0) (6.34286 -0.535036 0) (6.39188 -0.754451 0) (6.37479 -1.00946 0) (6.30361 -1.22001 0) (6.39625 -1.3882 0) (6.27182 -1.46351 0) (6.4762 -1.52446 0) (6.43378 -1.45325 0) (6.67962 -1.31096 0) (6.77768 -1.05249 0) (7.01589 -0.775139 0) (7.17337 -0.505871 0) (7.2867 -0.214779 0) (7.35664 0.0125765 0) (7.44401 0.243097 0) (7.34399 0.306855 0) (7.43415 0.449664 0) (7.3418 0.555992 0) (7.4252 0.626843 0) (7.45067 0.55632 0) (7.41929 0.624939 0) (7.6858 0.521667 0) (7.37009 0.539829 0) (7.84806 0.481256 0) (7.50972 0.413047 0) (8.13383 0.215348 0) (7.76711 0.116599 0) (8.42508 -0.137604 0) (8.15132 -0.305523 0) (8.79681 -0.680412 0) (8.86233 -0.933925 0) (9.34541 -1.37026 0) (9.70136 -1.66317 0) (9.88956 -2.07027 0) (10.4373 -2.33566 0) (10.5257 -2.8277 0) (11.0658 -2.97611 0) (11.0206 -3.54191 0) (11.5661 -3.50945 0) (11.2645 -3.97202 0) (11.7409 -3.82014 0) (11.358 -4.19304 0) (11.5686 -3.92502 0) (11.0976 -4.191 0) (11.1048 -3.85343 0) (10.6614 -4.13013 0) (10.6123 -3.7328 0) (10.2779 -3.89692 0) (10.3346 -3.46063 0) (10.3158 -3.8907 0) (10.2463 -3.37868 0) (10.7613 -3.90065 0) (10.6921 -3.48329 0) (11.2844 -3.58467 0) (11.3759 -3.38234 0) (11.9533 -3.13558 0) (12.2372 -2.91854 0) (12.5269 -2.37592 0) (12.8123 -2.0669 0) (13.1052 -1.38727 0) (13.2826 -0.942969 0) (13.4076 -0.198549 0) (13.5981 0.28481 0) (13.6141 0.965431 0) (13.761 1.48326 0) (13.6245 1.9858 0) (13.7047 2.65238 0) (13.5448 2.6963 0) (13.5952 3.55724 0) (13.2359 3.52163 0) (13.4732 4.07416 0) (13.1496 4.07285 0) (13.3182 4.54796 0) (13.1052 4.82012 0) (12.9217 4.73536 0) (12.8327 5.37667 0) (12.4539 5.09705 0) (11.6043 5.1736 0) (11.0789 5.11973 0) (9.80976 4.79118 0) (9.47334 5.00832 0) (8.23467 4.46993 0) (7.10411 4.17353 0) (6.1382 4.48746 0) (4.68634 5.09107 0) (1.16467 6.47779 0) (6.82004 1.44779 0) (-3.77617 0.0799538 0) (1.84567 -0.0343754 0) (-1.61353 0.088294 0) (-0.407901 0.0654323 0) (-1.55021 -0.0516294 0) (0.152792 -0.0828939 0) (0.802463 -0.0734622 0) (1.87062 -0.0881439 0) (2.86579 -0.126036 0) (3.02875 -0.00703966 0) (1.67975 0.173378 0) (-0.250403 0.204558 0) (-1.38273 0.10837 0) (-1.82876 0.0773215 0) (-1.64962 -0.0199787 0) (-0.689799 -0.102136 0) (0.918133 -0.11975 0) (2.51066 -0.104883 0) (3.10685 -0.0336684 0) (10.7138 1.78596 0) (-2.23666 0.66606 0) (3.38677 -0.403955 0) (-1.72369 0.386114 0) (0.921601 0.0467811 0) (-1.03877 -0.158582 0) (1.08658 -0.487837 0) (1.78553 -0.421289 0) (3.12326 -0.373147 0) (3.95578 -0.229869 0) (3.33193 0.270557 0) (1.49966 0.664767 0) (-0.0343043 0.577035 0) (-0.596571 0.204491 0) (-0.673485 0.0179283 0) (0.0888244 -0.266926 0) (1.49244 -0.554766 0) (3.47729 -0.693227 0) (5.73732 -0.470856 0) (6.26529 -0.0874584 0) (13.4724 3.31358 0) (2.00227 1.48737 0) (4.59474 -0.053185 0) (-0.908895 0.598176 0) (2.65393 -0.0741861 0) (0.679762 -0.161354 0) (2.52598 -0.736863 0) (2.5639 -0.640324 0) (3.46747 -0.534578 0) (4.01101 -0.266763 0) (3.70003 0.511146 0) (2.43165 1.00789 0) (1.6046 0.779782 0) (1.75348 0.217828 0) (1.79773 -0.0927087 0) (2.78327 -0.529654 0) (4.39515 -0.934144 0) (6.12083 -1.27467 0) (8.35861 -0.866125 0) (8.72828 -0.128419 0) (15.0342 4.05973 0) (5.76912 2.21993 0) (7.31131 0.490091 0) (1.82009 0.770384 0) (4.85849 -0.225568 0) (3.44246 -0.245287 0) (5.05657 -0.812533 0) (4.64548 -0.712182 0) (4.84983 -0.614773 0) (4.81841 -0.361228 0) (4.74181 0.621268 0) (4.11977 1.23231 0) (3.66068 0.843998 0) (4.2754 0.103482 0) (4.49659 -0.196616 0) (5.5918 -0.817955 0) (7.4782 -1.32559 0) (9.0409 -1.77798 0) (11.0879 -1.19087 0) (11.052 -0.136777 0) (16.0924 4.60939 0) (8.90551 2.92402 0) (10.2317 1.07827 0) (5.51631 1.03089 0) (7.61645 -0.255628 0) (6.70107 -0.394266 0) (7.98253 -0.840635 0) (7.49051 -0.649009 0) (7.1842 -0.501188 0) (6.53879 -0.380038 0) (6.17122 0.615221 0) (6.19085 1.36436 0) (5.97596 0.863519 0) (6.63023 -0.0943936 0) (6.99327 -0.345908 0) (8.23592 -1.14813 0) (10.4547 -1.76216 0) (11.7105 -2.28019 0) (13.8081 -1.44549 0) (13.3386 -0.0736373 0) (16.5261 4.72149 0) (11.3117 3.30754 0) (12.62 1.56271 0) (9.28978 1.33482 0) (10.5614 -0.156555 0) (9.88663 -0.549161 0) (10.7389 -0.877691 0) (10.3214 -0.561377 0) (9.9174 -0.291279 0) (9.1 -0.257236 0) (7.91955 0.586051 0) (8.28632 1.39444 0) (8.45761 0.870225 0) (8.90992 -0.277969 0) (9.31496 -0.545431 0) (10.5991 -1.5825 0) (13.3766 -2.2329 0) (14.0872 -2.77582 0) (16.1864 -1.67564 0) (15.4368 0.0361204 0) (16.4595 4.63584 0) (13.1402 3.50065 0) (14.3219 1.84869 0) (12.3995 1.44694 0) (13.0905 -0.0693351 0) (12.5151 -0.644547 0) (12.9558 -0.918616 0) (12.4692 -0.491609 0) (12.323 -0.0754929 0) (12.0501 -0.0250059 0) (10.135 0.670038 0) (10.261 1.34908 0) (10.9057 0.825288 0) (11.1052 -0.420799 0) (11.7138 -0.745369 0) (12.8417 -2.10095 0) (16.0222 -2.72979 0) (16.1206 -3.22008 0) (18.007 -1.88721 0) (17.1561 0.165706 0) (15.6709 4.44785 0) (14.2062 3.47397 0) (15.2349 1.99596 0) (14.5299 1.52309 0) (14.8077 0.103348 0) (14.1375 -0.627275 0) (14.635 -0.898535 0) (13.7928 -0.488582 0) (13.6796 -0.0904035 0) (14.5806 0.102691 0) (12.7026 0.882843 0) (12.196 1.32062 0) (13.2558 0.724483 0) (13.1256 -0.542598 0) (14.1533 -0.936288 0) (15.0994 -2.61232 0) (18.1771 -3.17451 0) (17.6003 -3.49393 0) (19.0008 -2.03559 0) (18.2701 0.296725 0) (14.5279 3.96618 0) (14.3246 3.15915 0) (15.3712 1.94408 0) (15.7546 1.43773 0) (15.8329 0.210326 0) (14.4881 -0.672503 0) (15.4913 -0.841318 0) (14.6281 -0.25337 0) (13.6862 -0.154005 0) (15.6022 0.0252756 0) (14.9807 1.14099 0) (14.1576 1.39919 0) (15.5104 0.623209 0) (14.9608 -0.646238 0) (16.4312 -1.12401 0) (17.1098 -3.02088 0) (19.4392 -3.4731 0) (18.2487 -3.54972 0) (18.9589 -2.0749 0) (18.5513 0.416531 0) (13.5597 3.82852 0) (14.1026 2.85216 0) (14.9668 1.74298 0) (16.1888 1.35972 0) (16.6336 0.515535 0) (14.4671 -0.604965 0) (15.4309 -0.988582 0) (15.1741 -0.091079 0) (13.4642 -0.243809 0) (14.7633 -0.410863 0) (15.7896 1.12698 0) (15.5329 1.4334 0) (17.2406 0.530112 0) (16.4576 -0.729402 0) (18.23 -1.32508 0) (18.32 -3.26052 0) (19.5263 -3.5628 0) (17.9636 -3.41001 0) (17.9874 -2.01202 0) (17.9667 0.502364 0) (12.597 3.43874 0) (13.7864 2.51013 0) (14.1517 1.51935 0) (15.9668 1.12854 0) (16.9412 0.726305 0) (14.7095 -0.361764 0) (14.8485 -1.03762 0) (14.9394 0.163253 0) (13.8014 0.0315859 0) (13.4897 -0.696281 0) (15.2871 0.940052 0) (15.8465 1.32701 0) (17.8722 0.379164 0) (17.2541 -0.828537 0) (18.966 -1.52419 0) (18.3106 -3.31346 0) (18.578 -3.46788 0) (16.9348 -3.16811 0) (16.4667 -1.8931 0) (16.7147 0.545695 0) (11.4944 3.21309 0) (13.1893 2.23399 0) (12.9462 1.19664 0) (14.965 0.740493 0) (16.1663 0.789565 0) (14.7207 -0.102177 0) (14.2269 -1.04179 0) (14.1637 0.100622 0) (14.0625 0.163292 0) (12.7885 -0.84271 0) (14.349 0.551491 0) (15.2343 0.995123 0) (17.4691 0.130345 0) (17.038 -0.971935 0) (18.3795 -1.70284 0) (17.3357 -3.23117 0) (17.1198 -3.26716 0) (15.4694 -2.90819 0) (14.6809 -1.74208 0) (15.0476 0.561547 0) (10.414 2.7504 0) (12.0216 1.93113 0) (11.6275 0.963969 0) (13.6948 0.404712 0) (14.8825 0.755556 0) (14.4446 0.104531 0) (13.936 -0.870365 0) (13.4324 0.118649 0) (13.9767 0.357632 0) (12.7961 -0.710689 0) (13.4392 0.249582 0) (14.3618 0.639747 0) (16.5153 -0.11228 0) (16.0703 -1.09297 0) (17.2741 -1.80059 0) (16.1156 -3.02364 0) (15.4603 -2.98251 0) (13.6471 -2.61645 0) (12.6527 -1.55039 0) (13.1143 0.557838 0) (9.72051 2.52272 0) (10.8408 1.77831 0) (11.0645 0.72921 0) (12.807 0.104849 0) (13.5473 0.61645 0) (14.0765 0.0969955 0) (13.895 -0.785558 0) (12.9617 0.0184923 0) (13.8746 0.29426 0) (13.1791 -0.626533 0) (13.028 -0.011771 0) (13.8105 0.284434 0) (15.3714 -0.335761 0) (15.1128 -1.19631 0) (16.2113 -1.84863 0) (14.6215 -2.73181 0) (13.3854 -2.61631 0) (11.4271 -2.29476 0) (10.3476 -1.33466 0) (10.9295 0.539956 0) (8.9337 2.37052 0) (10.107 1.6038 0) (11.1491 0.496537 0) (12.1681 -0.0157285 0) (12.4849 0.481254 0) (13.7453 0.0215089 0) (13.7373 -0.561611 0) (12.873 0.0642805 0) (13.9112 0.272269 0) (13.5807 -0.417123 0) (13.2035 -0.0513851 0) (13.4732 0.128055 0) (14.4227 -0.443756 0) (14.4454 -1.2601 0) (14.8712 -1.76954 0) (12.641 -2.29908 0) (10.9698 -2.17015 0) (9.00559 -1.9521 0) (7.87196 -1.11505 0) (8.56162 0.496547 0) (7.98023 1.86419 0) (9.8367 1.17346 0) (11.5869 0.198733 0) (11.8781 -0.101608 0) (12.0294 0.226615 0) (13.4401 -0.244551 0) (13.6013 -0.584224 0) (13.1306 -0.0796572 0) (13.7782 0.0792192 0) (13.7244 -0.376513 0) (13.4129 -0.0652736 0) (13.161 0.0479136 0) (13.7569 -0.538888 0) (13.5763 -1.22755 0) (12.996 -1.4963 0) (10.2688 -1.76055 0) (8.3905 -1.70825 0) (6.53795 -1.61299 0) (5.33863 -0.910963 0) (6.11836 0.414901 0) (7.38722 1.55908 0) (10.1579 0.701165 0) (11.8786 0.0388075 0) (11.9347 -0.035828 0) (12.362 0.0542939 0) (13.2457 -0.357637 0) (13.1963 -0.476482 0) (12.8286 -0.0562086 0) (13.0377 0.0394767 0) (12.9619 -0.256757 0) (12.6864 0.0149526 0) (12.485 0.0512946 0) (12.7548 -0.495228 0) (11.9235 -0.981622 0) (10.4406 -1.04823 0) (7.64042 -1.18543 0) (5.87673 -1.26768 0) (4.17666 -1.27879 0) (2.80123 -0.71762 0) (3.65856 0.316848 0) (7.95885 0.849779 0) (10.6666 0.0681164 0) (11.4966 -0.211739 0) (11.5787 -0.158968 0) (12.0682 -0.136538 0) (11.9636 -0.38554 0) (11.2852 -0.383766 0) (10.9374 -0.0724468 0) (10.9377 -0.0108221 0) (10.5661 -0.164046 0) (10.4145 0.0331988 0) (10.5139 0.00836679 0) (10.3538 -0.37255 0) (9.06963 -0.608775 0) (7.4285 -0.559228 0) (5.18151 -0.691063 0) (3.65568 -0.874923 0) (1.93262 -0.90074 0) (0.397359 -0.533793 0) (1.34367 0.191384 0) (8.53959 0.0726245 0) (9.66877 -0.172375 0) (9.4919 -0.165559 0) (9.20701 -0.152046 0) (9.11661 -0.124602 0) (8.51709 -0.195279 0) (7.75077 -0.182203 0) (7.43425 -0.0249663 0) (7.35799 0.044726 0) (7.06283 -0.0463546 0) (7.07188 0.00919692 0) (7.1725 0.00324276 0) (6.83293 -0.154776 0) (5.75517 -0.210829 0) (4.65504 -0.158618 0) (3.2011 -0.30935 0) (1.84028 -0.492961 0) (0.107568 -0.528071 0) (-1.48252 -0.415697 0) (-0.760808 0.0568168 0) (5.00918 -0.330371 0) (4.70277 -0.0985328 0) (4.28991 -0.0399345 0) (3.93102 -0.0345907 0) (3.68416 -0.00762815 0) (3.3032 -0.0153765 0) (2.84936 -0.0232578 0) (2.63997 0.00418889 0) (2.69623 0.0255718 0) (2.65479 -0.0111133 0) (2.64836 0.000585213 0) (2.70367 0.0270301 0) (2.61183 0.0174574 0) (2.27837 0.0176629 0) (2.11861 0.0347248 0) (1.70536 -0.0345762 0) (0.82573 -0.129692 0) (-0.601867 -0.166588 0) (-2.26217 -0.186529 0) (-2.38919 -0.0063234 0) ) ; boundaryField { inlet { type fixedValue; value uniform (10 0 0); } outlet { type zeroGradient; } walls { type fixedValue; value uniform (0 0 0); } frontAndBack { type empty; } } // ************************************************************************* //
[ "g.svenn@online.no" ]
g.svenn@online.no
ae567c40a00fde05344766c9485841d579724553
f14626611951a4f11a84cd71f5a2161cd144a53a
/武侠世界/代码/Common/Packets/CGMissionCheck.h
e931cafec617e0cfbeee0dab32a788eee690eda0
[]
no_license
Deadmanovi4/mmo-resourse
045616f9be76f3b9cd4a39605accd2afa8099297
1c310e15147ae775a59626aa5b5587c6895014de
refs/heads/master
2021-05-29T06:14:28.650762
2015-06-18T01:16:43
2015-06-18T01:16:43
null
0
0
null
null
null
null
GB18030
C++
false
false
2,103
h
// CGMissionCheck.h // // 任务完成验证 // ////////////////////////////////////////////////////// #ifndef __CGMISSIONCHECK_H__ #define __CGMISSIONCHECK_H__ #include "Type.h" #include "Packet.h" #include "PacketFactory.h" namespace Packets { class CGMissionCheck : public Packet { public: enum { ITEM_MAX_NUM = 3, }; public: CGMissionCheck( ) { m_PetIndex = 0; m_ItemIndexList[0] = 0; m_ItemIndexList[1] = 0; m_ItemIndexList[2] = 0; } virtual ~CGMissionCheck( ){} //公用继承接口 virtual BOOL Read( SocketInputStream& iStream ) ; virtual BOOL Write( SocketOutputStream& oStream )const ; virtual UINT Execute( Player* pPlayer ) ; virtual PacketID_t GetPacketID()const { return PACKET_CG_MISSIONCHECK; } virtual UINT GetPacketSize()const { return sizeof(BYTE)*4 + sizeof(ObjID_t) + sizeof(ScriptID_t); } public: BYTE getPetIndex( VOID )const{ return m_PetIndex; } VOID setPetIndex( BYTE PetIndex ) { m_PetIndex = PetIndex; } BYTE* getItemIndexList( VOID ){ return m_ItemIndexList; } VOID setItemIndexList( BYTE* ItemList ) { memcpy(m_ItemIndexList, ItemList, sizeof(BYTE)*ITEM_MAX_NUM); } ObjID_t getNPCID( VOID )const{ return m_idNPC; } VOID setNPCID( ObjID_t idNPC ) { m_idNPC = idNPC; } ScriptID_t getScriptID( VOID )const{ return m_idScript; } VOID setScriptID( ScriptID_t idScript ) { m_idScript = idScript; } private: BYTE m_ItemIndexList[ITEM_MAX_NUM]; BYTE m_PetIndex; ObjID_t m_idNPC; ScriptID_t m_idScript; // 任务的脚本ID }; class CGMissionCheckFactory : public PacketFactory { public: Packet* CreatePacket() { return new CGMissionCheck() ; } PacketID_t GetPacketID()const { return PACKET_CG_MISSIONCHECK; } UINT GetPacketMaxSize()const { return sizeof(BYTE)*4 + sizeof(ObjID_t) + sizeof(ScriptID_t); } }; class CGMissionCheckHandler { public: static UINT Execute( CGMissionCheck* pPacket, Player* pPlayer ) ; }; } #endif
[ "ichenq@gmail.com" ]
ichenq@gmail.com
c7927e7ff853599fe7f29a79fba67c2832e999f7
9f25ac38773b5ccdc0247c9d43948d50e60ab97a
/chrome/chrome_cleaner/ipc/mock_chrome_prompt_ipc.h
d9d564c29325eac45f5d343f5f3a94a4b80e81a0
[ "BSD-3-Clause" ]
permissive
liang0/chromium
e206553170eab7b4ac643ef7edc8cc57d4c74342
7a028876adcc46c7f7079f894a810ea1f511c3a7
refs/heads/main
2023-03-25T05:49:21.688462
2021-04-28T06:07:52
2021-04-28T06:07:52
362,370,889
1
0
BSD-3-Clause
2021-04-28T07:04:42
2021-04-28T07:04:41
null
UTF-8
C++
false
false
1,498
h
// Copyright 2018 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 CHROME_CHROME_CLEANER_IPC_MOCK_CHROME_PROMPT_IPC_H_ #define CHROME_CHROME_CLEANER_IPC_MOCK_CHROME_PROMPT_IPC_H_ #include "chrome/chrome_cleaner/ipc/chrome_prompt_ipc.h" #include "testing/gmock/include/gmock/gmock.h" namespace chrome_cleaner { class MockChromePromptIPC : public ChromePromptIPC { public: MockChromePromptIPC(); ~MockChromePromptIPC() override; MOCK_METHOD1(Initialize, void(ErrorHandler* error_handler)); // Workaround for GMock's limitation, in which MOCK_METHOD* doesn't // accept base::OnceCallback parameters. Will forward any calls to // MockPost*() and pass along a raw pointer for |callback|. void PostPromptUserTask(const std::vector<base::FilePath>& files_to_delete, const std::vector<std::wstring>& registry_keys, const std::vector<std::wstring>& extension_ids, PromptUserCallback callback) override; MOCK_METHOD4(MockPostPromptUserTask, void(const std::vector<base::FilePath>& files_to_delete, const std::vector<std::wstring>& registry_keys, const std::vector<std::wstring>& extension_ids, PromptUserCallback* callback)); }; } // namespace chrome_cleaner #endif // CHROME_CHROME_CLEANER_IPC_MOCK_CHROME_PROMPT_IPC_H_
[ "commit-bot@chromium.org" ]
commit-bot@chromium.org
e83b2304cb307047f9c588e304198dcb64ddf772
3ceb2cf88a3cf65b3735c547a65b0b7eee7e8e19
/graph.cpp
8322ca40bdceb2675cd6518fafa3e26bcc6b4e64
[]
no_license
Yao-Shao/MiniPainter
a21065599afc08f17811317c969005568c21c62e
c8c3d915b6c68e8c1b2af3b52e50017783659d7a
refs/heads/master
2020-06-03T12:59:45.047684
2019-07-24T14:51:52
2019-07-24T14:51:52
191,576,907
0
0
null
null
null
null
UTF-8
C++
false
false
106
cpp
#include "graph.h" myGraph::myGraph(QPoint p1, QPoint p2, int type) : p1(p1), p2(p2), type(type){ }
[ "yshao998@gmail.com" ]
yshao998@gmail.com
6766de5f3ada7b46818663c019b7aaa010a8398c
1b3cfb1ca9d1fafea187c0a8f7b65af7311c71cb
/assignment3/Computer System Assignment3/includes/tokeniser.h
c607fd7e4956124af77fcf7a5bc8eead2d94d873
[]
no_license
YinhaoDeng/Computer-System
c5ddeafbd0392fef88d84d15368026101eca3e78
bf98166115edf71d19aa19e47d8eaefcad41cbcf
refs/heads/master
2021-11-13T10:59:29.614105
2021-10-31T13:47:12
2021-10-31T13:47:12
189,527,187
7
5
null
null
null
null
UTF-8
C++
false
false
8,155
h
#ifndef JACK_COMPILER_TOKENISER_H #define JACK_COMPILER_TOKENISER_H #include <string> #include <iostream> // we have one namespace per language, eg Jack_Compiler namespace Jack_Compiler { // to make our code shorter typedef std::string string ; // the type of a token returned by the tokeniser typedef int Token ; // *** BNF syntax for tokens // * literals inside ' ' // * grouping ( ) // * ASCII ranges - // * alternatives | // * 0 or 1 [ ] // * 0 or more * // * 1 or more + // // Jack Language Tokeniser Tokens // TOKEN: DEFINITION // identifier: ('a'-'z'|'A'-'Z'|'_')('a'-'z'|'A'-'Z'|'_'|'0'-'9')* // integerConstant: '0' | ('1'-'9')('0'-'9')* // stringConstant: '"' printable ascii characters excluding double quote(") and newline '"' // keyword: 'class' | 'constructor' | 'function' | 'method' | 'field' | 'static' | // 'var' | 'int' | 'char' | 'boolean' | 'void' | 'true' | 'false' | 'null' | // 'this' | 'let' | 'do' | 'if' | 'else' | 'while' | 'return' // symbol: '{' | '}' | '(' | ')' | '[' | ']' | '.' | ',' | ';' | '+' | '-' | // '*' | '/' | '&' | '|' | '<' | '>' | '=' | '~' // The kinds of token that are recognised enum TokenKind { tk_first = 4000, // Jack Language token kinds all > 4000 tk_identifier, // an identifier tk_integerConstant, // integer constants from 0 to 32767 tk_stringConstant, // string constants, token value does not include the enclosing " " tk_class, // 'class' tk_constructor, // 'constructor' tk_function, // 'function' tk_method, // 'method' tk_field, // 'field' tk_static, // 'static' tk_var, // 'var' tk_int, // 'int' tk_char, // 'char' tk_boolean, // 'boolean' tk_void, // 'void tk_true, // 'true' tk_false, // 'false' tk_null, // 'null' tk_this, // 'this' tk_let, // 'let', tk_statement tk_do, // 'do', tk_statement tk_if, // 'if', tk_statement tk_else, // 'else', tk_statement tk_while, // 'while', tk_statement tk_return, // 'return', tk_statement tk_lcb, // '{' tk_rcb, // '}' tk_lrb, // '(' tk_rrb, // ')' tk_lsb, // '[' tk_rsb, // ']' tk_stop, // '.' tk_comma, // ',' tk_semi, // ';' tk_add, // '+', tk_infix_op tk_sub, // '-', tk_infix_op, tk_unary_op tk_times, // '*', tk_infix_op tk_divide, // '/', tk_infix_op tk_and, // '&', tk_infix_op tk_or, // '|', tk_infix_op tk_lt, // '<', tk_infix_op, tk_rel_op tk_gt, // '>', tk_infix_op, tk_rel_op tk_eq, // '=', tk_infix_op, tk_rel_op tk_not, // '~', tk_unary_op tk_eoi, // end of input reached or a legal token cannot be formed // the following tokens are not produced by the tokeniser // these are provided to describe groups of tokens tk_class_var, // one of tk_field, tk_static tk_type, // one of tk_int, tk_char, tk_boolean or tk_identifier tk_vtype, // one of tk_int, tk_char, tk_boolean, tk_identifier or tk_void tk_subroutine, // one of tk_constructor, tk_function or tk_method tk_statement, // one of tk_let, tk_do, tk_if, tk_else, tk_whiler or tk_return tk_term, // one of tk_identifier, tk_integerConstant, tk_stringConstant, tk_true, tk_false, tk_null, tk_this, tk_lrb, tk_sub or tk_not tk_unary_op, // one of tk_sub or tk_not tk_infix_op, // one of tk_add, tk_sub, tk_times, tk_divide, tk_and, tk_or, tk_lt, tk_gt or tk_eq, tk_rel_op, // one of tk_lt, tk_gt or tk_eq, tk_oops, // for error handling tk_last // the last ASM token value } ; // return a string representation of the given token kind extern string token_kind_to_string(TokenKind kind) ; // returns the TokenKind that would cause token_kind_to_string to return s, or tk_oops extern TokenKind string_to_token_kind(std::string s) ; // read the next token from standard input extern Token next_token() ; // return the current token, ie the last token returned by next_token() extern Token current_token() ; // each token has an object that internally records // a kind - the TokenKind that describes the token // a spelling - the characters that make up the specific token // an ivalue - the integer value if the token is a number, otherwise 0 // a line - the line on which the token starts, the first line of the input is line 1 // a column - the line position at which the token starts, the first character on a line is in column 1 // a string representation of the above used to implement a to_string function // to assist with error reporting each token has an associated context string // the context string each token that includes: // - the line before the token, // - the line containing the token, and // - a line with a ^ marking the token's starting position // the following functions return the kind, spelling, ivalue, line, column, to_string or context for the current token extern TokenKind token_kind() ; extern string token_spelling() ; extern int token_ivalue() ; extern int token_line() ; extern int token_column() ; extern string token_to_string() ; extern string token_context() ; // the following functions return the kind, spelling, ivalue, line, column, to_string or context for the given token extern TokenKind token_kind(Token token) ; extern string token_spelling(Token token) ; extern int token_ivalue(Token token) ; extern int token_line(Token token) ; extern int token_column(Token token) ; extern string token_to_string(Token token) ; extern string token_context(Token token) ; // to assist with parsing, TokenKind has some extra definitions that are never returned as real tokens // these extra tokens can be used to check if a token is a member of a particular group // for example, tk_statement provides a group of all tokens that can start a statement // check if we HAVE a current token of the given kind or that belongs to the given grouping? extern bool have(TokenKind kind_or_grouping) ; // check if the given token is of the given kind or that belongs to the given grouping? extern bool have(Token token,TokenKind kind_or_grouping) ; // to further assist with parsing, functions have been provided to raise an error if an expected token is missing // the MUSTBE functions check a token against an expected kind or grouping // if the token matches, the next token is read from the input and the matching token is returned // if the token does not match, a fatal_error is called with a suitable message based on the token's context // the current token MUSTBE of the given kind or belong to the given grouping? extern Token mustbe(TokenKind kind_or_grouping) ; // the given token MUSTBE of the given kind or belong to the given grouping? extern Token mustbe(Token token,TokenKind kind_or_grouping) ; } #endif //JACK_COMPILER_TOKENISER_H
[ "1454135273@qq.com" ]
1454135273@qq.com
4a80138d109afe4c3ba6abce153a543805230751
06c5176ef581dcd7e7bf715fec92ca0a363f14fc
/ffl/source/pipeline/FFL_PipelineNode.cpp
ffd07e38fa661b6c7974c91a18c0baf40822b124
[ "MIT" ]
permissive
zhenfei2016/FFL-v2
543270eae8683b4dc95592fbe9b255e2bd16aa34
376c79a0611af580d4767a4bbb05822f1a4fd454
refs/heads/master
2020-03-19T18:09:11.886719
2018-07-20T00:02:52
2018-07-20T00:02:52
136,796,233
0
0
null
null
null
null
UTF-8
C++
false
false
8,165
cpp
/* * This file is part of FFL project. * * The MIT License (MIT) * Copyright (C) 2017-2018 zhufeifei All rights reserved. * * FFL_PipelineNode.cpp * Created by zhufeifei(34008081@qq.com) on 2018/02/03 * https://github.com/zhenfei2016/FFL-v2.git * * Pipelin系统中的Node节点 * */ #include <pipeline/FFL_PipelineNode.hpp> #include <pipeline/FFL_Pipeline.hpp> #include <pipeline/FFL_PipelineInput.hpp> #include <pipeline/FFL_PipelineOutput.hpp> #include <pipeline/FFL_PipelineNodeHandler.hpp> #include "PipelineInputList.hpp" #include "PipelineOutputList.hpp" namespace FFL { PipelineNode::PipelineNode(sp<Pipeline> pipeline, sp<PipelineNodeHandler> handler, NodeId nodeId): mId(nodeId),mPipeline(pipeline.get()) { FFL_LOG_DEBUG("PipelineNode::PipelineNode nodeid=%d this=%p",getId(), this); mHandler = handler; handler->mPipeLineNode = this; mInputList = new PipelineInputList(this); mOutputList = new PipelineOutputList(this); mFlag.resetFlags(0); } PipelineNode::~PipelineNode() { sp<PipelineNodeHandler> handler = mHandler.promote(); if (!handler.is_empty()) { handler->mPipeLineNode = 0; handler = 0; } FFL_SafeFree(mInputList); FFL_SafeFree(mOutputList); FFL_LOG_DEBUG("PipelineNode::~PipelineNode nodeid=%d this=%p", getId(), this); } PipelineNode::NodeId PipelineNode::getId() const { return mId; } // // 获取宿主pipeline // sp<Pipeline> PipelineNode::getPipeline() { return mPipeline; } // // 启动这个Node节点的处理循环 // status_t PipelineNode::startup() { bool bNotifyHandler = !mFlag.hasFlags(STARTED); mFlag.resetFlags(STARTED); sp<PipelineNodeHandler> handler = mHandler.promote(); if (bNotifyHandler) { if (!handler.is_empty() && handler->onStartupBefore() == false) { return FFL_ERROR_FAIL; } } // // 获取出还没有启动的input // Vector< sp<PipelineInput> > inputs; getStopedInputVector(inputs); // // 启动所有的输入节点 // if (inputs.size() == 0) { FFL_LOG_WARNING("PipelineNode(%d) input is empty.", getId()); } else { for (Vector< sp<PipelineInput> >::iterator it = inputs.begin(); it != inputs.end(); it++) { sp<PipelineInput> input = *it; if (input.is_empty()) continue; if (FFL_OK != input->startup()){ FFL_LOG_WARNING("PipelineNode.input(%d.%d) startup fail.", getId(), input->getId()); } } } if (bNotifyHandler && !handler.is_empty()) { handler->onStartupAfter(); } mPipelineRef = mPipeline; return FFL_OK; } // //停止这个节点的处理 // status_t PipelineNode::shutdown() { mFlag.resetFlags(0); sp<PipelineNodeHandler> handler = mHandler.promote(); if (!handler.is_empty()) { handler->onShutdownBefore(); } Vector< sp<PipelineInput> > inputs; getStartedInputVector(inputs); for (uint32_t i =0; i<inputs.size(); i++) { sp<PipelineInput> input = inputs[i]; if (input.is_empty()) continue; if (FFL_OK != input->requestShutdown()) { FFL_LOG_WARNING("PipelineNode.input(%d.%d) startup fail.", getId(), input->getId()); } } for (uint32_t i = 0; i < inputs.size(); i++) { sp<PipelineInput> input = inputs[i]; if (input.is_empty()) continue; if (FFL_OK != input->waitShutdown()) { FFL_LOG_WARNING("PipelineNode.input(%d.%d) startup fail.", getId(), input->getId()); } } inputs.clear(); if (!handler.is_empty()) { handler->onShutdownAfter(); } mPipelineRef = NULL; return FFL_OK; } // // 暂停,恢复消息的处理 // void PipelineNode::pause() { } void PipelineNode::resume() { } // //停止这个节点的一个输入接口处理 // status_t PipelineNode::shutdownInput(PipelineInputId id) { Vector< sp<PipelineInput> > inputs; getStartedInputVector(inputs); for (uint32_t i = 0; i < inputs.size(); i++) { sp<PipelineInput> input = inputs[i]; if (input.is_empty()) continue; if(input->getId() !=id) continue; if (FFL_OK != input->shutdown()) { FFL_LOG_WARNING("PipelineNode.input(%d.%d) startup fail.", getId(), input->getId()); } break; } return FFL_OK; } // // 开始消息循环 // void PipelineNode::handleStartMessageLooper(PipelineInputId id){ sp<PipelineNodeHandler> handler = mHandler.promote(); if (!handler.is_empty()) { return handler->onStartMessageLooper(id); } else { FFL_LOG_WARNING("PipelineNode::handleStartMessageLooper InputId=%d handler is free.", getId()); } } // // 来了一个消息处理前的准备 // context: 消息上下文信息 // msg: 消息体 // 返回表示是否需要处理 // bool PipelineNode::prepareHandleMessage(PipelineInputId id, const sp<PipelineMessage> &msg) { sp<PipelineNodeHandler> handler = mHandler.promote(); if (!handler.is_empty()) { return handler->prepareHandleMessage(id, msg); } else { FFL_LOG_WARNING("PipelineNode::prepareHandleMessage InputId=%d handler is free.", getId()); } return false; } // // 处理退出消息 // void PipelineNode::handleQuitMessageLooper(PipelineInputId id, uint32_t exitCode) { sp<PipelineNodeHandler> handler = mHandler.promote(); if (!handler.is_empty()) { return handler->onQuitMessageLooper(id,exitCode); } else { FFL_LOG_WARNING("PipelineNode::handleQuitMessage InputId=%d handler is free.", getId()); } } // // 发送消息到output // srcId: 源id Input // dstId: 目标id // msg : 消息内容 // status_t PipelineNode::postMessage(PipelineOutputId dstId, const sp<PipelineMessage> &msg, uint64_t delayUs) { sp<PipelineOutput> output = getOutput(dstId); if (!output.is_empty()) { return output->postMessage(msg,delayUs); } else { FFL_LOG_WARNING("PipelineNode().postMessage fail. output(%d) is null",getId(),dstId); } return FFL_ERROR_FAIL; } // // 事件系统上来的事件 // void PipelineNode::onEvent(const sp<PipelineEvent> &msg) { sp<PipelineNodeHandler> handler = mHandler.promote(); if (!handler.is_empty()) { handler->onEvent(msg); } else { FFL_LOG_WARNING("PipelineNode::onEvent handler is free."); } } // // 发送事件到事件系统上 // void PipelineNode::postEvent(const sp<PipelineEvent> &event) { getPipeline()->postEvent(event); } // // 创建一个输入接口,现在的这个handler需要new出来,内部使用完以后会把他删除掉的 // PipelineInputId PipelineNode::createInput(const char* name, sp<PipelineInputHandler> handler) { CMutex::Autolock l(mMutex); return mInputList->createInput(name,handler); } PipelineInputId PipelineNode::createInput(sp<PipelineInputHandler> handler) { return createInput("", handler); } void PipelineNode::destroyInput(PipelineInputId id) { CMutex::Autolock l(mMutex); return mInputList->destroyInput(id); } sp<PipelineInput> PipelineNode::getInput(PipelineInputId id) { CMutex::Autolock l(mMutex); return mInputList->getInput(id); } void PipelineNode::getInputVector(Vector< sp<PipelineInput> >& list) { CMutex::Autolock l(mMutex); return mInputList->getInputVector(list,PipelineInputList::ALL); } void PipelineNode::getStartedInputVector(Vector< sp<PipelineInput> >& list) { CMutex::Autolock l(mMutex); return mInputList->getInputVector(list, PipelineInputList::STARTED); } void PipelineNode::getStopedInputVector(Vector< sp<PipelineInput> >& list) { CMutex::Autolock l(mMutex); return mInputList->getInputVector(list, PipelineInputList::STOPED); } // // 创建一个输出接口 // PipelineOutputId PipelineNode::createOutput() { CMutex::Autolock l(mMutex); return mOutputList->createOutput(); } void PipelineNode::destroyOutput(PipelineOutputId id) { CMutex::Autolock l(mMutex); return mOutputList->destroyOutput(id); } sp<PipelineOutput> PipelineNode::getOutput(PipelineOutputId id) { CMutex::Autolock l(mMutex); return mOutputList->getOutput(id); } void PipelineNode::getOutputVector(Vector< sp<PipelineOutput> >& list) { CMutex::Autolock l(mMutex); mOutputList->getOutputVector(list); } }
[ "34008081@qq.com" ]
34008081@qq.com
115cd50c6f9e71782693a3d918241e553092cf1b
eda7f1e5c79682bf55cfa09582a82ce071ee6cee
/ms-utils/properties/FluidProperties.cpp
31d52b89b33ad044a5881b1d20f782d1c6c4d7bc
[ "LicenseRef-scancode-us-govt-public-domain", "LicenseRef-scancode-warranty-disclaimer", "LicenseRef-scancode-unknown-license-reference" ]
permissive
nasa/gunns
923f4f7218e2ecd0a18213fe5494c2d79a566bb3
d5455e3eaa8b50599bdb16e4867a880705298f62
refs/heads/master
2023-08-30T06:39:08.984844
2023-07-27T12:18:42
2023-07-27T12:18:42
235,422,976
34
11
NOASSERTION
2023-08-30T15:11:41
2020-01-21T19:21:16
C++
UTF-8
C++
false
false
88,134
cpp
/* @copyright Copyright 2022 United States Government as represented by the Administrator of the National Aeronautics and Space Administration. All Rights Reserved. PURPOSE: (Provides the class for modeling the properties of liquids and gases.) REQUIREMENTS: () REFERENCE: () ASSUMPTIONS AND LIMITATIONS: (The constructor is protected, so only those static Fluid Properties objects in its friend, the Defined Fluid Properties class are available.) LIBRARY DEPENDENCY: ( (math/approximation/QuinticFit.o) (math/approximation/QuarticFit.o) (math/approximation/CubicFit.o) (math/approximation/TsApproximation.o) (math/approximation/LinearFit.o) (math/approximation/PowerFit.o) (math/approximation/ProductFit.o) (math/approximation/QuadLinFit.o) (math/approximation/QuadLinInvFit.o) (math/approximation/QuadraticFit.o) (math/approximation/QuadraticRootFit.o) (math/approximation/QuotientFit.o) (math/approximation/TsBilinearInterpolatorReverse.o) (properties/FluidTsatFit.o) (properties/FluidHvapFit.o) (properties/FluidPropertiesDataWaterPvt.o) (math/UnitConversion.o) ) PROGRAMMERS: ((Kenneth McMurtrie) (Tietronix Software) (Initial) (2011-05)) */ #include "FluidProperties.hh" //////////////////////////////////////////////////////////////////////////////////////////////////// /// @param[in] type Type of fluid (from FluidType enum) /// @param[in] phase Phase of fluid (from FluidPhase enum) /// @param[in] mWeight Molecular weight (1/mol) of the fluid /// @param[in] criticalTemperature Critical temperature (K) of the fluid /// @param[in] density Pointer to curve fit of density for the fluid /// @param[in] viscosity Pointer to curve fit of dynamic viscosity for the fluid /// @param[in] specificHeat Pointer to curve fit of specific heat for the fluid /// @param[in] thermalConductivity Pointer to curve fit of thermal conductivity for the fluid /// @param[in] prandtlNumber Pointer to curve fit of Prandtl number for the fluid /// @param[in] adiabaticIndex Pointer to curve fit of adiabatic index for the fluid /// @param[in] pressure Pointer to curve fit of pressure for the fluid /// @param[in] temperature Pointer to curve fit of temperature for the fluid /// @param[in] saturationPressure Pointer to curve fit of saturation pressure for the fluid /// @param[in] saturationTemperature Pointer to curve fit of saturation temperature for the fluid /// @param[in] heatOfVaporization Pointer to curve fit of heat of vaporization for the fluid /// /// @details Constructs the fluid properties by specifying values for each attribute. Also serves /// as the default constructor since a default value is specified for each argument. //////////////////////////////////////////////////////////////////////////////////////////////////// FluidProperties::FluidProperties(const FluidProperties::FluidType& type, const FluidProperties::FluidPhase& phase, const double mWeight, const double criticalTemperature, TsApproximation* density, TsApproximation* viscosity, TsApproximation* specificHeat, TsApproximation* thermalConductivity, TsApproximation* prandtlNumber, TsApproximation* adiabaticIndex, TsApproximation* pressure, TsApproximation* temperature, TsApproximation* saturationPressure, TsApproximation* saturationTemperature, TsApproximation* heatOfVaporization) : mType(type), mPhase(phase), mMWeight(mWeight), mCriticalTemperature(criticalTemperature), mDensity(density), mViscosity(viscosity), mSpecificHeat(specificHeat), mThermalConductivity(thermalConductivity), mPrandtlNumber(prandtlNumber), mAdiabaticIndex(adiabaticIndex), mPressure(pressure), mTemperature(temperature), mSaturationPressure(saturationPressure), mSaturationTemperature(saturationTemperature), mHeatOfVaporization(heatOfVaporization) { // nothing left to do }; //////////////////////////////////////////////////////////////////////////////////////////////////// /// @details Default destructs a fluid properties. //////////////////////////////////////////////////////////////////////////////////////////////////// FluidProperties::~FluidProperties() { // nothing to do } /// @details Reference: NIST Chemistry Webbook. const double DefinedFluidProperties::mMWeightCO = 28.0101; /// @details Reference: NIST Chemistry Webbook. const double DefinedFluidProperties::mMWeightCO2 = 44.0095; /// @details Reference: NIST Chemistry Webbook. const double DefinedFluidProperties::mMWeightH2O = 18.0153; /// @details Reference: NIST Chemistry Webbook. const double DefinedFluidProperties::mMWeightN2 = 28.0134; /// @details Reference: NIST Chemistry Webbook. const double DefinedFluidProperties::mMWeightO2 = 31.9988; /// @details Reference: NIST Chemistry Webbook. const double DefinedFluidProperties::mMWeightNH3 = 17.0305; /// @details Reference: NIST Chemistry Webbook. const double DefinedFluidProperties::mMWeightH2 = 2.01588; /// @details Reference: NIST Chemistry Webbook. const double DefinedFluidProperties::mMWeightCH4 = 16.0425; /// @details Reference: NIST Chemistry Webbook. const double DefinedFluidProperties::mMWeightHCL = 36.4611; /// @details Reference: NIST Chemistry Webbook. const double DefinedFluidProperties::mMWeightHCN = 27.0254; /// @details Reference: NIST Chemistry Webbook. const double DefinedFluidProperties::mMWeightHe = 4.002602; /// @details Reference: NIST Chemistry Webbook. const double DefinedFluidProperties::mMWeightXe = 131.293; /// @details Reference: NIST Chemistry Webbook. const double DefinedFluidProperties::mMWeightN2O4 = 92.011; /// @details Reference: NIST Chemistry Webbook. const double DefinedFluidProperties::mMWeightN2H4 = 32.0452; /// @details Reference: NIST Chemistry Webbook. const double DefinedFluidProperties::mMWeightCH3N2H3 = 46.0717; /// @details Reference: 3M (TM) Novec (TM) 7000 Engineering Fluid Product Information. const double DefinedFluidProperties::mMWeightHFE7000 = 200.0; /// @details Reference: 3M (TM) Novec (TM) Engineered Fluid HFE-7100 for Heat Transfer. const double DefinedFluidProperties::mMWeightHFE7100 = 250.0; /// @details Reference: NIST Chemistry Webbook, average of propylene glycol & water mol weights for /// a 30% solution. const double DefinedFluidProperties::mMWeightPG30 = 35.43903; /// @details Reference: NIST Chemistry Webbook, average of propylene glycol & water mol weights for /// a 40% solution. const double DefinedFluidProperties::mMWeightPG40 = 41.24694; /// @details Reference: NIST Chemistry Webbook, average of propylene glycol & water mol weights for /// a 50% solution. const double DefinedFluidProperties::mMWeightPG50 = 47.05485; /// @details Reference: the Periodic Table. const double DefinedFluidProperties::mMWeightNAK78 = 35.5544; /// @details Reference: http://www.solvay.com/en/markets-and-products/featured-products/Galden.html const double DefinedFluidProperties::mMWeightGALDEN170 = 760.0; /// @details Reference: NIST Chemistry Webbook. const double DefinedFluidProperties::mCriticalTemperatureCO = 132.86; /// @details Reference: NIST Chemistry Webbook. const double DefinedFluidProperties::mCriticalTemperatureCO2 = 304.128; /// @details Reference: NIST Chemistry Webbook. const double DefinedFluidProperties::mCriticalTemperatureH2O = 647.096; /// @details Reference: NIST Chemistry Webbook. const double DefinedFluidProperties::mCriticalTemperatureN2 = 126.192; /// @details Reference: NIST Chemistry Webbook. const double DefinedFluidProperties::mCriticalTemperatureO2 = 154.581; /// @details Reference: NIST Chemistry Webbook. const double DefinedFluidProperties::mCriticalTemperatureNH3 = 405.4; /// @details Reference: NIST Chemistry Webbook. const double DefinedFluidProperties::mCriticalTemperatureH2 = 33.145; /// @details Reference: NIST Chemistry Webbook. const double DefinedFluidProperties::mCriticalTemperatureCH4 = 190.564; /// @details Reference: NIST Chemistry Webbook. const double DefinedFluidProperties::mCriticalTemperatureHCL = 324.68; /// @details Reference: NIST Chemistry Webbook. const double DefinedFluidProperties::mCriticalTemperatureHCN = 319.38; /// @details Reference: NIST Chemistry Webbook. const double DefinedFluidProperties::mCriticalTemperatureHe = 5.1953; /// @details Reference: NIST Chemistry Webbook. const double DefinedFluidProperties::mCriticalTemperatureXe = 289.733; /// @details Reference: "USAF Propellant Handbooks, Nitric Acid/Nitrogen Tetroxide Oxidizers, Vol. II", /// Martin Marietta Corp., Feb. 1977. const double DefinedFluidProperties::mCriticalTemperatureN2O4 = 431.35; /// @details Reference: "USAF Propellant Handbooks, Nitric Acid/Nitrogen Tetroxide Oxidizers, Vol. II", /// Martin Marietta Corp., Feb. 1977. const double DefinedFluidProperties::mCriticalTemperatureN2H4 = 653.0; /// @details Reference: "USAF Propellant Handbooks, Hydrazine Fuels, Vol. I", Bell Aerospace Corp., Mar. 1970. const double DefinedFluidProperties::mCriticalTemperatureCH3N2H3 = 585.0; /// @details Reference: 3M (TM) Novec (TM) 7000 Engineering Fluid Product Information. const double DefinedFluidProperties::mCriticalTemperatureHFE7000 = 438.15; /// @details Reference: 3M (TM) Novec (TM) Engineered Fluid HFE-7100 for Heat Transfer. const double DefinedFluidProperties::mCriticalTemperatureHFE7100 = 468.45; /// @details Reference: www.chemyq.com, average of propylene glycol & water critical temperatures /// for a 30% solution. const double DefinedFluidProperties::mCriticalTemperaturePG30 = 640.5122; /// @details Average of PG30 & PG50 values. const double DefinedFluidProperties::mCriticalTemperaturePG40 = 638.3176; /// @details Reference: www.chemyq.com, average of propylene glycol & water critical temperatures /// for a 50% solution. const double DefinedFluidProperties::mCriticalTemperaturePG50 = 636.123; /// @details Until we can find complete data for the saturation curve of NaK-78, we are using the /// values for H2O instead. These properties should not be used as they will obviously /// be wrong. const double DefinedFluidProperties::mCriticalTemperatureNAK78 = 647.096; /// @details Lacking data, we just guess the same as water. const double DefinedFluidProperties::mCriticalTemperatureGALDEN170 = 647.096; /// @details Reference: NIST Chemistry Webbook. The distribution of data points is concentrated /// more closely around the Helium critical point (T = 5.2 K, P = 228 kPa), near which /// the data curvature is greatest. The data points spread out more widely towards the /// edges, where the fluid density is more linear. Note the values in the ranges of /// T 2.2 - 5.2 and P > 177735 represent liquid phase, and some were interpolated due to /// NIST not providing values. const double DefinedFluidProperties::mHeTemperatureScale[] = {2.1768, 3.68605, 4.7909, 5.1953, 24.3102, 80.9203, 172.850, 296.567, 447.316, 619.305, 805.923, 1000.0}; const double DefinedFluidProperties::mHePressureScale[] = {0.0, 70.5548, 134.203, 184.715, 217.145, 228.32, 2264.99, 8236.21, 17735.0, 30114.2, 44530.0, 60000.0}; const double DefinedFluidProperties::mHeDensityTable[] = {0.0, 1.473278e+02, 1.485356e+02, 1.494532e+02, 1.500251e+02, 1.502192e+02, 1.734820e+02, 2.059806e+02, 2.345207e+02, 2.594388e+02, 2.819551e+02, 3.034472e+02, // T = 2.1768 K 0.0, 1.339652e+02, 1.362311e+02, 1.378326e+02, 1.387897e+02, 1.391083e+02, 1.686366e+02, 2.027058e+02, 2.313511e+02, 2.559799e+02, 2.787945e+02, 3.002188e+02, // T = 3.68605 K 0.0, 8.198329e+00, 1.942553e+01, 1.127987e+02, 1.166740e+02, 1.177481e+02, 1.630140e+02, 1.998267e+02, 2.290307e+02, 2.534479e+02, 2.764807e+02, 2.978555e+02, // T = 4.7909 K 0.0, 7.339563e+00, 1.621677e+01, 2.707308e+01, 4.092678e+01, 6.678098e+01, 1.605468e+02, 1.986495e+02, 2.281814e+02, 2.525211e+02, 2.756338e+02, 2.969905e+02, // T = 5.1953 K 0.0, 1.396860e+00, 2.656320e+00, 3.655263e+00, 4.296293e+00, 4.517121e+00, 4.303683e+01, 1.175899e+02, 1.719181e+02, 2.087142e+02, 2.356039e+02, 2.561026e+02, // T = 24.3102 K 0.0, 4.192509e-01, 7.966278e-01, 1.095557e+00, 1.287216e+00, 1.353212e+00, 1.298420e+01, 4.291370e+01, 8.037543e+01, 1.168707e+02, 1.486875e+02, 1.751268e+02, // T = 80.9203 K 0.0, 1.963837e-01, 3.733417e-01, 5.136419e-01, 6.036548e-01, 6.346608e-01, 6.189361e+00, 2.144961e+01, 4.301894e+01, 6.717237e+01, 9.105099e+01, 1.128770e+02, // T = 172.850 K 0.0, 1.144893e-01, 2.177047e-01, 2.995728e-01, 3.521133e-01, 3.702144e-01, 3.637156e+00, 1.286504e+01, 2.656908e+01, 4.287828e+01, 6.002316e+01, 7.660122e+01, // T = 296.567 K 0.0, 7.591508e-02, 1.443711e-01, 1.986800e-01, 2.335390e-01, 2.455494e-01, 2.421074e+00, 8.650448e+00, 1.813155e+01, 2.977416e+01, 4.243294e+01, 5.507688e+01, // T = 447.316 K 0.0, 5.483619e-02, 1.042908e-01, 1.435294e-01, 1.687173e-01, 1.773960e-01, 1.752481e+00, 6.296107e+00, 1.330610e+01, 2.206841e+01, 3.178564e+01, 4.168597e+01, // T = 619.305 K 0.0, 4.214009e-02, 8.014745e-02, 1.103054e-01, 1.296652e-01, 1.363359e-01, 1.348376e+00, 4.860012e+00, 1.032188e+01, 1.722306e+01, 2.497067e+01, 3.296439e+01, // T = 805.923 K 0.0, 3.396250e-02, 6.459569e-02, 8.890337e-02, 1.045080e-01, 1.098850e-01, 1.087539e+00, 3.927829e+00, 8.368146e+00, 1.401736e+01, 2.041007e+01, 2.706089e+01}; // T = 1000 K /// @details Reference: NIST Chemistry Webbook. The distribution of data points is concentrated /// more closely around the Xenon critical point (T = 289.733, P = 5841.97), near which /// the data curvature is greatest. The data points spread out more widely towards the /// edges, where the fluid density is more linear. Above T ~650, the table agrees with /// ideal gas law. const double DefinedFluidProperties::mXeTemperatureScale[] = {170.0, 213.104, 246.629, 270.576, 284.944, 289.733, 302.518, 340.874, 404.800, 494.296, 609.363, 750.000}; const double DefinedFluidProperties::mXePressureScale[] = {0.0, 2103.11, 3738.86, 4907.25, 5608.29, 5841.97, 6637.30, 9023.28, 12999.9, 18567.2, 25725.2, 34473.8}; const double DefinedFluidProperties::mXeDensityTable[] = {0.0, 2918.95, 2927.18, 2932.94, 2936.35, 2937.48, 2941.29, 2952.47, 2970.34, 2993.91, 3021.82, 3052.36, // T = 170.0 K 0.0, 2602.12, 2617.62, 2628.21, 2634.39, 2636.42, 2643.23, 2662.81, 2692.93, 2730.92, 2774.25, 2820.91, // T = 213.104 K 0.0, 177.568, 2305.11, 2327.04, 2339.33, 2343.30, 2356.38, 2392.19, 2443.36, 2503.02, 2566.50, 2631.02, // T = 246.629 K 0.0, 147.517, 346.732, 2007.46, 2038.29, 2047.60, 2076.54, 2146.32, 2231.92, 2320.34, 2406.62, 2489.14, // T = 270.576 K 0.0, 135.497, 289.303, 488.494, 1689.94, 1728.16, 1814.06, 1953.30, 2083.26, 2199.88, 2305.19, 2401.30, // T = 284.944 K 0.0, 132.057, 276.736, 442.118, 649.175, 1118.36, 1670.03, 1874.56, 2028.62, 2157.58, 2270.40, 2371.57, // T = 289.733 K 0.0, 123.903, 250.444, 373.333, 473.438, 514.568, 714.515, 1591.23, 1866.25, 2038.76, 2175.07, 2291.17, // T = 302.518 K 0.0, 105.511, 201.749, 281.037, 334.051, 352.784, 421.089, 679.253, 1220.48, 1630.20, 1870.08, 2043.05, // T = 340.874 K 0.0, 85.7261, 157.983, 212.936, 247.341, 259.056, 299.877, 431.316, 676.857, 1028.05, 1372.54, 1637.78, // T = 404.800 K 0.0, 68.6000, 123.901, 164.425, 189.138, 197.441, 225.939, 313.502, 464.931, 680.754, 942.001, 1207.43, // T = 494.296 K 0.0, 54.9225, 98.1745, 129.318, 148.092, 154.364, 175.756, 240.293, 348.504, 499.207, 686.197, 895.581, // T = 609.363 K 0.0, 44.3181, 78.8113, 103.442, 118.211, 123.133, 139.873, 189.979, 272.895, 387.022, 528.823, 692.003}; // T = 750.000 K /// @details Reference: NIST Chemistry Webbook. The temperature and pressure scales are evenly /// distributed. const double DefinedFluidProperties::mN2TemperatureScale[] = {160.0, 213.636, 267.273, 320.909, 374.545, 428.182, 481.818, 535.455, 589.091, 642.727, 696.364, 750.0}; const double DefinedFluidProperties::mN2PressureScale[] = {0.0, 4545.45, 9090.9, 13636.4, 18181.8, 22727.3, 27272.7, 31818.2, 36363.6, 40909.1, 45454.5, 50000.0, 54545.5, 59090.9}; const double DefinedFluidProperties::mN2DensityTable[] = {0.0, 123.865, 311.591, 435.162, 500.062, 542.473, 573.98, 599.137, 620.151, 638.253, 654.193, 668.464, 681.406, 693.263, // T = 160.0 K 0.0, 76.8427, 160.798, 242.321, 312.211, 368.39, 413.222, 449.66, 480.01, 505.871, 528.335, 548.163, 565.896, 581.93, // T = 213.636 K 0.0, 58.3424, 117.166, 173.802, 226.019, 272.678, 313.684, 349.55, 380.999, 408.749, 433.43, 455.564, 475.576, 493.803, // T = 267.273 K 0.0, 47.602, 94.2073, 138.779, 180.543, 219.078, 254.281, 286.28, 315.328, 341.732, 365.801, 387.823, 408.056, 426.724, // T = 320.909 K 0.0, 40.403, 79.4675, 116.738, 151.905, 184.809, 215.418, 243.798, 270.074, 294.407, 316.966, 337.921, 357.431, 375.643, // T = 374.545 K 0.0, 35.1826, 69.0144, 101.287, 131.875, 160.723, 187.839, 213.274, 237.11, 259.447, 280.393, 300.058, 318.547, 335.96, // T = 428.182 K 0.0, 31.1998, 61.139, 89.7252, 116.912, 142.694, 167.093, 190.155, 211.944, 232.529, 251.987, 270.395, 287.828, 304.358, // T = 481.818 K 0.0, 28.0503, 54.9571, 80.6849, 105.226, 128.594, 150.819, 171.944, 192.017, 211.095, 229.235, 246.494, 262.93, 278.597, // T = 535.455 K 0.0, 25.4918, 49.9573, 73.3899, 95.8, 117.21, 137.652, 157.164, 175.788, 193.569, 210.552, 226.783, 242.306, 257.165, // T = 589.091 K 0.0, 23.3693, 45.8202, 67.3608, 88.0099, 107.793, 126.742, 144.89, 162.274, 178.93, 194.897, 210.212, 224.91, 239.026, // T = 642.727 K 0.0, 21.5784, 42.3345, 62.2837, 81.4481, 99.8539, 117.53, 134.508, 150.818, 166.492, 181.562, 196.058, 210.012, 223.45, // T = 696.364 K 0.0, 20.0459, 39.3539, 57.9427, 75.8351, 93.0564, 109.633, 125.593, 140.963, 155.772, 170.044, 183.808, 197.089, 209.91 }; // T = 750.000 K /// @details Reference: NIST Chemisty Webbook. The temperature and pressure scales are evenly /// distributed. const double DefinedFluidProperties::mO2TemperatureScale[] = {160.0, 213.636, 267.273, 320.909, 374.545, 428.182, 481.818, 535.455, 589.091, 642.727, 696.364, 750.0}; const double DefinedFluidProperties::mO2PressureScale[] = {0.0, 4545.45, 9090.9, 13636.4, 18181.8, 22727.3, 27272.7, 31818.2, 36363.6, 40909.1, 45454.5, 50000.0, 54545.5, 59090.9}; const double DefinedFluidProperties::mO2DensityTable[] = {0.0, 170.956, 692.903, 776.857, 824.302, 858.682, 886.107, 909.143, 929.126, 946.847, 962.817, 977.386, 990.804, 1003.26, // T = 160.0 K 0.0, 92.0654, 208.324, 341.79, 461.592, 550.727, 615.778, 665.461, 705.239, 738.302, 766.57, 791.267, 813.208, 832.96, // T = 213.636 K 0.0, 68.5238, 142.423, 219.084, 294.36, 364.204, 426.301, 480.28, 526.92, 567.372, 602.753, 634.008, 661.892, 687.0, // T = 267.273 K 0.0, 55.4577, 112.188, 169.001, 224.54, 277.575, 327.229, 373.05, 414.959, 453.127, 487.86, 519.515, 548.447, 574.989, // T = 320.909 K 0.0, 46.8626, 93.6751, 139.848, 184.794, 228.011, 269.126, 307.917, 344.295, 378.279, 409.963, 439.483, 467.0, 492.68, // T = 374.545 K 0.0, 40.6932, 80.8557, 120.178, 158.372, 195.202, 230.492, 264.134, 296.078, 326.327, 354.92, 381.925, 407.425, 431.509, // T = 428.182 K 0.0, 36.0167, 71.3345, 105.785, 139.219, 171.517, 202.592, 232.39, 260.89, 288.097, 314.034, 338.742, 362.272, 384.681, // T = 481.818 K 0.0, 32.3348, 63.9314, 94.6967, 124.551, 153.433, 181.299, 208.125, 233.904, 258.644, 282.363, 305.092, 326.865, 347.721, // T = 535.455 K 0.0, 29.3534, 57.9841, 85.8413, 112.883, 139.077, 164.405, 188.857, 212.434, 235.147, 257.011, 278.051, 298.294, 317.768, // T = 589.091 K 0.0, 26.886, 53.0879, 78.5789, 103.338, 127.351, 150.61, 173.115, 194.871, 215.89, 236.187, 255.781, 274.694, 292.949, // T = 642.727 K 0.0, 24.8079, 48.9786, 72.4994, 95.3613, 117.56, 139.094, 159.968, 180.191, 199.772, 218.727, 237.072, 254.825, 272.006, // T = 696.364 K 0.0, 23.0325, 45.476, 67.3262, 88.5811, 109.242, 129.311, 148.796, 167.705, 186.05, 203.843, 221.099, 237.834, 254.064}; // T = 750.000 K /// @details Reference: NIST Chemisty Webbook. The temperature and pressure scales are evenly /// distributed. const double DefinedFluidProperties::mH2TemperatureScale[] = {64.0, 142.0, 220.0, 298.0, 376.0, 454.0, 532.0, 610.0, 688.0, 766.0, 844.0, 922.0, 1000.0}; const double DefinedFluidProperties::mH2PressureScale[] = {0.0, 6666.67, 13333.3, 20000.0, 26666.7, 33333.3, 40000.0, 46666.7, 53333.3, 60000.0, 66666.7, 73333.3, 80000.0}; const double DefinedFluidProperties::mH2DensityTable[] = {0.0, 28.4216, 47.3743, 57.4974, 64.1413, 69.1038, 73.0943, 76.4540, 79.3710, 81.9592, 84.2930, 86.4234, 88.3871, // T = 64.0 K 0.0, 10.8824, 20.4408, 28.5558, 35.3990, 41.2067, 46.1947, 50.5367, 54.3663, 57.7846, 60.8684, 63.6764, 66.2540, // T = 142.0 K 0.0, 7.01950, 13.3806, 19.1107, 24.2693, 28.9258, 33.1467, 36.9909, 40.5096, 43.7463, 46.7378, 49.5155, 52.1057, // T = 220.0 K 0.0, 5.21690, 10.0369, 14.4884, 18.6038, 22.4163, 25.9577, 29.2567, 32.3391, 35.2273, 37.9412, 40.4984, 42.9140, // T = 298.0 K 0.0, 4.15958, 8.05492, 11.7065, 15.1343, 18.3574, 21.3942, 24.2611, 26.9733, 29.5444, 31.9865, 34.3103, 36.5257, // T = 376.0 K 0.0, 3.46141, 6.73522, 9.83564, 12.7758, 15.5680, 18.2238, 20.7538, 23.1676, 25.4742, 27.6815, 29.7968, 31.8267, // T = 454.0 K 0.0, 2.96500, 5.79056, 8.48663, 11.0623, 13.5260, 15.8854, 18.1478, 20.3198, 22.4076, 24.4167, 26.3523, 28.2189, // T = 532.0 K 0.0, 2.59359, 5.07986, 7.46597, 9.75839, 11.9631, 14.0856, 16.1311, 18.1043, 20.0096, 21.8511, 23.6325, 25.3573, // T = 610.0 K 0.0, 2.30509, 4.52531, 6.66591, 8.73165, 10.7269, 12.6558, 14.5221, 16.3293, 18.0806, 19.7792, 21.4279, 23.0292, // T = 688.0 K 0.0, 2.07447, 4.08032, 6.02148, 7.90156, 9.72387, 11.4915, 13.2073, 14.8739, 16.4939, 18.0695, 19.6030, 21.0965, // T = 766.0 K 0.0, 1.88585, 3.71521, 5.49108, 7.21624, 8.89323, 10.5244, 12.1121, 13.6582, 15.1649, 16.6338, 18.0667, 19.4653, // T = 844.0 K 0.0, 1.72871, 3.41018, 5.04678, 6.64066, 8.19382, 9.70813, 11.1854, 12.6272, 14.0350, 15.4105, 16.7549, 18.0695, // T = 922.0 K 0.0, 1.59575, 3.15151, 4.66912, 6.15031, 7.59666, 9.00969, 10.3908, 11.7413, 13.0625, 14.3554, 15.6214, 16.8613}; // T = 1000.0 K /////////////////////////////////////////////////////////////////////////////////////////////////// /// @details Default constructs this Predefined Fluid Properties. Initializes the array of fluid /// properties, indexed by fluid type, specifying: /// - Type of fluid (enumeration of chemical compositions/names) /// - Fluid phase (enumeration of gas, liquid or solid) /// - Molecular weight (1/mol) /// - Critical temperature Tc (K) /// - Curve fit for density (kg/m3) as a function of temperature and pressure /// - Curve fit for dynamic viscosity (Pa*s) as a function of temperature and pressure /// - Curve fit for specific heat (J/kg/K) as a function of temperature and pressure /// - Curve fit for thermal conductivity (W/m/K) as a function of temperature and pressure /// - Curve fit for Prandtl number -- as a function of temperature and pressure /// - Curve fit for adiabatic index -- as a function of temperature and pressure /// - Curve fit for pressure (kPa) as a function of temperature and density /// - Curve fit for temperature (K) as a function of specific enthalpy and pressure /// - Curve fit for log10 of saturation pressure (kPa) as a function of inverse of reduced /// temperature (Tc/T) /// - Curve fit for reduced saturation temperature as a function of saturation pressure /// - Curve fit for latent heat of vaporization as a function of reduced temperature /// GUNNS demands an exactly invertible specific heat curve fit of the form /// - Cp = a + bT (for both liquids and gases) /// GUNNS demands an exactly invertible density curve fit /// - rho = a P / T (for ideal gases) /// - rho = (a + b*P) + (c + d*P)*T + (e + f*P)*T^2 (for liquids) /// - rho = f(T,P) (table lookup for real gases) /// all of which have exact (isothermal) inverses between pressure and density, so /// - rho = f(T, <P = f(T, rho)>) /// GUNNS demands exactly invertible saturation pressure & temperature curve fits /// - Ts = f(Ps = f(Ts) //////////////////////////////////////////////////////////////////////////////////////////////////// DefinedFluidProperties::DefinedFluidProperties() : /************************************************************************ Universal gas constant ************************************************************************/ mGasK(UnitConversion::UNIV_GAS_CONST_SI), /************************************************************************ Properties for carbon monoxide ************************************************************************/ mDensityCO(mMWeightCO / mGasK, 68.16, 2000.0, 1.0e-64, 1.0e+06), mViscosityCO(3.14819375e-6, 4.65571250e-8, 68.16, 2000.0), mSpecificHeatCO(1.06251339e+3, -3.04107143e-2, 68.16, 2000.0), mThermalConductivityCO(3.96573214e-3, 7.27682143e-5, 68.160, 2000.0), mPrandtlNumberCO(7.36597866e-1, -1.11462612e-4, 68.16, 2000.0), mAdiabaticIndexCO(1.43242613, -9.44340853e-5, 68.16, 2000.0), mPressureCO(mGasK / mMWeightCO, 68.16, 2000.00, 1.0e-64, 1.0e+06), mTemperatureCO(1.06251339e+3, -3.04107143e-2, 1.0e+2, 3.0e+06), mSaturationPressureCO(5.904077, -2.314267, -0.05184318, 1.0, mCriticalTemperatureCO/68.16), mSaturationTemperatureCO(5.904077, -2.314267, -0.05184318, 1.570513e1, 3.451170e3), mHeatOfVaporizationCO(282.398, -0.191, 0.409709, 68.16/mCriticalTemperatureCO, 1.0), /************************************************************************ Properties for carbon dioxide ************************************************************************/ mDensityCO2(mMWeightCO2 / mGasK, 100.0, 2000.0, 1.0e-64, 1.0e+06), mViscosityCO2(3.88349774e-6, 3.68261797e-8, 100.0, 2000.0), mSpecificHeatCO2(6.94715529e+2, 5.22732574e-1, 100.0, 2000.0), mThermalConductivityCO2(-5.52142048e-3, 7.51590898e-5, 100.0, 2000.0), mPrandtlNumberCO2(7.85757975e-1, -6.53671274e-5, 100.0, 2000.0), mAdiabaticIndexCO2(1.35140794, -1.67755018e-4, 100.0, 2000.0), mPressureCO2(mGasK / mMWeightCO2, 100.0, 2000.0, 1.0e-64, 1.0e+06), mTemperatureCO2(6.94715529e+2, 5.22732574e-1, 1.0e+2, 1.0e+07), mSaturationPressureCO2(6.671213, -2.778967, -0.02691220, 1.0, mCriticalTemperatureCO2/100.0), mSaturationTemperatureCO2(6.671213, -2.778967, -0.02691220, 9.347056e-3, 7.333882e3), mHeatOfVaporizationCO2(573.863, -0.014, 0.404154, 100.0/mCriticalTemperatureCO2, 1.0), /************************************************************************ Properties for water ************************************************************************/ mDensityH2O(mMWeightH2O / mGasK, 100.0, 2000.0, 1.0e-64, 1.0e+06), mViscosityH2O(-2.48944407e-6, 3.94663357e-8, 100.0, 2000.0), mSpecificHeatH2O(1.81255704e+3, 5.15364152e-1, 100.0, 2000.0), mThermalConductivityH2O(-0.00999, 0.0001, 100.0, 2000.0), mPrandtlNumberH2O(1.05092089, 1.47582216e-4, 100.0, 2000.0), mAdiabaticIndexH2O(1.37818452, -1.18125416e-4, 100.0, 2000.0), mPressureH2O(mGasK / mMWeightH2O, 100.0, 2000.0, 1.0e-64, 1.0e+06), mTemperatureH2O(1.81255704e+3, 5.15364152e-1, 1.0e+2, 1.0e+07), mSaturationPressureH2O(7.105911, -2.543893, -0.2302306, 1.0, mCriticalTemperatureH2O/100.0), mSaturationTemperatureH2O(7.105911, -2.543893, -0.2302306, 1.009159e-19, 2.146776e4), mHeatOfVaporizationH2O(2899.80, -0.178, 0.406871, 100.0/mCriticalTemperatureH2O, 1.0), /************************************************************************ Properties for nitrogen ************************************************************************/ mDensityN2(mMWeightN2 / mGasK, 64.0, 2000.0, 1.0e-64, 1.0e+06), mViscosityN2(8.11293165e-6, 2.88907996e-8, 64.0, 2000.0), mSpecificHeatN2(1.01354736e+3, 1.31741253e-1, 64.0, 2000.0), mThermalConductivityN2(9.09145525e-3, 5.17493648e-5, 64.0, 2000.0), mPrandtlNumberN2(7.25068578e-1, 9.66001186e-6, 64.0, 2000.0), mAdiabaticIndexN2(1.42161068e+0, -6.08287084e-5, 64.0, 2000.0), mPressureN2(mGasK / mMWeightN2, 64.0, 2000.0, 1.0e-64, 1.0e+06), mTemperatureN2(1.01354736e+3, 1.31741253e-1, 1.0e+2, 1.0e+07), mSaturationPressureN2(5.891833, -2.335710, -0.03054780, 1.0, mCriticalTemperatureN2/64.0), mSaturationTemperatureN2(5.891833, -2.335710, -0.03054780, 1.471071e1, 3.354095e3), mHeatOfVaporizationN2(254.280, -0.245, 0.415032, 64.0/mCriticalTemperatureN2, 1.0), /************************************************************************ Properties for oxygen ************************************************************************/ mDensityO2(mMWeightO2 / mGasK, 54.5, 2000.0, 1.0e-64, 1.0e+06), mViscosityO2(6.30712930E-6, 4.40945750E-008, 54.5, 2000.0), mSpecificHeatO2(8.74505007E+2, 2.01386520E-1 , 54.5, 2000.0), mThermalConductivityO2(3.03907634E-3, 7.72063714E-5, 54.50, 2000.0), mPrandtlNumberO2(7.48579950E-1, -8.93526407E-5, 54.5, 2000.0), mAdiabaticIndexO2(1.43468762E+0, -1.24059159E-4, 54.5, 2000.0), mPressureO2(mGasK / mMWeightO2, 54.5, 2000.0, 1.0e-64, 1.0e+06), mTemperatureO2(8.74505007E+2, 2.01386520E-1, 1.0e+2, 1.0e+07), mSaturationPressureO2(5.923722, -2.154806, -0.07725064, 1.0, mCriticalTemperatureO2/54.5), mSaturationTemperatureO2(5.923722, -2.154806, -0.07725064, 1.550494e-1, 4.916608e3), mHeatOfVaporizationO2(268.086, -0.217, 0.405495, 54.5/mCriticalTemperatureO2, 1.0), /************************************************************************ Properties for ammonia ************************************************************************/ mDensityNH3(mMWeightNH3 / mGasK, 100.0, 2000.0, 1.0e-64, 1.0e+06), mViscosityNH3(-1.10690850e-6, 3.77945896e-8, 100.0, 2000.0), mSpecificHeatNH3(1.77245664e+3, 1.55734170, 100.0, 2000.0), mThermalConductivityNH3(-1.17887603e-2, 1.26920717e-4, 100.0, 2000.0), mPrandtlNumberNH3(8.24613070e-1, 1.63210100e-4, 100.0, 2000.0), mAdiabaticIndexNH3(1.41192763, -3.10465770e-4, 100.0, 2000.0), mPressureNH3(mGasK / mMWeightNH3, 100.0, 2000.0, 1.0e-64, 1.0e+06), mTemperatureNH3(1.77245664e+3, 1.55734170, 1.0e+2, 2.0e+07), mSaturationPressureNH3(6.686549, -2.451487, -0.1891818, 1.0, mCriticalTemperatureNH3/100.0), mSaturationTemperatureNH3(6.686549, -2.451487, -0.1891818, 4.355480e-7, 1.111426e4), mHeatOfVaporizationNH3(1795.73, -0.202, 0.437261, 100.0/mCriticalTemperatureNH3, 1.0), /************************************************************************ Properties for hydrogen ************************************************************************/ mDensityH2(mMWeightH2 / mGasK, 13.957, 2000.0, 1.0e-64, 1.0e+06), mViscosityH2(3.44431431e-6, 1.72499615e-8, 13.957, 2000.0), mSpecificHeatH2(8.16682118e+3, 2.11904814e+1, 13.957, 2000.0), mThermalConductivityH2(3.20511417e-2, 4.96902311e-4, 13.957, 2000.0), mPrandtlNumberH2(5.40516454e-1, 5.78550413e-4, 13.957, 2000.0), mAdiabaticIndexH2(1.48410357e+0, -1.39888479e-4, 13.957, 2000.0), mPressureH2(mGasK / mMWeightH2, 13.957, 2000.0, 1.0e-64, 1.0e+06), mTemperatureH2 (8.16682118e+3, 2.11904814e+1, 1.0e+2, 2.0e+08), mSaturationPressureH2(5.137677, -2.211171, 0.1752336, 1.0, mCriticalTemperatureH2/13.957), mSaturationTemperatureH2(5.137677, -2.211171, 0.1752336, 7.496468e0, 1.263978e3), mHeatOfVaporizationH2(402.392, -0.893, 0.468214, 13.957/mCriticalTemperatureH2, 1.0), /************************************************************************ Properties for methane ************************************************************************/ mDensityCH4(mMWeightCH4 / mGasK, 91.0, 2000.0, 1.0e-64, 1.0e+06), mViscosityCH4(-9.69180981e-8, 4.59056870e-8, 91.0, 2000.0), mSpecificHeatCH4(1.57965714e+3, 3.35717653e+0, 91.0, 2000.0), mThermalConductivityCH4(-1.85036584e-2, 2.33789538e-4, 91.0, 2000.0), mPrandtlNumberCH4(8.34043842e-1, -3.47214804e-4, 91.0, 2000.0), mAdiabaticIndexCH4(1.43685484e+0, -5.64753568e-4, 91.0, 2000.0), mPressureCH4(mGasK / mMWeightCH4, 91.0, 2000.0, 1.0e-64, 1.0e+06), mTemperatureCH4(1.57965714e+3, 3.35717653e+0, 1.0e+2, 2.0e+07), mSaturationPressureCH4(5.978649, -2.316399, -0.008641538, 1.0, mCriticalTemperatureCH4/91.0), mSaturationTemperatureCH4(5.978649, -2.316399, -0.008641538, 1.230152e1, 4.504100e3), mHeatOfVaporizationCH4(622.485, -0.272, 0.408189, 91.0/mCriticalTemperatureCH4, 1.0), /************************************************************************ Properties for hydrochloric acid ************************************************************************/ mDensityHCL(mMWeightHCL / mGasK, 100.0, 2000.0, 1.0e-64, 1.0e+06), mViscosityHCL(2.20054874e-6, 1.62474889e-9, 100.0, 2000.0), mSpecificHeatHCL(7.72414550e+2, 1.00351086e-1, 100.0, 2000.0), mThermalConductivityHCL(5.52005444e-4, 4.61274044e-5, 100.0, 2000.0), mPrandtlNumberHCL(0.86, 0.0, 100.0, 2000.0), mAdiabaticIndexHCL (1.4, 0.0, 100.0, 2000.0), mPressureHCL(mGasK / mMWeightHCL, 100.0, 2000.0, 1.0e-64, 1.0e+06), mTemperatureHCL(7.72414550e+2, 1.00351086e-1, 1.0e+2, 1.0e+07), mSaturationPressureHCL(6.423687, -2.436504, -0.07698240, 1.0, mCriticalTemperatureHCL/100.0), mSaturationTemperatureHCL(6.423687, -2.436504, -0.07698240, 5.027122e-3, 8.132054e3), mHeatOfVaporizationHCL(816.0349, 0.4209399, 0.4209399, 100.0/mCriticalTemperatureHCL, 1.0), /************************************************************************ Properties for hydrogen cyanide ************************************************************************/ mDensityHCN(mMWeightHCN / mGasK, 100.0, 2000.0, 1.0e-64, 1.0e+06), mViscosityHCN(-1.4e-6, 1.43666098e-8, 100.0, 2000.0), mSpecificHeatHCN(1.13178924e+3, 5.23263873e-1, 100.0, 2000.0), mThermalConductivityHCN(-7.8e-3, 7.82792640e-5, 100.0, 2000.0), mPrandtlNumberHCN(0.79, 0.0, 100.0, 2000.0), mAdiabaticIndexHCN(1.3, 0.0, 100.0, 2000.0), mPressureHCN(mGasK / mMWeightHCN, 100.0, 2000.0, 1.0e-64, 1.0e+06), mTemperatureHCN(1.13178924e+3, 5.23263873e-1, 1.0e+2, 1.0e+07), mSaturationPressureHCN(6.665582, -4.175167, -0.1724629, 1.0, mCriticalTemperatureHCN/100.0), mSaturationTemperatureHCN(6.665582, -4.175167, -0.1724629, 3.730347e-9, 2.079466e2), mHeatOfVaporizationHCN(1309.447, 0.09207613, 0.09207613, 100.0/mCriticalTemperatureHCN, 1.0), /************************************************************************ Properties for helium ************************************************************************/ mDensityHe(mMWeightHe / mGasK, 2.1768, 1500.0, 1.0e-64, 1.0e+06), mViscosityHe(3.904441e-6, 5.985034e-8, -2.490652e-11, 7.095312e-15, 2.1768, 1500.0), mSpecificHeatHe(2.079064e4, -6.270587e-3, 2.1768, 1500.0), mThermalConductivityHe(2.710026e-2, 4.852526e-4, -2.162608e-7, 6.251157e-11, 2.1768, 1500.0), mPrandtlNumberHe(2.808356, -7.476181e-4, 1.00141e-6, -3.774658e-10, 2.1768, 1500.0), mAdiabaticIndexHe(1.6667, 0.0, 2.1768, 1500.0), mPressureHe(mGasK / mMWeightHe, 2.1768, 1500.0, 1.0e-64, 1.0e+06), mTemperatureHe(2.079064e4, -6.270587e-3, 1.0e+2, 1.0e+08), mSaturationPressureHe(4.055375, -1.930662, 0.2191484, 1.0, mCriticalTemperatureHe/2.1768), mSaturationTemperatureHe(4.055375, -1.930662, 0.2191484, 4.964031e0, 2.207300e2), mHeatOfVaporizationHe(19.800, -0.927, 0.421274, 2.1768/mCriticalTemperatureHe, 1.0), /************************************************************************ Properties for helium (real-gas compressibility) ************************************************************************/ mDensityHeReal(mHeTemperatureScale, mHePressureScale, mHeDensityTable, 12, 12, 2.1768, 1000.0, 0.0, 60000.0), mPressureHeReal(mHeTemperatureScale, mHePressureScale, mHeDensityTable, 12, 12, 2.1768, 1000.0, 0.0, 60000.0), /************************************************************************ Properties for xenon (real-gas compressibility) ************************************************************************/ mDensityXe(mXeTemperatureScale, mXePressureScale, mXeDensityTable, 12, 12, 170.0, 750.0, 0.0, 34473.8), mViscosityXe(3.20493e-6, 6.57203e-8, 100.0, 2000.0), mSpecificHeatXe(1.69768e+2, -2.09841e-2, 100.0, 2000.0), mThermalConductivityXe(7.62627e-4, 1.57374e-5, 100.0, 2000.0), mPrandtlNumberXe(7.14862e-1, -1.00208e-4, 100.0, 2000.0), mAdiabaticIndexXe(1.70353, -6.22410e-5, 100.0, 2000.0), mPressureXe(mXeTemperatureScale, mXePressureScale, mXeDensityTable, 12, 12, 170.0, 750.0, 0.0, 34473.8), mTemperatureXe(1.69768e+2, -2.09841e-2, 1.0e+2, 3.0e+05), mSaturationPressureXe(6.141935, -2.416296, 0.03483905, 1.0, mCriticalTemperatureXe/100.0), mSaturationTemperatureXe(6.141935, -2.416296, 0.03483905, 2.711090e-1, 5.754884e3), mHeatOfVaporizationXe(115.869, -0.281, 0.418031, 100.0/mCriticalTemperatureXe, 1.0), /************************************************************************ Properties for nitrogen (real-gas compressibility) ************************************************************************/ mDensityN2Real (mN2TemperatureScale, mN2PressureScale, mN2DensityTable, 12, 14, 160.0, 750.0, 0.0, 59090.9), mPressureN2Real(mN2TemperatureScale, mN2PressureScale, mN2DensityTable, 12, 14, 160.0, 750.0, 0.0, 59090.9), /************************************************************************ Properties for oxygen (real-gas compressibility) ************************************************************************/ mDensityO2Real (mO2TemperatureScale, mO2PressureScale, mO2DensityTable, 12, 14, 160.0, 750.0, 0.0, 59090.9), mPressureO2Real(mO2TemperatureScale, mO2PressureScale, mO2DensityTable, 12, 14, 160.0, 750.0, 0.0, 59090.9), /************************************************************************ Properties for hydrogen (real-gas compressibility) ************************************************************************/ mDensityH2Real (mH2TemperatureScale, mH2PressureScale, mH2DensityTable, 13, 13, 64.0, 1000.0, 0.0, 80000.0), mPressureH2Real(mH2TemperatureScale, mH2PressureScale, mH2DensityTable, 13, 13, 64.0, 1000.0, 0.0, 80000.0), /************************************************************************ Properties for N2O4 ************************************************************************/ mSaturationPressureN2O4(8.949029, -5.406766, 0.4546795, 1.0, mCriticalTemperatureN2O4/261.95), mSaturationTemperatureN2O4(8.949029, -5.406766, 0.4546795, 18.996, 9929.85), mHeatOfVaporizationN2O4(1258.40074661114, -2.91735422884232, 261.95, 431.35), /************************************************************************ Properties for N2H4 ************************************************************************/ mSaturationPressureN2H4(6.968218448, -2.586591091, -0.211863158, 1.0, mCriticalTemperatureN2H4/274.68), mSaturationTemperatureN2H4(6.968218448, -2.586591091, -0.211863158, 0.418, 14784.0), mHeatOfVaporizationN2H4(1859.5, -1.644, 274.68, 387.37), /************************************************************************ Properties for CH3N2H3 ************************************************************************/ mSaturationPressureCH3N2H3(6.263433, -1.923808, -0.434885, 1.0, mCriticalTemperatureCH3N2H3/220.0), mSaturationTemperatureCH3N2H3(6.263433, -1.923808, -0.434885, 0.011827, 8030.46), mHeatOfVaporizationCH3N2H3(1788.0772786368, -3.05654235664393, 220.0, 585.0), /************************************************************************ Properties for liquid water ************************************************************************/ mDensityWATER(7.971248e+2, 7.557045e-3, 1.591560, -4.273648e-5, -3.100791e-3, 6.311271e-8, 200.0, 470.0, 1.0e-64, 1.0e+06), mViscosityWATER(4.702520e-1, -5.996482e-3, 3.061785e-5, -7.808668e-8, 9.936067e-11, -5.042842e-14, 200.0, 470.0), mSpecificHeatWATER(4.16924282e+3, 7.58586482e-2, 200.0, 470.0), mThermalConductivityWATER(2.49898518E-1, 1.187923e-3, 200.0, 470.0), mPrandtlNumberWATER(4.154213e+3, -5.320634e+1, 2.725191e-1, -6.966592e-4, 8.880820e-7, -4.513810e-10, 200.0, 470.0), mAdiabaticIndexWATER(0.64975127, 1.227552e-3, 200.0, 470.0), mPressureWATER(7.971248e+2, 7.557045e-3, 1.591560, -4.273648e-5, -3.100791e-3, 6.311271e-8, 200.0, 470.0, 1.0e-64, 1.0e+06), mTemperatureWATER(4.16924282e+3, 7.58586482e-2, 1.0e+02, 1.0e+07), /************************************************************************ Properties for liquid HFE7000 ************************************************************************/ mDensityHFE7000 (1.4 * 7.971248e+2, 1.4 * 7.557045e-3, 1.4 * 1.591560, -1.4 * 4.273648e-5, -1.4 * 3.100791e-3, 1.4 * 6.311271e-8, 150.65, 470.0, 1.0e-64, 1.0e+06), mViscosityHFE7000(1.775403E-001, -8.381752E-004, -2.503906E-006, 1.126480E-008, 150.65, 320.0), mSpecificHeatHFE7000(3.8181606E+2, 3.08030000E+0, 150.65, 470.0), mThermalConductivityHFE7000(1.3333740e-1, -1.9600000E-4, 150.65, 470.0), mPrandtlNumberHFE7000(7.5, 0.0, 150.65, 470.0), mAdiabaticIndexHFE7000(1.4, 0.0, 150.65, 470.0), mPressureHFE7000(1.4 * 7.971248e+2, 1.4 * 7.557045e-3, 1.4 * 1.591560, -1.4 * 4.273648e-5, -1.4 * 3.100791e-3, 1.4 * 6.311271e-8, 150.65, 470.0, 1.0e-64, 1.0e+06), mTemperatureHFE7000(3.8181606E+2, 3.08030000E+0, 1.0e+2, 2.0e+06), mSaturationPressureHFE7000(3.560395, 2.010689, -2.176239, 1.0, mCriticalTemperatureHFE7000/150.65), mSaturationTemperatureHFE7000(3.560395, 2.010689, -2.176239, 9.999151e-10, 2.482244e3), mHeatOfVaporizationHFE7000(155.6048, 0.04794244, 0.04794244, 150.65/mCriticalTemperatureHFE7000, 1.0), /************************************************************************ Properties for liquid HFE7100 ************************************************************************/ mDensityHFE7100 (2.157312e3, 7.557045e-3, -2.26467e0, -4.273648e-5, -6.394895e-6, 6.311271e-8, 138.15, mCriticalTemperatureHFE7100, 1.0e-64, 1.0e+06), mViscosityHFE7100(1.074738E-001, -1.0435097E-003, 3.393889E-006, -3.679803E-009, 138.15, 334.15), mSpecificHeatHFE7100(5.867E+2, 2.0E+0, 138.15, mCriticalTemperatureHFE7100), mThermalConductivityHFE7100(1.271094e-1, -1.9548E-4, 138.15, mCriticalTemperatureHFE7100), mPrandtlNumberHFE7100(8.453566e2, -7.627354e0, 2.298012e-2, -2.285688e-5, 138.15, 334.15), mAdiabaticIndexHFE7100(1.4, 0.0, 138.15, mCriticalTemperatureHFE7100), mPressureHFE7100(2.157312e3, 7.557045e-3, -2.26467e0, -4.273648e-5, -6.394895e-6, 6.311271e-8, 138.15, mCriticalTemperatureHFE7100, 1.0e-64, 1.0e+06), mTemperatureHFE7100(5.867E+2, 2.0E+0, 1.0e+2, 2.0e+06), mSaturationPressureHFE7100(6.741905, -3.38726, 0.003905253, 1.0, mCriticalTemperatureHFE7100/138.15), mSaturationTemperatureHFE7100(6.741905, -3.38726, 0.003905253, 1.99994e-5, 2.283231e3), mHeatOfVaporizationHFE7100(130.55269, 0.07991991, 0.07991991, 138.15/mCriticalTemperatureHFE7100, 1.0), /************************************************************************ Properties for liquid propylene glycol 30% ************************************************************************/ mDensityPG30(1.026482e3, 7.557045e-3, 3.783358e-1, -4.273648e-5, -1.392346e-3, 6.311271e-8, 260.45, mCriticalTemperaturePG30, 1.0e-64, 1.0e+06), mViscosityPG30(4.729396e2, 9.608948e-1, 260.45, mCriticalTemperaturePG30), mSpecificHeatPG30(3.520761e3, 1.184836, 260.45, mCriticalTemperaturePG30), mThermalConductivityPG30(1.294089e-1, 1.561264e-3, -1.392068e-6, 260.45, mCriticalTemperaturePG30), mPrandtlNumberPG30(5.439379e6, 9.598727e-1, 260.45, mCriticalTemperaturePG30), mAdiabaticIndexPG30(1.4, 0.0, 260.45, mCriticalTemperaturePG30), mPressurePG30(1.026482e3, 7.557045e-3, 3.783358e-1, -4.273648e-5, -1.392346e-3, 6.311271e-8, 260.45, mCriticalTemperaturePG30, 1.0e-64, 1.0e+06), mTemperaturePG30(3.520761e3, 1.184836, 1.0e+2, 1.0e+07), mSaturationPressurePG30(6.981063, -2.499521, -0.2438117, 1.0, mCriticalTemperaturePG30/260.45), mSaturationTemperaturePG30(6.981063, -2.499521, -0.2438117, 2.288534e-1, 1.728742e4), mHeatOfVaporizationPG30(903.4089, 0.07395264, 0.07395264, 260.45/mCriticalTemperaturePG30, 1.0), /************************************************************************ Properties for liquid propylene glycol 40% ************************************************************************/ mDensityPG40(1.080332e3, 7.557045e-3, 1.588472e-1, -4.273648e-5, -1.176238e-3, 6.311271e-8, 251.56, mCriticalTemperaturePG40, 1.0e-64, 1.0e+06), mViscosityPG40(2.78637e3, 9.563338e-1, 251.56, mCriticalTemperaturePG40), mSpecificHeatPG40(3.240034e3, 1.71608, 251.56, mCriticalTemperaturePG40), mThermalConductivityPG40(2.725643e-1, 6.714341e-4, -5.159441e-7, 251.56, mCriticalTemperaturePG40), mPrandtlNumberPG40(2.647771e7, 9.561267e-1, 251.56, mCriticalTemperaturePG40), mAdiabaticIndexPG40(1.4, 0.0, 251.56, mCriticalTemperaturePG40), mPressurePG40(1.080332e3, 7.557045e-3, 1.588472e-1, -4.273648e-5, -1.176238e-3, 6.311271e-8, 251.56, mCriticalTemperaturePG40, 1.0e-64, 1.0e+06), mTemperaturePG40(3.240034e3, 1.71608, 1.0e+2, 1.0e+07), mSaturationPressurePG40(6.943746, -2.505542, -0.240262, 1.0, mCriticalTemperaturePG40/251.56), mSaturationTemperaturePG40(6.943746, -2.505542, -0.240262, 1.09513e-1, 1.577863e4), mHeatOfVaporizationPG40(903.4089, 0.07395264, 0.07395264, 251.56/mCriticalTemperaturePG40, 1.0), /************************************************************************ Properties for liquid propylene glycol 50% ************************************************************************/ mDensityPG50(1.134182e3, 7.557045e-3, -6.064128e-2, -4.273648e-5, -9.601303e-4, 6.311271e-8, 239.65, mCriticalTemperaturePG50, 1.0e-64, 1.0e+06), mViscosityPG50(1.641618e+4, 9.517944e-1, 239.65, mCriticalTemperaturePG50), mSpecificHeatPG50(2.959307e+3, 2.247201, 239.65, mCriticalTemperaturePG50), mThermalConductivityPG50(4.157197e-1, -2.183961e-4, 3.601802e-7, 239.65, mCriticalTemperaturePG50), mPrandtlNumberPG50(1.288877e+8, 9.523953e-1, 239.65, mCriticalTemperaturePG50), mAdiabaticIndexPG50(1.4, 0.0, 239.65, mCriticalTemperaturePG50), mPressurePG50(1.134182e3, 7.557045e-3, -6.064128e-2, -4.273648e-5, -9.601303e-4, 6.311271e-8, 239.65, mCriticalTemperaturePG50, 1.0e-64, 1.0e+06), mTemperaturePG50(2.959307e+3, 2.247201, 1.0e+2, 1.0e+07), mSaturationPressurePG50(6.734702, -2.261483, -0.3222344, 1.0, mCriticalTemperaturePG50/239.65), mSaturationTemperaturePG50(6.734702, -2.261483, -0.3222344, 2.893852e-2, 1.415745e4), mHeatOfVaporizationPG50(903.4089, 0.07395264, 0.07395264, 239.65/mCriticalTemperaturePG50, 1.0), /************************************************************************ Properties for liquid ammonia ************************************************************************/ mDensityAMMONIA(8.575560e+2, -3.322898e-3, -2.196556e-1, 2.682584e-5, -2.137907e-3, -4.373326e-8, 200.0, 320.0, 1.0e-64, 1.0e+06), mViscosityAMMONIA(8.257568e-3, -8.069591e-5, 2.711720e-7, -3.080228e-10, 200.0, 320.0), mSpecificHeatAMMONIA(3.232675e+3, 5.032308, 200.0, 320.0), mThermalConductivityAMMONIA(1.409424, -3.073545e-3, 200.0, 320.0), mPrandtlNumberAMMONIA(3.284527e+1, -3.140536e-1, 1.053092e-3, -1.188966e-6, 200.0, 320.0), mAdiabaticIndexAMMONIA(9.180049e-1, 2.654521e-3, 200.0, 320.0), mPressureAMMONIA(8.575560e+2, -3.322898e-3, -2.196556e-1, 2.682584e-5, -2.137907e-3, -4.373326e-8, 200.0, 320.0, 1.0e-64, 1.0e+06), mTemperatureAMMONIA(3.232675e+3, 5.032308, 1.0e+2, 1.0e+07), /************************************************************************ Properties for liquid oxygen ************************************************************************/ mDensityOXYGEN(1.484157e+3, -8.587042e-3, -2.450391, 1.987369e-4, -1.522467e-2, -7.831438e-7, 54.5, 160.0, 1.0e-64, 1.0e+06), mViscosityOXYGEN(4.980476e-3, -1.23148e-4, 1.028597e-6, -2.833549e-9, 54.5, 160.0), mSpecificHeatOXYGEN(1.236465e+3, 5.952953, 54.5, 160.0), mThermalConductivityOXYGEN(2.702649e-1, -1.296934e-3, 54.5, 160.0), mPrandtlNumberOXYGEN(3.832281e+1, -9.263346e-1, 7.654178e-3, -2.057837e-5, 54.5, 160.0), mAdiabaticIndexOXYGEN(6.535915e-1, 1.351563e-2, 54.5, 160.0), mPressureOXYGEN(1.484157e+3, -8.587042e-3, -2.450391, 1.987369e-4, -1.522467e-2, -7.831438e-7, 54.5, 160.0, 1.0e-64, 1.0e+06), mTemperatureOXYGEN(1.236465e+3, 5.952953, 1.0e+2, 1.0e+06), /************************************************************************ Properties for liquid hydrogen ************************************************************************/ mDensityHYDROGEN(8.523911e+1, 3.848172e-4, -2.505004e-1, -1.498004e-6, -2.275759e-2, 1.385381e-6, 13.957, 33.145, 1.0e-64, 1.0e+05), mViscosityHYDROGEN(-3.313185e-4, 5.649623e-5, -2.874943e-6, 4.492284e-8, 13.957, 33.145), mSpecificHeatHYDROGEN(1075.252, 397.4336, 13.957, 33.145), mThermalConductivityHYDROGEN(6.970838e-2, 1.438866e-3, 13.957, 33.145), mPrandtlNumberHYDROGEN(-2.957755, 1.071455, -6.652422e-2, 1.197382e-3, 13.957, 33.145), mAdiabaticIndexHYDROGEN(2.970049e-1, 6.793151e-2, 13.957, 33.145), mPressureHYDROGEN(8.523911e+1, 3.848172e-4, -2.505004e-1, -1.498004e-6, -2.275759e-2, 1.385381e-6, 13.957, 33.145, 1.0e-64, 1.0e+05), mTemperatureHYDROGEN(1075.252, 397.4336, 9.0e+4, 5.0e+05), /************************************************************************ Properties for liquid methane ************************************************************************/ mDensityMETHANE(5.18077e+2, -1.218128e-3, -2.121587e-1, 1.718584e-5, -5.772998e-3, 2.199488e-8, 91.0, 190.0, 1.0e-64, 1.0e+06), mViscosityMETHANE(1.570362e-3, -2.758163e-5, 1.700744e-7, -3.554044e-10, 91.0, 190.0), mSpecificHeatMETHANE(2.396006e+3, 1.012118e+1, 91.0, 190.0), mThermalConductivityMETHANE(3.18017e-1, -1.19349e-3, 91.0, 190.0), mPrandtlNumberMETHANE(1.993432e+1, -3.382524e-1, 2.086565e-3, -4.282414e-6, 91.0, 190.0), mAdiabaticIndexMETHANE(7.96846e-1, 8.1612e-3, 91.0, 190.0), mPressureMETHANE(5.18077e+2, -1.218128e-3, -2.121587e-1, 1.718584e-5, -5.772998e-3, 2.199488e-8, 91.0, 190.0, 1.0e-64, 1.0e+06), mTemperatureMETHANE(2.396006e+3, 1.012118e+1, 1.0e+2, 1.0e+06), /************************************************************************ Properties for liquid NaK-78 ************************************************************************/ mDensityNAK78(9.43057e+2, 7.557045e-3, -2.536697e-1, -4.273648e-5, -6.394895e-6, 6.311271e-8, 260.55, 1058.15, 1.0e-64, 1.0e+06), mViscosityNAK78(1.094168e-2, 9.915936e-1, 273.15, 393.0), mSpecificHeatNAK78(8.38991e+2, 4.298676e-2, 260.55, 1058.15), mThermalConductivityNAK78(1.410435e+1, 3.27186e-2, -2.2e-5, 273.15, 1058.15), mPrandtlNumberNAK78(4.353545e1, -2.2239e-3, 3e-6, 273.15, 373.0), // mAdiabaticIndexNAK78(7.96846e-1, 8.1612e-3, 91.0, 190.0), mPressureNAK78(9.43057e+2, 7.557045e-3, -2.536697e-1, -4.273648e-5, -6.394895e-6, 6.311271e-8, 260.55, 1058.15, 1.0e-64, 1.0e+06), mTemperatureNAK78(8.38991e+2, 4.298676e-2, 2.0e+5, 2.0e+6), /************************************************************************ Properties for liquid Galden HT-170 ************************************************************************/ mDensityGALDEN170(2.448909e+3, 7.557045e-3, -2.273338e+0, -4.273648e-5, -6.394895e-6, 6.311271e-8, 176.15, 443.15, 1.0e-64, 1.0e+06), mViscosityGALDEN170(2.399253e+0, 9.795713e-1, 223.15, 443.15), mSpecificHeatGALDEN170(959.33, 3.3983e-3, 176.15, 443.15), mThermalConductivityGALDEN170(8.834155e-2, -7.737154e-5, 176.15, 443.15), mPrandtlNumberGALDEN170(1.043326e+4, 9.835799e-1, 223.15, 443.15), // mAdiabaticIndexGALDEN170(7.96846e-1, 8.1612e-3, 91.0, 190.0), mPressureGALDEN170(2.448909e+3, 7.557045e-3, -2.273338e+0, -4.273648e-5, -6.394895e-6, 6.311271e-8, 176.15, 443.15, 1.0e-64, 1.0e+06), mTemperatureGALDEN170(959.33, 3.3983e-3, 1.0e+5, 1.0e+6), mSaturationPressureGALDEN170(6.901611, -2.958793, -0.3139779, 1.0, mCriticalTemperatureGALDEN170/223.15), mSaturationTemperatureGALDEN170(6.901611, -2.958793, -0.3139779, 4.801679e-5, 4.254419e+3), mHeatOfVaporizationGALDEN170(85.343219, 0.132045, 0.132045, 176.15/mCriticalTemperatureGALDEN170, 1.0), /************************************************************************ Properties for liquid water (density table lookup) ************************************************************************/ mDataWATERPVT(), mDensityWATERPVT(mDataWATERPVT.mScaleTemperature, mDataWATERPVT.mScalePressure, mDataWATERPVT.mDensityTable, mDataWATERPVT.getTscaleSize(), mDataWATERPVT.getPscaleSize(), mDataWATERPVT.mScaleTemperature[0], mDataWATERPVT.mScaleTemperature[mDataWATERPVT.getTscaleSize() - 1], mDataWATERPVT.mScalePressure[0], mDataWATERPVT.mScalePressure[mDataWATERPVT.getPscaleSize() - 1]), mPressureWATERPVT(mDataWATERPVT.mScaleTemperature, mDataWATERPVT.mScalePressure, mDataWATERPVT.mDensityTable, mDataWATERPVT.getTscaleSize(), mDataWATERPVT.getPscaleSize(), mDataWATERPVT.mScaleTemperature[0], mDataWATERPVT.mScaleTemperature[mDataWATERPVT.getTscaleSize() - 1], mDataWATERPVT.mScalePressure[0], mDataWATERPVT.mScalePressure[mDataWATERPVT.getPscaleSize() - 1]), /************************************************************************ Properties for liquid NTO ************************************************************************/ mDensityNTO(3.241299e+3, 1.140648e-1, 2.817185e+1, -6.391916e-4, -4.342774e-2, 9.113739e-7, 261.95, 427.6, 1.0e-64, 1.0e+06), mViscosityNTO(7.533e-3, -6.167e-5, 2.055e-7, -3.234e-10, 1.966e-13, 261.95, 427.6), mSpecificHeatNTO(-2215.7, 13.372, 261.95, 427.6), mThermalConductivityNTO(-1.3782e-1, 2.3288e-3, -4.7865e-6, 261.95, 350.0), mPrandtlNumberNTO(-2.364171e+1, 2.898713e-1, -9.459955e-4, 9.33181e-7, 2.44165e-10, 261.95, 350.0), mAdiabaticIndexNTO(0.64975127, 1.227552e-3, 200.0, 470.0), mPressureNTO(3.241299e+3, 1.140648e-1, 2.817185e+1, -6.391916e-4, -4.342774e-2, 9.113739e-7, 261.95, 427.6, 1.0e-64, 1.0e+06), mTemperatureNTO(-2215.7, 13.372, 1214.0*261.95, 3502.0*427.6), /************************************************************************ Properties for liquid MMH ************************************************************************/ mDensityMMH(9.935507e+2, 4.356428e-3, 7.055863e-2, -2.411805e-5, -1.605997e-3, 4.182414e-8, 220.0, 585.0, 1.0e-64, 1.0e+06), mViscosityMMH(1.081484e1, -1.796232e-1, 1.189885e-3, -3.928065e-6, 6.460698e-9, -4.234832e-12, 220.0, 360.0), mSpecificHeatMMH(2480.7, 1.2624, 220.0, 585.0), mThermalConductivityMMH(1.4236e-1, 9.2048e-4, -1.9016e-6, 220.0, 585.0), mPrandtlNumberMMH(1.73757e3, -1.634448e1, 5.688812e-2, -8.669108e-5, 4.878808e-8, 220.0, 500.0), mAdiabaticIndexMMH(0.64975127, 1.227552e-3, 200.0, 470.0), mPressureMMH(9.935507e+2, 4.356428e-3, 7.055863e-2, -2.411805e-5, -1.605997e-3, 4.182414e-8, 220.0, 585.0, 1.0e-64, 1.0e+06), mTemperatureMMH(2480.7, 1.2624, 2758.4*220.0, 3219.2*585.0), /************************************************************************ Properties for liquid HYDRAZINE ************************************************************************/ mDensityHYDRAZINE(1230.774, 5.91931e-5, -0.626700942, 2.06685e-7, -0.000452968, 1.25893e-9, 274.68, 387.4, 1.0e-64, 1.0e+06), mViscosityHYDRAZINE(0.032949161, 0.988079347, 274.68, 387.4), mSpecificHeatHYDRAZINE(2343.3, 2.4825, 274.68, 387.4), mThermalConductivityHYDRAZINE(0.088203316, 0.002744071, -4.68042e-6, 274.68, 387.4), mPrandtlNumberHYDRAZINE(131.8770027, 0.989586693, 274.68, 387.4), mAdiabaticIndexHYDRAZINE(0.64975127, 1.227552e-3, 200.0, 470.0), mPressureHYDRAZINE(1230.774, 5.91931e-5, -0.626700942, 2.06685e-7, -0.000452968, 1.25893e-9, 274.68, 387.4, 1.0e-64, 1.0e+06), mTemperatureHYDRAZINE(2343.3, 2.4825, 3025.0*274.68, 3806.0*387.4), /************************************************************************ Properties for carbon monoxide (Ideal Gas) ************************************************************************/ mPropertiesCO(FluidProperties::GUNNS_CO, FluidProperties::GAS, mMWeightCO, mCriticalTemperatureCO, &mDensityCO, &mViscosityCO, &mSpecificHeatCO, &mThermalConductivityCO, &mPrandtlNumberCO, &mAdiabaticIndexCO, &mPressureCO, &mTemperatureCO, &mSaturationPressureCO, &mSaturationTemperatureCO, &mHeatOfVaporizationCO), /************************************************************************ Properties for carbon dioxide (Ideal Gas) ************************************************************************/ mPropertiesCO2(FluidProperties::GUNNS_CO2, FluidProperties::GAS, mMWeightCO2, mCriticalTemperatureCO2, &mDensityCO2, &mViscosityCO2, &mSpecificHeatCO2, &mThermalConductivityCO2, &mPrandtlNumberCO2, &mAdiabaticIndexCO2, &mPressureCO2, &mTemperatureCO2, &mSaturationPressureCO2, &mSaturationTemperatureCO2, &mHeatOfVaporizationCO2), /************************************************************************ Properties for water vapor (Ideal Gas) ************************************************************************/ mPropertiesH2O(FluidProperties::GUNNS_H2O, FluidProperties::GAS, mMWeightH2O, mCriticalTemperatureH2O, &mDensityH2O, &mViscosityH2O, &mSpecificHeatH2O, &mThermalConductivityH2O, &mPrandtlNumberH2O, &mAdiabaticIndexH2O, &mPressureH2O, &mTemperatureH2O, &mSaturationPressureH2O, &mSaturationTemperatureH2O, &mHeatOfVaporizationH2O), /************************************************************************ Properties for nitrogen (Ideal Gas) ************************************************************************/ mPropertiesN2(FluidProperties::GUNNS_N2, FluidProperties::GAS, mMWeightN2, mCriticalTemperatureN2, &mDensityN2, &mViscosityN2, &mSpecificHeatN2, &mThermalConductivityN2, &mPrandtlNumberN2, &mAdiabaticIndexN2, &mPressureN2, &mTemperatureN2, &mSaturationPressureN2, &mSaturationTemperatureN2, &mHeatOfVaporizationN2), /************************************************************************ Properties for oxygen (Ideal Gas) ************************************************************************/ mPropertiesO2(FluidProperties::GUNNS_O2, FluidProperties::GAS, mMWeightO2, mCriticalTemperatureO2, &mDensityO2, &mViscosityO2, &mSpecificHeatO2, &mThermalConductivityO2, &mPrandtlNumberO2, &mAdiabaticIndexO2, &mPressureO2, &mTemperatureO2, &mSaturationPressureO2, &mSaturationTemperatureO2, &mHeatOfVaporizationO2), /************************************************************************ Properties for ammonia (Ideal Gas) ************************************************************************/ mPropertiesNH3(FluidProperties::GUNNS_NH3, FluidProperties::GAS, mMWeightNH3, mCriticalTemperatureNH3, &mDensityNH3, &mViscosityNH3, &mSpecificHeatNH3, &mThermalConductivityNH3, &mPrandtlNumberNH3, &mAdiabaticIndexNH3, &mPressureNH3, &mTemperatureNH3, &mSaturationPressureNH3, &mSaturationTemperatureNH3, &mHeatOfVaporizationNH3), /************************************************************************ Properties for hydrogen (Ideal Gas) ************************************************************************/ mPropertiesH2(FluidProperties::GUNNS_H2, FluidProperties::GAS, mMWeightH2, mCriticalTemperatureH2, &mDensityH2, &mViscosityH2, &mSpecificHeatH2, &mThermalConductivityH2, &mPrandtlNumberH2, &mAdiabaticIndexH2, &mPressureH2, &mTemperatureH2, &mSaturationPressureH2, &mSaturationTemperatureH2, &mHeatOfVaporizationH2), /************************************************************************ Properties for methane (Ideal Gas) ************************************************************************/ mPropertiesCH4(FluidProperties::GUNNS_CH4, FluidProperties::GAS, mMWeightCH4, mCriticalTemperatureCH4, &mDensityCH4, &mViscosityCH4, &mSpecificHeatCH4, &mThermalConductivityCH4, &mPrandtlNumberCH4, &mAdiabaticIndexCH4, &mPressureCH4, &mTemperatureCH4, &mSaturationPressureCH4, &mSaturationTemperatureCH4, &mHeatOfVaporizationCH4), /************************************************************************ Properties for hydrocloric acid (Ideal Gas) ************************************************************************/ mPropertiesHCL(FluidProperties::GUNNS_HCL, FluidProperties::GAS, mMWeightHCL, mCriticalTemperatureHCL, &mDensityHCL, &mViscosityHCL, &mSpecificHeatHCL, &mThermalConductivityHCL, &mPrandtlNumberHCL, &mAdiabaticIndexHCL, &mPressureHCL, &mTemperatureHCL, &mSaturationPressureHCL, &mSaturationTemperatureHCL, &mHeatOfVaporizationHCL), /************************************************************************ Properties for hydrogen cyanide (Ideal Gas) ************************************************************************/ mPropertiesHCN(FluidProperties::GUNNS_HCN, FluidProperties::GAS, mMWeightHCN, mCriticalTemperatureHCN, &mDensityHCN, &mViscosityHCN, &mSpecificHeatHCN, &mThermalConductivityHCN, &mPrandtlNumberHCN, &mAdiabaticIndexHCN, &mPressureHCN, &mTemperatureHCN, &mSaturationPressureHCN, &mSaturationTemperatureHCN, &mHeatOfVaporizationHCN), /************************************************************************ Properties for helium (Ideal Gas) ************************************************************************/ mPropertiesHe(FluidProperties::GUNNS_HE, FluidProperties::GAS, mMWeightHe, mCriticalTemperatureHe, &mDensityHe, &mViscosityHe, &mSpecificHeatHe, &mThermalConductivityHe, &mPrandtlNumberHe, &mAdiabaticIndexHe, &mPressureHe, &mTemperatureHe, &mSaturationPressureHe, &mSaturationTemperatureHe, &mHeatOfVaporizationHe), /************************************************************************ Properties for helium (Real-Gas compressibility) ************************************************************************/ mPropertiesHeReal(FluidProperties::GUNNS_HE_REAL_GAS, FluidProperties::GAS, mMWeightHe, mCriticalTemperatureHe, &mDensityHeReal, &mViscosityHe, &mSpecificHeatHe, &mThermalConductivityHe, &mPrandtlNumberHe, &mAdiabaticIndexHe, &mPressureHeReal, &mTemperatureHe, &mSaturationPressureHe, &mSaturationTemperatureHe, &mHeatOfVaporizationHe), /************************************************************************ Properties for xenon, (Real-Gas compressibility) ************************************************************************/ mPropertiesXe(FluidProperties::GUNNS_XE_REAL_GAS, FluidProperties::GAS, mMWeightXe, mCriticalTemperatureXe, &mDensityXe, &mViscosityXe, &mSpecificHeatXe, &mThermalConductivityXe, &mPrandtlNumberXe, &mAdiabaticIndexXe, &mPressureXe, &mTemperatureXe, &mSaturationPressureXe, &mSaturationTemperatureXe, &mHeatOfVaporizationXe), /************************************************************************ Properties for nitrogen, (Real-Gas compressibility). These are the same as the GUNNS_N2, except the density & pressures are table look-ups that model real-gas compression. ************************************************************************/ mPropertiesN2Real(FluidProperties::GUNNS_N2_REAL_GAS, FluidProperties::GAS, mMWeightN2, mCriticalTemperatureN2, &mDensityN2Real, &mViscosityN2, &mSpecificHeatN2, &mThermalConductivityN2, &mPrandtlNumberN2, &mAdiabaticIndexN2, &mPressureN2Real, &mTemperatureN2, &mSaturationPressureN2, &mSaturationTemperatureN2, &mHeatOfVaporizationN2), /************************************************************************ Properties for oxygen, (Real-Gas compressibility). These are the same as the GUNNS_O2, except the density & pressures are table look-ups that model real-gas compression. ************************************************************************/ mPropertiesO2Real(FluidProperties::GUNNS_O2_REAL_GAS, FluidProperties::GAS, mMWeightO2, mCriticalTemperatureO2, &mDensityO2Real, &mViscosityO2, &mSpecificHeatO2, &mThermalConductivityO2, &mPrandtlNumberO2, &mAdiabaticIndexO2, &mPressureO2Real, &mTemperatureO2, &mSaturationPressureO2, &mSaturationTemperatureO2, &mHeatOfVaporizationO2), /************************************************************************ Properties for hydrogen, (Real-Gas compressibility). These are the same as the GUNNS_H2, except the density & pressures are table look-ups that model real-gas compression. ************************************************************************/ mPropertiesH2Real(FluidProperties::GUNNS_H2_REAL_GAS, FluidProperties::GAS, mMWeightH2, mCriticalTemperatureH2, &mDensityH2Real, &mViscosityH2, &mSpecificHeatH2, &mThermalConductivityH2, &mPrandtlNumberH2, &mAdiabaticIndexH2, &mPressureH2Real, &mTemperatureH2, &mSaturationPressureH2, &mSaturationTemperatureH2, &mHeatOfVaporizationH2), /************************************************************************ Properties for water (Liquid) ************************************************************************/ mPropertiesWATER(FluidProperties::GUNNS_WATER, FluidProperties::LIQUID, mMWeightH2O, mCriticalTemperatureH2O, &mDensityWATER, &mViscosityWATER, &mSpecificHeatWATER, &mThermalConductivityWATER, &mPrandtlNumberWATER, &mAdiabaticIndexWATER, &mPressureWATER, &mTemperatureWATER, &mSaturationPressureH2O, &mSaturationTemperatureH2O, &mHeatOfVaporizationH2O), /************************************************************************ Properties for HFE7000 (Liquid) ************************************************************************/ mPropertiesHFE7000(FluidProperties::GUNNS_HFE7000, FluidProperties::LIQUID, mMWeightHFE7000, mCriticalTemperatureHFE7000, &mDensityHFE7000, &mViscosityHFE7000, &mSpecificHeatHFE7000, &mThermalConductivityHFE7000, &mPrandtlNumberHFE7000, &mAdiabaticIndexHFE7000, &mPressureHFE7000, &mTemperatureHFE7000, &mSaturationPressureHFE7000, &mSaturationTemperatureHFE7000, &mHeatOfVaporizationHFE7000), /************************************************************************ Properties for HFE7100 (Liquid) ************************************************************************/ mPropertiesHFE7100(FluidProperties::GUNNS_HFE7100, FluidProperties::LIQUID, mMWeightHFE7100, mCriticalTemperatureHFE7100, &mDensityHFE7100, &mViscosityHFE7100, &mSpecificHeatHFE7100, &mThermalConductivityHFE7100, &mPrandtlNumberHFE7100, &mAdiabaticIndexHFE7100, &mPressureHFE7100, &mTemperatureHFE7100, &mSaturationPressureHFE7100, &mSaturationTemperatureHFE7100, &mHeatOfVaporizationHFE7100), /************************************************************************ Properties for propylene glycol 30% (Liquid) ************************************************************************/ mPropertiesPG30(FluidProperties::GUNNS_PG30, FluidProperties::LIQUID, mMWeightPG30, mCriticalTemperaturePG30, &mDensityPG30, &mViscosityPG30, &mSpecificHeatPG30, &mThermalConductivityPG30, &mPrandtlNumberPG30, &mAdiabaticIndexPG30, &mPressurePG30, &mTemperaturePG30, &mSaturationPressurePG30, &mSaturationTemperaturePG30, &mHeatOfVaporizationPG30), /************************************************************************ Properties for propylene glycol 40% (Liquid) ************************************************************************/ mPropertiesPG40(FluidProperties::GUNNS_PG40, FluidProperties::LIQUID, mMWeightPG40, mCriticalTemperaturePG40, &mDensityPG40, &mViscosityPG40, &mSpecificHeatPG40, &mThermalConductivityPG40, &mPrandtlNumberPG40, &mAdiabaticIndexPG40, &mPressurePG40, &mTemperaturePG40, &mSaturationPressurePG40, &mSaturationTemperaturePG40, &mHeatOfVaporizationPG40), /************************************************************************ Properties for propylene glycol 50% (Liquid) ************************************************************************/ mPropertiesPG50(FluidProperties::GUNNS_PG50, FluidProperties::LIQUID, mMWeightPG50, mCriticalTemperaturePG50, &mDensityPG50, &mViscosityPG50, &mSpecificHeatPG50, &mThermalConductivityPG50, &mPrandtlNumberPG50, &mAdiabaticIndexPG50, &mPressurePG50, &mTemperaturePG50, &mSaturationPressurePG50, &mSaturationTemperaturePG50, &mHeatOfVaporizationPG50), /************************************************************************ Properties for ammonia (Liquid) ************************************************************************/ mPropertiesAMMONIA(FluidProperties::GUNNS_AMMONIA, FluidProperties::LIQUID, mMWeightNH3, mCriticalTemperatureNH3, &mDensityAMMONIA, &mViscosityAMMONIA, &mSpecificHeatAMMONIA, &mThermalConductivityAMMONIA, &mPrandtlNumberAMMONIA, &mAdiabaticIndexAMMONIA, &mPressureAMMONIA, &mTemperatureAMMONIA, &mSaturationPressureNH3, &mSaturationTemperatureNH3, &mHeatOfVaporizationNH3), /************************************************************************ Properties for oxygen (Liquid) ************************************************************************/ mPropertiesOXYGEN(FluidProperties::GUNNS_OXYGEN, FluidProperties::LIQUID, mMWeightO2, mCriticalTemperatureO2, &mDensityOXYGEN, &mViscosityOXYGEN, &mSpecificHeatOXYGEN, &mThermalConductivityOXYGEN, &mPrandtlNumberOXYGEN, &mAdiabaticIndexOXYGEN, &mPressureOXYGEN, &mTemperatureOXYGEN, &mSaturationPressureO2, &mSaturationTemperatureO2, &mHeatOfVaporizationO2), /************************************************************************ Properties for hydrogen (Liquid) ************************************************************************/ mPropertiesHYDROGEN(FluidProperties::GUNNS_HYDROGEN, FluidProperties::LIQUID, mMWeightH2, mCriticalTemperatureH2, &mDensityHYDROGEN, &mViscosityHYDROGEN, &mSpecificHeatHYDROGEN, &mThermalConductivityHYDROGEN, &mPrandtlNumberHYDROGEN, &mAdiabaticIndexHYDROGEN, &mPressureHYDROGEN, &mTemperatureHYDROGEN, &mSaturationPressureH2, &mSaturationTemperatureH2, &mHeatOfVaporizationH2), /************************************************************************ Properties for methane (Liquid) ************************************************************************/ mPropertiesMETHANE(FluidProperties::GUNNS_METHANE, FluidProperties::LIQUID, mMWeightCH4, mCriticalTemperatureCH4, &mDensityMETHANE, &mViscosityMETHANE, &mSpecificHeatMETHANE, &mThermalConductivityMETHANE, &mPrandtlNumberMETHANE, &mAdiabaticIndexMETHANE, &mPressureMETHANE, &mTemperatureMETHANE, &mSaturationPressureCH4, &mSaturationTemperatureCH4, &mHeatOfVaporizationCH4), /************************************************************************ Properties for NaK-78 (Liquid). Some properties we don't have any data for, so we just substitute WATER/H2O for them. They should not be used. ************************************************************************/ mPropertiesNAK78(FluidProperties::GUNNS_NAK78, FluidProperties::LIQUID, mMWeightNAK78, mCriticalTemperatureNAK78, &mDensityNAK78, &mViscosityNAK78, &mSpecificHeatNAK78, &mThermalConductivityNAK78, &mPrandtlNumberNAK78, &mAdiabaticIndexWATER, &mPressureNAK78, &mTemperatureNAK78, &mSaturationPressureH2O, &mSaturationTemperatureH2O, &mHeatOfVaporizationH2O), /************************************************************************ Properties for Galden HT-170 (Liquid) ************************************************************************/ mPropertiesGALDEN170(FluidProperties::GUNNS_GALDEN170, FluidProperties::LIQUID, mMWeightGALDEN170, mCriticalTemperatureGALDEN170, &mDensityGALDEN170, &mViscosityGALDEN170, &mSpecificHeatGALDEN170, &mThermalConductivityGALDEN170, &mPrandtlNumberGALDEN170, &mAdiabaticIndexWATER, &mPressureGALDEN170, &mTemperatureGALDEN170, &mSaturationPressureGALDEN170, &mSaturationTemperatureGALDEN170, &mHeatOfVaporizationGALDEN170), /************************************************************************ Properties for liquid water (density table lookup) ************************************************************************/ mPropertiesWATERPVT(FluidProperties::GUNNS_WATER_PVT, FluidProperties::LIQUID, mMWeightH2O, mCriticalTemperatureH2O, &mDensityWATERPVT, &mViscosityWATER, &mSpecificHeatWATER, &mThermalConductivityWATER, &mPrandtlNumberWATER, &mAdiabaticIndexWATER, &mPressureWATERPVT, &mTemperatureWATER, &mSaturationPressureH2O, &mSaturationTemperatureH2O, &mHeatOfVaporizationH2O), /************************************************************************ Properties for NTO (Liquid) ************************************************************************/ mPropertiesNTO(FluidProperties::GUNNS_NTO, FluidProperties::LIQUID, mMWeightN2O4, mCriticalTemperatureN2O4, &mDensityNTO, &mViscosityNTO, &mSpecificHeatNTO, &mThermalConductivityNTO, &mPrandtlNumberNTO, &mAdiabaticIndexNTO, &mPressureNTO, &mTemperatureNTO, &mSaturationPressureN2O4, &mSaturationTemperatureN2O4, &mHeatOfVaporizationN2O4), /************************************************************************ Properties for MMH (Liquid) ************************************************************************/ mPropertiesMMH(FluidProperties::GUNNS_MMH, FluidProperties::LIQUID, mMWeightCH3N2H3, mCriticalTemperatureCH3N2H3, &mDensityMMH, &mViscosityMMH, &mSpecificHeatMMH, &mThermalConductivityMMH, &mPrandtlNumberMMH, &mAdiabaticIndexMMH, &mPressureMMH, &mTemperatureMMH, &mSaturationPressureCH3N2H3, &mSaturationTemperatureCH3N2H3, &mHeatOfVaporizationCH3N2H3), /************************************************************************ Properties for HYDRAZINE (Liquid) ************************************************************************/ mPropertiesHYDRAZINE(FluidProperties::GUNNS_HYDRAZINE, FluidProperties::LIQUID, mMWeightN2H4, mCriticalTemperatureN2H4, &mDensityHYDRAZINE, &mViscosityHYDRAZINE, &mSpecificHeatHYDRAZINE, &mThermalConductivityHYDRAZINE, &mPrandtlNumberHYDRAZINE, &mAdiabaticIndexHYDRAZINE, &mPressureHYDRAZINE, &mTemperatureHYDRAZINE, &mSaturationPressureN2H4, &mSaturationTemperatureN2H4, &mHeatOfVaporizationN2H4) { /// - Load the fluid properties array with the pointer to the properties for each fluid type mProperties[FluidProperties::GUNNS_CO] = &mPropertiesCO; mProperties[FluidProperties::GUNNS_CO2] = &mPropertiesCO2; mProperties[FluidProperties::GUNNS_H2O] = &mPropertiesH2O; mProperties[FluidProperties::GUNNS_N2] = &mPropertiesN2; mProperties[FluidProperties::GUNNS_O2] = &mPropertiesO2; mProperties[FluidProperties::GUNNS_NH3] = &mPropertiesNH3; mProperties[FluidProperties::GUNNS_H2] = &mPropertiesH2; mProperties[FluidProperties::GUNNS_CH4] = &mPropertiesCH4; mProperties[FluidProperties::GUNNS_HCL] = &mPropertiesHCL; mProperties[FluidProperties::GUNNS_HCN] = &mPropertiesHCN; mProperties[FluidProperties::GUNNS_HE] = &mPropertiesHe; mProperties[FluidProperties::GUNNS_HE_REAL_GAS] = &mPropertiesHeReal; mProperties[FluidProperties::GUNNS_XE_REAL_GAS] = &mPropertiesXe; mProperties[FluidProperties::GUNNS_N2_REAL_GAS] = &mPropertiesN2Real; mProperties[FluidProperties::GUNNS_O2_REAL_GAS] = &mPropertiesO2Real; mProperties[FluidProperties::GUNNS_H2_REAL_GAS] = &mPropertiesH2Real; mProperties[FluidProperties::GUNNS_WATER] = &mPropertiesWATER; mProperties[FluidProperties::GUNNS_HFE7000] = &mPropertiesHFE7000; mProperties[FluidProperties::GUNNS_HFE7100] = &mPropertiesHFE7100; mProperties[FluidProperties::GUNNS_PG30] = &mPropertiesPG30; mProperties[FluidProperties::GUNNS_PG40] = &mPropertiesPG40; mProperties[FluidProperties::GUNNS_PG50] = &mPropertiesPG50; mProperties[FluidProperties::GUNNS_AMMONIA] = &mPropertiesAMMONIA; mProperties[FluidProperties::GUNNS_OXYGEN] = &mPropertiesOXYGEN; mProperties[FluidProperties::GUNNS_HYDROGEN] = &mPropertiesHYDROGEN; mProperties[FluidProperties::GUNNS_METHANE] = &mPropertiesMETHANE; mProperties[FluidProperties::GUNNS_NAK78] = &mPropertiesNAK78; mProperties[FluidProperties::GUNNS_GALDEN170] = &mPropertiesGALDEN170; mProperties[FluidProperties::GUNNS_WATER_PVT] = &mPropertiesWATERPVT; mProperties[FluidProperties::GUNNS_NTO] = &mPropertiesNTO; mProperties[FluidProperties::GUNNS_MMH] = &mPropertiesMMH; mProperties[FluidProperties::GUNNS_HYDRAZINE] = &mPropertiesHYDRAZINE; } /////////////////////////////////////////////////////////////////////////////////////////////////// /// @details Default destructs this Defined Fluid Properties. //////////////////////////////////////////////////////////////////////////////////////////////////// DefinedFluidProperties::~DefinedFluidProperties() { // nothing to do }
[ "jason.l.harvey@nasa.gov" ]
jason.l.harvey@nasa.gov
f668f31c441f1285e51580e4b0678b496bc47749
395ed8df4dff6db2ad0185d8c853dc33ea1f87c8
/DataFormats/L1TMuon/interface/EMTF/EventHeader.h
fab229eb2671df4413355166a049d7c0638f3d0a
[]
no_license
quertenmont/cmssw
37f52b9cdb7db8a7e5bab96edd44aaf1dbad54db
4b3b34c7057baff9d0c2700c778ef0f6893e0fa7
refs/heads/Run2HSCP_8XY_v0
2021-01-09T06:18:40.140547
2016-07-20T11:55:14
2016-07-20T11:55:14
11,897,542
1
0
null
2016-07-25T19:42:11
2013-08-05T12:21:12
C++
UTF-8
C++
false
false
4,682
h
// Class for Event Record Header #ifndef __l1t_emtf_EventHeader_h__ #define __l1t_emtf_EventHeader_h__ #include <boost/cstdint.hpp> namespace l1t { namespace emtf { class EventHeader { public: explicit EventHeader(uint64_t dataword); EventHeader() : l1a(-99), l1a_bxn(-99), sp_ts(-99), endcap(-99), sector(-99), sp_ersv(-99), sp_addr(-99), tbin(-99), ddm(-99), spa(-99), rpca(-99), skip(-99), rdy(-99), bsy(-99), osy(-99), wof(-99), me1a(-99), me1b(-99), me2(-99), me3(-99), me4(-99), format_errors(0), dataword(-99) {}; EventHeader(int int_l1a, int int_l1a_bxn, int int_sp_ts, int int_endcap, int int_sector, int int_sp_ersv, int int_sp_addr, int int_tbin, int int_ddm, int int_spa, int int_rpca, int int_skip, int int_rdy, int int_bsy, int int_osy, int int_wof, int int_me1a, int int_me1b, int int_me2, int int_me3, int int_me4) : l1a(int_l1a), l1a_bxn(int_l1a_bxn), sp_ts(int_sp_ts), endcap(int_endcap), sector(int_sector), sp_ersv(int_sp_ersv), sp_addr(int_sp_addr), tbin(int_tbin), ddm(int_ddm), spa(int_spa), rpca(int_rpca), skip(int_skip), rdy(int_rdy), bsy(int_bsy), osy(int_osy), wof(int_wof), me1a(int_me1a), me1b(int_me1b), me2(int_me2), me3(int_me3), me4(int_me4), format_errors(0), dataword(-99) {}; virtual ~EventHeader() {}; void set_l1a(int bits) { l1a = bits; }; void set_l1a_bxn(int bits) { l1a_bxn = bits; }; void set_sp_ts(int bits) { sp_ts = bits; }; void set_endcap(int bits) { endcap = bits; }; void set_sector(int bits) { sector = bits; }; void set_sp_ersv(int bits) { sp_ersv = bits; }; void set_sp_addr(int bits) { sp_addr = bits; }; void set_tbin(int bits) { tbin = bits; }; void set_ddm(int bits) { ddm = bits; }; void set_spa(int bits) { spa = bits; }; void set_rpca(int bits) { rpca = bits; }; void set_skip(int bits) { skip = bits; }; void set_rdy(int bits) { rdy = bits; }; void set_bsy(int bits) { bsy = bits; }; void set_osy(int bits) { osy = bits; }; void set_wof(int bits) { wof = bits; }; void set_me1a(int bits) { me1a = bits; }; void set_me1b(int bits) { me1b = bits; }; void set_me2(int bits) { me2 = bits; }; void set_me3(int bits) { me3 = bits; }; void set_me4(int bits) { me4 = bits; }; void add_format_error() { format_errors += 1; }; void set_dataword(uint64_t bits) { dataword = bits; }; const int L1A() const { return l1a ; }; const int L1A_BXN() const { return l1a_bxn ; }; const int SP_ts() const { return sp_ts ; }; const int Endcap() const { return endcap ; }; const int Sector() const { return sector ; }; const int SP_ersv() const { return sp_ersv ; }; const int SP_addr() const { return sp_addr ; }; const int Tbin() const { return tbin ; }; const int DDM() const { return ddm ; }; const int SPa() const { return spa ; }; const int RPCa() const { return rpca ; }; const int Skip() const { return skip ; }; const int Rdy() const { return rdy ; }; const int BSY() const { return bsy ; }; const int OSY() const { return osy ; }; const int WOF() const { return wof ; }; const int ME1a() const { return me1a ; }; const int ME1b() const { return me1b ; }; const int ME2() const { return me2 ; }; const int ME3() const { return me3 ; }; const int ME4() const { return me4 ; }; const int Format_Errors() const { return format_errors; }; const uint64_t Dataword() const { return dataword; }; private: int l1a; int l1a_bxn; int sp_ts; int endcap; int sector; int sp_ersv; int sp_addr; int tbin; int ddm; int spa; int rpca; int skip; int rdy; int bsy; int osy; int wof; int me1a; int me1b; int me2; int me3; int me4; int format_errors; uint64_t dataword; }; // End of class EventHeader } // End of namespace emtf } // End of namespace l1t #endif /* define __l1t_emtf_EventHeader_h__ */
[ "mulhearn@cern.ch" ]
mulhearn@cern.ch
599748c571650e18890b667e5a19a34ced2655dd
2eb806e1a88fc2718fc142167c17528944c53303
/BaekJoon/2020/200125_1939.cpp
4aebfe03aab9230968df1f36b793ce8b827dfb94
[]
no_license
chichchic/algorithmPrac
4eec4bfbcadbeb78ada671bf19fab0b9304e1a34
bca786c8e2c983fe9ca54b5efe5b959cc7e67013
refs/heads/master
2022-11-22T09:10:21.642831
2022-11-10T14:16:04
2022-11-10T14:16:04
192,276,545
0
0
null
null
null
null
UTF-8
C++
false
false
1,450
cpp
#include <iostream> #include <vector> #include <queue> using namespace std; struct bridge { int end; long long weight; }; vector<vector<bridge>> bMap; int n, m; int sPoint, ePoint; long long ans; void bSearch(long long start, long long end) { long long mid = (start + end) / 2; //최대 무게 bool arrive = false; vector<bool> check(n, false); queue<int> que; que.push(sPoint); check[sPoint] = true; while (!que.empty()) { int cur = que.front(); que.pop(); if (cur == ePoint) { arrive = true; break; } for (int i = 0; i < bMap[cur].size(); i++) { if (check[bMap[cur][i].end] || bMap[cur][i].weight < mid) continue; que.push(bMap[cur][i].end); check[bMap[cur][i].end] = true; } } if (arrive) { ans = mid; if (start >= end) return; bSearch(mid + 1, end); } else { if (start >= end) return; bSearch(start, mid - 1); } } int main() { cin >> n >> m; bMap.resize(n + 1); int start, end; long long weight, min = 1000000003, max = 0; for (int i = 0; i < m; i++) { cin >> start >> end >> weight; bridge temp1 = {end, weight}; bridge temp2 = {start, weight}; if (weight < min) min = weight; if (weight > max) max = weight; bMap[start].push_back(temp1); bMap[end].push_back(temp2); } cin >> sPoint >> ePoint; bSearch(min, max); cout << ans; return 0; }
[ "pch6789@naver.com" ]
pch6789@naver.com
80f2640e765355f2a7f0bf410216a630844009d5
49f88ff91aa582e1a9d5ae5a7014f5c07eab7503
/gen/third_party/blink/renderer/bindings/modules/v8/v8_credentials_container.cc
2574026798824b535eecc391f19a1ae4fd57deae
[]
no_license
AoEiuV020/kiwibrowser-arm64
b6c719b5f35d65906ae08503ec32f6775c9bb048
ae7383776e0978b945e85e54242b4e3f7b930284
refs/heads/main
2023-06-01T21:09:33.928929
2021-06-22T15:56:53
2021-06-22T15:56:53
379,186,747
0
1
null
null
null
null
UTF-8
C++
false
false
15,338
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. // This file has been auto-generated from the Jinja2 template // third_party/blink/renderer/bindings/templates/interface.cpp.tmpl // by the script code_generator_v8.py. // DO NOT MODIFY! // clang-format off #include "third_party/blink/renderer/bindings/modules/v8/v8_credentials_container.h" #include "base/memory/scoped_refptr.h" #include "third_party/blink/renderer/bindings/core/v8/exception_state.h" #include "third_party/blink/renderer/bindings/core/v8/script_promise.h" #include "third_party/blink/renderer/bindings/core/v8/v8_dom_configuration.h" #include "third_party/blink/renderer/bindings/modules/v8/v8_credential.h" #include "third_party/blink/renderer/bindings/modules/v8/v8_credential_creation_options.h" #include "third_party/blink/renderer/bindings/modules/v8/v8_credential_request_options.h" #include "third_party/blink/renderer/core/execution_context/execution_context.h" #include "third_party/blink/renderer/core/frame/use_counter.h" #include "third_party/blink/renderer/platform/bindings/runtime_call_stats.h" #include "third_party/blink/renderer/platform/bindings/script_state.h" #include "third_party/blink/renderer/platform/bindings/v8_object_constructor.h" #include "third_party/blink/renderer/platform/wtf/get_ptr.h" namespace blink { // Suppress warning: global constructors, because struct WrapperTypeInfo is trivial // and does not depend on another global objects. #if defined(COMPONENT_BUILD) && defined(WIN32) && defined(__clang__) #pragma clang diagnostic push #pragma clang diagnostic ignored "-Wglobal-constructors" #endif const WrapperTypeInfo V8CredentialsContainer::wrapperTypeInfo = { gin::kEmbedderBlink, V8CredentialsContainer::domTemplate, V8CredentialsContainer::InstallConditionalFeatures, "CredentialsContainer", nullptr, WrapperTypeInfo::kWrapperTypeObjectPrototype, WrapperTypeInfo::kObjectClassId, WrapperTypeInfo::kNotInheritFromActiveScriptWrappable, }; #if defined(COMPONENT_BUILD) && defined(WIN32) && defined(__clang__) #pragma clang diagnostic pop #endif // This static member must be declared by DEFINE_WRAPPERTYPEINFO in CredentialsContainer.h. // For details, see the comment of DEFINE_WRAPPERTYPEINFO in // platform/bindings/ScriptWrappable.h. const WrapperTypeInfo& CredentialsContainer::wrapper_type_info_ = V8CredentialsContainer::wrapperTypeInfo; // not [ActiveScriptWrappable] static_assert( !std::is_base_of<ActiveScriptWrappableBase, CredentialsContainer>::value, "CredentialsContainer inherits from ActiveScriptWrappable<>, but is not specifying " "[ActiveScriptWrappable] extended attribute in the IDL file. " "Be consistent."); static_assert( std::is_same<decltype(&CredentialsContainer::HasPendingActivity), decltype(&ScriptWrappable::HasPendingActivity)>::value, "CredentialsContainer is overriding hasPendingActivity(), but is not specifying " "[ActiveScriptWrappable] extended attribute in the IDL file. " "Be consistent."); namespace CredentialsContainerV8Internal { static void getMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { ExceptionState exceptionState(info.GetIsolate(), ExceptionState::kExecutionContext, "CredentialsContainer", "get"); ExceptionToRejectPromiseScope rejectPromiseScope(info, exceptionState); // V8DOMConfiguration::kDoNotCheckHolder // Make sure that info.Holder() really points to an instance of the type. if (!V8CredentialsContainer::hasInstance(info.Holder(), info.GetIsolate())) { exceptionState.ThrowTypeError("Illegal invocation"); return; } CredentialsContainer* impl = V8CredentialsContainer::ToImpl(info.Holder()); ScriptState* scriptState = ScriptState::ForRelevantRealm(info); CredentialRequestOptions options; if (!info[0]->IsNullOrUndefined() && !info[0]->IsObject()) { exceptionState.ThrowTypeError("parameter 1 ('options') is not an object."); return; } V8CredentialRequestOptions::ToImpl(info.GetIsolate(), info[0], options, exceptionState); if (exceptionState.HadException()) return; ScriptPromise result = impl->get(scriptState, options); V8SetReturnValue(info, result.V8Value()); } static void storeMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { ExceptionState exceptionState(info.GetIsolate(), ExceptionState::kExecutionContext, "CredentialsContainer", "store"); ExceptionToRejectPromiseScope rejectPromiseScope(info, exceptionState); // V8DOMConfiguration::kDoNotCheckHolder // Make sure that info.Holder() really points to an instance of the type. if (!V8CredentialsContainer::hasInstance(info.Holder(), info.GetIsolate())) { exceptionState.ThrowTypeError("Illegal invocation"); return; } CredentialsContainer* impl = V8CredentialsContainer::ToImpl(info.Holder()); ScriptState* scriptState = ScriptState::ForRelevantRealm(info); if (UNLIKELY(info.Length() < 1)) { exceptionState.ThrowTypeError(ExceptionMessages::NotEnoughArguments(1, info.Length())); return; } Credential* credential; credential = V8Credential::ToImplWithTypeCheck(info.GetIsolate(), info[0]); if (!credential) { exceptionState.ThrowTypeError("parameter 1 is not of type 'Credential'."); return; } ScriptPromise result = impl->store(scriptState, credential); V8SetReturnValue(info, result.V8Value()); } static void createMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { ExceptionState exceptionState(info.GetIsolate(), ExceptionState::kExecutionContext, "CredentialsContainer", "create"); ExceptionToRejectPromiseScope rejectPromiseScope(info, exceptionState); // V8DOMConfiguration::kDoNotCheckHolder // Make sure that info.Holder() really points to an instance of the type. if (!V8CredentialsContainer::hasInstance(info.Holder(), info.GetIsolate())) { exceptionState.ThrowTypeError("Illegal invocation"); return; } CredentialsContainer* impl = V8CredentialsContainer::ToImpl(info.Holder()); ScriptState* scriptState = ScriptState::ForRelevantRealm(info); CredentialCreationOptions options; if (!info[0]->IsNullOrUndefined() && !info[0]->IsObject()) { exceptionState.ThrowTypeError("parameter 1 ('options') is not an object."); return; } V8CredentialCreationOptions::ToImpl(info.GetIsolate(), info[0], options, exceptionState); if (exceptionState.HadException()) return; ScriptPromise result = impl->create(scriptState, options, exceptionState); if (exceptionState.HadException()) { return; } V8SetReturnValue(info, result.V8Value()); } static void preventSilentAccessMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { ExceptionState exceptionState(info.GetIsolate(), ExceptionState::kExecutionContext, "CredentialsContainer", "preventSilentAccess"); ExceptionToRejectPromiseScope rejectPromiseScope(info, exceptionState); // V8DOMConfiguration::kDoNotCheckHolder // Make sure that info.Holder() really points to an instance of the type. if (!V8CredentialsContainer::hasInstance(info.Holder(), info.GetIsolate())) { exceptionState.ThrowTypeError("Illegal invocation"); return; } CredentialsContainer* impl = V8CredentialsContainer::ToImpl(info.Holder()); ScriptState* scriptState = ScriptState::ForRelevantRealm(info); ScriptPromise result = impl->preventSilentAccess(scriptState); V8SetReturnValue(info, result.V8Value()); } } // namespace CredentialsContainerV8Internal void V8CredentialsContainer::getMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_CredentialsContainer_get"); UseCounter::Count(CurrentExecutionContext(info.GetIsolate()), WebFeature::kCredentialManagerGet); CredentialsContainerV8Internal::getMethod(info); } void V8CredentialsContainer::storeMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_CredentialsContainer_store"); UseCounter::Count(CurrentExecutionContext(info.GetIsolate()), WebFeature::kCredentialManagerStore); CredentialsContainerV8Internal::storeMethod(info); } void V8CredentialsContainer::createMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_CredentialsContainer_create"); UseCounter::Count(CurrentExecutionContext(info.GetIsolate()), WebFeature::kCredentialManagerCreate); CredentialsContainerV8Internal::createMethod(info); } void V8CredentialsContainer::preventSilentAccessMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_CredentialsContainer_preventSilentAccess"); UseCounter::Count(CurrentExecutionContext(info.GetIsolate()), WebFeature::kCredentialManagerPreventSilentAccess); CredentialsContainerV8Internal::preventSilentAccessMethod(info); } static void installV8CredentialsContainerTemplate( v8::Isolate* isolate, const DOMWrapperWorld& world, v8::Local<v8::FunctionTemplate> interfaceTemplate) { // Initialize the interface object's template. V8DOMConfiguration::InitializeDOMInterfaceTemplate(isolate, interfaceTemplate, V8CredentialsContainer::wrapperTypeInfo.interface_name, v8::Local<v8::FunctionTemplate>(), V8CredentialsContainer::internalFieldCount); v8::Local<v8::Signature> signature = v8::Signature::New(isolate, interfaceTemplate); ALLOW_UNUSED_LOCAL(signature); v8::Local<v8::ObjectTemplate> instanceTemplate = interfaceTemplate->InstanceTemplate(); ALLOW_UNUSED_LOCAL(instanceTemplate); v8::Local<v8::ObjectTemplate> prototypeTemplate = interfaceTemplate->PrototypeTemplate(); ALLOW_UNUSED_LOCAL(prototypeTemplate); // Register IDL constants, attributes and operations. // Custom signature V8CredentialsContainer::InstallRuntimeEnabledFeaturesOnTemplate( isolate, world, interfaceTemplate); } void V8CredentialsContainer::InstallRuntimeEnabledFeaturesOnTemplate( v8::Isolate* isolate, const DOMWrapperWorld& world, v8::Local<v8::FunctionTemplate> interface_template) { v8::Local<v8::Signature> signature = v8::Signature::New(isolate, interface_template); ALLOW_UNUSED_LOCAL(signature); v8::Local<v8::ObjectTemplate> instance_template = interface_template->InstanceTemplate(); ALLOW_UNUSED_LOCAL(instance_template); v8::Local<v8::ObjectTemplate> prototype_template = interface_template->PrototypeTemplate(); ALLOW_UNUSED_LOCAL(prototype_template); // Register IDL constants, attributes and operations. // Custom signature } v8::Local<v8::FunctionTemplate> V8CredentialsContainer::domTemplate(v8::Isolate* isolate, const DOMWrapperWorld& world) { return V8DOMConfiguration::DomClassTemplate(isolate, world, const_cast<WrapperTypeInfo*>(&wrapperTypeInfo), installV8CredentialsContainerTemplate); } bool V8CredentialsContainer::hasInstance(v8::Local<v8::Value> v8Value, v8::Isolate* isolate) { return V8PerIsolateData::From(isolate)->HasInstance(&wrapperTypeInfo, v8Value); } v8::Local<v8::Object> V8CredentialsContainer::findInstanceInPrototypeChain(v8::Local<v8::Value> v8Value, v8::Isolate* isolate) { return V8PerIsolateData::From(isolate)->FindInstanceInPrototypeChain(&wrapperTypeInfo, v8Value); } CredentialsContainer* V8CredentialsContainer::ToImplWithTypeCheck(v8::Isolate* isolate, v8::Local<v8::Value> value) { return hasInstance(value, isolate) ? ToImpl(v8::Local<v8::Object>::Cast(value)) : nullptr; } CredentialsContainer* NativeValueTraits<CredentialsContainer>::NativeValue(v8::Isolate* isolate, v8::Local<v8::Value> value, ExceptionState& exceptionState) { CredentialsContainer* nativeValue = V8CredentialsContainer::ToImplWithTypeCheck(isolate, value); if (!nativeValue) { exceptionState.ThrowTypeError(ExceptionMessages::FailedToConvertJSValue( "CredentialsContainer")); } return nativeValue; } void V8CredentialsContainer::InstallConditionalFeatures( v8::Local<v8::Context> context, const DOMWrapperWorld& world, v8::Local<v8::Object> instanceObject, v8::Local<v8::Object> prototypeObject, v8::Local<v8::Function> interfaceObject, v8::Local<v8::FunctionTemplate> interfaceTemplate) { CHECK(!interfaceTemplate.IsEmpty()); DCHECK((!prototypeObject.IsEmpty() && !interfaceObject.IsEmpty()) || !instanceObject.IsEmpty()); v8::Isolate* isolate = context->GetIsolate(); v8::Local<v8::Signature> signature = v8::Signature::New(isolate, interfaceTemplate); ExecutionContext* executionContext = ToExecutionContext(context); DCHECK(executionContext); bool isSecureContext = (executionContext && executionContext->IsSecureContext()); if (!prototypeObject.IsEmpty() || !interfaceObject.IsEmpty()) { if (isSecureContext) { const V8DOMConfiguration::MethodConfiguration getMethodConfiguration[] = { {"get", V8CredentialsContainer::getMethodCallback, 0, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kDoNotCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds} }; for (const auto& methodConfig : getMethodConfiguration) V8DOMConfiguration::InstallMethod(isolate, world, v8::Local<v8::Object>(), prototypeObject, interfaceObject, signature, methodConfig); } if (isSecureContext) { const V8DOMConfiguration::MethodConfiguration storeMethodConfiguration[] = { {"store", V8CredentialsContainer::storeMethodCallback, 1, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kDoNotCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds} }; for (const auto& methodConfig : storeMethodConfiguration) V8DOMConfiguration::InstallMethod(isolate, world, v8::Local<v8::Object>(), prototypeObject, interfaceObject, signature, methodConfig); } if (isSecureContext) { const V8DOMConfiguration::MethodConfiguration createMethodConfiguration[] = { {"create", V8CredentialsContainer::createMethodCallback, 0, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kDoNotCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds} }; for (const auto& methodConfig : createMethodConfiguration) V8DOMConfiguration::InstallMethod(isolate, world, v8::Local<v8::Object>(), prototypeObject, interfaceObject, signature, methodConfig); } if (isSecureContext) { const V8DOMConfiguration::MethodConfiguration preventSilentAccessMethodConfiguration[] = { {"preventSilentAccess", V8CredentialsContainer::preventSilentAccessMethodCallback, 0, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kDoNotCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds} }; for (const auto& methodConfig : preventSilentAccessMethodConfiguration) V8DOMConfiguration::InstallMethod(isolate, world, v8::Local<v8::Object>(), prototypeObject, interfaceObject, signature, methodConfig); } } } } // namespace blink
[ "aoeiuv020@gmail.com" ]
aoeiuv020@gmail.com
428ffd8995716236aa271dff4abccad4773f6ff3
e3c1378a36143a73643f8ce32decffcbc748365e
/Bronze/December 2018, Bronze/December 2018, Bronze P3/December 2018, Bronze P3/main.cpp
d0629c33b9bea248f8091acc1a8474205b69fd29
[]
no_license
VittalT/USACO-Solutions
27f8de3726adc424983ebbf444a621cf0e2080ef
5a9dfc28a64d0f45a849ace9f2506e323157aece
refs/heads/main
2023-02-27T00:46:43.096312
2021-02-02T05:53:40
2021-02-02T05:53:40
335,173,178
0
0
null
null
null
null
UTF-8
C++
false
false
1,454
cpp
/* ID: vittal.2 TASK: measurement LANG: C++ */ /* LANG can be C++11 or C++14 for those more recent releases */ #include <iostream> #include <fstream> #include <string> #include <vector> #include <algorithm> using namespace std; bool sortcol (vector<int> v1, vector<int> v2){ return v1[0]<v2[0]; } int main() { ofstream fout ("measurement.out"); ifstream fin ("measurement.in"); int N; fin >> N; vector<int> cowProd{7, 7, 7}; vector<int> bestCows{0, 1, 2}; vector<int> newBestCows(0); int changes = 0; vector< vector <int> > data(N, vector<int> (3)); vector<string> names(N); for(int i = 0; i < N; i++){ fin >> data[i][0] >> names[i] >> data[i][2]; } for(int i = 0; i < N; i++){ if(names[i] == "Bessie"){ data[i][1] = 0; } if(names[i] == "Elsie"){ data[i][1] = 1; } if(names[i] == "Mildred"){ data[i][1] = 2; } } sort(data.begin(), data.end(), sortcol); for(int i = 0; i < N; i++){ cowProd[data[i][1]] += data[i][2]; for(int i = 0; i < 3; i++){ if (cowProd[i] == max(max(cowProd[0], cowProd[1]), cowProd[2])) newBestCows.push_back(i); } if(newBestCows != bestCows) changes++; bestCows = newBestCows; newBestCows.clear(); } fout << changes; return 0; }
[ "Vittal.Thirumalai@warriorlife.net" ]
Vittal.Thirumalai@warriorlife.net
2652d42301761282d26aa6fe51bb142ea7388afc
ee2b7a0a184d714dac804a023e4e2dd1367e0ddf
/blaze/math/adaptors/lowermatrix/Dense.h
27d34e444f492ab50128589f214813fc9989d107
[ "BSD-3-Clause" ]
permissive
fpzh2011/blaze
b51d4c4825bc7cf0f696e852b279efcc92b82484
7bf9ff8dddea687264bd8ce834ec15345f1135f1
refs/heads/master
2020-03-14T20:45:14.626274
2015-10-15T21:39:17
2016-01-17T01:05:27
null
0
0
null
null
null
null
UTF-8
C++
false
false
104,999
h
//================================================================================================= /*! // \file blaze/math/adaptors/lowermatrix/Dense.h // \brief LowerMatrix specialization for dense matrices // // Copyright (C) 2013 Klaus Iglberger - All Rights Reserved // // This file is part of the Blaze library. You can redistribute it and/or modify it under // the terms of the New (Revised) BSD License. Redistribution and use in source and binary // forms, with or without modification, are permitted provided that the following conditions // are met: // // 1. Redistributions of source code must retain the above copyright notice, this list of // conditions and the following disclaimer. // 2. Redistributions in binary form must reproduce the above copyright notice, this list // of conditions and the following disclaimer in the documentation and/or other materials // provided with the distribution. // 3. Neither the names of the Blaze development group nor the names of its contributors // may be used to endorse or promote products derived from this software without specific // prior written permission. // // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY // EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES // OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT // SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, // INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED // TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR // BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN // ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH // DAMAGE. */ //================================================================================================= #ifndef _BLAZE_MATH_ADAPTORS_LOWERMATRIX_DENSE_H_ #define _BLAZE_MATH_ADAPTORS_LOWERMATRIX_DENSE_H_ //************************************************************************************************* // Includes //************************************************************************************************* #include <blaze/math/adaptors/Forward.h> #include <blaze/math/adaptors/lowermatrix/BaseTemplate.h> #include <blaze/math/adaptors/lowermatrix/LowerProxy.h> #include <blaze/math/constraints/DenseMatrix.h> #include <blaze/math/constraints/Expression.h> #include <blaze/math/constraints/Hermitian.h> #include <blaze/math/constraints/Lower.h> #include <blaze/math/constraints/Resizable.h> #include <blaze/math/constraints/Square.h> #include <blaze/math/constraints/StorageOrder.h> #include <blaze/math/constraints/Symmetric.h> #include <blaze/math/constraints/Upper.h> #include <blaze/math/dense/DenseMatrix.h> #include <blaze/math/expressions/DenseMatrix.h> #include <blaze/math/Intrinsics.h> #include <blaze/math/shims/Clear.h> #include <blaze/math/shims/IsDefault.h> #include <blaze/math/shims/Move.h> #include <blaze/math/typetraits/Columns.h> #include <blaze/math/typetraits/IsComputation.h> #include <blaze/math/typetraits/IsLower.h> #include <blaze/math/typetraits/IsResizable.h> #include <blaze/math/typetraits/IsSquare.h> #include <blaze/math/typetraits/Rows.h> #include <blaze/math/views/DenseSubmatrix.h> #include <blaze/math/views/Submatrix.h> #include <blaze/system/Inline.h> #include <blaze/util/Assert.h> #include <blaze/util/constraints/Const.h> #include <blaze/util/constraints/Pointer.h> #include <blaze/util/constraints/Reference.h> #include <blaze/util/constraints/Vectorizable.h> #include <blaze/util/constraints/Volatile.h> #include <blaze/util/DisableIf.h> #include <blaze/util/EnableIf.h> #include <blaze/util/Exception.h> #include <blaze/util/FalseType.h> #include <blaze/util/StaticAssert.h> #include <blaze/util/TrueType.h> #include <blaze/util/Types.h> #include <blaze/util/typetraits/IsNumeric.h> #include <blaze/util/Unused.h> namespace blaze { //================================================================================================= // // CLASS TEMPLATE SPECIALIZATION FOR DENSE MATRICES // //================================================================================================= //************************************************************************************************* /*! \cond BLAZE_INTERNAL */ /*!\brief Specialization of LowerMatrix for dense matrices. // \ingroup lower_matrix // // This specialization of LowerMatrix adapts the class template to the requirements of dense // matrices. */ template< typename MT // Type of the adapted dense matrix , bool SO > // Storage order of the adapted dense matrix class LowerMatrix<MT,SO,true> : public DenseMatrix< LowerMatrix<MT,SO,true>, SO > { private: //**Type definitions**************************************************************************** typedef typename MT::OppositeType OT; //!< Opposite type of the dense matrix. typedef typename MT::TransposeType TT; //!< Transpose type of the dense matrix. typedef typename MT::ElementType ET; //!< Element type of the dense matrix. typedef IntrinsicTrait<ET> IT; //!< Intrinsic trait for the matrix element type. //********************************************************************************************** public: //**Type definitions**************************************************************************** typedef LowerMatrix<MT,SO,true> This; //!< Type of this LowerMatrix instance. typedef This ResultType; //!< Result type for expression template evaluations. typedef LowerMatrix<OT,!SO,true> OppositeType; //!< Result type with opposite storage order for expression template evaluations. typedef UpperMatrix<TT,!SO,true> TransposeType; //!< Transpose type for expression template evaluations. typedef ET ElementType; //!< Type of the matrix elements. typedef typename MT::IntrinsicType IntrinsicType; //!< Intrinsic type of the matrix elements. typedef typename MT::ReturnType ReturnType; //!< Return type for expression template evaluations. typedef const This& CompositeType; //!< Data type for composite expression templates. typedef LowerProxy<MT> Reference; //!< Reference to a non-constant matrix value. typedef typename MT::ConstReference ConstReference; //!< Reference to a constant matrix value. typedef typename MT::Pointer Pointer; //!< Pointer to a non-constant matrix value. typedef typename MT::ConstPointer ConstPointer; //!< Pointer to a constant matrix value. typedef typename MT::ConstIterator ConstIterator; //!< Iterator over constant elements. //********************************************************************************************** //**Rebind struct definition******************************************************************** /*!\brief Rebind mechanism to obtain a LowerMatrix with different data/element type. */ template< typename ET > // Data type of the other matrix struct Rebind { //! The type of the other LowerMatrix. typedef LowerMatrix< typename MT::template Rebind<ET>::Other > Other; }; //********************************************************************************************** //**Iterator class definition******************************************************************* /*!\brief Iterator over the non-constant elements of the dense lower matrix. */ class Iterator { public: //**Type definitions************************************************************************* typedef std::random_access_iterator_tag IteratorCategory; //!< The iterator category. typedef typename MT::ElementType ValueType; //!< Type of the underlying elements. typedef LowerProxy<MT> PointerType; //!< Pointer return type. typedef LowerProxy<MT> ReferenceType; //!< Reference return type. typedef ptrdiff_t DifferenceType; //!< Difference between two iterators. // STL iterator requirements typedef IteratorCategory iterator_category; //!< The iterator category. typedef ValueType value_type; //!< Type of the underlying elements. typedef PointerType pointer; //!< Pointer return type. typedef ReferenceType reference; //!< Reference return type. typedef DifferenceType difference_type; //!< Difference between two iterators. //******************************************************************************************* //**Constructor****************************************************************************** /*!\brief Default constructor of the Iterator class. */ inline Iterator() : matrix_( NULL ) // Reference to the adapted dense matrix , row_ ( 0UL ) // The current row index of the iterator , column_( 0UL ) // The current column index of the iterator {} //******************************************************************************************* //**Constructor****************************************************************************** /*!\brief Constructor for the Iterator class. // // \param matrix The adapted matrix. // \param row Initial row index of the iterator. // \param column Initial column index of the iterator. */ inline Iterator( MT& matrix, size_t row, size_t column ) : matrix_( &matrix ) // Reference to the adapted dense matrix , row_ ( row ) // The current row-index of the iterator , column_( column ) // The current column-index of the iterator {} //******************************************************************************************* //**Addition assignment operator************************************************************* /*!\brief Addition assignment operator. // // \param inc The increment of the iterator. // \return The incremented iterator. */ inline Iterator& operator+=( size_t inc ) { ( SO )?( row_ += inc ):( column_ += inc ); return *this; } //******************************************************************************************* //**Subtraction assignment operator********************************************************** /*!\brief Subtraction assignment operator. // // \param dec The decrement of the iterator. // \return The decremented iterator. */ inline Iterator& operator-=( size_t dec ) { ( SO )?( row_ -= dec ):( column_ -= dec ); return *this; } //******************************************************************************************* //**Prefix increment operator**************************************************************** /*!\brief Pre-increment operator. // // \return Reference to the incremented iterator. */ inline Iterator& operator++() { ( SO )?( ++row_ ):( ++column_ ); return *this; } //******************************************************************************************* //**Postfix increment operator*************************************************************** /*!\brief Post-increment operator. // // \return The previous position of the iterator. */ inline const Iterator operator++( int ) { const Iterator tmp( *this ); ++(*this); return tmp; } //******************************************************************************************* //**Prefix decrement operator**************************************************************** /*!\brief Pre-decrement operator. // // \return Reference to the decremented iterator. */ inline Iterator& operator--() { ( SO )?( --row_ ):( --column_ ); return *this; } //******************************************************************************************* //**Postfix decrement operator*************************************************************** /*!\brief Post-decrement operator. // // \return The previous position of the iterator. */ inline const Iterator operator--( int ) { const Iterator tmp( *this ); --(*this); return tmp; } //******************************************************************************************* //**Element access operator****************************************************************** /*!\brief Direct access to the element at the current iterator position. // // \return The resulting value. */ inline ReferenceType operator*() const { return ReferenceType( *matrix_, row_, column_ ); } //******************************************************************************************* //**Element access operator****************************************************************** /*!\brief Direct access to the element at the current iterator position. // // \return The resulting value. */ inline PointerType operator->() const { return PointerType( *matrix_, row_, column_ ); } //******************************************************************************************* //**Conversion operator********************************************************************** /*!\brief Conversion to an iterator over constant elements. // // \return An iterator over constant elements. */ inline operator ConstIterator() const { if( SO ) return matrix_->begin( column_ ) + row_; else return matrix_->begin( row_ ) + column_; } //******************************************************************************************* //**Equality operator************************************************************************ /*!\brief Equality comparison between two Iterator objects. // // \param lhs The left-hand side iterator. // \param rhs The right-hand side iterator. // \return \a true if the iterators refer to the same element, \a false if not. */ friend inline bool operator==( const Iterator& lhs, const Iterator& rhs ) { return ( SO )?( lhs.row_ == rhs.row_ ):( lhs.column_ == rhs.column_ ); } //******************************************************************************************* //**Equality operator************************************************************************ /*!\brief Equality comparison between a Iterator and a ConstIterator. // // \param lhs The left-hand side iterator. // \param rhs The right-hand side iterator. // \return \a true if the iterators refer to the same element, \a false if not. */ friend inline bool operator==( const Iterator& lhs, const ConstIterator& rhs ) { return ( ConstIterator( lhs ) == rhs ); } //******************************************************************************************* //**Equality operator************************************************************************ /*!\brief Equality comparison between a ConstIterator and a Iterator. // // \param lhs The left-hand side iterator. // \param rhs The right-hand side iterator. // \return \a true if the iterators refer to the same element, \a false if not. */ friend inline bool operator==( const ConstIterator& lhs, const Iterator& rhs ) { return ( lhs == ConstIterator( rhs ) ); } //******************************************************************************************* //**Inequality operator********************************************************************** /*!\brief Inequality comparison between two Iterator objects. // // \param lhs The left-hand side iterator. // \param rhs The right-hand side iterator. // \return \a true if the iterators don't refer to the same element, \a false if they do. */ friend inline bool operator!=( const Iterator& lhs, const Iterator& rhs ) { return ( SO )?( lhs.row_ != rhs.row_ ):( lhs.column_ != rhs.column_ ); } //******************************************************************************************* //**Inequality operator********************************************************************** /*!\brief Inequality comparison between a Iterator and ConstIterator. // // \param lhs The left-hand side iterator. // \param rhs The right-hand side iterator. // \return \a true if the iterators don't refer to the same element, \a false if they do. */ friend inline bool operator!=( const Iterator& lhs, const ConstIterator& rhs ) { return ( ConstIterator( lhs ) != rhs ); } //******************************************************************************************* //**Inequality operator********************************************************************** /*!\brief Inequality comparison between a ConstIterator and Iterator. // // \param lhs The left-hand side iterator. // \param rhs The right-hand side iterator. // \return \a true if the iterators don't refer to the same element, \a false if they do. */ friend inline bool operator!=( const ConstIterator& lhs, const Iterator& rhs ) { return ( lhs != ConstIterator( rhs ) ); } //******************************************************************************************* //**Less-than operator*********************************************************************** /*!\brief Less-than comparison between two Iterator objects. // // \param lhs The left-hand side iterator. // \param rhs The right-hand side iterator. // \return \a true if the left-hand side iterator is smaller, \a false if not. */ friend inline bool operator<( const Iterator& lhs, const Iterator& rhs ) { return ( SO )?( lhs.row_ < rhs.row_ ):( lhs.column_ < rhs.column_ ); } //******************************************************************************************* //**Less-than operator*********************************************************************** /*!\brief Less-than comparison between a Iterator and a ConstIterator. // // \param lhs The left-hand side iterator. // \param rhs The right-hand side iterator. // \return \a true if the left-hand side iterator is smaller, \a false if not. */ friend inline bool operator<( const Iterator& lhs, const ConstIterator& rhs ) { return ( ConstIterator( lhs ) < rhs ); } //******************************************************************************************* //**Less-than operator*********************************************************************** /*!\brief Less-than comparison between a ConstIterator and a Iterator. // // \param lhs The left-hand side iterator. // \param rhs The right-hand side iterator. // \return \a true if the left-hand side iterator is smaller, \a false if not. */ friend inline bool operator<( const ConstIterator& lhs, const Iterator& rhs ) { return ( lhs < ConstIterator( rhs ) ); } //******************************************************************************************* //**Greater-than operator******************************************************************** /*!\brief Greater-than comparison between two Iterator objects. // // \param lhs The left-hand side iterator. // \param rhs The right-hand side iterator. // \return \a true if the left-hand side iterator is greater, \a false if not. */ friend inline bool operator>( const Iterator& lhs, const Iterator& rhs ) { return ( SO )?( lhs.row_ > rhs.row_ ):( lhs.column_ > rhs.column_ ); } //******************************************************************************************* //**Greater-than operator******************************************************************** /*!\brief Greater-than comparison between a Iterator and a ConstIterator. // // \param lhs The left-hand side iterator. // \param rhs The right-hand side iterator. // \return \a true if the left-hand side iterator is greater, \a false if not. */ friend inline bool operator>( const Iterator& lhs, const ConstIterator& rhs ) { return ( ConstIterator( lhs ) > rhs ); } //******************************************************************************************* //**Greater-than operator******************************************************************** /*!\brief Greater-than comparison between a ConstIterator and a Iterator. // // \param lhs The left-hand side iterator. // \param rhs The right-hand side iterator. // \return \a true if the left-hand side iterator is greater, \a false if not. */ friend inline bool operator>( const ConstIterator& lhs, const Iterator& rhs ) { return ( lhs > ConstIterator( rhs ) ); } //******************************************************************************************* //**Less-or-equal-than operator************************************************************** /*!\brief Less-than comparison between two Iterator objects. // // \param lhs The left-hand side iterator. // \param rhs The right-hand side iterator. // \return \a true if the left-hand side iterator is smaller or equal, \a false if not. */ friend inline bool operator<=( const Iterator& lhs, const Iterator& rhs ) { return ( SO )?( lhs.row_ <= rhs.row_ ):( lhs.column_ <= rhs.column_ ); } //******************************************************************************************* //**Less-or-equal-than operator************************************************************** /*!\brief Less-than comparison between a Iterator and a ConstIterator. // // \param lhs The left-hand side iterator. // \param rhs The right-hand side iterator. // \return \a true if the left-hand side iterator is smaller or equal, \a false if not. */ friend inline bool operator<=( const Iterator& lhs, const ConstIterator& rhs ) { return ( ConstIterator( lhs ) <= rhs ); } //******************************************************************************************* //**Less-or-equal-than operator************************************************************** /*!\brief Less-than comparison between a ConstIterator and a Iterator. // // \param lhs The left-hand side iterator. // \param rhs The right-hand side iterator. // \return \a true if the left-hand side iterator is smaller or equal, \a false if not. */ friend inline bool operator<=( const ConstIterator& lhs, const Iterator& rhs ) { return ( lhs <= ConstIterator( rhs ) ); } //******************************************************************************************* //**Greater-or-equal-than operator*********************************************************** /*!\brief Greater-than comparison between two Iterator objects. // // \param lhs The left-hand side iterator. // \param rhs The right-hand side iterator. // \return \a true if the left-hand side iterator is greater or equal, \a false if not. */ friend inline bool operator>=( const Iterator& lhs, const Iterator& rhs ) { return ( SO )?( lhs.row_ >= rhs.row_ ):( lhs.column_ >= rhs.column_ ); } //******************************************************************************************* //**Greater-or-equal-than operator*********************************************************** /*!\brief Greater-than comparison between a Iterator and a ConstIterator. // // \param lhs The left-hand side iterator. // \param rhs The right-hand side iterator. // \return \a true if the left-hand side iterator is greater or equal, \a false if not. */ friend inline bool operator>=( const Iterator& lhs, const ConstIterator& rhs ) { return ( ConstIterator( lhs ) >= rhs ); } //******************************************************************************************* //**Greater-or-equal-than operator*********************************************************** /*!\brief Greater-than comparison between two Iterator objects. // // \param lhs The left-hand side iterator. // \param rhs The right-hand side iterator. // \return \a true if the left-hand side iterator is greater or equal, \a false if not. */ friend inline bool operator>=( const ConstIterator& lhs, const Iterator& rhs ) { return ( lhs >= ConstIterator( rhs ) ); } //******************************************************************************************* //**Subtraction operator********************************************************************* /*!\brief Calculating the number of elements between two iterators. // // \param rhs The right-hand side iterator. // \return The number of elements between the two iterators. */ inline DifferenceType operator-( const Iterator& rhs ) const { return ( SO )?( row_ - rhs.row_ ):( column_ - rhs.column_ ); } //******************************************************************************************* //**Addition operator************************************************************************ /*!\brief Addition between a Iterator and an integral value. // // \param it The iterator to be incremented. // \param inc The number of elements the iterator is incremented. // \return The incremented iterator. */ friend inline const Iterator operator+( const Iterator& it, size_t inc ) { if( SO ) return Iterator( *it.matrix_, it.row_ + inc, it.column_ ); else return Iterator( *it.matrix_, it.row_, it.column_ + inc ); } //******************************************************************************************* //**Addition operator************************************************************************ /*!\brief Addition between an integral value and a Iterator. // // \param inc The number of elements the iterator is incremented. // \param it The iterator to be incremented. // \return The incremented iterator. */ friend inline const Iterator operator+( size_t inc, const Iterator& it ) { if( SO ) return Iterator( *it.matrix_, it.row_ + inc, it.column_ ); else return Iterator( *it.matrix_, it.row_, it.column_ + inc ); } //******************************************************************************************* //**Subtraction operator********************************************************************* /*!\brief Subtraction between a Iterator and an integral value. // // \param it The iterator to be decremented. // \param dec The number of elements the iterator is decremented. // \return The decremented iterator. */ friend inline const Iterator operator-( const Iterator& it, size_t dec ) { if( SO ) return Iterator( *it.matrix_, it.row_ - dec, it.column_ ); else return Iterator( *it.matrix_, it.row_, it.column_ - dec ); } //******************************************************************************************* private: //**Member variables************************************************************************* MT* matrix_; //!< Reference to the adapted dense matrix. size_t row_; //!< The current row-index of the iterator. size_t column_; //!< The current column-index of the iterator. //******************************************************************************************* }; //********************************************************************************************** //**Compilation flags*************************************************************************** //! Compilation switch for the expression template evaluation strategy. enum { vectorizable = MT::vectorizable }; //! Compilation switch for the expression template assignment strategy. enum { smpAssignable = MT::smpAssignable }; //********************************************************************************************** //**Constructors******************************************************************************** /*!\name Constructors */ //@{ explicit inline LowerMatrix(); template< typename A1 > explicit inline LowerMatrix( const A1& a1 ); explicit inline LowerMatrix( size_t n, const ElementType& init ); explicit inline LowerMatrix( ElementType* ptr, size_t n ); explicit inline LowerMatrix( ElementType* ptr, size_t n, size_t nn ); template< typename Deleter > explicit inline LowerMatrix( ElementType* ptr, size_t n, Deleter d ); template< typename Deleter > explicit inline LowerMatrix( ElementType* ptr, size_t n, size_t nn, Deleter d ); inline LowerMatrix( const LowerMatrix& m ); //@} //********************************************************************************************** //**Destructor********************************************************************************** // No explicitly declared destructor. //********************************************************************************************** //**Data access functions*********************************************************************** /*!\name Data access functions */ //@{ inline Reference operator()( size_t i, size_t j ); inline ConstReference operator()( size_t i, size_t j ) const; inline ConstPointer data () const; inline ConstPointer data ( size_t i ) const; inline Iterator begin ( size_t i ); inline ConstIterator begin ( size_t i ) const; inline ConstIterator cbegin( size_t i ) const; inline Iterator end ( size_t i ); inline ConstIterator end ( size_t i ) const; inline ConstIterator cend ( size_t i ) const; //@} //********************************************************************************************** //**Assignment operators************************************************************************ /*!\name Assignment operators */ //@{ inline LowerMatrix& operator=( const ElementType& rhs ); inline LowerMatrix& operator=( const LowerMatrix& rhs ); template< typename MT2, bool SO2 > inline typename DisableIf< IsComputation<MT2>, LowerMatrix& >::Type operator=( const Matrix<MT2,SO2>& rhs ); template< typename MT2, bool SO2 > inline typename EnableIf< IsComputation<MT2>, LowerMatrix& >::Type operator=( const Matrix<MT2,SO2>& rhs ); template< typename MT2, bool SO2 > inline typename DisableIf< IsComputation<MT2>, LowerMatrix& >::Type operator+=( const Matrix<MT2,SO2>& rhs ); template< typename MT2, bool SO2 > inline typename EnableIf< IsComputation<MT2>, LowerMatrix& >::Type operator+=( const Matrix<MT2,SO2>& rhs ); template< typename MT2, bool SO2 > inline typename DisableIf< IsComputation<MT2>, LowerMatrix& >::Type operator-=( const Matrix<MT2,SO2>& rhs ); template< typename MT2, bool SO2 > inline typename EnableIf< IsComputation<MT2>, LowerMatrix& >::Type operator-=( const Matrix<MT2,SO2>& rhs ); template< typename MT2, bool SO2 > inline LowerMatrix& operator*=( const Matrix<MT2,SO2>& rhs ); template< typename Other > inline typename EnableIf< IsNumeric<Other>, LowerMatrix >::Type& operator*=( Other rhs ); template< typename Other > inline typename EnableIf< IsNumeric<Other>, LowerMatrix >::Type& operator/=( Other rhs ); //@} //********************************************************************************************** //**Utility functions*************************************************************************** /*!\name Utility functions */ //@{ inline size_t rows() const; inline size_t columns() const; inline size_t spacing() const; inline size_t capacity() const; inline size_t capacity( size_t i ) const; inline size_t nonZeros() const; inline size_t nonZeros( size_t i ) const; inline void reset(); inline void reset( size_t i ); inline void clear(); void resize ( size_t n, bool preserve=true ); inline void extend ( size_t n, bool preserve=true ); inline void reserve( size_t elements ); template< typename Other > inline LowerMatrix& scale( const Other& scalar ); inline void swap( LowerMatrix& m ) /* throw() */; static inline size_t maxNonZeros(); static inline size_t maxNonZeros( size_t n ); //@} //********************************************************************************************** //**Debugging functions************************************************************************* /*!\name Debugging functions */ //@{ inline bool isIntact() const; //@} //********************************************************************************************** //**Expression template evaluation functions**************************************************** /*!\name Expression template evaluation functions */ //@{ template< typename Other > inline bool canAlias ( const Other* alias ) const; template< typename Other > inline bool isAliased( const Other* alias ) const; inline bool isAligned () const; inline bool canSMPAssign() const; BLAZE_ALWAYS_INLINE IntrinsicType load ( size_t i, size_t j ) const; BLAZE_ALWAYS_INLINE IntrinsicType loada( size_t i, size_t j ) const; BLAZE_ALWAYS_INLINE IntrinsicType loadu( size_t i, size_t j ) const; //@} //********************************************************************************************** private: //**Construction functions********************************************************************** /*!\name Construction functions */ //@{ inline const MT construct( size_t n , TrueType ); inline const MT construct( const ElementType& value, FalseType ); template< typename MT2, bool SO2, typename T > inline const MT construct( const Matrix<MT2,SO2>& m, T ); //@} //********************************************************************************************** //**Member variables**************************************************************************** /*!\name Member variables */ //@{ MT matrix_; //!< The adapted dense matrix. //@} //********************************************************************************************** //**Friend declarations************************************************************************* template< typename MT2, bool SO2, bool DF2 > friend bool isDefault( const LowerMatrix<MT2,SO2,DF2>& m ); template< typename MT2, bool SO2, bool DF2 > friend MT2& derestrict( LowerMatrix<MT2,SO2,DF2>& m ); //********************************************************************************************** //**Compile time checks************************************************************************* BLAZE_CONSTRAINT_MUST_BE_DENSE_MATRIX_TYPE ( MT ); BLAZE_CONSTRAINT_MUST_NOT_BE_REFERENCE_TYPE ( MT ); BLAZE_CONSTRAINT_MUST_NOT_BE_POINTER_TYPE ( MT ); BLAZE_CONSTRAINT_MUST_NOT_BE_CONST ( MT ); BLAZE_CONSTRAINT_MUST_NOT_BE_VOLATILE ( MT ); BLAZE_CONSTRAINT_MUST_NOT_BE_EXPRESSION_TYPE ( MT ); BLAZE_CONSTRAINT_MUST_NOT_BE_SYMMETRIC_MATRIX_TYPE( MT ); BLAZE_CONSTRAINT_MUST_NOT_BE_HERMITIAN_MATRIX_TYPE( MT ); BLAZE_CONSTRAINT_MUST_NOT_BE_LOWER_MATRIX_TYPE ( MT ); BLAZE_CONSTRAINT_MUST_NOT_BE_UPPER_MATRIX_TYPE ( MT ); BLAZE_CONSTRAINT_MUST_BE_MATRIX_WITH_STORAGE_ORDER( OT, !SO ); BLAZE_CONSTRAINT_MUST_BE_MATRIX_WITH_STORAGE_ORDER( TT, !SO ); BLAZE_STATIC_ASSERT( Rows<MT>::value == Columns<MT>::value ); //********************************************************************************************** }; /*! \endcond */ //************************************************************************************************* //================================================================================================= // // CONSTRUCTORS // //================================================================================================= //************************************************************************************************* /*! \cond BLAZE_INTERNAL */ /*!\brief The default constructor for LowerMatrix. */ template< typename MT // Type of the adapted dense matrix , bool SO > // Storage order of the adapted dense matrix inline LowerMatrix<MT,SO,true>::LowerMatrix() : matrix_() // The adapted dense matrix { BLAZE_INTERNAL_ASSERT( isSquare( matrix_ ), "Non-square lower matrix detected" ); BLAZE_INTERNAL_ASSERT( isIntact(), "Broken invariant detected" ); } /*! \endcond */ //************************************************************************************************* //************************************************************************************************* /*! \cond BLAZE_INTERNAL */ /*!\brief Single argument constructor for a lower matrix. // // \param a1 The single constructor argument. // \exception std::invalid_argument Invalid setup of lower matrix. // // This constructor constructs the lower matrix based on the given argument and the type of // the underlying matrix \a MT: // - in case the given argument is a matrix, the lower matrix is initialized as a copy of // the given matrix. // - in case the given argument is not a matrix and the underlying matrix of type \a MT is // resizable, the given argument \a a1 specifies the number of rows and columns of the // lower matrix. // - in case the given argument is not a matrix and the underlying matrix of type \a MT is // a matrix with fixed size, the given argument \a a1 specifies the initial value of the // lower and diagonal elements. */ template< typename MT // Type of the adapted dense matrix , bool SO > // Storage order of the adapted dense matrix template< typename A1 > // Type of the constructor argument inline LowerMatrix<MT,SO,true>::LowerMatrix( const A1& a1 ) : matrix_( construct( a1, typename IsResizable<MT>::Type() ) ) // The adapted dense matrix { BLAZE_INTERNAL_ASSERT( isSquare( matrix_ ), "Non-square lower matrix detected" ); BLAZE_INTERNAL_ASSERT( isIntact(), "Broken invariant detected" ); } /*! \endcond */ //************************************************************************************************* //************************************************************************************************* /*! \cond BLAZE_INTERNAL */ /*!\brief Constructor for a \f$ n \times n \f$ matrix with initialized lower and diagonal elements. // // \param n The number of rows and columns of the matrix. // \param init The initial value of the lower and diagonal matrix elements. */ template< typename MT // Type of the adapted dense matrix , bool SO > // Storage order of the adapted dense matrix inline LowerMatrix<MT,SO,true>::LowerMatrix( size_t n, const ElementType& init ) : matrix_( n, n, ElementType() ) // The adapted dense matrix { BLAZE_CONSTRAINT_MUST_BE_RESIZABLE( MT ); if( SO ) { for( size_t j=0UL; j<columns(); ++j ) for( size_t i=j; i<rows(); ++i ) matrix_(i,j) = init; } else { for( size_t i=0UL; i<rows(); ++i ) for( size_t j=0UL; j<=i; ++j ) matrix_(i,j) = init; } BLAZE_INTERNAL_ASSERT( isSquare( matrix_ ), "Non-square lower matrix detected" ); BLAZE_INTERNAL_ASSERT( isIntact(), "Broken invariant detected" ); } /*! \endcond */ //************************************************************************************************* //************************************************************************************************* /*! \cond BLAZE_INTERNAL */ /*!\brief Constructor for a lower custom matrix of size \f$ n \times n \f$. // // \param ptr The array of elements to be used by the matrix. // \param n The number of rows and columns of the array of elements. // \exception std::invalid_argument Invalid setup of lower custom matrix. // // This constructor creates an unpadded lower custom matrix of size \f$ n \times n \f$. The // construction fails if ... // // - ... the passed pointer is NULL; // - ... the alignment flag \a AF is set to \a aligned, but the passed pointer is not properly // aligned according to the available instruction set (SSE, AVX, ...); // - ... the values in the given array do not represent a lower triangular matrix. // // In all failure cases a \a std::invalid_argument exception is thrown. // // \note This constructor is \b NOT available for padded lower custom matrices! // \note The matrix does \b NOT take responsibility for the given array of elements! */ template< typename MT // Type of the adapted dense matrix , bool SO > // Storage order of the adapted dense matrix inline LowerMatrix<MT,SO,true>::LowerMatrix( ElementType* ptr, size_t n ) : matrix_( ptr, n, n ) // The adapted dense matrix { if( !isLower( matrix_ ) ) { BLAZE_THROW_INVALID_ARGUMENT( "Invalid setup of lower matrix" ); } BLAZE_INTERNAL_ASSERT( isIntact(), "Broken invariant detected" ); } /*! \endcond */ //************************************************************************************************* //************************************************************************************************* /*! \cond BLAZE_INTERNAL */ /*!\brief Constructor for a lower custom matrix of size \f$ n \times n \f$. // // \param ptr The array of elements to be used by the matrix. // \param n The number of rows and columns of the array of elements. // \param nn The total number of elements between two rows/columns. // \exception std::invalid_argument Invalid setup of lower custom matrix. // // This constructor creates a lower custom matrix of size \f$ n \times n \f$. The construction // fails if ... // // - ... the passed pointer is NULL; // - ... the alignment flag \a AF is set to \a aligned, but the passed pointer is not properly // aligned according to the available instruction set (SSE, AVX, ...); // - ... the specified spacing \a nn is insufficient for the given data type \a Type and the // available instruction set; // - ... the values in the given array do not represent a lower triangular matrix. // // In all failure cases a \a std::invalid_argument exception is thrown. // // \note The matrix does \b NOT take responsibility for the given array of elements! */ template< typename MT // Type of the adapted dense matrix , bool SO > // Storage order of the adapted dense matrix inline LowerMatrix<MT,SO,true>::LowerMatrix( ElementType* ptr, size_t n, size_t nn ) : matrix_( ptr, n, n, nn ) // The adapted dense matrix { if( !isLower( matrix_ ) ) { BLAZE_THROW_INVALID_ARGUMENT( "Invalid setup of lower matrix" ); } BLAZE_INTERNAL_ASSERT( isIntact(), "Broken invariant detected" ); } /*! \endcond */ //************************************************************************************************* //************************************************************************************************* /*! \cond BLAZE_INTERNAL */ /*!\brief Constructor for a lower custom matrix of size \f$ n \times n \f$. // // \param ptr The array of elements to be used by the matrix. // \param n The number of rows and columns of the array of elements. // \param d The deleter to destroy the array of elements. // \exception std::invalid_argument Invalid setup of lower custom matrix. // // This constructor creates an unpadded lower custom matrix of size \f$ n \times n \f$. The // construction fails if ... // // - ... the passed pointer is NULL; // - ... the alignment flag \a AF is set to \a aligned, but the passed pointer is not properly // aligned according to the available instruction set (SSE, AVX, ...); // - ... the values in the given array do not represent a lower triangular matrix. // // In all failure cases a \a std::invalid_argument exception is thrown. // // \note This constructor is \b NOT available for padded lower custom matrices! */ template< typename MT // Type of the adapted dense matrix , bool SO > // Storage order of the adapted dense matrix template< typename Deleter > // Type of the custom deleter inline LowerMatrix<MT,SO,true>::LowerMatrix( ElementType* ptr, size_t n, Deleter d ) : matrix_( ptr, n, n, d ) // The adapted dense matrix { if( !isLower( matrix_ ) ) { BLAZE_THROW_INVALID_ARGUMENT( "Invalid setup of lower matrix" ); } BLAZE_INTERNAL_ASSERT( isIntact(), "Broken invariant detected" ); } /*! \endcond */ //************************************************************************************************* //************************************************************************************************* /*! \cond BLAZE_INTERNAL */ /*!\brief Constructor for a lower custom matrix of size \f$ n \times n \f$. // // \param ptr The array of elements to be used by the matrix. // \param n The number of rows and columns of the array of elements. // \param nn The total number of elements between two rows/columns. // \param d The deleter to destroy the array of elements. // \exception std::invalid_argument Invalid setup of lower custom matrix. // // This constructor creates a lower custom matrix of size \f$ n \times n \f$. The construction // fails if ... // // - ... the passed pointer is NULL; // - ... the alignment flag \a AF is set to \a aligned, but the passed pointer is not properly // aligned according to the available instruction set (SSE, AVX, ...); // - ... the specified spacing \a nn is insufficient for the given data type \a Type and the // available instruction set; // - ... the values in the given array do not represent a lower triangular matrix. // // In all failure cases a \a std::invalid_argument exception is thrown. */ template< typename MT // Type of the adapted dense matrix , bool SO > // Storage order of the adapted dense matrix template< typename Deleter > // Type of the custom deleter inline LowerMatrix<MT,SO,true>::LowerMatrix( ElementType* ptr, size_t n, size_t nn, Deleter d ) : matrix_( ptr, n, n, nn, d ) // The adapted dense matrix { if( !isLower( matrix_ ) ) { BLAZE_THROW_INVALID_ARGUMENT( "Invalid setup of lower matrix" ); } BLAZE_INTERNAL_ASSERT( isIntact(), "Broken invariant detected" ); } /*! \endcond */ //************************************************************************************************* //************************************************************************************************* /*! \cond BLAZE_INTERNAL */ /*!\brief The copy constructor for LowerMatrix. // // \param m The lower matrix to be copied. */ template< typename MT // Type of the adapted dense matrix , bool SO > // Storage order of the adapted dense matrix inline LowerMatrix<MT,SO,true>::LowerMatrix( const LowerMatrix& m ) : matrix_( m.matrix_ ) // The adapted dense matrix { BLAZE_INTERNAL_ASSERT( isSquare( matrix_ ), "Non-square lower matrix detected" ); BLAZE_INTERNAL_ASSERT( isIntact(), "Broken invariant detected" ); } /*! \endcond */ //************************************************************************************************* //================================================================================================= // // DATA ACCESS FUNCTIONS // //================================================================================================= //************************************************************************************************* /*! \cond BLAZE_INTERNAL */ /*!\brief 2D-access to the matrix elements. // // \param i Access index for the row. The index has to be in the range \f$[0..N-1]\f$. // \param j Access index for the column. The index has to be in the range \f$[0..N-1]\f$. // \return Reference to the accessed value. // \exception std::invalid_argument Invalid assignment to upper matrix element. // // The function call operator provides access to the elements at position (i,j). The attempt to // assign to an element in the upper part of the matrix (i.e. above the diagonal) will result in // a \a std::invalid_argument exception. */ template< typename MT // Type of the adapted dense matrix , bool SO > // Storage order of the adapted dense matrix inline typename LowerMatrix<MT,SO,true>::Reference LowerMatrix<MT,SO,true>::operator()( size_t i, size_t j ) { BLAZE_USER_ASSERT( i<rows() , "Invalid row access index" ); BLAZE_USER_ASSERT( j<columns(), "Invalid column access index" ); return Reference( matrix_, i, j ); } /*! \endcond */ //************************************************************************************************* //************************************************************************************************* /*! \cond BLAZE_INTERNAL */ /*!\brief 2D-access to the matrix elements. // // \param i Access index for the row. The index has to be in the range \f$[0..N-1]\f$. // \param j Access index for the column. The index has to be in the range \f$[0..N-1]\f$. // \return Reference to the accessed value. // \exception std::invalid_argument Invalid assignment to upper matrix element. // // The function call operator provides access to the elements at position (i,j). The attempt to // assign to an element in the upper part of the matrix (i.e. above the diagonal) will result in // a \a std::invalid_argument exception. */ template< typename MT // Type of the adapted dense matrix , bool SO > // Storage order of the adapted dense matrix inline typename LowerMatrix<MT,SO,true>::ConstReference LowerMatrix<MT,SO,true>::operator()( size_t i, size_t j ) const { BLAZE_USER_ASSERT( i<rows() , "Invalid row access index" ); BLAZE_USER_ASSERT( j<columns(), "Invalid column access index" ); return matrix_(i,j); } /*! \endcond */ //************************************************************************************************* //************************************************************************************************* /*! \cond BLAZE_INTERNAL */ /*!\brief Low-level data access to the matrix elements. // // \return Pointer to the internal element storage. // // This function returns a pointer to the internal storage of the lower matrix. Note that you // can NOT assume that all matrix elements lie adjacent to each other! The lower matrix may // use techniques such as padding to improve the alignment of the data. Whereas the number of // elements within a row/column are given by the \c rows() and \c columns() member functions, // respectively, the total number of elements including padding is given by the \c spacing() // member function. */ template< typename MT // Type of the adapted dense matrix , bool SO > // Storage order of the adapted dense matrix inline typename LowerMatrix<MT,SO,true>::ConstPointer LowerMatrix<MT,SO,true>::data() const { return matrix_.data(); } /*! \endcond */ //************************************************************************************************* //************************************************************************************************* /*! \cond BLAZE_INTERNAL */ /*!\brief Low-level data access to the matrix elements of row/column \a i. // // \param i The row/column index. // \return Pointer to the internal element storage. // // This function returns a pointer to the internal storage for the elements in row/column \a i. */ template< typename MT // Type of the adapted dense matrix , bool SO > // Storage order of the adapted dense matrix inline typename LowerMatrix<MT,SO,true>::ConstPointer LowerMatrix<MT,SO,true>::data( size_t i ) const { return matrix_.data(i); } /*! \endcond */ //************************************************************************************************* //************************************************************************************************* /*! \cond BLAZE_INTERNAL */ /*!\brief Returns an iterator to the first element of row/column \a i. // // \param i The row/column index. // \return Iterator to the first element of row/column \a i. // // This function returns a row/column iterator to the first element of row/column \a i. In case // the lower matrix adapts a \a rowMajor dense matrix the function returns an iterator to the // first element of row \a i, in case it adapts a \a columnMajor dense matrix the function // returns an iterator to the first element of column \a i. */ template< typename MT // Type of the adapted dense matrix , bool SO > // Storage order of the adapted dense matrix inline typename LowerMatrix<MT,SO,true>::Iterator LowerMatrix<MT,SO,true>::begin( size_t i ) { if( SO ) return Iterator( matrix_, 0UL, i ); else return Iterator( matrix_, i, 0UL ); } /*! \endcond */ //************************************************************************************************* //************************************************************************************************* /*! \cond BLAZE_INTERNAL */ /*!\brief Returns an iterator to the first element of row/column \a i. // // \param i The row/column index. // \return Iterator to the first element of row/column \a i. // // This function returns a row/column iterator to the first element of row/column \a i. In case // the lower matrix adapts a \a rowMajor dense matrix the function returns an iterator to the // first element of row \a i, in case it adapts a \a columnMajor dense matrix the function // returns an iterator to the first element of column \a i. */ template< typename MT // Type of the adapted dense matrix , bool SO > // Storage order of the adapted dense matrix inline typename LowerMatrix<MT,SO,true>::ConstIterator LowerMatrix<MT,SO,true>::begin( size_t i ) const { return matrix_.begin(i); } /*! \endcond */ //************************************************************************************************* //************************************************************************************************* /*! \cond BLAZE_INTERNAL */ /*!\brief Returns an iterator to the first element of row/column \a i. // // \param i The row/column index. // \return Iterator to the first element of row/column \a i. // // This function returns a row/column iterator to the first element of row/column \a i. In case // the lower matrix adapts a \a rowMajor dense matrix the function returns an iterator to the // first element of row \a i, in case it adapts a \a columnMajor dense matrix the function // returns an iterator to the first element of column \a i. */ template< typename MT // Type of the adapted dense matrix , bool SO > // Storage order of the adapted dense matrix inline typename LowerMatrix<MT,SO,true>::ConstIterator LowerMatrix<MT,SO,true>::cbegin( size_t i ) const { return matrix_.cbegin(i); } /*! \endcond */ //************************************************************************************************* //************************************************************************************************* /*! \cond BLAZE_INTERNAL */ /*!\brief Returns an iterator just past the last element of row/column \a i. // // \param i The row/column index. // \return Iterator just past the last element of row/column \a i. // // This function returns an row/column iterator just past the last element of row/column \a i. // In case the lower matrix adapts a \a rowMajor dense matrix the function returns an iterator // just past the last element of row \a i, in case it adapts a \a columnMajor dense matrix the // function returns an iterator just past the last element of column \a i. */ template< typename MT // Type of the adapted dense matrix , bool SO > // Storage order of the adapted dense matrix inline typename LowerMatrix<MT,SO,true>::Iterator LowerMatrix<MT,SO,true>::end( size_t i ) { if( SO ) return Iterator( matrix_, rows(), i ); else return Iterator( matrix_, i, columns() ); } /*! \endcond */ //************************************************************************************************* //************************************************************************************************* /*! \cond BLAZE_INTERNAL */ /*!\brief Returns an iterator just past the last element of row/column \a i. // // \param i The row/column index. // \return Iterator just past the last element of row/column \a i. // // This function returns an row/column iterator just past the last element of row/column \a i. // In case the lower matrix adapts a \a rowMajor dense matrix the function returns an iterator // just past the last element of row \a i, in case it adapts a \a columnMajor dense matrix the // function returns an iterator just past the last element of column \a i. */ template< typename MT // Type of the adapted dense matrix , bool SO > // Storage order of the adapted dense matrix inline typename LowerMatrix<MT,SO,true>::ConstIterator LowerMatrix<MT,SO,true>::end( size_t i ) const { return matrix_.end(i); } /*! \endcond */ //************************************************************************************************* //************************************************************************************************* /*! \cond BLAZE_INTERNAL */ /*!\brief Returns an iterator just past the last element of row/column \a i. // // \param i The row/column index. // \return Iterator just past the last element of row/column \a i. // // This function returns an row/column iterator just past the last element of row/column \a i. // In case the lower matrix adapts a \a rowMajor dense matrix the function returns an iterator // just past the last element of row \a i, in case it adapts a \a columnMajor dense matrix the // function returns an iterator just past the last element of column \a i. */ template< typename MT // Type of the adapted dense matrix , bool SO > // Storage order of the adapted dense matrix inline typename LowerMatrix<MT,SO,true>::ConstIterator LowerMatrix<MT,SO,true>::cend( size_t i ) const { return matrix_.cend(i); } /*! \endcond */ //************************************************************************************************* //================================================================================================= // // ASSIGNMENT OPERATORS // //================================================================================================= //************************************************************************************************* /*! \cond BLAZE_INTERNAL */ /*!\brief Homogenous assignment to all lower and diagonal matrix elements. // // \param rhs Scalar value to be assigned to the lower and diagonal matrix elements. // \return Reference to the assigned matrix. */ template< typename MT // Type of the adapted dense matrix , bool SO > // Storage order of the adapted dense matrix inline LowerMatrix<MT,SO,true>& LowerMatrix<MT,SO,true>::operator=( const ElementType& rhs ) { if( SO ) { for( size_t j=0UL; j<columns(); ++j ) for( size_t i=j; i<rows(); ++i ) matrix_(i,j) = rhs; } else { for( size_t i=0UL; i<rows(); ++i ) for( size_t j=0UL; j<=i; ++j ) matrix_(i,j) = rhs; } return *this; } /*! \endcond */ //************************************************************************************************* //************************************************************************************************* /*! \cond BLAZE_INTERNAL */ /*!\brief Copy assignment operator for LowerMatrix. // // \param rhs Matrix to be copied. // \return Reference to the assigned matrix. // // If possible and necessary, the matrix is resized according to the given \f$ N \times N \f$ // matrix and initialized as a copy of this matrix. */ template< typename MT // Type of the adapted dense matrix , bool SO > // Storage order of the adapted dense matrix inline LowerMatrix<MT,SO,true>& LowerMatrix<MT,SO,true>::operator=( const LowerMatrix& rhs ) { matrix_ = rhs.matrix_; BLAZE_INTERNAL_ASSERT( isSquare( matrix_ ), "Non-square lower matrix detected" ); BLAZE_INTERNAL_ASSERT( isIntact(), "Broken invariant detected" ); return *this; } /*! \endcond */ //************************************************************************************************* //************************************************************************************************* /*! \cond BLAZE_INTERNAL */ /*!\brief Assignment operator for general matrices. // // \param rhs The general matrix to be copied. // \return Reference to the assigned matrix. // \exception std::invalid_argument Invalid assignment to lower matrix. // // If possible and necessary, the matrix is resized according to the given \f$ N \times N \f$ // matrix and initialized as a copy of this matrix. If the matrix cannot be resized accordingly, // a \a std::invalid_argument exception is thrown. Also note that the given matrix must be a // lower matrix. Otherwise, a \a std::invalid_argument exception is thrown. */ template< typename MT // Type of the adapted dense matrix , bool SO > // Storage order of the adapted dense matrix template< typename MT2 // Type of the right-hand side matrix , bool SO2 > // Storage order of the right-hand side matrix inline typename DisableIf< IsComputation<MT2>, LowerMatrix<MT,SO,true>& >::Type LowerMatrix<MT,SO,true>::operator=( const Matrix<MT2,SO2>& rhs ) { if( !IsLower<MT2>::value && !isLower( ~rhs ) ) { BLAZE_THROW_INVALID_ARGUMENT( "Invalid assignment to lower matrix" ); } matrix_ = ~rhs; BLAZE_INTERNAL_ASSERT( isSquare( matrix_ ), "Non-square lower matrix detected" ); BLAZE_INTERNAL_ASSERT( isIntact(), "Broken invariant detected" ); return *this; } /*! \endcond */ //************************************************************************************************* //************************************************************************************************* /*! \cond BLAZE_INTERNAL */ /*!\brief Assignment operator for matrix computations. // // \param rhs The matrix computation to be copied. // \return Reference to the assigned matrix. // \exception std::invalid_argument Invalid assignment to lower matrix. // // If possible and necessary, the matrix is resized according to the given \f$ N \times N \f$ // matrix and initialized as a copy of this matrix. If the matrix cannot be resized accordingly, // a \a std::invalid_argument exception is thrown. Also note that the given matrix must be a // lower matrix. Otherwise, a \a std::invalid_argument exception is thrown. */ template< typename MT // Type of the adapted dense matrix , bool SO > // Storage order of the adapted dense matrix template< typename MT2 // Type of the right-hand side matrix , bool SO2 > // Storage order of the right-hand side matrix inline typename EnableIf< IsComputation<MT2>, LowerMatrix<MT,SO,true>& >::Type LowerMatrix<MT,SO,true>::operator=( const Matrix<MT2,SO2>& rhs ) { if( !IsSquare<MT2>::value && !isSquare( ~rhs ) ) { BLAZE_THROW_INVALID_ARGUMENT( "Invalid assignment to lower matrix" ); } if( IsLower<MT2>::value ) { matrix_ = ~rhs; } else { MT tmp( ~rhs ); if( !isLower( tmp ) ) { BLAZE_THROW_INVALID_ARGUMENT( "Invalid assignment to lower matrix" ); } move( matrix_, tmp ); } BLAZE_INTERNAL_ASSERT( isSquare( matrix_ ), "Non-square lower matrix detected" ); BLAZE_INTERNAL_ASSERT( isIntact(), "Broken invariant detected" ); return *this; } /*! \endcond */ //************************************************************************************************* //************************************************************************************************* /*! \cond BLAZE_INTERNAL */ /*!\brief Addition assignment operator for the addition of a general matrix (\f$ A+=B \f$). // // \param rhs The right-hand side general matrix to be added. // \return Reference to the matrix. // \exception std::invalid_argument Invalid assignment to lower matrix. // // In case the current sizes of the two matrices don't match, a \a std::invalid_argument // exception is thrown. Also note that the result of the addition operation must be a lower // matrix, i.e. the given matrix must be a lower matrix. In case the result is not a lower // matrix, a \a std::invalid_argument exception is thrown. */ template< typename MT // Type of the adapted dense matrix , bool SO > // Storage order of the adapted dense matrix template< typename MT2 // Type of the right-hand side matrix , bool SO2 > // Storage order of the right-hand side matrix inline typename DisableIf< IsComputation<MT2>, LowerMatrix<MT,SO,true>& >::Type LowerMatrix<MT,SO,true>::operator+=( const Matrix<MT2,SO2>& rhs ) { if( !IsLower<MT2>::value && !isLower( ~rhs ) ) { BLAZE_THROW_INVALID_ARGUMENT( "Invalid assignment to lower matrix" ); } matrix_ += ~rhs; BLAZE_INTERNAL_ASSERT( isSquare( matrix_ ), "Non-square lower matrix detected" ); BLAZE_INTERNAL_ASSERT( isIntact(), "Broken invariant detected" ); return *this; } /*! \endcond */ //************************************************************************************************* //************************************************************************************************* /*! \cond BLAZE_INTERNAL */ /*!\brief Addition assignment operator for the addition of a matrix computation (\f$ A+=B \f$). // // \param rhs The right-hand side matrix computation to be added. // \return Reference to the matrix. // \exception std::invalid_argument Invalid assignment to lower matrix. // // In case the current sizes of the two matrices don't match, a \a std::invalid_argument // exception is thrown. Also note that the result of the addition operation must be a lower // matrix, i.e. the given matrix must be a lower matrix. In case the result is not a lower // matrix, a \a std::invalid_argument exception is thrown. */ template< typename MT // Type of the adapted dense matrix , bool SO > // Storage order of the adapted dense matrix template< typename MT2 // Type of the right-hand side matrix , bool SO2 > // Storage order of the right-hand side matrix inline typename EnableIf< IsComputation<MT2>, LowerMatrix<MT,SO,true>& >::Type LowerMatrix<MT,SO,true>::operator+=( const Matrix<MT2,SO2>& rhs ) { if( !IsSquare<MT2>::value && !isSquare( ~rhs ) ) { BLAZE_THROW_INVALID_ARGUMENT( "Invalid assignment to lower matrix" ); } if( IsLower<MT2>::value ) { matrix_ += ~rhs; } else { typename MT2::ResultType tmp( ~rhs ); if( !isLower( tmp ) ) { BLAZE_THROW_INVALID_ARGUMENT( "Invalid assignment to lower matrix" ); } matrix_ += tmp; } BLAZE_INTERNAL_ASSERT( isSquare( matrix_ ), "Non-square lower matrix detected" ); BLAZE_INTERNAL_ASSERT( isIntact(), "Broken invariant detected" ); return *this; } /*! \endcond */ //************************************************************************************************* //************************************************************************************************* /*! \cond BLAZE_INTERNAL */ /*!\brief Subtraction assignment operator for the subtraction of a general matrix (\f$ A-=B \f$). // // \param rhs The right-hand side general matrix to be subtracted. // \return Reference to the matrix. // \exception std::invalid_argument Invalid assignment to lower matrix. // // In case the current sizes of the two matrices don't match, a \a std::invalid_argument // exception is thrown. Also note that the result of the subtraction operation must be a // lower matrix, i.e. the given matrix must be a lower matrix. In case the result is not // a lower matrix, a \a std::invalid_argument exception is thrown. */ template< typename MT // Type of the adapted dense matrix , bool SO > // Storage order of the adapted dense matrix template< typename MT2 // Type of the right-hand side matrix , bool SO2 > // Storage order of the right-hand side matrix inline typename DisableIf< IsComputation<MT2>, LowerMatrix<MT,SO,true>& >::Type LowerMatrix<MT,SO,true>::operator-=( const Matrix<MT2,SO2>& rhs ) { if( !IsLower<MT2>::value && !isLower( ~rhs ) ) { BLAZE_THROW_INVALID_ARGUMENT( "Invalid assignment to lower matrix" ); } matrix_ -= ~rhs; BLAZE_INTERNAL_ASSERT( isSquare( matrix_ ), "Non-square lower matrix detected" ); BLAZE_INTERNAL_ASSERT( isIntact(), "Broken invariant detected" ); return *this; } /*! \endcond */ //************************************************************************************************* //************************************************************************************************* /*! \cond BLAZE_INTERNAL */ /*!\brief Subtraction assignment operator for the subtraction of a matrix computation (\f$ A-=B \f$). // // \param rhs The right-hand side matrix computation to be subtracted. // \return Reference to the matrix. // \exception std::invalid_argument Invalid assignment to lower matrix. // // In case the current sizes of the two matrices don't match, a \a std::invalid_argument // exception is thrown. Also note that the result of the subtraction operation must be a // lower matrix, i.e. the given matrix must be a lower matrix. In case the result is not // a lower matrix, a \a std::invalid_argument exception is thrown. */ template< typename MT // Type of the adapted dense matrix , bool SO > // Storage order of the adapted dense matrix template< typename MT2 // Type of the right-hand side matrix , bool SO2 > // Storage order of the right-hand side matrix inline typename EnableIf< IsComputation<MT2>, LowerMatrix<MT,SO,true>& >::Type LowerMatrix<MT,SO,true>::operator-=( const Matrix<MT2,SO2>& rhs ) { if( !IsSquare<MT2>::value && !isSquare( ~rhs ) ) { BLAZE_THROW_INVALID_ARGUMENT( "Invalid assignment to lower matrix" ); } if( IsLower<MT2>::value ) { matrix_ -= ~rhs; } else { typename MT2::ResultType tmp( ~rhs ); if( !isLower( tmp ) ) { BLAZE_THROW_INVALID_ARGUMENT( "Invalid assignment to lower matrix" ); } matrix_ -= tmp; } BLAZE_INTERNAL_ASSERT( isSquare( matrix_ ), "Non-square lower matrix detected" ); BLAZE_INTERNAL_ASSERT( isIntact(), "Broken invariant detected" ); return *this; } /*! \endcond */ //************************************************************************************************* //************************************************************************************************* /*! \cond BLAZE_INTERNAL */ /*!\brief Multiplication assignment operator for the multiplication of a matrix (\f$ A*=B \f$). // // \param rhs The right-hand side matrix for the multiplication. // \return Reference to the matrix. // \exception std::invalid_argument Matrix sizes do not match. // // In case the current sizes of the two matrices don't match, a \a std::invalid_argument exception // is thrown. Also note that the result of the multiplication operation must be a lower matrix. // In case it is not, a \a std::invalid_argument exception is thrown. */ template< typename MT // Type of the adapted dense matrix , bool SO > // Storage order of the adapted dense matrix template< typename MT2 // Type of the right-hand side matrix , bool SO2 > // Storage order of the right-hand side matrix inline LowerMatrix<MT,SO,true>& LowerMatrix<MT,SO,true>::operator*=( const Matrix<MT2,SO2>& rhs ) { if( matrix_.rows() != (~rhs).columns() ) { BLAZE_THROW_INVALID_ARGUMENT( "Invalid assignment to lower matrix" ); } MT tmp( matrix_ * ~rhs ); if( !isLower( tmp ) ) { BLAZE_THROW_INVALID_ARGUMENT( "Invalid assignment to lower matrix" ); } move( matrix_, tmp ); BLAZE_INTERNAL_ASSERT( isSquare( matrix_ ), "Non-square lower matrix detected" ); BLAZE_INTERNAL_ASSERT( isIntact(), "Broken invariant detected" ); return *this; } /*! \endcond */ //************************************************************************************************* //************************************************************************************************* /*! \cond BLAZE_INTERNAL */ /*!\brief Multiplication assignment operator for the multiplication between a matrix and // a scalar value (\f$ A*=s \f$). // // \param rhs The right-hand side scalar value for the multiplication. // \return Reference to the matrix. */ template< typename MT // Type of the adapted dense matrix , bool SO > // Storage order of the adapted dense matrix template< typename Other > // Data type of the right-hand side scalar inline typename EnableIf< IsNumeric<Other>, LowerMatrix<MT,SO,true> >::Type& LowerMatrix<MT,SO,true>::operator*=( Other rhs ) { matrix_ *= rhs; return *this; } //************************************************************************************************* //************************************************************************************************* /*! \cond BLAZE_INTERNAL */ /*!\brief Division assignment operator for the division of a matrix by a scalar value // (\f$ A/=s \f$). // // \param rhs The right-hand side scalar value for the division. // \return Reference to the matrix. */ template< typename MT // Type of the adapted dense matrix , bool SO > // Storage order of the adapted dense matrix template< typename Other > // Data type of the right-hand side scalar inline typename EnableIf< IsNumeric<Other>, LowerMatrix<MT,SO,true> >::Type& LowerMatrix<MT,SO,true>::operator/=( Other rhs ) { BLAZE_USER_ASSERT( rhs != Other(0), "Division by zero detected" ); matrix_ /= rhs; return *this; } /*! \endcond */ //************************************************************************************************* //================================================================================================= // // UTILITY FUNCTIONS // //================================================================================================= //************************************************************************************************* /*! \cond BLAZE_INTERNAL */ /*!\brief Returns the current number of rows of the matrix. // // \return The number of rows of the matrix. */ template< typename MT // Type of the adapted dense matrix , bool SO > // Storage order of the adapted dense matrix inline size_t LowerMatrix<MT,SO,true>::rows() const { return matrix_.rows(); } /*! \endcond */ //************************************************************************************************* //************************************************************************************************* /*! \cond BLAZE_INTERNAL */ /*!\brief Returns the current number of columns of the matrix. // // \return The number of columns of the matrix. */ template< typename MT // Type of the adapted dense matrix , bool SO > // Storage order of the adapted dense matrix inline size_t LowerMatrix<MT,SO,true>::columns() const { return matrix_.columns(); } /*! \endcond */ //************************************************************************************************* //************************************************************************************************* /*! \cond BLAZE_INTERNAL */ /*!\brief Returns the spacing between the beginning of two rows/columns. // // \return The spacing between the beginning of two rows/columns. // // This function returns the spacing between the beginning of two rows/columns, i.e. the total // number of elements of a row/column. In case the lower matrix adapts a \a rowMajor dense // matrix the function returns the spacing between two rows, in case it adapts a \a columnMajor // dense matrix the function returns the spacing between two columns. */ template< typename MT // Type of the adapted dense matrix , bool SO > // Storage order of the adapted dense matrix inline size_t LowerMatrix<MT,SO,true>::spacing() const { return matrix_.spacing(); } /*! \endcond */ //************************************************************************************************* //************************************************************************************************* /*! \cond BLAZE_INTERNAL */ /*!\brief Returns the maximum capacity of the matrix. // // \return The capacity of the matrix. */ template< typename MT // Type of the adapted dense matrix , bool SO > // Storage order of the adapted dense matrix inline size_t LowerMatrix<MT,SO,true>::capacity() const { return matrix_.capacity(); } /*! \endcond */ //************************************************************************************************* //************************************************************************************************* /*! \cond BLAZE_INTERNAL */ /*!\brief Returns the current capacity of the specified row/column. // // \param i The index of the row/column. // \return The current capacity of row/column \a i. // // This function returns the current capacity of the specified row/column. In case the lower // matrix adapts a \a rowMajor dense matrix the function returns the capacity of row \a i, in // case it adapts a \a columnMajor dense matrix the function returns the capacity of column // \a i. */ template< typename MT // Type of the adapted dense matrix , bool SO > // Storage order of the adapted dense matrix inline size_t LowerMatrix<MT,SO,true>::capacity( size_t i ) const { return matrix_.capacity(i); } /*! \endcond */ //************************************************************************************************* //************************************************************************************************* /*! \cond BLAZE_INTERNAL */ /*!\brief Returns the total number of non-zero elements in the matrix // // \return The number of non-zero elements in the lower matrix. */ template< typename MT // Type of the adapted dense matrix , bool SO > // Storage order of the adapted dense matrix inline size_t LowerMatrix<MT,SO,true>::nonZeros() const { return matrix_.nonZeros(); } /*! \endcond */ //************************************************************************************************* //************************************************************************************************* /*! \cond BLAZE_INTERNAL */ /*!\brief Returns the number of non-zero elements in the specified row/column. // // \param i The index of the row/column. // \return The number of non-zero elements of row/column \a i. // // This function returns the current number of non-zero elements in the specified row/column. // In case the lower matrix adapts a \a rowMajor dense matrix the function returns the number // of non-zero elements in row \a i, in case it adapts a to \a columnMajor dense matrix the // function returns the number of non-zero elements in column \a i. */ template< typename MT // Type of the adapted dense matrix , bool SO > // Storage order of the adapted dense matrix inline size_t LowerMatrix<MT,SO,true>::nonZeros( size_t i ) const { return matrix_.nonZeros(i); } /*! \endcond */ //************************************************************************************************* //************************************************************************************************* /*! \cond BLAZE_INTERNAL */ /*!\brief Reset to the default initial values. // // \return void */ template< typename MT // Type of the adapted dense matrix , bool SO > // Storage order of the adapted dense matrix inline void LowerMatrix<MT,SO,true>::reset() { using blaze::clear; if( SO ) { for( size_t j=0UL; j<columns(); ++j ) for( size_t i=j; i<rows(); ++i ) clear( matrix_(i,j) ); } else { for( size_t i=0UL; i<rows(); ++i ) for( size_t j=0UL; j<=i; ++j ) clear( matrix_(i,j) ); } } /*! \endcond */ //************************************************************************************************* //************************************************************************************************* /*! \cond BLAZE_INTERNAL */ /*!\brief Reset the specified row/column to the default initial values. // // \param i The index of the row/column. // \return void // \exception std::invalid_argument Invalid row/column access index. // // This function resets the values in the specified row/column to their default value. In case // the storage order is set to \a rowMajor the function resets the values in row \a i, in case // the storage order is set to \a columnMajor the function resets the values in column \a i. // Note that the reset() function has no impact on the capacity of the matrix or row/column. */ template< typename MT // Type of the adapted dense matrix , bool SO > // Storage order of the adapted dense matrix inline void LowerMatrix<MT,SO,true>::reset( size_t i ) { using blaze::clear; if( SO ) { for( size_t j=i; j<rows(); ++j ) clear( matrix_(j,i) ); } else { for( size_t j=0UL; j<=i; ++j ) clear( matrix_(i,j) ); } } /*! \endcond */ //************************************************************************************************* //************************************************************************************************* /*! \cond BLAZE_INTERNAL */ /*!\brief Clearing the lower matrix. // // \return void // // This function clears the lower matrix and returns it to its default state. The function has // the same effect as calling clear() on the adapted matrix of type \a MT: In case of a resizable // matrix (for instance DynamicMatrix or HybridMatrix) the number of rows and columns will be set // to 0, whereas in case of a fixed-size matrix (for instance StaticMatrix) only the elements will // be reset to their default state. */ template< typename MT // Type of the adapted dense matrix , bool SO > // Storage order of the adapted dense matrix inline void LowerMatrix<MT,SO,true>::clear() { using blaze::clear; if( IsResizable<MT>::value ) { clear( matrix_ ); } else { reset(); } } /*! \endcond */ //************************************************************************************************* //************************************************************************************************* /*! \cond BLAZE_INTERNAL */ /*!\brief Changing the size of the lower matrix. // // \param n The new number of rows and columns of the matrix. // \param preserve \a true if the old values of the matrix should be preserved, \a false if not. // \return void // // In case the lower matrix adapts a resizable matrix, this function resizes the matrix using // the given size to \f$ n \times n \f$. During this operation, new dynamic memory may be allocated // in case the capacity of the matrix is too small. Note that this function may invalidate all // existing views (submatrices, rows, columns, ...) on the matrix if it is used to shrink the // matrix. Additionally, the resize operation potentially changes all matrix elements. In order // to preserve the old matrix values, the \a preserve flag can be set to \a true. Also note that // in case the size of the matrix is increased, only the new elements in the upper part of the // matrix are default initialized.\n // The following example illustrates the resize operation of a \f$ 3 \times 3 \f$ matrix to a // \f$ 4 \times 4 \f$ matrix. The new, uninitialized elements are marked with \a x: \f[ \left(\begin{array}{*{3}{c}} 1 & 0 & 0 \\ 2 & 3 & 0 \\ 4 & 5 & 6 \\ \end{array}\right) \Longrightarrow \left(\begin{array}{*{4}{c}} 1 & 0 & 0 & 0 \\ 2 & 3 & 0 & 0 \\ 4 & 5 & 6 & 0 \\ x & x & x & x \\ \end{array}\right) \f] */ template< typename MT // Type of the adapted dense matrix , bool SO > // Storage order of the adapted dense matrix void LowerMatrix<MT,SO,true>::resize( size_t n, bool preserve ) { BLAZE_CONSTRAINT_MUST_BE_RESIZABLE( MT ); UNUSED_PARAMETER( preserve ); BLAZE_INTERNAL_ASSERT( isSquare( matrix_ ), "Non-square lower matrix detected" ); const size_t oldsize( matrix_.rows() ); matrix_.resize( n, n, true ); if( n > oldsize ) { const size_t increment( n - oldsize ); submatrix( matrix_, 0UL, oldsize, n-1UL, increment ).reset(); } } /*! \endcond */ //************************************************************************************************* //************************************************************************************************* /*! \cond BLAZE_INTERNAL */ /*!\brief Extending the size of the matrix. // // \param n Number of additional rows and columns. // \param preserve \a true if the old values of the matrix should be preserved, \a false if not. // \return void // // This function increases the matrix size by \a n rows and \a n columns. During this operation, // new dynamic memory may be allocated in case the capacity of the matrix is too small. Therefore // this function potentially changes all matrix elements. In order to preserve the old matrix // values, the \a preserve flag can be set to \a true. The new elements are default initialized. */ template< typename MT // Type of the adapted dense matrix , bool SO > // Storage order of the adapted dense matrix inline void LowerMatrix<MT,SO,true>::extend( size_t n, bool preserve ) { BLAZE_CONSTRAINT_MUST_BE_RESIZABLE( MT ); UNUSED_PARAMETER( preserve ); resize( rows() + n, true ); } //************************************************************************************************* //************************************************************************************************* /*! \cond BLAZE_INTERNAL */ /*!\brief Setting the minimum capacity of the matrix. // // \param elements The new minimum capacity of the lower matrix. // \return void // // This function increases the capacity of the lower matrix to at least \a elements elements. // The current values of the matrix elements are preserved. */ template< typename MT // Type of the adapted dense matrix , bool SO > // Storage order of the adapted dense matrix inline void LowerMatrix<MT,SO,true>::reserve( size_t elements ) { matrix_.reserve( elements ); } /*! \endcond */ //************************************************************************************************* //************************************************************************************************* /*! \cond BLAZE_INTERNAL */ /*!\brief Scaling of the matrix by the scalar value \a scalar (\f$ A=B*s \f$). // // \param scalar The scalar value for the matrix scaling. // \return Reference to the matrix. */ template< typename MT // Type of the adapted dense matrix , bool SO > // Storage order of the adapted dense matrix template< typename Other > // Data type of the scalar value inline LowerMatrix<MT,SO,true>& LowerMatrix<MT,SO,true>::scale( const Other& scalar ) { matrix_.scale( scalar ); return *this; } /*! \endcond */ //************************************************************************************************* //************************************************************************************************* /*! \cond BLAZE_INTERNAL */ /*!\brief Swapping the contents of two matrices. // // \param m The matrix to be swapped. // \return void // \exception no-throw guarantee. */ template< typename MT // Type of the adapted dense matrix , bool SO > // Storage order of the adapted dense matrix inline void LowerMatrix<MT,SO,true>::swap( LowerMatrix& m ) /* throw() */ { using std::swap; swap( matrix_, m.matrix_ ); } /*! \endcond */ //************************************************************************************************* //************************************************************************************************* /*! \cond BLAZE_INTERNAL */ /*!\brief Returns the maximum number of non-zero values for a lower triangular matrix. // // \return The maximum number of non-zero values. // // This function returns the maximum possible number of non-zero values for a lower triangular // matrix with fixed-size adapted matrix of type \a MT. Note that this function can only be // called in case the adapted dense matrix is a fixed-size matrix (as for instance StaticMatrix). // The attempt to call this function in case the adapted matrix is resizable matrix will result // in a compile time error. */ template< typename MT // Type of the adapted dense matrix , bool SO > // Storage order of the adapted dense matrix inline size_t LowerMatrix<MT,SO,true>::maxNonZeros() { BLAZE_CONSTRAINT_MUST_NOT_BE_RESIZABLE( MT ); return maxNonZeros( Rows<MT>::value ); } /*! \endcond */ //************************************************************************************************* //************************************************************************************************* /*! \cond BLAZE_INTERNAL */ /*!\brief Returns the maximum number of non-zero values for a lower triangular matrix. // // \param n The number of rows and columns of the matrix. // \return The maximum number of non-zero values. // // This function returns the maximum possible number of non-zero values for a lower triangular // matrix of the given number of rows and columns. */ template< typename MT // Type of the adapted dense matrix , bool SO > // Storage order of the adapted dense matrix inline size_t LowerMatrix<MT,SO,true>::maxNonZeros( size_t n ) { return ( ( n + 1UL ) * n ) / 2UL; } /*! \endcond */ //************************************************************************************************* //================================================================================================= // // DEBUGGING FUNCTIONS // //================================================================================================= //************************************************************************************************* /*! \cond BLAZE_INTERNAL */ /*!\brief Returns whether the invariants of the lower matrix are intact. // // \return \a true in case the lower matrix's invariants are intact, \a false otherwise. // // This function checks whether the invariants of the lower matrix are intact, i.e. if its // state is valid. In case the invariants are intact, the function returns \a true, else it // will return \a false. */ template< typename MT // Type of the adapted dense matrix , bool SO > // Storage order of the adapted dense matrix inline bool LowerMatrix<MT,SO,true>::isIntact() const { using blaze::isIntact; return ( isIntact( matrix_ ) && isLower( matrix_ ) ); } /*! \endcond */ //************************************************************************************************* //================================================================================================= // // EXPRESSION TEMPLATE EVALUATION FUNCTIONS // //================================================================================================= //************************************************************************************************* /*! \cond BLAZE_INTERNAL */ /*!\brief Returns whether the matrix can alias with the given address \a alias. // // \param alias The alias to be checked. // \return \a true in case the alias corresponds to this matrix, \a false if not. // // This function returns whether the given address can alias with the matrix. In contrast // to the isAliased() function this function is allowed to use compile time expressions // to optimize the evaluation. */ template< typename MT // Type of the adapted dense matrix , bool SO > // Storage order of the adapted dense matrix template< typename Other > // Data type of the foreign expression inline bool LowerMatrix<MT,SO,true>::canAlias( const Other* alias ) const { return matrix_.canAlias( alias ); } /*! \endcond */ //************************************************************************************************* //************************************************************************************************* /*! \cond BLAZE_INTERNAL */ /*!\brief Returns whether the matrix is aliased with the given address \a alias. // // \param alias The alias to be checked. // \return \a true in case the alias corresponds to this matrix, \a false if not. // // This function returns whether the given address is aliased with the matrix. In contrast // to the canAlias() function this function is not allowed to use compile time expressions // to optimize the evaluation. */ template< typename MT // Type of the adapted dense matrix , bool SO > // Storage order of the adapted dense matrix template< typename Other > // Data type of the foreign expression inline bool LowerMatrix<MT,SO,true>::isAliased( const Other* alias ) const { return matrix_.isAliased( alias ); } /*! \endcond */ //************************************************************************************************* //************************************************************************************************* /*! \cond BLAZE_INTERNAL */ /*!\brief Returns whether the matrix is properly aligned in memory. // // \return \a true in case the matrix is aligned, \a false if not. // // This function returns whether the matrix is guaranteed to be properly aligned in memory, i.e. // whether the beginning and the end of each row/column of the matrix are guaranteed to conform // to the alignment restrictions of the element type \a Type. */ template< typename MT // Type of the adapted dense matrix , bool SO > // Storage order of the adapted dense matrix inline bool LowerMatrix<MT,SO,true>::isAligned() const { return matrix_.isAligned(); } /*! \endcond */ //************************************************************************************************* //************************************************************************************************* /*! \cond BLAZE_INTERNAL */ /*!\brief Returns whether the matrix can be used in SMP assignments. // // \return \a true in case the matrix can be used in SMP assignments, \a false if not. // // This function returns whether the matrix can be used in SMP assignments. In contrast to the // \a smpAssignable member enumeration, which is based solely on compile time information, this // function additionally provides runtime information (as for instance the current number of // rows and/or columns of the matrix). */ template< typename MT // Type of the adapted dense matrix , bool SO > // Storage order of the adapted dense matrix inline bool LowerMatrix<MT,SO,true>::canSMPAssign() const { return matrix_.canSMPAssign(); } /*! \endcond */ //************************************************************************************************* //************************************************************************************************* /*! \cond BLAZE_INTERNAL */ /*!\brief Load of an intrinsic element of the matrix. // // \param i Access index for the row. The index has to be in the range [0..M-1]. // \param j Access index for the column. The index has to be in the range [0..N-1]. // \return The loaded intrinsic element. // // This function performs a load of a specific intrinsic element of the lower matrix. The // row index must be smaller than the number of rows and the column index must be smaller // than the number of columns. Additionally, the column index (in case of a row-major matrix) // or the row index (in case of a column-major matrix) must be a multiple of the number of // values inside the intrinsic element. This function must \b NOT be called explicitly! It is // used internally for the performance optimized evaluation of expression templates. Calling // this function explicitly might result in erroneous results and/or in compilation errors. */ template< typename MT // Type of the adapted dense matrix , bool SO > // Storage order of the adapted dense matrix BLAZE_ALWAYS_INLINE typename LowerMatrix<MT,SO,true>::IntrinsicType LowerMatrix<MT,SO,true>::load( size_t i, size_t j ) const { return matrix_.load( i, j ); } /*! \endcond */ //************************************************************************************************* //************************************************************************************************* /*! \cond BLAZE_INTERNAL */ /*!\brief Aligned load of an intrinsic element of the matrix. // // \param i Access index for the row. The index has to be in the range [0..M-1]. // \param j Access index for the column. The index has to be in the range [0..N-1]. // \return The loaded intrinsic element. // // This function performs an aligned load of a specific intrinsic element of the lower matrix. // The row index must be smaller than the number of rows and the column index must be smaller // than the number of columns. Additionally, the column index (in case of a row-major matrix) // or the row index (in case of a column-major matrix) must be a multiple of the number of // values inside the intrinsic element. This function must \b NOT be called explicitly! It is // used internally for the performance optimized evaluation of expression templates. Calling // this function explicitly might result in erroneous results and/or in compilation errors. */ template< typename MT // Type of the adapted dense matrix , bool SO > // Storage order of the adapted dense matrix BLAZE_ALWAYS_INLINE typename LowerMatrix<MT,SO,true>::IntrinsicType LowerMatrix<MT,SO,true>::loada( size_t i, size_t j ) const { return matrix_.loada( i, j ); } /*! \endcond */ //************************************************************************************************* //************************************************************************************************* /*! \cond BLAZE_INTERNAL */ /*!\brief Unaligned load of an intrinsic element of the matrix. // // \param i Access index for the row. The index has to be in the range [0..M-1]. // \param j Access index for the column. The index has to be in the range [0..N-1]. // \return The loaded intrinsic element. // // This function performs an unaligned load of a specific intrinsic element of the lower matrix. // The row index must be smaller than the number of rows and the column index must be smaller // than the number of columns. Additionally, the column index (in case of a row-major matrix) // or the row index (in case of a column-major matrix) must be a multiple of the number of // values inside the intrinsic element. This function must \b NOT be called explicitly! It is // used internally for the performance optimized evaluation of expression templates. Calling // this function explicitly might result in erroneous results and/or in compilation errors. */ template< typename MT // Type of the adapted dense matrix , bool SO > // Storage order of the adapted dense matrix BLAZE_ALWAYS_INLINE typename LowerMatrix<MT,SO,true>::IntrinsicType LowerMatrix<MT,SO,true>::loadu( size_t i, size_t j ) const { return matrix_.loadu( i, j ); } /*! \endcond */ //************************************************************************************************* //================================================================================================= // // CONSTRUCTION FUNCTIONS // //================================================================================================= //************************************************************************************************* /*! \cond BLAZE_INTERNAL */ /*!\brief Constructing a resizable matrix of size \f$ n \times n \f$. // // \param n The number of rows and columns of the matrix. // \return The newly constructed matrix. */ template< typename MT // Type of the adapted dense matrix , bool SO > // Storage order of the adapted dense matrix inline const MT LowerMatrix<MT,SO,true>::construct( size_t n, TrueType ) { BLAZE_CONSTRAINT_MUST_BE_RESIZABLE( MT ); return MT( n, n, ElementType() ); } /*! \endcond */ //************************************************************************************************* //************************************************************************************************* /*! \cond BLAZE_INTERNAL */ /*!\brief Constructing a fixed-size matrix with homogeneously initialized lower and diagonal elements. // // \param init The initial value of the lower and diagonal matrix elements. // \return The newly constructed matrix. */ template< typename MT // Type of the adapted dense matrix , bool SO > // Storage order of the adapted dense matrix inline const MT LowerMatrix<MT,SO,true>::construct( const ElementType& init, FalseType ) { BLAZE_CONSTRAINT_MUST_NOT_BE_RESIZABLE( MT ); BLAZE_CONSTRAINT_MUST_BE_SQUARE( MT ); MT tmp; if( SO ) { for( size_t j=0UL; j<tmp.columns(); ++j ) for( size_t i=j; i<tmp.rows(); ++i ) tmp(i,j) = init; } else { for( size_t i=0UL; i<tmp.rows(); ++i ) for( size_t j=0UL; j<=i; ++j ) tmp(i,j) = init; } return tmp; } /*! \endcond */ //************************************************************************************************* //************************************************************************************************* /*! \cond BLAZE_INTERNAL */ /*!\brief Constructing a matrix as a copy from another matrix. // // \param m Matrix to be copied. // \exception std::invalid_argument Invalid setup of lower matrix. // \return The newly constructed matrix. // // In case the given matrix is not a lower matrix, a \a std::invalid_argument exception is // thrown. */ template< typename MT // Type of the adapted dense matrix , bool SO > // Storage order of the adapted dense matrix template< typename MT2 // Type of the foreign matrix , bool SO2 // Storage order of the foreign matrix , typename T > // Type of the third argument inline const MT LowerMatrix<MT,SO,true>::construct( const Matrix<MT2,SO2>& m, T ) { const MT tmp( ~m ); if( !IsLower<MT2>::value && !isLower( tmp ) ) { BLAZE_THROW_INVALID_ARGUMENT( "Invalid setup of lower matrix" ); } return tmp; } /*! \endcond */ //************************************************************************************************* } // namespace blaze #endif
[ "klaus.iglberger@gmail.com" ]
klaus.iglberger@gmail.com
27a29efb5230c4143a26b9fdd54ab98e74212063
6695a7d1fa64cb8cd7b53d0000523baa8e811fbb
/Josephus/Josephus/Josephus.cpp
4479a907efba513bf05aa6070032486b68fb6227
[]
no_license
Ravenm/DataStruct3013
76fa851714770d81afcfddfc36de55697406954a
b7614af5b10058fb21b51f858340d00b8195504f
refs/heads/master
2020-04-18T16:20:52.529825
2017-05-03T10:37:28
2017-05-03T10:37:28
67,566,714
0
0
null
null
null
null
UTF-8
C++
false
false
747
cpp
//************************************************************** // Project #1 Josephus // Name: Andrew Nash // Data Structures Date: 09/05/16 //*************************************************************** // This program solves the Josephus problem by creating a link // to represent the soldiers and traversing the list to remove // links. //***************************************************************** #include "CirLinkList.h" #include <iostream> using namespace std; int main() { int nodesleft; CirLinkList C; C.Build(12); C.Dump(); C.Advance(7); while (C.Kill() != 1) C.Advance(3); C.Dump(); cout << "Remaining node is " << C.GetStart() << endl; return 0; }
[ "ravenmetals@gmail.com" ]
ravenmetals@gmail.com
ba3137753f6db0bbb434404c2bf1bdb879df1543
b857790369bbc8df2657dc6a2e5ab63240079287
/test/vault.cpp
e7e98f7ebda111448a1154a0ea452ef02ad8deba
[ "MIT" ]
permissive
detunized/lastpass-cpp
ae705ae0ec1551c193ba467b2ce022b62b8faf1a
d938cb142abee6c6f19b5f35a70da802d8a41ffa
refs/heads/master
2016-09-10T19:49:41.643034
2014-02-10T16:43:36
2014-02-10T16:43:36
16,339,491
5
0
null
null
null
null
UTF-8
C++
false
false
606
cpp
// Copyright (C) 2014 Dmitry Yakimenko (detunized@gmail.com). // Licensed under the terms of the MIT license. See LICENCE for details. #include "test.h" namespace { using namespace lastpass; using namespace test; BOOST_AUTO_TEST_CASE(vault_create_creates_vault_from_blob) { auto vault = Vault::create(Blob(data::BLOB, data::KEY_ITERATION_COUNT), data::ENCRYPTION_KEY); auto const &accounts = vault.accounts(); BOOST_CHECK_EQUAL(accounts.size(), data::ACCOUNTS.size()); for (size_t i = 0, size = accounts.size(); i < size; ++i) check_equal(accounts[i], data::ACCOUNTS[i]); } }
[ "detunized@gmail.com" ]
detunized@gmail.com
23f2369bc33db5ecba7fde19f1e48f6597bf7c97
56fcab9393f0ec379e2abb00d2d8eda36f64e823
/uintah/kokkos_src/CCA/Components/MPM/ConstitutiveModel/TransIsoHyper.h
f3fd2c8aa4abb0e1db24153b6dc5687389233d3e
[ "MIT", "CC-BY-4.0" ]
permissive
damu1000/hypre_ep
4a13a5545ac90b231ca9e0f29f23f041f344afb9
a6701de3d455fa4ee95ac7d79608bffa3eb115ee
refs/heads/master
2023-04-11T11:38:21.157249
2021-08-16T21:50:44
2021-08-16T21:50:44
41,874,948
2
1
null
null
null
null
UTF-8
C++
false
false
5,371
h
/* * The MIT License * * Copyright (c) 1997-2017 The University of Utah * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to * deal in the Software without restriction, including without limitation the * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or * sell copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS * IN THE SOFTWARE. */ // TransIsoHyper.h // class ConstitutiveModel ConstitutiveModel data type -- 3D - // holds ConstitutiveModel // information for the FLIP technique: // This is for a Transversely Isotropic Hyperelastic material // Features: // Usage: #ifndef __TransIsoHyper_CONSTITUTIVE_MODEL_H__ #define __TransIsoHyper_CONSTITUTIVE_MODEL_H__ #include <cmath> #include "ConstitutiveModel.h" #include <Core/Math/Matrix3.h> #include <vector> #include <Core/Disclosure/TypeDescription.h> namespace Uintah { class TransIsoHyper : public ConstitutiveModel { private: // Create datatype for storing model parameters bool d_useModifiedEOS; public: struct CMData { //_________________________________________modified here double Bulk; Vector a0; double c1; double c2; double c3; double c4; double c5; double lambda_star; double failure; double crit_shear; double crit_stretch; }; const VarLabel* pStretchLabel; // For diagnostic const VarLabel* pStretchLabel_preReloc; // For diagnostic const VarLabel* pFailureLabel; // ____________________________fail_labels const VarLabel* pFailureLabel_preReloc; private: CMData d_initialData; // Prevent copying of this class // copy constructor TransIsoHyper& operator=(const TransIsoHyper &cm); public: // constructors TransIsoHyper( ProblemSpecP& ps, MPMFlags* flag ); // destructor virtual ~TransIsoHyper(); virtual void outputProblemSpec(ProblemSpecP& ps,bool output_cm_tag = true); // clone TransIsoHyper* clone(); // compute stable timestep for this patch virtual void computeStableTimestep(const Patch* patch, const MPMMaterial* matl, DataWarehouse* new_dw); // compute stress at each particle in the patch virtual void computeStressTensor(const PatchSubset* patches, const MPMMaterial* matl, DataWarehouse* old_dw, DataWarehouse* new_dw); // carry forward CM data for RigidMPM virtual void carryForward(const PatchSubset* patches, const MPMMaterial* matl, DataWarehouse* old_dw, DataWarehouse* new_dw); // initialize each particle's constitutive model data virtual void initializeCMData(const Patch* patch, const MPMMaterial* matl, DataWarehouse* new_dw); virtual void addInitialComputesAndRequires(Task* task, const MPMMaterial* matl, const PatchSet*) const; virtual void addComputesAndRequires(Task* task, const MPMMaterial* matl, const PatchSet* patches) const; virtual void addComputesAndRequires(Task* task, const MPMMaterial* matl, const PatchSet* patches, const bool recursion) const; virtual double computeRhoMicroCM(double pressure, const double p_ref, const MPMMaterial* matl, double temperature, double rho_guess); virtual void computePressEOSCM(double rho_m, double& press_eos, double p_ref, double& dp_drho, double& ss_new, const MPMMaterial* matl, double temperature); virtual double getCompressibility(); virtual Vector getInitialFiberDir(); virtual void addParticleState(std::vector<const VarLabel*>& from, std::vector<const VarLabel*>& to); }; } // End namespace Uintah #endif // __TransIsoHyper_CONSTITUTIVE_MODEL_H__
[ "damodars@sci.utah.edu" ]
damodars@sci.utah.edu
04c888a507b47e4246408d556512c9e2ed4e4dd4
5470644b5f0834b9646649da365c96101a2f9b2a
/Sources/Elastos/Frameworks/Droid/Base/Services/Server/src/CInputMethodManagerService.cpp
1b4bc579665b1ae56afec1f3d287d8bd5955ac6b
[]
no_license
dothithuy/ElastosRDK5_0
42372da3c749170581b5ee9b3884f4a27ae81608
2cf231e9f09f8b3b8bcacb11080b4a87d047833f
refs/heads/master
2021-05-13T15:02:22.363934
2015-05-25T01:54:38
2015-05-25T01:54:38
116,755,452
1
0
null
2018-01-09T02:33:06
2018-01-09T02:33:06
null
UTF-8
C++
false
false
205,524
cpp
#include "CInputMethodManagerService.h" #include "CInputMethodManagerServiceMethodCallback.h" #include "CInputMethodManagerServiceUserSwitchObserver.h" #include "pm/CPackageManagerService.h" #include "app/AppGlobals.h" #include "app/ActivityManagerNative.h" #include "os/ServiceManager.h" #include "os/Binder.h" #include "os/HandlerBase.h" #include "os/SomeArgs.h" #include "os/SystemClock.h" #include "os/UserHandle.h" #include "util/Xml.h" #include "R.h" #include "Manifest.h" #include <elastos/Math.h> #include <elastos/Slogger.h> #include <elastos/StringUtils.h> using Elastos::Core::StringUtils; using Elastos::Core::Math; using Elastos::Core::CBoolean; using Elastos::Core::EIID_IComparable; using Elastos::Core::CStringWrapper; using Elastos::IO::CFile; using Elastos::IO::IFileOutputStream; using Elastos::Core::CObjectContainer; using Elastos::Utility::CObjectStringMap; using Elastos::Utility::Logging::Slogger; using Libcore::ICU::CLocale; using Elastos::Droid::R; using Elastos::Droid::App::AppGlobals; using Elastos::Droid::App::CPendingIntentHelper; using Elastos::Droid::App::ActivityManagerNative; using Elastos::Droid::Content::EIID_IServiceConnection; using Elastos::Droid::Content::CIntent; using Elastos::Droid::Content::CIntentFilter; using Elastos::Droid::Content::CComponentName; using Elastos::Droid::Content::Pm::IUserInfo; using Elastos::Droid::Database::EIID_IContentObserver; using Elastos::Droid::InputMethodService::IInputMethodService; using Elastos::Droid::Os::UserHandle; using Elastos::Droid::Os::IUserHandleHelper; using Elastos::Droid::Os::CUserHandleHelper; using Elastos::Droid::Os::IEnvironment; using Elastos::Droid::Os::CEnvironment; using Elastos::Droid::Os::EIID_IHandlerCallback; using Elastos::Droid::Os::EIID_IHandlerCallerCallback; using Elastos::Droid::Provider::ISettingsSecure; using Elastos::Droid::Provider::CSettingsSecure; using Elastos::Droid::Provider::ISettingsSystem; using Elastos::Droid::Provider::CSettingsSystem; using Elastos::Droid::Provider::ISettings; using Elastos::Droid::Utility::CAtomicFile; using Elastos::Droid::Utility::Xml; using Elastos::Droid::Utility::CParcelableObjectContainer; using Elastos::Droid::Provider::ISettingsSecure; using Elastos::Droid::View::CInputBindResult; using Elastos::Droid::View::CWindowManagerLayoutParams; using Elastos::Droid::View::CWindowManagerLayoutParamsHelper; using Elastos::Droid::View::IWindowManagerLayoutParamsHelper; using Elastos::Droid::View::InputMethod::CInputBinding; using Elastos::Droid::View::InputMethod::CInputMethodInfo; using Elastos::Droid::View::InputMethod::CInputMethodSubtype; using Elastos::Droid::View::InputMethod::CInputMethodSubtypeHelper; using Elastos::Droid::View::InputMethod::IInputMethod; using Elastos::Droid::View::InputMethod::IInputMethodSubtypeHelper; using Elastos::Droid::View::InputMethod::IInputMethodManager; using Elastos::Droid::Widget::EIID_IArrayAdapter; using Elastos::Droid::Widget::EIID_IBaseAdapter; using Elastos::Droid::Widget::EIID_IListAdapter; using Elastos::Droid::Widget::EIID_IAdapter; using Elastos::Droid::Widget::ITextView; using Elastos::Droid::Widget::IRadioButton; using Elastos::Droid::Widget::ICheckable; using Elastos::Droid::Widget::IListAdapter; using Elastos::Droid::Widget::IAdapter; using Elastos::Droid::Utility::CFastXmlSerializer; using Elastos::Droid::Utility::IFastXmlSerializer; namespace Elastos { namespace Droid { namespace Server { const String CInputMethodManagerService::TAG("CInputMethodManagerService"); const Boolean CInputMethodManagerService::DEBUG = FALSE; const Int32 CInputMethodManagerService::MSG_SHOW_IM_PICKER; const Int32 CInputMethodManagerService::MSG_SHOW_IM_SUBTYPE_PICKER; const Int32 CInputMethodManagerService::MSG_SHOW_IM_SUBTYPE_ENABLER; const Int32 CInputMethodManagerService::MSG_SHOW_IM_CONFIG; const Int32 CInputMethodManagerService::MSG_UNBIND_INPUT; const Int32 CInputMethodManagerService::MSG_BIND_INPUT; const Int32 CInputMethodManagerService::MSG_SHOW_SOFT_INPUT; const Int32 CInputMethodManagerService::MSG_HIDE_SOFT_INPUT; const Int32 CInputMethodManagerService::MSG_ATTACH_TOKEN; const Int32 CInputMethodManagerService::MSG_CREATE_SESSION; const Int32 CInputMethodManagerService::MSG_START_INPUT; const Int32 CInputMethodManagerService::MSG_RESTART_INPUT; const Int32 CInputMethodManagerService::MSG_UNBIND_METHOD; const Int32 CInputMethodManagerService::MSG_BIND_METHOD; const Int32 CInputMethodManagerService::MSG_SET_ACTIVE; const Int32 CInputMethodManagerService::MSG_HARD_KEYBOARD_SWITCH_CHANGED; const Int64 CInputMethodManagerService::TIME_TO_RECONNECT; const Int32 CInputMethodManagerService::SECURE_SUGGESTION_SPANS_MAX_SIZE; const Int32 CInputMethodManagerService::NOT_A_SUBTYPE_ID; String CInputMethodManagerService::NOT_A_SUBTYPE_ID_STR("-1"); String CInputMethodManagerService::SUBTYPE_MODE_KEYBOARD("keyboard"); String CInputMethodManagerService::SUBTYPE_MODE_VOICE("voice"); String CInputMethodManagerService::TAG_TRY_SUPPRESSING_IME_SWITCHER("TrySuppressingImeSwitcher"); String CInputMethodManagerService::TAG_ENABLED_WHEN_DEFAULT_IS_NOT_ASCII_CAPABLE("EnabledWhenDefaultIsNotAsciiCapable"); String CInputMethodManagerService::TAG_ASCII_CAPABLE("AsciiCapable"); AutoPtr<ILocale> CInputMethodManagerService::ENGLISH_LOCALE; /////////////////////////////////////////////////////////// // CInputMethodManagerService::MyHandlerCallerCallback /////////////////////////////////////////////////////////// CAR_INTERFACE_IMPL(CInputMethodManagerService::MyHandlerCallerCallback, IHandlerCallerCallback) CInputMethodManagerService::MyHandlerCallerCallback::MyHandlerCallerCallback( /* [in] */ IWeakReference* host) : mHost(host) {} ECode CInputMethodManagerService::MyHandlerCallerCallback::ExecuteMessage( /* [in] */ IMessage* msg) { AutoPtr<IHandlerCallback> cb; mHost->Resolve(EIID_IHandlerCallback, (IInterface**)&cb); if (cb != NULL) { Boolean result; return cb->HandleMessage(msg, &result); } return NOERROR; } /////////////////////////////////////////////////////////// // CInputMethodManagerService::VisibleServiceConnection /////////////////////////////////////////////////////////// CAR_INTERFACE_IMPL(CInputMethodManagerService::VisibleServiceConnection, IServiceConnection) ECode CInputMethodManagerService::VisibleServiceConnection::OnServiceConnected( /* [in] */ IComponentName* name, /* [in] */ IBinder* service) { return NOERROR; } ECode CInputMethodManagerService::VisibleServiceConnection::OnServiceDisconnected( /* [in] */ IComponentName* name) { return NOERROR; } /////////////////////////////////////////////////////////// // CInputMethodManagerService::SessionState /////////////////////////////////////////////////////////// CAR_INTERFACE_IMPL(CInputMethodManagerService::SessionState, IInterface) CInputMethodManagerService::SessionState::SessionState( /* [in] */ ClientState* client, /* [in] */ IIInputMethod* method, /* [in] */ IIInputMethodSession* session) : mClient(client) , mMethod(method) , mSession(session) {} /////////////////////////////////////////////////////////// // CInputMethodManagerService::ClientState /////////////////////////////////////////////////////////// CAR_INTERFACE_IMPL(CInputMethodManagerService::ClientState, IInterface) CInputMethodManagerService::ClientState::ClientState( /* [in] */ IInputMethodClient* client, /* [in] */ IInputContext* inputContext, /* [in] */ Int32 uid, /* [in] */ Int32 pid) : mClient(client) , mInputContext(inputContext) , mUid(uid) , mPid(pid) , mSessionRequested(FALSE) { assert(mInputContext != NULL); ASSERT_SUCCEEDED(CInputBinding::New(NULL, IBinder::Probe(mInputContext), mUid, mPid, (IInputBinding**)&mBinding)); } CInputMethodManagerService::ClientState::~ClientState() { } /////////////////////////////////////////////////////////// // CInputMethodManagerService::SettingsObserver /////////////////////////////////////////////////////////// CInputMethodManagerService::SettingsObserver::SettingsObserver( /* [in] */ IHandler* handler, /* [in] */ CInputMethodManagerService* host) : ContentObserver(handler) , mHost(host) { AutoPtr<IContentResolver> resolver; mHost->mContext->GetContentResolver((IContentResolver**)&resolver); assert(resolver != NULL); AutoPtr<IUri> uri; AutoPtr<ISettingsSecure> settingsSecure; CSettingsSecure::AcquireSingleton((ISettingsSecure**)&settingsSecure); settingsSecure->GetUriForEx(ISettingsSecure::DEFAULT_INPUT_METHOD, (IUri**)&uri); assert(uri != NULL); resolver->RegisterContentObserver(uri, FALSE, THIS_PROBE(IContentObserver)); uri = NULL; settingsSecure->GetUriForEx(ISettingsSecure::ENABLED_INPUT_METHODS, (IUri**)&uri); assert(uri != NULL); resolver->RegisterContentObserver(uri, FALSE, THIS_PROBE(IContentObserver)); uri = NULL; settingsSecure->GetUriForEx(ISettingsSecure::SELECTED_INPUT_METHOD_SUBTYPE, (IUri**)&uri); assert(uri != NULL); resolver->RegisterContentObserver(uri, FALSE, THIS_PROBE(IContentObserver)); } ECode CInputMethodManagerService::SettingsObserver::OnChange( /* [in] */ Boolean selfChange) { Mutex::Autolock lock(mHost->mMethodMapLock); mHost->UpdateFromSettingsLocked(); return NOERROR; } /////////////////////////////////////////////////////////// // CInputMethodManagerService::ImmsBroadcastReceiver /////////////////////////////////////////////////////////// CInputMethodManagerService::ImmsBroadcastReceiver::ImmsBroadcastReceiver( /* [in] */ CInputMethodManagerService* host) : mHost(host) {} void CInputMethodManagerService::ImmsBroadcastReceiver::UpdateActive() { // Inform the current client of the change in active status if (mHost->mCurClient != NULL && mHost->mCurClient->mClient != NULL) { AutoPtr<IMessage> msg; mHost->mCaller->ObtainMessageIO( CInputMethodManagerService::MSG_SET_ACTIVE, mHost->mScreenOn ? 1 : 0, mHost->mCurClient, (IMessage**)&msg); mHost->ExecuteOrSendMessage(mHost->mCurClient->mClient, msg); } } ECode CInputMethodManagerService::ImmsBroadcastReceiver::OnReceive( /* [in] */ IContext* context, /* [in] */ IIntent* intent) { String action; intent->GetAction(&action); if (IIntent::ACTION_SCREEN_ON.Equals(action)) { mHost->mScreenOn = TRUE; mHost->RefreshImeWindowVisibilityLocked(); UpdateActive(); return NOERROR; } else if (IIntent::ACTION_SCREEN_OFF.Equals(action)) { mHost->mScreenOn = FALSE; mHost->SetImeWindowVisibilityStatusHiddenLocked(); UpdateActive(); return NOERROR; } else if (IIntent::ACTION_CLOSE_SYSTEM_DIALOGS.Equals(action)) { mHost->HideInputMethodMenu(); // No need to updateActive return NOERROR; } else { // Slog.w(TAG, "Unexpected intent " + intent); } return NOERROR; } /////////////////////////////////////////////////////////// // CInputMethodManagerService::MyPackageMonitor /////////////////////////////////////////////////////////// CInputMethodManagerService::MyPackageMonitor::MyPackageMonitor( /* [in] */ CInputMethodManagerService* host) : mHost(host) { } Boolean CInputMethodManagerService::MyPackageMonitor::IsChangingPackagesOfCurrentUser() { Int32 userId = 0; GetChangingUserId(&userId); Boolean retval = userId == mHost->mSettings->GetCurrentUserId(); // if (DEBUG) { if (!retval) { // Slog.d(TAG, "--- ignore this call back from a background user: " + userId); } // } return retval; } ECode CInputMethodManagerService::MyPackageMonitor::OnHandleForceStop( /* [in] */ IIntent* intent, /* [in] */ ArrayOf<String>* packages, /* [in] */ Int32 uid, /* [in] */ Boolean doit, /* [out] */ Boolean* result) { assert(result != NULL); if (!IsChangingPackagesOfCurrentUser()) { *result = FALSE; return NOERROR; } if (packages != NULL) { Mutex::Autolock lock(mHost->mMethodMapLock); String curInputMethodId = mHost->mSettings->GetSelectedInputMethod(); if (!curInputMethodId.IsNull()) { List<AutoPtr<IInputMethodInfo> >::Iterator ator = mHost->mMethodList->Begin(); for (; ator != mHost->mMethodList->End(); ++ator) { AutoPtr<IInputMethodInfo> imi = *ator; String id; imi->GetId(&id); if (id.Equals(curInputMethodId)) { for (Int32 i = 0; i < packages->GetLength(); i++) { String pkg = (*packages)[i]; String name; imi->GetPackageName(&name); if (name.Equals(pkg)) { if (!doit) { *result = TRUE; return NOERROR; } mHost->ResetSelectedInputMethodAndSubtypeLocked(String("")); mHost->ChooseNewDefaultIMELocked(); *result = TRUE; return NOERROR; } } } } } } *result = FALSE; return NOERROR; } ECode CInputMethodManagerService::MyPackageMonitor::OnSomePackagesChanged() { if (!IsChangingPackagesOfCurrentUser()) { return NOERROR; } { Mutex::Autolock lock(mHost->mMethodMapLock); AutoPtr<IInputMethodInfo> curIm; String curInputMethodId; curInputMethodId = mHost->mSettings->GetSelectedInputMethod(); if (!curInputMethodId.IsNull()) { List<AutoPtr<IInputMethodInfo> >::Iterator ator = mHost->mMethodList->Begin(); for (; ator != mHost->mMethodList->End(); ++ator) { AutoPtr<IInputMethodInfo> imi = *ator; String imiId; imi->GetId(&imiId); if (imiId.Equals(curInputMethodId)) { curIm = imi; } Int32 change = 0; String name; imi->GetPackageName(&name); IsPackageDisappearing(name, &change); Boolean isModified = FALSE; if (IsPackageModified(name, &isModified), isModified) { mHost->mFileManager->DeleteAllInputMethodSubtypes(imiId); } if (change == PACKAGE_TEMPORARY_CHANGE || change == PACKAGE_PERMANENT_CHANGE) { // Slog.i(TAG, "Input method uninstalled, disabling: " // + imi.getComponent()); mHost->SetInputMethodEnabledLocked(imiId, FALSE); } } } mHost->BuildInputMethodListLocked(mHost->mMethodList, mHost->mMethodMap); Boolean changed = FALSE; if (curIm != NULL) { Int32 change = 0; String name; curIm->GetPackageName(&name); IsPackageDisappearing(name, &change); if (change == PACKAGE_TEMPORARY_CHANGE || change == PACKAGE_PERMANENT_CHANGE) { AutoPtr<IServiceInfo> si; // try { AutoPtr<IComponentName> compName; curIm->GetComponent((IComponentName**)&compName); mHost->mIPackageManager->GetServiceInfo(compName, 0, mHost->mSettings->GetCurrentUserId(), (IServiceInfo**)&si); // } catch (RemoteException ex) { // } if (si == NULL) { // Uh oh, current input method is no longer around! // Pick another one... // Slog.i(TAG, "Current input method removed: " + curInputMethodId); mHost->SetImeWindowVisibilityStatusHiddenLocked(); if (!mHost->ChooseNewDefaultIMELocked()) { changed = TRUE; curIm = NULL; // Slog.i(TAG, "Unsetting current input method"); mHost->ResetSelectedInputMethodAndSubtypeLocked(String("")); } } } } if (curIm == NULL) { // We currently don't have a default input method... is // one now available? changed = mHost->ChooseNewDefaultIMELocked(); } if (changed) { mHost->UpdateFromSettingsLocked(); } } return NOERROR; } /////////////////////////////////////////////////////////// // CInputMethodManagerService::HardKeyboardListener /////////////////////////////////////////////////////////// CAR_INTERFACE_IMPL(CInputMethodManagerService::HardKeyboardListener, IInterface) CInputMethodManagerService::HardKeyboardListener::HardKeyboardListener( /* [in] */ CInputMethodManagerService* host) : mHost(host) { } void CInputMethodManagerService::HardKeyboardListener::OnHardKeyboardStatusChange( /* [in] */ Boolean available, /* [in] */ Boolean enabled) { AutoPtr<IMessage> msg; mHost->mHandler->ObtainMessageEx2( CInputMethodManagerService::MSG_HARD_KEYBOARD_SWITCH_CHANGED, available ? 1 : 0, enabled ? 1 : 0, (IMessage**)&msg); Boolean result; mHost->mHandler->SendMessage(msg, &result); } void CInputMethodManagerService::HardKeyboardListener::HandleHardKeyboardStatusChange( /* [in] */ Boolean available, /* [in] */ Boolean enabled) { // if (DEBUG) { // Slog.w(TAG, "HardKeyboardStatusChanged: available = " + available + ", enabled = " // + enabled); // } { Mutex::Autolock lock(mHost->mMethodMapLock); Boolean showing = FALSE; if (mHost->mSwitchingDialog != NULL && mHost->mSwitchingDialogTitleView != NULL && (mHost->mSwitchingDialog->IsShowing(&showing), showing)) { AutoPtr<IView> view; mHost->mSwitchingDialogTitleView->FindViewById( R::id::hard_keyboard_section, (IView**)&view); assert(view != NULL); view->SetVisibility(available ? IView::VISIBLE : IView::GONE); } } } /////////////////////////////////////////////////////////// // CInputMethodManagerService::CheckReceiver /////////////////////////////////////////////////////////// CInputMethodManagerService::CheckReceiver::CheckReceiver( /* [in] */ CInputMethodManagerService* host) : mHost(host) { } ECode CInputMethodManagerService::CheckReceiver::OnReceive( /* [in] */ IContext* context, /* [in] */ IIntent* intent) { { Mutex::Autolock lock(mHost->mMethodMapLock); mHost->CheckCurrentLocaleChangedLocked(); } return NOERROR; } /////////////////////////////////////////////////////////// // CInputMethodManagerService::ImeSubtypeListItem /////////////////////////////////////////////////////////// CInputMethodManagerService::ImeSubtypeListItem::ImeSubtypeListItem( /* [in] */ ICharSequence* imeName, /* [in] */ ICharSequence* subtypeName, /* [in] */ IInputMethodInfo* imi, /* [in] */ Int32 subtypeId, /* [in] */ const String& subtypeLocale, /* [in] */ const String& systemLocale) : mImeName(imeName) , mSubtypeName(subtypeName) , mImi(imi) , mSubtypeId(subtypeId) { if (subtypeLocale.IsNullOrEmpty()) { mIsSystemLocale = FALSE; mIsSystemLanguage = FALSE; } else { mIsSystemLocale = subtypeLocale.Equals(systemLocale); mIsSystemLanguage = mIsSystemLocale || subtypeLocale.StartWith(systemLocale.Substring(0, 2)); } } UInt32 CInputMethodManagerService::ImeSubtypeListItem::AddRef() { return ElRefBase::AddRef(); } UInt32 CInputMethodManagerService::ImeSubtypeListItem::Release() { return ElRefBase::Release(); } PInterface CInputMethodManagerService::ImeSubtypeListItem::Probe( /* [in] */ REIID riid) { if (riid == EIID_IInterface) { return (PInterface)(IComparable*)this; } else if (riid == EIID_IComparable) { return (IComparable*)this; } return NULL; } ECode CInputMethodManagerService::ImeSubtypeListItem::GetInterfaceID( /* [in] */ IInterface *pObject, /* [out] */ InterfaceID *pIID) { VALIDATE_NOT_NULL(pIID); if (pObject == (IInterface*)(IComparable*)this) { *pIID = EIID_IComparable; } else { return E_INVALID_ARGUMENT; } return NOERROR; } ECode CInputMethodManagerService::ImeSubtypeListItem::CompareTo( /* [in] */ IInterface* _other, /* [out] */ Int32* result) { assert(result != NULL); AutoPtr<ImeSubtypeListItem> other = (ImeSubtypeListItem*)_other; if (TextUtils::IsEmpty(mImeName)) { *result = 1; return NOERROR; } if (TextUtils::IsEmpty(other->mImeName)) { *result = -1; return NOERROR; } if (!TextUtils::Equals(mImeName, other->mImeName)) { String str, otherStr; mImeName->ToString(&str); other->mImeName->ToString(&otherStr); *result = str.Compare(otherStr); return NOERROR; } if (TextUtils::Equals(mSubtypeName, other->mSubtypeName)) { *result = 0; return NOERROR; } if (mIsSystemLocale) { *result = -1; return NOERROR; } if (other->mIsSystemLocale) { *result = 1; return NOERROR; } if (mIsSystemLanguage) { *result = -1; return NOERROR; } if (other->mIsSystemLanguage) { *result = 1; return NOERROR; } if (TextUtils::IsEmpty(mSubtypeName)) { *result = 1; return NOERROR; } if (TextUtils::IsEmpty(other->mSubtypeName)) { *result = -1; return NOERROR; } String str, otherStr; mSubtypeName->ToString(&str); other->mSubtypeName->ToString(&otherStr); *result = str.Compare(otherStr); return NOERROR; } /////////////////////////////////////////////////////////// // CInputMethodManagerService::ImeSubtypeListAdapter /////////////////////////////////////////////////////////// CInputMethodManagerService::ImeSubtypeListAdapter::ImeSubtypeListAdapter( /* [in] */ IContext* context, /* [in] */ Int32 textViewResourceId, /* [in] */ List< AutoPtr<ImeSubtypeListItem> >* itemsList, /* [in] */ Int32 checkedItem) // : ArrayAdapter(Context, textViewResourceId, itemsList) // , mTextViewResourceId(textViewResourceId) // , mItemsList(itemsList) // , mCheckedItem(checkedItem) { assert(0); context->GetSystemService(IContext::LAYOUT_INFLATER_SERVICE, (IInterface**)&mInflater); } CInputMethodManagerService::ImeSubtypeListAdapter::~ImeSubtypeListAdapter() { mItemsList = NULL; } UInt32 CInputMethodManagerService::ImeSubtypeListAdapter::AddRef() { return ElRefBase::AddRef(); } UInt32 CInputMethodManagerService::ImeSubtypeListAdapter::Release() { return ElRefBase::Release(); } PInterface CInputMethodManagerService::ImeSubtypeListAdapter::Probe( /* [in] */ REIID riid) { if (EIID_IArrayAdapter == riid) { return (IArrayAdapter*)this; } else if (EIID_IBaseAdapter == riid) { return (IBaseAdapter*)this; } else if (EIID_IListAdapter == riid) { return (IListAdapter*)this; } else if (EIID_IAdapter == riid) { return (IAdapter*)this; } return NULL; } ECode CInputMethodManagerService::ImeSubtypeListAdapter::GetInterfaceID( /* [in] */ IInterface *pObject, /* [out] */ InterfaceID *pIID) { VALIDATE_NOT_NULL(pIID); if (pObject == (IInterface*)(IArrayAdapter*)this) { *pIID = EIID_IArrayAdapter; } else if (pObject == (IInterface*)(IBaseAdapter*)this) { *pIID = EIID_IBaseAdapter; } else if (pObject == (IInterface*)(IListAdapter*)this) { *pIID = EIID_IListAdapter; } else if (pObject == (IInterface*)(IAdapter*)this) { *pIID = EIID_IAdapter; } else { return E_INVALID_ARGUMENT; } return NOERROR; } AutoPtr<IView> CInputMethodManagerService::ImeSubtypeListAdapter::GetView( /* [in] */ Int32 position, /* [in] */ IView* convertView, /* [in] */ IViewGroup* parent) { AutoPtr<IView> view; if (convertView != NULL) { view = convertView; } else { mInflater->Inflate(mTextViewResourceId, NULL, (IView**)&view); } if (position < 0 || position >= mItemsList->GetSize()) return view; AutoPtr<ImeSubtypeListItem> item = (*mItemsList)[position]; assert(item != NULL); AutoPtr<ICharSequence> imeName = item->mImeName; AutoPtr<ICharSequence> subtypeName = item->mSubtypeName; AutoPtr<ITextView> firstTextView; view->FindViewById(R::id::text1, (IView**)&firstTextView); AutoPtr<ITextView> secondTextView; view->FindViewById(R::id::text2, (IView**)&secondTextView); if (TextUtils::IsEmpty(subtypeName)) { firstTextView->SetText(imeName); secondTextView->SetVisibility(IView::GONE); } else { firstTextView->SetText(subtypeName); secondTextView->SetText(imeName); secondTextView->SetVisibility(IView::VISIBLE); } AutoPtr<IRadioButton> radioButton; view->FindViewById(R::id::radio, (IView**)&radioButton); assert(ICheckable::Probe(radioButton) != NULL); ICheckable::Probe(radioButton)->SetChecked(position == mCheckedItem); return view; } /////////////////////////////////////////////////////////// // CInputMethodManagerService::InputMethodAndSubtypeListManager /////////////////////////////////////////////////////////// CInputMethodManagerService::InputMethodAndSubtypeListManager::InputMethodAndSubtypeListManager( /* [in] */ IContext* context, /* [in] */ CInputMethodManagerService* imms) : mContext(context) , mImms(imms) { context->GetPackageManager((IPackageManager**)&mPm); AutoPtr<IResources> res; context->GetResources((IResources**)&res); AutoPtr<IConfiguration> config; res->GetConfiguration((IConfiguration**)&config); AutoPtr<ILocale> locale; config->GetLocale((ILocale**)&locale); if (locale != NULL) { locale->ToString(&mSystemLocaleStr); } else { mSystemLocaleStr = ""; } } AutoPtr<CInputMethodManagerService::ImeSubtypeListItem> CInputMethodManagerService::InputMethodAndSubtypeListManager::GetNextInputMethod( /* [in] */ Boolean onlyCurrentIme, /* [in] */ IInputMethodInfo* imi, /* [in] */ IInputMethodSubtype* subtype) { if (imi == NULL) { return NULL; } AutoPtr< List< AutoPtr<ImeSubtypeListItem> > > imList = GetSortedInputMethodAndSubtypeList(); if (imList->GetSize() <= 1) { return NULL; } const Int32 N = imList->GetSize(); Int32 hashCode; const Int32 currentSubtypeId = subtype != NULL ? mImms->GetSubtypeIdFromHashCode(imi, (subtype->GetHashCode(&hashCode), hashCode)) : NOT_A_SUBTYPE_ID; List< AutoPtr<ImeSubtypeListItem> >::Iterator it; Int32 i; for (it = imList->Begin(), i = 0; it != imList->End(); ++it, ++i) { AutoPtr<ImeSubtypeListItem> isli = *it; Boolean e = FALSE; if ((isli->mImi->Equals(imi, &e), e) && isli->mSubtypeId == currentSubtypeId) { if (!onlyCurrentIme) { return (*imList)[(i + 1) % N]; } for (Int32 j = 0; j < N - 1; ++j) { AutoPtr<ImeSubtypeListItem> candidate = (*imList)[(i + j + 1) % N]; if (candidate->mImi->Equals(imi, &e), e) { return candidate; } } return NULL; } } return NULL; } AutoPtr< List< AutoPtr<CInputMethodManagerService::ImeSubtypeListItem> > > CInputMethodManagerService::InputMethodAndSubtypeListManager::GetSortedInputMethodAndSubtypeList() { return GetSortedInputMethodAndSubtypeList(TRUE, FALSE, FALSE); } AutoPtr< List< AutoPtr<CInputMethodManagerService::ImeSubtypeListItem> > > CInputMethodManagerService::InputMethodAndSubtypeListManager::GetSortedInputMethodAndSubtypeList( /* [in] */ Boolean showSubtypes, /* [in] */ Boolean inputShown, /* [in] */ Boolean isScreenLocked) { assert(0); //TODO // final ArrayList<ImeSubtypeListItem> imList = new ArrayList<ImeSubtypeListItem>(); // final HashMap<InputMethodInfo, List<InputMethodSubtype>> immis = // mImms.getExplicitlyOrImplicitlyEnabledInputMethodsAndSubtypeListLocked(); // if (immis == NULL || immis.size() == 0) { // return Collections.emptyList(); // } // mSortedImmis.clear(); // mSortedImmis.putAll(immis); // for (InputMethodInfo imi : mSortedImmis.keySet()) { // if (imi == NULL) continue; // List<InputMethodSubtype> explicitlyOrImplicitlyEnabledSubtypeList = immis.get(imi); // HashSet<String> enabledSubtypeSet = new HashSet<String>(); // for (InputMethodSubtype subtype: explicitlyOrImplicitlyEnabledSubtypeList) { // enabledSubtypeSet.add(String.valueOf(subtype.hashCode())); // } // ArrayList<InputMethodSubtype> subtypes = getSubtypes(imi); // final CharSequence imeLabel = imi.loadLabel(mPm); // if (showSubtypes && enabledSubtypeSet.size() > 0) { // final int subtypeCount = imi.getSubtypeCount(); // if (DEBUG) { // Slog.v(TAG, "Add subtypes: " + subtypeCount + ", " + imi.getId()); // } // for (int j = 0; j < subtypeCount; ++j) { // final InputMethodSubtype subtype = imi.getSubtypeAt(j); // final String subtypeHashCode = String.valueOf(subtype.hashCode()); // // We show all enabled IMEs and subtypes when an IME is shown. // if (enabledSubtypeSet.contains(subtypeHashCode) // && ((inputShown && !isScreenLocked) || !subtype.isAuxiliary())) { // final CharSequence subtypeLabel = // subtype.overridesImplicitlyEnabledSubtype() ? NULL // : subtype.getDisplayName(mContext, imi.getPackageName(), // imi.getServiceInfo().applicationInfo); // imList.add(new ImeSubtypeListItem(imeLabel, subtypeLabel, imi, j, // subtype.getLocale(), mSystemLocaleStr)); // // Removing this subtype from enabledSubtypeSet because we no longer // // need to add an entry of this subtype to imList to avoid duplicated // // entries. // enabledSubtypeSet.remove(subtypeHashCode); // } // } // } else { // imList.add(new ImeSubtypeListItem(imeLabel, NULL, imi, NOT_A_SUBTYPE_ID, // NULL, mSystemLocaleStr)); // } // } // Collections.sort(imList); // return imList; return NULL; } /////////////////////////////////////////////////////////// // CInputMethodManagerService::InputMethodSettings /////////////////////////////////////////////////////////// const Char32 CInputMethodManagerService::InputMethodSettings::INPUT_METHOD_SEPARATER = ':'; const Char32 CInputMethodManagerService::InputMethodSettings::INPUT_METHOD_SUBTYPE_SEPARATER = ';'; CInputMethodManagerService::InputMethodSettings::InputMethodSettings( /* [in] */ IResources* res, /* [in] */ IContentResolver* resolver, /* [in] */ HashMap<String, AutoPtr<IInputMethodInfo> >* methodMap, /* [in] */ InputMethodInfoList* methodList, /* [in] */ Int32 userId, /* [in] */ CInputMethodManagerService* host) : mRes(res) , mResolver(resolver) , mMethodMap(methodMap) , mMethodList(methodList) , mCurrentUserId(0) , mHost(host) { SetCurrentUserId(userId); mInputMethodSplitter = new TextUtils::SimpleStringSplitter(INPUT_METHOD_SEPARATER); mSubtypeSplitter = new TextUtils::SimpleStringSplitter(INPUT_METHOD_SUBTYPE_SEPARATER); } CInputMethodManagerService::InputMethodSettings::~InputMethodSettings() { } void CInputMethodManagerService::InputMethodSettings::BuildEnabledInputMethodsSettingString( /* [in] */ StringBuilder& builder, /* [in] */ StringStringListPair* pair) { String id = pair->mFirst; AutoPtr<List<String> > subtypes = pair->mSecond; builder.AppendString(id); // Inputmethod and subtypes are saved in the settings as follows: // ime0;subtype0;subtype1:ime1;subtype0:ime2:ime3;subtype0;subtype1 List<String>::Iterator it; for (it = subtypes->Begin(); it != subtypes->End(); ++it) { String subtypeId = *it; builder.AppendChar(INPUT_METHOD_SUBTYPE_SEPARATER); builder.AppendString(subtypeId); } } void CInputMethodManagerService::InputMethodSettings::SetCurrentUserId( /* [in] */ Int32 userId) { // if (DEBUG) { // Slog.d(TAG, "--- Swtich the current user from " + mCurrentUserId + " to " // + userId + ", new ime = " + getSelectedInputMethod()); // } // IMMS settings are kept per user, so keep track of current user mCurrentUserId = userId; } AutoPtr< InputMethodInfoList > CInputMethodManagerService::InputMethodSettings::GetEnabledInputMethodListLocked() { AutoPtr< StringStringListPairList > isList = GetEnabledInputMethodsAndSubtypeListLocked(); AutoPtr< InputMethodInfoList > imList = CreateEnabledInputMethodListLocked(isList); return imList; } AutoPtr< InputMethodInfoStingListPairList > CInputMethodManagerService::InputMethodSettings::GetEnabledInputMethodAndSubtypeHashCodeListLocked() { AutoPtr< StringStringListPairList > isList = GetEnabledInputMethodsAndSubtypeListLocked(); AutoPtr< InputMethodInfoStingListPairList > imList = CreateEnabledInputMethodAndSubtypeHashCodeListLocked(isList); return imList; } AutoPtr< InputMethodSubtypeList > CInputMethodManagerService::InputMethodSettings::GetEnabledInputMethodSubtypeListLocked( /* [in] */ IInputMethodInfo* imi) { AutoPtr< StringStringListPairList > imsList = GetEnabledInputMethodsAndSubtypeListLocked(); AutoPtr< InputMethodSubtypeList > enabledSubtypes = new InputMethodSubtypeList(); if (imi != NULL) { assert(imsList != NULL); StringStringListPairListIterator it; for (it = imsList->Begin(); it != imsList->End(); ++it) { AutoPtr<StringStringListPair> imsPair = *it; AutoPtr<IInputMethodInfo> info; HashMap<String, AutoPtr<IInputMethodInfo> >::Iterator mmit = mMethodMap->Find(imsPair->mFirst); if (mmit != mMethodMap->End()) { info = mmit->mSecond; } String id1, id2; if (info != NULL && (info->GetId(&id1), imi->GetId(&id2), id1.Equals(id2))) { Int32 subtypeCount; info->GetSubtypeCount(&subtypeCount); for (Int32 i = 0; i < subtypeCount; ++i) { AutoPtr<IInputMethodSubtype> ims; info->GetSubtypeAt(i, (IInputMethodSubtype**)&ims); List<String>::Iterator lit; for (lit = imsPair->mSecond->Begin(); lit != imsPair->mSecond->End(); ++lit) { String s = *lit; Int32 hashCode; ims->GetHashCode(&hashCode); if (StringUtils::Int32ToString(hashCode).Equals(s)) { enabledSubtypes->PushBack(ims); } } } break; } } } return enabledSubtypes; } void CInputMethodManagerService::InputMethodSettings::EnableAllIMEsIfThereIsNoEnabledIME() { String enabledInputMethodsStr = GetEnabledInputMethodsStr(); if (enabledInputMethodsStr.IsNullOrEmpty()) { StringBuilder sb; InputMethodInfoListIterator it; for (it = mMethodList->Begin(); it != mMethodList->End(); ++it) { AutoPtr<IInputMethodInfo> imi = *it; // Slog.i(TAG, "Adding: " + imi.getId()); if (it != mMethodList->Begin()) sb.AppendChar(':'); String id; imi->GetId(&id); sb.AppendString(id); } PutEnabledInputMethodsStr(sb.ToString()); } } AutoPtr< StringStringListPairList > CInputMethodManagerService::InputMethodSettings::GetEnabledInputMethodsAndSubtypeListLocked() { AutoPtr< StringStringListPairList > imsList = new StringStringListPairList(); String enabledInputMethodsStr = GetEnabledInputMethodsStr(); if (enabledInputMethodsStr.IsNullOrEmpty()) { return imsList; } mInputMethodSplitter->SetString(enabledInputMethodsStr); Boolean has = FALSE; while (mInputMethodSplitter->HasNext(&has), has) { String nextImsStr; mInputMethodSplitter->Next(&nextImsStr); mSubtypeSplitter->SetString(nextImsStr); if (mSubtypeSplitter->HasNext(&has), has) { AutoPtr<List<String> > subtypeHashes = new List<String>(); // The first element is ime id. String imeId; mSubtypeSplitter->Next(&imeId); while (mSubtypeSplitter->HasNext(&has), has) { String str; mSubtypeSplitter->Next(&str); subtypeHashes->PushBack(str); } AutoPtr<StringStringListPair> pair = new StringStringListPair(imeId, subtypeHashes); imsList->PushBack(pair); } } return imsList; } void CInputMethodManagerService::InputMethodSettings::AppendAndPutEnabledInputMethodLocked( /* [in] */ const String& id, /* [in] */ Boolean reloadInputMethodStr) { if (reloadInputMethodStr) { GetEnabledInputMethodsStr(); } if (mEnabledInputMethodsStrCache.IsNullOrEmpty()) { // Add in the newly enabled input method. PutEnabledInputMethodsStr(id); } else { PutEnabledInputMethodsStr( mEnabledInputMethodsStrCache + StringUtils::Int32ToString(INPUT_METHOD_SEPARATER) + id); } } Boolean CInputMethodManagerService::InputMethodSettings::BuildAndPutEnabledInputMethodsStrRemovingIdLocked( /* [in] */ StringBuilder& builder, /* [in] */ StringStringListPairList * imsList, /* [in] */ const String& id) { Boolean isRemoved = FALSE; Boolean needsAppendSeparator = FALSE; StringStringListPairListIterator it; for (it = imsList->Begin(); it != imsList->End(); ++it) { AutoPtr<StringStringListPair> ims = *it; String curId = ims->mFirst; if (curId.Equals(id)) { // We are disabling this input method, and it is // currently enabled. Skip it to remove from the // new list. isRemoved = TRUE; } else { if (needsAppendSeparator) { builder.AppendChar(INPUT_METHOD_SEPARATER); } else { needsAppendSeparator = TRUE; } BuildEnabledInputMethodsSettingString(builder, ims); } } if (isRemoved) { // Update the setting with the new list of input methods. PutEnabledInputMethodsStr(builder.ToString()); } return isRemoved; } AutoPtr< InputMethodInfoList > CInputMethodManagerService::InputMethodSettings::CreateEnabledInputMethodListLocked( /* [in] */ StringStringListPairList * imsList) { AutoPtr< InputMethodInfoList > res = new InputMethodInfoList(); StringStringListPairListIterator it; for (it = imsList->Begin(); it != imsList->End(); ++it) { AutoPtr<StringStringListPair> ims = *it; HashMap<String, AutoPtr<IInputMethodInfo> >::Iterator mmit = mMethodMap->Find(ims->mFirst); if (mmit != mMethodMap->End()) { res->PushBack(mmit->mSecond); } } return res; } AutoPtr< InputMethodInfoStingListPairList > CInputMethodManagerService::InputMethodSettings::CreateEnabledInputMethodAndSubtypeHashCodeListLocked( /* [in] */ StringStringListPairList * imsList) { AutoPtr< InputMethodInfoStingListPairList > res = new InputMethodInfoStingListPairList(); StringStringListPairListIterator it; for (it = imsList->Begin(); it != imsList->End(); ++it) { AutoPtr<StringStringListPair> ims = *it; HashMap<String, AutoPtr<IInputMethodInfo> >::Iterator mmit = mMethodMap->Find(ims->mFirst); if (mmit != mMethodMap->End()) { AutoPtr<InputMethodInfoStingListPair> pair = new InputMethodInfoStingListPair(mmit->mSecond, ims->mSecond); res->PushBack(pair); } } return res; } void CInputMethodManagerService::InputMethodSettings::PutEnabledInputMethodsStr( /* [in] */ const String& str) { Boolean tmp = FALSE; AutoPtr<ISettingsSecure> settingsSecure; CSettingsSecure::AcquireSingleton((ISettingsSecure**)&settingsSecure); settingsSecure->PutStringForUser( mResolver, ISettingsSecure::ENABLED_INPUT_METHODS, str, mCurrentUserId, &tmp); mEnabledInputMethodsStrCache = str; // if (DEBUG) { // Slog.d(TAG, "putEnabledInputMethodStr: " + str); // } } String CInputMethodManagerService::InputMethodSettings::GetEnabledInputMethodsStr() { AutoPtr<ISettingsSecure> settingsSecure; CSettingsSecure::AcquireSingleton((ISettingsSecure**)&settingsSecure); settingsSecure->GetStringForUser( mResolver, ISettingsSecure::ENABLED_INPUT_METHODS, mCurrentUserId, &mEnabledInputMethodsStrCache); // if (DEBUG) { // Slog.d(TAG, "getEnabledInputMethodsStr: " + mEnabledInputMethodsStrCache // + ", " + mCurrentUserId); // } return mEnabledInputMethodsStrCache; } void CInputMethodManagerService::InputMethodSettings::SaveSubtypeHistory( /* [in] */ StringStringPairList * savedImes, /* [in] */ const String& newImeId, /* [in] */ const String& newSubtypeId) { StringBuilder builder; Boolean isImeAdded = FALSE; if (!newImeId.IsNullOrEmpty() && !newSubtypeId.IsNullOrEmpty()) { builder.AppendString(newImeId); builder.AppendChar(INPUT_METHOD_SUBTYPE_SEPARATER); builder.AppendString(newSubtypeId); isImeAdded = TRUE; } StringStringPairListIterator it; for (it = savedImes->Begin(); it != savedImes->End(); ++it) { AutoPtr<StringStringPair> ime = *it; String imeId = ime->mFirst; String subtypeId = ime->mSecond; if (subtypeId.IsNullOrEmpty()) { subtypeId = NOT_A_SUBTYPE_ID_STR; } if (isImeAdded) { builder.AppendChar(INPUT_METHOD_SEPARATER); } else { isImeAdded = TRUE; } builder.AppendString(imeId); builder.AppendChar(INPUT_METHOD_SUBTYPE_SEPARATER); builder.AppendString(subtypeId); } // Remove the last INPUT_METHOD_SEPARATER PutSubtypeHistoryStr(builder.ToString()); } void CInputMethodManagerService::InputMethodSettings::AddSubtypeToHistory( /* [in] */ const String& imeId, /* [in] */ const String& subtypeId) { AutoPtr< StringStringPairList > subtypeHistory = LoadInputMethodAndSubtypeHistoryLocked(); if (subtypeHistory != NULL) { StringStringPairListIterator it; for (it = subtypeHistory->Begin(); it != subtypeHistory->End(); ++it) { AutoPtr<StringStringPair> ime = *it; if (ime->mFirst.Equals(imeId)) { // if (DEBUG) { // Slog.v(TAG, "Subtype found in the history: " + imeId + ", " // + ime.second); // } // We should break here subtypeHistory->Erase(it); break; } } // if (DEBUG) { // Slog.v(TAG, "Add subtype to the history: " + imeId + ", " + subtypeId); // } SaveSubtypeHistory(subtypeHistory, imeId, subtypeId); } } void CInputMethodManagerService::InputMethodSettings::PutSubtypeHistoryStr( /* [in] */ const String& str) { // if (DEBUG) { // Slog.d(TAG, "putSubtypeHistoryStr: " + str); // } Boolean tmp = FALSE; AutoPtr<ISettingsSecure> settingsSecure; CSettingsSecure::AcquireSingleton((ISettingsSecure**)&settingsSecure); settingsSecure->PutStringForUser( mResolver, String("input_methods_subtype_history") /*ISettingsSecure::INPUT_METHODS_SUBTYPE_HISTORY*/, str, mCurrentUserId, &tmp); } AutoPtr<StringStringPair> CInputMethodManagerService::InputMethodSettings::GetLastInputMethodAndSubtypeLocked() { // Gets the first one from the history return GetLastSubtypeForInputMethodLockedInternal(String(NULL)); } String CInputMethodManagerService::InputMethodSettings::GetLastSubtypeForInputMethodLocked( /* [in] */ const String& imeId) { AutoPtr<StringStringPair> ime = GetLastSubtypeForInputMethodLockedInternal(imeId); String result; if (ime != NULL) { result = ime->mSecond; } return result; } AutoPtr<StringStringPair> CInputMethodManagerService::InputMethodSettings::GetLastSubtypeForInputMethodLockedInternal( /* [in] */ const String& imeId) { AutoPtr<StringStringPair> result; AutoPtr< StringStringListPairList > enabledImes = GetEnabledInputMethodsAndSubtypeListLocked(); AutoPtr< StringStringPairList > subtypeHistory = LoadInputMethodAndSubtypeHistoryLocked(); StringStringPairListIterator it; for (it = subtypeHistory->Begin(); it != subtypeHistory->End(); ++it) { AutoPtr<StringStringPair> imeAndSubtype = *it; String imeInTheHistory = imeAndSubtype->mFirst; // If imeId is empty, returns the first IME and subtype in the history if (imeId.IsNullOrEmpty() || imeInTheHistory.Equals(imeId)) { String subtypeInTheHistory = imeAndSubtype->mSecond; String subtypeHashCode = GetEnabledSubtypeHashCodeForInputMethodAndSubtypeLocked( enabledImes, imeInTheHistory, subtypeInTheHistory); if (!subtypeHashCode.IsNullOrEmpty()) { // if (DEBUG) { // Slog.d(TAG, "Enabled subtype found in the history: " + subtypeHashCode); // } result = new StringStringPair(imeInTheHistory, subtypeHashCode); } } } // if (DEBUG) { // Slog.d(TAG, "No enabled IME found in the history"); // } return result; } String CInputMethodManagerService::InputMethodSettings::GetEnabledSubtypeHashCodeForInputMethodAndSubtypeLocked( /* [in] */ StringStringListPairList * enabledImes, /* [in] */ const String& imeId, /* [in] */ const String& subtypeHashCode) { StringStringListPairListIterator it; for (it = enabledImes->Begin(); it != enabledImes->End(); ++it) { AutoPtr<StringStringListPair> enabledIme = *it; if (enabledIme->mFirst.Equals(imeId)) { AutoPtr< List<String> > explicitlyEnabledSubtypes = enabledIme->mSecond; AutoPtr<IInputMethodInfo> imi; HashMap<String, AutoPtr<IInputMethodInfo> >::Iterator mmit = mMethodMap->Find(imeId); if (mmit != mMethodMap->End()) { imi = mmit->mSecond; } if (explicitlyEnabledSubtypes->IsEmpty()) { // If there are no explicitly enabled subtypes, applicable subtypes are // enabled implicitly. // If IME is enabled and no subtypes are enabled, applicable subtypes // are enabled implicitly, so needs to treat them to be enabled. Int32 subtypeCount = 0; if (imi != NULL && (imi->GetSubtypeCount(&subtypeCount), subtypeCount) > 0) { AutoPtr< InputMethodSubtypeList > implicitlySelectedSubtypes = GetImplicitlyApplicableSubtypesLocked(mRes, imi); if (implicitlySelectedSubtypes != NULL) { InputMethodSubtypeListIterator ssit; for (ssit = implicitlySelectedSubtypes->Begin(); ssit != implicitlySelectedSubtypes->End(); ++ssit) { AutoPtr<IInputMethodSubtype> st = *ssit; Int32 hashCode; st->GetHashCode(&hashCode); if (StringUtils::Int32ToString(hashCode).Equals(subtypeHashCode)) { return subtypeHashCode; } } } } } else { List<String>::Iterator sit; for (sit = explicitlyEnabledSubtypes->Begin(); sit != explicitlyEnabledSubtypes->End(); ++sit) { String s = *sit; if (s.Equals(subtypeHashCode)) { // If both imeId and subtypeId are enabled, return subtypeId. // try { const Int32 hashCode = StringUtils::ParseInt32(subtypeHashCode); // Check whether the subtype id is valid or not if (IsValidSubtypeId(imi, hashCode)) { return s; } else { return NOT_A_SUBTYPE_ID_STR; } // } catch (NumberFormatException e) { // return NOT_A_SUBTYPE_ID_STR; // } } } } // If imeId was enabled but subtypeId was disabled. return NOT_A_SUBTYPE_ID_STR; } } // If both imeId and subtypeId are disabled, return NULL return String(NULL); } AutoPtr< StringStringPairList > CInputMethodManagerService::InputMethodSettings::LoadInputMethodAndSubtypeHistoryLocked() { AutoPtr< StringStringPairList > imsList = new StringStringPairList(); String subtypeHistoryStr = GetSubtypeHistoryStr(); if (subtypeHistoryStr.IsNullOrEmpty()) { return imsList; } mInputMethodSplitter->SetString(subtypeHistoryStr); Boolean hasNext = FALSE; while (mInputMethodSplitter->HasNext(&hasNext), hasNext) { String nextImsStr; mInputMethodSplitter->Next(&nextImsStr); mSubtypeSplitter->SetString(nextImsStr); if (mSubtypeSplitter->HasNext(&hasNext), hasNext) { String subtypeId = NOT_A_SUBTYPE_ID_STR; // The first element is ime id. String imeId; mSubtypeSplitter->Next(&imeId); while (mSubtypeSplitter->HasNext(&hasNext), hasNext) { mSubtypeSplitter->Next(&subtypeId); break; } AutoPtr<StringStringPair> pair = new StringStringPair(imeId, subtypeId); imsList->PushBack(pair); } } return imsList; } String CInputMethodManagerService::InputMethodSettings::GetSubtypeHistoryStr() { // if (DEBUG) { // Slog.d(TAG, "getSubtypeHistoryStr: " + Settings.Secure.getStringForUser( // mResolver, Settings.Secure.INPUT_METHODS_SUBTYPE_HISTORY, mCurrentUserId)); // } String str; AutoPtr<ISettingsSecure> settingsSecure; CSettingsSecure::AcquireSingleton((ISettingsSecure**)&settingsSecure); settingsSecure->GetStringForUser( mResolver, String("input_methods_subtype_history") /*ISettingsSecure::INPUT_METHODS_SUBTYPE_HISTORY*/, mCurrentUserId, &str); return str; } void CInputMethodManagerService::InputMethodSettings::PutSelectedInputMethod( /* [in] */ const String& imeId) { // if (DEBUG) { // Slog.d(TAG, "putSelectedInputMethodStr: " + imeId + ", " // + mCurrentUserId); // } Boolean tmp = FALSE; AutoPtr<ISettingsSecure> settingsSecure; CSettingsSecure::AcquireSingleton((ISettingsSecure**)&settingsSecure); settingsSecure->PutStringForUser( mResolver, ISettingsSecure::DEFAULT_INPUT_METHOD, imeId, mCurrentUserId, &tmp); } void CInputMethodManagerService::InputMethodSettings::PutSelectedSubtype( /* [in] */ Int32 subtypeId) { // if (DEBUG) { // Slog.d(TAG, "putSelectedInputMethodSubtypeStr: " + subtypeId + ", " // + mCurrentUserId); // } Boolean tmp = FALSE; AutoPtr<ISettingsSystem> settingsSystem; CSettingsSystem::AcquireSingleton((ISettingsSystem**)&settingsSystem); settingsSystem->PutInt32ForUser(mResolver, String("selected_input_method_subtype") /*ISettingsSecure::SELECTED_INPUT_METHOD_SUBTYPE*/, subtypeId, mCurrentUserId, &tmp); } String CInputMethodManagerService::InputMethodSettings::GetDisabledSystemInputMethods() { String inputMethods; AutoPtr<ISettingsSecure> settingsSecure; CSettingsSecure::AcquireSingleton((ISettingsSecure**)&settingsSecure); settingsSecure->GetStringForUser( mResolver, ISettingsSecure::DISABLED_SYSTEM_INPUT_METHODS, mCurrentUserId, &inputMethods); return inputMethods; } String CInputMethodManagerService::InputMethodSettings::GetSelectedInputMethod() { // if (DEBUG) { // Slog.d(TAG, "getSelectedInputMethodStr: " + Settings.Secure.getStringForUser( // mResolver, Settings.Secure.DEFAULT_INPUT_METHOD, mCurrentUserId) // + ", " + mCurrentUserId); // } String inputMethod; AutoPtr<ISettingsSecure> settingsSecure; CSettingsSecure::AcquireSingleton((ISettingsSecure**)&settingsSecure); settingsSecure->GetStringForUser( mResolver, ISettingsSecure::DEFAULT_INPUT_METHOD, mCurrentUserId, &inputMethod); return inputMethod; } Int32 CInputMethodManagerService::InputMethodSettings::GetSelectedInputMethodSubtypeHashCode() { // try { Int32 value = 0; AutoPtr<ISettingsSystem> settingsSystem; CSettingsSystem::AcquireSingleton((ISettingsSystem**)&settingsSystem); ECode ec = settingsSystem->GetInt32ForUserEx( mResolver, ISettingsSecure::SELECTED_INPUT_METHOD_SUBTYPE, mCurrentUserId, &value); if (FAILED(ec)/*SettingNotFoundException*/) { return NOT_A_SUBTYPE_ID; } return value; // } catch (SettingNotFoundException e) { // return NOT_A_SUBTYPE_ID; // } } Int32 CInputMethodManagerService::InputMethodSettings::GetCurrentUserId() { return mCurrentUserId; } /////////////////////////////////////////////////////////// // CInputMethodManagerService::InputMethodFileManager /////////////////////////////////////////////////////////// const String CInputMethodManagerService::InputMethodFileManager::SYSTEM_PATH("system"); const String CInputMethodManagerService::InputMethodFileManager::INPUT_METHOD_PATH("inputmethod"); const String CInputMethodManagerService::InputMethodFileManager::ADDITIONAL_SUBTYPES_FILE_NAME("subtypes.xml"); const String CInputMethodManagerService::InputMethodFileManager::NODE_SUBTYPES("subtypes"); const String CInputMethodManagerService::InputMethodFileManager::NODE_SUBTYPE("subtype"); const String CInputMethodManagerService::InputMethodFileManager::NODE_IMI("imi"); const String CInputMethodManagerService::InputMethodFileManager::ATTR_ID("id"); const String CInputMethodManagerService::InputMethodFileManager::ATTR_LABEL("label"); const String CInputMethodManagerService::InputMethodFileManager::ATTR_ICON("icon"); const String CInputMethodManagerService::InputMethodFileManager::ATTR_IME_SUBTYPE_LOCALE("imeSubtypeLocale"); const String CInputMethodManagerService::InputMethodFileManager::ATTR_IME_SUBTYPE_MODE("imeSubtypeMode"); const String CInputMethodManagerService::InputMethodFileManager::ATTR_IME_SUBTYPE_EXTRA_VALUE("imeSubtypeExtraValue"); const String CInputMethodManagerService::InputMethodFileManager::ATTR_IS_AUXILIARY("isAuxiliary"); CInputMethodManagerService::InputMethodFileManager::InputMethodFileManager( /* [in] */ HashMap<String, AutoPtr<IInputMethodInfo> >* methodMap, /* [in] */ Int32 userId, /* [in] */ CInputMethodManagerService* host) : mHost(host) { if (methodMap == NULL) { assert(0); // throw new NullPointerException("methodMap is NULL"); } mMethodMap = methodMap; AutoPtr<IFile> systemDir; if (userId == IUserHandle::USER_OWNER) { AutoPtr<IEnvironment> env; CEnvironment::AcquireSingleton((IEnvironment**)&env); AutoPtr<IFile> dataDir; env->GetDataDirectory((IFile**)&dataDir); CFile::New(dataDir, SYSTEM_PATH, (IFile**)&systemDir); } else { AutoPtr<IEnvironment> env; CEnvironment::AcquireSingleton((IEnvironment**)&env); AutoPtr<IFile> sysDir; env->GetUserSystemDirectory(userId, (IFile**)&systemDir); } AutoPtr<IFile> inputMethodDir; CFile::New(systemDir, INPUT_METHOD_PATH, (IFile**)&inputMethodDir); Boolean result = FALSE; if (!(inputMethodDir->Mkdirs(&result), result)) { // Slog.w(TAG, "Couldn't create dir.: " + inputMethodDir.getAbsolutePath()); } AutoPtr<IFile> subtypeFile; CFile::New(inputMethodDir, ADDITIONAL_SUBTYPES_FILE_NAME, (IFile**)&subtypeFile); CAtomicFile::New(subtypeFile, (IAtomicFile**)&mAdditionalInputMethodSubtypeFile); if (!(subtypeFile->Exists(&result), result)) { // If "subtypes.xml" doesn't exist, create a blank file. WriteAdditionalInputMethodSubtypes( &mAdditionalSubtypesMap, mAdditionalInputMethodSubtypeFile, methodMap); } else { ReadAdditionalInputMethodSubtypes( &mAdditionalSubtypesMap, mAdditionalInputMethodSubtypeFile); } } void CInputMethodManagerService::InputMethodFileManager::DeleteAllInputMethodSubtypes( /* [in] */ const String& imiId) { { Mutex::Autolock lock(mMethodMapLock); mAdditionalSubtypesMap.Erase(imiId); WriteAdditionalInputMethodSubtypes( &mAdditionalSubtypesMap, mAdditionalInputMethodSubtypeFile, mMethodMap); } } void CInputMethodManagerService::InputMethodFileManager::AddInputMethodSubtypes( /* [in] */ IInputMethodInfo* imi, /* [in] */ ArrayOf<IInputMethodSubtype*>* additionalSubtypes) { { Mutex::Autolock lock(mMethodMapLock); AutoPtr< InputMethodSubtypeList > subtypes = new InputMethodSubtypeList(); const Int32 N = additionalSubtypes->GetLength(); for (Int32 i = 0; i < N; ++i) { AutoPtr<IInputMethodSubtype> subtype = (*additionalSubtypes)[i]; InputMethodSubtypeListIterator it = Find(subtypes->Begin(), subtypes->End(), subtype); if (it == subtypes->End()) { subtypes->PushBack(subtype); } else { // Slog.w(TAG, "Duplicated subtype definition found: " // + subtype.getLocale() + ", " + subtype.getMode()); } } String id; imi->GetId(&id); mAdditionalSubtypesMap[id] = subtypes; WriteAdditionalInputMethodSubtypes( &mAdditionalSubtypesMap, mAdditionalInputMethodSubtypeFile, mMethodMap); } } AutoPtr<IObjectStringMap> CInputMethodManagerService::InputMethodFileManager::GetAllAdditionalInputMethodSubtypes() { Mutex::Autolock lock(mMethodMapLock); AutoPtr<IObjectStringMap> map; CObjectStringMap::New((IObjectStringMap**)&map); String key; InputMethodSubtypeList* list; IInputMethodSubtype* subtype; HashMap<String, AutoPtr< InputMethodSubtypeList > >::Iterator it; InputMethodSubtypeListIterator lit; for (it = mAdditionalSubtypesMap.Begin(); it != mAdditionalSubtypesMap.End(); ++it) { key = it->mFirst; list = it->mSecond; AutoPtr<IObjectContainer> value; CObjectContainer::New((IObjectContainer**)&value); for (lit = list->Begin(); lit != list->End(); ++lit) { subtype = *lit; value->Add(subtype->Probe(EIID_IInterface)); } map->Put(key, value->Probe(EIID_IInterface)); } return map; } void CInputMethodManagerService::InputMethodFileManager::WriteAdditionalInputMethodSubtypes( /* [in] */ HashMap<String, AutoPtr< InputMethodSubtypeList > >* allSubtypes, /* [in] */ IAtomicFile* subtypesFile, /* [in] */ HashMap<String, AutoPtr<IInputMethodInfo> >* methodMap) { // Safety net for the case that this function is called before methodMap is set. Boolean isSetMethodMap = methodMap != NULL && methodMap->IsEmpty() == FALSE; AutoPtr<IFileOutputStream> fos; // try { subtypesFile->StartWrite((IFileOutputStream**)&fos); AutoPtr<IFastXmlSerializer> out; CFastXmlSerializer::New((IFastXmlSerializer**)&out); assert(out != NULL); out->SetOutput(fos, String("utf-8")); AutoPtr<IBoolean> standalone; CBoolean::New(TRUE, (IBoolean**)&standalone); out->StartDocument(String(NULL), standalone); out->SetFeature(String("http://xmlpull.org/v1/doc/features.html#indent-output"), TRUE); out->WriteStartTag(String(NULL), NODE_SUBTYPES); assert(allSubtypes != NULL); HashMap<String, AutoPtr< InputMethodSubtypeList > >::Iterator itKey = allSubtypes->Begin(); for (; itKey != allSubtypes->End(); itKey++) { String imiId = itKey->mFirst; Boolean containsKey = FALSE; HashMap<String, AutoPtr<IInputMethodInfo> >::Iterator ator = methodMap->Find(imiId); if (ator != methodMap->End()) { containsKey = TRUE; } if (isSetMethodMap && !containsKey) { // Slog.w(TAG, "IME uninstalled or not valid.: " + imiId); continue; } out->WriteStartTag(String(NULL), NODE_IMI); out->WriteAttribute(String(NULL), ATTR_ID, imiId); AutoPtr< InputMethodSubtypeList > subtypesList = (*allSubtypes)[imiId]; InputMethodSubtypeList::Iterator it = subtypesList->Begin(); for (; it != subtypesList->End(); it++) { AutoPtr<IInputMethodSubtype> subtype = *it; out->WriteStartTag(String(NULL), NODE_SUBTYPE); Int32 id = 0; out->WriteAttribute(String(NULL), ATTR_ICON, StringUtils::Int32ToString(subtype->GetIconResId(&id), id)); out->WriteAttribute(String(NULL), ATTR_LABEL, StringUtils::Int32ToString(subtype->GetNameResId(&id), id)); String value; out->WriteAttribute(String(NULL), ATTR_IME_SUBTYPE_LOCALE, (subtype->GetLocale(&value), value)); out->WriteAttribute(String(NULL), ATTR_IME_SUBTYPE_MODE, (subtype->GetMode(&value), value)); out->WriteAttribute(String(NULL), ATTR_IME_SUBTYPE_EXTRA_VALUE, (subtype->GetExtraValue(&value), value)); Boolean isAuxiliary = FALSE; out->WriteAttribute(String(NULL), ATTR_IS_AUXILIARY, StringUtils::Int32ToString((subtype->IsAuxiliary(&isAuxiliary), isAuxiliary) ? 1 : 0)); out->WriteEndTag(String(NULL), NODE_SUBTYPE); } out->WriteEndTag(String(NULL), NODE_IMI); } out->WriteEndTag(String(NULL), NODE_SUBTYPES); out->EndDocument(); subtypesFile->FinishWrite(fos); // } catch (java.io.IOException e) { // Slog.w(TAG, "Error writing subtypes", e); // if (fos != NULL) { // subtypesFile.failWrite(fos); // } // } } void CInputMethodManagerService::InputMethodFileManager::ReadAdditionalInputMethodSubtypes( /* [in] */ HashMap<String, AutoPtr< InputMethodSubtypeList > >* allSubtypes, /* [in] */ IAtomicFile* subtypesFile) { if (allSubtypes == NULL || subtypesFile == NULL) return; allSubtypes->Clear(); AutoPtr<IFileInputStream> fis; // // try { subtypesFile->OpenRead((IFileInputStream**)&fis); AutoPtr<IXmlPullParser> parser = Xml::NewPullParser(); parser->SetInputEx(fis, String(NULL)); Int32 type = 0; parser->GetEventType(&type); // Skip parsing until START_TAG Int32 nextType = 0; while ((parser->Next(&type), type) != IXmlPullParser::START_TAG && type != IXmlPullParser::END_DOCUMENT) {} String firstNodeName; parser->GetName(&firstNodeName); if (!NODE_SUBTYPES.Equals(firstNodeName)) { assert(0); // throw new XmlPullParserException("Xml doesn't start with subtypes"); } Int32 depth = 0, nextDepth; parser->GetDepth(&depth); String currentImiId; AutoPtr< InputMethodSubtypeList > tempSubtypesArray; while (((parser->Next(&type), type) != IXmlPullParser::END_TAG || (parser->GetDepth(&nextDepth), nextDepth) > depth) && type != IXmlPullParser::END_DOCUMENT) { if (type != IXmlPullParser::START_TAG) continue; String nodeName; parser->GetName(&nodeName); if (NODE_IMI.Equals(nodeName) == 0) { parser->GetAttributeValueEx(String(NULL)/*NULL*/, ATTR_ID, &currentImiId); AutoPtr<ICharSequence> tmp; CStringWrapper::New(currentImiId, (ICharSequence**)&tmp); if (TextUtils::IsEmpty(tmp.Get())) { // Slog.w(TAG, "Invalid imi id found in subtypes.xml"); continue; } tempSubtypesArray = new InputMethodSubtypeList(); (*allSubtypes)[currentImiId] = tempSubtypesArray; } else if (NODE_SUBTYPE.Equals(nodeName) == 0) { AutoPtr<ICharSequence> tmp; CStringWrapper::New(currentImiId, (ICharSequence**)&tmp); if (TextUtils::IsEmpty(tmp.Get()) || tempSubtypesArray == NULL) { // Slog.w(TAG, "IME uninstalled or not valid.: " + currentImiId); continue; } String value; parser->GetAttributeValueEx(String(NULL), ATTR_ICON, &value); const Int32 icon = StringUtils::ParseInt32(value); parser->GetAttributeValueEx(String(NULL), ATTR_LABEL, &value); const Int32 label = StringUtils::ParseInt32(value); String imeSubtypeLocale; parser->GetAttributeValueEx(String(NULL), ATTR_IME_SUBTYPE_LOCALE, &imeSubtypeLocale); String imeSubtypeMode; parser->GetAttributeValueEx(String(NULL), ATTR_IME_SUBTYPE_MODE, &imeSubtypeMode); String imeSubtypeExtraValue; parser->GetAttributeValueEx(String(NULL), ATTR_IME_SUBTYPE_EXTRA_VALUE, &imeSubtypeExtraValue); Boolean isAuxiliary = String("1").Equals( (parser->GetAttributeValueEx(String(NULL), ATTR_IS_AUXILIARY, &value), value)) == 0; AutoPtr<IInputMethodSubtype> subtype; CInputMethodSubtype::New(label, icon, imeSubtypeLocale, imeSubtypeMode, imeSubtypeExtraValue, isAuxiliary, (IInputMethodSubtype**)&subtype); tempSubtypesArray->PushBack(subtype); } } // // } catch (XmlPullParserException e) { // // Slog.w(TAG, "Error reading subtypes: " + e); // // return; // // } catch (java.io.IOException e) { // // Slog.w(TAG, "Error reading subtypes: " + e); // // return; // // } catch (NumberFormatException e) { // // Slog.w(TAG, "Error reading subtypes: " + e); // // return; // // } // // finally { if (fis != NULL) { // try { fis->Close(); // } catch (java.io.IOException e1) { // Slog.w(TAG, "Failed to close."); // } } // // } } /////////////////////////////////////////////////////////// // CInputMethodManagerService /////////////////////////////////////////////////////////// CInputMethodManagerService::CInputMethodManagerService() : mVisibleConnection(new VisibleServiceConnection()) , mVisibleBound(FALSE) , mClients(50) , mSystemReady(FALSE) , mCurSeq(0) , mHaveConnection(FALSE) , mShowRequested(FALSE) , mShowExplicitlyRequested(FALSE) , mShowForced(FALSE) , mInputShown(FALSE) , mLastBindTime(0) , mBoundToMethod(FALSE) , mScreenOn(TRUE) , mBackDisposition(IInputMethodService::BACK_DISPOSITION_DEFAULT) , mImeWindowVis(0) , mWindowManagerService(NULL) , mSecureSuggestionSpans(20) , mShowOngoingImeSwitcherForPhones(FALSE) , mNotificationShown(FALSE) , mImeSelectedOnBoot(FALSE) , mShortcutInputMethodsAndSubtypes(20) , mInputBoundToKeyguard(FALSE) { mMethodList = new InputMethodInfoList(); mMethodMap = new HashMap<String, AutoPtr<IInputMethodInfo> >(10); ASSERT_SUCCEEDED(CInputBindResult::New(NULL, String(NULL), -1, (IInputBindResult**)&mNoBinding)); mMyPackageMonitor = new MyPackageMonitor(this); } CInputMethodManagerService::~CInputMethodManagerService() { mMethodList = NULL; mMethodMap = NULL; mClients.Clear(); mSecureSuggestionSpans.Clear(); mShortcutInputMethodsAndSubtypes.Clear(); } ECode CInputMethodManagerService::constructor( /* [in] */ IContext* context, /* [in] */ Handle32 windowManager) { mIPackageManager = AppGlobals::GetPackageManager(); mContext = context; context->GetResources((IResources**)&mRes); CHandler::New(THIS_PROBE(IHandlerCallback), FALSE, (IHandler**)&mHandler); mIWindowManager = IIWindowManager::Probe(ServiceManager::GetService(IContext::WINDOW_SERVICE)); AutoPtr<ILooper> looper; context->GetMainLooper((ILooper**)&looper); AutoPtr<IWeakReference> wr; GetWeakReference((IWeakReference**)&wr); AutoPtr<IHandlerCallerCallback> callback = new MyHandlerCallerCallback(wr); mCaller = new HandlerCaller(context, callback, TRUE); mWindowManagerService = (CWindowManagerService*)windowManager; mHardKeyboardListener = new HardKeyboardListener(this); CNotification::New((INotification**)&mImeSwitcherNotification); mImeSwitcherNotification->SetIcon(R::drawable::ic_notification_ime_default); mImeSwitcherNotification->SetWhen(0); mImeSwitcherNotification->SetFlags(INotification::FLAG_ONGOING_EVENT); mImeSwitcherNotification->SetTickerText(NULL); mImeSwitcherNotification->SetDefaults(0); // please be quiet mImeSwitcherNotification->SetSound(NULL); mImeSwitcherNotification->SetVibrate(NULL); // Tag this notification specially so SystemUI knows it's important AutoPtr< ArrayOf<String> > kind = ArrayOf<String>::Alloc(1); (*kind)[0] = "android.system.imeswitcher"; mImeSwitcherNotification->SetKind(kind); AutoPtr<IIntent> intent; CIntent::New(ISettings::ACTION_SHOW_INPUT_METHOD_PICKER, (IIntent**)&intent); AutoPtr<IPendingIntentHelper> pendingHelper; CPendingIntentHelper::AcquireSingleton((IPendingIntentHelper**)&pendingHelper); pendingHelper->GetBroadcast(mContext, 0, intent, 0, (IPendingIntent**)&mImeSwitchPendingIntent); mShowOngoingImeSwitcherForPhones = FALSE; AutoPtr<IIntentFilter> broadcastFilter; CIntentFilter::New((IIntentFilter**)&broadcastFilter); broadcastFilter->AddAction(IIntent::ACTION_SCREEN_ON); broadcastFilter->AddAction(IIntent::ACTION_SCREEN_OFF); broadcastFilter->AddAction(IIntent::ACTION_CLOSE_SYSTEM_DIALOGS); AutoPtr<IIntent> stickyIntent; AutoPtr<IBroadcastReceiver> receiver = new ImmsBroadcastReceiver(this); mContext->RegisterReceiver(receiver, broadcastFilter, (IIntent**)&stickyIntent); mNotificationShown = FALSE; Int32 userId = 0; // try { AutoPtr<IIActivityManager> am = ActivityManagerNative::GetDefault(); AutoPtr<IUserSwitchObserver> observer; CInputMethodManagerServiceUserSwitchObserver::New((Handle32)this, (IUserSwitchObserver**)&observer); am->RegisterUserSwitchObserver(observer); AutoPtr<IUserInfo> user; am->GetCurrentUser((IUserInfo**)&user); user->GetId(&userId); // } catch (RemoteException e) { // Slog.w(TAG, "Couldn't get current user ID; guessing it's 0", e); // } AutoPtr<IUserHandle> allUserHande; AutoPtr<IUserHandleHelper> helper; CUserHandleHelper::AcquireSingleton((IUserHandleHelper**)&helper); helper->GetALL((IUserHandle**)&allUserHande); mMyPackageMonitor->RegisterEx(mContext, NULL, allUserHande, TRUE); // mSettings should be created before buildInputMethodListLocked AutoPtr<IContentResolver> resolver; context->GetContentResolver((IContentResolver**)&resolver); mSettings = new InputMethodSettings(mRes, resolver, mMethodMap, mMethodList, userId, this); mFileManager = new InputMethodFileManager(mMethodMap, userId, this); mImListManager = new InputMethodAndSubtypeListManager(context, this); // Just checking if defaultImiId is empty or not String defaultImiId = mSettings->GetSelectedInputMethod(); mImeSelectedOnBoot = !defaultImiId.IsNullOrEmpty(); BuildInputMethodListLocked(mMethodList, mMethodMap); mSettings->EnableAllIMEsIfThereIsNoEnabledIME(); if (!mImeSelectedOnBoot) { // Slog.w(TAG, "No IME selected. Choose the most applicable IME."); ResetDefaultImeLocked(context); } mSettingsObserver = new SettingsObserver(mHandler, this); UpdateFromSettingsLocked(); // IMMS wants to receive Intent.ACTION_LOCALE_CHANGED in order to update the current IME // according to the new system locale. AutoPtr<IIntentFilter> filter; CIntentFilter::New((IIntentFilter**)&filter); filter->AddAction(IIntent::ACTION_LOCALE_CHANGED); stickyIntent = NULL; AutoPtr<IBroadcastReceiver> checkReceiver = new CheckReceiver(this); return mContext->RegisterReceiver(checkReceiver, filter, (IIntent**)&stickyIntent); } void CInputMethodManagerService::ResetDefaultImeLocked( /* [in] */ IContext* context) { // Do not reset the default (current) IME when it is a 3rd-party IME if (!mCurMethodId.IsNull()) { AutoPtr<IInputMethodInfo> method; HashMap<String, AutoPtr<IInputMethodInfo> >::Iterator it = mMethodMap->Find(mCurMethodId); if (it != mMethodMap->End()) { method = it->mSecond; } if (!IsSystemIme(method)) return; } AutoPtr<IInputMethodInfo> defIm; InputMethodInfoListIterator mlit; for (mlit = mMethodList->Begin(); mlit != mMethodList->End(); ++mlit) { AutoPtr<IInputMethodInfo> imi = *mlit; if (defIm == NULL) { if (IsValidSystemDefaultIme(imi, context)) { defIm = imi; // Slog.i(TAG, "Selected default: " + imi.getId()); } } } if (defIm == NULL && !mMethodList->IsEmpty()) { defIm = GetMostApplicableDefaultIMELocked(); // Slog.i(TAG, "No default found, using " + defIm.getId()); } if (defIm != NULL) { SetSelectedInputMethodAndSubtypeLocked(defIm, NOT_A_SUBTYPE_ID, FALSE); } } void CInputMethodManagerService::ResetAllInternalStateLocked( /* [in] */ Boolean updateOnlyWhenLocaleChanged) { if (!mSystemReady) { // not system ready return; } AutoPtr<ILocale> newLocale; AutoPtr<IConfiguration> config; mRes->GetConfiguration((IConfiguration**)&config); config->GetLocale((ILocale**)&newLocale); Boolean result = FALSE; if (!updateOnlyWhenLocaleChanged || (newLocale != NULL && !(newLocale->Equals(mLastSystemLocale, &result), result))) { if (!updateOnlyWhenLocaleChanged) { HideCurrentInputLocked(0, NULL); mCurMethodId = NULL; UnbindCurrentMethodLocked(TRUE, FALSE); } // if (DEBUG) { // Slog.i(TAG, "Locale has been changed to " + newLocale); // } // InputMethodAndSubtypeListManager should be reset when the locale is changed. mImListManager = new InputMethodAndSubtypeListManager(mContext, this); BuildInputMethodListLocked(mMethodList, mMethodMap); if (!updateOnlyWhenLocaleChanged) { String selectedImiId = mSettings->GetSelectedInputMethod(); if (selectedImiId.IsNullOrEmpty()) { // This is the first time of the user switch and // set the current ime to the proper one. ResetDefaultImeLocked(mContext); } } else { // If the locale is changed, needs to reset the default ime ResetDefaultImeLocked(mContext); } UpdateFromSettingsLocked(); mLastSystemLocale = newLocale; if (!updateOnlyWhenLocaleChanged) { // try { AutoPtr<IInputBindResult> result; StartInputInnerLocked((IInputBindResult**)&result); // } catch (RuntimeException e) { // Slog.w(TAG, "Unexpected exception", e); // } } } } void CInputMethodManagerService::CheckCurrentLocaleChangedLocked() { ResetAllInternalStateLocked(TRUE); } void CInputMethodManagerService::SwitchUserLocked( /* [in] */ Int32 newUserId) { mSettings->SetCurrentUserId(newUserId); // InputMethodFileManager should be reset when the user is changed mFileManager = new InputMethodFileManager(mMethodMap, newUserId, this); ResetAllInternalStateLocked(FALSE); } Boolean CInputMethodManagerService::IsValidSystemDefaultIme( /* [in] */ IInputMethodInfo* imi, /* [in] */ IContext* context) { if (!mSystemReady) { return FALSE; } if (!IsSystemIme(imi)) { return FALSE; } Int32 resID = 0; if ((imi->GetIsDefaultResourceId(&resID), resID) != 0) { // try { AutoPtr<IResources> res; AutoPtr<IContext> packageContext; String pNname; imi->GetPackageName(&pNname); context->CreatePackageContext(pNname, 0, (IContext**)&packageContext); packageContext->GetResources((IResources**)&res); AutoPtr<IResources> tmpRes; context->GetResources((IResources**)&tmpRes); AutoPtr<IConfiguration> config; tmpRes->GetConfiguration((IConfiguration**)&config); AutoPtr<ILocale> locale; config->GetLocale((ILocale**)&locale); String language; locale->GetLanguage(&language); Boolean value = FALSE; if ((res->GetBoolean(resID, &value), value) && ContainsSubtypeOf(imi, language)) { return TRUE; } // } catch (PackageManager.NameNotFoundException ex) { // } catch (Resources.NotFoundException ex) { // } } Int32 count = 0; if ((imi->GetSubtypeCount(&count), count) == 0) { // Slog.w(TAG, "Found no subtypes in a system IME: " + imi.getPackageName()); } return FALSE; } AutoPtr<ILocale> CInputMethodManagerService::GetEnglishLocale() { if (CInputMethodManagerService::ENGLISH_LOCALE.Get() == NULL) { AutoPtr<ILocale> locale; CLocale::New(String("en"), (ILocale**)&locale); CInputMethodManagerService::ENGLISH_LOCALE = locale; } return CInputMethodManagerService::ENGLISH_LOCALE; } Boolean CInputMethodManagerService::IsSystemImeThatHasEnglishSubtype( /* [in] */ IInputMethodInfo* imi) { if (!IsSystemIme(imi)) { return FALSE; } String language; GetEnglishLocale()->GetLanguage(&language); return ContainsSubtypeOf(imi, language); } Boolean CInputMethodManagerService::ContainsSubtypeOf( /* [in] */ IInputMethodInfo* imi, /* [in] */ const String& language) { Int32 N = 0; imi->GetSubtypeCount(&N); for (Int32 i = 0; i < N; ++i) { AutoPtr<IInputMethodSubtype> subtype; imi->GetSubtypeAt(i, (IInputMethodSubtype**)&subtype); String locale; subtype->GetLocale(&locale); if (locale.StartWith(language)) { return TRUE; } } return FALSE; } void CInputMethodManagerService::SystemReady( /* [in] */ CStatusBarManagerService* statusBar) { Mutex::Autolock lock(mMethodMapLock); if (DEBUG) { Slogger::D(TAG, "--- systemReady"); } if (!mSystemReady) { mSystemReady = TRUE; { //TODO Added by [wanli]: because com.android.provider.settings is not a "system" provider. String defaultImiId = mSettings->GetSelectedInputMethod(); mImeSelectedOnBoot = !defaultImiId.IsNullOrEmpty(); BuildInputMethodListLocked(mMethodList, mMethodMap); mSettings->EnableAllIMEsIfThereIsNoEnabledIME(); AutoPtr<IInputMethodInfo> info; HashMap<String, AutoPtr<IInputMethodInfo> >::Iterator it = mMethodMap->Find(defaultImiId); if (it != mMethodMap->End()) { info = it->mSecond; } if (!mImeSelectedOnBoot || info == NULL) { // Slog.w(TAG, "No IME selected. Choose the most applicable IME."); ResetDefaultImeLocked(mContext); } UpdateFromSettingsLocked(); } mContext->GetSystemService(IContext::KEYGUARD_SERVICE, (IInterface**)&mKeyguardManager); AutoPtr<IInterface> obj; mContext->GetSystemService(IContext::NOTIFICATION_SERVICE, (IInterface**)&obj); mNotificationManager = INotificationManager::Probe(obj.Get()); assert(statusBar != NULL); mStatusBar = statusBar; mStatusBar->SetIconVisibility(String("ime"), FALSE); UpdateImeWindowStatusLocked(); mRes->GetBoolean(R::bool_::show_ongoing_ime_switcher, &mShowOngoingImeSwitcherForPhones); if (mShowOngoingImeSwitcherForPhones) { mWindowManagerService->SetOnHardKeyboardStatusChangeListener(mHardKeyboardListener); } BuildInputMethodListLocked(mMethodList, mMethodMap); if (!mImeSelectedOnBoot) { // Slog.w(TAG, "Reset the default IME as \"Resource\" is ready here."); CheckCurrentLocaleChangedLocked(); } AutoPtr<IConfiguration> config; mRes->GetConfiguration((IConfiguration**)&config); config->GetLocale((ILocale**)&mLastSystemLocale); //try { AutoPtr<IInputBindResult> result; StartInputInnerLocked((IInputBindResult**)&result); // } catch (RuntimeException e) { // Slog.w(TAG, "Unexpected exception", e); // } } } void CInputMethodManagerService::SetImeWindowVisibilityStatusHiddenLocked() { mImeWindowVis = 0; UpdateImeWindowStatusLocked(); } void CInputMethodManagerService::RefreshImeWindowVisibilityLocked() { AutoPtr<IConfiguration> conf; mRes->GetConfiguration((IConfiguration**)&conf); Int32 keyboard = 0; conf->GetKeyboard(&keyboard); Boolean haveHardKeyboard = keyboard != IConfiguration::KEYBOARD_NOKEYS; Int32 hardKeyboardHidden = 0; conf->GetHardKeyboardHidden(&hardKeyboardHidden); Boolean hardKeyShown = haveHardKeyboard && hardKeyboardHidden != IConfiguration::HARDKEYBOARDHIDDEN_YES; Boolean isScreenLocked = FALSE; Boolean secure = FALSE; if (mKeyguardManager != NULL) { mKeyguardManager->IsKeyguardLocked(&isScreenLocked); mKeyguardManager->IsKeyguardSecure(&secure); } Boolean isScreenSecurelyLocked = isScreenLocked && secure; Boolean inputShown = mInputShown && (!isScreenLocked || mInputBoundToKeyguard); mImeWindowVis = (!isScreenSecurelyLocked && (inputShown || hardKeyShown)) ? (IInputMethodService::IME_ACTIVE | IInputMethodService::IME_VISIBLE) : 0; UpdateImeWindowStatusLocked(); } void CInputMethodManagerService::UpdateImeWindowStatusLocked() { SetImeWindowStatus(mCurToken, mImeWindowVis, mBackDisposition); } Boolean CInputMethodManagerService::CalledFromValidUser() { // const Int32 uid = Binder::GetCallingUid(); // const Int32 userId = UserHandle::GetUserId(uid); // // if (DEBUG) { // // Slog.d(TAG, "--- calledFromForegroundUserOrSystemProcess ? " // // + "calling uid = " + uid + " system uid = " + Process.SYSTEM_UID // // + " calling userId = " + userId + ", foreground user id = " // // + mSettings.getCurrentUserId() + ", calling pid = " + Binder.getCallingPid()); // // } // if (uid == IProcess::SYSTEM_UID || userId == mSettings->GetCurrentUserId()) { // return TRUE; // } // // // Caveat: A process which has INTERACT_ACROSS_USERS_FULL gets results for the // // foreground user, not for the user of that process. Accordingly InputMethodManagerService // // must not manage background users' states in any functions. // // Note that privacy-sensitive IPCs, such as setInputMethod, are still securely guarded // // by a token. // assert(0); // // Int32 per = 0; // // if ((mContext->CheckCallingOrSelfPermission( // // Manifest::permission::INTERACT_ACROSS_USERS_FULL, &per), per) // // == IPackageManager::PERMISSION_GRANTED) // // { // // // if (DEBUG) { // // // Slog.d(TAG, "--- Access granted because the calling process has " // // // + "the INTERACT_ACROSS_USERS_FULL permission"); // // // } // // return TRUE; // // } // //Slog.w(TAG, "--- IPC called from background users. Ignore. \n" + getStackTrace()); // return FALSE; return TRUE; } Boolean CInputMethodManagerService::BindCurrentInputMethodService( /* [in] */ IIntent* service, /* [in] */ IServiceConnection* conn, /* [in] */ Int32 flags) { if (service == NULL || conn == NULL) { Slogger::E(TAG, "--- bind failed: service = %p, conn = %p", service, conn); return FALSE; } Boolean succeeded = FALSE; mContext->BindServiceEx(service, conn, flags, mSettings->GetCurrentUserId(), &succeeded); return succeeded; } ECode CInputMethodManagerService::GetInputContext( /* [out] */ IInputContext** context) { VALIDATE_NOT_NULL(context); *context = mCurInputContext; INTERFACE_ADDREF(*context); return NOERROR; } ECode CInputMethodManagerService::GetInputMethodList( /* [out] */ IObjectContainer** infos) { VALIDATE_NOT_NULL(infos); *infos = NULL; FAIL_RETURN(CParcelableObjectContainer::New(infos)); // TODO: Make this work even for non-current users? if (!CalledFromValidUser()) { return NOERROR; } Mutex::Autolock lock(mMethodMapLock); InputMethodInfoListIterator it; for (it = mMethodList->Begin(); it != mMethodList->End(); ++it) { AutoPtr<IInputMethodInfo> item = *it; (*infos)->Add(item); } return NOERROR; } ECode CInputMethodManagerService::GetEnabledInputMethodList( /* [out] */ IObjectContainer** infos) { VALIDATE_NOT_NULL(infos); *infos = NULL; FAIL_RETURN(CParcelableObjectContainer::New(infos)); // TODO: Make this work even for non-current users? if (!CalledFromValidUser()) { return NOERROR; } Mutex::Autolock lock(mMethodMapLock); AutoPtr< InputMethodInfoList > lists = mSettings->GetEnabledInputMethodListLocked(); if (lists != NULL) { InputMethodInfoListIterator it; for (it = lists->Begin(); it != lists->End(); ++it) { AutoPtr<IInputMethodInfo> item = *it; (*infos)->Add(item.Get()); } } return NOERROR; } AutoPtr< InputMethodInfoSubtypeMap > CInputMethodManagerService::GetExplicitlyOrImplicitlyEnabledInputMethodsAndSubtypeListLocked() { AutoPtr< InputMethodInfoSubtypeMap > enabledInputMethodAndSubtypes = new InputMethodInfoSubtypeMap(); AutoPtr< InputMethodInfoList > lists = mSettings->GetEnabledInputMethodListLocked(); if (lists != NULL) { InputMethodInfoListIterator it; for (it = lists->Begin(); it != lists->End(); ++it) { AutoPtr<IInputMethodInfo> imi = *it; AutoPtr<IObjectContainer> subtypes; GetEnabledInputMethodSubtypeListLocked(imi, TRUE, (IObjectContainer**)&subtypes); AutoPtr< InputMethodSubtypeList > list = new InputMethodSubtypeList(); AutoPtr<IObjectEnumerator> enumerator; subtypes->GetObjectEnumerator((IObjectEnumerator**)&enumerator); Boolean hasNext; while (enumerator->MoveNext(&hasNext), hasNext) { AutoPtr<IInputMethodSubtype> subtype; enumerator->Current((IInterface**)&subtype); list->PushBack(subtype); } (*enabledInputMethodAndSubtypes)[imi] = list; } } return enabledInputMethodAndSubtypes; } ECode CInputMethodManagerService::GetEnabledInputMethodSubtypeListLocked( /* [in] */ IInputMethodInfo* imi, /* [in] */ Boolean allowsImplicitlySelectedSubtypes, /* [out] */ IObjectContainer** subtypes) { VALIDATE_NOT_NULL(subtypes); *subtypes = NULL; if (imi == NULL && !mCurMethodId.IsNull()) { HashMap<String, AutoPtr<IInputMethodInfo> >::Iterator it = mMethodMap->Find(mCurMethodId); if (it != mMethodMap->End()) { imi = it->mSecond; } } AutoPtr< InputMethodSubtypeList > enabledSubtypes = mSettings->GetEnabledInputMethodSubtypeListLocked(imi); if (allowsImplicitlySelectedSubtypes && enabledSubtypes->Begin() == enabledSubtypes->End()) { enabledSubtypes = GetImplicitlyApplicableSubtypesLocked(mRes, imi); } AutoPtr<IObjectContainer> inSubtyps; CObjectContainer::New((IObjectContainer**)&inSubtyps); InputMethodSubtypeListIterator eit; for (eit = enabledSubtypes->Begin(); eit != enabledSubtypes->End(); ++eit) { inSubtyps->Add(*eit); } AutoPtr<IInputMethodSubtypeHelper> helper; CInputMethodSubtypeHelper::AcquireSingleton((IInputMethodSubtypeHelper**)&helper); return helper->Sort(mContext, 0, imi, inSubtyps, subtypes); } ECode CInputMethodManagerService::GetEnabledInputMethodSubtypeList( /* [in] */ IInputMethodInfo* imi, /* [in] */ Boolean allowsImplicitlySelectedSubtypes, /* [out] */ IObjectContainer** infos) { VALIDATE_NOT_NULL(infos); *infos = NULL; // TODO: Make this work even for non-current users? if (!CalledFromValidUser()) { return CObjectContainer::New(infos); } Mutex::Autolock lock(mMethodMapLock); return GetEnabledInputMethodSubtypeListLocked(imi, allowsImplicitlySelectedSubtypes, infos); } ECode CInputMethodManagerService::AddClient( /* [in] */ IInputMethodClient* client, /* [in] */ IInputContext* inputContext, /* [in] */ Int32 uid, /* [in] */ Int32 pid) { if (!CalledFromValidUser()) { return NOERROR; } Mutex::Autolock lock(mMethodMapLock); mClients[IBinder::Probe(client)] = new ClientState(client, inputContext, uid, pid); return NOERROR; } ECode CInputMethodManagerService::RemoveClient( /* [in] */ IInputMethodClient* client) { if (!CalledFromValidUser()) { return NOERROR; } Mutex::Autolock lock(mMethodMapLock); mClients.Erase(IBinder::Probe(client)); return NOERROR; } ECode CInputMethodManagerService::ExecuteOrSendMessage( /* [in] */ IInterface* target, /* [in] */ IMessage* msg) { IBinder* binder = IBinder::Probe(target); if (binder) { mCaller->SendMessage(msg); } else { Boolean result; HandleMessage(msg, &result); msg->Recycle(); } return NOERROR; } void CInputMethodManagerService::UnbindCurrentClientLocked() { if (mCurClient != NULL) { if (DEBUG) Slogger::V(TAG, "unbindCurrentInputLocked: client = %p", mCurClient->mClient.Get()); if (mBoundToMethod) { mBoundToMethod = FALSE; if (mCurMethod != NULL) { AutoPtr<IMessage> msg; mCaller->ObtainMessageO(MSG_UNBIND_INPUT, mCurMethod, (IMessage**)&msg); ExecuteOrSendMessage(mCurMethod, msg); } } AutoPtr<IMessage> msg1; mCaller->ObtainMessageIO(MSG_SET_ACTIVE, 0, mCurClient, (IMessage**)&msg1); ExecuteOrSendMessage(mCurClient->mClient, msg1); AutoPtr<IMessage> msg2; mCaller->ObtainMessageIO(MSG_UNBIND_METHOD, mCurSeq, mCurClient->mClient, (IMessage**)&msg2); ExecuteOrSendMessage(mCurClient->mClient, msg2); mCurClient->mSessionRequested = FALSE; mCurClient = NULL; HideInputMethodMenuLocked(); } } Int32 CInputMethodManagerService::GetImeShowFlags() { Int32 flags = 0; if (mShowForced) { flags |= IInputMethod::SHOW_FORCED | IInputMethod::SHOW_EXPLICIT; } else if (mShowExplicitlyRequested) { flags |= IInputMethod::SHOW_EXPLICIT; } return flags; } Int32 CInputMethodManagerService::GetAppShowFlags() { Int32 flags = 0; if (mShowForced) { flags |= IInputMethodManager::SHOW_FORCED; } else if (!mShowExplicitlyRequested) { flags |= IInputMethodManager::SHOW_IMPLICIT; } return flags; } ECode CInputMethodManagerService::AttachNewInputLocked( /* [in] */ Boolean initial, /* [out] */ IInputBindResult** result) { VALIDATE_NOT_NULL(result); *result = NULL; if (!mBoundToMethod) { AutoPtr<IMessage> msg; mCaller->ObtainMessageOO(MSG_BIND_INPUT, mCurMethod, mCurClient->mBinding, (IMessage**)&msg); ExecuteOrSendMessage(mCurMethod, msg); mBoundToMethod = TRUE; } SessionState* session = mCurClient->mCurSession.Get(); if (initial) { AutoPtr<IMessage> msg; mCaller->ObtainMessageOOO(MSG_START_INPUT, session, mCurInputContext, mCurAttribute, (IMessage**)&msg); ExecuteOrSendMessage(session->mMethod, msg); } else { AutoPtr<IMessage> msg; mCaller->ObtainMessageOOO(MSG_RESTART_INPUT, session, mCurInputContext, mCurAttribute, (IMessage**)&msg); ExecuteOrSendMessage(session->mMethod, msg); } if (mShowRequested) { if (DEBUG) Slogger::V(TAG, "Attach new input asks to show input"); ShowCurrentInputLocked(GetAppShowFlags(), NULL); } return CInputBindResult::New(mCurClient->mCurSession->mSession, mCurId, mCurSeq, result); } ECode CInputMethodManagerService::StartInputLocked( /* [in] */ IInputMethodClient* client, /* [in] */ IInputContext* inputContext, /* [in] */ IEditorInfo* attribute, /* [in] */ Int32 controlFlags, /* [out] */ IInputBindResult** result) { VALIDATE_NOT_NULL(result); *result = NULL; // If no method is currently selected, do nothing. if (mCurMethodId.IsNull()) { *result = mNoBinding; INTERFACE_ADDREF(*result); return NOERROR; } AutoPtr<ClientState> cs; HashMap<AutoPtr<IBinder>, AutoPtr<ClientState> >::Iterator it = mClients.Find(IBinder::Probe(client)); if (it != mClients.End()) { cs = it->mSecond; } if (cs == NULL) { // throw new IllegalArgumentException("unknown client " // + client.asBinder()); Slogger::E(TAG, "IllegalArgumentException unknown client : %p", client); return E_ILLEGAL_ARGUMENT_EXCEPTION; } // try{ Boolean ret = FALSE; if (mIWindowManager->InputMethodClientHasFocus(cs->mClient, &ret), !ret) { // Check with the window manager to make sure this client actually // has a window with focus. If not, reject. This is thread safe // because if the focus changes some time before or after, the // next client receiving focus that has any interest in input will // be calling through here after that change happens. Slogger::W(TAG, "Starting input on non-focused client %p (uid=%d pid=%d)", cs->mClient.Get(), cs->mUid, cs->mPid); return NOERROR; } // } catch(RemoteException e) { // } return StartInputUncheckedLocked(cs, inputContext, attribute, controlFlags, result); } ECode CInputMethodManagerService::StartInputUncheckedLocked( /* [in] */ ClientState* cs, /* [in] */ IInputContext* inputContext, /* [in] */ IEditorInfo* attribute, /* [in] */ Int32 controlFlags, /* [out] */ IInputBindResult** result) { VALIDATE_NOT_NULL(result); *result = NULL; // If no method is currently selected, do nothing. if (mCurMethodId.IsNull()) { *result = mNoBinding; INTERFACE_ADDREF(*result) return NOERROR; } if (mCurClient == NULL) { mInputBoundToKeyguard = FALSE; if (mKeyguardManager != NULL) { mKeyguardManager->IsKeyguardLocked(&mInputBoundToKeyguard); } if (DEBUG) { Slogger::V(TAG, "New bind. keyguard = %d", mInputBoundToKeyguard); } } if (mCurClient.Get() != cs) { // If the client is changing, we need to switch over to the new // one. UnbindCurrentClientLocked(); if (DEBUG) Slogger::V(TAG, "switching to client: client = %p", cs->mClient.Get()); // If the screen is on, inform the new client it is active if (mScreenOn) { AutoPtr<IMessage> msg; mCaller->ObtainMessageIO(MSG_SET_ACTIVE, mScreenOn ? 1 : 0, cs, (IMessage**)&msg); ExecuteOrSendMessage(cs->mClient, msg); } } // Bump up the sequence for this client and attach it. mCurSeq++; if (mCurSeq <= 0) mCurSeq = 1; mCurClient = cs; mCurInputContext = inputContext; mCurAttribute = attribute; // Check if the input method is changing. if (!mCurId.IsNull() && mCurId.Equals(mCurMethodId)) { if (cs->mCurSession != NULL) { // Fast case: if we are already connected to the input method, // then just return it. return AttachNewInputLocked( (controlFlags & IInputMethodManager::CONTROL_START_INITIAL) != 0, result); } if (mHaveConnection) { if (mCurMethod != NULL) { if (!cs->mSessionRequested) { cs->mSessionRequested = TRUE; if (DEBUG) Slogger::V(TAG, "Creating new session for client %p", cs->mClient.Get()); AutoPtr<IInputMethodCallback> methodCallback; CInputMethodManagerServiceMethodCallback::New( mCurMethod, (Handle32)this, (IInputMethodCallback**)&methodCallback); AutoPtr<IMessage> msg; mCaller->ObtainMessageOO(MSG_CREATE_SESSION, mCurMethod, methodCallback, (IMessage**)&msg); ExecuteOrSendMessage(mCurMethod, msg); } // Return to client, and we will get back with it when // we have had a session made for it. return CInputBindResult::New(NULL, mCurId, mCurSeq, result); } else if (SystemClock::GetUptimeMillis() < (mLastBindTime + TIME_TO_RECONNECT)) { // In this case we have connected to the service, but // don't yet have its interface. If it hasn't been too // long since we did the connection, we'll return to // the client and wait to get the service interface so // we can report back. If it has been too long, we want // to fall through so we can try a disconnect/reconnect // to see if we can get back in touch with the service. return CInputBindResult::New(NULL, mCurId, mCurSeq, result); } else { // EventLog.writeEvent(EventLogTags.IMF_FORCE_RECONNECT_IME, // mCurMethodId, SystemClock::UptimeMillis()-mLastBindTime, 0); } } } return StartInputInnerLocked(result); } ECode CInputMethodManagerService::StartInputInnerLocked( /* [out] */ IInputBindResult** result) { VALIDATE_NOT_NULL(result); *result = NULL; if (mCurMethodId.IsNull()) { *result = mNoBinding; INTERFACE_ADDREF(*result); return NOERROR; } if (!mSystemReady) { // If the system is not yet ready, we shouldn't be running third // party code. return CInputBindResult::New(NULL, mCurMethodId, mCurSeq, result); } AutoPtr<IInputMethodInfo> info; HashMap<String, AutoPtr<IInputMethodInfo> >::Iterator it = mMethodMap->Find(mCurMethodId); if (it != mMethodMap->End()) { info = it->mSecond; } if (info == NULL) { //throw new IllegalArgumentException("Unknown id: " + mCurMethodId); Slogger::E(TAG, "Unknown id: %s", mCurMethodId.string()); return E_ILLEGAL_ARGUMENT_EXCEPTION; } UnbindCurrentMethodLocked(FALSE, TRUE); mCurIntent = NULL; CIntent::New(IInputMethod::SERVICE_INTERFACE, (IIntent**)&mCurIntent); AutoPtr<IComponentName> component; info->GetComponent((IComponentName**)&component); mCurIntent->SetComponent(component); mCurIntent->PutInt32Extra(IIntent::EXTRA_CLIENT_LABEL, R::string::input_method_binding_label); AutoPtr<IIntent> intentPara; CIntent::New(ISettings::ACTION_INPUT_METHOD_SETTINGS, (IIntent**)&intentPara); AutoPtr<IPendingIntent> pIntentPara; AutoPtr<IPendingIntentHelper> helper; CPendingIntentHelper::AcquireSingleton((IPendingIntentHelper**)&helper); helper->GetActivity(mContext, 0, intentPara, 0, (IPendingIntent**)&pIntentPara); AutoPtr<IParcelable> p = IParcelable::Probe(pIntentPara); mCurIntent->PutParcelableExtra(IIntent::EXTRA_CLIENT_INTENT, p); if (BindCurrentInputMethodService(mCurIntent, this, IContext::BIND_AUTO_CREATE | IContext::BIND_NOT_VISIBLE)) { mLastBindTime = SystemClock::GetUptimeMillis(); mHaveConnection = TRUE; info->GetId(&mCurId); mCurToken = NULL; CBinder::New((IBinder**)&mCurToken); // try { if (DEBUG) Slogger::V(TAG, "Adding window token: %p", mCurToken.Get()); mIWindowManager->AddWindowToken(mCurToken, IWindowManagerLayoutParams::TYPE_INPUT_METHOD); // } catch (RemoteException e) { // } return CInputBindResult::New(NULL, mCurId, mCurSeq, result); } else { mCurIntent = NULL; Slogger::W(TAG, "Failure connecting to input method service: "); } return NOERROR; } ECode CInputMethodManagerService::StartInput( /* [in] */ IInputMethodClient* client, /* [in] */ IInputContext* inputContext, /* [in] */ IEditorInfo* attribute, /* [in] */ Int32 controlFlags, /* [out] */ IInputBindResult** res) { VALIDATE_NOT_NULL(res); *res = NULL; if (!CalledFromValidUser()) { return NOERROR; } Mutex::Autolock lock(mMethodMapLock); Int64 ident = Binder::ClearCallingIdentity(); ECode ec = StartInputLocked(client, inputContext, attribute, controlFlags, res); Binder::RestoreCallingIdentity(ident); return ec; } ECode CInputMethodManagerService::FinishInput( /* [in] */ IInputMethodClient* client) { return NOERROR; } ECode CInputMethodManagerService::OnServiceConnected( /* [in] */ IComponentName* name, /* [in] */ IBinder* service) { Mutex::Autolock lock(mMethodMapLock); if (mCurIntent != NULL) { AutoPtr<IComponentName> component; mCurIntent->GetComponent((IComponentName**)&component); Boolean isEqual = FALSE; if (name->Equals(component, &isEqual), isEqual) { mCurMethod = IIInputMethod::Probe(service); if (mCurToken == NULL) { Slogger::W(TAG, "Service connected without a token!"); UnbindCurrentMethodLocked(FALSE, FALSE); return NOERROR; } if (DEBUG) { String info; name->ToString(&info); Slogger::V(TAG, "Initiating attach with token: %p, name: %s", mCurToken.Get(), info.string()); } AutoPtr<IMessage> msg; mCaller->ObtainMessageOO(MSG_ATTACH_TOKEN, mCurMethod, mCurToken, (IMessage**)&msg); ExecuteOrSendMessage(mCurMethod, msg); if (mCurClient != NULL) { if (DEBUG) Slogger::V(TAG, "Creating first session while with client %p", mCurClient.Get()); AutoPtr<IInputMethodCallback> methodCallback; CInputMethodManagerServiceMethodCallback::New( mCurMethod, (Handle32)this, (IInputMethodCallback**)&methodCallback); AutoPtr<IMessage> msg; mCaller->ObtainMessageOO(MSG_CREATE_SESSION, mCurMethod, methodCallback, (IMessage**)&msg); ExecuteOrSendMessage(mCurMethod, msg); } } } return NOERROR; } void CInputMethodManagerService::OnSessionCreated( /* [in] */ IIInputMethod* method, /* [in] */ IIInputMethodSession* session) { Mutex::Autolock lock(mMethodMapLock); if (mCurMethod != NULL && method != NULL && IBinder::Probe(mCurMethod) == IBinder::Probe(method)) { if (mCurClient != NULL) { mCurClient->mCurSession = new SessionState(mCurClient, method, session); mCurClient->mSessionRequested = FALSE; AutoPtr<IInputBindResult> res; AttachNewInputLocked(TRUE, (IInputBindResult**)&res); AutoPtr<IInputMethodSession> m; res->GetIIMSession((IIInputMethodSession**)&m); if (m != NULL) { AutoPtr<IMessage> msg; mCaller->ObtainMessageOO(MSG_BIND_METHOD, mCurClient->mClient, res, (IMessage**)&msg); ExecuteOrSendMessage(mCurClient->mClient, msg); } } } } void CInputMethodManagerService::UnbindCurrentMethodLocked( /* [in] */ Boolean reportToClient, /* [in] */ Boolean savePosition) { if (mVisibleBound) { mContext->UnbindService(mVisibleConnection); mVisibleBound = FALSE; } if (mHaveConnection) { mContext->UnbindService((IServiceConnection*)this->Probe(EIID_IServiceConnection)); mHaveConnection = FALSE; } if (mCurToken != NULL) { // try { if (DEBUG) Slogger::V(TAG, "Removing window token: %p", mCurToken.Get()); if ((mImeWindowVis & IInputMethodService::IME_ACTIVE) != 0 && savePosition) { // The current IME is shown. Hence an IME switch (transition) is happening. mWindowManagerService->SaveLastInputMethodWindowForTransition(); } mIWindowManager->RemoveWindowToken(mCurToken); // } catch (RemoteException e) { // } mCurToken = NULL; } mCurId = NULL; ClearCurMethodLocked(); if (reportToClient && mCurClient != NULL) { AutoPtr<IMessage> msg; mCaller->ObtainMessageIO(MSG_UNBIND_METHOD, mCurSeq, mCurClient->mClient, (IMessage**)&msg); ExecuteOrSendMessage(mCurClient->mClient, msg); } } void CInputMethodManagerService::FinishSession( /* [in] */ SessionState* sessionState) { if (sessionState != NULL && sessionState->mSession != NULL) { // try { ECode ec = sessionState->mSession->FinishSession(); if (FAILED(ec)) { SetImeWindowVisibilityStatusHiddenLocked(); } // } catch (RemoteException e) { // Slog.w(TAG, "Session failed to close due to remote exception", e); // } } } void CInputMethodManagerService::ClearCurMethodLocked() { if (mCurMethod != NULL) { HashMap<AutoPtr<IBinder>, AutoPtr<ClientState> >::Iterator it; for (it = mClients.Begin(); it != mClients.End(); ++it) { AutoPtr<ClientState> cs = it->mSecond; cs->mSessionRequested = FALSE; FinishSession(cs->mCurSession); cs->mCurSession = NULL; } FinishSession(mEnabledSession); mEnabledSession = NULL; mCurMethod = NULL; } if (mStatusBar != NULL) { mStatusBar->SetIconVisibility(String("ime"), FALSE); } } ECode CInputMethodManagerService::OnServiceDisconnected( /* [in] */ IComponentName* name) { Mutex::Autolock lock(mMethodMapLock); if (DEBUG) { String nameStr, curStr; name->ToString(&nameStr); if (mCurIntent != NULL) { AutoPtr<IComponentName> component; mCurIntent->GetComponent((IComponentName**)&component); component->ToString(&curStr); } Slogger::V(TAG, "Service disconnected: %s mCurIntent=%s", nameStr.string(), curStr.string()); } if (mCurMethod != NULL && mCurIntent != NULL) { AutoPtr<IComponentName> component; mCurIntent->GetComponent((IComponentName**)&component); Boolean equal = FALSE; if (name->Equals(component, &equal), equal) { ClearCurMethodLocked(); // We consider this to be a new bind attempt, since the system // should now try to restart the service for us. mLastBindTime = SystemClock::GetUptimeMillis(); mShowRequested = mInputShown; mInputShown = FALSE; if (mCurClient != NULL) { AutoPtr<IMessage> msg; mCaller->ObtainMessageIO(MSG_UNBIND_METHOD, mCurSeq, mCurClient->mClient, (IMessage**)&msg); ExecuteOrSendMessage(mCurClient->mClient, msg); } } } return NOERROR; } ECode CInputMethodManagerService::UpdateStatusIcon( /* [in] */ IBinder* token, /* [in] */ const String& packageName, /* [in] */ Int32 iconId) { Int32 uid = Binder::GetCallingUid(); Int64 ident = Binder::ClearCallingIdentity(); // try { if (token == NULL || mCurToken.Get() != token) { Slogger::W(TAG, "Ignoring setInputMethod of uid %d, token %p", uid, token); Binder::RestoreCallingIdentity(ident); return NOERROR; } ECode ec = NOERROR; { Mutex::Autolock lock(mMethodMapLock); String ime("ime"); if (iconId == 0) { if (DEBUG) Slogger::D(TAG, "hide the small icon for the input method"); if (mStatusBar != NULL) { ec = mStatusBar->SetIconVisibility(ime, FALSE); } } else if (!packageName.IsNull()) { if (DEBUG) Slogger::D(TAG, "show a small icon for the input method"); AutoPtr<ICharSequence> contentDescription; // try { // Use PackageManager to load label AutoPtr<IPackageManager> packageManager; mContext->GetPackageManager((IPackageManager**)&packageManager); Int32 curUserId = mSettings->GetCurrentUserId(); AutoPtr<IApplicationInfo> appInfo; mIPackageManager->GetApplicationInfo(packageName, 0, curUserId, (IApplicationInfo**)&appInfo); packageManager->GetApplicationLabel(appInfo, (ICharSequence**)&contentDescription); // } catch (RemoteException e) { // /* ignore */ // } if (mStatusBar != NULL) { String des; if (contentDescription != NULL) { contentDescription->ToString(&des); } mStatusBar->SetIcon(ime, packageName, iconId, 0, des); ec = mStatusBar->SetIconVisibility(ime, TRUE); } } } // } finally { // Binder.restoreCallingIdentity(ident); // } Binder::RestoreCallingIdentity(ident); return ec; } Boolean CInputMethodManagerService::NeedsToShowImeSwitchOngoingNotification() { if (!mShowOngoingImeSwitcherForPhones) return FALSE; if (IsScreenLocked()) return FALSE; Mutex::Autolock lock(mMethodMapLock); Int32 nonAuxCount = 0; Int32 auxCount = 0; AutoPtr<IInputMethodSubtype> nonAuxSubtype; AutoPtr<IInputMethodSubtype> auxSubtype; AutoPtr< InputMethodInfoList > imis = mSettings->GetEnabledInputMethodListLocked(); if (imis != NULL) { const Int32 N = imis->GetSize(); if (N > 2) return TRUE; if (N < 1) return FALSE; InputMethodInfoListIterator it; for(it = imis->Begin(); it != imis->End(); ++it) { AutoPtr<IInputMethodInfo> imi = *it; AutoPtr<IObjectContainer> subtypes; GetEnabledInputMethodSubtypeListLocked(imi, TRUE, (IObjectContainer**)&subtypes); Int32 subtypeCount = 0; subtypes->GetObjectCount(&subtypeCount); if (subtypeCount == 0) { ++nonAuxCount; } else { Boolean hasNext = FALSE; AutoPtr<IObjectEnumerator> enumAtor; subtypes->GetObjectEnumerator((IObjectEnumerator**)&enumAtor); while(enumAtor->MoveNext(&hasNext), hasNext) { AutoPtr<IInputMethodSubtype> subtype; enumAtor->Current((IInterface**)&subtype); Boolean auxil = FALSE; if (subtype->IsAuxiliary(&auxil), !auxil) { ++nonAuxCount; nonAuxSubtype = subtype; } else { ++auxCount; auxSubtype = subtype; } } } } } if (nonAuxCount > 1 || auxCount > 1) { return TRUE; } else if (nonAuxCount == 1 && auxCount == 1) { if (nonAuxSubtype != NULL && auxSubtype != NULL) { String nonLocale, auxLocale; nonAuxSubtype->GetLocale(&nonLocale); auxSubtype->GetLocale(&auxLocale); Boolean auxOverrides = FALSE, nonOverrides = FALSE, contains = FALSE; if ((nonLocale.Equals(auxLocale) || (auxSubtype->OverridesImplicitlyEnabledSubtype(&auxOverrides), auxOverrides) || (nonAuxSubtype->OverridesImplicitlyEnabledSubtype(&nonOverrides), nonOverrides)) && (nonAuxSubtype->ContainsExtraValueKey(TAG_TRY_SUPPRESSING_IME_SWITCHER, &contains), contains)) { return FALSE; } } return TRUE; } return FALSE; } ECode CInputMethodManagerService::SetImeWindowStatus( /* [in] */ IBinder* token, /* [in] */ Int32 vis, /* [in] */ Int32 backDisposition) { Int64 ident = Binder::ClearCallingIdentity(); // try { if (token == NULL || mCurToken.Get() != token) { // Int32 uid = Binder.getCallingUid(); // Slog.w(TAG, "Ignoring setImeWindowStatus of uid " + uid + " token: " + token); Binder::RestoreCallingIdentity(ident); return NOERROR; } { Mutex::Autolock lock(mMethodMapLock); mImeWindowVis = vis; mBackDisposition = backDisposition; if (mStatusBar != NULL) { mStatusBar->SetImeWindowStatus(token, vis, backDisposition); } Boolean iconVisibility = (vis & IInputMethodService::IME_ACTIVE) != 0; AutoPtr<IInputMethodInfo> imi = (*mMethodMap)[mCurMethodId]; if (imi != NULL && iconVisibility && NeedsToShowImeSwitchOngoingNotification()) { // Used to load label AutoPtr<IPackageManager> pm; mContext->GetPackageManager((IPackageManager**)&pm); AutoPtr<ICharSequence> title; mRes->GetText(R::string::select_input_method, (ICharSequence**)&title); AutoPtr<ICharSequence> imiLabel; imi->LoadLabel(pm, (ICharSequence**)&imiLabel); AutoPtr<ICharSequence> summary; if (mCurrentSubtype != NULL) { String pkgName; imi->GetPackageName(&pkgName); AutoPtr<IServiceInfo> serviceInfo; imi->GetServiceInfo((IServiceInfo**)&serviceInfo); AutoPtr<IApplicationInfo> appInfo; serviceInfo->GetApplicationInfo((IApplicationInfo**)&appInfo); AutoPtr<ICharSequence> name; mCurrentSubtype->GetDisplayName(mContext, pkgName, appInfo, (ICharSequence**)&name); AutoPtr<ICharSequence> name1; if (TextUtils::IsEmpty(imiLabel)) { CStringWrapper::New(String(""), (ICharSequence**)&name1); } else { String tempStr("-"); String labelStr; imiLabel->ToString(&labelStr); tempStr.Append(labelStr); CStringWrapper::New(tempStr, (ICharSequence**)&name1); } AutoPtr<ArrayOf<ICharSequence*> > texts = ArrayOf<ICharSequence*>::Alloc(2); texts->Set(0, name); texts->Set(1, name1); summary = TextUtils::Concat(texts); } else { summary = imiLabel; } mImeSwitcherNotification->SetLatestEventInfo(mContext, title, summary, mImeSwitchPendingIntent); if (mNotificationManager != NULL) { if (DEBUG) { String labelStr, sumStr; imiLabel->ToString(&labelStr); summary->ToString(&sumStr); Slogger::D(TAG, "--- show notification: label = %s, summary = %s", labelStr.string(), sumStr.string()); } mNotificationManager->NotifyAsUser(String(NULL), R::string::select_input_method, mImeSwitcherNotification, UserHandle::ALL); mNotificationShown = true; } } else { if (mNotificationShown && mNotificationManager != NULL) { if (DEBUG) { Slogger::D(TAG, "--- hide notification"); } mNotificationManager->CancelAsUser(String(NULL), R::string::select_input_method, UserHandle::ALL); mNotificationShown = FALSE; } } } // } finally { Binder::RestoreCallingIdentity(ident); //} return NOERROR; } ECode CInputMethodManagerService::RegisterSuggestionSpansForNotification( /* [in] */ ArrayOf<ISuggestionSpan*>* spans) { if (!CalledFromValidUser()) { return NOERROR; } { Mutex::Autolock lock(mMethodMapLock); AutoPtr<IInputMethodInfo> currentImi; HashMap<String, AutoPtr<IInputMethodInfo> >::Iterator it = mMethodMap->Find(mCurMethodId); if (it != mMethodMap->End()) { currentImi = it->mSecond; } for (Int32 i = 0; i < spans->GetLength(); ++i) { AutoPtr<ISuggestionSpan> ss = (*spans)[i]; String name; ss->GetNotificationTargetClassName(&name); if (!name.IsNullOrEmpty()) { mSecureSuggestionSpans[ss] = currentImi; // AutoPtr<IInputMethodInfo> targetImi = mSecureSuggestionSpans[ss]; } } } return NOERROR; } ECode CInputMethodManagerService::NotifySuggestionPicked( /* [in] */ ISuggestionSpan* span, /* [in] */ const String& originalString, /* [in] */ Int32 index, /* [out] */ Boolean* picked) { VALIDATE_NOT_NULL(picked); if (!CalledFromValidUser()) { *picked = FALSE; return NOERROR; } { Mutex::Autolock lock(mMethodMapLock); AutoPtr<IInputMethodInfo> targetImi; HashMap<AutoPtr<ISuggestionSpan>, AutoPtr<IInputMethodInfo> >::Iterator it = mSecureSuggestionSpans.Find(span); if(it != mSecureSuggestionSpans.End()) { targetImi = it->mSecond; } // TODO: Do not send the intent if the process of the targetImi is already dead. if (targetImi != NULL) { AutoPtr< ArrayOf<String> > suggestions; span->GetSuggestions((ArrayOf<String>**)&suggestions); if (index < 0 || index >= suggestions->GetLength()) { *picked = FALSE; return NOERROR; } String className; span->GetNotificationTargetClassName(&className); AutoPtr<IIntent> intent; CIntent::New((IIntent**)&intent); // Ensures that only a class in the original IME package will receive the // notification. String pNname; targetImi->GetPackageName(&pNname); intent->SetClassNameEx(pNname, className); intent->SetAction(ISuggestionSpan::ACTION_SUGGESTION_PICKED); intent->PutStringExtra(ISuggestionSpan::SUGGESTION_SPAN_PICKED_BEFORE, originalString); intent->PutStringExtra(ISuggestionSpan::SUGGESTION_SPAN_PICKED_AFTER, (*suggestions)[index]); Int32 code = 0; span->GetHashCode(&code); intent->PutInt32Extra(ISuggestionSpan::SUGGESTION_SPAN_PICKED_HASHCODE, code); Int64 ident = Binder::ClearCallingIdentity(); // try { mContext->SendBroadcastAsUser(intent, UserHandle::CURRENT); // } finally { Binder::RestoreCallingIdentity(ident); // } *picked = TRUE; return NOERROR; } } *picked = FALSE; return NOERROR; } void CInputMethodManagerService::UpdateFromSettingsLocked() { // We are assuming that whoever is changing DEFAULT_INPUT_METHOD and // ENABLED_INPUT_METHODS is taking care of keeping them correctly in // sync, so we will never have a DEFAULT_INPUT_METHOD that is not // enabled. String id = mSettings->GetSelectedInputMethod(); if (id.IsNullOrEmpty() && ChooseNewDefaultIMELocked()) { id = mSettings->GetSelectedInputMethod(); } if (!id.IsNullOrEmpty()) { // try { ECode ec = SetInputMethodLocked(id, GetSelectedInputMethodSubtypeId(id)); if (ec == (Int32)E_ILLEGAL_ARGUMENT_EXCEPTION) { mCurMethodId = NULL; UnbindCurrentMethodLocked(TRUE, FALSE); } // } catch (IllegalArgumentException e) { // Slog.w(TAG, "Unknown input method from prefs: " + id, e); // mCurMethodId = NULL; // UnbindCurrentMethodLocked(TRUE); // } mShortcutInputMethodsAndSubtypes.Clear(); } else { // There is no longer an input method set, so stop any current one. mCurMethodId = NULL; UnbindCurrentMethodLocked(TRUE, FALSE); } } ECode CInputMethodManagerService::SetInputMethodLocked( /* [in] */ const String& id, /* [in] */ Int32 subtypeId) { AutoPtr<IInputMethodInfo> info; HashMap<String, AutoPtr<IInputMethodInfo> >::Iterator it = mMethodMap->Find(id); if (it != mMethodMap->End()) { info = it->mSecond; } if (info == NULL) { Slogger::E(TAG, "Unknown id: %s", id.string()); return E_ILLEGAL_ARGUMENT_EXCEPTION; } // See if we need to notify a subtype change within the same IME. if (id.Equals(mCurMethodId)) { Int32 subtypeCount = 0; info->GetSubtypeCount(&subtypeCount); if (subtypeCount <= 0) { return NOERROR; } AutoPtr<IInputMethodSubtype> oldSubtype = mCurrentSubtype; AutoPtr<IInputMethodSubtype> newSubtype; if (subtypeId >= 0 && subtypeId < subtypeCount) { info->GetSubtypeAt(subtypeId, (IInputMethodSubtype**)&newSubtype); } else { // If subtype is NULL, try to find the most applicable one from // getCurrentInputMethodSubtype. newSubtype = GetCurrentInputMethodSubtypeLocked(); } if (newSubtype == NULL || oldSubtype == NULL) { // Slog.w(TAG, "Illegal subtype state: old subtype = " + oldSubtype // + ", new subtype = " + newSubtype); return NOERROR; } if (newSubtype != oldSubtype) { SetSelectedInputMethodAndSubtypeLocked(info, subtypeId, TRUE); if (mCurMethod != NULL) { // try { RefreshImeWindowVisibilityLocked(); mCurMethod->ChangeInputMethodSubtype(newSubtype); // } catch (RemoteException e) { // Slog.w(TAG, "Failed to call changeInputMethodSubtype"); // } } } return NOERROR; } // Changing to a different IME. Int64 ident = Binder::ClearCallingIdentity(); // try { // Set a subtype to this input method. // subtypeId the name of a subtype which will be set. SetSelectedInputMethodAndSubtypeLocked(info, subtypeId, FALSE); // mCurMethodId should be updated after setSelectedInputMethodAndSubtypeLocked() // because mCurMethodId is stored as a history in // setSelectedInputMethodAndSubtypeLocked(). mCurMethodId = id; if (ActivityManagerNative::IsSystemReady()) { AutoPtr<IIntent> intent; CIntent::New(IIntent::ACTION_INPUT_METHOD_CHANGED, (IIntent**)&intent); intent->AddFlags(IIntent::FLAG_RECEIVER_REPLACE_PENDING); intent->PutStringExtra(String("input_method_id"), id); AutoPtr<IUserHandleHelper> userHandleHelper; CUserHandleHelper::AcquireSingleton((IUserHandleHelper**)&userHandleHelper); AutoPtr<IUserHandle> CURRENT; userHandleHelper->GetCURRENT((IUserHandle**)&CURRENT); mContext->SendBroadcastAsUser(intent, CURRENT); } UnbindCurrentClientLocked(); Binder::RestoreCallingIdentity(ident); // } finally { // Binder.restoreCallingIdentity(ident); // } return NOERROR; } ECode CInputMethodManagerService::ShowSoftInput( /* [in] */ IInputMethodClient* client, /* [in] */ Int32 flags, /* [in] */ IResultReceiver* resultReceiver, /* [out] */ Boolean* state) { VALIDATE_NOT_NULL(state); if (!CalledFromValidUser()) { *state = FALSE; return NOERROR; } Int32 uid = Binder::GetCallingUid(); Int64 ident = Binder::ClearCallingIdentity(); // try { { Mutex::Autolock lock(mMethodMapLock); if (mCurClient == NULL || client == NULL || IBinder::Probe(mCurClient->mClient) != IBinder::Probe(client)) { // try { // We need to check if this is the current client with // focus in the window manager, to allow this call to // be made before input is started in it. Boolean result = FALSE; if (mIWindowManager->InputMethodClientHasFocus(client, &result), !result) { // Slog.w(TAG, "Ignoring showSoftInput of uid " + uid + ": " + client); *state = FALSE; Binder::RestoreCallingIdentity(ident); return NOERROR; } // } catch (RemoteException e) { // return FALSE; // } } // if (DEBUG) Slog.v(TAG, "Client requesting input be shown"); *state = ShowCurrentInputLocked(flags, resultReceiver); } // } finally { // Binder.restoreCallingIdentity(ident); // } Binder::RestoreCallingIdentity(ident); return NOERROR; } Boolean CInputMethodManagerService::ShowCurrentInputLocked( /* [in] */ Int32 flags, /* [in] */ IResultReceiver* resultReceiver) { mShowRequested = TRUE; if ((flags & IInputMethodManager::SHOW_IMPLICIT) == 0) { mShowExplicitlyRequested = TRUE; } if ((flags & IInputMethodManager::SHOW_FORCED) != 0) { mShowExplicitlyRequested = TRUE; mShowForced = TRUE; } if (!mSystemReady) { return FALSE; } Boolean res = FALSE; if (mCurMethod != NULL) { AutoPtr<IMessage> msg; mCaller->ObtainMessageIOO( MSG_SHOW_SOFT_INPUT, GetImeShowFlags(), mCurMethod, resultReceiver, (IMessage**)&msg); ExecuteOrSendMessage(mCurMethod, msg); mInputShown = TRUE; if (mHaveConnection && !mVisibleBound) { BindCurrentInputMethodService( mCurIntent, mVisibleConnection, IContext::BIND_AUTO_CREATE); mVisibleBound = TRUE; } res = TRUE; } else if (mHaveConnection && SystemClock::GetUptimeMillis() >= (mLastBindTime + TIME_TO_RECONNECT)) { // The client has asked to have the input method shown, but // we have been sitting here too long with a connection to the // service and no interface received, so let's disconnect/connect // to try to prod things along. // EventLog.writeEvent(EventLogTags.IMF_FORCE_RECONNECT_IME, mCurMethodId, // SystemClock::UptimeMillis()-mLastBindTime,1); // Slog.w(TAG, "Force disconnect/connect to the IME in showCurrentInputLocked()"); mContext->UnbindService((IServiceConnection*)this->Probe(EIID_IServiceConnection)); BindCurrentInputMethodService(mCurIntent, this, IContext::BIND_AUTO_CREATE | IContext::BIND_NOT_VISIBLE); } else { // if (DEBUG) { // Slog.d(TAG, "Can't show input: connection = " + mHaveConnection + ", time = " // + ((mLastBindTime+TIME_TO_RECONNECT) - SystemClock.uptimeMillis())); // } } return res; } ECode CInputMethodManagerService::HideSoftInput( /* [in] */ IInputMethodClient* client, /* [in] */ Int32 flags, /* [in] */ IResultReceiver* resultReceiver, /* [out] */ Boolean* state) { VALIDATE_NOT_NULL(state); if (!CalledFromValidUser()) { *state = FALSE; return NOERROR; } Int32 uid = Binder::GetCallingUid(); Int64 ident = Binder::ClearCallingIdentity(); // try { { Mutex::Autolock lock(mMethodMapLock); if (mCurClient == NULL || client == NULL || IBinder::Probe(mCurClient->mClient) != IBinder::Probe(client)) { // try { // We need to check if this is the current client with // focus in the window manager, to allow this call to // be made before input is started in it. Boolean ret = FALSE; mIWindowManager->InputMethodClientHasFocus(client, &ret); if (!ret) { // if (DEBUG) Slog.w(TAG, "Ignoring hideSoftInput of uid " // + uid + ": " + client); SetImeWindowVisibilityStatusHiddenLocked(); *state = FALSE; Binder::RestoreCallingIdentity(ident); return NOERROR; } // } catch (RemoteException e) { // SetImeWindowVisibilityStatusHiddenLocked(); // return FALSE; // } } // if (DEBUG) Slog.v(TAG, "Client requesting input be hidden"); *state = HideCurrentInputLocked(flags, resultReceiver); } // } finally { // Binder.restoreCallingIdentity(ident); // } Binder::RestoreCallingIdentity(ident); return NOERROR; } Boolean CInputMethodManagerService::HideCurrentInputLocked( /* [in] */ Int32 flags, /* [in] */ IResultReceiver* resultReceiver) { if ((flags & IInputMethodManager::HIDE_IMPLICIT_ONLY) != 0 && (mShowExplicitlyRequested || mShowForced)) { // if (DEBUG) Slog.v(TAG, // "Not hiding: explicit show not cancelled by non-explicit hide"); return FALSE; } if (mShowForced && (flags & IInputMethodManager::HIDE_NOT_ALWAYS) != 0) { // if (DEBUG) Slog.v(TAG, // "Not hiding: forced show not cancelled by not-always hide"); return FALSE; } Boolean res = FALSE; if (mInputShown && mCurMethod != NULL) { AutoPtr<IMessage> msg; mCaller->ObtainMessageOO(MSG_HIDE_SOFT_INPUT, mCurMethod, resultReceiver, (IMessage**)&msg); ExecuteOrSendMessage(mCurMethod, msg); res = TRUE; } else { res = FALSE; } if (mHaveConnection && mVisibleBound) { mContext->UnbindService(mVisibleConnection); mVisibleBound = FALSE; } mInputShown = FALSE; mShowRequested = FALSE; mShowExplicitlyRequested = FALSE; mShowForced = FALSE; return res; } ECode CInputMethodManagerService::WindowGainedFocus( /* [in] */ IInputMethodClient* client, /* [in] */ IBinder* windowToken, /* [in] */ Int32 controlFlags, /* [in] */ Int32 softInputMode, /* [in] */ Int32 windowFlags, /* [in] */ IEditorInfo* attribute, /* [in] */ IInputContext* inputContext, /* [out] */ IInputBindResult** result) { VALIDATE_NOT_NULL(result); *result = NULL; // Needs to check the validity before clearing calling identity Boolean calledFromValidUser = CalledFromValidUser(); Int64 ident = Binder::ClearCallingIdentity(); // try { { Mutex::Autolock lock(mMethodMapLock); // if (DEBUG) Slog.v(TAG, "windowGainedFocus: " + client.asBinder() // + " controlFlags=#" + Integer.toHexString(controlFlags) // + " softInputMode=#" + Integer.toHexString(softInputMode) // + " windowFlags=#" + Integer.toHexString(windowFlags)); AutoPtr<ClientState> cs; HashMap<AutoPtr<IBinder>, AutoPtr<ClientState> >::Iterator it = mClients.Find(IBinder::Probe(client)); if (it != mClients.End()) { cs = it->mSecond; } if (cs == NULL) { // throw new IllegalArgumentException("unknown client " // + client.asBinder()); return E_ILLEGAL_ARGUMENT_EXCEPTION; } // try { Boolean hasFocus = FALSE; if (!(mIWindowManager->InputMethodClientHasFocus(cs->mClient, &hasFocus), hasFocus)) { // Check with the window manager to make sure this client actually // has a window with focus. If not, reject. This is thread safe // because if the focus changes some time before or after, the // next client receiving focus that has any interest in input will // be calling through here after that change happens. // Slog.w(TAG, "Focus gain on non-focused client " + cs.client // + " (uid=" + cs.uid + " pid=" + cs.pid + ")"); Binder::RestoreCallingIdentity(ident); *result = NULL; return NOERROR; } // } catch (RemoteException e) { // } if (!calledFromValidUser) { // Slog.w(TAG, "A background user is requesting window. Hiding IME."); // Slog.w(TAG, "If you want to interect with IME, you need " // + "Elastos::Droid::Manifest::Permission::INTERACT_ACROSS_USERS_FULL"); HideCurrentInputLocked(0, NULL); *result = NULL; return NOERROR; } if (mCurFocusedWindow.Get() == windowToken) { // Slog.w(TAG, "Window already focused, ignoring focus gain of: " + client // + " attribute=" + attribute + ", token = " + windowToken); if (attribute != NULL) { ECode ec = StartInputUncheckedLocked(cs, inputContext, attribute, controlFlags, result); Binder::RestoreCallingIdentity(ident); return ec; } Binder::RestoreCallingIdentity(ident); *result = NULL; return NOERROR; } mCurFocusedWindow = windowToken; // Should we auto-show the IME even if the caller has not // specified what should be done with it? // We only do this automatically if the window can resize // to accommodate the IME (so what the user sees will give // them good context without input information being obscured // by the IME) or if running on a large screen where th==ere // is more room for the target window + IME. AutoPtr<IConfiguration> config; mRes->GetConfiguration((IConfiguration**)&config); Boolean isLayoutSizeAtLeast = FALSE; Boolean doAutoShow = (softInputMode & IWindowManagerLayoutParams::SOFT_INPUT_MASK_ADJUST) == IWindowManagerLayoutParams::SOFT_INPUT_ADJUST_RESIZE || (config->IsLayoutSizeAtLeast(IConfiguration::SCREENLAYOUT_SIZE_LARGE, &isLayoutSizeAtLeast), isLayoutSizeAtLeast); Boolean isTextEditor = (controlFlags & IInputMethodManager::CONTROL_WINDOW_IS_TEXT_EDITOR) != 0; // We want to start input before showing the IME, but after closing // it. We want to do this after closing it to help the IME disappear // more quickly (not get stuck behind it initializing itself for the // new focused input, even if its window wants to hide the IME). Boolean didStart = FALSE; switch (softInputMode & IWindowManagerLayoutParams::SOFT_INPUT_MASK_STATE) { case IWindowManagerLayoutParams::SOFT_INPUT_STATE_UNSPECIFIED: if (!isTextEditor || !doAutoShow) { AutoPtr<IWindowManagerLayoutParamsHelper> wmHelper; CWindowManagerLayoutParamsHelper::AcquireSingleton((IWindowManagerLayoutParamsHelper**)&wmHelper); Boolean mayUse = FALSE; wmHelper->MayUseInputMethodHelper(windowFlags, &mayUse); if (mayUse) { // There is no focus view, and this window will // be behind any soft input window, so hide the // soft input window if it is shown. // if (DEBUG) Slog.v(TAG, "Unspecified window will hide input"); HideCurrentInputLocked(IInputMethodManager::HIDE_NOT_ALWAYS, NULL); } } else if (isTextEditor && doAutoShow && (softInputMode & IWindowManagerLayoutParams::SOFT_INPUT_IS_FORWARD_NAVIGATION) != 0) { // There is a focus view, and we are navigating forward // into the window, so show the input window for the user. // We only do this automatically if the window can resize // to accommodate the IME (so what the user sees will give // them good context without input information being obscured // by the IME) or if running on a large screen where there // is more room for the target window + IME. // if (DEBUG) Slog.v(TAG, "Unspecified window will show input"); if (attribute != NULL) { StartInputUncheckedLocked(cs, inputContext, attribute, controlFlags, result); didStart = TRUE; } ShowCurrentInputLocked(IInputMethodManager::SHOW_IMPLICIT, NULL); } break; case IWindowManagerLayoutParams::SOFT_INPUT_STATE_UNCHANGED: // Do nothing. break; case IWindowManagerLayoutParams::SOFT_INPUT_STATE_HIDDEN: if ((softInputMode & IWindowManagerLayoutParams::SOFT_INPUT_IS_FORWARD_NAVIGATION) != 0) { // if (DEBUG) Slog.v(TAG, "Window asks to hide input going forward"); HideCurrentInputLocked(0, NULL); } break; case IWindowManagerLayoutParams::SOFT_INPUT_STATE_ALWAYS_HIDDEN: // if (DEBUG) Slog.v(TAG, "Window asks to hide input"); HideCurrentInputLocked(0, NULL); break; case IWindowManagerLayoutParams::SOFT_INPUT_STATE_VISIBLE: if ((softInputMode & IWindowManagerLayoutParams::SOFT_INPUT_IS_FORWARD_NAVIGATION) != 0) { // if (DEBUG) Slog.v(TAG, "Window asks to show input going forward"); if (attribute != NULL) { StartInputUncheckedLocked(cs, inputContext, attribute, controlFlags, result); didStart = TRUE; } ShowCurrentInputLocked(IInputMethodManager::SHOW_IMPLICIT, NULL); } break; case IWindowManagerLayoutParams::SOFT_INPUT_STATE_ALWAYS_VISIBLE: // if (DEBUG) Slog.v(TAG, "Window asks to always show input"); if (attribute != NULL) { StartInputUncheckedLocked(cs, inputContext, attribute, controlFlags, result); didStart = TRUE; } ShowCurrentInputLocked(IInputMethodManager::SHOW_IMPLICIT, NULL); break; } if (!didStart && attribute != NULL) { StartInputUncheckedLocked(cs, inputContext, attribute, controlFlags, result); } } // } finally { Binder::RestoreCallingIdentity(ident); // } return NOERROR; } ECode CInputMethodManagerService::ShowInputMethodPickerFromClient( /* [in] */ IInputMethodClient* client) { if (!CalledFromValidUser()) { return NOERROR; } Mutex::Autolock lock(mMethodMapLock); if (mCurClient == NULL || client == NULL || IBinder::Probe(mCurClient->mClient) != IBinder::Probe(client)) { Slogger::W(TAG, "Ignoring showInputMethodPickerFromClient of uid %d: %p" , Binder::GetCallingUid() , client); } // Always call subtype picker, because subtype picker is a superset of input method // picker. Boolean result; return mHandler->SendEmptyMessage(MSG_SHOW_IM_SUBTYPE_PICKER, &result); } ECode CInputMethodManagerService::SetInputMethod( /* [in] */ IBinder* token, /* [in] */ const String& id) { if (!CalledFromValidUser()) { return NOERROR; } SetInputMethodWithSubtypeId(token, id, NOT_A_SUBTYPE_ID); return NOERROR; } ECode CInputMethodManagerService::SetInputMethodAndSubtype( /* [in] */ IBinder* token, /* [in] */ const String& id, /* [in] */ IInputMethodSubtype* subtype) { if (!CalledFromValidUser()) { return NOERROR; } { Mutex::Autolock lock(mMethodMapLock); if (subtype != NULL) { AutoPtr<IInputMethodInfo> info; HashMap<String, AutoPtr<IInputMethodInfo> >::Iterator it = mMethodMap->Find(id); if (it != mMethodMap->End()) { info = it->mSecond; } Int32 hashCode; subtype->GetHashCode(&hashCode); SetInputMethodWithSubtypeId(token, id, GetSubtypeIdFromHashCode( info, hashCode)); } else { SetInputMethod(token, id); } } return NOERROR; } ECode CInputMethodManagerService::ShowInputMethodAndSubtypeEnablerFromClient( /* [in] */ IInputMethodClient* client, /* [in] */ const String& inputMethodId) { if (!CalledFromValidUser()) { return NOERROR; } { Mutex::Autolock lock(mMethodMapLock); if (mCurClient == NULL || client == NULL || IBinder::Probe(mCurClient->mClient) != IBinder::Probe(client)) { // Slog.w(TAG, "Ignoring showInputMethodAndSubtypeEnablerFromClient of: " + client); } AutoPtr<ICharSequence> seq; CStringWrapper::New(inputMethodId, (ICharSequence**)&seq); AutoPtr<IMessage> msg; mCaller->ObtainMessageO(MSG_SHOW_IM_SUBTYPE_ENABLER, seq, (IMessage**)&msg); ExecuteOrSendMessage(mCurMethod, msg); } return NOERROR; } ECode CInputMethodManagerService::SwitchToLastInputMethod( /* [in] */ IBinder* token, /* [out] */ Boolean* result) { VALIDATE_NOT_NULL(result); if (!CalledFromValidUser()) { *result = FALSE; return NOERROR; } { Mutex::Autolock lock(mMethodMapLock); AutoPtr<StringStringPair> lastIme = mSettings->GetLastInputMethodAndSubtypeLocked(); AutoPtr<IInputMethodInfo> lastImi; String first, second; if (lastIme != NULL) { HashMap<String, AutoPtr<IInputMethodInfo> >::Iterator it = mMethodMap->Find(lastIme->mFirst); if (it != mMethodMap->End()) { lastImi = it->mSecond; } } else { lastImi = NULL; } String targetLastImiId; Int32 subtypeId = NOT_A_SUBTYPE_ID; if (lastIme != NULL && lastImi != NULL) { String id; lastImi->GetId(&id); Boolean imiIdIsSame = id.Equals(mCurMethodId); const Int32 lastSubtypeHash = StringUtils::ParseInt32(lastIme->mSecond); Int32 hashCode; mCurrentSubtype->GetHashCode(&hashCode); const Int32 currentSubtypeHash = mCurrentSubtype == NULL ? NOT_A_SUBTYPE_ID : hashCode; // If the last IME is the same as the current IME and the last subtype is not // defined, there is no need to switch to the last IME. if (!imiIdIsSame || lastSubtypeHash != currentSubtypeHash) { targetLastImiId = lastIme->mFirst; subtypeId = GetSubtypeIdFromHashCode(lastImi, lastSubtypeHash); } } if (lastIme != NULL) lastIme = NULL; if (targetLastImiId.IsNullOrEmpty() && !CanAddToLastInputMethod(mCurrentSubtype)) { // This is a safety net. If the currentSubtype can't be added to the history // and the framework couldn't find the last ime, we will make the last ime be // the most applicable enabled keyboard subtype of the system imes. AutoPtr<InputMethodInfoList> enabled = mSettings->GetEnabledInputMethodListLocked(); if (enabled != NULL) { String locale; if (mCurrentSubtype == NULL) { AutoPtr<IConfiguration> config; mRes->GetConfiguration((IConfiguration**)&config); AutoPtr<ILocale> l; config->GetLocale((ILocale**)&l); l->ToString(&locale); } else { mCurrentSubtype->GetLocale(&locale); } List<AutoPtr<IInputMethodInfo> >::Iterator ator; for (ator = enabled->Begin(); ator != enabled->End(); ++ator) { AutoPtr<IInputMethodInfo> imi = *ator; Int32 count = 0; if ((imi->GetSubtypeCount(&count), count) > 0 && IsSystemIme(imi)) { AutoPtr< InputMethodSubtypeList > subtypes = GetSubtypes(imi); AutoPtr<IInputMethodSubtype> keyboardSubtype = FindLastResortApplicableSubtypeLocked(mRes, subtypes, SUBTYPE_MODE_KEYBOARD, locale, TRUE); if (keyboardSubtype != NULL) { imi->GetId(&targetLastImiId); Int32 hashCode; keyboardSubtype->GetHashCode(&hashCode); subtypeId = GetSubtypeIdFromHashCode(imi, hashCode); String keyL; keyboardSubtype->GetLocale(&keyL); if(keyL.Equals(locale)) { break; } } } } enabled = NULL; } } if (!targetLastImiId.IsNullOrEmpty()) { // if (DEBUG) { // Slog.d(TAG, "Switch to: " + lastImi.getId() + ", " + lastIme.second // + ", from: " + mCurMethodId + ", " + subtypeId); // } SetInputMethodWithSubtypeId(token, targetLastImiId, subtypeId); *result = TRUE; return NOERROR; } else { *result = FALSE; return NOERROR; } } } ECode CInputMethodManagerService::SwitchToNextInputMethod( /* [in] */ IBinder* token, /* [in] */ Boolean onlyCurrentIme, /* [out] */ Boolean* result) { VALIDATE_NOT_NULL(result); if (!CalledFromValidUser()) { *result = FALSE; return NOERROR; } { Mutex::Autolock lock(mMethodMapLock); AutoPtr<IInputMethodInfo> info; HashMap<String, AutoPtr<IInputMethodInfo> >::Iterator it = mMethodMap->Find(mCurMethodId); if (it != mMethodMap->End()) { info = it->mSecond; } AutoPtr<ImeSubtypeListItem> nextSubtype = mImListManager->GetNextInputMethod( onlyCurrentIme, info, mCurrentSubtype); if (nextSubtype == NULL) { *result = FALSE; return NOERROR; } String id; nextSubtype->mImi->GetId(&id); SetInputMethodWithSubtypeId(token, id, nextSubtype->mSubtypeId); *result = TRUE; return NOERROR; } } ECode CInputMethodManagerService::GetLastInputMethodSubtype( /* [out] */ IInputMethodSubtype** subtype) { VALIDATE_NOT_NULL(subtype); *subtype = NULL; if (!CalledFromValidUser()) { return NOERROR; } { Mutex::Autolock lock(mMethodMapLock); AutoPtr<StringStringPair> lastIme = mSettings->GetLastInputMethodAndSubtypeLocked(); // TODO: Handle the case of the last IME with no subtypes if (lastIme == NULL || lastIme->mFirst.IsNullOrEmpty() || lastIme->mSecond.IsNullOrEmpty()) { return NOERROR; } AutoPtr<IInputMethodInfo> lastImi; HashMap<String, AutoPtr<IInputMethodInfo> >::Iterator it = mMethodMap->Find(lastIme->mFirst); if (it != mMethodMap->End()) { lastImi = it->mSecond; } if (lastImi == NULL) { return NOERROR; } // try { Int32 lastSubtypeHash = StringUtils::ParseInt32(lastIme->mSecond); Int32 lastSubtypeId = GetSubtypeIdFromHashCode(lastImi, lastSubtypeHash); Int32 subtypeCount = 0; lastImi->GetSubtypeCount(&subtypeCount); if (lastSubtypeId < 0 || lastSubtypeId >= subtypeCount) { return NOERROR; } return lastImi->GetSubtypeAt(lastSubtypeId, subtype); // } catch (NumberFormatException e) { // return NULL; // } } } ECode CInputMethodManagerService::SetAdditionalInputMethodSubtypes( /* [in] */ const String& imiId, /* [in] */ ArrayOf<IInputMethodSubtype*>* subtypes) { if (!CalledFromValidUser()) { return NOERROR; } // By this IPC call, only a process which shares the same uid with the IME can add // additional input method subtypes to the IME. AutoPtr<ICharSequence> tmp; CStringWrapper::New(imiId, (ICharSequence**)&tmp); if (imiId.IsNullOrEmpty() || subtypes == NULL || subtypes->GetLength() == 0) return NOERROR; { Mutex::Autolock lock(mMethodMapLock); AutoPtr<IInputMethodInfo> imi; HashMap<String, AutoPtr<IInputMethodInfo> >::Iterator it = mMethodMap->Find(imiId); if (it != mMethodMap->End()) { imi = it->mSecond; } if (imi == NULL) return NOERROR; AutoPtr<ArrayOf<String> > packageInfos; if (FAILED(mIPackageManager->GetPackagesForUid(Binder::GetCallingUid(), (ArrayOf<String>**)&packageInfos))) { SLOGGERE(TAG, "Failed to get package infos") return NOERROR; } if (packageInfos != NULL) { Int32 packageNum = packageInfos->GetLength(); for (Int32 i = 0; i < packageNum; ++i) { String pName; imi->GetPackageName(&pName); if ((*packageInfos)[i].Equals(pName)) { mFileManager->AddInputMethodSubtypes(imi, subtypes); Int64 ident = Binder::ClearCallingIdentity(); // try { BuildInputMethodListLocked(mMethodList, mMethodMap); // } finally { Binder::RestoreCallingIdentity(ident); // } return NOERROR; } } } } return NOERROR; } ECode CInputMethodManagerService::SetInputMethodWithSubtypeId( /* [in] */ IBinder* token, /* [in] */ const String& id, /* [in] */ Int32 subtypeId) { Mutex::Autolock lock(mMethodMapLock); if (token == NULL) { Int32 perm = 0; FAIL_RETURN(mContext->CheckCallingOrSelfPermission( Elastos::Droid::Manifest::Permission::WRITE_SECURE_SETTINGS, &perm)); if (perm != IPackageManager::PERMISSION_GRANTED) { // throw new SecurityException( // "Using NULL token requires permission " // + Elastos::Droid::Manifest::Permission::WRITE_SECURE_SETTINGS); return E_SECURITY_EXCEPTION; } } else if (mCurToken.Get() != token) { // Slog.w(TAG, "Ignoring setInputMethod of uid " + Binder::GetCallingUid() // + " token: " + token); return NOERROR; } Int64 ident = Binder::ClearCallingIdentity(); ECode ec = SetInputMethodLocked(id, subtypeId); Binder::RestoreCallingIdentity(ident); return ec; } ECode CInputMethodManagerService::HideMySoftInput( /* [in] */ IBinder* token, /* [in] */ Int32 flags) { // if (!CalledFromValidUser()) { // return NOERROR; // } Mutex::Autolock lock(mMethodMapLock); if (token == NULL || mCurToken.Get() != token) { // if (DEBUG) Slog.w(TAG, "Ignoring hideInputMethod of uid " // + Binder::GetCallingUid() + " token: " + token); return NOERROR; } Int64 ident = Binder::ClearCallingIdentity(); HideCurrentInputLocked(flags, NULL); Binder::RestoreCallingIdentity(ident); return NOERROR; } ECode CInputMethodManagerService::ShowMySoftInput( /* [in] */ IBinder* token, /* [in] */ Int32 flags) { if (!CalledFromValidUser()) { return NOERROR; } Mutex::Autolock lock(mMethodMapLock); if (token == NULL || mCurToken.Get() != token) { // Slog.w(TAG, "Ignoring showMySoftInput of uid " // + Binder::GetCallingUid() + " token: " + token); return NOERROR; } Int64 ident = Binder::ClearCallingIdentity(); ShowCurrentInputLocked(flags, NULL); Binder::RestoreCallingIdentity(ident); return NOERROR; } void CInputMethodManagerService::SetEnabledSessionInMainThread( /* [in] */ SessionState* session) { if (mEnabledSession.Get() != session) { if (mEnabledSession != NULL) { // try { if (DEBUG) Slogger::V(TAG, "Disabling: %p", mEnabledSession.Get()); mEnabledSession->mMethod->SetSessionEnabled(mEnabledSession->mSession, FALSE); // } catch (RemoteException e) { // } } mEnabledSession = session; // try { if (DEBUG) Slogger::V(TAG, "Enabling: %p", mEnabledSession.Get()); session->mMethod->SetSessionEnabled(session->mSession, TRUE); // } catch (RemoteException e) { // } } } Boolean CInputMethodManagerService::IsSystemIme( /* [in] */ IInputMethodInfo* inputMethod) { AutoPtr<IServiceInfo> serInfo; inputMethod->GetServiceInfo((IServiceInfo**)&serInfo); AutoPtr<IApplicationInfo> appInfo; serInfo->GetApplicationInfo((IApplicationInfo**)&appInfo); Int32 flag = 0; appInfo->GetFlags(&flag); return (flag & IApplicationInfo::FLAG_SYSTEM) != 0; } AutoPtr< InputMethodSubtypeList > CInputMethodManagerService::GetSubtypes( /* [in] */ IInputMethodInfo* imi) { AutoPtr< InputMethodSubtypeList > subtypes = new InputMethodSubtypeList(); Int32 subtypeCount = 0; imi->GetSubtypeCount(&subtypeCount); for (Int32 i = 0; i < subtypeCount; ++i) { AutoPtr<IInputMethodSubtype> subtype; imi->GetSubtypeAt(i, (IInputMethodSubtype**)&subtype); subtypes->PushBack(subtype); } return subtypes; } AutoPtr< InputMethodSubtypeList > CInputMethodManagerService::GetOverridingImplicitlyEnabledSubtypes( /* [in] */ IInputMethodInfo* imi, /* [in] */ const String& mode) { AutoPtr< InputMethodSubtypeList > subtypes = new InputMethodSubtypeList(); Int32 subtypeCount = 0; imi->GetSubtypeCount(&subtypeCount); for (Int32 i = 0; i < subtypeCount; ++i) { AutoPtr<IInputMethodSubtype> subtype; imi->GetSubtypeAt(i, (IInputMethodSubtype**)&subtype); Boolean result = FALSE; String subtypeMode; subtype->GetMode(&subtypeMode); if ((subtype->OverridesImplicitlyEnabledSubtype(&result), result) && (subtypeMode.Equals(mode))) { subtypes->PushBack(subtype); } } return subtypes; } AutoPtr<IInputMethodInfo> CInputMethodManagerService::GetMostApplicableDefaultIMELocked() { AutoPtr< InputMethodInfoList > enabled = mSettings->GetEnabledInputMethodListLocked(); if (enabled != NULL && enabled->Begin() != enabled->End()) { // We'd prefer to fall back on a system IME, since that is safer. InputMethodInfoListReverseIterator rit = enabled->RBegin(); InputMethodInfoListReverseIterator firstFoundSystemIme = enabled->REnd(); while (rit != enabled->REnd()) { AutoPtr<IInputMethodInfo> imi = *rit; Boolean result = FALSE; if (IsSystemImeThatHasEnglishSubtype(imi) && !(imi->IsAuxiliaryIme(&result), result)) { return imi; } if (firstFoundSystemIme == enabled->REnd() && IsSystemIme(imi) && !(imi->IsAuxiliaryIme(&result), result)) { firstFoundSystemIme = rit; } ++rit; } return firstFoundSystemIme != enabled->REnd() ? *firstFoundSystemIme : *enabled->Begin(); } return NULL; } Boolean CInputMethodManagerService::ChooseNewDefaultIMELocked() { AutoPtr<IInputMethodInfo> imi = GetMostApplicableDefaultIMELocked(); if (imi != NULL) { // if (DEBUG) { // Slog.d(TAG, "New default IME was selected: " + imi.getId()); // } String id; imi->GetId(&id); ResetSelectedInputMethodAndSubtypeLocked(id); return TRUE; } return FALSE; } void CInputMethodManagerService::BuildInputMethodListLocked( /* [in] */ InputMethodInfoList* list, /* [in] */ HashMap<String, AutoPtr<IInputMethodInfo> >* map) { if (DEBUG) { Slogger::D(TAG, "--- re-buildInputMethodList, \n ------ \n"); } list->Clear(); map->Clear(); // Use for queryIntentServicesAsUser AutoPtr<IPackageManager> pm; mContext->GetPackageManager((IPackageManager**)&pm); AutoPtr<IConfiguration> config; mRes->GetConfiguration((IConfiguration**)&config); Int32 keyboard = 0; config->GetKeyboard(&keyboard); const Boolean haveHardKeyboard = keyboard == IConfiguration::KEYBOARD_QWERTY; String disabledSysImes = mSettings->GetDisabledSystemInputMethods(); if (disabledSysImes.IsNull()) disabledSysImes = ""; AutoPtr<IIntent> intent; CIntent::New(IInputMethod::SERVICE_INTERFACE, (IIntent**)&intent); AutoPtr<IObjectContainer> query; pm->QueryIntentServicesAsUser(intent, IPackageManager::GET_META_DATA, mSettings->GetCurrentUserId(), (IObjectContainer**)&query); AutoPtr<IObjectEnumerator> svItem; query->GetObjectEnumerator((IObjectEnumerator**)&svItem); Boolean hasNext = FALSE; AutoPtr<IObjectStringMap> additionalSubtypes = mFileManager->GetAllAdditionalInputMethodSubtypes(); String pkgName, name, permission, strCompName, id; while(svItem->MoveNext(&hasNext), hasNext) { AutoPtr<IResolveInfo> ri; svItem->Current((IInterface**)&ri); AutoPtr<IServiceInfo> si; ri->GetServiceInfo((IServiceInfo**)&si); si->GetPackageName(&pkgName); si->GetName(&name); si->GetPermission(&permission); AutoPtr<IComponentName> compName; CComponentName::New(pkgName, name, (IComponentName**)&compName); compName->ToString(&strCompName); if (!Elastos::Droid::Manifest::Permission::BIND_INPUT_METHOD.Equals(permission)) { Slogger::W(TAG, "Skipping input method compName: %s:" \ " it does not require the permission android.permission.BIND_INPUT_METHOD", strCompName.string()); continue; } if (DEBUG) Slogger::D(TAG, "Checking %s", strCompName.string()); //try { AutoPtr<IInputMethodInfo> p; CInputMethodInfo::New(mContext, ri, additionalSubtypes, (IInputMethodInfo**)&p); list->PushBack(p); p->GetId(&id); (*map)[id] = p; // Valid system default IMEs and IMEs that have English subtypes are enabled // by default if ((IsValidSystemDefaultIme(p, mContext) || IsSystemImeThatHasEnglishSubtype(p))) { SetInputMethodEnabledLocked(id, TRUE); } if (DEBUG) { Slogger::D(TAG, "Found a third-party input method %s", id.string()); } // } catch (XmlPullParserException e) { // Slog.w(TAG, "Unable to load input method " + compName, e); // } catch (IOException e) { // Slog.w(TAG, "Unable to load input method " + compName, e); // } } String defaultImiId = mSettings->GetSelectedInputMethod(); if (!defaultImiId.IsNullOrEmpty()) { if (map->Find(defaultImiId) == map->End()) { Slogger::W(TAG, "Default IME is uninstalled. Choose new default IME."); if (ChooseNewDefaultIMELocked()) { UpdateFromSettingsLocked(); } } else { // Double check that the default IME is certainly enabled. SetInputMethodEnabledLocked(defaultImiId, TRUE); } } } void CInputMethodManagerService::ShowInputMethodMenu() { ShowInputMethodMenuInternal(FALSE); } void CInputMethodManagerService::ShowInputMethodSubtypeMenu() { ShowInputMethodMenuInternal(TRUE); } void CInputMethodManagerService::ShowInputMethodAndSubtypeEnabler( /* [in] */ const String& inputMethodId) { AutoPtr<IIntent> intent; CIntent::New(ISettings::ACTION_INPUT_METHOD_SUBTYPE_SETTINGS, (IIntent**)&intent); intent->SetFlags(IIntent::FLAG_ACTIVITY_NEW_TASK | IIntent::FLAG_ACTIVITY_RESET_TASK_IF_NEEDED | IIntent::FLAG_ACTIVITY_CLEAR_TOP); if (!TextUtils::IsEmpty(inputMethodId)) { intent->PutStringExtra(ISettings::EXTRA_INPUT_METHOD_ID, inputMethodId); } AutoPtr<IUserHandleHelper> userHandleHelper; CUserHandleHelper::AcquireSingleton((IUserHandleHelper**)&userHandleHelper); AutoPtr<IUserHandle> CURRENT; userHandleHelper->GetCURRENT((IUserHandle**)&CURRENT); mContext->StartActivityAsUserEx(intent, NULL, CURRENT); } void CInputMethodManagerService::ShowConfigureInputMethods() { AutoPtr<IIntent> intent; CIntent::New(ISettings::ACTION_INPUT_METHOD_SETTINGS, (IIntent**)&intent); intent->SetFlags(IIntent::FLAG_ACTIVITY_NEW_TASK | IIntent::FLAG_ACTIVITY_RESET_TASK_IF_NEEDED | IIntent::FLAG_ACTIVITY_CLEAR_TOP); AutoPtr<IUserHandleHelper> userHandleHelper; CUserHandleHelper::AcquireSingleton((IUserHandleHelper**)&userHandleHelper); AutoPtr<IUserHandle> CURRENT; userHandleHelper->GetCURRENT((IUserHandle**)&CURRENT); mContext->StartActivityAsUserEx(intent, NULL, CURRENT); } Boolean CInputMethodManagerService::IsScreenLocked() { Boolean rst = FALSE; if (mKeyguardManager != NULL) { Boolean isKeyguardLocked, isKeyguardSecure; mKeyguardManager->IsKeyguardLocked(&isKeyguardLocked); mKeyguardManager->IsKeyguardSecure(&isKeyguardSecure); if (isKeyguardLocked && isKeyguardSecure) { rst = TRUE; } } return rst; } void CInputMethodManagerService::ShowInputMethodMenuInternal( /* [in] */ Boolean showSubtypes) { // assert(0); Slogger::E(TAG, "// TODO: ShowInputMethodMenuInternal() E_NOT_IMPLEMENTED Line: %d", __LINE__); // if (DEBUG) Slog.v(TAG, "Show switching menu"); // final Context context = mContext; // final boolean isScreenLocked = isScreenLocked(); // final String lastInputMethodId = mSettings.getSelectedInputMethod(); // int lastInputMethodSubtypeId = getSelectedInputMethodSubtypeId(lastInputMethodId); // if (DEBUG) Slog.v(TAG, "Current IME: " + lastInputMethodId); // synchronized (mMethodMap) { // final HashMap<InputMethodInfo, List<InputMethodSubtype>> immis = // getExplicitlyOrImplicitlyEnabledInputMethodsAndSubtypeListLocked(); // if (immis == NULL || immis.size() == 0) { // return; // } // hideInputMethodMenuLocked(); // final List<ImeSubtypeListItem> imList = // mImListManager.getSortedInputMethodAndSubtypeList( // showSubtypes, mInputShown, isScreenLocked); // if (lastInputMethodSubtypeId == NOT_A_SUBTYPE_ID) { // final InputMethodSubtype currentSubtype = getCurrentInputMethodSubtypeLocked(); // if (currentSubtype != NULL) { // final InputMethodInfo currentImi = mMethodMap->get(mCurMethodId); // lastInputMethodSubtypeId = // getSubtypeIdFromHashCode(currentImi, currentSubtype.hashCode()); // } // } // final int N = imList.size(); // mIms = new InputMethodInfo[N]; // mSubtypeIds = new int[N]; // int checkedItem = 0; // for (int i = 0; i < N; ++i) { // final ImeSubtypeListItem item = imList.get(i); // mIms[i] = item.mImi; // mSubtypeIds[i] = item.mSubtypeId; // if (mIms[i].getId().equals(lastInputMethodId)) { // int subtypeId = mSubtypeIds[i]; // if ((subtypeId == NOT_A_SUBTYPE_ID) // || (lastInputMethodSubtypeId == NOT_A_SUBTYPE_ID && subtypeId == 0) // || (subtypeId == lastInputMethodSubtypeId)) { // checkedItem = i; // } // } // } // final TypedArray a = context.obtainStyledAttributes(NULL, // com.android.internal.R.styleable.DialogPreference, // com.android.internal.R.attr.alertDialogStyle, 0); // mDialogBuilder = new AlertDialog.Builder(context) // .setOnCancelListener(new OnCancelListener() { // @Override // public void onCancel(DialogInterface dialog) { // hideInputMethodMenu(); // } // }) // .setIcon(a.getDrawable( // com.android.internal.R.styleable.DialogPreference_dialogTitle)); // a.recycle(); // final LayoutInflater inflater = // (LayoutInflater)mContext.getSystemService(Context.LAYOUT_INFLATER_SERVICE); // final View tv = inflater.inflate( // com.android.internal.R.layout.input_method_switch_dialog_title, NULL); // mDialogBuilder.setCustomTitle(tv); // // Setup layout for a toggle switch of the hardware keyboard // mSwitchingDialogTitleView = tv; // mSwitchingDialogTitleView.findViewById( // com.android.internal.R.id.hard_keyboard_section).setVisibility( // mWindowManagerService.isHardKeyboardAvailable() ? // View.VISIBLE : View.GONE); // final Switch hardKeySwitch = ((Switch)mSwitchingDialogTitleView.findViewById( // com.android.internal.R.id.hard_keyboard_switch)); // hardKeySwitch.setChecked(mWindowManagerService.isHardKeyboardEnabled()); // hardKeySwitch.setOnCheckedChangeListener( // new OnCheckedChangeListener() { // @Override // public void onCheckedChanged( // CompoundButton buttonView, boolean isChecked) { // mWindowManagerService.setHardKeyboardEnabled(isChecked); // } // }); // final ImeSubtypeListAdapter adapter = new ImeSubtypeListAdapter(context, // com.android.internal.R.layout.simple_list_item_2_single_choice, imList, // checkedItem); // mDialogBuilder.setSingleChoiceItems(adapter, checkedItem, // new AlertDialog.OnClickListener() { // @Override // public void onClick(DialogInterface dialog, int which) { // synchronized (mMethodMap) { // if (mIms == NULL || mIms.length <= which // || mSubtypeIds == NULL || mSubtypeIds.length <= which) { // return; // } // InputMethodInfo im = mIms[which]; // int subtypeId = mSubtypeIds[which]; // hideInputMethodMenu(); // if (im != NULL) { // if ((subtypeId < 0) // || (subtypeId >= im.getSubtypeCount())) { // subtypeId = NOT_A_SUBTYPE_ID; // } // setInputMethodLocked(im.getId(), subtypeId); // } // } // } // }); // if (showSubtypes && !isScreenLocked) { // mDialogBuilder.setPositiveButton( // com.android.internal.R.string.configure_input_methods, // new DialogInterface.OnClickListener() { // @Override // public void onClick(DialogInterface dialog, int whichButton) { // showConfigureInputMethods(); // } // }); // } // mSwitchingDialog = mDialogBuilder.create(); // mSwitchingDialog.setCanceledOnTouchOutside(true); // mSwitchingDialog.getWindow().setType( // WindowManager.LayoutParams.TYPE_INPUT_METHOD_DIALOG); // mSwitchingDialog.getWindow().getAttributes().privateFlags |= // WindowManager.LayoutParams.PRIVATE_FLAG_SHOW_FOR_ALL_USERS; // mSwitchingDialog.getWindow().getAttributes().setTitle("Select input method"); // mSwitchingDialog.show(); // } } void CInputMethodManagerService::HideInputMethodMenu() { Mutex::Autolock lock(mMethodMapLock); HideInputMethodMenuLocked(); } void CInputMethodManagerService::HideInputMethodMenuLocked() { // if (DEBUG) Slog.v(TAG, "Hide switching menu"); if (mSwitchingDialog != NULL) { mSwitchingDialog->Dismiss(); mSwitchingDialog = NULL; } mDialogBuilder = NULL; mIms = NULL; } ECode CInputMethodManagerService::SetInputMethodEnabled( /* [in] */ const String& id, /* [in] */ Boolean enabled, /* [out] */ Boolean* state) { VALIDATE_NOT_NULL(state); // TODO: Make this work even for non-current users? if (!CalledFromValidUser()) { *state = FALSE; return NOERROR; } Mutex::Autolock lock(mMethodMapLock); Int32 perm = 0; FAIL_RETURN(mContext->CheckCallingOrSelfPermission( Elastos::Droid::Manifest::Permission::WRITE_SECURE_SETTINGS, &perm)); if (perm != IPackageManager::PERMISSION_GRANTED) { // throw new SecurityException( // "Requires permission " // + Elastos::Droid::Manifest::Permission::WRITE_SECURE_SETTINGS); return E_SECURITY_EXCEPTION; } Int64 ident = Binder::ClearCallingIdentity(); *state = SetInputMethodEnabledLocked(id, enabled); Binder::RestoreCallingIdentity(ident); return NOERROR; } Boolean CInputMethodManagerService::SetInputMethodEnabledLocked( /* [in] */ const String& id, /* [in] */ Boolean enabled) { // Make sure this is a valid input method. // HashMap<String, IInputMethodInfo*>::Iterator it = // mMethodMap->Find(id); // if (it == mMethodMap->End()) { // assert(0); // //throw new IllegalArgumentException("Unknown id: " + mCurMethodId); // } return TRUE; //TODO // List<Pair<String, ArrayList<String>>> enabledInputMethodsList = // mSettings->GetEnabledInputMethodsAndSubtypeListLocked(); // if (enabled) { // for (Pair<String, ArrayList<String>> pair: enabledInputMethodsList) { // if (pair.first.equals(id)) { // // We are enabling this input method, but it is already enabled. // // Nothing to do. The previous state was enabled. // return true; // } // } // mSettings->AppendAndPutEnabledInputMethodLocked(id, FALSE); // // Previous state was disabled. // return FALSE; // } else { // StringBuilder builder = new StringBuilder(); // if (mSettings.buildAndPutEnabledInputMethodsStrRemovingIdLocked( // builder, enabledInputMethodsList, id)) { // // Disabled input method is currently selected, switch to another one. // final String selId = mSettings.getSelectedInputMethod(); // if (id.equals(selId) && !chooseNewDefaultIMELocked()) { // Slog.i(TAG, "Can't find new IME, unsetting the current input method."); // resetSelectedInputMethodAndSubtypeLocked(""); // } // // Previous state was enabled. // return true; // } else { // // We are disabling the input method but it is already disabled. // // Nothing to do. The previous state was disabled. // return false; // } // } } Boolean CInputMethodManagerService::CanAddToLastInputMethod( /* [in] */ IInputMethodSubtype* subtype) { if (subtype == NULL) return TRUE; Boolean can = FALSE; subtype->IsAuxiliary(&can); return !can; } void CInputMethodManagerService::SaveCurrentInputMethodAndSubtypeToHistory() { String subtypeId = NOT_A_SUBTYPE_ID_STR; if (mCurrentSubtype != NULL) { Int32 hashCode = 0; mCurrentSubtype->GetHashCode(&hashCode); subtypeId = StringUtils::Int32ToString(hashCode); } if (CanAddToLastInputMethod(mCurrentSubtype)) { mSettings->AddSubtypeToHistory(mCurMethodId, subtypeId); } } void CInputMethodManagerService::SetSelectedInputMethodAndSubtypeLocked( /* [in] */ IInputMethodInfo* imi, /* [in] */ Int32 subtypeId, /* [in] */ Boolean setSubtypeOnly) { // Update the history of InputMethod and Subtype SaveCurrentInputMethodAndSubtypeToHistory(); // Set Subtype here if (imi == NULL || subtypeId < 0) { mSettings->PutSelectedSubtype(NOT_A_SUBTYPE_ID); mCurrentSubtype = NULL; } else { Int32 count = 0; if (subtypeId < (imi->GetSubtypeCount(&count), count)) { AutoPtr<IInputMethodSubtype> subtype; imi->GetSubtypeAt(subtypeId, (IInputMethodSubtype**)&subtype); assert(subtype != NULL); Int32 hashCode; subtype->GetHashCode(&hashCode); mSettings->PutSelectedSubtype(hashCode); mCurrentSubtype = subtype; } else { mSettings->PutSelectedSubtype(NOT_A_SUBTYPE_ID); // If the subtype is not specified, choose the most applicable one mCurrentSubtype = GetCurrentInputMethodSubtypeLocked(); } } // Workaround. // ASEC is not ready in the IMMS constructor. Accordingly, forward-locked // IMEs are not recognized and considered uninstalled. // Actually, we can't move everything after SystemReady because // IMMS needs to run in the encryption lock screen. So, we just skip changing // the default IME here and try cheking the default IME again in systemReady(). // TODO: Do nothing before system ready and implement a separated logic for // the encryption lock screen. // TODO: ASEC should be ready before IMMS is instantiated. if (mSystemReady && !setSubtypeOnly) { // Set InputMethod here String id; mSettings->PutSelectedInputMethod(imi != NULL ? (imi->GetId(&id), id) : String("")); } } void CInputMethodManagerService::ResetSelectedInputMethodAndSubtypeLocked( /* [in] */ const String& newDefaultIme) { AutoPtr<IInputMethodInfo> imi; HashMap<String, AutoPtr<IInputMethodInfo> >::Iterator it = mMethodMap->Find(newDefaultIme); if (it != mMethodMap->End()) { imi = it->mSecond; } Int32 lastSubtypeId = NOT_A_SUBTYPE_ID; // newDefaultIme is empty when there is no candidate for the selected IME. if (imi != NULL && !newDefaultIme.IsNullOrEmpty()) { String subtypeHashCode = mSettings->GetLastSubtypeForInputMethodLocked(newDefaultIme); if (!subtypeHashCode.IsNull()) { // try { lastSubtypeId = GetSubtypeIdFromHashCode( imi, StringUtils::ParseInt32(subtypeHashCode)); // } catch (NumberFormatException e) { // Slog.w(TAG, "GetHashCode for subtype looks broken: " + subtypeHashCode, e); // } } } SetSelectedInputMethodAndSubtypeLocked(imi, lastSubtypeId, FALSE); } Int32 CInputMethodManagerService::GetSelectedInputMethodSubtypeId( /* [in] */ const String& id) { AutoPtr<IInputMethodInfo> imi; HashMap<String, AutoPtr<IInputMethodInfo> >::Iterator it = mMethodMap->Find(id); if (it != mMethodMap->End()) { imi = it->mSecond; } if (imi == NULL) { return NOT_A_SUBTYPE_ID; } Int32 subtypeHashCode = mSettings->GetSelectedInputMethodSubtypeHashCode(); return GetSubtypeIdFromHashCode(imi, subtypeHashCode); } Boolean CInputMethodManagerService::IsValidSubtypeId( /* [in] */ IInputMethodInfo* imi, /* [in] */ Int32 subtypeHashCode) { return GetSubtypeIdFromHashCode(imi, subtypeHashCode) != NOT_A_SUBTYPE_ID; } Int32 CInputMethodManagerService::GetSubtypeIdFromHashCode( /* [in] */ IInputMethodInfo* imi, /* [in] */ Int32 subtypeHashCode) { if (imi != NULL) { Int32 subtypeCount = 0; imi->GetSubtypeCount(&subtypeCount); for (Int32 i = 0; i < subtypeCount; ++i) { AutoPtr<IInputMethodSubtype> ims; imi->GetSubtypeAt(i, (IInputMethodSubtype**)&ims); Int32 hashCode; ims->GetHashCode(&hashCode); if (subtypeHashCode == hashCode) { return i; } } } return NOT_A_SUBTYPE_ID; } AutoPtr< InputMethodSubtypeList > CInputMethodManagerService::GetImplicitlyApplicableSubtypesLocked( /* [in] */ IResources* res, /* [in] */ IInputMethodInfo* imi) { // final List<InputMethodSubtype> subtypes = getSubtypes(imi); // final String systemLocale = res.getConfiguration().locale.toString(); // if (TextUtils::IsEmpty(systemLocale)) return new ArrayList<InputMethodSubtype>(); // final HashMap<String, InputMethodSubtype> applicableModeAndSubtypesMap = // new HashMap<String, InputMethodSubtype>(); // final int N = subtypes.size(); // for (int i = 0; i < N; ++i) { // // scan overriding implicitly enabled subtypes. // InputMethodSubtype subtype = subtypes.get(i); // if (subtype.overridesImplicitlyEnabledSubtype()) { // final String mode = subtype.getMode(); // if (!applicableModeAndSubtypesMap.containsKey(mode)) { // applicableModeAndSubtypesMap.put(mode, subtype); // } // } // } // if (applicableModeAndSubtypesMap.size() > 0) { // return new ArrayList<InputMethodSubtype>(applicableModeAndSubtypesMap.values()); // } // for (int i = 0; i < N; ++i) { // final InputMethodSubtype subtype = subtypes.get(i); // final String locale = subtype.getLocale(); // final String mode = subtype.getMode(); // // When system locale starts with subtype's locale, that subtype will be applicable // // for system locale // // For instance, it's clearly applicable for cases like system locale = en_US and // // subtype = en, but it is not necessarily considered applicable for cases like system // // locale = en and subtype = en_US. // // We just call systemLocale.startsWith(locale) in this function because there is no // // need to find applicable subtypes aggressively unlike // // findLastResortApplicableSubtypeLocked. // if (systemLocale.startsWith(locale)) { // final InputMethodSubtype applicableSubtype = applicableModeAndSubtypesMap.get(mode); // // If more applicable subtypes are contained, skip. // if (applicableSubtype != NULL) { // if (systemLocale.equals(applicableSubtype.getLocale())) continue; // if (!systemLocale.equals(locale)) continue; // } // applicableModeAndSubtypesMap.put(mode, subtype); // } // } // final InputMethodSubtype keyboardSubtype // = applicableModeAndSubtypesMap.get(SUBTYPE_MODE_KEYBOARD); // final ArrayList<InputMethodSubtype> applicableSubtypes = new ArrayList<InputMethodSubtype>( // applicableModeAndSubtypesMap.values()); // if (keyboardSubtype != NULL && !keyboardSubtype.containsExtraValueKey(TAG_ASCII_CAPABLE)) { // for (int i = 0; i < N; ++i) { // final InputMethodSubtype subtype = subtypes.get(i); // final String mode = subtype.getMode(); // if (SUBTYPE_MODE_KEYBOARD.equals(mode) && subtype.containsExtraValueKey( // TAG_ENABLED_WHEN_DEFAULT_IS_NOT_ASCII_CAPABLE)) { // applicableSubtypes.add(subtype); // } // } // } // if (keyboardSubtype == NULL) { // InputMethodSubtype lastResortKeyboardSubtype = findLastResortApplicableSubtypeLocked( // res, subtypes, SUBTYPE_MODE_KEYBOARD, systemLocale, true); // if (lastResortKeyboardSubtype != NULL) { // applicableSubtypes.add(lastResortKeyboardSubtype); // } // } // return applicableSubtypes; PFL_EX("TODO:") AutoPtr<InputMethodSubtypeList> retList = new InputMethodSubtypeList(); return retList; } AutoPtr<IInputMethodSubtype> CInputMethodManagerService::FindLastResortApplicableSubtypeLocked( /* [in] */ IResources* res, /* [in] */ InputMethodSubtypeList* subtypes, /* [in] */ const String& mode, /* [in] */ const String& locale, /* [in] */ Boolean canIgnoreLocaleAsLastResort) { // if (subtypes == NULL || subtypes.size() == 0) { // return NULL; // } // if (TextUtils::IsEmpty(locale)) { // locale = res.getConfiguration().locale.toString(); // } // final String language = locale.substring(0, 2); // boolean partialMatchFound = false; // InputMethodSubtype applicableSubtype = NULL; // InputMethodSubtype firstMatchedModeSubtype = NULL; // final int N = subtypes.size(); // for (int i = 0; i < N; ++i) { // InputMethodSubtype subtype = subtypes.get(i); // final String subtypeLocale = subtype.getLocale(); // // An applicable subtype should match "mode". If mode is NULL, mode will be ignored, // // and all subtypes with all modes can be candidates. // if (mode == NULL || subtypes.get(i).getMode().equalsIgnoreCase(mode)) { // if (firstMatchedModeSubtype == NULL) { // firstMatchedModeSubtype = subtype; // } // if (locale.equals(subtypeLocale)) { // // Exact match (e.g. system locale is "en_US" and subtype locale is "en_US") // applicableSubtype = subtype; // break; // } else if (!partialMatchFound && subtypeLocale.startsWith(language)) { // // Partial match (e.g. system locale is "en_US" and subtype locale is "en") // applicableSubtype = subtype; // partialMatchFound = true; // } // } // } // if (applicableSubtype == NULL && canIgnoreLocaleAsLastResort) { // return firstMatchedModeSubtype; // } // // The first subtype applicable to the system locale will be defined as the most applicable // // subtype. // if (DEBUG) { // if (applicableSubtype != NULL) { // Slog.d(TAG, "Applicable InputMethodSubtype was found: " // + applicableSubtype.getMode() + "," + applicableSubtype.getLocale()); // } // } // return applicableSubtype; assert(0); return NULL; } // If there are no selected shortcuts, tries finding the most applicable ones. // private Pair<InputMethodInfo, InputMethodSubtype> // FindLastResortApplicableShortcutInputMethodAndSubtypeLocked(String mode) { // List<InputMethodInfo> imis = mSettings.getEnabledInputMethodListLocked(); // InputMethodInfo mostApplicableIMI = NULL; // InputMethodSubtype mostApplicableSubtype = NULL; // boolean foundInSystemIME = false; // // Search applicable subtype for each InputMethodInfo // for (InputMethodInfo imi: imis) { // final String imiId = imi.getId(); // if (foundInSystemIME && !imiId.equals(mCurMethodId)) { // continue; // } // InputMethodSubtype subtype = NULL; // final List<InputMethodSubtype> enabledSubtypes = // getEnabledInputMethodSubtypeListLocked(imi, true); // // 1. Search by the current subtype's locale from enabledSubtypes. // if (mCurrentSubtype != NULL) { // subtype = findLastResortApplicableSubtypeLocked( // mRes, enabledSubtypes, mode, mCurrentSubtype.getLocale(), false); // } // // 2. Search by the system locale from enabledSubtypes. // // 3. Search the first enabled subtype matched with mode from enabledSubtypes. // if (subtype == NULL) { // subtype = findLastResortApplicableSubtypeLocked( // mRes, enabledSubtypes, mode, NULL, true); // } // final ArrayList<InputMethodSubtype> overridingImplicitlyEnabledSubtypes = // getOverridingImplicitlyEnabledSubtypes(imi, mode); // final ArrayList<InputMethodSubtype> subtypesForSearch = // overridingImplicitlyEnabledSubtypes.isEmpty() // ? getSubtypes(imi) : overridingImplicitlyEnabledSubtypes; // // 4. Search by the current subtype's locale from all subtypes. // if (subtype == NULL && mCurrentSubtype != NULL) { // subtype = findLastResortApplicableSubtypeLocked( // mRes, subtypesForSearch, mode, mCurrentSubtype.getLocale(), false); // } // // 5. Search by the system locale from all subtypes. // // 6. Search the first enabled subtype matched with mode from all subtypes. // if (subtype == NULL) { // subtype = findLastResortApplicableSubtypeLocked( // mRes, subtypesForSearch, mode, NULL, true); // } // if (subtype != NULL) { // if (imiId.equals(mCurMethodId)) { // // The current input method is the most applicable IME. // mostApplicableIMI = imi; // mostApplicableSubtype = subtype; // break; // } else if (!foundInSystemIME) { // // The system input method is 2nd applicable IME. // mostApplicableIMI = imi; // mostApplicableSubtype = subtype; // if ((imi.getServiceInfo().applicationInfo.flags // & ApplicationInfo.FLAG_SYSTEM) != 0) { // foundInSystemIME = true; // } // } // } // } // if (DEBUG) { // if (mostApplicableIMI != NULL) { // Slog.w(TAG, "Most applicable shortcut input method was:" // + mostApplicableIMI.getId()); // if (mostApplicableSubtype != NULL) { // Slog.w(TAG, "Most applicable shortcut input method subtype was:" // + "," + mostApplicableSubtype.getMode() + "," // + mostApplicableSubtype.getLocale()); // } // } // } // if (mostApplicableIMI != NULL) { // return new Pair<InputMethodInfo, InputMethodSubtype> (mostApplicableIMI, // mostApplicableSubtype); // } else { // return NULL; // } // } ECode CInputMethodManagerService::GetCurrentInputMethodSubtype( /* [out] */ IInputMethodSubtype** subtype) { VALIDATE_NOT_NULL(subtype); // TODO: Make this work even for non-current users? if (!CalledFromValidUser()) { *subtype = NULL; return NOERROR; } Mutex::Autolock lock(mMethodMapLock); AutoPtr<IInputMethodSubtype> s = GetCurrentInputMethodSubtypeLocked(); *subtype = s; INTERFACE_ADDREF(*subtype); return NOERROR; } AutoPtr<IInputMethodSubtype> CInputMethodManagerService::GetCurrentInputMethodSubtypeLocked() { if (mCurMethodId.IsNull()) { return NULL; } Boolean subtypeIsSelected = mSettings->GetSelectedInputMethodSubtypeHashCode() != NOT_A_SUBTYPE_ID; AutoPtr<IInputMethodInfo> imi; HashMap<String, AutoPtr<IInputMethodInfo> >::Iterator it = mMethodMap->Find(mCurMethodId); if (it != mMethodMap->End()) { imi = it->mSecond; } Int32 count = 0; if (imi == NULL || (imi->GetSubtypeCount(&count), count) == 0) { return NULL; } Int32 hashCode; if (!subtypeIsSelected || mCurrentSubtype == NULL || !IsValidSubtypeId(imi, (mCurrentSubtype->GetHashCode(&hashCode), hashCode))) { Int32 subtypeId = GetSelectedInputMethodSubtypeId(mCurMethodId); if (subtypeId == NOT_A_SUBTYPE_ID) { // If there are no selected subtypes, the framework will try to find // the most applicable subtype from explicitly or implicitly enabled // subtypes. AutoPtr<IObjectContainer> explicitlyOrImplicitlyEnabledSubtypes; GetEnabledInputMethodSubtypeListLocked(imi, TRUE, (IObjectContainer**)&explicitlyOrImplicitlyEnabledSubtypes); // If there is only one explicitly or implicitly enabled subtype, // just returns it. Int32 size = 0; if ((explicitlyOrImplicitlyEnabledSubtypes->GetObjectCount(&size), size) == 1) { Boolean hasNext = FALSE; AutoPtr<IObjectEnumerator> enumAtor; explicitlyOrImplicitlyEnabledSubtypes->GetObjectEnumerator((IObjectEnumerator**)&enumAtor); enumAtor->MoveNext(&hasNext); if (hasNext) { mCurrentSubtype = NULL; enumAtor->Current((IInterface**)&mCurrentSubtype); } } else if (size > 1) { assert(0); // mCurrentSubtype = FindLastResortApplicableSubtypeLocked( // mRes, explicitlyOrImplicitlyEnabledSubtypes, // SUBTYPE_MODE_KEYBOARD, String(NULL), TRUE); if (mCurrentSubtype == NULL) { // mCurrentSubtype = FindLastResortApplicableSubtypeLocked( // mRes, explicitlyOrImplicitlyEnabledSubtypes, String(NULL), // String(NULL), TRUE); } } } else { AutoPtr< InputMethodSubtypeList > subtypes = GetSubtypes(imi); mCurrentSubtype = (*subtypes)[subtypeId]; } } return mCurrentSubtype; } void CInputMethodManagerService::AddShortcutInputMethodAndSubtypes( /* [in] */ IInputMethodInfo* imi, /* [in] */ IInputMethodSubtype* subtype) { // if (mShortcutInputMethodsAndSubtypes.containsKey(imi)) { // mShortcutInputMethodsAndSubtypes.get(imi).add(subtype); // } else { // ArrayList<InputMethodSubtype> subtypes = new ArrayList<InputMethodSubtype>(); // subtypes.add(subtype); // mShortcutInputMethodsAndSubtypes.put(imi, subtypes); // } } ECode CInputMethodManagerService::GetShortcutInputMethodsAndSubtypes( /* [out] */ IObjectContainer** ret) { VALIDATE_NOT_NULL(ret); *ret = NULL; Mutex::Autolock lock(mMethodMapLock); if (mShortcutInputMethodsAndSubtypes.IsEmpty()) { // If there are no selected shortcut subtypes, the framework will try to find // the most applicable subtype from all subtypes whose mode is // SUBTYPE_MODE_VOICE. This is an exceptional case, so we will hardcode the mode. // Pair<InputMethodInfo, InputMethodSubtype> info = // FindLastResortApplicableShortcutInputMethodAndSubtypeLocked( // SUBTYPE_MODE_VOICE); // if (info != NULL) { // ret.add(info.first); // ret.add(info.second); // } return NOERROR; } // HashMap<IInputMethodInfo*, IObjectContainer*>::Iterator ator = mShortcutInputMethodsAndSubtypes.Begin(); // for (; ator != mShortcutInputMethodsAndSubtypes.End(); ++ator) { // AutoPtr<IInputMethodInfo> imi = ator->mFirst; // (*ret)->Add(imi); // // AutoPtr<IObjectContainer> subtypes = ator->mSecond; // assert(subtypes != NULL); // AutoPtr<IObjectEnumerator> enumAtor; // subtypes->GetObjectEnumerator((IObjectEnumerator**)&enumAtor); // // Boolean hasNext = FALSE; // while (enumAtor->MoveNext(&hasNext) ,hasNext) { // AutoPtr<IInputMethodSubtype> subtype; // enumAtor->Current((IInterface**)&subtype); // // (*ret)->Add(subtype); // } // } return NOERROR; } ECode CInputMethodManagerService::SetCurrentInputMethodSubtype( /* [in] */ IInputMethodSubtype* subtype, /* [out] */ Boolean* result) { VALIDATE_NOT_NULL(result); // TODO: Make this work even for non-current users? if (!CalledFromValidUser()) { *result = FALSE; return NOERROR; } Mutex::Autolock lock(mMethodMapLock); if (subtype != NULL && !mCurMethodId.IsNull()) { AutoPtr<IInputMethodInfo> imi; HashMap<String, AutoPtr<IInputMethodInfo> >::Iterator it = mMethodMap->Find(mCurMethodId); if (it != mMethodMap->End()) { imi = it->mSecond; } Int32 hashCode; subtype->GetHashCode(&hashCode); Int32 subtypeId = GetSubtypeIdFromHashCode(imi, hashCode); if (subtypeId != NOT_A_SUBTYPE_ID) { SetInputMethodLocked(mCurMethodId, subtypeId); *result = TRUE; return NOERROR; } } *result = FALSE; return NOERROR; } // // ---------------------------------------------------------------------- // // Utilities for debug // private static String GetStackTrace() { // final StringBuilder sb = new StringBuilder(); // try { // throw new RuntimeException(); // } catch (RuntimeException e) { // final StackTraceElement[] frames = e.getStackTrace(); // // Start at 1 because the first frame is here and we don't care about it // for (int j = 1; j < frames.length; ++j) { // sb.append(frames[j].toString() + "\n"); // } // } // return sb.toString(); // } // @Override // protected void dump(FileDescriptor fd, PrintWriter pw, String[] args) { // if (mContext.checkCallingOrSelfPermission(Elastos::Droid::Manifest::Permission::DUMP) // != PackageManager.PERMISSION_GRANTED) { // pw.println("Permission Denial: can't dump InputMethodManager from from pid=" // + Binder.getCallingPid() // + ", uid=" + Binder.getCallingUid()); // return; // } // IInputMethod method; // ClientState client; // final Printer p = new PrintWriterPrinter(pw); // synchronized (mMethodMap) { // p.println("Current Input Method Manager state:"); // int N = mMethodList->size(); // p.println(" Input Methods:"); // for (int i=0; i<N; i++) { // InputMethodInfo info = mMethodList->get(i); // p.println(" InputMethod #" + i + ":"); // info.dump(p, " "); // } // p.println(" Clients:"); // for (ClientState ci : mClients.values()) { // p.println(" Client " + ci + ":"); // p.println(" client=" + ci.client); // p.println(" inputContext=" + ci.inputContext); // p.println(" sessionRequested=" + ci.sessionRequested); // p.println(" curSession=" + ci.curSession); // } // p.println(" mCurMethodId=" + mCurMethodId); // client = mCurClient; // p.println(" mCurClient=" + client + " mCurSeq=" + mCurSeq); // p.println(" mCurFocusedWindow=" + mCurFocusedWindow); // p.println(" mCurId=" + mCurId + " mHaveConnect=" + mHaveConnection // + " mBoundToMethod=" + mBoundToMethod); // p.println(" mCurToken=" + mCurToken); // p.println(" mCurIntent=" + mCurIntent); // method = mCurMethod; // p.println(" mCurMethod=" + mCurMethod); // p.println(" mEnabledSession=" + mEnabledSession); // p.println(" mShowRequested=" + mShowRequested // + " mShowExplicitlyRequested=" + mShowExplicitlyRequested // + " mShowForced=" + mShowForced // + " mInputShown=" + mInputShown); // p.println(" mSystemReady=" + mSystemReady + " mScreenOn=" + mScreenOn); // } // p.println(" "); // if (client != null) { // pw.flush(); // try { // client.client.asBinder().dump(fd, args); // } catch (RemoteException e) { // p.println("Input method client dead: " + e); // } // } else { // p.println("No input method client."); // } // p.println(" "); // if (method != null) { // pw.flush(); // try { // method.asBinder().dump(fd, args); // } catch (RemoteException e) { // p.println("Input method service dead: " + e); // } // } else { // p.println("No input method service."); // } // } ECode CInputMethodManagerService::HandleMessage( /* [in] */ IMessage* msg, /* [out] */ Boolean* result) { VALIDATE_NOT_NULL(result); *result = TRUE; Int32 what; msg->GetWhat(&what); AutoPtr<SomeArgs> args; switch (what) { case MSG_SHOW_IM_PICKER: ShowInputMethodMenu(); break; case MSG_SHOW_IM_SUBTYPE_PICKER: ShowInputMethodSubtypeMenu(); break; case MSG_SHOW_IM_SUBTYPE_ENABLER: { AutoPtr<IInterface> obj; msg->GetObj((IInterface**)&obj); args = (SomeArgs*)obj.Get(); String str; AutoPtr<ICharSequence> seq = ICharSequence::Probe(args->mArg1); seq->ToString(&str); ShowInputMethodAndSubtypeEnabler(str); args->Recycle(); break; } case MSG_SHOW_IM_CONFIG: ShowConfigureInputMethods(); break; // --------------------------------------------------------- case MSG_UNBIND_INPUT: { AutoPtr<IInterface> obj; msg->GetObj((IInterface**)&obj); IIInputMethod* im = IIInputMethod::Probe(obj); im->UnbindInput(); break; } case MSG_BIND_INPUT: { AutoPtr<IInterface> obj; msg->GetObj((IInterface**)&obj); args = (SomeArgs*)obj.Get(); IIInputMethod* im = IIInputMethod::Probe(args->mArg1); IInputBinding* ib = IInputBinding::Probe(args->mArg2); im->BindInput(ib); args->Recycle(); break; } case MSG_SHOW_SOFT_INPUT: { AutoPtr<IInterface> obj; msg->GetObj((IInterface**)&obj); args = (SomeArgs*)obj.Get(); Int32 arg1; msg->GetArg1(&arg1); IIInputMethod* im = IIInputMethod::Probe(args->mArg1); IResultReceiver* rr = IResultReceiver::Probe(args->mArg2); im->ShowSoftInput(arg1, rr); args->Recycle(); break; } case MSG_HIDE_SOFT_INPUT: { AutoPtr<IInterface> obj; msg->GetObj((IInterface**)&obj); args = (SomeArgs*)obj.Get(); IIInputMethod* im = IIInputMethod::Probe(args->mArg1); IResultReceiver* rr = IResultReceiver::Probe(args->mArg2); im->HideSoftInput(0, rr); args->Recycle(); break; } case MSG_ATTACH_TOKEN: { AutoPtr<IInterface> obj; msg->GetObj((IInterface**)&obj); args = (SomeArgs*)obj.Get(); IIInputMethod* im = IIInputMethod::Probe(args->mArg1); IBinder* binder = IBinder::Probe(args->mArg2); im->AttachToken(binder); args->Recycle(); break; } case MSG_CREATE_SESSION: { AutoPtr<IInterface> obj; msg->GetObj((IInterface**)&obj); args = (SomeArgs*)obj.Get(); IIInputMethod* im = IIInputMethod::Probe(args->mArg1); IInputMethodCallback* callback = IInputMethodCallback::Probe(args->mArg2); im->CreateSession(callback); args->Recycle(); break; } // --------------------------------------------------------- case MSG_START_INPUT: { AutoPtr<IInterface> obj; msg->GetObj((IInterface**)&obj); args = (SomeArgs*)obj.Get(); SessionState* session = (SessionState*)args->mArg1.Get(); SetEnabledSessionInMainThread(session); IInputContext* ic = IInputContext::Probe(args->mArg2); IEditorInfo* ei = IEditorInfo::Probe(args->mArg3); session->mMethod->StartInput(ic, ei); args->Recycle(); break; } case MSG_RESTART_INPUT: { AutoPtr<IInterface> obj; msg->GetObj((IInterface**)&obj); args = (SomeArgs*)obj.Get(); SessionState* session = (SessionState*)args->mArg1.Get(); SetEnabledSessionInMainThread(session); IInputContext* ic = IInputContext::Probe(args->mArg2); IEditorInfo* ei = IEditorInfo::Probe(args->mArg3); session->mMethod->RestartInput(ic, ei); args->Recycle(); break; } // --------------------------------------------------------- case MSG_UNBIND_METHOD: { AutoPtr<IInterface> obj; msg->GetObj((IInterface**)&obj); IInputMethodClient* imc = IInputMethodClient::Probe(obj); Int32 arg1; msg->GetArg1(&arg1); imc->OnUnbindMethod(arg1); break; } case MSG_BIND_METHOD: { AutoPtr<IInterface> obj; msg->GetObj((IInterface**)&obj); args = (SomeArgs*)obj.Get(); IInputMethodClient* imc = IInputMethodClient::Probe(args->mArg1); IInputBindResult* ibr = IInputBindResult::Probe(args->mArg2); imc->OnBindMethod(ibr); args->Recycle(); break; } case MSG_SET_ACTIVE: { AutoPtr<IInterface> obj; msg->GetObj((IInterface**)&obj); ClientState* cs = (ClientState*)obj.Get(); Int32 arg1; msg->GetArg1(&arg1); cs->mClient->SetActive(arg1 != 0); break; } // -------------------------------------------------------------- case MSG_HARD_KEYBOARD_SWITCH_CHANGED: { Int32 arg1, arg2; msg->GetArg1(&arg1); msg->GetArg2(&arg2); mHardKeyboardListener->HandleHardKeyboardStatusChange(arg1, arg2); break; } default: *result = FALSE; Slogger::W(TAG, "CInputMethodManagerService::Unknown message: %d", what); break; } return NOERROR; } }// namespace Server }// namespace Droid }// namespace Elastos
[ "chen.yunzhi@kortide.com" ]
chen.yunzhi@kortide.com
7c64a63f94eeec28373f84f6165bbc545e89e887
feea02f16d15de899b5b54f5023f9b0290b63297
/labelsCUDA/WordFinder/WordFinder.cpp
c1ccbb3c11d7cc7c4fcadaf070f4d6a1218e28a1
[]
no_license
suilevap/labelcuda
ebf94b52416d17c519f96461d6a64425ff57743e
ec5c7cce6bbb384932c9f7d2aa8e44efde8f48af
refs/heads/master
2021-01-10T03:08:13.758495
2010-06-20T07:14:00
2010-06-20T07:14:00
49,495,287
0
0
null
null
null
null
UTF-8
C++
false
false
1,275
cpp
// WordFinder.cpp : Defines the entry point for the console application. // #include "WordFinder.h" WordFinder::WordFinder(void) { State* state = new State(); _states.push_back(state); } WordFinder::~WordFinder(void) { } void WordFinder::AddWord( std::string word, int id ) { int stateId; State* state; int currentStateId = 0; State* currentState; for (int i = 0; word[i] != 0; i++) { currentState = _states[currentStateId]; stateId = currentState->Transitions[word[i]].NextState; if (stateId == 0) { state = new State(); _states.push_back(state); stateId = _states.size() - 1; currentState->Transitions[word[i]].NextState = stateId; } currentStateId = stateId; } currentState->AddManyTransitions(TerminationSymbols, 0, id); } TransitionsTable* WordFinder::Generate() { size_t size = _states.size(); TransitionsTable* result = new TransitionsTable(size); for (size_t i = 0; i < size; ++i) { Transition * transaction = GetState(result->Table,i); memcpy( transaction, _states[i]->Transitions, STATE_SIZE ); } return result; } void WordFinder::AddWords( std::vector<std::string> words ) { for (int i = 0; i < words.size(); i++) { AddWord(words[i], i+1); } }
[ "suilevap@gmail.com" ]
suilevap@gmail.com
7f742ec0e0b13b96791b0096a8e83abaa8998216
569e079f8cc8bc4a1b6918137c951c0a049ea593
/src/game/CGameManager.h
9399f9f9a8bbc4dbc5c1d797d8036e9b5e3dfc57
[]
no_license
zdementor/my-base
c741daee7f032408fa47f02f715f9066f1f9871f
2635462c0a57bd423551251f04da10bada277821
refs/heads/master
2021-01-10T01:43:03.318268
2020-11-19T18:18:32
2020-11-19T18:18:32
51,708,595
0
0
null
null
null
null
UTF-8
C++
false
false
14,389
h
//|------------------------------------------------------------------------- //| File: CGameManager.h //| //| Descr: This file is a part of the 'MyEngine' //| Author: Zhuk 'zdementor' Dmitry (aka ZDimitor) //| Email: zdimitor@pochta.ru, sibergames@nm.ru //| //| Copyright (c) 2004-2009 by Zhuk Dmitry, Krasnoyarsk - Moscow //| All Rights Reserved. //|------------------------------------------------------------------------- #ifndef CGameManagerHPP #define CGameManagerHPP //---------------------------------------------------------------------------- #include <game/IGameManager.h> #include <dev/IDevice.h> #include <scn/ITerrainSceneNode.h> #include <scn/ISceneNode.h> #include <scn/ILightSceneNode.h> #include <scn/IBillboardSceneNode.h> #include <scn/IParticleSystemSceneNode.h> #include <scn/ISkyBoxSceneNode.h> #include <scn/ILensFlareSceneNode.h> #include <scn/ICameraSceneNode.h> #include <scn/ITestSceneNode.h> #include <game/IGameNodeAI.h> #include <game/SGameSceneProps.h> #include "CGameSceneLoader.h" #include "CGameSceneSaver.h" //---------------------------------------------------------------------------- namespace my { namespace game { //---------------------------------------------------------------------------- enum E_GAME_PROFILE_TYPES { EGPT_WHOLE_GAME = 0, EGPT_PRE_GAME, EGPT_DO_GAME, EGPT_DYNAMIC, EGPT_POST_GAME, EGPT_SCRIPT, EGPT_SOUND, E_GAME_PROFILE_TYPES_COUNT, E_GAME_PROFILE_TYPES_FORCE_32_BIT = 0xffffffff }; //---------------------------------------------------------------------------- static const c8* GameProfileTypeNames[E_GAME_PROFILE_TYPES_COUNT] = { "Whole Game", "Pre Game", "Do Game", "Dynamic", "Post Game", "Scripting", "Sound" }; //---------------------------------------------------------------------------- //! Game Manager. Used as manager of all game scene nodes and games stuff class CGameManager : public IGameManager { friend class CGameNode; friend class CGameUnitsFormation; friend class CGameAIModule; friend class CGameTasksManager; friend class CGameEventsDispatcher; public: CGameManager(); virtual ~CGameManager(); virtual IGameNode* getGameNode(u32 idx); virtual u32 getGameNodesCount(); virtual u32 getActiveGameNodesCount(); virtual IGameNode* getGameNode( E_GAME_NODE_TYPE gntype, u32 idx=0 ); virtual u32 getGameNodesCount(E_GAME_NODE_TYPE gntype); virtual E_GAME_NODE_TYPE getGameNodeType (IGameNode* game_node); virtual u32 getGameNodeIndex(IGameNode* game_node); virtual u32 getGameNodeTypeAndIndex( IGameNode* game_node, E_GAME_NODE_TYPE *gntype=NULL, u32 *idx = NULL); virtual void applyGameNodeCommonParams( scn::ISceneNode *node, SGameNodeCommonParams &node_params); virtual const core::list<IGameNode*>& getGameNodesByType(E_GAME_NODE_TYPE gntype); virtual const core::list<IGameNode*>& getGameNodes(); virtual const core::list<IGameNodeAI*>& getGameNodesAI(); virtual IGameUnitsFormation* addGameUnitsFormation(core::dimension2di dim, s32 formation_id); virtual IGameUnitsFormation* getGameUnitsFormationFromID(s32 formation_id); virtual IGameNode* addGameNode(SGameNodeCommonParams &node_params, scn::ISceneNode* scene_node); virtual IGameNode* addGameNodeForSceneNode(scn::ISceneNode* n, SGameNodeParams &params); virtual bool removeGameNodeForSceneNode(scn::ISceneNode* n); virtual IGameNode* createGameNode(E_GAME_NODE_TYPE game_node_type, scn::E_SCENE_NODE_TYPE scene_node_type, bool log_info = false); virtual IGameNode* createGameNode(SGameNodeCommonParams &node_params, bool log_info = false); virtual IGameNode* cloneGameNode(IGameNode *game_node, bool log_info = false); virtual IGameNode* reloadGameNode(IGameNode* gn); virtual IGameNode* loadGameNode(const c8* fname); virtual IGameNode* loadGameNode(game::E_GAME_NODE_TYPE gntype, const c8* fname); virtual IGameNode* loadGameNode(SGameNodeCommonParams &node_params, const c8* fname); virtual IGameNode* loadGameNode(SGameNodeCommonParams &node_params, io::IReadFile* file); virtual void clearGameScene(bool clear_resourses=true); virtual void loadGameSceneLater(const c8* filename); virtual bool loadGameScene(const c8* filename); virtual bool saveGameScene(const c8* filename); virtual const c8* getGameSceneFileName(); virtual IGameNodeMainPlayer* setCurrentMainPlayer(s32 idx); virtual s32 getMainPlayersCount(); virtual IGameNodeMainPlayer* getMainPlayerGameNode(); virtual scn::ISceneNode* getMainPlayerSceneNode(); virtual dyn::IDynamicObject* getMainPlayerDynamicObject(); virtual scn::ICameraSceneNode* getMainPlayerCamera(); virtual IGameNode* getGameNodeFromScreenCoordinates(const core::position2di &scr_pos); virtual void stopGame(); virtual void startGame(); virtual void doGame(); virtual void preRenderFrame(); virtual void postRenderFrame(); //! show/hide wait window virtual void showMessageBox( bool show, const c8 *caption = "", const c8 *message = ""); //! returns current dynamic calculation per second value virtual s32 getDynamicPS(); //! returns current game calculation per second value virtual s32 getGamePS(); //! returns current script parsing per second value virtual s32 getScriptPS(); //! return true if game is started, otherwise false virtual bool isGameStarted(); //! setting file name of game script virtual void setGameScriptFileName(core::stringc &scr_fname); //! Return file name of game script virtual core::stringc getGameScriptFileName(); //! adding game sound track virtual void addSoundTrack(core::stringc &snd_fname); //! removing game sound tracks virtual void removeAllSoundTracks(); //! return game sound track object by its index virtual mm::ISound* getSoundTrack(s32 idx); //! return overal count of game sound tracks virtual s32 getSoundTracksCount(); //! starts playing sound track virtual bool playSoundTrack(s32 idx); //! paused playing sound track virtual bool pauseSoundTrack(s32 idx); //! stopps all playing sound tracks virtual void stopAllSoundTracks(); //! setting sound tracks volume (0.0f - 1.0f) virtual void setSoundTracksVolume(f32 volume); //! getting sound tracks volume (0.0f - 1.0f) virtual f32 getSoundTracksVolume(); //! setting sound effects volume (0.0f - 1.0f) virtual void setSoundEffectsVolume(f32 volume); //! getting sound effects volume (0.0f - 1.0f) virtual f32 getSoundEffectsVolume(); //! creating game inventory for node virtual IGameInventory* createGameInventory(game::IGameNode *owner); //! getting game node params virtual SGameNodeParams getGameNodeParams(IGameNode *gnode); //! setting game node params virtual void applyGameNodeParams(IGameNode *gnode, SGameNodeParams &params); //! registering game node class virtual bool registerGameNodeClass( c8 *class_name, E_GAME_NODE_TYPE game_node_type, IGameNode* (*alloc_func )(scn::ISceneNode* n, SGameNodeParams &params), IGameNode* (*create_func)(SGameNodeCommonParams &node_params, bool log_info), IGameNode* (*clone_func )(IGameNode *game_node, bool log_info), IGameNode* (*load_func )(SGameNodeCommonParams &node_params, io::IReadFile* file) ); virtual IPathFindTask* createPathFindTask(); virtual const SGameSceneProps& getGameSceneProps(); virtual void setGameSceneProps(const SGameSceneProps& props); virtual core::array<SItemDropTableLine>& getItemDropTable(E_GAME_NODE_TYPE type); ////////////////////////////////// //! game callbacks ////////////////////////////////// virtual void setCallbackOnShowMessage(void (*callback)(bool, const c8*, const c8*)) { m_CallbackOnShowMessage = callback; } virtual void setCallbackBeforeLoadScene(void (*callback)()) { m_CallbackBeforeLoadScene = callback; } virtual void setCallbackAfterLoadScene(void (*callback)()) { m_CallbackAfterLoadScene = callback; } virtual void setCallbackBeforeSaveScene(void (*callback)()) { m_CallbackBeforeSaveScene = callback; } virtual void setCallbackAfterSaveScene(void (*callback)()) { m_CallbackAfterSaveScene = callback; } virtual void setCallbackOnDeleteNode(void (*callback)(IGameNode*)) { m_CallbackOnDeleteNode = callback; } virtual void setCallbackOnCreateNode(void (*callback)(IGameNode* gnode)) { m_CallbackOnCreateNode = callback; } virtual void setCallbackOnDieNode(void (*callback)(IGameNode* gnode)) { m_CallbackOnDieNode = callback; } virtual void setCallbackOnCollectItem(void (*callback)(IGameNode*, IGameNodeItem*)) { m_CallbackOnCollectItem = callback; } virtual void setCallbackOnThrowItem(void (*callback)(IGameNode*, IGameNodeItem*)) { m_CallbackOnThrowItem = callback; } //---------------------------------------------------------------------------- void CGameManager::setCallbackOnUseItem( void (*callback)(IGameNode*, IGameNodeItem*) ) { m_CallbackOnUseItem = callback; } ////////////////////////////////// //! game functions ////////////////////////////////// //! return true if trigger activated virtual bool IsTriggerActivated(s32 id); //! return true if door activated virtual bool IsDoorActivated(s32 id); //! one game node hited by another virtual int GameNodeHit(IGameNode *victim, IGameNode *agressor, s32 hit_power); //! game node death virtual int GameNodeDie(IGameNode *victim); //! game node simple move virtual void GameNodeMove(IGameNode *moving_node, core::vector3df dest_pos); //! game node movewith complex trajectory virtual void GameNodeMoveTrajectory(IGameNode *moving_node, core::array<core::vector3df> &way_points); private: ////////////////////////////////// //! game events ////////////////////////////////// virtual void onDeleteNode(IGameNode* gnode); virtual void onCreateNode(IGameNode* gnode); virtual void onDieNode(IGameNode* gnode); virtual void onCollectItem(IGameNode* gnode, IGameNodeItem* item); virtual void onThrowItem(IGameNode* gnode, IGameNodeItem* item); virtual void onUseItem(IGameNode* gnode, IGameNodeItem* item); ////////////////////////////////// IGameNode* _forcedLoadGameNode(SGameNodeCommonParams &node_params, io::IReadFile* file); void _createDropItemsForGameNode(IGameNode* game_node) { core::array<SItemDropTableLine>& drop_table = IGameManager::getSingleton().getItemDropTable(game_node->getGameNodeType()); s32 idx = drop_table.binary_search(SItemDropTableLine(game_node->getSceneNode()->getFileName())); if (idx!=-1) { SItemDropTableLine drop_table_line = drop_table[idx]; f32 drop_prob = core::math::RangeRandom(0,1000)/1000.0f; if (drop_table_line.DropProb>=drop_prob) { f32 prob = core::math::RangeRandom(0,1000)/1000.0f; s32 drop_item_count = drop_table_line.Items.size(); for (s32 i=0; i<drop_item_count; i++) { SItemDropTableCell& drop_item = drop_table_line.Items[i]; if (drop_item.Prob>=prob) { IGameNodeItem* item = (IGameNodeItem*)IGameManager::getSingleton().loadGameNode( EGNT_ITEM, drop_item.ItemFileName.c_str() ); if (item) { game_node->getInventory().addItem(item); item->getSceneNode()->setParent( game_node->getSceneNode() ); item->getSceneNode()->setPosition(drop_item.LocalPosition); item->setAutoCreatedFlag(true); item->getSceneNode()->setVisible(false); } break; } } } } } void _doGame (); CGameSceneLoader GameSceneLoader; CGameSceneSaver GameSceneSaver; IGameNodeMainPlayer* CurrentMainPlayer; bool m_GameStopped; core::math::event_counter DynamicPSCounter, GamePSCounter, ScriptPSCounter; core::list<mm::ISound*> GameSoundTracks; core::stringc GameScriptFileName; core::stringc GameSceneFileName; f64 thisFrameTime, previousFrameTime; f64 thisDeltaTime, previousDeltaTime; f32 RemainDeltaSeconds; //! array of lists of all gamenodes grouped by type static core::list<IGameNode*>GameNodesByType[E_GAME_NODE_TYPE_COUNT]; //! a list of all gamenodes contained in the game static core::list<IGameNode*> GameNodes; //! a list of all ai gamenodes contained in the game static core::list<IGameNodeAI*> GameNodesAI; s32 m_ActiveGameNodesCount; f32 SoundEffectsVolume, SoundTracksVolume; struct SGameClassData { SGameClassData() : ClassName("Noname Class"), Alloc(0), Create(0), Clone(0), Load(0) {} core::stringc ClassName; IGameNode* (*Alloc )(scn::ISceneNode* n, SGameNodeParams &params); IGameNode* (*Create)(SGameNodeCommonParams &node_params, bool log_info); IGameNode* (*Clone )(IGameNode *game_node, bool log_info); IGameNode* (*Load )(SGameNodeCommonParams &node_params, io::IReadFile* file); }; core::array<SGameClassData> GameClassesData[E_GAME_NODE_TYPE_COUNT]; SGameSceneProps GameSceneProps; bool m_NewGameSceneLoaded, m_DoGameCompleted; void (*m_CallbackOnShowMessage)(bool, const c8*, const c8*); void (*m_CallbackBeforeLoadScene)(); void (*m_CallbackAfterLoadScene)(); void (*m_CallbackBeforeSaveScene)(); void (*m_CallbackAfterSaveScene)(); void (*m_CallbackOnCreateNode)(IGameNode* node); void (*m_CallbackOnDeleteNode)(IGameNode* node); void (*m_CallbackOnDieNode)(IGameNode* node); void (*m_CallbackOnCollectItem)(IGameNode*, IGameNodeItem*); void (*m_CallbackOnThrowItem)(IGameNode*, IGameNodeItem*); void (*m_CallbackOnUseItem)(IGameNode*, IGameNodeItem*); core::array< SItemDropTableLine > m_ItemDropTables[E_GAME_NODE_TYPE_COUNT]; u32 m_DoGameCount; u32 m_ProfileIds[E_GAME_PROFILE_TYPES_COUNT]; dev::IProfiler &m_Profiler; f32 m_ShiftTimeSec, m_StopTimeSec; }; //---------------------------------------------------------------------------- } // end namespace game } // end namespace my //---------------------------------------------------------------------------- #endif // #ifndef CGameManagerHPP
[ "zdimitor@gmail.com" ]
zdimitor@gmail.com
f8a698199a3e1d29330d131e66139efc823c9f97
a7764174fb0351ea666faa9f3b5dfe304390a011
/inc/Handle_TDocStd_Modified.hxx
1d628da8d17efd104aa68b4dc2cc651a59f639c2
[]
no_license
uel-dataexchange/Opencascade_uel
f7123943e9d8124f4fa67579e3cd3f85cfe52d91
06ec93d238d3e3ea2881ff44ba8c21cf870435cd
refs/heads/master
2022-11-16T07:40:30.837854
2020-07-08T01:56:37
2020-07-08T01:56:37
276,290,778
0
0
null
null
null
null
UTF-8
C++
false
false
789
hxx
// This file is generated by WOK (CPPExt). // Please do not edit this file; modify original file instead. // The copyright and license terms as defined for the original file apply to // this header file considered to be the "object code" form of the original source. #ifndef _Handle_TDocStd_Modified_HeaderFile #define _Handle_TDocStd_Modified_HeaderFile #ifndef _Standard_HeaderFile #include <Standard.hxx> #endif #ifndef _Standard_DefineHandle_HeaderFile #include <Standard_DefineHandle.hxx> #endif #ifndef _Handle_TDF_Attribute_HeaderFile #include <Handle_TDF_Attribute.hxx> #endif class Standard_Transient; class Handle(Standard_Type); class Handle(TDF_Attribute); class TDocStd_Modified; DEFINE_STANDARD_HANDLE(TDocStd_Modified,TDF_Attribute) #endif
[ "shoka.sho2@excel.co.jp" ]
shoka.sho2@excel.co.jp
a12c7c700777d2f607737d660ba1897cc38c94d1
8a1c8ad0346d5d8e64704b393c594de86371b61e
/Codeforces/1433C.cpp
9511b6c51d6fac0b773ce574ba328480da9d2725
[ "MIT" ]
permissive
mayankdutta/competitive-programming
416c2a8ea772689ddf54f343bcfc6e56431d61a8
fdbbfe723efe2139c5f82a9dd68c52b8f20a9c85
refs/heads/master
2023-01-20T12:34:26.066490
2020-11-26T17:05:22
2020-11-26T17:05:22
316,291,346
0
0
MIT
2020-11-26T17:01:35
2020-11-26T17:01:26
null
UTF-8
C++
false
false
1,662
cpp
#pragma GCC optimize("O3") #pragma GCC optimize("Ofast") #pragma GCC optimize("unroll-loops") #pragma GCC optimize("no-stack-protector") #pragma GCC optimize("fast-math") #pragma GCC optimize("trapv") #pragma GCC target("sse4") #include <bits/stdc++.h> using namespace std; #define deb(x) cout << #x << " is " << x << "\n" #define int long long #define mod 1000000007 #define PI acos(-1) // C(n, r) = n! / (r! * (n - r)!) // C(n, r) = C(n, n - r) // C(n, r) = C(n - 1, r - 1) + C(n - 1, r) int nCr(int n, int r) { long double res = 1; r = min(r, n - r); for (int i = 1; i <= r; i++) { res = res * (n - r + i) / i; } return (int)(res + 0.01); } // (x ^ y) % mod int modpow(int x, int y, int m) { x %= m; int res = 1LL; while (y > 0) { if (y & 1) { res = (res * x) % m; } x = (x * x) % m; y >>= 1; } return res; } void solve() { int n; cin >> n; vector<int> arr(n); for (auto &ele : arr) { cin >> ele; } int mx = *max_element(arr.begin(), arr.end()); int ans = -1; for (int i = 0; i < n; i++) { if (arr[i] == mx) { if ((i - 1) >= 0 && arr[i - 1] != mx) { ans = i + 1; } if ((i + 1) < n && arr[i + 1] != mx) { ans = i + 1; } } } cout << ans << "\n"; } int32_t main() { ios_base::sync_with_stdio(false); cin.tie(nullptr); #ifndef ONLINE_JUDGE freopen("input.txt", "r", stdin); freopen("output.txt", "w", stdout); #endif int tc = 1; cin >> tc; while (tc--) { solve(); } return 0; }
[ "thedevelopersanjeev@gmail.com" ]
thedevelopersanjeev@gmail.com
10253d84ab94797c50e0a25f873ceb44d8df40d4
be48c453f874f50439f2406c2761f36cdcafd4cc
/genivi/layer_management/LayerManagerPlugins/Communicators/GenericCommunicator/test/mock_Renderer.h
ef33d734412d1d63d0a02ab8720320fba7e5758c
[ "Apache-2.0", "BSD-3-Clause", "Zlib", "MIT" ]
permissive
parmarjh/iCar
498ee2fb52d285c4d75f4f79b0c30a7df8470513
c4268fa326a06ec185296f708cdb9c834f8a3a21
refs/heads/master
2023-02-25T10:44:51.375171
2017-08-16T07:23:50
2017-08-16T07:23:50
null
0
0
null
null
null
null
UTF-8
C++
false
false
1,220
h
/*************************************************************************** * * Copyright 2010,2011 BMW Car IT GmbH * * * 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 MockRenderer_H_ #define MockRenderer_H_ #include "AbstractRenderer.h" #include <list> #include <gmock/gmock.h> // Brings in Google Mock. class MockRenderer : public AbstractRenderer { public: MockRenderer() : AbstractRenderer(NULL){}; MOCK_METHOD3(start, bool(int, int, const char* )); MOCK_METHOD0(stop, void()); MOCK_METHOD1(setdebug, void(bool onoff)); MOCK_METHOD1(getLayerTypeCapabilities, uint(LayerType)); }; #endif /* MockRenderer_H_ */
[ "tdamdouni@Peters-MBP.fritz.box" ]
tdamdouni@Peters-MBP.fritz.box
f14e6c6366cad2b6957471000931e6ec6622a50a
caa1f13c1ebb4c2b4e494264d870453a6cf17e94
/src/ui/base/ime/input_method_auralinux.cc
b0375b8d2b167f27bf77b5606050a8295bfb40fd
[ "BSD-3-Clause", "Apache-2.0" ]
permissive
chojpsh1/chromium53
401736b578cb76c6abba2ac65547c0f4a73726b6
d0434e060bd6a6e617e72c921094150b436bef83
refs/heads/master
2020-03-27T02:43:19.240872
2018-08-23T08:35:17
2018-09-14T06:38:27
145,813,483
0
0
null
2018-08-23T06:54:11
2018-08-23T06:54:10
null
UTF-8
C++
false
false
21,170
cc
// 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. #include "ui/base/ime/input_method_auralinux.h" #include "base/auto_reset.h" #include "base/environment.h" #include "base/strings/utf_string_conversions.h" #include "ui/base/ime/ime_bridge.h" #include "ui/base/ime/ime_engine_handler_interface.h" #include "ui/base/ime/linux/linux_input_method_context_factory.h" #include "ui/base/ime/text_input_client.h" #include "ui/events/event.h" namespace { ui::IMEEngineHandlerInterface* GetEngine() { if (ui::IMEBridge::Get()) return ui::IMEBridge::Get()->GetCurrentEngineHandler(); return nullptr; } } // namespace namespace ui { InputMethodAuraLinux::InputMethodAuraLinux( gfx::AcceleratedWidget widget, internal::InputMethodDelegate* delegate) : text_input_type_(TEXT_INPUT_TYPE_NONE), is_sync_mode_(false), composition_changed_(false), suppress_next_result_(false), is_ime_enabled_(true), is_ime_supported_(false), weak_ptr_factory_(this) { SetDelegate(delegate); context_ = CreateInputMethodContext(widget, false); context_simple_ = CreateInputMethodContext(widget, true); } std::unique_ptr<LinuxInputMethodContext> InputMethodAuraLinux::CreateInputMethodContext( gfx::AcceleratedWidget widget, bool is_simple) { #if defined(USE_OZONE) return LinuxInputMethodContextFactory::instance()->CreateInputMethodContext( widget, this, is_simple); #else return LinuxInputMethodContextFactory::instance()->CreateInputMethodContext( this, is_simple); #endif } InputMethodAuraLinux::~InputMethodAuraLinux() { } LinuxInputMethodContext* InputMethodAuraLinux::GetContext( bool is_simple) const { return is_simple ? context_simple_.get() : context_.get(); } LinuxInputMethodContext* InputMethodAuraLinux::GetContextForTesting( bool is_simple) { return is_simple ? context_simple_.get() : context_.get(); } // Overriden from InputMethod. void InputMethodAuraLinux::OnFocus() { InputMethodBase::OnFocus(); TextInputClient* client = GetTextInputClient(); if (client && client->IsImeRestorable() && text_input_type_ != TEXT_INPUT_TYPE_NONE) ShowImeIfNeeded(); } void InputMethodAuraLinux::DetachTextInputClient(TextInputClient* client) { if (IsVisible()) OnHideIme(IME_RESTORE); InputMethodBase::DetachTextInputClient(client); } bool InputMethodAuraLinux::OnUntranslatedIMEMessage( const base::NativeEvent& event, NativeEventResult* result) { return false; } void InputMethodAuraLinux::DispatchKeyEvent(ui::KeyEvent* event) { DCHECK(event->type() == ET_KEY_PRESSED || event->type() == ET_KEY_RELEASED); // If no text input client, do nothing. if (!GetTextInputClient()) { ignore_result(DispatchKeyEventPostIME(event)); return; } if (!event->HasNativeEvent() && sending_key_event_) { // Faked key events that are sent from input.ime.sendKeyEvents. ui::EventDispatchDetails details = DispatchKeyEventPostIME(event); if (details.dispatcher_destroyed || details.target_destroyed || event->stopped_propagation()) { return; } if ((event->is_char() || event->GetDomKey().IsCharacter()) && event->type() == ui::ET_KEY_PRESSED) { GetTextInputClient()->InsertChar(*event); } return; } suppress_next_result_ = false; composition_changed_ = false; result_text_.clear(); bool filtered = false; { base::AutoReset<bool> flipper(&is_sync_mode_, true); if (text_input_type_ != TEXT_INPUT_TYPE_NONE && text_input_type_ != TEXT_INPUT_TYPE_PASSWORD) { filtered = context_->DispatchKeyEvent(*event); } else { filtered = context_simple_->DispatchKeyEvent(*event); } } // If there's an active IME extension is listening to the key event, and the // current text input client is not password input client, the key event // should be dispatched to the extension engine in the two conditions: // 1) |filtered| == false: the ET_KEY_PRESSED event of non-character key, // or the ET_KEY_RELEASED event of all key. // 2) |filtered| == true && NeedInsertChar(): the ET_KEY_PRESSED event of // character key. if (text_input_type_ != TEXT_INPUT_TYPE_PASSWORD && GetEngine() && GetEngine()->IsInterestedInKeyEvent() && (!filtered || NeedInsertChar())) { ui::IMEEngineHandlerInterface::KeyEventDoneCallback callback = base::Bind( &InputMethodAuraLinux::ProcessKeyEventByEngineDone, weak_ptr_factory_.GetWeakPtr(), base::Owned(new ui::KeyEvent(*event)), filtered, composition_changed_, base::Owned(new ui::CompositionText(composition_)), base::Owned(new base::string16(result_text_))); GetEngine()->ProcessKeyEvent(*event, callback); } else { ProcessKeyEventDone(event, filtered, false); } } void InputMethodAuraLinux::ProcessKeyEventByEngineDone( ui::KeyEvent* event, bool filtered, bool composition_changed, ui::CompositionText* composition, base::string16* result_text, bool is_handled) { composition_changed_ = composition_changed; composition_.CopyFrom(*composition); result_text_ = *result_text; ProcessKeyEventDone(event, filtered, is_handled); } void InputMethodAuraLinux::ProcessKeyEventDone(ui::KeyEvent* event, bool filtered, bool is_handled) { DCHECK(event); if (is_handled) return; // If the IME extension has not handled the key event, passes the keyevent // back to the previous processing flow. Preconditions for this situation: // 1) |filtered| == false // 2) |filtered| == true && NeedInsertChar() ui::EventDispatchDetails details; if (event->type() == ui::ET_KEY_PRESSED && filtered) { if (NeedInsertChar()) details = DispatchKeyEventPostIME(event); else if (HasInputMethodResult()) details = SendFakeProcessKeyEvent(event); if (details.dispatcher_destroyed) return; // If the KEYDOWN is stopped propagation (e.g. triggered an accelerator), // don't InsertChar/InsertText to the input field. if (event->stopped_propagation() || details.target_destroyed) { ResetContext(); return; } // Don't send VKEY_PROCESSKEY event if there is no result text or // composition. This is to workaround the weird behavior of IBus with US // keyboard, which mutes the keydown and later fake a new keydown with IME // result in sync mode. In that case, user would expect only // keydown/keypress/keyup event without an initial 229 keydown event. } bool should_stop_propagation = false; // Note: |client| could be NULL because DispatchKeyEventPostIME could have // changed the text input client. TextInputClient* client = GetTextInputClient(); // Processes the result text before composition for sync mode. if (client && !result_text_.empty()) { if (filtered && NeedInsertChar()) { for (const auto ch : result_text_) { ui::KeyEvent ch_event(*event); ch_event.set_character(ch); client->InsertChar(ch_event); } } else { // If |filtered| is false, that means the IME wants to commit some text // but still release the key to the application. For example, Korean IME // handles ENTER key to confirm its composition but still release it for // the default behavior (e.g. trigger search, etc.) // In such case, don't do InsertChar because a key should only trigger the // keydown event once. client->InsertText(result_text_); } should_stop_propagation = true; } if (client && composition_changed_ && !IsTextInputTypeNone()) { // If composition changed, does SetComposition if composition is not empty. // And ClearComposition if composition is empty. if (!composition_.text.empty()) client->SetCompositionText(composition_); else if (result_text_.empty()) client->ClearCompositionText(); should_stop_propagation = true; } // Makes sure the cached composition is cleared after committing any text or // cleared composition. if (client && !client->HasCompositionText()) composition_.Clear(); if (!filtered) { details = DispatchKeyEventPostIME(event); if (details.dispatcher_destroyed) { if (should_stop_propagation) event->StopPropagation(); return; } if (event->stopped_propagation() || details.target_destroyed) { ResetContext(); } else if (event->type() == ui::ET_KEY_PRESSED) { // If a key event was not filtered by |context_| or |context_simple_|, // then it means the key event didn't generate any result text. For some // cases, the key event may still generate a valid character, eg. a // control-key event (ctrl-a, return, tab, etc.). We need to send the // character to the focused text input client by calling // TextInputClient::InsertChar(). // Note: don't use |client| and use GetTextInputClient() here because // DispatchKeyEventPostIME may cause the current text input client change. base::char16 ch = event->GetCharacter(); if (ch && GetTextInputClient()) GetTextInputClient()->InsertChar(*event); should_stop_propagation = true; } } if (should_stop_propagation) event->StopPropagation(); } void InputMethodAuraLinux::UpdateContextFocusState() { bool old_text_input_type = text_input_type_; text_input_type_ = GetTextInputType(); // We only focus in |context_| when the focus is in a textfield. if (old_text_input_type != TEXT_INPUT_TYPE_NONE && text_input_type_ == TEXT_INPUT_TYPE_NONE) { context_->Blur(); } else if (old_text_input_type == TEXT_INPUT_TYPE_NONE && text_input_type_ != TEXT_INPUT_TYPE_NONE) { context_->Focus(); } // |context_simple_| can be used in any textfield, including password box, and // even if the focused text input client's text input type is // ui::TEXT_INPUT_TYPE_NONE. if (GetTextInputClient()) context_simple_->Focus(); else context_simple_->Blur(); if (!ui::IMEBridge::Get()) // IMEBridge could be null for tests. return; ui::IMEEngineHandlerInterface::InputContext context( GetTextInputType(), GetTextInputMode(), GetTextInputFlags()); ui::IMEBridge::Get()->SetCurrentInputContext(context); ui::IMEEngineHandlerInterface* engine = GetEngine(); if (engine) { if (old_text_input_type != TEXT_INPUT_TYPE_NONE) engine->FocusOut(); if (text_input_type_ != TEXT_INPUT_TYPE_NONE) engine->FocusIn(context); } } void InputMethodAuraLinux::OnTextInputTypeChanged( const TextInputClient* client) { if (CanShowIme()) context_->OnTextInputTypeChanged(client->GetTextInputType(), client->GetTextInputFlags()); UpdateContextFocusState(); InputMethodBase::OnTextInputTypeChanged(client); // TODO(yoichio): Support inputmode HTML attribute. } void InputMethodAuraLinux::OnCaretBoundsChanged(const TextInputClient* client) { if (!IsTextInputClientFocused(client)) return; NotifyTextInputCaretBoundsChanged(client); context_->SetCursorLocation(GetTextInputClient()->GetCaretBounds()); if (!IsTextInputTypeNone() && text_input_type_ != TEXT_INPUT_TYPE_PASSWORD && GetEngine()) GetEngine()->SetCompositionBounds(GetCompositionBounds(client)); #if defined(OS_WEBOS) gfx::Range text_range; gfx::Range selection_range; base::string16 surrounding_text; if (!client->GetTextRange(&text_range) || !client->GetTextFromRange(text_range, &surrounding_text) || !client->GetSelectionRange(&selection_range)) { return; } if (!selection_range.IsValid()) return; // Here SetSurroundingText accepts relative position of |surrounding_text|, so // we have to convert |selection_range| from node coordinates to // |surrounding_text| coordinates. std::string text = base::UTF16ToUTF8(surrounding_text); size_t anchor_position = selection_range.start() - text_range.start(); size_t cursor_position = selection_range.end() - text_range.start(); // FIXME Retricts length of surround text to 4000 characters. // Usually wayland can carry parameters which is less than 4096 bytes // due to wl_buffer restriction (see wl_connection_write()/ // wl_buffer_put()) static const size_t SURROUNDING_TEXT_MAX = 4000; if (cursor_position != anchor_position) { size_t& leftmost(cursor_position < anchor_position ? cursor_position : anchor_position); size_t& rightmost(cursor_position < anchor_position ? anchor_position : cursor_position); int direction(cursor_position < anchor_position ? 1 : -1); if (rightmost - leftmost > SURROUNDING_TEXT_MAX) anchor_position = cursor_position + direction*SURROUNDING_TEXT_MAX; text = text.substr(leftmost, SURROUNDING_TEXT_MAX); rightmost -= leftmost; leftmost = 0; } else { size_t pos(anchor_position <= SURROUNDING_TEXT_MAX ? 0 : anchor_position - SURROUNDING_TEXT_MAX); anchor_position = cursor_position -= pos; text = text.substr(pos, SURROUNDING_TEXT_MAX); } context_->SetSurroundingText(text, cursor_position, anchor_position); #endif } void InputMethodAuraLinux::CancelComposition(const TextInputClient* client) { if (!IsTextInputClientFocused(client)) return; if (GetEngine()) GetEngine()->Reset(); ResetContext(); } void InputMethodAuraLinux::ResetContext() { if (!GetTextInputClient()) return; // To prevent any text from being committed when resetting the |context_|; is_sync_mode_ = true; #if !defined(OS_WEBOS) suppress_next_result_ = true; #endif context_->Reset(); context_simple_->Reset(); // Some input methods may not honour the reset call. Focusing out/in the // |context_| to make sure it gets reset correctly. if (text_input_type_ != TEXT_INPUT_TYPE_NONE) { context_->Blur(); context_->Focus(); } composition_.Clear(); result_text_.clear(); is_sync_mode_ = false; composition_changed_ = false; } void InputMethodAuraLinux::OnInputLocaleChanged() { } std::string InputMethodAuraLinux::GetInputLocale() { return ""; } bool InputMethodAuraLinux::IsCandidatePopupOpen() const { // There seems no way to detect candidate windows or any popups. return false; } // Overriden from ui::LinuxInputMethodContextDelegate void InputMethodAuraLinux::OnCommit(const base::string16& text) { if (suppress_next_result_ || !GetTextInputClient()) { suppress_next_result_ = false; return; } if (is_sync_mode_) { // Append the text to the buffer, because commit signal might be fired // multiple times when processing a key event. result_text_.append(text); } else if (!IsTextInputTypeNone()) { // If we are not handling key event, do not bother sending text result if // the focused text input client does not support text input. #if defined(OS_WEBOS) KeyEvent event(ui::ET_KEY_RELEASED, ui::VKEY_PROCESSKEY, 0); #else ui::KeyEvent event(ui::ET_KEY_PRESSED, ui::VKEY_PROCESSKEY, 0); #endif ui::EventDispatchDetails details = SendFakeProcessKeyEvent(&event); if (details.dispatcher_destroyed) return; if (!event.stopped_propagation() && !details.target_destroyed) GetTextInputClient()->InsertText(text); composition_.Clear(); } } void InputMethodAuraLinux::OnPreeditChanged( const CompositionText& composition_text) { if (suppress_next_result_ || IsTextInputTypeNone()) return; if (is_sync_mode_) { if (!composition_.text.empty() || !composition_text.text.empty()) composition_changed_ = true; } else { #if defined(OS_WEBOS) KeyEvent event(ui::ET_KEY_RELEASED, ui::VKEY_PROCESSKEY, 0); #else ui::KeyEvent event(ui::ET_KEY_PRESSED, ui::VKEY_PROCESSKEY, 0); #endif ui::EventDispatchDetails details = SendFakeProcessKeyEvent(&event); if (details.dispatcher_destroyed) return; if (!event.stopped_propagation() && !details.target_destroyed) GetTextInputClient()->SetCompositionText(composition_text); } composition_ = composition_text; } void InputMethodAuraLinux::OnPreeditEnd() { if (suppress_next_result_ || IsTextInputTypeNone()) return; if (is_sync_mode_) { if (!composition_.text.empty()) { composition_.Clear(); composition_changed_ = true; } } else { TextInputClient* client = GetTextInputClient(); if (client && client->HasCompositionText()) { #if defined(OS_WEBOS) KeyEvent event(ui::ET_KEY_RELEASED, ui::VKEY_PROCESSKEY, 0); #else ui::KeyEvent event(ui::ET_KEY_PRESSED, ui::VKEY_PROCESSKEY, 0); #endif ui::EventDispatchDetails details = SendFakeProcessKeyEvent(&event); if (details.dispatcher_destroyed) return; if (!event.stopped_propagation() && !details.target_destroyed) client->ClearCompositionText(); } composition_.Clear(); } } void InputMethodAuraLinux::OnDeleteRange(int32_t index, uint32_t length) { if (IsTextInputTypeNone()) return; TextInputClient* client = GetTextInputClient(); if (client) { gfx::Range range; bool res = false; if (length != std::numeric_limits<uint32_t>::max()) { res = client->GetSelectionRange(&range); if (res) { range.set_start(range.GetMax() + index); range.set_end(range.start() + length); } } else { res = client->GetTextRange(&range); } if (res) client->DeleteRange(range); } } void InputMethodAuraLinux::OnHideIme(ui::ImeHiddenType hidden_type) { TextInputClient* client = GetTextInputClient(); if (client) client->OnHideIme(hidden_type); } // Overridden from InputMethodBase. void InputMethodAuraLinux::OnWillChangeFocusedClient( TextInputClient* focused_before, TextInputClient* focused) { ConfirmCompositionText(); } void InputMethodAuraLinux::OnDidChangeFocusedClient( TextInputClient* focused_before, TextInputClient* focused) { #if defined(OS_WEBOS) if (focused && CanShowIme()) { context_->OnTextInputTypeChanged(focused->GetTextInputType(), focused->GetTextInputFlags()); } #endif UpdateContextFocusState(); // Force to update caret bounds, in case the View thinks that the caret // bounds has not changed. if (text_input_type_ != TEXT_INPUT_TYPE_NONE) OnCaretBoundsChanged(GetTextInputClient()); InputMethodBase::OnDidChangeFocusedClient(focused_before, focused); } void InputMethodAuraLinux::ShowImeIfNeeded() { TextInputClient* client = GetTextInputClient(); if (CanShowIme() && client) { context_->OnTextInputTypeChanged(GetTextInputType(), GetTextInputFlags()); context_->ChangeVKBVisibility(true); OnCaretBoundsChanged(client); } } void InputMethodAuraLinux::HideIme(ui::ImeHiddenType hidden_type) { if (CanShowIme() && IsVisible()) { context_->ChangeVKBVisibility(false); OnHideIme(hidden_type); } } // private bool InputMethodAuraLinux::HasInputMethodResult() { return !result_text_.empty() || composition_changed_; } bool InputMethodAuraLinux::NeedInsertChar() const { return IsTextInputTypeNone() || (!composition_changed_ && composition_.text.empty() && result_text_.length() == 1); } ui::EventDispatchDetails InputMethodAuraLinux::SendFakeProcessKeyEvent( ui::KeyEvent* event) const { #if defined(OS_WEBOS) KeyEvent key_event(ui::ET_KEY_RELEASED, ui::VKEY_PROCESSKEY, event->flags()); #else KeyEvent key_event(ui::ET_KEY_PRESSED, ui::VKEY_PROCESSKEY, event->flags()); #endif ui::EventDispatchDetails details = DispatchKeyEventPostIME(&key_event); if (key_event.stopped_propagation()) event->StopPropagation(); return details; } void InputMethodAuraLinux::ConfirmCompositionText() { TextInputClient* client = GetTextInputClient(); if (client && client->HasCompositionText()) { client->ConfirmCompositionText(); if (GetEngine()) GetEngine()->Reset(); } ResetContext(); } void InputMethodAuraLinux::SetImeEnabled(bool enable) { is_ime_enabled_ = enable; } void InputMethodAuraLinux::SetImeSupported(bool enable) { is_ime_supported_ = enable; } bool InputMethodAuraLinux::CanShowIme() { return is_ime_enabled_ && is_ime_supported_; } gfx::Rect InputMethodAuraLinux::GetInputPanelRect() const { #if defined(OS_WEBOS) return context_->GetInputPanelRect(); #endif return gfx::Rect(0, 0, 0, 0); } gfx::Rect InputMethodAuraLinux::GetCaretBounds() const { TextInputClient* client = GetTextInputClient(); if (client) return client->GetCaretBounds(); return gfx::Rect(0, 0, 0, 0); } bool InputMethodAuraLinux::IsVisible() const { #if defined(USE_OZONE) return context_->IsInputPanelVisible(); #endif return false; } bool InputMethodAuraLinux::IsInputMethodActive() const { return context_->IsInputMethodActive(); } } // namespace ui
[ "changhyeok.bae@lge.com" ]
changhyeok.bae@lge.com
1c15a9d0aab021e807ab949b2c79bbafbcff534e
23bd4d770483e0c6baa3ba08758b5b07c32e67f7
/trial.cpp
109f47efb59a6194c9cdc7a89a8132b1e392ad6f
[]
no_license
naveenk2k/Project-Euler
43d674493bcd51df1594dfc193509f0f39146c5a
a9cf76d5d7473f3f839850d42009ead8cfbd41c5
refs/heads/master
2022-03-07T11:56:55.204995
2022-02-27T11:08:03
2022-02-27T11:08:03
175,922,458
0
0
null
null
null
null
UTF-8
C++
false
false
763
cpp
#include <iostream> #include <numeric> #include <vector> using namespace std; int main() { vector<int> nums; // nums.push_back(-242); // nums.push_back(-1); nums.push_back(1); nums.push_back(5); nums.push_back(8); nums.push_back(8); nums.push_back(11); cout << "Before nums is: "; for (unsigned int i = 0; i < nums.size(); i++) { cout << nums[i] << " "; } cout << endl; vector<int>::iterator result; int new_val = 1; result = lower_bound(nums.begin(), nums.end(), new_val); cout << result-nums.begin() << '\n'; nums.insert(result, new_val); cout << "After, nums is: "; for (unsigned int i = 0; i < nums.size(); i++) { cout << nums[i] << " "; } cout << endl; }
[ "naveenk2k@gmail.com" ]
naveenk2k@gmail.com