hexsha stringlengths 40 40 | size int64 7 1.05M | ext stringclasses 13 values | lang stringclasses 1 value | max_stars_repo_path stringlengths 4 269 | max_stars_repo_name stringlengths 5 108 | max_stars_repo_head_hexsha stringlengths 40 40 | max_stars_repo_licenses listlengths 1 9 | max_stars_count float64 1 191k ⌀ | max_stars_repo_stars_event_min_datetime stringlengths 24 24 ⌀ | max_stars_repo_stars_event_max_datetime stringlengths 24 24 ⌀ | max_issues_repo_path stringlengths 4 269 | max_issues_repo_name stringlengths 5 116 | max_issues_repo_head_hexsha stringlengths 40 40 | max_issues_repo_licenses listlengths 1 9 | max_issues_count float64 1 77k ⌀ | max_issues_repo_issues_event_min_datetime stringlengths 24 24 ⌀ | max_issues_repo_issues_event_max_datetime stringlengths 24 24 ⌀ | max_forks_repo_path stringlengths 4 269 | max_forks_repo_name stringlengths 5 116 | max_forks_repo_head_hexsha stringlengths 40 40 | max_forks_repo_licenses listlengths 1 9 | max_forks_count float64 1 105k ⌀ | max_forks_repo_forks_event_min_datetime stringlengths 24 24 ⌀ | max_forks_repo_forks_event_max_datetime stringlengths 24 24 ⌀ | content stringlengths 7 1.05M | avg_line_length float64 1.21 653k | max_line_length int64 6 990k | alphanum_fraction float64 0.01 1 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
09e3574709070a14b73e67e00a07d9f47742019c | 2,328 | cpp | C++ | src/MaterialLibrary/MaterialLibrary.cpp | niiick1/OpenGLScene | 33a99428775e98b4fa3093ff2c481fffffaa974e | [
"MIT"
] | null | null | null | src/MaterialLibrary/MaterialLibrary.cpp | niiick1/OpenGLScene | 33a99428775e98b4fa3093ff2c481fffffaa974e | [
"MIT"
] | null | null | null | src/MaterialLibrary/MaterialLibrary.cpp | niiick1/OpenGLScene | 33a99428775e98b4fa3093ff2c481fffffaa974e | [
"MIT"
] | 1 | 2019-12-03T21:11:13.000Z | 2019-12-03T21:11:13.000Z | #include "MaterialLibrary/MaterialLibrary.h"
#include <iostream>
#include <GL/glew.h>
#include "lodepng/lodepng.h"
MaterialLibrary::MaterialLibrary()
{
//ctor
}
MaterialLibrary::~MaterialLibrary()
{
//dtor
}
void MaterialLibrary::addMaterial(const Material& material)
{
std::string materialName = material.getName();
if (materials.find(materialName) == materials.end()) {
materials.insert(std::map<std::string, Material>::value_type(materialName, material));
} else {
std::cerr << "Material with name " << materialName << " already exists.\n";
}
}
void MaterialLibrary::addMaterial(const std::vector<Material>& materials)
{
for (std::vector<Material>::const_iterator it = materials.begin(); it != materials.end(); ++it) {
Material material = *it;
addMaterial(material);
}
}
Material MaterialLibrary::getMaterial(std::string name)
{
std::map<std::string, Material>::iterator material = materials.find(name);
if (material == materials.end()) {
return Material("");
} else {
return material->second;
}
}
unsigned MaterialLibrary::getMaterialTexture(std::string name)
{
Material material = getMaterial(name);
if (material.getName().empty()) return -1;
std::string textureName = material.getDiffuseTexture();
if (textureIDs.find(textureName) == textureIDs.end()) {
textureIDs[textureName] = loadTexture(textureName);
} else {
return textureIDs[textureName];
}
return 0;
}
unsigned MaterialLibrary::loadTexture(std::string textureFilename)
{
Image textureData = readPNG(textureFilename.c_str());
unsigned texId;
glGenTextures(1, &texId);
glBindTexture(GL_TEXTURE_2D, texId);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR); // Linear Filtering
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR); // Linear Filtering
glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, textureData.w, textureData.h, 0, GL_RGBA, GL_UNSIGNED_BYTE, &textureData.data[0]);
return texId;
}
MaterialLibrary::Image MaterialLibrary::readPNG(const char* file)
{
std::vector<unsigned char> img;
unsigned w, h;
lodepng::decode(img, w, h, file);
Image image;
image.data = img;
image.w = w;
image.h = h;
return image;
}
| 24.765957 | 126 | 0.681701 |
09e46675dfb06c0631712c0b461ef44d4a067078 | 1,179 | hpp | C++ | engine/src/vulkan/mesh/Mesh.hpp | Velikss/Bus-Simulator | 13bf0b66b9b44e3f4cb1375fc363720ea8f23e19 | [
"MIT"
] | null | null | null | engine/src/vulkan/mesh/Mesh.hpp | Velikss/Bus-Simulator | 13bf0b66b9b44e3f4cb1375fc363720ea8f23e19 | [
"MIT"
] | null | null | null | engine/src/vulkan/mesh/Mesh.hpp | Velikss/Bus-Simulator | 13bf0b66b9b44e3f4cb1375fc363720ea8f23e19 | [
"MIT"
] | null | null | null | #pragma once
#include <pch.hpp>
#include <vulkan/geometry/Geometry.hpp>
#include <vulkan/texture/Texture.hpp>
#include <vulkan/util/Invalidatable.hpp>
class cMesh : public cInvalidatable
{
private:
cGeometry* ppGeometry;
cTexture* ppTexture;
cTexture* ppMaterial;
public:
cMesh(cGeometry* pGeometry, cTexture* pTexture, cTexture* pMaterial);
cMesh(cGeometry* pGeometry, cTexture* pTexture);
cGeometry* GetGeometry();
cTexture* GetTexture();
cTexture* GetMaterial();
void SetTexture(cTexture* pTexture);
};
cMesh::cMesh(cGeometry* pGeometry, cTexture* pTexture, cTexture* pMaterial)
{
assert(pGeometry != nullptr);
assert(pTexture != nullptr);
assert(pMaterial != nullptr);
ppGeometry = pGeometry;
ppTexture = pTexture;
ppMaterial = pMaterial;
}
cMesh::cMesh(cGeometry* pGeometry, cTexture* pTexture) : cMesh(pGeometry, pTexture, pTexture)
{
}
cGeometry* cMesh::GetGeometry()
{
return ppGeometry;
}
cTexture* cMesh::GetTexture()
{
return ppTexture;
}
cTexture* cMesh::GetMaterial()
{
return ppMaterial;
}
void cMesh::SetTexture(cTexture* pTexture)
{
ppTexture = pTexture;
Invalidate();
}
| 19.327869 | 93 | 0.706531 |
09e46bd9c7d97d85a2cc98e44bbe3466a6f4d569 | 688 | cpp | C++ | EasyFramework3d/base/util/FileException.cpp | sizilium/FlexChess | f12b94e800ddcb00535067eca3b560519c9122e0 | [
"MIT"
] | null | null | null | EasyFramework3d/base/util/FileException.cpp | sizilium/FlexChess | f12b94e800ddcb00535067eca3b560519c9122e0 | [
"MIT"
] | null | null | null | EasyFramework3d/base/util/FileException.cpp | sizilium/FlexChess | f12b94e800ddcb00535067eca3b560519c9122e0 | [
"MIT"
] | null | null | null | #include <vs/base/util/FileException.h>
namespace vs
{
namespace base
{
namespace util
{
FileException::FileException(string fileOfOccuredError, string placeOfOccuredError,
string description, string badFile)
:Exception(fileOfOccuredError, placeOfOccuredError, description), corruptedFile(badFile)
{}
FileException::FileException(string fileOfOccuredError, int placeOfOccuredError,
string description, string badFile)
:Exception(fileOfOccuredError, placeOfOccuredError, description), corruptedFile(badFile)
{}
FileException::~FileException() throw()
{
}
string FileException::getCorruptedFile() const
{
return corruptedFile;
}
} // util
} // base
} // vs
| 20.235294 | 88 | 0.768895 |
09e8b899528544d05f6b13874715477b89dd7648 | 755 | cpp | C++ | 238.cpp | mudit1729/LeetCode | 766929544b1c87ed4afed120f460d5a4053f6a33 | [
"MIT"
] | null | null | null | 238.cpp | mudit1729/LeetCode | 766929544b1c87ed4afed120f460d5a4053f6a33 | [
"MIT"
] | null | null | null | 238.cpp | mudit1729/LeetCode | 766929544b1c87ed4afed120f460d5a4053f6a33 | [
"MIT"
] | null | null | null |
class Solution {
public:
vector<int> productExceptSelf(vector<int>& nums) {
vector<int> left;
vector<int> right;
vector<int> sol;
int leftProduct = 1;
int rightProduct = 1;
int sz = nums.size();
left.resize(sz);
right.resize(sz);
for(int i = 0; i<sz; i++){
leftProduct = leftProduct*nums[i];
rightProduct = rightProduct*nums[sz-1-i];
left[i] = leftProduct;
right[sz-i-1] = rightProduct;
}
for(int i=0; i<sz; i++){
if(i==0) sol.push_back(right[i+1]);
else if (i==sz-1) sol.push_back(left[i-1]);
else sol.push_back(left[i-1]*right[i+1]);
}
return sol;
}
}; | 29.038462 | 55 | 0.496689 |
09ea20c17c26a573a528e218640c675dabbadc80 | 4,543 | cpp | C++ | test/test-str-convert.cpp | codalogic/cl-utils | 996452272d4c09b8df7928abdaea75b0e786a244 | [
"BSD-3-Clause"
] | null | null | null | test/test-str-convert.cpp | codalogic/cl-utils | 996452272d4c09b8df7928abdaea75b0e786a244 | [
"BSD-3-Clause"
] | null | null | null | test/test-str-convert.cpp | codalogic/cl-utils | 996452272d4c09b8df7928abdaea75b0e786a244 | [
"BSD-3-Clause"
] | null | null | null | //----------------------------------------------------------------------------
// Copyright (c) 2016, Codalogic Ltd (http://www.codalogic.com)
// All rights reserved.
//
// The license for this file is based on the BSD-3-Clause license
// (http://www.opensource.org/licenses/BSD-3-Clause).
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
//
// - Redistributions of source code must retain the above copyright notice,
// this list of conditions and the following disclaimer.
// - Redistributions in binary form must reproduce the above copyright notice,
// this list of conditions and the following disclaimer in the documentation
// and/or other materials provided with the distribution.
// - Neither the name Codalogic Ltd nor the names of its contributors may be
// used to endorse or promote products derived from this software without
// specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
// AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
// ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
// LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
// CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
// SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
// CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
// POSSIBILITY OF SUCH DAMAGE.
//----------------------------------------------------------------------------
#include "cl-utils/str-convert.h"
#include <string>
#include "clunit.h"
using namespace clutils;
TFEATURE( "convert - Unchecked from_string()" )
{
TTEST( from_string<int>( "123" ) == 123 );
TTEST( from_string<int>( " 123" ) == 123 );
TTEST( from_string<float>( "123.5" ) == 123.5 );
TTEST( from_string<bool>( "false" ) == false );
TTEST( from_string<bool>( "False" ) == false );
TTEST( from_string<bool>( "FALSE" ) == false );
TTEST( from_string<bool>( "true" ) == true );
TTEST( from_string<bool>( "True" ) == true );
TTEST( from_string<bool>( "TRUE" ) == true );
TTEST( from_string<bool>( "0" ) == false );
TTEST( from_string<bool>( "1" ) == true );
TTEST( from_string<bool>( " false" ) == false );
TTEST( from_string<bool>( " true" ) == true );
TTEST( from_string<bool>( " 0" ) == false );
TTEST( from_string<bool>( " 1" ) == true );
// Error cases
TTEST( from_string<int>( "foo" ) == 0 );
}
TFEATURE( "convert - Checked from_string()" )
{
int iout;
TTEST( from_string( iout, "123" ) == true );
TTEST( iout == 123 );
TTEST( from_string( iout, " 123" ) == true );
TTEST( iout == 123 );
float fout;
TTEST( from_string( fout, "123.5" ) == true );
TTEST( fout == 123.5 );
bool bout;
TTEST( from_string( bout, "false" ) == true );
TTEST( bout == false );
TTEST( from_string( bout, "False" ) == true );
TTEST( bout == false );
TTEST( from_string( bout, "FALSE" ) == true );
TTEST( bout == false );
TTEST( from_string( bout, "true" ) == true );
TTEST( bout == true );
TTEST( from_string( bout, "True" ) == true );
TTEST( bout == true );
TTEST( from_string( bout, "TRUE" ) == true );
TTEST( bout == true );
TTEST( from_string( bout, "0" ) == true );
TTEST( bout == false );
TTEST( from_string( bout, "1" ) == true );
TTEST( bout == true );
TTEST( from_string( bout, " false" ) == true );
TTEST( bout == false );
TTEST( from_string( bout, " true" ) == true );
TTEST( bout == true );
TTEST( from_string( bout, " 0" ) == true );
TTEST( bout == false );
TTEST( from_string( bout, " 1" ) == true );
TTEST( bout == true );
TTEST( from_string( iout, "foo" ) == false );
TTEST( from_string( bout, "foo" ) == false );
}
TFEATURE( "convert - to_string()" )
{
TTEST( to_string( "foo" ) == "foo" );
TTEST( to_string( 123 ) == "123" );
TTEST( to_string( 123.5 ) == "123.5" );
TTEST( to_string( 0 ) == "0" );
TTEST( to_string( 1 ) == "1" );
TTEST( to_string( true ) == "true" );
TTEST( to_string( false ) == "false" );
}
| 36.344 | 78 | 0.605107 |
09eb7f5938cbac14abae5d1e3a0db7968146c587 | 289 | cpp | C++ | CodeBlocks/Codeforces/Codeforces228A.cpp | ash1247/DocumentsWindows | 66f65b5170a1ba766cfae08b7104b63ab87331c2 | [
"MIT"
] | null | null | null | CodeBlocks/Codeforces/Codeforces228A.cpp | ash1247/DocumentsWindows | 66f65b5170a1ba766cfae08b7104b63ab87331c2 | [
"MIT"
] | null | null | null | CodeBlocks/Codeforces/Codeforces228A.cpp | ash1247/DocumentsWindows | 66f65b5170a1ba766cfae08b7104b63ab87331c2 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
int main( void )
{
set<long int> collection;
long int s;
int count = 0;
for(int i = 0; i < 4; i++ )
{
cin >> s;
collection.insert( s );
}
cout << 4 - collection.size() << endl;
return 0;
}
| 13.136364 | 42 | 0.49481 |
09ebcc68dfbb4af9f94e0032a83a7b566a3ffa0f | 30,521 | cc | C++ | proto/echo_test.pb.cc | iwtbabc/irpc | 647b126450b986e73b350ed451c90d48ec3a420c | [
"MIT"
] | 1 | 2018-08-28T12:01:01.000Z | 2018-08-28T12:01:01.000Z | proto/echo_test.pb.cc | majianfei/irpc | 647b126450b986e73b350ed451c90d48ec3a420c | [
"MIT"
] | null | null | null | proto/echo_test.pb.cc | majianfei/irpc | 647b126450b986e73b350ed451c90d48ec3a420c | [
"MIT"
] | 1 | 2018-07-28T04:53:12.000Z | 2018-07-28T04:53:12.000Z | // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: echo_test.proto
#include "echo_test.pb.h"
#include <algorithm>
#include <google/protobuf/stubs/common.h>
#include <google/protobuf/stubs/port.h>
#include <google/protobuf/stubs/once.h>
#include <google/protobuf/io/coded_stream.h>
#include <google/protobuf/wire_format_lite_inl.h>
#include <google/protobuf/descriptor.h>
#include <google/protobuf/generated_message_reflection.h>
#include <google/protobuf/reflection_ops.h>
#include <google/protobuf/wire_format.h>
// This is a temporary google only hack
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
#include "third_party/protobuf/version.h"
#endif
// @@protoc_insertion_point(includes)
namespace echo {
class RequestMessageDefaultTypeInternal {
public:
::google::protobuf::internal::ExplicitlyConstructed<RequestMessage>
_instance;
} _RequestMessage_default_instance_;
class ResponseMessageDefaultTypeInternal {
public:
::google::protobuf::internal::ExplicitlyConstructed<ResponseMessage>
_instance;
} _ResponseMessage_default_instance_;
} // namespace echo
namespace protobuf_echo_5ftest_2eproto {
void InitDefaultsRequestMessageImpl() {
GOOGLE_PROTOBUF_VERIFY_VERSION;
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
::google::protobuf::internal::InitProtobufDefaultsForceUnique();
#else
::google::protobuf::internal::InitProtobufDefaults();
#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
{
void* ptr = &::echo::_RequestMessage_default_instance_;
new (ptr) ::echo::RequestMessage();
::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
}
::echo::RequestMessage::InitAsDefaultInstance();
}
void InitDefaultsRequestMessage() {
static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
::google::protobuf::GoogleOnceInit(&once, &InitDefaultsRequestMessageImpl);
}
void InitDefaultsResponseMessageImpl() {
GOOGLE_PROTOBUF_VERIFY_VERSION;
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
::google::protobuf::internal::InitProtobufDefaultsForceUnique();
#else
::google::protobuf::internal::InitProtobufDefaults();
#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
{
void* ptr = &::echo::_ResponseMessage_default_instance_;
new (ptr) ::echo::ResponseMessage();
::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
}
::echo::ResponseMessage::InitAsDefaultInstance();
}
void InitDefaultsResponseMessage() {
static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
::google::protobuf::GoogleOnceInit(&once, &InitDefaultsResponseMessageImpl);
}
::google::protobuf::Metadata file_level_metadata[2];
const ::google::protobuf::ServiceDescriptor* file_level_service_descriptors[1];
const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
~0u, // no _has_bits_
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::echo::RequestMessage, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
~0u, // no _weak_field_map_
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::echo::RequestMessage, id_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::echo::RequestMessage, msg_),
~0u, // no _has_bits_
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::echo::ResponseMessage, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
~0u, // no _weak_field_map_
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::echo::ResponseMessage, id_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::echo::ResponseMessage, msg_),
};
static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
{ 0, -1, sizeof(::echo::RequestMessage)},
{ 7, -1, sizeof(::echo::ResponseMessage)},
};
static ::google::protobuf::Message const * const file_default_instances[] = {
reinterpret_cast<const ::google::protobuf::Message*>(&::echo::_RequestMessage_default_instance_),
reinterpret_cast<const ::google::protobuf::Message*>(&::echo::_ResponseMessage_default_instance_),
};
void protobuf_AssignDescriptors() {
AddDescriptors();
::google::protobuf::MessageFactory* factory = NULL;
AssignDescriptors(
"echo_test.proto", schemas, file_default_instances, TableStruct::offsets, factory,
file_level_metadata, NULL, file_level_service_descriptors);
}
void protobuf_AssignDescriptorsOnce() {
static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
::google::protobuf::GoogleOnceInit(&once, &protobuf_AssignDescriptors);
}
void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD;
void protobuf_RegisterTypes(const ::std::string&) {
protobuf_AssignDescriptorsOnce();
::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 2);
}
void AddDescriptorsImpl() {
InitDefaults();
static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
"\n\017echo_test.proto\022\004echo\")\n\016RequestMessag"
"e\022\n\n\002id\030\001 \001(\005\022\013\n\003msg\030\002 \001(\t\"*\n\017ResponseMe"
"ssage\022\n\n\002id\030\001 \001(\005\022\013\n\003msg\030\002 \001(\t2B\n\013EchoSe"
"rvice\0223\n\004echo\022\024.echo.RequestMessage\032\025.ec"
"ho.ResponseMessageB\006\200\001\001\220\001\001b\006proto3"
};
::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
descriptor, 194);
::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
"echo_test.proto", &protobuf_RegisterTypes);
}
void AddDescriptors() {
static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
::google::protobuf::GoogleOnceInit(&once, &AddDescriptorsImpl);
}
// Force AddDescriptors() to be called at dynamic initialization time.
struct StaticDescriptorInitializer {
StaticDescriptorInitializer() {
AddDescriptors();
}
} static_descriptor_initializer;
} // namespace protobuf_echo_5ftest_2eproto
namespace echo {
// ===================================================================
void RequestMessage::InitAsDefaultInstance() {
}
#if !defined(_MSC_VER) || _MSC_VER >= 1900
const int RequestMessage::kIdFieldNumber;
const int RequestMessage::kMsgFieldNumber;
#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
RequestMessage::RequestMessage()
: ::google::protobuf::Message(), _internal_metadata_(NULL) {
if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
::protobuf_echo_5ftest_2eproto::InitDefaultsRequestMessage();
}
SharedCtor();
// @@protoc_insertion_point(constructor:echo.RequestMessage)
}
RequestMessage::RequestMessage(const RequestMessage& from)
: ::google::protobuf::Message(),
_internal_metadata_(NULL),
_cached_size_(0) {
_internal_metadata_.MergeFrom(from._internal_metadata_);
msg_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
if (from.msg().size() > 0) {
msg_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.msg_);
}
id_ = from.id_;
// @@protoc_insertion_point(copy_constructor:echo.RequestMessage)
}
void RequestMessage::SharedCtor() {
msg_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
id_ = 0;
_cached_size_ = 0;
}
RequestMessage::~RequestMessage() {
// @@protoc_insertion_point(destructor:echo.RequestMessage)
SharedDtor();
}
void RequestMessage::SharedDtor() {
msg_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
void RequestMessage::SetCachedSize(int size) const {
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const ::google::protobuf::Descriptor* RequestMessage::descriptor() {
::protobuf_echo_5ftest_2eproto::protobuf_AssignDescriptorsOnce();
return ::protobuf_echo_5ftest_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
}
const RequestMessage& RequestMessage::default_instance() {
::protobuf_echo_5ftest_2eproto::InitDefaultsRequestMessage();
return *internal_default_instance();
}
RequestMessage* RequestMessage::New(::google::protobuf::Arena* arena) const {
RequestMessage* n = new RequestMessage;
if (arena != NULL) {
arena->Own(n);
}
return n;
}
void RequestMessage::Clear() {
// @@protoc_insertion_point(message_clear_start:echo.RequestMessage)
::google::protobuf::uint32 cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
msg_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
id_ = 0;
_internal_metadata_.Clear();
}
bool RequestMessage::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
::google::protobuf::uint32 tag;
// @@protoc_insertion_point(parse_start:echo.RequestMessage)
for (;;) {
::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
tag = p.first;
if (!p.second) goto handle_unusual;
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// int32 id = 1;
case 1: {
if (static_cast< ::google::protobuf::uint8>(tag) ==
static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
input, &id_)));
} else {
goto handle_unusual;
}
break;
}
// string msg = 2;
case 2: {
if (static_cast< ::google::protobuf::uint8>(tag) ==
static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_msg()));
DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
this->msg().data(), static_cast<int>(this->msg().length()),
::google::protobuf::internal::WireFormatLite::PARSE,
"echo.RequestMessage.msg"));
} else {
goto handle_unusual;
}
break;
}
default: {
handle_unusual:
if (tag == 0) {
goto success;
}
DO_(::google::protobuf::internal::WireFormat::SkipField(
input, tag, _internal_metadata_.mutable_unknown_fields()));
break;
}
}
}
success:
// @@protoc_insertion_point(parse_success:echo.RequestMessage)
return true;
failure:
// @@protoc_insertion_point(parse_failure:echo.RequestMessage)
return false;
#undef DO_
}
void RequestMessage::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
// @@protoc_insertion_point(serialize_start:echo.RequestMessage)
::google::protobuf::uint32 cached_has_bits = 0;
(void) cached_has_bits;
// int32 id = 1;
if (this->id() != 0) {
::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->id(), output);
}
// string msg = 2;
if (this->msg().size() > 0) {
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
this->msg().data(), static_cast<int>(this->msg().length()),
::google::protobuf::internal::WireFormatLite::SERIALIZE,
"echo.RequestMessage.msg");
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
2, this->msg(), output);
}
if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
(::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
}
// @@protoc_insertion_point(serialize_end:echo.RequestMessage)
}
::google::protobuf::uint8* RequestMessage::InternalSerializeWithCachedSizesToArray(
bool deterministic, ::google::protobuf::uint8* target) const {
(void)deterministic; // Unused
// @@protoc_insertion_point(serialize_to_array_start:echo.RequestMessage)
::google::protobuf::uint32 cached_has_bits = 0;
(void) cached_has_bits;
// int32 id = 1;
if (this->id() != 0) {
target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->id(), target);
}
// string msg = 2;
if (this->msg().size() > 0) {
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
this->msg().data(), static_cast<int>(this->msg().length()),
::google::protobuf::internal::WireFormatLite::SERIALIZE,
"echo.RequestMessage.msg");
target =
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
2, this->msg(), target);
}
if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
(::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
}
// @@protoc_insertion_point(serialize_to_array_end:echo.RequestMessage)
return target;
}
size_t RequestMessage::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:echo.RequestMessage)
size_t total_size = 0;
if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
total_size +=
::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
(::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
}
// string msg = 2;
if (this->msg().size() > 0) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::StringSize(
this->msg());
}
// int32 id = 1;
if (this->id() != 0) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::Int32Size(
this->id());
}
int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = cached_size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
return total_size;
}
void RequestMessage::MergeFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_merge_from_start:echo.RequestMessage)
GOOGLE_DCHECK_NE(&from, this);
const RequestMessage* source =
::google::protobuf::internal::DynamicCastToGenerated<const RequestMessage>(
&from);
if (source == NULL) {
// @@protoc_insertion_point(generalized_merge_from_cast_fail:echo.RequestMessage)
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
// @@protoc_insertion_point(generalized_merge_from_cast_success:echo.RequestMessage)
MergeFrom(*source);
}
}
void RequestMessage::MergeFrom(const RequestMessage& from) {
// @@protoc_insertion_point(class_specific_merge_from_start:echo.RequestMessage)
GOOGLE_DCHECK_NE(&from, this);
_internal_metadata_.MergeFrom(from._internal_metadata_);
::google::protobuf::uint32 cached_has_bits = 0;
(void) cached_has_bits;
if (from.msg().size() > 0) {
msg_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.msg_);
}
if (from.id() != 0) {
set_id(from.id());
}
}
void RequestMessage::CopyFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_copy_from_start:echo.RequestMessage)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void RequestMessage::CopyFrom(const RequestMessage& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:echo.RequestMessage)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool RequestMessage::IsInitialized() const {
return true;
}
void RequestMessage::Swap(RequestMessage* other) {
if (other == this) return;
InternalSwap(other);
}
void RequestMessage::InternalSwap(RequestMessage* other) {
using std::swap;
msg_.Swap(&other->msg_);
swap(id_, other->id_);
_internal_metadata_.Swap(&other->_internal_metadata_);
swap(_cached_size_, other->_cached_size_);
}
::google::protobuf::Metadata RequestMessage::GetMetadata() const {
protobuf_echo_5ftest_2eproto::protobuf_AssignDescriptorsOnce();
return ::protobuf_echo_5ftest_2eproto::file_level_metadata[kIndexInFileMessages];
}
// ===================================================================
void ResponseMessage::InitAsDefaultInstance() {
}
#if !defined(_MSC_VER) || _MSC_VER >= 1900
const int ResponseMessage::kIdFieldNumber;
const int ResponseMessage::kMsgFieldNumber;
#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
ResponseMessage::ResponseMessage()
: ::google::protobuf::Message(), _internal_metadata_(NULL) {
if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
::protobuf_echo_5ftest_2eproto::InitDefaultsResponseMessage();
}
SharedCtor();
// @@protoc_insertion_point(constructor:echo.ResponseMessage)
}
ResponseMessage::ResponseMessage(const ResponseMessage& from)
: ::google::protobuf::Message(),
_internal_metadata_(NULL),
_cached_size_(0) {
_internal_metadata_.MergeFrom(from._internal_metadata_);
msg_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
if (from.msg().size() > 0) {
msg_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.msg_);
}
id_ = from.id_;
// @@protoc_insertion_point(copy_constructor:echo.ResponseMessage)
}
void ResponseMessage::SharedCtor() {
msg_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
id_ = 0;
_cached_size_ = 0;
}
ResponseMessage::~ResponseMessage() {
// @@protoc_insertion_point(destructor:echo.ResponseMessage)
SharedDtor();
}
void ResponseMessage::SharedDtor() {
msg_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
void ResponseMessage::SetCachedSize(int size) const {
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const ::google::protobuf::Descriptor* ResponseMessage::descriptor() {
::protobuf_echo_5ftest_2eproto::protobuf_AssignDescriptorsOnce();
return ::protobuf_echo_5ftest_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
}
const ResponseMessage& ResponseMessage::default_instance() {
::protobuf_echo_5ftest_2eproto::InitDefaultsResponseMessage();
return *internal_default_instance();
}
ResponseMessage* ResponseMessage::New(::google::protobuf::Arena* arena) const {
ResponseMessage* n = new ResponseMessage;
if (arena != NULL) {
arena->Own(n);
}
return n;
}
void ResponseMessage::Clear() {
// @@protoc_insertion_point(message_clear_start:echo.ResponseMessage)
::google::protobuf::uint32 cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
msg_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
id_ = 0;
_internal_metadata_.Clear();
}
bool ResponseMessage::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
::google::protobuf::uint32 tag;
// @@protoc_insertion_point(parse_start:echo.ResponseMessage)
for (;;) {
::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
tag = p.first;
if (!p.second) goto handle_unusual;
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// int32 id = 1;
case 1: {
if (static_cast< ::google::protobuf::uint8>(tag) ==
static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
input, &id_)));
} else {
goto handle_unusual;
}
break;
}
// string msg = 2;
case 2: {
if (static_cast< ::google::protobuf::uint8>(tag) ==
static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_msg()));
DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
this->msg().data(), static_cast<int>(this->msg().length()),
::google::protobuf::internal::WireFormatLite::PARSE,
"echo.ResponseMessage.msg"));
} else {
goto handle_unusual;
}
break;
}
default: {
handle_unusual:
if (tag == 0) {
goto success;
}
DO_(::google::protobuf::internal::WireFormat::SkipField(
input, tag, _internal_metadata_.mutable_unknown_fields()));
break;
}
}
}
success:
// @@protoc_insertion_point(parse_success:echo.ResponseMessage)
return true;
failure:
// @@protoc_insertion_point(parse_failure:echo.ResponseMessage)
return false;
#undef DO_
}
void ResponseMessage::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
// @@protoc_insertion_point(serialize_start:echo.ResponseMessage)
::google::protobuf::uint32 cached_has_bits = 0;
(void) cached_has_bits;
// int32 id = 1;
if (this->id() != 0) {
::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->id(), output);
}
// string msg = 2;
if (this->msg().size() > 0) {
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
this->msg().data(), static_cast<int>(this->msg().length()),
::google::protobuf::internal::WireFormatLite::SERIALIZE,
"echo.ResponseMessage.msg");
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
2, this->msg(), output);
}
if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
(::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
}
// @@protoc_insertion_point(serialize_end:echo.ResponseMessage)
}
::google::protobuf::uint8* ResponseMessage::InternalSerializeWithCachedSizesToArray(
bool deterministic, ::google::protobuf::uint8* target) const {
(void)deterministic; // Unused
// @@protoc_insertion_point(serialize_to_array_start:echo.ResponseMessage)
::google::protobuf::uint32 cached_has_bits = 0;
(void) cached_has_bits;
// int32 id = 1;
if (this->id() != 0) {
target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->id(), target);
}
// string msg = 2;
if (this->msg().size() > 0) {
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
this->msg().data(), static_cast<int>(this->msg().length()),
::google::protobuf::internal::WireFormatLite::SERIALIZE,
"echo.ResponseMessage.msg");
target =
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
2, this->msg(), target);
}
if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
(::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
}
// @@protoc_insertion_point(serialize_to_array_end:echo.ResponseMessage)
return target;
}
size_t ResponseMessage::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:echo.ResponseMessage)
size_t total_size = 0;
if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
total_size +=
::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
(::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
}
// string msg = 2;
if (this->msg().size() > 0) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::StringSize(
this->msg());
}
// int32 id = 1;
if (this->id() != 0) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::Int32Size(
this->id());
}
int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = cached_size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
return total_size;
}
void ResponseMessage::MergeFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_merge_from_start:echo.ResponseMessage)
GOOGLE_DCHECK_NE(&from, this);
const ResponseMessage* source =
::google::protobuf::internal::DynamicCastToGenerated<const ResponseMessage>(
&from);
if (source == NULL) {
// @@protoc_insertion_point(generalized_merge_from_cast_fail:echo.ResponseMessage)
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
// @@protoc_insertion_point(generalized_merge_from_cast_success:echo.ResponseMessage)
MergeFrom(*source);
}
}
void ResponseMessage::MergeFrom(const ResponseMessage& from) {
// @@protoc_insertion_point(class_specific_merge_from_start:echo.ResponseMessage)
GOOGLE_DCHECK_NE(&from, this);
_internal_metadata_.MergeFrom(from._internal_metadata_);
::google::protobuf::uint32 cached_has_bits = 0;
(void) cached_has_bits;
if (from.msg().size() > 0) {
msg_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.msg_);
}
if (from.id() != 0) {
set_id(from.id());
}
}
void ResponseMessage::CopyFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_copy_from_start:echo.ResponseMessage)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void ResponseMessage::CopyFrom(const ResponseMessage& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:echo.ResponseMessage)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool ResponseMessage::IsInitialized() const {
return true;
}
void ResponseMessage::Swap(ResponseMessage* other) {
if (other == this) return;
InternalSwap(other);
}
void ResponseMessage::InternalSwap(ResponseMessage* other) {
using std::swap;
msg_.Swap(&other->msg_);
swap(id_, other->id_);
_internal_metadata_.Swap(&other->_internal_metadata_);
swap(_cached_size_, other->_cached_size_);
}
::google::protobuf::Metadata ResponseMessage::GetMetadata() const {
protobuf_echo_5ftest_2eproto::protobuf_AssignDescriptorsOnce();
return ::protobuf_echo_5ftest_2eproto::file_level_metadata[kIndexInFileMessages];
}
// ===================================================================
EchoService::~EchoService() {}
const ::google::protobuf::ServiceDescriptor* EchoService::descriptor() {
protobuf_echo_5ftest_2eproto::protobuf_AssignDescriptorsOnce();
return protobuf_echo_5ftest_2eproto::file_level_service_descriptors[0];
}
const ::google::protobuf::ServiceDescriptor* EchoService::GetDescriptor() {
return descriptor();
}
void EchoService::echo(::google::protobuf::RpcController* controller,
const ::echo::RequestMessage*,
::echo::ResponseMessage*,
::google::protobuf::Closure* done) {
controller->SetFailed("Method echo() not implemented.");
done->Run();
}
void EchoService::CallMethod(const ::google::protobuf::MethodDescriptor* method,
::google::protobuf::RpcController* controller,
const ::google::protobuf::Message* request,
::google::protobuf::Message* response,
::google::protobuf::Closure* done) {
GOOGLE_DCHECK_EQ(method->service(), protobuf_echo_5ftest_2eproto::file_level_service_descriptors[0]);
switch(method->index()) {
case 0:
echo(controller,
::google::protobuf::down_cast<const ::echo::RequestMessage*>(request),
::google::protobuf::down_cast< ::echo::ResponseMessage*>(response),
done);
break;
default:
GOOGLE_LOG(FATAL) << "Bad method index; this should never happen.";
break;
}
}
const ::google::protobuf::Message& EchoService::GetRequestPrototype(
const ::google::protobuf::MethodDescriptor* method) const {
GOOGLE_DCHECK_EQ(method->service(), descriptor());
switch(method->index()) {
case 0:
return ::echo::RequestMessage::default_instance();
default:
GOOGLE_LOG(FATAL) << "Bad method index; this should never happen.";
return *::google::protobuf::MessageFactory::generated_factory()
->GetPrototype(method->input_type());
}
}
const ::google::protobuf::Message& EchoService::GetResponsePrototype(
const ::google::protobuf::MethodDescriptor* method) const {
GOOGLE_DCHECK_EQ(method->service(), descriptor());
switch(method->index()) {
case 0:
return ::echo::ResponseMessage::default_instance();
default:
GOOGLE_LOG(FATAL) << "Bad method index; this should never happen.";
return *::google::protobuf::MessageFactory::generated_factory()
->GetPrototype(method->output_type());
}
}
EchoService_Stub::EchoService_Stub(::google::protobuf::RpcChannel* channel)
: channel_(channel), owns_channel_(false) {}
EchoService_Stub::EchoService_Stub(
::google::protobuf::RpcChannel* channel,
::google::protobuf::Service::ChannelOwnership ownership)
: channel_(channel),
owns_channel_(ownership == ::google::protobuf::Service::STUB_OWNS_CHANNEL) {}
EchoService_Stub::~EchoService_Stub() {
if (owns_channel_) delete channel_;
}
void EchoService_Stub::echo(::google::protobuf::RpcController* controller,
const ::echo::RequestMessage* request,
::echo::ResponseMessage* response,
::google::protobuf::Closure* done) {
channel_->CallMethod(descriptor()->method(0),
controller, request, response, done);
}
// @@protoc_insertion_point(namespace_scope)
} // namespace echo
// @@protoc_insertion_point(global_scope)
| 36.683894 | 168 | 0.708135 |
09ed8ae6f9161309aab513e3acd85580da208796 | 83 | cpp | C++ | Build Systems/CommandLine/HelloBeatles/src/johnpaul/john.cpp | prynix/learning-programming | 85aea40a61fb824a2b4e142331d9ac7971fef263 | [
"MIT"
] | 2 | 2017-03-14T16:02:08.000Z | 2017-05-02T13:48:18.000Z | Build Systems/CommandLine/HelloBeatles/src/johnpaul/john.cpp | CajetanP/learning-programming | 85aea40a61fb824a2b4e142331d9ac7971fef263 | [
"MIT"
] | 4 | 2021-05-20T21:10:13.000Z | 2022-02-26T09:50:19.000Z | Build Systems/CommandLine/HelloBeatles/src/johnpaul/john.cpp | CajetanP/learning-programming | 85aea40a61fb824a2b4e142331d9ac7971fef263 | [
"MIT"
] | 1 | 2021-06-18T01:31:24.000Z | 2021-06-18T01:31:24.000Z |
#include <iostream>
#include "john.hpp"
void john () {
std::cout << "John, ";
}
| 10.375 | 23 | 0.578313 |
09f1e6a2325353bc86a80ee5418c6718e4dc34e1 | 438,576 | cpp | C++ | MRTK/h/Il2CppOutputProject/Source/il2cppOutput/Il2CppCCWs60.cpp | DreVinciCode/TEAM-08 | 4f148953a9f492c0fc0db7ee85803212caa1a579 | [
"MIT"
] | null | null | null | MRTK/h/Il2CppOutputProject/Source/il2cppOutput/Il2CppCCWs60.cpp | DreVinciCode/TEAM-08 | 4f148953a9f492c0fc0db7ee85803212caa1a579 | [
"MIT"
] | null | null | null | MRTK/h/Il2CppOutputProject/Source/il2cppOutput/Il2CppCCWs60.cpp | DreVinciCode/TEAM-08 | 4f148953a9f492c0fc0db7ee85803212caa1a579 | [
"MIT"
] | null | null | null | #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"
// System.Collections.Generic.Dictionary`2<Microsoft.MixedReality.Toolkit.Input.IMixedRealityPointer,System.UInt32>
struct Dictionary_2_t40AD0E25A9C651DF2D10B7C03EE5D87856C2A72D;
// System.Collections.Generic.Dictionary`2<Microsoft.MixedReality.Toolkit.Input.IMixedRealityPointer,Microsoft.MixedReality.Toolkit.Input.DefaultPrimaryPointerSelector/PointerInfo>
struct Dictionary_2_tD050BE59829C217DD2B9F4B736D98C20B9D4EE71;
// System.Collections.Generic.Dictionary`2<Microsoft.MixedReality.Toolkit.IMixedRealityServiceRegistrar,System.Collections.Generic.List`1<Microsoft.MixedReality.Toolkit.IMixedRealityService>>
struct Dictionary_2_t4AC71EA65545B632470648515DE39A246064FCDF;
// System.Collections.Generic.Dictionary`2<Microsoft.MixedReality.Toolkit.UI.BoundsControl.IProximityEffectObjectProvider,System.Collections.Generic.List`1<Microsoft.MixedReality.Toolkit.UI.BoundsControl.ProximityEffect/ObjectProximityInfo>>
struct Dictionary_2_t68198EC07801AB75028C8EB074F131B5777857D3;
// System.Collections.Generic.Dictionary`2<UnityEngine.XR.InputDevice,Microsoft.MixedReality.Toolkit.XRSDK.Input.GenericXRSDKController>
struct Dictionary_2_tA0FD2AFAAFE4AEDFD84AEE2B7DA1E4180E174DBF;
// System.Collections.Generic.Dictionary`2<System.Int32,System.Tuple`2<Microsoft.MixedReality.Toolkit.Input.KeyBinding/KeyType,System.Int32>>
struct Dictionary_2_t7F65F6FAB0107F959C0877510BFD8595B311C142;
// System.Collections.Generic.Dictionary`2<System.Int32,System.Boolean>
struct Dictionary_2_t446D8FCE66ED404E00855B46A520AB382A69EFF1;
// System.Collections.Generic.Dictionary`2<System.Int32,System.Char>
struct Dictionary_2_tB8FA8FEFBC38630BF40B59A6B474816F30D29B23;
// System.Collections.Generic.Dictionary`2<System.Int32,System.Globalization.CultureInfo>
struct Dictionary_2_t5B8303F2C9869A39ED3E03C0FBB09F817E479402;
// System.Collections.Generic.Dictionary`2<System.Int32,System.Int32>
struct Dictionary_2_t49CB072CAA9184D326107FA696BB354C43EB5E08;
// System.Collections.Generic.Dictionary`2<System.Int32,System.Int64>
struct Dictionary_2_t9AE0BA863BA88FABCBFC4CA835E0A6E00D948984;
// System.Collections.Generic.Dictionary`2<System.Int32,UnityEngine.Material>
struct Dictionary_2_tE3F17FC57643708975DF2782661AFB9CB1687991;
// System.Collections.Generic.Dictionary`2<System.Int32,UnityEngine.EventSystems.PointerEventData>
struct Dictionary_2_t52ECB6047A9EDAD198D0CC53F331CDEAAA83BED8;
// System.Collections.Generic.Dictionary`2<System.Int32,Microsoft.MixedReality.Toolkit.SpatialAwareness.SpatialAwarenessMeshObject>
struct Dictionary_2_tBFEF92C709D6CF5C8220E4553DF6064FCB30A49B;
// System.Collections.Generic.Dictionary`2<System.Int32,System.String>
struct Dictionary_2_t0ACB62D0885C7AB376463C70665400A39808C5FB;
// System.Collections.Generic.Dictionary`2<System.Int32,TMPro.TMP_ColorGradient>
struct Dictionary_2_t83EDCEFCBB12C89A61745514957F522FEF34EAE1;
// System.Collections.Generic.Dictionary`2<System.Int32,TMPro.TMP_FontAsset>
struct Dictionary_2_tAB557C4BCEBDF7E2339209187287588CF6C63579;
// System.Collections.Generic.Dictionary`2<System.Int32,TMPro.TMP_SpriteAsset>
struct Dictionary_2_t6A406AC36627118EE2E0E5BBCE5CF76FC9C5CE1F;
// System.Collections.Generic.Dictionary`2<System.Int32,TMPro.TMP_Style>
struct Dictionary_2_tF4EABB89111A0E30158256A3B667C7770E384763;
// System.Collections.Generic.Dictionary`2<System.Int32,System.Threading.Tasks.Task>
struct Dictionary_2_tB758E2A2593CD827EFC041BE1F1BB4B68DE1C3E8;
// System.Collections.Generic.Dictionary`2<System.Int32,System.TimeType>
struct Dictionary_2_t5D8E184D8FCD474C100BFB072548D71B5B758D72;
// System.Collections.Generic.Dictionary`2<System.Int32,Microsoft.MixedReality.Toolkit.Input.UnityInput.UnityTouchController>
struct Dictionary_2_tE6AD801A6392CDC6C5B2E0594CCC432F0C21037C;
// System.Collections.Generic.Dictionary`2<System.Int32,UnityEngine.GUILayoutUtility/LayoutCache>
struct Dictionary_2_t3FDB6C5EC702844ACB5B417679E01D7C1DCBA4D4;
// System.Collections.Generic.Dictionary`2<System.Int32,Microsoft.MixedReality.Toolkit.Input.MixedRealityInputModule/PointerData>
struct Dictionary_2_tB7478EF7A1D56D0534BD9AF224099A735CEFB6E6;
// System.Collections.Generic.Dictionary`2<System.Int32,UnityEngine.Experimental.TerrainAPI.TerrainUtility/TerrainMap>
struct Dictionary_2_t8BE99204247C1C97B2675C8E9AB2B482BADCD725;
// System.Collections.Generic.Dictionary`2<System.Int64,TMPro.TMP_MaterialManager/FallbackMaterial>
struct Dictionary_2_tF37F71739257A9F8484D38DF8ADAA587B68C88BE;
// System.Collections.Generic.Dictionary`2<UnityEngine.Mesh,Microsoft.MixedReality.Toolkit.Utilities.MeshSmoother/MeshReference>
struct Dictionary_2_tF0DE4461DF2636D9145F888111E2BE960C03322D;
// System.Collections.Generic.Dictionary`2<System.Reflection.MethodInfo,System.Collections.Generic.Dictionary`2<System.Object,System.Runtime.InteropServices.WindowsRuntime.WindowsRuntimeMarshal/EventRegistrationTokenList>>
struct Dictionary_2_t6C6D04C7C1300F445B3AE7ED8519CB478C0DBE40;
// System.Collections.Generic.Dictionary`2<System.Object,System.Runtime.InteropServices.WindowsRuntime.WindowsRuntimeMarshal/EventRegistrationTokenList>
struct Dictionary_2_t5BB631D653FC099355128DBC14DC44E27AD30739;
// System.Collections.Generic.Dictionary`2<UnityEngine.Renderer,System.Collections.Generic.List`1<UnityEngine.Material>>
struct Dictionary_2_t547EF37CA1540BB99B5AB9F9522E2722EB0FDE98;
// System.Collections.Generic.Dictionary`2<System.String,System.Collections.Generic.List`1<System.Int32>>
struct Dictionary_2_t0141BC6966873E9827CA2F0856EF6D6EA51AD929;
// System.Collections.Generic.Dictionary`2<System.String,System.Collections.Generic.Queue`1<UnityEngine.GameObject>>
struct Dictionary_2_tDE4EDBDC568FB033EAC636207097351E6DC14C3F;
// System.Collections.Generic.Dictionary`2<System.String,Microsoft.MixedReality.Toolkit.Experimental.InteractiveElement.BaseEventReceiver>
struct Dictionary_2_t0C12B4D9AB2F49DBABB410260E694A4799DCB205;
// System.Collections.Generic.Dictionary`2<System.String,System.Globalization.CultureInfo>
struct Dictionary_2_t0015CBF964B0687CBB5ECFDDE06671A8F3DDE4BC;
// System.Collections.Generic.ICollection`1<System.Collections.Generic.Dictionary`2<System.Object,System.Runtime.InteropServices.WindowsRuntime.WindowsRuntimeMarshal/EventRegistrationTokenList>>
struct ICollection_1_t404BE5E5AA4139016599832D6E27DF4B5FB8B4A7;
// System.Collections.Generic.ICollection`1<System.Collections.Generic.List`1<Microsoft.MixedReality.Toolkit.IMixedRealityService>>
struct ICollection_1_t68C8D63DEFC2EA91CFDDA6EF12CCB8B2686B9A67;
// System.Collections.Generic.ICollection`1<System.Collections.Generic.List`1<System.Int32>>
struct ICollection_1_t2E299E163B06823385C10FF80D10F25628F4976A;
// System.Collections.Generic.ICollection`1<System.Collections.Generic.List`1<UnityEngine.Material>>
struct ICollection_1_t476CEAF74BBA987572739B70382B462728A73A5D;
// System.Collections.Generic.ICollection`1<System.Collections.Generic.List`1<Microsoft.MixedReality.Toolkit.UI.BoundsControl.ProximityEffect/ObjectProximityInfo>>
struct ICollection_1_t01DA940D6840E8B1736C601E181DEB07F7C61B1B;
// System.Collections.Generic.ICollection`1<System.Collections.Generic.Queue`1<UnityEngine.GameObject>>
struct ICollection_1_t1BBA8FBDBF0ECFD16895F5537608EC08E5C0D839;
// System.Collections.Generic.ICollection`1<System.Tuple`2<Microsoft.MixedReality.Toolkit.Input.KeyBinding/KeyType,System.Int32>>
struct ICollection_1_t074636FC93CA9AF06A5436AE77D1958DAC606449;
// System.Collections.Generic.ICollection`1<System.Reflection.MemberInfo[]>
struct ICollection_1_t6CE0E8E5C74A9387B10346B773221924748B61FE;
// System.Collections.Generic.ICollection`1<Microsoft.MixedReality.Toolkit.Experimental.InteractiveElement.BaseEventReceiver>
struct ICollection_1_tBCD7CC44086FC9B137CA4EDC5F7F896B16DE42E9;
// System.Collections.Generic.ICollection`1<System.Boolean>
struct ICollection_1_t655D141A762682C0B23DCBB178920F6E16ACDCC1;
// System.Collections.Generic.ICollection`1<System.Char>
struct ICollection_1_t279C84C6E26447FCB987237160562DE753A402FB;
// System.Collections.Generic.ICollection`1<System.Globalization.CultureInfo>
struct ICollection_1_tF0D51A10F099E0CDFCF106C18CBEA5897FB23DA7;
// System.Collections.Generic.ICollection`1<Microsoft.MixedReality.Toolkit.XRSDK.Input.GenericXRSDKController>
struct ICollection_1_tD1F090F4141D05BD8E9C66862CFA0E80465120B2;
// System.Collections.Generic.ICollection`1<System.Int32>
struct ICollection_1_t1C0C51B19916511E9D525272F055515334C93525;
// System.Collections.Generic.ICollection`1<System.Int64>
struct ICollection_1_t8C5F082A91912BD5FF56F069099F2C862A275D47;
// System.Collections.Generic.ICollection`1<UnityEngine.Material>
struct ICollection_1_t82DBD7463454EF1C2A79712ACD1DD0947EC30A0E;
// System.Collections.Generic.ICollection`1<UnityEngine.EventSystems.PointerEventData>
struct ICollection_1_tCEF2F3FE0351562156067618ADB16EDE11613F35;
// System.Collections.Generic.ICollection`1<Microsoft.MixedReality.Toolkit.SpatialAwareness.SpatialAwarenessMeshObject>
struct ICollection_1_t2F883C1BE240BCF2CFF76DCC9DDC47313B99C384;
// System.Collections.Generic.ICollection`1<System.String>
struct ICollection_1_t286AA3BBFF7FCE401FEFF57AEEC4FDAABA9F95B1;
// System.Collections.Generic.ICollection`1<TMPro.TMP_ColorGradient>
struct ICollection_1_tF5379C2815E0E8F2136BC63FD64435645649D350;
// System.Collections.Generic.ICollection`1<TMPro.TMP_FontAsset>
struct ICollection_1_tF95FC75A0AA66FEB725C072EB65506B7A0CE5A56;
// System.Collections.Generic.ICollection`1<TMPro.TMP_SpriteAsset>
struct ICollection_1_t12BE86AD0CF92F4C49C76CE628675FBC1E6BD564;
// System.Collections.Generic.ICollection`1<TMPro.TMP_Style>
struct ICollection_1_tDE3CD0A877F812B6FA0234CE2B11D90AAB8BF459;
// System.Collections.Generic.ICollection`1<System.Threading.Tasks.Task>
struct ICollection_1_t170EC74C9EBD063821F8431C6A942A9387BC7BAB;
// System.Collections.Generic.ICollection`1<System.TimeType>
struct ICollection_1_t0DAECD968E7904AC3430BC643464715E4475BED5;
// System.Collections.Generic.ICollection`1<System.UInt32>
struct ICollection_1_tE23809439C40C6ABE4868D40BCE1C6E268DEBBD7;
// System.Collections.Generic.ICollection`1<Microsoft.MixedReality.Toolkit.Input.UnityInput.UnityTouchController>
struct ICollection_1_t516FBFF517489BC3F6DE4DED1806E364F64780E0;
// System.Collections.Generic.ICollection`1<Microsoft.MixedReality.Toolkit.Input.DefaultPrimaryPointerSelector/PointerInfo>
struct ICollection_1_t031F795293E3BA995C192E919CE4D0687EB57185;
// System.Collections.Generic.ICollection`1<UnityEngine.GUILayoutUtility/LayoutCache>
struct ICollection_1_t686E05F85D0E6C53858707C8C6BD7D2DDBCA296C;
// System.Collections.Generic.ICollection`1<Microsoft.MixedReality.Toolkit.Utilities.MeshSmoother/MeshReference>
struct ICollection_1_tA8CD678A9F004E931DA1DADD342794724BDFE00B;
// System.Collections.Generic.ICollection`1<Microsoft.MixedReality.Toolkit.Input.MixedRealityInputModule/PointerData>
struct ICollection_1_t06AF48EEAA9A77EAFE51AE10F873B9DD584D9FD2;
// System.Collections.Generic.ICollection`1<TMPro.TMP_MaterialManager/FallbackMaterial>
struct ICollection_1_tDC8C7413D5AB756EAEE0C1BAFB6A4E37F06588F3;
// System.Collections.Generic.ICollection`1<UnityEngine.Experimental.TerrainAPI.TerrainUtility/TerrainMap>
struct ICollection_1_t27E3D670A7C968F2A776C879EF4D7841B628059A;
// System.Collections.Generic.ICollection`1<System.Runtime.InteropServices.WindowsRuntime.WindowsRuntimeMarshal/EventRegistrationTokenList>
struct ICollection_1_tD00D7894210B94B1703E352E4AF0C6776E3932FD;
struct IBindableIterator_tD7550F1144CFBE58090050457A2BE92B1CAEABBB;
struct IIterator_1_t02E2BD99A6F2FDED0070DCE99953C4927747C248;
struct IIterator_1_t125F1266580B29D637CD7546CA3812EB7C0B0D9D;
struct IIterator_1_t3FD87DAE4281E0090447733627B3A0BA377B6CEC;
struct IIterator_1_t6407EDB3A3187B31D54D9B4E941F88F529FCE4B3;
struct IIterator_1_t6A46A7244E5AAD0AE4F2A07AF43DA5052D55F4A4;
struct IIterator_1_t76B4F2A2B99659B935148C20E12CDDF5018A3267;
struct IIterator_1_t966CEB5AF294B82E90C669B54974D432637938CF;
struct IIterator_1_tB1AB5AB497E87D6A397AA084D3D3D6B8D211022C;
struct IIterator_1_tC3877F062B34DD4C7EA4B4D797B326073FC95B72;
struct IIterator_1_tC66AB251038F529F8EA4926CBFFB3A97C323B58D;
struct IIterator_1_tD5C5DE60C4A835F60D32B19C44430B59B26BFA67;
struct IIterator_1_tE13F884343548B90CBE44A0A597D5A31E29178BF;
struct IIterator_1_tE26006BA89CCCFA23A4E08D14138F4CA88B7902D;
struct IIterator_1_tE49C1648FC94E093BCD82BA18359053328200C9F;
struct IIterator_1_tE84305D19EB46B9DD6D1B86BE7195EBA9B09BF2D;
struct IIterator_1_tF5EE7B485ADAC2DE9A72944EAA6F7C75F52ED6BA;
struct IIterator_1_tF6C570C031F6203C0401C0DC0B69FCE361F7062E;
struct IIterator_1_tFF647CAD19D34FD0606CDD3425C431F82B94589C;
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.Char>>
struct NOVTABLE IIterable_1_t05BE14C1DEA010486117E0E313F29EF024BDB2BF : Il2CppIInspectable
{
static const Il2CppGuid IID;
virtual il2cpp_hresult_t STDCALL IIterable_1_First_mD8D790F1EED3414261E3D73A15AA6B40BD8B4A87(IIterator_1_t966CEB5AF294B82E90C669B54974D432637938CF** comReturnValue) = 0;
};
// Windows.Foundation.Collections.IIterable`1<System.Collections.Generic.IEnumerable`1<System.IDisposable>>
struct NOVTABLE IIterable_1_t65C1CF61727FBB13369E9B777E6EA4756FFD7E3D : Il2CppIInspectable
{
static const Il2CppGuid IID;
virtual il2cpp_hresult_t STDCALL IIterable_1_First_m2B4221348B2704C13FAEA47E445A5266F50F0552(IIterator_1_tE49C1648FC94E093BCD82BA18359053328200C9F** comReturnValue) = 0;
};
// Windows.Foundation.Collections.IIterable`1<System.Collections.Generic.IEnumerable`1<System.Int32>>
struct NOVTABLE IIterable_1_tAC6B6C1A7ECF33EE15C94CDDD30ACC7A9CE98004 : Il2CppIInspectable
{
static const Il2CppGuid IID;
virtual il2cpp_hresult_t STDCALL IIterable_1_First_mE0EF757DC8E58BB169C78D378571014C172F6240(IIterator_1_tE26006BA89CCCFA23A4E08D14138F4CA88B7902D** comReturnValue) = 0;
};
// 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.Collections.Generic.IList`1<System.Int32>>
struct NOVTABLE IIterable_1_t5CB142C4A47D31ACB8B355C41740914CC985F378 : Il2CppIInspectable
{
static const Il2CppGuid IID;
virtual il2cpp_hresult_t STDCALL IIterable_1_First_m5654F86BC6ACA9944E4840952F197CD3256A1ED8(IIterator_1_tF5EE7B485ADAC2DE9A72944EAA6F7C75F52ED6BA** comReturnValue) = 0;
};
// Windows.Foundation.Collections.IIterable`1<System.Collections.Generic.IReadOnlyList`1<System.IDisposable>>
struct NOVTABLE IIterable_1_tDA7BDBC19E1812C5ACD6E546F60391ADC6E2CE58 : Il2CppIInspectable
{
static const Il2CppGuid IID;
virtual il2cpp_hresult_t STDCALL IIterable_1_First_m4F1ECE8DFCABEDF6BA2C0C3ABC35C492F13541E6(IIterator_1_tF6C570C031F6203C0401C0DC0B69FCE361F7062E** comReturnValue) = 0;
};
// Windows.Foundation.Collections.IIterable`1<System.Collections.Generic.IReadOnlyList`1<System.Int32>>
struct NOVTABLE IIterable_1_t2702F7342BF99284890A03EDD178F218B730190E : Il2CppIInspectable
{
static const Il2CppGuid IID;
virtual il2cpp_hresult_t STDCALL IIterable_1_First_m7A9BBDC56E34A2D92A5AB578D200EB1D2E67A77B(IIterator_1_t02E2BD99A6F2FDED0070DCE99953C4927747C248** comReturnValue) = 0;
};
// Windows.Foundation.Collections.IIterable`1<System.Collections.Generic.IReadOnlyList`1<System.Object>>
struct NOVTABLE IIterable_1_t1FE40219CF2EA9D14D69F038AAD3EC908A8FE771 : Il2CppIInspectable
{
static const Il2CppGuid IID;
virtual il2cpp_hresult_t STDCALL IIterable_1_First_m9A24DB3CFEE6B2D8C04AD194AC25CEA2597B8D3F(IIterator_1_t6407EDB3A3187B31D54D9B4E941F88F529FCE4B3** 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.Char>
struct NOVTABLE IIterable_1_t76BB785EC29C8526627DE0ACEA068DB15E5388CE : Il2CppIInspectable
{
static const Il2CppGuid IID;
virtual il2cpp_hresult_t STDCALL IIterable_1_First_mB416B18AB4E9562AAD05C38EB9AD14CC685574CA(IIterator_1_tC3877F062B34DD4C7EA4B4D797B326073FC95B72** comReturnValue) = 0;
};
// Windows.Foundation.Collections.IIterable`1<System.IDisposable>
struct NOVTABLE IIterable_1_t5F4BD9477DDC56D9428ADFFD61354FCFE2E78588 : Il2CppIInspectable
{
static const Il2CppGuid IID;
virtual il2cpp_hresult_t STDCALL IIterable_1_First_mDDCB90F64D3007CB280F2A112BFB11FEDF4CF937(IIterator_1_tE84305D19EB46B9DD6D1B86BE7195EBA9B09BF2D** 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.Collections.IList>
struct NOVTABLE IIterable_1_tDA0D1077EFCD7389A5AD5BF4D598F22A450175CD : Il2CppIInspectable
{
static const Il2CppGuid IID;
virtual il2cpp_hresult_t STDCALL IIterable_1_First_m5AA74545514CBE1B8F27A3AD8AB35879FA66F2BB(IIterator_1_t76B4F2A2B99659B935148C20E12CDDF5018A3267** 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.Int64>
struct NOVTABLE IIterable_1_t30CEC1AA394C5CCDA490BB4CE97C7A91D3122A6F : Il2CppIInspectable
{
static const Il2CppGuid IID;
virtual il2cpp_hresult_t STDCALL IIterable_1_First_mFE037A1FA26B15187119714FC35E6254FAE04579(IIterator_1_t3FD87DAE4281E0090447733627B3A0BA377B6CEC** 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.Foundation.Collections.IIterable`1<System.String>
struct NOVTABLE IIterable_1_t94592E586C395F026290ACC676E74C560595CC26 : Il2CppIInspectable
{
static const Il2CppGuid IID;
virtual il2cpp_hresult_t STDCALL IIterable_1_First_m03F765E1BD333E4E315525DE80BF54183A4D54D7(IIterator_1_t125F1266580B29D637CD7546CA3812EB7C0B0D9D** comReturnValue) = 0;
};
// Windows.Foundation.Collections.IIterable`1<System.UInt32>
struct NOVTABLE IIterable_1_t2765EC2E965992FAB9B7FDB2DB5E7FFA10D61BAB : Il2CppIInspectable
{
static const Il2CppGuid IID;
virtual il2cpp_hresult_t STDCALL IIterable_1_First_m4E590558B8FE1D4FA427F8F876803D1F68F7D100(IIterator_1_tC66AB251038F529F8EA4926CBFFB3A97C323B58D** 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;
};
// System.Object
// System.Collections.Generic.Dictionary`2/ValueCollection<Microsoft.MixedReality.Toolkit.Input.IMixedRealityPointer,System.UInt32>
struct ValueCollection_t262615E8969959039536C1062446C359A19AB126 : public RuntimeObject
{
public:
// System.Collections.Generic.Dictionary`2<TKey,TValue> System.Collections.Generic.Dictionary`2/ValueCollection::dictionary
Dictionary_2_t40AD0E25A9C651DF2D10B7C03EE5D87856C2A72D * ___dictionary_0;
public:
inline static int32_t get_offset_of_dictionary_0() { return static_cast<int32_t>(offsetof(ValueCollection_t262615E8969959039536C1062446C359A19AB126, ___dictionary_0)); }
inline Dictionary_2_t40AD0E25A9C651DF2D10B7C03EE5D87856C2A72D * get_dictionary_0() const { return ___dictionary_0; }
inline Dictionary_2_t40AD0E25A9C651DF2D10B7C03EE5D87856C2A72D ** get_address_of_dictionary_0() { return &___dictionary_0; }
inline void set_dictionary_0(Dictionary_2_t40AD0E25A9C651DF2D10B7C03EE5D87856C2A72D * value)
{
___dictionary_0 = value;
Il2CppCodeGenWriteBarrier((void**)(&___dictionary_0), (void*)value);
}
};
// System.Collections.ObjectModel.ReadOnlyDictionary`2/ValueCollection<Microsoft.MixedReality.Toolkit.Input.IMixedRealityPointer,System.UInt32>
struct ValueCollection_t1E4D1EF76B873007C8DB78EA85A8171F9EF4DCB0 : 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_t1E4D1EF76B873007C8DB78EA85A8171F9EF4DCB0, ___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_t1E4D1EF76B873007C8DB78EA85A8171F9EF4DCB0, ___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.IMixedRealityPointer,Microsoft.MixedReality.Toolkit.Input.DefaultPrimaryPointerSelector/PointerInfo>
struct ValueCollection_t93BBCE4C284B2C998882FE9B39645E940AF2ACD0 : public RuntimeObject
{
public:
// System.Collections.Generic.Dictionary`2<TKey,TValue> System.Collections.Generic.Dictionary`2/ValueCollection::dictionary
Dictionary_2_tD050BE59829C217DD2B9F4B736D98C20B9D4EE71 * ___dictionary_0;
public:
inline static int32_t get_offset_of_dictionary_0() { return static_cast<int32_t>(offsetof(ValueCollection_t93BBCE4C284B2C998882FE9B39645E940AF2ACD0, ___dictionary_0)); }
inline Dictionary_2_tD050BE59829C217DD2B9F4B736D98C20B9D4EE71 * get_dictionary_0() const { return ___dictionary_0; }
inline Dictionary_2_tD050BE59829C217DD2B9F4B736D98C20B9D4EE71 ** get_address_of_dictionary_0() { return &___dictionary_0; }
inline void set_dictionary_0(Dictionary_2_tD050BE59829C217DD2B9F4B736D98C20B9D4EE71 * value)
{
___dictionary_0 = value;
Il2CppCodeGenWriteBarrier((void**)(&___dictionary_0), (void*)value);
}
};
// System.Collections.ObjectModel.ReadOnlyDictionary`2/ValueCollection<Microsoft.MixedReality.Toolkit.Input.IMixedRealityPointer,Microsoft.MixedReality.Toolkit.Input.DefaultPrimaryPointerSelector/PointerInfo>
struct ValueCollection_tC444032476362E68BB3BB9C95FAD70933A2B58D1 : 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_tC444032476362E68BB3BB9C95FAD70933A2B58D1, ___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_tC444032476362E68BB3BB9C95FAD70933A2B58D1, ___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.IMixedRealityServiceRegistrar,System.Collections.Generic.List`1<Microsoft.MixedReality.Toolkit.IMixedRealityService>>
struct ValueCollection_t6182E1C54EEAB1FF3F9D23E7264092C56639BE18 : public RuntimeObject
{
public:
// System.Collections.Generic.Dictionary`2<TKey,TValue> System.Collections.Generic.Dictionary`2/ValueCollection::dictionary
Dictionary_2_t4AC71EA65545B632470648515DE39A246064FCDF * ___dictionary_0;
public:
inline static int32_t get_offset_of_dictionary_0() { return static_cast<int32_t>(offsetof(ValueCollection_t6182E1C54EEAB1FF3F9D23E7264092C56639BE18, ___dictionary_0)); }
inline Dictionary_2_t4AC71EA65545B632470648515DE39A246064FCDF * get_dictionary_0() const { return ___dictionary_0; }
inline Dictionary_2_t4AC71EA65545B632470648515DE39A246064FCDF ** get_address_of_dictionary_0() { return &___dictionary_0; }
inline void set_dictionary_0(Dictionary_2_t4AC71EA65545B632470648515DE39A246064FCDF * value)
{
___dictionary_0 = value;
Il2CppCodeGenWriteBarrier((void**)(&___dictionary_0), (void*)value);
}
};
// System.Collections.ObjectModel.ReadOnlyDictionary`2/ValueCollection<Microsoft.MixedReality.Toolkit.IMixedRealityServiceRegistrar,System.Collections.Generic.List`1<Microsoft.MixedReality.Toolkit.IMixedRealityService>>
struct ValueCollection_tF44BF18D44BA0AE2BDA6463963C8A6C3BB077529 : 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_tF44BF18D44BA0AE2BDA6463963C8A6C3BB077529, ___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_tF44BF18D44BA0AE2BDA6463963C8A6C3BB077529, ___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.UI.BoundsControl.IProximityEffectObjectProvider,System.Collections.Generic.List`1<Microsoft.MixedReality.Toolkit.UI.BoundsControl.ProximityEffect/ObjectProximityInfo>>
struct ValueCollection_t35EEE5F7625928EBEECE80818253291F7DA62F3F : public RuntimeObject
{
public:
// System.Collections.Generic.Dictionary`2<TKey,TValue> System.Collections.Generic.Dictionary`2/ValueCollection::dictionary
Dictionary_2_t68198EC07801AB75028C8EB074F131B5777857D3 * ___dictionary_0;
public:
inline static int32_t get_offset_of_dictionary_0() { return static_cast<int32_t>(offsetof(ValueCollection_t35EEE5F7625928EBEECE80818253291F7DA62F3F, ___dictionary_0)); }
inline Dictionary_2_t68198EC07801AB75028C8EB074F131B5777857D3 * get_dictionary_0() const { return ___dictionary_0; }
inline Dictionary_2_t68198EC07801AB75028C8EB074F131B5777857D3 ** get_address_of_dictionary_0() { return &___dictionary_0; }
inline void set_dictionary_0(Dictionary_2_t68198EC07801AB75028C8EB074F131B5777857D3 * value)
{
___dictionary_0 = value;
Il2CppCodeGenWriteBarrier((void**)(&___dictionary_0), (void*)value);
}
};
// System.Collections.ObjectModel.ReadOnlyDictionary`2/ValueCollection<Microsoft.MixedReality.Toolkit.UI.BoundsControl.IProximityEffectObjectProvider,System.Collections.Generic.List`1<Microsoft.MixedReality.Toolkit.UI.BoundsControl.ProximityEffect/ObjectProximityInfo>>
struct ValueCollection_t62D026783D1BDEA317AAC3A08FB50A983B717E52 : 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_t62D026783D1BDEA317AAC3A08FB50A983B717E52, ___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_t62D026783D1BDEA317AAC3A08FB50A983B717E52, ___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.XR.InputDevice,Microsoft.MixedReality.Toolkit.XRSDK.Input.GenericXRSDKController>
struct ValueCollection_tCCE813D240C8630808B5BD3FA1A8FCD4B27AF60F : public RuntimeObject
{
public:
// System.Collections.Generic.Dictionary`2<TKey,TValue> System.Collections.Generic.Dictionary`2/ValueCollection::dictionary
Dictionary_2_tA0FD2AFAAFE4AEDFD84AEE2B7DA1E4180E174DBF * ___dictionary_0;
public:
inline static int32_t get_offset_of_dictionary_0() { return static_cast<int32_t>(offsetof(ValueCollection_tCCE813D240C8630808B5BD3FA1A8FCD4B27AF60F, ___dictionary_0)); }
inline Dictionary_2_tA0FD2AFAAFE4AEDFD84AEE2B7DA1E4180E174DBF * get_dictionary_0() const { return ___dictionary_0; }
inline Dictionary_2_tA0FD2AFAAFE4AEDFD84AEE2B7DA1E4180E174DBF ** get_address_of_dictionary_0() { return &___dictionary_0; }
inline void set_dictionary_0(Dictionary_2_tA0FD2AFAAFE4AEDFD84AEE2B7DA1E4180E174DBF * value)
{
___dictionary_0 = value;
Il2CppCodeGenWriteBarrier((void**)(&___dictionary_0), (void*)value);
}
};
// System.Collections.ObjectModel.ReadOnlyDictionary`2/ValueCollection<UnityEngine.XR.InputDevice,Microsoft.MixedReality.Toolkit.XRSDK.Input.GenericXRSDKController>
struct ValueCollection_t2BB87BC48FD0FB932E61C48D019D0F7909C8BFF7 : 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_t2BB87BC48FD0FB932E61C48D019D0F7909C8BFF7, ___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_t2BB87BC48FD0FB932E61C48D019D0F7909C8BFF7, ___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.Int32,System.Tuple`2<Microsoft.MixedReality.Toolkit.Input.KeyBinding/KeyType,System.Int32>>
struct ValueCollection_t1F82D536EB8FBE64609987D28E158B8B5A578992 : public RuntimeObject
{
public:
// System.Collections.Generic.Dictionary`2<TKey,TValue> System.Collections.Generic.Dictionary`2/ValueCollection::dictionary
Dictionary_2_t7F65F6FAB0107F959C0877510BFD8595B311C142 * ___dictionary_0;
public:
inline static int32_t get_offset_of_dictionary_0() { return static_cast<int32_t>(offsetof(ValueCollection_t1F82D536EB8FBE64609987D28E158B8B5A578992, ___dictionary_0)); }
inline Dictionary_2_t7F65F6FAB0107F959C0877510BFD8595B311C142 * get_dictionary_0() const { return ___dictionary_0; }
inline Dictionary_2_t7F65F6FAB0107F959C0877510BFD8595B311C142 ** get_address_of_dictionary_0() { return &___dictionary_0; }
inline void set_dictionary_0(Dictionary_2_t7F65F6FAB0107F959C0877510BFD8595B311C142 * value)
{
___dictionary_0 = value;
Il2CppCodeGenWriteBarrier((void**)(&___dictionary_0), (void*)value);
}
};
// System.Collections.ObjectModel.ReadOnlyDictionary`2/ValueCollection<System.Int32,System.Tuple`2<Microsoft.MixedReality.Toolkit.Input.KeyBinding/KeyType,System.Int32>>
struct ValueCollection_t090E0538F1546987A3F3A3F9B204780DCF28E34A : 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_t090E0538F1546987A3F3A3F9B204780DCF28E34A, ___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_t090E0538F1546987A3F3A3F9B204780DCF28E34A, ___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.Int32,System.Boolean>
struct ValueCollection_tAC9371FC72C759652E224BBBE13669CD7F4FC7EC : public RuntimeObject
{
public:
// System.Collections.Generic.Dictionary`2<TKey,TValue> System.Collections.Generic.Dictionary`2/ValueCollection::dictionary
Dictionary_2_t446D8FCE66ED404E00855B46A520AB382A69EFF1 * ___dictionary_0;
public:
inline static int32_t get_offset_of_dictionary_0() { return static_cast<int32_t>(offsetof(ValueCollection_tAC9371FC72C759652E224BBBE13669CD7F4FC7EC, ___dictionary_0)); }
inline Dictionary_2_t446D8FCE66ED404E00855B46A520AB382A69EFF1 * get_dictionary_0() const { return ___dictionary_0; }
inline Dictionary_2_t446D8FCE66ED404E00855B46A520AB382A69EFF1 ** get_address_of_dictionary_0() { return &___dictionary_0; }
inline void set_dictionary_0(Dictionary_2_t446D8FCE66ED404E00855B46A520AB382A69EFF1 * value)
{
___dictionary_0 = value;
Il2CppCodeGenWriteBarrier((void**)(&___dictionary_0), (void*)value);
}
};
// System.Collections.ObjectModel.ReadOnlyDictionary`2/ValueCollection<System.Int32,System.Boolean>
struct ValueCollection_tB51F603A239485F05720315028C603D2DC30180E : 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_tB51F603A239485F05720315028C603D2DC30180E, ___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_tB51F603A239485F05720315028C603D2DC30180E, ___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.Int32,System.Char>
struct ValueCollection_tDEA922C20FE7390F1063807C7F0EAE8B2C022A7B : public RuntimeObject
{
public:
// System.Collections.Generic.Dictionary`2<TKey,TValue> System.Collections.Generic.Dictionary`2/ValueCollection::dictionary
Dictionary_2_tB8FA8FEFBC38630BF40B59A6B474816F30D29B23 * ___dictionary_0;
public:
inline static int32_t get_offset_of_dictionary_0() { return static_cast<int32_t>(offsetof(ValueCollection_tDEA922C20FE7390F1063807C7F0EAE8B2C022A7B, ___dictionary_0)); }
inline Dictionary_2_tB8FA8FEFBC38630BF40B59A6B474816F30D29B23 * get_dictionary_0() const { return ___dictionary_0; }
inline Dictionary_2_tB8FA8FEFBC38630BF40B59A6B474816F30D29B23 ** get_address_of_dictionary_0() { return &___dictionary_0; }
inline void set_dictionary_0(Dictionary_2_tB8FA8FEFBC38630BF40B59A6B474816F30D29B23 * value)
{
___dictionary_0 = value;
Il2CppCodeGenWriteBarrier((void**)(&___dictionary_0), (void*)value);
}
};
// System.Collections.ObjectModel.ReadOnlyDictionary`2/ValueCollection<System.Int32,System.Char>
struct ValueCollection_t65BF5F1537D952260730F9EF31DFBCA90DA7FC5A : 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_t65BF5F1537D952260730F9EF31DFBCA90DA7FC5A, ___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_t65BF5F1537D952260730F9EF31DFBCA90DA7FC5A, ___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.Int32,System.Globalization.CultureInfo>
struct ValueCollection_tE84BE90A3A9ADA37C09165304138ECF878FE4ED7 : public RuntimeObject
{
public:
// System.Collections.Generic.Dictionary`2<TKey,TValue> System.Collections.Generic.Dictionary`2/ValueCollection::dictionary
Dictionary_2_t5B8303F2C9869A39ED3E03C0FBB09F817E479402 * ___dictionary_0;
public:
inline static int32_t get_offset_of_dictionary_0() { return static_cast<int32_t>(offsetof(ValueCollection_tE84BE90A3A9ADA37C09165304138ECF878FE4ED7, ___dictionary_0)); }
inline Dictionary_2_t5B8303F2C9869A39ED3E03C0FBB09F817E479402 * get_dictionary_0() const { return ___dictionary_0; }
inline Dictionary_2_t5B8303F2C9869A39ED3E03C0FBB09F817E479402 ** get_address_of_dictionary_0() { return &___dictionary_0; }
inline void set_dictionary_0(Dictionary_2_t5B8303F2C9869A39ED3E03C0FBB09F817E479402 * value)
{
___dictionary_0 = value;
Il2CppCodeGenWriteBarrier((void**)(&___dictionary_0), (void*)value);
}
};
// System.Collections.ObjectModel.ReadOnlyDictionary`2/ValueCollection<System.Int32,System.Globalization.CultureInfo>
struct ValueCollection_t76A1D105429D1EF9CA00AED8B612D7F5DEA1A0E1 : 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_t76A1D105429D1EF9CA00AED8B612D7F5DEA1A0E1, ___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_t76A1D105429D1EF9CA00AED8B612D7F5DEA1A0E1, ___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.Int32,System.Int32>
struct ValueCollection_t8738745D8513A557A82E6E097DF4D4E70D5253C2 : public RuntimeObject
{
public:
// System.Collections.Generic.Dictionary`2<TKey,TValue> System.Collections.Generic.Dictionary`2/ValueCollection::dictionary
Dictionary_2_t49CB072CAA9184D326107FA696BB354C43EB5E08 * ___dictionary_0;
public:
inline static int32_t get_offset_of_dictionary_0() { return static_cast<int32_t>(offsetof(ValueCollection_t8738745D8513A557A82E6E097DF4D4E70D5253C2, ___dictionary_0)); }
inline Dictionary_2_t49CB072CAA9184D326107FA696BB354C43EB5E08 * get_dictionary_0() const { return ___dictionary_0; }
inline Dictionary_2_t49CB072CAA9184D326107FA696BB354C43EB5E08 ** get_address_of_dictionary_0() { return &___dictionary_0; }
inline void set_dictionary_0(Dictionary_2_t49CB072CAA9184D326107FA696BB354C43EB5E08 * value)
{
___dictionary_0 = value;
Il2CppCodeGenWriteBarrier((void**)(&___dictionary_0), (void*)value);
}
};
// System.Collections.ObjectModel.ReadOnlyDictionary`2/ValueCollection<System.Int32,System.Int32>
struct ValueCollection_t48B58DEA6F5CF1E9959CC08347044FD1199BB39C : 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_t48B58DEA6F5CF1E9959CC08347044FD1199BB39C, ___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_t48B58DEA6F5CF1E9959CC08347044FD1199BB39C, ___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.Int32,System.Int64>
struct ValueCollection_tDD2C80682AF4CF18883668E136B1980110C79D95 : public RuntimeObject
{
public:
// System.Collections.Generic.Dictionary`2<TKey,TValue> System.Collections.Generic.Dictionary`2/ValueCollection::dictionary
Dictionary_2_t9AE0BA863BA88FABCBFC4CA835E0A6E00D948984 * ___dictionary_0;
public:
inline static int32_t get_offset_of_dictionary_0() { return static_cast<int32_t>(offsetof(ValueCollection_tDD2C80682AF4CF18883668E136B1980110C79D95, ___dictionary_0)); }
inline Dictionary_2_t9AE0BA863BA88FABCBFC4CA835E0A6E00D948984 * get_dictionary_0() const { return ___dictionary_0; }
inline Dictionary_2_t9AE0BA863BA88FABCBFC4CA835E0A6E00D948984 ** get_address_of_dictionary_0() { return &___dictionary_0; }
inline void set_dictionary_0(Dictionary_2_t9AE0BA863BA88FABCBFC4CA835E0A6E00D948984 * value)
{
___dictionary_0 = value;
Il2CppCodeGenWriteBarrier((void**)(&___dictionary_0), (void*)value);
}
};
// System.Collections.ObjectModel.ReadOnlyDictionary`2/ValueCollection<System.Int32,System.Int64>
struct ValueCollection_tDD3A2A47F1254D88628C68D87D830A584722012F : 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_tDD3A2A47F1254D88628C68D87D830A584722012F, ___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_tDD3A2A47F1254D88628C68D87D830A584722012F, ___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.Int32,UnityEngine.Material>
struct ValueCollection_t45CC083597229265F7ED085E423FB1A7BF762BA3 : public RuntimeObject
{
public:
// System.Collections.Generic.Dictionary`2<TKey,TValue> System.Collections.Generic.Dictionary`2/ValueCollection::dictionary
Dictionary_2_tE3F17FC57643708975DF2782661AFB9CB1687991 * ___dictionary_0;
public:
inline static int32_t get_offset_of_dictionary_0() { return static_cast<int32_t>(offsetof(ValueCollection_t45CC083597229265F7ED085E423FB1A7BF762BA3, ___dictionary_0)); }
inline Dictionary_2_tE3F17FC57643708975DF2782661AFB9CB1687991 * get_dictionary_0() const { return ___dictionary_0; }
inline Dictionary_2_tE3F17FC57643708975DF2782661AFB9CB1687991 ** get_address_of_dictionary_0() { return &___dictionary_0; }
inline void set_dictionary_0(Dictionary_2_tE3F17FC57643708975DF2782661AFB9CB1687991 * value)
{
___dictionary_0 = value;
Il2CppCodeGenWriteBarrier((void**)(&___dictionary_0), (void*)value);
}
};
// System.Collections.ObjectModel.ReadOnlyDictionary`2/ValueCollection<System.Int32,UnityEngine.Material>
struct ValueCollection_tE6DD53C28F18E9D5F05F965551F3C88178BF15B4 : 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_tE6DD53C28F18E9D5F05F965551F3C88178BF15B4, ___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_tE6DD53C28F18E9D5F05F965551F3C88178BF15B4, ___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.Int32,UnityEngine.EventSystems.PointerEventData>
struct ValueCollection_t28C5EADCF5205986726B544E972D81491CD308DA : public RuntimeObject
{
public:
// System.Collections.Generic.Dictionary`2<TKey,TValue> System.Collections.Generic.Dictionary`2/ValueCollection::dictionary
Dictionary_2_t52ECB6047A9EDAD198D0CC53F331CDEAAA83BED8 * ___dictionary_0;
public:
inline static int32_t get_offset_of_dictionary_0() { return static_cast<int32_t>(offsetof(ValueCollection_t28C5EADCF5205986726B544E972D81491CD308DA, ___dictionary_0)); }
inline Dictionary_2_t52ECB6047A9EDAD198D0CC53F331CDEAAA83BED8 * get_dictionary_0() const { return ___dictionary_0; }
inline Dictionary_2_t52ECB6047A9EDAD198D0CC53F331CDEAAA83BED8 ** get_address_of_dictionary_0() { return &___dictionary_0; }
inline void set_dictionary_0(Dictionary_2_t52ECB6047A9EDAD198D0CC53F331CDEAAA83BED8 * value)
{
___dictionary_0 = value;
Il2CppCodeGenWriteBarrier((void**)(&___dictionary_0), (void*)value);
}
};
// System.Collections.ObjectModel.ReadOnlyDictionary`2/ValueCollection<System.Int32,UnityEngine.EventSystems.PointerEventData>
struct ValueCollection_t9FEB03EF99A5A4FEC35B8B143F9A805C36347399 : 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_t9FEB03EF99A5A4FEC35B8B143F9A805C36347399, ___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_t9FEB03EF99A5A4FEC35B8B143F9A805C36347399, ___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.Int32,Microsoft.MixedReality.Toolkit.SpatialAwareness.SpatialAwarenessMeshObject>
struct ValueCollection_t532B14D24FC92E18A887848D100E3825432ECF59 : public RuntimeObject
{
public:
// System.Collections.Generic.Dictionary`2<TKey,TValue> System.Collections.Generic.Dictionary`2/ValueCollection::dictionary
Dictionary_2_tBFEF92C709D6CF5C8220E4553DF6064FCB30A49B * ___dictionary_0;
public:
inline static int32_t get_offset_of_dictionary_0() { return static_cast<int32_t>(offsetof(ValueCollection_t532B14D24FC92E18A887848D100E3825432ECF59, ___dictionary_0)); }
inline Dictionary_2_tBFEF92C709D6CF5C8220E4553DF6064FCB30A49B * get_dictionary_0() const { return ___dictionary_0; }
inline Dictionary_2_tBFEF92C709D6CF5C8220E4553DF6064FCB30A49B ** get_address_of_dictionary_0() { return &___dictionary_0; }
inline void set_dictionary_0(Dictionary_2_tBFEF92C709D6CF5C8220E4553DF6064FCB30A49B * value)
{
___dictionary_0 = value;
Il2CppCodeGenWriteBarrier((void**)(&___dictionary_0), (void*)value);
}
};
// System.Collections.ObjectModel.ReadOnlyDictionary`2/ValueCollection<System.Int32,Microsoft.MixedReality.Toolkit.SpatialAwareness.SpatialAwarenessMeshObject>
struct ValueCollection_t5A60FE54FE5D98B0A446038207081BD75087CAE3 : 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_t5A60FE54FE5D98B0A446038207081BD75087CAE3, ___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_t5A60FE54FE5D98B0A446038207081BD75087CAE3, ___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.Int32,System.String>
struct ValueCollection_t5C221D6474B57B05A1EF91C1C6A7B1FA1CF361BF : public RuntimeObject
{
public:
// System.Collections.Generic.Dictionary`2<TKey,TValue> System.Collections.Generic.Dictionary`2/ValueCollection::dictionary
Dictionary_2_t0ACB62D0885C7AB376463C70665400A39808C5FB * ___dictionary_0;
public:
inline static int32_t get_offset_of_dictionary_0() { return static_cast<int32_t>(offsetof(ValueCollection_t5C221D6474B57B05A1EF91C1C6A7B1FA1CF361BF, ___dictionary_0)); }
inline Dictionary_2_t0ACB62D0885C7AB376463C70665400A39808C5FB * get_dictionary_0() const { return ___dictionary_0; }
inline Dictionary_2_t0ACB62D0885C7AB376463C70665400A39808C5FB ** get_address_of_dictionary_0() { return &___dictionary_0; }
inline void set_dictionary_0(Dictionary_2_t0ACB62D0885C7AB376463C70665400A39808C5FB * value)
{
___dictionary_0 = value;
Il2CppCodeGenWriteBarrier((void**)(&___dictionary_0), (void*)value);
}
};
// System.Collections.ObjectModel.ReadOnlyDictionary`2/ValueCollection<System.Int32,System.String>
struct ValueCollection_tE8B618071B897471AC32AAF06060B187610CFB43 : 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_tE8B618071B897471AC32AAF06060B187610CFB43, ___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_tE8B618071B897471AC32AAF06060B187610CFB43, ___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.Int32,TMPro.TMP_ColorGradient>
struct ValueCollection_t0A4E0F9662AF7EF0D0D0E1E70988F30A0717AA41 : public RuntimeObject
{
public:
// System.Collections.Generic.Dictionary`2<TKey,TValue> System.Collections.Generic.Dictionary`2/ValueCollection::dictionary
Dictionary_2_t83EDCEFCBB12C89A61745514957F522FEF34EAE1 * ___dictionary_0;
public:
inline static int32_t get_offset_of_dictionary_0() { return static_cast<int32_t>(offsetof(ValueCollection_t0A4E0F9662AF7EF0D0D0E1E70988F30A0717AA41, ___dictionary_0)); }
inline Dictionary_2_t83EDCEFCBB12C89A61745514957F522FEF34EAE1 * get_dictionary_0() const { return ___dictionary_0; }
inline Dictionary_2_t83EDCEFCBB12C89A61745514957F522FEF34EAE1 ** get_address_of_dictionary_0() { return &___dictionary_0; }
inline void set_dictionary_0(Dictionary_2_t83EDCEFCBB12C89A61745514957F522FEF34EAE1 * value)
{
___dictionary_0 = value;
Il2CppCodeGenWriteBarrier((void**)(&___dictionary_0), (void*)value);
}
};
// System.Collections.ObjectModel.ReadOnlyDictionary`2/ValueCollection<System.Int32,TMPro.TMP_ColorGradient>
struct ValueCollection_tF3E06E1B7F3F827575625D735B684EDF94431971 : 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_tF3E06E1B7F3F827575625D735B684EDF94431971, ___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_tF3E06E1B7F3F827575625D735B684EDF94431971, ___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.Int32,TMPro.TMP_FontAsset>
struct ValueCollection_tC8F758677CEA2459E735CF3B2F6408762AAC21B5 : public RuntimeObject
{
public:
// System.Collections.Generic.Dictionary`2<TKey,TValue> System.Collections.Generic.Dictionary`2/ValueCollection::dictionary
Dictionary_2_tAB557C4BCEBDF7E2339209187287588CF6C63579 * ___dictionary_0;
public:
inline static int32_t get_offset_of_dictionary_0() { return static_cast<int32_t>(offsetof(ValueCollection_tC8F758677CEA2459E735CF3B2F6408762AAC21B5, ___dictionary_0)); }
inline Dictionary_2_tAB557C4BCEBDF7E2339209187287588CF6C63579 * get_dictionary_0() const { return ___dictionary_0; }
inline Dictionary_2_tAB557C4BCEBDF7E2339209187287588CF6C63579 ** get_address_of_dictionary_0() { return &___dictionary_0; }
inline void set_dictionary_0(Dictionary_2_tAB557C4BCEBDF7E2339209187287588CF6C63579 * value)
{
___dictionary_0 = value;
Il2CppCodeGenWriteBarrier((void**)(&___dictionary_0), (void*)value);
}
};
// System.Collections.ObjectModel.ReadOnlyDictionary`2/ValueCollection<System.Int32,TMPro.TMP_FontAsset>
struct ValueCollection_t468EF4114E5E829EEC9AFCCDF8745C4D2E301C88 : 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_t468EF4114E5E829EEC9AFCCDF8745C4D2E301C88, ___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_t468EF4114E5E829EEC9AFCCDF8745C4D2E301C88, ___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.Int32,TMPro.TMP_SpriteAsset>
struct ValueCollection_t4FAE69882A1111AEC4C2ADABCAA914A58F8CA1A8 : public RuntimeObject
{
public:
// System.Collections.Generic.Dictionary`2<TKey,TValue> System.Collections.Generic.Dictionary`2/ValueCollection::dictionary
Dictionary_2_t6A406AC36627118EE2E0E5BBCE5CF76FC9C5CE1F * ___dictionary_0;
public:
inline static int32_t get_offset_of_dictionary_0() { return static_cast<int32_t>(offsetof(ValueCollection_t4FAE69882A1111AEC4C2ADABCAA914A58F8CA1A8, ___dictionary_0)); }
inline Dictionary_2_t6A406AC36627118EE2E0E5BBCE5CF76FC9C5CE1F * get_dictionary_0() const { return ___dictionary_0; }
inline Dictionary_2_t6A406AC36627118EE2E0E5BBCE5CF76FC9C5CE1F ** get_address_of_dictionary_0() { return &___dictionary_0; }
inline void set_dictionary_0(Dictionary_2_t6A406AC36627118EE2E0E5BBCE5CF76FC9C5CE1F * value)
{
___dictionary_0 = value;
Il2CppCodeGenWriteBarrier((void**)(&___dictionary_0), (void*)value);
}
};
// System.Collections.ObjectModel.ReadOnlyDictionary`2/ValueCollection<System.Int32,TMPro.TMP_SpriteAsset>
struct ValueCollection_tA7D37A794F6B8768525831C895952CD93ED21510 : 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_tA7D37A794F6B8768525831C895952CD93ED21510, ___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_tA7D37A794F6B8768525831C895952CD93ED21510, ___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.Int32,TMPro.TMP_Style>
struct ValueCollection_t625D6831F9B9DDA73FD6EBEC5DF210DF81231030 : public RuntimeObject
{
public:
// System.Collections.Generic.Dictionary`2<TKey,TValue> System.Collections.Generic.Dictionary`2/ValueCollection::dictionary
Dictionary_2_tF4EABB89111A0E30158256A3B667C7770E384763 * ___dictionary_0;
public:
inline static int32_t get_offset_of_dictionary_0() { return static_cast<int32_t>(offsetof(ValueCollection_t625D6831F9B9DDA73FD6EBEC5DF210DF81231030, ___dictionary_0)); }
inline Dictionary_2_tF4EABB89111A0E30158256A3B667C7770E384763 * get_dictionary_0() const { return ___dictionary_0; }
inline Dictionary_2_tF4EABB89111A0E30158256A3B667C7770E384763 ** get_address_of_dictionary_0() { return &___dictionary_0; }
inline void set_dictionary_0(Dictionary_2_tF4EABB89111A0E30158256A3B667C7770E384763 * value)
{
___dictionary_0 = value;
Il2CppCodeGenWriteBarrier((void**)(&___dictionary_0), (void*)value);
}
};
// System.Collections.ObjectModel.ReadOnlyDictionary`2/ValueCollection<System.Int32,TMPro.TMP_Style>
struct ValueCollection_tD45AF1B120128FB336471F76D41131B907650C04 : 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_tD45AF1B120128FB336471F76D41131B907650C04, ___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_tD45AF1B120128FB336471F76D41131B907650C04, ___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.Int32,System.Threading.Tasks.Task>
struct ValueCollection_tB61C2016CD14273F2E8ABD6FEEA53372E4A53C73 : public RuntimeObject
{
public:
// System.Collections.Generic.Dictionary`2<TKey,TValue> System.Collections.Generic.Dictionary`2/ValueCollection::dictionary
Dictionary_2_tB758E2A2593CD827EFC041BE1F1BB4B68DE1C3E8 * ___dictionary_0;
public:
inline static int32_t get_offset_of_dictionary_0() { return static_cast<int32_t>(offsetof(ValueCollection_tB61C2016CD14273F2E8ABD6FEEA53372E4A53C73, ___dictionary_0)); }
inline Dictionary_2_tB758E2A2593CD827EFC041BE1F1BB4B68DE1C3E8 * get_dictionary_0() const { return ___dictionary_0; }
inline Dictionary_2_tB758E2A2593CD827EFC041BE1F1BB4B68DE1C3E8 ** get_address_of_dictionary_0() { return &___dictionary_0; }
inline void set_dictionary_0(Dictionary_2_tB758E2A2593CD827EFC041BE1F1BB4B68DE1C3E8 * value)
{
___dictionary_0 = value;
Il2CppCodeGenWriteBarrier((void**)(&___dictionary_0), (void*)value);
}
};
// System.Collections.ObjectModel.ReadOnlyDictionary`2/ValueCollection<System.Int32,System.Threading.Tasks.Task>
struct ValueCollection_tC0EF51948EA6CC2782B13B162C154C832EFEC3E1 : 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_tC0EF51948EA6CC2782B13B162C154C832EFEC3E1, ___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_tC0EF51948EA6CC2782B13B162C154C832EFEC3E1, ___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.Int32,System.TimeType>
struct ValueCollection_tAAC32AE618C238632B383B9345C22427B19EA9C5 : public RuntimeObject
{
public:
// System.Collections.Generic.Dictionary`2<TKey,TValue> System.Collections.Generic.Dictionary`2/ValueCollection::dictionary
Dictionary_2_t5D8E184D8FCD474C100BFB072548D71B5B758D72 * ___dictionary_0;
public:
inline static int32_t get_offset_of_dictionary_0() { return static_cast<int32_t>(offsetof(ValueCollection_tAAC32AE618C238632B383B9345C22427B19EA9C5, ___dictionary_0)); }
inline Dictionary_2_t5D8E184D8FCD474C100BFB072548D71B5B758D72 * get_dictionary_0() const { return ___dictionary_0; }
inline Dictionary_2_t5D8E184D8FCD474C100BFB072548D71B5B758D72 ** get_address_of_dictionary_0() { return &___dictionary_0; }
inline void set_dictionary_0(Dictionary_2_t5D8E184D8FCD474C100BFB072548D71B5B758D72 * value)
{
___dictionary_0 = value;
Il2CppCodeGenWriteBarrier((void**)(&___dictionary_0), (void*)value);
}
};
// System.Collections.ObjectModel.ReadOnlyDictionary`2/ValueCollection<System.Int32,System.TimeType>
struct ValueCollection_t06DE7C9B1AF6C21F3D792B24ED702715CB5C9B80 : 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_t06DE7C9B1AF6C21F3D792B24ED702715CB5C9B80, ___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_t06DE7C9B1AF6C21F3D792B24ED702715CB5C9B80, ___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.Int32,Microsoft.MixedReality.Toolkit.Input.UnityInput.UnityTouchController>
struct ValueCollection_tADF78A5BE1F06BCCC05C38BF765907A7638A05B1 : public RuntimeObject
{
public:
// System.Collections.Generic.Dictionary`2<TKey,TValue> System.Collections.Generic.Dictionary`2/ValueCollection::dictionary
Dictionary_2_tE6AD801A6392CDC6C5B2E0594CCC432F0C21037C * ___dictionary_0;
public:
inline static int32_t get_offset_of_dictionary_0() { return static_cast<int32_t>(offsetof(ValueCollection_tADF78A5BE1F06BCCC05C38BF765907A7638A05B1, ___dictionary_0)); }
inline Dictionary_2_tE6AD801A6392CDC6C5B2E0594CCC432F0C21037C * get_dictionary_0() const { return ___dictionary_0; }
inline Dictionary_2_tE6AD801A6392CDC6C5B2E0594CCC432F0C21037C ** get_address_of_dictionary_0() { return &___dictionary_0; }
inline void set_dictionary_0(Dictionary_2_tE6AD801A6392CDC6C5B2E0594CCC432F0C21037C * value)
{
___dictionary_0 = value;
Il2CppCodeGenWriteBarrier((void**)(&___dictionary_0), (void*)value);
}
};
// System.Collections.ObjectModel.ReadOnlyDictionary`2/ValueCollection<System.Int32,Microsoft.MixedReality.Toolkit.Input.UnityInput.UnityTouchController>
struct ValueCollection_t43EB4079728FAFF2194187CFB09ECD1FB4951CB9 : 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_t43EB4079728FAFF2194187CFB09ECD1FB4951CB9, ___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_t43EB4079728FAFF2194187CFB09ECD1FB4951CB9, ___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.Int32,UnityEngine.GUILayoutUtility/LayoutCache>
struct ValueCollection_t8DE7DA329F6A29C185EDFDDA71627FD6C4C725F8 : public RuntimeObject
{
public:
// System.Collections.Generic.Dictionary`2<TKey,TValue> System.Collections.Generic.Dictionary`2/ValueCollection::dictionary
Dictionary_2_t3FDB6C5EC702844ACB5B417679E01D7C1DCBA4D4 * ___dictionary_0;
public:
inline static int32_t get_offset_of_dictionary_0() { return static_cast<int32_t>(offsetof(ValueCollection_t8DE7DA329F6A29C185EDFDDA71627FD6C4C725F8, ___dictionary_0)); }
inline Dictionary_2_t3FDB6C5EC702844ACB5B417679E01D7C1DCBA4D4 * get_dictionary_0() const { return ___dictionary_0; }
inline Dictionary_2_t3FDB6C5EC702844ACB5B417679E01D7C1DCBA4D4 ** get_address_of_dictionary_0() { return &___dictionary_0; }
inline void set_dictionary_0(Dictionary_2_t3FDB6C5EC702844ACB5B417679E01D7C1DCBA4D4 * value)
{
___dictionary_0 = value;
Il2CppCodeGenWriteBarrier((void**)(&___dictionary_0), (void*)value);
}
};
// System.Collections.ObjectModel.ReadOnlyDictionary`2/ValueCollection<System.Int32,UnityEngine.GUILayoutUtility/LayoutCache>
struct ValueCollection_t6960BACFC4198CB6FAC694668070119F290F95C4 : 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_t6960BACFC4198CB6FAC694668070119F290F95C4, ___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_t6960BACFC4198CB6FAC694668070119F290F95C4, ___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.Int32,Microsoft.MixedReality.Toolkit.Input.MixedRealityInputModule/PointerData>
struct ValueCollection_t785392F6FCC7542B349A8D0753166B46003CC299 : public RuntimeObject
{
public:
// System.Collections.Generic.Dictionary`2<TKey,TValue> System.Collections.Generic.Dictionary`2/ValueCollection::dictionary
Dictionary_2_tB7478EF7A1D56D0534BD9AF224099A735CEFB6E6 * ___dictionary_0;
public:
inline static int32_t get_offset_of_dictionary_0() { return static_cast<int32_t>(offsetof(ValueCollection_t785392F6FCC7542B349A8D0753166B46003CC299, ___dictionary_0)); }
inline Dictionary_2_tB7478EF7A1D56D0534BD9AF224099A735CEFB6E6 * get_dictionary_0() const { return ___dictionary_0; }
inline Dictionary_2_tB7478EF7A1D56D0534BD9AF224099A735CEFB6E6 ** get_address_of_dictionary_0() { return &___dictionary_0; }
inline void set_dictionary_0(Dictionary_2_tB7478EF7A1D56D0534BD9AF224099A735CEFB6E6 * value)
{
___dictionary_0 = value;
Il2CppCodeGenWriteBarrier((void**)(&___dictionary_0), (void*)value);
}
};
// System.Collections.ObjectModel.ReadOnlyDictionary`2/ValueCollection<System.Int32,Microsoft.MixedReality.Toolkit.Input.MixedRealityInputModule/PointerData>
struct ValueCollection_tD307F92C22EC1E4D9BCC43E689AC1D8DF8D3148B : 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_tD307F92C22EC1E4D9BCC43E689AC1D8DF8D3148B, ___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_tD307F92C22EC1E4D9BCC43E689AC1D8DF8D3148B, ___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.Int32,UnityEngine.Experimental.TerrainAPI.TerrainUtility/TerrainMap>
struct ValueCollection_tF5A29AA52483C44A9B166F23F45001565015B4EB : public RuntimeObject
{
public:
// System.Collections.Generic.Dictionary`2<TKey,TValue> System.Collections.Generic.Dictionary`2/ValueCollection::dictionary
Dictionary_2_t8BE99204247C1C97B2675C8E9AB2B482BADCD725 * ___dictionary_0;
public:
inline static int32_t get_offset_of_dictionary_0() { return static_cast<int32_t>(offsetof(ValueCollection_tF5A29AA52483C44A9B166F23F45001565015B4EB, ___dictionary_0)); }
inline Dictionary_2_t8BE99204247C1C97B2675C8E9AB2B482BADCD725 * get_dictionary_0() const { return ___dictionary_0; }
inline Dictionary_2_t8BE99204247C1C97B2675C8E9AB2B482BADCD725 ** get_address_of_dictionary_0() { return &___dictionary_0; }
inline void set_dictionary_0(Dictionary_2_t8BE99204247C1C97B2675C8E9AB2B482BADCD725 * value)
{
___dictionary_0 = value;
Il2CppCodeGenWriteBarrier((void**)(&___dictionary_0), (void*)value);
}
};
// System.Collections.ObjectModel.ReadOnlyDictionary`2/ValueCollection<System.Int32,UnityEngine.Experimental.TerrainAPI.TerrainUtility/TerrainMap>
struct ValueCollection_tBCFE074CC7AF6EDB1B2855274B0F9144C14DF2F2 : 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_tBCFE074CC7AF6EDB1B2855274B0F9144C14DF2F2, ___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_tBCFE074CC7AF6EDB1B2855274B0F9144C14DF2F2, ___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.Int64,TMPro.TMP_MaterialManager/FallbackMaterial>
struct ValueCollection_tCCF34CAD9EBEE4C994FB6C0181F8E35516BEA984 : public RuntimeObject
{
public:
// System.Collections.Generic.Dictionary`2<TKey,TValue> System.Collections.Generic.Dictionary`2/ValueCollection::dictionary
Dictionary_2_tF37F71739257A9F8484D38DF8ADAA587B68C88BE * ___dictionary_0;
public:
inline static int32_t get_offset_of_dictionary_0() { return static_cast<int32_t>(offsetof(ValueCollection_tCCF34CAD9EBEE4C994FB6C0181F8E35516BEA984, ___dictionary_0)); }
inline Dictionary_2_tF37F71739257A9F8484D38DF8ADAA587B68C88BE * get_dictionary_0() const { return ___dictionary_0; }
inline Dictionary_2_tF37F71739257A9F8484D38DF8ADAA587B68C88BE ** get_address_of_dictionary_0() { return &___dictionary_0; }
inline void set_dictionary_0(Dictionary_2_tF37F71739257A9F8484D38DF8ADAA587B68C88BE * value)
{
___dictionary_0 = value;
Il2CppCodeGenWriteBarrier((void**)(&___dictionary_0), (void*)value);
}
};
// System.Collections.ObjectModel.ReadOnlyDictionary`2/ValueCollection<System.Int64,TMPro.TMP_MaterialManager/FallbackMaterial>
struct ValueCollection_t5CB442B521BF4716EBDDA2D9D43953DAFA6D6217 : 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_t5CB442B521BF4716EBDDA2D9D43953DAFA6D6217, ___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_t5CB442B521BF4716EBDDA2D9D43953DAFA6D6217, ___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.Runtime.Serialization.MemberHolder,System.Reflection.MemberInfo[]>
struct ValueCollection_t490C46E2C988D497F9D983A3839F5BADF2242BF8 : 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_t490C46E2C988D497F9D983A3839F5BADF2242BF8, ___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_t490C46E2C988D497F9D983A3839F5BADF2242BF8, ___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.Mesh,Microsoft.MixedReality.Toolkit.Utilities.MeshSmoother/MeshReference>
struct ValueCollection_tBBAEF38FC75ABDFCD1E5E4CAB542714F89988132 : public RuntimeObject
{
public:
// System.Collections.Generic.Dictionary`2<TKey,TValue> System.Collections.Generic.Dictionary`2/ValueCollection::dictionary
Dictionary_2_tF0DE4461DF2636D9145F888111E2BE960C03322D * ___dictionary_0;
public:
inline static int32_t get_offset_of_dictionary_0() { return static_cast<int32_t>(offsetof(ValueCollection_tBBAEF38FC75ABDFCD1E5E4CAB542714F89988132, ___dictionary_0)); }
inline Dictionary_2_tF0DE4461DF2636D9145F888111E2BE960C03322D * get_dictionary_0() const { return ___dictionary_0; }
inline Dictionary_2_tF0DE4461DF2636D9145F888111E2BE960C03322D ** get_address_of_dictionary_0() { return &___dictionary_0; }
inline void set_dictionary_0(Dictionary_2_tF0DE4461DF2636D9145F888111E2BE960C03322D * value)
{
___dictionary_0 = value;
Il2CppCodeGenWriteBarrier((void**)(&___dictionary_0), (void*)value);
}
};
// System.Collections.ObjectModel.ReadOnlyDictionary`2/ValueCollection<UnityEngine.Mesh,Microsoft.MixedReality.Toolkit.Utilities.MeshSmoother/MeshReference>
struct ValueCollection_tD82FC4CB2CA66DF8752A12E5E17B9AA66CCF0FF5 : 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_tD82FC4CB2CA66DF8752A12E5E17B9AA66CCF0FF5, ___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_tD82FC4CB2CA66DF8752A12E5E17B9AA66CCF0FF5, ___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.Reflection.MethodInfo,System.Collections.Generic.Dictionary`2<System.Object,System.Runtime.InteropServices.WindowsRuntime.WindowsRuntimeMarshal/EventRegistrationTokenList>>
struct ValueCollection_tDF9F4C17321815AB3E97B0CF08B95643B761CC5F : public RuntimeObject
{
public:
// System.Collections.Generic.Dictionary`2<TKey,TValue> System.Collections.Generic.Dictionary`2/ValueCollection::dictionary
Dictionary_2_t6C6D04C7C1300F445B3AE7ED8519CB478C0DBE40 * ___dictionary_0;
public:
inline static int32_t get_offset_of_dictionary_0() { return static_cast<int32_t>(offsetof(ValueCollection_tDF9F4C17321815AB3E97B0CF08B95643B761CC5F, ___dictionary_0)); }
inline Dictionary_2_t6C6D04C7C1300F445B3AE7ED8519CB478C0DBE40 * get_dictionary_0() const { return ___dictionary_0; }
inline Dictionary_2_t6C6D04C7C1300F445B3AE7ED8519CB478C0DBE40 ** get_address_of_dictionary_0() { return &___dictionary_0; }
inline void set_dictionary_0(Dictionary_2_t6C6D04C7C1300F445B3AE7ED8519CB478C0DBE40 * value)
{
___dictionary_0 = value;
Il2CppCodeGenWriteBarrier((void**)(&___dictionary_0), (void*)value);
}
};
// System.Collections.ObjectModel.ReadOnlyDictionary`2/ValueCollection<System.Reflection.MethodInfo,System.Collections.Generic.Dictionary`2<System.Object,System.Runtime.InteropServices.WindowsRuntime.WindowsRuntimeMarshal/EventRegistrationTokenList>>
struct ValueCollection_t64D5CC96C01CD1964AB4E4552466209BB5010168 : 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_t64D5CC96C01CD1964AB4E4552466209BB5010168, ___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_t64D5CC96C01CD1964AB4E4552466209BB5010168, ___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.Object,System.Runtime.InteropServices.WindowsRuntime.WindowsRuntimeMarshal/EventRegistrationTokenList>
struct ValueCollection_tEA48E4B6DFB033F98ED189470457D6134F7C7AA9 : public RuntimeObject
{
public:
// System.Collections.Generic.Dictionary`2<TKey,TValue> System.Collections.Generic.Dictionary`2/ValueCollection::dictionary
Dictionary_2_t5BB631D653FC099355128DBC14DC44E27AD30739 * ___dictionary_0;
public:
inline static int32_t get_offset_of_dictionary_0() { return static_cast<int32_t>(offsetof(ValueCollection_tEA48E4B6DFB033F98ED189470457D6134F7C7AA9, ___dictionary_0)); }
inline Dictionary_2_t5BB631D653FC099355128DBC14DC44E27AD30739 * get_dictionary_0() const { return ___dictionary_0; }
inline Dictionary_2_t5BB631D653FC099355128DBC14DC44E27AD30739 ** get_address_of_dictionary_0() { return &___dictionary_0; }
inline void set_dictionary_0(Dictionary_2_t5BB631D653FC099355128DBC14DC44E27AD30739 * value)
{
___dictionary_0 = value;
Il2CppCodeGenWriteBarrier((void**)(&___dictionary_0), (void*)value);
}
};
// System.Collections.ObjectModel.ReadOnlyDictionary`2/ValueCollection<System.Object,System.Runtime.InteropServices.WindowsRuntime.WindowsRuntimeMarshal/EventRegistrationTokenList>
struct ValueCollection_t67C7AC4BD5E770742C8C63745C34310883D9BC0E : 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_t67C7AC4BD5E770742C8C63745C34310883D9BC0E, ___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_t67C7AC4BD5E770742C8C63745C34310883D9BC0E, ___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.Renderer,System.Collections.Generic.List`1<UnityEngine.Material>>
struct ValueCollection_t4B036D0BD949C2E59398E64DE2DC4DE7941F17AF : public RuntimeObject
{
public:
// System.Collections.Generic.Dictionary`2<TKey,TValue> System.Collections.Generic.Dictionary`2/ValueCollection::dictionary
Dictionary_2_t547EF37CA1540BB99B5AB9F9522E2722EB0FDE98 * ___dictionary_0;
public:
inline static int32_t get_offset_of_dictionary_0() { return static_cast<int32_t>(offsetof(ValueCollection_t4B036D0BD949C2E59398E64DE2DC4DE7941F17AF, ___dictionary_0)); }
inline Dictionary_2_t547EF37CA1540BB99B5AB9F9522E2722EB0FDE98 * get_dictionary_0() const { return ___dictionary_0; }
inline Dictionary_2_t547EF37CA1540BB99B5AB9F9522E2722EB0FDE98 ** get_address_of_dictionary_0() { return &___dictionary_0; }
inline void set_dictionary_0(Dictionary_2_t547EF37CA1540BB99B5AB9F9522E2722EB0FDE98 * value)
{
___dictionary_0 = value;
Il2CppCodeGenWriteBarrier((void**)(&___dictionary_0), (void*)value);
}
};
// System.Collections.ObjectModel.ReadOnlyDictionary`2/ValueCollection<UnityEngine.Renderer,System.Collections.Generic.List`1<UnityEngine.Material>>
struct ValueCollection_tFE378173D0A06206C85E08D334CE9A6EB45F21A7 : 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_tFE378173D0A06206C85E08D334CE9A6EB45F21A7, ___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_tFE378173D0A06206C85E08D334CE9A6EB45F21A7, ___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.String,System.Collections.Generic.List`1<System.Int32>>
struct ValueCollection_t4B66845A360B651377A6E8B046A5C02F4683B57B : public RuntimeObject
{
public:
// System.Collections.Generic.Dictionary`2<TKey,TValue> System.Collections.Generic.Dictionary`2/ValueCollection::dictionary
Dictionary_2_t0141BC6966873E9827CA2F0856EF6D6EA51AD929 * ___dictionary_0;
public:
inline static int32_t get_offset_of_dictionary_0() { return static_cast<int32_t>(offsetof(ValueCollection_t4B66845A360B651377A6E8B046A5C02F4683B57B, ___dictionary_0)); }
inline Dictionary_2_t0141BC6966873E9827CA2F0856EF6D6EA51AD929 * get_dictionary_0() const { return ___dictionary_0; }
inline Dictionary_2_t0141BC6966873E9827CA2F0856EF6D6EA51AD929 ** get_address_of_dictionary_0() { return &___dictionary_0; }
inline void set_dictionary_0(Dictionary_2_t0141BC6966873E9827CA2F0856EF6D6EA51AD929 * value)
{
___dictionary_0 = value;
Il2CppCodeGenWriteBarrier((void**)(&___dictionary_0), (void*)value);
}
};
// System.Collections.ObjectModel.ReadOnlyDictionary`2/ValueCollection<System.String,System.Collections.Generic.List`1<System.Int32>>
struct ValueCollection_tFE2A555095D6B906BBD4E2E1136B107CD200EBDF : 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_tFE2A555095D6B906BBD4E2E1136B107CD200EBDF, ___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_tFE2A555095D6B906BBD4E2E1136B107CD200EBDF, ___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.String,System.Collections.Generic.Queue`1<UnityEngine.GameObject>>
struct ValueCollection_t4258B35F0EBB3B6F0E2F80D4F993788844F3D518 : public RuntimeObject
{
public:
// System.Collections.Generic.Dictionary`2<TKey,TValue> System.Collections.Generic.Dictionary`2/ValueCollection::dictionary
Dictionary_2_tDE4EDBDC568FB033EAC636207097351E6DC14C3F * ___dictionary_0;
public:
inline static int32_t get_offset_of_dictionary_0() { return static_cast<int32_t>(offsetof(ValueCollection_t4258B35F0EBB3B6F0E2F80D4F993788844F3D518, ___dictionary_0)); }
inline Dictionary_2_tDE4EDBDC568FB033EAC636207097351E6DC14C3F * get_dictionary_0() const { return ___dictionary_0; }
inline Dictionary_2_tDE4EDBDC568FB033EAC636207097351E6DC14C3F ** get_address_of_dictionary_0() { return &___dictionary_0; }
inline void set_dictionary_0(Dictionary_2_tDE4EDBDC568FB033EAC636207097351E6DC14C3F * value)
{
___dictionary_0 = value;
Il2CppCodeGenWriteBarrier((void**)(&___dictionary_0), (void*)value);
}
};
// System.Collections.ObjectModel.ReadOnlyDictionary`2/ValueCollection<System.String,System.Collections.Generic.Queue`1<UnityEngine.GameObject>>
struct ValueCollection_t43F83E081841BC11EE8141994AEF3BB2B7A83AB8 : 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_t43F83E081841BC11EE8141994AEF3BB2B7A83AB8, ___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_t43F83E081841BC11EE8141994AEF3BB2B7A83AB8, ___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.String,Microsoft.MixedReality.Toolkit.Experimental.InteractiveElement.BaseEventReceiver>
struct ValueCollection_tE8D07B1FFC8FFAD13CE0BE0A61EC4B5E377A08C3 : public RuntimeObject
{
public:
// System.Collections.Generic.Dictionary`2<TKey,TValue> System.Collections.Generic.Dictionary`2/ValueCollection::dictionary
Dictionary_2_t0C12B4D9AB2F49DBABB410260E694A4799DCB205 * ___dictionary_0;
public:
inline static int32_t get_offset_of_dictionary_0() { return static_cast<int32_t>(offsetof(ValueCollection_tE8D07B1FFC8FFAD13CE0BE0A61EC4B5E377A08C3, ___dictionary_0)); }
inline Dictionary_2_t0C12B4D9AB2F49DBABB410260E694A4799DCB205 * get_dictionary_0() const { return ___dictionary_0; }
inline Dictionary_2_t0C12B4D9AB2F49DBABB410260E694A4799DCB205 ** get_address_of_dictionary_0() { return &___dictionary_0; }
inline void set_dictionary_0(Dictionary_2_t0C12B4D9AB2F49DBABB410260E694A4799DCB205 * value)
{
___dictionary_0 = value;
Il2CppCodeGenWriteBarrier((void**)(&___dictionary_0), (void*)value);
}
};
// System.Collections.ObjectModel.ReadOnlyDictionary`2/ValueCollection<System.String,Microsoft.MixedReality.Toolkit.Experimental.InteractiveElement.BaseEventReceiver>
struct ValueCollection_t1CE523D0BD0FED5CB8E608B16912D83537F66B19 : 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_t1CE523D0BD0FED5CB8E608B16912D83537F66B19, ___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_t1CE523D0BD0FED5CB8E608B16912D83537F66B19, ___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.String,System.Globalization.CultureInfo>
struct ValueCollection_tE359A31BF25A2BECA2FC677EC431DDFE1E481B35 : public RuntimeObject
{
public:
// System.Collections.Generic.Dictionary`2<TKey,TValue> System.Collections.Generic.Dictionary`2/ValueCollection::dictionary
Dictionary_2_t0015CBF964B0687CBB5ECFDDE06671A8F3DDE4BC * ___dictionary_0;
public:
inline static int32_t get_offset_of_dictionary_0() { return static_cast<int32_t>(offsetof(ValueCollection_tE359A31BF25A2BECA2FC677EC431DDFE1E481B35, ___dictionary_0)); }
inline Dictionary_2_t0015CBF964B0687CBB5ECFDDE06671A8F3DDE4BC * get_dictionary_0() const { return ___dictionary_0; }
inline Dictionary_2_t0015CBF964B0687CBB5ECFDDE06671A8F3DDE4BC ** get_address_of_dictionary_0() { return &___dictionary_0; }
inline void set_dictionary_0(Dictionary_2_t0015CBF964B0687CBB5ECFDDE06671A8F3DDE4BC * value)
{
___dictionary_0 = value;
Il2CppCodeGenWriteBarrier((void**)(&___dictionary_0), (void*)value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
il2cpp_hresult_t IIterable_1_First_m4E590558B8FE1D4FA427F8F876803D1F68F7D100_ComCallableWrapperProjectedMethod(RuntimeObject* __this, IIterator_1_tC66AB251038F529F8EA4926CBFFB3A97C323B58D** comReturnValue);
il2cpp_hresult_t IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7_ComCallableWrapperProjectedMethod(RuntimeObject* __this, IBindableIterator_tD7550F1144CFBE58090050457A2BE92B1CAEABBB** comReturnValue);
il2cpp_hresult_t IIterable_1_First_m54AC7E778E98ED35C6B7AD98C35C325B8A3DF619_ComCallableWrapperProjectedMethod(RuntimeObject* __this, IIterator_1_tB1AB5AB497E87D6A397AA084D3D3D6B8D211022C** comReturnValue);
il2cpp_hresult_t IIterable_1_First_m2B4221348B2704C13FAEA47E445A5266F50F0552_ComCallableWrapperProjectedMethod(RuntimeObject* __this, IIterator_1_tE49C1648FC94E093BCD82BA18359053328200C9F** comReturnValue);
il2cpp_hresult_t IIterable_1_First_m512126C71D7E9D1C31B56F64455F33E9FEEC89F8_ComCallableWrapperProjectedMethod(RuntimeObject* __this, IIterator_1_t6A46A7244E5AAD0AE4F2A07AF43DA5052D55F4A4** comReturnValue);
il2cpp_hresult_t IIterable_1_First_m5AA74545514CBE1B8F27A3AD8AB35879FA66F2BB_ComCallableWrapperProjectedMethod(RuntimeObject* __this, IIterator_1_t76B4F2A2B99659B935148C20E12CDDF5018A3267** comReturnValue);
il2cpp_hresult_t IIterable_1_First_m4F1ECE8DFCABEDF6BA2C0C3ABC35C492F13541E6_ComCallableWrapperProjectedMethod(RuntimeObject* __this, IIterator_1_tF6C570C031F6203C0401C0DC0B69FCE361F7062E** comReturnValue);
il2cpp_hresult_t IIterable_1_First_m1E9A9F6DA2EC9A3A751A6E85F67C9BB40798A879_ComCallableWrapperProjectedMethod(RuntimeObject* __this, IIterator_1_tD5C5DE60C4A835F60D32B19C44430B59B26BFA67** comReturnValue);
il2cpp_hresult_t IIterable_1_First_m9A24DB3CFEE6B2D8C04AD194AC25CEA2597B8D3F_ComCallableWrapperProjectedMethod(RuntimeObject* __this, IIterator_1_t6407EDB3A3187B31D54D9B4E941F88F529FCE4B3** comReturnValue);
il2cpp_hresult_t IIterable_1_First_m0DF5AB173068D2FBCA182101EF7C9DD4C9135BCB_ComCallableWrapperProjectedMethod(RuntimeObject* __this, IIterator_1_tE13F884343548B90CBE44A0A597D5A31E29178BF** comReturnValue);
il2cpp_hresult_t IIterable_1_First_mB416B18AB4E9562AAD05C38EB9AD14CC685574CA_ComCallableWrapperProjectedMethod(RuntimeObject* __this, IIterator_1_tC3877F062B34DD4C7EA4B4D797B326073FC95B72** comReturnValue);
il2cpp_hresult_t IIterable_1_First_mC1E90957AD904E68CE3F84D1EF22D5EFACE8C2D5_ComCallableWrapperProjectedMethod(RuntimeObject* __this, IIterator_1_tFF647CAD19D34FD0606CDD3425C431F82B94589C** comReturnValue);
il2cpp_hresult_t IIterable_1_First_mFE037A1FA26B15187119714FC35E6254FAE04579_ComCallableWrapperProjectedMethod(RuntimeObject* __this, IIterator_1_t3FD87DAE4281E0090447733627B3A0BA377B6CEC** comReturnValue);
il2cpp_hresult_t IIterable_1_First_m03F765E1BD333E4E315525DE80BF54183A4D54D7_ComCallableWrapperProjectedMethod(RuntimeObject* __this, IIterator_1_t125F1266580B29D637CD7546CA3812EB7C0B0D9D** comReturnValue);
il2cpp_hresult_t IIterable_1_First_mD8D790F1EED3414261E3D73A15AA6B40BD8B4A87_ComCallableWrapperProjectedMethod(RuntimeObject* __this, IIterator_1_t966CEB5AF294B82E90C669B54974D432637938CF** comReturnValue);
il2cpp_hresult_t IIterable_1_First_mDDCB90F64D3007CB280F2A112BFB11FEDF4CF937_ComCallableWrapperProjectedMethod(RuntimeObject* __this, IIterator_1_tE84305D19EB46B9DD6D1B86BE7195EBA9B09BF2D** comReturnValue);
il2cpp_hresult_t IIterable_1_First_m5654F86BC6ACA9944E4840952F197CD3256A1ED8_ComCallableWrapperProjectedMethod(RuntimeObject* __this, IIterator_1_tF5EE7B485ADAC2DE9A72944EAA6F7C75F52ED6BA** comReturnValue);
il2cpp_hresult_t IIterable_1_First_mE0EF757DC8E58BB169C78D378571014C172F6240_ComCallableWrapperProjectedMethod(RuntimeObject* __this, IIterator_1_tE26006BA89CCCFA23A4E08D14138F4CA88B7902D** comReturnValue);
il2cpp_hresult_t IIterable_1_First_m7A9BBDC56E34A2D92A5AB578D200EB1D2E67A77B_ComCallableWrapperProjectedMethod(RuntimeObject* __this, IIterator_1_t02E2BD99A6F2FDED0070DCE99953C4927747C248** comReturnValue);
// COM Callable Wrapper for System.Collections.Generic.Dictionary`2/ValueCollection<Microsoft.MixedReality.Toolkit.Input.IMixedRealityPointer,System.UInt32>
struct ValueCollection_t262615E8969959039536C1062446C359A19AB126_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<ValueCollection_t262615E8969959039536C1062446C359A19AB126_ComCallableWrapper>, IIterable_1_t2765EC2E965992FAB9B7FDB2DB5E7FFA10D61BAB, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8
{
inline ValueCollection_t262615E8969959039536C1062446C359A19AB126_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<ValueCollection_t262615E8969959039536C1062446C359A19AB126_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_t2765EC2E965992FAB9B7FDB2DB5E7FFA10D61BAB::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<IIterable_1_t2765EC2E965992FAB9B7FDB2DB5E7FFA10D61BAB*>(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_t2765EC2E965992FAB9B7FDB2DB5E7FFA10D61BAB::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_m4E590558B8FE1D4FA427F8F876803D1F68F7D100(IIterator_1_tC66AB251038F529F8EA4926CBFFB3A97C323B58D** comReturnValue) IL2CPP_OVERRIDE
{
return IIterable_1_First_m4E590558B8FE1D4FA427F8F876803D1F68F7D100_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_t262615E8969959039536C1062446C359A19AB126(RuntimeObject* obj)
{
void* memory = il2cpp::utils::Memory::Malloc(sizeof(ValueCollection_t262615E8969959039536C1062446C359A19AB126_ComCallableWrapper));
if (memory == NULL)
{
il2cpp_codegen_raise_out_of_memory_exception();
}
return static_cast<Il2CppIManagedObjectHolder*>(new(memory) ValueCollection_t262615E8969959039536C1062446C359A19AB126_ComCallableWrapper(obj));
}
// COM Callable Wrapper for System.Collections.ObjectModel.ReadOnlyDictionary`2/ValueCollection<Microsoft.MixedReality.Toolkit.Input.IMixedRealityPointer,System.UInt32>
struct ValueCollection_t1E4D1EF76B873007C8DB78EA85A8171F9EF4DCB0_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<ValueCollection_t1E4D1EF76B873007C8DB78EA85A8171F9EF4DCB0_ComCallableWrapper>, IIterable_1_t2765EC2E965992FAB9B7FDB2DB5E7FFA10D61BAB, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8
{
inline ValueCollection_t1E4D1EF76B873007C8DB78EA85A8171F9EF4DCB0_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<ValueCollection_t1E4D1EF76B873007C8DB78EA85A8171F9EF4DCB0_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_t2765EC2E965992FAB9B7FDB2DB5E7FFA10D61BAB::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<IIterable_1_t2765EC2E965992FAB9B7FDB2DB5E7FFA10D61BAB*>(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_t2765EC2E965992FAB9B7FDB2DB5E7FFA10D61BAB::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_m4E590558B8FE1D4FA427F8F876803D1F68F7D100(IIterator_1_tC66AB251038F529F8EA4926CBFFB3A97C323B58D** comReturnValue) IL2CPP_OVERRIDE
{
return IIterable_1_First_m4E590558B8FE1D4FA427F8F876803D1F68F7D100_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_t1E4D1EF76B873007C8DB78EA85A8171F9EF4DCB0(RuntimeObject* obj)
{
void* memory = il2cpp::utils::Memory::Malloc(sizeof(ValueCollection_t1E4D1EF76B873007C8DB78EA85A8171F9EF4DCB0_ComCallableWrapper));
if (memory == NULL)
{
il2cpp_codegen_raise_out_of_memory_exception();
}
return static_cast<Il2CppIManagedObjectHolder*>(new(memory) ValueCollection_t1E4D1EF76B873007C8DB78EA85A8171F9EF4DCB0_ComCallableWrapper(obj));
}
// COM Callable Wrapper for System.Collections.Generic.Dictionary`2/ValueCollection<Microsoft.MixedReality.Toolkit.Input.IMixedRealityPointer,Microsoft.MixedReality.Toolkit.Input.DefaultPrimaryPointerSelector/PointerInfo>
struct ValueCollection_t93BBCE4C284B2C998882FE9B39645E940AF2ACD0_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<ValueCollection_t93BBCE4C284B2C998882FE9B39645E940AF2ACD0_ComCallableWrapper>, IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8
{
inline ValueCollection_t93BBCE4C284B2C998882FE9B39645E940AF2ACD0_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<ValueCollection_t93BBCE4C284B2C998882FE9B39645E940AF2ACD0_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_t93BBCE4C284B2C998882FE9B39645E940AF2ACD0(RuntimeObject* obj)
{
void* memory = il2cpp::utils::Memory::Malloc(sizeof(ValueCollection_t93BBCE4C284B2C998882FE9B39645E940AF2ACD0_ComCallableWrapper));
if (memory == NULL)
{
il2cpp_codegen_raise_out_of_memory_exception();
}
return static_cast<Il2CppIManagedObjectHolder*>(new(memory) ValueCollection_t93BBCE4C284B2C998882FE9B39645E940AF2ACD0_ComCallableWrapper(obj));
}
// COM Callable Wrapper for System.Collections.ObjectModel.ReadOnlyDictionary`2/ValueCollection<Microsoft.MixedReality.Toolkit.Input.IMixedRealityPointer,Microsoft.MixedReality.Toolkit.Input.DefaultPrimaryPointerSelector/PointerInfo>
struct ValueCollection_tC444032476362E68BB3BB9C95FAD70933A2B58D1_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<ValueCollection_tC444032476362E68BB3BB9C95FAD70933A2B58D1_ComCallableWrapper>, IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8
{
inline ValueCollection_tC444032476362E68BB3BB9C95FAD70933A2B58D1_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<ValueCollection_tC444032476362E68BB3BB9C95FAD70933A2B58D1_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_tC444032476362E68BB3BB9C95FAD70933A2B58D1(RuntimeObject* obj)
{
void* memory = il2cpp::utils::Memory::Malloc(sizeof(ValueCollection_tC444032476362E68BB3BB9C95FAD70933A2B58D1_ComCallableWrapper));
if (memory == NULL)
{
il2cpp_codegen_raise_out_of_memory_exception();
}
return static_cast<Il2CppIManagedObjectHolder*>(new(memory) ValueCollection_tC444032476362E68BB3BB9C95FAD70933A2B58D1_ComCallableWrapper(obj));
}
// COM Callable Wrapper for System.Collections.Generic.Dictionary`2/ValueCollection<Microsoft.MixedReality.Toolkit.IMixedRealityServiceRegistrar,System.Collections.Generic.List`1<Microsoft.MixedReality.Toolkit.IMixedRealityService>>
struct ValueCollection_t6182E1C54EEAB1FF3F9D23E7264092C56639BE18_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<ValueCollection_t6182E1C54EEAB1FF3F9D23E7264092C56639BE18_ComCallableWrapper>, IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4, IIterable_1_t65C1CF61727FBB13369E9B777E6EA4756FFD7E3D, IIterable_1_t6359E278A71A51A15FA83695BA7C54F9B3E04824, IIterable_1_tDA0D1077EFCD7389A5AD5BF4D598F22A450175CD, IIterable_1_tDA7BDBC19E1812C5ACD6E546F60391ADC6E2CE58, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8
{
inline ValueCollection_t6182E1C54EEAB1FF3F9D23E7264092C56639BE18_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<ValueCollection_t6182E1C54EEAB1FF3F9D23E7264092C56639BE18_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_t65C1CF61727FBB13369E9B777E6EA4756FFD7E3D::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<IIterable_1_t65C1CF61727FBB13369E9B777E6EA4756FFD7E3D*>(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, &IIterable_1_tDA0D1077EFCD7389A5AD5BF4D598F22A450175CD::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<IIterable_1_tDA0D1077EFCD7389A5AD5BF4D598F22A450175CD*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &IIterable_1_tDA7BDBC19E1812C5ACD6E546F60391ADC6E2CE58::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<IIterable_1_tDA7BDBC19E1812C5ACD6E546F60391ADC6E2CE58*>(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>(6);
interfaceIds[0] = IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4::IID;
interfaceIds[1] = IIterable_1_t65C1CF61727FBB13369E9B777E6EA4756FFD7E3D::IID;
interfaceIds[2] = IIterable_1_t6359E278A71A51A15FA83695BA7C54F9B3E04824::IID;
interfaceIds[3] = IIterable_1_tDA0D1077EFCD7389A5AD5BF4D598F22A450175CD::IID;
interfaceIds[4] = IIterable_1_tDA7BDBC19E1812C5ACD6E546F60391ADC6E2CE58::IID;
interfaceIds[5] = IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID;
*iidCount = 6;
*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_m2B4221348B2704C13FAEA47E445A5266F50F0552(IIterator_1_tE49C1648FC94E093BCD82BA18359053328200C9F** comReturnValue) IL2CPP_OVERRIDE
{
return IIterable_1_First_m2B4221348B2704C13FAEA47E445A5266F50F0552_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 IIterable_1_First_m5AA74545514CBE1B8F27A3AD8AB35879FA66F2BB(IIterator_1_t76B4F2A2B99659B935148C20E12CDDF5018A3267** comReturnValue) IL2CPP_OVERRIDE
{
return IIterable_1_First_m5AA74545514CBE1B8F27A3AD8AB35879FA66F2BB_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IIterable_1_First_m4F1ECE8DFCABEDF6BA2C0C3ABC35C492F13541E6(IIterator_1_tF6C570C031F6203C0401C0DC0B69FCE361F7062E** comReturnValue) IL2CPP_OVERRIDE
{
return IIterable_1_First_m4F1ECE8DFCABEDF6BA2C0C3ABC35C492F13541E6_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_t6182E1C54EEAB1FF3F9D23E7264092C56639BE18(RuntimeObject* obj)
{
void* memory = il2cpp::utils::Memory::Malloc(sizeof(ValueCollection_t6182E1C54EEAB1FF3F9D23E7264092C56639BE18_ComCallableWrapper));
if (memory == NULL)
{
il2cpp_codegen_raise_out_of_memory_exception();
}
return static_cast<Il2CppIManagedObjectHolder*>(new(memory) ValueCollection_t6182E1C54EEAB1FF3F9D23E7264092C56639BE18_ComCallableWrapper(obj));
}
// COM Callable Wrapper for System.Collections.ObjectModel.ReadOnlyDictionary`2/ValueCollection<Microsoft.MixedReality.Toolkit.IMixedRealityServiceRegistrar,System.Collections.Generic.List`1<Microsoft.MixedReality.Toolkit.IMixedRealityService>>
struct ValueCollection_tF44BF18D44BA0AE2BDA6463963C8A6C3BB077529_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<ValueCollection_tF44BF18D44BA0AE2BDA6463963C8A6C3BB077529_ComCallableWrapper>, IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4, IIterable_1_t65C1CF61727FBB13369E9B777E6EA4756FFD7E3D, IIterable_1_t6359E278A71A51A15FA83695BA7C54F9B3E04824, IIterable_1_tDA0D1077EFCD7389A5AD5BF4D598F22A450175CD, IIterable_1_tDA7BDBC19E1812C5ACD6E546F60391ADC6E2CE58, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8
{
inline ValueCollection_tF44BF18D44BA0AE2BDA6463963C8A6C3BB077529_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<ValueCollection_tF44BF18D44BA0AE2BDA6463963C8A6C3BB077529_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_t65C1CF61727FBB13369E9B777E6EA4756FFD7E3D::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<IIterable_1_t65C1CF61727FBB13369E9B777E6EA4756FFD7E3D*>(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, &IIterable_1_tDA0D1077EFCD7389A5AD5BF4D598F22A450175CD::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<IIterable_1_tDA0D1077EFCD7389A5AD5BF4D598F22A450175CD*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &IIterable_1_tDA7BDBC19E1812C5ACD6E546F60391ADC6E2CE58::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<IIterable_1_tDA7BDBC19E1812C5ACD6E546F60391ADC6E2CE58*>(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>(6);
interfaceIds[0] = IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4::IID;
interfaceIds[1] = IIterable_1_t65C1CF61727FBB13369E9B777E6EA4756FFD7E3D::IID;
interfaceIds[2] = IIterable_1_t6359E278A71A51A15FA83695BA7C54F9B3E04824::IID;
interfaceIds[3] = IIterable_1_tDA0D1077EFCD7389A5AD5BF4D598F22A450175CD::IID;
interfaceIds[4] = IIterable_1_tDA7BDBC19E1812C5ACD6E546F60391ADC6E2CE58::IID;
interfaceIds[5] = IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID;
*iidCount = 6;
*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_m2B4221348B2704C13FAEA47E445A5266F50F0552(IIterator_1_tE49C1648FC94E093BCD82BA18359053328200C9F** comReturnValue) IL2CPP_OVERRIDE
{
return IIterable_1_First_m2B4221348B2704C13FAEA47E445A5266F50F0552_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 IIterable_1_First_m5AA74545514CBE1B8F27A3AD8AB35879FA66F2BB(IIterator_1_t76B4F2A2B99659B935148C20E12CDDF5018A3267** comReturnValue) IL2CPP_OVERRIDE
{
return IIterable_1_First_m5AA74545514CBE1B8F27A3AD8AB35879FA66F2BB_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IIterable_1_First_m4F1ECE8DFCABEDF6BA2C0C3ABC35C492F13541E6(IIterator_1_tF6C570C031F6203C0401C0DC0B69FCE361F7062E** comReturnValue) IL2CPP_OVERRIDE
{
return IIterable_1_First_m4F1ECE8DFCABEDF6BA2C0C3ABC35C492F13541E6_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_tF44BF18D44BA0AE2BDA6463963C8A6C3BB077529(RuntimeObject* obj)
{
void* memory = il2cpp::utils::Memory::Malloc(sizeof(ValueCollection_tF44BF18D44BA0AE2BDA6463963C8A6C3BB077529_ComCallableWrapper));
if (memory == NULL)
{
il2cpp_codegen_raise_out_of_memory_exception();
}
return static_cast<Il2CppIManagedObjectHolder*>(new(memory) ValueCollection_tF44BF18D44BA0AE2BDA6463963C8A6C3BB077529_ComCallableWrapper(obj));
}
// COM Callable Wrapper for System.Collections.Generic.Dictionary`2/ValueCollection<Microsoft.MixedReality.Toolkit.UI.BoundsControl.IProximityEffectObjectProvider,System.Collections.Generic.List`1<Microsoft.MixedReality.Toolkit.UI.BoundsControl.ProximityEffect/ObjectProximityInfo>>
struct ValueCollection_t35EEE5F7625928EBEECE80818253291F7DA62F3F_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<ValueCollection_t35EEE5F7625928EBEECE80818253291F7DA62F3F_ComCallableWrapper>, IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4, IIterable_1_tB7611E3565ADF2561FF7521E03A1E3B93F7BD113, IIterable_1_t6359E278A71A51A15FA83695BA7C54F9B3E04824, IIterable_1_tDA0D1077EFCD7389A5AD5BF4D598F22A450175CD, IIterable_1_t1FE40219CF2EA9D14D69F038AAD3EC908A8FE771, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8
{
inline ValueCollection_t35EEE5F7625928EBEECE80818253291F7DA62F3F_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<ValueCollection_t35EEE5F7625928EBEECE80818253291F7DA62F3F_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, &IIterable_1_tDA0D1077EFCD7389A5AD5BF4D598F22A450175CD::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<IIterable_1_tDA0D1077EFCD7389A5AD5BF4D598F22A450175CD*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &IIterable_1_t1FE40219CF2EA9D14D69F038AAD3EC908A8FE771::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<IIterable_1_t1FE40219CF2EA9D14D69F038AAD3EC908A8FE771*>(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>(6);
interfaceIds[0] = IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4::IID;
interfaceIds[1] = IIterable_1_tB7611E3565ADF2561FF7521E03A1E3B93F7BD113::IID;
interfaceIds[2] = IIterable_1_t6359E278A71A51A15FA83695BA7C54F9B3E04824::IID;
interfaceIds[3] = IIterable_1_tDA0D1077EFCD7389A5AD5BF4D598F22A450175CD::IID;
interfaceIds[4] = IIterable_1_t1FE40219CF2EA9D14D69F038AAD3EC908A8FE771::IID;
interfaceIds[5] = IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID;
*iidCount = 6;
*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 IIterable_1_First_m5AA74545514CBE1B8F27A3AD8AB35879FA66F2BB(IIterator_1_t76B4F2A2B99659B935148C20E12CDDF5018A3267** comReturnValue) IL2CPP_OVERRIDE
{
return IIterable_1_First_m5AA74545514CBE1B8F27A3AD8AB35879FA66F2BB_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IIterable_1_First_m9A24DB3CFEE6B2D8C04AD194AC25CEA2597B8D3F(IIterator_1_t6407EDB3A3187B31D54D9B4E941F88F529FCE4B3** comReturnValue) IL2CPP_OVERRIDE
{
return IIterable_1_First_m9A24DB3CFEE6B2D8C04AD194AC25CEA2597B8D3F_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_t35EEE5F7625928EBEECE80818253291F7DA62F3F(RuntimeObject* obj)
{
void* memory = il2cpp::utils::Memory::Malloc(sizeof(ValueCollection_t35EEE5F7625928EBEECE80818253291F7DA62F3F_ComCallableWrapper));
if (memory == NULL)
{
il2cpp_codegen_raise_out_of_memory_exception();
}
return static_cast<Il2CppIManagedObjectHolder*>(new(memory) ValueCollection_t35EEE5F7625928EBEECE80818253291F7DA62F3F_ComCallableWrapper(obj));
}
// COM Callable Wrapper for System.Collections.ObjectModel.ReadOnlyDictionary`2/ValueCollection<Microsoft.MixedReality.Toolkit.UI.BoundsControl.IProximityEffectObjectProvider,System.Collections.Generic.List`1<Microsoft.MixedReality.Toolkit.UI.BoundsControl.ProximityEffect/ObjectProximityInfo>>
struct ValueCollection_t62D026783D1BDEA317AAC3A08FB50A983B717E52_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<ValueCollection_t62D026783D1BDEA317AAC3A08FB50A983B717E52_ComCallableWrapper>, IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4, IIterable_1_tB7611E3565ADF2561FF7521E03A1E3B93F7BD113, IIterable_1_t6359E278A71A51A15FA83695BA7C54F9B3E04824, IIterable_1_tDA0D1077EFCD7389A5AD5BF4D598F22A450175CD, IIterable_1_t1FE40219CF2EA9D14D69F038AAD3EC908A8FE771, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8
{
inline ValueCollection_t62D026783D1BDEA317AAC3A08FB50A983B717E52_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<ValueCollection_t62D026783D1BDEA317AAC3A08FB50A983B717E52_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, &IIterable_1_tDA0D1077EFCD7389A5AD5BF4D598F22A450175CD::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<IIterable_1_tDA0D1077EFCD7389A5AD5BF4D598F22A450175CD*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &IIterable_1_t1FE40219CF2EA9D14D69F038AAD3EC908A8FE771::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<IIterable_1_t1FE40219CF2EA9D14D69F038AAD3EC908A8FE771*>(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>(6);
interfaceIds[0] = IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4::IID;
interfaceIds[1] = IIterable_1_tB7611E3565ADF2561FF7521E03A1E3B93F7BD113::IID;
interfaceIds[2] = IIterable_1_t6359E278A71A51A15FA83695BA7C54F9B3E04824::IID;
interfaceIds[3] = IIterable_1_tDA0D1077EFCD7389A5AD5BF4D598F22A450175CD::IID;
interfaceIds[4] = IIterable_1_t1FE40219CF2EA9D14D69F038AAD3EC908A8FE771::IID;
interfaceIds[5] = IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID;
*iidCount = 6;
*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 IIterable_1_First_m5AA74545514CBE1B8F27A3AD8AB35879FA66F2BB(IIterator_1_t76B4F2A2B99659B935148C20E12CDDF5018A3267** comReturnValue) IL2CPP_OVERRIDE
{
return IIterable_1_First_m5AA74545514CBE1B8F27A3AD8AB35879FA66F2BB_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IIterable_1_First_m9A24DB3CFEE6B2D8C04AD194AC25CEA2597B8D3F(IIterator_1_t6407EDB3A3187B31D54D9B4E941F88F529FCE4B3** comReturnValue) IL2CPP_OVERRIDE
{
return IIterable_1_First_m9A24DB3CFEE6B2D8C04AD194AC25CEA2597B8D3F_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_t62D026783D1BDEA317AAC3A08FB50A983B717E52(RuntimeObject* obj)
{
void* memory = il2cpp::utils::Memory::Malloc(sizeof(ValueCollection_t62D026783D1BDEA317AAC3A08FB50A983B717E52_ComCallableWrapper));
if (memory == NULL)
{
il2cpp_codegen_raise_out_of_memory_exception();
}
return static_cast<Il2CppIManagedObjectHolder*>(new(memory) ValueCollection_t62D026783D1BDEA317AAC3A08FB50A983B717E52_ComCallableWrapper(obj));
}
// COM Callable Wrapper for System.Collections.Generic.Dictionary`2/ValueCollection<UnityEngine.XR.InputDevice,Microsoft.MixedReality.Toolkit.XRSDK.Input.GenericXRSDKController>
struct ValueCollection_tCCE813D240C8630808B5BD3FA1A8FCD4B27AF60F_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<ValueCollection_tCCE813D240C8630808B5BD3FA1A8FCD4B27AF60F_ComCallableWrapper>, IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8
{
inline ValueCollection_tCCE813D240C8630808B5BD3FA1A8FCD4B27AF60F_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<ValueCollection_tCCE813D240C8630808B5BD3FA1A8FCD4B27AF60F_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_tCCE813D240C8630808B5BD3FA1A8FCD4B27AF60F(RuntimeObject* obj)
{
void* memory = il2cpp::utils::Memory::Malloc(sizeof(ValueCollection_tCCE813D240C8630808B5BD3FA1A8FCD4B27AF60F_ComCallableWrapper));
if (memory == NULL)
{
il2cpp_codegen_raise_out_of_memory_exception();
}
return static_cast<Il2CppIManagedObjectHolder*>(new(memory) ValueCollection_tCCE813D240C8630808B5BD3FA1A8FCD4B27AF60F_ComCallableWrapper(obj));
}
// COM Callable Wrapper for System.Collections.ObjectModel.ReadOnlyDictionary`2/ValueCollection<UnityEngine.XR.InputDevice,Microsoft.MixedReality.Toolkit.XRSDK.Input.GenericXRSDKController>
struct ValueCollection_t2BB87BC48FD0FB932E61C48D019D0F7909C8BFF7_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<ValueCollection_t2BB87BC48FD0FB932E61C48D019D0F7909C8BFF7_ComCallableWrapper>, IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8
{
inline ValueCollection_t2BB87BC48FD0FB932E61C48D019D0F7909C8BFF7_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<ValueCollection_t2BB87BC48FD0FB932E61C48D019D0F7909C8BFF7_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_t2BB87BC48FD0FB932E61C48D019D0F7909C8BFF7(RuntimeObject* obj)
{
void* memory = il2cpp::utils::Memory::Malloc(sizeof(ValueCollection_t2BB87BC48FD0FB932E61C48D019D0F7909C8BFF7_ComCallableWrapper));
if (memory == NULL)
{
il2cpp_codegen_raise_out_of_memory_exception();
}
return static_cast<Il2CppIManagedObjectHolder*>(new(memory) ValueCollection_t2BB87BC48FD0FB932E61C48D019D0F7909C8BFF7_ComCallableWrapper(obj));
}
// COM Callable Wrapper for System.Collections.Generic.Dictionary`2/ValueCollection<System.Int32,System.Tuple`2<Microsoft.MixedReality.Toolkit.Input.KeyBinding/KeyType,System.Int32>>
struct ValueCollection_t1F82D536EB8FBE64609987D28E158B8B5A578992_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<ValueCollection_t1F82D536EB8FBE64609987D28E158B8B5A578992_ComCallableWrapper>, IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8
{
inline ValueCollection_t1F82D536EB8FBE64609987D28E158B8B5A578992_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<ValueCollection_t1F82D536EB8FBE64609987D28E158B8B5A578992_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_t1F82D536EB8FBE64609987D28E158B8B5A578992(RuntimeObject* obj)
{
void* memory = il2cpp::utils::Memory::Malloc(sizeof(ValueCollection_t1F82D536EB8FBE64609987D28E158B8B5A578992_ComCallableWrapper));
if (memory == NULL)
{
il2cpp_codegen_raise_out_of_memory_exception();
}
return static_cast<Il2CppIManagedObjectHolder*>(new(memory) ValueCollection_t1F82D536EB8FBE64609987D28E158B8B5A578992_ComCallableWrapper(obj));
}
// COM Callable Wrapper for System.Collections.ObjectModel.ReadOnlyDictionary`2/ValueCollection<System.Int32,System.Tuple`2<Microsoft.MixedReality.Toolkit.Input.KeyBinding/KeyType,System.Int32>>
struct ValueCollection_t090E0538F1546987A3F3A3F9B204780DCF28E34A_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<ValueCollection_t090E0538F1546987A3F3A3F9B204780DCF28E34A_ComCallableWrapper>, IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8
{
inline ValueCollection_t090E0538F1546987A3F3A3F9B204780DCF28E34A_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<ValueCollection_t090E0538F1546987A3F3A3F9B204780DCF28E34A_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_t090E0538F1546987A3F3A3F9B204780DCF28E34A(RuntimeObject* obj)
{
void* memory = il2cpp::utils::Memory::Malloc(sizeof(ValueCollection_t090E0538F1546987A3F3A3F9B204780DCF28E34A_ComCallableWrapper));
if (memory == NULL)
{
il2cpp_codegen_raise_out_of_memory_exception();
}
return static_cast<Il2CppIManagedObjectHolder*>(new(memory) ValueCollection_t090E0538F1546987A3F3A3F9B204780DCF28E34A_ComCallableWrapper(obj));
}
// COM Callable Wrapper for System.Collections.Generic.Dictionary`2/ValueCollection<System.Int32,System.Boolean>
struct ValueCollection_tAC9371FC72C759652E224BBBE13669CD7F4FC7EC_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<ValueCollection_tAC9371FC72C759652E224BBBE13669CD7F4FC7EC_ComCallableWrapper>, IIterable_1_t0F0E81F8630AABFA67939A3C4C7A6448EC21FB24, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8
{
inline ValueCollection_tAC9371FC72C759652E224BBBE13669CD7F4FC7EC_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<ValueCollection_tAC9371FC72C759652E224BBBE13669CD7F4FC7EC_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_tAC9371FC72C759652E224BBBE13669CD7F4FC7EC(RuntimeObject* obj)
{
void* memory = il2cpp::utils::Memory::Malloc(sizeof(ValueCollection_tAC9371FC72C759652E224BBBE13669CD7F4FC7EC_ComCallableWrapper));
if (memory == NULL)
{
il2cpp_codegen_raise_out_of_memory_exception();
}
return static_cast<Il2CppIManagedObjectHolder*>(new(memory) ValueCollection_tAC9371FC72C759652E224BBBE13669CD7F4FC7EC_ComCallableWrapper(obj));
}
// COM Callable Wrapper for System.Collections.ObjectModel.ReadOnlyDictionary`2/ValueCollection<System.Int32,System.Boolean>
struct ValueCollection_tB51F603A239485F05720315028C603D2DC30180E_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<ValueCollection_tB51F603A239485F05720315028C603D2DC30180E_ComCallableWrapper>, IIterable_1_t0F0E81F8630AABFA67939A3C4C7A6448EC21FB24, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8
{
inline ValueCollection_tB51F603A239485F05720315028C603D2DC30180E_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<ValueCollection_tB51F603A239485F05720315028C603D2DC30180E_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_tB51F603A239485F05720315028C603D2DC30180E(RuntimeObject* obj)
{
void* memory = il2cpp::utils::Memory::Malloc(sizeof(ValueCollection_tB51F603A239485F05720315028C603D2DC30180E_ComCallableWrapper));
if (memory == NULL)
{
il2cpp_codegen_raise_out_of_memory_exception();
}
return static_cast<Il2CppIManagedObjectHolder*>(new(memory) ValueCollection_tB51F603A239485F05720315028C603D2DC30180E_ComCallableWrapper(obj));
}
// COM Callable Wrapper for System.Collections.Generic.Dictionary`2/ValueCollection<System.Int32,System.Char>
struct ValueCollection_tDEA922C20FE7390F1063807C7F0EAE8B2C022A7B_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<ValueCollection_tDEA922C20FE7390F1063807C7F0EAE8B2C022A7B_ComCallableWrapper>, IIterable_1_t76BB785EC29C8526627DE0ACEA068DB15E5388CE, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8
{
inline ValueCollection_tDEA922C20FE7390F1063807C7F0EAE8B2C022A7B_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<ValueCollection_tDEA922C20FE7390F1063807C7F0EAE8B2C022A7B_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_t76BB785EC29C8526627DE0ACEA068DB15E5388CE::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<IIterable_1_t76BB785EC29C8526627DE0ACEA068DB15E5388CE*>(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_t76BB785EC29C8526627DE0ACEA068DB15E5388CE::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_mB416B18AB4E9562AAD05C38EB9AD14CC685574CA(IIterator_1_tC3877F062B34DD4C7EA4B4D797B326073FC95B72** comReturnValue) IL2CPP_OVERRIDE
{
return IIterable_1_First_mB416B18AB4E9562AAD05C38EB9AD14CC685574CA_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_tDEA922C20FE7390F1063807C7F0EAE8B2C022A7B(RuntimeObject* obj)
{
void* memory = il2cpp::utils::Memory::Malloc(sizeof(ValueCollection_tDEA922C20FE7390F1063807C7F0EAE8B2C022A7B_ComCallableWrapper));
if (memory == NULL)
{
il2cpp_codegen_raise_out_of_memory_exception();
}
return static_cast<Il2CppIManagedObjectHolder*>(new(memory) ValueCollection_tDEA922C20FE7390F1063807C7F0EAE8B2C022A7B_ComCallableWrapper(obj));
}
// COM Callable Wrapper for System.Collections.ObjectModel.ReadOnlyDictionary`2/ValueCollection<System.Int32,System.Char>
struct ValueCollection_t65BF5F1537D952260730F9EF31DFBCA90DA7FC5A_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<ValueCollection_t65BF5F1537D952260730F9EF31DFBCA90DA7FC5A_ComCallableWrapper>, IIterable_1_t76BB785EC29C8526627DE0ACEA068DB15E5388CE, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8
{
inline ValueCollection_t65BF5F1537D952260730F9EF31DFBCA90DA7FC5A_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<ValueCollection_t65BF5F1537D952260730F9EF31DFBCA90DA7FC5A_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_t76BB785EC29C8526627DE0ACEA068DB15E5388CE::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<IIterable_1_t76BB785EC29C8526627DE0ACEA068DB15E5388CE*>(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_t76BB785EC29C8526627DE0ACEA068DB15E5388CE::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_mB416B18AB4E9562AAD05C38EB9AD14CC685574CA(IIterator_1_tC3877F062B34DD4C7EA4B4D797B326073FC95B72** comReturnValue) IL2CPP_OVERRIDE
{
return IIterable_1_First_mB416B18AB4E9562AAD05C38EB9AD14CC685574CA_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_t65BF5F1537D952260730F9EF31DFBCA90DA7FC5A(RuntimeObject* obj)
{
void* memory = il2cpp::utils::Memory::Malloc(sizeof(ValueCollection_t65BF5F1537D952260730F9EF31DFBCA90DA7FC5A_ComCallableWrapper));
if (memory == NULL)
{
il2cpp_codegen_raise_out_of_memory_exception();
}
return static_cast<Il2CppIManagedObjectHolder*>(new(memory) ValueCollection_t65BF5F1537D952260730F9EF31DFBCA90DA7FC5A_ComCallableWrapper(obj));
}
// COM Callable Wrapper for System.Collections.Generic.Dictionary`2/ValueCollection<System.Int32,System.Globalization.CultureInfo>
struct ValueCollection_tE84BE90A3A9ADA37C09165304138ECF878FE4ED7_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<ValueCollection_tE84BE90A3A9ADA37C09165304138ECF878FE4ED7_ComCallableWrapper>, IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8
{
inline ValueCollection_tE84BE90A3A9ADA37C09165304138ECF878FE4ED7_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<ValueCollection_tE84BE90A3A9ADA37C09165304138ECF878FE4ED7_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_tE84BE90A3A9ADA37C09165304138ECF878FE4ED7(RuntimeObject* obj)
{
void* memory = il2cpp::utils::Memory::Malloc(sizeof(ValueCollection_tE84BE90A3A9ADA37C09165304138ECF878FE4ED7_ComCallableWrapper));
if (memory == NULL)
{
il2cpp_codegen_raise_out_of_memory_exception();
}
return static_cast<Il2CppIManagedObjectHolder*>(new(memory) ValueCollection_tE84BE90A3A9ADA37C09165304138ECF878FE4ED7_ComCallableWrapper(obj));
}
// COM Callable Wrapper for System.Collections.ObjectModel.ReadOnlyDictionary`2/ValueCollection<System.Int32,System.Globalization.CultureInfo>
struct ValueCollection_t76A1D105429D1EF9CA00AED8B612D7F5DEA1A0E1_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<ValueCollection_t76A1D105429D1EF9CA00AED8B612D7F5DEA1A0E1_ComCallableWrapper>, IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8
{
inline ValueCollection_t76A1D105429D1EF9CA00AED8B612D7F5DEA1A0E1_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<ValueCollection_t76A1D105429D1EF9CA00AED8B612D7F5DEA1A0E1_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_t76A1D105429D1EF9CA00AED8B612D7F5DEA1A0E1(RuntimeObject* obj)
{
void* memory = il2cpp::utils::Memory::Malloc(sizeof(ValueCollection_t76A1D105429D1EF9CA00AED8B612D7F5DEA1A0E1_ComCallableWrapper));
if (memory == NULL)
{
il2cpp_codegen_raise_out_of_memory_exception();
}
return static_cast<Il2CppIManagedObjectHolder*>(new(memory) ValueCollection_t76A1D105429D1EF9CA00AED8B612D7F5DEA1A0E1_ComCallableWrapper(obj));
}
// COM Callable Wrapper for System.Collections.Generic.Dictionary`2/ValueCollection<System.Int32,System.Int32>
struct ValueCollection_t8738745D8513A557A82E6E097DF4D4E70D5253C2_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<ValueCollection_t8738745D8513A557A82E6E097DF4D4E70D5253C2_ComCallableWrapper>, IIterable_1_t3FD1FB01310262788B2A8868AA7395E023511050, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8
{
inline ValueCollection_t8738745D8513A557A82E6E097DF4D4E70D5253C2_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<ValueCollection_t8738745D8513A557A82E6E097DF4D4E70D5253C2_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_t8738745D8513A557A82E6E097DF4D4E70D5253C2(RuntimeObject* obj)
{
void* memory = il2cpp::utils::Memory::Malloc(sizeof(ValueCollection_t8738745D8513A557A82E6E097DF4D4E70D5253C2_ComCallableWrapper));
if (memory == NULL)
{
il2cpp_codegen_raise_out_of_memory_exception();
}
return static_cast<Il2CppIManagedObjectHolder*>(new(memory) ValueCollection_t8738745D8513A557A82E6E097DF4D4E70D5253C2_ComCallableWrapper(obj));
}
// COM Callable Wrapper for System.Collections.ObjectModel.ReadOnlyDictionary`2/ValueCollection<System.Int32,System.Int32>
struct ValueCollection_t48B58DEA6F5CF1E9959CC08347044FD1199BB39C_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<ValueCollection_t48B58DEA6F5CF1E9959CC08347044FD1199BB39C_ComCallableWrapper>, IIterable_1_t3FD1FB01310262788B2A8868AA7395E023511050, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8
{
inline ValueCollection_t48B58DEA6F5CF1E9959CC08347044FD1199BB39C_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<ValueCollection_t48B58DEA6F5CF1E9959CC08347044FD1199BB39C_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_t48B58DEA6F5CF1E9959CC08347044FD1199BB39C(RuntimeObject* obj)
{
void* memory = il2cpp::utils::Memory::Malloc(sizeof(ValueCollection_t48B58DEA6F5CF1E9959CC08347044FD1199BB39C_ComCallableWrapper));
if (memory == NULL)
{
il2cpp_codegen_raise_out_of_memory_exception();
}
return static_cast<Il2CppIManagedObjectHolder*>(new(memory) ValueCollection_t48B58DEA6F5CF1E9959CC08347044FD1199BB39C_ComCallableWrapper(obj));
}
// COM Callable Wrapper for System.Collections.Generic.Dictionary`2/ValueCollection<System.Int32,System.Int64>
struct ValueCollection_tDD2C80682AF4CF18883668E136B1980110C79D95_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<ValueCollection_tDD2C80682AF4CF18883668E136B1980110C79D95_ComCallableWrapper>, IIterable_1_t30CEC1AA394C5CCDA490BB4CE97C7A91D3122A6F, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8
{
inline ValueCollection_tDD2C80682AF4CF18883668E136B1980110C79D95_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<ValueCollection_tDD2C80682AF4CF18883668E136B1980110C79D95_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_t30CEC1AA394C5CCDA490BB4CE97C7A91D3122A6F::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<IIterable_1_t30CEC1AA394C5CCDA490BB4CE97C7A91D3122A6F*>(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_t30CEC1AA394C5CCDA490BB4CE97C7A91D3122A6F::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_mFE037A1FA26B15187119714FC35E6254FAE04579(IIterator_1_t3FD87DAE4281E0090447733627B3A0BA377B6CEC** comReturnValue) IL2CPP_OVERRIDE
{
return IIterable_1_First_mFE037A1FA26B15187119714FC35E6254FAE04579_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_tDD2C80682AF4CF18883668E136B1980110C79D95(RuntimeObject* obj)
{
void* memory = il2cpp::utils::Memory::Malloc(sizeof(ValueCollection_tDD2C80682AF4CF18883668E136B1980110C79D95_ComCallableWrapper));
if (memory == NULL)
{
il2cpp_codegen_raise_out_of_memory_exception();
}
return static_cast<Il2CppIManagedObjectHolder*>(new(memory) ValueCollection_tDD2C80682AF4CF18883668E136B1980110C79D95_ComCallableWrapper(obj));
}
// COM Callable Wrapper for System.Collections.ObjectModel.ReadOnlyDictionary`2/ValueCollection<System.Int32,System.Int64>
struct ValueCollection_tDD3A2A47F1254D88628C68D87D830A584722012F_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<ValueCollection_tDD3A2A47F1254D88628C68D87D830A584722012F_ComCallableWrapper>, IIterable_1_t30CEC1AA394C5CCDA490BB4CE97C7A91D3122A6F, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8
{
inline ValueCollection_tDD3A2A47F1254D88628C68D87D830A584722012F_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<ValueCollection_tDD3A2A47F1254D88628C68D87D830A584722012F_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_t30CEC1AA394C5CCDA490BB4CE97C7A91D3122A6F::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<IIterable_1_t30CEC1AA394C5CCDA490BB4CE97C7A91D3122A6F*>(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_t30CEC1AA394C5CCDA490BB4CE97C7A91D3122A6F::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_mFE037A1FA26B15187119714FC35E6254FAE04579(IIterator_1_t3FD87DAE4281E0090447733627B3A0BA377B6CEC** comReturnValue) IL2CPP_OVERRIDE
{
return IIterable_1_First_mFE037A1FA26B15187119714FC35E6254FAE04579_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_tDD3A2A47F1254D88628C68D87D830A584722012F(RuntimeObject* obj)
{
void* memory = il2cpp::utils::Memory::Malloc(sizeof(ValueCollection_tDD3A2A47F1254D88628C68D87D830A584722012F_ComCallableWrapper));
if (memory == NULL)
{
il2cpp_codegen_raise_out_of_memory_exception();
}
return static_cast<Il2CppIManagedObjectHolder*>(new(memory) ValueCollection_tDD3A2A47F1254D88628C68D87D830A584722012F_ComCallableWrapper(obj));
}
// COM Callable Wrapper for System.Collections.Generic.Dictionary`2/ValueCollection<System.Int32,UnityEngine.Material>
struct ValueCollection_t45CC083597229265F7ED085E423FB1A7BF762BA3_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<ValueCollection_t45CC083597229265F7ED085E423FB1A7BF762BA3_ComCallableWrapper>, IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8
{
inline ValueCollection_t45CC083597229265F7ED085E423FB1A7BF762BA3_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<ValueCollection_t45CC083597229265F7ED085E423FB1A7BF762BA3_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_t45CC083597229265F7ED085E423FB1A7BF762BA3(RuntimeObject* obj)
{
void* memory = il2cpp::utils::Memory::Malloc(sizeof(ValueCollection_t45CC083597229265F7ED085E423FB1A7BF762BA3_ComCallableWrapper));
if (memory == NULL)
{
il2cpp_codegen_raise_out_of_memory_exception();
}
return static_cast<Il2CppIManagedObjectHolder*>(new(memory) ValueCollection_t45CC083597229265F7ED085E423FB1A7BF762BA3_ComCallableWrapper(obj));
}
// COM Callable Wrapper for System.Collections.ObjectModel.ReadOnlyDictionary`2/ValueCollection<System.Int32,UnityEngine.Material>
struct ValueCollection_tE6DD53C28F18E9D5F05F965551F3C88178BF15B4_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<ValueCollection_tE6DD53C28F18E9D5F05F965551F3C88178BF15B4_ComCallableWrapper>, IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8
{
inline ValueCollection_tE6DD53C28F18E9D5F05F965551F3C88178BF15B4_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<ValueCollection_tE6DD53C28F18E9D5F05F965551F3C88178BF15B4_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_tE6DD53C28F18E9D5F05F965551F3C88178BF15B4(RuntimeObject* obj)
{
void* memory = il2cpp::utils::Memory::Malloc(sizeof(ValueCollection_tE6DD53C28F18E9D5F05F965551F3C88178BF15B4_ComCallableWrapper));
if (memory == NULL)
{
il2cpp_codegen_raise_out_of_memory_exception();
}
return static_cast<Il2CppIManagedObjectHolder*>(new(memory) ValueCollection_tE6DD53C28F18E9D5F05F965551F3C88178BF15B4_ComCallableWrapper(obj));
}
// COM Callable Wrapper for System.Collections.Generic.Dictionary`2/ValueCollection<System.Int32,UnityEngine.EventSystems.PointerEventData>
struct ValueCollection_t28C5EADCF5205986726B544E972D81491CD308DA_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<ValueCollection_t28C5EADCF5205986726B544E972D81491CD308DA_ComCallableWrapper>, IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8
{
inline ValueCollection_t28C5EADCF5205986726B544E972D81491CD308DA_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<ValueCollection_t28C5EADCF5205986726B544E972D81491CD308DA_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_t28C5EADCF5205986726B544E972D81491CD308DA(RuntimeObject* obj)
{
void* memory = il2cpp::utils::Memory::Malloc(sizeof(ValueCollection_t28C5EADCF5205986726B544E972D81491CD308DA_ComCallableWrapper));
if (memory == NULL)
{
il2cpp_codegen_raise_out_of_memory_exception();
}
return static_cast<Il2CppIManagedObjectHolder*>(new(memory) ValueCollection_t28C5EADCF5205986726B544E972D81491CD308DA_ComCallableWrapper(obj));
}
// COM Callable Wrapper for System.Collections.ObjectModel.ReadOnlyDictionary`2/ValueCollection<System.Int32,UnityEngine.EventSystems.PointerEventData>
struct ValueCollection_t9FEB03EF99A5A4FEC35B8B143F9A805C36347399_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<ValueCollection_t9FEB03EF99A5A4FEC35B8B143F9A805C36347399_ComCallableWrapper>, IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8
{
inline ValueCollection_t9FEB03EF99A5A4FEC35B8B143F9A805C36347399_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<ValueCollection_t9FEB03EF99A5A4FEC35B8B143F9A805C36347399_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_t9FEB03EF99A5A4FEC35B8B143F9A805C36347399(RuntimeObject* obj)
{
void* memory = il2cpp::utils::Memory::Malloc(sizeof(ValueCollection_t9FEB03EF99A5A4FEC35B8B143F9A805C36347399_ComCallableWrapper));
if (memory == NULL)
{
il2cpp_codegen_raise_out_of_memory_exception();
}
return static_cast<Il2CppIManagedObjectHolder*>(new(memory) ValueCollection_t9FEB03EF99A5A4FEC35B8B143F9A805C36347399_ComCallableWrapper(obj));
}
// COM Callable Wrapper for System.Collections.Generic.Dictionary`2/ValueCollection<System.Int32,Microsoft.MixedReality.Toolkit.SpatialAwareness.SpatialAwarenessMeshObject>
struct ValueCollection_t532B14D24FC92E18A887848D100E3825432ECF59_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<ValueCollection_t532B14D24FC92E18A887848D100E3825432ECF59_ComCallableWrapper>, IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8
{
inline ValueCollection_t532B14D24FC92E18A887848D100E3825432ECF59_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<ValueCollection_t532B14D24FC92E18A887848D100E3825432ECF59_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_t532B14D24FC92E18A887848D100E3825432ECF59(RuntimeObject* obj)
{
void* memory = il2cpp::utils::Memory::Malloc(sizeof(ValueCollection_t532B14D24FC92E18A887848D100E3825432ECF59_ComCallableWrapper));
if (memory == NULL)
{
il2cpp_codegen_raise_out_of_memory_exception();
}
return static_cast<Il2CppIManagedObjectHolder*>(new(memory) ValueCollection_t532B14D24FC92E18A887848D100E3825432ECF59_ComCallableWrapper(obj));
}
// COM Callable Wrapper for System.Collections.ObjectModel.ReadOnlyDictionary`2/ValueCollection<System.Int32,Microsoft.MixedReality.Toolkit.SpatialAwareness.SpatialAwarenessMeshObject>
struct ValueCollection_t5A60FE54FE5D98B0A446038207081BD75087CAE3_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<ValueCollection_t5A60FE54FE5D98B0A446038207081BD75087CAE3_ComCallableWrapper>, IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8
{
inline ValueCollection_t5A60FE54FE5D98B0A446038207081BD75087CAE3_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<ValueCollection_t5A60FE54FE5D98B0A446038207081BD75087CAE3_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_t5A60FE54FE5D98B0A446038207081BD75087CAE3(RuntimeObject* obj)
{
void* memory = il2cpp::utils::Memory::Malloc(sizeof(ValueCollection_t5A60FE54FE5D98B0A446038207081BD75087CAE3_ComCallableWrapper));
if (memory == NULL)
{
il2cpp_codegen_raise_out_of_memory_exception();
}
return static_cast<Il2CppIManagedObjectHolder*>(new(memory) ValueCollection_t5A60FE54FE5D98B0A446038207081BD75087CAE3_ComCallableWrapper(obj));
}
// COM Callable Wrapper for System.Collections.Generic.Dictionary`2/ValueCollection<System.Int32,System.String>
struct ValueCollection_t5C221D6474B57B05A1EF91C1C6A7B1FA1CF361BF_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<ValueCollection_t5C221D6474B57B05A1EF91C1C6A7B1FA1CF361BF_ComCallableWrapper>, IIterable_1_t94592E586C395F026290ACC676E74C560595CC26, IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4, IIterable_1_t6359E278A71A51A15FA83695BA7C54F9B3E04824, IIterable_1_t05BE14C1DEA010486117E0E313F29EF024BDB2BF, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8
{
inline ValueCollection_t5C221D6474B57B05A1EF91C1C6A7B1FA1CF361BF_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<ValueCollection_t5C221D6474B57B05A1EF91C1C6A7B1FA1CF361BF_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_t94592E586C395F026290ACC676E74C560595CC26::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<IIterable_1_t94592E586C395F026290ACC676E74C560595CC26*>(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_t6359E278A71A51A15FA83695BA7C54F9B3E04824::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<IIterable_1_t6359E278A71A51A15FA83695BA7C54F9B3E04824*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &IIterable_1_t05BE14C1DEA010486117E0E313F29EF024BDB2BF::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<IIterable_1_t05BE14C1DEA010486117E0E313F29EF024BDB2BF*>(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>(5);
interfaceIds[0] = IIterable_1_t94592E586C395F026290ACC676E74C560595CC26::IID;
interfaceIds[1] = IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4::IID;
interfaceIds[2] = IIterable_1_t6359E278A71A51A15FA83695BA7C54F9B3E04824::IID;
interfaceIds[3] = IIterable_1_t05BE14C1DEA010486117E0E313F29EF024BDB2BF::IID;
interfaceIds[4] = IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID;
*iidCount = 5;
*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_m03F765E1BD333E4E315525DE80BF54183A4D54D7(IIterator_1_t125F1266580B29D637CD7546CA3812EB7C0B0D9D** comReturnValue) IL2CPP_OVERRIDE
{
return IIterable_1_First_m03F765E1BD333E4E315525DE80BF54183A4D54D7_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue);
}
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_m512126C71D7E9D1C31B56F64455F33E9FEEC89F8(IIterator_1_t6A46A7244E5AAD0AE4F2A07AF43DA5052D55F4A4** comReturnValue) IL2CPP_OVERRIDE
{
return IIterable_1_First_m512126C71D7E9D1C31B56F64455F33E9FEEC89F8_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IIterable_1_First_mD8D790F1EED3414261E3D73A15AA6B40BD8B4A87(IIterator_1_t966CEB5AF294B82E90C669B54974D432637938CF** comReturnValue) IL2CPP_OVERRIDE
{
return IIterable_1_First_mD8D790F1EED3414261E3D73A15AA6B40BD8B4A87_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_t5C221D6474B57B05A1EF91C1C6A7B1FA1CF361BF(RuntimeObject* obj)
{
void* memory = il2cpp::utils::Memory::Malloc(sizeof(ValueCollection_t5C221D6474B57B05A1EF91C1C6A7B1FA1CF361BF_ComCallableWrapper));
if (memory == NULL)
{
il2cpp_codegen_raise_out_of_memory_exception();
}
return static_cast<Il2CppIManagedObjectHolder*>(new(memory) ValueCollection_t5C221D6474B57B05A1EF91C1C6A7B1FA1CF361BF_ComCallableWrapper(obj));
}
// COM Callable Wrapper for System.Collections.ObjectModel.ReadOnlyDictionary`2/ValueCollection<System.Int32,System.String>
struct ValueCollection_tE8B618071B897471AC32AAF06060B187610CFB43_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<ValueCollection_tE8B618071B897471AC32AAF06060B187610CFB43_ComCallableWrapper>, IIterable_1_t94592E586C395F026290ACC676E74C560595CC26, IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4, IIterable_1_t6359E278A71A51A15FA83695BA7C54F9B3E04824, IIterable_1_t05BE14C1DEA010486117E0E313F29EF024BDB2BF, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8
{
inline ValueCollection_tE8B618071B897471AC32AAF06060B187610CFB43_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<ValueCollection_tE8B618071B897471AC32AAF06060B187610CFB43_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_t94592E586C395F026290ACC676E74C560595CC26::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<IIterable_1_t94592E586C395F026290ACC676E74C560595CC26*>(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_t6359E278A71A51A15FA83695BA7C54F9B3E04824::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<IIterable_1_t6359E278A71A51A15FA83695BA7C54F9B3E04824*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &IIterable_1_t05BE14C1DEA010486117E0E313F29EF024BDB2BF::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<IIterable_1_t05BE14C1DEA010486117E0E313F29EF024BDB2BF*>(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>(5);
interfaceIds[0] = IIterable_1_t94592E586C395F026290ACC676E74C560595CC26::IID;
interfaceIds[1] = IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4::IID;
interfaceIds[2] = IIterable_1_t6359E278A71A51A15FA83695BA7C54F9B3E04824::IID;
interfaceIds[3] = IIterable_1_t05BE14C1DEA010486117E0E313F29EF024BDB2BF::IID;
interfaceIds[4] = IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID;
*iidCount = 5;
*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_m03F765E1BD333E4E315525DE80BF54183A4D54D7(IIterator_1_t125F1266580B29D637CD7546CA3812EB7C0B0D9D** comReturnValue) IL2CPP_OVERRIDE
{
return IIterable_1_First_m03F765E1BD333E4E315525DE80BF54183A4D54D7_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue);
}
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_m512126C71D7E9D1C31B56F64455F33E9FEEC89F8(IIterator_1_t6A46A7244E5AAD0AE4F2A07AF43DA5052D55F4A4** comReturnValue) IL2CPP_OVERRIDE
{
return IIterable_1_First_m512126C71D7E9D1C31B56F64455F33E9FEEC89F8_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IIterable_1_First_mD8D790F1EED3414261E3D73A15AA6B40BD8B4A87(IIterator_1_t966CEB5AF294B82E90C669B54974D432637938CF** comReturnValue) IL2CPP_OVERRIDE
{
return IIterable_1_First_mD8D790F1EED3414261E3D73A15AA6B40BD8B4A87_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_tE8B618071B897471AC32AAF06060B187610CFB43(RuntimeObject* obj)
{
void* memory = il2cpp::utils::Memory::Malloc(sizeof(ValueCollection_tE8B618071B897471AC32AAF06060B187610CFB43_ComCallableWrapper));
if (memory == NULL)
{
il2cpp_codegen_raise_out_of_memory_exception();
}
return static_cast<Il2CppIManagedObjectHolder*>(new(memory) ValueCollection_tE8B618071B897471AC32AAF06060B187610CFB43_ComCallableWrapper(obj));
}
// COM Callable Wrapper for System.Collections.Generic.Dictionary`2/ValueCollection<System.Int32,TMPro.TMP_ColorGradient>
struct ValueCollection_t0A4E0F9662AF7EF0D0D0E1E70988F30A0717AA41_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<ValueCollection_t0A4E0F9662AF7EF0D0D0E1E70988F30A0717AA41_ComCallableWrapper>, IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8
{
inline ValueCollection_t0A4E0F9662AF7EF0D0D0E1E70988F30A0717AA41_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<ValueCollection_t0A4E0F9662AF7EF0D0D0E1E70988F30A0717AA41_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_t0A4E0F9662AF7EF0D0D0E1E70988F30A0717AA41(RuntimeObject* obj)
{
void* memory = il2cpp::utils::Memory::Malloc(sizeof(ValueCollection_t0A4E0F9662AF7EF0D0D0E1E70988F30A0717AA41_ComCallableWrapper));
if (memory == NULL)
{
il2cpp_codegen_raise_out_of_memory_exception();
}
return static_cast<Il2CppIManagedObjectHolder*>(new(memory) ValueCollection_t0A4E0F9662AF7EF0D0D0E1E70988F30A0717AA41_ComCallableWrapper(obj));
}
// COM Callable Wrapper for System.Collections.ObjectModel.ReadOnlyDictionary`2/ValueCollection<System.Int32,TMPro.TMP_ColorGradient>
struct ValueCollection_tF3E06E1B7F3F827575625D735B684EDF94431971_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<ValueCollection_tF3E06E1B7F3F827575625D735B684EDF94431971_ComCallableWrapper>, IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8
{
inline ValueCollection_tF3E06E1B7F3F827575625D735B684EDF94431971_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<ValueCollection_tF3E06E1B7F3F827575625D735B684EDF94431971_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_tF3E06E1B7F3F827575625D735B684EDF94431971(RuntimeObject* obj)
{
void* memory = il2cpp::utils::Memory::Malloc(sizeof(ValueCollection_tF3E06E1B7F3F827575625D735B684EDF94431971_ComCallableWrapper));
if (memory == NULL)
{
il2cpp_codegen_raise_out_of_memory_exception();
}
return static_cast<Il2CppIManagedObjectHolder*>(new(memory) ValueCollection_tF3E06E1B7F3F827575625D735B684EDF94431971_ComCallableWrapper(obj));
}
// COM Callable Wrapper for System.Collections.Generic.Dictionary`2/ValueCollection<System.Int32,TMPro.TMP_FontAsset>
struct ValueCollection_tC8F758677CEA2459E735CF3B2F6408762AAC21B5_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<ValueCollection_tC8F758677CEA2459E735CF3B2F6408762AAC21B5_ComCallableWrapper>, IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8
{
inline ValueCollection_tC8F758677CEA2459E735CF3B2F6408762AAC21B5_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<ValueCollection_tC8F758677CEA2459E735CF3B2F6408762AAC21B5_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_tC8F758677CEA2459E735CF3B2F6408762AAC21B5(RuntimeObject* obj)
{
void* memory = il2cpp::utils::Memory::Malloc(sizeof(ValueCollection_tC8F758677CEA2459E735CF3B2F6408762AAC21B5_ComCallableWrapper));
if (memory == NULL)
{
il2cpp_codegen_raise_out_of_memory_exception();
}
return static_cast<Il2CppIManagedObjectHolder*>(new(memory) ValueCollection_tC8F758677CEA2459E735CF3B2F6408762AAC21B5_ComCallableWrapper(obj));
}
// COM Callable Wrapper for System.Collections.ObjectModel.ReadOnlyDictionary`2/ValueCollection<System.Int32,TMPro.TMP_FontAsset>
struct ValueCollection_t468EF4114E5E829EEC9AFCCDF8745C4D2E301C88_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<ValueCollection_t468EF4114E5E829EEC9AFCCDF8745C4D2E301C88_ComCallableWrapper>, IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8
{
inline ValueCollection_t468EF4114E5E829EEC9AFCCDF8745C4D2E301C88_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<ValueCollection_t468EF4114E5E829EEC9AFCCDF8745C4D2E301C88_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_t468EF4114E5E829EEC9AFCCDF8745C4D2E301C88(RuntimeObject* obj)
{
void* memory = il2cpp::utils::Memory::Malloc(sizeof(ValueCollection_t468EF4114E5E829EEC9AFCCDF8745C4D2E301C88_ComCallableWrapper));
if (memory == NULL)
{
il2cpp_codegen_raise_out_of_memory_exception();
}
return static_cast<Il2CppIManagedObjectHolder*>(new(memory) ValueCollection_t468EF4114E5E829EEC9AFCCDF8745C4D2E301C88_ComCallableWrapper(obj));
}
// COM Callable Wrapper for System.Collections.Generic.Dictionary`2/ValueCollection<System.Int32,TMPro.TMP_SpriteAsset>
struct ValueCollection_t4FAE69882A1111AEC4C2ADABCAA914A58F8CA1A8_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<ValueCollection_t4FAE69882A1111AEC4C2ADABCAA914A58F8CA1A8_ComCallableWrapper>, IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8
{
inline ValueCollection_t4FAE69882A1111AEC4C2ADABCAA914A58F8CA1A8_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<ValueCollection_t4FAE69882A1111AEC4C2ADABCAA914A58F8CA1A8_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_t4FAE69882A1111AEC4C2ADABCAA914A58F8CA1A8(RuntimeObject* obj)
{
void* memory = il2cpp::utils::Memory::Malloc(sizeof(ValueCollection_t4FAE69882A1111AEC4C2ADABCAA914A58F8CA1A8_ComCallableWrapper));
if (memory == NULL)
{
il2cpp_codegen_raise_out_of_memory_exception();
}
return static_cast<Il2CppIManagedObjectHolder*>(new(memory) ValueCollection_t4FAE69882A1111AEC4C2ADABCAA914A58F8CA1A8_ComCallableWrapper(obj));
}
// COM Callable Wrapper for System.Collections.ObjectModel.ReadOnlyDictionary`2/ValueCollection<System.Int32,TMPro.TMP_SpriteAsset>
struct ValueCollection_tA7D37A794F6B8768525831C895952CD93ED21510_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<ValueCollection_tA7D37A794F6B8768525831C895952CD93ED21510_ComCallableWrapper>, IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8
{
inline ValueCollection_tA7D37A794F6B8768525831C895952CD93ED21510_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<ValueCollection_tA7D37A794F6B8768525831C895952CD93ED21510_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_tA7D37A794F6B8768525831C895952CD93ED21510(RuntimeObject* obj)
{
void* memory = il2cpp::utils::Memory::Malloc(sizeof(ValueCollection_tA7D37A794F6B8768525831C895952CD93ED21510_ComCallableWrapper));
if (memory == NULL)
{
il2cpp_codegen_raise_out_of_memory_exception();
}
return static_cast<Il2CppIManagedObjectHolder*>(new(memory) ValueCollection_tA7D37A794F6B8768525831C895952CD93ED21510_ComCallableWrapper(obj));
}
// COM Callable Wrapper for System.Collections.Generic.Dictionary`2/ValueCollection<System.Int32,TMPro.TMP_Style>
struct ValueCollection_t625D6831F9B9DDA73FD6EBEC5DF210DF81231030_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<ValueCollection_t625D6831F9B9DDA73FD6EBEC5DF210DF81231030_ComCallableWrapper>, IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8
{
inline ValueCollection_t625D6831F9B9DDA73FD6EBEC5DF210DF81231030_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<ValueCollection_t625D6831F9B9DDA73FD6EBEC5DF210DF81231030_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_t625D6831F9B9DDA73FD6EBEC5DF210DF81231030(RuntimeObject* obj)
{
void* memory = il2cpp::utils::Memory::Malloc(sizeof(ValueCollection_t625D6831F9B9DDA73FD6EBEC5DF210DF81231030_ComCallableWrapper));
if (memory == NULL)
{
il2cpp_codegen_raise_out_of_memory_exception();
}
return static_cast<Il2CppIManagedObjectHolder*>(new(memory) ValueCollection_t625D6831F9B9DDA73FD6EBEC5DF210DF81231030_ComCallableWrapper(obj));
}
// COM Callable Wrapper for System.Collections.ObjectModel.ReadOnlyDictionary`2/ValueCollection<System.Int32,TMPro.TMP_Style>
struct ValueCollection_tD45AF1B120128FB336471F76D41131B907650C04_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<ValueCollection_tD45AF1B120128FB336471F76D41131B907650C04_ComCallableWrapper>, IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8
{
inline ValueCollection_tD45AF1B120128FB336471F76D41131B907650C04_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<ValueCollection_tD45AF1B120128FB336471F76D41131B907650C04_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_tD45AF1B120128FB336471F76D41131B907650C04(RuntimeObject* obj)
{
void* memory = il2cpp::utils::Memory::Malloc(sizeof(ValueCollection_tD45AF1B120128FB336471F76D41131B907650C04_ComCallableWrapper));
if (memory == NULL)
{
il2cpp_codegen_raise_out_of_memory_exception();
}
return static_cast<Il2CppIManagedObjectHolder*>(new(memory) ValueCollection_tD45AF1B120128FB336471F76D41131B907650C04_ComCallableWrapper(obj));
}
// COM Callable Wrapper for System.Collections.Generic.Dictionary`2/ValueCollection<System.Int32,System.Threading.Tasks.Task>
struct ValueCollection_tB61C2016CD14273F2E8ABD6FEEA53372E4A53C73_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<ValueCollection_tB61C2016CD14273F2E8ABD6FEEA53372E4A53C73_ComCallableWrapper>, IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4, IIterable_1_t5F4BD9477DDC56D9428ADFFD61354FCFE2E78588, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8
{
inline ValueCollection_tB61C2016CD14273F2E8ABD6FEEA53372E4A53C73_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<ValueCollection_tB61C2016CD14273F2E8ABD6FEEA53372E4A53C73_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_t5F4BD9477DDC56D9428ADFFD61354FCFE2E78588::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<IIterable_1_t5F4BD9477DDC56D9428ADFFD61354FCFE2E78588*>(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>(3);
interfaceIds[0] = IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4::IID;
interfaceIds[1] = IIterable_1_t5F4BD9477DDC56D9428ADFFD61354FCFE2E78588::IID;
interfaceIds[2] = IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID;
*iidCount = 3;
*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_mDDCB90F64D3007CB280F2A112BFB11FEDF4CF937(IIterator_1_tE84305D19EB46B9DD6D1B86BE7195EBA9B09BF2D** comReturnValue) IL2CPP_OVERRIDE
{
return IIterable_1_First_mDDCB90F64D3007CB280F2A112BFB11FEDF4CF937_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_tB61C2016CD14273F2E8ABD6FEEA53372E4A53C73(RuntimeObject* obj)
{
void* memory = il2cpp::utils::Memory::Malloc(sizeof(ValueCollection_tB61C2016CD14273F2E8ABD6FEEA53372E4A53C73_ComCallableWrapper));
if (memory == NULL)
{
il2cpp_codegen_raise_out_of_memory_exception();
}
return static_cast<Il2CppIManagedObjectHolder*>(new(memory) ValueCollection_tB61C2016CD14273F2E8ABD6FEEA53372E4A53C73_ComCallableWrapper(obj));
}
// COM Callable Wrapper for System.Collections.ObjectModel.ReadOnlyDictionary`2/ValueCollection<System.Int32,System.Threading.Tasks.Task>
struct ValueCollection_tC0EF51948EA6CC2782B13B162C154C832EFEC3E1_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<ValueCollection_tC0EF51948EA6CC2782B13B162C154C832EFEC3E1_ComCallableWrapper>, IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4, IIterable_1_t5F4BD9477DDC56D9428ADFFD61354FCFE2E78588, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8
{
inline ValueCollection_tC0EF51948EA6CC2782B13B162C154C832EFEC3E1_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<ValueCollection_tC0EF51948EA6CC2782B13B162C154C832EFEC3E1_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_t5F4BD9477DDC56D9428ADFFD61354FCFE2E78588::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<IIterable_1_t5F4BD9477DDC56D9428ADFFD61354FCFE2E78588*>(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>(3);
interfaceIds[0] = IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4::IID;
interfaceIds[1] = IIterable_1_t5F4BD9477DDC56D9428ADFFD61354FCFE2E78588::IID;
interfaceIds[2] = IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID;
*iidCount = 3;
*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_mDDCB90F64D3007CB280F2A112BFB11FEDF4CF937(IIterator_1_tE84305D19EB46B9DD6D1B86BE7195EBA9B09BF2D** comReturnValue) IL2CPP_OVERRIDE
{
return IIterable_1_First_mDDCB90F64D3007CB280F2A112BFB11FEDF4CF937_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_tC0EF51948EA6CC2782B13B162C154C832EFEC3E1(RuntimeObject* obj)
{
void* memory = il2cpp::utils::Memory::Malloc(sizeof(ValueCollection_tC0EF51948EA6CC2782B13B162C154C832EFEC3E1_ComCallableWrapper));
if (memory == NULL)
{
il2cpp_codegen_raise_out_of_memory_exception();
}
return static_cast<Il2CppIManagedObjectHolder*>(new(memory) ValueCollection_tC0EF51948EA6CC2782B13B162C154C832EFEC3E1_ComCallableWrapper(obj));
}
// COM Callable Wrapper for System.Collections.Generic.Dictionary`2/ValueCollection<System.Int32,System.TimeType>
struct ValueCollection_tAAC32AE618C238632B383B9345C22427B19EA9C5_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<ValueCollection_tAAC32AE618C238632B383B9345C22427B19EA9C5_ComCallableWrapper>, IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8
{
inline ValueCollection_tAAC32AE618C238632B383B9345C22427B19EA9C5_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<ValueCollection_tAAC32AE618C238632B383B9345C22427B19EA9C5_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_tAAC32AE618C238632B383B9345C22427B19EA9C5(RuntimeObject* obj)
{
void* memory = il2cpp::utils::Memory::Malloc(sizeof(ValueCollection_tAAC32AE618C238632B383B9345C22427B19EA9C5_ComCallableWrapper));
if (memory == NULL)
{
il2cpp_codegen_raise_out_of_memory_exception();
}
return static_cast<Il2CppIManagedObjectHolder*>(new(memory) ValueCollection_tAAC32AE618C238632B383B9345C22427B19EA9C5_ComCallableWrapper(obj));
}
// COM Callable Wrapper for System.Collections.ObjectModel.ReadOnlyDictionary`2/ValueCollection<System.Int32,System.TimeType>
struct ValueCollection_t06DE7C9B1AF6C21F3D792B24ED702715CB5C9B80_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<ValueCollection_t06DE7C9B1AF6C21F3D792B24ED702715CB5C9B80_ComCallableWrapper>, IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8
{
inline ValueCollection_t06DE7C9B1AF6C21F3D792B24ED702715CB5C9B80_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<ValueCollection_t06DE7C9B1AF6C21F3D792B24ED702715CB5C9B80_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_t06DE7C9B1AF6C21F3D792B24ED702715CB5C9B80(RuntimeObject* obj)
{
void* memory = il2cpp::utils::Memory::Malloc(sizeof(ValueCollection_t06DE7C9B1AF6C21F3D792B24ED702715CB5C9B80_ComCallableWrapper));
if (memory == NULL)
{
il2cpp_codegen_raise_out_of_memory_exception();
}
return static_cast<Il2CppIManagedObjectHolder*>(new(memory) ValueCollection_t06DE7C9B1AF6C21F3D792B24ED702715CB5C9B80_ComCallableWrapper(obj));
}
// COM Callable Wrapper for System.Collections.Generic.Dictionary`2/ValueCollection<System.Int32,Microsoft.MixedReality.Toolkit.Input.UnityInput.UnityTouchController>
struct ValueCollection_tADF78A5BE1F06BCCC05C38BF765907A7638A05B1_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<ValueCollection_tADF78A5BE1F06BCCC05C38BF765907A7638A05B1_ComCallableWrapper>, IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8
{
inline ValueCollection_tADF78A5BE1F06BCCC05C38BF765907A7638A05B1_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<ValueCollection_tADF78A5BE1F06BCCC05C38BF765907A7638A05B1_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_tADF78A5BE1F06BCCC05C38BF765907A7638A05B1(RuntimeObject* obj)
{
void* memory = il2cpp::utils::Memory::Malloc(sizeof(ValueCollection_tADF78A5BE1F06BCCC05C38BF765907A7638A05B1_ComCallableWrapper));
if (memory == NULL)
{
il2cpp_codegen_raise_out_of_memory_exception();
}
return static_cast<Il2CppIManagedObjectHolder*>(new(memory) ValueCollection_tADF78A5BE1F06BCCC05C38BF765907A7638A05B1_ComCallableWrapper(obj));
}
// COM Callable Wrapper for System.Collections.ObjectModel.ReadOnlyDictionary`2/ValueCollection<System.Int32,Microsoft.MixedReality.Toolkit.Input.UnityInput.UnityTouchController>
struct ValueCollection_t43EB4079728FAFF2194187CFB09ECD1FB4951CB9_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<ValueCollection_t43EB4079728FAFF2194187CFB09ECD1FB4951CB9_ComCallableWrapper>, IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8
{
inline ValueCollection_t43EB4079728FAFF2194187CFB09ECD1FB4951CB9_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<ValueCollection_t43EB4079728FAFF2194187CFB09ECD1FB4951CB9_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_t43EB4079728FAFF2194187CFB09ECD1FB4951CB9(RuntimeObject* obj)
{
void* memory = il2cpp::utils::Memory::Malloc(sizeof(ValueCollection_t43EB4079728FAFF2194187CFB09ECD1FB4951CB9_ComCallableWrapper));
if (memory == NULL)
{
il2cpp_codegen_raise_out_of_memory_exception();
}
return static_cast<Il2CppIManagedObjectHolder*>(new(memory) ValueCollection_t43EB4079728FAFF2194187CFB09ECD1FB4951CB9_ComCallableWrapper(obj));
}
// COM Callable Wrapper for System.Collections.Generic.Dictionary`2/ValueCollection<System.Int32,UnityEngine.GUILayoutUtility/LayoutCache>
struct ValueCollection_t8DE7DA329F6A29C185EDFDDA71627FD6C4C725F8_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<ValueCollection_t8DE7DA329F6A29C185EDFDDA71627FD6C4C725F8_ComCallableWrapper>, IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8
{
inline ValueCollection_t8DE7DA329F6A29C185EDFDDA71627FD6C4C725F8_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<ValueCollection_t8DE7DA329F6A29C185EDFDDA71627FD6C4C725F8_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_t8DE7DA329F6A29C185EDFDDA71627FD6C4C725F8(RuntimeObject* obj)
{
void* memory = il2cpp::utils::Memory::Malloc(sizeof(ValueCollection_t8DE7DA329F6A29C185EDFDDA71627FD6C4C725F8_ComCallableWrapper));
if (memory == NULL)
{
il2cpp_codegen_raise_out_of_memory_exception();
}
return static_cast<Il2CppIManagedObjectHolder*>(new(memory) ValueCollection_t8DE7DA329F6A29C185EDFDDA71627FD6C4C725F8_ComCallableWrapper(obj));
}
// COM Callable Wrapper for System.Collections.ObjectModel.ReadOnlyDictionary`2/ValueCollection<System.Int32,UnityEngine.GUILayoutUtility/LayoutCache>
struct ValueCollection_t6960BACFC4198CB6FAC694668070119F290F95C4_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<ValueCollection_t6960BACFC4198CB6FAC694668070119F290F95C4_ComCallableWrapper>, IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8
{
inline ValueCollection_t6960BACFC4198CB6FAC694668070119F290F95C4_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<ValueCollection_t6960BACFC4198CB6FAC694668070119F290F95C4_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_t6960BACFC4198CB6FAC694668070119F290F95C4(RuntimeObject* obj)
{
void* memory = il2cpp::utils::Memory::Malloc(sizeof(ValueCollection_t6960BACFC4198CB6FAC694668070119F290F95C4_ComCallableWrapper));
if (memory == NULL)
{
il2cpp_codegen_raise_out_of_memory_exception();
}
return static_cast<Il2CppIManagedObjectHolder*>(new(memory) ValueCollection_t6960BACFC4198CB6FAC694668070119F290F95C4_ComCallableWrapper(obj));
}
// COM Callable Wrapper for System.Collections.Generic.Dictionary`2/ValueCollection<System.Int32,Microsoft.MixedReality.Toolkit.Input.MixedRealityInputModule/PointerData>
struct ValueCollection_t785392F6FCC7542B349A8D0753166B46003CC299_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<ValueCollection_t785392F6FCC7542B349A8D0753166B46003CC299_ComCallableWrapper>, IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8
{
inline ValueCollection_t785392F6FCC7542B349A8D0753166B46003CC299_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<ValueCollection_t785392F6FCC7542B349A8D0753166B46003CC299_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_t785392F6FCC7542B349A8D0753166B46003CC299(RuntimeObject* obj)
{
void* memory = il2cpp::utils::Memory::Malloc(sizeof(ValueCollection_t785392F6FCC7542B349A8D0753166B46003CC299_ComCallableWrapper));
if (memory == NULL)
{
il2cpp_codegen_raise_out_of_memory_exception();
}
return static_cast<Il2CppIManagedObjectHolder*>(new(memory) ValueCollection_t785392F6FCC7542B349A8D0753166B46003CC299_ComCallableWrapper(obj));
}
// COM Callable Wrapper for System.Collections.ObjectModel.ReadOnlyDictionary`2/ValueCollection<System.Int32,Microsoft.MixedReality.Toolkit.Input.MixedRealityInputModule/PointerData>
struct ValueCollection_tD307F92C22EC1E4D9BCC43E689AC1D8DF8D3148B_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<ValueCollection_tD307F92C22EC1E4D9BCC43E689AC1D8DF8D3148B_ComCallableWrapper>, IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8
{
inline ValueCollection_tD307F92C22EC1E4D9BCC43E689AC1D8DF8D3148B_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<ValueCollection_tD307F92C22EC1E4D9BCC43E689AC1D8DF8D3148B_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_tD307F92C22EC1E4D9BCC43E689AC1D8DF8D3148B(RuntimeObject* obj)
{
void* memory = il2cpp::utils::Memory::Malloc(sizeof(ValueCollection_tD307F92C22EC1E4D9BCC43E689AC1D8DF8D3148B_ComCallableWrapper));
if (memory == NULL)
{
il2cpp_codegen_raise_out_of_memory_exception();
}
return static_cast<Il2CppIManagedObjectHolder*>(new(memory) ValueCollection_tD307F92C22EC1E4D9BCC43E689AC1D8DF8D3148B_ComCallableWrapper(obj));
}
// COM Callable Wrapper for System.Collections.Generic.Dictionary`2/ValueCollection<System.Int32,UnityEngine.Experimental.TerrainAPI.TerrainUtility/TerrainMap>
struct ValueCollection_tF5A29AA52483C44A9B166F23F45001565015B4EB_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<ValueCollection_tF5A29AA52483C44A9B166F23F45001565015B4EB_ComCallableWrapper>, IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8
{
inline ValueCollection_tF5A29AA52483C44A9B166F23F45001565015B4EB_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<ValueCollection_tF5A29AA52483C44A9B166F23F45001565015B4EB_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_tF5A29AA52483C44A9B166F23F45001565015B4EB(RuntimeObject* obj)
{
void* memory = il2cpp::utils::Memory::Malloc(sizeof(ValueCollection_tF5A29AA52483C44A9B166F23F45001565015B4EB_ComCallableWrapper));
if (memory == NULL)
{
il2cpp_codegen_raise_out_of_memory_exception();
}
return static_cast<Il2CppIManagedObjectHolder*>(new(memory) ValueCollection_tF5A29AA52483C44A9B166F23F45001565015B4EB_ComCallableWrapper(obj));
}
// COM Callable Wrapper for System.Collections.ObjectModel.ReadOnlyDictionary`2/ValueCollection<System.Int32,UnityEngine.Experimental.TerrainAPI.TerrainUtility/TerrainMap>
struct ValueCollection_tBCFE074CC7AF6EDB1B2855274B0F9144C14DF2F2_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<ValueCollection_tBCFE074CC7AF6EDB1B2855274B0F9144C14DF2F2_ComCallableWrapper>, IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8
{
inline ValueCollection_tBCFE074CC7AF6EDB1B2855274B0F9144C14DF2F2_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<ValueCollection_tBCFE074CC7AF6EDB1B2855274B0F9144C14DF2F2_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_tBCFE074CC7AF6EDB1B2855274B0F9144C14DF2F2(RuntimeObject* obj)
{
void* memory = il2cpp::utils::Memory::Malloc(sizeof(ValueCollection_tBCFE074CC7AF6EDB1B2855274B0F9144C14DF2F2_ComCallableWrapper));
if (memory == NULL)
{
il2cpp_codegen_raise_out_of_memory_exception();
}
return static_cast<Il2CppIManagedObjectHolder*>(new(memory) ValueCollection_tBCFE074CC7AF6EDB1B2855274B0F9144C14DF2F2_ComCallableWrapper(obj));
}
// COM Callable Wrapper for System.Collections.Generic.Dictionary`2/ValueCollection<System.Int64,TMPro.TMP_MaterialManager/FallbackMaterial>
struct ValueCollection_tCCF34CAD9EBEE4C994FB6C0181F8E35516BEA984_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<ValueCollection_tCCF34CAD9EBEE4C994FB6C0181F8E35516BEA984_ComCallableWrapper>, IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8
{
inline ValueCollection_tCCF34CAD9EBEE4C994FB6C0181F8E35516BEA984_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<ValueCollection_tCCF34CAD9EBEE4C994FB6C0181F8E35516BEA984_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_tCCF34CAD9EBEE4C994FB6C0181F8E35516BEA984(RuntimeObject* obj)
{
void* memory = il2cpp::utils::Memory::Malloc(sizeof(ValueCollection_tCCF34CAD9EBEE4C994FB6C0181F8E35516BEA984_ComCallableWrapper));
if (memory == NULL)
{
il2cpp_codegen_raise_out_of_memory_exception();
}
return static_cast<Il2CppIManagedObjectHolder*>(new(memory) ValueCollection_tCCF34CAD9EBEE4C994FB6C0181F8E35516BEA984_ComCallableWrapper(obj));
}
// COM Callable Wrapper for System.Collections.ObjectModel.ReadOnlyDictionary`2/ValueCollection<System.Int64,TMPro.TMP_MaterialManager/FallbackMaterial>
struct ValueCollection_t5CB442B521BF4716EBDDA2D9D43953DAFA6D6217_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<ValueCollection_t5CB442B521BF4716EBDDA2D9D43953DAFA6D6217_ComCallableWrapper>, IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8
{
inline ValueCollection_t5CB442B521BF4716EBDDA2D9D43953DAFA6D6217_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<ValueCollection_t5CB442B521BF4716EBDDA2D9D43953DAFA6D6217_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_t5CB442B521BF4716EBDDA2D9D43953DAFA6D6217(RuntimeObject* obj)
{
void* memory = il2cpp::utils::Memory::Malloc(sizeof(ValueCollection_t5CB442B521BF4716EBDDA2D9D43953DAFA6D6217_ComCallableWrapper));
if (memory == NULL)
{
il2cpp_codegen_raise_out_of_memory_exception();
}
return static_cast<Il2CppIManagedObjectHolder*>(new(memory) ValueCollection_t5CB442B521BF4716EBDDA2D9D43953DAFA6D6217_ComCallableWrapper(obj));
}
// COM Callable Wrapper for System.Collections.ObjectModel.ReadOnlyDictionary`2/ValueCollection<System.Runtime.Serialization.MemberHolder,System.Reflection.MemberInfo[]>
struct ValueCollection_t490C46E2C988D497F9D983A3839F5BADF2242BF8_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<ValueCollection_t490C46E2C988D497F9D983A3839F5BADF2242BF8_ComCallableWrapper>, IIterable_1_tB7611E3565ADF2561FF7521E03A1E3B93F7BD113, IIterable_1_t6359E278A71A51A15FA83695BA7C54F9B3E04824, IIterable_1_t1FE40219CF2EA9D14D69F038AAD3EC908A8FE771, IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4, IIterable_1_tDA0D1077EFCD7389A5AD5BF4D598F22A450175CD, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8
{
inline ValueCollection_t490C46E2C988D497F9D983A3839F5BADF2242BF8_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<ValueCollection_t490C46E2C988D497F9D983A3839F5BADF2242BF8_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_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, &IIterable_1_t1FE40219CF2EA9D14D69F038AAD3EC908A8FE771::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<IIterable_1_t1FE40219CF2EA9D14D69F038AAD3EC908A8FE771*>(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_tDA0D1077EFCD7389A5AD5BF4D598F22A450175CD::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<IIterable_1_tDA0D1077EFCD7389A5AD5BF4D598F22A450175CD*>(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>(6);
interfaceIds[0] = IIterable_1_tB7611E3565ADF2561FF7521E03A1E3B93F7BD113::IID;
interfaceIds[1] = IIterable_1_t6359E278A71A51A15FA83695BA7C54F9B3E04824::IID;
interfaceIds[2] = IIterable_1_t1FE40219CF2EA9D14D69F038AAD3EC908A8FE771::IID;
interfaceIds[3] = IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4::IID;
interfaceIds[4] = IIterable_1_tDA0D1077EFCD7389A5AD5BF4D598F22A450175CD::IID;
interfaceIds[5] = IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID;
*iidCount = 6;
*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_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 IIterable_1_First_m9A24DB3CFEE6B2D8C04AD194AC25CEA2597B8D3F(IIterator_1_t6407EDB3A3187B31D54D9B4E941F88F529FCE4B3** comReturnValue) IL2CPP_OVERRIDE
{
return IIterable_1_First_m9A24DB3CFEE6B2D8C04AD194AC25CEA2597B8D3F_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue);
}
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_m5AA74545514CBE1B8F27A3AD8AB35879FA66F2BB(IIterator_1_t76B4F2A2B99659B935148C20E12CDDF5018A3267** comReturnValue) IL2CPP_OVERRIDE
{
return IIterable_1_First_m5AA74545514CBE1B8F27A3AD8AB35879FA66F2BB_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_t490C46E2C988D497F9D983A3839F5BADF2242BF8(RuntimeObject* obj)
{
void* memory = il2cpp::utils::Memory::Malloc(sizeof(ValueCollection_t490C46E2C988D497F9D983A3839F5BADF2242BF8_ComCallableWrapper));
if (memory == NULL)
{
il2cpp_codegen_raise_out_of_memory_exception();
}
return static_cast<Il2CppIManagedObjectHolder*>(new(memory) ValueCollection_t490C46E2C988D497F9D983A3839F5BADF2242BF8_ComCallableWrapper(obj));
}
// COM Callable Wrapper for System.Collections.Generic.Dictionary`2/ValueCollection<UnityEngine.Mesh,Microsoft.MixedReality.Toolkit.Utilities.MeshSmoother/MeshReference>
struct ValueCollection_tBBAEF38FC75ABDFCD1E5E4CAB542714F89988132_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<ValueCollection_tBBAEF38FC75ABDFCD1E5E4CAB542714F89988132_ComCallableWrapper>, IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8
{
inline ValueCollection_tBBAEF38FC75ABDFCD1E5E4CAB542714F89988132_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<ValueCollection_tBBAEF38FC75ABDFCD1E5E4CAB542714F89988132_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_tBBAEF38FC75ABDFCD1E5E4CAB542714F89988132(RuntimeObject* obj)
{
void* memory = il2cpp::utils::Memory::Malloc(sizeof(ValueCollection_tBBAEF38FC75ABDFCD1E5E4CAB542714F89988132_ComCallableWrapper));
if (memory == NULL)
{
il2cpp_codegen_raise_out_of_memory_exception();
}
return static_cast<Il2CppIManagedObjectHolder*>(new(memory) ValueCollection_tBBAEF38FC75ABDFCD1E5E4CAB542714F89988132_ComCallableWrapper(obj));
}
// COM Callable Wrapper for System.Collections.ObjectModel.ReadOnlyDictionary`2/ValueCollection<UnityEngine.Mesh,Microsoft.MixedReality.Toolkit.Utilities.MeshSmoother/MeshReference>
struct ValueCollection_tD82FC4CB2CA66DF8752A12E5E17B9AA66CCF0FF5_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<ValueCollection_tD82FC4CB2CA66DF8752A12E5E17B9AA66CCF0FF5_ComCallableWrapper>, IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8
{
inline ValueCollection_tD82FC4CB2CA66DF8752A12E5E17B9AA66CCF0FF5_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<ValueCollection_tD82FC4CB2CA66DF8752A12E5E17B9AA66CCF0FF5_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_tD82FC4CB2CA66DF8752A12E5E17B9AA66CCF0FF5(RuntimeObject* obj)
{
void* memory = il2cpp::utils::Memory::Malloc(sizeof(ValueCollection_tD82FC4CB2CA66DF8752A12E5E17B9AA66CCF0FF5_ComCallableWrapper));
if (memory == NULL)
{
il2cpp_codegen_raise_out_of_memory_exception();
}
return static_cast<Il2CppIManagedObjectHolder*>(new(memory) ValueCollection_tD82FC4CB2CA66DF8752A12E5E17B9AA66CCF0FF5_ComCallableWrapper(obj));
}
// COM Callable Wrapper for System.Collections.Generic.Dictionary`2/ValueCollection<System.Reflection.MethodInfo,System.Collections.Generic.Dictionary`2<System.Object,System.Runtime.InteropServices.WindowsRuntime.WindowsRuntimeMarshal/EventRegistrationTokenList>>
struct ValueCollection_tDF9F4C17321815AB3E97B0CF08B95643B761CC5F_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<ValueCollection_tDF9F4C17321815AB3E97B0CF08B95643B761CC5F_ComCallableWrapper>, IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4, IIterable_1_t6359E278A71A51A15FA83695BA7C54F9B3E04824, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8
{
inline ValueCollection_tDF9F4C17321815AB3E97B0CF08B95643B761CC5F_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<ValueCollection_tDF9F4C17321815AB3E97B0CF08B95643B761CC5F_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_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>(3);
interfaceIds[0] = IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4::IID;
interfaceIds[1] = IIterable_1_t6359E278A71A51A15FA83695BA7C54F9B3E04824::IID;
interfaceIds[2] = IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID;
*iidCount = 3;
*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_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_tDF9F4C17321815AB3E97B0CF08B95643B761CC5F(RuntimeObject* obj)
{
void* memory = il2cpp::utils::Memory::Malloc(sizeof(ValueCollection_tDF9F4C17321815AB3E97B0CF08B95643B761CC5F_ComCallableWrapper));
if (memory == NULL)
{
il2cpp_codegen_raise_out_of_memory_exception();
}
return static_cast<Il2CppIManagedObjectHolder*>(new(memory) ValueCollection_tDF9F4C17321815AB3E97B0CF08B95643B761CC5F_ComCallableWrapper(obj));
}
// COM Callable Wrapper for System.Collections.ObjectModel.ReadOnlyDictionary`2/ValueCollection<System.Reflection.MethodInfo,System.Collections.Generic.Dictionary`2<System.Object,System.Runtime.InteropServices.WindowsRuntime.WindowsRuntimeMarshal/EventRegistrationTokenList>>
struct ValueCollection_t64D5CC96C01CD1964AB4E4552466209BB5010168_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<ValueCollection_t64D5CC96C01CD1964AB4E4552466209BB5010168_ComCallableWrapper>, IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4, IIterable_1_t6359E278A71A51A15FA83695BA7C54F9B3E04824, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8
{
inline ValueCollection_t64D5CC96C01CD1964AB4E4552466209BB5010168_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<ValueCollection_t64D5CC96C01CD1964AB4E4552466209BB5010168_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_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>(3);
interfaceIds[0] = IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4::IID;
interfaceIds[1] = IIterable_1_t6359E278A71A51A15FA83695BA7C54F9B3E04824::IID;
interfaceIds[2] = IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID;
*iidCount = 3;
*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_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_t64D5CC96C01CD1964AB4E4552466209BB5010168(RuntimeObject* obj)
{
void* memory = il2cpp::utils::Memory::Malloc(sizeof(ValueCollection_t64D5CC96C01CD1964AB4E4552466209BB5010168_ComCallableWrapper));
if (memory == NULL)
{
il2cpp_codegen_raise_out_of_memory_exception();
}
return static_cast<Il2CppIManagedObjectHolder*>(new(memory) ValueCollection_t64D5CC96C01CD1964AB4E4552466209BB5010168_ComCallableWrapper(obj));
}
// COM Callable Wrapper for System.Collections.Generic.Dictionary`2/ValueCollection<System.Object,System.Runtime.InteropServices.WindowsRuntime.WindowsRuntimeMarshal/EventRegistrationTokenList>
struct ValueCollection_tEA48E4B6DFB033F98ED189470457D6134F7C7AA9_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<ValueCollection_tEA48E4B6DFB033F98ED189470457D6134F7C7AA9_ComCallableWrapper>, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8
{
inline ValueCollection_tEA48E4B6DFB033F98ED189470457D6134F7C7AA9_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<ValueCollection_tEA48E4B6DFB033F98ED189470457D6134F7C7AA9_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_tEA48E4B6DFB033F98ED189470457D6134F7C7AA9(RuntimeObject* obj)
{
void* memory = il2cpp::utils::Memory::Malloc(sizeof(ValueCollection_tEA48E4B6DFB033F98ED189470457D6134F7C7AA9_ComCallableWrapper));
if (memory == NULL)
{
il2cpp_codegen_raise_out_of_memory_exception();
}
return static_cast<Il2CppIManagedObjectHolder*>(new(memory) ValueCollection_tEA48E4B6DFB033F98ED189470457D6134F7C7AA9_ComCallableWrapper(obj));
}
// COM Callable Wrapper for System.Collections.ObjectModel.ReadOnlyDictionary`2/ValueCollection<System.Object,System.Runtime.InteropServices.WindowsRuntime.WindowsRuntimeMarshal/EventRegistrationTokenList>
struct ValueCollection_t67C7AC4BD5E770742C8C63745C34310883D9BC0E_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<ValueCollection_t67C7AC4BD5E770742C8C63745C34310883D9BC0E_ComCallableWrapper>, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8
{
inline ValueCollection_t67C7AC4BD5E770742C8C63745C34310883D9BC0E_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<ValueCollection_t67C7AC4BD5E770742C8C63745C34310883D9BC0E_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_t67C7AC4BD5E770742C8C63745C34310883D9BC0E(RuntimeObject* obj)
{
void* memory = il2cpp::utils::Memory::Malloc(sizeof(ValueCollection_t67C7AC4BD5E770742C8C63745C34310883D9BC0E_ComCallableWrapper));
if (memory == NULL)
{
il2cpp_codegen_raise_out_of_memory_exception();
}
return static_cast<Il2CppIManagedObjectHolder*>(new(memory) ValueCollection_t67C7AC4BD5E770742C8C63745C34310883D9BC0E_ComCallableWrapper(obj));
}
// COM Callable Wrapper for System.Collections.Generic.Dictionary`2/ValueCollection<UnityEngine.Renderer,System.Collections.Generic.List`1<UnityEngine.Material>>
struct ValueCollection_t4B036D0BD949C2E59398E64DE2DC4DE7941F17AF_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<ValueCollection_t4B036D0BD949C2E59398E64DE2DC4DE7941F17AF_ComCallableWrapper>, IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4, IIterable_1_tB7611E3565ADF2561FF7521E03A1E3B93F7BD113, IIterable_1_t6359E278A71A51A15FA83695BA7C54F9B3E04824, IIterable_1_tDA0D1077EFCD7389A5AD5BF4D598F22A450175CD, IIterable_1_t1FE40219CF2EA9D14D69F038AAD3EC908A8FE771, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8
{
inline ValueCollection_t4B036D0BD949C2E59398E64DE2DC4DE7941F17AF_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<ValueCollection_t4B036D0BD949C2E59398E64DE2DC4DE7941F17AF_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, &IIterable_1_tDA0D1077EFCD7389A5AD5BF4D598F22A450175CD::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<IIterable_1_tDA0D1077EFCD7389A5AD5BF4D598F22A450175CD*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &IIterable_1_t1FE40219CF2EA9D14D69F038AAD3EC908A8FE771::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<IIterable_1_t1FE40219CF2EA9D14D69F038AAD3EC908A8FE771*>(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>(6);
interfaceIds[0] = IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4::IID;
interfaceIds[1] = IIterable_1_tB7611E3565ADF2561FF7521E03A1E3B93F7BD113::IID;
interfaceIds[2] = IIterable_1_t6359E278A71A51A15FA83695BA7C54F9B3E04824::IID;
interfaceIds[3] = IIterable_1_tDA0D1077EFCD7389A5AD5BF4D598F22A450175CD::IID;
interfaceIds[4] = IIterable_1_t1FE40219CF2EA9D14D69F038AAD3EC908A8FE771::IID;
interfaceIds[5] = IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID;
*iidCount = 6;
*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 IIterable_1_First_m5AA74545514CBE1B8F27A3AD8AB35879FA66F2BB(IIterator_1_t76B4F2A2B99659B935148C20E12CDDF5018A3267** comReturnValue) IL2CPP_OVERRIDE
{
return IIterable_1_First_m5AA74545514CBE1B8F27A3AD8AB35879FA66F2BB_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IIterable_1_First_m9A24DB3CFEE6B2D8C04AD194AC25CEA2597B8D3F(IIterator_1_t6407EDB3A3187B31D54D9B4E941F88F529FCE4B3** comReturnValue) IL2CPP_OVERRIDE
{
return IIterable_1_First_m9A24DB3CFEE6B2D8C04AD194AC25CEA2597B8D3F_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_t4B036D0BD949C2E59398E64DE2DC4DE7941F17AF(RuntimeObject* obj)
{
void* memory = il2cpp::utils::Memory::Malloc(sizeof(ValueCollection_t4B036D0BD949C2E59398E64DE2DC4DE7941F17AF_ComCallableWrapper));
if (memory == NULL)
{
il2cpp_codegen_raise_out_of_memory_exception();
}
return static_cast<Il2CppIManagedObjectHolder*>(new(memory) ValueCollection_t4B036D0BD949C2E59398E64DE2DC4DE7941F17AF_ComCallableWrapper(obj));
}
// COM Callable Wrapper for System.Collections.ObjectModel.ReadOnlyDictionary`2/ValueCollection<UnityEngine.Renderer,System.Collections.Generic.List`1<UnityEngine.Material>>
struct ValueCollection_tFE378173D0A06206C85E08D334CE9A6EB45F21A7_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<ValueCollection_tFE378173D0A06206C85E08D334CE9A6EB45F21A7_ComCallableWrapper>, IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4, IIterable_1_tB7611E3565ADF2561FF7521E03A1E3B93F7BD113, IIterable_1_t6359E278A71A51A15FA83695BA7C54F9B3E04824, IIterable_1_tDA0D1077EFCD7389A5AD5BF4D598F22A450175CD, IIterable_1_t1FE40219CF2EA9D14D69F038AAD3EC908A8FE771, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8
{
inline ValueCollection_tFE378173D0A06206C85E08D334CE9A6EB45F21A7_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<ValueCollection_tFE378173D0A06206C85E08D334CE9A6EB45F21A7_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, &IIterable_1_tDA0D1077EFCD7389A5AD5BF4D598F22A450175CD::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<IIterable_1_tDA0D1077EFCD7389A5AD5BF4D598F22A450175CD*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &IIterable_1_t1FE40219CF2EA9D14D69F038AAD3EC908A8FE771::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<IIterable_1_t1FE40219CF2EA9D14D69F038AAD3EC908A8FE771*>(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>(6);
interfaceIds[0] = IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4::IID;
interfaceIds[1] = IIterable_1_tB7611E3565ADF2561FF7521E03A1E3B93F7BD113::IID;
interfaceIds[2] = IIterable_1_t6359E278A71A51A15FA83695BA7C54F9B3E04824::IID;
interfaceIds[3] = IIterable_1_tDA0D1077EFCD7389A5AD5BF4D598F22A450175CD::IID;
interfaceIds[4] = IIterable_1_t1FE40219CF2EA9D14D69F038AAD3EC908A8FE771::IID;
interfaceIds[5] = IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID;
*iidCount = 6;
*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 IIterable_1_First_m5AA74545514CBE1B8F27A3AD8AB35879FA66F2BB(IIterator_1_t76B4F2A2B99659B935148C20E12CDDF5018A3267** comReturnValue) IL2CPP_OVERRIDE
{
return IIterable_1_First_m5AA74545514CBE1B8F27A3AD8AB35879FA66F2BB_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IIterable_1_First_m9A24DB3CFEE6B2D8C04AD194AC25CEA2597B8D3F(IIterator_1_t6407EDB3A3187B31D54D9B4E941F88F529FCE4B3** comReturnValue) IL2CPP_OVERRIDE
{
return IIterable_1_First_m9A24DB3CFEE6B2D8C04AD194AC25CEA2597B8D3F_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_tFE378173D0A06206C85E08D334CE9A6EB45F21A7(RuntimeObject* obj)
{
void* memory = il2cpp::utils::Memory::Malloc(sizeof(ValueCollection_tFE378173D0A06206C85E08D334CE9A6EB45F21A7_ComCallableWrapper));
if (memory == NULL)
{
il2cpp_codegen_raise_out_of_memory_exception();
}
return static_cast<Il2CppIManagedObjectHolder*>(new(memory) ValueCollection_tFE378173D0A06206C85E08D334CE9A6EB45F21A7_ComCallableWrapper(obj));
}
// COM Callable Wrapper for System.Collections.Generic.Dictionary`2/ValueCollection<System.String,System.Collections.Generic.List`1<System.Int32>>
struct ValueCollection_t4B66845A360B651377A6E8B046A5C02F4683B57B_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<ValueCollection_t4B66845A360B651377A6E8B046A5C02F4683B57B_ComCallableWrapper>, IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4, IIterable_1_t5CB142C4A47D31ACB8B355C41740914CC985F378, IIterable_1_tAC6B6C1A7ECF33EE15C94CDDD30ACC7A9CE98004, IIterable_1_t6359E278A71A51A15FA83695BA7C54F9B3E04824, IIterable_1_tDA0D1077EFCD7389A5AD5BF4D598F22A450175CD, IIterable_1_t2702F7342BF99284890A03EDD178F218B730190E, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8
{
inline ValueCollection_t4B66845A360B651377A6E8B046A5C02F4683B57B_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<ValueCollection_t4B66845A360B651377A6E8B046A5C02F4683B57B_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_t5CB142C4A47D31ACB8B355C41740914CC985F378::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<IIterable_1_t5CB142C4A47D31ACB8B355C41740914CC985F378*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &IIterable_1_tAC6B6C1A7ECF33EE15C94CDDD30ACC7A9CE98004::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<IIterable_1_tAC6B6C1A7ECF33EE15C94CDDD30ACC7A9CE98004*>(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, &IIterable_1_tDA0D1077EFCD7389A5AD5BF4D598F22A450175CD::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<IIterable_1_tDA0D1077EFCD7389A5AD5BF4D598F22A450175CD*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &IIterable_1_t2702F7342BF99284890A03EDD178F218B730190E::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<IIterable_1_t2702F7342BF99284890A03EDD178F218B730190E*>(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>(7);
interfaceIds[0] = IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4::IID;
interfaceIds[1] = IIterable_1_t5CB142C4A47D31ACB8B355C41740914CC985F378::IID;
interfaceIds[2] = IIterable_1_tAC6B6C1A7ECF33EE15C94CDDD30ACC7A9CE98004::IID;
interfaceIds[3] = IIterable_1_t6359E278A71A51A15FA83695BA7C54F9B3E04824::IID;
interfaceIds[4] = IIterable_1_tDA0D1077EFCD7389A5AD5BF4D598F22A450175CD::IID;
interfaceIds[5] = IIterable_1_t2702F7342BF99284890A03EDD178F218B730190E::IID;
interfaceIds[6] = IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID;
*iidCount = 7;
*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_m5654F86BC6ACA9944E4840952F197CD3256A1ED8(IIterator_1_tF5EE7B485ADAC2DE9A72944EAA6F7C75F52ED6BA** comReturnValue) IL2CPP_OVERRIDE
{
return IIterable_1_First_m5654F86BC6ACA9944E4840952F197CD3256A1ED8_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IIterable_1_First_mE0EF757DC8E58BB169C78D378571014C172F6240(IIterator_1_tE26006BA89CCCFA23A4E08D14138F4CA88B7902D** comReturnValue) IL2CPP_OVERRIDE
{
return IIterable_1_First_mE0EF757DC8E58BB169C78D378571014C172F6240_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 IIterable_1_First_m5AA74545514CBE1B8F27A3AD8AB35879FA66F2BB(IIterator_1_t76B4F2A2B99659B935148C20E12CDDF5018A3267** comReturnValue) IL2CPP_OVERRIDE
{
return IIterable_1_First_m5AA74545514CBE1B8F27A3AD8AB35879FA66F2BB_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IIterable_1_First_m7A9BBDC56E34A2D92A5AB578D200EB1D2E67A77B(IIterator_1_t02E2BD99A6F2FDED0070DCE99953C4927747C248** comReturnValue) IL2CPP_OVERRIDE
{
return IIterable_1_First_m7A9BBDC56E34A2D92A5AB578D200EB1D2E67A77B_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_t4B66845A360B651377A6E8B046A5C02F4683B57B(RuntimeObject* obj)
{
void* memory = il2cpp::utils::Memory::Malloc(sizeof(ValueCollection_t4B66845A360B651377A6E8B046A5C02F4683B57B_ComCallableWrapper));
if (memory == NULL)
{
il2cpp_codegen_raise_out_of_memory_exception();
}
return static_cast<Il2CppIManagedObjectHolder*>(new(memory) ValueCollection_t4B66845A360B651377A6E8B046A5C02F4683B57B_ComCallableWrapper(obj));
}
// COM Callable Wrapper for System.Collections.ObjectModel.ReadOnlyDictionary`2/ValueCollection<System.String,System.Collections.Generic.List`1<System.Int32>>
struct ValueCollection_tFE2A555095D6B906BBD4E2E1136B107CD200EBDF_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<ValueCollection_tFE2A555095D6B906BBD4E2E1136B107CD200EBDF_ComCallableWrapper>, IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4, IIterable_1_t5CB142C4A47D31ACB8B355C41740914CC985F378, IIterable_1_tAC6B6C1A7ECF33EE15C94CDDD30ACC7A9CE98004, IIterable_1_t6359E278A71A51A15FA83695BA7C54F9B3E04824, IIterable_1_tDA0D1077EFCD7389A5AD5BF4D598F22A450175CD, IIterable_1_t2702F7342BF99284890A03EDD178F218B730190E, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8
{
inline ValueCollection_tFE2A555095D6B906BBD4E2E1136B107CD200EBDF_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<ValueCollection_tFE2A555095D6B906BBD4E2E1136B107CD200EBDF_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_t5CB142C4A47D31ACB8B355C41740914CC985F378::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<IIterable_1_t5CB142C4A47D31ACB8B355C41740914CC985F378*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &IIterable_1_tAC6B6C1A7ECF33EE15C94CDDD30ACC7A9CE98004::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<IIterable_1_tAC6B6C1A7ECF33EE15C94CDDD30ACC7A9CE98004*>(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, &IIterable_1_tDA0D1077EFCD7389A5AD5BF4D598F22A450175CD::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<IIterable_1_tDA0D1077EFCD7389A5AD5BF4D598F22A450175CD*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &IIterable_1_t2702F7342BF99284890A03EDD178F218B730190E::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<IIterable_1_t2702F7342BF99284890A03EDD178F218B730190E*>(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>(7);
interfaceIds[0] = IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4::IID;
interfaceIds[1] = IIterable_1_t5CB142C4A47D31ACB8B355C41740914CC985F378::IID;
interfaceIds[2] = IIterable_1_tAC6B6C1A7ECF33EE15C94CDDD30ACC7A9CE98004::IID;
interfaceIds[3] = IIterable_1_t6359E278A71A51A15FA83695BA7C54F9B3E04824::IID;
interfaceIds[4] = IIterable_1_tDA0D1077EFCD7389A5AD5BF4D598F22A450175CD::IID;
interfaceIds[5] = IIterable_1_t2702F7342BF99284890A03EDD178F218B730190E::IID;
interfaceIds[6] = IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID;
*iidCount = 7;
*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_m5654F86BC6ACA9944E4840952F197CD3256A1ED8(IIterator_1_tF5EE7B485ADAC2DE9A72944EAA6F7C75F52ED6BA** comReturnValue) IL2CPP_OVERRIDE
{
return IIterable_1_First_m5654F86BC6ACA9944E4840952F197CD3256A1ED8_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IIterable_1_First_mE0EF757DC8E58BB169C78D378571014C172F6240(IIterator_1_tE26006BA89CCCFA23A4E08D14138F4CA88B7902D** comReturnValue) IL2CPP_OVERRIDE
{
return IIterable_1_First_mE0EF757DC8E58BB169C78D378571014C172F6240_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 IIterable_1_First_m5AA74545514CBE1B8F27A3AD8AB35879FA66F2BB(IIterator_1_t76B4F2A2B99659B935148C20E12CDDF5018A3267** comReturnValue) IL2CPP_OVERRIDE
{
return IIterable_1_First_m5AA74545514CBE1B8F27A3AD8AB35879FA66F2BB_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IIterable_1_First_m7A9BBDC56E34A2D92A5AB578D200EB1D2E67A77B(IIterator_1_t02E2BD99A6F2FDED0070DCE99953C4927747C248** comReturnValue) IL2CPP_OVERRIDE
{
return IIterable_1_First_m7A9BBDC56E34A2D92A5AB578D200EB1D2E67A77B_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_tFE2A555095D6B906BBD4E2E1136B107CD200EBDF(RuntimeObject* obj)
{
void* memory = il2cpp::utils::Memory::Malloc(sizeof(ValueCollection_tFE2A555095D6B906BBD4E2E1136B107CD200EBDF_ComCallableWrapper));
if (memory == NULL)
{
il2cpp_codegen_raise_out_of_memory_exception();
}
return static_cast<Il2CppIManagedObjectHolder*>(new(memory) ValueCollection_tFE2A555095D6B906BBD4E2E1136B107CD200EBDF_ComCallableWrapper(obj));
}
// COM Callable Wrapper for System.Collections.Generic.Dictionary`2/ValueCollection<System.String,System.Collections.Generic.Queue`1<UnityEngine.GameObject>>
struct ValueCollection_t4258B35F0EBB3B6F0E2F80D4F993788844F3D518_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<ValueCollection_t4258B35F0EBB3B6F0E2F80D4F993788844F3D518_ComCallableWrapper>, IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4, IIterable_1_tB7611E3565ADF2561FF7521E03A1E3B93F7BD113, IIterable_1_t6359E278A71A51A15FA83695BA7C54F9B3E04824, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8
{
inline ValueCollection_t4258B35F0EBB3B6F0E2F80D4F993788844F3D518_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<ValueCollection_t4258B35F0EBB3B6F0E2F80D4F993788844F3D518_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_t4258B35F0EBB3B6F0E2F80D4F993788844F3D518(RuntimeObject* obj)
{
void* memory = il2cpp::utils::Memory::Malloc(sizeof(ValueCollection_t4258B35F0EBB3B6F0E2F80D4F993788844F3D518_ComCallableWrapper));
if (memory == NULL)
{
il2cpp_codegen_raise_out_of_memory_exception();
}
return static_cast<Il2CppIManagedObjectHolder*>(new(memory) ValueCollection_t4258B35F0EBB3B6F0E2F80D4F993788844F3D518_ComCallableWrapper(obj));
}
// COM Callable Wrapper for System.Collections.ObjectModel.ReadOnlyDictionary`2/ValueCollection<System.String,System.Collections.Generic.Queue`1<UnityEngine.GameObject>>
struct ValueCollection_t43F83E081841BC11EE8141994AEF3BB2B7A83AB8_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<ValueCollection_t43F83E081841BC11EE8141994AEF3BB2B7A83AB8_ComCallableWrapper>, IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4, IIterable_1_tB7611E3565ADF2561FF7521E03A1E3B93F7BD113, IIterable_1_t6359E278A71A51A15FA83695BA7C54F9B3E04824, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8
{
inline ValueCollection_t43F83E081841BC11EE8141994AEF3BB2B7A83AB8_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<ValueCollection_t43F83E081841BC11EE8141994AEF3BB2B7A83AB8_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_t43F83E081841BC11EE8141994AEF3BB2B7A83AB8(RuntimeObject* obj)
{
void* memory = il2cpp::utils::Memory::Malloc(sizeof(ValueCollection_t43F83E081841BC11EE8141994AEF3BB2B7A83AB8_ComCallableWrapper));
if (memory == NULL)
{
il2cpp_codegen_raise_out_of_memory_exception();
}
return static_cast<Il2CppIManagedObjectHolder*>(new(memory) ValueCollection_t43F83E081841BC11EE8141994AEF3BB2B7A83AB8_ComCallableWrapper(obj));
}
// COM Callable Wrapper for System.Collections.Generic.Dictionary`2/ValueCollection<System.String,Microsoft.MixedReality.Toolkit.Experimental.InteractiveElement.BaseEventReceiver>
struct ValueCollection_tE8D07B1FFC8FFAD13CE0BE0A61EC4B5E377A08C3_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<ValueCollection_tE8D07B1FFC8FFAD13CE0BE0A61EC4B5E377A08C3_ComCallableWrapper>, IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8
{
inline ValueCollection_tE8D07B1FFC8FFAD13CE0BE0A61EC4B5E377A08C3_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<ValueCollection_tE8D07B1FFC8FFAD13CE0BE0A61EC4B5E377A08C3_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_tE8D07B1FFC8FFAD13CE0BE0A61EC4B5E377A08C3(RuntimeObject* obj)
{
void* memory = il2cpp::utils::Memory::Malloc(sizeof(ValueCollection_tE8D07B1FFC8FFAD13CE0BE0A61EC4B5E377A08C3_ComCallableWrapper));
if (memory == NULL)
{
il2cpp_codegen_raise_out_of_memory_exception();
}
return static_cast<Il2CppIManagedObjectHolder*>(new(memory) ValueCollection_tE8D07B1FFC8FFAD13CE0BE0A61EC4B5E377A08C3_ComCallableWrapper(obj));
}
// COM Callable Wrapper for System.Collections.ObjectModel.ReadOnlyDictionary`2/ValueCollection<System.String,Microsoft.MixedReality.Toolkit.Experimental.InteractiveElement.BaseEventReceiver>
struct ValueCollection_t1CE523D0BD0FED5CB8E608B16912D83537F66B19_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<ValueCollection_t1CE523D0BD0FED5CB8E608B16912D83537F66B19_ComCallableWrapper>, IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8
{
inline ValueCollection_t1CE523D0BD0FED5CB8E608B16912D83537F66B19_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<ValueCollection_t1CE523D0BD0FED5CB8E608B16912D83537F66B19_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_t1CE523D0BD0FED5CB8E608B16912D83537F66B19(RuntimeObject* obj)
{
void* memory = il2cpp::utils::Memory::Malloc(sizeof(ValueCollection_t1CE523D0BD0FED5CB8E608B16912D83537F66B19_ComCallableWrapper));
if (memory == NULL)
{
il2cpp_codegen_raise_out_of_memory_exception();
}
return static_cast<Il2CppIManagedObjectHolder*>(new(memory) ValueCollection_t1CE523D0BD0FED5CB8E608B16912D83537F66B19_ComCallableWrapper(obj));
}
// COM Callable Wrapper for System.Collections.Generic.Dictionary`2/ValueCollection<System.String,System.Globalization.CultureInfo>
struct ValueCollection_tE359A31BF25A2BECA2FC677EC431DDFE1E481B35_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<ValueCollection_tE359A31BF25A2BECA2FC677EC431DDFE1E481B35_ComCallableWrapper>, IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8
{
inline ValueCollection_tE359A31BF25A2BECA2FC677EC431DDFE1E481B35_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<ValueCollection_tE359A31BF25A2BECA2FC677EC431DDFE1E481B35_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_tE359A31BF25A2BECA2FC677EC431DDFE1E481B35(RuntimeObject* obj)
{
void* memory = il2cpp::utils::Memory::Malloc(sizeof(ValueCollection_tE359A31BF25A2BECA2FC677EC431DDFE1E481B35_ComCallableWrapper));
if (memory == NULL)
{
il2cpp_codegen_raise_out_of_memory_exception();
}
return static_cast<Il2CppIManagedObjectHolder*>(new(memory) ValueCollection_tE359A31BF25A2BECA2FC677EC431DDFE1E481B35_ComCallableWrapper(obj));
}
| 43.923485 | 593 | 0.824824 |
09f381cac5664aaf463332dd64fec997c03dacee | 1,526 | cc | C++ | merror/domain/defer_test.cc | google/merror | b0bf376e110b66da70c150afddd9d3b8337282d6 | [
"Apache-2.0"
] | 2 | 2021-03-23T19:00:51.000Z | 2022-01-26T06:28:35.000Z | merror/domain/defer_test.cc | google/merror | b0bf376e110b66da70c150afddd9d3b8337282d6 | [
"Apache-2.0"
] | null | null | null | merror/domain/defer_test.cc | google/merror | b0bf376e110b66da70c150afddd9d3b8337282d6 | [
"Apache-2.0"
] | null | null | null | // Copyright 2021 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://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 "merror/domain/defer.h"
#include <utility>
#include "gtest/gtest.h"
namespace merror {
namespace {
template <class Expected, class Actual>
void ExpectSame(Expected&& expected, Actual&& actual) {
static_assert(std::is_same<Expected, Actual>(), "");
EXPECT_EQ(&expected, &actual);
}
TEST(Defer, Functional) {
int a = 0;
const int b = 0;
ExpectSame(a, Defer<>(a));
ExpectSame(b, Defer<>(b));
ExpectSame(std::move(a), Defer<>(std::move(a)));
ExpectSame(std::move(b), Defer<>(std::move(b)));
ExpectSame(a, Defer<void>(a));
ExpectSame(b, Defer<void>(b));
ExpectSame(std::move(a), Defer<void>(std::move(a)));
ExpectSame(std::move(b), Defer<void>(std::move(b)));
ExpectSame(a, Defer<void, int>(a));
ExpectSame(b, Defer<void, int>(b));
ExpectSame(std::move(a), Defer<void, int>(std::move(a)));
ExpectSame(std::move(b), Defer<void, int>(std::move(b)));
}
} // namespace
} // namespace merror
| 28.792453 | 75 | 0.684142 |
09f394326c41452e3b3348422e9a06929717e413 | 2,279 | cpp | C++ | 2020/day12/main.cpp | bielskij/AOC-2019 | e98d660412037b3fdac4a6b49adcb9230f518c99 | [
"MIT"
] | null | null | null | 2020/day12/main.cpp | bielskij/AOC-2019 | e98d660412037b3fdac4a6b49adcb9230f518c99 | [
"MIT"
] | null | null | null | 2020/day12/main.cpp | bielskij/AOC-2019 | e98d660412037b3fdac4a6b49adcb9230f518c99 | [
"MIT"
] | null | null | null | #include "common/types.h"
#include "utils/file.h"
#include "utils/utils.h"
#define DEBUG_LEVEL 5
#include "common/debug.h"
int main(int argc, char *argv[]) {
auto lines = File::readAllLines(argv[1]);
{
Point<int> position;
int angle = 90;
for (auto &l : lines) {
int distance = utils::toInt(l.substr(1));
int turnAngle = -1;
switch (l[0]) {
case 'N': turnAngle = 0; break;
case 'E': turnAngle = 90; break;
case 'S': turnAngle = 180; break;
case 'W': turnAngle = 270; break;
case 'F':
break;
case 'L':
{
angle = (angle + 360 - distance) % 360;
distance = 0;
}
break;
case 'R':
{
angle = (angle + distance) % 360;
distance = 0;
}
break;
default:
break;
}
{
int modX = 0;
int modY = 0;
switch (turnAngle >= 0 ? turnAngle : angle) {
case 0: modY = 1; break;
case 90: modX = 1; break;
case 180: modY = -1; break;
case 270: modX = -1; break;
default:
break;
}
position.x(position.x() + modX * distance);
position.y(position.y() + modY * distance);
}
}
PRINTF(("PART_A: %d", std::abs(position.x()) + std::abs(position.y())));
}
{
Point<int> shipPosition;
Point<int> waypoint(10, 1);
for (auto &l : lines) {
int distance = utils::toInt(l.substr(1));
switch (l[0]) {
case 'N': waypoint.y(waypoint.y() + distance); break;
case 'E': waypoint.x(waypoint.x() + distance); break;
case 'S': waypoint.y(waypoint.y() - distance); break;
case 'W': waypoint.x(waypoint.x() - distance); break;
case 'F':
{
shipPosition.x(shipPosition.x() + waypoint.x() * distance);
shipPosition.y(shipPosition.y() + waypoint.y() * distance);
}
break;
case 'R':
{
int num = distance / 90;
while (num--) {
int tmp = waypoint.x();
waypoint.x(waypoint.y());
waypoint.y(-tmp);
}
}
break;
case 'L':
{
int num = distance / 90;
while (num--) {
int tmp = waypoint.x();
waypoint.x(-waypoint.y());
waypoint.y(tmp);
}
}
break;
}
}
PRINTF(("PART_B: %d", std::abs(shipPosition.x()) + std::abs(shipPosition.y())));
}
return 0;
}
| 18.834711 | 82 | 0.523475 |
09f547590222a1fc0b109f21a33c9c7a91386b5a | 526 | cpp | C++ | ProjectEuler/66/code.cpp | sjj118/OI-Code | 964ea6e799d14010f305c7e4aee269d860a781f7 | [
"MIT"
] | null | null | null | ProjectEuler/66/code.cpp | sjj118/OI-Code | 964ea6e799d14010f305c7e4aee269d860a781f7 | [
"MIT"
] | null | null | null | ProjectEuler/66/code.cpp | sjj118/OI-Code | 964ea6e799d14010f305c7e4aee269d860a781f7 | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
#define rg register
#define rep(i,x,y) for(rg int i=(x);i<=(y);++i)
#define per(i,x,y) for(rg int i=(x);i>=(y);--i)
using namespace std;
typedef long long LL;
inline LL sqr(LL x){return x*x;}
LL ansd,ansx;
int main(){
int n;scanf("%d",&n);
rep(d,1,n)if(sqr(LL(sqrt(d)))!=d){
for(LL y=1;;++y){
if(y>100000000){cerr<<d<<" "<<y<<endl;break;}
LL x=1+d*sqr(y);
if(sqr(LL(sqrt(x)))==x){
x=LL(sqrt(x));
if(x>ansx)ansx=x,ansd=d;
break;
}
}
}
cout<<ansd<<" "<<ansx;
return 0;
}
| 21.04 | 48 | 0.553232 |
09f5622660315bdacee42b4d1a8e844860ac2a21 | 7,123 | cpp | C++ | openEAR-0.1.0/src/smileComponent.cpp | trimlab/Voice-Emotion-Detection | c7272dd2f70e2d4b8eee304e68578494d7ef624c | [
"MIT"
] | null | null | null | openEAR-0.1.0/src/smileComponent.cpp | trimlab/Voice-Emotion-Detection | c7272dd2f70e2d4b8eee304e68578494d7ef624c | [
"MIT"
] | null | null | null | openEAR-0.1.0/src/smileComponent.cpp | trimlab/Voice-Emotion-Detection | c7272dd2f70e2d4b8eee304e68578494d7ef624c | [
"MIT"
] | null | null | null | /*F******************************************************************************
*
* openSMILE - open Speech and Music Interpretation by Large-space Extraction
* the open-source Munich Audio Feature Extraction Toolkit
* Copyright (C) 2008-2009 Florian Eyben, Martin Woellmer, Bjoern Schuller
*
*
* Institute for Human-Machine Communication
* Technische Universitaet Muenchen (TUM)
* D-80333 Munich, Germany
*
*
* If you use openSMILE or any code from openSMILE in your research work,
* you are kindly asked to acknowledge the use of openSMILE in your publications.
* See the file CITING.txt for details.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
******************************************************************************E*/
/*
openSMILE component hierarchy:
cSmileComponent (basic cmdline and config functionality)
|
v
cProcessorComponent - contains: Reader, Writer, ref to data mem, one or more compute components, plus interconnection logic
cComputeComponent - implements a specific algo, clearly defined io interface
I: vector, O: vector
I: matrix, O: vector
(O: matrix ?? )
cReaderComponent - reads data from dataMemory and provides frame or matrix (also registers read request)
cWriterComponent - writes data to dataMemory (takes vector, (or matrix??)), also registers Level (data memory at the end will check, if all dependencies are fullfilled..?)
*/
/*
component base class,
with register and config functionality
//
*/
/* good practice for dynamic component library compatibility (will be added soon..):
define a global register method:
sComponentInfo * registerMe(cConfigManager *_confman) {
sMyComponent::registerComponent(_confman);
}
also: add a pointer to this method to global component list...
*/
#include <smileComponent.hpp>
#include <componentManager.hpp>
#define MODULE "cSmileComponent"
SMILECOMPONENT_STATICS(cSmileComponent)
// static, must be overriden by derived component class, these are only examples...!!!!
// register component will return NULL, if the component could not be registered (fatal error..)
// it will return a valid struct, with rA=1, if some information, e.g. sub-configTypes are still missing
SMILECOMPONENT_REGCOMP(cSmileComponent)
{
SMILECOMPONENT_REGCOMP_INIT
scname = COMPONENT_NAME_XXXX;
sdescription = COMPONENT_DESCRIPTION_XXXX;
// configure your component's configType:
SMILECOMPONENT_CREATE_CONFIGTYPE
//ConfigType *ct = new ConfigType(scname); if (ct == NULL) OUT_OF_MEMORY;
ct->setField("f1", "this is an example int", 0);
if (ct->setField("subconf", "this is config of sub-component",
sconfman->getTypeObj("nameOfSubCompType"), NO_ARRAY, DONT_FREE) == -1) {
rA=1; // if subtype not yet found, request , re-register in the next iteration
}
// ...
SMILECOMPONENT_IFNOTREGAGAIN( {} )
// change cSmileComponent to cMyComponent !
SMILECOMPONENT_MAKEINFO(cSmileComponent);
//return makeInfo(sconfman, scname, sdescription, cSmileComponent::create, rA);
}
SMILECOMPONENT_CREATE_ABSTRACT(cSmileComponent)
// staic, internal....
sComponentInfo * cSmileComponent::makeInfo(cConfigManager *_confman, const char *_name, const char *_description, cSmileComponent * (*create) (const char *_instname), int regAgain, int _abstract, int _nodmem)
{
sComponentInfo *info = new sComponentInfo;
if (info == NULL) OUT_OF_MEMORY;
info->componentName = _name;
info->description = _description;
info->create = create;
info->registerAgain = regAgain;
info->abstract = _abstract;
info->noDmem = _nodmem;
info->next = NULL;
return info;
}
//--------------------- dynamic:
cSmileComponent * cSmileComponent::getComponentInstance(const char * name) {
if (compman != NULL)
return compman->getComponentInstance(name);
else
return NULL;
}
const char * cSmileComponent::getComponentInstanceType(const char * name) {
if (compman != NULL)
return compman->getComponentInstanceType(name);
else
return NULL;
}
cSmileComponent * cSmileComponent::createComponent(const char*_name, const char*_type)
{
if (compman != NULL)
return compman->createComponent(_name,_type);
else
return NULL;
}
cSmileComponent::cSmileComponent(const char *instname) :
iname(NULL),
id(-1),
compman(NULL),
parent(NULL),
cfname(NULL),
_isRegistered(0),
_isConfigured(0),
_isFinalised(0),
_isReady(0),
confman(NULL),
override(0),
manualConfig(0),
cname(NULL),
EOI(0),
_runMe(1)
{
smileMutexCreate(messageMtx);
if (instname == NULL) COMP_ERR("cannot create cSmileComponent with instanceName == NULL!");
iname = strdup(instname);
cfname = iname;
//fetchConfig(); // must be called by the components themselves, after the component was created!
}
void cSmileComponent::setComponentEnvironment(cComponentManager *_compman, int _id, cSmileComponent *_parent)
{
if (_compman != NULL) {
compman = _compman;
id = _id;
} else {
SMILE_ERR(3,"setting NULL componentManager in cSmileComponent::setComponentEnvironment !");
}
parent=_parent;
mySetEnvironment();
}
int cSmileComponent::sendComponentMessage( const char *recepient, cComponentMessage *_msg )
{
int ret=0;
if (compman != NULL) {
if (_msg != NULL) _msg->sender = getInstName();
ret = compman->sendComponentMessage( recepient, _msg );
}
return ret;
}
double cSmileComponent::getSmileTime() {
if (compman != NULL) {
return compman->getSmileTime();
}
return 0.0;
}
int cSmileComponent::finaliseInstance()
{
if (!_isConfigured) {
SMILE_DBG(7,"finaliseInstance called on a not yet successfully configured instance '%s'",getInstName());
return 0;
}
if (_isFinalised) return 1;
_isFinalised = myFinaliseInstance();
_isReady = _isFinalised;
return _isFinalised;
}
cSmileComponent::~cSmileComponent()
{
if ((iname != cfname)&&(cfname!=NULL)) free (cfname);
if (iname != NULL) free(iname);
smileMutexDestroy(messageMtx);
}
// signal EOI to componentManager (theoretically only useful for dataSource components, however we make it accessible to all smile components)
// NOTE: you do not need to do this explicitely.. if all components fail, EOI is assumed, then a new tickLoop is started by the component manager
void cSmileComponent::signalEOI()
{
if (compman != NULL)
compman->setEOI();
}
| 29.928571 | 208 | 0.701249 |
09f802dec9f0bc3b642bc1181631a48567eac0e3 | 1,939 | hpp | C++ | include/uvx/method.hpp | keeword/uvx | 7e924d29c8e8d44a49447de0bf93bd60f680311f | [
"MIT"
] | null | null | null | include/uvx/method.hpp | keeword/uvx | 7e924d29c8e8d44a49447de0bf93bd60f680311f | [
"MIT"
] | null | null | null | include/uvx/method.hpp | keeword/uvx | 7e924d29c8e8d44a49447de0bf93bd60f680311f | [
"MIT"
] | null | null | null | #pragma once
#include <any>
#include <unordered_map>
#include <type_traits>
#include "functype.hpp"
namespace utils {
class methods {
private:
using method_type = std::function<std::any(std::any)>;
template <typename R, typename F>
struct invoker {
static R invoke(const F& f, std::any any) {
using argument_tuple = typename functype::traits<F>::argument_tuple;
return std::apply(f, std::any_cast<argument_tuple>(std::move(any)));
}
};
template <typename F>
struct invoker<void, F> {
static std::any invoke(const F& f, std::any any) {
using argument_tuple = typename functype::traits<F>::argument_tuple;
std::apply(f, std::any_cast<argument_tuple>(std::move(any)));
return std::any();
}
};
public:
template <typename Func>
void store(std::size_t id, Func func) {
static_assert(std::is_copy_constructible<Func>::value, "method must be CopyConstructible");
static_assert(std::is_move_constructible<Func>::value, "method must be MoveConstructible");
if (map_.count(id)) { // delete the already exist one
map_.erase(id);
}
map_.emplace(id, [func = std::move(func)](std::any any)->std::any {
using result_type = typename functype::traits<Func>::result_type;
return invoker<result_type, Func>::invoke(func, std::move(any)); }
);
}
// exception:
// bad_any_cast: argument type not match the method
// out_of_range: method not exist
template <typename... Args>
decltype(auto) invoke(std::size_t id, Args&&... args) {
return map_.at(id)(std::tuple<typename std::remove_reference<Args>::type...>(std::forward<Args>(args)...));
}
bool exist(std::size_t id) {
return !!map_.count(id);
}
private:
std::unordered_map<std::size_t, method_type> map_;
};
} // namespace utils
| 30.296875 | 115 | 0.621454 |
09f8408031c24c372dc91a3cdaccaff97849463c | 5,210 | inl | C++ | include/Utopia/Render/details/RenderState_AutoRefl.inl | Justin-sky/Utopia | 71912290155a469ad578234a1f5e1695804e04a3 | [
"MIT"
] | null | null | null | include/Utopia/Render/details/RenderState_AutoRefl.inl | Justin-sky/Utopia | 71912290155a469ad578234a1f5e1695804e04a3 | [
"MIT"
] | null | null | null | include/Utopia/Render/details/RenderState_AutoRefl.inl | Justin-sky/Utopia | 71912290155a469ad578234a1f5e1695804e04a3 | [
"MIT"
] | 1 | 2021-04-24T23:26:09.000Z | 2021-04-24T23:26:09.000Z | // This file is generated by Ubpa::USRefl::AutoRefl
#pragma once
#include <USRefl/USRefl.h>
template<>
struct Ubpa::USRefl::TypeInfo<Ubpa::Utopia::CullMode>
: Ubpa::USRefl::TypeInfoBase<Ubpa::Utopia::CullMode>
{
static constexpr AttrList attrs = {};
static constexpr FieldList fields = {
Field{"NONE", Ubpa::Utopia::CullMode::NONE},
Field{"FRONT", Ubpa::Utopia::CullMode::FRONT},
Field{"BACK", Ubpa::Utopia::CullMode::BACK},
};
};
template<>
struct Ubpa::USRefl::TypeInfo<Ubpa::Utopia::CompareFunc>
: Ubpa::USRefl::TypeInfoBase<Ubpa::Utopia::CompareFunc>
{
static constexpr AttrList attrs = {};
static constexpr FieldList fields = {
Field{"NEVER", Ubpa::Utopia::CompareFunc::NEVER},
Field{"LESS", Ubpa::Utopia::CompareFunc::LESS},
Field{"EQUAL", Ubpa::Utopia::CompareFunc::EQUAL},
Field{"LESS_EQUAL", Ubpa::Utopia::CompareFunc::LESS_EQUAL},
Field{"GREATER", Ubpa::Utopia::CompareFunc::GREATER},
Field{"NOT_EQUAL", Ubpa::Utopia::CompareFunc::NOT_EQUAL},
Field{"GREATER_EQUAL", Ubpa::Utopia::CompareFunc::GREATER_EQUAL},
Field{"ALWAYS", Ubpa::Utopia::CompareFunc::ALWAYS},
};
};
template<>
struct Ubpa::USRefl::TypeInfo<Ubpa::Utopia::Blend>
: Ubpa::USRefl::TypeInfoBase<Ubpa::Utopia::Blend>
{
static constexpr AttrList attrs = {};
static constexpr FieldList fields = {
Field{"ZERO", Ubpa::Utopia::Blend::ZERO},
Field{"ONE", Ubpa::Utopia::Blend::ONE},
Field{"SRC_COLOR", Ubpa::Utopia::Blend::SRC_COLOR},
Field{"INV_SRC_COLOR", Ubpa::Utopia::Blend::INV_SRC_COLOR},
Field{"SRC_ALPHA", Ubpa::Utopia::Blend::SRC_ALPHA},
Field{"INV_SRC_ALPHA", Ubpa::Utopia::Blend::INV_SRC_ALPHA},
Field{"DEST_ALPHA", Ubpa::Utopia::Blend::DEST_ALPHA},
Field{"INV_DEST_ALPHA", Ubpa::Utopia::Blend::INV_DEST_ALPHA},
Field{"DEST_COLOR", Ubpa::Utopia::Blend::DEST_COLOR},
Field{"INV_DEST_COLOR", Ubpa::Utopia::Blend::INV_DEST_COLOR},
Field{"SRC_ALPHA_SAT", Ubpa::Utopia::Blend::SRC_ALPHA_SAT},
Field{"BLEND_FACTOR", Ubpa::Utopia::Blend::BLEND_FACTOR},
Field{"INV_BLEND_FACTOR", Ubpa::Utopia::Blend::INV_BLEND_FACTOR},
Field{"SRC1_COLOR", Ubpa::Utopia::Blend::SRC1_COLOR},
Field{"INV_SRC1_COLOR", Ubpa::Utopia::Blend::INV_SRC1_COLOR},
Field{"SRC1_ALPHA", Ubpa::Utopia::Blend::SRC1_ALPHA},
Field{"INV_SRC1_ALPHA", Ubpa::Utopia::Blend::INV_SRC1_ALPHA},
};
};
template<>
struct Ubpa::USRefl::TypeInfo<Ubpa::Utopia::BlendOp>
: Ubpa::USRefl::TypeInfoBase<Ubpa::Utopia::BlendOp>
{
static constexpr AttrList attrs = {};
static constexpr FieldList fields = {
Field{"ADD", Ubpa::Utopia::BlendOp::ADD},
Field{"SUBTRACT", Ubpa::Utopia::BlendOp::SUBTRACT},
Field{"REV_SUBTRACT", Ubpa::Utopia::BlendOp::REV_SUBTRACT},
Field{"MIN", Ubpa::Utopia::BlendOp::MIN},
Field{"MAX", Ubpa::Utopia::BlendOp::MAX},
};
};
template<>
struct Ubpa::USRefl::TypeInfo<Ubpa::Utopia::BlendState>
: Ubpa::USRefl::TypeInfoBase<Ubpa::Utopia::BlendState>
{
static constexpr AttrList attrs = {};
static constexpr FieldList fields = {
Field{"enable", &Ubpa::Utopia::BlendState::enable},
Field{"src", &Ubpa::Utopia::BlendState::src},
Field{"dest", &Ubpa::Utopia::BlendState::dest},
Field{"op", &Ubpa::Utopia::BlendState::op},
Field{"srcAlpha", &Ubpa::Utopia::BlendState::srcAlpha},
Field{"destAlpha", &Ubpa::Utopia::BlendState::destAlpha},
Field{"opAlpha", &Ubpa::Utopia::BlendState::opAlpha},
};
};
template<>
struct Ubpa::USRefl::TypeInfo<Ubpa::Utopia::StencilOp>
: Ubpa::USRefl::TypeInfoBase<Ubpa::Utopia::StencilOp>
{
static constexpr AttrList attrs = {};
static constexpr FieldList fields = {
Field{"KEEP", Ubpa::Utopia::StencilOp::KEEP},
Field{"ZERO", Ubpa::Utopia::StencilOp::ZERO},
Field{"REPLACE", Ubpa::Utopia::StencilOp::REPLACE},
Field{"INCR_SAT", Ubpa::Utopia::StencilOp::INCR_SAT},
Field{"DECR_SAT", Ubpa::Utopia::StencilOp::DECR_SAT},
Field{"INVERT", Ubpa::Utopia::StencilOp::INVERT},
Field{"INCR", Ubpa::Utopia::StencilOp::INCR},
Field{"DECR", Ubpa::Utopia::StencilOp::DECR},
};
};
template<>
struct Ubpa::USRefl::TypeInfo<Ubpa::Utopia::StencilState>
: Ubpa::USRefl::TypeInfoBase<Ubpa::Utopia::StencilState>
{
static constexpr AttrList attrs = {};
static constexpr FieldList fields = {
Field{"enable", &Ubpa::Utopia::StencilState::enable},
Field{"ref", &Ubpa::Utopia::StencilState::ref},
Field{"readMask", &Ubpa::Utopia::StencilState::readMask},
Field{"writeMask", &Ubpa::Utopia::StencilState::writeMask},
Field{"failOp", &Ubpa::Utopia::StencilState::failOp},
Field{"depthFailOp", &Ubpa::Utopia::StencilState::depthFailOp},
Field{"passOp", &Ubpa::Utopia::StencilState::passOp},
Field{"func", &Ubpa::Utopia::StencilState::func},
};
};
template<>
struct Ubpa::USRefl::TypeInfo<Ubpa::Utopia::RenderState>
: Ubpa::USRefl::TypeInfoBase<Ubpa::Utopia::RenderState>
{
static constexpr AttrList attrs = {};
static constexpr FieldList fields = {
Field{"cullMode", &Ubpa::Utopia::RenderState::cullMode},
Field{"zTest", &Ubpa::Utopia::RenderState::zTest},
Field{"zWrite", &Ubpa::Utopia::RenderState::zWrite},
Field{"stencilState", &Ubpa::Utopia::RenderState::stencilState},
Field{"blendStates", &Ubpa::Utopia::RenderState::blendStates},
Field{"colorMask", &Ubpa::Utopia::RenderState::colorMask},
};
};
| 34.966443 | 67 | 0.708445 |
09f87c36d351e468333e228978c46fdb10cf5348 | 1,157 | cpp | C++ | Gears/SpeedLimiter.cpp | gaybro8777/GTAVManualTransmission | b3bafedf3dbcbdb83e8e7febb87ca61e0c2b5dd6 | [
"Zlib"
] | 144 | 2016-02-01T01:22:24.000Z | 2022-03-29T09:13:12.000Z | Gears/SpeedLimiter.cpp | gaybro8777/GTAVManualTransmission | b3bafedf3dbcbdb83e8e7febb87ca61e0c2b5dd6 | [
"Zlib"
] | 86 | 2016-02-27T14:20:31.000Z | 2022-03-30T08:10:47.000Z | Gears/SpeedLimiter.cpp | gaybro8777/GTAVManualTransmission | b3bafedf3dbcbdb83e8e7febb87ca61e0c2b5dd6 | [
"Zlib"
] | 39 | 2016-02-07T07:57:54.000Z | 2022-03-30T12:41:02.000Z | #include "SpeedLimiter.h"
#include "ScriptSettings.hpp"
#include "VehicleData.hpp"
#include "Input/CarControls.hpp"
#include "Util/MathExt.h"
#include "Util/UIUtils.h"
#include <inc/enums.h>
#include <inc/natives.h>
extern CarControls g_controls;
extern ScriptSettings g_settings;
extern Vehicle g_playerVehicle;
extern VehicleData g_vehData;
using VExt = VehicleExtensions;
namespace {
float limitThrottle = 0.0f;
}
bool SpeedLimiter::Update(float& throttle) {
bool use = false;
float targetSetpoint = g_settings().MTOptions.SpeedLimiter.Speed;
// 5 kph min buffer
if (g_vehData.mVelocity.y > targetSetpoint - (5.0f / 3.6f) && throttle > limitThrottle) {
float targetAcceleration = (targetSetpoint - g_vehData.mVelocity.y);
limitThrottle = std::clamp(limitThrottle + (targetAcceleration - g_vehData.mAcceleration.y) * MISC::GET_FRAME_TIME(), -1.0f, 1.0f);
float newThrottle = std::clamp(throttle + limitThrottle, 0.0f, 1.0f);
if (newThrottle < throttle) {
throttle = newThrottle;
use = true;
}
}
else {
limitThrottle = 0.0f;
}
return use;
}
| 27.547619 | 139 | 0.681936 |
09f94f2a212b43700813f98a591251bca1801bfb | 390 | cc | C++ | src/Algorithms/algorithm-factory.cc | nandofioretto/GpuDBE | 0722f1f6f0e850795f76825cfaf833997f7fe4af | [
"MIT"
] | null | null | null | src/Algorithms/algorithm-factory.cc | nandofioretto/GpuDBE | 0722f1f6f0e850795f76825cfaf833997f7fe4af | [
"MIT"
] | null | null | null | src/Algorithms/algorithm-factory.cc | nandofioretto/GpuDBE | 0722f1f6f0e850795f76825cfaf833997f7fe4af | [
"MIT"
] | null | null | null | #include "Algorithms/algorithm-factory.hh"
#include "Algorithms/algorithm.hh"
#include "Algorithms/DPOP/dpop.hh"
#include "Kernel/agent.hh"
#include <string>
#include <vector>
Algorithm* AlgorithmFactory::create
(Agent& a, std::string type, std::vector<std::string> params)
{
if (type.compare("DPOP") == 0 or type.compare("dpop") == 0) {
return new DPOP(a);
}
return nullptr;
}
| 22.941176 | 63 | 0.7 |
67006f9854b9893fb7ac37adb20133822135a87e | 1,225 | cpp | C++ | WirelessThermometer/TimerSwitchWithServo/DataStore.cpp | anders-liu/arduino-gallery | 8c65701a33358891b7105b50f831d7f5797288ad | [
"MIT"
] | 1 | 2019-11-07T22:44:27.000Z | 2019-11-07T22:44:27.000Z | WirelessThermometer/TimerSwitchWithServo/DataStore.cpp | anders-liu/arduino-gallery | 8c65701a33358891b7105b50f831d7f5797288ad | [
"MIT"
] | null | null | null | WirelessThermometer/TimerSwitchWithServo/DataStore.cpp | anders-liu/arduino-gallery | 8c65701a33358891b7105b50f831d7f5797288ad | [
"MIT"
] | null | null | null | #include <EEPROM.h>
#include "DataStore.h"
DataStore ds;
#define DS_ADDR_SERVO_OFF 0
#define DS_ADDR_SERVO_ON 1
#define DS_ADDR_SERVO_CUR 2
#define DS_ADDR_POWER_ON 3
void DataStore::setup() {
this->setUiStage(UI_STAGE_RUNNING);
uint8_t value;
value = EEPROM.read(DS_ADDR_SERVO_OFF);
this->setServoOffValue(value);
this->setCalibrationOffValue(value);
value = EEPROM.read(DS_ADDR_SERVO_ON);
this->setServoOnValue(value);
this->setCalibrationOnValue(value);
value = EEPROM.read(DS_ADDR_SERVO_CUR);
this->setCurrentServoValue(value);
value = EEPROM.read(DS_ADDR_POWER_ON);
this->setIsPowerOn(value);
}
void DataStore::loop() {
if (ds.getServoOffValueReadyToSave()) {
EEPROM.update(DS_ADDR_SERVO_OFF, ds.getServoOffValue());
ds.clearServoOffValueReadyToSave();
}
else if (ds.getServoOnValueReadyToSave()) {
EEPROM.update(DS_ADDR_SERVO_ON, ds.getServoOnValue());
ds.clearServoOnValueReadyToSave();
}
else if (ds.getCurrentServoValueReadyToSave()) {
EEPROM.update(DS_ADDR_SERVO_CUR, ds.getCurrentServoValue());
ds.clearCurrentServoValueReadyToSave();
}
else if (ds.getIsPowerOnReadyToSave()) {
EEPROM.update(DS_ADDR_POWER_ON, ds.getIsPowerOn());
ds.clearIsPowerOnReadyToSave();
}
}
| 24.5 | 62 | 0.76898 |
67056af3de6c923955e352a9e7b1c6a52627a03d | 1,120 | cc | C++ | third_party/blink/renderer/modules/webtransport/datagram_duplex_stream.cc | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 14,668 | 2015-01-01T01:57:10.000Z | 2022-03-31T23:33:32.000Z | third_party/blink/renderer/modules/webtransport/datagram_duplex_stream.cc | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 86 | 2015-10-21T13:02:42.000Z | 2022-03-14T07:50:50.000Z | third_party/blink/renderer/modules/webtransport/datagram_duplex_stream.cc | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 5,941 | 2015-01-02T11:32:21.000Z | 2022-03-31T16:35:46.000Z | // Copyright 2021 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 "third_party/blink/renderer/modules/webtransport/datagram_duplex_stream.h"
namespace blink {
void DatagramDuplexStream::setIncomingMaxAge(absl::optional<double> max_age) {
if (!max_age.has_value() || max_age.value() > 0) {
incoming_max_age_ = max_age;
}
}
void DatagramDuplexStream::setOutgoingMaxAge(absl::optional<double> max_age) {
if (!max_age.has_value() || max_age.value() > 0) {
outgoing_max_age_ = max_age;
// WebTransport uses 0.0 to signal "implementation default".
web_transport_->setDatagramWritableQueueExpirationDuration(
max_age.value_or(0.0));
}
}
void DatagramDuplexStream::setIncomingHighWaterMark(int high_water_mark) {
if (high_water_mark >= 0) {
incoming_high_water_mark_ = high_water_mark;
}
}
void DatagramDuplexStream::setOutgoingHighWaterMark(int high_water_mark) {
if (high_water_mark >= 0) {
outgoing_high_water_mark_ = high_water_mark;
}
}
} // namespace blink
| 29.473684 | 83 | 0.746429 |
67059c9fa758079550b6625591ddb4b1ce48a904 | 2,376 | cpp | C++ | 7DRL 2017/Player.cpp | marukrap/woozoolike | ca16b67bce61828dded707f1c529558646daf0b3 | [
"MIT"
] | 37 | 2017-03-26T00:20:49.000Z | 2021-02-11T18:23:22.000Z | 7DRL 2017/Player.cpp | marukrap/woozoolike | ca16b67bce61828dded707f1c529558646daf0b3 | [
"MIT"
] | null | null | null | 7DRL 2017/Player.cpp | marukrap/woozoolike | ca16b67bce61828dded707f1c529558646daf0b3 | [
"MIT"
] | 9 | 2017-03-24T04:38:35.000Z | 2021-08-22T00:02:43.000Z | #include "Player.hpp"
Player::Player()
{
// arrow keys and Home, End, PageUp, PageDn
keyBinding[sf::Keyboard::Left] = Action::MoveLeft;
keyBinding[sf::Keyboard::Right] = Action::MoveRight;
keyBinding[sf::Keyboard::Up] = Action::MoveUp;
keyBinding[sf::Keyboard::Down] = Action::MoveDown;
keyBinding[sf::Keyboard::Home] = Action::MoveLeftUp;
keyBinding[sf::Keyboard::End] = Action::MoveLeftDown;
keyBinding[sf::Keyboard::PageUp] = Action::MoveRightUp;
keyBinding[sf::Keyboard::PageDown] = Action::MoveRightDown;
// numpad keys
keyBinding[sf::Keyboard::Numpad4] = Action::MoveLeft;
keyBinding[sf::Keyboard::Numpad6] = Action::MoveRight;
keyBinding[sf::Keyboard::Numpad8] = Action::MoveUp;
keyBinding[sf::Keyboard::Numpad2] = Action::MoveDown;
keyBinding[sf::Keyboard::Numpad7] = Action::MoveLeftUp;
keyBinding[sf::Keyboard::Numpad1] = Action::MoveLeftDown;
keyBinding[sf::Keyboard::Numpad9] = Action::MoveRightUp;
keyBinding[sf::Keyboard::Numpad3] = Action::MoveRightDown;
// vi keys
keyBinding[sf::Keyboard::H] = Action::MoveLeft;
keyBinding[sf::Keyboard::L] = Action::MoveRight;
keyBinding[sf::Keyboard::K] = Action::MoveUp;
keyBinding[sf::Keyboard::J] = Action::MoveDown;
keyBinding[sf::Keyboard::Y] = Action::MoveLeftUp;
keyBinding[sf::Keyboard::B] = Action::MoveLeftDown;
keyBinding[sf::Keyboard::U] = Action::MoveRightUp;
keyBinding[sf::Keyboard::N] = Action::MoveRightDown;
//
keyBinding[sf::Keyboard::Space] = Action::Interact;
keyBinding[sf::Keyboard::Return] = Action::Interact;
keyBinding[sf::Keyboard::G] = Action::PickUp;
keyBinding[sf::Keyboard::Comma] = Action::PickUp;
keyBinding[sf::Keyboard::Numpad5] = Action::Wait;
keyBinding[sf::Keyboard::Delete] = Action::Wait;
keyBinding[sf::Keyboard::Period] = Action::Wait;
keyBinding[sf::Keyboard::F] = Action::Fire;
keyBinding[sf::Keyboard::Tab] = Action::CancelFire;
keyBinding[sf::Keyboard::Escape] = Action::CancelFire;
keyBinding[sf::Keyboard::Q] = Action::PreviousWeapon;
keyBinding[sf::Keyboard::W] = Action::NextWeapon;
keyBinding[sf::Keyboard::D] = Action::DropWeapon;
keyBinding[sf::Keyboard::E] = Action::EnterOrExit;
}
Action Player::getAction(sf::Keyboard::Key key)
{
auto found = keyBinding.find(key);
if (found != keyBinding.end())
return found->second;
return Action::Unknown;
} | 36 | 61 | 0.703704 |
67067bf81c9745b8fed4b21f8815aeb15457a001 | 407 | cpp | C++ | master.cpp | senlinzhan/etcd-service-discovery | 2387aeca3e75b0e525afc6d757d1e13672ca272c | [
"MIT"
] | 2 | 2019-08-15T10:06:57.000Z | 2020-11-04T12:34:03.000Z | master.cpp | senlinzhan/etcd-service-discovery | 2387aeca3e75b0e525afc6d757d1e13672ca272c | [
"MIT"
] | null | null | null | master.cpp | senlinzhan/etcd-service-discovery | 2387aeca3e75b0e525afc6d757d1e13672ca272c | [
"MIT"
] | null | null | null | #include "EtcdManager.h"
#include <unistd.h>
int main(int argc, char *argv[])
{
std::vector<std::string> address;
address.push_back("11.11.11.11:20002");
address.push_back("22.22.22.22:20002");
address.push_back("33.33.33.33:20002");
EtcdManager etcdWatcher(address);
etcdWatcher.startMultiWatch("/apRouters");
while (true)
{
sleep(1);
}
return 0;
}
| 18.5 | 46 | 0.621622 |
6707c0e5e449744b2f81657569421bf1c1b21b86 | 1,716 | cpp | C++ | DevGame/Motor2D/Settings.cpp | MAtaur00/Development-Game | 3c8ef10d9a42abc2d4547b1a67c45e98b9e29f07 | [
"MIT"
] | null | null | null | DevGame/Motor2D/Settings.cpp | MAtaur00/Development-Game | 3c8ef10d9a42abc2d4547b1a67c45e98b9e29f07 | [
"MIT"
] | null | null | null | DevGame/Motor2D/Settings.cpp | MAtaur00/Development-Game | 3c8ef10d9a42abc2d4547b1a67c45e98b9e29f07 | [
"MIT"
] | 5 | 2018-11-07T16:04:35.000Z | 2018-11-12T11:01:05.000Z | #include "Settings.h"
#include "j1Gui.h"
#include "j1Textures.h"
#include "j1Render.h"
#include "p2Log.h"
#include "j1Window.h"
#include "j1App.h"
#include "Menu.h"
#include "Brofiler/Brofiler.h"
Settings::Settings()
{
name.create("credits");
}
Settings::~Settings() {}
bool Settings::Awake(pugi::xml_node& conf)
{
bool ret = true;
return ret;
}
bool Settings::Start()
{
bg_image = (Image*)App->gui->AddImage(0, 0, { 0, 0, 1024, 640 }, NULL, this);
vsync_checkbox = (CheckBox*)App->gui->AddCheckbox(200, 200, { 1419, 562, 26, 27 }, { 1452, 562, 26, 27 }, "VSYNC", NULL, this);
button_back = (Button*)App->gui->AddButton(550, 300, { 1595, 71, 246, 59 }, { 1595, 327, 246, 59 }, { 1595, 190, 246, 59 }, "Back", NULL, this);
return true;
}
bool Settings::PreUpdate()
{
return true;
}
bool Settings::Update(float dt)
{
return true;
}
void Settings::CallBack(UI_Element* element)
{
if (element == button_back)
{
active = false;
App->menu->active = true;
CleanUp();
App->menu->Start();
}
}
bool Settings::PostUpdate()
{
return true;
}
bool Settings::CleanUp()
{
if (has_started)
{
App->gui->UI_elements.del(App->gui->UI_elements.At(App->gui->UI_elements.find(bg_image)));
App->gui->UI_elements.del(App->gui->UI_elements.At(App->gui->UI_elements.find(button_back->text)));
App->gui->UI_elements.del(App->gui->UI_elements.At(App->gui->UI_elements.find(button_back)));
App->gui->UI_elements.del(App->gui->UI_elements.At(App->gui->UI_elements.find(vsync_checkbox->text)));
App->gui->UI_elements.del(App->gui->UI_elements.At(App->gui->UI_elements.find(vsync_checkbox)));
delete bg_image;
delete button_back;
delete vsync_checkbox;
has_started = false;
}
return true;
} | 21.721519 | 145 | 0.674825 |
670ae57e73f005580c3c6b3f9bf5a6dcc307d67e | 1,070 | hpp | C++ | src/BlobManager.hpp | kitab15/OSCReceiver | 101a3850e14725b51566aee7e9bd162fd5b9c946 | [
"MIT"
] | null | null | null | src/BlobManager.hpp | kitab15/OSCReceiver | 101a3850e14725b51566aee7e9bd162fd5b9c946 | [
"MIT"
] | null | null | null | src/BlobManager.hpp | kitab15/OSCReceiver | 101a3850e14725b51566aee7e9bd162fd5b9c946 | [
"MIT"
] | null | null | null | //
// BlobManager.hpp
// OSCReceiverSendero
//
// Created by Christian Bouvier on 11/20/16.
//
//
#ifndef BlobManager_hpp
#define BlobManager_hpp
#include <stdio.h>
#include "ofxOsc.h"
#define EXPIRATION_TIME 5
#define OSC_PORT_BLOBS 12345
#define BlobManager (*BlobManagerClass::instance())
struct blob {
int id;
float x;
float y;
float size;
float time;
};
class BlobManagerClass {
private:
static BlobManagerClass* _instance;
BlobManagerClass();
// Blobs current list
vector<blob*> blobs;
// OSC channel for Blobs
ofxOscReceiver receiver;
// When a new OSC message with blob information
// arrives, this method will be invoked to
// create a new blob or update an existing one.
void addOrUpdateBlob(blob *b);
void printBlob(blob *b);
void printBlobs();
void drawBlobs();
void removeExpiredBlobs();
public:
static BlobManagerClass* instance();
void init();
void update();
void draw();
void printStatus();
};
#endif /* BlobManager_hpp */
| 18.448276 | 51 | 0.658879 |
671045c2f8eee9555dee45635c71459d9957f643 | 11,909 | cpp | C++ | tools/tool_load_prediction/src/tool.cpp | jusch196/chameleon-apps | b63a6b20a62c450565403b0768551cca9c288156 | [
"BSD-3-Clause"
] | null | null | null | tools/tool_load_prediction/src/tool.cpp | jusch196/chameleon-apps | b63a6b20a62c450565403b0768551cca9c288156 | [
"BSD-3-Clause"
] | null | null | null | tools/tool_load_prediction/src/tool.cpp | jusch196/chameleon-apps | b63a6b20a62c450565403b0768551cca9c288156 | [
"BSD-3-Clause"
] | 2 | 2020-03-30T08:08:53.000Z | 2021-04-16T10:24:50.000Z | #include "tool.h"
//================================================================
// Variables
//================================================================
static cham_t_set_callback_t cham_t_set_callback;
static cham_t_get_rank_data_t cham_t_get_rank_data;
static cham_t_get_thread_data_t cham_t_get_thread_data;
static cham_t_get_rank_info_t cham_t_get_rank_info;
//================================================================
// Additional functions
//================================================================
int compare( const void *pa, const void *pb ){
const int *a = (int *) pa;
const int *b = (int *) pb;
if(a[0] == b[0])
return a[0] - b[0];
else
return a[1] - b[1];
}
//================================================================
// Callback Functions
//================================================================
/**
* Callback task create.
*
* @param task: a pointer to the migration task object at Chameleon-side.
* @param arg_sizes: list of argument sizes
* @param queue_time: could be measured at the time a task is added to the queue
* @param codeptr_ra: the code pointer of the task-entry (function)
* @param taskwait_counter: id of the current iteration (cycle)
*/
static void
on_cham_t_callback_task_create(cham_migratable_task_t * task, std::vector<int64_t> arg_sizes,
double queued_time, intptr_t codeptr_ra, int taskwait_counter)
{
int rank_id = cham_t_get_rank_info()->comm_rank;
TYPE_TASK_ID cham_task_id = chameleon_get_task_id(task);
// get num of args per task
const int num_args = arg_sizes.size();
int num_cycle = taskwait_counter;
// create custom data structure and use task_data as pointer
prof_task_info_t *cur_task = new prof_task_info_t;
if (rank_id != 0){
int shift_rank_id = rank_id << NBITS_SHIFT;
cur_task->tool_tid = (profiled_task_list.ntasks_per_rank * num_cycle) + (cham_task_id - shift_rank_id - 1);
} else {
cur_task->tool_tid = (profiled_task_list.ntasks_per_rank * num_cycle) + (cham_task_id - 1);
}
cur_task->cham_tid = cham_task_id;
cur_task->rank_belong = rank_id;
cur_task->num_args = num_args;
cur_task->que_time = queued_time;
cur_task->code_ptr = codeptr_ra;
// try to get cpu-core frequency here
int core_id = sched_getcpu();
double freq = get_core_freq(core_id);
cur_task->core_freq = freq;
// get arg_sizes
cur_task->args_list.resize(num_args);
for (int i = 0; i < num_args; i++){
cur_task->args_list[i] = arg_sizes[i];
}
// add task to the list
// int thread_id = omp_get_thread_num();
// printf("[TOOL] R%d T%d: callback create task cham_tid=%d, tool_tid=%d, tw_counter=%d\n",
// rank_id, thread_id, cur_task->cham_tid, cur_task->tool_tid, num_cycle);
profiled_task_list.push_back(cur_task);
// increase tool_tasks_counter
tool_tasks_count++;
}
/**
* Callback get stats_load info after a cycle (iteration) is done.
*
* @param taskwait_counter: id of the current iteration (cycle).
* @param thread_id: the last thread calls this callback.
* @param taskwait_load: the loac value per this cycle.
*/
static void
on_cham_t_callback_get_load_stats_per_taskwait(int32_t taskwait_counter,
int32_t thread_id, double taskwait_load)
{
int rank = cham_t_get_rank_info()->comm_rank;
int iter = taskwait_counter;
profiled_task_list.add_avgload(taskwait_load, iter);
// get the wallclock execution time per iteration
avg_load_per_iter_list[iter] = taskwait_load;
}
/**
* Callback get stats_load info after a cycle (iteration) is done.
*
* @param taskwait_counter: id of the current iteration (cycle).
* @param thread_id: the last thread calls this callback.
* @param taskwait_load: the loac value per this cycle.
*/
static void
on_cham_t_callback_get_task_wallclock_time(int32_t taskwait_counter,
int32_t thread_id, int task_id, double wallclock_time)
{
int idx;
int num_cycle = taskwait_counter;
int rank_id = cham_t_get_rank_info()->comm_rank;
if (rank_id != 0){
int shift_rank_id = rank_id << NBITS_SHIFT;
idx = (profiled_task_list.ntasks_per_rank * num_cycle) + (task_id - shift_rank_id - 1);
} else {
idx = (profiled_task_list.ntasks_per_rank * num_cycle) + (task_id - 1);
}
// add the wallclock time per task
profiled_task_list.add_wallclock_time(wallclock_time, task_id, num_cycle, thread_id, idx);
// printf("[CHAMTOOL] T%d: passed add_wallclock_time(), task_id=%d, tool_idx=%d\n", thread_id, task_id, idx);
}
/**
* Callback get the trigger from comm_thread, then training the pred-model.
*
* @param taskwait_counter: id of the current iteration (cycle), now trigger this
* callback by the num of passed iters.
* @return is_trained: a bool flag to notice the prediction model that has been trained.
*/
static bool
on_cham_t_callback_train_prediction_model(int32_t taskwait_counter, int prediction_mode)
{
bool is_trained = false;
int rank = cham_t_get_rank_info()->comm_rank;
/* Mode 1&2: prediction by time-series load as the patterns */
if (prediction_mode == 1 || prediction_mode == 2){
printf("[CHAM_TOOL] R%d: starts training pred_model at iter-%d\n", rank, taskwait_counter);
int num_points = 6;
int num_finished_iters = taskwait_counter-1;
is_trained = online_mlpack_training_iterative_load(profiled_task_list, num_points, num_finished_iters);
}
/* Mode 3: prediction by task-characterization as the patterns */
else if (prediction_mode == 3){
printf("[CHAM_TOOL] R%d: starts training pred_model at iter-%d\n", rank, taskwait_counter);
is_trained = online_mlpack_training_task_features(profiled_task_list, taskwait_counter);
}
return is_trained;
}
/**
* Callback get the trigger from comm_thread, then calling the trained pred-model.
*
* This callback is used to validate or get the predicted values when cham_lib requests.
* @param taskwait_counter: id of the current iteration (cycle).
* @return predicted_value: for the load of the corresponding iter.
*/
static std::vector<double>
on_cham_t_callback_load_prediction_model(int32_t taskwait_counter, int prediction_mode)
{
// prepare the input
int rank = cham_t_get_rank_info()->comm_rank;
int num_features = 6;
int s_point = taskwait_counter - num_features;
int e_point = taskwait_counter;
std::vector<double> pred_load_vec(1, 0.0);
/* Mode 1: predict iter-by-iter, by time-series patterns */
if (prediction_mode == 1) {
get_iter_by_iter_prediction(s_point, e_point, pred_load_vec);
}
/* Mode 2: predict the whole future, by time-series patterns and predicted values */
else if (prediction_mode == 2) {
pred_load_vec.resize(pre_load_per_iter_list.size(), 0.0);
get_whole_future_prediction(rank, s_point, e_point, pred_load_vec);
}
/* Mode 3: predict iter-by-iter, by task-characterization */
else if (prediction_mode == 3) {
pred_load_vec.resize(profiled_task_list.ntasks_per_rank, 0.0);
get_iter_by_iter_prediction_by_task_characs(taskwait_counter, pred_load_vec);
}
// TODO: consider the size of vector
return pred_load_vec;
}
//================================================================
// Start Tool & Register Callbacks
//================================================================
#define register_callback_t(name, type) \
do{ \
type f_##name = &on_##name; \
if (cham_t_set_callback(name, (cham_t_callback_t)f_##name) == cham_t_set_never) \
printf("0: Could not register callback '" #name "'\n"); \
} while(0)
#define register_callback(name) register_callback_t(name, name##_t)
/**
* Initializing the cham-tool callbacks.
*
* @param lookup: search the name of activated callbacks.
* @param tool_data: return the profile data of the tool. But temporarily have
* not used this param, just return directly the profile data or use
* directly in memory.
*/
int cham_t_initialize(
cham_t_function_lookup_t lookup,
cham_t_data_t *tool_data)
{
printf("Calling register_callback...\n");
cham_t_set_callback = (cham_t_set_callback_t) lookup("cham_t_set_callback");
cham_t_get_rank_data = (cham_t_get_rank_data_t) lookup("cham_t_get_rank_data");
cham_t_get_thread_data = (cham_t_get_thread_data_t) lookup("cham_t_get_thread_data");
cham_t_get_rank_info = (cham_t_get_rank_info_t) lookup("cham_t_get_rank_info");
register_callback(cham_t_callback_task_create);
register_callback(cham_t_callback_get_load_stats_per_taskwait);
register_callback(cham_t_callback_get_task_wallclock_time);
register_callback(cham_t_callback_train_prediction_model);
register_callback(cham_t_callback_load_prediction_model);
// get info about the number of iterations
int max_num_iters = DEFAULT_NUM_ITERS;
int max_num_tasks_per_rank = DEFAULT_NUM_TASKS_PER_RANK;
char *program_num_iters = std::getenv("EST_NUM_ITERS");
char *program_num_tasks = std::getenv("TASKS_PER_RANK");
// parse numtasks per rank
std::string str_numtasks(program_num_tasks);
std::list<std::string> split_numtasks = split(str_numtasks, ',');
std::list<std::string>::iterator it = split_numtasks.begin();
int rank = cham_t_get_rank_info()->comm_rank;
if (program_num_iters != NULL){
max_num_iters = atoi(program_num_iters);
}
if (program_num_tasks != NULL){
advance(it, rank);
max_num_tasks_per_rank = std::atoi((*it).c_str());
printf("[CHAMTOOL] check num_tasks per Rank %d: %d\n", rank, max_num_tasks_per_rank);
}
// resize vectors inside profiled_task_list
profiled_task_list.ntasks_per_rank = max_num_tasks_per_rank;
profiled_task_list.avg_load_list.resize(max_num_iters, 0.0);
profiled_task_list.task_list.resize(max_num_iters * max_num_tasks_per_rank);
// resize the arma::vectors
tool_tasks_count = 0;
avg_load_per_iter_list.resize(max_num_iters);
pre_load_per_iter_list.resize(max_num_iters);
return 1;
}
/**
* Finalizing the cham-tool.
*
* This callback is to finalize the whole callback tool, after the
* chameleon finished. This is called from chameleon-lib side.
* @param tool_data
*/
void cham_t_finalize(cham_t_data_t *tool_data)
{
// writing per rank
int rank = cham_t_get_rank_info()->comm_rank;
// write tool-logs
chameleon_t_write_logs(profiled_task_list, rank);
// clear profiled-data task list
clear_prof_tasklist();
}
/**
* Starting the cham-tool.
*
* This is to start the chameleon tool, then the functions, i.e.,
* cham_t_initialize() and cham_t_finalize() would be pointed to call.
* @param cham_version.
* @return as a main function of the callback took, would init
* cham_t_initialize and cham_t_finalize.
*/
#ifdef __cplusplus
extern "C" {
#endif
cham_t_start_tool_result_t* cham_t_start_tool(unsigned int cham_version)
{
printf("Starting tool with Chameleon Version: %d\n", cham_version);
static cham_t_start_tool_result_t cham_t_start_tool_result = {&cham_t_initialize, &cham_t_finalize, 0};
return &cham_t_start_tool_result;
}
#ifdef __cplusplus
}
#endif | 38.169872 | 121 | 0.653287 |
e24d1e8b8a9be0041d7790e11dbee71d320af3e1 | 1,438 | cpp | C++ | src/start.cpp | eostitan/eosio-wps | 02be171c267b35e9be3ef250da706e2e6c972752 | [
"MIT"
] | null | null | null | src/start.cpp | eostitan/eosio-wps | 02be171c267b35e9be3ef250da706e2e6c972752 | [
"MIT"
] | null | null | null | src/start.cpp | eostitan/eosio-wps | 02be171c267b35e9be3ef250da706e2e6c972752 | [
"MIT"
] | null | null | null | [[eosio::action]]
void wps::init()
{
require_auth( get_self() );
const name ram_payer = get_self();
check( !_state.exists(), "already initialized" );
auto state = _state.get_or_default();
auto settings = _settings.get_or_default();
_state.set( state, ram_payer );
_settings.set( settings, ram_payer );
// must manually execute the `start` action to begin voting period
}
[[eosio::action]]
void wps::start()
{
require_auth( get_self() );
const name ram_payer = get_self();
check( _state.exists(), "contract not yet initialized" );
check( _settings.exists(), "settings are missing" );
// TO-DO add checks
auto state = _state.get();
auto settings = _settings.get();
// start of voting period will start at the nearest 00:00UTC
const uint64_t now = current_time_point().sec_since_epoch();
const time_point_sec current_voting_period = time_point_sec(now - now % DAY);
// validation
check( state.next_voting_period <= current_time_point(), "[next_voting_period] must be in the past");
check( state.current_voting_period != current_voting_period, "[current_voting_period] was not modified");
state.current_voting_period = current_voting_period;
state.next_voting_period = state.current_voting_period + settings.voting_interval;
_state.set( state, ram_payer );
// must manually execute the `complete` action to finish voting period
} | 31.26087 | 109 | 0.700974 |
e24f9319dc8e4e15a01678d1bc16795557e21cec | 4,057 | hpp | C++ | iRODS/lib/api/include/procStat.hpp | PlantandFoodResearch/irods | 9dfe7ffe5aa0760b7493bd9392ea1270df9335d4 | [
"BSD-3-Clause"
] | null | null | null | iRODS/lib/api/include/procStat.hpp | PlantandFoodResearch/irods | 9dfe7ffe5aa0760b7493bd9392ea1270df9335d4 | [
"BSD-3-Clause"
] | null | null | null | iRODS/lib/api/include/procStat.hpp | PlantandFoodResearch/irods | 9dfe7ffe5aa0760b7493bd9392ea1270df9335d4 | [
"BSD-3-Clause"
] | null | null | null | /*** Copyright (c), The Regents of the University of California ***
*** For more information please refer to files in the COPYRIGHT directory ***/
/* procStat.h - This dataObj may be generated by a program or script
*/
#ifndef PROC_STAT_HPP
#define PROC_STAT_HPP
/* This is a Object File I/O API call */
#include "rods.hpp"
#include "procApiRequest.hpp"
#include "apiNumber.hpp"
#include "initServer.hpp"
/* fake attri index for procStatOut */
#define PID_INX 1000001
#define STARTTIME_INX 1000002
#define CLIENT_NAME_INX 1000003
#define CLIENT_ZONE_INX 1000004
#define PROXY_NAME_INX 1000005
#define PROXY_ZONE_INX 1000006
#define REMOTE_ADDR_INX 1000007
#define PROG_NAME_INX 1000008
#define SERVER_ADDR_INX 1000009
typedef struct {
char addr[LONG_NAME_LEN]; /* if non empty, stat at this addr */
char rodsZone[NAME_LEN]; /* the zone */
keyValPair_t condInput;
} procStatInp_t;
#define ProcStatInp_PI "str addr[LONG_NAME_LEN];str rodsZone[NAME_LEN];struct KeyValPair_PI;"
#define MAX_PROC_STAT_CNT 2000
#if defined(RODS_SERVER)
#define RS_PROC_STAT rsProcStat
/* prototype for the server handler */
int
rsProcStat( rsComm_t *rsComm, procStatInp_t *procStatInp,
genQueryOut_t **procStatOut );
int
_rsProcStat( rsComm_t *rsComm, procStatInp_t *procStatInp,
genQueryOut_t **procStatOut );
int
_rsProcStatAll( rsComm_t *rsComm, procStatInp_t *procStatInp,
genQueryOut_t **procStatOut );
int
localProcStat( rsComm_t *rsComm, procStatInp_t *procStatInp,
genQueryOut_t **procStatOut );
int
remoteProcStat( rsComm_t *rsComm, procStatInp_t *procStatInp,
genQueryOut_t **procStatOut, rodsServerHost_t *rodsServerHost );
int
initProcStatOut( genQueryOut_t **procStatOut, int numProc );
int
addProcToProcStatOut( procLog_t *procLog, genQueryOut_t *procStatOut );
#else
#define RS_PROC_STAT NULL
#endif
extern "C" {
/* prototype for the client call */
/* rcProcStat - Get the connection stat of irods agents running in the
* iRods federation. By default, the stat of the irods agents on the icat
* enabled server (IES) is listed. Other servers can be specified using
* the "addr" field of procStatInp or using the RESC_NAME_KW keyword.
*
* Input -
* rcComm_t *conn - The client connection handle.
* procStatInp_t *procStatInp :
* addr - the IP address of the server where the stat should be done.
* A zero len addr means no input.
* rodsZone - the zone name for this stat. A zero len rodsZone means
* the stat is to be done in the local zone.
* condInput - conditional Input
* RESC_NAME_KW - "value" - do the stat on the server where the
* Resource is located.
* ALL_KW (and zero len value) - stat for all servers in the
* fedration.
* Output -
* genQueryOut_t **procStatOut
* The procStatOut contains 9 attributes and value arrays with the
* attriInx defined above. i.e.:
* PID_INX - pid of the agent process
* STARTTIME_INX - The connection start time in secs since Epoch.
* CLIENT_NAME_INX - client user name
* CLIENT_ZONE_INX - client user zone
* PROXY_NAME_INX - proxy user name
* PROXY_ZONE_INX - proxy user zone
* REMOTE_ADDR_INX - the from address of the connection
* SERVER_ADDR_INX - the server address of the connection
* PROG_NAME_INX - the client program name
*
* A row will be given for each running irods agent. If a server is
* completely idle, one row will still be given with all the attribute
* vaules empty (zero length string) except for the value associated
* with the SERVER_ADDR_INX.
* return value - The status of the operation.
*/
int
rcProcStat( rcComm_t *conn, procStatInp_t *procStatInp,
genQueryOut_t **procStatOut );
}
#endif /* PROC_STAT_H */
| 36.881818 | 93 | 0.681538 |
e25004596e1839e8068f01d786a042b4b4bc5c32 | 1,624 | cxx | C++ | PerceptualMetric/cython/src/treeio.cxx | PolasekT/ICTree | d13ad603101805bcc288411504ecffd6f2e1f365 | [
"MIT"
] | 3 | 2021-12-09T22:37:03.000Z | 2022-02-16T13:40:44.000Z | PerceptualMetric/cython/src/treeio.cxx | PolasekT/ICTree | d13ad603101805bcc288411504ecffd6f2e1f365 | [
"MIT"
] | null | null | null | PerceptualMetric/cython/src/treeio.cxx | PolasekT/ICTree | d13ad603101805bcc288411504ecffd6f2e1f365 | [
"MIT"
] | 3 | 2021-12-09T22:37:08.000Z | 2022-02-03T14:38:39.000Z | /**
* @author Tomas Polasek
* @date 26.4.2021
* @version 1.0
* @brief Python wrapper for TreeIO.
*/
#include "treeio.h"
#include <iostream>
int testIntegration(const std::string &s)
{ std::cout << "Hello World: " << s << std::endl; return 42; }
treeio::ArrayTree *treeConstruct()
{ return new treeio::ArrayTree; }
void treeDestroy(treeio::ArrayTree *tree)
{ /* No actions necessary */ }
treeio::ArrayTree *treeFromString(const std::string &serialized)
{
auto tree{ treeConstruct() };
*tree = treeio::ArrayTree::fromString<treeio::RuntimeMetaData>(serialized);
return tree;
}
treeio::ArrayTree *treeFromPath(const std::string &path)
{
auto tree{ treeConstruct() };
*tree = treeio::ArrayTree::fromPath<treeio::RuntimeMetaData>(path);
return tree;
}
bool treeSave(treeio::ArrayTree *tree, const std::string &path)
{ return tree->saveTree(path); }
void treeCopy(treeio::ArrayTree *dst, treeio::ArrayTree *src)
{ *dst = *src; }
bool treeAugment(treeio::ArrayTree *tree,
treeaug::TreeAugmenter *augmenter,
int seed, bool normal,
float nLow, float nHigh, float nStrength,
float bLow, float bHigh, float bStrength,
bool skipLeaves)
{
treeaug::AugmenterConfig cfg{ };
cfg.seed = seed;
cfg.distribution = normal ? treeutil::RandomDistribution::Normal : treeutil::RandomDistribution::Uniform;
cfg.rng = nullptr;
cfg.nodeDither = { nLow, nHigh, nStrength };
cfg.branchDither = { bLow, bHigh, bStrength };
cfg.branchDitherSkipLeaves = skipLeaves;
return augmenter->augment(*tree, cfg);
}
| 28 | 110 | 0.667488 |
e250f6db4f581914b7d9947082dd2dfd43c27541 | 2,116 | cpp | C++ | Leetcode/res/Remove Invalid Parentheses/1.cpp | AllanNozomu/CompetitiveProgramming | ac560ab5784d2e2861016434a97e6dcc44e26dc8 | [
"MIT"
] | 1 | 2022-03-04T16:06:41.000Z | 2022-03-04T16:06:41.000Z | Leetcode/res/Remove Invalid Parentheses/1.cpp | AllanNozomu/CompetitiveProgramming | ac560ab5784d2e2861016434a97e6dcc44e26dc8 | [
"MIT"
] | null | null | null | Leetcode/res/Remove Invalid Parentheses/1.cpp | AllanNozomu/CompetitiveProgramming | ac560ab5784d2e2861016434a97e6dcc44e26dc8 | [
"MIT"
] | null | null | null | \*
Author: allannozomu
Runtime: 24 ms
Memory: 11.5 MB*\
class Solution {
private:
int minimun_removed;
public:
string buildFromMask(string& s, vector<int>& mask){
string res = "";
for (int i = 0 ; i < mask.size(); ++i){
if (mask[i]){
res += s[i];
}
}
return res;
}
void removeInvalidParenthesesAux(string& s, int level, vector<int>& mask, int open_count, int removed_count, set<string>& substrings){
if (open_count < 0 || removed_count > minimun_removed) return;
if (level >= s.size()){
if (open_count == 0){
if (removed_count == minimun_removed){
substrings.insert(buildFromMask(s, mask));
} else if (removed_count < minimun_removed){
minimun_removed = removed_count;
substrings = {buildFromMask(s, mask)};
}
}
return;
}
char curr_c = s[level];
if (curr_c == '('){
mask[level] = 1;
removeInvalidParenthesesAux(s, level + 1, mask, open_count + 1, removed_count, substrings);
mask[level] = 0;
removeInvalidParenthesesAux(s, level + 1, mask, open_count, removed_count + 1, substrings);
}else if (curr_c == ')'){
mask[level] = 1;
removeInvalidParenthesesAux(s, level + 1, mask, open_count - 1, removed_count, substrings);
mask[level] = 0;
removeInvalidParenthesesAux(s, level + 1, mask, open_count, removed_count + 1, substrings);
}else{
mask[level] = 1;
removeInvalidParenthesesAux(s, level + 1, mask, open_count, removed_count, substrings);
}
}
vector<string> removeInvalidParentheses(string s) {
minimun_removed = s.size();
set<string> substrings;
vector<int> mask = vector<int>(s.size());
removeInvalidParenthesesAux(s, 0, mask, 0, 0, substrings);
return vector<string>(substrings.begin(), substrings.end());
}
}; | 35.266667 | 138 | 0.547259 |
e25489f1fbef7a0c2bb34822f8e953e95351f9e6 | 2,110 | cpp | C++ | samples/Hello/third-party/fuzzylite/examples/takagi-sugeno/matlab/sltbu_fl.cpp | okocsis/ios-cmake | ca61d83725bc5b1a755928f4592badbd9a8b37f4 | [
"BSD-3-Clause"
] | null | null | null | samples/Hello/third-party/fuzzylite/examples/takagi-sugeno/matlab/sltbu_fl.cpp | okocsis/ios-cmake | ca61d83725bc5b1a755928f4592badbd9a8b37f4 | [
"BSD-3-Clause"
] | null | null | null | samples/Hello/third-party/fuzzylite/examples/takagi-sugeno/matlab/sltbu_fl.cpp | okocsis/ios-cmake | ca61d83725bc5b1a755928f4592badbd9a8b37f4 | [
"BSD-3-Clause"
] | null | null | null | #include <fl/Headers.h>
int main(int argc, char** argv){
//Code automatically generated with fuzzylite 6.0.
using namespace fl;
Engine* engine = new Engine;
engine->setName("sltbu_fl");
engine->setDescription("");
InputVariable* distance = new InputVariable;
distance->setName("distance");
distance->setDescription("");
distance->setEnabled(true);
distance->setRange(0.000, 25.000);
distance->setLockValueInRange(false);
distance->addTerm(new ZShape("near", 1.000, 2.000));
distance->addTerm(new SShape("far", 1.000, 2.000));
engine->addInputVariable(distance);
InputVariable* control1 = new InputVariable;
control1->setName("control1");
control1->setDescription("");
control1->setEnabled(true);
control1->setRange(-0.785, 0.785);
control1->setLockValueInRange(false);
engine->addInputVariable(control1);
InputVariable* control2 = new InputVariable;
control2->setName("control2");
control2->setDescription("");
control2->setEnabled(true);
control2->setRange(-0.785, 0.785);
control2->setLockValueInRange(false);
engine->addInputVariable(control2);
OutputVariable* control = new OutputVariable;
control->setName("control");
control->setDescription("");
control->setEnabled(true);
control->setRange(-0.785, 0.785);
control->setLockValueInRange(false);
control->setAggregation(fl::null);
control->setDefuzzifier(new WeightedAverage("TakagiSugeno"));
control->setDefaultValue(fl::nan);
control->setLockPreviousValue(false);
control->addTerm(Linear::create("out1mf1", engine, 0.000, 0.000, 1.000, 0.000));
control->addTerm(Linear::create("out1mf2", engine, 0.000, 1.000, 0.000, 0.000));
engine->addOutputVariable(control);
RuleBlock* ruleBlock = new RuleBlock;
ruleBlock->setName("");
ruleBlock->setDescription("");
ruleBlock->setEnabled(true);
ruleBlock->setConjunction(fl::null);
ruleBlock->setDisjunction(fl::null);
ruleBlock->setImplication(fl::null);
ruleBlock->setActivation(new General);
ruleBlock->addRule(Rule::parse("if distance is near then control is out1mf1", engine));
ruleBlock->addRule(Rule::parse("if distance is far then control is out1mf2", engine));
engine->addRuleBlock(ruleBlock);
}
| 31.969697 | 87 | 0.759716 |
e256b0f147945b96164c23b7a8e0484d18ca5441 | 603 | cpp | C++ | src/TextsHelper.cpp | TB989/Game | 9cf6e1267f1bc08b2e7f5f9a8278914f930c7c51 | [
"MIT"
] | null | null | null | src/TextsHelper.cpp | TB989/Game | 9cf6e1267f1bc08b2e7f5f9a8278914f930c7c51 | [
"MIT"
] | null | null | null | src/TextsHelper.cpp | TB989/Game | 9cf6e1267f1bc08b2e7f5f9a8278914f930c7c51 | [
"MIT"
] | null | null | null | #include <iostream>
#include <fstream>
#include <string>
#include "TextsHelper.h"
std::string getNextToken(std::ifstream &file,char delim){
std::string token;
while(true){
char ch;
file.get(ch);
if(ch==delim){
break;
}
else{
token+=ch;
}
}
return token;
}
void readTexts(){
std::ifstream texts;
texts.open("Texts.txt",std::ios::in);
Text text;
std::string temp;
temp=getNextToken(texts,'#');
std::cout << temp << "\n";
temp=getNextToken(texts,'#');
std::cout << temp << "\n";
}
| 17.735294 | 57 | 0.532338 |
e259f83d35e8fd797273e82a11d088e0e4f22297 | 1,218 | hpp | C++ | src/include/duckdb/function/scalar/regexp.hpp | AldoMyrtaj/duckdb | 3aa4978a2ceab8df25e4b20c388bcd7629de73ed | [
"MIT"
] | 2,816 | 2018-06-26T18:52:52.000Z | 2021-04-06T10:39:15.000Z | src/include/duckdb/function/scalar/regexp.hpp | AldoMyrtaj/duckdb | 3aa4978a2ceab8df25e4b20c388bcd7629de73ed | [
"MIT"
] | 1,310 | 2021-04-06T16:04:52.000Z | 2022-03-31T13:52:53.000Z | src/include/duckdb/function/scalar/regexp.hpp | AldoMyrtaj/duckdb | 3aa4978a2ceab8df25e4b20c388bcd7629de73ed | [
"MIT"
] | 270 | 2021-04-09T06:18:28.000Z | 2022-03-31T11:55:37.000Z | //===----------------------------------------------------------------------===//
// DuckDB
//
// duckdb/function/scalar/regexp.hpp
//
//
//===----------------------------------------------------------------------===//
#pragma once
#include "duckdb/function/function_set.hpp"
#include "re2/re2.h"
namespace duckdb {
struct RegexpMatchesBindData : public FunctionData {
RegexpMatchesBindData(duckdb_re2::RE2::Options options, string constant_string);
~RegexpMatchesBindData() override;
duckdb_re2::RE2::Options options;
string constant_string;
bool constant_pattern;
string range_min;
string range_max;
bool range_success;
unique_ptr<FunctionData> Copy() override;
};
struct RegexpReplaceBindData : public FunctionData {
duckdb_re2::RE2::Options options;
bool global_replace;
unique_ptr<FunctionData> Copy() override;
};
struct RegexpExtractBindData : public FunctionData {
RegexpExtractBindData(bool constant_pattern, const string &pattern, const string &group_string_p);
const bool constant_pattern;
const string constant_string;
const string group_string;
const duckdb_re2::StringPiece rewrite;
unique_ptr<FunctionData> Copy() override;
};
} // namespace duckdb
| 24.36 | 99 | 0.665846 |
e25d6b3ec6918c719b9450c0d4cb211513cf0d56 | 8,221 | cpp | C++ | test/TestUnicode.cpp | m5knt/Pits | 7f7f9ab3013f446ffc8faee3b832a7b8043d4bed | [
"MIT"
] | null | null | null | test/TestUnicode.cpp | m5knt/Pits | 7f7f9ab3013f446ffc8faee3b832a7b8043d4bed | [
"MIT"
] | null | null | null | test/TestUnicode.cpp | m5knt/Pits | 7f7f9ab3013f446ffc8faee3b832a7b8043d4bed | [
"MIT"
] | null | null | null | #include "Pits/Unicode.hpp"
#include "Pits/Timer.hpp"
#include <uchar.h>
#include <cassert>
#include <string_view>
#include <iostream>
#include <codecvt>
#include <vector>
using namespace std::literals;
#if __cplusplus <= 201703L
namespace std {
using u8string = basic_string<char>;
}
#endif
template <class Job>
void Bench(Job job) {
Pits::Timer begin;
job();
std::cout << begin.GetElapsed() <<std::endl;
}
constexpr auto DefinedNDEBUG =
#ifdef NDEBUG
true;
#else
false;
#endif
constexpr auto BenchTimes = (DefinedNDEBUG ? 1000 : 1);
int main() {
#if defined(__STDC_UTF_16__) && defined(__STDC_UTF_32__)
static_assert(Pits::Unicode::IsSurrogate(u"𐐷"[0]));
static_assert(Pits::Unicode::IsSurrogate(u"𐐷"[1]));
static_assert(Pits::Unicode::IsHighSurrogate(u"𐐷"[0]));
static_assert(Pits::Unicode::IsLowSurrogate(u"𐐷"[1]));
static_assert(Pits::Unicode::IsNotCharacter(U'\U0000fffe'));
static_assert(Pits::Unicode::IsNotCharacter(U'\U0000ffff'));
static_assert(Pits::Unicode::IsNotCharacter(U'\U0001ffff'));
static_assert(Pits::Unicode::IsUnsafeCharacter(char32_t(0x0000d800)));
static_assert(Pits::Unicode::IsUnsafeCharacter(char32_t(0x0000ffff)));
static_assert(Pits::Unicode::IsUnsafeCharacter(char32_t(0x00110000)));
static_assert(Pits::Unicode::IsLeadUnit(char8_t(0x00)));
static_assert(Pits::Unicode::IsLeadUnit(char8_t(0xc0)));
static_assert(Pits::Unicode::IsLeadUnit(char8_t(0xe0)));
static_assert(Pits::Unicode::IsLeadUnit(char8_t(0xf0)));
static_assert(Pits::Unicode::IsLeadUnit(char16_t(0xd800)));
static_assert(Pits::Unicode::IsLeadUnit(char32_t(0x0000)));
static_assert(Pits::Unicode::LeadToUnits(char8_t(0x00)) == 1);
static_assert(Pits::Unicode::LeadToUnits(char8_t(0xc0)) == 2);
static_assert(Pits::Unicode::LeadToUnits(char8_t(0xe0)) == 3);
static_assert(Pits::Unicode::LeadToUnits(char8_t(0xf0)) == 4);
static_assert(Pits::Unicode::LeadToUnits(char16_t(0x0000)) == 1);
static_assert(Pits::Unicode::LeadToUnits(char16_t(0xd800)) == 2);
static_assert(Pits::Unicode::LeadToUnits(char32_t(0x0000)) == 1);
std::cout << "Bench Unicode Convert (0 ~ 10ffff) x " << BenchTimes << std::endl;
{
#if 0
auto from = U"𐐷漢字😀";
char8_t to[100] = {};
auto f = from;
auto t = to;
std::tie(f, t) = Pits::Unicode::ConvertUTF32ToUTF8(f, t);
std::tie(f, t) = Pits::Unicode::ConvertUTF32ToUTF8(f, t);
std::tie(f, t) = Pits::Unicode::ConvertUTF32ToUTF8(f, t);
std::tie(f, t) = Pits::Unicode::ConvertUTF32ToUTF8(f, t);
assert(to == u8"𐐷漢字😀"sv);
#endif
std::vector<char8_t[Pits::Unicode::UTF32UnitsToUTF8Units()]> utf8(Pits::Unicode::CharacterMax + 1);
std::vector<char32_t[Pits::Unicode::UTF8UnitsToUTF32Units()]> utf32(Pits::Unicode::CharacterMax + 1);
std::cout << "ConvertUTF32ToUTF8: ";
Bench([&] {
for (int j = 0; j < BenchTimes; ++j) {
for (char32_t c = 0; c < Pits::Unicode::CharacterMax; ++c) {
if (Pits::Unicode::IsSurrogate(c)) continue;
Pits::Unicode::ConvertUTF32ToUTF8(&c, &utf8[c][0]);
}
}
});
std::cout << "ConvertUTF8ToUTF32: ";
Bench([&] {
for (int j = 0; j < BenchTimes; ++j) {
for (char32_t c = 0; c < Pits::Unicode::CharacterMax; ++c) {
if (Pits::Unicode::IsSurrogate(c)) continue;
Pits::Unicode::ConvertUTF8ToUTF32(&utf8[c][0], &utf32[c][0]);
}
}
});
for (char32_t c = 0; c < Pits::Unicode::CharacterMax; ++c) {
if (Pits::Unicode::IsSurrogate(c)) continue;
assert(utf32[c][0] == c);
}
}
{
auto from = U"𐐷漢字😀";
char16_t to[100] = {};
auto f = from;
auto t = to;
std::tie(f, t) = Pits::Unicode::ConvertUTF32ToUTF16(f, t);
std::tie(f, t) = Pits::Unicode::ConvertUTF32ToUTF16(f, t);
std::tie(f, t) = Pits::Unicode::ConvertUTF32ToUTF16(f, t);
std::tie(f, t) = Pits::Unicode::ConvertUTF32ToUTF16(f, t);
assert(to == u"𐐷漢字😀"sv);
std::vector<char16_t[Pits::Unicode::UTF32UnitsToUTF16Units()]> utf16(Pits::Unicode::CharacterMax + 1);
std::vector<char8_t[Pits::Unicode::UTF16UnitsToUTF8Units()]> utf8(Pits::Unicode::CharacterMax + 1);
std::vector<char32_t[Pits::Unicode::UTF16UnitsToUTF32Units()]> utf32(Pits::Unicode::CharacterMax + 1);
std::cout << "ConvertUTF32ToUTF16: ";
Bench([&] {
for (int j = 0; j < BenchTimes; ++j) {
for (char32_t c = 0; c < Pits::Unicode::CharacterMax; ++c) {
if (Pits::Unicode::IsSurrogate(c)) continue;
Pits::Unicode::ConvertUTF32ToUTF16(&c, &utf16[c][0]);
}
}
});
std::cout << "ConvertUTF16ToUTF32: ";
Bench([&] {
for (int j = 0; j < BenchTimes; ++j) {
for (char32_t c = 0; c < Pits::Unicode::CharacterMax; ++c) {
if (Pits::Unicode::IsSurrogate(c)) continue;
Pits::Unicode::ConvertUTF16ToUTF32(&utf16[c][0], &utf32[c][0]);
}
}
});
for (char32_t c = 0; c < Pits::Unicode::CharacterMax; ++c) {
if (Pits::Unicode::IsSurrogate(c)) continue;
assert(utf32[c][0] == c);
}
std::cout << "ConvertUTF16ToUTF8: ";
Bench([&] {
for (int j = 0; j < BenchTimes; ++j) {
for (char32_t c = 0; c < Pits::Unicode::CharacterMax; ++c) {
if (Pits::Unicode::IsSurrogate(c)) continue;
Pits::Unicode::ConvertUTF16ToUTF8(&utf16[c][0], &utf8[c][0]);
}
}
});
std::cout << "ConvertUTF8ToUTF16: ";
Bench([&] {
for (int j = 0; j < BenchTimes; ++j) {
for (char32_t c = 0; c < Pits::Unicode::CharacterMax; ++c) {
if (Pits::Unicode::IsSurrogate(c)) continue;
Pits::Unicode::ConvertUTF8ToUTF16(&utf8[c][0], &utf16[c][0]);
}
}
});
for (char32_t c = 0; c < Pits::Unicode::CharacterMax; ++c) {
if (Pits::Unicode::IsSurrogate(c)) continue;
auto cc = char32_t{};
Pits::Unicode::ConvertUTF16ToUTF32(&utf16[c][0], &cc);
assert(cc == c);
}
}
#if 0
{
auto from = u8"𐐷漢字😀";
char32_t to[100] = {};
auto f = from;
auto t = to;
std::tie(f, t) = Pits::Unicode::ConvertUTF8ToUTF32(f, t);
std::tie(f, t) = Pits::Unicode::ConvertUTF8ToUTF32(f, t);
std::tie(f, t) = Pits::Unicode::ConvertUTF8ToUTF32(f, t);
std::tie(f, t) = Pits::Unicode::ConvertUTF8ToUTF32(f, t);
assert(to == U"𐐷漢字😀"sv);
}
{
auto from = u"𐐷漢字😀";
char32_t to[13] = {};
auto f = from;
auto t = to;
std::tie(f, t) = Pits::Unicode::ConvertUTF16ToUTF32(f, t);
std::tie(f, t) = Pits::Unicode::ConvertUTF16ToUTF32(f, t);
std::tie(f, t) = Pits::Unicode::ConvertUTF16ToUTF32(f, t);
std::tie(f, t) = Pits::Unicode::ConvertUTF16ToUTF32(f, t);
assert(to == U"𐐷漢字😀"sv);
}
{
auto from = u8"𐐷漢字😀";
char16_t to[100] = {};
auto f = from;
auto t = to;
std::tie(f, t) = Pits::Unicode::ConvertUTF8ToUTF16(f, t);
std::tie(f, t) = Pits::Unicode::ConvertUTF8ToUTF16(f, t);
std::tie(f, t) = Pits::Unicode::ConvertUTF8ToUTF16(f, t);
std::tie(f, t) = Pits::Unicode::ConvertUTF8ToUTF16(f, t);
assert(to == u"𐐷漢字😀"sv);
}
{
auto from = u"𐐷漢字😀";
char8_t to[100] = {};
auto f = from;
auto t = to;
std::tie(f, t) = Pits::Unicode::ConvertUTF16ToUTF8(f, t);
std::tie(f, t) = Pits::Unicode::ConvertUTF16ToUTF8(f, t);
std::tie(f, t) = Pits::Unicode::ConvertUTF16ToUTF8(f, t);
std::tie(f, t) = Pits::Unicode::ConvertUTF16ToUTF8(f, t);
assert(to == u8"𐐷漢字😀"sv);
}
#endif
#endif
return 0;
}
| 36.537778 | 110 | 0.554069 |
e25ed53686e2f3df256950b71982cf2191468168 | 1,160 | cpp | C++ | yumi_dynamics/src/external_force_node.cpp | SebastianGrans/yumi | 14fa92585105d29fbff9c633f93919513a526c79 | [
"Apache-2.0"
] | 4 | 2020-04-04T14:18:12.000Z | 2020-08-05T11:24:03.000Z | yumi_dynamics/src/external_force_node.cpp | SebastianGrans/yumi | 14fa92585105d29fbff9c633f93919513a526c79 | [
"Apache-2.0"
] | 1 | 2021-10-10T19:35:36.000Z | 2022-01-01T23:26:55.000Z | yumi_dynamics/src/external_force_node.cpp | SebastianGrans/yumi | 14fa92585105d29fbff9c633f93919513a526c79 | [
"Apache-2.0"
] | 2 | 2020-08-27T11:02:12.000Z | 2021-08-08T16:53:57.000Z | #include "external_force/external_force.hpp"
#include "kdl_wrapper/kdl_wrapper.h"
#include <urdf/model.h>
#include <rclcpp/rclcpp.hpp>
#include <future>
#include <unistd.h>
// Ctr+C handler
void signal_callback_handler(int signum)
{
std::cout << "Caught signal " << signum << std::endl;
// Terminate ros node
rclcpp::shutdown();
// Terminate program
exit(signum);
}
int main(int argc, char *argv[])
{
// Ctrl+C handler
signal(SIGINT, signal_callback_handler);
rclcpp::init(argc, argv);
// Finding path to urdf
char buf[20];
if (getlogin_r(buf, 20) != 0)
{
printf("Unable to find username\n");
return -1;
}
std::string username = buf;
std::string path = "/home/" + username + "/abb_ws/src/yumi/yumi_description/urdf/yumi.urdf";
// Loading URDf and constructing the KdlWrapper
urdf::Model robot_model;
if (!robot_model.initFile(path))
{
printf("unable to load urdf\n");
return -1;
}
auto ext_F = std::make_shared<yumi_dynamics::ExternalForce>(robot_model);
rclcpp::WallRate loop_rate(250);
while (rclcpp::ok())
{
ext_F->estimate_TCP_wrench();
loop_rate.sleep();
}
return 0;
}
| 21.481481 | 94 | 0.67069 |
e25fb5a1c1f4767600c624b4ed6b0508e58b11f3 | 187 | hh | C++ | macos/cc/WindowDelegate.hh | rgkirch/JWM | 390fc92398758171e402529f8a6da4cce2a3efc6 | [
"Apache-2.0"
] | 177 | 2021-05-13T01:03:45.000Z | 2021-08-30T18:45:58.000Z | macos/cc/WindowDelegate.hh | rgkirch/JWM | 390fc92398758171e402529f8a6da4cce2a3efc6 | [
"Apache-2.0"
] | 130 | 2021-05-18T13:43:08.000Z | 2021-08-30T18:16:01.000Z | macos/cc/WindowDelegate.hh | rgkirch/JWM | 390fc92398758171e402529f8a6da4cce2a3efc6 | [
"Apache-2.0"
] | 13 | 2021-09-16T14:12:08.000Z | 2022-03-21T00:58:01.000Z | #pragma once
#import <Cocoa/Cocoa.h>
#include "WindowMac.hh"
@interface WindowDelegate : NSObject<NSWindowDelegate>
- (WindowDelegate*)initWithWindow:(jwm::WindowMac*)initWindow;
@end
| 18.7 | 62 | 0.775401 |
e26277d11b08f7820dc2270d8b1ab03dc700694a | 5,138 | cpp | C++ | Code/CmLib/Segmentation/PlanarCut/code/CutGrid.cpp | JessicaGiven/SalBenchmark_Analysis_Given | 0b0d8c3373be9105e9e94bc20b0eeb0bd7c06198 | [
"MIT"
] | 1 | 2018-10-07T00:56:57.000Z | 2018-10-07T00:56:57.000Z | Code/CmLib/Segmentation/PlanarCut/code/CutGrid.cpp | JessicaGiven/SalBenchmark_Analysis_Given | 0b0d8c3373be9105e9e94bc20b0eeb0bd7c06198 | [
"MIT"
] | null | null | null | Code/CmLib/Segmentation/PlanarCut/code/CutGrid.cpp | JessicaGiven/SalBenchmark_Analysis_Given | 0b0d8c3373be9105e9e94bc20b0eeb0bd7c06198 | [
"MIT"
] | null | null | null | /*****************************************************************************
* PlanarCut - software to compute MinCut / MaxFlow in a planar graph *
* Version 1.0.2 *
* *
* Copyright 2011 - 2013 Eno Töppe <toeppe@in.tum.de> *
* Frank R. Schmidt <info@frank-r-schmidt.de> *
******************************************************************************
If you use this software for research purposes, YOU MUST CITE the following
paper in any resulting publication:
[1] Efficient Planar Graph Cuts with Applications in Computer Vision.
F. R. Schmidt, E. Töppe, D. Cremers,
IEEE CVPR, Miami, Florida, June 2009
******************************************************************************
This software is released under the LGPL license. Details are explained
in the files 'COPYING' and 'COPYING.LESSER'.
*****************************************************************************/
#include "CutGrid.h"
CapType CutGrid::edgeCostNull(int row, int col, EDir dir) {
return 0.0;
}
CutGrid::CutGrid(int nRows, int nCols) : idxSource(0), idxSink(0) {
//set standard edge cost function so edgeCostFunc is always non-null
edgeCostFunc = &edgeCostNull;
if (nCols > 0 && nRows > 0) {
this->nCols = nCols;
this->nRows = nRows;
} else {
this->nCols = nCols = 5;
this->nRows = nRows = 5;
}
//compute metrics of the planar graph and reserve memory
nFacesPerRow = nCols - 1;
nFacesPerCol = nRows - 1;
nFaces = nFacesPerRow * nFacesPerCol + 1; //inner faces + one outside face
nHorzEdgesPerRow = nCols - 1;
nVertEdgesPerRow = nCols;
nHorzEdges = nHorzEdgesPerRow * nRows;
nVertEdges = nVertEdgesPerRow * (nRows-1);
nEdges = nHorzEdges + nVertEdges; //horizontal edges and vertical edges
nVerts = nCols * nRows;
verts = new PlanarVertex[nVerts];
edges = new PlanarEdge[nEdges];
faces = new PlanarFace[nFaces];
//determine embedding for vertices
PlanarEdge *edgesCCW[4];
int i, j; //column and row counter
int v, e; //vertex and edge counter
for (j=0, v=0; j<nRows; j++) {
for (i=0; i<nCols; i++, v++) {
e = 0;
if (i<nCols-1)
edgesCCW[e++] = &edges[j*nHorzEdgesPerRow + i];
if (j>0)
edgesCCW[e++] = &edges[nHorzEdges + (j-1)*nVertEdgesPerRow + i];
if (i>0)
edgesCCW[e++] = &edges[j*nHorzEdgesPerRow + i - 1];
if (j<nRows-1)
edgesCCW[e++] = &edges[nHorzEdges + j*nVertEdgesPerRow + i];
verts[v].setEdgesCCW(edgesCCW, e);
}
}
}
CutGrid::~CutGrid() {
if (verts)
delete [] verts;
if (edges)
delete [] edges;
if (faces)
delete [] faces;
}
void CutGrid::setSource(int row, int col) {
if (row >= 0 && row < nRows &&
col >= 0 && col < nCols)
idxSource = row * nCols + col;
}
void CutGrid::setSink(int row, int col) {
if (row >= 0 && row < nRows &&
col >= 0 && col < nCols)
idxSink = row * nCols + col;
}
void CutGrid::getSource(int &row, int &col) {
row = idxSource / nCols;
col = idxSource % nCols;
}
void CutGrid::getSink(int &row, int &col) {
row = idxSink / nCols;
col = idxSink % nCols;
}
void CutGrid::setEdgeCostFunction(EdgeCostFunc edgeCostFunc) {
if (edgeCostFunc)
this->edgeCostFunc = edgeCostFunc;
else
this->edgeCostFunc = edgeCostNull;
}
double CutGrid::edgeCost(int row, int col, EDir dir) {
//this call is safe, since we made sure that edgeCostFunc is always non-null
return edgeCostFunc(row, col, dir);
}
double CutGrid::getMaxFlow() {
int i, j; //column and row counter
int e; //vertex and edge counter
//add horizontal edges
for (j=0, e=0; j<nRows; j++)
for (i=0; i<nHorzEdgesPerRow; i++, e++)
edges[e].setEdge(&verts[j*nCols + i],
&verts[j*nCols + i + 1],
&faces[(e-nFacesPerRow<0) ? (nFaces-1) : e-nFacesPerRow],
&faces[(e>nFaces-1) ? (nFaces-1) : e],
edgeCost(j, i, DIR_EAST),
edgeCost(j, i+1, DIR_WEST)
);
//add vertical edges
for (j=0, e=nHorzEdges; j<nRows-1; j++)
for (i=0; i<nVertEdgesPerRow; i++, e++)
edges[e].setEdge(&verts[j*nCols + i],
&verts[(j+1)*nCols + i],
&faces[(i>=nFacesPerRow) ? (nFaces-1) : (j*nFacesPerRow + i)],
&faces[(i==0) ? (nFaces-1) : (j*nFacesPerRow + i-1)],
edgeCost(j, i, DIR_SOUTH),
edgeCost(j+1, i, DIR_NORTH)
);
pc.initialize(nVerts, verts, nEdges, edges, nFaces, faces,
idxSource, idxSink, CutPlanar::CHECK_NONE);
return pc.getMaxFlow();
}
CutPlanar::ELabel CutGrid::getLabel(int row, int col) {
if ((row >= 0) && (row < nRows) &&
(col >= 0) && (col < nCols))
return pc.getLabel(row*nCols + col);
throw ExceptionUnexpectedError();
}
void CutGrid::getLabels(CutPlanar::ELabel *lmask) {
for (int row=0; row<nRows; row++) {
for (int col=0; col<nCols; col++) {
lmask[row*nCols + col] = pc.getLabel(row*nCols + col);
}
}
}
| 24.122066 | 78 | 0.550603 |
e267a48b8e237d9e45bb5b4214c264315dabdd82 | 1,771 | hpp | C++ | src/projects/error_correction/edit_distance.hpp | AntonBankevich/LJA | 979d7929bf0b39fd142ec6465dc0c17814465ef9 | [
"BSD-3-Clause"
] | 53 | 2021-10-10T22:16:27.000Z | 2022-03-23T06:21:06.000Z | src/projects/error_correction/edit_distance.hpp | AntonBankevich/LJA | 979d7929bf0b39fd142ec6465dc0c17814465ef9 | [
"BSD-3-Clause"
] | 20 | 2021-05-10T07:44:24.000Z | 2022-03-24T13:23:58.000Z | src/projects/error_correction/edit_distance.hpp | AntonBankevich/DR | 73450ad3b25f90a3c7747aaf17fe60d13d9692d3 | [
"BSD-3-Clause"
] | 6 | 2022-01-27T01:45:56.000Z | 2022-03-18T04:23:33.000Z | #pragma once
#include "sequences/sequence.hpp"
inline size_t edit_distance(Sequence s1, Sequence s2) {
size_t left_skip = 0;
while(left_skip < s1.size() && left_skip < s2.size() && s1[left_skip] == s2[left_skip]) {
left_skip++;
}
s1 = s1.Subseq(left_skip, s1.size());
s2 = s2.Subseq(left_skip, s2.size());
size_t right_skip = 0;
while(right_skip < s1.size() && right_skip < s2.size() && s1[s1.size() - 1 - right_skip] == s2[s2.size() - 1 - right_skip]) {
right_skip++;
}
s1 = s1.Subseq(0, s1.size() - right_skip);
s2 = s2.Subseq(0, s2.size() - right_skip);
std::vector<std::vector<size_t>> d(s1.size() + 1, std::vector<size_t>(s2.size() + 1));
d[0][0] = 0;
for(unsigned int i = 1; i <= s1.size(); ++i) d[i][0] = i;
for(unsigned int i = 1; i <= s2.size(); ++i) d[0][i] = i;
for(unsigned int i = 1; i <= s1.size(); ++i)
for(unsigned int j = 1; j <= s2.size(); ++j)
d[i][j] = std::min({ d[i - 1][j] + 1, d[i][j - 1] + 1, d[i - 1][j - 1] + (s1[i - 1] == s2[j - 1] ? 0 : 1) });
return d[s1.size()][s2.size()];
}
inline std::pair<size_t, size_t> bestPrefix(const Sequence &s1, const Sequence &s2) {
std::vector<size_t> prev(s2.size() + 1);
std::vector<size_t> cur(s2.size() + 1);
for(unsigned int j = 0; j <= s2.size(); ++j) cur[j] = j;
for(unsigned int i = 1; i <= s1.size(); ++i) {
std::swap(prev, cur);
cur[0] = i;
for(unsigned int j = 1; j <= s2.size(); ++j)
cur[j] = std::min({ prev[j] + 1, cur[j - 1] + 1, prev[j - 1] + (s1[i - 1] == s2[j - 1] ? 0 : 1) });
}
size_t res = s2.size();
for(size_t j = 0; j <= s2.size(); j++)
if(cur[j] < cur[res])
res = j;
return {res, cur[res]};
}
| 39.355556 | 129 | 0.508187 |
e268f822976e0bb32f98f0c35cab8c0813aef33c | 1,629 | cpp | C++ | src/vpp/bufferOps.cpp | nyorain/vpp | ccffafa0b59baa633df779274d7743f169d61c06 | [
"BSL-1.0"
] | 308 | 2016-02-23T11:59:20.000Z | 2022-03-14T18:40:24.000Z | src/vpp/bufferOps.cpp | nyorain/vpp | ccffafa0b59baa633df779274d7743f169d61c06 | [
"BSL-1.0"
] | 11 | 2017-01-21T17:33:13.000Z | 2020-08-17T10:33:42.000Z | src/vpp/bufferOps.cpp | nyorain/vpp | ccffafa0b59baa633df779274d7743f169d61c06 | [
"BSL-1.0"
] | 11 | 2016-02-23T10:35:08.000Z | 2021-12-18T16:15:39.000Z | // Copyright (c) 2016-2020 Jan Kelling
// Distributed under the Boost Software License, Version 1.0.
// See accompanying file LICENSE or copy at http://www.boost.org/LICENSE_1_0.txt
#include <vpp/bufferOps.hpp>
#include <vpp/queue.hpp>
#include <vpp/vk.hpp>
#include <dlg/dlg.hpp>
#include <cstring>
namespace vpp {
vpp::SubBuffer fillStaging(vk::CommandBuffer cb, const BufferSpan& span,
nytl::Span<const std::byte> data) {
dlg_assert(vk::DeviceSize(data.size()) <= span.size());
auto& dev = span.device();
vpp::SubBuffer stage = {dev.bufferAllocator(), vk::DeviceSize(data.size()),
vk::BufferUsageBits::transferSrc, dev.hostMemoryTypes()};
auto map = stage.memoryMap(0, data.size());
std::memcpy(map.ptr(), data.data(), data.size());
vk::BufferCopy copy;
copy.dstOffset = span.offset();
copy.srcOffset = stage.offset();
copy.size = data.size();
vk::cmdCopyBuffer(cb, stage.buffer(), span.buffer(), {{copy}});
return stage;
}
void fillDirect(vk::CommandBuffer cb, const BufferSpan& span,
nytl::Span<const std::byte> data) {
dlg_assert(vk::DeviceSize(data.size()) <= span.size());
vk::cmdUpdateBuffer(cb, span.buffer(), span.offset(), data.size(),
data.data());
}
vpp::SubBuffer readStaging(vk::CommandBuffer cb, const BufferSpan& src) {
auto& dev = src.device();
vpp::SubBuffer stage = {dev.bufferAllocator(), src.size(),
vk::BufferUsageBits::transferSrc, dev.hostMemoryTypes()};
vk::BufferCopy copy;
copy.dstOffset = stage.offset();
copy.srcOffset = src.offset();
copy.size = src.size();
vk::cmdCopyBuffer(cb, src.buffer(), stage.buffer(), {{copy}});
return stage;
}
} // namespace vpp
| 30.735849 | 80 | 0.698588 |
e26c8c4ebcd6d2f696a66d9958ef8a978cbcaa48 | 2,142 | hh | C++ | src/HomologyInference/BlockedProperty.hh | jsb/HomologyInference | a8b6f9ecad375072bd45e96e08c906c8332c3e4f | [
"MIT"
] | 3 | 2021-12-08T06:53:40.000Z | 2022-03-23T09:41:01.000Z | src/HomologyInference/BlockedProperty.hh | jsb/HomologyInference | a8b6f9ecad375072bd45e96e08c906c8332c3e4f | [
"MIT"
] | null | null | null | src/HomologyInference/BlockedProperty.hh | jsb/HomologyInference | a8b6f9ecad375072bd45e96e08c906c8332c3e4f | [
"MIT"
] | null | null | null | /*
* Author: Janis Born
*/
#pragma once
#include <HomologyInference/Types.hh>
#include <HomologyInference/Utils/ExternalProperty.hh>
#include <set>
namespace HomologyInference
{
using BlockedEdgeProperty = ExternalProperty<EH, bool>;
using BlockedVertexProperty = ExternalProperty<VH, bool>;
template<typename Mesh>
bool is_blocked(
const Mesh& _mesh,
const BlockedEdgeProperty& _blocked_ehs,
const EH _eh);
template<typename Mesh>
bool is_blocked(
const Mesh& _mesh,
const BlockedEdgeProperty& _blocked_ehs,
const HEH _heh);
template<typename Mesh>
bool is_blocked(
const Mesh& _mesh,
const BlockedEdgeProperty& _blocked_ehs,
const VH _vh);
template<typename Mesh>
bool is_blocked(
const Mesh& _mesh,
const BlockedVertexProperty& _blocked_vhs,
const VH _vh);
template<typename Mesh>
bool is_blocked(
const Mesh& _mesh,
const BlockedEdgeProperty& _blocked_ehs,
const BlockedVertexProperty& _blocked_vhs,
const VH _vh);
template<typename Mesh>
HEH sector_start(
const Mesh& _mesh,
const BlockedEdgeProperty& _blocked_ehs,
const HEH _sector_heh);
template<typename Mesh>
HEH sector_start(
const Mesh& _mesh,
const BlockedEdgeProperty& _blocked_ehs,
const VH _vh,
const FH _sector_fh);
template<typename Mesh>
std::set<FH> faces_in_sector(
const Mesh& _mesh,
const BlockedEdgeProperty& _blocked_ehs,
const HEH _sector_heh);
/// Returns cw-most outgoing halfedge in each sector.
/// Returns any halfedge if there are no sectors.
template<typename Mesh>
std::vector<SHEH> sectors(
const Mesh& _mesh,
const BlockedEdgeProperty& _blocked_ehs,
const VH _vh);
/// Returns cw-most outgoing halfedge in each sector of from-vertex.
/// Returns any halfedge if there are no sectors.
/// Starts enumeration at the provided halfedge.
template<typename Mesh>
std::vector<SHEH> sectors_starting_at(
const Mesh& _mesh,
const BlockedEdgeProperty& _blocked_ehs,
const HEH _heh_start);
}
| 25.2 | 68 | 0.699813 |
e270533db408dabd36a8b5ebc92b14c40b824c94 | 9,013 | cc | C++ | src/cpp/monitoring/stackdriver_client.cc | haifeng-jin/cloud | 78f4ebe1273dbd71bba8794b553caffee0a73f47 | [
"Apache-2.0"
] | 342 | 2020-02-10T18:55:31.000Z | 2022-03-01T04:30:12.000Z | src/cpp/monitoring/stackdriver_client.cc | haifeng-jin/cloud | 78f4ebe1273dbd71bba8794b553caffee0a73f47 | [
"Apache-2.0"
] | 179 | 2020-02-14T22:35:42.000Z | 2022-01-22T23:06:23.000Z | src/cpp/monitoring/stackdriver_client.cc | haifeng-jin/cloud | 78f4ebe1273dbd71bba8794b553caffee0a73f47 | [
"Apache-2.0"
] | 140 | 2020-02-10T19:11:50.000Z | 2022-02-23T13:04:44.000Z | /* Copyright 2020 Google LLC
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
==============================================================================*/
#include "monitoring/stackdriver_client.h"
#include "absl/strings/str_cat.h"
#include "absl/time/time.h"
#include "google/api/distribution.pb.h"
#include "google/api/label.pb.h"
#include "google/api/metric.pb.h"
#include "google/protobuf/timestamp.pb.h"
#include "grpcpp/grpcpp.h"
#include "tensorflow/core/distributed_runtime/rpc/grpc_util.h"
#include "tensorflow/core/platform/errors.h"
#include "tensorflow/core/platform/logging.h"
#include "tensorflow/core/platform/macros.h"
#include "tensorflow/core/platform/protobuf.h"
#include "tensorflow/core/util/env_var.h"
namespace tensorflow {
namespace monitoring {
namespace {
// Decide whether to enable StackdriverExporter
std::string GetStackdriverProjectIdFromEnv() {
std::string project_id;
TF_CHECK_OK(ReadStringFromEnvVar("TF_MONITORING_STACKDRIVER_PROJECT_ID",
/* default */ "", &project_id));
return project_id;
}
constexpr char kGoogleStackdriverStatsAddress[] = "monitoring.googleapis.com";
constexpr char kMetricTypePrefix[] = "custom.googleapis.com";
constexpr char kProjectNamePrefix[] = "projects/";
constexpr char kDefaultResourceType[] = "global";
std::unique_ptr<google::monitoring::v3::grpc::MetricService::StubInterface>
MakeMetricServiceStub() {
grpc::ChannelArguments args;
args.SetUserAgentPrefix("stackdriver_exporter");
// The credential file path is configured by environment variable
// GOOGLE_APPLICATION_CREDENTIALS
auto credential = ::grpc::GoogleDefaultCredentials();
auto channel = ::grpc::CreateCustomChannel(kGoogleStackdriverStatsAddress,
credential, args);
return google::monitoring::v3::grpc::MetricService::NewStub(channel);
}
void ConvertTimestamp(absl::Time ts, google::protobuf::Timestamp* proto) {
const int64 sec = absl::ToUnixSeconds(ts);
proto->set_seconds(sec);
proto->set_nanos((ts - absl::FromUnixSeconds(sec)) / absl::Nanoseconds(1));
}
void ConvertDistribution(const HistogramProto& tf_histogram,
google::api::Distribution* distribution) {
distribution->set_count(static_cast<int64>(tf_histogram.num()));
// Set mean and stddev
if (tf_histogram.num() != 0.0) {
distribution->set_mean(tf_histogram.sum() / tf_histogram.num());
distribution->set_sum_of_squared_deviation(
(tf_histogram.sum_squares() * tf_histogram.num() -
tf_histogram.sum() * tf_histogram.sum()) /
tf_histogram.num());
} else {
distribution->set_mean(0.0);
distribution->set_sum_of_squared_deviation(0.0);
}
// Set bucket limits. The last bucket limit from TF histogram shall be omitted
const auto num_buckets = tf_histogram.bucket_limit_size();
auto* output_bucket_limits =
distribution->mutable_bucket_options()->mutable_explicit_buckets();
for (int bucket_id = 0; bucket_id < num_buckets - 1; ++bucket_id) {
auto bucket_limit = tf_histogram.bucket_limit(bucket_id);
output_bucket_limits->add_bounds(bucket_limit);
}
// Set bucket counts.
for (const auto& bucket_count : tf_histogram.bucket()) {
distribution->add_bucket_counts(static_cast<int64>(bucket_count));
}
}
void ConvertPoint(const Point& tf_point,
google::monitoring::v3::Point* stackdriver_point) {
switch (tf_point.value_type) {
case ValueType::kInt64:
stackdriver_point->mutable_value()->set_int64_value(tf_point.int64_value);
break;
case ValueType::kString:
stackdriver_point->mutable_value()->set_string_value(
tf_point.string_value);
break;
case ValueType::kBool:
stackdriver_point->mutable_value()->set_bool_value(tf_point.bool_value);
break;
case ValueType::kHistogram:
ConvertDistribution(
tf_point.histogram_value,
stackdriver_point->mutable_value()->mutable_distribution_value());
break;
case ValueType::kPercentiles:
break;
}
ConvertTimestamp(absl::FromUnixMillis(tf_point.end_timestamp_millis),
stackdriver_point->mutable_interval()->mutable_end_time());
}
void ConvertPointSet(const PointSet& point_set,
google::monitoring::v3::TimeSeries* time_series) {
time_series->mutable_metric()->set_type(
absl::StrCat(kMetricTypePrefix, point_set.metric_name));
time_series->mutable_resource()->set_type(kDefaultResourceType);
// Only keeps the first point for prototype
if (!point_set.points.empty()) {
ConvertPoint(*point_set.points.front(), time_series->add_points());
}
}
void ConvertLabelDescriptor(const std::string& tf_label_name,
google::api::LabelDescriptor* stackdriver_label) {
stackdriver_label->set_key(tf_label_name);
stackdriver_label->set_value_type(google::api::LabelDescriptor::STRING);
stackdriver_label->set_description("");
}
google::api::MetricDescriptor::MetricKind ConvertMetricKind(
const MetricKind& tf_metric_kind) {
switch (tf_metric_kind) {
case MetricKind::kGauge:
return google::api::MetricDescriptor::GAUGE;
case MetricKind::kCumulative:
return google::api::MetricDescriptor::CUMULATIVE;
}
}
google::api::MetricDescriptor::ValueType ConvertValueType(
const ValueType& tf_value_type) {
switch (tf_value_type) {
case ValueType::kInt64:
return google::api::MetricDescriptor::INT64;
case ValueType::kHistogram:
TF_FALLTHROUGH_INTENDED;
case ValueType::kPercentiles:
return google::api::MetricDescriptor::DISTRIBUTION;
case ValueType::kString:
return google::api::MetricDescriptor::STRING;
case ValueType::kBool:
return google::api::MetricDescriptor::BOOL;
}
}
void ConvertMetricDescriptor(
const MetricDescriptor& tf_metric,
google::api::MetricDescriptor* stackdriver_metric) {
stackdriver_metric->set_name(tf_metric.name);
stackdriver_metric->set_type(absl::StrCat(kMetricTypePrefix, tf_metric.name));
stackdriver_metric->set_description(tf_metric.description);
stackdriver_metric->clear_labels();
for (const auto& tf_label_name : tf_metric.label_names) {
ConvertLabelDescriptor(tf_label_name, stackdriver_metric->add_labels());
}
stackdriver_metric->set_metric_kind(ConvertMetricKind(tf_metric.metric_kind));
stackdriver_metric->set_value_type(ConvertValueType(tf_metric.value_type));
}
} // namespace
StackdriverClient::StackdriverClient(
Options options,
std::unique_ptr<google::monitoring::v3::grpc::MetricService::StubInterface>
metric_service_stub)
: options_(std::move(options)),
metric_service_stub_(std::move(metric_service_stub)) {}
StackdriverClient::StackdriverClient(Options options)
: options_(std::move(options)),
metric_service_stub_(MakeMetricServiceStub()) {}
/* static */ StackdriverClient* StackdriverClient::Get() {
static StackdriverClient* client = []() {
StackdriverClient::Options options;
options.project_id = GetStackdriverProjectIdFromEnv();
return new StackdriverClient(std::move(options));
}();
return client;
}
grpc::Status StackdriverClient::CreateTimeSeries(
const std::map<string, std::unique_ptr<PointSet>>& point_set_map) const {
google::monitoring::v3::CreateTimeSeriesRequest request;
request.set_name(absl::StrCat(kProjectNamePrefix, options_.project_id));
for (const auto& kv : point_set_map) {
ConvertPointSet(*kv.second, request.add_time_series());
}
if (request.time_series().empty()) {
return grpc::Status(grpc::StatusCode::CANCELLED,
"CreateTimeSeriesRequest has no time series.");
}
grpc::ClientContext context;
google::protobuf::Empty response;
grpc::Status status =
metric_service_stub_->CreateTimeSeries(&context, request, &response);
return status;
}
grpc::Status StackdriverClient::CreateMetricDescriptor(
const MetricDescriptor& metric_descriptor) const {
google::monitoring::v3::CreateMetricDescriptorRequest request;
request.set_name(absl::StrCat(kProjectNamePrefix, options_.project_id));
ConvertMetricDescriptor(metric_descriptor,
request.mutable_metric_descriptor());
grpc::ClientContext context;
google::api::MetricDescriptor response;
grpc::Status status = metric_service_stub_->CreateMetricDescriptor(
&context, request, &response);
return status;
}
} // namespace monitoring
} // namespace tensorflow
| 36.787755 | 80 | 0.728281 |
e270f0db65b1608430b2b40a9805bc0d265eece6 | 328 | cpp | C++ | src/14000/14915.cpp14.cpp | upple/BOJ | e6dbf9fd17fa2b458c6a781d803123b14c18e6f1 | [
"MIT"
] | 8 | 2018-04-12T15:54:09.000Z | 2020-06-05T07:41:15.000Z | src/14000/14915.cpp14.cpp | upple/BOJ | e6dbf9fd17fa2b458c6a781d803123b14c18e6f1 | [
"MIT"
] | null | null | null | src/14000/14915.cpp14.cpp | upple/BOJ | e6dbf9fd17fa2b458c6a781d803123b14c18e6f1 | [
"MIT"
] | null | null | null | #include <iostream>
#include <string>
using namespace std;
char arr[] = { '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F' };
int main()
{
int m, n;
string ans, a;
cin >> m >> n;
while (m)
{
a = ans;
ans = arr[m%n];
ans += a;
m /= n;
}
if (ans == "")
ans = "0";
cout << ans;
} | 14.26087 | 96 | 0.411585 |
e272fcbb62054f78f2af6813e65dcb7281e8fbf1 | 6,488 | cc | C++ | src/lb_virtual_file_system.cc | snibug/gyp_example | 6bbf1ef53c68df4e5a657e0037cf6c81d2140178 | [
"Apache-2.0"
] | null | null | null | src/lb_virtual_file_system.cc | snibug/gyp_example | 6bbf1ef53c68df4e5a657e0037cf6c81d2140178 | [
"Apache-2.0"
] | null | null | null | src/lb_virtual_file_system.cc | snibug/gyp_example | 6bbf1ef53c68df4e5a657e0037cf6c81d2140178 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright 2014 Google Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include "lb_virtual_file_system.h"
#include "base/logging.h"
namespace {
// Update this any time the serialization format changes.
const char *kVersion = "SAV0";
}
// ---------------- LBVirtualFile Methods -------------------
LBVirtualFile::LBVirtualFile(const std::string &name) : size_(0) {
name_.assign(name);
}
int LBVirtualFile::Read(void *out, const size_t bytes, int offset) const {
DCHECK_GE(offset, 0);
if (offset > size_)
return 0;
size_t bytes_to_read = std::min(size_ - offset, bytes);
if (bytes_to_read == 0)
return 0;
memcpy(out, &buffer_[offset], bytes_to_read);
return bytes_to_read;
}
int LBVirtualFile::Write(const void *data, const size_t bytes,
const int offset) {
if (buffer_.size() < offset + bytes)
buffer_.resize(offset + bytes);
memcpy(&buffer_[offset], data, bytes);
size_ = std::max<int>(size_, offset + bytes);
return bytes;
}
int LBVirtualFile::Truncate(const size_t size) {
size_ = std::min(size_, size);
return size_;
}
int LBVirtualFile::Serialize(void *buffer, const bool dry_run) {
// TODO(wpwang): Use the pickle library to serialize.
// TODO(wpwang): Nice to have: add the ability to Serialize/Deserialize
// directly to/from a file, instead of an intermediate buffer.
serialize_position_ = 0;
// Save out filename length
size_t name_length = name_.length();
DCHECK_LT(name_length, MAX_VFS_PATHNAME);
WriteBuffer(buffer, &name_length, sizeof(size_t), dry_run);
// Save out the filename
WriteBuffer(buffer, name_.data(), name_length, dry_run);
// Save out the file contents size
WriteBuffer(buffer, &size_, sizeof(size_t), dry_run);
// Save out the file contents
WriteBuffer(buffer, &buffer_[0], size_, dry_run);
// Return the number of bytes written
return serialize_position_;
}
int LBVirtualFile::Deserialize(const void *buffer) {
serialize_position_ = 0;
// Read in filename length
size_t name_length;
ReadBuffer(&name_length, buffer, sizeof(size_t));
// Read in filename
char name[MAX_VFS_PATHNAME];
if (name_length >= sizeof(name)) {
DLOG(ERROR) << "Filename was longer than the maximum allowed.";
return -1;
}
ReadBuffer(name, buffer, name_length);
name_.assign(name, name_length);
// Read in file contents size
ReadBuffer(&size_, buffer, sizeof(size_t));
// Read in the file contents
buffer_.resize(size_);
ReadBuffer(&buffer_[0], buffer, size_);
// Return the number of bytes read
return serialize_position_;
}
void LBVirtualFile::WriteBuffer(void *buffer, const void *src, size_t size,
bool dry_run) {
if (!dry_run)
memcpy(reinterpret_cast<char*>(buffer) + serialize_position_, src, size);
serialize_position_ += size;
}
void LBVirtualFile::ReadBuffer(void *dst, const void *buffer, size_t size) {
memcpy(dst, reinterpret_cast<const char*>(buffer) + serialize_position_,
size);
serialize_position_ += size;
}
// ---------------- LBVirtualFileSystem Methods -------------------
LBVirtualFileSystem::LBVirtualFileSystem() { }
LBVirtualFileSystem::~LBVirtualFileSystem() {
for (FileTable::iterator itr = table_.begin(); itr != table_.end(); ++itr) {
delete itr->second;
}
}
LBVirtualFile* LBVirtualFileSystem::Open(std::string filename) {
LBVirtualFile *result = table_[filename];
if (!result) {
result = new LBVirtualFile(filename);
table_[filename] = result;
}
return result;
}
void LBVirtualFileSystem::Delete(std::string filename) {
if (table_.find(filename) != table_.end()) {
delete table_[filename];
table_.erase(filename);
}
}
int LBVirtualFileSystem::Serialize(char *buffer, const bool dry_run) {
char *original = buffer;
// We don't know the total size of the file yet, so defer writing the header.
buffer += sizeof(SerializedHeader);
// Serialize each file
for (FileTable::iterator itr = table_.begin(); itr != table_.end(); ++itr) {
int bytes = itr->second->Serialize(buffer, dry_run);
buffer += bytes;
}
if (!dry_run) {
// Now we can write the header to the beginning of the buffer.
SerializedHeader header;
header.version = GetVersion();
header.file_count = table_.size();
header.file_size = buffer - original;
memcpy(original, &header, sizeof(SerializedHeader));
}
return buffer - original;
}
void LBVirtualFileSystem::Deserialize(const char *buffer) {
// TODO(wpwang): Use the pickle library to serialize.
// Clear out any old files
for (FileTable::iterator itr = table_.begin(); itr != table_.end(); ++itr) {
delete itr->second;
}
table_.clear();
// Read in expected number of files
SerializedHeader header;
memcpy(&header, buffer, sizeof(SerializedHeader));
buffer += sizeof(SerializedHeader);
// Do some basic validation on the header data.
if (header.version != GetVersion()) {
DLOG(INFO) << "Attempted to load a different version; operation aborted.";
return;
}
if (header.file_size < sizeof(SerializedHeader)) {
DLOG(INFO) << "Possible data corruption detected; operation aborted.";
return;
}
for (int i = 0; i < header.file_count; i++) {
LBVirtualFile *file = new LBVirtualFile("");
int bytes = file->Deserialize(buffer);
if (bytes < 0) {
DLOG(ERROR) << "Failed to deserialize virtual file system.";
// Something went wrong; the data in the table is probably corrupt, so
// clear it out.
delete file;
for (FileTable::iterator itr = table_.begin(); itr != table_.end();
++itr) {
delete itr->second;
}
table_.clear();
break;
}
buffer += bytes;
table_[file->name_] = file;
}
}
unsigned int LBVirtualFileSystem::GetVersion() const {
DCHECK_EQ(strlen(kVersion), 4);
int version;
memcpy(&version, kVersion, sizeof(version));
return version;
}
| 28.835556 | 79 | 0.679408 |
e272fe434103717fe92a4b9f83d0e9a1808a036c | 3,775 | hpp | C++ | Engine/Core/Headers/Molten/Renderer/Vulkan/Utility/VulkanPhysicalDevice.hpp | jimmiebergmann/CurseEngine | 74a0502e36327f893c8e4f3e7cbe5b9d38fbe194 | [
"MIT"
] | 2 | 2019-11-11T21:17:14.000Z | 2019-11-11T22:07:26.000Z | Engine/Core/Headers/Molten/Renderer/Vulkan/Utility/VulkanPhysicalDevice.hpp | jimmiebergmann/CurseEngine | 74a0502e36327f893c8e4f3e7cbe5b9d38fbe194 | [
"MIT"
] | null | null | null | Engine/Core/Headers/Molten/Renderer/Vulkan/Utility/VulkanPhysicalDevice.hpp | jimmiebergmann/CurseEngine | 74a0502e36327f893c8e4f3e7cbe5b9d38fbe194 | [
"MIT"
] | 1 | 2020-04-05T03:50:57.000Z | 2020-04-05T03:50:57.000Z | /*
* MIT License
*
* Copyright (c) 2021 Jimmie Bergmann
*
* 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.
*
*/
#ifndef MOLTEN_CORE_RENDERER_VULKAN_UTILITY_VULKANPHYSICALDEVICE_HPP
#define MOLTEN_CORE_RENDERER_VULKAN_UTILITY_VULKANPHYSICALDEVICE_HPP
#if defined(MOLTEN_ENABLE_VULKAN)
#include "Molten/Renderer/Vulkan/Utility/VulkanResult.hpp"
#include "Molten/Renderer/Vulkan/Utility/VulkanPhysicalDeviceCapabilities.hpp"
#include "Molten/Renderer/Vulkan/Utility/VulkanDeviceQueues.hpp"
#include <vector>
#include <functional>
MOLTEN_UNSCOPED_ENUM_BEGIN
namespace Molten::Vulkan
{
class Instance;
class Surface;
/** Vulkan physical device.*/
class MOLTEN_API PhysicalDevice
{
public:
PhysicalDevice();
Result<> Create(
VkPhysicalDevice physicalDeviceHandle,
Surface& surface);
Result<> ReloadCapabilities();
bool IsCreated() const;
VkPhysicalDevice& GetHandle();
const VkPhysicalDevice& GetHandle() const;
PhysicalDeviceCapabilities& GetCapabilities();
const PhysicalDeviceCapabilities& GetCapabilities() const;
DeviceQueueIndices& GetDeviceQueueIndices();
const DeviceQueueIndices& GetDeviceQueueIndices() const;
Surface& GetSurface();
const Surface& GetSurface() const;
bool HasSurface() const;
private:
VkPhysicalDevice m_handle;
PhysicalDeviceCapabilities m_capabilities;
DeviceQueueIndices m_deviceQueueIndices;
Surface* m_surface;
};
using PhysicalDevices = std::vector<PhysicalDevice>;
/** Filter for fetching and creating physical devices. */
using PhysicalDeviceFilter = std::function<bool(const Vulkan::PhysicalDevice&)>;
using PhysicalDeviceFilters = std::vector<PhysicalDeviceFilter>;
/** Fetch and create physical devices from vulkan instance.
* Provide filters to ignore certain physical devices.
*/
MOLTEN_API Result<> FetchAndCreatePhysicalDevices(
PhysicalDevices& physicalDevices,
Instance& instance,
Surface& surface,
PhysicalDeviceFilters filters = {});
/** Filter for scoring physical devices. */
using ScoringCallback = std::function<int32_t(const PhysicalDevice&)>;
/** Score physical devices by iterating a list of physical devices and returns the device with highest score.
* Callback function should return a positive interger if the device is considered as suitable.
*
* @return true if any device with positive score is found, else false.
*/
MOLTEN_API bool ScorePhysicalDevices(
PhysicalDevice& winningPhysicalDevice,
const PhysicalDevices& physicalDevices,
const ScoringCallback& scoringCallback);
}
MOLTEN_UNSCOPED_ENUM_END
#endif
#endif | 31.458333 | 112 | 0.744901 |
e275637de301b64a1886d1e51acab893c87f0a60 | 10,161 | cpp | C++ | src/ResourcePack.cpp | japajoe/imgui | d3206dd86c1ce7ed9647193f1374704af70c53af | [
"MIT"
] | null | null | null | src/ResourcePack.cpp | japajoe/imgui | d3206dd86c1ce7ed9647193f1374704af70c53af | [
"MIT"
] | null | null | null | src/ResourcePack.cpp | japajoe/imgui | d3206dd86c1ce7ed9647193f1374704af70c53af | [
"MIT"
] | null | null | null | #include "ResourcePack.h"
#include <sys/stat.h>
#include <cstring>
#include <iostream>
bool FileExists(const std::string& filepath)
{
struct stat buffer;
return (stat(filepath.c_str(), &buffer) == 0);
}
long GetFileSize(const std::string& filepath)
{
struct stat stat_buf;
int rc = stat(filepath.c_str(), &stat_buf);
return rc == 0 ? stat_buf.st_size : -1;
}
ResourceBuffer::ResourceBuffer(std::ifstream& ifs, uint32_t offset, uint32_t size)
{
vMemory.resize(size);
ifs.seekg(offset);
ifs.read(vMemory.data(), vMemory.size());
setg(vMemory.data(), vMemory.data(), vMemory.data() + size);
}
ResourcePack::ResourcePack()
{
}
ResourcePack::~ResourcePack()
{
baseFile.close();
}
bool ResourcePack::AddFile(const std::string& sFile)
{
const std::string file = makeposix(sFile);
if (FileExists(file))
{
sResourceFile e;
e.nSize = (uint32_t)GetFileSize(file);
e.nOffset = 0; // Unknown at this stage
mapFiles[file] = e;
return true;
}
return false;
}
bool ResourcePack::LoadPack(const std::string& sFile, const std::string& sKey)
{
// Open the resource file
baseFile.open(sFile, std::ifstream::binary);
if (!baseFile.is_open()) return false;
// 1) Read Scrambled index
uint32_t nIndexSize = 0;
baseFile.read((char*)&nIndexSize, sizeof(uint32_t));
std::vector<char> buffer(nIndexSize);
for (uint32_t j = 0; j < nIndexSize; j++)
buffer[j] = baseFile.get();
std::vector<char> decoded = scramble(buffer, sKey);
size_t pos = 0;
auto read = [&decoded, &pos](char* dst, size_t size) {
memcpy((void*)dst, (const void*)(decoded.data() + pos), size);
pos += size;
};
auto get = [&read]() -> int { char c; read(&c, 1); return c; };
// 2) Read Map
uint32_t nMapEntries = 0;
read((char*)&nMapEntries, sizeof(uint32_t));
for (uint32_t i = 0; i < nMapEntries; i++)
{
uint32_t nFilePathSize = 0;
read((char*)&nFilePathSize, sizeof(uint32_t));
std::string sFileName(nFilePathSize, ' ');
for (uint32_t j = 0; j < nFilePathSize; j++)
sFileName[j] = get();
sResourceFile e;
read((char*)&e.nSize, sizeof(uint32_t));
read((char*)&e.nOffset, sizeof(uint32_t));
mapFiles[sFileName] = e;
}
// Don't close base file! we will provide a stream
// pointer when the file is requested
return true;
}
bool ResourcePack::SavePack(const std::string& sFile, const std::string& sKey)
{
// Create/Overwrite the resource file
std::ofstream ofs(sFile, std::ofstream::binary);
if (!ofs.is_open()) return false;
// Iterate through map
uint32_t nIndexSize = 0; // Unknown for now
ofs.write((char*)&nIndexSize, sizeof(uint32_t));
uint32_t nMapSize = uint32_t(mapFiles.size());
ofs.write((char*)&nMapSize, sizeof(uint32_t));
for (auto& e : mapFiles)
{
// Write the path of the file
size_t nPathSize = e.first.size();
ofs.write((char*)&nPathSize, sizeof(uint32_t));
ofs.write(e.first.c_str(), nPathSize);
// Write the file entry properties
ofs.write((char*)&e.second.nSize, sizeof(uint32_t));
ofs.write((char*)&e.second.nOffset, sizeof(uint32_t));
}
// 2) Write the individual Data
std::streampos offset = ofs.tellp();
nIndexSize = (uint32_t)offset;
for (auto& e : mapFiles)
{
// Store beginning of file offset within resource pack file
e.second.nOffset = (uint32_t)offset;
// Load the file to be added
std::vector<uint8_t> vBuffer(e.second.nSize);
std::ifstream i(e.first, std::ifstream::binary);
i.read((char*)vBuffer.data(), e.second.nSize);
i.close();
// Write the loaded file into resource pack file
ofs.write((char*)vBuffer.data(), e.second.nSize);
offset += e.second.nSize;
}
// 3) Scramble Index
std::vector<char> stream;
auto write = [&stream](const char* data, size_t size) {
size_t sizeNow = stream.size();
stream.resize(sizeNow + size);
memcpy(stream.data() + sizeNow, data, size);
};
// Iterate through map
write((char*)&nMapSize, sizeof(uint32_t));
for (auto& e : mapFiles)
{
// Write the path of the file
size_t nPathSize = e.first.size();
write((char*)&nPathSize, sizeof(uint32_t));
write(e.first.c_str(), nPathSize);
// Write the file entry properties
write((char*)&e.second.nSize, sizeof(uint32_t));
write((char*)&e.second.nOffset, sizeof(uint32_t));
}
std::vector<char> sIndexString = scramble(stream, sKey);
uint32_t nIndexStringLen = uint32_t(sIndexString.size());
// 4) Rewrite Map (it has been updated with offsets now)
// at start of file
ofs.seekp(0, std::ios::beg);
ofs.write((char*)&nIndexStringLen, sizeof(uint32_t));
ofs.write(sIndexString.data(), nIndexStringLen);
ofs.close();
return true;
}
ResourceBuffer* ResourcePack::GetFileBuffer(const std::string& sFile)
{
return new ResourceBuffer(baseFile, mapFiles[sFile].nOffset, mapFiles[sFile].nSize);
}
void ResourcePack::GetFileOffset(const std::string& sFile, uint32_t* offset, uint32_t* size)
{
*offset = mapFiles[sFile].nOffset;
*size = mapFiles[sFile].nSize;
}
bool ResourcePack::Loaded()
{
return baseFile.is_open();
}
std::vector<char> ResourcePack::scramble(const std::vector<char>& data, const std::string& key)
{
if (key.empty()) return data;
std::vector<char> o;
size_t c = 0;
for (auto s : data) o.push_back(s ^ key[(c++) % key.size()]);
return o;
};
std::string ResourcePack::makeposix(const std::string& path)
{
std::string o;
for (auto s : path) o += std::string(1, s == '\\' ? '/' : s);
return o;
};
std::vector<std::string> ResourcePack::ListFiles()
{
std::vector<std::string> listFiles;
if(Loaded())
{
for(auto &file : mapFiles)
{
listFiles.emplace_back(file.first);
}
}
return listFiles;
}
ResultCode ResourcePack::RemoveFile(const std::string &sFilename)
{
if(!Loaded())
{
return ResultCode::FAIL;
}
if(FileExistsInMap(sFilename))
{
mapFiles.erase(sFilename);
return ResultCode::OK;
}
return ResultCode::NO_FILE;
}
ResultCode ResourcePack::RenameFile(const std::string &src, const std::string &dest)
{
if(!Loaded())
{
return ResultCode::FAIL;
}
// if source exists and destination does not exist, let's move it
if(FileExistsInMap(src) && !FileExistsInMap(dest))
{
mapFiles[dest] = mapFiles[src];
mapFiles.erase(src);
return ResultCode::OK;
}
return ResultCode::NO_FILE;
}
bool ResourcePack::FileExistsInMap(const std::string& sFilename)
{
if(!Loaded())
{
return false;
}
for(auto &file : mapFiles)
{
if(file.first.compare(sFilename) == 0)
{
return true;
}
}
return false;
}
ResourcePack* ResourcePackCreate()
{
ResourcePack* pack = new ResourcePack();
return pack;
}
void ResourcePackDispose(ResourcePack* p)
{
if(p != nullptr)
{
delete p;
p = nullptr;
}
}
bool ResourcePackAddFile(ResourcePack* p, const char* sFile)
{
if(p != nullptr)
{
return p->AddFile(sFile);
}
return false;
}
bool ResourcePackLoadPack(ResourcePack* p, const char* sFile, const char* sKey)
{
if(p != nullptr)
{
return p->LoadPack(sFile, sKey);
}
return false;
}
bool ResourcePackSavePack(ResourcePack* p, const char* sFile, const char* sKey)
{
if(p != nullptr)
{
return p->SavePack(sFile, sKey);
}
return false;
}
bool ResourcePackIsLoaded(ResourcePack* p)
{
if(p != nullptr)
{
return p->Loaded();
}
return false;
}
char** ResourcePackListFiles(ResourcePack* p, int* numFiles)
{
if(p != nullptr)
{
auto files = p->ListFiles();
char** result = new char*[files.size()];
for(int i = 0; i < files.size(); ++i)
{
char* s_cstr = new char[files[i].size()+1];
strcpy(s_cstr, files[i].c_str());
result[i] = s_cstr;
}
*numFiles = static_cast<int>(files.size());
return result;
}
*numFiles = 0;
return nullptr;
}
void ResourcePackFreeStringArray(char** s, int numStrings)
{
if(s != nullptr)
{
for(int i = 0; i < numStrings; i++)
{
delete s[i];
}
delete[] s;
s = nullptr;
}
}
ResultCode ResourcePackRemoveFile(ResourcePack* p, const char* sFile)
{
if(p != nullptr)
{
return p->RemoveFile(sFile);
}
return ResultCode::FAIL;
}
ResultCode ResourcePackRenameFile(ResourcePack* p, const char* src, const char* dest)
{
if(p != nullptr)
{
return p->RenameFile(src, dest);
}
return ResultCode::FAIL;
}
bool ResourcePackFileExistsInMap(ResourcePack* p, const char* filename)
{
if(p != nullptr)
{
return p->FileExistsInMap(filename);
}
return false;
}
ResourceBuffer* ResourcePackFileBufferGet(ResourcePack* p, const char* sFile)
{
if(p != nullptr)
{
return p->GetFileBuffer(sFile);
}
return nullptr;
}
void ResourcePackFileGetOffset(ResourcePack* p, const char* sFile, uint32_t* offset, uint32_t* size)
{
if(p != nullptr)
{
p->GetFileOffset(sFile, offset, size);
}
}
void ResourcePackFileBufferDispose(ResourceBuffer* b)
{
if(b != nullptr)
{
delete b;
b = nullptr;
}
}
uint32_t ResourcePackFileBufferGetSize(ResourceBuffer* b)
{
if(b != nullptr)
{
uint32_t size = static_cast<uint32_t>(b->vMemory.size());
return size;
}
return 0;
}
char* ResourcePackFileBufferGetData(ResourceBuffer* b)
{
if(b != nullptr)
{
return b->vMemory.data();
}
return nullptr;
}
| 23.093182 | 100 | 0.599547 |
e275ff5046336033409b67fd70dbc06aea8ec7a1 | 822 | cpp | C++ | hwlib/demo/native/native-#0020-string/main.cpp | TheBlindMick/MPU6050 | 66880369fa7a73755846e60568137dfc07da1b5c | [
"BSL-1.0"
] | 46 | 2017-02-15T14:24:14.000Z | 2021-10-01T14:25:57.000Z | hwlib/demo/native/native-#0020-string/main.cpp | TheBlindMick/MPU6050 | 66880369fa7a73755846e60568137dfc07da1b5c | [
"BSL-1.0"
] | 27 | 2017-02-15T15:13:42.000Z | 2021-08-28T15:29:01.000Z | hwlib/demo/native/native-#0020-string/main.cpp | TheBlindMick/MPU6050 | 66880369fa7a73755846e60568137dfc07da1b5c | [
"BSL-1.0"
] | 39 | 2017-05-18T11:51:03.000Z | 2021-09-14T09:07:01.000Z | // ==========================================================================
//
// hwlib::string demo
//
// (c) Wouter van Ooijen (wouter@voti.nl) 2017
//
// 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)
//
// ==========================================================================
#include "hwlib.hpp"
#include <iostream>
int main( void ){
hwlib::string< 100 > t( "Hello brave new world!\n" );
t[ 3 ] = t[ 4 ];
std::cout << t;
constexpr auto x = hwlib::string<0>::range( "hello\n" );
std::cout << x;
//auto r = t.range_start_end( 2, 5 );
//hwlib::string< 100 > rr = r;
//std::cout << "[" << rr << "]\n";
//std::cout << "[" << t.range_start_length( 3, 9 ) << "]\n";
}
| 27.4 | 77 | 0.457421 |
e27a9e517fca9ca546376a68178b0fd26256f754 | 4,145 | cpp | C++ | lib/glimac/src/Controls.cpp | elisacia/World-Imaker | c168521c168336a4be7835a2adeee9cc7a672681 | [
"MIT"
] | null | null | null | lib/glimac/src/Controls.cpp | elisacia/World-Imaker | c168521c168336a4be7835a2adeee9cc7a672681 | [
"MIT"
] | null | null | null | lib/glimac/src/Controls.cpp | elisacia/World-Imaker | c168521c168336a4be7835a2adeee9cc7a672681 | [
"MIT"
] | null | null | null | #include <glimac/Controls.hpp>
namespace glimac {
const void moveCamera(const SDL_Event &e, FreeFlyCamera &camera)
{
switch(e.key.keysym.sym)
{
case SDLK_z:
camera.moveFront(1);
break;
case SDLK_s:
camera.moveFront(-1);
break;
case SDLK_q:
camera.moveLeft(1);
break;
case SDLK_d:
camera.moveLeft(-1);
break;
case SDLK_i:
camera.rotateUp(2);
break;
case SDLK_k:
camera.rotateUp(-2);
break;
case SDLK_j:
camera.rotateLeft(2);
break;
case SDLK_l:
camera.rotateLeft(-2);
break;
case SDLK_a:
camera.moveUp(1);
break;
case SDLK_e:
camera.moveUp(-1);
break;
}
}
const void moveCursor(const SDL_Event &e, Cursor &cursor)
{
if(e.type==SDL_KEYDOWN){
switch(e.key.keysym.scancode)
{
case SDL_SCANCODE_LEFT:
cursor.updatePosX(-1.0f);
break;
case SDL_SCANCODE_RIGHT:
cursor.updatePosX(1.0f);
break;
case SDL_SCANCODE_UP:
cursor.updatePosY(1.0f);
break;
case SDL_SCANCODE_DOWN:
cursor.updatePosY(-1.0f);
break;
}
switch(e.key.keysym.sym)
{
case SDLK_n:
cursor.updatePosZ(-1.0f);
break;
case SDLK_b:
cursor.updatePosZ(1.0f);
break;
}
}
}
void sculptCubes(SDL_Event &e, std::vector <Cube> &list_cubes, Cursor &cursor, glm::vec3 &cursorPos, const int volume, const int action, const float epsilon)
{
float index= cursorPos.z*volume+cursorPos.x+cursorPos.y*volume*volume;
float indexCol= cursorPos.z*volume+cursorPos.x;
//REMOVE
if ((e.type==SDL_KEYDOWN && e.key.keysym.sym==SDLK_w ) || action == 5){
list_cubes[index].removeCube();
}
if (action == 50){
float value;
for(Cube &c: list_cubes){
value = getRBF(FunctionType::Gaussian, c.getPosition(), cursorPos, epsilon);
if (value >= 0.5f ) c.removeCube();
}
}
//ADD
if ((e.type==SDL_KEYDOWN && e.key.keysym.sym==SDLK_x ) || action == 6){
list_cubes[index].addCube();
}
if (action == 60){
float value;
for(Cube &c: list_cubes){
value = getRBF(FunctionType::Gaussian, c.getPosition(), cursorPos, epsilon);
if (value >= 0.5f ) c.addCube();
}
}
//EXTRUDE
if ((e.type==SDL_KEYDOWN && e.key.keysym.sym==SDLK_c ) || action == 7){
while (list_cubes[indexCol].isVisible()==true){
indexCol = indexCol+(volume*volume);
}
list_cubes[indexCol].addCube();
}
//DIG
if ((e.type==SDL_KEYDOWN && e.key.keysym.sym==SDLK_v ) || action == 8){
while (list_cubes[indexCol+(volume*volume)].isVisible()==true){
indexCol = indexCol+(volume*volume);
}
list_cubes[indexCol].removeCube();
}
}
void paintCubes(std::vector <Cube> &list_cubes, Cursor &cursor, glm::vec3 &cursorPos, const int volume, const int action, const float epsilon)
{
float index= cursorPos.z*volume+cursorPos.x+cursorPos.y*volume*volume;
if (action%10 == 0){
// float epsilon=0.1f;
float value;
for(Cube &c: list_cubes){
value = getRBF(FunctionType::Gaussian, c.getPosition(), cursorPos, epsilon);
if (value >= 0.5f ) c.setType(action/10);
}
}
else list_cubes[index].setType(action);
}
void cleanScene(std::vector <Cube> &list_cubes, const int volume)
{
for(Cube &c: list_cubes){
c.removeCube();
c.setType(1);
}
}
void saveControl(const FilePath &applicationPath,std::string filename,std::vector <Cube> &list_cubes,const int action){
if(action== 12) saveFile(applicationPath,filename,list_cubes);
if(action== 13) loadFile(applicationPath,filename,list_cubes);
}
};
| 24.96988 | 157 | 0.55006 |
e27b3021b3d243450a0c23ecbe6fd92f225f1569 | 14,240 | cpp | C++ | Atomic/AtMimeReadWrite.cpp | denisbider/Atomic | 8e8e979a6ef24d217a77f17fa81a4129f3506952 | [
"MIT"
] | 4 | 2019-11-10T21:56:40.000Z | 2021-12-11T20:10:55.000Z | Atomic/AtMimeReadWrite.cpp | denisbider/Atomic | 8e8e979a6ef24d217a77f17fa81a4129f3506952 | [
"MIT"
] | null | null | null | Atomic/AtMimeReadWrite.cpp | denisbider/Atomic | 8e8e979a6ef24d217a77f17fa81a4129f3506952 | [
"MIT"
] | 1 | 2019-11-11T08:38:59.000Z | 2019-11-11T08:38:59.000Z | #include "AtIncludes.h"
#include "AtMimeReadWrite.h"
#include "AtImfReadWrite.h"
#include "AtMimeGrammar.h"
#include "AtMimeQuotedPrintable.h"
namespace At
{
namespace Mime
{
// FieldWithParams
void FieldWithParams::ReadParam(ParseNode const& paramNode, PinStore& store)
{
// Name
ParseNode const& nameTextNode = paramNode.FirstChild().DeepFindRef(id_token_text);
Seq name = nameTextNode.SrcText();
Seq value;
// Value
ParseNode const* valueQsNode = paramNode.LastChild().DeepFind(Imf::id_quoted_string);
if (valueQsNode != nullptr)
value = Imf::ReadQuotedString(*valueQsNode, store);
else
{
ParseNode const& valueTextNode = paramNode.LastChild().DeepFindRef(id_token_text);
value = valueTextNode.SrcText();
}
m_params.Add(name, value);
}
void FieldWithParams::WriteParams(MsgWriter& writer) const
{
if (m_params.Any())
{
Seq name, value;
bool first { true };
for (NameValuePair const& pair : m_params)
{
if (first)
first = false;
else
{
writer.Add(name);
writer.Add("=");
Imf::WriteQuotedString(writer, value, "; ");
}
name = pair.m_name;
value = pair.m_value;
}
writer.Add(name);
writer.Add("=");
Imf::WriteQuotedString(writer, value);
}
}
// ContentType
void ContentType::Read(ParseNode const& fieldNode, PinStore& store)
{
for (ParseNode const& c : fieldNode)
{
if (c.IsType(id_ct_type) ||
c.IsType(id_ct_subtype))
{
ParseNode const& tokenTextNode = c.DeepFindRef(id_token_text);
if (c.IsType(id_ct_type))
m_type = tokenTextNode.SrcText();
else
m_subType = tokenTextNode.SrcText();
}
else if (c.IsType(id_parameter))
ReadParam(c, store);
}
}
void ContentType::Write(MsgWriter& writer) const
{
writer.Add("Content-Type: ");
WriteContent(writer);
writer.Add("\r\n");
}
void ContentType::WriteContent(MsgWriter& writer) const
{
{
MsgSectionScope section { writer };
writer.Add(m_type).Add("/").Add(m_subType);
if (m_params.Any())
writer.Add("; ");
}
WriteParams(writer);
}
bool ContentType::IsSafeAsUntrustedInlineContent(Seq content) const
{
// To determine if a type is likely safe, we follow the MIME Sniffing Standard as implemented by browsers:
// https://mimesniff.spec.whatwg.org/#no-sniff-flag
// May want to expand this with other content types besides images (e.g. audio, video) if it becomes necessary.
// At the time of this writing, audio/video seems unlikely (and poor form) to be embedded in email, where this is currently used.
if (EqualType("image"))
{
if (m_subType.EqualInsensitive("bmp" )) { return content.StartsWithExact("BM"); }
if (m_subType.EqualInsensitive("gif" )) { return content.StartsWithExact("GIF87a") || content.StartsWithExact("GIF89a"); }
if (m_subType.EqualInsensitive("webp" )) { return content.StripPrefixExact("RIFF") && content.n>=10 && content.DropBytes(4).StartsWithExact("WEBPVP"); }
if (m_subType.EqualInsensitive("png" )) { return content.StartsWithExact("PNG\r\n\x1A\n"); }
if (m_subType.EqualInsensitive("jpeg" )) { return content.StartsWithExact("\xFF\xD8\xFF"); }
}
return false;
}
// ContentEnc
void ContentEnc::Read(ParseNode const& fieldNode, PinStore&)
{
ParseNode const& tokenTextNode = fieldNode.FlatFindRef(id_token_text);
m_value = tokenTextNode.SrcText();
}
void ContentEnc::Write(MsgWriter& writer) const
{
writer.Add("Content-Transfer-Encoding: ").Add(m_value).Add("\r\n");
}
// ContentId
void ContentId::Read(ParseNode const& fieldNode, PinStore&)
{
// Obsolete syntax allows for quoted strings and CFWS within msg-id,
// but this is troublesome to remove in-depth, and the benefits are unconvincing.
m_id = fieldNode.FlatFindRef(Imf::id_msg_id).SrcText();
}
void ContentId::Write(MsgWriter& writer) const
{
writer.Add("Content-ID: ");
MsgSectionScope { writer };
writer.Add("<").Add(m_id).Add(">\r\n");
}
// ContentDesc
void ContentDesc::Read(ParseNode const& fieldNode, PinStore&)
{
ParseNode const& unstructuredNode = fieldNode.FlatFindRef(Imf::id_unstructured);
m_desc = unstructuredNode.SrcText();
}
void ContentDesc::Write(MsgWriter& writer) const
{
writer.Add("Content-Description: ");
Imf::WriteUnstructured(writer, m_desc);
writer.Add("\r\n");
}
// ContentDisp
void ContentDisp::Read(ParseNode const& fieldNode, PinStore& store)
{
for (ParseNode const& c : fieldNode)
{
if (c.IsType(id_disposition_type))
{
ParseNode const& tokenTextNode = c.DeepFindRef(id_token_text);
m_type = tokenTextNode.SrcText();
}
else if (c.IsType(id_parameter))
ReadParam(c, store);
}
}
void ContentDisp::Write(MsgWriter& writer) const
{
writer.Add("Content-Disposition: ");
WriteContent(writer);
writer.Add("\r\n");
}
void ContentDisp::WriteContent(MsgWriter& writer) const
{
{
MsgSectionScope section { writer };
writer.Add(m_type);
if (m_params.Any())
writer.Add("; ");
}
WriteParams(writer);
}
// ExtensionField
void ExtensionField::Read(ParseNode const& fieldNode, PinStore&)
{
EnsureThrow(fieldNode.FirstChild().IsType(id_extension_field_name));
m_name = fieldNode.FirstChild().SrcText();
ParseNode const* valueNode = fieldNode.FlatFind(Imf::id_unstructured);
if (!valueNode)
m_value = Seq();
else
m_value = valueNode->SrcText();
}
void ExtensionField::Write(MsgWriter& writer) const
{
writer.Add(m_name).Add(": ");
Imf::WriteUnstructured(writer, m_value);
writer.Add("\r\n");
}
// MimeVersion
void MimeVersion::Read(ParseNode const& fieldNode, PinStore&)
{
ParseNode const& majorNode = fieldNode.FlatFindRef(id_version_major);
m_major = majorNode.SrcText().ReadNrUInt16Dec();
ParseNode const& minorNode = fieldNode.FlatFindRef(id_version_minor);
m_minor = minorNode.SrcText().ReadNrUInt16Dec();
}
void MimeVersion::Write(MsgWriter& writer) const
{
AuxStr version { writer };
version.ReserveAtLeast(10);
version.UInt(m_major).Ch('.').UInt(m_minor).Add("\r\n");
writer.Add("MIME-Version: ").Add(version);
}
// PartReadErr
void PartReadErr::EncObj(Enc& enc) const
{
enc.Add("MIME part ");
bool first {};
for (sizet n : m_errPartPath)
{
if (first) first = false; else enc.Ch('.');
enc.UInt(n);
}
enc.Add(": ").Add(m_errDesc);
}
// PartReadCx
void PartReadCx::EncObj(Enc& enc) const
{
for (PartReadErr const& err : m_errs)
enc.Obj(err).Add("\r\n");
}
// Part
void Part::EncLoc(Enc& e, Slice<sizet> loc)
{
e.Ch('/');
if (loc.Any())
{
while (true)
{
e.UInt(loc.First());
loc.PopFirst();
if (!loc.Any()) break;
e.Ch('/');
}
}
}
bool Part::ReadLoc(Vec<sizet>& loc, Seq& reader)
{
if (!reader.StripPrefixExact("/"))
return false;
if (reader.n)
{
do
{
uint c = reader.FirstByte();
if (UINT_MAX == c) return false;
if (!Ascii::IsDecDigit(c)) return false;
uint64 n = reader.ReadNrUInt64Dec();
if (UINT64_MAX == n) return false;
if (SIZE_MAX < n) return false;
loc.Add((sizet) n);
}
while (reader.StripPrefixExact("/"));
}
return true;
}
Part const* Part::GetPartByLoc(Slice<sizet> loc) const
{
Part const* p = this;
while (loc.Any())
{
sizet i = loc.First();
if (p->m_parts.Len() <= i)
return nullptr;
p = &(p->m_parts[i]);
loc.PopFirst();
}
return p;
}
bool Part::TryReadMimeField(ParseNode const& fieldNode, PinStore& store)
{
if (fieldNode.IsType(id_content_type)) { m_contentType .ReInit().Read(fieldNode, store); return true; }
if (fieldNode.IsType(id_content_enc)) { m_contentEnc .ReInit().Read(fieldNode, store); return true; }
if (fieldNode.IsType(id_content_id)) { m_contentId .ReInit().Read(fieldNode, store); return true; }
if (fieldNode.IsType(id_content_desc)) { m_contentDesc .ReInit().Read(fieldNode, store); return true; }
if (fieldNode.IsType(id_content_disp)) { m_contentDisp .ReInit().Read(fieldNode, store); return true; }
if (fieldNode.IsType(id_mime_version)) { m_mimeVersion .ReInit().Read(fieldNode, store); return true; }
if (fieldNode.IsType(id_extension_field)) { m_extensionFields .Add().Read(fieldNode, store); return true; }
return false;
}
void Part::WriteMimeFields(MsgWriter& writer) const
{
if (IsMultipart()) // Implies m_contentType.Any()
{
Seq boundary { m_contentType->m_params.Get("boundary") };
if (!boundary.n)
{
// RFC 2045: "A good strategy is to choose a boundary that includes a character
// sequence such as "=_" which can never appear in a quoted-printable body"
m_boundaryStorage.ReserveExact(2 + Token::Len);
m_boundaryStorage.Set("=_");
Token::Generate(m_boundaryStorage);
m_contentType->m_params.Add("boundary", m_boundaryStorage);
}
}
if (m_mimeVersion.Any()) m_mimeVersion->Write(writer);
if (m_contentType.Any()) m_contentType->Write(writer);
if (m_contentEnc .Any()) m_contentEnc ->Write(writer);
if (m_contentId .Any()) m_contentId ->Write(writer);
if (m_contentDesc.Any()) m_contentDesc->Write(writer);
if (m_contentDisp.Any()) m_contentDisp->Write(writer);
for (ExtensionField const& xf : m_extensionFields)
xf.Write(writer);
}
void Part::ReadPartHeader(ParseNode const& partHeaderNode, PinStore& store)
{
for (ParseNode const& fieldNode : partHeaderNode)
TryReadMimeField(fieldNode, store);
}
bool Part::ReadMultipartBody(Seq& encoded, PinStore& store, PartReadCx& prcx)
{
ParseTree pt { encoded };
if (prcx.m_verboseParseErrs)
pt.RecordBestToStack();
if (!pt.Parse(Mime::C_multipart_body))
return prcx.AddParseErr(pt);
prcx.m_curPartPath.Add(0U);
OnExit popPartPath = [&prcx] { prcx.m_curPartPath.PopLast(); };
for (ParseNode const& c : pt.Root().FlatFindRef(Mime::id_multipart_body))
if (c.IsType(Mime::id_body_part))
{
++prcx.m_curPartPath.Last();
if (!AddChildPart().ReadPart(c, store, prcx))
if (prcx.m_stopOnNestedErr)
return false;
}
return true;
}
void Part::WriteMultipartBody(MsgWriter& writer, Seq boundary) const
{
EnsureThrow(m_parts.Any());
for (Part const& part : m_parts)
{
// Part boundary
{
MsgSectionScope section { writer };
writer.Add("--").Add(boundary).Add("\r\n");
}
part.WritePart(writer);
}
// End boundary
{
MsgSectionScope section { writer };
writer.Add("--").Add(boundary).Add("--\r\n");
}
}
bool Part::ReadPart(ParseNode const& partNode, PinStore& store, PartReadCx& prcx)
{
m_srcText = partNode.SrcText();
for (ParseNode const& c : partNode)
if (c.IsType(Mime::id_part_header))
ReadPartHeader(c, store);
else if (c.IsType(Mime::id_part_content))
m_contentEncoded = c.SrcText();
if (IsMultipart())
{
if (prcx.m_curPartPath.Len() >= prcx.m_decodeDepth)
return prcx.AddDecodeDepthErr();
if (!ReadMultipartBody(m_contentEncoded, store, prcx))
return false;
}
return true;
}
void Part::WritePart(MsgWriter& writer) const
{
WriteMimeFields(writer);
writer.Add("\r\n");
if (!IsMultipart())
writer.AddVerbatim(m_contentEncoded).AddVerbatim("\r\n");
else
{
// If not set previously by caller, boundary is set in WriteMimeFields()
Seq boundary { m_contentType->m_params.Get("boundary") };
EnsureThrow(boundary.n);
WriteMultipartBody(writer, boundary);
}
}
bool Part::DecodeContent(Seq& decoded, PinStore& store) const
{
// Parts of type "multipart" must use an identity encoding ("7bit", "8bit" or "binary")
EnsureThrow(!IsMultipart());
if (!m_contentEnc.Any())
{ decoded = m_contentEncoded; return true; }
Seq encType = m_contentEnc->m_value;
if (encType.EqualInsensitive("7bit") ||
encType.EqualInsensitive("8bit") ||
encType.EqualInsensitive("binary"))
{ decoded = m_contentEncoded; return true; }
if (encType.EqualInsensitive("quoted-printable")) { decoded = DecodeContent_QP (store); return true; }
if (encType.EqualInsensitive("base64")) { decoded = DecodeContent_Base64 (store); return true; }
return false;
}
Seq Part::DecodeContent_QP(PinStore& store) const
{
Seq reader = m_contentEncoded;
Enc& enc = store.GetEnc(QuotedPrintableDecode_MaxLen(reader.n));
return QuotedPrintableDecode(reader, enc);
}
Seq Part::DecodeContent_Base64(PinStore& store) const
{
Seq reader = m_contentEncoded;
Enc& enc = store.GetEnc(Base64::DecodeMaxLen(reader.n));
return Base64::MimeDecode(reader, enc);
}
void Part::EncodeContent_Base64(Seq content, PinStore& store)
{
m_contentEnc.ReInit().m_value = "base64";
if (!content.n)
m_contentEncoded = Seq();
else
{
Base64::NewLines nl = Base64::NewLines::Mime();
Enc& enc = store.GetEnc(Base64::EncodeMaxOutLen(content.n, nl));
m_contentEncoded = Base64::MimeEncode(content, enc, Base64::Padding::Yes, nl);
}
}
void Part::EncodeContent_QP(Seq content, PinStore& store)
{
m_contentEnc.ReInit().m_value = "quoted-printable";
if (!content.n)
m_contentEncoded = Seq();
else
{
Enc& enc = store.GetEnc(QuotedPrintableEncode_MaxLen(content.n));
m_contentEncoded = QuotedPrintableEncode(content, enc);
}
}
}
}
| 25.293073 | 157 | 0.630969 |
e283e756b3c4851cbdfe690b435ffdf1fa24f275 | 5,504 | cpp | C++ | reporters/html_benchmark_reporter.cpp | Kristian-Popov/opencl-benchmark-and-fractals | b88fe08ea540c5743e9b590b160a995ead272a6e | [
"MIT"
] | null | null | null | reporters/html_benchmark_reporter.cpp | Kristian-Popov/opencl-benchmark-and-fractals | b88fe08ea540c5743e9b590b160a995ead272a6e | [
"MIT"
] | null | null | null | reporters/html_benchmark_reporter.cpp | Kristian-Popov/opencl-benchmark-and-fractals | b88fe08ea540c5743e9b590b160a995ead272a6e | [
"MIT"
] | null | null | null | #include "html_benchmark_reporter.h"
#include <chrono>
#include <unordered_map>
#include <algorithm>
#include <iterator>
#include "html_document.h"
#include "utils.h"
#include "devices/device_interface.h"
#include "devices/platform_interface.h"
#include "fixtures/fixture_id.h"
#include "indicators/duration_indicator.h"
const std::unordered_map<long double, std::string> HtmlBenchmarkReporter::avgDurationsUnits =
{
{ 1e-9, "nanoseconds" },
{ 1e-6, "microseconds" },
{ 1e-3, "milliseconds" },
{ 1, "seconds" },
{ 60, "minutes" },
{ 3600, "hours" }
};
const std::unordered_map<long double, std::string> HtmlBenchmarkReporter::durationPerElementUnits =
{
{1e-9, "nanoseconds/elem."},
{1e-6, "microseconds/elem."},
{1e-3, "milliseconds/elem."},
{1, "seconds/elem."},
{60, "minutes/elem."},
{3600, "hours/elem."}
};
const std::unordered_map<long double, std::string> HtmlBenchmarkReporter::elementsPerSecUnits =
{
{ 1, "elem./second" },
{ 1e+3, "thousands elem./second"},
{ 1e+6, "millions elem./second"},
{ 1e+9, "billions elem./second"}
};
HtmlBenchmarkReporter::HtmlBenchmarkReporter( const std::string& file_name )
: document_( std::make_shared<HtmlDocument>( file_name ) )
{}
void HtmlBenchmarkReporter::AddFixtureFamilyResults( const BenchmarkResultForFixtureFamily& results )
{
document_->AddHeader( results.fixture_family->name );
DurationIndicator duration_indicator( results );
std::vector<std::vector<HtmlDocument::CellDescription>> rows = {
{ // First row
HtmlDocument::CellDescription { "Platform name", true, 2 },
HtmlDocument::CellDescription { "Device name", true, 2 },
HtmlDocument::CellDescription{ "Algorithm", true, 2 },
},
{} // Second row
};
const std::vector<OperationStep>& steps = results.fixture_family->operation_steps;
int step_count = static_cast<int>( steps.size() ); // TODO make sure it fits
if( step_count > 1 )
{
step_count++; // Add a separate column for total duration
}
rows.at( 0 ).push_back( HtmlDocument::CellDescription { "Duration, seconds", true, 1, step_count } ); // TODO select unit
for( OperationStep step: steps )
{
rows.at( 1 ).push_back( OperationStepDescriptionRepository::Get( step ) );
}
if( step_count > 1 )
{
rows.at( 1 ).push_back( HtmlDocument::CellDescription{ "Total duration" } );
}
std::unordered_map<FixtureId, DurationIndicator::FixtureCalculatedData> data = duration_indicator.GetCalculatedData();
std::vector<FixtureId> ids;
std::transform( data.cbegin(), data.cend(), std::back_inserter( ids ),
[] ( const auto& p ) { return p.first; }
);
std::sort( ids.begin(), ids.end(), [] ( const FixtureId& lhs, const FixtureId& rhs ) {
{
std::string lhs_platform_name = std::shared_ptr<PlatformInterface>( lhs.device()->platform() )->Name();
std::string rhs_platform_name = std::shared_ptr<PlatformInterface>( rhs.device()->platform() )->Name();
if( lhs_platform_name < rhs_platform_name )
{
return true;
}
else if( rhs_platform_name < lhs_platform_name )
{
return false;
}
}
{
const std::string& lhs_device_name = lhs.device()->Name();
const std::string& rhs_device_name = rhs.device()->Name();
if( lhs_device_name < rhs_device_name )
{
return true;
}
else if( rhs_device_name < lhs_device_name )
{
return false;
}
}
{
if( lhs.algorithm() < rhs.algorithm() )
{
return true;
}
}
return false;
} );
for( FixtureId& id: ids )
{
const DurationIndicator::FixtureCalculatedData& measurements = data.at( id );
std::shared_ptr<PlatformInterface> platform{ id.device()->platform() };
EXCEPTION_ASSERT( platform->GetDevices().size() < std::numeric_limits<int>::max() );
int device_count = static_cast<int>( platform->GetDevices().size() );
std::vector<HtmlDocument::CellDescription> row = {
HtmlDocument::CellDescription{ platform->Name() },
HtmlDocument::CellDescription{ id.device()->Name() },
HtmlDocument::CellDescription{ id.algorithm() }
};
if( measurements.failure_reason )
{
row.push_back( HtmlDocument::CellDescription{ measurements.failure_reason.value(), false, 1, step_count } );
}
else
{
for( OperationStep step : steps )
{
double val{ 0.0 };
auto iter = measurements.step_durations.find( step );
if( iter != measurements.step_durations.end() )
{
val = iter->second.AsSeconds();
}
row.push_back( HtmlDocument::CellDescription { Utils::SerializeNumber( val ) } );
}
if( step_count > 1 )
{
row.push_back( HtmlDocument::CellDescription { Utils::SerializeNumber( measurements.total_duration.AsSeconds() ) } );
}
}
rows.push_back( row );
}
document_->AddTable( rows );
}
void HtmlBenchmarkReporter::Flush()
{
document_->BuildAndWriteToDisk();
}
| 33.560976 | 133 | 0.593932 |
e2857683f842c1b798db84e767486d2327318212 | 9,589 | cpp | C++ | src/qt/qtbase/src/plugins/platforms/winrt/qwinrttheme.cpp | chihlee/phantomjs | 644e0b3a6c9c16bcc6f7ce2c24274bf7d764f53c | [
"BSD-3-Clause"
] | null | null | null | src/qt/qtbase/src/plugins/platforms/winrt/qwinrttheme.cpp | chihlee/phantomjs | 644e0b3a6c9c16bcc6f7ce2c24274bf7d764f53c | [
"BSD-3-Clause"
] | null | null | null | src/qt/qtbase/src/plugins/platforms/winrt/qwinrttheme.cpp | chihlee/phantomjs | 644e0b3a6c9c16bcc6f7ce2c24274bf7d764f53c | [
"BSD-3-Clause"
] | null | null | null | /****************************************************************************
**
** Copyright (C) 2014 Digia Plc and/or its subsidiary(-ies).
** Contact: http://www.qt-project.org/legal
**
** This file is part of the plugins of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL21$
** Commercial License Usage
** Licensees holding valid commercial Qt licenses may use this file in
** accordance with the commercial license agreement provided with the
** Software or, alternatively, in accordance with the terms contained in
** a written agreement between you and Digia. For licensing terms and
** conditions see http://qt.digia.com/licensing. For further information
** use the contact form at http://qt.digia.com/contact-us.
**
** GNU Lesser General Public License Usage
** Alternatively, this file may be used under the terms of the GNU Lesser
** General Public License version 2.1 or version 3 as published by the Free
** Software Foundation and appearing in the file LICENSE.LGPLv21 and
** LICENSE.LGPLv3 included in the packaging of this file. Please review the
** following information to ensure the GNU Lesser General Public License
** requirements will be met: https://www.gnu.org/licenses/lgpl.html and
** http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
**
** In addition, as a special exception, Digia gives you certain additional
** rights. These rights are described in the Digia Qt LGPL Exception
** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
**
** $QT_END_LICENSE$
**
****************************************************************************/
#include "qwinrttheme.h"
#include "qwinrtmessagedialoghelper.h"
#include "qwinrtfiledialoghelper.h"
#include <QtCore/qfunctions_winrt.h>
#include <QtGui/QPalette>
#include <wrl.h>
#include <windows.ui.h>
#include <windows.ui.viewmanagement.h>
using namespace Microsoft::WRL;
using namespace ABI::Windows::UI;
using namespace ABI::Windows::UI::ViewManagement;
QT_BEGIN_NAMESPACE
static IUISettings *uiSettings()
{
static ComPtr<IUISettings> settings;
if (!settings) {
HRESULT hr;
hr = RoActivateInstance(Wrappers::HString::MakeReference(RuntimeClass_Windows_UI_ViewManagement_UISettings).Get(),
&settings);
Q_ASSERT_SUCCEEDED(hr);
}
return settings.Get();
}
class QWinRTThemePrivate
{
public:
QPalette palette;
};
static inline QColor fromColor(const Color &color)
{
return QColor(color.R, color.G, color.B, color.A);
}
QWinRTTheme::QWinRTTheme()
: d_ptr(new QWinRTThemePrivate)
{
Q_D(QWinRTTheme);
HRESULT hr;
Color color;
#ifdef Q_OS_WINPHONE
hr = uiSettings()->UIElementColor(UIElementType_PopupBackground, &color);
Q_ASSERT_SUCCEEDED(hr);
d->palette.setColor(QPalette::ToolTipBase, fromColor(color));
d->palette.setColor(QPalette::AlternateBase, fromColor(color));
hr = uiSettings()->UIElementColor(UIElementType_NonTextMedium, &color);
Q_ASSERT_SUCCEEDED(hr);
d->palette.setColor(QPalette::Button, fromColor(color));
hr = uiSettings()->UIElementColor(UIElementType_NonTextMediumHigh, &color);
Q_ASSERT_SUCCEEDED(hr);
d->palette.setColor(QPalette::Midlight, fromColor(color));
hr = uiSettings()->UIElementColor(UIElementType_NonTextHigh, &color);
Q_ASSERT_SUCCEEDED(hr);
d->palette.setColor(QPalette::Light, fromColor(color));
hr = uiSettings()->UIElementColor(UIElementType_NonTextMediumLow, &color);
Q_ASSERT_SUCCEEDED(hr);
d->palette.setColor(QPalette::Mid, fromColor(color));
hr = uiSettings()->UIElementColor(UIElementType_NonTextLow, &color);
Q_ASSERT_SUCCEEDED(hr);
d->palette.setColor(QPalette::Dark, fromColor(color));
hr = uiSettings()->UIElementColor(UIElementType_TextHigh, &color);
Q_ASSERT_SUCCEEDED(hr);
d->palette.setColor(QPalette::ButtonText, fromColor(color));
d->palette.setColor(QPalette::Text, fromColor(color));
d->palette.setColor(QPalette::WindowText, fromColor(color));
hr = uiSettings()->UIElementColor(UIElementType_TextMedium, &color);
Q_ASSERT_SUCCEEDED(hr);
d->palette.setColor(QPalette::ToolTipText, fromColor(color));
hr = uiSettings()->UIElementColor(UIElementType_AccentColor, &color);
Q_ASSERT_SUCCEEDED(hr);
d->palette.setColor(QPalette::Highlight, fromColor(color));
hr = uiSettings()->UIElementColor(UIElementType_PageBackground, &color);
Q_ASSERT_SUCCEEDED(hr);
d->palette.setColor(QPalette::Window, fromColor(color));
d->palette.setColor(QPalette::Base, fromColor(color));
hr = uiSettings()->UIElementColor(UIElementType_TextContrastWithHigh, &color);
Q_ASSERT_SUCCEEDED(hr);
d->palette.setColor(QPalette::BrightText, fromColor(color));
#else
hr = uiSettings()->UIElementColor(UIElementType_ActiveCaption, &color);
Q_ASSERT_SUCCEEDED(hr);
d->palette.setColor(QPalette::ToolTipBase, fromColor(color));
hr = uiSettings()->UIElementColor(UIElementType_Background, &color);
Q_ASSERT_SUCCEEDED(hr);
d->palette.setColor(QPalette::AlternateBase, fromColor(color));
hr = uiSettings()->UIElementColor(UIElementType_ButtonFace, &color);
Q_ASSERT_SUCCEEDED(hr);
d->palette.setColor(QPalette::Button, fromColor(color));
d->palette.setColor(QPalette::Midlight, fromColor(color).lighter(110));
d->palette.setColor(QPalette::Light, fromColor(color).lighter(150));
d->palette.setColor(QPalette::Mid, fromColor(color).dark(130));
d->palette.setColor(QPalette::Dark, fromColor(color).dark(150));
hr = uiSettings()->UIElementColor(UIElementType_ButtonText, &color);
Q_ASSERT_SUCCEEDED(hr);
d->palette.setColor(QPalette::ButtonText, fromColor(color));
d->palette.setColor(QPalette::Text, fromColor(color));
hr = uiSettings()->UIElementColor(UIElementType_CaptionText, &color);
Q_ASSERT_SUCCEEDED(hr);
d->palette.setColor(QPalette::ToolTipText, fromColor(color));
hr = uiSettings()->UIElementColor(UIElementType_Highlight, &color);
Q_ASSERT_SUCCEEDED(hr);
d->palette.setColor(QPalette::Highlight, fromColor(color));
hr = uiSettings()->UIElementColor(UIElementType_HighlightText, &color);
Q_ASSERT_SUCCEEDED(hr);
d->palette.setColor(QPalette::HighlightedText, fromColor(color));
hr = uiSettings()->UIElementColor(UIElementType_Window, &color);
Q_ASSERT_SUCCEEDED(hr);
d->palette.setColor(QPalette::Window, fromColor(color));
d->palette.setColor(QPalette::Base, fromColor(color));
hr = uiSettings()->UIElementColor(UIElementType_Hotlight, &color);
Q_ASSERT_SUCCEEDED(hr);
d->palette.setColor(QPalette::BrightText, fromColor(color));
#endif
}
bool QWinRTTheme::usePlatformNativeDialog(DialogType type) const
{
static bool useNativeDialogs = qEnvironmentVariableIsSet("QT_USE_WINRT_NATIVE_DIALOGS")
? qgetenv("QT_USE_WINRT_NATIVE_DIALOGS").toInt() : true;
if (type == FileDialog || type == MessageDialog)
return useNativeDialogs;
return false;
}
QPlatformDialogHelper *QWinRTTheme::createPlatformDialogHelper(DialogType type) const
{
switch (type) {
case FileDialog:
return new QWinRTFileDialogHelper;
case MessageDialog:
return new QWinRTMessageDialogHelper(this);
default:
break;
}
return QPlatformTheme::createPlatformDialogHelper(type);
}
QVariant QWinRTTheme::styleHint(QPlatformIntegration::StyleHint hint)
{
HRESULT hr;
switch (hint) {
case QPlatformIntegration::CursorFlashTime: {
quint32 blinkRate;
hr = uiSettings()->get_CaretBlinkRate(&blinkRate);
RETURN_IF_FAILED("Failed to get caret blink rate", return defaultThemeHint(CursorFlashTime));
return blinkRate;
}
case QPlatformIntegration::KeyboardInputInterval:
return defaultThemeHint(KeyboardInputInterval);
case QPlatformIntegration::MouseDoubleClickInterval: {
quint32 doubleClickTime;
hr = uiSettings()->get_DoubleClickTime(&doubleClickTime);
RETURN_IF_FAILED("Failed to get double click time", return defaultThemeHint(MouseDoubleClickInterval));
return doubleClickTime;
}
case QPlatformIntegration::StartDragDistance:
return defaultThemeHint(StartDragDistance);
case QPlatformIntegration::StartDragTime:
return defaultThemeHint(StartDragTime);
case QPlatformIntegration::KeyboardAutoRepeatRate:
return defaultThemeHint(KeyboardAutoRepeatRate);
case QPlatformIntegration::ShowIsFullScreen:
return true;
case QPlatformIntegration::PasswordMaskDelay:
return defaultThemeHint(PasswordMaskDelay);
case QPlatformIntegration::FontSmoothingGamma:
return qreal(1.7);
case QPlatformIntegration::StartDragVelocity:
return defaultThemeHint(StartDragVelocity);
case QPlatformIntegration::UseRtlExtensions:
return false;
case QPlatformIntegration::SynthesizeMouseFromTouchEvents:
return true;
case QPlatformIntegration::PasswordMaskCharacter:
return defaultThemeHint(PasswordMaskCharacter);
case QPlatformIntegration::SetFocusOnTouchRelease:
return false;
case QPlatformIntegration::ShowIsMaximized:
return false;
case QPlatformIntegration::MousePressAndHoldInterval:
return defaultThemeHint(MousePressAndHoldInterval);
default:
break;
}
return QVariant();
}
const QPalette *QWinRTTheme::palette(Palette type) const
{
Q_D(const QWinRTTheme);
if (type == SystemPalette)
return &d->palette;
return QPlatformTheme::palette(type);
}
QT_END_NAMESPACE
| 38.051587 | 122 | 0.724059 |
e2893983296a54d0a98e9fe11d5382e26457c54f | 3,731 | cpp | C++ | src/sequence.cpp | liangjin2007/smplxpp | 9a0d1cea136ea924628a9a031fa673fc9531dd85 | [
"Apache-2.0"
] | 73 | 2020-07-10T03:22:14.000Z | 2022-03-02T21:22:18.000Z | src/sequence.cpp | liangjin2007/smplxpp | 9a0d1cea136ea924628a9a031fa673fc9531dd85 | [
"Apache-2.0"
] | 4 | 2020-07-13T05:59:39.000Z | 2021-04-09T03:53:01.000Z | src/sequence.cpp | liangjin2007/smplxpp | 9a0d1cea136ea924628a9a031fa673fc9531dd85 | [
"Apache-2.0"
] | 16 | 2020-07-10T03:22:20.000Z | 2022-02-11T19:09:41.000Z | #include "smplx/sequence.hpp"
#include <fstream>
#include <iostream>
#include <cnpy.h>
#include "smplx/util.hpp"
#include "smplx/util_cnpy.hpp"
namespace smplx {
namespace {
using util::assert_shape;
} // namespace
// AMASS npz structure
// 'trans': (#frames, 3)
// 'gender': str
// 'mocap_framerate': float
// 'betas': (16) first 10 are from the usual SMPL
// 'dmpls': (#frames, 8) soft tissue
// 'poses': (#frames, 156) first 66 are SMPL joint parameters
// excluding hand.
// last 90 are MANO joint parameters, which
// correspond to last 90 joints in
// SMPL-X (NOT hand PCA)
//
template <class SequenceConfig>
Sequence<SequenceConfig>::Sequence(const std::string& path) {
if (path.size()) {
load(path);
} else {
n_frames = 0;
gender = Gender::neutral;
}
}
template <class SequenceConfig>
bool Sequence<SequenceConfig>::load(const std::string& path) {
if (!std::ifstream(path)) {
n_frames = 0;
gender = Gender::unknown;
std::cerr << "WARNING: Sequence '" << path
<< "' does not exist, loaded empty sequence\n";
return false;
}
// ** READ NPZ **
cnpy::npz_t npz = cnpy::npz_load(path);
if (npz.count("trans") != 1 || npz.count("poses") != 1 ||
npz.count("betas") != 1) {
n_frames = 0;
gender = Gender::unknown;
std::cerr << "WARNING: Sequence '" << path
<< "' is invalid, loaded empty sequence\n";
return false;
}
auto& trans_raw = npz["trans"];
assert_shape(trans_raw, {util::ANY_SHAPE, 3});
n_frames = trans_raw.shape[0];
trans = util::load_float_matrix(trans_raw, n_frames, 3);
auto& poses_raw = npz["poses"];
assert_shape(poses_raw, {n_frames, SequenceConfig::n_pose_params()});
pose = util::load_float_matrix(poses_raw, n_frames,
SequenceConfig::n_pose_params());
auto& shape_raw = npz["betas"];
assert_shape(shape_raw, {SequenceConfig::n_shape_params()});
shape =
util::load_float_matrix(poses_raw, SequenceConfig::n_shape_params(), 1);
if (SequenceConfig::n_dmpls() && npz.count("dmpls") == 1) {
auto& dmpls_raw = npz["dmpls"];
assert_shape(dmpls_raw, {n_frames, SequenceConfig::n_dmpls()});
dmpls = util::load_float_matrix(poses_raw, n_frames,
SequenceConfig::n_dmpls());
}
if (npz.count("gender")) {
char gender_spec = npz["gender"].data_holder[0];
gender =
gender_spec == 'f'
? Gender::female
: gender_spec == 'm'
? Gender::male
: gender_spec == 'n' ? Gender::neutral : Gender::unknown;
} else {
// Default to neutral
std::cerr << "WARNING: gender not present in '" << path
<< "', using neutral\n";
gender = Gender::neutral;
}
if (npz.count("mocap_framerate")) {
auto& mocap_frate_raw = npz["mocap_framerate"];
if (mocap_frate_raw.word_size == 8)
frame_rate = *mocap_frate_raw.data<double>();
else if (mocap_frate_raw.word_size == 4)
frame_rate = *mocap_frate_raw.data<float>();
} else {
// Reasonable default
std::cerr << "WARNING: mocap_framerate not present in '" << path
<< "', assuming 120 FPS\n";
frame_rate = 120.f;
}
return true;
}
// Instantiation
template class Sequence<sequence_config::AMASS>;
} // namespace smplx
| 33.017699 | 80 | 0.551327 |
e2897e5886fec358d757012ab5d190e56439589e | 6,020 | cpp | C++ | src/tools/ThreadGestion.cpp | etrange02/Fux | 2f49bcd8ec82eb521092c9162e01c8b0d00222ab | [
"CECILL-B"
] | 2 | 2016-03-21T10:48:34.000Z | 2017-03-17T19:50:34.000Z | src/tools/ThreadGestion.cpp | etrange02/Fux | 2f49bcd8ec82eb521092c9162e01c8b0d00222ab | [
"CECILL-B"
] | null | null | null | src/tools/ThreadGestion.cpp | etrange02/Fux | 2f49bcd8ec82eb521092c9162e01c8b0d00222ab | [
"CECILL-B"
] | null | null | null | /***************************************************************
* Name: ThreadGestion.cpp
* Purpose: Code for Fu(X) 2.0
* Author: David Lecoconnier (david.lecoconnier@free.fr)
* Created: 2010-05-07
* Copyright: David Lecoconnier (http://www.getfux.fr)
* License:
**************************************************************/
#include "../../include/tools/ThreadGestion.h"
/**
* @class ThreadFichierFichier
* @brief Thread faisant de la gestion de dossiers et fichiers
*/
static ThreadFichierFichier* s_instanceThreadFichier = NULL;
/**
* Constructeur
*/
ThreadFichierFichier::ThreadFichierFichier() : wxThread(wxTHREAD_JOINABLE)
{
m_estActif = false;
m_continue = false;
m_liste = new ArrayOfElementThreadFichier;
Create();
}
/**
* Destructeur
*/
ThreadFichierFichier::~ThreadFichierFichier()
{
ViderListe();
delete m_liste;
LogFileAppend(_T("ThreadFichierFichier::~ThreadFichierFichier"));
}
/**
* Ajoute à la liste de traitement les combinaisons d'éléments données en paramètre
* @param tableau un array contenant des chemins complets
* @param action l'action à effectuer (copie, déplacement, suppression)
* @param dest le répertoire de destination si besoin
*/
void ThreadFichierFichier::AjoutDonnee(wxArrayString *tableau, int action, wxString dest)
{
size_t max = tableau->GetCount();
for (size_t i=0; i<max; i++)
m_liste->Add(new ElementThreadFichier(tableau->Item(i), action, dest));
delete tableau;
/*if (IsPaused())
Resume();*/
}
/**
* Retourne l'instance de la classe
* @return l'instance
*/
ThreadFichierFichier* ThreadFichierFichier::Get()
{
if (!s_instanceThreadFichier)
s_instanceThreadFichier = new ThreadFichierFichier;
return s_instanceThreadFichier;
}
/**
* Retourne l'état du thread
* @return l'état
*/
bool ThreadFichierFichier::GetEtat()
{ return m_estActif;}
/**
* Stop le thread
*/
void ThreadFichierFichier::SetStop()
{ m_continue = false;}
/**
* Efface la liste des modifications non effectuées
*/
void ThreadFichierFichier::ViderListe()
{
m_liste->Clear();
}
/**
* Lance le traitement des dossiers et fichiers
*/
void* ThreadFichierFichier::Entry()
{
m_estActif = true;
m_continue = true;
ElementThreadFichier *element = NULL;
wxString chemin;
while (m_continue && !TestDestroy())
{
if (m_liste->IsEmpty())
Sleep(500);
else
{
element = m_liste->Item(0);
if (element->IsAction(COPIE))
{
chemin = element->GetDestination() + wxFileName::GetPathSeparator() + element->GetNom().AfterLast(wxFileName::GetPathSeparator());
if (wxFileExists(element->GetNom()))
wxCopyFile(element->GetNom(), chemin, false);
else if (wxDirExists(element->GetNom()))
{
DossierCopie(element->GetNom(), chemin);
FichierCopie(element->GetNom(), chemin);
}
}
else if (element->IsAction(DEPLACE))
{
chemin = element->GetDestination() + wxFileName::GetPathSeparator() + element->GetNom().AfterLast(wxFileName::GetPathSeparator());
if (wxFileExists(element->GetNom()))
wxRenameFile(element->GetNom(), chemin, false);
else if (wxDirExists(element->GetNom()))
{
DossierCopie(element->GetNom(), chemin);
FichierDeplace(element->GetNom(), chemin);
}
}
else if (element->IsAction(SUPPRIME))
{
if (wxFileExists(element->GetNom()))
wxRemoveFile(element->GetNom());
else if (wxDirExists(element->GetNom()))
FichierSuppression(element->GetNom());
}
element->~ElementThreadFichier();
m_liste->Remove(element);
}
}
m_estActif = false;
m_continue = false;
return NULL;
}
/**
* Supprime une arborescence de dossier. Le premier dossier est la racine. Les dossiers ne doivent contenir aucun fichier !
* @param dossier un array de nom de dossier dont le premier est la racine
* @see FichierSuppression
*/
void ThreadFichierFichier::DossierSuppression(wxArrayString &dossier)
{
size_t i = dossier.GetCount();
while(i>0)
{
wxRmdir(dossier[i-1]);
i--;
}
dossier.Empty();
}
/**
* Copie le contenu du dossier dep dans le répertoire dest. Les fichiers ne sont pas copiés.
* @param dep le dossier à copier
* @param dest le répertoire de destination
* @see FichierCopie
*/
void ThreadFichierFichier::DossierCopie(wxString dep, wxString dest)
{
wxDir dir(dep);
TraverserCopieDossier traverser(dest, dep);
dir.Traverse(traverser);
}
/**
* Supprime le répertoire chemin ainsi que les fichiers et dossiers se trouvant à l'intérieur
* @param chemin le répertoire à supprimer
*/
void ThreadFichierFichier::FichierSuppression(wxString chemin)
{
wxArrayString tableau;
wxDir dir(chemin);
// TraverserSupprimeFichier traverser(chemin, tableau);
// dir.Traverse(traverser);
DossierSuppression(tableau);
}
/**
* Copie les fichiers se trouvant dans l'arborescence dep dans le répertoire dest. Les dossiers doivent exister !
* @param dep le répertoire de départ
* @param dest le répertoire d'arrivée
*/
void ThreadFichierFichier::FichierCopie(wxString dep, wxString dest)
{
wxDir dir(dep);
TraverserCopieFichier traverser(dest, dep);
dir.Traverse(traverser);
}
/**
* Déplace le contenu de dep dans le répertoire dest
* @param dep le dossier de départ
* @param dest le dossier d'arrivée
*/
void ThreadFichierFichier::FichierDeplace(wxString dep, wxString dest)
{
wxArrayString tableau;
wxDir dir(dep);
TraverserDeplaceFichier traverser(dest, dep, tableau);
dir.Traverse(traverser);
DossierSuppression(tableau);
}
| 28 | 146 | 0.634219 |
e289a2a9b7a1347a9de65f3ad3194948f5550a39 | 4,782 | cpp | C++ | src2/freevariablesofterm.cpp | tamaskenez/forrestlang | 76b82803ac435f627ad52f9cfc12fe9c863a8495 | [
"MIT"
] | null | null | null | src2/freevariablesofterm.cpp | tamaskenez/forrestlang | 76b82803ac435f627ad52f9cfc12fe9c863a8495 | [
"MIT"
] | 1 | 2019-03-19T18:11:21.000Z | 2019-03-19T18:11:21.000Z | src2/freevariablesofterm.cpp | tamaskenez/somenewlanguage | 76b82803ac435f627ad52f9cfc12fe9c863a8495 | [
"MIT"
] | null | null | null | #include "freevariablesofterm.h"
#include "store.h"
namespace snl {
FreeVariables GetFreeVariablesCore(Store& store, TermPtr term)
{
using Tag = term::Tag;
const static FreeVariables empty_fvs;
switch (term->tag) {
case Tag::Abstraction: {
auto abstraction = term_cast<term::Abstraction>(term);
auto fvs = *GetFreeVariables(store, abstraction->body);
for (auto& p : abstraction->parameters) {
auto* fvs_expected_type = GetFreeVariables(store, p.expected_type);
fvs.insert(BE(*fvs_expected_type));
}
for (auto& p : abstraction->parameters) {
fvs.erase(p.variable);
}
for (auto it = abstraction->bound_variables.rbegin();
it != abstraction->bound_variables.rend(); ++it) {
fvs.erase(it->variable);
auto* fvs_of_value = GetFreeVariables(store, it->value);
fvs.insert(BE(*fvs_of_value));
}
fvs.erase(BE(abstraction->forall_variables));
return fvs;
}
case Tag::LetIns: {
auto let_ins = term_cast<term::Abstraction>(term);
auto fvs = *GetFreeVariables(store, let_ins->body);
for (auto it = let_ins->bound_variables.rbegin(); it != let_ins->bound_variables.rend();
++it) {
fvs.erase(it->variable);
auto* fvs_of_value = GetFreeVariables(store, it->value);
fvs.insert(BE(*fvs_of_value));
}
return fvs;
}
case Tag::Application: {
auto application = term_cast<term::Application>(term);
auto fvs = *GetFreeVariables(store, application->function);
for (auto& a : application->arguments) {
auto* fvs_argument = GetFreeVariables(store, a);
fvs.insert(BE(*fvs_argument));
}
return fvs;
}
case Tag::Variable:
return FreeVariables({term_cast<term::Variable>(term)});
case Tag::StringLiteral:
case Tag::NumericLiteral:
case Tag::UnitLikeValue:
case Tag::SimpleTypeTerm:
assert(false); // This should be caught in GetFreeVariables().
return empty_fvs;
case Tag::DeferredValue:
assert(false); // This should be put only into a Variable which is never dereferenced
// here.
return empty_fvs;
case Tag::ProductValue: {
auto product_value = term_cast<term::ProductValue>(term);
FreeVariables fvs;
for (auto& [selector, v] : product_value->values) {
auto* fvs_value = GetFreeVariables(store, v);
fvs.insert(BE(*fvs_value));
}
return fvs;
}
case Tag::FunctionType: {
auto function_type = term_cast<term::FunctionType>(term);
FreeVariables fvs;
for (auto p : function_type->parameter_types) {
auto* fvs_p = GetFreeVariables(store, p.type);
if (p.comptime_parameter) {
assert(function_type->forall_variables.count(*p.comptime_parameter) > 0);
}
fvs.insert(BE(*fvs_p));
}
auto* fvs_result_type = GetFreeVariables(store, function_type->result_type);
fvs.insert(BE(*fvs_result_type));
fvs.erase(BE(function_type->forall_variables));
return fvs;
}
case Tag::ProductType: {
auto product_type = term_cast<term::ProductType>(term);
FreeVariables fvs;
for (auto& [selector, type] : product_type->members) {
auto* fvs_m = GetFreeVariables(store, type);
fvs.insert(BE(*fvs_m));
}
return fvs;
}
}
}
FreeVariables const* GetFreeVariables(Store& store, TermPtr term)
{
using Tag = term::Tag;
switch (term->tag) {
case Tag::StringLiteral:
case Tag::NumericLiteral:
case Tag::SimpleTypeTerm:
const static FreeVariables empty_fv;
return &empty_fv;
case Tag::UnitLikeValue: {
auto* unit_like_value = term_cast<term::UnitLikeValue>(term);
return GetFreeVariables(store, unit_like_value->type);
}
default:
break;
}
auto it = store.free_variables_of_terms.find(term);
if (it == store.free_variables_of_terms.end()) {
it = store.free_variables_of_terms
.insert(make_pair(term, store.MakeCanonical(GetFreeVariablesCore(store, term))))
.first;
}
return it->second;
}
} // namespace snl
| 38.564516 | 100 | 0.557716 |
e28f417b66cf026be331d48c20c12478da28b11a | 5,015 | hpp | C++ | code/include/graphicPrimitives/FrameRenderable.hpp | Shutter-Island-Team/Shutter-island | c5e7c0b2c60c34055e64104dcbc396b9e1635f33 | [
"MIT"
] | 4 | 2016-06-24T09:22:18.000Z | 2019-06-13T13:50:53.000Z | code/include/graphicPrimitives/FrameRenderable.hpp | Shutter-Island-Team/Shutter-island | c5e7c0b2c60c34055e64104dcbc396b9e1635f33 | [
"MIT"
] | null | null | null | code/include/graphicPrimitives/FrameRenderable.hpp | Shutter-Island-Team/Shutter-island | c5e7c0b2c60c34055e64104dcbc396b9e1635f33 | [
"MIT"
] | 2 | 2016-06-10T12:46:17.000Z | 2018-10-14T06:37:21.000Z | #ifndef FRAME_RENDERABLE_HPP
#define FRAME_RENDERABLE_HPP
/**@file
* @brief Define a class to render the world frame.
*
* This file defines the class FrameRenderable to render the world frame.
*/
#include "../HierarchicalRenderable.hpp"
#include <vector>
#include <glm/glm.hpp>
/**@brief Render the world frame.
*
* This class is the first renderable you will use (see the Tutorial 03 of
* practical 01). It will render the world frame on the screen: a red line
* for the X axis, a green line for the Y axis and a blue line for the Z
* axis. Have a look at the source: we documented it to help you to understand
* the details.
*/
// A renderable must implement the Renderable interface, as such we make this
// class inherit publicly from Renderable.
class FrameRenderable : public HierarchicalRenderable
{
// Only the constructor and the destructor are meant to be called outside of
// the class. This is why they constitute the only public methods.
public :
/**@brief Destructor.
*
* Instance destructor.
*/
~FrameRenderable();
/**@brief Constructor.
*
* Create a new instance that will rendered thanks to the given shader program.
* @param shaderProgram The shader program to use to render this frame renderable.
*/
FrameRenderable(ShaderProgramPtr shaderProgram);
// Define the private section: member and functions only accessible to the class itself
private:
/**@brief Forbidden default constructor.
*
* By putting the default constructor in the private section, we make it
* forbidden (since it is private, no other class can call it). We do not
* need to provide an implementation as the compiler will never need it.*/
FrameRenderable();
/**@brief Draw this renderable.
*
* The implementation of the draw() interface of Renderable. This is where
* drawing commands are issued.
*/
void do_draw();
/**@brief Animate this renderable.
*
* The implementation of the animate( float time ) or Renderable. This does
* nothing as we do not need to animate it.
* @param time The current simulation time.
*/
void do_animate( float time );
/**@brief Initialize the vertex attributes of the frame.
*
* This function intializes the geometry and the color of the frame. We put
* it in its own method help you to understand what is done in the constructor.
*/
void initAttributes();
/**@brief Position attribute of the vertices.
*
* Store the position attribute of the vertices. Notice that all the instances,
* those positions would be the same. Thus, you could make this data member
* static: shared by all instances of the class. We decided to not make it
* static to help people that are new to c++.
*/
/**@brief Color attribute of the vertices.
*
* Store the color attribute of the vertices. Notice that all the instances,
* those colors would be the same. Thus, you could make this data member
* static: shared by all instances of the class. We decided to not make it
* static to help people that are new to c++.
*/
std::vector< glm::vec3 > m_positions;
std::vector< glm::vec4 > m_colors;
/**@brief Location of the position attribute buffer.
*
* Store the location (index) of the position attribute buffer on the shader
* program used to render the instance. If all instances are rendered by the
* same shader program, you could make this location static and set this
* location when the first instance is created. We decided to not make it
* static as it would be harder to understand and it is quite constraining:
* if you want to use more than shader program to render frame renderable
* instances, this will lead to bugs tricky to understand for beginners.
*/
unsigned int m_pBuffer;
/**@brief Location of the color attribute buffer.
*
* Store the location (index) of the color attribute buffer on the shader
* program used to render the instance. If all instances are rendered by the
* same shader program, you could make this location static and set this
* location when the first instance is created. We decided to not make it
* static as it would be harder to understand and it is quite constraining:
* if you want to use more than shader program to render frame renderable
* instances, this will lead to bugs tricky to understand for beginners.
*/
unsigned int m_cBuffer;
/* Note: We could store all the buffers at the same place.
*
* enum { POSITION_BUFFER, COLOR_BUFFER, NUMBER_OF_BUFFERS };
* unsigned int m_buffers[ NUMBER_OF_BUFFERS ];
*
* Then, when we generate those buffers:
* glGenBuffers( NUMBER_OF_BUFFERS, m_buffers );
*
* And at destruction:
* glDeleteBuffers( NUMBER_OF_BUFFERS, m_buffers );
*/
};
typedef std::shared_ptr<FrameRenderable> FrameRenderablePtr;
#endif
| 38.875969 | 87 | 0.698106 |
e28fd8c80824fcf123f24759e20ea374f33b9160 | 2,475 | cpp | C++ | src/OrbitGgp/AccountTest.cpp | tufeigunchu/orbit | 407354cf7c9159ff7e3177c603a6850b95509e3a | [
"BSD-2-Clause"
] | 1,847 | 2020-03-24T19:01:42.000Z | 2022-03-31T13:18:57.000Z | src/OrbitGgp/AccountTest.cpp | tufeigunchu/orbit | 407354cf7c9159ff7e3177c603a6850b95509e3a | [
"BSD-2-Clause"
] | 1,100 | 2020-03-24T19:41:13.000Z | 2022-03-31T14:27:09.000Z | src/OrbitGgp/AccountTest.cpp | tufeigunchu/orbit | 407354cf7c9159ff7e3177c603a6850b95509e3a | [
"BSD-2-Clause"
] | 228 | 2020-03-25T05:32:08.000Z | 2022-03-31T11:27:39.000Z | // Copyright (c) 2021 The Orbit 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 <gtest/gtest.h>
#include "OrbitGgp/Account.h"
#include "TestUtils/TestUtils.h"
namespace orbit_ggp {
using orbit_test_utils::HasError;
using orbit_test_utils::HasValue;
TEST(OrbitGgpProject, GetDefaultAccountFromJson) {
{ // invalid json
const auto json = QString("json").toUtf8();
EXPECT_THAT(Account::GetDefaultAccountFromJson(json), HasError("Unable to parse JSON"));
}
{ // empty array
const auto json = QString("[]").toUtf8();
EXPECT_THAT(Account::GetDefaultAccountFromJson(json),
HasError("Failed to find default ggp account."));
}
{ // not an object in array
const auto json = QString("[5]").toUtf8();
EXPECT_THAT(Account::GetDefaultAccountFromJson(json),
HasError("Unable to parse JSON: Object expected."));
}
{ // object does not contain default key
const auto json = QString("[{}]").toUtf8();
EXPECT_THAT(Account::GetDefaultAccountFromJson(json),
HasError("Unable to parse JSON: \"default\" key missing."));
}
{ // object does not contain account key
const auto json = QString(R"([{"default": "yes"}])").toUtf8();
EXPECT_THAT(Account::GetDefaultAccountFromJson(json),
HasError("Unable to parse JSON: \"account\" key missing."));
}
{ // object does not contain a default account
const auto json = QString(R"([{"default": "no", "account": "username@email.com"}])").toUtf8();
EXPECT_THAT(Account::GetDefaultAccountFromJson(json),
HasError("Failed to find default ggp account."));
}
{ // object does contain a default account
const auto json = QString(R"([{"default": "yes", "account": "username@email.com"}])").toUtf8();
const auto result = Account::GetDefaultAccountFromJson(json);
ASSERT_THAT(result, HasValue());
EXPECT_EQ(result.value().email, "username@email.com");
}
{ // object does contain mutliple accounts
const auto json =
QString(
R"([{"default": "no", "account": "wrongaccount@email.com"},{"default": "yes", "account": "username@email.com"}])")
.toUtf8();
const auto result = Account::GetDefaultAccountFromJson(json);
ASSERT_THAT(result, HasValue());
EXPECT_EQ(result.value().email, "username@email.com");
}
}
} // namespace orbit_ggp | 35.869565 | 126 | 0.65697 |
e2906deeb57926b5ab31789026acd88e800ddb5c | 206,623 | cpp | C++ | clients/cpp-restbed-server/generated/api/BlueOceanApi.cpp | cliffano/jenkins-api-clients-generator | 522d02b3a130a29471df5ec1d3d22c822b3d0813 | [
"MIT"
] | null | null | null | clients/cpp-restbed-server/generated/api/BlueOceanApi.cpp | cliffano/jenkins-api-clients-generator | 522d02b3a130a29471df5ec1d3d22c822b3d0813 | [
"MIT"
] | null | null | null | clients/cpp-restbed-server/generated/api/BlueOceanApi.cpp | cliffano/jenkins-api-clients-generator | 522d02b3a130a29471df5ec1d3d22c822b3d0813 | [
"MIT"
] | null | null | null | /**
* Swaggy Jenkins
* Jenkins API clients generated from Swagger / Open API specification
*
* The version of the OpenAPI document: 1.1.2-pre.0
* Contact: blah@cliffano.com
*
* NOTE: This class is auto generated by OpenAPI-Generator 5.4.0.
* https://openapi-generator.tech
* Do not edit the class manually.
*/
#include <corvusoft/restbed/byte.hpp>
#include <corvusoft/restbed/string.hpp>
#include <corvusoft/restbed/settings.hpp>
#include <corvusoft/restbed/request.hpp>
#include <corvusoft/restbed/uri.hpp>
#include <boost/property_tree/ptree.hpp>
#include <boost/property_tree/json_parser.hpp>
#include <boost/lexical_cast.hpp>
#include <boost/algorithm/string.hpp>
#include "BlueOceanApi.h"
namespace org {
namespace openapitools {
namespace server {
namespace api {
using namespace org::openapitools::server::model;
BlueOceanApiException::BlueOceanApiException(int status_code, std::string what)
: m_status(status_code),
m_what(what)
{
}
int BlueOceanApiException::getStatus() const
{
return m_status;
}
const char* BlueOceanApiException::what() const noexcept
{
return m_what.c_str();
}
template<class MODEL_T>
std::shared_ptr<MODEL_T> extractJsonModelBodyParam(const std::string& bodyContent)
{
std::stringstream sstream(bodyContent);
boost::property_tree::ptree pt;
boost::property_tree::json_parser::read_json(sstream, pt);
auto model = std::make_shared<MODEL_T>(pt);
return model;
}
template<class MODEL_T>
std::vector<std::shared_ptr<MODEL_T>> extractJsonArrayBodyParam(const std::string& bodyContent)
{
std::stringstream sstream(bodyContent);
boost::property_tree::ptree pt;
boost::property_tree::json_parser::read_json(sstream, pt);
auto arrayRet = std::vector<std::shared_ptr<MODEL_T>>();
for (const auto& child: pt) {
arrayRet.emplace_back(std::make_shared<MODEL_T>(child.second));
}
return arrayRet;
}
template <class KEY_T, class VAL_T>
std::string convertMapResponse(const std::map<KEY_T, VAL_T>& map)
{
boost::property_tree::ptree pt;
for(const auto &kv: map) {
pt.push_back(boost::property_tree::ptree::value_type(
boost::lexical_cast<std::string>(kv.first),
boost::property_tree::ptree(
boost::lexical_cast<std::string>(kv.second))));
}
std::stringstream sstream;
write_json(sstream, pt);
std::string result = sstream.str();
return result;
}
BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineQueueQueueResource::BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineQueueQueueResource(const std::string& context /* = "" */)
{
this->set_path(context + "/blue/rest/organizations/{organization: .*}/pipelines/{pipeline: .*}/queue/{queue: .*}/");
this->set_method_handler("DELETE",
std::bind(&BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineQueueQueueResource::handler_DELETE_internal, this,
std::placeholders::_1));
}
BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineQueueQueueResource::~BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineQueueQueueResource()
{
}
std::pair<int, std::string> BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineQueueQueueResource::handleBlueOceanApiException(const BlueOceanApiException& e)
{
return std::make_pair<int, std::string>(e.getStatus(), e.what());
}
std::pair<int, std::string> BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineQueueQueueResource::handleStdException(const std::exception& e)
{
return std::make_pair<int, std::string>(500, e.what());
}
std::pair<int, std::string> BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineQueueQueueResource::handleUnspecifiedException()
{
return std::make_pair<int, std::string>(500, "Unknown exception occurred");
}
void BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineQueueQueueResource::setResponseHeader(const std::shared_ptr<restbed::Session>& session, const std::string& header)
{
session->set_header(header, "");
}
void BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineQueueQueueResource::returnResponse(const std::shared_ptr<restbed::Session>& session, const int status, const std::string& result, const std::string& contentType)
{
session->close(status, result, { {"Connection", "close"}, {"Content-Type", contentType} });
}
void BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineQueueQueueResource::defaultSessionClose(const std::shared_ptr<restbed::Session>& session, const int status, const std::string& result)
{
session->close(status, result, { {"Connection", "close"} });
}
void BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineQueueQueueResource::handler_DELETE_internal(const std::shared_ptr<restbed::Session> session)
{
const auto request = session->get_request();
// Getting the path params
const std::string organization = getPathParam_organization(request);
const std::string pipeline = getPathParam_pipeline(request);
const std::string queue = getPathParam_queue(request);
int status_code = 500;
std::string result = "";
try {
status_code =
handler_DELETE(organization, pipeline, queue);
}
catch(const BlueOceanApiException& e) {
std::tie(status_code, result) = handleBlueOceanApiException(e);
}
catch(const std::exception& e) {
std::tie(status_code, result) = handleStdException(e);
}
catch(...) {
std::tie(status_code, result) = handleUnspecifiedException();
}
if (status_code == 200) {
const constexpr auto contentType = "text/plain";
returnResponse(session, 200, result.empty() ? "Successfully deleted queue item" : result, contentType);
return;
}
if (status_code == 401) {
const constexpr auto contentType = "text/plain";
returnResponse(session, 401, result.empty() ? "Authentication failed - incorrect username and/or password" : result, contentType);
return;
}
if (status_code == 403) {
const constexpr auto contentType = "text/plain";
returnResponse(session, 403, result.empty() ? "Jenkins requires authentication - please set username and password" : result, contentType);
return;
}
defaultSessionClose(session, status_code, result);
}
int BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineQueueQueueResource::handler_DELETE(
std::string const & organization, std::string const & pipeline, std::string const & queue)
{
throw BlueOceanApiException(501, "Not implemented");
}
std::string BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineQueueQueueResource::extractBodyContent(const std::shared_ptr<restbed::Session>& session) {
const auto request = session->get_request();
int content_length = request->get_header("Content-Length", 0);
std::string bodyContent;
session->fetch(content_length,
[&bodyContent](const std::shared_ptr<restbed::Session> session,
const restbed::Bytes &body) {
bodyContent = restbed::String::format(
"%.*s\n", (int)body.size(), body.data());
});
return bodyContent;
}
BlueOceanApiBlueRestOrganizationsOrganizationUserResource::BlueOceanApiBlueRestOrganizationsOrganizationUserResource(const std::string& context /* = "" */)
{
this->set_path(context + "/blue/rest/organizations/{organization: .*}/user//");
this->set_method_handler("GET",
std::bind(&BlueOceanApiBlueRestOrganizationsOrganizationUserResource::handler_GET_internal, this,
std::placeholders::_1));
}
BlueOceanApiBlueRestOrganizationsOrganizationUserResource::~BlueOceanApiBlueRestOrganizationsOrganizationUserResource()
{
}
std::pair<int, std::string> BlueOceanApiBlueRestOrganizationsOrganizationUserResource::handleBlueOceanApiException(const BlueOceanApiException& e)
{
return std::make_pair<int, std::string>(e.getStatus(), e.what());
}
std::pair<int, std::string> BlueOceanApiBlueRestOrganizationsOrganizationUserResource::handleStdException(const std::exception& e)
{
return std::make_pair<int, std::string>(500, e.what());
}
std::pair<int, std::string> BlueOceanApiBlueRestOrganizationsOrganizationUserResource::handleUnspecifiedException()
{
return std::make_pair<int, std::string>(500, "Unknown exception occurred");
}
void BlueOceanApiBlueRestOrganizationsOrganizationUserResource::setResponseHeader(const std::shared_ptr<restbed::Session>& session, const std::string& header)
{
session->set_header(header, "");
}
void BlueOceanApiBlueRestOrganizationsOrganizationUserResource::returnResponse(const std::shared_ptr<restbed::Session>& session, const int status, const std::string& result, const std::string& contentType)
{
session->close(status, result, { {"Connection", "close"}, {"Content-Type", contentType} });
}
void BlueOceanApiBlueRestOrganizationsOrganizationUserResource::defaultSessionClose(const std::shared_ptr<restbed::Session>& session, const int status, const std::string& result)
{
session->close(status, result, { {"Connection", "close"} });
}
void BlueOceanApiBlueRestOrganizationsOrganizationUserResource::handler_GET_internal(const std::shared_ptr<restbed::Session> session)
{
const auto request = session->get_request();
// Getting the path params
const std::string organization = getPathParam_organization(request);
int status_code = 500;
std::shared_ptr<User> resultObject = std::make_shared<User>();
std::string result = "";
try {
std::tie(status_code, resultObject) =
handler_GET(organization);
}
catch(const BlueOceanApiException& e) {
std::tie(status_code, result) = handleBlueOceanApiException(e);
}
catch(const std::exception& e) {
std::tie(status_code, result) = handleStdException(e);
}
catch(...) {
std::tie(status_code, result) = handleUnspecifiedException();
}
if (status_code == 200) {
result = resultObject->toJsonString();
const constexpr auto contentType = "application/json";
returnResponse(session, 200, result.empty() ? "Successfully retrieved authenticated user details" : result, contentType);
return;
}
if (status_code == 401) {
const constexpr auto contentType = "text/plain";
returnResponse(session, 401, result.empty() ? "Authentication failed - incorrect username and/or password" : result, contentType);
return;
}
if (status_code == 403) {
const constexpr auto contentType = "text/plain";
returnResponse(session, 403, result.empty() ? "Jenkins requires authentication - please set username and password" : result, contentType);
return;
}
defaultSessionClose(session, status_code, result);
}
std::pair<int, std::shared_ptr<User>> BlueOceanApiBlueRestOrganizationsOrganizationUserResource::handler_GET(
std::string const & organization)
{
throw BlueOceanApiException(501, "Not implemented");
}
std::string BlueOceanApiBlueRestOrganizationsOrganizationUserResource::extractBodyContent(const std::shared_ptr<restbed::Session>& session) {
const auto request = session->get_request();
int content_length = request->get_header("Content-Length", 0);
std::string bodyContent;
session->fetch(content_length,
[&bodyContent](const std::shared_ptr<restbed::Session> session,
const restbed::Bytes &body) {
bodyContent = restbed::String::format(
"%.*s\n", (int)body.size(), body.data());
});
return bodyContent;
}
BlueOceanApiBlueRestClassesClassResource::BlueOceanApiBlueRestClassesClassResource(const std::string& context /* = "" */)
{
this->set_path(context + "/blue/rest/classes/{class: .*}/");
this->set_method_handler("GET",
std::bind(&BlueOceanApiBlueRestClassesClassResource::handler_GET_internal, this,
std::placeholders::_1));
}
BlueOceanApiBlueRestClassesClassResource::~BlueOceanApiBlueRestClassesClassResource()
{
}
std::pair<int, std::string> BlueOceanApiBlueRestClassesClassResource::handleBlueOceanApiException(const BlueOceanApiException& e)
{
return std::make_pair<int, std::string>(e.getStatus(), e.what());
}
std::pair<int, std::string> BlueOceanApiBlueRestClassesClassResource::handleStdException(const std::exception& e)
{
return std::make_pair<int, std::string>(500, e.what());
}
std::pair<int, std::string> BlueOceanApiBlueRestClassesClassResource::handleUnspecifiedException()
{
return std::make_pair<int, std::string>(500, "Unknown exception occurred");
}
void BlueOceanApiBlueRestClassesClassResource::setResponseHeader(const std::shared_ptr<restbed::Session>& session, const std::string& header)
{
session->set_header(header, "");
}
void BlueOceanApiBlueRestClassesClassResource::returnResponse(const std::shared_ptr<restbed::Session>& session, const int status, const std::string& result, const std::string& contentType)
{
session->close(status, result, { {"Connection", "close"}, {"Content-Type", contentType} });
}
void BlueOceanApiBlueRestClassesClassResource::defaultSessionClose(const std::shared_ptr<restbed::Session>& session, const int status, const std::string& result)
{
session->close(status, result, { {"Connection", "close"} });
}
void BlueOceanApiBlueRestClassesClassResource::handler_GET_internal(const std::shared_ptr<restbed::Session> session)
{
const auto request = session->get_request();
// Getting the path params
const std::string r_class = getPathParam_r_class(request);
int status_code = 500;
std::string resultObject = "";
std::string result = "";
try {
std::tie(status_code, resultObject) =
handler_GET(r_class);
}
catch(const BlueOceanApiException& e) {
std::tie(status_code, result) = handleBlueOceanApiException(e);
}
catch(const std::exception& e) {
std::tie(status_code, result) = handleStdException(e);
}
catch(...) {
std::tie(status_code, result) = handleUnspecifiedException();
}
if (status_code == 200) {
result = resultObject;
const constexpr auto contentType = "application/json";
returnResponse(session, 200, result.empty() ? "Successfully retrieved class names" : result, contentType);
return;
}
if (status_code == 401) {
const constexpr auto contentType = "text/plain";
returnResponse(session, 401, result.empty() ? "Authentication failed - incorrect username and/or password" : result, contentType);
return;
}
if (status_code == 403) {
const constexpr auto contentType = "text/plain";
returnResponse(session, 403, result.empty() ? "Jenkins requires authentication - please set username and password" : result, contentType);
return;
}
defaultSessionClose(session, status_code, result);
}
std::pair<int, std::string> BlueOceanApiBlueRestClassesClassResource::handler_GET(
std::string const & r_class)
{
throw BlueOceanApiException(501, "Not implemented");
}
std::string BlueOceanApiBlueRestClassesClassResource::extractBodyContent(const std::shared_ptr<restbed::Session>& session) {
const auto request = session->get_request();
int content_length = request->get_header("Content-Length", 0);
std::string bodyContent;
session->fetch(content_length,
[&bodyContent](const std::shared_ptr<restbed::Session> session,
const restbed::Bytes &body) {
bodyContent = restbed::String::format(
"%.*s\n", (int)body.size(), body.data());
});
return bodyContent;
}
BlueOceanApiJwt-authJwksKeyResource::BlueOceanApiJwt-authJwksKeyResource(const std::string& context /* = "" */)
{
this->set_path(context + "/jwt-auth/jwks/{key: .*}/");
this->set_method_handler("GET",
std::bind(&BlueOceanApiJwt-authJwksKeyResource::handler_GET_internal, this,
std::placeholders::_1));
}
BlueOceanApiJwt-authJwksKeyResource::~BlueOceanApiJwt-authJwksKeyResource()
{
}
std::pair<int, std::string> BlueOceanApiJwt-authJwksKeyResource::handleBlueOceanApiException(const BlueOceanApiException& e)
{
return std::make_pair<int, std::string>(e.getStatus(), e.what());
}
std::pair<int, std::string> BlueOceanApiJwt-authJwksKeyResource::handleStdException(const std::exception& e)
{
return std::make_pair<int, std::string>(500, e.what());
}
std::pair<int, std::string> BlueOceanApiJwt-authJwksKeyResource::handleUnspecifiedException()
{
return std::make_pair<int, std::string>(500, "Unknown exception occurred");
}
void BlueOceanApiJwt-authJwksKeyResource::setResponseHeader(const std::shared_ptr<restbed::Session>& session, const std::string& header)
{
session->set_header(header, "");
}
void BlueOceanApiJwt-authJwksKeyResource::returnResponse(const std::shared_ptr<restbed::Session>& session, const int status, const std::string& result, const std::string& contentType)
{
session->close(status, result, { {"Connection", "close"}, {"Content-Type", contentType} });
}
void BlueOceanApiJwt-authJwksKeyResource::defaultSessionClose(const std::shared_ptr<restbed::Session>& session, const int status, const std::string& result)
{
session->close(status, result, { {"Connection", "close"} });
}
void BlueOceanApiJwt-authJwksKeyResource::handler_GET_internal(const std::shared_ptr<restbed::Session> session)
{
const auto request = session->get_request();
// Getting the path params
const int32_t key = getPathParam_key(request);
int status_code = 500;
std::string resultObject = "";
std::string result = "";
try {
std::tie(status_code, resultObject) =
handler_GET(key);
}
catch(const BlueOceanApiException& e) {
std::tie(status_code, result) = handleBlueOceanApiException(e);
}
catch(const std::exception& e) {
std::tie(status_code, result) = handleStdException(e);
}
catch(...) {
std::tie(status_code, result) = handleUnspecifiedException();
}
if (status_code == 200) {
result = resultObject;
const constexpr auto contentType = "application/json";
returnResponse(session, 200, result.empty() ? "Successfully retrieved JWT token" : result, contentType);
return;
}
if (status_code == 401) {
const constexpr auto contentType = "text/plain";
returnResponse(session, 401, result.empty() ? "Authentication failed - incorrect username and/or password" : result, contentType);
return;
}
if (status_code == 403) {
const constexpr auto contentType = "text/plain";
returnResponse(session, 403, result.empty() ? "Jenkins requires authentication - please set username and password" : result, contentType);
return;
}
defaultSessionClose(session, status_code, result);
}
std::pair<int, std::string> BlueOceanApiJwt-authJwksKeyResource::handler_GET(
int32_t const & key)
{
throw BlueOceanApiException(501, "Not implemented");
}
std::string BlueOceanApiJwt-authJwksKeyResource::extractBodyContent(const std::shared_ptr<restbed::Session>& session) {
const auto request = session->get_request();
int content_length = request->get_header("Content-Length", 0);
std::string bodyContent;
session->fetch(content_length,
[&bodyContent](const std::shared_ptr<restbed::Session> session,
const restbed::Bytes &body) {
bodyContent = restbed::String::format(
"%.*s\n", (int)body.size(), body.data());
});
return bodyContent;
}
BlueOceanApiJwt-authTokenResource::BlueOceanApiJwt-authTokenResource(const std::string& context /* = "" */)
{
this->set_path(context + "/jwt-auth/token/");
this->set_method_handler("GET",
std::bind(&BlueOceanApiJwt-authTokenResource::handler_GET_internal, this,
std::placeholders::_1));
}
BlueOceanApiJwt-authTokenResource::~BlueOceanApiJwt-authTokenResource()
{
}
std::pair<int, std::string> BlueOceanApiJwt-authTokenResource::handleBlueOceanApiException(const BlueOceanApiException& e)
{
return std::make_pair<int, std::string>(e.getStatus(), e.what());
}
std::pair<int, std::string> BlueOceanApiJwt-authTokenResource::handleStdException(const std::exception& e)
{
return std::make_pair<int, std::string>(500, e.what());
}
std::pair<int, std::string> BlueOceanApiJwt-authTokenResource::handleUnspecifiedException()
{
return std::make_pair<int, std::string>(500, "Unknown exception occurred");
}
void BlueOceanApiJwt-authTokenResource::setResponseHeader(const std::shared_ptr<restbed::Session>& session, const std::string& header)
{
session->set_header(header, "");
}
void BlueOceanApiJwt-authTokenResource::returnResponse(const std::shared_ptr<restbed::Session>& session, const int status, const std::string& result, const std::string& contentType)
{
session->close(status, result, { {"Connection", "close"}, {"Content-Type", contentType} });
}
void BlueOceanApiJwt-authTokenResource::defaultSessionClose(const std::shared_ptr<restbed::Session>& session, const int status, const std::string& result)
{
session->close(status, result, { {"Connection", "close"} });
}
void BlueOceanApiJwt-authTokenResource::handler_GET_internal(const std::shared_ptr<restbed::Session> session)
{
const auto request = session->get_request();
// Getting the query params
const int32_t expiryTimeInMins = getQueryParam_expiryTimeInMins(request);
const int32_t maxExpiryTimeInMins = getQueryParam_maxExpiryTimeInMins(request);
int status_code = 500;
std::string resultObject = "";
std::string result = "";
try {
std::tie(status_code, resultObject) =
handler_GET(expiryTimeInMins, maxExpiryTimeInMins);
}
catch(const BlueOceanApiException& e) {
std::tie(status_code, result) = handleBlueOceanApiException(e);
}
catch(const std::exception& e) {
std::tie(status_code, result) = handleStdException(e);
}
catch(...) {
std::tie(status_code, result) = handleUnspecifiedException();
}
if (status_code == 200) {
result = resultObject;
const constexpr auto contentType = "application/json";
returnResponse(session, 200, result.empty() ? "Successfully retrieved JWT token" : result, contentType);
return;
}
if (status_code == 401) {
const constexpr auto contentType = "text/plain";
returnResponse(session, 401, result.empty() ? "Authentication failed - incorrect username and/or password" : result, contentType);
return;
}
if (status_code == 403) {
const constexpr auto contentType = "text/plain";
returnResponse(session, 403, result.empty() ? "Jenkins requires authentication - please set username and password" : result, contentType);
return;
}
defaultSessionClose(session, status_code, result);
}
std::pair<int, std::string> BlueOceanApiJwt-authTokenResource::handler_GET(
int32_t const & expiryTimeInMins, int32_t const & maxExpiryTimeInMins)
{
throw BlueOceanApiException(501, "Not implemented");
}
std::string BlueOceanApiJwt-authTokenResource::extractBodyContent(const std::shared_ptr<restbed::Session>& session) {
const auto request = session->get_request();
int content_length = request->get_header("Content-Length", 0);
std::string bodyContent;
session->fetch(content_length,
[&bodyContent](const std::shared_ptr<restbed::Session> session,
const restbed::Bytes &body) {
bodyContent = restbed::String::format(
"%.*s\n", (int)body.size(), body.data());
});
return bodyContent;
}
BlueOceanApiBlueRestOrganizationsOrganizationResource::BlueOceanApiBlueRestOrganizationsOrganizationResource(const std::string& context /* = "" */)
{
this->set_path(context + "/blue/rest/organizations/{organization: .*}/");
this->set_method_handler("GET",
std::bind(&BlueOceanApiBlueRestOrganizationsOrganizationResource::handler_GET_internal, this,
std::placeholders::_1));
}
BlueOceanApiBlueRestOrganizationsOrganizationResource::~BlueOceanApiBlueRestOrganizationsOrganizationResource()
{
}
std::pair<int, std::string> BlueOceanApiBlueRestOrganizationsOrganizationResource::handleBlueOceanApiException(const BlueOceanApiException& e)
{
return std::make_pair<int, std::string>(e.getStatus(), e.what());
}
std::pair<int, std::string> BlueOceanApiBlueRestOrganizationsOrganizationResource::handleStdException(const std::exception& e)
{
return std::make_pair<int, std::string>(500, e.what());
}
std::pair<int, std::string> BlueOceanApiBlueRestOrganizationsOrganizationResource::handleUnspecifiedException()
{
return std::make_pair<int, std::string>(500, "Unknown exception occurred");
}
void BlueOceanApiBlueRestOrganizationsOrganizationResource::setResponseHeader(const std::shared_ptr<restbed::Session>& session, const std::string& header)
{
session->set_header(header, "");
}
void BlueOceanApiBlueRestOrganizationsOrganizationResource::returnResponse(const std::shared_ptr<restbed::Session>& session, const int status, const std::string& result, const std::string& contentType)
{
session->close(status, result, { {"Connection", "close"}, {"Content-Type", contentType} });
}
void BlueOceanApiBlueRestOrganizationsOrganizationResource::defaultSessionClose(const std::shared_ptr<restbed::Session>& session, const int status, const std::string& result)
{
session->close(status, result, { {"Connection", "close"} });
}
void BlueOceanApiBlueRestOrganizationsOrganizationResource::handler_GET_internal(const std::shared_ptr<restbed::Session> session)
{
const auto request = session->get_request();
// Getting the path params
const std::string organization = getPathParam_organization(request);
int status_code = 500;
std::shared_ptr<Organisation> resultObject = std::make_shared<Organisation>();
std::string result = "";
try {
std::tie(status_code, resultObject) =
handler_GET(organization);
}
catch(const BlueOceanApiException& e) {
std::tie(status_code, result) = handleBlueOceanApiException(e);
}
catch(const std::exception& e) {
std::tie(status_code, result) = handleStdException(e);
}
catch(...) {
std::tie(status_code, result) = handleUnspecifiedException();
}
if (status_code == 200) {
result = resultObject->toJsonString();
const constexpr auto contentType = "application/json";
returnResponse(session, 200, result.empty() ? "Successfully retrieved pipeline details" : result, contentType);
return;
}
if (status_code == 401) {
const constexpr auto contentType = "text/plain";
returnResponse(session, 401, result.empty() ? "Authentication failed - incorrect username and/or password" : result, contentType);
return;
}
if (status_code == 403) {
const constexpr auto contentType = "text/plain";
returnResponse(session, 403, result.empty() ? "Jenkins requires authentication - please set username and password" : result, contentType);
return;
}
if (status_code == 404) {
const constexpr auto contentType = "text/plain";
returnResponse(session, 404, result.empty() ? "Pipeline cannot be found on Jenkins instance" : result, contentType);
return;
}
defaultSessionClose(session, status_code, result);
}
std::pair<int, std::shared_ptr<Organisation>> BlueOceanApiBlueRestOrganizationsOrganizationResource::handler_GET(
std::string const & organization)
{
throw BlueOceanApiException(501, "Not implemented");
}
std::string BlueOceanApiBlueRestOrganizationsOrganizationResource::extractBodyContent(const std::shared_ptr<restbed::Session>& session) {
const auto request = session->get_request();
int content_length = request->get_header("Content-Length", 0);
std::string bodyContent;
session->fetch(content_length,
[&bodyContent](const std::shared_ptr<restbed::Session> session,
const restbed::Bytes &body) {
bodyContent = restbed::String::format(
"%.*s\n", (int)body.size(), body.data());
});
return bodyContent;
}
BlueOceanApiBlueRestOrganizationsResource::BlueOceanApiBlueRestOrganizationsResource(const std::string& context /* = "" */)
{
this->set_path(context + "/blue/rest/organizations//");
this->set_method_handler("GET",
std::bind(&BlueOceanApiBlueRestOrganizationsResource::handler_GET_internal, this,
std::placeholders::_1));
}
BlueOceanApiBlueRestOrganizationsResource::~BlueOceanApiBlueRestOrganizationsResource()
{
}
std::pair<int, std::string> BlueOceanApiBlueRestOrganizationsResource::handleBlueOceanApiException(const BlueOceanApiException& e)
{
return std::make_pair<int, std::string>(e.getStatus(), e.what());
}
std::pair<int, std::string> BlueOceanApiBlueRestOrganizationsResource::handleStdException(const std::exception& e)
{
return std::make_pair<int, std::string>(500, e.what());
}
std::pair<int, std::string> BlueOceanApiBlueRestOrganizationsResource::handleUnspecifiedException()
{
return std::make_pair<int, std::string>(500, "Unknown exception occurred");
}
void BlueOceanApiBlueRestOrganizationsResource::setResponseHeader(const std::shared_ptr<restbed::Session>& session, const std::string& header)
{
session->set_header(header, "");
}
void BlueOceanApiBlueRestOrganizationsResource::returnResponse(const std::shared_ptr<restbed::Session>& session, const int status, const std::string& result, const std::string& contentType)
{
session->close(status, result, { {"Connection", "close"}, {"Content-Type", contentType} });
}
void BlueOceanApiBlueRestOrganizationsResource::defaultSessionClose(const std::shared_ptr<restbed::Session>& session, const int status, const std::string& result)
{
session->close(status, result, { {"Connection", "close"} });
}
void BlueOceanApiBlueRestOrganizationsResource::handler_GET_internal(const std::shared_ptr<restbed::Session> session)
{
const auto request = session->get_request();
int status_code = 500;
std::vector<std::shared_ptr<Organisation>> resultObject = std::vector<std::shared_ptr<Organisation>>();
std::string result = "";
try {
std::tie(status_code, resultObject) =
handler_GET();
}
catch(const BlueOceanApiException& e) {
std::tie(status_code, result) = handleBlueOceanApiException(e);
}
catch(const std::exception& e) {
std::tie(status_code, result) = handleStdException(e);
}
catch(...) {
std::tie(status_code, result) = handleUnspecifiedException();
}
if (status_code == 200) {
const constexpr auto contentType = "application/json";
returnResponse(session, 200, result.empty() ? "Successfully retrieved pipelines details" : result, contentType);
return;
}
if (status_code == 401) {
const constexpr auto contentType = "text/plain";
returnResponse(session, 401, result.empty() ? "Authentication failed - incorrect username and/or password" : result, contentType);
return;
}
if (status_code == 403) {
const constexpr auto contentType = "text/plain";
returnResponse(session, 403, result.empty() ? "Jenkins requires authentication - please set username and password" : result, contentType);
return;
}
defaultSessionClose(session, status_code, result);
}
std::pair<int, std::vector<std::shared_ptr<Organisation>>> BlueOceanApiBlueRestOrganizationsResource::handler_GET(
)
{
throw BlueOceanApiException(501, "Not implemented");
}
std::string BlueOceanApiBlueRestOrganizationsResource::extractBodyContent(const std::shared_ptr<restbed::Session>& session) {
const auto request = session->get_request();
int content_length = request->get_header("Content-Length", 0);
std::string bodyContent;
session->fetch(content_length,
[&bodyContent](const std::shared_ptr<restbed::Session> session,
const restbed::Bytes &body) {
bodyContent = restbed::String::format(
"%.*s\n", (int)body.size(), body.data());
});
return bodyContent;
}
BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineResource::BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineResource(const std::string& context /* = "" */)
{
this->set_path(context + "/blue/rest/organizations/{organization: .*}/pipelines/{pipeline: .*}/");
this->set_method_handler("GET",
std::bind(&BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineResource::handler_GET_internal, this,
std::placeholders::_1));
}
BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineResource::~BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineResource()
{
}
std::pair<int, std::string> BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineResource::handleBlueOceanApiException(const BlueOceanApiException& e)
{
return std::make_pair<int, std::string>(e.getStatus(), e.what());
}
std::pair<int, std::string> BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineResource::handleStdException(const std::exception& e)
{
return std::make_pair<int, std::string>(500, e.what());
}
std::pair<int, std::string> BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineResource::handleUnspecifiedException()
{
return std::make_pair<int, std::string>(500, "Unknown exception occurred");
}
void BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineResource::setResponseHeader(const std::shared_ptr<restbed::Session>& session, const std::string& header)
{
session->set_header(header, "");
}
void BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineResource::returnResponse(const std::shared_ptr<restbed::Session>& session, const int status, const std::string& result, const std::string& contentType)
{
session->close(status, result, { {"Connection", "close"}, {"Content-Type", contentType} });
}
void BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineResource::defaultSessionClose(const std::shared_ptr<restbed::Session>& session, const int status, const std::string& result)
{
session->close(status, result, { {"Connection", "close"} });
}
void BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineResource::handler_GET_internal(const std::shared_ptr<restbed::Session> session)
{
const auto request = session->get_request();
// Getting the path params
const std::string organization = getPathParam_organization(request);
const std::string pipeline = getPathParam_pipeline(request);
int status_code = 500;
std::shared_ptr<Pipeline> resultObject = std::make_shared<Pipeline>();
std::string result = "";
try {
std::tie(status_code, resultObject) =
handler_GET(organization, pipeline);
}
catch(const BlueOceanApiException& e) {
std::tie(status_code, result) = handleBlueOceanApiException(e);
}
catch(const std::exception& e) {
std::tie(status_code, result) = handleStdException(e);
}
catch(...) {
std::tie(status_code, result) = handleUnspecifiedException();
}
if (status_code == 200) {
result = resultObject->toJsonString();
const constexpr auto contentType = "application/json";
returnResponse(session, 200, result.empty() ? "Successfully retrieved pipeline details" : result, contentType);
return;
}
if (status_code == 401) {
const constexpr auto contentType = "text/plain";
returnResponse(session, 401, result.empty() ? "Authentication failed - incorrect username and/or password" : result, contentType);
return;
}
if (status_code == 403) {
const constexpr auto contentType = "text/plain";
returnResponse(session, 403, result.empty() ? "Jenkins requires authentication - please set username and password" : result, contentType);
return;
}
if (status_code == 404) {
const constexpr auto contentType = "text/plain";
returnResponse(session, 404, result.empty() ? "Pipeline cannot be found on Jenkins instance" : result, contentType);
return;
}
defaultSessionClose(session, status_code, result);
}
std::pair<int, std::shared_ptr<Pipeline>> BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineResource::handler_GET(
std::string const & organization, std::string const & pipeline)
{
throw BlueOceanApiException(501, "Not implemented");
}
std::string BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineResource::extractBodyContent(const std::shared_ptr<restbed::Session>& session) {
const auto request = session->get_request();
int content_length = request->get_header("Content-Length", 0);
std::string bodyContent;
session->fetch(content_length,
[&bodyContent](const std::shared_ptr<restbed::Session> session,
const restbed::Bytes &body) {
bodyContent = restbed::String::format(
"%.*s\n", (int)body.size(), body.data());
});
return bodyContent;
}
BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineActivitiesResource::BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineActivitiesResource(const std::string& context /* = "" */)
{
this->set_path(context + "/blue/rest/organizations/{organization: .*}/pipelines/{pipeline: .*}/activities/");
this->set_method_handler("GET",
std::bind(&BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineActivitiesResource::handler_GET_internal, this,
std::placeholders::_1));
}
BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineActivitiesResource::~BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineActivitiesResource()
{
}
std::pair<int, std::string> BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineActivitiesResource::handleBlueOceanApiException(const BlueOceanApiException& e)
{
return std::make_pair<int, std::string>(e.getStatus(), e.what());
}
std::pair<int, std::string> BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineActivitiesResource::handleStdException(const std::exception& e)
{
return std::make_pair<int, std::string>(500, e.what());
}
std::pair<int, std::string> BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineActivitiesResource::handleUnspecifiedException()
{
return std::make_pair<int, std::string>(500, "Unknown exception occurred");
}
void BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineActivitiesResource::setResponseHeader(const std::shared_ptr<restbed::Session>& session, const std::string& header)
{
session->set_header(header, "");
}
void BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineActivitiesResource::returnResponse(const std::shared_ptr<restbed::Session>& session, const int status, const std::string& result, const std::string& contentType)
{
session->close(status, result, { {"Connection", "close"}, {"Content-Type", contentType} });
}
void BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineActivitiesResource::defaultSessionClose(const std::shared_ptr<restbed::Session>& session, const int status, const std::string& result)
{
session->close(status, result, { {"Connection", "close"} });
}
void BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineActivitiesResource::handler_GET_internal(const std::shared_ptr<restbed::Session> session)
{
const auto request = session->get_request();
// Getting the path params
const std::string organization = getPathParam_organization(request);
const std::string pipeline = getPathParam_pipeline(request);
int status_code = 500;
std::vector<std::shared_ptr<PipelineActivity>> resultObject = std::vector<std::shared_ptr<PipelineActivity>>();
std::string result = "";
try {
std::tie(status_code, resultObject) =
handler_GET(organization, pipeline);
}
catch(const BlueOceanApiException& e) {
std::tie(status_code, result) = handleBlueOceanApiException(e);
}
catch(const std::exception& e) {
std::tie(status_code, result) = handleStdException(e);
}
catch(...) {
std::tie(status_code, result) = handleUnspecifiedException();
}
if (status_code == 200) {
const constexpr auto contentType = "application/json";
returnResponse(session, 200, result.empty() ? "Successfully retrieved all activities details" : result, contentType);
return;
}
if (status_code == 401) {
const constexpr auto contentType = "text/plain";
returnResponse(session, 401, result.empty() ? "Authentication failed - incorrect username and/or password" : result, contentType);
return;
}
if (status_code == 403) {
const constexpr auto contentType = "text/plain";
returnResponse(session, 403, result.empty() ? "Jenkins requires authentication - please set username and password" : result, contentType);
return;
}
defaultSessionClose(session, status_code, result);
}
std::pair<int, std::vector<std::shared_ptr<PipelineActivity>>> BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineActivitiesResource::handler_GET(
std::string const & organization, std::string const & pipeline)
{
throw BlueOceanApiException(501, "Not implemented");
}
std::string BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineActivitiesResource::extractBodyContent(const std::shared_ptr<restbed::Session>& session) {
const auto request = session->get_request();
int content_length = request->get_header("Content-Length", 0);
std::string bodyContent;
session->fetch(content_length,
[&bodyContent](const std::shared_ptr<restbed::Session> session,
const restbed::Bytes &body) {
bodyContent = restbed::String::format(
"%.*s\n", (int)body.size(), body.data());
});
return bodyContent;
}
BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineBranchesBranchResource::BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineBranchesBranchResource(const std::string& context /* = "" */)
{
this->set_path(context + "/blue/rest/organizations/{organization: .*}/pipelines/{pipeline: .*}/branches/{branch: .*}//");
this->set_method_handler("GET",
std::bind(&BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineBranchesBranchResource::handler_GET_internal, this,
std::placeholders::_1));
}
BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineBranchesBranchResource::~BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineBranchesBranchResource()
{
}
std::pair<int, std::string> BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineBranchesBranchResource::handleBlueOceanApiException(const BlueOceanApiException& e)
{
return std::make_pair<int, std::string>(e.getStatus(), e.what());
}
std::pair<int, std::string> BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineBranchesBranchResource::handleStdException(const std::exception& e)
{
return std::make_pair<int, std::string>(500, e.what());
}
std::pair<int, std::string> BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineBranchesBranchResource::handleUnspecifiedException()
{
return std::make_pair<int, std::string>(500, "Unknown exception occurred");
}
void BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineBranchesBranchResource::setResponseHeader(const std::shared_ptr<restbed::Session>& session, const std::string& header)
{
session->set_header(header, "");
}
void BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineBranchesBranchResource::returnResponse(const std::shared_ptr<restbed::Session>& session, const int status, const std::string& result, const std::string& contentType)
{
session->close(status, result, { {"Connection", "close"}, {"Content-Type", contentType} });
}
void BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineBranchesBranchResource::defaultSessionClose(const std::shared_ptr<restbed::Session>& session, const int status, const std::string& result)
{
session->close(status, result, { {"Connection", "close"} });
}
void BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineBranchesBranchResource::handler_GET_internal(const std::shared_ptr<restbed::Session> session)
{
const auto request = session->get_request();
// Getting the path params
const std::string organization = getPathParam_organization(request);
const std::string pipeline = getPathParam_pipeline(request);
const std::string branch = getPathParam_branch(request);
int status_code = 500;
std::shared_ptr<BranchImpl> resultObject = std::make_shared<BranchImpl>();
std::string result = "";
try {
std::tie(status_code, resultObject) =
handler_GET(organization, pipeline, branch);
}
catch(const BlueOceanApiException& e) {
std::tie(status_code, result) = handleBlueOceanApiException(e);
}
catch(const std::exception& e) {
std::tie(status_code, result) = handleStdException(e);
}
catch(...) {
std::tie(status_code, result) = handleUnspecifiedException();
}
if (status_code == 200) {
result = resultObject->toJsonString();
const constexpr auto contentType = "application/json";
returnResponse(session, 200, result.empty() ? "Successfully retrieved branch details" : result, contentType);
return;
}
if (status_code == 401) {
const constexpr auto contentType = "text/plain";
returnResponse(session, 401, result.empty() ? "Authentication failed - incorrect username and/or password" : result, contentType);
return;
}
if (status_code == 403) {
const constexpr auto contentType = "text/plain";
returnResponse(session, 403, result.empty() ? "Jenkins requires authentication - please set username and password" : result, contentType);
return;
}
defaultSessionClose(session, status_code, result);
}
std::pair<int, std::shared_ptr<BranchImpl>> BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineBranchesBranchResource::handler_GET(
std::string const & organization, std::string const & pipeline, std::string const & branch)
{
throw BlueOceanApiException(501, "Not implemented");
}
std::string BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineBranchesBranchResource::extractBodyContent(const std::shared_ptr<restbed::Session>& session) {
const auto request = session->get_request();
int content_length = request->get_header("Content-Length", 0);
std::string bodyContent;
session->fetch(content_length,
[&bodyContent](const std::shared_ptr<restbed::Session> session,
const restbed::Bytes &body) {
bodyContent = restbed::String::format(
"%.*s\n", (int)body.size(), body.data());
});
return bodyContent;
}
BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineBranchesBranchRunsRunResource::BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineBranchesBranchRunsRunResource(const std::string& context /* = "" */)
{
this->set_path(context + "/blue/rest/organizations/{organization: .*}/pipelines/{pipeline: .*}/branches/{branch: .*}/runs/{run: .*}/");
this->set_method_handler("GET",
std::bind(&BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineBranchesBranchRunsRunResource::handler_GET_internal, this,
std::placeholders::_1));
}
BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineBranchesBranchRunsRunResource::~BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineBranchesBranchRunsRunResource()
{
}
std::pair<int, std::string> BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineBranchesBranchRunsRunResource::handleBlueOceanApiException(const BlueOceanApiException& e)
{
return std::make_pair<int, std::string>(e.getStatus(), e.what());
}
std::pair<int, std::string> BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineBranchesBranchRunsRunResource::handleStdException(const std::exception& e)
{
return std::make_pair<int, std::string>(500, e.what());
}
std::pair<int, std::string> BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineBranchesBranchRunsRunResource::handleUnspecifiedException()
{
return std::make_pair<int, std::string>(500, "Unknown exception occurred");
}
void BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineBranchesBranchRunsRunResource::setResponseHeader(const std::shared_ptr<restbed::Session>& session, const std::string& header)
{
session->set_header(header, "");
}
void BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineBranchesBranchRunsRunResource::returnResponse(const std::shared_ptr<restbed::Session>& session, const int status, const std::string& result, const std::string& contentType)
{
session->close(status, result, { {"Connection", "close"}, {"Content-Type", contentType} });
}
void BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineBranchesBranchRunsRunResource::defaultSessionClose(const std::shared_ptr<restbed::Session>& session, const int status, const std::string& result)
{
session->close(status, result, { {"Connection", "close"} });
}
void BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineBranchesBranchRunsRunResource::handler_GET_internal(const std::shared_ptr<restbed::Session> session)
{
const auto request = session->get_request();
// Getting the path params
const std::string organization = getPathParam_organization(request);
const std::string pipeline = getPathParam_pipeline(request);
const std::string branch = getPathParam_branch(request);
const std::string run = getPathParam_run(request);
int status_code = 500;
std::shared_ptr<PipelineRun> resultObject = std::make_shared<PipelineRun>();
std::string result = "";
try {
std::tie(status_code, resultObject) =
handler_GET(organization, pipeline, branch, run);
}
catch(const BlueOceanApiException& e) {
std::tie(status_code, result) = handleBlueOceanApiException(e);
}
catch(const std::exception& e) {
std::tie(status_code, result) = handleStdException(e);
}
catch(...) {
std::tie(status_code, result) = handleUnspecifiedException();
}
if (status_code == 200) {
result = resultObject->toJsonString();
const constexpr auto contentType = "application/json";
returnResponse(session, 200, result.empty() ? "Successfully retrieved run details" : result, contentType);
return;
}
if (status_code == 401) {
const constexpr auto contentType = "text/plain";
returnResponse(session, 401, result.empty() ? "Authentication failed - incorrect username and/or password" : result, contentType);
return;
}
if (status_code == 403) {
const constexpr auto contentType = "text/plain";
returnResponse(session, 403, result.empty() ? "Jenkins requires authentication - please set username and password" : result, contentType);
return;
}
defaultSessionClose(session, status_code, result);
}
std::pair<int, std::shared_ptr<PipelineRun>> BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineBranchesBranchRunsRunResource::handler_GET(
std::string const & organization, std::string const & pipeline, std::string const & branch, std::string const & run)
{
throw BlueOceanApiException(501, "Not implemented");
}
std::string BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineBranchesBranchRunsRunResource::extractBodyContent(const std::shared_ptr<restbed::Session>& session) {
const auto request = session->get_request();
int content_length = request->get_header("Content-Length", 0);
std::string bodyContent;
session->fetch(content_length,
[&bodyContent](const std::shared_ptr<restbed::Session> session,
const restbed::Bytes &body) {
bodyContent = restbed::String::format(
"%.*s\n", (int)body.size(), body.data());
});
return bodyContent;
}
BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineBranchesResource::BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineBranchesResource(const std::string& context /* = "" */)
{
this->set_path(context + "/blue/rest/organizations/{organization: .*}/pipelines/{pipeline: .*}/branches/");
this->set_method_handler("GET",
std::bind(&BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineBranchesResource::handler_GET_internal, this,
std::placeholders::_1));
}
BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineBranchesResource::~BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineBranchesResource()
{
}
std::pair<int, std::string> BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineBranchesResource::handleBlueOceanApiException(const BlueOceanApiException& e)
{
return std::make_pair<int, std::string>(e.getStatus(), e.what());
}
std::pair<int, std::string> BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineBranchesResource::handleStdException(const std::exception& e)
{
return std::make_pair<int, std::string>(500, e.what());
}
std::pair<int, std::string> BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineBranchesResource::handleUnspecifiedException()
{
return std::make_pair<int, std::string>(500, "Unknown exception occurred");
}
void BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineBranchesResource::setResponseHeader(const std::shared_ptr<restbed::Session>& session, const std::string& header)
{
session->set_header(header, "");
}
void BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineBranchesResource::returnResponse(const std::shared_ptr<restbed::Session>& session, const int status, const std::string& result, const std::string& contentType)
{
session->close(status, result, { {"Connection", "close"}, {"Content-Type", contentType} });
}
void BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineBranchesResource::defaultSessionClose(const std::shared_ptr<restbed::Session>& session, const int status, const std::string& result)
{
session->close(status, result, { {"Connection", "close"} });
}
void BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineBranchesResource::handler_GET_internal(const std::shared_ptr<restbed::Session> session)
{
const auto request = session->get_request();
// Getting the path params
const std::string organization = getPathParam_organization(request);
const std::string pipeline = getPathParam_pipeline(request);
int status_code = 500;
std::shared_ptr<MultibranchPipeline> resultObject = std::make_shared<MultibranchPipeline>();
std::string result = "";
try {
std::tie(status_code, resultObject) =
handler_GET(organization, pipeline);
}
catch(const BlueOceanApiException& e) {
std::tie(status_code, result) = handleBlueOceanApiException(e);
}
catch(const std::exception& e) {
std::tie(status_code, result) = handleStdException(e);
}
catch(...) {
std::tie(status_code, result) = handleUnspecifiedException();
}
if (status_code == 200) {
result = resultObject->toJsonString();
const constexpr auto contentType = "application/json";
returnResponse(session, 200, result.empty() ? "Successfully retrieved all branches details" : result, contentType);
return;
}
if (status_code == 401) {
const constexpr auto contentType = "text/plain";
returnResponse(session, 401, result.empty() ? "Authentication failed - incorrect username and/or password" : result, contentType);
return;
}
if (status_code == 403) {
const constexpr auto contentType = "text/plain";
returnResponse(session, 403, result.empty() ? "Jenkins requires authentication - please set username and password" : result, contentType);
return;
}
defaultSessionClose(session, status_code, result);
}
std::pair<int, std::shared_ptr<MultibranchPipeline>> BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineBranchesResource::handler_GET(
std::string const & organization, std::string const & pipeline)
{
throw BlueOceanApiException(501, "Not implemented");
}
std::string BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineBranchesResource::extractBodyContent(const std::shared_ptr<restbed::Session>& session) {
const auto request = session->get_request();
int content_length = request->get_header("Content-Length", 0);
std::string bodyContent;
session->fetch(content_length,
[&bodyContent](const std::shared_ptr<restbed::Session> session,
const restbed::Bytes &body) {
bodyContent = restbed::String::format(
"%.*s\n", (int)body.size(), body.data());
});
return bodyContent;
}
BlueOceanApiBlueRestOrganizationsOrganizationPipelinesFolderResource::BlueOceanApiBlueRestOrganizationsOrganizationPipelinesFolderResource(const std::string& context /* = "" */)
{
this->set_path(context + "/blue/rest/organizations/{organization: .*}/pipelines/{folder: .*}//");
this->set_method_handler("GET",
std::bind(&BlueOceanApiBlueRestOrganizationsOrganizationPipelinesFolderResource::handler_GET_internal, this,
std::placeholders::_1));
}
BlueOceanApiBlueRestOrganizationsOrganizationPipelinesFolderResource::~BlueOceanApiBlueRestOrganizationsOrganizationPipelinesFolderResource()
{
}
std::pair<int, std::string> BlueOceanApiBlueRestOrganizationsOrganizationPipelinesFolderResource::handleBlueOceanApiException(const BlueOceanApiException& e)
{
return std::make_pair<int, std::string>(e.getStatus(), e.what());
}
std::pair<int, std::string> BlueOceanApiBlueRestOrganizationsOrganizationPipelinesFolderResource::handleStdException(const std::exception& e)
{
return std::make_pair<int, std::string>(500, e.what());
}
std::pair<int, std::string> BlueOceanApiBlueRestOrganizationsOrganizationPipelinesFolderResource::handleUnspecifiedException()
{
return std::make_pair<int, std::string>(500, "Unknown exception occurred");
}
void BlueOceanApiBlueRestOrganizationsOrganizationPipelinesFolderResource::setResponseHeader(const std::shared_ptr<restbed::Session>& session, const std::string& header)
{
session->set_header(header, "");
}
void BlueOceanApiBlueRestOrganizationsOrganizationPipelinesFolderResource::returnResponse(const std::shared_ptr<restbed::Session>& session, const int status, const std::string& result, const std::string& contentType)
{
session->close(status, result, { {"Connection", "close"}, {"Content-Type", contentType} });
}
void BlueOceanApiBlueRestOrganizationsOrganizationPipelinesFolderResource::defaultSessionClose(const std::shared_ptr<restbed::Session>& session, const int status, const std::string& result)
{
session->close(status, result, { {"Connection", "close"} });
}
void BlueOceanApiBlueRestOrganizationsOrganizationPipelinesFolderResource::handler_GET_internal(const std::shared_ptr<restbed::Session> session)
{
const auto request = session->get_request();
// Getting the path params
const std::string organization = getPathParam_organization(request);
const std::string folder = getPathParam_folder(request);
int status_code = 500;
std::shared_ptr<PipelineFolderImpl> resultObject = std::make_shared<PipelineFolderImpl>();
std::string result = "";
try {
std::tie(status_code, resultObject) =
handler_GET(organization, folder);
}
catch(const BlueOceanApiException& e) {
std::tie(status_code, result) = handleBlueOceanApiException(e);
}
catch(const std::exception& e) {
std::tie(status_code, result) = handleStdException(e);
}
catch(...) {
std::tie(status_code, result) = handleUnspecifiedException();
}
if (status_code == 200) {
result = resultObject->toJsonString();
const constexpr auto contentType = "application/json";
returnResponse(session, 200, result.empty() ? "Successfully retrieved folder details" : result, contentType);
return;
}
if (status_code == 401) {
const constexpr auto contentType = "text/plain";
returnResponse(session, 401, result.empty() ? "Authentication failed - incorrect username and/or password" : result, contentType);
return;
}
if (status_code == 403) {
const constexpr auto contentType = "text/plain";
returnResponse(session, 403, result.empty() ? "Jenkins requires authentication - please set username and password" : result, contentType);
return;
}
defaultSessionClose(session, status_code, result);
}
std::pair<int, std::shared_ptr<PipelineFolderImpl>> BlueOceanApiBlueRestOrganizationsOrganizationPipelinesFolderResource::handler_GET(
std::string const & organization, std::string const & folder)
{
throw BlueOceanApiException(501, "Not implemented");
}
std::string BlueOceanApiBlueRestOrganizationsOrganizationPipelinesFolderResource::extractBodyContent(const std::shared_ptr<restbed::Session>& session) {
const auto request = session->get_request();
int content_length = request->get_header("Content-Length", 0);
std::string bodyContent;
session->fetch(content_length,
[&bodyContent](const std::shared_ptr<restbed::Session> session,
const restbed::Bytes &body) {
bodyContent = restbed::String::format(
"%.*s\n", (int)body.size(), body.data());
});
return bodyContent;
}
BlueOceanApiBlueRestOrganizationsOrganizationPipelinesFolderPipelinesPipelineResource::BlueOceanApiBlueRestOrganizationsOrganizationPipelinesFolderPipelinesPipelineResource(const std::string& context /* = "" */)
{
this->set_path(context + "/blue/rest/organizations/{organization: .*}/pipelines/{folder: .*}/pipelines/{pipeline: .*}/");
this->set_method_handler("GET",
std::bind(&BlueOceanApiBlueRestOrganizationsOrganizationPipelinesFolderPipelinesPipelineResource::handler_GET_internal, this,
std::placeholders::_1));
}
BlueOceanApiBlueRestOrganizationsOrganizationPipelinesFolderPipelinesPipelineResource::~BlueOceanApiBlueRestOrganizationsOrganizationPipelinesFolderPipelinesPipelineResource()
{
}
std::pair<int, std::string> BlueOceanApiBlueRestOrganizationsOrganizationPipelinesFolderPipelinesPipelineResource::handleBlueOceanApiException(const BlueOceanApiException& e)
{
return std::make_pair<int, std::string>(e.getStatus(), e.what());
}
std::pair<int, std::string> BlueOceanApiBlueRestOrganizationsOrganizationPipelinesFolderPipelinesPipelineResource::handleStdException(const std::exception& e)
{
return std::make_pair<int, std::string>(500, e.what());
}
std::pair<int, std::string> BlueOceanApiBlueRestOrganizationsOrganizationPipelinesFolderPipelinesPipelineResource::handleUnspecifiedException()
{
return std::make_pair<int, std::string>(500, "Unknown exception occurred");
}
void BlueOceanApiBlueRestOrganizationsOrganizationPipelinesFolderPipelinesPipelineResource::setResponseHeader(const std::shared_ptr<restbed::Session>& session, const std::string& header)
{
session->set_header(header, "");
}
void BlueOceanApiBlueRestOrganizationsOrganizationPipelinesFolderPipelinesPipelineResource::returnResponse(const std::shared_ptr<restbed::Session>& session, const int status, const std::string& result, const std::string& contentType)
{
session->close(status, result, { {"Connection", "close"}, {"Content-Type", contentType} });
}
void BlueOceanApiBlueRestOrganizationsOrganizationPipelinesFolderPipelinesPipelineResource::defaultSessionClose(const std::shared_ptr<restbed::Session>& session, const int status, const std::string& result)
{
session->close(status, result, { {"Connection", "close"} });
}
void BlueOceanApiBlueRestOrganizationsOrganizationPipelinesFolderPipelinesPipelineResource::handler_GET_internal(const std::shared_ptr<restbed::Session> session)
{
const auto request = session->get_request();
// Getting the path params
const std::string organization = getPathParam_organization(request);
const std::string pipeline = getPathParam_pipeline(request);
const std::string folder = getPathParam_folder(request);
int status_code = 500;
std::shared_ptr<PipelineImpl> resultObject = std::make_shared<PipelineImpl>();
std::string result = "";
try {
std::tie(status_code, resultObject) =
handler_GET(organization, pipeline, folder);
}
catch(const BlueOceanApiException& e) {
std::tie(status_code, result) = handleBlueOceanApiException(e);
}
catch(const std::exception& e) {
std::tie(status_code, result) = handleStdException(e);
}
catch(...) {
std::tie(status_code, result) = handleUnspecifiedException();
}
if (status_code == 200) {
result = resultObject->toJsonString();
const constexpr auto contentType = "application/json";
returnResponse(session, 200, result.empty() ? "Successfully retrieved pipeline details" : result, contentType);
return;
}
if (status_code == 401) {
const constexpr auto contentType = "text/plain";
returnResponse(session, 401, result.empty() ? "Authentication failed - incorrect username and/or password" : result, contentType);
return;
}
if (status_code == 403) {
const constexpr auto contentType = "text/plain";
returnResponse(session, 403, result.empty() ? "Jenkins requires authentication - please set username and password" : result, contentType);
return;
}
defaultSessionClose(session, status_code, result);
}
std::pair<int, std::shared_ptr<PipelineImpl>> BlueOceanApiBlueRestOrganizationsOrganizationPipelinesFolderPipelinesPipelineResource::handler_GET(
std::string const & organization, std::string const & pipeline, std::string const & folder)
{
throw BlueOceanApiException(501, "Not implemented");
}
std::string BlueOceanApiBlueRestOrganizationsOrganizationPipelinesFolderPipelinesPipelineResource::extractBodyContent(const std::shared_ptr<restbed::Session>& session) {
const auto request = session->get_request();
int content_length = request->get_header("Content-Length", 0);
std::string bodyContent;
session->fetch(content_length,
[&bodyContent](const std::shared_ptr<restbed::Session> session,
const restbed::Bytes &body) {
bodyContent = restbed::String::format(
"%.*s\n", (int)body.size(), body.data());
});
return bodyContent;
}
BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineQueueResource::BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineQueueResource(const std::string& context /* = "" */)
{
this->set_path(context + "/blue/rest/organizations/{organization: .*}/pipelines/{pipeline: .*}/queue/");
this->set_method_handler("GET",
std::bind(&BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineQueueResource::handler_GET_internal, this,
std::placeholders::_1));
}
BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineQueueResource::~BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineQueueResource()
{
}
std::pair<int, std::string> BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineQueueResource::handleBlueOceanApiException(const BlueOceanApiException& e)
{
return std::make_pair<int, std::string>(e.getStatus(), e.what());
}
std::pair<int, std::string> BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineQueueResource::handleStdException(const std::exception& e)
{
return std::make_pair<int, std::string>(500, e.what());
}
std::pair<int, std::string> BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineQueueResource::handleUnspecifiedException()
{
return std::make_pair<int, std::string>(500, "Unknown exception occurred");
}
void BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineQueueResource::setResponseHeader(const std::shared_ptr<restbed::Session>& session, const std::string& header)
{
session->set_header(header, "");
}
void BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineQueueResource::returnResponse(const std::shared_ptr<restbed::Session>& session, const int status, const std::string& result, const std::string& contentType)
{
session->close(status, result, { {"Connection", "close"}, {"Content-Type", contentType} });
}
void BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineQueueResource::defaultSessionClose(const std::shared_ptr<restbed::Session>& session, const int status, const std::string& result)
{
session->close(status, result, { {"Connection", "close"} });
}
void BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineQueueResource::handler_GET_internal(const std::shared_ptr<restbed::Session> session)
{
const auto request = session->get_request();
// Getting the path params
const std::string organization = getPathParam_organization(request);
const std::string pipeline = getPathParam_pipeline(request);
int status_code = 500;
std::vector<std::shared_ptr<QueueItemImpl>> resultObject = std::vector<std::shared_ptr<QueueItemImpl>>();
std::string result = "";
try {
std::tie(status_code, resultObject) =
handler_GET(organization, pipeline);
}
catch(const BlueOceanApiException& e) {
std::tie(status_code, result) = handleBlueOceanApiException(e);
}
catch(const std::exception& e) {
std::tie(status_code, result) = handleStdException(e);
}
catch(...) {
std::tie(status_code, result) = handleUnspecifiedException();
}
if (status_code == 200) {
const constexpr auto contentType = "application/json";
returnResponse(session, 200, result.empty() ? "Successfully retrieved queue details" : result, contentType);
return;
}
if (status_code == 401) {
const constexpr auto contentType = "text/plain";
returnResponse(session, 401, result.empty() ? "Authentication failed - incorrect username and/or password" : result, contentType);
return;
}
if (status_code == 403) {
const constexpr auto contentType = "text/plain";
returnResponse(session, 403, result.empty() ? "Jenkins requires authentication - please set username and password" : result, contentType);
return;
}
defaultSessionClose(session, status_code, result);
}
std::pair<int, std::vector<std::shared_ptr<QueueItemImpl>>> BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineQueueResource::handler_GET(
std::string const & organization, std::string const & pipeline)
{
throw BlueOceanApiException(501, "Not implemented");
}
std::string BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineQueueResource::extractBodyContent(const std::shared_ptr<restbed::Session>& session) {
const auto request = session->get_request();
int content_length = request->get_header("Content-Length", 0);
std::string bodyContent;
session->fetch(content_length,
[&bodyContent](const std::shared_ptr<restbed::Session> session,
const restbed::Bytes &body) {
bodyContent = restbed::String::format(
"%.*s\n", (int)body.size(), body.data());
});
return bodyContent;
}
BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsRunResource::BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsRunResource(const std::string& context /* = "" */)
{
this->set_path(context + "/blue/rest/organizations/{organization: .*}/pipelines/{pipeline: .*}/runs/{run: .*}/");
this->set_method_handler("GET",
std::bind(&BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsRunResource::handler_GET_internal, this,
std::placeholders::_1));
}
BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsRunResource::~BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsRunResource()
{
}
std::pair<int, std::string> BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsRunResource::handleBlueOceanApiException(const BlueOceanApiException& e)
{
return std::make_pair<int, std::string>(e.getStatus(), e.what());
}
std::pair<int, std::string> BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsRunResource::handleStdException(const std::exception& e)
{
return std::make_pair<int, std::string>(500, e.what());
}
std::pair<int, std::string> BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsRunResource::handleUnspecifiedException()
{
return std::make_pair<int, std::string>(500, "Unknown exception occurred");
}
void BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsRunResource::setResponseHeader(const std::shared_ptr<restbed::Session>& session, const std::string& header)
{
session->set_header(header, "");
}
void BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsRunResource::returnResponse(const std::shared_ptr<restbed::Session>& session, const int status, const std::string& result, const std::string& contentType)
{
session->close(status, result, { {"Connection", "close"}, {"Content-Type", contentType} });
}
void BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsRunResource::defaultSessionClose(const std::shared_ptr<restbed::Session>& session, const int status, const std::string& result)
{
session->close(status, result, { {"Connection", "close"} });
}
void BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsRunResource::handler_GET_internal(const std::shared_ptr<restbed::Session> session)
{
const auto request = session->get_request();
// Getting the path params
const std::string organization = getPathParam_organization(request);
const std::string pipeline = getPathParam_pipeline(request);
const std::string run = getPathParam_run(request);
int status_code = 500;
std::shared_ptr<PipelineRun> resultObject = std::make_shared<PipelineRun>();
std::string result = "";
try {
std::tie(status_code, resultObject) =
handler_GET(organization, pipeline, run);
}
catch(const BlueOceanApiException& e) {
std::tie(status_code, result) = handleBlueOceanApiException(e);
}
catch(const std::exception& e) {
std::tie(status_code, result) = handleStdException(e);
}
catch(...) {
std::tie(status_code, result) = handleUnspecifiedException();
}
if (status_code == 200) {
result = resultObject->toJsonString();
const constexpr auto contentType = "application/json";
returnResponse(session, 200, result.empty() ? "Successfully retrieved run details" : result, contentType);
return;
}
if (status_code == 401) {
const constexpr auto contentType = "text/plain";
returnResponse(session, 401, result.empty() ? "Authentication failed - incorrect username and/or password" : result, contentType);
return;
}
if (status_code == 403) {
const constexpr auto contentType = "text/plain";
returnResponse(session, 403, result.empty() ? "Jenkins requires authentication - please set username and password" : result, contentType);
return;
}
defaultSessionClose(session, status_code, result);
}
std::pair<int, std::shared_ptr<PipelineRun>> BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsRunResource::handler_GET(
std::string const & organization, std::string const & pipeline, std::string const & run)
{
throw BlueOceanApiException(501, "Not implemented");
}
std::string BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsRunResource::extractBodyContent(const std::shared_ptr<restbed::Session>& session) {
const auto request = session->get_request();
int content_length = request->get_header("Content-Length", 0);
std::string bodyContent;
session->fetch(content_length,
[&bodyContent](const std::shared_ptr<restbed::Session> session,
const restbed::Bytes &body) {
bodyContent = restbed::String::format(
"%.*s\n", (int)body.size(), body.data());
});
return bodyContent;
}
BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsRunLogResource::BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsRunLogResource(const std::string& context /* = "" */)
{
this->set_path(context + "/blue/rest/organizations/{organization: .*}/pipelines/{pipeline: .*}/runs/{run: .*}/log/");
this->set_method_handler("GET",
std::bind(&BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsRunLogResource::handler_GET_internal, this,
std::placeholders::_1));
}
BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsRunLogResource::~BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsRunLogResource()
{
}
std::pair<int, std::string> BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsRunLogResource::handleBlueOceanApiException(const BlueOceanApiException& e)
{
return std::make_pair<int, std::string>(e.getStatus(), e.what());
}
std::pair<int, std::string> BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsRunLogResource::handleStdException(const std::exception& e)
{
return std::make_pair<int, std::string>(500, e.what());
}
std::pair<int, std::string> BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsRunLogResource::handleUnspecifiedException()
{
return std::make_pair<int, std::string>(500, "Unknown exception occurred");
}
void BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsRunLogResource::setResponseHeader(const std::shared_ptr<restbed::Session>& session, const std::string& header)
{
session->set_header(header, "");
}
void BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsRunLogResource::returnResponse(const std::shared_ptr<restbed::Session>& session, const int status, const std::string& result, const std::string& contentType)
{
session->close(status, result, { {"Connection", "close"}, {"Content-Type", contentType} });
}
void BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsRunLogResource::defaultSessionClose(const std::shared_ptr<restbed::Session>& session, const int status, const std::string& result)
{
session->close(status, result, { {"Connection", "close"} });
}
void BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsRunLogResource::handler_GET_internal(const std::shared_ptr<restbed::Session> session)
{
const auto request = session->get_request();
// Getting the path params
const std::string organization = getPathParam_organization(request);
const std::string pipeline = getPathParam_pipeline(request);
const std::string run = getPathParam_run(request);
// Getting the query params
const int32_t start = getQueryParam_start(request);
const bool download = getQueryParam_download(request);
int status_code = 500;
std::string resultObject = "";
std::string result = "";
try {
std::tie(status_code, resultObject) =
handler_GET(organization, pipeline, run, start, download);
}
catch(const BlueOceanApiException& e) {
std::tie(status_code, result) = handleBlueOceanApiException(e);
}
catch(const std::exception& e) {
std::tie(status_code, result) = handleStdException(e);
}
catch(...) {
std::tie(status_code, result) = handleUnspecifiedException();
}
if (status_code == 200) {
result = resultObject;
const constexpr auto contentType = "application/json";
returnResponse(session, 200, result.empty() ? "Successfully retrieved pipeline run log" : result, contentType);
return;
}
if (status_code == 401) {
const constexpr auto contentType = "text/plain";
returnResponse(session, 401, result.empty() ? "Authentication failed - incorrect username and/or password" : result, contentType);
return;
}
if (status_code == 403) {
const constexpr auto contentType = "text/plain";
returnResponse(session, 403, result.empty() ? "Jenkins requires authentication - please set username and password" : result, contentType);
return;
}
defaultSessionClose(session, status_code, result);
}
std::pair<int, std::string> BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsRunLogResource::handler_GET(
std::string const & organization, std::string const & pipeline, std::string const & run, int32_t const & start, bool const & download)
{
throw BlueOceanApiException(501, "Not implemented");
}
std::string BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsRunLogResource::extractBodyContent(const std::shared_ptr<restbed::Session>& session) {
const auto request = session->get_request();
int content_length = request->get_header("Content-Length", 0);
std::string bodyContent;
session->fetch(content_length,
[&bodyContent](const std::shared_ptr<restbed::Session> session,
const restbed::Bytes &body) {
bodyContent = restbed::String::format(
"%.*s\n", (int)body.size(), body.data());
});
return bodyContent;
}
BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsRunNodesNodeResource::BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsRunNodesNodeResource(const std::string& context /* = "" */)
{
this->set_path(context + "/blue/rest/organizations/{organization: .*}/pipelines/{pipeline: .*}/runs/{run: .*}/nodes/{node: .*}/");
this->set_method_handler("GET",
std::bind(&BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsRunNodesNodeResource::handler_GET_internal, this,
std::placeholders::_1));
}
BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsRunNodesNodeResource::~BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsRunNodesNodeResource()
{
}
std::pair<int, std::string> BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsRunNodesNodeResource::handleBlueOceanApiException(const BlueOceanApiException& e)
{
return std::make_pair<int, std::string>(e.getStatus(), e.what());
}
std::pair<int, std::string> BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsRunNodesNodeResource::handleStdException(const std::exception& e)
{
return std::make_pair<int, std::string>(500, e.what());
}
std::pair<int, std::string> BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsRunNodesNodeResource::handleUnspecifiedException()
{
return std::make_pair<int, std::string>(500, "Unknown exception occurred");
}
void BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsRunNodesNodeResource::setResponseHeader(const std::shared_ptr<restbed::Session>& session, const std::string& header)
{
session->set_header(header, "");
}
void BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsRunNodesNodeResource::returnResponse(const std::shared_ptr<restbed::Session>& session, const int status, const std::string& result, const std::string& contentType)
{
session->close(status, result, { {"Connection", "close"}, {"Content-Type", contentType} });
}
void BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsRunNodesNodeResource::defaultSessionClose(const std::shared_ptr<restbed::Session>& session, const int status, const std::string& result)
{
session->close(status, result, { {"Connection", "close"} });
}
void BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsRunNodesNodeResource::handler_GET_internal(const std::shared_ptr<restbed::Session> session)
{
const auto request = session->get_request();
// Getting the path params
const std::string organization = getPathParam_organization(request);
const std::string pipeline = getPathParam_pipeline(request);
const std::string run = getPathParam_run(request);
const std::string node = getPathParam_node(request);
int status_code = 500;
std::shared_ptr<PipelineRunNode> resultObject = std::make_shared<PipelineRunNode>();
std::string result = "";
try {
std::tie(status_code, resultObject) =
handler_GET(organization, pipeline, run, node);
}
catch(const BlueOceanApiException& e) {
std::tie(status_code, result) = handleBlueOceanApiException(e);
}
catch(const std::exception& e) {
std::tie(status_code, result) = handleStdException(e);
}
catch(...) {
std::tie(status_code, result) = handleUnspecifiedException();
}
if (status_code == 200) {
result = resultObject->toJsonString();
const constexpr auto contentType = "application/json";
returnResponse(session, 200, result.empty() ? "Successfully retrieved run node details" : result, contentType);
return;
}
if (status_code == 401) {
const constexpr auto contentType = "text/plain";
returnResponse(session, 401, result.empty() ? "Authentication failed - incorrect username and/or password" : result, contentType);
return;
}
if (status_code == 403) {
const constexpr auto contentType = "text/plain";
returnResponse(session, 403, result.empty() ? "Jenkins requires authentication - please set username and password" : result, contentType);
return;
}
defaultSessionClose(session, status_code, result);
}
std::pair<int, std::shared_ptr<PipelineRunNode>> BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsRunNodesNodeResource::handler_GET(
std::string const & organization, std::string const & pipeline, std::string const & run, std::string const & node)
{
throw BlueOceanApiException(501, "Not implemented");
}
std::string BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsRunNodesNodeResource::extractBodyContent(const std::shared_ptr<restbed::Session>& session) {
const auto request = session->get_request();
int content_length = request->get_header("Content-Length", 0);
std::string bodyContent;
session->fetch(content_length,
[&bodyContent](const std::shared_ptr<restbed::Session> session,
const restbed::Bytes &body) {
bodyContent = restbed::String::format(
"%.*s\n", (int)body.size(), body.data());
});
return bodyContent;
}
BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsRunNodesNodeStepsStepResource::BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsRunNodesNodeStepsStepResource(const std::string& context /* = "" */)
{
this->set_path(context + "/blue/rest/organizations/{organization: .*}/pipelines/{pipeline: .*}/runs/{run: .*}/nodes/{node: .*}/steps/{step: .*}/");
this->set_method_handler("GET",
std::bind(&BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsRunNodesNodeStepsStepResource::handler_GET_internal, this,
std::placeholders::_1));
}
BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsRunNodesNodeStepsStepResource::~BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsRunNodesNodeStepsStepResource()
{
}
std::pair<int, std::string> BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsRunNodesNodeStepsStepResource::handleBlueOceanApiException(const BlueOceanApiException& e)
{
return std::make_pair<int, std::string>(e.getStatus(), e.what());
}
std::pair<int, std::string> BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsRunNodesNodeStepsStepResource::handleStdException(const std::exception& e)
{
return std::make_pair<int, std::string>(500, e.what());
}
std::pair<int, std::string> BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsRunNodesNodeStepsStepResource::handleUnspecifiedException()
{
return std::make_pair<int, std::string>(500, "Unknown exception occurred");
}
void BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsRunNodesNodeStepsStepResource::setResponseHeader(const std::shared_ptr<restbed::Session>& session, const std::string& header)
{
session->set_header(header, "");
}
void BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsRunNodesNodeStepsStepResource::returnResponse(const std::shared_ptr<restbed::Session>& session, const int status, const std::string& result, const std::string& contentType)
{
session->close(status, result, { {"Connection", "close"}, {"Content-Type", contentType} });
}
void BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsRunNodesNodeStepsStepResource::defaultSessionClose(const std::shared_ptr<restbed::Session>& session, const int status, const std::string& result)
{
session->close(status, result, { {"Connection", "close"} });
}
void BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsRunNodesNodeStepsStepResource::handler_GET_internal(const std::shared_ptr<restbed::Session> session)
{
const auto request = session->get_request();
// Getting the path params
const std::string organization = getPathParam_organization(request);
const std::string pipeline = getPathParam_pipeline(request);
const std::string run = getPathParam_run(request);
const std::string node = getPathParam_node(request);
const std::string step = getPathParam_step(request);
int status_code = 500;
std::shared_ptr<PipelineStepImpl> resultObject = std::make_shared<PipelineStepImpl>();
std::string result = "";
try {
std::tie(status_code, resultObject) =
handler_GET(organization, pipeline, run, node, step);
}
catch(const BlueOceanApiException& e) {
std::tie(status_code, result) = handleBlueOceanApiException(e);
}
catch(const std::exception& e) {
std::tie(status_code, result) = handleStdException(e);
}
catch(...) {
std::tie(status_code, result) = handleUnspecifiedException();
}
if (status_code == 200) {
result = resultObject->toJsonString();
const constexpr auto contentType = "application/json";
returnResponse(session, 200, result.empty() ? "Successfully retrieved run node step details" : result, contentType);
return;
}
if (status_code == 401) {
const constexpr auto contentType = "text/plain";
returnResponse(session, 401, result.empty() ? "Authentication failed - incorrect username and/or password" : result, contentType);
return;
}
if (status_code == 403) {
const constexpr auto contentType = "text/plain";
returnResponse(session, 403, result.empty() ? "Jenkins requires authentication - please set username and password" : result, contentType);
return;
}
defaultSessionClose(session, status_code, result);
}
std::pair<int, std::shared_ptr<PipelineStepImpl>> BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsRunNodesNodeStepsStepResource::handler_GET(
std::string const & organization, std::string const & pipeline, std::string const & run, std::string const & node, std::string const & step)
{
throw BlueOceanApiException(501, "Not implemented");
}
std::string BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsRunNodesNodeStepsStepResource::extractBodyContent(const std::shared_ptr<restbed::Session>& session) {
const auto request = session->get_request();
int content_length = request->get_header("Content-Length", 0);
std::string bodyContent;
session->fetch(content_length,
[&bodyContent](const std::shared_ptr<restbed::Session> session,
const restbed::Bytes &body) {
bodyContent = restbed::String::format(
"%.*s\n", (int)body.size(), body.data());
});
return bodyContent;
}
BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsRunNodesNodeStepsStepLogResource::BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsRunNodesNodeStepsStepLogResource(const std::string& context /* = "" */)
{
this->set_path(context + "/blue/rest/organizations/{organization: .*}/pipelines/{pipeline: .*}/runs/{run: .*}/nodes/{node: .*}/steps/{step: .*}/log/");
this->set_method_handler("GET",
std::bind(&BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsRunNodesNodeStepsStepLogResource::handler_GET_internal, this,
std::placeholders::_1));
}
BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsRunNodesNodeStepsStepLogResource::~BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsRunNodesNodeStepsStepLogResource()
{
}
std::pair<int, std::string> BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsRunNodesNodeStepsStepLogResource::handleBlueOceanApiException(const BlueOceanApiException& e)
{
return std::make_pair<int, std::string>(e.getStatus(), e.what());
}
std::pair<int, std::string> BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsRunNodesNodeStepsStepLogResource::handleStdException(const std::exception& e)
{
return std::make_pair<int, std::string>(500, e.what());
}
std::pair<int, std::string> BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsRunNodesNodeStepsStepLogResource::handleUnspecifiedException()
{
return std::make_pair<int, std::string>(500, "Unknown exception occurred");
}
void BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsRunNodesNodeStepsStepLogResource::setResponseHeader(const std::shared_ptr<restbed::Session>& session, const std::string& header)
{
session->set_header(header, "");
}
void BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsRunNodesNodeStepsStepLogResource::returnResponse(const std::shared_ptr<restbed::Session>& session, const int status, const std::string& result, const std::string& contentType)
{
session->close(status, result, { {"Connection", "close"}, {"Content-Type", contentType} });
}
void BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsRunNodesNodeStepsStepLogResource::defaultSessionClose(const std::shared_ptr<restbed::Session>& session, const int status, const std::string& result)
{
session->close(status, result, { {"Connection", "close"} });
}
void BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsRunNodesNodeStepsStepLogResource::handler_GET_internal(const std::shared_ptr<restbed::Session> session)
{
const auto request = session->get_request();
// Getting the path params
const std::string organization = getPathParam_organization(request);
const std::string pipeline = getPathParam_pipeline(request);
const std::string run = getPathParam_run(request);
const std::string node = getPathParam_node(request);
const std::string step = getPathParam_step(request);
int status_code = 500;
std::string resultObject = "";
std::string result = "";
try {
std::tie(status_code, resultObject) =
handler_GET(organization, pipeline, run, node, step);
}
catch(const BlueOceanApiException& e) {
std::tie(status_code, result) = handleBlueOceanApiException(e);
}
catch(const std::exception& e) {
std::tie(status_code, result) = handleStdException(e);
}
catch(...) {
std::tie(status_code, result) = handleUnspecifiedException();
}
if (status_code == 200) {
result = resultObject;
const constexpr auto contentType = "application/json";
returnResponse(session, 200, result.empty() ? "Successfully retrieved pipeline run node step log" : result, contentType);
return;
}
if (status_code == 401) {
const constexpr auto contentType = "text/plain";
returnResponse(session, 401, result.empty() ? "Authentication failed - incorrect username and/or password" : result, contentType);
return;
}
if (status_code == 403) {
const constexpr auto contentType = "text/plain";
returnResponse(session, 403, result.empty() ? "Jenkins requires authentication - please set username and password" : result, contentType);
return;
}
defaultSessionClose(session, status_code, result);
}
std::pair<int, std::string> BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsRunNodesNodeStepsStepLogResource::handler_GET(
std::string const & organization, std::string const & pipeline, std::string const & run, std::string const & node, std::string const & step)
{
throw BlueOceanApiException(501, "Not implemented");
}
std::string BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsRunNodesNodeStepsStepLogResource::extractBodyContent(const std::shared_ptr<restbed::Session>& session) {
const auto request = session->get_request();
int content_length = request->get_header("Content-Length", 0);
std::string bodyContent;
session->fetch(content_length,
[&bodyContent](const std::shared_ptr<restbed::Session> session,
const restbed::Bytes &body) {
bodyContent = restbed::String::format(
"%.*s\n", (int)body.size(), body.data());
});
return bodyContent;
}
BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsRunNodesNodeStepsResource::BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsRunNodesNodeStepsResource(const std::string& context /* = "" */)
{
this->set_path(context + "/blue/rest/organizations/{organization: .*}/pipelines/{pipeline: .*}/runs/{run: .*}/nodes/{node: .*}/steps/");
this->set_method_handler("GET",
std::bind(&BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsRunNodesNodeStepsResource::handler_GET_internal, this,
std::placeholders::_1));
}
BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsRunNodesNodeStepsResource::~BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsRunNodesNodeStepsResource()
{
}
std::pair<int, std::string> BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsRunNodesNodeStepsResource::handleBlueOceanApiException(const BlueOceanApiException& e)
{
return std::make_pair<int, std::string>(e.getStatus(), e.what());
}
std::pair<int, std::string> BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsRunNodesNodeStepsResource::handleStdException(const std::exception& e)
{
return std::make_pair<int, std::string>(500, e.what());
}
std::pair<int, std::string> BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsRunNodesNodeStepsResource::handleUnspecifiedException()
{
return std::make_pair<int, std::string>(500, "Unknown exception occurred");
}
void BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsRunNodesNodeStepsResource::setResponseHeader(const std::shared_ptr<restbed::Session>& session, const std::string& header)
{
session->set_header(header, "");
}
void BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsRunNodesNodeStepsResource::returnResponse(const std::shared_ptr<restbed::Session>& session, const int status, const std::string& result, const std::string& contentType)
{
session->close(status, result, { {"Connection", "close"}, {"Content-Type", contentType} });
}
void BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsRunNodesNodeStepsResource::defaultSessionClose(const std::shared_ptr<restbed::Session>& session, const int status, const std::string& result)
{
session->close(status, result, { {"Connection", "close"} });
}
void BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsRunNodesNodeStepsResource::handler_GET_internal(const std::shared_ptr<restbed::Session> session)
{
const auto request = session->get_request();
// Getting the path params
const std::string organization = getPathParam_organization(request);
const std::string pipeline = getPathParam_pipeline(request);
const std::string run = getPathParam_run(request);
const std::string node = getPathParam_node(request);
int status_code = 500;
std::vector<std::shared_ptr<PipelineStepImpl>> resultObject = std::vector<std::shared_ptr<PipelineStepImpl>>();
std::string result = "";
try {
std::tie(status_code, resultObject) =
handler_GET(organization, pipeline, run, node);
}
catch(const BlueOceanApiException& e) {
std::tie(status_code, result) = handleBlueOceanApiException(e);
}
catch(const std::exception& e) {
std::tie(status_code, result) = handleStdException(e);
}
catch(...) {
std::tie(status_code, result) = handleUnspecifiedException();
}
if (status_code == 200) {
const constexpr auto contentType = "application/json";
returnResponse(session, 200, result.empty() ? "Successfully retrieved run node steps details" : result, contentType);
return;
}
if (status_code == 401) {
const constexpr auto contentType = "text/plain";
returnResponse(session, 401, result.empty() ? "Authentication failed - incorrect username and/or password" : result, contentType);
return;
}
if (status_code == 403) {
const constexpr auto contentType = "text/plain";
returnResponse(session, 403, result.empty() ? "Jenkins requires authentication - please set username and password" : result, contentType);
return;
}
defaultSessionClose(session, status_code, result);
}
std::pair<int, std::vector<std::shared_ptr<PipelineStepImpl>>> BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsRunNodesNodeStepsResource::handler_GET(
std::string const & organization, std::string const & pipeline, std::string const & run, std::string const & node)
{
throw BlueOceanApiException(501, "Not implemented");
}
std::string BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsRunNodesNodeStepsResource::extractBodyContent(const std::shared_ptr<restbed::Session>& session) {
const auto request = session->get_request();
int content_length = request->get_header("Content-Length", 0);
std::string bodyContent;
session->fetch(content_length,
[&bodyContent](const std::shared_ptr<restbed::Session> session,
const restbed::Bytes &body) {
bodyContent = restbed::String::format(
"%.*s\n", (int)body.size(), body.data());
});
return bodyContent;
}
BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsRunNodesResource::BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsRunNodesResource(const std::string& context /* = "" */)
{
this->set_path(context + "/blue/rest/organizations/{organization: .*}/pipelines/{pipeline: .*}/runs/{run: .*}/nodes/");
this->set_method_handler("GET",
std::bind(&BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsRunNodesResource::handler_GET_internal, this,
std::placeholders::_1));
}
BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsRunNodesResource::~BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsRunNodesResource()
{
}
std::pair<int, std::string> BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsRunNodesResource::handleBlueOceanApiException(const BlueOceanApiException& e)
{
return std::make_pair<int, std::string>(e.getStatus(), e.what());
}
std::pair<int, std::string> BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsRunNodesResource::handleStdException(const std::exception& e)
{
return std::make_pair<int, std::string>(500, e.what());
}
std::pair<int, std::string> BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsRunNodesResource::handleUnspecifiedException()
{
return std::make_pair<int, std::string>(500, "Unknown exception occurred");
}
void BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsRunNodesResource::setResponseHeader(const std::shared_ptr<restbed::Session>& session, const std::string& header)
{
session->set_header(header, "");
}
void BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsRunNodesResource::returnResponse(const std::shared_ptr<restbed::Session>& session, const int status, const std::string& result, const std::string& contentType)
{
session->close(status, result, { {"Connection", "close"}, {"Content-Type", contentType} });
}
void BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsRunNodesResource::defaultSessionClose(const std::shared_ptr<restbed::Session>& session, const int status, const std::string& result)
{
session->close(status, result, { {"Connection", "close"} });
}
void BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsRunNodesResource::handler_GET_internal(const std::shared_ptr<restbed::Session> session)
{
const auto request = session->get_request();
// Getting the path params
const std::string organization = getPathParam_organization(request);
const std::string pipeline = getPathParam_pipeline(request);
const std::string run = getPathParam_run(request);
int status_code = 500;
std::vector<std::shared_ptr<PipelineRunNode>> resultObject = std::vector<std::shared_ptr<PipelineRunNode>>();
std::string result = "";
try {
std::tie(status_code, resultObject) =
handler_GET(organization, pipeline, run);
}
catch(const BlueOceanApiException& e) {
std::tie(status_code, result) = handleBlueOceanApiException(e);
}
catch(const std::exception& e) {
std::tie(status_code, result) = handleStdException(e);
}
catch(...) {
std::tie(status_code, result) = handleUnspecifiedException();
}
if (status_code == 200) {
const constexpr auto contentType = "application/json";
returnResponse(session, 200, result.empty() ? "Successfully retrieved run nodes details" : result, contentType);
return;
}
if (status_code == 401) {
const constexpr auto contentType = "text/plain";
returnResponse(session, 401, result.empty() ? "Authentication failed - incorrect username and/or password" : result, contentType);
return;
}
if (status_code == 403) {
const constexpr auto contentType = "text/plain";
returnResponse(session, 403, result.empty() ? "Jenkins requires authentication - please set username and password" : result, contentType);
return;
}
defaultSessionClose(session, status_code, result);
}
std::pair<int, std::vector<std::shared_ptr<PipelineRunNode>>> BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsRunNodesResource::handler_GET(
std::string const & organization, std::string const & pipeline, std::string const & run)
{
throw BlueOceanApiException(501, "Not implemented");
}
std::string BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsRunNodesResource::extractBodyContent(const std::shared_ptr<restbed::Session>& session) {
const auto request = session->get_request();
int content_length = request->get_header("Content-Length", 0);
std::string bodyContent;
session->fetch(content_length,
[&bodyContent](const std::shared_ptr<restbed::Session> session,
const restbed::Bytes &body) {
bodyContent = restbed::String::format(
"%.*s\n", (int)body.size(), body.data());
});
return bodyContent;
}
BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsResource::BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsResource(const std::string& context /* = "" */)
{
this->set_path(context + "/blue/rest/organizations/{organization: .*}/pipelines/{pipeline: .*}/runs/");
this->set_method_handler("GET",
std::bind(&BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsResource::handler_GET_internal, this,
std::placeholders::_1));
this->set_method_handler("POST",
std::bind(&BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsResource::handler_POST_internal, this,
std::placeholders::_1));
}
BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsResource::~BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsResource()
{
}
std::pair<int, std::string> BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsResource::handleBlueOceanApiException(const BlueOceanApiException& e)
{
return std::make_pair<int, std::string>(e.getStatus(), e.what());
}
std::pair<int, std::string> BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsResource::handleStdException(const std::exception& e)
{
return std::make_pair<int, std::string>(500, e.what());
}
std::pair<int, std::string> BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsResource::handleUnspecifiedException()
{
return std::make_pair<int, std::string>(500, "Unknown exception occurred");
}
void BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsResource::setResponseHeader(const std::shared_ptr<restbed::Session>& session, const std::string& header)
{
session->set_header(header, "");
}
void BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsResource::returnResponse(const std::shared_ptr<restbed::Session>& session, const int status, const std::string& result, const std::string& contentType)
{
session->close(status, result, { {"Connection", "close"}, {"Content-Type", contentType} });
}
void BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsResource::defaultSessionClose(const std::shared_ptr<restbed::Session>& session, const int status, const std::string& result)
{
session->close(status, result, { {"Connection", "close"} });
}
void BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsResource::handler_GET_internal(const std::shared_ptr<restbed::Session> session)
{
const auto request = session->get_request();
// Getting the path params
const std::string organization = getPathParam_organization(request);
const std::string pipeline = getPathParam_pipeline(request);
int status_code = 500;
std::vector<std::shared_ptr<PipelineRun>> resultObject = std::vector<std::shared_ptr<PipelineRun>>();
std::string result = "";
try {
std::tie(status_code, resultObject) =
handler_GET(organization, pipeline);
}
catch(const BlueOceanApiException& e) {
std::tie(status_code, result) = handleBlueOceanApiException(e);
}
catch(const std::exception& e) {
std::tie(status_code, result) = handleStdException(e);
}
catch(...) {
std::tie(status_code, result) = handleUnspecifiedException();
}
if (status_code == 200) {
const constexpr auto contentType = "application/json";
returnResponse(session, 200, result.empty() ? "Successfully retrieved runs details" : result, contentType);
return;
}
if (status_code == 401) {
const constexpr auto contentType = "text/plain";
returnResponse(session, 401, result.empty() ? "Authentication failed - incorrect username and/or password" : result, contentType);
return;
}
if (status_code == 403) {
const constexpr auto contentType = "text/plain";
returnResponse(session, 403, result.empty() ? "Jenkins requires authentication - please set username and password" : result, contentType);
return;
}
defaultSessionClose(session, status_code, result);
}
// x-extension
void BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsResource::handler_POST_internal(const std::shared_ptr<restbed::Session> session) {
const auto request = session->get_request();
// Getting the path params
const std::string organization = getPathParam_organization_x_extension(request);
const std::string pipeline = getPathParam_pipeline_x_extension(request);
int status_code = 500;
std::shared_ptr<QueueItemImpl> resultObject = std::make_shared<QueueItemImpl>();
std::string result = "";
try {
std::tie(status_code, resultObject) =
handler_POST(organization, pipeline);
}
catch(const BlueOceanApiException& e) {
std::tie(status_code, result) = handleBlueOceanApiException(e);
}
catch(const std::exception& e) {
std::tie(status_code, result) = handleStdException(e);
}
catch(...) {
std::tie(status_code, result) = handleUnspecifiedException();
}
if (status_code == 200) {
result = resultObject->toJsonString();
const constexpr auto contentType = "application/json";
returnResponse(session, 200, result.empty() ? "Successfully started a build" : result, contentType);
return;
}
if (status_code == 401) {
const constexpr auto contentType = "text/plain";
returnResponse(session, 401, result.empty() ? "Authentication failed - incorrect username and/or password" : result, contentType);
return;
}
if (status_code == 403) {
const constexpr auto contentType = "text/plain";
returnResponse(session, 403, result.empty() ? "Jenkins requires authentication - please set username and password" : result, contentType);
return;
}
defaultSessionClose(session, status_code, result);
}
std::pair<int, std::vector<std::shared_ptr<PipelineRun>>> BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsResource::handler_GET(
std::string const & organization, std::string const & pipeline)
{
throw BlueOceanApiException(501, "Not implemented");
}
std::pair<int, std::shared_ptr<QueueItemImpl>> BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsResource::handler_POST(
std::string const & organization, std::string const & pipeline)
{
throw BlueOceanApiException(501, "Not implemented");
}
std::string BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsResource::extractBodyContent(const std::shared_ptr<restbed::Session>& session) {
const auto request = session->get_request();
int content_length = request->get_header("Content-Length", 0);
std::string bodyContent;
session->fetch(content_length,
[&bodyContent](const std::shared_ptr<restbed::Session> session,
const restbed::Bytes &body) {
bodyContent = restbed::String::format(
"%.*s\n", (int)body.size(), body.data());
});
return bodyContent;
}
BlueOceanApiBlueRestOrganizationsOrganizationPipelinesResource::BlueOceanApiBlueRestOrganizationsOrganizationPipelinesResource(const std::string& context /* = "" */)
{
this->set_path(context + "/blue/rest/organizations/{organization: .*}/pipelines//");
this->set_method_handler("GET",
std::bind(&BlueOceanApiBlueRestOrganizationsOrganizationPipelinesResource::handler_GET_internal, this,
std::placeholders::_1));
}
BlueOceanApiBlueRestOrganizationsOrganizationPipelinesResource::~BlueOceanApiBlueRestOrganizationsOrganizationPipelinesResource()
{
}
std::pair<int, std::string> BlueOceanApiBlueRestOrganizationsOrganizationPipelinesResource::handleBlueOceanApiException(const BlueOceanApiException& e)
{
return std::make_pair<int, std::string>(e.getStatus(), e.what());
}
std::pair<int, std::string> BlueOceanApiBlueRestOrganizationsOrganizationPipelinesResource::handleStdException(const std::exception& e)
{
return std::make_pair<int, std::string>(500, e.what());
}
std::pair<int, std::string> BlueOceanApiBlueRestOrganizationsOrganizationPipelinesResource::handleUnspecifiedException()
{
return std::make_pair<int, std::string>(500, "Unknown exception occurred");
}
void BlueOceanApiBlueRestOrganizationsOrganizationPipelinesResource::setResponseHeader(const std::shared_ptr<restbed::Session>& session, const std::string& header)
{
session->set_header(header, "");
}
void BlueOceanApiBlueRestOrganizationsOrganizationPipelinesResource::returnResponse(const std::shared_ptr<restbed::Session>& session, const int status, const std::string& result, const std::string& contentType)
{
session->close(status, result, { {"Connection", "close"}, {"Content-Type", contentType} });
}
void BlueOceanApiBlueRestOrganizationsOrganizationPipelinesResource::defaultSessionClose(const std::shared_ptr<restbed::Session>& session, const int status, const std::string& result)
{
session->close(status, result, { {"Connection", "close"} });
}
void BlueOceanApiBlueRestOrganizationsOrganizationPipelinesResource::handler_GET_internal(const std::shared_ptr<restbed::Session> session)
{
const auto request = session->get_request();
// Getting the path params
const std::string organization = getPathParam_organization(request);
int status_code = 500;
std::vector<std::shared_ptr<Pipeline>> resultObject = std::vector<std::shared_ptr<Pipeline>>();
std::string result = "";
try {
std::tie(status_code, resultObject) =
handler_GET(organization);
}
catch(const BlueOceanApiException& e) {
std::tie(status_code, result) = handleBlueOceanApiException(e);
}
catch(const std::exception& e) {
std::tie(status_code, result) = handleStdException(e);
}
catch(...) {
std::tie(status_code, result) = handleUnspecifiedException();
}
if (status_code == 200) {
const constexpr auto contentType = "application/json";
returnResponse(session, 200, result.empty() ? "Successfully retrieved pipelines details" : result, contentType);
return;
}
if (status_code == 401) {
const constexpr auto contentType = "text/plain";
returnResponse(session, 401, result.empty() ? "Authentication failed - incorrect username and/or password" : result, contentType);
return;
}
if (status_code == 403) {
const constexpr auto contentType = "text/plain";
returnResponse(session, 403, result.empty() ? "Jenkins requires authentication - please set username and password" : result, contentType);
return;
}
defaultSessionClose(session, status_code, result);
}
std::pair<int, std::vector<std::shared_ptr<Pipeline>>> BlueOceanApiBlueRestOrganizationsOrganizationPipelinesResource::handler_GET(
std::string const & organization)
{
throw BlueOceanApiException(501, "Not implemented");
}
std::string BlueOceanApiBlueRestOrganizationsOrganizationPipelinesResource::extractBodyContent(const std::shared_ptr<restbed::Session>& session) {
const auto request = session->get_request();
int content_length = request->get_header("Content-Length", 0);
std::string bodyContent;
session->fetch(content_length,
[&bodyContent](const std::shared_ptr<restbed::Session> session,
const restbed::Bytes &body) {
bodyContent = restbed::String::format(
"%.*s\n", (int)body.size(), body.data());
});
return bodyContent;
}
BlueOceanApiBlueRestOrganizationsOrganizationScmScmResource::BlueOceanApiBlueRestOrganizationsOrganizationScmScmResource(const std::string& context /* = "" */)
{
this->set_path(context + "/blue/rest/organizations/{organization: .*}/scm/{scm: .*}/");
this->set_method_handler("GET",
std::bind(&BlueOceanApiBlueRestOrganizationsOrganizationScmScmResource::handler_GET_internal, this,
std::placeholders::_1));
}
BlueOceanApiBlueRestOrganizationsOrganizationScmScmResource::~BlueOceanApiBlueRestOrganizationsOrganizationScmScmResource()
{
}
std::pair<int, std::string> BlueOceanApiBlueRestOrganizationsOrganizationScmScmResource::handleBlueOceanApiException(const BlueOceanApiException& e)
{
return std::make_pair<int, std::string>(e.getStatus(), e.what());
}
std::pair<int, std::string> BlueOceanApiBlueRestOrganizationsOrganizationScmScmResource::handleStdException(const std::exception& e)
{
return std::make_pair<int, std::string>(500, e.what());
}
std::pair<int, std::string> BlueOceanApiBlueRestOrganizationsOrganizationScmScmResource::handleUnspecifiedException()
{
return std::make_pair<int, std::string>(500, "Unknown exception occurred");
}
void BlueOceanApiBlueRestOrganizationsOrganizationScmScmResource::setResponseHeader(const std::shared_ptr<restbed::Session>& session, const std::string& header)
{
session->set_header(header, "");
}
void BlueOceanApiBlueRestOrganizationsOrganizationScmScmResource::returnResponse(const std::shared_ptr<restbed::Session>& session, const int status, const std::string& result, const std::string& contentType)
{
session->close(status, result, { {"Connection", "close"}, {"Content-Type", contentType} });
}
void BlueOceanApiBlueRestOrganizationsOrganizationScmScmResource::defaultSessionClose(const std::shared_ptr<restbed::Session>& session, const int status, const std::string& result)
{
session->close(status, result, { {"Connection", "close"} });
}
void BlueOceanApiBlueRestOrganizationsOrganizationScmScmResource::handler_GET_internal(const std::shared_ptr<restbed::Session> session)
{
const auto request = session->get_request();
// Getting the path params
const std::string organization = getPathParam_organization(request);
const std::string scm = getPathParam_scm(request);
int status_code = 500;
std::shared_ptr<GithubScm> resultObject = std::make_shared<GithubScm>();
std::string result = "";
try {
std::tie(status_code, resultObject) =
handler_GET(organization, scm);
}
catch(const BlueOceanApiException& e) {
std::tie(status_code, result) = handleBlueOceanApiException(e);
}
catch(const std::exception& e) {
std::tie(status_code, result) = handleStdException(e);
}
catch(...) {
std::tie(status_code, result) = handleUnspecifiedException();
}
if (status_code == 200) {
result = resultObject->toJsonString();
const constexpr auto contentType = "application/json";
returnResponse(session, 200, result.empty() ? "Successfully retrieved SCM details" : result, contentType);
return;
}
if (status_code == 401) {
const constexpr auto contentType = "text/plain";
returnResponse(session, 401, result.empty() ? "Authentication failed - incorrect username and/or password" : result, contentType);
return;
}
if (status_code == 403) {
const constexpr auto contentType = "text/plain";
returnResponse(session, 403, result.empty() ? "Jenkins requires authentication - please set username and password" : result, contentType);
return;
}
defaultSessionClose(session, status_code, result);
}
std::pair<int, std::shared_ptr<GithubScm>> BlueOceanApiBlueRestOrganizationsOrganizationScmScmResource::handler_GET(
std::string const & organization, std::string const & scm)
{
throw BlueOceanApiException(501, "Not implemented");
}
std::string BlueOceanApiBlueRestOrganizationsOrganizationScmScmResource::extractBodyContent(const std::shared_ptr<restbed::Session>& session) {
const auto request = session->get_request();
int content_length = request->get_header("Content-Length", 0);
std::string bodyContent;
session->fetch(content_length,
[&bodyContent](const std::shared_ptr<restbed::Session> session,
const restbed::Bytes &body) {
bodyContent = restbed::String::format(
"%.*s\n", (int)body.size(), body.data());
});
return bodyContent;
}
BlueOceanApiBlueRestOrganizationsOrganizationScmScmOrganizationsScmOrganisationRepositoriesResource::BlueOceanApiBlueRestOrganizationsOrganizationScmScmOrganizationsScmOrganisationRepositoriesResource(const std::string& context /* = "" */)
{
this->set_path(context + "/blue/rest/organizations/{organization: .*}/scm/{scm: .*}/organizations/{scmOrganisation: .*}/repositories/");
this->set_method_handler("GET",
std::bind(&BlueOceanApiBlueRestOrganizationsOrganizationScmScmOrganizationsScmOrganisationRepositoriesResource::handler_GET_internal, this,
std::placeholders::_1));
}
BlueOceanApiBlueRestOrganizationsOrganizationScmScmOrganizationsScmOrganisationRepositoriesResource::~BlueOceanApiBlueRestOrganizationsOrganizationScmScmOrganizationsScmOrganisationRepositoriesResource()
{
}
std::pair<int, std::string> BlueOceanApiBlueRestOrganizationsOrganizationScmScmOrganizationsScmOrganisationRepositoriesResource::handleBlueOceanApiException(const BlueOceanApiException& e)
{
return std::make_pair<int, std::string>(e.getStatus(), e.what());
}
std::pair<int, std::string> BlueOceanApiBlueRestOrganizationsOrganizationScmScmOrganizationsScmOrganisationRepositoriesResource::handleStdException(const std::exception& e)
{
return std::make_pair<int, std::string>(500, e.what());
}
std::pair<int, std::string> BlueOceanApiBlueRestOrganizationsOrganizationScmScmOrganizationsScmOrganisationRepositoriesResource::handleUnspecifiedException()
{
return std::make_pair<int, std::string>(500, "Unknown exception occurred");
}
void BlueOceanApiBlueRestOrganizationsOrganizationScmScmOrganizationsScmOrganisationRepositoriesResource::setResponseHeader(const std::shared_ptr<restbed::Session>& session, const std::string& header)
{
session->set_header(header, "");
}
void BlueOceanApiBlueRestOrganizationsOrganizationScmScmOrganizationsScmOrganisationRepositoriesResource::returnResponse(const std::shared_ptr<restbed::Session>& session, const int status, const std::string& result, const std::string& contentType)
{
session->close(status, result, { {"Connection", "close"}, {"Content-Type", contentType} });
}
void BlueOceanApiBlueRestOrganizationsOrganizationScmScmOrganizationsScmOrganisationRepositoriesResource::defaultSessionClose(const std::shared_ptr<restbed::Session>& session, const int status, const std::string& result)
{
session->close(status, result, { {"Connection", "close"} });
}
void BlueOceanApiBlueRestOrganizationsOrganizationScmScmOrganizationsScmOrganisationRepositoriesResource::handler_GET_internal(const std::shared_ptr<restbed::Session> session)
{
const auto request = session->get_request();
// Getting the path params
const std::string organization = getPathParam_organization(request);
const std::string scm = getPathParam_scm(request);
const std::string scmOrganisation = getPathParam_scmOrganisation(request);
// Getting the query params
const std::string credentialId = getQueryParam_credentialId(request);
const int32_t pageSize = getQueryParam_pageSize(request);
const int32_t pageNumber = getQueryParam_pageNumber(request);
int status_code = 500;
std::vector<std::shared_ptr<GithubOrganization>> resultObject = std::vector<std::shared_ptr<GithubOrganization>>();
std::string result = "";
try {
std::tie(status_code, resultObject) =
handler_GET(organization, scm, scmOrganisation, credentialId, pageSize, pageNumber);
}
catch(const BlueOceanApiException& e) {
std::tie(status_code, result) = handleBlueOceanApiException(e);
}
catch(const std::exception& e) {
std::tie(status_code, result) = handleStdException(e);
}
catch(...) {
std::tie(status_code, result) = handleUnspecifiedException();
}
if (status_code == 200) {
const constexpr auto contentType = "application/json";
returnResponse(session, 200, result.empty() ? "Successfully retrieved SCM organization repositories details" : result, contentType);
return;
}
if (status_code == 401) {
const constexpr auto contentType = "text/plain";
returnResponse(session, 401, result.empty() ? "Authentication failed - incorrect username and/or password" : result, contentType);
return;
}
if (status_code == 403) {
const constexpr auto contentType = "text/plain";
returnResponse(session, 403, result.empty() ? "Jenkins requires authentication - please set username and password" : result, contentType);
return;
}
defaultSessionClose(session, status_code, result);
}
std::pair<int, std::vector<std::shared_ptr<GithubOrganization>>> BlueOceanApiBlueRestOrganizationsOrganizationScmScmOrganizationsScmOrganisationRepositoriesResource::handler_GET(
std::string const & organization, std::string const & scm, std::string const & scmOrganisation, std::string const & credentialId, int32_t const & pageSize, int32_t const & pageNumber)
{
throw BlueOceanApiException(501, "Not implemented");
}
std::string BlueOceanApiBlueRestOrganizationsOrganizationScmScmOrganizationsScmOrganisationRepositoriesResource::extractBodyContent(const std::shared_ptr<restbed::Session>& session) {
const auto request = session->get_request();
int content_length = request->get_header("Content-Length", 0);
std::string bodyContent;
session->fetch(content_length,
[&bodyContent](const std::shared_ptr<restbed::Session> session,
const restbed::Bytes &body) {
bodyContent = restbed::String::format(
"%.*s\n", (int)body.size(), body.data());
});
return bodyContent;
}
BlueOceanApiBlueRestOrganizationsOrganizationScmScmOrganizationsScmOrganisationRepositoriesRepositoryResource::BlueOceanApiBlueRestOrganizationsOrganizationScmScmOrganizationsScmOrganisationRepositoriesRepositoryResource(const std::string& context /* = "" */)
{
this->set_path(context + "/blue/rest/organizations/{organization: .*}/scm/{scm: .*}/organizations/{scmOrganisation: .*}/repositories/{repository: .*}/");
this->set_method_handler("GET",
std::bind(&BlueOceanApiBlueRestOrganizationsOrganizationScmScmOrganizationsScmOrganisationRepositoriesRepositoryResource::handler_GET_internal, this,
std::placeholders::_1));
}
BlueOceanApiBlueRestOrganizationsOrganizationScmScmOrganizationsScmOrganisationRepositoriesRepositoryResource::~BlueOceanApiBlueRestOrganizationsOrganizationScmScmOrganizationsScmOrganisationRepositoriesRepositoryResource()
{
}
std::pair<int, std::string> BlueOceanApiBlueRestOrganizationsOrganizationScmScmOrganizationsScmOrganisationRepositoriesRepositoryResource::handleBlueOceanApiException(const BlueOceanApiException& e)
{
return std::make_pair<int, std::string>(e.getStatus(), e.what());
}
std::pair<int, std::string> BlueOceanApiBlueRestOrganizationsOrganizationScmScmOrganizationsScmOrganisationRepositoriesRepositoryResource::handleStdException(const std::exception& e)
{
return std::make_pair<int, std::string>(500, e.what());
}
std::pair<int, std::string> BlueOceanApiBlueRestOrganizationsOrganizationScmScmOrganizationsScmOrganisationRepositoriesRepositoryResource::handleUnspecifiedException()
{
return std::make_pair<int, std::string>(500, "Unknown exception occurred");
}
void BlueOceanApiBlueRestOrganizationsOrganizationScmScmOrganizationsScmOrganisationRepositoriesRepositoryResource::setResponseHeader(const std::shared_ptr<restbed::Session>& session, const std::string& header)
{
session->set_header(header, "");
}
void BlueOceanApiBlueRestOrganizationsOrganizationScmScmOrganizationsScmOrganisationRepositoriesRepositoryResource::returnResponse(const std::shared_ptr<restbed::Session>& session, const int status, const std::string& result, const std::string& contentType)
{
session->close(status, result, { {"Connection", "close"}, {"Content-Type", contentType} });
}
void BlueOceanApiBlueRestOrganizationsOrganizationScmScmOrganizationsScmOrganisationRepositoriesRepositoryResource::defaultSessionClose(const std::shared_ptr<restbed::Session>& session, const int status, const std::string& result)
{
session->close(status, result, { {"Connection", "close"} });
}
void BlueOceanApiBlueRestOrganizationsOrganizationScmScmOrganizationsScmOrganisationRepositoriesRepositoryResource::handler_GET_internal(const std::shared_ptr<restbed::Session> session)
{
const auto request = session->get_request();
// Getting the path params
const std::string organization = getPathParam_organization(request);
const std::string scm = getPathParam_scm(request);
const std::string scmOrganisation = getPathParam_scmOrganisation(request);
const std::string repository = getPathParam_repository(request);
// Getting the query params
const std::string credentialId = getQueryParam_credentialId(request);
int status_code = 500;
std::vector<std::shared_ptr<GithubOrganization>> resultObject = std::vector<std::shared_ptr<GithubOrganization>>();
std::string result = "";
try {
std::tie(status_code, resultObject) =
handler_GET(organization, scm, scmOrganisation, repository, credentialId);
}
catch(const BlueOceanApiException& e) {
std::tie(status_code, result) = handleBlueOceanApiException(e);
}
catch(const std::exception& e) {
std::tie(status_code, result) = handleStdException(e);
}
catch(...) {
std::tie(status_code, result) = handleUnspecifiedException();
}
if (status_code == 200) {
const constexpr auto contentType = "application/json";
returnResponse(session, 200, result.empty() ? "Successfully retrieved SCM organizations details" : result, contentType);
return;
}
if (status_code == 401) {
const constexpr auto contentType = "text/plain";
returnResponse(session, 401, result.empty() ? "Authentication failed - incorrect username and/or password" : result, contentType);
return;
}
if (status_code == 403) {
const constexpr auto contentType = "text/plain";
returnResponse(session, 403, result.empty() ? "Jenkins requires authentication - please set username and password" : result, contentType);
return;
}
defaultSessionClose(session, status_code, result);
}
std::pair<int, std::vector<std::shared_ptr<GithubOrganization>>> BlueOceanApiBlueRestOrganizationsOrganizationScmScmOrganizationsScmOrganisationRepositoriesRepositoryResource::handler_GET(
std::string const & organization, std::string const & scm, std::string const & scmOrganisation, std::string const & repository, std::string const & credentialId)
{
throw BlueOceanApiException(501, "Not implemented");
}
std::string BlueOceanApiBlueRestOrganizationsOrganizationScmScmOrganizationsScmOrganisationRepositoriesRepositoryResource::extractBodyContent(const std::shared_ptr<restbed::Session>& session) {
const auto request = session->get_request();
int content_length = request->get_header("Content-Length", 0);
std::string bodyContent;
session->fetch(content_length,
[&bodyContent](const std::shared_ptr<restbed::Session> session,
const restbed::Bytes &body) {
bodyContent = restbed::String::format(
"%.*s\n", (int)body.size(), body.data());
});
return bodyContent;
}
BlueOceanApiBlueRestOrganizationsOrganizationScmScmOrganizationsResource::BlueOceanApiBlueRestOrganizationsOrganizationScmScmOrganizationsResource(const std::string& context /* = "" */)
{
this->set_path(context + "/blue/rest/organizations/{organization: .*}/scm/{scm: .*}/organizations/");
this->set_method_handler("GET",
std::bind(&BlueOceanApiBlueRestOrganizationsOrganizationScmScmOrganizationsResource::handler_GET_internal, this,
std::placeholders::_1));
}
BlueOceanApiBlueRestOrganizationsOrganizationScmScmOrganizationsResource::~BlueOceanApiBlueRestOrganizationsOrganizationScmScmOrganizationsResource()
{
}
std::pair<int, std::string> BlueOceanApiBlueRestOrganizationsOrganizationScmScmOrganizationsResource::handleBlueOceanApiException(const BlueOceanApiException& e)
{
return std::make_pair<int, std::string>(e.getStatus(), e.what());
}
std::pair<int, std::string> BlueOceanApiBlueRestOrganizationsOrganizationScmScmOrganizationsResource::handleStdException(const std::exception& e)
{
return std::make_pair<int, std::string>(500, e.what());
}
std::pair<int, std::string> BlueOceanApiBlueRestOrganizationsOrganizationScmScmOrganizationsResource::handleUnspecifiedException()
{
return std::make_pair<int, std::string>(500, "Unknown exception occurred");
}
void BlueOceanApiBlueRestOrganizationsOrganizationScmScmOrganizationsResource::setResponseHeader(const std::shared_ptr<restbed::Session>& session, const std::string& header)
{
session->set_header(header, "");
}
void BlueOceanApiBlueRestOrganizationsOrganizationScmScmOrganizationsResource::returnResponse(const std::shared_ptr<restbed::Session>& session, const int status, const std::string& result, const std::string& contentType)
{
session->close(status, result, { {"Connection", "close"}, {"Content-Type", contentType} });
}
void BlueOceanApiBlueRestOrganizationsOrganizationScmScmOrganizationsResource::defaultSessionClose(const std::shared_ptr<restbed::Session>& session, const int status, const std::string& result)
{
session->close(status, result, { {"Connection", "close"} });
}
void BlueOceanApiBlueRestOrganizationsOrganizationScmScmOrganizationsResource::handler_GET_internal(const std::shared_ptr<restbed::Session> session)
{
const auto request = session->get_request();
// Getting the path params
const std::string organization = getPathParam_organization(request);
const std::string scm = getPathParam_scm(request);
// Getting the query params
const std::string credentialId = getQueryParam_credentialId(request);
int status_code = 500;
std::vector<std::shared_ptr<GithubOrganization>> resultObject = std::vector<std::shared_ptr<GithubOrganization>>();
std::string result = "";
try {
std::tie(status_code, resultObject) =
handler_GET(organization, scm, credentialId);
}
catch(const BlueOceanApiException& e) {
std::tie(status_code, result) = handleBlueOceanApiException(e);
}
catch(const std::exception& e) {
std::tie(status_code, result) = handleStdException(e);
}
catch(...) {
std::tie(status_code, result) = handleUnspecifiedException();
}
if (status_code == 200) {
const constexpr auto contentType = "application/json";
returnResponse(session, 200, result.empty() ? "Successfully retrieved SCM organizations details" : result, contentType);
return;
}
if (status_code == 401) {
const constexpr auto contentType = "text/plain";
returnResponse(session, 401, result.empty() ? "Authentication failed - incorrect username and/or password" : result, contentType);
return;
}
if (status_code == 403) {
const constexpr auto contentType = "text/plain";
returnResponse(session, 403, result.empty() ? "Jenkins requires authentication - please set username and password" : result, contentType);
return;
}
defaultSessionClose(session, status_code, result);
}
std::pair<int, std::vector<std::shared_ptr<GithubOrganization>>> BlueOceanApiBlueRestOrganizationsOrganizationScmScmOrganizationsResource::handler_GET(
std::string const & organization, std::string const & scm, std::string const & credentialId)
{
throw BlueOceanApiException(501, "Not implemented");
}
std::string BlueOceanApiBlueRestOrganizationsOrganizationScmScmOrganizationsResource::extractBodyContent(const std::shared_ptr<restbed::Session>& session) {
const auto request = session->get_request();
int content_length = request->get_header("Content-Length", 0);
std::string bodyContent;
session->fetch(content_length,
[&bodyContent](const std::shared_ptr<restbed::Session> session,
const restbed::Bytes &body) {
bodyContent = restbed::String::format(
"%.*s\n", (int)body.size(), body.data());
});
return bodyContent;
}
BlueOceanApiBlueRestOrganizationsOrganizationUsersUserResource::BlueOceanApiBlueRestOrganizationsOrganizationUsersUserResource(const std::string& context /* = "" */)
{
this->set_path(context + "/blue/rest/organizations/{organization: .*}/users/{user: .*}/");
this->set_method_handler("GET",
std::bind(&BlueOceanApiBlueRestOrganizationsOrganizationUsersUserResource::handler_GET_internal, this,
std::placeholders::_1));
}
BlueOceanApiBlueRestOrganizationsOrganizationUsersUserResource::~BlueOceanApiBlueRestOrganizationsOrganizationUsersUserResource()
{
}
std::pair<int, std::string> BlueOceanApiBlueRestOrganizationsOrganizationUsersUserResource::handleBlueOceanApiException(const BlueOceanApiException& e)
{
return std::make_pair<int, std::string>(e.getStatus(), e.what());
}
std::pair<int, std::string> BlueOceanApiBlueRestOrganizationsOrganizationUsersUserResource::handleStdException(const std::exception& e)
{
return std::make_pair<int, std::string>(500, e.what());
}
std::pair<int, std::string> BlueOceanApiBlueRestOrganizationsOrganizationUsersUserResource::handleUnspecifiedException()
{
return std::make_pair<int, std::string>(500, "Unknown exception occurred");
}
void BlueOceanApiBlueRestOrganizationsOrganizationUsersUserResource::setResponseHeader(const std::shared_ptr<restbed::Session>& session, const std::string& header)
{
session->set_header(header, "");
}
void BlueOceanApiBlueRestOrganizationsOrganizationUsersUserResource::returnResponse(const std::shared_ptr<restbed::Session>& session, const int status, const std::string& result, const std::string& contentType)
{
session->close(status, result, { {"Connection", "close"}, {"Content-Type", contentType} });
}
void BlueOceanApiBlueRestOrganizationsOrganizationUsersUserResource::defaultSessionClose(const std::shared_ptr<restbed::Session>& session, const int status, const std::string& result)
{
session->close(status, result, { {"Connection", "close"} });
}
void BlueOceanApiBlueRestOrganizationsOrganizationUsersUserResource::handler_GET_internal(const std::shared_ptr<restbed::Session> session)
{
const auto request = session->get_request();
// Getting the path params
const std::string organization = getPathParam_organization(request);
const std::string user = getPathParam_user(request);
int status_code = 500;
std::shared_ptr<User> resultObject = std::make_shared<User>();
std::string result = "";
try {
std::tie(status_code, resultObject) =
handler_GET(organization, user);
}
catch(const BlueOceanApiException& e) {
std::tie(status_code, result) = handleBlueOceanApiException(e);
}
catch(const std::exception& e) {
std::tie(status_code, result) = handleStdException(e);
}
catch(...) {
std::tie(status_code, result) = handleUnspecifiedException();
}
if (status_code == 200) {
result = resultObject->toJsonString();
const constexpr auto contentType = "application/json";
returnResponse(session, 200, result.empty() ? "Successfully retrieved users details" : result, contentType);
return;
}
if (status_code == 401) {
const constexpr auto contentType = "text/plain";
returnResponse(session, 401, result.empty() ? "Authentication failed - incorrect username and/or password" : result, contentType);
return;
}
if (status_code == 403) {
const constexpr auto contentType = "text/plain";
returnResponse(session, 403, result.empty() ? "Jenkins requires authentication - please set username and password" : result, contentType);
return;
}
defaultSessionClose(session, status_code, result);
}
std::pair<int, std::shared_ptr<User>> BlueOceanApiBlueRestOrganizationsOrganizationUsersUserResource::handler_GET(
std::string const & organization, std::string const & user)
{
throw BlueOceanApiException(501, "Not implemented");
}
std::string BlueOceanApiBlueRestOrganizationsOrganizationUsersUserResource::extractBodyContent(const std::shared_ptr<restbed::Session>& session) {
const auto request = session->get_request();
int content_length = request->get_header("Content-Length", 0);
std::string bodyContent;
session->fetch(content_length,
[&bodyContent](const std::shared_ptr<restbed::Session> session,
const restbed::Bytes &body) {
bodyContent = restbed::String::format(
"%.*s\n", (int)body.size(), body.data());
});
return bodyContent;
}
BlueOceanApiBlueRestUsersUserFavoritesResource::BlueOceanApiBlueRestUsersUserFavoritesResource(const std::string& context /* = "" */)
{
this->set_path(context + "/blue/rest/users/{user: .*}/favorites/");
this->set_method_handler("GET",
std::bind(&BlueOceanApiBlueRestUsersUserFavoritesResource::handler_GET_internal, this,
std::placeholders::_1));
}
BlueOceanApiBlueRestUsersUserFavoritesResource::~BlueOceanApiBlueRestUsersUserFavoritesResource()
{
}
std::pair<int, std::string> BlueOceanApiBlueRestUsersUserFavoritesResource::handleBlueOceanApiException(const BlueOceanApiException& e)
{
return std::make_pair<int, std::string>(e.getStatus(), e.what());
}
std::pair<int, std::string> BlueOceanApiBlueRestUsersUserFavoritesResource::handleStdException(const std::exception& e)
{
return std::make_pair<int, std::string>(500, e.what());
}
std::pair<int, std::string> BlueOceanApiBlueRestUsersUserFavoritesResource::handleUnspecifiedException()
{
return std::make_pair<int, std::string>(500, "Unknown exception occurred");
}
void BlueOceanApiBlueRestUsersUserFavoritesResource::setResponseHeader(const std::shared_ptr<restbed::Session>& session, const std::string& header)
{
session->set_header(header, "");
}
void BlueOceanApiBlueRestUsersUserFavoritesResource::returnResponse(const std::shared_ptr<restbed::Session>& session, const int status, const std::string& result, const std::string& contentType)
{
session->close(status, result, { {"Connection", "close"}, {"Content-Type", contentType} });
}
void BlueOceanApiBlueRestUsersUserFavoritesResource::defaultSessionClose(const std::shared_ptr<restbed::Session>& session, const int status, const std::string& result)
{
session->close(status, result, { {"Connection", "close"} });
}
void BlueOceanApiBlueRestUsersUserFavoritesResource::handler_GET_internal(const std::shared_ptr<restbed::Session> session)
{
const auto request = session->get_request();
// Getting the path params
const std::string user = getPathParam_user(request);
int status_code = 500;
std::vector<std::shared_ptr<FavoriteImpl>> resultObject = std::vector<std::shared_ptr<FavoriteImpl>>();
std::string result = "";
try {
std::tie(status_code, resultObject) =
handler_GET(user);
}
catch(const BlueOceanApiException& e) {
std::tie(status_code, result) = handleBlueOceanApiException(e);
}
catch(const std::exception& e) {
std::tie(status_code, result) = handleStdException(e);
}
catch(...) {
std::tie(status_code, result) = handleUnspecifiedException();
}
if (status_code == 200) {
const constexpr auto contentType = "application/json";
returnResponse(session, 200, result.empty() ? "Successfully retrieved users favorites details" : result, contentType);
return;
}
if (status_code == 401) {
const constexpr auto contentType = "text/plain";
returnResponse(session, 401, result.empty() ? "Authentication failed - incorrect username and/or password" : result, contentType);
return;
}
if (status_code == 403) {
const constexpr auto contentType = "text/plain";
returnResponse(session, 403, result.empty() ? "Jenkins requires authentication - please set username and password" : result, contentType);
return;
}
defaultSessionClose(session, status_code, result);
}
std::pair<int, std::vector<std::shared_ptr<FavoriteImpl>>> BlueOceanApiBlueRestUsersUserFavoritesResource::handler_GET(
std::string const & user)
{
throw BlueOceanApiException(501, "Not implemented");
}
std::string BlueOceanApiBlueRestUsersUserFavoritesResource::extractBodyContent(const std::shared_ptr<restbed::Session>& session) {
const auto request = session->get_request();
int content_length = request->get_header("Content-Length", 0);
std::string bodyContent;
session->fetch(content_length,
[&bodyContent](const std::shared_ptr<restbed::Session> session,
const restbed::Bytes &body) {
bodyContent = restbed::String::format(
"%.*s\n", (int)body.size(), body.data());
});
return bodyContent;
}
BlueOceanApiBlueRestOrganizationsOrganizationUsersResource::BlueOceanApiBlueRestOrganizationsOrganizationUsersResource(const std::string& context /* = "" */)
{
this->set_path(context + "/blue/rest/organizations/{organization: .*}/users//");
this->set_method_handler("GET",
std::bind(&BlueOceanApiBlueRestOrganizationsOrganizationUsersResource::handler_GET_internal, this,
std::placeholders::_1));
}
BlueOceanApiBlueRestOrganizationsOrganizationUsersResource::~BlueOceanApiBlueRestOrganizationsOrganizationUsersResource()
{
}
std::pair<int, std::string> BlueOceanApiBlueRestOrganizationsOrganizationUsersResource::handleBlueOceanApiException(const BlueOceanApiException& e)
{
return std::make_pair<int, std::string>(e.getStatus(), e.what());
}
std::pair<int, std::string> BlueOceanApiBlueRestOrganizationsOrganizationUsersResource::handleStdException(const std::exception& e)
{
return std::make_pair<int, std::string>(500, e.what());
}
std::pair<int, std::string> BlueOceanApiBlueRestOrganizationsOrganizationUsersResource::handleUnspecifiedException()
{
return std::make_pair<int, std::string>(500, "Unknown exception occurred");
}
void BlueOceanApiBlueRestOrganizationsOrganizationUsersResource::setResponseHeader(const std::shared_ptr<restbed::Session>& session, const std::string& header)
{
session->set_header(header, "");
}
void BlueOceanApiBlueRestOrganizationsOrganizationUsersResource::returnResponse(const std::shared_ptr<restbed::Session>& session, const int status, const std::string& result, const std::string& contentType)
{
session->close(status, result, { {"Connection", "close"}, {"Content-Type", contentType} });
}
void BlueOceanApiBlueRestOrganizationsOrganizationUsersResource::defaultSessionClose(const std::shared_ptr<restbed::Session>& session, const int status, const std::string& result)
{
session->close(status, result, { {"Connection", "close"} });
}
void BlueOceanApiBlueRestOrganizationsOrganizationUsersResource::handler_GET_internal(const std::shared_ptr<restbed::Session> session)
{
const auto request = session->get_request();
// Getting the path params
const std::string organization = getPathParam_organization(request);
int status_code = 500;
std::shared_ptr<User> resultObject = std::make_shared<User>();
std::string result = "";
try {
std::tie(status_code, resultObject) =
handler_GET(organization);
}
catch(const BlueOceanApiException& e) {
std::tie(status_code, result) = handleBlueOceanApiException(e);
}
catch(const std::exception& e) {
std::tie(status_code, result) = handleStdException(e);
}
catch(...) {
std::tie(status_code, result) = handleUnspecifiedException();
}
if (status_code == 200) {
result = resultObject->toJsonString();
const constexpr auto contentType = "application/json";
returnResponse(session, 200, result.empty() ? "Successfully retrieved users details" : result, contentType);
return;
}
if (status_code == 401) {
const constexpr auto contentType = "text/plain";
returnResponse(session, 401, result.empty() ? "Authentication failed - incorrect username and/or password" : result, contentType);
return;
}
if (status_code == 403) {
const constexpr auto contentType = "text/plain";
returnResponse(session, 403, result.empty() ? "Jenkins requires authentication - please set username and password" : result, contentType);
return;
}
defaultSessionClose(session, status_code, result);
}
std::pair<int, std::shared_ptr<User>> BlueOceanApiBlueRestOrganizationsOrganizationUsersResource::handler_GET(
std::string const & organization)
{
throw BlueOceanApiException(501, "Not implemented");
}
std::string BlueOceanApiBlueRestOrganizationsOrganizationUsersResource::extractBodyContent(const std::shared_ptr<restbed::Session>& session) {
const auto request = session->get_request();
int content_length = request->get_header("Content-Length", 0);
std::string bodyContent;
session->fetch(content_length,
[&bodyContent](const std::shared_ptr<restbed::Session> session,
const restbed::Bytes &body) {
bodyContent = restbed::String::format(
"%.*s\n", (int)body.size(), body.data());
});
return bodyContent;
}
BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsRunReplayResource::BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsRunReplayResource(const std::string& context /* = "" */)
{
this->set_path(context + "/blue/rest/organizations/{organization: .*}/pipelines/{pipeline: .*}/runs/{run: .*}/replay/");
this->set_method_handler("POST",
std::bind(&BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsRunReplayResource::handler_POST_internal, this,
std::placeholders::_1));
}
BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsRunReplayResource::~BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsRunReplayResource()
{
}
std::pair<int, std::string> BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsRunReplayResource::handleBlueOceanApiException(const BlueOceanApiException& e)
{
return std::make_pair<int, std::string>(e.getStatus(), e.what());
}
std::pair<int, std::string> BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsRunReplayResource::handleStdException(const std::exception& e)
{
return std::make_pair<int, std::string>(500, e.what());
}
std::pair<int, std::string> BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsRunReplayResource::handleUnspecifiedException()
{
return std::make_pair<int, std::string>(500, "Unknown exception occurred");
}
void BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsRunReplayResource::setResponseHeader(const std::shared_ptr<restbed::Session>& session, const std::string& header)
{
session->set_header(header, "");
}
void BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsRunReplayResource::returnResponse(const std::shared_ptr<restbed::Session>& session, const int status, const std::string& result, const std::string& contentType)
{
session->close(status, result, { {"Connection", "close"}, {"Content-Type", contentType} });
}
void BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsRunReplayResource::defaultSessionClose(const std::shared_ptr<restbed::Session>& session, const int status, const std::string& result)
{
session->close(status, result, { {"Connection", "close"} });
}
void BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsRunReplayResource::handler_POST_internal(const std::shared_ptr<restbed::Session> session)
{
const auto request = session->get_request();
// Getting the path params
const std::string organization = getPathParam_organization(request);
const std::string pipeline = getPathParam_pipeline(request);
const std::string run = getPathParam_run(request);
int status_code = 500;
std::shared_ptr<QueueItemImpl> resultObject = std::make_shared<QueueItemImpl>();
std::string result = "";
try {
std::tie(status_code, resultObject) =
handler_POST(organization, pipeline, run);
}
catch(const BlueOceanApiException& e) {
std::tie(status_code, result) = handleBlueOceanApiException(e);
}
catch(const std::exception& e) {
std::tie(status_code, result) = handleStdException(e);
}
catch(...) {
std::tie(status_code, result) = handleUnspecifiedException();
}
if (status_code == 200) {
result = resultObject->toJsonString();
const constexpr auto contentType = "application/json";
returnResponse(session, 200, result.empty() ? "Successfully replayed a pipeline run" : result, contentType);
return;
}
if (status_code == 401) {
const constexpr auto contentType = "text/plain";
returnResponse(session, 401, result.empty() ? "Authentication failed - incorrect username and/or password" : result, contentType);
return;
}
if (status_code == 403) {
const constexpr auto contentType = "text/plain";
returnResponse(session, 403, result.empty() ? "Jenkins requires authentication - please set username and password" : result, contentType);
return;
}
defaultSessionClose(session, status_code, result);
}
std::pair<int, std::shared_ptr<QueueItemImpl>> BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsRunReplayResource::handler_POST(
std::string const & organization, std::string const & pipeline, std::string const & run)
{
throw BlueOceanApiException(501, "Not implemented");
}
std::string BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsRunReplayResource::extractBodyContent(const std::shared_ptr<restbed::Session>& session) {
const auto request = session->get_request();
int content_length = request->get_header("Content-Length", 0);
std::string bodyContent;
session->fetch(content_length,
[&bodyContent](const std::shared_ptr<restbed::Session> session,
const restbed::Bytes &body) {
bodyContent = restbed::String::format(
"%.*s\n", (int)body.size(), body.data());
});
return bodyContent;
}
BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineFavoriteResource::BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineFavoriteResource(const std::string& context /* = "" */)
{
this->set_path(context + "/blue/rest/organizations/{organization: .*}/pipelines/{pipeline: .*}/favorite/");
this->set_method_handler("PUT",
std::bind(&BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineFavoriteResource::handler_PUT_internal, this,
std::placeholders::_1));
}
BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineFavoriteResource::~BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineFavoriteResource()
{
}
std::pair<int, std::string> BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineFavoriteResource::handleBlueOceanApiException(const BlueOceanApiException& e)
{
return std::make_pair<int, std::string>(e.getStatus(), e.what());
}
std::pair<int, std::string> BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineFavoriteResource::handleStdException(const std::exception& e)
{
return std::make_pair<int, std::string>(500, e.what());
}
std::pair<int, std::string> BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineFavoriteResource::handleUnspecifiedException()
{
return std::make_pair<int, std::string>(500, "Unknown exception occurred");
}
void BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineFavoriteResource::setResponseHeader(const std::shared_ptr<restbed::Session>& session, const std::string& header)
{
session->set_header(header, "");
}
void BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineFavoriteResource::returnResponse(const std::shared_ptr<restbed::Session>& session, const int status, const std::string& result, const std::string& contentType)
{
session->close(status, result, { {"Connection", "close"}, {"Content-Type", contentType} });
}
void BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineFavoriteResource::defaultSessionClose(const std::shared_ptr<restbed::Session>& session, const int status, const std::string& result)
{
session->close(status, result, { {"Connection", "close"} });
}
void BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineFavoriteResource::handler_PUT_internal(const std::shared_ptr<restbed::Session> session)
{
const auto request = session->get_request();
std::string bodyContent = extractBodyContent(session);
// Get body params or form params here from the body content string
// Getting the path params
const std::string organization = getPathParam_organization(request);
const std::string pipeline = getPathParam_pipeline(request);
int status_code = 500;
std::shared_ptr<FavoriteImpl> resultObject = std::make_shared<FavoriteImpl>();
std::string result = "";
try {
std::tie(status_code, resultObject) =
handler_PUT(organization, pipeline, body);
}
catch(const BlueOceanApiException& e) {
std::tie(status_code, result) = handleBlueOceanApiException(e);
}
catch(const std::exception& e) {
std::tie(status_code, result) = handleStdException(e);
}
catch(...) {
std::tie(status_code, result) = handleUnspecifiedException();
}
if (status_code == 200) {
result = resultObject->toJsonString();
const constexpr auto contentType = "application/json";
returnResponse(session, 200, result.empty() ? "Successfully favorited/unfavorited a pipeline" : result, contentType);
return;
}
if (status_code == 401) {
const constexpr auto contentType = "text/plain";
returnResponse(session, 401, result.empty() ? "Authentication failed - incorrect username and/or password" : result, contentType);
return;
}
if (status_code == 403) {
const constexpr auto contentType = "text/plain";
returnResponse(session, 403, result.empty() ? "Jenkins requires authentication - please set username and password" : result, contentType);
return;
}
defaultSessionClose(session, status_code, result);
}
std::pair<int, std::shared_ptr<FavoriteImpl>> BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineFavoriteResource::handler_PUT(
std::string const & organization, std::string const & pipeline, bool const & body)
{
throw BlueOceanApiException(501, "Not implemented");
}
std::string BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineFavoriteResource::extractBodyContent(const std::shared_ptr<restbed::Session>& session) {
const auto request = session->get_request();
int content_length = request->get_header("Content-Length", 0);
std::string bodyContent;
session->fetch(content_length,
[&bodyContent](const std::shared_ptr<restbed::Session> session,
const restbed::Bytes &body) {
bodyContent = restbed::String::format(
"%.*s\n", (int)body.size(), body.data());
});
return bodyContent;
}
BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsRunStopResource::BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsRunStopResource(const std::string& context /* = "" */)
{
this->set_path(context + "/blue/rest/organizations/{organization: .*}/pipelines/{pipeline: .*}/runs/{run: .*}/stop/");
this->set_method_handler("PUT",
std::bind(&BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsRunStopResource::handler_PUT_internal, this,
std::placeholders::_1));
}
BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsRunStopResource::~BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsRunStopResource()
{
}
std::pair<int, std::string> BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsRunStopResource::handleBlueOceanApiException(const BlueOceanApiException& e)
{
return std::make_pair<int, std::string>(e.getStatus(), e.what());
}
std::pair<int, std::string> BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsRunStopResource::handleStdException(const std::exception& e)
{
return std::make_pair<int, std::string>(500, e.what());
}
std::pair<int, std::string> BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsRunStopResource::handleUnspecifiedException()
{
return std::make_pair<int, std::string>(500, "Unknown exception occurred");
}
void BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsRunStopResource::setResponseHeader(const std::shared_ptr<restbed::Session>& session, const std::string& header)
{
session->set_header(header, "");
}
void BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsRunStopResource::returnResponse(const std::shared_ptr<restbed::Session>& session, const int status, const std::string& result, const std::string& contentType)
{
session->close(status, result, { {"Connection", "close"}, {"Content-Type", contentType} });
}
void BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsRunStopResource::defaultSessionClose(const std::shared_ptr<restbed::Session>& session, const int status, const std::string& result)
{
session->close(status, result, { {"Connection", "close"} });
}
void BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsRunStopResource::handler_PUT_internal(const std::shared_ptr<restbed::Session> session)
{
const auto request = session->get_request();
// Getting the path params
const std::string organization = getPathParam_organization(request);
const std::string pipeline = getPathParam_pipeline(request);
const std::string run = getPathParam_run(request);
// Getting the query params
const std::string blocking = getQueryParam_blocking(request);
const int32_t timeOutInSecs = getQueryParam_timeOutInSecs(request);
int status_code = 500;
std::shared_ptr<PipelineRun> resultObject = std::make_shared<PipelineRun>();
std::string result = "";
try {
std::tie(status_code, resultObject) =
handler_PUT(organization, pipeline, run, blocking, timeOutInSecs);
}
catch(const BlueOceanApiException& e) {
std::tie(status_code, result) = handleBlueOceanApiException(e);
}
catch(const std::exception& e) {
std::tie(status_code, result) = handleStdException(e);
}
catch(...) {
std::tie(status_code, result) = handleUnspecifiedException();
}
if (status_code == 200) {
result = resultObject->toJsonString();
const constexpr auto contentType = "application/json";
returnResponse(session, 200, result.empty() ? "Successfully stopped a build" : result, contentType);
return;
}
if (status_code == 401) {
const constexpr auto contentType = "text/plain";
returnResponse(session, 401, result.empty() ? "Authentication failed - incorrect username and/or password" : result, contentType);
return;
}
if (status_code == 403) {
const constexpr auto contentType = "text/plain";
returnResponse(session, 403, result.empty() ? "Jenkins requires authentication - please set username and password" : result, contentType);
return;
}
defaultSessionClose(session, status_code, result);
}
std::pair<int, std::shared_ptr<PipelineRun>> BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsRunStopResource::handler_PUT(
std::string const & organization, std::string const & pipeline, std::string const & run, std::string const & blocking, int32_t const & timeOutInSecs)
{
throw BlueOceanApiException(501, "Not implemented");
}
std::string BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsRunStopResource::extractBodyContent(const std::shared_ptr<restbed::Session>& session) {
const auto request = session->get_request();
int content_length = request->get_header("Content-Length", 0);
std::string bodyContent;
session->fetch(content_length,
[&bodyContent](const std::shared_ptr<restbed::Session> session,
const restbed::Bytes &body) {
bodyContent = restbed::String::format(
"%.*s\n", (int)body.size(), body.data());
});
return bodyContent;
}
BlueOceanApiBlueRestSearchResource::BlueOceanApiBlueRestSearchResource(const std::string& context /* = "" */)
{
this->set_path(context + "/blue/rest/search//");
this->set_method_handler("GET",
std::bind(&BlueOceanApiBlueRestSearchResource::handler_GET_internal, this,
std::placeholders::_1));
}
BlueOceanApiBlueRestSearchResource::~BlueOceanApiBlueRestSearchResource()
{
}
std::pair<int, std::string> BlueOceanApiBlueRestSearchResource::handleBlueOceanApiException(const BlueOceanApiException& e)
{
return std::make_pair<int, std::string>(e.getStatus(), e.what());
}
std::pair<int, std::string> BlueOceanApiBlueRestSearchResource::handleStdException(const std::exception& e)
{
return std::make_pair<int, std::string>(500, e.what());
}
std::pair<int, std::string> BlueOceanApiBlueRestSearchResource::handleUnspecifiedException()
{
return std::make_pair<int, std::string>(500, "Unknown exception occurred");
}
void BlueOceanApiBlueRestSearchResource::setResponseHeader(const std::shared_ptr<restbed::Session>& session, const std::string& header)
{
session->set_header(header, "");
}
void BlueOceanApiBlueRestSearchResource::returnResponse(const std::shared_ptr<restbed::Session>& session, const int status, const std::string& result, const std::string& contentType)
{
session->close(status, result, { {"Connection", "close"}, {"Content-Type", contentType} });
}
void BlueOceanApiBlueRestSearchResource::defaultSessionClose(const std::shared_ptr<restbed::Session>& session, const int status, const std::string& result)
{
session->close(status, result, { {"Connection", "close"} });
}
void BlueOceanApiBlueRestSearchResource::handler_GET_internal(const std::shared_ptr<restbed::Session> session)
{
const auto request = session->get_request();
// Getting the query params
const std::string q = getQueryParam_q(request);
int status_code = 500;
std::string resultObject = "";
std::string result = "";
try {
std::tie(status_code, resultObject) =
handler_GET(q);
}
catch(const BlueOceanApiException& e) {
std::tie(status_code, result) = handleBlueOceanApiException(e);
}
catch(const std::exception& e) {
std::tie(status_code, result) = handleStdException(e);
}
catch(...) {
std::tie(status_code, result) = handleUnspecifiedException();
}
if (status_code == 200) {
result = resultObject;
const constexpr auto contentType = "application/json";
returnResponse(session, 200, result.empty() ? "Successfully retrieved search result" : result, contentType);
return;
}
if (status_code == 401) {
const constexpr auto contentType = "text/plain";
returnResponse(session, 401, result.empty() ? "Authentication failed - incorrect username and/or password" : result, contentType);
return;
}
if (status_code == 403) {
const constexpr auto contentType = "text/plain";
returnResponse(session, 403, result.empty() ? "Jenkins requires authentication - please set username and password" : result, contentType);
return;
}
defaultSessionClose(session, status_code, result);
}
std::pair<int, std::string> BlueOceanApiBlueRestSearchResource::handler_GET(
std::string const & q)
{
throw BlueOceanApiException(501, "Not implemented");
}
std::string BlueOceanApiBlueRestSearchResource::extractBodyContent(const std::shared_ptr<restbed::Session>& session) {
const auto request = session->get_request();
int content_length = request->get_header("Content-Length", 0);
std::string bodyContent;
session->fetch(content_length,
[&bodyContent](const std::shared_ptr<restbed::Session> session,
const restbed::Bytes &body) {
bodyContent = restbed::String::format(
"%.*s\n", (int)body.size(), body.data());
});
return bodyContent;
}
BlueOceanApiBlueRestClassesResource::BlueOceanApiBlueRestClassesResource(const std::string& context /* = "" */)
{
this->set_path(context + "/blue/rest/classes//");
this->set_method_handler("GET",
std::bind(&BlueOceanApiBlueRestClassesResource::handler_GET_internal, this,
std::placeholders::_1));
}
BlueOceanApiBlueRestClassesResource::~BlueOceanApiBlueRestClassesResource()
{
}
std::pair<int, std::string> BlueOceanApiBlueRestClassesResource::handleBlueOceanApiException(const BlueOceanApiException& e)
{
return std::make_pair<int, std::string>(e.getStatus(), e.what());
}
std::pair<int, std::string> BlueOceanApiBlueRestClassesResource::handleStdException(const std::exception& e)
{
return std::make_pair<int, std::string>(500, e.what());
}
std::pair<int, std::string> BlueOceanApiBlueRestClassesResource::handleUnspecifiedException()
{
return std::make_pair<int, std::string>(500, "Unknown exception occurred");
}
void BlueOceanApiBlueRestClassesResource::setResponseHeader(const std::shared_ptr<restbed::Session>& session, const std::string& header)
{
session->set_header(header, "");
}
void BlueOceanApiBlueRestClassesResource::returnResponse(const std::shared_ptr<restbed::Session>& session, const int status, const std::string& result, const std::string& contentType)
{
session->close(status, result, { {"Connection", "close"}, {"Content-Type", contentType} });
}
void BlueOceanApiBlueRestClassesResource::defaultSessionClose(const std::shared_ptr<restbed::Session>& session, const int status, const std::string& result)
{
session->close(status, result, { {"Connection", "close"} });
}
void BlueOceanApiBlueRestClassesResource::handler_GET_internal(const std::shared_ptr<restbed::Session> session)
{
const auto request = session->get_request();
// Getting the query params
const std::string q = getQueryParam_q(request);
int status_code = 500;
std::string resultObject = "";
std::string result = "";
try {
std::tie(status_code, resultObject) =
handler_GET(q);
}
catch(const BlueOceanApiException& e) {
std::tie(status_code, result) = handleBlueOceanApiException(e);
}
catch(const std::exception& e) {
std::tie(status_code, result) = handleStdException(e);
}
catch(...) {
std::tie(status_code, result) = handleUnspecifiedException();
}
if (status_code == 200) {
result = resultObject;
const constexpr auto contentType = "application/json";
returnResponse(session, 200, result.empty() ? "Successfully retrieved search result" : result, contentType);
return;
}
if (status_code == 401) {
const constexpr auto contentType = "text/plain";
returnResponse(session, 401, result.empty() ? "Authentication failed - incorrect username and/or password" : result, contentType);
return;
}
if (status_code == 403) {
const constexpr auto contentType = "text/plain";
returnResponse(session, 403, result.empty() ? "Jenkins requires authentication - please set username and password" : result, contentType);
return;
}
defaultSessionClose(session, status_code, result);
}
std::pair<int, std::string> BlueOceanApiBlueRestClassesResource::handler_GET(
std::string const & q)
{
throw BlueOceanApiException(501, "Not implemented");
}
std::string BlueOceanApiBlueRestClassesResource::extractBodyContent(const std::shared_ptr<restbed::Session>& session) {
const auto request = session->get_request();
int content_length = request->get_header("Content-Length", 0);
std::string bodyContent;
session->fetch(content_length,
[&bodyContent](const std::shared_ptr<restbed::Session> session,
const restbed::Bytes &body) {
bodyContent = restbed::String::format(
"%.*s\n", (int)body.size(), body.data());
});
return bodyContent;
}
BlueOceanApi::BlueOceanApi(std::shared_ptr<restbed::Service> const& restbedService)
: m_service(restbedService)
{
}
BlueOceanApi::~BlueOceanApi() {}
void BlueOceanApi::setBlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineQueueQueueResource(std::shared_ptr<BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineQueueQueueResource> spBlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineQueueQueueResource) {
m_spBlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineQueueQueueResource = spBlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineQueueQueueResource;
m_service->publish(m_spBlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineQueueQueueResource);
}
void BlueOceanApi::setBlueOceanApiBlueRestOrganizationsOrganizationUserResource(std::shared_ptr<BlueOceanApiBlueRestOrganizationsOrganizationUserResource> spBlueOceanApiBlueRestOrganizationsOrganizationUserResource) {
m_spBlueOceanApiBlueRestOrganizationsOrganizationUserResource = spBlueOceanApiBlueRestOrganizationsOrganizationUserResource;
m_service->publish(m_spBlueOceanApiBlueRestOrganizationsOrganizationUserResource);
}
void BlueOceanApi::setBlueOceanApiBlueRestClassesClassResource(std::shared_ptr<BlueOceanApiBlueRestClassesClassResource> spBlueOceanApiBlueRestClassesClassResource) {
m_spBlueOceanApiBlueRestClassesClassResource = spBlueOceanApiBlueRestClassesClassResource;
m_service->publish(m_spBlueOceanApiBlueRestClassesClassResource);
}
void BlueOceanApi::setBlueOceanApiJwt-authJwksKeyResource(std::shared_ptr<BlueOceanApiJwt-authJwksKeyResource> spBlueOceanApiJwt-authJwksKeyResource) {
m_spBlueOceanApiJwt-authJwksKeyResource = spBlueOceanApiJwt-authJwksKeyResource;
m_service->publish(m_spBlueOceanApiJwt-authJwksKeyResource);
}
void BlueOceanApi::setBlueOceanApiJwt-authTokenResource(std::shared_ptr<BlueOceanApiJwt-authTokenResource> spBlueOceanApiJwt-authTokenResource) {
m_spBlueOceanApiJwt-authTokenResource = spBlueOceanApiJwt-authTokenResource;
m_service->publish(m_spBlueOceanApiJwt-authTokenResource);
}
void BlueOceanApi::setBlueOceanApiBlueRestOrganizationsOrganizationResource(std::shared_ptr<BlueOceanApiBlueRestOrganizationsOrganizationResource> spBlueOceanApiBlueRestOrganizationsOrganizationResource) {
m_spBlueOceanApiBlueRestOrganizationsOrganizationResource = spBlueOceanApiBlueRestOrganizationsOrganizationResource;
m_service->publish(m_spBlueOceanApiBlueRestOrganizationsOrganizationResource);
}
void BlueOceanApi::setBlueOceanApiBlueRestOrganizationsResource(std::shared_ptr<BlueOceanApiBlueRestOrganizationsResource> spBlueOceanApiBlueRestOrganizationsResource) {
m_spBlueOceanApiBlueRestOrganizationsResource = spBlueOceanApiBlueRestOrganizationsResource;
m_service->publish(m_spBlueOceanApiBlueRestOrganizationsResource);
}
void BlueOceanApi::setBlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineResource(std::shared_ptr<BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineResource> spBlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineResource) {
m_spBlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineResource = spBlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineResource;
m_service->publish(m_spBlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineResource);
}
void BlueOceanApi::setBlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineActivitiesResource(std::shared_ptr<BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineActivitiesResource> spBlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineActivitiesResource) {
m_spBlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineActivitiesResource = spBlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineActivitiesResource;
m_service->publish(m_spBlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineActivitiesResource);
}
void BlueOceanApi::setBlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineBranchesBranchResource(std::shared_ptr<BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineBranchesBranchResource> spBlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineBranchesBranchResource) {
m_spBlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineBranchesBranchResource = spBlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineBranchesBranchResource;
m_service->publish(m_spBlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineBranchesBranchResource);
}
void BlueOceanApi::setBlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineBranchesBranchRunsRunResource(std::shared_ptr<BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineBranchesBranchRunsRunResource> spBlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineBranchesBranchRunsRunResource) {
m_spBlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineBranchesBranchRunsRunResource = spBlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineBranchesBranchRunsRunResource;
m_service->publish(m_spBlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineBranchesBranchRunsRunResource);
}
void BlueOceanApi::setBlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineBranchesResource(std::shared_ptr<BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineBranchesResource> spBlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineBranchesResource) {
m_spBlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineBranchesResource = spBlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineBranchesResource;
m_service->publish(m_spBlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineBranchesResource);
}
void BlueOceanApi::setBlueOceanApiBlueRestOrganizationsOrganizationPipelinesFolderResource(std::shared_ptr<BlueOceanApiBlueRestOrganizationsOrganizationPipelinesFolderResource> spBlueOceanApiBlueRestOrganizationsOrganizationPipelinesFolderResource) {
m_spBlueOceanApiBlueRestOrganizationsOrganizationPipelinesFolderResource = spBlueOceanApiBlueRestOrganizationsOrganizationPipelinesFolderResource;
m_service->publish(m_spBlueOceanApiBlueRestOrganizationsOrganizationPipelinesFolderResource);
}
void BlueOceanApi::setBlueOceanApiBlueRestOrganizationsOrganizationPipelinesFolderPipelinesPipelineResource(std::shared_ptr<BlueOceanApiBlueRestOrganizationsOrganizationPipelinesFolderPipelinesPipelineResource> spBlueOceanApiBlueRestOrganizationsOrganizationPipelinesFolderPipelinesPipelineResource) {
m_spBlueOceanApiBlueRestOrganizationsOrganizationPipelinesFolderPipelinesPipelineResource = spBlueOceanApiBlueRestOrganizationsOrganizationPipelinesFolderPipelinesPipelineResource;
m_service->publish(m_spBlueOceanApiBlueRestOrganizationsOrganizationPipelinesFolderPipelinesPipelineResource);
}
void BlueOceanApi::setBlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineQueueResource(std::shared_ptr<BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineQueueResource> spBlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineQueueResource) {
m_spBlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineQueueResource = spBlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineQueueResource;
m_service->publish(m_spBlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineQueueResource);
}
void BlueOceanApi::setBlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsRunResource(std::shared_ptr<BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsRunResource> spBlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsRunResource) {
m_spBlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsRunResource = spBlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsRunResource;
m_service->publish(m_spBlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsRunResource);
}
void BlueOceanApi::setBlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsRunLogResource(std::shared_ptr<BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsRunLogResource> spBlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsRunLogResource) {
m_spBlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsRunLogResource = spBlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsRunLogResource;
m_service->publish(m_spBlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsRunLogResource);
}
void BlueOceanApi::setBlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsRunNodesNodeResource(std::shared_ptr<BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsRunNodesNodeResource> spBlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsRunNodesNodeResource) {
m_spBlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsRunNodesNodeResource = spBlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsRunNodesNodeResource;
m_service->publish(m_spBlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsRunNodesNodeResource);
}
void BlueOceanApi::setBlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsRunNodesNodeStepsStepResource(std::shared_ptr<BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsRunNodesNodeStepsStepResource> spBlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsRunNodesNodeStepsStepResource) {
m_spBlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsRunNodesNodeStepsStepResource = spBlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsRunNodesNodeStepsStepResource;
m_service->publish(m_spBlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsRunNodesNodeStepsStepResource);
}
void BlueOceanApi::setBlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsRunNodesNodeStepsStepLogResource(std::shared_ptr<BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsRunNodesNodeStepsStepLogResource> spBlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsRunNodesNodeStepsStepLogResource) {
m_spBlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsRunNodesNodeStepsStepLogResource = spBlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsRunNodesNodeStepsStepLogResource;
m_service->publish(m_spBlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsRunNodesNodeStepsStepLogResource);
}
void BlueOceanApi::setBlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsRunNodesNodeStepsResource(std::shared_ptr<BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsRunNodesNodeStepsResource> spBlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsRunNodesNodeStepsResource) {
m_spBlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsRunNodesNodeStepsResource = spBlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsRunNodesNodeStepsResource;
m_service->publish(m_spBlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsRunNodesNodeStepsResource);
}
void BlueOceanApi::setBlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsRunNodesResource(std::shared_ptr<BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsRunNodesResource> spBlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsRunNodesResource) {
m_spBlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsRunNodesResource = spBlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsRunNodesResource;
m_service->publish(m_spBlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsRunNodesResource);
}
void BlueOceanApi::setBlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsResource(std::shared_ptr<BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsResource> spBlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsResource) {
m_spBlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsResource = spBlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsResource;
m_service->publish(m_spBlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsResource);
}
void BlueOceanApi::setBlueOceanApiBlueRestOrganizationsOrganizationPipelinesResource(std::shared_ptr<BlueOceanApiBlueRestOrganizationsOrganizationPipelinesResource> spBlueOceanApiBlueRestOrganizationsOrganizationPipelinesResource) {
m_spBlueOceanApiBlueRestOrganizationsOrganizationPipelinesResource = spBlueOceanApiBlueRestOrganizationsOrganizationPipelinesResource;
m_service->publish(m_spBlueOceanApiBlueRestOrganizationsOrganizationPipelinesResource);
}
void BlueOceanApi::setBlueOceanApiBlueRestOrganizationsOrganizationScmScmResource(std::shared_ptr<BlueOceanApiBlueRestOrganizationsOrganizationScmScmResource> spBlueOceanApiBlueRestOrganizationsOrganizationScmScmResource) {
m_spBlueOceanApiBlueRestOrganizationsOrganizationScmScmResource = spBlueOceanApiBlueRestOrganizationsOrganizationScmScmResource;
m_service->publish(m_spBlueOceanApiBlueRestOrganizationsOrganizationScmScmResource);
}
void BlueOceanApi::setBlueOceanApiBlueRestOrganizationsOrganizationScmScmOrganizationsScmOrganisationRepositoriesResource(std::shared_ptr<BlueOceanApiBlueRestOrganizationsOrganizationScmScmOrganizationsScmOrganisationRepositoriesResource> spBlueOceanApiBlueRestOrganizationsOrganizationScmScmOrganizationsScmOrganisationRepositoriesResource) {
m_spBlueOceanApiBlueRestOrganizationsOrganizationScmScmOrganizationsScmOrganisationRepositoriesResource = spBlueOceanApiBlueRestOrganizationsOrganizationScmScmOrganizationsScmOrganisationRepositoriesResource;
m_service->publish(m_spBlueOceanApiBlueRestOrganizationsOrganizationScmScmOrganizationsScmOrganisationRepositoriesResource);
}
void BlueOceanApi::setBlueOceanApiBlueRestOrganizationsOrganizationScmScmOrganizationsScmOrganisationRepositoriesRepositoryResource(std::shared_ptr<BlueOceanApiBlueRestOrganizationsOrganizationScmScmOrganizationsScmOrganisationRepositoriesRepositoryResource> spBlueOceanApiBlueRestOrganizationsOrganizationScmScmOrganizationsScmOrganisationRepositoriesRepositoryResource) {
m_spBlueOceanApiBlueRestOrganizationsOrganizationScmScmOrganizationsScmOrganisationRepositoriesRepositoryResource = spBlueOceanApiBlueRestOrganizationsOrganizationScmScmOrganizationsScmOrganisationRepositoriesRepositoryResource;
m_service->publish(m_spBlueOceanApiBlueRestOrganizationsOrganizationScmScmOrganizationsScmOrganisationRepositoriesRepositoryResource);
}
void BlueOceanApi::setBlueOceanApiBlueRestOrganizationsOrganizationScmScmOrganizationsResource(std::shared_ptr<BlueOceanApiBlueRestOrganizationsOrganizationScmScmOrganizationsResource> spBlueOceanApiBlueRestOrganizationsOrganizationScmScmOrganizationsResource) {
m_spBlueOceanApiBlueRestOrganizationsOrganizationScmScmOrganizationsResource = spBlueOceanApiBlueRestOrganizationsOrganizationScmScmOrganizationsResource;
m_service->publish(m_spBlueOceanApiBlueRestOrganizationsOrganizationScmScmOrganizationsResource);
}
void BlueOceanApi::setBlueOceanApiBlueRestOrganizationsOrganizationUsersUserResource(std::shared_ptr<BlueOceanApiBlueRestOrganizationsOrganizationUsersUserResource> spBlueOceanApiBlueRestOrganizationsOrganizationUsersUserResource) {
m_spBlueOceanApiBlueRestOrganizationsOrganizationUsersUserResource = spBlueOceanApiBlueRestOrganizationsOrganizationUsersUserResource;
m_service->publish(m_spBlueOceanApiBlueRestOrganizationsOrganizationUsersUserResource);
}
void BlueOceanApi::setBlueOceanApiBlueRestUsersUserFavoritesResource(std::shared_ptr<BlueOceanApiBlueRestUsersUserFavoritesResource> spBlueOceanApiBlueRestUsersUserFavoritesResource) {
m_spBlueOceanApiBlueRestUsersUserFavoritesResource = spBlueOceanApiBlueRestUsersUserFavoritesResource;
m_service->publish(m_spBlueOceanApiBlueRestUsersUserFavoritesResource);
}
void BlueOceanApi::setBlueOceanApiBlueRestOrganizationsOrganizationUsersResource(std::shared_ptr<BlueOceanApiBlueRestOrganizationsOrganizationUsersResource> spBlueOceanApiBlueRestOrganizationsOrganizationUsersResource) {
m_spBlueOceanApiBlueRestOrganizationsOrganizationUsersResource = spBlueOceanApiBlueRestOrganizationsOrganizationUsersResource;
m_service->publish(m_spBlueOceanApiBlueRestOrganizationsOrganizationUsersResource);
}
void BlueOceanApi::setBlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsRunReplayResource(std::shared_ptr<BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsRunReplayResource> spBlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsRunReplayResource) {
m_spBlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsRunReplayResource = spBlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsRunReplayResource;
m_service->publish(m_spBlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsRunReplayResource);
}
void BlueOceanApi::setBlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineFavoriteResource(std::shared_ptr<BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineFavoriteResource> spBlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineFavoriteResource) {
m_spBlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineFavoriteResource = spBlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineFavoriteResource;
m_service->publish(m_spBlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineFavoriteResource);
}
void BlueOceanApi::setBlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsRunStopResource(std::shared_ptr<BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsRunStopResource> spBlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsRunStopResource) {
m_spBlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsRunStopResource = spBlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsRunStopResource;
m_service->publish(m_spBlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsRunStopResource);
}
void BlueOceanApi::setBlueOceanApiBlueRestSearchResource(std::shared_ptr<BlueOceanApiBlueRestSearchResource> spBlueOceanApiBlueRestSearchResource) {
m_spBlueOceanApiBlueRestSearchResource = spBlueOceanApiBlueRestSearchResource;
m_service->publish(m_spBlueOceanApiBlueRestSearchResource);
}
void BlueOceanApi::setBlueOceanApiBlueRestClassesResource(std::shared_ptr<BlueOceanApiBlueRestClassesResource> spBlueOceanApiBlueRestClassesResource) {
m_spBlueOceanApiBlueRestClassesResource = spBlueOceanApiBlueRestClassesResource;
m_service->publish(m_spBlueOceanApiBlueRestClassesResource);
}
void BlueOceanApi::publishDefaultResources() {
if (!m_spBlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineQueueQueueResource) {
setBlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineQueueQueueResource(std::make_shared<BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineQueueQueueResource>());
}
if (!m_spBlueOceanApiBlueRestOrganizationsOrganizationUserResource) {
setBlueOceanApiBlueRestOrganizationsOrganizationUserResource(std::make_shared<BlueOceanApiBlueRestOrganizationsOrganizationUserResource>());
}
if (!m_spBlueOceanApiBlueRestClassesClassResource) {
setBlueOceanApiBlueRestClassesClassResource(std::make_shared<BlueOceanApiBlueRestClassesClassResource>());
}
if (!m_spBlueOceanApiJwt-authJwksKeyResource) {
setBlueOceanApiJwt-authJwksKeyResource(std::make_shared<BlueOceanApiJwt-authJwksKeyResource>());
}
if (!m_spBlueOceanApiJwt-authTokenResource) {
setBlueOceanApiJwt-authTokenResource(std::make_shared<BlueOceanApiJwt-authTokenResource>());
}
if (!m_spBlueOceanApiBlueRestOrganizationsOrganizationResource) {
setBlueOceanApiBlueRestOrganizationsOrganizationResource(std::make_shared<BlueOceanApiBlueRestOrganizationsOrganizationResource>());
}
if (!m_spBlueOceanApiBlueRestOrganizationsResource) {
setBlueOceanApiBlueRestOrganizationsResource(std::make_shared<BlueOceanApiBlueRestOrganizationsResource>());
}
if (!m_spBlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineResource) {
setBlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineResource(std::make_shared<BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineResource>());
}
if (!m_spBlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineActivitiesResource) {
setBlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineActivitiesResource(std::make_shared<BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineActivitiesResource>());
}
if (!m_spBlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineBranchesBranchResource) {
setBlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineBranchesBranchResource(std::make_shared<BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineBranchesBranchResource>());
}
if (!m_spBlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineBranchesBranchRunsRunResource) {
setBlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineBranchesBranchRunsRunResource(std::make_shared<BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineBranchesBranchRunsRunResource>());
}
if (!m_spBlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineBranchesResource) {
setBlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineBranchesResource(std::make_shared<BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineBranchesResource>());
}
if (!m_spBlueOceanApiBlueRestOrganizationsOrganizationPipelinesFolderResource) {
setBlueOceanApiBlueRestOrganizationsOrganizationPipelinesFolderResource(std::make_shared<BlueOceanApiBlueRestOrganizationsOrganizationPipelinesFolderResource>());
}
if (!m_spBlueOceanApiBlueRestOrganizationsOrganizationPipelinesFolderPipelinesPipelineResource) {
setBlueOceanApiBlueRestOrganizationsOrganizationPipelinesFolderPipelinesPipelineResource(std::make_shared<BlueOceanApiBlueRestOrganizationsOrganizationPipelinesFolderPipelinesPipelineResource>());
}
if (!m_spBlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineQueueResource) {
setBlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineQueueResource(std::make_shared<BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineQueueResource>());
}
if (!m_spBlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsRunResource) {
setBlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsRunResource(std::make_shared<BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsRunResource>());
}
if (!m_spBlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsRunLogResource) {
setBlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsRunLogResource(std::make_shared<BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsRunLogResource>());
}
if (!m_spBlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsRunNodesNodeResource) {
setBlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsRunNodesNodeResource(std::make_shared<BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsRunNodesNodeResource>());
}
if (!m_spBlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsRunNodesNodeStepsStepResource) {
setBlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsRunNodesNodeStepsStepResource(std::make_shared<BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsRunNodesNodeStepsStepResource>());
}
if (!m_spBlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsRunNodesNodeStepsStepLogResource) {
setBlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsRunNodesNodeStepsStepLogResource(std::make_shared<BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsRunNodesNodeStepsStepLogResource>());
}
if (!m_spBlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsRunNodesNodeStepsResource) {
setBlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsRunNodesNodeStepsResource(std::make_shared<BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsRunNodesNodeStepsResource>());
}
if (!m_spBlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsRunNodesResource) {
setBlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsRunNodesResource(std::make_shared<BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsRunNodesResource>());
}
if (!m_spBlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsResource) {
setBlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsResource(std::make_shared<BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsResource>());
}
if (!m_spBlueOceanApiBlueRestOrganizationsOrganizationPipelinesResource) {
setBlueOceanApiBlueRestOrganizationsOrganizationPipelinesResource(std::make_shared<BlueOceanApiBlueRestOrganizationsOrganizationPipelinesResource>());
}
if (!m_spBlueOceanApiBlueRestOrganizationsOrganizationScmScmResource) {
setBlueOceanApiBlueRestOrganizationsOrganizationScmScmResource(std::make_shared<BlueOceanApiBlueRestOrganizationsOrganizationScmScmResource>());
}
if (!m_spBlueOceanApiBlueRestOrganizationsOrganizationScmScmOrganizationsScmOrganisationRepositoriesResource) {
setBlueOceanApiBlueRestOrganizationsOrganizationScmScmOrganizationsScmOrganisationRepositoriesResource(std::make_shared<BlueOceanApiBlueRestOrganizationsOrganizationScmScmOrganizationsScmOrganisationRepositoriesResource>());
}
if (!m_spBlueOceanApiBlueRestOrganizationsOrganizationScmScmOrganizationsScmOrganisationRepositoriesRepositoryResource) {
setBlueOceanApiBlueRestOrganizationsOrganizationScmScmOrganizationsScmOrganisationRepositoriesRepositoryResource(std::make_shared<BlueOceanApiBlueRestOrganizationsOrganizationScmScmOrganizationsScmOrganisationRepositoriesRepositoryResource>());
}
if (!m_spBlueOceanApiBlueRestOrganizationsOrganizationScmScmOrganizationsResource) {
setBlueOceanApiBlueRestOrganizationsOrganizationScmScmOrganizationsResource(std::make_shared<BlueOceanApiBlueRestOrganizationsOrganizationScmScmOrganizationsResource>());
}
if (!m_spBlueOceanApiBlueRestOrganizationsOrganizationUsersUserResource) {
setBlueOceanApiBlueRestOrganizationsOrganizationUsersUserResource(std::make_shared<BlueOceanApiBlueRestOrganizationsOrganizationUsersUserResource>());
}
if (!m_spBlueOceanApiBlueRestUsersUserFavoritesResource) {
setBlueOceanApiBlueRestUsersUserFavoritesResource(std::make_shared<BlueOceanApiBlueRestUsersUserFavoritesResource>());
}
if (!m_spBlueOceanApiBlueRestOrganizationsOrganizationUsersResource) {
setBlueOceanApiBlueRestOrganizationsOrganizationUsersResource(std::make_shared<BlueOceanApiBlueRestOrganizationsOrganizationUsersResource>());
}
if (!m_spBlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsRunReplayResource) {
setBlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsRunReplayResource(std::make_shared<BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsRunReplayResource>());
}
if (!m_spBlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineFavoriteResource) {
setBlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineFavoriteResource(std::make_shared<BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineFavoriteResource>());
}
if (!m_spBlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsRunStopResource) {
setBlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsRunStopResource(std::make_shared<BlueOceanApiBlueRestOrganizationsOrganizationPipelinesPipelineRunsRunStopResource>());
}
if (!m_spBlueOceanApiBlueRestSearchResource) {
setBlueOceanApiBlueRestSearchResource(std::make_shared<BlueOceanApiBlueRestSearchResource>());
}
if (!m_spBlueOceanApiBlueRestClassesResource) {
setBlueOceanApiBlueRestClassesResource(std::make_shared<BlueOceanApiBlueRestClassesResource>());
}
}
std::shared_ptr<restbed::Service> BlueOceanApi::service() {
return m_service;
}
}
}
}
}
| 46.100625 | 373 | 0.754819 |
e290b27c13bab64d24723a7681fda41b9acd7c83 | 646 | cpp | C++ | data-structure/Raiz.cpp | ejpcr/libs-c | e544e4338ea9f2fe8c57de83045944f38ae06a07 | [
"MIT"
] | null | null | null | data-structure/Raiz.cpp | ejpcr/libs-c | e544e4338ea9f2fe8c57de83045944f38ae06a07 | [
"MIT"
] | null | null | null | data-structure/Raiz.cpp | ejpcr/libs-c | e544e4338ea9f2fe8c57de83045944f38ae06a07 | [
"MIT"
] | null | null | null | //Programa que calcula la raiz de un entero positivo N.
//Sin utilizar la libreria math.h
//Alumno: Castillo Gardea Mariano
//No Control: 01070097
#include <iostream.h>
#include <conio.h>
#include <stdio.h>
void captura(int &);
void validacion(int &);
void raiz(int &);
void main()
{int numero; clrscr();
captura(numero);
getchar();
}
void captura(int &numero)
{cout<<"Introduce un numero entero y positivo ";
cin>>numero; validacion(numero);
}
void validacion(int &numero)
{if(numero>0)
cout<<"Numero Aceptado\n";
else
{cout<<"Numero no aceptado\n"; captura(numero);}
}
void raiz(int &x)
{int i=1;
do{x=(i/2)*(i+(x/i)}
while(x
}
| 17.459459 | 55 | 0.682663 |
e291803e5fa70e853eda93302bc9bf0651933484 | 4,895 | cc | C++ | chrome/browser/safe_browsing/chrome_safe_browsing_blocking_page_factory.cc | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 14,668 | 2015-01-01T01:57:10.000Z | 2022-03-31T23:33:32.000Z | chrome/browser/safe_browsing/chrome_safe_browsing_blocking_page_factory.cc | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 86 | 2015-10-21T13:02:42.000Z | 2022-03-14T07:50:50.000Z | chrome/browser/safe_browsing/chrome_safe_browsing_blocking_page_factory.cc | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 5,941 | 2015-01-02T11:32:21.000Z | 2022-03-31T16:35:46.000Z | // Copyright 2021 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/safe_browsing/chrome_safe_browsing_blocking_page_factory.h"
#include "chrome/browser/browser_process.h"
#include "chrome/browser/history/history_service_factory.h"
#include "chrome/browser/interstitials/chrome_settings_page_helper.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/safe_browsing/chrome_controller_client.h"
#include "chrome/browser/safe_browsing/safe_browsing_metrics_collector_factory.h"
#include "chrome/browser/safe_browsing/safe_browsing_navigation_observer_manager_factory.h"
#include "chrome/browser/safe_browsing/safe_browsing_service.h"
#include "components/prefs/pref_service.h"
#include "components/security_interstitials/content/content_metrics_helper.h"
#include "components/security_interstitials/content/security_interstitial_controller_client.h"
#include "content/public/browser/web_contents.h"
namespace safe_browsing {
namespace {
const char kHelpCenterLink[] = "cpn_safe_browsing";
} // namespace
SafeBrowsingBlockingPage*
ChromeSafeBrowsingBlockingPageFactory::CreateSafeBrowsingPage(
BaseUIManager* ui_manager,
content::WebContents* web_contents,
const GURL& main_frame_url,
const SafeBrowsingBlockingPage::UnsafeResourceList& unsafe_resources,
bool should_trigger_reporting) {
auto* profile =
Profile::FromBrowserContext(web_contents->GetBrowserContext());
// Create appropriate display options for this blocking page.
PrefService* prefs = profile->GetPrefs();
bool is_extended_reporting_opt_in_allowed =
IsExtendedReportingOptInAllowed(*prefs);
bool is_proceed_anyway_disabled =
prefs->GetBoolean(prefs::kSafeBrowsingProceedAnywayDisabled);
// Determine if any prefs need to be updated prior to showing the security
// interstitial. This must happen before querying IsScout to populate the
// Display Options below.
safe_browsing::UpdatePrefsBeforeSecurityInterstitial(prefs);
security_interstitials::BaseSafeBrowsingErrorUI::SBErrorDisplayOptions
display_options(BaseBlockingPage::IsMainPageLoadBlocked(unsafe_resources),
is_extended_reporting_opt_in_allowed,
web_contents->GetBrowserContext()->IsOffTheRecord(),
IsExtendedReportingEnabled(*prefs),
IsExtendedReportingPolicyManaged(*prefs),
IsEnhancedProtectionEnabled(*prefs),
is_proceed_anyway_disabled,
true, // should_open_links_in_new_tab
true, // always_show_back_to_safety
true, // is_enhanced_protection_message_enabled
IsSafeBrowsingPolicyManaged(*prefs), kHelpCenterLink);
auto* trigger_manager =
g_browser_process->safe_browsing_service()
? g_browser_process->safe_browsing_service()->trigger_manager()
: nullptr;
return new SafeBrowsingBlockingPage(
ui_manager, web_contents, main_frame_url, unsafe_resources,
CreateControllerClient(web_contents, unsafe_resources, ui_manager),
display_options, should_trigger_reporting,
HistoryServiceFactory::GetForProfile(profile,
ServiceAccessType::EXPLICIT_ACCESS),
SafeBrowsingNavigationObserverManagerFactory::GetForBrowserContext(
web_contents->GetBrowserContext()),
SafeBrowsingMetricsCollectorFactory::GetForProfile(profile),
trigger_manager);
}
ChromeSafeBrowsingBlockingPageFactory::ChromeSafeBrowsingBlockingPageFactory() =
default;
// static
std::unique_ptr<security_interstitials::SecurityInterstitialControllerClient>
ChromeSafeBrowsingBlockingPageFactory::CreateControllerClient(
content::WebContents* web_contents,
const SafeBrowsingBlockingPage::UnsafeResourceList& unsafe_resources,
const BaseUIManager* ui_manager) {
Profile* profile =
Profile::FromBrowserContext(web_contents->GetBrowserContext());
DCHECK(profile);
std::unique_ptr<ContentMetricsHelper> metrics_helper =
std::make_unique<ContentMetricsHelper>(
HistoryServiceFactory::GetForProfile(
Profile::FromBrowserContext(web_contents->GetBrowserContext()),
ServiceAccessType::EXPLICIT_ACCESS),
unsafe_resources[0].url,
BaseBlockingPage::GetReportingInfo(unsafe_resources));
auto chrome_settings_page_helper =
std::make_unique<security_interstitials::ChromeSettingsPageHelper>();
return std::make_unique<ChromeControllerClient>(
web_contents, std::move(metrics_helper), profile->GetPrefs(),
ui_manager->app_locale(), ui_manager->default_safe_page(),
std::move(chrome_settings_page_helper));
}
} // namespace safe_browsing
| 45.324074 | 94 | 0.758529 |
e295be7427b5a3e6bbaaf0b0241c43c8a59604de | 1,517 | cpp | C++ | src/demos/damping/damping.cpp | robin-lockwood/gamephysicsengines | c48b20236d20d818a5aa10c4a9852431b69ce211 | [
"MIT"
] | null | null | null | src/demos/damping/damping.cpp | robin-lockwood/gamephysicsengines | c48b20236d20d818a5aa10c4a9852431b69ce211 | [
"MIT"
] | null | null | null | src/demos/damping/damping.cpp | robin-lockwood/gamephysicsengines | c48b20236d20d818a5aa10c4a9852431b69ce211 | [
"MIT"
] | null | null | null | /*
* Damping Demo
*/
#include <cyclone/cyclone.h>
#include "../ogl_headers.h"
#include "../app.h"
#include "../timing.h"
#include <stdio.h>
#include <cstdlib>
class DampingDemo : public Application
{
struct ParticleObject
{
cyclone::Particle particle;
unsigned startTime;
void render()
{
cyclone::Vector3 position;
particle.getPosition(&position);
glColor3f(0, 0, 0);
glPushMatrix();
glTranslatef(position.x, position.y, position.z);
glutSolidSphere(0.3f, 5, 4);
glPopMatrix();
glColor3f(0.75, 0.75, 0.75);
glPushMatrix();
glTranslatef(position.x, 0, position.z);
glScalef(1.0f, 0.1f, 1.0f);
glutSolidSphere(0.6f, 5, 4);
glPopMatrix();
}
};
const static unsigned numParticles = 2;
ParticleObject particles[2];
float frameRates[10] = {1.0/20.0, 1.0/30.0, 1.0/40.0, 1.0/50.0, 1.0/60.0, 1.0/70.0, 1.0/80.0, 1.0/90.0, 1.0/100.0, 1.0/110.0};
public:
DampingDemo();
virtual const char* getTitle();
virtual void update();
virtual void display();
};
DampingDemo::DampingDemo()
{
}
const char* DampingDemo::getTitle()
{
return "Cyclone >> Damping Demo";
}
void DampingDemo::update()
{
// randomize these
srand(nullptr);
int index = rand()%10;
float duration = frameRates[index];
if (duration <= 0.0f) return;
particles[0].integrate35Damping(duration);
particles[1].integrate36Damping(duration);
Application::update();
}
| 17.847059 | 127 | 0.613711 |
e299e516b3c7bb22b7e0ebcf9328c7fd00722361 | 4,061 | cpp | C++ | RunInBash/RunInBash.cpp | neosmart/RunInBash | 3e2368f95030f1cd39c27001cb21fa50f2e289d1 | [
"MIT"
] | 83 | 2017-04-25T03:39:53.000Z | 2022-03-17T03:37:59.000Z | RunInBash/RunInBash.cpp | benpope82/RunInBash | 3e2368f95030f1cd39c27001cb21fa50f2e289d1 | [
"MIT"
] | 6 | 2017-04-25T20:13:01.000Z | 2021-08-02T05:03:08.000Z | RunInBash/RunInBash.cpp | neosmart/RunInBash | 3e2368f95030f1cd39c27001cb21fa50f2e289d1 | [
"MIT"
] | 11 | 2017-05-13T10:14:58.000Z | 2021-08-12T17:06:27.000Z | #include "stdafx.h"
#include <cassert>
#include <memory>
#include "ArgHelper.h"
template <typename T> //for both const and non-const
T *TrimStart(T *str)
{
assert(str != nullptr);
while (str[0] == _T(' '))
{
++str;
}
return str;
}
//There is no CommandLineToArgvA(), so we rely on the caller to pass in argv[]
template <typename T>
const TCHAR *GetArgumentString(const T argv)
{
const TCHAR *cmdLine = GetCommandLine();
bool escaped = cmdLine[0] == '\'' || cmdLine[0] == '\"';
const TCHAR *skipped = cmdLine + _tcsclen(argv[0]) + (escaped ? 1 : 0) * 2;
return TrimStart(skipped);
}
void PrintHelp()
{
_tprintf_s(_T("RunInBash by NeoSmart Technologies - Copyright 2017-2018\n"));
_tprintf_s(_T("Easily run command(s) under bash, capturing the exit code.\n"));
_tprintf_s(_T("Usage: Alias $ to RunInBash.exe and prefix WSL commands with $ to execute. For example:\n"));
_tprintf_s(_T("$ uname -a\n"));
}
TCHAR *Escape(const TCHAR *string)
{
assert(string != nullptr);
int newLength = 1; //terminating null
for (size_t i = 0; string[i] != _T('\0'); ++i)
{
++newLength;
//these characters will be escaped, so add room for one slash
if (string[i] == _T('"') || string[i] == _T('\\'))
{
++newLength;
}
}
TCHAR *escaped = (TCHAR *) calloc(newLength, sizeof(TCHAR));
for (size_t i = 0, j = 0; string[i] != _T('\0'); ++i, ++j)
{
if (string[i] == _T('"') || string[i] == _T('\\'))
{
escaped[j++] = _T('\\');
}
escaped[j] = string[i];
}
return escaped;
}
int _tmain(int argc, TCHAR *argv[])
{
//for multi-arch (x86/x64) support with one (x86) binary
PVOID oldValue;
Wow64DisableWow64FsRedirection(&oldValue);
//Search for bash.exe
TCHAR bash[MAX_PATH] = { 0 };
ExpandEnvironmentStrings(_T("%windir%\\system32\\bash.exe"), bash, _countof(bash));
bool found = GetFileAttributes(bash) != INVALID_FILE_ATTRIBUTES;
if (!found)
{
_ftprintf(stderr, _T("Unable to find bash.exe!\n"));
return -1;
}
#ifdef _DEBUG
int debugLevel = 1;
#else
int debugLevel = 0;
#endif
//Get whatever the user entered after our EXE as a single string
auto argument = GetArgumentString(argv);
if (_tcsclen(argument) == 0)
{
PrintHelp();
ExitProcess(-1);
}
//handle possible arguments
if (is_any_of(argv[1], _T("--help"), _T("-h"), _T("/h"), _T("/help"), _T("/?")))
{
PrintHelp();
ExitProcess(0);
}
if (is_any_of(argv[1], _T("--verbose"), _T("-v"), _T("/verbose"), _T("/v")))
{
debugLevel = 1;
argument = TrimStart(argument + 2);
}
if (is_any_of(argv[1], _T("--debug"), _T("-d"), _T("/debug"), _T("/d")))
{
debugLevel = 2;
argument = TrimStart(argument + 2);
}
//Escape it to be placed within double quotes.
//In a scope to prevent inadvertent use of freed variables
TCHAR *lpArg;
{
auto escaped = Escape(argument);
int temp = sizeof(escaped);
TCHAR *format = _T("bash -c \"%s\"");
size_t length = _tcsclen(format) + _tcslen(escaped) + 1;
lpArg = (TCHAR *)alloca(sizeof(TCHAR) * length);
ZeroMemory(lpArg, sizeof(TCHAR) * length);
_stprintf(lpArg, format, escaped);
free(escaped);
}
TCHAR currentDir[MAX_PATH] = { 0 };
GetCurrentDirectory(_countof(currentDir), currentDir);
if (debugLevel >= 1)
{
_ftprintf(stderr, _T("> %s\n"), lpArg);
}
auto startInfo = STARTUPINFO { 0 };
auto pInfo = PROCESS_INFORMATION { 0 };
bool success = CreateProcess(bash, lpArg, nullptr, nullptr, true, 0, nullptr, currentDir, &startInfo, &pInfo);
if (!success)
{
_ftprintf(stderr, _T("Failed to create process. Last error: 0x%x\n"), GetLastError());
return GetLastError();
}
WaitForSingleObject(pInfo.hProcess, INFINITE);
DWORD bashExitCode = -1;
while (GetExitCodeProcess(pInfo.hProcess, &bashExitCode) == TRUE)
{
if (bashExitCode == STILL_ACTIVE)
{
//somehow process hasn't terminated according to the kernel
continue;
}
break;
}
CloseHandle(pInfo.hProcess);
return bashExitCode;
}
| 25.067901 | 112 | 0.622014 |
e29a4fca305ebb68a4763fc6e8dc443ed826a5e5 | 1,359 | cc | C++ | src/contests/selection-contest-2/E/oldE.cc | cbarnson/UVa | 0dd73fae656613e28b5aaf5880c5dad529316270 | [
"Unlicense",
"MIT"
] | 2 | 2019-09-07T17:00:26.000Z | 2020-08-05T02:08:35.000Z | src/contests/selection-contest-2/E/oldE.cc | cbarnson/UVa | 0dd73fae656613e28b5aaf5880c5dad529316270 | [
"Unlicense",
"MIT"
] | null | null | null | src/contests/selection-contest-2/E/oldE.cc | cbarnson/UVa | 0dd73fae656613e28b5aaf5880c5dad529316270 | [
"Unlicense",
"MIT"
] | null | null | null | #include <bits/stdc++.h>
#define FR(i, n) for (int i = 0; i < (n); ++i)
using namespace std;
typedef long long ll;
typedef vector<int> vi;
typedef pair<int, int> ii;
ll dp[3][3005];
int n;
vector<ll> C, S;
const ll INF = 10e9;
ll f(int i, int t) {
if (t == 3) return C[i];
if (dp[t][i]) return dp[t][i];
ll ans = INF;
for (int j = i + 1; j < n; j++) {
if (S[i] < S[j]) {
ll a = min(f(j, t), C[j] + f(j, t + 1));
ans = min(ans, a);
}
}
return (dp[t][i] = ans);
}
// ll f(int i) {
// if (!(i < (n-2))) return -1;
// if (dp[i]) return dp[i];
// ll ans = -1;
// for (int j = i + 1; j < n-1; j++) {
// if (S[i] < S[j]) {
// for (int k = j + 1; k < n; k++) {
// if (S[j] < S[k]) {
// ll a = C[i] + C[j] + C[k];
// ans = (ans == -1 ? a : min(ans, a));
// }
// }
// }
// }
// return (dp[i] = ans);
// }
int main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
cin >> n;
C.assign(n, 0LL);
S.assign(n, 0LL);
FR(i, n) {
cin >> S[i];
}
FR(i, n) {
cin >> C[i];
}
ll ans;
for (int i = 0; i < n-2; i++) {
cout << C[i] + f(i, 1) << endl;
// ans = (i == 0 ? C[i] + f(i, 1) : min(ans, C[i] + f(i, 1)));
}
// if (ans >= INF)
// cout << -1 << endl;
// else
// cout << ans << endl;
}
| 16.9875 | 68 | 0.391464 |
e29c1cafb8d6986ad83ffad1dd2ed9726774d92d | 298 | cpp | C++ | src/searchResultsLv.cpp | romdb/romdbLauncher | 492e6d124817b11f16e7d8329d854ed837a76ea0 | [
"Zlib"
] | null | null | null | src/searchResultsLv.cpp | romdb/romdbLauncher | 492e6d124817b11f16e7d8329d854ed837a76ea0 | [
"Zlib"
] | null | null | null | src/searchResultsLv.cpp | romdb/romdbLauncher | 492e6d124817b11f16e7d8329d854ed837a76ea0 | [
"Zlib"
] | null | null | null | #include "searchResultsLv.h"
#include "Resource.h"
LRESULT SearchResultsLv::OnDblClick(DWORD fwKeys, int X, int Y)
{
LVHITTESTINFO hti = {};
hti.pt.x = X;
hti.pt.y = Y;
int idx = HitTest(&hti);
if (idx != -1)
{
SendMessageW(GetParent(Handle), WM_COMMAND, ID_OPENROM, idx);
}
return 0;
}
| 18.625 | 63 | 0.667785 |
e29c61a78ece73b4be810ef62fefefe8c06ef6e5 | 621 | cc | C++ | src/abc122/c.cc | nryotaro/at_c | 8d7d3aecb4e3c768aefdf0ceaeefb269ca9ab34c | [
"MIT"
] | null | null | null | src/abc122/c.cc | nryotaro/at_c | 8d7d3aecb4e3c768aefdf0ceaeefb269ca9ab34c | [
"MIT"
] | null | null | null | src/abc122/c.cc | nryotaro/at_c | 8d7d3aecb4e3c768aefdf0ceaeefb269ca9ab34c | [
"MIT"
] | null | null | null | #ifdef _debug
#define _GLIBCXX_DEBUG
#endif
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#ifndef _debug
int main() {
int n, q;
cin >> n >> q;
string s;
cin >> s;
vector<int> l(q), r(q);
for(int i = 0; i < q; i++)
cin >> l[i] >> r[i];
vector<int> sum(n + 1, 0), res(q);
for(int i = 1; i < n; i++) {
sum[i + 1] = sum[i];
if(s[i - 1] == 'A' && s[i] == 'C') {
sum[i + 1]++;
}
}
for(int i = 0; i < q; i++)
res[i] = sum[r[i]] - sum[l[i]];
for(auto r : res)
cout << r << endl;
return 0;
}
#endif | 20.032258 | 44 | 0.429952 |
e29dbfe319d7d92c8e16189da52462af9b78d71d | 998 | cpp | C++ | Classes/ScriptScene.cpp | seagullua/Alarm-x4 | bc4ad1bcf34a7c9ea2ab3fbd2b6cfffe4b7156a8 | [
"MIT"
] | 4 | 2015-08-12T01:50:44.000Z | 2021-02-28T04:58:25.000Z | Classes/ScriptScene.cpp | seagullua/Alarm-x4 | bc4ad1bcf34a7c9ea2ab3fbd2b6cfffe4b7156a8 | [
"MIT"
] | 1 | 2018-04-06T03:38:06.000Z | 2018-04-06T03:38:06.000Z | Classes/ScriptScene.cpp | seagullua/Alarm-x4 | bc4ad1bcf34a7c9ea2ab3fbd2b6cfffe4b7156a8 | [
"MIT"
] | 5 | 2015-04-21T05:22:52.000Z | 2018-02-02T18:12:36.000Z | #include "ScriptScene.h"
#include "Core/MTileManager.h"
USING_NS_CC;
ScriptScene* ScriptScene::create(ScriptPtr script)
{
ScriptScene *pRet = new ScriptScene();
if (pRet && pRet->init(script))
{
pRet->autorelease();
return pRet;
}
else
{
delete pRet;
pRet = NULL;
return NULL;
}
}
cocos2d::CCScene *ScriptScene::scene(ScriptPtr script)
{
// 'scene' is an autorelease object
CCScene *scene = CCScene::create();
// 'layer' is an autorelease object
ScriptScene *layer = ScriptScene::create(script);
// add layer as a child to scene
scene->addChild(layer);
MTileManager::sharedManager().switchToScene(scene);
// return the scene
return scene;
}
bool ScriptScene::init(ScriptPtr script)
{
//////////////////////////////
// 1. super init first
if ( !CCLayer::init() )
{
return false;
}
MTileManager::sharedManager().runScript(script);
return true;
}
| 17.821429 | 55 | 0.597194 |
e29e300a0fbccbea4d87c0c7ef05878613e14c66 | 3,112 | cpp | C++ | sdl/main.cpp | bduvenhage/Bits-O-Cpp | a2325978646fd27fc14de99b45c42072447af2db | [
"MIT"
] | 19 | 2018-07-02T17:06:54.000Z | 2021-03-04T18:29:21.000Z | sdl/main.cpp | bduvenhage/Bits-O-Cpp | a2325978646fd27fc14de99b45c42072447af2db | [
"MIT"
] | 1 | 2019-04-06T13:46:41.000Z | 2020-06-15T14:59:26.000Z | sdl/main.cpp | bduvenhage/Bits-O-Cpp | a2325978646fd27fc14de99b45c42072447af2db | [
"MIT"
] | 3 | 2020-04-14T09:19:43.000Z | 2021-03-27T06:40:52.000Z | #include "../defines/tc_defines.h"
#include "../math/tc_math.h"
#include "../sdl/sdl.h"
#include <iostream>
#include <iomanip>
#include <vector>
using Vertex = std::pair<int, int>;
using Line = std::pair<Vertex, Vertex>;
//! Grow the snowflake one level deeper.
std::vector<Line> grow_koch_snowflake(const std::vector<Line> &input_snowflake)
{
std::vector<Line> output_snowflake;
output_snowflake.reserve(input_snowflake.size() * 4);
for (const auto &line : input_snowflake)
{
const double x0 = line.first.first + 0.5;
const double x1 = line.second.first + 0.5;
const double y0 = line.first.second + 0.5;
const double y1 = line.second.second + 0.5;
const double xa = (x1-x0) * (1.0/3.0) + x0;
const double xb = (x1-x0) * (1.0/2.0) + x0 - sin(60.0*M_PI/180.0)*(y1-y0)/3.0;
const double xc = (x1-x0) * (2.0/3.0) + x0;
const double ya = (y1-y0) * (1.0/3.0) + y0;
const double yb = (y1-y0) * (1.0/2.0) + y0 + sin(60.0*M_PI/180.0)*(x1-x0)/3.0;
const double yc = (y1-y0) * (2.0/3.0) + y0;
output_snowflake.push_back(Line(Vertex(x0, y0), Vertex(xa, ya)));
output_snowflake.push_back(Line(Vertex(xa, ya), Vertex(xb, yb)));
output_snowflake.push_back(Line(Vertex(xb, yb), Vertex(xc, yc)));
output_snowflake.push_back(Line(Vertex(xc, yc), Vertex(x1, y1)));
}
return output_snowflake;
}
//! Draw the snowflake using lines.
void draw_snowflake(const std::vector<Line> &input_snowflake)
{
for (const auto &line : input_snowflake)
{
sdl::render_line(line.first.first, line.first.second,
line.second.first, line.second.second,
0, 0, 0);
}
}
int main()
{
// Init the SDL system.
sdl::init(800, 600);
// === Create a snowflake ===
const int snowflake_depth = 5;
const int num_sides = 3;
std::vector<Line> snowflake;
for (int i=0; i<num_sides; ++i)
{
const int x0 = 250.0 * cos(-((i+0)*2.0*M_PI)/num_sides) + 400.5;
const int y0 = 250.0 * sin(-((i+0)*2.0*M_PI)/num_sides) + 300.5;
const int x1 = 250.0 * cos(-((i+1)*2.0*M_PI)/num_sides) + 400.5;
const int y1 = 250.0 * sin(-((i+1)*2.0*M_PI)/num_sides) + 300.5;
snowflake.push_back(Line(Vertex(x0, y0), Vertex(x1, y1)));
}
for (int i=0; i<snowflake_depth; ++i)
{
snowflake = grow_koch_snowflake(snowflake);
}
// ==========================
// === SDL event loop ===
bool quits = false;
SDL_Event es;
while( !quits )
{
// Clear buffer to white.
sdl::clear_buffer();
// Draw the snowflake using lines.
draw_snowflake(snowflake);
// Update the display with the snowflake
sdl::update_display();
while( SDL_PollEvent( &es ) != 0 )
{
if( es.type == SDL_QUIT )
{
quits = true;
}
}
SDL_Delay(10);
}
sdl::quit();
}
| 27.785714 | 86 | 0.541131 |
e29ed02de4ad3f403c946707012cff195fa80cdc | 3,714 | cpp | C++ | src/common/containers/trie-pool.cpp | asgerfv/ai_boggle | 7ea541124296e730d10e64de0a7038090a876bb5 | [
"MIT"
] | null | null | null | src/common/containers/trie-pool.cpp | asgerfv/ai_boggle | 7ea541124296e730d10e64de0a7038090a876bb5 | [
"MIT"
] | null | null | null | src/common/containers/trie-pool.cpp | asgerfv/ai_boggle | 7ea541124296e730d10e64de0a7038090a876bb5 | [
"MIT"
] | null | null | null | #include "trie-pool.hpp"
// ----------------------------------------------------------------------------
#define ROTA_USE_CUSTOM_ALLOCATOR 1
// ----------------------------------------------------------------------------
/// Note: Could also have used "__declspec(selectany)" in the header, but this is
/// more cross-platform.
#if defined(_DEBUG)
int32_t common::CTriePool::s_instanceCount = 0;
#endif
// ----------------------------------------------------------------------------
namespace common
{
namespace details
{
class CTriePoolAllocator
{
public:
CTriePoolAllocator();
~CTriePoolAllocator();
CTriePool::Index_t AllocateTrie(CTriePool::Index_t parent);
void FreeAll();
CTriePool* GetPtrFromIndex(const CTriePool::Index_t index);
CTriePool::Index_t GetIndexFromPtr(const CTriePool*);
private:
static const size_t C_SSE_ALIGNMENT = 16;
static const size_t C_TRIE_SIZE = common::AlignUpTo(sizeof(CTriePool), C_SSE_ALIGNMENT);
static const size_t C_PREALLOCATED_INSTANCE_COUNT = 600 * 1000;
uint8_t* m_pMem = nullptr;
uint8_t* m_pAlignedMem = nullptr;
uint32_t m_freeCount = C_PREALLOCATED_INSTANCE_COUNT;
uint32_t m_instanceCount = 1;
};
}
}
// ----------------------------------------------------------------------------
static common::details::CTriePoolAllocator* g_pTrieAllocator = nullptr;
// ----------------------------------------------------------------------------
common::details::CTriePoolAllocator::CTriePoolAllocator()
{
m_pMem = new uint8_t[(C_PREALLOCATED_INSTANCE_COUNT * C_TRIE_SIZE) + C_CACHE_SIZE];
m_pAlignedMem = common::AlignUpToPtr(m_pMem, C_CACHE_SIZE);
}
common::details::CTriePoolAllocator::~CTriePoolAllocator()
{
FreeAll();
}
common::CTriePool::Index_t common::details::CTriePoolAllocator::AllocateTrie(CTriePool::Index_t parent)
{
const uint32_t indexToUse = m_instanceCount;
assert(indexToUse < C_PREALLOCATED_INSTANCE_COUNT);
void* pMemForTrie = &m_pAlignedMem[indexToUse * C_TRIE_SIZE];
m_instanceCount++;
new (pMemForTrie) CTriePool(parent);
return indexToUse;
}
void common::details::CTriePoolAllocator::FreeAll()
{
delete [] m_pMem;
m_pMem = nullptr;
}
common::CTriePool* common::details::CTriePoolAllocator::GetPtrFromIndex(const CTriePool::Index_t index)
{
void* pMemForTrie = &m_pAlignedMem[index * C_TRIE_SIZE];
return reinterpret_cast<common::CTriePool*>(pMemForTrie);
}
common::CTriePool::Index_t common::details::CTriePoolAllocator::GetIndexFromPtr(const CTriePool* pTrie)
{
const uintptr_t diff = uintptr_t(pTrie) - uintptr_t(m_pAlignedMem);
const CTriePool::Index_t result = static_cast<CTriePool::Index_t>(diff / C_TRIE_SIZE);
return result;
}
// ----------------------------------------------------------------------------
common::CTriePool::Index_t common::details::AllocateTrie(const CTriePool::Index_t parent)
{
return g_pTrieAllocator->AllocateTrie(parent);
}
common::CTriePool* common::details::GetPtrFromIndex(CTriePool::Index_t index)
{
return g_pTrieAllocator->GetPtrFromIndex(index);
}
common::CTriePool::Index_t common::details::GetIndexFromPtr(CTriePool* pTrie)
{
return g_pTrieAllocator->GetIndexFromPtr(pTrie);
}
// ----------------------------------------------------------------------------
void common::CTriePool::InitializePool()
{
g_pTrieAllocator = new details::CTriePoolAllocator();
}
void common::CTriePool::ClearAllTries()
{
delete g_pTrieAllocator;
g_pTrieAllocator = nullptr;
}
| 24.27451 | 104 | 0.600969 |
e2a1546692645f661d2b57fc2aec06b24dbdc63a | 247 | cpp | C++ | SDLEngine/SDLEngine/SDLEngine/src/Collision.cpp | AyushNathJha007/SDLEngine | ef779884fac9e72c038387f976c6e75eb2dd4187 | [
"MIT"
] | 1 | 2021-03-23T06:15:30.000Z | 2021-03-23T06:15:30.000Z | SDLEngine/SDLEngine/SDLEngine/src/Collision.cpp | AyushNathJha007/SDLEngine | ef779884fac9e72c038387f976c6e75eb2dd4187 | [
"MIT"
] | null | null | null | SDLEngine/SDLEngine/SDLEngine/src/Collision.cpp | AyushNathJha007/SDLEngine | ef779884fac9e72c038387f976c6e75eb2dd4187 | [
"MIT"
] | null | null | null |
#include "Collision.h"
bool Collision::CheckCollisonAABB(const SDL_Rect & RectA, const SDL_Rect & RectB)
{
return (RectA.x + RectA.w >= RectB.x && RectB.x + RectB.w >= RectA.x && RectA.y + RectA.h >= RectB.y && RectB.y + RectB.h >= RectA.y);
}
| 30.875 | 135 | 0.651822 |
e2a174e62ca5ff3e7cb1f9576f7a6e887fd2ce55 | 11,078 | cpp | C++ | MarkdownAndroid/SimpleMarkdownParserLib/src/main/cpp/simplemarkdownsymbolfindernative.cpp | crescentflare/SimpleMarkdownParser | 908a543071f215b3ab7870741a1b9a6d70b72161 | [
"MIT"
] | 13 | 2016-08-01T07:48:25.000Z | 2021-06-21T07:56:22.000Z | MarkdownAndroid/SimpleMarkdownParserLib/src/main/cpp/simplemarkdownsymbolfindernative.cpp | crescentflare/SimpleMarkdownParser | 908a543071f215b3ab7870741a1b9a6d70b72161 | [
"MIT"
] | 5 | 2016-08-02T17:17:31.000Z | 2020-09-12T14:40:18.000Z | MarkdownAndroid/SimpleMarkdownParserLib/src/main/cpp/simplemarkdownsymbolfindernative.cpp | crescentflare/SimpleMarkdownParser | 908a543071f215b3ab7870741a1b9a6d70b72161 | [
"MIT"
] | 2 | 2016-08-03T02:36:26.000Z | 2020-01-15T23:05:59.000Z | // --
// Includes
// --
#include <jni.h>
#include <cstdlib>
#include <algorithm>
#include <vector>
#include <cstring>
#include "utfstring.h"
// --
// Constants, enum, struct and utility functions for markdown symbols
// --
typedef enum {
MARKDOWN_SYMBOL_INVALID = 0,
MARKDOWN_SYMBOL_ESCAPE,
MARKDOWN_SYMBOL_DOUBLE_QUOTE,
MARKDOWN_SYMBOL_TEXT_BLOCK,
MARKDOWN_SYMBOL_NEWLINE,
MARKDOWN_SYMBOL_HEADER,
MARKDOWN_SYMBOL_FIRST_TEXT_STYLE,
MARKDOWN_SYMBOL_SECOND_TEXT_STYLE,
MARKDOWN_SYMBOL_THIRD_TEXT_STYLE,
MARKDOWN_SYMBOL_ORDERED_LIST_ITEM,
MARKDOWN_SYMBOL_UNORDERED_LIST_ITEM,
MARKDOWN_SYMBOL_OPEN_LINK,
MARKDOWN_SYMBOL_CLOSE_LINK,
MARKDOWN_SYMBOL_OPEN_URL,
MARKDOWN_SYMBOL_CLOSE_URL
}MARKDOWN_SYMBOL_TYPE;
class MarkdownSymbol {
public:
MARKDOWN_SYMBOL_TYPE type;
UTFStringIndex startIndex;
UTFStringIndex endIndex;
int line;
int linePosition;
public:
MarkdownSymbol(): type(MARKDOWN_SYMBOL_INVALID), startIndex(UTFStringIndex(nullptr)), endIndex(UTFStringIndex(nullptr)), line(0), linePosition(0) {
}
MarkdownSymbol(MARKDOWN_SYMBOL_TYPE type, int line, const UTFStringIndex &startIndex, const UTFStringIndex &endIndex, int linePosition): type(type), startIndex(startIndex), endIndex(endIndex), line(line), linePosition(linePosition) {
}
MarkdownSymbol(const MarkdownSymbol &other): type(other.type), startIndex(other.startIndex), endIndex(other.endIndex), line(other.line), linePosition(other.linePosition) {
}
void update(MARKDOWN_SYMBOL_TYPE newType, int newLine, const UTFStringIndex &newStartIndex, const UTFStringIndex &newEndIndex, int newLinePosition) {
type = newType;
startIndex = newStartIndex;
endIndex = newEndIndex;
line = newLine;
linePosition = newLinePosition;
}
bool valid() const {
return type != MARKDOWN_SYMBOL_INVALID;
}
void makeInvalid() {
type = MARKDOWN_SYMBOL_INVALID;
}
void updateEndPosition(const UTFStringIndex &index) {
endIndex = index;
}
void toArray(jint *ptr) const {
if (ptr) {
ptr[0] = type;
ptr[1] = line;
ptr[2] = startIndex.chrPos;
ptr[3] = endIndex.chrPos;
ptr[4] = linePosition;
}
}
static unsigned char fieldCount() {
return 5;
}
};
// --
// Markdown symbol finder class
// --
class MarkdownNativeSymbolFinder {
public:
std::vector<MarkdownSymbol> symbols;
private:
int currentLine = 0;
int linePosition = 0;
int lastEscapePosition = -100;
MarkdownSymbol currentTextBlockSymbol;
MarkdownSymbol currentHeaderSymbol;
MarkdownSymbol currentTextStyleSymbol;
MarkdownSymbol currentListItemSymbol;
bool needListDotSeparator = false;
public:
void addCharacter(int position, const UTFStringIndex &index, const UTFStringIndex &nextIndex, int character) {
// Handle character escaping
bool escaped;
if (character == '\\') {
if (lastEscapePosition != position - 1) {
lastEscapePosition = position;
symbols.emplace_back(MARKDOWN_SYMBOL_ESCAPE, currentLine, index, nextIndex, linePosition);
}
escaped = true;
} else {
escaped = lastEscapePosition == position - 1;
}
// Check for double quotes
if (!escaped && character == '"') {
symbols.emplace_back(MARKDOWN_SYMBOL_DOUBLE_QUOTE, currentLine, index, nextIndex, linePosition);
}
// Check for text blocks
bool isTextCharacter = escaped || (character != ' ' && character != '\n' && character != '\t');
if (currentTextBlockSymbol.valid()) {
if (isTextCharacter) {
currentTextBlockSymbol.updateEndPosition(nextIndex);
}
} else if (isTextCharacter) {
currentTextBlockSymbol.update(MARKDOWN_SYMBOL_TEXT_BLOCK, currentLine, index, nextIndex, linePosition);
}
// Check for newlines
if (character == '\n' && !escaped) {
if (currentTextBlockSymbol.valid()) {
symbols.emplace_back(MarkdownSymbol(currentTextBlockSymbol));
currentTextBlockSymbol.makeInvalid();
}
symbols.emplace_back(MARKDOWN_SYMBOL_NEWLINE, currentLine, index, nextIndex, linePosition);
}
// Check for headers
bool isHeaderCharacter = character == '#' && !escaped;
if (currentHeaderSymbol.valid()) {
if (isHeaderCharacter) {
currentHeaderSymbol.updateEndPosition(nextIndex);
} else {
symbols.emplace_back(MarkdownSymbol(currentHeaderSymbol));
currentHeaderSymbol.makeInvalid();
}
} else if (isHeaderCharacter) {
currentHeaderSymbol.update(MARKDOWN_SYMBOL_HEADER, currentLine, index, nextIndex, linePosition);
}
// Check for text styles
MARKDOWN_SYMBOL_TYPE textStyleType = MARKDOWN_SYMBOL_ESCAPE;
if (!escaped) {
if (character == '*') {
textStyleType = MARKDOWN_SYMBOL_FIRST_TEXT_STYLE;
} else if (character == '_') {
textStyleType = MARKDOWN_SYMBOL_SECOND_TEXT_STYLE;
} else if (character == '~') {
textStyleType = MARKDOWN_SYMBOL_THIRD_TEXT_STYLE;
}
}
if (currentTextStyleSymbol.valid()) {
if (currentTextStyleSymbol.type == textStyleType) {
currentTextStyleSymbol.updateEndPosition(nextIndex);
} else {
symbols.emplace_back(MarkdownSymbol(currentTextStyleSymbol));
currentTextStyleSymbol.makeInvalid();
if (textStyleType != MARKDOWN_SYMBOL_ESCAPE) {
currentTextStyleSymbol.update(textStyleType, currentLine, index, nextIndex, linePosition);
}
}
} else if (textStyleType != MARKDOWN_SYMBOL_ESCAPE) {
currentTextStyleSymbol.update(textStyleType, currentLine, index, nextIndex, linePosition);
}
// Check for lists
if (!escaped) {
if (currentListItemSymbol.valid()) {
if (currentListItemSymbol.type == MARKDOWN_SYMBOL_UNORDERED_LIST_ITEM && character == ' ') {
symbols.emplace_back(MarkdownSymbol(currentListItemSymbol));
currentListItemSymbol.makeInvalid();
} else if (currentListItemSymbol.type == MARKDOWN_SYMBOL_ORDERED_LIST_ITEM) {
if (needListDotSeparator && ((character >= '0' && character <= '9') || character == '.')) {
currentListItemSymbol.updateEndPosition(nextIndex);
if (character == '.') {
needListDotSeparator = false;
}
} else if (!needListDotSeparator && character == ' ') {
symbols.emplace_back(MarkdownSymbol(currentListItemSymbol));
currentListItemSymbol.makeInvalid();
} else {
currentListItemSymbol.makeInvalid();
}
} else {
currentListItemSymbol.makeInvalid();
}
} else if (currentTextBlockSymbol.valid() && currentTextBlockSymbol.startIndex.chrPos == position) {
bool isBulletCharacter = character == '*' || character == '+' || character == '-';
if (isBulletCharacter || (character >= '0' && character <= '9')) {
currentListItemSymbol.update(isBulletCharacter ? MARKDOWN_SYMBOL_UNORDERED_LIST_ITEM : MARKDOWN_SYMBOL_ORDERED_LIST_ITEM, currentLine, index, nextIndex, linePosition);
needListDotSeparator = !isBulletCharacter;
}
}
} else {
currentListItemSymbol.makeInvalid();
}
// Check for links
if (!escaped) {
MARKDOWN_SYMBOL_TYPE linkSymbolType;
if (character == '[') {
linkSymbolType = MARKDOWN_SYMBOL_OPEN_LINK;
} else if (character == ']') {
linkSymbolType = MARKDOWN_SYMBOL_CLOSE_LINK;
} else if (character == '(') {
linkSymbolType = MARKDOWN_SYMBOL_OPEN_URL;
} else if (character == ')') {
linkSymbolType = MARKDOWN_SYMBOL_CLOSE_URL;
} else {
linkSymbolType = MARKDOWN_SYMBOL_ESCAPE;
}
if (linkSymbolType != MARKDOWN_SYMBOL_ESCAPE) {
symbols.emplace_back(linkSymbolType, currentLine, index, nextIndex, linePosition);
}
}
// Update line position
if (!escaped && character == '\n') {
linePosition = 0;
currentLine += 1;
} else if (lastEscapePosition != position) {
linePosition += 1;
}
}
void finalizeScanning() {
if (currentTextBlockSymbol.valid()) {
symbols.emplace_back(currentTextBlockSymbol);
}
if (currentHeaderSymbol.valid()) {
symbols.emplace_back(currentHeaderSymbol);
}
if (currentTextStyleSymbol.valid()) {
symbols.emplace_back(currentTextStyleSymbol);
}
}
};
// --
// JNI function to find all supported markdown symbols
// --
extern "C"
{
JNIEXPORT jintArray JNICALL
Java_com_crescentflare_simplemarkdownparser_symbolfinder_SimpleMarkdownSymbolFinderNative_scanNativeText(JNIEnv *env, jobject instance, jstring markdownText_) {
// Java string conversion
const char *markdownTextPointer = env->GetStringUTFChars(markdownText_, nullptr);
UTFString markdownText(markdownTextPointer);
// Loop over string and find symbols
MarkdownNativeSymbolFinder symbolFinder;
const UTFStringIndex maxLength = markdownText.endIndex();
UTFStringIndex index = markdownText.startIndex();
while (index < maxLength) {
const UTFStringIndex nextIndex = index + 1;
symbolFinder.addCharacter(index.chrPos, index, nextIndex, markdownText[index]);
index = nextIndex;
}
symbolFinder.finalizeScanning();
// Convert symbols into a java array, clean up and return
jintArray returnArray = nullptr;
jint *convertedValues = (jint *)malloc(symbolFinder.symbols.size() * MarkdownSymbol::fieldCount() * sizeof(jint));
if (convertedValues) {
returnArray = env->NewIntArray(symbolFinder.symbols.size() * MarkdownSymbol::fieldCount());
int i;
for (i = 0; i < symbolFinder.symbols.size(); i++) {
symbolFinder.symbols[i].toArray(&convertedValues[i * MarkdownSymbol::fieldCount()]);
}
env->SetIntArrayRegion(returnArray, 0, symbolFinder.symbols.size() * MarkdownSymbol::fieldCount(), convertedValues);
free(convertedValues);
}
env->ReleaseStringUTFChars(markdownText_, markdownTextPointer);
return returnArray;
}
}
| 37.808874 | 237 | 0.62403 |
e2a1b19379e49506277b71c350e108a2b1c638b2 | 1,320 | cpp | C++ | test/pprm_irs_integration_test.cpp | elishafer/mpt | e0997259fbd1431bab4b5ffb6f0d2f00fa380660 | [
"BSD-3-Clause"
] | 54 | 2018-09-28T17:28:02.000Z | 2022-01-25T20:30:32.000Z | test/pprm_irs_integration_test.cpp | elishafer/mpt | e0997259fbd1431bab4b5ffb6f0d2f00fa380660 | [
"BSD-3-Clause"
] | 2 | 2019-11-21T20:16:26.000Z | 2020-03-27T12:55:31.000Z | test/pprm_irs_integration_test.cpp | elishafer/mpt | e0997259fbd1431bab4b5ffb6f0d2f00fa380660 | [
"BSD-3-Clause"
] | 27 | 2019-05-15T00:18:46.000Z | 2021-07-30T00:41:37.000Z | #define MPT_LOG_LEVEL WARN
#include "planner_integration_test.hpp"
#include <mpt/pprm_irs.hpp>
#include <nigh/gnat.hpp>
#include <nigh/linear.hpp>
using namespace unc::robotics;
using namespace mpt;
using namespace mpt_test;
TEST(pprm_irs_until_solved) {
testSolvingBasicScenario<PPRMIRS<>>();
}
TEST(pprm_irs_until_solved_with_stats) {
testSolvingBasicScenario<PPRMIRS<report_stats<true>>>();
}
TEST(pprm_irs_until_solved_single_threaded) {
testSolvingBasicScenario<PPRMIRS<single_threaded>>();
}
TEST(pprm_irs_until_solved_with_gnat) {
testSolvingBasicScenario<PPRMIRS<nigh::GNAT<>>>();
}
TEST(pprm_irs_until_solved_with_linear) {
testSolvingBasicScenario<PPRMIRS<nigh::Linear>>();
}
TEST(pprm_irs_options_parser) {
// The options parser should resolve the following two planners to
// the same concrete type.
using Scenario = BasicScenario<>;
using A = mpt::Planner<Scenario, PPRMIRS<nigh::Linear, single_threaded, report_stats<true>>>;
using B = mpt::Planner<Scenario, PPRMIRS<single_threaded, report_stats<true>, nigh::Linear>>;
EXPECT((std::is_same_v<A, B>)) == true;
}
TEST(pprm_irs_with_trajectory) {
testSolvingTrajectoryScenario<PPRMIRS<>>();
}
#if 0
TEST(pprm_irs_with_shared_trajectory) {
testSolvingSharedTrajectoryScenario<PPRMIRS<>>();
}
#endif
| 27.5 | 97 | 0.758333 |
e2a7da63197743e1c74c272fec6d02ec655c1235 | 644 | cpp | C++ | testargparser.cpp | HelpMeHelpYou/FlyElephantTask | a3b5c627d273cbba48c5f21f00e9d4a49b55d97a | [
"MIT"
] | null | null | null | testargparser.cpp | HelpMeHelpYou/FlyElephantTask | a3b5c627d273cbba48c5f21f00e9d4a49b55d97a | [
"MIT"
] | null | null | null | testargparser.cpp | HelpMeHelpYou/FlyElephantTask | a3b5c627d273cbba48c5f21f00e9d4a49b55d97a | [
"MIT"
] | null | null | null | #include "argparser.h"
#include "gtest/gtest.h"
#include "string.h"
class TestArgParserFixture : public ::testing::Test
{
public:
std::string param0 = "program";
std::string param1 ="arg0";
std::string param2 ="arg1";
const char* args [3] = {param0.c_str(),param1.c_str(),param2.c_str()};
ArgParser argParser;
};
TEST_F(TestArgParserFixture,ShouldParse3args)
{
EXPECT_EQ(argParser.Parse(3,args),true);
EXPECT_EQ(argParser.GetDataFilename(),param1);
EXPECT_EQ(argParser.GetDictionaryFilename(),param2);
}
TEST_F(TestArgParserFixture,ShouldNotParse2args)
{
EXPECT_EQ(argParser.Parse(2,args),false);
}
| 22.206897 | 75 | 0.71118 |
e2a7eb02618e1146d3dcc4face2b43a79ee039dd | 706 | cpp | C++ | examples/keyboard_example.cpp | yamaha-bps/cbr_drivers | 64e971c0a7e79c414e81fe2ac32e6360adb266eb | [
"MIT"
] | null | null | null | examples/keyboard_example.cpp | yamaha-bps/cbr_drivers | 64e971c0a7e79c414e81fe2ac32e6360adb266eb | [
"MIT"
] | null | null | null | examples/keyboard_example.cpp | yamaha-bps/cbr_drivers | 64e971c0a7e79c414e81fe2ac32e6360adb266eb | [
"MIT"
] | null | null | null | // Copyright Yamaha 2021
// MIT License
// https://github.com/yamaha-bps/cbr_drivers/blob/master/LICENSE
#include <cbr_drivers/keyboard.hpp>
#include <thread>
#include <chrono>
#include <iostream>
int main(int argc, char ** argv)
{
if (argc != 2) {
std::cerr << "usage: keyboard_example <device>" << std::endl;
exit(EXIT_FAILURE);
}
cbr::Keyboard keyboard(argv[1]);
for (auto i = 0u; i < 500; ++i) {
std::this_thread::sleep_for(std::chrono::milliseconds(50));
std::cout << std::endl << "W: " << keyboard.getKeyState(KEY_W) << " A: " <<
keyboard.getKeyState(KEY_A) <<
" S: " << keyboard.getKeyState(KEY_S) << " D: " << keyboard.getKeyState(KEY_D) << std::endl;
}
}
| 27.153846 | 98 | 0.626062 |
e2ab3dfaa11c7ab8c72a35523b37b1b5fedf4220 | 19,759 | cpp | C++ | src/core/impl/StdPlayQueue.cpp | varunamachi/tanyatu | ce055e0fb0b688054fe19ef39b09a6ca655e2457 | [
"MIT"
] | 1 | 2018-01-07T18:11:04.000Z | 2018-01-07T18:11:04.000Z | src/core/impl/StdPlayQueue.cpp | varunamachi/tanyatu | ce055e0fb0b688054fe19ef39b09a6ca655e2457 | [
"MIT"
] | null | null | null | src/core/impl/StdPlayQueue.cpp | varunamachi/tanyatu | ce055e0fb0b688054fe19ef39b09a6ca655e2457 | [
"MIT"
] | null | null | null | /*******************************************************************************
* Copyright (c) 2014 Varuna L Amachi. All rights reserved.
*
* 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 <QSize>
#include <QFont>
#include <QAbstractItemModel>
#include <QTime>
#include <QtAlgorithms>
#include "StdPlayQueue.h"
#include "../data/AudioTrack.h"
#include "../data/VideoTrack.h"
#include "../data/MediaItem.h"
#include "../coreutils/Utils.h"
#include "../interfaces/IComponent.h"
#define RANDOM_STOP_PERCENTAGE 80
#define PREV_LIST_REMOVE_THRESHOLD 100
namespace Tanyatu { namespace Impl {
StdPlayQueue::StdPlayQueue( QObject *parent )
: IPlayQueue( parent )
, m_currentIndex( -1 )
, m_prevListIndex( -1 )
, m_random( false )
, m_repeatType( IPlayQueue::RepeatType_RepeatAll )
{
}
void StdPlayQueue::addItem( const Tanyatu::Data::MediaItem *c_item,
bool selected )
{
Data::MediaItem *item = const_cast< Data::MediaItem *>( c_item );
if( item ) {
emit aboutToChangePlayQueue();
m_items.append( item );
m_unplayedIds.insert( item->trackId() );
emit itemAdded( item );
if( selected ) {
selectIndex( m_items.size() - 1 );
}
emit playQueueChanged();
}
}
void StdPlayQueue::addItems(
const QList< Tanyatu::Data::MediaItem *> &items )
{
if( ! items.empty() ) {
emit aboutToChangePlayQueue();
for( int i = 0; i < items.size(); ++i ) {
Data::MediaItem *item = items.at( i );
m_items.append( item );
m_unplayedIds.insert( item->trackId() );
emit itemAdded( item );
}
emit playQueueChanged();
}
}
void StdPlayQueue::removeItem( const QString itemId )
{
QList< int > indices;
getAllIndicesOf( itemId, indices );
if( ! indices.isEmpty() ) {
removeItems( indices );
}
}
void StdPlayQueue::removeItem( const Tanyatu::Data::MediaItem *item )
{
QList< int > indices;
getAllIndicesOf( item->trackId(), indices );
if( ! indices.isEmpty() ) {
removeItems( indices );
}
}
void StdPlayQueue::removeItem( int index )
{
QList< int > solo;
solo << index;
removeItems( solo );
}
void StdPlayQueue::removeItems(
const QList< Tanyatu::Data::MediaItem * > &items )
{
QList< int > indices;
foreach( Data::MediaItem *item, items ) {
getAllIndicesOf( item->trackId(), indices );
}
if( ! indices.isEmpty() ) {
removeItems( indices );
}
}
void StdPlayQueue::removeItems( int fromIndex, int toIndex )
{
if( fromIndex > toIndex ) {
QList< int > indices;
for( int i = fromIndex; i < toIndex; ++i ) {
indices.append( i );
}
removeItems( indices );
}
}
void StdPlayQueue::removeItems( QList< int > &indices )
{
/* We have to delete the items which are being deleted from the playlist
* which are persisted items */
QList< Data::MediaItem * > deletionCandidates;
bool currentIndexChanged = false;
// bool plChanged = false;
qSort( indices );
emit aboutToChangePlayQueue();
for( int i = indices.size() - 1; i >= 0; -- i ) {
int index = indices.at( i );
if( isValidIndex( index ) ) {
//Notify the removal to the view
Data::MediaItem *delItem = m_items.at( index );
if( m_items.size() == 1 ) {
//If the there is only one item, then clear the list
emit clearingPlayQueue();
emit removingSelectedItem();
emit removingItem( delItem, index );
deletionCandidates.append( delItem );
m_items.removeAt( index );
emit removedItem( delItem, index);
m_currentIndex = -1;
break;
currentIndexChanged = true;
// plChanged = true;
}
else if( index > m_currentIndex ) {
/* If the index for removal is more than the current selected
* index then we are relieved since the removal wont affect the
* currently selected index
*/
emit removingItem( delItem, index );
deletionCandidates.append( delItem );
m_items.removeAt( index );
emit removedItem( delItem, index);
// plChanged = true;
}
else if ( index == m_currentIndex ) {
int oldCurIndex = m_currentIndex;
/* If we are removing the current item, we should notify it,
* since player may be using it and we hope it will handle this
* situaltion properly.
*/
emit removingSelectedItem();
emit removingItem( delItem, index );
/* Since current item is no more, we set it to invalid. Later we
* will select the next one
*/
m_currentIndex = -1;
emit indexOfCurrentChanged( m_currentIndex, oldCurIndex );
m_items.removeAt( index );
deletionCandidates.append( delItem );
emit removedItem( delItem, index );
currentIndexChanged = true;
// plChanged = true;
}
else if( index < m_currentIndex ) {
/* If we are removing an item before the current one, the index
* of the current item needs to be adjusted - decremented.
*/
-- m_currentIndex;
emit indexOfCurrentChanged( m_currentIndex, m_currentIndex +1 );
emit removingItem( delItem, index );
deletionCandidates.append( delItem );
m_items.removeAt( index );
emit removedItem( delItem, index );
// plChanged = true;
currentIndexChanged = true;
}
}
}
if( currentIndexChanged ) {
if( m_currentIndex == -1 ) {
selectNext();
}
}
/*
* Update the internal structures: clear the previously played items and
* if the player is currently in random play mode then remove the track
* from unplayed ids.
* Deallocate the items for which playlist is the owner. The
* PersistedItems are owned by the media library and shall not be
* deallocated here
*/
m_prevIndicesList.clear();
for( int i = 0; i < deletionCandidates.size(); ++i) {
Data::MediaItem *item = deletionCandidates.at( i );
if( m_random ) {
m_unplayedIds.remove( item->trackId() );
}
if( item->type() != Data::Media_StoredAudio
&& item->type() != Data::Media_StoredVideo) {
delete item;
}
}
// if( plChanged ) {
emit playQueueChanged();
// }
}
void StdPlayQueue::clearAllStoredItems()
{
bool atleastOneRemoved = false;
emit aboutToChangePlayQueue();
for( int i = m_items.size() - 1; i >= 0; --i ) {
Data::MediaItem *item = m_items.at( i );
if( item->type() == Data::Media_StoredAudio
|| item->type() == Data::Media_StoredVideo ) {
if( ! atleastOneRemoved ) {
atleastOneRemoved = true;
emit clearingPlayQueue();
}
m_items.removeAt( i );
m_unplayedIds.remove( item->trackId() );
}
}
if( atleastOneRemoved ) {
m_prevIndicesList.clear();
if( m_items.isEmpty() ) {
m_currentIndex = -1;
m_prevListIndex = -1;
emit playQueueCleared();
}
else {
}
}
emit playQueueChanged();
}
void StdPlayQueue::clear()
{
emit clearingPlayQueue();
emit aboutToChangePlayQueue();
for(int i = 0; i < m_items.size(); ++ i) {
Data::MediaItem *item = m_items.at( i );
if( ! ( item->type() == Data::Media_StoredAudio
|| item->type() == Data::Media_StoredVideo )) {
//Delete item which is not owned by 'this'
delete item;
}
}
m_items.clear();
m_unplayedIds.clear();
m_prevIndicesList.clear();
m_currentIndex = -1;
m_prevListIndex = -1;
emit playQueueChanged();
emit playQueueCleared();
}
void StdPlayQueue::selectNext()
{
int selectedIndex = 0;
if( ! m_prevIndicesList.isEmpty()
&& m_prevListIndex >= 0
&& m_prevListIndex < m_prevIndicesList.size() - 1 ) {
m_prevListIndex = m_prevListIndex > m_prevIndicesList.size() - 1
? m_prevIndicesList.size() - 1
: m_prevListIndex;
/**
* If we are down the previously played track and we are trieng to
* select the next track, this track will the next index present in
* the previously played indices list and not a new track.
*/
selectedIndex = m_prevIndicesList.at( m_prevListIndex );
++ m_prevListIndex;
}
else if( m_random ) {
selectedIndex = getRandomIndex();
}
/* If random is not selected then we check if next is available if yes we
* have few conditions to check for, if not availabel notify that playlist
* finished
*/
else if( hasNext() ) {
if( m_currentIndex == m_items.size() - 1
&& m_repeatType == IPlayQueue::RepeatType_RepeatAll) {
//Start all over again
selectedIndex = 0;
}
else if( m_repeatType == IPlayQueue::RepeatType_RepeatOne ) {
selectedIndex = m_currentIndex;
}
else {
selectedIndex = m_currentIndex + 1;
}
}
else {
emit playQueueConfigChanged();
emit finished();
return;
}
//And if it is selected, it's no longer unplayed
m_unplayedIds.remove( m_items.at( selectedIndex )->trackId() );
addToPrevList( selectedIndex );
m_currentIndex = selectedIndex;
emit itemSelected( m_items.at( m_currentIndex ), m_currentIndex );
/*
* Although playlist contents themself didn't change, the state of the
* playlist has changed
*/
emit playQueueConfigChanged();
}
void StdPlayQueue::selectPrevious()
{
if( m_items.isEmpty() )
{
m_currentIndex = -1;
return;
}
int selectedIndex = 0;
if( ! m_prevIndicesList.isEmpty() && m_prevListIndex != 0 ) {
-- m_prevListIndex;
m_prevListIndex = m_prevListIndex > m_prevIndicesList.size() - 1
? m_prevIndicesList.size() - 1
: m_prevListIndex;
selectedIndex = m_prevIndicesList.at( m_prevListIndex );
m_unplayedIds.remove( m_items.at( selectedIndex )->trackId() );
}
else if( m_prevIndicesList.isEmpty() )
{
selectedIndex = m_currentIndex == 0 ? m_items.size() - 1
: m_currentIndex - 1;
}
else {
if( m_random ) {
//If its random doesn't matter if it is next or previous
selectedIndex = getRandomIndex();
m_unplayedIds.remove( m_items.at( selectedIndex )->trackId() );
addToPrevList( selectedIndex );
}
else if( m_repeatType == IPlayQueue::RepeatType_RepeatAll ) {
selectedIndex = m_currentIndex == 0 ? ( m_items.size() - 1 )
: ( m_currentIndex - 1 );
}
else if( m_repeatType == IPlayQueue::RepeatType_RepeatOne ) {
//Play it again and again
selectedIndex = m_currentIndex;
}
else if( m_currentIndex != 0 ) {
//Decrement to go behind
selectedIndex = m_currentIndex - 1;
}
else {
//Ok done walking backwords
emit playQueueConfigChanged();
emit finished();
return;
}
}
m_currentIndex = selectedIndex;
emit itemSelected( m_items.at( m_currentIndex ), m_currentIndex );
/*
* Although playlist contents themself didn't change, the state of the
* playlist has changed
*/
emit playQueueConfigChanged();
}
void StdPlayQueue::selectIndex( int index )
{
if( isValidIndex( index ) ) {
Data::MediaItem *item = m_items.at( index );
m_unplayedIds.remove( item->trackId() );
m_prevIndicesList.append( index );
++ m_prevListIndex;
m_currentIndex = index;
emit itemSelected( item, m_currentIndex );
emit playQueueConfigChanged();
}
}
void StdPlayQueue::insert(
int index,
const QList< Tanyatu::Data::MediaItem * > &items )
{
emit aboutToChangePlayQueue();
foreach( Data::MediaItem *item, items ) {
m_items.insert( index, item );
m_unplayedIds.insert( item->trackId() );
}
//Clear the prev played list since updating it costly
m_prevIndicesList.clear();
emit playQueueChanged();
}
void StdPlayQueue::moveItem( int origIndex, int newIndex, int numItems )
{
if( origIndex >= 0 && origIndex < m_items.size()
&& newIndex >=0 && newIndex < m_items.size()
&& newIndex != origIndex )
{
emit aboutToChangePlayQueue();
for( int index = origIndex;
index < ( origIndex +numItems );
++ index ) {
Data::MediaItem *item = m_items.at( index );
m_items.move( index, newIndex );
++ newIndex;
emit itemMoved( item, index, newIndex );
if( index == m_currentIndex ) {
emit indexOfCurrentChanged( newIndex, index );
}
}
m_prevIndicesList.clear();
emit playQueueChanged();
}
}
void StdPlayQueue::setRandom( bool value )
{
m_random = value;
m_unplayedIds.clear();
m_prevIndicesList.clear();
m_prevListIndex = -1;
emit playQueueConfigChanged();
}
void StdPlayQueue::setRepeat(
Tanyatu::IPlayQueue::RepeatType repeatType)
{
m_repeatType = repeatType;
emit playQueueConfigChanged();
}
Data::MediaItem* StdPlayQueue::current() const
{
return m_items.at( m_currentIndex );
}
int StdPlayQueue::currentIndex() const
{
return m_currentIndex;
}
bool StdPlayQueue::hasNext() const
{
if( m_items.isEmpty() || m_currentIndex == -1 ) {
return false;
}
else if( m_repeatType == IPlayQueue::RepeatType_NoRepeat
&& m_currentIndex == m_items.size() - 1)
{
return false;
}
return true;
}
bool StdPlayQueue::hasPrev() const
{
bool result = true;
if( m_items.isEmpty() || m_currentIndex == -1 || m_prevListIndex == -1) {
result = false;
}
else if( m_random && m_prevIndicesList.isEmpty() )
{
result = false;
}
return result;
}
int StdPlayQueue::numberOfItems() const
{
return m_items.size();
}
bool StdPlayQueue::isRandom() const
{
return m_random;
}
IPlayQueue::RepeatType StdPlayQueue::repeatType() const
{
return m_repeatType;
}
const QList<Data::MediaItem *> *StdPlayQueue::getAllItemsInOrder() const
{
return &m_items;
}
void StdPlayQueue::addToPrevList( int index )
{
m_prevIndicesList.append( index );
//Always point to the most recently played
m_prevListIndex = m_prevIndicesList.size() - 1;
if( m_prevIndicesList.size() > PREV_LIST_REMOVE_THRESHOLD ) {
m_prevIndicesList.removeFirst();
}
}
int StdPlayQueue::getRandomIndex()
{
int selectedIndex = 0;
if( m_unplayedIds.empty() ) {
//We dont have nothing unplayed now... replenish
for( int i = 0; i < m_items.size(); ++ i ) {
m_unplayedIds.insert( m_items.at( i )->trackId() );
}
return selectedIndex;
}
//findout the percentage of tracks that are already played
int usedPc = static_cast< int >(
( m_items.size() - m_unplayedIds.size() )
/ m_items.size()
* 100);
if( usedPc > RANDOM_STOP_PERCENTAGE ) {
/**
* If 80pc of the tracks are already played, there is no point in
* generating random numbers. So we iterate through the item list
* and play the first available unplayed track
*/
for( int index = 0; index < m_items.size(); ++ index) {
Data::MediaItem *item = m_items.at( index );
if( m_unplayedIds.contains( item->trackId() )) {
selectedIndex = index;
break;
}
}
}
else {
/**
* If we have got more than 20pc tracks unplayed, we generate
* random number and see the generated index is unplayed, if yes
* then select it, otherwise generate a new random number
*/
int indexCandidate = qrand() % m_items.size();
while( ! m_unplayedIds.contains(
m_items.at( indexCandidate )->trackId() )) {
indexCandidate = qrand() % m_items.size();
}
selectedIndex = indexCandidate;
}
return selectedIndex;
}
void StdPlayQueue::getAllIndicesOf( QString itemId,
QList<int> &indices ) const
{
for( int index = 0; index < m_items.size(); ++ index ) {
if ( m_items[ index ]->trackId() == itemId ) {
indices.append( index );
}
}
}
QString StdPlayQueue::uniqueName() const
{
return "StdPlayQueue";
}
QString StdPlayQueue::module() const
{
return "Tanyatu::Core::StandrdComponents";
}
QString StdPlayQueue::displayName() const
{
return "Playlist";
}
bool StdPlayQueue::init()
{
/**
* @todo May be we can load the tracks loaded in the previous session here
*/
return true;
}
bool StdPlayQueue::isValidIndex(int index) const
{
return index >= 0 && index < m_items.size();
}
} } //end of ns
| 30.921753 | 81 | 0.557974 |
e2ab4c80a7fe64fddc92bdb639cb114230d00a54 | 99 | cpp | C++ | tets/extended/extended.cpp | modeckrus/qgroundcontrol | 7a8048b2f2e9eeb5b55daae38d4c0e88c2bcd0c1 | [
"Apache-2.0"
] | null | null | null | tets/extended/extended.cpp | modeckrus/qgroundcontrol | 7a8048b2f2e9eeb5b55daae38d4c0e88c2bcd0c1 | [
"Apache-2.0"
] | null | null | null | tets/extended/extended.cpp | modeckrus/qgroundcontrol | 7a8048b2f2e9eeb5b55daae38d4c0e88c2bcd0c1 | [
"Apache-2.0"
] | null | null | null | #include "extended.h"
int extended(int a, int b){
LOG(INFO) << "Hey";
return a - b;
} | 14.142857 | 27 | 0.535354 |
e2af05453b217872a1efe228e70abdbbdee2d7c8 | 4,892 | cpp | C++ | csvfix/src/csved_fmerge.cpp | moissinac/csvfix | 06cd5638e3a3bb0049fb7138c72211aef972c8d4 | [
"MIT"
] | 4 | 2022-01-25T15:54:29.000Z | 2022-03-18T21:32:16.000Z | csvfix/src/csved_fmerge.cpp | moissinac/csvfix | 06cd5638e3a3bb0049fb7138c72211aef972c8d4 | [
"MIT"
] | 1 | 2022-02-08T12:37:47.000Z | 2022-02-08T12:37:47.000Z | csvfix/src/csved_fmerge.cpp | moissinac/csvfix | 06cd5638e3a3bb0049fb7138c72211aef972c8d4 | [
"MIT"
] | 5 | 2021-12-14T05:42:52.000Z | 2022-03-11T04:23:47.000Z | //---------------------------------------------------------------------------
// csved_fmerge.cpp
//
// merge multiple sorted csv files
//
// Copyright (C) 20011 Neil Butterworth
//---------------------------------------------------------------------------
#include "a_base.h"
#include "a_collect.h"
#include "csved_cli.h"
#include "csved_fmerge.h"
#include "csved_strings.h"
#include <string>
#include <vector>
#include <memory>
using std::string;
namespace CSVED {
//---------------------------------------------------------------------------
// Register fmerge command
//---------------------------------------------------------------------------
static RegisterCommand <FMergeCommand> rc1_(
CMD_FMERGE,
"merge multiple sorted CSV files"
);
//----------------------------------------------------------------------------
// Help
//----------------------------------------------------------------------------
const char * const FMERGE_HELP = {
"merge multiple sorted CSV files into single output\n"
"usage: csvfix fmerge [flags] file ...\n"
"where flags are:\n"
" -f fields\tfields to compare when merging (default all)\n"
"#ALL"
};
//----------------------------------------------------------------------------
// The fmerge command
//----------------------------------------------------------------------------
FMergeCommand :: FMergeCommand( const string & name, const string & desc )
: Command( name, desc, FMERGE_HELP ) {
AddFlag( ALib::CommandLineFlag( FLAG_COLS, false, 1 ) );
}
//----------------------------------------------------------------------------
// Exec the command, merging all inputs into a single output.
//----------------------------------------------------------------------------
int FMergeCommand :: Execute( ALib::CommandLine & cmd ) {
ProcessFlags( cmd );
IOManager io( cmd );
MinFinder mf( io, mFields );
CSVRow row;
while( mf.FindMin( row ) ) {
io.WriteRow( row );
}
return 0;
}
//----------------------------------------------------------------------------
// Get command line options
//----------------------------------------------------------------------------
void FMergeCommand :: ProcessFlags( ALib::CommandLine & cmd ) {
if ( cmd.HasFlag( FLAG_COLS ) ) {
ALib::CommaList cl( cmd.GetValue( FLAG_COLS ) );
CommaListToIndex( cl, mFields );
}
}
//----------------------------------------------------------------------------
// Create row getters for all input sources
//----------------------------------------------------------------------------
MinFinder :: MinFinder( IOManager & io, const FieldList & f ) : mFields( f ){
for ( unsigned int i = 0; i < io.InStreamCount(); i++ ) {
mGetters.push_back( new RowGetter( io.CreateStreamParser( i ) ));
}
}
//----------------------------------------------------------------------------
// Delete all row getters
//----------------------------------------------------------------------------
MinFinder :: ~MinFinder() {
for ( unsigned int i = 0; i < mGetters.size(); i++ ) {
delete mGetters[ i ];
}
}
//----------------------------------------------------------------------------
// Find least row and return it
//----------------------------------------------------------------------------
bool MinFinder :: FindMin( CSVRow & rmin ) {
CSVRow row;
int gi = -1;
for ( unsigned int i = 0; i < mGetters.size(); i++ ) {
bool ok = mGetters[i]->Get( row );
if ( ok ) {
if ( gi == -1 || CmpRow( row, rmin, mFields ) < 1 ) {
rmin = row;
gi = i;
}
}
}
if ( gi >= 0 ) {
mGetters[gi]->ClearLatch();
}
return gi >= 0;
}
//----------------------------------------------------------------------------
// Getter encapsulates astream parser and a latched input row
//----------------------------------------------------------------------------
RowGetter :: RowGetter( ALib::CSVStreamParser * p )
: mParser( p ), mDone( false ), mHave( false ) {
}
RowGetter :: ~RowGetter() {
delete mParser;
}
//----------------------------------------------------------------------------
// If there is anything in the latch, return that, else try to get a row
// and return that.
//----------------------------------------------------------------------------
bool RowGetter :: Get( CSVRow & row ) {
if ( mHave ) {
row = mLatch;
return true;
}
else {
mDone = ! mParser->ParseNext( mLatch );
mHave = ! mDone;
row = mLatch;
return mHave;
}
}
//----------------------------------------------------------------------------
// Clear the latch - used if we have located the least row.
//----------------------------------------------------------------------------
void RowGetter :: ClearLatch() {
mHave = false;
}
} // namespace
| 26.879121 | 79 | 0.370196 |
e2b0a0330d4b18167e55b92eada8b5b067622865 | 6,034 | hpp | C++ | src/layer/common/product_layer-inl.hpp | pl8787/textnet-release | c85a4162c55b4cfe22eab6f8f0c8b615854f9b8f | [
"Apache-2.0"
] | 114 | 2017-06-14T07:05:31.000Z | 2021-06-13T05:30:49.000Z | src/layer/common/product_layer-inl.hpp | pl8787/textnet-release | c85a4162c55b4cfe22eab6f8f0c8b615854f9b8f | [
"Apache-2.0"
] | 7 | 2017-11-17T08:16:55.000Z | 2019-10-05T00:09:20.000Z | src/layer/common/product_layer-inl.hpp | pl8787/textnet-release | c85a4162c55b4cfe22eab6f8f0c8b615854f9b8f | [
"Apache-2.0"
] | 40 | 2017-06-15T03:21:10.000Z | 2021-10-31T15:03:30.000Z | #ifndef TEXTNET_LAYER_PRODUCT_LAYER_INL_HPP_
#define TEXTNET_LAYER_PRODUCT_LAYER_INL_HPP_
#include <mshadow/tensor.h>
#include "../layer.h"
#include "../op.h"
#include "../../utils/utils.h"
namespace textnet {
namespace layer {
// this layer elem-wise products bottom representations on the last 2 dimensions
template<typename xpu>
class ProductLayer : public Layer<xpu> {
public:
ProductLayer(LayerType type) { this->layer_type = type; }
virtual ~ProductLayer(void) {}
virtual int BottomNodeNum() { return 2; }
virtual int TopNodeNum() { return 1; }
virtual int ParamNodeNum() { return 0; }
virtual void Require() {
// default value, just set the value you want
this->defaults["mu1"] = SettingV(0.0f); // for activation mu1*bottom0_data
this->defaults["mu2"] = SettingV(0.0f); // for activation mu2*bootom1_data
this->defaults["delta1"] = SettingV(0.0f); // for L2 norm activation
this->defaults["delta2"] = SettingV(0.0f); // for L2 norm activation
// require value, set to SettingV(),
// it will force custom to set in config
Layer<xpu>::Require();
}
virtual void SetupLayer(std::map<std::string, SettingV> &setting,
const std::vector<Node<xpu>*> &bottom,
const std::vector<Node<xpu>*> &top,
mshadow::Random<xpu> *prnd) {
Layer<xpu>::SetupLayer(setting, bottom, top, prnd);
mu1 = setting["mu1"].fVal();
mu2 = setting["mu2"].fVal();
delta1 = setting["delta1"].fVal();
delta2 = setting["delta2"].fVal();
utils::Check(bottom.size() == BottomNodeNum(), "ProductLayer:bottom size problem.");
utils::Check(top.size() == TopNodeNum(), "ProductLayer:top size problem.");
}
virtual void Reshape(const std::vector<Node<xpu>*> &bottom,
const std::vector<Node<xpu>*> &top,
bool show_info = false) {
utils::Check(bottom.size() == BottomNodeNum(), "ProductLayer:bottom size problem.");
utils::Check(top.size() == TopNodeNum(), "ProductLayer:top size problem.");
mshadow::Shape<4> shape0 = bottom[0]->data.shape_;
mshadow::Shape<4> shape1 = bottom[1]->data.shape_;
mshadow::Shape<2> shape_len = bottom[0]->length.shape_;
utils::Check(shape0[0] == shape1[0], "ProductLayer: bottom sizes does not match.");
utils::Check(shape0[1] == shape1[1], "ProductLayer: bottom sizes does not match.");
utils::Check(shape0[2] == shape1[2], "ProductLayer: bottom sizes does not match.");
int size_0_3 = shape0[3];
int size_1_3 = shape1[3];
utils::Check(size_0_3 == 1 || size_1_3 == 1 || size_0_3 == size_1_3, "ProductLayer: bottom sizes does not match.");
if (mu1 != 0 || mu2 != 0) {
utils::Check(size_0_3 == size_1_3, "ProductLayer: mu1 or mu2 have value, only support same size.");
}
int output_size = size_0_3 > size_1_3 ? size_0_3 : size_1_3;
top[0]->Resize(shape0[0], shape0[1], shape0[2], output_size, shape_len[0], shape_len[1], true);
if (show_info) {
bottom[0]->PrintShape("bottom0");
bottom[1]->PrintShape("bottom1");
top[0]->PrintShape("top0");
}
}
virtual void Forward(const std::vector<Node<xpu>*> &bottom,
const std::vector<Node<xpu>*> &top) {
using namespace mshadow::expr;
top[0]->length = F<op::identity>(bottom[0]->length); // bottom nodes should have the same length
mshadow::Tensor<xpu, 2> bottom0_data = bottom[0]->data_d2_reverse();
mshadow::Tensor<xpu, 2> bottom1_data = bottom[1]->data_d2_reverse();
mshadow::Tensor<xpu, 2> top_data = top[0]->data_d2_reverse();
if (bottom0_data.size(1) == bottom1_data.size(1)) {
top_data = bottom0_data * bottom1_data;
if (mu1 != 0) {
top_data -= mu1 * bottom0_data * bottom0_data;
}
if (mu2 != 0) {
top_data -= mu2 * bottom1_data * bottom1_data;
}
} else {
for (int i = 0; i < bottom0_data.size(0); ++i) {
if (bottom0_data.size(1) == 1) {
top_data[i] = bottom0_data[i][0] * bottom1_data[i];
} else if (bottom1_data.size(1) == 1) {
top_data[i] = bottom0_data[i] * bottom1_data[i][0];
} else {
utils::Assert(false, "ProductLayer: ff data size error.");
}
}
}
}
virtual void Backprop(const std::vector<Node<xpu>*> &bottom,
const std::vector<Node<xpu>*> &top) {
using namespace mshadow::expr;
mshadow::Tensor<xpu, 2> top_diff = top[0]->diff_d2_reverse();
mshadow::Tensor<xpu, 2> bottom0_data = bottom[0]->data_d2_reverse();
mshadow::Tensor<xpu, 2> bottom0_diff = bottom[0]->diff_d2_reverse();
mshadow::Tensor<xpu, 2> bottom1_data = bottom[1]->data_d2_reverse();
mshadow::Tensor<xpu, 2> bottom1_diff = bottom[1]->diff_d2_reverse();
if (bottom0_data.size(1) == bottom1_data.size(1)) {
bottom0_diff += top_diff * bottom1_data;
bottom1_diff += top_diff * bottom0_data;
if (mu1 != 0) {
bottom0_diff -= 2 * mu1 * top_diff * bottom0_data;
}
if (mu2 != 0) {
bottom1_diff -= 2 * mu2 * top_diff * bottom1_data;
}
if (delta1 != 0) {
bottom0_diff += delta1 * bottom0_data;
}
if (delta2 != 0) {
bottom1_diff += delta2 * bottom1_data;
}
} else {
for (int i = 0; i < bottom0_data.size(0); ++i) {
if (bottom0_data.size(1) == 1) {
bottom1_diff[i] += top_diff[i] * bottom0_data[i][0];
for (int j = 0; j < bottom1_data.size(1); ++j) {
bottom0_diff[i][0] += top_diff[i][j] * bottom1_data[i][j];
}
} else if (bottom1_data.size(1) == 1) {
bottom0_diff[i] += top_diff[i] * bottom1_data[i][0];
for (int j = 0; j < bottom0_data.size(1); ++j) {
bottom1_diff[i][0] += top_diff[i][j] * bottom0_data[i][j];
}
} else {
utils::Assert(false, "ProductLayer: bp data size error.");
}
}
}
}
protected:
float mu1;
float mu2;
float delta1;
float delta2;
};
} // namespace layer
} // namespace textnet
#endif
| 36.569697 | 119 | 0.608883 |
e2b91deab820a163ea6533cda2728508541ec8c7 | 402 | cpp | C++ | protocol_lib/ServiceDelegate.cpp | ThoughtWorksIoTGurgaon/nodes | 2973a331b744c7f2abd412b0e0e760f6111ce687 | [
"Apache-2.0"
] | null | null | null | protocol_lib/ServiceDelegate.cpp | ThoughtWorksIoTGurgaon/nodes | 2973a331b744c7f2abd412b0e0e760f6111ce687 | [
"Apache-2.0"
] | 1 | 2015-09-24T02:11:17.000Z | 2015-09-24T02:11:17.000Z | protocol_lib/ServiceDelegate.cpp | ThoughtWorksIoTGurgaon/nodes | 2973a331b744c7f2abd412b0e0e760f6111ce687 | [
"Apache-2.0"
] | null | null | null | /*
* File: ServiceDelegate.cpp
* Author: Anuj
*
* Created on 29 November, 2015, 10:13 AM
*/
#include "ServiceDelegate.h"
ServiceDelegate::ServiceDelegate() {
}
void ServiceDelegate::didWriteToCharacteristic(char id, int len, char * value) {}
void ServiceDelegate::didReadFromCharacteristic(char id, int len, char * value) {}
void ServiceDelegate::didCompleteWritingToCharacteristics() {}
| 23.647059 | 82 | 0.738806 |
e2ba4a8bd05cb9fca6d510aa2b05975d4cfc3e42 | 342 | cc | C++ | src/ast/literals.cc | anurudhp/decaf-compiler | 67a72bb9cf77d46515165074c2ca8786738b02e6 | [
"MIT"
] | null | null | null | src/ast/literals.cc | anurudhp/decaf-compiler | 67a72bb9cf77d46515165074c2ca8786738b02e6 | [
"MIT"
] | null | null | null | src/ast/literals.cc | anurudhp/decaf-compiler | 67a72bb9cf77d46515165074c2ca8786738b02e6 | [
"MIT"
] | null | null | null | #include "literals.hh"
#include "../visitors/visitor.hh"
#include "variables.hh"
void LiteralAST::accept(ASTvisitor &V) { V.visit(*this); }
void IntegerLiteralAST::accept(ASTvisitor &V) { V.visit(*this); }
void BooleanLiteralAST::accept(ASTvisitor &V) { V.visit(*this); }
void StringLiteralAST::accept(ASTvisitor &V) { V.visit(*this); }
| 26.307692 | 65 | 0.710526 |
e2bc602dd356567c32259d3b2744df18539a54ea | 4,314 | cpp | C++ | Plugins/NotYetLoadingScreen/Source/NotYetLoadingScreen/Private/NYLoadingScreenSettings.cpp | LaudateCorpus1/WarriOrb | 7c20320484957e1a7fe0c09ab520967849ba65f1 | [
"MIT"
] | 200 | 2021-03-17T11:15:05.000Z | 2022-03-31T23:45:09.000Z | Plugins/NotYetLoadingScreen/Source/NotYetLoadingScreen/Private/NYLoadingScreenSettings.cpp | LaudateCorpus1/WarriOrb | 7c20320484957e1a7fe0c09ab520967849ba65f1 | [
"MIT"
] | null | null | null | Plugins/NotYetLoadingScreen/Source/NotYetLoadingScreen/Private/NYLoadingScreenSettings.cpp | LaudateCorpus1/WarriOrb | 7c20320484957e1a7fe0c09ab520967849ba65f1 | [
"MIT"
] | 38 | 2021-03-17T13:29:18.000Z | 2022-03-04T19:32:52.000Z | // Copyright (c) Csaba Molnar & Daniel Butum. All Rights Reserved.
#include "NYLoadingScreenSettings.h"
#include "UObject/ConstructorHelpers.h"
#include "Engine/Font.h"
#include "INYLoadingScreenModule.h"
#define LOCTEXT_NAMESPACE "LoadingScreen"
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
FNYLoadingScreenLoadingText::FNYLoadingScreenLoadingText()
{
NormalText.Text = LOCTEXT("Loading", "LOADING");
WaitForAnyKeyText.Text = LOCTEXT("PressAnyKey", "Press any key to continue...");
}
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void FNYLoadingScreenBackgroundImage::AsyncLoad() const
{
if (!bUseRandomBackgroundImages)
return;
auto& Module = INYLoadingScreenModule::Get();
for (const FSoftObjectPath& Ref : BackgroundRandomImages)
{
Module.RequestAsyncLoad(Ref);
}
}
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void FNYLoadingScreenImageInfo::AsyncLoad() const
{
auto& Module = INYLoadingScreenModule::Get();
Module.RequestAsyncLoad(Image.ToSoftObjectPath());
}
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void FNYLoadingScreenLoadingImage::AsyncLoad() const
{
auto& Module = INYLoadingScreenModule::Get();
if (bUseSpinningImage)
{
Module.RequestAsyncLoad(SpinningImage.ToSoftObjectPath());
}
if (bUseThrobber)
{
Module.RequestAsyncLoad(ThrobberPieceImage.ToSoftObjectPath());
}
if (bUseMaterial)
{
Module.RequestAsyncLoad(Material);
}
}
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
TSharedRef<STextBlock> FNYLoadingScreenText::NewTextBlock(const TAttribute<EVisibility>& Visibility) const
{
return SNew(STextBlock)
.Text(Text)
.Visibility(Visibility)
.Font(Font)
.Justification(Justification)
.AutoWrapText(bAutoWrap)
.MinDesiredWidth(MinDesiredWidth)
.WrapTextAt(WrapTextAt);
}
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void FNYLoadingScreenLoading::AsyncLoad() const
{
TitleContainer.AsyncLoad();
TitleText.AsyncLoad();
DescriptionContainer.AsyncLoad();
DescriptionText.AsyncLoad();
LoadingContainer.AsyncLoad();
LoadingText.AsyncLoad();
LoadingImage.AsyncLoad();
}
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void FNYLoadingScreenDescription::AsyncLoad() const
{
for (const FNYLoadingScreenImageInfo& Img : Images)
{
Img.AsyncLoad();
}
Background.AsyncLoad();
Loading.AsyncLoad();
}
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
UNYLoadingScreenSettings::UNYLoadingScreenSettings(const FObjectInitializer& Initializer)
: Super(Initializer)
{
if (!IsRunningDedicatedServer())
{
// static ConstructorHelpers::FObjectFinder<UFont> RobotoFontObj(TEXT("/Engine/EngineFonts/Roboto"));
// Font = FSlateFontInfo(RobotoFontObj.Object, 20, FName("Normal"));
// LoadingFont = FSlateFontInfo(RobotoFontObj.Object, 32, FName("Bold"));
// AnyKeyFont = FSlateFontInfo(RobotoFontObj.Object, 32, FName("Bold"));
}
}
void UNYLoadingScreenSettings::PostInitProperties()
{
Super::PostInitProperties();
// Override
if (IsOverrideEventPeriod() && WorldTransitionScreen.Images.IsValidIndex(0))
{
WorldTransitionScreen.Images[0].Image = GetOverrideImage();
}
}
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
FNYLoadingScreenDescription& UNYLoadingScreenSettings::GetWorldTransitionScreen()
{
// NOTE: this basically breaks saving at runtime
// static bool bInitialized = false;
// if (!bInitialized)
// {
// WorldTransitionScreen.Images = WorldTransitionImages;
// WorldTransitionScreen.Loading = WorldTransitionLoading;
// WorldTransitionScreen.Background = WorldTransitionBackground;
// WorldTransitionScreen.Tips = WorldTransitionTips;
//
// bInitialized = true;
// }
return WorldTransitionScreen;
}
#undef LOCTEXT_NAMESPACE
| 30.595745 | 120 | 0.573713 |
e2bdbc50e549bfb226810973b8bf1226419c5cf0 | 14,845 | cpp | C++ | implementations/ugene/src/libs_3rdparty/QSpec/src/primitives/GTWidget.cpp | r-barnes/sw_comparison | 1ac2c9cc10a32badd6b8fb1e96516c97f7800176 | [
"BSD-Source-Code"
] | null | null | null | implementations/ugene/src/libs_3rdparty/QSpec/src/primitives/GTWidget.cpp | r-barnes/sw_comparison | 1ac2c9cc10a32badd6b8fb1e96516c97f7800176 | [
"BSD-Source-Code"
] | null | null | null | implementations/ugene/src/libs_3rdparty/QSpec/src/primitives/GTWidget.cpp | r-barnes/sw_comparison | 1ac2c9cc10a32badd6b8fb1e96516c97f7800176 | [
"BSD-Source-Code"
] | null | null | null | /**
* UGENE - Integrated Bioinformatics Tools.
* Copyright (C) 2008-2017 UniPro <ugene@unipro.ru>
* http://ugene.net
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
* MA 02110-1301, USA.
*/
#include "primitives/GTWidget.h"
#include <QApplication>
#include <QComboBox>
#include <QDesktopWidget>
#include <QGuiApplication>
#include <QLineEdit>
#include <QStyle>
#include "drivers/GTMouseDriver.h"
#include "primitives/GTMainWindow.h"
#include "utils/GTThread.h"
namespace HI {
#define GT_CLASS_NAME "GTWidget"
#define GT_METHOD_NAME "click"
void GTWidget::click(GUITestOpStatus &os, QWidget *widget, Qt::MouseButton mouseButton, QPoint p) {
GT_CHECK(widget != nullptr, "widget is NULL");
if (p.isNull()) {
p = widget->rect().center();
// TODO: this is a fast fix
if (widget->objectName().contains("ADV_single_sequence_widget")) {
p += QPoint(0, 8);
}
}
QPoint globalPoint = widget->mapToGlobal(p);
GTMouseDriver::moveTo(globalPoint);
GTMouseDriver::click(mouseButton);
GTThread::waitForMainThread();
}
#undef GT_METHOD_NAME
#define GT_METHOD_NAME "setFocus"
void GTWidget::setFocus(GUITestOpStatus &os, QWidget *w) {
GT_CHECK(w != NULL, "widget is NULL");
GTWidget::click(os, w);
GTGlobals::sleep(200);
if (!qobject_cast<QComboBox *>(w)) {
GT_CHECK(w->hasFocus(), QString("Can't set focus on widget '%1'").arg(w->objectName()));
}
}
#undef GT_METHOD_NAME
#define GT_METHOD_NAME "findWidget"
QWidget *GTWidget::findWidget(GUITestOpStatus &os, const QString &widgetName, QWidget const *const parentWidget, const GTGlobals::FindOptions &options) {
QWidget *widget = nullptr;
for (int time = 0; time < GT_OP_WAIT_MILLIS && widget == nullptr; time += GT_OP_CHECK_MILLIS) {
GTGlobals::sleep(time > 0 ? GT_OP_CHECK_MILLIS : 0);
if (parentWidget == nullptr) {
QList<QWidget *> allWidgetList;
foreach (QWidget *parent, GTMainWindow::getMainWindowsAsWidget(os)) {
allWidgetList << parent->findChildren<QWidget *>(widgetName);
}
int nMatches = allWidgetList.count();
GT_CHECK_RESULT(nMatches < 2, QString("There are %1 widgets with name '%2'").arg(nMatches).arg(widgetName), nullptr);
widget = nMatches == 1 ? allWidgetList.first() : nullptr;
} else {
widget = parentWidget->findChild<QWidget *>(widgetName);
}
if (!options.failIfNotFound) {
break;
}
}
if (options.failIfNotFound) {
GT_CHECK_RESULT(widget != nullptr, QString("Widget '%1' not found").arg(widgetName), NULL);
}
return widget;
}
#undef GT_METHOD_NAME
#define GT_METHOD_NAME "getWidgetCenter"
QPoint GTWidget::getWidgetCenter(QWidget *widget) {
return widget->mapToGlobal(widget->rect().center());
}
#undef GT_METHOD_NAME
#define GT_METHOD_NAME "findButtonByText"
QAbstractButton *GTWidget::findButtonByText(GUITestOpStatus &os, const QString &text, QWidget *parentWidget, const GTGlobals::FindOptions &options) {
QList<QAbstractButton *> resultButtonList;
for (int time = 0; time < GT_OP_WAIT_MILLIS && resultButtonList.isEmpty(); time += GT_OP_CHECK_MILLIS) {
GTGlobals::sleep(time > 0 ? GT_OP_CHECK_MILLIS : 0);
QList<QAbstractButton *> allButtonList;
if (parentWidget == nullptr) {
foreach (QWidget *mainWidget, GTMainWindow::getMainWindowsAsWidget(os)) {
allButtonList << mainWidget->findChildren<QAbstractButton *>();
}
} else {
allButtonList << parentWidget->findChildren<QAbstractButton *>();
}
foreach (QAbstractButton *button, allButtonList) {
if (button->text().contains(text, Qt::CaseInsensitive)) {
resultButtonList << button;
}
}
if (!options.failIfNotFound) {
break;
}
}
GT_CHECK_RESULT(resultButtonList.count() <= 1, QString("There are %1 buttons with text").arg(resultButtonList.count()), nullptr);
if (options.failIfNotFound) {
GT_CHECK_RESULT(resultButtonList.count() != 0, QString("Button with the text <%1> is not found").arg(text), nullptr);
}
return resultButtonList.isEmpty() ? nullptr : resultButtonList.first();
}
#undef GT_METHOD_NAME
#define GT_METHOD_NAME "findLabelByText"
QList<QLabel *> GTWidget::findLabelByText(GUITestOpStatus &os,
const QString &text,
QWidget *parentWidget,
const GTGlobals::FindOptions &options) {
QList<QLabel *> resultLabelList;
for (int time = 0; time < GT_OP_WAIT_MILLIS; time += GT_OP_CHECK_MILLIS) {
GTGlobals::sleep(time > 0 ? GT_OP_CHECK_MILLIS && resultLabelList.isEmpty() : 0);
QList<QLabel *> allLabelList;
if (parentWidget == nullptr) {
foreach (QWidget *windowWidget, GTMainWindow::getMainWindowsAsWidget(os)) {
allLabelList << windowWidget->findChildren<QLabel *>();
}
} else {
allLabelList << parentWidget->findChildren<QLabel *>();
}
foreach (QLabel *label, allLabelList) {
if (label->text().contains(text, Qt::CaseInsensitive)) {
resultLabelList << label;
}
}
}
if (options.failIfNotFound) {
GT_CHECK_RESULT(resultLabelList.count() > 0, QString("Label with this text <%1> not found").arg(text), QList<QLabel *>());
}
return resultLabelList;
}
#undef GT_METHOD_NAME
#define GT_METHOD_NAME "close"
void GTWidget::close(GUITestOpStatus &os, QWidget *widget) {
GT_CHECK(widget != nullptr, "Widget is NULL");
class Scenario : public CustomScenario {
public:
Scenario(QWidget *widget)
: widget(widget) {
}
void run(GUITestOpStatus &os) {
Q_UNUSED(os);
CHECK_SET_ERR(widget != nullptr, "Widget is NULL");
widget->close();
GTGlobals::sleep(100);
}
private:
QWidget *widget;
};
GTThread::runInMainThread(os, new Scenario(widget));
}
#undef GT_METHOD_NAME
#define GT_METHOD_NAME "showMaximized"
void GTWidget::showMaximized(GUITestOpStatus &os, QWidget *widget) {
GT_CHECK(widget != nullptr, "Widget is NULL");
class Scenario : public CustomScenario {
public:
Scenario(QWidget *widget)
: widget(widget) {
}
void run(GUITestOpStatus &os) {
Q_UNUSED(os);
CHECK_SET_ERR(widget != nullptr, "Widget is NULL");
widget->showMaximized();
GTGlobals::sleep(100);
}
private:
QWidget *widget;
};
GTThread::runInMainThread(os, new Scenario(widget));
}
#undef GT_METHOD_NAME
#define GT_METHOD_NAME "showNormal"
void GTWidget::showNormal(GUITestOpStatus &os, QWidget *widget) {
GT_CHECK(widget != nullptr, "Widget is NULL");
class Scenario : public CustomScenario {
public:
Scenario(QWidget *widget)
: widget(widget) {
}
void run(GUITestOpStatus &os) {
Q_UNUSED(os);
CHECK_SET_ERR(widget != nullptr, "Widget is NULL");
widget->showNormal();
GTGlobals::sleep(100);
}
private:
QWidget *widget;
};
GTThread::runInMainThread(os, new Scenario(widget));
}
#undef GT_METHOD_NAME
#define GT_METHOD_NAME "getColor"
QColor GTWidget::getColor(GUITestOpStatus &os, QWidget *widget, const QPoint &point) {
GT_CHECK_RESULT(widget != nullptr, "Widget is NULL", QColor());
return QColor(getImage(os, widget).pixel(point));
}
#undef GT_METHOD_NAME
#define GT_METHOD_NAME "getImage"
QImage GTWidget::getImage(GUITestOpStatus &os, QWidget *widget) {
GT_CHECK_RESULT(widget != nullptr, "Widget is NULL", QImage());
class Scenario : public CustomScenario {
public:
Scenario(QWidget *widget, QImage &image)
: widget(widget),
image(image) {
}
void run(GUITestOpStatus &os) {
CHECK_SET_ERR(widget != nullptr, "Widget to grab is NULL");
image = widget->grab(widget->rect()).toImage();
}
private:
QWidget *widget;
QImage ℑ
};
QImage image;
GTThread::runInMainThread(os, new Scenario(widget, image));
return image;
}
#undef GT_METHOD_NAME
#define GT_METHOD_NAME "clickLabelLink"
void GTWidget::clickLabelLink(GUITestOpStatus &os, QWidget *label, int step, int indent) {
QRect r = label->rect();
int left = r.left();
int right = r.right();
int top = r.top() + indent;
int bottom = r.bottom();
for (int i = left; i < right; i += step) {
for (int j = top; j < bottom; j += step) {
GTMouseDriver::moveTo(label->mapToGlobal(QPoint(i, j)));
if (label->cursor().shape() == Qt::PointingHandCursor) {
GTGlobals::sleep(500);
GTMouseDriver::click();
return;
}
}
}
GT_CHECK(false, "label does not contain link");
}
#undef GT_METHOD_NAME
#define GT_METHOD_NAME "clickWindowTitle"
void GTWidget::clickWindowTitle(GUITestOpStatus &os, QWidget *window) {
GT_CHECK(window != nullptr, "Window is NULL");
QStyleOptionTitleBar opt;
opt.initFrom(window);
const QRect titleLabelRect = window->style()->subControlRect(QStyle::CC_TitleBar, &opt, QStyle::SC_TitleBarLabel);
GTMouseDriver::moveTo(getWidgetGlobalTopLeftPoint(os, window) + titleLabelRect.center());
GTMouseDriver::click();
}
#undef GT_METHOD_NAME
#define GT_METHOD_NAME "moveWidgetTo"
void GTWidget::moveWidgetTo(GUITestOpStatus &os, QWidget *window, const QPoint &point) {
//QPoint(window->width()/2,3) - is hack
GTMouseDriver::moveTo(getWidgetGlobalTopLeftPoint(os, window) + QPoint(window->width() / 2, 3));
const QPoint p0 = getWidgetGlobalTopLeftPoint(os, window) + QPoint(window->width() / 2, 3);
const QPoint p1 = point + QPoint(window->width() / 2, 3);
GTMouseDriver::dragAndDrop(p0, p1);
GTGlobals::sleep(1000);
}
#undef GT_METHOD_NAME
#define GT_METHOD_NAME "resizeWidget"
void GTWidget::resizeWidget(GUITestOpStatus &os, QWidget *widget, const QSize &size) {
GT_CHECK(widget != nullptr, "Widget is NULL");
QRect displayRect = QApplication::desktop()->screenGeometry();
GT_CHECK((displayRect.width() >= size.width()) && (displayRect.height() >= size.height()), "Specified the size larger than the size of the screen");
bool isRequiredPositionFound = false;
QSize oldSize = widget->size();
QPoint topLeftPos = getWidgetGlobalTopLeftPoint(os, widget) + QPoint(5, 5);
for (int i = 0; i < 5; i++) {
GTMouseDriver::moveTo(topLeftPos);
QPoint newTopLeftPos = topLeftPos + QPoint(widget->frameGeometry().width() - 1, widget->frameGeometry().height() - 1) - QPoint(size.width(), size.height());
GTMouseDriver::dragAndDrop(topLeftPos, newTopLeftPos);
if (widget->size() != oldSize) {
isRequiredPositionFound = true;
break;
} else {
topLeftPos -= QPoint(1, 1);
}
}
GT_CHECK(isRequiredPositionFound, "Required mouse position to start window resize was not found");
GTGlobals::sleep(1000);
}
#undef GT_METHOD_NAME
#define GT_METHOD_NAME "getWidgetGlobalTopLeftPoint"
QPoint GTWidget::getWidgetGlobalTopLeftPoint(GUITestOpStatus &os, QWidget *widget) {
GT_CHECK_RESULT(widget != nullptr, "Widget is NULL", QPoint());
return (widget->isWindow() ? widget->pos() : widget->parentWidget()->mapToGlobal(QPoint(0, 0)));
}
#undef GT_METHOD_NAME
#define GT_METHOD_NAME "getActiveModalWidget"
QWidget *GTWidget::getActiveModalWidget(GUITestOpStatus &os) {
QWidget *modalWidget = nullptr;
for (int time = 0; time < GT_OP_WAIT_MILLIS && modalWidget == nullptr; time += GT_OP_CHECK_MILLIS) {
GTGlobals::sleep(time > 0 ? GT_OP_CHECK_MILLIS : 0);
modalWidget = QApplication::activeModalWidget();
}
GT_CHECK_RESULT(modalWidget != nullptr, "Active modal widget is NULL", nullptr);
return modalWidget;
}
#undef GT_METHOD_NAME
#define GT_METHOD_NAME "getActivePopupWidget"
QWidget *GTWidget::getActivePopupWidget(GUITestOpStatus &os) {
QWidget *popupWidget = nullptr;
for (int time = 0; time < GT_OP_WAIT_MILLIS && popupWidget == nullptr; time += GT_OP_CHECK_MILLIS) {
GTGlobals::sleep(time > 0 ? GT_OP_CHECK_MILLIS : 0);
popupWidget = QApplication::activePopupWidget();
}
GT_CHECK_RESULT(popupWidget != nullptr, "Active popup widget is NULL", nullptr);
return popupWidget;
}
#undef GT_METHOD_NAME
#define GT_METHOD_NAME "getActivePopupMenu"
QMenu *GTWidget::getActivePopupMenu(GUITestOpStatus &os) {
QMenu *popupWidget = nullptr;
for (int time = 0; time < GT_OP_WAIT_MILLIS && popupWidget == nullptr; time += GT_OP_CHECK_MILLIS) {
GTGlobals::sleep(time > 0 ? GT_OP_CHECK_MILLIS : 0);
popupWidget = qobject_cast<QMenu *>(QApplication::activePopupWidget());
}
GT_CHECK_RESULT(popupWidget != nullptr, "Active popup menu is NULL", nullptr);
return popupWidget;
}
#undef GT_METHOD_NAME
#define GT_METHOD_NAME "checkEnabled"
void GTWidget::checkEnabled(GUITestOpStatus &os, QWidget *widget, bool expectedEnabledState) {
GT_CHECK(widget != nullptr, "Widget is NULL");
GT_CHECK(widget->isVisible(), "Widget is not visible");
bool actualEnabledState = widget->isEnabled();
GT_CHECK(expectedEnabledState == actualEnabledState,
QString("Widget state is incorrect: expected '%1', got '%'2")
.arg(expectedEnabledState ? "enabled" : "disabled")
.arg(actualEnabledState ? "enabled" : "disabled"));
}
#undef GT_METHOD_NAME
#define GT_METHOD_NAME "checkEnabled"
void GTWidget::checkEnabled(GUITestOpStatus &os, const QString &widgetName, bool expectedEnabledState, QWidget const *const parent) {
checkEnabled(os, GTWidget::findWidget(os, widgetName, parent), expectedEnabledState);
}
#undef GT_METHOD_NAME
#undef GT_CLASS_NAME
} // namespace HI
| 36.564039 | 164 | 0.658201 |
e2c17b66012062aa9824c0ee97aea7250fc91417 | 1,817 | cc | C++ | tools/traceline/traceline/assembler_unittest.cc | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 14,668 | 2015-01-01T01:57:10.000Z | 2022-03-31T23:33:32.000Z | tools/traceline/traceline/assembler_unittest.cc | 1065672644894730302/Chromium | 239dd49e906be4909e293d8991e998c9816eaa35 | [
"BSD-3-Clause"
] | 395 | 2020-04-18T08:22:18.000Z | 2021-12-08T13:04:49.000Z | tools/traceline/traceline/assembler_unittest.cc | 1065672644894730302/Chromium | 239dd49e906be4909e293d8991e998c9816eaa35 | [
"BSD-3-Clause"
] | 5,941 | 2015-01-02T11:32:21.000Z | 2022-03-31T16:35:46.000Z | // Copyright (c) 2009 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 <stdio.h>
#include "assembler.h"
int main(int argc, char** argv) {
char buf[1024];
CodeBuffer cb(buf);
// Branching tests first so the offsets are not always adjusting in the
// output diassembler when we add new tests.
cb.spin();
cb.call(EAX);
cb.call(Operand(EAX));
cb.call(Operand(EDX, 15));
cb.fs(); cb.mov(EAX, Operand(3));
cb.fs(); cb.mov(EDX, Operand(0x04));
cb.lea(EAX, Operand(EAX));
cb.lea(EAX, Operand(0x12345678));
cb.lea(EAX, Operand(EBX, 0x12345678));
cb.lea(EAX, Operand(EBX, ECX, SCALE_TIMES_2, 0x12345678));
cb.lea(EAX, Operand(ECX, SCALE_TIMES_2, 0x12345678));
cb.lea(EAX, Operand(EAX, SCALE_TIMES_2, 0));
cb.lea(EAX, Operand(EBX, SCALE_TIMES_2, 0));
cb.lea(EBP, Operand(EBP, SCALE_TIMES_2, 1));
cb.lodsb();
cb.lodsd();
cb.mov(EAX, ECX);
cb.mov(ESI, ESP);
cb.mov(EAX, Operand(ESP, 0x20));
cb.mov(EAX, Operand(EBP, 8));
cb.mov_imm(ESP, 1);
cb.mov_imm(EAX, 0x12345678);
cb.pop(EBX);
cb.pop(Operand(EBX));
cb.pop(Operand(EBX, 0));
cb.pop(Operand(EBX, 12));
cb.push(EBX);
cb.push(Operand(EBX));
cb.push(Operand(EBX, 0));
cb.push(Operand(EDI, -4));
cb.push(Operand(EDI, -8));
cb.push_imm(0x12);
cb.push_imm(0x1234);
cb.push(Operand(EBX, 12));
cb.push(Operand(ESP, 0x1234));
cb.ret();
cb.ret(0);
cb.ret(12);
cb.stosb();
cb.stosd();
cb.sysenter();
cb.which_cpu();
cb.which_thread();
cb.xchg(EAX, EAX);
cb.xchg(EBX, EAX);
cb.xchg(EAX, EBX);
cb.xchg(ECX, ESP);
cb.xchg(ECX, Operand(ESP));
cb.xchg(ECX, Operand(ESP, 5));
cb.xchg(ECX, Operand(EDX, 4));
fwrite(buf, 1, cb.size(), stdout);
return 0;
}
| 21.630952 | 73 | 0.636214 |
e2c2581c230d99a85295d58416f984ae1d900bc8 | 1,348 | cpp | C++ | tests/transform/Dct.cpp | ulikoehler/aquila | d5e3bde3c8d07678a95f225b657a7bb23d0c4730 | [
"MIT"
] | 361 | 2015-01-06T20:12:35.000Z | 2022-03-29T01:58:49.000Z | tests/transform/Dct.cpp | ulikoehler/aquila | d5e3bde3c8d07678a95f225b657a7bb23d0c4730 | [
"MIT"
] | 30 | 2015-01-13T12:17:13.000Z | 2021-06-03T14:12:10.000Z | tests/transform/Dct.cpp | ulikoehler/aquila | d5e3bde3c8d07678a95f225b657a7bb23d0c4730 | [
"MIT"
] | 112 | 2015-01-14T12:01:00.000Z | 2022-03-29T06:42:00.000Z | #include "aquila/global.h"
#include "aquila/transform/Dct.h"
#include "UnitTest++/UnitTest++.h"
#include <cstddef>
#include <vector>
SUITE(Dct)
{
TEST(AlternatingOnes)
{
const std::size_t SIZE = 4;
const double testArray[SIZE] = {1.0, -1.0, 1.0, -1.0};
std::vector<double> vec(testArray, testArray + SIZE);
Aquila::Dct dct;
auto output = dct.dct(vec, SIZE);
double expected[SIZE] = {0.0, 0.76536686, 0.0, 1.84775907};
CHECK_ARRAY_CLOSE(expected, output, SIZE, 0.0001);
}
TEST(ConstantInput)
{
const std::size_t SIZE = 4;
const double testArray[SIZE] = {1.0, 1.0, 1.0, 1.0};
std::vector<double> vec(testArray, testArray + SIZE);
Aquila::Dct dct;
auto output = dct.dct(vec, SIZE);
double expected[SIZE] = {2.0, 0.0, 0.0, 0.0};
CHECK_ARRAY_CLOSE(expected, output, SIZE, 0.0001);
}
TEST(UseCachedCosines)
{
const std::size_t SIZE = 4;
const double testArray[SIZE] = {1.0, 1.0, 1.0, 1.0};
std::vector<double> vec(testArray, testArray + SIZE);
Aquila::Dct dct;
auto output = dct.dct(vec, SIZE);
auto output2 = dct.dct(vec, SIZE);
double expected[SIZE] = {2.0, 0.0, 0.0, 0.0};
CHECK_ARRAY_CLOSE(expected, output2, SIZE, 0.0001);
}
}
| 26.96 | 67 | 0.575668 |
e2c5da21e0c4be2c2cdde04b62a614c9b5c97567 | 605 | cpp | C++ | Game/Source/Boss.cpp | BooStarGamer/Makers-Vs-Players-v2 | db7f32e978f682e55f9d2542ac5879f7137e40ff | [
"MIT"
] | null | null | null | Game/Source/Boss.cpp | BooStarGamer/Makers-Vs-Players-v2 | db7f32e978f682e55f9d2542ac5879f7137e40ff | [
"MIT"
] | null | null | null | Game/Source/Boss.cpp | BooStarGamer/Makers-Vs-Players-v2 | db7f32e978f682e55f9d2542ac5879f7137e40ff | [
"MIT"
] | null | null | null | #include "Boss.h"
#include "App.h"
#include "Textures.h"
Boss::Boss() : Entity(EntityType::BOSS)
{
}
Boss::Boss(BossClass bClass) : Entity(EntityType::BOSS)
{
bossClass = bClass;
// LIFE -> ((x / 1.5) + 20)
// STRG -> ((x / 2) + 8)
// DEFS -> ((x / 4) + 2) nose
// EXPR -> expActLvl + expNextLvl / 2
}
Boss::~Boss()
{
}
void Boss::SetUp(SDL_Rect combatCollider, int xexp, int xhealth, int xstrength, int xdefense)
{
colliderCombat = combatCollider;
exp = xexp;
health = xhealth;
maxHealth = xhealth;
strength = xstrength;
defense = xdefense;
}
void Boss::Refill()
{
health = maxHealth;
}
| 16.805556 | 93 | 0.634711 |
e2c6d4dcf2ef538a5ee27808e7c3a82e63a97086 | 20,493 | cxx | C++ | resip/stack/Contents.cxx | dulton/reSipServer | ac4241df81c1e3eef2e678271ffef4dda1fc6747 | [
"Apache-2.0"
] | 1 | 2019-04-15T14:10:58.000Z | 2019-04-15T14:10:58.000Z | resip/stack/Contents.cxx | dulton/reSipServer | ac4241df81c1e3eef2e678271ffef4dda1fc6747 | [
"Apache-2.0"
] | null | null | null | resip/stack/Contents.cxx | dulton/reSipServer | ac4241df81c1e3eef2e678271ffef4dda1fc6747 | [
"Apache-2.0"
] | 2 | 2019-10-31T09:11:09.000Z | 2021-09-17T01:00:49.000Z | #include <vector>
#if defined(HAVE_CONFIG_H)
#include "config.h"
#endif
#include "resip/stack/Contents.hxx"
#include "rutil/ParseBuffer.hxx"
#include "rutil/Logger.hxx"
#include "resip/stack/OctetContents.hxx"
#include "rutil/MD5Stream.hxx"
#include "rutil/WinLeakCheck.hxx"
using namespace resip;
using namespace std;
#define RESIPROCATE_SUBSYSTEM Subsystem::CONTENTS
H_ContentID resip::h_ContentID;
H_ContentDescription resip::h_ContentDescription;
Contents::Contents(const HeaderFieldValue& headerFieldValue,
const Mime& contentType)
: LazyParser(headerFieldValue),
mType(contentType)
{
init();
}
Contents::Contents(const Mime& contentType)
: mType(contentType)
{
init();
}
Contents::Contents(const Contents& rhs)
: LazyParser(rhs)
{
init(rhs);
}
Contents::Contents(const Contents& rhs,HeaderFieldValue::CopyPaddingEnum e)
: LazyParser(rhs,e)
{
init(rhs);
}
Contents::Contents(const HeaderFieldValue& headerFieldValue,
HeaderFieldValue::CopyPaddingEnum e,
const Mime& contentsType)
: LazyParser(headerFieldValue,e),
mType(contentsType)
{
init();
}
Contents::~Contents()
{
freeMem();
}
static const Data errorContextData("Contents");
const Data&
Contents::errorContext() const
{
return errorContextData;
}
Contents&
Contents::operator=(const Contents& rhs)
{
if (this != &rhs)
{
freeMem();
LazyParser::operator=(rhs);
init(rhs);
}
return *this;
}
void
Contents::init(const Contents& orig)
{
mBufferList.clear();
mType = orig.mType;
if (orig.mDisposition)
{
mDisposition = new H_ContentDisposition::Type(*orig.mDisposition);
}
else
{
mDisposition = 0;
}
if (orig.mTransferEncoding)
{
mTransferEncoding = new H_ContentTransferEncoding::Type(*orig.mTransferEncoding);
}
else
{
mTransferEncoding = 0;
}
if (orig.mLanguages)
{
mLanguages = new H_ContentLanguages::Type(*orig.mLanguages);
}
else
{
mLanguages = 0;
}
if (orig.mId)
{
mId = new Token(*orig.mId);
}
else
{
mId = 0;
}
if (orig.mDescription)
{
mDescription = new StringCategory(*orig.mDescription);
}
else
{
mDescription = 0;
}
if(orig.mLength)
{
mLength = new StringCategory(*orig.mLength);
}
else
{
mLength = 0;
}
mVersion = orig.mVersion;
mMinorVersion = orig.mMinorVersion;
}
Contents*
Contents::createContents(const Mime& contentType,
const Data& contents)
{
// !ass! why are we asserting that the Data doesn't own the buffer?
// .dlb. because this method is to be called only within a multipart
// !ass! HFV is an overlay -- then setting c->mIsMine to true ?? dlb Q
// .dlb. we are telling the content that it owns its HFV, not the data that it
// .dlb. owns its memory
// .bwc. So, we are _violating_ _encapsulation_, to make an assertion that the
// Data is an intermediate instead of owning the buffer itself? What do we
// care how this buffer is owned? All we require is that the buffer doesn't
// get dealloced/modified while we're still around. The assertion might mean
// that the Data will not do either of these things, but it affords no
// protection from the actual owner doing so. We are no more protected with
// the assertion, so I am removing it.
// assert(!contents.mMine);
HeaderFieldValue hfv(contents.data(), (unsigned int)contents.size());
// !bwc! This padding stuff is now the responsibility of the Contents class.
// if(contentType.subType()=="sipfrag"||contentType.subType()=="external-body")
// {
// // .bwc. The parser for sipfrag requires padding at the end of the hfv.
// HeaderFieldValue* temp = hfv;
// hfv = new HeaderFieldValue(*temp,HeaderFieldValue::CopyPadding);
// delete temp;
// }
Contents* c;
if (ContentsFactoryBase::getFactoryMap().find(contentType) != ContentsFactoryBase::getFactoryMap().end())
{
c = ContentsFactoryBase::getFactoryMap()[contentType]->create(hfv, contentType);
}
else
{
c = new OctetContents(hfv, contentType);
}
return c;
}
bool
Contents::exists(const HeaderBase& headerType) const
{
checkParsed();
switch (headerType.getTypeNum())
{
case Headers::ContentType :
{
return true;
}
case Headers::ContentDisposition :
{
return mDisposition != 0;
}
case Headers::ContentTransferEncoding :
{
return mTransferEncoding != 0;
}
case Headers::ContentLanguage :
{
return mLanguages != 0;
}
default : return false;
}
}
bool
Contents::exists(const MIME_Header& type) const
{
if (&type == &h_ContentID)
{
return mId != 0;
}
if (&type == &h_ContentDescription)
{
return mDescription != 0;
}
assert(false);
return false;
}
void
Contents::remove(const HeaderBase& headerType)
{
switch (headerType.getTypeNum())
{
case Headers::ContentDisposition :
{
delete mDisposition;
mDisposition = 0;
break;
}
case Headers::ContentLanguage :
{
delete mLanguages;
mLanguages = 0;
break;
}
case Headers::ContentTransferEncoding :
{
delete mTransferEncoding;
mTransferEncoding = 0;
break;
}
default :
;
}
}
void
Contents::remove(const MIME_Header& type)
{
if (&type == &h_ContentID)
{
delete mId;
mId = 0;
return;
}
if (&type == &h_ContentDescription)
{
delete mDescription;
mDescription = 0;
return;
}
assert(false);
}
const H_ContentType::Type&
Contents::header(const H_ContentType& headerType) const
{
return mType;
}
H_ContentType::Type&
Contents::header(const H_ContentType& headerType)
{
return mType;
}
const H_ContentDisposition::Type&
Contents::header(const H_ContentDisposition& headerType) const
{
checkParsed();
if (mDisposition == 0)
{
ErrLog(<< "You called "
"Contents::header(const H_ContentDisposition& headerType) _const_ "
"without first calling exists(), and the header does not exist. Our"
" behavior in this scenario is to implicitly create the header(using const_cast!); "
"this is probably not what you want, but it is either this or "
"assert/throw an exception. Since this has been the behavior for "
"so long, we are not throwing here, _yet_. You need to fix your "
"code, before we _do_ start throwing. This is why const-correctness"
" should never be made a TODO item </rant>");
Contents* ncthis = const_cast<Contents*>(this);
ncthis->mDisposition = new H_ContentDisposition::Type;
}
return *mDisposition;
}
H_ContentDisposition::Type&
Contents::header(const H_ContentDisposition& headerType)
{
checkParsed();
if (mDisposition == 0)
{
mDisposition = new H_ContentDisposition::Type;
}
return *mDisposition;
}
const H_ContentTransferEncoding::Type&
Contents::header(const H_ContentTransferEncoding& headerType) const
{
checkParsed();
if (mTransferEncoding == 0)
{
ErrLog(<< "You called "
"Contents::header(const H_ContentTransferEncoding& headerType) _const_ "
"without first calling exists(), and the header does not exist. Our"
" behavior in this scenario is to implicitly create the header(using const_cast!); "
"this is probably not what you want, but it is either this or "
"assert/throw an exception. Since this has been the behavior for "
"so long, we are not throwing here, _yet_. You need to fix your "
"code, before we _do_ start throwing. This is why const-correctness"
" should never be made a TODO item </rant>");
Contents* ncthis = const_cast<Contents*>(this);
ncthis->mTransferEncoding = new H_ContentTransferEncoding::Type;
}
return *mTransferEncoding;
}
H_ContentTransferEncoding::Type&
Contents::header(const H_ContentTransferEncoding& headerType)
{
checkParsed();
if (mTransferEncoding == 0)
{
mTransferEncoding = new H_ContentTransferEncoding::Type;
}
return *mTransferEncoding;
}
const H_ContentLanguages::Type&
Contents::header(const H_ContentLanguages& headerType) const
{
checkParsed();
if (mLanguages == 0)
{
ErrLog(<< "You called "
"Contents::header(const H_ContentLanguages& headerType) _const_ "
"without first calling exists(), and the header does not exist. Our"
" behavior in this scenario is to implicitly create the header(using const_cast!); "
"this is probably not what you want, but it is either this or "
"assert/throw an exception. Since this has been the behavior for "
"so long, we are not throwing here, _yet_. You need to fix your "
"code, before we _do_ start throwing. This is why const-correctness"
" should never be made a TODO item </rant>");
Contents* ncthis = const_cast<Contents*>(this);
ncthis->mLanguages = new H_ContentLanguages::Type;
}
return *mLanguages;
}
H_ContentLanguages::Type&
Contents::header(const H_ContentLanguages& headerType)
{
checkParsed();
if (mLanguages == 0)
{
mLanguages = new H_ContentLanguages::Type;
}
return *mLanguages;
}
const H_ContentDescription::Type&
Contents::header(const H_ContentDescription& headerType) const
{
checkParsed();
if (mDescription == 0)
{
ErrLog(<< "You called "
"Contents::header(const H_ContentDescription& headerType) _const_ "
"without first calling exists(), and the header does not exist. Our"
" behavior in this scenario is to implicitly create the header(using const_cast!); "
"this is probably not what you want, but it is either this or "
"assert/throw an exception. Since this has been the behavior for "
"so long, we are not throwing here, _yet_. You need to fix your "
"code, before we _do_ start throwing. This is why const-correctness"
" should never be made a TODO item </rant>");
Contents* ncthis = const_cast<Contents*>(this);
ncthis->mDescription = new H_ContentDescription::Type;
}
return *mDescription;
}
H_ContentDescription::Type&
Contents::header(const H_ContentDescription& headerType)
{
checkParsed();
if (mDescription == 0)
{
mDescription = new H_ContentDescription::Type;
}
return *mDescription;
}
const H_ContentID::Type&
Contents::header(const H_ContentID& headerType) const
{
checkParsed();
if (mId == 0)
{
ErrLog(<< "You called "
"Contents::header(const H_ContentID& headerType) _const_ "
"without first calling exists(), and the header does not exist. Our"
" behavior in this scenario is to implicitly create the header(using const_cast!); "
"this is probably not what you want, but it is either this or "
"assert/throw an exception. Since this has been the behavior for "
"so long, we are not throwing here, _yet_. You need to fix your "
"code, before we _do_ start throwing. This is why const-correctness"
" should never be made a TODO item </rant>");
Contents* ncthis = const_cast<Contents*>(this);
ncthis->mId = new H_ContentID::Type;
}
return *mId;
}
H_ContentID::Type&
Contents::header(const H_ContentID& headerType)
{
checkParsed();
if (mId == 0)
{
mId = new H_ContentID::Type;
}
return *mId;
}
// !dlb! headers except Content-Disposition may contain (comments)
void
Contents::preParseHeaders(ParseBuffer& pb)
{
const char* start = pb.position();
Data all( start, pb.end()-start);
Data headerName;
try
{
while (!pb.eof())
{
const char* anchor = pb.skipWhitespace();
pb.skipToOneOf(Symbols::COLON, ParseBuffer::Whitespace);
pb.data(headerName, anchor);
pb.skipWhitespace();
pb.skipChar(Symbols::COLON[0]);
anchor = pb.skipWhitespace();
pb.skipToTermCRLF();
Headers::Type type = Headers::getType(headerName.data(), (int)headerName.size());
ParseBuffer subPb(anchor, pb.position() - anchor);
switch (type)
{
case Headers::ContentType :
{
// already set
break;
}
case Headers::ContentDisposition :
{
mDisposition = new H_ContentDisposition::Type;
mDisposition->parse(subPb);
break;
}
case Headers::ContentTransferEncoding :
{
mTransferEncoding = new H_ContentTransferEncoding::Type;
mTransferEncoding->parse(subPb);
break;
}
// !dlb! not sure this ever happens?
case Headers::ContentLanguage :
{
if (mLanguages == 0)
{
mLanguages = new H_ContentLanguages::Type;
}
subPb.skipWhitespace();
while (!subPb.eof() && *subPb.position() != Symbols::COMMA[0])
{
H_ContentLanguages::Type::value_type tmp;
header(h_ContentLanguages).push_back(tmp);
header(h_ContentLanguages).back().parse(subPb);
subPb.skipLWS();
}
break; // .kw. added -- this is needed, right?
}
default :
{
if (isEqualNoCase(headerName, "Content-Transfer-Encoding"))
{
mTransferEncoding = new StringCategory();
mTransferEncoding->parse(subPb);
}
else if (isEqualNoCase(headerName, "Content-Description"))
{
mDescription = new StringCategory();
mDescription->parse(subPb);
}
else if (isEqualNoCase(headerName, "Content-Id"))
{
mId = new Token();
mId->parse(subPb);
}
// Some people put this in ...
else if (isEqualNoCase(headerName, "Content-Length"))
{
mLength = new StringCategory();
mLength->parse(subPb);
}
else if (isEqualNoCase(headerName, "MIME-Version"))
{
subPb.skipWhitespace();
if (!subPb.eof() && *subPb.position() == Symbols::LPAREN[0])
{
subPb.skipToEndQuote(Symbols::RPAREN[0]);
subPb.skipChar(Symbols::RPAREN[0]);
}
mVersion = subPb.integer();
if (!subPb.eof() && *subPb.position() == Symbols::LPAREN[0])
{
subPb.skipToEndQuote(Symbols::RPAREN[0]);
subPb.skipChar(Symbols::RPAREN[0]);
}
subPb.skipChar(Symbols::PERIOD[0]);
if (!subPb.eof() && *subPb.position() == Symbols::LPAREN[0])
{
subPb.skipToEndQuote(Symbols::RPAREN[0]);
subPb.skipChar(Symbols::RPAREN[0]);
}
mMinorVersion = subPb.integer();
}
else
{
// add to application headers someday
std::cerr << "Unknown MIME Content- header: " << headerName << std::endl;
ErrLog(<< "Unknown MIME Content- header: " << headerName);
assert(false);
}
}
}
}
}
catch (ParseException & e )
{
ErrLog( << "Some problem parsing contents: " << e );
throw e;
}
}
EncodeStream&
Contents::encodeHeaders(EncodeStream& str) const
{
if (mVersion != 1 || mMinorVersion != 0)
{
str << "MIME-Version" << Symbols::COLON[0] << Symbols::SPACE[0]
<< mVersion << Symbols::PERIOD[0] << mMinorVersion
<< Symbols::CRLF;
}
str << "Content-Type" << Symbols::COLON[0] << Symbols::SPACE[0]
<< mType
<< Symbols::CRLF;
if (exists(h_ContentDisposition))
{
str << "Content-Disposition" << Symbols::COLON[0] << Symbols::SPACE[0];
header(h_ContentDisposition).encode(str);
str << Symbols::CRLF;
}
if (exists(h_ContentLanguages))
{
str << "Content-Languages" << Symbols::COLON[0] << Symbols::SPACE[0];
size_t count = 0;
size_t size = header(h_ContentLanguages).size();
for (H_ContentLanguages::Type::const_iterator
i = header(h_ContentLanguages).begin();
i != header(h_ContentLanguages).end(); ++i)
{
i->encode(str);
if (++count < size)
str << Symbols::COMMA << Symbols::SPACE;
}
str << Symbols::CRLF;
}
if (mTransferEncoding)
{
str << "Content-Transfer-Encoding" << Symbols::COLON[0] << Symbols::SPACE[0]
<< *mTransferEncoding
<< Symbols::CRLF;
}
if (mId)
{
str << "Content-Id" << Symbols::COLON[0] << Symbols::SPACE[0]
<< *mId
<< Symbols::CRLF;
}
if (mDescription)
{
str << "Content-Description" << Symbols::COLON[0] << Symbols::SPACE[0]
<< *mDescription
<< Symbols::CRLF;
}
if (mLength)
{
str << "Content-Length" << Symbols::COLON[0] << Symbols::SPACE[0]
<< *mLength
<< Symbols::CRLF;
}
str << Symbols::CRLF;
return str;
}
Data
Contents::getBodyData() const
{
checkParsed();
return Data::from(*this);
}
void
Contents::addBuffer(char* buf)
{
mBufferList.push_back(buf);
}
bool
resip::operator==(const Contents& lhs, const Contents& rhs)
{
MD5Stream lhsStream;
lhsStream << lhs;
MD5Stream rhsStream;
rhsStream << rhs;
return lhsStream.getHex() == rhsStream.getHex();
}
bool
resip::operator!=(const Contents& lhs, const Contents& rhs)
{
return !operator==(lhs,rhs);
}
/* ====================================================================
* The Vovida Software License, Version 1.0
*
* Copyright (c) 2000-2005
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in
* the documentation and/or other materials provided with the
* distribution.
*
* 3. The names "VOCAL", "Vovida Open Communication Application Library",
* and "Vovida Open Communication Application Library (VOCAL)" must
* not be used to endorse or promote products derived from this
* software without prior written permission. For written
* permission, please contact vocal@vovida.org.
*
* 4. Products derived from this software may not be called "VOCAL", nor
* may "VOCAL" appear in their name, without prior written
* permission of Vovida Networks, Inc.
*
* THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESSED OR IMPLIED
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
* OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND
* NON-INFRINGEMENT ARE DISCLAIMED. IN NO EVENT SHALL VOVIDA
* NETWORKS, INC. OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT DAMAGES
* IN EXCESS OF $1,000, NOR FOR ANY INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
* OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
* USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
* DAMAGE.
*
* ====================================================================
*
* This software consists of voluntary contributions made by Vovida
* Networks, Inc. and many individuals on behalf of Vovida Networks,
* Inc. For more information on Vovida Networks, Inc., please see
* <http://www.vovida.org/>.
*
*/
| 28.0342 | 108 | 0.611819 |
e2c7250919917ab7e48d5f7a5ccb8bdb691ee30b | 11,209 | cpp | C++ | droneTrajectoryPlanner/src/sources/potencialFieldMap.cpp | MorS25/cvg_quadrotor_swarm | da75d02049163cf65fd7305bc46a16359a851c7c | [
"BSD-3-Clause"
] | null | null | null | droneTrajectoryPlanner/src/sources/potencialFieldMap.cpp | MorS25/cvg_quadrotor_swarm | da75d02049163cf65fd7305bc46a16359a851c7c | [
"BSD-3-Clause"
] | null | null | null | droneTrajectoryPlanner/src/sources/potencialFieldMap.cpp | MorS25/cvg_quadrotor_swarm | da75d02049163cf65fd7305bc46a16359a851c7c | [
"BSD-3-Clause"
] | null | null | null | //////////////////////////////////////////////////////
// potencialFieldMap.cpp
//
// Created on: Jul 3, 2013
// Author: joselusl
//
// Last modification on: Oct 26, 2013
// Author: joselusl
//
//////////////////////////////////////////////////////
#include "potencialFieldMap.h"
using namespace std;
////////////////// ObstacleInPotencialMap ////////////////////////
ObstacleInPotencialMap::ObstacleInPotencialMap()
{
init();
return;
}
ObstacleInPotencialMap::~ObstacleInPotencialMap()
{
clear();
return;
}
int ObstacleInPotencialMap::init()
{
obstacleAltitudeDef=OBSTACLE_ALTITUDE_DEF;
obstaclePrecissionDef=OBSTACLE_PRECISSION_DEF;
return 1;
}
int ObstacleInPotencialMap::clear()
{
return 1;
}
int ObstacleInPotencialMap::define(double obstacleAltitudeDefIn, double obstaclePrecissionDefIn)
{
obstacleAltitudeDef=obstacleAltitudeDefIn;
obstaclePrecissionDef=obstaclePrecissionDefIn;
return 1;
}
int ObstacleInPotencialMap::calculateAltitudePotMap(double &valueAltitudeOut, double valueImplicitEquation)
{
//double value=0.0;
//value=implicitEquation(pointIn);
if(valueImplicitEquation<0.0)
{
valueAltitudeOut=obstacleAltitudeDef/2.0;
return 1;
}
valueAltitudeOut=obstacleAltitudeDef/(1+exp(obstaclePrecissionDef*valueImplicitEquation));
return 1;
}
////////////////// EllipseObstacleInPotencialMap2d ////////////////////////
/*
double EllipseObstacleInPotencialMap2d::calculateAltitudePotMap(std::vector<double> pointIn)
{
double valueImplicitEquation=TheEllipseObstacle2d->implicitEquation(pointIn);
return ObstacleInPotencialMap::calculateAltitudePotMap(valueImplicitEquation);
}
*/
////////////////// PotencialFieldMap ////////////////////////
PotencialFieldMap::PotencialFieldMap()
{
init();
return;
}
PotencialFieldMap::~PotencialFieldMap()
{
clear();
return;
}
int PotencialFieldMap::init()
{
pointInitAltitude=0.0;
pointFinAltitude=0.0;
return 1;
}
int PotencialFieldMap::clear()
{
return 1;
}
int PotencialFieldMap::setDimension(unsigned int dimensionIn)
{
dimension=dimensionIn;
//cout<<"dim="<<dimension<<endl;
pointInit.resize(dimension);
pointFin.resize(dimension);
return 1;
}
int PotencialFieldMap::setRobotDimensions(std::vector<double> robotDimensionsIn)
{
robotDimensions=robotDimensionsIn;
return 1;
}
int PotencialFieldMap::setRealMap(WorldMap* RealMapIn)
{
RealMap=RealMapIn;
//cout<<"Real map dime="<<RealMap->dimension.at(0)<<";"<<RealMap->dimension[1]<<endl;
return 1;
}
int PotencialFieldMap::setPointsInitFin(std::vector<double> pointInitIn, std::vector<double> pointFinIn, double pointInitAltitudeIn, double pointFinAltitudeIn)
{
pointInit=pointInitIn;
pointFin=pointFinIn;
if(pointInit.size()!=dimension && pointFin.size()!=dimension)
return 0;
if(pointFinAltitudeIn==0.0)
pointFinAltitude=0.0;
else
pointFinAltitude=pointFinAltitudeIn;
if(pointInitAltitudeIn==-1.0)
{
pointInitAltitude=0.0;
for(unsigned int i=0;i<pointInit.size();i++)
{
pointInitAltitude+=pow(pointInit[i]-pointFin[i],2);
}
pointInitAltitude=sqrt(pointInitAltitude);
}
else
pointInitAltitude=pointInitAltitudeIn;
if(pointInitAltitude<pointFinAltitude)
return 0;
//cout<<"pointIn="<<pointInit[0]<<"; "<<pointInit[1]<<endl;
//cout<<"pointFin="<<pointFin[0]<<"; "<<pointFin[1]<<endl;
//cout<<"altitudes in and fin="<<pointInitAltitude<<"; "<<pointFinAltitude<<endl;
if(!calculatePotMapCurve())
return 0;
return 1;
}
int PotencialFieldMap::setPointInit(std::vector<double> pointInitIn, double pointInitAltitudeIn)
{
// cout<<"b0"<<endl;
pointInit=pointInitIn;
//cout<<"b1"<<endl;
if(pointInitAltitudeIn==-1.0)
{
//cout<<"b2"<<endl;
pointInitAltitude=0.0;
for(unsigned int i=0;i<pointInit.size();i++)
{
pointInitAltitude+=pow(pointInit[i]-pointFin[i],2);
}
//cout<<"b3"<<endl;
pointInitAltitude=sqrt(pointInitAltitude);
}
else
pointInitAltitude=pointInitAltitudeIn;
//cout<<"b"<<endl;
if(!calculatePotMapCurve())
return 0;
//cout<<"bb"<<endl;
return 1;
}
int PotencialFieldMap::setPointFin(std::vector<double> pointFinIn, double pointFinAltitudeIn)
{
//cout<<"b"<<endl;
pointFin=pointFinIn;
if(pointFinAltitudeIn==0.0)
pointFinAltitude=0.0;
else
pointFinAltitude=pointFinAltitudeIn;
//cout<<"bn-1"<<endl;
if(!calculatePotMapCurve())
return 0;
//cout<<"bn"<<endl;
return 1;
}
int PotencialFieldMap::updateObstacleMap()
{
ObstaclesList.resize(RealMap->getNumberObstacles());
#ifdef VERBOSE_POTENCIAL_FIELD_MAP
cout<<"[PFM] (updateObstacleMap) number of obstacles in potencial field map="<<RealMap->getNumberObstacles()<<endl;
#endif
return 1;
}
int PotencialFieldMap::calculateAltitudePotMapCurve(double &valueAltitudeOut, std::vector<double> pointIn)
{
return 0;
}
int PotencialFieldMap::calculateAltitudePotMapObstacleI(double &valueAltitudeOut, std::vector<double> pointIn, unsigned int numObstacleI)
{
double value=0.0;
//cout<<"calculateAltitudePotMapObstacleI"<<endl;
//getHandleObstacle(numObstacleI)
//value=RealMap->obstaclesList[numObstacleI]->implicitEquation(pointIn,robotDimensions);
if(!RealMap->implicitEquationObstacleI(value,numObstacleI,pointIn,robotDimensions))
return 0;
//cout<<"Inside pot field map:"<<value<<endl;
//value=obstacleAltitudeDef/(1+exp(obstaclePrecissionDef*value));
return ObstaclesList[numObstacleI].calculateAltitudePotMap(valueAltitudeOut,value);
}
int PotencialFieldMap::calculatePotMapCurve()
{
return 0;
}
int PotencialFieldMap::calculateDistPotMap(double &distanceOut, std::vector<double> pointIn, std::vector<double> pointFin, bool useObstacles, bool useCurve)
{
distanceOut=0.0;
//end
return 0;
}
////////////////// PotencialFieldMap2d ////////////////////////
PotencialFieldMap2d::PotencialFieldMap2d()
{
init();
return;
}
PotencialFieldMap2d::~PotencialFieldMap2d()
{
clear();
return;
}
int PotencialFieldMap2d::init()
{
dimension=2;
return 1;
}
int PotencialFieldMap2d::clear()
{
return 1;
}
int PotencialFieldMap2d::calculatePotMapCurve()
{
potFieldMapCurve.resize(dimension);
potFieldMapCurve[0]= ( (pow(pointInit[0]-pointFin[0],2)+pow(pointInit[1]-pointFin[1],2)) / (pointInitAltitude-pointFinAltitude) );
potFieldMapCurve[1]= ( (pow(pointInit[0]-pointFin[0],2)+pow(pointInit[1]-pointFin[1],2)) / (pointInitAltitude-pointFinAltitude) );
return 1;
}
int PotencialFieldMap2d::setRealMap(WorldMap2d* RealMapIn)
{
RealMap=RealMapIn;
unsigned int dimensionIn;
if(!RealMap->getDimension(dimensionIn))
return 0;
//cout<<"[inside potFieldMap2d] dimension real map="<<dimensionIn<<endl;
if(!setDimension(dimensionIn))
return 0;
return 1;
}
int PotencialFieldMap2d::calculateAltitudePotMapCurve(double &valueAltitudeOut, std::vector<double> pointIn)
{
//cout<<"PointFin="<<pointFin[0]<<"; "<<pointFin[1]<<endl;
valueAltitudeOut=pointFinAltitude+pow((pointIn[0]-pointFin[0]),2)/potFieldMapCurve[0]+pow((pointIn[1]-pointFin[1]),2)/potFieldMapCurve[1];
//cout<<"altitude curve="<<valueAltitudeOut<<endl;
return 1;
}
int PotencialFieldMap2d::calculateDistPotMap(double &distanceOut, std::vector<double> pointInitIn, std::vector<double> pointFinIn, bool useObstacles, bool useCurve)
{
//cout<<"aqui\n";
//cout<<"calculateDistPotMap"<<endl;
//Change of variable
double angleAlpha=atan2(pointFinIn[1]-pointInitIn[1],pointFinIn[0]-pointInitIn[0]);
double smin=0.0;
double smax=sqrt( pow(pointFinIn[1]-pointInitIn[1],2)+pow(pointFinIn[0]-pointInitIn[0],2) );
//Iteration vars
double stepSize=STEP_SIZE_IN_INTEGRATION_S;
int numSteps=floor((smax-smin)/stepSize);
//cout<<"smax="<<smax<<endl;
//cout<<"numSteps="<<numSteps<<endl;
//Point to change the variables
vector<double> pointSwap(dimension);
//Altitudes for integration
double altitudeInit;
double altitudeFin;
//Init algorithm
distanceOut=0.0;
double s=0.0;
//Point of change the variables
pointSwap[0]=pointInitIn[0]+s*cos(angleAlpha);
pointSwap[1]=pointInitIn[1]+s*sin(angleAlpha);
//Init loop
altitudeInit=0.0;
//cout<<"aqui"<<endl;
//Potencial of curve
if(useCurve)
{
double aux=0.0;
if(!calculateAltitudePotMapCurve(aux,pointSwap))
return 0;
altitudeInit+=aux;
}
//cout<<"aqui"<<endl;
//cout<<altitudeInit<<endl;
//Potencial of obstacles
if(useObstacles)
{
double aux=0.0;
for(unsigned int numObstacleI=0;numObstacleI<ObstaclesList.size();numObstacleI++)
{
if(!calculateAltitudePotMapObstacleI(aux,pointSwap,numObstacleI))
return 0;
altitudeInit+=aux;
}
}
//cout<<"aqui"<<endl;
//cout<<altitudeInit<<endl;
for(int numStepI=0;numStepI<numSteps;numStepI++)
{
//Take step
s+=stepSize;
//Old variables
pointSwap[0]=pointInitIn[0]+s*cos(angleAlpha);
pointSwap[1]=pointInitIn[1]+s*sin(angleAlpha);
//ALtitude fin
altitudeFin=0.0;
//Potencial of curve
if(useCurve)
{
double aux=0.0;
if(!calculateAltitudePotMapCurve(aux,pointSwap))
return 0;
altitudeFin+=aux;
}
//Potencial of obstacles
if(useObstacles)
{
double aux=0.0;
for(unsigned int numObstacleI=0;numObstacleI<ObstaclesList.size();numObstacleI++)
{
if(!calculateAltitudePotMapObstacleI(aux,pointSwap,numObstacleI))
return 0;
altitudeFin+=aux;
}
}
//Longitud arc
distanceOut+=sqrt( pow(altitudeFin-altitudeInit,2) + pow(stepSize,2) );
//Update for next step
altitudeInit=altitudeFin;
}
//Last step
double lastDs=(smax-smin)-stepSize*numSteps;
s+=lastDs;
//Old variables
pointSwap[0]=pointInitIn[0]+s*cos(angleAlpha);
pointSwap[1]=pointInitIn[1]+s*sin(angleAlpha);
//ALtitude fin
altitudeFin=0.0;
//Potencial of curve
if(useCurve)
{
double aux=0.0;
if(!calculateAltitudePotMapCurve(aux,pointSwap))
return 0;
altitudeFin+=aux;
}
//Potencial of obstacles
if(useObstacles)
{
double aux=0.0;
for(unsigned int numObstacleI=0;numObstacleI<ObstaclesList.size();numObstacleI++)
{
if(!calculateAltitudePotMapObstacleI(aux,pointSwap,numObstacleI))
return 0;
altitudeFin+=aux;
}
}
//Longitud arc
distanceOut+=sqrt( pow(altitudeFin-altitudeInit,2) + pow(lastDs,2) );
//end
return 1;
}
| 21.514395 | 164 | 0.646356 |
e2d33d0bd8b5d9b6fde3a5f8833ffda6bd1ff5a2 | 8,973 | cc | C++ | gazebo/rendering/selection_buffer/SelectionBuffer.cc | siconos/gazebo-siconos | 612f6a78184cb95d5e7a6898c42003c4109ae3c6 | [
"ECL-2.0",
"Apache-2.0"
] | 5 | 2017-07-14T19:36:51.000Z | 2020-04-01T06:47:59.000Z | gazebo/rendering/selection_buffer/SelectionBuffer.cc | siconos/gazebo-siconos | 612f6a78184cb95d5e7a6898c42003c4109ae3c6 | [
"ECL-2.0",
"Apache-2.0"
] | 20 | 2017-07-20T21:04:49.000Z | 2017-10-19T19:32:38.000Z | gazebo/rendering/selection_buffer/SelectionBuffer.cc | siconos/gazebo-siconos | 612f6a78184cb95d5e7a6898c42003c4109ae3c6 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | /*
* Copyright (C) 2012-2016 Open Source Robotics Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
#include <memory>
#include "gazebo/common/Console.hh"
#include "gazebo/rendering/ogre_gazebo.h"
#include "gazebo/rendering/RenderTypes.hh"
#include "gazebo/rendering/selection_buffer/SelectionRenderListener.hh"
#include "gazebo/rendering/selection_buffer/MaterialSwitcher.hh"
#include "gazebo/rendering/selection_buffer/SelectionBuffer.hh"
using namespace gazebo;
using namespace rendering;
namespace gazebo
{
namespace rendering
{
struct SelectionBufferPrivate
{
/// \brief This is the material listener - Note: it is controlled by a
/// separate RenderTargetListener, not applied globally to all
/// targets. The class associates a color to an ogre entity
std::unique_ptr<MaterialSwitcher> materialSwitchListener;
/// \brief A render target listener that sets up the material switcher
/// to run on every update of this render target.
std::unique_ptr<SelectionRenderListener> selectionTargetListener;
/// \brief Ogre scene manager
Ogre::SceneManager *sceneMgr;
/// \brief Pointer to the camera that will be used to render to texture
Ogre::Camera *camera;
/// \brief Ogre render target
Ogre::RenderTarget *renderTarget;
/// \brief Ogre texture
Ogre::TexturePtr texture;
/// \brief Ogre render texture
Ogre::RenderTexture *renderTexture;
/// \brief Render texture data buffer
uint8_t *buffer;
/// \brief Ogre pixel box that contains description of the data buffer
Ogre::PixelBox *pixelBox;
/// \brief A 2D overlay used for debugging the selection buffer. It
/// is hidden by default.
Ogre::Overlay *selectionDebugOverlay;
};
}
}
/////////////////////////////////////////////////
SelectionBuffer::SelectionBuffer(const std::string &_cameraName,
Ogre::SceneManager *_mgr, Ogre::RenderTarget *_renderTarget)
: dataPtr(new SelectionBufferPrivate)
{
this->dataPtr->sceneMgr = _mgr;
this->dataPtr->renderTarget = _renderTarget;
this->dataPtr->renderTexture = 0;
this->dataPtr->buffer = 0;
this->dataPtr->pixelBox = 0;
this->dataPtr->camera = this->dataPtr->sceneMgr->getCamera(_cameraName);
this->dataPtr->materialSwitchListener.reset(new MaterialSwitcher());
this->dataPtr->selectionTargetListener.reset(new SelectionRenderListener(
this->dataPtr->materialSwitchListener.get()));
this->CreateRTTBuffer();
this->CreateRTTOverlays();
}
/////////////////////////////////////////////////
SelectionBuffer::~SelectionBuffer()
{
this->DeleteRTTBuffer();
}
/////////////////////////////////////////////////
void SelectionBuffer::Update()
{
if (!this->dataPtr->renderTexture)
return;
this->UpdateBufferSize();
this->dataPtr->materialSwitchListener->Reset();
// FIXME: added try-catch block to prevent crash in deferred rendering mode.
// RTT does not like VPL.material as it references a texture in the compositor
// pipeline. A possible workaround is to add the deferred rendering
// compositors to the renderTexture
try
{
this->dataPtr->renderTexture->update();
}
catch(...)
{
}
this->dataPtr->renderTexture->copyContentsToMemory(*this->dataPtr->pixelBox,
Ogre::RenderTarget::FB_FRONT);
}
/////////////////////////////////////////////////
void SelectionBuffer::DeleteRTTBuffer()
{
if (!this->dataPtr->texture.isNull() && this->dataPtr->texture->isLoaded())
this->dataPtr->texture->unload();
if (this->dataPtr->buffer)
delete [] this->dataPtr->buffer;
if (this->dataPtr->pixelBox)
delete this->dataPtr->pixelBox;
}
/////////////////////////////////////////////////
void SelectionBuffer::CreateRTTBuffer()
{
unsigned int width = this->dataPtr->renderTarget->getWidth();
unsigned int height = this->dataPtr->renderTarget->getHeight();
try
{
this->dataPtr->texture = Ogre::TextureManager::getSingleton().createManual(
"SelectionPassTex",
Ogre::ResourceGroupManager::DEFAULT_RESOURCE_GROUP_NAME,
Ogre::TEX_TYPE_2D, width, height, 0, Ogre::PF_R8G8B8,
Ogre::TU_RENDERTARGET);
}
catch(...)
{
this->dataPtr->renderTexture = NULL;
gzerr << "Unable to create selection buffer.\n";
return;
}
this->dataPtr->renderTexture =
this->dataPtr->texture->getBuffer()->getRenderTarget();
this->dataPtr->renderTexture->setAutoUpdated(false);
this->dataPtr->renderTexture->setPriority(0);
this->dataPtr->renderTexture->addViewport(this->dataPtr->camera);
this->dataPtr->renderTexture->getViewport(0)->setOverlaysEnabled(false);
this->dataPtr->renderTexture->getViewport(0)->setClearEveryFrame(true);
this->dataPtr->renderTexture->addListener(
this->dataPtr->selectionTargetListener.get());
this->dataPtr->renderTexture->getViewport(0)->setMaterialScheme("aa");
this->dataPtr->renderTexture->getViewport(0)->setVisibilityMask(
GZ_VISIBILITY_SELECTABLE);
Ogre::HardwarePixelBufferSharedPtr pixelBuffer =
this->dataPtr->texture->getBuffer();
size_t bufferSize = pixelBuffer->getSizeInBytes();
this->dataPtr->buffer = new uint8_t[bufferSize];
this->dataPtr->pixelBox = new Ogre::PixelBox(pixelBuffer->getWidth(),
pixelBuffer->getHeight(), pixelBuffer->getDepth(),
pixelBuffer->getFormat(), this->dataPtr->buffer);
}
/////////////////////////////////////////////////
void SelectionBuffer::UpdateBufferSize()
{
if (!this->dataPtr->renderTexture)
return;
unsigned int width = this->dataPtr->renderTarget->getWidth();
unsigned int height = this->dataPtr->renderTarget->getHeight();
if (width != this->dataPtr->renderTexture->getWidth() ||
height != this->dataPtr->renderTexture->getHeight())
{
this->DeleteRTTBuffer();
this->CreateRTTBuffer();
}
}
/////////////////////////////////////////////////
Ogre::Entity *SelectionBuffer::OnSelectionClick(int _x, int _y)
{
if (!this->dataPtr->renderTexture)
return NULL;
if (_x < 0 || _y < 0
|| _x >= static_cast<int>(this->dataPtr->renderTarget->getWidth())
|| _y >= static_cast<int>(this->dataPtr->renderTarget->getHeight()))
return 0;
this->Update();
size_t posInStream = (this->dataPtr->pixelBox->getWidth() * _y) * 4;
posInStream += _x * 4;
common::Color::BGRA color(0);
memcpy(static_cast<void *>(&color), this->dataPtr->buffer + posInStream, 4);
common::Color cv;
cv.SetFromARGB(color);
cv.a = 1.0;
const std::string &entName =
this->dataPtr->materialSwitchListener->GetEntityName(cv);
if (entName.empty())
return 0;
else
return this->dataPtr->sceneMgr->getEntity(entName);
}
/////////////////////////////////////////////////
void SelectionBuffer::CreateRTTOverlays()
{
Ogre::OverlayManager *mgr = Ogre::OverlayManager::getSingletonPtr();
if (mgr && mgr->getByName("SelectionDebugOverlay"))
return;
Ogre::MaterialPtr baseWhite =
Ogre::MaterialManager::getSingleton().getDefaultSettings();
Ogre::MaterialPtr selectionBufferTexture =
baseWhite->clone("SelectionDebugMaterial");
Ogre::TextureUnitState *textureUnit =
selectionBufferTexture->getTechnique(0)->getPass(0)->
createTextureUnitState();
textureUnit->setTextureName("SelectionPassTex");
this->dataPtr->selectionDebugOverlay = mgr->create("SelectionDebugOverlay");
Ogre::OverlayContainer *panel =
static_cast<Ogre::OverlayContainer *>(
mgr->createOverlayElement("Panel", "SelectionDebugPanel"));
if (panel)
{
panel->setMetricsMode(Ogre::GMM_PIXELS);
panel->setPosition(10, 10);
panel->setDimensions(400, 280);
panel->setMaterialName("SelectionDebugMaterial");
#if OGRE_VERSION_MAJOR == 1 && OGRE_VERSION_MINOR <= 9
this->dataPtr->selectionDebugOverlay->add2D(panel);
this->dataPtr->selectionDebugOverlay->hide();
#endif
}
else
{
gzlog << "Unable to create selection buffer overlay. "
"This will not effect Gazebo unless you're trying to debug "
"the selection buffer.\n";
}
}
/////////////////////////////////////////////////
#if OGRE_VERSION_MAJOR == 1 && OGRE_VERSION_MINOR <= 9
void SelectionBuffer::ShowOverlay(bool _show)
{
if (_show)
this->dataPtr->selectionDebugOverlay->show();
else
this->dataPtr->selectionDebugOverlay->hide();
}
#else
void SelectionBuffer::ShowOverlay(bool /*_show*/)
{
gzerr << "Selection debug overlay disabled for Ogre > 1.9\n";
}
#endif
| 32.046429 | 80 | 0.674134 |
e2d957adf0fc88c1af7466201525729df6da168a | 731 | cpp | C++ | Cpp_Programs/lougu/oj/P1008.cpp | xiazeyu/OI_Resource | 1de0ab9a84ee22ae4edb612ddeddc712c3c38e56 | [
"Apache-2.0"
] | 2 | 2018-10-01T09:03:35.000Z | 2019-05-24T08:53:06.000Z | Cpp_Programs/lougu/oj/P1008.cpp | xiazeyu/OI_Resource | 1de0ab9a84ee22ae4edb612ddeddc712c3c38e56 | [
"Apache-2.0"
] | null | null | null | Cpp_Programs/lougu/oj/P1008.cpp | xiazeyu/OI_Resource | 1de0ab9a84ee22ae4edb612ddeddc712c3c38e56 | [
"Apache-2.0"
] | null | null | null | #include <cstdio>
#include <iostream>
using namespace std;
bool check(int a, int b, int c){
if((a > 999) || (b > 999) || (c > 999)) return false;
int i;
int t[10] = {0};
t[a % 10] = 1;
t[(a % 100) / 10] = 1;
t[a / 100] = 1;
t[b % 10] = 1;
t[(b % 100) / 10] = 1;
t[b / 100] = 1;
t[c % 10] = 1;
t[(c % 100) / 10] = 1;
t[c / 100] = 1;
for(i = 1; i <= 9; i++){
if(t[i] == 0) return false;
}
return true;
}
int main(){
int a, b, c;
for(a = 100; a <= 999; a++){
b = a * 2;
c = a * 3;
if(check(a, b, c)) printf("%d %d %d\n", a, b, c);
}
return 0;
} | 17 | 58 | 0.347469 |
e2db74577ced00a689d0405635de3263496311e0 | 3,775 | cpp | C++ | algorithms/cpp/Problems 201-300/_210_CourseScheduleII.cpp | shivamacs/LeetCode | f8f8b4e9872c47fbaaf9196c422f7e04986e6c3a | [
"MIT"
] | null | null | null | algorithms/cpp/Problems 201-300/_210_CourseScheduleII.cpp | shivamacs/LeetCode | f8f8b4e9872c47fbaaf9196c422f7e04986e6c3a | [
"MIT"
] | null | null | null | algorithms/cpp/Problems 201-300/_210_CourseScheduleII.cpp | shivamacs/LeetCode | f8f8b4e9872c47fbaaf9196c422f7e04986e6c3a | [
"MIT"
] | null | null | null | /* Source - https://leetcode.com/problems/course-schedule-ii/
Author - Shivam Arora
*/
#include <bits/stdc++.h>
using namespace std;
bool dfs(vector<vector<int>>& graph, unordered_set<int>& visited, vector<bool>& recStack, stack<int>& st, int src) {
visited.insert(src);
recStack[src] = true;
for(int i = 0; i < graph[src].size(); i++) {
int nbr = graph[src][i];
if(recStack[nbr])
return true;
if(visited.find(nbr) == visited.end()) {
bool answer = dfs(graph, visited, recStack, st, nbr);
if(answer)
return true;
}
}
st.push(src);
recStack[src] = false;
return false;
}
// approach 1
vector<int> findOrderUsingDFS(int numCourses, vector<vector<int>>& prerequisites) {
vector<vector<int>> graph(numCourses);
for(int i = 0; i < prerequisites.size(); i++)
graph[prerequisites[i][1]].push_back(prerequisites[i][0]);
unordered_set<int> visited;
stack<int> st;
vector<bool> recStack(numCourses);
for(int i = 0; i < graph.size(); i++) {
if(visited.find(i) == visited.end()) {
bool answer = dfs(graph, visited, recStack, st, i);
if(answer == true)
return {};
}
}
if(visited.size() != numCourses)
return {};
vector<int> result;
while(!st.empty()) {
result.push_back(st.top());
st.pop();
}
return result;
}
// approach 2
vector<int> findOrderUsingKahnsAlgo(int numCourses, vector<vector<int>>& prerequisites) {
vector<vector<int>> graph(numCourses);
for(int i = 0; i < prerequisites.size(); i++)
graph[prerequisites[i][1]].push_back(prerequisites[i][0]);
vector<int> indegree(numCourses);
for(int i = 0; i < graph.size(); i++) {
for(int j = 0; j < graph[i].size(); j++)
indegree[graph[i][j]]++;
}
queue<int> q;
int count = 0;
for(int i = 0; i < indegree.size(); i++) {
if(indegree[i] == 0) {
q.push(i);
count++;
}
}
vector<int> result;
while(!q.empty()) {
int front = q.front();
q.pop();
result.push_back(front);
for(int i = 0; i < graph[front].size(); i++) {
int nbr = graph[front][i];
if(--indegree[nbr] == 0) {
q.push(nbr);
count++;
}
}
}
if(count != numCourses)
return {};
return result;
}
int main()
{
int numCourses;
cout<<"Enter number of courses: ";
cin>>numCourses;
int p;
cout<<"Enter number of prerequisite pairs: ";
cin>>p;
vector<vector<int>> prerequisites(p);
int f, s;
cout<<"Enter prerequisite pairs: "<<endl;
for(int i = 0; i < p; i++) {
cin>>f>>s;
prerequisites[i].push_back(f);
prerequisites[i].push_back(s);
}
vector<int> result = findOrderUsingDFS(numCourses, prerequisites);
cout<<"Correct ordering of courses to finish all courses (using DFS - recursive): [";
if(result.size() > 0) {
for(int i = 0; i < result.size() - 1; i++)
cout<<result[i]<<", ";
cout<<result[result.size() - 1];
}
cout<<"]"<<endl;
result = findOrderUsingKahnsAlgo(numCourses, prerequisites);
cout<<"Correct ordering of courses to finish all courses (using Kahn's Algo - iterative): [";
if(result.size() > 0) {
for(int i = 0; i < result.size() - 1; i++)
cout<<result[i]<<", ";
cout<<result[result.size() - 1];
}
cout<<"]"<<endl;
} | 24.673203 | 116 | 0.509934 |
e2dd208984ed94df4115b83769db56f19d659153 | 4,586 | cpp | C++ | services/sms_receive_indexer.cpp | openharmony-gitee-mirror/telephony_sms_mms | 4f5eee78093bea8ca3198d54b5999ef889b52b19 | [
"Apache-2.0"
] | null | null | null | services/sms_receive_indexer.cpp | openharmony-gitee-mirror/telephony_sms_mms | 4f5eee78093bea8ca3198d54b5999ef889b52b19 | [
"Apache-2.0"
] | null | null | null | services/sms_receive_indexer.cpp | openharmony-gitee-mirror/telephony_sms_mms | 4f5eee78093bea8ca3198d54b5999ef889b52b19 | [
"Apache-2.0"
] | 1 | 2021-09-13T12:07:15.000Z | 2021-09-13T12:07:15.000Z | /*
* Copyright (C) 2021 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include "sms_receive_indexer.h"
namespace OHOS {
namespace Telephony {
SmsReceiveIndexer::SmsReceiveIndexer()
{
timestamp_ = 0;
destPort_ = 0;
msgSeqId_ = 0;
msgRefId_ = -1;
msgCount_ = 1;
isCdma_ = false;
isCdmaWapPdu_ = false;
}
SmsReceiveIndexer::SmsReceiveIndexer(const std::vector<uint8_t> &pdu, long timestamp, int16_t destPort,
bool isCdma, const std::string &address, const std::string &visibleAddress, int16_t msgRefId,
uint16_t msgSeqId, uint16_t msgCount, bool isCdmaWapPdu, const std::string &messageBody)
: pdu_(pdu), timestamp_(timestamp), destPort_(destPort), isCdma_(isCdma), isCdmaWapPdu_(isCdmaWapPdu),
visibleMessageBody_(messageBody), originatingAddress_(address), msgRefId_(msgRefId), msgSeqId_(msgSeqId),
msgCount_(msgCount), visibleAddress_(visibleAddress)
{}
SmsReceiveIndexer::SmsReceiveIndexer(const std::vector<uint8_t> &pdu, long timestamp, int16_t destPort,
bool isCdma, bool isCdmaWapPdu, const std::string &address, const std::string &visibleAddress,
const std::string &messageBody)
: pdu_(pdu), timestamp_(timestamp), destPort_(destPort), isCdma_(isCdma), isCdmaWapPdu_(isCdmaWapPdu),
visibleMessageBody_(messageBody), originatingAddress_(address), visibleAddress_(visibleAddress)
{
if (isCdma_ && isCdmaWapPdu_) {
msgSeqId_ = 0;
} else {
msgSeqId_ = 1;
}
msgRefId_ = -1;
msgCount_ = 1;
}
std::string SmsReceiveIndexer::GetVisibleAddress() const
{
return visibleAddress_;
}
void SmsReceiveIndexer::SetVisibleAddress(const std::string &visibleAddress)
{
visibleAddress_ = visibleAddress;
}
std::string SmsReceiveIndexer::GetEraseRefId() const
{
return eraseRefId_;
}
void SmsReceiveIndexer::SetEraseRefId(const std::string &eraseRefId)
{
eraseRefId_ = eraseRefId;
}
uint16_t SmsReceiveIndexer::GetMsgCount() const
{
return msgCount_;
}
void SmsReceiveIndexer::SetMsgCount(uint16_t msgCount)
{
msgCount_ = msgCount;
}
uint16_t SmsReceiveIndexer::GetMsgSeqId() const
{
return msgSeqId_;
}
void SmsReceiveIndexer::SetMsgSeqId(uint16_t msgSeqId)
{
msgSeqId_ = msgSeqId;
}
uint16_t SmsReceiveIndexer::GetMsgRefId() const
{
return msgRefId_;
}
void SmsReceiveIndexer::SetMsgRefId(uint16_t msgRefId)
{
msgRefId_ = msgRefId;
}
std::string SmsReceiveIndexer::GetOriginatingAddress() const
{
return originatingAddress_;
}
void SmsReceiveIndexer::SetOriginatingAddress(const std::string &address)
{
originatingAddress_ = address;
}
std::string SmsReceiveIndexer::GetVisibleMessageBody() const
{
return visibleMessageBody_;
}
void SmsReceiveIndexer::SetVisibleMessageBody(const std::string &messageBody)
{
visibleMessageBody_ = messageBody;
}
bool SmsReceiveIndexer::GetIsCdmaWapPdu() const
{
return isCdmaWapPdu_;
}
void SmsReceiveIndexer::SetIsCdmaWapPdu(bool isCdmaWapPdu)
{
isCdmaWapPdu_ = isCdmaWapPdu;
}
bool SmsReceiveIndexer::GetIsCdma() const
{
return isCdma_;
}
void SmsReceiveIndexer::SetIsCdma(bool isCdma)
{
isCdma_ = isCdma;
}
int16_t SmsReceiveIndexer::GetDestPort() const
{
return destPort_;
}
void SmsReceiveIndexer::SetDestPort(int16_t destPort)
{
destPort_ = destPort;
}
long SmsReceiveIndexer::GetTimestamp() const
{
return timestamp_;
}
void SmsReceiveIndexer::SetTimestamp(long timestamp)
{
timestamp_ = timestamp;
}
const std::vector<uint8_t> &SmsReceiveIndexer::GetPdu() const
{
return pdu_;
}
void SmsReceiveIndexer::SetPdu(const std::vector<uint8_t> &pdu)
{
pdu_ = pdu;
}
void SmsReceiveIndexer::SetPdu(const std::vector<uint8_t> &&pdu)
{
pdu_ = std::forward<const std::vector<uint8_t>>(pdu);
}
bool SmsReceiveIndexer::GetIsText() const
{
return (destPort_ == TEXT_PORT_NUM);
}
bool SmsReceiveIndexer::GetIsWapPushMsg() const
{
return (destPort_ == WAP_PUSH_PORT);
}
bool SmsReceiveIndexer::IsSingleMsg() const
{
return msgCount_ == 1;
}
} // namespace Telephony
} // namespace OHOS | 23.639175 | 111 | 0.73986 |
e2ddc96b8f612c794049531c117810a073c8de18 | 4,671 | cpp | C++ | app/genCSV.cpp | yukatayu/tentee_image_similarity | ae787c1b530483b30fdd152dbe51e8b50a1d9c5b | [
"MIT"
] | 9 | 2020-05-07T17:30:04.000Z | 2020-07-22T02:11:45.000Z | app/genCSV.cpp | yukatayu/tentee_image_similarity | ae787c1b530483b30fdd152dbe51e8b50a1d9c5b | [
"MIT"
] | null | null | null | app/genCSV.cpp | yukatayu/tentee_image_similarity | ae787c1b530483b30fdd152dbe51e8b50a1d9c5b | [
"MIT"
] | null | null | null | #include <iostream>
#include <map>
#include <vector>
#include <utility>
#include <string>
#include <algorithm>
#include <fstream>
#include <boost/filesystem.hpp>
#include <boost/foreach.hpp>
#include <opencv2/opencv.hpp>
#include <opencv2/features2d.hpp>
#include <illust_image_similarity.hpp>
using namespace illust_image_similarity::feature;
std::vector<std::string> getFileNames(std::string pathStr) {
std::vector<std::string> res;
namespace fs = boost::filesystem;
const fs::path path(pathStr);
BOOST_FOREACH(const fs::path& p, std::make_pair(fs::directory_iterator(path), fs::directory_iterator())) {
if (!fs::is_directory(p))
res.push_back(p.filename().string());
}
return res;
}
int main(){
cv::Mat mask = cv::imread("tentee_patch/mask/mask.png", 0);
// vvv For testing vvv //
// b1, b3, y1 -> double edge
// b2, p1, p2, p3 -> single edge
// p3 -> no edge
/*std::map<std::string, cv::Mat> images = {
{ "blue1", cv::imread("../tentee_patch/dream/0001.png") },
{ "blue2", cv::imread("../tentee_patch/dream/0087.png") },
{ "blue3", cv::imread("../tentee_patch/dream/0006.png") },
{ "blue4", cv::imread("../tentee_patch/dream/0255.png") },
{ "yell1", cv::imread("../tentee_patch/dream/0005.png") },
{ "pink1", cv::imread("../tentee_patch/dream/0002.png") },
{ "pink2", cv::imread("../tentee_patch/dream/0132.png") },
{ "pink3", cv::imread("../tentee_patch/dream/0138.png") },
{ "pink4", cv::imread("../tentee_patch/dream/0004.png") }
};*/
// memo: 1と12は近い, 2は遠い
// memo: 255と2はどちらも縞
// ^^^ For testing ^^^ //
std::map<std::string, cv::Mat> images;
auto fileList = getFileNames("../tentee_patch/dream/");
{
int cnt = 0;
for(auto&& fName : fileList){
cv::Mat img = cv::imread("../tentee_patch/dream/" + fName);
if(++cnt % 10 == 0)
std::cout << "loading: " << cnt << " images..." << std::endl;
if(img.data)
images[fName] = img;
}
}
std::cout << "start" << std::endl;
std::map<std::string, cv::MatND> hists;
for(auto&& [name, img] : images)
hists[name] = img | hueHistgramAlgorithm(mask);
std::map<std::string, cv::MatND> placements;
for(auto&& [name, img] : images)
placements[name] = img | placementAlgorithm;
std::map<std::string, std::vector<double>> directions;
for(auto&& [name, img] : images)
directions[name] = img | directionPreprocess | directionVec(mask);
int cnt = 0;
auto cdot = [](const std::vector<double>& lhs, const std::vector<double>& rhs) -> double {
int dim = std::min(lhs.size(), rhs.size());
double res = 0;
for(int i=0; i<dim; ++i)
res += lhs[i] * rhs[i];
return res;
};
// from, type [hue, edge, dir], to, index (0-), score (0-1)
const int maxIndex = 5;
std::ofstream data("recommend_data.csv");
for(auto&& [name, img] : images){
if(++cnt % 10 == 0)
std::cout << cnt << " / " << images.size() << " ... " << std::endl;
std::vector<std::pair<double, std::string>> list_hue;
std::vector<std::pair<double, std::string>> list_edge;
std::vector<std::pair<double, std::string>> list_dir;
auto&& pls = placements.at(name);
auto&& hist = hists.at(name);
auto&& dir = directions.at(name);
// target
for(auto&& [tName, tImg] : images){
if(name == tName) continue; // 自身とは比較しない (edge,dir,hueのスコアは常に1)
auto&& tPls = placements.at(tName);
auto&& tHist = hists.at(tName);
auto&& tDir = directions.at(tName);
list_hue.emplace_back(cv::compareHist(hist, tHist, cv::HISTCMP_CORREL), tName);
cv::Mat tmp;
// Normalized Cross-Correlation
//list_edge.emplace_back(cv::norm(img, tImg, cv::NORM_L1), tName);
cv::matchTemplate(pls, tPls, tmp, CV_TM_CCOEFF_NORMED);
list_edge.emplace_back(tmp.at<float>(0,0), tName);
// dot product
list_dir.emplace_back(cdot(dir, tDir), tName);
}
std::sort(list_edge.begin(), list_edge.end());
std::reverse(list_edge.begin(), list_edge.end());
std::sort(list_dir.begin(), list_dir.end());
std::reverse(list_dir.begin(), list_dir.end());
std::sort(list_hue.begin(), list_hue.end());
std::reverse(list_hue.begin(), list_hue.end());
for(int i=0; i<maxIndex && i < list_hue.size(); ++i){
auto [tHist, tName] = list_hue[i];
data << name << "," << "hue" << "," << tName << "," << i << "," << tHist << "\n";
}
for(int i=0; i<maxIndex && i < list_edge.size(); ++i){
auto [tHist, tName] = list_edge[i];
data << name << "," << "edge" << "," << tName << "," << i << "," << tHist << "\n";
}
for(int i=0; i<maxIndex && i < list_dir.size(); ++i){
auto [tHist, tName] = list_dir[i];
data << name << "," << "dir" << "," << tName << "," << i << "," << tHist << "\n";
}
data << std::flush;
}
std::cout << "end" << std::endl;
}
| 32.213793 | 107 | 0.61079 |
e2de3d31e386a752773e0ca890b7840b971b84b9 | 43 | cpp | C++ | morse/DotNet/cellImageBuilders/Processes.cpp | jonnyzzz/phd-project | beab8615585bd52ef9ee1c19d1557e8c933c047a | [
"Apache-2.0"
] | 1 | 2019-12-24T15:52:45.000Z | 2019-12-24T15:52:45.000Z | morse/DotNet/cellImageBuilders/Processes.cpp | jonnyzzz/phd-project | beab8615585bd52ef9ee1c19d1557e8c933c047a | [
"Apache-2.0"
] | null | null | null | morse/DotNet/cellImageBuilders/Processes.cpp | jonnyzzz/phd-project | beab8615585bd52ef9ee1c19d1557e8c933c047a | [
"Apache-2.0"
] | null | null | null | #include "stdafx.h"
#include "Processes.h"
| 14.333333 | 22 | 0.72093 |
e2e0191f848a36905cd9e826c939e59b0ed66ac0 | 335 | cc | C++ | nofx/nofx_ofTexture/nofx_ofGetUsingCustomTextureWrap.cc | sepehr-laal/nofx | 7abc9da3d4fc0f5b72c6b3d591a08cf44d00277e | [
"MIT"
] | null | null | null | nofx/nofx_ofTexture/nofx_ofGetUsingCustomTextureWrap.cc | sepehr-laal/nofx | 7abc9da3d4fc0f5b72c6b3d591a08cf44d00277e | [
"MIT"
] | null | null | null | nofx/nofx_ofTexture/nofx_ofGetUsingCustomTextureWrap.cc | sepehr-laal/nofx | 7abc9da3d4fc0f5b72c6b3d591a08cf44d00277e | [
"MIT"
] | null | null | null | #include "nofx_ofGetUsingCustomTextureWrap.h"
#include "ofTexture.h"
namespace nofx
{
namespace ClassWrappers
{
NAN_METHOD(nofx_ofGetUsingCustomTextureWrap)
{
NanReturnValue(ofGetUsingCustomTextureWrap());
} // !nofx_ofGetUsingCustomTextureWrap
} // !namespace ClassWrappers
} // !namespace nofx | 25.769231 | 52 | 0.722388 |
e2e2d057afea2bf6501049c3c5571097b1014a26 | 10,525 | cpp | C++ | src/CCString.cpp | nuvaboy/ComfortClasses | cbd1528be66bf567c7038a075443790ec7b130f6 | [
"MIT"
] | null | null | null | src/CCString.cpp | nuvaboy/ComfortClasses | cbd1528be66bf567c7038a075443790ec7b130f6 | [
"MIT"
] | null | null | null | src/CCString.cpp | nuvaboy/ComfortClasses | cbd1528be66bf567c7038a075443790ec7b130f6 | [
"MIT"
] | null | null | null | /*
* CCString.cpp
*
* Created on: 21.01.2019
* Author: jan
*/
/**
* @file CCString.cpp
*
* @brief Implementierung von CCString, CCString::SplitIterator und anderen zusammenhängenden Funktionen.
*
* @author Jan Alexander Stiehl
*/
#include "CCString.hpp"
#include <iomanip>
#include <limits>
#include <locale>
#include <regex>
#include <sstream>
#include <stdexcept>
//constructors for textual types
CCString::CCString(const std::string& str) :
internalStr(str) {
}
CCString::CCString(const char cstr[]) :
CCString(std::string(cstr)) {
}
CCString::CCString(char c) :
CCString(std::string() = c) {
}
//constructor for boolean type
CCString::CCString(bool b) :
CCString() {
if (b) {
internalStr = std::use_facet<std::numpunct<char>>(std::locale()).truename();
}
else {
internalStr = std::use_facet<std::numpunct<char>>(std::locale()).falsename();
}
}
//constructors for numeric types:
CCString::CCString(int64_t number) :
CCString() {
internalStr = std::to_string(number);
}
CCString::CCString(int32_t number) :
CCString(static_cast<int64_t>(number)) {
}
CCString::CCString(int16_t number) :
CCString(static_cast<int64_t>(number)) {
}
CCString::CCString(uint64_t number) :
CCString() {
internalStr = std::to_string(number);
}
CCString::CCString(uint32_t number) :
CCString(static_cast<uint64_t>(number)) {
}
CCString::CCString(uint16_t number) :
CCString(static_cast<uint64_t>(number)) {
}
CCString::CCString(long double number, bool hiPrec) :
CCString() {
if (hiPrec) {
std::stringstream stringStream;
stringStream << std::setprecision(std::numeric_limits<long double>::digits10) << number;
internalStr = stringStream.str();
}
else {
internalStr = std::to_string(number);
}
}
CCString::CCString(double number, bool hiPrec) :
CCString(static_cast<long double>(number), hiPrec) {
}
CCString::CCString(float number, bool hiPrec) :
CCString(static_cast<long double>(number), hiPrec) {
}
CCString::CCString(const CCDecimal& number, int32_t sigDigits) {
internalStr = number.toString(sigDigits, true);
}
CCString::CCString(const CCDecimal& number) :
CCString() {
internalStr = number.toString();
}
CCString::~CCString() = default;
/* ######################################### */
std::string CCString::toString() const {
return internalStr;
}
CCString::operator const char*() {
return internalStr.c_str();
}
CCString::operator std::string() {
return internalStr;
}
std::ostream& operator<<(std::ostream& os, const CCString& ccstr) {
os << ccstr.internalStr;
return os;
}
std::istream& operator>>(std::istream& in, CCString& ccstr) {
in >> ccstr.internalStr;
return in;
}
size_t CCString::length() const {
return internalStr.length();
}
char& CCString::at(size_t index) {
try {
return internalStr.at(index);
} catch (std::out_of_range& e) {
e.what();
throw std::out_of_range("Index pointing outside of the string.");
}
}
const char& CCString::at(size_t index) const {
try {
return internalStr.at(index);
} catch (std::out_of_range& e) {
e.what();
throw std::out_of_range("Index pointing outside of the string.");
}
}
char& CCString::operator[](size_t index) {
return at(index);
}
const char& CCString::operator[](size_t index) const {
return at(index);
}
bool CCString::operator==(const CCString& other) const {
return internalStr == other.internalStr;
}
bool CCString::operator<(const CCString& other) const {
return internalStr < other.internalStr;
}
CCString& CCString::append(const CCString& ccStr) {
try {
internalStr.append(ccStr.internalStr);
return *this;
} catch (std::length_error& e) {
e.what();
throw std::length_error("Result exceeding max length for a string.");
} catch (std::bad_alloc& e) {
throw;
}
}
CCString& CCString::operator<<(const CCString& ccStr) {
return append(ccStr);
}
CCString& CCString::operator+=(const CCString& ccStr) {
return append(ccStr);
}
CCString operator+(const CCString& lhs, const CCString& rhs) {
return CCString(lhs) += rhs;
}
CCString& CCString::replaceAt(size_t pos, const CCString& ccStr) {
try {
internalStr.replace(pos, ccStr.length(), ccStr.internalStr);
return *this;
} catch (std::out_of_range& e) {
e.what();
throw std::out_of_range("Position pointing outside of the string.");
} catch (std::length_error& e) {
e.what();
throw std::length_error("Result exceeding max length for a string.");
} catch (std::bad_alloc& e) {
throw;
}
}
CCString& CCString::insert(size_t pos, const CCString& ccStr) {
try {
internalStr.insert(pos, ccStr.internalStr);
return *this;
} catch (std::out_of_range& e) {
e.what();
throw std::out_of_range("Position pointing outside of the string.");
} catch (std::length_error& e) {
e.what();
throw std::length_error("Result exceeding max length for a string.");
} catch (std::bad_alloc& e) {
throw;
}
}
CCString& CCString::erase(size_t pos, size_t length) {
try {
internalStr.erase(pos, length);
return *this;
} catch (std::out_of_range& e) {
e.what();
throw std::out_of_range("Position pointing outside of the string.");
}
}
CCString& CCString::trim() {
for (auto it = internalStr.begin();
it != internalStr.end() && !std::isgraph(*it, std::locale()); internalStr.erase(it)) {
}
for (auto rit = internalStr.rbegin();
rit != internalStr.rend() && !std::isgraph(*rit, std::locale()); rit++) {
internalStr.erase(rit.base()-1);
}
return *this;
}
CCString CCString::subString(size_t pos, size_t length) const {
try {
return CCString(internalStr.substr(pos, length));
} catch (std::out_of_range& e) {
e.what();
throw std::out_of_range("Position pointing outside of the string.");
} catch (std::bad_alloc& e) {
throw;
}
}
size_t CCString::find(const CCString& ccstr, size_t pos) const {
return internalStr.find(ccstr.internalStr, pos);
}
size_t CCString::findLast(const CCString& ccstr, size_t pos) const {
return internalStr.rfind(ccstr.internalStr, pos);
}
bool CCString::isMatch(const CCString& regex) const {
std::regex re(regex.internalStr);
return std::regex_match(internalStr, re);
}
bool CCString::containsMatch(const CCString& regex) const {
std::regex re(regex.internalStr);
return std::regex_search(internalStr, re);
}
CCString CCString::getMatch(const CCString& regex) const {
std::regex re(regex.internalStr);
std::smatch matches;
std::regex_search(internalStr, matches, re);
while (!matches.ready())
;
if (matches.empty()) {
return CCString();
}
if (!matches[0].matched) {
return CCString();
}
return CCString(std::string(matches[0]));
}
CCString CCString::replaceAll(const CCString& regex, const CCString& replacement) const {
std::regex re(regex.internalStr);
return std::regex_replace(internalStr, re, replacement.internalStr);
}
CCString CCString::replaceFirst(const CCString& regex, const CCString& replacement) const {
std::regex re(regex.internalStr);
std::smatch matches;
std::regex_search(internalStr, matches, re);
if (matches.empty()) {
return CCString(*this);
}
if (!matches[0].matched) {
return CCString(*this);
}
auto startOfString = matches.prefix().first;
auto endOfFirstMatch = matches[0].second;
auto endOfAll = matches.suffix().second;
std::string resultFirstHalf;
std::regex_replace(std::back_inserter(resultFirstHalf), startOfString, endOfFirstMatch, re,
replacement.internalStr);
resultFirstHalf.append(endOfFirstMatch, endOfAll);
return CCString(resultFirstHalf);
}
CCString::SplitIterator CCString::splitBegin(const CCString& regex) const {
return SplitIterator(*this, regex);
}
CCString::SplitIterator CCString::splitEnd() const {
return SplitIterator(*this);
}
CCString::SplitIterator::SplitIterator(const SplitIterator& orig) :
originString(orig.originString), //
separatorRegex(orig.separatorRegex), //
currentSplit(new CCString(*orig.currentSplit)), //
currentRemainder(orig.currentRemainder), //
hadMatch(orig.hadMatch), //
isFinished(orig.isFinished) //
{
}
CCString::SplitIterator& CCString::SplitIterator::operator=(const CCString::SplitIterator& orig) {
if (this != &orig) {
originString = orig.originString;
separatorRegex = orig.separatorRegex;
currentSplit = std::unique_ptr<CCString>(new CCString(*orig.currentSplit));
currentRemainder = orig.currentRemainder;
hadMatch = orig.hadMatch;
isFinished = orig.isFinished;
}
return *this;
}
CCString::SplitIterator::SplitIterator(const CCString& origin, const CCString& regex) :
originString(&origin), //
separatorRegex(regex.internalStr), //
currentSplit(new CCString()), //
currentRemainder(origin.internalStr) //
{
doSplit();
}
CCString::SplitIterator::SplitIterator(const CCString& origin) :
originString(&origin), //
currentSplit(new CCString()), //
isFinished(true) {
}
void CCString::SplitIterator::doSplit() {
std::regex re(separatorRegex);
std::smatch matches;
std::regex_search(currentRemainder, matches, re);
while (!matches.ready())
;
if (matches.empty() || !matches[0].matched) {
//catch closing on a separator:
//not finished if had a previous match
isFinished = !hadMatch;
hadMatch = false;
//set split to remainder
std::unique_ptr<CCString> newSplit(new CCString(currentRemainder));
currentSplit.swap(newSplit);
//set remainder to empty
currentRemainder.erase();
}
else {
//mark match
hadMatch = true;
std::string splitStr(matches.prefix().first, matches.prefix().second);
std::string remainderStr(matches.suffix().first, matches.suffix().second);
std::unique_ptr<CCString> newSplit(new CCString(splitStr));
currentSplit.swap(newSplit);
currentRemainder = remainderStr;
}
}
CCString::SplitIterator& CCString::SplitIterator::operator++() {
doSplit();
return *this;
}
CCString::SplitIterator CCString::SplitIterator::operator++(int) {
SplitIterator copy(*this);
doSplit();
return copy;
}
const CCString& CCString::SplitIterator::operator*() const {
return *currentSplit;
}
const CCString* CCString::SplitIterator::operator->() const {
return currentSplit.get();
}
bool CCString::SplitIterator::operator==(const SplitIterator& other) const {
//Check for domain (operating on the same CCString?)
if (originString != other.originString) return false;
//Check for past-the-end
if (isFinished || other.isFinished) return isFinished && other.isFinished;
//check for equality on: regex and position
if (separatorRegex == other.separatorRegex)
if (*currentSplit == *other.currentSplit)
if (currentRemainder == other.currentRemainder) return true;
return false;
}
| 25.484262 | 107 | 0.710784 |
e2e31c6b3373fb7ce53c18dcc608b4c927e31ddf | 21,317 | cpp | C++ | kwset.cpp | h4ck3rm1k3/php-fss-FastStringSearch | 2093d69f1b951add5354e5b722842edd9854d8cb | [
"PHP-3.01",
"PHP-3.0"
] | null | null | null | kwset.cpp | h4ck3rm1k3/php-fss-FastStringSearch | 2093d69f1b951add5354e5b722842edd9854d8cb | [
"PHP-3.01",
"PHP-3.0"
] | null | null | null | kwset.cpp | h4ck3rm1k3/php-fss-FastStringSearch | 2093d69f1b951add5354e5b722842edd9854d8cb | [
"PHP-3.01",
"PHP-3.0"
] | null | null | null | /* kwset.c - search for any of a set of keywords.
Copyright 1989, 1998, 2000, 2005 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2, or (at your option)
any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
02110-1301, USA. */
/* Written August 1989 by Mike Haertel.
The author may be reached (Email) at the address mike@ai.mit.edu,
or (US mail) as Mike Haertel c/o Free Software Foundation. */
/* The algorithm implemented by these routines bears a startling resemblence
to one discovered by Beate Commentz-Walter, although it is not identical.
See "A String Matching Algorithm Fast on the Average," Technical Report,
IBM-Germany, Scientific Center Heidelberg, Tiergartenstrasse 15, D-6900
Heidelberg, Germany. See also Aho, A.V., and M. Corasick, "Efficient
String Matching: An Aid to Bibliographic Search," CACM June 1975,
Vol. 18, No. 6, which describes the failure function used below. */
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
#include <sys/types.h>
#include <limits.h>
//#include "hphp/runtime/base/base-includes.h"
#include "hphp/runtime/ext/extension.h"
#include "kwset.h"
#include "obstack.h"
void *kws_emalloc_wrapper(size_t size);
void kws_efree_wrapper(void *ptr);
#define NCHAR (UCHAR_MAX + 1)
#define obstack_chunk_alloc kws_emalloc_wrapper
#define obstack_chunk_free kws_efree_wrapper
#define U(c) ((unsigned char) (c))
/* Balanced tree of edges and labels leaving a given trie node. */
struct tree
{
struct tree *llink; /* Left link; MUST be first field. */
struct tree *rlink; /* Right link (to larger labels). */
struct trie *trie; /* Trie node pointed to by this edge. */
unsigned char label; /* Label on this edge. */
char balance; /* Difference in depths of subtrees. */
};
/* Node of a trie representing a set of reversed keywords. */
struct trie
{
unsigned int accepting; /* Word index of accepted word, or zero. */
struct tree *links; /* Tree of edges leaving this node. */
struct trie *parent; /* Parent of this node. */
struct trie *next; /* List of all trie nodes in level order. */
struct trie *fail; /* Aho-Corasick failure function. */
int depth; /* Depth of this node from the root. */
int shift; /* Shift function for search failures. */
int maxshift; /* Max shift of self and descendents. */
};
/* Structure returned opaquely to the caller, containing everything. */
struct kwset
{
struct obstack obstack; /* Obstack for node allocation. */
int words; /* Number of words in the trie. */
struct trie *trie; /* The trie itself. */
int mind; /* Minimum depth of an accepting node. */
int maxd; /* Maximum depth of any node. */
unsigned char delta[NCHAR]; /* Delta table for rapid search. */
struct trie *next[NCHAR]; /* Table of children of the root. */
char *target; /* Target string if there's only one. */
int mind2; /* Used in Boyer-Moore search for one string. */
char const *trans; /* Character translation table. */
};
void *kws_emalloc_wrapper(size_t size)
{
return HPHP::smart_malloc(size);
}
void kws_efree_wrapper(void *ptr)
{
HPHP::smart_free(ptr);
}
/* Allocate and initialize a keyword set object, returning an opaque
pointer to it. Return NULL if memory is not available. */
kwset_t
kwsalloc (char const *trans)
{
struct kwset *kwset;
kwset = (struct kwset *) kws_emalloc_wrapper(sizeof (struct kwset));
if (!kwset)
return NULL;
obstack_init(&kwset->obstack);
kwset->words = 0;
kwset->trie
= (struct trie *) obstack_alloc(&kwset->obstack, sizeof (struct trie));
if (!kwset->trie)
{
kwsfree((kwset_t) kwset);
return NULL;
}
kwset->trie->accepting = 0;
kwset->trie->links = NULL;
kwset->trie->parent = NULL;
kwset->trie->next = NULL;
kwset->trie->fail = NULL;
kwset->trie->depth = 0;
kwset->trie->shift = 0;
kwset->mind = INT_MAX;
kwset->maxd = -1;
kwset->target = NULL;
kwset->trans = trans;
return (kwset_t) kwset;
}
/* This upper bound is valid for CHAR_BIT >= 4 and
exact for CHAR_BIT in { 4..11, 13, 15, 17, 19 }. */
#define DEPTH_SIZE (CHAR_BIT + CHAR_BIT/2)
/* Add the given string to the contents of the keyword set. Return NULL
for success, an error message otherwise. */
const char *
kwsincr (kwset_t kws, char const *text, size_t len)
{
struct kwset *kwset;
register struct trie *trie;
register unsigned char label;
register struct tree *link;
register int depth;
struct tree *links[DEPTH_SIZE];
enum { L, R } dirs[DEPTH_SIZE];
struct tree *t, *r, *l, *rl, *lr;
kwset = (struct kwset *) kws;
trie = kwset->trie;
text += len;
/* Descend the trie (built of reversed keywords) character-by-character,
installing new nodes when necessary. */
while (len--)
{
label = kwset->trans ? kwset->trans[U(*--text)] : *--text;
/* Descend the tree of outgoing links for this trie node,
looking for the current character and keeping track
of the path followed. */
link = trie->links;
links[0] = (struct tree *) &trie->links;
dirs[0] = L;
depth = 1;
while (link && label != link->label)
{
links[depth] = link;
if (label < link->label)
dirs[depth++] = L, link = link->llink;
else
dirs[depth++] = R, link = link->rlink;
}
/* The current character doesn't have an outgoing link at
this trie node, so build a new trie node and install
a link in the current trie node's tree. */
if (!link)
{
link = (struct tree *) obstack_alloc(&kwset->obstack,
sizeof (struct tree));
if (!link)
return "memory exhausted";
link->llink = NULL;
link->rlink = NULL;
link->trie = (struct trie *) obstack_alloc(&kwset->obstack,
sizeof (struct trie));
if (!link->trie)
{
obstack_free(&kwset->obstack, link);
return "memory exhausted";
}
link->trie->accepting = 0;
link->trie->links = NULL;
link->trie->parent = trie;
link->trie->next = NULL;
link->trie->fail = NULL;
link->trie->depth = trie->depth + 1;
link->trie->shift = 0;
link->label = label;
link->balance = 0;
/* Install the new tree node in its parent. */
if (dirs[--depth] == L)
links[depth]->llink = link;
else
links[depth]->rlink = link;
/* Back up the tree fixing the balance flags. */
while (depth && !links[depth]->balance)
{
if (dirs[depth] == L)
--links[depth]->balance;
else
++links[depth]->balance;
--depth;
}
/* Rebalance the tree by pointer rotations if necessary. */
if (depth && ((dirs[depth] == L && --links[depth]->balance)
|| (dirs[depth] == R && ++links[depth]->balance)))
{
switch (links[depth]->balance)
{
case (char) -2:
switch (dirs[depth + 1])
{
case L:
r = links[depth], t = r->llink, rl = t->rlink;
t->rlink = r, r->llink = rl;
t->balance = r->balance = 0;
break;
case R:
r = links[depth], l = r->llink, t = l->rlink;
rl = t->rlink, lr = t->llink;
t->llink = l, l->rlink = lr, t->rlink = r, r->llink = rl;
l->balance = t->balance != 1 ? 0 : -1;
r->balance = t->balance != (char) -1 ? 0 : 1;
t->balance = 0;
break;
default:
abort ();
}
break;
case 2:
switch (dirs[depth + 1])
{
case R:
l = links[depth], t = l->rlink, lr = t->llink;
t->llink = l, l->rlink = lr;
t->balance = l->balance = 0;
break;
case L:
l = links[depth], r = l->rlink, t = r->llink;
lr = t->llink, rl = t->rlink;
t->llink = l, l->rlink = lr, t->rlink = r, r->llink = rl;
l->balance = t->balance != 1 ? 0 : -1;
r->balance = t->balance != (char) -1 ? 0 : 1;
t->balance = 0;
break;
default:
abort ();
}
break;
default:
abort ();
}
if (dirs[depth - 1] == L)
links[depth - 1]->llink = t;
else
links[depth - 1]->rlink = t;
}
}
trie = link->trie;
}
/* Mark the node we finally reached as accepting, encoding the
index number of this word in the keyword set so far. */
if (!trie->accepting)
trie->accepting = 1 + 2 * kwset->words;
++kwset->words;
/* Keep track of the longest and shortest string of the keyword set. */
if (trie->depth < kwset->mind)
kwset->mind = trie->depth;
if (trie->depth > kwset->maxd)
kwset->maxd = trie->depth;
return NULL;
}
/* Enqueue the trie nodes referenced from the given tree in the
given queue. */
static void
enqueue (struct tree *tree, struct trie **last)
{
if (!tree)
return;
enqueue(tree->llink, last);
enqueue(tree->rlink, last);
(*last) = (*last)->next = tree->trie;
}
/* Compute the Aho-Corasick failure function for the trie nodes referenced
from the given tree, given the failure function for their parent as
well as a last resort failure node. */
static void
treefails (register struct tree const *tree, struct trie const *fail,
struct trie *recourse)
{
register struct tree *link;
if (!tree)
return;
treefails(tree->llink, fail, recourse);
treefails(tree->rlink, fail, recourse);
/* Find, in the chain of fails going back to the root, the first
node that has a descendent on the current label. */
while (fail)
{
link = fail->links;
while (link && tree->label != link->label)
if (tree->label < link->label)
link = link->llink;
else
link = link->rlink;
if (link)
{
tree->trie->fail = link->trie;
return;
}
fail = fail->fail;
}
tree->trie->fail = recourse;
}
/* Set delta entries for the links of the given tree such that
the preexisting delta value is larger than the current depth. */
static void
treedelta (register struct tree const *tree,
register unsigned int depth,
unsigned char delta[])
{
if (!tree)
return;
treedelta(tree->llink, depth, delta);
treedelta(tree->rlink, depth, delta);
if (depth < delta[tree->label])
delta[tree->label] = depth;
}
/* Return true if A has every label in B. */
static int
hasevery (register struct tree const *a, register struct tree const *b)
{
if (!b)
return 1;
if (!hasevery(a, b->llink))
return 0;
if (!hasevery(a, b->rlink))
return 0;
while (a && b->label != a->label)
if (b->label < a->label)
a = a->llink;
else
a = a->rlink;
return !!a;
}
/* Compute a vector, indexed by character code, of the trie nodes
referenced from the given tree. */
static void
treenext (struct tree const *tree, struct trie *next[])
{
if (!tree)
return;
treenext(tree->llink, next);
treenext(tree->rlink, next);
next[tree->label] = tree->trie;
}
/* Compute the shift for each trie node, as well as the delta
table and next cache for the given keyword set. */
const char *
kwsprep (kwset_t kws)
{
register struct kwset *kwset;
register int i;
register struct trie *curr;
register char const *trans;
unsigned char delta[NCHAR];
kwset = (struct kwset *) kws;
/* Initial values for the delta table; will be changed later. The
delta entry for a given character is the smallest depth of any
node at which an outgoing edge is labeled by that character. */
memset(delta, kwset->mind < UCHAR_MAX ? kwset->mind : UCHAR_MAX, NCHAR);
/* Check if we can use the simple boyer-moore algorithm, instead
of the hairy commentz-walter algorithm. */
if (kwset->words == 1 && kwset->trans == NULL)
{
char c;
/* Looking for just one string. Extract it from the trie. */
kwset->target = (char *)obstack_alloc(&kwset->obstack, kwset->mind);
if (!kwset->target)
return "memory exhausted";
for (i = kwset->mind - 1, curr = kwset->trie; i >= 0; --i)
{
kwset->target[i] = curr->links->label;
curr = curr->links->trie;
}
/* Build the Boyer Moore delta. Boy that's easy compared to CW. */
for (i = 0; i < kwset->mind; ++i)
delta[U(kwset->target[i])] = kwset->mind - (i + 1);
/* Find the minimal delta2 shift that we might make after
a backwards match has failed. */
c = kwset->target[kwset->mind - 1];
for (i = kwset->mind - 2; i >= 0; --i)
if (kwset->target[i] == c)
break;
kwset->mind2 = kwset->mind - (i + 1);
}
else
{
register struct trie *fail;
struct trie *last, *next[NCHAR];
/* Traverse the nodes of the trie in level order, simultaneously
computing the delta table, failure function, and shift function. */
for (curr = last = kwset->trie; curr; curr = curr->next)
{
/* Enqueue the immediate descendents in the level order queue. */
enqueue(curr->links, &last);
curr->shift = kwset->mind;
curr->maxshift = kwset->mind;
/* Update the delta table for the descendents of this node. */
treedelta(curr->links, curr->depth, delta);
/* Compute the failure function for the decendents of this node. */
treefails(curr->links, curr->fail, kwset->trie);
/* Update the shifts at each node in the current node's chain
of fails back to the root. */
for (fail = curr->fail; fail; fail = fail->fail)
{
/* If the current node has some outgoing edge that the fail
doesn't, then the shift at the fail should be no larger
than the difference of their depths. */
if (!hasevery(fail->links, curr->links))
if (curr->depth - fail->depth < fail->shift)
fail->shift = curr->depth - fail->depth;
/* If the current node is accepting then the shift at the
fail and its descendents should be no larger than the
difference of their depths. */
if (curr->accepting && fail->maxshift > curr->depth - fail->depth)
fail->maxshift = curr->depth - fail->depth;
}
}
/* Traverse the trie in level order again, fixing up all nodes whose
shift exceeds their inherited maxshift. */
for (curr = kwset->trie->next; curr; curr = curr->next)
{
if (curr->maxshift > curr->parent->maxshift)
curr->maxshift = curr->parent->maxshift;
if (curr->shift > curr->maxshift)
curr->shift = curr->maxshift;
}
/* Create a vector, indexed by character code, of the outgoing links
from the root node. */
for (i = 0; i < NCHAR; ++i)
next[i] = NULL;
treenext(kwset->trie->links, next);
if ((trans = kwset->trans) != NULL)
for (i = 0; i < NCHAR; ++i)
kwset->next[i] = next[U(trans[i])];
else
memcpy(kwset->next, next, NCHAR * sizeof(struct trie *));
}
/* Fix things up for any translation table. */
if ((trans = kwset->trans) != NULL)
for (i = 0; i < NCHAR; ++i)
kwset->delta[i] = delta[U(trans[i])];
else
memcpy(kwset->delta, delta, NCHAR);
return NULL;
}
/* Fast boyer-moore search. */
static size_t
bmexec (kwset_t kws, char const *text, size_t size)
{
struct kwset const *kwset;
register unsigned char const *d1;
register char const *ep, *sp, *tp;
register int d, gc, i, len, md2;
kwset = (struct kwset const *) kws;
len = kwset->mind;
if (len == 0)
return 0;
if (len > size)
return -1;
if (len == 1)
{
tp = (char *)memchr (text, kwset->target[0], size);
return tp ? tp - text : -1;
}
d1 = kwset->delta;
sp = kwset->target + len;
gc = U(sp[-2]);
md2 = kwset->mind2;
tp = text + len;
/* Significance of 12: 1 (initial offset) + 10 (skip loop) + 1 (md2). */
if (size > 12 * len)
/* 11 is not a bug, the initial offset happens only once. */
for (ep = text + size - 11 * len;;)
{
while (tp <= ep)
{
d = d1[U(tp[-1])], tp += d;
d = d1[U(tp[-1])], tp += d;
if (d == 0)
goto found;
d = d1[U(tp[-1])], tp += d;
d = d1[U(tp[-1])], tp += d;
d = d1[U(tp[-1])], tp += d;
if (d == 0)
goto found;
d = d1[U(tp[-1])], tp += d;
d = d1[U(tp[-1])], tp += d;
d = d1[U(tp[-1])], tp += d;
if (d == 0)
goto found;
d = d1[U(tp[-1])], tp += d;
d = d1[U(tp[-1])], tp += d;
}
break;
found:
if (U(tp[-2]) == gc)
{
for (i = 3; i <= len && U(tp[-i]) == U(sp[-i]); ++i)
;
if (i > len)
return tp - len - text;
}
tp += md2;
}
/* Now we have only a few characters left to search. We
carefully avoid ever producing an out-of-bounds pointer. */
ep = text + size;
d = d1[U(tp[-1])];
while (d <= ep - tp)
{
d = d1[U((tp += d)[-1])];
if (d != 0)
continue;
if (U(tp[-2]) == gc)
{
for (i = 3; i <= len && U(tp[-i]) == U(sp[-i]); ++i)
;
if (i > len)
return tp - len - text;
}
d = md2;
}
return -1;
}
/* Hairy multiple string search. */
static size_t
cwexec (kwset_t kws, char const *text, size_t len, struct kwsmatch *kwsmatch)
{
struct kwset const *kwset;
struct trie * const *next;
struct trie const *trie;
struct trie const *accept;
char const *beg, *lim, *mch, *lmch;
register unsigned char c;
register unsigned char const *delta;
register int d;
register char const *end, *qlim;
register struct tree const *tree;
register char const *trans;
#ifdef lint
accept = NULL;
#endif
/* Initialize register copies and look for easy ways out. */
kwset = (struct kwset *) kws;
if (len < kwset->mind)
return -1;
next = kwset->next;
delta = kwset->delta;
trans = kwset->trans;
lim = text + len;
end = text;
if ((d = kwset->mind) != 0)
mch = NULL;
else
{
mch = text, accept = kwset->trie;
goto match;
}
if (len >= 4 * kwset->mind)
qlim = lim - 4 * kwset->mind;
else
qlim = NULL;
while (lim - end >= d)
{
if (qlim && end <= qlim)
{
end += d - 1;
while ((d = delta[c = *end]) && end < qlim)
{
end += d;
end += delta[U(*end)];
end += delta[U(*end)];
}
++end;
}
else
d = delta[c = (end += d)[-1]];
if (d)
continue;
beg = end - 1;
trie = next[c];
if (trie->accepting)
{
mch = beg;
accept = trie;
}
d = trie->shift;
while (beg > text)
{
c = trans ? trans[U(*--beg)] : *--beg;
tree = trie->links;
while (tree && c != tree->label)
if (c < tree->label)
tree = tree->llink;
else
tree = tree->rlink;
if (tree)
{
trie = tree->trie;
if (trie->accepting)
{
mch = beg;
accept = trie;
}
}
else
break;
d = trie->shift;
}
if (mch)
goto match;
}
return -1;
match:
/* Given a known match, find the longest possible match anchored
at or before its starting point. This is nearly a verbatim
copy of the preceding main search loops. */
if (lim - mch > kwset->maxd)
lim = mch + kwset->maxd;
lmch = 0;
d = 1;
while (lim - end >= d)
{
if ((d = delta[c = (end += d)[-1]]) != 0)
continue;
beg = end - 1;
if (!(trie = next[c]))
{
d = 1;
continue;
}
if (trie->accepting && beg <= mch)
{
lmch = beg;
accept = trie;
}
d = trie->shift;
while (beg > text)
{
c = trans ? trans[U(*--beg)] : *--beg;
tree = trie->links;
while (tree && c != tree->label)
if (c < tree->label)
tree = tree->llink;
else
tree = tree->rlink;
if (tree)
{
trie = tree->trie;
if (trie->accepting && beg <= mch)
{
lmch = beg;
accept = trie;
}
}
else
break;
d = trie->shift;
}
if (lmch)
{
mch = lmch;
goto match;
}
if (!d)
d = 1;
}
if (kwsmatch)
{
kwsmatch->index = accept->accepting / 2;
kwsmatch->offset[0] = mch - text;
kwsmatch->size[0] = accept->depth;
}
return mch - text;
}
/* Search through the given text for a match of any member of the
given keyword set. Return a pointer to the first character of
the matching substring, or NULL if no match is found. If FOUNDLEN
is non-NULL store in the referenced location the length of the
matching substring. Similarly, if FOUNDIDX is non-NULL, store
in the referenced location the index number of the particular
keyword matched. */
size_t
kwsexec (kwset_t kws, char const *text, size_t size,
struct kwsmatch *kwsmatch)
{
struct kwset const *kwset = (struct kwset *) kws;
if (kwset->words == 1 && kwset->trans == NULL)
{
size_t ret = bmexec (kws, text, size);
if (kwsmatch != NULL && ret != (size_t) -1)
{
kwsmatch->index = 0;
kwsmatch->offset[0] = ret;
kwsmatch->size[0] = kwset->mind;
}
return ret;
}
else
return cwexec(kws, text, size, kwsmatch);
}
/* Free the components of the given keyword set. */
void
kwsfree (kwset_t kws)
{
struct kwset *kwset;
kwset = (struct kwset *) kws;
obstack_free(&kwset->obstack, NULL);
kws_efree_wrapper(kws);
}
| 27.05203 | 77 | 0.599381 |
e2e3b44726b15ea0fa6726997db88f50fdcb0b6c | 5,867 | cpp | C++ | src/sorting_network.cpp | afnaanhashmi/smt-switch | 73dd8ccf3c737e6bcf214d9f967df4a16b437eb8 | [
"BSD-3-Clause"
] | 49 | 2018-02-20T12:47:28.000Z | 2021-08-14T17:06:19.000Z | src/sorting_network.cpp | afnaanhashmi/smt-switch | 73dd8ccf3c737e6bcf214d9f967df4a16b437eb8 | [
"BSD-3-Clause"
] | 117 | 2017-06-30T18:26:02.000Z | 2021-08-17T19:50:18.000Z | src/sorting_network.cpp | afnaanhashmi/smt-switch | 73dd8ccf3c737e6bcf214d9f967df4a16b437eb8 | [
"BSD-3-Clause"
] | 21 | 2019-10-10T22:22:03.000Z | 2021-07-22T14:15:10.000Z | /********************* */
/*! \file sorting_network.cpp
** \verbatim
** Top contributors (to current version):
** Makai Mann
** This file is part of the smt-switch project.
** Copyright (c) 2020 by the authors listed in the file AUTHORS
** in the top-level source directory) and their institutional affiliations.
** All rights reserved. See the file LICENSE in the top-level source
** directory for licensing information.\endverbatim
**
** \brief Implements a symbolic sorting network for boolean-sorted variables.
**
**/
#include "sorting_network.h"
#include <assert.h>
#include "exceptions.h"
namespace smt {
// implementation based on SortingNetwork in the predecessor, CoSA:
// https://github.com/cristian-mattarei/CoSA/blob/141be4b23f4012c6ad5676907d7c211ae2b6614a/cosa/utils/formula_mngm.py#L198
TermVec SortingNetwork::sorting_network(const TermVec & unsorted) const
{
if (unsorted.empty())
{
return {};
}
// check that all the terms in unsorted are boolean sorted
// for sort aliasing solvers, best to compare to the object
// rather than rely on the SortKind
Sort boolsort = solver_->make_sort(BOOL);
Sort sort;
for (const auto & tt : unsorted)
{
sort = tt->get_sort();
if (tt->get_sort() != boolsort)
{
throw IncorrectUsageException("Expected all boolean sorts but got "
+ tt->to_string() + ":"
+ sort->to_string());
}
}
return sorting_network_rec(unsorted);
}
TermVec SortingNetwork::sort_two(const Term & t1, const Term & t2) const
{
return { solver_->make_term(Or, t1, t2), solver_->make_term(And, t1, t2) };
}
TermVec SortingNetwork::merge(const TermVec & sorted1,
const TermVec & sorted2) const
{
size_t len1 = sorted1.size();
size_t len2 = sorted2.size();
if (len1 == 0)
{
return sorted2;
}
else if (len2 == 0)
{
return sorted1;
}
else if (len1 == 1 && len2 == 1)
{
return sort_two(sorted1[0], sorted2[0]);
}
bool sorted1_is_even = (len1 % 2) == 0;
bool sorted2_is_even = (len2 % 2) == 0;
if (!sorted1_is_even and sorted2_is_even)
{
// normalize so we don't have to do all cases
return merge(sorted2, sorted1);
}
TermVec even_sorted1;
TermVec odd_sorted1;
for (size_t i = 0; i < len1; ++i)
{
if (i % 2 == 0)
{
odd_sorted1.push_back(sorted1[i]);
}
else
{
even_sorted1.push_back(sorted1[i]);
}
}
TermVec even_sorted2;
TermVec odd_sorted2;
for (size_t i = 0; i < len2; ++i)
{
if (i % 2 == 0)
{
odd_sorted2.push_back(sorted2[i]);
}
else
{
even_sorted2.push_back(sorted2[i]);
}
}
TermVec res_even = merge(even_sorted1, even_sorted2);
TermVec res_odd = merge(odd_sorted1, odd_sorted2);
size_t len_res_even = res_even.size();
size_t len_res_odd = res_odd.size();
TermVec res;
res.reserve(len1 + len2);
if (sorted1_is_even && sorted2_is_even)
{
assert(len_res_even == len_res_odd);
// if both inputs were even, they have same number of elements
// need to interleave and compare all inner elements
// the first odd result and last even result have already
// been compared via the base case of merge (two length 1
// lists)
Term first_res_odd = res_odd[0];
res.push_back(first_res_odd);
for (size_t i = 0; i < len_res_odd - 1; ++i)
{
const TermVec & two_sorted = sort_two(res_odd[i + 1], res_even[i]);
assert(two_sorted.size() == 2);
res.push_back(two_sorted[0]);
res.push_back(two_sorted[1]);
}
Term last_res_even = res_even.back();
res.push_back(last_res_even);
}
else if (sorted1_is_even && !sorted2_is_even)
{
assert(len_res_even + 1 == len_res_odd);
// if first element was even and second was odd,
// then there's one extra element in the merged
// odd list
// the first odd element has already been fully
// processed down to the base case of merge
Term first_res_odd = res_odd[0];
res.push_back(first_res_odd);
for (size_t i = 0; i < len_res_even; ++i)
{
const TermVec & two_sorted = sort_two(res_odd[i + 1], res_even[i]);
assert(two_sorted.size() == 2);
res.push_back(two_sorted[0]);
res.push_back(two_sorted[1]);
}
}
else if (!sorted1_is_even && !sorted2_is_even)
{
assert(len_res_even + 2 == len_res_odd);
// if both inputs were odd, then there are
// two more elements in the odd merged list
// the first and last elements have already
// been fully processed down to the base
// case of merge
// the rest need to be merged with the even
// merged list
Term first_res_odd = res_odd[0];
Term last_res_odd = res_odd.back();
res.push_back(first_res_odd);
for (size_t i = 0; i < len_res_even; ++i)
{
const TermVec & two_sorted = sort_two(res_odd[i + 1], res_even[i]);
assert(two_sorted.size() == 2);
res.push_back(two_sorted[0]);
res.push_back(two_sorted[1]);
}
res.push_back(last_res_odd);
}
else
{
// should not occur to due normalization above
assert(false);
}
assert(res.size() == len1 + len2);
return res;
}
// protected methods
TermVec SortingNetwork::sorting_network_rec(const TermVec & unsorted) const
{
size_t len = unsorted.size();
if (len == 1)
{
return unsorted;
}
else if (len == 2)
{
return sort_two(unsorted[0], unsorted[1]);
}
size_t pivot = len / 2;
auto begin = unsorted.begin();
TermVec left_vec(begin, begin + pivot);
TermVec right_vec(begin + pivot, unsorted.end());
TermVec left_res = sorting_network_rec(left_vec);
TermVec right_res = sorting_network_rec(right_vec);
return merge(left_res, right_res);
}
} // namespace smt
| 26.309417 | 122 | 0.63593 |
e2eb0f892f50f04886c4aa27d03cc01a76b60bcd | 2,264 | cpp | C++ | zap/src/zap.cpp | colugomusic/blockhead_fx | e03f493b76f8747aea5522d214f3e8c3bb404110 | [
"MIT"
] | null | null | null | zap/src/zap.cpp | colugomusic/blockhead_fx | e03f493b76f8747aea5522d214f3e8c3bb404110 | [
"MIT"
] | null | null | null | zap/src/zap.cpp | colugomusic/blockhead_fx | e03f493b76f8747aea5522d214f3e8c3bb404110 | [
"MIT"
] | null | null | null | #include <rack++/module/smooth_param.h>
#include <rack++/module/channel.h>
#include <snd/misc.h>
#include "zap.h"
using namespace rack;
using namespace std::placeholders;
Zap::Zap()
: BasicStereoEffect("Zap")
{
param_spread_ = add_smooth_param(0.0f, "Spread");
param_spread_->set_transform([](const ml::DSPVector& v)
{
const auto x = v / 100.0f;
return x * x * ml::signBit(x);
});
param_spread_->set_size_hint(0.75);
param_spread_->set_format_hint(Rack_ParamFormatHint_Percentage);
param_spread_->set_min(-100.0f);
param_spread_->set_max(100.0f);
param_freq_ = add_smooth_param(1000.0f, "Frequency");
param_freq_->set_format_hint(Rack_ParamFormatHint_Hertz);
param_freq_->set_min(MIN_FREQ);
param_freq_->set_max(MAX_FREQ);
param_res_ = add_smooth_param(50.0f, "Resonance");
param_res_->set_transform([](const ml::DSPVector& v) { return v / 100.0f; });
param_res_->set_size_hint(0.75);
param_res_->set_format_hint(Rack_ParamFormatHint_Percentage);
param_res_->set_min(0.0f);
param_res_->set_max(100.0f);
param_mix_ = add_smooth_param(100.0f, "Mix");
param_mix_->set_transform([](const ml::DSPVector& v) { return v / 100.0f; });
param_mix_->set_size_hint(0.5);
param_mix_->set_format_hint(Rack_ParamFormatHint_Percentage);
param_mix_->set_min(0.0f);
param_mix_->set_max(100.0f);
param_spread_->begin_notify();
param_freq_->begin_notify();
param_res_->begin_notify();
param_mix_->begin_notify();
}
ml::DSPVectorArray<2> Zap::operator()(const ml::DSPVectorArray<2>& in)
{
ml::DSPVectorArray<2> out;
const auto& spread = (*param_spread_)();
const auto& base_freq = (*param_freq_)();
const auto& res = (*param_res_)();
const auto& mix = (*param_mix_)();
const auto offset = spread * 1000.0f;
const ml::DSPVector min_freq(MIN_FREQ);
const ml::DSPVector max_freq(MAX_FREQ);
const auto freq_L = ml::clamp(base_freq - offset, min_freq, max_freq);
const auto freq_R = ml::clamp(base_freq + offset, min_freq, max_freq);
const auto freq = ml::concatRows(freq_L, freq_R);
out = filter_(in, sample_rate_, freq, ml::repeatRows<2>(res));
return ml::lerp(in, out, ml::repeatRows<2>(mix));
}
void Zap::effect_clear()
{
filter_.clear();
}
| 29.025641 | 79 | 0.699647 |
e2edde13f8bd56ca97d153ea6c610c7940641ed8 | 5,174 | hpp | C++ | eagleye_util/fix2kml/include/fix2kml/GoogleEarthPath.hpp | lonfr/eagleye | 8c5880827cd41ce62b6f2a1e2f10e90351bab19b | [
"BSD-3-Clause"
] | 329 | 2020-03-19T00:41:00.000Z | 2022-03-31T05:52:33.000Z | eagleye_util/fix2kml/include/fix2kml/GoogleEarthPath.hpp | yxw027/eagleye | b5eab2fd162841d7be17ef320faf0bbd4f9627c4 | [
"BSD-3-Clause"
] | 22 | 2020-03-20T09:14:19.000Z | 2022-03-24T23:47:55.000Z | eagleye_util/fix2kml/include/fix2kml/GoogleEarthPath.hpp | yxw027/eagleye | b5eab2fd162841d7be17ef320faf0bbd4f9627c4 | [
"BSD-3-Clause"
] | 79 | 2020-03-19T03:08:29.000Z | 2022-03-09T00:54:03.000Z | // 1 tab = 8 spaces
/**
* ID: GoogleEarthPath.hpp
* EDITED: 23-09-2014
* AUTOR: Andres Gongora
*
* +------ Description: -----------------------------------------------------------+
* | |
* | Class to store GPS coordinates in a Google Earth compatible KML file. |
* | This can then be loaded and displayed as a route on Google Earth. |
* | |
* | |
* | EXAMPLE OF USE: |
* | 1 #include <GoogleEarthPath.hpp> //This class |
* | 2 #include <unistd.h> //Sleep |
* | 3 #include <magic_GPS_library.hpp> //Your GPS library |
* | 4 |
* | 5 int main() |
* | 6 { |
* | 7 // CREATE PATH |
* | 8 GoogleEarthPath path(myPath.kml, NameToShowInGEarth) |
* | 9 double longitude, latitude; |
* | 10 |
* | 11 for(int i=0; i < 10; i++) |
* | 12 { |
* | 13 //SOMEHOW GET GPS COORDINATES |
* | 14 yourGPSfunction(longitude,latitude); |
* | 15 |
* | 16 //ADD POINT TO PATH |
* | 17 path.addPoint(longitude,latitude); |
* | 18 |
* | 19 //WAIT FOR NEW POINTS |
* | 20 sleep(10); //sleep 10 seconds |
* | 21 } |
* | 22 return 0; |
* | 23 } |
* | |
* | This example code obtains GPS coordenates from an external function |
* | and stores them in the GoogleEarthPath instance. It samples 10 points |
* | during 100 seconds. Once the desctructor is called, the file |
* | myPath.kml is ready to be imported in G.E. |
* | |
* +-------------------------------------------------------------------------------+
*
**/
/*
* Copyright (C) 2014 Andres Gongora
* <https://yalneb.blogspot.com>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 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 General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef GOOGLEEARTHPATH_HPP_INCLUDED
#define GOOGLEEARTHPATH_HPP_INCLUDED
//----- INCLUDE ------------------------------------------------------------------------------------
#include <iostream>
#include <fstream> // File I/O
#include <iomanip> // std::setprecision
using namespace std;
//----- DEFINE -------------------------------------------------------------------------------------
//##### DECLARATION ################################################################################
class GoogleEarthPath
{
public:
GoogleEarthPath(const char*, const char*); //Requires log filename & Path name (to show inside googleearth)
~GoogleEarthPath(); // Default destructor
inline void addPoint(double, double, double);
private:
fstream fileDescriptor; // File descriptor
};
//##### DEFINITION #################################################################################
/***************************************************************************************************
* Constructor & Destructor
**************************************************************************************************/
GoogleEarthPath::GoogleEarthPath(const char* file, const char* pathName)
{
fileDescriptor.open(file, ios::out | ios::trunc); // Delete previous file if it exists
if(!fileDescriptor)
std::cerr << "GoogleEarthPath::\tCould not open file file! " << file << std::endl;
fileDescriptor << "<?xml version=\"1.0\" encoding=\"UTF-8\"?>" << "\n"
<< "<kml xmlns=\"http://earth.google.com/kml/2.2\">" << "\n"
<< "<Document>" << "\n"
<< "<Placemark>" << "\n"
<< "<name>"<< pathName <<"</name>" << "\n"
<< "<Style>" << "\n"
<< "<LineStyle>" << "\n"
<< "<color>ff0000ff</color>" << "\n"
<< "<width>5.00</width>" << "\n"
<< "</LineStyle>" << "\n"
<< "</Style>" << "\n"
<< "<LineString>" << "\n"
<< "<tessellate>1</tessellate>" << "\n"
<< "<coordinates>" << "\n" ;
}
GoogleEarthPath::~GoogleEarthPath()
{
if(fileDescriptor)
{
fileDescriptor << "</coordinates>" << "\n"
<< "</LineString>" << "\n"
<< "</Placemark>" << "\n"
<< "</Document>" << "\n"
<< "</kml>" << "\n";
}
}
/***************************************************************************************************
* Path handling
**************************************************************************************************/
inline void GoogleEarthPath::addPoint(double longitude, double latitude, double altitude)
{
if(fileDescriptor)
{
fileDescriptor << setprecision(13)
<< longitude <<","
<< setprecision(13)
<< latitude << ","
<< setprecision(13)
<< altitude << "\n"
<< flush;
}
}
#endif //GOOGLEEARTHPATH
| 32.3375 | 111 | 0.473521 |
e2eee8e7256aaa6c8be651ed3ec7f3533ade731e | 411 | cpp | C++ | count_set_bits.cpp | michal037/workspace | 1b483fafcf47e6aab26f35218e4966486e3f5666 | [
"MIT"
] | null | null | null | count_set_bits.cpp | michal037/workspace | 1b483fafcf47e6aab26f35218e4966486e3f5666 | [
"MIT"
] | null | null | null | count_set_bits.cpp | michal037/workspace | 1b483fafcf47e6aab26f35218e4966486e3f5666 | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
/* https://hackaday.com/2019/06/19/abusing-a-cpus-adders-to-optimize-bit-counting/ */
unsigned char count_set_bits(unsigned int x) {
unsigned char ret = 0;
while(x) {
ret++;
x &= x - 1;
}
return ret;
}
int main() {
cout << "Count the set bits." << endl;
cout << "value 0b110111000 -> " << (unsigned int)count_set_bits(0b110111000) << endl;
return 0;
}
| 19.571429 | 86 | 0.649635 |
e2f0970a4793179463cf01ac6c1cd4a28c13fce6 | 294 | cpp | C++ | codeforces/contests/round/622-div2/b.cpp | tysm/cpsols | 262212646203e516d1706edf962290de93762611 | [
"MIT"
] | 4 | 2020-10-05T19:24:10.000Z | 2021-07-15T00:45:43.000Z | codeforces/contests/round/622-div2/b.cpp | tysm/cpsols | 262212646203e516d1706edf962290de93762611 | [
"MIT"
] | null | null | null | codeforces/contests/round/622-div2/b.cpp | tysm/cpsols | 262212646203e516d1706edf962290de93762611 | [
"MIT"
] | null | null | null | #include <cpplib/stdinc.hpp>
int32_t main(){
desync();
int t;
cin >> t;
while(t--){
int n, x, y;
cin >> n >> x >> y;
int lo = min(n, 1+max((int)0, (x+y)-n));
int hi = min(n, x+y-1);
cout << lo << ' ' << hi << endl;
}
return 0;
}
| 18.375 | 48 | 0.394558 |
e2f1d06519c6d2cd8e39dd1e185e10a2c047a274 | 4,112 | cc | C++ | tests/test_puzzle_private.cc | joshleeb/Sudoku | 4e20ea1e7b1f39280b44bb1f0101c1bc4378f5cc | [
"MIT"
] | null | null | null | tests/test_puzzle_private.cc | joshleeb/Sudoku | 4e20ea1e7b1f39280b44bb1f0101c1bc4378f5cc | [
"MIT"
] | null | null | null | tests/test_puzzle_private.cc | joshleeb/Sudoku | 4e20ea1e7b1f39280b44bb1f0101c1bc4378f5cc | [
"MIT"
] | null | null | null | #include <vector>
#include <catch/catch.hpp>
#define private public
#include "../src/puzzle.h"
SCENARIO("getting available moves", "[puzzle]") {
GIVEN("a puzzle with a valid 9x9 board") {
std::vector<int> expected_moves{};
puzzle new_puzzle(std::vector<int>{
5, 3, -1, -1, 7, -1, -1, -1, -1, 6, -1, -1, 1, 9, 5, -1, -1,
-1, -1, 9, 8, -1, -1, -1, -1, 6, -1, 8, -1, -1, -1, 6, -1, -1,
-1, 3, 4, -1, -1, 8, -1, 3, -1, -1, 1, 7, -1, -1, -1, 2, -1,
-1, -1, 6, -1, 6, -1, -1, -1, -1, 2, 8, -1, -1, -1, -1, 4, 1,
9, -1, -1, 5, -1, -1, -1, -1, 8, -1, -1, 7, 9,
});
THEN("should return available moves") {
expected_moves = {1, 2, 4};
REQUIRE(new_puzzle.get_moves(2) == expected_moves);
expected_moves = {2, 6};
REQUIRE(new_puzzle.get_moves(3) == expected_moves);
expected_moves = {2, 4, 6, 8};
REQUIRE(new_puzzle.get_moves(5) == expected_moves);
expected_moves = {1, 4, 8, 9};
REQUIRE(new_puzzle.get_moves(6) == expected_moves);
expected_moves = {1, 2, 4, 9};
REQUIRE(new_puzzle.get_moves(7) == expected_moves);
expected_moves = {2, 4, 8};
REQUIRE(new_puzzle.get_moves(8) == expected_moves);
}
WHEN("having already tried options") {
new_puzzle.attempts[7] = std::vector<int>{1, 2, 4};
THEN("should return available moves without tries options") {
expected_moves = {9};
REQUIRE(new_puzzle.get_moves(7) == expected_moves);
}
}
}
GIVEN("a puzzle with a valid 4x4 board") {
std::vector<int> expected_moves{};
puzzle new_puzzle(std::vector<int>{2, 1, -1, -1, -1, 3, 2, -1, -1, -1,
-1, 4, 1, -1, -1, -1});
THEN("should return available moves") {
expected_moves = {3, 4};
REQUIRE(new_puzzle.get_moves(2) == expected_moves);
expected_moves = {3};
REQUIRE(new_puzzle.get_moves(3) == expected_moves);
expected_moves = {4};
REQUIRE(new_puzzle.get_moves(4) == expected_moves);
expected_moves = {1};
REQUIRE(new_puzzle.get_moves(7) == expected_moves);
expected_moves = {3};
REQUIRE(new_puzzle.get_moves(8) == expected_moves);
expected_moves = {2};
REQUIRE(new_puzzle.get_moves(9) == expected_moves);
expected_moves = {1, 3};
REQUIRE(new_puzzle.get_moves(10) == expected_moves);
expected_moves = {2, 4};
REQUIRE(new_puzzle.get_moves(13) == expected_moves);
expected_moves = {3};
REQUIRE(new_puzzle.get_moves(14) == expected_moves);
expected_moves = {2, 3};
REQUIRE(new_puzzle.get_moves(15) == expected_moves);
}
WHEN("having already tried options") {
new_puzzle.attempts[2] = std::vector<int>{3};
THEN("should return available moves without tries options") {
expected_moves = {4};
REQUIRE(new_puzzle.get_moves(2) == expected_moves);
}
}
}
}
SCENARIO("getting index from row and column", "[puzzle]") {
GIVEN("a puzzle") {
puzzle new_puzzle({});
new_puzzle.board_width = 16;
THEN("should get index of row and column") {
REQUIRE(new_puzzle.get_index(1, 4) == 20);
}
}
}
SCENARIO("getting row from index", "[puzzle]") {
GIVEN("a puzzle") {
puzzle new_puzzle({});
new_puzzle.board_width = 16;
THEN("should get row from index") {
REQUIRE(new_puzzle.get_row(20) == 1);
}
}
}
SCENARIO("getting column from index", "[puzzle]") {
GIVEN("a puzzle") {
puzzle new_puzzle({});
new_puzzle.board_width = 16;
THEN("should get column from index") {
REQUIRE(new_puzzle.get_column(20) == 4);
}
}
}
| 31.875969 | 79 | 0.514835 |
e2f2ef30eee8ee1f57f2d867a14644b8ba1910f4 | 939 | cpp | C++ | third_party/WebKit/Source/core/css/properties/CSSPropertyAPIWebkitLineClamp.cpp | metux/chromium-deb | 3c08e9b89a1b6f95f103a61ff4f528dbcd57fc42 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | third_party/WebKit/Source/core/css/properties/CSSPropertyAPIWebkitLineClamp.cpp | metux/chromium-deb | 3c08e9b89a1b6f95f103a61ff4f528dbcd57fc42 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | third_party/WebKit/Source/core/css/properties/CSSPropertyAPIWebkitLineClamp.cpp | metux/chromium-deb | 3c08e9b89a1b6f95f103a61ff4f528dbcd57fc42 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | // 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/css/properties/CSSPropertyAPIWebkitLineClamp.h"
#include "core/css/parser/CSSPropertyParserHelpers.h"
class CSSParserLocalContext;
namespace blink {
const CSSValue* CSSPropertyAPIWebkitLineClamp::parseSingleValue(
CSSParserTokenRange& range,
const CSSParserContext& context,
const CSSParserLocalContext&) {
if (range.Peek().GetType() != kPercentageToken &&
range.Peek().GetType() != kNumberToken)
return nullptr;
CSSPrimitiveValue* clamp_value =
CSSPropertyParserHelpers::ConsumePercent(range, kValueRangeNonNegative);
if (clamp_value)
return clamp_value;
// When specifying number of lines, don't allow 0 as a valid value.
return CSSPropertyParserHelpers::ConsumePositiveInteger(range);
}
} // namespace blink
| 33.535714 | 78 | 0.765708 |
e2f4e5d6fd6503f904d0b2a84f5d395f65b78a0c | 473 | cpp | C++ | C++/Sorting/insertion_sort.cpp | mrjayantk237/Hacktober_Fest_2021 | 6dcd022a7116b81310534dcd0da8d66c185ac410 | [
"MIT"
] | 21 | 2021-10-02T14:14:33.000Z | 2022-01-12T16:27:49.000Z | C++/Sorting/insertion_sort.cpp | mrjayantk237/Hacktober_Fest_2021 | 6dcd022a7116b81310534dcd0da8d66c185ac410 | [
"MIT"
] | 11 | 2021-10-03T15:02:56.000Z | 2021-10-30T17:42:37.000Z | C++/Sorting/insertion_sort.cpp | mrjayantk237/Hacktober_Fest_2021 | 6dcd022a7116b81310534dcd0da8d66c185ac410 | [
"MIT"
] | 64 | 2021-10-02T09:20:19.000Z | 2021-10-31T20:21:01.000Z | #include <iostream>
using namespace std;
int main(void)
{
int n;
cin >> n;
int a[n];
for (int i = 0; i < n; i++)
{
cin >> a[i];
}
for (int i = 1; i < n; i++)
{
int temp = a[i];
int j = i - 1;
while (j >= 0 && a[j] > temp)
{
a[j + 1] = a[j];
j--;
}
a[j + 1] = temp;
}
for (int i = 0; i < n; i++)
{
cout << a[i] << " ";
}
return 0;
}
| 15.766667 | 37 | 0.312896 |
e2f70fecbc94632b3e8635ec2962c9468f336e2a | 2,588 | cpp | C++ | Olimpiada/2013/betasah.cpp | rlodina99/Learn_cpp | 0c5bd9e6c52ca21e2eb95eb91597272ddc842c08 | [
"MIT"
] | null | null | null | Olimpiada/2013/betasah.cpp | rlodina99/Learn_cpp | 0c5bd9e6c52ca21e2eb95eb91597272ddc842c08 | [
"MIT"
] | null | null | null | Olimpiada/2013/betasah.cpp | rlodina99/Learn_cpp | 0c5bd9e6c52ca21e2eb95eb91597272ddc842c08 | [
"MIT"
] | null | null | null | #include <iostream>
#include <fstream>
#include <climits>
using namespace std;
int main(){
ifstream f("betasah.in");
int n,d,k;
f >> n >> d >> k;
int mat[n][n];
for(int i=0;i<n;i++){
for(int j=0;j<n;j++){
mat[i][j]=0;
}
}
for(int i=0;i<n;i++){
for(int j=n-1;j>i;j--){
mat[i][j]=9;
}
}
int x,y;
for(int i=0;i<d;i++){
f >> x >> y;
mat[x-1][y-1]=3;
}
for(int i=0;i<k;i++){
f >> x >> y;
mat[x-1][y-1]=1;
}
for (int i = 0; i < n; i++)
{
for (int j = 0; j < n; j++)
{
cout << mat[i][j] << ' ';
}
cout << '\n';
}
int maxPatrateAlbePeRand=0,max;
for(int i=0;i<n;i++){
max=0;
for(int j=0;j<n;j++){
if(mat[i][j]==0)
max++;
}
if(max>maxPatrateAlbePeRand)
maxPatrateAlbePeRand=max;
}
cout << maxPatrateAlbePeRand;
//NUMARAM nr de patrate
int albe =0;
for (int i = 0; i < n; i++)
{
for (int j = 0; j < n; j++)
{
if(mat[i][j]==3){
//DREAPTA
for(int g=j+1;g<n;g++){
if(mat[i][g]==0){
albe++;
mat[i][g]=11;
}
if(mat[i][g]==1 || mat[i][g]==9)
break;
}
//STANGA
for(int g=j-1;g>=0;g--){
if(mat[i][g]==0){
albe++;
mat[i][g]=11;
}
if(mat[i][g]==1 || mat[i][g]==9)
break;
}
//SUS
for(int k=i-1;k>=0;k--){
if(mat[k][j]==0){
albe++;
mat[k][j]=11;
}
if(mat[k][j]==1 || mat[k][j]==9)
break;
}
//JOS
for(int k=i+1;k<n;k++){
if(mat[k][j]==0){
albe++;
mat[k][j]=11;
}
if(mat[k][j]==1 || mat[k][j]==9)
break;
}
//STANGA SUS
int l=i-1;
int c=j-1;
while(l>=0 && c>=0){
if(mat[l][c]==0){
albe++;
mat[l][c]=11;
}
if(mat[l][c]==1 || mat[l][c]==9)
break;
l--;
c--;
}
//DREAPTA JOS
l=i+1;
c=j+1;
while(l<n && c<n){
if(mat[l][c]==0){
albe++;
mat[l][c]=11;
}
if(mat[l][c]==1 || mat[l][c]==9)
break;
l++;
c++;
}
//STANGA JOS
l=i+1;
c=j-1;
while(l<n && c>=0){
if(mat[l][c]==0){
albe++;
mat[l][c]=11;
}
if(mat[l][c]==1 || mat[l][c]==9)
break;
l++;
c--;
}
//DREAPTA SUS
l=i-1;
c=j+1;
while(l>=0 && c<n){
if(mat[l][c]==0){
albe++;
mat[l][c]=11;
}
if(mat[l][c]==1 || mat[l][c]==9)
break;
l--;
c++;
}
}
}
}
cout << '\n' << albe <<'\n';
return 0;
} | 15.046512 | 38 | 0.362056 |