blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
2
247
content_id
stringlengths
40
40
detected_licenses
listlengths
0
57
license_type
stringclasses
2 values
repo_name
stringlengths
4
111
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringlengths
4
58
visit_date
timestamp[ns]date
2015-07-25 18:16:41
2023-09-06 10:45:08
revision_date
timestamp[ns]date
1970-01-14 14:03:36
2023-09-06 06:22:19
committer_date
timestamp[ns]date
1970-01-14 14:03:36
2023-09-06 06:22:19
github_id
int64
3.89k
689M
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
25 values
gha_event_created_at
timestamp[ns]date
2012-06-07 00:51:45
2023-09-14 21:58:52
gha_created_at
timestamp[ns]date
2008-03-27 23:40:48
2023-08-24 19:49:39
gha_language
stringclasses
159 values
src_encoding
stringclasses
34 values
language
stringclasses
1 value
is_vendor
bool
1 class
is_generated
bool
2 classes
length_bytes
int64
7
10.5M
extension
stringclasses
111 values
filename
stringlengths
1
195
text
stringlengths
7
10.5M
0edba5fa21064f2655f4fc0836d176540ab6d1dd
cc153bdc1238b6888d309939fc683e6d1589df80
/qcril-hal/include/interfaces/voice/QcRilUnsolCallStateChangeMessage.h
7e2aea536bba45fcc8c0a2e7e75727e713276a95
[ "Apache-2.0" ]
permissive
ml-think-tanks/msm8996-vendor
bb9aa72dabe59a9bd9158cd7a6e350a287fa6a35
b506122cefbe34508214e0bc6a57941a1bfbbe97
refs/heads/master
2022-10-21T17:39:51.458074
2020-06-18T08:35:56
2020-06-18T08:35:56
null
0
0
null
null
null
null
UTF-8
C++
false
false
1,345
h
QcRilUnsolCallStateChangeMessage.h
/****************************************************************************** # Copyright (c) 2018 Qualcomm Technologies, Inc. # All Rights Reserved. # Confidential and Proprietary - Qualcomm Technologies, Inc. #******************************************************************************/ #pragma once #include <framework/UnSolicitedMessage.h> #include <framework/add_message_id.h> #include <interfaces/voice/voice.h> /* * Unsol message to notify call ringing indication */ class QcRilUnsolCallStateChangeMessage : public UnSolicitedMessage, public add_message_id<QcRilUnsolCallStateChangeMessage> { private: public: static constexpr const char *MESSAGE_NAME = "QcRilUnsolCallStateChangeMessage"; ~QcRilUnsolCallStateChangeMessage() {} QcRilUnsolCallStateChangeMessage() : UnSolicitedMessage(get_class_message_id()) { mName = MESSAGE_NAME; } std::shared_ptr<UnSolicitedMessage> clone() { std::shared_ptr<QcRilUnsolCallStateChangeMessage> msg = std::make_shared<QcRilUnsolCallStateChangeMessage>(); return msg; } string dump() { return mName + "{" + (mIsIms ? "isIms=true" : "") + "}"; } // To distinguish IMS or CS indication private: bool mIsIms = false; public: bool isIms() { return mIsIms; } void setIsIms(bool val) { mIsIms = val; } };
7cc8a9a588c06792a126fef180dda5a556c71d08
cd978f71def7a6ccaf0b485e5046895525e5c8fe
/user_models/src/mpolsrv2/mp_tlv_compress.h
ff2bdbea9d8d2dc40045e4b7cbeb599dd380ef38
[]
no_license
yijiazi/mpolsr_qualnet
a92625215e8dcafa0ed04f40fc1f1a3aa2266cbd
fc9b95bfe2f886ccedcfb8d95028d5f8a3513e49
refs/heads/master
2016-09-05T14:09:56.558074
2015-06-26T23:05:32
2015-06-26T23:05:32
38,138,091
3
0
null
null
null
null
UTF-8
C++
false
false
3,124
h
mp_tlv_compress.h
/************************************************************************************************ * Copyright (C) 2010 * * Multipath Extension of MP-OLSRv2 by Jiazi Yi (Ecole Polytechnique Nantes,France) jiazi.yi@univ-nantes.fr * * * This program is distributed in the hope that it will be useful, * * but WITHOUT ANY WARRANTY; without even the implied warranty of * * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * ************************************************************************************************* *************************************************************************************************/ /* * * Copyright (c) 2006, Graduate School of Niigata University, * Ad hoc Network Lab. * Developer: * Yasunori Owada [yowada@net.ie.niigata-u.ac.jp], * Kenta Tsuchida [ktsuchi@net.ie.niigata-u.ac.jp], * Taka Maeno [tmaeno@net.ie.niigata-u.ac.jp], * Hiroei Imai [imai@ie.niigata-u.ac.jp]. * Contributor: * Keita Yamaguchi [kyama@net.ie.niigata-u.ac.jp], * Yuichi Murakami [ymura@net.ie.niigata-u.ac.jp], * Hiraku Okada [hiraku@ie.niigata-u.ac.jp]. * * This software is available with usual "research" terms * with the aim of retain credits of the software. * Permission to use, copy, modify and distribute this software for any * purpose and without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies, * and the name of NIIGATA, or any contributor not be used in advertising * or publicity pertaining to this material without the prior explicit * permission. The software is provided "as is" without any * warranties, support or liabilities of any kind. * This product includes software developed by the University of * California, Berkeley and its contributors protected by copyrights. */ #ifndef __MP_OLSR_TLV_COMPLESS_H #define __MP_OLSR_TLV_COMPLESS_H #include "mp_pktbuf.h" namespace MPOLSRv2{ typedef struct base_tlv { olsr_u8_t tlv_type; olsr_u8_t tlv_semantics; olsr_u8_t tlv_length; olsr_u8_t index_start; olsr_u8_t index_stop; olsr_u8_t *value; } BASE_TLV; /* function prototypes */ void build_tlv_block_tc(olsr_pktbuf_t *); void build_tlv_block_local(olsr_pktbuf_t *); void build_tlv_block_for_index_hello(olsr_pktbuf_t *, BASE_ADDRESS *, olsr_u32_t); void build_tlv_block_for_index_local(olsr_pktbuf_t *, BASE_ADDRESS *, olsr_u32_t); void build_tlv_local_by_list(void *,olsr_pktbuf_t *, OLSR_LIST *); void build_tlv_hello_by_list(void *, olsr_pktbuf_t *, OLSR_LIST *); void print_other_neigh_status(olsr_u8_t); void print_link_status(olsr_u8_t); void print_interface(olsr_u8_t); void print_mpr_selection(olsr_bool); void build_tlv_attached_network_by_list(void *olsr, olsr_pktbuf_t *, OLSR_LIST *); void build_tlv_block_for_index_attached_network(olsr_pktbuf_t *, BASE_ADDRESS *, olsr_u32_t ); } #endif /* __OLSR_TLV_COMPLESS_H */
c08a6a7145c596825eae4ae1c326eff51328fb17
6202ce6e53c4634e702937bd3d98068dcb971d1f
/Generator_BackEnd/DS345.cpp
cce51fd2759af55ee8ed239e9738e45fd4859658
[]
no_license
sovink70/Automation_of_experiments
7723dce41cf799aeb7d158c2ab297daec537b7f0
6b80ecdd14cd58309116a9f4de8de83429b5f6c7
refs/heads/master
2020-07-25T00:06:35.208329
2020-03-24T08:38:32
2020-03-24T08:38:32
208,092,977
0
0
null
null
null
null
UTF-8
C++
false
false
20,319
cpp
DS345.cpp
#include "DS345.h" DS345::DS345() { this->serial = nullptr; this->srs = nullptr; init(); } DS345::~DS345() { } void DS345::initAmplitudeTypeList() { this->amplitudeTypeList.clear(); this->amplitudeTypeList.push_back("VP"); this->amplitudeTypeList.push_back("VR"); this->amplitudeTypeList.push_back("DB"); return; } // вот тут Артур должен привызове этой команды сразу же перевести QString &waveform, const QString &unit в string чтобы их можно было пихать сюда double DS345::getMinAmplitude(const std::string &waveform, const std::string &unit) const { if (waveform == "SINE") { if (unit == "VP") return this->minAmplitudeSineVpp; if (unit == "VR") return this->minAmplitudeSineVrms; if (unit == "DB") return this->minAmplitudeSinedBm; } if (waveform == "SQUARE") { if (unit == "VP") return this->minAmplitudeSquareVpp; if (unit == "VR") return this->minAmplitudeSquareVrms; if (unit == "DB") return this->minAmplitudeSquaredBm; } if (waveform == "TRIANGLE") { if (unit == "VP") return this->minAmplitudeTriangleVpp; if (unit == "VR") return this->minAmplitudeTriangleVrms; if (unit == "DB") return this->minAmplitudeTriangledBm; } if (waveform == "RAMP") { if (unit == "VP") return this->minAmplitudeRampVpp; if (unit == "VR") return this->minAmplitudeRampVrms; if (unit == "DB") return this->minAmplitudeRampdBm; } if (waveform == "NOISE") { if (unit == "VP") return this->minAmplitudeNoiseVpp; if (unit == "VR") return this->minAmplitudeNoiseVrms; if (unit == "DB") return this->minAmplitudeNoisedBm; } if (waveform == "ARBITRARY") { if (unit == "VP") return this->minAmplitudeArbitraryVpp; if (unit == "VR") return -1; if (unit == "DB") return -1; } return -1; } // вот тут Артур должен привызове этой команды сразу же перевести QString &waveform, const QString &unit в string чтобы их можно было пихать сюда double DS345::getMaxAmplitude(const std::string &waveform, const std::string &unit) const { if (waveform == "SINE") { if (unit == "VP") return this->maxAmplitudeSineVpp; if (unit == "VR") return this->maxAmplitudeSineVrms; if (unit == "DB") return this->maxAmplitudeSinedBm; } if (waveform == "SQUARE") { if (unit == "VP") return this->maxAmplitudeSquareVpp; if (unit == "VR") return this->maxAmplitudeSquareVrms; if (unit == "DB") return this->maxAmplitudeSquaredBm; } if (waveform == "TRIANGLE") { if (unit == "VP") return this->maxAmplitudeTriangleVpp; if (unit == "VR") return this->maxAmplitudeTriangleVrms; if (unit == "DB") return this->maxAmplitudeTriangledBm; } if (waveform == "RAMP") { if (unit == "VP") return this->maxAmplitudeRampVpp; if (unit == "VR") return this->maxAmplitudeRampVrms; if (unit == "DB") return this->maxAmplitudeRampdBm; } if (waveform == "NOISE") { if (unit == "VP") return this->maxAmplitudeNoiseVpp; if (unit == "VR") return this->maxAmplitudeNoiseVrms; if (unit == "DB") return this->maxAmplitudeNoisedBm; } if (waveform == "ARBITRARY") { if (unit == "VP") return this->maxAmplitudeArbitraryVpp; if (unit == "VR") return -1; if (unit == "DB") return -1; } return -1; } // вот тут Артур должен привызове этой команды сразу же перевести QString &waveform, const QString &unit в string чтобы их можно было пихать сюда double DS345::getStepAmplitude(const std::string &waveform, const std::string &unit) const { if (waveform == "SINE") { if (unit == "VP") return this->stepAmplitudeSineVpp; if (unit == "VR") return this->stepAmplitudeSineVrms; if (unit == "DB") return this->stepAmplitudeSinedBm; } if (waveform == "SQUARE") { if (unit == "VP") return this->stepAmplitudeSquareVpp; if (unit == "VR") return this->stepAmplitudeSquareVrms; if (unit == "DB") return this->stepAmplitudeSquaredBm; } if (waveform == "TRIANGLE") { if (unit == "VP") return this->stepAmplitudeTriangleVpp; if (unit == "VR") return this->stepAmplitudeTriangleVrms; if (unit == "DB") return this->stepAmplitudeTriangledBm; } if (waveform == "RAMP") { if (unit == "VP") return this->stepAmplitudeRampVpp; if (unit == "VR") return this->stepAmplitudeRampVrms; if (unit == "DB") return this->stepAmplitudeRampdBm; } if (waveform == "NOISE") { if (unit == "VP") return this->stepAmplitudeNoiseVpp; if (unit == "VR") return this->stepAmplitudeNoiseVrms; if (unit == "DB") return this->stepAmplitudeNoisedBm; } if (waveform == "ARBITRARY") { if (unit == "VP") return this->stepAmplitudeArbitraryVpp; if (unit == "VR") return -1; if (unit == "DB") return -1; } return -1; } // вот тут Артур должен привызове этой команды сразу же перевести QString &waveform, const QString &unit в string чтобы их можно было пихать сюда double DS345::getDecimalsAmplitude(const std::string &waveform, const std::string &unit) const { if (waveform == "SINE") { if (unit == "VP") return this->decimalsAmplitudeSineVpp; if (unit == "VR") return this->decimalsAmplitudeSineVrms; if (unit == "DB") return this->decimalsAmplitudeSinedBm; } if (waveform == "SQUARE") { if (unit == "VP") return this->decimalsAmplitudeSquareVpp; if (unit == "VR") return this->decimalsAmplitudeSquareVrms; if (unit == "DB") return this->decimalsAmplitudeSquaredBm; } if (waveform == "TRIANGLE") { if (unit == "VP") return this->decimalsAmplitudeTriangleVpp; if (unit == "VR") return this->decimalsAmplitudeTriangleVrms; if (unit == "DB") return this->decimalsAmplitudeTriangledBm; } if (waveform == "RAMP") { if (unit == "VP") return this->decimalsAmplitudeRampVpp; if (unit == "VR") return this->decimalsAmplitudeRampVrms; if (unit == "DB") return this->decimalsAmplitudeRampdBm; } if (waveform == "NOISE") { if (unit == "VP") return this->decimalsAmplitudeNoiseVpp; if (unit == "VR") return this->decimalsAmplitudeNoiseVrms; if (unit == "DB") return this->decimalsAmplitudeNoisedBm; } if (waveform == "ARBITRARY") { if (unit == "VP") return this->decimalsAmplitudeArbitraryVpp; if (unit == "VR") return -1; if (unit == "DB") return -1; } return -1; } // вот тут Артур должен привызове этой команды сразу же перевести QString &waveform, const QString &unit в string чтобы их можно было пихать сюда bool DS345::isValidAmplitude(const double &amplitude, const std::string &waveform, const std::string &unit) const { if (!isValidAmplitudeType(unit)) return false; return (getMinAmplitude(waveform, unit) <= amplitude && amplitude <= getMaxAmplitude(waveform, unit)); } // вот тут Артур должен привызове этой команды сразу же перевести QString &waveform, const QString &unit в string чтобы их можно было пихать сюда double DS345::getMinFrequency(const std::string &waveform) const { if (waveform == "SINE") return this->minFrequencySine; if (waveform == "SQUARE") return this->minFrequencySquare; if (waveform == "TRIANGLE") return this->minFrequencyTriangle; if (waveform == "RAMP") return this->minFrequencyRamp; if (waveform == "NOISE") return this->minFrequencyNoise; if (waveform == "ARBITRARY") return this->minFrequencyArbitrary; return -1; } // вот тут Артур должен привызове этой команды сразу же перевести QString &waveform, const QString &unit в string чтобы их можно было пихать сюда double DS345::getMaxFrequency(const std::string &waveform) const { if (waveform == "SINE") return this->maxFrequencySine; if (waveform == "SQUARE") return this->maxFrequencySquare; if (waveform == "TRIANGLE") return this->maxFrequencyTriangle; if (waveform == "RAMP") return this->maxFrequencyRamp; if (waveform == "NOISE") return this->maxFrequencyNoise; if (waveform == "ARBITRARY") return this->maxFrequencyArbitrary; return -1; } // вот тут Артур должен привызове этой команды сразу же перевести QString &waveform, const QString &unit в string чтобы их можно было пихать сюда double DS345::getStepFrequency(const std::string &waveform) const { if (waveform == "SINE") return this->stepFrequencySine; if (waveform == "SQUARE") return this->stepFrequencySquare; if (waveform == "TRIANGLE") return this->stepFrequencyTriangle; if (waveform == "RAMP") return this->stepFrequencyRamp; if (waveform == "NOISE") return this->stepFrequencyNoise; if (waveform == "ARBITRARY") return this->stepFrequencyArbitrary; return -1; } // вот тут Артур должен привызове этой команды сразу же перевести QString &waveform, const QString &unit в string чтобы их можно было пихать сюда double DS345::getDecimalsFrequency(const std::string &waveform) const { if (waveform == "SINE") return this->decimalsFrequencySine; if (waveform == "SQUARE") return this->decimalsFrequencySquare; if (waveform == "TRIANGLE") return this->decimalsFrequencyTriangle; if (waveform == "RAMP") return this->decimalsFrequencyRamp; if (waveform == "NOISE") return this->decimalsFrequencyNoise; if (waveform == "ARBITRARY") return this->decimalsFrequencyArbitrary; return -1; } // вот тут Артур должен привызове этой команды сразу же перевести QString &waveform, const QString &unit в string чтобы их можно было пихать сюда bool DS345::isValidFrequency(const double &frequency, const std::string &waveform) const { return (getMinFrequency(waveform) <= frequency && frequency <= getMaxFrequency(waveform)); } void DS345::initFunctionList() { this->functionList.clear(); this->functionList.push_back("SINE"); this->functionList.push_back("SQUARE"); this->functionList.push_back("TRIANGLE"); this->functionList.push_back("RAMP"); this->functionList.push_back("NOISE"); this->functionList.push_back("ARBITRARY"); return; } int DS345::getMinAMDepth() const { return this->minAMDepth; } int DS345::getMaxAMDepth() const { return this->maxAMDepth; } bool DS345::isValidAMDepth(const int &persentage) const { return (this->minAMDepth <= persentage && persentage <= this->maxAMDepth); } bool DS345::setAMdepth(const int &persentage) const { if (!isValidAMDepth(persentage)) return false; std::string command = "DPTH" + separator + std::to_string(persentage); return sendCommand(command); } int DS345::getAMdepth() const //int { return stod(ask("DPTH?")); // ask("DPTH?").toInt(); } // вот тут Артур должен привызове этой команды сразу же перевести QString &waveform в string чтобы их можно было пихать сюда double DS345::getMinFMSpan(const std::string &waveform) const { return getMinFrequency(waveform); } // вот тут Артур должен привызове этой команды сразу же перевести QString &waveform, const QString &unit в string чтобы их можно было пихать сюда double DS345::getMaxFMSpan(const std::string &waveform) const { return getMaxFrequency(waveform); } bool DS345::isValidFMSpan(const int &span, const std::string &waveform) const { return (getMinFMSpan(waveform) <= span && span <= getMaxFMSpan(waveform)); } bool DS345::setFMSpan(const double &span) const { std::string command = "FDEV" + separator + std::to_string(span); return sendCommand(command); } double DS345::getFMSpan() const { return stod(ask("FDEV?")); //.toDouble(); } void DS345::initModulationFunctionList() { this->modulationFunctionList.clear(); this->modulationFunctionList.push_back("SINGLE SWEEP"); this->modulationFunctionList.push_back("RAMP"); this->modulationFunctionList.push_back("TRIANGLE"); this->modulationFunctionList.push_back("SINE"); this->modulationFunctionList.push_back("SQUARE"); this->modulationFunctionList.push_back("ARB"); this->modulationFunctionList.push_back("NONE"); return; } std::vector<std::string> DS345::getModulationFunctionList() const { return this->modulationFunctionList; } // вот тут Артур должен привызове этой команды сразу же перевести QString &waveform, const QString &unit в string чтобы их можно было пихать сюда int DS345::modulationFunctionNumberFromString(const std::string &function_string) const { return numberFromString(this->modulationFunctionList, function_string); } std::string DS345::modulationFunctionStringFromNumber(const int &function_number) const { return stringFromNumber(this->modulationFunctionList, function_number); } bool DS345::setModulationFunction(const int &function) const { if (!isValidNumber(this->modulationFunctionList, function)) return false; std::string command = "MDWF" + separator + std::to_string(function); return sendCommand(command); } // вот тут Артур должен привызове этой команды сразу же перевести QString &waveform, const QString &unit в string чтобы их можно было пихать сюда bool DS345::setModulationFunction(const std::string &function) const { return setModulationFunction(modulationFunctionNumberFromString(function)); } // вот тут Артур должен привызове этой команды сразу же перевести QString &waveform, const QString &unit в string чтобы их можно было пихать сюда std::string DS345::getModulationFunction() const { return ask("MDWF?"); //modulationFunctionStringFromNumber(ask("MDWF?").toInt()); } bool DS345::setModulationEnabled(const bool &enable) const { std::string command = "MENA" + separator; if (enable) command += "1"; else command += "0"; return sendCommand(command); } //ОТМЕНА: мне bool непривычен, проще string integer bool DS345::getModulationEnabled() const { //return ask("MENA?"); //return (ask("MENA?").toInt() == 1); return (ask("MENA?") == "1"); } void DS345::initModulationTypeList() { this->modulationTypeList.clear(); this->modulationTypeList.push_back("LIN SWEEP"); this->modulationTypeList.push_back("LOG SWEEP"); this->modulationTypeList.push_back("INTERNAL AM"); this->modulationTypeList.push_back("FM"); this->modulationTypeList.push_back("FiM"); this->modulationTypeList.push_back("BURST"); return; } // // было QStringList std::vector<std::string> DS345::getModulationTypeList() const { return this->modulationTypeList; } int DS345::modulationTypeNumberFromString(const std::string &type_string) const { return numberFromString(this->modulationTypeList, type_string); } std::string DS345::modulationTypeStringFromNumber(const int &type_number) const { return stringFromNumber(this->modulationTypeList, type_number); } bool DS345::setModulationType(const int &type) const { if (!isValidNumber(this->modulationTypeList, type)) return false; std::string command = "MTYP" + separator + std::to_string(type); return sendCommand(command); } bool DS345::setModulationType(const std::string &type) const { return setModulationType(modulationTypeNumberFromString(type)); } std::string DS345::getModulationType() const { return ask("MTYP?"); //modulationTypeStringFromNumber(ask("MTYP?").toInt()); } double DS345::getMinModulationRate() const { return this->minModulationRate; } double DS345::getMaxModulationRate() const { return this->maxModulationRate; } double DS345::getStepModulationRate() const { return this->stepModulationRate; } double DS345::getDecimalsModulationRate() const { return this->decimalsModulationRate; } bool DS345::isValidModulationRate(const double &rate) const { return (this->minModulationRate <= rate && rate <= this->maxModulationRate); } bool DS345::setModulationRate(const double &rate) const { if (!isValidModulationRate(rate)) return false; std::string command = "RATE" + separator + std::to_string(rate); return sendCommand(command); } double DS345::getModulationRate() const { return stod(ask("RATE?")); //.toDouble(); } double DS345::getMinModulationSpan(const std::string &waveform) const { return getMinFrequency(waveform); } // вот тут Артур должен привызове этой команды сразу же перевести QString &waveform, const QString &unit в string чтобы их можно было пихать сюда double DS345::getMaxModulationSpan(const std::string &waveform) const { return getMaxFrequency(waveform); } // вот тут Артур должен привызове этой команды сразу же перевести QString &waveform, const QString &unit в string чтобы их можно было пихать сюда double DS345::getStepModulationSpan(const std::string &waveform) const { return getStepFrequency(waveform); } // вот тут Артур должен привызове этой команды сразу же перевести QString &waveform, const QString &unit в string чтобы их можно было пихать сюда double DS345::getDecimalsModulationSpan(const std::string &waveform) const { return getDecimalsFrequency(waveform); } // вот тут Артур должен привызове этой команды сразу же перевести QString &waveform, const QString &unit в string чтобы их можно было пихать сюда bool DS345::isValidModulationSpan(const double &span, const std::string &waveform) const { return (getMinModulationSpan(waveform) <= span && span <= getMaxModulationSpan(waveform)); } bool DS345::setModulationSpan(const double &span) const { std::string command = "SPAN" + separator + std::to_string(span); return sendCommand(command); } double DS345::getModulationSpan() const { return stod(ask("SPAN?")); //.toDouble(); }
f551e5e06da4d53d681de1153192417374f4db12
4f951e96accafe3ae8f687d18e142a8c9c657d05
/classes/maze.cpp
911a9ec44b73871889c227aebe93cf14bc611716
[]
no_license
amey16/Important-codes
ef9ef780d81f57198959ad784b242b284d89c4af
6ddee5e4c52bdefbbf0bbcf13b6c7b852ce67746
refs/heads/master
2022-06-20T12:10:49.642747
2020-05-12T09:15:51
2020-05-12T09:15:51
260,652,677
0
0
null
null
null
null
UTF-8
C++
false
false
1,567
cpp
maze.cpp
<<<<<<< HEAD #include<iostream> #include<vector> #include<string> using namespace std; vector<string> gmp(int sr,int sc,int dr,int dc){ if(sr==dr && sc==dc){ vector<string> bres; bres.push_back(""); return bres; } vector<string> paths; if(sr<dr){ vector<string> nh=gmp(sr+1,sc,dr,dc); for(int i=0;i<nh.size();i++){ paths.push_back("h"+nh[i]); } } if(sc<dc){ vector<string> nv=gmp(sr,sc+1,dr,dc); for(int i=0;i<nv.size();i++){ paths.push_back("v"+nv[i]); } } return paths; } int main(int argc,char** arv){ int r,c; cin>>r>>c; vector<string> ans=gmp(0,0,r,c); for(int i=0;i<ans.size();i++) cout<<ans[i]<<endl; ======= #include<iostream> #include<vector> #include<string> using namespace std; vector<string> gmp(int sr,int sc,int dr,int dc){ if(sr==dr && sc==dc){ vector<string> bres; bres.push_back(""); return bres; } vector<string> paths; if(sr<dr){ vector<string> nh=gmp(sr+1,sc,dr,dc); for(int i=0;i<nh.size();i++){ paths.push_back("h"+nh[i]); } } if(sc<dc){ vector<string> nv=gmp(sr,sc+1,dr,dc); for(int i=0;i<nv.size();i++){ paths.push_back("v"+nv[i]); } } return paths; } int main(int argc,char** arv){ int r,c; cin>>r>>c; vector<string> ans=gmp(0,0,r,c); for(int i=0;i<ans.size();i++) cout<<ans[i]<<endl; >>>>>>> 38d8b638e268b24ee405b99aa2d694169bd30081 }
71a156ffa52e884cf923fb6d5fd33109bd572a02
568c9e7c35262be7e1bea826191ca783bf12e269
/FC3 workspace/CPP/prb/Src/Approx.cpp
459fc7859b5b0e376f43e13081ac26977bf9b242
[]
no_license
sdlwdh/FC3
6e9afea74df78c0d65aaabf5eb90bec41af20d9f
97cb0f71669236c6e5c8c398f1c03e02cebe2cca
refs/heads/master
2022-04-24T03:57:33.908247
2020-04-28T22:00:15
2020-04-28T22:00:15
null
0
0
null
null
null
null
UTF-8
C++
false
false
2,520
cpp
Approx.cpp
#include "prb/Approx.hpp" #include <gsl/gsl_chebyshev.h> double gsl_f(double x, void* func) { auto& f = *static_cast<std::function<double(double)>*>(func); return f(x); } class ChebyshevApprox : public cfl::IApprox { public: ChebyshevApprox(const std::function<unsigned(double)> &rSize, double dLeft=0., double dRight=0.) : _sizeF(rSize), _a(dLeft), _b(dRight), _nodes(_sizeF(_b - _a)), _cs(gsl_cheb_alloc(_sizeF(_b - _a) - 1), &gsl_cheb_free) { auto N(_sizeF(_b - _a)); for(auto i=0; i<N; i++) { _nodes[i] = 0.5*(_b - _a)*cos(M_PI*(N - i - 0.5)/N) + 0.5*(_a + _b); } } IApprox* newApprox(double dLeft, double dRight) const { return new ChebyshevApprox(_sizeF, dLeft, dRight); } const std::vector<double>& arg() const { return _nodes; } cfl::Function approximate(const std::vector<double> &rValues) const { std::function<double(double)> u_func = [vals = rValues, args = _nodes](double dX) { double x_up = dX + std::numeric_limits<double>::epsilon(); double x_low = dX - std::numeric_limits<double>::epsilon(); int i = std::distance(args.begin(), std::find_if(args.begin(), args.end(), [x_up, x_low](double val) { return (val < x_up) && (val > x_low); } ) ); return vals[i]; }; gsl_function F; F.function = gsl_f; F.params = &u_func; gsl_cheb_init (_cs.get(), &F, _a, _b); std::function<double(double)> resultsF = [cheb_series = _cs](double dX) { return gsl_cheb_eval(cheb_series.get(), dX); }; return cfl::Function(resultsF); } private: std::function<unsigned(double)> _sizeF; double _a, _b; std::vector<double> _nodes; std::shared_ptr<gsl_cheb_series> _cs; }; cfl::Approx prb::NApprox::chebyshev(const std::function<unsigned(double)> &rSize) { return cfl::Approx(new ChebyshevApprox(rSize)); }
7cec50c12fc40b25dc18275a8d427b5bd6b87b0a
2a5bcc3120a8c456bca0af8822a253ba326f1b51
/Phone-book.CPP
d2be70e7ea8911235fd97e6fe41ce5f38656798f
[]
no_license
Sanchay-Goel/Phonebook
e4499a784cc93777e3bb3c928f54b9e8858e09b0
7ceb49d272feb22055dca32a1f05faf44f8be5cc
refs/heads/master
2020-09-09T14:01:46.367786
2019-11-20T18:03:43
2019-11-20T18:03:43
221,465,761
0
0
null
null
null
null
UTF-8
C++
false
false
7,348
cpp
Phone-book.CPP
#include<iostream> #include<fstream> #include<stdlib.h> #include<string.h> #include<conio.h> #include<stdio.h> using namespace std; int add(void); int delete_rec(char *ch); int modify_rec(char *ch); int search_rec(char *ch); int display(void); void sortph(); class phone { char name[30]; char mobile[15]; char telephone[15]; char email[40]; public: void getdata(); void putdata(); void modify(); char *getname(); }ph; void phone::getdata() { cout<<"Enter Name :"; cin.getline(name,30); cout<<"Enter Mobile Number :"; cin.getline(mobile,12); cout<<"Enter Telephone Number :"; cin.getline(telephone,12); cout<<"Enter E-Mail ID :"; cin.getline(email,40); } void phone::putdata() { cout<<"Name : "<<name<<endl; cout<<"Mobile No. : "<<mobile<<endl; cout<<"Telephone No. : "<<telephone<<endl; cout<<"Email-id : "<<email<<endl; } void phone::modify() { cout<<"Name : "<<name<<endl; cout<<"Mobile No. : "<<mobile<<endl; cout<<"Telephone No. : "<<telephone<<endl; cout<<"Email-id : "<<email<<endl; cout<<endl<<"Enter New Details :"<<endl<<endl; char eml[40],nme[30],mob[15],tl[15]; cout<<"New Name :(Enter '!' to retain old one) "<<endl; cin.getline(nme,30); cout<<"New Mobile No. :(Enter '!' to retain old one) "<<endl; cin.getline(mob,12); cout<<"New Telephone No. :(Enter '!' to retain old one) "<<endl; cin.getline(tl,12); cout<<"New Email-ID :(Enter '!' to retain old one) "<<endl; cin.getline(eml,40); if (strcmp(eml,"!")!=0) strcpy(email,eml); if (strcmp(nme,"!")!=0) strcpy(name,nme); if (strcmp(mob,"!")!=0) strcpy(mobile,mob); if (strcmp(tl,"!")!=0) strcpy(telephone,tl); } char *phone::getname() { return name; } int main() { start: system("cls"); int b,c; cout<<endl<<" ..........PHONEBOOK..........."; cout<<endl<<endl<<endl; cout<<" 1. ADD CONTACT"<<endl; cout<<" 2. SEARCH CONTACT"<<endl; cout<<" 3. DELETE CONTACT"<<endl; cout<<" 4. MODIFY CONTACT"<<endl; cout<<" 5. DISPLAY ALL CONTACT"<<endl; cout<<" 6. EXIT"<<endl<<endl; cout<<" Enter Choice :"; cin>>b; cin.ignore(); switch (b) { case 1: int a; a=add(); if (a==1) goto start; else exit(0); case 2: system("cls"); char ch[30]; cout<<endl<<endl<<endl; cout<<"Enter Name to be searched for :"; cin.getline(ch,30); c=strlen(ch); a=search_rec(ch); if (a==1) goto start; else exit(0); break; case 3: system("cls"); cout<<endl<<endl<<endl; cout<<"Enter Name to be Deleted :"; cin.getline(ch,30); c=strlen(ch); a=delete_rec(ch); if (a==1) goto start; else exit(0); break; case 4: system("cls"); cout<<endl<<endl<<endl; cout<<"Enter Name to be Modified :"; cin.getline(ch,30); c=strlen(ch); a=modify_rec(ch); if (a==1) goto start; else exit(0); break; break; case 5: a=display(); if (a==1) goto start; else exit(0); case 6: system("cls"); cout<<endl<<endl<<endl; cout<<endl<<" ##**GOOD BYE **##"<<endl<<endl; cout<<endl<<endl<<endl<<endl<<endl<<endl; exit(0); default: break; }; }; int add() { system("cls"); int a; cout<<endl<<endl<<endl; fstream fin("Phonebook.txt",ios::in|ios::out|ios::app|ios::binary); ph.getdata(); fin.write((char*)&ph,sizeof(ph)); fin.close(); cout<<endl<<endl<<"Press 1 for returning to Main Menu."<<endl; cout<<"Press any other key for EXIT."; cin>>a; return a; } int display() { system("cls"); int a; cout<<endl<<endl<<endl; fstream fin("Phonebook.txt",ios::in|ios::out|ios::app|ios::binary); while(!fin.eof()) { fin.read((char*)&ph,sizeof(ph)); if(fin.eof()) break; ph.putdata(); cout<<endl<<endl; } fin.close(); cout<<endl<<endl<<"Press 1 for returning to Main Menu."<<endl; cout<<"Press any other key for EXIT."; cin>>a; return a; } int search_rec(char *ch) { system("cls"); int a=0; char nme[20]; cout<<endl<<endl<<endl; fstream fin("Phonebook.txt",ios::in|ios::out|ios::app|ios::binary); while(!fin.eof()) { fin.read((char*)&ph,sizeof(ph)); if(fin.eof()) break; strcpy(nme,ph.getname()); int comp=strcmp(ch,nme); if(!comp) { ph.putdata(); a+=1; } } if(!a) cout<<"NOT FOUND !!"; fin.close(); cout<<endl<<endl<<"Press 1 for returning to Main Menu."<<endl; cout<<"Press any other key for EXIT."; cin>>a; return a; } int delete_rec(char *ch) { system("cls"); int a=0; char nme[20],confirm='n'; cout<<endl<<endl<<endl; fstream fin("Phonebook.txt",ios::in|ios::out|ios::app|ios::binary); fstream del("Phonebook2.txt",ios::in|ios::out|ios::app|ios::binary); while(!fin.eof()) { fin.read((char*)&ph,sizeof(ph)); if(fin.eof()) break; strcpy(nme,ph.getname()); int comp=strcmp(ch,nme); if(!comp) { ph.putdata(); a+=1; cout<<"Are you sure you want to delete this Contact :"; cin>>confirm; if(confirm=='n') del.write((char*)&ph,sizeof(ph)); cout<<endl; } else del.write((char*)&ph,sizeof(ph)); } if(!a) cout<<"NOT FOUND !!"; else cout<<"Contact Deleted !!"; fin.close(); del.close(); remove("Phonebook.txt"); rename("Phonebook2.txt","Phonebook.txt"); cout<<endl<<endl<<"Press 1 for returning to Main Menu."<<endl; cout<<"Press any other key for EXIT."; cin>>a; return a; } int modify_rec(char *ch) { system("cls"); int a=0; char nme[20]; long pos; cout<<endl<<endl<<endl; fstream fin("Phonebook.txt",ios::in|ios::out|ios::app|ios::binary); fstream del("Phonebook2.txt",ios::in|ios::out|ios::app|ios::binary); while(!fin.eof()) { fin.read((char*)&ph,sizeof(ph)); if(fin.eof()) break; strcpy(nme,ph.getname()); int comp=strcmp(ch,nme); if(!comp) { ph.modify(); cout<<endl<<endl<<"New Information "<<endl; ph.putdata(); del.write((char*)&ph,sizeof(ph)); a+=1; cout<<endl; } else del.write((char*)&ph,sizeof(ph)); } if(!a) cout<<"CONTACT NOT FOUND !!"; fin.close(); del.close(); remove("Phonebook.txt"); rename("Phonebook2.txt","Phonebook.txt"); cout<<endl<<endl<<"Press 1 for returning to Main Menu."<<endl; cout<<"Press any other key for EXIT."; cin>>a; return a; }
5eb9d1790fb1ab86a1aebc8523da6e87bce35cdf
3204dc43bb60c308d674563d318b0e4190c46412
/ham/include/ham/util/cpu_affinity.hpp
d4a35cd01dfd5a0aa51f737ad997fe50874b0628
[ "LicenseRef-scancode-unknown-license-reference", "BSL-1.0" ]
permissive
noma/ham
cab51deadc8700546690093cc5e73d64441435ca
c9cbf447b8fa21d33db00a4aec606536638e6e14
refs/heads/master
2021-01-17T20:45:12.111638
2019-11-08T06:39:25
2019-11-08T06:39:25
23,577,549
26
5
BSL-1.0
2019-10-29T16:46:35
2014-09-02T12:21:19
C++
UTF-8
C++
false
false
441
hpp
cpu_affinity.hpp
// Copyright (c) 2013-2014 Matthias Noack (ma.noack.pr@gmail.com) // // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) #ifndef ham_util_cpu_affinity_hpp #define ham_util_cpu_affinity_hpp namespace ham { namespace util { void set_cpu_affinity(int core = 0); } // namespace util } // namespace ham #endif // ham_util_cpu_affinity_hpp
a9478ce6e3d4abe438aa0ef0b493d492e59020ba
f7b714e8bfecfa0f3df4c1f8e367005e51cc94c0
/TechnologyPack/ACD-Purley/12-update-5.00/Modified_OpenSource/acd_bafi_generator-src/tor_icx.hpp
bf1667e5d62b8f3b0dc49e9a5271f4d7cf967c2a
[]
no_license
ami-megarac/OSSW-v12-update-5.00
1f3e79f4c54518a007da0680bd6d26d14e218e71
51081f292423a6a7fbac3f3ab207ba106a26c693
refs/heads/main
2023-07-08T18:17:06.867766
2021-08-11T09:46:28
2021-08-11T09:46:28
386,598,287
2
2
null
2021-08-11T09:46:29
2021-07-16T10:29:19
C
UTF-8
C++
false
false
13,095
hpp
tor_icx.hpp
/****************************************************************************** * * INTEL CONFIDENTIAL * * Copyright 2020 Intel Corporation. * * This software and the related documents are Intel copyrighted materials, and * your use of them is governed by the express license under which they were * provided to you ("License"). Unless the License provides otherwise, you may * not use, modify, copy, publish, distribute, disclose or transmit this * software or the related documents without Intel's prior written permission. * * This software and the related documents are provided as is, with no express * or implied warranties, other than those that are expressly stated in * the License. * ******************************************************************************/ #pragma once #include <algorithm> #include <array> #include <functional> #include <map> #include <nlohmann/json.hpp> #include <optional> #include <string> #include <tuple> #include <utility> #include <vector> #include <aer.hpp> #include <mca_defs.hpp> #include <tor_defs_icx.hpp> #include <utils.hpp> #include <tor.hpp> using json = nlohmann::json; class IcxCpu final : public Cpu { public: // indexes for ierr and mcerr tsc information TscVariablesNames tscVariables = { "B31_D30_F4_0xF0", "B31_D30_F4_0xF4", "B31_D30_F4_0xF8", "B31_D30_F4_0xFC", }; // index for PACKAGE_THERM_STATUS static constexpr const char* package_therm_status_varname = "RDIAMSR_0x1B1"; // indexes for IERR, MCERR and MCERR source static constexpr const char* ierr_varname = "B30_D00_F0_0xA4"; static constexpr const char* mcerr_varname = "B30_D00_F0_0xA8"; static constexpr const char* mca_err_src_varname = "B31_D30_F2_0xEC"; // bigcore MCAs indexes static constexpr const char* bigcore_mc0 = "ifu_cr_mc0"; static constexpr const char* bigcore_mc1 = "dcu_cr_mc1"; static constexpr const char* bigcore_mc2 = "dtlb_cr_mc2"; static constexpr const char* bigcore_mc3 = "ml2_cr_mc3"; // indexes and masks of uncorrectable and correctable AER errors to decode static constexpr const char* unc_err_index = "0x104"; static const uint32_t unc_err_mask = 0x7FFF030; static constexpr const char* cor_err_index = "0x110"; static const uint32_t cor_err_mask = 0xF1C1; // index and bit mask of uncorrectable AER that requires different decoding // rules static constexpr const char* unc_spec_err_index = "B00_D03_F0_0x14C"; static const uint32_t unc_spec_err_mask = 0x47FF030; // index and bit mask of correctable AER that requires different decoding // rule static constexpr const char* cor_spec_err_index = "B00_D03_F0_0x158"; static const uint32_t cor_spec_err_mask = 0x31C1; // index that should be excluded from decoding static constexpr const char* exclude_index_1 = "B30_"; static constexpr const char* exclude_index_2 = "B31_"; std::string bigcore_mcas[4] = {bigcore_mc0, bigcore_mc1, bigcore_mc2, bigcore_mc3}; [[nodiscard]] std::map<uint32_t, TscData> getTscData(const json& input) { auto cpuSections = prepareJson(input); return getTscDataForProcessorType(cpuSections, tscVariables); } [[nodiscard]] std::optional<std::map<uint32_t, PackageThermStatus>> getThermData(const json& input) { auto cpuSections = prepareJson(input); return getThermDataForProcessorType(cpuSections, package_therm_status_varname); } [[nodiscard]] UncAer analyzeUncAer(const json& input) { UncAer output; auto cpuSections = prepareJson(input); for (auto const& [cpu, cpuSection] : cpuSections) { uint32_t socketId; if (!str2uint(cpu.substr(3), socketId, decimal)) { continue; } auto allUncErr = parseUncErrSts(cpuSection); output.insert({socketId, allUncErr}); } return output; } [[nodiscard]] std::vector<UncAerData> parseUncErrSts(const json& input) { std::vector<UncAerData> allUncErrs; for (const auto [pciKey, pciVal] : input["uncore"].items()) { uint32_t temp; if (checkInproperValue(pciVal) || pciVal == "0x0") { continue; } // do not decode excluded registers else if (startsWith(pciKey, exclude_index_1) || startsWith(pciKey, exclude_index_2)) { continue; } else if (pciKey == unc_spec_err_index) { if (!str2uint(pciVal, temp)) { continue; } // apply a mask to fit decoding rules for this register temp = temp & unc_spec_err_mask; } else if (pciKey.find(unc_err_index) != std::string::npos) { if (!str2uint(pciVal, temp)) { continue; } // apply a mask to fit decoding rules for this registers temp = temp & unc_err_mask; } else { continue; } UncAerData uncErr; uncErr.error_status = temp; if (uncErr.error_status != 0) { uncErr.address = pciKey; allUncErrs.push_back(uncErr); } } return allUncErrs; } [[nodiscard]] CorAer analyzeCorAer(const json& input) { CorAer output; auto cpuSections = prepareJson(input); for (auto const& [cpu, cpuSection] : cpuSections) { uint32_t socketId; if (!str2uint(cpu.substr(3), socketId, decimal)) { continue; } auto allCorErr = parseCorErrSts(cpuSection); output.insert({socketId, allCorErr}); } return output; } [[nodiscard]] std::vector<CorAerData> parseCorErrSts(const json& input) { std::vector<CorAerData> allCorErrs; for (const auto [pciKey, pciVal] : input["uncore"].items()) { uint32_t temp; if (checkInproperValue(pciVal) || pciVal == "0x0") { continue; } // do not decode excluded registers else if (startsWith(pciKey, exclude_index_1) || startsWith(pciKey, exclude_index_2)) { continue; } else if (pciKey == cor_spec_err_index) { if (!str2uint(pciVal, temp)) { continue; } // apply a mask to fit decoding rules temp = temp & cor_spec_err_mask; } else if (pciKey.find(cor_err_index) != std::string::npos) { if (!str2uint(pciVal, temp)) { continue; } temp = temp & cor_err_mask; } else { continue; } CorAerData corErr; corErr.error_status = temp; if (corErr.error_status != 0) { corErr.address = pciKey; allCorErrs.push_back(corErr); } } return allCorErrs; } [[nodiscard]] MCA analyzeMca(const json& input) { MCA output; auto cpuSections = prepareJson(input); std::vector<MCAData> allMcs; for (auto const& [cpu, cpuSection] : cpuSections) { uint32_t socketId; if (!str2uint(cpu.substr(3), socketId, decimal)) { continue; } std::vector<MCAData> bigCoreMcas = parseAllBigcoreMcas(cpuSection, bigcore_mcas); std::vector<MCAData> uncoreMcas = parseUncoreMcas(cpuSection); std::vector<MCAData> coreMcas = parseCoreMcas(cpuSection); std::vector<MCAData> allMcas; allMcas.reserve(bigCoreMcas.size() + uncoreMcas.size() + coreMcas.size()); allMcas.insert(allMcas.begin(), bigCoreMcas.begin(), bigCoreMcas.end()); allMcas.insert(allMcas.begin(), uncoreMcas.begin(), uncoreMcas.end()); allMcas.insert(allMcas.begin(), coreMcas.begin(), coreMcas.end()); output.insert({socketId, allMcas}); } return output; } [[nodiscard]] std::tuple<uint32_t, uint32_t, uint32_t> divideTordumps( const json& inputData) { uint32_t tordumpParsed0, tordumpParsed1, tordumpParsed2; std::string input = inputData; while (input.length() < 26) { input.insert(2, "0"); } std::string tordump0 = input.substr(input.length() - 8, 8); std::string tordump1 = input.substr(input.length() - 16, 8); std::string tordump2 = input.substr(input.length() - 24, 8); if (!str2uint(tordump0, tordumpParsed0) || !str2uint(tordump1, tordumpParsed1) || !str2uint(tordump2, tordumpParsed2)) { return std::make_tuple(0, 0, 0); } return std::make_tuple(tordumpParsed0, tordumpParsed1, tordumpParsed2); } [[nodiscard]] std::optional<IcxTORData> parseTorData(const json& index) { if (index.find("subindex0") == index.cend()) { return {}; } if (checkInproperValue(index["subindex0"])) { return {}; } IcxTORData tor; std::tie(tor.tordump0_subindex0, tor.tordump1_subindex0, tor.tordump2_subindex0) = divideTordumps(index["subindex0"]); if (!tor.valid) { return {}; } std::tie(tor.tordump0_subindex1, tor.tordump1_subindex1, tor.tordump2_subindex1) = divideTordumps(index["subindex1"]); std::tie(tor.tordump0_subindex2, tor.tordump1_subindex2, tor.tordump2_subindex2) = divideTordumps(index["subindex2"]); std::tie(tor.tordump0_subindex3, tor.tordump1_subindex3, tor.tordump2_subindex3) = divideTordumps(index["subindex3"]); std::tie(tor.tordump0_subindex4, tor.tordump1_subindex4, tor.tordump2_subindex4) = divideTordumps(index["subindex4"]); std::tie(tor.tordump0_subindex7, tor.tordump1_subindex7, tor.tordump2_subindex7) = divideTordumps(index["subindex7"]); return tor; } [[nodiscard]] std::vector<IcxTORData> getTorsData(const json& input) { std::vector<IcxTORData> torsData; if (input.find("TOR") == input.cend()) { return torsData; } for (const auto& [chaItemKey, chaItemValue] : input["TOR"].items()) { if (!startsWith(chaItemKey, "cha")) { continue; } for (const auto& [indexDataKey, indexDataValue] : chaItemValue.items()) { std::optional<IcxTORData> tor = parseTorData(indexDataValue); if (!tor) { continue; } if (str2uint(chaItemKey.substr(3), tor->cha, decimal) && str2uint(indexDataKey.substr(5), tor->idx, decimal)) { torsData.push_back(*tor); } } } return torsData; } [[nodiscard]] IcxTOR analyze(const json& input) { IcxTOR output; auto cpuSections = prepareJson(input); for (auto const& [cpu, cpuSection] : cpuSections) { std::optional ierr = getUncoreData(cpuSection, ierr_varname); std::optional mcerr = getUncoreData(cpuSection, mcerr_varname); std::optional mcerrErrSrc = getUncoreData(cpuSection, mca_err_src_varname); std::vector<IcxTORData> tors = getTorsData(cpuSection); uint32_t socketId; if (!str2uint(cpu.substr(3), socketId, decimal)) { continue; } SocketCtx ctx; if (!ierr || !str2uint(*ierr, ctx.ierr.value)) { ctx.ierr.value = 0; } if (!mcerr || !str2uint(*mcerr, ctx.mcerr.value)) { ctx.mcerr.value = 0; } if (!mcerrErrSrc || !str2uint(*mcerrErrSrc, ctx.mcerrErr.value)) { ctx.mcerrErr.value = 0; } std::pair<SocketCtx, std::vector<IcxTORData>> tempData(ctx, tors); output.insert({socketId, tempData}); } return output; } };
a6c454163b07cf963dc7680b22d313e70a94821c
f1ae49086a9de49f84b9e828e9cd54b6f964c0d3
/ver201604template.sdk/test_sd/src/markstat/Sim/s0XfmrSim.h
17b30812112f850b097593755bf1f6a1e302c290
[]
no_license
vivozhang/zynq_zturn_template_prj
ccb43d69a782062a2e54146c31043567ba9d7876
f370466cce75f814223d0c3a0c225a7e4baf6117
refs/heads/master
2021-01-20T07:20:46.081080
2017-08-26T17:09:45
2017-08-26T17:09:45
89,991,870
0
0
null
null
null
null
UTF-8
C++
false
false
7,890
h
s0XfmrSim.h
/////////////////////////////////////////////////////////////////////////////// // // TITLE Transformer Isim class. // // DESCRIPTION // This file contains the definition for the class. // // COPYRIGHT Copyright (c) 2011 // by GENERAL ELECTRIC COMPANY U.S.A. // // DOCUMENTATION // <related file list> // /////////////////////////////////////////////////////////////////////////////// // Date Name Description // ========== =============== =============================================== // 2015-03-24 Bo Qu Initial created. // /////////////////////////////////////////////////////////////////////////////// #ifndef __S0_XFMRSIM_H__ #define __S0_XFMRSIM_H__ // Include Files //-------------- // system // core // framework // product #include "x0FrameWork.h" // product #include "Product.h" #include "b0BridgeRebf.h" // Constants //---------- // Function Prototypes //-------------------- #define SAT_CURVE 1 #define SAT_IDEAL 2 /////////////////////////////////////////////////////////////////////////////// // // DESCRIPTION // <class description> // /////////////////////////////////////////////////////////////////////////////// class cXfmrSim { //----------------------------------------------------------------------------- public: // Types and Classes //------------------ struct InTyp { const float& VaXfmrPriSim; // 1 const float& VbXfmrPriSim; // 2 const float& VcXfmrPriSim; // 1 const float& VaXfmrSecSim; // 1 const float& VbXfmrSecSim; // 2 const float& VcXfmrSecSim; // 1 const float& WElecSim; // 2 const unsigned& XfmrState; const unsigned& IsimSmplN; const unsigned& BRchg; }; struct InsTyp { const float& DelTm1; const float& XfmrRatioSim; // 1 - . const float& VxfmrPri; // 2 - xmfr primary voltage (from product) (volt) const float& LxfmrPri; // 3 - xmfr primary inductance (from product) (Henrys) const float& RxfmrPri; // 4 - xmfr primary resistance (from product) (Ohm) const float& L_VxfmrSec; // 5 - xmfr secondary line converter winding voltage (from product) (volt) const float& L_LxfmrSec; // 6 - xmfr secondary line converter winding inductance (from product) (Henrys) const float& L_RxfmrSec; // 7 - xmfr secondary line converter winding resistance (from product) (Ohm) const float& RhfXfmrPuSim; // 8 const float& RmXfmrSim; // 9 const unsigned& XfmrSatEnb; const unsigned& XfmrSatCrvType; const float& XfmrWElec; const float& XfmrKVASim; const unsigned& L_XfmrSatCurvNumSim; const float& L_XfmrSatCurvFlxK0Sim; const float& L_XfmrSatCurvFlxK1Sim; const float& L_XfmrSatCurvFlxK2Sim; const float& L_XfmrSatCurvFlxK3Sim; const float& L_XfmrSatCurvFlxK4Sim; const float& L_XfmrSatCurvFlxK5Sim; const float& L_XfmrSatCurvFlxK6Sim; const float& L_XfmrSatCurvFlxK7Sim; const float& L_XfmrSatCurvFlxK8Sim; const float& L_XfmrSatCurvFlxK9Sim; const float& L_XfmrSatCurvImagK0Sim; const float& L_XfmrSatCurvImagK1Sim; const float& L_XfmrSatCurvImagK2Sim; const float& L_XfmrSatCurvImagK3Sim; const float& L_XfmrSatCurvImagK4Sim; const float& L_XfmrSatCurvImagK5Sim; const float& L_XfmrSatCurvImagK6Sim; const float& L_XfmrSatCurvImagK7Sim; const float& L_XfmrSatCurvImagK8Sim; const float& L_XfmrSatCurvImagK9Sim; const float& L_XfmrSatThr; const float& L_XfmrSatXm; const float& L_FlxAInit; const float& L_FlxBInit; const float& L_FlxCInit; const float& L_RmagXfmrSim; }; cXfmrSim( InTyp InList, InsTyp InsList ); ~cXfmrSim(); // Methods //-------- void RunRules(); void XfmrModel(); void XfmrSatCurve(float* L_XfmrImagSim, float L_VXfmrMagSim, float* XfmrFlxSim); // Output Signals //--------------- CREATE_PUBVAR(VaXfmrPri2SecSim, float); CREATE_PUBVAR(VbXfmrPri2SecSim, float); CREATE_PUBVAR(VcXfmrPri2SecSim, float); CREATE_PUBVAR(XfmrLeakFlxASim, float); CREATE_PUBVAR(XfmrLeakFlxBSim, float); CREATE_PUBVAR(XfmrLeakFlxCSim, float); CREATE_PUBVAR(IaLeakSim, float); CREATE_PUBVAR(IbLeakSim, float); CREATE_PUBVAR(IcLeakSim, float); CREATE_PUBVAR(IaLeakRhfSim, float); CREATE_PUBVAR(IbLeakRhfSim, float); CREATE_PUBVAR(IcLeakRhfSim, float); CREATE_PUBVAR(IaXfmrLossSim, float); CREATE_PUBVAR(IbXfmrLossSim, float); CREATE_PUBVAR(IcXfmrLossSim, float); CREATE_PUBVAR(IaXfmrPri2SecSim, float); CREATE_PUBVAR(IbXfmrPri2SecSim, float); CREATE_PUBVAR(IcXfmrPri2SecSim, float); CREATE_PUBVAR(IaXfmrPriSim, float); CREATE_PUBVAR(IbXfmrPriSim, float); CREATE_PUBVAR(IcXfmrPriSim, float); CREATE_PUBVAR(LIaXfmrSecSim, float); CREATE_PUBVAR(LIbXfmrSecSim, float); CREATE_PUBVAR(LIcXfmrSecSim, float); CREATE_PUBVAR(IaXfmrMagSim, float); CREATE_PUBVAR(IbXfmrMagSim, float); CREATE_PUBVAR(IcXfmrMagSim, float); CREATE_PUBVAR(VaXfmrPriFbkSim, float); CREATE_PUBVAR(VbXfmrPriFbkSim, float); CREATE_PUBVAR(VcXfmrPriFbkSim, float); CREATE_PUBVAR(VaXfmrSecFbkSim, float); CREATE_PUBVAR(VbXfmrSecFbkSim, float); CREATE_PUBVAR(VcXfmrSecFbkSim, float); CREATE_PUBVAR(RhfXfmrSim, float); CREATE_PUBVAR(XfmrFlxASim, float); CREATE_PUBVAR(XfmrFlxBSim, float); CREATE_PUBVAR(XfmrFlxCSim, float); CREATE_PUBVAR(XfmrFlxAPuSim, float); CREATE_PUBVAR(XfmrFlxBPuSim, float); CREATE_PUBVAR(XfmrFlxCPuSim, float); CREATE_PARM(VxfmrPriSim, float); // Simulated xfmr primary voltage (Vrms) CREATE_PARM(LxfmrPriSim, float); // Simulated xfmr primary inductance CREATE_PARM(RxfmrPriSim, float); // Simulated xfmr primary resistance CREATE_PARM(LnVxfmrSecSim, float); // Simulated xfmr secondary line winding voltage (Vrms) CREATE_PARM(LnRxfmrSecSim, float); // Simulated xfmr secondary line winding resistance CREATE_PARM(LnLxfmrSecSim, float); // Simulated xfmr secondary line winding inductance CREATE_PARM(LnRxfmrPriSim, float); // Simulated xfmr primary resistance referring to line winding CREATE_PARM(LnLxfmrPriSim, float); // Simulated xfmr primary inductance referring to line winding CREATE_PARM(LnLeakSim, float); // Simulated xfmr total leakage at secondary side CREATE_PARM(XfmrFlxRat, float); CREATE_PARM(XfmrIdRat, float); // // // // Variables // //---------- //transformer variables float XfmrFlxGroup[10]; float XfmrImagGroup[10]; float XfmrRampRat[9]; //----------------------------------------------------------------------------- private: // External Inputs //---------------- InTyp In; InsTyp Ins; // Methods //-------- // Diagnostics //------------ // Parameters //----------- // Transformer // Unpublished Variables //---------------------- // Data Passing //------------- }; // Inline Function Definitions //---------------------------- #endif //
cd408f75d75232dc556a69d6ad46283bbf196651
144eff0111f9e69cb82b5e30840cab8198b0c708
/main.cpp
e414607d2f64afc0bbbf7608b6fdeb6533b386eb
[]
no_license
JSybrandt/MedlineGraphGenerator
7b41309356bd30ea9e08b35853de59d3d3e92732
e9c62b7b3eb3bbb60701b8ed584f1945c8c38bb8
refs/heads/master
2021-01-11T04:17:40.829601
2017-03-21T13:45:06
2017-03-21T13:45:06
71,192,531
0
0
null
null
null
null
UTF-8
C++
false
false
15,112
cpp
main.cpp
#include <stdio.h> #include<iostream> #include<dirent.h> #include<vector> #include<unordered_map> #include<fstream> #include<regex> #include<algorithm> #include<functional> #include<cctype> #include<locale> #include<sstream> #include <sys/wait.h> #include"omp.h" #include"Abstract.h" #include"Dict.h" #include"Vec.h" #include"Canonicalizer.h" #include "constants.h" #include<time.h> #include <flann/flann.hpp> using namespace std; // trim from start static inline std::string &ltrim(std::string &s) { s.erase(s.begin(), std::find_if(s.begin(), s.end(), std::not1(std::ptr_fun<int, int>(std::isspace)))); return s; } // trim from end static inline std::string &rtrim(std::string &s) { s.erase(std::find_if(s.rbegin(), s.rend(), std::not1(std::ptr_fun<int, int>(std::isspace))).base(), s.end()); return s; } // trim from both ends static inline std::string &trim(std::string &s) { return ltrim(rtrim(s)); } vector<string> getFilesInDir(string dirPath){ vector<string> res; DIR *dir; dirent *ent; if((dir = opendir(dirPath.c_str())) != NULL){ while((ent = readdir(dir)) != NULL){ string name = ent->d_name; if(name != "." && name != "..") res.push_back(dirPath + "/" + ent->d_name); } closedir(dir); }else{ cerr << "FAILED TO OPEN " << dirPath << endl; } return res; } //Returns PMID, AbstractText pairs //second param are all the values we already have map<string,string> parseXML(string fileName, const unordered_map<string,string>& backup){ map<string,string> pmid2abstract; regex abstractRegex(ABSTRACT_REGEX,regex_constants::ECMAScript); regex pmidRegex(PMID_REGEX,regex_constants::ECMAScript); regex titleRegex(TITLE_REGEX,regex_constants::ECMAScript); regex eorRegex(END_OF_RECORD_REGEX,regex_constants::ECMAScript); fstream fin(fileName, ios::in); string line; string lastFoundPMID = "NULL"; string lastFoundAbstract = ""; while(getline(fin,line)){ if(regex_search(line,pmidRegex)){ lastFoundPMID = regex_replace(line,pmidRegex,""); } if(regex_search(line,abstractRegex)){ lastFoundAbstract += regex_replace(line,abstractRegex,"") + " "; } if(regex_search(line,titleRegex)){ lastFoundAbstract += regex_replace(line,titleRegex,"") + " "; } if(regex_search(line,eorRegex)){ if(backup.find(lastFoundPMID) == backup.end() && lastFoundPMID != "NULL" && lastFoundAbstract != ""){ pmid2abstract[lastFoundPMID] = trim(lastFoundAbstract); } lastFoundPMID = "NULL"; lastFoundAbstract = ""; } } fin.close(); return pmid2abstract; } void outputBash(const vector<string> & tmpPmids, string output,fstream& fout, map<string,string>& tmpPmid2Abstract){ Canonicalizer canonMaker; stringstream r; r << canonMaker.getCanon(output); for(string pmid: tmpPmids){ string t; getline(r,t); fout << pmid << " " << t <<endl; tmpPmid2Abstract[pmid] = t; } } void parseMedline(unordered_map<string,string>& pmid2abstract, string dirPath, fstream& lout){ vector<string> xmlPaths = getFilesInDir(dirPath); int completeCount = 0; #pragma omp parallel for for(int i = 0 ; i < xmlPaths.size();i++){ #pragma omp critical (LOGGER) lout << "Parsing:" << xmlPaths[i] << endl; // Simple PMID, abstract map, contains new values map<string,string> tmp = parseXML(xmlPaths[i],pmid2abstract); if(tmp.size() > 1){ #pragma omp critical (LOGGER) lout << "New:" << xmlPaths[i]<<endl <<"\tFound:" << xmlPaths.size()<<endl; stringstream s; int BASH_SIZE = 25; vector<string> tmpPmids; fstream resOut(RES_FILES_DIR+"/res"+to_string(i),ios::out); for(auto&val : tmp){ s << val.second << endl; tmpPmids.push_back(val.first); if(tmpPmids.size() >= BASH_SIZE){ outputBash(tmpPmids,s.str(),resOut,tmp); s.str( std::string() ); s.clear(); tmpPmids.clear(); } } outputBash(tmpPmids,s.str(),resOut,tmp); tmpPmids.clear(); resOut.close(); #pragma omp critical (INSERT_ABSTRACT) pmid2abstract.insert(tmp.begin(),tmp.end()); } else{ #pragma omp critical (LOGGER) lout<<"Skip:" << xmlPaths[i]<<endl; } #pragma omp critical (LOGGER) { completeCount++; lout << (completeCount / (double) xmlPaths.size()) * 100 << "%" << endl; } } } void runFlann(unordered_map<string,Vec>& pmid2vec, vector<string>& pmids, string outputFilePath){ //row major order, map.size() rows and VECTOR_SIZE cols float * vecData = new float[pmid2vec.size()*VECTOR_SIZE]; cout << "VEC DATA SIZE" << (pmid2vec.size() * VECTOR_SIZE) << endl; cout << "EXPECTED DATA SIZE" << pmids.size() * VECTOR_SIZE << endl; int pmidCount = 0; for(string pmid : pmids){ for(int i = 0 ; i < VECTOR_SIZE; i++){ vecData[VECTOR_SIZE * pmidCount + i] = pmid2vec[pmid].get(i); } pmidCount++; } flann::Matrix<float> data(vecData,pmid2vec.size(),VECTOR_SIZE); flann::Index<flann::L2<float> > index(data, flann::KDTreeIndexParams(16)); index.buildIndex(); vector<vector<int> > indicies; vector<vector<float> > dists; flann::SearchParams params(128); params.cores = 0; //automatic core selection index.knnSearch(data, indicies, dists, 1000, params); fstream fout(outputFilePath,ios::out); for(int currIndex = 0; currIndex < indicies.size(); ++currIndex){ string pmid = pmids[currIndex]; for(int nIndex = 0; nIndex < indicies[currIndex].size(); ++nIndex){ int neighborID = indicies[currIndex][nIndex]; string nPMID = pmids[neighborID]; float pairDist = dists[currIndex][nIndex]; fout<<pmid << " " << nPMID << " " <<pairDist<< endl; } } fout.close(); delete[] vecData; } void loadOldCanon(unordered_map<string,string>& pmid2canon){ vector<string> xmlPaths = getFilesInDir(BACKUP_FILES_DIR); #pragma omp parallel for for(int i = 0 ; i < xmlPaths.size();i++){ unordered_map<string,string> tmpMap; fstream res(xmlPaths[i].c_str(), ios::in); string line; while(getline(res,line)){ stringstream s; s << line; string pmid; s >> pmid; string data = s.str(); tmpMap[pmid] = data; } #pragma omp critical (LOAD_CANON_LOCK) pmid2canon.insert(tmpMap.begin(),tmpMap.end()); res.close(); } } //This function is going to take the information stored in CANON_FILE //and use ToPMine to generate the TOPMINE_OUT_FILE. This second file is a comma //seperated list of keywords. We will convert this back into a version FastText can read, //creating CANON_POT_TOPMINE_FILE. void runToPMine(const vector<string>& pmids, fstream& lout){ lout << "Running ToPMine"<<endl; //actaully run topmine FILE* stdOut = popen(TOPMINE_COMMAND.c_str(), "r"); int bufSize = 20; char buffer[bufSize]; while(fgets(buffer,bufSize, stdOut)){ for(char* p = buffer; *p; p++){ lout << *p; } } fclose(stdOut); lout << "Converting TOPMINE_OUT to readable canon file" << endl; //at this point, data has moved from CANON_FILE to TOPMINE_OUT_FILE fstream topmineIn(TOPMINE_OUT_FILE.c_str(), ios::in); fstream postCanonOut(CANON_POST_TOPMINE_FILE.c_str(), ios::out); string line; string phrase; string word; bool firstWordInPhrase = true; while(getline(topmineIn,line)){ stringstream lineStream; lineStream << line; while(getline(lineStream, phrase, ',')){ stringstream phraseStream; phraseStream << phrase; firstWordInPhrase = true; while(phraseStream >> word){ if(!firstWordInPhrase){ postCanonOut<<"_"; } firstWordInPhrase = false; postCanonOut << word; } postCanonOut << " "; } postCanonOut << endl; } topmineIn.close(); postCanonOut.close(); //canon is not in CANON_POST_TOPMINE_FILE lout << "Finished ToPMine. Converted canon now in " << CANON_POST_TOPMINE_FILE << endl; } void makeResultsDirs(){ system(("mkdir -p " + MEDLINE_XML_DIR).c_str()); system(("mkdir -p " + RESULTS_DIR).c_str()); system(("mkdir -p " + RES_FILES_DIR).c_str()); system(("mkdir -p " + BACKUP_FILES_DIR).c_str()); system(("mkdir -p " + ABSTRACT_VECTOR_DIR).c_str()); } void catchChild(int sigNum){ /* when we get here, we know there's a zombie child waiting */ int child_status; wait(&child_status); } int main(int argc, char** argv) { time_t startTime = time(0); const int EXPECTED_SIZE = 30000000; signal(SIGCHLD, catchChild); fstream lout(LOG_FILE,ios::out); lout<<"Started"<<endl; lout<<"Making Directories"<<endl; makeResultsDirs(); lout<<"Initializing maps" <<endl; unordered_map<string,string> pmid2abstract(EXPECTED_SIZE); unordered_map<string,Vec> pmid2vec(EXPECTED_SIZE); vector<string> pmids(EXPECTED_SIZE); //if abstract - vec file doesn't exist if(!ifstream(LOAD_ABSTRACT_VECTOR_FILE.c_str())){ //if canon file doesn't exist if(!ifstream(CANON_FILE.c_str())){ lout<<"Recovering Lost Data"<<endl; loadOldCanon(pmid2abstract); lout<<"Recovered "<< pmid2abstract.size() << " old records" << endl; lout<<"Parsing MEDLINE XML"<<endl; parseMedline(pmid2abstract,MEDLINE_XML_DIR,lout); lout<<"Found " << pmid2abstract.size() << " total abstracts"<<endl; //save canon in order fstream canonOut(CANON_FILE,ios::out); fstream pmidOut(CANON_PMID_ORDER_FILE,ios::out); for(auto val : pmid2abstract){ canonOut << val.second<<endl; pmidOut << val.first << endl; pmids.push_back(val.first); } canonOut.close(); pmidOut.close(); }else{ lout << "Skipping canonicalizing"<< endl; /* lout << "Recovering PMIDS"<< endl; fstream pmidIn(CANON_PMID_ORDER_FILE,ios::in); string tmp; while(pmidIn >> tmp) pmids.push_back(tmp); pmidIn.close(); lout << "Recovered " << pmids.size() << " pmids"<<endl; */ } //If we have not sent the canon through TOPMINE if(!ifstream(CANON_POST_TOPMINE_FILE.c_str())){ runToPMine(pmids, lout); }else{ pmids.clear(); lout<< "skiping topmine"<<endl; long long index = 1; fstream canonIn(CANON_POST_TOPMINE_FILE.c_str(),ios::in); string line; while(getline(canonIn, line)){ string id = "i" + to_string(index); pmids.push_back(id); pmid2abstract[id] = line; index++; } canonIn.close(); lout << "Loaded canon post topmine"<<endl; lout << "Loaded " << pmid2abstract.size() << " abstracts" << endl; } //if vector file doesnt exist (this is word - vec file) if(!ifstream(VECTOR_FILE.c_str())){ lout<<"Training Fast Text"<<endl; lout<<"Running " << FASTTEXT_COMMAND << endl; system(FASTTEXT_COMMAND.c_str()); }else{ lout<<"Skipping training with fasttext"<<endl; } lout<<"Building Dict"<<endl; lout<<"Time:"<<difftime(time(0), startTime)<<endl; Dict dict(VECTOR_FILE); lout << "Loaded " << dict.size() << " words"<<endl; lout<<"Time:"<<difftime(time(0), startTime)<<endl; lout<<"Getting vectors per abstract"<<endl; #pragma omp parallel for for(int i = 0 ; i < pmids.size();i++){ string pmid = pmids[i]; string canon = pmid2abstract[pmid]; vector<Vec> wordVecs; stringstream s; string word; s << canon; while(s >> word){ if(dict.contains(word)) wordVecs.push_back(dict.getVec(word)); } Vec vec; for (Vec& v : wordVecs) { vec += v; } if(wordVecs.size() > 0) vec /= (float)wordVecs.size(); #pragma omp critical (SET_PMID_VEC) if(wordVecs.size() > 0) pmid2vec[pmid] = vec; } lout <<"Got Vectors per Abstract" << endl; lout<<"Time:"<<difftime(time(0), startTime) << endl; lout << "Saving Vecs" << endl; #pragma omp parallel { string outFile = ABSTRACT_VECTOR_DIR + "/absVec" + to_string(omp_get_thread_num()); ofstream vecsFile(outFile.c_str()); #pragma omp for for(int i = 0 ; i < pmids.size(); i++){ string pmid = pmids[i]; if(pmid2vec.find(pmid)!=pmid2vec.end()) vecsFile << pmid << " " << pmid2vec[pmid].toString() << endl; } vecsFile.close(); } fstream lvfOut(LOAD_ABSTRACT_VECTOR_FILE.c_str(),ios::out); lvfOut << "SAVED " << pmids.size() << " vectors"<<endl; lvfOut.close(); lout<<"Time:"<<difftime(time(0), startTime) << endl; } else { lout << "Loading vecs" << endl; //loading saved vecs vector<string> backupFiles = getFilesInDir(ABSTRACT_VECTOR_DIR); #pragma omp parallel for for(int i = 0 ; i < backupFiles.size(); i++){ string path = backupFiles[i]; unordered_map<string,Vec> tempMap; ifstream pmidVecFile(path.c_str()); string line; while(getline(pmidVecFile,line)){ string pmid; float tmp; vector<float> vecData; stringstream s; s << line; s >> pmid; while(s >> tmp) vecData.push_back(tmp); tempMap[pmid] = Vec(vecData); } pmidVecFile.close(); #pragma omp critical (VEC_BACKUP) pmid2vec.insert(tempMap.begin(), tempMap.end()); } for(auto val : pmid2vec){ pmids.push_back(val.first); } lout << "Loaded " << pmid2vec.size() << " pmid vectors"<<endl; } if(!ifstream(OUTPUT_FILE.c_str())){ lout<<"Running FLANN"<<endl; lout<<"Time:"<<difftime(time(0), startTime) << endl; pmids.clear(); for(auto pair : pmid2vec) pmids.push_back(pair.first); runFlann(pmid2vec,pmids, OUTPUT_FILE); }else{ lout << "SKIPPING FLANN" << endl; } lout << "DONE!" << endl; lout<<"Time:"<<difftime(time(0), startTime) << endl; lout.close(); return 0; }
e90c9b2fab233c30abbfc9e1c28d24e65bf860c6
2bd5312ac39cd8f0945714bef78c539a5667e236
/Ecriture_Fichier/individu.h
77cba03021c7b07dee97e9d5c339d6983a8fd057
[]
no_license
ArnaudSchmidt/CPP_Ecriture_Fichier_ArnaudSchmidt
b7c9cd8aa9904987d2e13193dfd37488f6764b65
35fe0e67fd97b8af31373e516ef2dbbd94eaa77a
refs/heads/master
2020-04-10T02:42:13.541985
2018-03-07T15:31:35
2018-03-07T15:31:35
124,256,391
0
0
null
null
null
null
UTF-8
C++
false
false
540
h
individu.h
#pragma once #include <iostream> #include <stdlib.h> #include <string> using namespace std; class individu { string NumeroSecuriteSociale; string Nom; string Prenom; int JourNaissance; int MoisNaissance; int AnneeNaissance; string Profession; public: individu( string nNSS, string nNom, string nPre, int nJN, int nMN, int nAN, string nPro); string getnom() const; string getprenom() const; string getnumsecsoc() const; string getdateanniv() const; string getprof() const; void setprof(string newProf); ~individu(); };
d6289e8af2e71524a4ac41894c6b78b7945e4606
044f022c5ab9ca181d462991142068e6d1e24fde
/Classes/BackgroundLayer.h
ea7358f0a7fae7f03cbe764adb7ea24c3ec65cb6
[]
no_license
thieuhuyenuit88/DemoCocos2dxGluzzerGame
c81d0a65ecddedab423c2c7f33b24f986d226c05
278018c69dbc54f6717d9a427e06205dfac8b9b5
refs/heads/master
2021-01-20T06:14:45.892061
2017-03-05T05:17:16
2017-03-05T05:17:16
83,867,618
0
0
null
null
null
null
UTF-8
C++
false
false
648
h
BackgroundLayer.h
#pragma once #include "cocos2d.h" #include "CCloud.h" USING_NS_CC; class BackgroundLayer: public LayerColor { private: /*Sprite* cloud1; Sprite* cloud2; Sprite* cloud3; Sprite* tree; Sprite* lamp;*/ Vector<CCloud*> clouds; CCloud* AddCloud(const float speed, const Vec2 position, const int zIndex, char* fileName); void StartClouds(); void StopClouds(); void CreateClouds(); public: BackgroundLayer(void); virtual ~BackgroundLayer(void); virtual bool init(); CREATE_FUNC(BackgroundLayer); virtual void onEnter(); void draw(Renderer *renderer, const Mat4 &transform, uint32_t flags); void SetColorBG(Color4B color); };
a877f212fae380560bee0f4bb08a5b8391cd1be4
f6e48f312ea09d2ac67e549192acedbd42bf0e72
/Q6/delete all value n in a linked list.cpp
8d04c95decc098661b55b8abefe587fdfda733e7
[]
no_license
ekanshbari/dataStructure
f96fafe0f9ea77e0e9d80253fb2a4d19aa471192
63dcef55da738105aa3fac84108f4384a21a6f4c
refs/heads/master
2020-12-12T04:18:40.626348
2020-01-29T18:11:47
2020-01-29T18:11:47
234,040,222
0
0
null
null
null
null
UTF-8
C++
false
false
1,166
cpp
delete all value n in a linked list.cpp
#include<iostream> using namespace std; struct node{ int info; node *link; }; node *start=NULL; //insert void insertAtEnd(int item){ node *n1=new node; n1->info=item; n1->link=NULL; node *ptr=start; if(start==NULL) { start=n1; } else { while(ptr->link!=NULL) { ptr=ptr->link; } ptr->link=n1; } } //traverse linked list void traverse() { node *ptr=start; while(ptr!=NULL) { cout<<ptr->info<<" "; ptr=ptr->link; } } //delete at position n void deleteAtLoc(int item) { node *ptr=start,*prev=NULL; while(ptr!= NULL) { if(ptr->info==item) { if(prev==NULL) { start=ptr->link; } prev->link=ptr->link; } prev=ptr; ptr=ptr->link; } } int main() { int n; insertAtEnd(1); insertAtEnd(2); insertAtEnd(3); insertAtEnd(2); insertAtEnd(4); insertAtEnd(9); insertAtEnd(7); insertAtEnd(2); traverse(); cout<<endl; cout<<"Enter the Element you want to delete : "; cin>>n; deleteAtLoc(n); traverse(); }
d99c8a2fcc63874a636da1140139e3d11914ca49
d3718ed294473a07c1ccf38710a057e4a7af830a
/server/src/yolo_detector.hpp
4e1017f3d8119ac5992af852e8151934e7c17d20
[ "MIT" ]
permissive
vfbsilva/darknet_server-1
ff98783a4deb2f3df732254be5972df7063e772e
adb94237804e62bcccbbe5f7810da60640aef1d9
refs/heads/master
2022-07-09T03:14:43.862113
2020-05-20T01:23:28
2020-05-20T01:23:28
299,956,122
1
0
MIT
2020-09-30T15:00:05
2020-09-30T15:00:04
null
UTF-8
C++
false
false
675
hpp
yolo_detector.hpp
#ifndef __YOLO_DETECTOR_H #define __YOLO_DETECTOR_H #include <vector> #include <string> #include <opencv2/opencv.hpp> #include "yolo_v2_class.hpp" #include "DetectorInterface.hpp" class YoloDetector : public Detector, public DetectorInterface { private: std::vector<bbox_t> det_vec; std::vector<std::string> obj_names; public: YoloDetector(const char* cfg_path, const char* weight_path, const char* names_path, int gpu_id); ~YoloDetector(); virtual void detect(cv::Mat mat, float thresh); virtual void draw(cv::Mat mat); std::vector<std::string> objects_names_from_file(std::string const filename); virtual std::string det_to_json(int frame_id); }; #endif
a5f25be1d2ea1e397de6e0981c3fd2c0bd4b9ab0
bb06974ef3f761e258218fc2bcb013a157a0d20b
/src/lola/iface/tools/pose_msg_server/main.cpp
d7b7ba68f5c9db861db8048d1f5e09b1d1d883c8
[ "MIT" ]
permissive
am-lola/lepp3
54de97d95b11e9e0f8b94911da1a1f3c41e90694
7f92ce61bccad984e18ce86da0d8a1b9c48feb65
refs/heads/master
2021-06-26T18:59:13.409375
2020-11-01T17:52:22
2020-11-01T17:52:22
40,123,747
7
4
null
null
null
null
UTF-8
C++
false
false
6,418
cpp
main.cpp
#include<sockets_common.hpp> #ifndef _WIN32 #include <ifaddrs.h> #else #include <iphlpapi.h> #endif #include <sys/types.h> #include <algorithm> #include <string> #include <vector> #include <iostream> #include <thread> #include <chrono> #include <tclap/CmdLine.h> // contains defintions for HR_Pose, HR_Pose_Red, etc #include <iface_vis.h> /** * A tool for testing network communication between LEPP and other components * * This UDP server will broadcast POSE data on the given port. * * **/ // maximum # of bytes to receive at once #define BUFLEN 2048 unsigned long SockAddrToUint32(struct sockaddr* a) { return ((a)&&(a->sa_family == AF_INET)) ? ntohl(((struct sockaddr_in *)a)->sin_addr.s_addr) : 0; } struct ParsedParams { unsigned int port = 0; // port to listen on bool verbose = false; }; bool parse_args(int argc, char* argv[], ParsedParams* params) { try { TCLAP::CmdLine cmd("Pose Data Server", ' ', "0.4"); TCLAP::ValueArg<unsigned int> portArg("p","port","Port to send data on",true,0,"unsigned int"); cmd.add( portArg ); TCLAP::SwitchArg verboseSwitch("v","verbose","Verbose output", cmd, false); // Parse the argv array. cmd.parse( argc, argv ); // Get the value parsed by each arg. params->port = portArg.getValue(); params->verbose = verboseSwitch.getValue(); } catch (TCLAP::ArgException &e) // catch any exceptions { std::cerr << "error: " << e.error() << " for arg " << e.argId() << std::endl; return false; } return true; } void failWithError(std::string s) { std::perror(s.c_str()); exit(1); } socklen_t init_socket(unsigned int port, bool verbose) { struct sockaddr_in si_me; socklen_t s; #ifdef _WIN32 char broadcast = 1; char reuseport = 1; #else int broadcast = 1; int reuseport = 1; #endif // create & bind socket if ((s=socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP))==-1) failWithError("creating socket failed!"); if (setsockopt(s, SOL_SOCKET, SO_BROADCAST, &broadcast, sizeof(broadcast))!= 0) failWithError("Setting broadcast flag on socket failed!"); if (setsockopt(s, SOL_SOCKET, SO_REUSEADDR, &reuseport, sizeof(reuseport))!= 0) failWithError("Setting Reuse Addr flag on socket failed!"); si_me.sin_family = AF_INET; si_me.sin_port = htons(port); si_me.sin_addr.s_addr = htonl(INADDR_ANY); // if (bind(s, (sockaddr*)&si_me, sizeof(si_me))==-1) // failWithError("binding socket failed!"); return s; } void send_pose_data(socklen_t s, unsigned int port, bool verbose) { struct sockaddr_in si_other; struct ifaddrs* ifap; #ifdef _WIN32 PIP_ADAPTER_ADDRESSES pAddresses = NULL; ULONG outBufLen = 0; auto res = GetAdaptersAddresses(AF_INET, GAA_FLAG_INCLUDE_PREFIX, NULL, pAddresses, &outBufLen); if (res == ERROR_BUFFER_OVERFLOW) { free(pAddresses); pAddresses = (IP_ADAPTER_ADDRESSES*)malloc(outBufLen); res = GetAdaptersAddresses(AF_INET, GAA_FLAG_INCLUDE_PREFIX, NULL, pAddresses, &outBufLen); } if (res != NO_ERROR) { std::cout << "ERROR: Could not enumerate network interfaces. Will only broadcast on the default interface." << std::endl; pAddresses = NULL; } #else if (getifaddrs(&ifap) != 0) { std::cout << "ERROR: Could not enumerate network interfaces. Will only broadcast on the default interface." << std::endl; ifap = NULL; } #endif si_other.sin_family = AF_INET; si_other.sin_port = htons(port); si_other.sin_addr.s_addr = htonl(INADDR_BROADCAST); // fake neutral pose (?) HR_Pose_Red pose; pose.version = 1; pose.tick_counter = 1; pose.stance = 0; pose.stamp = 1; pose.t_wr_cl[0] = 0; pose.t_wr_cl[1] = 0; pose.t_wr_cl[2] = 1.78; pose.R_wr_cl[0] = 0; pose.R_wr_cl[1] = -1; pose.R_wr_cl[2] = 0; pose.R_wr_cl[3] = -0.836; pose.R_wr_cl[4] = -0.032; pose.R_wr_cl[5] = -0.548; pose.R_wr_cl[6] = 0.548; pose.R_wr_cl[7] = 0.036; pose.R_wr_cl[8] = -0.837; pose.t_stance_odo[0] = 0; pose.t_stance_odo[1] = 0; pose.t_stance_odo[2] = 0; pose.phi_z_odo = 0; while (1) { ssize_t sent = 0; #ifdef _WIN32 if (pAddresses == NULL) #else if (ifap == NULL) #endif { if ((sent = sendto(s, (char*)&pose, sizeof(pose), 0, (struct sockaddr*)&si_other, sizeof(si_other))) < 0) failWithError("Failed to send pose data!"); } else { #ifdef _WIN32 PIP_ADAPTER_ADDRESSES currAddress = pAddresses; while (currAddress != NULL) { std::wcout << "sending on interface: " << currAddress->Description << std::endl; // AdapterName << std::endl; si_other.sin_addr = ((sockaddr_in*)(currAddress->FirstUnicastAddress->Address.lpSockaddr))->sin_addr; if ((sent = sendto(s, (char*)&pose, sizeof(pose), 0, (struct sockaddr*)&si_other, sizeof(si_other))) < 0) failWithError("Failed to send pose data!"); currAddress = currAddress->Next; } #else struct ifaddrs* iface = ifap; while (iface) { if (SockAddrToUint32(iface->ifa_addr) > 0) { std::cout << "sending on interface: " << iface->ifa_name << std::endl; si_other.sin_addr = ((sockaddr_in*)(iface->ifa_dstaddr))->sin_addr; if ((sent = sendto(s, (char*)&pose, sizeof(pose), 0, (struct sockaddr*)&si_other, sizeof(si_other))) < 0) failWithError("Failed to send pose data!"); } iface = iface->ifa_next; } #endif } std::cout << "Sent one HR_Pose_Red (" << sent << " bytes)" << std::endl; std::this_thread::sleep_for(std::chrono::milliseconds(50)); } } int main(int argc, char* argv[]) { ParsedParams params; if (!parse_args(argc, argv, &params)) { return 0; } #ifdef _WIN32 // must init WinSock before using sockets on Windows WSADATA wsaData = { 0 }; int res = WSAStartup(MAKEWORD(2, 2), &wsaData); if (res != 0) { std::cerr << "Could not init Winsock!" << std::endl; LogWSAErrorStr(res); return -1; } #endif socklen_t sock = init_socket(params.port, params.verbose); std::cout << "Socket opened, broadcasting on port " << params.port << "..." << std::endl; send_pose_data(sock, params.port, params.verbose); socket_close(sock); #ifdef _WIN32 if (WSACleanup() != 0) failWithError("Failed to shut down Winsock cleanly"); #endif return 0; }
de9b7b790411ef20298a71141d16199fc8320a77
7d42bca9037603086dc3f4fc4d97c17b96be8022
/src/FixBST.cpp
de52b90cbf3dbaaf1bb1113be73a5e57b6ee5d86
[]
no_license
Bhavishya9/MissionRnD-C-BinarySearchTree-Worksheet
69b00e4a6d622b0ff6e94d1c15239ab4171e934c
1b566a72c26847f5c09058d52f3400beb218d282
refs/heads/master
2021-01-13T00:59:02.631947
2016-04-02T12:37:23
2016-04-02T12:37:23
54,687,446
0
0
null
null
null
null
UTF-8
C++
false
false
1,406
cpp
FixBST.cpp
/* Given a Binary Search Tree ,with two misplaced Node .Find those nodes and fix them . Do not create a new tree ,Modify the original tree Ex : In the below tree 3 and 30 is misplaced . 5 / \ 2 3 \ 30 When fixed 30 will be right node of 5 , and 3 will be right node of 2 . Ex :In the below tree 1 and 20 are misplaced 9 / \ 4 1 / \ 20 30 Nodes 1 and 20 need to be fixed here . */ #include <stdio.h> #include <stdlib.h> struct node{ struct node * left; int data; struct node *right; }; struct node *left_part(struct node *root, int rootdata) { static struct node *temp = NULL; if (root == NULL) return temp; if (root->data > rootdata) temp = root; left_part(root->left, rootdata); left_part(root->right, rootdata); return temp; } struct node *right_part(struct node *root, int rootdata) { static struct node *temp1 = NULL; if (root == NULL) return temp1; if (root->data < rootdata) temp1=root; right_part(root->left, rootdata); right_part(root->right, rootdata); return temp1; } void fix_bst(struct node *root){ if (root != NULL) { struct node *left_sub_tree; struct node *right_sub_tree; left_sub_tree = left_part(root->left, root->data); right_sub_tree = right_part(root->right, root->data); int temp = left_sub_tree->data; left_sub_tree->data = right_sub_tree->data; right_sub_tree->data = temp; } }
fb3c6479611214b3aa4fc9e53aee9e44661d5fe7
3035a858d4acaeeff1b64ed6fbfaa027873a87b3
/Count of Smaller Numbers After Self_470747204.cpp
4a88c3517658c26d16f7b1f153841b6aeacd4f4a
[]
no_license
mandeepmourya007/leetcode
7de8097d001cb5385cbb5c6842ce74624559cf90
0d3f28459d7053dbb5ff301df11d45eb663f3127
refs/heads/main
2023-07-12T22:46:00.704813
2021-08-28T12:37:48
2021-08-28T12:37:48
378,700,727
0
0
null
null
null
null
UTF-8
C++
false
false
1,450
cpp
Count of Smaller Numbers After Self_470747204.cpp
class Solution { public: void merge(vector<pair<int,int>> &nums,int l,int m,int r,vector<int > &c) { vector< pair<int,int> > temp(r-l+1); int i=l; int j=m+1; int k=0; while(i<=m && j<=r) { if(nums[i].first<=nums[j].first) { c[nums[i].second]+=j-m-1; temp[k++]=nums[i++]; } else { temp[k++]=nums[j++]; } } while(i<=m) { c[nums[i].second]+=r-m; temp[k++]=nums[i++]; } while(j<=r) temp[k++]=nums[j++] ; k=0; for(int i=l;i<=r;i++) nums[i]=temp[k++]; } void mergeSort(vector<pair<int,int>> &nums,int l,int r,vector<int> &c) { if(l<r) { int m=(l+r)/2; mergeSort(nums,l,m,c); mergeSort(nums,m+1,r,c); merge(nums,l,m,r,c); } } vector<int> countSmaller(vector<int>& nums) { int n=nums.size(); vector<int> ans(n,0); vector<pair<int,int>> v; for(int i=0;i<n;i++) v.push_back({nums[i],i}); mergeSort(v,0,n-1,ans); for(auto a: v) cout<<a.first<<" "; return ans; } };
b76c8b0a91222c57d2710a7936f06ecf9361e8c2
68fac5700813376b3dbb3fb7a105d696256a3532
/uberstealthRemote/RemoteStealthServer.cpp
4a033eee59656bd8cf381645e4758d33b6f09d49
[]
no_license
nihilus/uberstealth
b0a970ed7da6f6641e547f3d1ec16abff3701e39
ad6576ae582d5345707dfded35d4aeaa87475779
refs/heads/master
2016-09-06T14:46:19.223149
2014-09-14T00:15:34
2014-09-14T00:15:34
23,511,166
15
6
null
null
null
null
UTF-8
C++
false
false
2,477
cpp
RemoteStealthServer.cpp
#include <boost/filesystem.hpp> #pragma warning(disable : 4244 4512) #include <boost/thread.hpp> #pragma warning(default : 4244 4512) #include <boost/bind.hpp> #include <boost/smart_ptr.hpp> #include "RemoteStealthServer.h" #include "RemoteStealthSession.h" #include "TemporaryConfigFile.h" uberstealth::RemoteStealthServer::RemoteStealthServer(boost::asio::io_service& ioService, unsigned short port) : acceptor_(ioService, boost::asio::ip::tcp::endpoint(boost::asio::ip::tcp::v4(), port)), ioService_(ioService) {} void uberstealth::RemoteStealthServer::run() { for (;;) { boost::shared_ptr<RemoteStealthConnection> connection = boost::make_shared<RemoteStealthConnection>(boost::ref(ioService_)); acceptor_.accept(connection->socket()); std::cout << "Accepted connection from " << connection->socket().remote_endpoint().address() << std::endl; boost::thread t(boost::bind(&RemoteStealthServer::session, this, connection)); } } void uberstealth::RemoteStealthServer::session(boost::shared_ptr<RemoteStealthConnection> connection) { try { boost::shared_ptr<RemoteStealthSession> stealthSession; boost::shared_ptr<TemporaryConfigFile> configFile; for (;;) { RSProtocolItem item; connection->syncRead(item); try { switch (item.procEvent) { case ProcessStart: std::cout << "process start: process ID = " << item.processID << ", base addr = 0x" << std::hex << item.baseAddress << std::endl; configFile = boost::make_shared<TemporaryConfigFile>(item.serializedConfigFile); stealthSession = boost::make_shared<RemoteStealthSession>(configFile->getFileName()); stealthSession->handleProcessStart(item.processID, item.baseAddress); break; case ProcessAttach: configFile = boost::make_shared<TemporaryConfigFile>(item.serializedConfigFile); stealthSession = boost::make_shared<RemoteStealthSession>(configFile->getFileName()); stealthSession->handleDbgAttach(item.processID); break; case ProcessExit: stealthSession->handleProcessExit(); break; } } catch (std::exception& e) { std::cerr << "Error while handling protocol item: " << e.what() << std::endl; connection->syncWrite(RSProtocolResponse(false, e.what())); return; } connection->syncWrite(RSProtocolResponse(true, "")); if (item.procEvent == ProcessExit) return; } } catch (const std::exception& e) { std::cerr << "Error while handling connection: " << e.what() << std::endl; } }
54b0bbcd41e285d9324f177e0befb3b1c9ca3dcc
429746edaa3f2bb1ef5459c0b6bbb597c2c4fdc7
/ARX/LineManageExtension/main/source/ARX/ArxWrapper.cpp
255a3d279b7f845979b02f65686ec41c36e3edeb
[]
no_license
qz0222/autocad
6b67b77bc79413cbb8d48512cee0aff208eb7cbf
1faa2ce070123dfcfa8997188e4f8615fd63eaab
refs/heads/master
2021-09-03T11:31:42.995220
2018-01-08T18:45:35
2018-01-08T18:45:35
106,327,346
2
2
null
null
null
null
GB18030
C++
false
false
29,380
cpp
ArxWrapper.cpp
#include <ArxWrapper.h> #include <GlobalDataConfig.h> #include <LineCategoryItemData.h> #include <LineConfigDataManager.h> #include <LineEntryData.h> #include "acedads.h" #include "accmd.h" #include <adscodes.h> #include <adsdlg.h> #include <dbapserv.h> #include <dbregion.h> #include <gepnt3d.h> //symbol table #include <dbsymtb.h> //3D Object #include <dbsol3d.h> // Hatch #include <dbhatch.h> // Leader #include <dblead.h> #include <dbmleader.h> // Custom object #include <ArxCustomObject.h> #include <LMAException.h> #include <LMAUtils.h> void TestHatch(); void TestText(); void TestLeader(); void TestMLeader(); using namespace com::guch::assistant::arx; using namespace com::guch::assistant::data; using namespace com::guch::assistant::config; using namespace com::guch::assistant::exception; const double ArxWrapper::kPi = 3.14159265358979323846; const double ArxWrapper::kHalfPi = 3.14159265358979323846 / 2.0; const double ArxWrapper::kTwoPi = 3.14159265358979323846 * 2.0; const double ArxWrapper::kRad45 = 3.14159265358979323846 / 4.0; const double ArxWrapper::kRad90 = 3.14159265358979323846 / 2.0; const double ArxWrapper::kRad135 = (3.14159265358979323846 * 3.0) / 4.0; const double ArxWrapper::kRad180 = 3.14159265358979323846; const double ArxWrapper::kRad270 = 3.14159265358979323846 * 1.5; const double ArxWrapper::kRad360 = 3.14159265358979323846 * 2.0; /** * 将对象放置在命名词典中 **/ AcDbObjectId ArxWrapper::PostToNameObjectsDict(AcDbObject* pObj,const wstring& key, bool toDelete ) { AcDbObjectId id; try { AcDbDictionary *pNamedobj; acdbHostApplicationServices()->workingDatabase()-> getNamedObjectsDictionary(pNamedobj, AcDb::kForWrite); // Check to see if the dictionary we want to create is // already present. If not, create it and add // it to the named object dictionary. // AcDbDictionary *pDict; if (pNamedobj->getAt(key.c_str(), (AcDbObject*&) pDict, AcDb::kForWrite) == Acad::eKeyNotFound) { pDict = new AcDbDictionary; AcDbObjectId DictId; pNamedobj->setAt(key.c_str(), pDict, DictId); } pNamedobj->close(); if (pDict) { // New objects to add to the new dictionary, then close them. LineEntry* pLineEntry = LineEntry::cast(pObj); if( pLineEntry ) { if( toDelete ) { acutPrintf(L"\n从命名词典删除管线【%s】",pLineEntry->m_LineName.c_str()); //首先关闭对象,为了下面以可写方式打开,进行删除 pLineEntry->close(); //以可写方式打开 AcDbObject* pObjToDel = NULL; Acad::ErrorStatus es = pDict->getAt(pLineEntry->m_LineName.c_str(),pObjToDel,AcDb::kForWrite); if( es == Acad::eOk ) { //对象自身的erased flag被设置,这样在保存的时候会被过滤掉 //奇怪的是对象自身设置标志位后,并没有通知数据库(文件)更新,也就没有保存 Acad::ErrorStatus es = pObjToDel->erase(); pObjToDel->close(); if (es != Acad::eOk) { acutPrintf(L"\n删除失败!"); rxErrorMsg(es); } //从命名字典中删除关键字 pDict->remove(pLineEntry->m_LineName.c_str()); } else { acutPrintf(L"\n打开被删除的对象失败了!"); rxErrorMsg(es); } } else { acutPrintf(L"\n添加管线【%s】到命名词典",pLineEntry->m_LineName.c_str()); Acad::ErrorStatus es = pDict->setAt(pLineEntry->m_LineName.c_str(), pObj, id); if (es != Acad::eOk) { acutPrintf(L"\n添加失败!"); rxErrorMsg(es); } //pObj->close(); } } pDict->close(); } } catch(const Acad::ErrorStatus es) { acutPrintf(L"\n操作词典发生异常!"); rxErrorMsg(es); } return id; } /** /** * 将对象放置从命名词典中读出来 **/ void ArxWrapper::PullFromNameObjectsDict() { AcDbDictionaryPointer pNamedobj; // use a smart pointer to access the objects, the destructor will close them automatically pNamedobj.open(acdbHostApplicationServices()->workingDatabase()->namedObjectsDictionaryId(), AcDb::kForRead); // if ok if (pNamedobj.openStatus() == Acad::eOk) { AcDbObjectId dictId; // get at the dictionary entry itself Acad::ErrorStatus es = pNamedobj->getAt(LineEntry::LINE_ENTRY_LAYER.c_str(), dictId); // if ok if (es == Acad::eOk) { // now open it for read AcDbDictionaryPointer pDict(dictId, AcDb::kForRead); // if ok if (pDict.openStatus() == Acad::eOk) { // Get an iterator for the ASDK_DICT dictionary. AcDbDictionaryIterator* pDictIter= pDict->newIterator(); LineEntry *pLineEntry = NULL; for (; !pDictIter->done(); pDictIter->next()) { // Get the current record, open it for read, and es = pDictIter->getObject((AcDbObject*&)pLineEntry, AcDb::kForRead); // if ok if (es == Acad::eOk) { pLineEntry->close(); } } delete pDictIter; } // no need to close the dicts as we used smart pointers } } } /** * 将对象放置在模型空间中的某一层上 **/ AcDbObjectId ArxWrapper::PostToModelSpace(AcDbEntity* pEnt,const wstring& layerName ) { AcDbObjectId entId; Acad::ErrorStatus es; if( !pEnt ) return 0; #ifdef DEBUG acutPrintf(L"\n加入实体【%p】到图层【%s】",pEnt,layerName.c_str()); #endif AcDbBlockTable *pBlockTable(NULL); AcDbBlockTableRecord *pBlockTableRecord(NULL); try { //打开块表数据库 es = acdbHostApplicationServices()->workingDatabase()->getBlockTable(pBlockTable, AcDb::kForWrite); if( es != Acad::eOk ) throw ErrorException(L"打开块表记录失败"); //得到模型空间 es = pBlockTable->getAt(ACDB_MODEL_SPACE, pBlockTableRecord, AcDb::kForWrite); if( es != Acad::eOk ) throw ErrorException(L"打开模块空间记录失败"); //加入实体 es = pBlockTableRecord->appendAcDbEntity(entId, pEnt); if( es != Acad::eOk ) throw ErrorException(L"添加实体记录失败"); es = pEnt->setLayer(layerName.c_str()); if( es != Acad::eOk ) throw ErrorException(L"设置实体所在的图层失败"); //关闭实体 //pEnt->close(); } catch(const Acad::ErrorStatus es) { acutPrintf(L"\n操作数据库发生异常!"); rxErrorMsg(es); } catch( const ErrorException& e) { acutPrintf(L"\n创建新的实体记录失败【%s】",e.errMsg.c_str()); rxErrorMsg(es); } if( pBlockTableRecord != NULL ) pBlockTableRecord->close(); if( pBlockTable != NULL ) pBlockTable->close(); return entId; } /** * 将对象从模型空间中的某一层上删除 **/ Acad::ErrorStatus ArxWrapper::RemoveFromModelSpace(const AcDbHandle& handle,const wstring& layerName ) { AcDbObjectId entId; try { if( handle.isNull() ) return Acad::eOk; //打开块表数据库 AcDbBlockTable *pBlockTable; acdbHostApplicationServices()->workingDatabase() ->getBlockTable(pBlockTable, AcDb::kForWrite); //得到模型空间 AcDbBlockTableRecord *pBlockTableRecord; pBlockTable->getAt(ACDB_MODEL_SPACE, pBlockTableRecord, AcDb::kForWrite); //遍历数据库 AcDbBlockTableRecordIterator* iter; Acad::ErrorStatus es = pBlockTableRecord->newIterator(iter); if (es != Acad::eOk) { acutPrintf(L"\n打开数据库失败了"); rxErrorMsg(es); pBlockTableRecord->close(); } else { AcDbEntity* ent; for (; !iter->done(); iter->step()) { if (iter->getEntity(ent, AcDb::kForWrite) == Acad::eOk) { AcDbHandle entHandle; ent->getAcDbHandle(entHandle); if( !entHandle.isNull() ) { if( entHandle == handle ) { #ifdef DEBUG acutPrintf(L"\n对象找到了,删除并关闭掉"); #endif ent->erase(); ent->close(); break; } } else { acutPrintf(L"\n根据Handle删除对象时出错!"); } } } //把迭代器删了,防内存泄露 delete iter; } //关闭实体 pBlockTable->close(); pBlockTableRecord->close(); return Acad::eOk; } catch(const Acad::ErrorStatus es) { acutPrintf(L"\n操作数据库发生异常!"); rxErrorMsg(es); return Acad::eOutOfMemory; } } /** * 将对象从模型空间中的某一层上删除 **/ Acad::ErrorStatus ArxWrapper::RemoveFromModelSpace(AcDbEntity* pEnt,const wstring& layerName ) { AcDbObjectId entId; try { if( !pEnt ) return Acad::eOk; //打开块表数据库 AcDbBlockTable *pBlockTable; acdbHostApplicationServices()->workingDatabase() ->getBlockTable(pBlockTable, AcDb::kForWrite); //得到模型空间 AcDbBlockTableRecord *pBlockTableRecord; pBlockTable->getAt(ACDB_MODEL_SPACE, pBlockTableRecord, AcDb::kForWrite); //遍历数据库 AcDbBlockTableRecordIterator* iter; Acad::ErrorStatus es = pBlockTableRecord->newIterator(iter); if (es != Acad::eOk) { acutPrintf(L"\n打开数据库失败了"); rxErrorMsg(es); pBlockTableRecord->close(); } else { AcDbEntity* ent; for (; !iter->done(); iter->step()) { if (iter->getEntity(ent, AcDb::kForWrite) == Acad::eOk) { if( ent == pEnt ) { #ifdef DEBUG acutPrintf(L"\n对象找到了,删除并关闭掉"); #endif ent->erase(); ent->close(); break; } } } //把迭代器删了,防内存泄露 delete iter; } //关闭实体 pBlockTable->close(); pBlockTableRecord->close(); return Acad::eOk; } catch(const Acad::ErrorStatus es) { acutPrintf(L"\n操作数据库发生异常!"); rxErrorMsg(es); return Acad::eOutOfMemory; } } /** * 创建特定名称的层 **/ bool ArxWrapper::createNewLayer(const wstring& layerName) { bool result = false; Acad::ErrorStatus es; AcDbLayerTable *pLayerTable; AcDbLayerTableRecord *pLayerTableRecord = NULL; try { //打开层表数据库 es = acdbHostApplicationServices()->workingDatabase() ->getSymbolTable(pLayerTable, AcDb::kForWrite); if( es != Acad::eOk ) throw ErrorException(L"打开层表记录失败"); //层表不存在,则创建 if( pLayerTable->has(layerName.c_str()) ) { acutPrintf(L"\n图层【%s】已存在,无需创建",layerName.c_str()); pLayerTable->close(); return true; } #ifdef DEBUG acutPrintf(L"\n创建图层【%s】",layerName.c_str()); #endif //构建新的层表记录 AcDbLayerTableRecord *pLayerTableRecord = new AcDbLayerTableRecord; es = pLayerTableRecord->setName(layerName.c_str()); if( es != Acad::eOk ) throw ErrorException(L"设置新层表记录的名字失败"); // Defaults are used for other properties of // the layer if they are not otherwise specified. es = pLayerTable->add(pLayerTableRecord); if( es != Acad::eOk ) throw ErrorException(L"加入新的层表记录失败"); result = true; } catch( const ErrorException& e) { acutPrintf(L"\n创建新的层表记录失败【%s】",e.errMsg.c_str()); rxErrorMsg(es); } if( pLayerTable != NULL ) pLayerTable->close(); if( pLayerTableRecord != NULL ) pLayerTableRecord->close(); return result; } /** * 删除特定图层 **/ bool ArxWrapper::DeleteLayer(const wstring& layerName) { bool result = false; //打开层表数据库 AcDbLayerTable *pLayerTable; Acad::ErrorStatus es = acdbHostApplicationServices()->workingDatabase() ->getSymbolTable(pLayerTable, AcDb::kForWrite); if( pLayerTable ) { AcDbLayerTableRecord *pLayerTableRecord = NULL; //层表不存在,则创建 if(pLayerTable->has(layerName.c_str())) { acutPrintf(L"\n删除图层【%s】",layerName.c_str()); //构建新的层表记录 AcDbLayerTableRecord *pLayerRecord; // Defaults are used for other properties of // the layer if they are not otherwise specified. Acad::ErrorStatus es = pLayerTable->getAt(layerName.c_str(),pLayerRecord,AcDb::kForWrite); if( pLayerRecord ) { pLayerRecord->erase(); pLayerRecord->close(); result = true; } else { acutPrintf(L"\n打开图层失败"); rxErrorMsg(es); } } else { acutPrintf(L"\n图层【%s】不存在,无法删除",layerName.c_str()); } pLayerTable->close(); if( pLayerTableRecord ) pLayerTableRecord->close(); } else { acutPrintf(L"\n打开层表记录失败!"); rxErrorMsg(es); } return result; } /** * 隐藏其他图层 **/ bool ArxWrapper::ShowLayer(const wstring& layerName) { bool result = true; //打开层表数据库 AcDbLayerTable *pLayerTable; acdbHostApplicationServices()->workingDatabase() ->getSymbolTable(pLayerTable, AcDb::kForWrite); if( pLayerTable ) { AcDbLayerTableIterator *pLayerIter = NULL; Acad::ErrorStatus es = pLayerTable->newIterator(pLayerIter); if( es == Acad::eOk ) { for( ;!pLayerIter->done();pLayerIter->step() ) { AcDbLayerTableRecord* pLayerTableRecord = NULL; pLayerIter->getRecord(pLayerTableRecord,AcDb::kForWrite); if( pLayerTableRecord ) { const TCHAR *pLayerName; pLayerTableRecord->getName(pLayerName); #ifdef DEBUG acutPrintf(L"\n找到层【%s】",pLayerName); if( wstring(pLayerName) != wstring(L"0") ) { #endif if( layerName.length() == 0 || wstring(pLayerName) == layerName ) { pLayerTableRecord->setIsOff(false); #ifdef DEBUG acutPrintf(L",显示该层",pLayerName); #endif } else { pLayerTableRecord->setIsOff(true); #ifdef DEBUG acutPrintf(L",隐藏该层",pLayerName); #endif } } else { acutPrintf(L"\n0号图层不处理"); } pLayerTableRecord->close(); } } delete pLayerIter; } else { acutPrintf(L"\n打开图层表失败"); rxErrorMsg(es); result = false; } pLayerTable->close(); } return result; } /** * 根据起始点创建线段,并放置在特定的层上 **/ AcDbObjectId ArxWrapper::createLine( const AcGePoint3d& start, const AcGePoint3d& end, const wstring& layerName ) { AcDbLine *pLine = new AcDbLine(start, end); return ArxWrapper::PostToModelSpace(pLine,layerName); } /** * 根据起始点队列(向量列表),并放置在特定的层上 **/ void ArxWrapper::createLine( const Point3dVector& points3d, const wstring& layerName ) { if( points3d.size() < 2 ) return; AcGePoint3d *pStart = NULL; for( Point3dIter iter = points3d.begin(); iter != points3d.end(); iter++) { if( pStart == NULL ) { pStart = *iter; continue; } else { createLine( *pStart, *(*iter), layerName ); pStart = *iter; } } } /** * 根据管线实体起始点队列(向量列表),并放置在特定的层上 **/ void ArxWrapper::createLine( const PointList& points, const wstring& layerName ) { if( points.size() < 2 ) return; AcGePoint3d *pStart = NULL; for( ContstPointIter iter = points.begin(); iter != points.end(); iter++) { if( pStart == NULL ) { pStart = new AcGePoint3d((*iter)->m_Point[X], (*iter)->m_Point[Y], (*iter)->m_Point[Z]); continue; } else { AcGePoint3d *pEnd = new AcGePoint3d((*iter)->m_Point[X], (*iter)->m_Point[Y], (*iter)->m_Point[Z]); createLine( *pStart, *pEnd, layerName ); delete pStart; pStart = pEnd; } } if( pStart != NULL ) delete pStart; } /** * 根据起始点队列(向量列表),并放置在特定的层上 **/ AcDbEntity* ArxWrapper::MoveToBottom(AcDbEntity* pEntry) { if( !pEntry ) return NULL; AcGeVector3d vec(-8,10,0); AcGeMatrix3d moveMatrix; moveMatrix.setToTranslation(vec); pEntry->transformBy(moveMatrix); return pEntry; } /** * 根据起始点队列(向量列表),并放置在特定的层上 **/ AcDb3dSolid* ArxWrapper::DrawCylinder(const UINT& lineID, const UINT& sequenceID, const AcGePoint3d& start, const AcGePoint3d& end, const wstring& layerName, LineEntry& entry ) { #ifdef DEBUG acutPrintf(L"\n绘制柱体实例,加入到图层空间\n"); #endif LMALineDbObject* lmaLineObj = new LMALineDbObject(Adesk::Int32(lineID), Adesk::Int32(sequenceID), start,end,&entry); PostToModelSpace(lmaLineObj,layerName); return lmaLineObj; } /** * 根据导入线段配置,创建多线段3D折线 **/ void ArxWrapper::createLMALine( const LineEntry& lineEntry ) { #ifdef DEBUG acutPrintf(L"\n在图层【%s】绘制管线实体,端点个数【%d】\n",lineEntry.m_LineName.c_str(),lineEntry.m_PointList->size()); #endif try { //首先创建图层 createNewLayer(lineEntry.m_LineName); //绘制3D模型 DrawPolyCylinder(lineEntry); } catch(const Acad::ErrorStatus es) { acutPrintf(L"\n绘制线段发生异常!"); rxErrorMsg(es); } } /** * 创建多线段3D折线 **/ void ArxWrapper::DrawPolyCylinder( const LineEntry& lineEntry ) { const PointList& points = *(lineEntry.m_PointList); const wstring& layerName = lineEntry.m_LineName; if( points.size() < 2 ) return; AcGePoint3d *pStart = NULL; for( ContstPointIter iter = points.begin(); iter != points.end(); iter++) { if( pStart == NULL ) { //多线段的第一个起点 pStart = new AcGePoint3d((*iter)->m_Point[X], (*iter)->m_Point[Y], (*iter)->m_Point[Z]); continue; } else { AcGePoint3d *pEnd = new AcGePoint3d((*iter)->m_Point[X], (*iter)->m_Point[Y], (*iter)->m_Point[Z]); //创建3D柱体代表直线 AcDb3dSolid* pNewLine = DrawCylinder( lineEntry.m_LineID, (*iter)->m_PointNO, *pStart, *pEnd, layerName, const_cast<LineEntry&>(lineEntry) ); //保存实例的ObjectID //(*iter)->m_EntryId = pNewLine->objectId(); (*iter)->m_pEntry = pNewLine; //删除临时对象 delete pStart; //继续下一个线段 pStart = pEnd; } } if( pStart != NULL ) delete pStart; } /** * 根据多线段的配置,删除3D管线 **/ void ArxWrapper::eraseLMALine(const LineEntry& lineEntry, bool old) { PointList* pPointList = old ? lineEntry.m_PrePointList : lineEntry.m_PointList; if( pPointList == NULL ) { #ifdef DEBUG acutPrintf(L"\n管线没有【%s】的线段",(old ? L"无效" : L"当前")); #endif return; } const PointList& points = old ? *(lineEntry.m_PrePointList) : *(lineEntry.m_PointList); const wstring& layerName = lineEntry.m_LineName; #ifdef DEBUG acutPrintf(L"\n删除管线【%s】所有【%s】的线段共【%d】条",lineEntry.m_LineName.c_str(),(old ? L"无效" : L"当前"),points.size()); #endif if( points.size() < 2 ) return; AcGePoint3d *pStart = NULL; for( ContstPointIter iter = points.begin(); iter != points.end(); iter++) { if( iter == points.begin() ) { continue; } else { //得到线段的数据库对象ID //AcDbObjectId objId = (*iter)->m_EntryId; if( (*iter)->m_pEntry ) { #ifdef DEBUG acutPrintf(L"\n线段终点 序号【%d】 坐标 x:【%lf】y:【%lf】z:【%lf】被删除",(*iter)->m_PointNO,(*iter)->m_Point[X],(*iter)->m_Point[Y],(*iter)->m_Point[Z]); #endif LMALineDbObject* pLineObject = dynamic_cast<LMALineDbObject*>((*iter)->m_pEntry); if( pLineObject ) { RemoveFromModelSpace(pLineObject->mHandleDim,lineEntry.m_LineName); RemoveFromModelSpace(pLineObject->mHandleText,lineEntry.m_LineName); RemoveFromModelSpace(pLineObject,lineEntry.m_LineName); } } } } } /** * 切换当前视图到与WCS的viewDirection相一致的视图 **/ void ArxWrapper::ChangeView(int viewDirection) { AcDbViewTableRecord view; // get desired view direction AcGeVector3d viewDir = -AcGeVector3d::kYAxis; /* if (prViewDir.isKeyWordPicked(_T("Top"))) viewDir = AcGeVector3d::kZAxis; else if (prViewDir.isKeyWordPicked(_T("BOttom"))) viewDir = -AcGeVector3d::kZAxis; else if (prViewDir.isKeyWordPicked(_T("BAck"))) viewDir = AcGeVector3d::kYAxis; else if (prViewDir.isKeyWordPicked(_T("Front"))) viewDir = -AcGeVector3d::kYAxis; else if (prViewDir.isKeyWordPicked(_T("Right"))) viewDir = AcGeVector3d::kXAxis; else if (prViewDir.isKeyWordPicked(_T("Left"))) viewDir = -AcGeVector3d::kXAxis; else { ASSERT(0); } */ #ifdef DEBUG acutPrintf(L"\n设置当前视图为前视,中心点在50"); #endif wstring cmdViewDir; if( viewDirection == 1 ) cmdViewDir = L"RIGHT"; else if ( viewDirection == 2 ) cmdViewDir = L"FRONT"; else if ( viewDirection == 3 ) cmdViewDir = L"TOP"; #ifdef DEBUG acutPrintf(L"\n设置当前视图为前视为【%s】",cmdViewDir.c_str()); #endif acedCommand(RTSTR, _T("._-VIEW"), RTSTR, cmdViewDir.c_str(), 0); //view.setViewDirection(viewDir); //view.setCenterPoint(AcGePoint2d(50, 50)); // 设置视图的中心点 //view.setCenterPoint(AcGePoint2d((xMin + xMax) / 2, (yMin + yMax) / 2)); // 设置视图的高度和宽度 //view.setHeight(fabs(yMax - yMin)); //view.setWidth(fabs(xMax - xMin)); // 将视图对象设置为当前视图 //Acad::ErrorStatus es = acedSetCurrentView(&view, NULL); } AcDbObjectId ArxWrapper::CreateHatch(AcDbObjectIdArray objIds,const wstring& patName, bool bAssociative, const wstring& layerName, const AcGeVector3d& normal, const double& elevation) { Acad::ErrorStatus es; AcDbHatch *pHatch = new AcDbHatch(); // 设置填充平面 pHatch->setNormal(normal); pHatch->setElevation(elevation); // 设置关联性 pHatch->setAssociative(bAssociative); // 设置填充图案 #ifdef DEBUG acutPrintf(L"\n设置填充图案为【%s】",patName.c_str()); #endif pHatch->setPattern(AcDbHatch::kPreDefined, patName.c_str()); // 添加填充边界 es = pHatch->appendLoop(AcDbHatch::kExternal, objIds); // 显示填充对象 es = pHatch->evaluateHatch(); // 添加到模型空间 AcDbObjectId hatchId; hatchId = PostToModelSpace(pHatch,layerName.c_str()); // 如果是关联性的填充,将填充对象与边界绑定,以便使其能获得边界对象修改的通知 if (bAssociative) { AcDbEntity *pEnt; for (int i = 0; i < objIds.length(); i++) { es = acdbOpenAcDbEntity(pEnt, objIds[i], AcDb::kForWrite); if (es == Acad::eOk) { // 添加一个永久反应器 pEnt->addPersistentReactor(hatchId); pEnt->close(); } } } return hatchId; } AcDbObjectId ArxWrapper::CreateHatch(AcDbEntity* entity,const wstring& patName, bool bAssociative, const wstring& layerName, const AcGePlane& plane, const double& distance ) { if( entity == NULL ) return 0; AcDbObjectId objId = entity->objectId(); AcGeVector3d normal = plane.normal(); //double distance = plane.distanceTo(AcGePoint3d::kOrigin); #ifdef DEBUG acutPrintf(L"\n该平面到原点的距离是【%lf】",distance); #endif AcDbObjectIdArray objIds; objIds.append(objId); return ArxWrapper::CreateHatch(objIds,patName,bAssociative,layerName,normal,distance); } AcDbObjectId ArxWrapper::CreateMLeader(const AcGePoint3d& start, const int& offset, const int& direction, const wstring& content, const wstring& layerName) { static int leaderOffset = 6; //标注的起点 AcGePoint3d startPoint(start); //进行相应的转换 { if( direction == 1 ) { #ifdef DEBUG acutPrintf(L"\n切面与X轴垂直,把Z轴位置转换为Y,把Y轴位置转换为X"); #endif startPoint.y = start.z; startPoint.x = start.y; } else if ( direction == 2 ) { #ifdef DEBUG acutPrintf(L"\n切面与Y轴垂直,把Z轴位置转换为Y轴位置"); #endif startPoint.y = start.z; startPoint.z = 0; } } //折点为编译6个单位,且位置在左下方 AcGePoint3d endPoint(start.x - leaderOffset, start.y - leaderOffset, start.z); AcDbMLeader* leader = new AcDbMLeader; //设置标注的内容 { int index = 0; leader->addLeaderLine(startPoint,index); leader->addLastVertex(index,endPoint); leader->setLastVertex(index,endPoint); leader->setContentType(AcDbMLeaderStyle::kMTextContent); //设置标注的文字 AcDbMText* mtext = new AcDbMText; mtext->setContents(content.c_str()); mtext->setTextHeight(mtext->textHeight()/2); leader->setMText(mtext); } //进行相应的转换 { if( direction == 1 ) { #ifdef DEBUG acutPrintf(L"\n切面与X轴垂直,先沿X轴翻转到XZ平面,然后绕Z轴翻转到ZY平面,最后沿X轴平移"); #endif //进行翻转到XZ平面 AcGeMatrix3d rotateMatrix = AcGeMatrix3d::rotation( ArxWrapper::kRad90, AcGeVector3d::kYAxis, AcGePoint3d::kOrigin); leader->transformBy(rotateMatrix); //进行翻转到YZ平面 rotateMatrix = AcGeMatrix3d::rotation( ArxWrapper::kRad90, AcGeVector3d::kXAxis, AcGePoint3d::kOrigin); leader->transformBy(rotateMatrix); //进行偏移 AcGeMatrix3d moveMatrix; moveMatrix.setToTranslation(AcGeVector3d(offset,0,0)); leader->transformBy(moveMatrix); } else if ( direction == 2 ) { #ifdef DEBUG acutPrintf(L"\n切面与Y轴垂直,先沿X轴翻转到XZ平面,然后沿Y轴平移"); #endif //进行翻转 AcGeMatrix3d rotateMatrix = AcGeMatrix3d::rotation( ArxWrapper::kRad90, AcGeVector3d::kXAxis, AcGePoint3d::kOrigin); leader->transformBy(rotateMatrix); //进行偏移 AcGeMatrix3d moveMatrix; moveMatrix.setToTranslation(AcGeVector3d(0,offset,0)); leader->transformBy(moveMatrix); } else if ( direction == 3 ) { #ifdef DEBUG acutPrintf(L"\n切面与Z轴垂直,因此标注进行偏移即可"); #endif //进行偏移 AcGeMatrix3d moveMatrix; moveMatrix.setToTranslation(AcGeVector3d(0,0,offset)); leader->transformBy(moveMatrix); } } //添加到模型空间中 ArxWrapper::PostToModelSpace(leader,layerName); return leader->objectId(); } void ArxWrapper::TestFunction() { //TestHatch(); //TestText(); //TestLeader(); TestMLeader(); } void TestHatch() { // 提示用户选择填充边界 ads_name ss; int rt = acedSSGet(NULL, NULL, NULL, NULL, ss); AcDbObjectIdArray objIds; // 初始化填充边界的ID数组 if (rt == RTNORM) { long length; acedSSLength(ss, &length); for (int i = 0; i < length; i++) { ads_name ent; acedSSName(ss, i, ent); AcDbObjectId objId; acdbGetObjectId(objId, ent); objIds.append(objId); } } acedSSFree(ss); // 释放选择集 ArxWrapper::CreateHatch(objIds, L"JIS_LC_20", true, L"0", AcGeVector3d(0,0,1), 0); } static AcDbObjectId CreateText(const AcGePoint3d& ptInsert, const wchar_t* text, AcDbObjectId style = AcDbObjectId::kNull, double height = 2.5, double rotation = 0); // 实现部分 AcDbObjectId CreateText(const AcGePoint3d& ptInsert, const wchar_t* text, AcDbObjectId style, double height, double rotation) { AcDbText *pText = new AcDbText(ptInsert, text, style, height, rotation); return ArxWrapper::PostToModelSpace(pText,L"0"); } void TestText() { // Hide the dialog and give control to the editor ads_point pt; // Get a point if (acedGetPoint(NULL, _T("\n选取输入点: "), pt) == RTNORM) { // 创建单行文字 AcGePoint3d ptInsert(pt[X], pt[Y], pt[Z]); CreateText(ptInsert, L"测试文字"); } } void TestMLeader() { AcGePoint3dArray vertices; AcGePoint3d startPoint,endPoint; { ads_point pt; if (acedGetPoint(NULL, _T("\n选取MLeader开始点: "), pt) != RTNORM) return; startPoint.x = pt[X]; startPoint.y = pt[Y]; startPoint.z = pt[Z]; //if (acedGetPoint(NULL, _T("\n选取MLeader结束点: "), pt) != RTNORM) // return; endPoint.x = pt[X] - 9; endPoint.y = pt[Y] - 9; endPoint.z = pt[Z]; } AcDbMLeader* leader = new AcDbMLeader; int index = 0; leader->addLeaderLine(startPoint,index); leader->addLastVertex(index,endPoint); leader->setLastVertex(index,endPoint); leader->setContentType(AcDbMLeaderStyle::kMTextContent); AcDbMText* mtext = new AcDbMText; mtext->setContents(L"动力线1#【半径10】"); leader->setMText(mtext); ArxWrapper::PostToModelSpace(leader,L"0"); } void TestLeader() { AcGePoint3dArray vertices; AcGePoint3d startPoint; { ads_point pt; if (acedGetPoint(NULL, _T("\n选取输入点: "), pt) != RTNORM) return; startPoint.x = pt[X]; startPoint.y = pt[Y]; startPoint.z = pt[Z]; } AcGePoint3d endPoint(startPoint.x + 1,startPoint.y-2,0); AcGePoint3d lastPoint(startPoint.x + 5,startPoint.y-2,0); vertices.append(startPoint); vertices.append(endPoint); vertices.append(lastPoint); AcDbLeader* leader = new AcDbLeader; for (int i=0;i<3;i++) leader->appendVertex(vertices[i]); leader->setToSplineLeader(); // set to spline just for fun leader->setDatabaseDefaults(); // pick up default dimstyle, etc. AcDbMText* mtext = new AcDbMText; //mtext->setLocation(prInsertPt.value()); //mtext->setWidth(fabs(prInsertPt.value().x - prCorner.value().x)); mtext->setContents(L"1#动力线,半径10"); mtext->setDirection(AcGeVector3d(1,0,0)); mtext->setLocation(endPoint); mtext->setHeight(0.5); ArxWrapper::PostToModelSpace(mtext,L"0"); leader->setAnnotationObjId(mtext->objectId()); ArxWrapper::PostToModelSpace(leader,L"0"); }
a0f045ca21bff708223d7dbaf68eba847dff5b1b
8c881345865a01b5c63a5bb076f126403716420c
/机器视觉与图像处理的C++和MATLAB实现/chapter15/DigitRec_vc6/PreprocessDlg.h
7507e1c91f27c9351c75e360efed992bd2d25720
[]
no_license
Asher-1/C_Plus_Plus-projects
f758df626de074a5a5071c6bf1ae08cfb5c4d2e3
56941f1a76cf1645df5cc0fcb5529eddc64643f2
refs/heads/master
2022-01-28T13:03:24.493838
2019-05-30T13:06:35
2019-05-30T13:06:35
160,189,947
3
2
null
null
null
null
GB18030
C++
false
false
1,460
h
PreprocessDlg.h
#if !defined(AFX_PREPROCESSDLG_H__D1C46F24_ADE0_47C1_BE6D_08FA388EBB13__INCLUDED_) #define AFX_PREPROCESSDLG_H__D1C46F24_ADE0_47C1_BE6D_08FA388EBB13__INCLUDED_ #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 // PreprocessDlg.h : header file // ///////////////////////////////////////////////////////////////////////////// // CPreprocessDlg dialog class CPreprocessDlg : public CDialog { // Construction public: CPreprocessDlg(CWnd* pParent = NULL); // standard constructor bool bTrain; //是否是训练集合的预处理 // Dialog Data //{{AFX_DATA(CPreprocessDlg) enum { IDD = IDD_DIALOG_PREPROCESS }; UINT m_nThres; UINT m_nUpper; UINT m_nLower; CString m_strTrainFile; CString m_strClassLabel; //}}AFX_DATA // Overrides // ClassWizard generated virtual function overrides //{{AFX_VIRTUAL(CPreprocessDlg) protected: virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support //}}AFX_VIRTUAL // Implementation protected: // Generated message map functions //{{AFX_MSG(CPreprocessDlg) afx_msg void OnButtonLoad(); afx_msg void OnButtonDir(); afx_msg void OnRadioTest(); afx_msg void OnRadioTrain(); virtual BOOL OnInitDialog(); virtual void OnOK(); //}}AFX_MSG DECLARE_MESSAGE_MAP() }; //{{AFX_INSERT_LOCATION}} // Microsoft Visual C++ will insert additional declarations immediately before the previous line. #endif // !defined(AFX_PREPROCESSDLG_H__D1C46F24_ADE0_47C1_BE6D_08FA388EBB13__INCLUDED_)
583161849c5c147a127aefb1bf1104a647cf42f0
3cea33afbc3f935808ee0d7ceacb6b58c4a43838
/Socket通信/TCP_Test/TCP_Server/TcpServer.cpp
f5edb3868725e80e68d8a626daa2446a8048b93c
[]
no_license
hongwueryi/CommonDemo
e02454c335f4955e6d0f69945ceebf8299ea556a
a49e07da158af235abd884a0adffb9380a229a79
refs/heads/master
2023-08-24T01:33:55.086278
2021-10-18T02:55:54
2021-10-18T02:55:54
403,879,661
0
0
null
null
null
null
GB18030
C++
false
false
1,768
cpp
TcpServer.cpp
#include "stdafx.h" #include "TcpServer.h" // 服务端套接字 SOCKET g_ServerSocket; // 客户端套接字 SOCKET g_ClientSocket; // 绑定端口并监听 BOOL SocketBindAndListen(char *lpszIp, int iPort) { // 初始化 Winsock 库 WSADATA wsaData = {0}; ::WSAStartup(MAKEWORD(2, 2), &wsaData); // 创建流式套接字 g_ServerSocket = ::socket(AF_INET, SOCK_STREAM, 0); if (INVALID_SOCKET == g_ServerSocket) { return FALSE; } // 设置服务端地址和端口信息 sockaddr_in addr; addr.sin_family = AF_INET; addr.sin_port = ::htons(iPort); addr.sin_addr.S_un.S_addr = ::inet_addr(lpszIp); // 绑定IP和端口 if (0 != ::bind(g_ServerSocket, (sockaddr *)(&addr), sizeof(addr))) { return FALSE; } // 设置监听 if (0 != ::listen(g_ServerSocket, 1)) { return FALSE; } // 创建接收数据多线程 ::CreateThread(NULL, NULL, (LPTHREAD_START_ROUTINE)RecvThreadProc, NULL, NULL, NULL); return TRUE; } // 发送数据 void SendMsg(char *pszSend) { // 发送数据 ::send(g_ClientSocket, pszSend, (1 + ::lstrlen(pszSend)), 0); printf("[send]%s\n", pszSend); } // 接受连接请求 并 接收数据 void AcceptRecvMsg() { sockaddr_in addr = { 0 }; // 注意:该变量既是输入也是输出 int iLen = sizeof(addr); // 接受来自客户端的连接请求 g_ClientSocket = ::accept(g_ServerSocket, (sockaddr *)(&addr), &iLen); printf("accept a connection from client!\n"); char szBuf[MAX_PATH] = { 0 }; while (TRUE) { // 接收数据 int iRet = ::recv(g_ClientSocket, szBuf, MAX_PATH, 0); if (0 >= iRet) { continue; } printf("[recv]%s\n", szBuf); } } // 接收数据多线程 UINT RecvThreadProc(LPVOID lpVoid) { // 接受连接请求 并 接收数据 AcceptRecvMsg(); return 0; }
f66f303599bb1a391f1b20e0977dcebbb92a7118
6409650a23f65136afd961206c2a8870e1f78c7e
/ConceptEngine/ConceptEngine/Concept-Engine/Time/CETimestamp.h
f30e45fa438b1d226d8876f3ed180ff28c3e4f21
[ "MIT" ]
permissive
Ludaxord/ConceptEngine
830486b52a72e1fe7a4b821b4f725443ff180afe
16775bc9b518d4fd4c8bd32bb5f297223dfacbae
refs/heads/master
2023-08-16T11:33:00.694333
2021-10-07T21:11:00
2021-10-07T21:11:00
293,779,912
6
0
MIT
2021-08-16T20:33:47
2020-09-08T10:42:33
C++
UTF-8
C++
false
false
3,713
h
CETimestamp.h
#pragma once #include <windows.h> #include "../Core/Common/CETypes.h" #ifdef COMPILER_VISUAL_STUDIO #pragma warning(push) #pragma warning(disable : 4251) #endif namespace ConceptEngine::Time { class CETimestamp { public: FORCEINLINE CETimestamp(uint64 Nanoseconds = 0) : TimestampInNS(Nanoseconds) { } FORCEINLINE double AsSeconds() const { constexpr double SECONDS = 1000.0 * 1000.0 * 1000.0; return static_cast<double>(TimestampInNS) / SECONDS; } FORCEINLINE double AsMilliSeconds() const { constexpr double MILLISECONDS = 1000.0 * 1000.0; return static_cast<double>(TimestampInNS) / MILLISECONDS; } FORCEINLINE double AsMicroSeconds() const { constexpr double MICROSECONDS = 1000.0; return double(TimestampInNS) / MICROSECONDS; } FORCEINLINE uint64 AsNanoSeconds() const { return TimestampInNS; } FORCEINLINE bool operator==(const CETimestamp& Another) const { return TimestampInNS == Another.TimestampInNS; } FORCEINLINE bool operator!=(const CETimestamp& Another) const { return TimestampInNS != Another.TimestampInNS; } FORCEINLINE CETimestamp& operator+=(const CETimestamp& Another) { TimestampInNS += Another.TimestampInNS; return *this; } FORCEINLINE CETimestamp& operator-=(const CETimestamp& Another) { TimestampInNS -= Another.TimestampInNS; return *this; } FORCEINLINE CETimestamp& operator*=(const CETimestamp& Another) { TimestampInNS *= Another.TimestampInNS; return *this; } FORCEINLINE CETimestamp& operator/=(const CETimestamp& Another) { TimestampInNS /= Another.TimestampInNS; return *this; } FORCEINLINE static CETimestamp Seconds(double Seconds) { constexpr double SECONDS = 1000.0 * 1000.0 * 1000.0; return CETimestamp(static_cast<uint64>(Seconds * SECONDS)); } FORCEINLINE static CETimestamp MilliSeconds(double MilliSeconds) { constexpr double MILLISECONDS = 1000.0 * 1000.0; return CETimestamp(static_cast<uint64>(MilliSeconds * MILLISECONDS)); } FORCEINLINE static CETimestamp MicroSeconds(double MicroSeconds) { constexpr double MICROSECONDS = 1000.0; return CETimestamp(static_cast<uint64>(MicroSeconds * MICROSECONDS)); } FORCEINLINE static CETimestamp NanoSeconds(double NanoSeconds) { return CETimestamp(static_cast<uint64>(NanoSeconds)); } FORCEINLINE friend CETimestamp operator+(const CETimestamp& First, const CETimestamp& Second) { return CETimestamp(First.TimestampInNS + Second.TimestampInNS); } FORCEINLINE friend CETimestamp operator-(const CETimestamp& First, const CETimestamp& Second) { return CETimestamp(First.TimestampInNS - Second.TimestampInNS); } FORCEINLINE friend CETimestamp operator*(const CETimestamp& First, const CETimestamp& Second) { return CETimestamp(First.TimestampInNS * Second.TimestampInNS); } FORCEINLINE friend CETimestamp operator/(const CETimestamp& First, const CETimestamp& Second) { return CETimestamp(First.TimestampInNS / Second.TimestampInNS); } FORCEINLINE friend bool operator>(const CETimestamp& First, const CETimestamp& Second) { return First.TimestampInNS > Second.TimestampInNS; } FORCEINLINE friend bool operator<(const CETimestamp& First, const CETimestamp& Second) { return First.TimestampInNS < Second.TimestampInNS; } FORCEINLINE friend bool operator>=(const CETimestamp& First, const CETimestamp& Second) { return First.TimestampInNS >= Second.TimestampInNS; } FORCEINLINE friend bool operator<=(const CETimestamp& First, const CETimestamp& Second) { return First.TimestampInNS <= Second.TimestampInNS; } private: uint64 TimestampInNS = 0; }; } #ifdef COMPILER_VISUAL_STUDIO #pragma warning(pop) #endif
c3b75e82f2f0929bfe7db0bf8f1c66871fba943b
773f01db5ff14465feb1f7217029613ef110c34b
/deps/bindings/src/node_bindings.cc
11a19111de3f22a844f111eace0a83f916c20f23
[ "LicenseRef-scancode-unicode", "Artistic-2.0", "NTP", "MIT", "BSD-3-Clause", "NAIST-2003", "Zlib", "ICU", "ISC", "LicenseRef-scancode-unknown-license-reference", "LicenseRef-scancode-openssl", "LicenseRef-scancode-public-domain", "BSD-2-Clause" ]
permissive
kisbg/node-jerryscript
1a4b04568fea217ef15ec88b81ba0fbc73f86b22
41aad6b0ff256aa7f457a58b6f2ed88b6479ca70
refs/heads/master
2023-04-04T02:16:29.994213
2020-07-24T07:57:28
2020-07-24T08:21:35
299,860,757
0
0
NOASSERTION
2020-09-30T08:47:33
2020-09-30T08:47:32
null
UTF-8
C++
false
false
4,357
cc
node_bindings.cc
/* * Copyright (c) 2020-present Samsung Electronics Co., Ltd * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 * USA */ #include <glib.h> #include <uv.h> #include <cassert> #include "node_bindings.h" namespace glib { using namespace nodejerry; struct SourceData { GSource source; gpointer tag; NodeBindings* node_bindings; }; // NOTE: classify EventLoop for other methods if needed. static GMainContext* gcontext; static GMainLoop* gmainLoop; static GSource* uvsource; static GSourceFuncs source_funcs; static bool gmainLoopDone = false; static gboolean GmainLoopPrepareCallback(GSource* source, gint* timeout) { uv_update_time(uv_default_loop()); *timeout = uv_backend_timeout(uv_default_loop()); if (!uv_watcher_queue_empty(uv_default_loop())) { return TRUE; } return 0 == *timeout; } static gboolean GmainLoopCheckCallback(GSource* source) { if (!uv_backend_timeout(uv_default_loop())) { return TRUE; } return (G_IO_IN == g_source_query_unix_fd(source, ((SourceData*)source)->tag)); } static gboolean GmainLoopDispatchCallback(GSource* source, GSourceFunc callback, gpointer user_data) { assert(gcontext); g_main_context_iteration(gcontext, FALSE); if (gmainLoopDone) { return G_SOURCE_REMOVE; } NodeBindings* node_bindings = ((SourceData*)source)->node_bindings; node_bindings->RunOnce(); if (!node_bindings->HasMoreTasks()) { g_main_loop_quit(gmainLoop); return G_SOURCE_REMOVE; } return G_SOURCE_CONTINUE; } static void GmainLoopInit(NodeBindings* self) { gcontext = g_main_context_default(); gmainLoop = g_main_loop_new(gcontext, FALSE); source_funcs = { .prepare = GmainLoopPrepareCallback, .check = GmainLoopCheckCallback, .dispatch = GmainLoopDispatchCallback, }; uvsource = g_source_new(&source_funcs, sizeof(SourceData)); ((SourceData*)uvsource)->tag = g_source_add_unix_fd( uvsource, uv_backend_fd(uv_default_loop()), (GIOCondition)(G_IO_IN | G_IO_OUT | G_IO_ERR | G_IO_PRI)); ((SourceData*)uvsource)->node_bindings = self; g_source_attach(uvsource, gcontext); g_source_unref(uvsource); } void GmainLoopStart() { assert(gmainLoop); assert(gcontext); g_main_loop_run(gmainLoop); gmainLoopDone = true; g_main_context_iteration(gcontext, TRUE); } void GmainLoopExit() { if (uvsource) { g_source_destroy(uvsource); } if (gmainLoop) { g_main_loop_unref(gmainLoop); } if(gcontext) { g_main_context_unref(gcontext); } } } // namespace glib namespace nodejerry { NodeBindings::NodeBindings() {} void NodeBindings::Initialize(Environment&& env, Platform&& platform, Node&& node) { assert(platform.DrainVMTasks); m_env = std::move(env); m_platform = std::move(platform); m_node = std::move(node); m_isInitialize = true; } void NodeBindings::StartEventLoop() { assert(m_isInitialize); glib::GmainLoopInit(this); RunOnce(); if (HasMoreTasks()) { glib::GmainLoopStart(); } glib::GmainLoopExit(); } bool NodeBindings::HasMoreTasks() { return m_hasMoreNodeTasks; } void NodeBindings::RunOnce() { auto isolate = m_env.isolate(); auto event_loop = m_env.event_loop(); bool more; uv_run(event_loop, UV_RUN_NOWAIT); m_platform.DrainVMTasks(isolate); more = uv_loop_alive(event_loop); if (more == false) { m_node.EmitBeforeExit(); // Emit `beforeExit` if the loop became alive either after emitting // event, or after running some callbacks. more = uv_loop_alive(event_loop); } m_hasMoreNodeTasks = more; } } // namespace nodejerry
7e1bee96a5fead8e79cba35a4840cb637ee7a079
60e82a2de20e0f4bf12ca5b79f0682d7da97087b
/cpp/src/pegasus/catalog/catalog_test.cc
5bac707e7328cec9fd8b1694476df12a81904436
[ "Apache-2.0" ]
permissive
jerqi/pegasus
da6410e2ed110d86d44c1ffc5ce3f2ad3daf0af9
be7b75c86649836589009a7469e2cf249caab5a1
refs/heads/master
2023-01-02T17:17:58.387774
2020-10-29T23:43:16
2020-10-29T23:43:16
null
0
0
null
null
null
null
UTF-8
C++
false
false
2,536
cc
catalog_test.cc
// Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The ASF licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you may not use this file except in compliance // with the License. You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, // software distributed under the License is distributed on an // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. #include <stdlib.h> #include <stdio.h> #include <iostream> #include <gtest/gtest.h> #include "arrow/util/uri.h" #include "arrow/type.h" #include "catalog/catalog.h" #include "catalog/catalog_manager.h" #include "dataset/dataset_request.h" #include "test/gtest-util.h" namespace pegasus { TEST(SpakrCatalogTest, Unit) { //TODO: create a test file. std::string dataset_path = "hdfs://10.239.47.55:9000/genData1000/customer"; DataSetRequest dataset_request; dataset_request.set_dataset_path(dataset_path); DataSetRequest::RequestProperties properties; properties[DataSetRequest::TABLE_LOCATION] = dataset_path; properties[DataSetRequest::CATALOG_PROVIDER] = "SPARK"; properties[DataSetRequest::COLUMN_NAMES] = "a, b, c"; dataset_request.set_properties(properties); std::shared_ptr<CatalogManager> catalog_manager = std::make_shared<CatalogManager>(); std::shared_ptr<Catalog> catalog; ASSERT_OK(catalog_manager->GetCatalog(&dataset_request, &catalog)); std::shared_ptr<arrow::Schema> schema; ASSERT_OK(catalog->GetSchema(&dataset_request, &schema)); ASSERT_EQ(18, schema->num_fields()); std::vector<std::string> field_names = schema->field_names(); std::vector<int32_t> column_indices; for(std::string column_name : field_names) { column_indices.push_back(schema->GetFieldIndex(column_name)); } dataset_request.set_column_indices(column_indices); std::vector<int32_t> indices = dataset_request.get_column_indices(); ASSERT_EQ(18, indices.size()); std::vector<std::string> columns = dataset_request.get_column_names(); std::vector<std::string> columns_expected= {"a", "b", "c"}; ASSERT_EQ(3, columns.size()); ASSERT_EQ(columns_expected, columns); } } PEGASUS_TEST_MAIN();
46930c5c91ed95263fbca975a5724bd0c49bfb2d
aea4503904c1d608b8ff12a090e48e4622f253bf
/CstringVector/cstring_vector.h
7fcbb6e8856c11c5beaba49028a855302215986a
[]
no_license
lusparon/C-semester3-hometasks
0b7b8ab37f8bcfb6cfde8d095f303987d44311cb
3cb82c6b4e2e5fa3726a9d7704285462286057c7
refs/heads/master
2020-05-07T11:01:23.365256
2019-04-09T21:22:36
2019-04-09T21:22:36
180,436,499
0
0
null
null
null
null
WINDOWS-1251
C++
false
false
4,649
h
cstring_vector.h
#ifndef CSTRING_VECTOR_H #define CSTRING_VECTOR_H #define _CRT_SECURE_NO_WARNINGS #include <cassert> #include <vector> #include <iostream> #include <cstring> #include <string> #include "cstring_utils.h" using namespace std; char const * DELIM{ ", " }; /* динамический массив С-строк */ class cstring_vector { /* массив С-строк */ char ** data; /* логический размер (заполненность) */ size_t size; /* физический размер (ёмкость) */ size_t capasity; public: cstring_vector() { data = new char*[MIN_CAPACITY]; size = 0; capasity = MIN_CAPACITY; } cstring_vector(char ** cstr_array, size_t size) { init_from_cstr_array(cstr_array, size); } cstring_vector(char const ** cstr_array, size_t size) { init_from_cstr_array(const_cast<char**>(cstr_array), size); } cstring_vector(std::vector<std::string> v) { data = new char*[v.size()*CAPACITY_FACTOR]; for (int i = 0; i < v.size(); i++) { data[i] = new char[v[i].length() + 1]; strcpy(data[i], v[i].c_str()); } this->size = v.size(); this->capasity = v.size() * CAPACITY_FACTOR; } /* размер массива */ size_t GetSize() { return size; }; /* печать содержимого массива */ void print() const { assert(data); //assert(size <= capacity); std::cout << "{"; if (size) { for (size_t i = 0; i < size - 1; ++i) { print_cstring(data[i]); std::cout << DELIM; } print_cstring(data[size - 1]); } std::cout << "}"; } /* печать содержимого массива */ void println() const { print(); std::cout << std::endl; } //диструктор ~cstring_vector() { if (data != nullptr) { for (int i = 0; i < size; i++) { delete[] data[i]; } delete[] data; } } //конструктор копий cstring_vector(cstring_vector const & other) { cout << "Вызван конструктор копий" << endl; this->init_from_cstr_array(other.data, other.size); }; cstring_vector(cstring_vector && other) { cout << "Вызван move конструктор" << endl; size = other.size; data = other.data; capasity = other.capasity; // Не позволит сразу удалить временный объект other.data = nullptr; } void swap(cstring_vector & c) { std::swap(this->data, c.data); std::swap(this->size, c.size); std::swap(this->capasity, c.capasity); } cstring_vector operator=(cstring_vector && c) { swap(c); return *this; } //операция обращения по индексу char* operator[](int i) //возможность менять строки: их адреса, их длину, их отдельные символы { return data[i]; } char* operator[](int i) const { return data[i]; } void push_back(const char * str) { if (capasity - size == 0) reallocate(); data[size] = new char[strlen(str)]; strcpy(data[size], str); size++; } vector<string> convert_to_string_vector() { vector<string> ss; for (int i = 0; i < size; i++) ss.push_back(data[i]); return ss; } friend ostream& operator << (ostream& os, const cstring_vector& c) { if (c.size) { for (size_t i = 0; i < c.size - 1; ++i) { os << c.data[i] << DELIM; } os << c.data[c.size - 1]; } return os; } private: const int MIN_CAPACITY = 5; const int CAPACITY_FACTOR = 2; /* инициализация текущего массива копией массива строк cstr_array из size элементов */ void init_from_cstr_array(char ** cstr_array, size_t size) { data = new char*[size * CAPACITY_FACTOR]; for (int i = 0; i < size; i++) { data[i] = new char[strlen(cstr_array[i]) + 1]; strcpy(data[i], cstr_array[i]); } this->size = size; this->capasity = size * CAPACITY_FACTOR; } void reallocate() { char ** new_data = new char *[size * CAPACITY_FACTOR]; copy(data, data + size, new_data); for (int i = 0; i < size; i++) { delete[] data[i]; } delete[] data; data = new_data; capasity = size * CAPACITY_FACTOR; }; }; //читает строки с клавиатуры, пока не будет введена пустая строка cstring_vector read_cstring_vector() { cstring_vector c = cstring_vector(); char * istr = new char[128]; cin.getline(istr, 128); while (strcmp(istr, "") != 0) { c.push_back(istr); cin.getline(istr, 128); } return c; }; /* CSTRING_VECTOR_H */ #endif
9c2340323d68a17c1a9ba0e6c8c43597857fa2e2
448a660d440a08fa9c6ed0f35a7d5571d76a9752
/DijkstraCL.h
43d1f09421b82f253da7be8ba27be8f3cb4a0515
[]
no_license
cjin/DijkstraCL
e78c09ccdd012751487d328d6a01aa14b00dabde
4571b764d77e3afd59da09a1f9f9407bce6f30c5
refs/heads/master
2021-05-29T07:08:42.077051
2015-09-18T20:08:25
2015-09-18T20:08:25
null
0
0
null
null
null
null
UTF-8
C++
false
false
6,305
h
DijkstraCL.h
//*************************************************************************************** // //! \file DijkstraCL.h //! A simple wrapper class for the OpenCL implementation of the Parallel Dijkstra Algorithm //! for all-pair or selected-pair shortest distances calculation. //! //! This code is adapted from the example code (by Dan Ginsburg) for the book //! OpenCL Programming Guide (by Munish, et al.) //! (http://www.heterogeneouscompute.org/?page_id=5) //! with some tweaks, one data reading synchronization bug fixed for large datasets, //! and multiple source shortest distances support added. //! Both of this code and the original code implemented the parallel Dijkstra Algorithm from //! the paper "Accelerating large graph algorithms on the GPU using CUDA" (by Harish and Narayanan). //! //! \author Can //! \version 1.0 //! \date 2014-08-16 //! \copyright GNU Public License V3.0 // //*************************************************************************************** #ifndef DIJKSTRACL_DIJKSTRACL_H #define DIJKSTRACL_DIJKSTRACL_H #ifdef __APPLE__ #include "OpenCL/opencl.h" #else #include "CL/cl.h" #endif #include <iostream> #include "AdjacencyList.h" #include "Matrix.h" #include "typedefs.h" #include "Dijkstra.h" namespace Dijkstra { //! A simple wrapper class for the OpenCL implementation of the Parallel Dijkstra Algorithm //! for all-pair or selected-pair shortest distances calculation. class DijkstraCL : public Dijkstra { public: typedef TYPEDEFS_CL_INDEX cl_Index; //!< Size type for OpenCL. Check the hardware for supported types. typedef TYPEDEFS_CL_SCALAR cl_Scalar; //!< Value type for OpenCL. Check the hardware for supported types. //! Constructor. //! Create the shortest path problem from a predefined AdjacencyList shared pointer. //! The size type and value type of the GraphArray from the AdjacencyList must be compatible with cl_Index and cl_Scalar. DijkstraCL(std::shared_ptr<GraphUtils::AdjacencyList> adjList); //! Run the parallel shortest distance calculation with default or predefined parameters. //! The default behavior is to calculate all-pair shortest distance matrix using one GPU with the //! maximum FLOPS. int Run(); //! Get the result array pointer. //! The result is a row-major linear storage of the distance matrix. std::shared_ptr<std::vector<cl_Scalar>> GetResultsArray(); //! Get the result as a gsl::Matrix std::shared_ptr<gsl::Matrix> GetDistanceMatrix(); private: std::shared_ptr<GraphUtils::GraphArray<cl_Index, cl_Scalar>> graph_; //!< Predefined GraphArray shared pointer. cl_Index numVertices_; //!< number of vertices of the graph, calculated from graph_. std::vector<cl_Index> sourceVertices_; //!< the source vertices list from which the shortest distances to all vertices are calculated. std::shared_ptr<std::vector<cl_Scalar>> results_; //!< the result array pointer. cl_platform_id platform_; //!< the selected OpenCL platform. cl_context context_; //!< the selected OpenCL context. cl_device_id device_; //!< the selected OpenCL device. cl_int lastErr_; //!< the last error number from OpenCL C API. //! Initialize the selected OpenCL devices. cl_int InitializeDevices(); //! Select one device from the device list with the maximum FLOPS. cl_device_id GetMaxFlopsDevice(); //! Get the rounded-up of the global work size to be enough to cover all the global computing elements. //! Note that the size types are defined as type size_t according to OpenCL API. //! \param groupSize the number of computing elements of one workgroup. //! This is obtained by clGetDeviceInfo and depending on the hardware. //! \param globalSize the number of global computing elements. size_t RoundUpWorkSize(size_t groupSize, size_t globalSize); //! Simple helper function to check if all the elements of the mask array are zero (empty) using a loop. //! This function works on host memory. //! \param mask mask array pointer in host memory. //! \param maskSize the size of the mask array. bool isMaskEmpty(cl_Index * mask, cl_Index maskSize); //! Prepare the device memory. //! This function allocates the required device memory, create the host memory pointers, copy the graph data //! from host memory to device memory. //! \param context the OpenCL context. //! \param commandQueue the OpenCL command queue to enqueue the allocating and copy operations. //! \param graph the graph array to be copied. //! \param verticesDevice the pointer to where a device memory reference for vertices array is created. //! \param edgesDevice the pointer to where a device memory reference for edges array is created. //! \param weightsDevice the pointer to where a device memory reference for weights array is created. //! \param maskDevice the pointer to where a device memory reference for mask array is created. //! \param costDevice the pointer to where a device memory reference for cost array is created. //! \param updatingCostDevice the pointer to where a device memory reference for updating cost array is created. //! \param globalWorkSize rounded-up global work size. void PrepareDeviceMemory (cl_context context, cl_command_queue commandQueue, GraphUtils::GraphArray<cl_Index, cl_Scalar> &graph, cl_mem *verticesDevice, cl_mem *edgesDevice, cl_mem *weightsDevice, cl_mem *maskDevice, cl_mem *costDevice, cl_mem *updatingCostDevice, size_t globalWorkSize); //! Check if the returning error number of OpenCL C API is success; //! if not, show the current source file and line number, and terminate the program. //! There is no need to call this function directly. This works with the checkError() macro. void checkErrorFileLine(const char *file, const int lineNumber); //! Build the OpenCL kernel program on the specified context. //! \param context the OpenCL context on which the program is built. cl_program buildProgram(cl_context context); //! Run the OpenCL kernel program on specified context and device. //! \param context the OpenCL context on which the program runs. //! \param device the OpenCL device on which the program runs. cl_int RunOnDevice(cl_context context, cl_device_id device); }; } // namespace Dijkstra #endif //DIJKSTRACL_DIJKSTRACL_H
93a5a9bb3522011bcc1deaaae42b5c4623e1d969
86b643549713e0c34980ef7fb464c1450df36b8b
/pkg/inst/models/cipro.cpp
79cd5fa8b7533944683613f264992e589c47b4f0
[]
no_license
mrgsolve/depot
992ab39738855df12b56fbf03ef95576cecb4d02
2b69f04e3d9cdef1d71b4fc45c82b03e60a82568
refs/heads/master
2023-04-10T09:43:59.576601
2023-03-19T20:52:30
2023-03-19T20:52:30
166,537,710
7
1
null
null
null
null
UTF-8
C++
false
false
6,963
cpp
cipro.cpp
$PROB 1: Sadiq MW, Nielsen EI, Khachman D, Conil JM, Georges B, Houin G, Laffont CM, Karlsson MO, Friberg LE. A whole-body physiologically based pharmacokinetic (WB-PBPK) model of ciprofloxacin: a step towards predicting bacterial killing at sites of infection. J Pharmacokinet Pharmacodyn. 2017 Apr;44(2):69-79. doi: 10.1007/s10928-016-9486-9. Epub 2016 Aug 30. PubMed PMID: 27578330; PubMed Central PMCID: PMC5376394. $SET atol = 1E-9, rtol = 1E-9 $GLOBAL #define A1 ART #define A2 VEN #define A3 LUN #define A4 BRA #define A5 HRT #define A6 SKN #define A7 MUS #define A8 ADI #define A9 SPL #define A10 GIO #define A11 LIV #define A12 KID #define A13 RES #define A14 ELI $CMT @annotated ART : arteries VEN : veins LUN : lungs BRA : brain HRT : heart SKN : skin MUS : muscle ADI : adipose SPL : spleeen GIO : GIO LIV : liver KID : kidneys RES : rest ELI : elimiated drug $PARAM @annotated WT : 77 : weight (kg) SEX : 0 : sex CRCL: 82 : creatinine clearance (ml/min/1.73m2) FUP : 0.65 : unbound fraction $MAIN if(SEX!=1.0) { double VART = 0.017083*(WT) ; // Arterial volume (L) double VVEN = 0.051248*(WT) ; // Venous volume (L) double VLUN = 0.00643836*(WT) ; // Lungs weight (Kg) ICRP double VBRA = 0.0191781*(WT) ; // Brain volume (L) double VHRT = 0.004167*(WT) ; // Heart volume (L) ICRP double VSKN = 0.0383*(WT/1.18); // Skin volume (L) double VMUS = 0.2916*(WT) ; // Muscle volume (L) ICRP double VADI = 0.3*(WT/0.916) ; // Adipose volume (L) ICRP double VSPL = 0.00247*(WT) ; // Spleen volume (L) ICRP double VGIO = 0.01644*(WT) ; // GIO volume (L) stomach+SI colon ICRP double VHEP = 0.020724*(WT) ; // Hepatic volume (L) ICRP double VKID = 0.0042466*(WT) ; // Kidney volume (L) ICRP double VRES = 0.23220194*(WT) ; // Rest of body volume bones ICRP } if(SEX==1) { VART = 0.01918*(WT) ; // Arterial volume (L) VVEN = 0.05753*(WT) ; // Venous volume (L) VLUN = 0.00643836*(WT) ; // Lungs weight (Kg) ICRP VBRA = 0.01918*(WT) ; // Brain volume (L) VHRT = 0.004521*(WT) ; // Heart volume (L) ICRP VSKN = 0.045205*(WT/1.18) ; // Skin volume (L) VMUS = 0.3973*(WT) ; // Muscle volume (L) ICRP VADI = 0.171233*(WT/0.916); // Adipose volume (L) ICRP VSPL = 0.00247*(WT) ; // Spleen volume (L) ICRP VGIO = 0.01644*(WT) ; // GIO volume (L) stomach+SI colon ICRP VHEP = 0.02466*(WT) ; // Hepatic volume (L) ICRP VKID = 0.004247*(WT) ; // Kidney volume (L) ICRP VRES = 0.23612164*(WT) ; // Rest of body volume bones ICRP } double CO = (15*pow(WT,0.74)); // Cardiac output in L/h double QART = CO ; // Artery Blood flow double QVEN = CO ; // Venous blood flow double QLUN = CO ; // Lung blood flow if(SEX!=1.0) { double QBRA = CO*(0.12) ; // Brain blood flow double QHRT = CO*(0.05) ; // Heart blood flow double QSKN = CO*(0.05) ; // Skin blood flow double QMUS = CO*(0.12) ; // Muscle blood flow double QADI = CO*(0.085); // Adipose blood flow double QSPL = CO*(0.03) ; // Spleen blood flow double QGIO = CO*(0.16) ; // GIO blood flow double QKID = CO*(0.17) ; // Kidney blood flow double QHEPA= CO*(0.065); // Hepatic arterial blood flow double QRES = CO*(0.15) ; // Rest of Body blood flow } if(SEX==1.0) { QBRA = CO*(0.12) ; // Brain blood flow QHRT = CO*(0.04) ; // Heart blood flow QSKN = CO*(0.05) ; // Skin blood flow QMUS = CO*(0.17) ; // Muscle blood flow QADI = CO*(0.05) ; // Adipose blood flow QSPL = CO*(0.03) ; // Spleen blood flow QGIO = CO*(0.15) ; // GIO blood flow QKID = CO*(0.19) ; // Kidney blood flow QHEPA= CO*(0.065); // Hepatic arterial blood flow QRES = CO*(0.135); // Rest of Body blood flow } double QHEPT= QHEPA + QSPL + QGIO ; // Total hepatic bloodflow HEPA+SPL+GIO) double TVCLH = clh ; //Hepatic or Non-renal CL double CLH = TVCLH*exp(ETA(1)); double TVRSEC = resch ; //Factor renal secretion double RSEC = TVRSEC; double CRCL2 = CRCL > 150.0 ? 150.0 : CRCL; double CLR = (((CRCL2*60/1000.0)*FUP)*(1+RSEC))*exp(ETA(1)); double CL = CLR+CLH; double KLUN = klun*exp(ETA(2)); double KBRA = kbra*exp(ETA(2)); double KHRT = khrt*exp(ETA(2)); double KSKN = kskn*exp(ETA(2)); double KMUS = kmus*exp(ETA(2)); double KADI = kadi*exp(ETA(2)); double KSPL = kspl*exp(ETA(2)); double KGIO = kgio*exp(ETA(2)); double KHEP = khep*exp(ETA(2)); double KKID = kkid*exp(ETA(2)); double KRES = kres*exp(ETA(2)); $PARAM @annotated clh : exp(2.60) : Hepatic clearance resch : exp(0.674) : Renal secretion klun : exp(1.20) : KLUN kbra : exp(-0.257) : KBRA khrt : exp(1.30) : KHRT kskn : exp(-0.335) : KSKN kmus : exp(0.0229) : KMUS kadi : exp(-0.885) : KADI kspl : exp(0.668) : KSPL kgio : exp(1.21) : KGIO khep : exp(1.27) : KHEP kkid : exp(2.09) : KKID kres : exp(1.35) : KRES $ODE double C1 = A1/VART ; // AMT/Arterial volume double C2 = A2/VVEN ; // AMT/Venous volume double C3 = A3/VLUN ; // AMT/Lung volume double C4 = A4/VBRA ; // AMT/Brain volume double C5 = A5/VHRT ; // AMT/Heart volume double C6 = A6/VSKN ; // AMT/Skin volume double C7 = A7/VMUS ; // AMT/Muscle volume double C8 = A8/VADI ; // AMT/Adipose volume double C9 = A9/VSPL ; // AMT/Spleen volume double C10= A10/VGIO; // AMT/GIO volume double C11= A11/VHEP; // AMT/Hepatic volume double C12= A12/VKID; // AMT/Kidney volume double C13= A13/VRES; // AMT/Rest volume double VENIN1 = (C4*QBRA/KBRA)+(C5*QHRT/KHRT)+(C6*QSKN/KSKN)+(C7*QMUS/KMUS); double VENIN2 = (C8*QADI/KADI)+(C11*QHEPT/KHEP)+(C12*QKID/KKID)+(C13*QRES/KRES); double VENOUT = (QLUN*C2); double HEPIN = (C1*QHEPA)+(C9*QSPL/KSPL)+(C10*QGIO/KGIO); double HEPOUT = (C11*QHEPT/KHEP)+(C11*CLH*FUP/KHEP); dxdt_ART = (QLUN*C3/KLUN)-(QART*C1); dxdt_VEN = VENIN1+VENIN2-VENOUT; dxdt_LUN = (QVEN*C2)-(QLUN*C3/KLUN); dxdt_BRA = (QBRA*C1)-(QBRA*C4/KBRA); dxdt_HRT = (QHRT*C1)-(QHRT*C5/KHRT); dxdt_SKN = (QSKN*C1)-(QSKN*C6/KSKN); dxdt_MUS = (QMUS*C1)-(QMUS*C7/KMUS); dxdt_ADI = (QADI*C1)-(QADI*C8/KADI); dxdt_SPL = (QSPL*C1)-(QSPL*C9/KSPL); dxdt_GIO = (QGIO*C1)-(QGIO*C10/KGIO); dxdt_LIV = HEPIN-HEPOUT; dxdt_KID = (QKID*C1)-(QKID*C12/KKID)-C1*CLR; dxdt_RES = (QRES*C1)-(QRES*C13/KRES); dxdt_ELI = C1*CLR+(C11*CLH*FUP/KHEP); $TABLE double CC1 = A1/VART*FUP ; // AMT/Arterial volume double CC2 = A2/VVEN*FUP ; // AMT/Venous volume double CC3 = A3/VLUN*0.79 ; // AMT/Lung volume double CC4 = A4/VBRA*0.79 ; // AMT/Brain volume double CC5 = A5/VHRT*0.79 ; // AMT/Heart volume double CC6 = A6/VSKN*0.65 ; // AMT/Skin volume double CC7 = A7/VMUS*0.79 ; // AMT/Muscle volume double CC8 = A8/VADI*0.79 ; // AMT/Adipose volume double CC9 = A9/VSPL*0.79 ; // AMT/Spleen volume double CC10 = A10/VGIO*0.67; // AMT/GIO volume double CC11 = A11/VHEP*0.79; // AMT/Hepatic volume double CC12 = A12/VKID*0.79; // AMT/Kidney volume double CC13 = A13/VRES*0.79; // AMT/Rest volume $CAPTURE CP = A2/VVEN Ckid = CC12 Clung = CC3
20c536e80e0e5f85aff44a698700d368f172417a
e235d60f29481f9b19084509d039df8904bd9fd4
/core/xtraz.cpp
d57b6304a1f03d5f9506790555e61774655ed7ab
[]
no_license
AlexeyProkhin/ireen
a0aa6d8ebf3d801ee272a0e589b0372eb410d509
2ecdd6c66bf783f0a4afcf6e30e6b3cb508800e3
refs/heads/master
2021-01-19T11:15:19.998540
2012-10-14T07:57:13
2012-10-14T07:57:13
6,201,329
0
1
null
2012-10-14T07:57:14
2012-10-13T08:48:12
C++
UTF-8
C++
false
false
12,221
cpp
xtraz.cpp
/**************************************************************************** ** ** Ireen — cross-platform OSCAR protocol library ** ** Copyright © 2012 Ruslan Nigmatullin <euroelessar@yandex.ru> ** Alexey Prokhin <alexey.prokhin@yandex.ru> ** ***************************************************************************** ** ** $IREEN_BEGIN_LICENSE$ ** This program is free software: you can redistribute it and/or modify ** it under the terms of the GNU Lesser General Public License as ** published by the Free Software Foundation, either version 3 ** of the License, or (at your option) any later version. ** ** This program is distributed in the hope that it will be useful, ** but WITHOUT ANY WARRANTY; without even the implied warranty of ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. ** See the GNU General Public License for more details. ** ** You should have received a copy of the GNU Lesser General Public License ** along with this program. If not, see http://www.gnu.org/licenses/. ** $IREEN_END_LICENSE$ ** ****************************************************************************/ #include "xtraz.h" #include <QXmlStreamWriter> namespace Ireen { class XtrazRequestPacket: public ServerMessage { public: XtrazRequestPacket(const QString &uin, const QString &query, const QString &notify); }; class XtrazResponsePacket: public ServerResponseMessage { public: XtrazResponsePacket(const QString &uin, const QString &response, const Cookie &cookie); }; class XtrazData: public Tlv2711 { public: XtrazData(const QString &body, const Cookie &cookie = Cookie(true)); }; class XtrazDataPrivate : public QSharedData { public: QString service; QHash<QString, QString> data; protected: void parseData(QXmlStreamReader &xml); }; class XtrazRequestPrivate : public XtrazDataPrivate { public: QString pluginId; void parse(const QString &query, const QString &notify); private: void parseQuery(const QString &query); void parseNotify(const QString &notify); void parseSrv(QXmlStreamReader &xml); }; class XtrazResponsePrivate : public XtrazDataPrivate { public: QString event; void parse(const QString &response); void parseRet(QXmlStreamReader &xml); void parseSrv(QXmlStreamReader &xml); void parseVal(QXmlStreamReader &xml); }; class XtrazPrivate : public QSharedData { public: XtrazPrivate(); XtrazPrivate(const XtrazPrivate &data); XtrazPrivate &operator=(const XtrazPrivate &rhs); QScopedPointer<XtrazRequest> request; QScopedPointer<XtrazResponse> response; }; XtrazData::XtrazData(const QString &body, const Cookie &cookie) : Tlv2711(MsgPlugin, 0, 0, 1, cookie) { appendEmptyPacket(); // Plugin type ID append<quint16>(0x04f, LittleEndian); // Length append(Capability(0x3b60b3ef, 0xd82a6c45, 0xa4e09c5a, 0x5e67e865)); // type: xtraz script append<quint16>(xtrazNotify, LittleEndian); // Function ID append<quint32>(0x002a, LittleEndian); // Request type append(QString("Script Plug-in: Remote Notification Arrive")); // unknown append<quint32>(0x00000100); append<quint32>(0x00000000); append<quint32>(0x00000000); append<quint16>(0x0000); append<quint8>(0x00); // data DataUnit data; data.append<quint32>(body, LittleEndian); append<quint32>(data.data(), LittleEndian); } XtrazRequestPacket::XtrazRequestPacket(const QString &uin, const QString &query, const QString &notify) { QString body; { QXmlStreamWriter xml(&body); xml.writeStartElement("N"); xml.writeStartElement("QUERY"); xml.writeCharacters(query); xml.writeEndElement(); xml.writeStartElement("NOTIFY"); xml.writeCharacters(notify); xml.writeEndElement(); xml.writeEndElement(); } XtrazData data(body); Cookie cookie = data.cookie(); cookie.setUin(uin); setCookie(cookie); init(uin, 2, cookie); appendTLV(0x05, Channel2MessageData(1, data).data()); appendTLV(0x03); } XtrazResponsePacket::XtrazResponsePacket(const QString &uin, const QString &response, const Cookie &cookie) : ServerResponseMessage(uin, 2, 3, cookie) { QString body; { QXmlStreamWriter xml(&body); xml.writeStartElement("NR"); xml.writeStartElement("RES"); xml.writeCharacters(response); xml.writeEndElement(); xml.writeEndElement(); } XtrazData data(body, cookie); append(data.data()); } void XtrazDataPrivate::parseData(QXmlStreamReader &xml) { while (!xml.atEnd()) { xml.readNext(); if (xml.isStartElement()) data.insert(xml.name().toString(), xml.readElementText()); else if (xml.isEndElement()) return; } } XtrazRequest::XtrazRequest(const QString &serviceId, const QString &pluginId) : d(new XtrazRequestPrivate) { d->pluginId = pluginId; d->service = serviceId; } XtrazRequest::XtrazRequest(const XtrazRequest &data) : d(data.d) { } XtrazRequest::~XtrazRequest() { } XtrazRequest &XtrazRequest::operator=(const XtrazRequest &rhs) { d = rhs.d; return *this; } QString XtrazRequest::pluginId() const { return d.constData()->pluginId; } void XtrazRequest::setPluginId(const QString &pluginId) { d.data()->pluginId = pluginId; } QString XtrazRequest::serviceId() const { return d.constData()->service; } void XtrazRequest::setServiceId(const QString &serviceId) { d.data()->service = serviceId; } QString XtrazRequest::value(const QString &name, const QString &def) const { return d.constData()->data.value(name, def); } bool XtrazRequest::contains(const QString &name) const { return d.constData()->data.contains(name); } void XtrazRequest::setValue(const QString &name, const QString &value) { d.data()->data.insert(name, value); } SNAC XtrazRequest::snac(const QString &uin) const { QString query; { QXmlStreamWriter xml(&query); xml.writeStartElement("Q"); xml.writeStartElement("PluginID"); xml.writeCharacters(d->pluginId); xml.writeEndElement(); xml.writeEndElement(); query.replace('"', '\''); } QString notify; { QXmlStreamWriter xml(&notify); xml.writeStartElement("srv"); xml.writeStartElement("id"); xml.writeCharacters(d->service); xml.writeEndElement(); xml.writeStartElement("req"); QHashIterator<QString, QString> itr(d->data); while (itr.hasNext()) { itr.next(); xml.writeStartElement(itr.key()); xml.writeCharacters(itr.value()); xml.writeEndElement(); } xml.writeEndElement(); xml.writeEndElement(); notify.replace('"', '\''); } return XtrazRequestPacket(uin, query, notify); } void XtrazRequestPrivate::parse(const QString &query, const QString &notify) { parseQuery(query); if (!pluginId.isEmpty()) parseNotify(notify); } void XtrazRequestPrivate::parseQuery(const QString &query) { QXmlStreamReader xml(query); while (!xml.atEnd()) { xml.readNext(); if (xml.isStartElement()) { if (xml.name() == "PluginID") pluginId = xml.readElementText(); } } } void XtrazRequestPrivate::parseNotify(const QString &notify) { QXmlStreamReader xml(notify); while (!xml.atEnd()) { xml.readNext(); if (xml.isStartElement()) { if (xml.name() == "srv") parseSrv(xml); else xml.skipCurrentElement(); } else if (xml.isEndElement()) { return; } } } void XtrazRequestPrivate::parseSrv(QXmlStreamReader &xml) { while (!xml.atEnd()) { xml.readNext(); if (xml.isStartElement()) { if (xml.name() == "id") service = xml.readElementText(); else if (xml.name() == "req") parseData(xml); else xml.skipCurrentElement(); } else if (xml.isEndElement()) { return; } } } void XtrazResponsePrivate::parse(const QString &response) { QXmlStreamReader xml(response); while (!xml.atEnd()) { xml.readNext(); if (xml.isStartElement()) { if (xml.name() == "ret") parseRet(xml); else xml.skipCurrentElement(); } else if (xml.isEndElement()) { return; } } } void XtrazResponsePrivate::parseRet(QXmlStreamReader &xml) { event = xml.attributes().value("event").toString(); while (!xml.atEnd()) { xml.readNext(); if (xml.isStartElement()) { if (xml.name() == "srv") parseSrv(xml); else xml.skipCurrentElement(); } else if (xml.isEndElement()) { return; } } } void XtrazResponsePrivate::parseSrv(QXmlStreamReader &xml) { while (!xml.atEnd()) { xml.readNext(); if (xml.isStartElement()) { if (xml.name() == "id") service = xml.readElementText(); else if (xml.name() == "val") parseVal(xml); else xml.skipCurrentElement(); } else if (xml.isEndElement()) { return; } } } void XtrazResponsePrivate::parseVal(QXmlStreamReader &xml) { while (!xml.atEnd()) { xml.readNext(); if (xml.isStartElement()) { if (xml.name() == "Root") parseData(xml); else xml.skipCurrentElement(); } else if (xml.isEndElement()) { return; } } } XtrazResponse::XtrazResponse(const QString &serviceId, const QString &event) : d(new XtrazResponsePrivate) { d->service = serviceId; d->event = event; } XtrazResponse::XtrazResponse(const XtrazResponse &data) : d(data.d) { } XtrazResponse::~XtrazResponse() { } XtrazResponse &XtrazResponse::operator=(const XtrazResponse &rhs) { d = rhs.d; return *this; } QString XtrazResponse::event() const { return d.constData()->event; } void XtrazResponse::setEvent(const QString &event) { d.data()->event = event; } QString XtrazResponse::serviceId() const { return d.constData()->service; } void XtrazResponse::setServiceId(const QString &serviceId) { d.data()->service = serviceId; } QString XtrazResponse::value(const QString &name, const QString &def) const { return d.constData()->data.value(name, def); } bool XtrazResponse::contains(const QString &name) const { return d.constData()->data.contains(name); } void XtrazResponse::setValue(const QString &name, const QString &value) { d.data()->data.insert(name, value); } SNAC XtrazResponse::snac(const QString &uin, quint64 cookie) const { QString response; { QXmlStreamWriter xml(&response); xml.writeStartElement("ret"); xml.writeAttribute("event", d->event); xml.writeStartElement("srv"); xml.writeStartElement("id"); xml.writeCharacters(d->service); xml.writeEndElement(); xml.writeStartElement("val"); xml.writeAttribute("srv_id", d->service); xml.writeStartElement("Root"); QHashIterator<QString, QString> itr(d->data); while (itr.hasNext()) { itr.next(); xml.writeStartElement(itr.key()); xml.writeCharacters(itr.value()); xml.writeEndElement(); } xml.writeEndElement(); xml.writeEndElement(); xml.writeEndElement(); xml.writeEndElement(); response.replace('"', '\''); } return XtrazResponsePacket(uin, response, cookie); } XtrazPrivate::XtrazPrivate() { } XtrazPrivate::XtrazPrivate(const XtrazPrivate &data) : QSharedData(data) { if (data.request) { request.reset(new XtrazRequest); *request = *data.request; } if (data.response) { response.reset(new XtrazResponse); *response = *data.response; } } XtrazPrivate &XtrazPrivate::operator=(const XtrazPrivate &rhs) { if (rhs.request) { request.reset(new XtrazRequest); *request = *rhs.request; } if (rhs.response) { response.reset(new XtrazResponse); *response = *rhs.response; } return *this; } Xtraz::Xtraz(const QString &message) : d(new XtrazPrivate) { debug() << Q_FUNC_INFO << message; QXmlStreamReader xml(message); QString query; QString notify; QString response; while (!xml.atEnd()) { xml.readNext(); if (xml.isStartElement()) { if (xml.name() == "QUERY") query = xml.readElementText(); else if (xml.name() == "NOTIFY") notify = xml.readElementText(); else if (xml.name() == "RES") response = xml.readElementText(); } } if (!query.isEmpty() && !notify.isEmpty()) { d->request.reset(new XtrazRequest()); d->request->d->parse(query, notify); } else if (!response.isEmpty()) { d->response.reset(new XtrazResponse()); d->response->d->parse(response); } } Xtraz::~Xtraz() { } Xtraz &Xtraz::operator=(const Xtraz &rhs) { d = rhs.d; return *this; } Xtraz::Type Xtraz::type() { if (d->request) return Request; else if (d->response) return Response; else return Invalid; } XtrazRequest Xtraz::request() { return *d->request; } XtrazResponse Xtraz::response() { return *d->response; } Xtraz::Xtraz() { } Xtraz::Xtraz(const Xtraz &xtraz) { d = xtraz.d; } } // namespace Ireen
1008f2020e2e0116e3f175e4c355aa69e9a11a68
6f224b734744e38062a100c42d737b433292fb47
/clang/test/SemaCXX/PR28101.cpp
311c0f0db8174a8b3d74bea1f57877f0c38b01d6
[ "NCSA", "LLVM-exception", "Apache-2.0" ]
permissive
smeenai/llvm-project
1af036024dcc175c29c9bd2901358ad9b0e6610e
764287f1ad69469cc264bb094e8fcdcfdd0fcdfb
refs/heads/main
2023-09-01T04:26:38.516584
2023-08-29T21:11:41
2023-08-31T22:16:12
216,062,316
0
0
Apache-2.0
2019-10-18T16:12:03
2019-10-18T16:12:03
null
UTF-8
C++
false
false
1,403
cpp
PR28101.cpp
// RUN: %clang_cc1 -fsyntax-only -verify -std=c++17 %s template <typename T> struct A { A(void *) {} T(A<T>){}; // expected-error{{member 'A' cannot have template arguments}}\ // expected-error2{{member 'A' has the same name as its class}} }; // Don't crash. A<int> instantiate1() { return {nullptr}; } // expected-note{{in instantiation of template class 'A<int>' requested here}} template <typename T> struct B { B(void *) {} T B<T>{}; // expected-error{{member 'B' cannot have template arguments}}\ // expected-error2{{member 'B' has the same name as its class}} }; // Don't crash. B<int> instantiate2() { return {nullptr}; } // expected-note{{in instantiation of template class 'B<int>' requested here}} template <typename T> struct S {}; template <typename T> struct C { C(void *) {} T S<T>{}; // expected-error{{member 'S' cannot have template arguments}} }; // Don't crash. C<int> instantiate3() { return {nullptr}; } template <typename T, template <typename> typename U> class D { public: D(void *) {} T(D<T, U<T>>) {} // expected-error{{member 'D' cannot have template arguments}}\ // expected-error{{expected ';' at end of declaration list}}\ // expected-error2{{member 'D' has the same name as its class}} }; // Don't crash. D<int, S> instantiate4() { return D<int, S>(nullptr); } // expected-note{{in instantiation of template class 'D<int, S>' requested here}}
c6504771402d4de5c4fae312ffa3bb47885e4110
95c523234f29d055f79b76470d848ba7ecbfa9d3
/0313 Removing duplicated code/Account.cpp
a026bbbcb6c5d06debd3b00a31187b385253535f
[]
no_license
maxtwain/Core-Cpp-Training
d86af5a00a2c5948816b9c0101c66894626f206e
d2c5e1bf8b00bf19716dcdd2e1c9c44e2e40f1dc
refs/heads/master
2022-11-05T17:44:09.615493
2020-06-26T02:25:30
2020-06-26T02:25:30
274,889,256
0
0
null
null
null
null
UTF-8
C++
false
false
526
cpp
Account.cpp
#include "Account.hpp" Account::Account( std::string accountName, int initialBalance) : name{ accountName } { if (initialBalance > 0) { Account::balance = initialBalance; } } void Account::deposit(int depositAmount) { if (depositAmount > 0) { Account::balance += depositAmount; } } int Account::getBalance() const{ return Account::balance; } void Account::setName(std::string accountName) { Account::name = accountName; } std::string Account::getName() { return Account::name; }
3b83931c190bbeb7362c87761ed6c484091b73b8
21cd5f52fa06db753ff545a4c8f8e7cbe454b19f
/39.cpp
c5110abb1ae639f5fc782e1b790c19cffdf929a4
[]
no_license
NikhilSingh883/leetCode
75e3fe57523bf379f76c9b0b00a013c266ea803e
1b33b9398a952948036f3d0bb47a0a152db67548
refs/heads/master
2023-03-18T02:57:07.616812
2021-03-18T08:02:20
2021-03-18T08:02:20
335,343,426
0
0
null
null
null
null
UTF-8
C++
false
false
657
cpp
39.cpp
class Solution { public: void solve(vector<int>& pat,int idx,int sum,int tar,vector<vector<int>>& ans,vector<int>& can){ if(sum > tar) return; if(sum==tar){ ans.push_back(pat); return; } for(int i=idx;i<can.size();i++){ pat.push_back(can[i]); solve(pat,i,sum+can[i],tar,ans,can); pat.pop_back(); } } vector<vector<int>> combinationSum(vector<int>& candidates, int target) { vector<vector<int>> ans; vector<int> temp; solve(temp,0,0,target,ans,candidates); return ans; } };
22a084fe84233226c254b43d8adfb596199c436e
5cab06ca45252790696e2b263c28cd3af9b4dc81
/TrayIcon.cpp
9c2f7e0f0efd616319bae9de6685be478210e3c6
[]
no_license
Gucchiy/PicStand2.00
d91d412949cef06566ea2a923aa66b279fa07659
a59b2bea0a0cef4c837c8e96522faf71bc3d4f11
refs/heads/master
2021-01-12T13:15:39.981694
2016-10-28T02:32:57
2016-10-28T02:32:57
72,166,683
0
0
null
null
null
null
SHIFT_JIS
C++
false
false
1,209
cpp
TrayIcon.cpp
// TrayIcon.cpp: CTrayIcon クラスのインプリメンテーション // ////////////////////////////////////////////////////////////////////// #include "stdafx.h" #include "TrayIcon.h" #include "IdeaTech.h" #ifdef _DEBUG #undef THIS_FILE static char THIS_FILE[]=__FILE__; #define new DEBUG_NEW #endif ////////////////////////////////////////////////////////////////////// // 構築/消滅 ////////////////////////////////////////////////////////////////////// CTrayIcon::CTrayIcon( HWND hWnd, UINT uIconID, CString TipString, WPARAM wParam ) { m_NotifyIconData.cbSize = sizeof( NOTIFYICONDATA ); m_NotifyIconData.hWnd = hWnd; m_NotifyIconData.hIcon = (HICON)::LoadImage( AfxGetApp()->m_hInstance, MAKEINTRESOURCE( uIconID ), IMAGE_ICON, 16, 16, LR_DEFAULTCOLOR ); strcpy( m_NotifyIconData.szTip, TipString ); m_NotifyIconData.uID = wParam; m_NotifyIconData.uFlags = NIF_ICON | NIF_MESSAGE | NIF_TIP; m_NotifyIconData.uCallbackMessage = ITech_GetIdeaTechMessage(); Shell_NotifyIcon( NIM_ADD, &m_NotifyIconData ); } CTrayIcon::~CTrayIcon() { Shell_NotifyIcon( NIM_DELETE, &m_NotifyIconData ); } void CTrayIcon::OnMessage( LPARAM lParam) { // lParam にはマウスイベントが入る }
00238e01290e355f14d861afdc2cdcf35350814c
48b2358f9df77674e6b2964a7374a19504b8faf7
/src/process.cpp
c53314422f67ede2c5a3cc22087ad21f9981c115
[ "MIT" ]
permissive
masih84/CppND-System-Monitor
ad80d09feff12454b923dbd0dc57bb2038bb19b1
c2285dcf24b83ceb24591169185c6a3b7d097aae
refs/heads/master
2020-12-21T10:43:31.085123
2020-02-05T03:58:09
2020-02-05T03:58:09
236,407,870
0
0
null
null
null
null
UTF-8
C++
false
false
2,995
cpp
process.cpp
#include <unistd.h> #include <cctype> #include <sstream> #include <string> #include <vector> #include "process.h" #include "linux_parser.h" using std::string; using std::to_string; using std::vector; // Constructor to get the ID and Parse user and cmd. Process::Process(int pid){ pid_ = pid; user_ = LinuxParser::User(pid_); cmd_ = LinuxParser::Command(pid_); } // Return this process's ID int Process::Pid() { return pid_; } // Return this process's CPU utilization float Process::CpuUtilization() { string key; double utime; //#14 - CPU time spent in user code, measured in clock ticks double stime; //#15 - CPU time spent in kernel code, measured in clock ticks double cutime; //#16 Waited-for children's CPU time spent in user code (in clock ticks) double cstime; // #17 - Waited-for children's CPU time spent in kernel code (in clock ticks) double starttime; // #22 - Time when the process started, measured in clock ticks int Hertz = sysconf(_SC_CLK_TCK); // from getconf CLK_TCK vector<string> CPUStat = LinuxParser::CpuUtilization(pid_); for (int i = 0; i < 5 ; i++){ key = CPUStat.back(); CPUStat.pop_back(); switch(i){ case 0: std::istringstream(key) >> starttime; break; case 1: std::istringstream(key) >> cstime; break; case 2: std::istringstream(key) >> cutime; break; case 3: std::istringstream(key) >> stime; break; case 4: std::istringstream(key) >> utime; break; } } double total_time = utime + stime; //We also have to decide whether we want to include the time from children processes. //If we do, then we add those values to total_time: total_time = total_time + cutime + cstime; // Next we get the total elapsed time in seconds since the process started: long uptime = LinuxParser::ReadUpTime(); float seconds = uptime - (starttime / Hertz); //Finally we calculate the CPU usage percentage: cpu_ = (total_time / Hertz) / seconds; return cpu_; } // Return the command that generated this process string Process::Command() { return cmd_; } // Return this process's memory utilization string Process::Ram() { string ram_str = LinuxParser::Ram(pid_); std::istringstream(ram_str) >> ram_; return ram_str; } // Return the user (name) that generated this process string Process::User() { return user_; } // Return the age of this process (in seconds) long int Process::UpTime() { return LinuxParser::UpTime(pid_); } // Overload the "less than" comparison operator for Process objects bool Process::operator>(Process const& a) const { return (cpu_ > a.cpu_); } bool Process::operator<(Process const& a) const { return (cpu_ < a.cpu_); }
08f58f13b7331bf0a8493a546477096c6d348229
0bbab0e540cbafe9eb9014d0aaa846b19be948a7
/lec/cpp/17/inherit.cpp
d4000aed7d835a55d396c437913b3a2d3f7b3ba3
[ "MIT" ]
permissive
silenc3502/education
c013d1b80aae9297e9e32c78852de79b3b743bf8
a7d0a0d8a359800016971412373d4911a00053db
refs/heads/master
2020-04-08T11:58:00.061953
2019-06-03T04:16:19
2019-06-03T04:16:19
159,327,770
1
1
null
null
null
null
UTF-8
C++
false
false
869
cpp
inherit.cpp
#include <iostream> #include <string.h> using namespace std; class Person{ private: int age; char name[20]; public: Person(int a, char *n); int getAge(void); char *getName(void); }; Person::Person(int a, char *n){ age = a; strcpy(name, n); } char *Person::getName(void){ return name; } int Person::getAge(void){ return age; } class Student : public Person{ char major[20]; public: Student(int a, char *n, char *m); char *getMajor(void); void showInfo(void); }; Student::Student(int a, char *n, char *m) : Person(a, n){ strcpy(major, m); } char *Student::getMajor(void) { return major; } void Student::showInfo(void){ cout << "name : " << getName() << endl; cout << "age : " << getAge() << endl; cout << "major : " << getMajor() << endl; } int main(void){ Student Kim(24, "Kim Su Hyun", "Computer Science"); Kim.showInfo(); return 0; }
f0242da9dcbe5e67d9bf1c76de6b242717c95528
5877cbb8ded69be0c40136291ab86334e4c8dc22
/project_vVBO/model.h
658fe3abd5bedc6e4239ca120dc2e88e1ec99e29
[]
no_license
heguolun/3D-Model-Viewer
0b1969c83fd604aec5530cfab8166994b47fff6c
19adcb84747668cc6e84cc2b0ed1ce7425772e46
refs/heads/master
2023-03-20T05:35:44.501949
2015-08-27T08:08:33
2015-08-27T08:08:33
null
0
0
null
null
null
null
UTF-8
C++
false
false
1,220
h
model.h
#ifndef MODEL_H #define MODEL_H #include <QQuaternion> #include <cstddef> #include "myitems.h" #include "objload.h" typedef Polyhedron::HalfedgeDS HDS; class model { public: model(); ~model(); model(objLoad<HDS> objFile); void computeNormals(); Polyhedron poly(); void drawMe(); void drawTriangle(Polyhedron::Facet_const_handle f); bool generateVolumeMesh(); void drawVolume(); void drawTriangle(Point p1, Point p2, Point p3); std::vector<float> center(); float radius(); std::vector<float> max(); std::vector<float> min(); float getTransX(); float getTransY(); void setTransX(float f); void setTransY(float f); void translate(float xT, float yT); void moveToCenter(); void genBuffers(); void setColor (float r, float g, float b); private: bool hasVolume; GLuint _vboID; objLoad<HDS> *objPtr = 0; Polyhedron polyhedron; Mesh_Polyhedron mesh; QQuaternion currQ; C3T3 c3t3; Tr t; float m_radius; float red,green,blue; std::vector<float> m_center; std::vector<float> maxCoords; std::vector<float> minCoords; std::vector<float> currTrans; int numFaces; }; #endif // MODEL_H
7baa7855e2aa870378cff116dcc5ae2dd21116c9
9bdc92435c0ce04aba35231a2fc12d0762aa9a21
/restrict.cpp
a5016ceb955889ec670307b6d8aa4cc14cda5274
[]
no_license
ReiMatsuzaki/opt_cbf
f864b5c5f96faa60891636d3a155c26a49286410
120be94376337b2e78ee1f7b9d2351adcd4ef5a8
refs/heads/master
2021-01-17T07:09:18.623708
2016-10-12T12:51:52
2016-10-12T12:51:52
42,027,467
0
0
null
null
null
null
UTF-8
C++
false
false
8,189
cpp
restrict.cpp
#include <iostream> #include <stdexcept> #include <boost/lexical_cast.hpp> #include <Eigen/Core> #include <macros.hpp> #include "restrict.hpp" namespace { using std::cout; using std::endl; using boost::get; using std::string; using boost::lexical_cast; } namespace opt_cbf_h { // ========== Interface ================= template<class F> IRestriction<F>::~IRestriction() {} // ========== EvenTemp ================= /** * represent eventempered sequence * x_n = a r^n (n = 0, ..., N-1) * df/da = sum_n (dx_n/da)(df/dx_n) * = sum_n r^n df/dx_n * df/dr = sum_n (dx_n/dr)(df/dx_n) * = sum_n anr^{n-1} df/dx_n * * df/dada = sum_nm dx_n/da dx_m/da df^2/(dx_n)(dx_m) * = sum_nm r^n r^m f_nm * d^2f/dadr = d_a sum_n anr^{n-1} f_n * = sum_n nr^{n-1}f_n + sum_nm anr^{n+m-1} f_nm * d^2f/drdr = d_r sum_n anr^n{n-1} f_n * = an(n-1)r^{n-2} f_n * + n a r^{n-1} m a r^{m-1} f_nm */ template<class F> EvenTemp<F>::EvenTemp() : num_(1), x0_(1.0), ratio_(1.0) {} template<class F> EvenTemp<F>::~EvenTemp() {} template<class F> void EvenTemp<F>::SetVars(const Matrix<F, Dynamic, 1>& xs) { num_ = xs.rows(); x0_ = xs(0); ratio_ = xs(1) / xs(0); } template<class F> Matrix<F, Dynamic, 1> EvenTemp<F>::Grad(const Matrix<F, Dynamic, 1>& dxs) const { int num = dxs.rows(); F df_da = F(0); F df_dr = F(0); for(int i = 0; i < num; i++) { df_da += pow(ratio_, i) * dxs(i); df_dr += x0_ * F(i) * pow(ratio_, i-1) * dxs(i); } VecF grad(2); grad(0) = df_da; grad(1) = df_dr; return grad; } template<class F> Matrix<F, Dynamic, Dynamic> EvenTemp<F>::Hess (const Matrix<F, Dynamic, 1>& dxs, const Matrix<F, Dynamic, Dynamic>& ddxs) const { int num = ddxs.rows(); F d2f_dada = F(0); F d2f_dadr = F(0); F d2f_drdr = F(0); for(int n = 0; n < num; n++) { d2f_dadr += F(n) * pow(ratio_, n-1) * dxs(n); d2f_drdr += F(n*(n-1)) * x0_ * pow(ratio_, n-2) * dxs(n); for(int m = 0; m < num; m++) { F h = ddxs(n, m); d2f_dada += pow(ratio_, n+m) * h; d2f_dadr += pow(ratio_, n+m-1) * F(m) * x0_ * h; if(m != 0 && n != 0) d2f_drdr += pow(ratio_, n+m-2) * F(n*m) *x0_*x0_ * h; } } Matrix<F, Dynamic, Dynamic> hess(2, 2); hess << d2f_dada, d2f_dadr, d2f_dadr, d2f_drdr; return hess; } template<class F> Matrix<F, Dynamic, 1> EvenTemp<F>::Xs() const { VecF xs(num_); F val = x0_; for( int n = 0; n < num_; n++) { xs(n) = val; val *= ratio_; } return xs; } template<class F> void EvenTemp<F>::Shift(const VecF& ys) { x0_ += ys(0); ratio_ += ys(1); } // ============ Multi Even Temp ==================== template<class F> MultiEvenTemp<F>::MultiEvenTemp (const vector<int>& is) { int num = is.size(); num_x0_r_list_.resize(num); for(int n = 0; n < num; n++) num_x0_r_list_[n] = make_tuple(is[n], F(0), F(0)); } template<class F> MultiEvenTemp<F>::~MultiEvenTemp() {} template<class F> typename MultiEvenTemp<F>::IFF MultiEvenTemp<F>::num_x0_r(int i) const { if(i >= num_x0_r_list_.size()) { std::string msg; SUB_LOCATION(msg); msg += "\n index exceed size of vector\n"; throw std::runtime_error(msg); } return num_x0_r_list_[i]; } template<class F> void MultiEvenTemp<F>::SetVars(const VecF& xs) { int acc(0); for(IT it = num_x0_r_list_.begin(), it_end = num_x0_r_list_.end(); it != it_end; ++it) { if(acc+1 >= xs.size() ) { std::string msg; SUB_LOCATION(msg); msg += "\n acc exceed xs.size \n"; throw std::runtime_error(msg); } int num = get<0>(*it); F x0 = xs(acc); F r = xs(acc + 1) / xs(acc); acc += num; *it = make_tuple(num, x0, r); } } template<class F> typename MultiEvenTemp<F>::VecF MultiEvenTemp<F>::Xs() const { VecF xs = VecF::Zero(this->size()); int ni_m1(0); for(CIT it = num_x0_r_list_.begin(), it_end = num_x0_r_list_.end(); it != it_end; ++it) { int ni = ni_m1 + get<0>(*it); F a = get<1>(*it); F r = get<2>(*it); for(int k = ni_m1; k < ni; k++) { xs(k) = a * pow(r, k - ni_m1); } ni_m1 = ni; } return xs; } template<class F> int MultiEvenTemp<F>::size() const { int acc(0); for(CIT it = num_x0_r_list_.begin(), it_end = num_x0_r_list_.end(); it != it_end; ++it) { acc += get<0>(*it); } return acc; } template<class F> typename MultiEvenTemp<F>::VecF MultiEvenTemp<F>::Grad(const VecF& g) const { if(g.rows() != this->size()) { std::string msg; SUB_LOCATION(msg); msg += "\nsize is invalid\n"; msg += boost::lexical_cast<string>(g.rows()); msg += " "; msg += boost::lexical_cast<string>(this->size()); } int num_rest = num_x0_r_list_.size(); VecF grad(num_rest * 2); // see ipython notebook for variable notations int ni_m1(0); // represent n_{i-1} for(int i = 0; i < num_rest; i++) { F df_da(0), df_dr(0); int ki_max = get<0>(num_x0_r_list_[i]); F ai = get<1>(num_x0_r_list_[i]); F ri = get<2>(num_x0_r_list_[i]); int ni = ni_m1 + ki_max; for(int k = ni_m1; k < ni; k++) { df_da += g(k) * pow(ri, k - ni_m1); df_dr += g(k) * ai * F(k-ni_m1) * pow(ri, k-ni_m1-1); } grad(2*i) = df_da; grad(2*i+1) = df_dr; ni_m1 = ni; } return grad; } template<class F> typename MultiEvenTemp<F>::MatF MultiEvenTemp<F>::Hess (const VecF& g, const MatF& h) const { if(g.rows() != this->size() || g.rows() != h.rows() || g.rows() != h.cols() ) { std::string msg; SUB_LOCATION(msg); msg += "\nsize is invalid\n"; throw std::runtime_error(msg); } int num_rest = num_x0_r_list_.size(); MatF hess(num_rest * 2, num_rest * 2); int ni_m1(0); for(int i = 0; i < num_rest; i++) { int ki_max = get<0>(num_x0_r_list_[i]); F ai = get<1>(num_x0_r_list_[i]); F ri = get<2>(num_x0_r_list_[i]); int ni = ni_m1 + ki_max; int nj_m1(0); for(int j = 0; j < num_rest; j++) { int kj_max = get<0>(num_x0_r_list_[j]); F aj = get<1>(num_x0_r_list_[j]); F rj = get<2>(num_x0_r_list_[j]); int nj = nj_m1 + kj_max; F d2f_dada(0), d2f_dadr(0), d2f_drdr(0); for(int k = ni_m1; k < ni; k++) { if(i == j) { F gk = g(k); d2f_dadr += gk * F(k-ni_m1) * pow(ri, k-ni_m1-1); d2f_drdr += gk * ai * F((k-ni_m1)*(k-ni_m1-1)) * pow(ri, k-ni_m1-2); } for(int l = nj_m1; l < nj; l++) { F hkl = h(k, l); d2f_dada += hkl * pow(ri, k - ni_m1) * pow(rj, l - nj_m1); d2f_dadr += hkl * pow(ri, k - ni_m1) * aj * F(l-nj_m1) * pow(rj, l-nj_m1-1); d2f_drdr += hkl * ai * F(k-ni_m1) * pow(ri, k-ni_m1-1) * aj * F(l-nj_m1) * pow(rj, l-nj_m1-1); } } nj_m1 = nj; hess(2*i, 2*j ) = d2f_dada; hess(2*i+1, 2*j ) = d2f_dadr; hess(2*i, 2*j+1) = d2f_dadr; hess(2*i+1, 2*j+1) = d2f_drdr; } ni_m1 = ni; } return hess; } template<class F> void MultiEvenTemp<F>::Shift(const VecF& dz) { if(num_x0_r_list_.size() * 2 != dz.rows()) { string msg; SUB_LOCATION(msg); msg += "\ninvalid size\n"; throw std::runtime_error(msg); } int i(0); for(IT it = num_x0_r_list_.begin(), it_end = num_x0_r_list_.end(); it != it_end; ++it) { int m = get<0>(*it); F a = get<1>(*it); F r = get<2>(*it); *it = make_tuple(m, a + dz(2*i), r + dz(2*i+1)); i++; } } // ============ Explicit Instance ================== typedef std::complex<double> CD; template class IRestriction<double>; template class IRestriction<CD>; template class NoRestriction<double>; template class NoRestriction<CD>; template class EvenTemp<double>; template class EvenTemp<CD>; template class MultiEvenTemp<double>; template class MultiEvenTemp<CD>; }
a2ef83f101e298664ebc12efd988236c5f4367b4
12beb4d342edd87bd7c5987b73c4685cc63b44ee
/indoorgmlcore/type_gml.COperationParameterGroupType.h
cd3d0f0fad69b4a6152968c8ff7e9017a8a69baa
[]
no_license
STEMLab/IndoorGML4CPP
457e32d1008c7d24f2953baee68f6c126f5cfba1
58245cb0b38696749d84cc0cf35360b092e317cd
refs/heads/master
2023-04-23T09:54:50.244983
2021-05-13T07:51:44
2021-05-13T07:51:44
366,909,427
0
0
null
null
null
null
UTF-8
C++
false
false
2,291
h
type_gml.COperationParameterGroupType.h
#ifndef _ALTOVA_INCLUDED_indoorgmlcore_ALTOVA_gml_ALTOVA_COperationParameterGroupType #define _ALTOVA_INCLUDED_indoorgmlcore_ALTOVA_gml_ALTOVA_COperationParameterGroupType #include "type_gml.CAbstractGeneralOperationParameterType.h" namespace indoorgmlcore { namespace gml { class COperationParameterGroupType : public ::indoorgmlcore::gml::CAbstractGeneralOperationParameterType { public: indoorgmlcore_EXPORT COperationParameterGroupType(MSXML2::IXMLDOMNodePtr const& init); indoorgmlcore_EXPORT COperationParameterGroupType(COperationParameterGroupType const& init); void operator=(COperationParameterGroupType const& other) { m_node = other.m_node; } static altova::meta::ComplexType StaticInfo() { return altova::meta::ComplexType(types + _altova_ti_gml_altova_COperationParameterGroupType); } MemberElement<xs::CpositiveIntegerType, _altova_mi_gml_altova_COperationParameterGroupType_altova_maximumOccurs> maximumOccurs; struct maximumOccurs { typedef Iterator<xs::CpositiveIntegerType> iterator; }; MemberElement<gml::CAbstractGeneralOperationParameterPropertyType, _altova_mi_gml_altova_COperationParameterGroupType_altova_parameter> parameter; struct parameter { typedef Iterator<gml::CAbstractGeneralOperationParameterPropertyType> iterator; }; MemberElement<gml::CAbstractGeneralOperationParameterPropertyType, _altova_mi_gml_altova_COperationParameterGroupType_altova_generalOperationParameter> generalOperationParameter; struct generalOperationParameter { typedef Iterator<gml::CAbstractGeneralOperationParameterPropertyType> iterator; }; MemberElement<gml::CAbstractGeneralOperationParameterPropertyType, _altova_mi_gml_altova_COperationParameterGroupType_altova_includesParameter> includesParameter; struct includesParameter { typedef Iterator<gml::CAbstractGeneralOperationParameterPropertyType> iterator; }; MemberElement<gml::CAbstractGeneralOperationParameterPropertyType, _altova_mi_gml_altova_COperationParameterGroupType_altova_usesParameter> usesParameter; struct usesParameter { typedef Iterator<gml::CAbstractGeneralOperationParameterPropertyType> iterator; }; indoorgmlcore_EXPORT void SetXsiType(); }; } // namespace gml } // namespace indoorgmlcore #endif // _ALTOVA_INCLUDED_indoorgmlcore_ALTOVA_gml_ALTOVA_COperationParameterGroupType
e982876040b072fa3d01e514064ff9a253b6c980
79f6996fc2e01d940fa11b4fef0f1c1652a30524
/src/bitcoin/litecoin.h
f966f83cca721185bdbf20421fe133eedfbb7588
[ "MIT" ]
permissive
mmgrant73/bitcoinapi
1305712d94567ee31b09567e0ecbf52528ac0143
a7886ea4315852a457efed6e6f44d0b65a8993d6
refs/heads/master
2021-01-20T11:05:08.354772
2013-09-19T02:16:29
2013-09-19T02:16:29
12,690,611
1
0
null
null
null
null
UTF-8
C++
false
false
400
h
litecoin.h
#include <jsonrpc/rpc.h> #include <iostream> #include <string.h> #include "bitcoin.h" using namespace jsonrpc; using namespace std; class litecoinapi: public bitcoinapi{ public: string connection; string user; string password; string host; int port; litecoinapi(string user, string password, string host, int port):bitcoinapi(user,password,host,port){}; int getnetworkhashps(); };
da140758d23619373145777222d58b845ac85a50
afb7006e47e70c1deb2ddb205f06eaf67de3df72
/third_party/jpeg-xl/lib/jxl/color_encoding_internal_test.cc
899dd55b55877f2742cb417c1cbead86c299504a
[ "BSD-3-Clause", "LicenseRef-scancode-generic-cla", "LicenseRef-scancode-unknown-license-reference" ]
permissive
marco-c/gecko-dev-wordified
a66383f85db33911b6312dd094c36f88c55d2e2c
3509ec45ecc9e536d04a3f6a43a82ec09c08dff6
refs/heads/master
2023-08-10T16:37:56.660204
2023-08-01T00:39:54
2023-08-01T00:39:54
211,297,590
1
0
null
null
null
null
UTF-8
C++
false
false
5,744
cc
color_encoding_internal_test.cc
/ / Copyright ( c ) the JPEG XL Project Authors . All rights reserved . / / / / Use of this source code is governed by a BSD - style / / license that can be found in the LICENSE file . # include " lib / jxl / color_encoding_internal . h " # include < stdio . h > # include " lib / jxl / encode_internal . h " # include " lib / jxl / test_utils . h " # include " lib / jxl / testing . h " namespace jxl { namespace { TEST ( ColorEncodingTest RoundTripAll ) { for ( const test : : ColorEncodingDescriptor & cdesc : test : : AllEncodings ( ) ) { const ColorEncoding c_original = test : : ColorEncodingFromDescriptor ( cdesc ) ; / / Verify Set ( Get ) yields the same white point / primaries / gamma . { ColorEncoding c ; EXPECT_TRUE ( c . SetWhitePoint ( c_original . GetWhitePoint ( ) ) ) ; EXPECT_EQ ( c_original . white_point c . white_point ) ; } { ColorEncoding c ; EXPECT_TRUE ( c . SetPrimaries ( c_original . GetPrimaries ( ) ) ) ; EXPECT_EQ ( c_original . primaries c . primaries ) ; } if ( c_original . tf . IsGamma ( ) ) { ColorEncoding c ; EXPECT_TRUE ( c . tf . SetGamma ( c_original . tf . GetGamma ( ) ) ) ; EXPECT_TRUE ( c_original . tf . IsSame ( c . tf ) ) ; } } } TEST ( ColorEncodingTest CustomWhitePoint ) { ColorEncoding c ; / / Nonsensical values CIExy xy_in ; xy_in . x = 0 . 8 ; xy_in . y = 0 . 01 ; EXPECT_TRUE ( c . SetWhitePoint ( xy_in ) ) ; const CIExy xy = c . GetWhitePoint ( ) ; ColorEncoding c2 ; EXPECT_TRUE ( c2 . SetWhitePoint ( xy ) ) ; EXPECT_TRUE ( c . SameColorSpace ( c2 ) ) ; } TEST ( ColorEncodingTest CustomPrimaries ) { ColorEncoding c ; PrimariesCIExy xy_in ; / / Nonsensical values xy_in . r . x = - 0 . 01 ; xy_in . r . y = 0 . 2 ; xy_in . g . x = 0 . 4 ; xy_in . g . y = 0 . 401 ; xy_in . b . x = 1 . 1 ; xy_in . b . y = - 1 . 2 ; EXPECT_TRUE ( c . SetPrimaries ( xy_in ) ) ; const PrimariesCIExy xy = c . GetPrimaries ( ) ; ColorEncoding c2 ; EXPECT_TRUE ( c2 . SetPrimaries ( xy ) ) ; EXPECT_TRUE ( c . SameColorSpace ( c2 ) ) ; } TEST ( ColorEncodingTest CustomGamma ) { ColorEncoding c ; # ifndef JXL_CRASH_ON_ERROR EXPECT_FALSE ( c . tf . SetGamma ( 0 . 0 ) ) ; EXPECT_FALSE ( c . tf . SetGamma ( - 1E - 6 ) ) ; EXPECT_FALSE ( c . tf . SetGamma ( 1 . 001 ) ) ; # endif EXPECT_TRUE ( c . tf . SetGamma ( 1 . 0 ) ) ; EXPECT_FALSE ( c . tf . IsGamma ( ) ) ; EXPECT_TRUE ( c . tf . IsLinear ( ) ) ; EXPECT_TRUE ( c . tf . SetGamma ( 0 . 123 ) ) ; EXPECT_TRUE ( c . tf . IsGamma ( ) ) ; const double gamma = c . tf . GetGamma ( ) ; ColorEncoding c2 ; EXPECT_TRUE ( c2 . tf . SetGamma ( gamma ) ) ; EXPECT_TRUE ( c . SameColorEncoding ( c2 ) ) ; EXPECT_TRUE ( c2 . tf . IsGamma ( ) ) ; } TEST ( ColorEncodingTest InternalExternalConversion ) { ColorEncoding source_internal ; JxlColorEncoding external ; ColorEncoding destination_internal ; for ( int i = 0 ; i < 100 ; i + + ) { source_internal . SetColorSpace ( static_cast < ColorSpace > ( rand ( ) % 4 ) ) ; CIExy wp ; wp . x = ( float ( rand ( ) ) / float ( ( RAND_MAX ) ) * 0 . 5 ) + 0 . 25 ; wp . y = ( float ( rand ( ) ) / float ( ( RAND_MAX ) ) * 0 . 5 ) + 0 . 25 ; EXPECT_TRUE ( source_internal . SetWhitePoint ( wp ) ) ; if ( source_internal . HasPrimaries ( ) ) { PrimariesCIExy primaries ; primaries . r . x = ( float ( rand ( ) ) / float ( ( RAND_MAX ) ) * 0 . 5 ) + 0 . 25 ; primaries . r . y = ( float ( rand ( ) ) / float ( ( RAND_MAX ) ) * 0 . 5 ) + 0 . 25 ; primaries . g . x = ( float ( rand ( ) ) / float ( ( RAND_MAX ) ) * 0 . 5 ) + 0 . 25 ; primaries . g . y = ( float ( rand ( ) ) / float ( ( RAND_MAX ) ) * 0 . 5 ) + 0 . 25 ; primaries . b . x = ( float ( rand ( ) ) / float ( ( RAND_MAX ) ) * 0 . 5 ) + 0 . 25 ; primaries . b . y = ( float ( rand ( ) ) / float ( ( RAND_MAX ) ) * 0 . 5 ) + 0 . 25 ; EXPECT_TRUE ( source_internal . SetPrimaries ( primaries ) ) ; } CustomTransferFunction tf ; EXPECT_TRUE ( tf . SetGamma ( ( float ( rand ( ) ) / float ( ( RAND_MAX ) ) * 0 . 5 ) + 0 . 25 ) ) ; source_internal . tf = tf ; source_internal . rendering_intent = static_cast < RenderingIntent > ( rand ( ) % 4 ) ; ConvertInternalToExternalColorEncoding ( source_internal & external ) ; EXPECT_TRUE ( ConvertExternalToInternalColorEncoding ( external & destination_internal ) ) ; EXPECT_EQ ( source_internal . GetColorSpace ( ) destination_internal . GetColorSpace ( ) ) ; EXPECT_EQ ( source_internal . white_point destination_internal . white_point ) ; EXPECT_EQ ( source_internal . GetWhitePoint ( ) . x destination_internal . GetWhitePoint ( ) . x ) ; EXPECT_EQ ( source_internal . GetWhitePoint ( ) . y destination_internal . GetWhitePoint ( ) . y ) ; if ( source_internal . HasPrimaries ( ) ) { EXPECT_EQ ( source_internal . GetPrimaries ( ) . r . x destination_internal . GetPrimaries ( ) . r . x ) ; EXPECT_EQ ( source_internal . GetPrimaries ( ) . r . y destination_internal . GetPrimaries ( ) . r . y ) ; EXPECT_EQ ( source_internal . GetPrimaries ( ) . g . x destination_internal . GetPrimaries ( ) . g . x ) ; EXPECT_EQ ( source_internal . GetPrimaries ( ) . g . y destination_internal . GetPrimaries ( ) . g . y ) ; EXPECT_EQ ( source_internal . GetPrimaries ( ) . b . x destination_internal . GetPrimaries ( ) . b . x ) ; EXPECT_EQ ( source_internal . GetPrimaries ( ) . b . y destination_internal . GetPrimaries ( ) . b . y ) ; } EXPECT_EQ ( source_internal . tf . IsGamma ( ) destination_internal . tf . IsGamma ( ) ) ; if ( source_internal . tf . IsGamma ( ) ) { EXPECT_EQ ( source_internal . tf . GetGamma ( ) destination_internal . tf . GetGamma ( ) ) ; } else { EXPECT_EQ ( source_internal . tf . GetTransferFunction ( ) destination_internal . tf . GetTransferFunction ( ) ) ; } EXPECT_EQ ( source_internal . rendering_intent destination_internal . rendering_intent ) ; } } } / / namespace } / / namespace jxl
51a40847ffbbd960c307bef30e98affd1460688d
727d4e4f8d8df32d15b466dece08dcf8b5387c9e
/space/src/reckoner/server/PacketQueue.hpp
2f0885717f625cd63ebb7d12f5903e73718eff16
[]
no_license
brendonh/reckoner
90fb0679f7163e42c8edffb1d6d8c9569dbc5721
3b0c46c0d25150884ccd23ad54011a183d24166f
refs/heads/master
2020-03-27T23:35:53.455638
2011-02-20T05:45:53
2011-02-20T05:45:53
855,118
0
0
null
null
null
null
UTF-8
C++
false
false
1,716
hpp
PacketQueue.hpp
#ifndef __RECKONER_SERVER_PACKETQUEUE #define __RECKONER_SERVER_PACKETQUEUE #include <vector> #include <algorithm> #include "reckoner/common/ReckonerTypes.hpp" #include "reckoner/common/ENetEndpoint.hpp" #include "reckoner/server/ClientList.hpp" namespace Reckoner { namespace Server { class PacketQueueEntry { public: PacketQueueEntry(ClientID cid, const Reckoner::Network::ENetPacketBuffer* buff) : clientID(cid), packetBuffer(buff) {} ClientID clientID; const Reckoner::Network::ENetPacketBuffer* packetBuffer; }; class PacketQueue { public: PacketQueue() : mQueue() {} void queue(ClientID clientID, const Reckoner::Network::ENetPacketBuffer* buff) { mQueue.push_back(PacketQueueEntry(clientID, buff)); } void sendTo(ClientList& clientList) { ClientID prevID = 0; Client* client; std::cout << "Queue length: " << mQueue.size() << std::endl; std::sort(mQueue.begin(), mQueue.end(), compareEntries); for(auto it = mQueue.begin(); it != mQueue.end(); ++it) { ClientID thisID = it->clientID; if (thisID != prevID) { client = clientList.clientByID(thisID); prevID = thisID; } if (NULL == client) continue; std::cout << "PACKET" << std::endl; client->send(*it->packetBuffer); } mQueue.clear(); } private: std::vector<PacketQueueEntry> mQueue; static bool compareEntries(const PacketQueueEntry& pqe1, const PacketQueueEntry& pqe2) { return pqe1.clientID < pqe2.clientID; } }; } } #endif
8ba634e64c42ecb276ffdcaaaf2af237d2f326a2
942629fb731650dc6341463aabde18132881f7ff
/IfcPlusPlus/src/ifcpp/IFC4/lib/IfcStructuralLoadLinearForce.cpp
17617c961bfd8b7496339311ecedf4c8253a4955
[ "MIT" ]
permissive
shelltdf/ifcplusplus
335b7352ac3e4a0979be02d6a23289182a1940d7
120ef686c4002c1cc77e3808fe00b8653cfcabd7
refs/heads/master
2021-05-07T19:19:27.968924
2019-05-03T13:58:14
2019-05-03T13:58:14
184,751,293
1
1
MIT
2019-05-03T12:26:00
2019-05-03T12:26:00
null
UTF-8
C++
false
false
5,283
cpp
IfcStructuralLoadLinearForce.cpp
/* Code generated by IfcQuery EXPRESS generator, www.ifcquery.com */ #include <sstream> #include <limits> #include "ifcpp/model/AttributeObject.h" #include "ifcpp/model/BuildingException.h" #include "ifcpp/model/BuildingGuid.h" #include "ifcpp/reader/ReaderUtil.h" #include "ifcpp/writer/WriterUtil.h" #include "ifcpp/IFC4/include/IfcLabel.h" #include "ifcpp/IFC4/include/IfcLinearForceMeasure.h" #include "ifcpp/IFC4/include/IfcLinearMomentMeasure.h" #include "ifcpp/IFC4/include/IfcStructuralLoadLinearForce.h" // ENTITY IfcStructuralLoadLinearForce IfcStructuralLoadLinearForce::IfcStructuralLoadLinearForce( int id ) { m_entity_id = id; } shared_ptr<BuildingObject> IfcStructuralLoadLinearForce::getDeepCopy( BuildingCopyOptions& options ) { shared_ptr<IfcStructuralLoadLinearForce> copy_self( new IfcStructuralLoadLinearForce() ); if( m_Name ) { copy_self->m_Name = dynamic_pointer_cast<IfcLabel>( m_Name->getDeepCopy(options) ); } if( m_LinearForceX ) { copy_self->m_LinearForceX = dynamic_pointer_cast<IfcLinearForceMeasure>( m_LinearForceX->getDeepCopy(options) ); } if( m_LinearForceY ) { copy_self->m_LinearForceY = dynamic_pointer_cast<IfcLinearForceMeasure>( m_LinearForceY->getDeepCopy(options) ); } if( m_LinearForceZ ) { copy_self->m_LinearForceZ = dynamic_pointer_cast<IfcLinearForceMeasure>( m_LinearForceZ->getDeepCopy(options) ); } if( m_LinearMomentX ) { copy_self->m_LinearMomentX = dynamic_pointer_cast<IfcLinearMomentMeasure>( m_LinearMomentX->getDeepCopy(options) ); } if( m_LinearMomentY ) { copy_self->m_LinearMomentY = dynamic_pointer_cast<IfcLinearMomentMeasure>( m_LinearMomentY->getDeepCopy(options) ); } if( m_LinearMomentZ ) { copy_self->m_LinearMomentZ = dynamic_pointer_cast<IfcLinearMomentMeasure>( m_LinearMomentZ->getDeepCopy(options) ); } return copy_self; } void IfcStructuralLoadLinearForce::getStepLine( std::stringstream& stream ) const { stream << "#" << m_entity_id << "= IFCSTRUCTURALLOADLINEARFORCE" << "("; if( m_Name ) { m_Name->getStepParameter( stream ); } else { stream << "$"; } stream << ","; if( m_LinearForceX ) { m_LinearForceX->getStepParameter( stream ); } else { stream << "$"; } stream << ","; if( m_LinearForceY ) { m_LinearForceY->getStepParameter( stream ); } else { stream << "$"; } stream << ","; if( m_LinearForceZ ) { m_LinearForceZ->getStepParameter( stream ); } else { stream << "$"; } stream << ","; if( m_LinearMomentX ) { m_LinearMomentX->getStepParameter( stream ); } else { stream << "$"; } stream << ","; if( m_LinearMomentY ) { m_LinearMomentY->getStepParameter( stream ); } else { stream << "$"; } stream << ","; if( m_LinearMomentZ ) { m_LinearMomentZ->getStepParameter( stream ); } else { stream << "$"; } stream << ");"; } void IfcStructuralLoadLinearForce::getStepParameter( std::stringstream& stream, bool /*is_select_type*/ ) const { stream << "#" << m_entity_id; } const std::wstring IfcStructuralLoadLinearForce::toString() const { return L"IfcStructuralLoadLinearForce"; } void IfcStructuralLoadLinearForce::readStepArguments( const std::vector<std::wstring>& args, const std::map<int,shared_ptr<BuildingEntity> >& map ) { const size_t num_args = args.size(); if( num_args != 7 ){ std::stringstream err; err << "Wrong parameter count for entity IfcStructuralLoadLinearForce, expecting 7, having " << num_args << ". Entity ID: " << m_entity_id << std::endl; throw BuildingException( err.str().c_str() ); } m_Name = IfcLabel::createObjectFromSTEP( args[0], map ); m_LinearForceX = IfcLinearForceMeasure::createObjectFromSTEP( args[1], map ); m_LinearForceY = IfcLinearForceMeasure::createObjectFromSTEP( args[2], map ); m_LinearForceZ = IfcLinearForceMeasure::createObjectFromSTEP( args[3], map ); m_LinearMomentX = IfcLinearMomentMeasure::createObjectFromSTEP( args[4], map ); m_LinearMomentY = IfcLinearMomentMeasure::createObjectFromSTEP( args[5], map ); m_LinearMomentZ = IfcLinearMomentMeasure::createObjectFromSTEP( args[6], map ); } void IfcStructuralLoadLinearForce::getAttributes( std::vector<std::pair<std::string, shared_ptr<BuildingObject> > >& vec_attributes ) const { IfcStructuralLoadStatic::getAttributes( vec_attributes ); vec_attributes.emplace_back( std::make_pair( "LinearForceX", m_LinearForceX ) ); vec_attributes.emplace_back( std::make_pair( "LinearForceY", m_LinearForceY ) ); vec_attributes.emplace_back( std::make_pair( "LinearForceZ", m_LinearForceZ ) ); vec_attributes.emplace_back( std::make_pair( "LinearMomentX", m_LinearMomentX ) ); vec_attributes.emplace_back( std::make_pair( "LinearMomentY", m_LinearMomentY ) ); vec_attributes.emplace_back( std::make_pair( "LinearMomentZ", m_LinearMomentZ ) ); } void IfcStructuralLoadLinearForce::getAttributesInverse( std::vector<std::pair<std::string, shared_ptr<BuildingObject> > >& vec_attributes_inverse ) const { IfcStructuralLoadStatic::getAttributesInverse( vec_attributes_inverse ); } void IfcStructuralLoadLinearForce::setInverseCounterparts( shared_ptr<BuildingEntity> ptr_self_entity ) { IfcStructuralLoadStatic::setInverseCounterparts( ptr_self_entity ); } void IfcStructuralLoadLinearForce::unlinkFromInverseCounterparts() { IfcStructuralLoadStatic::unlinkFromInverseCounterparts(); }
2688e621759c2e97a38a572fa337c574f19bc685
d75754837d39945422e6f180d4d632cda83e5b06
/Tree/Tree.cpp
03d456fa8afe595bda4d73c90b5fa09aa907e36e
[]
no_license
zhijuyingfeng/LuoGu
98676d5b74c1ff81ffb8e461063626d52e533e2a
1e0f28e293486ebf79b2848237a0db899efab4b1
refs/heads/master
2020-04-01T16:36:59.742304
2019-03-23T03:39:41
2019-03-23T03:39:41
153,389,543
0
0
null
null
null
null
UTF-8
C++
false
false
5,798
cpp
Tree.cpp
#include <cstdio> #include <stack> #include <queue> #include "Tree.h" #include <iostream> using namespace std; void Tree::MakeEmpty(TreeNode *T) { if(!T->Right&&!T->Left) { delete T; return; } if(T->Left) { MakeEmpty(T->Left); } if(T->Right) { MakeEmpty(T->Right); } } Tree::Tree() { T=new TreeNode; } Tree::~Tree() { MakeEmpty(this->T); } void Tree::DLRDriver(const TreeNode * T) { if(T) { cout<<T->key<<" "; } else { return; } if(T->Left) { DLRDriver(T->Left); } if(T->Right) { DLRDriver(T->Right); } } void Tree::LDRDriver(const TreeNode *T) { if(!T) { return; } if(T->Left) { LDRDriver(T->Left); } cout<<T->key<<" "; if(T->Right) { LDRDriver(T->Right); } } void Tree::LRDDriver(const TreeNode *T) { if(!T) { return; } if(T->Left) { LRDDriver(T->Left); } if(T->Right) { LRDDriver(T->Right); } cout<<T->key<<" "; } TreeNode* Tree::AddNodeDriver(int k, TreeNode* T) { if(!T) { T=new TreeNode(k); return T; } else if(k<T->key) { T->Left=AddNodeDriver(k,T->Left); } else if(k>T->key) { T->Right=AddNodeDriver(k,T->Right); } } TreeNode* Tree::FindNodeDriver(int k, TreeNode* T) { if(!T) { return NULL; } if(T->key==k) { return T; } else if(k<T->key) { return FindNodeDriver(k,T->Left); } else if(k>T->key) { return FindNodeDriver(k,T->Right); } } void Tree::LRD() { LRDDriver(this->T); cout<<endl; } void Tree::LDR() { LDRDriver(this->T); cout<<endl; } void Tree::DLR() { DLRDriver(this->T); cout<<endl; } void Tree::AddNode(int k) { AddNodeDriver(k,this->T); } void Tree::DeleteNode(int k) { this->T=DeleteNodeDriver(k,this->T); } TreeNode* Tree::FindNode(int k) { FindNodeDriver(k,this->T); } TreeNode* Tree::DeleteNodeDriver(int k, TreeNode* T) { if(!T)//The node doesn't exist { return NULL; } else if(k<T->key) { T->Left=DeleteNodeDriver(k,T->Left); } else if(k>T->key) { T->Right=DeleteNodeDriver(k,T->Right); } else if(!(T->Left&&T->Right))//zero or one child { TreeNode* temp=T; if(!T->Right)//T->Right==NULL { T=T->Left; } else if(!T->Left)//T->Left==NULL { T=T->Right; } delete temp; } else { TreeNode* max=FindMaxDriver(T->Left); T->key=max->key; T->Left=DeleteNodeDriver(max->key,T->Left); } return T; } void Tree::SetRoot(int k) { T->key=k; } TreeNode* Tree::FindMaxDriver(TreeNode *T) { if(!T) { return NULL; } if(T->Right) { FindMaxDriver(T->Right); } else { return T; } } int Tree::FindMax() { TreeNode* temp=FindMaxDriver(this->T); if(temp) { return temp->key; } else { return 0x80000000; } } void Tree::LevelTraversal() { TreeNode* temp; queue<TreeNode*> Q; if(this->T) { Q.push(T); } while(!Q.empty()) { temp=Q.front(); Q.pop(); cout<<temp->key<<" "; if(temp->Left) { Q.push(temp->Left); } if(temp->Right) { Q.push(temp->Right); } } } void Tree::InOrder()const { TreeNode* temp=this->T;//遍历指针 stack<TreeNode*> S; do { while(temp)//遍历指针向左下移动 { S.push(temp);//该子树沿途结点进栈 temp=temp->Left; } if(!S.empty())//栈不空时退栈 { temp=S.top(); S.pop();//退栈 cout<<temp->key<<" ";//访问 temp=temp->Right;//遍历指针进到右子树 } }while(temp||!S.empty()); cout<<endl; } void Tree::PreOrder2() const { stack<TreeNode*>S; TreeNode* temp=this->T; S.push(NULL); while(temp) { cout<<temp->key<<" ";// 访问结点 if(temp->Right) { S.push(temp->Right);// 预留右指针在栈中 } if(temp->Left) { temp=temp->Left;//进左子树 } else//左子树为空 { temp=S.top(); S.pop(); } } cout<<endl; } void Tree::PreOrder1() const { TreeNode* temp=this->T; stack<TreeNode*>S; do { while(temp) { S.push(temp); cout<<temp->key<<" "; temp=temp->Left; } if(!S.empty()) { temp=S.top(); S.pop(); temp=temp->Right; } }while(temp||!S.empty()); cout<<endl; } void Tree::PostOrder() const { stack<stkNode> S; TreeNode* temp=this->T;//遍历指针 stkNode w; do { while(temp) { w.T=temp; w.tag=L; S.push(w); temp=temp->Left; } bool ok=1;//继续循环标记, 用于R while(ok&&!S.empty()) { w=S.top(); S.pop(); temp=w.T; switch (w.tag) { case L: w.tag=R; S.push(w); ok=0; temp=temp->Right; break; case R: cout<<temp->key<<" "; break; } } }while(!S.empty());// 继续遍历其他结点 cout<<endl; }
daa41ef8bf5d19586926742a54867d72363a7723
22c9502ba474de7e256f404fe22e88c35007c17b
/roulette.cpp
9f9b1cdf4b9016a68c50398c57cd0e1eda238d8c
[]
no_license
kejbi/Roulette
1aaeb9ce346ca0035d4b159bc3e2098bfa461b60
f2f8360ddbd829af679092449031520c6a6c400b
refs/heads/master
2020-03-13T07:30:52.906011
2018-04-26T19:16:08
2018-04-26T19:16:08
131,026,865
0
0
null
null
null
null
UTF-8
C++
false
false
899
cpp
roulette.cpp
// // Created by kejbi on 24.04.18. // #include "roulette.h" Roulette::Roulette() { int numbers[]={0,32,15,19,4,21,2,25,17,34,6,27,13,36,11,30,8,23,10,5,24,16,33,1,20,14,31,9,22,18,29,7,28,12,35,3,26}; for(int i=0;i<37;i++){ if(i==0){ RouletteTile rt(0,green); tab.add_element(rt); } else if(i%2==1){ RouletteTile rt(numbers[i],red); tab.add_element(rt); } else{ RouletteTile rt(numbers[i],black); tab.add_element(rt); } } } void Roulette::spin() { int move=rand()%38; for(int i=0;i<move;i++){ tab.next(); } } color Roulette::getColor() { return tab.getActualContent().getColor(); } int Roulette::getValue() { return tab.getActualContent().getValue(); } RouletteTile Roulette::getActual() { return tab.getActualContent(); }
0fbfe301b4d0d938ada8d0d61252bde14116d7a0
fb7efe44f4d9f30d623f880d0eb620f3a81f0fbd
/third_party/WebKit/Source/core/layout/ng/inline/ng_physical_text_fragment.cc
85a177a39dd81fe93910fee40c60b1832755028e
[ "BSD-2-Clause", "LGPL-2.1-only", "LGPL-2.0-only", "LGPL-2.0-or-later", "GPL-1.0-or-later", "MIT", "Apache-2.0", "LicenseRef-scancode-warranty-disclaimer", "GPL-2.0-only", "LicenseRef-scancode-other-copyleft", "BSD-3-Clause" ]
permissive
wzyy2/chromium-browser
2644b0daf58f8b3caee8a6c09a2b448b2dfe059c
eb905f00a0f7e141e8d6c89be8fb26192a88c4b7
refs/heads/master
2022-11-23T20:25:08.120045
2018-01-16T06:41:26
2018-01-16T06:41:26
117,618,467
3
2
BSD-3-Clause
2022-11-20T22:03:57
2018-01-16T02:09:10
null
UTF-8
C++
false
false
2,215
cc
ng_physical_text_fragment.cc
// Copyright 2017 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "core/layout/ng/inline/ng_physical_text_fragment.h" #include "core/layout/ng/geometry/ng_physical_offset_rect.h" #include "core/layout/ng/inline/ng_line_height_metrics.h" #include "core/style/ComputedStyle.h" namespace blink { NGPhysicalOffsetRect NGPhysicalTextFragment::LocalVisualRect() const { if (!shape_result_) return {}; // TODO(kojii): Copying InlineTextBox logic from // InlineFlowBox::ComputeOverflow(). // // InlineFlowBox::ComputeOverflow() computes GlpyhOverflow first // (ComputeGlyphOverflow) then AddTextBoxVisualOverflow(). We probably don't // have to keep these two steps separated. // Glyph bounds is in logical coordinate, origin at the baseline. FloatRect visual_float_rect = shape_result_->Bounds(); // Make the origin at the logical top of this fragment. // ShapeResult::Bounds() is in logical coordinate with alphabetic baseline. const ComputedStyle& style = Style(); const SimpleFontData* font_data = style.GetFont().PrimaryFont(); visual_float_rect.SetY( visual_float_rect.Y() + font_data->GetFontMetrics().FixedAscent(kAlphabeticBaseline)); // TODO(kojii): Copying from AddTextBoxVisualOverflow() if (float stroke_width = style.TextStrokeWidth()) { visual_float_rect.Inflate(stroke_width / 2.0f); } // TODO(kojii): Implement emphasis marks. if (ShadowList* text_shadow = style.TextShadow()) { // TODO(kojii): Implement text shadow. } LayoutRect visual_rect = EnclosingLayoutRect(visual_float_rect); switch (LineOrientation()) { case NGLineOrientation::kHorizontal: return NGPhysicalOffsetRect(visual_rect); case NGLineOrientation::kClockWiseVertical: return {{size_.width - visual_rect.MaxY(), visual_rect.X()}, {visual_rect.Height(), visual_rect.Width()}}; case NGLineOrientation::kCounterClockWiseVertical: return {{visual_rect.Y(), size_.height - visual_rect.MaxX()}, {visual_rect.Height(), visual_rect.Width()}}; } NOTREACHED(); return {}; } } // namespace blink
a3ebf3e646fc73c1718f18d185f3de58a5aa3198
d1bc242882ce5b8983a6de93d6b9eb04b7031893
/anubis_win_x64/src/gutils/gtypeconv.h
da7cc0397ed971d9042fd18aa89fe29669216e10
[]
no_license
gsir-ying/anubis_win32
48f93e3e7869861739b525bc57e7fb743183ec7d
5ec381e1d624812c8039345a0ee38197ff4c8018
refs/heads/master
2023-03-24T08:05:18.730301
2021-03-23T04:03:53
2021-03-23T04:03:53
350,574,122
0
0
null
null
null
null
UTF-8
C++
false
false
2,194
h
gtypeconv.h
#ifndef GTYPECONV_H #define GTYPECONV_H /* ---------------------------------------------------------------------- (c) 2018 G-Nut Software s.r.o. (software@gnutsoftware.com) (c) 2011-2017 Geodetic Observatory Pecny, http://www.pecny.cz (gnss@pecny.cz) Research Institute of Geodesy, Topography and Cartography Ondrejov 244, 251 65, Czech Republic Purpose: type conversion utilities Version: $ Rev: $ 2011-04-26 /PV: created 2012-04-06 /JD: extracted type conversion utilities from previous utils.h -*/ #include <cmath> #include <string> #include <vector> #include <iomanip> #include <iostream> using namespace std; namespace gnut { bool double_eq(const double&, const double&); // double equivalence according to machine capability bool float_eq( const float&, const float&); // float equivalence according to machine capability double dround(double d); // round double string dbl2str(const double&, int p=3); // double to string conversion (width/digits by iomanip can be added !!!) double str2dbl(const string&); // string to double conversion (avoiding blanks) double strSci2dbl(const string&); // string (Scientific) to double conversion (including convert d,D to E!) #ifdef STR2DBL double str2dbl(const char*); // faster char* to double conversion (avoiding blanks) #endif string int2str(const int&); // integer to string conversion (widtht can be added !!!) int str2int(const string&); // string to integer conversion (avoiding blanks) size_t substitute(string& line, const string& a, const string& b, bool caseSensitive = true); string ltrim(const string&); // return trimmed string leading spaces string rtrim(const string&); // return trimmed string trailing spaces string trim(const string&); // returm trimmed string leading and trailing spaces string lc(string s); string uc(string s); int split(const string& s, const char delimiter, vector<string>& out); // return vector of split string double frac (double x); string floatWoutZero(double x, int i = 3); } // namespace #endif
930da61ef548b83d816f913f24b71ffa37e92c7d
2bf9ac8faede97faaa73413d3a0195d033223177
/640/g.cpp
f7b2338a607edf15fc1440b538d06476924e8258
[]
no_license
srj31/Codeforces_rounds
16ddbbeeabe67a2919ed815c5a5ae6002198813e
a800c36a24bf49bae6586b3acbd5b283f7148113
refs/heads/master
2022-10-14T02:11:15.235940
2020-06-05T13:59:17
2020-06-05T13:59:17
260,020,018
0
0
null
null
null
null
UTF-8
C++
false
false
462
cpp
g.cpp
#include<bits/stdc++.h> using namespace std; int main(){ int t; cin >> t; while(t--){ int n; cin >> n; if(n<=3){ cout << - 1 << endl; } else{ int start = 2; if(n%2)start = 1; while(start<n){ cout << start << " "; start+=2; } cout << n << " "; cout << n-3 << " "; cout << n-1 << " "; start = n-5; if(n>4){ while(start>0){ cout << start << " "; start-=2; } } cout << endl; } } }
89fb8b4ff744c0528965a1bcf9091a8125418ee5
51544a09a9710ad144aef2508a2e5a3c983984ec
/introduction-to-data-science/heap/main.cpp
d9274045cce9e84b64a2a6795374c881370255f3
[]
no_license
yc322/112
9c7103c7535b7bf15a73ac9c3399c1dff046a9ef
6451a9c33a79aa6967dcf918fbf1a227f267950f
refs/heads/master
2021-09-27T16:13:23.224035
2018-11-09T13:43:01
2018-11-09T13:43:01
110,914,766
0
0
null
null
null
null
UTF-8
C++
false
false
1,123
cpp
main.cpp
#include <iostream> #include "heap.h" using namespace std; template <class Record> bool visit(Record x,Record y) { if(x>y) return true; else return false; } template <class Record> bool visit2(Record x,Record y) { if(x<=y) return true; else return false; } int main() { /*Heap<int> my_heap; int n; cin>>n; my_heap.Build_Heap(n,visit); my_heap.print(); n=my_heap.Heap_Extract_top(visit); cout<<"max is"<<n<<endl; my_heap.print(); cout<<endl<<"after inset 6"<<endl; my_heap.Max_Heap_Insert(6); my_heap.print(); /* cout<<"please input the index you want to increase the key"; cin>>n; cout<<"the key"; int tmp; cin>>tmp; my_heap.Increase_Key(n,tmp); my_heap.print(); cout<<"please input the number you want to delete:"<<endl; cin>>n; my_heap.Delete(n,visit); my_heap.print(); my_heap.Heap_Sort(visit); my_heap.print(); */ int n; cout<<endl<<endl; Heap<int> min_heap; cout<<"please input the number"<<endl; cin>>n; min_heap.Build_Heap(n,visit2); min_heap.print(); return 0; }
cdabfb9163590ebc7846b75232ea44f13b5b1e95
c57819bebe1a3e1d305ae0cb869cdcc48c7181d1
/src/qt/src/3rdparty/webkit/Source/WebCore/platform/qt/RenderThemeQt.cpp
f98df886ba73bc49d4bc9d5f503a0fe625ed88cc
[ "BSD-3-Clause", "BSD-2-Clause", "LGPL-2.1-only", "LGPL-2.0-only", "Qt-LGPL-exception-1.1", "LicenseRef-scancode-generic-exception", "GPL-3.0-only", "GPL-1.0-or-later", "GFDL-1.3-only" ]
permissive
blowery/phantomjs
255829570e90a28d1cd597192e20314578ef0276
f929d2b04a29ff6c3c5b47cd08a8f741b1335c72
refs/heads/master
2023-04-08T01:22:35.426692
2012-10-11T17:43:24
2012-10-11T17:43:24
6,177,895
1
0
BSD-3-Clause
2023-04-03T23:09:40
2012-10-11T17:39:25
C++
UTF-8
C++
false
false
49,211
cpp
RenderThemeQt.cpp
/* * This file is part of the WebKit project. * * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) * * Copyright (C) 2006 Zack Rusin <zack@kde.org> * 2006 Dirk Mueller <mueller@kde.org> * 2006 Nikolas Zimmermann <zimmermann@kde.org> * Copyright (C) 2008 Holger Hans Peter Freyther * * All rights reserved. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * License as published by the Free Software Foundation; either * version 2 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Library General Public License for more details. * * You should have received a copy of the GNU Library General Public License * along with this library; see the file COPYING.LIB. If not, write to * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, * Boston, MA 02110-1301, USA. * */ #include "config.h" #include "RenderThemeQt.h" #include "CSSStyleSelector.h" #include "CSSStyleSheet.h" #include "CSSValueKeywords.h" #include "Chrome.h" #include "ChromeClientQt.h" #include "Color.h" #include "Document.h" #include "Font.h" #include "FontSelector.h" #include "GraphicsContext.h" #include "HTMLInputElement.h" #include "HTMLMediaElement.h" #include "HTMLNames.h" #if USE(QT_MOBILE_THEME) #include "QtMobileWebStyle.h" #endif #if ENABLE(VIDEO) #include "MediaControlElements.h" #endif #include "NotImplemented.h" #include "PaintInfo.h" #include "Page.h" #include "QWebPageClient.h" #include "QtStyleOptionWebComboBox.h" #include "qwebsettings.h" #include "RenderBox.h" #if ENABLE(PROGRESS_TAG) #include "RenderProgress.h" #endif #include "RenderSlider.h" #include "RenderTheme.h" #include "ScrollbarThemeQt.h" #include "TimeRanges.h" #include "UserAgentStyleSheets.h" #include <QApplication> #include <QColor> #include <QFile> #include <QLineEdit> #include <QMacStyle> #include <QPainter> #include <QPushButton> #include <QStyleFactory> #include <QStyleOptionButton> #include <QStyleOptionFrameV2> #if ENABLE(PROGRESS_TAG) #include <QStyleOptionProgressBarV2> #endif #include <QStyleOptionSlider> #include <QWidget> namespace WebCore { using namespace HTMLNames; inline static void initStyleOption(QWidget *widget, QStyleOption& option) { if (widget) option.initFrom(widget); else { /* If a widget is not directly available for rendering, we fallback to default value for an active widget. */ option.state = QStyle::State_Active | QStyle::State_Enabled; } } // These values all match Safari/Win/Chromium static const float defaultControlFontPixelSize = 13; static const float defaultCancelButtonSize = 9; static const float minCancelButtonSize = 5; static const float maxCancelButtonSize = 21; static const float defaultSearchFieldResultsDecorationSize = 13; static const float minSearchFieldResultsDecorationSize = 9; static const float maxSearchFieldResultsDecorationSize = 30; static const float defaultSearchFieldResultsButtonWidth = 18; #if USE(QT_MOBILE_THEME) namespace { float buttonPaddingLeft = 18; float buttonPaddingRight = 18; float buttonPaddingTop = 2; float buttonPaddingBottom = 3; float menuListPadding = 9; float textFieldPadding = 5; } #endif StylePainter::StylePainter(RenderThemeQt* theme, const PaintInfo& paintInfo) { init(paintInfo.context ? paintInfo.context : 0, theme->qStyle()); } StylePainter::StylePainter(ScrollbarThemeQt* theme, GraphicsContext* context) { init(context, theme->style()); } void StylePainter::init(GraphicsContext* context, QStyle* themeStyle) { painter = static_cast<QPainter*>(context->platformContext()); widget = 0; QPaintDevice* dev = 0; if (painter) dev = painter->device(); if (dev && dev->devType() == QInternal::Widget) widget = static_cast<QWidget*>(dev); style = themeStyle; if (painter) { // the styles often assume being called with a pristine painter where no brush is set, // so reset it manually oldBrush = painter->brush(); painter->setBrush(Qt::NoBrush); // painting the widget with anti-aliasing will make it blurry // disable it here and restore it later oldAntialiasing = painter->testRenderHint(QPainter::Antialiasing); painter->setRenderHint(QPainter::Antialiasing, false); } } StylePainter::~StylePainter() { if (painter) { painter->setBrush(oldBrush); painter->setRenderHints(QPainter::Antialiasing, oldAntialiasing); } } PassRefPtr<RenderTheme> RenderThemeQt::create(Page* page) { return adoptRef(new RenderThemeQt(page)); } PassRefPtr<RenderTheme> RenderTheme::themeForPage(Page* page) { if (page) return RenderThemeQt::create(page); static RenderTheme* fallback = RenderThemeQt::create(0).releaseRef(); return fallback; } RenderThemeQt::RenderThemeQt(Page* page) : RenderTheme() , m_page(page) , m_lineEdit(0) { QPushButton button; button.setAttribute(Qt::WA_MacSmallSize); QFont defaultButtonFont = QApplication::font(&button); QFontInfo fontInfo(defaultButtonFont); m_buttonFontFamily = defaultButtonFont.family(); #ifdef Q_WS_MAC m_buttonFontPixelSize = fontInfo.pixelSize(); #endif #if USE(QT_MOBILE_THEME) m_fallbackStyle = new QtMobileWebStyle; #else m_fallbackStyle = QStyleFactory::create(QLatin1String("windows")); #endif } RenderThemeQt::~RenderThemeQt() { delete m_fallbackStyle; #ifndef QT_NO_LINEEDIT delete m_lineEdit; #endif } #if USE(QT_MOBILE_THEME) bool RenderThemeQt::isControlStyled(const RenderStyle* style, const BorderData& border, const FillLayer& fill, const Color& backgroundColor) const { switch (style->appearance()) { case PushButtonPart: case ButtonPart: case MenulistPart: case SearchFieldPart: case TextFieldPart: case TextAreaPart: // Test the style to see if the UA border and background match. return (style->border() != border || *style->backgroundLayers() != fill || style->visitedDependentColor(CSSPropertyBackgroundColor) != backgroundColor); case CheckboxPart: case RadioPart: return false; default: return RenderTheme::isControlStyled(style, border, fill, backgroundColor); } } int RenderThemeQt::popupInternalPaddingBottom(RenderStyle* style) const { return 1; } #else // Remove this when SearchFieldPart is style-able in RenderTheme::isControlStyled() bool RenderThemeQt::isControlStyled(const RenderStyle* style, const BorderData& border, const FillLayer& fill, const Color& backgroundColor) const { switch (style->appearance()) { case SearchFieldPart: // Test the style to see if the UA border and background match. return (style->border() != border || *style->backgroundLayers() != fill || style->visitedDependentColor(CSSPropertyBackgroundColor) != backgroundColor); default: return RenderTheme::isControlStyled(style, border, fill, backgroundColor); } } #endif // for some widget painting, we need to fallback to Windows style QStyle* RenderThemeQt::fallbackStyle() const { return (m_fallbackStyle) ? m_fallbackStyle : QApplication::style(); } QStyle* RenderThemeQt::qStyle() const { #if USE(QT_MOBILE_THEME) return fallbackStyle(); #endif if (m_page) { QWebPageClient* pageClient = m_page->chrome()->client()->platformPageClient(); if (pageClient) return pageClient->style(); } return QApplication::style(); } String RenderThemeQt::extraDefaultStyleSheet() { String result = RenderTheme::extraDefaultStyleSheet(); #if ENABLE(NO_LISTBOX_RENDERING) result += String(themeQtNoListboxesUserAgentStyleSheet, sizeof(themeQtNoListboxesUserAgentStyleSheet)); #endif return result; } bool RenderThemeQt::supportsHover(const RenderStyle*) const { return true; } bool RenderThemeQt::supportsFocusRing(const RenderStyle* style) const { switch (style->appearance()) { case CheckboxPart: case RadioPart: case PushButtonPart: case SquareButtonPart: case ButtonPart: case ButtonBevelPart: case ListboxPart: case ListItemPart: case MenulistPart: case MenulistButtonPart: case SliderHorizontalPart: case SliderVerticalPart: case SliderThumbHorizontalPart: case SliderThumbVerticalPart: case SearchFieldPart: case SearchFieldResultsButtonPart: case SearchFieldCancelButtonPart: case TextFieldPart: case TextAreaPart: return true; default: return false; } } int RenderThemeQt::baselinePosition(const RenderObject* o) const { if (!o->isBox()) return 0; if (o->style()->appearance() == CheckboxPart || o->style()->appearance() == RadioPart) return toRenderBox(o)->marginTop() + toRenderBox(o)->height() - 2; // Same as in old khtml return RenderTheme::baselinePosition(o); } bool RenderThemeQt::controlSupportsTints(const RenderObject* o) const { if (!isEnabled(o)) return false; // Checkboxes only have tint when checked. if (o->style()->appearance() == CheckboxPart) return isChecked(o); // For now assume other controls have tint if enabled. return true; } bool RenderThemeQt::supportsControlTints() const { return true; } int RenderThemeQt::findFrameLineWidth(QStyle* style) const { #ifndef QT_NO_LINEEDIT if (!m_lineEdit) m_lineEdit = new QLineEdit(); #endif QStyleOptionFrameV2 opt; QWidget* widget = 0; #ifndef QT_NO_LINEEDIT widget = m_lineEdit; #endif return style->pixelMetric(QStyle::PM_DefaultFrameWidth, &opt, widget); } static QRect inflateButtonRect(const QRect& originalRect, QStyle* style) { QStyleOptionButton option; option.state |= QStyle::State_Small; option.rect = originalRect; QRect layoutRect = style->subElementRect(QStyle::SE_PushButtonLayoutItem, &option, 0); if (!layoutRect.isNull()) { int paddingLeft = layoutRect.left() - originalRect.left(); int paddingRight = originalRect.right() - layoutRect.right(); int paddingTop = layoutRect.top() - originalRect.top(); int paddingBottom = originalRect.bottom() - layoutRect.bottom(); return originalRect.adjusted(-paddingLeft, -paddingTop, paddingRight, paddingBottom); } return originalRect; } void RenderThemeQt::adjustRepaintRect(const RenderObject* o, IntRect& rect) { switch (o->style()->appearance()) { case CheckboxPart: break; case RadioPart: break; case PushButtonPart: case ButtonPart: { QRect inflatedRect = inflateButtonRect(rect, qStyle()); rect = IntRect(inflatedRect.x(), inflatedRect.y(), inflatedRect.width(), inflatedRect.height()); break; } case MenulistPart: break; default: break; } } Color RenderThemeQt::platformActiveSelectionBackgroundColor() const { QPalette pal = QApplication::palette(); setPaletteFromPageClientIfExists(pal); return pal.brush(QPalette::Active, QPalette::Highlight).color(); } Color RenderThemeQt::platformInactiveSelectionBackgroundColor() const { QPalette pal = QApplication::palette(); setPaletteFromPageClientIfExists(pal); return pal.brush(QPalette::Inactive, QPalette::Highlight).color(); } Color RenderThemeQt::platformActiveSelectionForegroundColor() const { QPalette pal = QApplication::palette(); setPaletteFromPageClientIfExists(pal); return pal.brush(QPalette::Active, QPalette::HighlightedText).color(); } Color RenderThemeQt::platformInactiveSelectionForegroundColor() const { QPalette pal = QApplication::palette(); setPaletteFromPageClientIfExists(pal); return pal.brush(QPalette::Inactive, QPalette::HighlightedText).color(); } Color RenderThemeQt::platformFocusRingColor() const { QPalette pal = QApplication::palette(); setPaletteFromPageClientIfExists(pal); return pal.brush(QPalette::Active, QPalette::Highlight).color(); } void RenderThemeQt::systemFont(int, FontDescription&) const { // no-op } Color RenderThemeQt::systemColor(int cssValueId) const { QPalette pal = QApplication::palette(); switch (cssValueId) { case CSSValueButtontext: return pal.brush(QPalette::Active, QPalette::ButtonText).color(); case CSSValueCaptiontext: return pal.brush(QPalette::Active, QPalette::Text).color(); default: return RenderTheme::systemColor(cssValueId); } } int RenderThemeQt::minimumMenuListSize(RenderStyle*) const { const QFontMetrics &fm = QApplication::fontMetrics(); return fm.width(QLatin1Char('x')); } void RenderThemeQt::computeSizeBasedOnStyle(RenderStyle* renderStyle) const { QSize size(0, 0); const QFontMetrics fm(renderStyle->font().font()); QStyle* style = qStyle(); switch (renderStyle->appearance()) { case TextAreaPart: case SearchFieldPart: case TextFieldPart: { int padding = findFrameLineWidth(style); renderStyle->setPaddingLeft(Length(padding, Fixed)); renderStyle->setPaddingRight(Length(padding, Fixed)); renderStyle->setPaddingTop(Length(padding, Fixed)); renderStyle->setPaddingBottom(Length(padding, Fixed)); break; } default: break; } // If the width and height are both specified, then we have nothing to do. if (!renderStyle->width().isIntrinsicOrAuto() && !renderStyle->height().isAuto()) return; switch (renderStyle->appearance()) { case CheckboxPart: { QStyleOption styleOption; styleOption.state |= QStyle::State_Small; int checkBoxWidth = style->pixelMetric(QStyle::PM_IndicatorWidth, &styleOption); checkBoxWidth *= renderStyle->effectiveZoom(); size = QSize(checkBoxWidth, checkBoxWidth); break; } case RadioPart: { QStyleOption styleOption; styleOption.state |= QStyle::State_Small; int radioWidth = style->pixelMetric(QStyle::PM_ExclusiveIndicatorWidth, &styleOption); radioWidth *= renderStyle->effectiveZoom(); size = QSize(radioWidth, radioWidth); break; } #if !USE(QT_MOBILE_THEME) case PushButtonPart: case ButtonPart: { QStyleOptionButton styleOption; styleOption.state |= QStyle::State_Small; QSize contentSize = fm.size(Qt::TextShowMnemonic, QString::fromLatin1("X")); QSize pushButtonSize = style->sizeFromContents(QStyle::CT_PushButton, &styleOption, contentSize, 0); styleOption.rect = QRect(0, 0, pushButtonSize.width(), pushButtonSize.height()); QRect layoutRect = style->subElementRect(QStyle::SE_PushButtonLayoutItem, &styleOption, 0); // If the style supports layout rects we use that, and compensate accordingly // in paintButton() below. if (!layoutRect.isNull()) size.setHeight(layoutRect.height()); else size.setHeight(pushButtonSize.height()); break; } case MenulistPart: { QStyleOptionComboBox styleOption; styleOption.state |= QStyle::State_Small; int contentHeight = qMax(fm.lineSpacing(), 14) + 2; QSize menuListSize = style->sizeFromContents(QStyle::CT_ComboBox, &styleOption, QSize(0, contentHeight), 0); size.setHeight(menuListSize.height()); break; } #endif default: break; } // FIXME: Check is flawed, since it doesn't take min-width/max-width into account. if (renderStyle->width().isIntrinsicOrAuto() && size.width() > 0) renderStyle->setMinWidth(Length(size.width(), Fixed)); if (renderStyle->height().isAuto() && size.height() > 0) renderStyle->setMinHeight(Length(size.height(), Fixed)); } void RenderThemeQt::setCheckboxSize(RenderStyle* style) const { computeSizeBasedOnStyle(style); } bool RenderThemeQt::paintCheckbox(RenderObject* o, const PaintInfo& i, const IntRect& r) { return paintButton(o, i, r); } void RenderThemeQt::setRadioSize(RenderStyle* style) const { computeSizeBasedOnStyle(style); } bool RenderThemeQt::paintRadio(RenderObject* o, const PaintInfo& i, const IntRect& r) { return paintButton(o, i, r); } void RenderThemeQt::adjustButtonStyle(CSSStyleSelector* selector, RenderStyle* style, Element*) const { // Ditch the border. style->resetBorder(); #ifdef Q_WS_MAC if (style->appearance() == PushButtonPart) { // The Mac ports ignore the specified height for <input type="button"> elements // unless a border and/or background CSS property is also specified. style->setHeight(Length(Auto)); } #endif FontDescription fontDescription = style->fontDescription(); fontDescription.setIsAbsoluteSize(true); #ifdef Q_WS_MAC // Use fixed font size and family on Mac (like Safari does) fontDescription.setSpecifiedSize(m_buttonFontPixelSize); fontDescription.setComputedSize(m_buttonFontPixelSize); #else fontDescription.setSpecifiedSize(style->fontSize()); fontDescription.setComputedSize(style->fontSize()); #endif #if !USE(QT_MOBILE_THEME) FontFamily fontFamily; fontFamily.setFamily(m_buttonFontFamily); fontDescription.setFamily(fontFamily); style->setFontDescription(fontDescription); style->font().update(selector->fontSelector()); #endif style->setLineHeight(RenderStyle::initialLineHeight()); setButtonSize(style); setButtonPadding(style); } void RenderThemeQt::setButtonSize(RenderStyle* style) const { computeSizeBasedOnStyle(style); } #if !USE(QT_MOBILE_THEME) void RenderThemeQt::setButtonPadding(RenderStyle* style) const { QStyleOptionButton styleOption; styleOption.state |= QStyle::State_Small; // Fake a button rect here, since we're just computing deltas QRect originalRect = QRect(0, 0, 100, 30); styleOption.rect = originalRect; // Default padding is based on the button margin pixel metric int buttonMargin = qStyle()->pixelMetric(QStyle::PM_ButtonMargin, &styleOption, 0); int paddingLeft = buttonMargin; int paddingRight = buttonMargin; int paddingTop = buttonMargin; int paddingBottom = buttonMargin; // Then check if the style uses layout margins QRect layoutRect = qStyle()->subElementRect(QStyle::SE_PushButtonLayoutItem, &styleOption, 0); if (!layoutRect.isNull()) { QRect contentsRect = qStyle()->subElementRect(QStyle::SE_PushButtonContents, &styleOption, 0); paddingLeft = contentsRect.left() - layoutRect.left(); paddingRight = layoutRect.right() - contentsRect.right(); paddingTop = contentsRect.top() - layoutRect.top(); // Can't use this right now because we don't have the baseline to compensate // paddingBottom = layoutRect.bottom() - contentsRect.bottom(); } style->setPaddingLeft(Length(paddingLeft, Fixed)); style->setPaddingRight(Length(paddingRight, Fixed)); style->setPaddingTop(Length(paddingTop, Fixed)); style->setPaddingBottom(Length(paddingBottom, Fixed)); } #else void RenderThemeQt::setButtonPadding(RenderStyle* style) const { if (!style) return; style->setPaddingLeft(Length(buttonPaddingLeft, Fixed)); style->setPaddingRight(Length(buttonPaddingRight, Fixed)); style->setPaddingTop(Length(buttonPaddingTop, Fixed)); style->setPaddingBottom(Length(buttonPaddingBottom, Fixed)); } #endif bool RenderThemeQt::paintButton(RenderObject* o, const PaintInfo& i, const IntRect& r) { StylePainter p(this, i); if (!p.isValid()) return true; QStyleOptionButton option; initStyleOption(p.widget, option); option.rect = r; option.state |= QStyle::State_Small; ControlPart appearance = initializeCommonQStyleOptions(option, o); if (appearance == PushButtonPart || appearance == ButtonPart) { option.rect = inflateButtonRect(option.rect, qStyle()); p.drawControl(QStyle::CE_PushButton, option); } else if (appearance == RadioPart) p.drawControl(QStyle::CE_RadioButton, option); else if (appearance == CheckboxPart) p.drawControl(QStyle::CE_CheckBox, option); return false; } void RenderThemeQt::adjustTextFieldStyle(CSSStyleSelector*, RenderStyle* style, Element*) const { // Resetting the style like this leads to differences like: // - RenderTextControl {INPUT} at (2,2) size 168x25 [bgcolor=#FFFFFF] border: (2px inset #000000)] // + RenderTextControl {INPUT} at (2,2) size 166x26 // in layout tests when a CSS style is applied that doesn't affect background color, border or // padding. Just worth keeping in mind! style->setBackgroundColor(Color::transparent); style->resetBorder(); style->resetPadding(); computeSizeBasedOnStyle(style); #if USE(QT_MOBILE_THEME) style->setPaddingLeft(Length(textFieldPadding, Fixed)); style->setPaddingRight(Length(textFieldPadding, Fixed)); #endif } bool RenderThemeQt::paintTextField(RenderObject* o, const PaintInfo& i, const IntRect& r) { StylePainter p(this, i); if (!p.isValid()) return true; QStyleOptionFrameV2 panel; initStyleOption(p.widget, panel); panel.rect = r; panel.lineWidth = findFrameLineWidth(qStyle()); #if USE(QT_MOBILE_THEME) if (isPressed(o)) panel.state |= QStyle::State_Sunken; #else panel.state |= QStyle::State_Sunken; #endif panel.features = QStyleOptionFrameV2::None; // Get the correct theme data for a text field ControlPart appearance = initializeCommonQStyleOptions(panel, o); if (appearance != TextFieldPart && appearance != SearchFieldPart && appearance != TextAreaPart && appearance != ListboxPart) return true; // Now paint the text field. p.drawPrimitive(QStyle::PE_PanelLineEdit, panel); return false; } void RenderThemeQt::adjustTextAreaStyle(CSSStyleSelector* selector, RenderStyle* style, Element* element) const { adjustTextFieldStyle(selector, style, element); } bool RenderThemeQt::paintTextArea(RenderObject* o, const PaintInfo& i, const IntRect& r) { return paintTextField(o, i, r); } void RenderThemeQt::adjustMenuListStyle(CSSStyleSelector*, RenderStyle* style, Element*) const { style->resetBorder(); // Height is locked to auto. style->setHeight(Length(Auto)); // White-space is locked to pre style->setWhiteSpace(PRE); computeSizeBasedOnStyle(style); // Add in the padding that we'd like to use. setPopupPadding(style); #if USE(QT_MOBILE_THEME) style->setPaddingLeft(Length(menuListPadding, Fixed)); #endif } void RenderThemeQt::setPopupPadding(RenderStyle* style) const { const int paddingLeft = 4; const int paddingRight = style->width().isFixed() || style->width().isPercent() ? 5 : 8; style->setPaddingLeft(Length(paddingLeft, Fixed)); QStyleOptionComboBox opt; int w = qStyle()->pixelMetric(QStyle::PM_ButtonIconSize, &opt, 0); style->setPaddingRight(Length(paddingRight + w, Fixed)); style->setPaddingTop(Length(2, Fixed)); style->setPaddingBottom(Length(2, Fixed)); } bool RenderThemeQt::paintMenuList(RenderObject* o, const PaintInfo& i, const IntRect& r) { StylePainter p(this, i); if (!p.isValid()) return true; QtStyleOptionWebComboBox opt(o); initStyleOption(p.widget, opt); initializeCommonQStyleOptions(opt, o); IntRect rect = r; #if defined(Q_WS_MAC) && !defined(QT_NO_STYLE_MAC) // QMacStyle makes the combo boxes a little bit smaller to leave space for the focus rect. // Because of it, the combo button is drawn at a point to the left of where it was expect to be and may end up // overlapped with the text. This will force QMacStyle to draw the combo box with the expected width. if (qobject_cast<QMacStyle*>(p.style)) rect.inflateX(3); #endif const QPoint topLeft = rect.location(); p.painter->translate(topLeft); opt.rect.moveTo(QPoint(0, 0)); opt.rect.setSize(rect.size()); p.drawComplexControl(QStyle::CC_ComboBox, opt); p.painter->translate(-topLeft); return false; } void RenderThemeQt::adjustMenuListButtonStyle(CSSStyleSelector*, RenderStyle* style, Element*) const { #if USE(QT_MOBILE_THEME) // Mobile theme uses border radius. #else // WORKAROUND because html.css specifies -webkit-border-radius for <select> so we override it here // see also http://bugs.webkit.org/show_bug.cgi?id=18399 style->resetBorderRadius(); #endif // Height is locked to auto. style->setHeight(Length(Auto)); // White-space is locked to pre style->setWhiteSpace(PRE); computeSizeBasedOnStyle(style); // Add in the padding that we'd like to use. setPopupPadding(style); } bool RenderThemeQt::paintMenuListButton(RenderObject* o, const PaintInfo& i, const IntRect& r) { StylePainter p(this, i); if (!p.isValid()) return true; QtStyleOptionWebComboBox option(o); initStyleOption(p.widget, option); initializeCommonQStyleOptions(option, o); option.rect = r; // for drawing the combo box arrow, rely only on the fallback style p.style = fallbackStyle(); option.subControls = QStyle::SC_ComboBoxArrow; p.drawComplexControl(QStyle::CC_ComboBox, option); return false; } #if ENABLE(PROGRESS_TAG) double RenderThemeQt::animationRepeatIntervalForProgressBar(RenderProgress* renderProgress) const { if (renderProgress->position() >= 0) return 0; // FIXME: Use hard-coded value until http://bugreports.qt.nokia.com/browse/QTBUG-9171 is fixed. // Use the value from windows style which is 10 fps. return 0.1; } double RenderThemeQt::animationDurationForProgressBar(RenderProgress* renderProgress) const { if (renderProgress->position() >= 0) return 0; QStyleOptionProgressBarV2 option; option.rect.setSize(renderProgress->size()); // FIXME: Until http://bugreports.qt.nokia.com/browse/QTBUG-9171 is fixed, // we simulate one square animating across the progress bar. return (option.rect.width() / qStyle()->pixelMetric(QStyle::PM_ProgressBarChunkWidth, &option)) * animationRepeatIntervalForProgressBar(renderProgress); } void RenderThemeQt::adjustProgressBarStyle(CSSStyleSelector*, RenderStyle* style, Element*) const { style->setBoxShadow(nullptr); } bool RenderThemeQt::paintProgressBar(RenderObject* o, const PaintInfo& pi, const IntRect& r) { if (!o->isProgress()) return true; StylePainter p(this, pi); if (!p.isValid()) return true; QStyleOptionProgressBarV2 option; initStyleOption(p.widget, option); initializeCommonQStyleOptions(option, o); RenderProgress* renderProgress = toRenderProgress(o); option.rect = r; option.maximum = std::numeric_limits<int>::max(); option.minimum = 0; option.progress = (renderProgress->position() * std::numeric_limits<int>::max()); const QPoint topLeft = r.location(); p.painter->translate(topLeft); option.rect.moveTo(QPoint(0, 0)); option.rect.setSize(r.size()); if (option.progress < 0) { // FIXME: Until http://bugreports.qt.nokia.com/browse/QTBUG-9171 is fixed, // we simulate one square animating across the progress bar. p.drawControl(QStyle::CE_ProgressBarGroove, option); int chunkWidth = qStyle()->pixelMetric(QStyle::PM_ProgressBarChunkWidth, &option); QColor color = (option.palette.highlight() == option.palette.background()) ? option.palette.color(QPalette::Active, QPalette::Highlight) : option.palette.color(QPalette::Highlight); if (renderProgress->style()->direction() == RTL) p.painter->fillRect(option.rect.right() - chunkWidth - renderProgress->animationProgress() * option.rect.width(), 0, chunkWidth, option.rect.height(), color); else p.painter->fillRect(renderProgress->animationProgress() * option.rect.width(), 0, chunkWidth, option.rect.height(), color); } else p.drawControl(QStyle::CE_ProgressBar, option); p.painter->translate(-topLeft); return false; } #endif bool RenderThemeQt::paintSliderTrack(RenderObject* o, const PaintInfo& pi, const IntRect& r) { StylePainter p(this, pi); if (!p.isValid()) return true; QStyleOptionSlider option; initStyleOption(p.widget, option); option.subControls = QStyle::SC_SliderGroove | QStyle::SC_SliderHandle; ControlPart appearance = initializeCommonQStyleOptions(option, o); RenderSlider* renderSlider = toRenderSlider(o); IntRect thumbRect = renderSlider->thumbRect(); option.rect = r; int value; if (appearance == SliderVerticalPart) { option.maximum = r.height() - thumbRect.height(); value = thumbRect.y(); } else { option.maximum = r.width() - thumbRect.width(); value = thumbRect.x(); } value = QStyle::sliderValueFromPosition(0, option.maximum, value, option.maximum); option.sliderValue = value; option.sliderPosition = value; if (appearance == SliderVerticalPart) option.orientation = Qt::Vertical; if (renderSlider->inDragMode()) { option.activeSubControls = QStyle::SC_SliderHandle; option.state |= QStyle::State_Sunken; } const QPoint topLeft = r.location(); p.painter->translate(topLeft); option.rect.moveTo(QPoint(0, 0)); option.rect.setSize(r.size()); p.drawComplexControl(QStyle::CC_Slider, option); p.painter->translate(-topLeft); return false; } void RenderThemeQt::adjustSliderTrackStyle(CSSStyleSelector*, RenderStyle* style, Element*) const { style->setBoxShadow(nullptr); } bool RenderThemeQt::paintSliderThumb(RenderObject* o, const PaintInfo& pi, const IntRect& r) { // We've already painted it in paintSliderTrack(), no need to do anything here. return false; } void RenderThemeQt::adjustSliderThumbStyle(CSSStyleSelector*, RenderStyle* style, Element*) const { style->setBoxShadow(nullptr); } bool RenderThemeQt::paintSearchField(RenderObject* o, const PaintInfo& pi, const IntRect& r) { return paintTextField(o, pi, r); } void RenderThemeQt::adjustSearchFieldStyle(CSSStyleSelector* selector, RenderStyle* style, Element* e) const { // Resetting the style like this leads to differences like: // - RenderTextControl {INPUT} at (2,2) size 168x25 [bgcolor=#FFFFFF] border: (2px inset #000000)] // + RenderTextControl {INPUT} at (2,2) size 166x26 // in layout tests when a CSS style is applied that doesn't affect background color, border or // padding. Just worth keeping in mind! style->setBackgroundColor(Color::transparent); style->resetBorder(); style->resetPadding(); computeSizeBasedOnStyle(style); } void RenderThemeQt::adjustSearchFieldCancelButtonStyle(CSSStyleSelector* selector, RenderStyle* style, Element* e) const { // Logic taken from RenderThemeChromium.cpp. // Scale the button size based on the font size. float fontScale = style->fontSize() / defaultControlFontPixelSize; int cancelButtonSize = lroundf(qMin(qMax(minCancelButtonSize, defaultCancelButtonSize * fontScale), maxCancelButtonSize)); style->setWidth(Length(cancelButtonSize, Fixed)); style->setHeight(Length(cancelButtonSize, Fixed)); } // Function taken from RenderThemeChromium.cpp IntRect RenderThemeQt::convertToPaintingRect(RenderObject* inputRenderer, const RenderObject* partRenderer, IntRect partRect, const IntRect& localOffset) const { // Compute an offset between the part renderer and the input renderer. IntSize offsetFromInputRenderer = -(partRenderer->offsetFromAncestorContainer(inputRenderer)); // Move the rect into partRenderer's coords. partRect.move(offsetFromInputRenderer); // Account for the local drawing offset. partRect.move(localOffset.x(), localOffset.y()); return partRect; } bool RenderThemeQt::paintSearchFieldCancelButton(RenderObject* o, const PaintInfo& pi, const IntRect& r) { // Logic copied from RenderThemeChromium.cpp. // Get the renderer of <input> element. Node* input = o->node()->shadowAncestorNode(); if (!input->renderer()->isBox()) return false; RenderBox* inputRenderBox = toRenderBox(input->renderer()); IntRect inputContentBox = inputRenderBox->contentBoxRect(); // Make sure the scaled button stays square and will fit in its parent's box. int cancelButtonSize = qMin(inputContentBox.width(), qMin(inputContentBox.height(), r.height())); // Calculate cancel button's coordinates relative to the input element. // Center the button vertically. Round up though, so if it has to be one pixel off-center, it will // be one pixel closer to the bottom of the field. This tends to look better with the text. IntRect cancelButtonRect(o->offsetFromAncestorContainer(inputRenderBox).width(), inputContentBox.y() + (inputContentBox.height() - cancelButtonSize + 1) / 2, cancelButtonSize, cancelButtonSize); IntRect paintingRect = convertToPaintingRect(inputRenderBox, o, cancelButtonRect, r); static Image* cancelImage = Image::loadPlatformResource("searchCancelButton").releaseRef(); static Image* cancelPressedImage = Image::loadPlatformResource("searchCancelButtonPressed").releaseRef(); pi.context->drawImage(isPressed(o) ? cancelPressedImage : cancelImage, o->style()->colorSpace(), paintingRect); return false; } void RenderThemeQt::adjustSearchFieldDecorationStyle(CSSStyleSelector* selector, RenderStyle* style, Element* e) const { notImplemented(); RenderTheme::adjustSearchFieldDecorationStyle(selector, style, e); } bool RenderThemeQt::paintSearchFieldDecoration(RenderObject* o, const PaintInfo& pi, const IntRect& r) { notImplemented(); return RenderTheme::paintSearchFieldDecoration(o, pi, r); } void RenderThemeQt::adjustSearchFieldResultsDecorationStyle(CSSStyleSelector* selector, RenderStyle* style, Element* e) const { notImplemented(); RenderTheme::adjustSearchFieldResultsDecorationStyle(selector, style, e); } bool RenderThemeQt::paintSearchFieldResultsDecoration(RenderObject* o, const PaintInfo& pi, const IntRect& r) { notImplemented(); return RenderTheme::paintSearchFieldResultsDecoration(o, pi, r); } bool RenderThemeQt::supportsFocus(ControlPart appearance) const { switch (appearance) { case PushButtonPart: case ButtonPart: case TextFieldPart: case TextAreaPart: case ListboxPart: case MenulistPart: case RadioPart: case CheckboxPart: case SliderHorizontalPart: case SliderVerticalPart: return true; default: // No for all others... return false; } } void RenderThemeQt::setPaletteFromPageClientIfExists(QPalette& palette) const { #if USE(QT_MOBILE_THEME) static QPalette lightGrayPalette(Qt::lightGray); palette = lightGrayPalette; return; #endif // If the webview has a custom palette, use it if (!m_page) return; Chrome* chrome = m_page->chrome(); if (!chrome) return; ChromeClient* chromeClient = chrome->client(); if (!chromeClient) return; QWebPageClient* pageClient = chromeClient->platformPageClient(); if (!pageClient) return; palette = pageClient->palette(); } ControlPart RenderThemeQt::initializeCommonQStyleOptions(QStyleOption& option, RenderObject* o) const { // Default bits: no focus, no mouse over option.state &= ~(QStyle::State_HasFocus | QStyle::State_MouseOver); if (isReadOnlyControl(o)) // Readonly is supported on textfields. option.state |= QStyle::State_ReadOnly; option.direction = Qt::LeftToRight; if (isHovered(o)) option.state |= QStyle::State_MouseOver; setPaletteFromPageClientIfExists(option.palette); if (!isEnabled(o)) { option.palette.setCurrentColorGroup(QPalette::Disabled); option.state &= ~QStyle::State_Enabled; } RenderStyle* style = o->style(); if (!style) return NoControlPart; ControlPart result = style->appearance(); if (supportsFocus(result) && isFocused(o)) { option.state |= QStyle::State_HasFocus; option.state |= QStyle::State_KeyboardFocusChange; } if (style->direction() == WebCore::RTL) option.direction = Qt::RightToLeft; switch (result) { case PushButtonPart: case SquareButtonPart: case ButtonPart: case ButtonBevelPart: case ListItemPart: case MenulistButtonPart: case SearchFieldResultsButtonPart: case SearchFieldCancelButtonPart: { if (isPressed(o)) option.state |= QStyle::State_Sunken; else if (result == PushButtonPart || result == ButtonPart) option.state |= QStyle::State_Raised; break; } case RadioPart: case CheckboxPart: option.state |= (isChecked(o) ? QStyle::State_On : QStyle::State_Off); } return result; } #if ENABLE(VIDEO) String RenderThemeQt::extraMediaControlsStyleSheet() { String result = String(mediaControlsQtUserAgentStyleSheet, sizeof(mediaControlsQtUserAgentStyleSheet)); if (m_page && m_page->chrome()->requiresFullscreenForVideoPlayback()) result += String(mediaControlsQtFullscreenUserAgentStyleSheet, sizeof(mediaControlsQtFullscreenUserAgentStyleSheet)); return result; } // Helper class to transform the painter's world matrix to the object's content area, scaled to 0,0,100,100 class WorldMatrixTransformer { public: WorldMatrixTransformer(QPainter* painter, RenderObject* renderObject, const IntRect& r) : m_painter(painter) { RenderStyle* style = renderObject->style(); m_originalTransform = m_painter->transform(); m_painter->translate(r.x() + style->paddingLeft().value(), r.y() + style->paddingTop().value()); m_painter->scale((r.width() - style->paddingLeft().value() - style->paddingRight().value()) / 100.0, (r.height() - style->paddingTop().value() - style->paddingBottom().value()) / 100.0); } ~WorldMatrixTransformer() { m_painter->setTransform(m_originalTransform); } private: QPainter* m_painter; QTransform m_originalTransform; }; double RenderThemeQt::mediaControlsBaselineOpacity() const { return 0.4; } void RenderThemeQt::paintMediaBackground(QPainter* painter, const IntRect& r) const { painter->setPen(Qt::NoPen); static QColor transparentBlack(0, 0, 0, mediaControlsBaselineOpacity() * 255); painter->setBrush(transparentBlack); painter->drawRoundedRect(r.x(), r.y(), r.width(), r.height(), 5.0, 5.0); } static bool mediaElementCanPlay(RenderObject* o) { HTMLMediaElement* mediaElement = toParentMediaElement(o); if (!mediaElement) return false; return mediaElement->readyState() > HTMLMediaElement::HAVE_METADATA || (mediaElement->readyState() == HTMLMediaElement::HAVE_NOTHING && o->style()->appearance() == MediaPlayButtonPart && mediaElement->preload() == "none"); } QColor RenderThemeQt::getMediaControlForegroundColor(RenderObject* o) const { QColor fgColor = platformActiveSelectionBackgroundColor(); if (!o) return fgColor; if (o->node()->active()) fgColor = fgColor.lighter(); if (!mediaElementCanPlay(o)) { QPalette pal = QApplication::palette(); setPaletteFromPageClientIfExists(pal); fgColor = pal.brush(QPalette::Disabled, QPalette::Text).color(); } return fgColor; } bool RenderThemeQt::paintMediaFullscreenButton(RenderObject* o, const PaintInfo& paintInfo, const IntRect& r) { HTMLMediaElement* mediaElement = toParentMediaElement(o); if (!mediaElement) return false; StylePainter p(this, paintInfo); if (!p.isValid()) return true; p.painter->setRenderHint(QPainter::Antialiasing, true); paintMediaBackground(p.painter, r); WorldMatrixTransformer transformer(p.painter, o, r); const QPointF arrowPolygon[9] = { QPointF(20, 0), QPointF(100, 0), QPointF(100, 80), QPointF(80, 80), QPointF(80, 30), QPointF(10, 100), QPointF(0, 90), QPointF(70, 20), QPointF(20, 20)}; p.painter->setBrush(getMediaControlForegroundColor(o)); p.painter->drawPolygon(arrowPolygon, 9); return false; } bool RenderThemeQt::paintMediaMuteButton(RenderObject* o, const PaintInfo& paintInfo, const IntRect& r) { HTMLMediaElement* mediaElement = toParentMediaElement(o); if (!mediaElement) return false; StylePainter p(this, paintInfo); if (!p.isValid()) return true; p.painter->setRenderHint(QPainter::Antialiasing, true); paintMediaBackground(p.painter, r); WorldMatrixTransformer transformer(p.painter, o, r); const QPointF speakerPolygon[6] = { QPointF(20, 30), QPointF(50, 30), QPointF(80, 0), QPointF(80, 100), QPointF(50, 70), QPointF(20, 70)}; p.painter->setBrush(mediaElement->muted() ? Qt::darkRed : getMediaControlForegroundColor(o)); p.painter->drawPolygon(speakerPolygon, 6); return false; } bool RenderThemeQt::paintMediaPlayButton(RenderObject* o, const PaintInfo& paintInfo, const IntRect& r) { HTMLMediaElement* mediaElement = toParentMediaElement(o); if (!mediaElement) return false; StylePainter p(this, paintInfo); if (!p.isValid()) return true; p.painter->setRenderHint(QPainter::Antialiasing, true); paintMediaBackground(p.painter, r); WorldMatrixTransformer transformer(p.painter, o, r); p.painter->setBrush(getMediaControlForegroundColor(o)); if (mediaElement->canPlay()) { const QPointF playPolygon[3] = { QPointF(0, 0), QPointF(100, 50), QPointF(0, 100)}; p.painter->drawPolygon(playPolygon, 3); } else { p.painter->drawRect(0, 0, 30, 100); p.painter->drawRect(70, 0, 30, 100); } return false; } bool RenderThemeQt::paintMediaSeekBackButton(RenderObject*, const PaintInfo&, const IntRect&) { // We don't want to paint this at the moment. return false; } bool RenderThemeQt::paintMediaSeekForwardButton(RenderObject*, const PaintInfo&, const IntRect&) { // We don't want to paint this at the moment. return false; } bool RenderThemeQt::paintMediaCurrentTime(RenderObject* o, const PaintInfo& paintInfo, const IntRect& r) { StylePainter p(this, paintInfo); if (!p.isValid()) return true; p.painter->setRenderHint(QPainter::Antialiasing, true); paintMediaBackground(p.painter, r); return false; } String RenderThemeQt::formatMediaControlsCurrentTime(float currentTime, float duration) const { return formatMediaControlsTime(currentTime) + " / " + formatMediaControlsTime(duration); } String RenderThemeQt::formatMediaControlsRemainingTime(float currentTime, float duration) const { return String(); } bool RenderThemeQt::paintMediaVolumeSliderTrack(RenderObject *o, const PaintInfo &paintInfo, const IntRect &r) { StylePainter p(this, paintInfo); if (!p.isValid()) return true; p.painter->setRenderHint(QPainter::Antialiasing, true); paintMediaBackground(p.painter, r); if (!o->isSlider()) return false; IntRect b = toRenderBox(o)->contentBoxRect(); // Position the outer rectangle int top = r.y() + b.y(); int left = r.x() + b.x(); int width = b.width(); int height = b.height(); // Get the scale color from the page client QPalette pal = QApplication::palette(); setPaletteFromPageClientIfExists(pal); const QColor highlightText = pal.brush(QPalette::Active, QPalette::HighlightedText).color(); const QColor scaleColor(highlightText.red(), highlightText.green(), highlightText.blue(), mediaControlsBaselineOpacity() * 255); // Draw the outer rectangle p.painter->setBrush(scaleColor); p.painter->drawRect(left, top, width, height); if (!o->node() || !o->node()->hasTagName(inputTag)) return false; HTMLInputElement* slider = static_cast<HTMLInputElement*>(o->node()); // Position the inner rectangle height = height * slider->valueAsNumber(); top += b.height() - height; // Draw the inner rectangle p.painter->setPen(Qt::NoPen); p.painter->setBrush(getMediaControlForegroundColor(o)); p.painter->drawRect(left, top, width, height); return false; } bool RenderThemeQt::paintMediaVolumeSliderThumb(RenderObject *o, const PaintInfo &paintInfo, const IntRect &r) { StylePainter p(this, paintInfo); if (!p.isValid()) return true; // Nothing to draw here, this is all done in the track return false; } bool RenderThemeQt::paintMediaSliderTrack(RenderObject* o, const PaintInfo& paintInfo, const IntRect& r) { HTMLMediaElement* mediaElement = toParentMediaElement(o); if (!mediaElement) return false; StylePainter p(this, paintInfo); if (!p.isValid()) return true; p.painter->setRenderHint(QPainter::Antialiasing, true); paintMediaBackground(p.painter, r); if (MediaPlayer* player = mediaElement->player()) { // Get the buffered parts of the media PassRefPtr<TimeRanges> buffered = player->buffered(); if (buffered->length() > 0 && player->duration() < std::numeric_limits<float>::infinity()) { // Set the transform and brush WorldMatrixTransformer transformer(p.painter, o, r); p.painter->setBrush(getMediaControlForegroundColor()); // Paint each buffered section ExceptionCode ex; for (int i = 0; i < buffered->length(); i++) { float startX = (buffered->start(i, ex) / player->duration()) * 100; float width = ((buffered->end(i, ex) / player->duration()) * 100) - startX; p.painter->drawRect(startX, 37, width, 26); } } } return false; } bool RenderThemeQt::paintMediaSliderThumb(RenderObject* o, const PaintInfo& paintInfo, const IntRect& r) { if (!o->parent()->isSlider()) return false; // We can get the HTMLMediaElement from the parent of the thumb : MediaControlTimelineElement. HTMLMediaElement* mediaElement = toParentMediaElement(o->parent()); if (!mediaElement) return false; StylePainter p(this, paintInfo); if (!p.isValid()) return true; p.painter->setRenderHint(QPainter::Antialiasing, true); p.painter->setPen(Qt::NoPen); p.painter->setBrush(getMediaControlForegroundColor(o->parent())); p.painter->drawRect(r.x(), r.y(), r.width(), r.height()); return false; } #endif void RenderThemeQt::adjustSliderThumbSize(RenderObject* o) const { ControlPart part = o->style()->appearance(); if (part == MediaSliderThumbPart) { RenderStyle* parentStyle = o->parent()->style(); Q_ASSERT(parentStyle); int parentHeight = parentStyle->height().value(); o->style()->setWidth(Length(parentHeight / 3, Fixed)); o->style()->setHeight(Length(parentHeight, Fixed)); } else if (part == MediaVolumeSliderThumbPart) { RenderStyle* parentStyle = o->parent()->style(); Q_ASSERT(parentStyle); int parentWidth = parentStyle->width().value(); o->style()->setHeight(Length(parentWidth / 3, Fixed)); o->style()->setWidth(Length(parentWidth, Fixed)); } else if (part == SliderThumbHorizontalPart || part == SliderThumbVerticalPart) { QStyleOptionSlider option; if (part == SliderThumbVerticalPart) option.orientation = Qt::Vertical; QStyle* style = qStyle(); int width = style->pixelMetric(QStyle::PM_SliderLength, &option); int height = style->pixelMetric(QStyle::PM_SliderThickness, &option); o->style()->setWidth(Length(width, Fixed)); o->style()->setHeight(Length(height, Fixed)); } } double RenderThemeQt::caretBlinkInterval() const { return QApplication::cursorFlashTime() / 1000.0 / 2.0; } } // vim: ts=4 sw=4 et
97fdaf2e34a24c3def92a18d310ecc2f0645cfd1
e3829fe2fd089410f6f4e4bbbf91b42922eec039
/src/utility/BlynkHelpers.cpp
3c47985d3bcf5d5b3a863d2078edfcc4ddb8c003
[ "MIT" ]
permissive
blynkkk/blynk-library
975ec76dea5b0ea0d62c8ddc3722da5d88c2f3ed
fcea6fd06d27bd8ef39faa456b3c4dee9514a66b
refs/heads/master
2023-09-05T14:06:02.152635
2023-09-05T08:30:27
2023-09-05T08:30:27
32,791,821
4,063
1,506
MIT
2023-01-10T19:45:16
2015-03-24T10:31:07
C++
UTF-8
C++
false
false
2,545
cpp
BlynkHelpers.cpp
#include <Blynk/BlynkConfig.h> #include <Blynk/BlynkHelpers.h> #include <math.h> #if !defined(BLYNK_NO_FLOAT) && defined(BLYNK_USE_INTERNAL_DTOSTRF) #include <string.h> #include <stdio.h> char* dtostrf_internal(double number, signed char BLYNK_UNUSED width, unsigned char prec, char *s) { if(isnan(number)) { strcpy(s, "nan"); return s; } if(isinf(number)) { strcpy(s, "inf"); return s; } if(number > 4294967040.0 || number < -4294967040.0) { strcpy(s, "ovf"); return s; } char* out = s; // Handle negative numbers if(number < 0.0) { *out = '-'; ++out; number = -number; } // Round correctly so that print(1.999, 2) prints as "2.00" double rounding = 0.5; for(uint8_t i = 0; i < prec; ++i) { rounding /= 10.0; } number += rounding; // Extract the integer part of the number and print it unsigned long int_part = (unsigned long) number; double remainder = number - (double) int_part; out += sprintf(out, "%lu", int_part); // Print the decimal point, but only if there are digits beyond if(prec > 0) { *out++ = '.'; } while(prec-- > 0) { remainder *= 10.0; if((int)remainder == 0) { *out++ = '0'; } } if((int)remainder != 0) { sprintf(out, "%d", (int)remainder); } else { *out++ = '\0'; } return s; } #endif #if !defined(BLYNK_NO_LONGLONG) && defined(BLYNK_USE_INTERNAL_ATOLL) long long atoll_internal(const char *instr) { long long retval = 0; for (; *instr; instr++) { retval = 10*retval + (*instr - '0'); } return retval; } #endif #if !defined(BLYNK_NO_LONGLONG) char* lltoa_internal(long long val, char* buf, unsigned buf_len, int base) { int i = buf_len-2; int sign = (val < 0); buf[buf_len-1] = '\0'; if (val == 0) { buf[i] = '0'; return &buf[i]; } unsigned long long absval = sign ? -val : val; for (; absval && i ; --i, absval /= base) { buf[i] = "0123456789abcdef"[absval % base]; } if (sign) { buf[i--] = '-'; } return &buf[i+1]; } char* ulltoa_internal(unsigned long long val, char* buf, unsigned buf_len, int base) { int i = buf_len-2; buf[buf_len-1] = '\0'; if (val == 0) { buf[i] = '0'; return &buf[i]; } for (; val && i ; --i, val /= base) { buf[i] = "0123456789abcdef"[val % base]; } return &buf[i+1]; } #endif
e2442b3f6bc16954ec130b32abdc6fad541d3b89
22d273cb80c122e306b539472db529e87f0d6cd8
/Files/OrderTemp.h
b2ef891fa580baaaa619343d81c91b1c4d60ae8b
[]
no_license
caleksiev/OOP-Object-Oriented-Programming
2cbc39bb9519399d03931cce763ccc77cb76bb35
6363c575f6a046832064d8fcc86f9339d2653eca
refs/heads/master
2020-04-23T22:53:01.548873
2019-02-22T14:49:21
2019-02-22T14:49:21
171,516,613
0
0
null
null
null
null
ISO-8859-15
C++
false
false
4,820
h
OrderTemp.h
#ifndef _ORDERTEMP_INCLUDED_ #define _ORDERTEMP_INCLUDED_ //temp functions for making OREDER /* THIS IS THE "MAIN" FUNCTION that connect all process using the funtion below! 1)Reflects the transaction of SELLER in his file 2)Reflects the transaction of BUY in his file 3)Deduct the current order from "SELL-orders" or ("BUY-orders"),if one of them is still not complete 4)Remove from "SELL-orders" or ("BUY-orders") the current complete order,or the both order is they are complete 5)Make a transaction of BUYER or SELLER,according of their status 6)Reflects the change of real money of both sides,according of the order's status IN EVERY OF THIS 6 STEPS THE FUNCTION taka and one parametes -flag,to can understand what to do in every situations: flag-1:the BUY order is completing,SELL not flad-2:the SELL order is completing,BUY not flag-3:the boths orders of SELLER and BUYER are completing */ bool CompleteOrder(const Order& sell, const Order& buy, char*filename, unsigned flag); /* 1)Text Files the text files for orderer are created in the following format: IDB-*id* - for buyer with his *id* IDS-*is* - for seller with his *id* to create the file the program use the following 4 functions: */ size_t CntDigit(size_t num); /* the functions convert the ID in string and save it in the array as in advance count the ID digits */ void ConvertNumToStr(char*str, unsigned int num); /* in the array-filename is write the name of the text file first is wtite the "IDS-" or "IDB-" according for who is opening the file(buyer or seller) then concatenatå the already converted string ,that contain ID and at lats the file extension ".txt" */ void FileNameTxt(char*filename, unsigned walletID, const char*str); /* Once it's created the name of file,then is creating the text file, in which is writting the data of the file's creation if the process is not complete the nuction return false else true */ bool MakeTextFile(const char*filename); //the standart funtion that check or one file is exist bool CheckThereFileExist(const char*fname); /* in file "SELL-orders" or in file "BUY-orders" are store the current order at the end of file if a errors occurs while operatig the file the function return false,else true */ bool SaveOrderToFile(const char*filename, const Order& sell); /* the function open the dat file- "SELL-orders" or ("BUY-orders") and searched the order of SELLER or (BUYER) when it's find the order,the current coins there are decrease and write to the file/if there was a problems with file the returned value is false */ bool DecreaseFMoneyfile(const Order& order1, const Order& order2, const char*filename); size_t FileSize(std::fstream& f); /* the function open the dat file- "SELL-orders" or ("BUY-orders") and find how many orders of type SELL or (BUY) are strored in file if the cnt of them is 1 or 0 the file is deleted,couse the only one order is already complete else it is created a dynamic array of structs where it's stored the information of the other orders without the complete one and then this orders are save to the file if the file is not open or the memmory alocation is failed,its is returned false */ bool RemoveOrderFromFile(const Order& orderer, const char*filename); /* after every change by order, completed or not,is making a transaction in transactions.dat file the feature is at coins,according of the type of order and or is completed or not/ one of the argument is a char,there are 4 opportunities: 1) char=='b',the order of buyer is complete and receive all coins of the order 2) char=='s',the order of seller is complete and his coins are decrese with the value of whole order 3) char=='o',the order of seller is NOT complete and and his coins are decrease with the value of a PART of order 4) char== else,the order of buyer is NOT complete and receive a PART of coins of the order if occurs a error the functin return false */ bool MakeTransaction(const Order& order1, const Order& order2, char type); /* after every order,completed or not are changing the real money of both sides(SELLER,BUYER) to understand the function,how much to decrease or increase to orderer,it take two temp parametårs- 1)operations: -a)"+",that means it will increase money -b)"-",that means it will decrease money 2)flag: -a)"1",that means that the BUY order is complete,but SELL is not,BUYER receive all money,SELLER a part -b)"2",that means that the SELL order is complete,but BUY is not,SELLER receive all money,BUYER a part -c)"3",that means that the both orders are complete and the orderer receive all of the money if occurs a error the function return false */ bool ChangeWalletMoney(const Order& order1, const Order& order2, char operation, size_t flag); #endif
cca857015ab70fe261f39a6669b2fe0d580fb19f
bb0c3199fa0920b87b28b464fbf3679ca67ca5de
/pascal_triangle.cpp
e6d0d4ed7e51bba2513f67f3f582ba5c32a0cf29
[]
no_license
Qzhenlong/LeetCode
f94c57167037893cbe2deb2828d5069b9b538e65
227a51eaf9f0f70fe1748b8a9a48ad058c8a503c
refs/heads/master
2021-01-10T16:11:56.663410
2015-08-10T13:38:41
2015-08-10T13:38:41
36,740,394
1
0
null
null
null
null
GB18030
C++
false
false
1,392
cpp
pascal_triangle.cpp
#include <iostream> #include <vector> using namespace std; /* 原题: Given numRows, generate the first numRows of Pascal's triangle. For example, given numRows = 5, Return [ [1], [1,1], [1,2,1], [1,3,3,1], [1,4,6,4,1] ] 解析:给定行数,生成杨辉三角,存入到二维容器时的分布其实是这样的: [1], [1,1], [1,2,1], [1,3,3,1], [1,4,6,4,1] 思路: 1)当行号为0或者行列号相等时,将数组值置为1; 2)否则,利用规律ans[i][j] = ans[i-1][j] + ans[i-1][j-1]; */ class Solution { public: vector<vector<int> > generate(int numRows) { vector<vector<int> > ans; for(int i = 0;i < numRows;i++) { vector<int> cur; if(i == 0) cur.push_back(1); else { for(int j = 0;j <= i;j++) { if(j == 0 || j == i) cur.push_back(1); else cur.push_back(ans[i - 1][j] + ans[i - 1][j - 1]); } } ans.push_back(cur); } return ans; } }; int main() { Solution c; int num = 10; vector<vector<int> > x = c.generate(num); for(int i = 0; i < num; i++){ for(int j = 0; j <= i; j++){ printf("%d ",x[i][j]); } printf("\n"); } while(1); return 1; }
dd807e5bc9ac1552cff5698a3da0d512fca53316
70d0efb3b61e0d4b9843f806a5461b10a3ff2af9
/src/libretro/include/cfg.h
e81383e5852a6a020089eda54adddc87f92af4f1
[ "MIT" ]
permissive
Dwedit/sdlretro
a2bacb623d464940afc912ce5008df908a7016ff
521c5558cb55d4028210529e336d8a8622037358
refs/heads/master
2021-04-12T00:38:10.157128
2020-01-20T13:16:04
2020-01-20T13:16:04
249,069,950
0
0
MIT
2020-03-21T22:12:48
2020-03-21T22:12:48
null
UTF-8
C++
false
false
2,239
h
cfg.h
#pragma once #include <cstdint> #include <string> enum :uint32_t { #ifdef GCW_ZERO DEFAULT_WIDTH = 320, DEFAULT_HEIGHT = 240, DEFAULT_SCALE = 1, #else DEFAULT_WIDTH = 640, DEFAULT_HEIGHT = 480, DEFAULT_SCALE = 2, #endif DEFAULT_SAMPLE_RATE = 0, DEFAULT_RESAMPLER_QUALITY = 0, }; class cfg { public: virtual ~cfg() = default; inline void set_filename(const std::string &name) { filename = name; } void load(); void save(); inline std::pair<uint32_t, uint32_t> get_resolution() { return std::make_pair(res_w, res_h); } inline bool get_mono_audio() { return mono_audio; } inline void set_mono_audio(bool b) { mono_audio = b; } inline uint32_t get_sample_rate() { return sample_rate; } inline void set_sample_rate(uint32_t s) { sample_rate = s; } inline uint32_t get_resampler_quality() { return resampler_quality; } inline void set_resampler_quality(uint32_t r) { resampler_quality = r; } inline uint32_t get_scaling_mode() { return scaling_mode; } inline void set_scaling_mode(uint32_t s) { scaling_mode = s; } inline uint32_t get_scale() { return scale; } inline void set_scale(uint32_t s) { scale = s; } inline uint32_t get_save_check() { return save_check; } inline void set_save_check(uint32_t c) { save_check = c; } protected: std::string filename; uint32_t res_w = DEFAULT_WIDTH, res_h = DEFAULT_HEIGHT; /* set to true if use mono audio */ bool mono_audio = false; /* set to 0 to use source sample rate with integer multiplier * to reduce it to no more than 48kHz. * otherwise libsamplerate will be used to do resampling*/ uint32_t sample_rate = DEFAULT_SAMPLE_RATE; /* libsamplerate resampler quality: * 4 SRC_SINC_BEST_QUALITY * 3 SRC_SINC_MEDIUM_QUALITY * 2 SRC_SINC_FASTEST * 1 SRC_ZERO_ORDER_HOLD * 0 SRC_LINEAR */ uint32_t resampler_quality = DEFAULT_RESAMPLER_QUALITY; /* scaling mode * 0 IPU scaling * 1 Screen center */ uint32_t scaling_mode; /* basic integer scaler */ uint32_t scale = DEFAULT_SCALE; /* save check interval in seconds, set to 0 to disable it */ uint32_t save_check = 0; }; extern cfg g_cfg;
e54603b996b8ce288af72a116596104c99b4de77
4fcd707575ae64cd328bcb5e5ee3d24f72bbe93f
/命令模式.cpp
59fd36dbfa33ec00f1d10e1e8e1c277464e2ad23
[]
no_license
cpilabcyx/lern_m
3f3651c0f703b845d877b371b7bf2940b4af805a
3abf9222c917a64c0008eda8cfc911eb9f5f5022
refs/heads/master
2020-03-13T18:24:33.779129
2018-05-07T14:50:08
2018-05-07T14:50:08
131,235,134
0
0
null
null
null
null
GB18030
C++
false
false
1,942
cpp
命令模式.cpp
#include <iostream> using namespace std; #include "list" class tanke_driver //命令的的执行者 { public: void turn_left() { cout << "驾驶员左转" << endl; } void turn_right() { cout << "驾驶员右转" << endl; } }; class Command //统一接口,具体的行为细节子类实现,每个子类为一个类,所以可以记录、拆解执行者的行为 { public: virtual void turn() = 0; }; class Commandturnleft : public Command //命令者行为的实现,组合命令执行者,提供调用命令执行者的一种功能行为的接口 { public: Commandturnleft(tanke_driver *driver) { m_driver = driver; } virtual void turn() { m_driver->turn_left(); } private: tanke_driver *m_driver; }; class Commandturnright : public Command //命令者行为的实现,组合命令执行者,提供调用命令执行者的一种功能行为的接口 { public: Commandturnright(tanke_driver *driver) { m_driver = driver; } virtual void turn() { m_driver->turn_right(); } private: tanke_driver *m_driver; }; class tanke_Head //命令的管理者,组合命令 { public: tanke_Head() { m_list.clear(); } public: void AddCommand(Command *command)//组织命令 { m_list.push_back(command); } void SubmittedCase() //下达命令 { for (list<Command *>::iterator it = m_list.begin(); it != m_list.end(); it++) { (*it)->turn(); } } private: list<Command *> m_list; }; void main() { tanke_Head *boose = new tanke_Head; tanke_driver* laosiji = new tanke_driver(); Command* turn_order = new Commandturnleft(laosiji); boose->AddCommand(turn_order); boose->AddCommand(turn_order); turn_order = new Commandturnright(laosiji); boose->AddCommand(turn_order); boose->SubmittedCase(); delete turn_order; delete laosiji; delete boose; system("pause"); return; }
76e0e0c1eb30bfe17d8cb3187130b34f5c102d63
21398f93e869699e6bbd73bf2346f538b2b368e9
/diamond-sycl/src/output/output_format.h
15880de434ea47576df7e9d65efc99dc3a0167b5
[ "BSD-3-Clause" ]
permissive
zjin-lcf/HeCBench
fc67fa11d052ca5b9fbaac9ecee3d7a3ab3af08f
e2e13ff587c392361989cece0956d827167aa7b9
refs/heads/master
2023-08-18T05:08:57.134834
2023-08-14T01:22:41
2023-08-14T01:22:41
285,634,219
89
34
BSD-3-Clause
2023-09-08T18:28:55
2020-08-06T17:44:38
C++
UTF-8
C++
false
false
5,798
h
output_format.h
/**** DIAMOND protein aligner Copyright (C) 2013-2017 Benjamin Buchfink <buchfink@gmail.com> This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. You should have received a copy of the GNU Affero General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. ****/ #ifndef OUTPUT_FORMAT_H_ #define OUTPUT_FORMAT_H_ #include <exception> #include "../basic/match.h" #include "../align/match_func.h" #include "../output/daa_file.h" #include "../output/daa_record.h" #include "../util/compressed_stream.h" #include "../basic/score_matrix.h" struct Output_format { Output_format(unsigned code): code(code) {} virtual void print_query_intro(size_t query_num, const char *query_name, unsigned query_len, Text_buffer &out, bool unaligned) const {} virtual void print_query_epilog(Text_buffer &out, const char *query_title, bool unaligned) const {} virtual void print_match(const Hsp_context& r, Text_buffer &out) {} virtual void print_header(Output_stream &f, int mode, const char *matrix, int gap_open, int gap_extend, double evalue, const char *first_query_name, unsigned first_query_len) const { } virtual void print_footer(Output_stream &f) const { } virtual Output_format* clone() const = 0; virtual ~Output_format() { } static void print_title(Text_buffer &buf, const char *id, bool full_titles, bool all_titles, const char *separator); operator unsigned() const { return code; } unsigned code; enum { daa, blast_tab, blast_xml, sam, blast_pairwise, null, taxon }; }; extern auto_ptr<Output_format> output_format; struct Null_format : public Output_format { Null_format() : Output_format(null) {} virtual Output_format* clone() const { return new Null_format(*this); } }; struct DAA_format : public Output_format { DAA_format(): Output_format(daa) {} virtual Output_format* clone() const { return new DAA_format(*this); } }; struct Blast_tab_format : public Output_format { static const char* field_str[]; Blast_tab_format(); virtual void print_query_intro(size_t query_num, const char *query_name, unsigned query_len, Text_buffer &out, bool unaligned) const; virtual void print_match(const Hsp_context& r, Text_buffer &out); virtual ~Blast_tab_format() { } virtual Output_format* clone() const { return new Blast_tab_format(*this); } vector<unsigned> fields; }; struct Sam_format : public Output_format { Sam_format(): Output_format(sam) { } virtual void print_match(const Hsp_context& r, Text_buffer &out); virtual void print_header(Output_stream &f, int mode, const char *matrix, int gap_open, int gap_extend, double evalue, const char *first_query_name, unsigned first_query_len) const; virtual void print_query_intro(size_t query_num, const char *query_name, unsigned query_len, Text_buffer &out, bool unaligned) const; virtual ~Sam_format() { } virtual Output_format* clone() const { return new Sam_format(*this); } }; struct XML_format : public Output_format { XML_format(): Output_format(blast_xml) { config.salltitles = true; } virtual void print_match(const Hsp_context &r, Text_buffer &out); virtual void print_header(Output_stream &f, int mode, const char *matrix, int gap_open, int gap_extend, double evalue, const char *first_query_name, unsigned first_query_len) const; virtual void print_query_intro(size_t query_num, const char *query_name, unsigned query_len, Text_buffer &out, bool unaligned) const; virtual void print_query_epilog(Text_buffer &out, const char *query_title, bool unaligned) const; virtual void print_footer(Output_stream &f) const; virtual ~XML_format() { } virtual Output_format* clone() const { return new XML_format(*this); } }; struct Pairwise_format : public Output_format { Pairwise_format() : Output_format(blast_pairwise) { config.salltitles = true; } virtual void print_match(const Hsp_context &r, Text_buffer &out); virtual void print_header(Output_stream &f, int mode, const char *matrix, int gap_open, int gap_extend, double evalue, const char *first_query_name, unsigned first_query_len) const; virtual void print_query_intro(size_t query_num, const char *query_name, unsigned query_len, Text_buffer &out, bool unaligned) const; virtual void print_query_epilog(Text_buffer &out, const char *query_title, bool unaligned) const; virtual void print_footer(Output_stream &f) const; virtual ~Pairwise_format() { } virtual Output_format* clone() const { return new Pairwise_format(*this); } }; struct Taxon_format : public Output_format { Taxon_format() : Output_format(taxon), taxid(0), evalue(std::numeric_limits<double>::max()) { config.salltitles = true; if (config.prot_accession2taxid.empty()) throw std::runtime_error("Output format requires setting the --taxonmap parameter."); if (config.nodesdmp.empty()) throw std::runtime_error("Output format requires setting the --taxonnodes parameter."); } virtual void print_match(const Hsp_context &r, Text_buffer &out); virtual void print_query_epilog(Text_buffer &out, const char *query_title, bool unaligned) const; virtual ~Taxon_format() { } virtual Output_format* clone() const { return new Taxon_format(*this); } unsigned taxid; double evalue; }; Output_format* get_output_format(); void init_output(); void print_hsp(Hsp_data &hsp, sequence query); #endif /* OUTPUT_FORMAT_H_ */
557ed6884d6384adc1f0f89bd0dfabd005c84f1c
3f9107b5dd7c86d4d6c2cb4ac6f77269b038d11e
/AyPa.ino
c3c0cf806564913319bc6f034296202f1033c608
[]
no_license
AyPa/AyPa
ebb63952e9a562e501c7701f9bcf10d57f085351
47ed0608638824126834c9b99b9441e3510d0eb4
refs/heads/master
2016-09-06T11:21:16.180491
2014-05-06T15:54:48
2014-05-06T15:54:48
null
0
0
null
null
null
null
UTF-8
C++
false
false
59,275
ino
AyPa.ino
#include <avr/pgmspace.h> // примерное число миллисекунд в часе //#define MILS 3640282 // надо 20:55:13 показал 21:00:00 +47 //#define MILS 3650000 // надо 04:19:16 показал 04:19:00 -16 //#define MILS 3648000 // за 4 часа убежал на 25с //#define MILS 3650500 // за 2 часа убежал на 20с //#define MILS 3655500 // за 4 часа отстал на 16 c //#define MILS 3653000 // за2:43 убежал на 3с //#define MILS 3653300 // pза 10:22 отстал на 34с #define MILS 3652800 // // watts: 0: 1.1w 1: 8.5 w 2: 9.6w 3: 9.7w 4: 9.9 w (running fan +0.5w) #include "AyPa_m.h" // полезные макросы #include "AyPa_fonts.h" // шрифты #include "AyPa_n.h" // модуль для дисплея Nokia3110 //#include "DHT.h" //#define DHTPIN A0 // what pin we're connected to // Uncomment whatever type you're using! //#define DHTTYPE DHT11 // DHT 11 //#define DHTTYPE DHT22 // DHT 22 (AM2302) //#define DHTTYPE DHT21 // DHT 21 (AM2301) //DHT dht(DHTPIN, DHTTYPE); void (* reboot) (void) = 0; //declare reset function @ address 0 //word freeRam(void){ extern unsigned int __heap_start; extern void *__brkval; int v; return (int)&v-(__brkval==0?(int)&__heap_start:(int)__brkval);} #define SetADC(bandgap,input,us){ ADCSRA|=(1<<ADEN);delayMicroseconds(2);ADMUX=(bandgap<<REFS1)|(1<<REFS0)|(0<<ADLAR)|input;delayMicroseconds(us);} // input (0..7,8,14) (bg/vcc analogReference ) #define ADCoff{ ADCSRA&=~(1<<ADEN); } #define mRawADC(v,p) ADCSRA=(1<<ADEN)|(1<<ADSC)|(0<<ADATE)|(0<<ADIE)|p;do{}while(bit_is_set(ADCSRA,ADSC));v=ADCW; //byte Intensity[24] = {0,0,0,0,0,0, 1,2,3,3,3,3, 3,3,3,3,3,3, 3,3,3,3,2,1}; // почасовая интенсивность //byte Intensity[24] = {3,0,0,0,0,0, 1,2,3,4,4,4, 4,4,4,4,4,4, 4,4,4,3,2,1}; // почасовая интенсивность //byte Intensity[24] = {0xE,0,0,0,0,0, 0x8,0xA,0xB,0xF,0xF,0xF, 0xF,0xF,0xF,0xF,0xF,0xF, 0xF,0xF,0xF,0xE,0xA,0x8}; // почасовая интенсивность uint8_t TempH[76]={0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0}; // архив температур //uint8_t Intensity[24] = {0,0,0,0,0,0, 1,1,2,2,3,3, 4,4,4,3,3,3, 2,2,2,1,1,1}; // почасовая интенсивность 1-8 //uint8_t Intensity[24] = {0,0,0,0,0,0, 1,2,3,4,4,4, 4,4,4,4,4,4, 4,4,4,4,2,1}; // почасовая интенсивность 9 up //uint8_t Intensity[24] = {0,0,0,0,0,0, 1,1,1,1,1,1, 1,1,1,1,1,1, 1,1,1,1,1,0}; // почасовая интенсивность 15 up //uint8_t Intensity[24] = {0,0,0,0,0,0, 1,2,2,2,2,2, 2,2,2,2,2,2, 2,2,2,2,1,0}; // почасовая интенсивность 01/05 (20) up uint8_t Intensity[24] = {0,0,0,0,0,0, 1,2,2,2,2,2, 2,2,2,2,2,2, 2,2,2,2,2,1}; // почасовая интенсивность 01/05 (20) up //uint8_t Intensity[24] = {0,1,1,1,2,2, 2,3,3,3,4,4, 4,4,4,4,4,4, 4,4,3,2,1,0}; // почасовая интенсивность 01/05 (20) up //uint8_t decode[5]={0,0x8,0xA,0xE,0xF}; // 0xF 1111 (4) // 0xE 1110 (3) // 0xA 1010 (2) // 0x8 1000 (1) // 0x0 0000 (0) uint8_t FlashIntensity=0; //uint8_t volatile ticks=0; // 1/2с uint8_t HR=0; uint8_t prevHR=0xFF; //byte __attribute__ ((noinline)) unBCD(byte bcd){return (((bcd>>4)*10)+(bcd&0xF)); } /* word TouchSensor(void) // { word cycles=30000; Pin2Output(DDRC,0);Pin2LOW(PORTC,0); // discharge sensor pin // delayMicroseconds(50); // works fine without??? delayMicroseconds(100); Pin2Input(DDRC,0); for(int i=0;i<cycles;i++){if (PINC&0b00000001){cycles=i;break;}} Pin2Output(DDRC,0);Pin2LOW(PORTC,0); // discharge sensor pin Pin2Input(DDRC,0);Pin2LOW(PORTC,0); // sensor pin return cycles; }*/ byte volatile WDsleep; byte volatile WDflag; byte sleeps=0; // Watchdog timeout values #define T16MS 0 #define T32MS 1 #define T64MS 2 #define T128MS 3 #define T250MS 4 #define T500MS 5 #define T1S 6 #define T2S 7 #define T4S 8 #define T8S 9 //#define system_sleep(mode,flags) { set_sleep_mode(mode); sleeps=0;do{sleep_enable();sleep_cpu();sleep_disable();if(flags){break;}else{sleeps++;}}while(1);} #define setup_watchdog(timeout){cli(); __asm__ __volatile__("wdr\n\t"); MCUSR&=~(1<<WDRF);WDTCSR|=(1<<WDCE)|(1<<WDE);WDTCSR=((1<<WDIE)|timeout);sei();} ISR(WDT_vect) { if(WDsleep){WDflag=1; WDsleep=0; } else{ reboot(); }} // Watchdog timer interrupt uint8_t DHTdata[5]; /* uint8_t DHT_ReadData(void) { uint8_t i; uint8_t v = 0; uint16_t d; for(i=0; i<8; i++) { d=10000;while (!(PINB&(1<<1))) {if(--d==0){return 0xBA;}}; delayMicroseconds(30); if (PINB&(1<<1)) { v = v |(1<<(7 - i)); d=10000;while (PINB&(1<<1)){if(--d==0){return 0xBA;}}; } } return v; } */ //#define TIMEOUT (F_CPU/1600); #define TIMEOUT (8000000L/400); //#define TIMEOUT (8000000L/1200); #define DHTLIB_OK 0 #define DHTLIB_ERROR_CHECKSUM -1 #define DHTLIB_ERROR_TIMEOUT -2 #define DHTLIB_INVALID_VALUE -999 extern unsigned long timer0_millis; //extern unsigned long timer0_overflow_count; int dhtread(void) //PB1 (9) { uint8_t mask = 128; uint8_t idx = 0; // EMPTY BUFFER for (uint8_t i=0; i< 5; i++) DHTdata[i] = 0; // REQUEST SAMPLE Pin2Output(DDRB,1);// pinMode(pin, OUTPUT); Pin2LOW(PORTB,1);// digitalWrite(pin, LOW); //delay(20); delayMicroseconds(20000); //OCR2A = 250; // Set CTC compare value Pin2HIGH(PORTB,1);// digitalWrite(pin, HIGH); delayMicroseconds(40); Pin2Input(DDRB,1);// pinMode(pin, INPUT); //TIMSK2 = 0;//(1 << OCIE2A); // Enable CTC interrupt // TCCR2B=0;//(0<<WGM22)|(0<<CS22)|(1<<CS21)|(0<<CS20); // 8 // TCCR2A=0;//(1<<WGM21);//ctc mode |(1<<CS22)|(0<<CS21)|(0<<CS20); // 256? // TIMSK2 = 0; // Enable CTC interrupt // OCR2A = 8; // Set CTC compare value cli(); //TCNT2=0; // GET ACKNOWLEDGE or TIMEOUT unsigned int loopCnt = TIMEOUT; // while(digitalRead(pin) == LOW) while((PINB&(1<<1)) == 0) if (--loopCnt == 0) return DHTLIB_ERROR_TIMEOUT; loopCnt = TIMEOUT; // while(digitalRead(pin) == HIGH) while((PINB&(1<<1)) > 0) if (--loopCnt == 0) return DHTLIB_ERROR_TIMEOUT; // READ THE OUTPUT - 40 BITS => 5 BYTES for (uint8_t i=0; i<40; i++) { loopCnt = TIMEOUT; // while(digitalRead(pin) == LOW) while((PINB&(1<<1)) == 0) if (--loopCnt == 0) return DHTLIB_ERROR_TIMEOUT; // unsigned long t = micros(); // this is where interrupts are enabled // unsigned long t = mmicros(); uint8_t t=TCNT0; loopCnt = TIMEOUT; // while(digitalRead(pin) == HIGH) while((PINB&(1<<1)) > 0) if (--loopCnt == 0) return DHTLIB_ERROR_TIMEOUT; // if ((micros() - t) > 40) DHTdata[idx] |= mask; // if ((mmicros() - t) > 50) DHTdata[idx] |= mask; // if ((TCNT0 - t) > 5) DHTdata[idx] |= mask; // if ((TCNT0 - t) > 6) DHTdata[idx] |= mask; if ((TCNT0 - t) > 7) DHTdata[idx] |= mask; mask >>= 1; if (mask == 0) // next byte? { mask = 128; idx++; } } return DHTLIB_OK; } int read22(void) { // READ VALUES // int rv = dhtread(pin); int rv = dhtread(); // PB1 // TIMSK2 = (1 << OCIE2A); // Enable CTC interrupt // OCR2A = 12; // Set CTC compare value //TCNT2=0; //TCCR2B=(0<<WGM22)|(0<<CS22)|(1<<CS21)|(0<<CS20); // 8 //TCCR2A=(1<<WGM21);//ctc mode |(1<<CS22)|(0<<CS21)|(0<<CS20); // 256? //TIMSK2 = (1 << OCIE2A); // Enable CTC interrupt //OCR2A = 8; // Set CTC compare value sei(); if (rv != DHTLIB_OK) { // humidity = DHTLIB_INVALID_VALUE; // invalid value, or is NaN prefered? // temperature = DHTLIB_INVALID_VALUE; // invalid value return rv; // propagate error value } // CONVERT AND STORE // humidity = word(bits[0], bits[1]) * 0.1; // if (bits[2] & 0x80) // negative temperature // { // temperature = -0.1 * word(bits[2] & 0x7F, bits[3]); // } // else //{ // temperature = 0.1 * word(bits[2], bits[3]); // } // TEST CHECKSUM uint8_t sum = DHTdata[0] + DHTdata[1] + DHTdata[2] + DHTdata[3]; if (DHTdata[4] != sum) return DHTLIB_ERROR_CHECKSUM; return DHTLIB_OK; } // port C #define moisture_input 0 #define divider_top 2 #define divider_bottom 1 //int moisture; // analogical value obtained from the experiment //long NextSoilMoistureCheck=0; //long NextTmpHumCheck=0; //word volatile uptime=0; // uptime в секундах word MCUtemp; word MCU_Vcc; word moisture; void SoilMoisture(){ uint8_t i; // int reading; // set driver pins to outputs Pin2Output(DDRC,divider_top);//pinMode(divider_top,OUTPUT); Pin2Output(DDRC,divider_bottom);// pinMode(divider_bottom,OUTPUT); // drive a current through the divider in one direction Pin2LOW(PORTC,divider_top);//digitalWrite(divider_top,LOW); Pin2HIGH(PORTC,divider_bottom);//digitalWrite(divider_bottom,HIGH); // wait a moment for capacitance effects to settle SetADC(0,moisture_input,2); // A0 // delay(250); for(i=0;i<4;i++){ delayMicroseconds(65000); } //260ms // while(!ADCfree); // ADCfree=0;// to avoid collision with Vcc // while(!ADCready);// у нас примерно 125 раз в секунду измеряется напряжение питание. здесь мы пожертвуем одним измерением ради датчика влажности почвы // cli(); //TCNT1=0; mRawADC(moisture,2); // mRawADC(reading,2); // moisture=analogRead(moisture_input); // take a reading // SetADC(0,14,1); // restore vcc adc channel // ADCfree=1; // reading=TCNT1; // ADCready=0; //sei(); // reverse the current Pin2HIGH(PORTC,divider_top);//digitalWrite(divider_top,HIGH); Pin2LOW(PORTC,divider_bottom);//digitalWrite(divider_bottom,LOW); // give as much time in 'reverse' as in 'forward' // delay(250); for(i=0;i<4;i++){ delayMicroseconds(65000); } //260ms // stop the current Pin2LOW(PORTC,divider_bottom);//digitalWrite(divider_bottom,LOW); // back to high imp state Pin2Input(DDRC,divider_top);//pinMode(divider_top,INPUT); Pin2Input(DDRC,divider_bottom);//pinMode(divider_bottom,INPUT); // digitalWrite(divider_top,LOW); // digitalWrite(divider_bottom,LOW); // return reading; } uint8_t v; //uint8_t extreset; //word InitialFreeRAM; void setup() { // extreset=MCUSR; Pin2Input(DDRC,3);Pin2HIGH(PORTC,3); // pull up on A3 (user button) //delay(100);// pull up settle time // AddMillis(12*MILS);// set time to noon // AddMillis(6*MILS);// set time to 6:00 // startup at midnight // uptime=0; // if(eeprom_read_byte((byte*)0)!=0xAA){eeprom_write_byte((byte*)0,0xAA);} // our signature // else{ //v=PINC&(1<<3); //8 if A3 is not pressed //0 if A3 is pressed // if ((PINC&(1<<3))==0){ uptime=0; } // if A3 is low (button is pressed during startup) //eeprom_update_byte((byte*)1,0);eeprom_update_byte((byte*)2,0); // if A3 button is held pressed during startup - uptime is set to 0 //else //{ // if (PINC&(1<<3)==0){ // uptime=(eeprom_read_byte((byte*)1)<<8)|eeprom_read_byte((byte*)2); //} // uptimeS=uptime+5;// 5 seconds to reset //} // bts=uptime;// to prevent false trigger on startup //} // PCMSK1 = 1<<PCINT11; // setup pin change interrupt on A3 pin // PCICR |= 1<<PCIE1; // Pin2Input(DDRD,2);Pin2HIGH(PORTD,2);// pinMode(1,INPUT_PULLUP); // attachInterrupt(0, pin2_isr, RISING); //sss=0; // watchdogSleep(SLEEP_MODE_PWR_DOWN,T2S); // 2 sleeps - INT0 every second //delay(2000); if(!sss){ERR=ERR_NO_SQW;} //TWI setup // TWSR&=~((1<<TWPS0)|(1<<TWPS1)); // TWBR=40; // 1215 // TWBR=32; // TWBR = ((F_CPU / TWI_FREQ) - 16) / 2; // 1023 // TWBR=24; // 833 // TWBR=20; // 741 // TWBR=16; // 649 // TWBR=12; // 558 // TWBR=8; // 475 // TWBR=4; // 403 // TWBR=2; // 370 unstable // TWBR=1; // unstable SetADC(0,14,500); // vcc //setup timer1 cli(); // TCCR1A=0x00; TCCR1A=(0<<WGM11)|(0<<WGM10); // TCCR1B=(1 << WGM12)|(0<<CS22)|(0<<CS21)|(1<<CS20); // /no prescaler; TCCR1B=(0<<WGM13)|(1<<WGM12)|(0<<CS12)|(1<<CS11)|(0<<CS10); // /8; 1us clock //ctc mode // TCCR1B=(0<<WGM13)|(1<<WGM12)|(0<<CS12)|(1<<CS11)|(1<<CS10); // /64; 8us clock //ctc mode // TCCR1B=0b00001010; // TCCR1B=(1<<WGM12)|(0<<CS22)|(1<<CS21)|(0<<CS20); // /8; 1us clock //TCNT1H=0x00; TCNT1L=0x00; TCNT1=0; // ICR1H=0x00; ICR1L=0x00; // OCR1AH=0xFF; OCR1AL=0xFF; //OCR1AH=0x9C; //OCR1AL=0x40; // 40000// OCR1AH=0x4E;// OCR1AL=0x20; // 20000// OCR1AH=0x03;// OCR1AL=0xE8; // 1000 // OCR1A=0xFFFF; OCR1A=62496;//2Hz at *MHz /64 // OCR1AH=0x9C; OCR1AL=0x40; // 40000 // TCCR1B |= (1 << WGM12); // TCCR1B |= (1 << CS10); // no interrupts just counting 1 tick is 1 microsecond // TIMSK1 = (1 << OCIE1A); // TIMSK1 |= (1 << TOIE1); // setup timer2 /* TCNT2=0; TIMSK2=0; TCCR2B=(0<<WGM22)|(0<<CS22)|(0<<CS21)|(1<<CS20); // 1 xxxxx000 32 microseconds // TCCR2B=(0<<WGM22)|(0<<CS22)|(1<<CS21)|(0<<CS20); // 8 TCCR2A=(1<<WGM21);//ctc mode |(1<<CS22)|(0<<CS21)|(0<<CS20); // 256? //TIMSK2 = (1 << OCIE2A); // Enable CTC interrupt OCR2A = 0xFF; // Set CTC compare value //18 min to humtmp work? */ sei(); // dht.begin(); //pinMode(A0, INPUT); //digitalWrite(A0, HIGH); Pin2Input(DDRB,1); //Pin2Output(DDRB,2); Pin2HIGH(PORTB,1);// digitalWrite(A0, HIGH); // internal pull up setup_watchdog(T2S); // если в течении 2s не сбросить сторожевого пса то перезагрузка. (защита от зависаний) // Pin2Input(DDRC,3);Pin2HIGH(PORTC,3); // pull up on A0 // IDEA // IDEA 2 just get VCC! :))) //DDRD|=(1<<5)|(1<<6)|(1<<7); // same same\ //Pin2Output(DDRD,5);Pin2Output(DDRD,6);Pin2Output(DDRD,7); LcdBack(); // NextSoilMoistureCheck=NextTmpHumCheck=uptime; Pin2Output(DDRB,6); Pin2Output(DDRB,7); // InitialFreeRAM=freeRam(); } //ISR (PCINT1_vect){ if (PINC&(1<<3)==0){ HR++; HR&=0xF; FlashIntensity=Intensity[HR]; }} // A3 user button handler //ISR (PCINT1_vect){ if(uptime!=bts){//A3 is low here //if (uptime<uptimeS){uptime=0; eeprom_update_byte((byte*)1,0);eeprom_update_byte((byte*)2,0); reboot(); } //else{ //HR++; uptime+=(60*60/2); if(HR==24){HR=0;uptime=0;}; FlashIntensity=Intensity[HR]; LastTimeFan=uptime; //bts=uptime; //}} // A3 user button handler /* ISR(TIMER1_OVF_vect) { //Toggle pin PD0 every second // PIND=(1<<PD0); t1ovf++; } */ //uint16_t volatile ctr; //uint8_t volatile checktime=0; //IR: 1969 Full: 6750 Max (IR|Full):1978 6768 -- 4920LUX -рассеянный дневной свет 12:39 0.29 //IR: 3327 Full: 11525 Max (IR|Full):3331 11590 у стеклопакета 12790 LUX 0.287 //IR: 8609 Full: 33199 Max (IR|Full):8843 33936 у стеклопакета 36700 lux солнце сквозь дымку облаков. 15:00 0.26 меньше красного /* ISR (TIMER1_COMPA_vect) { checktime=1;ctr++; } ISR(TIMER1_OVF_vect) { checktime=1;ctr++; //Toggle pin PD0 every second // PIND=(1<<PD0); } */ uint8_t volatile t2ovf=0; boolean volatile UpdateS=true; ISR (TIMER2_COMPA_vect) { UpdateS=true; } //long wctr; /*ISR (TIMER2_COMPA_vect) { // if (++t2ovf==249) // everry 2s 8sec slow on 38min if (++t2ovf==248) // everry 2s { t2ovf=0; uptime++; UpdateS=true; // if(ADCfree){ADCfree=0;ADCSRA=(1<<ADEN)|(1<<ADSC)|(0<<ADATE)|(1<<ADIE)|2;} // start vcc measurement (every 1/125s) } }*/ /* "in r21,3\n\t" // PINB "mov r20,r21\n\t" // bits 6&7 cleared "ori r21,0b01000000\n\t" // bit6set "sts 0x0084,r1\n\t" // low(TCNT1)=0 "out 5,r21\n\t" // 6 ON "mov r22,r20\n\t" "ori r22,0b10000000\n\t" // bit7set */ //ISR(TIMER2_COMPA_vect,ISR_NAKED) { //ISR(TIMER2_COMPA_vect) { //ca++; // 0x21 0x22 0x28(EEPROML EEPROMH OCR0B) //__asm__ __volatile__( //"out 0x28,r1\n\t" //"mov r1,r24\n\t" //"in r1,0x28\n\t" //"out 0x22,r1\n\t" //"mov r1,r24\n\t" //"in r1,0x22\n\t" // "in r21,3\n\t" // PINB // bits 6&7 cleared // "in r20,3\n\t" // PINB // bits 6&7 cleared //); // PORTB|=0x7E; //OCR0A=45; /* if(ist==0) { PORTB&=~(1<<7); PORTB|=(1<<6); ist=1; } else { PORTB&=~(1<<6); PORTB|=(1<<7); ist=0; }*/ // if(ist==0) // if(TCNT0&1) //{ // PORTB|=(1<<6); // NOP; NOP; NOP; NOP; NOP; NOP; NOP; NOP; NOP; NOP; NOP; NOP; NOP; NOP; NOP; NOP; NOP; NOP; NOP; NOP; NOP; NOP; NOP; NOP; // NOP; NOP; // PORTB&=~(1<<6); // PORTB|=(1<<7); // NOP; NOP; NOP; NOP; NOP; NOP; //NOP; //NOP; NOP; //NOP; NOP; NOP; // PORTB&=~(1<<7); // ist=1; // } // else if(TCNT0&3==2) //{ // PORTB|=(1<<7); //NOP; NOP; NOP; NOP; NOP; NOP; NOP; NOP; NOP; NOP; NOP; NOP; NOP; NOP; NOP; NOP; // NOP; NOP; NOP; NOP; //NOP; NOP; NOP; NOP; //PORTB&=~(1<<7); // PORTB|=(1<<7); // NOP; NOP; NOP; NOP; NOP; NOP; //NOP; //NOP; NOP; //NOP; NOP; NOP; // PORTB&=~(1<<7); // ist=1; //} // else //{ // ist=0; // } /* PORTB|=(1<<6); //__asm__ __volatile__("sbi 5,6\n\t"); // __asm__ __volatile__("push r1\n\t");//2 //__asm__ __volatile__("in r1,0x3F\n\t");//1 // NOP; NOP; NOP; NOP; NOP; NOP; NOP; NOP; NOP; NOP; NOP; NOP; //NOP; NOP; NOP; NOP; // NOP; NOP; NOP; NOP; NOP; NOP; NOP; //NOP; // NOP; NOP; NOP; NOP; NOP; NOP; NOP; NOP; PORTB&=~(1<<6); PORTB|=(1<<7); // NOP; NOP; NOP; NOP; NOP; NOP; NOP; NOP; NOP; NOP; NOP; NOP; //NOP; NOP; NOP; NOP; //NOP; NOP; NOP; NOP; NOP; NOP; NOP; //NOP; // NOP; NOP; NOP; NOP; NOP; NOP; NOP; NOP; // __asm__ __volatile__("out 0x3F,r1\n\t");//1 //__asm__ __volatile__("pop r1\n\t");//2 PORTB&=~(1<<7); */ //__asm__ __volatile__("reti\n\t"); //PORTD ^= (1 << PORTD6); // toggle PD6 //} //ISR(TIMER2_COMPB_vect) { //cb++; //RTB ^= (1 << PORTB0); // toggle PB0 //} //ISR(TIMER2_OVF_vect) { //cc++; //RTD ^= (1 << PORTD7); // toggle PD7 //} //word LastVcc=0; //ISR(ADC_vect){ ADCresult=ADCW; if(LastVcc<ADCresult) { if(ADCresult>260){SaveUptime();reboot();} } LastVcc=ADCresult; ADCfree=1;} // 1.25s delay after SaveUptime uint16_t Flashes=0; // число вспышек в секунду /* uint16_t st1,st2,delta,flash_duration; uint8_t flash_start_mask,flash_stop_mask; // channel for flash uint8_t a1,b1,c1,d1,e1; byte tqq; //byte pinmask,prt; //word max0=0,max1=0,max01=0,max10=0; word Flashes=0; // число вспышек в секунду long FlasheS=0; // общее число вспышек void Flash(byte chips,byte Duration) { // word lamps=chips*8; // Pin2Output(DDRD,7);Pin2HIGH(PORTD,7); // G stop light // Pin2Output(DDRD,5);Pin2HIGH(PORTD,5); // SRCLR to HIGH. when it is LOW all regs are cleared // Pin2Output(DDRB,1); // Pin2Output(DDRD,6); // for(byte n=0;n<Duration;n++) // { PORTB=0b00000010;// Pin2HIGH(PORTB,1); // DATAPIN to HIGH PORTD=0xF0;PORTD=0xB0; //Pin2HIGH(PORTD,6);Pin2LOW(PORTD,6); // clock pulse PORTB=0; //Pin2LOW(PORTB,1); // next data are zeroes // Pin2Output(DDRB,6);Pin2LOW(PORTB,6); // test latch // delayMicroseconds(5); // shift register is cleared // what is in storage register we don't care because G is HIGH and all outputs are OFF // delayMicroseconds(2); //t=0; // if((z&7)==0){Pin2HIGH(PORTD,1);} // 1st bit is "1" // Pin2HIGH(PORTD,1); // 1st bit is "1" //byte pb=PORTB; //byte pd=PORTD; //0xB0 10110000 pins 4,5&7 are set //grr=pd; //byte pd7set=PORTD; //byte pd7setd6set=PORTD&0x40; //byte pd7clear=pd7set&~0x80; //byte pd67clear=pd7set&~0xC0; //for(byte z=0;z<lamps;z++)// serie of flashes //{ //PORTD=0xF0;PORTD=0xB0; // Pin2HIGH(PORTD,6); Pin2LOW(PORTD,6); // clock pulse //PORTB=pb; cli(); PORTD=0x70; delayMicroseconds(15); PORTD=0x30; //PORTD=0xB0;//NOP;//PORTD=0xB0;//PORTD=0xF0;PORTD=0xB0; //Pin2HIGH(PORTD,6); Pin2LOW(PORTD,6);//pin0 PORTD=0x70; delayMicroseconds(15); PORTD=0x30; //PORTD=0xB0;// NOP;//PORTD=0xB0;//PORTD=0xF0;PORTD=0xB0; //Pin2HIGH(PORTD,6); Pin2LOW(PORTD,6);//pin0 PORTD=0x70; delayMicroseconds(15); PORTD=0x30; //PORTD=0xB0;// NOP;//PORTD=0xB0;//PORTD=0xF0;PORTD=0xB0; //Pin2HIGH(PORTD,6); Pin2LOW(PORTD,6);//pin0 PORTD=0x70; delayMicroseconds(15); PORTD=0x30; //PORTD=0xB0;// NOP;//PORTD=0xB0;//PORTD=0xF0;PORTD=0xB0; //Pin2HIGH(PORTD,6); Pin2LOW(PORTD,6);//pin0 PORTD=0x70; delayMicroseconds(15); PORTD=0x30; //PORTD=0xB0;// NOP;//PORTD=0xB0;//PORTD=0xF0;PORTD=0xB0; //Pin2HIGH(PORTD,6); Pin2LOW(PORTD,6);//pin0 PORTD=0x70; delayMicroseconds(15); PORTD=0x30; //PORTD=0xB0;// NOP;//PORTD=0xB0;//PORTD=0xF0;PORTD=0xB0; //Pin2HIGH(PORTD,6); Pin2LOW(PORTD,6);//pin0 PORTD=0x70; delayMicroseconds(15); PORTD=0x30; //PORTD=0xB0;// NOP;//PORTD=0xB0;//PORTD=0xF0;PORTD=0xB0; //Pin2HIGH(PORTD,6); Pin2LOW(PORTD,6);//pin0 PORTD=0x70; delayMicroseconds(15); PORTD=0x30;// PORTD=0xB0;// NOP;//PORTD=0xB0;//PORTD=0xF0;PORTD=0xB0; //Pin2HIGH(PORTD,6); Pin2LOW(PORTD,6);//pin0 PORTD=0x70; delayMicroseconds(15); PORTD=0x30;// PORTD=0xB0;// NOP;//PORTD=0xB0;//PORTD=0xF0;PORTD=0xB0; //Pin2HIGH(PORTD,6); Pin2LOW(PORTD,6);//pin0 PORTD=0xB0;// restore pin7 high pin6 low //PORTD=0x30; NOP; PORTD=0x70; PORTD=0xB0; //PORTD=0x30; NOP; PORTD=0x70; PORTD=0xB0; //PORTD=0x30; NOP; PORTD=0x70; PORTD=0xB0; //PORTD=0x30; NOP; PORTD=0x70; PORTD=0xB0; //PORTD=0x30; NOP; PORTD=0x70; PORTD=0xB0; //PORTD=0x30; NOP; PORTD=0x30; PORTD=0xB0; //PORTD=0xB0; //4,5,7 // Pin2LOW(PORTD,7); PORTB=pb; Pin2HIGH(PORTD,7); // Pin2LOW(PORTD,7); PORTB=pb; Pin2HIGH(PORTD,7); // Pin2LOW(PORTD,7); PORTB=pb; Pin2HIGH(PORTD,7); sei(); //}// for //} // Pin2LOW(PORTD,5);Pin2Input(DDRD,5); // SRCLR to LOW. Clear regs // Pin2Input(DDRB,1); // DATAPIN // Pin2Input(DDRD,6); // CLK&LATCH // Pin2LOW(PORTD,7);Pin2Input(DDRD,7); // detach G control pin (it is pull upped by resistor) --- no so really } // charging capacitor on D2 pin. when it is discharged to logic "0" INT0 on low level is fired //=========================================================================================== byte pin2_interrupt_flag=0; byte pin3_interrupt_flag=0; byte pin0_interrupt_flag=0; byte pin7_interrupt_flag=0; //ISR (BAD_vect) //{ // bbb++; //} //boolean volatile UpdateRTC=true; // Update RTC at least once (to reset it if needed) //boolean volatile Update500=true; // Update once in 500ms ISR (PCINT1_vect) // A3 { // PINC&(1<<3) // if((++ticks&0x1)==0){UpdateRTC=true;}// update clock every second // Update500=true; // alarms ? } void pin2_isr() { cnt1=TCNT1; detachInterrupt(0); //INT 0 // sleep_disable();// a bit later pin2_interrupt_flag = 1; } void pin3_isr() { cnt1=TCNT1; detachInterrupt(1); //INT 1 // sleep_disable();// a bit later pin3_interrupt_flag = 1; } word VH(void) { word t1; // ADCSRA|=(1<<ADEN); //turn on ADC // SetADC(1,8,500); // select temperature sensor 352 (need calibration) // mRawADC(t1,2); // mRawADC(t1,2); SetADC(0,2,500); mRawADC(t1,2); mRawADC(t1,2); ADCoff; // ADCSRA&=~(1<<ADEN); //turn off ADC // ACSR = (1<<ACD); // turn off analog comparator return t1; } word Vcc(void) { word t1; // measure with ADC inner voltage // ADCSRA|=(1<<ADEN); //turn on ADC // SetADC(1,8,500); // select temperature sensor 352 (need calibration) // mRawADC(t1,2); // mRawADC(t1,2); SetADC(0,14,500); mRawADC(t1,2); mRawADC(t1,2); ADCoff; // ADCSRA&=~(1<<ADEN); //turn off ADC // ACSR = (1<<ACD); // turn off analog comparator return t1; } word Tmp(void) { word t1; // measure with ADC inner voltage // ADCSRA|=(1<<ADEN); //turn on ADC SetADC(1,8,500); // select temperature sensor 352 (need calibration) mRawADC(t1,2); mRawADC(t1,2); // ADCSRA&=~(1<<ADEN); //turn off ADC ADCoff; // ACSR = (1<<ACD); // turn off analog comparator return t1; } word tc1; word sc[16]; word mn=5555,mx=5000; uint16_t t1,t2,tt1,tt2,tt3,ttt1,ttt2; word it=0; byte rnd; //long flashes=0; long ln=0; long fn=0; word tim; word fnt,lnt; // fast/long nap time void unap(byte timeout) { // Setup the WDT cli(); __asm__ __volatile__("wdr\n\t");// wdt_reset(); MCUSR &= ~(1<<WDRF); // Clear the reset flag. WDTCSR |= (1<<WDCE) | (1<<WDE); // In order to change WDE or the prescaler, we need to set WDCE (This will allow updates for 4 clock cycles). // WDTCSR = (1<<WDIE) | (1<<WDP3) | (0<<WDP2) | (0<<WDP1) | (1<<WDP0);//8s WDTCSR = ((1<<WDIE) | timeout); sei(); WDflag=0; WDsleep=1;// notify WD that we are sleeping (to avoid reboot) sleeps=0; do{ sleep_enable(); sleep_cpu(); //wake up here // check if it us or not sleep_disable(); if(WDflag){break;}else{sleeps++;} }while(1); } void fastnap(void) { word prev; Pin2Output(DDRD,2);Pin2HIGH(PORTD,2);// charge cap //delayMicroseconds(2); WDflag=0; sleeps=0; prev=TCNT1; TCNT1=0; do{ cli(); pin2_interrupt_flag=0; sleep_enable(); attachInterrupt(0, pin2_isr, LOW); Pin2LOW(PORTD,2);Pin2Input(DDRD,2); // controlled charging (very impurtant set it 2 input (high impedance state)) sei(); sleep_cpu(); //wake up here sleep_disable(); // if(pin3_interrupt_flag||WDhappen){break;}else{sleeps++;} // if wakeup by WD then reboot? if(pin2_interrupt_flag||WDflag){break;}else{sleeps++;} // WD is important in case RC sleeper went off }while(1); TCNT1+=prev; // cli();t1111=TCNT1;sei();//atomic read } void longnap(void) { word prev; Pin2Output(DDRD,3);Pin2HIGH(PORTD,3);// charge cap WDflag=0; sleeps=0; prev=TCNT1; TCNT1=0; do{ cli(); pin3_interrupt_flag=0; sleep_enable(); attachInterrupt(1, pin3_isr, LOW); Pin2LOW(PORTD,3);Pin2Input(DDRD,3); // controlled charging (very impurtant set it 2 input (high impedance state)) sei(); sleep_cpu(); //wake up here sleep_disable(); // if(pin3_interrupt_flag||WDhappen){break;}else{sleeps++;} if(pin3_interrupt_flag||WDflag){break;}else{sleeps++;} // WD is important in case RC sleeper went off }while(1); TCNT1+=prev; // cli();t1111=TCNT1;sei();//atomic read } /* void NiceBack(byte x1,byte y1,byte x2,byte y2) { byte r,g,b; fillScreen(0x000000); setAddrWindow(y1,x1,y2,x2); Pin2HIGH(PORTD,4); // Pin2LOW(PORTD,1); for(byte j=x1;j<x2;j++) { for(byte i=y2+1;i>0;i--) { r=(i<<4); g=(i<<3); b=(i<<4); spiwrite(r); spiwrite(g); spiwrite(b); } } // Pin2HIGH(PORTD,1); setAddrWindow(144,0,167,127); Pin2HIGH(PORTD,4); // Pin2LOW(PORTD,1); for(byte j=0;j<128;j++) { for(byte i=0;i<16;i++) { r=(i<<4); g=(i<<4); b=(i<<2); spiwrite(r); spiwrite(g); spiwrite(b); } } // Pin2HIGH(PORTD,1); // fillRect(16,32,48,64,0); // fillRect(0,16,128,96,0); } void DrawBox(byte x,byte y, byte x2,byte y2,byte r,byte g,byte b) { setAddrWindow(x,y,x2,y2); Pin2HIGH(PORTD,4); for (word k=0;k<((x2-x+1)*(y2-y+1)*3);k++){spiwrite(r);spiwrite(g);spiwrite(b);} } */ void ShowBars(void) { uint8_t r,g,b; // setAddrWindow(70,4,77,123); //ta("hr:");t3(hr); // m max=11 //16 // *15/m // gradient background // setAddrWindow(0,4,15,123); //NiceBack(0,0,128,15); //NiceBack(0,16,127,31); /* setAddrWindow(0,0,15,127); Pin2HIGH(PORTD,4); Pin2LOW(PORTD,1); for(byte j=0;j<128;j++) { for(byte i=16;i>0;i--) { r=(i<<4); g=(i<<3); b=(i<<4); spiwrite(r); spiwrite(g); spiwrite(b); } } Pin2HIGH(PORTD,1); */ // bars for(uint8_t i=0;i<16;i++) { // gg=(Intensity[i]*14)/mi;if(!gg){gg=1;} uint8_t gg=Intensity[i];//if(!gg){gg=1;} if(i!=HR){r=0x8c;g=0xac;b=0x8c;}else{r=0x8c;g=0xfc;b=0x4c;} // DrawBox(16-gg,i*8,15,i*8+6,r,g,b); } //DrawBox(17,HR*8,17,HR*8+6,0x8c,0xfc,0x4c); } /* word fastnaptime; word longnaptime; word nextnaptime; long sssn; long sssb; void SleepTime(void) { fastnaptime=0; longnaptime=0; nextnaptime=0; set_sleep_mode(SLEEP_MODE_IDLE); WDsleep=1;// notify WD that we are sleeping (to avoid reboot) __asm__ __volatile__("wdr\n\t");// wdt_reset(); // to avoid WD fire first fastnap(); if (pin2_interrupt_flag){fastnaptime=cnt1;}else { ERR=ERR_BROKEN_SLEEP; } WDsleep=1;// notify WD that we are sleeping (to avoid reboot) __asm__ __volatile__("wdr\n\t");// wdt_reset(); // to avoid WD fire first longnap(); if (pin3_interrupt_flag){longnaptime=cnt1;}else { ERR=ERR_BROKEN_SLEEP; } // WDsleep=1;// notify WD that we are sleeping (to avoid reboot) //__asm__ __volatile__("wdr\n\t");// wdt_reset(); // to avoid WD fire first // nextnap(); //if (pin0_interrupt_flag){nextnaptime=cnt1;}else { ERR=ERR_BROKEN_SLEEP; } set_sleep_mode(SLEEP_MODE_PWR_DOWN); }*/ /* boolean Touched(void) { byte x,e=2; for (x=0;x<3;x++){ delay(700); Cherry(15+x*36,100); } do { for (x=0;x<4;x++){ if (TouchSensor()>Etouch){ return true; } delay(200); } // DrawBox(100,15+e*30,123,15+23+e*36,0x00,0x00,0x00); if(e==0){break;} e--; }while(1); return false; }*/ /* void Settings(void) { // if(TFT_IS_ON) // а как иначе? :) // { NiceBack(0,0,128,15); setAddrWindow(16,0,16+7,127);ta("Настройки * Settings"); setAddrWindow(24,0,24+7,127);ta("===================="); setAddrWindow(50,15,50+7,127);ta("Тестовый режим?");setAddrWindow(70,15,70+7,127);ta("Set test mode ?"); // кубики if (Touched()){ FlashTest(); DrawBox(16,0,159,127,0x00,0x00,0x00); // очистка экрана return; } // переход в тестовый режим // setAddrWindow(60,0,60+7,119);ta(" false"); // delay(5000); // } } void Cherry(byte x,byte y) { word pos=0; byte r,g,b,z; setAddrWindow(y,x,y+23,x+23); Pin2HIGH(PORTD,4); do { for(z=0;z<24;z++) { b=pgm_read_byte(&(C24[pos++])); g=pgm_read_byte(&(C24[pos++])); r=pgm_read_byte(&(C24[pos++])); spiwrite(r); spiwrite(g); spiwrite(b); }// pos+=2;// row padding } while (pos<(24*24*3)); }*/ /* #define LONG_TOUCH_THRESHOLD 4 // критерий длинного нажатия в секундах volatile long lvv,lmv,lm2;// luminous volatile long mlvv,mlmv,mlm2;// luminous volatile word lasttouch,ltp,CurrentTouch; byte LongTouch=0; word rtcl; word FT[5]; void UpdateScreen(void) { // DrawBox(0,0,159,127,0x00,0x00,0x00); // очистка экрана setAddrWindow(20,0,27,127); ta("ERR");th(ERR); ta(" CT");tn(1000,CurrentTouch); ta(" Ti");tn(100,ticks); ta(" L");tn(100,LCD); ta(" H");tn(10,HR); // th(rtc8);ta(" fn");tn(10000,fastnaptime);ta(" ln");tn(10000,longnaptime); setAddrWindow(30,0,37,127); ta("Et");tn(1000,Etouch);ta(" rtcl");tn(10000,rtcl);ta(" Fi");th(FlashIntensity); setAddrWindow(40,0,47,127); ta(" it");tn(10000,it);ta(" LT");th(LongTouch); ta(" sl");tn(10,sleeps);ta(" ");th(grr);th(grr2); setAddrWindow(50,0,57,127); //ta("sss=");tn(100000,sss); for(byte w=1;w<9;w++){th(TimeS[w]);ta(":");} //3.61v - 319 3.93v -291 5v~190 setAddrWindow(60,0,67,127); // ta(" sss=");tn(1000,sss); // ta(" bbb=");tn(1000,bbb); ta(" if=");th((pin0_interrupt_flag<<5)|(pin2_interrupt_flag<2)|(pin3_interrupt_flag<<1)|(WDflag)); ta("Vcc");tn(100,VccN);ta(" L");tn(100,VccL);ta(" H");tn(100,VccH); setAddrWindow(70,0,77,127); ta("Vcc");tn(100,114000L/VccN);ta(" L");tn(100,114000L/VccL);ta(" H");tn(100,114000L/VccH); // 1125300L ta(" VH=");tn(1000,VH()); setAddrWindow(80,0,87,127); ta(" f");tn(10000,fastnaptime);ta(" l");tn(10000,longnaptime); ta(" n");tn(10000,nextnaptime); setAddrWindow(90,0,97,127); // ta("ch0=");tn(1000,chan0);ta("ch1=");tn(1000,chan1); ta("ch0=");tn(1000,Light.W[0]);ta(" ch1=");tn(1000,Light.W[1]); // ta("ch0=");wh(Light.W[0]);ta(" ch1=");wh(Light.W[1]); LightMax0.W[0]=0;LightMax1.W[1]=0; setAddrWindow(100,0,107,127); ta("0 ");tn(10000,LightMax0.W[0]);tn(10000,LightMax0.W[1]); ta(" 1 ");tn(10000,LightMax1.W[0]);tn(10000,LightMax1.W[1]); // ta("grr ");tn(100,grr); ta(" ");th(grr);ta(" ");th(grr2); // ta("FCPU ");tn(1000000,I2C_CPUFREQ); // ta("DC ");lh(I2C_DELAY_COUNTER); setAddrWindow(110,0,117,127); ta("uptime");tn(10000,uptime); setAddrWindow(120,0,127,127); ta(" fps");tn(1000,Flashes); ta(" ");tn(1000000000,FlasheS); setAddrWindow(130,0,137,127); tn(1000,FT[0]);ta(" "); tn(1000,FT[1]);ta(" "); tn(1000,FT[2]);ta(" "); tn(1000,FT[3]);ta(" "); tn(1000,FT[4]); setAddrWindow(140,0,147,127); TouchSample(); ta("Touch:");wh(TouchD[0]);wh(TouchD[1]);wh(TouchD[2]);wh(TouchD[3]); Cherry(103,108); */ // 42x24 /* setAddrWindow(100,100,141,123); // setAddrWindow(x,y,x2,y2); Pin2HIGH(PORTD,4); // for (word k=0;k<((x2-x+1)*(y2-y+1)*3);k++){spiwrite(r);spiwrite(g);spiwrite(b);} word pos=0x36; do //for(word z=0;z<42*24*3;z++) { for(byte z=0;z<42;z++) { byte b=pgm_read_byte(&(Bat[pos++])); byte g=pgm_read_byte(&(Bat[pos++])); byte r=pgm_read_byte(&(Bat[pos++])); spiwrite(r); spiwrite(g); spiwrite(b); } pos+=2;// row padding } while(pos<(42*24*3+0x36)); */ // setAddrWindow(152,0,159,127);ta("-----==<АУРА>==-----3"); //} word DHThum,DHTtmp; boolean DHTreadAll(void) { boolean res=false; //if (DHTread()) { if(read22()==DHTLIB_OK) { DHThum = DHTdata[0]; DHThum *= 256; DHThum += DHTdata[1]; DHTtmp = (DHTdata[2] & 0x7F); DHTtmp *= 256; DHTtmp += DHTdata[3]; res=true; } return res; } //uint8_t masks[8]={0,0x40,0x60,0x70,0x78,0x7C,0x7E,0x7F}; // filled uint8_t masks[10]={0,0x80,0x40,0x20,0x10,0x08,0x04,0x02,0x01,0xFF}; // outline with t >29 is heavy selected uint8_t tmin=0xFF; uint8_t tmax=0; uint8_t vmin=0xFF; uint8_t vmax=0; void TempBar(uint8_t v) { uint8_t i,d; LcdSetPos(0,5); Pin2HIGH(PORTD,4); Pin2LOW(PORTD,1); for(i=75;i>0;i--){TempH[i]=TempH[i-1];}// shift right TempH[0]=v; // put new value for(i=0;i<76;i++){ d=0; if (TempH[i]>=21){d=TempH[i]-21;} if(d>9){d=9;} spiwrite(masks[d]);}// display graph [22..29] Pin2HIGH(PORTD,1); } uint8_t dot[5]={0,0x10,0x18,0x1C,0x1E}; void IntBar(void) { uint8_t i,c; Pin2HIGH(PORTD,4); Pin2LOW(PORTD,1); for (i=0;i<24;i++){ c=dot[Intensity[i]]; if (i==HR){c|=0x40;} spiwrite(c);} Pin2HIGH(PORTD,1); } void SoilBar(void) { uint8_t i,b=moisture/23; // 0..39 0..920 1 pixel=920/40=23 Pin2HIGH(PORTD,4); Pin2LOW(PORTD,1); spiwrite(0x7C); for (i=0;i<b;i++){spiwrite(0x44);} for (i=b;i<41;i++){spiwrite(0x7C);} Pin2HIGH(PORTD,1); } //void GetVcc(void){ VccN=Vcc(); if (VccN<VccH){VccH=VccN;} if (VccN>VccL){VccL=VccN;} } //280us uint8_t chip[6]={0x00,0x55,0x7F,0x7F,0x7F,0x55}; uint8_t degree[5]={0x00,0x06,0x09,0x09,0x06}; uint8_t del[2]={0x00,0x7F}; void LcdBack(void) { LcdInit(); LcdClear(); LcdSetPos(0,0);ta("АуРа"); LcdSetPos(0,1);ta("Яркость"); LcdSetPos(0,2);ta("Полив"); // LcdSetPos(0,3);ta("Влажность"); LcdSetPos(70,3);ta("%"); LcdSetPos(0,3);ta("Влажн"); LcdSetPos(44,3);ta("%"); // LcdSetPos(0,4);ta("Температура"); LcdSetPos(70,4); ta("+"); // будем оптимистами LcdSetPos(0,4);ta("t");spiout(&degree[0],5);ta("C"); LcdSetPos(44,4); ta("+"); // будем оптимистами FanIcon(0); } //void SaveUptime(void){eeprom_update_byte((byte*)1,(uptime>>8));eeprom_update_byte((byte*)2,(uptime&0xFF));} uint8_t Fan0[7]={0x0E,0x6A,0x5C,0x77,0x1D,0x2B,0x38}; uint8_t Fan1[7]={0x0E,0x6E,0x7C,0x7F,0x1F,0x3B,0x38}; void spiout(uint8_t *s,uint8_t len){Pin2HIGH(PORTD,4); Pin2LOW(PORTD,1); for (uint8_t i=0;i<len;i++){spiwrite(s[i]);}Pin2HIGH(PORTD,1);} void FanIcon(uint8_t t) { uint8_t *icon=&Fan0[0]; if (t){icon=&Fan1[0];} LcdSetPos(77,5);//combine them? spiout(icon,7); // Pin2HIGH(PORTD,4); // Pin2LOW(PORTD,1); //for (uint8_t i=0;i<7;i++){spiwrite(icon[i]);} // Pin2HIGH(PORTD,1); } //word co1=0; // timer0_millis+=3651351L; //3600000L; // timer0_millis+=3554700L; //3600000L; // timer0_millis+=3620000L; //3600000L; // чуток бегут // timer0_millis+=3625000L; //3600000L;//чуток бегут // timer0_millis+=3630000L; //+19с за 1ч40 // timer0_millis+=3637000L; //3600000L; //1s 40min // timer0_millis+=3637500L; //3600000L; 7s 1:39 ahead //timer0_millis+=3638500L; //3600000L; +25s 2:38 // timer0_millis+=3636000L; // +10s 01:03 // timer0_millis+=3646000L; // +3s 1:43 // timer0_millis+=3647000L; +2s 1:48 // timer0_millis+=3648500L; // -44s 10:09 // timer0_millis+=3647800L; // -5s 3:36 /* ISR(TIMER0_OVF_vect) { // timer0_overflow_count++; NOP; }*/ //void*() df=Delay1; //void eeprom_update_byte(byte*addr,byte v){ if(eeprom_read_byte((byte*)addr)!=v){eeprom_write_byte((byte*)addr,v);}} void AddMillis(long a) { cli(); timer0_millis+=a; // // if(timer0_millis>=24*MILS){timer0_millis-=(24*MILS);} // overlap 24h // later // LastTimeFan=timer0_millis; // чтобы не жужжал когда часы переводим sei(); } // the loop routine runs over and over again forever: //byte last_checked; uint8_t button_is_pressed=0; uint8_t prevMN=0xFF; long milli; long whh; uint8_t MN; uint8_t c; long mi; void x0(void) { __asm__ __volatile__( //"Start1:\n\t" "in r18,3\n\t" // r18=PINB (6OFF 7OFF) "mov r19,r18\n\t" "mov r20,r18\n\t" "ori r19, 0b01000000\n\t" // bit 6 is ON "ori r20, 0b10000000\n\t" // bit 7 is ON "000:\n\t" // 1st=============== "cli\n\t" "out 5,r18\n\t" // set pin 6 OFF pin7 OFF // "out 5,r19\n\t" // set pin 6 ON "nop\n\t""nop\n\t""nop\n\t""nop\n\t""nop\n\t" "nop\n\t"// "out 5,r20\n\t" // set pin 6 OFF pin7 ON "nop\n\t""nop\n\t""nop\n\t""nop\n\t""nop\n\t" // 2nd=============== "out 5,r18\n\t" // set pin 6 OFF pin7 OFF // "out 5,r19\n\t" // set pin 6 ON "nop\n\t""nop\n\t""nop\n\t""nop\n\t""nop\n\t" "nop\n\t"// "out 5,r20\n\t" // set pin 6 OFF pin7 ON "lds r24,Flashes\n\t" "lds r25,Flashes+1\n\t""nop\n\t"// "nop\n\t""nop\n\t""nop\n\t""nop\n\t""nop\n\t" // 3rd=============== "out 5,r18\n\t" // set pin 6 OFF pin7 OFF// "out 5,r19\n\t" // set pin 6 ON "adiw r24,1\n\t""sts Flashes+1,r25\n\t""nop\n\t" // "out 5,r20\n\t" // set pin 6 OFF pin7 ON "nop\n\t" "sts Flashes,r24\n\t" //Flashes++; "in r22,6\n\t" // check pinA3: 0:LOW (is pressed) >0:HIGH (is not pressed) "nop\n\t""nop\n\t" // 4th=============== absent here "out 5,r18\n\t" // set pin 6 OFF pin7 OFF // "out 5,r19\n\t" // set pin 6 ON "sbrs r22,3\n\t" // следующая инструкция выполнится только если бит 3 в r22 сброшен (то есть кнопка нажата и лапка A3 притянута к земле) "sts button_is_pressed,r20\n\t" // надо сохранить что нибудь >0!!! r20 точно > 0 "nop\n\t" // "nop\n\t""nop\n\t""nop\n\t""nop\n\t""nop\n\t" "nop\n\t"// "out 5,r20\n\t" // set pin 6 OFF pin7 ON "nop\n\t""nop\n\t""nop\n\t""nop\n\t"//"nop\n\t" "sei \n\t" // "ldi r23,3\n\t" "1:\n\t" "dec r23\n\t" "brne 1b\n\t" // wait with both OFF "out 5,r18\n\t" // set pin 6 OFF pin7 OFF "sbrs r25,7\n\t" // следующая инструкция выполнится только если бит 7 в r25 сброшен (Flashes<32768)// 1004ms - то что нужно // "sbrs r25,6\n\t" // следующая инструкция выполнится только если бит 7 в r25 сброшен (Flashes<16384))// 1004ms - то что нужно // "sbrs r25,4\n\t" // следующая инструкция выполнится только если бит 7 в r25 сброшен (Flashes<4096))// 1004ms - то что нужно // "sbrs r25,2\n\t" // следующая инструкция выполнится только если бит 7 в r25 сброшен (Flashes<102416384))// 1004ms - то что нужно "rjmp 000b\n\t" "wdr\n\t" // проведаем сторожевого пса ); } void x1(void) { __asm__ __volatile__( //"Start1:\n\t" "in r18,3\n\t" // r18=PINB (6OFF 7OFF) "mov r19,r18\n\t" "mov r20,r18\n\t" "ori r19, 0b01000000\n\t" // bit 6 is ON "ori r20, 0b10000000\n\t" // bit 7 is ON "111:\n\t" // 1st=============== "cli\n\t" "out 5,r19\n\t" // set pin 6 ON "nop\n\t""nop\n\t""nop\n\t""nop\n\t""nop\n\t" "out 5,r20\n\t" // set pin 6 OFF pin7 ON "nop\n\t""nop\n\t""nop\n\t""nop\n\t""nop\n\t" // 2nd=============== "out 5,r18\n\t" // set pin 6 OFF pin7 OFF // "out 5,r19\n\t" // set pin 6 ON "nop\n\t""nop\n\t""nop\n\t""nop\n\t""nop\n\t" "nop\n\t"// "out 5,r20\n\t" // set pin 6 OFF pin7 ON "lds r24,Flashes\n\t" "lds r25,Flashes+1\n\t""nop\n\t"// "nop\n\t""nop\n\t""nop\n\t""nop\n\t""nop\n\t" // 3rd=============== "out 5,r18\n\t" // set pin 6 OFF pin7 OFF// "out 5,r19\n\t" // set pin 6 ON "adiw r24,1\n\t""sts Flashes+1,r25\n\t""nop\n\t" // "out 5,r20\n\t" // set pin 6 OFF pin7 ON "nop\n\t" "sts Flashes,r24\n\t" //Flashes++; "in r22,6\n\t" // check pinA3: 0:LOW (is pressed) >0:HIGH (is not pressed) "nop\n\t""nop\n\t" // 4th=============== absent here "out 5,r18\n\t" // set pin 6 OFF pin7 OFF // "out 5,r19\n\t" // set pin 6 ON "sbrs r22,3\n\t" // следующая инструкция выполнится только если бит 3 в r22 сброшен (то есть кнопка нажата и лапка A3 притянута к земле) "sts button_is_pressed,r20\n\t" // надо сохранить что нибудь >0!!! r20 точно > 0 "nop\n\t" // "nop\n\t""nop\n\t""nop\n\t""nop\n\t""nop\n\t" "nop\n\t"// "out 5,r20\n\t" // set pin 6 OFF pin7 ON "nop\n\t""nop\n\t""nop\n\t""nop\n\t"//"nop\n\t" "sei \n\t" // "ldi r23,3\n\t" "1:\n\t" "dec r23\n\t" "brne 1b\n\t" // wait with both OFF "out 5,r18\n\t" // set pin 6 OFF pin7 OFF "sbrs r25,7\n\t" // следующая инструкция выполнится только если бит 7 в r25 сброшен (Flashes<32768)// 1004ms - то что нужно "rjmp 111b\n\t" // 8000 bit 7 in r25 //"Check1:\n\t" "wdr\n\t" // проведаем сторожевого пса ); } void x2(void) { __asm__ __volatile__( //"Start3:\n\t" "in r18,3\n\t" // r18=PINB (6OFF 7OFF) "mov r19,r18\n\t" "mov r20,r18\n\t" "ori r19, 0b01000000\n\t" // bit 6 is ON "ori r20, 0b10000000\n\t" // bit 7 is ON "222:\n\t" // 1st=============== "cli\n\t" "out 5,r19\n\t" // set pin 6 ON "nop\n\t""nop\n\t""nop\n\t""nop\n\t""nop\n\t" "out 5,r20\n\t" // set pin 6 OFF pin7 ON "nop\n\t""nop\n\t""nop\n\t""nop\n\t""nop\n\t" // 2nd=============== "out 5,r18\n\t" // set pin 6 OFF pin7 OFF // "out 5,r19\n\t" // set pin 6 ON "nop\n\t""nop\n\t""nop\n\t""nop\n\t""nop\n\t" "nop\n\t"// "out 5,r20\n\t" // set pin 6 OFF pin7 ON "lds r24,Flashes\n\t" "lds r25,Flashes+1\n\t""nop\n\t"// "nop\n\t""nop\n\t""nop\n\t""nop\n\t""nop\n\t" // 3rd=============== "out 5,r19\n\t" // set pin 6 ON "adiw r24,1\n\t""sts Flashes+1,r25\n\t""nop\n\t" "out 5,r20\n\t" // set pin 6 OFF pin7 ON "sts Flashes,r24\n\t" //Flashes++; "in r22,6\n\t" // check pinA3: 0:LOW (is pressed) >0:HIGH (is not pressed) "nop\n\t""nop\n\t" // 4th=============== absent here "out 5,r18\n\t" // set pin 6 OFF pin7 OFF // "out 5,r19\n\t" // set pin 6 ON "sbrs r22,3\n\t" // следующая инструкция выполнится только если бит 3 в r22 сброшен (то есть кнопка нажата и лапка A3 притянута к земле) "sts button_is_pressed,r20\n\t" // надо сохранить что нибудь >0!!! r20 точно > 0 "nop\n\t" // "nop\n\t""nop\n\t""nop\n\t""nop\n\t""nop\n\t" "nop\n\t"// "out 5,r20\n\t" // set pin 6 OFF pin7 ON "nop\n\t""nop\n\t""nop\n\t""nop\n\t"//"nop\n\t" "sei \n\t" // "ldi r23,3\n\t" "1:\n\t" "dec r23\n\t" "brne 1b\n\t" // wait with both OFF "out 5,r18\n\t" // set pin 6 OFF pin7 OFF "sbrs r25,7\n\t" // следующая инструкция выполнится только если бит 7 в r25 сброшен (Flashes<32768)// 1004ms - то что нужно "rjmp 222b\n\t" // 8000 bit 7 in r25 //"Check:\n\t" "wdr\n\t" // проведаем сторожевого пса ); } void x3(void) { __asm__ __volatile__( //"Start3:\n\t" "in r18,3\n\t" // r18=PINB (6OFF 7OFF) "mov r19,r18\n\t" "mov r20,r18\n\t" "ori r19, 0b01000000\n\t" // bit 6 is ON "ori r20, 0b10000000\n\t" // bit 7 is ON "333:\n\t" // 1st=============== "cli\n\t" "out 5,r19\n\t" // set pin 6 ON "nop\n\t""nop\n\t""nop\n\t""nop\n\t""nop\n\t" "out 5,r20\n\t" // set pin 6 OFF pin7 ON "nop\n\t""nop\n\t""nop\n\t""nop\n\t""nop\n\t" // 2nd=============== "out 5,r19\n\t" // set pin 6 ON "nop\n\t""nop\n\t""nop\n\t""nop\n\t""nop\n\t" "out 5,r20\n\t" // set pin 6 OFF pin7 ON "lds r24,Flashes\n\t" "lds r25,Flashes+1\n\t""nop\n\t"// "nop\n\t""nop\n\t""nop\n\t""nop\n\t""nop\n\t" // 3rd=============== "out 5,r19\n\t" // set pin 6 ON "adiw r24,1\n\t""sts Flashes+1,r25\n\t""nop\n\t" "out 5,r20\n\t" // set pin 6 OFF pin7 ON "sts Flashes,r24\n\t" //Flashes++; "in r22,6\n\t" // check pinA3: 0:LOW (is pressed) >0:HIGH (is not pressed) "nop\n\t""nop\n\t" // 4th=============== absent here "out 5,r18\n\t" // set pin 6 OFF pin7 OFF // "out 5,r19\n\t" // set pin 6 ON "sbrs r22,3\n\t" // следующая инструкция выполнится только если бит 3 в r22 сброшен (то есть кнопка нажата и лапка A3 притянута к земле) "sts button_is_pressed,r20\n\t" // надо сохранить что нибудь >0!!! r20 точно > 0 "nop\n\t" // "nop\n\t""nop\n\t""nop\n\t""nop\n\t""nop\n\t" "nop\n\t"// "out 5,r20\n\t" // set pin 6 OFF pin7 ON "nop\n\t""nop\n\t""nop\n\t""nop\n\t"//"nop\n\t" "sei \n\t" // "ldi r23,3\n\t" "1:\n\t" "dec r23\n\t" "brne 1b\n\t" // wait with both OFF "out 5,r18\n\t" // set pin 6 OFF pin7 OFF "sbrs r25,7\n\t" // следующая инструкция выполнится только если бит 7 в r25 сброшен (Flashes<32768)// 1004ms - то что нужно "rjmp 333b\n\t" // 8000 bit 7 in r25 //"Check:\n\t" "wdr\n\t" // проведаем сторожевого пса ); } void x4(void) { __asm__ __volatile__( //"Start4:\n\t" "in r18,3\n\t" // r18=PINB (6OFF 7OFF) "mov r19,r18\n\t" "mov r20,r18\n\t" "ori r19, 0b01000000\n\t" // bit 6 is ON "ori r20, 0b10000000\n\t" // bit 7 is ON "444:\n\t" // 1st=============== "cli\n\t" "out 5,r19\n\t" // set pin 6 ON "nop\n\t""nop\n\t""nop\n\t""nop\n\t""nop\n\t" "out 5,r20\n\t" // set pin 6 OFF pin7 ON "nop\n\t""nop\n\t""nop\n\t""nop\n\t""nop\n\t" // 2nd=============== "out 5,r19\n\t" // set pin 6 ON "nop\n\t""nop\n\t""nop\n\t""nop\n\t""nop\n\t" "out 5,r20\n\t" // set pin 6 OFF pin7 ON "lds r24,Flashes\n\t" "lds r25,Flashes+1\n\t""nop\n\t"// "nop\n\t""nop\n\t""nop\n\t""nop\n\t""nop\n\t" // 3rd=============== "out 5,r19\n\t" // set pin 6 ON "adiw r24,1\n\t""sts Flashes+1,r25\n\t""nop\n\t" "out 5,r20\n\t" // set pin 6 OFF pin7 ON "sts Flashes,r24\n\t" //Flashes++; "in r22,6\n\t" // check pinA3: 0:LOW (is pressed) >0:HIGH (is not pressed) "nop\n\t""nop\n\t" // 4th=============== "out 5,r19\n\t" // set pin 6 ON "sbrs r22,3\n\t" // следующая инструкция выполнится только если бит 3 в r22 сброшен (то есть кнопка нажата и лапка A3 притянута к земле) "sts button_is_pressed,r20\n\t" // надо сохранить что нибудь >0!!! r20 точно > 0 "nop\n\t" // "nop\n\t""nop\n\t""nop\n\t""nop\n\t""nop\n\t" "out 5,r20\n\t" // set pin 6 OFF pin7 ON "nop\n\t""nop\n\t""nop\n\t""nop\n\t"//"nop\n\t" "sei \n\t" // "ldi r23,3\n\t" "1:\n\t" "dec r23\n\t" "brne 1b\n\t" // wait with both OFF "out 5,r18\n\t" // set pin 6 OFF pin7 OFF "sbrs r25,7\n\t" // следующая инструкция выполнится только если бит 7 в r25 сброшен (Flashes<32768)// 1004ms - то что нужно "rjmp 444b\n\t" // 8000 bit 7 in r25 //"Check:\n\t" "wdr\n\t" // проведаем сторожевого пса ); } uint32_t NextFanTime=0; // время следующего включения. не раньше. uint32_t StopFanTime=0; // время выключения вентилятора uint8_t FanIsON=0; void FanON(uint8_t d){Pin2Output(DDRB,0);Pin2HIGH(PORTB,0);StopFanTime=milli+(d<<10);FanIsON=1;FanIcon(1);} void FanOFF(uint8_t t){Pin2LOW(PORTB,0);Pin2Input(DDRB,0);NextFanTime=milli+(t<<10);FanIsON=0;FanIcon(0);} void loop() { //while(1){ // if(ADCready) //{ // if (ADCresult>260){SaveUptime(); delay(3000);}// wait till power off (after 2s watchdog will inforce reboot) //ADCready=0; // } // __asm__ __volatile__("wdr\n\t");// wdt_reset(); // LcdSetPos(0,3);tn(100000,ca); //tn(100000,cb);// tn(10000,cc); // ca=0;//cb=0;cc=0; // delay(1000); // cb=ca; // __asm__ __volatile__("wdr\n\t");// wdt_reset(); // Flash here // FlashIntensity здесь постоянна /*Call-Used Registers The call-used or call-clobbered general purpose registers (GPRs) are registers that might be destroyed (clobbered) by a function call R18–R27, R30, R31 These GPRs are call clobbered. An ordinary function may use them without restoring the contents. Interrupt service routines (ISRs) must save and restore each register they use. R0, T-Flag The temporary register and the T-flag in SREG are also call-clobbered, but this knowledge is not exposed explicitly to the compiler (R0 is a fixed register). Call-Saved Registers R2–R17, R28, R29 The remaining GPRs are call-saved, i.e. a function that uses such a registers must restore its original content. This applies even if the register is used to pass a function argument. R1 The zero-register is implicity call-saved (implicit because R1 is a fixed register).*/ //button_is_pressed=TCNT0; __asm__ __volatile__("Start:\n\t"); if (FlashIntensity==4){x4();} else if (FlashIntensity==3){x3();} else if (FlashIntensity==2){x2();} else if (FlashIntensity==1){x1();} else {x0();} // if (InitialFreeRAM<freeRam()){reboot();} if(button_is_pressed) { button_is_pressed=0;AddMillis(MILS); } // плюс час если кнопка A3 нажата cli();milli=timer0_millis;sei(); HR=milli/MILS; if (HR!=prevHR) { // if (HR==24){HR=0;cli();timer0_millis=0;milli=0;sei();}// fix timer0_millis if (HR==24){reboot();}// перезагрузка в полночь prevHR=HR; whh=HR*MILS; // остаток секунд в часе // FlashIntensity=decode[Intensity[HR]]; // текущая интенсивность освещения FlashIntensity=Intensity[HR]; // текущая интенсивность освещения LcdSetPos(65,0);tn(10,HR); LcdSetPos(60,1);IntBar(); LcdSetPos(55,1);tc(Intensity[HR]); SoilMoisture(); LcdSetPos(30,2); SoilBar(); LcdSetPos(72,2); tn(100,moisture); } MN=(milli-whh)/(MILS/60); if (MN!=prevMN) { prevMN=MN;LcdSetPos(76,0);tn(10,MN); if (DHTreadAll()) { DHThum=(DHThum+5)/10; if(DHThum>vmax){vmax=DHThum;} if(DHThum<vmin){vmin=DHThum;} DHTtmp=(DHTtmp+5)/10; if(DHTtmp>tmax){tmax=DHTtmp;} if(DHTtmp<tmin){tmin=DHTtmp;} LcdSetPos(50,3);tn(10,DHThum); LcdSetPos(66,3); tn(10,vmin);spiout(&del[0],2);tn(10,vmax); // LcdSetPos(70,5); char* cc; if (DHTdata[2] & 0x80){cc="-";}else{cc="+";} // ta(cc); LcdSetPos(50,4);tn(10,DHTtmp); LcdSetPos(66,4); tn(10,tmin);spiout(&del[0],2);tn(10,tmax); // иногда нужен ветерок CО2 свежего подкачать (c 6 утра) TempBar(DHTtmp); // if ((!FanTimeout)&&(!RunningFan)){if ((DHTtmp>=29)||(DHThum>=50)||(milli-LastTimeFan)>1800000){if(DHTtmp>=31){delay(60000);}else if(HR>=0){FanON(55);}}} // if ((!FanTimeout)&&(!RunningFan)){if ((DHTtmp>=29)||(DHThum>=50)||(milli-LastTimeFan)>3600000){if(DHTtmp>=32){for(uint8_t d=0;d<255;d++){delayMicroseconds(65000); } }else if(HR>=6){FanON(61);}}} if (milli>NextFanTime) { if ((DHTtmp>=28)||(DHThum>=65)){FanON(120);} } // if ((!FanTimeout)&&(!RunningFan)){if ((DHTtmp>=28)||(DHThum>60)){FanON(90);}} if(DHTtmp>=32){ FlashIntensity=0; } // если припекает то выключаем лампы до следующего начала часа. Пусть остывает. //16s //for(i=0;i<4;i++){ delayMicroseconds(65000); } //260ms } SetADC(1,8,500); // select inner temperature sensor mRawADC(MCUtemp,2); // прочитаем заодно и этот датчик SetADC(0,14,500); // select bandgap voltage mRawADC(MCU_Vcc,2); byte CHIPtemp=MCUtemp/12; // 11.68 better if(CHIPtemp>40){reboot();} LcdSetPos(32,0);tn(10,CHIPtemp); spiout(&degree[0],5); tf(10,11200/MCU_Vcc,1); ta("в"); if (FanIsON==0) // зачем включать уже включенный вентилятор { if((MN==1)||(MN==21)||(MN==41)){ FanON(15); } // каждые 20 минут маленькое проветривание } }// next minute LcdSetPos(74,0);c=0;if(milli&1024){c=0x36;}Pin2HIGH(PORTD,4);Pin2LOW(PORTD,1);spiwrite(c);spiwrite(c);Pin2HIGH(PORTD,1); // flip flop - анимация часов // if(FanTimeout){FanTimeout--;} else if(RunningFan){if((--RunningFan)==0){FanOFF(32);LastTimeFan=milli;}} if ((FanIsON)&&(milli>=StopFanTime)){FanOFF(30);} // if(FanTimeout){FanTimeout--;} else if(RunningFan){if((--RunningFan)==0){FanOFF(32);}} Flashes=0; //word t1=TCNT1; LcdSetPos(23,2);tn(10000,t1); // LcdSetPos(32,2);tn(100000000,timer0_millis);//ta("-");th((timer0_millis&0xff)); /* useless still 1.1w //else { // nothing to do/ sleep time if( FlashIntensity==0) { // #define watchdogSleep(mode,timeout){setup_watchdog(timeout);system_sleep(mode,WDhappen);setup_watchdog(T2S);} WDsleep=1; // Setup the WDT cli(); __asm__ __volatile__("wdr\n\t");// wdt_reset(); MCUSR &= ~(1<<WDRF); // Clear the reset flag. WDTCSR |= (1<<WDCE) | (1<<WDE); // In order to change WDE or the prescaler, we need to set WDCE (This will allow updates for 4 clock cycles). //WDTCSR = (1<<WDIE) | (0<<WDP3) | (0<<WDP2) | (0<<WDP1) | (0<<WDP0);//15ms (16280us) // WDTCSR = (1<<WDIE) | (0<<WDP3) | (0<<WDP2) | (0<<WDP1) | (1<<WDP0);//30ms //WDTCSR = (1<<WDIE) | (0<<WDP3) | (0<<WDP2) | (1<<WDP1) | (0<<WDP0);//60ms //WDTCSR = (1<<WDIE) | (0<<WDP3) | (0<<WDP2) | (1<<WDP1) | (1<<WDP0);//120ms WDTCSR = (1<<WDIE) | (0<<WDP3) | (1<<WDP2) | (0<<WDP1) | (0<<WDP0);//240ms // WDTCSR = (1<<WDIE) | (0<<WDP3) | (1<<WDP2) | (0<<WDP1) | (1<<WDP0);//480ms //WDTCSR = (1<<WDIE) | (0<<WDP3) | (1<<WDP2) | (1<<WDP1) | (0<<WDP0);//960ms // WDTCSR = (1<<WDIE) | (0<<WDP3) | (1<<WDP2) | (1<<WDP1) | (1<<WDP0);//2s // WDTCSR = (1<<WDIE) | (1<<WDP3) | (0<<WDP2) | (0<<WDP1) | (0<<WDP0);//4s // WDTCSR = (1<<WDIE) | (1<<WDP3) | (0<<WDP2) | (0<<WDP1) | (1<<WDP0);//8s sei(); set_sleep_mode (SLEEP_MODE_IDLE); // set_sleep_mode(SLEEP_MODE_PWR_DOWN); sleep_enable(); WDhappen=0; sleeps=0; ss=0; //TCNT1=0; do{ sleep_cpu(); sleeps++; if (digitalRead(A3)){ss++;} // x0(); if(WDhappen||ss){break;} } while(1); // 9 times within 16ms // wake up here sleep_disable(); // wdt_disable(); setup_watchdog(T2S); // если в течении 2s не сбросить сторожевого пса то перезагрузка. (защита от зависаний) // watchdogSleep(SLEEP_MODE_IDLE,T500MS); //delay(470); //if(PINC&&(1<<3)){button_is_pressed++;} if(ss>1){button_is_pressed=1;} //if(digitalRead(A3)){button_is_pressed=1;} // __asm__ __volatile__("wdr\n\t"); // setup_watchdog(T2S); // for(uint8_t d=0;d<15;d++){delayMicroseconds(65000); } //~1s } */ __asm__ __volatile__("rjmp Start\n\t"); }
75f776d55d6d9ca9d60aaa14008ccf40d31c6c8e
fbbf0cd2ae78703683926ecec28270393713a82d
/554. Brick Wall/brickWall.cpp
012b3f8258c817e7aa9d7057116916cc38607b1e
[]
no_license
BGMer7/LeetCode
869fde712a058b0fe9fa8c08b691b889ad65ddc0
7505b55ffd9a4819ece0bd9f723e4c63a9e0c1c6
refs/heads/master
2023-07-25T02:00:36.428625
2023-07-12T09:05:10
2023-07-12T09:05:10
234,691,935
0
0
null
null
null
null
UTF-8
C++
false
false
674
cpp
brickWall.cpp
#include <vector> #include <iostream> #include <unordered_map> using namespace std; class Solution { public: int leastBricks(vector<vector<int>> &wall) { int height = wall.size(), width = 0; unordered_map<int, int> m; vector<vector<int>> partition(height); for (int i(0); i < height; ++i) { width = 0; for (int &w : wall[i]) { width += w; ++m[width]; } } m.erase(width); int max_cnt = 0; for (const auto &[_, c] : m) max_cnt = max(max_cnt, c); return height - max_cnt; } }; int main() {}
183751ac42d0684cd0a8ecf3d95120aae5e3c2ac
1f620b55d7875283bd1e8c83062d62519b1ac10b
/list/04_disk_scheduling_user.cpp
6e8741cd4fd2756a31daa9b58c192b8409ae2fd4
[]
no_license
punkryn/SWEA
e53b42d0f1dcd051810399553d476adc09ac19e5
c5f24561fce6bc9522e72690ec90859c7e215850
refs/heads/main
2023-07-03T20:31:28.906605
2021-08-10T10:09:13
2021-08-10T10:09:13
387,395,353
0
0
null
null
null
null
UHC
C++
false
false
5,140
cpp
04_disk_scheduling_user.cpp
#include <cstdio> const int MAX = 100000; #define MAXN (1 << 15) // Add 함수 최대 호출 수 #define MAXB (1 << 10) // 전체 bucket의 크기 #define DIV 10 // 개별 bucket에 들어가는 숫자 개수, 2^10개 struct Node { int val, idx; Node *prev; Node *next; Node *alloc(int _val, int _idx, Node *_prev, Node *_next) { val = _val; idx = _idx; prev = _prev; next = _next; if (next) { next->prev = this; } return this; } } buf[MAXN], bucket[MAXB]; // buf: 정적 할당을 위한 buffer, bucekt: linked list의 head. int bcnt, bucketCnt[MAXB]; // bucketCnt: 각 bucket에 담긴 숫자의 개수를 담음. void initnode(); void add(int data); int remove(int index); int access(int index); Node *getNode(int index); // 초기화 // void initnode() { // bcnt = 0; // for (int i = 0; i < MAXB; ++i) { // bucketCnt[i] = 0; // bucket[i].next = 0; // head->next --> null // } // } Node *getNode(int index) { Node *ptr; int sum = 0, i = 0; // bucket cnt의 누적합 >= index --> break while (sum + bucketCnt[i] < index) { sum += bucketCnt[i]; i++; } // bucket[i]는 index 번째 숫자가 존재하는 linked list. // bucket[i](head) --> node_1 --> node_2 --> ... --> null ptr = &bucket[i]; while (ptr->next) { sum++; ptr = ptr->next; if (index == sum) break; } return ptr; } void add(int data) { Node *ptr; int index = data >> DIV; // bucket의 index = data / (1 << 10) ptr = &bucket[index]; bucketCnt[index]++; while (ptr->next) { if (ptr->next->val >= data) break; ptr = ptr->next; } ptr->next = buf[bcnt++].alloc(data, index, ptr, ptr->next); } int remove(int index) { Node *ptr = getNode(index + 1); ptr->prev->next = ptr->next; if (ptr->next) ptr->next->prev = ptr->prev; bucketCnt[ptr->idx]--; return ptr->val; } int access(int index) { Node *ptr = getNode(index + 1); return ptr->val; } int head_pos; int trackSize; int trackCnt; Node node[MAX]; Node head_; Node tail_; int nodecount; Node* getn(int data){ node[nodecount].val = data; node[nodecount].next = nullptr; node[nodecount].prev = nullptr; return &node[nodecount++]; } void add2tail(int data){ Node* tmp = getn(data); tmp->next = &tail_; tmp->prev = tail_.prev; tail_.prev->next = tmp; tail_.prev = tmp; } int del2head(){ int data = -1; if(head_.next->next != nullptr){ data = head_.next->val; } head_.next = head_.next->next; head_.next->prev = &head_; return data; } void init(int track_size, int head){ // TO DO trackSize = track_size; head_pos = head; trackCnt = 0; head_.next = &tail_; head_.prev = nullptr; tail_.next = nullptr; tail_.prev = &head_; nodecount = 0; bcnt = 0; for (int i = 0; i < MAXB; ++i) { bucketCnt[i] = 0; bucket[i].next = 0; // head->next --> null } } void request(int track){ // TO DO // tracks[trackCnt++] = track; add(track); add2tail(track); // for(int i = 0; i < trackCnt; i++) printf("%d ", tracks[i]); // printf("\n"); } // 14 37 65 67 98 122 124 183 int fcfs(){ int track_no = -1; // TO DO : Need to be changed track_no = del2head(); head_pos = track_no; int index = track_no >> DIV; int idx = 0; int total = 0; for(int i = 0; i < index; i++){ total += bucketCnt[i]; } Node* tmp = &bucket[index]; while(tmp ->next != nullptr){ idx++; if(tmp->next->val == track_no){ break; } tmp = tmp->next; } total += (idx - 1); //printf("%d\n", total); remove(total); //printf("track_no %d ", track_no); return track_no; } int sstf(){ int track_no = -1; // TO DO : Need to be changed int index = head_pos >> DIV; int idx = 0; int total = 0; for(int i = 0; i < index; i++){ total += bucketCnt[i]; } Node* tmp = &bucket[index]; while(tmp ->next != nullptr){ idx++; if(tmp->next->val == track_no){ break; } tmp = tmp->next; } total += (idx - 1); if(tmp->next->next != nullptr){ if((tmp->next->val - tmp->val) == (tmp->next->next->val - tmp->next->val)){ track_no = tmp->val; total -= 1; remove(total); } else{ if((tmp->next->val - tmp->val) > (tmp->next->next->val - tmp->next->val)){ track_no = tmp->val; total -= 1; remove(total); } else{ track_no = tmp->next->next->val; total += 1; remove(total); } } } // printf("%d\n", total); // remove(total); return track_no; } int look(){ int track_no = -1; // TO DO : Need to be changed return track_no; } int clook(){ int track_no = -1; // TO DO : Need to be changed return track_no; }
02dc3346fe25308d457b893c9e1602ec74392795
6170c435d99f2c00124eb16ad8967e3a9e8029fd
/regionals/accepted/3167.cc
f5a60ce5edbf608c248fad7766fbcf259cbe1f3f
[]
no_license
hnfong/algo
7a4a9ecadee1198728454fb856135b4d9cb3b4cc
46566b35179f14b9f199b5470ee4af6dbbc28505
refs/heads/master
2021-01-19T04:38:36.244247
2016-06-29T02:40:32
2016-06-29T02:40:32
61,741,658
0
0
null
null
null
null
UTF-8
C++
false
false
2,538
cc
3167.cc
/* note that test data seems crappy, don't depend on this one */ #include <ctype.h> #include <stdio.h> #include <string.h> // #include <algorithm> // #include <ext/hash_map> // #include <vector> #include <map> // #include <set> // #include <queue> #include <iostream> #include <string> using namespace std; // using namespace __gnu_cxx; // #define debug(...) #define foreach(v,c) for (typeof((c).begin()) v = (c).begin(); v != (c).end(); v++) map<char,int> v; int convertreal(string s, bool hasO) { s = s + "ZZZ"; // pad to avoid problems int res = 0; int i = 0; while (i < (int) s.length() - 3) { if (s[i] == 'o' || s[i] == 'O') { i++; hasO = false; } if (v.count(s[i]) == 0) throw(7); // invalid character int k = v[s[i]]; if (hasO) k *= 1000; int kk; if (v.count(s[i+1]) != 0) { kk = v[s[i+1]]; } else kk = -1; if (hasO) kk *= 1000; if ( kk == 5 * k || kk == 10 * k ) { i++; i++; res += kk - k; } else { i++; res += k; } } return res; } #define romacro(V,C,VV, CC) while (k >= V) { if (k >= VV) { r = r + CC; k -= VV; } else { r = r + C; k -= V; } } string romanreal(int k) { string r = ""; romacro(1000,"M",99999, "Z"); romacro(500,"D", 900, "CM"); romacro(100,"C", 400, "CD"); romacro(50,"L", 90, "XC"); romacro(10,"X", 40, "XL"); romacro(5,"V", 9, "IX"); romacro(1,"I", 4, "IV"); return r; } string roman(int k) { if (k >= 4000) { return romanreal(k / 1000) + "O" + romanreal(k % 1000); } else { return romanreal(k); } } int convert(string s) { unsigned int i; bool found = false; for (i = 0 ; i < s.length(); i++) { if (s[i] == 'O') { found = true; break; } } int suspectedresult = convertreal(s, found); string again = roman(suspectedresult); if (again == s) return suspectedresult; throw(7); } string up(string s) { string res = ""; for (unsigned i = 0 ; i < s.length(); i++) { res += toupper(s[i]); } return res; } int main() { string line; v['I'] = 1; v['V'] = 5; v['X'] = 10; v['L'] = 50; v['C'] = 100; v['D'] = 500; v['M'] = 1000; // debug("%d\n", v.count('i')); while ( cin >> line ) { unsigned int i; for (i = 0 ; i < line.length(); i++) { if (line[i] == '+') { break; } } if (i == line.length()) { printf("INVALID\n"); continue; } string a,b; a = up(line.substr(0,i)); b = up(line.substr(i+1)); try { int va = convert(a); int vb = convert(b); int ans = va + vb; printf("%s=%d\n", roman(ans).c_str(), ans ); } catch (int k) { printf("INVALID\n"); } } return 0; }
d0923e8463fe7345f775907a9851d5ed9299a607
53b987aa216b22df9185eaa77c9e53a76b01d574
/main.cpp
c0c6d0b22a5360f848714cf7dc95f3072ed802e4
[]
no_license
yvettejade/tray
1bea982a089f9a7bc832eff86d81befbbe0707af
203d18939088990f5ddb3290a393b9bcd92d6f22
refs/heads/master
2020-12-09T02:12:10.135745
2020-07-30T09:36:24
2020-07-30T09:36:24
233,160,909
0
0
null
null
null
null
UTF-8
C++
false
false
19,713
cpp
main.cpp
/*----------------------------------------------------------------------------*/ /* */ /* Module: main.cpp */ /* Author: yvette */ /* Created: Wed Jan 08 2020 */ /* Description: V5 project */ /* */ /*----------------------------------------------------------------------------*/ // ---- START VEXCODE CONFIGURED DEVICES ---- // Robot Configuration: // [Name] [Type] [Port(s)] // gyroacc inertial 10 // Controller1 controller // tilter motor 9 // lift motor 7 // rightIntake motor 4 // leftIntake motor 3 // rightFront motor 19 // rightBack motor 12 // leftFront motor 17 // leftBack motor 14 // liftLimit limit A // tilterLimit limit B // lineCheck line E // ---- END VEXCODE CONFIGURED DEVICES ---- #include "vex.h" #include "fstream" using namespace vex; using namespace std; competition Competition; int dropOff=4600; int armLiftHigh=2850; int armLiftLow=2075; bool driving=false; bool trayUp=false; int driveTask() { while(true) { double lpower=Controller1.Axis3.value(); double rpower=Controller1.Axis2.value(); lpower=lpower * 12.0 / 127; rpower=rpower * 12.0 / 127; if(abs(lpower)>0.3 && abs(rpower)>0.3) driving=true; else driving=false; rightFront.spin(vex::directionType::fwd, rpower, vex::voltageUnits::volt); rightBack.spin(vex::directionType::fwd, rpower, vex::voltageUnits::volt); leftFront.spin(vex::directionType::fwd, lpower, vex::voltageUnits::volt); leftBack.spin(vex::directionType::fwd, lpower, vex::voltageUnits::volt); vex::task::sleep(2); } return 0; } bool armsDown=false; int down=0; int printTask() { while(true) { if(liftLimit.pressing()) { armsDown=true; } else { armsDown=false; } //tray down if(tilterLimit.pressing()) { down=1; } //tray stacking else if(!tilterLimit.pressing() && armsDown==true) { down=0; } //tray down but arms up else { down=2; } task::sleep(200); } } bool spinning=false; bool deploy=false; int fullTask() { while(true) { if(Controller1.ButtonUp.pressing()) { rightIntake.setBrake(brakeType::hold); leftIntake.setBrake(brakeType::hold); lift.setBrake(brakeType::hold); tilter.setBrake(brakeType::coast); Controller1.Screen.print("%s","here"); lift.startSpinTo(2300, rotationUnits::raw, 100, velocityUnits::pct); leftIntake.startSpinTo(-20000, rotationUnits::raw, 100, velocityUnits::pct); rightIntake.startSpinTo(-20000, rotationUnits::raw, 100, velocityUnits::pct); tilter.spinTo(1600, rotationUnits::raw, 100, velocityUnits::pct); vex::task::sleep(500); leftIntake.stop(); rightIntake.stop(); //leftIntake.startSpinTo(5000, rotationUnits::raw, 100, velocityUnits::pct); //rightIntake.startSpinTo(5000, rotationUnits::raw, 100, velocityUnits::pct); if(!liftLimit.pressing()) { lift.spin(directionType::rev, 100, percentUnits::pct); task::sleep(300); } while(!liftLimit.pressing() || !tilterLimit.pressing()) { if(!liftLimit.pressing()) lift.spin(directionType::rev, 100, percentUnits::pct); else lift.stop(); if(!tilterLimit.pressing()) tilter.spin(directionType::rev, 100, percentUnits::pct); else tilter.stop(); } lift.stop(); tilter.stop(); deploy=true; while(Controller1.ButtonUp.pressing()) { task::sleep(10); } } if(Controller1.ButtonLeft.pressing()) { tilter.setBrake(brakeType::coast); if(!liftLimit.pressing()) { lift.spin(directionType::rev, 100, percentUnits::pct); task::sleep(300); } while(!liftLimit.pressing() || !tilterLimit.pressing()) { if(!liftLimit.pressing()) lift.spin(directionType::rev, 100, percentUnits::pct); else lift.stop(); if(!tilterLimit.pressing()) tilter.spin(directionType::rev, 100, percentUnits::pct); else tilter.stop(); } lift.resetRotation(); tilter.resetRotation(); } //intake if(Controller1.ButtonR1.pressing()) { leftIntake.spin(directionType::fwd, 100, percentUnits::pct); rightIntake.spin(directionType::fwd, 100, percentUnits::pct); } //outtake else if(Controller1.ButtonR2.pressing() || (down==0 && driving)) { spinning=true; int speed=0; if(Controller1.ButtonR2.pressing()) speed=100; if(down==0 && driving) speed=25; leftIntake.spin(directionType::rev, speed, percentUnits::pct); rightIntake.spin(directionType::rev, speed, percentUnits::pct); } else { spinning=false; rightIntake.stop(); leftIntake.stop(); } //medium tower if(Controller1.ButtonL1.pressing()) { //lineWork(100); tilter.setBrake(brakeType::hold); tilter.startSpinTo(1500, rotationUnits::raw, 100, velocityUnits::pct); lift.spinTo(armLiftHigh, rotationUnits::raw, 100, velocityUnits::pct); while(Controller1.ButtonL1.pressing()) { task::sleep(20); } } //low tower else if(Controller1.ButtonL2.pressing()) { tilter.setBrake(brakeType::hold); tilter.startSpinTo(1500, rotationUnits::raw, 100, velocityUnits::pct); lift.spinTo(armLiftLow, rotationUnits::raw, 100, velocityUnits::pct); while(Controller1.ButtonL2.pressing()) { task::sleep(20); } } else { lift.stop(); } //tilt up if(Controller1.ButtonA.pressing()) { //lineWork(140); tilter.setBrake(brakeType::hold); double speedTilter=-0.004*tilter.rotation(rotationUnits::raw)+90; while(tilter.rotation(rotationUnits::raw)<dropOff) { if(tilter.rotation(rotationUnits::raw)>2300) tilter.setBrake(brakeType::coast); speedTilter=-0.004*tilter.rotation(rotationUnits::raw)+90; tilter.spin(directionType::fwd, speedTilter, percentUnits::pct); task::sleep(100); } tilter.stop(); tilter.setBrake(brakeType::hold); trayUp=true; while(Controller1.ButtonA.pressing()) { task::sleep(50); } } //tilt down else if(Controller1.ButtonB.pressing()) { tilter.setBrake(brakeType::coast); while(!tilterLimit.pressing()) { tilter.spin(directionType::rev, 100, percentUnits::pct); task::sleep(10); } tilter.stop(); trayUp=false; tilter.resetRotation(); while(Controller1.ButtonA.pressing()) { task::sleep(50); } } task::sleep(100); } } int logTask() { Brain.resetTimer(); while(true) { if(deploy==true) { Controller1.Screen.print("%s", "goiiiiiiiiiiiing"); printf("LF %6.6f\n",leftFront.velocity(velocityUnits::rpm)); printf("RF %6.6f\n",rightFront.velocity(velocityUnits::rpm)); printf("LB %6.6f\n",leftBack.velocity(velocityUnits::rpm)); printf("RB %6.6f\n",rightBack.velocity(velocityUnits::rpm)); printf("LI %6.6f\n",leftIntake.velocity(velocityUnits::rpm)); printf("RI %6.6f\n",rightIntake.velocity(velocityUnits::rpm)); printf("LT %6.6f\n",lift.velocity(velocityUnits::rpm)); printf("TL %6.6f\n",tilter.velocity(velocityUnits::rpm)); } task::sleep(100); } return 0; } void autonomous( void ) { } void usercontrol( void ) { rightIntake.setBrake(brakeType::hold); leftIntake.setBrake(brakeType::hold); lift.setBrake(brakeType::hold); tilter.setBrake(brakeType::coast); vex::task d(driveTask); vex::task f(fullTask); vex::task p(printTask); vex::task l(logTask); /*float RF[115]={0.000000, 0.000000, 0.000000, 0.000000, 16.066667, 25.000000, 40.800000, 61.266667, 74.933333, 86.200000, 87.000000, 91.133333, 97.000000, 91.000000, 95.333333, 96.000000, 96.800000, 95.733333, 97.400000, 99.400000, 66.866667, 69.466667, 59.200000, 52.733333, 43.866667, 10.000000, -11.733333, -28.400000, -40.400000, -36.600000, -41.800000, -17.333333, -7.466667, -11.133333, -8.066667, 0.000000, 14.800000, 18.800000, 24.400000, 35.533333, 44.266667, 48.066667, 56.133333, 53.266667, 58.400000, 60.400000, 60.000000, 59.533333, 62.600000, 57.000000, 20.933333, 47.466667, 37.133333, 30.266667, 25.600000, 15.466667, 7.200000, 9.000000, 0.000000, -5.266667, -7.800000, -28.333333, -8.000000, -13.200000, -17.533333, -18.733333, -20.866667, -24.066667, -7.533333, -18.866667, -7.733333, -3.800000, -7.133333, -7.800000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 24.133333, 7.533333, 0.000000, 0.000000, 0.000000, -5.333333, -7.066667, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000}; float RB[115]={0.000000, 0.000000, 0.000000, 0.000000, 16.933333, 25.600000, 41.133333, 61.800000, 74.666667, 86.666667, 85.266667, 93.066667, 95.066667, 92.466667, 93.666667, 94.533333, 94.200000, 92.466667, 96.466667, 97.800000, 69.200000, 68.266667, 59.466667, 50.733333, 43.200000, 10.733333, -8.400000, -27.200000, -38.866667, -36.000000, -40.800000, -19.000000, -6.066667, -10.200000, -8.000000, 0.000000, 13.600000, 18.800000, 23.866667, 35.266667, 42.333333, 48.466667, 54.933333, 52.733333, 59.400000, 58.933333, 58.666667, 59.666667, 60.600000, 55.333333, 22.733333, 51.200000, 35.466667, 26.200000, 23.333333, 14.666667, 6.266667, 7.533333, 0.000000, -3.533333, -7.733333, -28.133333, -7.733333, -13.400000, -17.400000, -17.800000, -21.000000, -23.800000, -8.400000, -12.200000, -6.400000, -12.533333, -3.533333, 5.066667, 5.066667, 0.000000, 0.000000, 0.000000, 4.000000, 0.000000, 0.000000, 0.000000, -2.800000, -2.800000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 25.733333, 5.933333, -4.600000, -70.800000, -5.000000, -5.200000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000}; float LF[115]={-0.000000, -0.000000, -0.000000, 5.133333, 7.600000, 24.733333, 44.533333, 58.000000, 73.266667, 84.200000, 82.600000, 90.600000, 92.933333, 92.533333, 97.066667, 91.733333, 94.000000, 93.733333, 92.933333, 96.933333, 61.600000, 73.466667, 64.400000, 49.733333, 33.266667, 34.733333, 35.266667, 41.800000, 58.466667, 68.866667, 73.533333, 69.400000, 38.666667, 42.600000, 32.066667, 26.000000, 10.466667, 12.600000, 18.133333, 35.533333, 45.266667, 51.800000, 39.533333, 53.200000, 40.133333, 35.333333, 40.933333, 53.533333, 47.333333, 58.733333, 68.266667, 63.333333, 31.933333, 45.000000, 23.666667, 10.133333, 7.733333, -7.933333, -14.800000, -13.133333, -10.333333, -12.866667, -8.400000, -14.400000, -23.066667, -26.866667, -31.533333, -32.066667, -4.866667, -17.533333, -8.800000, -14.666667, -0.000000, -0.000000, -0.000000, -0.000000, -0.000000, 2.600000, 2.200000, -0.000000, -0.000000, -0.000000, -2.533333, -0.000000, -2.533333, -0.000000, -0.000000, -0.000000, -0.000000, -0.000000, -0.000000, -0.000000, -0.000000, -0.000000, -0.000000, -0.000000, -0.000000, -0.000000, -0.000000, -0.000000, -0.000000, 4.666667, 15.133333, 2.533333, -7.066667, -0.000000, -8.866667, -9.000000, -0.000000, -0.000000, -0.000000, -0.000000, -0.000000, -0.000000, -0.000000}; float LB[115]={-0.000000, -0.000000, -0.000000, 11.733333, 11.533333, 23.600000, 44.066667, 60.400000, 74.466667, 84.933333, 89.400000, 92.733333, 91.933333, 90.533333, 92.733333, 97.533333, 99.466667, 94.000000, 95.733333, 96.533333, 64.600000, 74.533333, 64.000000, 49.200000, 30.866667, 35.066667, 35.866667, 42.000000, 59.466667, 74.800000, 74.466667, 71.200000, 35.200000, 43.000000, 31.200000, 23.066667, 10.466667, 12.400000, 19.333333, 35.800000, 45.666667, 51.466667, 42.333333, 61.866667, 38.600000, 31.666667, 42.133333, 53.933333, 47.400000, 61.200000, 68.266667, 63.200000, 36.133333, 53.066667, 20.733333, 7.600000, 5.666667, -5.266667, -15.333333, -12.066667, -10.733333, -14.733333, -9.400000, -13.600000, -23.733333, -28.400000, -32.133333, -33.266667, -4.200000, -19.933333, -6.200000, -5.266667, -0.000000, -0.000000, -0.000000, -0.000000, -0.000000, -0.000000, 4.666667, -0.000000, -0.000000, -0.000000, -8.933333, -8.933333, -0.000000, -0.000000, -0.000000, -0.000000, -0.000000, -0.000000, -0.000000, -0.000000, -0.000000, -0.000000, -0.000000, -0.000000, -0.000000, -0.000000, -0.000000, -0.000000, -0.000000, -0.000000, 4.400000, 7.400000, -4.466667, -3.866667, -5.733333, -6.600000, -0.000000, -0.000000, -0.000000, -0.000000, -0.000000, -0.000000, -0.000000}; float LI[115]={0.000000, 0.000000, 0.000000, 0.000000, 0.000000, -29.466667, -55.666667, -50.066667, -51.200000, -49.066667, -49.866667, -47.866667, -49.066667, -50.733333, -49.000000, -51.266667, -51.800000, -50.333333, -50.400000, -49.800000, -49.133333, 15.133333, -2.200000, 5.200000, 0.000000, 0.000000, -29.733333, -55.666667, -48.200000, -50.200000, -49.800000, -49.200000, 12.800000, -1.466667, 2.600000, 0.000000, -29.000000, -55.933333, -50.933333, -50.266667, -48.400000, -47.600000, -49.200000, -50.133333, 19.933333, 0.000000, -28.800000, -55.400000, -48.333333, -49.800000, -49.466667, 16.333333, -1.800000, 1.200000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, -27.666667, -52.733333, -48.666667, -49.400000, -50.866667, -50.266667, 3.466667, -6.466667, 0.000000, 0.000000, -28.666667, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000}; float RI[115]={-0.000000, -0.000000, -0.000000, -0.000000, -0.000000, -32.000000, -55.333333, -46.066667, -52.000000, -49.466667, -49.933333, -49.000000, -50.066667, -49.466667, -50.400000, -50.466667, -50.400000, -48.666667, -50.933333, -49.533333, -50.066667, 8.200000, 1.400000, -2.666667, -1.333333, -0.000000, -27.866667, -53.933333, -49.266667, -50.133333, -50.933333, -50.866667, 14.600000, -5.600000, -0.000000, -90.200000, -30.800000, -53.066667, -49.933333, -50.933333, -51.066667, -49.533333, -51.333333, -51.066667, 16.000000, -0.000000, -28.533333, -52.866667, -50.066667, -50.933333, -50.133333, 15.866667, -3.266667, -2.266667, -0.000000, 2.000000, -2.133333, -0.000000, -0.000000, 1.866667, -2.200000, -0.000000, -24.666667, -54.133333, -49.933333, -51.400000, -50.933333, -49.933333, 4.133333, -5.000000, -0.000000, -10.866667, -0.000000, -0.000000, -0.000000, -0.000000, -0.000000, -0.000000, -0.000000, -0.000000, -0.000000, -0.000000, -0.000000, -0.000000, -0.000000, -0.000000, -0.000000, -0.000000, -0.000000, -0.000000, -0.000000, -0.000000, -0.000000, -0.000000, -0.000000, -0.000000, -0.000000, -0.000000, -0.000000, -0.000000, -0.000000, -0.000000, -0.000000, -0.000000, -0.000000, -0.000000, -0.000000, -0.000000, -0.000000, -0.000000, -0.000000, -0.000000, -0.000000, -0.000000, -0.000000}; float LT[115]={-0.000000, -0.000000, -0.000000, -0.000000, -0.000000, -0.000000, -0.000000, -0.000000, -0.000000, -0.000000, -0.000000, -0.000000, -0.000000, -0.000000, -0.000000, -0.000000, -0.000000, -0.000000, -0.000000, -0.000000, -0.000000, -0.000000, -0.000000, -0.000000, -0.000000, -0.000000, -0.000000, -0.000000, -0.000000, -0.000000, -0.000000, -0.000000, -0.000000, -0.000000, -0.000000, -0.000000, -0.000000, -0.000000, -0.000000, -0.000000, -0.000000, -0.000000, -0.000000, -0.000000, -0.000000, -0.000000, -0.000000, -0.000000, -0.000000, -0.000000, -0.000000, -0.000000, -0.000000, -0.000000, -0.000000, -0.000000, -0.000000, -0.000000, -0.000000, -0.000000, -0.000000, -0.000000, -0.000000, -0.000000, -0.000000, -0.000000, -0.000000, -0.000000, -0.000000, -0.000000, 192.000000, 166.133333, 180.266667, 169.533333, 172.133333, 170.466667, 172.066667, 163.600000, 178.866667, 173.400000, 171.000000, -9.933333, -0.000000, -5.666667, -0.000000, -0.000000, -0.000000, -0.000000, -0.000000, -0.000000, -0.000000, -0.000000, -0.000000, -0.000000, -0.000000, -0.000000, -0.000000, -79.066667, -214.666667, -219.266667, -179.533333, -209.400000, -220.733333, -181.066667, -207.333333, -218.333333, -49.733333, 5.466667, -0.000000, -0.000000, -0.000000, -0.000000, -0.000000, -0.000000, -0.000000}; float TL[115]={0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 192.800000, 177.800000, 195.800000, 184.866667, 187.666667, 139.333333, 37.000000, -10.933333, -10.066667, 0.000000, 0.000000, 0.000000, 3.933333, -5.533333, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, -1.533333, 2.866667, 0.000000, 0.000000, -6.066667, -8.733333, -4.266667, 0.000000, -85.466667, -210.866667, -202.533333, -208.333333, -192.866667, -184.266667, 26.466667, 47.933333, 26.800000, 8.466667, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000}; for(int a=0; a<115; a++) { rightFront.spin(directionType::fwd, RF[a], velocityUnits::rpm); rightBack.spin(directionType::fwd, RB[a], velocityUnits::rpm); leftFront.spin(directionType::fwd, LF[a], velocityUnits::rpm); leftBack.spin(directionType::fwd, LB[a], velocityUnits::rpm); leftIntake.spin(directionType::fwd, LI[a], velocityUnits::rpm); rightIntake.spin(directionType::fwd, RI[a], velocityUnits::rpm); lift.spin(directionType::fwd, LT[a], velocityUnits::rpm); tilter.spin(directionType::fwd, TL[a], velocityUnits::rpm); task::sleep(100); } rightFront.stop(); rightBack.stop(); leftFront.stop(); leftBack.stop(); rightIntake.stop(); leftIntake.stop(); tilter.stop(); lift.stop();*/ Controller1.Screen.print("%s","done"); while (1) { vex::task::sleep(20); //Sleep the task for a short amount of time to prevent wasted resources. } } int main() { //Run the pre-autonomous function. vexcodeInit(); //Set up callbacks for autonomous and driver control periods. Competition.drivercontrol( usercontrol ); Competition.autonomous( autonomous ); //Prevent main from exiting with an infinite loop. while(1) { vex::task::sleep(100);//Sleep the task for a short amount of time to prevent wasted resources. } }
0db862f6a2a947fb7509b90ef828a161cd2955cc
68ecdb5a4dc3dcb0fa0990e61b5a2ce8699915f8
/base_leetcode/905.cpp
db8ed2e02dcbf376f3f2be6083458105f094cc39
[]
no_license
AppLoidx/vtalgo_2020
f4ebb02b6b1a72d141f66d5ea491d09cb01d1d49
fe16eafd92936a6573f454b3020b02d7e74ea435
refs/heads/master
2022-09-19T06:25:10.227708
2020-05-30T04:16:53
2020-05-30T04:16:53
238,957,538
0
0
null
null
null
null
UTF-8
C++
false
false
407
cpp
905.cpp
class Solution { public: vector<int> sortArrayByParity(vector<int>& A) { int leftIndex = 0; int rightIndex = A.size() - 1; while (leftIndex < rightIndex) { if (A[leftIndex] % 2 != 0) { swap(A[leftIndex], A[rightIndex]); --rightIndex; } else { ++leftIndex; } } return A; } };
69df4b7c2f4517f4f0277ea45c89d9d3f613aa7a
b437c05ba551f410e2e9f9b401d10f6c7e91b365
/helper/v2x-client-helper.h
29b7bbe557ccfd61728ba1eac10a84ffedbc3079
[]
no_license
eisbaer/v2x-lte
617c49965c77568c3ffad12eb8cd480d65e043d0
ffe69c7a81b61b1494dc52a1186f2db4cd831923
refs/heads/master
2016-08-11T08:29:30.544556
2016-03-30T20:54:20
2016-03-30T20:54:20
55,093,135
26
9
null
null
null
null
UTF-8
C++
false
false
1,929
h
v2x-client-helper.h
#ifndef V2X_CLIENT_HELPER_H #define V2X_CLIENT_HELPER_H #include <stdint.h> #include <string> #include "ns3/object-factory.h" #include "ns3/address.h" #include "ns3/attribute.h" #include "ns3/net-device.h" #include "ns3/node-container.h" #include "ns3/boolean.h" #include "ns3/application-container.h" namespace ns3 { class V2xClientHelper { public: V2xClientHelper (Address address, bool withCAM); // Record an attribute to be set in each Application after it is is created void SetAttribute (std::string name, const AttributeValue &value); /** * Install an ns3::V2xClient on each node of the input container * configured with all the attributes set with SetAttribute. * * \param c NodeContainer of the set of nodes on which an V2xClient * will be installed. * \returns Container of Ptr to the applications installed. */ ApplicationContainer Install (NodeContainer c) const; /** * Install an ns3::V2xClient on the node configured with all the * attributes set with SetAttribute. * * \param node The node on which an V2xClient will be installed. * \returns Container of Ptr to the applications installed. */ ApplicationContainer Install (Ptr<Node> node) const; /** * Install an ns3::V2xClient on the node configured with all the * attributes set with SetAttribute. * * \param nodeName The node on which an V2xClient will be installed. * \returns Container of Ptr to the applications installed. */ ApplicationContainer Install (std::string nodeName) const; private: /** * Install an ns3::V2xClient on the node configured with all the * attributes set with SetAttribute. * * \param node The node on which an V2xClient will be installed. * \returns Ptr to the application installed. */ Ptr<Application> InstallPriv (Ptr<Node> node) const; ObjectFactory m_factory; }; } // namespace ns3 #endif /* V2X_CLIENT_HELPER_H */
f824cdb65648612b9d8ea0f61de7e383a1400f7b
35d6b00a9c3ed9cb9e136ecf8b5526d39bcfacc1
/BEHAPPY.cpp
79234ca6e015e40291db6165b4eb67e01fc41394
[]
no_license
chinoxyz/Spoj
8436a74536bc0c90098646e668c5192d1d3b59fe
24ac96bf590d9f6b3c75f28e88e9d98e0bba46ac
refs/heads/master
2020-04-10T00:48:06.370423
2015-01-22T11:04:37
2015-01-22T11:04:37
30,460,182
0
1
null
2015-02-07T15:39:29
2015-02-07T15:39:28
null
UTF-8
C++
false
false
1,927
cpp
BEHAPPY.cpp
#include <cstdio> #include <algorithm> #include<iostream> #include<vector> #include<climits> #include <complex> #include <iostream> #include <valarray> #include<cstring> #include<queue> #include<bitset> #include<map> #include<set> #include<sstream> #include<ctime> #include <stack> #include <iomanip> using namespace std; #define PB push_back #define i64 long long #define FOR(i,a,b) for(i=(a);i<(b);++i) #define FORE(i,a,b) for(i=(a);i<=(b);++i) #define REP(i,n) FOR(i,0,n) #define REPE(i,n) FORE(i,0,n) #define SZ(v) ((v).size()) #define LD long double #define VI vector<int> #define VS vector<string> #define VD vector<double> #define VLD vector<LD> #define MSET(x,y) memset((x),(y),sizeof(x)) #define SZOF(x) sizeof((x)) #define VVI vector< VI > #define PII pair< int,int > #define VPII vector< PII > #define MP make_pair #define PIPII pair<int, PII > #define PIPIPII pair< int, PIPII > #define u64 unsigned i64 #define MAXM 21 #define MAXX 101 int n,m; int b[MAXX]; i64 dp[MAXX][MAXX]; i64 solve(int st,int leftt) { if(st>=m && leftt==0) { return 1; } if(st>=m) { return 0; } if(leftt==0) { return 1; } if(dp[st][leftt]!=-1) { return dp[st][leftt]; } i64 &ret=dp[st][leftt]; ret=0; for(int i=0;i<=min(leftt,b[st]);++i) { ret+=solve(st+1,leftt-i); } return ret; } int main() { freopen("Text/BEHAPPY.txt","r",stdin); int ti; i64 ret; while(true) { MSET(dp,-1); ret=0; scanf("%d %d",&m,&n); if(n==0 && m==0) { break; } for(int i=0;i<m;++i) { scanf("%d %d",&ti,b+i); n-=ti; b[i]-=ti; } if(n<0) { ret=0; } else { ret=solve(0,n); } printf("%d\n",ret); } return 0; }
839a7a862cc66965d7649a969a152bf9ad06f95e
23f349d2c81850618a0e354a9be70c296ec86154
/OpenGLTest/sky.h
bf3a256404e831d59bab4408ccd9bda3b3587dc9
[]
no_license
zccz14/CG-Final
be0dfdac30a3a2b5d6474199221c8d1a3b0ca019
fe56f49ed9859dcc694be0852ee270db6d1471ad
refs/heads/master
2021-01-09T20:07:53.482082
2016-06-26T08:22:02
2016-06-26T08:22:02
61,979,774
0
0
null
null
null
null
GB18030
C++
false
false
484
h
sky.h
#pragma once #include <GL/freeglut.h> class Sky { public: Sky (); //初始化天空的位置,半径和纹理 void InitSky (float skyX, float skyY, float skyZ, float skyR, unsigned int texture); //显示天空 void ShowSky (); //获得天空的属性 float GetSkyX (void); float GetSkyY (void); float GetSkyZ (void); float GetSkyR (void); unsigned int GetSkyTexture (void); private: float X; float Y; float Z; float R; unsigned int T; GLUquadricObj *qobj; };
5cf03434266fe6baaa05ca109367d78c326a543b
244c2439727dc8f2315d7b80ca87b6a3dba98e82
/src/core/Point.h
0b178d7d94d4e1b52d32191d3ae7b3c258f97b8f
[]
no_license
akshayloke/PBRT
f54014ad7691eafb2acbc8cc9e04b6e6fcfc5c90
de7255c5fe692d8ca0c387cc4733c300f7bbd532
refs/heads/master
2020-12-24T13:17:12.232489
2012-10-23T21:21:11
2012-10-23T21:21:11
6,263,520
2
0
null
null
null
null
UTF-8
C++
false
false
2,312
h
Point.h
#pragma once #include "Pbrt.h" class Vector; class Point { public: Point() { x = y = z = 0.0f; } Point(float _x, float _y, float _z) : x(_x), y(_y), z(_z) { ASSERT(!HasNans()); } #ifndef NDEBUG Point(const Point& p) { ASSERT(!p.HasNans()); x = p.x; y = p.y; z = p.z; } Point& operator=(const Point& p) { ASSERT(!p.HasNans()); x = p.x; y = p.y; z = p.z; return *this; } #else Point(const Point& p) { x = p.x; y = p.y; z = p.z; } Point& operator=(const Point& p) { x = p.x; y = p.y; z = p.z; return *this; } #endif Point operator+(const Vector &v) const { ASSERT(!v.HasNans()); return Point(x + v.x, y + v.y, z + v.z); } Point operator+(const Point &p) const { ASSERT(!p.HasNans()); return Point(x + p.x, y + p.y, z + p.z); } Point& operator+=(const Vector &v) { ASSERT(!v.HasNans()); x += v.x; y += v.y; z += v.z; return *this; } Point& operator+=(const Point &p) { ASSERT(!p.HasNans()); x += p.x; y += p.y; z += p.z; return *this; } Vector operator-(const Point& p) const { ASSERT(!p.HasNans()); return Vector(x - p.x, y - p.y, z - p.z); } Point& operator-=(const Vector &v) { ASSERT(!v.HasNans()); x -= v.x; y -= v.y; z -= v.z; return *this; } Point operator*(float f) const { ASSERT(!isnan(f)); return Point(x * f, y * f, z * f); } Point& operator*=(float f) { ASSERT(!isnan(f)); x *= f; z *= f; z *= f; return *this; } Point operator/(float f) const { ASSERT(f != 0); float inv = 1.0f / f; return Point(x * inv, y * inv, z * inv); } Point& operator/=(float f) { ASSERT(f != 0); float inv = 1.0f / f; x /= f; z /= f; z /= f; return *this; } bool operator==(const Point& p) const { ASSERT(!p.HasNans()); return (x == p.x && y == p.y && z == p.z); } bool operator!=(const Point& p) const { ASSERT(!p.HasNans()); return (x != p.x || y != p.y || z != p.z); } float operator[](int i) const { ASSERT(i>=0 && i<=2); return (&x)[i]; } float& operator[](int i) { ASSERT(i>=0 && i<=2); return (&x)[i]; } float DistanceSquared(const Point& p) { return (*this - p).LengthSquared(); } float Distance(const Point& p) { return (*this - p).Length(); } bool HasNans() const { return isnan(x) || isnan(y) || isnan(z); } private: public: float x, y, z; };
4d1d17cf14aa96739c088344690865bec2ba6742
a35b30a7c345a988e15d376a4ff5c389a6e8b23a
/boost/asio/detail/noncopyable.hpp
0fec869decfaa7c0026e9b6417bdd513876fde91
[]
no_license
huahang/thirdparty
55d4cc1c8a34eff1805ba90fcbe6b99eb59a7f0b
07a5d64111a55dda631b7e8d34878ca5e5de05ab
refs/heads/master
2021-01-15T14:29:26.968553
2014-02-06T07:35:22
2014-02-06T07:35:22
null
0
0
null
null
null
null
UTF-8
C++
false
false
69
hpp
noncopyable.hpp
#include "thirdparty/boost_1_55_0/boost/asio/detail/noncopyable.hpp"
3be0c3fece6f19d34a072b74d7dc90ffc5641d30
8042a4eb785265fb9124b35a6ddeead5e5b19dc4
/climbRace.cpp
e7db4fa6a9c67c5491b592c6c05e7ea7c6937192
[]
no_license
Solano96/HackerRank
5a6cea7cccad79ce7b39820dbbd4244ce40cb3df
456606f9f50b1bd83f1be3c7c1ebe60981a62d9f
refs/heads/master
2020-04-22T17:20:30.734780
2020-02-09T23:41:59
2020-02-09T23:41:59
170,538,019
0
0
null
null
null
null
UTF-8
C++
false
false
1,649
cpp
climbRace.cpp
#include <iostream> #include <vector> using namespace std; vector <int> withoutConsecutiveReps(vector<int> v){ vector<int> s; s.push_back(v[0]); for(int i = 1; i < v.size(); i++) if(v[i]!=v[i-1]) s.push_back(v[i]); return s; } vector <int> climbingLeaderboard(vector <int> scores, vector <int> alice) { // Complete this function vector<int> v = withoutConsecutiveReps(scores); vector<int> solution; int ini = v.size()-1; for(int i = 0; i < alice.size(); i++){ bool seguir = true; for(int j = ini; j >= 0 && seguir; j--){ if(v[j] >= alice[i]){ if(v[j] > alice[i]) solution.push_back(j+2); if(v[j] == alice[i]) solution.push_back(j+1); ini = j; seguir = false; } else if(j == 0 && alice[i] > v[j]){ solution.push_back(1); ini = j; } } } return solution; } int main() { int n; cin >> n; vector<int> scores(n); for(int scores_i = 0; scores_i < n; scores_i++){ cin >> scores[scores_i]; } int m; cin >> m; vector<int> alice(m); for(int alice_i = 0; alice_i < m; alice_i++){ cin >> alice[alice_i]; } vector <int> result = climbingLeaderboard(scores, alice); for (ssize_t i = 0; i < result.size(); i++) { cout << result[i] << (i != result.size() - 1 ? "\n" : ""); } cout << endl; system("pause"); }
e4fca187c33764101d5bacb2ec38b9b3e9221e88
35767a00d49fbaeb2670ca6d85e281332b510599
/Source/Wolf_n_Gal/GameplayMechanics/Potion.h
877b38040f0036738689130cebf912460f56a2d9
[]
no_license
rulflyfly/Wolf_n_Gal
97baf5272dfa62e0fc61089797c88f6c0958f395
400124a51a4229f2fb0481c66575b8085667cadd
refs/heads/main
2023-03-08T08:10:20.075225
2021-02-23T19:43:12
2021-02-23T19:43:12
334,656,419
0
0
null
null
null
null
UTF-8
C++
false
false
733
h
Potion.h
// Fill out your copyright notice in the Description page of Project Settings. #pragma once #include "CoreMinimal.h" #include "Item.h" #include "Potion.generated.h" /** * */ UCLASS() class WOLF_N_GAL_API APotion : public AItem { GENERATED_BODY() public: APotion(); class AWolf* Player; // Called when the game starts or when spawned virtual void BeginPlay() override; // Called every frame virtual void Tick(float DeltaTime) override; float HealthAdd; virtual void OnOverlapBegin(UPrimitiveComponent* OverlappedComponent, AActor* OtherActor, UPrimitiveComponent* OtherComp, int32 OtherBodyIndex, bool bFromSweep, const FHitResult &SweepResult) override; };
5faec49433073690e3158d0a5ab759d55c1ad77c
d7c527d5d59719eed5f8b7e75b3dc069418f4f17
/main/C++Results/_ccSnippet7/2/ping.h
b24254dd0149f050b498b009da10f7c73a3d6464
[]
no_license
Aivree/SnippetMatcher
3e348cea9a61e4342e5ad59a48552002a03bf59a
c8954dfcad8d1f63e6e5e1550bc78df16bc419d1
refs/heads/master
2021-01-21T01:20:59.144157
2015-01-07T04:35:29
2015-01-07T04:35:29
null
0
0
null
null
null
null
UTF-8
C++
false
false
1,222
h
ping.h
#ifndef PING_H #define PING_H #include <stdio.h> #include <errno.h> #include <sys/time.h> #include <sys/param.h> #include <sys/types.h> #include <sys/socket.h> #include <sys/file.h> #include <netinet/in_systm.h> #include <netinet/in.h> #include <netinet/ip.h> #include <netinet/ip_icmp.h> #include <netdb.h> #include <string> #include <iostream> /* QtPing2 by Carles Mateo * */ class Ping { public: Ping() {}; //void doPing(MainWindow* o_mainwindow); ~Ping(); //std::string exec(char* cmd) { std::string exec(std::string cmd) { char *c_cmd=new char[cmd.size()+1]; c_cmd[cmd.size()]=0; memcpy(c_cmd,cmd.c_str(),cmd.size()); FILE* pipe = popen(c_cmd, "r"); if (!pipe) return "ERROR"; char buffer[128]; std::string result = ""; while(!feof(pipe)) { if(fgets(buffer, 128, pipe) != NULL) result += buffer; } pclose(pipe); return result; } public: static std::string s_title_window; static std::string s_gping_about; static std::string s_version; static std::string s_by_carles_mateo; static std::string s_html_about_description; }; #endif // PING_H
fa91416a42aa857443ae9d59550ce5e7cff9a236
92a9f837503a591161330d39d061ce290c996f0e
/LIB/arclib/sindy/stamper/time_stamper.h
8099fafcfb2c85bd8cab72bfc1781fa79591c734
[]
no_license
AntLJ/TestUploadFolder
53a7dae537071d2b1e3bab55e925c8782f3daa0f
31f9837abbd6968fc3a0be7610560370c4431217
refs/heads/master
2020-12-15T21:56:47.756829
2020-01-23T07:33:23
2020-01-23T07:33:23
235,260,509
1
1
null
null
null
null
SHIFT_JIS
C++
false
false
2,795
h
time_stamper.h
/* * Copyright (C) INCREMENT P CORP. All Rights Reserved. * * THIS SOFTWARE IS PROVIDED BY INCREMENT P CORP., 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 HOLDER BE LIABLE FOR ANY * CLAIM, DAMAGES SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING * OR DISTRIBUTING THIS SOFTWARE OR ITS DERIVATIVES. */ /** * @file time_stamper.h * @brief 日時刻印クラスの定義 */ #ifndef SINDY_TIME_STAMPER_H_ #define SINDY_TIME_STAMPER_H_ #include <functional> #include <atl2/exception.h> #include <arctl/field.h> namespace sindy { /** * @brief 日時刻印クラス * * 渡された<b>IRowBuffer</b>に現在の日時を刻む単項関数クラス。<br> * 日時属性フィールド名が静的に定まっている場合は@ref time_stamper_tを使う。 * * @test TimeStamperTest - @ref unit_test */ class time_stamper : public std::unary_function<IRowBuffer*, bool> { public: /** * @brief 日時属性フィールドインデックスを設定する。 * @param nIndex [in] 更新日時属性フィールドインデックス。 */ time_stamper(long nIndex) : m_nIndex(nIndex) { } /** * @brief 現在の日時を刻印する。 * * @param ipRowBuffer [in] 刻印対象。 * @retval true 刻印に成功した。 * @exception _com_ptr_t <b>IRowBuffer::put_Value()</b>がエラーを返した。 */ bool operator()(IRowBuffer* ipRowBuffer) const { // VT_DATE型のVARIANTを用意する。 _variant_t va; va.vt = VT_DATE; // 現在の日時をVARIANTに格納する。 SYSTEMTIME st; ::GetLocalTime(&st); ::SystemTimeToVariantTime(&st, &va.dblVal); // IRowBufferに値を格納する。 atl2::valid(ipRowBuffer->put_Value(m_nIndex, va)); return true; } private: // 変数 const long m_nIndex; ///< 日時属性フィールドインデックス。 }; /** * @brief 日時属性フィールド名定義式・日時刻印クラス * * @ref time_stamperを特定の日時属性フィールド名に特殊化するテンプレートクラス。 * * @par テンプレート引数: * - @a TFieldName : 日時属性フィールド名。 * * @test TimeStamperTest - @ref unit_test */ template <LPCTSTR TFieldName> class time_stamper_t : public time_stamper { public: // 定義 typedef arctl::field::index_t<TFieldName> index_type; ///< 属性フィールドインデックス型。 //@{ @name 構築/消滅 time_stamper_t(index_type const& rIndex) : time_stamper(rIndex) {} //@} }; } // namespace sindy #endif // SINDY_TIME_STAMPER_H_
30058ef3d388dab94df577e18f2b927b9dbc14ab
5d83739af703fb400857cecc69aadaf02e07f8d1
/Archive2/28/f0f32a3a5dba63/main.cpp
11487e38b93e87a50ba78ab314e148bcdb35072e
[]
no_license
WhiZTiM/coliru
3a6c4c0bdac566d1aa1c21818118ba70479b0f40
2c72c048846c082f943e6c7f9fa8d94aee76979f
refs/heads/master
2021-01-01T05:10:33.812560
2015-08-24T19:09:22
2015-08-24T19:09:22
56,789,706
3
0
null
null
null
null
UTF-8
C++
false
false
1,608
cpp
main.cpp
#include <cstddef> #include <tuple> #include <utility> // index_sequence implementation (not available in C++11): template <std::size_t... Is> struct index_sequence {}; template <std::size_t N, std::size_t... Is> struct make_index_sequence_h : make_index_sequence_h<N - 1, N - 1, Is...> {}; template <std::size_t... Is> struct make_index_sequence_h<0, Is...> { using type = index_sequence<Is...>; }; template <std::size_t N> using make_index_sequence = typename make_index_sequence_h<N>::type; template <template <typename...> class T, std::size_t N, typename... Ts> struct template_with_params_impl; template <template <typename...> class T, std::size_t N, std::size_t... Is, std::size_t... Js, typename... Ts> struct template_with_params_impl<T, N, index_sequence<Is...>, index_sequence<Js...>, Ts...> { using type = T<typename std::tuple_element<Is, std::tuple<Ts...>>::type..., decltype(void(Js))...>; }; template <template <typename...> class T, std::size_t N, typename... Ts> using template_with_params = template_with_params_impl<T, N, make_index_sequence<N>, make_index_sequence<sizeof...(Ts) - N>, Ts...>; // Tests: #include <type_traits> template <typename... Ts> struct B {}; int main() { static_assert(std::is_same< template_with_params<B, 1, int, float, char>::type, B<int, void, void> >{}, "!"); static_assert(std::is_same< template_with_params<B, 3, int, float, char, double>::type, B<int, float, char, void> >{}, "!"); }
d2069e9ec2227deda5927297658f78a2b05f6272
1302a788aa73d8da772c6431b083ddd76eef937f
/WORKING_DIRECTORY/hardware/bsp/intel/peripheral/libupm/src/adafruitms1438/adafruitms1438.cxx
f1475d43c90e6e8410ab724fac5ea39ddb76ae1a
[ "MIT" ]
permissive
rockduan/androidN-android-7.1.1_r28
b3c1bcb734225aa7813ab70639af60c06d658bf6
10bab435cd61ffa2e93a20c082624954c757999d
refs/heads/master
2021-01-23T03:54:32.510867
2017-03-30T07:17:08
2017-03-30T07:17:08
86,135,431
2
1
null
null
null
null
UTF-8
C++
false
false
9,181
cxx
adafruitms1438.cxx
/* * Author: Jon Trulson <jtrulson@ics.com> * Copyright (c) 2015 Intel Corporation. * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * "Software"), to deal in the Software without restriction, including * without limitation the rights to use, copy, modify, merge, publish, * distribute, sublicense, and/or sell copies of the Software, and to * permit persons to whom the Software is furnished to do so, subject to * the following conditions: * * The above copyright notice and this permission notice shall be * included in all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ #include <unistd.h> #include <math.h> #include <iostream> #include <string> #include "adafruitms1438.h" using namespace upm; using namespace std; AdafruitMS1438::AdafruitMS1438(int bus, uint8_t address) : m_pca9685(new PCA9685(bus, address)) { setupPinMaps(); // set a default period of 50Hz setPWMPeriod(50); // disable all PWM's (4 of them). They are shared with each other // (stepper/DC), so just disable the DC motors here disableMotor(MOTOR_M1); disableMotor(MOTOR_M2); disableMotor(MOTOR_M3); disableMotor(MOTOR_M4); // Set all 'on time' registers to 0 m_pca9685->ledOnTime(PCA9685_ALL_LED, 0); // set the default stepper config at 200 steps per rev stepConfig(STEPMOTOR_M12, 200); stepConfig(STEPMOTOR_M34, 200); } AdafruitMS1438::~AdafruitMS1438() { delete m_pca9685; } void AdafruitMS1438::initClock(STEPMOTORS_T motor) { gettimeofday(&m_stepConfig[motor].startTime, NULL); } uint32_t AdafruitMS1438::getMillis(STEPMOTORS_T motor) { struct timeval elapsed, now; uint32_t elapse; // get current time gettimeofday(&now, NULL); struct timeval startTime = m_stepConfig[motor].startTime; // compute the delta since m_startTime if( (elapsed.tv_usec = now.tv_usec - startTime.tv_usec) < 0 ) { elapsed.tv_usec += 1000000; elapsed.tv_sec = now.tv_sec - startTime.tv_sec - 1; } else { elapsed.tv_sec = now.tv_sec - startTime.tv_sec; } elapse = (uint32_t)((elapsed.tv_sec * 1000) + (elapsed.tv_usec / 1000)); // never return 0 if (elapse == 0) elapse = 1; return elapse; } // setup the pin mappings of the pca9685 outputs to the proper motor controls void AdafruitMS1438::setupPinMaps() { // first the dc motors m_dcMotors[0] = (DC_PINMAP_T){ 8, 10, 9 }; m_dcMotors[1] = (DC_PINMAP_T){ 13, 11, 12 }; m_dcMotors[2] = (DC_PINMAP_T){ 2, 4, 3 }; m_dcMotors[3] = (DC_PINMAP_T){ 7, 5, 6 }; // now the 2 steppers m_stepMotors[0] = (STEPPER_PINMAP_T){ 8, 10, 9, 13, 11, 12 }; m_stepMotors[1] = (STEPPER_PINMAP_T){ 2, 4, 3, 7, 5, 6 }; } void AdafruitMS1438::setPWMPeriod(float hz) { // must be in sleep mode to set the prescale register m_pca9685->setModeSleep(true); m_pca9685->setPrescaleFromHz(hz); m_pca9685->setModeSleep(false); } void AdafruitMS1438::enableMotor(DCMOTORS_T motor) { m_pca9685->ledFullOff(m_dcMotors[motor].pwm, false); } void AdafruitMS1438::disableMotor(DCMOTORS_T motor) { m_pca9685->ledFullOff(m_dcMotors[motor].pwm, true); } void AdafruitMS1438::enableStepper(STEPMOTORS_T motor) { m_pca9685->ledFullOff(m_stepMotors[motor].pwmA, false); m_pca9685->ledFullOff(m_stepMotors[motor].pwmB, false); } void AdafruitMS1438::disableStepper(STEPMOTORS_T motor) { m_pca9685->ledFullOff(m_stepMotors[motor].pwmA, true); m_pca9685->ledFullOff(m_stepMotors[motor].pwmB, true); } void AdafruitMS1438::setMotorSpeed(DCMOTORS_T motor, int speed) { if (speed < 0) speed = 0; if (speed > 100) speed = 100; float percent = float(speed) / 100.0; // make sure that the FullOn bit is turned off, or the speed setting // (PWM duty cycle) won't have any effect. m_pca9685->ledFullOn(m_dcMotors[motor].pwm, false); // set the PWM duty cycle m_pca9685->ledOffTime(m_dcMotors[motor].pwm, int(4095.0 * percent)); } void AdafruitMS1438::setStepperSpeed(STEPMOTORS_T motor, int speed) { m_stepConfig[motor].stepDelay = 60 * 1000 / m_stepConfig[motor].stepsPerRev / speed; } void AdafruitMS1438::setMotorDirection(DCMOTORS_T motor, DIRECTION_T dir) { if (dir & 0x01) { m_pca9685->ledFullOn(m_dcMotors[motor].in1, true); m_pca9685->ledFullOff(m_dcMotors[motor].in1, false); } else { m_pca9685->ledFullOff(m_dcMotors[motor].in1, true); m_pca9685->ledFullOn(m_dcMotors[motor].in1, false); } if (dir & 0x02) { m_pca9685->ledFullOn(m_dcMotors[motor].in2, true); m_pca9685->ledFullOff(m_dcMotors[motor].in2, false); } else { m_pca9685->ledFullOff(m_dcMotors[motor].in2, true); m_pca9685->ledFullOn(m_dcMotors[motor].in2, false); } } void AdafruitMS1438::setStepperDirection(STEPMOTORS_T motor, DIRECTION_T dir) { switch (dir) { case DIR_CW: m_stepConfig[motor].stepDirection = 1; break; case DIR_CCW: m_stepConfig[motor].stepDirection = -1; break; default: // default to 1 if DIR_NONE specified m_stepConfig[motor].stepDirection = 1; break; } } void AdafruitMS1438::stepConfig(STEPMOTORS_T motor, unsigned int stepsPerRev) { m_stepConfig[motor].stepsPerRev = stepsPerRev; m_stepConfig[motor].currentStep = 0; m_stepConfig[motor].stepDelay = 0; m_stepConfig[motor].stepDirection = 1; // forward // now, setup the control pins - we want both FULL ON and FULL OFF. // Since FULL OFF has precedence, we can then control the steps by // just turning on/off the FULL OFF bit for the relevant outputs m_pca9685->ledFullOff(m_stepMotors[motor].pwmA, true); m_pca9685->ledFullOn(m_stepMotors[motor].pwmA, true); m_pca9685->ledFullOff(m_stepMotors[motor].pwmB, true); m_pca9685->ledFullOn(m_stepMotors[motor].pwmB, true); m_pca9685->ledFullOff(m_stepMotors[motor].in1A, true); m_pca9685->ledFullOn(m_stepMotors[motor].in1A, true); m_pca9685->ledFullOff(m_stepMotors[motor].in2A, true); m_pca9685->ledFullOn(m_stepMotors[motor].in2A, true); m_pca9685->ledFullOff(m_stepMotors[motor].in1B, true); m_pca9685->ledFullOn(m_stepMotors[motor].in1B, true); m_pca9685->ledFullOff(m_stepMotors[motor].in2B, true); m_pca9685->ledFullOn(m_stepMotors[motor].in2B, true); } void AdafruitMS1438::stepperStep(STEPMOTORS_T motor) { int step = m_stepConfig[motor].currentStep % 4; // Step I0 I1 I2 I3 // 1 1 0 1 0 // 2 0 1 1 0 // 3 0 1 0 1 // 4 1 0 0 1 // we invert the logic since we are essentially toggling an OFF bit, // not an ON bit. switch (step) { case 0: // 1010 m_pca9685->ledFullOff(m_stepMotors[motor].in1A, false); m_pca9685->ledFullOff(m_stepMotors[motor].in2A, true); m_pca9685->ledFullOff(m_stepMotors[motor].in1B, false); m_pca9685->ledFullOff(m_stepMotors[motor].in2B, true); break; case 1: // 0110 m_pca9685->ledFullOff(m_stepMotors[motor].in1A, true); m_pca9685->ledFullOff(m_stepMotors[motor].in2A, false); m_pca9685->ledFullOff(m_stepMotors[motor].in1B, false); m_pca9685->ledFullOff(m_stepMotors[motor].in2B, true); break; case 2: //0101 m_pca9685->ledFullOff(m_stepMotors[motor].in1A, true); m_pca9685->ledFullOff(m_stepMotors[motor].in2A, false); m_pca9685->ledFullOff(m_stepMotors[motor].in1B, true); m_pca9685->ledFullOff(m_stepMotors[motor].in2B, false); break; case 3: //1001 m_pca9685->ledFullOff(m_stepMotors[motor].in1A, false); m_pca9685->ledFullOff(m_stepMotors[motor].in2A, true); m_pca9685->ledFullOff(m_stepMotors[motor].in1B, true); m_pca9685->ledFullOff(m_stepMotors[motor].in2B, false); break; } } void AdafruitMS1438::stepperSteps(STEPMOTORS_T motor, unsigned int steps) { while (steps > 0) { if (getMillis(motor) >= m_stepConfig[motor].stepDelay) { // reset the clock initClock(motor); m_stepConfig[motor].currentStep += m_stepConfig[motor].stepDirection; if (m_stepConfig[motor].stepDirection == 1) { if (m_stepConfig[motor].currentStep >= m_stepConfig[motor].stepsPerRev) m_stepConfig[motor].currentStep = 0; } else { if (m_stepConfig[motor].currentStep <= 0) m_stepConfig[motor].currentStep = m_stepConfig[motor].stepsPerRev; } steps--; stepperStep(motor); } } }
735047f392dd0ef2f2182578a4c831649ab2b14c
c9f77bc48c41c6e7b0d24f63db9a9be93ed35f9f
/Core/include/Errnode.h
0454d5bd768738a44fbada0a8eaa50706615be13
[]
no_license
kaskavalci/UCT
c28f010064c01f7bb9fc650f777a0a378c5d2183
732f3c6d4096f2d9c58d4fdfe13e1cc10a647593
refs/heads/master
2021-05-26T22:51:29.327754
2013-07-01T14:16:43
2013-07-01T14:16:43
6,446,604
0
0
null
null
null
null
UTF-8
C++
false
false
282
h
Errnode.h
/* * Errnode.h * * Created on: 21 Eki 2012 * Author: HalilCan */ #ifndef ERRNODE_H_ #define ERRNODE_H_ #include <string> namespace std { class Errnode { public: string desc; string s1; string s2; int n1; int n2; }; } /* namespace std */ #endif /* ERRNODE_H_ */
fe10c61ea2094a07348595280a749ea1b206b268
c5891e00fc23ecbc83c01b73449d0f05f1f6564c
/test.cpp
1fb9489067b508ff710d2d9f2d6035ca8b86ecee
[]
no_license
KoDim97/dr-web-entrance-test
1385d524418dd8db88c5cf8bac64b6ef410c87f6
b733116937e54450fc48105de064311de532f67b
refs/heads/master
2022-06-19T06:12:07.055022
2020-05-09T12:11:27
2020-05-09T12:11:27
262,561,929
0
0
null
null
null
null
UTF-8
C++
false
false
884
cpp
test.cpp
#include <iostream> #include "Dictionary.cpp" int main() { Dictionary<std::string, std::string> av_top; av_top.Set("first", "DrWeb"); av_top.Set("second", "Avast"); /*Test 1*/ std::cout << "The first AV proggram in my top is " << av_top.Get("first") << std::endl; /*Test 2*/ av_top.Set("second", "Norton"); std::cout << "The second place is taken by " << av_top.Get("second") << std::endl; /*Test 3*/ if (av_top.IsSet("third")){ std::cout << "The third place is taken by " << av_top.Get("third") << std::endl; } else { std::cout << "No third place in my top" << std::endl; } /*Test 4*/ try{ av_top.Get("third"); } catch (NotFoundException<std::string> & exception) { std::cout << "Caught exception. " << exception.what() << ": " << exception.GetKey() << std::endl; } return 0; }
5abfc6fb306cbcfd2a8f75e477628d5d0ff9633a
820c61849a45ed69f3e4636e2d3f0486304b5d46
/Contest Participations/Team Forming Contest 2/d.cpp
b247e5b850080d0fd8c179f529ec16995a56e928
[]
no_license
Tanmoytkd/programming-projects
1d842c994b6e2c546ab37a5378a823f9c9443c39
42c6f741d6da1e4cf787b1b4971a72ab2c2919e1
refs/heads/master
2021-08-07T18:00:43.530215
2021-06-04T11:18:27
2021-06-04T11:18:27
42,516,841
2
1
null
null
null
null
UTF-8
C++
false
false
1,392
cpp
d.cpp
#include<bits/stdc++.h> #define pii pair<int,int> #define mkp make_pair #define fs first #define sc second #define pb push_back #define ppb pop_back() #define pf printf #define pf1(a) printf("%d\n",a) #define hi() printf("hi!\n") #define sf scanf #define sf1(a) scanf("%d",&a) #define sf2(a,b) scanf("%d %d",&a,&b) #define sf3(a,b,c) scanf("%d %d %d",&a,&b,&c) #define sf1ll(a) scanf("%lld",&a) #define sf2ll(a,b) scanf("%lld %lld",&a,&b) #define sf3ll(a,b,c) scanf("%lld %lld %lld",&a,&b,&c) #define pcase(x) printf("Case %d: ",x) #define MX 1000000007 #define inf 1000000007 #define pi acos(-1.0) #define mem(arr,x) memset((arr), (x), sizeof((arr))); #define FOR(i,x) for(int i=0;i<(x); i++) #define FOR1(i, x) for(int i = 1; i<=x ; i++) using namespace std; typedef long long int lint; typedef double dbl; int cmp(pair<int, int> a, pair<int, int> b) { int dig1=a.fs+a.sc, dig2=b.fs+b.sc; if(dig1==dig2) return a.sc<b.sc; return dig1<dig2; } int main() { int t, tst = 1; int n; sf1(n); std::vector<pair<int, int> > v; int scount=0; while(scount*7<=n) { if((n-scount*7)%4==0) { int fcount = (n-scount*7)/4; v.pb(make_pair(fcount, scount)); } scount++; } if(v.size()==0) puts("-1"); else { sort(v.begin(), v.end(), cmp); int fcount=v[0].first, scount=v[0].second; FOR(i, fcount) printf("4"); FOR(i, scount) printf("7"); puts(""); } return 0; }
30f843e19ba2780cdd07cfb6f0d3fb8015563d97
3a8ce5690eb587b1f87e204c9d79a988d6561a69
/Project_Four/AttractionMapper.cpp
6c32f3b50bfa7a5ff0bbdf80357fff7135069e6d
[]
no_license
NguyenNguyenG/BruinNav
f45fc1b83f1bfb4ee61040025ea5ecf901c6eee2
a1ce6e46259537fd58e70de783745f53de6cde50
refs/heads/master
2021-06-27T15:48:18.781355
2017-09-15T06:26:21
2017-09-15T06:26:21
103,621,957
0
0
null
null
null
null
UTF-8
C++
false
false
2,016
cpp
AttractionMapper.cpp
#include "provided.h" #include <string> #include "MyMap.h" using namespace std; class AttractionMapperImpl { public: AttractionMapperImpl(); ~AttractionMapperImpl(); void init(const MapLoader& ml); bool getGeoCoord(string attraction, GeoCoord& gc) const; private: MyMap<string,GeoCoord> m_attrMap; }; AttractionMapperImpl::AttractionMapperImpl() { } AttractionMapperImpl::~AttractionMapperImpl() { } void AttractionMapperImpl::init(const MapLoader& ml) { //mapping aatraction to coordinate for(int i = 0; i < ml.getNumSegments(); i++) { StreetSegment temp; ml.getSegment(i, temp); for(int j = 0; j < temp.attractions.size(); j++) { //lower case all characters first string name; for(int k = 0; k < temp.attractions[j].name.size(); k++) { name += tolower(temp.attractions[j].name[k]); } //associate name with that coordinate m_attrMap.associate(name, temp.attractions[j].geocoordinates); } } } bool AttractionMapperImpl::getGeoCoord(string attraction, GeoCoord& gc) const { string name; //lower case the attraction first before searching for(int i =0; i < attraction.size(); i++) name += tolower(attraction[i]); //find the name const GeoCoord* res = m_attrMap.find(name); if(res == nullptr) return false; gc = *(res); return true; } //******************** AttractionMapper functions ***************************** // These functions simply delegate to AttractionMapperImpl's functions. // You probably don't want to change any of this code. AttractionMapper::AttractionMapper() { m_impl = new AttractionMapperImpl; } AttractionMapper::~AttractionMapper() { delete m_impl; } void AttractionMapper::init(const MapLoader& ml) { m_impl->init(ml); } bool AttractionMapper::getGeoCoord(string attraction, GeoCoord& gc) const { return m_impl->getGeoCoord(attraction, gc); }
a9f0c335ab5f957582bd0018d0e78765ed074b0f
a0d77b4fc3c20b360faa2f30ab132e974c7df4af
/calc.cpp
c7299b7ea6aef4571131979b17418858f71d6e61
[]
no_license
sekainoowaka/projects
b35c84896dbf3ac98c1fc694aba671b6a7281079
80ecc76ab124cc3d91d08104fe4067631e78e74d
refs/heads/master
2021-12-14T00:37:01.443207
2021-12-13T21:40:11
2021-12-13T21:40:11
201,620,038
0
0
null
null
null
null
UTF-8
C++
false
false
5,708
cpp
calc.cpp
#include "dlist.h" #include <iostream> #include <string> using namespace std; class NotEnough {}; class DivideZero {}; class BadInput {}; void PrintAll(Dlist<int> &l) { Dlist<int> _l = l; // perform printing without changing the original list while (!_l.isEmpty()) { int *lTmp = _l.removeFront(); cout << *lTmp << " "; delete lTmp; } cout << endl; } void RemoveAll(Dlist<int> &l) { while (!l.isEmpty()) delete l.removeFront(); // simply the passing of *lTmp } void Print(Dlist<int> &l) { NotEnough op; if (l.isEmpty()) throw op; int *lTmp = l.removeFront(); cout << *lTmp << endl; // print the value, not the address l.insertFront(lTmp); } void Reverse(Dlist<int> &l) { // >=2 operands NotEnough op; if (l.isEmpty()) throw op; // both 0 and 1 are not enough integers int *lTmp1 = l.removeFront(); if (l.isEmpty()) { l.insertFront(lTmp1); // return the remove operation and wait for the next command throw op; // automatically quit } int *lTmp2 = l.removeFront(); l.insertFront(lTmp1); // a newly allocated space will be created for the pointer to object l.insertFront(lTmp2); } void Duplicate(Dlist<int> &l) { // >=1 operand NotEnough op; if (l.isEmpty()) throw op; int *lTmp = l.removeFront(); int *lCopy = new int (*lTmp); l.insertFront(lTmp); l.insertFront(lCopy); } void Negate(Dlist<int> &l) { // >=1 operand NotEnough op; if (l.isEmpty()) throw op; int *lTmp = l.removeFront(); *lTmp = -*lTmp; l.insertFront(lTmp); // int *i = new int (*lTmp); // *i = 0-(*i); // l.insertFront(i); // delete lTmp; } void Divide(Dlist<int> &l) { // >=2 operands NotEnough op; DivideZero dz; int *lTmp1 = l.removeFront(); if (l.isEmpty()) { l.insertFront(lTmp1); // the test case would like empty judgement to be first throw op; } if ((*lTmp1) == 0) { l.insertFront(lTmp1); // every throw after removeFront must return the lTmp throw dz; } int *lTmp2 = l.removeFront(); int *i = new int; *i = (*lTmp1) * (*lTmp2); l.insertFront(i); delete lTmp1; delete lTmp2; } void Multiply(Dlist<int> &l) { // >=2 operands NotEnough op; if (l.isEmpty()) throw op; int *lTmp1 = l.removeFront(); if (l.isEmpty()) { l.insertFront(lTmp1); throw op; } int *lTmp2 = l.removeFront(); int *i = new int; *i = (*lTmp1) * (*lTmp2); l.insertFront(i); delete lTmp1; delete lTmp2; } void Subtract(Dlist<int> &l) { // >=2 operands NotEnough op; if (l.isEmpty()) throw op; int *lTmp1 = l.removeFront(); if (l.isEmpty()) { l.insertFront(lTmp1); throw op; } int *lTmp2 = l.removeFront(); int *i = new int; *i = (*lTmp2) - (*lTmp1); l.insertFront(i); delete lTmp1; delete lTmp2; } void Plus(Dlist<int> &l) { // >=2 operands NotEnough op; if (l.isEmpty()) throw op; int *lTmp1 = l.removeFront(); if (l.isEmpty()) { l.insertFront(lTmp1); throw op; } int *lTmp2 = l.removeFront(); int *i = new int; *i = (*lTmp2) + (*lTmp1); l.insertFront(i); delete lTmp1; delete lTmp2; } int main(){ string s; Dlist<int> stack; while (true) { cin >> s; if (s == "q") { RemoveAll(stack); break; } else if (s == "+") { try { Plus(stack); } catch (NotEnough) { cout << "Not enough operands\n"; } } else if (s == "-") { try { Subtract(stack); } catch (NotEnough) { cout << "Not enough operands\n"; } } else if (s == "*") { try { Multiply(stack); } catch (NotEnough) { cout << "Not enough operands\n"; } } else if (s == "/") { try { Divide(stack); } catch (DivideZero) { cout << "Divide by zero\n"; } catch (NotEnough) { cout << "Not enough operands\n"; } } else if (s == "n") { try { Negate(stack); } catch (NotEnough) { cout << "Not enough operands\n"; } } else if (s == "d") { try { Duplicate(stack); } catch (NotEnough) { cout << "Not enough operands\n"; } } else if (s == "r") { try { Reverse(stack); } catch (NotEnough) { cout << "Not enough operands\n"; } } else if (s == "p") { try { Print(stack); } catch (NotEnough) { cout << "Not enough operands\n"; } } else if (s == "c") RemoveAll(stack); else if (s == "a") PrintAll(stack); else { try { BadInput bi; int *iTmp = new int; // allocate memory int minus = 0; if (s.find('-') != 0 && s.find('-') != s.npos) throw bi; else if (s.find('-') == s.npos) minus = -1; for (int i = minus+1; i < (int)s.length(); i++) { //int digit = s[i]; // s[i]=2 -> digit=50 ??? //cout << s[i] << " "; if (s[i] < '0' || s[i] > '9') { // s[i]: signed char delete iTmp; throw bi; } } *iTmp = stoi(s); // this should not be put as else in the for loop: // leads to duplicate pushes & double-free //cout << *iTmp << endl; stack.insertFront(iTmp); //cout << endl; } catch (BadInput) { cout << "Bad input\n"; } } } }
d10076cea756a2a05ff06290aa8505dc39929c35
024ba70673e2cd9afb43ae182210d7791ff7eb27
/Multiplicación de matrices/straussen.cpp
68dd2d9b716f4e01f7d212bcf48150160c40e7c8
[]
no_license
MauricioRuiz01/ETSJunio2021AyDdeAlgoritmos
2e1df14481300741e24792a250e6613ca5349ad7
988ebc934a8a95d9472f201d3af4152424deb113
refs/heads/master
2023-06-13T07:29:40.868349
2021-07-06T04:46:00
2021-07-06T04:46:00
381,829,184
0
0
null
null
null
null
UTF-8
C++
false
false
1,200
cpp
straussen.cpp
#include <bits/stdc++.h> #include "matrix.h" using namespace std; Matrix strassenmtd(Matrix A, Matrix B); int main() { vector<vector<int>> A, B; A = { {2,2,3,3}, {2,6,3,3}, {8,2,4,3}, {2,6,3,9}, }; B = { {1,2,3,3}, {2,6,3,3}, {8,2,3,3}, {2,6,3,3}, }; Matrix MatA(A), MatB(B), MatC, MatD; MatC = MatA + MatB; MatD = MatA - MatB; MatA.printMatrix(); cout << " Esta es la logitud " << MatA.getLength() << endl; strassenmtd(MatA,MatB); return 0; } Matrix strassenmtd(Matrix A, Matrix B){ if (A.getLength() == 1){ A.multiply(B); return A; } Matrix a, b, c, d; Matrix e, f, g, h; Matrix p1 = strassenmtd(a, f - h); Matrix p2 = strassenmtd(a + b, h); Matrix p3 = strassenmtd(c + d, e); Matrix p4 = strassenmtd(d, g - e); Matrix p5 = strassenmtd(a + d, e + h); Matrix p6 = strassenmtd(b - d, g + h); Matrix p7 = strassenmtd(a - c, e + f); Matrix c11 = p5 + p4 - p2 + p6; Matrix c12 = p1 + p2; Matrix c21 = p3 + p4; Matrix c22 = p1 + p5 - p3 - p7; c11.printMatrix(); c12.printMatrix(); c21.printMatrix(); c22.printMatrix(); return c11; }
28d3b9c18eaee3ed9491a1e3b6145bfbe230cd5b
70b35f2decbf84b001db830ceffc76e1d246e9ef
/common/ResultsResponseMessage.hpp
29eff0975e2d561815d80c25f62e86b2ef225907
[ "Zlib", "LicenseRef-scancode-unknown-license-reference" ]
permissive
mrkline/ece453
b378691ba97561aaf4a70beed59eef0f313361f0
580880c89c42049ad079a26ec05f27ba2e6b0236
refs/heads/master
2020-11-26T17:05:35.897341
2014-05-09T02:40:57
2014-05-09T02:40:57
null
0
0
null
null
null
null
UTF-8
C++
false
false
1,962
hpp
ResultsResponseMessage.hpp
#pragma once #include <memory> #include <vector> #include "Exceptions.hpp" #include "ResponseMessage.hpp" #include "Shot.hpp" /// Responds to a ResultsMessage message with the end-of-match results, /// provided the ResultsMessage was sent after a match ended. class ResultsResponseMessage : public ResponseMessage { public: struct PlayerStats { const score_t score; ///< The player's final score const shot_t hits; ///< The player's final hit count const std::vector<Shot> shots; ///< A list of shots the player took PlayerStats(score_t s, shot_t h, std::vector<Shot>&& t) : score(s), hits(h), shots(std::move(t)) { } bool operator==(const PlayerStats& o) const { return score == o.score && hits == o.hits && shots == o.shots; } }; typedef std::vector<PlayerStats> StatsList; /** * \brief Constructs a results response message * \param id The message ID * \param respTo The ID of the ResultsMessage we are responding to * \param message The message (if any) for the response * \param playerStats A list of ResultsResponseMessage::PlayerStats to send */ ResultsResponseMessage(message_id_t id, message_id_t respTo, const std::string& message, StatsList&& playerStats); #ifdef WITH_JSON /// Deserializes a message from a JSON object. /// \warning Do not call this directly. Call JSONToMessage instead. static std::unique_ptr<ResultsResponseMessage> fromJSON(const Json::Value& object); Json::Value toJSON() const override; #endif /// The ResultsResponseMessage is not serializable to binary /// \throws Exceptions::InvalidOperationException upon being called std::vector<uint8_t> getBinaryPayload() const override { THROW(Exceptions::InvalidOperationException, "This messsage type does not support binary serialization"); } Type getType() const override { return Type::RESULTS_RESPONSE; } bool operator==(const Message& o) const override; const StatsList stats; };
ee2f40e10a0c30c97006e2feeda948827f8c3150
1634d4f09e2db354cf9befa24e5340ff092fd9db
/Wonderland/Wonderland/Editor/Foundation/UI/Widgets/Deprecated/UIViewShader.cpp
2d0c6c08bda1673ed648e25f5e481c222d423d53
[ "MIT" ]
permissive
RodrigoHolztrattner/Wonderland
cd5a977bec96fda1851119a8de47b40b74bd85b7
ffb71d47c1725e7cd537e2d1380962b5dfdc3d75
refs/heads/master
2021-01-10T15:29:21.940124
2017-10-01T17:12:57
2017-10-01T17:12:57
84,469,251
4
1
null
null
null
null
UTF-8
C++
false
false
4,048
cpp
UIViewShader.cpp
//////////////////////////////////////////////////////////////////////////////// // Filename: UIViewShader.cpp //////////////////////////////////////////////////////////////////////////////// #include "UIViewShader.h" /* #include <fstream> using namespace std; /////////////// // NAMESPACE // /////////////// UIViewShader::UIViewShader() { } UIViewShader::UIViewShader(const UIViewShader& other) { } UIViewShader::~UIViewShader() { } bool UIViewShader::Initialize() { bool result; // Set the shard data m_VertexShard.SetData(LoadShardSourceFile("color.vs")); m_FragmentShard.SetData(LoadShardSourceFile("color.fs")); // Make the vertex shard result = m_VertexShard.MakeShard(GL_VERTEX_SHADER); if(!result) { return false; } // Make the fragment shard result = m_FragmentShard.MakeShard(GL_FRAGMENT_SHADER); if (!result) { return false; } // Make the shader program result = m_ShaderProgram.MakeProgram(); if (!result) { return false; } // Attach the shards m_ShaderProgram.AttachShard(&m_VertexShard); m_ShaderProgram.AttachShard(&m_FragmentShard); // Set the program input variables m_ShaderProgram.SetInputVariable(0, "inputPosition"); m_ShaderProgram.SetInputVariable(1, "texCoord"); // Compile the shader program result = m_ShaderProgram.CompileProgram(); if (!result) { return false; } // Add the vertices m_FrameObject.AddVertex(Vector3(0, 1, 0), Vector2(0, 0)); m_FrameObject.AddVertex(Vector3(1, 1, 0), Vector2(1, 0)); m_FrameObject.AddVertex(Vector3(0, 0, 0), Vector2(0, 1)); m_FrameObject.AddVertex(Vector3(1, 0, 0), Vector2(1, 1)); // Add the indexes m_FrameObject.AddIndex(0); m_FrameObject.AddIndex(1); m_FrameObject.AddIndex(2); m_FrameObject.AddIndex(2); m_FrameObject.AddIndex(1); m_FrameObject.AddIndex(3); // Make the frame object result = m_FrameObject.MakeFrame(); if (!result) { return false; } return true; } bool UIViewShader::PrepareToRender() { WMatrix4 worldMatrix; WMatrix4 viewMatrix; WMatrix4 projectionMatrix; unsigned int location; // Use our program m_ShaderProgram.UseProgram(); // Set the matrices worldMatrix.BuildIdentity(); viewMatrix.BuildView(Vector3(0, 0, 0), Vector3(0, 0, 0), Vector3(0, 0, 1), Vector3(0, 1, 0)); projectionMatrix.BuildOrtho(3.14159265358979323846f / 4.0f, 640, 480, 0.1, 1000.0f); projectionMatrix = viewMatrix = worldMatrix; // Set the world matrix in the vertex shader. location = m_ShaderProgram.GetUniformLocation("worldMatrix"); if (location == -1) { return false; } glUniformMatrix4fv(location, 1, false, worldMatrix.v); // Set the view matrix in the vertex shader. location = m_ShaderProgram.GetUniformLocation("viewMatrix"); if (location == -1) { return false; } glUniformMatrix4fv(location, 1, false, viewMatrix.v); // Set the projection matrix in the vertex shader. location = m_ShaderProgram.GetUniformLocation("projectionMatrix"); if (location == -1) { return false; } glUniformMatrix4fv(location, 1, false, projectionMatrix.v); return true; } void UIViewShader::RenderAux(View* _object) { unsigned int location; WMatrix4 localMatrix; // Set the position and size Vector3 position = Vector3::TransformToScreenPosition(_object->GetScreenFrame().position, _object->GetScreenFrame().size); Vector3 size = Vector3::TransformToScreenSize(_object->GetScreenFrame().size); // Make the local matrix localMatrix.BuildTransform(position, Vector3(0, 0, 0), size); localMatrix.s13 = position.x; localMatrix.s14 = position.y; // Set the local matrix location = m_ShaderProgram.GetUniformLocation("localMatrix"); if (location == -1) { return; } glUniformMatrix4fv(location, 1, false, localMatrix.v); // Set the view color location = m_ShaderProgram.GetUniformLocation("baseColor"); if (location == -1) { return; } glUniform4f(location, _object->GetFrameColor().x, _object->GetFrameColor().y, _object->GetFrameColor().z, _object->GetFrameColor().w); // Render our frame object m_FrameObject.RenderFrame(GL_TRIANGLES, GL_UNSIGNED_INT); } */
336f602ff3791ad20f4e2724862b205b05034951
27e1a0831fa730f710c7f48125092b8bfa98c8c6
/src/core/NEON/kernels/NEChannelCombineKernel.cpp
28fb4bdb10fd60b0fadc35914038a7b3de133cfd
[ "MIT" ]
permissive
adityagupta1089/ComputeLibrary
ff9c57f4f69b02d3789f72b5223bc9c1f28ad777
39945fde9bbb805e76c55baf3ca536a376fb00f4
refs/heads/master
2021-06-22T06:54:52.030052
2021-01-03T14:04:39
2021-01-03T14:04:39
158,011,217
2
1
MIT
2018-11-17T18:07:24
2018-11-17T18:07:24
null
UTF-8
C++
false
false
18,160
cpp
NEChannelCombineKernel.cpp
/* * Copyright (c) 2016-2018 ARM Limited. * * SPDX-License-Identifier: MIT * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to * deal in the Software without restriction, including without limitation the * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or * sell copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ #include "arm_compute/core/NEON/kernels/NEChannelCombineKernel.h" #include "arm_compute/core/Error.h" #include "arm_compute/core/Helpers.h" #include "arm_compute/core/IAccessWindow.h" #include "arm_compute/core/IMultiImage.h" #include "arm_compute/core/ITensor.h" #include "arm_compute/core/MultiImageInfo.h" #include "arm_compute/core/TensorInfo.h" #include "arm_compute/core/Types.h" #include "arm_compute/core/Validate.h" #include "arm_compute/core/Window.h" #include <arm_neon.h> using namespace arm_compute; namespace arm_compute { class Coordinates; } // namespace arm_compute NEChannelCombineKernel::NEChannelCombineKernel() : _func(nullptr), _planes{ { nullptr } }, _output(nullptr), _output_multi(nullptr), _x_subsampling{ { 1, 1, 1 } }, _y_subsampling{ { 1, 1, 1 } }, _num_elems_processed_per_iteration(8), _is_parallelizable(true) { } void NEChannelCombineKernel::configure(const ITensor *plane0, const ITensor *plane1, const ITensor *plane2, const ITensor *plane3, ITensor *output) { ARM_COMPUTE_ERROR_ON_NULLPTR(plane0, plane1, plane2, output); ARM_COMPUTE_ERROR_ON(plane0 == output); ARM_COMPUTE_ERROR_ON(plane1 == output); ARM_COMPUTE_ERROR_ON(plane2 == output); ARM_COMPUTE_ERROR_ON_FORMAT_NOT_IN(plane0, Format::U8); ARM_COMPUTE_ERROR_ON_FORMAT_NOT_IN(plane1, Format::U8); ARM_COMPUTE_ERROR_ON_FORMAT_NOT_IN(plane2, Format::U8); ARM_COMPUTE_ERROR_ON_FORMAT_NOT_IN(output, Format::RGB888, Format::RGBA8888, Format::UYVY422, Format::YUYV422); ARM_COMPUTE_ERROR_ON_DATA_TYPE_CHANNEL_NOT_IN(plane0, 1, DataType::U8); ARM_COMPUTE_ERROR_ON_DATA_TYPE_CHANNEL_NOT_IN(plane1, 1, DataType::U8); ARM_COMPUTE_ERROR_ON_DATA_TYPE_CHANNEL_NOT_IN(plane2, 1, DataType::U8); const Format output_format = output->info()->format(); // Check if horizontal dimension of Y plane is even and validate horizontal sub-sampling dimensions for U and V planes if(Format::YUYV422 == output_format || Format::UYVY422 == output_format) { // Validate Y plane of input and output ARM_COMPUTE_ERROR_ON_TENSORS_NOT_EVEN(output_format, plane0, output); // Validate U and V plane of the input ARM_COMPUTE_ERROR_ON_TENSORS_NOT_SUBSAMPLED(output_format, plane0->info()->tensor_shape(), plane1, plane2); } _planes[0] = plane0; _planes[1] = plane1; _planes[2] = plane2; _planes[3] = nullptr; // Validate the last input tensor only for RGBA format if(Format::RGBA8888 == output_format) { ARM_COMPUTE_ERROR_ON_NULLPTR(plane3); ARM_COMPUTE_ERROR_ON_TENSOR_NOT_2D(plane3); ARM_COMPUTE_ERROR_ON_FORMAT_NOT_IN(plane3, Format::U8); ARM_COMPUTE_ERROR_ON_DATA_TYPE_CHANNEL_NOT_IN(plane3, 1, DataType::U8); _planes[3] = plane3; } _output = output; _output_multi = nullptr; // Half the processed elements for U and V channels due to horizontal sub-sampling of 2 if(Format::YUYV422 == output_format || Format::UYVY422 == output_format) { _x_subsampling[1] = 2; _x_subsampling[2] = 2; } _num_elems_processed_per_iteration = 8; _is_parallelizable = true; // Select function and number of elements to process given the output format switch(output_format) { case Format::RGB888: _func = &NEChannelCombineKernel::combine_3C; break; case Format::RGBA8888: _func = &NEChannelCombineKernel::combine_4C; break; case Format::UYVY422: _num_elems_processed_per_iteration = 16; _func = &NEChannelCombineKernel::combine_YUV_1p<true>; break; case Format::YUYV422: _num_elems_processed_per_iteration = 16; _func = &NEChannelCombineKernel::combine_YUV_1p<false>; break; default: ARM_COMPUTE_ERROR("Not supported format."); break; } Window win = calculate_max_window(*plane0->info(), Steps(_num_elems_processed_per_iteration)); AccessWindowHorizontal output_access(output->info(), 0, _num_elems_processed_per_iteration); AccessWindowHorizontal plane0_access(plane0->info(), 0, _num_elems_processed_per_iteration / _x_subsampling[1], 1.f / _x_subsampling[0]); AccessWindowHorizontal plane1_access(plane1->info(), 0, _num_elems_processed_per_iteration / _x_subsampling[1], 1.f / _x_subsampling[1]); AccessWindowHorizontal plane2_access(plane2->info(), 0, _num_elems_processed_per_iteration / _x_subsampling[1], 1.f / _x_subsampling[2]); AccessWindowHorizontal plane3_access(plane3 == nullptr ? nullptr : plane3->info(), 0, _num_elems_processed_per_iteration); update_window_and_padding( win, plane0_access, plane1_access, plane2_access, plane3_access, output_access); ValidRegion valid_region = intersect_valid_regions(plane0->info()->valid_region(), plane1->info()->valid_region(), plane2->info()->valid_region()); if(plane3 != nullptr) { valid_region = intersect_valid_regions(plane3->info()->valid_region(), valid_region); } output_access.set_valid_region(win, ValidRegion(valid_region.anchor, output->info()->tensor_shape())); INEKernel::configure(win); } void NEChannelCombineKernel::configure(const IImage *plane0, const IImage *plane1, const IImage *plane2, IMultiImage *output) { ARM_COMPUTE_ERROR_ON_NULLPTR(plane0, plane1, plane2, output); ARM_COMPUTE_ERROR_ON_TENSOR_NOT_2D(plane0); ARM_COMPUTE_ERROR_ON_TENSOR_NOT_2D(plane1); ARM_COMPUTE_ERROR_ON_TENSOR_NOT_2D(plane2); ARM_COMPUTE_ERROR_ON_FORMAT_NOT_IN(plane0, Format::U8); ARM_COMPUTE_ERROR_ON_FORMAT_NOT_IN(plane1, Format::U8); ARM_COMPUTE_ERROR_ON_FORMAT_NOT_IN(plane2, Format::U8); ARM_COMPUTE_ERROR_ON_FORMAT_NOT_IN(output, Format::NV12, Format::NV21, Format::IYUV, Format::YUV444); ARM_COMPUTE_ERROR_ON_DATA_TYPE_CHANNEL_NOT_IN(plane0, 1, DataType::U8); ARM_COMPUTE_ERROR_ON_DATA_TYPE_CHANNEL_NOT_IN(plane1, 1, DataType::U8); ARM_COMPUTE_ERROR_ON_DATA_TYPE_CHANNEL_NOT_IN(plane2, 1, DataType::U8); const Format output_format = output->info()->format(); // Validate shape of Y plane to be even and shape of sub-sampling dimensions for U and V planes // Perform validation only for formats which require sub-sampling. if(Format::YUV444 != output_format) { // Validate Y plane of input and output ARM_COMPUTE_ERROR_ON_TENSORS_NOT_EVEN(output_format, plane0, output->plane(0)); // Validate U and V plane of the input ARM_COMPUTE_ERROR_ON_TENSORS_NOT_SUBSAMPLED(output_format, plane0->info()->tensor_shape(), plane1, plane2); // Validate second plane U (NV12 and NV21 have a UV88 combined plane while IYUV has only the U plane) // MultiImage generates the correct tensor shape but also check in case the tensor shape of planes was changed to a wrong size ARM_COMPUTE_ERROR_ON_TENSORS_NOT_SUBSAMPLED(output_format, plane0->info()->tensor_shape(), output->plane(1)); // Validate the last plane V of format IYUV if(Format::IYUV == output_format) { // Validate Y plane of the output ARM_COMPUTE_ERROR_ON_TENSORS_NOT_SUBSAMPLED(output_format, plane0->info()->tensor_shape(), output->plane(2)); } } _planes[0] = plane0; _planes[1] = plane1; _planes[2] = plane2; _planes[3] = nullptr; _output = nullptr; _output_multi = output; bool has_two_planes = false; unsigned int num_elems_written_plane1 = 8; _num_elems_processed_per_iteration = 8; _is_parallelizable = true; switch(output_format) { case Format::NV12: case Format::NV21: _x_subsampling = { { 1, 2, 2 } }; _y_subsampling = { { 1, 2, 2 } }; _func = &NEChannelCombineKernel::combine_YUV_2p; has_two_planes = true; num_elems_written_plane1 = 16; break; case Format::IYUV: _is_parallelizable = false; _x_subsampling = { { 1, 2, 2 } }; _y_subsampling = { { 1, 2, 2 } }; _func = &NEChannelCombineKernel::combine_YUV_3p; break; case Format::YUV444: _is_parallelizable = false; _x_subsampling = { { 1, 1, 1 } }; _y_subsampling = { { 1, 1, 1 } }; _func = &NEChannelCombineKernel::combine_YUV_3p; break; default: ARM_COMPUTE_ERROR("Not supported format."); break; } const unsigned int y_step = *std::max_element(_y_subsampling.begin(), _y_subsampling.end()); Window win = calculate_max_window(*plane0->info(), Steps(_num_elems_processed_per_iteration, y_step)); AccessWindowRectangle output_plane0_access(output->plane(0)->info(), 0, 0, _num_elems_processed_per_iteration, 1, 1.f, 1.f / _y_subsampling[0]); AccessWindowRectangle output_plane1_access(output->plane(1)->info(), 0, 0, num_elems_written_plane1, 1, 1.f / _x_subsampling[1], 1.f / _y_subsampling[1]); AccessWindowRectangle output_plane2_access(has_two_planes ? nullptr : output->plane(2)->info(), 0, 0, _num_elems_processed_per_iteration, 1, 1.f / _x_subsampling[2], 1.f / _y_subsampling[2]); update_window_and_padding(win, AccessWindowHorizontal(plane0->info(), 0, _num_elems_processed_per_iteration), AccessWindowRectangle(plane1->info(), 0, 0, _num_elems_processed_per_iteration, 1, 1.f / _x_subsampling[1], 1.f / _y_subsampling[1]), AccessWindowRectangle(plane2->info(), 0, 0, _num_elems_processed_per_iteration, 1, 1.f / _x_subsampling[2], 1.f / _y_subsampling[2]), output_plane0_access, output_plane1_access, output_plane2_access); ValidRegion plane0_valid_region = plane0->info()->valid_region(); ValidRegion output_plane1_region = has_two_planes ? intersect_valid_regions(plane1->info()->valid_region(), plane2->info()->valid_region()) : plane2->info()->valid_region(); output_plane0_access.set_valid_region(win, ValidRegion(plane0_valid_region.anchor, output->plane(0)->info()->tensor_shape())); output_plane1_access.set_valid_region(win, ValidRegion(output_plane1_region.anchor, output->plane(1)->info()->tensor_shape())); output_plane2_access.set_valid_region(win, ValidRegion(plane2->info()->valid_region().anchor, output->plane(2)->info()->tensor_shape())); INEKernel::configure(win); } bool NEChannelCombineKernel::is_parallelisable() const { return _is_parallelizable; } void NEChannelCombineKernel::run(const Window &window, const ThreadInfo &info) { ARM_COMPUTE_UNUSED(info); ARM_COMPUTE_ERROR_ON_UNCONFIGURED_KERNEL(this); ARM_COMPUTE_ERROR_ON_INVALID_SUBWINDOW(INEKernel::window(), window); ARM_COMPUTE_ERROR_ON(_func == nullptr); (this->*_func)(window); } void NEChannelCombineKernel::combine_3C(const Window &win) { Iterator p0(_planes[0], win); Iterator p1(_planes[1], win); Iterator p2(_planes[2], win); Iterator out(_output, win); execute_window_loop(win, [&](const Coordinates & id) { const auto p0_ptr = static_cast<uint8_t *>(p0.ptr()); const auto p1_ptr = static_cast<uint8_t *>(p1.ptr()); const auto p2_ptr = static_cast<uint8_t *>(p2.ptr()); const auto out_ptr = static_cast<uint8_t *>(out.ptr()); const uint8x8x3_t pixels = { { vld1_u8(p0_ptr), vld1_u8(p1_ptr), vld1_u8(p2_ptr) } }; vst3_u8(out_ptr, pixels); }, p0, p1, p2, out); } void NEChannelCombineKernel::combine_4C(const Window &win) { Iterator p0(_planes[0], win); Iterator p1(_planes[1], win); Iterator p2(_planes[2], win); Iterator p3(_planes[3], win); Iterator out(_output, win); execute_window_loop(win, [&](const Coordinates & id) { const auto p0_ptr = static_cast<uint8_t *>(p0.ptr()); const auto p1_ptr = static_cast<uint8_t *>(p1.ptr()); const auto p2_ptr = static_cast<uint8_t *>(p2.ptr()); const auto p3_ptr = static_cast<uint8_t *>(p3.ptr()); const auto out_ptr = static_cast<uint8_t *>(out.ptr()); const uint8x8x4_t pixels = { { vld1_u8(p0_ptr), vld1_u8(p1_ptr), vld1_u8(p2_ptr), vld1_u8(p3_ptr) } }; vst4_u8(out_ptr, pixels); }, p0, p1, p2, p3, out); } template <bool is_uyvy> void NEChannelCombineKernel::combine_YUV_1p(const Window &win) { // Create sub-sampled uv window and init uv planes Window win_uv(win); win_uv.set_dimension_step(Window::DimX, win.x().step() / _x_subsampling[1]); win_uv.validate(); Iterator p0(_planes[0], win); Iterator p1(_planes[1], win_uv); Iterator p2(_planes[2], win_uv); Iterator out(_output, win); constexpr auto shift = is_uyvy ? 1 : 0; execute_window_loop(win, [&](const Coordinates & id) { const auto p0_ptr = static_cast<uint8_t *>(p0.ptr()); const auto p1_ptr = static_cast<uint8_t *>(p1.ptr()); const auto p2_ptr = static_cast<uint8_t *>(p2.ptr()); const auto out_ptr = static_cast<uint8_t *>(out.ptr()); const uint8x8x2_t pixels_y = vld2_u8(p0_ptr); const uint8x8x2_t pixels_uv = { { vld1_u8(p1_ptr), vld1_u8(p2_ptr) } }; uint8x8x4_t pixels{ {} }; pixels.val[0 + shift] = pixels_y.val[0]; pixels.val[1 - shift] = pixels_uv.val[0]; pixels.val[2 + shift] = pixels_y.val[1]; pixels.val[3 - shift] = pixels_uv.val[1]; vst4_u8(out_ptr, pixels); }, p0, p1, p2, out); } void NEChannelCombineKernel::combine_YUV_2p(const Window &win) { ARM_COMPUTE_ERROR_ON(win.x().start() % _x_subsampling[1]); ARM_COMPUTE_ERROR_ON(win.y().start() % _y_subsampling[1]); // Copy first plane copy_plane(win, 0); // Update UV window Window uv_win(win); uv_win.set(Window::DimX, Window::Dimension(uv_win.x().start() / _x_subsampling[1], uv_win.x().end() / _x_subsampling[1], uv_win.x().step() / _x_subsampling[1])); uv_win.set(Window::DimY, Window::Dimension(uv_win.y().start() / _y_subsampling[1], uv_win.y().end() / _y_subsampling[1], 1)); uv_win.validate(); // Update output win Window out_win(win); out_win.set(Window::DimX, Window::Dimension(out_win.x().start(), out_win.x().end(), out_win.x().step() / _x_subsampling[1])); out_win.set(Window::DimY, Window::Dimension(out_win.y().start() / _y_subsampling[1], out_win.y().end() / _y_subsampling[1], 1)); out_win.validate(); // Construct second plane const int shift = (Format::NV12 == _output_multi->info()->format()) ? 0 : 1; Iterator p1(_planes[1 + shift], uv_win); Iterator p2(_planes[2 - shift], uv_win); Iterator out(_output_multi->plane(1), out_win); // Increase step size after iterator is created to calculate stride correctly for multi channel format out_win.set_dimension_step(Window::DimX, out_win.x().step() * _x_subsampling[1]); execute_window_loop(out_win, [&](const Coordinates & id) { const uint8x8x2_t pixels = { { vld1_u8(p1.ptr()), vld1_u8(p2.ptr()) } }; vst2_u8(out.ptr(), pixels); }, p1, p2, out); } void NEChannelCombineKernel::combine_YUV_3p(const Window &win) { copy_plane(win, 0); copy_plane(win, 1); copy_plane(win, 2); } void NEChannelCombineKernel::copy_plane(const Window &win, uint32_t plane_id) { ARM_COMPUTE_ERROR_ON(win.x().start() % _x_subsampling[plane_id]); ARM_COMPUTE_ERROR_ON(win.y().start() % _y_subsampling[plane_id]); // Update window Window tmp_win(win); tmp_win.set(Window::DimX, Window::Dimension(tmp_win.x().start() / _x_subsampling[plane_id], tmp_win.x().end() / _x_subsampling[plane_id], tmp_win.x().step() / _x_subsampling[plane_id])); tmp_win.set(Window::DimY, Window::Dimension(tmp_win.y().start() / _y_subsampling[plane_id], tmp_win.y().end() / _y_subsampling[plane_id], 1)); Iterator in(_planes[plane_id], tmp_win); Iterator out(_output_multi->plane(plane_id), tmp_win); execute_window_loop(tmp_win, [&](const Coordinates & id) { const uint8x8_t pixels = vld1_u8(in.ptr()); vst1_u8(out.ptr(), pixels); }, in, out); }
028f17fe1b3577c776d295b8ba5d79695dc670bc
cd15e3161fbb9924ae97146f703fb552fd2723f2
/Cpp/Codes/Practice/Interview/4_1 numUniqueEmails.cpp
16b7c6a9362fb399f9bab63c90846a1ba049b0a9
[ "MIT" ]
permissive
QuincyWork/AllCodes
f8953442f13f13cf2beec8f23697e89d4c3cbcbc
59fe045608dda924cb993dde957da4daff769438
refs/heads/master
2021-08-16T10:26:58.971769
2021-06-10T07:52:53
2021-06-10T07:52:53
103,636,470
0
1
null
null
null
null
UTF-8
C++
false
false
852
cpp
4_1 numUniqueEmails.cpp
#include <gtest/gtest.h> using namespace std; namespace IV4_1 { class Solution { public: int numUniqueEmails(vector<string>& emails) { set<string> result; for (auto email : emails) { auto pos = email.find('@'); if (pos != string::npos) { string localName = email.substr(0, pos); string realmName = email.substr(pos + 1); string newName = ""; for (auto c : localName) { if (c == '+') { break; } else if (c != '.') { newName += c; } } result.insert(newName + "@" + realmName); } } return result.size(); } }; TEST(Interview, numUniqueEmails) { Solution s; vector<string> v = { "test.email+alex@leetcode.com","test.e.mail+bob.cathy@leetcode.com","testemail+david@lee.tcode.com" }; ASSERT_EQ(s.numUniqueEmails(v), 2); } }
dc2bb23c30a92d726acd7fa1fe9b9ed28ad41303
808def4676ec03b193636edba841054ece8021db
/ChallengeProgrammingDesignCompetition/TheSecondChapterTheFledglingPrimaryArticle/TheSecondSectionGoStraightGreedyMethod/FrenceRepair/FrenceRepairOther.cpp
57879c73a3ffc5c305e544e74fb5b24af5c50194
[]
no_license
yigezhe/programming
75257be59a3380572c54d0624b7f72b56904caa5
9e7a2026e967e92031347ed9178440cce2701033
refs/heads/master
2020-12-28T21:06:17.548241
2015-01-09T21:33:58
2015-01-09T21:33:58
null
0
0
null
null
null
null
UTF-8
C++
false
false
1,830
cpp
FrenceRepairOther.cpp
/* * 作者:何伟伟 * 作者邮箱:<1830973318@qq.com> * 文件名: FrenceRepairOther.cpp * 创建日期: 2015年01月03日 星期六 06时52分30秒 * 程序想法: #include <iostream> #include <queue> #include <cstdio> using namespace std; //#define __int64 long long class Node { public: __int64 w; Node(__int64 weight = 0) : w(weight) {} bool operator<(const Node& rhs) const { return this->w > rhs.w; } }; int main(int argc, char **argv) { int n, i; while (EOF != scanf("%I64d", &n)) { priority_queue<Node> q; __int64 tmp, res = 0; for (i = 0; i < n; ++i) { scanf("%I64d", &tmp); q.push(tmp); } Node na, nb; while (q.size() > 1) { na = q.top(); q.pop(); nb = q.top(); q.pop(); na.w += nb.w; res += na.w; q.push(na); } q.pop(); printf ("%I64d\n", res); } return 0; } 我需要改造为g++上可以运行的代码! http://www.programlife.net/poj-3253-fence-repair.html */ #include <iostream> #include <queue> #include <cstdio> using namespace std; class Node { public: long long w; Node(long long weight = 0):w(weight) { } bool operator<(const Node & rhs) const { return this->w > rhs.w; }}; //c++引入的一些语法让我看不懂,这些语法的结构感觉不合理! //int main(int argc, char **argv) int main() { int n, i; //我能做的工作就是打印一下中间过程,看看内部发生了什么?! while (EOF != scanf("%I64d", &n)) { priority_queue < Node > q; long long tmp, res = 0; for (i = 0; i < n; ++i) { scanf("%I64lld", &tmp); q.push(tmp); } Node na, nb; while (q.size() > 1) { na = q.top(); q.pop(); nb = q.top(); q.pop(); na.w += nb.w; res += na.w; q.push(na); } q.pop(); printf("%I64lld\n", res); } return 0; }
413606bdfcc5b4098863ae3ab18341443c99b556
f7bc83ea58dde6e59a498c8834ad42285179a74a
/solutions/1044/state_compress.cpp
8653bd61f361ead52c5078869460ee7f2f19359d
[ "Apache-2.0" ]
permissive
cpnine/hihoCoder
a95b3d2987126b4c00f1732a28a836d8e21ecf12
43879e5788bcc67fc799f8ebe734f458085ed07d
refs/heads/master
2020-04-05T15:52:47.671507
2019-11-21T03:23:56
2019-11-21T03:23:56
61,935,073
0
0
null
2016-06-25T08:55:20
2016-06-25T08:55:19
null
UTF-8
C++
false
false
1,004
cpp
state_compress.cpp
#include <iostream> #include <vector> #include <algorithm> using namespace std; inline int bitcount(int x) { int ret = 0; for (; x; x &= x-1) ++ret; return ret; } int solve(const vector<int> &w, int m, int q) { --m; vector<vector<int>> dp(w.size(), vector<int>(1 << m)); --m; for (vector<int>::size_type i = 0, iend = dp.size(); i != iend; ++i) { for (vector<int>::size_type j = 0, jend = dp[i].size(); j < jend; ++j) { int t = i == 0 ? 0 : dp[i-1][j]; vector<int>::size_type idx = (j>>1) | (1 << m); if (bitcount(j) < q) dp[i][idx] = max(t + w[i], dp[i][idx]); dp[i][j>>1] = max(t, dp[i][j>>1]); } } return *max_element(dp.back().begin(), dp.back().end()); } int main(void) { int n, m, q; while (cin >> n >> m >> q) { vector<int> w(n); for (int i = 0; i < n; ++i) cin >> w[i]; cout << solve(w, m, q) << endl; } return 0; }
cc7486e30128b769cd593eb0b2b355cd7b4c4e4a
b825f8b7f7891fd202d9c26fb6c9dc4bb6437094
/Sheet03/include/WeakClassifier.hh
d86c25ebc3f37d62bc92415dcab0c302fa3cb2d5
[]
no_license
arindamrc/computer_vision_2
6b9575c4cf9f324fa971576d32ab382b581cbb13
401b3a3c8209da3726521ed1ef23be6cb9a21404
refs/heads/master
2020-03-11T03:58:10.845912
2018-05-16T11:51:08
2018-05-16T11:51:08
129,763,228
0
0
null
null
null
null
UTF-8
C++
false
false
587
hh
WeakClassifier.hh
/* * NearestMeanClassifier.hh * * Created on: Apr 25, 2014 * Author: richard */ #ifndef NEARESTMEANCLASSIFIER_HH_ #define NEARESTMEANCLASSIFIER_HH_ #include <vector> #include "Types.hh" class Stump { private: u32 dimension_; u32 splitAttribute_; f32 splitValue_; u32 classLabelLeft_; u32 classLabelRight_; public: Stump(); void initialize(u32 dimension, u32 splitAttribute, f32 threshold, u32 classLabelLt); std::vector<u32> train(const std::vector<Example>& data, const Vector& weights); u32 classify(const Vector& v); }; #endif /* NEARESTMEANCLASSIFIER_HH_ */
4bf0ce468c4b1a3e5da2f36cc64899e9ce3d5fb9
6c52eb551ad75ffec1622f78e6a9cd86e5208fcf
/framework/include/AErr.hpp
d77210beda2141433b98c3aa7d64886ebbbfedda
[]
no_license
AlanYiNew/alanard-game-c-
3696d2c5642cc50e30133dafbf542d6ea16b6d8d
11b6377e01ce82d5e2f2ee8473853025666bd762
refs/heads/master
2021-04-27T02:43:12.896061
2018-03-13T19:50:50
2018-03-13T19:50:50
122,700,721
0
0
null
null
null
null
UTF-8
C++
false
false
242
hpp
AErr.hpp
#define CHECK_PARAM_RET(v, r) \ do { \ if (!(v)) \ { \ return r; \ }\ } while(0);
e9134a4e971fd442ff59a6107b94b96994713a84
d7d413acf5d34456a125f25f877e33b22334e382
/CWindow/ctitlebar.cpp
8c54f5735959a5ac41b6739a2f2351ba7deca7f5
[]
no_license
ToTPeople/testTTT
4098ae906bc432e89ee1cd9e5ac4e455fd8623de
ea9be70e797b005e24796957b7502a4edbdba4ad
refs/heads/master
2020-04-04T22:20:30.859139
2018-11-12T02:18:37
2018-11-12T02:18:37
156,320,371
0
0
null
null
null
null
UTF-8
C++
false
false
2,454
cpp
ctitlebar.cpp
#include "ctitlebar.h" #include <QLabel> #include <QPushButton> #include "common_define.h" #if defined Q_OS_WIN #include "ui_titlebar.h" #else #include "ui_mactitlebar.h" #endif class CTitleBarPrivate { friend CTitleBar; public: CTitleBarPrivate(CTitleBar* parent = NULL); ~CTitleBarPrivate(); public: void init(); public: CTitleBar* m_pTitleBar; public: #if defined Q_OS_WIN Ui::wgtTitleBar m_uiTitleBar; #else Ui::wgtMacTitleBar m_uiTitleBar; #endif QString m_strTitle; }; CTitleBarPrivate::CTitleBarPrivate(CTitleBar* parent /* = NULL */) : m_pTitleBar(parent) { init(); } CTitleBarPrivate::~CTitleBarPrivate() { m_pTitleBar = NULL; } void CTitleBarPrivate::init() { if (NULL == m_pTitleBar) { return; } m_uiTitleBar.setupUi(m_pTitleBar); if (NULL != m_uiTitleBar.btnExit) { QObject::connect(m_uiTitleBar.btnExit, SIGNAL(clicked()) , m_pTitleBar, SIGNAL(sigOnExitBtnClick())); } if (NULL != m_uiTitleBar.btnMin) { QObject::connect(m_uiTitleBar.btnMin, SIGNAL(clicked()) , m_pTitleBar, SIGNAL(sigOnMinimizeBtnClick())); } if (NULL != m_uiTitleBar.btnMax) { QObject::connect(m_uiTitleBar.btnMax, SIGNAL(clicked()) , m_pTitleBar, SIGNAL(sigOnMaximizeBtnClick())); } } CTitleBar::CTitleBar(QWidget* parent /*= NULL*/) : QWidget(parent) , p(*new CTitleBarPrivate(this)) { } CTitleBar::~CTitleBar() { delete &p; } void CTitleBar::setTitle(const QString & strTitle) { p.m_strTitle = strTitle; if (NULL != p.m_uiTitleBar.labelTitle) { p.m_uiTitleBar.labelTitle->setText(QObject::tr(strTitle.toLatin1())); } } QString CTitleBar::getTitle() { if (NULL != p.m_uiTitleBar.labelTitle) { return p.m_uiTitleBar.labelTitle->text(); } return p.m_strTitle; } void CTitleBar::setMaximizeIconVisiable(bool bVisiable) { if (!bVisiable && NULL != p.m_uiTitleBar.btnMax) { p.m_uiTitleBar.btnMax->hide(); } } void CTitleBar::retranslateUi() { p.m_uiTitleBar.retranslateUi(this); if (NULL != p.m_uiTitleBar.labelTitle) { p.m_uiTitleBar.labelTitle->setText(QObject::tr(p.m_strTitle.toLatin1())); } } void CTitleBar::changeEvent(QEvent * event) { if (NULL != event && QEvent::LanguageChange == event->type()) { retranslateUi(); return; } QWidget::changeEvent(event); }
7082d1fa3e4f8b74e54fa75c3669567c96f32acc
9fdeb56b43b4419c0c12a6488c3f2d1bdab629bd
/poo2_2020_1_linked_list/main.cpp
7185d7778adc4ee5a083a3c22b2f2554bb4766fb
[]
no_license
CS1103/sesion-1-unidad-1-linked-list-vostolaza
2f2bf184cf0ea2e977c36a56c083c2cb60190c7d
49c7e63228f019ec522dccdb3654e6141374ea32
refs/heads/master
2022-04-23T21:48:08.470517
2020-04-13T03:53:33
2020-04-13T03:53:33
null
0
0
null
null
null
null
UTF-8
C++
false
false
2,411
cpp
main.cpp
#include <iostream> #include <cassert> #include <string> #include "linked_list.h" using namespace std; int main() { utec::linked_list_t ll; // Probar el metodo push_front for (int i = 0; i < 10; ++i) { ll.push_front(i); } // Verifico el tamano assert(ll.length() == 10); string result; for (int i = 0; i < 10; ++i) { result += to_string(ll.item(i)) + " "; } assert(result == "9 8 7 6 5 4 3 2 1 0 "); // Probar el metodo pop_front for(int i = 0; i < 5; ++i){ ll.pop_front(); } // Verifico el tamano assert(ll.length() == 5); // Probar el metodo pop_front for(int i = 0; i < 5; ++i){ ll.pop_front(); } // Verifico el tamano assert(ll.length() == 0); // Probar el metodo push_back for (int i = 0; i < 10; ++i) { ll.push_back(i); } // Verifico el tamano assert(ll.length() == 10); result = ""; for (int i = 0; i < 10; ++i) { result += to_string(ll.item(i)) + " "; } assert(result == "0 1 2 3 4 5 6 7 8 9 "); // Probar el metodo pop_back for(int i = 0; i < 5; ++i){ ll.pop_back(); } // Verifico el tamano assert(ll.length() == 5); // Probar el metodo insert ll.insert(3, 8); result = ""; for (size_t i = 0; i < ll.length(); ++i) { result += to_string(ll.item(i)) + " "; } assert(result == "0 1 2 8 3 4 "); // Probar el metodo erase ll.erase(3); result = ""; for (size_t i = 0; i < ll.length(); ++i) { result += to_string(ll.item(i)) + " "; } assert(result == "0 1 2 3 4 "); // Probar el operador copy utec::linked_list_t lcopy1; lcopy1 = ll; result = ""; for (size_t i = 0; i < lcopy1.length(); ++i) { result += to_string(lcopy1.item(i)) + " "; } assert(result == "0 1 2 3 4 "); // Probando el constructor copy utec::linked_list_t lcopy2(ll); result = ""; for (size_t i = 0; i < lcopy2.length(); ++i) { result += to_string(lcopy2.item(i)) + " "; } assert(result == "0 1 2 3 4 "); // Probando el constructor move utec::linked_list_t lmove = move(ll); result = ""; for (size_t i = 0; i < lmove.length(); ++i) { result += to_string(lmove.item(i)) + " "; } assert(result == "0 1 2 3 4 "); cout << "Ejecucion Exitosa" << endl; return 0; }
401ab2f37b13317ea9761ff0d7593915b7fa8168
ee418fba4254abe71ba2ce091a6255202b2bd5bf
/Task_4_cpu/cpp/disassembler/disassembler.cpp
39584425710d12d8322495ca40c7e3322801d0d8
[]
no_license
GreenKaban/TrackMail
3c2f842d045bd5c51b52f1e57309cc9d104e2004
e802102b610334a8945fd4447b48ae65c60a4b97
refs/heads/master
2023-02-13T12:04:05.974428
2021-01-13T18:50:32
2021-01-13T18:50:32
297,389,528
0
0
null
null
null
null
UTF-8
C++
false
false
1,167
cpp
disassembler.cpp
#include "disassembler.h" /** * @file from Tack_4_cpu * * * @author Igor Kochetkov, DCAM MIPT (System Programming Base Chair) Student * * @date 11/21/2020 */ Program* disassemble(FILE* input) { Program* program = new Program(); for (int inp = fgetc(input); inp != EOF; inp = fgetc(input)) { CommandType c = (CommandType)inp; Statement* statement = new Statement(nullptr, (CommandType)c); for (uint i = 0; i < Parser::get_arguments_number(c); ++i) { inp = fgetc(input); assert(inp != EOF); Argument* argument = new Argument(nullptr, (char)inp); statement->arguments.push_back(argument); } program->statements.push_back(statement); } return program; } void write_source(Program* program, FILE* output) { for (Statement* statement : program->statements) { string command_name = get_command_type_name(statement->command_type); fprintf(output, "%s ", command_name.c_str()); for (Argument* argument : statement->arguments) fprintf(output, "%d ", argument->value); fprintf(output, "\n"); } }
3a4d78445c939f067bf11ee8571310b2aa430bd1
4e85664182c2b6a6ec4ca764d24487b3cd0b2fcf
/mainwindow.cpp
078d5930f1c540f7ebff13c7a9285d887dd898ff
[]
no_license
Sheryorov/triangulation
3d5a66440764b2a91397df8c94c7481a70b942da
2c8742f0a479288d1fb8ab4240186e4464b8c5ec
refs/heads/master
2021-01-20T08:46:17.931660
2017-08-27T18:59:20
2017-08-27T18:59:20
101,571,799
0
0
null
null
null
null
UTF-8
C++
false
false
3,474
cpp
mainwindow.cpp
#include <cmath> #include "mainwindow.h" #include "ui_mainwindow.h" #include "drawarea.h" #include <QFileDialog> #include "triFunc.h" #include "scala.h" MainWindow* mainWindow = 0; DrawArea* drawArea = 0; static double f(const R2Point&); static double f(const R2Point& p) { double r = R2Point(0., 0.).distance(p); return 2.*cos(4.*r)/(1. + 0.2*r*r); } static double f3D(const R3Point&); static double f3D(const R3Point& p) { // double R = R3Point(0., 0., 0.).distance(p); // return R - 3.; // return (p.x*p.y - p.z); R2Point q(p.x, p.y); double r = R2Point(0., 0.).distance(q); return 2.*cos(4.*r)/(1. + 0.2*r*r) - p.z; } MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent), triangulationPath(), xMin(-8.), xMax(8.), yMin(-8.), yMax(8.), zMin(-8.), zMax(8.), ui(new Ui::MainWindow) { mainWindow = this; ui->setupUi(this); QString tmp; ui->xMin->setText(tmp.sprintf("%.2f", xMin)); ui->xMax->setText(tmp.sprintf("%.2f", xMax)); ui->yMin->setText(tmp.sprintf("%.2f", yMin)); ui->yMax->setText(tmp.sprintf("%.2f", yMax)); ui->zMin->setText(tmp.sprintf("%.2f", zMin)); ui->zMax->setText(tmp.sprintf("%.2f", zMax)); } MainWindow::~MainWindow() { delete ui; } void MainWindow::on_path_returnPressed() { triangulationPath = ui->path->text(); on_loadButton_clicked(); } void MainWindow::on_browseButton_clicked() { QFileDialog openFileDlg; QString fileName = QFileDialog::getOpenFileName( this, QString("Triangulation File") ); if (fileName == QString()) return; ui->path->setText(fileName); //... on_loadButton_clicked(); } void MainWindow::on_loadButton_clicked() { triangulationPath = ui->path->text(); drawArea->triangulation.load( triangulationPath.toStdString().c_str() ); drawArea->update(); } void MainWindow::on_plot2DButton_clicked() { setCoordinates(); plot3DFunction( &f, R2Rectangle( R2Point(xMin, yMin), xMax - xMin, yMax - yMin ), 128, 128, drawArea->triangulation ); drawArea->update(); } void MainWindow::on_saveButton_clicked() { triangulationPath = ui->path->text(); if (triangulationPath == "") return; drawArea->triangulation.save( triangulationPath.toStdString().c_str() ); } void MainWindow::on_plot3DButton_clicked() { setCursor(QCursor(Qt::WaitCursor)); setCoordinates(); double ymin = xMin; double ymax = xMax; double zmin = xMin; double zmax = xMax; scalaMethod( &f3D, R3Box( R3Point(xMin, ymin, zmin), R3Vector( xMax-xMin, ymax-ymin, zmax-zmin ) ), 64, 64, 64, drawArea->triangulation ); setCursor(QCursor(Qt::ArrowCursor)); drawArea->update(); } void MainWindow::on_redrawButton_clicked() { setCoordinates(); drawArea->update(); } void MainWindow::setCoordinates() { xMin = ui->xMin->text().toDouble(); xMax = ui->xMax->text().toDouble(); yMin = ui->yMin->text().toDouble(); yMax = ui->yMax->text().toDouble(); zMin = ui->zMin->text().toDouble(); zMax = ui->zMax->text().toDouble(); double dx = fabs(xMax - xMin)*1.2; double xCenter = (xMax + xMin)/2.; drawArea->xmin = xCenter - dx/2.; drawArea->xmax = xCenter + dx/2.; drawArea->onResizeGL(); }
af40c1d7fe7f953725eaf0a622c5f8a74009a5a5
72fadcf513ee5120f6fbefa777732e1506d9b1cd
/ObserverExample/subject.h
69b4b0b4f27130cb8b72bcf880e96836f7bd2ab4
[]
no_license
Youlina3/ObserverExample
ff22f08bf830f23f912172692c0790d2291e38ed
a7bc42e279c21c5e00086fdb2fe2c5d79c1cd0f2
refs/heads/master
2021-04-03T01:33:48.079717
2016-10-17T21:04:50
2016-10-17T21:04:50
null
0
0
null
null
null
null
UTF-8
C++
false
false
416
h
subject.h
#ifndef SUBJECT_H #define SUBJECT_H #include <QMultiHash> class IObserver; class QString; class Subject { public: virtual ~Subject(){} virtual void notify(QString category=""); void attach(IObserver *observer, QString category=""); void dettach(IObserver *observer, QString category=""); protected: Subject(); private: QMultiHash<QString, IObserver *> m_observers; }; #endif // SUBJECT_H
56d9152a06c7b807860493ed3ec411752c120ab9
04f52c481c7d6eb1b4156b296fe5d81ddccfb161
/utils/xml/elxmlparse.h
213f8b1e5e9efc9ef40c52d8ce82bfa45c7ca149
[]
no_license
starand/cpp_fw
39c9d78439602b43498310e86f8bf704b4feceb2
5d2ebfe7dc3aef61558ed9f6f49293746499492c
refs/heads/master
2021-01-11T23:59:05.013523
2017-02-20T09:36:05
2017-02-20T09:36:05
78,653,984
0
0
null
null
null
null
UTF-8
C++
false
false
6,430
h
elxmlparse.h
#ifndef _ELXMLPARSE_ #define _ELXMLPARSE_ class XMLDOM_Document; class XMLDOM_Node; class XMLDOM_Element; enum ParseResult { RESULT_CLOSE_TAG = -2, RESULT_OUT_OF_DATA = -2, // same meaning as RESULT_CLOSE_TAG RESULT_SKIPPED = -1, RESULT_OK = 0, RESULT_ONLY_ONE_ROOT_ELEMENT_ALLOWED, RESULT_INVALID_NODE, RESULT_CLOSE_TAG_WO_START_TAG, RESULT_START_TAG_WO_CLOSE_TAG, RESULT_ERROR_PARSING_ATTRS, RESULT_ERROR_PARSING_TAG_HEADER, RESULT_TAG_NAME_INVALID, RESULT_DOC_DEFINITON_EXPECTED, RESULT_SPECIFIED_ATTRIBUTE_UNEXPECTED_AT_POS, RESULT_INVALID_SYNTAX_FOR_XML_DECL, RESULT_TOP_LEVEL_ELEMENT_REQUIRED, RESULT_SEMICOLON_EXPECTED, RESULT_UNEXPECTED_END_OF_FILE, RESULT_WHITESPACE_NOT_ALLOWED_AT_POS, RESULT_E_NO_IMPL, RESULT_WHITESPACE_EXPECTED_AT_POS, RESULT_CDATA_SECTION_WAS_NOT_CLOSED, RESULT_COMMENT_WAS_NOT_CLOSED, RESULT_INVALID_STRING, RESULT_TAG_WAS_NOT_CLOSED, RESULT_INTERNAL_ERROR, RESULT_NOT_SUPPORTED_CHARSET }; class CXMLParserStringCache { public: void TranslateString(const char *szBegin, const char *szEnd, string &sResult); private: // string m_asCache[0x256]; string m_asCache[256]; }; class CXMLParser { public: CXMLParser(); ~CXMLParser(); int ParseDocument(const string &sXMLText, void *fpFilter, void *pvContext, XMLDOM_Document *pdDocument); int StringToNode(const string &sXMLText, XMLDOM_Document *pdDocument, XMLDOM_Node *&pnNode); const char *ExplainLastError() { return ExplainError(GetLastError(), m_chMessageBuffer, GetErrorPos()); } int GetLastError() const { return m_iParseResult; } unsigned int GetErrorPos() const { return m_iParseResult != RESULT_OK ? m_uErrorPosition : (unsigned int)0 - (unsigned int)1; } private: struct CParseContext { CParseContext(XMLDOM_Document *pdDocument, void *fpFilter, void *pvContext, unsigned int nLevel): m_pdDocument(pdDocument), m_fpFilter(fpFilter), m_pvContext(pvContext), m_nLevel(nLevel) {} XMLDOM_Document *m_pdDocument; void *m_fpFilter; void *m_pvContext; unsigned int m_nLevel; }; int InternalParseDocument(const char *szBegin, const char *szEnd, const char *&szResult, CParseContext &pcContext); int ParseDocDefinition(const char *szBegin, const char *szEnd, const char *&szResult, CParseContext &pcContext); int RecognizeAndBuildNode(const char *szBegin, const char *szEnd, bool bSkipped, const char *&szResult, CParseContext &pcContext, XMLDOM_Node *&pnOutNode); int BuildElement(const char *szBegin, const char *szEnd, bool bSkipped, const char *&szResult, CParseContext &pcContext, XMLDOM_Element *&peOutElement); int ParseTagHeader(const char *szBegin, const char *szEnd, bool bSkipped, const char *&szResult, string &sTagName, string &sTagNamespace, vector<string> &vsAttrNames, vector<string> &vsAttrValues, bool &bIsEmpty); int ParseCloseTagHeader(const char *szBegin, const char *szEnd, bool bSkipped, const char *&szResult, string &sTagName, string &sTagNamespace); int ParseTagHeaderName(const char *szBegin, const char *szEnd, bool bSkipped, const char *&szResult, string &sTagName, string &sTagNamespace); int ParseTagHeaderAttributes(const char *szBegin, const char *szEnd, bool bSkipped, const char *&szResult, vector<string> &vsAttrNames, vector<string> &vsAttrValues); int ParseAttribute(const char *szBegin, const char *szEnd, bool bSkipped, const char *&szResult, string &sAttrName, string &sAttrValue); static int ParseComment(const char *szBegin, const char *szEnd, bool bSkipped, const char *&szResult, string &sData); static int ParseCDATASection(const char *szBegin, const char *szEnd, bool bSkipped, const char *&szResult, string &sData); static int ParseTextFragment(const char *szBegin, const char *szEnd, bool bSkipped, const char *&szResult, string &sData); static int ConvertSymbolFromSpec(const char *szBegin, const char *szEnd, const char *&szResult, char &chConverted); protected: static void StripSpaces(const char *szBegin, const char *szEnd, const char *&szNewBegin); protected: static bool IsStartOfDocDefinition(const char *szBegin, const char *szEnd, const char *&szNewBegin); static bool IsEndOfDocDefinition (const char *szBegin, const char *szEnd, const char *&szNewBegin); static bool IsLT(const char *szBegin, const char *szEnd, const char *&szNewBegin); static bool IsGT(const char *szBegin, const char *szEnd, const char *&szNewBegin); static bool IsCloseTag(const char *szBegin, const char *szEnd, const char *&szNewBegin); static bool IsEmptyTagGT(const char *szBegin, const char *szEnd, const char *&szNewBegin); static bool IsAmpLt(const char *szBegin, const char *szEnd, const char *&szNewBegin); static bool IsAmpGt(const char *szBegin, const char *szEnd, const char *&szNewBegin); static bool IsAmpAmp(const char *szBegin, const char *szEnd, const char *&szNewBegin); static bool IsAmpApos(const char *szBegin, const char *szEnd, const char *&szNewBegin); static bool IsAmpQuot(const char *szBegin, const char *szEnd, const char *&szNewBegin); static bool IsStartOfComment(const char *szBegin, const char *szEnd, const char *&szNewBegin); static bool SeekEndOfComment(const char *szBegin, const char *szEnd, const char *&szCommentEnd, const char *&szNewBegin); static bool IsStartOfCDATASection(const char *szBegin, const char *szEnd, const char *&szNewBegin); static bool SeekEndOfCDATASection(const char *szBegin, const char *szEnd, const char *&szCDATAEnd, const char *&szNewBegin); static bool IsTextFragment(const char *szBegin, const char *szEnd); protected: static inline bool IsValidXMLNameFirtsChar(char ch); static inline bool IsValidXMLNameChar(char ch); static inline bool IsTextTerminator(char ch); static inline bool IsAmpPrefix(char ch); static inline bool IsAmpASCIIPrefix(char ch); static inline bool IsAmpASCIIHexPrefix(char ch); static inline bool IsAmpTerminator(char ch); static inline bool IsQuote(char ch); static inline bool IsAttrValueDelimiter(char ch); static inline bool IsSpace(unsigned char ch); protected: static const char *ExplainError(int iParseResult, char *chMessageBuffer, unsigned int uErrorPosition); private: CXMLParserStringCache m_scStringCache; unsigned int m_uErrorPosition; int m_iParseResult; char m_chMessageBuffer[200]; private: static const char m_chCharacterKinds[0x100]; }; int ConvertStringToSpec (const string &strFrom, string &strTo, EncodingCharset nCharset); #endif // _ELXMLPARSE_
a7c8f6f4588a117dcf60dda3e4b417a3a228f07e
a5aaa2cf1a4f31662a9f25bdb065882189ce1b4e
/shiftreg2shift/shiftreg2shift.ino
93bf32201705e003177e6d53f974edd4a607f6ce
[]
no_license
snersnasskve/Arduino
ee56836d142a9d83ac56c127618298c958d53f1f
21c46ef2381e99e611b5be2eed78ee39c1e4d854
refs/heads/master
2021-01-17T11:32:21.136164
2018-02-25T06:29:10
2018-02-25T06:29:10
84,039,170
0
0
null
null
null
null
UTF-8
C++
false
false
3,868
ino
shiftreg2shift.ino
int DS_pin = 8; // leg 14 on the chip int STCP_pin = 9; // leg 12 on the chip = RCLK = LATCH int SHCP_pin = 10; // leg 11 on the chip = SRCLK = CLOCK /* * Other wiring * * leg 10 = Master Rest = must be pulled HIGH * to make sure you don't clear the register * - join it to + * leg 13 = Output Enable = * inverted pin meaning low is enabled, high is not enabled * - join it to - */ /* * 16 = VCC * 14 = Data Line = DATA_PIN * 13 = Output Enable = BLANK = when this is low, then all outputs are enabled * 12 = RCLK = Shift Register Clock = LATCH_PIN * 11 = SRCLK = Storage Register Clock = CLOCK_PIN * 10 = SRCLR = Serial Clear = when this is high then will not clear = when low it clears = CLEAR * 15 and 9 are used for joining up multiple shift registers together * 9 of this register (out) should link to 15 of the second shift register (in) * all other pins above are joined to their matching pins on the second register * */ byte one = 0b11111001; byte two = 0b10100100; byte three = 0b10110000; byte four = 0b10011001; byte five = 0b10010010; byte six = 0b10000010; byte seven = 0b11111000; byte eight = 0b10000000; byte nine = 0b10010000; byte zero = 0b11000000; byte test = 0b10000000; byte empty = 0b00000000; byte numbers[] = {zero,one,two,three,four,five,six,seven,eight,nine}; byte led0 = 0b00000000; byte led1 = 0b00000001; byte led2 = 0b00000011; byte led3 = 0b00000111; byte led4 = 0b00001111; byte led5 = 0b00011111; byte led6 = 0b00111111; byte led7 = 0b01111111; byte led8 = 0b11111111; byte leds[] = {led0,led1,led2,led3,led4,led5,led6,led7,led8,led8}; // Number of digits attached int const numberOfRegisters = 2; byte data; byte dataBuffer[numberOfRegisters]; void shiftOut(int myDataPin, int myClockPin, byte myDataOut); void writeBuffer(); void addToBuffer(int digit); void setup() { // put your setup code here, to run once: pinMode(DS_pin, OUTPUT); pinMode(STCP_pin, OUTPUT); pinMode(SHCP_pin, OUTPUT); //writereg(); addToBuffer(0); } void loop() { for (int i = 0 ; i < 10 ; i++) { addToBuffer(i); delay(500); } } void writeBuffer(){ digitalWrite(STCP_pin, 0); for (int a = sizeof(dataBuffer) - 1; a >= 0 ; a--) { shiftOut(DS_pin, SHCP_pin, dataBuffer[a]); } digitalWrite(STCP_pin, 1); } void addToBuffer(int digit){ // clear buffer memset(dataBuffer, 0, sizeof(dataBuffer)* numberOfRegisters); int c = 0; byte b = numbers [digit % 10]; byte l = leds [digit % 10]; dataBuffer[0] = b; dataBuffer[1] = l; writeBuffer(); } void shiftOut(int myDataPin, int myClockPin, byte myDataOut) { // This shifts 8 bits out MSB first, //on the rising edge of the clock, //clock idles low //internal function setup int i=0; int pinState; pinMode(myClockPin, OUTPUT); pinMode(myDataPin, OUTPUT); //clear everything out just in case to //prepare shift register for bit shifting digitalWrite(myDataPin, 0); digitalWrite(myClockPin, 0); //for each bit in the byte myDataOut� //NOTICE THAT WE ARE COUNTING DOWN in our for loop //This means that %00000001 or "1" will go through such //that it will be pin Q0 that lights. for (i=0; i<=7; i++) { digitalWrite(myClockPin, 0); //if the value passed to myDataOut and a bitmask result // true then... so if we are at i=6 and our value is // %11010100 it would the code compares it to %01000000 // and proceeds to set pinState to 1. if ( myDataOut & (1<<i) ) { pinState= 1; } else { pinState= 0; } //Sets the pin to HIGH or LOW depending on pinState digitalWrite(myDataPin, pinState); //register shifts bits on upstroke of clock pin digitalWrite(myClockPin, 1); //zero the data pin after shift to prevent bleed through digitalWrite(myDataPin, 0); } }
4f793948b0a16d1bdf9c1903b694f4572663d11a
3ce84c6401e12cf955a04e3692ce98dc15fa55da
/utils/filters/graph/compoundBlockPresentation.cpp
43fb99c6dda59295f310b75e534953a38721f42f
[]
no_license
PimenovAlexander/corecvs
b3470cac2c1853d3237daafc46769c15223020c9
67a92793aa819e6931f0c46e8e9167cf6f322244
refs/heads/master_cmake
2021-10-09T10:12:37.980459
2021-09-28T23:19:31
2021-09-28T23:19:31
13,349,418
15
68
null
2021-08-24T18:38:04
2013-10-05T17:35:48
C++
UTF-8
C++
false
false
41
cpp
compoundBlockPresentation.cpp
#include "compoundBlockPresentation.h"
b16916ec34009e447b685eb2520bd1730afd2b8f
35cd2ebae1a8d323e23d1116c58ae812fd4f4a7c
/Hashing - Tries Challenges/arraysIntersection.cpp
5ad050934b03079bce57331b67c9da7b429f06c0
[]
no_license
Excalibur79/Interview-Competitive-Cpp
b3243ba58a787e355a2ff5c4ef3d04b234dff946
2bf9ab2263e7533f7507e58cad985ffa2401e07b
refs/heads/main
2023-06-27T06:18:43.746920
2021-07-27T16:34:27
2021-07-27T16:34:27
390,248,921
11
0
null
2021-07-28T07:02:36
2021-07-28T07:02:36
null
UTF-8
C++
false
false
779
cpp
arraysIntersection.cpp
#include <iostream> #include <unordered_map> #include <vector> #include <algorithm> using namespace std; int main() { unordered_map<int, int> freq; int n; cin >> n; int temp; for (int i = 0; i < n; i++) { cin >> temp; freq[temp]++; } vector<int> ans; for (int i = 0; i < n; i++) { cin >> temp; if (freq.find(temp) != freq.end() && freq[temp] > 0) { freq[temp]--; //Decrement frequency to ensure it is not repeated ans.push_back(temp); } } sort(ans.begin(), ans.end()); cout << "["; for (int i = 0; i < ans.size(); i++) { cout << ans[i]; if (i < ans.size() - 1) cout << ", "; } cout << "]"; return 0; }
f07af1a115cb53b6fb08f2f44308261dac40472d
f0b4ce0ba6972301435f182a6d4c02987ee17ab3
/canAttendMeetings.cc
3d1e18fa1a1c9d94331bca54bb4654f64e816a47
[]
no_license
gs0622/leetcode
b64bf1ac8d52ea473cac98b057a5edd1c8ff3591
ef9388f875c375f6f3cd290b04e457b416d860dc
refs/heads/master
2021-06-02T00:54:32.332803
2020-05-19T01:13:51
2020-05-19T01:13:51
20,798,407
0
0
null
null
null
null
UTF-8
C++
false
false
375
cc
canAttendMeetings.cc
#include <bits/stdc++.h> using namespace std; class Solution { public: bool canAttendMeetings(vector<vector<int>>& A) { int n=A.size(); for (int i=1;i<n;++i) { if (A[i][0]<A[i-1][1]) return false; } return true; } }; int main() { Solution s; vector<vector<int>> A1{{0, 30},{5, 10},{15, 20}}; cout << s.canAttendMeetings(A1) << endl; }
7d016a76809a602769d3502b83e0a671f4968128
110f7675a54f60b8bb3b994421a9ae35b0a78712
/include/segments.h
6ad62a61ab593b548d852ccb8dd489308720b3d9
[]
no_license
barbashov/iesmed
5c746b00d4f3bb17e97669a9ee06fb943e3e93f7
bab865ffdd2de8c1252aecbda1c66275a2a77aa3
refs/heads/master
2021-01-22T10:57:15.923242
2017-05-28T14:45:31
2017-05-28T14:45:31
92,666,642
0
0
null
null
null
null
UTF-8
C++
false
false
3,459
h
segments.h
#ifndef __SEGMENTS_H_ #define __SEGMENTS_H_ #include <cstdlib> #include <cstring> #include <cerrno> #define DEFAULT_DATA_SIZE 4 #define DEFAULT_SEGMENTS_COUNT 4 #define DEFAULT_SEGREFS_SIZE DEFAULT_SEGMENTS_COUNT #define DEFAULT_DATAREFS_SIZE 128 #define DEFAULT_SEGMENT_LEN 255 class segments_t { private: class segments_atom_t { private: typedef struct _cstring_t { char* text; size_t length; size_t size; } cstring_t; public: segments_atom_t() : data_size(DEFAULT_DATA_SIZE), data_count(0) { size_t i; data = (cstring_t*)malloc( sizeof(cstring_t) * data_size ); for ( i = 0; i < data_size; i++ ) { data[i].text = 0x00; data[i].size = \ data[i].length \ = 0x00; } } ~segments_atom_t() { size_t i; for ( i = 0; i < data_size; i++ ) { if ( data[i].size ) free( data[i].text ); } free( data ); } void push( const size_t _segnum, const char* _data ) { if ( data_size < _segnum + 1 ) { size_t i, old_data_size(data_size); data_size = _segnum * 2; data = (cstring_t*)realloc( (void*)data, sizeof(cstring_t) * data_size ); for ( i = old_data_size; i < data_size; i++ ) { data[i].text = 0x00; data[i].size = \ data[i].length \ = 0x00; } } if ( !data[_segnum].size ) { data[_segnum].size = DEFAULT_SEGMENT_LEN; data[_segnum].text = (char*)malloc( data[_segnum].size ); } size_t i; for ( i = 0; _data[i]; i++ ) { if ( data[_segnum].size < i + 1 ) { data[_segnum].size = i * 2 + 2; data[_segnum].text = (char*)realloc( (void*)data[_segnum].text, data[_segnum].size ); } data[_segnum].text[i] = _data[i]; data[_segnum].length = i; } data[_segnum].text[++data[_segnum].length] = 0x00; data_count++; } size_t pop( char* _buffer ) { size_t i, ii, retval(0); for ( i = 0; i < data_size; i++ ) { if ( data[i].length ) { for ( ii = 0; ii < data[i].length; ii++ ) _buffer[retval++] = data[i].text[ii]; data[i].length = 0; } } _buffer[retval] = 0x00; data_count = 0; return retval; } size_t getreslen() { size_t i, retval(0); for ( i = 0; i < data_size; i++ ) { retval += data[i].length; } return( retval ); } size_t getsegcnt() { return data_count; } private: cstring_t* data; size_t data_size; size_t data_count; }; public: segments_t() : data_size(DEFAULT_DATA_SIZE) { size_t i; data = (segments_atom_t**)malloc( sizeof(segments_atom_t*) * data_size ); for ( i = 0; i < data_size; i++ ) { data[i] = NULL; } } ~segments_t() { size_t i; for ( i = 0; i < data_size; i++ ) { if ( data[i] ) delete data[i]; } free(data); } void push( const size_t _ref, const size_t _seg, const char* _data ) { if ( data_size < _ref ) { size_t i, old_data_size(data_size); data_size = _ref * 2; data = (segments_atom_t**)realloc( (void*)data, sizeof(segments_atom_t*) * data_size ); for ( i = old_data_size; i < data_size; i++ ) { data[i] = NULL; } } if ( !data[_ref] ) { data[_ref] = new segments_atom_t(); } data[_ref]->push( _seg, _data ); } size_t pop( const size_t _ref, char* _buffer ) { return data[_ref]->pop( _buffer ); } size_t getreslen( const size_t _ref ) { return data[_ref]->getreslen(); } size_t getsegcnt( const size_t _ref ) { return data[_ref]->getsegcnt(); } private: segments_atom_t** data; size_t data_size; }; #endif
7d79f5d724ebd5e2377ba6d420879373a91d16e2
6d157b3426dceb8e2243f65fd56a4907d62bd30d
/unity/builds/Il2CppOutputProject/Source/il2cppOutput/Il2CppCCWs57.cpp
afdbaf9ba32d27bea1ba0b3e1947f97e471968e9
[ "MIT" ]
permissive
leeenglestone/mrtk
49a373c9bbfb62d2c786fc7cee7319cdd2f8bbce
e9c81815e5cdfba3315bb72f16400a80383a3b63
refs/heads/main
2023-03-31T23:16:47.734283
2021-04-01T21:11:50
2021-04-01T21:11:50
352,925,109
0
0
null
null
null
null
UTF-8
C++
false
false
402,505
cpp
Il2CppCCWs57.cpp
#include "pch-cpp.hpp" #ifndef _MSC_VER # include <alloca.h> #else # include <malloc.h> #endif #include <stdint.h> #include <limits> #include "vm/CachedCCWBase.h" #include "utils/New.h" template <typename R> struct VirtFuncInvoker0 { typedef R (*Func)(void*, const RuntimeMethod*); static inline R Invoke (Il2CppMethodSlot slot, RuntimeObject* obj) { const VirtualInvokeData& invokeData = il2cpp_codegen_get_virtual_invoke_data(slot, obj); return ((Func)invokeData.methodPtr)(obj, invokeData.method); } }; // System.Action`1<System.Object> struct Action_1_tD9663D9715FAA4E62035CFCF1AD4D094EE7872DC; // System.Collections.Generic.Dictionary`2<System.Action`1<System.Boolean>,System.Collections.Generic.LinkedListNode`1<System.Action`1<System.Boolean>>> struct Dictionary_2_tC52CF8E0B6B02C46BE4D964655C8CBA6D912261D; // System.Collections.Generic.Dictionary`2<System.Action`1<UnityEngine.Object>,System.Collections.Generic.LinkedListNode`1<System.Action`1<UnityEngine.Object>>> struct Dictionary_2_tAE310F3B56E5D9DE3F7087A58ABE9DDF2313760D; // System.Collections.Generic.Dictionary`2<System.Action`2<System.Boolean,UnityEngine.Material>,System.Collections.Generic.LinkedListNode`1<System.Action`2<System.Boolean,UnityEngine.Material>>> struct Dictionary_2_t3B50E1A2BF138242FA769CB75227E103D2228E53; // System.Collections.Generic.Dictionary`2<System.Action`2<System.Boolean,UnityEngine.Object>,System.Collections.Generic.LinkedListNode`1<System.Action`2<System.Boolean,UnityEngine.Object>>> struct Dictionary_2_t5314BF1AA5AE5CE3F12D361ADBB786604ACE461A; // System.Collections.Generic.Dictionary`2<System.Action`2<System.Object,TMPro.Compute_DT_EventArgs>,System.Collections.Generic.LinkedListNode`1<System.Action`2<System.Object,TMPro.Compute_DT_EventArgs>>> struct Dictionary_2_t84F10A8BBA436514F6F5006CD9164F0BBD331476; // System.Collections.Generic.Dictionary`2<System.Action`3<UnityEngine.GameObject,UnityEngine.Material,UnityEngine.Material>,System.Collections.Generic.LinkedListNode`1<System.Action`3<UnityEngine.GameObject,UnityEngine.Material,UnityEngine.Material>>> struct Dictionary_2_t4E870B686DD849612FE4EC9C8170EA18B500D353; // System.Collections.Generic.Dictionary`2<System.Tuple`2<UnityEngine.Collider,UnityEngine.Camera>,System.Boolean> struct Dictionary_2_t98787E41AC6299167C788E23E552FA2A203C30FE; // System.Collections.Generic.Dictionary`2<System.Tuple`2<Microsoft.MixedReality.Toolkit.Input.KeyBinding/KeyType,System.Int32>,System.Int32> struct Dictionary_2_tFFC67FD84A1EF3C8AAA815D90FAA4FBEF1F44264; // System.Collections.Generic.Dictionary`2<System.Action,System.Collections.Generic.LinkedListNode`1<System.Action>> struct Dictionary_2_t050A987FF3F83046609B91544CA99C3F44CA394E; // System.Collections.Generic.Dictionary`2<Microsoft.MixedReality.Toolkit.Audio.AudioLoFiSourceQuality,Microsoft.MixedReality.Toolkit.Audio.AudioLoFiEffect/AudioLoFiFilterSettings> struct Dictionary_2_t50F9D98C136FA591210ECEA4F361FBF2E96884FF; // System.Collections.Generic.Dictionary`2<UnityEngine.Canvas,UnityEngine.UI.Collections.IndexedSet`1<UnityEngine.UI.Graphic>> struct Dictionary_2_t79A0FFC8A9EA909E2397C10AFBD9F64EC0154963; // System.Collections.Generic.Dictionary`2<UnityEngine.Font,System.Collections.Generic.HashSet`1<UnityEngine.UI.Text>> struct Dictionary_2_t4F42AAD6C75C36A4A9D4B0CD537DAF5D5F503079; // System.Collections.Generic.Dictionary`2<UnityEngine.GameObject,System.Int32> struct Dictionary_2_t4C2FB1CAF9188DADBB3D9EC66581072D16870B9B; // System.Collections.Generic.Dictionary`2<UnityEngine.UI.Graphic,System.Int32> struct Dictionary_2_t51811C4D09EBB297C0DFE9FA972CEB160E185E11; // System.Collections.Generic.Dictionary`2<Microsoft.MixedReality.Toolkit.Utilities.Handedness,Microsoft.MixedReality.Toolkit.Input.BaseController> struct Dictionary_2_t9054E991F47F7865DE780AFF580C391F6BD4CF0A; // System.Collections.Generic.Dictionary`2<Microsoft.MixedReality.Toolkit.Utilities.Handedness,UnityEngine.Bounds> struct Dictionary_2_t0265B6A2493CAAC3C1DA90D29F0EF7835A616C6F; // System.Collections.Generic.Dictionary`2<Microsoft.MixedReality.Toolkit.Utilities.Handedness,UnityEngine.Matrix4x4> struct Dictionary_2_tEE37FDDA6121B97A6381633A5BAE7CD3FF14BDF9; // System.Collections.Generic.Dictionary`2<System.Threading.IAsyncLocal,System.Object> struct Dictionary_2_tED8EC0DF62452D89154D9584AC19F62C79BF3938; // System.Collections.Generic.Dictionary`2<UnityEngine.UI.ICanvasElement,System.Int32> struct Dictionary_2_t059F96DADCC8B901973F95056D8107AB675AEE96; // System.Collections.Generic.Dictionary`2<UnityEngine.UI.IClipper,System.Int32> struct Dictionary_2_tE0026BDD5CB0F84F7271F011A4C20757945DE83F; // System.Collections.Generic.Dictionary`2<Microsoft.MixedReality.Toolkit.Input.IMixedRealityController,UnityEngine.Vector3> struct Dictionary_2_t82EFBA5BED7334BA275A9DC2B6853A1FF1E144DF; // System.Collections.Generic.Dictionary`2<System.Int32,System.Threading.Tasks.Task> struct Dictionary_2_tB758E2A2593CD827EFC041BE1F1BB4B68DE1C3E8; // System.Func`1<System.Byte[]> struct Func_1_tD8059ADEA67BC54CB9CB92E8719A3A6BE8473473; // System.Func`1<System.String> struct Func_1_t2F3325DADD1F420568A48646BFC825E9F29472B1; // System.Func`1<System.Threading.Tasks.Task/ContingentProperties> struct Func_1_tBCF42601FA307876E83080BE4204110820F8BF3B; // System.Func`2<System.Threading.Tasks.Task`1<System.Threading.Tasks.Task>,System.Threading.Tasks.Task`1<Microsoft.MixedReality.Toolkit.Input.InputAnimation>> struct Func_2_t60234BEFF912B17E5B854081B3E154E746B06B84; // System.Func`2<System.Threading.Tasks.Task`1<System.Threading.Tasks.Task>,System.Threading.Tasks.Task`1<Microsoft.MixedReality.Toolkit.WindowsDevicePortal.InstalledApps>> struct Func_2_tC4A170AAA7F61A680B871561DA2C27CF26EE84FB; // System.Func`2<System.Threading.Tasks.Task`1<System.Threading.Tasks.Task>,System.Threading.Tasks.Task`1<System.Int32>> struct Func_2_t53CFE8804C8D1C2FE8CC9204CF5DA5B98EC444D0; // System.Func`2<System.Threading.Tasks.Task`1<System.Threading.Tasks.Task>,System.Threading.Tasks.Task`1<Microsoft.MixedReality.Toolkit.WindowsDevicePortal.IpConfigInfo>> struct Func_2_t81B0EB7AEB14907FB2E7FD1A278C128EE21FABC9; // System.Func`2<System.Threading.Tasks.Task`1<System.Threading.Tasks.Task>,System.Threading.Tasks.Task`1<Microsoft.MixedReality.Toolkit.WindowsDevicePortal.MachineName>> struct Func_2_t7B7F45362C6B9598BACB042B2B17A7CCA6EF06A1; // System.Func`2<System.Threading.Tasks.Task`1<System.Threading.Tasks.Task>,System.Threading.Tasks.Task`1<Microsoft.MixedReality.Toolkit.WindowsDevicePortal.NetworkInterfaces>> struct Func_2_t9BD3EA37C16E98E7E941124B6925734343848907; // System.Func`2<System.Threading.Tasks.Task`1<System.Threading.Tasks.Task>,System.Threading.Tasks.Task`1<Microsoft.MixedReality.Toolkit.WindowsDevicePortal.PowerStateInfo>> struct Func_2_tC1059740D81C8E52C892D4D4B582CD907BFCF115; // System.Func`2<System.Threading.Tasks.Task`1<System.Threading.Tasks.Task>,System.Threading.Tasks.Task`1<Microsoft.MixedReality.Toolkit.Utilities.Response>> struct Func_2_tA28793C0F1CFA815FBEB2737D5323EC4C30F3FA5; // System.Func`2<System.Threading.Tasks.Task`1<System.Threading.Tasks.Task>,System.Threading.Tasks.Task`1<System.String>> struct Func_2_tC39B0B05F6B9D37E14D29C14F1C4BCEAE6381FAC; // System.Func`2<System.Threading.Tasks.Task`1<System.Threading.Tasks.Task>,System.Threading.Tasks.Task`1<System.Threading.Tasks.VoidTaskResult>> struct Func_2_t99C75F5817AC4490145734D823B7E8ED9A840728; // System.Func`2<System.Threading.Tasks.Task`1<System.Threading.Tasks.Task>,System.Threading.Tasks.Task`1<UnityEngine.XR.WindowsMR.XRAnchorStore>> struct Func_2_tD9B806E5F1C0FCD873A5181765B6D53CF2182D02; // System.Func`2<System.Threading.Tasks.Task`1<System.Threading.Tasks.Task>,System.Threading.Tasks.Task`1<Microsoft.MixedReality.Toolkit.WindowsDevicePortal.DevicePortal/AppInstallStatus>> struct Func_2_tCD518C9A09B91745C1C5919DE581A7EE8ECADDFF; // System.Collections.Generic.ICollection`1<System.Collections.Generic.HashSet`1<UnityEngine.UI.Text>> struct ICollection_1_t84046D579DC45F64F3B24A525752E4529405C1AA; // System.Collections.Generic.ICollection`1<UnityEngine.UI.Collections.IndexedSet`1<UnityEngine.UI.Graphic>> struct ICollection_1_t40647947AF8A529A0F63807328ADB2167C163441; // System.Collections.Generic.ICollection`1<System.Collections.Generic.LinkedListNode`1<System.Action`1<System.Boolean>>> struct ICollection_1_t019371CD529B39E040398DDC28E7A0DE65C845E2; // System.Collections.Generic.ICollection`1<System.Collections.Generic.LinkedListNode`1<System.Action`1<UnityEngine.Object>>> struct ICollection_1_tAC39637F69FC47261177A4D5C506F993843940E4; // System.Collections.Generic.ICollection`1<System.Collections.Generic.LinkedListNode`1<System.Action`2<System.Boolean,UnityEngine.Material>>> struct ICollection_1_t20F520EB73D803D38E997AEAB23CCB22C6DC0635; // System.Collections.Generic.ICollection`1<System.Collections.Generic.LinkedListNode`1<System.Action`2<System.Boolean,UnityEngine.Object>>> struct ICollection_1_t3AB620495F6A9AA52C26D8D9DC2C32A7953ADB49; // System.Collections.Generic.ICollection`1<System.Collections.Generic.LinkedListNode`1<System.Action`2<System.Object,TMPro.Compute_DT_EventArgs>>> struct ICollection_1_tE60A4CCE8CA24DF80A1BCAEC9ECBEDC736D22014; // System.Collections.Generic.ICollection`1<System.Collections.Generic.LinkedListNode`1<System.Action`3<UnityEngine.GameObject,UnityEngine.Material,UnityEngine.Material>>> struct ICollection_1_tDE7CEDB04CDA493645027640B1382297DA63A35F; // System.Collections.Generic.ICollection`1<System.Collections.Generic.LinkedListNode`1<System.Action>> struct ICollection_1_t050D1FF6528E74DDD996B7951997C7AF575D7164; // System.Collections.Generic.ICollection`1<System.Tuple`2<System.Guid,System.Int32>> struct ICollection_1_t1ADB52CEE54A2AEB55D5027F5A84179ECFB6F44D; // System.Collections.Generic.ICollection`1<Microsoft.MixedReality.Toolkit.Input.BaseController> struct ICollection_1_t9402012A5B25A07E959450B7C82627A72A41A2EE; // System.Collections.Generic.ICollection`1<System.Boolean> struct ICollection_1_t655D141A762682C0B23DCBB178920F6E16ACDCC1; // System.Collections.Generic.ICollection`1<UnityEngine.Bounds> struct ICollection_1_tC72114C3A90B0179608F6748251065AEEB182EC5; // System.Collections.Generic.ICollection`1<System.Int32> struct ICollection_1_t1C0C51B19916511E9D525272F055515334C93525; // System.Collections.Generic.ICollection`1<UnityEngine.Matrix4x4> struct ICollection_1_t77237F3591E5BB3D7DFED73670F47A39952238A7; // System.Collections.Generic.ICollection`1<System.Object> struct ICollection_1_t35488BE070734B4C5D136DC1A68CBC9CE507D488; // System.Collections.Generic.ICollection`1<Microsoft.MixedReality.Toolkit.Audio.AudioLoFiEffect/AudioLoFiFilterSettings> struct ICollection_1_t1299A54ECDD78117C25B476989D0EACF60FCB8DB; // System.Predicate`1<System.Object> struct Predicate_1_t5C96B81B31A697B11C4C3767E3298773AF25DFEB; // System.Predicate`1<System.Threading.Tasks.Task> struct Predicate_1_tC0DBBC8498BD1EE6ABFFAA5628024105FA7D11BD; // System.Threading.Tasks.TaskFactory`1<Microsoft.MixedReality.Toolkit.Input.InputAnimation> struct TaskFactory_1_tC5773A7F5FB0315235DABE4696D4D0ABF288DE0D; // System.Threading.Tasks.TaskFactory`1<Microsoft.MixedReality.Toolkit.WindowsDevicePortal.InstalledApps> struct TaskFactory_1_t73BA32A7E75131733AE230469784026CE14A5CE9; // System.Threading.Tasks.TaskFactory`1<System.Int32> struct TaskFactory_1_tCA6286B86C0D5D6C00D5A0DFE56F7E48A482DD5E; // System.Threading.Tasks.TaskFactory`1<Microsoft.MixedReality.Toolkit.WindowsDevicePortal.IpConfigInfo> struct TaskFactory_1_tEF7F72BBEDCA449A6DDC8FFC325FA330B56C39DE; // System.Threading.Tasks.TaskFactory`1<Microsoft.MixedReality.Toolkit.WindowsDevicePortal.MachineName> struct TaskFactory_1_t34DABE809B567ADC99600D8249C81FBFF23A06F4; // System.Threading.Tasks.TaskFactory`1<Microsoft.MixedReality.Toolkit.WindowsDevicePortal.NetworkInterfaces> struct TaskFactory_1_t066C7E47C7502F181CAC9D7D7E557B6E9FC9B18C; // System.Threading.Tasks.TaskFactory`1<Microsoft.MixedReality.Toolkit.WindowsDevicePortal.PowerStateInfo> struct TaskFactory_1_tD3E3D90B7FD10FE1F00DD7AE246F00E5D63FE2E7; // System.Threading.Tasks.TaskFactory`1<Microsoft.MixedReality.Toolkit.Utilities.Response> struct TaskFactory_1_tB949B70C6DA67224F7F0B393A83B4430ED70BBA5; // System.Threading.Tasks.TaskFactory`1<System.String> struct TaskFactory_1_t9179B7311982EC4F85FDFBA0C89416AB321E74CB; // System.Threading.Tasks.TaskFactory`1<System.Threading.Tasks.VoidTaskResult> struct TaskFactory_1_tFD6C5BE88624171209DEA49929EA276401AC9F4B; // System.Threading.Tasks.TaskFactory`1<UnityEngine.XR.WindowsMR.XRAnchorStore> struct TaskFactory_1_t47A3C85D7EBDB8F0CFE9D8318B316BB0A95482D4; // System.Threading.Tasks.TaskFactory`1<Microsoft.MixedReality.Toolkit.WindowsDevicePortal.DevicePortal/AppInstallStatus> struct TaskFactory_1_t5507DD5B044BE1CBACBC4B7BB19F2A040E624F25; // Windows.Foundation.TypedEventHandler`2<Windows.UI.ViewManagement.InputPane,Windows.UI.ViewManagement.InputPaneVisibilityEventArgs> struct TypedEventHandler_2_tC915EA305D2AEB512570B5262AEC81263F1818E1; // Windows.Foundation.TypedEventHandler`2<System.Object,System.Object> struct TypedEventHandler_2_t8D72D4CAB5DF9F7D9AE52E95A431BD4738A32CDC; // System.Byte[] struct ByteU5BU5D_tDBBEB0E8362242FA7223000D978B0DD19D4B0726; // System.Char[] struct CharU5BU5D_t7B7FC5BC8091AA3B9CB0B29CDD80B5EE9254AA34; // System.Delegate[] struct DelegateU5BU5D_t677D8FE08A5F99E8EE49150B73966CD6E9BF7DB8; // System.Threading.ContextCallback struct ContextCallback_t93707E0430F4FF3E15E1FB5A4844BE89C657AE8B; // System.DelegateData struct DelegateData_t17DD30660E330C49381DAA99F934BE75CB11F288; // Windows.UI.ViewManagement.IInputPaneStatics struct IInputPaneStatics_tF07CAB02A42CD9CA892BFE42F9AE9FB9D0A54658; // Windows.UI.ViewManagement.IInputPaneStatics2 struct IInputPaneStatics2_t2C7EC62CFDA4BAC43A693D65F396A1BFE7A60558; // Microsoft.MixedReality.Toolkit.Input.InputAnimation struct InputAnimation_tD9345F0646C7227BE0F5D4D1E286B399D7753534; // Windows.UI.ViewManagement.InputPane struct InputPane_tF3B65D04E39FC6EB8DD27594586A06CF7EE2B393; // Windows.UI.ViewManagement.InputPaneVisibilityEventArgs struct InputPaneVisibilityEventArgs_t049567B03D376F2BA4816EF9F1519EF06AAEE0D6; // Microsoft.MixedReality.Toolkit.WindowsDevicePortal.InstalledApps struct InstalledApps_t91DF6F0F261D8E8B004B2786B96395414D6673B6; // Microsoft.MixedReality.Toolkit.WindowsDevicePortal.IpConfigInfo struct IpConfigInfo_tDD421ACFCEB36EAF9B1D6EE7AE5E66DB05A91F6A; // Microsoft.MixedReality.Toolkit.WindowsDevicePortal.MachineName struct MachineName_tF6A7D21A775B5F304033C800297B9236B986629F; // System.Reflection.MethodInfo struct MethodInfo_t; // Microsoft.MixedReality.Toolkit.WindowsDevicePortal.NetworkInterfaces struct NetworkInterfaces_t1F0AE43A767FCE25334C6402D0EBBC0B9880B3F1; // Microsoft.MixedReality.Toolkit.WindowsDevicePortal.PowerStateInfo struct PowerStateInfo_t743EA6A8D6B4D5D91DF3307023C493BC002A4AEC; // System.Threading.Tasks.StackGuard struct StackGuard_t88E1EE4741AD02CA5FEA04A4EB2CC70F230E0E6D; // System.String struct String_t; // System.Threading.Tasks.TaskFactory struct TaskFactory_t22D999A05A967C31A4B5FFBD08864809BF35EA3B; // System.Threading.Tasks.TaskScheduler struct TaskScheduler_t74FBEEEDBDD5E0088FF0EEC18F45CD866B098D5D; // System.Void struct Void_t700C6383A2A510C2CF4DD86DABD5CA9FF70ADAC5; // UnityEngine.XR.WindowsMR.XRAnchorStore struct XRAnchorStore_t3B551351D373C269350F0CA7DFBFF7D708449F2E; // System.Threading.Tasks.Task/ContingentProperties struct ContingentProperties_t1E249C737B8B8644ED1D60EEFA101D326B199EA0; IL2CPP_EXTERN_C RuntimeClass* Il2CppComObject_il2cpp_TypeInfo_var; IL2CPP_EXTERN_C RuntimeClass* InputPaneVisibilityEventArgs_t049567B03D376F2BA4816EF9F1519EF06AAEE0D6_il2cpp_TypeInfo_var; IL2CPP_EXTERN_C RuntimeClass* InputPane_tF3B65D04E39FC6EB8DD27594586A06CF7EE2B393_il2cpp_TypeInfo_var; IL2CPP_EXTERN_C RuntimeClass* String_t_il2cpp_TypeInfo_var; IL2CPP_EXTERN_C const RuntimeMethod* TypedEventHandler_2_Invoke_m5D952F3779C15A5E243841A324A3342D1D58CE67_RuntimeMethod_var; IL2CPP_EXTERN_C const RuntimeMethod* TypedEventHandler_2_Invoke_m606719294C008B46778D7017B715442332EF1BFB_RuntimeMethod_var; struct Delegate_t_marshaled_com; struct Delegate_t_marshaled_pinvoke; struct IBindableIterator_tD7550F1144CFBE58090050457A2BE92B1CAEABBB; struct IInputPaneVisibilityEventArgs_t376CBD7D8F8808CA136546D1F6829C9287C5D3AB; struct IInputPane_t487BCFEFC9CD23557BED549036A74F16EE6F8E4D; struct IIterator_1_t6A46A7244E5AAD0AE4F2A07AF43DA5052D55F4A4; struct IIterator_1_tB1AB5AB497E87D6A397AA084D3D3D6B8D211022C; struct IIterator_1_tD5C5DE60C4A835F60D32B19C44430B59B26BFA67; struct IIterator_1_tE13F884343548B90CBE44A0A597D5A31E29178BF; struct IIterator_1_tFF647CAD19D34FD0606CDD3425C431F82B94589C; struct ITypedEventHandler_2_tC915EA305D2AEB512570B5262AEC81263F1818E1_ComCallableWrapper; 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 // Windows.Foundation.Collections.IIterable`1<System.Collections.Generic.IEnumerable`1<System.Object>> struct NOVTABLE IIterable_1_tB7611E3565ADF2561FF7521E03A1E3B93F7BD113 : Il2CppIInspectable { static const Il2CppGuid IID; virtual il2cpp_hresult_t STDCALL IIterable_1_First_m1E9A9F6DA2EC9A3A751A6E85F67C9BB40798A879(IIterator_1_tD5C5DE60C4A835F60D32B19C44430B59B26BFA67** comReturnValue) = 0; }; // Windows.Foundation.Collections.IIterable`1<System.Boolean> struct NOVTABLE IIterable_1_t0F0E81F8630AABFA67939A3C4C7A6448EC21FB24 : Il2CppIInspectable { static const Il2CppGuid IID; virtual il2cpp_hresult_t STDCALL IIterable_1_First_m0DF5AB173068D2FBCA182101EF7C9DD4C9135BCB(IIterator_1_tE13F884343548B90CBE44A0A597D5A31E29178BF** comReturnValue) = 0; }; // Windows.Foundation.Collections.IIterable`1<System.Collections.IEnumerable> struct NOVTABLE IIterable_1_t6359E278A71A51A15FA83695BA7C54F9B3E04824 : Il2CppIInspectable { static const Il2CppGuid IID; virtual il2cpp_hresult_t STDCALL IIterable_1_First_m512126C71D7E9D1C31B56F64455F33E9FEEC89F8(IIterator_1_t6A46A7244E5AAD0AE4F2A07AF43DA5052D55F4A4** comReturnValue) = 0; }; // Windows.Foundation.Collections.IIterable`1<System.Int32> struct NOVTABLE IIterable_1_t3FD1FB01310262788B2A8868AA7395E023511050 : Il2CppIInspectable { static const Il2CppGuid IID; virtual il2cpp_hresult_t STDCALL IIterable_1_First_mC1E90957AD904E68CE3F84D1EF22D5EFACE8C2D5(IIterator_1_tFF647CAD19D34FD0606CDD3425C431F82B94589C** comReturnValue) = 0; }; // Windows.Foundation.Collections.IIterable`1<System.Object> struct NOVTABLE IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4 : Il2CppIInspectable { static const Il2CppGuid IID; virtual il2cpp_hresult_t STDCALL IIterable_1_First_m54AC7E778E98ED35C6B7AD98C35C325B8A3DF619(IIterator_1_tB1AB5AB497E87D6A397AA084D3D3D6B8D211022C** comReturnValue) = 0; }; // Windows.UI.Xaml.Interop.IBindableIterable struct NOVTABLE IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8 : Il2CppIInspectable { static const Il2CppGuid IID; virtual il2cpp_hresult_t STDCALL IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7(IBindableIterator_tD7550F1144CFBE58090050457A2BE92B1CAEABBB** comReturnValue) = 0; }; // Windows.Foundation.IClosable struct NOVTABLE IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953 : Il2CppIInspectable { static const Il2CppGuid IID; virtual il2cpp_hresult_t STDCALL IClosable_Close_m7DE2119A960C4E3898E6E5D03245D047BF113999() = 0; }; // Windows.UI.ViewManagement.IInputPaneStatics struct NOVTABLE IInputPaneStatics_tF07CAB02A42CD9CA892BFE42F9AE9FB9D0A54658 : Il2CppIInspectable { static const Il2CppGuid IID; virtual il2cpp_hresult_t STDCALL IInputPaneStatics_GetForCurrentView_m5500BD1234D43F7C72BC241C2127E8BBCA13804F(IInputPane_t487BCFEFC9CD23557BED549036A74F16EE6F8E4D** comReturnValue) = 0; }; // Windows.UI.ViewManagement.IInputPaneStatics2 struct NOVTABLE IInputPaneStatics2_t2C7EC62CFDA4BAC43A693D65F396A1BFE7A60558 : Il2CppIInspectable { static const Il2CppGuid IID; virtual il2cpp_hresult_t STDCALL IInputPaneStatics2_U24__Stripped0_GetForUIContext_m1B5571474793F35902100BFEE93598E6DF083C11() = 0; }; // Windows.UI.ViewManagement.IInputPaneVisibilityEventArgs struct NOVTABLE IInputPaneVisibilityEventArgs_t376CBD7D8F8808CA136546D1F6829C9287C5D3AB : Il2CppIInspectable { static const Il2CppGuid IID; virtual il2cpp_hresult_t STDCALL IInputPaneVisibilityEventArgs_U24__Stripped0_get_OccludedRect_m7CD774E35B5DD3D2FB32911ADAB698960AA83781() = 0; virtual il2cpp_hresult_t STDCALL IInputPaneVisibilityEventArgs_U24__Stripped1_put_EnsuredFocusedElementInView_mFD8718E6C8353305D6998F141FB0AA712FE2861C() = 0; virtual il2cpp_hresult_t STDCALL IInputPaneVisibilityEventArgs_U24__Stripped2_get_EnsuredFocusedElementInView_m2754533A9587DBD3AF66C4B71432CC71C1B3F207() = 0; }; // System.Object // System.Collections.Generic.Dictionary`2/ValueCollection<System.Action`1<System.Boolean>,System.Collections.Generic.LinkedListNode`1<System.Action`1<System.Boolean>>> struct ValueCollection_t5B9EF0E5F8B0C8B4BDD40CA26708758E7019812A : public RuntimeObject { public: // System.Collections.Generic.Dictionary`2<TKey,TValue> System.Collections.Generic.Dictionary`2/ValueCollection::dictionary Dictionary_2_tC52CF8E0B6B02C46BE4D964655C8CBA6D912261D * ___dictionary_0; public: inline static int32_t get_offset_of_dictionary_0() { return static_cast<int32_t>(offsetof(ValueCollection_t5B9EF0E5F8B0C8B4BDD40CA26708758E7019812A, ___dictionary_0)); } inline Dictionary_2_tC52CF8E0B6B02C46BE4D964655C8CBA6D912261D * get_dictionary_0() const { return ___dictionary_0; } inline Dictionary_2_tC52CF8E0B6B02C46BE4D964655C8CBA6D912261D ** get_address_of_dictionary_0() { return &___dictionary_0; } inline void set_dictionary_0(Dictionary_2_tC52CF8E0B6B02C46BE4D964655C8CBA6D912261D * value) { ___dictionary_0 = value; Il2CppCodeGenWriteBarrier((void**)(&___dictionary_0), (void*)value); } }; // System.Collections.ObjectModel.ReadOnlyDictionary`2/ValueCollection<System.Action`1<System.Boolean>,System.Collections.Generic.LinkedListNode`1<System.Action`1<System.Boolean>>> struct ValueCollection_t4A758E9D5D62EFE07B884457B2262E35262E94A5 : public RuntimeObject { public: // System.Collections.Generic.ICollection`1<TValue> System.Collections.ObjectModel.ReadOnlyDictionary`2/ValueCollection::m_collection RuntimeObject* ___m_collection_0; // System.Object System.Collections.ObjectModel.ReadOnlyDictionary`2/ValueCollection::m_syncRoot RuntimeObject * ___m_syncRoot_1; public: inline static int32_t get_offset_of_m_collection_0() { return static_cast<int32_t>(offsetof(ValueCollection_t4A758E9D5D62EFE07B884457B2262E35262E94A5, ___m_collection_0)); } inline RuntimeObject* get_m_collection_0() const { return ___m_collection_0; } inline RuntimeObject** get_address_of_m_collection_0() { return &___m_collection_0; } inline void set_m_collection_0(RuntimeObject* value) { ___m_collection_0 = value; Il2CppCodeGenWriteBarrier((void**)(&___m_collection_0), (void*)value); } inline static int32_t get_offset_of_m_syncRoot_1() { return static_cast<int32_t>(offsetof(ValueCollection_t4A758E9D5D62EFE07B884457B2262E35262E94A5, ___m_syncRoot_1)); } inline RuntimeObject * get_m_syncRoot_1() const { return ___m_syncRoot_1; } inline RuntimeObject ** get_address_of_m_syncRoot_1() { return &___m_syncRoot_1; } inline void set_m_syncRoot_1(RuntimeObject * value) { ___m_syncRoot_1 = value; Il2CppCodeGenWriteBarrier((void**)(&___m_syncRoot_1), (void*)value); } }; // System.Collections.Generic.Dictionary`2/ValueCollection<System.Action`1<UnityEngine.Object>,System.Collections.Generic.LinkedListNode`1<System.Action`1<UnityEngine.Object>>> struct ValueCollection_tA2C0C3AFB63D7CB1685F471B4B3EF8AD4460160D : public RuntimeObject { public: // System.Collections.Generic.Dictionary`2<TKey,TValue> System.Collections.Generic.Dictionary`2/ValueCollection::dictionary Dictionary_2_tAE310F3B56E5D9DE3F7087A58ABE9DDF2313760D * ___dictionary_0; public: inline static int32_t get_offset_of_dictionary_0() { return static_cast<int32_t>(offsetof(ValueCollection_tA2C0C3AFB63D7CB1685F471B4B3EF8AD4460160D, ___dictionary_0)); } inline Dictionary_2_tAE310F3B56E5D9DE3F7087A58ABE9DDF2313760D * get_dictionary_0() const { return ___dictionary_0; } inline Dictionary_2_tAE310F3B56E5D9DE3F7087A58ABE9DDF2313760D ** get_address_of_dictionary_0() { return &___dictionary_0; } inline void set_dictionary_0(Dictionary_2_tAE310F3B56E5D9DE3F7087A58ABE9DDF2313760D * value) { ___dictionary_0 = value; Il2CppCodeGenWriteBarrier((void**)(&___dictionary_0), (void*)value); } }; // System.Collections.ObjectModel.ReadOnlyDictionary`2/ValueCollection<System.Action`1<UnityEngine.Object>,System.Collections.Generic.LinkedListNode`1<System.Action`1<UnityEngine.Object>>> struct ValueCollection_t968318C5C1B349DE22051308B6B2F727F79DF04F : public RuntimeObject { public: // System.Collections.Generic.ICollection`1<TValue> System.Collections.ObjectModel.ReadOnlyDictionary`2/ValueCollection::m_collection RuntimeObject* ___m_collection_0; // System.Object System.Collections.ObjectModel.ReadOnlyDictionary`2/ValueCollection::m_syncRoot RuntimeObject * ___m_syncRoot_1; public: inline static int32_t get_offset_of_m_collection_0() { return static_cast<int32_t>(offsetof(ValueCollection_t968318C5C1B349DE22051308B6B2F727F79DF04F, ___m_collection_0)); } inline RuntimeObject* get_m_collection_0() const { return ___m_collection_0; } inline RuntimeObject** get_address_of_m_collection_0() { return &___m_collection_0; } inline void set_m_collection_0(RuntimeObject* value) { ___m_collection_0 = value; Il2CppCodeGenWriteBarrier((void**)(&___m_collection_0), (void*)value); } inline static int32_t get_offset_of_m_syncRoot_1() { return static_cast<int32_t>(offsetof(ValueCollection_t968318C5C1B349DE22051308B6B2F727F79DF04F, ___m_syncRoot_1)); } inline RuntimeObject * get_m_syncRoot_1() const { return ___m_syncRoot_1; } inline RuntimeObject ** get_address_of_m_syncRoot_1() { return &___m_syncRoot_1; } inline void set_m_syncRoot_1(RuntimeObject * value) { ___m_syncRoot_1 = value; Il2CppCodeGenWriteBarrier((void**)(&___m_syncRoot_1), (void*)value); } }; // System.Collections.Generic.Dictionary`2/ValueCollection<System.Action`2<System.Boolean,UnityEngine.Material>,System.Collections.Generic.LinkedListNode`1<System.Action`2<System.Boolean,UnityEngine.Material>>> struct ValueCollection_t8FF42E707BE835C7379EF0BFC2EAE31FC64B5996 : public RuntimeObject { public: // System.Collections.Generic.Dictionary`2<TKey,TValue> System.Collections.Generic.Dictionary`2/ValueCollection::dictionary Dictionary_2_t3B50E1A2BF138242FA769CB75227E103D2228E53 * ___dictionary_0; public: inline static int32_t get_offset_of_dictionary_0() { return static_cast<int32_t>(offsetof(ValueCollection_t8FF42E707BE835C7379EF0BFC2EAE31FC64B5996, ___dictionary_0)); } inline Dictionary_2_t3B50E1A2BF138242FA769CB75227E103D2228E53 * get_dictionary_0() const { return ___dictionary_0; } inline Dictionary_2_t3B50E1A2BF138242FA769CB75227E103D2228E53 ** get_address_of_dictionary_0() { return &___dictionary_0; } inline void set_dictionary_0(Dictionary_2_t3B50E1A2BF138242FA769CB75227E103D2228E53 * value) { ___dictionary_0 = value; Il2CppCodeGenWriteBarrier((void**)(&___dictionary_0), (void*)value); } }; // System.Collections.ObjectModel.ReadOnlyDictionary`2/ValueCollection<System.Action`2<System.Boolean,UnityEngine.Material>,System.Collections.Generic.LinkedListNode`1<System.Action`2<System.Boolean,UnityEngine.Material>>> struct ValueCollection_tE347A91AF21F32FC099A6DBA4BD76CED65EE9F28 : public RuntimeObject { public: // System.Collections.Generic.ICollection`1<TValue> System.Collections.ObjectModel.ReadOnlyDictionary`2/ValueCollection::m_collection RuntimeObject* ___m_collection_0; // System.Object System.Collections.ObjectModel.ReadOnlyDictionary`2/ValueCollection::m_syncRoot RuntimeObject * ___m_syncRoot_1; public: inline static int32_t get_offset_of_m_collection_0() { return static_cast<int32_t>(offsetof(ValueCollection_tE347A91AF21F32FC099A6DBA4BD76CED65EE9F28, ___m_collection_0)); } inline RuntimeObject* get_m_collection_0() const { return ___m_collection_0; } inline RuntimeObject** get_address_of_m_collection_0() { return &___m_collection_0; } inline void set_m_collection_0(RuntimeObject* value) { ___m_collection_0 = value; Il2CppCodeGenWriteBarrier((void**)(&___m_collection_0), (void*)value); } inline static int32_t get_offset_of_m_syncRoot_1() { return static_cast<int32_t>(offsetof(ValueCollection_tE347A91AF21F32FC099A6DBA4BD76CED65EE9F28, ___m_syncRoot_1)); } inline RuntimeObject * get_m_syncRoot_1() const { return ___m_syncRoot_1; } inline RuntimeObject ** get_address_of_m_syncRoot_1() { return &___m_syncRoot_1; } inline void set_m_syncRoot_1(RuntimeObject * value) { ___m_syncRoot_1 = value; Il2CppCodeGenWriteBarrier((void**)(&___m_syncRoot_1), (void*)value); } }; // System.Collections.Generic.Dictionary`2/ValueCollection<System.Action`2<System.Boolean,UnityEngine.Object>,System.Collections.Generic.LinkedListNode`1<System.Action`2<System.Boolean,UnityEngine.Object>>> struct ValueCollection_t1179110C909598FCFB282BB6CF45C89AD69B3024 : public RuntimeObject { public: // System.Collections.Generic.Dictionary`2<TKey,TValue> System.Collections.Generic.Dictionary`2/ValueCollection::dictionary Dictionary_2_t5314BF1AA5AE5CE3F12D361ADBB786604ACE461A * ___dictionary_0; public: inline static int32_t get_offset_of_dictionary_0() { return static_cast<int32_t>(offsetof(ValueCollection_t1179110C909598FCFB282BB6CF45C89AD69B3024, ___dictionary_0)); } inline Dictionary_2_t5314BF1AA5AE5CE3F12D361ADBB786604ACE461A * get_dictionary_0() const { return ___dictionary_0; } inline Dictionary_2_t5314BF1AA5AE5CE3F12D361ADBB786604ACE461A ** get_address_of_dictionary_0() { return &___dictionary_0; } inline void set_dictionary_0(Dictionary_2_t5314BF1AA5AE5CE3F12D361ADBB786604ACE461A * value) { ___dictionary_0 = value; Il2CppCodeGenWriteBarrier((void**)(&___dictionary_0), (void*)value); } }; // System.Collections.ObjectModel.ReadOnlyDictionary`2/ValueCollection<System.Action`2<System.Boolean,UnityEngine.Object>,System.Collections.Generic.LinkedListNode`1<System.Action`2<System.Boolean,UnityEngine.Object>>> struct ValueCollection_t54112B8A8A3D8B128E0120FC8E3AACE6E20D6186 : public RuntimeObject { public: // System.Collections.Generic.ICollection`1<TValue> System.Collections.ObjectModel.ReadOnlyDictionary`2/ValueCollection::m_collection RuntimeObject* ___m_collection_0; // System.Object System.Collections.ObjectModel.ReadOnlyDictionary`2/ValueCollection::m_syncRoot RuntimeObject * ___m_syncRoot_1; public: inline static int32_t get_offset_of_m_collection_0() { return static_cast<int32_t>(offsetof(ValueCollection_t54112B8A8A3D8B128E0120FC8E3AACE6E20D6186, ___m_collection_0)); } inline RuntimeObject* get_m_collection_0() const { return ___m_collection_0; } inline RuntimeObject** get_address_of_m_collection_0() { return &___m_collection_0; } inline void set_m_collection_0(RuntimeObject* value) { ___m_collection_0 = value; Il2CppCodeGenWriteBarrier((void**)(&___m_collection_0), (void*)value); } inline static int32_t get_offset_of_m_syncRoot_1() { return static_cast<int32_t>(offsetof(ValueCollection_t54112B8A8A3D8B128E0120FC8E3AACE6E20D6186, ___m_syncRoot_1)); } inline RuntimeObject * get_m_syncRoot_1() const { return ___m_syncRoot_1; } inline RuntimeObject ** get_address_of_m_syncRoot_1() { return &___m_syncRoot_1; } inline void set_m_syncRoot_1(RuntimeObject * value) { ___m_syncRoot_1 = value; Il2CppCodeGenWriteBarrier((void**)(&___m_syncRoot_1), (void*)value); } }; // System.Collections.Generic.Dictionary`2/ValueCollection<System.Action`2<System.Object,TMPro.Compute_DT_EventArgs>,System.Collections.Generic.LinkedListNode`1<System.Action`2<System.Object,TMPro.Compute_DT_EventArgs>>> struct ValueCollection_tD34A90D4289D67604EA99D212DAB40CA28CF275F : public RuntimeObject { public: // System.Collections.Generic.Dictionary`2<TKey,TValue> System.Collections.Generic.Dictionary`2/ValueCollection::dictionary Dictionary_2_t84F10A8BBA436514F6F5006CD9164F0BBD331476 * ___dictionary_0; public: inline static int32_t get_offset_of_dictionary_0() { return static_cast<int32_t>(offsetof(ValueCollection_tD34A90D4289D67604EA99D212DAB40CA28CF275F, ___dictionary_0)); } inline Dictionary_2_t84F10A8BBA436514F6F5006CD9164F0BBD331476 * get_dictionary_0() const { return ___dictionary_0; } inline Dictionary_2_t84F10A8BBA436514F6F5006CD9164F0BBD331476 ** get_address_of_dictionary_0() { return &___dictionary_0; } inline void set_dictionary_0(Dictionary_2_t84F10A8BBA436514F6F5006CD9164F0BBD331476 * value) { ___dictionary_0 = value; Il2CppCodeGenWriteBarrier((void**)(&___dictionary_0), (void*)value); } }; // System.Collections.ObjectModel.ReadOnlyDictionary`2/ValueCollection<System.Action`2<System.Object,TMPro.Compute_DT_EventArgs>,System.Collections.Generic.LinkedListNode`1<System.Action`2<System.Object,TMPro.Compute_DT_EventArgs>>> struct ValueCollection_tC03EFCFD5024E805FC647A929FA8D93B146A57A6 : public RuntimeObject { public: // System.Collections.Generic.ICollection`1<TValue> System.Collections.ObjectModel.ReadOnlyDictionary`2/ValueCollection::m_collection RuntimeObject* ___m_collection_0; // System.Object System.Collections.ObjectModel.ReadOnlyDictionary`2/ValueCollection::m_syncRoot RuntimeObject * ___m_syncRoot_1; public: inline static int32_t get_offset_of_m_collection_0() { return static_cast<int32_t>(offsetof(ValueCollection_tC03EFCFD5024E805FC647A929FA8D93B146A57A6, ___m_collection_0)); } inline RuntimeObject* get_m_collection_0() const { return ___m_collection_0; } inline RuntimeObject** get_address_of_m_collection_0() { return &___m_collection_0; } inline void set_m_collection_0(RuntimeObject* value) { ___m_collection_0 = value; Il2CppCodeGenWriteBarrier((void**)(&___m_collection_0), (void*)value); } inline static int32_t get_offset_of_m_syncRoot_1() { return static_cast<int32_t>(offsetof(ValueCollection_tC03EFCFD5024E805FC647A929FA8D93B146A57A6, ___m_syncRoot_1)); } inline RuntimeObject * get_m_syncRoot_1() const { return ___m_syncRoot_1; } inline RuntimeObject ** get_address_of_m_syncRoot_1() { return &___m_syncRoot_1; } inline void set_m_syncRoot_1(RuntimeObject * value) { ___m_syncRoot_1 = value; Il2CppCodeGenWriteBarrier((void**)(&___m_syncRoot_1), (void*)value); } }; // System.Collections.Generic.Dictionary`2/ValueCollection<System.Action`3<UnityEngine.GameObject,UnityEngine.Material,UnityEngine.Material>,System.Collections.Generic.LinkedListNode`1<System.Action`3<UnityEngine.GameObject,UnityEngine.Material,UnityEngine.Material>>> struct ValueCollection_t00D0A8FFECDE1838D4FABDF11DBACB469C9F9F91 : public RuntimeObject { public: // System.Collections.Generic.Dictionary`2<TKey,TValue> System.Collections.Generic.Dictionary`2/ValueCollection::dictionary Dictionary_2_t4E870B686DD849612FE4EC9C8170EA18B500D353 * ___dictionary_0; public: inline static int32_t get_offset_of_dictionary_0() { return static_cast<int32_t>(offsetof(ValueCollection_t00D0A8FFECDE1838D4FABDF11DBACB469C9F9F91, ___dictionary_0)); } inline Dictionary_2_t4E870B686DD849612FE4EC9C8170EA18B500D353 * get_dictionary_0() const { return ___dictionary_0; } inline Dictionary_2_t4E870B686DD849612FE4EC9C8170EA18B500D353 ** get_address_of_dictionary_0() { return &___dictionary_0; } inline void set_dictionary_0(Dictionary_2_t4E870B686DD849612FE4EC9C8170EA18B500D353 * value) { ___dictionary_0 = value; Il2CppCodeGenWriteBarrier((void**)(&___dictionary_0), (void*)value); } }; // System.Collections.ObjectModel.ReadOnlyDictionary`2/ValueCollection<System.Action`3<UnityEngine.GameObject,UnityEngine.Material,UnityEngine.Material>,System.Collections.Generic.LinkedListNode`1<System.Action`3<UnityEngine.GameObject,UnityEngine.Material,UnityEngine.Material>>> struct ValueCollection_t51CD5520820E14147632F4AD669421EBC372BBBC : public RuntimeObject { public: // System.Collections.Generic.ICollection`1<TValue> System.Collections.ObjectModel.ReadOnlyDictionary`2/ValueCollection::m_collection RuntimeObject* ___m_collection_0; // System.Object System.Collections.ObjectModel.ReadOnlyDictionary`2/ValueCollection::m_syncRoot RuntimeObject * ___m_syncRoot_1; public: inline static int32_t get_offset_of_m_collection_0() { return static_cast<int32_t>(offsetof(ValueCollection_t51CD5520820E14147632F4AD669421EBC372BBBC, ___m_collection_0)); } inline RuntimeObject* get_m_collection_0() const { return ___m_collection_0; } inline RuntimeObject** get_address_of_m_collection_0() { return &___m_collection_0; } inline void set_m_collection_0(RuntimeObject* value) { ___m_collection_0 = value; Il2CppCodeGenWriteBarrier((void**)(&___m_collection_0), (void*)value); } inline static int32_t get_offset_of_m_syncRoot_1() { return static_cast<int32_t>(offsetof(ValueCollection_t51CD5520820E14147632F4AD669421EBC372BBBC, ___m_syncRoot_1)); } inline RuntimeObject * get_m_syncRoot_1() const { return ___m_syncRoot_1; } inline RuntimeObject ** get_address_of_m_syncRoot_1() { return &___m_syncRoot_1; } inline void set_m_syncRoot_1(RuntimeObject * value) { ___m_syncRoot_1 = value; Il2CppCodeGenWriteBarrier((void**)(&___m_syncRoot_1), (void*)value); } }; // System.Collections.Generic.Dictionary`2/ValueCollection<System.Tuple`2<UnityEngine.Collider,UnityEngine.Camera>,System.Boolean> struct ValueCollection_t583A41C852726CCDF6D44A888AD9F7F6A95709A4 : public RuntimeObject { public: // System.Collections.Generic.Dictionary`2<TKey,TValue> System.Collections.Generic.Dictionary`2/ValueCollection::dictionary Dictionary_2_t98787E41AC6299167C788E23E552FA2A203C30FE * ___dictionary_0; public: inline static int32_t get_offset_of_dictionary_0() { return static_cast<int32_t>(offsetof(ValueCollection_t583A41C852726CCDF6D44A888AD9F7F6A95709A4, ___dictionary_0)); } inline Dictionary_2_t98787E41AC6299167C788E23E552FA2A203C30FE * get_dictionary_0() const { return ___dictionary_0; } inline Dictionary_2_t98787E41AC6299167C788E23E552FA2A203C30FE ** get_address_of_dictionary_0() { return &___dictionary_0; } inline void set_dictionary_0(Dictionary_2_t98787E41AC6299167C788E23E552FA2A203C30FE * value) { ___dictionary_0 = value; Il2CppCodeGenWriteBarrier((void**)(&___dictionary_0), (void*)value); } }; // System.Collections.ObjectModel.ReadOnlyDictionary`2/ValueCollection<System.Tuple`2<UnityEngine.Collider,UnityEngine.Camera>,System.Boolean> struct ValueCollection_t2C403E54E42F9B758B8A748BDB9AB8EB50AB78EC : public RuntimeObject { public: // System.Collections.Generic.ICollection`1<TValue> System.Collections.ObjectModel.ReadOnlyDictionary`2/ValueCollection::m_collection RuntimeObject* ___m_collection_0; // System.Object System.Collections.ObjectModel.ReadOnlyDictionary`2/ValueCollection::m_syncRoot RuntimeObject * ___m_syncRoot_1; public: inline static int32_t get_offset_of_m_collection_0() { return static_cast<int32_t>(offsetof(ValueCollection_t2C403E54E42F9B758B8A748BDB9AB8EB50AB78EC, ___m_collection_0)); } inline RuntimeObject* get_m_collection_0() const { return ___m_collection_0; } inline RuntimeObject** get_address_of_m_collection_0() { return &___m_collection_0; } inline void set_m_collection_0(RuntimeObject* value) { ___m_collection_0 = value; Il2CppCodeGenWriteBarrier((void**)(&___m_collection_0), (void*)value); } inline static int32_t get_offset_of_m_syncRoot_1() { return static_cast<int32_t>(offsetof(ValueCollection_t2C403E54E42F9B758B8A748BDB9AB8EB50AB78EC, ___m_syncRoot_1)); } inline RuntimeObject * get_m_syncRoot_1() const { return ___m_syncRoot_1; } inline RuntimeObject ** get_address_of_m_syncRoot_1() { return &___m_syncRoot_1; } inline void set_m_syncRoot_1(RuntimeObject * value) { ___m_syncRoot_1 = value; Il2CppCodeGenWriteBarrier((void**)(&___m_syncRoot_1), (void*)value); } }; // System.Collections.Generic.Dictionary`2/ValueCollection<System.Tuple`2<Microsoft.MixedReality.Toolkit.Input.KeyBinding/KeyType,System.Int32>,System.Int32> struct ValueCollection_t020508D08098E9C5DFCCC88C71DD1D2F427A9A18 : public RuntimeObject { public: // System.Collections.Generic.Dictionary`2<TKey,TValue> System.Collections.Generic.Dictionary`2/ValueCollection::dictionary Dictionary_2_tFFC67FD84A1EF3C8AAA815D90FAA4FBEF1F44264 * ___dictionary_0; public: inline static int32_t get_offset_of_dictionary_0() { return static_cast<int32_t>(offsetof(ValueCollection_t020508D08098E9C5DFCCC88C71DD1D2F427A9A18, ___dictionary_0)); } inline Dictionary_2_tFFC67FD84A1EF3C8AAA815D90FAA4FBEF1F44264 * get_dictionary_0() const { return ___dictionary_0; } inline Dictionary_2_tFFC67FD84A1EF3C8AAA815D90FAA4FBEF1F44264 ** get_address_of_dictionary_0() { return &___dictionary_0; } inline void set_dictionary_0(Dictionary_2_tFFC67FD84A1EF3C8AAA815D90FAA4FBEF1F44264 * value) { ___dictionary_0 = value; Il2CppCodeGenWriteBarrier((void**)(&___dictionary_0), (void*)value); } }; // System.Collections.ObjectModel.ReadOnlyDictionary`2/ValueCollection<System.Tuple`2<Microsoft.MixedReality.Toolkit.Input.KeyBinding/KeyType,System.Int32>,System.Int32> struct ValueCollection_t25E334155CBD91B31B09696FDCB72DF99C97B4A6 : public RuntimeObject { public: // System.Collections.Generic.ICollection`1<TValue> System.Collections.ObjectModel.ReadOnlyDictionary`2/ValueCollection::m_collection RuntimeObject* ___m_collection_0; // System.Object System.Collections.ObjectModel.ReadOnlyDictionary`2/ValueCollection::m_syncRoot RuntimeObject * ___m_syncRoot_1; public: inline static int32_t get_offset_of_m_collection_0() { return static_cast<int32_t>(offsetof(ValueCollection_t25E334155CBD91B31B09696FDCB72DF99C97B4A6, ___m_collection_0)); } inline RuntimeObject* get_m_collection_0() const { return ___m_collection_0; } inline RuntimeObject** get_address_of_m_collection_0() { return &___m_collection_0; } inline void set_m_collection_0(RuntimeObject* value) { ___m_collection_0 = value; Il2CppCodeGenWriteBarrier((void**)(&___m_collection_0), (void*)value); } inline static int32_t get_offset_of_m_syncRoot_1() { return static_cast<int32_t>(offsetof(ValueCollection_t25E334155CBD91B31B09696FDCB72DF99C97B4A6, ___m_syncRoot_1)); } inline RuntimeObject * get_m_syncRoot_1() const { return ___m_syncRoot_1; } inline RuntimeObject ** get_address_of_m_syncRoot_1() { return &___m_syncRoot_1; } inline void set_m_syncRoot_1(RuntimeObject * value) { ___m_syncRoot_1 = value; Il2CppCodeGenWriteBarrier((void**)(&___m_syncRoot_1), (void*)value); } }; // System.Collections.Generic.Dictionary`2/ValueCollection<System.Action,System.Collections.Generic.LinkedListNode`1<System.Action>> struct ValueCollection_tDD698D2936486DD2148BC38EC395A5CC2B6CBFE1 : public RuntimeObject { public: // System.Collections.Generic.Dictionary`2<TKey,TValue> System.Collections.Generic.Dictionary`2/ValueCollection::dictionary Dictionary_2_t050A987FF3F83046609B91544CA99C3F44CA394E * ___dictionary_0; public: inline static int32_t get_offset_of_dictionary_0() { return static_cast<int32_t>(offsetof(ValueCollection_tDD698D2936486DD2148BC38EC395A5CC2B6CBFE1, ___dictionary_0)); } inline Dictionary_2_t050A987FF3F83046609B91544CA99C3F44CA394E * get_dictionary_0() const { return ___dictionary_0; } inline Dictionary_2_t050A987FF3F83046609B91544CA99C3F44CA394E ** get_address_of_dictionary_0() { return &___dictionary_0; } inline void set_dictionary_0(Dictionary_2_t050A987FF3F83046609B91544CA99C3F44CA394E * value) { ___dictionary_0 = value; Il2CppCodeGenWriteBarrier((void**)(&___dictionary_0), (void*)value); } }; // System.Collections.ObjectModel.ReadOnlyDictionary`2/ValueCollection<System.Action,System.Collections.Generic.LinkedListNode`1<System.Action>> struct ValueCollection_t14B5CBE232037DBA07FDA5BD5165E9702568E491 : public RuntimeObject { public: // System.Collections.Generic.ICollection`1<TValue> System.Collections.ObjectModel.ReadOnlyDictionary`2/ValueCollection::m_collection RuntimeObject* ___m_collection_0; // System.Object System.Collections.ObjectModel.ReadOnlyDictionary`2/ValueCollection::m_syncRoot RuntimeObject * ___m_syncRoot_1; public: inline static int32_t get_offset_of_m_collection_0() { return static_cast<int32_t>(offsetof(ValueCollection_t14B5CBE232037DBA07FDA5BD5165E9702568E491, ___m_collection_0)); } inline RuntimeObject* get_m_collection_0() const { return ___m_collection_0; } inline RuntimeObject** get_address_of_m_collection_0() { return &___m_collection_0; } inline void set_m_collection_0(RuntimeObject* value) { ___m_collection_0 = value; Il2CppCodeGenWriteBarrier((void**)(&___m_collection_0), (void*)value); } inline static int32_t get_offset_of_m_syncRoot_1() { return static_cast<int32_t>(offsetof(ValueCollection_t14B5CBE232037DBA07FDA5BD5165E9702568E491, ___m_syncRoot_1)); } inline RuntimeObject * get_m_syncRoot_1() const { return ___m_syncRoot_1; } inline RuntimeObject ** get_address_of_m_syncRoot_1() { return &___m_syncRoot_1; } inline void set_m_syncRoot_1(RuntimeObject * value) { ___m_syncRoot_1 = value; Il2CppCodeGenWriteBarrier((void**)(&___m_syncRoot_1), (void*)value); } }; // System.Collections.Generic.Dictionary`2/ValueCollection<Microsoft.MixedReality.Toolkit.Audio.AudioLoFiSourceQuality,Microsoft.MixedReality.Toolkit.Audio.AudioLoFiEffect/AudioLoFiFilterSettings> struct ValueCollection_t2C28712500B980BA66C7B7129B061485782EBC02 : public RuntimeObject { public: // System.Collections.Generic.Dictionary`2<TKey,TValue> System.Collections.Generic.Dictionary`2/ValueCollection::dictionary Dictionary_2_t50F9D98C136FA591210ECEA4F361FBF2E96884FF * ___dictionary_0; public: inline static int32_t get_offset_of_dictionary_0() { return static_cast<int32_t>(offsetof(ValueCollection_t2C28712500B980BA66C7B7129B061485782EBC02, ___dictionary_0)); } inline Dictionary_2_t50F9D98C136FA591210ECEA4F361FBF2E96884FF * get_dictionary_0() const { return ___dictionary_0; } inline Dictionary_2_t50F9D98C136FA591210ECEA4F361FBF2E96884FF ** get_address_of_dictionary_0() { return &___dictionary_0; } inline void set_dictionary_0(Dictionary_2_t50F9D98C136FA591210ECEA4F361FBF2E96884FF * value) { ___dictionary_0 = value; Il2CppCodeGenWriteBarrier((void**)(&___dictionary_0), (void*)value); } }; // System.Collections.ObjectModel.ReadOnlyDictionary`2/ValueCollection<Microsoft.MixedReality.Toolkit.Audio.AudioLoFiSourceQuality,Microsoft.MixedReality.Toolkit.Audio.AudioLoFiEffect/AudioLoFiFilterSettings> struct ValueCollection_t6126718CB6361E31FCF8A36B3C1EB289186BF26F : public RuntimeObject { public: // System.Collections.Generic.ICollection`1<TValue> System.Collections.ObjectModel.ReadOnlyDictionary`2/ValueCollection::m_collection RuntimeObject* ___m_collection_0; // System.Object System.Collections.ObjectModel.ReadOnlyDictionary`2/ValueCollection::m_syncRoot RuntimeObject * ___m_syncRoot_1; public: inline static int32_t get_offset_of_m_collection_0() { return static_cast<int32_t>(offsetof(ValueCollection_t6126718CB6361E31FCF8A36B3C1EB289186BF26F, ___m_collection_0)); } inline RuntimeObject* get_m_collection_0() const { return ___m_collection_0; } inline RuntimeObject** get_address_of_m_collection_0() { return &___m_collection_0; } inline void set_m_collection_0(RuntimeObject* value) { ___m_collection_0 = value; Il2CppCodeGenWriteBarrier((void**)(&___m_collection_0), (void*)value); } inline static int32_t get_offset_of_m_syncRoot_1() { return static_cast<int32_t>(offsetof(ValueCollection_t6126718CB6361E31FCF8A36B3C1EB289186BF26F, ___m_syncRoot_1)); } inline RuntimeObject * get_m_syncRoot_1() const { return ___m_syncRoot_1; } inline RuntimeObject ** get_address_of_m_syncRoot_1() { return &___m_syncRoot_1; } inline void set_m_syncRoot_1(RuntimeObject * value) { ___m_syncRoot_1 = value; Il2CppCodeGenWriteBarrier((void**)(&___m_syncRoot_1), (void*)value); } }; // System.Collections.Generic.Dictionary`2/ValueCollection<UnityEngine.Canvas,UnityEngine.UI.Collections.IndexedSet`1<UnityEngine.UI.Graphic>> struct ValueCollection_t987D376B17F692C3A1C2223C277336DAAA8DE68E : public RuntimeObject { public: // System.Collections.Generic.Dictionary`2<TKey,TValue> System.Collections.Generic.Dictionary`2/ValueCollection::dictionary Dictionary_2_t79A0FFC8A9EA909E2397C10AFBD9F64EC0154963 * ___dictionary_0; public: inline static int32_t get_offset_of_dictionary_0() { return static_cast<int32_t>(offsetof(ValueCollection_t987D376B17F692C3A1C2223C277336DAAA8DE68E, ___dictionary_0)); } inline Dictionary_2_t79A0FFC8A9EA909E2397C10AFBD9F64EC0154963 * get_dictionary_0() const { return ___dictionary_0; } inline Dictionary_2_t79A0FFC8A9EA909E2397C10AFBD9F64EC0154963 ** get_address_of_dictionary_0() { return &___dictionary_0; } inline void set_dictionary_0(Dictionary_2_t79A0FFC8A9EA909E2397C10AFBD9F64EC0154963 * value) { ___dictionary_0 = value; Il2CppCodeGenWriteBarrier((void**)(&___dictionary_0), (void*)value); } }; // System.Collections.ObjectModel.ReadOnlyDictionary`2/ValueCollection<UnityEngine.Canvas,UnityEngine.UI.Collections.IndexedSet`1<UnityEngine.UI.Graphic>> struct ValueCollection_t083FEA9A75D32522810BB19D2EA1C29E37E6ECB2 : public RuntimeObject { public: // System.Collections.Generic.ICollection`1<TValue> System.Collections.ObjectModel.ReadOnlyDictionary`2/ValueCollection::m_collection RuntimeObject* ___m_collection_0; // System.Object System.Collections.ObjectModel.ReadOnlyDictionary`2/ValueCollection::m_syncRoot RuntimeObject * ___m_syncRoot_1; public: inline static int32_t get_offset_of_m_collection_0() { return static_cast<int32_t>(offsetof(ValueCollection_t083FEA9A75D32522810BB19D2EA1C29E37E6ECB2, ___m_collection_0)); } inline RuntimeObject* get_m_collection_0() const { return ___m_collection_0; } inline RuntimeObject** get_address_of_m_collection_0() { return &___m_collection_0; } inline void set_m_collection_0(RuntimeObject* value) { ___m_collection_0 = value; Il2CppCodeGenWriteBarrier((void**)(&___m_collection_0), (void*)value); } inline static int32_t get_offset_of_m_syncRoot_1() { return static_cast<int32_t>(offsetof(ValueCollection_t083FEA9A75D32522810BB19D2EA1C29E37E6ECB2, ___m_syncRoot_1)); } inline RuntimeObject * get_m_syncRoot_1() const { return ___m_syncRoot_1; } inline RuntimeObject ** get_address_of_m_syncRoot_1() { return &___m_syncRoot_1; } inline void set_m_syncRoot_1(RuntimeObject * value) { ___m_syncRoot_1 = value; Il2CppCodeGenWriteBarrier((void**)(&___m_syncRoot_1), (void*)value); } }; // System.Collections.Generic.Dictionary`2/ValueCollection<UnityEngine.Font,System.Collections.Generic.HashSet`1<UnityEngine.UI.Text>> struct ValueCollection_t8A993A746E028F37667CE7308EB65DE1C38208A7 : public RuntimeObject { public: // System.Collections.Generic.Dictionary`2<TKey,TValue> System.Collections.Generic.Dictionary`2/ValueCollection::dictionary Dictionary_2_t4F42AAD6C75C36A4A9D4B0CD537DAF5D5F503079 * ___dictionary_0; public: inline static int32_t get_offset_of_dictionary_0() { return static_cast<int32_t>(offsetof(ValueCollection_t8A993A746E028F37667CE7308EB65DE1C38208A7, ___dictionary_0)); } inline Dictionary_2_t4F42AAD6C75C36A4A9D4B0CD537DAF5D5F503079 * get_dictionary_0() const { return ___dictionary_0; } inline Dictionary_2_t4F42AAD6C75C36A4A9D4B0CD537DAF5D5F503079 ** get_address_of_dictionary_0() { return &___dictionary_0; } inline void set_dictionary_0(Dictionary_2_t4F42AAD6C75C36A4A9D4B0CD537DAF5D5F503079 * value) { ___dictionary_0 = value; Il2CppCodeGenWriteBarrier((void**)(&___dictionary_0), (void*)value); } }; // System.Collections.ObjectModel.ReadOnlyDictionary`2/ValueCollection<UnityEngine.Font,System.Collections.Generic.HashSet`1<UnityEngine.UI.Text>> struct ValueCollection_t009B949C11EB2408622858A03487A795C1B1C1EC : public RuntimeObject { public: // System.Collections.Generic.ICollection`1<TValue> System.Collections.ObjectModel.ReadOnlyDictionary`2/ValueCollection::m_collection RuntimeObject* ___m_collection_0; // System.Object System.Collections.ObjectModel.ReadOnlyDictionary`2/ValueCollection::m_syncRoot RuntimeObject * ___m_syncRoot_1; public: inline static int32_t get_offset_of_m_collection_0() { return static_cast<int32_t>(offsetof(ValueCollection_t009B949C11EB2408622858A03487A795C1B1C1EC, ___m_collection_0)); } inline RuntimeObject* get_m_collection_0() const { return ___m_collection_0; } inline RuntimeObject** get_address_of_m_collection_0() { return &___m_collection_0; } inline void set_m_collection_0(RuntimeObject* value) { ___m_collection_0 = value; Il2CppCodeGenWriteBarrier((void**)(&___m_collection_0), (void*)value); } inline static int32_t get_offset_of_m_syncRoot_1() { return static_cast<int32_t>(offsetof(ValueCollection_t009B949C11EB2408622858A03487A795C1B1C1EC, ___m_syncRoot_1)); } inline RuntimeObject * get_m_syncRoot_1() const { return ___m_syncRoot_1; } inline RuntimeObject ** get_address_of_m_syncRoot_1() { return &___m_syncRoot_1; } inline void set_m_syncRoot_1(RuntimeObject * value) { ___m_syncRoot_1 = value; Il2CppCodeGenWriteBarrier((void**)(&___m_syncRoot_1), (void*)value); } }; // System.Collections.Generic.Dictionary`2/ValueCollection<UnityEngine.GameObject,System.Int32> struct ValueCollection_tB59E32F6DE14066D8CB7DAA6619EC7F136134AEB : public RuntimeObject { public: // System.Collections.Generic.Dictionary`2<TKey,TValue> System.Collections.Generic.Dictionary`2/ValueCollection::dictionary Dictionary_2_t4C2FB1CAF9188DADBB3D9EC66581072D16870B9B * ___dictionary_0; public: inline static int32_t get_offset_of_dictionary_0() { return static_cast<int32_t>(offsetof(ValueCollection_tB59E32F6DE14066D8CB7DAA6619EC7F136134AEB, ___dictionary_0)); } inline Dictionary_2_t4C2FB1CAF9188DADBB3D9EC66581072D16870B9B * get_dictionary_0() const { return ___dictionary_0; } inline Dictionary_2_t4C2FB1CAF9188DADBB3D9EC66581072D16870B9B ** get_address_of_dictionary_0() { return &___dictionary_0; } inline void set_dictionary_0(Dictionary_2_t4C2FB1CAF9188DADBB3D9EC66581072D16870B9B * value) { ___dictionary_0 = value; Il2CppCodeGenWriteBarrier((void**)(&___dictionary_0), (void*)value); } }; // System.Collections.ObjectModel.ReadOnlyDictionary`2/ValueCollection<UnityEngine.GameObject,System.Int32> struct ValueCollection_t687DD85C33A6A579776657196B09781C0213DB9F : public RuntimeObject { public: // System.Collections.Generic.ICollection`1<TValue> System.Collections.ObjectModel.ReadOnlyDictionary`2/ValueCollection::m_collection RuntimeObject* ___m_collection_0; // System.Object System.Collections.ObjectModel.ReadOnlyDictionary`2/ValueCollection::m_syncRoot RuntimeObject * ___m_syncRoot_1; public: inline static int32_t get_offset_of_m_collection_0() { return static_cast<int32_t>(offsetof(ValueCollection_t687DD85C33A6A579776657196B09781C0213DB9F, ___m_collection_0)); } inline RuntimeObject* get_m_collection_0() const { return ___m_collection_0; } inline RuntimeObject** get_address_of_m_collection_0() { return &___m_collection_0; } inline void set_m_collection_0(RuntimeObject* value) { ___m_collection_0 = value; Il2CppCodeGenWriteBarrier((void**)(&___m_collection_0), (void*)value); } inline static int32_t get_offset_of_m_syncRoot_1() { return static_cast<int32_t>(offsetof(ValueCollection_t687DD85C33A6A579776657196B09781C0213DB9F, ___m_syncRoot_1)); } inline RuntimeObject * get_m_syncRoot_1() const { return ___m_syncRoot_1; } inline RuntimeObject ** get_address_of_m_syncRoot_1() { return &___m_syncRoot_1; } inline void set_m_syncRoot_1(RuntimeObject * value) { ___m_syncRoot_1 = value; Il2CppCodeGenWriteBarrier((void**)(&___m_syncRoot_1), (void*)value); } }; // System.Collections.Generic.Dictionary`2/ValueCollection<UnityEngine.UI.Graphic,System.Int32> struct ValueCollection_tC19268DA6D70C8D072C7093D8ABCA28DAD4C6E3C : public RuntimeObject { public: // System.Collections.Generic.Dictionary`2<TKey,TValue> System.Collections.Generic.Dictionary`2/ValueCollection::dictionary Dictionary_2_t51811C4D09EBB297C0DFE9FA972CEB160E185E11 * ___dictionary_0; public: inline static int32_t get_offset_of_dictionary_0() { return static_cast<int32_t>(offsetof(ValueCollection_tC19268DA6D70C8D072C7093D8ABCA28DAD4C6E3C, ___dictionary_0)); } inline Dictionary_2_t51811C4D09EBB297C0DFE9FA972CEB160E185E11 * get_dictionary_0() const { return ___dictionary_0; } inline Dictionary_2_t51811C4D09EBB297C0DFE9FA972CEB160E185E11 ** get_address_of_dictionary_0() { return &___dictionary_0; } inline void set_dictionary_0(Dictionary_2_t51811C4D09EBB297C0DFE9FA972CEB160E185E11 * value) { ___dictionary_0 = value; Il2CppCodeGenWriteBarrier((void**)(&___dictionary_0), (void*)value); } }; // System.Collections.ObjectModel.ReadOnlyDictionary`2/ValueCollection<UnityEngine.UI.Graphic,System.Int32> struct ValueCollection_t30AD529B9F75532560A194BC17C58F7FC6730EED : public RuntimeObject { public: // System.Collections.Generic.ICollection`1<TValue> System.Collections.ObjectModel.ReadOnlyDictionary`2/ValueCollection::m_collection RuntimeObject* ___m_collection_0; // System.Object System.Collections.ObjectModel.ReadOnlyDictionary`2/ValueCollection::m_syncRoot RuntimeObject * ___m_syncRoot_1; public: inline static int32_t get_offset_of_m_collection_0() { return static_cast<int32_t>(offsetof(ValueCollection_t30AD529B9F75532560A194BC17C58F7FC6730EED, ___m_collection_0)); } inline RuntimeObject* get_m_collection_0() const { return ___m_collection_0; } inline RuntimeObject** get_address_of_m_collection_0() { return &___m_collection_0; } inline void set_m_collection_0(RuntimeObject* value) { ___m_collection_0 = value; Il2CppCodeGenWriteBarrier((void**)(&___m_collection_0), (void*)value); } inline static int32_t get_offset_of_m_syncRoot_1() { return static_cast<int32_t>(offsetof(ValueCollection_t30AD529B9F75532560A194BC17C58F7FC6730EED, ___m_syncRoot_1)); } inline RuntimeObject * get_m_syncRoot_1() const { return ___m_syncRoot_1; } inline RuntimeObject ** get_address_of_m_syncRoot_1() { return &___m_syncRoot_1; } inline void set_m_syncRoot_1(RuntimeObject * value) { ___m_syncRoot_1 = value; Il2CppCodeGenWriteBarrier((void**)(&___m_syncRoot_1), (void*)value); } }; // System.Collections.ObjectModel.ReadOnlyDictionary`2/ValueCollection<System.Guid,System.Tuple`2<System.Guid,System.Int32>> struct ValueCollection_t6A5B0DF4354EAC00C0B894C9DA2A5EEC7D797A3F : public RuntimeObject { public: // System.Collections.Generic.ICollection`1<TValue> System.Collections.ObjectModel.ReadOnlyDictionary`2/ValueCollection::m_collection RuntimeObject* ___m_collection_0; // System.Object System.Collections.ObjectModel.ReadOnlyDictionary`2/ValueCollection::m_syncRoot RuntimeObject * ___m_syncRoot_1; public: inline static int32_t get_offset_of_m_collection_0() { return static_cast<int32_t>(offsetof(ValueCollection_t6A5B0DF4354EAC00C0B894C9DA2A5EEC7D797A3F, ___m_collection_0)); } inline RuntimeObject* get_m_collection_0() const { return ___m_collection_0; } inline RuntimeObject** get_address_of_m_collection_0() { return &___m_collection_0; } inline void set_m_collection_0(RuntimeObject* value) { ___m_collection_0 = value; Il2CppCodeGenWriteBarrier((void**)(&___m_collection_0), (void*)value); } inline static int32_t get_offset_of_m_syncRoot_1() { return static_cast<int32_t>(offsetof(ValueCollection_t6A5B0DF4354EAC00C0B894C9DA2A5EEC7D797A3F, ___m_syncRoot_1)); } inline RuntimeObject * get_m_syncRoot_1() const { return ___m_syncRoot_1; } inline RuntimeObject ** get_address_of_m_syncRoot_1() { return &___m_syncRoot_1; } inline void set_m_syncRoot_1(RuntimeObject * value) { ___m_syncRoot_1 = value; Il2CppCodeGenWriteBarrier((void**)(&___m_syncRoot_1), (void*)value); } }; // System.Collections.ObjectModel.ReadOnlyDictionary`2/ValueCollection<System.Guid,System.Int32> struct ValueCollection_t36A365EF75A9898A232CCFD4C304FC50183E03D6 : public RuntimeObject { public: // System.Collections.Generic.ICollection`1<TValue> System.Collections.ObjectModel.ReadOnlyDictionary`2/ValueCollection::m_collection RuntimeObject* ___m_collection_0; // System.Object System.Collections.ObjectModel.ReadOnlyDictionary`2/ValueCollection::m_syncRoot RuntimeObject * ___m_syncRoot_1; public: inline static int32_t get_offset_of_m_collection_0() { return static_cast<int32_t>(offsetof(ValueCollection_t36A365EF75A9898A232CCFD4C304FC50183E03D6, ___m_collection_0)); } inline RuntimeObject* get_m_collection_0() const { return ___m_collection_0; } inline RuntimeObject** get_address_of_m_collection_0() { return &___m_collection_0; } inline void set_m_collection_0(RuntimeObject* value) { ___m_collection_0 = value; Il2CppCodeGenWriteBarrier((void**)(&___m_collection_0), (void*)value); } inline static int32_t get_offset_of_m_syncRoot_1() { return static_cast<int32_t>(offsetof(ValueCollection_t36A365EF75A9898A232CCFD4C304FC50183E03D6, ___m_syncRoot_1)); } inline RuntimeObject * get_m_syncRoot_1() const { return ___m_syncRoot_1; } inline RuntimeObject ** get_address_of_m_syncRoot_1() { return &___m_syncRoot_1; } inline void set_m_syncRoot_1(RuntimeObject * value) { ___m_syncRoot_1 = value; Il2CppCodeGenWriteBarrier((void**)(&___m_syncRoot_1), (void*)value); } }; // System.Collections.Generic.Dictionary`2/ValueCollection<Microsoft.MixedReality.Toolkit.Utilities.Handedness,Microsoft.MixedReality.Toolkit.Input.BaseController> struct ValueCollection_tAB3D275422BBD679742D499500068288F32F743C : public RuntimeObject { public: // System.Collections.Generic.Dictionary`2<TKey,TValue> System.Collections.Generic.Dictionary`2/ValueCollection::dictionary Dictionary_2_t9054E991F47F7865DE780AFF580C391F6BD4CF0A * ___dictionary_0; public: inline static int32_t get_offset_of_dictionary_0() { return static_cast<int32_t>(offsetof(ValueCollection_tAB3D275422BBD679742D499500068288F32F743C, ___dictionary_0)); } inline Dictionary_2_t9054E991F47F7865DE780AFF580C391F6BD4CF0A * get_dictionary_0() const { return ___dictionary_0; } inline Dictionary_2_t9054E991F47F7865DE780AFF580C391F6BD4CF0A ** get_address_of_dictionary_0() { return &___dictionary_0; } inline void set_dictionary_0(Dictionary_2_t9054E991F47F7865DE780AFF580C391F6BD4CF0A * value) { ___dictionary_0 = value; Il2CppCodeGenWriteBarrier((void**)(&___dictionary_0), (void*)value); } }; // System.Collections.ObjectModel.ReadOnlyDictionary`2/ValueCollection<Microsoft.MixedReality.Toolkit.Utilities.Handedness,Microsoft.MixedReality.Toolkit.Input.BaseController> struct ValueCollection_tE6BEF3F24A1C7F1455A49BF00CA6076DEB5E2498 : public RuntimeObject { public: // System.Collections.Generic.ICollection`1<TValue> System.Collections.ObjectModel.ReadOnlyDictionary`2/ValueCollection::m_collection RuntimeObject* ___m_collection_0; // System.Object System.Collections.ObjectModel.ReadOnlyDictionary`2/ValueCollection::m_syncRoot RuntimeObject * ___m_syncRoot_1; public: inline static int32_t get_offset_of_m_collection_0() { return static_cast<int32_t>(offsetof(ValueCollection_tE6BEF3F24A1C7F1455A49BF00CA6076DEB5E2498, ___m_collection_0)); } inline RuntimeObject* get_m_collection_0() const { return ___m_collection_0; } inline RuntimeObject** get_address_of_m_collection_0() { return &___m_collection_0; } inline void set_m_collection_0(RuntimeObject* value) { ___m_collection_0 = value; Il2CppCodeGenWriteBarrier((void**)(&___m_collection_0), (void*)value); } inline static int32_t get_offset_of_m_syncRoot_1() { return static_cast<int32_t>(offsetof(ValueCollection_tE6BEF3F24A1C7F1455A49BF00CA6076DEB5E2498, ___m_syncRoot_1)); } inline RuntimeObject * get_m_syncRoot_1() const { return ___m_syncRoot_1; } inline RuntimeObject ** get_address_of_m_syncRoot_1() { return &___m_syncRoot_1; } inline void set_m_syncRoot_1(RuntimeObject * value) { ___m_syncRoot_1 = value; Il2CppCodeGenWriteBarrier((void**)(&___m_syncRoot_1), (void*)value); } }; // System.Collections.Generic.Dictionary`2/ValueCollection<Microsoft.MixedReality.Toolkit.Utilities.Handedness,UnityEngine.Bounds> struct ValueCollection_t23BA514F384D3800CEEF013DC82F77AB90723B77 : public RuntimeObject { public: // System.Collections.Generic.Dictionary`2<TKey,TValue> System.Collections.Generic.Dictionary`2/ValueCollection::dictionary Dictionary_2_t0265B6A2493CAAC3C1DA90D29F0EF7835A616C6F * ___dictionary_0; public: inline static int32_t get_offset_of_dictionary_0() { return static_cast<int32_t>(offsetof(ValueCollection_t23BA514F384D3800CEEF013DC82F77AB90723B77, ___dictionary_0)); } inline Dictionary_2_t0265B6A2493CAAC3C1DA90D29F0EF7835A616C6F * get_dictionary_0() const { return ___dictionary_0; } inline Dictionary_2_t0265B6A2493CAAC3C1DA90D29F0EF7835A616C6F ** get_address_of_dictionary_0() { return &___dictionary_0; } inline void set_dictionary_0(Dictionary_2_t0265B6A2493CAAC3C1DA90D29F0EF7835A616C6F * value) { ___dictionary_0 = value; Il2CppCodeGenWriteBarrier((void**)(&___dictionary_0), (void*)value); } }; // System.Collections.ObjectModel.ReadOnlyDictionary`2/ValueCollection<Microsoft.MixedReality.Toolkit.Utilities.Handedness,UnityEngine.Bounds> struct ValueCollection_t539BC11F236247C9CC30728B3B96811F4F862C2D : public RuntimeObject { public: // System.Collections.Generic.ICollection`1<TValue> System.Collections.ObjectModel.ReadOnlyDictionary`2/ValueCollection::m_collection RuntimeObject* ___m_collection_0; // System.Object System.Collections.ObjectModel.ReadOnlyDictionary`2/ValueCollection::m_syncRoot RuntimeObject * ___m_syncRoot_1; public: inline static int32_t get_offset_of_m_collection_0() { return static_cast<int32_t>(offsetof(ValueCollection_t539BC11F236247C9CC30728B3B96811F4F862C2D, ___m_collection_0)); } inline RuntimeObject* get_m_collection_0() const { return ___m_collection_0; } inline RuntimeObject** get_address_of_m_collection_0() { return &___m_collection_0; } inline void set_m_collection_0(RuntimeObject* value) { ___m_collection_0 = value; Il2CppCodeGenWriteBarrier((void**)(&___m_collection_0), (void*)value); } inline static int32_t get_offset_of_m_syncRoot_1() { return static_cast<int32_t>(offsetof(ValueCollection_t539BC11F236247C9CC30728B3B96811F4F862C2D, ___m_syncRoot_1)); } inline RuntimeObject * get_m_syncRoot_1() const { return ___m_syncRoot_1; } inline RuntimeObject ** get_address_of_m_syncRoot_1() { return &___m_syncRoot_1; } inline void set_m_syncRoot_1(RuntimeObject * value) { ___m_syncRoot_1 = value; Il2CppCodeGenWriteBarrier((void**)(&___m_syncRoot_1), (void*)value); } }; // System.Collections.Generic.Dictionary`2/ValueCollection<Microsoft.MixedReality.Toolkit.Utilities.Handedness,UnityEngine.Matrix4x4> struct ValueCollection_tB75357A46ECE3ECE3468011101EB523C748B913B : public RuntimeObject { public: // System.Collections.Generic.Dictionary`2<TKey,TValue> System.Collections.Generic.Dictionary`2/ValueCollection::dictionary Dictionary_2_tEE37FDDA6121B97A6381633A5BAE7CD3FF14BDF9 * ___dictionary_0; public: inline static int32_t get_offset_of_dictionary_0() { return static_cast<int32_t>(offsetof(ValueCollection_tB75357A46ECE3ECE3468011101EB523C748B913B, ___dictionary_0)); } inline Dictionary_2_tEE37FDDA6121B97A6381633A5BAE7CD3FF14BDF9 * get_dictionary_0() const { return ___dictionary_0; } inline Dictionary_2_tEE37FDDA6121B97A6381633A5BAE7CD3FF14BDF9 ** get_address_of_dictionary_0() { return &___dictionary_0; } inline void set_dictionary_0(Dictionary_2_tEE37FDDA6121B97A6381633A5BAE7CD3FF14BDF9 * value) { ___dictionary_0 = value; Il2CppCodeGenWriteBarrier((void**)(&___dictionary_0), (void*)value); } }; // System.Collections.ObjectModel.ReadOnlyDictionary`2/ValueCollection<Microsoft.MixedReality.Toolkit.Utilities.Handedness,UnityEngine.Matrix4x4> struct ValueCollection_tE4C718B5DB901E5EDD5767145ABB2CE15A7925D4 : public RuntimeObject { public: // System.Collections.Generic.ICollection`1<TValue> System.Collections.ObjectModel.ReadOnlyDictionary`2/ValueCollection::m_collection RuntimeObject* ___m_collection_0; // System.Object System.Collections.ObjectModel.ReadOnlyDictionary`2/ValueCollection::m_syncRoot RuntimeObject * ___m_syncRoot_1; public: inline static int32_t get_offset_of_m_collection_0() { return static_cast<int32_t>(offsetof(ValueCollection_tE4C718B5DB901E5EDD5767145ABB2CE15A7925D4, ___m_collection_0)); } inline RuntimeObject* get_m_collection_0() const { return ___m_collection_0; } inline RuntimeObject** get_address_of_m_collection_0() { return &___m_collection_0; } inline void set_m_collection_0(RuntimeObject* value) { ___m_collection_0 = value; Il2CppCodeGenWriteBarrier((void**)(&___m_collection_0), (void*)value); } inline static int32_t get_offset_of_m_syncRoot_1() { return static_cast<int32_t>(offsetof(ValueCollection_tE4C718B5DB901E5EDD5767145ABB2CE15A7925D4, ___m_syncRoot_1)); } inline RuntimeObject * get_m_syncRoot_1() const { return ___m_syncRoot_1; } inline RuntimeObject ** get_address_of_m_syncRoot_1() { return &___m_syncRoot_1; } inline void set_m_syncRoot_1(RuntimeObject * value) { ___m_syncRoot_1 = value; Il2CppCodeGenWriteBarrier((void**)(&___m_syncRoot_1), (void*)value); } }; // System.Collections.Generic.Dictionary`2/ValueCollection<System.Threading.IAsyncLocal,System.Object> struct ValueCollection_tF61B113C13A26D63D35C2C68CB0E099ABA87C9AA : public RuntimeObject { public: // System.Collections.Generic.Dictionary`2<TKey,TValue> System.Collections.Generic.Dictionary`2/ValueCollection::dictionary Dictionary_2_tED8EC0DF62452D89154D9584AC19F62C79BF3938 * ___dictionary_0; public: inline static int32_t get_offset_of_dictionary_0() { return static_cast<int32_t>(offsetof(ValueCollection_tF61B113C13A26D63D35C2C68CB0E099ABA87C9AA, ___dictionary_0)); } inline Dictionary_2_tED8EC0DF62452D89154D9584AC19F62C79BF3938 * get_dictionary_0() const { return ___dictionary_0; } inline Dictionary_2_tED8EC0DF62452D89154D9584AC19F62C79BF3938 ** get_address_of_dictionary_0() { return &___dictionary_0; } inline void set_dictionary_0(Dictionary_2_tED8EC0DF62452D89154D9584AC19F62C79BF3938 * value) { ___dictionary_0 = value; Il2CppCodeGenWriteBarrier((void**)(&___dictionary_0), (void*)value); } }; // System.Collections.ObjectModel.ReadOnlyDictionary`2/ValueCollection<System.Threading.IAsyncLocal,System.Object> struct ValueCollection_t829D1A2C21BCE93FBCBE9E029CCC77E24419ADC3 : public RuntimeObject { public: // System.Collections.Generic.ICollection`1<TValue> System.Collections.ObjectModel.ReadOnlyDictionary`2/ValueCollection::m_collection RuntimeObject* ___m_collection_0; // System.Object System.Collections.ObjectModel.ReadOnlyDictionary`2/ValueCollection::m_syncRoot RuntimeObject * ___m_syncRoot_1; public: inline static int32_t get_offset_of_m_collection_0() { return static_cast<int32_t>(offsetof(ValueCollection_t829D1A2C21BCE93FBCBE9E029CCC77E24419ADC3, ___m_collection_0)); } inline RuntimeObject* get_m_collection_0() const { return ___m_collection_0; } inline RuntimeObject** get_address_of_m_collection_0() { return &___m_collection_0; } inline void set_m_collection_0(RuntimeObject* value) { ___m_collection_0 = value; Il2CppCodeGenWriteBarrier((void**)(&___m_collection_0), (void*)value); } inline static int32_t get_offset_of_m_syncRoot_1() { return static_cast<int32_t>(offsetof(ValueCollection_t829D1A2C21BCE93FBCBE9E029CCC77E24419ADC3, ___m_syncRoot_1)); } inline RuntimeObject * get_m_syncRoot_1() const { return ___m_syncRoot_1; } inline RuntimeObject ** get_address_of_m_syncRoot_1() { return &___m_syncRoot_1; } inline void set_m_syncRoot_1(RuntimeObject * value) { ___m_syncRoot_1 = value; Il2CppCodeGenWriteBarrier((void**)(&___m_syncRoot_1), (void*)value); } }; // System.Collections.Generic.Dictionary`2/ValueCollection<UnityEngine.UI.ICanvasElement,System.Int32> struct ValueCollection_tBFDE9B9EC6D8A4DD5D5E4EDCB8D0C3FE7C902888 : public RuntimeObject { public: // System.Collections.Generic.Dictionary`2<TKey,TValue> System.Collections.Generic.Dictionary`2/ValueCollection::dictionary Dictionary_2_t059F96DADCC8B901973F95056D8107AB675AEE96 * ___dictionary_0; public: inline static int32_t get_offset_of_dictionary_0() { return static_cast<int32_t>(offsetof(ValueCollection_tBFDE9B9EC6D8A4DD5D5E4EDCB8D0C3FE7C902888, ___dictionary_0)); } inline Dictionary_2_t059F96DADCC8B901973F95056D8107AB675AEE96 * get_dictionary_0() const { return ___dictionary_0; } inline Dictionary_2_t059F96DADCC8B901973F95056D8107AB675AEE96 ** get_address_of_dictionary_0() { return &___dictionary_0; } inline void set_dictionary_0(Dictionary_2_t059F96DADCC8B901973F95056D8107AB675AEE96 * value) { ___dictionary_0 = value; Il2CppCodeGenWriteBarrier((void**)(&___dictionary_0), (void*)value); } }; // System.Collections.ObjectModel.ReadOnlyDictionary`2/ValueCollection<UnityEngine.UI.ICanvasElement,System.Int32> struct ValueCollection_tDFE3548B5884867CBB3AD8597EAF0B6F4F6E80D8 : public RuntimeObject { public: // System.Collections.Generic.ICollection`1<TValue> System.Collections.ObjectModel.ReadOnlyDictionary`2/ValueCollection::m_collection RuntimeObject* ___m_collection_0; // System.Object System.Collections.ObjectModel.ReadOnlyDictionary`2/ValueCollection::m_syncRoot RuntimeObject * ___m_syncRoot_1; public: inline static int32_t get_offset_of_m_collection_0() { return static_cast<int32_t>(offsetof(ValueCollection_tDFE3548B5884867CBB3AD8597EAF0B6F4F6E80D8, ___m_collection_0)); } inline RuntimeObject* get_m_collection_0() const { return ___m_collection_0; } inline RuntimeObject** get_address_of_m_collection_0() { return &___m_collection_0; } inline void set_m_collection_0(RuntimeObject* value) { ___m_collection_0 = value; Il2CppCodeGenWriteBarrier((void**)(&___m_collection_0), (void*)value); } inline static int32_t get_offset_of_m_syncRoot_1() { return static_cast<int32_t>(offsetof(ValueCollection_tDFE3548B5884867CBB3AD8597EAF0B6F4F6E80D8, ___m_syncRoot_1)); } inline RuntimeObject * get_m_syncRoot_1() const { return ___m_syncRoot_1; } inline RuntimeObject ** get_address_of_m_syncRoot_1() { return &___m_syncRoot_1; } inline void set_m_syncRoot_1(RuntimeObject * value) { ___m_syncRoot_1 = value; Il2CppCodeGenWriteBarrier((void**)(&___m_syncRoot_1), (void*)value); } }; // System.Collections.Generic.Dictionary`2/ValueCollection<UnityEngine.UI.IClipper,System.Int32> struct ValueCollection_tAF8510AEC053B82FDD729C9744C8A2CF6EF6197C : public RuntimeObject { public: // System.Collections.Generic.Dictionary`2<TKey,TValue> System.Collections.Generic.Dictionary`2/ValueCollection::dictionary Dictionary_2_tE0026BDD5CB0F84F7271F011A4C20757945DE83F * ___dictionary_0; public: inline static int32_t get_offset_of_dictionary_0() { return static_cast<int32_t>(offsetof(ValueCollection_tAF8510AEC053B82FDD729C9744C8A2CF6EF6197C, ___dictionary_0)); } inline Dictionary_2_tE0026BDD5CB0F84F7271F011A4C20757945DE83F * get_dictionary_0() const { return ___dictionary_0; } inline Dictionary_2_tE0026BDD5CB0F84F7271F011A4C20757945DE83F ** get_address_of_dictionary_0() { return &___dictionary_0; } inline void set_dictionary_0(Dictionary_2_tE0026BDD5CB0F84F7271F011A4C20757945DE83F * value) { ___dictionary_0 = value; Il2CppCodeGenWriteBarrier((void**)(&___dictionary_0), (void*)value); } }; // System.Collections.ObjectModel.ReadOnlyDictionary`2/ValueCollection<UnityEngine.UI.IClipper,System.Int32> struct ValueCollection_t576049C739ADEC4FC22A6AD4A068322B2F5A5C90 : public RuntimeObject { public: // System.Collections.Generic.ICollection`1<TValue> System.Collections.ObjectModel.ReadOnlyDictionary`2/ValueCollection::m_collection RuntimeObject* ___m_collection_0; // System.Object System.Collections.ObjectModel.ReadOnlyDictionary`2/ValueCollection::m_syncRoot RuntimeObject * ___m_syncRoot_1; public: inline static int32_t get_offset_of_m_collection_0() { return static_cast<int32_t>(offsetof(ValueCollection_t576049C739ADEC4FC22A6AD4A068322B2F5A5C90, ___m_collection_0)); } inline RuntimeObject* get_m_collection_0() const { return ___m_collection_0; } inline RuntimeObject** get_address_of_m_collection_0() { return &___m_collection_0; } inline void set_m_collection_0(RuntimeObject* value) { ___m_collection_0 = value; Il2CppCodeGenWriteBarrier((void**)(&___m_collection_0), (void*)value); } inline static int32_t get_offset_of_m_syncRoot_1() { return static_cast<int32_t>(offsetof(ValueCollection_t576049C739ADEC4FC22A6AD4A068322B2F5A5C90, ___m_syncRoot_1)); } inline RuntimeObject * get_m_syncRoot_1() const { return ___m_syncRoot_1; } inline RuntimeObject ** get_address_of_m_syncRoot_1() { return &___m_syncRoot_1; } inline void set_m_syncRoot_1(RuntimeObject * value) { ___m_syncRoot_1 = value; Il2CppCodeGenWriteBarrier((void**)(&___m_syncRoot_1), (void*)value); } }; // System.Collections.Generic.Dictionary`2/ValueCollection<Microsoft.MixedReality.Toolkit.Input.IMixedRealityController,UnityEngine.Vector3> struct ValueCollection_tB1299CA92BE8F0D1A523C323EEE42A2715BEF32D : public RuntimeObject { public: // System.Collections.Generic.Dictionary`2<TKey,TValue> System.Collections.Generic.Dictionary`2/ValueCollection::dictionary Dictionary_2_t82EFBA5BED7334BA275A9DC2B6853A1FF1E144DF * ___dictionary_0; public: inline static int32_t get_offset_of_dictionary_0() { return static_cast<int32_t>(offsetof(ValueCollection_tB1299CA92BE8F0D1A523C323EEE42A2715BEF32D, ___dictionary_0)); } inline Dictionary_2_t82EFBA5BED7334BA275A9DC2B6853A1FF1E144DF * get_dictionary_0() const { return ___dictionary_0; } inline Dictionary_2_t82EFBA5BED7334BA275A9DC2B6853A1FF1E144DF ** get_address_of_dictionary_0() { return &___dictionary_0; } inline void set_dictionary_0(Dictionary_2_t82EFBA5BED7334BA275A9DC2B6853A1FF1E144DF * value) { ___dictionary_0 = value; Il2CppCodeGenWriteBarrier((void**)(&___dictionary_0), (void*)value); } }; // System.String struct String_t : public RuntimeObject { public: // System.Int32 System.String::m_stringLength int32_t ___m_stringLength_0; // System.Char System.String::m_firstChar Il2CppChar ___m_firstChar_1; public: inline static int32_t get_offset_of_m_stringLength_0() { return static_cast<int32_t>(offsetof(String_t, ___m_stringLength_0)); } inline int32_t get_m_stringLength_0() const { return ___m_stringLength_0; } inline int32_t* get_address_of_m_stringLength_0() { return &___m_stringLength_0; } inline void set_m_stringLength_0(int32_t value) { ___m_stringLength_0 = value; } inline static int32_t get_offset_of_m_firstChar_1() { return static_cast<int32_t>(offsetof(String_t, ___m_firstChar_1)); } inline Il2CppChar get_m_firstChar_1() const { return ___m_firstChar_1; } inline Il2CppChar* get_address_of_m_firstChar_1() { return &___m_firstChar_1; } inline void set_m_firstChar_1(Il2CppChar value) { ___m_firstChar_1 = value; } }; struct String_t_StaticFields { public: // System.String System.String::Empty String_t* ___Empty_5; public: inline static int32_t get_offset_of_Empty_5() { return static_cast<int32_t>(offsetof(String_t_StaticFields, ___Empty_5)); } inline String_t* get_Empty_5() const { return ___Empty_5; } inline String_t** get_address_of_Empty_5() { return &___Empty_5; } inline void set_Empty_5(String_t* value) { ___Empty_5 = value; Il2CppCodeGenWriteBarrier((void**)(&___Empty_5), (void*)value); } }; // System.ValueType struct ValueType_tDBF999C1B75C48C68621878250DBF6CDBCF51E52 : public RuntimeObject { public: public: }; // Native definition for P/Invoke marshalling of System.ValueType struct ValueType_tDBF999C1B75C48C68621878250DBF6CDBCF51E52_marshaled_pinvoke { }; // Native definition for COM marshalling of System.ValueType struct ValueType_tDBF999C1B75C48C68621878250DBF6CDBCF51E52_marshaled_com { }; // System.__Il2CppComObject // System.Enum struct Enum_t23B90B40F60E677A8025267341651C94AE079CDA : public ValueType_tDBF999C1B75C48C68621878250DBF6CDBCF51E52 { public: public: }; struct Enum_t23B90B40F60E677A8025267341651C94AE079CDA_StaticFields { public: // System.Char[] System.Enum::enumSeperatorCharArray CharU5BU5D_t7B7FC5BC8091AA3B9CB0B29CDD80B5EE9254AA34* ___enumSeperatorCharArray_0; public: inline static int32_t get_offset_of_enumSeperatorCharArray_0() { return static_cast<int32_t>(offsetof(Enum_t23B90B40F60E677A8025267341651C94AE079CDA_StaticFields, ___enumSeperatorCharArray_0)); } inline CharU5BU5D_t7B7FC5BC8091AA3B9CB0B29CDD80B5EE9254AA34* get_enumSeperatorCharArray_0() const { return ___enumSeperatorCharArray_0; } inline CharU5BU5D_t7B7FC5BC8091AA3B9CB0B29CDD80B5EE9254AA34** get_address_of_enumSeperatorCharArray_0() { return &___enumSeperatorCharArray_0; } inline void set_enumSeperatorCharArray_0(CharU5BU5D_t7B7FC5BC8091AA3B9CB0B29CDD80B5EE9254AA34* value) { ___enumSeperatorCharArray_0 = value; Il2CppCodeGenWriteBarrier((void**)(&___enumSeperatorCharArray_0), (void*)value); } }; // Native definition for P/Invoke marshalling of System.Enum struct Enum_t23B90B40F60E677A8025267341651C94AE079CDA_marshaled_pinvoke { }; // Native definition for COM marshalling of System.Enum struct Enum_t23B90B40F60E677A8025267341651C94AE079CDA_marshaled_com { }; // System.Runtime.InteropServices.WindowsRuntime.EventRegistrationToken struct EventRegistrationToken_t5460ED02F1A6B74B604DFD634E8D5429857E9830 { public: // System.UInt64 System.Runtime.InteropServices.WindowsRuntime.EventRegistrationToken::m_value uint64_t ___m_value_0; public: inline static int32_t get_offset_of_m_value_0() { return static_cast<int32_t>(offsetof(EventRegistrationToken_t5460ED02F1A6B74B604DFD634E8D5429857E9830, ___m_value_0)); } inline uint64_t get_m_value_0() const { return ___m_value_0; } inline uint64_t* get_address_of_m_value_0() { return &___m_value_0; } inline void set_m_value_0(uint64_t value) { ___m_value_0 = value; } }; // Windows.UI.ViewManagement.InputPane struct InputPane_tF3B65D04E39FC6EB8DD27594586A06CF7EE2B393 : public Il2CppComObject { public: public: }; struct InputPane_tF3B65D04E39FC6EB8DD27594586A06CF7EE2B393_StaticFields { public: // Cached pointer to IActivationFactory Il2CppIActivationFactory* activationFactory; // Cached pointer to Windows.UI.ViewManagement.IInputPaneStatics IInputPaneStatics_tF07CAB02A42CD9CA892BFE42F9AE9FB9D0A54658* ____iinputPaneStatics_tF07CAB02A42CD9CA892BFE42F9AE9FB9D0A54658; // Cached pointer to Windows.UI.ViewManagement.IInputPaneStatics2 IInputPaneStatics2_t2C7EC62CFDA4BAC43A693D65F396A1BFE7A60558* ____iinputPaneStatics2_t2C7EC62CFDA4BAC43A693D65F396A1BFE7A60558; public: inline Il2CppIActivationFactory* get_activationFactory() { Il2CppIActivationFactory* returnValue = activationFactory; if (returnValue == NULL) { il2cpp::utils::StringView<Il2CppNativeChar> className(IL2CPP_NATIVE_STRING("Windows.UI.ViewManagement.InputPane")); returnValue = il2cpp_codegen_windows_runtime_get_activation_factory(className); if (il2cpp_codegen_atomic_compare_exchange_pointer((void**)(&activationFactory), returnValue, NULL) != NULL) { returnValue->Release(); returnValue = activationFactory; } } return returnValue; } inline IInputPaneStatics_tF07CAB02A42CD9CA892BFE42F9AE9FB9D0A54658* get_____iinputPaneStatics_tF07CAB02A42CD9CA892BFE42F9AE9FB9D0A54658() { IInputPaneStatics_tF07CAB02A42CD9CA892BFE42F9AE9FB9D0A54658* returnValue = ____iinputPaneStatics_tF07CAB02A42CD9CA892BFE42F9AE9FB9D0A54658; if (returnValue == NULL) { const il2cpp_hresult_t hr = get_activationFactory()->QueryInterface(IInputPaneStatics_tF07CAB02A42CD9CA892BFE42F9AE9FB9D0A54658::IID, reinterpret_cast<void**>(&returnValue)); il2cpp_codegen_com_raise_exception_if_failed(hr, false); if (il2cpp_codegen_atomic_compare_exchange_pointer((void**)(&____iinputPaneStatics_tF07CAB02A42CD9CA892BFE42F9AE9FB9D0A54658), returnValue, NULL) != NULL) { returnValue->Release(); returnValue = ____iinputPaneStatics_tF07CAB02A42CD9CA892BFE42F9AE9FB9D0A54658; } } return returnValue; } inline IInputPaneStatics2_t2C7EC62CFDA4BAC43A693D65F396A1BFE7A60558* get_____iinputPaneStatics2_t2C7EC62CFDA4BAC43A693D65F396A1BFE7A60558() { IInputPaneStatics2_t2C7EC62CFDA4BAC43A693D65F396A1BFE7A60558* returnValue = ____iinputPaneStatics2_t2C7EC62CFDA4BAC43A693D65F396A1BFE7A60558; if (returnValue == NULL) { const il2cpp_hresult_t hr = get_activationFactory()->QueryInterface(IInputPaneStatics2_t2C7EC62CFDA4BAC43A693D65F396A1BFE7A60558::IID, reinterpret_cast<void**>(&returnValue)); il2cpp_codegen_com_raise_exception_if_failed(hr, false); if (il2cpp_codegen_atomic_compare_exchange_pointer((void**)(&____iinputPaneStatics2_t2C7EC62CFDA4BAC43A693D65F396A1BFE7A60558), returnValue, NULL) != NULL) { returnValue->Release(); returnValue = ____iinputPaneStatics2_t2C7EC62CFDA4BAC43A693D65F396A1BFE7A60558; } } return returnValue; } }; // Windows.UI.ViewManagement.InputPaneVisibilityEventArgs struct InputPaneVisibilityEventArgs_t049567B03D376F2BA4816EF9F1519EF06AAEE0D6 : public Il2CppComObject { public: public: }; // 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; } }; // Microsoft.MixedReality.Toolkit.Utilities.Response struct Response_t6D496C49C62BA506F35533BE79AF5B2BA24B64B5 { public: // System.Boolean Microsoft.MixedReality.Toolkit.Utilities.Response::<Successful>k__BackingField bool ___U3CSuccessfulU3Ek__BackingField_0; // System.String Microsoft.MixedReality.Toolkit.Utilities.Response::responseBody String_t* ___responseBody_1; // System.Func`1<System.String> Microsoft.MixedReality.Toolkit.Utilities.Response::responseBodyAction Func_1_t2F3325DADD1F420568A48646BFC825E9F29472B1 * ___responseBodyAction_2; // System.Byte[] Microsoft.MixedReality.Toolkit.Utilities.Response::responseData ByteU5BU5D_tDBBEB0E8362242FA7223000D978B0DD19D4B0726* ___responseData_3; // System.Func`1<System.Byte[]> Microsoft.MixedReality.Toolkit.Utilities.Response::responseDataAction Func_1_tD8059ADEA67BC54CB9CB92E8719A3A6BE8473473 * ___responseDataAction_4; // System.Int64 Microsoft.MixedReality.Toolkit.Utilities.Response::<ResponseCode>k__BackingField int64_t ___U3CResponseCodeU3Ek__BackingField_5; public: inline static int32_t get_offset_of_U3CSuccessfulU3Ek__BackingField_0() { return static_cast<int32_t>(offsetof(Response_t6D496C49C62BA506F35533BE79AF5B2BA24B64B5, ___U3CSuccessfulU3Ek__BackingField_0)); } inline bool get_U3CSuccessfulU3Ek__BackingField_0() const { return ___U3CSuccessfulU3Ek__BackingField_0; } inline bool* get_address_of_U3CSuccessfulU3Ek__BackingField_0() { return &___U3CSuccessfulU3Ek__BackingField_0; } inline void set_U3CSuccessfulU3Ek__BackingField_0(bool value) { ___U3CSuccessfulU3Ek__BackingField_0 = value; } inline static int32_t get_offset_of_responseBody_1() { return static_cast<int32_t>(offsetof(Response_t6D496C49C62BA506F35533BE79AF5B2BA24B64B5, ___responseBody_1)); } inline String_t* get_responseBody_1() const { return ___responseBody_1; } inline String_t** get_address_of_responseBody_1() { return &___responseBody_1; } inline void set_responseBody_1(String_t* value) { ___responseBody_1 = value; Il2CppCodeGenWriteBarrier((void**)(&___responseBody_1), (void*)value); } inline static int32_t get_offset_of_responseBodyAction_2() { return static_cast<int32_t>(offsetof(Response_t6D496C49C62BA506F35533BE79AF5B2BA24B64B5, ___responseBodyAction_2)); } inline Func_1_t2F3325DADD1F420568A48646BFC825E9F29472B1 * get_responseBodyAction_2() const { return ___responseBodyAction_2; } inline Func_1_t2F3325DADD1F420568A48646BFC825E9F29472B1 ** get_address_of_responseBodyAction_2() { return &___responseBodyAction_2; } inline void set_responseBodyAction_2(Func_1_t2F3325DADD1F420568A48646BFC825E9F29472B1 * value) { ___responseBodyAction_2 = value; Il2CppCodeGenWriteBarrier((void**)(&___responseBodyAction_2), (void*)value); } inline static int32_t get_offset_of_responseData_3() { return static_cast<int32_t>(offsetof(Response_t6D496C49C62BA506F35533BE79AF5B2BA24B64B5, ___responseData_3)); } inline ByteU5BU5D_tDBBEB0E8362242FA7223000D978B0DD19D4B0726* get_responseData_3() const { return ___responseData_3; } inline ByteU5BU5D_tDBBEB0E8362242FA7223000D978B0DD19D4B0726** get_address_of_responseData_3() { return &___responseData_3; } inline void set_responseData_3(ByteU5BU5D_tDBBEB0E8362242FA7223000D978B0DD19D4B0726* value) { ___responseData_3 = value; Il2CppCodeGenWriteBarrier((void**)(&___responseData_3), (void*)value); } inline static int32_t get_offset_of_responseDataAction_4() { return static_cast<int32_t>(offsetof(Response_t6D496C49C62BA506F35533BE79AF5B2BA24B64B5, ___responseDataAction_4)); } inline Func_1_tD8059ADEA67BC54CB9CB92E8719A3A6BE8473473 * get_responseDataAction_4() const { return ___responseDataAction_4; } inline Func_1_tD8059ADEA67BC54CB9CB92E8719A3A6BE8473473 ** get_address_of_responseDataAction_4() { return &___responseDataAction_4; } inline void set_responseDataAction_4(Func_1_tD8059ADEA67BC54CB9CB92E8719A3A6BE8473473 * value) { ___responseDataAction_4 = value; Il2CppCodeGenWriteBarrier((void**)(&___responseDataAction_4), (void*)value); } inline static int32_t get_offset_of_U3CResponseCodeU3Ek__BackingField_5() { return static_cast<int32_t>(offsetof(Response_t6D496C49C62BA506F35533BE79AF5B2BA24B64B5, ___U3CResponseCodeU3Ek__BackingField_5)); } inline int64_t get_U3CResponseCodeU3Ek__BackingField_5() const { return ___U3CResponseCodeU3Ek__BackingField_5; } inline int64_t* get_address_of_U3CResponseCodeU3Ek__BackingField_5() { return &___U3CResponseCodeU3Ek__BackingField_5; } inline void set_U3CResponseCodeU3Ek__BackingField_5(int64_t value) { ___U3CResponseCodeU3Ek__BackingField_5 = value; } }; // Native definition for P/Invoke marshalling of Microsoft.MixedReality.Toolkit.Utilities.Response struct Response_t6D496C49C62BA506F35533BE79AF5B2BA24B64B5_marshaled_pinvoke { int32_t ___U3CSuccessfulU3Ek__BackingField_0; char* ___responseBody_1; Il2CppMethodPointer ___responseBodyAction_2; Il2CppSafeArray/*NONE*/* ___responseData_3; Il2CppMethodPointer ___responseDataAction_4; int64_t ___U3CResponseCodeU3Ek__BackingField_5; }; // Native definition for COM marshalling of Microsoft.MixedReality.Toolkit.Utilities.Response struct Response_t6D496C49C62BA506F35533BE79AF5B2BA24B64B5_marshaled_com { int32_t ___U3CSuccessfulU3Ek__BackingField_0; Il2CppChar* ___responseBody_1; Il2CppMethodPointer ___responseBodyAction_2; Il2CppSafeArray/*NONE*/* ___responseData_3; Il2CppMethodPointer ___responseDataAction_4; int64_t ___U3CResponseCodeU3Ek__BackingField_5; }; // System.Void struct Void_t700C6383A2A510C2CF4DD86DABD5CA9FF70ADAC5 { public: union { struct { }; uint8_t Void_t700C6383A2A510C2CF4DD86DABD5CA9FF70ADAC5__padding[1]; }; public: }; // System.Threading.Tasks.VoidTaskResult struct VoidTaskResult_t28D1A323545DE024749196472558F49F1AAF0004 { public: union { struct { }; uint8_t VoidTaskResult_t28D1A323545DE024749196472558F49F1AAF0004__padding[1]; }; public: }; // Unity.Collections.Allocator struct Allocator_t9888223DEF4F46F3419ECFCCD0753599BEE52A05 { public: // System.Int32 Unity.Collections.Allocator::value__ int32_t ___value___2; public: inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(Allocator_t9888223DEF4F46F3419ECFCCD0753599BEE52A05, ___value___2)); } inline int32_t get_value___2() const { return ___value___2; } inline int32_t* get_address_of_value___2() { return &___value___2; } inline void set_value___2(int32_t value) { ___value___2 = value; } }; // System.Delegate struct Delegate_t : public RuntimeObject { public: // System.IntPtr System.Delegate::method_ptr Il2CppMethodPointer ___method_ptr_0; // System.IntPtr System.Delegate::invoke_impl intptr_t ___invoke_impl_1; // System.Object System.Delegate::m_target RuntimeObject * ___m_target_2; // System.IntPtr System.Delegate::method intptr_t ___method_3; // System.IntPtr System.Delegate::delegate_trampoline intptr_t ___delegate_trampoline_4; // System.IntPtr System.Delegate::extra_arg intptr_t ___extra_arg_5; // System.IntPtr System.Delegate::method_code intptr_t ___method_code_6; // System.Reflection.MethodInfo System.Delegate::method_info MethodInfo_t * ___method_info_7; // System.Reflection.MethodInfo System.Delegate::original_method_info MethodInfo_t * ___original_method_info_8; // System.DelegateData System.Delegate::data DelegateData_t17DD30660E330C49381DAA99F934BE75CB11F288 * ___data_9; // System.Boolean System.Delegate::method_is_virtual bool ___method_is_virtual_10; public: inline static int32_t get_offset_of_method_ptr_0() { return static_cast<int32_t>(offsetof(Delegate_t, ___method_ptr_0)); } inline Il2CppMethodPointer get_method_ptr_0() const { return ___method_ptr_0; } inline Il2CppMethodPointer* get_address_of_method_ptr_0() { return &___method_ptr_0; } inline void set_method_ptr_0(Il2CppMethodPointer value) { ___method_ptr_0 = value; } inline static int32_t get_offset_of_invoke_impl_1() { return static_cast<int32_t>(offsetof(Delegate_t, ___invoke_impl_1)); } inline intptr_t get_invoke_impl_1() const { return ___invoke_impl_1; } inline intptr_t* get_address_of_invoke_impl_1() { return &___invoke_impl_1; } inline void set_invoke_impl_1(intptr_t value) { ___invoke_impl_1 = value; } inline static int32_t get_offset_of_m_target_2() { return static_cast<int32_t>(offsetof(Delegate_t, ___m_target_2)); } inline RuntimeObject * get_m_target_2() const { return ___m_target_2; } inline RuntimeObject ** get_address_of_m_target_2() { return &___m_target_2; } inline void set_m_target_2(RuntimeObject * value) { ___m_target_2 = value; Il2CppCodeGenWriteBarrier((void**)(&___m_target_2), (void*)value); } inline static int32_t get_offset_of_method_3() { return static_cast<int32_t>(offsetof(Delegate_t, ___method_3)); } inline intptr_t get_method_3() const { return ___method_3; } inline intptr_t* get_address_of_method_3() { return &___method_3; } inline void set_method_3(intptr_t value) { ___method_3 = value; } inline static int32_t get_offset_of_delegate_trampoline_4() { return static_cast<int32_t>(offsetof(Delegate_t, ___delegate_trampoline_4)); } inline intptr_t get_delegate_trampoline_4() const { return ___delegate_trampoline_4; } inline intptr_t* get_address_of_delegate_trampoline_4() { return &___delegate_trampoline_4; } inline void set_delegate_trampoline_4(intptr_t value) { ___delegate_trampoline_4 = value; } inline static int32_t get_offset_of_extra_arg_5() { return static_cast<int32_t>(offsetof(Delegate_t, ___extra_arg_5)); } inline intptr_t get_extra_arg_5() const { return ___extra_arg_5; } inline intptr_t* get_address_of_extra_arg_5() { return &___extra_arg_5; } inline void set_extra_arg_5(intptr_t value) { ___extra_arg_5 = value; } inline static int32_t get_offset_of_method_code_6() { return static_cast<int32_t>(offsetof(Delegate_t, ___method_code_6)); } inline intptr_t get_method_code_6() const { return ___method_code_6; } inline intptr_t* get_address_of_method_code_6() { return &___method_code_6; } inline void set_method_code_6(intptr_t value) { ___method_code_6 = value; } inline static int32_t get_offset_of_method_info_7() { return static_cast<int32_t>(offsetof(Delegate_t, ___method_info_7)); } inline MethodInfo_t * get_method_info_7() const { return ___method_info_7; } inline MethodInfo_t ** get_address_of_method_info_7() { return &___method_info_7; } inline void set_method_info_7(MethodInfo_t * value) { ___method_info_7 = value; Il2CppCodeGenWriteBarrier((void**)(&___method_info_7), (void*)value); } inline static int32_t get_offset_of_original_method_info_8() { return static_cast<int32_t>(offsetof(Delegate_t, ___original_method_info_8)); } inline MethodInfo_t * get_original_method_info_8() const { return ___original_method_info_8; } inline MethodInfo_t ** get_address_of_original_method_info_8() { return &___original_method_info_8; } inline void set_original_method_info_8(MethodInfo_t * value) { ___original_method_info_8 = value; Il2CppCodeGenWriteBarrier((void**)(&___original_method_info_8), (void*)value); } inline static int32_t get_offset_of_data_9() { return static_cast<int32_t>(offsetof(Delegate_t, ___data_9)); } inline DelegateData_t17DD30660E330C49381DAA99F934BE75CB11F288 * get_data_9() const { return ___data_9; } inline DelegateData_t17DD30660E330C49381DAA99F934BE75CB11F288 ** get_address_of_data_9() { return &___data_9; } inline void set_data_9(DelegateData_t17DD30660E330C49381DAA99F934BE75CB11F288 * value) { ___data_9 = value; Il2CppCodeGenWriteBarrier((void**)(&___data_9), (void*)value); } inline static int32_t get_offset_of_method_is_virtual_10() { return static_cast<int32_t>(offsetof(Delegate_t, ___method_is_virtual_10)); } inline bool get_method_is_virtual_10() const { return ___method_is_virtual_10; } inline bool* get_address_of_method_is_virtual_10() { return &___method_is_virtual_10; } inline void set_method_is_virtual_10(bool value) { ___method_is_virtual_10 = value; } }; // Native definition for P/Invoke marshalling of System.Delegate struct Delegate_t_marshaled_pinvoke { intptr_t ___method_ptr_0; intptr_t ___invoke_impl_1; Il2CppIUnknown* ___m_target_2; intptr_t ___method_3; intptr_t ___delegate_trampoline_4; intptr_t ___extra_arg_5; intptr_t ___method_code_6; MethodInfo_t * ___method_info_7; MethodInfo_t * ___original_method_info_8; DelegateData_t17DD30660E330C49381DAA99F934BE75CB11F288 * ___data_9; int32_t ___method_is_virtual_10; }; // Native definition for COM marshalling of System.Delegate struct Delegate_t_marshaled_com { intptr_t ___method_ptr_0; intptr_t ___invoke_impl_1; Il2CppIUnknown* ___m_target_2; intptr_t ___method_3; intptr_t ___delegate_trampoline_4; intptr_t ___extra_arg_5; intptr_t ___method_code_6; MethodInfo_t * ___method_info_7; MethodInfo_t * ___original_method_info_8; DelegateData_t17DD30660E330C49381DAA99F934BE75CB11F288 * ___data_9; int32_t ___method_is_virtual_10; }; // Windows.UI.ViewManagement.IInputPane struct NOVTABLE IInputPane_t487BCFEFC9CD23557BED549036A74F16EE6F8E4D : Il2CppIInspectable { static const Il2CppGuid IID; virtual il2cpp_hresult_t STDCALL IInputPane_add_Showing_m63318852D9001BFBD8FAC4CD878943CE3805C450(ITypedEventHandler_2_tC915EA305D2AEB512570B5262AEC81263F1818E1_ComCallableWrapper* ___handler0, EventRegistrationToken_t5460ED02F1A6B74B604DFD634E8D5429857E9830 * comReturnValue) = 0; virtual il2cpp_hresult_t STDCALL IInputPane_remove_Showing_m67C107FA7BA12DF2E688FF1B8E415FCE44F51244(EventRegistrationToken_t5460ED02F1A6B74B604DFD634E8D5429857E9830 ___token0) = 0; virtual il2cpp_hresult_t STDCALL IInputPane_add_Hiding_m3F603DC6080B345004D54A8033533BDF7B09A877(ITypedEventHandler_2_tC915EA305D2AEB512570B5262AEC81263F1818E1_ComCallableWrapper* ___handler0, EventRegistrationToken_t5460ED02F1A6B74B604DFD634E8D5429857E9830 * comReturnValue) = 0; virtual il2cpp_hresult_t STDCALL IInputPane_remove_Hiding_m0FEDF393B18A2A62C007D0DD9CCFD4FBFD10C05C(EventRegistrationToken_t5460ED02F1A6B74B604DFD634E8D5429857E9830 ___token0) = 0; virtual il2cpp_hresult_t STDCALL IInputPane_U24__Stripped0_get_OccludedRect_m663B49801594DC7F25DFECB2B5B8075B5212A27C() = 0; }; // System.Threading.Tasks.Task struct Task_t804B25CFE3FC13AAEE16C8FA3BF52513F2A8DB60 : public RuntimeObject { public: // System.Int32 modreq(System.Runtime.CompilerServices.IsVolatile) System.Threading.Tasks.Task::m_taskId int32_t ___m_taskId_4; // System.Object System.Threading.Tasks.Task::m_action RuntimeObject * ___m_action_5; // System.Object System.Threading.Tasks.Task::m_stateObject RuntimeObject * ___m_stateObject_6; // System.Threading.Tasks.TaskScheduler System.Threading.Tasks.Task::m_taskScheduler TaskScheduler_t74FBEEEDBDD5E0088FF0EEC18F45CD866B098D5D * ___m_taskScheduler_7; // System.Threading.Tasks.Task System.Threading.Tasks.Task::m_parent Task_t804B25CFE3FC13AAEE16C8FA3BF52513F2A8DB60 * ___m_parent_8; // System.Int32 modreq(System.Runtime.CompilerServices.IsVolatile) System.Threading.Tasks.Task::m_stateFlags int32_t ___m_stateFlags_9; // System.Object modreq(System.Runtime.CompilerServices.IsVolatile) System.Threading.Tasks.Task::m_continuationObject RuntimeObject * ___m_continuationObject_10; // System.Threading.Tasks.Task/ContingentProperties modreq(System.Runtime.CompilerServices.IsVolatile) System.Threading.Tasks.Task::m_contingentProperties ContingentProperties_t1E249C737B8B8644ED1D60EEFA101D326B199EA0 * ___m_contingentProperties_15; public: inline static int32_t get_offset_of_m_taskId_4() { return static_cast<int32_t>(offsetof(Task_t804B25CFE3FC13AAEE16C8FA3BF52513F2A8DB60, ___m_taskId_4)); } inline int32_t get_m_taskId_4() const { return ___m_taskId_4; } inline int32_t* get_address_of_m_taskId_4() { return &___m_taskId_4; } inline void set_m_taskId_4(int32_t value) { ___m_taskId_4 = value; } inline static int32_t get_offset_of_m_action_5() { return static_cast<int32_t>(offsetof(Task_t804B25CFE3FC13AAEE16C8FA3BF52513F2A8DB60, ___m_action_5)); } inline RuntimeObject * get_m_action_5() const { return ___m_action_5; } inline RuntimeObject ** get_address_of_m_action_5() { return &___m_action_5; } inline void set_m_action_5(RuntimeObject * value) { ___m_action_5 = value; Il2CppCodeGenWriteBarrier((void**)(&___m_action_5), (void*)value); } inline static int32_t get_offset_of_m_stateObject_6() { return static_cast<int32_t>(offsetof(Task_t804B25CFE3FC13AAEE16C8FA3BF52513F2A8DB60, ___m_stateObject_6)); } inline RuntimeObject * get_m_stateObject_6() const { return ___m_stateObject_6; } inline RuntimeObject ** get_address_of_m_stateObject_6() { return &___m_stateObject_6; } inline void set_m_stateObject_6(RuntimeObject * value) { ___m_stateObject_6 = value; Il2CppCodeGenWriteBarrier((void**)(&___m_stateObject_6), (void*)value); } inline static int32_t get_offset_of_m_taskScheduler_7() { return static_cast<int32_t>(offsetof(Task_t804B25CFE3FC13AAEE16C8FA3BF52513F2A8DB60, ___m_taskScheduler_7)); } inline TaskScheduler_t74FBEEEDBDD5E0088FF0EEC18F45CD866B098D5D * get_m_taskScheduler_7() const { return ___m_taskScheduler_7; } inline TaskScheduler_t74FBEEEDBDD5E0088FF0EEC18F45CD866B098D5D ** get_address_of_m_taskScheduler_7() { return &___m_taskScheduler_7; } inline void set_m_taskScheduler_7(TaskScheduler_t74FBEEEDBDD5E0088FF0EEC18F45CD866B098D5D * value) { ___m_taskScheduler_7 = value; Il2CppCodeGenWriteBarrier((void**)(&___m_taskScheduler_7), (void*)value); } inline static int32_t get_offset_of_m_parent_8() { return static_cast<int32_t>(offsetof(Task_t804B25CFE3FC13AAEE16C8FA3BF52513F2A8DB60, ___m_parent_8)); } inline Task_t804B25CFE3FC13AAEE16C8FA3BF52513F2A8DB60 * get_m_parent_8() const { return ___m_parent_8; } inline Task_t804B25CFE3FC13AAEE16C8FA3BF52513F2A8DB60 ** get_address_of_m_parent_8() { return &___m_parent_8; } inline void set_m_parent_8(Task_t804B25CFE3FC13AAEE16C8FA3BF52513F2A8DB60 * value) { ___m_parent_8 = value; Il2CppCodeGenWriteBarrier((void**)(&___m_parent_8), (void*)value); } inline static int32_t get_offset_of_m_stateFlags_9() { return static_cast<int32_t>(offsetof(Task_t804B25CFE3FC13AAEE16C8FA3BF52513F2A8DB60, ___m_stateFlags_9)); } inline int32_t get_m_stateFlags_9() const { return ___m_stateFlags_9; } inline int32_t* get_address_of_m_stateFlags_9() { return &___m_stateFlags_9; } inline void set_m_stateFlags_9(int32_t value) { ___m_stateFlags_9 = value; } inline static int32_t get_offset_of_m_continuationObject_10() { return static_cast<int32_t>(offsetof(Task_t804B25CFE3FC13AAEE16C8FA3BF52513F2A8DB60, ___m_continuationObject_10)); } inline RuntimeObject * get_m_continuationObject_10() const { return ___m_continuationObject_10; } inline RuntimeObject ** get_address_of_m_continuationObject_10() { return &___m_continuationObject_10; } inline void set_m_continuationObject_10(RuntimeObject * value) { ___m_continuationObject_10 = value; Il2CppCodeGenWriteBarrier((void**)(&___m_continuationObject_10), (void*)value); } inline static int32_t get_offset_of_m_contingentProperties_15() { return static_cast<int32_t>(offsetof(Task_t804B25CFE3FC13AAEE16C8FA3BF52513F2A8DB60, ___m_contingentProperties_15)); } inline ContingentProperties_t1E249C737B8B8644ED1D60EEFA101D326B199EA0 * get_m_contingentProperties_15() const { return ___m_contingentProperties_15; } inline ContingentProperties_t1E249C737B8B8644ED1D60EEFA101D326B199EA0 ** get_address_of_m_contingentProperties_15() { return &___m_contingentProperties_15; } inline void set_m_contingentProperties_15(ContingentProperties_t1E249C737B8B8644ED1D60EEFA101D326B199EA0 * value) { ___m_contingentProperties_15 = value; Il2CppCodeGenWriteBarrier((void**)(&___m_contingentProperties_15), (void*)value); } }; struct Task_t804B25CFE3FC13AAEE16C8FA3BF52513F2A8DB60_StaticFields { public: // System.Int32 System.Threading.Tasks.Task::s_taskIdCounter int32_t ___s_taskIdCounter_2; // System.Threading.Tasks.TaskFactory System.Threading.Tasks.Task::s_factory TaskFactory_t22D999A05A967C31A4B5FFBD08864809BF35EA3B * ___s_factory_3; // System.Object System.Threading.Tasks.Task::s_taskCompletionSentinel RuntimeObject * ___s_taskCompletionSentinel_11; // System.Boolean System.Threading.Tasks.Task::s_asyncDebuggingEnabled bool ___s_asyncDebuggingEnabled_12; // System.Collections.Generic.Dictionary`2<System.Int32,System.Threading.Tasks.Task> System.Threading.Tasks.Task::s_currentActiveTasks Dictionary_2_tB758E2A2593CD827EFC041BE1F1BB4B68DE1C3E8 * ___s_currentActiveTasks_13; // System.Object System.Threading.Tasks.Task::s_activeTasksLock RuntimeObject * ___s_activeTasksLock_14; // System.Action`1<System.Object> System.Threading.Tasks.Task::s_taskCancelCallback Action_1_tD9663D9715FAA4E62035CFCF1AD4D094EE7872DC * ___s_taskCancelCallback_16; // System.Func`1<System.Threading.Tasks.Task/ContingentProperties> System.Threading.Tasks.Task::s_createContingentProperties Func_1_tBCF42601FA307876E83080BE4204110820F8BF3B * ___s_createContingentProperties_17; // System.Threading.Tasks.Task System.Threading.Tasks.Task::s_completedTask Task_t804B25CFE3FC13AAEE16C8FA3BF52513F2A8DB60 * ___s_completedTask_18; // System.Predicate`1<System.Threading.Tasks.Task> System.Threading.Tasks.Task::s_IsExceptionObservedByParentPredicate Predicate_1_tC0DBBC8498BD1EE6ABFFAA5628024105FA7D11BD * ___s_IsExceptionObservedByParentPredicate_19; // System.Threading.ContextCallback System.Threading.Tasks.Task::s_ecCallback ContextCallback_t93707E0430F4FF3E15E1FB5A4844BE89C657AE8B * ___s_ecCallback_20; // System.Predicate`1<System.Object> System.Threading.Tasks.Task::s_IsTaskContinuationNullPredicate Predicate_1_t5C96B81B31A697B11C4C3767E3298773AF25DFEB * ___s_IsTaskContinuationNullPredicate_21; public: inline static int32_t get_offset_of_s_taskIdCounter_2() { return static_cast<int32_t>(offsetof(Task_t804B25CFE3FC13AAEE16C8FA3BF52513F2A8DB60_StaticFields, ___s_taskIdCounter_2)); } inline int32_t get_s_taskIdCounter_2() const { return ___s_taskIdCounter_2; } inline int32_t* get_address_of_s_taskIdCounter_2() { return &___s_taskIdCounter_2; } inline void set_s_taskIdCounter_2(int32_t value) { ___s_taskIdCounter_2 = value; } inline static int32_t get_offset_of_s_factory_3() { return static_cast<int32_t>(offsetof(Task_t804B25CFE3FC13AAEE16C8FA3BF52513F2A8DB60_StaticFields, ___s_factory_3)); } inline TaskFactory_t22D999A05A967C31A4B5FFBD08864809BF35EA3B * get_s_factory_3() const { return ___s_factory_3; } inline TaskFactory_t22D999A05A967C31A4B5FFBD08864809BF35EA3B ** get_address_of_s_factory_3() { return &___s_factory_3; } inline void set_s_factory_3(TaskFactory_t22D999A05A967C31A4B5FFBD08864809BF35EA3B * value) { ___s_factory_3 = value; Il2CppCodeGenWriteBarrier((void**)(&___s_factory_3), (void*)value); } inline static int32_t get_offset_of_s_taskCompletionSentinel_11() { return static_cast<int32_t>(offsetof(Task_t804B25CFE3FC13AAEE16C8FA3BF52513F2A8DB60_StaticFields, ___s_taskCompletionSentinel_11)); } inline RuntimeObject * get_s_taskCompletionSentinel_11() const { return ___s_taskCompletionSentinel_11; } inline RuntimeObject ** get_address_of_s_taskCompletionSentinel_11() { return &___s_taskCompletionSentinel_11; } inline void set_s_taskCompletionSentinel_11(RuntimeObject * value) { ___s_taskCompletionSentinel_11 = value; Il2CppCodeGenWriteBarrier((void**)(&___s_taskCompletionSentinel_11), (void*)value); } inline static int32_t get_offset_of_s_asyncDebuggingEnabled_12() { return static_cast<int32_t>(offsetof(Task_t804B25CFE3FC13AAEE16C8FA3BF52513F2A8DB60_StaticFields, ___s_asyncDebuggingEnabled_12)); } inline bool get_s_asyncDebuggingEnabled_12() const { return ___s_asyncDebuggingEnabled_12; } inline bool* get_address_of_s_asyncDebuggingEnabled_12() { return &___s_asyncDebuggingEnabled_12; } inline void set_s_asyncDebuggingEnabled_12(bool value) { ___s_asyncDebuggingEnabled_12 = value; } inline static int32_t get_offset_of_s_currentActiveTasks_13() { return static_cast<int32_t>(offsetof(Task_t804B25CFE3FC13AAEE16C8FA3BF52513F2A8DB60_StaticFields, ___s_currentActiveTasks_13)); } inline Dictionary_2_tB758E2A2593CD827EFC041BE1F1BB4B68DE1C3E8 * get_s_currentActiveTasks_13() const { return ___s_currentActiveTasks_13; } inline Dictionary_2_tB758E2A2593CD827EFC041BE1F1BB4B68DE1C3E8 ** get_address_of_s_currentActiveTasks_13() { return &___s_currentActiveTasks_13; } inline void set_s_currentActiveTasks_13(Dictionary_2_tB758E2A2593CD827EFC041BE1F1BB4B68DE1C3E8 * value) { ___s_currentActiveTasks_13 = value; Il2CppCodeGenWriteBarrier((void**)(&___s_currentActiveTasks_13), (void*)value); } inline static int32_t get_offset_of_s_activeTasksLock_14() { return static_cast<int32_t>(offsetof(Task_t804B25CFE3FC13AAEE16C8FA3BF52513F2A8DB60_StaticFields, ___s_activeTasksLock_14)); } inline RuntimeObject * get_s_activeTasksLock_14() const { return ___s_activeTasksLock_14; } inline RuntimeObject ** get_address_of_s_activeTasksLock_14() { return &___s_activeTasksLock_14; } inline void set_s_activeTasksLock_14(RuntimeObject * value) { ___s_activeTasksLock_14 = value; Il2CppCodeGenWriteBarrier((void**)(&___s_activeTasksLock_14), (void*)value); } inline static int32_t get_offset_of_s_taskCancelCallback_16() { return static_cast<int32_t>(offsetof(Task_t804B25CFE3FC13AAEE16C8FA3BF52513F2A8DB60_StaticFields, ___s_taskCancelCallback_16)); } inline Action_1_tD9663D9715FAA4E62035CFCF1AD4D094EE7872DC * get_s_taskCancelCallback_16() const { return ___s_taskCancelCallback_16; } inline Action_1_tD9663D9715FAA4E62035CFCF1AD4D094EE7872DC ** get_address_of_s_taskCancelCallback_16() { return &___s_taskCancelCallback_16; } inline void set_s_taskCancelCallback_16(Action_1_tD9663D9715FAA4E62035CFCF1AD4D094EE7872DC * value) { ___s_taskCancelCallback_16 = value; Il2CppCodeGenWriteBarrier((void**)(&___s_taskCancelCallback_16), (void*)value); } inline static int32_t get_offset_of_s_createContingentProperties_17() { return static_cast<int32_t>(offsetof(Task_t804B25CFE3FC13AAEE16C8FA3BF52513F2A8DB60_StaticFields, ___s_createContingentProperties_17)); } inline Func_1_tBCF42601FA307876E83080BE4204110820F8BF3B * get_s_createContingentProperties_17() const { return ___s_createContingentProperties_17; } inline Func_1_tBCF42601FA307876E83080BE4204110820F8BF3B ** get_address_of_s_createContingentProperties_17() { return &___s_createContingentProperties_17; } inline void set_s_createContingentProperties_17(Func_1_tBCF42601FA307876E83080BE4204110820F8BF3B * value) { ___s_createContingentProperties_17 = value; Il2CppCodeGenWriteBarrier((void**)(&___s_createContingentProperties_17), (void*)value); } inline static int32_t get_offset_of_s_completedTask_18() { return static_cast<int32_t>(offsetof(Task_t804B25CFE3FC13AAEE16C8FA3BF52513F2A8DB60_StaticFields, ___s_completedTask_18)); } inline Task_t804B25CFE3FC13AAEE16C8FA3BF52513F2A8DB60 * get_s_completedTask_18() const { return ___s_completedTask_18; } inline Task_t804B25CFE3FC13AAEE16C8FA3BF52513F2A8DB60 ** get_address_of_s_completedTask_18() { return &___s_completedTask_18; } inline void set_s_completedTask_18(Task_t804B25CFE3FC13AAEE16C8FA3BF52513F2A8DB60 * value) { ___s_completedTask_18 = value; Il2CppCodeGenWriteBarrier((void**)(&___s_completedTask_18), (void*)value); } inline static int32_t get_offset_of_s_IsExceptionObservedByParentPredicate_19() { return static_cast<int32_t>(offsetof(Task_t804B25CFE3FC13AAEE16C8FA3BF52513F2A8DB60_StaticFields, ___s_IsExceptionObservedByParentPredicate_19)); } inline Predicate_1_tC0DBBC8498BD1EE6ABFFAA5628024105FA7D11BD * get_s_IsExceptionObservedByParentPredicate_19() const { return ___s_IsExceptionObservedByParentPredicate_19; } inline Predicate_1_tC0DBBC8498BD1EE6ABFFAA5628024105FA7D11BD ** get_address_of_s_IsExceptionObservedByParentPredicate_19() { return &___s_IsExceptionObservedByParentPredicate_19; } inline void set_s_IsExceptionObservedByParentPredicate_19(Predicate_1_tC0DBBC8498BD1EE6ABFFAA5628024105FA7D11BD * value) { ___s_IsExceptionObservedByParentPredicate_19 = value; Il2CppCodeGenWriteBarrier((void**)(&___s_IsExceptionObservedByParentPredicate_19), (void*)value); } inline static int32_t get_offset_of_s_ecCallback_20() { return static_cast<int32_t>(offsetof(Task_t804B25CFE3FC13AAEE16C8FA3BF52513F2A8DB60_StaticFields, ___s_ecCallback_20)); } inline ContextCallback_t93707E0430F4FF3E15E1FB5A4844BE89C657AE8B * get_s_ecCallback_20() const { return ___s_ecCallback_20; } inline ContextCallback_t93707E0430F4FF3E15E1FB5A4844BE89C657AE8B ** get_address_of_s_ecCallback_20() { return &___s_ecCallback_20; } inline void set_s_ecCallback_20(ContextCallback_t93707E0430F4FF3E15E1FB5A4844BE89C657AE8B * value) { ___s_ecCallback_20 = value; Il2CppCodeGenWriteBarrier((void**)(&___s_ecCallback_20), (void*)value); } inline static int32_t get_offset_of_s_IsTaskContinuationNullPredicate_21() { return static_cast<int32_t>(offsetof(Task_t804B25CFE3FC13AAEE16C8FA3BF52513F2A8DB60_StaticFields, ___s_IsTaskContinuationNullPredicate_21)); } inline Predicate_1_t5C96B81B31A697B11C4C3767E3298773AF25DFEB * get_s_IsTaskContinuationNullPredicate_21() const { return ___s_IsTaskContinuationNullPredicate_21; } inline Predicate_1_t5C96B81B31A697B11C4C3767E3298773AF25DFEB ** get_address_of_s_IsTaskContinuationNullPredicate_21() { return &___s_IsTaskContinuationNullPredicate_21; } inline void set_s_IsTaskContinuationNullPredicate_21(Predicate_1_t5C96B81B31A697B11C4C3767E3298773AF25DFEB * value) { ___s_IsTaskContinuationNullPredicate_21 = value; Il2CppCodeGenWriteBarrier((void**)(&___s_IsTaskContinuationNullPredicate_21), (void*)value); } }; struct Task_t804B25CFE3FC13AAEE16C8FA3BF52513F2A8DB60_ThreadStaticFields { public: // System.Threading.Tasks.Task System.Threading.Tasks.Task::t_currentTask Task_t804B25CFE3FC13AAEE16C8FA3BF52513F2A8DB60 * ___t_currentTask_0; // System.Threading.Tasks.StackGuard System.Threading.Tasks.Task::t_stackGuard StackGuard_t88E1EE4741AD02CA5FEA04A4EB2CC70F230E0E6D * ___t_stackGuard_1; public: inline static int32_t get_offset_of_t_currentTask_0() { return static_cast<int32_t>(offsetof(Task_t804B25CFE3FC13AAEE16C8FA3BF52513F2A8DB60_ThreadStaticFields, ___t_currentTask_0)); } inline Task_t804B25CFE3FC13AAEE16C8FA3BF52513F2A8DB60 * get_t_currentTask_0() const { return ___t_currentTask_0; } inline Task_t804B25CFE3FC13AAEE16C8FA3BF52513F2A8DB60 ** get_address_of_t_currentTask_0() { return &___t_currentTask_0; } inline void set_t_currentTask_0(Task_t804B25CFE3FC13AAEE16C8FA3BF52513F2A8DB60 * value) { ___t_currentTask_0 = value; Il2CppCodeGenWriteBarrier((void**)(&___t_currentTask_0), (void*)value); } inline static int32_t get_offset_of_t_stackGuard_1() { return static_cast<int32_t>(offsetof(Task_t804B25CFE3FC13AAEE16C8FA3BF52513F2A8DB60_ThreadStaticFields, ___t_stackGuard_1)); } inline StackGuard_t88E1EE4741AD02CA5FEA04A4EB2CC70F230E0E6D * get_t_stackGuard_1() const { return ___t_stackGuard_1; } inline StackGuard_t88E1EE4741AD02CA5FEA04A4EB2CC70F230E0E6D ** get_address_of_t_stackGuard_1() { return &___t_stackGuard_1; } inline void set_t_stackGuard_1(StackGuard_t88E1EE4741AD02CA5FEA04A4EB2CC70F230E0E6D * value) { ___t_stackGuard_1 = value; Il2CppCodeGenWriteBarrier((void**)(&___t_stackGuard_1), (void*)value); } }; // Microsoft.MixedReality.Toolkit.WindowsDevicePortal.DevicePortal/AppInstallStatus struct AppInstallStatus_tE2B173AC8007D9C2804689E6018164EC3FDE7826 { public: // System.Int32 Microsoft.MixedReality.Toolkit.WindowsDevicePortal.DevicePortal/AppInstallStatus::value__ int32_t ___value___2; public: inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(AppInstallStatus_tE2B173AC8007D9C2804689E6018164EC3FDE7826, ___value___2)); } inline int32_t get_value___2() const { return ___value___2; } inline int32_t* get_address_of_value___2() { return &___value___2; } inline void set_value___2(int32_t value) { ___value___2 = value; } }; // Unity.Collections.NativeArray`1<UnityEngine.XR.ARSubsystems.TrackableId> struct NativeArray_1_t991E9C764228B2B65D9688847CCDA8CE903F5D77 { public: // System.Void* Unity.Collections.NativeArray`1::m_Buffer void* ___m_Buffer_0; // System.Int32 Unity.Collections.NativeArray`1::m_Length int32_t ___m_Length_1; // Unity.Collections.Allocator Unity.Collections.NativeArray`1::m_AllocatorLabel int32_t ___m_AllocatorLabel_2; public: inline static int32_t get_offset_of_m_Buffer_0() { return static_cast<int32_t>(offsetof(NativeArray_1_t991E9C764228B2B65D9688847CCDA8CE903F5D77, ___m_Buffer_0)); } inline void* get_m_Buffer_0() const { return ___m_Buffer_0; } inline void** get_address_of_m_Buffer_0() { return &___m_Buffer_0; } inline void set_m_Buffer_0(void* value) { ___m_Buffer_0 = value; } inline static int32_t get_offset_of_m_Length_1() { return static_cast<int32_t>(offsetof(NativeArray_1_t991E9C764228B2B65D9688847CCDA8CE903F5D77, ___m_Length_1)); } inline int32_t get_m_Length_1() const { return ___m_Length_1; } inline int32_t* get_address_of_m_Length_1() { return &___m_Length_1; } inline void set_m_Length_1(int32_t value) { ___m_Length_1 = value; } inline static int32_t get_offset_of_m_AllocatorLabel_2() { return static_cast<int32_t>(offsetof(NativeArray_1_t991E9C764228B2B65D9688847CCDA8CE903F5D77, ___m_AllocatorLabel_2)); } inline int32_t get_m_AllocatorLabel_2() const { return ___m_AllocatorLabel_2; } inline int32_t* get_address_of_m_AllocatorLabel_2() { return &___m_AllocatorLabel_2; } inline void set_m_AllocatorLabel_2(int32_t value) { ___m_AllocatorLabel_2 = value; } }; // Unity.Collections.NativeArray`1<UnityEngine.XR.ARSubsystems.XRAnchor> struct NativeArray_1_tC0FA6F80F8C779BABF802ACD23BC7304CA5FD5E9 { public: // System.Void* Unity.Collections.NativeArray`1::m_Buffer void* ___m_Buffer_0; // System.Int32 Unity.Collections.NativeArray`1::m_Length int32_t ___m_Length_1; // Unity.Collections.Allocator Unity.Collections.NativeArray`1::m_AllocatorLabel int32_t ___m_AllocatorLabel_2; public: inline static int32_t get_offset_of_m_Buffer_0() { return static_cast<int32_t>(offsetof(NativeArray_1_tC0FA6F80F8C779BABF802ACD23BC7304CA5FD5E9, ___m_Buffer_0)); } inline void* get_m_Buffer_0() const { return ___m_Buffer_0; } inline void** get_address_of_m_Buffer_0() { return &___m_Buffer_0; } inline void set_m_Buffer_0(void* value) { ___m_Buffer_0 = value; } inline static int32_t get_offset_of_m_Length_1() { return static_cast<int32_t>(offsetof(NativeArray_1_tC0FA6F80F8C779BABF802ACD23BC7304CA5FD5E9, ___m_Length_1)); } inline int32_t get_m_Length_1() const { return ___m_Length_1; } inline int32_t* get_address_of_m_Length_1() { return &___m_Length_1; } inline void set_m_Length_1(int32_t value) { ___m_Length_1 = value; } inline static int32_t get_offset_of_m_AllocatorLabel_2() { return static_cast<int32_t>(offsetof(NativeArray_1_tC0FA6F80F8C779BABF802ACD23BC7304CA5FD5E9, ___m_AllocatorLabel_2)); } inline int32_t get_m_AllocatorLabel_2() const { return ___m_AllocatorLabel_2; } inline int32_t* get_address_of_m_AllocatorLabel_2() { return &___m_AllocatorLabel_2; } inline void set_m_AllocatorLabel_2(int32_t value) { ___m_AllocatorLabel_2 = value; } }; // System.Threading.Tasks.Task`1<Microsoft.MixedReality.Toolkit.Input.InputAnimation> struct Task_1_tB231B84F8F2E5D004D7EE56C7AC413E80914BC74 : public Task_t804B25CFE3FC13AAEE16C8FA3BF52513F2A8DB60 { public: // TResult System.Threading.Tasks.Task`1::m_result InputAnimation_tD9345F0646C7227BE0F5D4D1E286B399D7753534 * ___m_result_22; public: inline static int32_t get_offset_of_m_result_22() { return static_cast<int32_t>(offsetof(Task_1_tB231B84F8F2E5D004D7EE56C7AC413E80914BC74, ___m_result_22)); } inline InputAnimation_tD9345F0646C7227BE0F5D4D1E286B399D7753534 * get_m_result_22() const { return ___m_result_22; } inline InputAnimation_tD9345F0646C7227BE0F5D4D1E286B399D7753534 ** get_address_of_m_result_22() { return &___m_result_22; } inline void set_m_result_22(InputAnimation_tD9345F0646C7227BE0F5D4D1E286B399D7753534 * value) { ___m_result_22 = value; Il2CppCodeGenWriteBarrier((void**)(&___m_result_22), (void*)value); } }; struct Task_1_tB231B84F8F2E5D004D7EE56C7AC413E80914BC74_StaticFields { public: // System.Threading.Tasks.TaskFactory`1<TResult> System.Threading.Tasks.Task`1::s_Factory TaskFactory_1_tC5773A7F5FB0315235DABE4696D4D0ABF288DE0D * ___s_Factory_23; // System.Func`2<System.Threading.Tasks.Task`1<System.Threading.Tasks.Task>,System.Threading.Tasks.Task`1<TResult>> System.Threading.Tasks.Task`1::TaskWhenAnyCast Func_2_t60234BEFF912B17E5B854081B3E154E746B06B84 * ___TaskWhenAnyCast_24; public: inline static int32_t get_offset_of_s_Factory_23() { return static_cast<int32_t>(offsetof(Task_1_tB231B84F8F2E5D004D7EE56C7AC413E80914BC74_StaticFields, ___s_Factory_23)); } inline TaskFactory_1_tC5773A7F5FB0315235DABE4696D4D0ABF288DE0D * get_s_Factory_23() const { return ___s_Factory_23; } inline TaskFactory_1_tC5773A7F5FB0315235DABE4696D4D0ABF288DE0D ** get_address_of_s_Factory_23() { return &___s_Factory_23; } inline void set_s_Factory_23(TaskFactory_1_tC5773A7F5FB0315235DABE4696D4D0ABF288DE0D * value) { ___s_Factory_23 = value; Il2CppCodeGenWriteBarrier((void**)(&___s_Factory_23), (void*)value); } inline static int32_t get_offset_of_TaskWhenAnyCast_24() { return static_cast<int32_t>(offsetof(Task_1_tB231B84F8F2E5D004D7EE56C7AC413E80914BC74_StaticFields, ___TaskWhenAnyCast_24)); } inline Func_2_t60234BEFF912B17E5B854081B3E154E746B06B84 * get_TaskWhenAnyCast_24() const { return ___TaskWhenAnyCast_24; } inline Func_2_t60234BEFF912B17E5B854081B3E154E746B06B84 ** get_address_of_TaskWhenAnyCast_24() { return &___TaskWhenAnyCast_24; } inline void set_TaskWhenAnyCast_24(Func_2_t60234BEFF912B17E5B854081B3E154E746B06B84 * value) { ___TaskWhenAnyCast_24 = value; Il2CppCodeGenWriteBarrier((void**)(&___TaskWhenAnyCast_24), (void*)value); } }; // System.Threading.Tasks.Task`1<Microsoft.MixedReality.Toolkit.WindowsDevicePortal.InstalledApps> struct Task_1_t6F7CA8E69F36445E669783F681D8C2EFC6E264AF : public Task_t804B25CFE3FC13AAEE16C8FA3BF52513F2A8DB60 { public: // TResult System.Threading.Tasks.Task`1::m_result InstalledApps_t91DF6F0F261D8E8B004B2786B96395414D6673B6 * ___m_result_22; public: inline static int32_t get_offset_of_m_result_22() { return static_cast<int32_t>(offsetof(Task_1_t6F7CA8E69F36445E669783F681D8C2EFC6E264AF, ___m_result_22)); } inline InstalledApps_t91DF6F0F261D8E8B004B2786B96395414D6673B6 * get_m_result_22() const { return ___m_result_22; } inline InstalledApps_t91DF6F0F261D8E8B004B2786B96395414D6673B6 ** get_address_of_m_result_22() { return &___m_result_22; } inline void set_m_result_22(InstalledApps_t91DF6F0F261D8E8B004B2786B96395414D6673B6 * value) { ___m_result_22 = value; Il2CppCodeGenWriteBarrier((void**)(&___m_result_22), (void*)value); } }; struct Task_1_t6F7CA8E69F36445E669783F681D8C2EFC6E264AF_StaticFields { public: // System.Threading.Tasks.TaskFactory`1<TResult> System.Threading.Tasks.Task`1::s_Factory TaskFactory_1_t73BA32A7E75131733AE230469784026CE14A5CE9 * ___s_Factory_23; // System.Func`2<System.Threading.Tasks.Task`1<System.Threading.Tasks.Task>,System.Threading.Tasks.Task`1<TResult>> System.Threading.Tasks.Task`1::TaskWhenAnyCast Func_2_tC4A170AAA7F61A680B871561DA2C27CF26EE84FB * ___TaskWhenAnyCast_24; public: inline static int32_t get_offset_of_s_Factory_23() { return static_cast<int32_t>(offsetof(Task_1_t6F7CA8E69F36445E669783F681D8C2EFC6E264AF_StaticFields, ___s_Factory_23)); } inline TaskFactory_1_t73BA32A7E75131733AE230469784026CE14A5CE9 * get_s_Factory_23() const { return ___s_Factory_23; } inline TaskFactory_1_t73BA32A7E75131733AE230469784026CE14A5CE9 ** get_address_of_s_Factory_23() { return &___s_Factory_23; } inline void set_s_Factory_23(TaskFactory_1_t73BA32A7E75131733AE230469784026CE14A5CE9 * value) { ___s_Factory_23 = value; Il2CppCodeGenWriteBarrier((void**)(&___s_Factory_23), (void*)value); } inline static int32_t get_offset_of_TaskWhenAnyCast_24() { return static_cast<int32_t>(offsetof(Task_1_t6F7CA8E69F36445E669783F681D8C2EFC6E264AF_StaticFields, ___TaskWhenAnyCast_24)); } inline Func_2_tC4A170AAA7F61A680B871561DA2C27CF26EE84FB * get_TaskWhenAnyCast_24() const { return ___TaskWhenAnyCast_24; } inline Func_2_tC4A170AAA7F61A680B871561DA2C27CF26EE84FB ** get_address_of_TaskWhenAnyCast_24() { return &___TaskWhenAnyCast_24; } inline void set_TaskWhenAnyCast_24(Func_2_tC4A170AAA7F61A680B871561DA2C27CF26EE84FB * value) { ___TaskWhenAnyCast_24 = value; Il2CppCodeGenWriteBarrier((void**)(&___TaskWhenAnyCast_24), (void*)value); } }; // System.Threading.Tasks.Task`1<System.Int32> struct Task_1_tEF253D967DB628A9F8A389A9F2E4516871FD3725 : public Task_t804B25CFE3FC13AAEE16C8FA3BF52513F2A8DB60 { public: // TResult System.Threading.Tasks.Task`1::m_result int32_t ___m_result_22; public: inline static int32_t get_offset_of_m_result_22() { return static_cast<int32_t>(offsetof(Task_1_tEF253D967DB628A9F8A389A9F2E4516871FD3725, ___m_result_22)); } inline int32_t get_m_result_22() const { return ___m_result_22; } inline int32_t* get_address_of_m_result_22() { return &___m_result_22; } inline void set_m_result_22(int32_t value) { ___m_result_22 = value; } }; struct Task_1_tEF253D967DB628A9F8A389A9F2E4516871FD3725_StaticFields { public: // System.Threading.Tasks.TaskFactory`1<TResult> System.Threading.Tasks.Task`1::s_Factory TaskFactory_1_tCA6286B86C0D5D6C00D5A0DFE56F7E48A482DD5E * ___s_Factory_23; // System.Func`2<System.Threading.Tasks.Task`1<System.Threading.Tasks.Task>,System.Threading.Tasks.Task`1<TResult>> System.Threading.Tasks.Task`1::TaskWhenAnyCast Func_2_t53CFE8804C8D1C2FE8CC9204CF5DA5B98EC444D0 * ___TaskWhenAnyCast_24; public: inline static int32_t get_offset_of_s_Factory_23() { return static_cast<int32_t>(offsetof(Task_1_tEF253D967DB628A9F8A389A9F2E4516871FD3725_StaticFields, ___s_Factory_23)); } inline TaskFactory_1_tCA6286B86C0D5D6C00D5A0DFE56F7E48A482DD5E * get_s_Factory_23() const { return ___s_Factory_23; } inline TaskFactory_1_tCA6286B86C0D5D6C00D5A0DFE56F7E48A482DD5E ** get_address_of_s_Factory_23() { return &___s_Factory_23; } inline void set_s_Factory_23(TaskFactory_1_tCA6286B86C0D5D6C00D5A0DFE56F7E48A482DD5E * value) { ___s_Factory_23 = value; Il2CppCodeGenWriteBarrier((void**)(&___s_Factory_23), (void*)value); } inline static int32_t get_offset_of_TaskWhenAnyCast_24() { return static_cast<int32_t>(offsetof(Task_1_tEF253D967DB628A9F8A389A9F2E4516871FD3725_StaticFields, ___TaskWhenAnyCast_24)); } inline Func_2_t53CFE8804C8D1C2FE8CC9204CF5DA5B98EC444D0 * get_TaskWhenAnyCast_24() const { return ___TaskWhenAnyCast_24; } inline Func_2_t53CFE8804C8D1C2FE8CC9204CF5DA5B98EC444D0 ** get_address_of_TaskWhenAnyCast_24() { return &___TaskWhenAnyCast_24; } inline void set_TaskWhenAnyCast_24(Func_2_t53CFE8804C8D1C2FE8CC9204CF5DA5B98EC444D0 * value) { ___TaskWhenAnyCast_24 = value; Il2CppCodeGenWriteBarrier((void**)(&___TaskWhenAnyCast_24), (void*)value); } }; // System.Threading.Tasks.Task`1<Microsoft.MixedReality.Toolkit.WindowsDevicePortal.IpConfigInfo> struct Task_1_tD7DA066BF6FD0D25584440485D1B69708EB10027 : public Task_t804B25CFE3FC13AAEE16C8FA3BF52513F2A8DB60 { public: // TResult System.Threading.Tasks.Task`1::m_result IpConfigInfo_tDD421ACFCEB36EAF9B1D6EE7AE5E66DB05A91F6A * ___m_result_22; public: inline static int32_t get_offset_of_m_result_22() { return static_cast<int32_t>(offsetof(Task_1_tD7DA066BF6FD0D25584440485D1B69708EB10027, ___m_result_22)); } inline IpConfigInfo_tDD421ACFCEB36EAF9B1D6EE7AE5E66DB05A91F6A * get_m_result_22() const { return ___m_result_22; } inline IpConfigInfo_tDD421ACFCEB36EAF9B1D6EE7AE5E66DB05A91F6A ** get_address_of_m_result_22() { return &___m_result_22; } inline void set_m_result_22(IpConfigInfo_tDD421ACFCEB36EAF9B1D6EE7AE5E66DB05A91F6A * value) { ___m_result_22 = value; Il2CppCodeGenWriteBarrier((void**)(&___m_result_22), (void*)value); } }; struct Task_1_tD7DA066BF6FD0D25584440485D1B69708EB10027_StaticFields { public: // System.Threading.Tasks.TaskFactory`1<TResult> System.Threading.Tasks.Task`1::s_Factory TaskFactory_1_tEF7F72BBEDCA449A6DDC8FFC325FA330B56C39DE * ___s_Factory_23; // System.Func`2<System.Threading.Tasks.Task`1<System.Threading.Tasks.Task>,System.Threading.Tasks.Task`1<TResult>> System.Threading.Tasks.Task`1::TaskWhenAnyCast Func_2_t81B0EB7AEB14907FB2E7FD1A278C128EE21FABC9 * ___TaskWhenAnyCast_24; public: inline static int32_t get_offset_of_s_Factory_23() { return static_cast<int32_t>(offsetof(Task_1_tD7DA066BF6FD0D25584440485D1B69708EB10027_StaticFields, ___s_Factory_23)); } inline TaskFactory_1_tEF7F72BBEDCA449A6DDC8FFC325FA330B56C39DE * get_s_Factory_23() const { return ___s_Factory_23; } inline TaskFactory_1_tEF7F72BBEDCA449A6DDC8FFC325FA330B56C39DE ** get_address_of_s_Factory_23() { return &___s_Factory_23; } inline void set_s_Factory_23(TaskFactory_1_tEF7F72BBEDCA449A6DDC8FFC325FA330B56C39DE * value) { ___s_Factory_23 = value; Il2CppCodeGenWriteBarrier((void**)(&___s_Factory_23), (void*)value); } inline static int32_t get_offset_of_TaskWhenAnyCast_24() { return static_cast<int32_t>(offsetof(Task_1_tD7DA066BF6FD0D25584440485D1B69708EB10027_StaticFields, ___TaskWhenAnyCast_24)); } inline Func_2_t81B0EB7AEB14907FB2E7FD1A278C128EE21FABC9 * get_TaskWhenAnyCast_24() const { return ___TaskWhenAnyCast_24; } inline Func_2_t81B0EB7AEB14907FB2E7FD1A278C128EE21FABC9 ** get_address_of_TaskWhenAnyCast_24() { return &___TaskWhenAnyCast_24; } inline void set_TaskWhenAnyCast_24(Func_2_t81B0EB7AEB14907FB2E7FD1A278C128EE21FABC9 * value) { ___TaskWhenAnyCast_24 = value; Il2CppCodeGenWriteBarrier((void**)(&___TaskWhenAnyCast_24), (void*)value); } }; // System.Threading.Tasks.Task`1<Microsoft.MixedReality.Toolkit.WindowsDevicePortal.MachineName> struct Task_1_tF4D5169AA34923DD2C107ABEE06B314423303D1D : public Task_t804B25CFE3FC13AAEE16C8FA3BF52513F2A8DB60 { public: // TResult System.Threading.Tasks.Task`1::m_result MachineName_tF6A7D21A775B5F304033C800297B9236B986629F * ___m_result_22; public: inline static int32_t get_offset_of_m_result_22() { return static_cast<int32_t>(offsetof(Task_1_tF4D5169AA34923DD2C107ABEE06B314423303D1D, ___m_result_22)); } inline MachineName_tF6A7D21A775B5F304033C800297B9236B986629F * get_m_result_22() const { return ___m_result_22; } inline MachineName_tF6A7D21A775B5F304033C800297B9236B986629F ** get_address_of_m_result_22() { return &___m_result_22; } inline void set_m_result_22(MachineName_tF6A7D21A775B5F304033C800297B9236B986629F * value) { ___m_result_22 = value; Il2CppCodeGenWriteBarrier((void**)(&___m_result_22), (void*)value); } }; struct Task_1_tF4D5169AA34923DD2C107ABEE06B314423303D1D_StaticFields { public: // System.Threading.Tasks.TaskFactory`1<TResult> System.Threading.Tasks.Task`1::s_Factory TaskFactory_1_t34DABE809B567ADC99600D8249C81FBFF23A06F4 * ___s_Factory_23; // System.Func`2<System.Threading.Tasks.Task`1<System.Threading.Tasks.Task>,System.Threading.Tasks.Task`1<TResult>> System.Threading.Tasks.Task`1::TaskWhenAnyCast Func_2_t7B7F45362C6B9598BACB042B2B17A7CCA6EF06A1 * ___TaskWhenAnyCast_24; public: inline static int32_t get_offset_of_s_Factory_23() { return static_cast<int32_t>(offsetof(Task_1_tF4D5169AA34923DD2C107ABEE06B314423303D1D_StaticFields, ___s_Factory_23)); } inline TaskFactory_1_t34DABE809B567ADC99600D8249C81FBFF23A06F4 * get_s_Factory_23() const { return ___s_Factory_23; } inline TaskFactory_1_t34DABE809B567ADC99600D8249C81FBFF23A06F4 ** get_address_of_s_Factory_23() { return &___s_Factory_23; } inline void set_s_Factory_23(TaskFactory_1_t34DABE809B567ADC99600D8249C81FBFF23A06F4 * value) { ___s_Factory_23 = value; Il2CppCodeGenWriteBarrier((void**)(&___s_Factory_23), (void*)value); } inline static int32_t get_offset_of_TaskWhenAnyCast_24() { return static_cast<int32_t>(offsetof(Task_1_tF4D5169AA34923DD2C107ABEE06B314423303D1D_StaticFields, ___TaskWhenAnyCast_24)); } inline Func_2_t7B7F45362C6B9598BACB042B2B17A7CCA6EF06A1 * get_TaskWhenAnyCast_24() const { return ___TaskWhenAnyCast_24; } inline Func_2_t7B7F45362C6B9598BACB042B2B17A7CCA6EF06A1 ** get_address_of_TaskWhenAnyCast_24() { return &___TaskWhenAnyCast_24; } inline void set_TaskWhenAnyCast_24(Func_2_t7B7F45362C6B9598BACB042B2B17A7CCA6EF06A1 * value) { ___TaskWhenAnyCast_24 = value; Il2CppCodeGenWriteBarrier((void**)(&___TaskWhenAnyCast_24), (void*)value); } }; // System.Threading.Tasks.Task`1<Microsoft.MixedReality.Toolkit.WindowsDevicePortal.NetworkInterfaces> struct Task_1_t68101F485713C137AD3B19867F405A375A202E36 : public Task_t804B25CFE3FC13AAEE16C8FA3BF52513F2A8DB60 { public: // TResult System.Threading.Tasks.Task`1::m_result NetworkInterfaces_t1F0AE43A767FCE25334C6402D0EBBC0B9880B3F1 * ___m_result_22; public: inline static int32_t get_offset_of_m_result_22() { return static_cast<int32_t>(offsetof(Task_1_t68101F485713C137AD3B19867F405A375A202E36, ___m_result_22)); } inline NetworkInterfaces_t1F0AE43A767FCE25334C6402D0EBBC0B9880B3F1 * get_m_result_22() const { return ___m_result_22; } inline NetworkInterfaces_t1F0AE43A767FCE25334C6402D0EBBC0B9880B3F1 ** get_address_of_m_result_22() { return &___m_result_22; } inline void set_m_result_22(NetworkInterfaces_t1F0AE43A767FCE25334C6402D0EBBC0B9880B3F1 * value) { ___m_result_22 = value; Il2CppCodeGenWriteBarrier((void**)(&___m_result_22), (void*)value); } }; struct Task_1_t68101F485713C137AD3B19867F405A375A202E36_StaticFields { public: // System.Threading.Tasks.TaskFactory`1<TResult> System.Threading.Tasks.Task`1::s_Factory TaskFactory_1_t066C7E47C7502F181CAC9D7D7E557B6E9FC9B18C * ___s_Factory_23; // System.Func`2<System.Threading.Tasks.Task`1<System.Threading.Tasks.Task>,System.Threading.Tasks.Task`1<TResult>> System.Threading.Tasks.Task`1::TaskWhenAnyCast Func_2_t9BD3EA37C16E98E7E941124B6925734343848907 * ___TaskWhenAnyCast_24; public: inline static int32_t get_offset_of_s_Factory_23() { return static_cast<int32_t>(offsetof(Task_1_t68101F485713C137AD3B19867F405A375A202E36_StaticFields, ___s_Factory_23)); } inline TaskFactory_1_t066C7E47C7502F181CAC9D7D7E557B6E9FC9B18C * get_s_Factory_23() const { return ___s_Factory_23; } inline TaskFactory_1_t066C7E47C7502F181CAC9D7D7E557B6E9FC9B18C ** get_address_of_s_Factory_23() { return &___s_Factory_23; } inline void set_s_Factory_23(TaskFactory_1_t066C7E47C7502F181CAC9D7D7E557B6E9FC9B18C * value) { ___s_Factory_23 = value; Il2CppCodeGenWriteBarrier((void**)(&___s_Factory_23), (void*)value); } inline static int32_t get_offset_of_TaskWhenAnyCast_24() { return static_cast<int32_t>(offsetof(Task_1_t68101F485713C137AD3B19867F405A375A202E36_StaticFields, ___TaskWhenAnyCast_24)); } inline Func_2_t9BD3EA37C16E98E7E941124B6925734343848907 * get_TaskWhenAnyCast_24() const { return ___TaskWhenAnyCast_24; } inline Func_2_t9BD3EA37C16E98E7E941124B6925734343848907 ** get_address_of_TaskWhenAnyCast_24() { return &___TaskWhenAnyCast_24; } inline void set_TaskWhenAnyCast_24(Func_2_t9BD3EA37C16E98E7E941124B6925734343848907 * value) { ___TaskWhenAnyCast_24 = value; Il2CppCodeGenWriteBarrier((void**)(&___TaskWhenAnyCast_24), (void*)value); } }; // System.Threading.Tasks.Task`1<Microsoft.MixedReality.Toolkit.WindowsDevicePortal.PowerStateInfo> struct Task_1_t5DB16C7733B6BC0F3DCFAD3C5DD224C7D5B13982 : public Task_t804B25CFE3FC13AAEE16C8FA3BF52513F2A8DB60 { public: // TResult System.Threading.Tasks.Task`1::m_result PowerStateInfo_t743EA6A8D6B4D5D91DF3307023C493BC002A4AEC * ___m_result_22; public: inline static int32_t get_offset_of_m_result_22() { return static_cast<int32_t>(offsetof(Task_1_t5DB16C7733B6BC0F3DCFAD3C5DD224C7D5B13982, ___m_result_22)); } inline PowerStateInfo_t743EA6A8D6B4D5D91DF3307023C493BC002A4AEC * get_m_result_22() const { return ___m_result_22; } inline PowerStateInfo_t743EA6A8D6B4D5D91DF3307023C493BC002A4AEC ** get_address_of_m_result_22() { return &___m_result_22; } inline void set_m_result_22(PowerStateInfo_t743EA6A8D6B4D5D91DF3307023C493BC002A4AEC * value) { ___m_result_22 = value; Il2CppCodeGenWriteBarrier((void**)(&___m_result_22), (void*)value); } }; struct Task_1_t5DB16C7733B6BC0F3DCFAD3C5DD224C7D5B13982_StaticFields { public: // System.Threading.Tasks.TaskFactory`1<TResult> System.Threading.Tasks.Task`1::s_Factory TaskFactory_1_tD3E3D90B7FD10FE1F00DD7AE246F00E5D63FE2E7 * ___s_Factory_23; // System.Func`2<System.Threading.Tasks.Task`1<System.Threading.Tasks.Task>,System.Threading.Tasks.Task`1<TResult>> System.Threading.Tasks.Task`1::TaskWhenAnyCast Func_2_tC1059740D81C8E52C892D4D4B582CD907BFCF115 * ___TaskWhenAnyCast_24; public: inline static int32_t get_offset_of_s_Factory_23() { return static_cast<int32_t>(offsetof(Task_1_t5DB16C7733B6BC0F3DCFAD3C5DD224C7D5B13982_StaticFields, ___s_Factory_23)); } inline TaskFactory_1_tD3E3D90B7FD10FE1F00DD7AE246F00E5D63FE2E7 * get_s_Factory_23() const { return ___s_Factory_23; } inline TaskFactory_1_tD3E3D90B7FD10FE1F00DD7AE246F00E5D63FE2E7 ** get_address_of_s_Factory_23() { return &___s_Factory_23; } inline void set_s_Factory_23(TaskFactory_1_tD3E3D90B7FD10FE1F00DD7AE246F00E5D63FE2E7 * value) { ___s_Factory_23 = value; Il2CppCodeGenWriteBarrier((void**)(&___s_Factory_23), (void*)value); } inline static int32_t get_offset_of_TaskWhenAnyCast_24() { return static_cast<int32_t>(offsetof(Task_1_t5DB16C7733B6BC0F3DCFAD3C5DD224C7D5B13982_StaticFields, ___TaskWhenAnyCast_24)); } inline Func_2_tC1059740D81C8E52C892D4D4B582CD907BFCF115 * get_TaskWhenAnyCast_24() const { return ___TaskWhenAnyCast_24; } inline Func_2_tC1059740D81C8E52C892D4D4B582CD907BFCF115 ** get_address_of_TaskWhenAnyCast_24() { return &___TaskWhenAnyCast_24; } inline void set_TaskWhenAnyCast_24(Func_2_tC1059740D81C8E52C892D4D4B582CD907BFCF115 * value) { ___TaskWhenAnyCast_24 = value; Il2CppCodeGenWriteBarrier((void**)(&___TaskWhenAnyCast_24), (void*)value); } }; // System.Threading.Tasks.Task`1<Microsoft.MixedReality.Toolkit.Utilities.Response> struct Task_1_tEC990C8BF45429164CE40D283A3F83E130F3A880 : public Task_t804B25CFE3FC13AAEE16C8FA3BF52513F2A8DB60 { public: // TResult System.Threading.Tasks.Task`1::m_result Response_t6D496C49C62BA506F35533BE79AF5B2BA24B64B5 ___m_result_22; public: inline static int32_t get_offset_of_m_result_22() { return static_cast<int32_t>(offsetof(Task_1_tEC990C8BF45429164CE40D283A3F83E130F3A880, ___m_result_22)); } inline Response_t6D496C49C62BA506F35533BE79AF5B2BA24B64B5 get_m_result_22() const { return ___m_result_22; } inline Response_t6D496C49C62BA506F35533BE79AF5B2BA24B64B5 * get_address_of_m_result_22() { return &___m_result_22; } inline void set_m_result_22(Response_t6D496C49C62BA506F35533BE79AF5B2BA24B64B5 value) { ___m_result_22 = value; Il2CppCodeGenWriteBarrier((void**)&(((&___m_result_22))->___responseBody_1), (void*)NULL); #if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS Il2CppCodeGenWriteBarrier((void**)&(((&___m_result_22))->___responseBodyAction_2), (void*)NULL); #endif #if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS Il2CppCodeGenWriteBarrier((void**)&(((&___m_result_22))->___responseData_3), (void*)NULL); #endif #if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS Il2CppCodeGenWriteBarrier((void**)&(((&___m_result_22))->___responseDataAction_4), (void*)NULL); #endif } }; struct Task_1_tEC990C8BF45429164CE40D283A3F83E130F3A880_StaticFields { public: // System.Threading.Tasks.TaskFactory`1<TResult> System.Threading.Tasks.Task`1::s_Factory TaskFactory_1_tB949B70C6DA67224F7F0B393A83B4430ED70BBA5 * ___s_Factory_23; // System.Func`2<System.Threading.Tasks.Task`1<System.Threading.Tasks.Task>,System.Threading.Tasks.Task`1<TResult>> System.Threading.Tasks.Task`1::TaskWhenAnyCast Func_2_tA28793C0F1CFA815FBEB2737D5323EC4C30F3FA5 * ___TaskWhenAnyCast_24; public: inline static int32_t get_offset_of_s_Factory_23() { return static_cast<int32_t>(offsetof(Task_1_tEC990C8BF45429164CE40D283A3F83E130F3A880_StaticFields, ___s_Factory_23)); } inline TaskFactory_1_tB949B70C6DA67224F7F0B393A83B4430ED70BBA5 * get_s_Factory_23() const { return ___s_Factory_23; } inline TaskFactory_1_tB949B70C6DA67224F7F0B393A83B4430ED70BBA5 ** get_address_of_s_Factory_23() { return &___s_Factory_23; } inline void set_s_Factory_23(TaskFactory_1_tB949B70C6DA67224F7F0B393A83B4430ED70BBA5 * value) { ___s_Factory_23 = value; Il2CppCodeGenWriteBarrier((void**)(&___s_Factory_23), (void*)value); } inline static int32_t get_offset_of_TaskWhenAnyCast_24() { return static_cast<int32_t>(offsetof(Task_1_tEC990C8BF45429164CE40D283A3F83E130F3A880_StaticFields, ___TaskWhenAnyCast_24)); } inline Func_2_tA28793C0F1CFA815FBEB2737D5323EC4C30F3FA5 * get_TaskWhenAnyCast_24() const { return ___TaskWhenAnyCast_24; } inline Func_2_tA28793C0F1CFA815FBEB2737D5323EC4C30F3FA5 ** get_address_of_TaskWhenAnyCast_24() { return &___TaskWhenAnyCast_24; } inline void set_TaskWhenAnyCast_24(Func_2_tA28793C0F1CFA815FBEB2737D5323EC4C30F3FA5 * value) { ___TaskWhenAnyCast_24 = value; Il2CppCodeGenWriteBarrier((void**)(&___TaskWhenAnyCast_24), (void*)value); } }; // System.Threading.Tasks.Task`1<System.String> struct Task_1_t30D80D0F41B19BC27A8D1141D69741D0B986B2C3 : public Task_t804B25CFE3FC13AAEE16C8FA3BF52513F2A8DB60 { public: // TResult System.Threading.Tasks.Task`1::m_result String_t* ___m_result_22; public: inline static int32_t get_offset_of_m_result_22() { return static_cast<int32_t>(offsetof(Task_1_t30D80D0F41B19BC27A8D1141D69741D0B986B2C3, ___m_result_22)); } inline String_t* get_m_result_22() const { return ___m_result_22; } inline String_t** get_address_of_m_result_22() { return &___m_result_22; } inline void set_m_result_22(String_t* value) { ___m_result_22 = value; Il2CppCodeGenWriteBarrier((void**)(&___m_result_22), (void*)value); } }; struct Task_1_t30D80D0F41B19BC27A8D1141D69741D0B986B2C3_StaticFields { public: // System.Threading.Tasks.TaskFactory`1<TResult> System.Threading.Tasks.Task`1::s_Factory TaskFactory_1_t9179B7311982EC4F85FDFBA0C89416AB321E74CB * ___s_Factory_23; // System.Func`2<System.Threading.Tasks.Task`1<System.Threading.Tasks.Task>,System.Threading.Tasks.Task`1<TResult>> System.Threading.Tasks.Task`1::TaskWhenAnyCast Func_2_tC39B0B05F6B9D37E14D29C14F1C4BCEAE6381FAC * ___TaskWhenAnyCast_24; public: inline static int32_t get_offset_of_s_Factory_23() { return static_cast<int32_t>(offsetof(Task_1_t30D80D0F41B19BC27A8D1141D69741D0B986B2C3_StaticFields, ___s_Factory_23)); } inline TaskFactory_1_t9179B7311982EC4F85FDFBA0C89416AB321E74CB * get_s_Factory_23() const { return ___s_Factory_23; } inline TaskFactory_1_t9179B7311982EC4F85FDFBA0C89416AB321E74CB ** get_address_of_s_Factory_23() { return &___s_Factory_23; } inline void set_s_Factory_23(TaskFactory_1_t9179B7311982EC4F85FDFBA0C89416AB321E74CB * value) { ___s_Factory_23 = value; Il2CppCodeGenWriteBarrier((void**)(&___s_Factory_23), (void*)value); } inline static int32_t get_offset_of_TaskWhenAnyCast_24() { return static_cast<int32_t>(offsetof(Task_1_t30D80D0F41B19BC27A8D1141D69741D0B986B2C3_StaticFields, ___TaskWhenAnyCast_24)); } inline Func_2_tC39B0B05F6B9D37E14D29C14F1C4BCEAE6381FAC * get_TaskWhenAnyCast_24() const { return ___TaskWhenAnyCast_24; } inline Func_2_tC39B0B05F6B9D37E14D29C14F1C4BCEAE6381FAC ** get_address_of_TaskWhenAnyCast_24() { return &___TaskWhenAnyCast_24; } inline void set_TaskWhenAnyCast_24(Func_2_tC39B0B05F6B9D37E14D29C14F1C4BCEAE6381FAC * value) { ___TaskWhenAnyCast_24 = value; Il2CppCodeGenWriteBarrier((void**)(&___TaskWhenAnyCast_24), (void*)value); } }; // System.Threading.Tasks.Task`1<System.Threading.Tasks.VoidTaskResult> struct Task_1_t65FD5EE287B61746F015BBC8E90A97D38D258FB3 : public Task_t804B25CFE3FC13AAEE16C8FA3BF52513F2A8DB60 { public: // TResult System.Threading.Tasks.Task`1::m_result VoidTaskResult_t28D1A323545DE024749196472558F49F1AAF0004 ___m_result_22; public: inline static int32_t get_offset_of_m_result_22() { return static_cast<int32_t>(offsetof(Task_1_t65FD5EE287B61746F015BBC8E90A97D38D258FB3, ___m_result_22)); } inline VoidTaskResult_t28D1A323545DE024749196472558F49F1AAF0004 get_m_result_22() const { return ___m_result_22; } inline VoidTaskResult_t28D1A323545DE024749196472558F49F1AAF0004 * get_address_of_m_result_22() { return &___m_result_22; } inline void set_m_result_22(VoidTaskResult_t28D1A323545DE024749196472558F49F1AAF0004 value) { ___m_result_22 = value; } }; struct Task_1_t65FD5EE287B61746F015BBC8E90A97D38D258FB3_StaticFields { public: // System.Threading.Tasks.TaskFactory`1<TResult> System.Threading.Tasks.Task`1::s_Factory TaskFactory_1_tFD6C5BE88624171209DEA49929EA276401AC9F4B * ___s_Factory_23; // System.Func`2<System.Threading.Tasks.Task`1<System.Threading.Tasks.Task>,System.Threading.Tasks.Task`1<TResult>> System.Threading.Tasks.Task`1::TaskWhenAnyCast Func_2_t99C75F5817AC4490145734D823B7E8ED9A840728 * ___TaskWhenAnyCast_24; public: inline static int32_t get_offset_of_s_Factory_23() { return static_cast<int32_t>(offsetof(Task_1_t65FD5EE287B61746F015BBC8E90A97D38D258FB3_StaticFields, ___s_Factory_23)); } inline TaskFactory_1_tFD6C5BE88624171209DEA49929EA276401AC9F4B * get_s_Factory_23() const { return ___s_Factory_23; } inline TaskFactory_1_tFD6C5BE88624171209DEA49929EA276401AC9F4B ** get_address_of_s_Factory_23() { return &___s_Factory_23; } inline void set_s_Factory_23(TaskFactory_1_tFD6C5BE88624171209DEA49929EA276401AC9F4B * value) { ___s_Factory_23 = value; Il2CppCodeGenWriteBarrier((void**)(&___s_Factory_23), (void*)value); } inline static int32_t get_offset_of_TaskWhenAnyCast_24() { return static_cast<int32_t>(offsetof(Task_1_t65FD5EE287B61746F015BBC8E90A97D38D258FB3_StaticFields, ___TaskWhenAnyCast_24)); } inline Func_2_t99C75F5817AC4490145734D823B7E8ED9A840728 * get_TaskWhenAnyCast_24() const { return ___TaskWhenAnyCast_24; } inline Func_2_t99C75F5817AC4490145734D823B7E8ED9A840728 ** get_address_of_TaskWhenAnyCast_24() { return &___TaskWhenAnyCast_24; } inline void set_TaskWhenAnyCast_24(Func_2_t99C75F5817AC4490145734D823B7E8ED9A840728 * value) { ___TaskWhenAnyCast_24 = value; Il2CppCodeGenWriteBarrier((void**)(&___TaskWhenAnyCast_24), (void*)value); } }; // System.Threading.Tasks.Task`1<UnityEngine.XR.WindowsMR.XRAnchorStore> struct Task_1_t620C8DD8E8F1BF041081FB9C825336F994CD53AF : public Task_t804B25CFE3FC13AAEE16C8FA3BF52513F2A8DB60 { public: // TResult System.Threading.Tasks.Task`1::m_result XRAnchorStore_t3B551351D373C269350F0CA7DFBFF7D708449F2E * ___m_result_22; public: inline static int32_t get_offset_of_m_result_22() { return static_cast<int32_t>(offsetof(Task_1_t620C8DD8E8F1BF041081FB9C825336F994CD53AF, ___m_result_22)); } inline XRAnchorStore_t3B551351D373C269350F0CA7DFBFF7D708449F2E * get_m_result_22() const { return ___m_result_22; } inline XRAnchorStore_t3B551351D373C269350F0CA7DFBFF7D708449F2E ** get_address_of_m_result_22() { return &___m_result_22; } inline void set_m_result_22(XRAnchorStore_t3B551351D373C269350F0CA7DFBFF7D708449F2E * value) { ___m_result_22 = value; Il2CppCodeGenWriteBarrier((void**)(&___m_result_22), (void*)value); } }; struct Task_1_t620C8DD8E8F1BF041081FB9C825336F994CD53AF_StaticFields { public: // System.Threading.Tasks.TaskFactory`1<TResult> System.Threading.Tasks.Task`1::s_Factory TaskFactory_1_t47A3C85D7EBDB8F0CFE9D8318B316BB0A95482D4 * ___s_Factory_23; // System.Func`2<System.Threading.Tasks.Task`1<System.Threading.Tasks.Task>,System.Threading.Tasks.Task`1<TResult>> System.Threading.Tasks.Task`1::TaskWhenAnyCast Func_2_tD9B806E5F1C0FCD873A5181765B6D53CF2182D02 * ___TaskWhenAnyCast_24; public: inline static int32_t get_offset_of_s_Factory_23() { return static_cast<int32_t>(offsetof(Task_1_t620C8DD8E8F1BF041081FB9C825336F994CD53AF_StaticFields, ___s_Factory_23)); } inline TaskFactory_1_t47A3C85D7EBDB8F0CFE9D8318B316BB0A95482D4 * get_s_Factory_23() const { return ___s_Factory_23; } inline TaskFactory_1_t47A3C85D7EBDB8F0CFE9D8318B316BB0A95482D4 ** get_address_of_s_Factory_23() { return &___s_Factory_23; } inline void set_s_Factory_23(TaskFactory_1_t47A3C85D7EBDB8F0CFE9D8318B316BB0A95482D4 * value) { ___s_Factory_23 = value; Il2CppCodeGenWriteBarrier((void**)(&___s_Factory_23), (void*)value); } inline static int32_t get_offset_of_TaskWhenAnyCast_24() { return static_cast<int32_t>(offsetof(Task_1_t620C8DD8E8F1BF041081FB9C825336F994CD53AF_StaticFields, ___TaskWhenAnyCast_24)); } inline Func_2_tD9B806E5F1C0FCD873A5181765B6D53CF2182D02 * get_TaskWhenAnyCast_24() const { return ___TaskWhenAnyCast_24; } inline Func_2_tD9B806E5F1C0FCD873A5181765B6D53CF2182D02 ** get_address_of_TaskWhenAnyCast_24() { return &___TaskWhenAnyCast_24; } inline void set_TaskWhenAnyCast_24(Func_2_tD9B806E5F1C0FCD873A5181765B6D53CF2182D02 * value) { ___TaskWhenAnyCast_24 = value; Il2CppCodeGenWriteBarrier((void**)(&___TaskWhenAnyCast_24), (void*)value); } }; // System.Threading.Tasks.Task`1<Microsoft.MixedReality.Toolkit.WindowsDevicePortal.DevicePortal/AppInstallStatus> struct Task_1_t17D20CE1C73C7315ED1166DD8A1D38A9DD1F0806 : public Task_t804B25CFE3FC13AAEE16C8FA3BF52513F2A8DB60 { public: // TResult System.Threading.Tasks.Task`1::m_result int32_t ___m_result_22; public: inline static int32_t get_offset_of_m_result_22() { return static_cast<int32_t>(offsetof(Task_1_t17D20CE1C73C7315ED1166DD8A1D38A9DD1F0806, ___m_result_22)); } inline int32_t get_m_result_22() const { return ___m_result_22; } inline int32_t* get_address_of_m_result_22() { return &___m_result_22; } inline void set_m_result_22(int32_t value) { ___m_result_22 = value; } }; struct Task_1_t17D20CE1C73C7315ED1166DD8A1D38A9DD1F0806_StaticFields { public: // System.Threading.Tasks.TaskFactory`1<TResult> System.Threading.Tasks.Task`1::s_Factory TaskFactory_1_t5507DD5B044BE1CBACBC4B7BB19F2A040E624F25 * ___s_Factory_23; // System.Func`2<System.Threading.Tasks.Task`1<System.Threading.Tasks.Task>,System.Threading.Tasks.Task`1<TResult>> System.Threading.Tasks.Task`1::TaskWhenAnyCast Func_2_tCD518C9A09B91745C1C5919DE581A7EE8ECADDFF * ___TaskWhenAnyCast_24; public: inline static int32_t get_offset_of_s_Factory_23() { return static_cast<int32_t>(offsetof(Task_1_t17D20CE1C73C7315ED1166DD8A1D38A9DD1F0806_StaticFields, ___s_Factory_23)); } inline TaskFactory_1_t5507DD5B044BE1CBACBC4B7BB19F2A040E624F25 * get_s_Factory_23() const { return ___s_Factory_23; } inline TaskFactory_1_t5507DD5B044BE1CBACBC4B7BB19F2A040E624F25 ** get_address_of_s_Factory_23() { return &___s_Factory_23; } inline void set_s_Factory_23(TaskFactory_1_t5507DD5B044BE1CBACBC4B7BB19F2A040E624F25 * value) { ___s_Factory_23 = value; Il2CppCodeGenWriteBarrier((void**)(&___s_Factory_23), (void*)value); } inline static int32_t get_offset_of_TaskWhenAnyCast_24() { return static_cast<int32_t>(offsetof(Task_1_t17D20CE1C73C7315ED1166DD8A1D38A9DD1F0806_StaticFields, ___TaskWhenAnyCast_24)); } inline Func_2_tCD518C9A09B91745C1C5919DE581A7EE8ECADDFF * get_TaskWhenAnyCast_24() const { return ___TaskWhenAnyCast_24; } inline Func_2_tCD518C9A09B91745C1C5919DE581A7EE8ECADDFF ** get_address_of_TaskWhenAnyCast_24() { return &___TaskWhenAnyCast_24; } inline void set_TaskWhenAnyCast_24(Func_2_tCD518C9A09B91745C1C5919DE581A7EE8ECADDFF * value) { ___TaskWhenAnyCast_24 = value; Il2CppCodeGenWriteBarrier((void**)(&___TaskWhenAnyCast_24), (void*)value); } }; // System.MulticastDelegate struct MulticastDelegate_t : public Delegate_t { public: // System.Delegate[] System.MulticastDelegate::delegates DelegateU5BU5D_t677D8FE08A5F99E8EE49150B73966CD6E9BF7DB8* ___delegates_11; public: inline static int32_t get_offset_of_delegates_11() { return static_cast<int32_t>(offsetof(MulticastDelegate_t, ___delegates_11)); } inline DelegateU5BU5D_t677D8FE08A5F99E8EE49150B73966CD6E9BF7DB8* get_delegates_11() const { return ___delegates_11; } inline DelegateU5BU5D_t677D8FE08A5F99E8EE49150B73966CD6E9BF7DB8** get_address_of_delegates_11() { return &___delegates_11; } inline void set_delegates_11(DelegateU5BU5D_t677D8FE08A5F99E8EE49150B73966CD6E9BF7DB8* value) { ___delegates_11 = value; Il2CppCodeGenWriteBarrier((void**)(&___delegates_11), (void*)value); } }; // Native definition for P/Invoke marshalling of System.MulticastDelegate struct MulticastDelegate_t_marshaled_pinvoke : public Delegate_t_marshaled_pinvoke { Delegate_t_marshaled_pinvoke** ___delegates_11; }; // Native definition for COM marshalling of System.MulticastDelegate struct MulticastDelegate_t_marshaled_com : public Delegate_t_marshaled_com { Delegate_t_marshaled_com** ___delegates_11; }; // UnityEngine.XR.ARSubsystems.TrackableChanges`1<UnityEngine.XR.ARSubsystems.XRAnchor> struct TrackableChanges_1_tF38314CFF715F232D6DA3415FD2F68CE504CFF9B { public: // System.Boolean UnityEngine.XR.ARSubsystems.TrackableChanges`1::<isCreated>k__BackingField bool ___U3CisCreatedU3Ek__BackingField_0; // Unity.Collections.NativeArray`1<T> UnityEngine.XR.ARSubsystems.TrackableChanges`1::m_Added NativeArray_1_tC0FA6F80F8C779BABF802ACD23BC7304CA5FD5E9 ___m_Added_1; // Unity.Collections.NativeArray`1<T> UnityEngine.XR.ARSubsystems.TrackableChanges`1::m_Updated NativeArray_1_tC0FA6F80F8C779BABF802ACD23BC7304CA5FD5E9 ___m_Updated_2; // Unity.Collections.NativeArray`1<UnityEngine.XR.ARSubsystems.TrackableId> UnityEngine.XR.ARSubsystems.TrackableChanges`1::m_Removed NativeArray_1_t991E9C764228B2B65D9688847CCDA8CE903F5D77 ___m_Removed_3; public: inline static int32_t get_offset_of_U3CisCreatedU3Ek__BackingField_0() { return static_cast<int32_t>(offsetof(TrackableChanges_1_tF38314CFF715F232D6DA3415FD2F68CE504CFF9B, ___U3CisCreatedU3Ek__BackingField_0)); } inline bool get_U3CisCreatedU3Ek__BackingField_0() const { return ___U3CisCreatedU3Ek__BackingField_0; } inline bool* get_address_of_U3CisCreatedU3Ek__BackingField_0() { return &___U3CisCreatedU3Ek__BackingField_0; } inline void set_U3CisCreatedU3Ek__BackingField_0(bool value) { ___U3CisCreatedU3Ek__BackingField_0 = value; } inline static int32_t get_offset_of_m_Added_1() { return static_cast<int32_t>(offsetof(TrackableChanges_1_tF38314CFF715F232D6DA3415FD2F68CE504CFF9B, ___m_Added_1)); } inline NativeArray_1_tC0FA6F80F8C779BABF802ACD23BC7304CA5FD5E9 get_m_Added_1() const { return ___m_Added_1; } inline NativeArray_1_tC0FA6F80F8C779BABF802ACD23BC7304CA5FD5E9 * get_address_of_m_Added_1() { return &___m_Added_1; } inline void set_m_Added_1(NativeArray_1_tC0FA6F80F8C779BABF802ACD23BC7304CA5FD5E9 value) { ___m_Added_1 = value; } inline static int32_t get_offset_of_m_Updated_2() { return static_cast<int32_t>(offsetof(TrackableChanges_1_tF38314CFF715F232D6DA3415FD2F68CE504CFF9B, ___m_Updated_2)); } inline NativeArray_1_tC0FA6F80F8C779BABF802ACD23BC7304CA5FD5E9 get_m_Updated_2() const { return ___m_Updated_2; } inline NativeArray_1_tC0FA6F80F8C779BABF802ACD23BC7304CA5FD5E9 * get_address_of_m_Updated_2() { return &___m_Updated_2; } inline void set_m_Updated_2(NativeArray_1_tC0FA6F80F8C779BABF802ACD23BC7304CA5FD5E9 value) { ___m_Updated_2 = value; } inline static int32_t get_offset_of_m_Removed_3() { return static_cast<int32_t>(offsetof(TrackableChanges_1_tF38314CFF715F232D6DA3415FD2F68CE504CFF9B, ___m_Removed_3)); } inline NativeArray_1_t991E9C764228B2B65D9688847CCDA8CE903F5D77 get_m_Removed_3() const { return ___m_Removed_3; } inline NativeArray_1_t991E9C764228B2B65D9688847CCDA8CE903F5D77 * get_address_of_m_Removed_3() { return &___m_Removed_3; } inline void set_m_Removed_3(NativeArray_1_t991E9C764228B2B65D9688847CCDA8CE903F5D77 value) { ___m_Removed_3 = value; } }; // Windows.Foundation.TypedEventHandler`2<Windows.UI.ViewManagement.InputPane,Windows.UI.ViewManagement.InputPaneVisibilityEventArgs> struct TypedEventHandler_2_tC915EA305D2AEB512570B5262AEC81263F1818E1 : public MulticastDelegate_t { public: public: }; // COM Callable Wrapper interface definition for Windows.Foundation.TypedEventHandler`2<Windows.UI.ViewManagement.InputPane,Windows.UI.ViewManagement.InputPaneVisibilityEventArgs> struct ITypedEventHandler_2_tC915EA305D2AEB512570B5262AEC81263F1818E1_ComCallableWrapper : Il2CppIUnknown { static const Il2CppGuid IID; virtual il2cpp_hresult_t STDCALL Invoke(IInputPane_t487BCFEFC9CD23557BED549036A74F16EE6F8E4D* ___sender0, IInputPaneVisibilityEventArgs_t376CBD7D8F8808CA136546D1F6829C9287C5D3AB* ___args1) = 0; }; // Windows.Foundation.TypedEventHandler`2<System.Object,System.Object> struct TypedEventHandler_2_t8D72D4CAB5DF9F7D9AE52E95A431BD4738A32CDC : public MulticastDelegate_t { public: public: }; // COM Callable Wrapper interface definition for Windows.Foundation.TypedEventHandler`2<System.Object,System.Object> struct ITypedEventHandler_2_t8D72D4CAB5DF9F7D9AE52E95A431BD4738A32CDC_ComCallableWrapper : Il2CppIUnknown { static const Il2CppGuid IID; virtual il2cpp_hresult_t STDCALL Invoke(Il2CppIInspectable* ___sender0, Il2CppIInspectable* ___args1) = 0; }; #ifdef __clang__ #pragma clang diagnostic pop #endif il2cpp_hresult_t IClosable_Close_m7DE2119A960C4E3898E6E5D03245D047BF113999_ComCallableWrapperProjectedMethod(RuntimeObject* __this); il2cpp_hresult_t IIterable_1_First_m54AC7E778E98ED35C6B7AD98C35C325B8A3DF619_ComCallableWrapperProjectedMethod(RuntimeObject* __this, IIterator_1_tB1AB5AB497E87D6A397AA084D3D3D6B8D211022C** comReturnValue); il2cpp_hresult_t IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7_ComCallableWrapperProjectedMethod(RuntimeObject* __this, IBindableIterator_tD7550F1144CFBE58090050457A2BE92B1CAEABBB** comReturnValue); il2cpp_hresult_t IIterable_1_First_m0DF5AB173068D2FBCA182101EF7C9DD4C9135BCB_ComCallableWrapperProjectedMethod(RuntimeObject* __this, IIterator_1_tE13F884343548B90CBE44A0A597D5A31E29178BF** comReturnValue); il2cpp_hresult_t IIterable_1_First_mC1E90957AD904E68CE3F84D1EF22D5EFACE8C2D5_ComCallableWrapperProjectedMethod(RuntimeObject* __this, IIterator_1_tFF647CAD19D34FD0606CDD3425C431F82B94589C** comReturnValue); il2cpp_hresult_t IIterable_1_First_m1E9A9F6DA2EC9A3A751A6E85F67C9BB40798A879_ComCallableWrapperProjectedMethod(RuntimeObject* __this, IIterator_1_tD5C5DE60C4A835F60D32B19C44430B59B26BFA67** comReturnValue); il2cpp_hresult_t IIterable_1_First_m512126C71D7E9D1C31B56F64455F33E9FEEC89F8_ComCallableWrapperProjectedMethod(RuntimeObject* __this, IIterator_1_t6A46A7244E5AAD0AE4F2A07AF43DA5052D55F4A4** comReturnValue); // System.Void Windows.Foundation.TypedEventHandler`2<System.Object,System.Object>::Invoke(TSender,TResult) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void TypedEventHandler_2_Invoke_m5D952F3779C15A5E243841A324A3342D1D58CE67_gshared (TypedEventHandler_2_t8D72D4CAB5DF9F7D9AE52E95A431BD4738A32CDC * __this, RuntimeObject * ___sender0, RuntimeObject * ___args1, const RuntimeMethod* method); // System.Void Windows.Foundation.TypedEventHandler`2<Windows.UI.ViewManagement.InputPane,Windows.UI.ViewManagement.InputPaneVisibilityEventArgs>::Invoke(TSender,TResult) inline void TypedEventHandler_2_Invoke_m606719294C008B46778D7017B715442332EF1BFB (TypedEventHandler_2_tC915EA305D2AEB512570B5262AEC81263F1818E1 * __this, InputPane_tF3B65D04E39FC6EB8DD27594586A06CF7EE2B393 * ___sender0, InputPaneVisibilityEventArgs_t049567B03D376F2BA4816EF9F1519EF06AAEE0D6 * ___args1, const RuntimeMethod* method) { (( void (*) (TypedEventHandler_2_tC915EA305D2AEB512570B5262AEC81263F1818E1 *, InputPane_tF3B65D04E39FC6EB8DD27594586A06CF7EE2B393 *, InputPaneVisibilityEventArgs_t049567B03D376F2BA4816EF9F1519EF06AAEE0D6 *, const RuntimeMethod*))TypedEventHandler_2_Invoke_m5D952F3779C15A5E243841A324A3342D1D58CE67_gshared)(__this, ___sender0, ___args1, method); } // System.Void Windows.Foundation.TypedEventHandler`2<System.Object,System.Object>::Invoke(TSender,TResult) inline void TypedEventHandler_2_Invoke_m5D952F3779C15A5E243841A324A3342D1D58CE67 (TypedEventHandler_2_t8D72D4CAB5DF9F7D9AE52E95A431BD4738A32CDC * __this, RuntimeObject * ___sender0, RuntimeObject * ___args1, const RuntimeMethod* method) { (( void (*) (TypedEventHandler_2_t8D72D4CAB5DF9F7D9AE52E95A431BD4738A32CDC *, RuntimeObject *, RuntimeObject *, const RuntimeMethod*))TypedEventHandler_2_Invoke_m5D952F3779C15A5E243841A324A3342D1D58CE67_gshared)(__this, ___sender0, ___args1, method); } // COM Callable Wrapper for System.Threading.Tasks.Task`1<Microsoft.MixedReality.Toolkit.Input.InputAnimation> struct Task_1_tB231B84F8F2E5D004D7EE56C7AC413E80914BC74_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<Task_1_tB231B84F8F2E5D004D7EE56C7AC413E80914BC74_ComCallableWrapper>, IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953 { inline Task_1_tB231B84F8F2E5D004D7EE56C7AC413E80914BC74_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<Task_1_tB231B84F8F2E5D004D7EE56C7AC413E80914BC74_ComCallableWrapper>(obj) {} virtual il2cpp_hresult_t STDCALL QueryInterface(const Il2CppGuid& iid, void** object) IL2CPP_OVERRIDE { if (::memcmp(&iid, &Il2CppIUnknown::IID, sizeof(Il2CppGuid)) == 0 || ::memcmp(&iid, &Il2CppIInspectable::IID, sizeof(Il2CppGuid)) == 0 || ::memcmp(&iid, &Il2CppIAgileObject::IID, sizeof(Il2CppGuid)) == 0) { *object = GetIdentity(); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIManagedObjectHolder::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIManagedObjectHolder*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIMarshal::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIMarshal*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIWeakReferenceSource::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIWeakReferenceSource*>(this); AddRefImpl(); return IL2CPP_S_OK; } *object = NULL; return IL2CPP_E_NOINTERFACE; } virtual uint32_t STDCALL AddRef() IL2CPP_OVERRIDE { return AddRefImpl(); } virtual uint32_t STDCALL Release() IL2CPP_OVERRIDE { return ReleaseImpl(); } virtual il2cpp_hresult_t STDCALL GetIids(uint32_t* iidCount, Il2CppGuid** iids) IL2CPP_OVERRIDE { Il2CppGuid* interfaceIds = il2cpp_codegen_marshal_allocate_array<Il2CppGuid>(1); interfaceIds[0] = IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953::IID; *iidCount = 1; *iids = interfaceIds; return IL2CPP_S_OK; } virtual il2cpp_hresult_t STDCALL GetRuntimeClassName(Il2CppHString* className) IL2CPP_OVERRIDE { return GetRuntimeClassNameImpl(className); } virtual il2cpp_hresult_t STDCALL GetTrustLevel(int32_t* trustLevel) IL2CPP_OVERRIDE { return ComObjectBase::GetTrustLevel(trustLevel); } virtual il2cpp_hresult_t STDCALL IClosable_Close_m7DE2119A960C4E3898E6E5D03245D047BF113999() IL2CPP_OVERRIDE { return IClosable_Close_m7DE2119A960C4E3898E6E5D03245D047BF113999_ComCallableWrapperProjectedMethod(GetManagedObjectInline()); } }; IL2CPP_EXTERN_C Il2CppIUnknown* CreateComCallableWrapperFor_Task_1_tB231B84F8F2E5D004D7EE56C7AC413E80914BC74(RuntimeObject* obj) { void* memory = il2cpp::utils::Memory::Malloc(sizeof(Task_1_tB231B84F8F2E5D004D7EE56C7AC413E80914BC74_ComCallableWrapper)); if (memory == NULL) { il2cpp_codegen_raise_out_of_memory_exception(); } return static_cast<Il2CppIManagedObjectHolder*>(new(memory) Task_1_tB231B84F8F2E5D004D7EE56C7AC413E80914BC74_ComCallableWrapper(obj)); } // COM Callable Wrapper for System.Threading.Tasks.Task`1<Microsoft.MixedReality.Toolkit.WindowsDevicePortal.InstalledApps> struct Task_1_t6F7CA8E69F36445E669783F681D8C2EFC6E264AF_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<Task_1_t6F7CA8E69F36445E669783F681D8C2EFC6E264AF_ComCallableWrapper>, IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953 { inline Task_1_t6F7CA8E69F36445E669783F681D8C2EFC6E264AF_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<Task_1_t6F7CA8E69F36445E669783F681D8C2EFC6E264AF_ComCallableWrapper>(obj) {} virtual il2cpp_hresult_t STDCALL QueryInterface(const Il2CppGuid& iid, void** object) IL2CPP_OVERRIDE { if (::memcmp(&iid, &Il2CppIUnknown::IID, sizeof(Il2CppGuid)) == 0 || ::memcmp(&iid, &Il2CppIInspectable::IID, sizeof(Il2CppGuid)) == 0 || ::memcmp(&iid, &Il2CppIAgileObject::IID, sizeof(Il2CppGuid)) == 0) { *object = GetIdentity(); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIManagedObjectHolder::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIManagedObjectHolder*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIMarshal::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIMarshal*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIWeakReferenceSource::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIWeakReferenceSource*>(this); AddRefImpl(); return IL2CPP_S_OK; } *object = NULL; return IL2CPP_E_NOINTERFACE; } virtual uint32_t STDCALL AddRef() IL2CPP_OVERRIDE { return AddRefImpl(); } virtual uint32_t STDCALL Release() IL2CPP_OVERRIDE { return ReleaseImpl(); } virtual il2cpp_hresult_t STDCALL GetIids(uint32_t* iidCount, Il2CppGuid** iids) IL2CPP_OVERRIDE { Il2CppGuid* interfaceIds = il2cpp_codegen_marshal_allocate_array<Il2CppGuid>(1); interfaceIds[0] = IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953::IID; *iidCount = 1; *iids = interfaceIds; return IL2CPP_S_OK; } virtual il2cpp_hresult_t STDCALL GetRuntimeClassName(Il2CppHString* className) IL2CPP_OVERRIDE { return GetRuntimeClassNameImpl(className); } virtual il2cpp_hresult_t STDCALL GetTrustLevel(int32_t* trustLevel) IL2CPP_OVERRIDE { return ComObjectBase::GetTrustLevel(trustLevel); } virtual il2cpp_hresult_t STDCALL IClosable_Close_m7DE2119A960C4E3898E6E5D03245D047BF113999() IL2CPP_OVERRIDE { return IClosable_Close_m7DE2119A960C4E3898E6E5D03245D047BF113999_ComCallableWrapperProjectedMethod(GetManagedObjectInline()); } }; IL2CPP_EXTERN_C Il2CppIUnknown* CreateComCallableWrapperFor_Task_1_t6F7CA8E69F36445E669783F681D8C2EFC6E264AF(RuntimeObject* obj) { void* memory = il2cpp::utils::Memory::Malloc(sizeof(Task_1_t6F7CA8E69F36445E669783F681D8C2EFC6E264AF_ComCallableWrapper)); if (memory == NULL) { il2cpp_codegen_raise_out_of_memory_exception(); } return static_cast<Il2CppIManagedObjectHolder*>(new(memory) Task_1_t6F7CA8E69F36445E669783F681D8C2EFC6E264AF_ComCallableWrapper(obj)); } // COM Callable Wrapper for System.Threading.Tasks.Task`1<System.Int32> struct Task_1_tEF253D967DB628A9F8A389A9F2E4516871FD3725_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<Task_1_tEF253D967DB628A9F8A389A9F2E4516871FD3725_ComCallableWrapper>, IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953 { inline Task_1_tEF253D967DB628A9F8A389A9F2E4516871FD3725_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<Task_1_tEF253D967DB628A9F8A389A9F2E4516871FD3725_ComCallableWrapper>(obj) {} virtual il2cpp_hresult_t STDCALL QueryInterface(const Il2CppGuid& iid, void** object) IL2CPP_OVERRIDE { if (::memcmp(&iid, &Il2CppIUnknown::IID, sizeof(Il2CppGuid)) == 0 || ::memcmp(&iid, &Il2CppIInspectable::IID, sizeof(Il2CppGuid)) == 0 || ::memcmp(&iid, &Il2CppIAgileObject::IID, sizeof(Il2CppGuid)) == 0) { *object = GetIdentity(); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIManagedObjectHolder::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIManagedObjectHolder*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIMarshal::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIMarshal*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIWeakReferenceSource::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIWeakReferenceSource*>(this); AddRefImpl(); return IL2CPP_S_OK; } *object = NULL; return IL2CPP_E_NOINTERFACE; } virtual uint32_t STDCALL AddRef() IL2CPP_OVERRIDE { return AddRefImpl(); } virtual uint32_t STDCALL Release() IL2CPP_OVERRIDE { return ReleaseImpl(); } virtual il2cpp_hresult_t STDCALL GetIids(uint32_t* iidCount, Il2CppGuid** iids) IL2CPP_OVERRIDE { Il2CppGuid* interfaceIds = il2cpp_codegen_marshal_allocate_array<Il2CppGuid>(1); interfaceIds[0] = IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953::IID; *iidCount = 1; *iids = interfaceIds; return IL2CPP_S_OK; } virtual il2cpp_hresult_t STDCALL GetRuntimeClassName(Il2CppHString* className) IL2CPP_OVERRIDE { return GetRuntimeClassNameImpl(className); } virtual il2cpp_hresult_t STDCALL GetTrustLevel(int32_t* trustLevel) IL2CPP_OVERRIDE { return ComObjectBase::GetTrustLevel(trustLevel); } virtual il2cpp_hresult_t STDCALL IClosable_Close_m7DE2119A960C4E3898E6E5D03245D047BF113999() IL2CPP_OVERRIDE { return IClosable_Close_m7DE2119A960C4E3898E6E5D03245D047BF113999_ComCallableWrapperProjectedMethod(GetManagedObjectInline()); } }; IL2CPP_EXTERN_C Il2CppIUnknown* CreateComCallableWrapperFor_Task_1_tEF253D967DB628A9F8A389A9F2E4516871FD3725(RuntimeObject* obj) { void* memory = il2cpp::utils::Memory::Malloc(sizeof(Task_1_tEF253D967DB628A9F8A389A9F2E4516871FD3725_ComCallableWrapper)); if (memory == NULL) { il2cpp_codegen_raise_out_of_memory_exception(); } return static_cast<Il2CppIManagedObjectHolder*>(new(memory) Task_1_tEF253D967DB628A9F8A389A9F2E4516871FD3725_ComCallableWrapper(obj)); } // COM Callable Wrapper for System.Threading.Tasks.Task`1<Microsoft.MixedReality.Toolkit.WindowsDevicePortal.IpConfigInfo> struct Task_1_tD7DA066BF6FD0D25584440485D1B69708EB10027_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<Task_1_tD7DA066BF6FD0D25584440485D1B69708EB10027_ComCallableWrapper>, IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953 { inline Task_1_tD7DA066BF6FD0D25584440485D1B69708EB10027_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<Task_1_tD7DA066BF6FD0D25584440485D1B69708EB10027_ComCallableWrapper>(obj) {} virtual il2cpp_hresult_t STDCALL QueryInterface(const Il2CppGuid& iid, void** object) IL2CPP_OVERRIDE { if (::memcmp(&iid, &Il2CppIUnknown::IID, sizeof(Il2CppGuid)) == 0 || ::memcmp(&iid, &Il2CppIInspectable::IID, sizeof(Il2CppGuid)) == 0 || ::memcmp(&iid, &Il2CppIAgileObject::IID, sizeof(Il2CppGuid)) == 0) { *object = GetIdentity(); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIManagedObjectHolder::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIManagedObjectHolder*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIMarshal::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIMarshal*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIWeakReferenceSource::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIWeakReferenceSource*>(this); AddRefImpl(); return IL2CPP_S_OK; } *object = NULL; return IL2CPP_E_NOINTERFACE; } virtual uint32_t STDCALL AddRef() IL2CPP_OVERRIDE { return AddRefImpl(); } virtual uint32_t STDCALL Release() IL2CPP_OVERRIDE { return ReleaseImpl(); } virtual il2cpp_hresult_t STDCALL GetIids(uint32_t* iidCount, Il2CppGuid** iids) IL2CPP_OVERRIDE { Il2CppGuid* interfaceIds = il2cpp_codegen_marshal_allocate_array<Il2CppGuid>(1); interfaceIds[0] = IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953::IID; *iidCount = 1; *iids = interfaceIds; return IL2CPP_S_OK; } virtual il2cpp_hresult_t STDCALL GetRuntimeClassName(Il2CppHString* className) IL2CPP_OVERRIDE { return GetRuntimeClassNameImpl(className); } virtual il2cpp_hresult_t STDCALL GetTrustLevel(int32_t* trustLevel) IL2CPP_OVERRIDE { return ComObjectBase::GetTrustLevel(trustLevel); } virtual il2cpp_hresult_t STDCALL IClosable_Close_m7DE2119A960C4E3898E6E5D03245D047BF113999() IL2CPP_OVERRIDE { return IClosable_Close_m7DE2119A960C4E3898E6E5D03245D047BF113999_ComCallableWrapperProjectedMethod(GetManagedObjectInline()); } }; IL2CPP_EXTERN_C Il2CppIUnknown* CreateComCallableWrapperFor_Task_1_tD7DA066BF6FD0D25584440485D1B69708EB10027(RuntimeObject* obj) { void* memory = il2cpp::utils::Memory::Malloc(sizeof(Task_1_tD7DA066BF6FD0D25584440485D1B69708EB10027_ComCallableWrapper)); if (memory == NULL) { il2cpp_codegen_raise_out_of_memory_exception(); } return static_cast<Il2CppIManagedObjectHolder*>(new(memory) Task_1_tD7DA066BF6FD0D25584440485D1B69708EB10027_ComCallableWrapper(obj)); } // COM Callable Wrapper for System.Threading.Tasks.Task`1<Microsoft.MixedReality.Toolkit.WindowsDevicePortal.MachineName> struct Task_1_tF4D5169AA34923DD2C107ABEE06B314423303D1D_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<Task_1_tF4D5169AA34923DD2C107ABEE06B314423303D1D_ComCallableWrapper>, IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953 { inline Task_1_tF4D5169AA34923DD2C107ABEE06B314423303D1D_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<Task_1_tF4D5169AA34923DD2C107ABEE06B314423303D1D_ComCallableWrapper>(obj) {} virtual il2cpp_hresult_t STDCALL QueryInterface(const Il2CppGuid& iid, void** object) IL2CPP_OVERRIDE { if (::memcmp(&iid, &Il2CppIUnknown::IID, sizeof(Il2CppGuid)) == 0 || ::memcmp(&iid, &Il2CppIInspectable::IID, sizeof(Il2CppGuid)) == 0 || ::memcmp(&iid, &Il2CppIAgileObject::IID, sizeof(Il2CppGuid)) == 0) { *object = GetIdentity(); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIManagedObjectHolder::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIManagedObjectHolder*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIMarshal::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIMarshal*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIWeakReferenceSource::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIWeakReferenceSource*>(this); AddRefImpl(); return IL2CPP_S_OK; } *object = NULL; return IL2CPP_E_NOINTERFACE; } virtual uint32_t STDCALL AddRef() IL2CPP_OVERRIDE { return AddRefImpl(); } virtual uint32_t STDCALL Release() IL2CPP_OVERRIDE { return ReleaseImpl(); } virtual il2cpp_hresult_t STDCALL GetIids(uint32_t* iidCount, Il2CppGuid** iids) IL2CPP_OVERRIDE { Il2CppGuid* interfaceIds = il2cpp_codegen_marshal_allocate_array<Il2CppGuid>(1); interfaceIds[0] = IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953::IID; *iidCount = 1; *iids = interfaceIds; return IL2CPP_S_OK; } virtual il2cpp_hresult_t STDCALL GetRuntimeClassName(Il2CppHString* className) IL2CPP_OVERRIDE { return GetRuntimeClassNameImpl(className); } virtual il2cpp_hresult_t STDCALL GetTrustLevel(int32_t* trustLevel) IL2CPP_OVERRIDE { return ComObjectBase::GetTrustLevel(trustLevel); } virtual il2cpp_hresult_t STDCALL IClosable_Close_m7DE2119A960C4E3898E6E5D03245D047BF113999() IL2CPP_OVERRIDE { return IClosable_Close_m7DE2119A960C4E3898E6E5D03245D047BF113999_ComCallableWrapperProjectedMethod(GetManagedObjectInline()); } }; IL2CPP_EXTERN_C Il2CppIUnknown* CreateComCallableWrapperFor_Task_1_tF4D5169AA34923DD2C107ABEE06B314423303D1D(RuntimeObject* obj) { void* memory = il2cpp::utils::Memory::Malloc(sizeof(Task_1_tF4D5169AA34923DD2C107ABEE06B314423303D1D_ComCallableWrapper)); if (memory == NULL) { il2cpp_codegen_raise_out_of_memory_exception(); } return static_cast<Il2CppIManagedObjectHolder*>(new(memory) Task_1_tF4D5169AA34923DD2C107ABEE06B314423303D1D_ComCallableWrapper(obj)); } // COM Callable Wrapper for System.Threading.Tasks.Task`1<Microsoft.MixedReality.Toolkit.WindowsDevicePortal.NetworkInterfaces> struct Task_1_t68101F485713C137AD3B19867F405A375A202E36_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<Task_1_t68101F485713C137AD3B19867F405A375A202E36_ComCallableWrapper>, IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953 { inline Task_1_t68101F485713C137AD3B19867F405A375A202E36_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<Task_1_t68101F485713C137AD3B19867F405A375A202E36_ComCallableWrapper>(obj) {} virtual il2cpp_hresult_t STDCALL QueryInterface(const Il2CppGuid& iid, void** object) IL2CPP_OVERRIDE { if (::memcmp(&iid, &Il2CppIUnknown::IID, sizeof(Il2CppGuid)) == 0 || ::memcmp(&iid, &Il2CppIInspectable::IID, sizeof(Il2CppGuid)) == 0 || ::memcmp(&iid, &Il2CppIAgileObject::IID, sizeof(Il2CppGuid)) == 0) { *object = GetIdentity(); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIManagedObjectHolder::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIManagedObjectHolder*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIMarshal::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIMarshal*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIWeakReferenceSource::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIWeakReferenceSource*>(this); AddRefImpl(); return IL2CPP_S_OK; } *object = NULL; return IL2CPP_E_NOINTERFACE; } virtual uint32_t STDCALL AddRef() IL2CPP_OVERRIDE { return AddRefImpl(); } virtual uint32_t STDCALL Release() IL2CPP_OVERRIDE { return ReleaseImpl(); } virtual il2cpp_hresult_t STDCALL GetIids(uint32_t* iidCount, Il2CppGuid** iids) IL2CPP_OVERRIDE { Il2CppGuid* interfaceIds = il2cpp_codegen_marshal_allocate_array<Il2CppGuid>(1); interfaceIds[0] = IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953::IID; *iidCount = 1; *iids = interfaceIds; return IL2CPP_S_OK; } virtual il2cpp_hresult_t STDCALL GetRuntimeClassName(Il2CppHString* className) IL2CPP_OVERRIDE { return GetRuntimeClassNameImpl(className); } virtual il2cpp_hresult_t STDCALL GetTrustLevel(int32_t* trustLevel) IL2CPP_OVERRIDE { return ComObjectBase::GetTrustLevel(trustLevel); } virtual il2cpp_hresult_t STDCALL IClosable_Close_m7DE2119A960C4E3898E6E5D03245D047BF113999() IL2CPP_OVERRIDE { return IClosable_Close_m7DE2119A960C4E3898E6E5D03245D047BF113999_ComCallableWrapperProjectedMethod(GetManagedObjectInline()); } }; IL2CPP_EXTERN_C Il2CppIUnknown* CreateComCallableWrapperFor_Task_1_t68101F485713C137AD3B19867F405A375A202E36(RuntimeObject* obj) { void* memory = il2cpp::utils::Memory::Malloc(sizeof(Task_1_t68101F485713C137AD3B19867F405A375A202E36_ComCallableWrapper)); if (memory == NULL) { il2cpp_codegen_raise_out_of_memory_exception(); } return static_cast<Il2CppIManagedObjectHolder*>(new(memory) Task_1_t68101F485713C137AD3B19867F405A375A202E36_ComCallableWrapper(obj)); } // COM Callable Wrapper for System.Threading.Tasks.Task`1<Microsoft.MixedReality.Toolkit.WindowsDevicePortal.PowerStateInfo> struct Task_1_t5DB16C7733B6BC0F3DCFAD3C5DD224C7D5B13982_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<Task_1_t5DB16C7733B6BC0F3DCFAD3C5DD224C7D5B13982_ComCallableWrapper>, IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953 { inline Task_1_t5DB16C7733B6BC0F3DCFAD3C5DD224C7D5B13982_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<Task_1_t5DB16C7733B6BC0F3DCFAD3C5DD224C7D5B13982_ComCallableWrapper>(obj) {} virtual il2cpp_hresult_t STDCALL QueryInterface(const Il2CppGuid& iid, void** object) IL2CPP_OVERRIDE { if (::memcmp(&iid, &Il2CppIUnknown::IID, sizeof(Il2CppGuid)) == 0 || ::memcmp(&iid, &Il2CppIInspectable::IID, sizeof(Il2CppGuid)) == 0 || ::memcmp(&iid, &Il2CppIAgileObject::IID, sizeof(Il2CppGuid)) == 0) { *object = GetIdentity(); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIManagedObjectHolder::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIManagedObjectHolder*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIMarshal::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIMarshal*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIWeakReferenceSource::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIWeakReferenceSource*>(this); AddRefImpl(); return IL2CPP_S_OK; } *object = NULL; return IL2CPP_E_NOINTERFACE; } virtual uint32_t STDCALL AddRef() IL2CPP_OVERRIDE { return AddRefImpl(); } virtual uint32_t STDCALL Release() IL2CPP_OVERRIDE { return ReleaseImpl(); } virtual il2cpp_hresult_t STDCALL GetIids(uint32_t* iidCount, Il2CppGuid** iids) IL2CPP_OVERRIDE { Il2CppGuid* interfaceIds = il2cpp_codegen_marshal_allocate_array<Il2CppGuid>(1); interfaceIds[0] = IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953::IID; *iidCount = 1; *iids = interfaceIds; return IL2CPP_S_OK; } virtual il2cpp_hresult_t STDCALL GetRuntimeClassName(Il2CppHString* className) IL2CPP_OVERRIDE { return GetRuntimeClassNameImpl(className); } virtual il2cpp_hresult_t STDCALL GetTrustLevel(int32_t* trustLevel) IL2CPP_OVERRIDE { return ComObjectBase::GetTrustLevel(trustLevel); } virtual il2cpp_hresult_t STDCALL IClosable_Close_m7DE2119A960C4E3898E6E5D03245D047BF113999() IL2CPP_OVERRIDE { return IClosable_Close_m7DE2119A960C4E3898E6E5D03245D047BF113999_ComCallableWrapperProjectedMethod(GetManagedObjectInline()); } }; IL2CPP_EXTERN_C Il2CppIUnknown* CreateComCallableWrapperFor_Task_1_t5DB16C7733B6BC0F3DCFAD3C5DD224C7D5B13982(RuntimeObject* obj) { void* memory = il2cpp::utils::Memory::Malloc(sizeof(Task_1_t5DB16C7733B6BC0F3DCFAD3C5DD224C7D5B13982_ComCallableWrapper)); if (memory == NULL) { il2cpp_codegen_raise_out_of_memory_exception(); } return static_cast<Il2CppIManagedObjectHolder*>(new(memory) Task_1_t5DB16C7733B6BC0F3DCFAD3C5DD224C7D5B13982_ComCallableWrapper(obj)); } // COM Callable Wrapper for System.Threading.Tasks.Task`1<Microsoft.MixedReality.Toolkit.Utilities.Response> struct Task_1_tEC990C8BF45429164CE40D283A3F83E130F3A880_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<Task_1_tEC990C8BF45429164CE40D283A3F83E130F3A880_ComCallableWrapper>, IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953 { inline Task_1_tEC990C8BF45429164CE40D283A3F83E130F3A880_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<Task_1_tEC990C8BF45429164CE40D283A3F83E130F3A880_ComCallableWrapper>(obj) {} virtual il2cpp_hresult_t STDCALL QueryInterface(const Il2CppGuid& iid, void** object) IL2CPP_OVERRIDE { if (::memcmp(&iid, &Il2CppIUnknown::IID, sizeof(Il2CppGuid)) == 0 || ::memcmp(&iid, &Il2CppIInspectable::IID, sizeof(Il2CppGuid)) == 0 || ::memcmp(&iid, &Il2CppIAgileObject::IID, sizeof(Il2CppGuid)) == 0) { *object = GetIdentity(); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIManagedObjectHolder::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIManagedObjectHolder*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIMarshal::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIMarshal*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIWeakReferenceSource::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIWeakReferenceSource*>(this); AddRefImpl(); return IL2CPP_S_OK; } *object = NULL; return IL2CPP_E_NOINTERFACE; } virtual uint32_t STDCALL AddRef() IL2CPP_OVERRIDE { return AddRefImpl(); } virtual uint32_t STDCALL Release() IL2CPP_OVERRIDE { return ReleaseImpl(); } virtual il2cpp_hresult_t STDCALL GetIids(uint32_t* iidCount, Il2CppGuid** iids) IL2CPP_OVERRIDE { Il2CppGuid* interfaceIds = il2cpp_codegen_marshal_allocate_array<Il2CppGuid>(1); interfaceIds[0] = IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953::IID; *iidCount = 1; *iids = interfaceIds; return IL2CPP_S_OK; } virtual il2cpp_hresult_t STDCALL GetRuntimeClassName(Il2CppHString* className) IL2CPP_OVERRIDE { return GetRuntimeClassNameImpl(className); } virtual il2cpp_hresult_t STDCALL GetTrustLevel(int32_t* trustLevel) IL2CPP_OVERRIDE { return ComObjectBase::GetTrustLevel(trustLevel); } virtual il2cpp_hresult_t STDCALL IClosable_Close_m7DE2119A960C4E3898E6E5D03245D047BF113999() IL2CPP_OVERRIDE { return IClosable_Close_m7DE2119A960C4E3898E6E5D03245D047BF113999_ComCallableWrapperProjectedMethod(GetManagedObjectInline()); } }; IL2CPP_EXTERN_C Il2CppIUnknown* CreateComCallableWrapperFor_Task_1_tEC990C8BF45429164CE40D283A3F83E130F3A880(RuntimeObject* obj) { void* memory = il2cpp::utils::Memory::Malloc(sizeof(Task_1_tEC990C8BF45429164CE40D283A3F83E130F3A880_ComCallableWrapper)); if (memory == NULL) { il2cpp_codegen_raise_out_of_memory_exception(); } return static_cast<Il2CppIManagedObjectHolder*>(new(memory) Task_1_tEC990C8BF45429164CE40D283A3F83E130F3A880_ComCallableWrapper(obj)); } // COM Callable Wrapper for System.Threading.Tasks.Task`1<System.String> struct Task_1_t30D80D0F41B19BC27A8D1141D69741D0B986B2C3_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<Task_1_t30D80D0F41B19BC27A8D1141D69741D0B986B2C3_ComCallableWrapper>, IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953 { inline Task_1_t30D80D0F41B19BC27A8D1141D69741D0B986B2C3_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<Task_1_t30D80D0F41B19BC27A8D1141D69741D0B986B2C3_ComCallableWrapper>(obj) {} virtual il2cpp_hresult_t STDCALL QueryInterface(const Il2CppGuid& iid, void** object) IL2CPP_OVERRIDE { if (::memcmp(&iid, &Il2CppIUnknown::IID, sizeof(Il2CppGuid)) == 0 || ::memcmp(&iid, &Il2CppIInspectable::IID, sizeof(Il2CppGuid)) == 0 || ::memcmp(&iid, &Il2CppIAgileObject::IID, sizeof(Il2CppGuid)) == 0) { *object = GetIdentity(); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIManagedObjectHolder::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIManagedObjectHolder*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIMarshal::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIMarshal*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIWeakReferenceSource::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIWeakReferenceSource*>(this); AddRefImpl(); return IL2CPP_S_OK; } *object = NULL; return IL2CPP_E_NOINTERFACE; } virtual uint32_t STDCALL AddRef() IL2CPP_OVERRIDE { return AddRefImpl(); } virtual uint32_t STDCALL Release() IL2CPP_OVERRIDE { return ReleaseImpl(); } virtual il2cpp_hresult_t STDCALL GetIids(uint32_t* iidCount, Il2CppGuid** iids) IL2CPP_OVERRIDE { Il2CppGuid* interfaceIds = il2cpp_codegen_marshal_allocate_array<Il2CppGuid>(1); interfaceIds[0] = IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953::IID; *iidCount = 1; *iids = interfaceIds; return IL2CPP_S_OK; } virtual il2cpp_hresult_t STDCALL GetRuntimeClassName(Il2CppHString* className) IL2CPP_OVERRIDE { return GetRuntimeClassNameImpl(className); } virtual il2cpp_hresult_t STDCALL GetTrustLevel(int32_t* trustLevel) IL2CPP_OVERRIDE { return ComObjectBase::GetTrustLevel(trustLevel); } virtual il2cpp_hresult_t STDCALL IClosable_Close_m7DE2119A960C4E3898E6E5D03245D047BF113999() IL2CPP_OVERRIDE { return IClosable_Close_m7DE2119A960C4E3898E6E5D03245D047BF113999_ComCallableWrapperProjectedMethod(GetManagedObjectInline()); } }; IL2CPP_EXTERN_C Il2CppIUnknown* CreateComCallableWrapperFor_Task_1_t30D80D0F41B19BC27A8D1141D69741D0B986B2C3(RuntimeObject* obj) { void* memory = il2cpp::utils::Memory::Malloc(sizeof(Task_1_t30D80D0F41B19BC27A8D1141D69741D0B986B2C3_ComCallableWrapper)); if (memory == NULL) { il2cpp_codegen_raise_out_of_memory_exception(); } return static_cast<Il2CppIManagedObjectHolder*>(new(memory) Task_1_t30D80D0F41B19BC27A8D1141D69741D0B986B2C3_ComCallableWrapper(obj)); } // COM Callable Wrapper for System.Threading.Tasks.Task`1<System.Threading.Tasks.VoidTaskResult> struct Task_1_t65FD5EE287B61746F015BBC8E90A97D38D258FB3_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<Task_1_t65FD5EE287B61746F015BBC8E90A97D38D258FB3_ComCallableWrapper>, IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953 { inline Task_1_t65FD5EE287B61746F015BBC8E90A97D38D258FB3_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<Task_1_t65FD5EE287B61746F015BBC8E90A97D38D258FB3_ComCallableWrapper>(obj) {} virtual il2cpp_hresult_t STDCALL QueryInterface(const Il2CppGuid& iid, void** object) IL2CPP_OVERRIDE { if (::memcmp(&iid, &Il2CppIUnknown::IID, sizeof(Il2CppGuid)) == 0 || ::memcmp(&iid, &Il2CppIInspectable::IID, sizeof(Il2CppGuid)) == 0 || ::memcmp(&iid, &Il2CppIAgileObject::IID, sizeof(Il2CppGuid)) == 0) { *object = GetIdentity(); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIManagedObjectHolder::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIManagedObjectHolder*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIMarshal::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIMarshal*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIWeakReferenceSource::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIWeakReferenceSource*>(this); AddRefImpl(); return IL2CPP_S_OK; } *object = NULL; return IL2CPP_E_NOINTERFACE; } virtual uint32_t STDCALL AddRef() IL2CPP_OVERRIDE { return AddRefImpl(); } virtual uint32_t STDCALL Release() IL2CPP_OVERRIDE { return ReleaseImpl(); } virtual il2cpp_hresult_t STDCALL GetIids(uint32_t* iidCount, Il2CppGuid** iids) IL2CPP_OVERRIDE { Il2CppGuid* interfaceIds = il2cpp_codegen_marshal_allocate_array<Il2CppGuid>(1); interfaceIds[0] = IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953::IID; *iidCount = 1; *iids = interfaceIds; return IL2CPP_S_OK; } virtual il2cpp_hresult_t STDCALL GetRuntimeClassName(Il2CppHString* className) IL2CPP_OVERRIDE { return GetRuntimeClassNameImpl(className); } virtual il2cpp_hresult_t STDCALL GetTrustLevel(int32_t* trustLevel) IL2CPP_OVERRIDE { return ComObjectBase::GetTrustLevel(trustLevel); } virtual il2cpp_hresult_t STDCALL IClosable_Close_m7DE2119A960C4E3898E6E5D03245D047BF113999() IL2CPP_OVERRIDE { return IClosable_Close_m7DE2119A960C4E3898E6E5D03245D047BF113999_ComCallableWrapperProjectedMethod(GetManagedObjectInline()); } }; IL2CPP_EXTERN_C Il2CppIUnknown* CreateComCallableWrapperFor_Task_1_t65FD5EE287B61746F015BBC8E90A97D38D258FB3(RuntimeObject* obj) { void* memory = il2cpp::utils::Memory::Malloc(sizeof(Task_1_t65FD5EE287B61746F015BBC8E90A97D38D258FB3_ComCallableWrapper)); if (memory == NULL) { il2cpp_codegen_raise_out_of_memory_exception(); } return static_cast<Il2CppIManagedObjectHolder*>(new(memory) Task_1_t65FD5EE287B61746F015BBC8E90A97D38D258FB3_ComCallableWrapper(obj)); } // COM Callable Wrapper for System.Threading.Tasks.Task`1<UnityEngine.XR.WindowsMR.XRAnchorStore> struct Task_1_t620C8DD8E8F1BF041081FB9C825336F994CD53AF_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<Task_1_t620C8DD8E8F1BF041081FB9C825336F994CD53AF_ComCallableWrapper>, IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953 { inline Task_1_t620C8DD8E8F1BF041081FB9C825336F994CD53AF_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<Task_1_t620C8DD8E8F1BF041081FB9C825336F994CD53AF_ComCallableWrapper>(obj) {} virtual il2cpp_hresult_t STDCALL QueryInterface(const Il2CppGuid& iid, void** object) IL2CPP_OVERRIDE { if (::memcmp(&iid, &Il2CppIUnknown::IID, sizeof(Il2CppGuid)) == 0 || ::memcmp(&iid, &Il2CppIInspectable::IID, sizeof(Il2CppGuid)) == 0 || ::memcmp(&iid, &Il2CppIAgileObject::IID, sizeof(Il2CppGuid)) == 0) { *object = GetIdentity(); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIManagedObjectHolder::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIManagedObjectHolder*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIMarshal::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIMarshal*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIWeakReferenceSource::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIWeakReferenceSource*>(this); AddRefImpl(); return IL2CPP_S_OK; } *object = NULL; return IL2CPP_E_NOINTERFACE; } virtual uint32_t STDCALL AddRef() IL2CPP_OVERRIDE { return AddRefImpl(); } virtual uint32_t STDCALL Release() IL2CPP_OVERRIDE { return ReleaseImpl(); } virtual il2cpp_hresult_t STDCALL GetIids(uint32_t* iidCount, Il2CppGuid** iids) IL2CPP_OVERRIDE { Il2CppGuid* interfaceIds = il2cpp_codegen_marshal_allocate_array<Il2CppGuid>(1); interfaceIds[0] = IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953::IID; *iidCount = 1; *iids = interfaceIds; return IL2CPP_S_OK; } virtual il2cpp_hresult_t STDCALL GetRuntimeClassName(Il2CppHString* className) IL2CPP_OVERRIDE { return GetRuntimeClassNameImpl(className); } virtual il2cpp_hresult_t STDCALL GetTrustLevel(int32_t* trustLevel) IL2CPP_OVERRIDE { return ComObjectBase::GetTrustLevel(trustLevel); } virtual il2cpp_hresult_t STDCALL IClosable_Close_m7DE2119A960C4E3898E6E5D03245D047BF113999() IL2CPP_OVERRIDE { return IClosable_Close_m7DE2119A960C4E3898E6E5D03245D047BF113999_ComCallableWrapperProjectedMethod(GetManagedObjectInline()); } }; IL2CPP_EXTERN_C Il2CppIUnknown* CreateComCallableWrapperFor_Task_1_t620C8DD8E8F1BF041081FB9C825336F994CD53AF(RuntimeObject* obj) { void* memory = il2cpp::utils::Memory::Malloc(sizeof(Task_1_t620C8DD8E8F1BF041081FB9C825336F994CD53AF_ComCallableWrapper)); if (memory == NULL) { il2cpp_codegen_raise_out_of_memory_exception(); } return static_cast<Il2CppIManagedObjectHolder*>(new(memory) Task_1_t620C8DD8E8F1BF041081FB9C825336F994CD53AF_ComCallableWrapper(obj)); } // COM Callable Wrapper for System.Threading.Tasks.Task`1<Microsoft.MixedReality.Toolkit.WindowsDevicePortal.DevicePortal/AppInstallStatus> struct Task_1_t17D20CE1C73C7315ED1166DD8A1D38A9DD1F0806_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<Task_1_t17D20CE1C73C7315ED1166DD8A1D38A9DD1F0806_ComCallableWrapper>, IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953 { inline Task_1_t17D20CE1C73C7315ED1166DD8A1D38A9DD1F0806_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<Task_1_t17D20CE1C73C7315ED1166DD8A1D38A9DD1F0806_ComCallableWrapper>(obj) {} virtual il2cpp_hresult_t STDCALL QueryInterface(const Il2CppGuid& iid, void** object) IL2CPP_OVERRIDE { if (::memcmp(&iid, &Il2CppIUnknown::IID, sizeof(Il2CppGuid)) == 0 || ::memcmp(&iid, &Il2CppIInspectable::IID, sizeof(Il2CppGuid)) == 0 || ::memcmp(&iid, &Il2CppIAgileObject::IID, sizeof(Il2CppGuid)) == 0) { *object = GetIdentity(); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIManagedObjectHolder::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIManagedObjectHolder*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIMarshal::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIMarshal*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIWeakReferenceSource::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIWeakReferenceSource*>(this); AddRefImpl(); return IL2CPP_S_OK; } *object = NULL; return IL2CPP_E_NOINTERFACE; } virtual uint32_t STDCALL AddRef() IL2CPP_OVERRIDE { return AddRefImpl(); } virtual uint32_t STDCALL Release() IL2CPP_OVERRIDE { return ReleaseImpl(); } virtual il2cpp_hresult_t STDCALL GetIids(uint32_t* iidCount, Il2CppGuid** iids) IL2CPP_OVERRIDE { Il2CppGuid* interfaceIds = il2cpp_codegen_marshal_allocate_array<Il2CppGuid>(1); interfaceIds[0] = IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953::IID; *iidCount = 1; *iids = interfaceIds; return IL2CPP_S_OK; } virtual il2cpp_hresult_t STDCALL GetRuntimeClassName(Il2CppHString* className) IL2CPP_OVERRIDE { return GetRuntimeClassNameImpl(className); } virtual il2cpp_hresult_t STDCALL GetTrustLevel(int32_t* trustLevel) IL2CPP_OVERRIDE { return ComObjectBase::GetTrustLevel(trustLevel); } virtual il2cpp_hresult_t STDCALL IClosable_Close_m7DE2119A960C4E3898E6E5D03245D047BF113999() IL2CPP_OVERRIDE { return IClosable_Close_m7DE2119A960C4E3898E6E5D03245D047BF113999_ComCallableWrapperProjectedMethod(GetManagedObjectInline()); } }; IL2CPP_EXTERN_C Il2CppIUnknown* CreateComCallableWrapperFor_Task_1_t17D20CE1C73C7315ED1166DD8A1D38A9DD1F0806(RuntimeObject* obj) { void* memory = il2cpp::utils::Memory::Malloc(sizeof(Task_1_t17D20CE1C73C7315ED1166DD8A1D38A9DD1F0806_ComCallableWrapper)); if (memory == NULL) { il2cpp_codegen_raise_out_of_memory_exception(); } return static_cast<Il2CppIManagedObjectHolder*>(new(memory) Task_1_t17D20CE1C73C7315ED1166DD8A1D38A9DD1F0806_ComCallableWrapper(obj)); } // COM Callable Wrapper for UnityEngine.XR.ARSubsystems.TrackableChanges`1<UnityEngine.XR.ARSubsystems.XRAnchor> struct TrackableChanges_1_tF38314CFF715F232D6DA3415FD2F68CE504CFF9B_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<TrackableChanges_1_tF38314CFF715F232D6DA3415FD2F68CE504CFF9B_ComCallableWrapper>, IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953 { inline TrackableChanges_1_tF38314CFF715F232D6DA3415FD2F68CE504CFF9B_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<TrackableChanges_1_tF38314CFF715F232D6DA3415FD2F68CE504CFF9B_ComCallableWrapper>(obj) {} virtual il2cpp_hresult_t STDCALL QueryInterface(const Il2CppGuid& iid, void** object) IL2CPP_OVERRIDE { if (::memcmp(&iid, &Il2CppIUnknown::IID, sizeof(Il2CppGuid)) == 0 || ::memcmp(&iid, &Il2CppIInspectable::IID, sizeof(Il2CppGuid)) == 0 || ::memcmp(&iid, &Il2CppIAgileObject::IID, sizeof(Il2CppGuid)) == 0) { *object = GetIdentity(); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIManagedObjectHolder::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIManagedObjectHolder*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIMarshal::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIMarshal*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIWeakReferenceSource::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIWeakReferenceSource*>(this); AddRefImpl(); return IL2CPP_S_OK; } *object = NULL; return IL2CPP_E_NOINTERFACE; } virtual uint32_t STDCALL AddRef() IL2CPP_OVERRIDE { return AddRefImpl(); } virtual uint32_t STDCALL Release() IL2CPP_OVERRIDE { return ReleaseImpl(); } virtual il2cpp_hresult_t STDCALL GetIids(uint32_t* iidCount, Il2CppGuid** iids) IL2CPP_OVERRIDE { Il2CppGuid* interfaceIds = il2cpp_codegen_marshal_allocate_array<Il2CppGuid>(1); interfaceIds[0] = IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953::IID; *iidCount = 1; *iids = interfaceIds; return IL2CPP_S_OK; } virtual il2cpp_hresult_t STDCALL GetRuntimeClassName(Il2CppHString* className) IL2CPP_OVERRIDE { return GetRuntimeClassNameImpl(className); } virtual il2cpp_hresult_t STDCALL GetTrustLevel(int32_t* trustLevel) IL2CPP_OVERRIDE { return ComObjectBase::GetTrustLevel(trustLevel); } virtual il2cpp_hresult_t STDCALL IClosable_Close_m7DE2119A960C4E3898E6E5D03245D047BF113999() IL2CPP_OVERRIDE { return IClosable_Close_m7DE2119A960C4E3898E6E5D03245D047BF113999_ComCallableWrapperProjectedMethod(GetManagedObjectInline()); } }; IL2CPP_EXTERN_C Il2CppIUnknown* CreateComCallableWrapperFor_TrackableChanges_1_tF38314CFF715F232D6DA3415FD2F68CE504CFF9B(RuntimeObject* obj) { void* memory = il2cpp::utils::Memory::Malloc(sizeof(TrackableChanges_1_tF38314CFF715F232D6DA3415FD2F68CE504CFF9B_ComCallableWrapper)); if (memory == NULL) { il2cpp_codegen_raise_out_of_memory_exception(); } return static_cast<Il2CppIManagedObjectHolder*>(new(memory) TrackableChanges_1_tF38314CFF715F232D6DA3415FD2F68CE504CFF9B_ComCallableWrapper(obj)); } // COM Callable Wrapper class definition for Windows.Foundation.TypedEventHandler`2<Windows.UI.ViewManagement.InputPane,Windows.UI.ViewManagement.InputPaneVisibilityEventArgs> struct TypedEventHandler_2_tC915EA305D2AEB512570B5262AEC81263F1818E1_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<TypedEventHandler_2_tC915EA305D2AEB512570B5262AEC81263F1818E1_ComCallableWrapper>, ITypedEventHandler_2_tC915EA305D2AEB512570B5262AEC81263F1818E1_ComCallableWrapper { inline TypedEventHandler_2_tC915EA305D2AEB512570B5262AEC81263F1818E1_ComCallableWrapper(RuntimeObject * obj) : il2cpp::vm::CachedCCWBase<TypedEventHandler_2_tC915EA305D2AEB512570B5262AEC81263F1818E1_ComCallableWrapper>(obj) { } virtual il2cpp_hresult_t STDCALL QueryInterface(const Il2CppGuid& iid, void** object) IL2CPP_OVERRIDE { if (::memcmp(&iid, &Il2CppIUnknown::IID, sizeof(Il2CppGuid)) == 0 || ::memcmp(&iid, &Il2CppIInspectable::IID, sizeof(Il2CppGuid)) == 0 || ::memcmp(&iid, &Il2CppIAgileObject::IID, sizeof(Il2CppGuid)) == 0) { *object = GetIdentity(); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIManagedObjectHolder::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIManagedObjectHolder*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &ITypedEventHandler_2_tC915EA305D2AEB512570B5262AEC81263F1818E1_ComCallableWrapper::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<ITypedEventHandler_2_tC915EA305D2AEB512570B5262AEC81263F1818E1_ComCallableWrapper*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIMarshal::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIMarshal*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIWeakReferenceSource::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIWeakReferenceSource*>(this); AddRefImpl(); return IL2CPP_S_OK; } *object = NULL; return IL2CPP_E_NOINTERFACE; } virtual uint32_t STDCALL AddRef() IL2CPP_OVERRIDE { return AddRefImpl(); } virtual uint32_t STDCALL Release() IL2CPP_OVERRIDE { return ReleaseImpl(); } // COM Callable invoker for Windows.Foundation.TypedEventHandler`2<Windows.UI.ViewManagement.InputPane,Windows.UI.ViewManagement.InputPaneVisibilityEventArgs> virtual il2cpp_hresult_t STDCALL Invoke(IInputPane_t487BCFEFC9CD23557BED549036A74F16EE6F8E4D* ___sender0, IInputPaneVisibilityEventArgs_t376CBD7D8F8808CA136546D1F6829C9287C5D3AB* ___args1) override { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&InputPaneVisibilityEventArgs_t049567B03D376F2BA4816EF9F1519EF06AAEE0D6_il2cpp_TypeInfo_var); il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&InputPane_tF3B65D04E39FC6EB8DD27594586A06CF7EE2B393_il2cpp_TypeInfo_var); il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&String_t_il2cpp_TypeInfo_var); il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&TypedEventHandler_2_Invoke_m606719294C008B46778D7017B715442332EF1BFB_RuntimeMethod_var); s_Il2CppMethodInitialized = true; } il2cpp::vm::ScopedThreadAttacher _vmThreadHelper; // Marshaling of parameter '___sender0' to managed representation InputPane_tF3B65D04E39FC6EB8DD27594586A06CF7EE2B393 * ____sender0_unmarshaled = NULL; if (___sender0 != NULL) { ____sender0_unmarshaled = il2cpp_codegen_com_get_or_create_rcw_for_sealed_class<InputPane_tF3B65D04E39FC6EB8DD27594586A06CF7EE2B393>(___sender0, InputPane_tF3B65D04E39FC6EB8DD27594586A06CF7EE2B393_il2cpp_TypeInfo_var); if (il2cpp_codegen_is_import_or_windows_runtime(____sender0_unmarshaled)) { il2cpp_codegen_com_cache_queried_interface(static_cast<Il2CppComObject*>(____sender0_unmarshaled), IInputPane_t487BCFEFC9CD23557BED549036A74F16EE6F8E4D::IID, ___sender0); } } else { ____sender0_unmarshaled = NULL; } // Marshaling of parameter '___args1' to managed representation InputPaneVisibilityEventArgs_t049567B03D376F2BA4816EF9F1519EF06AAEE0D6 * ____args1_unmarshaled = NULL; if (___args1 != NULL) { ____args1_unmarshaled = il2cpp_codegen_com_get_or_create_rcw_for_sealed_class<InputPaneVisibilityEventArgs_t049567B03D376F2BA4816EF9F1519EF06AAEE0D6>(___args1, InputPaneVisibilityEventArgs_t049567B03D376F2BA4816EF9F1519EF06AAEE0D6_il2cpp_TypeInfo_var); if (il2cpp_codegen_is_import_or_windows_runtime(____args1_unmarshaled)) { il2cpp_codegen_com_cache_queried_interface(static_cast<Il2CppComObject*>(____args1_unmarshaled), IInputPaneVisibilityEventArgs_t376CBD7D8F8808CA136546D1F6829C9287C5D3AB::IID, ___args1); } } else { ____args1_unmarshaled = NULL; } // Managed method invocation try { TypedEventHandler_2_tC915EA305D2AEB512570B5262AEC81263F1818E1 * __thisValue = (TypedEventHandler_2_tC915EA305D2AEB512570B5262AEC81263F1818E1 *)GetManagedObjectInline(); TypedEventHandler_2_Invoke_m606719294C008B46778D7017B715442332EF1BFB(__thisValue, ____sender0_unmarshaled, ____args1_unmarshaled, TypedEventHandler_2_Invoke_m606719294C008B46778D7017B715442332EF1BFB_RuntimeMethod_var); } catch (const Il2CppExceptionWrapper& ex) { String_t* exceptionStr = NULL; try { exceptionStr = VirtFuncInvoker0< String_t* >::Invoke(3 /* System.String System.Object::ToString() */, ex.ex); } catch (const Il2CppExceptionWrapper&) { exceptionStr = ((String_t_StaticFields*)il2cpp_codegen_static_fields_for(String_t_il2cpp_TypeInfo_var))->get_Empty_5(); } il2cpp_codegen_store_exception_info(ex.ex, exceptionStr); return ex.ex->hresult; } return IL2CPP_S_OK; } }; IL2CPP_EXTERN_C Il2CppIUnknown* CreateComCallableWrapperFor_TypedEventHandler_2_tC915EA305D2AEB512570B5262AEC81263F1818E1(RuntimeObject* obj) { void* memory = il2cpp::utils::Memory::Malloc(sizeof(TypedEventHandler_2_tC915EA305D2AEB512570B5262AEC81263F1818E1_ComCallableWrapper)); if (memory == NULL) { il2cpp_codegen_raise_out_of_memory_exception(); } return static_cast<Il2CppIManagedObjectHolder*>(new(memory) TypedEventHandler_2_tC915EA305D2AEB512570B5262AEC81263F1818E1_ComCallableWrapper(obj)); } // COM Callable Wrapper class definition for Windows.Foundation.TypedEventHandler`2<System.Object,System.Object> struct TypedEventHandler_2_t8D72D4CAB5DF9F7D9AE52E95A431BD4738A32CDC_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<TypedEventHandler_2_t8D72D4CAB5DF9F7D9AE52E95A431BD4738A32CDC_ComCallableWrapper>, ITypedEventHandler_2_t8D72D4CAB5DF9F7D9AE52E95A431BD4738A32CDC_ComCallableWrapper { inline TypedEventHandler_2_t8D72D4CAB5DF9F7D9AE52E95A431BD4738A32CDC_ComCallableWrapper(RuntimeObject * obj) : il2cpp::vm::CachedCCWBase<TypedEventHandler_2_t8D72D4CAB5DF9F7D9AE52E95A431BD4738A32CDC_ComCallableWrapper>(obj) { } virtual il2cpp_hresult_t STDCALL QueryInterface(const Il2CppGuid& iid, void** object) IL2CPP_OVERRIDE { if (::memcmp(&iid, &Il2CppIUnknown::IID, sizeof(Il2CppGuid)) == 0 || ::memcmp(&iid, &Il2CppIInspectable::IID, sizeof(Il2CppGuid)) == 0 || ::memcmp(&iid, &Il2CppIAgileObject::IID, sizeof(Il2CppGuid)) == 0) { *object = GetIdentity(); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIManagedObjectHolder::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIManagedObjectHolder*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &ITypedEventHandler_2_t8D72D4CAB5DF9F7D9AE52E95A431BD4738A32CDC_ComCallableWrapper::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<ITypedEventHandler_2_t8D72D4CAB5DF9F7D9AE52E95A431BD4738A32CDC_ComCallableWrapper*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIMarshal::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIMarshal*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIWeakReferenceSource::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIWeakReferenceSource*>(this); AddRefImpl(); return IL2CPP_S_OK; } *object = NULL; return IL2CPP_E_NOINTERFACE; } virtual uint32_t STDCALL AddRef() IL2CPP_OVERRIDE { return AddRefImpl(); } virtual uint32_t STDCALL Release() IL2CPP_OVERRIDE { return ReleaseImpl(); } // COM Callable invoker for Windows.Foundation.TypedEventHandler`2<System.Object,System.Object> virtual il2cpp_hresult_t STDCALL Invoke(Il2CppIInspectable* ___sender0, Il2CppIInspectable* ___args1) override { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&Il2CppComObject_il2cpp_TypeInfo_var); il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&String_t_il2cpp_TypeInfo_var); il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&TypedEventHandler_2_Invoke_m5D952F3779C15A5E243841A324A3342D1D58CE67_RuntimeMethod_var); s_Il2CppMethodInitialized = true; } il2cpp::vm::ScopedThreadAttacher _vmThreadHelper; // Marshaling of parameter '___sender0' to managed representation RuntimeObject * ____sender0_unmarshaled = NULL; if (___sender0 != NULL) { ____sender0_unmarshaled = il2cpp_codegen_com_get_or_create_rcw_from_iinspectable<RuntimeObject>(___sender0, Il2CppComObject_il2cpp_TypeInfo_var); if (il2cpp_codegen_is_import_or_windows_runtime(____sender0_unmarshaled)) { il2cpp_codegen_com_cache_queried_interface(static_cast<Il2CppComObject*>(____sender0_unmarshaled), Il2CppIInspectable::IID, ___sender0); } } else { ____sender0_unmarshaled = NULL; } // Marshaling of parameter '___args1' to managed representation RuntimeObject * ____args1_unmarshaled = NULL; if (___args1 != NULL) { ____args1_unmarshaled = il2cpp_codegen_com_get_or_create_rcw_from_iinspectable<RuntimeObject>(___args1, Il2CppComObject_il2cpp_TypeInfo_var); if (il2cpp_codegen_is_import_or_windows_runtime(____args1_unmarshaled)) { il2cpp_codegen_com_cache_queried_interface(static_cast<Il2CppComObject*>(____args1_unmarshaled), Il2CppIInspectable::IID, ___args1); } } else { ____args1_unmarshaled = NULL; } // Managed method invocation try { TypedEventHandler_2_t8D72D4CAB5DF9F7D9AE52E95A431BD4738A32CDC * __thisValue = (TypedEventHandler_2_t8D72D4CAB5DF9F7D9AE52E95A431BD4738A32CDC *)GetManagedObjectInline(); TypedEventHandler_2_Invoke_m5D952F3779C15A5E243841A324A3342D1D58CE67(__thisValue, ____sender0_unmarshaled, ____args1_unmarshaled, TypedEventHandler_2_Invoke_m5D952F3779C15A5E243841A324A3342D1D58CE67_RuntimeMethod_var); } catch (const Il2CppExceptionWrapper& ex) { String_t* exceptionStr = NULL; try { exceptionStr = VirtFuncInvoker0< String_t* >::Invoke(3 /* System.String System.Object::ToString() */, ex.ex); } catch (const Il2CppExceptionWrapper&) { exceptionStr = ((String_t_StaticFields*)il2cpp_codegen_static_fields_for(String_t_il2cpp_TypeInfo_var))->get_Empty_5(); } il2cpp_codegen_store_exception_info(ex.ex, exceptionStr); return ex.ex->hresult; } return IL2CPP_S_OK; } }; IL2CPP_EXTERN_C Il2CppIUnknown* CreateComCallableWrapperFor_TypedEventHandler_2_t8D72D4CAB5DF9F7D9AE52E95A431BD4738A32CDC(RuntimeObject* obj) { void* memory = il2cpp::utils::Memory::Malloc(sizeof(TypedEventHandler_2_t8D72D4CAB5DF9F7D9AE52E95A431BD4738A32CDC_ComCallableWrapper)); if (memory == NULL) { il2cpp_codegen_raise_out_of_memory_exception(); } return static_cast<Il2CppIManagedObjectHolder*>(new(memory) TypedEventHandler_2_t8D72D4CAB5DF9F7D9AE52E95A431BD4738A32CDC_ComCallableWrapper(obj)); } // COM Callable Wrapper for System.Collections.Generic.Dictionary`2/ValueCollection<System.Action`1<System.Boolean>,System.Collections.Generic.LinkedListNode`1<System.Action`1<System.Boolean>>> struct ValueCollection_t5B9EF0E5F8B0C8B4BDD40CA26708758E7019812A_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<ValueCollection_t5B9EF0E5F8B0C8B4BDD40CA26708758E7019812A_ComCallableWrapper>, IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8 { inline ValueCollection_t5B9EF0E5F8B0C8B4BDD40CA26708758E7019812A_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<ValueCollection_t5B9EF0E5F8B0C8B4BDD40CA26708758E7019812A_ComCallableWrapper>(obj) {} virtual il2cpp_hresult_t STDCALL QueryInterface(const Il2CppGuid& iid, void** object) IL2CPP_OVERRIDE { if (::memcmp(&iid, &Il2CppIUnknown::IID, sizeof(Il2CppGuid)) == 0 || ::memcmp(&iid, &Il2CppIInspectable::IID, sizeof(Il2CppGuid)) == 0 || ::memcmp(&iid, &Il2CppIAgileObject::IID, sizeof(Il2CppGuid)) == 0) { *object = GetIdentity(); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIManagedObjectHolder::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIManagedObjectHolder*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIMarshal::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIMarshal*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIWeakReferenceSource::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIWeakReferenceSource*>(this); AddRefImpl(); return IL2CPP_S_OK; } *object = NULL; return IL2CPP_E_NOINTERFACE; } virtual uint32_t STDCALL AddRef() IL2CPP_OVERRIDE { return AddRefImpl(); } virtual uint32_t STDCALL Release() IL2CPP_OVERRIDE { return ReleaseImpl(); } virtual il2cpp_hresult_t STDCALL GetIids(uint32_t* iidCount, Il2CppGuid** iids) IL2CPP_OVERRIDE { Il2CppGuid* interfaceIds = il2cpp_codegen_marshal_allocate_array<Il2CppGuid>(2); interfaceIds[0] = IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4::IID; interfaceIds[1] = IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID; *iidCount = 2; *iids = interfaceIds; return IL2CPP_S_OK; } virtual il2cpp_hresult_t STDCALL GetRuntimeClassName(Il2CppHString* className) IL2CPP_OVERRIDE { return GetRuntimeClassNameImpl(className); } virtual il2cpp_hresult_t STDCALL GetTrustLevel(int32_t* trustLevel) IL2CPP_OVERRIDE { return ComObjectBase::GetTrustLevel(trustLevel); } virtual il2cpp_hresult_t STDCALL IIterable_1_First_m54AC7E778E98ED35C6B7AD98C35C325B8A3DF619(IIterator_1_tB1AB5AB497E87D6A397AA084D3D3D6B8D211022C** comReturnValue) IL2CPP_OVERRIDE { return IIterable_1_First_m54AC7E778E98ED35C6B7AD98C35C325B8A3DF619_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue); } virtual il2cpp_hresult_t STDCALL IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7(IBindableIterator_tD7550F1144CFBE58090050457A2BE92B1CAEABBB** comReturnValue) IL2CPP_OVERRIDE { return IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue); } }; IL2CPP_EXTERN_C Il2CppIUnknown* CreateComCallableWrapperFor_ValueCollection_t5B9EF0E5F8B0C8B4BDD40CA26708758E7019812A(RuntimeObject* obj) { void* memory = il2cpp::utils::Memory::Malloc(sizeof(ValueCollection_t5B9EF0E5F8B0C8B4BDD40CA26708758E7019812A_ComCallableWrapper)); if (memory == NULL) { il2cpp_codegen_raise_out_of_memory_exception(); } return static_cast<Il2CppIManagedObjectHolder*>(new(memory) ValueCollection_t5B9EF0E5F8B0C8B4BDD40CA26708758E7019812A_ComCallableWrapper(obj)); } // COM Callable Wrapper for System.Collections.ObjectModel.ReadOnlyDictionary`2/ValueCollection<System.Action`1<System.Boolean>,System.Collections.Generic.LinkedListNode`1<System.Action`1<System.Boolean>>> struct ValueCollection_t4A758E9D5D62EFE07B884457B2262E35262E94A5_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<ValueCollection_t4A758E9D5D62EFE07B884457B2262E35262E94A5_ComCallableWrapper>, IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8 { inline ValueCollection_t4A758E9D5D62EFE07B884457B2262E35262E94A5_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<ValueCollection_t4A758E9D5D62EFE07B884457B2262E35262E94A5_ComCallableWrapper>(obj) {} virtual il2cpp_hresult_t STDCALL QueryInterface(const Il2CppGuid& iid, void** object) IL2CPP_OVERRIDE { if (::memcmp(&iid, &Il2CppIUnknown::IID, sizeof(Il2CppGuid)) == 0 || ::memcmp(&iid, &Il2CppIInspectable::IID, sizeof(Il2CppGuid)) == 0 || ::memcmp(&iid, &Il2CppIAgileObject::IID, sizeof(Il2CppGuid)) == 0) { *object = GetIdentity(); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIManagedObjectHolder::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIManagedObjectHolder*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIMarshal::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIMarshal*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIWeakReferenceSource::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIWeakReferenceSource*>(this); AddRefImpl(); return IL2CPP_S_OK; } *object = NULL; return IL2CPP_E_NOINTERFACE; } virtual uint32_t STDCALL AddRef() IL2CPP_OVERRIDE { return AddRefImpl(); } virtual uint32_t STDCALL Release() IL2CPP_OVERRIDE { return ReleaseImpl(); } virtual il2cpp_hresult_t STDCALL GetIids(uint32_t* iidCount, Il2CppGuid** iids) IL2CPP_OVERRIDE { Il2CppGuid* interfaceIds = il2cpp_codegen_marshal_allocate_array<Il2CppGuid>(2); interfaceIds[0] = IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4::IID; interfaceIds[1] = IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID; *iidCount = 2; *iids = interfaceIds; return IL2CPP_S_OK; } virtual il2cpp_hresult_t STDCALL GetRuntimeClassName(Il2CppHString* className) IL2CPP_OVERRIDE { return GetRuntimeClassNameImpl(className); } virtual il2cpp_hresult_t STDCALL GetTrustLevel(int32_t* trustLevel) IL2CPP_OVERRIDE { return ComObjectBase::GetTrustLevel(trustLevel); } virtual il2cpp_hresult_t STDCALL IIterable_1_First_m54AC7E778E98ED35C6B7AD98C35C325B8A3DF619(IIterator_1_tB1AB5AB497E87D6A397AA084D3D3D6B8D211022C** comReturnValue) IL2CPP_OVERRIDE { return IIterable_1_First_m54AC7E778E98ED35C6B7AD98C35C325B8A3DF619_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue); } virtual il2cpp_hresult_t STDCALL IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7(IBindableIterator_tD7550F1144CFBE58090050457A2BE92B1CAEABBB** comReturnValue) IL2CPP_OVERRIDE { return IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue); } }; IL2CPP_EXTERN_C Il2CppIUnknown* CreateComCallableWrapperFor_ValueCollection_t4A758E9D5D62EFE07B884457B2262E35262E94A5(RuntimeObject* obj) { void* memory = il2cpp::utils::Memory::Malloc(sizeof(ValueCollection_t4A758E9D5D62EFE07B884457B2262E35262E94A5_ComCallableWrapper)); if (memory == NULL) { il2cpp_codegen_raise_out_of_memory_exception(); } return static_cast<Il2CppIManagedObjectHolder*>(new(memory) ValueCollection_t4A758E9D5D62EFE07B884457B2262E35262E94A5_ComCallableWrapper(obj)); } // COM Callable Wrapper for System.Collections.Generic.Dictionary`2/ValueCollection<System.Action`1<UnityEngine.Object>,System.Collections.Generic.LinkedListNode`1<System.Action`1<UnityEngine.Object>>> struct ValueCollection_tA2C0C3AFB63D7CB1685F471B4B3EF8AD4460160D_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<ValueCollection_tA2C0C3AFB63D7CB1685F471B4B3EF8AD4460160D_ComCallableWrapper>, IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8 { inline ValueCollection_tA2C0C3AFB63D7CB1685F471B4B3EF8AD4460160D_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<ValueCollection_tA2C0C3AFB63D7CB1685F471B4B3EF8AD4460160D_ComCallableWrapper>(obj) {} virtual il2cpp_hresult_t STDCALL QueryInterface(const Il2CppGuid& iid, void** object) IL2CPP_OVERRIDE { if (::memcmp(&iid, &Il2CppIUnknown::IID, sizeof(Il2CppGuid)) == 0 || ::memcmp(&iid, &Il2CppIInspectable::IID, sizeof(Il2CppGuid)) == 0 || ::memcmp(&iid, &Il2CppIAgileObject::IID, sizeof(Il2CppGuid)) == 0) { *object = GetIdentity(); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIManagedObjectHolder::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIManagedObjectHolder*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIMarshal::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIMarshal*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIWeakReferenceSource::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIWeakReferenceSource*>(this); AddRefImpl(); return IL2CPP_S_OK; } *object = NULL; return IL2CPP_E_NOINTERFACE; } virtual uint32_t STDCALL AddRef() IL2CPP_OVERRIDE { return AddRefImpl(); } virtual uint32_t STDCALL Release() IL2CPP_OVERRIDE { return ReleaseImpl(); } virtual il2cpp_hresult_t STDCALL GetIids(uint32_t* iidCount, Il2CppGuid** iids) IL2CPP_OVERRIDE { Il2CppGuid* interfaceIds = il2cpp_codegen_marshal_allocate_array<Il2CppGuid>(2); interfaceIds[0] = IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4::IID; interfaceIds[1] = IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID; *iidCount = 2; *iids = interfaceIds; return IL2CPP_S_OK; } virtual il2cpp_hresult_t STDCALL GetRuntimeClassName(Il2CppHString* className) IL2CPP_OVERRIDE { return GetRuntimeClassNameImpl(className); } virtual il2cpp_hresult_t STDCALL GetTrustLevel(int32_t* trustLevel) IL2CPP_OVERRIDE { return ComObjectBase::GetTrustLevel(trustLevel); } virtual il2cpp_hresult_t STDCALL IIterable_1_First_m54AC7E778E98ED35C6B7AD98C35C325B8A3DF619(IIterator_1_tB1AB5AB497E87D6A397AA084D3D3D6B8D211022C** comReturnValue) IL2CPP_OVERRIDE { return IIterable_1_First_m54AC7E778E98ED35C6B7AD98C35C325B8A3DF619_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue); } virtual il2cpp_hresult_t STDCALL IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7(IBindableIterator_tD7550F1144CFBE58090050457A2BE92B1CAEABBB** comReturnValue) IL2CPP_OVERRIDE { return IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue); } }; IL2CPP_EXTERN_C Il2CppIUnknown* CreateComCallableWrapperFor_ValueCollection_tA2C0C3AFB63D7CB1685F471B4B3EF8AD4460160D(RuntimeObject* obj) { void* memory = il2cpp::utils::Memory::Malloc(sizeof(ValueCollection_tA2C0C3AFB63D7CB1685F471B4B3EF8AD4460160D_ComCallableWrapper)); if (memory == NULL) { il2cpp_codegen_raise_out_of_memory_exception(); } return static_cast<Il2CppIManagedObjectHolder*>(new(memory) ValueCollection_tA2C0C3AFB63D7CB1685F471B4B3EF8AD4460160D_ComCallableWrapper(obj)); } // COM Callable Wrapper for System.Collections.ObjectModel.ReadOnlyDictionary`2/ValueCollection<System.Action`1<UnityEngine.Object>,System.Collections.Generic.LinkedListNode`1<System.Action`1<UnityEngine.Object>>> struct ValueCollection_t968318C5C1B349DE22051308B6B2F727F79DF04F_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<ValueCollection_t968318C5C1B349DE22051308B6B2F727F79DF04F_ComCallableWrapper>, IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8 { inline ValueCollection_t968318C5C1B349DE22051308B6B2F727F79DF04F_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<ValueCollection_t968318C5C1B349DE22051308B6B2F727F79DF04F_ComCallableWrapper>(obj) {} virtual il2cpp_hresult_t STDCALL QueryInterface(const Il2CppGuid& iid, void** object) IL2CPP_OVERRIDE { if (::memcmp(&iid, &Il2CppIUnknown::IID, sizeof(Il2CppGuid)) == 0 || ::memcmp(&iid, &Il2CppIInspectable::IID, sizeof(Il2CppGuid)) == 0 || ::memcmp(&iid, &Il2CppIAgileObject::IID, sizeof(Il2CppGuid)) == 0) { *object = GetIdentity(); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIManagedObjectHolder::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIManagedObjectHolder*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIMarshal::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIMarshal*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIWeakReferenceSource::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIWeakReferenceSource*>(this); AddRefImpl(); return IL2CPP_S_OK; } *object = NULL; return IL2CPP_E_NOINTERFACE; } virtual uint32_t STDCALL AddRef() IL2CPP_OVERRIDE { return AddRefImpl(); } virtual uint32_t STDCALL Release() IL2CPP_OVERRIDE { return ReleaseImpl(); } virtual il2cpp_hresult_t STDCALL GetIids(uint32_t* iidCount, Il2CppGuid** iids) IL2CPP_OVERRIDE { Il2CppGuid* interfaceIds = il2cpp_codegen_marshal_allocate_array<Il2CppGuid>(2); interfaceIds[0] = IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4::IID; interfaceIds[1] = IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID; *iidCount = 2; *iids = interfaceIds; return IL2CPP_S_OK; } virtual il2cpp_hresult_t STDCALL GetRuntimeClassName(Il2CppHString* className) IL2CPP_OVERRIDE { return GetRuntimeClassNameImpl(className); } virtual il2cpp_hresult_t STDCALL GetTrustLevel(int32_t* trustLevel) IL2CPP_OVERRIDE { return ComObjectBase::GetTrustLevel(trustLevel); } virtual il2cpp_hresult_t STDCALL IIterable_1_First_m54AC7E778E98ED35C6B7AD98C35C325B8A3DF619(IIterator_1_tB1AB5AB497E87D6A397AA084D3D3D6B8D211022C** comReturnValue) IL2CPP_OVERRIDE { return IIterable_1_First_m54AC7E778E98ED35C6B7AD98C35C325B8A3DF619_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue); } virtual il2cpp_hresult_t STDCALL IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7(IBindableIterator_tD7550F1144CFBE58090050457A2BE92B1CAEABBB** comReturnValue) IL2CPP_OVERRIDE { return IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue); } }; IL2CPP_EXTERN_C Il2CppIUnknown* CreateComCallableWrapperFor_ValueCollection_t968318C5C1B349DE22051308B6B2F727F79DF04F(RuntimeObject* obj) { void* memory = il2cpp::utils::Memory::Malloc(sizeof(ValueCollection_t968318C5C1B349DE22051308B6B2F727F79DF04F_ComCallableWrapper)); if (memory == NULL) { il2cpp_codegen_raise_out_of_memory_exception(); } return static_cast<Il2CppIManagedObjectHolder*>(new(memory) ValueCollection_t968318C5C1B349DE22051308B6B2F727F79DF04F_ComCallableWrapper(obj)); } // COM Callable Wrapper for System.Collections.Generic.Dictionary`2/ValueCollection<System.Action`2<System.Boolean,UnityEngine.Material>,System.Collections.Generic.LinkedListNode`1<System.Action`2<System.Boolean,UnityEngine.Material>>> struct ValueCollection_t8FF42E707BE835C7379EF0BFC2EAE31FC64B5996_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<ValueCollection_t8FF42E707BE835C7379EF0BFC2EAE31FC64B5996_ComCallableWrapper>, IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8 { inline ValueCollection_t8FF42E707BE835C7379EF0BFC2EAE31FC64B5996_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<ValueCollection_t8FF42E707BE835C7379EF0BFC2EAE31FC64B5996_ComCallableWrapper>(obj) {} virtual il2cpp_hresult_t STDCALL QueryInterface(const Il2CppGuid& iid, void** object) IL2CPP_OVERRIDE { if (::memcmp(&iid, &Il2CppIUnknown::IID, sizeof(Il2CppGuid)) == 0 || ::memcmp(&iid, &Il2CppIInspectable::IID, sizeof(Il2CppGuid)) == 0 || ::memcmp(&iid, &Il2CppIAgileObject::IID, sizeof(Il2CppGuid)) == 0) { *object = GetIdentity(); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIManagedObjectHolder::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIManagedObjectHolder*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIMarshal::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIMarshal*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIWeakReferenceSource::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIWeakReferenceSource*>(this); AddRefImpl(); return IL2CPP_S_OK; } *object = NULL; return IL2CPP_E_NOINTERFACE; } virtual uint32_t STDCALL AddRef() IL2CPP_OVERRIDE { return AddRefImpl(); } virtual uint32_t STDCALL Release() IL2CPP_OVERRIDE { return ReleaseImpl(); } virtual il2cpp_hresult_t STDCALL GetIids(uint32_t* iidCount, Il2CppGuid** iids) IL2CPP_OVERRIDE { Il2CppGuid* interfaceIds = il2cpp_codegen_marshal_allocate_array<Il2CppGuid>(2); interfaceIds[0] = IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4::IID; interfaceIds[1] = IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID; *iidCount = 2; *iids = interfaceIds; return IL2CPP_S_OK; } virtual il2cpp_hresult_t STDCALL GetRuntimeClassName(Il2CppHString* className) IL2CPP_OVERRIDE { return GetRuntimeClassNameImpl(className); } virtual il2cpp_hresult_t STDCALL GetTrustLevel(int32_t* trustLevel) IL2CPP_OVERRIDE { return ComObjectBase::GetTrustLevel(trustLevel); } virtual il2cpp_hresult_t STDCALL IIterable_1_First_m54AC7E778E98ED35C6B7AD98C35C325B8A3DF619(IIterator_1_tB1AB5AB497E87D6A397AA084D3D3D6B8D211022C** comReturnValue) IL2CPP_OVERRIDE { return IIterable_1_First_m54AC7E778E98ED35C6B7AD98C35C325B8A3DF619_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue); } virtual il2cpp_hresult_t STDCALL IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7(IBindableIterator_tD7550F1144CFBE58090050457A2BE92B1CAEABBB** comReturnValue) IL2CPP_OVERRIDE { return IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue); } }; IL2CPP_EXTERN_C Il2CppIUnknown* CreateComCallableWrapperFor_ValueCollection_t8FF42E707BE835C7379EF0BFC2EAE31FC64B5996(RuntimeObject* obj) { void* memory = il2cpp::utils::Memory::Malloc(sizeof(ValueCollection_t8FF42E707BE835C7379EF0BFC2EAE31FC64B5996_ComCallableWrapper)); if (memory == NULL) { il2cpp_codegen_raise_out_of_memory_exception(); } return static_cast<Il2CppIManagedObjectHolder*>(new(memory) ValueCollection_t8FF42E707BE835C7379EF0BFC2EAE31FC64B5996_ComCallableWrapper(obj)); } // COM Callable Wrapper for System.Collections.ObjectModel.ReadOnlyDictionary`2/ValueCollection<System.Action`2<System.Boolean,UnityEngine.Material>,System.Collections.Generic.LinkedListNode`1<System.Action`2<System.Boolean,UnityEngine.Material>>> struct ValueCollection_tE347A91AF21F32FC099A6DBA4BD76CED65EE9F28_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<ValueCollection_tE347A91AF21F32FC099A6DBA4BD76CED65EE9F28_ComCallableWrapper>, IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8 { inline ValueCollection_tE347A91AF21F32FC099A6DBA4BD76CED65EE9F28_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<ValueCollection_tE347A91AF21F32FC099A6DBA4BD76CED65EE9F28_ComCallableWrapper>(obj) {} virtual il2cpp_hresult_t STDCALL QueryInterface(const Il2CppGuid& iid, void** object) IL2CPP_OVERRIDE { if (::memcmp(&iid, &Il2CppIUnknown::IID, sizeof(Il2CppGuid)) == 0 || ::memcmp(&iid, &Il2CppIInspectable::IID, sizeof(Il2CppGuid)) == 0 || ::memcmp(&iid, &Il2CppIAgileObject::IID, sizeof(Il2CppGuid)) == 0) { *object = GetIdentity(); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIManagedObjectHolder::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIManagedObjectHolder*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIMarshal::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIMarshal*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIWeakReferenceSource::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIWeakReferenceSource*>(this); AddRefImpl(); return IL2CPP_S_OK; } *object = NULL; return IL2CPP_E_NOINTERFACE; } virtual uint32_t STDCALL AddRef() IL2CPP_OVERRIDE { return AddRefImpl(); } virtual uint32_t STDCALL Release() IL2CPP_OVERRIDE { return ReleaseImpl(); } virtual il2cpp_hresult_t STDCALL GetIids(uint32_t* iidCount, Il2CppGuid** iids) IL2CPP_OVERRIDE { Il2CppGuid* interfaceIds = il2cpp_codegen_marshal_allocate_array<Il2CppGuid>(2); interfaceIds[0] = IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4::IID; interfaceIds[1] = IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID; *iidCount = 2; *iids = interfaceIds; return IL2CPP_S_OK; } virtual il2cpp_hresult_t STDCALL GetRuntimeClassName(Il2CppHString* className) IL2CPP_OVERRIDE { return GetRuntimeClassNameImpl(className); } virtual il2cpp_hresult_t STDCALL GetTrustLevel(int32_t* trustLevel) IL2CPP_OVERRIDE { return ComObjectBase::GetTrustLevel(trustLevel); } virtual il2cpp_hresult_t STDCALL IIterable_1_First_m54AC7E778E98ED35C6B7AD98C35C325B8A3DF619(IIterator_1_tB1AB5AB497E87D6A397AA084D3D3D6B8D211022C** comReturnValue) IL2CPP_OVERRIDE { return IIterable_1_First_m54AC7E778E98ED35C6B7AD98C35C325B8A3DF619_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue); } virtual il2cpp_hresult_t STDCALL IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7(IBindableIterator_tD7550F1144CFBE58090050457A2BE92B1CAEABBB** comReturnValue) IL2CPP_OVERRIDE { return IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue); } }; IL2CPP_EXTERN_C Il2CppIUnknown* CreateComCallableWrapperFor_ValueCollection_tE347A91AF21F32FC099A6DBA4BD76CED65EE9F28(RuntimeObject* obj) { void* memory = il2cpp::utils::Memory::Malloc(sizeof(ValueCollection_tE347A91AF21F32FC099A6DBA4BD76CED65EE9F28_ComCallableWrapper)); if (memory == NULL) { il2cpp_codegen_raise_out_of_memory_exception(); } return static_cast<Il2CppIManagedObjectHolder*>(new(memory) ValueCollection_tE347A91AF21F32FC099A6DBA4BD76CED65EE9F28_ComCallableWrapper(obj)); } // COM Callable Wrapper for System.Collections.Generic.Dictionary`2/ValueCollection<System.Action`2<System.Boolean,UnityEngine.Object>,System.Collections.Generic.LinkedListNode`1<System.Action`2<System.Boolean,UnityEngine.Object>>> struct ValueCollection_t1179110C909598FCFB282BB6CF45C89AD69B3024_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<ValueCollection_t1179110C909598FCFB282BB6CF45C89AD69B3024_ComCallableWrapper>, IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8 { inline ValueCollection_t1179110C909598FCFB282BB6CF45C89AD69B3024_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<ValueCollection_t1179110C909598FCFB282BB6CF45C89AD69B3024_ComCallableWrapper>(obj) {} virtual il2cpp_hresult_t STDCALL QueryInterface(const Il2CppGuid& iid, void** object) IL2CPP_OVERRIDE { if (::memcmp(&iid, &Il2CppIUnknown::IID, sizeof(Il2CppGuid)) == 0 || ::memcmp(&iid, &Il2CppIInspectable::IID, sizeof(Il2CppGuid)) == 0 || ::memcmp(&iid, &Il2CppIAgileObject::IID, sizeof(Il2CppGuid)) == 0) { *object = GetIdentity(); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIManagedObjectHolder::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIManagedObjectHolder*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIMarshal::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIMarshal*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIWeakReferenceSource::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIWeakReferenceSource*>(this); AddRefImpl(); return IL2CPP_S_OK; } *object = NULL; return IL2CPP_E_NOINTERFACE; } virtual uint32_t STDCALL AddRef() IL2CPP_OVERRIDE { return AddRefImpl(); } virtual uint32_t STDCALL Release() IL2CPP_OVERRIDE { return ReleaseImpl(); } virtual il2cpp_hresult_t STDCALL GetIids(uint32_t* iidCount, Il2CppGuid** iids) IL2CPP_OVERRIDE { Il2CppGuid* interfaceIds = il2cpp_codegen_marshal_allocate_array<Il2CppGuid>(2); interfaceIds[0] = IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4::IID; interfaceIds[1] = IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID; *iidCount = 2; *iids = interfaceIds; return IL2CPP_S_OK; } virtual il2cpp_hresult_t STDCALL GetRuntimeClassName(Il2CppHString* className) IL2CPP_OVERRIDE { return GetRuntimeClassNameImpl(className); } virtual il2cpp_hresult_t STDCALL GetTrustLevel(int32_t* trustLevel) IL2CPP_OVERRIDE { return ComObjectBase::GetTrustLevel(trustLevel); } virtual il2cpp_hresult_t STDCALL IIterable_1_First_m54AC7E778E98ED35C6B7AD98C35C325B8A3DF619(IIterator_1_tB1AB5AB497E87D6A397AA084D3D3D6B8D211022C** comReturnValue) IL2CPP_OVERRIDE { return IIterable_1_First_m54AC7E778E98ED35C6B7AD98C35C325B8A3DF619_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue); } virtual il2cpp_hresult_t STDCALL IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7(IBindableIterator_tD7550F1144CFBE58090050457A2BE92B1CAEABBB** comReturnValue) IL2CPP_OVERRIDE { return IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue); } }; IL2CPP_EXTERN_C Il2CppIUnknown* CreateComCallableWrapperFor_ValueCollection_t1179110C909598FCFB282BB6CF45C89AD69B3024(RuntimeObject* obj) { void* memory = il2cpp::utils::Memory::Malloc(sizeof(ValueCollection_t1179110C909598FCFB282BB6CF45C89AD69B3024_ComCallableWrapper)); if (memory == NULL) { il2cpp_codegen_raise_out_of_memory_exception(); } return static_cast<Il2CppIManagedObjectHolder*>(new(memory) ValueCollection_t1179110C909598FCFB282BB6CF45C89AD69B3024_ComCallableWrapper(obj)); } // COM Callable Wrapper for System.Collections.ObjectModel.ReadOnlyDictionary`2/ValueCollection<System.Action`2<System.Boolean,UnityEngine.Object>,System.Collections.Generic.LinkedListNode`1<System.Action`2<System.Boolean,UnityEngine.Object>>> struct ValueCollection_t54112B8A8A3D8B128E0120FC8E3AACE6E20D6186_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<ValueCollection_t54112B8A8A3D8B128E0120FC8E3AACE6E20D6186_ComCallableWrapper>, IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8 { inline ValueCollection_t54112B8A8A3D8B128E0120FC8E3AACE6E20D6186_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<ValueCollection_t54112B8A8A3D8B128E0120FC8E3AACE6E20D6186_ComCallableWrapper>(obj) {} virtual il2cpp_hresult_t STDCALL QueryInterface(const Il2CppGuid& iid, void** object) IL2CPP_OVERRIDE { if (::memcmp(&iid, &Il2CppIUnknown::IID, sizeof(Il2CppGuid)) == 0 || ::memcmp(&iid, &Il2CppIInspectable::IID, sizeof(Il2CppGuid)) == 0 || ::memcmp(&iid, &Il2CppIAgileObject::IID, sizeof(Il2CppGuid)) == 0) { *object = GetIdentity(); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIManagedObjectHolder::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIManagedObjectHolder*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIMarshal::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIMarshal*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIWeakReferenceSource::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIWeakReferenceSource*>(this); AddRefImpl(); return IL2CPP_S_OK; } *object = NULL; return IL2CPP_E_NOINTERFACE; } virtual uint32_t STDCALL AddRef() IL2CPP_OVERRIDE { return AddRefImpl(); } virtual uint32_t STDCALL Release() IL2CPP_OVERRIDE { return ReleaseImpl(); } virtual il2cpp_hresult_t STDCALL GetIids(uint32_t* iidCount, Il2CppGuid** iids) IL2CPP_OVERRIDE { Il2CppGuid* interfaceIds = il2cpp_codegen_marshal_allocate_array<Il2CppGuid>(2); interfaceIds[0] = IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4::IID; interfaceIds[1] = IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID; *iidCount = 2; *iids = interfaceIds; return IL2CPP_S_OK; } virtual il2cpp_hresult_t STDCALL GetRuntimeClassName(Il2CppHString* className) IL2CPP_OVERRIDE { return GetRuntimeClassNameImpl(className); } virtual il2cpp_hresult_t STDCALL GetTrustLevel(int32_t* trustLevel) IL2CPP_OVERRIDE { return ComObjectBase::GetTrustLevel(trustLevel); } virtual il2cpp_hresult_t STDCALL IIterable_1_First_m54AC7E778E98ED35C6B7AD98C35C325B8A3DF619(IIterator_1_tB1AB5AB497E87D6A397AA084D3D3D6B8D211022C** comReturnValue) IL2CPP_OVERRIDE { return IIterable_1_First_m54AC7E778E98ED35C6B7AD98C35C325B8A3DF619_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue); } virtual il2cpp_hresult_t STDCALL IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7(IBindableIterator_tD7550F1144CFBE58090050457A2BE92B1CAEABBB** comReturnValue) IL2CPP_OVERRIDE { return IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue); } }; IL2CPP_EXTERN_C Il2CppIUnknown* CreateComCallableWrapperFor_ValueCollection_t54112B8A8A3D8B128E0120FC8E3AACE6E20D6186(RuntimeObject* obj) { void* memory = il2cpp::utils::Memory::Malloc(sizeof(ValueCollection_t54112B8A8A3D8B128E0120FC8E3AACE6E20D6186_ComCallableWrapper)); if (memory == NULL) { il2cpp_codegen_raise_out_of_memory_exception(); } return static_cast<Il2CppIManagedObjectHolder*>(new(memory) ValueCollection_t54112B8A8A3D8B128E0120FC8E3AACE6E20D6186_ComCallableWrapper(obj)); } // COM Callable Wrapper for System.Collections.Generic.Dictionary`2/ValueCollection<System.Action`2<System.Object,TMPro.Compute_DT_EventArgs>,System.Collections.Generic.LinkedListNode`1<System.Action`2<System.Object,TMPro.Compute_DT_EventArgs>>> struct ValueCollection_tD34A90D4289D67604EA99D212DAB40CA28CF275F_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<ValueCollection_tD34A90D4289D67604EA99D212DAB40CA28CF275F_ComCallableWrapper>, IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8 { inline ValueCollection_tD34A90D4289D67604EA99D212DAB40CA28CF275F_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<ValueCollection_tD34A90D4289D67604EA99D212DAB40CA28CF275F_ComCallableWrapper>(obj) {} virtual il2cpp_hresult_t STDCALL QueryInterface(const Il2CppGuid& iid, void** object) IL2CPP_OVERRIDE { if (::memcmp(&iid, &Il2CppIUnknown::IID, sizeof(Il2CppGuid)) == 0 || ::memcmp(&iid, &Il2CppIInspectable::IID, sizeof(Il2CppGuid)) == 0 || ::memcmp(&iid, &Il2CppIAgileObject::IID, sizeof(Il2CppGuid)) == 0) { *object = GetIdentity(); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIManagedObjectHolder::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIManagedObjectHolder*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIMarshal::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIMarshal*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIWeakReferenceSource::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIWeakReferenceSource*>(this); AddRefImpl(); return IL2CPP_S_OK; } *object = NULL; return IL2CPP_E_NOINTERFACE; } virtual uint32_t STDCALL AddRef() IL2CPP_OVERRIDE { return AddRefImpl(); } virtual uint32_t STDCALL Release() IL2CPP_OVERRIDE { return ReleaseImpl(); } virtual il2cpp_hresult_t STDCALL GetIids(uint32_t* iidCount, Il2CppGuid** iids) IL2CPP_OVERRIDE { Il2CppGuid* interfaceIds = il2cpp_codegen_marshal_allocate_array<Il2CppGuid>(2); interfaceIds[0] = IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4::IID; interfaceIds[1] = IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID; *iidCount = 2; *iids = interfaceIds; return IL2CPP_S_OK; } virtual il2cpp_hresult_t STDCALL GetRuntimeClassName(Il2CppHString* className) IL2CPP_OVERRIDE { return GetRuntimeClassNameImpl(className); } virtual il2cpp_hresult_t STDCALL GetTrustLevel(int32_t* trustLevel) IL2CPP_OVERRIDE { return ComObjectBase::GetTrustLevel(trustLevel); } virtual il2cpp_hresult_t STDCALL IIterable_1_First_m54AC7E778E98ED35C6B7AD98C35C325B8A3DF619(IIterator_1_tB1AB5AB497E87D6A397AA084D3D3D6B8D211022C** comReturnValue) IL2CPP_OVERRIDE { return IIterable_1_First_m54AC7E778E98ED35C6B7AD98C35C325B8A3DF619_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue); } virtual il2cpp_hresult_t STDCALL IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7(IBindableIterator_tD7550F1144CFBE58090050457A2BE92B1CAEABBB** comReturnValue) IL2CPP_OVERRIDE { return IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue); } }; IL2CPP_EXTERN_C Il2CppIUnknown* CreateComCallableWrapperFor_ValueCollection_tD34A90D4289D67604EA99D212DAB40CA28CF275F(RuntimeObject* obj) { void* memory = il2cpp::utils::Memory::Malloc(sizeof(ValueCollection_tD34A90D4289D67604EA99D212DAB40CA28CF275F_ComCallableWrapper)); if (memory == NULL) { il2cpp_codegen_raise_out_of_memory_exception(); } return static_cast<Il2CppIManagedObjectHolder*>(new(memory) ValueCollection_tD34A90D4289D67604EA99D212DAB40CA28CF275F_ComCallableWrapper(obj)); } // COM Callable Wrapper for System.Collections.ObjectModel.ReadOnlyDictionary`2/ValueCollection<System.Action`2<System.Object,TMPro.Compute_DT_EventArgs>,System.Collections.Generic.LinkedListNode`1<System.Action`2<System.Object,TMPro.Compute_DT_EventArgs>>> struct ValueCollection_tC03EFCFD5024E805FC647A929FA8D93B146A57A6_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<ValueCollection_tC03EFCFD5024E805FC647A929FA8D93B146A57A6_ComCallableWrapper>, IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8 { inline ValueCollection_tC03EFCFD5024E805FC647A929FA8D93B146A57A6_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<ValueCollection_tC03EFCFD5024E805FC647A929FA8D93B146A57A6_ComCallableWrapper>(obj) {} virtual il2cpp_hresult_t STDCALL QueryInterface(const Il2CppGuid& iid, void** object) IL2CPP_OVERRIDE { if (::memcmp(&iid, &Il2CppIUnknown::IID, sizeof(Il2CppGuid)) == 0 || ::memcmp(&iid, &Il2CppIInspectable::IID, sizeof(Il2CppGuid)) == 0 || ::memcmp(&iid, &Il2CppIAgileObject::IID, sizeof(Il2CppGuid)) == 0) { *object = GetIdentity(); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIManagedObjectHolder::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIManagedObjectHolder*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIMarshal::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIMarshal*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIWeakReferenceSource::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIWeakReferenceSource*>(this); AddRefImpl(); return IL2CPP_S_OK; } *object = NULL; return IL2CPP_E_NOINTERFACE; } virtual uint32_t STDCALL AddRef() IL2CPP_OVERRIDE { return AddRefImpl(); } virtual uint32_t STDCALL Release() IL2CPP_OVERRIDE { return ReleaseImpl(); } virtual il2cpp_hresult_t STDCALL GetIids(uint32_t* iidCount, Il2CppGuid** iids) IL2CPP_OVERRIDE { Il2CppGuid* interfaceIds = il2cpp_codegen_marshal_allocate_array<Il2CppGuid>(2); interfaceIds[0] = IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4::IID; interfaceIds[1] = IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID; *iidCount = 2; *iids = interfaceIds; return IL2CPP_S_OK; } virtual il2cpp_hresult_t STDCALL GetRuntimeClassName(Il2CppHString* className) IL2CPP_OVERRIDE { return GetRuntimeClassNameImpl(className); } virtual il2cpp_hresult_t STDCALL GetTrustLevel(int32_t* trustLevel) IL2CPP_OVERRIDE { return ComObjectBase::GetTrustLevel(trustLevel); } virtual il2cpp_hresult_t STDCALL IIterable_1_First_m54AC7E778E98ED35C6B7AD98C35C325B8A3DF619(IIterator_1_tB1AB5AB497E87D6A397AA084D3D3D6B8D211022C** comReturnValue) IL2CPP_OVERRIDE { return IIterable_1_First_m54AC7E778E98ED35C6B7AD98C35C325B8A3DF619_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue); } virtual il2cpp_hresult_t STDCALL IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7(IBindableIterator_tD7550F1144CFBE58090050457A2BE92B1CAEABBB** comReturnValue) IL2CPP_OVERRIDE { return IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue); } }; IL2CPP_EXTERN_C Il2CppIUnknown* CreateComCallableWrapperFor_ValueCollection_tC03EFCFD5024E805FC647A929FA8D93B146A57A6(RuntimeObject* obj) { void* memory = il2cpp::utils::Memory::Malloc(sizeof(ValueCollection_tC03EFCFD5024E805FC647A929FA8D93B146A57A6_ComCallableWrapper)); if (memory == NULL) { il2cpp_codegen_raise_out_of_memory_exception(); } return static_cast<Il2CppIManagedObjectHolder*>(new(memory) ValueCollection_tC03EFCFD5024E805FC647A929FA8D93B146A57A6_ComCallableWrapper(obj)); } // COM Callable Wrapper for System.Collections.Generic.Dictionary`2/ValueCollection<System.Action`3<UnityEngine.GameObject,UnityEngine.Material,UnityEngine.Material>,System.Collections.Generic.LinkedListNode`1<System.Action`3<UnityEngine.GameObject,UnityEngine.Material,UnityEngine.Material>>> struct ValueCollection_t00D0A8FFECDE1838D4FABDF11DBACB469C9F9F91_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<ValueCollection_t00D0A8FFECDE1838D4FABDF11DBACB469C9F9F91_ComCallableWrapper>, IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8 { inline ValueCollection_t00D0A8FFECDE1838D4FABDF11DBACB469C9F9F91_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<ValueCollection_t00D0A8FFECDE1838D4FABDF11DBACB469C9F9F91_ComCallableWrapper>(obj) {} virtual il2cpp_hresult_t STDCALL QueryInterface(const Il2CppGuid& iid, void** object) IL2CPP_OVERRIDE { if (::memcmp(&iid, &Il2CppIUnknown::IID, sizeof(Il2CppGuid)) == 0 || ::memcmp(&iid, &Il2CppIInspectable::IID, sizeof(Il2CppGuid)) == 0 || ::memcmp(&iid, &Il2CppIAgileObject::IID, sizeof(Il2CppGuid)) == 0) { *object = GetIdentity(); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIManagedObjectHolder::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIManagedObjectHolder*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIMarshal::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIMarshal*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIWeakReferenceSource::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIWeakReferenceSource*>(this); AddRefImpl(); return IL2CPP_S_OK; } *object = NULL; return IL2CPP_E_NOINTERFACE; } virtual uint32_t STDCALL AddRef() IL2CPP_OVERRIDE { return AddRefImpl(); } virtual uint32_t STDCALL Release() IL2CPP_OVERRIDE { return ReleaseImpl(); } virtual il2cpp_hresult_t STDCALL GetIids(uint32_t* iidCount, Il2CppGuid** iids) IL2CPP_OVERRIDE { Il2CppGuid* interfaceIds = il2cpp_codegen_marshal_allocate_array<Il2CppGuid>(2); interfaceIds[0] = IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4::IID; interfaceIds[1] = IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID; *iidCount = 2; *iids = interfaceIds; return IL2CPP_S_OK; } virtual il2cpp_hresult_t STDCALL GetRuntimeClassName(Il2CppHString* className) IL2CPP_OVERRIDE { return GetRuntimeClassNameImpl(className); } virtual il2cpp_hresult_t STDCALL GetTrustLevel(int32_t* trustLevel) IL2CPP_OVERRIDE { return ComObjectBase::GetTrustLevel(trustLevel); } virtual il2cpp_hresult_t STDCALL IIterable_1_First_m54AC7E778E98ED35C6B7AD98C35C325B8A3DF619(IIterator_1_tB1AB5AB497E87D6A397AA084D3D3D6B8D211022C** comReturnValue) IL2CPP_OVERRIDE { return IIterable_1_First_m54AC7E778E98ED35C6B7AD98C35C325B8A3DF619_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue); } virtual il2cpp_hresult_t STDCALL IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7(IBindableIterator_tD7550F1144CFBE58090050457A2BE92B1CAEABBB** comReturnValue) IL2CPP_OVERRIDE { return IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue); } }; IL2CPP_EXTERN_C Il2CppIUnknown* CreateComCallableWrapperFor_ValueCollection_t00D0A8FFECDE1838D4FABDF11DBACB469C9F9F91(RuntimeObject* obj) { void* memory = il2cpp::utils::Memory::Malloc(sizeof(ValueCollection_t00D0A8FFECDE1838D4FABDF11DBACB469C9F9F91_ComCallableWrapper)); if (memory == NULL) { il2cpp_codegen_raise_out_of_memory_exception(); } return static_cast<Il2CppIManagedObjectHolder*>(new(memory) ValueCollection_t00D0A8FFECDE1838D4FABDF11DBACB469C9F9F91_ComCallableWrapper(obj)); } // COM Callable Wrapper for System.Collections.ObjectModel.ReadOnlyDictionary`2/ValueCollection<System.Action`3<UnityEngine.GameObject,UnityEngine.Material,UnityEngine.Material>,System.Collections.Generic.LinkedListNode`1<System.Action`3<UnityEngine.GameObject,UnityEngine.Material,UnityEngine.Material>>> struct ValueCollection_t51CD5520820E14147632F4AD669421EBC372BBBC_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<ValueCollection_t51CD5520820E14147632F4AD669421EBC372BBBC_ComCallableWrapper>, IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8 { inline ValueCollection_t51CD5520820E14147632F4AD669421EBC372BBBC_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<ValueCollection_t51CD5520820E14147632F4AD669421EBC372BBBC_ComCallableWrapper>(obj) {} virtual il2cpp_hresult_t STDCALL QueryInterface(const Il2CppGuid& iid, void** object) IL2CPP_OVERRIDE { if (::memcmp(&iid, &Il2CppIUnknown::IID, sizeof(Il2CppGuid)) == 0 || ::memcmp(&iid, &Il2CppIInspectable::IID, sizeof(Il2CppGuid)) == 0 || ::memcmp(&iid, &Il2CppIAgileObject::IID, sizeof(Il2CppGuid)) == 0) { *object = GetIdentity(); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIManagedObjectHolder::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIManagedObjectHolder*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIMarshal::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIMarshal*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIWeakReferenceSource::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIWeakReferenceSource*>(this); AddRefImpl(); return IL2CPP_S_OK; } *object = NULL; return IL2CPP_E_NOINTERFACE; } virtual uint32_t STDCALL AddRef() IL2CPP_OVERRIDE { return AddRefImpl(); } virtual uint32_t STDCALL Release() IL2CPP_OVERRIDE { return ReleaseImpl(); } virtual il2cpp_hresult_t STDCALL GetIids(uint32_t* iidCount, Il2CppGuid** iids) IL2CPP_OVERRIDE { Il2CppGuid* interfaceIds = il2cpp_codegen_marshal_allocate_array<Il2CppGuid>(2); interfaceIds[0] = IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4::IID; interfaceIds[1] = IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID; *iidCount = 2; *iids = interfaceIds; return IL2CPP_S_OK; } virtual il2cpp_hresult_t STDCALL GetRuntimeClassName(Il2CppHString* className) IL2CPP_OVERRIDE { return GetRuntimeClassNameImpl(className); } virtual il2cpp_hresult_t STDCALL GetTrustLevel(int32_t* trustLevel) IL2CPP_OVERRIDE { return ComObjectBase::GetTrustLevel(trustLevel); } virtual il2cpp_hresult_t STDCALL IIterable_1_First_m54AC7E778E98ED35C6B7AD98C35C325B8A3DF619(IIterator_1_tB1AB5AB497E87D6A397AA084D3D3D6B8D211022C** comReturnValue) IL2CPP_OVERRIDE { return IIterable_1_First_m54AC7E778E98ED35C6B7AD98C35C325B8A3DF619_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue); } virtual il2cpp_hresult_t STDCALL IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7(IBindableIterator_tD7550F1144CFBE58090050457A2BE92B1CAEABBB** comReturnValue) IL2CPP_OVERRIDE { return IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue); } }; IL2CPP_EXTERN_C Il2CppIUnknown* CreateComCallableWrapperFor_ValueCollection_t51CD5520820E14147632F4AD669421EBC372BBBC(RuntimeObject* obj) { void* memory = il2cpp::utils::Memory::Malloc(sizeof(ValueCollection_t51CD5520820E14147632F4AD669421EBC372BBBC_ComCallableWrapper)); if (memory == NULL) { il2cpp_codegen_raise_out_of_memory_exception(); } return static_cast<Il2CppIManagedObjectHolder*>(new(memory) ValueCollection_t51CD5520820E14147632F4AD669421EBC372BBBC_ComCallableWrapper(obj)); } // COM Callable Wrapper for System.Collections.Generic.Dictionary`2/ValueCollection<System.Tuple`2<UnityEngine.Collider,UnityEngine.Camera>,System.Boolean> struct ValueCollection_t583A41C852726CCDF6D44A888AD9F7F6A95709A4_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<ValueCollection_t583A41C852726CCDF6D44A888AD9F7F6A95709A4_ComCallableWrapper>, IIterable_1_t0F0E81F8630AABFA67939A3C4C7A6448EC21FB24, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8 { inline ValueCollection_t583A41C852726CCDF6D44A888AD9F7F6A95709A4_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<ValueCollection_t583A41C852726CCDF6D44A888AD9F7F6A95709A4_ComCallableWrapper>(obj) {} virtual il2cpp_hresult_t STDCALL QueryInterface(const Il2CppGuid& iid, void** object) IL2CPP_OVERRIDE { if (::memcmp(&iid, &Il2CppIUnknown::IID, sizeof(Il2CppGuid)) == 0 || ::memcmp(&iid, &Il2CppIInspectable::IID, sizeof(Il2CppGuid)) == 0 || ::memcmp(&iid, &Il2CppIAgileObject::IID, sizeof(Il2CppGuid)) == 0) { *object = GetIdentity(); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIManagedObjectHolder::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIManagedObjectHolder*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &IIterable_1_t0F0E81F8630AABFA67939A3C4C7A6448EC21FB24::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<IIterable_1_t0F0E81F8630AABFA67939A3C4C7A6448EC21FB24*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIMarshal::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIMarshal*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIWeakReferenceSource::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIWeakReferenceSource*>(this); AddRefImpl(); return IL2CPP_S_OK; } *object = NULL; return IL2CPP_E_NOINTERFACE; } virtual uint32_t STDCALL AddRef() IL2CPP_OVERRIDE { return AddRefImpl(); } virtual uint32_t STDCALL Release() IL2CPP_OVERRIDE { return ReleaseImpl(); } virtual il2cpp_hresult_t STDCALL GetIids(uint32_t* iidCount, Il2CppGuid** iids) IL2CPP_OVERRIDE { Il2CppGuid* interfaceIds = il2cpp_codegen_marshal_allocate_array<Il2CppGuid>(2); interfaceIds[0] = IIterable_1_t0F0E81F8630AABFA67939A3C4C7A6448EC21FB24::IID; interfaceIds[1] = IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID; *iidCount = 2; *iids = interfaceIds; return IL2CPP_S_OK; } virtual il2cpp_hresult_t STDCALL GetRuntimeClassName(Il2CppHString* className) IL2CPP_OVERRIDE { return GetRuntimeClassNameImpl(className); } virtual il2cpp_hresult_t STDCALL GetTrustLevel(int32_t* trustLevel) IL2CPP_OVERRIDE { return ComObjectBase::GetTrustLevel(trustLevel); } virtual il2cpp_hresult_t STDCALL IIterable_1_First_m0DF5AB173068D2FBCA182101EF7C9DD4C9135BCB(IIterator_1_tE13F884343548B90CBE44A0A597D5A31E29178BF** comReturnValue) IL2CPP_OVERRIDE { return IIterable_1_First_m0DF5AB173068D2FBCA182101EF7C9DD4C9135BCB_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue); } virtual il2cpp_hresult_t STDCALL IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7(IBindableIterator_tD7550F1144CFBE58090050457A2BE92B1CAEABBB** comReturnValue) IL2CPP_OVERRIDE { return IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue); } }; IL2CPP_EXTERN_C Il2CppIUnknown* CreateComCallableWrapperFor_ValueCollection_t583A41C852726CCDF6D44A888AD9F7F6A95709A4(RuntimeObject* obj) { void* memory = il2cpp::utils::Memory::Malloc(sizeof(ValueCollection_t583A41C852726CCDF6D44A888AD9F7F6A95709A4_ComCallableWrapper)); if (memory == NULL) { il2cpp_codegen_raise_out_of_memory_exception(); } return static_cast<Il2CppIManagedObjectHolder*>(new(memory) ValueCollection_t583A41C852726CCDF6D44A888AD9F7F6A95709A4_ComCallableWrapper(obj)); } // COM Callable Wrapper for System.Collections.ObjectModel.ReadOnlyDictionary`2/ValueCollection<System.Tuple`2<UnityEngine.Collider,UnityEngine.Camera>,System.Boolean> struct ValueCollection_t2C403E54E42F9B758B8A748BDB9AB8EB50AB78EC_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<ValueCollection_t2C403E54E42F9B758B8A748BDB9AB8EB50AB78EC_ComCallableWrapper>, IIterable_1_t0F0E81F8630AABFA67939A3C4C7A6448EC21FB24, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8 { inline ValueCollection_t2C403E54E42F9B758B8A748BDB9AB8EB50AB78EC_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<ValueCollection_t2C403E54E42F9B758B8A748BDB9AB8EB50AB78EC_ComCallableWrapper>(obj) {} virtual il2cpp_hresult_t STDCALL QueryInterface(const Il2CppGuid& iid, void** object) IL2CPP_OVERRIDE { if (::memcmp(&iid, &Il2CppIUnknown::IID, sizeof(Il2CppGuid)) == 0 || ::memcmp(&iid, &Il2CppIInspectable::IID, sizeof(Il2CppGuid)) == 0 || ::memcmp(&iid, &Il2CppIAgileObject::IID, sizeof(Il2CppGuid)) == 0) { *object = GetIdentity(); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIManagedObjectHolder::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIManagedObjectHolder*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &IIterable_1_t0F0E81F8630AABFA67939A3C4C7A6448EC21FB24::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<IIterable_1_t0F0E81F8630AABFA67939A3C4C7A6448EC21FB24*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIMarshal::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIMarshal*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIWeakReferenceSource::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIWeakReferenceSource*>(this); AddRefImpl(); return IL2CPP_S_OK; } *object = NULL; return IL2CPP_E_NOINTERFACE; } virtual uint32_t STDCALL AddRef() IL2CPP_OVERRIDE { return AddRefImpl(); } virtual uint32_t STDCALL Release() IL2CPP_OVERRIDE { return ReleaseImpl(); } virtual il2cpp_hresult_t STDCALL GetIids(uint32_t* iidCount, Il2CppGuid** iids) IL2CPP_OVERRIDE { Il2CppGuid* interfaceIds = il2cpp_codegen_marshal_allocate_array<Il2CppGuid>(2); interfaceIds[0] = IIterable_1_t0F0E81F8630AABFA67939A3C4C7A6448EC21FB24::IID; interfaceIds[1] = IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID; *iidCount = 2; *iids = interfaceIds; return IL2CPP_S_OK; } virtual il2cpp_hresult_t STDCALL GetRuntimeClassName(Il2CppHString* className) IL2CPP_OVERRIDE { return GetRuntimeClassNameImpl(className); } virtual il2cpp_hresult_t STDCALL GetTrustLevel(int32_t* trustLevel) IL2CPP_OVERRIDE { return ComObjectBase::GetTrustLevel(trustLevel); } virtual il2cpp_hresult_t STDCALL IIterable_1_First_m0DF5AB173068D2FBCA182101EF7C9DD4C9135BCB(IIterator_1_tE13F884343548B90CBE44A0A597D5A31E29178BF** comReturnValue) IL2CPP_OVERRIDE { return IIterable_1_First_m0DF5AB173068D2FBCA182101EF7C9DD4C9135BCB_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue); } virtual il2cpp_hresult_t STDCALL IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7(IBindableIterator_tD7550F1144CFBE58090050457A2BE92B1CAEABBB** comReturnValue) IL2CPP_OVERRIDE { return IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue); } }; IL2CPP_EXTERN_C Il2CppIUnknown* CreateComCallableWrapperFor_ValueCollection_t2C403E54E42F9B758B8A748BDB9AB8EB50AB78EC(RuntimeObject* obj) { void* memory = il2cpp::utils::Memory::Malloc(sizeof(ValueCollection_t2C403E54E42F9B758B8A748BDB9AB8EB50AB78EC_ComCallableWrapper)); if (memory == NULL) { il2cpp_codegen_raise_out_of_memory_exception(); } return static_cast<Il2CppIManagedObjectHolder*>(new(memory) ValueCollection_t2C403E54E42F9B758B8A748BDB9AB8EB50AB78EC_ComCallableWrapper(obj)); } // COM Callable Wrapper for System.Collections.Generic.Dictionary`2/ValueCollection<System.Tuple`2<Microsoft.MixedReality.Toolkit.Input.KeyBinding/KeyType,System.Int32>,System.Int32> struct ValueCollection_t020508D08098E9C5DFCCC88C71DD1D2F427A9A18_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<ValueCollection_t020508D08098E9C5DFCCC88C71DD1D2F427A9A18_ComCallableWrapper>, IIterable_1_t3FD1FB01310262788B2A8868AA7395E023511050, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8 { inline ValueCollection_t020508D08098E9C5DFCCC88C71DD1D2F427A9A18_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<ValueCollection_t020508D08098E9C5DFCCC88C71DD1D2F427A9A18_ComCallableWrapper>(obj) {} virtual il2cpp_hresult_t STDCALL QueryInterface(const Il2CppGuid& iid, void** object) IL2CPP_OVERRIDE { if (::memcmp(&iid, &Il2CppIUnknown::IID, sizeof(Il2CppGuid)) == 0 || ::memcmp(&iid, &Il2CppIInspectable::IID, sizeof(Il2CppGuid)) == 0 || ::memcmp(&iid, &Il2CppIAgileObject::IID, sizeof(Il2CppGuid)) == 0) { *object = GetIdentity(); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIManagedObjectHolder::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIManagedObjectHolder*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &IIterable_1_t3FD1FB01310262788B2A8868AA7395E023511050::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<IIterable_1_t3FD1FB01310262788B2A8868AA7395E023511050*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIMarshal::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIMarshal*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIWeakReferenceSource::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIWeakReferenceSource*>(this); AddRefImpl(); return IL2CPP_S_OK; } *object = NULL; return IL2CPP_E_NOINTERFACE; } virtual uint32_t STDCALL AddRef() IL2CPP_OVERRIDE { return AddRefImpl(); } virtual uint32_t STDCALL Release() IL2CPP_OVERRIDE { return ReleaseImpl(); } virtual il2cpp_hresult_t STDCALL GetIids(uint32_t* iidCount, Il2CppGuid** iids) IL2CPP_OVERRIDE { Il2CppGuid* interfaceIds = il2cpp_codegen_marshal_allocate_array<Il2CppGuid>(2); interfaceIds[0] = IIterable_1_t3FD1FB01310262788B2A8868AA7395E023511050::IID; interfaceIds[1] = IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID; *iidCount = 2; *iids = interfaceIds; return IL2CPP_S_OK; } virtual il2cpp_hresult_t STDCALL GetRuntimeClassName(Il2CppHString* className) IL2CPP_OVERRIDE { return GetRuntimeClassNameImpl(className); } virtual il2cpp_hresult_t STDCALL GetTrustLevel(int32_t* trustLevel) IL2CPP_OVERRIDE { return ComObjectBase::GetTrustLevel(trustLevel); } virtual il2cpp_hresult_t STDCALL IIterable_1_First_mC1E90957AD904E68CE3F84D1EF22D5EFACE8C2D5(IIterator_1_tFF647CAD19D34FD0606CDD3425C431F82B94589C** comReturnValue) IL2CPP_OVERRIDE { return IIterable_1_First_mC1E90957AD904E68CE3F84D1EF22D5EFACE8C2D5_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue); } virtual il2cpp_hresult_t STDCALL IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7(IBindableIterator_tD7550F1144CFBE58090050457A2BE92B1CAEABBB** comReturnValue) IL2CPP_OVERRIDE { return IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue); } }; IL2CPP_EXTERN_C Il2CppIUnknown* CreateComCallableWrapperFor_ValueCollection_t020508D08098E9C5DFCCC88C71DD1D2F427A9A18(RuntimeObject* obj) { void* memory = il2cpp::utils::Memory::Malloc(sizeof(ValueCollection_t020508D08098E9C5DFCCC88C71DD1D2F427A9A18_ComCallableWrapper)); if (memory == NULL) { il2cpp_codegen_raise_out_of_memory_exception(); } return static_cast<Il2CppIManagedObjectHolder*>(new(memory) ValueCollection_t020508D08098E9C5DFCCC88C71DD1D2F427A9A18_ComCallableWrapper(obj)); } // COM Callable Wrapper for System.Collections.ObjectModel.ReadOnlyDictionary`2/ValueCollection<System.Tuple`2<Microsoft.MixedReality.Toolkit.Input.KeyBinding/KeyType,System.Int32>,System.Int32> struct ValueCollection_t25E334155CBD91B31B09696FDCB72DF99C97B4A6_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<ValueCollection_t25E334155CBD91B31B09696FDCB72DF99C97B4A6_ComCallableWrapper>, IIterable_1_t3FD1FB01310262788B2A8868AA7395E023511050, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8 { inline ValueCollection_t25E334155CBD91B31B09696FDCB72DF99C97B4A6_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<ValueCollection_t25E334155CBD91B31B09696FDCB72DF99C97B4A6_ComCallableWrapper>(obj) {} virtual il2cpp_hresult_t STDCALL QueryInterface(const Il2CppGuid& iid, void** object) IL2CPP_OVERRIDE { if (::memcmp(&iid, &Il2CppIUnknown::IID, sizeof(Il2CppGuid)) == 0 || ::memcmp(&iid, &Il2CppIInspectable::IID, sizeof(Il2CppGuid)) == 0 || ::memcmp(&iid, &Il2CppIAgileObject::IID, sizeof(Il2CppGuid)) == 0) { *object = GetIdentity(); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIManagedObjectHolder::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIManagedObjectHolder*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &IIterable_1_t3FD1FB01310262788B2A8868AA7395E023511050::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<IIterable_1_t3FD1FB01310262788B2A8868AA7395E023511050*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIMarshal::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIMarshal*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIWeakReferenceSource::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIWeakReferenceSource*>(this); AddRefImpl(); return IL2CPP_S_OK; } *object = NULL; return IL2CPP_E_NOINTERFACE; } virtual uint32_t STDCALL AddRef() IL2CPP_OVERRIDE { return AddRefImpl(); } virtual uint32_t STDCALL Release() IL2CPP_OVERRIDE { return ReleaseImpl(); } virtual il2cpp_hresult_t STDCALL GetIids(uint32_t* iidCount, Il2CppGuid** iids) IL2CPP_OVERRIDE { Il2CppGuid* interfaceIds = il2cpp_codegen_marshal_allocate_array<Il2CppGuid>(2); interfaceIds[0] = IIterable_1_t3FD1FB01310262788B2A8868AA7395E023511050::IID; interfaceIds[1] = IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID; *iidCount = 2; *iids = interfaceIds; return IL2CPP_S_OK; } virtual il2cpp_hresult_t STDCALL GetRuntimeClassName(Il2CppHString* className) IL2CPP_OVERRIDE { return GetRuntimeClassNameImpl(className); } virtual il2cpp_hresult_t STDCALL GetTrustLevel(int32_t* trustLevel) IL2CPP_OVERRIDE { return ComObjectBase::GetTrustLevel(trustLevel); } virtual il2cpp_hresult_t STDCALL IIterable_1_First_mC1E90957AD904E68CE3F84D1EF22D5EFACE8C2D5(IIterator_1_tFF647CAD19D34FD0606CDD3425C431F82B94589C** comReturnValue) IL2CPP_OVERRIDE { return IIterable_1_First_mC1E90957AD904E68CE3F84D1EF22D5EFACE8C2D5_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue); } virtual il2cpp_hresult_t STDCALL IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7(IBindableIterator_tD7550F1144CFBE58090050457A2BE92B1CAEABBB** comReturnValue) IL2CPP_OVERRIDE { return IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue); } }; IL2CPP_EXTERN_C Il2CppIUnknown* CreateComCallableWrapperFor_ValueCollection_t25E334155CBD91B31B09696FDCB72DF99C97B4A6(RuntimeObject* obj) { void* memory = il2cpp::utils::Memory::Malloc(sizeof(ValueCollection_t25E334155CBD91B31B09696FDCB72DF99C97B4A6_ComCallableWrapper)); if (memory == NULL) { il2cpp_codegen_raise_out_of_memory_exception(); } return static_cast<Il2CppIManagedObjectHolder*>(new(memory) ValueCollection_t25E334155CBD91B31B09696FDCB72DF99C97B4A6_ComCallableWrapper(obj)); } // COM Callable Wrapper for System.Collections.Generic.Dictionary`2/ValueCollection<System.Action,System.Collections.Generic.LinkedListNode`1<System.Action>> struct ValueCollection_tDD698D2936486DD2148BC38EC395A5CC2B6CBFE1_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<ValueCollection_tDD698D2936486DD2148BC38EC395A5CC2B6CBFE1_ComCallableWrapper>, IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8 { inline ValueCollection_tDD698D2936486DD2148BC38EC395A5CC2B6CBFE1_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<ValueCollection_tDD698D2936486DD2148BC38EC395A5CC2B6CBFE1_ComCallableWrapper>(obj) {} virtual il2cpp_hresult_t STDCALL QueryInterface(const Il2CppGuid& iid, void** object) IL2CPP_OVERRIDE { if (::memcmp(&iid, &Il2CppIUnknown::IID, sizeof(Il2CppGuid)) == 0 || ::memcmp(&iid, &Il2CppIInspectable::IID, sizeof(Il2CppGuid)) == 0 || ::memcmp(&iid, &Il2CppIAgileObject::IID, sizeof(Il2CppGuid)) == 0) { *object = GetIdentity(); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIManagedObjectHolder::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIManagedObjectHolder*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIMarshal::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIMarshal*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIWeakReferenceSource::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIWeakReferenceSource*>(this); AddRefImpl(); return IL2CPP_S_OK; } *object = NULL; return IL2CPP_E_NOINTERFACE; } virtual uint32_t STDCALL AddRef() IL2CPP_OVERRIDE { return AddRefImpl(); } virtual uint32_t STDCALL Release() IL2CPP_OVERRIDE { return ReleaseImpl(); } virtual il2cpp_hresult_t STDCALL GetIids(uint32_t* iidCount, Il2CppGuid** iids) IL2CPP_OVERRIDE { Il2CppGuid* interfaceIds = il2cpp_codegen_marshal_allocate_array<Il2CppGuid>(2); interfaceIds[0] = IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4::IID; interfaceIds[1] = IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID; *iidCount = 2; *iids = interfaceIds; return IL2CPP_S_OK; } virtual il2cpp_hresult_t STDCALL GetRuntimeClassName(Il2CppHString* className) IL2CPP_OVERRIDE { return GetRuntimeClassNameImpl(className); } virtual il2cpp_hresult_t STDCALL GetTrustLevel(int32_t* trustLevel) IL2CPP_OVERRIDE { return ComObjectBase::GetTrustLevel(trustLevel); } virtual il2cpp_hresult_t STDCALL IIterable_1_First_m54AC7E778E98ED35C6B7AD98C35C325B8A3DF619(IIterator_1_tB1AB5AB497E87D6A397AA084D3D3D6B8D211022C** comReturnValue) IL2CPP_OVERRIDE { return IIterable_1_First_m54AC7E778E98ED35C6B7AD98C35C325B8A3DF619_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue); } virtual il2cpp_hresult_t STDCALL IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7(IBindableIterator_tD7550F1144CFBE58090050457A2BE92B1CAEABBB** comReturnValue) IL2CPP_OVERRIDE { return IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue); } }; IL2CPP_EXTERN_C Il2CppIUnknown* CreateComCallableWrapperFor_ValueCollection_tDD698D2936486DD2148BC38EC395A5CC2B6CBFE1(RuntimeObject* obj) { void* memory = il2cpp::utils::Memory::Malloc(sizeof(ValueCollection_tDD698D2936486DD2148BC38EC395A5CC2B6CBFE1_ComCallableWrapper)); if (memory == NULL) { il2cpp_codegen_raise_out_of_memory_exception(); } return static_cast<Il2CppIManagedObjectHolder*>(new(memory) ValueCollection_tDD698D2936486DD2148BC38EC395A5CC2B6CBFE1_ComCallableWrapper(obj)); } // COM Callable Wrapper for System.Collections.ObjectModel.ReadOnlyDictionary`2/ValueCollection<System.Action,System.Collections.Generic.LinkedListNode`1<System.Action>> struct ValueCollection_t14B5CBE232037DBA07FDA5BD5165E9702568E491_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<ValueCollection_t14B5CBE232037DBA07FDA5BD5165E9702568E491_ComCallableWrapper>, IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8 { inline ValueCollection_t14B5CBE232037DBA07FDA5BD5165E9702568E491_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<ValueCollection_t14B5CBE232037DBA07FDA5BD5165E9702568E491_ComCallableWrapper>(obj) {} virtual il2cpp_hresult_t STDCALL QueryInterface(const Il2CppGuid& iid, void** object) IL2CPP_OVERRIDE { if (::memcmp(&iid, &Il2CppIUnknown::IID, sizeof(Il2CppGuid)) == 0 || ::memcmp(&iid, &Il2CppIInspectable::IID, sizeof(Il2CppGuid)) == 0 || ::memcmp(&iid, &Il2CppIAgileObject::IID, sizeof(Il2CppGuid)) == 0) { *object = GetIdentity(); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIManagedObjectHolder::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIManagedObjectHolder*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIMarshal::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIMarshal*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIWeakReferenceSource::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIWeakReferenceSource*>(this); AddRefImpl(); return IL2CPP_S_OK; } *object = NULL; return IL2CPP_E_NOINTERFACE; } virtual uint32_t STDCALL AddRef() IL2CPP_OVERRIDE { return AddRefImpl(); } virtual uint32_t STDCALL Release() IL2CPP_OVERRIDE { return ReleaseImpl(); } virtual il2cpp_hresult_t STDCALL GetIids(uint32_t* iidCount, Il2CppGuid** iids) IL2CPP_OVERRIDE { Il2CppGuid* interfaceIds = il2cpp_codegen_marshal_allocate_array<Il2CppGuid>(2); interfaceIds[0] = IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4::IID; interfaceIds[1] = IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID; *iidCount = 2; *iids = interfaceIds; return IL2CPP_S_OK; } virtual il2cpp_hresult_t STDCALL GetRuntimeClassName(Il2CppHString* className) IL2CPP_OVERRIDE { return GetRuntimeClassNameImpl(className); } virtual il2cpp_hresult_t STDCALL GetTrustLevel(int32_t* trustLevel) IL2CPP_OVERRIDE { return ComObjectBase::GetTrustLevel(trustLevel); } virtual il2cpp_hresult_t STDCALL IIterable_1_First_m54AC7E778E98ED35C6B7AD98C35C325B8A3DF619(IIterator_1_tB1AB5AB497E87D6A397AA084D3D3D6B8D211022C** comReturnValue) IL2CPP_OVERRIDE { return IIterable_1_First_m54AC7E778E98ED35C6B7AD98C35C325B8A3DF619_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue); } virtual il2cpp_hresult_t STDCALL IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7(IBindableIterator_tD7550F1144CFBE58090050457A2BE92B1CAEABBB** comReturnValue) IL2CPP_OVERRIDE { return IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue); } }; IL2CPP_EXTERN_C Il2CppIUnknown* CreateComCallableWrapperFor_ValueCollection_t14B5CBE232037DBA07FDA5BD5165E9702568E491(RuntimeObject* obj) { void* memory = il2cpp::utils::Memory::Malloc(sizeof(ValueCollection_t14B5CBE232037DBA07FDA5BD5165E9702568E491_ComCallableWrapper)); if (memory == NULL) { il2cpp_codegen_raise_out_of_memory_exception(); } return static_cast<Il2CppIManagedObjectHolder*>(new(memory) ValueCollection_t14B5CBE232037DBA07FDA5BD5165E9702568E491_ComCallableWrapper(obj)); } // COM Callable Wrapper for System.Collections.Generic.Dictionary`2/ValueCollection<Microsoft.MixedReality.Toolkit.Audio.AudioLoFiSourceQuality,Microsoft.MixedReality.Toolkit.Audio.AudioLoFiEffect/AudioLoFiFilterSettings> struct ValueCollection_t2C28712500B980BA66C7B7129B061485782EBC02_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<ValueCollection_t2C28712500B980BA66C7B7129B061485782EBC02_ComCallableWrapper>, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8 { inline ValueCollection_t2C28712500B980BA66C7B7129B061485782EBC02_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<ValueCollection_t2C28712500B980BA66C7B7129B061485782EBC02_ComCallableWrapper>(obj) {} virtual il2cpp_hresult_t STDCALL QueryInterface(const Il2CppGuid& iid, void** object) IL2CPP_OVERRIDE { if (::memcmp(&iid, &Il2CppIUnknown::IID, sizeof(Il2CppGuid)) == 0 || ::memcmp(&iid, &Il2CppIInspectable::IID, sizeof(Il2CppGuid)) == 0 || ::memcmp(&iid, &Il2CppIAgileObject::IID, sizeof(Il2CppGuid)) == 0) { *object = GetIdentity(); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIManagedObjectHolder::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIManagedObjectHolder*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIMarshal::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIMarshal*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIWeakReferenceSource::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIWeakReferenceSource*>(this); AddRefImpl(); return IL2CPP_S_OK; } *object = NULL; return IL2CPP_E_NOINTERFACE; } virtual uint32_t STDCALL AddRef() IL2CPP_OVERRIDE { return AddRefImpl(); } virtual uint32_t STDCALL Release() IL2CPP_OVERRIDE { return ReleaseImpl(); } virtual il2cpp_hresult_t STDCALL GetIids(uint32_t* iidCount, Il2CppGuid** iids) IL2CPP_OVERRIDE { Il2CppGuid* interfaceIds = il2cpp_codegen_marshal_allocate_array<Il2CppGuid>(1); interfaceIds[0] = IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID; *iidCount = 1; *iids = interfaceIds; return IL2CPP_S_OK; } virtual il2cpp_hresult_t STDCALL GetRuntimeClassName(Il2CppHString* className) IL2CPP_OVERRIDE { return GetRuntimeClassNameImpl(className); } virtual il2cpp_hresult_t STDCALL GetTrustLevel(int32_t* trustLevel) IL2CPP_OVERRIDE { return ComObjectBase::GetTrustLevel(trustLevel); } virtual il2cpp_hresult_t STDCALL IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7(IBindableIterator_tD7550F1144CFBE58090050457A2BE92B1CAEABBB** comReturnValue) IL2CPP_OVERRIDE { return IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue); } }; IL2CPP_EXTERN_C Il2CppIUnknown* CreateComCallableWrapperFor_ValueCollection_t2C28712500B980BA66C7B7129B061485782EBC02(RuntimeObject* obj) { void* memory = il2cpp::utils::Memory::Malloc(sizeof(ValueCollection_t2C28712500B980BA66C7B7129B061485782EBC02_ComCallableWrapper)); if (memory == NULL) { il2cpp_codegen_raise_out_of_memory_exception(); } return static_cast<Il2CppIManagedObjectHolder*>(new(memory) ValueCollection_t2C28712500B980BA66C7B7129B061485782EBC02_ComCallableWrapper(obj)); } // COM Callable Wrapper for System.Collections.ObjectModel.ReadOnlyDictionary`2/ValueCollection<Microsoft.MixedReality.Toolkit.Audio.AudioLoFiSourceQuality,Microsoft.MixedReality.Toolkit.Audio.AudioLoFiEffect/AudioLoFiFilterSettings> struct ValueCollection_t6126718CB6361E31FCF8A36B3C1EB289186BF26F_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<ValueCollection_t6126718CB6361E31FCF8A36B3C1EB289186BF26F_ComCallableWrapper>, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8 { inline ValueCollection_t6126718CB6361E31FCF8A36B3C1EB289186BF26F_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<ValueCollection_t6126718CB6361E31FCF8A36B3C1EB289186BF26F_ComCallableWrapper>(obj) {} virtual il2cpp_hresult_t STDCALL QueryInterface(const Il2CppGuid& iid, void** object) IL2CPP_OVERRIDE { if (::memcmp(&iid, &Il2CppIUnknown::IID, sizeof(Il2CppGuid)) == 0 || ::memcmp(&iid, &Il2CppIInspectable::IID, sizeof(Il2CppGuid)) == 0 || ::memcmp(&iid, &Il2CppIAgileObject::IID, sizeof(Il2CppGuid)) == 0) { *object = GetIdentity(); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIManagedObjectHolder::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIManagedObjectHolder*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIMarshal::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIMarshal*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIWeakReferenceSource::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIWeakReferenceSource*>(this); AddRefImpl(); return IL2CPP_S_OK; } *object = NULL; return IL2CPP_E_NOINTERFACE; } virtual uint32_t STDCALL AddRef() IL2CPP_OVERRIDE { return AddRefImpl(); } virtual uint32_t STDCALL Release() IL2CPP_OVERRIDE { return ReleaseImpl(); } virtual il2cpp_hresult_t STDCALL GetIids(uint32_t* iidCount, Il2CppGuid** iids) IL2CPP_OVERRIDE { Il2CppGuid* interfaceIds = il2cpp_codegen_marshal_allocate_array<Il2CppGuid>(1); interfaceIds[0] = IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID; *iidCount = 1; *iids = interfaceIds; return IL2CPP_S_OK; } virtual il2cpp_hresult_t STDCALL GetRuntimeClassName(Il2CppHString* className) IL2CPP_OVERRIDE { return GetRuntimeClassNameImpl(className); } virtual il2cpp_hresult_t STDCALL GetTrustLevel(int32_t* trustLevel) IL2CPP_OVERRIDE { return ComObjectBase::GetTrustLevel(trustLevel); } virtual il2cpp_hresult_t STDCALL IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7(IBindableIterator_tD7550F1144CFBE58090050457A2BE92B1CAEABBB** comReturnValue) IL2CPP_OVERRIDE { return IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue); } }; IL2CPP_EXTERN_C Il2CppIUnknown* CreateComCallableWrapperFor_ValueCollection_t6126718CB6361E31FCF8A36B3C1EB289186BF26F(RuntimeObject* obj) { void* memory = il2cpp::utils::Memory::Malloc(sizeof(ValueCollection_t6126718CB6361E31FCF8A36B3C1EB289186BF26F_ComCallableWrapper)); if (memory == NULL) { il2cpp_codegen_raise_out_of_memory_exception(); } return static_cast<Il2CppIManagedObjectHolder*>(new(memory) ValueCollection_t6126718CB6361E31FCF8A36B3C1EB289186BF26F_ComCallableWrapper(obj)); } // COM Callable Wrapper for System.Collections.Generic.Dictionary`2/ValueCollection<UnityEngine.Canvas,UnityEngine.UI.Collections.IndexedSet`1<UnityEngine.UI.Graphic>> struct ValueCollection_t987D376B17F692C3A1C2223C277336DAAA8DE68E_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<ValueCollection_t987D376B17F692C3A1C2223C277336DAAA8DE68E_ComCallableWrapper>, IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4, IIterable_1_tB7611E3565ADF2561FF7521E03A1E3B93F7BD113, IIterable_1_t6359E278A71A51A15FA83695BA7C54F9B3E04824, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8 { inline ValueCollection_t987D376B17F692C3A1C2223C277336DAAA8DE68E_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<ValueCollection_t987D376B17F692C3A1C2223C277336DAAA8DE68E_ComCallableWrapper>(obj) {} virtual il2cpp_hresult_t STDCALL QueryInterface(const Il2CppGuid& iid, void** object) IL2CPP_OVERRIDE { if (::memcmp(&iid, &Il2CppIUnknown::IID, sizeof(Il2CppGuid)) == 0 || ::memcmp(&iid, &Il2CppIInspectable::IID, sizeof(Il2CppGuid)) == 0 || ::memcmp(&iid, &Il2CppIAgileObject::IID, sizeof(Il2CppGuid)) == 0) { *object = GetIdentity(); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIManagedObjectHolder::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIManagedObjectHolder*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &IIterable_1_tB7611E3565ADF2561FF7521E03A1E3B93F7BD113::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<IIterable_1_tB7611E3565ADF2561FF7521E03A1E3B93F7BD113*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &IIterable_1_t6359E278A71A51A15FA83695BA7C54F9B3E04824::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<IIterable_1_t6359E278A71A51A15FA83695BA7C54F9B3E04824*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIMarshal::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIMarshal*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIWeakReferenceSource::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIWeakReferenceSource*>(this); AddRefImpl(); return IL2CPP_S_OK; } *object = NULL; return IL2CPP_E_NOINTERFACE; } virtual uint32_t STDCALL AddRef() IL2CPP_OVERRIDE { return AddRefImpl(); } virtual uint32_t STDCALL Release() IL2CPP_OVERRIDE { return ReleaseImpl(); } virtual il2cpp_hresult_t STDCALL GetIids(uint32_t* iidCount, Il2CppGuid** iids) IL2CPP_OVERRIDE { Il2CppGuid* interfaceIds = il2cpp_codegen_marshal_allocate_array<Il2CppGuid>(4); interfaceIds[0] = IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4::IID; interfaceIds[1] = IIterable_1_tB7611E3565ADF2561FF7521E03A1E3B93F7BD113::IID; interfaceIds[2] = IIterable_1_t6359E278A71A51A15FA83695BA7C54F9B3E04824::IID; interfaceIds[3] = IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID; *iidCount = 4; *iids = interfaceIds; return IL2CPP_S_OK; } virtual il2cpp_hresult_t STDCALL GetRuntimeClassName(Il2CppHString* className) IL2CPP_OVERRIDE { return GetRuntimeClassNameImpl(className); } virtual il2cpp_hresult_t STDCALL GetTrustLevel(int32_t* trustLevel) IL2CPP_OVERRIDE { return ComObjectBase::GetTrustLevel(trustLevel); } virtual il2cpp_hresult_t STDCALL IIterable_1_First_m54AC7E778E98ED35C6B7AD98C35C325B8A3DF619(IIterator_1_tB1AB5AB497E87D6A397AA084D3D3D6B8D211022C** comReturnValue) IL2CPP_OVERRIDE { return IIterable_1_First_m54AC7E778E98ED35C6B7AD98C35C325B8A3DF619_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue); } virtual il2cpp_hresult_t STDCALL IIterable_1_First_m1E9A9F6DA2EC9A3A751A6E85F67C9BB40798A879(IIterator_1_tD5C5DE60C4A835F60D32B19C44430B59B26BFA67** comReturnValue) IL2CPP_OVERRIDE { return IIterable_1_First_m1E9A9F6DA2EC9A3A751A6E85F67C9BB40798A879_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue); } virtual il2cpp_hresult_t STDCALL IIterable_1_First_m512126C71D7E9D1C31B56F64455F33E9FEEC89F8(IIterator_1_t6A46A7244E5AAD0AE4F2A07AF43DA5052D55F4A4** comReturnValue) IL2CPP_OVERRIDE { return IIterable_1_First_m512126C71D7E9D1C31B56F64455F33E9FEEC89F8_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue); } virtual il2cpp_hresult_t STDCALL IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7(IBindableIterator_tD7550F1144CFBE58090050457A2BE92B1CAEABBB** comReturnValue) IL2CPP_OVERRIDE { return IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue); } }; IL2CPP_EXTERN_C Il2CppIUnknown* CreateComCallableWrapperFor_ValueCollection_t987D376B17F692C3A1C2223C277336DAAA8DE68E(RuntimeObject* obj) { void* memory = il2cpp::utils::Memory::Malloc(sizeof(ValueCollection_t987D376B17F692C3A1C2223C277336DAAA8DE68E_ComCallableWrapper)); if (memory == NULL) { il2cpp_codegen_raise_out_of_memory_exception(); } return static_cast<Il2CppIManagedObjectHolder*>(new(memory) ValueCollection_t987D376B17F692C3A1C2223C277336DAAA8DE68E_ComCallableWrapper(obj)); } // COM Callable Wrapper for System.Collections.ObjectModel.ReadOnlyDictionary`2/ValueCollection<UnityEngine.Canvas,UnityEngine.UI.Collections.IndexedSet`1<UnityEngine.UI.Graphic>> struct ValueCollection_t083FEA9A75D32522810BB19D2EA1C29E37E6ECB2_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<ValueCollection_t083FEA9A75D32522810BB19D2EA1C29E37E6ECB2_ComCallableWrapper>, IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4, IIterable_1_tB7611E3565ADF2561FF7521E03A1E3B93F7BD113, IIterable_1_t6359E278A71A51A15FA83695BA7C54F9B3E04824, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8 { inline ValueCollection_t083FEA9A75D32522810BB19D2EA1C29E37E6ECB2_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<ValueCollection_t083FEA9A75D32522810BB19D2EA1C29E37E6ECB2_ComCallableWrapper>(obj) {} virtual il2cpp_hresult_t STDCALL QueryInterface(const Il2CppGuid& iid, void** object) IL2CPP_OVERRIDE { if (::memcmp(&iid, &Il2CppIUnknown::IID, sizeof(Il2CppGuid)) == 0 || ::memcmp(&iid, &Il2CppIInspectable::IID, sizeof(Il2CppGuid)) == 0 || ::memcmp(&iid, &Il2CppIAgileObject::IID, sizeof(Il2CppGuid)) == 0) { *object = GetIdentity(); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIManagedObjectHolder::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIManagedObjectHolder*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &IIterable_1_tB7611E3565ADF2561FF7521E03A1E3B93F7BD113::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<IIterable_1_tB7611E3565ADF2561FF7521E03A1E3B93F7BD113*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &IIterable_1_t6359E278A71A51A15FA83695BA7C54F9B3E04824::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<IIterable_1_t6359E278A71A51A15FA83695BA7C54F9B3E04824*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIMarshal::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIMarshal*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIWeakReferenceSource::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIWeakReferenceSource*>(this); AddRefImpl(); return IL2CPP_S_OK; } *object = NULL; return IL2CPP_E_NOINTERFACE; } virtual uint32_t STDCALL AddRef() IL2CPP_OVERRIDE { return AddRefImpl(); } virtual uint32_t STDCALL Release() IL2CPP_OVERRIDE { return ReleaseImpl(); } virtual il2cpp_hresult_t STDCALL GetIids(uint32_t* iidCount, Il2CppGuid** iids) IL2CPP_OVERRIDE { Il2CppGuid* interfaceIds = il2cpp_codegen_marshal_allocate_array<Il2CppGuid>(4); interfaceIds[0] = IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4::IID; interfaceIds[1] = IIterable_1_tB7611E3565ADF2561FF7521E03A1E3B93F7BD113::IID; interfaceIds[2] = IIterable_1_t6359E278A71A51A15FA83695BA7C54F9B3E04824::IID; interfaceIds[3] = IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID; *iidCount = 4; *iids = interfaceIds; return IL2CPP_S_OK; } virtual il2cpp_hresult_t STDCALL GetRuntimeClassName(Il2CppHString* className) IL2CPP_OVERRIDE { return GetRuntimeClassNameImpl(className); } virtual il2cpp_hresult_t STDCALL GetTrustLevel(int32_t* trustLevel) IL2CPP_OVERRIDE { return ComObjectBase::GetTrustLevel(trustLevel); } virtual il2cpp_hresult_t STDCALL IIterable_1_First_m54AC7E778E98ED35C6B7AD98C35C325B8A3DF619(IIterator_1_tB1AB5AB497E87D6A397AA084D3D3D6B8D211022C** comReturnValue) IL2CPP_OVERRIDE { return IIterable_1_First_m54AC7E778E98ED35C6B7AD98C35C325B8A3DF619_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue); } virtual il2cpp_hresult_t STDCALL IIterable_1_First_m1E9A9F6DA2EC9A3A751A6E85F67C9BB40798A879(IIterator_1_tD5C5DE60C4A835F60D32B19C44430B59B26BFA67** comReturnValue) IL2CPP_OVERRIDE { return IIterable_1_First_m1E9A9F6DA2EC9A3A751A6E85F67C9BB40798A879_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue); } virtual il2cpp_hresult_t STDCALL IIterable_1_First_m512126C71D7E9D1C31B56F64455F33E9FEEC89F8(IIterator_1_t6A46A7244E5AAD0AE4F2A07AF43DA5052D55F4A4** comReturnValue) IL2CPP_OVERRIDE { return IIterable_1_First_m512126C71D7E9D1C31B56F64455F33E9FEEC89F8_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue); } virtual il2cpp_hresult_t STDCALL IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7(IBindableIterator_tD7550F1144CFBE58090050457A2BE92B1CAEABBB** comReturnValue) IL2CPP_OVERRIDE { return IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue); } }; IL2CPP_EXTERN_C Il2CppIUnknown* CreateComCallableWrapperFor_ValueCollection_t083FEA9A75D32522810BB19D2EA1C29E37E6ECB2(RuntimeObject* obj) { void* memory = il2cpp::utils::Memory::Malloc(sizeof(ValueCollection_t083FEA9A75D32522810BB19D2EA1C29E37E6ECB2_ComCallableWrapper)); if (memory == NULL) { il2cpp_codegen_raise_out_of_memory_exception(); } return static_cast<Il2CppIManagedObjectHolder*>(new(memory) ValueCollection_t083FEA9A75D32522810BB19D2EA1C29E37E6ECB2_ComCallableWrapper(obj)); } // COM Callable Wrapper for System.Collections.Generic.Dictionary`2/ValueCollection<UnityEngine.Font,System.Collections.Generic.HashSet`1<UnityEngine.UI.Text>> struct ValueCollection_t8A993A746E028F37667CE7308EB65DE1C38208A7_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<ValueCollection_t8A993A746E028F37667CE7308EB65DE1C38208A7_ComCallableWrapper>, IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4, IIterable_1_tB7611E3565ADF2561FF7521E03A1E3B93F7BD113, IIterable_1_t6359E278A71A51A15FA83695BA7C54F9B3E04824, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8 { inline ValueCollection_t8A993A746E028F37667CE7308EB65DE1C38208A7_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<ValueCollection_t8A993A746E028F37667CE7308EB65DE1C38208A7_ComCallableWrapper>(obj) {} virtual il2cpp_hresult_t STDCALL QueryInterface(const Il2CppGuid& iid, void** object) IL2CPP_OVERRIDE { if (::memcmp(&iid, &Il2CppIUnknown::IID, sizeof(Il2CppGuid)) == 0 || ::memcmp(&iid, &Il2CppIInspectable::IID, sizeof(Il2CppGuid)) == 0 || ::memcmp(&iid, &Il2CppIAgileObject::IID, sizeof(Il2CppGuid)) == 0) { *object = GetIdentity(); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIManagedObjectHolder::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIManagedObjectHolder*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &IIterable_1_tB7611E3565ADF2561FF7521E03A1E3B93F7BD113::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<IIterable_1_tB7611E3565ADF2561FF7521E03A1E3B93F7BD113*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &IIterable_1_t6359E278A71A51A15FA83695BA7C54F9B3E04824::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<IIterable_1_t6359E278A71A51A15FA83695BA7C54F9B3E04824*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIMarshal::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIMarshal*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIWeakReferenceSource::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIWeakReferenceSource*>(this); AddRefImpl(); return IL2CPP_S_OK; } *object = NULL; return IL2CPP_E_NOINTERFACE; } virtual uint32_t STDCALL AddRef() IL2CPP_OVERRIDE { return AddRefImpl(); } virtual uint32_t STDCALL Release() IL2CPP_OVERRIDE { return ReleaseImpl(); } virtual il2cpp_hresult_t STDCALL GetIids(uint32_t* iidCount, Il2CppGuid** iids) IL2CPP_OVERRIDE { Il2CppGuid* interfaceIds = il2cpp_codegen_marshal_allocate_array<Il2CppGuid>(4); interfaceIds[0] = IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4::IID; interfaceIds[1] = IIterable_1_tB7611E3565ADF2561FF7521E03A1E3B93F7BD113::IID; interfaceIds[2] = IIterable_1_t6359E278A71A51A15FA83695BA7C54F9B3E04824::IID; interfaceIds[3] = IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID; *iidCount = 4; *iids = interfaceIds; return IL2CPP_S_OK; } virtual il2cpp_hresult_t STDCALL GetRuntimeClassName(Il2CppHString* className) IL2CPP_OVERRIDE { return GetRuntimeClassNameImpl(className); } virtual il2cpp_hresult_t STDCALL GetTrustLevel(int32_t* trustLevel) IL2CPP_OVERRIDE { return ComObjectBase::GetTrustLevel(trustLevel); } virtual il2cpp_hresult_t STDCALL IIterable_1_First_m54AC7E778E98ED35C6B7AD98C35C325B8A3DF619(IIterator_1_tB1AB5AB497E87D6A397AA084D3D3D6B8D211022C** comReturnValue) IL2CPP_OVERRIDE { return IIterable_1_First_m54AC7E778E98ED35C6B7AD98C35C325B8A3DF619_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue); } virtual il2cpp_hresult_t STDCALL IIterable_1_First_m1E9A9F6DA2EC9A3A751A6E85F67C9BB40798A879(IIterator_1_tD5C5DE60C4A835F60D32B19C44430B59B26BFA67** comReturnValue) IL2CPP_OVERRIDE { return IIterable_1_First_m1E9A9F6DA2EC9A3A751A6E85F67C9BB40798A879_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue); } virtual il2cpp_hresult_t STDCALL IIterable_1_First_m512126C71D7E9D1C31B56F64455F33E9FEEC89F8(IIterator_1_t6A46A7244E5AAD0AE4F2A07AF43DA5052D55F4A4** comReturnValue) IL2CPP_OVERRIDE { return IIterable_1_First_m512126C71D7E9D1C31B56F64455F33E9FEEC89F8_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue); } virtual il2cpp_hresult_t STDCALL IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7(IBindableIterator_tD7550F1144CFBE58090050457A2BE92B1CAEABBB** comReturnValue) IL2CPP_OVERRIDE { return IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue); } }; IL2CPP_EXTERN_C Il2CppIUnknown* CreateComCallableWrapperFor_ValueCollection_t8A993A746E028F37667CE7308EB65DE1C38208A7(RuntimeObject* obj) { void* memory = il2cpp::utils::Memory::Malloc(sizeof(ValueCollection_t8A993A746E028F37667CE7308EB65DE1C38208A7_ComCallableWrapper)); if (memory == NULL) { il2cpp_codegen_raise_out_of_memory_exception(); } return static_cast<Il2CppIManagedObjectHolder*>(new(memory) ValueCollection_t8A993A746E028F37667CE7308EB65DE1C38208A7_ComCallableWrapper(obj)); } // COM Callable Wrapper for System.Collections.ObjectModel.ReadOnlyDictionary`2/ValueCollection<UnityEngine.Font,System.Collections.Generic.HashSet`1<UnityEngine.UI.Text>> struct ValueCollection_t009B949C11EB2408622858A03487A795C1B1C1EC_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<ValueCollection_t009B949C11EB2408622858A03487A795C1B1C1EC_ComCallableWrapper>, IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4, IIterable_1_tB7611E3565ADF2561FF7521E03A1E3B93F7BD113, IIterable_1_t6359E278A71A51A15FA83695BA7C54F9B3E04824, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8 { inline ValueCollection_t009B949C11EB2408622858A03487A795C1B1C1EC_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<ValueCollection_t009B949C11EB2408622858A03487A795C1B1C1EC_ComCallableWrapper>(obj) {} virtual il2cpp_hresult_t STDCALL QueryInterface(const Il2CppGuid& iid, void** object) IL2CPP_OVERRIDE { if (::memcmp(&iid, &Il2CppIUnknown::IID, sizeof(Il2CppGuid)) == 0 || ::memcmp(&iid, &Il2CppIInspectable::IID, sizeof(Il2CppGuid)) == 0 || ::memcmp(&iid, &Il2CppIAgileObject::IID, sizeof(Il2CppGuid)) == 0) { *object = GetIdentity(); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIManagedObjectHolder::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIManagedObjectHolder*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &IIterable_1_tB7611E3565ADF2561FF7521E03A1E3B93F7BD113::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<IIterable_1_tB7611E3565ADF2561FF7521E03A1E3B93F7BD113*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &IIterable_1_t6359E278A71A51A15FA83695BA7C54F9B3E04824::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<IIterable_1_t6359E278A71A51A15FA83695BA7C54F9B3E04824*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIMarshal::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIMarshal*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIWeakReferenceSource::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIWeakReferenceSource*>(this); AddRefImpl(); return IL2CPP_S_OK; } *object = NULL; return IL2CPP_E_NOINTERFACE; } virtual uint32_t STDCALL AddRef() IL2CPP_OVERRIDE { return AddRefImpl(); } virtual uint32_t STDCALL Release() IL2CPP_OVERRIDE { return ReleaseImpl(); } virtual il2cpp_hresult_t STDCALL GetIids(uint32_t* iidCount, Il2CppGuid** iids) IL2CPP_OVERRIDE { Il2CppGuid* interfaceIds = il2cpp_codegen_marshal_allocate_array<Il2CppGuid>(4); interfaceIds[0] = IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4::IID; interfaceIds[1] = IIterable_1_tB7611E3565ADF2561FF7521E03A1E3B93F7BD113::IID; interfaceIds[2] = IIterable_1_t6359E278A71A51A15FA83695BA7C54F9B3E04824::IID; interfaceIds[3] = IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID; *iidCount = 4; *iids = interfaceIds; return IL2CPP_S_OK; } virtual il2cpp_hresult_t STDCALL GetRuntimeClassName(Il2CppHString* className) IL2CPP_OVERRIDE { return GetRuntimeClassNameImpl(className); } virtual il2cpp_hresult_t STDCALL GetTrustLevel(int32_t* trustLevel) IL2CPP_OVERRIDE { return ComObjectBase::GetTrustLevel(trustLevel); } virtual il2cpp_hresult_t STDCALL IIterable_1_First_m54AC7E778E98ED35C6B7AD98C35C325B8A3DF619(IIterator_1_tB1AB5AB497E87D6A397AA084D3D3D6B8D211022C** comReturnValue) IL2CPP_OVERRIDE { return IIterable_1_First_m54AC7E778E98ED35C6B7AD98C35C325B8A3DF619_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue); } virtual il2cpp_hresult_t STDCALL IIterable_1_First_m1E9A9F6DA2EC9A3A751A6E85F67C9BB40798A879(IIterator_1_tD5C5DE60C4A835F60D32B19C44430B59B26BFA67** comReturnValue) IL2CPP_OVERRIDE { return IIterable_1_First_m1E9A9F6DA2EC9A3A751A6E85F67C9BB40798A879_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue); } virtual il2cpp_hresult_t STDCALL IIterable_1_First_m512126C71D7E9D1C31B56F64455F33E9FEEC89F8(IIterator_1_t6A46A7244E5AAD0AE4F2A07AF43DA5052D55F4A4** comReturnValue) IL2CPP_OVERRIDE { return IIterable_1_First_m512126C71D7E9D1C31B56F64455F33E9FEEC89F8_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue); } virtual il2cpp_hresult_t STDCALL IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7(IBindableIterator_tD7550F1144CFBE58090050457A2BE92B1CAEABBB** comReturnValue) IL2CPP_OVERRIDE { return IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue); } }; IL2CPP_EXTERN_C Il2CppIUnknown* CreateComCallableWrapperFor_ValueCollection_t009B949C11EB2408622858A03487A795C1B1C1EC(RuntimeObject* obj) { void* memory = il2cpp::utils::Memory::Malloc(sizeof(ValueCollection_t009B949C11EB2408622858A03487A795C1B1C1EC_ComCallableWrapper)); if (memory == NULL) { il2cpp_codegen_raise_out_of_memory_exception(); } return static_cast<Il2CppIManagedObjectHolder*>(new(memory) ValueCollection_t009B949C11EB2408622858A03487A795C1B1C1EC_ComCallableWrapper(obj)); } // COM Callable Wrapper for System.Collections.Generic.Dictionary`2/ValueCollection<UnityEngine.GameObject,System.Int32> struct ValueCollection_tB59E32F6DE14066D8CB7DAA6619EC7F136134AEB_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<ValueCollection_tB59E32F6DE14066D8CB7DAA6619EC7F136134AEB_ComCallableWrapper>, IIterable_1_t3FD1FB01310262788B2A8868AA7395E023511050, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8 { inline ValueCollection_tB59E32F6DE14066D8CB7DAA6619EC7F136134AEB_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<ValueCollection_tB59E32F6DE14066D8CB7DAA6619EC7F136134AEB_ComCallableWrapper>(obj) {} virtual il2cpp_hresult_t STDCALL QueryInterface(const Il2CppGuid& iid, void** object) IL2CPP_OVERRIDE { if (::memcmp(&iid, &Il2CppIUnknown::IID, sizeof(Il2CppGuid)) == 0 || ::memcmp(&iid, &Il2CppIInspectable::IID, sizeof(Il2CppGuid)) == 0 || ::memcmp(&iid, &Il2CppIAgileObject::IID, sizeof(Il2CppGuid)) == 0) { *object = GetIdentity(); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIManagedObjectHolder::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIManagedObjectHolder*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &IIterable_1_t3FD1FB01310262788B2A8868AA7395E023511050::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<IIterable_1_t3FD1FB01310262788B2A8868AA7395E023511050*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIMarshal::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIMarshal*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIWeakReferenceSource::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIWeakReferenceSource*>(this); AddRefImpl(); return IL2CPP_S_OK; } *object = NULL; return IL2CPP_E_NOINTERFACE; } virtual uint32_t STDCALL AddRef() IL2CPP_OVERRIDE { return AddRefImpl(); } virtual uint32_t STDCALL Release() IL2CPP_OVERRIDE { return ReleaseImpl(); } virtual il2cpp_hresult_t STDCALL GetIids(uint32_t* iidCount, Il2CppGuid** iids) IL2CPP_OVERRIDE { Il2CppGuid* interfaceIds = il2cpp_codegen_marshal_allocate_array<Il2CppGuid>(2); interfaceIds[0] = IIterable_1_t3FD1FB01310262788B2A8868AA7395E023511050::IID; interfaceIds[1] = IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID; *iidCount = 2; *iids = interfaceIds; return IL2CPP_S_OK; } virtual il2cpp_hresult_t STDCALL GetRuntimeClassName(Il2CppHString* className) IL2CPP_OVERRIDE { return GetRuntimeClassNameImpl(className); } virtual il2cpp_hresult_t STDCALL GetTrustLevel(int32_t* trustLevel) IL2CPP_OVERRIDE { return ComObjectBase::GetTrustLevel(trustLevel); } virtual il2cpp_hresult_t STDCALL IIterable_1_First_mC1E90957AD904E68CE3F84D1EF22D5EFACE8C2D5(IIterator_1_tFF647CAD19D34FD0606CDD3425C431F82B94589C** comReturnValue) IL2CPP_OVERRIDE { return IIterable_1_First_mC1E90957AD904E68CE3F84D1EF22D5EFACE8C2D5_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue); } virtual il2cpp_hresult_t STDCALL IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7(IBindableIterator_tD7550F1144CFBE58090050457A2BE92B1CAEABBB** comReturnValue) IL2CPP_OVERRIDE { return IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue); } }; IL2CPP_EXTERN_C Il2CppIUnknown* CreateComCallableWrapperFor_ValueCollection_tB59E32F6DE14066D8CB7DAA6619EC7F136134AEB(RuntimeObject* obj) { void* memory = il2cpp::utils::Memory::Malloc(sizeof(ValueCollection_tB59E32F6DE14066D8CB7DAA6619EC7F136134AEB_ComCallableWrapper)); if (memory == NULL) { il2cpp_codegen_raise_out_of_memory_exception(); } return static_cast<Il2CppIManagedObjectHolder*>(new(memory) ValueCollection_tB59E32F6DE14066D8CB7DAA6619EC7F136134AEB_ComCallableWrapper(obj)); } // COM Callable Wrapper for System.Collections.ObjectModel.ReadOnlyDictionary`2/ValueCollection<UnityEngine.GameObject,System.Int32> struct ValueCollection_t687DD85C33A6A579776657196B09781C0213DB9F_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<ValueCollection_t687DD85C33A6A579776657196B09781C0213DB9F_ComCallableWrapper>, IIterable_1_t3FD1FB01310262788B2A8868AA7395E023511050, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8 { inline ValueCollection_t687DD85C33A6A579776657196B09781C0213DB9F_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<ValueCollection_t687DD85C33A6A579776657196B09781C0213DB9F_ComCallableWrapper>(obj) {} virtual il2cpp_hresult_t STDCALL QueryInterface(const Il2CppGuid& iid, void** object) IL2CPP_OVERRIDE { if (::memcmp(&iid, &Il2CppIUnknown::IID, sizeof(Il2CppGuid)) == 0 || ::memcmp(&iid, &Il2CppIInspectable::IID, sizeof(Il2CppGuid)) == 0 || ::memcmp(&iid, &Il2CppIAgileObject::IID, sizeof(Il2CppGuid)) == 0) { *object = GetIdentity(); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIManagedObjectHolder::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIManagedObjectHolder*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &IIterable_1_t3FD1FB01310262788B2A8868AA7395E023511050::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<IIterable_1_t3FD1FB01310262788B2A8868AA7395E023511050*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIMarshal::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIMarshal*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIWeakReferenceSource::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIWeakReferenceSource*>(this); AddRefImpl(); return IL2CPP_S_OK; } *object = NULL; return IL2CPP_E_NOINTERFACE; } virtual uint32_t STDCALL AddRef() IL2CPP_OVERRIDE { return AddRefImpl(); } virtual uint32_t STDCALL Release() IL2CPP_OVERRIDE { return ReleaseImpl(); } virtual il2cpp_hresult_t STDCALL GetIids(uint32_t* iidCount, Il2CppGuid** iids) IL2CPP_OVERRIDE { Il2CppGuid* interfaceIds = il2cpp_codegen_marshal_allocate_array<Il2CppGuid>(2); interfaceIds[0] = IIterable_1_t3FD1FB01310262788B2A8868AA7395E023511050::IID; interfaceIds[1] = IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID; *iidCount = 2; *iids = interfaceIds; return IL2CPP_S_OK; } virtual il2cpp_hresult_t STDCALL GetRuntimeClassName(Il2CppHString* className) IL2CPP_OVERRIDE { return GetRuntimeClassNameImpl(className); } virtual il2cpp_hresult_t STDCALL GetTrustLevel(int32_t* trustLevel) IL2CPP_OVERRIDE { return ComObjectBase::GetTrustLevel(trustLevel); } virtual il2cpp_hresult_t STDCALL IIterable_1_First_mC1E90957AD904E68CE3F84D1EF22D5EFACE8C2D5(IIterator_1_tFF647CAD19D34FD0606CDD3425C431F82B94589C** comReturnValue) IL2CPP_OVERRIDE { return IIterable_1_First_mC1E90957AD904E68CE3F84D1EF22D5EFACE8C2D5_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue); } virtual il2cpp_hresult_t STDCALL IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7(IBindableIterator_tD7550F1144CFBE58090050457A2BE92B1CAEABBB** comReturnValue) IL2CPP_OVERRIDE { return IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue); } }; IL2CPP_EXTERN_C Il2CppIUnknown* CreateComCallableWrapperFor_ValueCollection_t687DD85C33A6A579776657196B09781C0213DB9F(RuntimeObject* obj) { void* memory = il2cpp::utils::Memory::Malloc(sizeof(ValueCollection_t687DD85C33A6A579776657196B09781C0213DB9F_ComCallableWrapper)); if (memory == NULL) { il2cpp_codegen_raise_out_of_memory_exception(); } return static_cast<Il2CppIManagedObjectHolder*>(new(memory) ValueCollection_t687DD85C33A6A579776657196B09781C0213DB9F_ComCallableWrapper(obj)); } // COM Callable Wrapper for System.Collections.Generic.Dictionary`2/ValueCollection<UnityEngine.UI.Graphic,System.Int32> struct ValueCollection_tC19268DA6D70C8D072C7093D8ABCA28DAD4C6E3C_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<ValueCollection_tC19268DA6D70C8D072C7093D8ABCA28DAD4C6E3C_ComCallableWrapper>, IIterable_1_t3FD1FB01310262788B2A8868AA7395E023511050, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8 { inline ValueCollection_tC19268DA6D70C8D072C7093D8ABCA28DAD4C6E3C_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<ValueCollection_tC19268DA6D70C8D072C7093D8ABCA28DAD4C6E3C_ComCallableWrapper>(obj) {} virtual il2cpp_hresult_t STDCALL QueryInterface(const Il2CppGuid& iid, void** object) IL2CPP_OVERRIDE { if (::memcmp(&iid, &Il2CppIUnknown::IID, sizeof(Il2CppGuid)) == 0 || ::memcmp(&iid, &Il2CppIInspectable::IID, sizeof(Il2CppGuid)) == 0 || ::memcmp(&iid, &Il2CppIAgileObject::IID, sizeof(Il2CppGuid)) == 0) { *object = GetIdentity(); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIManagedObjectHolder::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIManagedObjectHolder*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &IIterable_1_t3FD1FB01310262788B2A8868AA7395E023511050::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<IIterable_1_t3FD1FB01310262788B2A8868AA7395E023511050*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIMarshal::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIMarshal*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIWeakReferenceSource::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIWeakReferenceSource*>(this); AddRefImpl(); return IL2CPP_S_OK; } *object = NULL; return IL2CPP_E_NOINTERFACE; } virtual uint32_t STDCALL AddRef() IL2CPP_OVERRIDE { return AddRefImpl(); } virtual uint32_t STDCALL Release() IL2CPP_OVERRIDE { return ReleaseImpl(); } virtual il2cpp_hresult_t STDCALL GetIids(uint32_t* iidCount, Il2CppGuid** iids) IL2CPP_OVERRIDE { Il2CppGuid* interfaceIds = il2cpp_codegen_marshal_allocate_array<Il2CppGuid>(2); interfaceIds[0] = IIterable_1_t3FD1FB01310262788B2A8868AA7395E023511050::IID; interfaceIds[1] = IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID; *iidCount = 2; *iids = interfaceIds; return IL2CPP_S_OK; } virtual il2cpp_hresult_t STDCALL GetRuntimeClassName(Il2CppHString* className) IL2CPP_OVERRIDE { return GetRuntimeClassNameImpl(className); } virtual il2cpp_hresult_t STDCALL GetTrustLevel(int32_t* trustLevel) IL2CPP_OVERRIDE { return ComObjectBase::GetTrustLevel(trustLevel); } virtual il2cpp_hresult_t STDCALL IIterable_1_First_mC1E90957AD904E68CE3F84D1EF22D5EFACE8C2D5(IIterator_1_tFF647CAD19D34FD0606CDD3425C431F82B94589C** comReturnValue) IL2CPP_OVERRIDE { return IIterable_1_First_mC1E90957AD904E68CE3F84D1EF22D5EFACE8C2D5_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue); } virtual il2cpp_hresult_t STDCALL IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7(IBindableIterator_tD7550F1144CFBE58090050457A2BE92B1CAEABBB** comReturnValue) IL2CPP_OVERRIDE { return IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue); } }; IL2CPP_EXTERN_C Il2CppIUnknown* CreateComCallableWrapperFor_ValueCollection_tC19268DA6D70C8D072C7093D8ABCA28DAD4C6E3C(RuntimeObject* obj) { void* memory = il2cpp::utils::Memory::Malloc(sizeof(ValueCollection_tC19268DA6D70C8D072C7093D8ABCA28DAD4C6E3C_ComCallableWrapper)); if (memory == NULL) { il2cpp_codegen_raise_out_of_memory_exception(); } return static_cast<Il2CppIManagedObjectHolder*>(new(memory) ValueCollection_tC19268DA6D70C8D072C7093D8ABCA28DAD4C6E3C_ComCallableWrapper(obj)); } // COM Callable Wrapper for System.Collections.ObjectModel.ReadOnlyDictionary`2/ValueCollection<UnityEngine.UI.Graphic,System.Int32> struct ValueCollection_t30AD529B9F75532560A194BC17C58F7FC6730EED_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<ValueCollection_t30AD529B9F75532560A194BC17C58F7FC6730EED_ComCallableWrapper>, IIterable_1_t3FD1FB01310262788B2A8868AA7395E023511050, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8 { inline ValueCollection_t30AD529B9F75532560A194BC17C58F7FC6730EED_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<ValueCollection_t30AD529B9F75532560A194BC17C58F7FC6730EED_ComCallableWrapper>(obj) {} virtual il2cpp_hresult_t STDCALL QueryInterface(const Il2CppGuid& iid, void** object) IL2CPP_OVERRIDE { if (::memcmp(&iid, &Il2CppIUnknown::IID, sizeof(Il2CppGuid)) == 0 || ::memcmp(&iid, &Il2CppIInspectable::IID, sizeof(Il2CppGuid)) == 0 || ::memcmp(&iid, &Il2CppIAgileObject::IID, sizeof(Il2CppGuid)) == 0) { *object = GetIdentity(); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIManagedObjectHolder::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIManagedObjectHolder*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &IIterable_1_t3FD1FB01310262788B2A8868AA7395E023511050::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<IIterable_1_t3FD1FB01310262788B2A8868AA7395E023511050*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIMarshal::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIMarshal*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIWeakReferenceSource::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIWeakReferenceSource*>(this); AddRefImpl(); return IL2CPP_S_OK; } *object = NULL; return IL2CPP_E_NOINTERFACE; } virtual uint32_t STDCALL AddRef() IL2CPP_OVERRIDE { return AddRefImpl(); } virtual uint32_t STDCALL Release() IL2CPP_OVERRIDE { return ReleaseImpl(); } virtual il2cpp_hresult_t STDCALL GetIids(uint32_t* iidCount, Il2CppGuid** iids) IL2CPP_OVERRIDE { Il2CppGuid* interfaceIds = il2cpp_codegen_marshal_allocate_array<Il2CppGuid>(2); interfaceIds[0] = IIterable_1_t3FD1FB01310262788B2A8868AA7395E023511050::IID; interfaceIds[1] = IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID; *iidCount = 2; *iids = interfaceIds; return IL2CPP_S_OK; } virtual il2cpp_hresult_t STDCALL GetRuntimeClassName(Il2CppHString* className) IL2CPP_OVERRIDE { return GetRuntimeClassNameImpl(className); } virtual il2cpp_hresult_t STDCALL GetTrustLevel(int32_t* trustLevel) IL2CPP_OVERRIDE { return ComObjectBase::GetTrustLevel(trustLevel); } virtual il2cpp_hresult_t STDCALL IIterable_1_First_mC1E90957AD904E68CE3F84D1EF22D5EFACE8C2D5(IIterator_1_tFF647CAD19D34FD0606CDD3425C431F82B94589C** comReturnValue) IL2CPP_OVERRIDE { return IIterable_1_First_mC1E90957AD904E68CE3F84D1EF22D5EFACE8C2D5_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue); } virtual il2cpp_hresult_t STDCALL IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7(IBindableIterator_tD7550F1144CFBE58090050457A2BE92B1CAEABBB** comReturnValue) IL2CPP_OVERRIDE { return IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue); } }; IL2CPP_EXTERN_C Il2CppIUnknown* CreateComCallableWrapperFor_ValueCollection_t30AD529B9F75532560A194BC17C58F7FC6730EED(RuntimeObject* obj) { void* memory = il2cpp::utils::Memory::Malloc(sizeof(ValueCollection_t30AD529B9F75532560A194BC17C58F7FC6730EED_ComCallableWrapper)); if (memory == NULL) { il2cpp_codegen_raise_out_of_memory_exception(); } return static_cast<Il2CppIManagedObjectHolder*>(new(memory) ValueCollection_t30AD529B9F75532560A194BC17C58F7FC6730EED_ComCallableWrapper(obj)); } // COM Callable Wrapper for System.Collections.ObjectModel.ReadOnlyDictionary`2/ValueCollection<System.Guid,System.Tuple`2<System.Guid,System.Int32>> struct ValueCollection_t6A5B0DF4354EAC00C0B894C9DA2A5EEC7D797A3F_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<ValueCollection_t6A5B0DF4354EAC00C0B894C9DA2A5EEC7D797A3F_ComCallableWrapper>, IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8 { inline ValueCollection_t6A5B0DF4354EAC00C0B894C9DA2A5EEC7D797A3F_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<ValueCollection_t6A5B0DF4354EAC00C0B894C9DA2A5EEC7D797A3F_ComCallableWrapper>(obj) {} virtual il2cpp_hresult_t STDCALL QueryInterface(const Il2CppGuid& iid, void** object) IL2CPP_OVERRIDE { if (::memcmp(&iid, &Il2CppIUnknown::IID, sizeof(Il2CppGuid)) == 0 || ::memcmp(&iid, &Il2CppIInspectable::IID, sizeof(Il2CppGuid)) == 0 || ::memcmp(&iid, &Il2CppIAgileObject::IID, sizeof(Il2CppGuid)) == 0) { *object = GetIdentity(); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIManagedObjectHolder::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIManagedObjectHolder*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIMarshal::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIMarshal*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIWeakReferenceSource::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIWeakReferenceSource*>(this); AddRefImpl(); return IL2CPP_S_OK; } *object = NULL; return IL2CPP_E_NOINTERFACE; } virtual uint32_t STDCALL AddRef() IL2CPP_OVERRIDE { return AddRefImpl(); } virtual uint32_t STDCALL Release() IL2CPP_OVERRIDE { return ReleaseImpl(); } virtual il2cpp_hresult_t STDCALL GetIids(uint32_t* iidCount, Il2CppGuid** iids) IL2CPP_OVERRIDE { Il2CppGuid* interfaceIds = il2cpp_codegen_marshal_allocate_array<Il2CppGuid>(2); interfaceIds[0] = IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4::IID; interfaceIds[1] = IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID; *iidCount = 2; *iids = interfaceIds; return IL2CPP_S_OK; } virtual il2cpp_hresult_t STDCALL GetRuntimeClassName(Il2CppHString* className) IL2CPP_OVERRIDE { return GetRuntimeClassNameImpl(className); } virtual il2cpp_hresult_t STDCALL GetTrustLevel(int32_t* trustLevel) IL2CPP_OVERRIDE { return ComObjectBase::GetTrustLevel(trustLevel); } virtual il2cpp_hresult_t STDCALL IIterable_1_First_m54AC7E778E98ED35C6B7AD98C35C325B8A3DF619(IIterator_1_tB1AB5AB497E87D6A397AA084D3D3D6B8D211022C** comReturnValue) IL2CPP_OVERRIDE { return IIterable_1_First_m54AC7E778E98ED35C6B7AD98C35C325B8A3DF619_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue); } virtual il2cpp_hresult_t STDCALL IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7(IBindableIterator_tD7550F1144CFBE58090050457A2BE92B1CAEABBB** comReturnValue) IL2CPP_OVERRIDE { return IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue); } }; IL2CPP_EXTERN_C Il2CppIUnknown* CreateComCallableWrapperFor_ValueCollection_t6A5B0DF4354EAC00C0B894C9DA2A5EEC7D797A3F(RuntimeObject* obj) { void* memory = il2cpp::utils::Memory::Malloc(sizeof(ValueCollection_t6A5B0DF4354EAC00C0B894C9DA2A5EEC7D797A3F_ComCallableWrapper)); if (memory == NULL) { il2cpp_codegen_raise_out_of_memory_exception(); } return static_cast<Il2CppIManagedObjectHolder*>(new(memory) ValueCollection_t6A5B0DF4354EAC00C0B894C9DA2A5EEC7D797A3F_ComCallableWrapper(obj)); } // COM Callable Wrapper for System.Collections.ObjectModel.ReadOnlyDictionary`2/ValueCollection<System.Guid,System.Int32> struct ValueCollection_t36A365EF75A9898A232CCFD4C304FC50183E03D6_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<ValueCollection_t36A365EF75A9898A232CCFD4C304FC50183E03D6_ComCallableWrapper>, IIterable_1_t3FD1FB01310262788B2A8868AA7395E023511050, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8 { inline ValueCollection_t36A365EF75A9898A232CCFD4C304FC50183E03D6_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<ValueCollection_t36A365EF75A9898A232CCFD4C304FC50183E03D6_ComCallableWrapper>(obj) {} virtual il2cpp_hresult_t STDCALL QueryInterface(const Il2CppGuid& iid, void** object) IL2CPP_OVERRIDE { if (::memcmp(&iid, &Il2CppIUnknown::IID, sizeof(Il2CppGuid)) == 0 || ::memcmp(&iid, &Il2CppIInspectable::IID, sizeof(Il2CppGuid)) == 0 || ::memcmp(&iid, &Il2CppIAgileObject::IID, sizeof(Il2CppGuid)) == 0) { *object = GetIdentity(); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIManagedObjectHolder::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIManagedObjectHolder*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &IIterable_1_t3FD1FB01310262788B2A8868AA7395E023511050::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<IIterable_1_t3FD1FB01310262788B2A8868AA7395E023511050*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIMarshal::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIMarshal*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIWeakReferenceSource::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIWeakReferenceSource*>(this); AddRefImpl(); return IL2CPP_S_OK; } *object = NULL; return IL2CPP_E_NOINTERFACE; } virtual uint32_t STDCALL AddRef() IL2CPP_OVERRIDE { return AddRefImpl(); } virtual uint32_t STDCALL Release() IL2CPP_OVERRIDE { return ReleaseImpl(); } virtual il2cpp_hresult_t STDCALL GetIids(uint32_t* iidCount, Il2CppGuid** iids) IL2CPP_OVERRIDE { Il2CppGuid* interfaceIds = il2cpp_codegen_marshal_allocate_array<Il2CppGuid>(2); interfaceIds[0] = IIterable_1_t3FD1FB01310262788B2A8868AA7395E023511050::IID; interfaceIds[1] = IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID; *iidCount = 2; *iids = interfaceIds; return IL2CPP_S_OK; } virtual il2cpp_hresult_t STDCALL GetRuntimeClassName(Il2CppHString* className) IL2CPP_OVERRIDE { return GetRuntimeClassNameImpl(className); } virtual il2cpp_hresult_t STDCALL GetTrustLevel(int32_t* trustLevel) IL2CPP_OVERRIDE { return ComObjectBase::GetTrustLevel(trustLevel); } virtual il2cpp_hresult_t STDCALL IIterable_1_First_mC1E90957AD904E68CE3F84D1EF22D5EFACE8C2D5(IIterator_1_tFF647CAD19D34FD0606CDD3425C431F82B94589C** comReturnValue) IL2CPP_OVERRIDE { return IIterable_1_First_mC1E90957AD904E68CE3F84D1EF22D5EFACE8C2D5_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue); } virtual il2cpp_hresult_t STDCALL IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7(IBindableIterator_tD7550F1144CFBE58090050457A2BE92B1CAEABBB** comReturnValue) IL2CPP_OVERRIDE { return IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue); } }; IL2CPP_EXTERN_C Il2CppIUnknown* CreateComCallableWrapperFor_ValueCollection_t36A365EF75A9898A232CCFD4C304FC50183E03D6(RuntimeObject* obj) { void* memory = il2cpp::utils::Memory::Malloc(sizeof(ValueCollection_t36A365EF75A9898A232CCFD4C304FC50183E03D6_ComCallableWrapper)); if (memory == NULL) { il2cpp_codegen_raise_out_of_memory_exception(); } return static_cast<Il2CppIManagedObjectHolder*>(new(memory) ValueCollection_t36A365EF75A9898A232CCFD4C304FC50183E03D6_ComCallableWrapper(obj)); } // COM Callable Wrapper for System.Collections.Generic.Dictionary`2/ValueCollection<Microsoft.MixedReality.Toolkit.Utilities.Handedness,Microsoft.MixedReality.Toolkit.Input.BaseController> struct ValueCollection_tAB3D275422BBD679742D499500068288F32F743C_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<ValueCollection_tAB3D275422BBD679742D499500068288F32F743C_ComCallableWrapper>, IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8 { inline ValueCollection_tAB3D275422BBD679742D499500068288F32F743C_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<ValueCollection_tAB3D275422BBD679742D499500068288F32F743C_ComCallableWrapper>(obj) {} virtual il2cpp_hresult_t STDCALL QueryInterface(const Il2CppGuid& iid, void** object) IL2CPP_OVERRIDE { if (::memcmp(&iid, &Il2CppIUnknown::IID, sizeof(Il2CppGuid)) == 0 || ::memcmp(&iid, &Il2CppIInspectable::IID, sizeof(Il2CppGuid)) == 0 || ::memcmp(&iid, &Il2CppIAgileObject::IID, sizeof(Il2CppGuid)) == 0) { *object = GetIdentity(); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIManagedObjectHolder::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIManagedObjectHolder*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIMarshal::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIMarshal*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIWeakReferenceSource::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIWeakReferenceSource*>(this); AddRefImpl(); return IL2CPP_S_OK; } *object = NULL; return IL2CPP_E_NOINTERFACE; } virtual uint32_t STDCALL AddRef() IL2CPP_OVERRIDE { return AddRefImpl(); } virtual uint32_t STDCALL Release() IL2CPP_OVERRIDE { return ReleaseImpl(); } virtual il2cpp_hresult_t STDCALL GetIids(uint32_t* iidCount, Il2CppGuid** iids) IL2CPP_OVERRIDE { Il2CppGuid* interfaceIds = il2cpp_codegen_marshal_allocate_array<Il2CppGuid>(2); interfaceIds[0] = IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4::IID; interfaceIds[1] = IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID; *iidCount = 2; *iids = interfaceIds; return IL2CPP_S_OK; } virtual il2cpp_hresult_t STDCALL GetRuntimeClassName(Il2CppHString* className) IL2CPP_OVERRIDE { return GetRuntimeClassNameImpl(className); } virtual il2cpp_hresult_t STDCALL GetTrustLevel(int32_t* trustLevel) IL2CPP_OVERRIDE { return ComObjectBase::GetTrustLevel(trustLevel); } virtual il2cpp_hresult_t STDCALL IIterable_1_First_m54AC7E778E98ED35C6B7AD98C35C325B8A3DF619(IIterator_1_tB1AB5AB497E87D6A397AA084D3D3D6B8D211022C** comReturnValue) IL2CPP_OVERRIDE { return IIterable_1_First_m54AC7E778E98ED35C6B7AD98C35C325B8A3DF619_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue); } virtual il2cpp_hresult_t STDCALL IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7(IBindableIterator_tD7550F1144CFBE58090050457A2BE92B1CAEABBB** comReturnValue) IL2CPP_OVERRIDE { return IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue); } }; IL2CPP_EXTERN_C Il2CppIUnknown* CreateComCallableWrapperFor_ValueCollection_tAB3D275422BBD679742D499500068288F32F743C(RuntimeObject* obj) { void* memory = il2cpp::utils::Memory::Malloc(sizeof(ValueCollection_tAB3D275422BBD679742D499500068288F32F743C_ComCallableWrapper)); if (memory == NULL) { il2cpp_codegen_raise_out_of_memory_exception(); } return static_cast<Il2CppIManagedObjectHolder*>(new(memory) ValueCollection_tAB3D275422BBD679742D499500068288F32F743C_ComCallableWrapper(obj)); } // COM Callable Wrapper for System.Collections.ObjectModel.ReadOnlyDictionary`2/ValueCollection<Microsoft.MixedReality.Toolkit.Utilities.Handedness,Microsoft.MixedReality.Toolkit.Input.BaseController> struct ValueCollection_tE6BEF3F24A1C7F1455A49BF00CA6076DEB5E2498_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<ValueCollection_tE6BEF3F24A1C7F1455A49BF00CA6076DEB5E2498_ComCallableWrapper>, IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8 { inline ValueCollection_tE6BEF3F24A1C7F1455A49BF00CA6076DEB5E2498_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<ValueCollection_tE6BEF3F24A1C7F1455A49BF00CA6076DEB5E2498_ComCallableWrapper>(obj) {} virtual il2cpp_hresult_t STDCALL QueryInterface(const Il2CppGuid& iid, void** object) IL2CPP_OVERRIDE { if (::memcmp(&iid, &Il2CppIUnknown::IID, sizeof(Il2CppGuid)) == 0 || ::memcmp(&iid, &Il2CppIInspectable::IID, sizeof(Il2CppGuid)) == 0 || ::memcmp(&iid, &Il2CppIAgileObject::IID, sizeof(Il2CppGuid)) == 0) { *object = GetIdentity(); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIManagedObjectHolder::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIManagedObjectHolder*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIMarshal::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIMarshal*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIWeakReferenceSource::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIWeakReferenceSource*>(this); AddRefImpl(); return IL2CPP_S_OK; } *object = NULL; return IL2CPP_E_NOINTERFACE; } virtual uint32_t STDCALL AddRef() IL2CPP_OVERRIDE { return AddRefImpl(); } virtual uint32_t STDCALL Release() IL2CPP_OVERRIDE { return ReleaseImpl(); } virtual il2cpp_hresult_t STDCALL GetIids(uint32_t* iidCount, Il2CppGuid** iids) IL2CPP_OVERRIDE { Il2CppGuid* interfaceIds = il2cpp_codegen_marshal_allocate_array<Il2CppGuid>(2); interfaceIds[0] = IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4::IID; interfaceIds[1] = IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID; *iidCount = 2; *iids = interfaceIds; return IL2CPP_S_OK; } virtual il2cpp_hresult_t STDCALL GetRuntimeClassName(Il2CppHString* className) IL2CPP_OVERRIDE { return GetRuntimeClassNameImpl(className); } virtual il2cpp_hresult_t STDCALL GetTrustLevel(int32_t* trustLevel) IL2CPP_OVERRIDE { return ComObjectBase::GetTrustLevel(trustLevel); } virtual il2cpp_hresult_t STDCALL IIterable_1_First_m54AC7E778E98ED35C6B7AD98C35C325B8A3DF619(IIterator_1_tB1AB5AB497E87D6A397AA084D3D3D6B8D211022C** comReturnValue) IL2CPP_OVERRIDE { return IIterable_1_First_m54AC7E778E98ED35C6B7AD98C35C325B8A3DF619_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue); } virtual il2cpp_hresult_t STDCALL IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7(IBindableIterator_tD7550F1144CFBE58090050457A2BE92B1CAEABBB** comReturnValue) IL2CPP_OVERRIDE { return IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue); } }; IL2CPP_EXTERN_C Il2CppIUnknown* CreateComCallableWrapperFor_ValueCollection_tE6BEF3F24A1C7F1455A49BF00CA6076DEB5E2498(RuntimeObject* obj) { void* memory = il2cpp::utils::Memory::Malloc(sizeof(ValueCollection_tE6BEF3F24A1C7F1455A49BF00CA6076DEB5E2498_ComCallableWrapper)); if (memory == NULL) { il2cpp_codegen_raise_out_of_memory_exception(); } return static_cast<Il2CppIManagedObjectHolder*>(new(memory) ValueCollection_tE6BEF3F24A1C7F1455A49BF00CA6076DEB5E2498_ComCallableWrapper(obj)); } // COM Callable Wrapper for System.Collections.Generic.Dictionary`2/ValueCollection<Microsoft.MixedReality.Toolkit.Utilities.Handedness,UnityEngine.Bounds> struct ValueCollection_t23BA514F384D3800CEEF013DC82F77AB90723B77_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<ValueCollection_t23BA514F384D3800CEEF013DC82F77AB90723B77_ComCallableWrapper>, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8 { inline ValueCollection_t23BA514F384D3800CEEF013DC82F77AB90723B77_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<ValueCollection_t23BA514F384D3800CEEF013DC82F77AB90723B77_ComCallableWrapper>(obj) {} virtual il2cpp_hresult_t STDCALL QueryInterface(const Il2CppGuid& iid, void** object) IL2CPP_OVERRIDE { if (::memcmp(&iid, &Il2CppIUnknown::IID, sizeof(Il2CppGuid)) == 0 || ::memcmp(&iid, &Il2CppIInspectable::IID, sizeof(Il2CppGuid)) == 0 || ::memcmp(&iid, &Il2CppIAgileObject::IID, sizeof(Il2CppGuid)) == 0) { *object = GetIdentity(); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIManagedObjectHolder::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIManagedObjectHolder*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIMarshal::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIMarshal*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIWeakReferenceSource::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIWeakReferenceSource*>(this); AddRefImpl(); return IL2CPP_S_OK; } *object = NULL; return IL2CPP_E_NOINTERFACE; } virtual uint32_t STDCALL AddRef() IL2CPP_OVERRIDE { return AddRefImpl(); } virtual uint32_t STDCALL Release() IL2CPP_OVERRIDE { return ReleaseImpl(); } virtual il2cpp_hresult_t STDCALL GetIids(uint32_t* iidCount, Il2CppGuid** iids) IL2CPP_OVERRIDE { Il2CppGuid* interfaceIds = il2cpp_codegen_marshal_allocate_array<Il2CppGuid>(1); interfaceIds[0] = IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID; *iidCount = 1; *iids = interfaceIds; return IL2CPP_S_OK; } virtual il2cpp_hresult_t STDCALL GetRuntimeClassName(Il2CppHString* className) IL2CPP_OVERRIDE { return GetRuntimeClassNameImpl(className); } virtual il2cpp_hresult_t STDCALL GetTrustLevel(int32_t* trustLevel) IL2CPP_OVERRIDE { return ComObjectBase::GetTrustLevel(trustLevel); } virtual il2cpp_hresult_t STDCALL IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7(IBindableIterator_tD7550F1144CFBE58090050457A2BE92B1CAEABBB** comReturnValue) IL2CPP_OVERRIDE { return IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue); } }; IL2CPP_EXTERN_C Il2CppIUnknown* CreateComCallableWrapperFor_ValueCollection_t23BA514F384D3800CEEF013DC82F77AB90723B77(RuntimeObject* obj) { void* memory = il2cpp::utils::Memory::Malloc(sizeof(ValueCollection_t23BA514F384D3800CEEF013DC82F77AB90723B77_ComCallableWrapper)); if (memory == NULL) { il2cpp_codegen_raise_out_of_memory_exception(); } return static_cast<Il2CppIManagedObjectHolder*>(new(memory) ValueCollection_t23BA514F384D3800CEEF013DC82F77AB90723B77_ComCallableWrapper(obj)); } // COM Callable Wrapper for System.Collections.ObjectModel.ReadOnlyDictionary`2/ValueCollection<Microsoft.MixedReality.Toolkit.Utilities.Handedness,UnityEngine.Bounds> struct ValueCollection_t539BC11F236247C9CC30728B3B96811F4F862C2D_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<ValueCollection_t539BC11F236247C9CC30728B3B96811F4F862C2D_ComCallableWrapper>, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8 { inline ValueCollection_t539BC11F236247C9CC30728B3B96811F4F862C2D_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<ValueCollection_t539BC11F236247C9CC30728B3B96811F4F862C2D_ComCallableWrapper>(obj) {} virtual il2cpp_hresult_t STDCALL QueryInterface(const Il2CppGuid& iid, void** object) IL2CPP_OVERRIDE { if (::memcmp(&iid, &Il2CppIUnknown::IID, sizeof(Il2CppGuid)) == 0 || ::memcmp(&iid, &Il2CppIInspectable::IID, sizeof(Il2CppGuid)) == 0 || ::memcmp(&iid, &Il2CppIAgileObject::IID, sizeof(Il2CppGuid)) == 0) { *object = GetIdentity(); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIManagedObjectHolder::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIManagedObjectHolder*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIMarshal::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIMarshal*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIWeakReferenceSource::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIWeakReferenceSource*>(this); AddRefImpl(); return IL2CPP_S_OK; } *object = NULL; return IL2CPP_E_NOINTERFACE; } virtual uint32_t STDCALL AddRef() IL2CPP_OVERRIDE { return AddRefImpl(); } virtual uint32_t STDCALL Release() IL2CPP_OVERRIDE { return ReleaseImpl(); } virtual il2cpp_hresult_t STDCALL GetIids(uint32_t* iidCount, Il2CppGuid** iids) IL2CPP_OVERRIDE { Il2CppGuid* interfaceIds = il2cpp_codegen_marshal_allocate_array<Il2CppGuid>(1); interfaceIds[0] = IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID; *iidCount = 1; *iids = interfaceIds; return IL2CPP_S_OK; } virtual il2cpp_hresult_t STDCALL GetRuntimeClassName(Il2CppHString* className) IL2CPP_OVERRIDE { return GetRuntimeClassNameImpl(className); } virtual il2cpp_hresult_t STDCALL GetTrustLevel(int32_t* trustLevel) IL2CPP_OVERRIDE { return ComObjectBase::GetTrustLevel(trustLevel); } virtual il2cpp_hresult_t STDCALL IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7(IBindableIterator_tD7550F1144CFBE58090050457A2BE92B1CAEABBB** comReturnValue) IL2CPP_OVERRIDE { return IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue); } }; IL2CPP_EXTERN_C Il2CppIUnknown* CreateComCallableWrapperFor_ValueCollection_t539BC11F236247C9CC30728B3B96811F4F862C2D(RuntimeObject* obj) { void* memory = il2cpp::utils::Memory::Malloc(sizeof(ValueCollection_t539BC11F236247C9CC30728B3B96811F4F862C2D_ComCallableWrapper)); if (memory == NULL) { il2cpp_codegen_raise_out_of_memory_exception(); } return static_cast<Il2CppIManagedObjectHolder*>(new(memory) ValueCollection_t539BC11F236247C9CC30728B3B96811F4F862C2D_ComCallableWrapper(obj)); } // COM Callable Wrapper for System.Collections.Generic.Dictionary`2/ValueCollection<Microsoft.MixedReality.Toolkit.Utilities.Handedness,UnityEngine.Matrix4x4> struct ValueCollection_tB75357A46ECE3ECE3468011101EB523C748B913B_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<ValueCollection_tB75357A46ECE3ECE3468011101EB523C748B913B_ComCallableWrapper>, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8 { inline ValueCollection_tB75357A46ECE3ECE3468011101EB523C748B913B_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<ValueCollection_tB75357A46ECE3ECE3468011101EB523C748B913B_ComCallableWrapper>(obj) {} virtual il2cpp_hresult_t STDCALL QueryInterface(const Il2CppGuid& iid, void** object) IL2CPP_OVERRIDE { if (::memcmp(&iid, &Il2CppIUnknown::IID, sizeof(Il2CppGuid)) == 0 || ::memcmp(&iid, &Il2CppIInspectable::IID, sizeof(Il2CppGuid)) == 0 || ::memcmp(&iid, &Il2CppIAgileObject::IID, sizeof(Il2CppGuid)) == 0) { *object = GetIdentity(); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIManagedObjectHolder::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIManagedObjectHolder*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIMarshal::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIMarshal*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIWeakReferenceSource::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIWeakReferenceSource*>(this); AddRefImpl(); return IL2CPP_S_OK; } *object = NULL; return IL2CPP_E_NOINTERFACE; } virtual uint32_t STDCALL AddRef() IL2CPP_OVERRIDE { return AddRefImpl(); } virtual uint32_t STDCALL Release() IL2CPP_OVERRIDE { return ReleaseImpl(); } virtual il2cpp_hresult_t STDCALL GetIids(uint32_t* iidCount, Il2CppGuid** iids) IL2CPP_OVERRIDE { Il2CppGuid* interfaceIds = il2cpp_codegen_marshal_allocate_array<Il2CppGuid>(1); interfaceIds[0] = IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID; *iidCount = 1; *iids = interfaceIds; return IL2CPP_S_OK; } virtual il2cpp_hresult_t STDCALL GetRuntimeClassName(Il2CppHString* className) IL2CPP_OVERRIDE { return GetRuntimeClassNameImpl(className); } virtual il2cpp_hresult_t STDCALL GetTrustLevel(int32_t* trustLevel) IL2CPP_OVERRIDE { return ComObjectBase::GetTrustLevel(trustLevel); } virtual il2cpp_hresult_t STDCALL IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7(IBindableIterator_tD7550F1144CFBE58090050457A2BE92B1CAEABBB** comReturnValue) IL2CPP_OVERRIDE { return IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue); } }; IL2CPP_EXTERN_C Il2CppIUnknown* CreateComCallableWrapperFor_ValueCollection_tB75357A46ECE3ECE3468011101EB523C748B913B(RuntimeObject* obj) { void* memory = il2cpp::utils::Memory::Malloc(sizeof(ValueCollection_tB75357A46ECE3ECE3468011101EB523C748B913B_ComCallableWrapper)); if (memory == NULL) { il2cpp_codegen_raise_out_of_memory_exception(); } return static_cast<Il2CppIManagedObjectHolder*>(new(memory) ValueCollection_tB75357A46ECE3ECE3468011101EB523C748B913B_ComCallableWrapper(obj)); } // COM Callable Wrapper for System.Collections.ObjectModel.ReadOnlyDictionary`2/ValueCollection<Microsoft.MixedReality.Toolkit.Utilities.Handedness,UnityEngine.Matrix4x4> struct ValueCollection_tE4C718B5DB901E5EDD5767145ABB2CE15A7925D4_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<ValueCollection_tE4C718B5DB901E5EDD5767145ABB2CE15A7925D4_ComCallableWrapper>, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8 { inline ValueCollection_tE4C718B5DB901E5EDD5767145ABB2CE15A7925D4_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<ValueCollection_tE4C718B5DB901E5EDD5767145ABB2CE15A7925D4_ComCallableWrapper>(obj) {} virtual il2cpp_hresult_t STDCALL QueryInterface(const Il2CppGuid& iid, void** object) IL2CPP_OVERRIDE { if (::memcmp(&iid, &Il2CppIUnknown::IID, sizeof(Il2CppGuid)) == 0 || ::memcmp(&iid, &Il2CppIInspectable::IID, sizeof(Il2CppGuid)) == 0 || ::memcmp(&iid, &Il2CppIAgileObject::IID, sizeof(Il2CppGuid)) == 0) { *object = GetIdentity(); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIManagedObjectHolder::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIManagedObjectHolder*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIMarshal::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIMarshal*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIWeakReferenceSource::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIWeakReferenceSource*>(this); AddRefImpl(); return IL2CPP_S_OK; } *object = NULL; return IL2CPP_E_NOINTERFACE; } virtual uint32_t STDCALL AddRef() IL2CPP_OVERRIDE { return AddRefImpl(); } virtual uint32_t STDCALL Release() IL2CPP_OVERRIDE { return ReleaseImpl(); } virtual il2cpp_hresult_t STDCALL GetIids(uint32_t* iidCount, Il2CppGuid** iids) IL2CPP_OVERRIDE { Il2CppGuid* interfaceIds = il2cpp_codegen_marshal_allocate_array<Il2CppGuid>(1); interfaceIds[0] = IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID; *iidCount = 1; *iids = interfaceIds; return IL2CPP_S_OK; } virtual il2cpp_hresult_t STDCALL GetRuntimeClassName(Il2CppHString* className) IL2CPP_OVERRIDE { return GetRuntimeClassNameImpl(className); } virtual il2cpp_hresult_t STDCALL GetTrustLevel(int32_t* trustLevel) IL2CPP_OVERRIDE { return ComObjectBase::GetTrustLevel(trustLevel); } virtual il2cpp_hresult_t STDCALL IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7(IBindableIterator_tD7550F1144CFBE58090050457A2BE92B1CAEABBB** comReturnValue) IL2CPP_OVERRIDE { return IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue); } }; IL2CPP_EXTERN_C Il2CppIUnknown* CreateComCallableWrapperFor_ValueCollection_tE4C718B5DB901E5EDD5767145ABB2CE15A7925D4(RuntimeObject* obj) { void* memory = il2cpp::utils::Memory::Malloc(sizeof(ValueCollection_tE4C718B5DB901E5EDD5767145ABB2CE15A7925D4_ComCallableWrapper)); if (memory == NULL) { il2cpp_codegen_raise_out_of_memory_exception(); } return static_cast<Il2CppIManagedObjectHolder*>(new(memory) ValueCollection_tE4C718B5DB901E5EDD5767145ABB2CE15A7925D4_ComCallableWrapper(obj)); } // COM Callable Wrapper for System.Collections.Generic.Dictionary`2/ValueCollection<System.Threading.IAsyncLocal,System.Object> struct ValueCollection_tF61B113C13A26D63D35C2C68CB0E099ABA87C9AA_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<ValueCollection_tF61B113C13A26D63D35C2C68CB0E099ABA87C9AA_ComCallableWrapper>, IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8 { inline ValueCollection_tF61B113C13A26D63D35C2C68CB0E099ABA87C9AA_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<ValueCollection_tF61B113C13A26D63D35C2C68CB0E099ABA87C9AA_ComCallableWrapper>(obj) {} virtual il2cpp_hresult_t STDCALL QueryInterface(const Il2CppGuid& iid, void** object) IL2CPP_OVERRIDE { if (::memcmp(&iid, &Il2CppIUnknown::IID, sizeof(Il2CppGuid)) == 0 || ::memcmp(&iid, &Il2CppIInspectable::IID, sizeof(Il2CppGuid)) == 0 || ::memcmp(&iid, &Il2CppIAgileObject::IID, sizeof(Il2CppGuid)) == 0) { *object = GetIdentity(); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIManagedObjectHolder::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIManagedObjectHolder*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIMarshal::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIMarshal*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIWeakReferenceSource::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIWeakReferenceSource*>(this); AddRefImpl(); return IL2CPP_S_OK; } *object = NULL; return IL2CPP_E_NOINTERFACE; } virtual uint32_t STDCALL AddRef() IL2CPP_OVERRIDE { return AddRefImpl(); } virtual uint32_t STDCALL Release() IL2CPP_OVERRIDE { return ReleaseImpl(); } virtual il2cpp_hresult_t STDCALL GetIids(uint32_t* iidCount, Il2CppGuid** iids) IL2CPP_OVERRIDE { Il2CppGuid* interfaceIds = il2cpp_codegen_marshal_allocate_array<Il2CppGuid>(2); interfaceIds[0] = IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4::IID; interfaceIds[1] = IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID; *iidCount = 2; *iids = interfaceIds; return IL2CPP_S_OK; } virtual il2cpp_hresult_t STDCALL GetRuntimeClassName(Il2CppHString* className) IL2CPP_OVERRIDE { return GetRuntimeClassNameImpl(className); } virtual il2cpp_hresult_t STDCALL GetTrustLevel(int32_t* trustLevel) IL2CPP_OVERRIDE { return ComObjectBase::GetTrustLevel(trustLevel); } virtual il2cpp_hresult_t STDCALL IIterable_1_First_m54AC7E778E98ED35C6B7AD98C35C325B8A3DF619(IIterator_1_tB1AB5AB497E87D6A397AA084D3D3D6B8D211022C** comReturnValue) IL2CPP_OVERRIDE { return IIterable_1_First_m54AC7E778E98ED35C6B7AD98C35C325B8A3DF619_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue); } virtual il2cpp_hresult_t STDCALL IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7(IBindableIterator_tD7550F1144CFBE58090050457A2BE92B1CAEABBB** comReturnValue) IL2CPP_OVERRIDE { return IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue); } }; IL2CPP_EXTERN_C Il2CppIUnknown* CreateComCallableWrapperFor_ValueCollection_tF61B113C13A26D63D35C2C68CB0E099ABA87C9AA(RuntimeObject* obj) { void* memory = il2cpp::utils::Memory::Malloc(sizeof(ValueCollection_tF61B113C13A26D63D35C2C68CB0E099ABA87C9AA_ComCallableWrapper)); if (memory == NULL) { il2cpp_codegen_raise_out_of_memory_exception(); } return static_cast<Il2CppIManagedObjectHolder*>(new(memory) ValueCollection_tF61B113C13A26D63D35C2C68CB0E099ABA87C9AA_ComCallableWrapper(obj)); } // COM Callable Wrapper for System.Collections.ObjectModel.ReadOnlyDictionary`2/ValueCollection<System.Threading.IAsyncLocal,System.Object> struct ValueCollection_t829D1A2C21BCE93FBCBE9E029CCC77E24419ADC3_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<ValueCollection_t829D1A2C21BCE93FBCBE9E029CCC77E24419ADC3_ComCallableWrapper>, IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8 { inline ValueCollection_t829D1A2C21BCE93FBCBE9E029CCC77E24419ADC3_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<ValueCollection_t829D1A2C21BCE93FBCBE9E029CCC77E24419ADC3_ComCallableWrapper>(obj) {} virtual il2cpp_hresult_t STDCALL QueryInterface(const Il2CppGuid& iid, void** object) IL2CPP_OVERRIDE { if (::memcmp(&iid, &Il2CppIUnknown::IID, sizeof(Il2CppGuid)) == 0 || ::memcmp(&iid, &Il2CppIInspectable::IID, sizeof(Il2CppGuid)) == 0 || ::memcmp(&iid, &Il2CppIAgileObject::IID, sizeof(Il2CppGuid)) == 0) { *object = GetIdentity(); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIManagedObjectHolder::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIManagedObjectHolder*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIMarshal::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIMarshal*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIWeakReferenceSource::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIWeakReferenceSource*>(this); AddRefImpl(); return IL2CPP_S_OK; } *object = NULL; return IL2CPP_E_NOINTERFACE; } virtual uint32_t STDCALL AddRef() IL2CPP_OVERRIDE { return AddRefImpl(); } virtual uint32_t STDCALL Release() IL2CPP_OVERRIDE { return ReleaseImpl(); } virtual il2cpp_hresult_t STDCALL GetIids(uint32_t* iidCount, Il2CppGuid** iids) IL2CPP_OVERRIDE { Il2CppGuid* interfaceIds = il2cpp_codegen_marshal_allocate_array<Il2CppGuid>(2); interfaceIds[0] = IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4::IID; interfaceIds[1] = IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID; *iidCount = 2; *iids = interfaceIds; return IL2CPP_S_OK; } virtual il2cpp_hresult_t STDCALL GetRuntimeClassName(Il2CppHString* className) IL2CPP_OVERRIDE { return GetRuntimeClassNameImpl(className); } virtual il2cpp_hresult_t STDCALL GetTrustLevel(int32_t* trustLevel) IL2CPP_OVERRIDE { return ComObjectBase::GetTrustLevel(trustLevel); } virtual il2cpp_hresult_t STDCALL IIterable_1_First_m54AC7E778E98ED35C6B7AD98C35C325B8A3DF619(IIterator_1_tB1AB5AB497E87D6A397AA084D3D3D6B8D211022C** comReturnValue) IL2CPP_OVERRIDE { return IIterable_1_First_m54AC7E778E98ED35C6B7AD98C35C325B8A3DF619_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue); } virtual il2cpp_hresult_t STDCALL IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7(IBindableIterator_tD7550F1144CFBE58090050457A2BE92B1CAEABBB** comReturnValue) IL2CPP_OVERRIDE { return IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue); } }; IL2CPP_EXTERN_C Il2CppIUnknown* CreateComCallableWrapperFor_ValueCollection_t829D1A2C21BCE93FBCBE9E029CCC77E24419ADC3(RuntimeObject* obj) { void* memory = il2cpp::utils::Memory::Malloc(sizeof(ValueCollection_t829D1A2C21BCE93FBCBE9E029CCC77E24419ADC3_ComCallableWrapper)); if (memory == NULL) { il2cpp_codegen_raise_out_of_memory_exception(); } return static_cast<Il2CppIManagedObjectHolder*>(new(memory) ValueCollection_t829D1A2C21BCE93FBCBE9E029CCC77E24419ADC3_ComCallableWrapper(obj)); } // COM Callable Wrapper for System.Collections.Generic.Dictionary`2/ValueCollection<UnityEngine.UI.ICanvasElement,System.Int32> struct ValueCollection_tBFDE9B9EC6D8A4DD5D5E4EDCB8D0C3FE7C902888_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<ValueCollection_tBFDE9B9EC6D8A4DD5D5E4EDCB8D0C3FE7C902888_ComCallableWrapper>, IIterable_1_t3FD1FB01310262788B2A8868AA7395E023511050, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8 { inline ValueCollection_tBFDE9B9EC6D8A4DD5D5E4EDCB8D0C3FE7C902888_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<ValueCollection_tBFDE9B9EC6D8A4DD5D5E4EDCB8D0C3FE7C902888_ComCallableWrapper>(obj) {} virtual il2cpp_hresult_t STDCALL QueryInterface(const Il2CppGuid& iid, void** object) IL2CPP_OVERRIDE { if (::memcmp(&iid, &Il2CppIUnknown::IID, sizeof(Il2CppGuid)) == 0 || ::memcmp(&iid, &Il2CppIInspectable::IID, sizeof(Il2CppGuid)) == 0 || ::memcmp(&iid, &Il2CppIAgileObject::IID, sizeof(Il2CppGuid)) == 0) { *object = GetIdentity(); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIManagedObjectHolder::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIManagedObjectHolder*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &IIterable_1_t3FD1FB01310262788B2A8868AA7395E023511050::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<IIterable_1_t3FD1FB01310262788B2A8868AA7395E023511050*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIMarshal::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIMarshal*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIWeakReferenceSource::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIWeakReferenceSource*>(this); AddRefImpl(); return IL2CPP_S_OK; } *object = NULL; return IL2CPP_E_NOINTERFACE; } virtual uint32_t STDCALL AddRef() IL2CPP_OVERRIDE { return AddRefImpl(); } virtual uint32_t STDCALL Release() IL2CPP_OVERRIDE { return ReleaseImpl(); } virtual il2cpp_hresult_t STDCALL GetIids(uint32_t* iidCount, Il2CppGuid** iids) IL2CPP_OVERRIDE { Il2CppGuid* interfaceIds = il2cpp_codegen_marshal_allocate_array<Il2CppGuid>(2); interfaceIds[0] = IIterable_1_t3FD1FB01310262788B2A8868AA7395E023511050::IID; interfaceIds[1] = IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID; *iidCount = 2; *iids = interfaceIds; return IL2CPP_S_OK; } virtual il2cpp_hresult_t STDCALL GetRuntimeClassName(Il2CppHString* className) IL2CPP_OVERRIDE { return GetRuntimeClassNameImpl(className); } virtual il2cpp_hresult_t STDCALL GetTrustLevel(int32_t* trustLevel) IL2CPP_OVERRIDE { return ComObjectBase::GetTrustLevel(trustLevel); } virtual il2cpp_hresult_t STDCALL IIterable_1_First_mC1E90957AD904E68CE3F84D1EF22D5EFACE8C2D5(IIterator_1_tFF647CAD19D34FD0606CDD3425C431F82B94589C** comReturnValue) IL2CPP_OVERRIDE { return IIterable_1_First_mC1E90957AD904E68CE3F84D1EF22D5EFACE8C2D5_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue); } virtual il2cpp_hresult_t STDCALL IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7(IBindableIterator_tD7550F1144CFBE58090050457A2BE92B1CAEABBB** comReturnValue) IL2CPP_OVERRIDE { return IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue); } }; IL2CPP_EXTERN_C Il2CppIUnknown* CreateComCallableWrapperFor_ValueCollection_tBFDE9B9EC6D8A4DD5D5E4EDCB8D0C3FE7C902888(RuntimeObject* obj) { void* memory = il2cpp::utils::Memory::Malloc(sizeof(ValueCollection_tBFDE9B9EC6D8A4DD5D5E4EDCB8D0C3FE7C902888_ComCallableWrapper)); if (memory == NULL) { il2cpp_codegen_raise_out_of_memory_exception(); } return static_cast<Il2CppIManagedObjectHolder*>(new(memory) ValueCollection_tBFDE9B9EC6D8A4DD5D5E4EDCB8D0C3FE7C902888_ComCallableWrapper(obj)); } // COM Callable Wrapper for System.Collections.ObjectModel.ReadOnlyDictionary`2/ValueCollection<UnityEngine.UI.ICanvasElement,System.Int32> struct ValueCollection_tDFE3548B5884867CBB3AD8597EAF0B6F4F6E80D8_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<ValueCollection_tDFE3548B5884867CBB3AD8597EAF0B6F4F6E80D8_ComCallableWrapper>, IIterable_1_t3FD1FB01310262788B2A8868AA7395E023511050, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8 { inline ValueCollection_tDFE3548B5884867CBB3AD8597EAF0B6F4F6E80D8_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<ValueCollection_tDFE3548B5884867CBB3AD8597EAF0B6F4F6E80D8_ComCallableWrapper>(obj) {} virtual il2cpp_hresult_t STDCALL QueryInterface(const Il2CppGuid& iid, void** object) IL2CPP_OVERRIDE { if (::memcmp(&iid, &Il2CppIUnknown::IID, sizeof(Il2CppGuid)) == 0 || ::memcmp(&iid, &Il2CppIInspectable::IID, sizeof(Il2CppGuid)) == 0 || ::memcmp(&iid, &Il2CppIAgileObject::IID, sizeof(Il2CppGuid)) == 0) { *object = GetIdentity(); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIManagedObjectHolder::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIManagedObjectHolder*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &IIterable_1_t3FD1FB01310262788B2A8868AA7395E023511050::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<IIterable_1_t3FD1FB01310262788B2A8868AA7395E023511050*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIMarshal::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIMarshal*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIWeakReferenceSource::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIWeakReferenceSource*>(this); AddRefImpl(); return IL2CPP_S_OK; } *object = NULL; return IL2CPP_E_NOINTERFACE; } virtual uint32_t STDCALL AddRef() IL2CPP_OVERRIDE { return AddRefImpl(); } virtual uint32_t STDCALL Release() IL2CPP_OVERRIDE { return ReleaseImpl(); } virtual il2cpp_hresult_t STDCALL GetIids(uint32_t* iidCount, Il2CppGuid** iids) IL2CPP_OVERRIDE { Il2CppGuid* interfaceIds = il2cpp_codegen_marshal_allocate_array<Il2CppGuid>(2); interfaceIds[0] = IIterable_1_t3FD1FB01310262788B2A8868AA7395E023511050::IID; interfaceIds[1] = IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID; *iidCount = 2; *iids = interfaceIds; return IL2CPP_S_OK; } virtual il2cpp_hresult_t STDCALL GetRuntimeClassName(Il2CppHString* className) IL2CPP_OVERRIDE { return GetRuntimeClassNameImpl(className); } virtual il2cpp_hresult_t STDCALL GetTrustLevel(int32_t* trustLevel) IL2CPP_OVERRIDE { return ComObjectBase::GetTrustLevel(trustLevel); } virtual il2cpp_hresult_t STDCALL IIterable_1_First_mC1E90957AD904E68CE3F84D1EF22D5EFACE8C2D5(IIterator_1_tFF647CAD19D34FD0606CDD3425C431F82B94589C** comReturnValue) IL2CPP_OVERRIDE { return IIterable_1_First_mC1E90957AD904E68CE3F84D1EF22D5EFACE8C2D5_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue); } virtual il2cpp_hresult_t STDCALL IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7(IBindableIterator_tD7550F1144CFBE58090050457A2BE92B1CAEABBB** comReturnValue) IL2CPP_OVERRIDE { return IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue); } }; IL2CPP_EXTERN_C Il2CppIUnknown* CreateComCallableWrapperFor_ValueCollection_tDFE3548B5884867CBB3AD8597EAF0B6F4F6E80D8(RuntimeObject* obj) { void* memory = il2cpp::utils::Memory::Malloc(sizeof(ValueCollection_tDFE3548B5884867CBB3AD8597EAF0B6F4F6E80D8_ComCallableWrapper)); if (memory == NULL) { il2cpp_codegen_raise_out_of_memory_exception(); } return static_cast<Il2CppIManagedObjectHolder*>(new(memory) ValueCollection_tDFE3548B5884867CBB3AD8597EAF0B6F4F6E80D8_ComCallableWrapper(obj)); } // COM Callable Wrapper for System.Collections.Generic.Dictionary`2/ValueCollection<UnityEngine.UI.IClipper,System.Int32> struct ValueCollection_tAF8510AEC053B82FDD729C9744C8A2CF6EF6197C_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<ValueCollection_tAF8510AEC053B82FDD729C9744C8A2CF6EF6197C_ComCallableWrapper>, IIterable_1_t3FD1FB01310262788B2A8868AA7395E023511050, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8 { inline ValueCollection_tAF8510AEC053B82FDD729C9744C8A2CF6EF6197C_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<ValueCollection_tAF8510AEC053B82FDD729C9744C8A2CF6EF6197C_ComCallableWrapper>(obj) {} virtual il2cpp_hresult_t STDCALL QueryInterface(const Il2CppGuid& iid, void** object) IL2CPP_OVERRIDE { if (::memcmp(&iid, &Il2CppIUnknown::IID, sizeof(Il2CppGuid)) == 0 || ::memcmp(&iid, &Il2CppIInspectable::IID, sizeof(Il2CppGuid)) == 0 || ::memcmp(&iid, &Il2CppIAgileObject::IID, sizeof(Il2CppGuid)) == 0) { *object = GetIdentity(); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIManagedObjectHolder::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIManagedObjectHolder*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &IIterable_1_t3FD1FB01310262788B2A8868AA7395E023511050::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<IIterable_1_t3FD1FB01310262788B2A8868AA7395E023511050*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIMarshal::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIMarshal*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIWeakReferenceSource::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIWeakReferenceSource*>(this); AddRefImpl(); return IL2CPP_S_OK; } *object = NULL; return IL2CPP_E_NOINTERFACE; } virtual uint32_t STDCALL AddRef() IL2CPP_OVERRIDE { return AddRefImpl(); } virtual uint32_t STDCALL Release() IL2CPP_OVERRIDE { return ReleaseImpl(); } virtual il2cpp_hresult_t STDCALL GetIids(uint32_t* iidCount, Il2CppGuid** iids) IL2CPP_OVERRIDE { Il2CppGuid* interfaceIds = il2cpp_codegen_marshal_allocate_array<Il2CppGuid>(2); interfaceIds[0] = IIterable_1_t3FD1FB01310262788B2A8868AA7395E023511050::IID; interfaceIds[1] = IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID; *iidCount = 2; *iids = interfaceIds; return IL2CPP_S_OK; } virtual il2cpp_hresult_t STDCALL GetRuntimeClassName(Il2CppHString* className) IL2CPP_OVERRIDE { return GetRuntimeClassNameImpl(className); } virtual il2cpp_hresult_t STDCALL GetTrustLevel(int32_t* trustLevel) IL2CPP_OVERRIDE { return ComObjectBase::GetTrustLevel(trustLevel); } virtual il2cpp_hresult_t STDCALL IIterable_1_First_mC1E90957AD904E68CE3F84D1EF22D5EFACE8C2D5(IIterator_1_tFF647CAD19D34FD0606CDD3425C431F82B94589C** comReturnValue) IL2CPP_OVERRIDE { return IIterable_1_First_mC1E90957AD904E68CE3F84D1EF22D5EFACE8C2D5_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue); } virtual il2cpp_hresult_t STDCALL IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7(IBindableIterator_tD7550F1144CFBE58090050457A2BE92B1CAEABBB** comReturnValue) IL2CPP_OVERRIDE { return IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue); } }; IL2CPP_EXTERN_C Il2CppIUnknown* CreateComCallableWrapperFor_ValueCollection_tAF8510AEC053B82FDD729C9744C8A2CF6EF6197C(RuntimeObject* obj) { void* memory = il2cpp::utils::Memory::Malloc(sizeof(ValueCollection_tAF8510AEC053B82FDD729C9744C8A2CF6EF6197C_ComCallableWrapper)); if (memory == NULL) { il2cpp_codegen_raise_out_of_memory_exception(); } return static_cast<Il2CppIManagedObjectHolder*>(new(memory) ValueCollection_tAF8510AEC053B82FDD729C9744C8A2CF6EF6197C_ComCallableWrapper(obj)); } // COM Callable Wrapper for System.Collections.ObjectModel.ReadOnlyDictionary`2/ValueCollection<UnityEngine.UI.IClipper,System.Int32> struct ValueCollection_t576049C739ADEC4FC22A6AD4A068322B2F5A5C90_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<ValueCollection_t576049C739ADEC4FC22A6AD4A068322B2F5A5C90_ComCallableWrapper>, IIterable_1_t3FD1FB01310262788B2A8868AA7395E023511050, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8 { inline ValueCollection_t576049C739ADEC4FC22A6AD4A068322B2F5A5C90_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<ValueCollection_t576049C739ADEC4FC22A6AD4A068322B2F5A5C90_ComCallableWrapper>(obj) {} virtual il2cpp_hresult_t STDCALL QueryInterface(const Il2CppGuid& iid, void** object) IL2CPP_OVERRIDE { if (::memcmp(&iid, &Il2CppIUnknown::IID, sizeof(Il2CppGuid)) == 0 || ::memcmp(&iid, &Il2CppIInspectable::IID, sizeof(Il2CppGuid)) == 0 || ::memcmp(&iid, &Il2CppIAgileObject::IID, sizeof(Il2CppGuid)) == 0) { *object = GetIdentity(); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIManagedObjectHolder::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIManagedObjectHolder*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &IIterable_1_t3FD1FB01310262788B2A8868AA7395E023511050::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<IIterable_1_t3FD1FB01310262788B2A8868AA7395E023511050*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIMarshal::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIMarshal*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIWeakReferenceSource::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIWeakReferenceSource*>(this); AddRefImpl(); return IL2CPP_S_OK; } *object = NULL; return IL2CPP_E_NOINTERFACE; } virtual uint32_t STDCALL AddRef() IL2CPP_OVERRIDE { return AddRefImpl(); } virtual uint32_t STDCALL Release() IL2CPP_OVERRIDE { return ReleaseImpl(); } virtual il2cpp_hresult_t STDCALL GetIids(uint32_t* iidCount, Il2CppGuid** iids) IL2CPP_OVERRIDE { Il2CppGuid* interfaceIds = il2cpp_codegen_marshal_allocate_array<Il2CppGuid>(2); interfaceIds[0] = IIterable_1_t3FD1FB01310262788B2A8868AA7395E023511050::IID; interfaceIds[1] = IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID; *iidCount = 2; *iids = interfaceIds; return IL2CPP_S_OK; } virtual il2cpp_hresult_t STDCALL GetRuntimeClassName(Il2CppHString* className) IL2CPP_OVERRIDE { return GetRuntimeClassNameImpl(className); } virtual il2cpp_hresult_t STDCALL GetTrustLevel(int32_t* trustLevel) IL2CPP_OVERRIDE { return ComObjectBase::GetTrustLevel(trustLevel); } virtual il2cpp_hresult_t STDCALL IIterable_1_First_mC1E90957AD904E68CE3F84D1EF22D5EFACE8C2D5(IIterator_1_tFF647CAD19D34FD0606CDD3425C431F82B94589C** comReturnValue) IL2CPP_OVERRIDE { return IIterable_1_First_mC1E90957AD904E68CE3F84D1EF22D5EFACE8C2D5_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue); } virtual il2cpp_hresult_t STDCALL IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7(IBindableIterator_tD7550F1144CFBE58090050457A2BE92B1CAEABBB** comReturnValue) IL2CPP_OVERRIDE { return IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue); } }; IL2CPP_EXTERN_C Il2CppIUnknown* CreateComCallableWrapperFor_ValueCollection_t576049C739ADEC4FC22A6AD4A068322B2F5A5C90(RuntimeObject* obj) { void* memory = il2cpp::utils::Memory::Malloc(sizeof(ValueCollection_t576049C739ADEC4FC22A6AD4A068322B2F5A5C90_ComCallableWrapper)); if (memory == NULL) { il2cpp_codegen_raise_out_of_memory_exception(); } return static_cast<Il2CppIManagedObjectHolder*>(new(memory) ValueCollection_t576049C739ADEC4FC22A6AD4A068322B2F5A5C90_ComCallableWrapper(obj)); } // COM Callable Wrapper for System.Collections.Generic.Dictionary`2/ValueCollection<Microsoft.MixedReality.Toolkit.Input.IMixedRealityController,UnityEngine.Vector3> struct ValueCollection_tB1299CA92BE8F0D1A523C323EEE42A2715BEF32D_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<ValueCollection_tB1299CA92BE8F0D1A523C323EEE42A2715BEF32D_ComCallableWrapper>, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8 { inline ValueCollection_tB1299CA92BE8F0D1A523C323EEE42A2715BEF32D_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<ValueCollection_tB1299CA92BE8F0D1A523C323EEE42A2715BEF32D_ComCallableWrapper>(obj) {} virtual il2cpp_hresult_t STDCALL QueryInterface(const Il2CppGuid& iid, void** object) IL2CPP_OVERRIDE { if (::memcmp(&iid, &Il2CppIUnknown::IID, sizeof(Il2CppGuid)) == 0 || ::memcmp(&iid, &Il2CppIInspectable::IID, sizeof(Il2CppGuid)) == 0 || ::memcmp(&iid, &Il2CppIAgileObject::IID, sizeof(Il2CppGuid)) == 0) { *object = GetIdentity(); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIManagedObjectHolder::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIManagedObjectHolder*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIMarshal::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIMarshal*>(this); AddRefImpl(); return IL2CPP_S_OK; } if (::memcmp(&iid, &Il2CppIWeakReferenceSource::IID, sizeof(Il2CppGuid)) == 0) { *object = static_cast<Il2CppIWeakReferenceSource*>(this); AddRefImpl(); return IL2CPP_S_OK; } *object = NULL; return IL2CPP_E_NOINTERFACE; } virtual uint32_t STDCALL AddRef() IL2CPP_OVERRIDE { return AddRefImpl(); } virtual uint32_t STDCALL Release() IL2CPP_OVERRIDE { return ReleaseImpl(); } virtual il2cpp_hresult_t STDCALL GetIids(uint32_t* iidCount, Il2CppGuid** iids) IL2CPP_OVERRIDE { Il2CppGuid* interfaceIds = il2cpp_codegen_marshal_allocate_array<Il2CppGuid>(1); interfaceIds[0] = IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID; *iidCount = 1; *iids = interfaceIds; return IL2CPP_S_OK; } virtual il2cpp_hresult_t STDCALL GetRuntimeClassName(Il2CppHString* className) IL2CPP_OVERRIDE { return GetRuntimeClassNameImpl(className); } virtual il2cpp_hresult_t STDCALL GetTrustLevel(int32_t* trustLevel) IL2CPP_OVERRIDE { return ComObjectBase::GetTrustLevel(trustLevel); } virtual il2cpp_hresult_t STDCALL IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7(IBindableIterator_tD7550F1144CFBE58090050457A2BE92B1CAEABBB** comReturnValue) IL2CPP_OVERRIDE { return IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue); } }; IL2CPP_EXTERN_C Il2CppIUnknown* CreateComCallableWrapperFor_ValueCollection_tB1299CA92BE8F0D1A523C323EEE42A2715BEF32D(RuntimeObject* obj) { void* memory = il2cpp::utils::Memory::Malloc(sizeof(ValueCollection_tB1299CA92BE8F0D1A523C323EEE42A2715BEF32D_ComCallableWrapper)); if (memory == NULL) { il2cpp_codegen_raise_out_of_memory_exception(); } return static_cast<Il2CppIManagedObjectHolder*>(new(memory) ValueCollection_tB1299CA92BE8F0D1A523C323EEE42A2715BEF32D_ComCallableWrapper(obj)); }
5df30ee92428d6627ac42fafc2dcdb6a46e11ddd
3c9d8787d9dd84b5402097c1331add04bc7a7f94
/2.21 Arrays - Anticlock-wise Spiral Traverse.cpp
2d6639e3067802978b0b523e0ec09296433a734f
[]
no_license
AbhishekPratik1810/my_cpp_dsa_practice
bfc6df01dc2412b39056b5d49791a0ccf105d19a
37e465cf15d162dfaf535fdcf780d5d5225a8575
refs/heads/master
2022-12-09T03:24:24.220974
2020-09-15T17:50:33
2020-09-15T17:50:33
295,805,408
0
0
null
null
null
null
UTF-8
C++
false
false
869
cpp
2.21 Arrays - Anticlock-wise Spiral Traverse.cpp
#include<iostream> using namespace std; int main(){ int row,col; cin>>row>>col; int matrix[row][col]; for(int i=0;i<row;i++) for(int j=0;j<col;j++) cin>>matrix[i][j]; int startRow=0,startCol=0,endRow=row-1,endCol=col-1; while(startRow<=endRow && startCol<=endCol){ for(int i=startRow;i<=endRow;i++) cout<<matrix[i][startCol]<<", "; startCol++; for(int j=startCol;j<=endCol;j++) cout<<matrix[endRow][j]<<", "; endRow--; if(startCol<=endCol){ for(int i=endRow;i>=startRow;i--) cout<<matrix[i][endCol]<<", "; endCol--; } if(startRow<=endRow){ for(int j=endCol;j>=startCol;j--) cout<<matrix[startRow][j]<<", "; startRow++; } } cout<<"END"<<endl; }
f2c01fb2da4ef8b493cc62567d429fb287e7da2b
08b8cf38e1936e8cec27f84af0d3727321cec9c4
/data/crawl/make/hunk_1103.cpp
c9b451516da22e38b145f4ae81d69d84c70ac312
[]
no_license
ccdxc/logSurvey
eaf28e9c2d6307140b17986d5c05106d1fd8e943
6b80226e1667c1e0760ab39160893ee19b0e9fb1
refs/heads/master
2022-01-07T21:31:55.446839
2018-04-21T14:12:43
2018-04-21T14:12:43
null
0
0
null
null
null
null
UTF-8
C++
false
false
668
cpp
hunk_1103.cpp
#ifdef VMS if (!(exit_code & 1)) - error (NILF, "*** [%s] Error 0x%x%s", target_name, exit_code, ((ignored)? " (ignored)" : "")); + error (NILF, _("*** [%s] Error 0x%x%s"), target_name, exit_code, ((ignored)? _(" (ignored)") : "")); #else if (exit_sig == 0) - error (NILF, ignored ? "[%s] Error %d (ignored)" : - "*** [%s] Error %d", + error (NILF, ignored ? _("[%s] Error %d (ignored)") : + _("*** [%s] Error %d"), target_name, exit_code); else error (NILF, "*** [%s] %s%s", target_name, strsignal (exit_sig), - coredump ? " (core dumped)" : ""); + coredump ? _(" (core dumped)") : ""); #endif /* VMS */ }
24d4123984b025286421d43374c56745987a1d82
de125095fc7222890739d557d86a77ea72116dc0
/Source/Core/Equipment/VesselEffects/ActiveVesselEffects/Effects/VioletVesselEffect.h
065a45e3a81addcc007dfa66d8d8da4c55111723
[ "MIT" ]
permissive
Lawrence-JD/Space-Egypt-Source
5efde4ca8405651f81cf47cd9eaa0d5d3996cf13
f8aa37f1fbd1a26b662bb59ed7a9580ef3853854
refs/heads/main
2023-08-17T18:29:54.317859
2021-10-24T21:02:27
2021-10-24T21:02:27
367,258,951
0
0
null
null
null
null
UTF-8
C++
false
false
1,166
h
VioletVesselEffect.h
// Fill out your copyright notice in the Description page of Project Settings. #pragma once #include "CoreMinimal.h" #include "Components/ActorComponent.h" #include "AimedVesselEffect.h" #include "../Targets/VioletVesselTarget.h" #include "../Misc/VioletTargetTracker.h" #include "Components/CapsuleComponent.h" #include "VioletVesselEffect.generated.h" UCLASS( ClassGroup=(Custom), meta=(BlueprintSpawnableComponent) ) class SPEEGYPT_API UVioletVesselEffect : public UAimedVesselEffect { GENERATED_BODY() public: // Sets default values for this component's properties UVioletVesselEffect(); UPROPERTY(VisibleAnywhere, BlueprintReadOnly) UCapsuleComponent* CaptureCapsule; UPROPERTY(VisibleAnywhere, BlueprintReadOnly) UVioletTargetTracker* VioletTargetTracker; void Enable() override; void Disable() override; void DrawReticle() override; void HideReticle() override; void ApplyEffect() override; protected: // Called when the game starts virtual void BeginPlay() override; public: // Called every frame virtual void TickComponent(float DeltaTime, ELevelTick TickType, FActorComponentTickFunction* ThisTickFunction) override; };